@jobber/components-native 0.80.1-upgrade-to-64048d8.25 → 0.80.1-upgrade-to-2ee92b7.19
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/Form/Form.js +0 -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/ThumbnailList/types.d.ts +1 -1
- package/package.json +2 -2
- package/src/Chip/Chip.test.tsx +1 -1
- package/src/Chip/Chip.tsx +1 -1
- package/src/Form/Form.tsx +0 -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.test.tsx +75 -50
- package/src/Switch/components/BaseSwitch/BaseSwitch.tsx +3 -3
- package/src/ThumbnailList/types.ts +1 -1
- 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.80.1-upgrade-to-
|
|
3
|
+
"version": "0.80.1-upgrade-to-2ee92b7.19+2ee92b75",
|
|
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": "2ee92b753e53fd4b5235e27553378ad899192068"
|
|
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
|
];
|
package/dist/src/Form/Form.js
CHANGED
|
@@ -102,7 +102,6 @@ function InternalForm({ children, onBeforeSubmit, onSubmit, onSubmitError, onSub
|
|
|
102
102
|
setMessageBannerHeight(event.nativeEvent.layout.height);
|
|
103
103
|
};
|
|
104
104
|
const styles = useStyles();
|
|
105
|
-
// Comment to trigger build once more and again and again and again
|
|
106
105
|
return (React.createElement(FormProvider, Object.assign({}, formMethods),
|
|
107
106
|
React.createElement(React.Fragment, null,
|
|
108
107
|
(isSubmitting || isSecondaryActionLoading) && React.createElement(FormMask, null),
|
|
@@ -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
|
} }));
|