@televet/kibble-ui 1.12.2 → 1.12.3-beta.2wp810y.0

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.
@@ -1,6 +1,6 @@
1
+ import React from 'react';
1
2
  import { CheckboxGroupProps as CCheckboxGroupProps, SystemProps } from '@chakra-ui/react';
2
3
  import { WithFormControlProps } from 'components/Forms/FormControl/formControl.component';
3
- import React from 'react';
4
4
  import { FlexDirection } from 'shared/types';
5
5
  import { CheckboxProps } from '../../checkbox.component';
6
6
  import { CheckboxSize, CheckboxVariant } from '../../checkbox.types';
@@ -1,6 +1,6 @@
1
+ import React from 'react';
1
2
  import { RadioGroupProps as CRadioGroupProps, SystemProps } from '@chakra-ui/react';
2
3
  import { WithFormControlProps } from 'components/Forms/FormControl/formControl.component';
3
- import React from 'react';
4
4
  import { FlexDirection } from 'shared/types';
5
5
  import { RadioProps } from '../../radio.component';
6
6
  import { RadioSize } from '../../radio.types';
package/build/index.js CHANGED
@@ -3595,7 +3595,7 @@ function withFormControl(Component) {
3595
3595
  return (React__default["default"].createElement(react.FormControl, __assign({}, formControlStyle, { isInvalid: isInvalid, isRequired: isRequired, isReadOnly: isReadOnly, isDisabled: isDisabled }),
3596
3596
  label && (React__default["default"].createElement(react.FormLabel, __assign({ display: isFieldInline ? 'inline-block' : 'block', color: colors.text.light.default }, labelStyle), label)),
3597
3597
  React__default["default"].createElement(Component, __assign({}, props, { "$isFieldInline": isFieldInline, errorBorderColor: colors.border.light.error, focusBorderColor: colors.border.light.focus })),
3598
- React__default["default"].createElement(react.Flex, { mt: 2, w: "100%", justifyContent: alignment, alignItems: "center" },
3598
+ React__default["default"].createElement(react.Flex, { mt: isInvalid || helperText ? 2 : 0, w: "100%", justifyContent: alignment, alignItems: "center" },
3599
3599
  React__default["default"].createElement(react.FormErrorMessage, { m: 0, fontSize: fontSizes.xs, color: colors.text.light.error }, errorText),
3600
3600
  helperText && (React__default["default"].createElement(react.FormHelperText, { color: isInvalid ? colors.text.light.error : colors.text.light.subtle, fontSize: fontSizes.xs }, helperText)))));
3601
3601
  }