@yahoo/uds 0.1.11 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. package/cli/README.md +135 -0
  2. package/cli/commands/config/config.ts +10 -0
  3. package/cli/commands/config/sync.ts +22 -0
  4. package/cli/commands/expo/_setup.ts +260 -0
  5. package/cli/commands/expo/build.ts +15 -0
  6. package/cli/commands/expo/dev.ts +79 -0
  7. package/cli/commands/expo/expo.ts +23 -0
  8. package/cli/commands/expo/launch.ts +15 -0
  9. package/cli/commands/expo/update.ts +16 -0
  10. package/cli/commands/nextjs/dev.ts +17 -0
  11. package/cli/commands/nextjs/nextjs.ts +10 -0
  12. package/cli/commands/uds.ts +10 -0
  13. package/cli/commands/version.ts +11 -0
  14. package/cli/env.d.ts +15 -0
  15. package/cli/eslint.config.mjs +8 -0
  16. package/cli/tsconfig.json +10 -0
  17. package/cli/uds-cli +7 -0
  18. package/cli/utils/configWorker.ts +9 -0
  19. package/cli/utils/getCommandHelp.ts +65 -0
  20. package/cli/utils/setupConfigWorker.ts +81 -0
  21. package/cli/utils/sortKeys.ts +27 -0
  22. package/cli/utils/types.ts +13 -0
  23. package/dist/chunk-3I3D5S54.js +1 -0
  24. package/dist/chunk-74YHFBTD.js +1 -0
  25. package/dist/chunk-AWTLI4D3.js +1 -0
  26. package/dist/chunk-D4K3CXV6.js +0 -0
  27. package/dist/chunk-M346JMQS.js +0 -0
  28. package/dist/chunk-MBOOJIH7.js +1 -0
  29. package/dist/chunk-MFA2Y7DA.js +1 -0
  30. package/dist/chunk-P7GR6E3K.js +1 -0
  31. package/dist/chunk-PQBOZFJV.js +1 -0
  32. package/dist/chunk-WYDHNV42.js +1 -0
  33. package/dist/fixtures/index.cjs +1 -0
  34. package/dist/fixtures/index.d.cts +141 -0
  35. package/dist/fixtures/index.d.ts +141 -0
  36. package/dist/fixtures/index.js +1 -0
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.d.cts +62 -93
  39. package/dist/index.d.ts +62 -93
  40. package/dist/index.js +1 -1
  41. package/dist/index.native-3ww4C4UV.d.cts +15 -0
  42. package/dist/index.native-9kYJrUPa.d.ts +15 -0
  43. package/dist/index.native.cjs +1 -0
  44. package/dist/index.native.d.cts +1493 -0
  45. package/dist/index.native.d.ts +1493 -0
  46. package/dist/index.native.js +1 -0
  47. package/dist/tailwindPlugin.cjs +1 -1
  48. package/dist/tailwindPlugin.d.cts +2 -1
  49. package/dist/tailwindPlugin.d.ts +2 -1
  50. package/dist/tailwindPlugin.js +1 -1
  51. package/dist/tokens/index.cjs +1 -0
  52. package/dist/tokens/index.d.cts +39 -0
  53. package/dist/tokens/index.d.ts +39 -0
  54. package/dist/tokens/index.js +1 -0
  55. package/dist/tokens/index.native.cjs +1 -0
  56. package/dist/tokens/index.native.d.cts +3 -0
  57. package/dist/tokens/index.native.d.ts +3 -0
  58. package/dist/tokens/index.native.js +1 -0
  59. package/dist/tokens/parseTokens.cjs +1 -0
  60. package/dist/tokens/parseTokens.d.cts +85 -0
  61. package/dist/tokens/parseTokens.d.ts +85 -0
  62. package/dist/tokens/parseTokens.js +1 -0
  63. package/dist/tokens/parseTokens.native.cjs +1 -0
  64. package/dist/tokens/parseTokens.native.d.cts +416 -0
  65. package/dist/tokens/parseTokens.native.d.ts +416 -0
  66. package/dist/tokens/parseTokens.native.js +1 -0
  67. package/dist/types-J4DLS6Xj.d.cts +38 -0
  68. package/dist/types-J4DLS6Xj.d.ts +38 -0
  69. package/dist/types-hirL9Qk5.d.cts +510 -0
  70. package/dist/types-hirL9Qk5.d.ts +510 -0
  71. package/fonts/mobile.cjs +29 -0
  72. package/fonts/mobile.d.ts +3 -0
  73. package/fonts/yahoo-icons.ttf +0 -0
  74. package/fonts/yahoo-sans-beta-bold.otf +0 -0
  75. package/fonts/yahoo-sans-beta-medium.otf +0 -0
  76. package/fonts/yahoo-sans-beta-regular.otf +0 -0
  77. package/fonts/yahoo-sans-black.otf +0 -0
  78. package/fonts/yahoo-sans-bold.otf +0 -0
  79. package/fonts/yahoo-sans-condensed-black.otf +0 -0
  80. package/fonts/yahoo-sans-condensed-bold.otf +0 -0
  81. package/fonts/yahoo-sans-condensed-light.otf +0 -0
  82. package/fonts/yahoo-sans-condensed-medium.otf +0 -0
  83. package/fonts/yahoo-sans-condensed-regular.otf +0 -0
  84. package/fonts/yahoo-sans-extrabold.otf +0 -0
  85. package/fonts/yahoo-sans-extralight.otf +0 -0
  86. package/fonts/yahoo-sans-italic.otf +0 -0
  87. package/fonts/yahoo-sans-light.otf +0 -0
  88. package/fonts/yahoo-sans-medium.otf +0 -0
  89. package/fonts/yahoo-sans-regular.otf +0 -0
  90. package/fonts/yahoo-sans-semibold.otf +0 -0
  91. package/fonts/yahoo-serif-display-black.otf +0 -0
  92. package/fonts/yahoo-serif-display-bold.otf +0 -0
  93. package/fonts/yahoo-serif-display-extrabold.otf +0 -0
  94. package/fonts/yahoo-serif-display-light.otf +0 -0
  95. package/fonts/yahoo-serif-display-regular.otf +0 -0
  96. package/fonts/yahoo-serif-text-bold.otf +0 -0
  97. package/fonts/yahoo-serif-text-italic.otf +0 -0
  98. package/fonts/yahoo-serif-text-regular.otf +0 -0
  99. package/package.json +130 -35
  100. package/bin/uds +0 -0
package/package.json CHANGED
@@ -1,39 +1,100 @@
1
1
  {
2
2
  "name": "@yahoo/uds",
3
- "version": "0.1.11",
3
+ "description": "Yahoo Universal System",
4
+ "version": "0.1.13",
4
5
  "type": "module",
5
- "sideEffects": false,
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
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js",
14
- "require": "./dist/index.cjs",
15
- "module": "./dist/index.js"
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
- "types": "./dist/tailwindPlugin.d.ts",
19
- "import": "./dist/tailwindPlugin.js",
20
- "require": "./dist/tailwindPlugin.cjs",
21
- "module": "./dist/tailwindPlugin.js"
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
+ }
41
+ },
42
+ "./fixtures": {
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"
58
+ },
59
+ "./tokens": {
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
+ }
68
+ },
69
+ "./tokens/parseTokens": {
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
+ }
22
83
  },
23
84
  "./styles/*": "./dist/styles/*",
24
85
  "./package.json": "./package.json"
25
86
  },
26
87
  "scripts": {
27
- "build": "bun run build:fontcss && tsup",
28
- "build:cli": "bun run ./scripts/buildCli.ts",
88
+ "build": "bun run build:fontcss && bun run build:fixtures && tsup",
29
89
  "build:css": "tailwindcss --input ./src/tailwind/uds.css --output ./generated/uds.css --config ./src/tailwind/tailwind.config.ts",
90
+ "build:fixtures": "bun run ./scripts/buildFixtures.ts",
30
91
  "build:fontcss": "tsx ./scripts/generateFontCSS.ts --output ./generated/fonts.css",
31
92
  "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
32
93
  "dev": "concurrently bun:dev:*",
33
- "dev:cli": "bun run ./scripts/buildCli.ts --watch",
34
94
  "dev:fontcss": "tsx watch --clear-screen=false ./scripts/generateFontCSS.ts --output ./generated/fonts.css",
35
95
  "dev:ts": "tsup --watch",
36
96
  "lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .",
97
+ "lint:pkg": "bun publint",
37
98
  "test": "vitest run",
38
99
  "test:coverage": "vitest run --coverage",
39
100
  "test:ui": "vitest --ui --coverage",
@@ -45,41 +106,75 @@
45
106
  },
46
107
  "dependencies": {
47
108
  "@ariakit/react": "^0.4.0",
48
- "@yahoo/uds-fixtures": "workspace:*",
49
- "@yahoo/uds-tokens": "workspace:*",
109
+ "@expo/eas-json": "^7.1.0",
110
+ "bluebun": "0.0.34",
50
111
  "clsx": "^2.1.0",
51
112
  "react-toastify": "^9.1.3",
52
- "tailwind-merge": "^2.2.1",
53
- "tailwindcss": "^3.4.1"
113
+ "tailwind-merge": "^2.2.1"
54
114
  },
55
115
  "devDependencies": {
116
+ "@gorhom/bottom-sheet": "^4.6.0",
117
+ "@react-navigation/native": "^6.0.2",
56
118
  "@types/react": "^18.2.48",
57
119
  "@types/react-dom": "^18.2.18",
58
- "bluebun": "0.0.34",
59
120
  "concurrently": "^8.2.2",
60
- "database": "workspace:*",
61
- "eslint-config-custom": "workspace:*",
121
+ "expo-constants": "^15.4.5",
122
+ "expo-image": "^1.10.4",
123
+ "expo-status-bar": "^1.11.1",
62
124
  "react": "^18.2.0",
63
125
  "react-dom": "^18.2.0",
126
+ "react-native": "^0.73.2",
127
+ "react-native-safe-area-context": "^4.8.2",
64
128
  "shared": "workspace:*",
65
129
  "tsconfig": "workspace:*",
66
130
  "tsup": "^8.0.1",
67
- "tsx": "^4.7.0",
68
- "typescript": "^5.3.3"
131
+ "tsx": "^4.7.0"
69
132
  },
70
133
  "peerDependencies": {
71
- "@gorhom/bottom-sheet": "4.5.1",
72
- "expo-constants": "~14.4.2",
73
- "expo-image": "~1.3.4",
74
- "expo-status-bar": "~1.6.0",
75
- "react-native": "^0.72.6",
76
- "react-native-safe-area-context": "4.6.3"
77
- },
78
- "bin": {
79
- "uds": "./bin/uds"
134
+ "@gorhom/bottom-sheet": "^4.6.0",
135
+ "@react-navigation/native": "^6.0.2",
136
+ "expo-constants": "^15.4.5",
137
+ "expo-image": "^1.10.4",
138
+ "expo-status-bar": "^1.11.1",
139
+ "react": "^18.2.0",
140
+ "react-dom": "^18.2.0",
141
+ "react-native": "^0.73.2",
142
+ "react-native-safe-area-context": "^4.8.2",
143
+ "tailwindcss": "^3.4.1"
80
144
  },
81
- "description": "Yahoo Universal System",
82
- "main": "./dist/index.cjs",
83
- "module": "./dist/index.js",
84
- "types": "./dist/index.d.ts"
145
+ "peerDependenciesMeta": {
146
+ "@expo/eas-json": {
147
+ "optional": true
148
+ },
149
+ "@gorhom/bottom-sheet": {
150
+ "optional": true
151
+ },
152
+ "@react-navigation/native": {
153
+ "optional": true
154
+ },
155
+ "expo-constants": {
156
+ "optional": true
157
+ },
158
+ "expo-image": {
159
+ "optional": true
160
+ },
161
+ "expo-status-bar": {
162
+ "optional": true
163
+ },
164
+ "react": {
165
+ "optional": false
166
+ },
167
+ "react-dom": {
168
+ "optional": true
169
+ },
170
+ "react-native": {
171
+ "optional": true
172
+ },
173
+ "react-native-safe-area-context": {
174
+ "optional": true
175
+ },
176
+ "tailwindcss": {
177
+ "optional": true
178
+ }
179
+ }
85
180
  }
package/bin/uds DELETED
Binary file