@spothero/ui 22.5.0 → 22.5.2

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
@@ -47460,7 +47460,6 @@ var controlStyles = {
47460
47460
  },
47461
47461
  _invalid: {
47462
47462
  '&:focus': {
47463
- borderBottomRadius: 0,
47464
47463
  borderColor: 'primary.default'
47465
47464
  },
47466
47465
  '&:focus + label': {
@@ -52719,7 +52718,13 @@ var AutoSuggestSelect$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
52719
52718
  ref: innerRef
52720
52719
  }, innerProps), /*#__PURE__*/React__namespace.default.createElement(ForwardRef, null));
52721
52720
  };
52722
- return /*#__PURE__*/React__namespace.default.createElement(FormControl, {
52721
+ return /*#__PURE__*/React__namespace.default.createElement(Box, {
52722
+ sx: isInvalid ? {
52723
+ label: {
52724
+ color: 'error'
52725
+ }
52726
+ } : {}
52727
+ }, /*#__PURE__*/React__namespace.default.createElement(FormControl, {
52723
52728
  errorMessage: errorMessage,
52724
52729
  isRequired: isRequired,
52725
52730
  helperText: helperText,
@@ -52750,7 +52755,7 @@ var AutoSuggestSelect$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
52750
52755
  defaultValue: defaultValue,
52751
52756
  styles: customStyles,
52752
52757
  ref: ref
52753
- }));
52758
+ })));
52754
52759
  });
52755
52760
  AutoSuggestSelect$1.propTypes = {
52756
52761
  /** ID applied to the select and label */