@jobber/components-native 0.71.3-JOB-104505-f142a3c.4 → 0.72.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.
- package/dist/package.json +2 -2
- package/dist/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.js +1 -1
- package/dist/src/Menu/components/MenuOption/MenuOption.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/Text/Text.d.ts +3 -1
- package/dist/types/src/Typography/Typography.d.ts +5 -3
- package/package.json +2 -2
- package/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.tsx +1 -1
- package/src/Menu/components/MenuOption/MenuOption.tsx +1 -1
- package/src/Text/Text.tsx +3 -1
- package/src/Typography/Typography.tsx +6 -1
|
@@ -47,7 +47,9 @@ interface TextProps extends Pick<TypographyProps<"base">, "maxFontScaleSize" | "
|
|
|
47
47
|
*/
|
|
48
48
|
readonly italic?: boolean;
|
|
49
49
|
/**
|
|
50
|
-
* Underline text
|
|
50
|
+
* Underline style to use for the text. The non-solid style is only supported
|
|
51
|
+
* on iOS, as per React Native's Text component's limitations.
|
|
52
|
+
* https://reactnative.dev/docs/text-style-props#textdecorationstyle-ios
|
|
51
53
|
*/
|
|
52
54
|
readonly underline?: "solid" | "dotted";
|
|
53
55
|
/**
|
|
@@ -56,7 +56,9 @@ export interface TypographyProps<T extends FontFamily> extends Pick<TextProps, "
|
|
|
56
56
|
*/
|
|
57
57
|
readonly fontStyle?: T extends "base" ? BaseStyle : DisplayStyle;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Underline style to use for the text. The non-solid style is only supported
|
|
60
|
+
* on iOS, as per React Native's Text component's limitations.
|
|
61
|
+
* https://reactnative.dev/docs/text-style-props#textdecorationstyle-ios
|
|
60
62
|
*/
|
|
61
63
|
readonly underline?: "solid" | "double" | "dotted" | "dashed" | undefined;
|
|
62
64
|
/**
|
|
@@ -93,8 +95,8 @@ export type BaseWeight = Extract<FontWeight, "regular" | "medium" | "semiBold" |
|
|
|
93
95
|
export type DisplayWeight = Extract<FontWeight, "semiBold" | "bold" | "extraBold" | "black">;
|
|
94
96
|
export type BaseStyle = FontStyle;
|
|
95
97
|
export type DisplayStyle = Extract<FontStyle, "regular">;
|
|
96
|
-
export type TextColor = TextVariation | "default" | "blue" | "blueDark" | "white" | "green" | "greenDark" | "grey" | "greyDark" | "greyBlue" | "greyBlueDark" | "lightBlue" | "lightBlueDark" | "red" | "redDark" | "yellow" | "yellowDark" | "yellowGreenDark" | "orangeDark" | "navyDark" | "limeDark" | "purpleDark" | "pinkDark" | "tealDark" | "indigoDark" | "navy" | "text" | "heading" | "textSecondary" | "textReverse" | "textReverseSecondary" | "interactive" | "destructive" | "learning" | "subtle" | "onPrimary";
|
|
97
|
-
export type TextVariation = "success" | "interactive" | "error" | "base" | "subdued" | "warn" | "info" | "disabled" | "critical";
|
|
98
|
+
export type TextColor = TextVariation | "default" | "blue" | "blueDark" | "white" | "green" | "greenDark" | "grey" | "greyDark" | "greyBlue" | "greyBlueDark" | "lightBlue" | "lightBlueDark" | "red" | "redDark" | "yellow" | "yellowDark" | "yellowGreenDark" | "orangeDark" | "navyDark" | "limeDark" | "purpleDark" | "pinkDark" | "tealDark" | "indigoDark" | "navy" | "text" | "heading" | "textSecondary" | "textReverse" | "textReverseSecondary" | "interactive" | "interactiveSubtle" | "destructive" | "learning" | "subtle" | "onPrimary";
|
|
99
|
+
export type TextVariation = "success" | "interactive" | "interactiveSubtle" | "error" | "base" | "subdued" | "warn" | "info" | "disabled" | "destructive" | "critical";
|
|
98
100
|
export type TextTransform = "uppercase" | "lowercase" | "capitalize" | "none";
|
|
99
101
|
export type TextSize = "smallest" | "smaller" | "small" | "default" | "large" | "larger" | "largest" | "jumbo" | "extravagant";
|
|
100
102
|
export type TextAlign = "start" | "end" | "center" | "justify";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"react-native-safe-area-context": "^4.5.2",
|
|
83
83
|
"react-native-svg": ">=12.0.0"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "6dbe1a431543cacdc9e0b0f4896b7866bc1ae12d"
|
|
86
86
|
}
|
|
@@ -26,7 +26,7 @@ export function BottomSheetOption({
|
|
|
26
26
|
textTransform = "capitalize",
|
|
27
27
|
onPress,
|
|
28
28
|
}: BottomSheetOptionProps): JSX.Element {
|
|
29
|
-
const destructiveColor = "
|
|
29
|
+
const destructiveColor = "destructive";
|
|
30
30
|
const textVariation = destructive ? destructiveColor : "subdued";
|
|
31
31
|
|
|
32
32
|
return (
|
|
@@ -18,7 +18,7 @@ export function MenuOption({
|
|
|
18
18
|
onPress,
|
|
19
19
|
setOpen,
|
|
20
20
|
}: MenuOptionInternalProps): JSX.Element {
|
|
21
|
-
const destructiveColor = "
|
|
21
|
+
const destructiveColor = "destructive";
|
|
22
22
|
const textVariation = destructive ? destructiveColor : "heading";
|
|
23
23
|
|
|
24
24
|
return (
|
package/src/Text/Text.tsx
CHANGED
|
@@ -71,7 +71,9 @@ interface TextProps
|
|
|
71
71
|
readonly italic?: boolean;
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* Underline text
|
|
74
|
+
* Underline style to use for the text. The non-solid style is only supported
|
|
75
|
+
* on iOS, as per React Native's Text component's limitations.
|
|
76
|
+
* https://reactnative.dev/docs/text-style-props#textdecorationstyle-ios
|
|
75
77
|
*/
|
|
76
78
|
readonly underline?: "solid" | "dotted";
|
|
77
79
|
|
|
@@ -85,7 +85,9 @@ export interface TypographyProps<T extends FontFamily>
|
|
|
85
85
|
readonly fontStyle?: T extends "base" ? BaseStyle : DisplayStyle;
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Underline style to use for the text. The non-solid style is only supported
|
|
89
|
+
* on iOS, as per React Native's Text component's limitations.
|
|
90
|
+
* https://reactnative.dev/docs/text-style-props#textdecorationstyle-ios
|
|
89
91
|
*/
|
|
90
92
|
readonly underline?: "solid" | "double" | "dotted" | "dashed" | undefined;
|
|
91
93
|
|
|
@@ -339,6 +341,7 @@ export type TextColor =
|
|
|
339
341
|
| "textReverse"
|
|
340
342
|
| "textReverseSecondary"
|
|
341
343
|
| "interactive"
|
|
344
|
+
| "interactiveSubtle"
|
|
342
345
|
| "destructive"
|
|
343
346
|
| "learning"
|
|
344
347
|
| "subtle"
|
|
@@ -347,12 +350,14 @@ export type TextColor =
|
|
|
347
350
|
export type TextVariation =
|
|
348
351
|
| "success"
|
|
349
352
|
| "interactive"
|
|
353
|
+
| "interactiveSubtle"
|
|
350
354
|
| "error"
|
|
351
355
|
| "base"
|
|
352
356
|
| "subdued"
|
|
353
357
|
| "warn"
|
|
354
358
|
| "info"
|
|
355
359
|
| "disabled"
|
|
360
|
+
| "destructive"
|
|
356
361
|
| "critical";
|
|
357
362
|
|
|
358
363
|
export type TextTransform = "uppercase" | "lowercase" | "capitalize" | "none";
|