@spothero/ui 25.1.3-beta.1 → 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 CHANGED
@@ -3842,7 +3842,7 @@ Select.propTypes = {
3842
3842
  rightElementStyles: PropTypes__default.default.object
3843
3843
  };
3844
3844
 
3845
- const _excluded$8 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "isHighlighted", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "buttonValue"];
3845
+ const _excluded$8 = ["label", "helperText", "errorMessage", "isInvalid", "isDisabled", "isRequired", "rightElement", "leftElement", "rightElementStyles", "leftElementStyles", "buttonValue"];
3846
3846
 
3847
3847
  /**
3848
3848
  * A component used in the homepage/midfunnel refresh of 2024
@@ -3859,7 +3859,6 @@ const Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3859
3859
  isInvalid,
3860
3860
  isDisabled,
3861
3861
  isRequired,
3862
- isHighlighted,
3863
3862
  rightElement,
3864
3863
  leftElement,
3865
3864
  rightElementStyles,
@@ -3893,13 +3892,10 @@ const Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3893
3892
  }, props, {
3894
3893
  isDisabled: isDisabled,
3895
3894
  color: isInvalid || !label ? 'gray.600' : 'black',
3896
- borderColor: isInvalid ? 'error' : isHighlighted ? 'primary.default' : 'gray.200',
3895
+ borderColor: isInvalid ? 'error' : 'gray.200',
3897
3896
  _focus: {
3898
3897
  borderColor: isInvalid ? 'error' : 'primary.default'
3899
3898
  },
3900
- _hover: {
3901
- borderColor: isHighlighted ? 'primary.default' : 'gray.300'
3902
- },
3903
3899
  paddingTop: label ? 'var(--chakra-sizes-5-5)' : '3',
3904
3900
  textTransform: "none"
3905
3901
  }), buttonValue));
@@ -4053,7 +4049,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4053
4049
  isRequired: isRequired,
4054
4050
  helperText: helperText,
4055
4051
  label: label,
4056
- inputId: id,
4052
+ id: id,
4057
4053
  leftElement: leftElement,
4058
4054
  leftElementStyles: leftElementStyles
4059
4055
  }, /*#__PURE__*/React__namespace.default.createElement(AsyncSelect__default.default, {
@@ -4070,7 +4066,7 @@ const AutoSuggestSelect$1 = /*#__PURE__*/React.forwardRef((_ref, ref) => {
4070
4066
  loadOptions: getOptions,
4071
4067
  onChange: handleChange,
4072
4068
  isDisabled: isDisabled,
4073
- id: id,
4069
+ inputId: id,
4074
4070
  placeholder: placeholder,
4075
4071
  defaultValue: defaultValue,
4076
4072
  styles: customStyles,
@@ -4655,16 +4651,14 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
4655
4651
  onChange,
4656
4652
  value,
4657
4653
  children,
4658
- groupProps,
4659
- buttonGroupStyles: _buttonGroupStyles = {},
4660
- childrenStyles = {}
4654
+ groupProps
4661
4655
  } = props;
4662
4656
  if (!children) throw new Error('Children required');
4663
4657
 
4664
4658
  // iterate over array of child nodes to apply extended props
4665
4659
  return /*#__PURE__*/React__namespace.default.createElement(react.ButtonGroup, _extends$6({
4666
4660
  ref: ref,
4667
- sx: _objectSpread2(_objectSpread2({}, buttonGroupStyles), _buttonGroupStyles)
4661
+ sx: _objectSpread2({}, buttonGroupStyles)
4668
4662
  }, groupProps), React__namespace.default.Children.map(children, CHILD => {
4669
4663
  var _CHILD$props3;
4670
4664
  return /*#__PURE__*/React__namespace.default.cloneElement(CHILD, _objectSpread2({
@@ -4674,9 +4668,9 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
4674
4668
  onChange(CHILD === null || CHILD === void 0 || (_CHILD$props2 = CHILD.props) === null || _CHILD$props2 === void 0 ? void 0 : _CHILD$props2.value);
4675
4669
  }
4676
4670
  }, 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)
4671
+ sx: _objectSpread2(_objectSpread2({}, defaultStyles), inactiveStyles)
4678
4672
  } : {
4679
- sx: _objectSpread2(_objectSpread2(_objectSpread2({}, defaultStyles), activeStyles), childrenStyles)
4673
+ sx: _objectSpread2(_objectSpread2({}, defaultStyles), activeStyles)
4680
4674
  }));
4681
4675
  }));
4682
4676
  });