@bricks-toolkit/toolkit 0.1.10 → 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.
- package/dist/{chunk-B4OV5GRT.cjs → chunk-B2FU2E2X.cjs} +11 -1
- package/dist/{chunk-CBA54EY4.mjs → chunk-TBMIMUU4.mjs} +11 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/phone/index.cjs +2 -2
- package/dist/phone/index.mjs +1 -1
- package/package.json +19 -20
- package/dist/Button.types-BsQYqZml.d.ts +0 -27
- package/dist/Button.types-D-srlWFf.d.mts +0 -27
- package/dist/TextInput.types-DRI8HQza.d.mts +0 -32
- package/dist/TextInput.types-DRI8HQza.d.ts +0 -32
- package/dist/Tooltip.types-PbUasE3C.d.mts +0 -36
- package/dist/Tooltip.types-PbUasE3C.d.ts +0 -36
- package/dist/avatar/index.d.mts +0 -29
- package/dist/avatar/index.d.ts +0 -29
- package/dist/badge/index.d.mts +0 -57
- package/dist/badge/index.d.ts +0 -57
- package/dist/breadcrumbs/index.d.mts +0 -32
- package/dist/breadcrumbs/index.d.ts +0 -32
- package/dist/button/index.d.mts +0 -8
- package/dist/button/index.d.ts +0 -8
- package/dist/card/index.d.mts +0 -42
- package/dist/card/index.d.ts +0 -42
- package/dist/checkbox/index.d.mts +0 -36
- package/dist/checkbox/index.d.ts +0 -36
- package/dist/combo-box/index.d.mts +0 -62
- package/dist/combo-box/index.d.ts +0 -62
- package/dist/date-picker/index.d.mts +0 -32
- package/dist/date-picker/index.d.ts +0 -32
- package/dist/dialog/index.d.mts +0 -61
- package/dist/dialog/index.d.ts +0 -61
- package/dist/dropdown-menu/index.d.mts +0 -34
- package/dist/dropdown-menu/index.d.ts +0 -34
- package/dist/email/index.d.mts +0 -38
- package/dist/email/index.d.ts +0 -38
- package/dist/file-upload/index.d.mts +0 -27
- package/dist/file-upload/index.d.ts +0 -27
- package/dist/header/index.d.mts +0 -28
- package/dist/header/index.d.ts +0 -28
- package/dist/icon-button/index.d.mts +0 -16
- package/dist/icon-button/index.d.ts +0 -16
- package/dist/image/index.d.mts +0 -48
- package/dist/image/index.d.ts +0 -48
- package/dist/index.d.mts +0 -141
- package/dist/index.d.ts +0 -141
- package/dist/link/index.d.mts +0 -25
- package/dist/link/index.d.ts +0 -25
- package/dist/loader/index.d.mts +0 -21
- package/dist/loader/index.d.ts +0 -21
- package/dist/modal/index.d.mts +0 -116
- package/dist/modal/index.d.ts +0 -116
- package/dist/multi-select/index.d.mts +0 -59
- package/dist/multi-select/index.d.ts +0 -59
- package/dist/otp-input/index.d.mts +0 -57
- package/dist/otp-input/index.d.ts +0 -57
- package/dist/password-input/index.d.mts +0 -32
- package/dist/password-input/index.d.ts +0 -32
- package/dist/phone/index.d.mts +0 -41
- package/dist/phone/index.d.ts +0 -41
- package/dist/radio-button/index.d.mts +0 -56
- package/dist/radio-button/index.d.ts +0 -56
- package/dist/search-input/index.d.mts +0 -22
- package/dist/search-input/index.d.ts +0 -22
- package/dist/select/index.d.mts +0 -36
- package/dist/select/index.d.ts +0 -36
- package/dist/sidebar/index.d.mts +0 -96
- package/dist/sidebar/index.d.ts +0 -96
- package/dist/skeleton/index.d.mts +0 -76
- package/dist/skeleton/index.d.ts +0 -76
- package/dist/styles.d.mts +0 -2
- package/dist/styles.d.ts +0 -2
- package/dist/table/index.d.mts +0 -92
- package/dist/table/index.d.ts +0 -92
- package/dist/tabs/index.d.mts +0 -26
- package/dist/tabs/index.d.ts +0 -26
- package/dist/text-input/index.d.mts +0 -7
- package/dist/text-input/index.d.ts +0 -7
- package/dist/theme-provider/index.d.mts +0 -122
- package/dist/theme-provider/index.d.ts +0 -122
- package/dist/theme.css +0 -62
- package/dist/time-picker/index.d.mts +0 -32
- package/dist/time-picker/index.d.ts +0 -32
- package/dist/toaster/index.d.mts +0 -28
- package/dist/toaster/index.d.ts +0 -28
- package/dist/tooltip/index.d.mts +0 -7
- package/dist/tooltip/index.d.ts +0 -7
package/dist/modal/index.d.mts
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full';
|
|
4
|
-
/**
|
|
5
|
-
* Visual style variant of the modal
|
|
6
|
-
* - `default`: Standard surface background with border
|
|
7
|
-
* - `glass`: Glassmorphism effect with blur and translucency
|
|
8
|
-
* - `flat`: No border, flat surface
|
|
9
|
-
*/
|
|
10
|
-
type ModalVariant = 'default' | 'glass' | 'flat';
|
|
11
|
-
/**
|
|
12
|
-
* Position/entry direction of the modal
|
|
13
|
-
* - `top`: Modal appears near the top
|
|
14
|
-
* - `center`: Modal is vertically centered (default dialog)
|
|
15
|
-
* - `bottom`: Slides up from the bottom (bottom sheet)
|
|
16
|
-
* - `left`: Slides in from the left (left drawer)
|
|
17
|
-
* - `right`: Slides in from the right (right drawer)
|
|
18
|
-
*/
|
|
19
|
-
type ModalPosition = 'top' | 'center' | 'bottom' | 'left' | 'right';
|
|
20
|
-
interface ModalProps {
|
|
21
|
-
/** Controls whether the modal is visible */
|
|
22
|
-
isOpen: boolean;
|
|
23
|
-
/** Called when the modal should close */
|
|
24
|
-
onClose: () => void;
|
|
25
|
-
/** Content rendered inside the modal */
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Size of the modal
|
|
29
|
-
* @default 'md'
|
|
30
|
-
*/
|
|
31
|
-
size?: ModalSize;
|
|
32
|
-
/**
|
|
33
|
-
* Visual variant of the modal
|
|
34
|
-
* @default 'default'
|
|
35
|
-
*/
|
|
36
|
-
variant?: ModalVariant;
|
|
37
|
-
/**
|
|
38
|
-
* Vertical position of modal on screen
|
|
39
|
-
* @default 'center'
|
|
40
|
-
*/
|
|
41
|
-
position?: ModalPosition;
|
|
42
|
-
/**
|
|
43
|
-
* Close modal when clicking the overlay
|
|
44
|
-
* @default true
|
|
45
|
-
*/
|
|
46
|
-
closeOnOverlayClick?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Close modal when pressing the Escape key
|
|
49
|
-
* @default true
|
|
50
|
-
*/
|
|
51
|
-
closeOnEsc?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Trap focus inside the modal for accessibility
|
|
54
|
-
* @default true
|
|
55
|
-
*/
|
|
56
|
-
trapFocus?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Lock body scroll when modal is open
|
|
59
|
-
* @default true
|
|
60
|
-
*/
|
|
61
|
-
lockScroll?: boolean;
|
|
62
|
-
/** Extra class(es) applied to the modal content panel */
|
|
63
|
-
contentClassName?: string;
|
|
64
|
-
/** Extra class(es) applied to the backdrop overlay */
|
|
65
|
-
overlayClassName?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Show the dark backdrop overlay
|
|
68
|
-
* @default true
|
|
69
|
-
*/
|
|
70
|
-
showBackdrop?: boolean;
|
|
71
|
-
/** aria-label for the dialog (use when no visible title exists) */
|
|
72
|
-
ariaLabel?: string;
|
|
73
|
-
/** ID of the element that labels the dialog */
|
|
74
|
-
ariaLabelledby?: string;
|
|
75
|
-
/** ID of the element that describes the dialog */
|
|
76
|
-
ariaDescribedby?: string;
|
|
77
|
-
}
|
|
78
|
-
interface ModalHeaderProps {
|
|
79
|
-
children: ReactNode;
|
|
80
|
-
className?: string;
|
|
81
|
-
/** Optional decorative icon rendered before the title */
|
|
82
|
-
icon?: ReactNode;
|
|
83
|
-
/** Optional description shown below the title */
|
|
84
|
-
description?: string;
|
|
85
|
-
}
|
|
86
|
-
interface ModalBodyProps {
|
|
87
|
-
children: ReactNode;
|
|
88
|
-
className?: string;
|
|
89
|
-
/** Remove default padding (useful for full-bleed content) */
|
|
90
|
-
noPadding?: boolean;
|
|
91
|
-
}
|
|
92
|
-
interface ModalFooterProps {
|
|
93
|
-
children: ReactNode;
|
|
94
|
-
className?: string;
|
|
95
|
-
/** Left-align the footer actions instead of right-aligning */
|
|
96
|
-
align?: 'left' | 'center' | 'right';
|
|
97
|
-
}
|
|
98
|
-
interface ModalCloseButtonProps {
|
|
99
|
-
onClick?: () => void;
|
|
100
|
-
className?: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
interface ModalComponent {
|
|
104
|
-
(props: ModalProps): React.ReactPortal | null;
|
|
105
|
-
Header: typeof ModalHeader;
|
|
106
|
-
Body: typeof ModalBody;
|
|
107
|
-
Footer: typeof ModalFooter;
|
|
108
|
-
CloseButton: typeof ModalCloseButton;
|
|
109
|
-
}
|
|
110
|
-
declare const Modal: ModalComponent;
|
|
111
|
-
declare function ModalHeader({ children, className, icon, description, }: ModalHeaderProps): React.JSX.Element;
|
|
112
|
-
declare function ModalBody({ children, className, noPadding, }: ModalBodyProps): React.JSX.Element;
|
|
113
|
-
declare function ModalFooter({ children, className, align, }: ModalFooterProps): React.JSX.Element;
|
|
114
|
-
declare function ModalCloseButton({ onClick, className }: ModalCloseButtonProps): React.JSX.Element;
|
|
115
|
-
|
|
116
|
-
export { Modal, ModalBody, type ModalBodyProps, ModalCloseButton, type ModalCloseButtonProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalPosition, type ModalProps, type ModalSize, type ModalVariant };
|
package/dist/modal/index.d.ts
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full';
|
|
4
|
-
/**
|
|
5
|
-
* Visual style variant of the modal
|
|
6
|
-
* - `default`: Standard surface background with border
|
|
7
|
-
* - `glass`: Glassmorphism effect with blur and translucency
|
|
8
|
-
* - `flat`: No border, flat surface
|
|
9
|
-
*/
|
|
10
|
-
type ModalVariant = 'default' | 'glass' | 'flat';
|
|
11
|
-
/**
|
|
12
|
-
* Position/entry direction of the modal
|
|
13
|
-
* - `top`: Modal appears near the top
|
|
14
|
-
* - `center`: Modal is vertically centered (default dialog)
|
|
15
|
-
* - `bottom`: Slides up from the bottom (bottom sheet)
|
|
16
|
-
* - `left`: Slides in from the left (left drawer)
|
|
17
|
-
* - `right`: Slides in from the right (right drawer)
|
|
18
|
-
*/
|
|
19
|
-
type ModalPosition = 'top' | 'center' | 'bottom' | 'left' | 'right';
|
|
20
|
-
interface ModalProps {
|
|
21
|
-
/** Controls whether the modal is visible */
|
|
22
|
-
isOpen: boolean;
|
|
23
|
-
/** Called when the modal should close */
|
|
24
|
-
onClose: () => void;
|
|
25
|
-
/** Content rendered inside the modal */
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Size of the modal
|
|
29
|
-
* @default 'md'
|
|
30
|
-
*/
|
|
31
|
-
size?: ModalSize;
|
|
32
|
-
/**
|
|
33
|
-
* Visual variant of the modal
|
|
34
|
-
* @default 'default'
|
|
35
|
-
*/
|
|
36
|
-
variant?: ModalVariant;
|
|
37
|
-
/**
|
|
38
|
-
* Vertical position of modal on screen
|
|
39
|
-
* @default 'center'
|
|
40
|
-
*/
|
|
41
|
-
position?: ModalPosition;
|
|
42
|
-
/**
|
|
43
|
-
* Close modal when clicking the overlay
|
|
44
|
-
* @default true
|
|
45
|
-
*/
|
|
46
|
-
closeOnOverlayClick?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Close modal when pressing the Escape key
|
|
49
|
-
* @default true
|
|
50
|
-
*/
|
|
51
|
-
closeOnEsc?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Trap focus inside the modal for accessibility
|
|
54
|
-
* @default true
|
|
55
|
-
*/
|
|
56
|
-
trapFocus?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Lock body scroll when modal is open
|
|
59
|
-
* @default true
|
|
60
|
-
*/
|
|
61
|
-
lockScroll?: boolean;
|
|
62
|
-
/** Extra class(es) applied to the modal content panel */
|
|
63
|
-
contentClassName?: string;
|
|
64
|
-
/** Extra class(es) applied to the backdrop overlay */
|
|
65
|
-
overlayClassName?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Show the dark backdrop overlay
|
|
68
|
-
* @default true
|
|
69
|
-
*/
|
|
70
|
-
showBackdrop?: boolean;
|
|
71
|
-
/** aria-label for the dialog (use when no visible title exists) */
|
|
72
|
-
ariaLabel?: string;
|
|
73
|
-
/** ID of the element that labels the dialog */
|
|
74
|
-
ariaLabelledby?: string;
|
|
75
|
-
/** ID of the element that describes the dialog */
|
|
76
|
-
ariaDescribedby?: string;
|
|
77
|
-
}
|
|
78
|
-
interface ModalHeaderProps {
|
|
79
|
-
children: ReactNode;
|
|
80
|
-
className?: string;
|
|
81
|
-
/** Optional decorative icon rendered before the title */
|
|
82
|
-
icon?: ReactNode;
|
|
83
|
-
/** Optional description shown below the title */
|
|
84
|
-
description?: string;
|
|
85
|
-
}
|
|
86
|
-
interface ModalBodyProps {
|
|
87
|
-
children: ReactNode;
|
|
88
|
-
className?: string;
|
|
89
|
-
/** Remove default padding (useful for full-bleed content) */
|
|
90
|
-
noPadding?: boolean;
|
|
91
|
-
}
|
|
92
|
-
interface ModalFooterProps {
|
|
93
|
-
children: ReactNode;
|
|
94
|
-
className?: string;
|
|
95
|
-
/** Left-align the footer actions instead of right-aligning */
|
|
96
|
-
align?: 'left' | 'center' | 'right';
|
|
97
|
-
}
|
|
98
|
-
interface ModalCloseButtonProps {
|
|
99
|
-
onClick?: () => void;
|
|
100
|
-
className?: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
interface ModalComponent {
|
|
104
|
-
(props: ModalProps): React.ReactPortal | null;
|
|
105
|
-
Header: typeof ModalHeader;
|
|
106
|
-
Body: typeof ModalBody;
|
|
107
|
-
Footer: typeof ModalFooter;
|
|
108
|
-
CloseButton: typeof ModalCloseButton;
|
|
109
|
-
}
|
|
110
|
-
declare const Modal: ModalComponent;
|
|
111
|
-
declare function ModalHeader({ children, className, icon, description, }: ModalHeaderProps): React.JSX.Element;
|
|
112
|
-
declare function ModalBody({ children, className, noPadding, }: ModalBodyProps): React.JSX.Element;
|
|
113
|
-
declare function ModalFooter({ children, className, align, }: ModalFooterProps): React.JSX.Element;
|
|
114
|
-
declare function ModalCloseButton({ onClick, className }: ModalCloseButtonProps): React.JSX.Element;
|
|
115
|
-
|
|
116
|
-
export { Modal, ModalBody, type ModalBodyProps, ModalCloseButton, type ModalCloseButtonProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalPosition, type ModalProps, type ModalSize, type ModalVariant };
|
|
@@ -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 };
|
package/dist/phone/index.d.mts
DELETED
|
@@ -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 };
|
package/dist/phone/index.d.ts
DELETED
|
@@ -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 };
|