@expo/styleguide 15.0.3 → 15.0.4
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.
- package/CHANGELOG.md +8 -0
- package/README.md +10 -14
- package/dist/expo-theme.css +38 -38
- package/dist/src/components/Button/Button.d.ts +2 -2
- package/dist/src/components/Button/Button.js +48 -180
- package/dist/src/components/Button/ButtonBase.js +19 -73
- package/dist/src/components/Link/Link.js +27 -21
- package/dist/src/components/Link/LinkBase.js +63 -57
- package/dist/src/components/Theme/ThemeProvider.d.ts +1 -1
- package/dist/src/components/Theme/ThemeProvider.js +94 -170
- package/dist/src/logos/DocsLogo.d.ts +1 -1
- package/dist/src/logos/DocsLogo.js +28 -21
- package/dist/src/logos/ExpoGoLogo.d.ts +1 -1
- package/dist/src/logos/ExpoGoLogo.js +26 -19
- package/dist/src/logos/Logo.d.ts +1 -1
- package/dist/src/logos/Logo.js +26 -19
- package/dist/src/logos/OrbitLogo.d.ts +1 -1
- package/dist/src/logos/OrbitLogo.js +28 -21
- package/dist/src/logos/RouterLogo.d.ts +1 -1
- package/dist/src/logos/RouterLogo.js +28 -21
- package/dist/src/logos/SnackLogo.d.ts +1 -1
- package/dist/src/logos/SnackLogo.js +28 -21
- package/dist/src/logos/WordMarkLogo.d.ts +1 -1
- package/dist/src/logos/WordMarkLogo.js +26 -19
- package/dist/src/styles/typography.d.ts +17 -17
- package/package.json +56 -34
- package/tailwind.js +22 -11
package/package.json
CHANGED
|
@@ -1,59 +1,81 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.4",
|
|
4
4
|
"description": "Expo's styleguide components for use on the web.",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"sideEffects": [
|
|
8
|
-
"**/*.css"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"expo"
|
|
9
7
|
],
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"author": "Expo",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/expo/universe.git",
|
|
13
|
+
"directory": "server/website/packages/styleguide"
|
|
14
|
+
},
|
|
10
15
|
"files": [
|
|
11
16
|
"dist",
|
|
12
17
|
"tailwind.js"
|
|
13
18
|
],
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"**/*.css"
|
|
21
|
+
],
|
|
22
|
+
"main": "dist/index.js",
|
|
23
|
+
"types": "dist/index.d.ts",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"default": "./dist/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./tailwind": "./tailwind.js",
|
|
30
|
+
"./expo-theme.css": "./dist/expo-theme.css",
|
|
31
|
+
"./*": "./*"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"main": "dist/index.js",
|
|
35
|
+
"types": "dist/index.d.ts",
|
|
36
|
+
"exports": {
|
|
37
|
+
".": {
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"default": "./dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./tailwind": "./tailwind.js",
|
|
42
|
+
"./expo-theme.css": "./dist/expo-theme.css",
|
|
43
|
+
"./*": "./*"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
14
46
|
"scripts": {
|
|
15
|
-
"clean": "
|
|
47
|
+
"clean": "rm -rf dist",
|
|
16
48
|
"bundle": "rollup --config",
|
|
17
|
-
"types": "yarn run -T tsc",
|
|
18
|
-
"build": "
|
|
49
|
+
"types": "yarn run -T -B tsc",
|
|
50
|
+
"build": "yarn clean && yarn bundle && yarn types",
|
|
19
51
|
"dev": "rollup --config --watch",
|
|
20
52
|
"test": "NODE_ENV=test vitest run"
|
|
21
53
|
},
|
|
22
|
-
"homepage": "https://github.com/expo/styleguide",
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "https://github.com/expo/styleguide.git",
|
|
26
|
-
"directory": "packages/styleguide"
|
|
27
|
-
},
|
|
28
|
-
"keywords": [
|
|
29
|
-
"expo"
|
|
30
|
-
],
|
|
31
|
-
"author": "Expo",
|
|
32
|
-
"license": "MIT",
|
|
33
|
-
"bugs": {
|
|
34
|
-
"url": "https://github.com/expo/styleguide/issues"
|
|
35
|
-
},
|
|
36
54
|
"dependencies": {
|
|
37
|
-
"@expo/styleguide-base": "^4.0.
|
|
38
|
-
"tailwind-merge": "^3.
|
|
55
|
+
"@expo/styleguide-base": "^4.0.2",
|
|
56
|
+
"tailwind-merge": "^3.6.0"
|
|
39
57
|
},
|
|
40
58
|
"devDependencies": {
|
|
41
|
-
"@
|
|
59
|
+
"@babel/core": "^8.0.1",
|
|
60
|
+
"@babel/preset-react": "^8.0.1",
|
|
61
|
+
"@babel/preset-typescript": "^8.0.1",
|
|
62
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
63
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
64
|
+
"@tailwindcss/typography": "^0.5.20",
|
|
42
65
|
"@testing-library/dom": "^10.4.1",
|
|
43
66
|
"@testing-library/react": "^16.3.2",
|
|
67
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
44
68
|
"jsdom": "^27.0.0",
|
|
45
|
-
"next": "16.
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"rollup": "*",
|
|
69
|
+
"next": "patch:next@npm%3A16.4.5#~/.yarn/patches/next-npm-16.4.5-ae3bf77b43.patch",
|
|
70
|
+
"rollup": "^4.57.1",
|
|
71
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
49
72
|
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
50
|
-
"tailwindcss": "^4.
|
|
51
|
-
"vitest": "
|
|
73
|
+
"tailwindcss": "^4.3.3",
|
|
74
|
+
"vitest": "^4.0.18"
|
|
52
75
|
},
|
|
53
76
|
"peerDependencies": {
|
|
54
77
|
"next": ">= 16",
|
|
55
78
|
"react": ">= 19",
|
|
56
79
|
"tailwindcss": "^4.2.2"
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
}
|
|
80
|
+
}
|
|
81
|
+
}
|
package/tailwind.js
CHANGED
|
@@ -162,21 +162,24 @@ const expoTailwindConfig = {
|
|
|
162
162
|
'button-primary-disabled': 'var(--expo-theme-button-primary-disabled-background)',
|
|
163
163
|
'button-primary-destructive': 'var(--expo-theme-button-primary-destructive-background)',
|
|
164
164
|
'button-primary-destructive-hover': 'var(--expo-theme-button-primary-destructive-hover)',
|
|
165
|
-
'button-primary-destructive-disabled':
|
|
165
|
+
'button-primary-destructive-disabled':
|
|
166
|
+
'var(--expo-theme-button-primary-destructive-disabled-background)',
|
|
166
167
|
|
|
167
168
|
'button-secondary': 'var(--expo-theme-button-secondary-background)',
|
|
168
169
|
'button-secondary-hover': 'var(--expo-theme-button-secondary-hover)',
|
|
169
170
|
'button-secondary-disabled': 'var(--expo-theme-button-secondary-disabled-background)',
|
|
170
171
|
'button-secondary-destructive': 'var(--expo-theme-button-secondary-destructive-background)',
|
|
171
172
|
'button-secondary-destructive-hover': 'var(--expo-theme-button-secondary-destructive-hover)',
|
|
172
|
-
'button-secondary-destructive-disabled':
|
|
173
|
+
'button-secondary-destructive-disabled':
|
|
174
|
+
'var(--expo-theme-button-secondary-destructive-disabled-background)',
|
|
173
175
|
|
|
174
176
|
'button-tertiary': 'var(--expo-theme-button-tertiary-background)',
|
|
175
177
|
'button-tertiary-hover': 'var(--expo-theme-button-tertiary-hover)',
|
|
176
178
|
'button-tertiary-disabled': 'var(--expo-theme-button-tertiary-disabled-background)',
|
|
177
179
|
'button-tertiary-destructive': 'var(--expo-theme-button-tertiary-destructive-background)',
|
|
178
180
|
'button-tertiary-destructive-hover': 'var(--expo-theme-button-tertiary-destructive-hover)',
|
|
179
|
-
'button-tertiary-destructive-disabled':
|
|
181
|
+
'button-tertiary-destructive-disabled':
|
|
182
|
+
'var(--expo-theme-button-tertiary-destructive-disabled-background)',
|
|
180
183
|
|
|
181
184
|
'button-quaternary': 'var(--expo-theme-button-quaternary-background)',
|
|
182
185
|
'button-quaternary-hover': 'var(--expo-theme-button-quaternary-hover)',
|
|
@@ -205,17 +208,20 @@ const expoTailwindConfig = {
|
|
|
205
208
|
'button-primary': 'var(--expo-theme-button-primary-border)',
|
|
206
209
|
'button-primary-disabled': 'var(--expo-theme-button-primary-disabled-border)',
|
|
207
210
|
'button-primary-destructive': 'var(--expo-theme-button-primary-destructive-border)',
|
|
208
|
-
'button-primary-destructive-disabled':
|
|
211
|
+
'button-primary-destructive-disabled':
|
|
212
|
+
'var(--expo-theme-button-primary-destructive-disabled-border)',
|
|
209
213
|
|
|
210
214
|
'button-secondary': 'var(--expo-theme-button-secondary-border)',
|
|
211
215
|
'button-secondary-disabled': 'var(--expo-theme-button-secondary-disabled-border)',
|
|
212
216
|
'button-secondary-destructive': 'var(--expo-theme-button-secondary-destructive-border)',
|
|
213
|
-
'button-secondary-destructive-disabled':
|
|
217
|
+
'button-secondary-destructive-disabled':
|
|
218
|
+
'var(--expo-theme-button-secondary-destructive-disabled-border)',
|
|
214
219
|
|
|
215
220
|
'button-tertiary': 'var(--expo-theme-button-tertiary-border)',
|
|
216
221
|
'button-tertiary-disabled': 'var(--expo-theme-button-tertiary-disabled-border)',
|
|
217
222
|
'button-tertiary-destructive': 'var(--expo-theme-button-tertiary-destructive-border)',
|
|
218
|
-
'button-tertiary-destructive-disabled':
|
|
223
|
+
'button-tertiary-destructive-disabled':
|
|
224
|
+
'var(--expo-theme-button-tertiary-destructive-disabled-border)',
|
|
219
225
|
|
|
220
226
|
'button-quaternary': 'var(--expo-theme-button-quaternary-border)',
|
|
221
227
|
'button-quaternary-disabled': 'var(--expo-theme-button-quaternary-disabled-border)',
|
|
@@ -258,21 +264,24 @@ const expoTailwindConfig = {
|
|
|
258
264
|
'button-primary-disabled': 'var(--expo-theme-button-primary-disabled-text)',
|
|
259
265
|
'button-primary-destructive': 'var(--expo-theme-button-primary-destructive-text)',
|
|
260
266
|
'button-primary-destructive-icon': 'var(--expo-theme-button-primary-destructive-icon)',
|
|
261
|
-
'button-primary-destructive-disabled':
|
|
267
|
+
'button-primary-destructive-disabled':
|
|
268
|
+
'var(--expo-theme-button-primary-destructive-disabled-text)',
|
|
262
269
|
|
|
263
270
|
'button-secondary': 'var(--expo-theme-button-secondary-text)',
|
|
264
271
|
'button-secondary-icon': 'var(--expo-theme-button-secondary-icon)',
|
|
265
272
|
'button-secondary-disabled': 'var(--expo-theme-button-secondary-disabled-text)',
|
|
266
273
|
'button-secondary-destructive': 'var(--expo-theme-button-secondary-destructive-text)',
|
|
267
274
|
'button-secondary-destructive-icon': 'var(--expo-theme-button-secondary-destructive-icon)',
|
|
268
|
-
'button-secondary-destructive-disabled':
|
|
275
|
+
'button-secondary-destructive-disabled':
|
|
276
|
+
'var(--expo-theme-button-secondary-destructive-disabled-text)',
|
|
269
277
|
|
|
270
278
|
'button-tertiary': 'var(--expo-theme-button-tertiary-text)',
|
|
271
279
|
'button-tertiary-icon': 'var(--expo-theme-button-tertiary-icon)',
|
|
272
280
|
'button-tertiary-disabled': 'var(--expo-theme-button-tertiary-disabled-text)',
|
|
273
281
|
'button-tertiary-destructive': 'var(--expo-theme-button-tertiary-destructive-text)',
|
|
274
282
|
'button-tertiary-destructive-icon': 'var(--expo-theme-button-tertiary-destructive-icon)',
|
|
275
|
-
'button-tertiary-destructive-disabled':
|
|
283
|
+
'button-tertiary-destructive-disabled':
|
|
284
|
+
'var(--expo-theme-button-tertiary-destructive-disabled-text)',
|
|
276
285
|
|
|
277
286
|
'button-quaternary': 'var(--expo-theme-button-quaternary-text)',
|
|
278
287
|
'button-quaternary-icon': 'var(--expo-theme-button-quaternary-icon)',
|
|
@@ -652,10 +661,12 @@ const expoTailwindConfig = {
|
|
|
652
661
|
},
|
|
653
662
|
|
|
654
663
|
'.asset-shadow': {
|
|
655
|
-
filter:
|
|
664
|
+
filter:
|
|
665
|
+
'drop-shadow(0 3px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.07))',
|
|
656
666
|
},
|
|
657
667
|
'.asset-sm-shadow': {
|
|
658
|
-
filter:
|
|
668
|
+
filter:
|
|
669
|
+
'drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.03))',
|
|
659
670
|
},
|
|
660
671
|
});
|
|
661
672
|
}),
|