@jobber/components-native 0.67.6-fix-dynami.14 → 0.67.7-JOB-97720.28
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.67.
|
|
3
|
+
"version": "0.67.7-JOB-97720.28+ea79a286",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"build:clean": "rm -rf ./dist"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jobber/design": "^0.
|
|
39
|
+
"@jobber/design": "^0.61.0",
|
|
40
40
|
"@jobber/hooks": "^2.9.8",
|
|
41
41
|
"@react-native-clipboard/clipboard": "^1.11.2",
|
|
42
42
|
"@react-native-picker/picker": "^2.4.10",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"react-native-safe-area-context": "^4.5.2",
|
|
85
85
|
"react-native-svg": ">=12.0.0"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "ea79a2864bbe8912d3b9a44f90bfb86286bfe8a2"
|
|
88
88
|
}
|
package/dist/src/Icon/Icon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Svg, { Path } from "react-native-svg";
|
|
3
3
|
import { colorsClassMap, getIcon, iconClassMap, iconStyles, sizesClassMap, } from "@jobber/design";
|
|
4
|
-
export function Icon({ name, color, size = "base", customColor, }) {
|
|
4
|
+
export function Icon({ name, color, size = "base", customColor, testID, }) {
|
|
5
5
|
const { svgClassNames, pathClassNames, paths, viewBox } = getIcon({
|
|
6
6
|
name,
|
|
7
7
|
color,
|
|
@@ -24,7 +24,7 @@ export function Icon({ name, color, size = "base", customColor, }) {
|
|
|
24
24
|
const icon = paths.map((path) => {
|
|
25
25
|
return React.createElement(Path, { key: path, d: path, fill: customColor || svgStyle.fill });
|
|
26
26
|
});
|
|
27
|
-
return (React.createElement(Svg, { style: svgStyle, testID: name, viewBox: viewBox }, icon));
|
|
27
|
+
return (React.createElement(Svg, { style: svgStyle, testID: testID || name, viewBox: viewBox }, icon));
|
|
28
28
|
}
|
|
29
29
|
/*
|
|
30
30
|
* get svg styles based on the class names
|