@expo/styleguide 15.0.2 → 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.
@@ -170,17 +170,17 @@ export declare const typography: {
170
170
  fontWeight: number;
171
171
  };
172
172
  code: {
173
- lineHeight: number;
174
173
  fontSize: string;
175
174
  letterSpacing: string;
176
175
  fontWeight: number;
176
+ lineHeight: number;
177
177
  };
178
178
  eyebrow: {
179
179
  fontWeight: number;
180
180
  fontSize: string;
181
181
  lineHeight: number;
182
182
  letterSpacing: string;
183
- textTransform: "uppercase";
183
+ textTransform: 'uppercase';
184
184
  };
185
185
  ul: {
186
186
  marginLeft: string;
@@ -197,20 +197,20 @@ export declare const typography: {
197
197
  };
198
198
  };
199
199
  li: {
200
- marginBottom: string;
201
200
  fontSize: string;
202
201
  lineHeight: number;
203
202
  letterSpacing: string;
204
203
  fontWeight: number;
204
+ marginBottom: string;
205
205
  };
206
206
  blockquote: {
207
- color: string;
208
- paddingLeft: number;
209
- borderLeft: string;
210
207
  fontSize: string;
211
208
  lineHeight: number;
212
209
  letterSpacing: string;
213
210
  fontWeight: number;
211
+ color: string;
212
+ paddingLeft: number;
213
+ borderLeft: string;
214
214
  };
215
215
  };
216
216
  utility: {
@@ -229,17 +229,20 @@ export declare const typography: {
229
229
  };
230
230
  };
231
231
  inlineCode: {
232
+ fontSize: string;
233
+ letterSpacing: string;
234
+ fontWeight: number;
232
235
  display: string;
233
236
  backgroundColor: string;
234
237
  border: string;
235
238
  borderRadius: number;
236
239
  padding: string;
237
240
  lineHeight: string;
241
+ };
242
+ terminalCode: {
238
243
  fontSize: string;
239
244
  letterSpacing: string;
240
245
  fontWeight: number;
241
- };
242
- terminalCode: {
243
246
  display: string;
244
247
  backgroundColor: string;
245
248
  color: string;
@@ -247,23 +250,24 @@ export declare const typography: {
247
250
  borderRadius: number;
248
251
  padding: string;
249
252
  lineHeight: string;
253
+ };
254
+ pre: {
250
255
  fontSize: string;
251
256
  letterSpacing: string;
252
257
  fontWeight: number;
253
- };
254
- pre: {
258
+ lineHeight: number;
255
259
  backgroundColor: string;
256
260
  borderRadius: number;
257
261
  border: string;
258
262
  padding: number;
259
263
  whiteSpace: string;
260
264
  margin: string;
261
- lineHeight: number;
265
+ };
266
+ terminalPre: {
262
267
  fontSize: string;
263
268
  letterSpacing: string;
264
269
  fontWeight: number;
265
- };
266
- terminalPre: {
270
+ lineHeight: number;
267
271
  backgroundColor: string;
268
272
  color: string;
269
273
  borderRadius: number;
@@ -274,10 +278,6 @@ export declare const typography: {
274
278
  '&:before': {
275
279
  content: string;
276
280
  };
277
- lineHeight: number;
278
- fontSize: string;
279
- letterSpacing: string;
280
- fontWeight: number;
281
281
  };
282
282
  hr: {
283
283
  backgroundColor: string;
package/package.json CHANGED
@@ -1,59 +1,81 @@
1
1
  {
2
2
  "name": "@expo/styleguide",
3
- "version": "15.0.2",
3
+ "version": "15.0.4",
4
4
  "description": "Expo's styleguide components for use on the web.",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
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": "rimraf dist",
47
+ "clean": "rm -rf dist",
16
48
  "bundle": "rollup --config",
17
- "types": "yarn run -T tsc",
18
- "build": "run-s clean bundle types",
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.1",
38
- "tailwind-merge": "^3.5.0"
55
+ "@expo/styleguide-base": "^4.0.2",
56
+ "tailwind-merge": "^3.6.0"
39
57
  },
40
58
  "devDependencies": {
41
- "@tailwindcss/typography": "^0.5.19",
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.2.6",
46
- "npm-run-all": "*",
47
- "rimraf": "*",
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.2.2",
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
- "gitHead": "79c0fa9df2a053229037a509343660993ca80e4f"
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': 'var(--expo-theme-button-primary-destructive-disabled-background)',
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': 'var(--expo-theme-button-secondary-destructive-disabled-background)',
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': 'var(--expo-theme-button-tertiary-destructive-disabled-background)',
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': 'var(--expo-theme-button-primary-destructive-disabled-border)',
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': 'var(--expo-theme-button-secondary-destructive-disabled-border)',
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': 'var(--expo-theme-button-tertiary-destructive-disabled-border)',
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': 'var(--expo-theme-button-primary-destructive-disabled-text)',
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': 'var(--expo-theme-button-secondary-destructive-disabled-text)',
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': 'var(--expo-theme-button-tertiary-destructive-disabled-text)',
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: 'drop-shadow(0 3px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.07))',
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: 'drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.03))',
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
  }),