@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.cjs.js CHANGED
@@ -1025,18 +1025,20 @@ Button$1.defaultProps = {
1025
1025
  type: 'button'
1026
1026
  };
1027
1027
 
1028
- const _excluded$s = ["header", "children"];
1028
+ const _excluded$s = ["header", "drawerCloseButton", "children", "headerProps"];
1029
1029
  const Drawer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1030
1030
  let {
1031
1031
  header,
1032
- children
1032
+ drawerCloseButton,
1033
+ children,
1034
+ headerProps
1033
1035
  } = _ref,
1034
1036
  props = _objectWithoutProperties(_ref, _excluded$s);
1035
1037
  return /*#__PURE__*/React__namespace.default.createElement(react.Drawer, _extends$6({
1036
1038
  placement: "right"
1037
1039
  }, props, {
1038
1040
  ref: ref
1039
- }), /*#__PURE__*/React__namespace.default.createElement(react.DrawerOverlay, null), /*#__PURE__*/React__namespace.default.createElement(react.DrawerContent, null, /*#__PURE__*/React__namespace.default.createElement(react.DrawerHeader, null, header, /*#__PURE__*/React__namespace.default.createElement(react.DrawerCloseButton, null)), children));
1041
+ }), /*#__PURE__*/React__namespace.default.createElement(react.DrawerOverlay, null), /*#__PURE__*/React__namespace.default.createElement(react.DrawerContent, null, /*#__PURE__*/React__namespace.default.createElement(react.DrawerHeader, headerProps, header, drawerCloseButton || /*#__PURE__*/React__namespace.default.createElement(react.DrawerCloseButton, null)), children));
1040
1042
  });
1041
1043
  Drawer.propTypes = {
1042
1044
  children: PropTypes__default.default.node.isRequired,
@@ -4053,7 +4055,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4053
4055
  isRequired: isRequired,
4054
4056
  helperText: helperText,
4055
4057
  label: label,
4056
- inputId: id,
4058
+ id: id,
4057
4059
  leftElement: leftElement,
4058
4060
  leftElementStyles: leftElementStyles
4059
4061
  }, /*#__PURE__*/React__namespace.default.createElement(AsyncSelect__default.default, {
@@ -4070,7 +4072,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4070
4072
  loadOptions: getOptions,
4071
4073
  onChange: handleChange,
4072
4074
  isDisabled: isDisabled,
4073
- id: id,
4075
+ inputId: id,
4074
4076
  placeholder: placeholder,
4075
4077
  defaultValue: defaultValue,
4076
4078
  styles: customStyles,
@@ -4673,10 +4675,8 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
4673
4675
  if (value === (CHILD === null || CHILD === void 0 || (_CHILD$props = CHILD.props) === null || _CHILD$props === void 0 ? void 0 : _CHILD$props.value)) return;
4674
4676
  onChange(CHILD === null || CHILD === void 0 || (_CHILD$props2 = CHILD.props) === null || _CHILD$props2 === void 0 ? void 0 : _CHILD$props2.value);
4675
4677
  }
4676
- }, value !== (CHILD === null || CHILD === void 0 || (_CHILD$props3 = CHILD.props) === null || _CHILD$props3 === void 0 ? void 0 : _CHILD$props3.value) ? {
4677
- sx: _objectSpread2(_objectSpread2(_objectSpread2({}, defaultStyles), inactiveStyles), childrenStyles)
4678
- } : {
4679
- sx: _objectSpread2(_objectSpread2(_objectSpread2({}, defaultStyles), activeStyles), childrenStyles)
4678
+ }, {
4679
+ 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)
4680
4680
  }));
4681
4681
  }));
4682
4682
  });