@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.cjs.js
CHANGED
|
@@ -85,8 +85,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
85
85
|
r,
|
|
86
86
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
87
87
|
if (Object.getOwnPropertySymbols) {
|
|
88
|
-
var
|
|
89
|
-
for (r = 0; r <
|
|
88
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
89
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
90
90
|
}
|
|
91
91
|
return i;
|
|
92
92
|
}
|
|
@@ -94,7 +94,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
94
94
|
if (null == r) return {};
|
|
95
95
|
var t = {};
|
|
96
96
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
97
|
-
if (e.
|
|
97
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
98
98
|
t[n] = r[n];
|
|
99
99
|
}
|
|
100
100
|
return t;
|
|
@@ -4651,14 +4651,16 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4651
4651
|
onChange,
|
|
4652
4652
|
value,
|
|
4653
4653
|
children,
|
|
4654
|
-
groupProps
|
|
4654
|
+
groupProps,
|
|
4655
|
+
buttonGroupStyles: _buttonGroupStyles = {},
|
|
4656
|
+
childrenStyles = {}
|
|
4655
4657
|
} = props;
|
|
4656
4658
|
if (!children) throw new Error('Children required');
|
|
4657
4659
|
|
|
4658
4660
|
// iterate over array of child nodes to apply extended props
|
|
4659
4661
|
return /*#__PURE__*/React__namespace.default.createElement(react.ButtonGroup, _extends$6({
|
|
4660
4662
|
ref: ref,
|
|
4661
|
-
sx: _objectSpread2({}, buttonGroupStyles)
|
|
4663
|
+
sx: _objectSpread2(_objectSpread2({}, buttonGroupStyles), _buttonGroupStyles)
|
|
4662
4664
|
}, groupProps), React__namespace.default.Children.map(children, CHILD => {
|
|
4663
4665
|
var _CHILD$props3;
|
|
4664
4666
|
return /*#__PURE__*/React__namespace.default.cloneElement(CHILD, _objectSpread2({
|
|
@@ -4668,9 +4670,9 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4668
4670
|
onChange(CHILD === null || CHILD === void 0 || (_CHILD$props2 = CHILD.props) === null || _CHILD$props2 === void 0 ? void 0 : _CHILD$props2.value);
|
|
4669
4671
|
}
|
|
4670
4672
|
}, value !== (CHILD === null || CHILD === void 0 || (_CHILD$props3 = CHILD.props) === null || _CHILD$props3 === void 0 ? void 0 : _CHILD$props3.value) ? {
|
|
4671
|
-
sx: _objectSpread2(_objectSpread2({}, defaultStyles), inactiveStyles)
|
|
4673
|
+
sx: _objectSpread2(_objectSpread2(_objectSpread2({}, defaultStyles), inactiveStyles), childrenStyles)
|
|
4672
4674
|
} : {
|
|
4673
|
-
sx: _objectSpread2(_objectSpread2({}, defaultStyles), activeStyles)
|
|
4675
|
+
sx: _objectSpread2(_objectSpread2(_objectSpread2({}, defaultStyles), activeStyles), childrenStyles)
|
|
4674
4676
|
}));
|
|
4675
4677
|
}));
|
|
4676
4678
|
});
|