atomos_next_genesis 0.0.3-alpha → 0.0.5
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/index.cjs +2744 -726
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1253 -102
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +382 -145
- package/dist/index.d.ts +382 -145
- package/dist/index.js +2740 -730
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React__default, { ButtonHTMLAttributes, ReactNode, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, TableHTMLAttributes, ThHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
|
1
|
+
import React, { ButtonHTMLAttributes, ReactNode, HTMLAttributes, FC, Dispatch, SetStateAction, InputHTMLAttributes, LabelHTMLAttributes, TableHTMLAttributes, ThHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ElementType } from 'react';
|
|
3
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
3
|
import { VariantProps } from 'class-variance-authority';
|
|
5
4
|
|
|
@@ -7,28 +6,31 @@ type AccordionProps = {
|
|
|
7
6
|
type?: "single" | "multiple";
|
|
8
7
|
collapsible?: boolean;
|
|
9
8
|
className?: string;
|
|
10
|
-
children:
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
expanded?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare function Accordion({ type, collapsible, className, children, }: AccordionProps):
|
|
12
|
+
declare function Accordion({ type, collapsible, className, children, expanded, }: AccordionProps): React.JSX.Element;
|
|
13
13
|
type AccordionItemProps = {
|
|
14
14
|
value: string;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
openItems?: string[];
|
|
17
17
|
handleToggle?: (value: string) => void;
|
|
18
|
-
children:
|
|
18
|
+
children: React.ReactNode;
|
|
19
19
|
className?: string;
|
|
20
20
|
};
|
|
21
|
-
declare function AccordionItem({ value, disabled, openItems, handleToggle, children, className, }: AccordionItemProps):
|
|
21
|
+
declare function AccordionItem({ value, disabled, openItems, handleToggle, children, className, }: AccordionItemProps): React.JSX.Element;
|
|
22
22
|
type AccordionTriggerProps = {
|
|
23
23
|
isOpen?: boolean;
|
|
24
|
-
children:
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
defaultOpen?: boolean;
|
|
26
|
+
className?: string;
|
|
27
|
+
triggerIcon?: React.ReactNode;
|
|
25
28
|
};
|
|
26
|
-
declare function AccordionTrigger({ isOpen, children }: AccordionTriggerProps):
|
|
29
|
+
declare function AccordionTrigger({ isOpen, children, className, triggerIcon, }: AccordionTriggerProps): React.JSX.Element;
|
|
27
30
|
type AccordionContentProps = {
|
|
28
|
-
|
|
29
|
-
children: React__default.ReactNode;
|
|
31
|
+
children: React.ReactNode;
|
|
30
32
|
};
|
|
31
|
-
declare function AccordionContent({
|
|
33
|
+
declare function AccordionContent({ children }: AccordionContentProps): React.JSX.Element;
|
|
32
34
|
|
|
33
35
|
interface BaseProps$1 {
|
|
34
36
|
type: "image" | "icon" | "text";
|
|
@@ -58,7 +60,7 @@ interface TextProps extends BaseProps$1 {
|
|
|
58
60
|
text: string;
|
|
59
61
|
}
|
|
60
62
|
type AvatarProps = ImageProps | IconProps | TextProps;
|
|
61
|
-
declare const Avatar:
|
|
63
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
62
64
|
|
|
63
65
|
type AvatarItemProps = Omit<ImageProps, "size"> | Omit<IconProps, "size"> | Omit<TextProps, "size">;
|
|
64
66
|
interface AvatarGroupProps {
|
|
@@ -67,15 +69,15 @@ interface AvatarGroupProps {
|
|
|
67
69
|
max?: number;
|
|
68
70
|
className?: string;
|
|
69
71
|
}
|
|
70
|
-
declare const AvatarGroup:
|
|
72
|
+
declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
71
73
|
|
|
72
74
|
type BreadcrumbsProps = {
|
|
73
|
-
children:
|
|
74
|
-
separator?:
|
|
75
|
+
children: React.ReactNode;
|
|
76
|
+
separator?: React.ReactNode;
|
|
75
77
|
'aria-label': string;
|
|
76
78
|
containerClasses?: string;
|
|
77
79
|
};
|
|
78
|
-
declare const Breadcrumbs: ({ children, separator, "aria-label": ariaLabel, containerClasses }: BreadcrumbsProps) =>
|
|
80
|
+
declare const Breadcrumbs: ({ children, separator, "aria-label": ariaLabel, containerClasses }: BreadcrumbsProps) => React.JSX.Element;
|
|
79
81
|
|
|
80
82
|
interface ButtonProps$1 extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
81
83
|
children?: ReactNode;
|
|
@@ -83,35 +85,87 @@ interface ButtonProps$1 extends ButtonHTMLAttributes<HTMLButtonElement>, Variant
|
|
|
83
85
|
endIcon?: JSX.Element;
|
|
84
86
|
disabled?: boolean;
|
|
85
87
|
fullWidth?: boolean;
|
|
88
|
+
type?: "submit" | "reset" | "button";
|
|
86
89
|
}
|
|
87
90
|
declare const buttonVariants: (props?: ({
|
|
88
91
|
variant?: "filled" | "outlined" | null | undefined;
|
|
89
|
-
intent?: "primary" | "success" | "error" | "warning" | "default" | "primary-outlined" | "success-outlined" | "error-outlined" | "warning-outlined" | "default-outlined" | null | undefined;
|
|
92
|
+
intent?: "blue" | "indigo" | "orange" | "pink" | "purple" | "violet" | "primary" | "success" | "error" | "warning" | "default" | "bluegray" | "bluelight" | "rose" | "primary-outlined" | "success-outlined" | "error-outlined" | "warning-outlined" | "default-outlined" | "blue-outlined" | "bluegray-outlined" | "bluelight-outlined" | "indigo-outlined" | "purple-outlined" | "violet-outlined" | "pink-outlined" | "rose-outlined" | "orange-outlined" | null | undefined;
|
|
90
93
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
91
94
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
92
|
-
declare const Button: ({ children, className, variant, intent, fullWidth, startIcon, disabled, endIcon, size, ...props }: ButtonProps$1) =>
|
|
95
|
+
declare const Button: ({ children, className, variant, intent, fullWidth, startIcon, disabled, endIcon, size, type, ...props }: ButtonProps$1) => React.JSX.Element;
|
|
96
|
+
|
|
97
|
+
declare const calloutVariants: (props?: ({
|
|
98
|
+
variant?: "filled" | "outlined" | null | undefined;
|
|
99
|
+
intent?: "primary" | "success" | "error" | "warning" | "default" | null | undefined;
|
|
100
|
+
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
101
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
102
|
+
interface CalloutProps extends VariantProps<typeof calloutVariants> {
|
|
103
|
+
children: ReactNode;
|
|
104
|
+
startIcon?: JSX.Element;
|
|
105
|
+
endIcon?: JSX.Element;
|
|
106
|
+
className?: string;
|
|
107
|
+
}
|
|
108
|
+
declare const Callout: React.FC<CalloutProps>;
|
|
109
|
+
|
|
110
|
+
interface CardProps {
|
|
111
|
+
children: React.ReactNode;
|
|
112
|
+
className?: string;
|
|
113
|
+
}
|
|
114
|
+
interface CardHeaderProps {
|
|
115
|
+
children: React.ReactNode;
|
|
116
|
+
className?: string;
|
|
117
|
+
}
|
|
118
|
+
interface CardTitleProps {
|
|
119
|
+
children: React.ReactNode;
|
|
120
|
+
className?: string;
|
|
121
|
+
}
|
|
122
|
+
interface CardDescriptionProps {
|
|
123
|
+
children: React.ReactNode;
|
|
124
|
+
className?: string;
|
|
125
|
+
}
|
|
126
|
+
interface CardActionProps {
|
|
127
|
+
children: React.ReactNode;
|
|
128
|
+
className?: string;
|
|
129
|
+
}
|
|
130
|
+
interface CardContentProps {
|
|
131
|
+
children: React.ReactNode;
|
|
132
|
+
className?: string;
|
|
133
|
+
}
|
|
134
|
+
interface CardFooterProps {
|
|
135
|
+
children: React.ReactNode;
|
|
136
|
+
className?: string;
|
|
137
|
+
}
|
|
138
|
+
declare function export_default({ children, className }: CardProps): React.JSX.Element;
|
|
139
|
+
declare const CardHeader: React.FC<CardHeaderProps>;
|
|
140
|
+
declare const CardTitle: React.FC<CardTitleProps>;
|
|
141
|
+
declare const CardDescription: React.FC<CardDescriptionProps>;
|
|
142
|
+
declare const CardAction: React.FC<CardActionProps>;
|
|
143
|
+
declare const CardContent: React.FC<CardContentProps>;
|
|
144
|
+
declare const CardFooter: React.FC<CardFooterProps>;
|
|
93
145
|
|
|
94
146
|
interface CheckboxProps extends Omit<HTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof checkboxVariant> {
|
|
95
|
-
size?: "sm" | "lg";
|
|
147
|
+
size?: "sm" | "lg" | "xl";
|
|
96
148
|
disabled?: boolean;
|
|
97
149
|
checked?: boolean;
|
|
98
150
|
children?: never;
|
|
99
151
|
}
|
|
100
152
|
declare const checkboxVariant: (props?: ({
|
|
101
|
-
size?: "sm" | "lg" | null | undefined;
|
|
153
|
+
size?: "sm" | "lg" | "xl" | null | undefined;
|
|
102
154
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
103
|
-
declare const Checkbox:
|
|
155
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
104
156
|
|
|
105
|
-
|
|
106
|
-
intent?: "indigo" | "orange" | "pink" | "purple" | "violet" | "primary" | "success" | "error" | "warning" | "default" | "bluegray" | "bluelight" | "rose" | null | undefined;
|
|
107
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
108
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
109
|
-
interface ChipProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof chipVariants> {
|
|
157
|
+
interface ChipProps extends HTMLAttributes<HTMLSpanElement>, VariantProps<typeof chipVariants> {
|
|
110
158
|
children: ReactNode;
|
|
111
159
|
dot?: boolean;
|
|
112
160
|
dotColor?: string;
|
|
161
|
+
startIcon?: JSX.Element;
|
|
162
|
+
endIcon?: JSX.Element;
|
|
113
163
|
}
|
|
114
|
-
declare const
|
|
164
|
+
declare const chipVariants: (props?: ({
|
|
165
|
+
intent?: "blue" | "indigo" | "orange" | "pink" | "purple" | "violet" | "primary" | "success" | "error" | "warning" | "default" | "bluegray" | "bluelight" | "rose" | null | undefined;
|
|
166
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
167
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
168
|
+
declare const Chip: ({ children, className, size, intent, dot, dotColor, startIcon, endIcon, ...rest }: ChipProps) => React.JSX.Element;
|
|
115
169
|
|
|
116
170
|
interface CircularProgressBarProps {
|
|
117
171
|
strokeWidth?: number;
|
|
@@ -128,56 +182,99 @@ interface DividerProps {
|
|
|
128
182
|
position?: "horizontal" | "vertical";
|
|
129
183
|
className?: string;
|
|
130
184
|
}
|
|
131
|
-
declare const Divider: ({ width, height, position, className, }: DividerProps) =>
|
|
185
|
+
declare const Divider: ({ width, height, position, className, }: DividerProps) => React.JSX.Element;
|
|
186
|
+
|
|
187
|
+
interface DrawerProps {
|
|
188
|
+
isOpen: boolean;
|
|
189
|
+
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
190
|
+
children: ReactNode;
|
|
191
|
+
position?: "left" | "right" | "top" | "bottom";
|
|
192
|
+
width?: string;
|
|
193
|
+
height?: string;
|
|
194
|
+
className?: string;
|
|
195
|
+
showCloseButton?: boolean;
|
|
196
|
+
closeOnOutsideClick?: boolean;
|
|
197
|
+
}
|
|
198
|
+
declare const Drawer: FC<DrawerProps>;
|
|
132
199
|
|
|
133
200
|
type Option$1 = {
|
|
134
|
-
label: string;
|
|
135
|
-
value: string;
|
|
201
|
+
label: string | number;
|
|
202
|
+
value: string | number;
|
|
136
203
|
info?: string;
|
|
137
204
|
addInfo?: string;
|
|
138
205
|
tooltipContent?: string;
|
|
206
|
+
disabledOption?: boolean;
|
|
207
|
+
labelTextColor?: string;
|
|
139
208
|
};
|
|
140
209
|
interface DropdownProps$1 {
|
|
210
|
+
id?: string;
|
|
141
211
|
icon?: JSX.Element;
|
|
142
212
|
options: Option$1[];
|
|
143
213
|
selected?: Option$1[];
|
|
144
|
-
setSelected?:
|
|
214
|
+
setSelected?: React.Dispatch<React.SetStateAction<Option$1[]>>;
|
|
145
215
|
onApply?: () => void;
|
|
146
216
|
onReset?: () => void;
|
|
147
217
|
dropdownText?: string;
|
|
148
218
|
search?: boolean;
|
|
149
219
|
multiple?: boolean;
|
|
150
|
-
renderItem?: (option: Option$1) =>
|
|
151
|
-
children?:
|
|
220
|
+
renderItem?: (option: Option$1) => React.ReactNode;
|
|
221
|
+
children?: React.ReactNode;
|
|
152
222
|
position?: "top" | "bottom";
|
|
153
223
|
info?: string | number;
|
|
154
224
|
addInfo?: string | number;
|
|
155
225
|
tooltipContent?: string;
|
|
156
226
|
width?: string;
|
|
157
|
-
dropDownTooltip?: boolean | undefined;
|
|
158
227
|
dropdownFooter?: boolean | undefined;
|
|
159
228
|
disabled?: boolean;
|
|
229
|
+
labelTextColor?: string;
|
|
230
|
+
footerAction?: React.ReactNode;
|
|
160
231
|
}
|
|
161
|
-
declare const Dropdown:
|
|
232
|
+
declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps$1 & React.RefAttributes<HTMLDivElement>>;
|
|
233
|
+
|
|
234
|
+
type DropdownAlignment = "left" | "right" | "top" | "bottom" | "center" | "start" | "end";
|
|
235
|
+
declare function DropdownMenu({ children }: {
|
|
236
|
+
children: React.ReactNode;
|
|
237
|
+
}): React.JSX.Element;
|
|
238
|
+
declare function DropdownMenuTrigger({ children, isOpen, setIsOpen, }: {
|
|
239
|
+
children: React.ReactNode;
|
|
240
|
+
isOpen?: boolean;
|
|
241
|
+
setIsOpen?: (open: boolean) => void;
|
|
242
|
+
}): React.JSX.Element;
|
|
243
|
+
declare function DropdownMenuContent({ children, isOpen, align, className, }: {
|
|
244
|
+
children: React.ReactNode;
|
|
245
|
+
isOpen?: boolean;
|
|
246
|
+
className?: string;
|
|
247
|
+
align?: DropdownAlignment;
|
|
248
|
+
}): React.JSX.Element | null;
|
|
249
|
+
declare function DropdownMenuItem({ children, className, onClick, disabled, shortcut, }: any): React.JSX.Element;
|
|
250
|
+
declare function DropdownMenuLabel({ children }: any): React.JSX.Element;
|
|
251
|
+
declare function DropdownMenuSeparator(): React.JSX.Element;
|
|
252
|
+
declare function DropdownMenuSub({ children }: any): React.JSX.Element;
|
|
253
|
+
declare function DropdownMenuSubTrigger({ children }: any): React.JSX.Element;
|
|
254
|
+
declare function DropdownMenuSubContent({ children }: any): React.JSX.Element;
|
|
162
255
|
|
|
163
256
|
type Option = {
|
|
164
|
-
label: string;
|
|
165
|
-
value: string;
|
|
257
|
+
label: string | number;
|
|
258
|
+
value: string | number;
|
|
166
259
|
info?: string;
|
|
167
260
|
addInfo?: string;
|
|
168
261
|
tooltipContent?: string;
|
|
262
|
+
disabledOption?: boolean;
|
|
263
|
+
labelTextColor?: string;
|
|
169
264
|
};
|
|
170
265
|
interface DropdownProps {
|
|
266
|
+
id?: string;
|
|
171
267
|
options: Option[];
|
|
172
268
|
selected?: Option[];
|
|
173
|
-
setSelected?:
|
|
269
|
+
setSelected?: React.Dispatch<React.SetStateAction<Option[]>>;
|
|
174
270
|
onApply?: () => void;
|
|
175
271
|
onReset?: () => void;
|
|
272
|
+
dropdownText?: string;
|
|
176
273
|
search?: boolean;
|
|
177
274
|
multiple?: boolean;
|
|
178
|
-
renderItem?: (option: Option) =>
|
|
179
|
-
children?:
|
|
180
|
-
trigger?:
|
|
275
|
+
renderItem?: (option: Option) => React.ReactNode;
|
|
276
|
+
children?: React.ReactNode;
|
|
277
|
+
trigger?: React.ReactNode;
|
|
181
278
|
dropdownMenu?: boolean;
|
|
182
279
|
position?: "top" | "bottom" | "left" | "right";
|
|
183
280
|
setDropdownMenu?: (value: boolean) => void;
|
|
@@ -185,55 +282,82 @@ interface DropdownProps {
|
|
|
185
282
|
addInfo?: string | number;
|
|
186
283
|
tooltipContent?: string;
|
|
187
284
|
width?: string;
|
|
188
|
-
dropDownTooltip?: boolean | undefined;
|
|
189
285
|
dropdownFooter?: boolean;
|
|
190
286
|
disabled?: boolean;
|
|
287
|
+
labelTextColor?: string;
|
|
288
|
+
footerAction?: React.ReactNode;
|
|
191
289
|
}
|
|
192
|
-
declare const DropdownWithIcon:
|
|
290
|
+
declare const DropdownWithIcon: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
291
|
+
|
|
292
|
+
interface FileSelectorProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
293
|
+
component: JSX.Element;
|
|
294
|
+
}
|
|
295
|
+
declare const FileSelector: React.ForwardRefExoticComponent<FileSelectorProps & React.RefAttributes<HTMLInputElement>>;
|
|
193
296
|
|
|
194
297
|
interface FileUploadProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
195
298
|
id: string;
|
|
196
299
|
selectedFile?: File[];
|
|
197
300
|
setSelectedFile?: (files: File[]) => void;
|
|
198
301
|
children?: ReactNode;
|
|
199
|
-
onDelete?: () => void;
|
|
302
|
+
onDelete?: (index: number) => void;
|
|
200
303
|
title?: string;
|
|
201
304
|
disabled?: boolean;
|
|
305
|
+
filePreviewClassName?: string;
|
|
202
306
|
}
|
|
203
|
-
declare const FileUpload:
|
|
307
|
+
declare const FileUpload: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<HTMLInputElement>>;
|
|
308
|
+
|
|
309
|
+
interface FileUploadPreviewProps {
|
|
310
|
+
index: number;
|
|
311
|
+
file: File;
|
|
312
|
+
children?: ReactNode;
|
|
313
|
+
onDelete?: (index: number) => void;
|
|
314
|
+
}
|
|
315
|
+
declare const FileUploadPreview: ({ index, file, children, onDelete, }: FileUploadPreviewProps) => React.JSX.Element;
|
|
204
316
|
|
|
205
317
|
interface GlobalNavigationProps {
|
|
206
318
|
isOpen: boolean;
|
|
207
319
|
setIsOpen: (isOpen: boolean) => void;
|
|
208
320
|
className?: string;
|
|
209
|
-
children:
|
|
321
|
+
children: React.ReactNode;
|
|
210
322
|
trigger: JSX.Element;
|
|
211
323
|
postion?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
212
324
|
}
|
|
213
|
-
declare const GlobalNavigation:
|
|
325
|
+
declare const GlobalNavigation: React.ForwardRefExoticComponent<GlobalNavigationProps & React.RefAttributes<HTMLDivElement>>;
|
|
214
326
|
|
|
215
327
|
interface HelperTextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
216
328
|
children: ReactNode;
|
|
217
329
|
size?: "sm" | "lg";
|
|
218
330
|
error?: boolean;
|
|
219
331
|
}
|
|
220
|
-
declare const HelperText: ({ children, className, size, error }: HelperTextProps) =>
|
|
332
|
+
declare const HelperText: ({ children, className, size, error }: HelperTextProps) => React.JSX.Element;
|
|
221
333
|
|
|
222
334
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
223
335
|
size?: "sm" | "lg";
|
|
224
336
|
startIcon?: JSX.Element;
|
|
225
337
|
endIcon?: JSX.Element;
|
|
226
338
|
disabled?: boolean;
|
|
339
|
+
error?: boolean;
|
|
227
340
|
type: "text" | "url" | "email" | "password" | "number" | "tel" | "search" | "time";
|
|
228
341
|
}
|
|
229
|
-
declare const Input:
|
|
342
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
343
|
+
|
|
344
|
+
interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement>, VariantProps<typeof labelVariants> {
|
|
345
|
+
htmlFor?: string;
|
|
346
|
+
children: ReactNode;
|
|
347
|
+
required?: boolean;
|
|
348
|
+
disabled?: boolean;
|
|
349
|
+
}
|
|
350
|
+
declare const labelVariants: (props?: ({
|
|
351
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
352
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
353
|
+
declare const Label: ({ children, htmlFor, size, required, disabled, className, ...props }: LabelProps) => React.JSX.Element;
|
|
230
354
|
|
|
231
355
|
interface BaseProps {
|
|
232
356
|
className?: string;
|
|
233
|
-
children?:
|
|
357
|
+
children?: React.ReactNode;
|
|
234
358
|
title: string;
|
|
235
359
|
as?: "link" | "button";
|
|
236
|
-
icon?:
|
|
360
|
+
icon?: React.ReactNode;
|
|
237
361
|
}
|
|
238
362
|
type LinkProps = BaseProps & {
|
|
239
363
|
as: "link";
|
|
@@ -248,18 +372,16 @@ type ButtonProps = BaseProps & {
|
|
|
248
372
|
className?: string;
|
|
249
373
|
};
|
|
250
374
|
type ListItemProps = LinkProps | ButtonProps;
|
|
251
|
-
declare const ListItem:
|
|
375
|
+
declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
252
376
|
|
|
253
|
-
interface
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
377
|
+
interface ListPaginationProps {
|
|
378
|
+
count: number;
|
|
379
|
+
page: number;
|
|
380
|
+
rowsPerPage: number;
|
|
381
|
+
onPageChange: (newPage: number) => void;
|
|
382
|
+
className?: string;
|
|
258
383
|
}
|
|
259
|
-
declare const
|
|
260
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
261
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
262
|
-
declare const Label: ({ children, htmlFor, size, required, disabled, className, ...props }: LabelProps) => React__default.JSX.Element;
|
|
384
|
+
declare const ListPagination: React.FC<ListPaginationProps>;
|
|
263
385
|
|
|
264
386
|
interface LoadingProps {
|
|
265
387
|
width?: string;
|
|
@@ -267,7 +389,7 @@ interface LoadingProps {
|
|
|
267
389
|
loaderColor?: string;
|
|
268
390
|
variant?: "light" | "heavy";
|
|
269
391
|
}
|
|
270
|
-
declare const Loading: ({ width, height, loaderColor, variant }: LoadingProps) =>
|
|
392
|
+
declare const Loading: ({ width, height, loaderColor, variant }: LoadingProps) => React.JSX.Element;
|
|
271
393
|
|
|
272
394
|
interface ModalProps {
|
|
273
395
|
children?: ReactNode;
|
|
@@ -276,51 +398,35 @@ interface ModalProps {
|
|
|
276
398
|
setShowModal: (value: boolean) => void;
|
|
277
399
|
closeOnOutsideClick?: boolean;
|
|
278
400
|
className?: string;
|
|
279
|
-
}
|
|
280
|
-
declare function Modal({ children, showModal, setShowModal, closeModal, closeOnOutsideClick, className, }: ModalProps): React__default.JSX.Element;
|
|
281
|
-
|
|
282
|
-
interface MenuDropdownProps {
|
|
283
|
-
trigger: JSX.Element;
|
|
284
|
-
children: React__default.ReactNode;
|
|
285
401
|
width?: string;
|
|
286
|
-
className?: string;
|
|
287
|
-
}
|
|
288
|
-
declare function MenuDropdown({ trigger, children, width, className, }: MenuDropdownProps): React__default.JSX.Element;
|
|
289
|
-
interface MenuSubItemProps {
|
|
290
|
-
label: string;
|
|
291
|
-
onClick?: () => void;
|
|
292
|
-
disabled?: boolean;
|
|
293
|
-
children?: React__default.ReactNode;
|
|
294
|
-
className?: string;
|
|
295
|
-
}
|
|
296
|
-
declare const MenuSubItem: React__default.FC<MenuSubItemProps>;
|
|
297
|
-
interface MenuItemProps {
|
|
298
|
-
content: React__default.ReactNode;
|
|
299
|
-
children: React__default.ReactNode;
|
|
300
|
-
label?: string;
|
|
301
|
-
className?: string;
|
|
302
|
-
sectionClassName?: string;
|
|
303
|
-
menuClassName?: string;
|
|
304
402
|
}
|
|
305
|
-
declare
|
|
403
|
+
declare function Modal({ children, showModal, setShowModal, closeModal, closeOnOutsideClick, className, width, }: ModalProps): React.JSX.Element;
|
|
306
404
|
|
|
307
405
|
interface NoticeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof noticeVariants> {
|
|
308
406
|
children?: ReactNode;
|
|
309
407
|
noticeTitle?: string;
|
|
310
408
|
variant: "success" | "warning" | "info" | "error" | "default";
|
|
311
|
-
position?: "top" | "bottom";
|
|
409
|
+
position?: "top" | "bottom" | "center";
|
|
312
410
|
showIcon?: boolean;
|
|
313
411
|
open: boolean;
|
|
314
412
|
setOpen: (value: boolean) => void;
|
|
315
413
|
}
|
|
316
414
|
declare const noticeVariants: (props?: ({
|
|
317
415
|
variant?: "success" | "error" | "warning" | "default" | "info" | null | undefined;
|
|
318
|
-
position?: "top" | "bottom" | null | undefined;
|
|
416
|
+
position?: "center" | "top" | "bottom" | null | undefined;
|
|
319
417
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
320
|
-
declare const Notice: ({ children, variant, position, noticeTitle, open, setOpen, showIcon, }: NoticeProps) =>
|
|
418
|
+
declare const Notice: ({ children, variant, position, noticeTitle, open, setOpen, showIcon, }: NoticeProps) => React.JSX.Element;
|
|
419
|
+
|
|
420
|
+
interface OTPInputProps {
|
|
421
|
+
length: number;
|
|
422
|
+
onChange: (otp: string) => void;
|
|
423
|
+
type?: "text" | "password" | "number";
|
|
424
|
+
}
|
|
425
|
+
declare const OTPInput: React.FC<OTPInputProps>;
|
|
321
426
|
|
|
322
427
|
type TablePaginationProps = {
|
|
323
428
|
count: number;
|
|
429
|
+
countVariable?: string;
|
|
324
430
|
page: number;
|
|
325
431
|
rowsPerPage: number;
|
|
326
432
|
rowsPerPageOptions: (number | {
|
|
@@ -330,8 +436,10 @@ type TablePaginationProps = {
|
|
|
330
436
|
onPageChange: (newPage: number) => void;
|
|
331
437
|
onRowsPerPageChange: (newRowsPerPage: number) => void;
|
|
332
438
|
className?: string;
|
|
439
|
+
variant?: "primary" | "secondary";
|
|
440
|
+
itemsPerPage?: boolean;
|
|
333
441
|
};
|
|
334
|
-
declare const Pagination:
|
|
442
|
+
declare const Pagination: React.FC<TablePaginationProps>;
|
|
335
443
|
|
|
336
444
|
type ProgressBarProps = {
|
|
337
445
|
progress: number;
|
|
@@ -339,7 +447,7 @@ type ProgressBarProps = {
|
|
|
339
447
|
progressColor: string;
|
|
340
448
|
progressTextPosition?: "top" | "bottom" | "left" | "right";
|
|
341
449
|
};
|
|
342
|
-
declare const ProgressBar: ({ progress, progressText, progressColor, progressTextPosition, }: ProgressBarProps) =>
|
|
450
|
+
declare const ProgressBar: ({ progress, progressText, progressColor, progressTextPosition, }: ProgressBarProps) => React.JSX.Element;
|
|
343
451
|
|
|
344
452
|
interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof radioVariants> {
|
|
345
453
|
size?: "sm" | "lg";
|
|
@@ -350,78 +458,120 @@ interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">
|
|
|
350
458
|
declare const radioVariants: (props?: ({
|
|
351
459
|
size?: "sm" | "lg" | null | undefined;
|
|
352
460
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
353
|
-
declare const Radio:
|
|
461
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
462
|
+
|
|
463
|
+
type UploadStatus = "idle" | "uploading" | "success" | "error";
|
|
464
|
+
interface UploadItem {
|
|
465
|
+
id: string;
|
|
466
|
+
file?: File;
|
|
467
|
+
name?: string;
|
|
468
|
+
size?: number;
|
|
469
|
+
progress?: number;
|
|
470
|
+
status?: UploadStatus;
|
|
471
|
+
previewUrl?: string;
|
|
472
|
+
}
|
|
473
|
+
interface ImageUploadControlledProps {
|
|
474
|
+
items: UploadItem[];
|
|
475
|
+
onAddFiles: (files: File[]) => void;
|
|
476
|
+
onUpdateItem?: (id: string, updates: Partial<UploadItem>) => void;
|
|
477
|
+
onDelete?: (id: string) => void;
|
|
478
|
+
onRetry?: (id: string) => void;
|
|
479
|
+
onPreview?: (id: string) => void;
|
|
480
|
+
onUpload?: (file: File, onProgress: (progress: number) => void) => Promise<string>;
|
|
481
|
+
multiple?: boolean;
|
|
482
|
+
accept?: string;
|
|
483
|
+
maxSizeMB?: number;
|
|
484
|
+
className?: string;
|
|
485
|
+
hintText?: React.ReactNode;
|
|
486
|
+
showSizeText?: boolean;
|
|
487
|
+
getFileIcon?: (fileName: string, fileType: string) => React.ReactNode;
|
|
488
|
+
autoUpload?: boolean;
|
|
489
|
+
disabled?: boolean;
|
|
490
|
+
}
|
|
491
|
+
declare const defaultGetFileIcon: (fileName: string, fileType: string) => React.JSX.Element;
|
|
492
|
+
declare function ImageUploadControlled({ items, onAddFiles, onUpdateItem, onDelete, onRetry, onPreview, onUpload, multiple, accept, maxSizeMB, className, hintText, showSizeText, getFileIcon, autoUpload, disabled, }: ImageUploadControlledProps): React.JSX.Element;
|
|
354
493
|
|
|
494
|
+
interface NavItem {
|
|
495
|
+
label: string;
|
|
496
|
+
href?: string;
|
|
497
|
+
icon?: React.ReactElement;
|
|
498
|
+
subItems?: NavItem[];
|
|
499
|
+
}
|
|
355
500
|
interface SidebarProps {
|
|
356
|
-
children:
|
|
501
|
+
children: React.ReactNode;
|
|
357
502
|
collapsed: boolean;
|
|
358
503
|
setCollapsed: (collapsed: boolean) => void;
|
|
359
504
|
scroll?: boolean;
|
|
505
|
+
dense?: boolean;
|
|
360
506
|
navItems?: {
|
|
361
507
|
label: string;
|
|
362
|
-
items:
|
|
363
|
-
label: string;
|
|
364
|
-
href: string;
|
|
365
|
-
icon?: React__default.ReactElement;
|
|
366
|
-
}[];
|
|
508
|
+
items: NavItem[];
|
|
367
509
|
}[];
|
|
368
510
|
}
|
|
369
511
|
interface SidebarHeaderProps {
|
|
370
|
-
collapsed: boolean;
|
|
371
|
-
setCollapsed: (collapsed: boolean) => void;
|
|
372
512
|
children: ReactNode;
|
|
513
|
+
dense?: boolean;
|
|
373
514
|
}
|
|
374
515
|
interface SidebarMenuProps {
|
|
375
516
|
collapsed: boolean;
|
|
376
|
-
setCollapsed: (collapsed: boolean) => void;
|
|
377
|
-
scroll?: boolean;
|
|
378
517
|
navItems?: {
|
|
379
518
|
label: string;
|
|
380
|
-
items:
|
|
381
|
-
label: string;
|
|
382
|
-
href: string;
|
|
383
|
-
icon?: React__default.ReactElement;
|
|
384
|
-
}[];
|
|
519
|
+
items: NavItem[];
|
|
385
520
|
}[];
|
|
521
|
+
scroll?: boolean;
|
|
522
|
+
dense?: boolean;
|
|
386
523
|
}
|
|
387
524
|
interface FooterProps {
|
|
388
|
-
children:
|
|
525
|
+
children: React.ReactNode;
|
|
389
526
|
collapsed: boolean;
|
|
390
527
|
setCollapsed: (collapsed: boolean) => void;
|
|
391
528
|
navItems?: {
|
|
392
529
|
label: string;
|
|
393
|
-
items:
|
|
394
|
-
label: string;
|
|
395
|
-
href: string;
|
|
396
|
-
icon?: React__default.ReactElement;
|
|
397
|
-
}[];
|
|
530
|
+
items: NavItem[];
|
|
398
531
|
}[];
|
|
532
|
+
dense?: boolean;
|
|
399
533
|
}
|
|
400
|
-
declare const Sidebar:
|
|
401
|
-
Header:
|
|
402
|
-
Menu:
|
|
403
|
-
Footer:
|
|
534
|
+
declare const Sidebar: React.FC<SidebarProps> & {
|
|
535
|
+
Header: React.FC<SidebarHeaderProps>;
|
|
536
|
+
Menu: React.FC<SidebarMenuProps>;
|
|
537
|
+
Footer: React.FC<FooterProps>;
|
|
404
538
|
};
|
|
405
539
|
|
|
540
|
+
interface SkeletonProps {
|
|
541
|
+
width?: string | number;
|
|
542
|
+
height?: string | number;
|
|
543
|
+
circle?: boolean;
|
|
544
|
+
animation?: "wave" | "pulse" | "shimmer";
|
|
545
|
+
}
|
|
546
|
+
declare const Skeleton: React.FC<SkeletonProps>;
|
|
547
|
+
|
|
406
548
|
interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
407
549
|
value: number;
|
|
408
550
|
min?: number;
|
|
409
551
|
max?: number;
|
|
410
552
|
size?: "sm" | "lg";
|
|
411
553
|
}
|
|
412
|
-
declare const Slider:
|
|
554
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLInputElement>>;
|
|
413
555
|
|
|
414
|
-
interface
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
circle?: boolean;
|
|
556
|
+
interface SpinnerProps {
|
|
557
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
558
|
+
color?: "primary" | "black" | "gray" | string;
|
|
418
559
|
}
|
|
419
|
-
declare const
|
|
560
|
+
declare const Spinner: ({ size, color }: SpinnerProps) => React.JSX.Element;
|
|
561
|
+
|
|
562
|
+
interface SplitButtonProps {
|
|
563
|
+
children: React.ReactNode;
|
|
564
|
+
className?: string;
|
|
565
|
+
size?: 'sm' | 'md' | 'lg';
|
|
566
|
+
appearance?: 'primary' | 'secondary' | 'warning' | 'danger';
|
|
567
|
+
compact?: boolean;
|
|
568
|
+
}
|
|
569
|
+
declare const SplitButton: React.ForwardRefExoticComponent<SplitButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
420
570
|
|
|
421
571
|
interface StepConfig {
|
|
422
572
|
name: string;
|
|
423
573
|
helperName?: string;
|
|
424
|
-
Component:
|
|
574
|
+
Component: React.ComponentType<any>;
|
|
425
575
|
}
|
|
426
576
|
interface CheckoutStepperProps {
|
|
427
577
|
stepsConfig: StepConfig[];
|
|
@@ -431,7 +581,7 @@ interface CheckoutStepperProps {
|
|
|
431
581
|
setIsComplete: (complete: boolean) => void;
|
|
432
582
|
position?: string;
|
|
433
583
|
}
|
|
434
|
-
declare const Stepper: ({ stepsConfig, currentStep, setCurrentStep, isComplete, setIsComplete, position, }: CheckoutStepperProps) =>
|
|
584
|
+
declare const Stepper: ({ stepsConfig, currentStep, setCurrentStep, isComplete, setIsComplete, position, }: CheckoutStepperProps) => React.JSX.Element | null;
|
|
435
585
|
|
|
436
586
|
interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
437
587
|
children?: ReactNode;
|
|
@@ -449,22 +599,26 @@ interface TableHeadCellProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
|
449
599
|
icon?: JSX.Element;
|
|
450
600
|
sticky?: boolean;
|
|
451
601
|
left?: string;
|
|
602
|
+
right?: string;
|
|
452
603
|
stickyIcon?: JSX.Element;
|
|
453
604
|
shadow?: boolean;
|
|
605
|
+
shadowRight?: boolean;
|
|
454
606
|
}
|
|
455
607
|
interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
456
608
|
children?: ReactNode;
|
|
457
609
|
icon?: JSX.Element;
|
|
458
610
|
sticky?: boolean;
|
|
459
611
|
left?: string;
|
|
612
|
+
right?: string;
|
|
460
613
|
shadow?: boolean;
|
|
614
|
+
shadowRight?: boolean;
|
|
461
615
|
}
|
|
462
|
-
declare const Table: ({ children, className, dense, ...props }: TableProps) =>
|
|
463
|
-
declare const TableHead: ({ children, className, ...props }: TableHeadProps) =>
|
|
464
|
-
declare const TableBody: ({ children, className, ...props }: TableHeadProps) =>
|
|
465
|
-
declare const TableRow: ({ children, className, indent, ...props }: TableRowProps) =>
|
|
466
|
-
declare const TableHeadCell: ({ children, className, icon, sticky, shadow, left, ...props }: TableHeadCellProps) =>
|
|
467
|
-
declare const TableDataCell: ({ children, className, icon, sticky, shadow, left, ...props }: TableCellProps) =>
|
|
616
|
+
declare const Table: ({ children, className, dense, ...props }: TableProps) => React.JSX.Element;
|
|
617
|
+
declare const TableHead: ({ children, className, ...props }: TableHeadProps) => React.JSX.Element;
|
|
618
|
+
declare const TableBody: ({ children, className, ...props }: TableHeadProps) => React.JSX.Element;
|
|
619
|
+
declare const TableRow: ({ children, className, indent, ...props }: TableRowProps) => React.JSX.Element;
|
|
620
|
+
declare const TableHeadCell: ({ children, className, icon, sticky, shadow, left, shadowRight, right, ...props }: TableHeadCellProps) => React.JSX.Element;
|
|
621
|
+
declare const TableDataCell: ({ children, className, icon, sticky, shadow, shadowRight, left, right, ...props }: TableCellProps) => React.JSX.Element;
|
|
468
622
|
|
|
469
623
|
interface TabItem {
|
|
470
624
|
label: string;
|
|
@@ -472,43 +626,62 @@ interface TabItem {
|
|
|
472
626
|
}
|
|
473
627
|
interface TabsContainerProps {
|
|
474
628
|
value: string;
|
|
475
|
-
children:
|
|
629
|
+
children: React.ReactNode;
|
|
476
630
|
className?: string;
|
|
631
|
+
position?: "horizontal" | "vertical";
|
|
477
632
|
}
|
|
478
633
|
interface TabListProps extends Partial<TabItem> {
|
|
479
634
|
onChange: (value: string) => void;
|
|
480
635
|
ariaLabel?: string;
|
|
481
|
-
children:
|
|
636
|
+
children: React.ReactNode;
|
|
482
637
|
box?: boolean;
|
|
638
|
+
pill?: boolean;
|
|
483
639
|
className?: string;
|
|
640
|
+
position?: "horizontal" | "vertical";
|
|
484
641
|
}
|
|
485
642
|
interface TabProps extends TabItem {
|
|
486
643
|
onChange: (value: string) => void;
|
|
487
644
|
box?: boolean;
|
|
488
|
-
|
|
645
|
+
pill?: boolean;
|
|
646
|
+
content?: React.ReactNode;
|
|
489
647
|
selectedTabValue: string;
|
|
490
648
|
icon?: JSX.Element;
|
|
491
649
|
className?: string;
|
|
650
|
+
tabIndex?: number;
|
|
651
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
652
|
+
position?: "horizontal" | "vertical";
|
|
653
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
492
654
|
}
|
|
493
655
|
interface TabPanelProps {
|
|
494
656
|
value: string;
|
|
495
657
|
currentValue: string;
|
|
496
|
-
children:
|
|
658
|
+
children: React.ReactNode;
|
|
497
659
|
className?: string;
|
|
498
660
|
}
|
|
499
|
-
declare const TabsContainer:
|
|
500
|
-
declare const TabList:
|
|
501
|
-
declare const Tab:
|
|
502
|
-
declare const TabPanel:
|
|
661
|
+
declare const TabsContainer: React.FC<TabsContainerProps>;
|
|
662
|
+
declare const TabList: React.FC<TabListProps>;
|
|
663
|
+
declare const Tab: React.ForwardRefExoticComponent<Omit<TabProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
664
|
+
declare const TabPanel: React.FC<TabPanelProps>;
|
|
503
665
|
|
|
504
666
|
interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
|
|
505
667
|
size?: "sm" | "lg";
|
|
506
668
|
disabled?: boolean;
|
|
507
669
|
rows?: number;
|
|
508
670
|
cols?: number;
|
|
671
|
+
error?: boolean;
|
|
509
672
|
children?: ReactNode;
|
|
510
673
|
}
|
|
511
|
-
declare const Textarea:
|
|
674
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
675
|
+
|
|
676
|
+
interface TextInputWithLabelProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
677
|
+
intent?: "error" | "default" | "success" | "warning" | "blue" | "primary" | "bluegray" | "bluelight" | "violet" | "indigo" | "purple" | "pink" | "rose" | "orange";
|
|
678
|
+
placeholder?: string;
|
|
679
|
+
size?: "sm" | "lg";
|
|
680
|
+
type?: "number" | "search" | "text" | "url" | "email" | "password" | "tel" | "time";
|
|
681
|
+
tags: string[];
|
|
682
|
+
setTags: (tags: string[]) => void;
|
|
683
|
+
}
|
|
684
|
+
declare const TextInputWithLabel: React.FC<TextInputWithLabelProps>;
|
|
512
685
|
|
|
513
686
|
interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof toggleVariants> {
|
|
514
687
|
size?: "sm" | "md" | "lg";
|
|
@@ -519,16 +692,80 @@ declare const toggleVariants: (props?: ({
|
|
|
519
692
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
520
693
|
intent?: "primary" | "success" | null | undefined;
|
|
521
694
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
522
|
-
declare const Toggle:
|
|
695
|
+
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
|
|
523
696
|
|
|
524
697
|
declare const tooltipVariants: (props?: ({
|
|
525
|
-
position?: "
|
|
698
|
+
position?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
526
699
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
527
700
|
interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "content">, VariantProps<typeof tooltipVariants> {
|
|
528
701
|
children: ReactNode;
|
|
529
702
|
position: "top" | "right" | "bottom" | "left";
|
|
530
703
|
content: JSX.Element | string;
|
|
531
704
|
}
|
|
532
|
-
declare const Tooltip:
|
|
705
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
706
|
+
|
|
707
|
+
interface TreeViewProps {
|
|
708
|
+
children: React.ReactNode;
|
|
709
|
+
"aria-label": string;
|
|
710
|
+
flat?: boolean;
|
|
711
|
+
className?: string;
|
|
712
|
+
/** Optional array of IDs to expand initially */
|
|
713
|
+
defaultExpandedIds?: string[];
|
|
714
|
+
/** Controlled expansion (useful if parent manages state externally) */
|
|
715
|
+
expandedIds?: string[];
|
|
716
|
+
/** Callback for when expanded nodes change */
|
|
717
|
+
onExpandedChange?: (expanded: string[]) => void;
|
|
718
|
+
/** Allow multiple nodes to be expanded simultaneously */
|
|
719
|
+
allowMultiple?: boolean;
|
|
720
|
+
/** Automatically expand all top-level items by default */
|
|
721
|
+
expandTopLevelByDefault?: boolean;
|
|
722
|
+
}
|
|
723
|
+
interface TreeViewItemProps {
|
|
724
|
+
id: string;
|
|
725
|
+
children: React.ReactNode;
|
|
726
|
+
current?: boolean;
|
|
727
|
+
className?: string;
|
|
728
|
+
onSelect?: (id: string) => void;
|
|
729
|
+
level?: number;
|
|
730
|
+
expanded?: boolean;
|
|
731
|
+
onToggle?: (id: string) => void;
|
|
732
|
+
selected?: boolean;
|
|
733
|
+
flat?: boolean;
|
|
734
|
+
}
|
|
735
|
+
interface TreeViewSubTreeProps {
|
|
736
|
+
children: React.ReactNode;
|
|
737
|
+
state?: "loading";
|
|
738
|
+
count?: number;
|
|
739
|
+
className?: string;
|
|
740
|
+
expanded?: boolean;
|
|
741
|
+
flat?: boolean;
|
|
742
|
+
}
|
|
743
|
+
declare const TreeView: React.FC<TreeViewProps> & {
|
|
744
|
+
Item: React.FC<TreeViewItemProps>;
|
|
745
|
+
SubTree: typeof TreeViewSubTree;
|
|
746
|
+
LeadingVisual: typeof TreeViewLeadingVisual;
|
|
747
|
+
TrailingVisual: typeof TreeViewTrailingVisual;
|
|
748
|
+
};
|
|
749
|
+
declare const TreeViewSubTree: React.FC<TreeViewSubTreeProps>;
|
|
750
|
+
declare const TreeViewLeadingVisual: React.FC<{
|
|
751
|
+
children: React.ReactNode;
|
|
752
|
+
className?: string;
|
|
753
|
+
}>;
|
|
754
|
+
declare const TreeViewTrailingVisual: React.FC<{
|
|
755
|
+
children: React.ReactNode;
|
|
756
|
+
label?: string;
|
|
757
|
+
className?: string;
|
|
758
|
+
}>;
|
|
759
|
+
|
|
760
|
+
interface TypographyProps extends HTMLAttributes<HTMLHeadingElement | HTMLParagraphElement>, VariantProps<typeof typographyVariant> {
|
|
761
|
+
as?: ElementType;
|
|
762
|
+
children: ReactNode;
|
|
763
|
+
intent?: "primary" | "success" | "error" | "warning" | "default";
|
|
764
|
+
}
|
|
765
|
+
declare const typographyVariant: (props?: ({
|
|
766
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "b1" | "b2" | "b3" | "b4" | "b5" | null | undefined;
|
|
767
|
+
intent?: "primary" | "success" | "error" | "warning" | "default" | null | undefined;
|
|
768
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
769
|
+
declare const Typography: ({ as, variant, intent, children, className, ...props }: TypographyProps) => React.JSX.Element;
|
|
533
770
|
|
|
534
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Avatar, AvatarGroup, Breadcrumbs as BreadCrumb, Button, Checkbox, Chip, CircularProgressBar as CircularProgress, Divider, Dropdown, DropdownWithIcon, FileUpload, GlobalNavigation, HelperText, Input, Label, ListItem,
|
|
771
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Avatar, AvatarGroup, Breadcrumbs as BreadCrumb, Button, Callout, export_default as Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CircularProgressBar as CircularProgress, Divider, Drawer, Dropdown, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownWithIcon, FileSelector, FileUpload, FileUploadPreview, GlobalNavigation, HelperText, Input, Label, ListItem, ListPagination, Loading, Modal, Notice, OTPInput, Pagination, ProgressBar, Radio, ImageUploadControlled as RazorPayFileUpload, Sidebar, Skeleton, Slider, Spinner, SplitButton, Stepper, Tab, TabList, TabPanel, Table, TableBody, TableDataCell, TableHead, TableHeadCell, TableRow, TabsContainer, TextInputWithLabel, Textarea, Toggle, Tooltip, TreeView, Typography, defaultGetFileIcon };
|