@yahoo/uds 3.133.3 → 3.134.1

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.
Files changed (212) hide show
  1. package/dist/automated-config/dist/generated/autoVariants.cjs +14 -0
  2. package/dist/automated-config/dist/generated/autoVariants.d.cts +14 -0
  3. package/dist/automated-config/dist/generated/autoVariants.d.ts +14 -0
  4. package/dist/automated-config/dist/generated/autoVariants.js +14 -0
  5. package/dist/automated-config/dist/generated/generatedConfigs.cjs +2796 -1
  6. package/dist/automated-config/dist/generated/generatedConfigs.d.cts +288 -2
  7. package/dist/automated-config/dist/generated/generatedConfigs.d.ts +288 -2
  8. package/dist/automated-config/dist/generated/generatedConfigs.js +2796 -2
  9. package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +119 -0
  10. package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +2 -1
  11. package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +2 -1
  12. package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +119 -0
  13. package/dist/automated-config/dist/properties.cjs +15 -1
  14. package/dist/automated-config/dist/properties.d.cts +4 -0
  15. package/dist/automated-config/dist/properties.d.ts +4 -0
  16. package/dist/automated-config/dist/properties.js +15 -1
  17. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
  18. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
  19. package/dist/cli/commands/sync.cjs +4 -0
  20. package/dist/cli/commands/sync.js +4 -0
  21. package/dist/cli/dist/lib/args.cjs +7 -3
  22. package/dist/cli/dist/lib/args.js +7 -3
  23. package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
  24. package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
  25. package/dist/components/client/Modal/Modal.cjs +193 -0
  26. package/dist/components/client/Modal/Modal.d.cts +51 -0
  27. package/dist/components/client/Modal/Modal.d.ts +52 -0
  28. package/dist/components/client/Modal/Modal.js +191 -0
  29. package/dist/components/client/Modal/ModalActions.cjs +54 -0
  30. package/dist/components/client/Modal/ModalActions.d.cts +27 -0
  31. package/dist/components/client/Modal/ModalActions.d.ts +28 -0
  32. package/dist/components/client/Modal/ModalActions.js +52 -0
  33. package/dist/components/client/Modal/ModalContent.cjs +37 -0
  34. package/dist/components/client/Modal/ModalContent.d.cts +24 -0
  35. package/dist/components/client/Modal/ModalContent.d.ts +25 -0
  36. package/dist/components/client/Modal/ModalContent.js +35 -0
  37. package/dist/components/client/Modal/ModalContext.cjs +15 -0
  38. package/dist/components/client/Modal/ModalContext.d.cts +13 -0
  39. package/dist/components/client/Modal/ModalContext.d.ts +14 -0
  40. package/dist/components/client/Modal/ModalContext.js +12 -0
  41. package/dist/components/client/Modal/ModalDescription.cjs +29 -0
  42. package/dist/components/client/Modal/ModalDescription.d.cts +23 -0
  43. package/dist/components/client/Modal/ModalDescription.d.ts +24 -0
  44. package/dist/components/client/Modal/ModalDescription.js +27 -0
  45. package/dist/components/client/Modal/ModalTitle.cjs +29 -0
  46. package/dist/components/client/Modal/ModalTitle.d.cts +23 -0
  47. package/dist/components/client/Modal/ModalTitle.d.ts +24 -0
  48. package/dist/components/client/Modal/ModalTitle.js +27 -0
  49. package/dist/components/client/Modal/UDSModalConfigProvider.cjs +42 -0
  50. package/dist/components/client/Modal/UDSModalConfigProvider.d.cts +35 -0
  51. package/dist/components/client/Modal/UDSModalConfigProvider.d.ts +36 -0
  52. package/dist/components/client/Modal/UDSModalConfigProvider.js +39 -0
  53. package/dist/components/client/Modal/index.cjs +16 -0
  54. package/dist/components/client/Modal/index.d.cts +8 -0
  55. package/dist/components/client/Modal/index.d.ts +9 -0
  56. package/dist/components/client/Modal/index.js +9 -0
  57. package/dist/components/client/Modal/useScrollFade.cjs +38 -0
  58. package/dist/components/client/Modal/useScrollFade.d.cts +13 -0
  59. package/dist/components/client/Modal/useScrollFade.d.ts +14 -0
  60. package/dist/components/client/Modal/useScrollFade.js +36 -0
  61. package/dist/components/client/Modal/utils.cjs +32 -0
  62. package/dist/components/client/Modal/utils.d.cts +13 -0
  63. package/dist/components/client/Modal/utils.d.ts +14 -0
  64. package/dist/components/client/Modal/utils.js +30 -0
  65. package/dist/components/client/Popover/index.d.cts +1 -1
  66. package/dist/components/client/Popover/index.d.ts +1 -1
  67. package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +1 -1
  68. package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +1 -1
  69. package/dist/components/client/index.cjs +13 -0
  70. package/dist/components/client/index.d.cts +8 -2
  71. package/dist/components/client/index.d.ts +8 -2
  72. package/dist/components/client/index.js +7 -1
  73. package/dist/components/client/providers/UDSConfigProvider.cjs +6 -2
  74. package/dist/components/client/providers/UDSConfigProvider.d.cts +2 -1
  75. package/dist/components/client/providers/UDSConfigProvider.d.ts +2 -1
  76. package/dist/components/client/providers/UDSConfigProvider.js +6 -2
  77. package/dist/components/experimental/client/index.cjs +0 -5
  78. package/dist/components/experimental/client/index.d.cts +1 -2
  79. package/dist/components/experimental/client/index.d.ts +1 -2
  80. package/dist/components/experimental/client/index.js +1 -2
  81. package/dist/components/experimental/index.cjs +1 -10
  82. package/dist/components/experimental/index.d.cts +1 -2
  83. package/dist/components/experimental/index.d.ts +1 -2
  84. package/dist/components/experimental/index.js +2 -7
  85. package/dist/components/index.cjs +20 -0
  86. package/dist/components/index.d.cts +8 -2
  87. package/dist/components/index.d.ts +8 -2
  88. package/dist/components/index.js +14 -1
  89. package/dist/config/dist/index.cjs +129 -4
  90. package/dist/config/dist/index.js +129 -4
  91. package/dist/index.cjs +16 -0
  92. package/dist/index.d.cts +11 -4
  93. package/dist/index.d.ts +11 -4
  94. package/dist/index.js +9 -2
  95. package/dist/runtime/index.cjs +2 -0
  96. package/dist/runtime/index.d.cts +2 -1
  97. package/dist/runtime/index.d.ts +2 -1
  98. package/dist/runtime/index.js +2 -1
  99. package/dist/runtime/modalConfig.cjs +22 -0
  100. package/dist/runtime/modalConfig.d.cts +22 -0
  101. package/dist/runtime/modalConfig.d.ts +22 -0
  102. package/dist/runtime/modalConfig.js +21 -0
  103. package/dist/runtime/udsConfig.cjs +4 -2
  104. package/dist/runtime/udsConfig.d.cts +2 -0
  105. package/dist/runtime/udsConfig.d.ts +2 -0
  106. package/dist/runtime/udsConfig.js +4 -2
  107. package/dist/styles/styler.d.cts +35 -21
  108. package/dist/styles/styler.d.ts +35 -21
  109. package/dist/styles/variants.d.cts +42 -0
  110. package/dist/styles/variants.d.ts +42 -0
  111. package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.cjs +14 -0
  112. package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.js +14 -0
  113. package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.js.map +1 -1
  114. package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.cjs +2796 -1
  115. package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.js +2796 -2
  116. package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.js.map +1 -1
  117. package/dist/tailwind/dist/automated-config/dist/properties.cjs +15 -1
  118. package/dist/tailwind/dist/automated-config/dist/properties.js +15 -1
  119. package/dist/tailwind/dist/automated-config/dist/properties.js.map +1 -1
  120. package/dist/tailwind/dist/commands/css.cjs +1 -0
  121. package/dist/tailwind/dist/commands/css.d.cts.map +1 -1
  122. package/dist/tailwind/dist/commands/css.d.ts.map +1 -1
  123. package/dist/tailwind/dist/commands/css.helpers.cjs +8 -1
  124. package/dist/tailwind/dist/commands/css.helpers.js +8 -1
  125. package/dist/tailwind/dist/commands/css.helpers.js.map +1 -1
  126. package/dist/tailwind/dist/commands/css.js +1 -0
  127. package/dist/tailwind/dist/commands/css.js.map +1 -1
  128. package/dist/tailwind/dist/config/dist/index.cjs +129 -4
  129. package/dist/tailwind/dist/config/dist/index.js +129 -4
  130. package/dist/tailwind/dist/config/dist/index.js.map +1 -1
  131. package/dist/tailwind/dist/css/generate.cjs +7 -4
  132. package/dist/tailwind/dist/css/generate.d.cts.map +1 -1
  133. package/dist/tailwind/dist/css/generate.d.ts.map +1 -1
  134. package/dist/tailwind/dist/css/generate.js +7 -4
  135. package/dist/tailwind/dist/css/generate.js.map +1 -1
  136. package/dist/tailwind/dist/css/nodeUtils.cjs +19 -8
  137. package/dist/tailwind/dist/css/nodeUtils.js +19 -8
  138. package/dist/tailwind/dist/css/nodeUtils.js.map +1 -1
  139. package/dist/tailwind/dist/css/perf.cjs +92 -0
  140. package/dist/tailwind/dist/css/perf.js +89 -0
  141. package/dist/tailwind/dist/css/perf.js.map +1 -0
  142. package/dist/tailwind/dist/css/purgeWorker.cjs +47 -0
  143. package/dist/tailwind/dist/css/purgeWorker.d.cts +2 -0
  144. package/dist/tailwind/dist/css/purgeWorker.d.ts +2 -0
  145. package/dist/tailwind/dist/css/purgeWorker.js +48 -0
  146. package/dist/tailwind/dist/css/purgeWorker.js.map +1 -0
  147. package/dist/tailwind/dist/css/runner.cjs +158 -145
  148. package/dist/tailwind/dist/css/runner.js +158 -145
  149. package/dist/tailwind/dist/css/runner.js.map +1 -1
  150. package/dist/tailwind/dist/css/utils.cjs +8 -0
  151. package/dist/tailwind/dist/css/utils.js +8 -0
  152. package/dist/tailwind/dist/css/utils.js.map +1 -1
  153. package/dist/tailwind/dist/css/workerPool.cjs +89 -0
  154. package/dist/tailwind/dist/css/workerPool.js +90 -0
  155. package/dist/tailwind/dist/css/workerPool.js.map +1 -0
  156. package/dist/tailwind/dist/purger/optimized/ast/expressions.cjs +95 -15
  157. package/dist/tailwind/dist/purger/optimized/ast/expressions.js +95 -15
  158. package/dist/tailwind/dist/purger/optimized/ast/expressions.js.map +1 -1
  159. package/dist/tailwind/dist/purger/optimized/purgeFromCode.cjs +38 -14
  160. package/dist/tailwind/dist/purger/optimized/purgeFromCode.d.cts.map +1 -1
  161. package/dist/tailwind/dist/purger/optimized/purgeFromCode.d.ts.map +1 -1
  162. package/dist/tailwind/dist/purger/optimized/purgeFromCode.js +39 -15
  163. package/dist/tailwind/dist/purger/optimized/purgeFromCode.js.map +1 -1
  164. package/dist/tailwind/dist/purger/optimized/types.d.cts +10 -0
  165. package/dist/tailwind/dist/purger/optimized/types.d.cts.map +1 -1
  166. package/dist/tailwind/dist/purger/optimized/types.d.ts +10 -0
  167. package/dist/tailwind/dist/purger/optimized/types.d.ts.map +1 -1
  168. package/dist/tailwind/dist/runtimeConfig/hookMetadata.cjs +34 -0
  169. package/dist/tailwind/dist/runtimeConfig/hookMetadata.js +34 -0
  170. package/dist/tailwind/dist/runtimeConfig/hookMetadata.js.map +1 -1
  171. package/dist/tailwind/dist/tailwind/plugins/blurBgFallback.cjs +3 -0
  172. package/dist/tailwind/dist/tailwind/plugins/blurBgFallback.js +3 -0
  173. package/dist/tailwind/dist/tailwind/plugins/blurBgFallback.js.map +1 -1
  174. package/dist/tailwind/dist/tailwind/plugins/components.cjs +1 -0
  175. package/dist/tailwind/dist/tailwind/plugins/components.js +2 -1
  176. package/dist/tailwind/dist/tailwind/plugins/components.js.map +1 -1
  177. package/dist/tailwind/dist/types/dist/index.d.cts.map +1 -1
  178. package/dist/tailwind/dist/types/dist/index.d.ts.map +1 -1
  179. package/dist/tokens/automation/configs/index.cjs +1 -0
  180. package/dist/tokens/automation/configs/index.d.cts +2 -2
  181. package/dist/tokens/automation/configs/index.d.ts +2 -2
  182. package/dist/tokens/automation/configs/index.js +2 -2
  183. package/dist/tokens/automation/index.cjs +1 -0
  184. package/dist/tokens/automation/index.d.cts +2 -2
  185. package/dist/tokens/automation/index.d.ts +2 -2
  186. package/dist/tokens/automation/index.js +2 -2
  187. package/dist/tokens/index.cjs +1 -0
  188. package/dist/tokens/index.d.cts +3 -3
  189. package/dist/tokens/index.d.ts +3 -3
  190. package/dist/tokens/index.js +2 -2
  191. package/dist/tokens/types.d.cts +2 -2
  192. package/dist/tokens/types.d.ts +2 -2
  193. package/dist/types/dist/index.d.cts +68 -2
  194. package/dist/types/dist/index.d.ts +68 -2
  195. package/dist/uds/generated/componentData.cjs +1024 -833
  196. package/dist/uds/generated/componentData.js +995 -840
  197. package/dist/uds/generated/tailwindPurge.cjs +137 -96
  198. package/dist/uds/generated/tailwindPurge.js +137 -96
  199. package/dist/utils/exposeAriakitScrollbarWidth.cjs +17 -0
  200. package/dist/utils/exposeAriakitScrollbarWidth.d.cts +13 -0
  201. package/dist/utils/exposeAriakitScrollbarWidth.d.ts +13 -0
  202. package/dist/utils/exposeAriakitScrollbarWidth.js +16 -0
  203. package/generated/componentData.json +1761 -1550
  204. package/generated/tailwindPurge.ts +4 -4
  205. package/package.json +1 -1
  206. package/dist/components/experimental/client/Modal.cjs +0 -60
  207. package/dist/components/experimental/client/Modal.d.cts +0 -27
  208. package/dist/components/experimental/client/Modal.d.ts +0 -28
  209. package/dist/components/experimental/client/Modal.js +0 -55
  210. package/dist/tailwind/dist/purger/optimized/ast/jsx.cjs +0 -16
  211. package/dist/tailwind/dist/purger/optimized/ast/jsx.js +0 -17
  212. package/dist/tailwind/dist/purger/optimized/ast/jsx.js.map +0 -1
@@ -245,6 +245,18 @@ const spacingVertical = {
245
245
  twThemePath: (_, value) => `spacing[${value}]`,
246
246
  possibleFixtures: ["spacingAliases"]
247
247
  };
248
+ const spacingTop = {
249
+ name: "spacingTop",
250
+ cssProperties: "padding-top",
251
+ twThemePath: (_, value) => `spacing[${value}]`,
252
+ possibleFixtures: ["spacingAliases"]
253
+ };
254
+ const spacingBottom = {
255
+ name: "spacingBottom",
256
+ cssProperties: "padding-bottom",
257
+ twThemePath: (_, value) => `spacing[${value}]`,
258
+ possibleFixtures: ["spacingAliases"]
259
+ };
248
260
  const horizontalMargin = {
249
261
  name: "horizontalMargin",
250
262
  cssProperties: ["margin-left", "margin-right"],
@@ -404,6 +416,8 @@ const publicProperties = {
404
416
  bottomMargin,
405
417
  spacingHorizontal,
406
418
  spacingVertical,
419
+ spacingTop,
420
+ spacingBottom,
407
421
  textVariant,
408
422
  textDecorationLine,
409
423
  shadow,
@@ -464,7 +478,7 @@ const publicProperties = {
464
478
  const property = schema.variables[variablePath][propertyName].rest;
465
479
  if (property.type === "elevationAliases") return `var(--uds-background-blur-radius-${property.value})`;
466
480
  }
467
- return `blur(${schemaValue.value}px)`;
481
+ return schemaValue.value === 0 ? "none" : `blur(${schemaValue.value}px)`;
468
482
  }
469
483
  },
470
484
  blurBackgroundColor: {
@@ -245,6 +245,18 @@ const spacingVertical = {
245
245
  twThemePath: (_, value) => `spacing[${value}]`,
246
246
  possibleFixtures: ["spacingAliases"]
247
247
  };
248
+ const spacingTop = {
249
+ name: "spacingTop",
250
+ cssProperties: "padding-top",
251
+ twThemePath: (_, value) => `spacing[${value}]`,
252
+ possibleFixtures: ["spacingAliases"]
253
+ };
254
+ const spacingBottom = {
255
+ name: "spacingBottom",
256
+ cssProperties: "padding-bottom",
257
+ twThemePath: (_, value) => `spacing[${value}]`,
258
+ possibleFixtures: ["spacingAliases"]
259
+ };
248
260
  const horizontalMargin = {
249
261
  name: "horizontalMargin",
250
262
  cssProperties: ["margin-left", "margin-right"],
@@ -404,6 +416,8 @@ const publicProperties = {
404
416
  bottomMargin,
405
417
  spacingHorizontal,
406
418
  spacingVertical,
419
+ spacingTop,
420
+ spacingBottom,
407
421
  textVariant,
408
422
  textDecorationLine,
409
423
  shadow,
@@ -464,7 +478,7 @@ const publicProperties = {
464
478
  const property = schema.variables[variablePath][propertyName].rest;
465
479
  if (property.type === "elevationAliases") return `var(--uds-background-blur-radius-${property.value})`;
466
480
  }
467
- return `blur(${schemaValue.value}px)`;
481
+ return schemaValue.value === 0 ? "none" : `blur(${schemaValue.value}px)`;
468
482
  }
469
483
  },
470
484
  blurBackgroundColor: {
@@ -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 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\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 `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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IAAI;AAC3D,OAAI,SAAS,WAAW,OAAO,IAAI,SAAS,SAAS,IAAI,CAAE,QAAO,SAAS,MAAM,GAAG,GAAG;AACvF,UAAO;;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
+ {"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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AM;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"}
@@ -24,6 +24,7 @@ const showHelp = () => {
24
24
  require_print.print(` ${require_colors.cyan("--watch, -w")} Watch for file changes and regenerate`);
25
25
  require_print.print(` ${require_colors.cyan("--silent, -s")} Suppress output logging`);
26
26
  require_print.print(` ${require_colors.cyan("--verbose, -v")} List every scanned file used for purging`);
27
+ require_print.print(` ${require_colors.cyan("--workers <n>")} Number of parallel workers (default: auto = CPU count - 1)`);
27
28
  require_print.print(` ${require_colors.cyan("--force")} Overwrite existing uds.theme.ts (for init)`);
28
29
  require_print.print(` ${require_colors.cyan("--help, -h")} Show this help message`);
29
30
  require_print.print("");
@@ -1 +1 @@
1
- {"version":3,"file":"css.d.cts","names":[],"sources":["../../src/commands/css.ts"],"mappings":";;;;;KAuEK,OAAA;EACH,QAAA,EAAU,MAAA,SAAe,MAAA;EACzB,YAAA,EAAc,MAAA,SAAe,MAAA;EAC7B,aAAA,EAAe,MAAA,SAAe,uBAAA;AAAA;AAAA,cAG1B,cAAA,GAAkB,UAAA,QAAkB,OAAA,CAAQ,OAAA,MAAW,OAAA"}
1
+ {"version":3,"file":"css.d.cts","names":[],"sources":["../../src/commands/css.ts"],"mappings":";;;;;KA0EK,OAAA;EACH,QAAA,EAAU,MAAA,SAAe,MAAA;EACzB,YAAA,EAAc,MAAA,SAAe,MAAA;EAC7B,aAAA,EAAe,MAAA,SAAe,uBAAA;AAAA;AAAA,cAG1B,cAAA,GAAkB,UAAA,QAAkB,OAAA,CAAQ,OAAA,MAAW,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"css.d.ts","names":[],"sources":["../../src/commands/css.ts"],"mappings":";;;;;KAuEK,OAAA;EACH,QAAA,EAAU,MAAA,SAAe,MAAA;EACzB,YAAA,EAAc,MAAA,SAAe,MAAA;EAC7B,aAAA,EAAe,MAAA,SAAe,uBAAA;AAAA;AAAA,cAG1B,cAAA,GAAkB,UAAA,QAAkB,OAAA,CAAQ,OAAA,MAAW,OAAA"}
1
+ {"version":3,"file":"css.d.ts","names":[],"sources":["../../src/commands/css.ts"],"mappings":";;;;;KA0EK,OAAA;EACH,QAAA,EAAU,MAAA,SAAe,MAAA;EACzB,YAAA,EAAc,MAAA,SAAe,MAAA;EAC7B,aAAA,EAAe,MAAA,SAAe,uBAAA;AAAA;AAAA,cAG1B,cAAA,GAAkB,UAAA,QAAkB,OAAA,CAAQ,OAAA,MAAW,OAAA"}
@@ -1,5 +1,11 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
2
2
  //#region src/commands/css.helpers.ts
3
+ const parseWorkersOption = (value) => {
4
+ if (typeof value !== "string" || value === "auto") return;
5
+ const num = Number(value);
6
+ if (!Number.isInteger(num) || num < 1) return;
7
+ return num;
8
+ };
3
9
  const isTruthyFlag = (value) => value === true || value === "true";
4
10
  const stringOption = (value) => typeof value === "string" ? value : void 0;
5
11
  const entryOption = (value) => {
@@ -24,7 +30,8 @@ const getCssRunOptions = (workspaceDir, options) => {
24
30
  configOption: stringOption(options.config),
25
31
  watch: isTruthyFlag(options.watch) || isTruthyFlag(options.w),
26
32
  silent: isTruthyFlag(options.silent) || isTruthyFlag(options.s),
27
- verbose: isTruthyFlag(options.verbose) || isTruthyFlag(options.v)
33
+ verbose: isTruthyFlag(options.verbose) || isTruthyFlag(options.v),
34
+ workers: parseWorkersOption(options.workers)
28
35
  };
29
36
  };
30
37
  //#endregion
@@ -1,5 +1,11 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
2
2
  //#region src/commands/css.helpers.ts
3
+ const parseWorkersOption = (value) => {
4
+ if (typeof value !== "string" || value === "auto") return;
5
+ const num = Number(value);
6
+ if (!Number.isInteger(num) || num < 1) return;
7
+ return num;
8
+ };
3
9
  const isTruthyFlag = (value) => value === true || value === "true";
4
10
  const stringOption = (value) => typeof value === "string" ? value : void 0;
5
11
  const entryOption = (value) => {
@@ -24,7 +30,8 @@ const getCssRunOptions = (workspaceDir, options) => {
24
30
  configOption: stringOption(options.config),
25
31
  watch: isTruthyFlag(options.watch) || isTruthyFlag(options.w),
26
32
  silent: isTruthyFlag(options.silent) || isTruthyFlag(options.s),
27
- verbose: isTruthyFlag(options.verbose) || isTruthyFlag(options.v)
33
+ verbose: isTruthyFlag(options.verbose) || isTruthyFlag(options.v),
34
+ workers: parseWorkersOption(options.workers)
28
35
  };
29
36
  };
30
37
  //#endregion
@@ -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};\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 };\n};\n\nexport { getCssInitOptions, getCssRunOptions, isInitCommand, shouldShowHelp };\n"],"mappings":";;AAuBA,MAAM,gBAAgB,UAA4B,UAAU,QAAQ,UAAU;AAE9E,MAAM,gBAAgB,UACpB,OAAO,UAAU,WAAW,QAAQ,KAAA;AAEtC,MAAM,eAAe,UAA2C;AAC9D,KAAI,OAAO,UAAU,SACnB,QAAO;AAGT,KAAI,MAAM,QAAQ,MAAM,IAAI,MAAM,OAAO,SAAS,OAAO,SAAS,SAAS,CACzE,QAAO;;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;AAIrF,QAAO;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;EAClE"}
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;AACjE,KAAI,OAAO,UAAU,YAAY,UAAU,OACzC;CAGF,MAAM,MAAM,OAAO,MAAM;AACzB,KAAI,CAAC,OAAO,UAAU,IAAI,IAAI,MAAM,EAClC;AAGF,QAAO;;AAGT,MAAM,gBAAgB,UAA4B,UAAU,QAAQ,UAAU;AAE9E,MAAM,gBAAgB,UACpB,OAAO,UAAU,WAAW,QAAQ,KAAA;AAEtC,MAAM,eAAe,UAA2C;AAC9D,KAAI,OAAO,UAAU,SACnB,QAAO;AAGT,KAAI,MAAM,QAAQ,MAAM,IAAI,MAAM,OAAO,SAAS,OAAO,SAAS,SAAS,CACzE,QAAO;;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;AAIrF,QAAO;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"}
@@ -24,6 +24,7 @@ const showHelp = () => {
24
24
  print(` ${cyan("--watch, -w")} Watch for file changes and regenerate`);
25
25
  print(` ${cyan("--silent, -s")} Suppress output logging`);
26
26
  print(` ${cyan("--verbose, -v")} List every scanned file used for purging`);
27
+ print(` ${cyan("--workers <n>")} Number of parallel workers (default: auto = CPU count - 1)`);
27
28
  print(` ${cyan("--force")} Overwrite existing uds.theme.ts (for init)`);
28
29
  print(` ${cyan("--help, -h")} Show this help message`);
29
30
  print("");
@@ -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(` ${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;AACrB,OAAM,GAAG;AACT,OAAM,GAAG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AEL,KAAK,OAAO,UAAiB;EAC3B,MAAM,EAAE,UAAU,cAAc,kBAAkB,MAAM,YAAY;AAEpE,MAAI,eAAe,MAAM,QAAQ,EAAE;AACjC,aAAU;AACV;;AAGF,MAAI,cAAc,MAAM,MAAM,EAAE;AAC9B,SAAM,oBAAoB,kBAAkB,MAAM,QAAQ,CAAC;AAC3D;;AAKF,QAAM,cAFgB,iBAAiB,QAAQ,KAAK,EAAE,MAAM,QAE3B,EAAE;GAAE;GAAU;GAAc;GAAe,CAAC;;CAEhF"}
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;AACrB,OAAM,GAAG;AACT,OAAM,GAAG,MAAM,UAAU,CAAC,yBAAyB;AACnD,OAAM,GAAG;AACT,OAAM,GAAG,QAAQ,SAAS,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MAAM,EAAE,UAAU,cAAc,kBAAkB,MAAM,YAAY;AAEpE,MAAI,eAAe,MAAM,QAAQ,EAAE;AACjC,aAAU;AACV;;AAGF,MAAI,cAAc,MAAM,MAAM,EAAE;AAC9B,SAAM,oBAAoB,kBAAkB,MAAM,QAAQ,CAAC;AAC3D;;AAKF,QAAM,cAFgB,iBAAiB,QAAQ,KAAK,EAAE,MAAM,QAE3B,EAAE;GAAE;GAAU;GAAc;GAAe,CAAC;;CAEhF"}
@@ -1223,7 +1223,7 @@ const defaultTokensConfig = {
1223
1223
  "variant/primary/root": {
1224
1224
  backgroundColor: { rest: {
1225
1225
  type: "backgroundPaletteColors",
1226
- value: "accent",
1226
+ value: "secondary",
1227
1227
  valueType: "alias"
1228
1228
  } },
1229
1229
  borderColor: { rest: {
@@ -9524,7 +9524,8 @@ const defaultTokensConfig = {
9524
9524
  line: {
9525
9525
  accent: {
9526
9526
  hue: "carbon",
9527
- step: "6"
9527
+ opacity: "25",
9528
+ step: "15"
9528
9529
  },
9529
9530
  alert: {
9530
9531
  hue: "red",
@@ -16881,6 +16882,130 @@ const defaultTokensConfig = {
16881
16882
  } } }
16882
16883
  }
16883
16884
  },
16885
+ modal: {
16886
+ defaults: {
16887
+ size: "default",
16888
+ variant: "default"
16889
+ },
16890
+ variables: {
16891
+ "size/default/actions": {
16892
+ gap: { rest: {
16893
+ type: "spacingAliases",
16894
+ value: "3",
16895
+ valueType: "alias"
16896
+ } },
16897
+ spacingTop: { rest: {
16898
+ type: "spacingAliases",
16899
+ value: "8",
16900
+ valueType: "alias"
16901
+ } }
16902
+ },
16903
+ "size/default/closeIcon": { size: { rest: {
16904
+ type: "iconSizes",
16905
+ value: "md",
16906
+ valueType: "alias"
16907
+ } } },
16908
+ "size/default/closeIconContainer": { spacing: { rest: {
16909
+ type: "spacingAliases",
16910
+ value: "2",
16911
+ valueType: "alias"
16912
+ } } },
16913
+ "size/default/content": { spacingBottom: { rest: {
16914
+ type: "spacingAliases",
16915
+ value: "2",
16916
+ valueType: "alias"
16917
+ } } },
16918
+ "size/default/description": { textVariant: { rest: {
16919
+ type: "textVariants",
16920
+ value: "label2",
16921
+ valueType: "alias"
16922
+ } } },
16923
+ "size/default/header": { spacingBottom: { rest: {
16924
+ type: "spacingAliases",
16925
+ value: "8",
16926
+ valueType: "alias"
16927
+ } } },
16928
+ "size/default/root": {
16929
+ borderRadius: { rest: {
16930
+ type: "borderRadii",
16931
+ value: "lg",
16932
+ valueType: "alias"
16933
+ } },
16934
+ borderWidth: { rest: {
16935
+ type: "elevationAliases",
16936
+ value: "elevation-5",
16937
+ valueType: "alias"
16938
+ } },
16939
+ shadow: { rest: {
16940
+ type: "elevationAliases",
16941
+ value: "elevation-5",
16942
+ valueType: "alias"
16943
+ } },
16944
+ spacingVertical: { rest: {
16945
+ type: "spacingAliases",
16946
+ value: "8",
16947
+ valueType: "alias"
16948
+ } }
16949
+ },
16950
+ "size/default/scrim": { spacing: { rest: {
16951
+ type: "spacingAliases",
16952
+ value: "8",
16953
+ valueType: "alias"
16954
+ } } },
16955
+ "size/default/spacingHorizontal": { spacingHorizontal: { rest: {
16956
+ type: "spacingAliases",
16957
+ value: "8",
16958
+ valueType: "alias"
16959
+ } } },
16960
+ "size/default/title": { textVariant: { rest: {
16961
+ type: "textVariants",
16962
+ value: "title2",
16963
+ valueType: "alias"
16964
+ } } },
16965
+ "size/default/titleDescriptionWrapper": { gap: { rest: {
16966
+ type: "spacingAliases",
16967
+ value: "2",
16968
+ valueType: "alias"
16969
+ } } },
16970
+ "variant/default/closeIcon": { color: { rest: {
16971
+ type: "foregroundPaletteColors",
16972
+ value: "primary",
16973
+ valueType: "alias"
16974
+ } } },
16975
+ "variant/default/description": { color: { rest: {
16976
+ type: "foregroundPaletteColors",
16977
+ value: "primary",
16978
+ valueType: "alias"
16979
+ } } },
16980
+ "variant/default/root": {
16981
+ backdropBlur: { rest: {
16982
+ type: "positiveIntegers",
16983
+ value: 0,
16984
+ valueType: "custom"
16985
+ } },
16986
+ backgroundColor: { rest: {
16987
+ type: "elevationAliases",
16988
+ value: "elevation-5",
16989
+ valueType: "alias"
16990
+ } },
16991
+ blurBackgroundColorFallback: { rest: {
16992
+ type: "elevationAliases",
16993
+ value: "elevation-5",
16994
+ valueType: "alias"
16995
+ } },
16996
+ borderColor: { rest: {
16997
+ type: "elevationAliases",
16998
+ value: "elevation-5",
16999
+ valueType: "alias"
17000
+ } }
17001
+ },
17002
+ "variant/default/title": { color: { rest: {
17003
+ type: "foregroundPaletteColors",
17004
+ value: "primary",
17005
+ valueType: "alias"
17006
+ } } }
17007
+ }
17008
+ },
16884
17009
  motion: {
16885
17010
  bouncy: {
16886
17011
  "1": {
@@ -28425,8 +28550,8 @@ const defaultTokensConfig = {
28425
28550
  }
28426
28551
  }
28427
28552
  },
28428
- version: "v0.91.0",
28429
- version: "v0.91.0"
28553
+ version: "v0.92.0",
28554
+ version: "v0.92.0"
28430
28555
  };
28431
28556
  //#endregion
28432
28557
  exports.defaultTokensConfig = defaultTokensConfig;
@@ -1223,7 +1223,7 @@ const defaultTokensConfig = {
1223
1223
  "variant/primary/root": {
1224
1224
  backgroundColor: { rest: {
1225
1225
  type: "backgroundPaletteColors",
1226
- value: "accent",
1226
+ value: "secondary",
1227
1227
  valueType: "alias"
1228
1228
  } },
1229
1229
  borderColor: { rest: {
@@ -9524,7 +9524,8 @@ const defaultTokensConfig = {
9524
9524
  line: {
9525
9525
  accent: {
9526
9526
  hue: "carbon",
9527
- step: "6"
9527
+ opacity: "25",
9528
+ step: "15"
9528
9529
  },
9529
9530
  alert: {
9530
9531
  hue: "red",
@@ -16881,6 +16882,130 @@ const defaultTokensConfig = {
16881
16882
  } } }
16882
16883
  }
16883
16884
  },
16885
+ modal: {
16886
+ defaults: {
16887
+ size: "default",
16888
+ variant: "default"
16889
+ },
16890
+ variables: {
16891
+ "size/default/actions": {
16892
+ gap: { rest: {
16893
+ type: "spacingAliases",
16894
+ value: "3",
16895
+ valueType: "alias"
16896
+ } },
16897
+ spacingTop: { rest: {
16898
+ type: "spacingAliases",
16899
+ value: "8",
16900
+ valueType: "alias"
16901
+ } }
16902
+ },
16903
+ "size/default/closeIcon": { size: { rest: {
16904
+ type: "iconSizes",
16905
+ value: "md",
16906
+ valueType: "alias"
16907
+ } } },
16908
+ "size/default/closeIconContainer": { spacing: { rest: {
16909
+ type: "spacingAliases",
16910
+ value: "2",
16911
+ valueType: "alias"
16912
+ } } },
16913
+ "size/default/content": { spacingBottom: { rest: {
16914
+ type: "spacingAliases",
16915
+ value: "2",
16916
+ valueType: "alias"
16917
+ } } },
16918
+ "size/default/description": { textVariant: { rest: {
16919
+ type: "textVariants",
16920
+ value: "label2",
16921
+ valueType: "alias"
16922
+ } } },
16923
+ "size/default/header": { spacingBottom: { rest: {
16924
+ type: "spacingAliases",
16925
+ value: "8",
16926
+ valueType: "alias"
16927
+ } } },
16928
+ "size/default/root": {
16929
+ borderRadius: { rest: {
16930
+ type: "borderRadii",
16931
+ value: "lg",
16932
+ valueType: "alias"
16933
+ } },
16934
+ borderWidth: { rest: {
16935
+ type: "elevationAliases",
16936
+ value: "elevation-5",
16937
+ valueType: "alias"
16938
+ } },
16939
+ shadow: { rest: {
16940
+ type: "elevationAliases",
16941
+ value: "elevation-5",
16942
+ valueType: "alias"
16943
+ } },
16944
+ spacingVertical: { rest: {
16945
+ type: "spacingAliases",
16946
+ value: "8",
16947
+ valueType: "alias"
16948
+ } }
16949
+ },
16950
+ "size/default/scrim": { spacing: { rest: {
16951
+ type: "spacingAliases",
16952
+ value: "8",
16953
+ valueType: "alias"
16954
+ } } },
16955
+ "size/default/spacingHorizontal": { spacingHorizontal: { rest: {
16956
+ type: "spacingAliases",
16957
+ value: "8",
16958
+ valueType: "alias"
16959
+ } } },
16960
+ "size/default/title": { textVariant: { rest: {
16961
+ type: "textVariants",
16962
+ value: "title2",
16963
+ valueType: "alias"
16964
+ } } },
16965
+ "size/default/titleDescriptionWrapper": { gap: { rest: {
16966
+ type: "spacingAliases",
16967
+ value: "2",
16968
+ valueType: "alias"
16969
+ } } },
16970
+ "variant/default/closeIcon": { color: { rest: {
16971
+ type: "foregroundPaletteColors",
16972
+ value: "primary",
16973
+ valueType: "alias"
16974
+ } } },
16975
+ "variant/default/description": { color: { rest: {
16976
+ type: "foregroundPaletteColors",
16977
+ value: "primary",
16978
+ valueType: "alias"
16979
+ } } },
16980
+ "variant/default/root": {
16981
+ backdropBlur: { rest: {
16982
+ type: "positiveIntegers",
16983
+ value: 0,
16984
+ valueType: "custom"
16985
+ } },
16986
+ backgroundColor: { rest: {
16987
+ type: "elevationAliases",
16988
+ value: "elevation-5",
16989
+ valueType: "alias"
16990
+ } },
16991
+ blurBackgroundColorFallback: { rest: {
16992
+ type: "elevationAliases",
16993
+ value: "elevation-5",
16994
+ valueType: "alias"
16995
+ } },
16996
+ borderColor: { rest: {
16997
+ type: "elevationAliases",
16998
+ value: "elevation-5",
16999
+ valueType: "alias"
17000
+ } }
17001
+ },
17002
+ "variant/default/title": { color: { rest: {
17003
+ type: "foregroundPaletteColors",
17004
+ value: "primary",
17005
+ valueType: "alias"
17006
+ } } }
17007
+ }
17008
+ },
16884
17009
  motion: {
16885
17010
  bouncy: {
16886
17011
  "1": {
@@ -28425,8 +28550,8 @@ const defaultTokensConfig = {
28425
28550
  }
28426
28551
  }
28427
28552
  },
28428
- version: "v0.91.0",
28429
- version: "v0.91.0"
28553
+ version: "v0.92.0",
28554
+ version: "v0.92.0"
28430
28555
  };
28431
28556
  //#endregion
28432
28557
  export { defaultTokensConfig };