@expo/styleguide 8.2.3 → 8.2.5
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/package.json +2 -2
- package/tailwind.js +89 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.5",
|
|
4
4
|
"description": "Expo's styleguide components for use on the web.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"eslintConfig": {
|
|
44
44
|
"extends": "universe/web"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "d315967c5acf6ca5067b2f759657e6a41d98d3e0"
|
|
47
47
|
}
|
package/tailwind.js
CHANGED
|
@@ -227,6 +227,22 @@ const expoTailwindConfig = {
|
|
|
227
227
|
|
|
228
228
|
...palette,
|
|
229
229
|
},
|
|
230
|
+
gradientColorStops: {
|
|
231
|
+
default: 'var(--expo-theme-background-default)',
|
|
232
|
+
screen: 'var(--expo-theme-background-screen)',
|
|
233
|
+
subtle: 'var(--expo-theme-background-subtle)',
|
|
234
|
+
element: 'var(--expo-theme-background-element)',
|
|
235
|
+
hover: 'var(--expo-theme-background-hover)',
|
|
236
|
+
selected: 'var(--expo-theme-background-selected)',
|
|
237
|
+
overlay: 'var(--expo-theme-background-overlay)',
|
|
238
|
+
success: 'var(--expo-theme-background-success)',
|
|
239
|
+
warning: 'var(--expo-theme-background-warning)',
|
|
240
|
+
danger: 'var(--expo-theme-background-danger)',
|
|
241
|
+
info: 'var(--expo-theme-background-info)',
|
|
242
|
+
transparent: 'transparent',
|
|
243
|
+
|
|
244
|
+
...palette,
|
|
245
|
+
},
|
|
230
246
|
boxShadow: {
|
|
231
247
|
none: 'var(--expo-theme-shadows-none)',
|
|
232
248
|
xs: 'var(--expo-theme-shadows-xs)',
|
|
@@ -358,19 +374,6 @@ const expoTailwindConfig = {
|
|
|
358
374
|
'border-danger': 'var(--expo-theme-border-danger)',
|
|
359
375
|
'border-info': 'var(--expo-theme-border-info)',
|
|
360
376
|
},
|
|
361
|
-
gradientColorStops: {
|
|
362
|
-
'bg-default': 'var(--expo-theme-background-default)',
|
|
363
|
-
'bg-screen': 'var(--expo-theme-background-screen)',
|
|
364
|
-
'bg-subtle': 'var(--expo-theme-background-subtle)',
|
|
365
|
-
'bg-element': 'var(--expo-theme-background-element)',
|
|
366
|
-
'bg-hover': 'var(--expo-theme-background-hover)',
|
|
367
|
-
'bg-selected': 'var(--expo-theme-background-selected)',
|
|
368
|
-
'bg-overlay': 'var(--expo-theme-background-overlay)',
|
|
369
|
-
'bg-success': 'var(--expo-theme-background-success)',
|
|
370
|
-
'bg-warning': 'var(--expo-theme-background-warning)',
|
|
371
|
-
'bg-danger': 'var(--expo-theme-background-danger)',
|
|
372
|
-
'bg-info': 'var(--expo-theme-background-info)',
|
|
373
|
-
},
|
|
374
377
|
backgroundColor: {
|
|
375
378
|
'app-cyan': 'var(--expo-color-app-cyan)',
|
|
376
379
|
'app-light-blue': 'var(--expo-color-app-light-blue)',
|
|
@@ -426,6 +429,72 @@ const expoTailwindConfig = {
|
|
|
426
429
|
transitionDuration: {
|
|
427
430
|
default: '150ms',
|
|
428
431
|
},
|
|
432
|
+
keyframes: {
|
|
433
|
+
fadeIn: {
|
|
434
|
+
'0%': {
|
|
435
|
+
opacity: 0,
|
|
436
|
+
},
|
|
437
|
+
'100%': {
|
|
438
|
+
opacity: 1,
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
fadeOut: {
|
|
442
|
+
'0%': {
|
|
443
|
+
opacity: 1,
|
|
444
|
+
},
|
|
445
|
+
'100%': {
|
|
446
|
+
opacity: 0,
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
slideDownAndFade: {
|
|
450
|
+
'0%': {
|
|
451
|
+
opacity: 0,
|
|
452
|
+
transform: 'translateY(8px)',
|
|
453
|
+
},
|
|
454
|
+
'100%': {
|
|
455
|
+
opacity: 1,
|
|
456
|
+
transform: 'translateY(0)',
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
slideRightAndFade: {
|
|
460
|
+
'0%': {
|
|
461
|
+
opacity: 0,
|
|
462
|
+
transform: 'translateX(8px)',
|
|
463
|
+
},
|
|
464
|
+
'100%': {
|
|
465
|
+
opacity: 1,
|
|
466
|
+
transform: 'translateX(0)',
|
|
467
|
+
},
|
|
468
|
+
},
|
|
469
|
+
slideLeftAndFade: {
|
|
470
|
+
'0%': {
|
|
471
|
+
opacity: 0,
|
|
472
|
+
transform: 'translateX(-8px)',
|
|
473
|
+
},
|
|
474
|
+
'100%': {
|
|
475
|
+
opacity: 1,
|
|
476
|
+
transform: 'translateX(0)',
|
|
477
|
+
},
|
|
478
|
+
},
|
|
479
|
+
slideUpAndFade: {
|
|
480
|
+
'0%': {
|
|
481
|
+
opacity: 0,
|
|
482
|
+
transform: 'translateY(-8px)',
|
|
483
|
+
},
|
|
484
|
+
'100%': {
|
|
485
|
+
opacity: 1,
|
|
486
|
+
transform: 'translateY(0)',
|
|
487
|
+
},
|
|
488
|
+
},
|
|
489
|
+
},
|
|
490
|
+
animation: {
|
|
491
|
+
fadeIn: 'fadeIn 0.25s ease-out',
|
|
492
|
+
fadeOut: 'fadeOut 0.15s ease-in',
|
|
493
|
+
slideDownAndFade: 'slideDownAndFade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',
|
|
494
|
+
slideRightAndFade: 'slideRightAndFade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',
|
|
495
|
+
slideLeftAndFade: 'slideLeftAndFade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',
|
|
496
|
+
slideUpAndFade: 'slideUpAndFade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',
|
|
497
|
+
},
|
|
429
498
|
typography: () => ({
|
|
430
499
|
DEFAULT: {
|
|
431
500
|
css: {
|
|
@@ -478,6 +547,7 @@ const expoTailwindConfig = {
|
|
|
478
547
|
width: theme('width.10'),
|
|
479
548
|
},
|
|
480
549
|
'.break-words': { 'word-break': 'break-word' },
|
|
550
|
+
'.wrap-anywhere': { 'overflow-wrap': 'anywhere' },
|
|
481
551
|
'.pause-animation': { 'animation-play-state': 'paused' },
|
|
482
552
|
'.transform-box': { 'transform-box': 'fill-box' },
|
|
483
553
|
'.backface-hidden': {
|
|
@@ -492,6 +562,12 @@ const expoTailwindConfig = {
|
|
|
492
562
|
'.variant-numeric-tabular': {
|
|
493
563
|
'font-variant-numeric': 'tabular-nums',
|
|
494
564
|
},
|
|
565
|
+
'.asset-shadow': {
|
|
566
|
+
filter: 'drop-shadow(0 3px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.07))',
|
|
567
|
+
},
|
|
568
|
+
'.asset-sm-shadow': {
|
|
569
|
+
filter: 'drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.03))',
|
|
570
|
+
},
|
|
495
571
|
});
|
|
496
572
|
}),
|
|
497
573
|
require('@tailwindcss/typography'),
|