@jobber/components-native 0.76.1-JOB-116234-50e11a8.34 → 0.76.1-JOB-116234-5a10c63.37
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.76.1-JOB-116234-
|
|
3
|
+
"version": "0.76.1-JOB-116234-5a10c63.37+5a10c630",
|
|
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": "5a10c6303e649a8cebcfa4d6216b7e5f462a4490"
|
|
84
84
|
}
|
|
@@ -6,12 +6,12 @@ export function ActionItemGroup({ children, }) {
|
|
|
6
6
|
return React.createElement(View, null, renderChildren(children));
|
|
7
7
|
}
|
|
8
8
|
function renderChildren(children) {
|
|
9
|
+
const styles = useStyles();
|
|
9
10
|
const childArray = React.Children.toArray(children);
|
|
10
11
|
if (childArray.length === 1)
|
|
11
12
|
return children;
|
|
12
13
|
return childArray.map((child, index) => {
|
|
13
14
|
const isSubsequentChild = index !== 0;
|
|
14
|
-
const styles = useStyles();
|
|
15
15
|
return (React.createElement(View, { key: index },
|
|
16
16
|
isSubsequentChild && (React.createElement(View, { style: styles.actionItemHorizontalOffset },
|
|
17
17
|
React.createElement(Divider, null))),
|
|
@@ -46,6 +46,7 @@ function CheckboxGroupInternal({ label, disabled, children, state, accessibility
|
|
|
46
46
|
onChange === null || onChange === void 0 ? void 0 : onChange(data);
|
|
47
47
|
};
|
|
48
48
|
const indeterminate = checkIndeterminateStatus(actualCheckedValues);
|
|
49
|
+
const styles = useStyles();
|
|
49
50
|
function cloneChildCheckbox(checkbox) {
|
|
50
51
|
const name = throwErrorIfItHasNoName(checkbox.props.name);
|
|
51
52
|
const childDisabled = disabled || checkbox.props.disabled;
|
|
@@ -80,7 +81,6 @@ function CheckboxGroupInternal({ label, disabled, children, state, accessibility
|
|
|
80
81
|
}
|
|
81
82
|
return acc && value;
|
|
82
83
|
}
|
|
83
|
-
const styles = useStyles();
|
|
84
84
|
return (React.createElement(View, null,
|
|
85
85
|
isNested ? (React.createElement(React.Fragment, null,
|
|
86
86
|
React.createElement(Checkbox, { name: parentName, label: label, accessibilityLabel: accessibilityLabel || label, indeterminate: indeterminate, checked: actualCheckedValues.parentChecked || false, onChange: value => {
|