@bricks-toolkit/toolkit 0.1.11 → 0.1.12

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.
Files changed (79) hide show
  1. package/package.json +1 -1
  2. package/dist/Button.types-BsQYqZml.d.ts +0 -27
  3. package/dist/Button.types-D-srlWFf.d.mts +0 -27
  4. package/dist/TextInput.types-DRI8HQza.d.mts +0 -32
  5. package/dist/TextInput.types-DRI8HQza.d.ts +0 -32
  6. package/dist/Tooltip.types-PbUasE3C.d.mts +0 -36
  7. package/dist/Tooltip.types-PbUasE3C.d.ts +0 -36
  8. package/dist/avatar/index.d.mts +0 -29
  9. package/dist/avatar/index.d.ts +0 -29
  10. package/dist/badge/index.d.mts +0 -57
  11. package/dist/badge/index.d.ts +0 -57
  12. package/dist/breadcrumbs/index.d.mts +0 -32
  13. package/dist/breadcrumbs/index.d.ts +0 -32
  14. package/dist/button/index.d.mts +0 -8
  15. package/dist/button/index.d.ts +0 -8
  16. package/dist/card/index.d.mts +0 -42
  17. package/dist/card/index.d.ts +0 -42
  18. package/dist/checkbox/index.d.mts +0 -36
  19. package/dist/checkbox/index.d.ts +0 -36
  20. package/dist/combo-box/index.d.mts +0 -62
  21. package/dist/combo-box/index.d.ts +0 -62
  22. package/dist/date-picker/index.d.mts +0 -32
  23. package/dist/date-picker/index.d.ts +0 -32
  24. package/dist/dialog/index.d.mts +0 -61
  25. package/dist/dialog/index.d.ts +0 -61
  26. package/dist/dropdown-menu/index.d.mts +0 -34
  27. package/dist/dropdown-menu/index.d.ts +0 -34
  28. package/dist/email/index.d.mts +0 -38
  29. package/dist/email/index.d.ts +0 -38
  30. package/dist/file-upload/index.d.mts +0 -27
  31. package/dist/file-upload/index.d.ts +0 -27
  32. package/dist/header/index.d.mts +0 -28
  33. package/dist/header/index.d.ts +0 -28
  34. package/dist/icon-button/index.d.mts +0 -16
  35. package/dist/icon-button/index.d.ts +0 -16
  36. package/dist/image/index.d.mts +0 -48
  37. package/dist/image/index.d.ts +0 -48
  38. package/dist/index.d.mts +0 -141
  39. package/dist/index.d.ts +0 -141
  40. package/dist/link/index.d.mts +0 -25
  41. package/dist/link/index.d.ts +0 -25
  42. package/dist/loader/index.d.mts +0 -21
  43. package/dist/loader/index.d.ts +0 -21
  44. package/dist/modal/index.d.mts +0 -116
  45. package/dist/modal/index.d.ts +0 -116
  46. package/dist/multi-select/index.d.mts +0 -59
  47. package/dist/multi-select/index.d.ts +0 -59
  48. package/dist/otp-input/index.d.mts +0 -57
  49. package/dist/otp-input/index.d.ts +0 -57
  50. package/dist/password-input/index.d.mts +0 -32
  51. package/dist/password-input/index.d.ts +0 -32
  52. package/dist/phone/index.d.mts +0 -41
  53. package/dist/phone/index.d.ts +0 -41
  54. package/dist/radio-button/index.d.mts +0 -56
  55. package/dist/radio-button/index.d.ts +0 -56
  56. package/dist/search-input/index.d.mts +0 -22
  57. package/dist/search-input/index.d.ts +0 -22
  58. package/dist/select/index.d.mts +0 -36
  59. package/dist/select/index.d.ts +0 -36
  60. package/dist/sidebar/index.d.mts +0 -96
  61. package/dist/sidebar/index.d.ts +0 -96
  62. package/dist/skeleton/index.d.mts +0 -76
  63. package/dist/skeleton/index.d.ts +0 -76
  64. package/dist/styles.d.mts +0 -2
  65. package/dist/styles.d.ts +0 -2
  66. package/dist/table/index.d.mts +0 -92
  67. package/dist/table/index.d.ts +0 -92
  68. package/dist/tabs/index.d.mts +0 -26
  69. package/dist/tabs/index.d.ts +0 -26
  70. package/dist/text-input/index.d.mts +0 -7
  71. package/dist/text-input/index.d.ts +0 -7
  72. package/dist/theme-provider/index.d.mts +0 -122
  73. package/dist/theme-provider/index.d.ts +0 -122
  74. package/dist/time-picker/index.d.mts +0 -32
  75. package/dist/time-picker/index.d.ts +0 -32
  76. package/dist/toaster/index.d.mts +0 -28
  77. package/dist/toaster/index.d.ts +0 -28
  78. package/dist/tooltip/index.d.mts +0 -7
  79. package/dist/tooltip/index.d.ts +0 -7
@@ -1,59 +0,0 @@
1
- type MultiSelectVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
2
- type MultiSelectSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
- type MultiSelectState = 'default' | 'error' | 'success' | 'warning';
4
- interface MultiSelectOption {
5
- label: string;
6
- value: string;
7
- }
8
- interface MultiSelectProps {
9
- /** Array of available options */
10
- options: MultiSelectOption[];
11
- /** Array of currently selected values */
12
- value?: string[];
13
- /** Array of initially selected values (for uncontrolled usage) */
14
- defaultValue?: string[];
15
- /** Callback fired when selection changes */
16
- onChange?: (values: string[]) => void;
17
- /** Placeholder text when nothing is selected */
18
- placeholder?: string;
19
- /** Text label rendered above the input */
20
- label?: string;
21
- /** Adds a required asterisk */
22
- required?: boolean;
23
- /** Helper text rendered below the input */
24
- helperText?: string;
25
- /** Error message rendered below the input when state is 'error' */
26
- errorMessage?: string;
27
- /** Success message rendered below the input when state is 'success' */
28
- successMessage?: string;
29
- /** Warning message rendered below the input when state is 'warning' */
30
- warningMessage?: string;
31
- /** Visual variant of the input trigger */
32
- variant?: MultiSelectVariant;
33
- /** Overall size scale of the component */
34
- size?: MultiSelectSize;
35
- /** Validation state affecting border colors */
36
- state?: MultiSelectState;
37
- /** Whether the component should take full width of its container */
38
- fullWidth?: boolean;
39
- /** Disables interactions */
40
- disabled?: boolean;
41
- /** Shows a loading state (e.g., fetching options) */
42
- isLoading?: boolean;
43
- /** Custom ID for the component elements */
44
- id?: string;
45
- /** Appended to the outermost wrapper */
46
- wrapperClassName?: string;
47
- /** Appended to the trigger button */
48
- triggerClassName?: string;
49
- /** Appended to the dropdown menu container */
50
- dropdownClassName?: string;
51
- /** Appended to the label element */
52
- labelClassName?: string;
53
- /** Appended to the helper text element */
54
- helperClassName?: string;
55
- }
56
-
57
- declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLButtonElement>>;
58
-
59
- export { MultiSelect, type MultiSelectProps, type MultiSelectSize, type MultiSelectState, type MultiSelectVariant };
@@ -1,59 +0,0 @@
1
- type MultiSelectVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
2
- type MultiSelectSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
- type MultiSelectState = 'default' | 'error' | 'success' | 'warning';
4
- interface MultiSelectOption {
5
- label: string;
6
- value: string;
7
- }
8
- interface MultiSelectProps {
9
- /** Array of available options */
10
- options: MultiSelectOption[];
11
- /** Array of currently selected values */
12
- value?: string[];
13
- /** Array of initially selected values (for uncontrolled usage) */
14
- defaultValue?: string[];
15
- /** Callback fired when selection changes */
16
- onChange?: (values: string[]) => void;
17
- /** Placeholder text when nothing is selected */
18
- placeholder?: string;
19
- /** Text label rendered above the input */
20
- label?: string;
21
- /** Adds a required asterisk */
22
- required?: boolean;
23
- /** Helper text rendered below the input */
24
- helperText?: string;
25
- /** Error message rendered below the input when state is 'error' */
26
- errorMessage?: string;
27
- /** Success message rendered below the input when state is 'success' */
28
- successMessage?: string;
29
- /** Warning message rendered below the input when state is 'warning' */
30
- warningMessage?: string;
31
- /** Visual variant of the input trigger */
32
- variant?: MultiSelectVariant;
33
- /** Overall size scale of the component */
34
- size?: MultiSelectSize;
35
- /** Validation state affecting border colors */
36
- state?: MultiSelectState;
37
- /** Whether the component should take full width of its container */
38
- fullWidth?: boolean;
39
- /** Disables interactions */
40
- disabled?: boolean;
41
- /** Shows a loading state (e.g., fetching options) */
42
- isLoading?: boolean;
43
- /** Custom ID for the component elements */
44
- id?: string;
45
- /** Appended to the outermost wrapper */
46
- wrapperClassName?: string;
47
- /** Appended to the trigger button */
48
- triggerClassName?: string;
49
- /** Appended to the dropdown menu container */
50
- dropdownClassName?: string;
51
- /** Appended to the label element */
52
- labelClassName?: string;
53
- /** Appended to the helper text element */
54
- helperClassName?: string;
55
- }
56
-
57
- declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLButtonElement>>;
58
-
59
- export { MultiSelect, type MultiSelectProps, type MultiSelectSize, type MultiSelectState, type MultiSelectVariant };
@@ -1,57 +0,0 @@
1
- type OtpVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
2
- type OtpSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
- type OtpState = 'default' | 'error' | 'success' | 'warning';
4
- interface OtpInputProps {
5
- /** The total number of input boxes (defaults to 4 or 6 depending on your preference, normally 4 or 6. We default to 4). */
6
- length?: number;
7
- /** The current value of the OTP input. */
8
- value?: string;
9
- /** Fired when the value changes. */
10
- onChange?: (value: string) => void;
11
- /** Fired when all the input boxes are filled. */
12
- onComplete?: (value: string) => void;
13
- /** Optional label text shown above the inputs. */
14
- label?: string;
15
- /** Whether the field is explicitly required. */
16
- required?: boolean;
17
- /** Helper text displayed below the inputs. */
18
- helperText?: string;
19
- /** Error message displayed when state is 'error'. */
20
- errorMessage?: string;
21
- /** Success message displayed when state is 'success'. */
22
- successMessage?: string;
23
- /** Warning message displayed when state is 'warning'. */
24
- warningMessage?: string;
25
- /** The visual style variant of the input boxes. */
26
- variant?: OtpVariant;
27
- /** The size of each input box. */
28
- size?: OtpSize;
29
- /** The interaction state of the component. */
30
- state?: OtpState;
31
- /** Custom classname applied to the root wrapper. */
32
- className?: string;
33
- /** Alias for className to match other components. */
34
- wrapperClassName?: string;
35
- /** Custom classname applied to the inputs wrapper flex container. */
36
- inputGroupClassName?: string;
37
- /** Custom classname applied to each individual input box. */
38
- inputClassName?: string;
39
- /** Custom classname applied to the label. */
40
- labelClassName?: string;
41
- /** Custom classname applied to the helper/state messages. */
42
- helperClassName?: string;
43
- /** Explicit accessibility ID. Generated automatically if omitted. */
44
- id?: string;
45
- /** Whether the component is completely disabled. */
46
- disabled?: boolean;
47
- /** Whether to show a loading state indicator. */
48
- isLoading?: boolean;
49
- /** Only mask inputs with generic dots like a password if truthy. */
50
- mask?: boolean;
51
- /** Allow alphanumeric? Defaults to numeric-only if false or omitted. */
52
- alphanumeric?: boolean;
53
- }
54
-
55
- declare const OtpInput: React.ForwardRefExoticComponent<OtpInputProps & React.RefAttributes<HTMLDivElement>>;
56
-
57
- export { OtpInput, type OtpInputProps, type OtpSize, type OtpState, type OtpVariant };
@@ -1,57 +0,0 @@
1
- type OtpVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
2
- type OtpSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
- type OtpState = 'default' | 'error' | 'success' | 'warning';
4
- interface OtpInputProps {
5
- /** The total number of input boxes (defaults to 4 or 6 depending on your preference, normally 4 or 6. We default to 4). */
6
- length?: number;
7
- /** The current value of the OTP input. */
8
- value?: string;
9
- /** Fired when the value changes. */
10
- onChange?: (value: string) => void;
11
- /** Fired when all the input boxes are filled. */
12
- onComplete?: (value: string) => void;
13
- /** Optional label text shown above the inputs. */
14
- label?: string;
15
- /** Whether the field is explicitly required. */
16
- required?: boolean;
17
- /** Helper text displayed below the inputs. */
18
- helperText?: string;
19
- /** Error message displayed when state is 'error'. */
20
- errorMessage?: string;
21
- /** Success message displayed when state is 'success'. */
22
- successMessage?: string;
23
- /** Warning message displayed when state is 'warning'. */
24
- warningMessage?: string;
25
- /** The visual style variant of the input boxes. */
26
- variant?: OtpVariant;
27
- /** The size of each input box. */
28
- size?: OtpSize;
29
- /** The interaction state of the component. */
30
- state?: OtpState;
31
- /** Custom classname applied to the root wrapper. */
32
- className?: string;
33
- /** Alias for className to match other components. */
34
- wrapperClassName?: string;
35
- /** Custom classname applied to the inputs wrapper flex container. */
36
- inputGroupClassName?: string;
37
- /** Custom classname applied to each individual input box. */
38
- inputClassName?: string;
39
- /** Custom classname applied to the label. */
40
- labelClassName?: string;
41
- /** Custom classname applied to the helper/state messages. */
42
- helperClassName?: string;
43
- /** Explicit accessibility ID. Generated automatically if omitted. */
44
- id?: string;
45
- /** Whether the component is completely disabled. */
46
- disabled?: boolean;
47
- /** Whether to show a loading state indicator. */
48
- isLoading?: boolean;
49
- /** Only mask inputs with generic dots like a password if truthy. */
50
- mask?: boolean;
51
- /** Allow alphanumeric? Defaults to numeric-only if false or omitted. */
52
- alphanumeric?: boolean;
53
- }
54
-
55
- declare const OtpInput: React.ForwardRefExoticComponent<OtpInputProps & React.RefAttributes<HTMLDivElement>>;
56
-
57
- export { OtpInput, type OtpInputProps, type OtpSize, type OtpState, type OtpVariant };
@@ -1,32 +0,0 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
2
-
3
- type PasswordInputVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
- type PasswordInputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
- type PasswordInputState = 'default' | 'error' | 'success' | 'warning';
6
- interface PasswordInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
7
- label?: string;
8
- required?: boolean;
9
- helperText?: string;
10
- errorMessage?: string;
11
- successMessage?: string;
12
- warningMessage?: string;
13
- variant?: PasswordInputVariant;
14
- size?: PasswordInputSize;
15
- state?: PasswordInputState;
16
- fullWidth?: boolean;
17
- leftElement?: ReactNode;
18
- rightElement?: ReactNode;
19
- prefix?: ReactNode;
20
- suffix?: ReactNode;
21
- wrapperClassName?: string;
22
- inputGroupClassName?: string;
23
- inputClassName?: string;
24
- labelClassName?: string;
25
- helperClassName?: string;
26
- isLoading?: boolean;
27
- showPasswordToggle?: boolean;
28
- }
29
-
30
- declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
31
-
32
- export { PasswordInput, type PasswordInputProps, type PasswordInputSize, type PasswordInputState, type PasswordInputVariant };
@@ -1,32 +0,0 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
2
-
3
- type PasswordInputVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
- type PasswordInputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
- type PasswordInputState = 'default' | 'error' | 'success' | 'warning';
6
- interface PasswordInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
7
- label?: string;
8
- required?: boolean;
9
- helperText?: string;
10
- errorMessage?: string;
11
- successMessage?: string;
12
- warningMessage?: string;
13
- variant?: PasswordInputVariant;
14
- size?: PasswordInputSize;
15
- state?: PasswordInputState;
16
- fullWidth?: boolean;
17
- leftElement?: ReactNode;
18
- rightElement?: ReactNode;
19
- prefix?: ReactNode;
20
- suffix?: ReactNode;
21
- wrapperClassName?: string;
22
- inputGroupClassName?: string;
23
- inputClassName?: string;
24
- labelClassName?: string;
25
- helperClassName?: string;
26
- isLoading?: boolean;
27
- showPasswordToggle?: boolean;
28
- }
29
-
30
- declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
31
-
32
- export { PasswordInput, type PasswordInputProps, type PasswordInputSize, type PasswordInputState, type PasswordInputVariant };
@@ -1,41 +0,0 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
2
-
3
- type PhoneVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
- type PhoneSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
- type PhoneState = 'default' | 'error' | 'success' | 'warning';
6
- interface PhoneValue {
7
- countryCode: string;
8
- phoneNumber: string;
9
- }
10
- interface PhoneProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type' | 'value' | 'defaultValue' | 'onChange'> {
11
- value?: PhoneValue;
12
- defaultValue?: PhoneValue;
13
- onChange?: (value: PhoneValue) => void;
14
- showFlag?: boolean;
15
- defaultCountryCode?: string;
16
- label?: string;
17
- required?: boolean;
18
- helperText?: string;
19
- errorMessage?: string;
20
- successMessage?: string;
21
- warningMessage?: string;
22
- variant?: PhoneVariant;
23
- size?: PhoneSize;
24
- state?: PhoneState;
25
- fullWidth?: boolean;
26
- leftElement?: ReactNode;
27
- rightElement?: ReactNode;
28
- prefix?: ReactNode;
29
- suffix?: ReactNode;
30
- wrapperClassName?: string;
31
- inputGroupClassName?: string;
32
- inputClassName?: string;
33
- labelClassName?: string;
34
- helperClassName?: string;
35
- clearable?: boolean;
36
- isLoading?: boolean;
37
- }
38
-
39
- declare const Phone: React.ForwardRefExoticComponent<PhoneProps & React.RefAttributes<HTMLInputElement>>;
40
-
41
- export { Phone, type PhoneProps, type PhoneSize, type PhoneState, type PhoneValue, type PhoneVariant };
@@ -1,41 +0,0 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
2
-
3
- type PhoneVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
- type PhoneSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
- type PhoneState = 'default' | 'error' | 'success' | 'warning';
6
- interface PhoneValue {
7
- countryCode: string;
8
- phoneNumber: string;
9
- }
10
- interface PhoneProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type' | 'value' | 'defaultValue' | 'onChange'> {
11
- value?: PhoneValue;
12
- defaultValue?: PhoneValue;
13
- onChange?: (value: PhoneValue) => void;
14
- showFlag?: boolean;
15
- defaultCountryCode?: string;
16
- label?: string;
17
- required?: boolean;
18
- helperText?: string;
19
- errorMessage?: string;
20
- successMessage?: string;
21
- warningMessage?: string;
22
- variant?: PhoneVariant;
23
- size?: PhoneSize;
24
- state?: PhoneState;
25
- fullWidth?: boolean;
26
- leftElement?: ReactNode;
27
- rightElement?: ReactNode;
28
- prefix?: ReactNode;
29
- suffix?: ReactNode;
30
- wrapperClassName?: string;
31
- inputGroupClassName?: string;
32
- inputClassName?: string;
33
- labelClassName?: string;
34
- helperClassName?: string;
35
- clearable?: boolean;
36
- isLoading?: boolean;
37
- }
38
-
39
- declare const Phone: React.ForwardRefExoticComponent<PhoneProps & React.RefAttributes<HTMLInputElement>>;
40
-
41
- export { Phone, type PhoneProps, type PhoneSize, type PhoneState, type PhoneValue, type PhoneVariant };
@@ -1,56 +0,0 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
2
-
3
- type RadioButtonSize = 'sm' | 'md' | 'lg';
4
- type RadioButtonState = 'default' | 'error' | 'success' | 'warning';
5
- interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
6
- /**
7
- * Optional label displayed next to the radio button.
8
- */
9
- label?: ReactNode;
10
- /**
11
- * Helper text displayed below the radio button.
12
- */
13
- helperText?: string;
14
- /**
15
- * Error message displayed when state is 'error'.
16
- */
17
- errorMessage?: string;
18
- /**
19
- * Success message displayed when state is 'success'.
20
- */
21
- successMessage?: string;
22
- /**
23
- * Warning message displayed when state is 'warning'.
24
- */
25
- warningMessage?: string;
26
- /**
27
- * The size of the radio button and label.
28
- * @default 'md'
29
- */
30
- size?: RadioButtonSize;
31
- /**
32
- * The validation state of the radio button.
33
- * @default 'default'
34
- */
35
- state?: RadioButtonState;
36
- /**
37
- * Additional class applied to the outer wrapper element.
38
- */
39
- wrapperClassName?: string;
40
- /**
41
- * Additional class applied to the input element itself.
42
- */
43
- inputClassName?: string;
44
- /**
45
- * Additional class applied to the label text element.
46
- */
47
- labelClassName?: string;
48
- /**
49
- * Additional class applied to the helper/state message element.
50
- */
51
- helperClassName?: string;
52
- }
53
-
54
- declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
55
-
56
- export { RadioButton, type RadioButtonProps, type RadioButtonSize, type RadioButtonState };
@@ -1,56 +0,0 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
2
-
3
- type RadioButtonSize = 'sm' | 'md' | 'lg';
4
- type RadioButtonState = 'default' | 'error' | 'success' | 'warning';
5
- interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
6
- /**
7
- * Optional label displayed next to the radio button.
8
- */
9
- label?: ReactNode;
10
- /**
11
- * Helper text displayed below the radio button.
12
- */
13
- helperText?: string;
14
- /**
15
- * Error message displayed when state is 'error'.
16
- */
17
- errorMessage?: string;
18
- /**
19
- * Success message displayed when state is 'success'.
20
- */
21
- successMessage?: string;
22
- /**
23
- * Warning message displayed when state is 'warning'.
24
- */
25
- warningMessage?: string;
26
- /**
27
- * The size of the radio button and label.
28
- * @default 'md'
29
- */
30
- size?: RadioButtonSize;
31
- /**
32
- * The validation state of the radio button.
33
- * @default 'default'
34
- */
35
- state?: RadioButtonState;
36
- /**
37
- * Additional class applied to the outer wrapper element.
38
- */
39
- wrapperClassName?: string;
40
- /**
41
- * Additional class applied to the input element itself.
42
- */
43
- inputClassName?: string;
44
- /**
45
- * Additional class applied to the label text element.
46
- */
47
- labelClassName?: string;
48
- /**
49
- * Additional class applied to the helper/state message element.
50
- */
51
- helperClassName?: string;
52
- }
53
-
54
- declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
55
-
56
- export { RadioButton, type RadioButtonProps, type RadioButtonSize, type RadioButtonState };
@@ -1,22 +0,0 @@
1
- import { T as TextInputProps } from '../TextInput.types-DRI8HQza.mjs';
2
- import 'react';
3
-
4
- interface SearchInputProps extends TextInputProps {
5
- /**
6
- * The delay in milliseconds before the onDebouncedChange callback is called.
7
- * @default 300
8
- */
9
- debounce?: number;
10
- /**
11
- * Callback function called after the debounce delay with the current input value.
12
- */
13
- onDebouncedChange?: (value: string) => void;
14
- }
15
-
16
- /**
17
- * SearchInput component - A debounced input field for search functionality.
18
- * Built on top of TextInput, it includes a search icon by default and handles debouncing.
19
- */
20
- declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
21
-
22
- export { SearchInput, type SearchInputProps };
@@ -1,22 +0,0 @@
1
- import { T as TextInputProps } from '../TextInput.types-DRI8HQza.js';
2
- import 'react';
3
-
4
- interface SearchInputProps extends TextInputProps {
5
- /**
6
- * The delay in milliseconds before the onDebouncedChange callback is called.
7
- * @default 300
8
- */
9
- debounce?: number;
10
- /**
11
- * Callback function called after the debounce delay with the current input value.
12
- */
13
- onDebouncedChange?: (value: string) => void;
14
- }
15
-
16
- /**
17
- * SearchInput component - A debounced input field for search functionality.
18
- * Built on top of TextInput, it includes a search icon by default and handles debouncing.
19
- */
20
- declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
21
-
22
- export { SearchInput, type SearchInputProps };
@@ -1,36 +0,0 @@
1
- import { SelectHTMLAttributes, ReactNode } from 'react';
2
-
3
- type SelectVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
- type SelectSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
- type SelectState = 'default' | 'error' | 'success' | 'warning';
6
- interface SelectOption {
7
- label: string;
8
- value: string | number;
9
- disabled?: boolean;
10
- }
11
- interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
12
- label?: string;
13
- required?: boolean;
14
- helperText?: string;
15
- errorMessage?: string;
16
- successMessage?: string;
17
- warningMessage?: string;
18
- variant?: SelectVariant;
19
- size?: SelectSize;
20
- state?: SelectState;
21
- fullWidth?: boolean;
22
- leftElement?: ReactNode;
23
- rightElement?: ReactNode;
24
- wrapperClassName?: string;
25
- inputGroupClassName?: string;
26
- inputClassName?: string;
27
- labelClassName?: string;
28
- helperClassName?: string;
29
- isLoading?: boolean;
30
- options?: SelectOption[];
31
- placeholder?: string;
32
- }
33
-
34
- declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
35
-
36
- export { Select, type SelectOption, type SelectProps, type SelectSize, type SelectState, type SelectVariant };
@@ -1,36 +0,0 @@
1
- import { SelectHTMLAttributes, ReactNode } from 'react';
2
-
3
- type SelectVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
4
- type SelectSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
5
- type SelectState = 'default' | 'error' | 'success' | 'warning';
6
- interface SelectOption {
7
- label: string;
8
- value: string | number;
9
- disabled?: boolean;
10
- }
11
- interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
12
- label?: string;
13
- required?: boolean;
14
- helperText?: string;
15
- errorMessage?: string;
16
- successMessage?: string;
17
- warningMessage?: string;
18
- variant?: SelectVariant;
19
- size?: SelectSize;
20
- state?: SelectState;
21
- fullWidth?: boolean;
22
- leftElement?: ReactNode;
23
- rightElement?: ReactNode;
24
- wrapperClassName?: string;
25
- inputGroupClassName?: string;
26
- inputClassName?: string;
27
- labelClassName?: string;
28
- helperClassName?: string;
29
- isLoading?: boolean;
30
- options?: SelectOption[];
31
- placeholder?: string;
32
- }
33
-
34
- declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
35
-
36
- export { Select, type SelectOption, type SelectProps, type SelectSize, type SelectState, type SelectVariant };