@jobber/components-native 0.80.1 → 0.81.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 +3 -3
- 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/dist/types/src/AtlantisThemeContext/AtlantisThemeContext.d.ts +2 -1
- package/dist/types/src/Glimmer/Glimmer.d.ts +2 -1
- package/dist/types/src/ProgressBar/ProgressBarStepped.d.ts +2 -1
- package/jestSetup.js +1 -0
- package/package.json +3 -3
- package/src/Chip/Chip.test.tsx +1 -1
- package/src/Chip/Chip.tsx +1 -1
- package/src/Disclosure/Disclosure.test.tsx +102 -44
- package/src/Form/Form.test.tsx +1 -1
- package/src/FormatFile/components/ProgressBar/ProgressBar.style.tsx +1 -1
- package/src/Glimmer/Glimmer.test.tsx +16 -5
- package/src/ProgressBar/ProgressBar.tsx +4 -2
- package/src/ProgressBar/__snapshots__/ProgressBar.test.tsx.snap +2 -2
- package/src/Switch/components/BaseSwitch/BaseSwitch.test.tsx +75 -50
- package/src/Switch/components/BaseSwitch/BaseSwitch.tsx +3 -3
- package/src/Disclosure/__snapshots__/Disclosure.test.tsx.snap +0 -482
- package/src/Switch/components/BaseSwitch/__snapshots__/BaseSwitch.test.tsx.snap +0 -217
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"date-fns-tz": "^2.0.0",
|
|
71
71
|
"react": "^18.2.0",
|
|
72
72
|
"react-intl": "^6.4.2",
|
|
73
|
-
"react-native": ">=0.
|
|
73
|
+
"react-native": ">=0.76.0",
|
|
74
74
|
"react-native-gesture-handler": ">=2.10.0",
|
|
75
75
|
"react-native-keyboard-aware-scroll-view": "^0.9.5",
|
|
76
76
|
"react-native-modal-datetime-picker": " >=13.0.0",
|
|
@@ -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": "53243a521ce9e1f2a05e29674b2d720dd6ffd49e"
|
|
84
84
|
}
|
package/dist/src/Chip/Chip.js
CHANGED
|
@@ -16,7 +16,7 @@ export function Chip({ icon, label, onPress, isDismissible, isActive, inactiveBa
|
|
|
16
16
|
{
|
|
17
17
|
backgroundColor: inactiveBackgroundColor === "surface"
|
|
18
18
|
? tokens["color-surface"]
|
|
19
|
-
: tokens["color-
|
|
19
|
+
: tokens["color-interactive--background"],
|
|
20
20
|
},
|
|
21
21
|
isActive && { backgroundColor: accentColor },
|
|
22
22
|
];
|
|
@@ -6,7 +6,7 @@ export const useStyles = buildThemedStyles(tokens => {
|
|
|
6
6
|
height: 8,
|
|
7
7
|
borderRadius: tokens["radius-circle"],
|
|
8
8
|
overflow: "hidden",
|
|
9
|
-
backgroundColor: tokens["color-
|
|
9
|
+
backgroundColor: tokens["color-interactive--background"],
|
|
10
10
|
},
|
|
11
11
|
progress: {
|
|
12
12
|
height: "100%",
|
|
@@ -12,8 +12,8 @@ export function ProgressBar({ loading, total, current, inProgress = 0, reverseTh
|
|
|
12
12
|
const { tokens } = useAtlantisTheme();
|
|
13
13
|
return (React.createElement(View, { accessible: true, accessibilityRole: "progressbar", accessibilityLabel: getA11yLabel() },
|
|
14
14
|
header,
|
|
15
|
-
variation === "stepped" ? (React.createElement(ProgressBarStepped, { total: total, current: current, color: reverseTheme ? undefined : tokens["color-
|
|
16
|
-
React.createElement(ProgressBarInner, { width: 100, animationDuration: 0, color: reverseTheme ? undefined : tokens["color-
|
|
15
|
+
variation === "stepped" ? (React.createElement(ProgressBarStepped, { total: total, current: current, color: reverseTheme ? undefined : tokens["color-interactive--background"], loading: loading, inProgress: inProgress })) : (React.createElement(View, { style: [styles.progressBarContainer, sizeStyles[size]] },
|
|
16
|
+
React.createElement(ProgressBarInner, { width: 100, animationDuration: 0, color: reverseTheme ? undefined : tokens["color-interactive--background"] }),
|
|
17
17
|
!loading && (React.createElement(React.Fragment, null,
|
|
18
18
|
inProgress && inProgress > 0 ? (React.createElement(ProgressBarInner, { width: calculateWidth(total, current + inProgress), color: tokens["color-informative"], animationDuration: 800 })) : (React.createElement(React.Fragment, null)),
|
|
19
19
|
React.createElement(ProgressBarInner, { width: calculateWidth(total, current), color: tokens["color-interactive"], animationDuration: 600 })))))));
|
|
@@ -19,7 +19,7 @@ export function BaseSwitch({ value, defaultValue, onValueChange, disabled = fals
|
|
|
19
19
|
return tokens["color-interactive"];
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
|
-
return tokens["color-
|
|
22
|
+
return tokens["color-interactive--background"];
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
return undefined; //use default iOS
|
|
@@ -39,7 +39,7 @@ export function BaseSwitch({ value, defaultValue, onValueChange, disabled = fals
|
|
|
39
39
|
//iOS
|
|
40
40
|
return {
|
|
41
41
|
true: tokens["color-interactive"],
|
|
42
|
-
false: tokens["color-
|
|
42
|
+
false: tokens["color-interactive--background"],
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -48,7 +48,7 @@ export function BaseSwitch({ value, defaultValue, onValueChange, disabled = fals
|
|
|
48
48
|
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(val);
|
|
49
49
|
field.onChange(val);
|
|
50
50
|
}
|
|
51
|
-
}, disabled: disabled, thumbColor: getThumbColor(), trackColor: getTrackColors(), ios_backgroundColor: tokens["color-
|
|
51
|
+
}, disabled: disabled, thumbColor: getThumbColor(), trackColor: getTrackColors(), ios_backgroundColor: tokens["color-interactive--background"], accessibilityLabel: accessibilityLabel, accessibilityRole: "switch", accessibilityState: {
|
|
52
52
|
disabled: disabled,
|
|
53
53
|
checked: internalValue,
|
|
54
54
|
} }));
|