@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.esm.js CHANGED
@@ -47434,16 +47434,11 @@ var controlStyles = {
47434
47434
  opacity: 0
47435
47435
  },
47436
47436
  _invalid: {
47437
- '&:focus': {
47438
- borderBottomRadius: 0,
47439
- borderColor: 'primary.default'
47440
- },
47441
47437
  '&:focus + label': {
47442
47438
  color: 'gray.600'
47443
47439
  },
47444
47440
  '& + label': {
47445
- color: 'error',
47446
- transform: 'translateY(-16px)'
47441
+ color: 'error'
47447
47442
  },
47448
47443
  '& + label .chakra-form__required-indicator': {
47449
47444
  //Styling for asterisk always to be red if invalid
@@ -52694,7 +52689,13 @@ var AutoSuggestSelect$1 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
52694
52689
  ref: innerRef
52695
52690
  }, innerProps), /*#__PURE__*/React__default.createElement(ForwardRef, null));
52696
52691
  };
52697
- return /*#__PURE__*/React__default.createElement(FormControl, {
52692
+ return /*#__PURE__*/React__default.createElement(Box, {
52693
+ sx: isInvalid ? {
52694
+ label: {
52695
+ color: 'error'
52696
+ }
52697
+ } : {}
52698
+ }, /*#__PURE__*/React__default.createElement(FormControl, {
52698
52699
  errorMessage: errorMessage,
52699
52700
  isRequired: isRequired,
52700
52701
  helperText: helperText,
@@ -52725,7 +52726,7 @@ var AutoSuggestSelect$1 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
52725
52726
  defaultValue: defaultValue,
52726
52727
  styles: customStyles,
52727
52728
  ref: ref
52728
- }));
52729
+ })));
52729
52730
  });
52730
52731
  AutoSuggestSelect$1.propTypes = {
52731
52732
  /** ID applied to the select and label */