@spothero/ui 25.1.3-beta.0 → 25.1.3
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 +6 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -4049,7 +4049,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
4049
4049
|
isRequired: isRequired,
|
|
4050
4050
|
helperText: helperText,
|
|
4051
4051
|
label: label,
|
|
4052
|
-
|
|
4052
|
+
id: id,
|
|
4053
4053
|
leftElement: leftElement,
|
|
4054
4054
|
leftElementStyles: leftElementStyles
|
|
4055
4055
|
}, /*#__PURE__*/React__namespace.default.createElement(AsyncSelect__default.default, {
|
|
@@ -4066,7 +4066,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
4066
4066
|
loadOptions: getOptions,
|
|
4067
4067
|
onChange: handleChange,
|
|
4068
4068
|
isDisabled: isDisabled,
|
|
4069
|
-
|
|
4069
|
+
inputId: id,
|
|
4070
4070
|
placeholder: placeholder,
|
|
4071
4071
|
defaultValue: defaultValue,
|
|
4072
4072
|
styles: customStyles,
|
|
@@ -4651,16 +4651,14 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4651
4651
|
onChange,
|
|
4652
4652
|
value,
|
|
4653
4653
|
children,
|
|
4654
|
-
groupProps
|
|
4655
|
-
buttonGroupStyles: _buttonGroupStyles = {},
|
|
4656
|
-
childrenStyles = {}
|
|
4654
|
+
groupProps
|
|
4657
4655
|
} = props;
|
|
4658
4656
|
if (!children) throw new Error('Children required');
|
|
4659
4657
|
|
|
4660
4658
|
// iterate over array of child nodes to apply extended props
|
|
4661
4659
|
return /*#__PURE__*/React__namespace.default.createElement(react.ButtonGroup, _extends$6({
|
|
4662
4660
|
ref: ref,
|
|
4663
|
-
sx: _objectSpread2(
|
|
4661
|
+
sx: _objectSpread2({}, buttonGroupStyles)
|
|
4664
4662
|
}, groupProps), React__namespace.default.Children.map(children, CHILD => {
|
|
4665
4663
|
var _CHILD$props3;
|
|
4666
4664
|
return /*#__PURE__*/React__namespace.default.cloneElement(CHILD, _objectSpread2({
|
|
@@ -4670,9 +4668,9 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4670
4668
|
onChange(CHILD === null || CHILD === void 0 || (_CHILD$props2 = CHILD.props) === null || _CHILD$props2 === void 0 ? void 0 : _CHILD$props2.value);
|
|
4671
4669
|
}
|
|
4672
4670
|
}, value !== (CHILD === null || CHILD === void 0 || (_CHILD$props3 = CHILD.props) === null || _CHILD$props3 === void 0 ? void 0 : _CHILD$props3.value) ? {
|
|
4673
|
-
sx: _objectSpread2(_objectSpread2(
|
|
4671
|
+
sx: _objectSpread2(_objectSpread2({}, defaultStyles), inactiveStyles)
|
|
4674
4672
|
} : {
|
|
4675
|
-
sx: _objectSpread2(_objectSpread2(
|
|
4673
|
+
sx: _objectSpread2(_objectSpread2({}, defaultStyles), activeStyles)
|
|
4676
4674
|
}));
|
|
4677
4675
|
}));
|
|
4678
4676
|
});
|