@spothero/ui 22.5.0 → 22.5.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
@@ -47459,16 +47459,11 @@ var controlStyles = {
47459
47459
  opacity: 0
47460
47460
  },
47461
47461
  _invalid: {
47462
- '&:focus': {
47463
- borderBottomRadius: 0,
47464
- borderColor: 'primary.default'
47465
- },
47466
47462
  '&:focus + label': {
47467
47463
  color: 'gray.600'
47468
47464
  },
47469
47465
  '& + label': {
47470
- color: 'error',
47471
- transform: 'translateY(-16px)'
47466
+ color: 'error'
47472
47467
  },
47473
47468
  '& + label .chakra-form__required-indicator': {
47474
47469
  //Styling for asterisk always to be red if invalid
@@ -52719,7 +52714,13 @@ var AutoSuggestSelect$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
52719
52714
  ref: innerRef
52720
52715
  }, innerProps), /*#__PURE__*/React__namespace.default.createElement(ForwardRef, null));
52721
52716
  };
52722
- return /*#__PURE__*/React__namespace.default.createElement(FormControl, {
52717
+ return /*#__PURE__*/React__namespace.default.createElement(Box, {
52718
+ sx: isInvalid ? {
52719
+ label: {
52720
+ color: 'error'
52721
+ }
52722
+ } : {}
52723
+ }, /*#__PURE__*/React__namespace.default.createElement(FormControl, {
52723
52724
  errorMessage: errorMessage,
52724
52725
  isRequired: isRequired,
52725
52726
  helperText: helperText,
@@ -52750,7 +52751,7 @@ var AutoSuggestSelect$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
52750
52751
  defaultValue: defaultValue,
52751
52752
  styles: customStyles,
52752
52753
  ref: ref
52753
- }));
52754
+ })));
52754
52755
  });
52755
52756
  AutoSuggestSelect$1.propTypes = {
52756
52757
  /** ID applied to the select and label */