@yahoo/uds 2.0.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. package/cli/README.md +50 -0
  2. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  3. package/cli/bin/uds-linux-arm64 +0 -0
  4. package/cli/bin/uds-linux-x64-baseline +0 -0
  5. package/cli/cli.ts +21 -4
  6. package/cli/commands/codemod/codemod.ts +12 -9
  7. package/cli/commands/codemod/sizingProps.ts +1 -1
  8. package/cli/commands/login.ts +30 -0
  9. package/cli/commands/logout.ts +27 -0
  10. package/cli/commands/purge.ts +3 -1
  11. package/cli/commands/sync.ts +2 -0
  12. package/cli/commands/uds.ts +6 -1
  13. package/cli/commands/version.ts +2 -0
  14. package/cli/compile.ts +8 -9
  15. package/cli/consts.ts +5 -1
  16. package/cli/env.d.ts +5 -0
  17. package/cli/exec.ts +1 -1
  18. package/cli/preload.ts +17 -0
  19. package/cli/tsconfig.json +4 -4
  20. package/cli/uds-cli +6 -2
  21. package/cli/utils/analytics.ts +26 -0
  22. package/cli/utils/auth.ts +338 -0
  23. package/cli/utils/client_secrets.json +23 -0
  24. package/cli/utils/client_secrets.json.enc +0 -0
  25. package/cli/utils/configWorker.ts +3 -2
  26. package/cli/utils/getDirChoices.ts +0 -1
  27. package/cli/utils/secrets.ts +40 -0
  28. package/dist/analytics/server.cjs +1 -0
  29. package/dist/analytics/server.d.cts +1 -0
  30. package/dist/analytics/server.d.ts +1 -0
  31. package/dist/analytics/server.js +1 -0
  32. package/dist/chunk-3PK6DOFO.js +3 -0
  33. package/dist/chunk-5WBROFT5.cjs +1 -0
  34. package/dist/chunk-DCXVARRB.cjs +1 -0
  35. package/dist/chunk-DMMTEAJW.cjs +2 -0
  36. package/dist/chunk-EYFQOFYW.cjs +1 -0
  37. package/dist/chunk-FWF2C6TL.cjs +1 -0
  38. package/dist/chunk-GIJ2FHY5.cjs +1 -0
  39. package/dist/chunk-IUL5ZI4O.js +2 -0
  40. package/dist/chunk-JGIKFUBH.cjs +2 -0
  41. package/dist/chunk-P5B5IOMM.js +2 -0
  42. package/dist/chunk-PE2P7J44.js +2 -0
  43. package/dist/chunk-PFT3UA6K.cjs +2 -0
  44. package/dist/chunk-SUASN3GG.js +2 -0
  45. package/dist/chunk-VPR62GYQ.js +2 -0
  46. package/dist/chunk-X6F5UEQ5.js +2 -0
  47. package/dist/chunk-YM5TKITI.js +2 -0
  48. package/dist/chunk-YUHY3FXT.cjs +1 -0
  49. package/dist/chunk-ZV62SW5G.js +1 -0
  50. package/dist/client/index.cjs +3 -0
  51. package/dist/client/index.d.cts +97 -0
  52. package/dist/client/index.d.ts +97 -0
  53. package/dist/client/index.js +4 -0
  54. package/dist/experimental/index.cjs +2 -0
  55. package/dist/experimental/index.d.cts +469 -0
  56. package/dist/experimental/index.d.ts +469 -0
  57. package/dist/experimental/index.js +2 -0
  58. package/dist/fixtures.cjs +1506 -0
  59. package/dist/fixtures.d.cts +94 -0
  60. package/dist/fixtures.d.ts +94 -0
  61. package/dist/fixtures.js +1449 -0
  62. package/dist/flags.cjs +1 -0
  63. package/dist/flags.d.cts +17 -0
  64. package/dist/flags.d.ts +17 -0
  65. package/dist/flags.js +2 -0
  66. package/dist/index.cjs +1 -0
  67. package/dist/index.d.cts +385 -0
  68. package/dist/index.d.ts +385 -0
  69. package/dist/index.js +1 -0
  70. package/dist/metafile-cjs.json +1 -0
  71. package/dist/metafile-esm.json +1 -0
  72. package/dist/motionFeatures-I76FFCTS.js +1 -0
  73. package/dist/motionFeatures-P3FQL2KP.cjs +1 -0
  74. package/dist/styles/toast.css +1 -0
  75. package/dist/styles/toast.d.cts +2 -0
  76. package/dist/styles/toast.d.ts +2 -0
  77. package/dist/tailwind/plugin.cjs +2 -0
  78. package/dist/tailwind/plugin.d.cts +60 -0
  79. package/dist/tailwind/plugin.d.ts +60 -0
  80. package/dist/tailwind/plugin.js +2 -0
  81. package/dist/tailwind/purger.cjs +5 -0
  82. package/dist/tailwind/purger.d.cts +17 -0
  83. package/dist/tailwind/purger.d.ts +17 -0
  84. package/dist/tailwind/purger.js +6 -0
  85. package/dist/tailwind/tsMorph.cjs +1 -0
  86. package/dist/tailwind/tsMorph.d.cts +31 -0
  87. package/dist/tailwind/tsMorph.d.ts +31 -0
  88. package/dist/tailwind/tsMorph.js +1 -0
  89. package/dist/tailwind/utils.cjs +1 -0
  90. package/dist/tailwind/utils.d.cts +99 -0
  91. package/dist/tailwind/utils.d.ts +99 -0
  92. package/dist/tailwind/utils.js +1 -0
  93. package/dist/tokens/index.cjs +1 -0
  94. package/dist/tokens/index.d.cts +1127 -0
  95. package/dist/tokens/index.d.ts +1127 -0
  96. package/dist/tokens/index.js +1 -0
  97. package/dist/tokens/parseTokens.cjs +1 -0
  98. package/dist/tokens/parseTokens.d.cts +59 -0
  99. package/dist/tokens/parseTokens.d.ts +59 -0
  100. package/dist/tokens/parseTokens.js +1 -0
  101. package/dist/types-Pyccco5Q.d.cts +949 -0
  102. package/dist/types-Pyccco5Q.d.ts +949 -0
  103. package/fonts/mobile.cjs +1 -1
  104. package/package.json +49 -22
  105. package/cli/codemods/propsToClass.test.tsx +0 -97
  106. package/cli/utils/purgeCSS.test.ts +0 -210
@@ -0,0 +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-3PK6DOFO.js";export{variants}from"../chunk-IUL5ZI4O.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";
@@ -0,0 +1 @@
1
+ "use strict";var e=require("../chunk-FWF2C6TL.cjs");Object.defineProperty(exports,"parseTokens",{enumerable:!0,get:function(){return e.parseTokens}});
@@ -0,0 +1,59 @@
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-Pyccco5Q.cjs';
2
+ import '@yahoo/uds-icons/types';
3
+ import 'framer-motion';
4
+ import 'react';
5
+
6
+ declare function transformColors(colors: ColorsConfig): {
7
+ _vars: Record<string, string>;
8
+ _raw: ColorsConfig;
9
+ tailwindConfig: {
10
+ spectrum: Record<Hue, Record<HueStep, string>>;
11
+ palette: { [key in PaletteType]: Record<keyof PaletteConfig[key], string>; };
12
+ };
13
+ };
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): {
30
+ _vars: Record<string, string>;
31
+ _raw: T;
32
+ tailwindConfig: Record<string, string>;
33
+ };
34
+ declare function transformNumeric<T extends Record<string, number>>(prefix: string, config: T): {
35
+ _vars: {};
36
+ _raw: {};
37
+ tailwindConfig: {};
38
+ } | {
39
+ _vars: Record<string, string>;
40
+ _raw: T;
41
+ tailwindConfig: Record<string, string>;
42
+ };
43
+ type WebTokens = Omit<UniversalTokensConfig, 'colorMode' | 'scaleMode' | 'fontFamily'> & {
44
+ colorMode: Record<ColorMode, ReturnType<typeof transformColors>>;
45
+ scaleMode: Record<ScaleMode, {
46
+ fontFamily: ReturnType<typeof transformString>;
47
+ fontSize: ReturnType<typeof transformNumeric>;
48
+ fontWeight: ReturnType<typeof transformFontWeight>;
49
+ lineHeight: ReturnType<typeof transformNumeric>;
50
+ textTransform: ReturnType<typeof transformString>;
51
+ borderRadius: ReturnType<typeof transformNumeric>;
52
+ borderWidth: ReturnType<typeof transformNumeric>;
53
+ avatarSizes: ReturnType<typeof transformNumeric>;
54
+ iconSizes: ReturnType<typeof transformNumeric>;
55
+ }>;
56
+ };
57
+ declare function parseTokens(config: UniversalTokensConfig): WebTokens;
58
+
59
+ export { type WebTokens, parseTokens };
@@ -0,0 +1,59 @@
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-Pyccco5Q.js';
2
+ import '@yahoo/uds-icons/types';
3
+ import 'framer-motion';
4
+ import 'react';
5
+
6
+ declare function transformColors(colors: ColorsConfig): {
7
+ _vars: Record<string, string>;
8
+ _raw: ColorsConfig;
9
+ tailwindConfig: {
10
+ spectrum: Record<Hue, Record<HueStep, string>>;
11
+ palette: { [key in PaletteType]: Record<keyof PaletteConfig[key], string>; };
12
+ };
13
+ };
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): {
30
+ _vars: Record<string, string>;
31
+ _raw: T;
32
+ tailwindConfig: Record<string, string>;
33
+ };
34
+ declare function transformNumeric<T extends Record<string, number>>(prefix: string, config: T): {
35
+ _vars: {};
36
+ _raw: {};
37
+ tailwindConfig: {};
38
+ } | {
39
+ _vars: Record<string, string>;
40
+ _raw: T;
41
+ tailwindConfig: Record<string, string>;
42
+ };
43
+ type WebTokens = Omit<UniversalTokensConfig, 'colorMode' | 'scaleMode' | 'fontFamily'> & {
44
+ colorMode: Record<ColorMode, ReturnType<typeof transformColors>>;
45
+ scaleMode: Record<ScaleMode, {
46
+ fontFamily: ReturnType<typeof transformString>;
47
+ fontSize: ReturnType<typeof transformNumeric>;
48
+ fontWeight: ReturnType<typeof transformFontWeight>;
49
+ lineHeight: ReturnType<typeof transformNumeric>;
50
+ textTransform: ReturnType<typeof transformString>;
51
+ borderRadius: ReturnType<typeof transformNumeric>;
52
+ borderWidth: ReturnType<typeof transformNumeric>;
53
+ avatarSizes: ReturnType<typeof transformNumeric>;
54
+ iconSizes: ReturnType<typeof transformNumeric>;
55
+ }>;
56
+ };
57
+ declare function parseTokens(config: UniversalTokensConfig): WebTokens;
58
+
59
+ export { type WebTokens, parseTokens };
@@ -0,0 +1 @@
1
+ export{parseTokens}from"../chunk-X6F5UEQ5.js";