@yahoo/uds 0.1.12 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/README.md +135 -0
- package/cli/commands/config/config.ts +10 -0
- package/cli/commands/config/sync.ts +22 -0
- package/cli/commands/expo/_setup.ts +244 -0
- package/cli/commands/expo/build.ts +96 -0
- package/cli/commands/expo/dev.ts +82 -0
- package/cli/commands/expo/expo.ts +23 -0
- package/cli/commands/expo/install/cocoapods.rb +35 -0
- package/cli/commands/expo/launch.ts +15 -0
- package/cli/commands/expo/update.ts +16 -0
- package/cli/commands/nextjs/dev.ts +17 -0
- package/cli/commands/nextjs/nextjs.ts +10 -0
- package/cli/commands/uds.ts +10 -0
- package/cli/commands/version.ts +11 -0
- package/cli/env.d.ts +15 -0
- package/cli/eslint.config.mjs +8 -0
- package/cli/tsconfig.json +10 -0
- package/cli/uds-cli +7 -0
- package/cli/utils/configWorker.ts +9 -0
- package/cli/utils/getCommandHelp.ts +65 -0
- package/cli/utils/setupConfigWorker.ts +81 -0
- package/cli/utils/sortKeys.ts +27 -0
- package/cli/utils/types.ts +13 -0
- package/dist/{chunk-JKZI2WLD.js → chunk-AWTLI4D3.js} +1 -1
- package/dist/chunk-D4K3CXV6.js +0 -0
- package/dist/{chunk-Z34QGHWU.js → chunk-MBOOJIH7.js} +1 -1
- package/dist/chunk-MFA2Y7DA.js +1 -0
- package/dist/chunk-P7GR6E3K.js +1 -0
- package/dist/chunk-PQBOZFJV.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -40
- package/dist/index.d.ts +7 -40
- package/dist/index.js +1 -1
- package/dist/{index.native-VVqy3X9H.d.cts → index.native-3ww4C4UV.d.cts} +1 -1
- package/dist/{index.native-DzfcCYUh.d.ts → index.native-9kYJrUPa.d.ts} +1 -1
- package/dist/index.native.cjs +1 -0
- package/dist/index.native.d.cts +1493 -0
- package/dist/index.native.d.ts +1493 -0
- package/dist/index.native.js +1 -0
- package/dist/tailwindPlugin.cjs +1 -1
- package/dist/tailwindPlugin.d.cts +1 -1
- package/dist/tailwindPlugin.d.ts +1 -1
- package/dist/tailwindPlugin.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +3 -3
- package/dist/tokens/index.d.ts +3 -3
- package/dist/tokens/index.js +1 -1
- 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 +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/tokens/parseTokens.native.d.cts +1 -1
- package/dist/tokens/parseTokens.native.d.ts +1 -1
- package/dist/tokens/parseTokens.native.js +1 -1
- package/dist/types-J4DLS6Xj.d.cts +38 -0
- package/dist/types-J4DLS6Xj.d.ts +38 -0
- package/dist/{types-VgTlNoi_.d.cts → types-hirL9Qk5.d.cts} +1 -0
- package/dist/{types-VgTlNoi_.d.ts → types-hirL9Qk5.d.ts} +1 -0
- package/fonts/mobile.cjs +29 -0
- package/fonts/mobile.d.ts +3 -0
- package/fonts/yahoo-icons.ttf +0 -0
- package/fonts/yahoo-sans-beta-bold.otf +0 -0
- package/fonts/yahoo-sans-beta-medium.otf +0 -0
- package/fonts/yahoo-sans-beta-regular.otf +0 -0
- package/fonts/yahoo-sans-black.otf +0 -0
- package/fonts/yahoo-sans-bold.otf +0 -0
- package/fonts/yahoo-sans-condensed-black.otf +0 -0
- package/fonts/yahoo-sans-condensed-bold.otf +0 -0
- package/fonts/yahoo-sans-condensed-light.otf +0 -0
- package/fonts/yahoo-sans-condensed-medium.otf +0 -0
- package/fonts/yahoo-sans-condensed-regular.otf +0 -0
- package/fonts/yahoo-sans-extrabold.otf +0 -0
- package/fonts/yahoo-sans-extralight.otf +0 -0
- package/fonts/yahoo-sans-italic.otf +0 -0
- package/fonts/yahoo-sans-light.otf +0 -0
- package/fonts/yahoo-sans-medium.otf +0 -0
- package/fonts/yahoo-sans-regular.otf +0 -0
- package/fonts/yahoo-sans-semibold.otf +0 -0
- package/fonts/yahoo-serif-display-black.otf +0 -0
- package/fonts/yahoo-serif-display-bold.otf +0 -0
- package/fonts/yahoo-serif-display-extrabold.otf +0 -0
- package/fonts/yahoo-serif-display-light.otf +0 -0
- package/fonts/yahoo-serif-display-regular.otf +0 -0
- package/fonts/yahoo-serif-text-bold.otf +0 -0
- package/fonts/yahoo-serif-text-italic.otf +0 -0
- package/fonts/yahoo-serif-text-regular.otf +0 -0
- package/package.json +114 -49
- package/bin/uds +0 -0
- package/dist/chunk-7FQGDIJ2.js +0 -1
package/package.json
CHANGED
@@ -1,60 +1,100 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yahoo/uds",
|
3
|
-
"
|
3
|
+
"description": "Yahoo Universal System",
|
4
|
+
"version": "0.1.14",
|
4
5
|
"type": "module",
|
5
|
-
"
|
6
|
+
"bin": {
|
7
|
+
"uds": "./cli/uds-cli"
|
8
|
+
},
|
6
9
|
"files": [
|
10
|
+
"cli/**",
|
7
11
|
"dist/**",
|
12
|
+
"fonts/**",
|
8
13
|
"package.json"
|
9
14
|
],
|
15
|
+
"sideEffects": false,
|
10
16
|
"exports": {
|
11
17
|
".": {
|
12
|
-
"
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
+
}
|
16
31
|
},
|
17
32
|
"./tailwindPlugin": {
|
18
|
-
"
|
19
|
-
|
20
|
-
|
21
|
-
|
33
|
+
"import": {
|
34
|
+
"types": "./dist/tailwindPlugin.d.ts",
|
35
|
+
"default": "./dist/tailwindPlugin.js"
|
36
|
+
},
|
37
|
+
"require": {
|
38
|
+
"types": "./dist/tailwindPlugin.d.cts",
|
39
|
+
"default": "./dist/tailwindPlugin.cjs"
|
40
|
+
}
|
22
41
|
},
|
23
42
|
"./fixtures": {
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
|
43
|
+
"import": {
|
44
|
+
"types": "./dist/fixtures/index.d.ts",
|
45
|
+
"default": "./dist/fixtures/index.js"
|
46
|
+
},
|
47
|
+
"require": {
|
48
|
+
"types": "./dist/tailwindPlugin.cjs",
|
49
|
+
"default": "./dist/fixtures/index.cjs"
|
50
|
+
}
|
51
|
+
},
|
52
|
+
"./fonts/*.otf": "./fonts/*.otf",
|
53
|
+
"./fonts/*.ttf": "./fonts/*.ttf",
|
54
|
+
"./fonts/*.woff2": "./fonts/*.woff2",
|
55
|
+
"./fonts/*": {
|
56
|
+
"types": "./fonts/*.d.ts",
|
57
|
+
"require": "./fonts/*.cjs"
|
28
58
|
},
|
29
59
|
"./tokens": {
|
30
|
-
"
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
"
|
60
|
+
"import": {
|
61
|
+
"types": "./dist/tokens/index.d.ts",
|
62
|
+
"default": "./dist/tokens/index.js"
|
63
|
+
},
|
64
|
+
"require": {
|
65
|
+
"types": "./dist/tokens/index.d.cts",
|
66
|
+
"default": "./dist/tokens/index.cjs"
|
67
|
+
}
|
35
68
|
},
|
36
69
|
"./tokens/parseTokens": {
|
37
|
-
"
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
70
|
+
"react-native": {
|
71
|
+
"types": "./dist/tokens/parseTokens.native.d.ts",
|
72
|
+
"require": "./dist/tokens/parseTokens.native.cjs",
|
73
|
+
"default": "./dist/tokens/parseTokens.native.js"
|
74
|
+
},
|
75
|
+
"import": {
|
76
|
+
"types": "./dist/tokens/parseTokens.d.ts",
|
77
|
+
"default": "./dist/tokens/parseTokens.js"
|
78
|
+
},
|
79
|
+
"require": {
|
80
|
+
"types": "./dist/tokens/parseTokens.d.cts",
|
81
|
+
"default": "./dist/tokens/parseTokens.cjs"
|
82
|
+
}
|
42
83
|
},
|
43
84
|
"./styles/*": "./dist/styles/*",
|
44
85
|
"./package.json": "./package.json"
|
45
86
|
},
|
46
87
|
"scripts": {
|
47
88
|
"build": "bun run build:fontcss && bun run build:fixtures && tsup",
|
48
|
-
"build:cli": "bun run ./scripts/buildCli.ts",
|
49
89
|
"build:css": "tailwindcss --input ./src/tailwind/uds.css --output ./generated/uds.css --config ./src/tailwind/tailwind.config.ts",
|
50
90
|
"build:fixtures": "bun run ./scripts/buildFixtures.ts",
|
51
|
-
"build:fontcss": "
|
91
|
+
"build:fontcss": "bun run ./scripts/generateFontCSS.ts --output ./generated/fonts.css",
|
52
92
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
53
93
|
"dev": "concurrently bun:dev:*",
|
54
|
-
"dev:
|
55
|
-
"dev:fontcss": "tsx watch --clear-screen=false ./scripts/generateFontCSS.ts --output ./generated/fonts.css",
|
94
|
+
"dev:fontcss": "bun run --watch --clear-screen=false ./scripts/generateFontCSS.ts --output ./generated/fonts.css",
|
56
95
|
"dev:ts": "tsup --watch",
|
57
96
|
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .",
|
97
|
+
"lint:pkg": "bun publint",
|
58
98
|
"test": "vitest run",
|
59
99
|
"test:coverage": "vitest run --coverage",
|
60
100
|
"test:ui": "vitest --ui --coverage",
|
@@ -66,38 +106,63 @@
|
|
66
106
|
},
|
67
107
|
"dependencies": {
|
68
108
|
"@ariakit/react": "^0.4.0",
|
109
|
+
"@expo/eas-json": "^7.1.0",
|
110
|
+
"bluebun": "0.0.34",
|
69
111
|
"clsx": "^2.1.0",
|
70
112
|
"react-toastify": "^9.1.3",
|
71
|
-
"tailwind-merge": "^2.2.1"
|
72
|
-
"tailwindcss": "^3.4.1"
|
113
|
+
"tailwind-merge": "^2.2.1"
|
73
114
|
},
|
74
115
|
"devDependencies": {
|
75
116
|
"@types/react": "^18.2.48",
|
76
117
|
"@types/react-dom": "^18.2.18",
|
77
|
-
"bluebun": "0.0.34",
|
78
118
|
"concurrently": "^8.2.2",
|
79
|
-
"eslint-config-custom": "workspace:*",
|
80
|
-
"react": "^18.2.0",
|
81
|
-
"react-dom": "^18.2.0",
|
82
119
|
"shared": "workspace:*",
|
83
120
|
"tsconfig": "workspace:*",
|
84
121
|
"tsup": "^8.0.1",
|
85
|
-
"tsx": "^4.7.0"
|
86
|
-
"typescript": "^5.3.3"
|
122
|
+
"tsx": "^4.7.0"
|
87
123
|
},
|
88
124
|
"peerDependencies": {
|
89
|
-
"@gorhom/bottom-sheet": "4.
|
90
|
-
"
|
91
|
-
"expo-
|
92
|
-
"expo-
|
93
|
-
"
|
94
|
-
"react
|
95
|
-
|
96
|
-
|
97
|
-
"
|
125
|
+
"@gorhom/bottom-sheet": "^4.6.0",
|
126
|
+
"@react-navigation/native": "^6.0.2",
|
127
|
+
"expo-constants": "^15.4.5",
|
128
|
+
"expo-image": "^1.10.4",
|
129
|
+
"expo-status-bar": "^1.11.1",
|
130
|
+
"react": "^18.2.0",
|
131
|
+
"react-dom": "^18.2.0",
|
132
|
+
"react-native": "^0.73.2",
|
133
|
+
"react-native-safe-area-context": "^4.8.2",
|
134
|
+
"tailwindcss": "^3.4.1"
|
98
135
|
},
|
99
|
-
"
|
100
|
-
|
101
|
-
|
102
|
-
|
136
|
+
"peerDependenciesMeta": {
|
137
|
+
"@gorhom/bottom-sheet": {
|
138
|
+
"optional": true
|
139
|
+
},
|
140
|
+
"@react-navigation/native": {
|
141
|
+
"optional": true
|
142
|
+
},
|
143
|
+
"expo-constants": {
|
144
|
+
"optional": true
|
145
|
+
},
|
146
|
+
"expo-image": {
|
147
|
+
"optional": true
|
148
|
+
},
|
149
|
+
"expo-status-bar": {
|
150
|
+
"optional": true
|
151
|
+
},
|
152
|
+
"react": {
|
153
|
+
"optional": false
|
154
|
+
},
|
155
|
+
"react-dom": {
|
156
|
+
"optional": true
|
157
|
+
},
|
158
|
+
"react-native": {
|
159
|
+
"optional": true
|
160
|
+
},
|
161
|
+
"react-native-safe-area-context": {
|
162
|
+
"optional": true
|
163
|
+
},
|
164
|
+
"tailwindcss": {
|
165
|
+
"optional": true
|
166
|
+
}
|
167
|
+
}
|
103
168
|
}
|
package/bin/uds
DELETED
Binary file
|
package/dist/chunk-7FQGDIJ2.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
var e=["Helvetica Neue","Helvetica","Arial","sans-serif"],l=["Georgia","Times","Times New Roman","serif"],b={icons:{fallbacks:e},sans:{fallbacks:e},"sans-beta":{fallbacks:e},"sans-condensed":{fallbacks:e},"serif-text":{fallbacks:l},"serif-display":{fallbacks:l}},p={display1:"sans",title1:"sans",title2:"sans",title3:"sans",title4:"sans",headline1:"sans",body1:"sans",label1:"sans",label2:"sans",caption1:"sans",caption2:"sans",legal1:"sans"},c={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},d={display1:"black",title1:"bold",title2:"bold",title3:"bold",title4:"bold",headline1:"semibold",body1:"regular",label1:"semibold",label2:"regular",caption1:"semibold",caption2:"regular",legal1:"semibold"},g={display1:"uppercase",title1:"none",title2:"none",title3:"none",title4:"none",headline1:"none",body1:"none",label1:"none",label2:"none",caption1:"none",caption2:"none",legal1:"none"},i={fontSize:{display1:46,title1:29,title2:25,title3:21,title4:17,headline1:13,body1:13,label1:12,label2:12,caption1:11,caption2:11,legal1:10},lineHeight:{display1:44,title1:36,title2:32,title3:28,title4:24,headline1:16,body1:16,label1:16,label2:16,caption1:16,caption2:16,legal1:12}},a={fontSize:{display1:46,title1:30,title2:26,title3:22,title4:18,headline1:14,body1:14,label1:13,label2:13,caption1:12,caption2:12,legal1:11},lineHeight:{...i.lineHeight,title1:40,headline1:20,body1:20,legal1:16}},t={fontSize:{display1:47,title1:31,title2:27,title3:23,title4:19,headline1:15,body1:15,label1:13,label2:13,caption1:12,caption2:12,legal1:11},lineHeight:{...a.lineHeight,title2:36,title3:32}},n={fontSize:{...t.fontSize,display1:48,title1:32,title2:28,title3:24,title4:20,headline1:16,body1:16,label1:14,label2:14},lineHeight:{...t.lineHeight,title2:36,title3:32,headline1:20,body1:20,label1:20,label2:20}},o={fontSize:{display1:50,title1:34,title2:30,title3:26,title4:22,headline1:18,body1:16,label1:16,label2:16,caption1:14,caption2:14,legal1:13},lineHeight:{...n.lineHeight,title1:44,headline1:24,body1:24,caption1:20,caption2:20}},s={fontSize:{display1:52,title1:36,title2:32,title3:28,title4:26,headline1:20,body1:20,label1:18,label2:18,caption1:16,caption2:16,legal1:15},lineHeight:{...o.lineHeight,title2:40,title3:36,headline1:28,body1:28,label1:24,label2:24,legal1:20}},r={fontSize:{display1:54,title1:38,title2:34,title3:30,title4:28,headline1:22,body1:22,label1:20,label2:20,caption1:18,caption2:18,legal1:17},lineHeight:{...s.lineHeight,title1:48,title2:44,title4:32,label1:28,label2:28,caption1:24,caption2:24}};export{b as a,p as b,c,d,g as e,i as f,a as g,t as h,n as i,o as j,s as k,r as l};
|