@spothero/ui 25.1.1 → 25.1.3-beta.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/index.cjs.js +9 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -57,8 +57,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
57
57
|
r,
|
|
58
58
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
59
59
|
if (Object.getOwnPropertySymbols) {
|
|
60
|
-
var
|
|
61
|
-
for (r = 0; r <
|
|
60
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
61
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
62
62
|
}
|
|
63
63
|
return i;
|
|
64
64
|
}
|
|
@@ -66,7 +66,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
66
66
|
if (null == r) return {};
|
|
67
67
|
var t = {};
|
|
68
68
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
69
|
-
if (e.
|
|
69
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
70
70
|
t[n] = r[n];
|
|
71
71
|
}
|
|
72
72
|
return t;
|
|
@@ -4623,14 +4623,16 @@ const ToggleButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4623
4623
|
onChange,
|
|
4624
4624
|
value,
|
|
4625
4625
|
children,
|
|
4626
|
-
groupProps
|
|
4626
|
+
groupProps,
|
|
4627
|
+
buttonGroupStyles: _buttonGroupStyles = {},
|
|
4628
|
+
childrenStyles = {}
|
|
4627
4629
|
} = props;
|
|
4628
4630
|
if (!children) throw new Error('Children required');
|
|
4629
4631
|
|
|
4630
4632
|
// iterate over array of child nodes to apply extended props
|
|
4631
4633
|
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$6({
|
|
4632
4634
|
ref: ref,
|
|
4633
|
-
sx: _objectSpread2({}, buttonGroupStyles)
|
|
4635
|
+
sx: _objectSpread2(_objectSpread2({}, buttonGroupStyles), _buttonGroupStyles)
|
|
4634
4636
|
}, groupProps), React__default.Children.map(children, CHILD => {
|
|
4635
4637
|
var _CHILD$props3;
|
|
4636
4638
|
return /*#__PURE__*/React__default.cloneElement(CHILD, _objectSpread2({
|
|
@@ -4640,9 +4642,9 @@ const ToggleButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4640
4642
|
onChange(CHILD === null || CHILD === void 0 || (_CHILD$props2 = CHILD.props) === null || _CHILD$props2 === void 0 ? void 0 : _CHILD$props2.value);
|
|
4641
4643
|
}
|
|
4642
4644
|
}, value !== (CHILD === null || CHILD === void 0 || (_CHILD$props3 = CHILD.props) === null || _CHILD$props3 === void 0 ? void 0 : _CHILD$props3.value) ? {
|
|
4643
|
-
sx: _objectSpread2(_objectSpread2({}, defaultStyles), inactiveStyles)
|
|
4645
|
+
sx: _objectSpread2(_objectSpread2(_objectSpread2({}, defaultStyles), inactiveStyles), childrenStyles)
|
|
4644
4646
|
} : {
|
|
4645
|
-
sx: _objectSpread2(_objectSpread2({}, defaultStyles), activeStyles)
|
|
4647
|
+
sx: _objectSpread2(_objectSpread2(_objectSpread2({}, defaultStyles), activeStyles), childrenStyles)
|
|
4646
4648
|
}));
|
|
4647
4649
|
}));
|
|
4648
4650
|
});
|