@expo/styleguide 9.1.0 → 9.1.2
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 +18 -36
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.2",
|
|
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",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"eslintConfig": {
|
|
47
47
|
"extends": "universe/web"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "07678d99827b6afdcd6a13655bc05fa1274affaa"
|
|
50
50
|
}
|
package/tailwind.js
CHANGED
|
@@ -390,26 +390,11 @@ const expoTailwindConfig = {
|
|
|
390
390
|
},
|
|
391
391
|
},
|
|
392
392
|
screens: {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
'
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
'max-xl-gutters': {
|
|
399
|
-
raw: 'not all and (min-width: 1248px)',
|
|
400
|
-
},
|
|
401
|
-
'max-lg-gutters': {
|
|
402
|
-
raw: 'not all and (min-width: 1008px)',
|
|
403
|
-
},
|
|
404
|
-
'max-md-gutters': {
|
|
405
|
-
raw: 'not all and (min-width: 788px)',
|
|
406
|
-
},
|
|
407
|
-
'max-sm-gutters': {
|
|
408
|
-
raw: 'not all and (min-width: 468px)',
|
|
409
|
-
},
|
|
410
|
-
short: {
|
|
411
|
-
raw: '(max-height: 788px) and (min-width: 1008px)',
|
|
412
|
-
},
|
|
393
|
+
'sm-gutters': '468px',
|
|
394
|
+
'md-gutters': '788px',
|
|
395
|
+
'lg-gutters': '1008px',
|
|
396
|
+
'xl-gutters': '1248px',
|
|
397
|
+
'2xl-gutters': '1572px',
|
|
413
398
|
},
|
|
414
399
|
extend: {
|
|
415
400
|
stroke: {
|
|
@@ -447,7 +432,6 @@ const expoTailwindConfig = {
|
|
|
447
432
|
},
|
|
448
433
|
maxWidth: {
|
|
449
434
|
15: '3.75rem',
|
|
450
|
-
'screen-xs': '340px',
|
|
451
435
|
'screen-sm': '420px',
|
|
452
436
|
'screen-md': '740px',
|
|
453
437
|
'screen-lg': '960px',
|
|
@@ -491,20 +475,12 @@ const expoTailwindConfig = {
|
|
|
491
475
|
},
|
|
492
476
|
keyframes: {
|
|
493
477
|
fadeIn: {
|
|
494
|
-
'0%': {
|
|
495
|
-
|
|
496
|
-
},
|
|
497
|
-
'100%': {
|
|
498
|
-
opacity: 1,
|
|
499
|
-
},
|
|
478
|
+
'0%': { opacity: 0 },
|
|
479
|
+
'100%': { opacity: 1 },
|
|
500
480
|
},
|
|
501
481
|
fadeOut: {
|
|
502
|
-
'0%': {
|
|
503
|
-
|
|
504
|
-
},
|
|
505
|
-
'100%': {
|
|
506
|
-
opacity: 0,
|
|
507
|
-
},
|
|
482
|
+
'0%': { opacity: 1 },
|
|
483
|
+
'100%': { opacity: 0 },
|
|
508
484
|
},
|
|
509
485
|
slideDownAndFade: {
|
|
510
486
|
'0%': {
|
|
@@ -575,7 +551,10 @@ const expoTailwindConfig = {
|
|
|
575
551
|
plugins: [
|
|
576
552
|
plugin(({ addComponents, addVariant, matchUtilities, theme }) => {
|
|
577
553
|
addVariant('hocus', ['&:hover', '&:focus-visible']);
|
|
554
|
+
addVariant('compact-height', `@media (max-height: 788px) and (min-width: 1008px)`);
|
|
555
|
+
|
|
578
556
|
matchUtilities({ heading: (value) => value }, { values: theme('heading') });
|
|
557
|
+
|
|
579
558
|
addComponents({
|
|
580
559
|
'.icon-2xs': {
|
|
581
560
|
height: theme('height.3'),
|
|
@@ -606,19 +585,21 @@ const expoTailwindConfig = {
|
|
|
606
585
|
height: theme('height.10'),
|
|
607
586
|
width: theme('width.10'),
|
|
608
587
|
},
|
|
588
|
+
|
|
609
589
|
'.translate-z': {
|
|
610
590
|
transform: 'translateZ(0)',
|
|
611
591
|
},
|
|
592
|
+
|
|
612
593
|
'.break-words': { 'word-break': 'break-word' },
|
|
613
594
|
'.wrap-anywhere': { 'overflow-wrap': 'anywhere' },
|
|
595
|
+
|
|
614
596
|
'.pause-animation': { 'animation-play-state': 'paused' },
|
|
615
597
|
'.transform-box': { 'transform-box': 'fill-box' },
|
|
616
|
-
|
|
617
|
-
'overflow-wrap': 'anywhere',
|
|
618
|
-
},
|
|
598
|
+
|
|
619
599
|
'.backface-hidden': {
|
|
620
600
|
'backface-visibility': 'hidden',
|
|
621
601
|
},
|
|
602
|
+
|
|
622
603
|
'.variant-numeric-normal': {
|
|
623
604
|
'font-variant-numeric': 'normal',
|
|
624
605
|
},
|
|
@@ -628,6 +609,7 @@ const expoTailwindConfig = {
|
|
|
628
609
|
'.variant-numeric-tabular': {
|
|
629
610
|
'font-variant-numeric': 'tabular-nums',
|
|
630
611
|
},
|
|
612
|
+
|
|
631
613
|
'.asset-shadow': {
|
|
632
614
|
filter: 'drop-shadow(0 3px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.07))',
|
|
633
615
|
},
|