@expo/styleguide 15.0.3 → 15.1.0
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 +18 -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 +101 -95
- package/dist/src/components/Button/ButtonBase.js +39 -33
- 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 +58 -45
- package/dist/src/logos/DocsLogo.d.ts +1 -1
- package/dist/src/logos/DocsLogo.js +27 -21
- package/dist/src/logos/ExpoGoLogo.d.ts +1 -1
- package/dist/src/logos/ExpoGoLogo.js +25 -19
- package/dist/src/logos/Logo.d.ts +1 -1
- package/dist/src/logos/Logo.js +25 -19
- package/dist/src/logos/OrbitLogo.d.ts +1 -1
- package/dist/src/logos/OrbitLogo.js +27 -21
- package/dist/src/logos/RouterLogo.d.ts +1 -1
- package/dist/src/logos/RouterLogo.js +27 -21
- package/dist/src/logos/SnackLogo.d.ts +1 -1
- package/dist/src/logos/SnackLogo.js +27 -21
- package/dist/src/logos/WordMarkLogo.d.ts +1 -1
- package/dist/src/logos/WordMarkLogo.js +25 -19
- package/dist/src/styles/typography.d.ts +17 -17
- package/package.json +56 -34
- package/tailwind.js +49 -11
package/package.json
CHANGED
|
@@ -1,59 +1,81 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide",
|
|
3
|
-
"version": "15.0
|
|
3
|
+
"version": "15.1.0",
|
|
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.1.0",
|
|
56
|
+
"tailwind-merge": "^3.6.0"
|
|
39
57
|
},
|
|
40
58
|
"devDependencies": {
|
|
41
|
-
"@
|
|
59
|
+
"@babel/core": "^7.29.0",
|
|
60
|
+
"@babel/preset-react": "^7.28.5",
|
|
61
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
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)',
|
|
@@ -365,6 +374,32 @@ const expoTailwindConfig = {
|
|
|
365
374
|
},
|
|
366
375
|
],
|
|
367
376
|
},
|
|
377
|
+
label: {
|
|
378
|
+
lg: {
|
|
379
|
+
fontSize: '18px',
|
|
380
|
+
fontWeight: 'var(--tw-font-weight, 500)',
|
|
381
|
+
lineHeight: 1,
|
|
382
|
+
letterSpacing: '0',
|
|
383
|
+
},
|
|
384
|
+
base: {
|
|
385
|
+
fontSize: '16px',
|
|
386
|
+
fontWeight: 'var(--tw-font-weight, 500)',
|
|
387
|
+
lineHeight: 1,
|
|
388
|
+
letterSpacing: '0',
|
|
389
|
+
},
|
|
390
|
+
sm: {
|
|
391
|
+
fontSize: '14px',
|
|
392
|
+
fontWeight: 'var(--tw-font-weight, 500)',
|
|
393
|
+
lineHeight: 1,
|
|
394
|
+
letterSpacing: '0',
|
|
395
|
+
},
|
|
396
|
+
xs: {
|
|
397
|
+
fontSize: '12px',
|
|
398
|
+
fontWeight: 'var(--tw-font-weight, 500)',
|
|
399
|
+
lineHeight: 1,
|
|
400
|
+
letterSpacing: '0',
|
|
401
|
+
},
|
|
402
|
+
},
|
|
368
403
|
heading: {
|
|
369
404
|
'5xl': {
|
|
370
405
|
fontSize: '64px',
|
|
@@ -589,6 +624,7 @@ const expoTailwindConfig = {
|
|
|
589
624
|
addVariant('compact-height', `@media (max-height: 788px) and (min-width: 1008px)`);
|
|
590
625
|
|
|
591
626
|
matchUtilities({ heading: (value) => value }, { values: theme('heading') });
|
|
627
|
+
matchUtilities({ label: (value) => value }, { values: theme('label') });
|
|
592
628
|
|
|
593
629
|
addComponents({
|
|
594
630
|
'.eyebrow': {
|
|
@@ -652,10 +688,12 @@ const expoTailwindConfig = {
|
|
|
652
688
|
},
|
|
653
689
|
|
|
654
690
|
'.asset-shadow': {
|
|
655
|
-
filter:
|
|
691
|
+
filter:
|
|
692
|
+
'drop-shadow(0 3px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.07))',
|
|
656
693
|
},
|
|
657
694
|
'.asset-sm-shadow': {
|
|
658
|
-
filter:
|
|
695
|
+
filter:
|
|
696
|
+
'drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.03))',
|
|
659
697
|
},
|
|
660
698
|
});
|
|
661
699
|
}),
|