@jobber/components-native 0.76.1-JOB-116234-63c4467.27 → 0.76.1-JOB-116234-6cadae0.33

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 (42) hide show
  1. package/dist/package.json +2 -2
  2. package/dist/src/BottomSheet/BottomSheet.style.js +1 -2
  3. package/dist/src/Button/Button.style.js +1 -1
  4. package/dist/src/Checkbox/Checkbox.style.js +1 -2
  5. package/dist/src/Chip/Chip.style.js +1 -2
  6. package/dist/src/ContentOverlay/ContentOverlay.style.js +2 -3
  7. package/dist/src/InputFieldWrapper/CommonInputStyles.style.js +42 -42
  8. package/dist/src/InputFieldWrapper/InputFieldWrapper.style.js +8 -8
  9. package/dist/src/InputFieldWrapper/index.js +1 -1
  10. package/dist/src/InputPressable/InputPressable.style.js +6 -6
  11. package/dist/src/InputText/InputText.style.js +6 -6
  12. package/dist/src/Menu/components/Overlay/Overlay.style.js +2 -11
  13. package/dist/src/Select/Select.style.js +17 -14
  14. package/dist/src/Typography/Typography.js +2 -2
  15. package/dist/src/Typography/Typography.style.js +4 -4
  16. package/dist/src/Typography/index.js +1 -1
  17. package/dist/tsconfig.tsbuildinfo +1 -1
  18. package/dist/types/src/Button/Button.style.d.ts +1 -0
  19. package/dist/types/src/InputFieldWrapper/CommonInputStyles.style.d.ts +2 -1
  20. package/dist/types/src/InputFieldWrapper/index.d.ts +1 -1
  21. package/dist/types/src/Menu/components/Overlay/Overlay.style.d.ts +5 -5
  22. package/dist/types/src/Select/Select.style.d.ts +1 -8
  23. package/dist/types/src/Typography/Typography.style.d.ts +2 -2
  24. package/dist/types/src/Typography/index.d.ts +1 -1
  25. package/package.json +2 -2
  26. package/src/AtlantisThemeContext/buildThemedStyles.test.tsx +0 -26
  27. package/src/BottomSheet/BottomSheet.style.ts +2 -2
  28. package/src/Button/Button.style.ts +1 -1
  29. package/src/Checkbox/Checkbox.style.ts +2 -4
  30. package/src/Chip/Chip.style.ts +2 -3
  31. package/src/ContentOverlay/ContentOverlay.style.ts +3 -4
  32. package/src/InputFieldWrapper/CommonInputStyles.style.ts +46 -47
  33. package/src/InputFieldWrapper/InputFieldWrapper.style.ts +9 -8
  34. package/src/InputFieldWrapper/components/Prefix/Prefix.test.tsx +0 -2
  35. package/src/InputFieldWrapper/index.ts +4 -1
  36. package/src/InputPressable/InputPressable.style.ts +6 -6
  37. package/src/InputText/InputText.style.ts +6 -6
  38. package/src/Menu/components/Overlay/Overlay.style.ts +2 -6
  39. package/src/Select/Select.style.ts +17 -14
  40. package/src/Typography/Typography.style.ts +4 -4
  41. package/src/Typography/Typography.tsx +3 -3
  42. package/src/Typography/index.ts +1 -1
@@ -24,6 +24,7 @@ export declare const useStyles: () => {
24
24
  };
25
25
  base: {
26
26
  minHeight: number;
27
+ paddingHorizontal: number;
27
28
  };
28
29
  small: {
29
30
  minHeight: number;
@@ -1,9 +1,10 @@
1
1
  import { TextStyle, ViewStyle } from "react-native";
2
2
  import { AtlantisThemeContextValue } from "../AtlantisThemeContext";
3
3
  import { tokens as staticTokens } from "../utils/design";
4
- export declare const createCommonInputTokens: (tokens: AtlantisThemeContextValue["tokens"] | typeof staticTokens, typographyStyles: Record<string, TextStyle>) => Record<string, ViewStyle | TextStyle>;
4
+ export declare const createCommonInputTokens: (tokens: AtlantisThemeContextValue["tokens"] | typeof staticTokens) => Record<string, ViewStyle | TextStyle>;
5
5
  /**
6
6
  * @deprecated Use useCommonInputStyles instead
7
7
  */
8
8
  export declare const commonInputStyles: Record<string, ViewStyle | TextStyle>;
9
+ export declare const getCommonInputStyles: (tokens: AtlantisThemeContextValue["tokens"]) => Record<string, ViewStyle | TextStyle>;
9
10
  export declare const useCommonInputStyles: () => Record<string, ViewStyle | TextStyle>;
@@ -1,3 +1,3 @@
1
- export { useCommonInputStyles } from "./CommonInputStyles.style";
1
+ export { getCommonInputStyles, useCommonInputStyles, } from "./CommonInputStyles.style";
2
2
  export { InputFieldWrapper } from "./InputFieldWrapper";
3
3
  export type { InputFieldWrapperProps } from "./InputFieldWrapper";
@@ -1,12 +1,12 @@
1
1
  export declare const useStyles: () => {
2
2
  overlay: {
3
- position: "absolute";
4
- top: number;
5
- left: number;
6
- right: number;
7
- bottom: number;
8
3
  backgroundColor: string;
9
4
  opacity: number;
10
5
  height: number;
6
+ position: "absolute";
7
+ left: 0;
8
+ right: 0;
9
+ top: 0;
10
+ bottom: 0;
11
11
  };
12
12
  };
@@ -1,13 +1,6 @@
1
1
  export declare const useStyles: () => {
2
2
  container: import("react-native").ViewStyle;
3
- input: {
4
- flexDirection: "row";
5
- flexGrow: number;
6
- paddingTop: number;
7
- minHeight: number;
8
- minWidth: "100%";
9
- paddingRight: number;
10
- };
3
+ input: import("react-native").ViewStyle;
11
4
  value: {
12
5
  flexGrow: number;
13
6
  flexShrink: number;
@@ -2,9 +2,9 @@ import { TextStyle } from "react-native";
2
2
  import { tokens as staticTokens } from "../utils/design";
3
3
  import { AtlantisThemeContextValue } from "../AtlantisThemeContext";
4
4
  /**
5
- * Reusable typography tokens to ensure consistency for any client facing texts.
5
+ * Reusable typography styles to ensure consistency for any client facing texts.
6
6
  */
7
- export declare const createTypographyTokens: (tokens: AtlantisThemeContextValue["tokens"] | typeof staticTokens) => {
7
+ export declare const getTypographyStyles: (tokens: AtlantisThemeContextValue["tokens"] | typeof staticTokens) => {
8
8
  [index: string]: TextStyle;
9
9
  };
10
10
  /**
@@ -1,5 +1,5 @@
1
1
  export { Typography } from "./Typography";
2
2
  export type { FontFamily, FontStyle, FontWeight, BaseWeight, DisplayWeight, BaseStyle, DisplayStyle, TextColor, TextTransform, TextSize, TextAlign, LineHeight, LetterSpacing, TextAccessibilityRole, TextVariation, TypographyProps, TruncateLength, } from "./Typography";
3
- export { useTypographyStyles } from "./Typography.style";
3
+ export { getTypographyStyles, useTypographyStyles } from "./Typography.style";
4
4
  export { typographyStyles } from "./Typography.style";
5
5
  export { TypographyGestureDetector } from "./TypographyGestureDetector";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.76.1-JOB-116234-63c4467.27+63c44675",
3
+ "version": "0.76.1-JOB-116234-6cadae0.33+6cadae01",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -80,5 +80,5 @@
80
80
  "react-native-safe-area-context": "^4.5.2",
81
81
  "react-native-svg": ">=12.0.0"
82
82
  },
83
- "gitHead": "63c446753585b99a48ea4782613671ca6ff3c8b1"
83
+ "gitHead": "6cadae0138cf0633adc31d349b1f03dc50776679"
84
84
  }
@@ -47,32 +47,6 @@ describe("buildThemedStyles", () => {
47
47
  expect(result.current).toBe(initialResult);
48
48
  });
49
49
 
50
- it("creates styles with dependent hooks", () => {
51
- const useDependentStyles = () => ({
52
- text: { color: "red" },
53
- });
54
-
55
- const useTestStyles = () => {
56
- const dependentStyles = useDependentStyles();
57
-
58
- return buildThemedStyles(tokens => ({
59
- container: {
60
- ...dependentStyles.text,
61
- padding: tokens["space-base"],
62
- },
63
- }))();
64
- };
65
-
66
- const { result } = renderHook(() => useTestStyles(), { wrapper });
67
-
68
- expect(result.current).toEqual({
69
- container: {
70
- color: "red",
71
- padding: expect.any(Number),
72
- },
73
- });
74
- });
75
-
76
50
  it("handles empty style objects", () => {
77
51
  const useTestStyles = buildThemedStyles(() => ({}));
78
52
 
@@ -1,11 +1,11 @@
1
1
  import { Dimensions, StyleSheet } from "react-native";
2
- import { tokens as staticTokens } from "../utils/design";
3
2
  import { buildThemedStyles } from "../AtlantisThemeContext";
4
3
 
5
4
  const { height } = Dimensions.get("window");
6
- const modalBorderRadius = staticTokens["radius-larger"];
7
5
 
8
6
  export const useStyles = buildThemedStyles(tokens => {
7
+ const modalBorderRadius = tokens["radius-larger"];
8
+
9
9
  return {
10
10
  overlayModalize: {
11
11
  backgroundColor: "transparent",
@@ -35,7 +35,7 @@ export const useStyles = buildThemedStyles(tokens => {
35
35
 
36
36
  base: {
37
37
  minHeight: baseButtonHeight,
38
- // paddingHorizontal: tokens["space-base"],
38
+ paddingHorizontal: tokens["space-base"],
39
39
  },
40
40
 
41
41
  small: {
@@ -1,10 +1,8 @@
1
- import { tokens as staticTokens } from "../utils/design";
2
1
  import { buildThemedStyles } from "../AtlantisThemeContext";
3
2
 
4
- const checkboxDimensions =
5
- staticTokens["space-large"] + staticTokens["space-smaller"];
6
-
7
3
  export const useStyles = buildThemedStyles(tokens => {
4
+ const checkboxDimensions = tokens["space-large"] + tokens["space-smaller"];
5
+
8
6
  return {
9
7
  container: {
10
8
  width: "100%",
@@ -1,9 +1,8 @@
1
- import { tokens as staticTokens } from "../utils/design";
2
1
  import { buildThemedStyles } from "../AtlantisThemeContext";
3
2
 
4
- const chipHeight = staticTokens["space-larger"] + staticTokens["space-small"];
5
-
6
3
  export const useStyles = buildThemedStyles(tokens => {
4
+ const chipHeight = tokens["space-larger"] + tokens["space-small"];
5
+
7
6
  return {
8
7
  container: {
9
8
  alignItems: "center",
@@ -1,10 +1,9 @@
1
- import { tokens as staticTokens } from "../utils/design";
2
1
  import { buildThemedStyles } from "../AtlantisThemeContext";
3
2
 
4
- const modalBorderRadius = staticTokens["radius-larger"];
5
- const titleOffsetFromHandle = staticTokens["space-base"];
6
-
7
3
  export const useStyles = buildThemedStyles(tokens => {
4
+ const modalBorderRadius = tokens["radius-larger"];
5
+ const titleOffsetFromHandle = tokens["space-base"];
6
+
8
7
  return {
9
8
  handle: {
10
9
  width: tokens["space-largest"],
@@ -3,65 +3,64 @@ import {
3
3
  AtlantisThemeContextValue,
4
4
  buildThemedStyles,
5
5
  } from "../AtlantisThemeContext";
6
- import {
7
- // eslint-disable-next-line import/no-deprecated
8
- typographyStyles as staticTypographyStyles,
9
- useTypographyStyles,
10
- } from "../Typography";
6
+ import { getTypographyStyles } from "../Typography";
11
7
  import { tokens as staticTokens } from "../utils/design";
12
8
 
13
9
  export const createCommonInputTokens = (
14
10
  tokens: AtlantisThemeContextValue["tokens"] | typeof staticTokens,
15
- typographyStyles: Record<string, TextStyle>,
16
- ): Record<string, ViewStyle | TextStyle> => ({
17
- input: {
18
- width: "100%" as const,
19
- flexShrink: 1,
20
- flexGrow: 1,
21
- color: tokens["color-text"],
22
- fontFamily: typographyStyles.baseRegularRegular.fontFamily,
23
- fontSize: typographyStyles.defaultSize.fontSize,
24
- letterSpacing: typographyStyles.baseLetterSpacing.letterSpacing,
25
- minHeight: tokens["space-largest"] + tokens["space-small"],
26
- padding: 0,
27
- },
11
+ ): Record<string, ViewStyle | TextStyle> => {
12
+ const typographyStyles = getTypographyStyles(tokens);
28
13
 
29
- inputEmpty: {
30
- paddingTop: 0,
31
- },
14
+ return {
15
+ input: {
16
+ width: "100%",
17
+ flexShrink: 1,
18
+ flexGrow: 1,
19
+ color: tokens["color-text"],
20
+ fontFamily: typographyStyles.baseRegularRegular.fontFamily,
21
+ fontSize: typographyStyles.defaultSize.fontSize,
22
+ letterSpacing: typographyStyles.baseLetterSpacing.letterSpacing,
23
+ minHeight: tokens["space-largest"] + tokens["space-small"],
24
+ padding: 0,
25
+ },
32
26
 
33
- inputDisabled: {
34
- color: typographyStyles.disabled.color,
35
- },
27
+ inputEmpty: {
28
+ paddingTop: 0,
29
+ },
36
30
 
37
- container: {
38
- paddingLeft: tokens["space-base"],
39
- marginVertical: tokens["space-smaller"],
40
- backgroundColor: tokens["color-surface"],
41
- minHeight: tokens["space-largest"] + tokens["space-small"],
42
- flexDirection: "row",
43
- justifyContent: "space-between",
44
- width: "100%",
45
- borderColor: tokens["color-border"],
46
- borderStyle: "solid",
47
- borderWidth: tokens["border-base"],
48
- borderRadius: tokens["radius-base"],
49
- },
50
- });
31
+ inputDisabled: {
32
+ color: typographyStyles.disabled.color,
33
+ },
34
+
35
+ container: {
36
+ paddingLeft: tokens["space-base"],
37
+ marginVertical: tokens["space-smaller"],
38
+ backgroundColor: tokens["color-surface"],
39
+ minHeight: tokens["space-largest"] + tokens["space-small"],
40
+ flexDirection: "row",
41
+ justifyContent: "space-between",
42
+ width: "100%",
43
+ borderColor: tokens["color-border"],
44
+ borderStyle: "solid",
45
+ borderWidth: tokens["border-base"],
46
+ borderRadius: tokens["radius-base"],
47
+ },
48
+ };
49
+ };
51
50
 
52
51
  /**
53
52
  * @deprecated Use useCommonInputStyles instead
54
53
  */
55
54
  export const commonInputStyles = StyleSheet.create(
56
- // eslint-disable-next-line import/no-deprecated
57
- createCommonInputTokens(staticTokens, staticTypographyStyles),
55
+ createCommonInputTokens(staticTokens),
58
56
  );
59
57
 
60
- export const useCommonInputStyles = () => {
61
- const typographyStyles = useTypographyStyles();
62
- const themedStyles = buildThemedStyles(tokens =>
63
- createCommonInputTokens(tokens, typographyStyles),
64
- )();
65
-
66
- return themedStyles;
58
+ export const getCommonInputStyles = (
59
+ tokens: AtlantisThemeContextValue["tokens"],
60
+ ) => {
61
+ return createCommonInputTokens(tokens);
67
62
  };
63
+
64
+ export const useCommonInputStyles = buildThemedStyles(tokens => {
65
+ return getCommonInputStyles(tokens);
66
+ });
@@ -1,19 +1,20 @@
1
1
  import { StyleSheet } from "react-native";
2
- import { useCommonInputStyles } from "./CommonInputStyles.style";
2
+ import { getCommonInputStyles } from "./CommonInputStyles.style";
3
3
  import { buildThemedStyles } from "../AtlantisThemeContext";
4
- import { useTypographyStyles } from "../Typography";
4
+ import { getTypographyStyles } from "../Typography";
5
5
 
6
- export const useStyles = () => {
7
- const commonInputStyles = useCommonInputStyles();
8
- const typographyStyles = useTypographyStyles();
6
+ export const useStyles = buildThemedStyles(tokens => {
7
+ const commonInputStyles = getCommonInputStyles(tokens);
8
+ const typographyStyles = getTypographyStyles(tokens);
9
9
 
10
- return buildThemedStyles(tokens => ({
10
+ return {
11
11
  container: StyleSheet.flatten([
12
12
  commonInputStyles.container,
13
13
  {
14
14
  flexDirection: "column",
15
15
  },
16
16
  ]),
17
+
17
18
  field: {
18
19
  flexDirection: "row",
19
20
  alignItems: "center",
@@ -141,5 +142,5 @@ export const useStyles = () => {
141
142
  paddingTop: tokens["space-base"] - tokens["space-smaller"],
142
143
  bottom: tokens["space-smaller"],
143
144
  },
144
- }))();
145
- };
145
+ };
146
+ });
@@ -167,8 +167,6 @@ describe("Prefix", () => {
167
167
  disabled: true,
168
168
  });
169
169
  const prefixLabel = tree.getByText(mockLabel);
170
- // console.log(tree.debug());
171
- console.log(prefixLabel.props.style);
172
170
  const expectedStyle = [
173
171
  typographyStyles.baseRegularRegular,
174
172
  typographyStyles.disabled,
@@ -1,3 +1,6 @@
1
- export { useCommonInputStyles } from "./CommonInputStyles.style";
1
+ export {
2
+ getCommonInputStyles,
3
+ useCommonInputStyles,
4
+ } from "./CommonInputStyles.style";
2
5
  export { InputFieldWrapper } from "./InputFieldWrapper";
3
6
  export type { InputFieldWrapperProps } from "./InputFieldWrapper";
@@ -1,10 +1,10 @@
1
1
  import { buildThemedStyles } from "../AtlantisThemeContext";
2
- import { useTypographyStyles } from "../Typography";
2
+ import { getTypographyStyles } from "../Typography";
3
3
 
4
- export const useStyles = () => {
5
- const typographyStyles = useTypographyStyles();
4
+ export const useStyles = buildThemedStyles(tokens => {
5
+ const typographyStyles = getTypographyStyles(tokens);
6
6
 
7
- return buildThemedStyles(tokens => ({
7
+ return {
8
8
  pressable: {
9
9
  flex: 1,
10
10
  },
@@ -28,5 +28,5 @@ export const useStyles = () => {
28
28
  inputInvalid: {
29
29
  borderColor: tokens["color-critical"],
30
30
  },
31
- }))();
32
- };
31
+ };
32
+ });
@@ -1,10 +1,10 @@
1
1
  import { buildThemedStyles } from "../AtlantisThemeContext";
2
- import { useTypographyStyles } from "../Typography";
2
+ import { getTypographyStyles } from "../Typography";
3
3
 
4
- export const useStyles = () => {
5
- const typographyStyles = useTypographyStyles();
4
+ export const useStyles = buildThemedStyles(tokens => {
5
+ const typographyStyles = getTypographyStyles(tokens);
6
6
 
7
- return buildThemedStyles(tokens => ({
7
+ return {
8
8
  inputPaddingTop: {
9
9
  paddingTop:
10
10
  (typographyStyles.smallSize.fontSize || 0) +
@@ -27,5 +27,5 @@ export const useStyles = () => {
27
27
  paddingTop:
28
28
  (typographyStyles.defaultSize.fontSize || 0) + tokens["space-smallest"],
29
29
  },
30
- }))();
31
- };
30
+ };
31
+ });
@@ -1,4 +1,4 @@
1
- import { Dimensions } from "react-native";
1
+ import { Dimensions, StyleSheet } from "react-native";
2
2
  import { buildThemedStyles } from "../../../AtlantisThemeContext";
3
3
 
4
4
  const { height } = Dimensions.get("window");
@@ -6,11 +6,7 @@ const { height } = Dimensions.get("window");
6
6
  export const useStyles = buildThemedStyles(tokens => {
7
7
  return {
8
8
  overlay: {
9
- position: "absolute",
10
- top: 0,
11
- left: 0,
12
- right: 0,
13
- bottom: 0,
9
+ ...StyleSheet.absoluteFillObject,
14
10
  backgroundColor: tokens["color-overlay"],
15
11
  opacity: 0,
16
12
  height,
@@ -1,11 +1,11 @@
1
1
  import { StyleSheet } from "react-native";
2
- import { useCommonInputStyles } from "../InputFieldWrapper";
2
+ import { getCommonInputStyles } from "../InputFieldWrapper";
3
3
  import { buildThemedStyles } from "../AtlantisThemeContext";
4
4
 
5
- export const useStyles = () => {
6
- const commonInputStyles = useCommonInputStyles();
5
+ export const useStyles = buildThemedStyles(tokens => {
6
+ const commonInputStyles = getCommonInputStyles(tokens);
7
7
 
8
- return buildThemedStyles(tokens => ({
8
+ return {
9
9
  container: StyleSheet.flatten([
10
10
  commonInputStyles.container,
11
11
  {
@@ -17,14 +17,17 @@ export const useStyles = () => {
17
17
  },
18
18
  ]),
19
19
 
20
- input: {
21
- flexDirection: "row",
22
- flexGrow: 0,
23
- paddingTop: tokens["space-smaller"],
24
- minHeight: 0,
25
- minWidth: "100%",
26
- paddingRight: tokens["space-small"],
27
- },
20
+ input: StyleSheet.flatten([
21
+ commonInputStyles.input,
22
+ {
23
+ flexDirection: "row",
24
+ flexGrow: 0,
25
+ paddingTop: tokens["space-smaller"],
26
+ minHeight: 0,
27
+ minWidth: "100%",
28
+ paddingRight: tokens["space-small"],
29
+ },
30
+ ]),
28
31
 
29
32
  value: {
30
33
  flexGrow: 1,
@@ -54,5 +57,5 @@ export const useStyles = () => {
54
57
  paddingTop: tokens["space-smaller"],
55
58
  flexDirection: "row",
56
59
  },
57
- }))();
58
- };
60
+ };
61
+ });
@@ -82,9 +82,9 @@ const fonts = Platform.select({
82
82
  });
83
83
 
84
84
  /**
85
- * Reusable typography tokens to ensure consistency for any client facing texts.
85
+ * Reusable typography styles to ensure consistency for any client facing texts.
86
86
  */
87
- export const createTypographyTokens = (
87
+ export const getTypographyStyles = (
88
88
  tokens: AtlantisThemeContextValue["tokens"] | typeof staticTokens,
89
89
  ): { [index: string]: TextStyle } => ({
90
90
  // This follows a pattern of
@@ -623,7 +623,7 @@ export const createTypographyTokens = (
623
623
  * @deprecated Use useTypographyStyles instead
624
624
  */
625
625
  export const typographyStyles: Record<string, TextStyle> = StyleSheet.create(
626
- createTypographyTokens(staticTokens),
626
+ getTypographyStyles(staticTokens),
627
627
  );
628
628
 
629
- export const useTypographyStyles = buildThemedStyles(createTypographyTokens);
629
+ export const useTypographyStyles = buildThemedStyles(getTypographyStyles);
@@ -152,7 +152,7 @@ function InternalTypography<T extends FontFamily = "base">({
152
152
  maxFontScaleSize,
153
153
  adjustsFontSizeToFit = false,
154
154
  lineHeight,
155
- letterSpacing,
155
+ letterSpacing = "base",
156
156
  reverseTheme = false,
157
157
  hideFromScreenReader = false,
158
158
  accessibilityRole = "text",
@@ -234,7 +234,7 @@ function getFontStyle(
234
234
  fontFamily: FontFamily = "base",
235
235
  fontStyle: FontStyle = "regular",
236
236
  fontWeight: FontWeight = "regular",
237
- styles: Record<string, TextStyle>,
237
+ styles: ReturnType<typeof useTypographyStyles>,
238
238
  ) {
239
239
  const defaultBaseFontStyling = styles.baseRegularRegular;
240
240
  const defaultDisplayFontStyling = styles.displayRegularBold;
@@ -302,7 +302,7 @@ function getSizeAndHeightStyle(
302
302
  }
303
303
 
304
304
  function getLetterSpacingStyle(
305
- letterSpacing: LetterSpacing = "base",
305
+ letterSpacing: LetterSpacing,
306
306
  styles: Record<string, TextStyle>,
307
307
  ) {
308
308
  return styles[`${letterSpacing}LetterSpacing`];
@@ -18,6 +18,6 @@ export type {
18
18
  TypographyProps,
19
19
  TruncateLength,
20
20
  } from "./Typography";
21
- export { useTypographyStyles } from "./Typography.style";
21
+ export { getTypographyStyles, useTypographyStyles } from "./Typography.style";
22
22
  export { typographyStyles } from "./Typography.style";
23
23
  export { TypographyGestureDetector } from "./TypographyGestureDetector";