@yahoo/uds 0.5.7 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/cli/README.md +1 -0
  2. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  3. package/cli/bin/uds-darwin-x64 +0 -0
  4. package/cli/bin/uds-linux-arm64 +0 -0
  5. package/cli/bin/uds-linux-x64-baseline +0 -0
  6. package/cli/bin/uds-windows-x64-baseline.exe +0 -0
  7. package/cli/cli.ts +6 -0
  8. package/cli/commands/purge.ts +6 -2
  9. package/cli/compile.ts +35 -0
  10. package/cli/consts.ts +9 -0
  11. package/cli/exec.ts +34 -0
  12. package/cli/tsconfig.json +1 -0
  13. package/cli/uds-cli +32 -6
  14. package/cli/utils/configWorker.ts +2 -0
  15. package/cli/utils/purgeCSS.test.ts +2 -1
  16. package/cli/utils/purgeCSS.ts +31 -11
  17. package/cli/utils/setupConfigWorker.ts +12 -1
  18. package/dist/{Image.native-CIafNow6.d.cts → Image.native-BhqVvnKU.d.cts} +1 -1
  19. package/dist/{Image.native-Cbv-erHz.d.ts → Image.native-DZW5ek69.d.ts} +1 -1
  20. package/dist/{VStack-DTK919lo.d.ts → VStack-BohShRVo.d.ts} +1 -1
  21. package/dist/{VStack-DnjkTYdB.d.cts → VStack-C6VjEoRP.d.cts} +1 -1
  22. package/dist/experimental/index.cjs +4 -4
  23. package/dist/experimental/index.d.cts +2 -2
  24. package/dist/experimental/index.d.ts +2 -2
  25. package/dist/experimental/index.js +3 -3
  26. package/dist/experimental/index.native.cjs +1 -1
  27. package/dist/experimental/index.native.d.cts +3 -3
  28. package/dist/experimental/index.native.d.ts +3 -3
  29. package/dist/experimental/index.native.js +1 -1
  30. package/dist/fixtures.cjs +2 -1
  31. package/dist/fixtures.d.ts +5 -5
  32. package/dist/fixtures.js +2 -1
  33. package/dist/index.cjs +2 -2
  34. package/dist/index.d.cts +16 -13
  35. package/dist/index.d.ts +16 -13
  36. package/dist/index.js +3 -3
  37. package/dist/index.native-dtcAO8DN.d.cts +317 -0
  38. package/dist/index.native-uBCD4Hr4.d.ts +317 -0
  39. package/dist/index.native.cjs +1 -1
  40. package/dist/index.native.d.cts +60 -9
  41. package/dist/index.native.d.ts +60 -9
  42. package/dist/index.native.js +1 -1
  43. package/dist/metafile-cjs.json +1 -1
  44. package/dist/metafile-esm.json +1 -1
  45. package/dist/tailwind/plugin.cjs +1 -1
  46. package/dist/tailwind/plugin.d.cts +3 -3
  47. package/dist/tailwind/plugin.d.ts +3 -3
  48. package/dist/tailwind/plugin.js +3 -3
  49. package/dist/tailwind/purger.cjs +2 -2
  50. package/dist/tailwind/purger.js +2 -2
  51. package/dist/tailwind/tsMorph.cjs +1 -1
  52. package/dist/tailwind/tsMorph.js +2 -2
  53. package/dist/tokens/index.cjs +1 -1
  54. package/dist/tokens/index.d.cts +358 -5
  55. package/dist/tokens/index.d.ts +358 -5
  56. package/dist/tokens/index.js +2 -2
  57. package/dist/tokens/index.native.cjs +1 -1
  58. package/dist/tokens/index.native.d.cts +2 -2
  59. package/dist/tokens/index.native.d.ts +2 -2
  60. package/dist/tokens/index.native.js +1 -1
  61. package/dist/tokens/parseTokens.cjs +1 -1
  62. package/dist/tokens/parseTokens.d.cts +4 -4
  63. package/dist/tokens/parseTokens.d.ts +4 -4
  64. package/dist/tokens/parseTokens.js +1 -1
  65. package/dist/{types-BB7LBOmj.d.cts → types-BE7_GGFX.d.cts} +48 -41
  66. package/dist/{types-BB7LBOmj.d.ts → types-BE7_GGFX.d.ts} +48 -41
  67. package/dist/{types-DDJJDimt.d.cts → types-D0b0TPQ4.d.cts} +48 -41
  68. package/dist/{types-DDJJDimt.d.ts → types-D0b0TPQ4.d.ts} +48 -41
  69. package/package.json +199 -198
  70. package/dist/index.native-B7lxeKHq.d.ts +0 -15
  71. package/dist/index.native-y03H93Or.d.cts +0 -15
package/package.json CHANGED
@@ -1,198 +1,199 @@
1
- {
2
- "name": "@yahoo/uds",
3
- "description": "Yahoo Universal System",
4
- "version": "0.5.7",
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.9",
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:css": "tailwindcss --input ./src/tailwind/uds.css --output ./generated/uds.css --config ./src/tailwind/tailwind.config.ts",
106
+ "build:fixtures": "bun run ./scripts/buildFixtures.ts",
107
+ "build:fontcss": "bun run ./scripts/generateFontCSS.ts --output ./generated/fonts.css",
108
+ "build:purgeCSSData": "bun run ./scripts/generatePurgeCSSData.ts",
109
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf .coverage",
110
+ "dev": "concurrently bun:dev:*",
111
+ "dev:fixtures": "bun run ./scripts/buildFixtures.ts --watch",
112
+ "dev:fontcss": "bun run --watch --clear-screen=false ./scripts/generateFontCSS.ts --output ./generated/fonts.css",
113
+ "dev:purgeCSSData": "bun run ./scripts/generatePurgeCSSData.ts --watch",
114
+ "dev:ts": "tsup --watch",
115
+ "lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .",
116
+ "lint:pkg": "bun publint",
117
+ "test": "vitest run",
118
+ "test:bun": "bun run test:bun:scripts && bun run test:bun:cli",
119
+ "test:bun:cli": "cd ./cli && bun test",
120
+ "test:bun:scripts": "cd ./scripts && bun test",
121
+ "test:coverage": "vitest run --coverage",
122
+ "test:ui": "vitest --ui --coverage",
123
+ "test:watch": "vitest",
124
+ "typecheck": "concurrently bun:typecheck:*",
125
+ "typecheck:cli": "tsc -p ./cli --noEmit",
126
+ "typecheck:scripts": "tsc -p ./scripts --noEmit",
127
+ "typecheck:uds": "tsc -p . --noEmit"
128
+ },
129
+ "dependencies": {
130
+ "@ariakit/react": "^0.4.5",
131
+ "bluebun": "^0.0.34",
132
+ "clsx": "^2.1.0",
133
+ "lodash-es": "^4.17.21",
134
+ "prompts": "^2.4.2",
135
+ "react-toastify": "^10.0.5",
136
+ "tailwind-merge": "^2.3.0",
137
+ "ts-morph": "^23.0.0"
138
+ },
139
+ "devDependencies": {
140
+ "@fullhuman/postcss-purgecss": "^6.0.0",
141
+ "@types/prompts": "^2.4.9",
142
+ "@types/react": "^18.2.74",
143
+ "@types/react-dom": "^18.2.24",
144
+ "@yahoo/uds-icons": "0.0.13",
145
+ "autoprefixer": "^10.4.19",
146
+ "chalk": "^5.3.0",
147
+ "concurrently": "^8.2.2",
148
+ "postcss": "^8.4.38",
149
+ "shared": "0.0.7",
150
+ "tailwindcss": "^3.4.3",
151
+ "terser": "^5.30.4",
152
+ "tsconfig": "0.0.1",
153
+ "tsup": "^8.0.2"
154
+ },
155
+ "peerDependencies": {
156
+ "@gorhom/bottom-sheet": "^4.6.1",
157
+ "@react-navigation/native": "^6.1.17",
158
+ "expo-constants": "^16.0.0",
159
+ "expo-image": "^1.10.6",
160
+ "expo-status-bar": "^1.11.1",
161
+ "react": "^18.2.0",
162
+ "react-dom": "^18.2.0",
163
+ "react-native": "^0.74.0",
164
+ "react-native-safe-area-context": "^4.9.0",
165
+ "tailwindcss": "^3.4.3"
166
+ },
167
+ "peerDependenciesMeta": {
168
+ "@gorhom/bottom-sheet": {
169
+ "optional": true
170
+ },
171
+ "@react-navigation/native": {
172
+ "optional": true
173
+ },
174
+ "expo-constants": {
175
+ "optional": true
176
+ },
177
+ "expo-image": {
178
+ "optional": true
179
+ },
180
+ "expo-status-bar": {
181
+ "optional": true
182
+ },
183
+ "react": {
184
+ "optional": false
185
+ },
186
+ "react-dom": {
187
+ "optional": true
188
+ },
189
+ "react-native": {
190
+ "optional": true
191
+ },
192
+ "react-native-safe-area-context": {
193
+ "optional": true
194
+ },
195
+ "tailwindcss": {
196
+ "optional": true
197
+ }
198
+ }
199
+ }
@@ -1,15 +0,0 @@
1
- import { k as UniversalTokensConfig, q as FontFamilyGlobalConfig, ab as FontWeightDescriptive, ac as FontWeightNumeric, C as ColorModeForApp, S as ScaleModeForApp, i as ColorMode, j as ScaleMode, ag as HighContrastMode, az as RegionMode } from './types-DDJJDimt.js';
2
-
3
- declare const defaultTokensConfig: UniversalTokensConfig;
4
-
5
- declare const fontFamilyGlobal: FontFamilyGlobalConfig;
6
- declare const fontWeightMap: Record<FontWeightDescriptive, FontWeightNumeric>;
7
-
8
- declare const DEFAULT_COLOR_MODE_FOR_APP: ColorModeForApp;
9
- declare const DEFAULT_SCALE_MODE_FOR_APP: ScaleModeForApp;
10
- declare const DEFAULT_COLOR_MODE: ColorMode;
11
- declare const DEFAULT_SCALE_MODE: ScaleMode;
12
- declare const DEFAULT_HIGH_CONTRAST_MODE: HighContrastMode;
13
- declare const DEFAULT_REGION_MODE: RegionMode;
14
-
15
- export { DEFAULT_COLOR_MODE_FOR_APP as D, fontWeightMap as a, DEFAULT_SCALE_MODE_FOR_APP as b, DEFAULT_COLOR_MODE as c, defaultTokensConfig as d, DEFAULT_SCALE_MODE as e, fontFamilyGlobal as f, DEFAULT_HIGH_CONTRAST_MODE as g, DEFAULT_REGION_MODE as h };
@@ -1,15 +0,0 @@
1
- import { k as UniversalTokensConfig, q as FontFamilyGlobalConfig, ab as FontWeightDescriptive, ac as FontWeightNumeric, C as ColorModeForApp, S as ScaleModeForApp, i as ColorMode, j as ScaleMode, ag as HighContrastMode, az as RegionMode } from './types-DDJJDimt.cjs';
2
-
3
- declare const defaultTokensConfig: UniversalTokensConfig;
4
-
5
- declare const fontFamilyGlobal: FontFamilyGlobalConfig;
6
- declare const fontWeightMap: Record<FontWeightDescriptive, FontWeightNumeric>;
7
-
8
- declare const DEFAULT_COLOR_MODE_FOR_APP: ColorModeForApp;
9
- declare const DEFAULT_SCALE_MODE_FOR_APP: ScaleModeForApp;
10
- declare const DEFAULT_COLOR_MODE: ColorMode;
11
- declare const DEFAULT_SCALE_MODE: ScaleMode;
12
- declare const DEFAULT_HIGH_CONTRAST_MODE: HighContrastMode;
13
- declare const DEFAULT_REGION_MODE: RegionMode;
14
-
15
- export { DEFAULT_COLOR_MODE_FOR_APP as D, fontWeightMap as a, DEFAULT_SCALE_MODE_FOR_APP as b, DEFAULT_COLOR_MODE as c, defaultTokensConfig as d, DEFAULT_SCALE_MODE as e, fontFamilyGlobal as f, DEFAULT_HIGH_CONTRAST_MODE as g, DEFAULT_REGION_MODE as h };