@expo/styleguide 8.2.4 → 8.2.6
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.
|
@@ -12,16 +12,16 @@ export type ButtonProps = ButtonBaseProps & LinkBaseProps & {
|
|
|
12
12
|
skipCapitalization?: boolean;
|
|
13
13
|
};
|
|
14
14
|
export declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
15
|
-
testID?: string
|
|
15
|
+
testID?: string;
|
|
16
16
|
} & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
17
|
-
testID?: string
|
|
18
|
-
openInNewTab?: boolean
|
|
19
|
-
disabled?: boolean
|
|
20
|
-
skipNextLink?: boolean
|
|
17
|
+
testID?: string;
|
|
18
|
+
openInNewTab?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
skipNextLink?: boolean;
|
|
21
21
|
} & {
|
|
22
|
-
size?: ButtonSize
|
|
23
|
-
theme?: ButtonTheme
|
|
24
|
-
leftSlot?:
|
|
25
|
-
rightSlot?:
|
|
26
|
-
skipCapitalization?: boolean
|
|
22
|
+
size?: ButtonSize;
|
|
23
|
+
theme?: ButtonTheme;
|
|
24
|
+
leftSlot?: ReactElement;
|
|
25
|
+
rightSlot?: ReactElement;
|
|
26
|
+
skipCapitalization?: boolean;
|
|
27
27
|
} & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
@@ -4,5 +4,5 @@ export type ButtonBaseProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
4
4
|
testID?: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const ButtonBase: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
7
|
-
testID?: string
|
|
7
|
+
testID?: string;
|
|
8
8
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const Link: React.ForwardRefExoticComponent<React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3
|
-
testID?: string
|
|
4
|
-
openInNewTab?: boolean
|
|
5
|
-
disabled?: boolean
|
|
6
|
-
skipNextLink?: boolean
|
|
3
|
+
testID?: string;
|
|
4
|
+
openInNewTab?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
skipNextLink?: boolean;
|
|
7
7
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -7,8 +7,8 @@ export type LinkBaseProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
|
7
7
|
skipNextLink?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export declare const LinkBase: React.ForwardRefExoticComponent<React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
10
|
-
testID?: string
|
|
11
|
-
openInNewTab?: boolean
|
|
12
|
-
disabled?: boolean
|
|
13
|
-
skipNextLink?: boolean
|
|
10
|
+
testID?: string;
|
|
11
|
+
openInNewTab?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
skipNextLink?: boolean;
|
|
14
14
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.6",
|
|
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",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@expo/styleguide-base": "^1.0.1",
|
|
33
|
-
"tailwind-merge": "^2.
|
|
33
|
+
"tailwind-merge": "^2.5.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@tailwindcss/typography": "^0.5.
|
|
37
|
-
"tailwindcss": "^3.4.
|
|
36
|
+
"@tailwindcss/typography": "^0.5.14",
|
|
37
|
+
"tailwindcss": "^3.4.10"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"next": ">= 13",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"eslintConfig": {
|
|
44
44
|
"extends": "universe/web"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "a12ce15e2c112cee1aca9aab01c29fbd7128f9be"
|
|
47
47
|
}
|
package/tailwind.js
CHANGED
|
@@ -340,16 +340,10 @@ const expoTailwindConfig = {
|
|
|
340
340
|
},
|
|
341
341
|
},
|
|
342
342
|
screens: {
|
|
343
|
-
xs: '340px',
|
|
344
|
-
sm: '420px',
|
|
345
343
|
'sm-gutters': '468px',
|
|
346
|
-
md: '740px',
|
|
347
344
|
'md-gutters': '788px',
|
|
348
|
-
lg: '960px',
|
|
349
345
|
'lg-gutters': '1008px',
|
|
350
|
-
xl: '1200px',
|
|
351
346
|
'xl-gutters': '1248px',
|
|
352
|
-
'2xl': '1524px',
|
|
353
347
|
'2xl-gutters': '1572px',
|
|
354
348
|
},
|
|
355
349
|
extend: {
|
|
@@ -394,6 +388,15 @@ const expoTailwindConfig = {
|
|
|
394
388
|
width: {
|
|
395
389
|
15: '3.75rem',
|
|
396
390
|
},
|
|
391
|
+
maxWidth: {
|
|
392
|
+
15: '3.75rem',
|
|
393
|
+
'screen-xs': '340px',
|
|
394
|
+
'screen-sm': '420px',
|
|
395
|
+
'screen-md': '740px',
|
|
396
|
+
'screen-lg': '960px',
|
|
397
|
+
'screen-xl': '1200px',
|
|
398
|
+
'screen-2xl': '1524px',
|
|
399
|
+
},
|
|
397
400
|
size: {
|
|
398
401
|
15: '3.75rem',
|
|
399
402
|
},
|
|
@@ -429,6 +432,72 @@ const expoTailwindConfig = {
|
|
|
429
432
|
transitionDuration: {
|
|
430
433
|
default: '150ms',
|
|
431
434
|
},
|
|
435
|
+
keyframes: {
|
|
436
|
+
fadeIn: {
|
|
437
|
+
'0%': {
|
|
438
|
+
opacity: 0,
|
|
439
|
+
},
|
|
440
|
+
'100%': {
|
|
441
|
+
opacity: 1,
|
|
442
|
+
},
|
|
443
|
+
},
|
|
444
|
+
fadeOut: {
|
|
445
|
+
'0%': {
|
|
446
|
+
opacity: 1,
|
|
447
|
+
},
|
|
448
|
+
'100%': {
|
|
449
|
+
opacity: 0,
|
|
450
|
+
},
|
|
451
|
+
},
|
|
452
|
+
slideDownAndFade: {
|
|
453
|
+
'0%': {
|
|
454
|
+
opacity: 0,
|
|
455
|
+
transform: 'translateY(8px)',
|
|
456
|
+
},
|
|
457
|
+
'100%': {
|
|
458
|
+
opacity: 1,
|
|
459
|
+
transform: 'translateY(0)',
|
|
460
|
+
},
|
|
461
|
+
},
|
|
462
|
+
slideRightAndFade: {
|
|
463
|
+
'0%': {
|
|
464
|
+
opacity: 0,
|
|
465
|
+
transform: 'translateX(8px)',
|
|
466
|
+
},
|
|
467
|
+
'100%': {
|
|
468
|
+
opacity: 1,
|
|
469
|
+
transform: 'translateX(0)',
|
|
470
|
+
},
|
|
471
|
+
},
|
|
472
|
+
slideLeftAndFade: {
|
|
473
|
+
'0%': {
|
|
474
|
+
opacity: 0,
|
|
475
|
+
transform: 'translateX(-8px)',
|
|
476
|
+
},
|
|
477
|
+
'100%': {
|
|
478
|
+
opacity: 1,
|
|
479
|
+
transform: 'translateX(0)',
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
slideUpAndFade: {
|
|
483
|
+
'0%': {
|
|
484
|
+
opacity: 0,
|
|
485
|
+
transform: 'translateY(-8px)',
|
|
486
|
+
},
|
|
487
|
+
'100%': {
|
|
488
|
+
opacity: 1,
|
|
489
|
+
transform: 'translateY(0)',
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
},
|
|
493
|
+
animation: {
|
|
494
|
+
fadeIn: 'fadeIn 0.25s ease-out',
|
|
495
|
+
fadeOut: 'fadeOut 0.15s ease-in',
|
|
496
|
+
slideDownAndFade: 'slideDownAndFade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',
|
|
497
|
+
slideRightAndFade: 'slideRightAndFade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',
|
|
498
|
+
slideLeftAndFade: 'slideLeftAndFade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',
|
|
499
|
+
slideUpAndFade: 'slideUpAndFade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',
|
|
500
|
+
},
|
|
432
501
|
typography: () => ({
|
|
433
502
|
DEFAULT: {
|
|
434
503
|
css: {
|
|
@@ -481,6 +550,7 @@ const expoTailwindConfig = {
|
|
|
481
550
|
width: theme('width.10'),
|
|
482
551
|
},
|
|
483
552
|
'.break-words': { 'word-break': 'break-word' },
|
|
553
|
+
'.wrap-anywhere': { 'overflow-wrap': 'anywhere' },
|
|
484
554
|
'.pause-animation': { 'animation-play-state': 'paused' },
|
|
485
555
|
'.transform-box': { 'transform-box': 'fill-box' },
|
|
486
556
|
'.backface-hidden': {
|
|
@@ -495,6 +565,12 @@ const expoTailwindConfig = {
|
|
|
495
565
|
'.variant-numeric-tabular': {
|
|
496
566
|
'font-variant-numeric': 'tabular-nums',
|
|
497
567
|
},
|
|
568
|
+
'.asset-shadow': {
|
|
569
|
+
filter: 'drop-shadow(0 3px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.07))',
|
|
570
|
+
},
|
|
571
|
+
'.asset-sm-shadow': {
|
|
572
|
+
filter: 'drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.03))',
|
|
573
|
+
},
|
|
498
574
|
});
|
|
499
575
|
}),
|
|
500
576
|
require('@tailwindcss/typography'),
|