@yahoo/uds 3.114.0-beta.2 → 3.114.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.
Files changed (247) hide show
  1. package/dist/automated-config/dist/generated/autoVariants.cjs +3 -0
  2. package/dist/automated-config/dist/generated/autoVariants.d.cts +3 -0
  3. package/dist/automated-config/dist/generated/autoVariants.d.ts +3 -0
  4. package/dist/automated-config/dist/generated/autoVariants.js +3 -0
  5. package/dist/automated-config/dist/generated/generatedConfigs.cjs +1883 -0
  6. package/dist/automated-config/dist/generated/generatedConfigs.d.cts +175 -1
  7. package/dist/automated-config/dist/generated/generatedConfigs.d.ts +175 -1
  8. package/dist/automated-config/dist/generated/generatedConfigs.js +1882 -1
  9. package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +84 -0
  10. package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +3 -1
  11. package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +3 -1
  12. package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +84 -0
  13. package/dist/automated-config/dist/mapTextVariantFixtureToValue.cjs +1 -12
  14. package/dist/automated-config/dist/mapTextVariantFixtureToValue.js +1 -12
  15. package/dist/automated-config/dist/properties.cjs +58 -12
  16. package/dist/automated-config/dist/properties.d.cts +8 -0
  17. package/dist/automated-config/dist/properties.d.ts +8 -0
  18. package/dist/automated-config/dist/properties.js +58 -12
  19. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
  20. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
  21. package/dist/cli/commands/sync.cjs +7 -1
  22. package/dist/cli/commands/sync.d.cts +1 -1
  23. package/dist/cli/commands/sync.d.ts +1 -1
  24. package/dist/cli/commands/sync.js +7 -1
  25. package/dist/cli/commands/version.cjs +2 -0
  26. package/dist/cli/commands/version.d.cts +1 -1
  27. package/dist/cli/commands/version.d.ts +1 -1
  28. package/dist/cli/commands/version.js +2 -0
  29. package/dist/cli/dist/cli.cjs +1 -1
  30. package/dist/cli/dist/cli.js +1 -1
  31. package/dist/cli/dist/commands/editor-rules.cjs +2 -2
  32. package/dist/cli/dist/commands/editor-rules.js +2 -2
  33. package/dist/cli/dist/utils/rules/config.cjs +1 -1
  34. package/dist/cli/dist/utils/rules/config.js +1 -1
  35. package/dist/cli/runner.cjs +2 -11
  36. package/dist/cli/runner.js +2 -11
  37. package/dist/components/Scrim.cjs +28 -0
  38. package/dist/components/Scrim.d.cts +14 -0
  39. package/dist/components/Scrim.d.ts +14 -0
  40. package/dist/components/Scrim.js +26 -0
  41. package/dist/components/client/BottomSheet/BottomSheet.cjs +209 -0
  42. package/dist/components/client/BottomSheet/BottomSheet.d.cts +77 -0
  43. package/dist/components/client/BottomSheet/BottomSheet.d.ts +77 -0
  44. package/dist/components/client/BottomSheet/BottomSheet.js +207 -0
  45. package/dist/components/client/BottomSheet/BottomSheetContent.cjs +26 -0
  46. package/dist/components/client/BottomSheet/BottomSheetContent.d.cts +15 -0
  47. package/dist/components/client/BottomSheet/BottomSheetContent.d.ts +15 -0
  48. package/dist/components/client/BottomSheet/BottomSheetContent.js +24 -0
  49. package/dist/components/client/BottomSheet/BottomSheetDismiss.cjs +15 -0
  50. package/dist/components/client/BottomSheet/BottomSheetDismiss.d.cts +12 -0
  51. package/dist/components/client/BottomSheet/BottomSheetDismiss.d.ts +12 -0
  52. package/dist/components/client/BottomSheet/BottomSheetDismiss.js +13 -0
  53. package/dist/components/client/BottomSheet/BottomSheetHandle.cjs +30 -0
  54. package/dist/components/client/BottomSheet/BottomSheetHandle.d.cts +19 -0
  55. package/dist/components/client/BottomSheet/BottomSheetHandle.d.ts +19 -0
  56. package/dist/components/client/BottomSheet/BottomSheetHandle.js +28 -0
  57. package/dist/components/client/BottomSheet/BottomSheetHeader.cjs +42 -0
  58. package/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +18 -0
  59. package/dist/components/client/BottomSheet/BottomSheetHeader.d.ts +18 -0
  60. package/dist/components/client/BottomSheet/BottomSheetHeader.js +40 -0
  61. package/dist/components/client/BottomSheet/BottomSheetProvider.cjs +21 -0
  62. package/dist/components/client/BottomSheet/BottomSheetProvider.d.cts +19 -0
  63. package/dist/components/client/BottomSheet/BottomSheetProvider.d.ts +19 -0
  64. package/dist/components/client/BottomSheet/BottomSheetProvider.js +19 -0
  65. package/dist/components/client/BottomSheet/BottomSheetTrigger.cjs +15 -0
  66. package/dist/components/client/BottomSheet/BottomSheetTrigger.d.cts +12 -0
  67. package/dist/components/client/BottomSheet/BottomSheetTrigger.d.ts +12 -0
  68. package/dist/components/client/BottomSheet/BottomSheetTrigger.js +13 -0
  69. package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.cjs +32 -0
  70. package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.cts +22 -0
  71. package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.ts +22 -0
  72. package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.js +29 -0
  73. package/dist/components/client/BottomSheet/index.cjs +22 -0
  74. package/dist/components/client/BottomSheet/index.d.cts +10 -0
  75. package/dist/components/client/BottomSheet/index.d.ts +10 -0
  76. package/dist/components/client/BottomSheet/index.js +12 -0
  77. package/dist/components/client/BottomSheet/useBottomSheetDrag.cjs +188 -0
  78. package/dist/components/client/BottomSheet/useBottomSheetDrag.d.cts +44 -0
  79. package/dist/components/client/BottomSheet/useBottomSheetDrag.d.ts +44 -0
  80. package/dist/components/client/BottomSheet/useBottomSheetDrag.js +185 -0
  81. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.cjs +138 -0
  82. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.cts +46 -0
  83. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.ts +46 -0
  84. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.js +135 -0
  85. package/dist/components/client/BottomSheet/useBottomSheetStore.cjs +34 -0
  86. package/dist/components/client/BottomSheet/useBottomSheetStore.d.cts +38 -0
  87. package/dist/components/client/BottomSheet/useBottomSheetStore.d.ts +38 -0
  88. package/dist/components/client/BottomSheet/useBottomSheetStore.js +31 -0
  89. package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.cjs +17 -0
  90. package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.d.cts +13 -0
  91. package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.d.ts +13 -0
  92. package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.js +15 -0
  93. package/dist/components/client/BottomSheet/useExpansionMargins.cjs +89 -0
  94. package/dist/components/client/BottomSheet/useExpansionMargins.d.cts +34 -0
  95. package/dist/components/client/BottomSheet/useExpansionMargins.d.ts +34 -0
  96. package/dist/components/client/BottomSheet/useExpansionMargins.js +87 -0
  97. package/dist/components/client/BottomSheet/useViewportHeight.cjs +32 -0
  98. package/dist/components/client/BottomSheet/useViewportHeight.d.cts +9 -0
  99. package/dist/components/client/BottomSheet/useViewportHeight.d.ts +9 -0
  100. package/dist/components/client/BottomSheet/useViewportHeight.js +30 -0
  101. package/dist/components/client/BottomSheet/useVirtualKeyboard.cjs +48 -0
  102. package/dist/components/client/BottomSheet/useVirtualKeyboard.d.cts +10 -0
  103. package/dist/components/client/BottomSheet/useVirtualKeyboard.d.ts +10 -0
  104. package/dist/components/client/BottomSheet/useVirtualKeyboard.js +46 -0
  105. package/dist/components/client/BottomSheet/utils.cjs +128 -0
  106. package/dist/components/client/BottomSheet/utils.d.cts +61 -0
  107. package/dist/components/client/BottomSheet/utils.d.ts +61 -0
  108. package/dist/components/client/BottomSheet/utils.js +118 -0
  109. package/dist/components/client/Menu/Menu.Content.cjs +1 -1
  110. package/dist/components/client/Menu/Menu.Content.js +1 -1
  111. package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
  112. package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
  113. package/dist/components/client/Menu/Menu.index.d.cts +1 -1
  114. package/dist/components/client/index.cjs +16 -0
  115. package/dist/components/client/index.d.cts +10 -1
  116. package/dist/components/client/index.d.ts +10 -1
  117. package/dist/components/client/index.js +9 -1
  118. package/dist/components/client/providers/UDSConfigProvider.cjs +10 -6
  119. package/dist/components/client/providers/UDSConfigProvider.d.cts +1 -0
  120. package/dist/components/client/providers/UDSConfigProvider.d.ts +1 -0
  121. package/dist/components/client/providers/UDSConfigProvider.js +10 -6
  122. package/dist/components/index.cjs +24 -0
  123. package/dist/components/index.d.cts +9 -1
  124. package/dist/components/index.d.ts +9 -1
  125. package/dist/components/index.js +17 -1
  126. package/dist/config/dist/index.cjs +110 -2
  127. package/dist/config/dist/index.js +110 -2
  128. package/dist/fixtures/dist/index.cjs +103 -0
  129. package/dist/fixtures/dist/index.d.cts +3 -2
  130. package/dist/fixtures/dist/index.d.ts +3 -2
  131. package/dist/fixtures/dist/index.js +103 -1
  132. package/dist/fixtures/index.cjs +1 -0
  133. package/dist/fixtures/index.d.cts +2 -2
  134. package/dist/fixtures/index.d.ts +2 -2
  135. package/dist/fixtures/index.js +2 -2
  136. package/dist/index.cjs +20 -2
  137. package/dist/index.d.cts +12 -5
  138. package/dist/index.d.ts +12 -5
  139. package/dist/index.js +11 -3
  140. package/dist/runtime/bottomSheetConfig.cjs +11 -0
  141. package/dist/runtime/bottomSheetConfig.d.cts +15 -0
  142. package/dist/runtime/bottomSheetConfig.d.ts +15 -0
  143. package/dist/runtime/bottomSheetConfig.js +9 -0
  144. package/dist/runtime/index.cjs +2 -0
  145. package/dist/runtime/index.d.cts +2 -1
  146. package/dist/runtime/index.d.ts +2 -1
  147. package/dist/runtime/index.js +2 -1
  148. package/dist/runtime/udsConfig.cjs +2 -0
  149. package/dist/runtime/udsConfig.d.cts +2 -0
  150. package/dist/runtime/udsConfig.d.ts +2 -0
  151. package/dist/runtime/udsConfig.js +2 -0
  152. package/dist/styles/styler.d.cts +33 -30
  153. package/dist/styles/styler.d.ts +33 -30
  154. package/dist/styles/variants.cjs +278 -278
  155. package/dist/styles/variants.d.cts +9 -0
  156. package/dist/styles/variants.d.ts +9 -0
  157. package/dist/styles/variants.js +278 -278
  158. package/dist/tailwind/dist/commands/generateComponentData.cjs +31 -33
  159. package/dist/tailwind/dist/commands/generateComponentData.d.ts +1 -1
  160. package/dist/tailwind/dist/commands/generateComponentData.js +31 -33
  161. package/dist/tailwind/dist/commands/generatePurgeCSSData.d.ts +1 -1
  162. package/dist/tailwind/dist/commands/purge.cjs +4 -3
  163. package/dist/tailwind/dist/commands/purge.d.ts +1 -1
  164. package/dist/tailwind/dist/commands/purge.js +4 -3
  165. package/dist/tailwind/dist/index.d.cts +0 -1
  166. package/dist/tailwind/dist/index.d.ts +3 -5
  167. package/dist/tailwind/dist/purger/legacy/purgeCSS.cjs +3 -4
  168. package/dist/tailwind/dist/purger/legacy/purgeCSS.js +3 -4
  169. package/dist/tailwind/dist/purger/optimized/ast/expressions.cjs +125 -122
  170. package/dist/tailwind/dist/purger/optimized/ast/expressions.js +125 -122
  171. package/dist/tailwind/dist/purger/optimized/ast/jsx.cjs +8 -1
  172. package/dist/tailwind/dist/purger/optimized/ast/jsx.js +8 -1
  173. package/dist/tailwind/dist/purger/optimized/purge.cjs +10 -11
  174. package/dist/tailwind/dist/purger/optimized/purge.js +9 -10
  175. package/dist/tailwind/dist/purger/optimized/purgeFromCode.cjs +127 -232
  176. package/dist/tailwind/dist/purger/optimized/purgeFromCode.js +127 -232
  177. package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.cjs +262 -330
  178. package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.js +262 -329
  179. package/dist/tailwind/dist/purger/optimized/utils/files.cjs +3 -4
  180. package/dist/tailwind/dist/purger/optimized/utils/files.js +3 -4
  181. package/dist/tailwind/dist/purger/optimized/utils/safelist.cjs +21 -13
  182. package/dist/tailwind/dist/purger/optimized/utils/safelist.js +21 -13
  183. package/dist/tailwind/dist/tailwind/plugins/components.cjs +2 -0
  184. package/dist/tailwind/dist/tailwind/plugins/components.js +3 -1
  185. package/dist/tailwind/dist/tailwind/plugins/typography.cjs +13 -41
  186. package/dist/tailwind/dist/tailwind/plugins/typography.js +13 -41
  187. package/dist/tailwind/dist/tailwind/utils/composeTailwindPlugins.cjs +2 -4
  188. package/dist/tailwind/dist/tailwind/utils/composeTailwindPlugins.d.cts +1 -10
  189. package/dist/tailwind/dist/tailwind/utils/composeTailwindPlugins.d.ts +1 -10
  190. package/dist/tailwind/dist/tailwind/utils/composeTailwindPlugins.js +2 -4
  191. package/dist/tailwind/dist/utils/tsMorph.cjs +1 -1
  192. package/dist/tokens/automation/configs/index.cjs +2 -0
  193. package/dist/tokens/automation/configs/index.d.cts +2 -2
  194. package/dist/tokens/automation/configs/index.d.ts +2 -2
  195. package/dist/tokens/automation/configs/index.js +2 -2
  196. package/dist/tokens/automation/index.cjs +2 -0
  197. package/dist/tokens/automation/index.d.cts +2 -2
  198. package/dist/tokens/automation/index.d.ts +2 -2
  199. package/dist/tokens/automation/index.js +2 -2
  200. package/dist/tokens/index.cjs +2 -0
  201. package/dist/tokens/index.d.cts +3 -3
  202. package/dist/tokens/index.d.ts +3 -3
  203. package/dist/tokens/index.js +2 -2
  204. package/dist/tokens/types.d.cts +2 -2
  205. package/dist/tokens/types.d.ts +2 -2
  206. package/dist/types/dist/index.d.cts +76 -1
  207. package/dist/types/dist/index.d.ts +76 -1
  208. package/dist/uds/generated/componentData.cjs +1187 -961
  209. package/dist/uds/generated/componentData.js +1111 -939
  210. package/dist/uds/generated/tailwindPurge.cjs +57 -29
  211. package/dist/uds/generated/tailwindPurge.js +57 -29
  212. package/dist/uds/package.cjs +4 -10
  213. package/dist/uds/package.js +4 -10
  214. package/package.json +4 -7
  215. package/dist/cli/dist/lib/logger.cjs +0 -66
  216. package/dist/cli/dist/lib/logger.js +0 -66
  217. package/dist/tailwind/dist/commands/css.cjs +0 -79
  218. package/dist/tailwind/dist/commands/css.d.ts +0 -3
  219. package/dist/tailwind/dist/commands/css.helpers.cjs +0 -32
  220. package/dist/tailwind/dist/commands/css.helpers.js +0 -28
  221. package/dist/tailwind/dist/commands/css.js +0 -79
  222. package/dist/tailwind/dist/css/generate.cjs +0 -120
  223. package/dist/tailwind/dist/css/generate.d.cts +0 -30
  224. package/dist/tailwind/dist/css/generate.d.ts +0 -31
  225. package/dist/tailwind/dist/css/generate.helpers.cjs +0 -112
  226. package/dist/tailwind/dist/css/generate.helpers.js +0 -100
  227. package/dist/tailwind/dist/css/generate.js +0 -115
  228. package/dist/tailwind/dist/css/postcss.cjs +0 -35
  229. package/dist/tailwind/dist/css/postcss.helpers.cjs +0 -27
  230. package/dist/tailwind/dist/css/postcss.helpers.js +0 -26
  231. package/dist/tailwind/dist/css/postcss.js +0 -35
  232. package/dist/tailwind/dist/css/runner.cjs +0 -278
  233. package/dist/tailwind/dist/css/runner.helpers.cjs +0 -26
  234. package/dist/tailwind/dist/css/runner.helpers.js +0 -23
  235. package/dist/tailwind/dist/css/runner.js +0 -275
  236. package/dist/tailwind/dist/css/theme.cjs +0 -12
  237. package/dist/tailwind/dist/css/theme.d.cts +0 -66
  238. package/dist/tailwind/dist/css/theme.d.ts +0 -66
  239. package/dist/tailwind/dist/css/theme.js +0 -11
  240. package/dist/tailwind/dist/css/utils.cjs +0 -234
  241. package/dist/tailwind/dist/css/utils.js +0 -223
  242. package/dist/tailwind/dist/utils/optimizeCSS.cjs +0 -405
  243. package/dist/tailwind/dist/utils/optimizeCSS.js +0 -403
  244. package/dist/tailwind/dist/utils/postcssPreserveVars.cjs +0 -67
  245. package/dist/tailwind/dist/utils/postcssPreserveVars.js +0 -65
  246. package/generated/componentData.json +0 -2397
  247. package/generated/tailwindPurge.ts +0 -4560
@@ -882,6 +882,70 @@ const defaultUniversalTokensConfigAuto = {
882
882
  }
883
883
  }
884
884
  },
885
+ bottomSheet: {
886
+ defaults: { variant: "default" },
887
+ variables: {
888
+ "variant/default/header": {
889
+ color: { rest: {
890
+ type: "foregroundPaletteColors",
891
+ value: "primary",
892
+ valueType: "alias"
893
+ } },
894
+ textVariant: { rest: {
895
+ type: "textVariants",
896
+ value: "headline1",
897
+ valueType: "alias"
898
+ } }
899
+ },
900
+ "variant/default/root": {
901
+ backgroundColor: { rest: {
902
+ type: "backgroundPaletteColors",
903
+ value: "primary",
904
+ valueType: "alias"
905
+ } },
906
+ borderColor: { rest: {
907
+ type: "linePaletteColors",
908
+ value: "primary",
909
+ valueType: "alias"
910
+ } },
911
+ borderRadius: { rest: {
912
+ type: "borderRadii",
913
+ value: "lg",
914
+ valueType: "alias"
915
+ } },
916
+ borderWidth: { rest: {
917
+ type: "borderWidths",
918
+ value: "thin",
919
+ valueType: "alias"
920
+ } },
921
+ bottomMargin: { rest: {
922
+ type: "spacingAliases",
923
+ value: "0",
924
+ valueType: "alias"
925
+ } },
926
+ horizontalMargin: { rest: {
927
+ type: "spacingAliases",
928
+ value: "0",
929
+ valueType: "alias"
930
+ } },
931
+ shadow: { rest: {
932
+ type: "elevationAliases",
933
+ value: "elevation-2",
934
+ valueType: "alias"
935
+ } },
936
+ spacingHorizontal: { rest: {
937
+ type: "spacingAliases",
938
+ value: "4",
939
+ valueType: "alias"
940
+ } },
941
+ spacingVertical: { rest: {
942
+ type: "spacingAliases",
943
+ value: "0",
944
+ valueType: "alias"
945
+ } }
946
+ }
947
+ }
948
+ },
885
949
  button: {
886
950
  defaults: {
887
951
  size: "md",
@@ -11898,6 +11962,26 @@ const defaultUniversalTokensConfigAuto = {
11898
11962
  } }
11899
11963
  }
11900
11964
  },
11965
+ scrim: {
11966
+ defaults: { variant: "default" },
11967
+ variables: { "variant/default/root": {
11968
+ backdropBlur: { rest: {
11969
+ type: "positiveIntegers",
11970
+ value: 0,
11971
+ valueType: "alias"
11972
+ } },
11973
+ backgroundColor: { rest: {
11974
+ type: "alwaysPaletteAliases",
11975
+ value: "always/black",
11976
+ valueType: "alias"
11977
+ } },
11978
+ opacity: { rest: {
11979
+ type: "opacitySteps",
11980
+ value: "20",
11981
+ valueType: "alias"
11982
+ } }
11983
+ } }
11984
+ },
11901
11985
  switch: {
11902
11986
  defaults: {
11903
11987
  size: "md",
@@ -1,5 +1,5 @@
1
1
 
2
- import { AvatarConfig, BadgeConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuContentConfig, MenuItemConfig, RadioConfig, SwitchConfig, ToastConfig, TooltipConfig } from "./generatedConfigs.cjs";
2
+ import { AvatarConfig, BadgeConfig, BottomSheetConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuContentConfig, MenuItemConfig, RadioConfig, ScrimConfig, SwitchConfig, ToastConfig, TooltipConfig } from "./generatedConfigs.cjs";
3
3
  import { ComponentSchema } from "../utils/buildConfigSchema.cjs";
4
4
 
5
5
  //#region ../automated-config/dist/generated/universalTokensConfigAuto.d.ts
@@ -7,6 +7,7 @@ import { ComponentSchema } from "../utils/buildConfigSchema.cjs";
7
7
  interface UniversalTokensConfigAuto {
8
8
  avatar: ComponentSchema<typeof AvatarConfig>;
9
9
  badge: ComponentSchema<typeof BadgeConfig>;
10
+ bottomSheet: ComponentSchema<typeof BottomSheetConfig>;
10
11
  button: ComponentSchema<typeof ButtonConfig>;
11
12
  checkbox: ComponentSchema<typeof CheckboxConfig>;
12
13
  chip: ComponentSchema<typeof ChipConfig>;
@@ -17,6 +18,7 @@ interface UniversalTokensConfigAuto {
17
18
  menuContent: ComponentSchema<typeof MenuContentConfig>;
18
19
  menuItem: ComponentSchema<typeof MenuItemConfig>;
19
20
  radio: ComponentSchema<typeof RadioConfig>;
21
+ scrim: ComponentSchema<typeof ScrimConfig>;
20
22
  switch: ComponentSchema<typeof SwitchConfig>;
21
23
  toast: ComponentSchema<typeof ToastConfig>;
22
24
  tooltip: ComponentSchema<typeof TooltipConfig>;
@@ -1,5 +1,5 @@
1
1
 
2
- import { AvatarConfig, BadgeConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuContentConfig, MenuItemConfig, RadioConfig, SwitchConfig, ToastConfig, TooltipConfig } from "./generatedConfigs.js";
2
+ import { AvatarConfig, BadgeConfig, BottomSheetConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuContentConfig, MenuItemConfig, RadioConfig, ScrimConfig, SwitchConfig, ToastConfig, TooltipConfig } from "./generatedConfigs.js";
3
3
  import { ComponentSchema } from "../utils/buildConfigSchema.js";
4
4
 
5
5
  //#region ../automated-config/dist/generated/universalTokensConfigAuto.d.ts
@@ -7,6 +7,7 @@ import { ComponentSchema } from "../utils/buildConfigSchema.js";
7
7
  interface UniversalTokensConfigAuto {
8
8
  avatar: ComponentSchema<typeof AvatarConfig>;
9
9
  badge: ComponentSchema<typeof BadgeConfig>;
10
+ bottomSheet: ComponentSchema<typeof BottomSheetConfig>;
10
11
  button: ComponentSchema<typeof ButtonConfig>;
11
12
  checkbox: ComponentSchema<typeof CheckboxConfig>;
12
13
  chip: ComponentSchema<typeof ChipConfig>;
@@ -17,6 +18,7 @@ interface UniversalTokensConfigAuto {
17
18
  menuContent: ComponentSchema<typeof MenuContentConfig>;
18
19
  menuItem: ComponentSchema<typeof MenuItemConfig>;
19
20
  radio: ComponentSchema<typeof RadioConfig>;
21
+ scrim: ComponentSchema<typeof ScrimConfig>;
20
22
  switch: ComponentSchema<typeof SwitchConfig>;
21
23
  toast: ComponentSchema<typeof ToastConfig>;
22
24
  tooltip: ComponentSchema<typeof TooltipConfig>;
@@ -881,6 +881,70 @@ const defaultUniversalTokensConfigAuto = {
881
881
  }
882
882
  }
883
883
  },
884
+ bottomSheet: {
885
+ defaults: { variant: "default" },
886
+ variables: {
887
+ "variant/default/header": {
888
+ color: { rest: {
889
+ type: "foregroundPaletteColors",
890
+ value: "primary",
891
+ valueType: "alias"
892
+ } },
893
+ textVariant: { rest: {
894
+ type: "textVariants",
895
+ value: "headline1",
896
+ valueType: "alias"
897
+ } }
898
+ },
899
+ "variant/default/root": {
900
+ backgroundColor: { rest: {
901
+ type: "backgroundPaletteColors",
902
+ value: "primary",
903
+ valueType: "alias"
904
+ } },
905
+ borderColor: { rest: {
906
+ type: "linePaletteColors",
907
+ value: "primary",
908
+ valueType: "alias"
909
+ } },
910
+ borderRadius: { rest: {
911
+ type: "borderRadii",
912
+ value: "lg",
913
+ valueType: "alias"
914
+ } },
915
+ borderWidth: { rest: {
916
+ type: "borderWidths",
917
+ value: "thin",
918
+ valueType: "alias"
919
+ } },
920
+ bottomMargin: { rest: {
921
+ type: "spacingAliases",
922
+ value: "0",
923
+ valueType: "alias"
924
+ } },
925
+ horizontalMargin: { rest: {
926
+ type: "spacingAliases",
927
+ value: "0",
928
+ valueType: "alias"
929
+ } },
930
+ shadow: { rest: {
931
+ type: "elevationAliases",
932
+ value: "elevation-2",
933
+ valueType: "alias"
934
+ } },
935
+ spacingHorizontal: { rest: {
936
+ type: "spacingAliases",
937
+ value: "4",
938
+ valueType: "alias"
939
+ } },
940
+ spacingVertical: { rest: {
941
+ type: "spacingAliases",
942
+ value: "0",
943
+ valueType: "alias"
944
+ } }
945
+ }
946
+ }
947
+ },
884
948
  button: {
885
949
  defaults: {
886
950
  size: "md",
@@ -11897,6 +11961,26 @@ const defaultUniversalTokensConfigAuto = {
11897
11961
  } }
11898
11962
  }
11899
11963
  },
11964
+ scrim: {
11965
+ defaults: { variant: "default" },
11966
+ variables: { "variant/default/root": {
11967
+ backdropBlur: { rest: {
11968
+ type: "positiveIntegers",
11969
+ value: 0,
11970
+ valueType: "alias"
11971
+ } },
11972
+ backgroundColor: { rest: {
11973
+ type: "alwaysPaletteAliases",
11974
+ value: "always/black",
11975
+ valueType: "alias"
11976
+ } },
11977
+ opacity: { rest: {
11978
+ type: "opacitySteps",
11979
+ value: "20",
11980
+ valueType: "alias"
11981
+ } }
11982
+ } }
11983
+ },
11900
11984
  switch: {
11901
11985
  defaults: {
11902
11986
  size: "md",
@@ -1,20 +1,9 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  const require_index = require('../../css-tokens/dist/index.cjs');
3
- const require_assertUnreachable = require('./utils/assertUnreachable.cjs');
4
3
 
5
4
  //#region ../automated-config/dist/mapTextVariantFixtureToValue.js
6
5
  /*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */
7
- const mapTextVariantFixtureToValue = (key) => (selected, value) => {
8
- switch (key) {
9
- case "fontFamily": return `udsFontFamily[${require_index.textVariantsSafe(value)}]`;
10
- case "fontSize": return `udsFontSize[${require_index.textVariantsSafe(value)}]`;
11
- case "lineHeight": return `udsLineHeight[${require_index.textVariantsSafe(value)}]`;
12
- case "letterSpacing": return `udsLetterSpacing[${require_index.textVariantsSafe(value)}]`;
13
- case "textTransform": return `udsTextTransform[${require_index.textVariantsSafe(value)}]`;
14
- case "fontWeight": return `udsFontWeight[${require_index.textVariantsSafe(value)}]`;
15
- }
16
- return require_assertUnreachable.assertUnreachable(key);
17
- };
6
+ const mapTextVariantFixtureToValue = (key) => (selected, value) => `typography.${key}.${require_index.textVariantsSafe(value)}`;
18
7
 
19
8
  //#endregion
20
9
  exports.mapTextVariantFixtureToValue = mapTextVariantFixtureToValue;
@@ -1,20 +1,9 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  import { textVariantsSafe } from "../../css-tokens/dist/index.js";
3
- import { assertUnreachable } from "./utils/assertUnreachable.js";
4
3
 
5
4
  //#region ../automated-config/dist/mapTextVariantFixtureToValue.js
6
5
  /*! © 2026 Yahoo, Inc. UDS Default Config v0.0.0-development */
7
- const mapTextVariantFixtureToValue = (key) => (selected, value) => {
8
- switch (key) {
9
- case "fontFamily": return `udsFontFamily[${textVariantsSafe(value)}]`;
10
- case "fontSize": return `udsFontSize[${textVariantsSafe(value)}]`;
11
- case "lineHeight": return `udsLineHeight[${textVariantsSafe(value)}]`;
12
- case "letterSpacing": return `udsLetterSpacing[${textVariantsSafe(value)}]`;
13
- case "textTransform": return `udsTextTransform[${textVariantsSafe(value)}]`;
14
- case "fontWeight": return `udsFontWeight[${textVariantsSafe(value)}]`;
15
- }
16
- return assertUnreachable(key);
17
- };
6
+ const mapTextVariantFixtureToValue = (key) => (selected, value) => `typography.${key}.${textVariantsSafe(value)}`;
18
7
 
19
8
  //#endregion
20
9
  export { mapTextVariantFixtureToValue };
@@ -1,7 +1,7 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  const require_index = require('../../css-tokens/dist/index.cjs');
3
- const require_assertUnreachable = require('./utils/assertUnreachable.cjs');
4
3
  const require_mapTextVariantFixtureToValue = require('./mapTextVariantFixtureToValue.cjs');
4
+ const require_assertUnreachable = require('./utils/assertUnreachable.cjs');
5
5
  const require_mapColorFixtureToValue = require('./utils/mapColorFixtureToValue.cjs');
6
6
  const require_index$1 = require('../../motion-tokens/dist/index.cjs');
7
7
 
@@ -10,6 +10,11 @@ const require_index$1 = require('../../motion-tokens/dist/index.cjs');
10
10
  const isInputWrapperCtx = (context) => {
11
11
  return context.componentName === "input" && context.layer === "inputWrapper";
12
12
  };
13
+ const hexToRgb = (hex) => {
14
+ hex = hex.replace("#", "");
15
+ if (hex.length === 3) hex = hex.split("").map((char) => char + char).join("");
16
+ return `${parseInt(hex.substring(0, 2), 16)} ${parseInt(hex.substring(2, 4), 16)} ${parseInt(hex.substring(4, 6), 16)}`;
17
+ };
13
18
  const backgroundColor = {
14
19
  name: "backgroundColor",
15
20
  cssProperties: "background-color",
@@ -231,6 +236,18 @@ const spacingVertical = {
231
236
  twThemePath: (_, value) => `spacing[${value}]`,
232
237
  possibleFixtures: ["spacingAliases"]
233
238
  };
239
+ const horizontalMargin = {
240
+ name: "horizontalMargin",
241
+ cssProperties: ["margin-left", "margin-right"],
242
+ twThemePath: (_, value) => `spacing[${value}]`,
243
+ possibleFixtures: ["spacingAliases"]
244
+ };
245
+ const bottomMargin = {
246
+ name: "bottomMargin",
247
+ cssProperties: "margin-bottom",
248
+ twThemePath: (_, value) => `spacing[${value}]`,
249
+ possibleFixtures: ["spacingAliases"]
250
+ };
234
251
  const height = {
235
252
  name: "height",
236
253
  cssProperties: "height",
@@ -297,6 +314,17 @@ const insetShadow = {
297
314
  },
298
315
  possibleFixtures: ["shadowVariantsWithInvert"]
299
316
  };
317
+ const shadowVar = {
318
+ ...shadow,
319
+ name: "shadowVar",
320
+ cssProperties: `--${require_index.DROP_SHADOW_PREFIX}`
321
+ };
322
+ const opacity = {
323
+ name: "opacity",
324
+ cssProperties: "opacity",
325
+ twThemePath: (_, value) => `opacity[${value}]`,
326
+ possibleFixtures: ["opacitySteps"]
327
+ };
300
328
  const publicProperties = {
301
329
  backgroundColor,
302
330
  borderWidth,
@@ -335,12 +363,7 @@ const publicProperties = {
335
363
  letterSpacing,
336
364
  gap,
337
365
  color,
338
- opacity: {
339
- name: "opacity",
340
- cssProperties: "opacity",
341
- twThemePath: (_, value) => `opacity[${value}]`,
342
- possibleFixtures: ["opacitySteps"]
343
- },
366
+ opacity,
344
367
  fillOpacity: {
345
368
  name: "fillOpacity",
346
369
  cssProperties: "fill-opacity",
@@ -366,16 +389,14 @@ const publicProperties = {
366
389
  return String(schemaValue.value);
367
390
  }
368
391
  },
392
+ horizontalMargin,
393
+ bottomMargin,
369
394
  spacingHorizontal,
370
395
  spacingVertical,
371
396
  textVariant,
372
397
  textDecorationLine,
373
398
  shadow,
374
- shadowVar: {
375
- ...shadow,
376
- name: "shadowVar",
377
- cssProperties: `--${require_index.DROP_SHADOW_PREFIX}`
378
- },
399
+ shadowVar,
379
400
  insetShadow,
380
401
  height,
381
402
  width,
@@ -417,6 +438,31 @@ const publicProperties = {
417
438
  ...backgroundColor,
418
439
  name: "blurBackgroundColorFallback",
419
440
  cssProperties: `--${require_index.BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX}`
441
+ },
442
+ scrimBackgroundColor: {
443
+ name: "scrimBackgroundColor",
444
+ cssProperties: "--uds-scrim-background-color",
445
+ twThemePath: () => {
446
+ return ``;
447
+ },
448
+ possibleFixtures: [
449
+ "backgroundPaletteColors",
450
+ "spectrumColors",
451
+ "alwaysPaletteAliases"
452
+ ],
453
+ customValueRenderer: ({ value, type }, schema, theme) => {
454
+ const resolved = theme(require_mapColorFixtureToValue.mapColorFixtureToValue(type, value));
455
+ if (resolved.startsWith("#")) return hexToRgb(resolved) ?? resolved;
456
+ if (resolved.startsWith("rgb(") && resolved.endsWith(")")) return resolved.slice(4, -1);
457
+ return resolved;
458
+ }
459
+ },
460
+ scrimOpacity: {
461
+ ...opacity,
462
+ name: "scrimOpacity",
463
+ cssProperties: "--uds-scrim-opacity",
464
+ twThemePath: () => "",
465
+ customValueRenderer: ({ value }) => `${String(value)}%`
420
466
  }
421
467
  };
422
468
  const internalProperties = {
@@ -46,6 +46,8 @@ declare const publicProperties: {
46
46
  readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
47
47
  readonly spacing: ConfigurableProperty<"spacingAliases", unknown>;
48
48
  readonly iconVariant: ConfigurableProperty<"iconVariants", unknown>;
49
+ readonly horizontalMargin: ConfigurableProperty<"spacingAliases", unknown>;
50
+ readonly bottomMargin: ConfigurableProperty<"spacingAliases", unknown>;
49
51
  readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
50
52
  readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
51
53
  readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
@@ -59,6 +61,8 @@ declare const publicProperties: {
59
61
  readonly backdropBlur: ConfigurableProperty<"positiveIntegers", unknown>;
60
62
  readonly blurBackgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases", unknown>;
61
63
  readonly blurBackgroundColorFallback: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases", unknown>;
64
+ readonly scrimBackgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
65
+ readonly scrimOpacity: ConfigurableProperty<"opacitySteps", unknown>;
62
66
  };
63
67
  declare const configurableProperties: {
64
68
  outlineWidth: ConfigurableProperty<"borderWidths" | "spacingAliases", unknown>;
@@ -88,6 +92,8 @@ declare const configurableProperties: {
88
92
  iconSize: ConfigurableProperty<"iconSizes", unknown>;
89
93
  spacing: ConfigurableProperty<"spacingAliases", unknown>;
90
94
  iconVariant: ConfigurableProperty<"iconVariants", unknown>;
95
+ horizontalMargin: ConfigurableProperty<"spacingAliases", unknown>;
96
+ bottomMargin: ConfigurableProperty<"spacingAliases", unknown>;
91
97
  spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
92
98
  spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
93
99
  textVariant: ConfigurableProperty<"textVariants", unknown>;
@@ -101,6 +107,8 @@ declare const configurableProperties: {
101
107
  backdropBlur: ConfigurableProperty<"positiveIntegers", unknown>;
102
108
  blurBackgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases", unknown>;
103
109
  blurBackgroundColorFallback: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases", unknown>;
110
+ scrimBackgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
111
+ scrimOpacity: ConfigurableProperty<"opacitySteps", unknown>;
104
112
  };
105
113
  type ExtendablePropertiesName = keyof typeof configurableProperties;
106
114
  type ConfigurablePropertiesName = keyof typeof publicProperties;
@@ -46,6 +46,8 @@ declare const publicProperties: {
46
46
  readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
47
47
  readonly spacing: ConfigurableProperty<"spacingAliases", unknown>;
48
48
  readonly iconVariant: ConfigurableProperty<"iconVariants", unknown>;
49
+ readonly horizontalMargin: ConfigurableProperty<"spacingAliases", unknown>;
50
+ readonly bottomMargin: ConfigurableProperty<"spacingAliases", unknown>;
49
51
  readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
50
52
  readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
51
53
  readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
@@ -59,6 +61,8 @@ declare const publicProperties: {
59
61
  readonly backdropBlur: ConfigurableProperty<"positiveIntegers", unknown>;
60
62
  readonly blurBackgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases", unknown>;
61
63
  readonly blurBackgroundColorFallback: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases", unknown>;
64
+ readonly scrimBackgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
65
+ readonly scrimOpacity: ConfigurableProperty<"opacitySteps", unknown>;
62
66
  };
63
67
  declare const configurableProperties: {
64
68
  outlineWidth: ConfigurableProperty<"borderWidths" | "spacingAliases", unknown>;
@@ -88,6 +92,8 @@ declare const configurableProperties: {
88
92
  iconSize: ConfigurableProperty<"iconSizes", unknown>;
89
93
  spacing: ConfigurableProperty<"spacingAliases", unknown>;
90
94
  iconVariant: ConfigurableProperty<"iconVariants", unknown>;
95
+ horizontalMargin: ConfigurableProperty<"spacingAliases", unknown>;
96
+ bottomMargin: ConfigurableProperty<"spacingAliases", unknown>;
91
97
  spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
92
98
  spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
93
99
  textVariant: ConfigurableProperty<"textVariants", unknown>;
@@ -101,6 +107,8 @@ declare const configurableProperties: {
101
107
  backdropBlur: ConfigurableProperty<"positiveIntegers", unknown>;
102
108
  blurBackgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases", unknown>;
103
109
  blurBackgroundColorFallback: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases", unknown>;
110
+ scrimBackgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
111
+ scrimOpacity: ConfigurableProperty<"opacitySteps", unknown>;
104
112
  };
105
113
  type ExtendablePropertiesName = keyof typeof configurableProperties;
106
114
  type ConfigurablePropertiesName = keyof typeof publicProperties;
@@ -1,7 +1,7 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  import { BACKGROUND_BLUR_COLOR_PREFIX, BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX, BORDER_RADIUS_PREFIX, BUTTON_SCALE_EFFECT, DROP_SHADOW_PREFIX, getShadowLayerValue, textVariantsSafe } from "../../css-tokens/dist/index.js";
3
- import { assertUnreachable } from "./utils/assertUnreachable.js";
4
3
  import { mapTextVariantFixtureToValue } from "./mapTextVariantFixtureToValue.js";
4
+ import { assertUnreachable } from "./utils/assertUnreachable.js";
5
5
  import { mapColorFixtureToValue } from "./utils/mapColorFixtureToValue.js";
6
6
  import { SCALE_EFFECTS } from "../../motion-tokens/dist/index.js";
7
7
 
@@ -10,6 +10,11 @@ import { SCALE_EFFECTS } from "../../motion-tokens/dist/index.js";
10
10
  const isInputWrapperCtx = (context) => {
11
11
  return context.componentName === "input" && context.layer === "inputWrapper";
12
12
  };
13
+ const hexToRgb = (hex) => {
14
+ hex = hex.replace("#", "");
15
+ if (hex.length === 3) hex = hex.split("").map((char) => char + char).join("");
16
+ return `${parseInt(hex.substring(0, 2), 16)} ${parseInt(hex.substring(2, 4), 16)} ${parseInt(hex.substring(4, 6), 16)}`;
17
+ };
13
18
  const backgroundColor = {
14
19
  name: "backgroundColor",
15
20
  cssProperties: "background-color",
@@ -231,6 +236,18 @@ const spacingVertical = {
231
236
  twThemePath: (_, value) => `spacing[${value}]`,
232
237
  possibleFixtures: ["spacingAliases"]
233
238
  };
239
+ const horizontalMargin = {
240
+ name: "horizontalMargin",
241
+ cssProperties: ["margin-left", "margin-right"],
242
+ twThemePath: (_, value) => `spacing[${value}]`,
243
+ possibleFixtures: ["spacingAliases"]
244
+ };
245
+ const bottomMargin = {
246
+ name: "bottomMargin",
247
+ cssProperties: "margin-bottom",
248
+ twThemePath: (_, value) => `spacing[${value}]`,
249
+ possibleFixtures: ["spacingAliases"]
250
+ };
234
251
  const height = {
235
252
  name: "height",
236
253
  cssProperties: "height",
@@ -297,6 +314,17 @@ const insetShadow = {
297
314
  },
298
315
  possibleFixtures: ["shadowVariantsWithInvert"]
299
316
  };
317
+ const shadowVar = {
318
+ ...shadow,
319
+ name: "shadowVar",
320
+ cssProperties: `--${DROP_SHADOW_PREFIX}`
321
+ };
322
+ const opacity = {
323
+ name: "opacity",
324
+ cssProperties: "opacity",
325
+ twThemePath: (_, value) => `opacity[${value}]`,
326
+ possibleFixtures: ["opacitySteps"]
327
+ };
300
328
  const publicProperties = {
301
329
  backgroundColor,
302
330
  borderWidth,
@@ -335,12 +363,7 @@ const publicProperties = {
335
363
  letterSpacing,
336
364
  gap,
337
365
  color,
338
- opacity: {
339
- name: "opacity",
340
- cssProperties: "opacity",
341
- twThemePath: (_, value) => `opacity[${value}]`,
342
- possibleFixtures: ["opacitySteps"]
343
- },
366
+ opacity,
344
367
  fillOpacity: {
345
368
  name: "fillOpacity",
346
369
  cssProperties: "fill-opacity",
@@ -366,16 +389,14 @@ const publicProperties = {
366
389
  return String(schemaValue.value);
367
390
  }
368
391
  },
392
+ horizontalMargin,
393
+ bottomMargin,
369
394
  spacingHorizontal,
370
395
  spacingVertical,
371
396
  textVariant,
372
397
  textDecorationLine,
373
398
  shadow,
374
- shadowVar: {
375
- ...shadow,
376
- name: "shadowVar",
377
- cssProperties: `--${DROP_SHADOW_PREFIX}`
378
- },
399
+ shadowVar,
379
400
  insetShadow,
380
401
  height,
381
402
  width,
@@ -417,6 +438,31 @@ const publicProperties = {
417
438
  ...backgroundColor,
418
439
  name: "blurBackgroundColorFallback",
419
440
  cssProperties: `--${BACKGROUND_BLUR_FALLBACK_COLOR_PREFIX}`
441
+ },
442
+ scrimBackgroundColor: {
443
+ name: "scrimBackgroundColor",
444
+ cssProperties: "--uds-scrim-background-color",
445
+ twThemePath: () => {
446
+ return ``;
447
+ },
448
+ possibleFixtures: [
449
+ "backgroundPaletteColors",
450
+ "spectrumColors",
451
+ "alwaysPaletteAliases"
452
+ ],
453
+ customValueRenderer: ({ value, type }, schema, theme) => {
454
+ const resolved = theme(mapColorFixtureToValue(type, value));
455
+ if (resolved.startsWith("#")) return hexToRgb(resolved) ?? resolved;
456
+ if (resolved.startsWith("rgb(") && resolved.endsWith(")")) return resolved.slice(4, -1);
457
+ return resolved;
458
+ }
459
+ },
460
+ scrimOpacity: {
461
+ ...opacity,
462
+ name: "scrimOpacity",
463
+ cssProperties: "--uds-scrim-opacity",
464
+ twThemePath: () => "",
465
+ customValueRenderer: ({ value }) => `${String(value)}%`
420
466
  }
421
467
  };
422
468
  const internalProperties = {
@@ -11,8 +11,8 @@ import { SelectedConfigurableProperty } from "../properties.cjs";
11
11
  * @returns A Record of layer names to their properties, or null if no properties are found
12
12
  */
13
13
  declare function getConfigVariantProperties(variant?: VariantConfig): {
14
- [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[], readonly (readonly unknown[])[]>>>;
15
- root: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[], readonly (readonly unknown[])[]>>>;
14
+ [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
15
+ root: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
16
16
  } | null; //#endregion
17
17
  //#endregion
18
18
  export { getConfigVariantProperties };
@@ -11,8 +11,8 @@ import { SelectedConfigurableProperty } from "../properties.js";
11
11
  * @returns A Record of layer names to their properties, or null if no properties are found
12
12
  */
13
13
  declare function getConfigVariantProperties(variant?: VariantConfig): {
14
- [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[], readonly (readonly unknown[])[]>>>;
15
- root: Readonly<Record<string, SelectedConfigurableProperty<"textTransform" | "fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "letterSpacing" | "backgroundColor" | "borderWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontVariationSettings" | "gap" | "color" | "opacity" | "fillOpacity" | "iconSize" | "spacing" | "iconVariant" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[], readonly (readonly unknown[])[]>>>;
14
+ [x: string]: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
15
+ root: Readonly<Record<string, SelectedConfigurableProperty<"backgroundColor" | "borderWidth" | "strokeWidth" | "borderRadius" | "borderRadiusVar" | "borderColor" | "stroke" | "buttonSize" | "buttonVariant" | "fontFamily" | "fontSize" | "fontVariationSettings" | "lineHeight" | "textTransform" | "letterSpacing" | "gap" | "color" | "opacity" | "fillOpacity" | "fontWeight" | "iconSize" | "spacing" | "iconVariant" | "horizontalMargin" | "bottomMargin" | "spacingHorizontal" | "spacingVertical" | "textVariant" | "textDecorationLine" | "shadow" | "shadowVar" | "insetShadow" | "height" | "width" | "scaleEffect" | "backdropBlur" | "blurBackgroundColor" | "blurBackgroundColorFallback" | "scrimBackgroundColor" | "scrimOpacity", string, readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases" | "elevationAliases")[] | readonly ("elevationAliases" | "borderWidths" | "spacingAliases")[] | readonly "borderRadii"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "elevationAliases" | "linePaletteColors")[] | readonly "buttonSizes"[] | readonly "buttonVariantsFlat"[] | readonly "textVariants"[] | readonly "spacingAliases"[] | readonly ("spectrumColors" | "alwaysPaletteAliases" | "foregroundPaletteColors")[] | readonly "opacitySteps"[] | readonly "iconSizes"[] | readonly "iconVariants"[] | readonly "textDecorationLines"[] | readonly ("elevationAliases" | "shadowVariants" | "shadowVariantConfig")[] | readonly ("shadowVariantConfig" | "shadowVariantsWithInvert")[] | readonly "scaleEffects"[] | readonly "positiveIntegers"[] | readonly ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[], readonly (readonly unknown[])[]>>>;
16
16
  } | null; //#endregion
17
17
  //#endregion
18
18
  export { getConfigVariantProperties };