@yahoo/uds 1.2.0 → 2.0.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/cli/consts.ts +1 -0
  2. package/cli/uds-cli +2 -2
  3. package/package.json +2 -1
  4. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  5. package/cli/bin/uds-linux-x64-baseline +0 -0
  6. package/dist/chunk-2JIYRTEY.js +0 -3
  7. package/dist/chunk-3VTRSTDI.cjs +0 -2
  8. package/dist/chunk-4J7ZJHCN.js +0 -2
  9. package/dist/chunk-5X3JN6IH.cjs +0 -3
  10. package/dist/chunk-6K5IORZA.cjs +0 -2
  11. package/dist/chunk-AIRVDEVS.cjs +0 -3
  12. package/dist/chunk-BQTYVXIC.js +0 -3
  13. package/dist/chunk-CE5NDFHI.js +0 -2
  14. package/dist/chunk-E3Z3A4MR.cjs +0 -2
  15. package/dist/chunk-OJR4RBBW.js +0 -3
  16. package/dist/chunk-PCSDVJE6.js +0 -2
  17. package/dist/chunk-SLCISFAV.cjs +0 -3
  18. package/dist/chunk-TWTUXY76.cjs +0 -2
  19. package/dist/chunk-TYKFUQUM.cjs +0 -1
  20. package/dist/chunk-W5AGPUNC.cjs +0 -4
  21. package/dist/chunk-XFTF7IHG.js +0 -2
  22. package/dist/chunk-Y2TGGXMH.js +0 -3
  23. package/dist/chunk-ZJE5XRN2.js +0 -4
  24. package/dist/client/index.cjs +0 -4
  25. package/dist/client/index.d.cts +0 -97
  26. package/dist/client/index.d.ts +0 -97
  27. package/dist/client/index.js +0 -6
  28. package/dist/experimental/index.cjs +0 -3
  29. package/dist/experimental/index.d.cts +0 -451
  30. package/dist/experimental/index.d.ts +0 -451
  31. package/dist/experimental/index.js +0 -3
  32. package/dist/fixtures.cjs +0 -1506
  33. package/dist/fixtures.d.cts +0 -94
  34. package/dist/fixtures.d.ts +0 -94
  35. package/dist/fixtures.js +0 -1449
  36. package/dist/index.cjs +0 -1
  37. package/dist/index.d.cts +0 -300
  38. package/dist/index.d.ts +0 -300
  39. package/dist/index.js +0 -2
  40. package/dist/metafile-cjs.json +0 -1
  41. package/dist/metafile-esm.json +0 -1
  42. package/dist/motionFeatures-M3DOZMRC.cjs +0 -1
  43. package/dist/motionFeatures-QDISAARM.js +0 -1
  44. package/dist/styles/toast.css +0 -3
  45. package/dist/styles/toast.d.cts +0 -2
  46. package/dist/styles/toast.d.ts +0 -2
  47. package/dist/tailwind/plugin.cjs +0 -3
  48. package/dist/tailwind/plugin.d.cts +0 -60
  49. package/dist/tailwind/plugin.d.ts +0 -60
  50. package/dist/tailwind/plugin.js +0 -3
  51. package/dist/tailwind/purger.cjs +0 -6
  52. package/dist/tailwind/purger.d.cts +0 -17
  53. package/dist/tailwind/purger.d.ts +0 -17
  54. package/dist/tailwind/purger.js +0 -6
  55. package/dist/tailwind/tsMorph.cjs +0 -3
  56. package/dist/tailwind/tsMorph.d.cts +0 -31
  57. package/dist/tailwind/tsMorph.d.ts +0 -31
  58. package/dist/tailwind/tsMorph.js +0 -2
  59. package/dist/tailwind/utils.cjs +0 -1
  60. package/dist/tailwind/utils.d.cts +0 -99
  61. package/dist/tailwind/utils.d.ts +0 -99
  62. package/dist/tailwind/utils.js +0 -1
  63. package/dist/tokens/index.cjs +0 -1
  64. package/dist/tokens/index.d.cts +0 -1127
  65. package/dist/tokens/index.d.ts +0 -1127
  66. package/dist/tokens/index.js +0 -1
  67. package/dist/tokens/parseTokens.cjs +0 -1
  68. package/dist/tokens/parseTokens.d.cts +0 -59
  69. package/dist/tokens/parseTokens.d.ts +0 -59
  70. package/dist/tokens/parseTokens.js +0 -1
  71. package/dist/types-CpZ2ERLZ.d.cts +0 -949
  72. package/dist/types-CpZ2ERLZ.d.ts +0 -949
@@ -1 +0,0 @@
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-ZJE5XRN2.js";export{entries,fontWeightMap,mapValues}from"../chunk-4J7ZJHCN.js";export{variants}from"../chunk-Y2TGGXMH.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-PCSDVJE6.js";
@@ -1 +0,0 @@
1
- "use strict";var e=require("../chunk-SLCISFAV.cjs");Object.defineProperty(exports,"parseTokens",{enumerable:!0,get:function(){return e.parseTokens}});
@@ -1,59 +0,0 @@
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-CpZ2ERLZ.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 };
@@ -1,59 +0,0 @@
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-CpZ2ERLZ.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 };
@@ -1 +0,0 @@
1
- export{parseTokens}from"../chunk-2JIYRTEY.js";