@jobber/components-native 0.80.1 → 0.80.2
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/Chip/Chip.js +1 -1
- package/dist/src/FormatFile/components/ProgressBar/ProgressBar.style.js +1 -1
- package/dist/src/ProgressBar/ProgressBar.js +2 -2
- package/dist/src/Switch/components/BaseSwitch/BaseSwitch.js +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/Chip/Chip.test.tsx +1 -1
- package/src/Chip/Chip.tsx +1 -1
- package/src/FormatFile/components/ProgressBar/ProgressBar.style.tsx +1 -1
- package/src/ProgressBar/ProgressBar.tsx +4 -2
- package/src/ProgressBar/__snapshots__/ProgressBar.test.tsx.snap +2 -2
- package/src/Switch/components/BaseSwitch/BaseSwitch.tsx +3 -3
- package/src/Switch/components/BaseSwitch/__snapshots__/BaseSwitch.test.tsx.snap +12 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.80.
|
|
3
|
+
"version": "0.80.2",
|
|
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": "
|
|
83
|
+
"gitHead": "f9f0fd3344b7bdc1198d5fd23a6f4057ad31f9c4"
|
|
84
84
|
}
|
package/src/Chip/Chip.test.tsx
CHANGED
|
@@ -35,7 +35,7 @@ it("renders an inactive Chip with a default backgroundColor", () => {
|
|
|
35
35
|
backgroundColor: tokens["color-surface--reverse"],
|
|
36
36
|
});
|
|
37
37
|
expect(getByTestId("chipTest").props.style).toContainEqual({
|
|
38
|
-
backgroundColor: tokens["color-
|
|
38
|
+
backgroundColor: tokens["color-interactive--background"],
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
|
package/src/Chip/Chip.tsx
CHANGED
|
@@ -82,7 +82,7 @@ export function Chip({
|
|
|
82
82
|
backgroundColor:
|
|
83
83
|
inactiveBackgroundColor === "surface"
|
|
84
84
|
? tokens["color-surface"]
|
|
85
|
-
: tokens["color-
|
|
85
|
+
: tokens["color-interactive--background"],
|
|
86
86
|
},
|
|
87
87
|
isActive && { backgroundColor: accentColor },
|
|
88
88
|
];
|
|
@@ -7,7 +7,7 @@ export const useStyles = buildThemedStyles(tokens => {
|
|
|
7
7
|
height: 8,
|
|
8
8
|
borderRadius: tokens["radius-circle"],
|
|
9
9
|
overflow: "hidden",
|
|
10
|
-
backgroundColor: tokens["color-
|
|
10
|
+
backgroundColor: tokens["color-interactive--background"],
|
|
11
11
|
},
|
|
12
12
|
progress: {
|
|
13
13
|
height: "100%",
|
|
@@ -33,7 +33,9 @@ export function ProgressBar({
|
|
|
33
33
|
<ProgressBarStepped
|
|
34
34
|
total={total}
|
|
35
35
|
current={current}
|
|
36
|
-
color={
|
|
36
|
+
color={
|
|
37
|
+
reverseTheme ? undefined : tokens["color-interactive--background"]
|
|
38
|
+
}
|
|
37
39
|
loading={loading}
|
|
38
40
|
inProgress={inProgress}
|
|
39
41
|
/>
|
|
@@ -43,7 +45,7 @@ export function ProgressBar({
|
|
|
43
45
|
width={100}
|
|
44
46
|
animationDuration={0}
|
|
45
47
|
color={
|
|
46
|
-
reverseTheme ? undefined : tokens["color-
|
|
48
|
+
reverseTheme ? undefined : tokens["color-interactive--background"]
|
|
47
49
|
}
|
|
48
50
|
/>
|
|
49
51
|
{!loading && (
|
|
@@ -34,7 +34,7 @@ exports[`renders blue inProgress bar when 1 or more jobs is in progress 1`] = `
|
|
|
34
34
|
"width": "100%",
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
"backgroundColor": "hsl(
|
|
37
|
+
"backgroundColor": "hsl(51, 17%, 85%)",
|
|
38
38
|
"width": "100%",
|
|
39
39
|
},
|
|
40
40
|
]
|
|
@@ -116,7 +116,7 @@ exports[`renders green CompletedProgress bar when 1 or more jobs is completed 1`
|
|
|
116
116
|
"width": "100%",
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
|
-
"backgroundColor": "hsl(
|
|
119
|
+
"backgroundColor": "hsl(51, 17%, 85%)",
|
|
120
120
|
"width": "100%",
|
|
121
121
|
},
|
|
122
122
|
]
|
|
@@ -60,7 +60,7 @@ export function BaseSwitch({
|
|
|
60
60
|
} else if (internalValue) {
|
|
61
61
|
return tokens["color-interactive"];
|
|
62
62
|
} else {
|
|
63
|
-
return tokens["color-
|
|
63
|
+
return tokens["color-interactive--background"];
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -81,7 +81,7 @@ export function BaseSwitch({
|
|
|
81
81
|
//iOS
|
|
82
82
|
return {
|
|
83
83
|
true: tokens["color-interactive"],
|
|
84
|
-
false: tokens["color-
|
|
84
|
+
false: tokens["color-interactive--background"],
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -98,7 +98,7 @@ export function BaseSwitch({
|
|
|
98
98
|
disabled={disabled}
|
|
99
99
|
thumbColor={getThumbColor()}
|
|
100
100
|
trackColor={getTrackColors()}
|
|
101
|
-
ios_backgroundColor={tokens["color-
|
|
101
|
+
ios_backgroundColor={tokens["color-interactive--background"]}
|
|
102
102
|
accessibilityLabel={accessibilityLabel}
|
|
103
103
|
accessibilityRole={"switch"}
|
|
104
104
|
accessibilityState={{
|
|
@@ -26,12 +26,12 @@ exports[`renders a Switch with defaultValue false 1`] = `
|
|
|
26
26
|
"width": 51,
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
"backgroundColor": "hsl(
|
|
29
|
+
"backgroundColor": "hsl(51, 17%, 85%)",
|
|
30
30
|
"borderRadius": 16,
|
|
31
31
|
},
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
|
-
tintColor="hsl(
|
|
34
|
+
tintColor="hsl(51, 17%, 85%)"
|
|
35
35
|
value={false}
|
|
36
36
|
/>
|
|
37
37
|
`;
|
|
@@ -62,12 +62,12 @@ exports[`renders a Switch with defaultValue true 1`] = `
|
|
|
62
62
|
"width": 51,
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
|
-
"backgroundColor": "hsl(
|
|
65
|
+
"backgroundColor": "hsl(51, 17%, 85%)",
|
|
66
66
|
"borderRadius": 16,
|
|
67
67
|
},
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
|
-
tintColor="hsl(
|
|
70
|
+
tintColor="hsl(51, 17%, 85%)"
|
|
71
71
|
value={true}
|
|
72
72
|
/>
|
|
73
73
|
`;
|
|
@@ -98,12 +98,12 @@ exports[`renders a Switch with value false 1`] = `
|
|
|
98
98
|
"width": 51,
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
"backgroundColor": "hsl(
|
|
101
|
+
"backgroundColor": "hsl(51, 17%, 85%)",
|
|
102
102
|
"borderRadius": 16,
|
|
103
103
|
},
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
|
-
tintColor="hsl(
|
|
106
|
+
tintColor="hsl(51, 17%, 85%)"
|
|
107
107
|
value={false}
|
|
108
108
|
/>
|
|
109
109
|
`;
|
|
@@ -134,12 +134,12 @@ exports[`renders a Switch with value true 1`] = `
|
|
|
134
134
|
"width": 51,
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
|
-
"backgroundColor": "hsl(
|
|
137
|
+
"backgroundColor": "hsl(51, 17%, 85%)",
|
|
138
138
|
"borderRadius": 16,
|
|
139
139
|
},
|
|
140
140
|
]
|
|
141
141
|
}
|
|
142
|
-
tintColor="hsl(
|
|
142
|
+
tintColor="hsl(51, 17%, 85%)"
|
|
143
143
|
value={true}
|
|
144
144
|
/>
|
|
145
145
|
`;
|
|
@@ -170,12 +170,12 @@ exports[`renders a disabled Switch with value false 1`] = `
|
|
|
170
170
|
"width": 51,
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
|
-
"backgroundColor": "hsl(
|
|
173
|
+
"backgroundColor": "hsl(51, 17%, 85%)",
|
|
174
174
|
"borderRadius": 16,
|
|
175
175
|
},
|
|
176
176
|
]
|
|
177
177
|
}
|
|
178
|
-
tintColor="hsl(
|
|
178
|
+
tintColor="hsl(51, 17%, 85%)"
|
|
179
179
|
value={false}
|
|
180
180
|
/>
|
|
181
181
|
`;
|
|
@@ -206,12 +206,12 @@ exports[`renders a disabled Switch with value true 1`] = `
|
|
|
206
206
|
"width": 51,
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
|
-
"backgroundColor": "hsl(
|
|
209
|
+
"backgroundColor": "hsl(51, 17%, 85%)",
|
|
210
210
|
"borderRadius": 16,
|
|
211
211
|
},
|
|
212
212
|
]
|
|
213
213
|
}
|
|
214
|
-
tintColor="hsl(
|
|
214
|
+
tintColor="hsl(51, 17%, 85%)"
|
|
215
215
|
value={true}
|
|
216
216
|
/>
|
|
217
217
|
`;
|