@yahoo/uds 3.157.0 → 3.158.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automated-config/dist/generated/autoVariants.cjs +26 -0
- package/dist/automated-config/dist/generated/autoVariants.d.cts +17 -0
- package/dist/automated-config/dist/generated/autoVariants.d.ts +17 -0
- package/dist/automated-config/dist/generated/autoVariants.js +26 -0
- package/dist/automated-config/dist/generated/generatedConfigs.cjs +3287 -596
- package/dist/automated-config/dist/generated/generatedConfigs.d.cts +350 -12
- package/dist/automated-config/dist/generated/generatedConfigs.d.ts +350 -12
- package/dist/automated-config/dist/generated/generatedConfigs.js +3285 -597
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +276 -45
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +8 -2
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +8 -2
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +276 -45
- package/dist/automated-config/dist/properties.cjs +8 -1
- package/dist/automated-config/dist/properties.d.cts +8 -0
- package/dist/automated-config/dist/properties.d.ts +8 -0
- package/dist/automated-config/dist/properties.js +8 -1
- package/dist/automated-config/dist/types/ComponentConfig.d.cts +3 -1
- package/dist/automated-config/dist/types/ComponentConfig.d.ts +3 -1
- package/dist/automated-config/dist/utils/buildConfigSchema.cjs +48 -33
- package/dist/automated-config/dist/utils/buildConfigSchema.d.cts +14 -4
- package/dist/automated-config/dist/utils/buildConfigSchema.d.ts +14 -4
- package/dist/automated-config/dist/utils/buildConfigSchema.js +49 -34
- package/dist/automated-config/dist/utils/componentStatePseudoStates.cjs +4 -0
- package/dist/automated-config/dist/utils/componentStatePseudoStates.js +4 -1
- package/dist/automated-config/dist/utils/getButtonControlHeight.cjs +129 -0
- package/dist/automated-config/dist/utils/getButtonControlHeight.d.cts +133 -0
- package/dist/automated-config/dist/utils/getButtonControlHeight.d.ts +133 -0
- package/dist/automated-config/dist/utils/getButtonControlHeight.js +122 -0
- package/dist/automated-config/dist/utils/getButtonControlHeightPx.cjs +114 -0
- package/dist/automated-config/dist/utils/getButtonControlHeightPx.d.cts +78 -0
- package/dist/automated-config/dist/utils/getButtonControlHeightPx.d.ts +78 -0
- package/dist/automated-config/dist/utils/getButtonControlHeightPx.js +108 -0
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
- package/dist/automated-config/dist/utils/getConfigVariantPseudoStates.cjs +5 -2
- package/dist/automated-config/dist/utils/getConfigVariantPseudoStates.js +6 -3
- package/dist/automated-config/dist/utils/iconButtonMatchButtonHeight.cjs +110 -0
- package/dist/automated-config/dist/utils/iconButtonMatchButtonHeight.d.cts +19 -0
- package/dist/automated-config/dist/utils/iconButtonMatchButtonHeight.d.ts +19 -0
- package/dist/automated-config/dist/utils/iconButtonMatchButtonHeight.js +108 -0
- package/dist/automated-config/dist/utils/index.cjs +106 -33
- package/dist/automated-config/dist/utils/index.d.cts +16 -4
- package/dist/automated-config/dist/utils/index.d.ts +16 -4
- package/dist/automated-config/dist/utils/index.js +107 -34
- package/dist/automated-config/dist/utils/isConfiguratorPropertyVisible.cjs +15 -0
- package/dist/automated-config/dist/utils/isConfiguratorPropertyVisible.d.cts +20 -0
- package/dist/automated-config/dist/utils/isConfiguratorPropertyVisible.d.ts +20 -0
- package/dist/automated-config/dist/utils/isConfiguratorPropertyVisible.js +15 -0
- package/dist/automated-config/dist/utils/pseudoStateSelectors.cjs +6 -3
- package/dist/automated-config/dist/utils/pseudoStateSelectors.d.cts +1 -1
- package/dist/automated-config/dist/utils/pseudoStateSelectors.d.ts +1 -1
- package/dist/automated-config/dist/utils/pseudoStateSelectors.js +6 -3
- package/dist/components/client/Button.cjs +3 -3
- package/dist/components/client/Button.js +3 -3
- package/dist/components/client/Input/Input.cjs +1 -1
- package/dist/components/client/Input/Input.js +1 -1
- package/dist/components/client/Menu/Menu.Item.cjs +1 -0
- package/dist/components/client/Menu/Menu.Item.js +1 -0
- package/dist/components/client/Select/Select.cjs +179 -0
- package/dist/components/client/Select/Select.d.cts +55 -0
- package/dist/components/client/Select/Select.d.ts +56 -0
- package/dist/components/client/Select/Select.js +176 -0
- package/dist/components/client/Select/SelectContent.cjs +75 -0
- package/dist/components/client/Select/SelectContent.d.cts +44 -0
- package/dist/components/client/Select/SelectContent.d.ts +45 -0
- package/dist/components/client/Select/SelectContent.js +73 -0
- package/dist/components/client/Select/SelectDivider.cjs +63 -0
- package/dist/components/client/Select/SelectDivider.d.cts +44 -0
- package/dist/components/client/Select/SelectDivider.d.ts +45 -0
- package/dist/components/client/Select/SelectDivider.js +61 -0
- package/dist/components/client/Select/SelectHelpText.cjs +51 -0
- package/dist/components/client/Select/SelectHelpText.d.cts +27 -0
- package/dist/components/client/Select/SelectHelpText.d.ts +28 -0
- package/dist/components/client/Select/SelectHelpText.js +48 -0
- package/dist/components/client/Select/SelectItem.cjs +172 -0
- package/dist/components/client/Select/SelectItem.d.cts +29 -0
- package/dist/components/client/Select/SelectItem.d.ts +30 -0
- package/dist/components/client/Select/SelectItem.js +170 -0
- package/dist/components/client/Select/SelectTrigger.cjs +138 -0
- package/dist/components/client/Select/SelectTrigger.d.cts +27 -0
- package/dist/components/client/Select/SelectTrigger.d.ts +28 -0
- package/dist/components/client/Select/SelectTrigger.js +136 -0
- package/dist/components/client/Select/SelectValue.cjs +28 -0
- package/dist/components/client/Select/SelectValue.d.cts +19 -0
- package/dist/components/client/Select/SelectValue.d.ts +20 -0
- package/dist/components/client/Select/SelectValue.js +26 -0
- package/dist/components/client/Select/index.cjs +11 -0
- package/dist/components/client/Select/index.d.cts +6 -0
- package/dist/components/client/Select/index.d.ts +7 -0
- package/dist/components/client/Select/index.js +7 -0
- package/dist/components/client/Select/selectContext.cjs +20 -0
- package/dist/components/client/Select/selectContext.d.cts +23 -0
- package/dist/components/client/Select/selectContext.d.ts +24 -0
- package/dist/components/client/Select/selectContext.js +16 -0
- package/dist/components/client/Select/selectFieldStyles.cjs +85 -0
- package/dist/components/client/Select/selectFieldStyles.d.cts +37 -0
- package/dist/components/client/Select/selectFieldStyles.d.ts +38 -0
- package/dist/components/client/Select/selectFieldStyles.js +75 -0
- package/dist/components/client/index.cjs +8 -0
- package/dist/components/client/index.d.cts +5 -1
- package/dist/components/client/index.d.ts +5 -1
- package/dist/components/client/index.js +5 -1
- package/dist/components/index.cjs +8 -0
- package/dist/components/index.d.cts +5 -1
- package/dist/components/index.d.ts +5 -1
- package/dist/components/index.js +5 -1
- package/dist/config/dist/index.cjs +383 -73
- package/dist/config/dist/index.js +383 -73
- package/dist/css/dist/css/utils.cjs +3 -0
- package/dist/css/dist/css/utils.js +3 -0
- package/dist/css/dist/packages/automated-config/dist/properties.cjs +8 -1
- package/dist/css/dist/packages/automated-config/dist/properties.js +8 -1
- package/dist/css/dist/packages/config/dist/index.cjs +383 -73
- package/dist/css/dist/packages/config/dist/index.js +383 -73
- package/dist/css-tokens/dist/index.cjs +2 -0
- package/dist/css-tokens/dist/index.d.cts +2 -1
- package/dist/css-tokens/dist/index.d.ts +2 -1
- package/dist/css-tokens/dist/index.js +2 -1
- package/dist/index.cjs +34 -0
- package/dist/index.d.cts +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +11 -3
- package/dist/styles/styler.d.cts +29 -12
- package/dist/styles/styler.d.ts +29 -12
- package/dist/styles/variants.d.cts +54 -0
- package/dist/styles/variants.d.ts +54 -0
- package/dist/tailwind/utils/index.cjs +3 -0
- package/dist/tailwind/utils/index.d.cts +2 -1
- package/dist/tailwind/utils/index.d.ts +2 -1
- package/dist/tailwind/utils/index.js +2 -1
- package/dist/tailwind-internal/dist/base/addColorModeVars.cjs +1 -1
- package/dist/tailwind-internal/dist/base/addColorModeVars.js +1 -1
- package/dist/tailwind-internal/dist/base/addColorModeVarsV2.cjs +1 -1
- package/dist/tailwind-internal/dist/base/addColorModeVarsV2.js +1 -1
- package/dist/tailwind-internal/dist/components/getFocusRingStyles.cjs +74 -6
- package/dist/tailwind-internal/dist/components/getFocusRingStyles.d.cts +14 -0
- package/dist/tailwind-internal/dist/components/getFocusRingStyles.d.ts +14 -0
- package/dist/tailwind-internal/dist/components/getFocusRingStyles.js +74 -7
- package/dist/tailwind-internal/dist/components/getResponsiveTextStyles.cjs +1 -1
- package/dist/tailwind-internal/dist/components/getResponsiveTextStyles.js +1 -1
- package/dist/tailwind-internal/dist/index.d.cts +1 -0
- package/dist/tailwind-internal/dist/index.d.ts +1 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/generated/generatedConfigs.cjs +3287 -596
- package/dist/tailwind-internal/dist/packages/automated-config/dist/generated/generatedConfigs.js +3285 -597
- package/dist/tailwind-internal/dist/packages/automated-config/dist/properties.cjs +8 -1
- package/dist/tailwind-internal/dist/packages/automated-config/dist/properties.js +8 -1
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/componentStatePseudoStates.cjs +4 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/componentStatePseudoStates.js +4 -1
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getButtonControlHeight.cjs +126 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/getButtonControlHeight.js +123 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/iconButtonMatchButtonHeight.cjs +20 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/iconButtonMatchButtonHeight.js +20 -0
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/index.cjs +103 -33
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/index.js +104 -34
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/pseudoStateSelectors.cjs +6 -3
- package/dist/tailwind-internal/dist/packages/automated-config/dist/utils/pseudoStateSelectors.js +6 -3
- package/dist/tailwind-internal/dist/packages/config/dist/index.cjs +383 -73
- package/dist/tailwind-internal/dist/packages/config/dist/index.js +383 -73
- package/dist/tailwind-internal/dist/packages/css-tokens/dist/index.cjs +12 -10
- package/dist/tailwind-internal/dist/packages/css-tokens/dist/index.js +3 -2
- package/dist/tailwind-internal/dist/plugins/a11y.cjs +6 -2
- package/dist/tailwind-internal/dist/plugins/a11y.js +6 -2
- package/dist/tailwind-internal/dist/plugins/blurBgFallback.cjs +1 -1
- package/dist/tailwind-internal/dist/plugins/blurBgFallback.js +1 -1
- package/dist/tailwind-internal/dist/plugins/borderRadius.cjs +1 -1
- package/dist/tailwind-internal/dist/plugins/borderRadius.js +1 -1
- package/dist/tailwind-internal/dist/plugins/borderWidth.cjs +1 -1
- package/dist/tailwind-internal/dist/plugins/borderWidth.js +1 -1
- package/dist/tailwind-internal/dist/plugins/colors.cjs +2 -2
- package/dist/tailwind-internal/dist/plugins/colors.js +2 -2
- package/dist/tailwind-internal/dist/plugins/components.cjs +5 -2
- package/dist/tailwind-internal/dist/plugins/components.js +6 -3
- package/dist/tailwind-internal/dist/plugins/elevation.cjs +1 -1
- package/dist/tailwind-internal/dist/plugins/elevation.js +1 -1
- package/dist/tailwind-internal/dist/plugins/shadows.cjs +1 -1
- package/dist/tailwind-internal/dist/plugins/shadows.js +1 -1
- package/dist/tailwind-internal/dist/plugins/typography.cjs +2 -2
- package/dist/tailwind-internal/dist/plugins/typography.js +2 -2
- package/dist/tailwind-internal/dist/utils/getElevationStyles.cjs +1 -1
- package/dist/tailwind-internal/dist/utils/getElevationStyles.js +1 -1
- package/dist/tailwind-internal/dist/utils/getFontStyles.cjs +1 -1
- package/dist/tailwind-internal/dist/utils/getFontStyles.js +1 -1
- package/dist/tailwind-internal/dist/utils/getMotionStyles.cjs +1 -1
- package/dist/tailwind-internal/dist/utils/getMotionStyles.js +1 -1
- package/dist/tailwind-internal/dist/utils/getShadowPresetValues.cjs +1 -1
- package/dist/tailwind-internal/dist/utils/getShadowPresetValues.js +1 -1
- package/dist/tailwind-internal/dist/utils/getShadowStyles.cjs +1 -1
- package/dist/tailwind-internal/dist/utils/getShadowStyles.js +1 -1
- package/dist/tailwind-internal/dist/utils/parseTokens.cjs +2 -2
- package/dist/tailwind-internal/dist/utils/parseTokens.js +2 -2
- package/dist/tokens/automation/configs/index.cjs +3 -0
- package/dist/tokens/automation/configs/index.d.cts +2 -2
- package/dist/tokens/automation/configs/index.d.ts +2 -2
- package/dist/tokens/automation/configs/index.js +2 -2
- package/dist/tokens/automation/index.cjs +25 -0
- package/dist/tokens/automation/index.d.cts +6 -2
- package/dist/tokens/automation/index.d.ts +6 -2
- package/dist/tokens/automation/index.js +6 -2
- package/dist/tokens/consts/cssTokens.cjs +1 -0
- package/dist/tokens/consts/cssTokens.d.cts +2 -2
- package/dist/tokens/consts/cssTokens.d.ts +2 -2
- package/dist/tokens/consts/cssTokens.js +2 -2
- package/dist/tokens/index.cjs +26 -0
- package/dist/tokens/index.d.cts +8 -4
- package/dist/tokens/index.d.ts +8 -4
- package/dist/tokens/index.js +7 -3
- package/dist/tokens/types.d.cts +2 -2
- package/dist/tokens/types.d.ts +2 -2
- package/dist/types/dist/index.d.cts +36 -1
- package/dist/types/dist/index.d.ts +36 -1
- package/dist/uds/generated/componentData.cjs +718 -308
- package/dist/uds/generated/componentData.js +718 -308
- package/dist/uds/generated/migrationSchemaVersion.cjs +1 -1
- package/dist/uds/generated/migrationSchemaVersion.js +1 -1
- package/dist/uds/generated/tailwindPurge.cjs +1501 -315
- package/dist/uds/generated/tailwindPurge.js +1501 -315
- package/generated/componentData.json +897 -398
- package/generated/migrationSchemaVersion.ts +1 -1
- package/generated/tailwindPurge.ts +4 -4
- package/package.json +1 -1
package/dist/styles/styler.d.cts
CHANGED
|
@@ -24,17 +24,17 @@ declare const getStylesInternal: (props?: ({
|
|
|
24
24
|
bannerSizeIcon?: "default" | undefined;
|
|
25
25
|
bannerSizeRoot?: "default" | undefined;
|
|
26
26
|
bannerSizeTitle?: "default" | undefined;
|
|
27
|
-
bannerVariantDescription?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "
|
|
28
|
-
bannerVariantIcon?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "
|
|
29
|
-
bannerVariantRoot?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "
|
|
30
|
-
bannerVariantTitle?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "
|
|
27
|
+
bannerVariantDescription?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "default" | "success" | "success-secondary" | undefined;
|
|
28
|
+
bannerVariantIcon?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "default" | "success" | "success-secondary" | undefined;
|
|
29
|
+
bannerVariantRoot?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "default" | "success" | "success-secondary" | undefined;
|
|
30
|
+
bannerVariantTitle?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "default" | "success" | "success-secondary" | undefined;
|
|
31
31
|
bottomsheetVariantHandleIndicator?: "default" | undefined;
|
|
32
32
|
bottomsheetVariantHeader?: "default" | undefined;
|
|
33
33
|
bottomsheetVariantRoot?: "default" | undefined;
|
|
34
34
|
buttonSizeIcon?: "xs" | "sm" | "md" | "lg" | "default" | undefined;
|
|
35
35
|
buttonSizeRoot?: "xs" | "sm" | "md" | "lg" | "default" | undefined;
|
|
36
|
-
buttonVariantIcon?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "tertiary" | "default" | "
|
|
37
|
-
buttonVariantRoot?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "tertiary" | "default" | "
|
|
36
|
+
buttonVariantIcon?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "tertiary" | "default" | "alert-tertiary" | "brand-tertiary" | "contrast-high" | "contrast-low" | "contrast-medium" | "info-tertiary" | "positive-tertiary" | "warning-tertiary" | undefined;
|
|
37
|
+
buttonVariantRoot?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "tertiary" | "default" | "alert-tertiary" | "brand-tertiary" | "contrast-high" | "contrast-low" | "contrast-medium" | "info-tertiary" | "positive-tertiary" | "warning-tertiary" | undefined;
|
|
38
38
|
checkboxSizeCheckbox?: "sm" | "md" | "default" | undefined;
|
|
39
39
|
checkboxSizeRoot?: "sm" | "md" | "default" | undefined;
|
|
40
40
|
checkboxVariantCheckbox?: "primary" | "secondary" | "alert" | "alert-secondary" | "default" | undefined;
|
|
@@ -114,6 +114,7 @@ declare const getStylesInternal: (props?: ({
|
|
|
114
114
|
menuitemSizeEndIcon?: "default" | undefined;
|
|
115
115
|
menuitemSizeRoot?: "default" | undefined;
|
|
116
116
|
menuitemSizeStartIcon?: "default" | undefined;
|
|
117
|
+
menuitemSizeText?: "default" | undefined;
|
|
117
118
|
modalSizeActions?: "default" | undefined;
|
|
118
119
|
modalSizeCloseIcon?: "default" | undefined;
|
|
119
120
|
modalSizeCloseIconContainer?: "default" | undefined;
|
|
@@ -159,6 +160,22 @@ declare const getStylesInternal: (props?: ({
|
|
|
159
160
|
radioVariantValueRadioCircle?: "checked" | "unchecked" | undefined;
|
|
160
161
|
radioVariantValueRoot?: "checked" | "unchecked" | undefined;
|
|
161
162
|
scrimVariantRoot?: "default" | undefined;
|
|
163
|
+
selectVariantRoot?: "default" | undefined;
|
|
164
|
+
selectcontentSizeRoot?: "default" | undefined;
|
|
165
|
+
selectcontentVariantRoot?: "default" | undefined;
|
|
166
|
+
selectitemDividerVariantLine?: "default" | undefined;
|
|
167
|
+
selectitemDividerVariantRoot?: "default" | undefined;
|
|
168
|
+
selectitemDividerVariantText?: "default" | undefined;
|
|
169
|
+
selectitemItemVariantActiveIcon?: "off" | "on" | undefined;
|
|
170
|
+
selectitemItemVariantActiveRoot?: "off" | "on" | undefined;
|
|
171
|
+
selectitemItemVariantActiveText?: "off" | "on" | undefined;
|
|
172
|
+
selectitemItemVariantIcon?: "default" | undefined;
|
|
173
|
+
selectitemItemVariantRoot?: "default" | undefined;
|
|
174
|
+
selectitemItemVariantText?: "default" | undefined;
|
|
175
|
+
selectitemSizeEndIcon?: "default" | undefined;
|
|
176
|
+
selectitemSizeRoot?: "default" | undefined;
|
|
177
|
+
selectitemSizeStartIcon?: "default" | undefined;
|
|
178
|
+
selectitemSizeText?: "default" | undefined;
|
|
162
179
|
switchSizeHandle?: "sm" | "md" | "default" | undefined;
|
|
163
180
|
switchSizeHandleIcon?: "sm" | "md" | "default" | undefined;
|
|
164
181
|
switchSizeRoot?: "sm" | "md" | "default" | undefined;
|
|
@@ -183,10 +200,10 @@ declare const getStylesInternal: (props?: ({
|
|
|
183
200
|
toastSizeIcon?: "default" | undefined;
|
|
184
201
|
toastSizeLabel?: "default" | undefined;
|
|
185
202
|
toastSizeRoot?: "default" | undefined;
|
|
186
|
-
toastVariantActionButton?: "warning" | "info" | "loading" | "
|
|
187
|
-
toastVariantCloseIcon?: "warning" | "info" | "loading" | "
|
|
188
|
-
toastVariantIcon?: "warning" | "info" | "loading" | "
|
|
189
|
-
toastVariantRoot?: "warning" | "info" | "loading" | "
|
|
203
|
+
toastVariantActionButton?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
204
|
+
toastVariantCloseIcon?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
205
|
+
toastVariantIcon?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
206
|
+
toastVariantRoot?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
190
207
|
tooltipSizeBody?: "default" | undefined;
|
|
191
208
|
tooltipSizeEndContent?: "default" | undefined;
|
|
192
209
|
tooltipSizeIcon?: "default" | undefined;
|
|
@@ -201,10 +218,10 @@ declare const getStylesInternal: (props?: ({
|
|
|
201
218
|
placeholderColor?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "tertiary" | "muted" | "on-color" | undefined;
|
|
202
219
|
fontFamily?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "sans" | "sans-alt" | "serif" | "serif-alt" | "mono" | undefined;
|
|
203
220
|
fontSize?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
204
|
-
fontWeight?: "black" | "thin" | "medium" | "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "
|
|
221
|
+
fontWeight?: "black" | "thin" | "medium" | "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "bold" | "extralight" | "light" | "regular" | "semibold" | "extrabold" | undefined;
|
|
205
222
|
lineHeight?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
206
223
|
letterSpacing?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
207
|
-
textAlign?: "center" | "
|
|
224
|
+
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
|
208
225
|
textTransform?: "none" | "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
|
209
226
|
spacing?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
210
227
|
spacingHorizontal?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
package/dist/styles/styler.d.ts
CHANGED
|
@@ -24,17 +24,17 @@ declare const getStylesInternal: (props?: ({
|
|
|
24
24
|
bannerSizeIcon?: "default" | undefined;
|
|
25
25
|
bannerSizeRoot?: "default" | undefined;
|
|
26
26
|
bannerSizeTitle?: "default" | undefined;
|
|
27
|
-
bannerVariantDescription?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "
|
|
28
|
-
bannerVariantIcon?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "
|
|
29
|
-
bannerVariantRoot?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "
|
|
30
|
-
bannerVariantTitle?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "
|
|
27
|
+
bannerVariantDescription?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "default" | "success" | "success-secondary" | undefined;
|
|
28
|
+
bannerVariantIcon?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "default" | "success" | "success-secondary" | undefined;
|
|
29
|
+
bannerVariantRoot?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "default" | "success" | "success-secondary" | undefined;
|
|
30
|
+
bannerVariantTitle?: "primary" | "secondary" | "brand" | "alert" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "warning-secondary" | "info-secondary" | "default" | "success" | "success-secondary" | undefined;
|
|
31
31
|
bottomsheetVariantHandleIndicator?: "default" | undefined;
|
|
32
32
|
bottomsheetVariantHeader?: "default" | undefined;
|
|
33
33
|
bottomsheetVariantRoot?: "default" | undefined;
|
|
34
34
|
buttonSizeIcon?: "xs" | "sm" | "md" | "lg" | "default" | undefined;
|
|
35
35
|
buttonSizeRoot?: "xs" | "sm" | "md" | "lg" | "default" | undefined;
|
|
36
|
-
buttonVariantIcon?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "tertiary" | "default" | "
|
|
37
|
-
buttonVariantRoot?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "tertiary" | "default" | "
|
|
36
|
+
buttonVariantIcon?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "tertiary" | "default" | "alert-tertiary" | "brand-tertiary" | "contrast-high" | "contrast-low" | "contrast-medium" | "info-tertiary" | "positive-tertiary" | "warning-tertiary" | undefined;
|
|
37
|
+
buttonVariantRoot?: "primary" | "secondary" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "tertiary" | "default" | "alert-tertiary" | "brand-tertiary" | "contrast-high" | "contrast-low" | "contrast-medium" | "info-tertiary" | "positive-tertiary" | "warning-tertiary" | undefined;
|
|
38
38
|
checkboxSizeCheckbox?: "sm" | "md" | "default" | undefined;
|
|
39
39
|
checkboxSizeRoot?: "sm" | "md" | "default" | undefined;
|
|
40
40
|
checkboxVariantCheckbox?: "primary" | "secondary" | "alert" | "alert-secondary" | "default" | undefined;
|
|
@@ -114,6 +114,7 @@ declare const getStylesInternal: (props?: ({
|
|
|
114
114
|
menuitemSizeEndIcon?: "default" | undefined;
|
|
115
115
|
menuitemSizeRoot?: "default" | undefined;
|
|
116
116
|
menuitemSizeStartIcon?: "default" | undefined;
|
|
117
|
+
menuitemSizeText?: "default" | undefined;
|
|
117
118
|
modalSizeActions?: "default" | undefined;
|
|
118
119
|
modalSizeCloseIcon?: "default" | undefined;
|
|
119
120
|
modalSizeCloseIconContainer?: "default" | undefined;
|
|
@@ -159,6 +160,22 @@ declare const getStylesInternal: (props?: ({
|
|
|
159
160
|
radioVariantValueRadioCircle?: "checked" | "unchecked" | undefined;
|
|
160
161
|
radioVariantValueRoot?: "checked" | "unchecked" | undefined;
|
|
161
162
|
scrimVariantRoot?: "default" | undefined;
|
|
163
|
+
selectVariantRoot?: "default" | undefined;
|
|
164
|
+
selectcontentSizeRoot?: "default" | undefined;
|
|
165
|
+
selectcontentVariantRoot?: "default" | undefined;
|
|
166
|
+
selectitemDividerVariantLine?: "default" | undefined;
|
|
167
|
+
selectitemDividerVariantRoot?: "default" | undefined;
|
|
168
|
+
selectitemDividerVariantText?: "default" | undefined;
|
|
169
|
+
selectitemItemVariantActiveIcon?: "off" | "on" | undefined;
|
|
170
|
+
selectitemItemVariantActiveRoot?: "off" | "on" | undefined;
|
|
171
|
+
selectitemItemVariantActiveText?: "off" | "on" | undefined;
|
|
172
|
+
selectitemItemVariantIcon?: "default" | undefined;
|
|
173
|
+
selectitemItemVariantRoot?: "default" | undefined;
|
|
174
|
+
selectitemItemVariantText?: "default" | undefined;
|
|
175
|
+
selectitemSizeEndIcon?: "default" | undefined;
|
|
176
|
+
selectitemSizeRoot?: "default" | undefined;
|
|
177
|
+
selectitemSizeStartIcon?: "default" | undefined;
|
|
178
|
+
selectitemSizeText?: "default" | undefined;
|
|
162
179
|
switchSizeHandle?: "sm" | "md" | "default" | undefined;
|
|
163
180
|
switchSizeHandleIcon?: "sm" | "md" | "default" | undefined;
|
|
164
181
|
switchSizeRoot?: "sm" | "md" | "default" | undefined;
|
|
@@ -183,10 +200,10 @@ declare const getStylesInternal: (props?: ({
|
|
|
183
200
|
toastSizeIcon?: "default" | undefined;
|
|
184
201
|
toastSizeLabel?: "default" | undefined;
|
|
185
202
|
toastSizeRoot?: "default" | undefined;
|
|
186
|
-
toastVariantActionButton?: "warning" | "info" | "loading" | "
|
|
187
|
-
toastVariantCloseIcon?: "warning" | "info" | "loading" | "
|
|
188
|
-
toastVariantIcon?: "warning" | "info" | "loading" | "
|
|
189
|
-
toastVariantRoot?: "warning" | "info" | "loading" | "
|
|
203
|
+
toastVariantActionButton?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
204
|
+
toastVariantCloseIcon?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
205
|
+
toastVariantIcon?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
206
|
+
toastVariantRoot?: "warning" | "info" | "loading" | "default" | "success" | "error" | undefined;
|
|
190
207
|
tooltipSizeBody?: "default" | undefined;
|
|
191
208
|
tooltipSizeEndContent?: "default" | undefined;
|
|
192
209
|
tooltipSizeIcon?: "default" | undefined;
|
|
@@ -201,10 +218,10 @@ declare const getStylesInternal: (props?: ({
|
|
|
201
218
|
placeholderColor?: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "white" | "black" | "transparent" | "current" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "tertiary" | "muted" | "on-color" | undefined;
|
|
202
219
|
fontFamily?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "sans" | "sans-alt" | "serif" | "serif-alt" | "mono" | undefined;
|
|
203
220
|
fontSize?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
204
|
-
fontWeight?: "black" | "thin" | "medium" | "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "
|
|
221
|
+
fontWeight?: "black" | "thin" | "medium" | "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "bold" | "extralight" | "light" | "regular" | "semibold" | "extrabold" | undefined;
|
|
205
222
|
lineHeight?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
206
223
|
letterSpacing?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | undefined;
|
|
207
|
-
textAlign?: "center" | "
|
|
224
|
+
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
|
208
225
|
textTransform?: "none" | "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "display1/emphasized" | "display2/emphasized" | "display3/emphasized" | "title1/emphasized" | "title2/emphasized" | "title3/emphasized" | "title4/emphasized" | "headline1/emphasized" | "body1/emphasized" | "label1/emphasized" | "label2/emphasized" | "label3/emphasized" | "label4/emphasized" | "caption1/emphasized" | "caption2/emphasized" | "legal1/emphasized" | "ui1/emphasized" | "ui2/emphasized" | "ui3/emphasized" | "ui4/emphasized" | "ui5/emphasized" | "ui6/emphasized" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
|
209
226
|
spacing?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
210
227
|
spacingHorizontal?: "0" | "1" | "2" | "3" | "4" | "5" | "px" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | undefined;
|
|
@@ -630,6 +630,9 @@ declare const variants: {
|
|
|
630
630
|
menuitemSizeStartIcon: {
|
|
631
631
|
readonly default: "uds-menuitem-size-default-starticon";
|
|
632
632
|
};
|
|
633
|
+
menuitemSizeText: {
|
|
634
|
+
readonly default: "uds-menuitem-size-default-text";
|
|
635
|
+
};
|
|
633
636
|
modalSizeActions: {
|
|
634
637
|
readonly default: "uds-modal-size-default-actions";
|
|
635
638
|
};
|
|
@@ -812,6 +815,57 @@ declare const variants: {
|
|
|
812
815
|
scrimVariantRoot: {
|
|
813
816
|
readonly default: "uds-scrim-variant-default-root";
|
|
814
817
|
};
|
|
818
|
+
selectVariantRoot: {
|
|
819
|
+
readonly default: "uds-select-variant-default-root";
|
|
820
|
+
};
|
|
821
|
+
selectcontentSizeRoot: {
|
|
822
|
+
readonly default: "uds-selectcontent-size-default-root";
|
|
823
|
+
};
|
|
824
|
+
selectcontentVariantRoot: {
|
|
825
|
+
readonly default: "uds-selectcontent-variant-default-root";
|
|
826
|
+
};
|
|
827
|
+
selectitemDividerVariantLine: {
|
|
828
|
+
readonly default: "uds-selectitem-divider-variant-default-line";
|
|
829
|
+
};
|
|
830
|
+
selectitemDividerVariantRoot: {
|
|
831
|
+
readonly default: "uds-selectitem-divider-variant-default-root";
|
|
832
|
+
};
|
|
833
|
+
selectitemDividerVariantText: {
|
|
834
|
+
readonly default: "uds-selectitem-divider-variant-default-text";
|
|
835
|
+
};
|
|
836
|
+
selectitemItemVariantActiveIcon: {
|
|
837
|
+
readonly off: "uds-selectitem-item-variant-active-off-icon";
|
|
838
|
+
readonly on: "uds-selectitem-item-variant-active-on-icon";
|
|
839
|
+
};
|
|
840
|
+
selectitemItemVariantActiveRoot: {
|
|
841
|
+
readonly off: "uds-selectitem-item-variant-active-off-root";
|
|
842
|
+
readonly on: "uds-selectitem-item-variant-active-on-root";
|
|
843
|
+
};
|
|
844
|
+
selectitemItemVariantActiveText: {
|
|
845
|
+
readonly off: "uds-selectitem-item-variant-active-off-text";
|
|
846
|
+
readonly on: "uds-selectitem-item-variant-active-on-text";
|
|
847
|
+
};
|
|
848
|
+
selectitemItemVariantIcon: {
|
|
849
|
+
readonly default: "uds-selectitem-item-variant-default-icon";
|
|
850
|
+
};
|
|
851
|
+
selectitemItemVariantRoot: {
|
|
852
|
+
readonly default: "uds-selectitem-item-variant-default-root";
|
|
853
|
+
};
|
|
854
|
+
selectitemItemVariantText: {
|
|
855
|
+
readonly default: "uds-selectitem-item-variant-default-text";
|
|
856
|
+
};
|
|
857
|
+
selectitemSizeEndIcon: {
|
|
858
|
+
readonly default: "uds-selectitem-size-default-endicon";
|
|
859
|
+
};
|
|
860
|
+
selectitemSizeRoot: {
|
|
861
|
+
readonly default: "uds-selectitem-size-default-root";
|
|
862
|
+
};
|
|
863
|
+
selectitemSizeStartIcon: {
|
|
864
|
+
readonly default: "uds-selectitem-size-default-starticon";
|
|
865
|
+
};
|
|
866
|
+
selectitemSizeText: {
|
|
867
|
+
readonly default: "uds-selectitem-size-default-text";
|
|
868
|
+
};
|
|
815
869
|
switchSizeHandle: {
|
|
816
870
|
readonly default: "uds-switch-size-default-handle";
|
|
817
871
|
readonly md: "uds-switch-size-md-handle";
|
|
@@ -630,6 +630,9 @@ declare const variants: {
|
|
|
630
630
|
menuitemSizeStartIcon: {
|
|
631
631
|
readonly default: "uds-menuitem-size-default-starticon";
|
|
632
632
|
};
|
|
633
|
+
menuitemSizeText: {
|
|
634
|
+
readonly default: "uds-menuitem-size-default-text";
|
|
635
|
+
};
|
|
633
636
|
modalSizeActions: {
|
|
634
637
|
readonly default: "uds-modal-size-default-actions";
|
|
635
638
|
};
|
|
@@ -812,6 +815,57 @@ declare const variants: {
|
|
|
812
815
|
scrimVariantRoot: {
|
|
813
816
|
readonly default: "uds-scrim-variant-default-root";
|
|
814
817
|
};
|
|
818
|
+
selectVariantRoot: {
|
|
819
|
+
readonly default: "uds-select-variant-default-root";
|
|
820
|
+
};
|
|
821
|
+
selectcontentSizeRoot: {
|
|
822
|
+
readonly default: "uds-selectcontent-size-default-root";
|
|
823
|
+
};
|
|
824
|
+
selectcontentVariantRoot: {
|
|
825
|
+
readonly default: "uds-selectcontent-variant-default-root";
|
|
826
|
+
};
|
|
827
|
+
selectitemDividerVariantLine: {
|
|
828
|
+
readonly default: "uds-selectitem-divider-variant-default-line";
|
|
829
|
+
};
|
|
830
|
+
selectitemDividerVariantRoot: {
|
|
831
|
+
readonly default: "uds-selectitem-divider-variant-default-root";
|
|
832
|
+
};
|
|
833
|
+
selectitemDividerVariantText: {
|
|
834
|
+
readonly default: "uds-selectitem-divider-variant-default-text";
|
|
835
|
+
};
|
|
836
|
+
selectitemItemVariantActiveIcon: {
|
|
837
|
+
readonly off: "uds-selectitem-item-variant-active-off-icon";
|
|
838
|
+
readonly on: "uds-selectitem-item-variant-active-on-icon";
|
|
839
|
+
};
|
|
840
|
+
selectitemItemVariantActiveRoot: {
|
|
841
|
+
readonly off: "uds-selectitem-item-variant-active-off-root";
|
|
842
|
+
readonly on: "uds-selectitem-item-variant-active-on-root";
|
|
843
|
+
};
|
|
844
|
+
selectitemItemVariantActiveText: {
|
|
845
|
+
readonly off: "uds-selectitem-item-variant-active-off-text";
|
|
846
|
+
readonly on: "uds-selectitem-item-variant-active-on-text";
|
|
847
|
+
};
|
|
848
|
+
selectitemItemVariantIcon: {
|
|
849
|
+
readonly default: "uds-selectitem-item-variant-default-icon";
|
|
850
|
+
};
|
|
851
|
+
selectitemItemVariantRoot: {
|
|
852
|
+
readonly default: "uds-selectitem-item-variant-default-root";
|
|
853
|
+
};
|
|
854
|
+
selectitemItemVariantText: {
|
|
855
|
+
readonly default: "uds-selectitem-item-variant-default-text";
|
|
856
|
+
};
|
|
857
|
+
selectitemSizeEndIcon: {
|
|
858
|
+
readonly default: "uds-selectitem-size-default-endicon";
|
|
859
|
+
};
|
|
860
|
+
selectitemSizeRoot: {
|
|
861
|
+
readonly default: "uds-selectitem-size-default-root";
|
|
862
|
+
};
|
|
863
|
+
selectitemSizeStartIcon: {
|
|
864
|
+
readonly default: "uds-selectitem-size-default-starticon";
|
|
865
|
+
};
|
|
866
|
+
selectitemSizeText: {
|
|
867
|
+
readonly default: "uds-selectitem-size-default-text";
|
|
868
|
+
};
|
|
815
869
|
switchSizeHandle: {
|
|
816
870
|
readonly default: "uds-switch-size-default-handle";
|
|
817
871
|
readonly md: "uds-switch-size-md-handle";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require_getInputStyles = require("../../tailwind-internal/dist/components/getInputStyles.cjs");
|
|
4
4
|
const require_defaultTailwindThemeAsUdsConfig = require("../../tailwind-internal/dist/defaultTailwindThemeAsUdsConfig.cjs");
|
|
5
|
+
const require_getFocusRingStyles = require("../../tailwind-internal/dist/components/getFocusRingStyles.cjs");
|
|
5
6
|
const require_composeTailwindPlugins = require("../../tailwind-internal/dist/utils/composeTailwindPlugins.cjs");
|
|
6
7
|
const require_getColorModeStyles = require("../../tailwind-internal/dist/utils/getColorModeStyles.cjs");
|
|
7
8
|
const require_opacity = require("../../tailwind-internal/dist/utils/opacity.cjs");
|
|
@@ -24,6 +25,8 @@ exports.composeTailwindPlugins = require_composeTailwindPlugins.composeTailwindP
|
|
|
24
25
|
exports.getBaseTextVars = require_getResponsiveTextStyles.getBaseTextVars;
|
|
25
26
|
exports.getColorModeStyles = require_getColorModeStyles.getColorModeStyles;
|
|
26
27
|
exports.getElevationStyles = require_getElevationStyles.getElevationStyles;
|
|
28
|
+
exports.getFocusRingStyleRules = require_getFocusRingStyles.getFocusRingStyleRules;
|
|
29
|
+
exports.getFocusRingStyles = require_getFocusRingStyles.getFocusRingStyles;
|
|
27
30
|
exports.getFontFaceDeclarations = require_getFontFaceDeclarations.getFontFaceDeclarations;
|
|
28
31
|
exports.getFontStyles = require_getFontStyles.getFontStyles;
|
|
29
32
|
exports.getIconStyles = require_getIconStyles.getIconStyles;
|
|
@@ -7,6 +7,7 @@ import { getUDSContent, tailwindPlugin } from "../../tailwind-internal/dist/tail
|
|
|
7
7
|
import { parseOpacityStep } from "../../tailwind-internal/dist/utils/opacity.cjs";
|
|
8
8
|
import { WebTokens, parseTokens } from "../../tailwind-internal/dist/utils/parseTokens.cjs";
|
|
9
9
|
import { PreserveVarsOptions, preserveVars, preserveVarsCleanup } from "../../tailwind-internal/dist/utils/postcssPreserveVars.cjs";
|
|
10
|
+
import { getFocusRingStyleRules, getFocusRingStyles } from "../../tailwind-internal/dist/components/getFocusRingStyles.cjs";
|
|
10
11
|
import { getIconStyles } from "../../tailwind-internal/dist/components/getIconStyles.cjs";
|
|
11
12
|
import { getBaseTextVars, getResponsiveTextStyles, textVariantsSafe } from "../../tailwind-internal/dist/components/getResponsiveTextStyles.cjs";
|
|
12
13
|
import { addFontsPlugin } from "../../tailwind-internal/dist/utils/addFontsPlugin.cjs";
|
|
@@ -18,4 +19,4 @@ import { getScaleModeStyles } from "../../tailwind-internal/dist/utils/getScaleM
|
|
|
18
19
|
import { getShadowPresetValues } from "../../tailwind-internal/dist/utils/getShadowPresetValues.cjs";
|
|
19
20
|
import { getShadowStyles } from "../../tailwind-internal/dist/utils/getShadowStyles.cjs";
|
|
20
21
|
import { getShadowVars } from "../../tailwind-internal/dist/utils/getShadowVars.cjs";
|
|
21
|
-
export { type FontFamilyOverrides, type PreserveVarsOptions, type TailwindPluginOptions, type WebTokens, addFontsPlugin, composeTailwindPlugins, getBaseTextVars, getColorModeStyles, getElevationStyles, getFontFaceDeclarations, getFontStyles, getIconStyles, getInputStyles, getMotionStyles, getResponsiveTextStyles, getScaleModeStyles, getShadowPresetValues, getShadowStyles, getShadowVars, getUDSContent, parseOpacityStep, parseTokens, preserveVars, preserveVarsCleanup, tailwindPlugin, textVariantsSafe, udsToTailwindMap };
|
|
22
|
+
export { type FontFamilyOverrides, type PreserveVarsOptions, type TailwindPluginOptions, type WebTokens, addFontsPlugin, composeTailwindPlugins, getBaseTextVars, getColorModeStyles, getElevationStyles, getFocusRingStyleRules, getFocusRingStyles, getFontFaceDeclarations, getFontStyles, getIconStyles, getInputStyles, getMotionStyles, getResponsiveTextStyles, getScaleModeStyles, getShadowPresetValues, getShadowStyles, getShadowVars, getUDSContent, parseOpacityStep, parseTokens, preserveVars, preserveVarsCleanup, tailwindPlugin, textVariantsSafe, udsToTailwindMap };
|
|
@@ -7,6 +7,7 @@ import { getUDSContent, tailwindPlugin } from "../../tailwind-internal/dist/tail
|
|
|
7
7
|
import { parseOpacityStep } from "../../tailwind-internal/dist/utils/opacity.js";
|
|
8
8
|
import { WebTokens, parseTokens } from "../../tailwind-internal/dist/utils/parseTokens.js";
|
|
9
9
|
import { PreserveVarsOptions, preserveVars, preserveVarsCleanup } from "../../tailwind-internal/dist/utils/postcssPreserveVars.js";
|
|
10
|
+
import { getFocusRingStyleRules, getFocusRingStyles } from "../../tailwind-internal/dist/components/getFocusRingStyles.js";
|
|
10
11
|
import { getIconStyles } from "../../tailwind-internal/dist/components/getIconStyles.js";
|
|
11
12
|
import { getBaseTextVars, getResponsiveTextStyles, textVariantsSafe } from "../../tailwind-internal/dist/components/getResponsiveTextStyles.js";
|
|
12
13
|
import { addFontsPlugin } from "../../tailwind-internal/dist/utils/addFontsPlugin.js";
|
|
@@ -18,4 +19,4 @@ import { getScaleModeStyles } from "../../tailwind-internal/dist/utils/getScaleM
|
|
|
18
19
|
import { getShadowPresetValues } from "../../tailwind-internal/dist/utils/getShadowPresetValues.js";
|
|
19
20
|
import { getShadowStyles } from "../../tailwind-internal/dist/utils/getShadowStyles.js";
|
|
20
21
|
import { getShadowVars } from "../../tailwind-internal/dist/utils/getShadowVars.js";
|
|
21
|
-
export { type FontFamilyOverrides, type PreserveVarsOptions, type TailwindPluginOptions, type WebTokens, addFontsPlugin, composeTailwindPlugins, getBaseTextVars, getColorModeStyles, getElevationStyles, getFontFaceDeclarations, getFontStyles, getIconStyles, getInputStyles, getMotionStyles, getResponsiveTextStyles, getScaleModeStyles, getShadowPresetValues, getShadowStyles, getShadowVars, getUDSContent, parseOpacityStep, parseTokens, preserveVars, preserveVarsCleanup, tailwindPlugin, textVariantsSafe, udsToTailwindMap };
|
|
22
|
+
export { type FontFamilyOverrides, type PreserveVarsOptions, type TailwindPluginOptions, type WebTokens, addFontsPlugin, composeTailwindPlugins, getBaseTextVars, getColorModeStyles, getElevationStyles, getFocusRingStyleRules, getFocusRingStyles, getFontFaceDeclarations, getFontStyles, getIconStyles, getInputStyles, getMotionStyles, getResponsiveTextStyles, getScaleModeStyles, getShadowPresetValues, getShadowStyles, getShadowVars, getUDSContent, parseOpacityStep, parseTokens, preserveVars, preserveVarsCleanup, tailwindPlugin, textVariantsSafe, udsToTailwindMap };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
import { getInputStyles } from "../../tailwind-internal/dist/components/getInputStyles.js";
|
|
3
3
|
import { udsToTailwindMap } from "../../tailwind-internal/dist/defaultTailwindThemeAsUdsConfig.js";
|
|
4
|
+
import { getFocusRingStyleRules, getFocusRingStyles } from "../../tailwind-internal/dist/components/getFocusRingStyles.js";
|
|
4
5
|
import { composeTailwindPlugins } from "../../tailwind-internal/dist/utils/composeTailwindPlugins.js";
|
|
5
6
|
import { getColorModeStyles } from "../../tailwind-internal/dist/utils/getColorModeStyles.js";
|
|
6
7
|
import { parseOpacityStep } from "../../tailwind-internal/dist/utils/opacity.js";
|
|
@@ -18,4 +19,4 @@ import { getUDSContent, tailwindPlugin } from "../../tailwind-internal/dist/tail
|
|
|
18
19
|
import { preserveVars, preserveVarsCleanup } from "../../tailwind-internal/dist/utils/postcssPreserveVars.js";
|
|
19
20
|
import { addFontsPlugin } from "../../tailwind-internal/dist/utils/addFontsPlugin.js";
|
|
20
21
|
import { getShadowVars } from "../../tailwind-internal/dist/utils/getShadowVars.js";
|
|
21
|
-
export { addFontsPlugin, composeTailwindPlugins, getBaseTextVars, getColorModeStyles, getElevationStyles, getFontFaceDeclarations, getFontStyles, getIconStyles, getInputStyles, getMotionStyles, getResponsiveTextStyles, getScaleModeStyles, getShadowPresetValues, getShadowStyles, getShadowVars, getUDSContent, parseOpacityStep, parseTokens, preserveVars, preserveVarsCleanup, tailwindPlugin, textVariantsSafe, udsToTailwindMap };
|
|
22
|
+
export { addFontsPlugin, composeTailwindPlugins, getBaseTextVars, getColorModeStyles, getElevationStyles, getFocusRingStyleRules, getFocusRingStyles, getFontFaceDeclarations, getFontStyles, getIconStyles, getInputStyles, getMotionStyles, getResponsiveTextStyles, getScaleModeStyles, getShadowPresetValues, getShadowStyles, getShadowVars, getUDSContent, parseOpacityStep, parseTokens, preserveVars, preserveVarsCleanup, tailwindPlugin, textVariantsSafe, udsToTailwindMap };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
-
const require_getColorModeStyles = require("../utils/getColorModeStyles.cjs");
|
|
4
3
|
const require_index = require("../packages/css-tokens/dist/index.cjs");
|
|
4
|
+
const require_getColorModeStyles = require("../utils/getColorModeStyles.cjs");
|
|
5
5
|
const require_index$1 = require("../packages/modes/dist/index.cjs");
|
|
6
6
|
let lodash_es = require("lodash-es");
|
|
7
7
|
//#region ../tailwind-internal/dist/base/addColorModeVars.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
import { getColorModeStyles } from "../utils/getColorModeStyles.js";
|
|
3
2
|
import { DARK_COLOR_MODE_CLASSNAME, LIGHT_COLOR_MODE_CLASSNAME } from "../packages/css-tokens/dist/index.js";
|
|
3
|
+
import { getColorModeStyles } from "../utils/getColorModeStyles.js";
|
|
4
4
|
import { DEFAULT_COLOR_MODE } from "../packages/modes/dist/index.js";
|
|
5
5
|
import { isString } from "lodash-es";
|
|
6
6
|
//#region ../tailwind-internal/dist/base/addColorModeVars.js
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
-
const require_getColorModeStyles = require("../utils/getColorModeStyles.cjs");
|
|
4
3
|
const require_index = require("../packages/css-tokens/dist/index.cjs");
|
|
4
|
+
const require_getColorModeStyles = require("../utils/getColorModeStyles.cjs");
|
|
5
5
|
const require_index$1 = require("../packages/modes/dist/index.cjs");
|
|
6
6
|
let lodash_es = require("lodash-es");
|
|
7
7
|
//#region ../tailwind-internal/dist/base/addColorModeVarsV2.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
-
import { getColorModeStyles } from "../utils/getColorModeStyles.js";
|
|
3
2
|
import { DARK_COLOR_MODE_CLASSNAME, INVERT_COLOR_MODE_CLASSNAME, LIGHT_COLOR_MODE_CLASSNAME, SYSTEM_COLOR_MODE_CLASSNAME } from "../packages/css-tokens/dist/index.js";
|
|
3
|
+
import { getColorModeStyles } from "../utils/getColorModeStyles.js";
|
|
4
4
|
import { DEFAULT_COLOR_MODE } from "../packages/modes/dist/index.js";
|
|
5
5
|
import { isString } from "lodash-es";
|
|
6
6
|
//#region ../tailwind-internal/dist/base/addColorModeVarsV2.js
|
|
@@ -2,23 +2,91 @@
|
|
|
2
2
|
const require_index = require("../packages/css-tokens/dist/index.cjs");
|
|
3
3
|
//#region ../tailwind-internal/dist/components/getFocusRingStyles.js
|
|
4
4
|
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
|
|
5
|
-
const
|
|
5
|
+
const ringOutlineStyles = {
|
|
6
6
|
outlineOffset: "var(--uds-outline-offset)",
|
|
7
7
|
outlineWidth: "var(--uds-outline-width)",
|
|
8
8
|
outlineColor: "var(--uds-outline-color)",
|
|
9
9
|
outlineStyle: "var(--uds-outline-style)"
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
+
* Shadow-based focus ring for elements that receive focus directly and do not
|
|
13
|
+
* use `outline` for their resting border.
|
|
14
|
+
*/
|
|
15
|
+
const ringShadowStyles = { boxShadow: "0 0 0 var(--uds-outline-offset) transparent, 0 0 0 calc(var(--uds-outline-offset) + var(--uds-outline-width)) var(--uds-outline-color)" };
|
|
16
|
+
/**
|
|
17
|
+
* Focus ring for outline-border wrappers (Input/Select) that delegate focus to a
|
|
18
|
+
* child via `.uds-ring-within`. A `::after` ring avoids fighting the inset
|
|
19
|
+
* `outline` border on the same element — box-shadow cannot reliably show the
|
|
20
|
+
* offset gap when an outline border is also present.
|
|
21
|
+
*/
|
|
22
|
+
const ringShadowWithinHostStyles = { position: "relative" };
|
|
23
|
+
const ringShadowWithinAfterStyles = {
|
|
24
|
+
content: "\"\"",
|
|
25
|
+
position: "absolute",
|
|
26
|
+
top: "calc(-1 * (var(--uds-outline-offset) + var(--uds-outline-width)))",
|
|
27
|
+
right: "calc(-1 * (var(--uds-outline-offset) + var(--uds-outline-width)))",
|
|
28
|
+
bottom: "calc(-1 * (var(--uds-outline-offset) + var(--uds-outline-width)))",
|
|
29
|
+
left: "calc(-1 * (var(--uds-outline-offset) + var(--uds-outline-width)))",
|
|
30
|
+
border: "var(--uds-outline-width) solid var(--uds-outline-color)",
|
|
31
|
+
borderRadius: "calc(var(--uds-nested-border-radius-size) + var(--uds-outline-offset) + var(--uds-outline-width))",
|
|
32
|
+
pointerEvents: "none"
|
|
33
|
+
};
|
|
34
|
+
const ringWithinFocusResetStyles = { outline: "none" };
|
|
35
|
+
/** Input/select wrappers use outline for borders — they get the shadow ring instead. */
|
|
36
|
+
const notInputWrapperDynamic = ":not([class*=\"inputwrapperdynamic\"])";
|
|
37
|
+
const previewOutlineRingSelectors = [
|
|
38
|
+
`.focused .uds-ring${notInputWrapperDynamic}:not(:disabled)`,
|
|
39
|
+
`.focus-visible .uds-ring${notInputWrapperDynamic}:not(:disabled)`,
|
|
40
|
+
`.focus .uds-ring${notInputWrapperDynamic}:not(:disabled)`
|
|
41
|
+
];
|
|
42
|
+
const previewShadowRingWithinHostSelectors = [
|
|
43
|
+
".focused .uds-ring-shadow.uds-ring-within:not(:disabled)",
|
|
44
|
+
".focus-visible .uds-ring-shadow.uds-ring-within:not(:disabled)",
|
|
45
|
+
".focus .uds-ring-shadow.uds-ring-within:not(:disabled)",
|
|
46
|
+
".focused [class*=\"inputwrapperdynamic\"].uds-ring-shadow.uds-ring-within:not(:disabled)",
|
|
47
|
+
".focus-visible [class*=\"inputwrapperdynamic\"].uds-ring-shadow.uds-ring-within:not(:disabled)",
|
|
48
|
+
".focus [class*=\"inputwrapperdynamic\"].uds-ring-shadow.uds-ring-within:not(:disabled)"
|
|
49
|
+
];
|
|
50
|
+
const previewShadowRingSelectors = [
|
|
51
|
+
".focused [class*=\"inputwrapperdynamic\"].uds-ring:not(:disabled)",
|
|
52
|
+
".focus-visible [class*=\"inputwrapperdynamic\"].uds-ring:not(:disabled)",
|
|
53
|
+
".focus [class*=\"inputwrapperdynamic\"].uds-ring:not(:disabled)"
|
|
54
|
+
];
|
|
55
|
+
function addRingShadowWithinRules(styles, hostSelector) {
|
|
56
|
+
styles[hostSelector] = ringShadowWithinHostStyles;
|
|
57
|
+
styles[`${hostSelector}::after`] = ringShadowWithinAfterStyles;
|
|
58
|
+
}
|
|
59
|
+
function toKebabCase(property) {
|
|
60
|
+
return property.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
12
63
|
* Generates focus ring styles using CSS variables.
|
|
13
64
|
* The CSS variable values (--uds-outline-*) are set per color mode via parseTokens/UdsThemeProvider.
|
|
14
65
|
*/
|
|
15
66
|
function getFocusRingStyles() {
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
[`.uds-ring${require_index.PSEUDO_STYLE_SELECTOR_MAP.focused}
|
|
19
|
-
|
|
20
|
-
[`.uds-ring
|
|
67
|
+
const styles = {
|
|
68
|
+
/** Focusable children delegate the ring to a `.uds-ring-within` ancestor. */
|
|
69
|
+
[`.uds-ring-within ${require_index.PSEUDO_STYLE_SELECTOR_MAP.focused}`]: ringWithinFocusResetStyles,
|
|
70
|
+
/** Outline-based ring for standard interactive components */
|
|
71
|
+
[`.uds-ring${notInputWrapperDynamic}${require_index.PSEUDO_STYLE_SELECTOR_MAP.focused}:not(:disabled)`]: ringOutlineStyles,
|
|
72
|
+
[`.uds-ring.uds-ring-within${require_index.PSEUDO_STYLE_SELECTOR_MAP.focusedWithin}:not(:disabled)`]: ringOutlineStyles,
|
|
73
|
+
/** Shadow-based ring for elements that receive focus directly */
|
|
74
|
+
[`.uds-ring-shadow${require_index.PSEUDO_STYLE_SELECTOR_MAP.focused}:not(:disabled)`]: ringShadowStyles,
|
|
75
|
+
[`[class*="inputwrapperdynamic"].uds-ring${require_index.PSEUDO_STYLE_SELECTOR_MAP.focused}:not(:disabled)`]: ringShadowStyles
|
|
21
76
|
};
|
|
77
|
+
addRingShadowWithinRules(styles, `.uds-ring-shadow.uds-ring-within${require_index.PSEUDO_STYLE_SELECTOR_MAP.focusedWithin}:not(:disabled)`);
|
|
78
|
+
for (const selector of previewOutlineRingSelectors) styles[selector] = ringOutlineStyles;
|
|
79
|
+
for (const selector of previewShadowRingWithinHostSelectors) addRingShadowWithinRules(styles, selector);
|
|
80
|
+
for (const selector of previewShadowRingSelectors) styles[selector] = ringShadowStyles;
|
|
81
|
+
return styles;
|
|
82
|
+
}
|
|
83
|
+
/** CSS-ready focus ring rules (kebab-case properties) for runtime injection. */
|
|
84
|
+
function getFocusRingStyleRules() {
|
|
85
|
+
const styles = getFocusRingStyles();
|
|
86
|
+
const rules = {};
|
|
87
|
+
for (const [selector, declarations] of Object.entries(styles)) rules[selector] = Object.fromEntries(Object.entries(declarations).map(([property, value]) => [toKebabCase(property), value]));
|
|
88
|
+
return rules;
|
|
22
89
|
}
|
|
23
90
|
//#endregion
|
|
91
|
+
exports.getFocusRingStyleRules = getFocusRingStyleRules;
|
|
24
92
|
exports.getFocusRingStyles = getFocusRingStyles;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
import { CssStyleObject } from "./types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region ../tailwind-internal/dist/components/getFocusRingStyles.d.ts
|
|
5
|
+
//#region src/components/getFocusRingStyles.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Generates focus ring styles using CSS variables.
|
|
8
|
+
* The CSS variable values (--uds-outline-*) are set per color mode via parseTokens/UdsThemeProvider.
|
|
9
|
+
*/
|
|
10
|
+
declare function getFocusRingStyles(): CssStyleObject;
|
|
11
|
+
/** CSS-ready focus ring rules (kebab-case properties) for runtime injection. */
|
|
12
|
+
declare function getFocusRingStyleRules(): Record<string, Record<string, string>>; //#endregion
|
|
13
|
+
//#endregion
|
|
14
|
+
export { getFocusRingStyleRules, getFocusRingStyles };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
import { CssStyleObject } from "./types.js";
|
|
3
|
+
|
|
4
|
+
//#region ../tailwind-internal/dist/components/getFocusRingStyles.d.ts
|
|
5
|
+
//#region src/components/getFocusRingStyles.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Generates focus ring styles using CSS variables.
|
|
8
|
+
* The CSS variable values (--uds-outline-*) are set per color mode via parseTokens/UdsThemeProvider.
|
|
9
|
+
*/
|
|
10
|
+
declare function getFocusRingStyles(): CssStyleObject;
|
|
11
|
+
/** CSS-ready focus ring rules (kebab-case properties) for runtime injection. */
|
|
12
|
+
declare function getFocusRingStyleRules(): Record<string, Record<string, string>>; //#endregion
|
|
13
|
+
//#endregion
|
|
14
|
+
export { getFocusRingStyleRules, getFocusRingStyles };
|