@jobber/components-native 0.72.0 → 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/Typography/Typography.d.ts +2 -2
- 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/Typography/Typography.tsx +3 -0
|
@@ -95,8 +95,8 @@ export type BaseWeight = Extract<FontWeight, "regular" | "medium" | "semiBold" |
|
|
|
95
95
|
export type DisplayWeight = Extract<FontWeight, "semiBold" | "bold" | "extraBold" | "black">;
|
|
96
96
|
export type BaseStyle = FontStyle;
|
|
97
97
|
export type DisplayStyle = Extract<FontStyle, "regular">;
|
|
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" | "destructive" | "learning" | "subtle" | "onPrimary";
|
|
99
|
-
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";
|
|
100
100
|
export type TextTransform = "uppercase" | "lowercase" | "capitalize" | "none";
|
|
101
101
|
export type TextSize = "smallest" | "smaller" | "small" | "default" | "large" | "larger" | "largest" | "jumbo" | "extravagant";
|
|
102
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.72.
|
|
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 (
|
|
@@ -341,6 +341,7 @@ export type TextColor =
|
|
|
341
341
|
| "textReverse"
|
|
342
342
|
| "textReverseSecondary"
|
|
343
343
|
| "interactive"
|
|
344
|
+
| "interactiveSubtle"
|
|
344
345
|
| "destructive"
|
|
345
346
|
| "learning"
|
|
346
347
|
| "subtle"
|
|
@@ -349,12 +350,14 @@ export type TextColor =
|
|
|
349
350
|
export type TextVariation =
|
|
350
351
|
| "success"
|
|
351
352
|
| "interactive"
|
|
353
|
+
| "interactiveSubtle"
|
|
352
354
|
| "error"
|
|
353
355
|
| "base"
|
|
354
356
|
| "subdued"
|
|
355
357
|
| "warn"
|
|
356
358
|
| "info"
|
|
357
359
|
| "disabled"
|
|
360
|
+
| "destructive"
|
|
358
361
|
| "critical";
|
|
359
362
|
|
|
360
363
|
export type TextTransform = "uppercase" | "lowercase" | "capitalize" | "none";
|