@televet/kibble-ui 1.12.8 → 1.12.9

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.
@@ -9,7 +9,7 @@ export interface CheckboxGroupProps extends WithFormControlProps, CCheckboxGroup
9
9
  checkboxes: CheckboxProps[];
10
10
  direction?: FlexDirection;
11
11
  spacing?: SystemProps['margin'];
12
- $isFieldInline?: boolean;
12
+ isFieldInline?: boolean;
13
13
  variant?: CheckboxVariant;
14
14
  }
15
15
  declare const WrappedCheckboxGroup: React.FC<CheckboxGroupProps>;
@@ -8,6 +8,7 @@ export declare const formControlArgTypes: {
8
8
  summary: string;
9
9
  };
10
10
  };
11
+ description: string;
11
12
  };
12
13
  size: {
13
14
  control: string;
@@ -33,6 +34,7 @@ export declare const formControlArgTypes: {
33
34
  summary: string;
34
35
  };
35
36
  };
37
+ description: string;
36
38
  };
37
39
  helperText: {
38
40
  control: string;
@@ -44,6 +46,7 @@ export declare const formControlArgTypes: {
44
46
  summary: string;
45
47
  };
46
48
  };
49
+ description: string;
47
50
  };
48
51
  helperTextAlignment: {
49
52
  control: string;
@@ -60,12 +63,14 @@ export declare const formControlArgTypes: {
60
63
  summary: string;
61
64
  };
62
65
  };
66
+ description: string;
63
67
  };
64
68
  errorText: {
65
69
  control: string;
66
70
  type: {
67
71
  name: string;
68
72
  };
73
+ defaultValue: string;
69
74
  table: {
70
75
  type: {
71
76
  summary: string;
@@ -74,6 +79,7 @@ export declare const formControlArgTypes: {
74
79
  summary: string;
75
80
  };
76
81
  };
82
+ description: string;
77
83
  };
78
84
  isDisabled: {
79
85
  type: string;
@@ -111,6 +117,7 @@ export declare const formControlArgTypes: {
111
117
  summary: string;
112
118
  };
113
119
  };
120
+ description: string;
114
121
  defaultValue: boolean;
115
122
  };
116
123
  isRequired: {
@@ -137,6 +144,7 @@ export declare const formControlArgTypes: {
137
144
  };
138
145
  };
139
146
  defaultValue: boolean;
147
+ description: string;
140
148
  };
141
149
  labelStyle: {
142
150
  type: string;
@@ -9,7 +9,7 @@ export interface RadioGroupProps extends WithFormControlProps, Omit<CRadioGroupP
9
9
  radios: RadioProps[];
10
10
  direction?: FlexDirection;
11
11
  spacing?: SystemProps['margin'];
12
- $isFieldInline?: boolean;
12
+ isFieldInline?: boolean;
13
13
  }
14
14
  declare const WrappedRadioGroup: React.FC<RadioGroupProps>;
15
15
  export { WrappedRadioGroup as RadioGroup };
@@ -2,5 +2,6 @@ import { RadioProps as CRadioProps } from '@chakra-ui/react';
2
2
  import { RadioSize } from './radio.types';
3
3
  export interface RadioProps extends CRadioProps {
4
4
  size?: RadioSize;
5
+ isFieldInline?: boolean;
5
6
  }
6
- export declare const Radio: ({ children, size, ...rest }: RadioProps) => JSX.Element;
7
+ export declare const Radio: ({ children, size, isFieldInline, ...rest }: RadioProps) => JSX.Element;
@@ -1,9 +1,17 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { SelectProps as CSelectProps } from '@chakra-ui/react';
3
3
  import { WithFormControlProps } from '../FormControl/formControl.component';
4
4
  import { SelectOptionProps } from './select.types';
5
5
  export interface SelectProps extends WithFormControlProps, CSelectProps {
6
+ useBrowserDefaultMenu?: boolean;
6
7
  options: SelectOptionProps[];
8
+ listConfig?: {
9
+ isGrouped?: boolean;
10
+ isSearchable?: boolean;
11
+ onSelectOption?: (selectedOption: SelectOptionProps) => void;
12
+ onMenuClose?: (selectedOption: (string | undefined)[]) => void;
13
+ defaultLeftElement?: ReactNode;
14
+ };
7
15
  }
8
16
  declare const WrappedSelect: React.FC<SelectProps>;
9
17
  export { WrappedSelect as Select };
@@ -1,4 +1,3 @@
1
- export interface SelectOptionProps {
2
- value: string;
3
- text: string;
1
+ import { MenuItemProps } from '../../Overlay/Menu';
2
+ export interface SelectOptionProps extends MenuItemProps {
4
3
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { SwitchProps as CSwitchProps } from '@chakra-ui/react';
3
3
  import { WithFormControlProps } from '../FormControl/formControl.component';
4
4
  export interface SwitchProps extends WithFormControlProps, CSwitchProps {
5
- $isFieldInline?: boolean;
5
+ isFieldInline?: boolean;
6
6
  }
7
7
  declare const WrappedSwitch: React.FC<SwitchProps>;
8
8
  export { WrappedSwitch as Switch };