From 591791b9f5912b9bfb8c2a110fc62c21b6d5688f Mon Sep 17 00:00:00 2001 From: Travaglini Alessio <158268546+Vandapanda@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:04:13 +0100 Subject: [PATCH] feat(tokens):Added tokens for Input refactor(tokens): cleaned up some dimension tokens on core level --- .../tokens/tokensstudio-generated/tokens.json | 240 +++++++++++++----- 1 file changed, 170 insertions(+), 70 deletions(-) diff --git a/packages/tokens/tokensstudio-generated/tokens.json b/packages/tokens/tokensstudio-generated/tokens.json index 34e1f345e4..85c08de4d1 100644 --- a/packages/tokens/tokensstudio-generated/tokens.json +++ b/packages/tokens/tokensstudio-generated/tokens.json @@ -273,7 +273,7 @@ }, "17": { "$type": "dimension", - "$value": "17px" + "$value": "17" }, "18": { "$type": "dimension", @@ -293,7 +293,7 @@ }, "23": { "$type": "dimension", - "$value": "23px" + "$value": "23" }, "24": { "$type": "dimension", @@ -397,7 +397,7 @@ }, "n2": { "$type": "dimension", - "$value": "-2px" + "$value": "-2" }, "15-5": { "$type": "dimension", @@ -413,7 +413,15 @@ }, "26-5": { "$type": "dimension", - "$value": "26.5px" + "$value": "26.5" + }, + "25-5": { + "$type": "dimension", + "$value": "25.5" + }, + "24-5": { + "$type": "dimension", + "$value": "24.5" } }, "font-weight": { @@ -2641,6 +2649,14 @@ "27": { "$type": "spacing", "$value": "{post.core.dimension.17}" + }, + "28": { + "$type": "spacing", + "$value": "{post.core.dimension.17}" + }, + "29": { + "$type": "spacing", + "$value": "{post.core.dimension.25-5}" } } }, @@ -2939,6 +2955,10 @@ "1": { "$type": "dimension", "$value": "{post.core.dimension.32}" + }, + "2": { + "$type": "dimension", + "$value": "{post.core.dimension.18}" } } } @@ -3233,6 +3253,14 @@ "27": { "$type": "spacing", "$value": "{post.core.dimension.12}" + }, + "28": { + "$type": "spacing", + "$value": "{post.core.dimension.16}" + }, + "29": { + "$type": "spacing", + "$value": "{post.core.dimension.23}" } }, "inline": { @@ -3817,6 +3845,14 @@ "27": { "$type": "spacing", "$value": "{post.core.dimension.17-5}" + }, + "28": { + "$type": "spacing", + "$value": "{post.core.dimension.17-5}" + }, + "29": { + "$type": "spacing", + "$value": "{post.core.dimension.24-5}" } } }, @@ -4935,6 +4971,66 @@ } } }, + "Components/Blockquote": { + "post": { + "blockquote": { + "border-width": { + "left": { + "$type": "borderWidth", + "$value": "{post.device.border-width.quote}" + } + }, + "border": { + "left": { + "color": { + "$type": "color", + "$value": "{post.scheme.color.surface.default.stroke}" + }, + "style": { + "$type": "other", + "$value": "{post.core.border-style.solid}" + } + } + }, + "margin": { + "block": { + "$type": "spacing", + "$value": "{post.device.spacing.margin.5}" + }, + "inline": { + "$type": "spacing", + "$value": "{post.device.spacing.margin.6}" + } + }, + "padding": { + "inline": { + "start": { + "$type": "spacing", + "$value": "{post.core.dimension.20}" + }, + "end": { + "$type": "spacing", + "$value": "{post.core.dimension.24}" + } + } + }, + "gap": { + "inline": { + "$type": "spacing", + "$value": "{post.core.dimension.16}" + } + }, + "font-weight": { + "$type": "fontWeights", + "$value": "{post.device.font-weight.bold}" + }, + "font-size": { + "$type": "fontSizes", + "$value": "{post.device.font-size.5}" + } + } + } + }, "Components/Breadcrumb": { "post": { "breadcrumb": { @@ -6638,66 +6734,6 @@ } } }, - "Components/Blockquote": { - "post": { - "blockquote": { - "border-width": { - "left": { - "$type": "borderWidth", - "$value": "{post.device.border-width.quote}" - } - }, - "border": { - "left": { - "color": { - "$type": "color", - "$value": "{post.scheme.color.surface.default.stroke}" - }, - "style": { - "$type": "other", - "$value": "{post.core.border-style.solid}" - } - } - }, - "margin": { - "block": { - "$type": "spacing", - "$value": "{post.device.spacing.margin.5}" - }, - "inline": { - "$type": "spacing", - "$value": "{post.device.spacing.margin.6}" - } - }, - "padding": { - "inline": { - "start": { - "$type": "spacing", - "$value": "{post.core.dimension.20}" - }, - "end": { - "$type": "spacing", - "$value": "{post.core.dimension.24}" - } - } - }, - "gap": { - "inline": { - "$type": "spacing", - "$value": "{post.core.dimension.16}" - } - }, - "font-weight": { - "$type": "fontWeights", - "$value": "{post.device.font-weight.bold}" - }, - "font-size": { - "$type": "fontSizes", - "$value": "{post.device.font-size.5}" - } - } - } - }, "Components/Radio button": { "post": { "radio-button": { @@ -7723,11 +7759,11 @@ } }, "inline": { - "text-start": { + "start": { "$type": "spacing", "$value": "{post.device.spacing.padding.inline.1}" }, - "text-end": { + "end": { "$type": "spacing", "$value": "{post.device.spacing.padding.3}" }, @@ -7762,6 +7798,70 @@ "$type": "other", "$value": "{post.core.border-style.dash}" } + }, + "empty": { + "padding": { + "block": { + "$type": "spacing", + "$value": "{post.device.spacing.padding.block.1}" + } + } + }, + "label": { + "empty": { + "padding": { + "block": { + "start": { + "$type": "spacing", + "$value": "{post.device.spacing.padding.block.28}" + } + }, + "inline": { + "start": { + "$type": "spacing", + "$value": "{post.device.spacing.padding.5}" + }, + "end": { + "$type": "spacing", + "$value": "{post.device.spacing.padding.inline.4}" + } + } + } + }, + "validated": { + "padding": { + "inline": { + "end": { + "$type": "spacing", + "$value": "{post.core.dimension.48}" + } + } + } + } + }, + "filled": { + "padding": { + "block": { + "start": { + "$type": "spacing", + "$value": "{post.device.spacing.padding.block.29}" + } + } + } + } + } + }, + "input": { + "validation": { + "icon": { + "position": { + "inline": { + "end": { + "$type": "dimension", + "$value": "{post.device.position.2}" + } + } + } } } } @@ -10881,9 +10981,9 @@ "post.input.padding.block.text2": "16e43ccd63e09b43f7078bfdc6bee6432ea4fe9a", "post.input.padding.block.text-assist": "74fa0091e635d194f2726e8a49d63029f797d7b1", "post.input.padding.block.text5": "be118ff83da708f6758b8dda877fadaea5a24e3d", - "post.input.padding.inline.text-start": "95d346d8cf0d15d92cbb0d838ad1d21e2196d909", - "post.input.padding.inline.text-end": "251080d245b6ce91ef6947cedb9d8710871c1e45", - "post.input.padding.inline.text-assist": "e265e8a8f1e63ac91a7c044560f1c84736e1167f" + "post.input.padding.inline.text-assist": "e265e8a8f1e63ac91a7c044560f1c84736e1167f", + "post.input.padding.inline.start": "95d346d8cf0d15d92cbb0d838ad1d21e2196d909", + "post.input.padding.inline.end": "251080d245b6ce91ef6947cedb9d8710871c1e45" } }, { @@ -11088,6 +11188,7 @@ "Components/Avatar", "Components/Badge", "Components/Banner", + "Components/Blockquote", "Components/Breadcrumb", "Components/Button", "Components/Checkbox", @@ -11103,7 +11204,6 @@ "Components/List simple", "Components/Notifications", "Components/Popover", - "Components/Blockquote", "Components/Radio button", "Components/Segmented button", "Components/Select",