@spothero/ui 25.1.3-beta.1 → 25.1.5

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.esm.js CHANGED
@@ -997,18 +997,20 @@ Button$1.defaultProps = {
997
997
  type: 'button'
998
998
  };
999
999
 
1000
- const _excluded$s = ["header", "children"];
1000
+ const _excluded$s = ["header", "drawerCloseButton", "children", "headerProps"];
1001
1001
  const Drawer = /*#__PURE__*/forwardRef((_ref, ref) => {
1002
1002
  let {
1003
1003
  header,
1004
- children
1004
+ drawerCloseButton,
1005
+ children,
1006
+ headerProps
1005
1007
  } = _ref,
1006
1008
  props = _objectWithoutProperties(_ref, _excluded$s);
1007
1009
  return /*#__PURE__*/React__default.createElement(Drawer$1, _extends$6({
1008
1010
  placement: "right"
1009
1011
  }, props, {
1010
1012
  ref: ref
1011
- }), /*#__PURE__*/React__default.createElement(DrawerOverlay, null), /*#__PURE__*/React__default.createElement(DrawerContent, null, /*#__PURE__*/React__default.createElement(DrawerHeader, null, header, /*#__PURE__*/React__default.createElement(DrawerCloseButton, null)), children));
1013
+ }), /*#__PURE__*/React__default.createElement(DrawerOverlay, null), /*#__PURE__*/React__default.createElement(DrawerContent, null, /*#__PURE__*/React__default.createElement(DrawerHeader, headerProps, header, drawerCloseButton || /*#__PURE__*/React__default.createElement(DrawerCloseButton, null)), children));
1012
1014
  });
1013
1015
  Drawer.propTypes = {
1014
1016
  children: PropTypes.node.isRequired,
@@ -4025,7 +4027,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
4025
4027
  isRequired: isRequired,
4026
4028
  helperText: helperText,
4027
4029
  label: label,
4028
- inputId: id,
4030
+ id: id,
4029
4031
  leftElement: leftElement,
4030
4032
  leftElementStyles: leftElementStyles
4031
4033
  }, /*#__PURE__*/React__default.createElement(AsyncSelect, {
@@ -4042,7 +4044,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
4042
4044
  loadOptions: getOptions,
4043
4045
  onChange: handleChange,
4044
4046
  isDisabled: isDisabled,
4045
- id: id,
4047
+ inputId: id,
4046
4048
  placeholder: placeholder,
4047
4049
  defaultValue: defaultValue,
4048
4050
  styles: customStyles,
@@ -4645,10 +4647,8 @@ const ToggleButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
4645
4647
  if (value === (CHILD === null || CHILD === void 0 || (_CHILD$props = CHILD.props) === null || _CHILD$props === void 0 ? void 0 : _CHILD$props.value)) return;
4646
4648
  onChange(CHILD === null || CHILD === void 0 || (_CHILD$props2 = CHILD.props) === null || _CHILD$props2 === void 0 ? void 0 : _CHILD$props2.value);
4647
4649
  }
4648
- }, value !== (CHILD === null || CHILD === void 0 || (_CHILD$props3 = CHILD.props) === null || _CHILD$props3 === void 0 ? void 0 : _CHILD$props3.value) ? {
4649
- sx: _objectSpread2(_objectSpread2(_objectSpread2({}, defaultStyles), inactiveStyles), childrenStyles)
4650
- } : {
4651
- sx: _objectSpread2(_objectSpread2(_objectSpread2({}, defaultStyles), activeStyles), childrenStyles)
4650
+ }, {
4651
+ sx: _objectSpread2(_objectSpread2(_objectSpread2({}, defaultStyles), value !== (CHILD === null || CHILD === void 0 || (_CHILD$props3 = CHILD.props) === null || _CHILD$props3 === void 0 ? void 0 : _CHILD$props3.value) ? inactiveStyles : activeStyles), childrenStyles)
4652
4652
  }));
4653
4653
  }));
4654
4654
  });