@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.56.3",
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": "455afb03326e0a0e5b175acf72fae6bdd71b866b"
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-informative"],
83
- borderColor: tokens["color-informative"],
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-informative"] }],
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-informative"]);
221
+ expect(iconColor).toBe(tokens["color-interactive--subtle"]);
222
222
  expect(textColor).toBe(iconColor);
223
223
  });
224
224
 
@@ -179,7 +179,7 @@ function getActionLabelVariation(
179
179
 
180
180
  switch (variation) {
181
181
  case "learning":
182
- return "learning";
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 "informative";
207
+ return "interactiveSubtle";
208
208
  case "destructive":
209
209
  return "destructive";
210
210
  case "cancel":