@yahoo/uds 3.142.0 → 3.143.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/components/client/Popover/UDSPopoverConfigProvider.d.cts +1 -1
- package/dist/components/client/Popover/UDSPopoverConfigProvider.d.ts +1 -1
- package/dist/styles/styler.d.cts +3 -3
- package/dist/styles/styler.d.ts +3 -3
- package/dist/tailwind/dist/automated-config/dist/mapTextVariantFixtureToValue.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/properties.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/assertUnreachable.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/generateDefaultClassName.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/generateSchemaKey.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/index.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/utils/mapColorFixtureToValue.js.map +1 -1
- package/dist/tailwind/dist/cli/dist/lib/logger.js.map +1 -1
- package/dist/tailwind/dist/cli/dist/lib/print.js.map +1 -1
- package/dist/tailwind/dist/cli/dist/lib/spinner.js.map +1 -1
- package/dist/tailwind/dist/commands/css.helpers.js.map +1 -1
- package/dist/tailwind/dist/commands/css.js.map +1 -1
- package/dist/tailwind/dist/commands/generateComponentData.js.map +1 -1
- package/dist/tailwind/dist/commands/generatePurgeCSSData.js.map +1 -1
- package/dist/tailwind/dist/commands/purge.js.map +1 -1
- package/dist/tailwind/dist/css/generate.helpers.js.map +1 -1
- package/dist/tailwind/dist/css/generate.js.map +1 -1
- package/dist/tailwind/dist/css/nodeUtils.js.map +1 -1
- package/dist/tailwind/dist/css/perf.js.map +1 -1
- package/dist/tailwind/dist/css/postcss.helpers.js.map +1 -1
- package/dist/tailwind/dist/css/postcss.js.map +1 -1
- package/dist/tailwind/dist/css/purgeWorker.js.map +1 -1
- package/dist/tailwind/dist/css/runner.helpers.js.map +1 -1
- package/dist/tailwind/dist/css/runner.js.map +1 -1
- package/dist/tailwind/dist/css/utils.js.map +1 -1
- package/dist/tailwind/dist/css/workerPool.js.map +1 -1
- package/dist/tailwind/dist/css-tokens/dist/index.js.map +1 -1
- package/dist/tailwind/dist/fixtures/dist/index.cjs +0 -10
- package/dist/tailwind/dist/fixtures/dist/index.js +0 -10
- package/dist/tailwind/dist/fixtures/dist/index.js.map +1 -1
- package/dist/tailwind/dist/modes/dist/index.cjs +1 -0
- package/dist/tailwind/dist/modes/dist/index.js +1 -0
- package/dist/tailwind/dist/modes/dist/index.js.map +1 -1
- package/dist/tailwind/dist/plugin.js.map +1 -1
- package/dist/tailwind/dist/purger/legacy/purgeCSS.js.map +1 -1
- package/dist/tailwind/dist/purger/legacy/purgeFromCode.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/ast/expressions.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/purge.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/purgeFromCode.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/utils/files.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/utils/safelist.js.map +1 -1
- package/dist/tailwind/dist/runtimeConfig/hookMetadata.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addColorModeVars.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addColorModeVarsV2.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addFontFaceDeclarations.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addFontVars.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addMotionVars.js.map +1 -1
- package/dist/tailwind/dist/tailwind/base/addScaleModeVars.js.map +1 -1
- package/dist/tailwind/dist/tailwind/components/getFocusRingStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/components/getHitTargetStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/components/getIconStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/components/getInputStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/components/getResponsiveTextStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/a11y.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/blurBgFallback.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/borderRadius.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/borderWidth.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/breakpoints.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/colors.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/components.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/elevation.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/getTailwindAsUdsColors.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/icons.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/input.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/motion.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/nestedBorderRadius.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/scaleMode.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/shadows.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/sizing.js.map +1 -1
- package/dist/tailwind/dist/tailwind/plugins/typography.js.map +1 -1
- package/dist/tailwind/dist/tailwind/theme/getFontFamilyTheme.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/addFontsPlugin.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/composeTailwindPlugins.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getColorModeStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getElevationStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getFontFaceDeclarations.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getFontStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getMotionStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getNestedBorderRadiusUtilities.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getScaleModeStyles.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getShadowPresetValues.js.map +1 -1
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.js.map +1 -1
- package/dist/tailwind/dist/utils/assertUnreachable.js.map +1 -1
- package/dist/tailwind/dist/utils/entries.js.map +1 -1
- package/dist/tailwind/dist/utils/entryPoints.js.map +1 -1
- package/dist/tailwind/dist/utils/fromEntries.js.map +1 -1
- package/dist/tailwind/dist/utils/generatePurgeCSSData.js.map +1 -1
- package/dist/tailwind/dist/utils/mapValues.js.map +1 -1
- package/dist/tailwind/dist/utils/opacity.js.map +1 -1
- package/dist/tailwind/dist/utils/optimizeCSS.js.map +1 -1
- package/dist/tailwind/dist/utils/parseTokens.js.map +1 -1
- package/dist/tailwind/dist/utils/postcssPreserveVars.js.map +1 -1
- package/dist/tailwind/dist/utils/tsMorph.js.map +1 -1
- package/dist/uds/generated/componentData.cjs +1311 -1311
- package/dist/uds/generated/componentData.js +1311 -1311
- package/dist/uds/generated/tailwindPurge.cjs +3 -0
- package/dist/uds/generated/tailwindPurge.js +3 -0
- package/dist/uds/package.cjs +2 -2
- package/dist/uds/package.js +2 -2
- package/generated/componentData.json +1692 -1692
- package/package.json +3 -3
|
@@ -29,7 +29,7 @@ declare function usePopoverConfig(sizeProp?: PopoverSize | undefined, variantPro
|
|
|
29
29
|
gap: SpacingAlias;
|
|
30
30
|
dismissButtonSpacing: SpacingAlias;
|
|
31
31
|
dismissIconSize: number;
|
|
32
|
-
ariaKitPlacement: ("
|
|
32
|
+
ariaKitPlacement: ("top-start" | "top-end" | "bottom-start" | "bottom-end" | ("top" | "bottom" | "left" | "right") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
|
|
33
33
|
animationDuration: number;
|
|
34
34
|
};
|
|
35
35
|
//#endregion
|
|
@@ -30,7 +30,7 @@ declare function usePopoverConfig(sizeProp?: PopoverSize | undefined, variantPro
|
|
|
30
30
|
gap: SpacingAlias;
|
|
31
31
|
dismissButtonSpacing: SpacingAlias;
|
|
32
32
|
dismissIconSize: number;
|
|
33
|
-
ariaKitPlacement: ("
|
|
33
|
+
ariaKitPlacement: ("top-start" | "top-end" | "bottom-start" | "bottom-end" | ("top" | "bottom" | "left" | "right") | "left-start" | "right-start" | "left-end" | "right-end") | undefined;
|
|
34
34
|
animationDuration: number;
|
|
35
35
|
};
|
|
36
36
|
//#endregion
|
package/dist/styles/styler.d.cts
CHANGED
|
@@ -86,8 +86,8 @@ declare const getStylesInternal: (props?: ({
|
|
|
86
86
|
inputVariantValueLabelRequired?: "empty" | "filled" | undefined;
|
|
87
87
|
inputVariantValueRoot?: "empty" | "filled" | undefined;
|
|
88
88
|
inputVariantValueStartIcon?: "empty" | "filled" | undefined;
|
|
89
|
-
linkTextStyleIcon?: "
|
|
90
|
-
linkTextStyleRoot?: "
|
|
89
|
+
linkTextStyleIcon?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "default" | undefined;
|
|
90
|
+
linkTextStyleRoot?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "default" | undefined;
|
|
91
91
|
linkVariantIconEnd?: "primary" | "secondary" | "tertiary" | "on-color" | "default" | undefined;
|
|
92
92
|
linkVariantIconStart?: "primary" | "secondary" | "tertiary" | "on-color" | "default" | undefined;
|
|
93
93
|
linkVariantRoot?: "primary" | "secondary" | "tertiary" | "on-color" | "default" | undefined;
|
|
@@ -192,7 +192,7 @@ declare const getStylesInternal: (props?: ({
|
|
|
192
192
|
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;
|
|
193
193
|
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;
|
|
194
194
|
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;
|
|
195
|
-
textAlign?: "
|
|
195
|
+
textAlign?: "start" | "end" | "center" | "justify" | undefined;
|
|
196
196
|
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;
|
|
197
197
|
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;
|
|
198
198
|
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
|
@@ -86,8 +86,8 @@ declare const getStylesInternal: (props?: ({
|
|
|
86
86
|
inputVariantValueLabelRequired?: "empty" | "filled" | undefined;
|
|
87
87
|
inputVariantValueRoot?: "empty" | "filled" | undefined;
|
|
88
88
|
inputVariantValueStartIcon?: "empty" | "filled" | undefined;
|
|
89
|
-
linkTextStyleIcon?: "
|
|
90
|
-
linkTextStyleRoot?: "
|
|
89
|
+
linkTextStyleIcon?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "default" | undefined;
|
|
90
|
+
linkTextStyleRoot?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "label3" | "label4" | "caption1" | "caption2" | "legal1" | "ui1" | "ui2" | "ui3" | "ui4" | "ui5" | "ui6" | "default" | undefined;
|
|
91
91
|
linkVariantIconEnd?: "primary" | "secondary" | "tertiary" | "on-color" | "default" | undefined;
|
|
92
92
|
linkVariantIconStart?: "primary" | "secondary" | "tertiary" | "on-color" | "default" | undefined;
|
|
93
93
|
linkVariantRoot?: "primary" | "secondary" | "tertiary" | "on-color" | "default" | undefined;
|
|
@@ -192,7 +192,7 @@ declare const getStylesInternal: (props?: ({
|
|
|
192
192
|
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;
|
|
193
193
|
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;
|
|
194
194
|
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;
|
|
195
|
-
textAlign?: "
|
|
195
|
+
textAlign?: "start" | "end" | "center" | "justify" | undefined;
|
|
196
196
|
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;
|
|
197
197
|
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;
|
|
198
198
|
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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapTextVariantFixtureToValue.js","names":[],"sources":["../../../../automated-config/dist/mapTextVariantFixtureToValue.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\nimport { assertUnreachable } from \"./utils/assertUnreachable.js\";\nimport { textVariantsSafe } from \"@yahoo/uds-css-tokens\";\n//#region src/mapTextVariantFixtureToValue.ts\nconst mapTextVariantFixtureToValue = (key) => (selected, value) => {\n\tswitch (key) {\n\t\tcase \"fontFamily\": return `udsFontFamily[${textVariantsSafe(value)}]`;\n\t\tcase \"fontSize\": return `udsFontSize[${textVariantsSafe(value)}]`;\n\t\tcase \"lineHeight\": return `udsLineHeight[${textVariantsSafe(value)}]`;\n\t\tcase \"letterSpacing\": return `udsLetterSpacing[${textVariantsSafe(value)}]`;\n\t\tcase \"textTransform\": return `udsTextTransform[${textVariantsSafe(value)}]`;\n\t\tcase \"fontWeight\": return `udsFontWeight[${textVariantsSafe(value)}]`;\n\t}\n\treturn assertUnreachable(key);\n};\n//#endregion\nexport { mapTextVariantFixtureToValue };\n\n//# sourceMappingURL=mapTextVariantFixtureToValue.js.map"],"mappings":";;;;;AAIA,MAAM,gCAAgC,SAAS,UAAU,UAAU;
|
|
1
|
+
{"version":3,"file":"mapTextVariantFixtureToValue.js","names":[],"sources":["../../../../automated-config/dist/mapTextVariantFixtureToValue.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\nimport { assertUnreachable } from \"./utils/assertUnreachable.js\";\nimport { textVariantsSafe } from \"@yahoo/uds-css-tokens\";\n//#region src/mapTextVariantFixtureToValue.ts\nconst mapTextVariantFixtureToValue = (key) => (selected, value) => {\n\tswitch (key) {\n\t\tcase \"fontFamily\": return `udsFontFamily[${textVariantsSafe(value)}]`;\n\t\tcase \"fontSize\": return `udsFontSize[${textVariantsSafe(value)}]`;\n\t\tcase \"lineHeight\": return `udsLineHeight[${textVariantsSafe(value)}]`;\n\t\tcase \"letterSpacing\": return `udsLetterSpacing[${textVariantsSafe(value)}]`;\n\t\tcase \"textTransform\": return `udsTextTransform[${textVariantsSafe(value)}]`;\n\t\tcase \"fontWeight\": return `udsFontWeight[${textVariantsSafe(value)}]`;\n\t}\n\treturn assertUnreachable(key);\n};\n//#endregion\nexport { mapTextVariantFixtureToValue };\n\n//# sourceMappingURL=mapTextVariantFixtureToValue.js.map"],"mappings":";;;;;AAIA,MAAM,gCAAgC,SAAS,UAAU,UAAU;CAClE,QAAQ,KAAR;EACC,KAAK,cAAc,OAAO,iBAAiB,iBAAiB,MAAM,CAAC;EACnE,KAAK,YAAY,OAAO,eAAe,iBAAiB,MAAM,CAAC;EAC/D,KAAK,cAAc,OAAO,iBAAiB,iBAAiB,MAAM,CAAC;EACnE,KAAK,iBAAiB,OAAO,oBAAoB,iBAAiB,MAAM,CAAC;EACzE,KAAK,iBAAiB,OAAO,oBAAoB,iBAAiB,MAAM,CAAC;EACzE,KAAK,cAAc,OAAO,iBAAiB,iBAAiB,MAAM,CAAC;;CAEpE,OAAO,kBAAkB,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.js","names":[],"sources":["../../../../automated-config/dist/properties.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\nimport { assertUnreachable } from \"./utils/assertUnreachable.js\";\nimport { mapTextVariantFixtureToValue } from \"./mapTextVariantFixtureToValue.js\";\nimport { mapColorFixtureToValue } from \"./utils/mapColorFixtureToValue.js\";\nimport { BACKGROUND_BLUR_COLOR_PREFIX, BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX, BORDER_RADIUS_PREFIX, BUTTON_SCALE_EFFECT, DROP_SHADOW_PREFIX, getShadowLayerValue, textVariantsSafe } from \"@yahoo/uds-css-tokens\";\nimport { SCALE_EFFECTS } from \"@yahoo/uds-motion-tokens\";\n//#region src/properties.ts\nconst isInputWrapperCtx = (context) => {\n\treturn context.componentName === \"input\" && context.layer === \"inputWrapper\";\n};\nconst hexToRgb = (hex) => {\n\thex = hex.replace(\"#\", \"\");\n\tif (hex.length === 3) hex = hex.split(\"\").map((char) => char + char).join(\"\");\n\treturn `${parseInt(hex.substring(0, 2), 16)} ${parseInt(hex.substring(2, 4), 16)} ${parseInt(hex.substring(4, 6), 16)}`;\n};\nconst backgroundColor = {\n\tname: \"backgroundColor\",\n\tcssProperties: \"background-color\",\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tpossibleFixtures: [\n\t\t\"backgroundPaletteColors\",\n\t\t\"spectrumColors\",\n\t\t\"alwaysPaletteAliases\",\n\t\t\"elevationAliases\"\n\t],\n\tcustomValueRenderer: ({ value, type }, schema, theme) => {\n\t\tif (type === \"elevationAliases\") return `var(--uds-background-color-${value})`;\n\t\treturn theme(mapColorFixtureToValue(type, value));\n\t}\n};\nconst color = {\n\tname: \"color\",\n\tcssProperties: \"color\",\n\ttwThemePath: mapColorFixtureToValue,\n\tpossibleFixtures: [\n\t\t\"alwaysPaletteAliases\",\n\t\t\"spectrumColors\",\n\t\t\"foregroundPaletteColors\"\n\t]\n};\nconst fontSize = {\n\tname: \"fontSize\",\n\tcssProperties: \"font-size\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"fontSize\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst fontVariationSettings = {\n\tname: \"fontVariationSettings\",\n\tcssProperties: \"font-variation-settings\",\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tpossibleFixtures: [\"textVariants\"],\n\tcustomValueRenderer: (schemaValue) => {\n\t\tconst { value: rawValue } = schemaValue;\n\t\tconst value = textVariantsSafe(rawValue);\n\t\treturn `\"wght\" var(--uds-font-weight-${value}), \"slnt\" var(--uds-font-slant-${value}), \"ital\" var(--uds-font-slant-${value}), \"wdth\" var(--uds-font-width-${value})`;\n\t}\n};\nconst fontWeight = {\n\tname: \"fontWeight\",\n\tcssProperties: \"font-weight\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"fontWeight\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst fontFamily = {\n\tname: \"fontFamily\",\n\tcssProperties: \"font-family\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"fontFamily\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst textTransform = {\n\tname: \"textTransform\",\n\tcssProperties: \"text-transform\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"textTransform\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst lineHeight = {\n\tname: \"lineHeight\",\n\tcssProperties: \"line-height\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"lineHeight\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst letterSpacing = {\n\tname: \"letterSpacing\",\n\tcssProperties: \"letter-spacing\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"letterSpacing\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst textVariant = {\n\tname: \"textVariant\",\n\tcssProperties: [],\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tpossibleFixtures: [\"textVariants\"],\n\textendedProperties: [\n\t\t\"fontSize\",\n\t\t\"fontWeight\",\n\t\t\"fontFamily\",\n\t\t\"lineHeight\",\n\t\t\"textTransform\",\n\t\t\"fontVariationSettings\",\n\t\t\"letterSpacing\"\n\t]\n};\nconst textDecorationLine = {\n\tname: \"textDecorationLine\",\n\tcssProperties: \"text-decoration-line\",\n\tpossibleFixtures: [\"textDecorationLines\"],\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tcustomValueRenderer: (schemaValue) => {\n\t\treturn String(schemaValue.value);\n\t}\n};\nconst gap = {\n\tname: \"gap\",\n\tcssProperties: \"gap\",\n\ttwThemePath: (fixtureType, value) => fixtureType === \"spacingAliases\" ? `spacing[${value}]` : \"\",\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst borderWidth = {\n\tname: \"borderWidth\",\n\tcssProperties: \"border-width\",\n\ttwThemePath: (fixtureType, value) => {\n\t\tswitch (fixtureType) {\n\t\t\tcase \"borderWidths\":\n\t\t\tcase \"elevationAliases\": return `udsBorderWidth[${value}]`;\n\t\t\tcase \"spacingAliases\": return `spacing[${value}]`;\n\t\t}\n\t\treturn assertUnreachable(fixtureType);\n\t},\n\tpossibleFixtures: [\n\t\t\"borderWidths\",\n\t\t\"spacingAliases\",\n\t\t\"elevationAliases\"\n\t],\n\textendedProperties: (context) => {\n\t\tif (isInputWrapperCtx(context)) return [\n\t\t\t\"outlineWidth\",\n\t\t\t\"insetOutlineOffset\",\n\t\t\t\"solidOutline\"\n\t\t];\n\t\treturn false;\n\t}\n};\nconst strokeWidth = {\n\t...borderWidth,\n\tname: \"strokeWidth\",\n\tcssProperties: \"stroke-width\"\n};\nconst underlineWidth = {\n\t...borderWidth,\n\tname: \"underlineWidth\",\n\tcssProperties: \"border-bottom-width\"\n};\nconst borderColor = {\n\tname: \"borderColor\",\n\tcssProperties: \"border-color\",\n\ttwThemePath: mapColorFixtureToValue,\n\tpossibleFixtures: [\n\t\t\"alwaysPaletteAliases\",\n\t\t\"spectrumColors\",\n\t\t\"linePaletteColors\",\n\t\t\"elevationAliases\"\n\t],\n\textendedProperties: (context) => {\n\t\tif (isInputWrapperCtx(context)) return [\"outlineColor\"];\n\t\treturn false;\n\t}\n};\nconst stroke = {\n\t...borderColor,\n\tname: \"stroke\",\n\tcssProperties: \"stroke\"\n};\nconst underlineColor = {\n\t...borderColor,\n\tname: \"underlineColor\",\n\tcssProperties: \"border-bottom-color\"\n};\nconst outlineWidth = {\n\tname: \"outlineWidth\",\n\tcssProperties: \"outline-width\",\n\ttwThemePath: (type, value) => type === \"borderWidths\" ? `udsBorderWidth[${value}]` : `spacing[${value}]`,\n\tpossibleFixtures: [\"borderWidths\", \"spacingAliases\"]\n};\nconst solidOutline = {\n\tname: \"solidOutline\",\n\tcssProperties: \"outline-style\",\n\ttwThemePath: () => \"\",\n\tcustomValueRenderer: () => \"solid\",\n\tpossibleFixtures: []\n};\nconst insetOutlineOffset = {\n\tname: \"insetOutlineOffset\",\n\tcssProperties: \"outline-offset\",\n\ttwThemePath: () => \"\",\n\tcustomValueRenderer: ({ value, type }, schema, theme) => {\n\t\treturn `calc(-1 * ${type === \"borderWidths\" ? theme(`udsBorderWidth[${value}]`) : theme(`spacing[${value}]`)})`;\n\t},\n\tpossibleFixtures: [\"borderWidths\", \"spacingAliases\"]\n};\nconst outlineColor = {\n\tname: \"outlineColor\",\n\tcssProperties: \"outline-color\",\n\ttwThemePath: mapColorFixtureToValue,\n\tpossibleFixtures: [\n\t\t\"alwaysPaletteAliases\",\n\t\t\"spectrumColors\",\n\t\t\"linePaletteColors\"\n\t]\n};\nconst borderRadius = {\n\tname: \"borderRadius\",\n\tcssProperties: \"border-radius\",\n\ttwThemePath: (_, value) => `udsBorderRadius.${value}`,\n\tpossibleFixtures: [\"borderRadii\"]\n};\nconst borderRadiusVar = {\n\t...borderRadius,\n\tname: \"borderRadiusVar\",\n\tcssProperties: `--${BORDER_RADIUS_PREFIX}`\n};\nconst spacing = {\n\tname: \"spacing\",\n\tcssProperties: \"padding\",\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst spacingHorizontal = {\n\tname: \"spacingHorizontal\",\n\tcssProperties: [\"padding-right\", \"padding-left\"],\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst spacingVertical = {\n\tname: \"spacingVertical\",\n\tcssProperties: [\"padding-top\", \"padding-bottom\"],\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst spacingTop = {\n\tname: \"spacingTop\",\n\tcssProperties: \"padding-top\",\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst spacingBottom = {\n\tname: \"spacingBottom\",\n\tcssProperties: \"padding-bottom\",\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst horizontalMargin = {\n\tname: \"horizontalMargin\",\n\tcssProperties: [\"margin-left\", \"margin-right\"],\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst bottomMargin = {\n\tname: \"bottomMargin\",\n\tcssProperties: \"margin-bottom\",\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst height = {\n\tname: \"height\",\n\tcssProperties: \"height\",\n\ttwThemePath: (_, value) => {\n\t\treturn `height[${value}]`;\n\t},\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst width = {\n\tname: \"width\",\n\tcssProperties: \"width\",\n\ttwThemePath: (_, value) => {\n\t\treturn `width[${value}]`;\n\t},\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst shadow = {\n\tname: \"drop shadow\",\n\tcssProperties: \"box-shadow\",\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tconcatenate: true,\n\tcustomValueRenderer: (schemaValue) => {\n\t\tconst shadowType = \"drop\";\n\t\tconst noneValue = \"0 0 0 transparent\";\n\t\tif (schemaValue.valueType === \"alias\") {\n\t\t\tconst noneValue = \"0 0 0 transparent\";\n\t\t\tif (schemaValue.value === \"none\") return noneValue;\n\t\t\tif (schemaValue.value !== \"custom\") return `var(--uds-${shadowType}-shadow-${schemaValue.value})`;\n\t\t} else if (schemaValue.valueType === \"custom\") return schemaValue.value.map((preset, index) => getShadowLayerValue({\n\t\t\tpreset,\n\t\t\tshadowType,\n\t\t\tprefix: index > 0 ? `${index + 1}` : void 0\n\t\t}))?.join(\", \") || noneValue;\n\t\tthrow new Error(\"Invalid valueType\");\n\t},\n\tpossibleFixtures: [\n\t\t\"shadowVariants\",\n\t\t\"shadowVariantConfig\",\n\t\t\"elevationAliases\"\n\t]\n};\nconst insetShadow = {\n\tname: \"inset shadow\",\n\tcssProperties: \"box-shadow\",\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tconcatenate: true,\n\tcustomValueRenderer: (schemaValue) => {\n\t\tconst shadowType = \"inset\";\n\t\tconst noneValue = \"0 0 0 transparent\";\n\t\tif (schemaValue.valueType === \"alias\") {\n\t\t\tconst noneValue = \"0 0 0 transparent\";\n\t\t\tif (schemaValue.value === \"none\") return noneValue;\n\t\t\tif (schemaValue.value !== \"custom\") return `var(--uds-${shadowType}-shadow-${schemaValue.value})`;\n\t\t} else if (schemaValue.valueType === \"custom\") return schemaValue.value.map((preset, index) => getShadowLayerValue({\n\t\t\tpreset,\n\t\t\tshadowType,\n\t\t\tprefix: index > 0 ? `${index + 1}` : void 0\n\t\t}))?.join(\", \") || noneValue;\n\t\tthrow new Error(\"Invalid valueType\");\n\t},\n\tpossibleFixtures: [\"shadowVariantsWithInvert\"]\n};\nconst shadowVar = {\n\t...shadow,\n\tname: \"shadowVar\",\n\tcssProperties: `--${DROP_SHADOW_PREFIX}`\n};\nconst opacity = {\n\tname: \"opacity\",\n\tcssProperties: \"opacity\",\n\ttwThemePath: (_, value) => `opacity[${value}]`,\n\tpossibleFixtures: [\"opacitySteps\"]\n};\nconst publicProperties = {\n\tbackgroundColor,\n\tborderWidth,\n\tunderlineWidth,\n\tstrokeWidth,\n\tborderRadius,\n\tborderRadiusVar,\n\tborderColor,\n\tunderlineColor,\n\tstroke,\n\tbuttonSize: {\n\t\tname: \"buttonSize\",\n\t\tcssProperties: \"--uds-button-size\",\n\t\tpossibleFixtures: [\"buttonSizes\"],\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tcustomValueRenderer: (schemaValue) => {\n\t\t\treturn String(schemaValue.value);\n\t\t}\n\t},\n\tbuttonVariant: {\n\t\tname: \"buttonVariant\",\n\t\tcssProperties: \"--uds-button-variant\",\n\t\tpossibleFixtures: [\"buttonVariantsFlat\"],\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tcustomValueRenderer: (schemaValue) => {\n\t\t\treturn String(schemaValue.value);\n\t\t}\n\t},\n\tfontFamily,\n\tfontSize,\n\tfontVariationSettings,\n\tlineHeight,\n\ttextTransform,\n\tletterSpacing,\n\tgap,\n\tcolor,\n\topacity,\n\tfillOpacity: {\n\t\tname: \"fillOpacity\",\n\t\tcssProperties: \"fill-opacity\",\n\t\ttwThemePath: (_, value) => `opacity[${value}]`,\n\t\tpossibleFixtures: [\"opacitySteps\"]\n\t},\n\tfontWeight,\n\ticonSize: {\n\t\tname: \"iconSize\",\n\t\tcssProperties: [\"width\", \"height\"],\n\t\ttwThemePath: (_, value) => `sizing.icon.${value}`,\n\t\tpossibleFixtures: [\"iconSizes\"]\n\t},\n\tspacing,\n\ticonVariant: {\n\t\tname: \"iconVariant\",\n\t\tcssProperties: \"--uds-icon-variant\",\n\t\tpossibleFixtures: [\"iconVariants\"],\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tcustomValueRenderer: (schemaValue) => {\n\t\t\treturn String(schemaValue.value);\n\t\t}\n\t},\n\thorizontalMargin,\n\tbottomMargin,\n\tspacingHorizontal,\n\tspacingVertical,\n\tspacingTop,\n\tspacingBottom,\n\ttextVariant,\n\ttextDecorationLine,\n\tshadow,\n\tshadowVar,\n\tinsetShadow,\n\tbannerInnerShadow: {\n\t\tname: \"bannerInnerShadow\",\n\t\tcssProperties: \"box-shadow\",\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tpossibleFixtures: [\"bannerInnerShadowOptions\"],\n\t\tcustomValueRenderer: (schemaValue) => {\n\t\t\tconst noneValue = \"0 0 0 transparent\";\n\t\t\tif (schemaValue.value === \"none\") return noneValue;\n\t\t\tif (schemaValue.value === \"subtle\") return getShadowLayerValue({\n\t\t\t\tpreset: {\n\t\t\t\t\toffsetX: \"0\",\n\t\t\t\t\toffsetY: \"-5\",\n\t\t\t\t\tblur: \"5\",\n\t\t\t\t\tspread: \"-2.5\",\n\t\t\t\t\topacity: \"5\",\n\t\t\t\t\tcolor: {\n\t\t\t\t\t\ttype: \"spectrum\",\n\t\t\t\t\t\tvalue: \"carbon-12\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tshadowType: \"inset\",\n\t\t\t\tcssVarPrefix: \"--uds-banner-inset-shadow-\"\n\t\t\t});\n\t\t\tthrow new Error(\"Invalid bannerInnerShadow value\");\n\t\t}\n\t},\n\theight,\n\twidth,\n\tscaleEffect: {\n\t\tname: \"scaleEffect\",\n\t\tcssProperties: BUTTON_SCALE_EFFECT,\n\t\tpossibleFixtures: [\"scaleEffects\"],\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tcustomValueRenderer: (schemaValue) => {\n\t\t\tconst value = schemaValue.value;\n\t\t\treturn String(SCALE_EFFECTS[String(value)] ?? SCALE_EFFECTS.none);\n\t\t}\n\t},\n\tbackdropBlur: {\n\t\tname: \"backdropBlur\",\n\t\tpossibleFixtures: [\"positiveIntegers\"],\n\t\tcssProperties: \"--uds-backdrop-blur\",\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tcustomValueRenderer: (schemaValue, schema, _theme, originalPropertyDefinition) => {\n\t\t\tif (originalPropertyDefinition && originalPropertyDefinition.layerReference) {\n\t\t\t\tconst { variablePath, propertyName } = originalPropertyDefinition.layerReference;\n\t\t\t\tconst property = schema.variables[variablePath][propertyName].rest;\n\t\t\t\tif (property.type === \"elevationAliases\") return `var(--uds-background-blur-radius-${property.value})`;\n\t\t\t}\n\t\t\treturn schemaValue.value === 0 ? \"none\" : `blur(${schemaValue.value}px)`;\n\t\t}\n\t},\n\tblurBackgroundColor: {\n\t\t...backgroundColor,\n\t\tname: \"blurBackgroundColor\",\n\t\tcssProperties: `--${BACKGROUND_BLUR_COLOR_PREFIX}`\n\t},\n\tblurBackgroundColorFallback: {\n\t\t...backgroundColor,\n\t\tname: \"blurBackgroundColorFallback\",\n\t\tcssProperties: `--${BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX}`\n\t},\n\tscrimBackgroundColor: {\n\t\tname: \"scrimBackgroundColor\",\n\t\tcssProperties: \"--uds-scrim-background-color\",\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tpossibleFixtures: [\n\t\t\t\"backgroundPaletteColors\",\n\t\t\t\"spectrumColors\",\n\t\t\t\"alwaysPaletteAliases\"\n\t\t],\n\t\tcustomValueRenderer: ({ value, type }, schema, theme) => {\n\t\t\tconst resolved = theme(mapColorFixtureToValue(type, value));\n\t\t\tif (resolved.startsWith(\"#\")) return hexToRgb(resolved) ?? resolved;\n\t\t\tif (resolved.startsWith(\"rgb(\") && resolved.endsWith(\")\")) return resolved.slice(4, -1);\n\t\t\treturn resolved;\n\t\t}\n\t},\n\tscrimOpacity: {\n\t\t...opacity,\n\t\tname: \"scrimOpacity\",\n\t\tcssProperties: \"--uds-scrim-opacity\",\n\t\ttwThemePath: () => \"\",\n\t\tcustomValueRenderer: ({ value }) => `${String(value)}%`\n\t}\n};\nconst internalProperties = {\n\toutlineWidth,\n\toutlineColor,\n\tinsetOutlineOffset,\n\tsolidOutline\n};\nconst configurableProperties = {\n\t...publicProperties,\n\t...internalProperties\n};\n//#endregion\nexport { configurableProperties };\n\n//# sourceMappingURL=properties.js.map"],"mappings":";;;;;;;;AAOA,MAAM,qBAAqB,YAAY;AACtC,QAAO,QAAQ,kBAAkB,WAAW,QAAQ,UAAU;;AAE/D,MAAM,YAAY,QAAQ;AACzB,OAAM,IAAI,QAAQ,KAAK,GAAG;AAC1B,KAAI,IAAI,WAAW,EAAG,OAAM,IAAI,MAAM,GAAG,CAAC,KAAK,SAAS,OAAO,KAAK,CAAC,KAAK,GAAG;AAC7E,QAAO,GAAG,SAAS,IAAI,UAAU,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,SAAS,IAAI,UAAU,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,SAAS,IAAI,UAAU,GAAG,EAAE,EAAE,GAAG;;AAEtH,MAAM,kBAAkB;CACvB,MAAM;CACN,eAAe;CACf,mBAAmB;AAClB,SAAO;;CAER,kBAAkB;EACjB;EACA;EACA;EACA;EACA;CACD,sBAAsB,EAAE,OAAO,QAAQ,QAAQ,UAAU;AACxD,MAAI,SAAS,mBAAoB,QAAO,8BAA8B,MAAM;AAC5E,SAAO,MAAM,uBAAuB,MAAM,MAAM,CAAC;;CAElD;AACD,MAAM,QAAQ;CACb,MAAM;CACN,eAAe;CACf,aAAa;CACb,kBAAkB;EACjB;EACA;EACA;EACA;CACD;AACD,MAAM,WAAW;CAChB,MAAM;CACN,eAAe;CACf,aAAa,6BAA6B,WAAW;CACrD,kBAAkB,CAAC,eAAe;CAClC;AACD,MAAM,wBAAwB;CAC7B,MAAM;CACN,eAAe;CACf,mBAAmB;AAClB,SAAO;;CAER,kBAAkB,CAAC,eAAe;CAClC,sBAAsB,gB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,GAAG;CACH,GAAG;CACH"}
|
|
1
|
+
{"version":3,"file":"properties.js","names":[],"sources":["../../../../automated-config/dist/properties.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\nimport { assertUnreachable } from \"./utils/assertUnreachable.js\";\nimport { mapTextVariantFixtureToValue } from \"./mapTextVariantFixtureToValue.js\";\nimport { mapColorFixtureToValue } from \"./utils/mapColorFixtureToValue.js\";\nimport { BACKGROUND_BLUR_COLOR_PREFIX, BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX, BORDER_RADIUS_PREFIX, BUTTON_SCALE_EFFECT, DROP_SHADOW_PREFIX, getShadowLayerValue, textVariantsSafe } from \"@yahoo/uds-css-tokens\";\nimport { SCALE_EFFECTS } from \"@yahoo/uds-motion-tokens\";\n//#region src/properties.ts\nconst isInputWrapperCtx = (context) => {\n\treturn context.componentName === \"input\" && context.layer === \"inputWrapper\";\n};\nconst hexToRgb = (hex) => {\n\thex = hex.replace(\"#\", \"\");\n\tif (hex.length === 3) hex = hex.split(\"\").map((char) => char + char).join(\"\");\n\treturn `${parseInt(hex.substring(0, 2), 16)} ${parseInt(hex.substring(2, 4), 16)} ${parseInt(hex.substring(4, 6), 16)}`;\n};\nconst backgroundColor = {\n\tname: \"backgroundColor\",\n\tcssProperties: \"background-color\",\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tpossibleFixtures: [\n\t\t\"backgroundPaletteColors\",\n\t\t\"spectrumColors\",\n\t\t\"alwaysPaletteAliases\",\n\t\t\"elevationAliases\"\n\t],\n\tcustomValueRenderer: ({ value, type }, schema, theme) => {\n\t\tif (type === \"elevationAliases\") return `var(--uds-background-color-${value})`;\n\t\treturn theme(mapColorFixtureToValue(type, value));\n\t}\n};\nconst color = {\n\tname: \"color\",\n\tcssProperties: \"color\",\n\ttwThemePath: mapColorFixtureToValue,\n\tpossibleFixtures: [\n\t\t\"alwaysPaletteAliases\",\n\t\t\"spectrumColors\",\n\t\t\"foregroundPaletteColors\"\n\t]\n};\nconst fontSize = {\n\tname: \"fontSize\",\n\tcssProperties: \"font-size\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"fontSize\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst fontVariationSettings = {\n\tname: \"fontVariationSettings\",\n\tcssProperties: \"font-variation-settings\",\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tpossibleFixtures: [\"textVariants\"],\n\tcustomValueRenderer: (schemaValue) => {\n\t\tconst { value: rawValue } = schemaValue;\n\t\tconst value = textVariantsSafe(rawValue);\n\t\treturn `\"wght\" var(--uds-font-weight-${value}), \"slnt\" var(--uds-font-slant-${value}), \"ital\" var(--uds-font-slant-${value}), \"wdth\" var(--uds-font-width-${value})`;\n\t}\n};\nconst fontWeight = {\n\tname: \"fontWeight\",\n\tcssProperties: \"font-weight\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"fontWeight\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst fontFamily = {\n\tname: \"fontFamily\",\n\tcssProperties: \"font-family\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"fontFamily\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst textTransform = {\n\tname: \"textTransform\",\n\tcssProperties: \"text-transform\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"textTransform\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst lineHeight = {\n\tname: \"lineHeight\",\n\tcssProperties: \"line-height\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"lineHeight\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst letterSpacing = {\n\tname: \"letterSpacing\",\n\tcssProperties: \"letter-spacing\",\n\ttwThemePath: mapTextVariantFixtureToValue(\"letterSpacing\"),\n\tpossibleFixtures: [\"textVariants\"]\n};\nconst textVariant = {\n\tname: \"textVariant\",\n\tcssProperties: [],\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tpossibleFixtures: [\"textVariants\"],\n\textendedProperties: [\n\t\t\"fontSize\",\n\t\t\"fontWeight\",\n\t\t\"fontFamily\",\n\t\t\"lineHeight\",\n\t\t\"textTransform\",\n\t\t\"fontVariationSettings\",\n\t\t\"letterSpacing\"\n\t]\n};\nconst textDecorationLine = {\n\tname: \"textDecorationLine\",\n\tcssProperties: \"text-decoration-line\",\n\tpossibleFixtures: [\"textDecorationLines\"],\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tcustomValueRenderer: (schemaValue) => {\n\t\treturn String(schemaValue.value);\n\t}\n};\nconst gap = {\n\tname: \"gap\",\n\tcssProperties: \"gap\",\n\ttwThemePath: (fixtureType, value) => fixtureType === \"spacingAliases\" ? `spacing[${value}]` : \"\",\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst borderWidth = {\n\tname: \"borderWidth\",\n\tcssProperties: \"border-width\",\n\ttwThemePath: (fixtureType, value) => {\n\t\tswitch (fixtureType) {\n\t\t\tcase \"borderWidths\":\n\t\t\tcase \"elevationAliases\": return `udsBorderWidth[${value}]`;\n\t\t\tcase \"spacingAliases\": return `spacing[${value}]`;\n\t\t}\n\t\treturn assertUnreachable(fixtureType);\n\t},\n\tpossibleFixtures: [\n\t\t\"borderWidths\",\n\t\t\"spacingAliases\",\n\t\t\"elevationAliases\"\n\t],\n\textendedProperties: (context) => {\n\t\tif (isInputWrapperCtx(context)) return [\n\t\t\t\"outlineWidth\",\n\t\t\t\"insetOutlineOffset\",\n\t\t\t\"solidOutline\"\n\t\t];\n\t\treturn false;\n\t}\n};\nconst strokeWidth = {\n\t...borderWidth,\n\tname: \"strokeWidth\",\n\tcssProperties: \"stroke-width\"\n};\nconst underlineWidth = {\n\t...borderWidth,\n\tname: \"underlineWidth\",\n\tcssProperties: \"border-bottom-width\"\n};\nconst borderColor = {\n\tname: \"borderColor\",\n\tcssProperties: \"border-color\",\n\ttwThemePath: mapColorFixtureToValue,\n\tpossibleFixtures: [\n\t\t\"alwaysPaletteAliases\",\n\t\t\"spectrumColors\",\n\t\t\"linePaletteColors\",\n\t\t\"elevationAliases\"\n\t],\n\textendedProperties: (context) => {\n\t\tif (isInputWrapperCtx(context)) return [\"outlineColor\"];\n\t\treturn false;\n\t}\n};\nconst stroke = {\n\t...borderColor,\n\tname: \"stroke\",\n\tcssProperties: \"stroke\"\n};\nconst underlineColor = {\n\t...borderColor,\n\tname: \"underlineColor\",\n\tcssProperties: \"border-bottom-color\"\n};\nconst outlineWidth = {\n\tname: \"outlineWidth\",\n\tcssProperties: \"outline-width\",\n\ttwThemePath: (type, value) => type === \"borderWidths\" ? `udsBorderWidth[${value}]` : `spacing[${value}]`,\n\tpossibleFixtures: [\"borderWidths\", \"spacingAliases\"]\n};\nconst solidOutline = {\n\tname: \"solidOutline\",\n\tcssProperties: \"outline-style\",\n\ttwThemePath: () => \"\",\n\tcustomValueRenderer: () => \"solid\",\n\tpossibleFixtures: []\n};\nconst insetOutlineOffset = {\n\tname: \"insetOutlineOffset\",\n\tcssProperties: \"outline-offset\",\n\ttwThemePath: () => \"\",\n\tcustomValueRenderer: ({ value, type }, schema, theme) => {\n\t\treturn `calc(-1 * ${type === \"borderWidths\" ? theme(`udsBorderWidth[${value}]`) : theme(`spacing[${value}]`)})`;\n\t},\n\tpossibleFixtures: [\"borderWidths\", \"spacingAliases\"]\n};\nconst outlineColor = {\n\tname: \"outlineColor\",\n\tcssProperties: \"outline-color\",\n\ttwThemePath: mapColorFixtureToValue,\n\tpossibleFixtures: [\n\t\t\"alwaysPaletteAliases\",\n\t\t\"spectrumColors\",\n\t\t\"linePaletteColors\"\n\t]\n};\nconst borderRadius = {\n\tname: \"borderRadius\",\n\tcssProperties: \"border-radius\",\n\ttwThemePath: (_, value) => `udsBorderRadius.${value}`,\n\tpossibleFixtures: [\"borderRadii\"]\n};\nconst borderRadiusVar = {\n\t...borderRadius,\n\tname: \"borderRadiusVar\",\n\tcssProperties: `--${BORDER_RADIUS_PREFIX}`\n};\nconst spacing = {\n\tname: \"spacing\",\n\tcssProperties: \"padding\",\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst spacingHorizontal = {\n\tname: \"spacingHorizontal\",\n\tcssProperties: [\"padding-right\", \"padding-left\"],\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst spacingVertical = {\n\tname: \"spacingVertical\",\n\tcssProperties: [\"padding-top\", \"padding-bottom\"],\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst spacingTop = {\n\tname: \"spacingTop\",\n\tcssProperties: \"padding-top\",\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst spacingBottom = {\n\tname: \"spacingBottom\",\n\tcssProperties: \"padding-bottom\",\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst horizontalMargin = {\n\tname: \"horizontalMargin\",\n\tcssProperties: [\"margin-left\", \"margin-right\"],\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst bottomMargin = {\n\tname: \"bottomMargin\",\n\tcssProperties: \"margin-bottom\",\n\ttwThemePath: (_, value) => `spacing[${value}]`,\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst height = {\n\tname: \"height\",\n\tcssProperties: \"height\",\n\ttwThemePath: (_, value) => {\n\t\treturn `height[${value}]`;\n\t},\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst width = {\n\tname: \"width\",\n\tcssProperties: \"width\",\n\ttwThemePath: (_, value) => {\n\t\treturn `width[${value}]`;\n\t},\n\tpossibleFixtures: [\"spacingAliases\"]\n};\nconst shadow = {\n\tname: \"drop shadow\",\n\tcssProperties: \"box-shadow\",\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tconcatenate: true,\n\tcustomValueRenderer: (schemaValue) => {\n\t\tconst shadowType = \"drop\";\n\t\tconst noneValue = \"0 0 0 transparent\";\n\t\tif (schemaValue.valueType === \"alias\") {\n\t\t\tconst noneValue = \"0 0 0 transparent\";\n\t\t\tif (schemaValue.value === \"none\") return noneValue;\n\t\t\tif (schemaValue.value !== \"custom\") return `var(--uds-${shadowType}-shadow-${schemaValue.value})`;\n\t\t} else if (schemaValue.valueType === \"custom\") return schemaValue.value.map((preset, index) => getShadowLayerValue({\n\t\t\tpreset,\n\t\t\tshadowType,\n\t\t\tprefix: index > 0 ? `${index + 1}` : void 0\n\t\t}))?.join(\", \") || noneValue;\n\t\tthrow new Error(\"Invalid valueType\");\n\t},\n\tpossibleFixtures: [\n\t\t\"shadowVariants\",\n\t\t\"shadowVariantConfig\",\n\t\t\"elevationAliases\"\n\t]\n};\nconst insetShadow = {\n\tname: \"inset shadow\",\n\tcssProperties: \"box-shadow\",\n\ttwThemePath: () => {\n\t\treturn ``;\n\t},\n\tconcatenate: true,\n\tcustomValueRenderer: (schemaValue) => {\n\t\tconst shadowType = \"inset\";\n\t\tconst noneValue = \"0 0 0 transparent\";\n\t\tif (schemaValue.valueType === \"alias\") {\n\t\t\tconst noneValue = \"0 0 0 transparent\";\n\t\t\tif (schemaValue.value === \"none\") return noneValue;\n\t\t\tif (schemaValue.value !== \"custom\") return `var(--uds-${shadowType}-shadow-${schemaValue.value})`;\n\t\t} else if (schemaValue.valueType === \"custom\") return schemaValue.value.map((preset, index) => getShadowLayerValue({\n\t\t\tpreset,\n\t\t\tshadowType,\n\t\t\tprefix: index > 0 ? `${index + 1}` : void 0\n\t\t}))?.join(\", \") || noneValue;\n\t\tthrow new Error(\"Invalid valueType\");\n\t},\n\tpossibleFixtures: [\"shadowVariantsWithInvert\"]\n};\nconst shadowVar = {\n\t...shadow,\n\tname: \"shadowVar\",\n\tcssProperties: `--${DROP_SHADOW_PREFIX}`\n};\nconst opacity = {\n\tname: \"opacity\",\n\tcssProperties: \"opacity\",\n\ttwThemePath: (_, value) => `opacity[${value}]`,\n\tpossibleFixtures: [\"opacitySteps\"]\n};\nconst publicProperties = {\n\tbackgroundColor,\n\tborderWidth,\n\tunderlineWidth,\n\tstrokeWidth,\n\tborderRadius,\n\tborderRadiusVar,\n\tborderColor,\n\tunderlineColor,\n\tstroke,\n\tbuttonSize: {\n\t\tname: \"buttonSize\",\n\t\tcssProperties: \"--uds-button-size\",\n\t\tpossibleFixtures: [\"buttonSizes\"],\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tcustomValueRenderer: (schemaValue) => {\n\t\t\treturn String(schemaValue.value);\n\t\t}\n\t},\n\tbuttonVariant: {\n\t\tname: \"buttonVariant\",\n\t\tcssProperties: \"--uds-button-variant\",\n\t\tpossibleFixtures: [\"buttonVariantsFlat\"],\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tcustomValueRenderer: (schemaValue) => {\n\t\t\treturn String(schemaValue.value);\n\t\t}\n\t},\n\tfontFamily,\n\tfontSize,\n\tfontVariationSettings,\n\tlineHeight,\n\ttextTransform,\n\tletterSpacing,\n\tgap,\n\tcolor,\n\topacity,\n\tfillOpacity: {\n\t\tname: \"fillOpacity\",\n\t\tcssProperties: \"fill-opacity\",\n\t\ttwThemePath: (_, value) => `opacity[${value}]`,\n\t\tpossibleFixtures: [\"opacitySteps\"]\n\t},\n\tfontWeight,\n\ticonSize: {\n\t\tname: \"iconSize\",\n\t\tcssProperties: [\"width\", \"height\"],\n\t\ttwThemePath: (_, value) => `sizing.icon.${value}`,\n\t\tpossibleFixtures: [\"iconSizes\"]\n\t},\n\tspacing,\n\ticonVariant: {\n\t\tname: \"iconVariant\",\n\t\tcssProperties: \"--uds-icon-variant\",\n\t\tpossibleFixtures: [\"iconVariants\"],\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tcustomValueRenderer: (schemaValue) => {\n\t\t\treturn String(schemaValue.value);\n\t\t}\n\t},\n\thorizontalMargin,\n\tbottomMargin,\n\tspacingHorizontal,\n\tspacingVertical,\n\tspacingTop,\n\tspacingBottom,\n\ttextVariant,\n\ttextDecorationLine,\n\tshadow,\n\tshadowVar,\n\tinsetShadow,\n\tbannerInnerShadow: {\n\t\tname: \"bannerInnerShadow\",\n\t\tcssProperties: \"box-shadow\",\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tpossibleFixtures: [\"bannerInnerShadowOptions\"],\n\t\tcustomValueRenderer: (schemaValue) => {\n\t\t\tconst noneValue = \"0 0 0 transparent\";\n\t\t\tif (schemaValue.value === \"none\") return noneValue;\n\t\t\tif (schemaValue.value === \"subtle\") return getShadowLayerValue({\n\t\t\t\tpreset: {\n\t\t\t\t\toffsetX: \"0\",\n\t\t\t\t\toffsetY: \"-5\",\n\t\t\t\t\tblur: \"5\",\n\t\t\t\t\tspread: \"-2.5\",\n\t\t\t\t\topacity: \"5\",\n\t\t\t\t\tcolor: {\n\t\t\t\t\t\ttype: \"spectrum\",\n\t\t\t\t\t\tvalue: \"carbon-12\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tshadowType: \"inset\",\n\t\t\t\tcssVarPrefix: \"--uds-banner-inset-shadow-\"\n\t\t\t});\n\t\t\tthrow new Error(\"Invalid bannerInnerShadow value\");\n\t\t}\n\t},\n\theight,\n\twidth,\n\tscaleEffect: {\n\t\tname: \"scaleEffect\",\n\t\tcssProperties: BUTTON_SCALE_EFFECT,\n\t\tpossibleFixtures: [\"scaleEffects\"],\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tcustomValueRenderer: (schemaValue) => {\n\t\t\tconst value = schemaValue.value;\n\t\t\treturn String(SCALE_EFFECTS[String(value)] ?? SCALE_EFFECTS.none);\n\t\t}\n\t},\n\tbackdropBlur: {\n\t\tname: \"backdropBlur\",\n\t\tpossibleFixtures: [\"positiveIntegers\"],\n\t\tcssProperties: \"--uds-backdrop-blur\",\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tcustomValueRenderer: (schemaValue, schema, _theme, originalPropertyDefinition) => {\n\t\t\tif (originalPropertyDefinition && originalPropertyDefinition.layerReference) {\n\t\t\t\tconst { variablePath, propertyName } = originalPropertyDefinition.layerReference;\n\t\t\t\tconst property = schema.variables[variablePath][propertyName].rest;\n\t\t\t\tif (property.type === \"elevationAliases\") return `var(--uds-background-blur-radius-${property.value})`;\n\t\t\t}\n\t\t\treturn schemaValue.value === 0 ? \"none\" : `blur(${schemaValue.value}px)`;\n\t\t}\n\t},\n\tblurBackgroundColor: {\n\t\t...backgroundColor,\n\t\tname: \"blurBackgroundColor\",\n\t\tcssProperties: `--${BACKGROUND_BLUR_COLOR_PREFIX}`\n\t},\n\tblurBackgroundColorFallback: {\n\t\t...backgroundColor,\n\t\tname: \"blurBackgroundColorFallback\",\n\t\tcssProperties: `--${BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX}`\n\t},\n\tscrimBackgroundColor: {\n\t\tname: \"scrimBackgroundColor\",\n\t\tcssProperties: \"--uds-scrim-background-color\",\n\t\ttwThemePath: () => {\n\t\t\treturn ``;\n\t\t},\n\t\tpossibleFixtures: [\n\t\t\t\"backgroundPaletteColors\",\n\t\t\t\"spectrumColors\",\n\t\t\t\"alwaysPaletteAliases\"\n\t\t],\n\t\tcustomValueRenderer: ({ value, type }, schema, theme) => {\n\t\t\tconst resolved = theme(mapColorFixtureToValue(type, value));\n\t\t\tif (resolved.startsWith(\"#\")) return hexToRgb(resolved) ?? resolved;\n\t\t\tif (resolved.startsWith(\"rgb(\") && resolved.endsWith(\")\")) return resolved.slice(4, -1);\n\t\t\treturn resolved;\n\t\t}\n\t},\n\tscrimOpacity: {\n\t\t...opacity,\n\t\tname: \"scrimOpacity\",\n\t\tcssProperties: \"--uds-scrim-opacity\",\n\t\ttwThemePath: () => \"\",\n\t\tcustomValueRenderer: ({ value }) => `${String(value)}%`\n\t}\n};\nconst internalProperties = {\n\toutlineWidth,\n\toutlineColor,\n\tinsetOutlineOffset,\n\tsolidOutline\n};\nconst configurableProperties = {\n\t...publicProperties,\n\t...internalProperties\n};\n//#endregion\nexport { configurableProperties };\n\n//# sourceMappingURL=properties.js.map"],"mappings":";;;;;;;;AAOA,MAAM,qBAAqB,YAAY;CACtC,OAAO,QAAQ,kBAAkB,WAAW,QAAQ,UAAU;;AAE/D,MAAM,YAAY,QAAQ;CACzB,MAAM,IAAI,QAAQ,KAAK,GAAG;CAC1B,IAAI,IAAI,WAAW,GAAG,MAAM,IAAI,MAAM,GAAG,CAAC,KAAK,SAAS,OAAO,KAAK,CAAC,KAAK,GAAG;CAC7E,OAAO,GAAG,SAAS,IAAI,UAAU,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,SAAS,IAAI,UAAU,GAAG,EAAE,EAAE,GAAG,CAAC,GAAG,SAAS,IAAI,UAAU,GAAG,EAAE,EAAE,GAAG;;AAEtH,MAAM,kBAAkB;CACvB,MAAM;CACN,eAAe;CACf,mBAAmB;EAClB,OAAO;;CAER,kBAAkB;EACjB;EACA;EACA;EACA;EACA;CACD,sBAAsB,EAAE,OAAO,QAAQ,QAAQ,UAAU;EACxD,IAAI,SAAS,oBAAoB,OAAO,8BAA8B,MAAM;EAC5E,OAAO,MAAM,uBAAuB,MAAM,MAAM,CAAC;;CAElD;AACD,MAAM,QAAQ;CACb,MAAM;CACN,eAAe;CACf,aAAa;CACb,kBAAkB;EACjB;EACA;EACA;EACA;CACD;AACD,MAAM,WAAW;CAChB,MAAM;CACN,eAAe;CACf,aAAa,6BAA6B,WAAW;CACrD,kBAAkB,CAAC,eAAe;CAClC;AACD,MAAM,wBAAwB;CAC7B,MAAM;CACN,eAAe;CACf,mBAAmB;EAClB,OAAO;;CAER,kBAAkB,CAAC,eAAe;CAClC,sBAAsB,gBAAgB;EACrC,MAAM,EAAE,OAAO,aAAa;EAC5B,MAAM,QAAQ,iBAAiB,SAAS;EACxC,OAAO,gCAAgC,MAAM,iCAAiC,MAAM,iCAAiC,MAAM,iCAAiC,MA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C1B,OAAO,OAAO,cAAc,OAAO,MAAM,KAAK,cAAc,KAAK;;EAElE;CACD,cAAc;EACb,MAAM;EACN,kBAAkB,CAAC,mBAAmB;EACtC,eAAe;EACf,mBAAmB;GAClB,OAAO;;EAER,sBAAsB,aAAa,QAAQ,QAAQ,+BAA+B;GACjF,IAAI,8BAA8B,2BAA2B,gBAAgB;IAC5E,MAAM,EAAE,cAAc,iBAAiB,2BAA2B;IAClE,MAAM,WAAW,OAAO,UAAU,cAAc,cAAc;IAC9D,IAAI,SAAS,SAAS,oBAAoB,OAAO,oCAAoC,SAAS,MAAM;;GAErG,OAAO,YAAY,UAAU,IAAI,SAAS,QAAQ,YAAY,MAAM;;EAErE;CACD,qBAAqB;EACpB,GAAG;EACH,MAAM;EACN,eAAe,KAAK;EACpB;CACD,6BAA6B;EAC5B,GAAG;EACH,MAAM;EACN,eAAe,KAAK;EACpB;CACD,sBAAsB;EACrB,MAAM;EACN,eAAe;EACf,mBAAmB;GAClB,OAAO;;EAER,kBAAkB;GACjB;GACA;GACA;GACA;EACD,sBAAsB,EAAE,OAAO,QAAQ,QAAQ,UAAU;GACxD,MAAM,WAAW,MAAM,uBAAuB,MAAM,MAAM,CAAC;GAC3D,IAAI,SAAS,WAAW,IAAI,EAAE,OAAO,SAAS,SAAS,IAAI;GAC3D,IAAI,SAAS,WAAW,OAAO,IAAI,SAAS,SAAS,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,GAAG;GACvF,OAAO;;EAER;CACD,cAAc;EACb,GAAG;EACH,MAAM;EACN,eAAe;EACf,mBAAmB;EACnB,sBAAsB,EAAE,YAAY,GAAG,OAAO,MAAM,CAAC;EACrD;CACD;AACD,MAAM,qBAAqB;CAC1B;CACA;CACA;CACA;CACA;AACD,MAAM,yBAAyB;CAC9B,GAAG;CACH,GAAG;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertUnreachable.js","names":[],"sources":["../../../../../automated-config/dist/utils/assertUnreachable.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\n//#region src/utils/assertUnreachable.ts\nconst assertUnreachable = (x) => {\n\tthrow new Error(\"Didn't expect to get here\");\n};\n//#endregion\nexport { assertUnreachable };\n\n//# sourceMappingURL=assertUnreachable.js.map"],"mappings":";;;AAEA,MAAM,qBAAqB,MAAM;
|
|
1
|
+
{"version":3,"file":"assertUnreachable.js","names":[],"sources":["../../../../../automated-config/dist/utils/assertUnreachable.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\n//#region src/utils/assertUnreachable.ts\nconst assertUnreachable = (x) => {\n\tthrow new Error(\"Didn't expect to get here\");\n};\n//#endregion\nexport { assertUnreachable };\n\n//# sourceMappingURL=assertUnreachable.js.map"],"mappings":";;;AAEA,MAAM,qBAAqB,MAAM;CAChC,MAAM,IAAI,MAAM,4BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateDefaultClassName.js","names":[],"sources":["../../../../../automated-config/dist/utils/generateDefaultClassName.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\n//#region src/utils/generateDefaultClassName.ts\n/**\n* Generates a default class name for a component variant.\n* Creates the class name for when variantValue='default', matching the pattern from generateClassName.\n*\n* @example\n* generateDefaultClassName('button', 'variant', 'root') // 'uds-button-variant-default-root'\n* generateDefaultClassName('button', 'size', 'icon', 'toggle') // 'uds-button-toggle-size-default-icon'\n*/\nfunction generateDefaultClassName(componentName, variantType, layerKey, subComponentName) {\n\treturn `uds-${componentName}${subComponentName ? `-${subComponentName}` : \"\"}-${variantType}-default-${layerKey}`.toLowerCase();\n}\n//#endregion\nexport { generateDefaultClassName };\n\n//# sourceMappingURL=generateDefaultClassName.js.map"],"mappings":";;;;;;;;;;;AAUA,SAAS,yBAAyB,eAAe,aAAa,UAAU,kBAAkB;
|
|
1
|
+
{"version":3,"file":"generateDefaultClassName.js","names":[],"sources":["../../../../../automated-config/dist/utils/generateDefaultClassName.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\n//#region src/utils/generateDefaultClassName.ts\n/**\n* Generates a default class name for a component variant.\n* Creates the class name for when variantValue='default', matching the pattern from generateClassName.\n*\n* @example\n* generateDefaultClassName('button', 'variant', 'root') // 'uds-button-variant-default-root'\n* generateDefaultClassName('button', 'size', 'icon', 'toggle') // 'uds-button-toggle-size-default-icon'\n*/\nfunction generateDefaultClassName(componentName, variantType, layerKey, subComponentName) {\n\treturn `uds-${componentName}${subComponentName ? `-${subComponentName}` : \"\"}-${variantType}-default-${layerKey}`.toLowerCase();\n}\n//#endregion\nexport { generateDefaultClassName };\n\n//# sourceMappingURL=generateDefaultClassName.js.map"],"mappings":";;;;;;;;;;;AAUA,SAAS,yBAAyB,eAAe,aAAa,UAAU,kBAAkB;CACzF,OAAO,OAAO,gBAAgB,mBAAmB,IAAI,qBAAqB,GAAG,GAAG,YAAY,WAAW,WAAW,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateSchemaKey.js","names":[],"sources":["../../../../../automated-config/dist/utils/generateSchemaKey.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\n//#region src/utils/generateSchemaKey.ts\nfunction generateSchemaKey({ variantKey, variantValue, layer, subComponentName, componentStateKey, componentStateValue }) {\n\tif (subComponentName) {\n\t\tif (componentStateKey && componentStateValue) return `${subComponentName}/${variantKey}/${variantValue}/${componentStateKey}/${componentStateValue}/${layer}`;\n\t\treturn `${subComponentName}/${variantKey}/${variantValue}/${layer}`;\n\t}\n\tif (componentStateKey && componentStateValue) return `${variantKey}/${variantValue}/${componentStateKey}/${componentStateValue}/${layer}`;\n\treturn `${variantKey}/${variantValue}/${layer}`;\n}\n//#endregion\nexport { generateSchemaKey };\n\n//# sourceMappingURL=generateSchemaKey.js.map"],"mappings":";;;AAEA,SAAS,kBAAkB,EAAE,YAAY,cAAc,OAAO,kBAAkB,mBAAmB,uBAAuB;
|
|
1
|
+
{"version":3,"file":"generateSchemaKey.js","names":[],"sources":["../../../../../automated-config/dist/utils/generateSchemaKey.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\n//#region src/utils/generateSchemaKey.ts\nfunction generateSchemaKey({ variantKey, variantValue, layer, subComponentName, componentStateKey, componentStateValue }) {\n\tif (subComponentName) {\n\t\tif (componentStateKey && componentStateValue) return `${subComponentName}/${variantKey}/${variantValue}/${componentStateKey}/${componentStateValue}/${layer}`;\n\t\treturn `${subComponentName}/${variantKey}/${variantValue}/${layer}`;\n\t}\n\tif (componentStateKey && componentStateValue) return `${variantKey}/${variantValue}/${componentStateKey}/${componentStateValue}/${layer}`;\n\treturn `${variantKey}/${variantValue}/${layer}`;\n}\n//#endregion\nexport { generateSchemaKey };\n\n//# sourceMappingURL=generateSchemaKey.js.map"],"mappings":";;;AAEA,SAAS,kBAAkB,EAAE,YAAY,cAAc,OAAO,kBAAkB,mBAAmB,uBAAuB;CACzH,IAAI,kBAAkB;EACrB,IAAI,qBAAqB,qBAAqB,OAAO,GAAG,iBAAiB,GAAG,WAAW,GAAG,aAAa,GAAG,kBAAkB,GAAG,oBAAoB,GAAG;EACtJ,OAAO,GAAG,iBAAiB,GAAG,WAAW,GAAG,aAAa,GAAG;;CAE7D,IAAI,qBAAqB,qBAAqB,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG,kBAAkB,GAAG,oBAAoB,GAAG;CAClI,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../automated-config/dist/utils/index.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\nimport { configurableProperties } from \"../properties.js\";\nimport { generateDefaultClassName } from \"./generateDefaultClassName.js\";\nimport { generateSchemaKey } from \"./generateSchemaKey.js\";\nimport { isVariantConfigWithComponentStates, isVariantConfigWithProperties } from \"./variantConfigGuards.js\";\nimport { buildConfigSchema, findFixtureType } from \"./buildConfigSchema.js\";\nimport { cartesianProduct } from \"./cartesianProduct.js\";\nimport { getConfigSubcomponents } from \"./subcomponents.js\";\nimport { coalesceConfigVariant } from \"./coalesceConfigVariant.js\";\nimport { getConfigDefaultValue, isConfigDefaultValue } from \"./defaults.js\";\nimport { generateKeyFromFlatConfigPath } from \"./generateKeyFromFlatConfigPath.js\";\nimport { getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix } from \"./getConfigVariantComponentStatesMatrix.js\";\nimport { getConfigVariantProperties } from \"./getConfigVariantProperties.js\";\nimport { getConfigVariantPseudoStates } from \"./getConfigVariantPseudoStates.js\";\nimport { getConfigVariants } from \"./getConfigVariants.js\";\nimport { BUTTON_GAP_VAR, BUTTON_SCALE_EFFECT_HOVER, BUTTON_SCALE_EFFECT_PRESSED, BUTTON_SCALE_EFFECT_REST } from \"@yahoo/uds-css-tokens\";\nimport { isFunction, mergeWith } from \"lodash-es\";\n//#region src/utils/index.ts\nconst CSS_GAP = \"gap\";\nconst CSS_LINE_HEIGHT = \"line-height\";\nconst CSS_BORDER_WIDTH = \"border-width\";\nconst CSS_BORDER_COLOR = \"border-color\";\nconst CSS_BOX_SHADOW = \"box-shadow\";\nconst CSS_BORDER_TOP_WIDTH = \"border-top-width\";\nconst CSS_BORDER_RIGHT_WIDTH = \"border-right-width\";\nconst CSS_BORDER_BOTTOM_WIDTH = \"border-bottom-width\";\nconst CSS_BORDER_LEFT_WIDTH = \"border-left-width\";\nconst CSS_BORDER_TOP_COLOR = \"border-top-color\";\nconst CSS_BORDER_RIGHT_COLOR = \"border-right-color\";\nconst CSS_BORDER_BOTTOM_COLOR = \"border-bottom-color\";\nconst CSS_BORDER_LEFT_COLOR = \"border-left-color\";\nconst CSS_TAB_UNDERLINE_WIDTH = \"--uds-tab-underline-width\";\nconst CSS_TAB_UNDERLINE_COLOR = \"--uds-tab-underline-color\";\nfunction deepMerge(target, source) {\n\treturn mergeWith({}, target, source);\n}\nconst COMPONENTS_WITH_SHADOW_BORDERS = [\n\t{\n\t\tcomponentName: \"button\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"iconbutton\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"chip\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"tab\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"tabs\",\n\t\tlayer: \"root\"\n\t}\n];\n/**\n* Map our \"states\" to pseudo-classes (hover => :hover, pressed => :active, etc.).\n* Adjust or extend as needed.\n*/\nconst statePseudoMap = {\n\trest: \"\",\n\thover: \":hover:not(:active, :disabled, :has(:disabled))\",\n\tpressed: \":active:not(:disabled, :has(:disabled))\",\n\tdisabled: \":is(:disabled, :has(:disabled))\",\n\tvisited: \":visited\",\n\tfocused: \":focus\",\n\t\"focus-within\": \":focus-within\",\n\t\"focused-keyboard\": \":focus-visible\",\n\treadonly: \":has(input:read-only)\",\n\tinvalid: \":has(input[aria-invalid=\\\"true\\\"])\",\n\t\"invalid&hover\": \":has(input[aria-invalid=\\\"true\\\"]):hover:not(:active, :disabled, :has(:disabled))\",\n\t\"invalid&pressed\": \":has(input[aria-invalid=\\\"true\\\"]):active:not(:disabled, :has(:disabled))\"\n};\nconst statePseudoMapDocsMode = {\n\trest: \"\",\n\thover: \"hover\",\n\tpressed: \"active\",\n\tdisabled: \"has-disabled\",\n\tvisited: \"visited\",\n\tfocused: \"focus\",\n\t\"focus-within\": \"focus-within\",\n\t\"focused-keyboard\": \"focus-visible\",\n\treadonly: \"input-readonly\",\n\tinvalid: \"has-input-invalid\",\n\t\"invalid&hover\": \"has-input-invalid-and-hover\",\n\t\"invalid&pressed\": \"has-input-invalid-and-active\"\n};\n/**\n* Generates button line-height with icon size minimum.\n* Ensures button line-height is at least as tall as the icon to prevent clipping.\n* @returns Enhanced line-height CSS value with max(), or original value if icon size unavailable\n*/\nfunction getButtonLineHeightWithIconMinimum({ lineHeight, schema, iconLayerKey, state, theme }) {\n\tconst iconSizeValue = schema.variables?.[iconLayerKey]?.size?.[state]?.value;\n\tif (iconSizeValue) return `max(${lineHeight}, ${theme(configurableProperties.iconSize.twThemePath(\"iconSizes\", iconSizeValue))})`;\n\treturn lineHeight;\n}\n/**\n* Forces button borders to use box-shadow instead of border properties.\n* Converts border-width and border-color into an inset box-shadow layer.\n*\n* Why box-shadow for borders?\n* - Respects border-radius (unlike outline which stays rectangular)\n* - Allows layering multiple shadows in a single property\n* - GPU-accelerated and performant\n* - Works perfectly with rounded/circular buttons\n*\n* @param classStyles - The CSS declarations for a button class\n* @returns Modified styles with box-shadow layers, or original if no border\n*\n* @example\n* Input: { border-width: '2px', border-color: 'red', box-shadow: '0 2px 4px rgba(0,0,0,0.1)' }\n* Output: { box-shadow: 'inset 0 0 0 2px red, 0 2px 4px rgba(0,0,0,0.1)' }\n* Renders borders using inset box-shadows instead of CSS border widths.\n* This preserves visual borders without affecting layout dimensions.\n*/\nfunction applyBoxShadowBorder(classStyles) {\n\tconst stripImportant = (value) => value.replace(/\\s*!important\\s*$/, \"\");\n\tconst hasImportant = (value) => value?.includes(\"!important\") ?? false;\n\tconst isZeroWidth = (value) => !value || /^(0|0px|0rem|0em|0%)$/i.test(stripImportant(value).trim());\n\tconst negateLength = (value) => {\n\t\tconst normalized = stripImportant(value).trim();\n\t\tif (/^(0|0px|0rem|0em|0%)$/i.test(normalized)) return \"0\";\n\t\treturn `calc(${normalized} * -1)`;\n\t};\n\tconst borderWidth = classStyles[CSS_BORDER_WIDTH];\n\tconst borderColor = classStyles[CSS_BORDER_COLOR];\n\tconst topWidth = classStyles[CSS_BORDER_TOP_WIDTH] ?? borderWidth;\n\tconst rightWidth = classStyles[CSS_BORDER_RIGHT_WIDTH] ?? borderWidth;\n\tconst bottomWidth = classStyles[CSS_BORDER_BOTTOM_WIDTH] ?? borderWidth;\n\tconst leftWidth = classStyles[CSS_BORDER_LEFT_WIDTH] ?? borderWidth;\n\tconst topColor = classStyles[CSS_BORDER_TOP_COLOR] ?? borderColor;\n\tconst rightColor = classStyles[CSS_BORDER_RIGHT_COLOR] ?? borderColor;\n\tconst bottomColor = classStyles[CSS_BORDER_BOTTOM_COLOR] ?? borderColor;\n\tconst leftColor = classStyles[CSS_BORDER_LEFT_COLOR] ?? borderColor;\n\tconst borderLayers = [];\n\tif (!isZeroWidth(topWidth) && topColor) borderLayers.push(`inset 0 ${stripImportant(topWidth)} 0 0 ${stripImportant(topColor)}`);\n\tif (!isZeroWidth(rightWidth) && rightColor) borderLayers.push(`inset ${negateLength(rightWidth)} 0 0 0 ${stripImportant(rightColor)}`);\n\tif (!isZeroWidth(bottomWidth) && bottomColor) borderLayers.push(`inset 0 ${negateLength(bottomWidth)} 0 0 ${stripImportant(bottomColor)}`);\n\tif (!isZeroWidth(leftWidth) && leftColor) borderLayers.push(`inset ${stripImportant(leftWidth)} 0 0 0 ${stripImportant(leftColor)}`);\n\tif (borderLayers.length === 0) return classStyles;\n\tconst layers = [...borderLayers, classStyles[CSS_BOX_SHADOW] && stripImportant(classStyles[CSS_BOX_SHADOW])].filter(Boolean);\n\tconst needsImportant = hasImportant(topWidth) || hasImportant(rightWidth) || hasImportant(bottomWidth) || hasImportant(leftWidth) || hasImportant(topColor) || hasImportant(rightColor) || hasImportant(bottomColor) || hasImportant(leftColor) || hasImportant(borderWidth) || hasImportant(borderColor) || hasImportant(classStyles[CSS_BOX_SHADOW]);\n\tconst newStyles = { ...classStyles };\n\tnewStyles[CSS_BOX_SHADOW] = layers.join(\", \") + (needsImportant ? \" !important\" : \"\");\n\tdelete newStyles[CSS_BORDER_WIDTH];\n\tdelete newStyles[CSS_BORDER_COLOR];\n\tdelete newStyles[CSS_BORDER_TOP_WIDTH];\n\tdelete newStyles[CSS_BORDER_RIGHT_WIDTH];\n\tdelete newStyles[CSS_BORDER_BOTTOM_WIDTH];\n\tdelete newStyles[CSS_BORDER_LEFT_WIDTH];\n\tdelete newStyles[CSS_BORDER_TOP_COLOR];\n\tdelete newStyles[CSS_BORDER_RIGHT_COLOR];\n\tdelete newStyles[CSS_BORDER_BOTTOM_COLOR];\n\tdelete newStyles[CSS_BORDER_LEFT_COLOR];\n\treturn newStyles;\n}\nfunction generateClassName({ componentName, subComponentName, variantKey, variantValue, componentStateKey, componentStateValue, layer, layerOptionalPseudoSelector }) {\n\tlet className = \"\";\n\tif (subComponentName) className = `uds-${componentName}-${subComponentName}-${variantKey}`.toLowerCase();\n\telse className = `uds-${componentName}-${variantKey}`.toLowerCase();\n\tif (variantValue) className = `${className}-${variantValue}`.toLowerCase();\n\tif (componentStateKey && componentStateValue) className = `${className}-${componentStateKey}-${componentStateValue}`.toLowerCase();\n\tclassName = `${className}-${layer}`.toLowerCase();\n\tif (layerOptionalPseudoSelector) className = `${className}${layerOptionalPseudoSelector}`;\n\treturn className.replaceAll(/\\s+/g, \"-\");\n}\nconst getTheCssPropertyValue = (schema, theme, propertyName, schemaStateValue, existingValue, originalPropertyDefinition) => {\n\tconst { value, type } = schemaStateValue;\n\tconst propertyConfig = configurableProperties[propertyName];\n\tlet newValue;\n\tif (propertyConfig.customValueRenderer) newValue = propertyConfig.customValueRenderer(schemaStateValue, schema, theme, originalPropertyDefinition);\n\telse {\n\t\tconst safeTwThemePath = propertyConfig.twThemePath;\n\t\tnewValue = theme(safeTwThemePath(type, String(value)));\n\t}\n\tif (propertyConfig.concatenate && existingValue) return `${existingValue}${propertyConfig.concatenationDelimiter || \", \"}${newValue}`;\n\treturn newValue;\n};\nfunction generateDeclaration({ componentName, subComponentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, componentStateKey, componentStateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions }) {\n\tconst schemaKey = generateSchemaKey({\n\t\tvariantKey,\n\t\tvariantValue,\n\t\tlayer,\n\t\tsubComponentName,\n\t\tcomponentStateKey,\n\t\tcomponentStateValue\n\t});\n\tlet className = generateClassName({\n\t\tcomponentName,\n\t\tvariantKey,\n\t\tvariantValue,\n\t\tlayer,\n\t\tsubComponentName,\n\t\tcomponentStateKey,\n\t\tcomponentStateValue\n\t});\n\tconst propertyStateMap = schema.variables?.[schemaKey]?.[propertyKey];\n\tif (!propertyStateMap) throw new Error(`Prop definition (${componentName} - ${schemaKey} - ${propertyKey}) not found, this is not expected, please report the bug to the UDS team`);\n\tconst styles = {};\n\tfor (const propStateStr in propertyStateMap) {\n\t\tconst propertyState = propStateStr;\n\t\tconst propertyStateSelector = statePseudoMap[propertyState] ?? \"\";\n\t\tconst schemaValueForState = propertyStateMap[propertyState];\n\t\tlet fullClassName = ``;\n\t\tif (layer === \"root\") if (componentStateKey && componentStateValue) {\n\t\t\tconst rootVariantClass = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tvariantValue,\n\t\t\t\tlayer,\n\t\t\t\tsubComponentName\n\t\t\t});\n\t\t\tclassName = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tlayer,\n\t\t\t\tsubComponentName,\n\t\t\t\tcomponentStateKey,\n\t\t\t\tcomponentStateValue\n\t\t\t});\n\t\t\tfullClassName = `.${rootVariantClass}${propertyStateSelector}.${className}`;\n\t\t} else fullClassName = `.${className}${propertyStateSelector}`;\n\t\telse {\n\t\t\tconst rootVariantClassName = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tvariantValue,\n\t\t\t\tlayer: \"root\",\n\t\t\t\tsubComponentName\n\t\t\t});\n\t\t\tif (componentStateKey && componentStateValue) {\n\t\t\t\tconst rootVariantClassNameWithComponentState = generateClassName({\n\t\t\t\t\tcomponentName,\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tlayer: \"root\",\n\t\t\t\t\tsubComponentName,\n\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\tcomponentStateValue\n\t\t\t\t});\n\t\t\t\tclassName = generateClassName({\n\t\t\t\t\tcomponentName,\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tvariantValue,\n\t\t\t\t\tlayer,\n\t\t\t\t\tlayerOptionalPseudoSelector,\n\t\t\t\t\tsubComponentName\n\t\t\t\t});\n\t\t\t\tfullClassName = `.${rootVariantClassName}${propertyStateSelector}.${rootVariantClassNameWithComponentState} .${className}`;\n\t\t\t} else fullClassName = `.${rootVariantClassName}${propertyStateSelector} .${className}`;\n\t\t}\n\t\tconst { cssProperties, extendedProperties: extendedPropertiesGetter } = configurableProperties[originalPropertyDefinition.name];\n\t\tconst cssDeclarations = {};\n\t\tconst isExtendedPropertiesFunction = isFunction(extendedPropertiesGetter);\n\t\tconst extendedProperties = isExtendedPropertiesFunction ? extendedPropertiesGetter({\n\t\t\tcomponentName,\n\t\t\tsubComponentName,\n\t\t\tlayer,\n\t\t\tpropertyKey\n\t\t}) : extendedPropertiesGetter;\n\t\tif (extendedProperties && extendedProperties.length) {\n\t\t\tif (!isExtendedPropertiesFunction && (typeof cssProperties === \"string\" || Array.isArray(cssProperties) && cssProperties.length > 0)) throw new Error(\"Invalid configuration: cssProperties should not be configured when extendedProperties are defined. Please update your property configuration accordingly.\");\n\t\t\tfor (const extendedProp of extendedProperties) {\n\t\t\t\tconst cssPropertiesRef = configurableProperties[extendedProp].cssProperties;\n\t\t\t\tif (typeof cssPropertiesRef === \"string\") {\n\t\t\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssPropertiesRef];\n\t\t\t\t\tcssDeclarations[cssPropertiesRef] = getTheCssPropertyValue(schema, theme, extendedProp, schemaValueForState, existingValue);\n\t\t\t\t} else if (Array.isArray(cssPropertiesRef)) for (const cssProp of cssPropertiesRef) {\n\t\t\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProp];\n\t\t\t\t\tcssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, extendedProp, schemaValueForState, existingValue);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (typeof cssProperties === \"string\") {\n\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProperties];\n\t\t\tcssDeclarations[cssProperties] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);\n\t\t} else if (Array.isArray(cssProperties)) for (const cssProp of cssProperties) {\n\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProp];\n\t\t\tcssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);\n\t\t}\n\t\t/**\n\t\t* Button root layer workarounds & enhancements.\n\t\t* These handle Motion animation bridges and visual fixes until better config-to-component solutions exist.\n\t\t*/\n\t\tif (componentName === \"button\" && layer === \"root\") {\n\t\t\tif (propertyKey === CSS_GAP) cssDeclarations[BUTTON_GAP_VAR] = cssDeclarations[CSS_GAP];\n\t\t\tif (propertyKey === \"scaleEffect\" && propertyState === \"hover\") {\n\t\t\t\tconst rootClassName = `.${className}`;\n\t\t\t\tconst renderValue = (schemaValue) => configurableProperties.scaleEffect.customValueRenderer?.(schemaValue, schema, () => \"\") ?? \"1\";\n\t\t\t\tif (!styles[rootClassName]) styles[rootClassName] = {};\n\t\t\t\tstyles[rootClassName][BUTTON_SCALE_EFFECT_REST] = \"1\";\n\t\t\t\tif (propertyStateMap.hover) styles[rootClassName][BUTTON_SCALE_EFFECT_HOVER] = renderValue(propertyStateMap.hover);\n\t\t\t\tif (propertyStateMap.pressed) styles[rootClassName][BUTTON_SCALE_EFFECT_PRESSED] = renderValue(propertyStateMap.pressed);\n\t\t\t}\n\t\t\tif (cssDeclarations[CSS_LINE_HEIGHT]) {\n\t\t\t\tconst iconLayerKey = generateSchemaKey({\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tvariantValue,\n\t\t\t\t\tlayer: \"icon\",\n\t\t\t\t\tsubComponentName\n\t\t\t\t});\n\t\t\t\tcssDeclarations[CSS_LINE_HEIGHT] = getButtonLineHeightWithIconMinimum({\n\t\t\t\t\tlineHeight: cssDeclarations[CSS_LINE_HEIGHT],\n\t\t\t\t\tschema,\n\t\t\t\t\ticonLayerKey,\n\t\t\t\t\tstate: propertyState,\n\t\t\t\t\ttheme\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tif ((componentName === \"tabs\" || componentName === \"tab\") && layer === \"root\") {\n\t\t\tconst schemaVariablesForKey = schema?.variables?.[schemaKey];\n\t\t\tif (propertyKey === \"borderWidth\" && schemaVariablesForKey?.underlineWidth) {\n\t\t\t\tconst borderWidth = cssDeclarations[CSS_BORDER_WIDTH];\n\t\t\t\tif (borderWidth) {\n\t\t\t\t\tcssDeclarations[CSS_BORDER_TOP_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_RIGHT_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_BOTTOM_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_LEFT_WIDTH] = borderWidth;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_WIDTH];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"borderColor\" && schemaVariablesForKey?.underlineColor) {\n\t\t\t\tconst borderColor = cssDeclarations[CSS_BORDER_COLOR];\n\t\t\t\tif (borderColor) {\n\t\t\t\t\tcssDeclarations[CSS_BORDER_TOP_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_RIGHT_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_BOTTOM_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_LEFT_COLOR] = borderColor;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_COLOR];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"underlineWidth\") {\n\t\t\t\tconst underlineWidth = cssDeclarations[CSS_BORDER_BOTTOM_WIDTH];\n\t\t\t\tif (underlineWidth) {\n\t\t\t\t\tcssDeclarations[CSS_TAB_UNDERLINE_WIDTH] = underlineWidth;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_BOTTOM_WIDTH];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"underlineColor\") {\n\t\t\t\tconst underlineColor = cssDeclarations[CSS_BORDER_BOTTOM_COLOR];\n\t\t\t\tif (underlineColor) {\n\t\t\t\t\tcssDeclarations[CSS_TAB_UNDERLINE_COLOR] = underlineColor;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_BOTTOM_COLOR];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!styles[fullClassName]) styles[fullClassName] = {\n\t\t\t...cssDeclarations,\n\t\t\t...styles[fullClassName]\n\t\t};\n\t\tif (previewOptions?.generatePseudoStateClassModifier) {\n\t\t\tconst pseudoPrefixClass = statePseudoMapDocsMode[propertyState] ?? \"\";\n\t\t\tif (pseudoPrefixClass.length) {\n\t\t\t\tconst importantCssDeclarations = Object.fromEntries(Object.entries(cssDeclarations).map(([prop, value]) => {\n\t\t\t\t\tconst strValue = String(value).trimEnd().replace(/;$/, \"\");\n\t\t\t\t\tif (strValue.includes(\"!important\")) return [prop, strValue];\n\t\t\t\t\treturn [prop, `${strValue} !important`];\n\t\t\t\t}));\n\t\t\t\tstyles[`.${pseudoPrefixClass}${fullClassName}`.replace(propertyStateSelector, \"\")] = {\n\t\t\t\t\t...importantCssDeclarations,\n\t\t\t\t\t...styles[`.${pseudoPrefixClass}${fullClassName}`.replace(propertyStateSelector, \"\")]\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n\treturn styles;\n}\nfunction generateConfigStyles(config, schema, theme, previewOptions) {\n\tconst componentName = config.label.toLowerCase();\n\tlet styles = {};\n\tfor (const variantKey in config.variants) {\n\t\tconst variantConfig = config.variants[variantKey];\n\t\tfor (const variantOption of variantConfig.options) if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\tconst componentStates = variantConfig.componentStates;\n\t\t\tfor (const componentStateKey in componentStates) {\n\t\t\t\tconst componentState = componentStates[componentStateKey];\n\t\t\t\tfor (const componentStateOption of componentState.options) for (const layerKey in componentState.layers) {\n\t\t\t\t\tconst layer = componentState.layers[layerKey];\n\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\t\t\tcomponentStateValue: componentStateOption,\n\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t});\n\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (isVariantConfigWithProperties(variantConfig)) {\n\t\t\tconst layers = variantConfig.layers;\n\t\t\tfor (const layerKey in layers) {\n\t\t\t\tconst layer = layers[layerKey];\n\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\ttheme,\n\t\t\t\t\t\tschema,\n\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t});\n\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (config.subComponents) {\n\t\tconst { subComponents } = config;\n\t\tfor (const subComponentKey in subComponents) for (const variantKey in subComponents[subComponentKey].variants) {\n\t\t\tconst variantConfig = subComponents[subComponentKey].variants[variantKey];\n\t\t\tfor (const variantOption of variantConfig.options) if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\t\tconst componentStates = variantConfig.componentStates;\n\t\t\t\tfor (const componentStateKey in componentStates) {\n\t\t\t\t\tconst componentState = componentStates[componentStateKey];\n\t\t\t\t\tfor (const componentStateOption of componentState.options) for (const layerKey in componentState.layers) {\n\t\t\t\t\t\tconst layer = componentState.layers[layerKey];\n\t\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\t\t\t\tcomponentStateValue: componentStateOption,\n\t\t\t\t\t\t\t\tsubComponentName: subComponentKey,\n\t\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (isVariantConfigWithProperties(variantConfig)) {\n\t\t\t\tconst layers = variantConfig.layers;\n\t\t\t\tfor (const layerKey in layers) {\n\t\t\t\t\tconst layer = layers[layerKey];\n\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\tsubComponentName: subComponentKey,\n\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t});\n\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t/**\n\t* Post-process button/iconbutton styles to force box-shadow for borders.\n\t* This runs AFTER all properties have been processed and merged.\n\t*/\n\tconst toApply = COMPONENTS_WITH_SHADOW_BORDERS.find((c) => c.componentName === componentName);\n\tif (toApply) {\n\t\tfor (const className in styles) if (className.includes(`-${toApply.layer}`.toLowerCase())) {\n\t\t\tconst raw = styles[className];\n\t\t\tif (toApply.componentName === \"tab\") {\n\t\t\t\tconst tabUnderlineWidth = raw[CSS_TAB_UNDERLINE_WIDTH];\n\t\t\t\tconst tabUnderlineColor = raw[CSS_TAB_UNDERLINE_COLOR];\n\t\t\t\tconst withoutTabUnderline = { ...raw };\n\t\t\t\tdelete withoutTabUnderline[CSS_TAB_UNDERLINE_WIDTH];\n\t\t\t\tdelete withoutTabUnderline[CSS_TAB_UNDERLINE_COLOR];\n\t\t\t\tconst merged = applyBoxShadowBorder(withoutTabUnderline);\n\t\t\t\tif (tabUnderlineWidth !== void 0) merged[CSS_TAB_UNDERLINE_WIDTH] = tabUnderlineWidth;\n\t\t\t\tif (tabUnderlineColor !== void 0) merged[CSS_TAB_UNDERLINE_COLOR] = tabUnderlineColor;\n\t\t\t\tstyles[className] = merged;\n\t\t\t} else styles[className] = applyBoxShadowBorder(raw);\n\t\t}\n\t}\n\treturn styles;\n}\n/**\n* @param config - Component configuration (Button, IconButton, etc.)\n* @param schema - Production schema with defaults and variables\n* @param theme - Tailwind theme function to resolve design tokens\n* @param previewOptions - Options for generating preview mode class modifiers\n* @returns CSS styles object with grouped selectors for default aliases\n*/\nconst generateStyles = (config, schema, theme, previewOptions) => {\n\tconst styles = generateConfigStyles(config, schema, theme, previewOptions);\n\tif (!config.variants && !config.subComponents) return styles;\n\tconst componentName = config.label.toLowerCase();\n\tif (componentName !== \"button\" && componentName !== \"iconbutton\") return styles;\n\tconst replacementMap = /* @__PURE__ */ new Map();\n\t/**\n\t* Helper: Extract all layer keys from a variant configuration\n\t* Handles both simple variants (with direct layers) and variants with component states\n\t*/\n\tconst getLayerKeys = (variantConfig) => {\n\t\tif (isVariantConfigWithProperties(variantConfig)) return Object.keys(variantConfig.layers);\n\t\telse if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\tconst layerKeysSet = /* @__PURE__ */ new Set();\n\t\t\tfor (const componentStateConfig of Object.values(variantConfig.componentStates)) Object.keys(componentStateConfig.layers).forEach((key) => layerKeysSet.add(key));\n\t\t\treturn Array.from(layerKeysSet);\n\t\t}\n\t\treturn [];\n\t};\n\t/**\n\t* Helper: Build replacement map for default variant values\n\t* For each default variant + layer combination, creates an entry like:\n\t* \"uds-button-size-sm-root\" → \".uds-button-size-sm-root, .uds-button-size-default-root\"\n\t*/\n\tconst buildReplacements = (variants, subComponentName) => {\n\t\tfor (const [variantType, variantConfig] of Object.entries(variants)) {\n\t\t\tif (!isVariantConfigWithProperties(variantConfig) && !isVariantConfigWithComponentStates(variantConfig)) continue;\n\t\t\tconst layerKeys = getLayerKeys(variantConfig);\n\t\t\tif (layerKeys.length) {\n\t\t\t\tconst defaultValue = schema.defaults?.[variantType];\n\t\t\t\tif (defaultValue) for (const layerKey of layerKeys) {\n\t\t\t\t\tconst baseClass = generateClassName({\n\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\tvariantKey: variantType,\n\t\t\t\t\t\tvariantValue: defaultValue,\n\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\tsubComponentName\n\t\t\t\t\t});\n\t\t\t\t\tconst defaultClass = generateDefaultClassName(componentName, variantType, layerKey, subComponentName);\n\t\t\t\t\treplacementMap.set(baseClass, `.${baseClass}, .${defaultClass}`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\tif (config.variants) buildReplacements(config.variants);\n\tif (config.subComponents) for (const [subComponentName, subComponentConfig] of Object.entries(config.subComponents)) buildReplacements(subComponentConfig.variants, subComponentName);\n\tconst finalStyles = {};\n\tfor (const [selector, declarations] of Object.entries(styles)) {\n\t\tlet defaultsSelector = selector;\n\t\tlet hasMatch = false;\n\t\tfor (const [defaultVariantClass, replacement] of replacementMap.entries()) if (selector.includes(defaultVariantClass)) {\n\t\t\thasMatch = true;\n\t\t\tconst defaultMatch = replacement.match(/,\\s*\\.([a-z0-9-]+)/);\n\t\t\tif (defaultMatch) {\n\t\t\t\tconst defaultClass = defaultMatch[1];\n\t\t\t\tdefaultsSelector = defaultsSelector.replaceAll(defaultVariantClass, defaultClass);\n\t\t\t}\n\t\t}\n\t\tif (!hasMatch) {\n\t\t\tfinalStyles[selector] = declarations;\n\t\t\tcontinue;\n\t\t}\n\t\tfinalStyles[`${selector}, ${defaultsSelector}`] = declarations;\n\t}\n\treturn finalStyles;\n};\nfunction createConfigurableProperty(prop) {\n\treturn prop;\n}\nfunction createVariantConfig(config) {\n\treturn config;\n}\nfunction createVariantConfigWithProperties(config) {\n\treturn config;\n}\nfunction createVariantConfigWithComponentStates(config) {\n\treturn config;\n}\nfunction createComponentStates(config) {\n\treturn config;\n}\nfunction createLayerConfig(config) {\n\treturn config;\n}\nfunction createSubComponentConfig(config) {\n\treturn config;\n}\n//#endregion\nexport { buildConfigSchema, cartesianProduct, coalesceConfigVariant, createComponentStates, createConfigurableProperty, createLayerConfig, createSubComponentConfig, createVariantConfig, createVariantConfigWithComponentStates, createVariantConfigWithProperties, findFixtureType, generateClassName, generateConfigStyles, generateDeclaration, generateDefaultClassName, generateKeyFromFlatConfigPath, generateSchemaKey, generateStyles, getConfigDefaultValue, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, isConfigDefaultValue, statePseudoMapDocsMode };\n\n//# sourceMappingURL=index.js.map"],"mappings":";;;;;;;;;AAkBA,MAAM,UAAU;AAChB,MAAM,kBAAkB;AACxB,MAAM,mBAAmB;AACzB,MAAM,mBAAmB;AACzB,MAAM,iBAAiB;AACvB,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,0BAA0B;AAChC,MAAM,wBAAwB;AAC9B,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,0BAA0B;AAChC,MAAM,wBAAwB;AAC9B,MAAM,0BAA0B;AAChC,MAAM,0BAA0B;AAChC,SAAS,UAAU,QAAQ,QAAQ;AAClC,QAAO,UAAU,EAAE,EAAE,QAAQ,OAAO;;AAErC,MAAM,iCAAiC;CACtC;EACC,eAAe;EACf,OAAO;EACP;CACD;EACC,eAAe;EACf,OAAO;EACP;CACD;EACC,eAAe;EACf,OAAO;EACP;CACD;EACC,eAAe;EACf,OAAO;EACP;CACD;EACC,eAAe;EACf,OAAO;EACP;CACD;;;;;AAKD,MAAM,iBAAiB;CACtB,MAAM;CACN,OAAO;CACP,SAAS;CACT,UAAU;CACV,SAAS;CACT,SAAS;CACT,gBAAgB;CAChB,oBAAoB;CACpB,UAAU;CACV,SAA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AkB,uBAAuB,OAAO,QAAQ,OAAO,cAAc,CAAE,mBAAkB,mBAAmB,UAAU,iBAAiB;CACrL,MAAM,cAAc,EAAE;AACtB,MAAK,MAAM,CAAC,UAAU,iBAAiB,OAAO,QAAQ,OAAO,EAAE;EAC9D,IAAI,mBAAmB;EACvB,IAAI,WAAW;AACf,OAAK,MAAM,CAAC,qBAAqB,gBAAgB,eAAe,SAAS,CAAE,KAAI,SAAS,SAAS,oBAAoB,EAAE;AACtH,cAAW;GACX,MAAM,eAAe,YAAY,MAAM,qBAAqB;AAC5D,OAAI,cAAc;IACjB,MAAM,eAAe,aAAa;AAClC,uBAAmB,iBAAiB,WAAW,qBAAqB,aAAa;;;AAGnF,MAAI,CAAC,UAAU;AACd,eAAY,YAAY;AACxB;;AAED,cAAY,GAAG,SAAS,IAAI,sBAAsB;;AAEnD,QAAO"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../automated-config/dist/utils/index.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\nimport { configurableProperties } from \"../properties.js\";\nimport { generateDefaultClassName } from \"./generateDefaultClassName.js\";\nimport { generateSchemaKey } from \"./generateSchemaKey.js\";\nimport { isVariantConfigWithComponentStates, isVariantConfigWithProperties } from \"./variantConfigGuards.js\";\nimport { buildConfigSchema, findFixtureType } from \"./buildConfigSchema.js\";\nimport { cartesianProduct } from \"./cartesianProduct.js\";\nimport { getConfigSubcomponents } from \"./subcomponents.js\";\nimport { coalesceConfigVariant } from \"./coalesceConfigVariant.js\";\nimport { getConfigDefaultValue, isConfigDefaultValue } from \"./defaults.js\";\nimport { generateKeyFromFlatConfigPath } from \"./generateKeyFromFlatConfigPath.js\";\nimport { getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix } from \"./getConfigVariantComponentStatesMatrix.js\";\nimport { getConfigVariantProperties } from \"./getConfigVariantProperties.js\";\nimport { getConfigVariantPseudoStates } from \"./getConfigVariantPseudoStates.js\";\nimport { getConfigVariants } from \"./getConfigVariants.js\";\nimport { BUTTON_GAP_VAR, BUTTON_SCALE_EFFECT_HOVER, BUTTON_SCALE_EFFECT_PRESSED, BUTTON_SCALE_EFFECT_REST } from \"@yahoo/uds-css-tokens\";\nimport { isFunction, mergeWith } from \"lodash-es\";\n//#region src/utils/index.ts\nconst CSS_GAP = \"gap\";\nconst CSS_LINE_HEIGHT = \"line-height\";\nconst CSS_BORDER_WIDTH = \"border-width\";\nconst CSS_BORDER_COLOR = \"border-color\";\nconst CSS_BOX_SHADOW = \"box-shadow\";\nconst CSS_BORDER_TOP_WIDTH = \"border-top-width\";\nconst CSS_BORDER_RIGHT_WIDTH = \"border-right-width\";\nconst CSS_BORDER_BOTTOM_WIDTH = \"border-bottom-width\";\nconst CSS_BORDER_LEFT_WIDTH = \"border-left-width\";\nconst CSS_BORDER_TOP_COLOR = \"border-top-color\";\nconst CSS_BORDER_RIGHT_COLOR = \"border-right-color\";\nconst CSS_BORDER_BOTTOM_COLOR = \"border-bottom-color\";\nconst CSS_BORDER_LEFT_COLOR = \"border-left-color\";\nconst CSS_TAB_UNDERLINE_WIDTH = \"--uds-tab-underline-width\";\nconst CSS_TAB_UNDERLINE_COLOR = \"--uds-tab-underline-color\";\nfunction deepMerge(target, source) {\n\treturn mergeWith({}, target, source);\n}\nconst COMPONENTS_WITH_SHADOW_BORDERS = [\n\t{\n\t\tcomponentName: \"button\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"iconbutton\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"chip\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"tab\",\n\t\tlayer: \"root\"\n\t},\n\t{\n\t\tcomponentName: \"tabs\",\n\t\tlayer: \"root\"\n\t}\n];\n/**\n* Map our \"states\" to pseudo-classes (hover => :hover, pressed => :active, etc.).\n* Adjust or extend as needed.\n*/\nconst statePseudoMap = {\n\trest: \"\",\n\thover: \":hover:not(:active, :disabled, :has(:disabled))\",\n\tpressed: \":active:not(:disabled, :has(:disabled))\",\n\tdisabled: \":is(:disabled, :has(:disabled))\",\n\tvisited: \":visited\",\n\tfocused: \":focus\",\n\t\"focus-within\": \":focus-within\",\n\t\"focused-keyboard\": \":focus-visible\",\n\treadonly: \":has(input:read-only)\",\n\tinvalid: \":has(input[aria-invalid=\\\"true\\\"])\",\n\t\"invalid&hover\": \":has(input[aria-invalid=\\\"true\\\"]):hover:not(:active, :disabled, :has(:disabled))\",\n\t\"invalid&pressed\": \":has(input[aria-invalid=\\\"true\\\"]):active:not(:disabled, :has(:disabled))\"\n};\nconst statePseudoMapDocsMode = {\n\trest: \"\",\n\thover: \"hover\",\n\tpressed: \"active\",\n\tdisabled: \"has-disabled\",\n\tvisited: \"visited\",\n\tfocused: \"focus\",\n\t\"focus-within\": \"focus-within\",\n\t\"focused-keyboard\": \"focus-visible\",\n\treadonly: \"input-readonly\",\n\tinvalid: \"has-input-invalid\",\n\t\"invalid&hover\": \"has-input-invalid-and-hover\",\n\t\"invalid&pressed\": \"has-input-invalid-and-active\"\n};\n/**\n* Generates button line-height with icon size minimum.\n* Ensures button line-height is at least as tall as the icon to prevent clipping.\n* @returns Enhanced line-height CSS value with max(), or original value if icon size unavailable\n*/\nfunction getButtonLineHeightWithIconMinimum({ lineHeight, schema, iconLayerKey, state, theme }) {\n\tconst iconSizeValue = schema.variables?.[iconLayerKey]?.size?.[state]?.value;\n\tif (iconSizeValue) return `max(${lineHeight}, ${theme(configurableProperties.iconSize.twThemePath(\"iconSizes\", iconSizeValue))})`;\n\treturn lineHeight;\n}\n/**\n* Forces button borders to use box-shadow instead of border properties.\n* Converts border-width and border-color into an inset box-shadow layer.\n*\n* Why box-shadow for borders?\n* - Respects border-radius (unlike outline which stays rectangular)\n* - Allows layering multiple shadows in a single property\n* - GPU-accelerated and performant\n* - Works perfectly with rounded/circular buttons\n*\n* @param classStyles - The CSS declarations for a button class\n* @returns Modified styles with box-shadow layers, or original if no border\n*\n* @example\n* Input: { border-width: '2px', border-color: 'red', box-shadow: '0 2px 4px rgba(0,0,0,0.1)' }\n* Output: { box-shadow: 'inset 0 0 0 2px red, 0 2px 4px rgba(0,0,0,0.1)' }\n* Renders borders using inset box-shadows instead of CSS border widths.\n* This preserves visual borders without affecting layout dimensions.\n*/\nfunction applyBoxShadowBorder(classStyles) {\n\tconst stripImportant = (value) => value.replace(/\\s*!important\\s*$/, \"\");\n\tconst hasImportant = (value) => value?.includes(\"!important\") ?? false;\n\tconst isZeroWidth = (value) => !value || /^(0|0px|0rem|0em|0%)$/i.test(stripImportant(value).trim());\n\tconst negateLength = (value) => {\n\t\tconst normalized = stripImportant(value).trim();\n\t\tif (/^(0|0px|0rem|0em|0%)$/i.test(normalized)) return \"0\";\n\t\treturn `calc(${normalized} * -1)`;\n\t};\n\tconst borderWidth = classStyles[CSS_BORDER_WIDTH];\n\tconst borderColor = classStyles[CSS_BORDER_COLOR];\n\tconst topWidth = classStyles[CSS_BORDER_TOP_WIDTH] ?? borderWidth;\n\tconst rightWidth = classStyles[CSS_BORDER_RIGHT_WIDTH] ?? borderWidth;\n\tconst bottomWidth = classStyles[CSS_BORDER_BOTTOM_WIDTH] ?? borderWidth;\n\tconst leftWidth = classStyles[CSS_BORDER_LEFT_WIDTH] ?? borderWidth;\n\tconst topColor = classStyles[CSS_BORDER_TOP_COLOR] ?? borderColor;\n\tconst rightColor = classStyles[CSS_BORDER_RIGHT_COLOR] ?? borderColor;\n\tconst bottomColor = classStyles[CSS_BORDER_BOTTOM_COLOR] ?? borderColor;\n\tconst leftColor = classStyles[CSS_BORDER_LEFT_COLOR] ?? borderColor;\n\tconst borderLayers = [];\n\tif (!isZeroWidth(topWidth) && topColor) borderLayers.push(`inset 0 ${stripImportant(topWidth)} 0 0 ${stripImportant(topColor)}`);\n\tif (!isZeroWidth(rightWidth) && rightColor) borderLayers.push(`inset ${negateLength(rightWidth)} 0 0 0 ${stripImportant(rightColor)}`);\n\tif (!isZeroWidth(bottomWidth) && bottomColor) borderLayers.push(`inset 0 ${negateLength(bottomWidth)} 0 0 ${stripImportant(bottomColor)}`);\n\tif (!isZeroWidth(leftWidth) && leftColor) borderLayers.push(`inset ${stripImportant(leftWidth)} 0 0 0 ${stripImportant(leftColor)}`);\n\tif (borderLayers.length === 0) return classStyles;\n\tconst layers = [...borderLayers, classStyles[CSS_BOX_SHADOW] && stripImportant(classStyles[CSS_BOX_SHADOW])].filter(Boolean);\n\tconst needsImportant = hasImportant(topWidth) || hasImportant(rightWidth) || hasImportant(bottomWidth) || hasImportant(leftWidth) || hasImportant(topColor) || hasImportant(rightColor) || hasImportant(bottomColor) || hasImportant(leftColor) || hasImportant(borderWidth) || hasImportant(borderColor) || hasImportant(classStyles[CSS_BOX_SHADOW]);\n\tconst newStyles = { ...classStyles };\n\tnewStyles[CSS_BOX_SHADOW] = layers.join(\", \") + (needsImportant ? \" !important\" : \"\");\n\tdelete newStyles[CSS_BORDER_WIDTH];\n\tdelete newStyles[CSS_BORDER_COLOR];\n\tdelete newStyles[CSS_BORDER_TOP_WIDTH];\n\tdelete newStyles[CSS_BORDER_RIGHT_WIDTH];\n\tdelete newStyles[CSS_BORDER_BOTTOM_WIDTH];\n\tdelete newStyles[CSS_BORDER_LEFT_WIDTH];\n\tdelete newStyles[CSS_BORDER_TOP_COLOR];\n\tdelete newStyles[CSS_BORDER_RIGHT_COLOR];\n\tdelete newStyles[CSS_BORDER_BOTTOM_COLOR];\n\tdelete newStyles[CSS_BORDER_LEFT_COLOR];\n\treturn newStyles;\n}\nfunction generateClassName({ componentName, subComponentName, variantKey, variantValue, componentStateKey, componentStateValue, layer, layerOptionalPseudoSelector }) {\n\tlet className = \"\";\n\tif (subComponentName) className = `uds-${componentName}-${subComponentName}-${variantKey}`.toLowerCase();\n\telse className = `uds-${componentName}-${variantKey}`.toLowerCase();\n\tif (variantValue) className = `${className}-${variantValue}`.toLowerCase();\n\tif (componentStateKey && componentStateValue) className = `${className}-${componentStateKey}-${componentStateValue}`.toLowerCase();\n\tclassName = `${className}-${layer}`.toLowerCase();\n\tif (layerOptionalPseudoSelector) className = `${className}${layerOptionalPseudoSelector}`;\n\treturn className.replaceAll(/\\s+/g, \"-\");\n}\nconst getTheCssPropertyValue = (schema, theme, propertyName, schemaStateValue, existingValue, originalPropertyDefinition) => {\n\tconst { value, type } = schemaStateValue;\n\tconst propertyConfig = configurableProperties[propertyName];\n\tlet newValue;\n\tif (propertyConfig.customValueRenderer) newValue = propertyConfig.customValueRenderer(schemaStateValue, schema, theme, originalPropertyDefinition);\n\telse {\n\t\tconst safeTwThemePath = propertyConfig.twThemePath;\n\t\tnewValue = theme(safeTwThemePath(type, String(value)));\n\t}\n\tif (propertyConfig.concatenate && existingValue) return `${existingValue}${propertyConfig.concatenationDelimiter || \", \"}${newValue}`;\n\treturn newValue;\n};\nfunction generateDeclaration({ componentName, subComponentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, componentStateKey, componentStateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions }) {\n\tconst schemaKey = generateSchemaKey({\n\t\tvariantKey,\n\t\tvariantValue,\n\t\tlayer,\n\t\tsubComponentName,\n\t\tcomponentStateKey,\n\t\tcomponentStateValue\n\t});\n\tlet className = generateClassName({\n\t\tcomponentName,\n\t\tvariantKey,\n\t\tvariantValue,\n\t\tlayer,\n\t\tsubComponentName,\n\t\tcomponentStateKey,\n\t\tcomponentStateValue\n\t});\n\tconst propertyStateMap = schema.variables?.[schemaKey]?.[propertyKey];\n\tif (!propertyStateMap) throw new Error(`Prop definition (${componentName} - ${schemaKey} - ${propertyKey}) not found, this is not expected, please report the bug to the UDS team`);\n\tconst styles = {};\n\tfor (const propStateStr in propertyStateMap) {\n\t\tconst propertyState = propStateStr;\n\t\tconst propertyStateSelector = statePseudoMap[propertyState] ?? \"\";\n\t\tconst schemaValueForState = propertyStateMap[propertyState];\n\t\tlet fullClassName = ``;\n\t\tif (layer === \"root\") if (componentStateKey && componentStateValue) {\n\t\t\tconst rootVariantClass = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tvariantValue,\n\t\t\t\tlayer,\n\t\t\t\tsubComponentName\n\t\t\t});\n\t\t\tclassName = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tlayer,\n\t\t\t\tsubComponentName,\n\t\t\t\tcomponentStateKey,\n\t\t\t\tcomponentStateValue\n\t\t\t});\n\t\t\tfullClassName = `.${rootVariantClass}${propertyStateSelector}.${className}`;\n\t\t} else fullClassName = `.${className}${propertyStateSelector}`;\n\t\telse {\n\t\t\tconst rootVariantClassName = generateClassName({\n\t\t\t\tcomponentName,\n\t\t\t\tvariantKey,\n\t\t\t\tvariantValue,\n\t\t\t\tlayer: \"root\",\n\t\t\t\tsubComponentName\n\t\t\t});\n\t\t\tif (componentStateKey && componentStateValue) {\n\t\t\t\tconst rootVariantClassNameWithComponentState = generateClassName({\n\t\t\t\t\tcomponentName,\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tlayer: \"root\",\n\t\t\t\t\tsubComponentName,\n\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\tcomponentStateValue\n\t\t\t\t});\n\t\t\t\tclassName = generateClassName({\n\t\t\t\t\tcomponentName,\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tvariantValue,\n\t\t\t\t\tlayer,\n\t\t\t\t\tlayerOptionalPseudoSelector,\n\t\t\t\t\tsubComponentName\n\t\t\t\t});\n\t\t\t\tfullClassName = `.${rootVariantClassName}${propertyStateSelector}.${rootVariantClassNameWithComponentState} .${className}`;\n\t\t\t} else fullClassName = `.${rootVariantClassName}${propertyStateSelector} .${className}`;\n\t\t}\n\t\tconst { cssProperties, extendedProperties: extendedPropertiesGetter } = configurableProperties[originalPropertyDefinition.name];\n\t\tconst cssDeclarations = {};\n\t\tconst isExtendedPropertiesFunction = isFunction(extendedPropertiesGetter);\n\t\tconst extendedProperties = isExtendedPropertiesFunction ? extendedPropertiesGetter({\n\t\t\tcomponentName,\n\t\t\tsubComponentName,\n\t\t\tlayer,\n\t\t\tpropertyKey\n\t\t}) : extendedPropertiesGetter;\n\t\tif (extendedProperties && extendedProperties.length) {\n\t\t\tif (!isExtendedPropertiesFunction && (typeof cssProperties === \"string\" || Array.isArray(cssProperties) && cssProperties.length > 0)) throw new Error(\"Invalid configuration: cssProperties should not be configured when extendedProperties are defined. Please update your property configuration accordingly.\");\n\t\t\tfor (const extendedProp of extendedProperties) {\n\t\t\t\tconst cssPropertiesRef = configurableProperties[extendedProp].cssProperties;\n\t\t\t\tif (typeof cssPropertiesRef === \"string\") {\n\t\t\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssPropertiesRef];\n\t\t\t\t\tcssDeclarations[cssPropertiesRef] = getTheCssPropertyValue(schema, theme, extendedProp, schemaValueForState, existingValue);\n\t\t\t\t} else if (Array.isArray(cssPropertiesRef)) for (const cssProp of cssPropertiesRef) {\n\t\t\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProp];\n\t\t\t\t\tcssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, extendedProp, schemaValueForState, existingValue);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (typeof cssProperties === \"string\") {\n\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProperties];\n\t\t\tcssDeclarations[cssProperties] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);\n\t\t} else if (Array.isArray(cssProperties)) for (const cssProp of cssProperties) {\n\t\t\tconst existingValue = currentStyles?.[fullClassName]?.[cssProp];\n\t\t\tcssDeclarations[cssProp] = getTheCssPropertyValue(schema, theme, originalPropertyDefinition.name, schemaValueForState, existingValue, originalPropertyDefinition);\n\t\t}\n\t\t/**\n\t\t* Button root layer workarounds & enhancements.\n\t\t* These handle Motion animation bridges and visual fixes until better config-to-component solutions exist.\n\t\t*/\n\t\tif (componentName === \"button\" && layer === \"root\") {\n\t\t\tif (propertyKey === CSS_GAP) cssDeclarations[BUTTON_GAP_VAR] = cssDeclarations[CSS_GAP];\n\t\t\tif (propertyKey === \"scaleEffect\" && propertyState === \"hover\") {\n\t\t\t\tconst rootClassName = `.${className}`;\n\t\t\t\tconst renderValue = (schemaValue) => configurableProperties.scaleEffect.customValueRenderer?.(schemaValue, schema, () => \"\") ?? \"1\";\n\t\t\t\tif (!styles[rootClassName]) styles[rootClassName] = {};\n\t\t\t\tstyles[rootClassName][BUTTON_SCALE_EFFECT_REST] = \"1\";\n\t\t\t\tif (propertyStateMap.hover) styles[rootClassName][BUTTON_SCALE_EFFECT_HOVER] = renderValue(propertyStateMap.hover);\n\t\t\t\tif (propertyStateMap.pressed) styles[rootClassName][BUTTON_SCALE_EFFECT_PRESSED] = renderValue(propertyStateMap.pressed);\n\t\t\t}\n\t\t\tif (cssDeclarations[CSS_LINE_HEIGHT]) {\n\t\t\t\tconst iconLayerKey = generateSchemaKey({\n\t\t\t\t\tvariantKey,\n\t\t\t\t\tvariantValue,\n\t\t\t\t\tlayer: \"icon\",\n\t\t\t\t\tsubComponentName\n\t\t\t\t});\n\t\t\t\tcssDeclarations[CSS_LINE_HEIGHT] = getButtonLineHeightWithIconMinimum({\n\t\t\t\t\tlineHeight: cssDeclarations[CSS_LINE_HEIGHT],\n\t\t\t\t\tschema,\n\t\t\t\t\ticonLayerKey,\n\t\t\t\t\tstate: propertyState,\n\t\t\t\t\ttheme\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tif ((componentName === \"tabs\" || componentName === \"tab\") && layer === \"root\") {\n\t\t\tconst schemaVariablesForKey = schema?.variables?.[schemaKey];\n\t\t\tif (propertyKey === \"borderWidth\" && schemaVariablesForKey?.underlineWidth) {\n\t\t\t\tconst borderWidth = cssDeclarations[CSS_BORDER_WIDTH];\n\t\t\t\tif (borderWidth) {\n\t\t\t\t\tcssDeclarations[CSS_BORDER_TOP_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_RIGHT_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_BOTTOM_WIDTH] = borderWidth;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_LEFT_WIDTH] = borderWidth;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_WIDTH];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"borderColor\" && schemaVariablesForKey?.underlineColor) {\n\t\t\t\tconst borderColor = cssDeclarations[CSS_BORDER_COLOR];\n\t\t\t\tif (borderColor) {\n\t\t\t\t\tcssDeclarations[CSS_BORDER_TOP_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_RIGHT_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_BOTTOM_COLOR] = borderColor;\n\t\t\t\t\tcssDeclarations[CSS_BORDER_LEFT_COLOR] = borderColor;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_COLOR];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"underlineWidth\") {\n\t\t\t\tconst underlineWidth = cssDeclarations[CSS_BORDER_BOTTOM_WIDTH];\n\t\t\t\tif (underlineWidth) {\n\t\t\t\t\tcssDeclarations[CSS_TAB_UNDERLINE_WIDTH] = underlineWidth;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_BOTTOM_WIDTH];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (propertyKey === \"underlineColor\") {\n\t\t\t\tconst underlineColor = cssDeclarations[CSS_BORDER_BOTTOM_COLOR];\n\t\t\t\tif (underlineColor) {\n\t\t\t\t\tcssDeclarations[CSS_TAB_UNDERLINE_COLOR] = underlineColor;\n\t\t\t\t\tdelete cssDeclarations[CSS_BORDER_BOTTOM_COLOR];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!styles[fullClassName]) styles[fullClassName] = {\n\t\t\t...cssDeclarations,\n\t\t\t...styles[fullClassName]\n\t\t};\n\t\tif (previewOptions?.generatePseudoStateClassModifier) {\n\t\t\tconst pseudoPrefixClass = statePseudoMapDocsMode[propertyState] ?? \"\";\n\t\t\tif (pseudoPrefixClass.length) {\n\t\t\t\tconst importantCssDeclarations = Object.fromEntries(Object.entries(cssDeclarations).map(([prop, value]) => {\n\t\t\t\t\tconst strValue = String(value).trimEnd().replace(/;$/, \"\");\n\t\t\t\t\tif (strValue.includes(\"!important\")) return [prop, strValue];\n\t\t\t\t\treturn [prop, `${strValue} !important`];\n\t\t\t\t}));\n\t\t\t\tstyles[`.${pseudoPrefixClass}${fullClassName}`.replace(propertyStateSelector, \"\")] = {\n\t\t\t\t\t...importantCssDeclarations,\n\t\t\t\t\t...styles[`.${pseudoPrefixClass}${fullClassName}`.replace(propertyStateSelector, \"\")]\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n\treturn styles;\n}\nfunction generateConfigStyles(config, schema, theme, previewOptions) {\n\tconst componentName = config.label.toLowerCase();\n\tlet styles = {};\n\tfor (const variantKey in config.variants) {\n\t\tconst variantConfig = config.variants[variantKey];\n\t\tfor (const variantOption of variantConfig.options) if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\tconst componentStates = variantConfig.componentStates;\n\t\t\tfor (const componentStateKey in componentStates) {\n\t\t\t\tconst componentState = componentStates[componentStateKey];\n\t\t\t\tfor (const componentStateOption of componentState.options) for (const layerKey in componentState.layers) {\n\t\t\t\t\tconst layer = componentState.layers[layerKey];\n\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\t\t\tcomponentStateValue: componentStateOption,\n\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t});\n\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (isVariantConfigWithProperties(variantConfig)) {\n\t\t\tconst layers = variantConfig.layers;\n\t\t\tfor (const layerKey in layers) {\n\t\t\t\tconst layer = layers[layerKey];\n\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\ttheme,\n\t\t\t\t\t\tschema,\n\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t});\n\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (config.subComponents) {\n\t\tconst { subComponents } = config;\n\t\tfor (const subComponentKey in subComponents) for (const variantKey in subComponents[subComponentKey].variants) {\n\t\t\tconst variantConfig = subComponents[subComponentKey].variants[variantKey];\n\t\t\tfor (const variantOption of variantConfig.options) if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\t\tconst componentStates = variantConfig.componentStates;\n\t\t\t\tfor (const componentStateKey in componentStates) {\n\t\t\t\t\tconst componentState = componentStates[componentStateKey];\n\t\t\t\t\tfor (const componentStateOption of componentState.options) for (const layerKey in componentState.layers) {\n\t\t\t\t\t\tconst layer = componentState.layers[layerKey];\n\t\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\t\tcomponentStateKey,\n\t\t\t\t\t\t\t\tcomponentStateValue: componentStateOption,\n\t\t\t\t\t\t\t\tsubComponentName: subComponentKey,\n\t\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (isVariantConfigWithProperties(variantConfig)) {\n\t\t\t\tconst layers = variantConfig.layers;\n\t\t\t\tfor (const layerKey in layers) {\n\t\t\t\t\tconst layer = layers[layerKey];\n\t\t\t\t\tfor (const propertyKey in layer.properties) {\n\t\t\t\t\t\tconst originalPropertyDefinition = layer.properties[propertyKey];\n\t\t\t\t\t\tconst declarations = generateDeclaration({\n\t\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\t\tsubComponentName: subComponentKey,\n\t\t\t\t\t\t\tvariantKey,\n\t\t\t\t\t\t\tvariantValue: variantOption,\n\t\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\t\tlayerOptionalPseudoSelector: layer.pseudoSelector,\n\t\t\t\t\t\t\tpropertyKey,\n\t\t\t\t\t\t\toriginalPropertyDefinition,\n\t\t\t\t\t\t\ttheme,\n\t\t\t\t\t\t\tschema,\n\t\t\t\t\t\t\tcurrentStyles: styles,\n\t\t\t\t\t\t\tpreviewOptions\n\t\t\t\t\t\t});\n\t\t\t\t\t\tstyles = deepMerge(styles, declarations);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t/**\n\t* Post-process button/iconbutton styles to force box-shadow for borders.\n\t* This runs AFTER all properties have been processed and merged.\n\t*/\n\tconst toApply = COMPONENTS_WITH_SHADOW_BORDERS.find((c) => c.componentName === componentName);\n\tif (toApply) {\n\t\tfor (const className in styles) if (className.includes(`-${toApply.layer}`.toLowerCase())) {\n\t\t\tconst raw = styles[className];\n\t\t\tif (toApply.componentName === \"tab\") {\n\t\t\t\tconst tabUnderlineWidth = raw[CSS_TAB_UNDERLINE_WIDTH];\n\t\t\t\tconst tabUnderlineColor = raw[CSS_TAB_UNDERLINE_COLOR];\n\t\t\t\tconst withoutTabUnderline = { ...raw };\n\t\t\t\tdelete withoutTabUnderline[CSS_TAB_UNDERLINE_WIDTH];\n\t\t\t\tdelete withoutTabUnderline[CSS_TAB_UNDERLINE_COLOR];\n\t\t\t\tconst merged = applyBoxShadowBorder(withoutTabUnderline);\n\t\t\t\tif (tabUnderlineWidth !== void 0) merged[CSS_TAB_UNDERLINE_WIDTH] = tabUnderlineWidth;\n\t\t\t\tif (tabUnderlineColor !== void 0) merged[CSS_TAB_UNDERLINE_COLOR] = tabUnderlineColor;\n\t\t\t\tstyles[className] = merged;\n\t\t\t} else styles[className] = applyBoxShadowBorder(raw);\n\t\t}\n\t}\n\treturn styles;\n}\n/**\n* @param config - Component configuration (Button, IconButton, etc.)\n* @param schema - Production schema with defaults and variables\n* @param theme - Tailwind theme function to resolve design tokens\n* @param previewOptions - Options for generating preview mode class modifiers\n* @returns CSS styles object with grouped selectors for default aliases\n*/\nconst generateStyles = (config, schema, theme, previewOptions) => {\n\tconst styles = generateConfigStyles(config, schema, theme, previewOptions);\n\tif (!config.variants && !config.subComponents) return styles;\n\tconst componentName = config.label.toLowerCase();\n\tif (componentName !== \"button\" && componentName !== \"iconbutton\") return styles;\n\tconst replacementMap = /* @__PURE__ */ new Map();\n\t/**\n\t* Helper: Extract all layer keys from a variant configuration\n\t* Handles both simple variants (with direct layers) and variants with component states\n\t*/\n\tconst getLayerKeys = (variantConfig) => {\n\t\tif (isVariantConfigWithProperties(variantConfig)) return Object.keys(variantConfig.layers);\n\t\telse if (isVariantConfigWithComponentStates(variantConfig)) {\n\t\t\tconst layerKeysSet = /* @__PURE__ */ new Set();\n\t\t\tfor (const componentStateConfig of Object.values(variantConfig.componentStates)) Object.keys(componentStateConfig.layers).forEach((key) => layerKeysSet.add(key));\n\t\t\treturn Array.from(layerKeysSet);\n\t\t}\n\t\treturn [];\n\t};\n\t/**\n\t* Helper: Build replacement map for default variant values\n\t* For each default variant + layer combination, creates an entry like:\n\t* \"uds-button-size-sm-root\" → \".uds-button-size-sm-root, .uds-button-size-default-root\"\n\t*/\n\tconst buildReplacements = (variants, subComponentName) => {\n\t\tfor (const [variantType, variantConfig] of Object.entries(variants)) {\n\t\t\tif (!isVariantConfigWithProperties(variantConfig) && !isVariantConfigWithComponentStates(variantConfig)) continue;\n\t\t\tconst layerKeys = getLayerKeys(variantConfig);\n\t\t\tif (layerKeys.length) {\n\t\t\t\tconst defaultValue = schema.defaults?.[variantType];\n\t\t\t\tif (defaultValue) for (const layerKey of layerKeys) {\n\t\t\t\t\tconst baseClass = generateClassName({\n\t\t\t\t\t\tcomponentName,\n\t\t\t\t\t\tvariantKey: variantType,\n\t\t\t\t\t\tvariantValue: defaultValue,\n\t\t\t\t\t\tlayer: layerKey,\n\t\t\t\t\t\tsubComponentName\n\t\t\t\t\t});\n\t\t\t\t\tconst defaultClass = generateDefaultClassName(componentName, variantType, layerKey, subComponentName);\n\t\t\t\t\treplacementMap.set(baseClass, `.${baseClass}, .${defaultClass}`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\tif (config.variants) buildReplacements(config.variants);\n\tif (config.subComponents) for (const [subComponentName, subComponentConfig] of Object.entries(config.subComponents)) buildReplacements(subComponentConfig.variants, subComponentName);\n\tconst finalStyles = {};\n\tfor (const [selector, declarations] of Object.entries(styles)) {\n\t\tlet defaultsSelector = selector;\n\t\tlet hasMatch = false;\n\t\tfor (const [defaultVariantClass, replacement] of replacementMap.entries()) if (selector.includes(defaultVariantClass)) {\n\t\t\thasMatch = true;\n\t\t\tconst defaultMatch = replacement.match(/,\\s*\\.([a-z0-9-]+)/);\n\t\t\tif (defaultMatch) {\n\t\t\t\tconst defaultClass = defaultMatch[1];\n\t\t\t\tdefaultsSelector = defaultsSelector.replaceAll(defaultVariantClass, defaultClass);\n\t\t\t}\n\t\t}\n\t\tif (!hasMatch) {\n\t\t\tfinalStyles[selector] = declarations;\n\t\t\tcontinue;\n\t\t}\n\t\tfinalStyles[`${selector}, ${defaultsSelector}`] = declarations;\n\t}\n\treturn finalStyles;\n};\nfunction createConfigurableProperty(prop) {\n\treturn prop;\n}\nfunction createVariantConfig(config) {\n\treturn config;\n}\nfunction createVariantConfigWithProperties(config) {\n\treturn config;\n}\nfunction createVariantConfigWithComponentStates(config) {\n\treturn config;\n}\nfunction createComponentStates(config) {\n\treturn config;\n}\nfunction createLayerConfig(config) {\n\treturn config;\n}\nfunction createSubComponentConfig(config) {\n\treturn config;\n}\n//#endregion\nexport { buildConfigSchema, cartesianProduct, coalesceConfigVariant, createComponentStates, createConfigurableProperty, createLayerConfig, createSubComponentConfig, createVariantConfig, createVariantConfigWithComponentStates, createVariantConfigWithProperties, findFixtureType, generateClassName, generateConfigStyles, generateDeclaration, generateDefaultClassName, generateKeyFromFlatConfigPath, generateSchemaKey, generateStyles, getConfigDefaultValue, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, isConfigDefaultValue, statePseudoM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GnF,IAAI,CAAC,UAAU;GACd,YAAY,YAAY;GACxB;;EAED,YAAY,GAAG,SAAS,IAAI,sBAAsB;;CAEnD,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapColorFixtureToValue.js","names":[],"sources":["../../../../../automated-config/dist/utils/mapColorFixtureToValue.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\nimport { assertUnreachable } from \"./assertUnreachable.js\";\nimport { ALWAYS_PREFIX } from \"@yahoo/uds-palette\";\n//#region src/utils/mapColorFixtureToValue.ts\nconst mapColorFixtureToValue = (fixtureType, value) => {\n\tswitch (fixtureType) {\n\t\tcase \"alwaysPaletteAliases\":\n\t\t\tif (value.startsWith(ALWAYS_PREFIX)) {\n\t\t\t\tconst [, subValue] = value.split(\"/\");\n\t\t\t\treturn `colors.always.${subValue}`;\n\t\t\t}\n\t\t\treturn `colors.${value}`;\n\t\tcase \"spectrumColors\": {\n\t\t\tconst [hue, hueStep] = value.split(\"-\");\n\t\t\treturn `colors.${hue}.${hueStep}`;\n\t\t}\n\t\tcase \"foregroundPaletteColors\": return `textColor.${value}`;\n\t\tcase \"backgroundPaletteColors\": return `backgroundColor.${value}`;\n\t\tcase \"linePaletteColors\":\n\t\tcase \"elevationAliases\": return `borderColor.${value}`;\n\t}\n\treturn assertUnreachable(fixtureType);\n};\n//#endregion\nexport { mapColorFixtureToValue };\n\n//# sourceMappingURL=mapColorFixtureToValue.js.map"],"mappings":";;;;;AAIA,MAAM,0BAA0B,aAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"mapColorFixtureToValue.js","names":[],"sources":["../../../../../automated-config/dist/utils/mapColorFixtureToValue.js"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */\nimport { assertUnreachable } from \"./assertUnreachable.js\";\nimport { ALWAYS_PREFIX } from \"@yahoo/uds-palette\";\n//#region src/utils/mapColorFixtureToValue.ts\nconst mapColorFixtureToValue = (fixtureType, value) => {\n\tswitch (fixtureType) {\n\t\tcase \"alwaysPaletteAliases\":\n\t\t\tif (value.startsWith(ALWAYS_PREFIX)) {\n\t\t\t\tconst [, subValue] = value.split(\"/\");\n\t\t\t\treturn `colors.always.${subValue}`;\n\t\t\t}\n\t\t\treturn `colors.${value}`;\n\t\tcase \"spectrumColors\": {\n\t\t\tconst [hue, hueStep] = value.split(\"-\");\n\t\t\treturn `colors.${hue}.${hueStep}`;\n\t\t}\n\t\tcase \"foregroundPaletteColors\": return `textColor.${value}`;\n\t\tcase \"backgroundPaletteColors\": return `backgroundColor.${value}`;\n\t\tcase \"linePaletteColors\":\n\t\tcase \"elevationAliases\": return `borderColor.${value}`;\n\t}\n\treturn assertUnreachable(fixtureType);\n};\n//#endregion\nexport { mapColorFixtureToValue };\n\n//# sourceMappingURL=mapColorFixtureToValue.js.map"],"mappings":";;;;;AAIA,MAAM,0BAA0B,aAAa,UAAU;CACtD,QAAQ,aAAR;EACC,KAAK;GACJ,IAAI,MAAM,WAAA,UAAyB,EAAE;IACpC,MAAM,GAAG,YAAY,MAAM,MAAM,IAAI;IACrC,OAAO,iBAAiB;;GAEzB,OAAO,UAAU;EAClB,KAAK,kBAAkB;GACtB,MAAM,CAAC,KAAK,WAAW,MAAM,MAAM,IAAI;GACvC,OAAO,UAAU,IAAI,GAAG;;EAEzB,KAAK,2BAA2B,OAAO,aAAa;EACpD,KAAK,2BAA2B,OAAO,mBAAmB;EAC1D,KAAK;EACL,KAAK,oBAAoB,OAAO,eAAe;;CAEhD,OAAO,kBAAkB,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","names":[],"sources":["../../../../../cli/dist/lib/logger.mjs"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS CLI v0.0.0-development */\nimport { cyan, gray, green, magenta, red, yellow } from \"./colors.mjs\";\nimport { print } from \"./print.mjs\";\nimport { spinStart, spinStop } from \"./spinner.mjs\";\n//#region src/lib/logger.ts\n/**\n* Logger utility for CLI commands.\n* Centralizes logging behavior with support for silent mode.\n*/\n/**\n* Create a logger instance with optional silent mode.\n* When silent, all logging methods become no-ops.\n*/\nfunction createLogger(options = {}) {\n\tconst isSilent = options.silent ?? false;\n\treturn {\n\t\t/** Whether the logger is in silent mode */\n\t\tisSilent,\n\t\t/** Print a message (respects silent mode) */\n\t\tprint: (message) => {\n\t\t\tif (!isSilent) print(message);\n\t\t},\n\t\t/** Print without silent check (for errors that should always show) */\n\t\tprintAlways: (message) => {\n\t\t\tprint(message);\n\t\t},\n\t\t/** Start a spinner with message */\n\t\tspinStart: (message) => {\n\t\t\tif (!isSilent) spinStart(message);\n\t\t},\n\t\t/** Stop spinner with icon and message */\n\t\tspinStop: (icon, message) => {\n\t\t\tif (!isSilent) spinStop(icon, message);\n\t\t},\n\t\t/** Log success message */\n\t\tsuccess: (message) => {\n\t\t\tif (!isSilent) print(green(`✅ ${message}`));\n\t\t},\n\t\t/** Log warning message */\n\t\twarn: (message) => {\n\t\t\tif (!isSilent) print(yellow(`⚠️ ${message}`));\n\t\t},\n\t\t/** Log error message (always shows, even in silent mode) */\n\t\terror: (message) => {\n\t\t\tprint(red(`❌ ${message}`));\n\t\t},\n\t\t/** Log info message */\n\t\tinfo: (message) => {\n\t\t\tif (!isSilent) print(cyan(message));\n\t\t},\n\t\t/** Log a labeled value */\n\t\tlabel: (label, value) => {\n\t\t\tif (!isSilent) print(`${magenta(label)} ${cyan(value)}`);\n\t\t},\n\t\t/** Log a list item */\n\t\tlistItem: (text) => {\n\t\t\tif (!isSilent) print(` ${gray(\"•\")} ${text}`);\n\t\t},\n\t\t/** Log a timestamped message */\n\t\ttimestamp: (message, color = \"green\") => {\n\t\t\tif (isSilent) return;\n\t\t\tconst time = (/* @__PURE__ */ new Date()).toLocaleTimeString();\n\t\t\tconst colorFn = color === \"green\" ? green : color === \"yellow\" ? yellow : red;\n\t\t\tprint(`${gray(`[${time}]`)} ${colorFn(message)}`);\n\t\t},\n\t\t/** Log an empty line */\n\t\tnewline: () => {\n\t\t\tif (!isSilent) print(\"\");\n\t\t},\n\t\t/** Create a child logger (inherits silent mode) */\n\t\tchild: (childOptions = {}) => {\n\t\t\treturn createLogger({ silent: childOptions.silent ?? isSilent });\n\t\t}\n\t};\n}\n//#endregion\nexport { createLogger };\n\n//# sourceMappingURL=logger.mjs.map"],"mappings":";;;;;;;;;;;;;;AAaA,SAAS,aAAa,UAAU,EAAE,EAAE;CACnC,MAAM,WAAW,QAAQ,UAAU;
|
|
1
|
+
{"version":3,"file":"logger.js","names":[],"sources":["../../../../../cli/dist/lib/logger.mjs"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS CLI v0.0.0-development */\nimport { cyan, gray, green, magenta, red, yellow } from \"./colors.mjs\";\nimport { print } from \"./print.mjs\";\nimport { spinStart, spinStop } from \"./spinner.mjs\";\n//#region src/lib/logger.ts\n/**\n* Logger utility for CLI commands.\n* Centralizes logging behavior with support for silent mode.\n*/\n/**\n* Create a logger instance with optional silent mode.\n* When silent, all logging methods become no-ops.\n*/\nfunction createLogger(options = {}) {\n\tconst isSilent = options.silent ?? false;\n\treturn {\n\t\t/** Whether the logger is in silent mode */\n\t\tisSilent,\n\t\t/** Print a message (respects silent mode) */\n\t\tprint: (message) => {\n\t\t\tif (!isSilent) print(message);\n\t\t},\n\t\t/** Print without silent check (for errors that should always show) */\n\t\tprintAlways: (message) => {\n\t\t\tprint(message);\n\t\t},\n\t\t/** Start a spinner with message */\n\t\tspinStart: (message) => {\n\t\t\tif (!isSilent) spinStart(message);\n\t\t},\n\t\t/** Stop spinner with icon and message */\n\t\tspinStop: (icon, message) => {\n\t\t\tif (!isSilent) spinStop(icon, message);\n\t\t},\n\t\t/** Log success message */\n\t\tsuccess: (message) => {\n\t\t\tif (!isSilent) print(green(`✅ ${message}`));\n\t\t},\n\t\t/** Log warning message */\n\t\twarn: (message) => {\n\t\t\tif (!isSilent) print(yellow(`⚠️ ${message}`));\n\t\t},\n\t\t/** Log error message (always shows, even in silent mode) */\n\t\terror: (message) => {\n\t\t\tprint(red(`❌ ${message}`));\n\t\t},\n\t\t/** Log info message */\n\t\tinfo: (message) => {\n\t\t\tif (!isSilent) print(cyan(message));\n\t\t},\n\t\t/** Log a labeled value */\n\t\tlabel: (label, value) => {\n\t\t\tif (!isSilent) print(`${magenta(label)} ${cyan(value)}`);\n\t\t},\n\t\t/** Log a list item */\n\t\tlistItem: (text) => {\n\t\t\tif (!isSilent) print(` ${gray(\"•\")} ${text}`);\n\t\t},\n\t\t/** Log a timestamped message */\n\t\ttimestamp: (message, color = \"green\") => {\n\t\t\tif (isSilent) return;\n\t\t\tconst time = (/* @__PURE__ */ new Date()).toLocaleTimeString();\n\t\t\tconst colorFn = color === \"green\" ? green : color === \"yellow\" ? yellow : red;\n\t\t\tprint(`${gray(`[${time}]`)} ${colorFn(message)}`);\n\t\t},\n\t\t/** Log an empty line */\n\t\tnewline: () => {\n\t\t\tif (!isSilent) print(\"\");\n\t\t},\n\t\t/** Create a child logger (inherits silent mode) */\n\t\tchild: (childOptions = {}) => {\n\t\t\treturn createLogger({ silent: childOptions.silent ?? isSilent });\n\t\t}\n\t};\n}\n//#endregion\nexport { createLogger };\n\n//# sourceMappingURL=logger.mjs.map"],"mappings":";;;;;;;;;;;;;;AAaA,SAAS,aAAa,UAAU,EAAE,EAAE;CACnC,MAAM,WAAW,QAAQ,UAAU;CACnC,OAAO;;EAEN;;EAEA,QAAQ,YAAY;GACnB,IAAI,CAAC,UAAU,MAAM,QAAQ;;;EAG9B,cAAc,YAAY;GACzB,MAAM,QAAQ;;;EAGf,YAAY,YAAY;GACvB,IAAI,CAAC,UAAU,UAAU,QAAQ;;;EAGlC,WAAW,MAAM,YAAY;GAC5B,IAAI,CAAC,UAAU,SAAS,MAAM,QAAQ;;;EAGvC,UAAU,YAAY;GACrB,IAAI,CAAC,UAAU,MAAM,MAAM,KAAK,UAAU,CAAC;;;EAG5C,OAAO,YAAY;GAClB,IAAI,CAAC,UAAU,MAAM,OAAO,OAAO,UAAU,CAAC;;;EAG/C,QAAQ,YAAY;GACnB,MAAM,IAAI,KAAK,UAAU,CAAC;;;EAG3B,OAAO,YAAY;GAClB,IAAI,CAAC,UAAU,MAAM,KAAK,QAAQ,CAAC;;;EAGpC,QAAQ,OAAO,UAAU;GACxB,IAAI,CAAC,UAAU,MAAM,GAAG,QAAQ,MAAM,CAAC,GAAG,KAAK,MAAM,GAAG;;;EAGzD,WAAW,SAAS;GACnB,IAAI,CAAC,UAAU,MAAM,MAAM,KAAK,IAAI,CAAC,GAAG,OAAO;;;EAGhD,YAAY,SAAS,QAAQ,YAAY;GACxC,IAAI,UAAU;GACd,MAAM,wBAAwB,IAAI,MAAM,EAAE,oBAAoB;GAC9D,MAAM,UAAU,UAAU,UAAU,QAAQ,UAAU,WAAW,SAAS;GAC1E,MAAM,GAAG,KAAK,IAAI,KAAK,GAAG,CAAC,GAAG,QAAQ,QAAQ,GAAG;;;EAGlD,eAAe;GACd,IAAI,CAAC,UAAU,MAAM,GAAG;;;EAGzB,QAAQ,eAAe,EAAE,KAAK;GAC7B,OAAO,aAAa,EAAE,QAAQ,aAAa,UAAU,UAAU,CAAC;;EAEjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"print.js","names":[],"sources":["../../../../../cli/dist/lib/print.mjs"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS CLI v0.0.0-development */\n//#region src/lib/print.ts\n/**\n* Console output wrapper.\n*/\nfunction print(...args) {\n\tconsole.log(...args);\n}\n//#endregion\nexport { print };\n\n//# sourceMappingURL=print.mjs.map"],"mappings":";;;;;;AAKA,SAAS,MAAM,GAAG,MAAM;
|
|
1
|
+
{"version":3,"file":"print.js","names":[],"sources":["../../../../../cli/dist/lib/print.mjs"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS CLI v0.0.0-development */\n//#region src/lib/print.ts\n/**\n* Console output wrapper.\n*/\nfunction print(...args) {\n\tconsole.log(...args);\n}\n//#endregion\nexport { print };\n\n//# sourceMappingURL=print.mjs.map"],"mappings":";;;;;;AAKA,SAAS,MAAM,GAAG,MAAM;CACvB,QAAQ,IAAI,GAAG,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.js","names":[],"sources":["../../../../../cli/dist/lib/spinner.mjs"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS CLI v0.0.0-development */\n//#region src/lib/spinner.ts\n/**\n* Simple terminal spinner for showing progress during long operations.\n* Uses Braille spinner characters for a smooth animation.\n*/\nlet spinnerInterval = null;\nlet currentMessage = \"\";\nconst frames = [\n\t\"⠋\",\n\t\"⠙\",\n\t\"⠹\",\n\t\"⠸\",\n\t\"⠼\",\n\t\"⠴\",\n\t\"⠦\",\n\t\"⠧\",\n\t\"⠇\",\n\t\"⠏\"\n];\nlet frameIndex = 0;\n/**\n* Start a spinner with a message.\n* Only one spinner can be active at a time.\n*/\nfunction spinStart(message) {\n\tif (spinnerInterval) spinStop();\n\tcurrentMessage = message;\n\tframeIndex = 0;\n\tprocess.stdout.write(\"\\x1B[?25l\");\n\tspinnerInterval = setInterval(() => {\n\t\tconst frame = frames[frameIndex];\n\t\tprocess.stdout.write(`\\r${frame} ${currentMessage}`);\n\t\tframeIndex = (frameIndex + 1) % frames.length;\n\t}, 80);\n}\n/**\n* Stop the spinner and optionally show a final message.\n* @param iconOrMessage - Optional icon to show OR the message if second param not provided\n* @param message - Optional final message to display\n*/\nfunction spinStop(iconOrMessage, message) {\n\tif (spinnerInterval) {\n\t\tclearInterval(spinnerInterval);\n\t\tspinnerInterval = null;\n\t}\n\tprocess.stdout.write(\"\\r\\x1B[K\");\n\tprocess.stdout.write(\"\\x1B[?25h\");\n\tif (iconOrMessage || message) {\n\t\tconst finalMessage = message ? `${iconOrMessage} ${message}` : iconOrMessage;\n\t\tconsole.log(finalMessage);\n\t}\n}\n//#endregion\nexport { spinStart, spinStop };\n\n//# sourceMappingURL=spinner.mjs.map"],"mappings":";;;;;;;AAMA,IAAI,kBAAkB;AACtB,IAAI,iBAAiB;AACrB,MAAM,SAAS;CACd;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,IAAI,aAAa;;;;;AAKjB,SAAS,UAAU,SAAS;
|
|
1
|
+
{"version":3,"file":"spinner.js","names":[],"sources":["../../../../../cli/dist/lib/spinner.mjs"],"sourcesContent":["/*! © 2026 Yahoo, Inc. UDS CLI v0.0.0-development */\n//#region src/lib/spinner.ts\n/**\n* Simple terminal spinner for showing progress during long operations.\n* Uses Braille spinner characters for a smooth animation.\n*/\nlet spinnerInterval = null;\nlet currentMessage = \"\";\nconst frames = [\n\t\"⠋\",\n\t\"⠙\",\n\t\"⠹\",\n\t\"⠸\",\n\t\"⠼\",\n\t\"⠴\",\n\t\"⠦\",\n\t\"⠧\",\n\t\"⠇\",\n\t\"⠏\"\n];\nlet frameIndex = 0;\n/**\n* Start a spinner with a message.\n* Only one spinner can be active at a time.\n*/\nfunction spinStart(message) {\n\tif (spinnerInterval) spinStop();\n\tcurrentMessage = message;\n\tframeIndex = 0;\n\tprocess.stdout.write(\"\\x1B[?25l\");\n\tspinnerInterval = setInterval(() => {\n\t\tconst frame = frames[frameIndex];\n\t\tprocess.stdout.write(`\\r${frame} ${currentMessage}`);\n\t\tframeIndex = (frameIndex + 1) % frames.length;\n\t}, 80);\n}\n/**\n* Stop the spinner and optionally show a final message.\n* @param iconOrMessage - Optional icon to show OR the message if second param not provided\n* @param message - Optional final message to display\n*/\nfunction spinStop(iconOrMessage, message) {\n\tif (spinnerInterval) {\n\t\tclearInterval(spinnerInterval);\n\t\tspinnerInterval = null;\n\t}\n\tprocess.stdout.write(\"\\r\\x1B[K\");\n\tprocess.stdout.write(\"\\x1B[?25h\");\n\tif (iconOrMessage || message) {\n\t\tconst finalMessage = message ? `${iconOrMessage} ${message}` : iconOrMessage;\n\t\tconsole.log(finalMessage);\n\t}\n}\n//#endregion\nexport { spinStart, spinStop };\n\n//# sourceMappingURL=spinner.mjs.map"],"mappings":";;;;;;;AAMA,IAAI,kBAAkB;AACtB,IAAI,iBAAiB;AACrB,MAAM,SAAS;CACd;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,IAAI,aAAa;;;;;AAKjB,SAAS,UAAU,SAAS;CAC3B,IAAI,iBAAiB,UAAU;CAC/B,iBAAiB;CACjB,aAAa;CACb,QAAQ,OAAO,MAAM,YAAY;CACjC,kBAAkB,kBAAkB;EACnC,MAAM,QAAQ,OAAO;EACrB,QAAQ,OAAO,MAAM,KAAK,MAAM,GAAG,iBAAiB;EACpD,cAAc,aAAa,KAAK,OAAO;IACrC,GAAG;;;;;;;AAOP,SAAS,SAAS,eAAe,SAAS;CACzC,IAAI,iBAAiB;EACpB,cAAc,gBAAgB;EAC9B,kBAAkB;;CAEnB,QAAQ,OAAO,MAAM,WAAW;CAChC,QAAQ,OAAO,MAAM,YAAY;CACjC,IAAI,iBAAiB,SAAS;EAC7B,MAAM,eAAe,UAAU,GAAG,cAAc,GAAG,YAAY;EAC/D,QAAQ,IAAI,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.helpers.js","names":[],"sources":["../../src/commands/css.helpers.ts"],"sourcesContent":["import type { EntryValue } from '../utils/entryPoints';\n\ntype CssOptions = Record<string, unknown>;\n\ntype CssInitOptions = {\n force: boolean;\n configPath?: string;\n entry?: EntryValue;\n outputPath?: string;\n};\n\ntype CssRunOptions = {\n workspaceDir: string;\n outFile: string;\n themeConfigPath: string;\n scope?: string;\n entryOption?: EntryValue;\n configOption?: string;\n watch: boolean;\n silent: boolean;\n verbose: boolean;\n workers?: number;\n};\n\nconst parseWorkersOption = (value: unknown): number | undefined => {\n if (typeof value !== 'string' || value === 'auto') {\n return undefined;\n }\n\n const num = Number(value);\n if (!Number.isInteger(num) || num < 1) {\n return undefined;\n }\n\n return num;\n};\n\nconst isTruthyFlag = (value: unknown): boolean => value === true || value === 'true';\n\nconst stringOption = (value: unknown): string | undefined =>\n typeof value === 'string' ? value : undefined;\n\nconst entryOption = (value: unknown): EntryValue | undefined => {\n if (typeof value === 'string') {\n return value;\n }\n\n if (Array.isArray(value) && value.every((item) => typeof item === 'string')) {\n return value;\n }\n\n return undefined;\n};\n\nconst shouldShowHelp = (options: CssOptions): boolean =>\n isTruthyFlag(options.help) || isTruthyFlag(options.h);\n\nconst isInitCommand = (firstArg: string | undefined): boolean => firstArg === 'init';\n\nconst getCssInitOptions = (options: CssOptions): CssInitOptions => ({\n force: isTruthyFlag(options.force),\n configPath: stringOption(options.config),\n entry: entryOption(options.entry),\n outputPath: stringOption(options.outFile),\n});\n\nconst getCssRunOptions = (workspaceDir: string, options: CssOptions): CssRunOptions => {\n const outFile = stringOption(options.outFile) ?? 'dist/uds.css';\n const themeConfigPath = stringOption(options.theme) ?? 'uds.theme.ts';\n\n return {\n workspaceDir,\n outFile,\n themeConfigPath,\n scope: stringOption(options.scope),\n entryOption: entryOption(options.entry),\n configOption: stringOption(options.config),\n watch: isTruthyFlag(options.watch) || isTruthyFlag(options.w),\n silent: isTruthyFlag(options.silent) || isTruthyFlag(options.s),\n verbose: isTruthyFlag(options.verbose) || isTruthyFlag(options.v),\n workers: parseWorkersOption(options.workers),\n };\n};\n\nexport { getCssInitOptions, getCssRunOptions, isInitCommand, parseWorkersOption, shouldShowHelp };\n"],"mappings":";;AAwBA,MAAM,sBAAsB,UAAuC;
|
|
1
|
+
{"version":3,"file":"css.helpers.js","names":[],"sources":["../../src/commands/css.helpers.ts"],"sourcesContent":["import type { EntryValue } from '../utils/entryPoints';\n\ntype CssOptions = Record<string, unknown>;\n\ntype CssInitOptions = {\n force: boolean;\n configPath?: string;\n entry?: EntryValue;\n outputPath?: string;\n};\n\ntype CssRunOptions = {\n workspaceDir: string;\n outFile: string;\n themeConfigPath: string;\n scope?: string;\n entryOption?: EntryValue;\n configOption?: string;\n watch: boolean;\n silent: boolean;\n verbose: boolean;\n workers?: number;\n};\n\nconst parseWorkersOption = (value: unknown): number | undefined => {\n if (typeof value !== 'string' || value === 'auto') {\n return undefined;\n }\n\n const num = Number(value);\n if (!Number.isInteger(num) || num < 1) {\n return undefined;\n }\n\n return num;\n};\n\nconst isTruthyFlag = (value: unknown): boolean => value === true || value === 'true';\n\nconst stringOption = (value: unknown): string | undefined =>\n typeof value === 'string' ? value : undefined;\n\nconst entryOption = (value: unknown): EntryValue | undefined => {\n if (typeof value === 'string') {\n return value;\n }\n\n if (Array.isArray(value) && value.every((item) => typeof item === 'string')) {\n return value;\n }\n\n return undefined;\n};\n\nconst shouldShowHelp = (options: CssOptions): boolean =>\n isTruthyFlag(options.help) || isTruthyFlag(options.h);\n\nconst isInitCommand = (firstArg: string | undefined): boolean => firstArg === 'init';\n\nconst getCssInitOptions = (options: CssOptions): CssInitOptions => ({\n force: isTruthyFlag(options.force),\n configPath: stringOption(options.config),\n entry: entryOption(options.entry),\n outputPath: stringOption(options.outFile),\n});\n\nconst getCssRunOptions = (workspaceDir: string, options: CssOptions): CssRunOptions => {\n const outFile = stringOption(options.outFile) ?? 'dist/uds.css';\n const themeConfigPath = stringOption(options.theme) ?? 'uds.theme.ts';\n\n return {\n workspaceDir,\n outFile,\n themeConfigPath,\n scope: stringOption(options.scope),\n entryOption: entryOption(options.entry),\n configOption: stringOption(options.config),\n watch: isTruthyFlag(options.watch) || isTruthyFlag(options.w),\n silent: isTruthyFlag(options.silent) || isTruthyFlag(options.s),\n verbose: isTruthyFlag(options.verbose) || isTruthyFlag(options.v),\n workers: parseWorkersOption(options.workers),\n };\n};\n\nexport { getCssInitOptions, getCssRunOptions, isInitCommand, parseWorkersOption, shouldShowHelp };\n"],"mappings":";;AAwBA,MAAM,sBAAsB,UAAuC;CACjE,IAAI,OAAO,UAAU,YAAY,UAAU,QACzC;CAGF,MAAM,MAAM,OAAO,MAAM;CACzB,IAAI,CAAC,OAAO,UAAU,IAAI,IAAI,MAAM,GAClC;CAGF,OAAO;;AAGT,MAAM,gBAAgB,UAA4B,UAAU,QAAQ,UAAU;AAE9E,MAAM,gBAAgB,UACpB,OAAO,UAAU,WAAW,QAAQ,KAAA;AAEtC,MAAM,eAAe,UAA2C;CAC9D,IAAI,OAAO,UAAU,UACnB,OAAO;CAGT,IAAI,MAAM,QAAQ,MAAM,IAAI,MAAM,OAAO,SAAS,OAAO,SAAS,SAAS,EACzE,OAAO;;AAMX,MAAM,kBAAkB,YACtB,aAAa,QAAQ,KAAK,IAAI,aAAa,QAAQ,EAAE;AAEvD,MAAM,iBAAiB,aAA0C,aAAa;AAE9E,MAAM,qBAAqB,aAAyC;CAClE,OAAO,aAAa,QAAQ,MAAM;CAClC,YAAY,aAAa,QAAQ,OAAO;CACxC,OAAO,YAAY,QAAQ,MAAM;CACjC,YAAY,aAAa,QAAQ,QAAQ;CAC1C;AAED,MAAM,oBAAoB,cAAsB,YAAuC;CAIrF,OAAO;EACL;EACA,SALc,aAAa,QAAQ,QAAQ,IAAI;EAM/C,iBALsB,aAAa,QAAQ,MAAM,IAAI;EAMrD,OAAO,aAAa,QAAQ,MAAM;EAClC,aAAa,YAAY,QAAQ,MAAM;EACvC,cAAc,aAAa,QAAQ,OAAO;EAC1C,OAAO,aAAa,QAAQ,MAAM,IAAI,aAAa,QAAQ,EAAE;EAC7D,QAAQ,aAAa,QAAQ,OAAO,IAAI,aAAa,QAAQ,EAAE;EAC/D,SAAS,aAAa,QAAQ,QAAQ,IAAI,aAAa,QAAQ,EAAE;EACjE,SAAS,mBAAmB,QAAQ,QAAQ;EAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","names":[],"sources":["../../src/commands/css.ts"],"sourcesContent":["import type { Command, Props } from '@yahoo/uds-cli/lib';\nimport { cyan, gray, green, magenta, print } from '@yahoo/uds-cli/lib';\n\nimport { scaffoldThemeConfig } from '../css/nodeUtils';\nimport { runCssCommand } from '../css/runner';\nimport { getCssInitOptions, getCssRunOptions, isInitCommand, shouldShowHelp } from './css.helpers';\nimport type { SerializedComponentInfo } from './generateComponentData';\n\nconst showHelp = () => {\n print('');\n print(`${green('uds css')} - Generate CSS for app`);\n print('');\n print(`${magenta('Usage:')}`);\n print(` ${cyan('uds css')} [options]`);\n print(` ${cyan('uds css init')} [options]`);\n print('');\n print(`${magenta('Commands:')}`);\n print(` ${cyan('init')} Create a new uds.theme.ts file`);\n print('');\n print(`${magenta('Options:')}`);\n print(` ${cyan('--entry <path>')} Entry directory to scan (default: /src/)`);\n print(` ${cyan('--outFile <path>')} Output CSS file (default: dist/uds.css)`);\n print(` ${cyan('--config <path>')} Path to uds.config.ts for tokens`);\n print(` ${cyan('--theme <path>')} Path to uds.theme.ts (default: uds.theme.ts)`);\n print(` ${cyan('--watch, -w')} Watch for file changes and regenerate`);\n print(` ${cyan('--silent, -s')} Suppress output logging`);\n print(` ${cyan('--verbose, -v')} List every scanned file used for purging`);\n print(\n ` ${cyan('--workers <n>')} Number of parallel workers (default: auto = CPU count - 1)`,\n );\n print(` ${cyan('--force')} Overwrite existing uds.theme.ts (for init)`);\n print(` ${cyan('--help, -h')} Show this help message`);\n print('');\n print(`${magenta('Initialize theme config:')}`);\n print(` ${gray('uds css init')}`);\n print('');\n print(`${magenta('Simple mode')} (no uds.theme.ts):`);\n print(` ${gray('uds css --entry ./src --outFile dist/uds.css')}`);\n print('');\n print(`${magenta('Theme mode')} (with uds.theme.ts):`);\n print(` ${gray('uds css --theme uds.theme.ts --outFile dist/uds.css')}`);\n print('');\n print(`${magenta('Example uds.theme.ts:')}`);\n print(\n gray(` import { defineTheme } from '@yahoo/uds';\n\n export default defineTheme({\n config: './uds.config.ts',\n entry: './src',\n scoped: {\n '@your-org/shared-ui': './packages/shared-ui/uds.config.ts'\n },\n colorModes: ['dark'],\n css: {\n preflight: true,\n fontFaceDeclarations: true,\n optimization: {\n deduplicateScopedCss: true\n }\n }\n });\n\n // Expanded form when you need a custom output path:\n // scoped: {\n // '@your-org/shared-ui': {\n // config: './packages/shared-ui/uds.config.ts',\n // entry: './stories',\n // outFile: 'dist/shared-ui.css'\n // }\n // }`),\n );\n print('');\n};\n\ntype Context = {\n variants: Record<string, Record<string, string>>;\n autoVariants: Record<string, Record<string, string>>;\n componentData: Record<string, SerializedComponentInfo>;\n};\n\nconst makeCSSCommand = (getContext: () => Promise<Context>): Command => ({\n name: 'css',\n description: 'Generate CSS for app',\n tag: 'hidden',\n\n run: async (props: Props) => {\n const { variants, autoVariants, componentData } = await getContext();\n\n if (shouldShowHelp(props.options)) {\n showHelp();\n return;\n }\n\n if (isInitCommand(props.first)) {\n await scaffoldThemeConfig(getCssInitOptions(props.options));\n return;\n }\n\n const cssRunOptions = getCssRunOptions(process.cwd(), props.options);\n\n await runCssCommand(cssRunOptions, { variants, autoVariants, componentData });\n },\n});\n\nexport { makeCSSCommand };\n"],"mappings":";;;;;;;AAQA,MAAM,iBAAiB;
|
|
1
|
+
{"version":3,"file":"css.js","names":[],"sources":["../../src/commands/css.ts"],"sourcesContent":["import type { Command, Props } from '@yahoo/uds-cli/lib';\nimport { cyan, gray, green, magenta, print } from '@yahoo/uds-cli/lib';\n\nimport { scaffoldThemeConfig } from '../css/nodeUtils';\nimport { runCssCommand } from '../css/runner';\nimport { getCssInitOptions, getCssRunOptions, isInitCommand, shouldShowHelp } from './css.helpers';\nimport type { SerializedComponentInfo } from './generateComponentData';\n\nconst showHelp = () => {\n print('');\n print(`${green('uds css')} - Generate CSS for app`);\n print('');\n print(`${magenta('Usage:')}`);\n print(` ${cyan('uds css')} [options]`);\n print(` ${cyan('uds css init')} [options]`);\n print('');\n print(`${magenta('Commands:')}`);\n print(` ${cyan('init')} Create a new uds.theme.ts file`);\n print('');\n print(`${magenta('Options:')}`);\n print(` ${cyan('--entry <path>')} Entry directory to scan (default: /src/)`);\n print(` ${cyan('--outFile <path>')} Output CSS file (default: dist/uds.css)`);\n print(` ${cyan('--config <path>')} Path to uds.config.ts for tokens`);\n print(` ${cyan('--theme <path>')} Path to uds.theme.ts (default: uds.theme.ts)`);\n print(` ${cyan('--watch, -w')} Watch for file changes and regenerate`);\n print(` ${cyan('--silent, -s')} Suppress output logging`);\n print(` ${cyan('--verbose, -v')} List every scanned file used for purging`);\n print(\n ` ${cyan('--workers <n>')} Number of parallel workers (default: auto = CPU count - 1)`,\n );\n print(` ${cyan('--force')} Overwrite existing uds.theme.ts (for init)`);\n print(` ${cyan('--help, -h')} Show this help message`);\n print('');\n print(`${magenta('Initialize theme config:')}`);\n print(` ${gray('uds css init')}`);\n print('');\n print(`${magenta('Simple mode')} (no uds.theme.ts):`);\n print(` ${gray('uds css --entry ./src --outFile dist/uds.css')}`);\n print('');\n print(`${magenta('Theme mode')} (with uds.theme.ts):`);\n print(` ${gray('uds css --theme uds.theme.ts --outFile dist/uds.css')}`);\n print('');\n print(`${magenta('Example uds.theme.ts:')}`);\n print(\n gray(` import { defineTheme } from '@yahoo/uds';\n\n export default defineTheme({\n config: './uds.config.ts',\n entry: './src',\n scoped: {\n '@your-org/shared-ui': './packages/shared-ui/uds.config.ts'\n },\n colorModes: ['dark'],\n css: {\n preflight: true,\n fontFaceDeclarations: true,\n optimization: {\n deduplicateScopedCss: true\n }\n }\n });\n\n // Expanded form when you need a custom output path:\n // scoped: {\n // '@your-org/shared-ui': {\n // config: './packages/shared-ui/uds.config.ts',\n // entry: './stories',\n // outFile: 'dist/shared-ui.css'\n // }\n // }`),\n );\n print('');\n};\n\ntype Context = {\n variants: Record<string, Record<string, string>>;\n autoVariants: Record<string, Record<string, string>>;\n componentData: Record<string, SerializedComponentInfo>;\n};\n\nconst makeCSSCommand = (getContext: () => Promise<Context>): Command => ({\n name: 'css',\n description: 'Generate CSS for app',\n tag: 'hidden',\n\n run: async (props: Props) => {\n const { variants, autoVariants, componentData } = await getContext();\n\n if (shouldShowHelp(props.options)) {\n showHelp();\n return;\n }\n\n if (isInitCommand(props.first)) {\n await scaffoldThemeConfig(getCssInitOptions(props.options));\n return;\n }\n\n const cssRunOptions = getCssRunOptions(process.cwd(), props.options);\n\n await runC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