@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.esm.js CHANGED
@@ -47435,7 +47435,6 @@ var controlStyles = {
47435
47435
  },
47436
47436
  _invalid: {
47437
47437
  '&:focus': {
47438
- borderBottomRadius: 0,
47439
47438
  borderColor: 'primary.default'
47440
47439
  },
47441
47440
  '&:focus + label': {
@@ -52694,7 +52693,13 @@ var AutoSuggestSelect$1 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
52694
52693
  ref: innerRef
52695
52694
  }, innerProps), /*#__PURE__*/React__default.createElement(ForwardRef, null));
52696
52695
  };
52697
- return /*#__PURE__*/React__default.createElement(FormControl, {
52696
+ return /*#__PURE__*/React__default.createElement(Box, {
52697
+ sx: isInvalid ? {
52698
+ label: {
52699
+ color: 'error'
52700
+ }
52701
+ } : {}
52702
+ }, /*#__PURE__*/React__default.createElement(FormControl, {
52698
52703
  errorMessage: errorMessage,
52699
52704
  isRequired: isRequired,
52700
52705
  helperText: helperText,
@@ -52725,7 +52730,7 @@ var AutoSuggestSelect$1 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
52725
52730
  defaultValue: defaultValue,
52726
52731
  styles: customStyles,
52727
52732
  ref: ref
52728
- }));
52733
+ })));
52729
52734
  });
52730
52735
  AutoSuggestSelect$1.propTypes = {
52731
52736
  /** ID applied to the select and label */