@app-studio/web 0.8.37 → 0.8.38

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.
@@ -5,7 +5,7 @@ import { CheckboxStyles, Size } from './Checkbox.type';
5
5
  export interface CheckboxProps extends Omit<InputProps, 'size'> {
6
6
  id?: string;
7
7
  icon?: React.ReactNode;
8
- error?: boolean;
8
+ error?: any;
9
9
  name?: string;
10
10
  label?: string;
11
11
  colorScheme?: string;
@@ -2399,7 +2399,7 @@ var ButtonView = _ref => {
2399
2399
  ariaLabel,
2400
2400
  // Initializes default values for the ButtonProps object; useful for defining states like isAuto, isFilled, etc.
2401
2401
  externalHref,
2402
- isAuto = false,
2402
+ isAuto,
2403
2403
  // Determines if button should be active based on isDisabled and isLoading properties.
2404
2404
  isFilled = false,
2405
2405
  // Prepares default properties for the native button element based on isActive state.
@@ -2477,7 +2477,7 @@ var ButtonView = _ref => {
2477
2477
  var buttonSizeStyles = ButtonSizes[size];
2478
2478
  var buttonVariant = ButtonVariants[variant];
2479
2479
  var scaleWidth = {
2480
- width: isAuto ? 'fit-content' : isFilled ? '100%' : buttonSizeStyles.width
2480
+ minWidth: isAuto ? 'fit-content' : isFilled ? '100%' : buttonSizeStyles.width
2481
2481
  };
2482
2482
  var changePadding = isIconRounded ? IconSizes$1[size] : ButtonSizes[size];
2483
2483
  var content = /*#__PURE__*/React__default.createElement(Horizontal, {
@@ -3921,6 +3921,7 @@ var CheckboxView = _ref => {
3921
3921
  display: 'flex',
3922
3922
  alignItems: 'center',
3923
3923
  height: 'fit-content',
3924
+ flexDirection: 'column',
3924
3925
  width: 'fit-content',
3925
3926
  color: error ? 'theme.error' : isDisabled ? 'theme.disabled' : 'color.blueGray.700',
3926
3927
  cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'default' : 'pointer'
@@ -3965,7 +3966,12 @@ var CheckboxView = _ref => {
3965
3966
  marginLeft: labelPosition === 'left' ? 0 : 27,
3966
3967
  color: "color.gray.400",
3967
3968
  size: "sm"
3968
- }, styles == null ? void 0 : styles.infoText), infoText))));
3969
+ }, styles == null ? void 0 : styles.infoText), infoText))), error && (/*#__PURE__*/React__default.createElement(Text, {
3970
+ size: "xs",
3971
+ marginVertical: 0,
3972
+ marginHorizontal: 0,
3973
+ color: 'theme.error'
3974
+ }, error)));
3969
3975
  };
3970
3976
 
3971
3977
  var CheckboxComponent = props => {