@jobber/components-native 0.114.9 → 0.114.11
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/docs/EmptyState/EmptyState.md +1 -1
- package/dist/docs/Icon/Icon.md +1 -0
- package/dist/package.json +3 -3
- package/dist/src/Banner/components/BannerIcon/BannerIcon.js +1 -1
- package/dist/src/Button/Button.js +1 -1
- package/dist/src/Disclosure/Disclosure.js +1 -1
- package/dist/src/EmptyState/EmptyState.js +1 -1
- package/dist/src/EmptyState/EmptyState.test.js +2 -1
- package/dist/src/FormatFile/components/ProgressBar/ProgressBar.style.js +1 -1
- package/dist/src/InputFieldWrapper/components/Prefix/Prefix.js +3 -1
- package/dist/src/InputFieldWrapper/components/Suffix/Suffix.js +3 -1
- package/dist/src/Switch/components/BaseSwitch/BaseSwitch.js +1 -1
- package/dist/src/Typography/Typography.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/Banner/components/BannerIcon/BannerIcon.tsx +1 -1
- package/src/Button/Button.tsx +1 -1
- package/src/Disclosure/Disclosure.tsx +1 -1
- package/src/EmptyState/EmptyState.test.tsx +2 -1
- package/src/EmptyState/EmptyState.tsx +1 -1
- package/src/FormatFile/components/ProgressBar/ProgressBar.style.tsx +1 -1
- package/src/InputFieldWrapper/components/Prefix/Prefix.tsx +3 -1
- package/src/InputFieldWrapper/components/Suffix/Suffix.tsx +3 -1
- package/src/Switch/components/BaseSwitch/BaseSwitch.tsx +1 -1
- package/src/Typography/Typography.tsx +1 -1
- package/src/Typography/__snapshots__/Typography.test.tsx.snap +32 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.114.
|
|
3
|
+
"version": "0.114.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/runtime": "^7.29.2",
|
|
75
75
|
"@gorhom/bottom-sheet": "^5.2.8",
|
|
76
|
-
"@jobber/design": "0.
|
|
76
|
+
"@jobber/design": "0.118.1",
|
|
77
77
|
"@jobber/hooks": "2.21.1",
|
|
78
78
|
"@react-native-community/datetimepicker": "^8.4.5",
|
|
79
79
|
"@react-native/babel-preset": "^0.82.1",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"react-native-screens": ">=4.18.0",
|
|
124
124
|
"react-native-svg": ">=12.0.0"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "1f2ce0a2e21335640daf4d7fa36cc2630e7858c7"
|
|
127
127
|
}
|
|
@@ -15,7 +15,7 @@ export function BannerIcon({ icon, type }: BannerIconProps) {
|
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<View style={[styles.bannerIcon, styles[type]]} testID="ATL-Banner-Icon">
|
|
18
|
-
<Icon name={icon} color="
|
|
18
|
+
<Icon name={icon} color="surface" size="small" />
|
|
19
19
|
</View>
|
|
20
20
|
);
|
|
21
21
|
}
|
package/src/Button/Button.tsx
CHANGED
|
@@ -153,7 +153,7 @@ export function Button({
|
|
|
153
153
|
accessibilityRole="button"
|
|
154
154
|
accessibilityState={{ disabled, busy: loading }}
|
|
155
155
|
disabled={disabled || loading}
|
|
156
|
-
underlayColor={tokens["color-
|
|
156
|
+
underlayColor={tokens["color-interactive--subtle"]}
|
|
157
157
|
activeOpacity={tokens["opacity-pressed"]}
|
|
158
158
|
style={[
|
|
159
159
|
styles.touchable,
|
|
@@ -3,6 +3,7 @@ import { fireEvent, render, screen } from "@testing-library/react-native";
|
|
|
3
3
|
import { Path } from "react-native-svg";
|
|
4
4
|
import type { EmptyStateProps } from "./EmptyState";
|
|
5
5
|
import { EmptyState } from "./EmptyState";
|
|
6
|
+
import { tokens } from "../utils/design";
|
|
6
7
|
|
|
7
8
|
const primaryOnPress = jest.fn();
|
|
8
9
|
const secondaryOnPress = jest.fn();
|
|
@@ -47,7 +48,7 @@ describe("EmptyState", () => {
|
|
|
47
48
|
component();
|
|
48
49
|
const icon = screen.getByTestId(defaultProps.icon);
|
|
49
50
|
const path = icon.findByType(Path);
|
|
50
|
-
expect(path.props.fill).toBe("
|
|
51
|
+
expect(path.props.fill).toBe(tokens["color-icon"]);
|
|
51
52
|
expect(icon.props.style).toEqual(
|
|
52
53
|
expect.arrayContaining([
|
|
53
54
|
expect.objectContaining({
|
|
@@ -96,7 +96,9 @@ export function PrefixIcon({
|
|
|
96
96
|
<View style={styles.prefixIcon}>
|
|
97
97
|
<Icon
|
|
98
98
|
customColor={
|
|
99
|
-
disabled
|
|
99
|
+
disabled
|
|
100
|
+
? tokens["color-disabled"]
|
|
101
|
+
: tokens["color-icon--secondary"]
|
|
100
102
|
}
|
|
101
103
|
name={icon}
|
|
102
104
|
/>
|
|
@@ -14,7 +14,7 @@ exports[`allows child Typography to control its own transform 1`] = `
|
|
|
14
14
|
"fontFamily": "inter-regular",
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"color": "hsl(
|
|
17
|
+
"color": "hsl(198, 35%, 21%)",
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"textAlign": "left",
|
|
@@ -43,7 +43,7 @@ exports[`allows child Typography to control its own transform 1`] = `
|
|
|
43
43
|
"fontFamily": "inter-bold",
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
"color": "hsl(
|
|
46
|
+
"color": "hsl(198, 35%, 21%)",
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"textAlign": "left",
|
|
@@ -78,7 +78,7 @@ exports[`renders text respecting the text direction 1`] = `
|
|
|
78
78
|
"fontFamily": "inter-regular",
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
"color": "hsl(
|
|
81
|
+
"color": "hsl(198, 35%, 21%)",
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"textAlign": "right",
|
|
@@ -112,7 +112,7 @@ exports[`renders text using the maxLines is also passed 1`] = `
|
|
|
112
112
|
"fontFamily": "inter-regular",
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
|
-
"color": "hsl(
|
|
115
|
+
"color": "hsl(198, 35%, 21%)",
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"textAlign": "left",
|
|
@@ -146,7 +146,7 @@ exports[`renders text with adjustsFontSizeToFit set to true 1`] = `
|
|
|
146
146
|
"fontFamily": "inter-regular",
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
|
-
"color": "hsl(
|
|
149
|
+
"color": "hsl(198, 35%, 21%)",
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
"textAlign": "left",
|
|
@@ -179,7 +179,7 @@ exports[`renders text with black style and display as fontFamily 1`] = `
|
|
|
179
179
|
"fontFamily": "jobberpro-blk",
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
|
-
"color": "hsl(
|
|
182
|
+
"color": "hsl(198, 35%, 21%)",
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
"textAlign": "left",
|
|
@@ -212,7 +212,7 @@ exports[`renders text with bold style 1`] = `
|
|
|
212
212
|
"fontFamily": "inter-bold",
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
|
-
"color": "hsl(
|
|
215
|
+
"color": "hsl(198, 35%, 21%)",
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
"textAlign": "left",
|
|
@@ -245,7 +245,7 @@ exports[`renders text with bold style and display as fontFamily 1`] = `
|
|
|
245
245
|
"fontFamily": "jobberpro-bd",
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
|
-
"color": "hsl(
|
|
248
|
+
"color": "hsl(198, 35%, 21%)",
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
"textAlign": "left",
|
|
@@ -278,7 +278,7 @@ exports[`renders text with bold weight and italic style 1`] = `
|
|
|
278
278
|
"fontFamily": "inter-italic-bold",
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
|
-
"color": "hsl(
|
|
281
|
+
"color": "hsl(198, 35%, 21%)",
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
"textAlign": "left",
|
|
@@ -314,7 +314,7 @@ exports[`renders text with center align 1`] = `
|
|
|
314
314
|
"fontFamily": "inter-regular",
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
|
-
"color": "hsl(
|
|
317
|
+
"color": "hsl(198, 35%, 21%)",
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
"textAlign": "center",
|
|
@@ -347,7 +347,7 @@ exports[`renders text with default color 1`] = `
|
|
|
347
347
|
"fontFamily": "inter-regular",
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
|
-
"color": "hsl(
|
|
350
|
+
"color": "hsl(198, 35%, 21%)",
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
"textAlign": "left",
|
|
@@ -380,7 +380,7 @@ exports[`renders text with default size 1`] = `
|
|
|
380
380
|
"fontFamily": "inter-regular",
|
|
381
381
|
},
|
|
382
382
|
{
|
|
383
|
-
"color": "hsl(
|
|
383
|
+
"color": "hsl(198, 35%, 21%)",
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
386
|
"textAlign": "left",
|
|
@@ -413,7 +413,7 @@ exports[`renders text with extraBold weight and display as fontFamily 1`] = `
|
|
|
413
413
|
"fontFamily": "jobberpro-xbd",
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
|
-
"color": "hsl(
|
|
416
|
+
"color": "hsl(198, 35%, 21%)",
|
|
417
417
|
},
|
|
418
418
|
{
|
|
419
419
|
"textAlign": "left",
|
|
@@ -479,7 +479,7 @@ exports[`renders text with italic style 1`] = `
|
|
|
479
479
|
"fontFamily": "inter-italic",
|
|
480
480
|
},
|
|
481
481
|
{
|
|
482
|
-
"color": "hsl(
|
|
482
|
+
"color": "hsl(198, 35%, 21%)",
|
|
483
483
|
},
|
|
484
484
|
{
|
|
485
485
|
"textAlign": "left",
|
|
@@ -515,7 +515,7 @@ exports[`renders text with large size 1`] = `
|
|
|
515
515
|
"fontFamily": "inter-regular",
|
|
516
516
|
},
|
|
517
517
|
{
|
|
518
|
-
"color": "hsl(
|
|
518
|
+
"color": "hsl(198, 35%, 21%)",
|
|
519
519
|
},
|
|
520
520
|
{
|
|
521
521
|
"textAlign": "left",
|
|
@@ -548,7 +548,7 @@ exports[`renders text with letter spacing 1`] = `
|
|
|
548
548
|
"fontFamily": "inter-regular",
|
|
549
549
|
},
|
|
550
550
|
{
|
|
551
|
-
"color": "hsl(
|
|
551
|
+
"color": "hsl(198, 35%, 21%)",
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
554
|
"textAlign": "left",
|
|
@@ -581,7 +581,7 @@ exports[`renders text with line height override 1`] = `
|
|
|
581
581
|
"fontFamily": "inter-regular",
|
|
582
582
|
},
|
|
583
583
|
{
|
|
584
|
-
"color": "hsl(
|
|
584
|
+
"color": "hsl(198, 35%, 21%)",
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
587
|
"textAlign": "left",
|
|
@@ -614,7 +614,7 @@ exports[`renders text with lowercase transform 1`] = `
|
|
|
614
614
|
"fontFamily": "inter-regular",
|
|
615
615
|
},
|
|
616
616
|
{
|
|
617
|
-
"color": "hsl(
|
|
617
|
+
"color": "hsl(198, 35%, 21%)",
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
620
|
"textAlign": "left",
|
|
@@ -680,7 +680,7 @@ exports[`renders text with no additional props 1`] = `
|
|
|
680
680
|
"fontFamily": "inter-regular",
|
|
681
681
|
},
|
|
682
682
|
{
|
|
683
|
-
"color": "hsl(
|
|
683
|
+
"color": "hsl(198, 35%, 21%)",
|
|
684
684
|
},
|
|
685
685
|
{
|
|
686
686
|
"textAlign": "left",
|
|
@@ -713,7 +713,7 @@ exports[`renders text with regular style 1`] = `
|
|
|
713
713
|
"fontFamily": "inter-regular",
|
|
714
714
|
},
|
|
715
715
|
{
|
|
716
|
-
"color": "hsl(
|
|
716
|
+
"color": "hsl(198, 35%, 21%)",
|
|
717
717
|
},
|
|
718
718
|
{
|
|
719
719
|
"textAlign": "left",
|
|
@@ -845,7 +845,7 @@ exports[`renders text with small size 1`] = `
|
|
|
845
845
|
"fontFamily": "inter-regular",
|
|
846
846
|
},
|
|
847
847
|
{
|
|
848
|
-
"color": "hsl(
|
|
848
|
+
"color": "hsl(198, 35%, 21%)",
|
|
849
849
|
},
|
|
850
850
|
{
|
|
851
851
|
"textAlign": "left",
|
|
@@ -878,7 +878,7 @@ exports[`renders text with strikethough styling 1`] = `
|
|
|
878
878
|
"fontFamily": "inter-regular",
|
|
879
879
|
},
|
|
880
880
|
{
|
|
881
|
-
"color": "hsl(
|
|
881
|
+
"color": "hsl(198, 35%, 21%)",
|
|
882
882
|
},
|
|
883
883
|
{
|
|
884
884
|
"textAlign": "left",
|
|
@@ -914,7 +914,7 @@ exports[`renders text with uppercase transform 1`] = `
|
|
|
914
914
|
"fontFamily": "inter-regular",
|
|
915
915
|
},
|
|
916
916
|
{
|
|
917
|
-
"color": "hsl(
|
|
917
|
+
"color": "hsl(198, 35%, 21%)",
|
|
918
918
|
},
|
|
919
919
|
{
|
|
920
920
|
"textAlign": "left",
|
|
@@ -980,7 +980,7 @@ exports[`supports multi-level nesting across Typography and Text 1`] = `
|
|
|
980
980
|
"fontFamily": "inter-regular",
|
|
981
981
|
},
|
|
982
982
|
{
|
|
983
|
-
"color": "hsl(
|
|
983
|
+
"color": "hsl(198, 35%, 21%)",
|
|
984
984
|
},
|
|
985
985
|
{
|
|
986
986
|
"textAlign": "left",
|
|
@@ -1009,7 +1009,7 @@ exports[`supports multi-level nesting across Typography and Text 1`] = `
|
|
|
1009
1009
|
"fontFamily": "inter-regular",
|
|
1010
1010
|
},
|
|
1011
1011
|
{
|
|
1012
|
-
"color": "hsl(
|
|
1012
|
+
"color": "hsl(198, 35%, 21%)",
|
|
1013
1013
|
},
|
|
1014
1014
|
{
|
|
1015
1015
|
"textAlign": "left",
|
|
@@ -1038,7 +1038,7 @@ exports[`supports multi-level nesting across Typography and Text 1`] = `
|
|
|
1038
1038
|
"fontFamily": "inter-regular",
|
|
1039
1039
|
},
|
|
1040
1040
|
{
|
|
1041
|
-
"color": "hsl(
|
|
1041
|
+
"color": "hsl(198, 35%, 21%)",
|
|
1042
1042
|
},
|
|
1043
1043
|
{
|
|
1044
1044
|
"textAlign": "left",
|
|
@@ -1074,7 +1074,7 @@ exports[`supports nested children and applies transform only to string children
|
|
|
1074
1074
|
"fontFamily": "inter-regular",
|
|
1075
1075
|
},
|
|
1076
1076
|
{
|
|
1077
|
-
"color": "hsl(
|
|
1077
|
+
"color": "hsl(198, 35%, 21%)",
|
|
1078
1078
|
},
|
|
1079
1079
|
{
|
|
1080
1080
|
"textAlign": "left",
|
|
@@ -1103,7 +1103,7 @@ exports[`supports nested children and applies transform only to string children
|
|
|
1103
1103
|
"fontFamily": "inter-bold",
|
|
1104
1104
|
},
|
|
1105
1105
|
{
|
|
1106
|
-
"color": "hsl(
|
|
1106
|
+
"color": "hsl(198, 35%, 21%)",
|
|
1107
1107
|
},
|
|
1108
1108
|
{
|
|
1109
1109
|
"textAlign": "left",
|
|
@@ -1138,7 +1138,7 @@ exports[`underline renders text with dashed underline 1`] = `
|
|
|
1138
1138
|
"fontFamily": "inter-regular",
|
|
1139
1139
|
},
|
|
1140
1140
|
{
|
|
1141
|
-
"color": "hsl(
|
|
1141
|
+
"color": "hsl(198, 35%, 21%)",
|
|
1142
1142
|
},
|
|
1143
1143
|
{
|
|
1144
1144
|
"textAlign": "left",
|
|
@@ -1178,7 +1178,7 @@ exports[`underline renders text with dotted underline 1`] = `
|
|
|
1178
1178
|
"fontFamily": "inter-regular",
|
|
1179
1179
|
},
|
|
1180
1180
|
{
|
|
1181
|
-
"color": "hsl(
|
|
1181
|
+
"color": "hsl(198, 35%, 21%)",
|
|
1182
1182
|
},
|
|
1183
1183
|
{
|
|
1184
1184
|
"textAlign": "left",
|
|
@@ -1218,7 +1218,7 @@ exports[`underline renders text with double underline 1`] = `
|
|
|
1218
1218
|
"fontFamily": "inter-regular",
|
|
1219
1219
|
},
|
|
1220
1220
|
{
|
|
1221
|
-
"color": "hsl(
|
|
1221
|
+
"color": "hsl(198, 35%, 21%)",
|
|
1222
1222
|
},
|
|
1223
1223
|
{
|
|
1224
1224
|
"textAlign": "left",
|
|
@@ -1258,7 +1258,7 @@ exports[`underline renders text with solid underline 1`] = `
|
|
|
1258
1258
|
"fontFamily": "inter-regular",
|
|
1259
1259
|
},
|
|
1260
1260
|
{
|
|
1261
|
-
"color": "hsl(
|
|
1261
|
+
"color": "hsl(198, 35%, 21%)",
|
|
1262
1262
|
},
|
|
1263
1263
|
{
|
|
1264
1264
|
"textAlign": "left",
|