@yahoo/uds 0.5.8 → 0.5.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/cli/README.md +1 -0
  2. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  3. package/cli/bin/uds-linux-x64-baseline +0 -0
  4. package/cli/cli.ts +26 -0
  5. package/cli/commands/purge.ts +6 -2
  6. package/cli/compile.ts +35 -0
  7. package/cli/consts.ts +9 -0
  8. package/cli/exec.ts +36 -0
  9. package/cli/tsconfig.json +1 -0
  10. package/cli/uds-cli +34 -6
  11. package/cli/utils/configWorker.ts +2 -0
  12. package/cli/utils/purgeCSS.test.ts +1 -1
  13. package/cli/utils/purgeCSS.ts +31 -11
  14. package/dist/{Image.native-taa2jsQc.d.ts → Image.native-BxsXWBqp.d.ts} +1 -1
  15. package/dist/{Image.native-No-SNzS_.d.cts → Image.native-DBoB1LOc.d.cts} +1 -1
  16. package/dist/{VStack-B4TMNdfk.d.cts → VStack-BFIFJUVx.d.cts} +1 -1
  17. package/dist/{VStack-pgMJmuKn.d.ts → VStack-zgq0Zq3N.d.ts} +1 -1
  18. package/dist/experimental/index.cjs +2 -2
  19. package/dist/experimental/index.d.cts +2 -2
  20. package/dist/experimental/index.d.ts +2 -2
  21. package/dist/experimental/index.js +2 -2
  22. package/dist/experimental/index.native.cjs +1 -1
  23. package/dist/experimental/index.native.d.cts +3 -3
  24. package/dist/experimental/index.native.d.ts +3 -3
  25. package/dist/experimental/index.native.js +1 -1
  26. package/dist/fixtures.cjs +26 -1
  27. package/dist/fixtures.d.ts +6 -2
  28. package/dist/fixtures.js +22 -1
  29. package/dist/index.cjs +1 -1
  30. package/dist/index.d.cts +5 -5
  31. package/dist/index.d.ts +5 -5
  32. package/dist/index.js +2 -2
  33. package/dist/{index.native-BzvT-a_y.d.ts → index.native-Gbm66c6M.d.ts} +1 -1
  34. package/dist/{index.native-WZqIALTD.d.cts → index.native-OW5d35eT.d.cts} +1 -1
  35. package/dist/index.native.cjs +1 -1
  36. package/dist/index.native.d.cts +32 -5
  37. package/dist/index.native.d.ts +32 -5
  38. package/dist/index.native.js +1 -1
  39. package/dist/metafile-cjs.json +1 -1
  40. package/dist/metafile-esm.json +1 -1
  41. package/dist/tailwind/plugin.cjs +1 -1
  42. package/dist/tailwind/plugin.d.cts +1 -1
  43. package/dist/tailwind/plugin.d.ts +1 -1
  44. package/dist/tailwind/plugin.js +3 -3
  45. package/dist/tailwind/purger.cjs +2 -2
  46. package/dist/tailwind/purger.js +3 -3
  47. package/dist/tailwind/tsMorph.cjs +1 -1
  48. package/dist/tailwind/tsMorph.js +2 -2
  49. package/dist/tokens/index.cjs +1 -1
  50. package/dist/tokens/index.d.cts +30 -3
  51. package/dist/tokens/index.d.ts +30 -3
  52. package/dist/tokens/index.js +2 -2
  53. package/dist/tokens/index.native.cjs +1 -1
  54. package/dist/tokens/index.native.d.cts +2 -2
  55. package/dist/tokens/index.native.d.ts +2 -2
  56. package/dist/tokens/index.native.js +1 -1
  57. package/dist/tokens/parseTokens.cjs +1 -1
  58. package/dist/tokens/parseTokens.d.cts +2 -2
  59. package/dist/tokens/parseTokens.d.ts +2 -2
  60. package/dist/tokens/parseTokens.js +1 -1
  61. package/dist/{types-CHw8YXrX.d.cts → types-BofdnBTe.d.cts} +41 -30
  62. package/dist/{types-CHw8YXrX.d.ts → types-BofdnBTe.d.ts} +41 -30
  63. package/dist/{types-FhFpiSwO.d.cts → types-CLPge83Y.d.cts} +41 -30
  64. package/dist/{types-FhFpiSwO.d.ts → types-CLPge83Y.d.ts} +41 -30
  65. package/package.json +195 -198
@@ -36,6 +36,11 @@ type AlwaysPaletteAlias = keyof AlwaysPalette;
36
36
  type ForegroundColor = CorePaletteAlias | ForegroundPaletteAlias | AlwaysPaletteAlias;
37
37
  type LineColor = CorePaletteAlias | LinePaletteAlias | AlwaysPaletteAlias;
38
38
  type BackgroundColor = CorePaletteAlias | BackgroundPaletteAlias | AlwaysPaletteAlias;
39
+ type PropertyToPaletteAliasMap = {
40
+ backgroundColor: BackgroundColor;
41
+ borderColor: LineColor;
42
+ color: ForegroundColor;
43
+ };
39
44
  type TextVariant = 'display1' | 'display2' | 'display3' | 'title1' | 'title2' | 'title3' | 'title4' | 'headline1' | 'body1' | 'label1' | 'label2' | 'caption1' | 'caption2' | 'legal1';
40
45
  type FontFamilyGlobalAlias = 'icons' | 'sans' | 'sans-beta' | 'sans-condensed' | 'serif-text' | 'serif-display';
41
46
  type FontFamilyGlobalConfig = Record<FontFamilyGlobalAlias, {
@@ -100,27 +105,43 @@ type ScaleConfig = {
100
105
  textTransform: TextTransformConfig;
101
106
  };
102
107
  type ScaleModeConfig = Record<ScaleMode, ScaleConfig>;
103
- type ButtonSpectrumColor = {
104
- type: 'spectrum';
105
- value: SpectrumColor;
106
- };
107
108
  type ButtonSize = TShirtSizeCommon;
108
109
  type ButtonCategory = CorePaletteAlias;
109
110
  type ButtonVariant2 = 'primary' | 'secondary' | 'tertiary';
110
- type ButtonState = 'rest' | 'hover' | 'pressed';
111
+ type ButtonState = 'hover' | 'pressed';
111
112
  type ButtonKind = 'fill' | 'outline' | 'ghost';
112
- type ButtonBackgroundColor = {
113
- type: 'palette';
114
- value: BackgroundColor;
115
- } | ButtonSpectrumColor;
116
- type ButtonForegroundColor = {
117
- type: 'palette';
118
- value: ForegroundColor;
119
- } | ButtonSpectrumColor;
120
- type ButtonBorderColor = {
113
+ type ButtonColorEffect = 'lighten' | 'darken' | 'none' | 'custom';
114
+ type ButtonColorProperty = 'backgroundColor' | 'borderColor' | 'color';
115
+ type ButtonColorEffectConfig = {
116
+ options: ButtonColorEffect[];
117
+ value: ButtonColorEffect;
118
+ };
119
+ type ButtonSpecrtumColor = {
120
+ type: 'spectrum';
121
+ value: SpectrumColor;
122
+ };
123
+ type ButtonPaletteColor<T> = {
121
124
  type: 'palette';
122
- value: LineColor;
123
- } | ButtonSpectrumColor;
125
+ value: T;
126
+ };
127
+ type ButtonColorConfig<Property extends ButtonColorProperty> = ButtonPaletteColor<PropertyToPaletteAliasMap[Property]> | ButtonSpecrtumColor;
128
+ type ButtonColorPropertyConfig = {
129
+ backgroundColor: ButtonColorConfig<'backgroundColor'>;
130
+ borderColor: ButtonColorConfig<'borderColor'>;
131
+ color: ButtonColorConfig<'color'>;
132
+ };
133
+ type ButtonBaseConfig = {
134
+ borderWidth: BorderWidth;
135
+ borderRadius: BorderRadius;
136
+ } & ButtonColorPropertyConfig;
137
+ type ButtonStateConfig = {
138
+ [state in ButtonState]: ButtonColorPropertyConfig;
139
+ };
140
+ type ButtonStateEffectConfig = {
141
+ [state in ButtonState]: {
142
+ [property in ButtonColorProperty]: ButtonColorEffectConfig;
143
+ };
144
+ };
124
145
  interface ButtonConfig {
125
146
  defaults: {
126
147
  category: ButtonCategory;
@@ -140,19 +161,9 @@ interface ButtonConfig {
140
161
  [category in ButtonCategory]: {
141
162
  [variant in ButtonVariant2]: {
142
163
  kind: ButtonKind;
143
- state: {
144
- [state in ButtonState]: state extends 'rest' ? {
145
- borderWidth: BorderWidth;
146
- borderRadius: BorderRadius;
147
- backgroundColor: ButtonBackgroundColor;
148
- color: ButtonForegroundColor;
149
- borderColor: ButtonBorderColor;
150
- } : {
151
- backgroundColor: ButtonBackgroundColor;
152
- color: ButtonForegroundColor;
153
- borderColor: ButtonBorderColor;
154
- };
155
- };
164
+ base: ButtonBaseConfig;
165
+ effect: ButtonStateEffectConfig;
166
+ state: ButtonStateConfig;
156
167
  };
157
168
  };
158
169
  };
@@ -422,4 +433,4 @@ interface UniversalTextInputProps {
422
433
  spacingHorizontal?: SpacingAlias;
423
434
  }
424
435
 
425
- export { type FlexStyleProps as $, type AlwaysPalette as A, type BackgroundPaletteAlias as B, type ColorMode as C, type ButtonSize as D, type ButtonVariant as E, type ForegroundPaletteAlias as F, type ButtonVariant2 as G, type Hue as H, type ColorModeConfig as I, type ColorModeForApp as J, type ConfigurableTextProperty as K, type LinePaletteAlias as L, type CorePalette as M, type CustomSizingStyleProps as N, type DataAttribute as O, type Display as P, type Flex as Q, type FlexAlignContent as R, type ScaleMode as S, type FlexAlignItems as T, type UniversalTokensConfig as U, type FlexAlignSelf as V, type FlexBasis as W, type FlexDirection as X, type FlexGrow as Y, type FlexJustifyContent as Z, type FlexShrink as _, type ColorsConfig as a, type FlexWrap as a0, type FontFamilyConfig as a1, type FontFamilyGlobalAlias as a2, type FontSize as a3, type FontSizeConfig as a4, type FontWeightDescriptive as a5, type ForegroundColor as a6, type ForegroundPalette as a7, type HighContrastMode as a8, type IconSize as a9, type StateStyleProps as aA, type StyleProps as aB, type TextStyleProps as aC, type TextTransform as aD, type TextTransformConfig as aE, type TextVariant as aF, type TransitionDelay as aG, type TransitionDuration as aH, type TransitionTiming as aI, type TShirtSize as aJ, type TShirtSizeCommon as aK, type UniversalAvatarProps as aL, type UniversalBoxProps as aM, type UniversalButtonProps as aN, type UniversalIconButtonProps as aO, type UniversalIconProps as aP, type UniversalPressableProps as aQ, type UniversalTextInputProps as aR, type UniversalTextProps as aS, type IconSizeConfig as aa, type ImageStyleProps as ab, type LayoutStyleProps as ac, type LetterSpacing as ad, type LineClampAlias as ae, type LineColor as af, type LineHeight as ag, type LineHeightConfig as ah, type LinePalette as ai, type Modes as aj, type Overflow as ak, type Palette as al, type PaletteConfig as am, type PaletteType as an, type PaletteValue as ao, type PlatformMode as ap, type Position as aq, type RegionMode as ar, type ScaleConfig as as, type ScaleModeConfig as at, type ScaleModeForApp as au, type SpacingAlias as av, type SpacingConfig as aw, type SpacingStyleProps as ax, type SpectrumColor as ay, type SpectrumConfig as az, type HueStep as b, type CorePaletteAlias as c, type FontWeightConfig as d, type FontWeightNumeric as e, type FontFamilyGlobalConfig as f, type UniversalStackProps as g, type UniversalImageProps as h, alwaysPalette as i, type AlwaysPaletteAlias as j, type Animation as k, type AriaAttribute as l, type AvatarShape as m, type AvatarSize as n, type AvatarSizeConfig as o, type BackgroundColor as p, type BackgroundPalette as q, type BackgroundStyleProps as r, type BorderRadius as s, type BorderRadiusConfig as t, type BorderStyleProps as u, type BorderWidth as v, type BorderWidthConfig as w, type BoxShadowConfig as x, type ButtonCategory as y, type ButtonConfig as z };
436
+ export { type ButtonStateConfig as $, type AvatarSizeConfig as A, type ButtonConfig as B, type ColorModeForApp as C, type BackgroundPaletteAlias as D, type BackgroundStyleProps as E, type FontFamilyConfig as F, type BorderRadius as G, type BorderStyleProps as H, type IconSizeConfig as I, type BorderWidth as J, type BoxShadowConfig as K, type LineHeightConfig as L, type Modes as M, type ButtonBaseConfig as N, type ButtonCategory as O, type ButtonColorConfig as P, type ButtonColorEffect as Q, type ButtonColorEffectConfig as R, type ScaleModeForApp as S, type TextTransformConfig as T, type UniversalAvatarProps as U, type ButtonColorProperty as V, type ButtonColorPropertyConfig as W, type ButtonKind as X, type ButtonSize as Y, type ButtonSpecrtumColor as Z, type ButtonState as _, type UniversalButtonProps as a, type TransitionTiming as a$, type ButtonStateEffectConfig as a0, type ButtonVariant as a1, type ButtonVariant2 as a2, type ColorModeConfig as a3, type ColorsConfig as a4, type ConfigurableTextProperty as a5, type CorePalette as a6, type CorePaletteAlias as a7, type CustomSizingStyleProps as a8, type DataAttribute as a9, type LineClampAlias as aA, type LineColor as aB, type LineHeight as aC, type LinePalette as aD, type LinePaletteAlias as aE, type Overflow as aF, type Palette as aG, type PaletteConfig as aH, type PaletteType as aI, type PaletteValue as aJ, type PlatformMode as aK, type Position as aL, type PropertyToPaletteAliasMap as aM, type RegionMode as aN, type ScaleConfig as aO, type ScaleModeConfig as aP, type SpacingAlias as aQ, type SpacingConfig as aR, type SpacingStyleProps as aS, type SpectrumColor as aT, type SpectrumConfig as aU, type StateStyleProps as aV, type TextStyleProps as aW, type TextTransform as aX, type TextVariant as aY, type TransitionDelay as aZ, type TransitionDuration as a_, type Display as aa, type Flex as ab, type FlexAlignContent as ac, type FlexAlignItems as ad, type FlexAlignSelf as ae, type FlexBasis as af, type FlexDirection as ag, type FlexGrow as ah, type FlexJustifyContent as ai, type FlexShrink as aj, type FlexStyleProps as ak, type FlexWrap as al, type FontFamilyGlobalAlias as am, type FontSize as an, type FontWeightDescriptive as ao, type FontWeightNumeric as ap, type ForegroundColor as aq, type ForegroundPalette as ar, type ForegroundPaletteAlias as as, type HighContrastMode as at, type Hue as au, type HueStep as av, type IconSize as aw, type ImageStyleProps as ax, type LayoutStyleProps as ay, type LetterSpacing as az, type UniversalPressableProps as b, type TShirtSize as b0, type TShirtSizeCommon as b1, type UniversalTextInputProps as b2, type UniversalIconButtonProps as c, type UniversalImageProps as d, type UniversalBoxProps as e, type UniversalStackProps as f, type UniversalTextProps as g, type UniversalIconProps as h, type ColorMode as i, type ScaleMode as j, type UniversalTokensConfig as k, type StyleProps as l, type BorderRadiusConfig as m, type BorderWidthConfig as n, type FontSizeConfig as o, type FontWeightConfig as p, type FontFamilyGlobalConfig as q, alwaysPalette as r, type AlwaysPalette as s, type AlwaysPaletteAlias as t, type Animation as u, type AriaAttribute as v, type AvatarShape as w, type AvatarSize as x, type BackgroundColor as y, type BackgroundPalette as z };
package/package.json CHANGED
@@ -1,198 +1,195 @@
1
- {
2
- "name": "@yahoo/uds",
3
- "description": "Yahoo Universal System",
4
- "version": "0.5.8",
5
- "type": "module",
6
- "bin": {
7
- "uds": "./cli/uds-cli"
8
- },
9
- "files": [
10
- "cli/**",
11
- "dist/**",
12
- "fonts/**",
13
- "package.json"
14
- ],
15
- "sideEffects": false,
16
- "exports": {
17
- ".": {
18
- "react-native": {
19
- "types": "./dist/index.native.d.ts",
20
- "require": "./dist/index.native.cjs",
21
- "default": "./dist/index.native.js"
22
- },
23
- "import": {
24
- "types": "./dist/index.d.ts",
25
- "default": "./dist/index.js"
26
- },
27
- "require": {
28
- "types": "./dist/index.d.cts",
29
- "default": "./dist/index.cjs"
30
- }
31
- },
32
- "./experimental": {
33
- "react-native": {
34
- "types": "./dist/experimental/index.native.d.ts",
35
- "require": "./dist/experimental/index.native.cjs",
36
- "default": "./dist/experimental/index.native.js"
37
- },
38
- "import": {
39
- "types": "./dist/experimental/index.d.ts",
40
- "default": "./dist/experimental/index.js"
41
- },
42
- "require": {
43
- "types": "./dist/experimental/index.d.cts",
44
- "default": "./dist/experimental/index.cjs"
45
- }
46
- },
47
- "./fixtures": {
48
- "import": {
49
- "types": "./dist/fixtures.d.ts",
50
- "default": "./dist/fixtures.js"
51
- },
52
- "require": {
53
- "types": "./dist/fixtures.d.ts",
54
- "default": "./dist/fixtures.cjs"
55
- }
56
- },
57
- "./fonts/*.otf": "./fonts/*.otf",
58
- "./fonts/*.ttf": "./fonts/*.ttf",
59
- "./fonts/*.woff2": "./fonts/*.woff2",
60
- "./fonts/*": {
61
- "types": "./fonts/*.d.ts",
62
- "require": "./fonts/*.cjs"
63
- },
64
- "./package.json": "./package.json",
65
- "./styles/*": "./dist/styles/*",
66
- "./tailwind/*": {
67
- "import": {
68
- "types": "./dist/tailwind/*.d.ts",
69
- "default": "./dist/tailwind/*.js"
70
- },
71
- "require": {
72
- "types": "./dist/tailwind/*.d.cts",
73
- "default": "./dist/tailwind/*.cjs"
74
- }
75
- },
76
- "./tokens": {
77
- "react-native": {
78
- "types": "./dist/tokens/index.native.d.ts",
79
- "require": "./dist/tokens/index.native.cjs",
80
- "default": "./dist/tokens/index.native.js"
81
- },
82
- "import": {
83
- "types": "./dist/tokens/index.d.ts",
84
- "default": "./dist/tokens/index.js"
85
- },
86
- "require": {
87
- "types": "./dist/tokens/index.d.cts",
88
- "default": "./dist/tokens/index.cjs"
89
- }
90
- },
91
- "./tokens/parseTokens": {
92
- "import": {
93
- "types": "./dist/tokens/parseTokens.d.ts",
94
- "default": "./dist/tokens/parseTokens.js"
95
- },
96
- "require": {
97
- "types": "./dist/tokens/parseTokens.d.cts",
98
- "default": "./dist/tokens/parseTokens.cjs"
99
- }
100
- }
101
- },
102
- "scripts": {
103
- "build": "bun run ./scripts/prebuild.ts && tsup && bun run ./scripts/postbuild.ts",
104
- "build:css": "tailwindcss --input ./src/tailwind/uds.css --output ./generated/uds.css --config ./src/tailwind/tailwind.config.ts",
105
- "build:fixtures": "bun run ./scripts/buildFixtures.ts",
106
- "build:fontcss": "bun run ./scripts/generateFontCSS.ts --output ./generated/fonts.css",
107
- "build:purgeCSSData": "bun run ./scripts/generatePurgeCSSData.ts",
108
- "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf .coverage",
109
- "dev": "concurrently bun:dev:*",
110
- "dev:fixtures": "bun run ./scripts/buildFixtures.ts --watch",
111
- "dev:fontcss": "bun run --watch --clear-screen=false ./scripts/generateFontCSS.ts --output ./generated/fonts.css",
112
- "dev:purgeCSSData": "bun run ./scripts/generatePurgeCSSData.ts --watch",
113
- "dev:ts": "tsup --watch",
114
- "lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .",
115
- "lint:pkg": "bun publint",
116
- "test": "vitest run",
117
- "test:bun": "bun run test:bun:scripts && bun run test:bun:cli",
118
- "test:bun:cli": "cd ./cli && bun test",
119
- "test:bun:scripts": "cd ./scripts && bun test",
120
- "test:coverage": "vitest run --coverage",
121
- "test:ui": "vitest --ui --coverage",
122
- "test:watch": "vitest",
123
- "typecheck": "concurrently bun:typecheck:*",
124
- "typecheck:cli": "tsc -p ./cli --noEmit",
125
- "typecheck:scripts": "tsc -p ./scripts --noEmit",
126
- "typecheck:uds": "tsc -p . --noEmit"
127
- },
128
- "dependencies": {
129
- "@ariakit/react": "^0.4.5",
130
- "bluebun": "^0.0.34",
131
- "clsx": "^2.1.0",
132
- "lodash-es": "^4.17.21",
133
- "prompts": "^2.4.2",
134
- "react-toastify": "^10.0.5",
135
- "tailwind-merge": "^2.3.0",
136
- "ts-morph": "^22.0.0"
137
- },
138
- "devDependencies": {
139
- "@fullhuman/postcss-purgecss": "^6.0.0",
140
- "@types/prompts": "^2.4.9",
141
- "@types/react": "^18.2.74",
142
- "@types/react-dom": "^18.2.24",
143
- "@yahoo/uds-icons": "workspace:*",
144
- "autoprefixer": "^10.4.19",
145
- "chalk": "^5.3.0",
146
- "concurrently": "^8.2.2",
147
- "postcss": "^8.4.38",
148
- "shared": "workspace:*",
149
- "tailwindcss": "^3.4.3",
150
- "terser": "^5.30.4",
151
- "tsconfig": "workspace:*",
152
- "tsup": "^8.0.2"
153
- },
154
- "peerDependencies": {
155
- "@gorhom/bottom-sheet": "^4.6.1",
156
- "@react-navigation/native": "^6.1.17",
157
- "expo-constants": "^16.0.0",
158
- "expo-image": "^1.10.6",
159
- "expo-status-bar": "^1.11.1",
160
- "react": "^18.2.0",
161
- "react-dom": "^18.2.0",
162
- "react-native": "^0.74.0",
163
- "react-native-safe-area-context": "^4.9.0",
164
- "tailwindcss": "^3.4.3"
165
- },
166
- "peerDependenciesMeta": {
167
- "@gorhom/bottom-sheet": {
168
- "optional": true
169
- },
170
- "@react-navigation/native": {
171
- "optional": true
172
- },
173
- "expo-constants": {
174
- "optional": true
175
- },
176
- "expo-image": {
177
- "optional": true
178
- },
179
- "expo-status-bar": {
180
- "optional": true
181
- },
182
- "react": {
183
- "optional": false
184
- },
185
- "react-dom": {
186
- "optional": true
187
- },
188
- "react-native": {
189
- "optional": true
190
- },
191
- "react-native-safe-area-context": {
192
- "optional": true
193
- },
194
- "tailwindcss": {
195
- "optional": true
196
- }
197
- }
198
- }
1
+ {
2
+ "name": "@yahoo/uds",
3
+ "description": "Yahoo Universal System",
4
+ "version": "0.5.10",
5
+ "type": "module",
6
+ "bin": {
7
+ "uds": "./cli/uds-cli"
8
+ },
9
+ "files": [
10
+ "cli/**",
11
+ "dist/**",
12
+ "fonts/**",
13
+ "package.json"
14
+ ],
15
+ "sideEffects": false,
16
+ "exports": {
17
+ ".": {
18
+ "react-native": {
19
+ "types": "./dist/index.native.d.ts",
20
+ "require": "./dist/index.native.cjs",
21
+ "default": "./dist/index.native.js"
22
+ },
23
+ "import": {
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.js"
26
+ },
27
+ "require": {
28
+ "types": "./dist/index.d.cts",
29
+ "default": "./dist/index.cjs"
30
+ }
31
+ },
32
+ "./experimental": {
33
+ "react-native": {
34
+ "types": "./dist/experimental/index.native.d.ts",
35
+ "require": "./dist/experimental/index.native.cjs",
36
+ "default": "./dist/experimental/index.native.js"
37
+ },
38
+ "import": {
39
+ "types": "./dist/experimental/index.d.ts",
40
+ "default": "./dist/experimental/index.js"
41
+ },
42
+ "require": {
43
+ "types": "./dist/experimental/index.d.cts",
44
+ "default": "./dist/experimental/index.cjs"
45
+ }
46
+ },
47
+ "./fixtures": {
48
+ "import": {
49
+ "types": "./dist/fixtures.d.ts",
50
+ "default": "./dist/fixtures.js"
51
+ },
52
+ "require": {
53
+ "types": "./dist/fixtures.d.ts",
54
+ "default": "./dist/fixtures.cjs"
55
+ }
56
+ },
57
+ "./fonts/*.otf": "./fonts/*.otf",
58
+ "./fonts/*.ttf": "./fonts/*.ttf",
59
+ "./fonts/*.woff2": "./fonts/*.woff2",
60
+ "./fonts/*": {
61
+ "types": "./fonts/*.d.ts",
62
+ "require": "./fonts/*.cjs"
63
+ },
64
+ "./package.json": "./package.json",
65
+ "./styles/*": "./dist/styles/*",
66
+ "./tailwind/*": {
67
+ "import": {
68
+ "types": "./dist/tailwind/*.d.ts",
69
+ "default": "./dist/tailwind/*.js"
70
+ },
71
+ "require": {
72
+ "types": "./dist/tailwind/*.d.cts",
73
+ "default": "./dist/tailwind/*.cjs"
74
+ }
75
+ },
76
+ "./tokens": {
77
+ "react-native": {
78
+ "types": "./dist/tokens/index.native.d.ts",
79
+ "require": "./dist/tokens/index.native.cjs",
80
+ "default": "./dist/tokens/index.native.js"
81
+ },
82
+ "import": {
83
+ "types": "./dist/tokens/index.d.ts",
84
+ "default": "./dist/tokens/index.js"
85
+ },
86
+ "require": {
87
+ "types": "./dist/tokens/index.d.cts",
88
+ "default": "./dist/tokens/index.cjs"
89
+ }
90
+ },
91
+ "./tokens/parseTokens": {
92
+ "import": {
93
+ "types": "./dist/tokens/parseTokens.d.ts",
94
+ "default": "./dist/tokens/parseTokens.js"
95
+ },
96
+ "require": {
97
+ "types": "./dist/tokens/parseTokens.d.cts",
98
+ "default": "./dist/tokens/parseTokens.cjs"
99
+ }
100
+ }
101
+ },
102
+ "scripts": {
103
+ "build": "bun run ./scripts/prebuild.ts && tsup && bun run ./scripts/postbuild.ts",
104
+ "build:cli": "bun ./cli/compile.ts",
105
+ "build:fixtures": "bun run ./scripts/buildFixtures.ts",
106
+ "build:purgeCSSData": "bun run ./scripts/generatePurgeCSSData.ts",
107
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf .coverage",
108
+ "dev": "concurrently bun:dev:*",
109
+ "dev:fixtures": "bun run ./scripts/buildFixtures.ts --watch",
110
+ "dev:purgeCSSData": "bun run ./scripts/generatePurgeCSSData.ts --watch",
111
+ "dev:ts": "tsup --watch",
112
+ "lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .",
113
+ "lint:pkg": "bun publint",
114
+ "test": "vitest run",
115
+ "test:bun": "bun run test:bun:scripts && bun run test:bun:cli",
116
+ "test:bun:cli": "cd ./cli && bun test",
117
+ "test:bun:scripts": "cd ./scripts && bun test",
118
+ "test:coverage": "vitest run --coverage",
119
+ "test:ui": "vitest --ui --coverage",
120
+ "test:watch": "vitest",
121
+ "typecheck": "concurrently bun:typecheck:*",
122
+ "typecheck:cli": "tsc -p ./cli --noEmit",
123
+ "typecheck:scripts": "tsc -p ./scripts --noEmit",
124
+ "typecheck:uds": "tsc -p . --noEmit"
125
+ },
126
+ "dependencies": {
127
+ "@ariakit/react": "^0.4.5",
128
+ "bluebun": "^0.0.34",
129
+ "clsx": "^2.1.0",
130
+ "lodash-es": "^4.17.21",
131
+ "prompts": "^2.4.2",
132
+ "react-toastify": "^10.0.5",
133
+ "tailwind-merge": "^2.3.0",
134
+ "ts-morph": "^23.0.0"
135
+ },
136
+ "devDependencies": {
137
+ "@fullhuman/postcss-purgecss": "^6.0.0",
138
+ "@types/prompts": "^2.4.9",
139
+ "@types/react": "^18.2.74",
140
+ "@types/react-dom": "^18.2.24",
141
+ "@yahoo/uds-icons": "0.0.13",
142
+ "autoprefixer": "^10.4.19",
143
+ "chalk": "^5.3.0",
144
+ "concurrently": "^8.2.2",
145
+ "postcss": "^8.4.38",
146
+ "tailwindcss": "^3.4.3",
147
+ "terser": "^5.30.4",
148
+ "tsconfig": "0.0.1",
149
+ "tsup": "^8.0.2"
150
+ },
151
+ "peerDependencies": {
152
+ "@gorhom/bottom-sheet": "^4.6.1",
153
+ "@react-navigation/native": "^6.1.17",
154
+ "expo-constants": "^16.0.0",
155
+ "expo-image": "^1.10.6",
156
+ "expo-status-bar": "^1.11.1",
157
+ "react": "^18.2.0",
158
+ "react-dom": "^18.2.0",
159
+ "react-native": "^0.74.0",
160
+ "react-native-safe-area-context": "^4.9.0",
161
+ "tailwindcss": "^3.4.3"
162
+ },
163
+ "peerDependenciesMeta": {
164
+ "@gorhom/bottom-sheet": {
165
+ "optional": true
166
+ },
167
+ "@react-navigation/native": {
168
+ "optional": true
169
+ },
170
+ "expo-constants": {
171
+ "optional": true
172
+ },
173
+ "expo-image": {
174
+ "optional": true
175
+ },
176
+ "expo-status-bar": {
177
+ "optional": true
178
+ },
179
+ "react": {
180
+ "optional": false
181
+ },
182
+ "react-dom": {
183
+ "optional": true
184
+ },
185
+ "react-native": {
186
+ "optional": true
187
+ },
188
+ "react-native-safe-area-context": {
189
+ "optional": true
190
+ },
191
+ "tailwindcss": {
192
+ "optional": true
193
+ }
194
+ }
195
+ }