@expo/styleguide 8.0.0-alpha.0 → 8.0.0-alpha.10
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/README.md +32 -4
- package/dist/expo-theme.css +3 -21
- package/dist/index.d.ts +1 -0
- package/dist/index.js +270 -82
- package/dist/src/components/Button/Button.d.ts +26 -0
- package/dist/src/components/Button/ButtonBase.d.ts +8 -0
- package/dist/src/components/Button/helpers.d.ts +6 -0
- package/dist/src/components/Button/index.d.ts +2 -0
- package/dist/src/components/Link/Link.d.ts +6 -0
- package/dist/src/components/Link/LinkBase.d.ts +12 -0
- package/dist/src/components/Link/index.d.ts +2 -0
- package/dist/src/components/{BlockingSetInitialColorMode.d.ts → Theme/BlockingSetInitialColorMode.d.ts} +2 -2
- package/dist/src/components/{ThemeProvider.d.ts → Theme/ThemeProvider.d.ts} +2 -2
- package/dist/src/components/Theme/index.d.ts +2 -0
- package/dist/src/components/index.d.ts +3 -3
- package/dist/src/helpers/mergeClasses.d.ts +1 -0
- package/dist/src/logos/DocsLogo.d.ts +2 -3
- package/dist/src/logos/ExpoGoLogo.d.ts +2 -3
- package/dist/src/logos/Logo.d.ts +2 -3
- package/dist/src/logos/RouterLogo.d.ts +2 -0
- package/dist/src/logos/SnackLogo.d.ts +2 -3
- package/dist/src/logos/WordMarkLogo.d.ts +2 -3
- package/dist/src/logos/index.d.ts +1 -0
- package/dist/src/styles/themes.d.ts +0 -9
- package/package.json +13 -10
- package/tailwind.js +318 -297
- package/dist/src/components/ButtonBase.d.ts +0 -9
- package/dist/src/types/index.d.ts +0 -10
- package/dist/tailwind.js +0 -396
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export declare enum Themes {
|
|
3
3
|
AUTO = "auto",
|
|
4
4
|
DARK = "dark",
|
|
@@ -8,7 +8,7 @@ type ThemeProviderProps = {
|
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare function ThemeProvider(props: ThemeProviderProps): JSX.Element;
|
|
11
|
+
export declare function ThemeProvider(props: ThemeProviderProps): React.JSX.Element;
|
|
12
12
|
export declare function useTheme(): {
|
|
13
13
|
setDarkMode: () => void;
|
|
14
14
|
setLightMode: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './Theme';
|
|
2
|
+
export * from './Button';
|
|
3
|
+
export * from './Link';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mergeClasses: (...classLists: import("tailwind-merge/dist/lib/tw-join").ClassNameValue[]) => string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function DocsLogo(props: IconProps): JSX.Element;
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export declare function DocsLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): React.JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function ExpoGoLogo(props: IconProps): JSX.Element;
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export declare function ExpoGoLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): React.JSX.Element;
|
package/dist/src/logos/Logo.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function Logo(props: IconProps): JSX.Element;
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export declare function Logo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): React.JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function SnackLogo(props: IconProps): JSX.Element;
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export declare function SnackLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): React.JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function WordMarkLogo(props: IconProps): JSX.Element;
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export declare function WordMarkLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): React.JSX.Element;
|
|
@@ -115,15 +115,6 @@ export declare const theme: {
|
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
|
-
project: {
|
|
119
|
-
blue: string;
|
|
120
|
-
green: string;
|
|
121
|
-
yellow: string;
|
|
122
|
-
orange: string;
|
|
123
|
-
red: string;
|
|
124
|
-
pink: string;
|
|
125
|
-
purple: string;
|
|
126
|
-
};
|
|
127
118
|
palette: {
|
|
128
119
|
white: string;
|
|
129
120
|
black: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.10",
|
|
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",
|
|
@@ -29,23 +29,26 @@
|
|
|
29
29
|
"url": "https://github.com/expo/styleguide/issues"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@rollup/plugin-commonjs": "^24.0.1",
|
|
33
32
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
34
|
-
"@
|
|
33
|
+
"@tailwindcss/typography": "^0.5.9",
|
|
34
|
+
"@types/react": "^18.2.6",
|
|
35
35
|
"npm-run-all": "^4.1.5",
|
|
36
36
|
"rimraf": "^4.1.2",
|
|
37
|
-
"rollup": "^3.
|
|
37
|
+
"rollup": "^3.21.5",
|
|
38
38
|
"rollup-plugin-copy": "^3.4.0",
|
|
39
|
-
"tailwindcss": "^3.
|
|
40
|
-
"typescript": "^4.
|
|
39
|
+
"tailwindcss": "^3.3.2",
|
|
40
|
+
"typescript": "^4.9.5"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
+
"next": ">= 13",
|
|
43
44
|
"react": ">= 16"
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
|
-
"@expo/styleguide-base": "^1.0.0-alpha.
|
|
47
|
-
"
|
|
48
|
-
"tailwind-merge": "^1.9.1"
|
|
47
|
+
"@expo/styleguide-base": "^1.0.0-alpha.3",
|
|
48
|
+
"tailwind-merge": "^1.12.0"
|
|
49
49
|
},
|
|
50
|
-
"
|
|
50
|
+
"eslintConfig": {
|
|
51
|
+
"extends": "universe/web"
|
|
52
|
+
},
|
|
53
|
+
"gitHead": "74800b3861a568c7909d877c445aa56956925dfe"
|
|
51
54
|
}
|