@yahoo/uds 2.9.0 → 2.10.0-beta.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 (115) hide show
  1. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  2. package/cli/bin/uds-linux-arm64 +0 -0
  3. package/cli/bin/uds-linux-x64-baseline +0 -0
  4. package/cli/cli.ts +1 -1
  5. package/cli/codemods/addCommentAboveComponents.ts +1 -1
  6. package/cli/codemods/flattenButtonVariant.ts +143 -0
  7. package/cli/codemods/propsToClass.ts +5 -0
  8. package/cli/codemods/remapProps.ts +8 -1
  9. package/cli/codemods/utils/getProject.ts +5 -0
  10. package/cli/codemods/utils/index.ts +1 -1
  11. package/cli/commands/codemod/flattenButtonVariant.ts +16 -0
  12. package/cli/tailwindcss.d.ts +2 -0
  13. package/cli/tsconfig.json +30 -8
  14. package/cli/utils/configWorker.ts +2 -2
  15. package/cli/utils/purgeCSS.ts +13 -3
  16. package/cli/utils/setupConfigWorker.ts +2 -1
  17. package/cli/utils/sortKeys.ts +5 -0
  18. package/dist/{Text-UCDorZDD.d.cts → Text-DC5H-ljU.d.cts} +29 -68
  19. package/dist/{Text-UCDorZDD.d.ts → Text-DC5H-ljU.d.ts} +29 -68
  20. package/dist/VStack-dsjTgotn.d.ts +145 -0
  21. package/dist/VStack-lZcVQtuR.d.cts +145 -0
  22. package/dist/analytics/server.js +1 -1
  23. package/dist/chunk-3R4CMTF2.js +2 -0
  24. package/dist/chunk-COT7GQ26.js +2 -0
  25. package/dist/chunk-DIZ6AEFQ.cjs +3 -0
  26. package/dist/chunk-GWUSJOIP.js +2 -0
  27. package/dist/chunk-GXWRHF26.cjs +1 -0
  28. package/dist/chunk-H35WDIEH.cjs +1 -0
  29. package/dist/chunk-IGRY2O2E.js +2 -0
  30. package/dist/chunk-IQXT3UML.cjs +2 -0
  31. package/dist/chunk-PLVCO2Q2.cjs +1 -0
  32. package/dist/chunk-RCTE4OK2.cjs +1 -0
  33. package/dist/chunk-ROCVTVD4.js +2 -0
  34. package/dist/chunk-SWTZ62RF.js +3 -0
  35. package/dist/chunk-TYCIDVTR.js +2 -0
  36. package/dist/chunk-UWAIMWW7.cjs +1 -0
  37. package/dist/client/index.cjs +2 -2
  38. package/dist/client/index.d.cts +917 -25
  39. package/dist/client/index.d.ts +917 -25
  40. package/dist/client/index.js +3 -3
  41. package/dist/experimental/client/index.cjs +2 -2
  42. package/dist/experimental/client/index.d.cts +14 -49
  43. package/dist/experimental/client/index.d.ts +14 -49
  44. package/dist/experimental/client/index.js +2 -2
  45. package/dist/experimental/index.cjs +2 -2
  46. package/dist/experimental/index.d.cts +4 -55
  47. package/dist/experimental/index.d.ts +4 -55
  48. package/dist/experimental/index.js +1 -1
  49. package/dist/fixtures.cjs +1545 -58
  50. package/dist/fixtures.d.cts +33 -14
  51. package/dist/fixtures.d.ts +33 -14
  52. package/dist/fixtures.js +1518 -52
  53. package/dist/flags.cjs +1 -1
  54. package/dist/flags.js +1 -1
  55. package/dist/index-B1ZHRmSN.d.ts +202 -0
  56. package/dist/index-By9VJ9yq.d.cts +202 -0
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.d.cts +245 -128
  59. package/dist/index.d.ts +245 -128
  60. package/dist/index.js +1 -1
  61. package/dist/metafile-cjs.json +1 -1
  62. package/dist/metafile-esm.json +1 -1
  63. package/dist/tailwind/plugin.cjs +1 -2
  64. package/dist/tailwind/plugin.d.cts +14 -5
  65. package/dist/tailwind/plugin.d.ts +14 -5
  66. package/dist/tailwind/plugin.js +2 -2
  67. package/dist/tailwind/purger.cjs +2 -2
  68. package/dist/tailwind/purger.js +3 -3
  69. package/dist/tailwind/tsMorph.cjs +1 -1
  70. package/dist/tailwind/tsMorph.js +1 -1
  71. package/dist/tailwind/utils.cjs +1 -1
  72. package/dist/tailwind/utils.d.cts +80 -28
  73. package/dist/tailwind/utils.d.ts +80 -28
  74. package/dist/tailwind/utils.js +1 -1
  75. package/dist/tokens/automation/configs.cjs +1 -0
  76. package/dist/tokens/automation/configs.d.cts +110 -0
  77. package/dist/tokens/automation/configs.d.ts +110 -0
  78. package/dist/tokens/automation/configs.js +1 -0
  79. package/dist/tokens/automation/properties.cjs +1 -0
  80. package/dist/tokens/automation/properties.d.cts +7 -0
  81. package/dist/tokens/automation/properties.d.ts +7 -0
  82. package/dist/tokens/automation/properties.js +1 -0
  83. package/dist/tokens/index.cjs +1 -1
  84. package/dist/tokens/index.d.cts +9355 -15
  85. package/dist/tokens/index.d.ts +9355 -15
  86. package/dist/tokens/index.js +1 -1
  87. package/dist/tokens/parseTokens.cjs +1 -1
  88. package/dist/tokens/parseTokens.d.cts +7 -23
  89. package/dist/tokens/parseTokens.d.ts +7 -23
  90. package/dist/tokens/parseTokens.js +1 -1
  91. package/dist/types-oxQ-ciqn.d.cts +10237 -0
  92. package/dist/types-oxQ-ciqn.d.ts +10237 -0
  93. package/package.json +18 -4
  94. package/dist/chunk-3G7IRLGN.js +0 -2
  95. package/dist/chunk-5WBROFT5.cjs +0 -1
  96. package/dist/chunk-6453EQCC.cjs +0 -1
  97. package/dist/chunk-7QHJ6LHA.js +0 -1
  98. package/dist/chunk-EYFQOFYW.cjs +0 -1
  99. package/dist/chunk-FWF2C6TL.cjs +0 -1
  100. package/dist/chunk-FYVGDNGL.js +0 -2
  101. package/dist/chunk-GIJ2FHY5.cjs +0 -1
  102. package/dist/chunk-GL5JI7EX.cjs +0 -2
  103. package/dist/chunk-MOUM7BAW.js +0 -2
  104. package/dist/chunk-PE2P7J44.js +0 -2
  105. package/dist/chunk-RXSJCGB3.cjs +0 -1
  106. package/dist/chunk-SUASN3GG.js +0 -2
  107. package/dist/chunk-U2K4DT7E.js +0 -3
  108. package/dist/chunk-VPR62GYQ.js +0 -2
  109. package/dist/chunk-WJ55DEUW.cjs +0 -2
  110. package/dist/chunk-X6F5UEQ5.js +0 -2
  111. package/dist/chunk-XZCEFUNX.cjs +0 -2
  112. package/dist/types-sNL75NRe.d.cts +0 -989
  113. package/dist/types-sNL75NRe.d.ts +0 -989
  114. /package/dist/{motionFeatures-PRT45UQH.js → motionFeatures-25DAPVNO.js} +0 -0
  115. /package/dist/{motionFeatures-HQUM526D.cjs → motionFeatures-II2BNXF5.cjs} +0 -0
@@ -1 +1 @@
1
- export{DEFAULT_COLOR_MODE,DEFAULT_COLOR_MODE_FOR_APP,DEFAULT_HIGH_CONTRAST_MODE,DEFAULT_REGION_MODE,DEFAULT_SCALE_MODE,DEFAULT_SCALE_MODE_FOR_APP,FONT_DECLARATIONS_MAP,alwaysPalette,button,defaultTokensConfig,fromEntries,generateConfigCombinations,getDefaultButtonBaseMap}from"../chunk-U2K4DT7E.js";export{variants}from"../chunk-3G7IRLGN.js";export{entries,fontWeightMap,mapValues}from"../chunk-SUASN3GG.js";export{AVATAR_SIZE_PREFIX,BORDER_RADIUS_PREFIX,BORDER_WIDTH_PREFIX,BUTTON_CSS_VAR_MAP,DARK_COLOR_MODE_CLASSNAME,DEFAULT_COLOR_MODE_CLASSNAME,DEFAULT_SCALE_MODE_CLASSNAME,FONT_FAMILY_PREFIX,FONT_SIZE_PREFIX,FONT_WEIGHT_PREFIX,ICON_BUTTON_CSS_VAR_MAP,ICON_SIZE_PREFIX,LARGE_SCALE_MODE_CLASSNAME,LIGHT_COLOR_MODE_CLASSNAME,LINE_HEIGHT_PREFIX,MEDIUM_SCALE_MODE_CLASSNAME,MOTION_PREFIX,PSEUDO_STYLE_SELECTOR_MAP,SMALL_SCALE_MODE_CLASSNAME,SPECTRUM_COLOR_PREFIX,TEXT_TRANSFORM_PREFIX,UDS_PREFIX,XLARGE_SCALE_MODE_CLASSNAME,XSMALL_SCALE_MODE_CLASSNAME,XXLARGE_SCALE_MODE_CLASSNAME,XXXLARGE_SCALE_MODE_CLASSNAME}from"../chunk-PE2P7J44.js";
1
+ export{DEFAULT_COLOR_MODE,DEFAULT_COLOR_MODE_FOR_APP,DEFAULT_HIGH_CONTRAST_MODE,DEFAULT_REGION_MODE,DEFAULT_SCALE_MODE,DEFAULT_SCALE_MODE_FOR_APP,FONT_DECLARATIONS_MAP,alwaysPalette,button,cartesianProduct,coalesceConfigVariant,configurableProperties,createComponentStateConfig,createComponentStates,createConfigurableProperty,createLayerConfig,createSubComponentConfig,createVariantConfig,createVariantConfigWithComponentStates,createVariantConfigWithProperties,defaultTokensConfig,defaultUniversalTokensConfigAuto,findFixtureType,fontWeightMap,fromEntries,generateClassName,generateDeclaration,generateKeyFromFlatConfigPath,generateSchemaKey,generateStyles,getConfigDefaultValue,getConfigPseudoStateVariables,getConfigPseudoStateVariablesWithSetter,getConfigSubcomponents,getConfigVariantComponentStates,getConfigVariantComponentStatesMatrix,getConfigVariantProperties,getConfigVariantPseudoStates,getConfigVariants,getDefaultButtonBaseMap,isConfigDefaultValue,parseButtonVariantFlat,parseDeprecatedButtonPaletteVariant,setConfigPseudoStateVariable,shadow,statePseudoMapDocsMode,toMinimalDbConfigObject}from"../chunk-SWTZ62RF.js";export{variants}from"../chunk-COT7GQ26.js";export{entries,mapValues}from"../chunk-3R4CMTF2.js";export{AVATAR_SIZE_PREFIX,BORDER_RADIUS_PREFIX,BORDER_WIDTH_PREFIX,BUTTON_CSS_VAR_MAP,DARK_COLOR_MODE_CLASSNAME,DEFAULT_COLOR_MODE_CLASSNAME,DEFAULT_SCALE_MODE_CLASSNAME,FONT_FAMILY_PREFIX,FONT_SIZE_PREFIX,FONT_SLANT_PREFIX,FONT_WEIGHT_PREFIX,FONT_WIDTH_PREFIX,ICON_BUTTON_CSS_VAR_MAP,ICON_SIZE_PREFIX,LARGE_SCALE_MODE_CLASSNAME,LIGHT_COLOR_MODE_CLASSNAME,LINE_HEIGHT_PREFIX,MEDIUM_SCALE_MODE_CLASSNAME,MOTION_PREFIX,PSEUDO_STYLE_SELECTOR_MAP,SMALL_SCALE_MODE_CLASSNAME,SPECTRUM_COLOR_PREFIX,TEXT_TRANSFORM_PREFIX,UDS_PREFIX,XLARGE_SCALE_MODE_CLASSNAME,XSMALL_SCALE_MODE_CLASSNAME,XXLARGE_SCALE_MODE_CLASSNAME,XXXLARGE_SCALE_MODE_CLASSNAME}from"../chunk-ROCVTVD4.js";
@@ -1 +1 @@
1
- "use strict";var e=require("../chunk-FWF2C6TL.cjs");Object.defineProperty(exports,"parseTokens",{enumerable:!0,get:function(){return e.parseTokens}});
1
+ "use strict";var e=require("../chunk-RCTE4OK2.cjs");Object.defineProperty(exports,"parseTokens",{enumerable:!0,get:function(){return e.parseTokens}});
@@ -1,7 +1,8 @@
1
- import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig, F as FontWeightConfig, d as FontWeightNumeric } from '../types-sNL75NRe.cjs';
1
+ import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig } from '../types-oxQ-ciqn.cjs';
2
2
  import '@yahoo/uds-icons/types';
3
3
  import 'motion/react';
4
4
  import 'react';
5
+ import 'type-fest';
5
6
 
6
7
  declare function transformColors(colors: ColorsConfig): {
7
8
  _vars: Record<string, string>;
@@ -11,31 +12,12 @@ declare function transformColors(colors: ColorsConfig): {
11
12
  palette: { [key in PaletteType]: Record<keyof PaletteConfig[key], string>; };
12
13
  };
13
14
  };
14
- declare function transformFontWeight(config: FontWeightConfig): {
15
- _vars: Record<string, string>;
16
- _raw: FontWeightConfig;
17
- tailwindConfig: {
18
- thin: FontWeightNumeric;
19
- extralight: FontWeightNumeric;
20
- light: FontWeightNumeric;
21
- regular: FontWeightNumeric;
22
- medium: FontWeightNumeric;
23
- semibold: FontWeightNumeric;
24
- bold: FontWeightNumeric;
25
- extrabold: FontWeightNumeric;
26
- black: FontWeightNumeric;
27
- };
28
- };
29
- declare function transformString<T extends Record<string, string>>(prefix: string, config: T, transformValue?: (value: T[keyof T]) => string): {
15
+ declare function transformNumeric<T extends Record<string, number>>(prefix: string, config: T): {
30
16
  _vars: Record<string, string>;
31
17
  _raw: T;
32
18
  tailwindConfig: Record<string, string>;
33
19
  };
34
- declare function transformNumeric<T extends Record<string, number>>(prefix: string, config: T): {
35
- _vars: {};
36
- _raw: {};
37
- tailwindConfig: {};
38
- } | {
20
+ declare function transformString<T extends Record<string, string>>(prefix: string, config: T, transformValue?: (value: T[keyof T]) => string): {
39
21
  _vars: Record<string, string>;
40
22
  _raw: T;
41
23
  tailwindConfig: Record<string, string>;
@@ -45,7 +27,9 @@ type WebTokens = Omit<UniversalTokensConfig, 'colorMode' | 'scaleMode' | 'fontFa
45
27
  scaleMode: Record<ScaleMode, {
46
28
  fontFamily: ReturnType<typeof transformString>;
47
29
  fontSize: ReturnType<typeof transformNumeric>;
48
- fontWeight: ReturnType<typeof transformFontWeight>;
30
+ fontWeight: ReturnType<typeof transformNumeric>;
31
+ fontSlant: ReturnType<typeof transformNumeric>;
32
+ fontWidth: ReturnType<typeof transformNumeric>;
49
33
  lineHeight: ReturnType<typeof transformNumeric>;
50
34
  textTransform: ReturnType<typeof transformString>;
51
35
  borderRadius: ReturnType<typeof transformNumeric>;
@@ -1,7 +1,8 @@
1
- import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig, F as FontWeightConfig, d as FontWeightNumeric } from '../types-sNL75NRe.js';
1
+ import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig } from '../types-oxQ-ciqn.js';
2
2
  import '@yahoo/uds-icons/types';
3
3
  import 'motion/react';
4
4
  import 'react';
5
+ import 'type-fest';
5
6
 
6
7
  declare function transformColors(colors: ColorsConfig): {
7
8
  _vars: Record<string, string>;
@@ -11,31 +12,12 @@ declare function transformColors(colors: ColorsConfig): {
11
12
  palette: { [key in PaletteType]: Record<keyof PaletteConfig[key], string>; };
12
13
  };
13
14
  };
14
- declare function transformFontWeight(config: FontWeightConfig): {
15
- _vars: Record<string, string>;
16
- _raw: FontWeightConfig;
17
- tailwindConfig: {
18
- thin: FontWeightNumeric;
19
- extralight: FontWeightNumeric;
20
- light: FontWeightNumeric;
21
- regular: FontWeightNumeric;
22
- medium: FontWeightNumeric;
23
- semibold: FontWeightNumeric;
24
- bold: FontWeightNumeric;
25
- extrabold: FontWeightNumeric;
26
- black: FontWeightNumeric;
27
- };
28
- };
29
- declare function transformString<T extends Record<string, string>>(prefix: string, config: T, transformValue?: (value: T[keyof T]) => string): {
15
+ declare function transformNumeric<T extends Record<string, number>>(prefix: string, config: T): {
30
16
  _vars: Record<string, string>;
31
17
  _raw: T;
32
18
  tailwindConfig: Record<string, string>;
33
19
  };
34
- declare function transformNumeric<T extends Record<string, number>>(prefix: string, config: T): {
35
- _vars: {};
36
- _raw: {};
37
- tailwindConfig: {};
38
- } | {
20
+ declare function transformString<T extends Record<string, string>>(prefix: string, config: T, transformValue?: (value: T[keyof T]) => string): {
39
21
  _vars: Record<string, string>;
40
22
  _raw: T;
41
23
  tailwindConfig: Record<string, string>;
@@ -45,7 +27,9 @@ type WebTokens = Omit<UniversalTokensConfig, 'colorMode' | 'scaleMode' | 'fontFa
45
27
  scaleMode: Record<ScaleMode, {
46
28
  fontFamily: ReturnType<typeof transformString>;
47
29
  fontSize: ReturnType<typeof transformNumeric>;
48
- fontWeight: ReturnType<typeof transformFontWeight>;
30
+ fontWeight: ReturnType<typeof transformNumeric>;
31
+ fontSlant: ReturnType<typeof transformNumeric>;
32
+ fontWidth: ReturnType<typeof transformNumeric>;
49
33
  lineHeight: ReturnType<typeof transformNumeric>;
50
34
  textTransform: ReturnType<typeof transformString>;
51
35
  borderRadius: ReturnType<typeof transformNumeric>;
@@ -1 +1 @@
1
- export{parseTokens}from"../chunk-X6F5UEQ5.js";
1
+ export{parseTokens}from"../chunk-GWUSJOIP.js";