@jobber/components-native 0.56.3 → 0.57.0
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/Button/Button.js +2 -2
- package/dist/src/Button/Button.style.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/Button/Button.style.ts +2 -2
- package/src/Button/Button.test.tsx +2 -2
- package/src/Button/Button.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"react-native-reanimated": "^2.17.0",
|
|
85
85
|
"react-native-safe-area-context": "^4.5.2"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "0efee497cd920eccd458d96cbb17e9cc67e3cc6b"
|
|
88
88
|
}
|
|
@@ -79,8 +79,8 @@ export const styles = StyleSheet.create({
|
|
|
79
79
|
},
|
|
80
80
|
|
|
81
81
|
learning: {
|
|
82
|
-
backgroundColor: tokens["color-
|
|
83
|
-
borderColor: tokens["color-
|
|
82
|
+
backgroundColor: tokens["color-interactive--subtle"],
|
|
83
|
+
borderColor: tokens["color-interactive--subtle"],
|
|
84
84
|
},
|
|
85
85
|
|
|
86
86
|
destructive: {
|
|
@@ -78,7 +78,7 @@ describe("Button", () => {
|
|
|
78
78
|
},
|
|
79
79
|
],
|
|
80
80
|
["destructive", { bgColor: tokens["color-destructive"] }],
|
|
81
|
-
["learning", { bgColor: tokens["color-
|
|
81
|
+
["learning", { bgColor: tokens["color-interactive--subtle"] }],
|
|
82
82
|
])("renders a %s Button", (variation, { bgColor, borderColor }) => {
|
|
83
83
|
const { buttonStyle } = renderButton(
|
|
84
84
|
<Button label={variation} variation={variation} onPress={jest.fn()} />,
|
|
@@ -218,7 +218,7 @@ describe("Button", () => {
|
|
|
218
218
|
variation: "learning",
|
|
219
219
|
type: "secondary",
|
|
220
220
|
});
|
|
221
|
-
expect(iconColor).toBe(tokens["color-
|
|
221
|
+
expect(iconColor).toBe(tokens["color-interactive--subtle"]);
|
|
222
222
|
expect(textColor).toBe(iconColor);
|
|
223
223
|
});
|
|
224
224
|
|
package/src/Button/Button.tsx
CHANGED
|
@@ -179,7 +179,7 @@ function getActionLabelVariation(
|
|
|
179
179
|
|
|
180
180
|
switch (variation) {
|
|
181
181
|
case "learning":
|
|
182
|
-
return "
|
|
182
|
+
return "subtle";
|
|
183
183
|
case "destructive":
|
|
184
184
|
return "destructive";
|
|
185
185
|
case "cancel":
|
|
@@ -204,7 +204,7 @@ function getIconColorVariation(
|
|
|
204
204
|
|
|
205
205
|
switch (variation) {
|
|
206
206
|
case "learning":
|
|
207
|
-
return "
|
|
207
|
+
return "interactiveSubtle";
|
|
208
208
|
case "destructive":
|
|
209
209
|
return "destructive";
|
|
210
210
|
case "cancel":
|