@expo/styleguide 15.0.3 → 15.1.0
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/CHANGELOG.md +18 -0
- package/README.md +10 -14
- package/dist/expo-theme.css +38 -38
- package/dist/src/components/Button/Button.d.ts +2 -2
- package/dist/src/components/Button/Button.js +101 -95
- package/dist/src/components/Button/ButtonBase.js +39 -33
- package/dist/src/components/Link/Link.js +27 -21
- package/dist/src/components/Link/LinkBase.js +63 -57
- package/dist/src/components/Theme/ThemeProvider.d.ts +1 -1
- package/dist/src/components/Theme/ThemeProvider.js +58 -45
- package/dist/src/logos/DocsLogo.d.ts +1 -1
- package/dist/src/logos/DocsLogo.js +27 -21
- package/dist/src/logos/ExpoGoLogo.d.ts +1 -1
- package/dist/src/logos/ExpoGoLogo.js +25 -19
- package/dist/src/logos/Logo.d.ts +1 -1
- package/dist/src/logos/Logo.js +25 -19
- package/dist/src/logos/OrbitLogo.d.ts +1 -1
- package/dist/src/logos/OrbitLogo.js +27 -21
- package/dist/src/logos/RouterLogo.d.ts +1 -1
- package/dist/src/logos/RouterLogo.js +27 -21
- package/dist/src/logos/SnackLogo.d.ts +1 -1
- package/dist/src/logos/SnackLogo.js +27 -21
- package/dist/src/logos/WordMarkLogo.d.ts +1 -1
- package/dist/src/logos/WordMarkLogo.js +25 -19
- package/dist/src/styles/typography.d.ts +17 -17
- package/package.json +56 -34
- package/tailwind.js +49 -11
|
@@ -7,49 +7,55 @@ var LinkBase = require('./LinkBase.js');
|
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var mergeClasses = require('@expo/styleguide-base/mergeClasses');
|
|
9
9
|
|
|
10
|
-
const Link = /*#__PURE__*/react.forwardRef((t0, ref)
|
|
11
|
-
const $ = compilerRuntime.c(
|
|
10
|
+
const Link = /*#__PURE__*/react.forwardRef(function (t0, ref) {
|
|
11
|
+
const $ = compilerRuntime.c(12);
|
|
12
|
+
if ($[0] !== "a3da98c14b71ee8a3d9305596baf7f1134847009820f8e55193feb89ff05b801") {
|
|
13
|
+
for (let $i = 0; $i < 12; $i += 1) {
|
|
14
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
15
|
+
}
|
|
16
|
+
$[0] = "a3da98c14b71ee8a3d9305596baf7f1134847009820f8e55193feb89ff05b801";
|
|
17
|
+
}
|
|
12
18
|
let className;
|
|
13
19
|
let disabled;
|
|
14
20
|
let rest;
|
|
15
|
-
if ($[
|
|
21
|
+
if ($[1] !== t0) {
|
|
16
22
|
({
|
|
17
23
|
className,
|
|
18
24
|
disabled,
|
|
19
25
|
...rest
|
|
20
26
|
} = t0);
|
|
21
|
-
$[
|
|
22
|
-
$[
|
|
23
|
-
$[
|
|
24
|
-
$[
|
|
27
|
+
$[1] = t0;
|
|
28
|
+
$[2] = className;
|
|
29
|
+
$[3] = disabled;
|
|
30
|
+
$[4] = rest;
|
|
25
31
|
} else {
|
|
26
|
-
className = $[
|
|
27
|
-
disabled = $[
|
|
28
|
-
rest = $[
|
|
32
|
+
className = $[2];
|
|
33
|
+
disabled = $[3];
|
|
34
|
+
rest = $[4];
|
|
29
35
|
}
|
|
30
36
|
const t1 = !disabled && "hocus:opacity-80";
|
|
31
37
|
let t2;
|
|
32
|
-
if ($[
|
|
38
|
+
if ($[5] !== className || $[6] !== t1) {
|
|
33
39
|
t2 = mergeClasses.mergeClasses("text-link transition-opacity", t1, className);
|
|
34
|
-
$[
|
|
35
|
-
$[
|
|
36
|
-
$[
|
|
40
|
+
$[5] = className;
|
|
41
|
+
$[6] = t1;
|
|
42
|
+
$[7] = t2;
|
|
37
43
|
} else {
|
|
38
|
-
t2 = $[
|
|
44
|
+
t2 = $[7];
|
|
39
45
|
}
|
|
40
46
|
let t3;
|
|
41
|
-
if ($[
|
|
47
|
+
if ($[8] !== ref || $[9] !== rest || $[10] !== t2) {
|
|
42
48
|
t3 = /*#__PURE__*/jsxRuntime.jsx(LinkBase.LinkBase, {
|
|
43
49
|
className: t2,
|
|
44
50
|
ref: ref,
|
|
45
51
|
...rest
|
|
46
52
|
});
|
|
47
|
-
$[
|
|
48
|
-
$[
|
|
49
|
-
$[
|
|
50
|
-
$[
|
|
53
|
+
$[8] = ref;
|
|
54
|
+
$[9] = rest;
|
|
55
|
+
$[10] = t2;
|
|
56
|
+
$[11] = t3;
|
|
51
57
|
} else {
|
|
52
|
-
t3 = $[
|
|
58
|
+
t3 = $[11];
|
|
53
59
|
}
|
|
54
60
|
return t3;
|
|
55
61
|
});
|
|
@@ -6,8 +6,14 @@ var Link = require('next/link');
|
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
|
|
9
|
-
const LinkBase = /*#__PURE__*/react.forwardRef((t0, ref)
|
|
10
|
-
const $ = compilerRuntime.c(
|
|
9
|
+
const LinkBase = /*#__PURE__*/react.forwardRef(function (t0, ref) {
|
|
10
|
+
const $ = compilerRuntime.c(37);
|
|
11
|
+
if ($[0] !== "da7cdbf9fb8cc6375e7961824be6927dc226b97e35c3b4c12e7a1377104687c3") {
|
|
12
|
+
for (let $i = 0; $i < 37; $i += 1) {
|
|
13
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
14
|
+
}
|
|
15
|
+
$[0] = "da7cdbf9fb8cc6375e7961824be6927dc226b97e35c3b4c12e7a1377104687c3";
|
|
16
|
+
}
|
|
11
17
|
let children;
|
|
12
18
|
let disabled;
|
|
13
19
|
let href;
|
|
@@ -18,7 +24,7 @@ const LinkBase = /*#__PURE__*/react.forwardRef((t0, ref) => {
|
|
|
18
24
|
let skipNextLink;
|
|
19
25
|
let target;
|
|
20
26
|
let testID;
|
|
21
|
-
if ($[
|
|
27
|
+
if ($[1] !== t0) {
|
|
22
28
|
({
|
|
23
29
|
children,
|
|
24
30
|
testID,
|
|
@@ -31,51 +37,51 @@ const LinkBase = /*#__PURE__*/react.forwardRef((t0, ref) => {
|
|
|
31
37
|
rel,
|
|
32
38
|
...rest
|
|
33
39
|
} = t0);
|
|
34
|
-
$[
|
|
35
|
-
$[
|
|
36
|
-
$[
|
|
37
|
-
$[
|
|
38
|
-
$[
|
|
39
|
-
$[
|
|
40
|
-
$[
|
|
41
|
-
$[
|
|
42
|
-
$[
|
|
43
|
-
$[
|
|
44
|
-
$[
|
|
40
|
+
$[1] = t0;
|
|
41
|
+
$[2] = children;
|
|
42
|
+
$[3] = disabled;
|
|
43
|
+
$[4] = href;
|
|
44
|
+
$[5] = onClick;
|
|
45
|
+
$[6] = openInNewTab;
|
|
46
|
+
$[7] = rel;
|
|
47
|
+
$[8] = rest;
|
|
48
|
+
$[9] = skipNextLink;
|
|
49
|
+
$[10] = target;
|
|
50
|
+
$[11] = testID;
|
|
45
51
|
} else {
|
|
46
|
-
children = $[
|
|
47
|
-
disabled = $[
|
|
48
|
-
href = $[
|
|
49
|
-
onClick = $[
|
|
50
|
-
openInNewTab = $[
|
|
51
|
-
rel = $[
|
|
52
|
-
rest = $[
|
|
53
|
-
skipNextLink = $[
|
|
54
|
-
target = $[
|
|
55
|
-
testID = $[
|
|
52
|
+
children = $[2];
|
|
53
|
+
disabled = $[3];
|
|
54
|
+
href = $[4];
|
|
55
|
+
onClick = $[5];
|
|
56
|
+
openInNewTab = $[6];
|
|
57
|
+
rel = $[7];
|
|
58
|
+
rest = $[8];
|
|
59
|
+
skipNextLink = $[9];
|
|
60
|
+
target = $[10];
|
|
61
|
+
testID = $[11];
|
|
56
62
|
}
|
|
57
63
|
if (disabled) {
|
|
58
64
|
let t1;
|
|
59
|
-
if ($[
|
|
65
|
+
if ($[12] !== children || $[13] !== ref || $[14] !== rest || $[15] !== testID) {
|
|
60
66
|
t1 = /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
61
67
|
ref: ref,
|
|
62
68
|
"data-testid": testID,
|
|
63
69
|
...rest,
|
|
64
70
|
children: children
|
|
65
71
|
});
|
|
66
|
-
$[
|
|
67
|
-
$[
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
$[
|
|
72
|
+
$[12] = children;
|
|
73
|
+
$[13] = ref;
|
|
74
|
+
$[14] = rest;
|
|
75
|
+
$[15] = testID;
|
|
76
|
+
$[16] = t1;
|
|
71
77
|
} else {
|
|
72
|
-
t1 = $[
|
|
78
|
+
t1 = $[16];
|
|
73
79
|
}
|
|
74
80
|
return t1;
|
|
75
81
|
}
|
|
76
82
|
if (!href) {
|
|
77
83
|
let t1;
|
|
78
|
-
if ($[
|
|
84
|
+
if ($[17] !== children || $[18] !== onClick || $[19] !== ref || $[20] !== rest || $[21] !== testID) {
|
|
79
85
|
t1 = /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
80
86
|
ref: ref,
|
|
81
87
|
onClick: onClick,
|
|
@@ -83,14 +89,14 @@ const LinkBase = /*#__PURE__*/react.forwardRef((t0, ref) => {
|
|
|
83
89
|
...rest,
|
|
84
90
|
children: children
|
|
85
91
|
});
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
88
|
-
$[
|
|
89
|
-
$[
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
92
|
+
$[17] = children;
|
|
93
|
+
$[18] = onClick;
|
|
94
|
+
$[19] = ref;
|
|
95
|
+
$[20] = rest;
|
|
96
|
+
$[21] = testID;
|
|
97
|
+
$[22] = t1;
|
|
92
98
|
} else {
|
|
93
|
-
t1 = $[
|
|
99
|
+
t1 = $[22];
|
|
94
100
|
}
|
|
95
101
|
return t1;
|
|
96
102
|
}
|
|
@@ -98,18 +104,18 @@ const LinkBase = /*#__PURE__*/react.forwardRef((t0, ref) => {
|
|
|
98
104
|
const t1 = openInNewTab ? "_blank" : target;
|
|
99
105
|
const t2 = openInNewTab ? "noopener noreferrer" : rel;
|
|
100
106
|
let t3;
|
|
101
|
-
if ($[
|
|
107
|
+
if ($[23] !== Tag || $[24] !== href) {
|
|
102
108
|
t3 = Tag === Link && href.startsWith("#") ? {
|
|
103
109
|
prefetch: false
|
|
104
110
|
} : undefined;
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
111
|
+
$[23] = Tag;
|
|
112
|
+
$[24] = href;
|
|
113
|
+
$[25] = t3;
|
|
108
114
|
} else {
|
|
109
|
-
t3 = $[
|
|
115
|
+
t3 = $[25];
|
|
110
116
|
}
|
|
111
117
|
let t4;
|
|
112
|
-
if ($[
|
|
118
|
+
if ($[26] !== Tag || $[27] !== children || $[28] !== href || $[29] !== onClick || $[30] !== ref || $[31] !== rest || $[32] !== t1 || $[33] !== t2 || $[34] !== t3 || $[35] !== testID) {
|
|
113
119
|
t4 = /*#__PURE__*/jsxRuntime.jsx(Tag, {
|
|
114
120
|
href: href,
|
|
115
121
|
ref: ref,
|
|
@@ -121,19 +127,19 @@ const LinkBase = /*#__PURE__*/react.forwardRef((t0, ref) => {
|
|
|
121
127
|
...rest,
|
|
122
128
|
children: children
|
|
123
129
|
});
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
130
|
+
$[26] = Tag;
|
|
131
|
+
$[27] = children;
|
|
132
|
+
$[28] = href;
|
|
133
|
+
$[29] = onClick;
|
|
134
|
+
$[30] = ref;
|
|
135
|
+
$[31] = rest;
|
|
136
|
+
$[32] = t1;
|
|
137
|
+
$[33] = t2;
|
|
138
|
+
$[34] = t3;
|
|
139
|
+
$[35] = testID;
|
|
140
|
+
$[36] = t4;
|
|
135
141
|
} else {
|
|
136
|
-
t4 = $[
|
|
142
|
+
t4 = $[36];
|
|
137
143
|
}
|
|
138
144
|
return t4;
|
|
139
145
|
});
|
|
@@ -18,7 +18,7 @@ type ThemeProviderProps = {
|
|
|
18
18
|
*/
|
|
19
19
|
initialThemeName?: Themes;
|
|
20
20
|
};
|
|
21
|
-
export declare function ThemeProvider({ children, disabled, initialThemeName, }: ThemeProviderProps): import("react
|
|
21
|
+
export declare function ThemeProvider({ children, disabled, initialThemeName, }: ThemeProviderProps): import("react").JSX.Element;
|
|
22
22
|
export declare function useTheme(): {
|
|
23
23
|
activeTheme: ActiveTheme;
|
|
24
24
|
setDarkMode: () => void;
|
|
@@ -87,7 +87,13 @@ function getInitialActiveTheme(disabled, initialThemeName) {
|
|
|
87
87
|
return window.matchMedia?.('(prefers-color-scheme: dark)').matches ? types.Themes.DARK : types.Themes.LIGHT;
|
|
88
88
|
}
|
|
89
89
|
function ThemeProvider(t0) {
|
|
90
|
-
const $ = compilerRuntime.c(
|
|
90
|
+
const $ = compilerRuntime.c(25);
|
|
91
|
+
if ($[0] !== "6af2a79bb0a5ea31fe49ed8f7bf26b51c96f9b8e73058b5a7e3a06aea42597bf") {
|
|
92
|
+
for (let $i = 0; $i < 25; $i += 1) {
|
|
93
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
94
|
+
}
|
|
95
|
+
$[0] = "6af2a79bb0a5ea31fe49ed8f7bf26b51c96f9b8e73058b5a7e3a06aea42597bf";
|
|
96
|
+
}
|
|
91
97
|
const {
|
|
92
98
|
children,
|
|
93
99
|
disabled: t1,
|
|
@@ -95,27 +101,27 @@ function ThemeProvider(t0) {
|
|
|
95
101
|
} = t0;
|
|
96
102
|
const disabled = t1 === undefined ? false : t1;
|
|
97
103
|
let t2;
|
|
98
|
-
if ($[
|
|
104
|
+
if ($[1] !== disabled || $[2] !== initialThemeName) {
|
|
99
105
|
t2 = () => getInitialThemeName(disabled, initialThemeName);
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
106
|
+
$[1] = disabled;
|
|
107
|
+
$[2] = initialThemeName;
|
|
108
|
+
$[3] = t2;
|
|
103
109
|
} else {
|
|
104
|
-
t2 = $[
|
|
110
|
+
t2 = $[3];
|
|
105
111
|
}
|
|
106
112
|
const [themeName, setThemeName] = react.useState(t2);
|
|
107
113
|
let t3;
|
|
108
|
-
if ($[
|
|
114
|
+
if ($[4] !== disabled || $[5] !== initialThemeName) {
|
|
109
115
|
t3 = () => getInitialActiveTheme(disabled, initialThemeName);
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
116
|
+
$[4] = disabled;
|
|
117
|
+
$[5] = initialThemeName;
|
|
118
|
+
$[6] = t3;
|
|
113
119
|
} else {
|
|
114
|
-
t3 = $[
|
|
120
|
+
t3 = $[6];
|
|
115
121
|
}
|
|
116
122
|
const [activeTheme, setActiveTheme] = react.useState(t3);
|
|
117
123
|
let t4;
|
|
118
|
-
if ($[
|
|
124
|
+
if ($[7] !== themeName) {
|
|
119
125
|
t4 = event => {
|
|
120
126
|
if (themeName !== types.Themes.AUTO) {
|
|
121
127
|
return;
|
|
@@ -124,14 +130,14 @@ function ThemeProvider(t0) {
|
|
|
124
130
|
applyDarkThemeClass(resolved === types.Themes.DARK);
|
|
125
131
|
setActiveTheme(resolved);
|
|
126
132
|
};
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
133
|
+
$[7] = themeName;
|
|
134
|
+
$[8] = t4;
|
|
129
135
|
} else {
|
|
130
|
-
t4 = $[
|
|
136
|
+
t4 = $[8];
|
|
131
137
|
}
|
|
132
138
|
const onMediaChange = react.useEffectEvent(t4);
|
|
133
139
|
let t5;
|
|
134
|
-
if ($[
|
|
140
|
+
if ($[9] !== disabled || $[10] !== initialThemeName || $[11] !== onMediaChange) {
|
|
135
141
|
t5 = function syncToResolvedTheme() {
|
|
136
142
|
if (disabled) {
|
|
137
143
|
const lockedActive = initialThemeName === types.Themes.DARK ? types.Themes.DARK : initialThemeName === types.Themes.LIGHT ? types.Themes.LIGHT : types.Themes.LIGHT;
|
|
@@ -173,51 +179,51 @@ function ThemeProvider(t0) {
|
|
|
173
179
|
}
|
|
174
180
|
};
|
|
175
181
|
};
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
182
|
+
$[9] = disabled;
|
|
183
|
+
$[10] = initialThemeName;
|
|
184
|
+
$[11] = onMediaChange;
|
|
185
|
+
$[12] = t5;
|
|
180
186
|
} else {
|
|
181
|
-
t5 = $[
|
|
187
|
+
t5 = $[12];
|
|
182
188
|
}
|
|
183
189
|
let t6;
|
|
184
|
-
if ($[
|
|
190
|
+
if ($[13] !== disabled || $[14] !== initialThemeName) {
|
|
185
191
|
t6 = [disabled, initialThemeName];
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
192
|
+
$[13] = disabled;
|
|
193
|
+
$[14] = initialThemeName;
|
|
194
|
+
$[15] = t6;
|
|
189
195
|
} else {
|
|
190
|
-
t6 = $[
|
|
196
|
+
t6 = $[15];
|
|
191
197
|
}
|
|
192
198
|
react.useLayoutEffect(t5, t6);
|
|
193
199
|
let t7;
|
|
194
|
-
if ($[
|
|
200
|
+
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
195
201
|
t7 = () => {
|
|
196
202
|
themeCookie.setThemeCookie("dark");
|
|
197
203
|
applyDarkThemeClass(true);
|
|
198
204
|
setThemeName(types.Themes.DARK);
|
|
199
205
|
setActiveTheme(types.Themes.DARK);
|
|
200
206
|
};
|
|
201
|
-
$[
|
|
207
|
+
$[16] = t7;
|
|
202
208
|
} else {
|
|
203
|
-
t7 = $[
|
|
209
|
+
t7 = $[16];
|
|
204
210
|
}
|
|
205
211
|
const setDarkMode = t7;
|
|
206
212
|
let t8;
|
|
207
|
-
if ($[
|
|
213
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
208
214
|
t8 = () => {
|
|
209
215
|
themeCookie.setThemeCookie("light");
|
|
210
216
|
applyDarkThemeClass(false);
|
|
211
217
|
setThemeName(types.Themes.LIGHT);
|
|
212
218
|
setActiveTheme(types.Themes.LIGHT);
|
|
213
219
|
};
|
|
214
|
-
$[
|
|
220
|
+
$[17] = t8;
|
|
215
221
|
} else {
|
|
216
|
-
t8 = $[
|
|
222
|
+
t8 = $[17];
|
|
217
223
|
}
|
|
218
224
|
const setLightMode = t8;
|
|
219
225
|
let t9;
|
|
220
|
-
if ($[
|
|
226
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
221
227
|
t9 = () => {
|
|
222
228
|
themeCookie.removeThemeCookie();
|
|
223
229
|
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -226,13 +232,13 @@ function ThemeProvider(t0) {
|
|
|
226
232
|
setThemeName(types.Themes.AUTO);
|
|
227
233
|
setActiveTheme(resolved_0);
|
|
228
234
|
};
|
|
229
|
-
$[
|
|
235
|
+
$[18] = t9;
|
|
230
236
|
} else {
|
|
231
|
-
t9 = $[
|
|
237
|
+
t9 = $[18];
|
|
232
238
|
}
|
|
233
239
|
const setAutoMode = t9;
|
|
234
240
|
let t10;
|
|
235
|
-
if ($[
|
|
241
|
+
if ($[19] !== activeTheme || $[20] !== themeName) {
|
|
236
242
|
t10 = {
|
|
237
243
|
activeTheme,
|
|
238
244
|
setDarkMode,
|
|
@@ -240,28 +246,35 @@ function ThemeProvider(t0) {
|
|
|
240
246
|
setAutoMode,
|
|
241
247
|
themeName
|
|
242
248
|
};
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
249
|
+
$[19] = activeTheme;
|
|
250
|
+
$[20] = themeName;
|
|
251
|
+
$[21] = t10;
|
|
246
252
|
} else {
|
|
247
|
-
t10 = $[
|
|
253
|
+
t10 = $[21];
|
|
248
254
|
}
|
|
249
255
|
const value = t10;
|
|
250
256
|
let t11;
|
|
251
|
-
if ($[
|
|
257
|
+
if ($[22] !== children || $[23] !== value) {
|
|
252
258
|
t11 = /*#__PURE__*/jsxRuntime.jsx(ThemeContext.Provider, {
|
|
253
259
|
value: value,
|
|
254
260
|
children: children
|
|
255
261
|
});
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
262
|
+
$[22] = children;
|
|
263
|
+
$[23] = value;
|
|
264
|
+
$[24] = t11;
|
|
259
265
|
} else {
|
|
260
|
-
t11 = $[
|
|
266
|
+
t11 = $[24];
|
|
261
267
|
}
|
|
262
268
|
return t11;
|
|
263
269
|
}
|
|
264
270
|
function useTheme() {
|
|
271
|
+
const $ = compilerRuntime.c(1);
|
|
272
|
+
if ($[0] !== "6af2a79bb0a5ea31fe49ed8f7bf26b51c96f9b8e73058b5a7e3a06aea42597bf") {
|
|
273
|
+
for (let $i = 0; $i < 1; $i += 1) {
|
|
274
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
275
|
+
}
|
|
276
|
+
$[0] = "6af2a79bb0a5ea31fe49ed8f7bf26b51c96f9b8e73058b5a7e3a06aea42597bf";
|
|
277
|
+
}
|
|
265
278
|
const context = react.useContext(ThemeContext);
|
|
266
279
|
if (context === undefined) {
|
|
267
280
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare function DocsLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): import("react
|
|
2
|
+
export declare function DocsLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): import("react").JSX.Element;
|
|
@@ -6,33 +6,39 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
var mergeClasses = require('@expo/styleguide-base/mergeClasses');
|
|
7
7
|
|
|
8
8
|
function DocsLogo(t0) {
|
|
9
|
-
const $ = compilerRuntime.c(
|
|
9
|
+
const $ = compilerRuntime.c(11);
|
|
10
|
+
if ($[0] !== "8b24cf251faeda0239e221b3a4a3c3cc39755dd7a8c2b766c50de5b1dcacef96") {
|
|
11
|
+
for (let $i = 0; $i < 11; $i += 1) {
|
|
12
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
13
|
+
}
|
|
14
|
+
$[0] = "8b24cf251faeda0239e221b3a4a3c3cc39755dd7a8c2b766c50de5b1dcacef96";
|
|
15
|
+
}
|
|
10
16
|
let className;
|
|
11
17
|
let rest;
|
|
12
|
-
if ($[
|
|
18
|
+
if ($[1] !== t0) {
|
|
13
19
|
({
|
|
14
20
|
className,
|
|
15
21
|
...rest
|
|
16
22
|
} = t0);
|
|
17
|
-
$[
|
|
18
|
-
$[
|
|
19
|
-
$[
|
|
23
|
+
$[1] = t0;
|
|
24
|
+
$[2] = className;
|
|
25
|
+
$[3] = rest;
|
|
20
26
|
} else {
|
|
21
|
-
className = $[
|
|
22
|
-
rest = $[
|
|
27
|
+
className = $[2];
|
|
28
|
+
rest = $[3];
|
|
23
29
|
}
|
|
24
30
|
let t1;
|
|
25
|
-
if ($[
|
|
31
|
+
if ($[4] !== className) {
|
|
26
32
|
t1 = mergeClasses.mergeClasses("icon-md text-icon-default", className);
|
|
27
|
-
$[
|
|
28
|
-
$[
|
|
33
|
+
$[4] = className;
|
|
34
|
+
$[5] = t1;
|
|
29
35
|
} else {
|
|
30
|
-
t1 = $[
|
|
36
|
+
t1 = $[5];
|
|
31
37
|
}
|
|
32
38
|
const _className = t1;
|
|
33
39
|
let t2;
|
|
34
40
|
let t3;
|
|
35
|
-
if ($[
|
|
41
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
36
42
|
t2 = /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
37
43
|
d: "M12.07 8a.157.157 0 01.166.015l5.374 4.141a.16.16 0 01.055.168l-.37 1.298a.157.157 0 01-.234.09l-4.416-2.768-.846 5.47a.157.157 0 01-.219.12l-1.158-.518a.157.157 0 01-.093-.154l.477-7.132a.157.157 0 01.085-.129L12.069 8z",
|
|
38
44
|
fill: "currentColor"
|
|
@@ -43,14 +49,14 @@ function DocsLogo(t0) {
|
|
|
43
49
|
d: "M9.584.02a.157.157 0 00-.157.001L.708 5.071l-.003.001a.157.157 0 00-.079.135V15.31c0 .056.03.108.079.136l1.71.984.004.003a.157.157 0 00.157 0l1.054-.61v1.183c0 .056.03.108.078.136l1.715.987a.157.157 0 00.156 0l.003-.002 2.024-1.172.91 2.934a.157.157 0 00.198.102l1.815-.594a.156.156 0 00.03-.013l8.732-4.666a.157.157 0 00.075-.186L16.06 4.258a.157.157 0 00-.205-.098l-1.473.529v-1.85a.157.157 0 00-.079-.135l-.002-.001-1.713-.986a.157.157 0 00-.156 0l-1.054.61V1.144a.157.157 0 00-.078-.136L9.584.02zM5.33 9.56l-.003-1.578-1.383-.805v9.74l1.4.806-.014-8.119a.156.156 0 010-.045zM.94 5.48l1.384.805.017 9.741-1.4-.806V5.48zm9.968-4.336l-1.4-.806-8.412 4.87 1.385.806 8.427-4.87zM5.483 7.71l8.427-4.87-1.4-.806-8.411 4.87 1.384.806zm5.09 11.313l-3.21-9.971 8.455-4.519 3.21 9.97-8.456 4.52zM5.678 9.678l3.09 9.967 1.514-.496-3.21-9.972-1.394.501z",
|
|
44
50
|
fill: "currentColor"
|
|
45
51
|
});
|
|
46
|
-
$[
|
|
47
|
-
$[
|
|
52
|
+
$[6] = t2;
|
|
53
|
+
$[7] = t3;
|
|
48
54
|
} else {
|
|
49
|
-
t2 = $[
|
|
50
|
-
t3 = $[
|
|
55
|
+
t2 = $[6];
|
|
56
|
+
t3 = $[7];
|
|
51
57
|
}
|
|
52
58
|
let t4;
|
|
53
|
-
if ($[
|
|
59
|
+
if ($[8] !== _className || $[9] !== rest) {
|
|
54
60
|
t4 = /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
55
61
|
viewBox: "0 0 20 20",
|
|
56
62
|
fill: "none",
|
|
@@ -59,11 +65,11 @@ function DocsLogo(t0) {
|
|
|
59
65
|
...rest,
|
|
60
66
|
children: [t2, t3]
|
|
61
67
|
});
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
68
|
+
$[8] = _className;
|
|
69
|
+
$[9] = rest;
|
|
70
|
+
$[10] = t4;
|
|
65
71
|
} else {
|
|
66
|
-
t4 = $[
|
|
72
|
+
t4 = $[10];
|
|
67
73
|
}
|
|
68
74
|
return t4;
|
|
69
75
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare function ExpoGoLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): import("react
|
|
2
|
+
export declare function ExpoGoLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): import("react").JSX.Element;
|
|
@@ -6,42 +6,48 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
var mergeClasses = require('@expo/styleguide-base/mergeClasses');
|
|
7
7
|
|
|
8
8
|
function ExpoGoLogo(t0) {
|
|
9
|
-
const $ = compilerRuntime.c(
|
|
9
|
+
const $ = compilerRuntime.c(10);
|
|
10
|
+
if ($[0] !== "0b577ac4c6059436d476dc74af8944b5478f966739a1fa5cef5fdf94fc0f3d0c") {
|
|
11
|
+
for (let $i = 0; $i < 10; $i += 1) {
|
|
12
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
13
|
+
}
|
|
14
|
+
$[0] = "0b577ac4c6059436d476dc74af8944b5478f966739a1fa5cef5fdf94fc0f3d0c";
|
|
15
|
+
}
|
|
10
16
|
let className;
|
|
11
17
|
let rest;
|
|
12
|
-
if ($[
|
|
18
|
+
if ($[1] !== t0) {
|
|
13
19
|
({
|
|
14
20
|
className,
|
|
15
21
|
...rest
|
|
16
22
|
} = t0);
|
|
17
|
-
$[
|
|
18
|
-
$[
|
|
19
|
-
$[
|
|
23
|
+
$[1] = t0;
|
|
24
|
+
$[2] = className;
|
|
25
|
+
$[3] = rest;
|
|
20
26
|
} else {
|
|
21
|
-
className = $[
|
|
22
|
-
rest = $[
|
|
27
|
+
className = $[2];
|
|
28
|
+
rest = $[3];
|
|
23
29
|
}
|
|
24
30
|
let t1;
|
|
25
|
-
if ($[
|
|
31
|
+
if ($[4] !== className) {
|
|
26
32
|
t1 = mergeClasses.mergeClasses("icon-md text-icon-default", className);
|
|
27
|
-
$[
|
|
28
|
-
$[
|
|
33
|
+
$[4] = className;
|
|
34
|
+
$[5] = t1;
|
|
29
35
|
} else {
|
|
30
|
-
t1 = $[
|
|
36
|
+
t1 = $[5];
|
|
31
37
|
}
|
|
32
38
|
const _className = t1;
|
|
33
39
|
let t2;
|
|
34
|
-
if ($[
|
|
40
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
35
41
|
t2 = /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
36
42
|
d: "M18.072 7.75a1.749 1.749 0 00-1.56-.732 1.763 1.763 0 00-1.436.946 1.55 1.55 0 00.302 1.75 2.57 2.57 0 001.716-.484 2.53 2.53 0 00.978-1.48zM12.866 1L11.751.394 6.897 3.072l.387.207.736.383 1.332-.733L12.867.987 12.866 1zm.449-.184a.173.173 0 01.124.115l1.626 4.755a.158.158 0 01-.077.207 3.126 3.126 0 00-1.384 1.519 3.09 3.09 0 00-.134 2.042 3.29 3.29 0 001.35 1.793 3.343 3.343 0 002.195.524.208.208 0 01.202.123l1.68 4.88a.196.196 0 01-.078.215l-5.163 2.992a.195.195 0 01-.078.015.208.208 0 01-.14-.022l-1.81-1.129a.18.18 0 01-.078-.076l-3.538-8.065-5.388 3.039a.25.25 0 01-.21.008l-1.224-.69a.177.177 0 01-.077-.23l5.234-9.847c.02-.033.05-.06.085-.076L11.65.023a.2.2 0 01.186 0l1.479.793zM6.843 3.46l-.256-.13-5.044 9.523.92.514 4.352-5.643a.212.212 0 01.178-.077.217.217 0 01.155.115l4.738 10.82 1.266.775L8.066 4.62l-.216-.614-1.014-.552.007.007zm7.804 5.679a1.932 1.932 0 01.092-1.28c.176-.404.484-.737.875-.945a2.152 2.152 0 012.509.307 1.934 1.934 0 01.056 2.745l-.056.056a2.118 2.118 0 01-1.986.516 2.118 2.118 0 01-.928-.508 2.091 2.091 0 01-.562-.891z",
|
|
37
43
|
fill: "currentColor"
|
|
38
44
|
});
|
|
39
|
-
$[
|
|
45
|
+
$[6] = t2;
|
|
40
46
|
} else {
|
|
41
|
-
t2 = $[
|
|
47
|
+
t2 = $[6];
|
|
42
48
|
}
|
|
43
49
|
let t3;
|
|
44
|
-
if ($[
|
|
50
|
+
if ($[7] !== _className || $[8] !== rest) {
|
|
45
51
|
t3 = /*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
46
52
|
viewBox: "0 0 20 20",
|
|
47
53
|
fill: "none",
|
|
@@ -50,11 +56,11 @@ function ExpoGoLogo(t0) {
|
|
|
50
56
|
...rest,
|
|
51
57
|
children: t2
|
|
52
58
|
});
|
|
53
|
-
$[
|
|
54
|
-
$[
|
|
55
|
-
$[
|
|
59
|
+
$[7] = _className;
|
|
60
|
+
$[8] = rest;
|
|
61
|
+
$[9] = t3;
|
|
56
62
|
} else {
|
|
57
|
-
t3 = $[
|
|
63
|
+
t3 = $[9];
|
|
58
64
|
}
|
|
59
65
|
return t3;
|
|
60
66
|
}
|
package/dist/src/logos/Logo.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare function Logo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): import("react
|
|
2
|
+
export declare function Logo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): import("react").JSX.Element;
|