@expo/styleguide 13.1.2 → 14.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.
@@ -0,0 +1,131 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var compilerRuntime = require('react/compiler-runtime');
5
+ var Link = require('next/link');
6
+ var react = require('react');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+
9
+ const LinkBase = /*#__PURE__*/react.forwardRef((t0, ref) => {
10
+ const $ = compilerRuntime.c(33);
11
+ let children;
12
+ let disabled;
13
+ let href;
14
+ let onClick;
15
+ let openInNewTab;
16
+ let rel;
17
+ let rest;
18
+ let skipNextLink;
19
+ let target;
20
+ let testID;
21
+ if ($[0] !== t0) {
22
+ ({
23
+ children,
24
+ testID,
25
+ href,
26
+ openInNewTab,
27
+ onClick,
28
+ target,
29
+ disabled,
30
+ skipNextLink,
31
+ rel,
32
+ ...rest
33
+ } = t0);
34
+ $[0] = t0;
35
+ $[1] = children;
36
+ $[2] = disabled;
37
+ $[3] = href;
38
+ $[4] = onClick;
39
+ $[5] = openInNewTab;
40
+ $[6] = rel;
41
+ $[7] = rest;
42
+ $[8] = skipNextLink;
43
+ $[9] = target;
44
+ $[10] = testID;
45
+ } else {
46
+ children = $[1];
47
+ disabled = $[2];
48
+ href = $[3];
49
+ onClick = $[4];
50
+ openInNewTab = $[5];
51
+ rel = $[6];
52
+ rest = $[7];
53
+ skipNextLink = $[8];
54
+ target = $[9];
55
+ testID = $[10];
56
+ }
57
+ if (disabled) {
58
+ let t1;
59
+ if ($[11] !== children || $[12] !== ref || $[13] !== rest || $[14] !== testID) {
60
+ t1 = /*#__PURE__*/jsxRuntime.jsx("a", {
61
+ ref: ref,
62
+ "data-testid": testID,
63
+ ...rest,
64
+ children: children
65
+ });
66
+ $[11] = children;
67
+ $[12] = ref;
68
+ $[13] = rest;
69
+ $[14] = testID;
70
+ $[15] = t1;
71
+ } else {
72
+ t1 = $[15];
73
+ }
74
+ return t1;
75
+ }
76
+ if (!href || href.startsWith("#")) {
77
+ let t1;
78
+ if ($[16] !== children || $[17] !== href || $[18] !== onClick || $[19] !== ref || $[20] !== rest || $[21] !== testID) {
79
+ t1 = /*#__PURE__*/jsxRuntime.jsx("a", {
80
+ href: href,
81
+ ref: ref,
82
+ onClick: onClick,
83
+ "data-testid": testID,
84
+ ...rest,
85
+ children: children
86
+ });
87
+ $[16] = children;
88
+ $[17] = href;
89
+ $[18] = onClick;
90
+ $[19] = ref;
91
+ $[20] = rest;
92
+ $[21] = testID;
93
+ $[22] = t1;
94
+ } else {
95
+ t1 = $[22];
96
+ }
97
+ return t1;
98
+ }
99
+ const Tag = skipNextLink ? "a" : Link;
100
+ const t1 = openInNewTab ? "_blank" : target;
101
+ const t2 = openInNewTab ? "noopener noreferrer" : rel;
102
+ let t3;
103
+ if ($[23] !== Tag || $[24] !== children || $[25] !== href || $[26] !== onClick || $[27] !== ref || $[28] !== rest || $[29] !== t1 || $[30] !== t2 || $[31] !== testID) {
104
+ t3 = /*#__PURE__*/jsxRuntime.jsx(Tag, {
105
+ href: href,
106
+ ref: ref,
107
+ onClick: onClick,
108
+ target: t1,
109
+ rel: t2,
110
+ "data-testid": testID,
111
+ ...rest,
112
+ children: children
113
+ });
114
+ $[23] = Tag;
115
+ $[24] = children;
116
+ $[25] = href;
117
+ $[26] = onClick;
118
+ $[27] = ref;
119
+ $[28] = rest;
120
+ $[29] = t1;
121
+ $[30] = t2;
122
+ $[31] = testID;
123
+ $[32] = t3;
124
+ } else {
125
+ t3 = $[32];
126
+ }
127
+ return t3;
128
+ });
129
+ LinkBase.displayName = 'LinkBase';
130
+
131
+ exports.LinkBase = LinkBase;
@@ -1,12 +1,14 @@
1
1
  import { type ReactNode } from 'react';
2
- export declare enum Themes {
3
- AUTO = "auto",
4
- DARK = "dark",
5
- LIGHT = "light"
6
- }
2
+ import { Themes } from './types';
7
3
  type ActiveTheme = Themes.LIGHT | Themes.DARK | undefined;
8
4
  type ThemeProviderProps = {
9
5
  children: ReactNode;
6
+ /**
7
+ * Locks the theme to `initialThemeName` and stops cookie/system preference
8
+ * from overriding it. User-triggered toggles (`setDarkMode` etc.) still
9
+ * update the class/cookie if called directly; consumers typically hide
10
+ * their toggle UI on disabled pages instead.
11
+ */
10
12
  disabled?: boolean;
11
13
  /**
12
14
  * The resolved theme name, read from the `expo-theme` cookie on the server
@@ -16,7 +18,7 @@ type ThemeProviderProps = {
16
18
  */
17
19
  initialThemeName?: Themes;
18
20
  };
19
- export declare function ThemeProvider({ children, disabled, initialThemeName }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function ThemeProvider({ children, disabled, initialThemeName, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
20
22
  export declare function useTheme(): {
21
23
  activeTheme: ActiveTheme;
22
24
  setDarkMode: () => void;
@@ -0,0 +1,264 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var compilerRuntime = require('react/compiler-runtime');
5
+ var react = require('react');
6
+ var themeCookie = require('./theme-cookie.js');
7
+ var types = require('./types.js');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+
10
+ const ThemeContext = /*#__PURE__*/react.createContext({
11
+ activeTheme: undefined,
12
+ setDarkMode: () => {},
13
+ setLightMode: () => {},
14
+ setAutoMode: () => {},
15
+ themeName: types.Themes.AUTO
16
+ });
17
+ function getInitialThemeName(disabled, initialThemeName) {
18
+ if (disabled) {
19
+ return initialThemeName ?? types.Themes.LIGHT;
20
+ }
21
+ if (initialThemeName) {
22
+ return initialThemeName;
23
+ }
24
+ return types.Themes.AUTO;
25
+ }
26
+ function resolvedActiveThemeFromName(themeName, prefersDark) {
27
+ if (themeName === types.Themes.DARK || themeName === types.Themes.LIGHT) {
28
+ return themeName;
29
+ }
30
+ return prefersDark ? types.Themes.DARK : types.Themes.LIGHT;
31
+ }
32
+
33
+ /**
34
+ * Toggle the `dark-theme` class on `<html>` cleanly across SPA navigations.
35
+ *
36
+ * Two things conspire to make a naive `classList.toggle` visibly flashy:
37
+ * 1. CSS transitions on consumer elements (e.g. a skeleton loader with
38
+ * `transition-colors duration-[5s]`) animate the color change over
39
+ * seconds if we flip the class during a normal React commit.
40
+ * 2. If the class flip happens a frame late (e.g. via `requestAnimationFrame`)
41
+ * the browser paints once with old-class + new-content, causing a visible
42
+ * flash of the wrong theme during navigation.
43
+ *
44
+ * Fix:
45
+ * - Inject `transition: none !important` into `<head>` synchronously so every
46
+ * transition is suppressed for the duration of the flip.
47
+ * - Flip the class synchronously in the same tick. When this runs inside a
48
+ * `useLayoutEffect`, the browser's next paint already sees both the new
49
+ * class and the transition suppressor, so no animation or flash occurs.
50
+ * - Remove the suppressor two frames later, after the paint has landed, so
51
+ * user-initiated theme toggles still animate smoothly.
52
+ */
53
+ function applyDarkThemeClass(shouldBeDark) {
54
+ const html = document.documentElement;
55
+ if (html.classList.contains('dark-theme') === shouldBeDark) {
56
+ return;
57
+ }
58
+ const style = document.createElement('style');
59
+ style.textContent = '*, *::before, *::after { transition: none !important; }';
60
+ document.head.appendChild(style);
61
+ html.classList.toggle('dark-theme', shouldBeDark);
62
+ requestAnimationFrame(() => {
63
+ requestAnimationFrame(() => {
64
+ style.remove();
65
+ });
66
+ });
67
+ }
68
+ function getInitialActiveTheme(disabled, initialThemeName) {
69
+ if (initialThemeName === types.Themes.DARK || initialThemeName === types.Themes.LIGHT) {
70
+ return initialThemeName;
71
+ }
72
+ if (disabled) {
73
+ return types.Themes.LIGHT;
74
+ }
75
+ if (typeof document === 'undefined') {
76
+ return undefined;
77
+ }
78
+ return document.documentElement.classList.contains('dark-theme') ? types.Themes.DARK : types.Themes.LIGHT;
79
+ }
80
+ function ThemeProvider(t0) {
81
+ const $ = compilerRuntime.c(24);
82
+ const {
83
+ children,
84
+ disabled: t1,
85
+ initialThemeName
86
+ } = t0;
87
+ const disabled = t1 === undefined ? false : t1;
88
+ let t2;
89
+ if ($[0] !== disabled || $[1] !== initialThemeName) {
90
+ t2 = () => getInitialThemeName(disabled, initialThemeName);
91
+ $[0] = disabled;
92
+ $[1] = initialThemeName;
93
+ $[2] = t2;
94
+ } else {
95
+ t2 = $[2];
96
+ }
97
+ const [themeName, setThemeName] = react.useState(t2);
98
+ let t3;
99
+ if ($[3] !== disabled || $[4] !== initialThemeName) {
100
+ t3 = () => getInitialActiveTheme(disabled, initialThemeName);
101
+ $[3] = disabled;
102
+ $[4] = initialThemeName;
103
+ $[5] = t3;
104
+ } else {
105
+ t3 = $[5];
106
+ }
107
+ const [activeTheme, setActiveTheme] = react.useState(t3);
108
+ let t4;
109
+ if ($[6] !== themeName) {
110
+ t4 = event => {
111
+ if (themeName !== types.Themes.AUTO) {
112
+ return;
113
+ }
114
+ const resolved = event.matches ? types.Themes.DARK : types.Themes.LIGHT;
115
+ applyDarkThemeClass(resolved === types.Themes.DARK);
116
+ setActiveTheme(resolved);
117
+ };
118
+ $[6] = themeName;
119
+ $[7] = t4;
120
+ } else {
121
+ t4 = $[7];
122
+ }
123
+ const onMediaChange = react.useEffectEvent(t4);
124
+ let t5;
125
+ if ($[8] !== disabled || $[9] !== initialThemeName || $[10] !== onMediaChange) {
126
+ t5 = function syncToResolvedTheme() {
127
+ if (disabled) {
128
+ const lockedActive = initialThemeName === types.Themes.DARK ? types.Themes.DARK : initialThemeName === types.Themes.LIGHT ? types.Themes.LIGHT : types.Themes.LIGHT;
129
+ applyDarkThemeClass(lockedActive === types.Themes.DARK);
130
+ setThemeName(initialThemeName ?? types.Themes.LIGHT);
131
+ setActiveTheme(lockedActive);
132
+ return;
133
+ }
134
+ const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
135
+ try {
136
+ mediaQuery.addEventListener("change", onMediaChange);
137
+ } catch {
138
+ mediaQuery.addListener(onMediaChange);
139
+ }
140
+ const preference = themeCookie.getThemeCookie();
141
+ let resolvedName;
142
+ if (preference === "dark") {
143
+ resolvedName = types.Themes.DARK;
144
+ } else {
145
+ if (preference === "light") {
146
+ resolvedName = types.Themes.LIGHT;
147
+ } else {
148
+ if (initialThemeName) {
149
+ resolvedName = initialThemeName;
150
+ } else {
151
+ resolvedName = types.Themes.AUTO;
152
+ }
153
+ }
154
+ }
155
+ setThemeName(resolvedName);
156
+ const resolvedActive = resolvedActiveThemeFromName(resolvedName, mediaQuery.matches);
157
+ setActiveTheme(resolvedActive);
158
+ applyDarkThemeClass(resolvedActive === types.Themes.DARK);
159
+ return function cleanup() {
160
+ try {
161
+ mediaQuery.removeEventListener("change", onMediaChange);
162
+ } catch {
163
+ mediaQuery.removeListener(onMediaChange);
164
+ }
165
+ };
166
+ };
167
+ $[8] = disabled;
168
+ $[9] = initialThemeName;
169
+ $[10] = onMediaChange;
170
+ $[11] = t5;
171
+ } else {
172
+ t5 = $[11];
173
+ }
174
+ let t6;
175
+ if ($[12] !== disabled || $[13] !== initialThemeName) {
176
+ t6 = [disabled, initialThemeName];
177
+ $[12] = disabled;
178
+ $[13] = initialThemeName;
179
+ $[14] = t6;
180
+ } else {
181
+ t6 = $[14];
182
+ }
183
+ react.useLayoutEffect(t5, t6);
184
+ let t7;
185
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
186
+ t7 = () => {
187
+ themeCookie.setThemeCookie("dark");
188
+ applyDarkThemeClass(true);
189
+ setThemeName(types.Themes.DARK);
190
+ setActiveTheme(types.Themes.DARK);
191
+ };
192
+ $[15] = t7;
193
+ } else {
194
+ t7 = $[15];
195
+ }
196
+ const setDarkMode = t7;
197
+ let t8;
198
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
199
+ t8 = () => {
200
+ themeCookie.setThemeCookie("light");
201
+ applyDarkThemeClass(false);
202
+ setThemeName(types.Themes.LIGHT);
203
+ setActiveTheme(types.Themes.LIGHT);
204
+ };
205
+ $[16] = t8;
206
+ } else {
207
+ t8 = $[16];
208
+ }
209
+ const setLightMode = t8;
210
+ let t9;
211
+ if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
212
+ t9 = () => {
213
+ themeCookie.removeThemeCookie();
214
+ const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
215
+ const resolved_0 = prefersDark ? types.Themes.DARK : types.Themes.LIGHT;
216
+ applyDarkThemeClass(resolved_0 === types.Themes.DARK);
217
+ setThemeName(types.Themes.AUTO);
218
+ setActiveTheme(resolved_0);
219
+ };
220
+ $[17] = t9;
221
+ } else {
222
+ t9 = $[17];
223
+ }
224
+ const setAutoMode = t9;
225
+ let t10;
226
+ if ($[18] !== activeTheme || $[19] !== themeName) {
227
+ t10 = {
228
+ activeTheme,
229
+ setDarkMode,
230
+ setLightMode,
231
+ setAutoMode,
232
+ themeName
233
+ };
234
+ $[18] = activeTheme;
235
+ $[19] = themeName;
236
+ $[20] = t10;
237
+ } else {
238
+ t10 = $[20];
239
+ }
240
+ const value = t10;
241
+ let t11;
242
+ if ($[21] !== children || $[22] !== value) {
243
+ t11 = /*#__PURE__*/jsxRuntime.jsx(ThemeContext.Provider, {
244
+ value: value,
245
+ children: children
246
+ });
247
+ $[21] = children;
248
+ $[22] = value;
249
+ $[23] = t11;
250
+ } else {
251
+ t11 = $[23];
252
+ }
253
+ return t11;
254
+ }
255
+ function useTheme() {
256
+ const context = react.useContext(ThemeContext);
257
+ if (context === undefined) {
258
+ throw new Error("useTheme must be used within a ThemeProvider");
259
+ }
260
+ return context;
261
+ }
262
+
263
+ exports.ThemeProvider = ThemeProvider;
264
+ exports.useTheme = useTheme;
@@ -1,2 +1,3 @@
1
+ export * from './types';
1
2
  export * from './ThemeProvider';
2
3
  export * from './theme-cookie';
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+
3
+ const THEME_COOKIE_NAME = 'expo-theme';
4
+ const DOMAIN_REGEX = /^((pr-\d+|staging|launch|docs|snack|internal)\.expo\.|expo\.)(test|dev)$/;
5
+ function getCookieDomain() {
6
+ if (typeof location === 'undefined') {
7
+ return undefined;
8
+ }
9
+ const hostname = location.hostname;
10
+ if (DOMAIN_REGEX.test(hostname)) {
11
+ return hostname.replace(/^(pr-\d+|staging|launch|docs|snack|internal)\./, '');
12
+ }
13
+ return undefined;
14
+ }
15
+ function getThemeCookie() {
16
+ if (typeof document === 'undefined') {
17
+ return null;
18
+ }
19
+ const match = document.cookie.match(new RegExp(`(?:^|;\\s*)${THEME_COOKIE_NAME}=([^;]*)`));
20
+ const value = match?.[1];
21
+ if (value === 'dark' || value === 'light') {
22
+ return value;
23
+ }
24
+ return null;
25
+ }
26
+ function setThemeCookie(theme) {
27
+ if (typeof document === 'undefined') {
28
+ return;
29
+ }
30
+ const isSecure = location.protocol === 'https:';
31
+ const domain = getCookieDomain();
32
+ let cookie = `${THEME_COOKIE_NAME}=${theme}; path=/; max-age=31536000; samesite=lax`;
33
+ if (isSecure) {
34
+ cookie += '; secure';
35
+ }
36
+ if (domain) {
37
+ cookie += `; domain=${domain}`;
38
+ // Remove any stale cookie scoped to the exact hostname (e.g. docs.expo.dev)
39
+ document.cookie = `${THEME_COOKIE_NAME}=; path=/; max-age=0; samesite=lax`;
40
+ }
41
+ document.cookie = cookie;
42
+ }
43
+ function removeThemeCookie() {
44
+ if (typeof document === 'undefined') {
45
+ return;
46
+ }
47
+ const domain = getCookieDomain();
48
+
49
+ // Always clear the hostname-scoped cookie. It can linger from before the
50
+ // domain-scoping logic existed, or from a code path that wrote it without a
51
+ // domain, and `getThemeCookie` would then resurrect the old value on reload.
52
+ document.cookie = `${THEME_COOKIE_NAME}=; path=/; max-age=0; samesite=lax`;
53
+ if (domain) {
54
+ document.cookie = `${THEME_COOKIE_NAME}=; path=/; max-age=0; samesite=lax; domain=${domain}`;
55
+ }
56
+ }
57
+ function getThemeFromCookieHeader(cookieHeader) {
58
+ const match = cookieHeader.match(new RegExp(`(?:^|;\\s*)${THEME_COOKIE_NAME}=([^;]*)`));
59
+ const value = match?.[1];
60
+ if (value === 'dark' || value === 'light') {
61
+ return value;
62
+ }
63
+ return null;
64
+ }
65
+
66
+ exports.THEME_COOKIE_NAME = THEME_COOKIE_NAME;
67
+ exports.getThemeCookie = getThemeCookie;
68
+ exports.getThemeFromCookieHeader = getThemeFromCookieHeader;
69
+ exports.removeThemeCookie = removeThemeCookie;
70
+ exports.setThemeCookie = setThemeCookie;
@@ -0,0 +1,5 @@
1
+ export declare enum Themes {
2
+ AUTO = "auto",
3
+ DARK = "dark",
4
+ LIGHT = "light"
5
+ }
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ let Themes = /*#__PURE__*/function (Themes) {
4
+ Themes["AUTO"] = "auto";
5
+ Themes["DARK"] = "dark";
6
+ Themes["LIGHT"] = "light";
7
+ return Themes;
8
+ }({});
9
+
10
+ exports.Themes = Themes;
@@ -1 +1 @@
1
- export declare const mergeClasses: (...classLists: import("tailwind-merge").ClassNameValue[]) => string;
1
+ export { mergeClasses } from '@expo/styleguide-base/mergeClasses';
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+
3
+ var compilerRuntime = require('react/compiler-runtime');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var mergeClasses = require('@expo/styleguide-base/mergeClasses');
6
+
7
+ function DocsLogo(t0) {
8
+ const $ = compilerRuntime.c(10);
9
+ let className;
10
+ let rest;
11
+ if ($[0] !== t0) {
12
+ ({
13
+ className,
14
+ ...rest
15
+ } = t0);
16
+ $[0] = t0;
17
+ $[1] = className;
18
+ $[2] = rest;
19
+ } else {
20
+ className = $[1];
21
+ rest = $[2];
22
+ }
23
+ let t1;
24
+ if ($[3] !== className) {
25
+ t1 = mergeClasses.mergeClasses("icon-md text-icon-default", className);
26
+ $[3] = className;
27
+ $[4] = t1;
28
+ } else {
29
+ t1 = $[4];
30
+ }
31
+ const _className = t1;
32
+ let t2;
33
+ let t3;
34
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
35
+ t2 = /*#__PURE__*/jsxRuntime.jsx("path", {
36
+ 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",
37
+ fill: "currentColor"
38
+ });
39
+ t3 = /*#__PURE__*/jsxRuntime.jsx("path", {
40
+ fillRule: "evenodd",
41
+ clipRule: "evenodd",
42
+ 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",
43
+ fill: "currentColor"
44
+ });
45
+ $[5] = t2;
46
+ $[6] = t3;
47
+ } else {
48
+ t2 = $[5];
49
+ t3 = $[6];
50
+ }
51
+ let t4;
52
+ if ($[7] !== _className || $[8] !== rest) {
53
+ t4 = /*#__PURE__*/jsxRuntime.jsxs("svg", {
54
+ viewBox: "0 0 20 20",
55
+ fill: "none",
56
+ role: "img",
57
+ className: _className,
58
+ ...rest,
59
+ children: [t2, t3]
60
+ });
61
+ $[7] = _className;
62
+ $[8] = rest;
63
+ $[9] = t4;
64
+ } else {
65
+ t4 = $[9];
66
+ }
67
+ return t4;
68
+ }
69
+
70
+ exports.DocsLogo = DocsLogo;
@@ -0,0 +1,61 @@
1
+ 'use strict';
2
+
3
+ var compilerRuntime = require('react/compiler-runtime');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+ var mergeClasses = require('@expo/styleguide-base/mergeClasses');
6
+
7
+ function ExpoGoLogo(t0) {
8
+ const $ = compilerRuntime.c(9);
9
+ let className;
10
+ let rest;
11
+ if ($[0] !== t0) {
12
+ ({
13
+ className,
14
+ ...rest
15
+ } = t0);
16
+ $[0] = t0;
17
+ $[1] = className;
18
+ $[2] = rest;
19
+ } else {
20
+ className = $[1];
21
+ rest = $[2];
22
+ }
23
+ let t1;
24
+ if ($[3] !== className) {
25
+ t1 = mergeClasses.mergeClasses("icon-md text-icon-default", className);
26
+ $[3] = className;
27
+ $[4] = t1;
28
+ } else {
29
+ t1 = $[4];
30
+ }
31
+ const _className = t1;
32
+ let t2;
33
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
34
+ t2 = /*#__PURE__*/jsxRuntime.jsx("path", {
35
+ 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",
36
+ fill: "currentColor"
37
+ });
38
+ $[5] = t2;
39
+ } else {
40
+ t2 = $[5];
41
+ }
42
+ let t3;
43
+ if ($[6] !== _className || $[7] !== rest) {
44
+ t3 = /*#__PURE__*/jsxRuntime.jsx("svg", {
45
+ viewBox: "0 0 20 20",
46
+ fill: "none",
47
+ role: "img",
48
+ className: _className,
49
+ ...rest,
50
+ children: t2
51
+ });
52
+ $[6] = _className;
53
+ $[7] = rest;
54
+ $[8] = t3;
55
+ } else {
56
+ t3 = $[8];
57
+ }
58
+ return t3;
59
+ }
60
+
61
+ exports.ExpoGoLogo = ExpoGoLogo;