@jobber/components-native 0.1.2-pree.21 → 0.1.2-pree.22

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.
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { I18nManager, StyleSheet,
3
3
  // eslint-disable-next-line no-restricted-imports
4
4
  Text, } from "react-native";
5
- import { styles } from "./Typography.style";
5
+ import { typographyStyles as styles } from "./Typography.style";
6
6
  import { TypographyGestureDetector } from "./TypographyGestureDetector";
7
7
  import { tokens } from "../utils/design";
8
8
  import { capitalize } from "../utils/intl";
@@ -8,10 +8,20 @@ const largeLineHeight = tokens["typography--lineHeight-large"];
8
8
  const baseLineHeight = tokens["typography--lineHeight-base"];
9
9
  const tightLineHeight = tokens["typography--lineHeight-tight"];
10
10
  const minisculeLineHeight = tokens["typography--lineHeight-miniscule"];
11
+ /**
12
+ * `StyleSheet` for Typography.tsx.
13
+ *
14
+ * If you find yourself needing to use what's inside this object on files other
15
+ * than `<Typography />`, please import from `@jobber/components-native` instead.
16
+ *
17
+ * ```
18
+ * import { typographyStyles } from "@jobber/components-native"
19
+ * ```
20
+ */
11
21
  /**
12
22
  * Reusable typography tokens to ensure consistency for any client facing texts.
13
23
  */
14
- export const typographyStyles = {
24
+ export const typographyStyles = StyleSheet.create({
15
25
  // This follows a pattern of
16
26
  // { fontFamily }{ fontStyle }{ fontWeight }
17
27
  baseRegularRegular: {
@@ -266,15 +276,4 @@ export const typographyStyles = {
266
276
  strikeThrough: {
267
277
  textDecorationLine: "line-through",
268
278
  },
269
- };
270
- /**
271
- * `StyleSheet` for Typography.tsx.
272
- *
273
- * If you find yourself needing to use what's inside this object on files other
274
- * than `<Typography />`, please import from `@jobber/components-native` instead.
275
- *
276
- * ```
277
- * import { typographyStyles } from "@jobber/components-native"
278
- * ```
279
- */
280
- export const styles = StyleSheet.create(typographyStyles);
279
+ });