@expo/styleguide 7.0.0 → 8.0.0-alpha.1

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.
Files changed (318) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +32 -18
  3. package/dist/expo-theme.css +3 -3
  4. package/dist/global.css +13 -0
  5. package/dist/index.d.ts +5 -13
  6. package/dist/index.js +856 -37
  7. package/dist/src/components/Button/Button.d.ts +12 -0
  8. package/dist/src/components/Button/ButtonBase.d.ts +8 -0
  9. package/dist/src/components/Button/helpers.d.ts +6 -0
  10. package/dist/src/components/Button/index.d.ts +2 -0
  11. package/dist/src/components/Link/Link.d.ts +2 -0
  12. package/dist/src/components/Link/LinkBase.d.ts +12 -0
  13. package/dist/src/components/Link/index.d.ts +2 -0
  14. package/dist/{components → src/components/Theme}/BlockingSetInitialColorMode.d.ts +0 -1
  15. package/dist/{components → src/components/Theme}/ThemeProvider.d.ts +1 -1
  16. package/dist/src/components/Theme/index.d.ts +2 -0
  17. package/dist/src/components/index.d.ts +3 -0
  18. package/dist/src/logos/DocsLogo.d.ts +2 -0
  19. package/dist/src/logos/ExpoGoLogo.d.ts +2 -0
  20. package/dist/src/logos/Logo.d.ts +2 -0
  21. package/dist/src/logos/SnackLogo.d.ts +2 -0
  22. package/dist/src/logos/WordMarkLogo.d.ts +2 -0
  23. package/dist/src/styles/themes.d.ts +227 -0
  24. package/dist/{types → src/types}/index.d.ts +1 -1
  25. package/dist/tailwind.js +360 -0
  26. package/package.json +26 -21
  27. package/tailwind.js +322 -97
  28. package/dist/components/BlockingSetInitialColorMode.js +0 -64
  29. package/dist/components/ThemeProvider.js +0 -139
  30. package/dist/icons/ActivityIcon.d.ts +0 -3
  31. package/dist/icons/ActivityIcon.js +0 -14
  32. package/dist/icons/AddPhotoIcon.d.ts +0 -3
  33. package/dist/icons/AddPhotoIcon.js +0 -14
  34. package/dist/icons/AndroidIcon.d.ts +0 -3
  35. package/dist/icons/AndroidIcon.js +0 -14
  36. package/dist/icons/AppleAppStoreIcon.d.ts +0 -3
  37. package/dist/icons/AppleAppStoreIcon.js +0 -16
  38. package/dist/icons/AppleIcon.d.ts +0 -3
  39. package/dist/icons/AppleIcon.js +0 -14
  40. package/dist/icons/AppleSimulatorIcon.d.ts +0 -3
  41. package/dist/icons/AppleSimulatorIcon.js +0 -18
  42. package/dist/icons/ArrowDownIcon.d.ts +0 -3
  43. package/dist/icons/ArrowDownIcon.js +0 -14
  44. package/dist/icons/ArrowLeftIcon.d.ts +0 -3
  45. package/dist/icons/ArrowLeftIcon.js +0 -14
  46. package/dist/icons/ArrowRightIcon.d.ts +0 -3
  47. package/dist/icons/ArrowRightIcon.js +0 -14
  48. package/dist/icons/ArrowUpIcon.d.ts +0 -3
  49. package/dist/icons/ArrowUpIcon.js +0 -14
  50. package/dist/icons/ArrowUpRightIcon.d.ts +0 -3
  51. package/dist/icons/ArrowUpRightIcon.js +0 -14
  52. package/dist/icons/AtSignIcon.d.ts +0 -3
  53. package/dist/icons/AtSignIcon.js +0 -14
  54. package/dist/icons/BadgeIcon.d.ts +0 -3
  55. package/dist/icons/BadgeIcon.js +0 -15
  56. package/dist/icons/BellIcon.d.ts +0 -3
  57. package/dist/icons/BellIcon.js +0 -14
  58. package/dist/icons/BranchIcon.d.ts +0 -3
  59. package/dist/icons/BranchIcon.js +0 -14
  60. package/dist/icons/BugInspectIcon.d.ts +0 -3
  61. package/dist/icons/BugInspectIcon.js +0 -16
  62. package/dist/icons/BuildIcon.d.ts +0 -3
  63. package/dist/icons/BuildIcon.js +0 -14
  64. package/dist/icons/BuildNumberIcon.d.ts +0 -3
  65. package/dist/icons/BuildNumberIcon.js +0 -14
  66. package/dist/icons/BuildProfileIcon.d.ts +0 -3
  67. package/dist/icons/BuildProfileIcon.js +0 -14
  68. package/dist/icons/ChangelogIcon.d.ts +0 -3
  69. package/dist/icons/ChangelogIcon.js +0 -15
  70. package/dist/icons/ChannelIcon.d.ts +0 -3
  71. package/dist/icons/ChannelIcon.js +0 -15
  72. package/dist/icons/ChartIcon.d.ts +0 -3
  73. package/dist/icons/ChartIcon.js +0 -15
  74. package/dist/icons/CheckIcon.d.ts +0 -3
  75. package/dist/icons/CheckIcon.js +0 -14
  76. package/dist/icons/ChevronDownIcon.d.ts +0 -3
  77. package/dist/icons/ChevronDownIcon.js +0 -14
  78. package/dist/icons/ChevronLeftIcon.d.ts +0 -3
  79. package/dist/icons/ChevronLeftIcon.js +0 -14
  80. package/dist/icons/ChevronRightIcon.d.ts +0 -3
  81. package/dist/icons/ChevronRightIcon.js +0 -14
  82. package/dist/icons/ChevronUpIcon.d.ts +0 -3
  83. package/dist/icons/ChevronUpIcon.js +0 -14
  84. package/dist/icons/ClipboardIcon.d.ts +0 -3
  85. package/dist/icons/ClipboardIcon.js +0 -16
  86. package/dist/icons/CloudSlashIcon.d.ts +0 -3
  87. package/dist/icons/CloudSlashIcon.js +0 -14
  88. package/dist/icons/CodeIcon.d.ts +0 -3
  89. package/dist/icons/CodeIcon.js +0 -14
  90. package/dist/icons/CommandLineIcon.d.ts +0 -3
  91. package/dist/icons/CommandLineIcon.js +0 -14
  92. package/dist/icons/CommitIcon.d.ts +0 -3
  93. package/dist/icons/CommitIcon.js +0 -14
  94. package/dist/icons/CredentialIcon.d.ts +0 -3
  95. package/dist/icons/CredentialIcon.js +0 -16
  96. package/dist/icons/CreditCardIcon.d.ts +0 -3
  97. package/dist/icons/CreditCardIcon.js +0 -15
  98. package/dist/icons/DatabaseIcon.d.ts +0 -3
  99. package/dist/icons/DatabaseIcon.js +0 -15
  100. package/dist/icons/DebugIcon.d.ts +0 -3
  101. package/dist/icons/DebugIcon.js +0 -15
  102. package/dist/icons/DeploymentIcon.d.ts +0 -3
  103. package/dist/icons/DeploymentIcon.js +0 -14
  104. package/dist/icons/DeploymentsIcon.d.ts +0 -3
  105. package/dist/icons/DeploymentsIcon.js +0 -17
  106. package/dist/icons/DiscordIcon.d.ts +0 -3
  107. package/dist/icons/DiscordIcon.js +0 -14
  108. package/dist/icons/DiscourseIcon.d.ts +0 -3
  109. package/dist/icons/DiscourseIcon.js +0 -14
  110. package/dist/icons/DownloadIcon.d.ts +0 -3
  111. package/dist/icons/DownloadIcon.js +0 -15
  112. package/dist/icons/EasMetadataIcon.d.ts +0 -3
  113. package/dist/icons/EasMetadataIcon.js +0 -21
  114. package/dist/icons/EasSubmitIcon.d.ts +0 -3
  115. package/dist/icons/EasSubmitIcon.js +0 -21
  116. package/dist/icons/EditIcon.d.ts +0 -3
  117. package/dist/icons/EditIcon.js +0 -19
  118. package/dist/icons/ErrorIcon.d.ts +0 -3
  119. package/dist/icons/ErrorIcon.js +0 -14
  120. package/dist/icons/FacebookIcon.d.ts +0 -3
  121. package/dist/icons/FacebookIcon.js +0 -14
  122. package/dist/icons/GeneralIcon.d.ts +0 -3
  123. package/dist/icons/GeneralIcon.js +0 -25
  124. package/dist/icons/GithubIcon.d.ts +0 -3
  125. package/dist/icons/GithubIcon.js +0 -14
  126. package/dist/icons/GoogleAppStoreIcon.d.ts +0 -3
  127. package/dist/icons/GoogleAppStoreIcon.js +0 -14
  128. package/dist/icons/HamburgerIcon.d.ts +0 -3
  129. package/dist/icons/HamburgerIcon.js +0 -14
  130. package/dist/icons/HeadsetIcon.d.ts +0 -3
  131. package/dist/icons/HeadsetIcon.js +0 -18
  132. package/dist/icons/HomeFilledIcon.d.ts +0 -3
  133. package/dist/icons/HomeFilledIcon.js +0 -14
  134. package/dist/icons/HomeIcon.d.ts +0 -3
  135. package/dist/icons/HomeIcon.js +0 -14
  136. package/dist/icons/InfoIcon.d.ts +0 -3
  137. package/dist/icons/InfoIcon.js +0 -14
  138. package/dist/icons/InspectElementIcon.d.ts +0 -3
  139. package/dist/icons/InspectElementIcon.js +0 -15
  140. package/dist/icons/InstagramIcon.d.ts +0 -3
  141. package/dist/icons/InstagramIcon.js +0 -14
  142. package/dist/icons/InvoicesIcon.d.ts +0 -3
  143. package/dist/icons/InvoicesIcon.js +0 -15
  144. package/dist/icons/LifebuoyIcon.d.ts +0 -3
  145. package/dist/icons/LifebuoyIcon.js +0 -14
  146. package/dist/icons/LockIcon.d.ts +0 -3
  147. package/dist/icons/LockIcon.js +0 -14
  148. package/dist/icons/LogoutMobileIcon.d.ts +0 -3
  149. package/dist/icons/LogoutMobileIcon.js +0 -15
  150. package/dist/icons/LogsIcon.d.ts +0 -3
  151. package/dist/icons/LogsIcon.js +0 -16
  152. package/dist/icons/MailIcon.d.ts +0 -3
  153. package/dist/icons/MailIcon.js +0 -14
  154. package/dist/icons/MegaphoneIcon.d.ts +0 -3
  155. package/dist/icons/MegaphoneIcon.js +0 -15
  156. package/dist/icons/MessageIcon.d.ts +0 -3
  157. package/dist/icons/MessageIcon.js +0 -14
  158. package/dist/icons/MoreHorizontalIcon.d.ts +0 -3
  159. package/dist/icons/MoreHorizontalIcon.js +0 -16
  160. package/dist/icons/MoreVerticalIcon.d.ts +0 -3
  161. package/dist/icons/MoreVerticalIcon.js +0 -16
  162. package/dist/icons/OneTimePasswordIcon.d.ts +0 -3
  163. package/dist/icons/OneTimePasswordIcon.js +0 -16
  164. package/dist/icons/OpenInternalIcon.d.ts +0 -3
  165. package/dist/icons/OpenInternalIcon.js +0 -15
  166. package/dist/icons/OrganizationIcon.d.ts +0 -3
  167. package/dist/icons/OrganizationIcon.js +0 -15
  168. package/dist/icons/OverviewIcon.d.ts +0 -3
  169. package/dist/icons/OverviewIcon.js +0 -14
  170. package/dist/icons/PerformanceIcon.d.ts +0 -3
  171. package/dist/icons/PerformanceIcon.js +0 -15
  172. package/dist/icons/PersonalTrainerIcon.d.ts +0 -3
  173. package/dist/icons/PersonalTrainerIcon.js +0 -14
  174. package/dist/icons/PinIcon.d.ts +0 -3
  175. package/dist/icons/PinIcon.js +0 -14
  176. package/dist/icons/PlanEnterpriseIcon.d.ts +0 -3
  177. package/dist/icons/PlanEnterpriseIcon.js +0 -14
  178. package/dist/icons/PlanFreeIcon.d.ts +0 -3
  179. package/dist/icons/PlanFreeIcon.js +0 -14
  180. package/dist/icons/PlanProductionIcon.d.ts +0 -3
  181. package/dist/icons/PlanProductionIcon.js +0 -15
  182. package/dist/icons/PlansIcon.d.ts +0 -3
  183. package/dist/icons/PlansIcon.js +0 -15
  184. package/dist/icons/PlusIcon.d.ts +0 -3
  185. package/dist/icons/PlusIcon.js +0 -14
  186. package/dist/icons/PrivacyIcon.d.ts +0 -3
  187. package/dist/icons/PrivacyIcon.js +0 -14
  188. package/dist/icons/ProjectTransferIcon.d.ts +0 -3
  189. package/dist/icons/ProjectTransferIcon.js +0 -15
  190. package/dist/icons/PushToDeviceIcon.d.ts +0 -3
  191. package/dist/icons/PushToDeviceIcon.js +0 -17
  192. package/dist/icons/QrCodeIcon.d.ts +0 -3
  193. package/dist/icons/QrCodeIcon.js +0 -18
  194. package/dist/icons/QuestionIcon.d.ts +0 -3
  195. package/dist/icons/QuestionIcon.js +0 -14
  196. package/dist/icons/QuestionMarkIcon.d.ts +0 -3
  197. package/dist/icons/QuestionMarkIcon.js +0 -14
  198. package/dist/icons/ReceiptIcon.d.ts +0 -3
  199. package/dist/icons/ReceiptIcon.js +0 -15
  200. package/dist/icons/RedditIcon.d.ts +0 -3
  201. package/dist/icons/RedditIcon.js +0 -14
  202. package/dist/icons/RefreshIcon.d.ts +0 -3
  203. package/dist/icons/RefreshIcon.js +0 -17
  204. package/dist/icons/RolloutIcon.d.ts +0 -3
  205. package/dist/icons/RolloutIcon.js +0 -15
  206. package/dist/icons/RunIcon.d.ts +0 -3
  207. package/dist/icons/RunIcon.js +0 -15
  208. package/dist/icons/RuntimeVersionIcon.d.ts +0 -3
  209. package/dist/icons/RuntimeVersionIcon.js +0 -14
  210. package/dist/icons/ScanIcon.d.ts +0 -3
  211. package/dist/icons/ScanIcon.js +0 -15
  212. package/dist/icons/SearchIcon.d.ts +0 -3
  213. package/dist/icons/SearchIcon.js +0 -15
  214. package/dist/icons/SecretsIcon.d.ts +0 -3
  215. package/dist/icons/SecretsIcon.js +0 -14
  216. package/dist/icons/SettingsFilledIcon.d.ts +0 -3
  217. package/dist/icons/SettingsFilledIcon.js +0 -14
  218. package/dist/icons/SettingsIcon.d.ts +0 -3
  219. package/dist/icons/SettingsIcon.js +0 -14
  220. package/dist/icons/SlashShortcutIcon.d.ts +0 -3
  221. package/dist/icons/SlashShortcutIcon.js +0 -14
  222. package/dist/icons/SparklesIcon.d.ts +0 -3
  223. package/dist/icons/SparklesIcon.js +0 -14
  224. package/dist/icons/StatusCanceledIcon.d.ts +0 -3
  225. package/dist/icons/StatusCanceledIcon.js +0 -14
  226. package/dist/icons/StatusFailedIcon.d.ts +0 -3
  227. package/dist/icons/StatusFailedIcon.js +0 -14
  228. package/dist/icons/StatusNewIcon.d.ts +0 -3
  229. package/dist/icons/StatusNewIcon.js +0 -15
  230. package/dist/icons/StatusSuccessIcon.d.ts +0 -3
  231. package/dist/icons/StatusSuccessIcon.js +0 -14
  232. package/dist/icons/StatusWaitingIcon.d.ts +0 -3
  233. package/dist/icons/StatusWaitingIcon.js +0 -14
  234. package/dist/icons/StoreIcon.d.ts +0 -3
  235. package/dist/icons/StoreIcon.js +0 -21
  236. package/dist/icons/ThemeAutoIcon.d.ts +0 -3
  237. package/dist/icons/ThemeAutoIcon.js +0 -15
  238. package/dist/icons/ThemeDarkIcon.d.ts +0 -3
  239. package/dist/icons/ThemeDarkIcon.js +0 -14
  240. package/dist/icons/ThemeIcon.d.ts +0 -3
  241. package/dist/icons/ThemeIcon.js +0 -14
  242. package/dist/icons/ThemeLightIcon.d.ts +0 -3
  243. package/dist/icons/ThemeLightIcon.js +0 -15
  244. package/dist/icons/ThumbsDownIcon.d.ts +0 -3
  245. package/dist/icons/ThumbsDownIcon.js +0 -14
  246. package/dist/icons/ThumbsUpIcon.d.ts +0 -3
  247. package/dist/icons/ThumbsUpIcon.js +0 -14
  248. package/dist/icons/TokensIcon.d.ts +0 -3
  249. package/dist/icons/TokensIcon.js +0 -16
  250. package/dist/icons/TrashIcon.d.ts +0 -3
  251. package/dist/icons/TrashIcon.js +0 -14
  252. package/dist/icons/TriangleDownIcon.d.ts +0 -3
  253. package/dist/icons/TriangleDownIcon.js +0 -14
  254. package/dist/icons/TriangleLeftIcon.d.ts +0 -3
  255. package/dist/icons/TriangleLeftIcon.js +0 -14
  256. package/dist/icons/TriangleRightIcon.d.ts +0 -3
  257. package/dist/icons/TriangleRightIcon.js +0 -14
  258. package/dist/icons/TriangleUpIcon.d.ts +0 -3
  259. package/dist/icons/TriangleUpIcon.js +0 -14
  260. package/dist/icons/TwitchIcon.d.ts +0 -3
  261. package/dist/icons/TwitchIcon.js +0 -15
  262. package/dist/icons/TwitterIcon.d.ts +0 -3
  263. package/dist/icons/TwitterIcon.js +0 -14
  264. package/dist/icons/UndoIcon.d.ts +0 -3
  265. package/dist/icons/UndoIcon.js +0 -14
  266. package/dist/icons/UpdateIcon.d.ts +0 -3
  267. package/dist/icons/UpdateIcon.js +0 -15
  268. package/dist/icons/UpgradeIcon.d.ts +0 -3
  269. package/dist/icons/UpgradeIcon.js +0 -14
  270. package/dist/icons/UploadIcon.d.ts +0 -3
  271. package/dist/icons/UploadIcon.js +0 -15
  272. package/dist/icons/UserFilledIcon.d.ts +0 -3
  273. package/dist/icons/UserFilledIcon.js +0 -14
  274. package/dist/icons/UserIcon.d.ts +0 -3
  275. package/dist/icons/UserIcon.js +0 -14
  276. package/dist/icons/UsersFilledIcon.d.ts +0 -3
  277. package/dist/icons/UsersFilledIcon.js +0 -15
  278. package/dist/icons/UsersIcon.d.ts +0 -3
  279. package/dist/icons/UsersIcon.js +0 -15
  280. package/dist/icons/VersionIcon.d.ts +0 -3
  281. package/dist/icons/VersionIcon.js +0 -15
  282. package/dist/icons/WarningIcon.d.ts +0 -3
  283. package/dist/icons/WarningIcon.js +0 -14
  284. package/dist/icons/WrapLinesIcon.d.ts +0 -3
  285. package/dist/icons/WrapLinesIcon.js +0 -15
  286. package/dist/icons/XIcon.d.ts +0 -3
  287. package/dist/icons/XIcon.js +0 -14
  288. package/dist/icons/YoutubeIcon.d.ts +0 -3
  289. package/dist/icons/YoutubeIcon.js +0 -14
  290. package/dist/icons/index.d.ts +0 -130
  291. package/dist/icons/index.js +0 -265
  292. package/dist/logos/DocsLogo.d.ts +0 -3
  293. package/dist/logos/DocsLogo.js +0 -15
  294. package/dist/logos/ExpoGoLogo.d.ts +0 -3
  295. package/dist/logos/ExpoGoLogo.js +0 -14
  296. package/dist/logos/Logo.d.ts +0 -3
  297. package/dist/logos/Logo.js +0 -14
  298. package/dist/logos/SnackLogo.d.ts +0 -3
  299. package/dist/logos/SnackLogo.js +0 -15
  300. package/dist/logos/WordMarkLogo.d.ts +0 -3
  301. package/dist/logos/WordMarkLogo.js +0 -14
  302. package/dist/logos/index.js +0 -13
  303. package/dist/styles/breakpoints.d.ts +0 -5
  304. package/dist/styles/breakpoints.js +0 -8
  305. package/dist/styles/palette.d.ts +0 -200
  306. package/dist/styles/palette.js +0 -50
  307. package/dist/styles/shadows.js +0 -11
  308. package/dist/styles/sizing.d.ts +0 -19
  309. package/dist/styles/sizing.js +0 -22
  310. package/dist/styles/spacing.d.ts +0 -36
  311. package/dist/styles/spacing.js +0 -40
  312. package/dist/styles/themes.d.ts +0 -463
  313. package/dist/styles/themes.js +0 -467
  314. package/dist/styles/typography.js +0 -348
  315. package/dist/types/index.js +0 -2
  316. /package/dist/{logos → src/logos}/index.d.ts +0 -0
  317. /package/dist/{styles → src/styles}/shadows.d.ts +0 -0
  318. /package/dist/{styles → src/styles}/typography.d.ts +0 -0
package/dist/index.js CHANGED
@@ -1,37 +1,856 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.useTheme = exports.typography = exports.ThemeProvider = exports.theme = exports.spacing = exports.shadows = exports.palette = exports.lightTheme = exports.iconSize = exports.darkTheme = exports.breakpoints = exports.BlockingSetInitialColorMode = exports.borderRadius = void 0;
14
- const palette_1 = require("./styles/palette");
15
- Object.defineProperty(exports, "palette", { enumerable: true, get: function () { return palette_1.palette; } });
16
- const shadows_1 = require("./styles/shadows");
17
- Object.defineProperty(exports, "shadows", { enumerable: true, get: function () { return shadows_1.shadows; } });
18
- const sizing_1 = require("./styles/sizing");
19
- Object.defineProperty(exports, "borderRadius", { enumerable: true, get: function () { return sizing_1.borderRadius; } });
20
- Object.defineProperty(exports, "iconSize", { enumerable: true, get: function () { return sizing_1.iconSize; } });
21
- const themes_1 = require("./styles/themes");
22
- Object.defineProperty(exports, "theme", { enumerable: true, get: function () { return themes_1.theme; } });
23
- Object.defineProperty(exports, "lightTheme", { enumerable: true, get: function () { return themes_1.lightTheme; } });
24
- Object.defineProperty(exports, "darkTheme", { enumerable: true, get: function () { return themes_1.darkTheme; } });
25
- const BlockingSetInitialColorMode_1 = require("./components/BlockingSetInitialColorMode");
26
- Object.defineProperty(exports, "BlockingSetInitialColorMode", { enumerable: true, get: function () { return BlockingSetInitialColorMode_1.BlockingSetInitialColorMode; } });
27
- const ThemeProvider_1 = require("./components/ThemeProvider");
28
- Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return ThemeProvider_1.ThemeProvider; } });
29
- Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return ThemeProvider_1.useTheme; } });
30
- const spacing_1 = require("./styles/spacing");
31
- Object.defineProperty(exports, "spacing", { enumerable: true, get: function () { return spacing_1.spacing; } });
32
- const breakpoints_1 = require("./styles/breakpoints");
33
- Object.defineProperty(exports, "breakpoints", { enumerable: true, get: function () { return breakpoints_1.breakpoints; } });
34
- const typography_1 = require("./styles/typography");
35
- Object.defineProperty(exports, "typography", { enumerable: true, get: function () { return typography_1.typography; } });
36
- __exportStar(require("./icons"), exports);
37
- __exportStar(require("./logos"), exports);
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var tailwindMerge = require('tailwind-merge');
5
+ var styleguideIcons = require('@expo/styleguide-icons');
6
+ var Link$1 = require('next/link');
7
+ var styleguideBase = require('@expo/styleguide-base');
8
+
9
+ function isLocalStorageAvailable() {
10
+ try {
11
+ if (!window.localStorage || typeof window.localStorage === 'undefined') {
12
+ return false;
13
+ }
14
+ window.localStorage.setItem('localStorage:test', 'value');
15
+ if (window.localStorage.getItem('localStorage:test') !== 'value') {
16
+ return false;
17
+ }
18
+ window.localStorage.removeItem('localStorage:test');
19
+ return true;
20
+ }
21
+ catch (_a) {
22
+ return false;
23
+ }
24
+ }
25
+ function getInitialColorMode() {
26
+ if (isLocalStorageAvailable()) {
27
+ var preference = window.localStorage.getItem('data-expo-theme');
28
+ var hasPreference = typeof preference === 'string';
29
+ if (hasPreference) {
30
+ return preference;
31
+ }
32
+ }
33
+ var mql = window.matchMedia('(prefers-color-scheme: dark)');
34
+ var systemPreference = typeof mql.matches === 'boolean';
35
+ if (systemPreference) {
36
+ return mql.matches ? 'dark' : 'light';
37
+ }
38
+ return 'light';
39
+ }
40
+ function setInitialColorMode() {
41
+ var colorMode = getInitialColorMode();
42
+ // add HTML attribute if dark mode
43
+ if (colorMode === 'dark') {
44
+ document.documentElement.classList.add('dark-theme');
45
+ }
46
+ else {
47
+ document.documentElement.classList.remove('dark-theme');
48
+ }
49
+ }
50
+ // our function needs to be a string so that we can call it
51
+ var blockingSetInitialColorMode = "(function() {\n ".concat(isLocalStorageAvailable.toString(), "\n ").concat(getInitialColorMode.toString(), "\n ").concat(setInitialColorMode.toString(), "\n setInitialColorMode();\n})()\n");
52
+ function BlockingSetInitialColorMode() {
53
+ return (React.createElement("script", { dangerouslySetInnerHTML: {
54
+ __html: blockingSetInitialColorMode
55
+ } }));
56
+ }
57
+
58
+ exports.Themes = void 0;
59
+ (function (Themes) {
60
+ Themes["AUTO"] = "auto";
61
+ Themes["DARK"] = "dark";
62
+ Themes["LIGHT"] = "light";
63
+ })(exports.Themes || (exports.Themes = {}));
64
+ var ThemeContext = React.createContext({
65
+ setDarkMode: function () { },
66
+ setLightMode: function () { },
67
+ setAutoMode: function () { },
68
+ themeName: exports.Themes.AUTO
69
+ });
70
+ function ThemeProvider(props) {
71
+ var children = props.children, _a = props.disabled, disabled = _a === void 0 ? false : _a;
72
+ var initialTheme = process.browser ? document.documentElement.dataset.expoTheme : exports.Themes.AUTO;
73
+ var _b = React.useState(disabled ? exports.Themes.LIGHT : initialTheme), themeName = _b[0], setThemeName = _b[1];
74
+ React.useEffect(function didMount() {
75
+ if (disabled)
76
+ return;
77
+ var mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
78
+ try {
79
+ mediaQuery.addEventListener('change', onThemeChange);
80
+ }
81
+ catch (_a) {
82
+ // Fallback to old-style listening for changes, for Safari and IE
83
+ mediaQuery.addListener(onThemeChange);
84
+ }
85
+ if (isLocalStorageAvailable()) {
86
+ var themePreference = window.localStorage.getItem('data-expo-theme');
87
+ if (themePreference === exports.Themes.LIGHT || themePreference === exports.Themes.DARK) {
88
+ setThemeName(themePreference);
89
+ }
90
+ else {
91
+ setThemeName(exports.Themes.AUTO);
92
+ }
93
+ }
94
+ else {
95
+ setThemeName(exports.Themes.AUTO);
96
+ }
97
+ return function unMount() {
98
+ try {
99
+ mediaQuery.removeEventListener('change', onThemeChange);
100
+ }
101
+ catch (_a) {
102
+ // Fallback to old-style listening for changes, for Safari and IE
103
+ mediaQuery.removeListener(onThemeChange);
104
+ }
105
+ };
106
+ }, []);
107
+ function setDocumentTheme(themeName) {
108
+ if (disabled)
109
+ return;
110
+ if (themeName === exports.Themes.DARK) {
111
+ document.documentElement.classList.add('dark-theme');
112
+ }
113
+ else {
114
+ document.documentElement.classList.remove('dark-theme');
115
+ }
116
+ }
117
+ function onThemeChange(event) {
118
+ if (isLocalStorageAvailable()) {
119
+ var themePreference = window.localStorage.getItem('data-expo-theme');
120
+ if (!themePreference) {
121
+ if (event.matches) {
122
+ setDocumentTheme(exports.Themes.DARK);
123
+ }
124
+ else {
125
+ setDocumentTheme(exports.Themes.LIGHT);
126
+ }
127
+ }
128
+ }
129
+ else {
130
+ setDocumentTheme(exports.Themes.AUTO);
131
+ }
132
+ }
133
+ function setDarkMode() {
134
+ if (isLocalStorageAvailable()) {
135
+ window.localStorage.setItem('data-expo-theme', exports.Themes.DARK);
136
+ }
137
+ setDocumentTheme(exports.Themes.DARK);
138
+ setThemeName(exports.Themes.DARK);
139
+ }
140
+ function setLightMode() {
141
+ if (isLocalStorageAvailable()) {
142
+ window.localStorage.setItem('data-expo-theme', exports.Themes.LIGHT);
143
+ }
144
+ setDocumentTheme(exports.Themes.LIGHT);
145
+ setThemeName(exports.Themes.LIGHT);
146
+ }
147
+ function setAutoMode() {
148
+ if (isLocalStorageAvailable()) {
149
+ window.localStorage.removeItem('data-expo-theme');
150
+ }
151
+ var themeName = getInitialColorMode();
152
+ setDocumentTheme(themeName);
153
+ setThemeName(exports.Themes.AUTO);
154
+ }
155
+ return (React.createElement(ThemeContext.Provider, { value: {
156
+ setDarkMode: setDarkMode,
157
+ setLightMode: setLightMode,
158
+ setAutoMode: setAutoMode,
159
+ themeName: themeName
160
+ } }, children));
161
+ }
162
+ function useTheme() {
163
+ var context = React.useContext(ThemeContext);
164
+ if (context === undefined) {
165
+ throw new Error('useTheme must be used within a ThemeProvider');
166
+ }
167
+ return context;
168
+ }
169
+
170
+ /******************************************************************************
171
+ Copyright (c) Microsoft Corporation.
172
+
173
+ Permission to use, copy, modify, and/or distribute this software for any
174
+ purpose with or without fee is hereby granted.
175
+
176
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
177
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
178
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
179
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
180
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
181
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
182
+ PERFORMANCE OF THIS SOFTWARE.
183
+ ***************************************************************************** */
184
+
185
+ var __assign = function() {
186
+ __assign = Object.assign || function __assign(t) {
187
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
188
+ s = arguments[i];
189
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
190
+ }
191
+ return t;
192
+ };
193
+ return __assign.apply(this, arguments);
194
+ };
195
+
196
+ function __rest(s, e) {
197
+ var t = {};
198
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
199
+ t[p] = s[p];
200
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
201
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
202
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
203
+ t[p[i]] = s[p[i]];
204
+ }
205
+ return t;
206
+ }
207
+
208
+ var ButtonBase = React.forwardRef(function (_a, ref) {
209
+ var children = _a.children, testID = _a.testID, className = _a.className, onClick = _a.onClick, _b = _a.type, type = _b === void 0 ? 'button' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, rest = __rest(_a, ["children", "testID", "className", "onClick", "type", "disabled"]);
210
+ return (React.createElement("button", __assign({ className: tailwindMerge.twMerge('flex cursor-pointer', className), "data-testid": testID, disabled: disabled, ref: ref, type: type, onClick: disabled ? undefined : onClick }, rest), children));
211
+ });
212
+
213
+ var STOPWORDS = 'a an and at but by for in nor of on or so the to up yet'.split(' ');
214
+ function titleCase(value, options) {
215
+ var _a;
216
+ if (options === void 0) { options = {}; }
217
+ if (!value)
218
+ return '';
219
+ var stop = (_a = options.stopwords) !== null && _a !== void 0 ? _a : STOPWORDS;
220
+ var keep = options.keepSpaces;
221
+ var splitter = /(\s+|[-‑–—,:;!?()])/;
222
+ return value
223
+ .split(splitter)
224
+ .map(function (word, index, all) {
225
+ if (index % 2) {
226
+ if (/\s+/.test(word))
227
+ return keep ? word : ' ';
228
+ return word;
229
+ }
230
+ var lower = word.toLocaleLowerCase();
231
+ if (index !== 0 && index !== all.length - 1 && stop.includes(lower)) {
232
+ return lower;
233
+ }
234
+ return capitalize(word);
235
+ })
236
+ .join('');
237
+ }
238
+ function capitalize(text) {
239
+ return text.charAt(0).toUpperCase() + text.slice(1);
240
+ }
241
+
242
+ var LinkBase = React.forwardRef(function (_a, ref) {
243
+ var children = _a.children, testID = _a.testID, href = _a.href, openInNewTab = _a.openInNewTab, onClick = _a.onClick, target = _a.target, disabled = _a.disabled, rel = _a.rel, rest = __rest(_a, ["children", "testID", "href", "openInNewTab", "onClick", "target", "disabled", "rel"]);
244
+ if (!href)
245
+ return null;
246
+ if (disabled) {
247
+ return (React.createElement("a", __assign({ ref: ref, "data-testid": testID }, rest), children));
248
+ }
249
+ return (React.createElement(Link$1, __assign({ href: href, ref: ref, onClick: onClick, target: openInNewTab ? '_blank' : target, rel: openInNewTab ? 'noopener noreferrer' : rel, "data-testid": testID }, rest), children));
250
+ });
251
+
252
+ function Link(_a) {
253
+ var className = _a.className, disabled = _a.disabled, rest = __rest(_a, ["className", "disabled"]);
254
+ return (React.createElement(LinkBase, __assign({ className: tailwindMerge.twMerge('text-link transition-opacity', !disabled && 'hocus:opacity-80', className) }, rest)));
255
+ }
256
+
257
+ function getSizeClasses(size) {
258
+ switch (size) {
259
+ case 'xs':
260
+ return 'h-8 px-3 text-3xs';
261
+ case 'sm':
262
+ return 'h-9 px-4 text-xs';
263
+ case 'md':
264
+ return 'h-10 px-4 text-xs';
265
+ case 'lg':
266
+ return 'h-11 px-6 text-base';
267
+ case 'xl':
268
+ return 'h-12 px-6 text-base';
269
+ case '2xl':
270
+ return 'h-15 px-6 text-lg';
271
+ }
272
+ }
273
+ function getThemeClasses(theme, disabled) {
274
+ if (disabled === void 0) { disabled = false; }
275
+ switch (theme) {
276
+ case 'primary':
277
+ return tailwindMerge.twMerge('border-button-primary bg-button-primary text-button-primary shadow-xs', !disabled && 'hocus:bg-button-primary-hover', disabled && 'bg-button-primary-disabled border-button-primary-disabled text-button-primary-disabled');
278
+ case 'primary-destructive':
279
+ return tailwindMerge.twMerge('border-button-primary-destructive bg-button-primary-destructive text-button-primary-destructive shadow-xs', !disabled && 'hocus:bg-button-primary-destructive-hover', disabled &&
280
+ 'bg-button-primary-destructive-disabled border-button-primary-destructive-disabled text-button-primary-destructive-disabled');
281
+ case 'secondary':
282
+ return tailwindMerge.twMerge('border-button-secondary bg-button-secondary text-button-secondary shadow-xs', !disabled && 'hocus:bg-button-secondary-hover', disabled && 'bg-button-secondary-disabled border-button-secondary-disabled text-button-secondary-disabled');
283
+ case 'secondary-destructive':
284
+ return tailwindMerge.twMerge('border-button-secondary-destructive bg-button-secondary-destructive text-button-secondary-destructive shadow-xs', !disabled && 'hocus:bg-button-secondary-destructive-hover', disabled &&
285
+ 'bg-button-secondary-destructive-disabled border-button-secondary-destructive-disabled text-button-secondary-destructive-disabled');
286
+ case 'tertiary':
287
+ return tailwindMerge.twMerge('border-button-tertiary bg-button-tertiary text-button-tertiary shadow-none', !disabled && 'hocus:bg-button-tertiary-hover', disabled && 'bg-button-tertiary-disabled border-button-tertiary-disabled text-button-tertiary-disabled');
288
+ case 'quaternary':
289
+ return tailwindMerge.twMerge('border-button-quaternary bg-button-quaternary text-button-quaternary shadow-none', !disabled && 'hocus:bg-button-quaternary-hover', disabled && 'bg-button-quaternary-disabled border-button-quaternary-disabled text-button-quaternary-disabled');
290
+ }
291
+ }
292
+ function getIconSizeClasses(size) {
293
+ switch (size) {
294
+ case 'xs':
295
+ return 'icon-xs';
296
+ case 'sm':
297
+ return 'icon-sm';
298
+ case 'md':
299
+ return 'icon-md';
300
+ case 'lg':
301
+ return 'icon-md';
302
+ case 'xl':
303
+ return 'icon-lg';
304
+ case '2xl':
305
+ return 'icon-lg';
306
+ }
307
+ }
308
+ function getThemedIconClasses(theme) {
309
+ switch (theme) {
310
+ case 'primary':
311
+ return 'text-button-primary-icon';
312
+ case 'primary-destructive':
313
+ return 'text-button-primary-destructive-icon';
314
+ case 'secondary':
315
+ return 'text-button-secondary-icon';
316
+ case 'secondary-destructive':
317
+ return 'text-button-secondary-destructive-icon';
318
+ case 'tertiary':
319
+ return 'text-button-tertiary-icon';
320
+ case 'quaternary':
321
+ return 'text-button-quaternary-icon';
322
+ }
323
+ }
324
+ function isIconElement(element) {
325
+ var _a, _b, _c;
326
+ if (React.isValidElement(element)) {
327
+ // @ts-ignore React Portal did not have `displayName` prop, but it is a valid element
328
+ return (_c = (_b = (_a = element.type) === null || _a === void 0 ? void 0 : _a.displayName) === null || _b === void 0 ? void 0 : _b.endsWith('Icon')) !== null && _c !== void 0 ? _c : false;
329
+ }
330
+ return false;
331
+ }
332
+ function getIconProps(element, classNames) {
333
+ return __assign(__assign({}, element.props), { className: tailwindMerge.twMerge(classNames, element.props.className) });
334
+ }
335
+ var Button = function (props) {
336
+ var children = props.children, _a = props.size, size = _a === void 0 ? 'sm' : _a, _b = props.theme, theme = _b === void 0 ? 'primary' : _b, href = props.href, disabled = props.disabled, className = props.className, leftSlot = props.leftSlot, rightSlot = props.rightSlot, openInNewTab = props.openInNewTab, rest = __rest(props, ["children", "size", "theme", "href", "disabled", "className", "leftSlot", "rightSlot", "openInNewTab"]);
337
+ var Element = href ? LinkBase : ButtonBase;
338
+ var isLeftSlotIcon = leftSlot && isIconElement(leftSlot);
339
+ var isRightSlotIcon = rightSlot && isIconElement(rightSlot);
340
+ var iconClasses = (isLeftSlotIcon || isRightSlotIcon) &&
341
+ tailwindMerge.twMerge("".concat(getIconSizeClasses(size)), getThemedIconClasses(theme), disabled && 'opacity-60');
342
+ return (React.createElement(Element, __assign({ href: href, className: tailwindMerge.twMerge("inline-flex border rounded-md font-medium gap-2 items-center whitespace-nowrap transition", getSizeClasses(size), getThemeClasses(theme, disabled), disabled && 'cursor-default opacity-80 pointer-event-none', className), disabled: disabled }, (href ? { openInNewTab: openInNewTab } : {}), rest),
343
+ isLeftSlotIcon ? React.cloneElement(leftSlot, getIconProps(leftSlot, iconClasses)) : leftSlot,
344
+ children && (React.createElement("span", { className: tailwindMerge.twMerge('flex self-center text-inherit leading-none', href && 'select-none') }, typeof children === 'string' ? titleCase(children) : children)),
345
+ isRightSlotIcon ? React.cloneElement(rightSlot, getIconProps(rightSlot, iconClasses)) : rightSlot,
346
+ !leftSlot && !rightSlot && href && openInNewTab && (React.createElement(styleguideIcons.ArrowUpRightIcon, { className: tailwindMerge.twMerge(getIconSizeClasses(size), 'text-icon-secondary') }))));
347
+ };
348
+
349
+ function DocsLogo(props) {
350
+ var _a = props.title, title = _a === void 0 ? 'Docs-logo' : _a, color = props.color, titleId = props.titleId;
351
+ return (React.createElement("svg", __assign({ viewBox: "0 0 20 20", fill: "none", role: "img", "aria-labelledby": titleId }, props),
352
+ title ? React.createElement("title", { id: titleId }, title) : null,
353
+ React.createElement("path", { 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", fill: color || 'var(--expo-theme-icon-default)' }),
354
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", 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", fill: color || 'var(--expo-theme-icon-default)' })));
355
+ }
356
+
357
+ function ExpoGoLogo(props) {
358
+ var _a = props.title, title = _a === void 0 ? 'Expo-go-logo' : _a, color = props.color, titleId = props.titleId;
359
+ return (React.createElement("svg", __assign({ viewBox: "0 0 20 20", fill: "none", role: "img", "aria-labelledby": titleId }, props),
360
+ title ? React.createElement("title", { id: titleId }, title) : null,
361
+ React.createElement("path", { 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", fill: color || 'var(--expo-theme-icon-default)' })));
362
+ }
363
+
364
+ function Logo(props) {
365
+ var _a = props.title, title = _a === void 0 ? 'Logo' : _a, color = props.color, titleId = props.titleId;
366
+ return (React.createElement("svg", __assign({ viewBox: "0 0 20 20", fill: "none", role: "img", "aria-labelledby": titleId }, props),
367
+ title ? React.createElement("title", { id: titleId }, title) : null,
368
+ React.createElement("path", { d: "M9.477 7.638c.164-.24.343-.27.488-.27.145 0 .387.03.551.27 2.13 2.901 6.55 10.56 6.959 10.976.605.618 1.436.233 1.918-.468.475-.69.607-1.174.607-1.69 0-.352-6.883-13.05-7.576-14.106-.667-1.017-.884-1.274-2.025-1.274h-.854c-1.138 0-1.302.257-1.969 1.274C6.883 3.406 0 16.104 0 16.456c0 .517.132 1 .607 1.69.482.7 1.313 1.086 1.918.468.41-.417 4.822-8.075 6.952-10.977z", fill: color || 'var(--expo-theme-icon-default)' })));
369
+ }
370
+
371
+ function SnackLogo(props) {
372
+ var _a = props.title, title = _a === void 0 ? 'Snack-logo' : _a, color = props.color, titleId = props.titleId;
373
+ return (React.createElement("svg", __assign({ viewBox: "0 0 20 20", fill: "none", role: "img", "aria-labelledby": titleId }, props),
374
+ title ? React.createElement("title", { id: titleId }, title) : null,
375
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.168 1.152a2.752 2.752 0 100 5.504 2.752 2.752 0 000-5.504zm-2.43 2.752a2.429 2.429 0 014.608-1.075 3.805 3.805 0 01-3.701 2.925h-.051a2.423 2.423 0 01-.855-1.85zm-1.755-1.422a.16.16 0 01.081.14v4.825L17.23 9.86c.05.029.081.082.082.14l.026 4.92a.16.16 0 01-.081.14l-8.52 4.92a.161.161 0 01-.242-.14V10c0-.057.03-.11.08-.14l4.006-2.319-4.005-2.32a.161.161 0 010-.28l4.246-2.458a.161.161 0 01.162 0zm3.845 7.517L13.064 7.82v4.36L16.828 10zM8.978 5.08l3.764 2.18V2.901l-3.763 2.18z", fill: color || 'var(--expo-theme-icon-default)' }),
376
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.75.022a.161.161 0 00-.162 0l-4.242 2.46a.16.16 0 00-.019.01L.11 4.94l-.003.001a.161.161 0 00-.081.136v.004l-.013 4.994a.161.161 0 000 .125L0 14.92c0 .058.03.111.08.14l4.24 2.455.03.018 4.226 2.446a.161.161 0 00.242-.14v-9.746l4.166-2.412a.162.162 0 000-.28l-.081-.046V2.808l.08-.047a.162.162 0 000-.28L8.75.022zm3.828 2.597L8.67.35 4.74 2.626l3.917 2.267 3.922-2.275zM8.656 5.268L4.74 7.538l3.916 2.275L12.58 7.54 8.656 5.268zM4.419 7.352l3.915-2.27-3.916-2.268L.508 5.08 4.42 7.35zm-.165.277v4.692L.336 10.05l.012-4.69 3.906 2.268zm.323 4.879V7.817l3.918 2.275v4.685l-3.918-2.27zm-.323.186l-3.92-2.27-.01 4.403 3.93 2.276v-4.41zm.323 4.596v-4.41l3.918 2.27v4.408L4.577 17.29z", fill: color || 'var(--expo-theme-icon-default)' })));
377
+ }
378
+
379
+ function WordMarkLogo(props) {
380
+ var _a = props.title, title = _a === void 0 ? 'Word-mark-logo' : _a, color = props.color, titleId = props.titleId;
381
+ return (React.createElement("svg", __assign({ viewBox: "0 0 71 20", fill: "none", role: "img", "aria-labelledby": titleId }, props),
382
+ title ? React.createElement("title", { id: titleId }, title) : null,
383
+ React.createElement("path", { d: "M9.258 6.342c.158-.23.331-.26.472-.26.14 0 .374.03.532.26 2.06 2.806 6.332 10.208 6.727 10.611.585.597 1.388.225 1.854-.452.46-.667.587-1.135.587-1.634 0-.34-6.653-12.614-7.324-13.636C11.462.248 11.252 0 10.15 0h-.825c-1.1 0-1.259.248-1.903 1.23C6.75 2.254.097 14.528.097 14.868c0 .5.127.967.587 1.634.466.677 1.269 1.05 1.854.452.395-.403 4.661-7.805 6.72-10.61zm14.941-5.237v15.344h9.35v-3.113h-6.125v-3.244h5.45V6.98h-5.45V4.218h6.125V1.105h-9.35zM46.25 16.449l-3.88-5.568 3.619-5.195h-3.662L40.54 8.23l-1.765-2.543h-3.706l3.618 5.217-3.857 5.546h3.661l2.027-2.915 2.027 2.915h3.705zm7.572-10.982c-1.482 0-2.637.614-3.378 1.732V5.686H47.37V20h3.073v-5.063c.74 1.117 1.896 1.731 3.378 1.731 2.768 0 4.97-2.52 4.97-5.611 0-3.091-2.202-5.59-4.97-5.59zm-.697 8.242c-1.504 0-2.681-1.14-2.681-2.652 0-1.49 1.177-2.653 2.68-2.653 1.483 0 2.681 1.184 2.681 2.653 0 1.49-1.198 2.652-2.68 2.652zm12.188-8.242c-3.16 0-5.558 2.411-5.558 5.612 0 3.2 2.397 5.59 5.557 5.59 3.139 0 5.558-2.39 5.558-5.59 0-3.2-2.42-5.612-5.558-5.612zm0 2.96c1.438 0 2.55 1.117 2.55 2.652 0 1.49-1.112 2.63-2.55 2.63-1.46 0-2.55-1.14-2.55-2.63 0-1.535 1.09-2.653 2.55-2.653z", fill: color || 'var(--expo-theme-icon-default)' })));
384
+ }
385
+
386
+ var shadows = {
387
+ none: 'var(--expo-theme-shadows-none)',
388
+ xs: 'var(--expo-theme-shadows-xs)',
389
+ sm: 'var(--expo-theme-shadows-sm)',
390
+ md: 'var(--expo-theme-shadows-md)',
391
+ lg: 'var(--expo-theme-shadows-lg)',
392
+ xl: 'var(--expo-theme-shadows-xl)'
393
+ };
394
+
395
+ var theme = {
396
+ background: {
397
+ "default": 'var(--expo-theme-background-default)',
398
+ screen: 'var(--expo-theme-background-screen)',
399
+ subtle: 'var(--expo-theme-background-subtle)',
400
+ element: 'var(--expo-theme-background-element)',
401
+ hover: 'var(--expo-theme-background-hover)',
402
+ selected: 'var(--expo-theme-background-selected)',
403
+ overlay: 'var(--expo-theme-background-overlay)',
404
+ success: 'var(--expo-theme-background-success)',
405
+ warning: 'var(--expo-theme-background-warning)',
406
+ danger: 'var(--expo-theme-background-danger)',
407
+ info: 'var(--expo-theme-background-info)'
408
+ },
409
+ icon: {
410
+ "default": 'var(--expo-theme-icon-default)',
411
+ secondary: 'var(--expo-theme-icon-secondary)',
412
+ tertiary: 'var(--expo-theme-icon-tertiary)',
413
+ quaternary: 'var(--expo-theme-icon-quaternary)',
414
+ success: 'var(--expo-theme-icon-success)',
415
+ warning: 'var(--expo-theme-icon-warning)',
416
+ danger: 'var(--expo-theme-icon-danger)',
417
+ info: 'var(--expo-theme-icon-info)'
418
+ },
419
+ text: {
420
+ "default": 'var(--expo-theme-text-default)',
421
+ secondary: 'var(--expo-theme-text-secondary)',
422
+ tertiary: 'var(--expo-theme-text-tertiary)',
423
+ quaternary: 'var(--expo-theme-text-quaternary)',
424
+ link: 'var(--expo-theme-text-link)',
425
+ success: 'var(--expo-theme-text-success)',
426
+ warning: 'var(--expo-theme-text-warning)',
427
+ danger: 'var(--expo-theme-text-danger)',
428
+ info: 'var(--expo-theme-text-info)'
429
+ },
430
+ border: {
431
+ "default": 'var(--expo-theme-border-default)',
432
+ secondary: 'var(--expo-theme-border-secondary)',
433
+ success: 'var(--expo-theme-border-success)',
434
+ warning: 'var(--expo-theme-border-warning)',
435
+ danger: 'var(--expo-theme-border-danger)',
436
+ info: 'var(--expo-theme-border-info)'
437
+ },
438
+ button: {
439
+ primary: {
440
+ background: 'var(--expo-theme-button-primary-background)',
441
+ border: 'var(--expo-theme-button-primary-border)',
442
+ hover: 'var(--expo-theme-button-primary-hover)',
443
+ icon: 'var(--expo-theme-button-primary-icon)',
444
+ text: 'var(--expo-theme-button-primary-text)',
445
+ disabled: {
446
+ background: 'var(--expo-theme-button-primary-disabled-background)',
447
+ border: 'var(--expo-theme-button-primary-disabled-border)',
448
+ text: 'var(--expo-theme-button-primary-disabled-text)'
449
+ },
450
+ destructive: {
451
+ background: 'var(--expo-theme-button-primary-destructive-background)',
452
+ border: 'var(--expo-theme-button-primary-destructive-border)',
453
+ hover: 'var(--expo-theme-button-primary-destructive-hover)',
454
+ icon: 'var(--expo-theme-button-primary-destructive-icon)',
455
+ text: 'var(--expo-theme-button-primary-destructive-text)',
456
+ disabled: {
457
+ background: 'var(--expo-theme-button-primary-destructive-disabled-background)',
458
+ border: 'var(--expo-theme-button-primary-destructive-disabled-border)',
459
+ text: 'var(--expo-theme-button-primary-destructive-disabled-text)'
460
+ }
461
+ }
462
+ },
463
+ secondary: {
464
+ background: 'var(--expo-theme-button-secondary-background)',
465
+ border: 'var(--expo-theme-button-secondary-border)',
466
+ hover: 'var(--expo-theme-button-secondary-hover)',
467
+ icon: 'var(--expo-theme-button-secondary-icon)',
468
+ text: 'var(--expo-theme-button-secondary-text)',
469
+ disabled: {
470
+ background: 'var(--expo-theme-button-secondary-disabled-background)',
471
+ border: 'var(--expo-theme-button-secondary-disabled-border)',
472
+ text: 'var(--expo-theme-button-secondary-disabled-text)'
473
+ },
474
+ destructive: {
475
+ background: 'var(--expo-theme-button-secondary-destructive-background)',
476
+ border: 'var(--expo-theme-button-secondary-destructive-border)',
477
+ hover: 'var(--expo-theme-button-secondary-destructive-hover)',
478
+ icon: 'var(--expo-theme-button-secondary-destructive-icon)',
479
+ text: 'var(--expo-theme-button-secondary-destructive-text)',
480
+ disabled: {
481
+ background: 'var(--expo-theme-button-secondary-destructive-disabled-background)',
482
+ border: 'var(--expo-theme-button-secondary-destructive-disabled-border)',
483
+ text: 'var(--expo-theme-button-secondary-destructive-disabled-text)'
484
+ }
485
+ }
486
+ },
487
+ tertiary: {
488
+ background: 'var(--expo-theme-button-tertiary-background)',
489
+ border: 'var(--expo-theme-button-tertiary-border)',
490
+ hover: 'var(--expo-theme-button-tertiary-hover)',
491
+ icon: 'var(--expo-theme-button-tertiary-icon)',
492
+ text: 'var(--expo-theme-button-tertiary-text)',
493
+ disabled: {
494
+ background: 'var(--expo-theme-button-tertiary-disabled-background)',
495
+ border: 'var(--expo-theme-button-tertiary-disabled-border)',
496
+ text: 'var(--expo-theme-button-tertiary-disabled-text)'
497
+ }
498
+ },
499
+ quaternary: {
500
+ background: 'var(--expo-theme-button-quaternary-background)',
501
+ border: 'var(--expo-theme-button-quaternary-border)',
502
+ hover: 'var(--expo-theme-button-quaternary-hover)',
503
+ icon: 'var(--expo-theme-button-quaternary-icon)',
504
+ text: 'var(--expo-theme-button-quaternary-text)',
505
+ disabled: {
506
+ background: 'var(--expo-theme-button-quaternary-disabled-background)',
507
+ border: 'var(--expo-theme-button-quaternary-disabled-border)',
508
+ text: 'var(--expo-theme-button-quaternary-disabled-text)'
509
+ }
510
+ }
511
+ },
512
+ project: {
513
+ blue: 'var(--expo-theme-project-blue)',
514
+ green: 'var(--expo-theme-project-green)',
515
+ yellow: 'var(--expo-theme-project-yellow)',
516
+ orange: 'var(--expo-theme-project-orange)',
517
+ red: 'var(--expo-theme-project-red)',
518
+ pink: 'var(--expo-theme-project-pink)',
519
+ purple: 'var(--expo-theme-project-purple)'
520
+ },
521
+ palette: {
522
+ white: 'var(--expo-color-white)',
523
+ black: 'var(--expo-color-black)',
524
+ green1: 'var(--green1)',
525
+ green2: 'var(--green2)',
526
+ green3: 'var(--green3)',
527
+ green4: 'var(--green4)',
528
+ green5: 'var(--green5)',
529
+ green6: 'var(--green6)',
530
+ green7: 'var(--green7)',
531
+ green8: 'var(--green8)',
532
+ green9: 'var(--green9)',
533
+ green10: 'var(--green10)',
534
+ green11: 'var(--green11)',
535
+ green12: 'var(--green12)',
536
+ purple1: 'var(--purple1)',
537
+ purple2: 'var(--purple2)',
538
+ purple3: 'var(--purple3)',
539
+ purple4: 'var(--purple4)',
540
+ purple5: 'var(--purple5)',
541
+ purple6: 'var(--purple6)',
542
+ purple7: 'var(--purple7)',
543
+ purple8: 'var(--purple8)',
544
+ purple9: 'var(--purple9)',
545
+ purple10: 'var(--purple10)',
546
+ purple11: 'var(--purple11)',
547
+ purple12: 'var(--purple12)',
548
+ pink1: 'var(--pink1)',
549
+ pink2: 'var(--pink2)',
550
+ pink3: 'var(--pink3)',
551
+ pink4: 'var(--pink4)',
552
+ pink5: 'var(--pink5)',
553
+ pink6: 'var(--pink6)',
554
+ pink7: 'var(--pink7)',
555
+ pink8: 'var(--pink8)',
556
+ pink9: 'var(--pink9)',
557
+ pink10: 'var(--pink10)',
558
+ pink11: 'var(--pink11)',
559
+ pink12: 'var(--pink12)',
560
+ orange1: 'var(--orange1)',
561
+ orange2: 'var(--orange2)',
562
+ orange3: 'var(--orange3)',
563
+ orange4: 'var(--orange4)',
564
+ orange5: 'var(--orange5)',
565
+ orange6: 'var(--orange6)',
566
+ orange7: 'var(--orange7)',
567
+ orange8: 'var(--orange8)',
568
+ orange9: 'var(--orange9)',
569
+ orange10: 'var(--orange10)',
570
+ orange11: 'var(--orange11)',
571
+ orange12: 'var(--orange12)',
572
+ yellow1: 'var(--yellow1)',
573
+ yellow2: 'var(--yellow2)',
574
+ yellow3: 'var(--yellow3)',
575
+ yellow4: 'var(--yellow4)',
576
+ yellow5: 'var(--yellow5)',
577
+ yellow6: 'var(--yellow6)',
578
+ yellow7: 'var(--yellow7)',
579
+ yellow8: 'var(--yellow8)',
580
+ yellow9: 'var(--yellow9)',
581
+ yellow10: 'var(--yellow10)',
582
+ yellow11: 'var(--yellow11)',
583
+ yellow12: 'var(--yellow12)',
584
+ blue1: 'var(--blue1)',
585
+ blue2: 'var(--blue2)',
586
+ blue3: 'var(--blue3)',
587
+ blue4: 'var(--blue4)',
588
+ blue5: 'var(--blue5)',
589
+ blue6: 'var(--blue6)',
590
+ blue7: 'var(--blue7)',
591
+ blue8: 'var(--blue8)',
592
+ blue9: 'var(--blue9)',
593
+ blue10: 'var(--blue10)',
594
+ blue11: 'var(--blue11)',
595
+ blue12: 'var(--blue12)',
596
+ red1: 'var(--red1)',
597
+ red2: 'var(--red2)',
598
+ red3: 'var(--red3)',
599
+ red4: 'var(--red4)',
600
+ red5: 'var(--red5)',
601
+ red6: 'var(--red6)',
602
+ red7: 'var(--red7)',
603
+ red8: 'var(--red8)',
604
+ red9: 'var(--red9)',
605
+ red10: 'var(--red10)',
606
+ red11: 'var(--red11)',
607
+ red12: 'var(--red12)',
608
+ gray1: 'var(--slate1)',
609
+ gray2: 'var(--slate2)',
610
+ gray3: 'var(--slate3)',
611
+ gray4: 'var(--slate4)',
612
+ gray5: 'var(--slate5)',
613
+ gray6: 'var(--slate6)',
614
+ gray7: 'var(--slate7)',
615
+ gray8: 'var(--slate8)',
616
+ gray9: 'var(--slate9)',
617
+ gray10: 'var(--slate10)',
618
+ gray11: 'var(--slate11)',
619
+ gray12: 'var(--slate12)'
620
+ }
621
+ };
622
+
623
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
624
+ var baseFontSize = 16;
625
+ function round(value) {
626
+ return value
627
+ .toFixed(7)
628
+ .replace(/(\.[0-9]+?)0+$/, '$1') // remove trailing zeroes after decimals
629
+ .replace(/\.0$/, ''); // remove any remaining zeroes
630
+ }
631
+ function rem(px) {
632
+ return "".concat(round(px / baseFontSize), "rem");
633
+ }
634
+ var fontSizes = {
635
+ 61: {
636
+ fontSize: rem(61),
637
+ lineHeight: round(73 / 61),
638
+ letterSpacing: rem(-0.022 * baseFontSize)
639
+ },
640
+ 53: {
641
+ fontSize: rem(53),
642
+ lineHeight: round(64 / 53),
643
+ letterSpacing: rem(-0.022 * baseFontSize)
644
+ },
645
+ 49: {
646
+ fontSize: rem(49),
647
+ lineHeight: round(59 / 49),
648
+ letterSpacing: rem(-0.022 * baseFontSize)
649
+ },
650
+ 46: {
651
+ fontSize: rem(46),
652
+ lineHeight: round(55 / 46),
653
+ letterSpacing: rem(-0.022 * baseFontSize)
654
+ },
655
+ 43: {
656
+ fontSize: rem(43),
657
+ lineHeight: round(52 / 43),
658
+ letterSpacing: rem(-0.022 * baseFontSize)
659
+ },
660
+ 39: {
661
+ fontSize: rem(39),
662
+ lineHeight: round(51 / 39),
663
+ letterSpacing: rem(-0.022 * baseFontSize)
664
+ },
665
+ 37: {
666
+ fontSize: rem(37),
667
+ lineHeight: round(48 / 37),
668
+ letterSpacing: rem(-0.022 * baseFontSize)
669
+ },
670
+ 34: {
671
+ fontSize: rem(34),
672
+ lineHeight: round(44 / 34),
673
+ letterSpacing: rem(-0.022 * baseFontSize)
674
+ },
675
+ 31: {
676
+ fontSize: rem(31),
677
+ lineHeight: round(40 / 31),
678
+ letterSpacing: rem(-0.021 * baseFontSize)
679
+ },
680
+ 29: {
681
+ fontSize: rem(29),
682
+ lineHeight: round(38 / 29),
683
+ letterSpacing: rem(-0.021 * baseFontSize)
684
+ },
685
+ 27: {
686
+ fontSize: rem(27),
687
+ lineHeight: round(36 / 27),
688
+ letterSpacing: rem(-0.021 * baseFontSize)
689
+ },
690
+ 25: {
691
+ fontSize: rem(25),
692
+ lineHeight: round(35 / 25),
693
+ letterSpacing: rem(-0.021 * baseFontSize)
694
+ },
695
+ 23: {
696
+ fontSize: rem(23),
697
+ lineHeight: round(32 / 23),
698
+ letterSpacing: rem(-0.019 * baseFontSize)
699
+ },
700
+ 22: {
701
+ fontSize: rem(22),
702
+ lineHeight: round(31 / 22),
703
+ letterSpacing: rem(-0.018 * baseFontSize)
704
+ },
705
+ 20: {
706
+ fontSize: rem(20),
707
+ lineHeight: round(30 / 20),
708
+ letterSpacing: rem(-0.017 * baseFontSize)
709
+ },
710
+ 19: {
711
+ fontSize: rem(19),
712
+ lineHeight: round(29 / 19),
713
+ letterSpacing: rem(-0.015 * baseFontSize)
714
+ },
715
+ 18: {
716
+ fontSize: rem(18),
717
+ lineHeight: round(28 / 18),
718
+ letterSpacing: rem(-0.014 * baseFontSize)
719
+ },
720
+ 16: {
721
+ fontSize: rem(16),
722
+ lineHeight: round(26 / 16),
723
+ letterSpacing: rem(-0.011 * baseFontSize)
724
+ },
725
+ 15: {
726
+ fontSize: rem(15),
727
+ lineHeight: round(24 / 15),
728
+ letterSpacing: rem(-0.009 * baseFontSize)
729
+ },
730
+ 14: {
731
+ fontSize: rem(14),
732
+ lineHeight: round(22 / 14),
733
+ letterSpacing: rem(-0.006 * baseFontSize)
734
+ },
735
+ 13: {
736
+ fontSize: rem(13),
737
+ lineHeight: round(21 / 13),
738
+ letterSpacing: rem(-0.003 * baseFontSize)
739
+ },
740
+ 12: { fontSize: rem(12), lineHeight: round(19 / 12) }
741
+ };
742
+ var headers = {
743
+ xl: {
744
+ huge: __assign(__assign({ fontWeight: 900 }, fontSizes[61]), (_a = {}, _a["@media (max-width: ".concat(styleguideBase.breakpoints.medium, "px)")] = fontSizes[53], _a["@media (max-width: ".concat(styleguideBase.breakpoints.small, "px)")] = fontSizes[46], _a)),
745
+ h1: __assign(__assign({ fontWeight: 600 }, fontSizes[49]), (_b = {}, _b["@media (max-width: ".concat(styleguideBase.breakpoints.medium, "px)")] = fontSizes[43], _b["@media (max-width: ".concat(styleguideBase.breakpoints.small, "px)")] = fontSizes[37], _b)),
746
+ h2: __assign(__assign({ fontWeight: 600 }, fontSizes[39]), (_c = {}, _c["@media (max-width: ".concat(styleguideBase.breakpoints.medium, "px)")] = fontSizes[34], _c["@media (max-width: ".concat(styleguideBase.breakpoints.small, "px)")] = fontSizes[29], _c)),
747
+ h3: __assign(__assign({ fontWeight: 600 }, fontSizes[31]), (_d = {}, _d["@media (max-width: ".concat(styleguideBase.breakpoints.medium, "px)")] = fontSizes[27], _d["@media (max-width: ".concat(styleguideBase.breakpoints.small, "px)")] = fontSizes[23], _d)),
748
+ h4: __assign(__assign({ fontWeight: 500 }, fontSizes[25]), (_e = {}, _e["@media (max-width: ".concat(styleguideBase.breakpoints.medium, "px)")] = fontSizes[22], _e["@media (max-width: ".concat(styleguideBase.breakpoints.small, "px)")] = fontSizes[19], _e)),
749
+ h5: __assign(__assign({ fontWeight: 500 }, fontSizes[20]), (_f = {}, _f["@media (max-width: ".concat(styleguideBase.breakpoints.medium, "px)")] = fontSizes[18], _f["@media (max-width: ".concat(styleguideBase.breakpoints.small, "px)")] = fontSizes[16], _f)),
750
+ h6: __assign({ fontWeight: 500 }, fontSizes[16])
751
+ },
752
+ "default": {
753
+ huge: __assign(__assign({ fontWeight: 900 }, fontSizes[39]), (_g = {}, _g["@media (max-width: ".concat(styleguideBase.breakpoints.medium, "px)")] = fontSizes[34], _g["@media (max-width: ".concat(styleguideBase.breakpoints.small, "px)")] = fontSizes[29], _g)),
754
+ h1: __assign(__assign({ fontWeight: 600 }, fontSizes[31]), (_h = {}, _h["@media (max-width: ".concat(styleguideBase.breakpoints.medium, "px)")] = fontSizes[27], _h["@media (max-width: ".concat(styleguideBase.breakpoints.small, "px)")] = fontSizes[23], _h)),
755
+ h2: __assign(__assign({ fontWeight: 600 }, fontSizes[25]), (_j = {}, _j["@media (max-width: ".concat(styleguideBase.breakpoints.medium, "px)")] = fontSizes[22], _j["@media (max-width: ".concat(styleguideBase.breakpoints.small, "px)")] = fontSizes[19], _j)),
756
+ h3: __assign(__assign({ fontWeight: 600 }, fontSizes[20]), (_k = {}, _k["@media (max-width: ".concat(styleguideBase.breakpoints.medium, "px)")] = fontSizes[18], _k["@media (max-width: ".concat(styleguideBase.breakpoints.small, "px)")] = fontSizes[16], _k)),
757
+ h4: __assign({ fontWeight: 600 }, fontSizes[16]),
758
+ h5: __assign({ fontWeight: 600 }, fontSizes[13]),
759
+ h6: __assign({ fontWeight: 600 }, fontSizes[12])
760
+ }
761
+ };
762
+ var baseStyle = __assign({ fontWeight: 400 }, fontSizes[16]);
763
+ var body = {
764
+ headline: __assign({ fontWeight: 500 }, fontSizes[16]),
765
+ paragraph: baseStyle,
766
+ label: __assign({ fontWeight: 500 }, fontSizes[15]),
767
+ callout: __assign({ fontWeight: 400 }, fontSizes[14]),
768
+ footnote: __assign({ fontWeight: 400 }, fontSizes[13]),
769
+ caption: __assign({ fontWeight: 400 }, fontSizes[12]),
770
+ code: __assign({ fontWeight: 400 }, fontSizes[13]),
771
+ ul: {
772
+ marginLeft: '1.5rem',
773
+ 'ol, ul': {
774
+ marginTop: '0.5rem',
775
+ marginBottom: '1rem'
776
+ }
777
+ },
778
+ ol: {
779
+ marginLeft: '1.5rem',
780
+ 'ol, ul': {
781
+ marginTop: '0.5rem',
782
+ marginBottom: '1rem'
783
+ }
784
+ },
785
+ li: __assign(__assign({}, baseStyle), { marginBottom: '0.5rem' }),
786
+ blockquote: __assign(__assign({}, baseStyle), { color: theme.text.secondary, paddingLeft: styleguideBase.spacing[4], borderLeft: "".concat(styleguideBase.spacing[1], "px solid ").concat(theme.border["default"]) })
787
+ };
788
+ var utility = {
789
+ anchor: {
790
+ color: theme.text.link,
791
+ fontWeight: 400,
792
+ textDecoration: 'none',
793
+ cursor: 'pointer',
794
+ transition: '200ms',
795
+ // transform prevents a 1px shift on hover on Safari
796
+ transform: 'translate3d(0,0,0)',
797
+ ':visited': {
798
+ color: theme.text.link
799
+ },
800
+ ':hover': {
801
+ opacity: 0.8
802
+ }
803
+ },
804
+ inlineCode: __assign(__assign({}, body.code), { display: 'inline-block', backgroundColor: theme.background.subtle, border: "1px solid ".concat(theme.border["default"]), borderRadius: styleguideBase.borderRadius.md, padding: '2px 4px', lineHeight: '130%' }),
805
+ terminalCode: __assign(__assign({}, body.code), { display: 'inline-block', backgroundColor: styleguideBase.darkTheme.background.subtle, color: styleguideBase.darkTheme.text["default"], border: "1px solid ".concat(styleguideBase.darkTheme.border["default"]), borderRadius: styleguideBase.borderRadius.md, padding: '2px 4px', lineHeight: '130%' }),
806
+ pre: __assign(__assign({}, body.code), { backgroundColor: theme.background.subtle, borderRadius: styleguideBase.borderRadius.md, border: "1px solid ".concat(theme.border["default"]), padding: styleguideBase.spacing[4], whiteSpace: 'pre-wrap', margin: "".concat(styleguideBase.spacing[4], "px 0") }),
807
+ terminalPre: __assign(__assign({}, body.code), { backgroundColor: styleguideBase.darkTheme.background.subtle, color: styleguideBase.darkTheme.text["default"], borderRadius: styleguideBase.borderRadius.md, border: "1px solid ".concat(styleguideBase.darkTheme.border["default"]), padding: styleguideBase.spacing[4], margin: "".concat(styleguideBase.spacing[4], "px 0"), whiteSpace: 'pre-wrap', '&:before': {
808
+ content: '"➜ "'
809
+ } }),
810
+ hr: {
811
+ backgroundColor: theme.border["default"],
812
+ border: 0,
813
+ height: 1,
814
+ display: 'block',
815
+ width: '100%'
816
+ },
817
+ weight: {
818
+ black: {
819
+ fontWeight: 900
820
+ },
821
+ semiBold: {
822
+ fontWeight: 600
823
+ },
824
+ medium: {
825
+ fontWeight: 500
826
+ },
827
+ regular: {
828
+ fontWeight: 400
829
+ }
830
+ }
831
+ };
832
+ var typography = {
833
+ baseFontSize: baseFontSize,
834
+ headers: headers,
835
+ body: body,
836
+ utility: utility,
837
+ fontSizes: fontSizes
838
+ };
839
+
840
+ exports.BlockingSetInitialColorMode = BlockingSetInitialColorMode;
841
+ exports.Button = Button;
842
+ exports.ButtonBase = ButtonBase;
843
+ exports.DocsLogo = DocsLogo;
844
+ exports.ExpoGoLogo = ExpoGoLogo;
845
+ exports.Link = Link;
846
+ exports.LinkBase = LinkBase;
847
+ exports.Logo = Logo;
848
+ exports.SnackLogo = SnackLogo;
849
+ exports.ThemeProvider = ThemeProvider;
850
+ exports.WordMarkLogo = WordMarkLogo;
851
+ exports.getInitialColorMode = getInitialColorMode;
852
+ exports.isLocalStorageAvailable = isLocalStorageAvailable;
853
+ exports.shadows = shadows;
854
+ exports.theme = theme;
855
+ exports.typography = typography;
856
+ exports.useTheme = useTheme;