@expo/styleguide 8.0.0-alpha.1 → 8.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,21 +11,22 @@ Expo's styleguide and components for use on the web.
11
11
  2. Import global CSS files from the package in your JS(X)/TS(X) code:
12
12
  ```jsx
13
13
  import "@expo/styleguide/dist/expo-theme.css";
14
- import "@expo/styleguide/dist/global.css";
15
14
  ```
16
15
  or import it the main stylesheet file:
17
16
  ```css
18
17
  @import "@expo/styleguide/dist/expo-theme.css";
19
- @import "@expo/styleguide/dist/global.css";
20
18
  ```
19
+ 3. Add `'./node_modules/@expo/styleguide/dist/**/*.{js,ts,jsx,tsx}'` to the Tailwind `content` paths.
21
20
 
22
21
  ### Tailwind theme
23
22
 
24
23
  For the Styleguide we use our custom Tailwind theme, which is based on the default TW theme, with the following differences:
25
- * only valid media screen scopes are: `small:`, `medium:` and `large:`
24
+ * only valid media screen scopes are: `xs:`, `sm:`, `md:`, `lg:` and `xl:`
26
25
  * there is a custom `hocus:` scope which is a shorthand for hover and focus states
27
26
  * typography elements are predefined as a `heading-[size]` styles sets
28
- * `icon-[size]` are custom classes defined for icons sizing
27
+ * `icon-[size]` are custom component classes defined for icons sizing
28
+
29
+ The theme can be extended, if needed, and includes `@tailwindcss/typography` plugin by default, with a stripped down version of default config.
29
30
 
30
31
  ## Development
31
32
 
@@ -116,15 +116,6 @@
116
116
  --expo-theme-button-secondary-destructive-disabled-border: var(--red5);
117
117
  --expo-theme-button-secondary-destructive-disabled-text: var(--red8);
118
118
 
119
- /* Project icon backgrounds */
120
- --expo-theme-project-blue: linear-gradient(#81b2eb, #6299d9);
121
- --expo-theme-project-green: linear-gradient(#6eb87f, #54a767);
122
- --expo-theme-project-yellow: linear-gradient(#edcd5f, #e5c145);
123
- --expo-theme-project-orange: linear-gradient(#eb9f6a, #d9864c);
124
- --expo-theme-project-red: linear-gradient(#eb7171, #d95757);
125
- --expo-theme-project-pink: linear-gradient(#eb8dc5, #d977b2);
126
- --expo-theme-project-purple: linear-gradient(#a687e0, #8a66cc);
127
-
128
119
  /* Light shadows */
129
120
  --expo-theme-shadows-none: 0 0 transparent;
130
121
  --expo-theme-shadows-xs: 0 1px 3px rgba(0, 0, 0, 0.025),
@@ -239,15 +230,6 @@
239
230
  --expo-theme-button-secondary-destructive-disabled-border: var(--red6);
240
231
  --expo-theme-button-secondary-destructive-disabled-text: var(--red10);
241
232
 
242
- /* Project icon backgrounds */
243
- --expo-theme-project-blue: linear-gradient(#537296, #395a80);
244
- --expo-theme-project-green: linear-gradient(#4b7d56, #32633d);
245
- --expo-theme-project-yellow: linear-gradient(#a67f35, #8a6319);
246
- --expo-theme-project-orange: linear-gradient(#ab744d, #8c5731);
247
- --expo-theme-project-red: linear-gradient(#b25656, #8c3838);
248
- --expo-theme-project-pink: linear-gradient(#995c81, #8a4c71);
249
- --expo-theme-project-purple: linear-gradient(#715c99, #4e3973);
250
-
251
233
  /* Dark shadows */
252
234
  --expo-theme-shadows-none: 0 0 transparent;
253
235
  --expo-theme-shadows-xs: 0 1px 3px rgba(0, 0, 0, 0.3),
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './src/logos';
3
3
  export { shadows } from './src/styles/shadows';
4
4
  export { theme } from './src/styles/themes';
5
5
  export { typography } from './src/styles/typography';
6
+ export { mergeClasses } from './src/helpers/mergeClasses';
package/dist/index.js CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  var React = require('react');
4
4
  var tailwindMerge = require('tailwind-merge');
5
- var styleguideIcons = require('@expo/styleguide-icons');
6
5
  var Link$1 = require('next/link');
7
6
  var styleguideBase = require('@expo/styleguide-base');
8
7
 
@@ -181,6 +180,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
181
180
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
182
181
  PERFORMANCE OF THIS SOFTWARE.
183
182
  ***************************************************************************** */
183
+ /* global Reflect, Promise */
184
+
184
185
 
185
186
  var __assign = function() {
186
187
  __assign = Object.assign || function __assign(t) {
@@ -205,12 +206,19 @@ function __rest(s, e) {
205
206
  return t;
206
207
  }
207
208
 
209
+ var mergeClasses = tailwindMerge.extendTailwindMerge({
210
+ classGroups: {
211
+ icon: [{ icon: ['xs', 'sm', 'md', 'lg', 'xl', '2xl'] }]
212
+ }
213
+ });
214
+
208
215
  var ButtonBase = React.forwardRef(function (_a, ref) {
209
216
  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));
217
+ return (React.createElement("button", __assign({ className: mergeClasses('flex cursor-pointer', className), "data-testid": testID, disabled: disabled, ref: ref, type: type, onClick: disabled ? undefined : onClick }, rest), children));
211
218
  });
219
+ ButtonBase.displayName = 'ButtonBase';
212
220
 
213
- var STOPWORDS = 'a an and at but by for in nor of on or so the to up yet'.split(' ');
221
+ var STOPWORDS = 'a an and at but by for in nor of on or out so the to up with yet'.split(' ');
214
222
  function titleCase(value, options) {
215
223
  var _a;
216
224
  if (options === void 0) { options = {}; }
@@ -241,18 +249,20 @@ function capitalize(text) {
241
249
 
242
250
  var LinkBase = React.forwardRef(function (_a, ref) {
243
251
  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
252
  if (disabled) {
247
253
  return (React.createElement("a", __assign({ ref: ref, "data-testid": testID }, rest), children));
248
254
  }
255
+ if (!href || href.startsWith('#')) {
256
+ return (React.createElement("a", __assign({ href: href, ref: ref, onClick: onClick, "data-testid": testID }, rest), children));
257
+ }
249
258
  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
259
  });
260
+ LinkBase.displayName = 'LinkBase';
251
261
 
252
- function Link(_a) {
262
+ var Link = React.forwardRef(function (_a, ref) {
253
263
  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
- }
264
+ return (React.createElement(LinkBase, __assign({ className: mergeClasses('text-link transition-opacity', !disabled && 'hocus:opacity-80', className), ref: ref }, rest)));
265
+ });
256
266
 
257
267
  function getSizeClasses(size) {
258
268
  switch (size) {
@@ -274,19 +284,19 @@ function getThemeClasses(theme, disabled) {
274
284
  if (disabled === void 0) { disabled = false; }
275
285
  switch (theme) {
276
286
  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');
287
+ return mergeClasses('border-button-primary bg-button-primary text-button-primary shadow-xs', !disabled && 'hocus:bg-button-primary-hover active:scale-98', disabled && 'bg-button-primary-disabled border-button-primary-disabled text-button-primary-disabled');
278
288
  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 &&
289
+ return mergeClasses('border-button-primary-destructive bg-button-primary-destructive text-button-primary-destructive shadow-xs', !disabled && 'hocus:bg-button-primary-destructive-hover active:scale-98', disabled &&
280
290
  'bg-button-primary-destructive-disabled border-button-primary-destructive-disabled text-button-primary-destructive-disabled');
281
291
  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');
292
+ return mergeClasses('border-button-secondary bg-button-secondary text-button-secondary shadow-xs', !disabled && 'hocus:bg-button-secondary-hover active:scale-98', disabled && 'bg-button-secondary-disabled border-button-secondary-disabled text-button-secondary-disabled');
283
293
  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 &&
294
+ return mergeClasses('border-button-secondary-destructive bg-button-secondary-destructive text-button-secondary-destructive shadow-xs', !disabled && 'hocus:bg-button-secondary-destructive-hover active:scale-98', disabled &&
285
295
  'bg-button-secondary-destructive-disabled border-button-secondary-destructive-disabled text-button-secondary-destructive-disabled');
286
296
  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');
297
+ return mergeClasses('border-button-tertiary bg-button-tertiary text-button-tertiary shadow-none', !disabled && 'hocus:bg-button-tertiary-hover active:scale-98', disabled && 'bg-button-tertiary-disabled border-button-tertiary-disabled text-button-tertiary-disabled');
288
298
  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');
299
+ return mergeClasses('border-button-quaternary bg-button-quaternary text-button-quaternary shadow-none', !disabled && 'hocus:bg-button-quaternary-hover active:scale-98', disabled && 'bg-button-quaternary-disabled border-button-quaternary-disabled text-button-quaternary-disabled');
290
300
  }
291
301
  }
292
302
  function getIconSizeClasses(size) {
@@ -321,6 +331,22 @@ function getThemedIconClasses(theme) {
321
331
  return 'text-button-quaternary-icon';
322
332
  }
323
333
  }
334
+ function getButtonIconClasses(size) {
335
+ switch (size) {
336
+ case 'xs':
337
+ return 'px-0 w-8 justify-center items-center';
338
+ case 'sm':
339
+ return 'px-0 w-9 justify-center items-center';
340
+ case 'md':
341
+ return 'px-0 w-10 justify-center items-center';
342
+ case 'lg':
343
+ return 'px-0 w-11 justify-center items-center';
344
+ case 'xl':
345
+ return 'px-0 w-12 justify-center items-center';
346
+ case '2xl':
347
+ return 'px-0 w-15 justify-center items-center';
348
+ }
349
+ }
324
350
  function isIconElement(element) {
325
351
  var _a, _b, _c;
326
352
  if (React.isValidElement(element)) {
@@ -330,57 +356,72 @@ function isIconElement(element) {
330
356
  return false;
331
357
  }
332
358
  function getIconProps(element, classNames) {
333
- return __assign(__assign({}, element.props), { className: tailwindMerge.twMerge(classNames, element.props.className) });
359
+ return __assign(__assign({}, element.props), { className: mergeClasses(classNames, element.props.className) });
334
360
  }
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;
361
+ var Button = React.forwardRef(function (_a, ref) {
362
+ var children = _a.children, _b = _a.size, size = _b === void 0 ? 'sm' : _b, _c = _a.theme, theme = _c === void 0 ? 'primary' : _c, _d = _a.skipCapitalization, skipCapitalization = _d === void 0 ? false : _d, href = _a.href, disabled = _a.disabled, className = _a.className, leftSlot = _a.leftSlot, rightSlot = _a.rightSlot, openInNewTab = _a.openInNewTab, rest = __rest(_a, ["children", "size", "theme", "skipCapitalization", "href", "disabled", "className", "leftSlot", "rightSlot", "openInNewTab"]);
338
363
  var isLeftSlotIcon = leftSlot && isIconElement(leftSlot);
339
364
  var isRightSlotIcon = rightSlot && isIconElement(rightSlot);
340
365
  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),
366
+ mergeClasses("".concat(getIconSizeClasses(size)), getThemedIconClasses(theme), disabled && 'opacity-60');
367
+ var isSingleIconButton = (leftSlot || rightSlot) && !children;
368
+ var twClasses = mergeClasses("inline-flex border border-solid rounded-md font-medium gap-2 items-center whitespace-nowrap transition", getSizeClasses(size), getThemeClasses(theme, disabled), isSingleIconButton && getButtonIconClasses(size), disabled && 'cursor-default opacity-80 pointer-event-none', className);
369
+ var content = (React.createElement(React.Fragment, null,
343
370
  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
- };
371
+ children && (React.createElement("span", { className: mergeClasses('flex self-center text-inherit leading-none', href && 'select-none') }, typeof children === 'string' && !skipCapitalization ? titleCase(children) : children)),
372
+ isRightSlotIcon ? React.cloneElement(rightSlot, getIconProps(rightSlot, iconClasses)) : rightSlot));
373
+ if (href) {
374
+ return (React.createElement(LinkBase, __assign({ href: href, className: twClasses, disabled: disabled, ref: ref, openInNewTab: openInNewTab }, rest), content));
375
+ }
376
+ else {
377
+ return (React.createElement(ButtonBase, __assign({ className: twClasses, disabled: disabled, ref: ref }, rest), content));
378
+ }
379
+ });
380
+ Button.displayName = 'Button';
348
381
 
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)' })));
382
+ function DocsLogo(_a) {
383
+ var className = _a.className, rest = __rest(_a, ["className"]);
384
+ var _className = mergeClasses('icon-md text-icon-default', className);
385
+ return (React.createElement("svg", __assign({ viewBox: "0 0 20 20", fill: "none", role: "img", className: _className }, rest),
386
+ 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: "currentColor" }),
387
+ 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: "currentColor" })));
355
388
  }
356
389
 
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)' })));
390
+ function ExpoGoLogo(_a) {
391
+ var className = _a.className, rest = __rest(_a, ["className"]);
392
+ var _className = mergeClasses('icon-md text-icon-default', className);
393
+ return (React.createElement("svg", __assign({ viewBox: "0 0 20 20", fill: "none", role: "img", className: _className }, rest),
394
+ 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: "currentColor" })));
362
395
  }
363
396
 
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)' })));
397
+ function Logo(_a) {
398
+ var className = _a.className, rest = __rest(_a, ["className"]);
399
+ var _className = mergeClasses('icon-md text-icon-default', className);
400
+ return (React.createElement("svg", __assign({ viewBox: "0 0 20 20", fill: "none", role: "img", className: _className }, rest),
401
+ 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: "currentColor" })));
369
402
  }
370
403
 
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)' })));
404
+ function RouterLogo(_a) {
405
+ var className = _a.className, rest = __rest(_a, ["className"]);
406
+ var _className = mergeClasses('icon-md text-icon-default', className);
407
+ return (React.createElement("svg", __assign({ viewBox: "0 0 20 20", fill: "none", role: "img", className: _className }, rest),
408
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.51006 18.8434L9.53354 18.4134L9.56067 17.9149C9.70602 17.9228 9.85252 17.9268 10 17.9268C10.1475 17.9268 10.294 17.9228 10.4393 17.9149L10.4665 18.4134L10.4899 18.8434C12.5668 18.7302 14.4532 17.9014 15.9069 16.5994L15.6195 16.2786L15.2864 15.9067C15.5044 15.7115 15.7115 15.5044 15.9067 15.2864L16.2786 15.6195L16.5994 15.9069C17.9014 14.4532 18.7302 12.5668 18.8434 10.4899L18.4134 10.4665L17.9149 10.4393C17.9228 10.294 17.9268 10.1475 17.9268 10C17.9268 9.85252 17.9228 9.70602 17.9149 9.56067L18.4134 9.53354L18.8434 9.51006C18.7302 7.43323 17.9014 5.54683 16.5994 4.09314L16.2786 4.38046L15.9067 4.71354C15.7115 4.49559 15.5044 4.2885 15.2864 4.09328L15.6195 3.7214L15.9069 3.40062C14.4532 2.0986 12.5668 1.26984 10.4899 1.15662L10.4665 1.58662L10.4393 2.08511C10.294 2.07719 10.1475 2.07317 10 2.07317C9.85252 2.07317 9.70602 2.07719 9.56067 2.08511L9.53354 1.58662L9.51006 1.15662C7.43323 1.26984 5.54683 2.0986 4.09315 3.40062L4.38046 3.7214L4.71354 4.09328C4.49559 4.2885 4.2885 4.49559 4.09328 4.71354L3.7214 4.38046L3.40062 4.09315C2.0986 5.54683 1.26984 7.43323 1.15662 9.51006L1.58662 9.53354L2.08511 9.56067C2.07719 9.70602 2.07317 9.85252 2.07317 10C2.07317 10.1475 2.07719 10.294 2.08511 10.4393L1.58662 10.4665L1.15662 10.4899C1.26984 12.5668 2.0986 14.4532 3.40062 15.9069L3.7214 15.6195L4.09328 15.2864C4.2885 15.5044 4.49559 15.7115 4.71354 15.9067L4.38046 16.2786L4.09315 16.5994C5.54683 17.9014 7.43323 18.7302 9.51006 18.8434ZM20 10C20 15.5229 15.5229 20 10 20C4.47715 20 0 15.5229 0 10C0 4.47715 4.47715 0 10 0C15.5229 0 20 4.47715 20 10Z", fill: "currentColor" }),
409
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.14777 10.3622L4.25351 10.0373L4.36101 9.89014C4.4513 9.76651 4.61944 9.59563 4.73245 9.48084C4.8812 9.3297 5.07742 9.13496 5.30312 8.91362C5.75546 8.46994 6.33928 7.9063 6.92723 7.3437C8.07319 6.24703 9.31976 5.07196 9.57814 4.86363L9.57852 4.86336L9.57883 4.8631C9.58828 4.85547 9.59834 4.84736 9.60886 4.83883C9.77654 4.70296 10.0755 4.46077 10.4509 4.35111C10.9203 4.21397 11.3363 4.31708 11.6086 4.39604L11.6264 4.4012L12.0156 4.52791L12.0331 4.53422C12.3001 4.63079 12.697 4.79248 12.9957 5.17984C13.2343 5.48938 13.3333 5.86098 13.3888 6.06927C13.3923 6.0824 13.3956 6.09487 13.3988 6.10665L13.3989 6.10696C13.4868 6.43352 13.8146 8.18115 14.1008 9.77459C14.2475 10.5917 14.3889 11.4 14.4909 12.0152C14.5417 12.3218 14.5838 12.5867 14.6121 12.783C14.6259 12.8795 14.638 12.9701 14.6459 13.0447C14.6496 13.0803 14.6541 13.1276 14.6564 13.1766C14.6575 13.2001 14.6589 13.2404 14.6573 13.2883C14.6572 13.289 14.6572 13.2898 14.6572 13.2909C14.6564 13.3158 14.6525 13.4542 14.6004 13.6142C14.4473 14.0847 14.1704 14.4484 13.7328 14.785L13.7326 14.7851L13.7324 14.7852C13.4428 15.0078 13.0273 15.2071 12.5475 15.2013C11.9922 15.1946 11.4437 14.9025 11.157 14.3211L11.1566 14.3202C11.1032 14.2117 11.0698 14.0985 11.0594 14.0635C11.0589 14.0619 11.0585 14.0604 11.058 14.0591C11.0406 14.0002 11.0223 13.9329 11.0043 13.8638C10.9679 13.7241 10.9239 13.5431 10.8749 13.3377C10.8185 13.1007 10.7521 12.8164 10.6802 12.5083C10.6282 12.2853 10.5733 12.0498 10.517 11.8108C10.3651 11.1648 10.2034 10.4912 10.0513 9.90165C9.58127 10.2887 9.05413 10.7382 8.55108 11.1709C8.36495 11.3311 8.18195 11.4891 8.00855 11.6388C7.76915 11.8454 7.54816 12.0362 7.363 12.1946C7.20255 12.3318 7.06034 12.4523 6.94877 12.5437C6.89353 12.589 6.83913 12.6327 6.79033 12.67C6.78925 12.6709 6.78803 12.6718 6.78665 12.6728C6.75768 12.695 6.66397 12.7668 6.55695 12.8231L6.5561 12.8235C5.98215 13.1248 5.36684 13.0381 4.91395 12.7167C4.52261 12.4389 4.30403 12.0333 4.20092 11.6828L4.20078 11.6824C4.07271 11.2463 4.03529 10.8352 4.13703 10.4074L4.14777 10.3622ZM9.71351 8.70279C9.71358 8.70272 9.71366 8.70272 9.71366 8.70264C9.72136 8.69647 9.72905 8.69037 9.73668 8.68427C9.75207 8.67192 9.76747 8.65965 9.78271 8.64753C9.99986 8.47452 10.1986 8.32154 10.3689 8.19852C10.4041 8.172 10.4453 8.15432 10.4889 8.14708C10.5325 8.13984 10.5771 8.14327 10.6192 8.15691C10.6612 8.17063 10.6993 8.19418 10.7304 8.22566C10.7613 8.25721 10.7842 8.2957 10.797 8.33785C10.8623 8.53755 10.9329 8.77825 11.0067 9.04593C11.0119 9.06468 11.0171 9.08366 11.0223 9.10272C11.0249 9.11209 11.0275 9.12162 11.03 9.13107C11.03 9.13115 11.03 9.13122 11.03 9.1313C11.2833 10.0616 11.5694 11.2874 11.7947 12.2532C11.9891 13.0862 12.1384 13.7258 12.1825 13.8154C12.3486 14.1525 12.7422 14.1043 13.0357 13.8787C13.3243 13.6568 13.4435 13.4744 13.5132 13.2603C13.5607 13.1146 12.4379 6.93503 12.2949 6.40437C12.1574 5.89438 12.1035 5.77547 11.6442 5.60933L11.2901 5.49409C10.8211 5.35805 10.7076 5.42211 10.2957 5.75366C9.877 6.09129 5.51013 10.2552 5.28426 10.5645L5.24931 10.6718C5.20506 10.8579 5.20989 11.0611 5.29773 11.3601C5.40221 11.7152 5.69205 11.9859 6.02474 11.8112C6.11321 11.7647 6.61032 11.3355 7.25778 10.7765C8.00848 10.1284 8.96122 9.30577 9.71351 8.70279Z", fill: "currentColor" })));
377
410
  }
378
411
 
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)' })));
412
+ function SnackLogo(_a) {
413
+ var className = _a.className, rest = __rest(_a, ["className"]);
414
+ var _className = mergeClasses('icon-md text-icon-default', className);
415
+ return (React.createElement("svg", __assign({ viewBox: "0 0 20 20", fill: "none", role: "img", className: _className }, rest),
416
+ 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: "currentColor" }),
417
+ 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: "currentColor" })));
418
+ }
419
+
420
+ function WordMarkLogo(_a) {
421
+ var className = _a.className, rest = __rest(_a, ["className"]);
422
+ var _className = mergeClasses('icon-md text-icon-default', className);
423
+ return (React.createElement("svg", __assign({ viewBox: "0 0 71 20", fill: "none", role: "img", className: _className }, rest),
424
+ 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: "currentColor" })));
384
425
  }
385
426
 
386
427
  var shadows = {
@@ -509,15 +550,6 @@ var theme = {
509
550
  }
510
551
  }
511
552
  },
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
553
  palette: {
522
554
  white: 'var(--expo-color-white)',
523
555
  black: 'var(--expo-color-black)',
@@ -845,11 +877,13 @@ exports.ExpoGoLogo = ExpoGoLogo;
845
877
  exports.Link = Link;
846
878
  exports.LinkBase = LinkBase;
847
879
  exports.Logo = Logo;
880
+ exports.RouterLogo = RouterLogo;
848
881
  exports.SnackLogo = SnackLogo;
849
882
  exports.ThemeProvider = ThemeProvider;
850
883
  exports.WordMarkLogo = WordMarkLogo;
851
884
  exports.getInitialColorMode = getInitialColorMode;
852
885
  exports.isLocalStorageAvailable = isLocalStorageAvailable;
886
+ exports.mergeClasses = mergeClasses;
853
887
  exports.shadows = shadows;
854
888
  exports.theme = theme;
855
889
  exports.typography = typography;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ReactElement } from 'react';
2
3
  import { ButtonBaseProps } from './ButtonBase';
3
4
  import { LinkBaseProps } from '../Link';
@@ -8,5 +9,18 @@ export type ButtonProps = ButtonBaseProps & LinkBaseProps & {
8
9
  theme?: ButtonTheme;
9
10
  leftSlot?: ReactElement;
10
11
  rightSlot?: ReactElement;
12
+ skipCapitalization?: boolean;
11
13
  };
12
- export declare const Button: (props: ButtonProps) => JSX.Element;
14
+ export declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
15
+ testID?: string | undefined;
16
+ } & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
17
+ testID?: string | undefined;
18
+ openInNewTab?: boolean | undefined;
19
+ disabled?: boolean | undefined;
20
+ } & {
21
+ size?: ButtonSize | undefined;
22
+ theme?: ButtonTheme | undefined;
23
+ leftSlot?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
24
+ rightSlot?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
25
+ skipCapitalization?: boolean | undefined;
26
+ } & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
@@ -1,2 +1,6 @@
1
- import { LinkBaseProps } from './LinkBase';
2
- export declare function Link({ className, disabled, ...rest }: LinkBaseProps): JSX.Element;
1
+ import React from 'react';
2
+ export declare const Link: React.ForwardRefExoticComponent<React.AnchorHTMLAttributes<HTMLAnchorElement> & {
3
+ testID?: string | undefined;
4
+ openInNewTab?: boolean | undefined;
5
+ disabled?: boolean | undefined;
6
+ } & React.RefAttributes<HTMLAnchorElement>>;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export declare function isLocalStorageAvailable(): boolean;
2
3
  export declare function getInitialColorMode(): string | null;
3
- export declare function BlockingSetInitialColorMode(): JSX.Element;
4
+ export declare function BlockingSetInitialColorMode(): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export declare enum Themes {
3
3
  AUTO = "auto",
4
4
  DARK = "dark",
@@ -8,7 +8,7 @@ type ThemeProviderProps = {
8
8
  children: ReactNode;
9
9
  disabled?: boolean;
10
10
  };
11
- export declare function ThemeProvider(props: ThemeProviderProps): JSX.Element;
11
+ export declare function ThemeProvider(props: ThemeProviderProps): React.JSX.Element;
12
12
  export declare function useTheme(): {
13
13
  setDarkMode: () => void;
14
14
  setLightMode: () => void;
@@ -0,0 +1 @@
1
+ export declare const mergeClasses: (...classLists: import("tailwind-merge/dist/lib/tw-join").ClassNameValue[]) => string;
@@ -1,2 +1,2 @@
1
- import { IconProps } from '../types';
2
- export declare function DocsLogo(props: IconProps): JSX.Element;
1
+ import React, { HTMLAttributes } from 'react';
2
+ export declare function DocsLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IconProps } from '../types';
2
- export declare function ExpoGoLogo(props: IconProps): JSX.Element;
1
+ import React, { HTMLAttributes } from 'react';
2
+ export declare function ExpoGoLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IconProps } from '../types';
2
- export declare function Logo(props: IconProps): JSX.Element;
1
+ import React, { HTMLAttributes } from 'react';
2
+ export declare function Logo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ export declare function RouterLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IconProps } from '../types';
2
- export declare function SnackLogo(props: IconProps): JSX.Element;
1
+ import React, { HTMLAttributes } from 'react';
2
+ export declare function SnackLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IconProps } from '../types';
2
- export declare function WordMarkLogo(props: IconProps): JSX.Element;
1
+ import React, { HTMLAttributes } from 'react';
2
+ export declare function WordMarkLogo({ className, ...rest }: HTMLAttributes<SVGSVGElement>): React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  export { DocsLogo } from './DocsLogo';
2
2
  export { ExpoGoLogo } from './ExpoGoLogo';
3
3
  export { Logo } from './Logo';
4
+ export { RouterLogo } from './RouterLogo';
4
5
  export { SnackLogo } from './SnackLogo';
5
6
  export { WordMarkLogo } from './WordMarkLogo';
@@ -115,15 +115,6 @@ export declare const theme: {
115
115
  };
116
116
  };
117
117
  };
118
- project: {
119
- blue: string;
120
- green: string;
121
- yellow: string;
122
- orange: string;
123
- red: string;
124
- pink: string;
125
- purple: string;
126
- };
127
118
  palette: {
128
119
  white: string;
129
120
  black: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/styleguide",
3
- "version": "8.0.0-alpha.1",
3
+ "version": "8.0.0-alpha.10",
4
4
  "description": "Expo's styleguide components for use on the web.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,25 +30,25 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@rollup/plugin-typescript": "^11.0.0",
33
- "@types/react": "^18.0.28",
33
+ "@tailwindcss/typography": "^0.5.9",
34
+ "@types/react": "^18.2.6",
34
35
  "npm-run-all": "^4.1.5",
35
36
  "rimraf": "^4.1.2",
36
- "rollup": "^3.17.2",
37
+ "rollup": "^3.21.5",
37
38
  "rollup-plugin-copy": "^3.4.0",
38
- "tailwindcss": "^3.2.7",
39
+ "tailwindcss": "^3.3.2",
39
40
  "typescript": "^4.9.5"
40
41
  },
41
42
  "peerDependencies": {
42
- "@expo/styleguide-icons": "*",
43
43
  "next": ">= 13",
44
44
  "react": ">= 16"
45
45
  },
46
46
  "dependencies": {
47
- "@expo/styleguide-base": "^1.0.0-alpha.1",
48
- "tailwind-merge": "^1.10.0"
47
+ "@expo/styleguide-base": "^1.0.0-alpha.3",
48
+ "tailwind-merge": "^1.12.0"
49
49
  },
50
50
  "eslintConfig": {
51
51
  "extends": "universe/web"
52
52
  },
53
- "gitHead": "d58f386be7e415766a6eb967646211710e8978ab"
53
+ "gitHead": "74800b3861a568c7909d877c445aa56956925dfe"
54
54
  }
package/tailwind.js CHANGED
@@ -151,15 +151,6 @@ const expoTailwindConfig = {
151
151
 
152
152
  ...palette,
153
153
  },
154
- backgroundImage: {
155
- 'project-blue': 'var(--expo-theme-project-blue)',
156
- 'project-green': 'var(--expo-theme-project-green)',
157
- 'project-yellow': 'var(--expo-theme-project-yellow)',
158
- 'project-orange': 'var(--expo-theme-project-orange)',
159
- 'project-red': 'var(--expo-theme-project-red)',
160
- 'project-pink': 'var(--expo-theme-project-pink)',
161
- 'project-purple': 'var(--expo-theme-project-purple)',
162
- },
163
154
  borderColor: {
164
155
  default: 'var(--expo-theme-border-default)',
165
156
  secondary: 'var(--expo-theme-border-secondary)',
@@ -330,30 +321,96 @@ const expoTailwindConfig = {
330
321
  },
331
322
  },
332
323
  screens: {
333
- small: '400px',
334
- medium: '900px',
335
- large: '1200px',
324
+ xs: '340px',
325
+ sm: '420px',
326
+ 'sm-gutters': '468px',
327
+ md: '740px',
328
+ 'md-gutters': '788px',
329
+ lg: '960px',
330
+ 'lg-gutters': '1008px',
331
+ xl: '1200px',
332
+ 'xl-gutters': '1248px',
336
333
  },
337
334
  extend: {
338
335
  height: {
339
336
  15: '3.75rem',
340
337
  },
338
+ width: {
339
+ 15: '3.75rem',
340
+ },
341
341
  opacity: {
342
342
  inherit: 'inherit',
343
343
  },
344
344
  scale: {
345
- 97.5: '.975',
345
+ 98: '.98',
346
+ },
347
+ gridTemplateColumns: {
348
+ 'auto-min-1': 'auto',
349
+ 'auto-min-2': 'minmax(min-content, auto) min-content',
350
+ 'auto-min-3': 'minmax(min-content, auto) repeat(2, min-content)',
351
+ 'auto-min-4': 'minmax(min-content, auto) repeat(3, min-content)',
352
+ 'auto-min-5': 'minmax(min-content, auto) repeat(4, min-content)',
353
+ 'auto-min-6': 'minmax(min-content, auto) repeat(5, min-content)',
354
+ 'auto-min-7': 'minmax(min-content, auto) repeat(6, min-content)',
355
+ 'auto-min-8': 'minmax(min-content, auto) repeat(7, min-content)',
346
356
  },
357
+ transitionDuration: {
358
+ default: '150ms',
359
+ },
360
+ typography: () => ({
361
+ DEFAULT: {
362
+ css: {
363
+ sm: null,
364
+ base: null,
365
+ lg: null,
366
+ xl: null,
367
+ '2xl': null,
368
+ invert: null,
369
+ },
370
+ },
371
+ }),
347
372
  },
348
373
  },
349
374
  corePlugins: {
350
375
  fontFamily: false,
351
376
  },
352
377
  plugins: [
353
- plugin(({ addVariant, matchUtilities, theme }) => {
354
- addVariant('hocus', ['&:hover', '&:focus']);
378
+ plugin(({ addComponents, addVariant, matchUtilities, theme }) => {
379
+ addVariant('hocus', ['&:hover', '&:focus-visible']);
355
380
  matchUtilities({ heading: (value) => value }, { values: theme('heading') });
381
+ addComponents({
382
+ '.icon-2xs': {
383
+ height: theme('height.3'),
384
+ width: theme('width.3'),
385
+ },
386
+ '.icon-xs': {
387
+ // note(simek): figure out how to access `h-3.5` using path
388
+ height: '0.875rem',
389
+ width: '0.875rem',
390
+ },
391
+ '.icon-sm': {
392
+ height: theme('height.4'),
393
+ width: theme('width.4'),
394
+ },
395
+ '.icon-md': {
396
+ height: theme('height.5'),
397
+ width: theme('width.5'),
398
+ },
399
+ '.icon-lg': {
400
+ height: theme('height.6'),
401
+ width: theme('width.6'),
402
+ },
403
+ '.icon-xl': {
404
+ height: theme('height.8'),
405
+ width: theme('width.8'),
406
+ },
407
+ '.icon-2xl': {
408
+ height: theme('height.10'),
409
+ width: theme('width.10'),
410
+ },
411
+ });
356
412
  }),
413
+ require('@tailwindcss/typography'),
357
414
  ],
358
415
  };
359
416
 
package/dist/global.css DELETED
@@ -1,13 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- @layer components {
6
- .icon-md { @apply h-5 w-5; }
7
- .icon-2xs { @apply h-3 w-3; }
8
- .icon-xs { @apply h-3.5 w-3.5; }
9
- .icon-sm { @apply h-4 w-4; }
10
- .icon-lg { @apply h-6 w-6; }
11
- .icon-xl { @apply h-8 w-8; }
12
- .icon-2xl { @apply h-10 w-10; }
13
- }
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- export type IconProps = {
3
- size?: number | string;
4
- title?: string;
5
- color?: string;
6
- /**
7
- * A suffix added to the end of the unique generated ID for the icon. This is useful if you have multiple of the same icon on the page and need to pass accessibility guidelines.
8
- */
9
- titleId?: string;
10
- } & React.SVGProps<SVGSVGElement>;
package/dist/tailwind.js DELETED
@@ -1,360 +0,0 @@
1
- const plugin = require('tailwindcss/plugin');
2
-
3
- const palette = {
4
- 'palette-white': 'var(--expo-color-white)',
5
- 'palette-black': 'var(--expo-color-black)',
6
- 'palette-green1': 'var(--green1)',
7
- 'palette-green2': 'var(--green2)',
8
- 'palette-green3': 'var(--green3)',
9
- 'palette-green4': 'var(--green4)',
10
- 'palette-green5': 'var(--green5)',
11
- 'palette-green6': 'var(--green6)',
12
- 'palette-green7': 'var(--green7)',
13
- 'palette-green8': 'var(--green8)',
14
- 'palette-green9': 'var(--green9)',
15
- 'palette-green10': 'var(--green10)',
16
- 'palette-green11': 'var(--green11)',
17
- 'palette-green12': 'var(--green12)',
18
- 'palette-purple1': 'var(--purple1)',
19
- 'palette-purple2': 'var(--purple2)',
20
- 'palette-purple3': 'var(--purple3)',
21
- 'palette-purple4': 'var(--purple4)',
22
- 'palette-purple5': 'var(--purple5)',
23
- 'palette-purple6': 'var(--purple6)',
24
- 'palette-purple7': 'var(--purple7)',
25
- 'palette-purple8': 'var(--purple8)',
26
- 'palette-purple9': 'var(--purple9)',
27
- 'palette-purple10': 'var(--purple10)',
28
- 'palette-purple11': 'var(--purple11)',
29
- 'palette-purple12': 'var(--purple12)',
30
- 'palette-pink1': 'var(--pink1)',
31
- 'palette-pink2': 'var(--pink2)',
32
- 'palette-pink3': 'var(--pink3)',
33
- 'palette-pink4': 'var(--pink4)',
34
- 'palette-pink5': 'var(--pink5)',
35
- 'palette-pink6': 'var(--pink6)',
36
- 'palette-pink7': 'var(--pink7)',
37
- 'palette-pink8': 'var(--pink8)',
38
- 'palette-pink9': 'var(--pink9)',
39
- 'palette-pink10': 'var(--pink10)',
40
- 'palette-pink11': 'var(--pink11)',
41
- 'palette-pink12': 'var(--pink12)',
42
- 'palette-orange1': 'var(--orange1)',
43
- 'palette-orange2': 'var(--orange2)',
44
- 'palette-orange3': 'var(--orange3)',
45
- 'palette-orange4': 'var(--orange4)',
46
- 'palette-orange5': 'var(--orange5)',
47
- 'palette-orange6': 'var(--orange6)',
48
- 'palette-orange7': 'var(--orange7)',
49
- 'palette-orange8': 'var(--orange8)',
50
- 'palette-orange9': 'var(--orange9)',
51
- 'palette-orange10': 'var(--orange10)',
52
- 'palette-orange11': 'var(--orange11)',
53
- 'palette-orange12': 'var(--orange12)',
54
- 'palette-yellow1': 'var(--yellow1)',
55
- 'palette-yellow2': 'var(--yellow2)',
56
- 'palette-yellow3': 'var(--yellow3)',
57
- 'palette-yellow4': 'var(--yellow4)',
58
- 'palette-yellow5': 'var(--yellow5)',
59
- 'palette-yellow6': 'var(--yellow6)',
60
- 'palette-yellow7': 'var(--yellow7)',
61
- 'palette-yellow8': 'var(--yellow8)',
62
- 'palette-yellow9': 'var(--yellow9)',
63
- 'palette-yellow10': 'var(--yellow10)',
64
- 'palette-yellow11': 'var(--yellow11)',
65
- 'palette-yellow12': 'var(--yellow12)',
66
- 'palette-blue1': 'var(--blue1)',
67
- 'palette-blue2': 'var(--blue2)',
68
- 'palette-blue3': 'var(--blue3)',
69
- 'palette-blue4': 'var(--blue4)',
70
- 'palette-blue5': 'var(--blue5)',
71
- 'palette-blue6': 'var(--blue6)',
72
- 'palette-blue7': 'var(--blue7)',
73
- 'palette-blue8': 'var(--blue8)',
74
- 'palette-blue9': 'var(--blue9)',
75
- 'palette-blue10': 'var(--blue10)',
76
- 'palette-blue11': 'var(--blue11)',
77
- 'palette-blue12': 'var(--blue12)',
78
- 'palette-red1': 'var(--red1)',
79
- 'palette-red2': 'var(--red2)',
80
- 'palette-red3': 'var(--red3)',
81
- 'palette-red4': 'var(--red4)',
82
- 'palette-red5': 'var(--red5)',
83
- 'palette-red6': 'var(--red6)',
84
- 'palette-red7': 'var(--red7)',
85
- 'palette-red8': 'var(--red8)',
86
- 'palette-red9': 'var(--red9)',
87
- 'palette-red10': 'var(--red10)',
88
- 'palette-red11': 'var(--red11)',
89
- 'palette-red12': 'var(--red12)',
90
- 'palette-gray1': 'var(--slate1)',
91
- 'palette-gray2': 'var(--slate2)',
92
- 'palette-gray3': 'var(--slate3)',
93
- 'palette-gray4': 'var(--slate4)',
94
- 'palette-gray5': 'var(--slate5)',
95
- 'palette-gray6': 'var(--slate6)',
96
- 'palette-gray7': 'var(--slate7)',
97
- 'palette-gray8': 'var(--slate8)',
98
- 'palette-gray9': 'var(--slate9)',
99
- 'palette-gray10': 'var(--slate10)',
100
- 'palette-gray11': 'var(--slate11)',
101
- 'palette-gray12': 'var(--slate12)',
102
- };
103
-
104
- const expoTailwindConfig = {
105
- theme: {
106
- borderRadius: {
107
- none: 0,
108
- xs: 2,
109
- sm: 4,
110
- md: 6,
111
- lg: 10,
112
- xl: 16,
113
- '2xl': 20,
114
- '3xl': 24,
115
- full: 9999,
116
- },
117
- backgroundColor: {
118
- default: 'var(--expo-theme-background-default)',
119
- screen: 'var(--expo-theme-background-screen)',
120
- subtle: 'var(--expo-theme-background-subtle)',
121
- element: 'var(--expo-theme-background-element)',
122
- hover: 'var(--expo-theme-background-hover)',
123
- selected: 'var(--expo-theme-background-selected)',
124
- overlay: 'var(--expo-theme-background-overlay)',
125
- success: 'var(--expo-theme-background-success)',
126
- warning: 'var(--expo-theme-background-warning)',
127
- danger: 'var(--expo-theme-background-danger)',
128
- info: 'var(--expo-theme-background-info)',
129
-
130
- 'button-primary': 'var(--expo-theme-button-primary-background)',
131
- 'button-primary-hover': 'var(--expo-theme-button-primary-hover)',
132
- 'button-primary-disabled': 'var(--expo-theme-button-primary-disabled-background)',
133
- 'button-primary-destructive': 'var(--expo-theme-button-primary-destructive-background)',
134
- 'button-primary-destructive-hover': 'var(--expo-theme-button-primary-destructive-hover)',
135
- 'button-primary-destructive-disabled': 'var(--expo-theme-button-primary-destructive-disabled-background)',
136
-
137
- 'button-secondary': 'var(--expo-theme-button-secondary-background)',
138
- 'button-secondary-hover': 'var(--expo-theme-button-secondary-hover)',
139
- 'button-secondary-disabled': 'var(--expo-theme-button-secondary-disabled-background)',
140
- 'button-secondary-destructive': 'var(--expo-theme-button-secondary-destructive-background)',
141
- 'button-secondary-destructive-hover': 'var(--expo-theme-button-secondary-destructive-hover)',
142
- 'button-secondary-destructive-disabled': 'var(--expo-theme-button-secondary-destructive-disabled-background)',
143
-
144
- 'button-tertiary': 'var(--expo-theme-button-tertiary-background)',
145
- 'button-tertiary-hover': 'var(--expo-theme-button-tertiary-hover)',
146
- 'button-tertiary-disabled': 'var(--expo-theme-button-tertiary-disabled-background)',
147
-
148
- 'button-quaternary': 'var(--expo-theme-button-quaternary-background)',
149
- 'button-quaternary-hover': 'var(--expo-theme-button-quaternary-hover)',
150
- 'button-quaternary-disabled': 'var(--expo-theme-button-quaternary-disabled-background)',
151
-
152
- ...palette,
153
- },
154
- backgroundImage: {
155
- 'project-blue': 'var(--expo-theme-project-blue)',
156
- 'project-green': 'var(--expo-theme-project-green)',
157
- 'project-yellow': 'var(--expo-theme-project-yellow)',
158
- 'project-orange': 'var(--expo-theme-project-orange)',
159
- 'project-red': 'var(--expo-theme-project-red)',
160
- 'project-pink': 'var(--expo-theme-project-pink)',
161
- 'project-purple': 'var(--expo-theme-project-purple)',
162
- },
163
- borderColor: {
164
- default: 'var(--expo-theme-border-default)',
165
- secondary: 'var(--expo-theme-border-secondary)',
166
- success: 'var(--expo-theme-border-success)',
167
- warning: 'var(--expo-theme-border-warning)',
168
- danger: 'var(--expo-theme-border-danger)',
169
- info: 'var(--expo-theme-border-info)',
170
- transparent: 'transparent',
171
-
172
- 'button-primary': 'var(--expo-theme-button-primary-border)',
173
- 'button-primary-disabled': 'var(--expo-theme-button-primary-disabled-border)',
174
- 'button-primary-destructive': 'var(--expo-theme-button-primary-destructive-border)',
175
- 'button-primary-destructive-disabled': 'var(--expo-theme-button-primary-destructive-disabled-border)',
176
-
177
- 'button-secondary': 'var(--expo-theme-button-secondary-border)',
178
- 'button-secondary-disabled': 'var(--expo-theme-button-secondary-disabled-border)',
179
- 'button-secondary-destructive': 'var(--expo-theme-button-secondary-destructive-border)',
180
- 'button-secondary-destructive-disabled': 'var(--expo-theme-button-secondary-destructive-disabled-border)',
181
-
182
- 'button-tertiary': 'var(--expo-theme-button-tertiary-border)',
183
- 'button-tertiary-disabled': 'var(--expo-theme-button-tertiary-disabled-border)',
184
-
185
- 'button-quaternary': 'var(--expo-theme-button-quaternary-border)',
186
- 'button-quaternary-disabled': 'var(--expo-theme-button-quaternary-disabled-border)',
187
-
188
- ...palette,
189
- },
190
- colors: {
191
- transparent: 'transparent',
192
- current: 'currentColor',
193
- default: 'var(--expo-theme-text-default)',
194
- secondary: 'var(--expo-theme-text-secondary)',
195
- tertiary: 'var(--expo-theme-text-tertiary)',
196
- quaternary: 'var(--expo-theme-text-quaternary)',
197
- link: 'var(--expo-theme-text-link)',
198
- success: 'var(--expo-theme-text-success)',
199
- warning: 'var(--expo-theme-text-warning)',
200
- danger: 'var(--expo-theme-text-danger)',
201
- info: 'var(--expo-theme-text-info)',
202
-
203
- 'icon-default': 'var(--expo-theme-icon-default)',
204
- 'icon-secondary': 'var(--expo-theme-icon-secondary)',
205
- 'icon-tertiary': 'var(--expo-theme-icon-tertiary)',
206
- 'icon-quaternary': 'var(--expo-theme-icon-quaternary)',
207
- 'icon-success': 'var(--expo-theme-icon-success)',
208
- 'icon-warning': 'var(--expo-theme-icon-warning)',
209
- 'icon-danger': 'var(--expo-theme-icon-danger)',
210
- 'icon-info': 'var(--expo-theme-icon-info)',
211
-
212
- 'button-primary': 'var(--expo-theme-button-primary-text)',
213
- 'button-primary-icon': 'var(--expo-theme-button-primary-icon)',
214
- 'button-primary-disabled': 'var(--expo-theme-button-primary-disabled-text)',
215
- 'button-primary-destructive': 'var(--expo-theme-button-primary-destructive-text)',
216
- 'button-primary-destructive-icon': 'var(--expo-theme-button-primary-destructive-icon)',
217
- 'button-primary-destructive-disabled': 'var(--expo-theme-button-primary-destructive-disabled-text)',
218
-
219
- 'button-secondary': 'var(--expo-theme-button-secondary-text)',
220
- 'button-secondary-icon': 'var(--expo-theme-button-secondary-icon)',
221
- 'button-secondary-disabled': 'var(--expo-theme-button-secondary-disabled-text)',
222
- 'button-secondary-destructive': 'var(--expo-theme-button-secondary-destructive-text)',
223
- 'button-secondary-destructive-icon': 'var(--expo-theme-button-secondary-destructive-icon)',
224
- 'button-secondary-destructive-disabled': 'var(--expo-theme-button-secondary-destructive-disabled-text)',
225
-
226
- 'button-tertiary': 'var(--expo-theme-button-tertiary-text)',
227
- 'button-tertiary-icon': 'var(--expo-theme-button-tertiary-icon)',
228
- 'button-tertiary-disabled': 'var(--expo-theme-button-tertiary-disabled-text)',
229
-
230
- 'button-quaternary': 'var(--expo-theme-button-quaternary-text)',
231
- 'button-quaternary-icon': 'var(--expo-theme-button-quaternary-icon)',
232
- 'button-quaternary-disabled': 'var(--expo-theme-button-quaternary-disabled-text)',
233
-
234
- ...palette,
235
- },
236
- boxShadow: {
237
- none: 'var(--expo-theme-shadows-none)',
238
- xs: 'var(--expo-theme-shadows-xs)',
239
- sm: 'var(--expo-theme-shadows-sm)',
240
- md: 'var(--expo-theme-shadows-md)',
241
- lg: 'var(--expo-theme-shadows-lg)',
242
- xl: 'var(--expo-theme-shadows-xl)',
243
- },
244
- fontSize: {
245
- lg: [
246
- '18px',
247
- {
248
- lineHeight: 1.5,
249
- },
250
- ],
251
- base: [
252
- '16px',
253
- {
254
- lineHeight: 1.625,
255
- letterSpacing: '-0.011rem',
256
- },
257
- ],
258
- sm: [
259
- '15px',
260
- {
261
- lineHeight: 1.6,
262
- letterSpacing: '-0.009rem',
263
- },
264
- ],
265
- xs: [
266
- '14px',
267
- {
268
- lineHeight: 1.57,
269
- letterSpacing: '-0.006rem',
270
- },
271
- ],
272
- '2xs': [
273
- '13px',
274
- {
275
- lineHeight: 1.61,
276
- letterSpacing: '-0.003rem',
277
- },
278
- ],
279
- '3xs': [
280
- '12px',
281
- {
282
- lineHeight: 1.58,
283
- },
284
- ],
285
- },
286
- heading: {
287
- '5xl': {
288
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 3.815)',
289
- lineHeight: 1.2,
290
- letterSpacing: '-0.022rem',
291
- },
292
- '4xl': {
293
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 3.052)',
294
- lineHeight: 1.2,
295
- letterSpacing: '-0.022rem',
296
- },
297
- '3xl': {
298
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 2.441)',
299
- lineHeight: 1.3,
300
- letterSpacing: '-0.022rem',
301
- },
302
- '2xl': {
303
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 1.953)',
304
- lineHeight: 1.4,
305
- letterSpacing: '-0.021rem',
306
- },
307
- xl: {
308
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 1.563)',
309
- lineHeight: 1.5,
310
- letterSpacing: '-0.017rem',
311
- },
312
- lg: {
313
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 1.25)',
314
- lineHeight: 1.5,
315
- letterSpacing: '-0.017rem',
316
- },
317
- base: {
318
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 1)',
319
- lineHeight: 1.625,
320
- letterSpacing: '-0.011rem',
321
- },
322
- sm: {
323
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 0.8)',
324
- lineHeight: 1.615,
325
- letterSpacing: '-0.003rem',
326
- },
327
- xs: {
328
- fontSize: 'calc(var(--expo-theme-heading-base-font-size) * 0.64)',
329
- lineHeight: 1.58,
330
- },
331
- },
332
- screens: {
333
- small: '400px',
334
- medium: '900px',
335
- large: '1200px',
336
- },
337
- extend: {
338
- height: {
339
- 15: '3.75rem',
340
- },
341
- opacity: {
342
- inherit: 'inherit',
343
- },
344
- scale: {
345
- 97.5: '.975',
346
- },
347
- },
348
- },
349
- corePlugins: {
350
- fontFamily: false,
351
- },
352
- plugins: [
353
- plugin(({ addVariant, matchUtilities, theme }) => {
354
- addVariant('hocus', ['&:hover', '&:focus']);
355
- matchUtilities({ heading: (value) => value }, { values: theme('heading') });
356
- }),
357
- ],
358
- };
359
-
360
- module.exports = expoTailwindConfig;