@expo/styleguide 8.2.5 → 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 | undefined;
15
+ testID?: string;
16
16
  } & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
17
- testID?: string | undefined;
18
- openInNewTab?: boolean | undefined;
19
- disabled?: boolean | undefined;
20
- skipNextLink?: boolean | undefined;
17
+ testID?: string;
18
+ openInNewTab?: boolean;
19
+ disabled?: boolean;
20
+ skipNextLink?: boolean;
21
21
  } & {
22
- size?: ButtonSize | undefined;
23
- theme?: ButtonTheme | undefined;
24
- leftSlot?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
25
- rightSlot?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
26
- skipCapitalization?: boolean | undefined;
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 | undefined;
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 | undefined;
4
- openInNewTab?: boolean | undefined;
5
- disabled?: boolean | undefined;
6
- skipNextLink?: boolean | undefined;
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 | undefined;
11
- openInNewTab?: boolean | undefined;
12
- disabled?: boolean | undefined;
13
- skipNextLink?: boolean | undefined;
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.5",
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.3.0"
33
+ "tailwind-merge": "^2.5.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@tailwindcss/typography": "^0.5.10",
37
- "tailwindcss": "^3.4.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": "d315967c5acf6ca5067b2f759657e6a41d98d3e0"
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
  },