@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.
- package/cli/README.md +1 -0
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/cli/cli.ts +26 -0
- package/cli/commands/purge.ts +6 -2
- package/cli/compile.ts +35 -0
- package/cli/consts.ts +9 -0
- package/cli/exec.ts +36 -0
- package/cli/tsconfig.json +1 -0
- package/cli/uds-cli +34 -6
- package/cli/utils/configWorker.ts +2 -0
- package/cli/utils/purgeCSS.test.ts +1 -1
- package/cli/utils/purgeCSS.ts +31 -11
- package/dist/{Image.native-taa2jsQc.d.ts → Image.native-BxsXWBqp.d.ts} +1 -1
- package/dist/{Image.native-No-SNzS_.d.cts → Image.native-DBoB1LOc.d.cts} +1 -1
- package/dist/{VStack-B4TMNdfk.d.cts → VStack-BFIFJUVx.d.cts} +1 -1
- package/dist/{VStack-pgMJmuKn.d.ts → VStack-zgq0Zq3N.d.ts} +1 -1
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.ts +2 -2
- package/dist/experimental/index.js +2 -2
- package/dist/experimental/index.native.cjs +1 -1
- package/dist/experimental/index.native.d.cts +3 -3
- package/dist/experimental/index.native.d.ts +3 -3
- package/dist/experimental/index.native.js +1 -1
- package/dist/fixtures.cjs +26 -1
- package/dist/fixtures.d.ts +6 -2
- package/dist/fixtures.js +22 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{index.native-BzvT-a_y.d.ts → index.native-Gbm66c6M.d.ts} +1 -1
- package/dist/{index.native-WZqIALTD.d.cts → index.native-OW5d35eT.d.cts} +1 -1
- package/dist/index.native.cjs +1 -1
- package/dist/index.native.d.cts +32 -5
- package/dist/index.native.d.ts +32 -5
- package/dist/index.native.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/plugin.js +3 -3
- package/dist/tailwind/purger.cjs +2 -2
- package/dist/tailwind/purger.js +3 -3
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +2 -2
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +30 -3
- package/dist/tokens/index.d.ts +30 -3
- package/dist/tokens/index.js +2 -2
- package/dist/tokens/index.native.cjs +1 -1
- package/dist/tokens/index.native.d.cts +2 -2
- package/dist/tokens/index.native.d.ts +2 -2
- package/dist/tokens/index.native.js +1 -1
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +2 -2
- package/dist/tokens/parseTokens.d.ts +2 -2
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/{types-CHw8YXrX.d.cts → types-BofdnBTe.d.cts} +41 -30
- package/dist/{types-CHw8YXrX.d.ts → types-BofdnBTe.d.ts} +41 -30
- package/dist/{types-FhFpiSwO.d.cts → types-CLPge83Y.d.cts} +41 -30
- package/dist/{types-FhFpiSwO.d.ts → types-CLPge83Y.d.ts} +41 -30
- 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 = '
|
111
|
+
type ButtonState = 'hover' | 'pressed';
|
111
112
|
type ButtonKind = 'fill' | 'outline' | 'ghost';
|
112
|
-
type
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
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:
|
123
|
-
}
|
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
|
-
|
144
|
-
|
145
|
-
|
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
|
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.
|
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:
|
105
|
-
"build:fixtures": "bun run ./scripts/buildFixtures.ts",
|
106
|
-
"build:
|
107
|
-
"
|
108
|
-
"
|
109
|
-
"dev": "
|
110
|
-
"dev:
|
111
|
-
"dev:
|
112
|
-
"
|
113
|
-
"
|
114
|
-
"
|
115
|
-
"
|
116
|
-
"test": "
|
117
|
-
"test:bun": "
|
118
|
-
"test:
|
119
|
-
"test:
|
120
|
-
"test:
|
121
|
-
"
|
122
|
-
"
|
123
|
-
"typecheck": "
|
124
|
-
"typecheck:
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
"
|
130
|
-
"
|
131
|
-
"
|
132
|
-
"
|
133
|
-
"
|
134
|
-
"
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
"@
|
140
|
-
"@types/
|
141
|
-
"@
|
142
|
-
"
|
143
|
-
"
|
144
|
-
"
|
145
|
-
"
|
146
|
-
"
|
147
|
-
"
|
148
|
-
"
|
149
|
-
"
|
150
|
-
|
151
|
-
|
152
|
-
"
|
153
|
-
|
154
|
-
|
155
|
-
"
|
156
|
-
"
|
157
|
-
"
|
158
|
-
"
|
159
|
-
"
|
160
|
-
"react": "^
|
161
|
-
"
|
162
|
-
|
163
|
-
|
164
|
-
"
|
165
|
-
|
166
|
-
|
167
|
-
"@
|
168
|
-
"optional": true
|
169
|
-
},
|
170
|
-
"
|
171
|
-
"optional": true
|
172
|
-
},
|
173
|
-
"expo-
|
174
|
-
"optional": true
|
175
|
-
},
|
176
|
-
"expo-
|
177
|
-
"optional": true
|
178
|
-
},
|
179
|
-
"
|
180
|
-
"optional":
|
181
|
-
},
|
182
|
-
"react": {
|
183
|
-
"optional":
|
184
|
-
},
|
185
|
-
"react-
|
186
|
-
"optional": true
|
187
|
-
},
|
188
|
-
"react-native": {
|
189
|
-
"optional": true
|
190
|
-
},
|
191
|
-
"
|
192
|
-
"optional": true
|
193
|
-
}
|
194
|
-
|
195
|
-
|
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
|
+
}
|