atomos_next_genesis 0.0.3-alpha → 0.0.4
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 +250 -249
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +79 -80
- package/dist/index.d.ts +79 -80
- package/dist/index.js +41 -40
- 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, InputHTMLAttributes, LabelHTMLAttributes, TableHTMLAttributes, ThHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes } 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,28 @@ type AccordionProps = {
|
|
|
7
6
|
type?: "single" | "multiple";
|
|
8
7
|
collapsible?: boolean;
|
|
9
8
|
className?: string;
|
|
10
|
-
children:
|
|
9
|
+
children: React.ReactNode;
|
|
11
10
|
};
|
|
12
|
-
declare function Accordion({ type, collapsible, className, children, }: AccordionProps):
|
|
11
|
+
declare function Accordion({ type, collapsible, className, children, }: AccordionProps): React.JSX.Element;
|
|
13
12
|
type AccordionItemProps = {
|
|
14
13
|
value: string;
|
|
15
14
|
disabled?: boolean;
|
|
16
15
|
openItems?: string[];
|
|
17
16
|
handleToggle?: (value: string) => void;
|
|
18
|
-
children:
|
|
17
|
+
children: React.ReactNode;
|
|
19
18
|
className?: string;
|
|
20
19
|
};
|
|
21
|
-
declare function AccordionItem({ value, disabled, openItems, handleToggle, children, className, }: AccordionItemProps):
|
|
20
|
+
declare function AccordionItem({ value, disabled, openItems, handleToggle, children, className, }: AccordionItemProps): React.JSX.Element;
|
|
22
21
|
type AccordionTriggerProps = {
|
|
23
22
|
isOpen?: boolean;
|
|
24
|
-
children:
|
|
23
|
+
children: React.ReactNode;
|
|
25
24
|
};
|
|
26
|
-
declare function AccordionTrigger({ isOpen, children }: AccordionTriggerProps):
|
|
25
|
+
declare function AccordionTrigger({ isOpen, children }: AccordionTriggerProps): React.JSX.Element;
|
|
27
26
|
type AccordionContentProps = {
|
|
28
27
|
isOpen?: boolean;
|
|
29
|
-
children:
|
|
28
|
+
children: React.ReactNode;
|
|
30
29
|
};
|
|
31
|
-
declare function AccordionContent({ isOpen, children }: AccordionContentProps):
|
|
30
|
+
declare function AccordionContent({ isOpen, children }: AccordionContentProps): React.JSX.Element;
|
|
32
31
|
|
|
33
32
|
interface BaseProps$1 {
|
|
34
33
|
type: "image" | "icon" | "text";
|
|
@@ -58,7 +57,7 @@ interface TextProps extends BaseProps$1 {
|
|
|
58
57
|
text: string;
|
|
59
58
|
}
|
|
60
59
|
type AvatarProps = ImageProps | IconProps | TextProps;
|
|
61
|
-
declare const Avatar:
|
|
60
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
62
61
|
|
|
63
62
|
type AvatarItemProps = Omit<ImageProps, "size"> | Omit<IconProps, "size"> | Omit<TextProps, "size">;
|
|
64
63
|
interface AvatarGroupProps {
|
|
@@ -67,15 +66,15 @@ interface AvatarGroupProps {
|
|
|
67
66
|
max?: number;
|
|
68
67
|
className?: string;
|
|
69
68
|
}
|
|
70
|
-
declare const AvatarGroup:
|
|
69
|
+
declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
71
70
|
|
|
72
71
|
type BreadcrumbsProps = {
|
|
73
|
-
children:
|
|
74
|
-
separator?:
|
|
72
|
+
children: React.ReactNode;
|
|
73
|
+
separator?: React.ReactNode;
|
|
75
74
|
'aria-label': string;
|
|
76
75
|
containerClasses?: string;
|
|
77
76
|
};
|
|
78
|
-
declare const Breadcrumbs: ({ children, separator, "aria-label": ariaLabel, containerClasses }: BreadcrumbsProps) =>
|
|
77
|
+
declare const Breadcrumbs: ({ children, separator, "aria-label": ariaLabel, containerClasses }: BreadcrumbsProps) => React.JSX.Element;
|
|
79
78
|
|
|
80
79
|
interface ButtonProps$1 extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
81
80
|
children?: ReactNode;
|
|
@@ -89,7 +88,7 @@ declare const buttonVariants: (props?: ({
|
|
|
89
88
|
intent?: "primary" | "success" | "error" | "warning" | "default" | "primary-outlined" | "success-outlined" | "error-outlined" | "warning-outlined" | "default-outlined" | null | undefined;
|
|
90
89
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
91
90
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
92
|
-
declare const Button: ({ children, className, variant, intent, fullWidth, startIcon, disabled, endIcon, size, ...props }: ButtonProps$1) =>
|
|
91
|
+
declare const Button: ({ children, className, variant, intent, fullWidth, startIcon, disabled, endIcon, size, ...props }: ButtonProps$1) => React.JSX.Element;
|
|
93
92
|
|
|
94
93
|
interface CheckboxProps extends Omit<HTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof checkboxVariant> {
|
|
95
94
|
size?: "sm" | "lg";
|
|
@@ -100,7 +99,7 @@ interface CheckboxProps extends Omit<HTMLAttributes<HTMLInputElement>, "size">,
|
|
|
100
99
|
declare const checkboxVariant: (props?: ({
|
|
101
100
|
size?: "sm" | "lg" | null | undefined;
|
|
102
101
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
103
|
-
declare const Checkbox:
|
|
102
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
104
103
|
|
|
105
104
|
declare const chipVariants: (props?: ({
|
|
106
105
|
intent?: "indigo" | "orange" | "pink" | "purple" | "violet" | "primary" | "success" | "error" | "warning" | "default" | "bluegray" | "bluelight" | "rose" | null | undefined;
|
|
@@ -111,7 +110,7 @@ interface ChipProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof
|
|
|
111
110
|
dot?: boolean;
|
|
112
111
|
dotColor?: string;
|
|
113
112
|
}
|
|
114
|
-
declare const Chip: ({ children, className, size, intent, dot, dotColor, }: ChipProps) =>
|
|
113
|
+
declare const Chip: ({ children, className, size, intent, dot, dotColor, }: ChipProps) => React.JSX.Element;
|
|
115
114
|
|
|
116
115
|
interface CircularProgressBarProps {
|
|
117
116
|
strokeWidth?: number;
|
|
@@ -128,7 +127,7 @@ interface DividerProps {
|
|
|
128
127
|
position?: "horizontal" | "vertical";
|
|
129
128
|
className?: string;
|
|
130
129
|
}
|
|
131
|
-
declare const Divider: ({ width, height, position, className, }: DividerProps) =>
|
|
130
|
+
declare const Divider: ({ width, height, position, className, }: DividerProps) => React.JSX.Element;
|
|
132
131
|
|
|
133
132
|
type Option$1 = {
|
|
134
133
|
label: string;
|
|
@@ -141,14 +140,14 @@ interface DropdownProps$1 {
|
|
|
141
140
|
icon?: JSX.Element;
|
|
142
141
|
options: Option$1[];
|
|
143
142
|
selected?: Option$1[];
|
|
144
|
-
setSelected?:
|
|
143
|
+
setSelected?: React.Dispatch<React.SetStateAction<Option$1[]>>;
|
|
145
144
|
onApply?: () => void;
|
|
146
145
|
onReset?: () => void;
|
|
147
146
|
dropdownText?: string;
|
|
148
147
|
search?: boolean;
|
|
149
148
|
multiple?: boolean;
|
|
150
|
-
renderItem?: (option: Option$1) =>
|
|
151
|
-
children?:
|
|
149
|
+
renderItem?: (option: Option$1) => React.ReactNode;
|
|
150
|
+
children?: React.ReactNode;
|
|
152
151
|
position?: "top" | "bottom";
|
|
153
152
|
info?: string | number;
|
|
154
153
|
addInfo?: string | number;
|
|
@@ -158,7 +157,7 @@ interface DropdownProps$1 {
|
|
|
158
157
|
dropdownFooter?: boolean | undefined;
|
|
159
158
|
disabled?: boolean;
|
|
160
159
|
}
|
|
161
|
-
declare const Dropdown:
|
|
160
|
+
declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps$1 & React.RefAttributes<HTMLDivElement>>;
|
|
162
161
|
|
|
163
162
|
type Option = {
|
|
164
163
|
label: string;
|
|
@@ -170,14 +169,14 @@ type Option = {
|
|
|
170
169
|
interface DropdownProps {
|
|
171
170
|
options: Option[];
|
|
172
171
|
selected?: Option[];
|
|
173
|
-
setSelected?:
|
|
172
|
+
setSelected?: React.Dispatch<React.SetStateAction<Option[]>>;
|
|
174
173
|
onApply?: () => void;
|
|
175
174
|
onReset?: () => void;
|
|
176
175
|
search?: boolean;
|
|
177
176
|
multiple?: boolean;
|
|
178
|
-
renderItem?: (option: Option) =>
|
|
179
|
-
children?:
|
|
180
|
-
trigger?:
|
|
177
|
+
renderItem?: (option: Option) => React.ReactNode;
|
|
178
|
+
children?: React.ReactNode;
|
|
179
|
+
trigger?: React.ReactNode;
|
|
181
180
|
dropdownMenu?: boolean;
|
|
182
181
|
position?: "top" | "bottom" | "left" | "right";
|
|
183
182
|
setDropdownMenu?: (value: boolean) => void;
|
|
@@ -189,7 +188,7 @@ interface DropdownProps {
|
|
|
189
188
|
dropdownFooter?: boolean;
|
|
190
189
|
disabled?: boolean;
|
|
191
190
|
}
|
|
192
|
-
declare const DropdownWithIcon:
|
|
191
|
+
declare const DropdownWithIcon: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
193
192
|
|
|
194
193
|
interface FileUploadProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
195
194
|
id: string;
|
|
@@ -200,24 +199,24 @@ interface FileUploadProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
200
199
|
title?: string;
|
|
201
200
|
disabled?: boolean;
|
|
202
201
|
}
|
|
203
|
-
declare const FileUpload:
|
|
202
|
+
declare const FileUpload: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<HTMLInputElement>>;
|
|
204
203
|
|
|
205
204
|
interface GlobalNavigationProps {
|
|
206
205
|
isOpen: boolean;
|
|
207
206
|
setIsOpen: (isOpen: boolean) => void;
|
|
208
207
|
className?: string;
|
|
209
|
-
children:
|
|
208
|
+
children: React.ReactNode;
|
|
210
209
|
trigger: JSX.Element;
|
|
211
210
|
postion?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
212
211
|
}
|
|
213
|
-
declare const GlobalNavigation:
|
|
212
|
+
declare const GlobalNavigation: React.ForwardRefExoticComponent<GlobalNavigationProps & React.RefAttributes<HTMLDivElement>>;
|
|
214
213
|
|
|
215
214
|
interface HelperTextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
216
215
|
children: ReactNode;
|
|
217
216
|
size?: "sm" | "lg";
|
|
218
217
|
error?: boolean;
|
|
219
218
|
}
|
|
220
|
-
declare const HelperText: ({ children, className, size, error }: HelperTextProps) =>
|
|
219
|
+
declare const HelperText: ({ children, className, size, error }: HelperTextProps) => React.JSX.Element;
|
|
221
220
|
|
|
222
221
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
223
222
|
size?: "sm" | "lg";
|
|
@@ -226,14 +225,14 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">
|
|
|
226
225
|
disabled?: boolean;
|
|
227
226
|
type: "text" | "url" | "email" | "password" | "number" | "tel" | "search" | "time";
|
|
228
227
|
}
|
|
229
|
-
declare const Input:
|
|
228
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
230
229
|
|
|
231
230
|
interface BaseProps {
|
|
232
231
|
className?: string;
|
|
233
|
-
children?:
|
|
232
|
+
children?: React.ReactNode;
|
|
234
233
|
title: string;
|
|
235
234
|
as?: "link" | "button";
|
|
236
|
-
icon?:
|
|
235
|
+
icon?: React.ReactNode;
|
|
237
236
|
}
|
|
238
237
|
type LinkProps = BaseProps & {
|
|
239
238
|
as: "link";
|
|
@@ -248,7 +247,7 @@ type ButtonProps = BaseProps & {
|
|
|
248
247
|
className?: string;
|
|
249
248
|
};
|
|
250
249
|
type ListItemProps = LinkProps | ButtonProps;
|
|
251
|
-
declare const ListItem:
|
|
250
|
+
declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
252
251
|
|
|
253
252
|
interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement>, VariantProps<typeof labelVariants> {
|
|
254
253
|
htmlFor?: string;
|
|
@@ -259,7 +258,7 @@ interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement>, VariantProps
|
|
|
259
258
|
declare const labelVariants: (props?: ({
|
|
260
259
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
261
260
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
262
|
-
declare const Label: ({ children, htmlFor, size, required, disabled, className, ...props }: LabelProps) =>
|
|
261
|
+
declare const Label: ({ children, htmlFor, size, required, disabled, className, ...props }: LabelProps) => React.JSX.Element;
|
|
263
262
|
|
|
264
263
|
interface LoadingProps {
|
|
265
264
|
width?: string;
|
|
@@ -267,7 +266,7 @@ interface LoadingProps {
|
|
|
267
266
|
loaderColor?: string;
|
|
268
267
|
variant?: "light" | "heavy";
|
|
269
268
|
}
|
|
270
|
-
declare const Loading: ({ width, height, loaderColor, variant }: LoadingProps) =>
|
|
269
|
+
declare const Loading: ({ width, height, loaderColor, variant }: LoadingProps) => React.JSX.Element;
|
|
271
270
|
|
|
272
271
|
interface ModalProps {
|
|
273
272
|
children?: ReactNode;
|
|
@@ -277,32 +276,32 @@ interface ModalProps {
|
|
|
277
276
|
closeOnOutsideClick?: boolean;
|
|
278
277
|
className?: string;
|
|
279
278
|
}
|
|
280
|
-
declare function Modal({ children, showModal, setShowModal, closeModal, closeOnOutsideClick, className, }: ModalProps):
|
|
279
|
+
declare function Modal({ children, showModal, setShowModal, closeModal, closeOnOutsideClick, className, }: ModalProps): React.JSX.Element;
|
|
281
280
|
|
|
282
281
|
interface MenuDropdownProps {
|
|
283
282
|
trigger: JSX.Element;
|
|
284
|
-
children:
|
|
283
|
+
children: React.ReactNode;
|
|
285
284
|
width?: string;
|
|
286
285
|
className?: string;
|
|
287
286
|
}
|
|
288
|
-
declare function MenuDropdown({ trigger, children, width, className, }: MenuDropdownProps):
|
|
287
|
+
declare function MenuDropdown({ trigger, children, width, className, }: MenuDropdownProps): React.JSX.Element;
|
|
289
288
|
interface MenuSubItemProps {
|
|
290
289
|
label: string;
|
|
291
290
|
onClick?: () => void;
|
|
292
291
|
disabled?: boolean;
|
|
293
|
-
children?:
|
|
292
|
+
children?: React.ReactNode;
|
|
294
293
|
className?: string;
|
|
295
294
|
}
|
|
296
|
-
declare const MenuSubItem:
|
|
295
|
+
declare const MenuSubItem: React.FC<MenuSubItemProps>;
|
|
297
296
|
interface MenuItemProps {
|
|
298
|
-
content:
|
|
299
|
-
children:
|
|
297
|
+
content: React.ReactNode;
|
|
298
|
+
children: React.ReactNode;
|
|
300
299
|
label?: string;
|
|
301
300
|
className?: string;
|
|
302
301
|
sectionClassName?: string;
|
|
303
302
|
menuClassName?: string;
|
|
304
303
|
}
|
|
305
|
-
declare const MenuItem:
|
|
304
|
+
declare const MenuItem: React.FC<MenuItemProps>;
|
|
306
305
|
|
|
307
306
|
interface NoticeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof noticeVariants> {
|
|
308
307
|
children?: ReactNode;
|
|
@@ -317,7 +316,7 @@ declare const noticeVariants: (props?: ({
|
|
|
317
316
|
variant?: "success" | "error" | "warning" | "default" | "info" | null | undefined;
|
|
318
317
|
position?: "top" | "bottom" | null | undefined;
|
|
319
318
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
320
|
-
declare const Notice: ({ children, variant, position, noticeTitle, open, setOpen, showIcon, }: NoticeProps) =>
|
|
319
|
+
declare const Notice: ({ children, variant, position, noticeTitle, open, setOpen, showIcon, }: NoticeProps) => React.JSX.Element;
|
|
321
320
|
|
|
322
321
|
type TablePaginationProps = {
|
|
323
322
|
count: number;
|
|
@@ -331,7 +330,7 @@ type TablePaginationProps = {
|
|
|
331
330
|
onRowsPerPageChange: (newRowsPerPage: number) => void;
|
|
332
331
|
className?: string;
|
|
333
332
|
};
|
|
334
|
-
declare const Pagination:
|
|
333
|
+
declare const Pagination: React.FC<TablePaginationProps>;
|
|
335
334
|
|
|
336
335
|
type ProgressBarProps = {
|
|
337
336
|
progress: number;
|
|
@@ -339,7 +338,7 @@ type ProgressBarProps = {
|
|
|
339
338
|
progressColor: string;
|
|
340
339
|
progressTextPosition?: "top" | "bottom" | "left" | "right";
|
|
341
340
|
};
|
|
342
|
-
declare const ProgressBar: ({ progress, progressText, progressColor, progressTextPosition, }: ProgressBarProps) =>
|
|
341
|
+
declare const ProgressBar: ({ progress, progressText, progressColor, progressTextPosition, }: ProgressBarProps) => React.JSX.Element;
|
|
343
342
|
|
|
344
343
|
interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof radioVariants> {
|
|
345
344
|
size?: "sm" | "lg";
|
|
@@ -350,10 +349,10 @@ interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">
|
|
|
350
349
|
declare const radioVariants: (props?: ({
|
|
351
350
|
size?: "sm" | "lg" | null | undefined;
|
|
352
351
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
353
|
-
declare const Radio:
|
|
352
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
354
353
|
|
|
355
354
|
interface SidebarProps {
|
|
356
|
-
children:
|
|
355
|
+
children: React.ReactNode;
|
|
357
356
|
collapsed: boolean;
|
|
358
357
|
setCollapsed: (collapsed: boolean) => void;
|
|
359
358
|
scroll?: boolean;
|
|
@@ -362,7 +361,7 @@ interface SidebarProps {
|
|
|
362
361
|
items: {
|
|
363
362
|
label: string;
|
|
364
363
|
href: string;
|
|
365
|
-
icon?:
|
|
364
|
+
icon?: React.ReactElement;
|
|
366
365
|
}[];
|
|
367
366
|
}[];
|
|
368
367
|
}
|
|
@@ -380,12 +379,12 @@ interface SidebarMenuProps {
|
|
|
380
379
|
items: {
|
|
381
380
|
label: string;
|
|
382
381
|
href: string;
|
|
383
|
-
icon?:
|
|
382
|
+
icon?: React.ReactElement;
|
|
384
383
|
}[];
|
|
385
384
|
}[];
|
|
386
385
|
}
|
|
387
386
|
interface FooterProps {
|
|
388
|
-
children:
|
|
387
|
+
children: React.ReactNode;
|
|
389
388
|
collapsed: boolean;
|
|
390
389
|
setCollapsed: (collapsed: boolean) => void;
|
|
391
390
|
navItems?: {
|
|
@@ -393,14 +392,14 @@ interface FooterProps {
|
|
|
393
392
|
items: {
|
|
394
393
|
label: string;
|
|
395
394
|
href: string;
|
|
396
|
-
icon?:
|
|
395
|
+
icon?: React.ReactElement;
|
|
397
396
|
}[];
|
|
398
397
|
}[];
|
|
399
398
|
}
|
|
400
|
-
declare const Sidebar:
|
|
401
|
-
Header:
|
|
402
|
-
Menu:
|
|
403
|
-
Footer:
|
|
399
|
+
declare const Sidebar: React.FC<SidebarProps> & {
|
|
400
|
+
Header: React.FC<SidebarHeaderProps>;
|
|
401
|
+
Menu: React.FC<SidebarMenuProps>;
|
|
402
|
+
Footer: React.FC<FooterProps>;
|
|
404
403
|
};
|
|
405
404
|
|
|
406
405
|
interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
@@ -409,19 +408,19 @@ interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"
|
|
|
409
408
|
max?: number;
|
|
410
409
|
size?: "sm" | "lg";
|
|
411
410
|
}
|
|
412
|
-
declare const Slider:
|
|
411
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLInputElement>>;
|
|
413
412
|
|
|
414
413
|
interface SkeletonProps {
|
|
415
414
|
width?: string | number;
|
|
416
415
|
height?: string | number;
|
|
417
416
|
circle?: boolean;
|
|
418
417
|
}
|
|
419
|
-
declare const Skeleton:
|
|
418
|
+
declare const Skeleton: React.FC<SkeletonProps>;
|
|
420
419
|
|
|
421
420
|
interface StepConfig {
|
|
422
421
|
name: string;
|
|
423
422
|
helperName?: string;
|
|
424
|
-
Component:
|
|
423
|
+
Component: React.ComponentType<any>;
|
|
425
424
|
}
|
|
426
425
|
interface CheckoutStepperProps {
|
|
427
426
|
stepsConfig: StepConfig[];
|
|
@@ -431,7 +430,7 @@ interface CheckoutStepperProps {
|
|
|
431
430
|
setIsComplete: (complete: boolean) => void;
|
|
432
431
|
position?: string;
|
|
433
432
|
}
|
|
434
|
-
declare const Stepper: ({ stepsConfig, currentStep, setCurrentStep, isComplete, setIsComplete, position, }: CheckoutStepperProps) =>
|
|
433
|
+
declare const Stepper: ({ stepsConfig, currentStep, setCurrentStep, isComplete, setIsComplete, position, }: CheckoutStepperProps) => React.JSX.Element | null;
|
|
435
434
|
|
|
436
435
|
interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
437
436
|
children?: ReactNode;
|
|
@@ -459,12 +458,12 @@ interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
|
459
458
|
left?: string;
|
|
460
459
|
shadow?: boolean;
|
|
461
460
|
}
|
|
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) =>
|
|
461
|
+
declare const Table: ({ children, className, dense, ...props }: TableProps) => React.JSX.Element;
|
|
462
|
+
declare const TableHead: ({ children, className, ...props }: TableHeadProps) => React.JSX.Element;
|
|
463
|
+
declare const TableBody: ({ children, className, ...props }: TableHeadProps) => React.JSX.Element;
|
|
464
|
+
declare const TableRow: ({ children, className, indent, ...props }: TableRowProps) => React.JSX.Element;
|
|
465
|
+
declare const TableHeadCell: ({ children, className, icon, sticky, shadow, left, ...props }: TableHeadCellProps) => React.JSX.Element;
|
|
466
|
+
declare const TableDataCell: ({ children, className, icon, sticky, shadow, left, ...props }: TableCellProps) => React.JSX.Element;
|
|
468
467
|
|
|
469
468
|
interface TabItem {
|
|
470
469
|
label: string;
|
|
@@ -472,20 +471,20 @@ interface TabItem {
|
|
|
472
471
|
}
|
|
473
472
|
interface TabsContainerProps {
|
|
474
473
|
value: string;
|
|
475
|
-
children:
|
|
474
|
+
children: React.ReactNode;
|
|
476
475
|
className?: string;
|
|
477
476
|
}
|
|
478
477
|
interface TabListProps extends Partial<TabItem> {
|
|
479
478
|
onChange: (value: string) => void;
|
|
480
479
|
ariaLabel?: string;
|
|
481
|
-
children:
|
|
480
|
+
children: React.ReactNode;
|
|
482
481
|
box?: boolean;
|
|
483
482
|
className?: string;
|
|
484
483
|
}
|
|
485
484
|
interface TabProps extends TabItem {
|
|
486
485
|
onChange: (value: string) => void;
|
|
487
486
|
box?: boolean;
|
|
488
|
-
content?:
|
|
487
|
+
content?: React.ReactNode;
|
|
489
488
|
selectedTabValue: string;
|
|
490
489
|
icon?: JSX.Element;
|
|
491
490
|
className?: string;
|
|
@@ -493,13 +492,13 @@ interface TabProps extends TabItem {
|
|
|
493
492
|
interface TabPanelProps {
|
|
494
493
|
value: string;
|
|
495
494
|
currentValue: string;
|
|
496
|
-
children:
|
|
495
|
+
children: React.ReactNode;
|
|
497
496
|
className?: string;
|
|
498
497
|
}
|
|
499
|
-
declare const TabsContainer:
|
|
500
|
-
declare const TabList:
|
|
501
|
-
declare const Tab:
|
|
502
|
-
declare const TabPanel:
|
|
498
|
+
declare const TabsContainer: React.FC<TabsContainerProps>;
|
|
499
|
+
declare const TabList: React.FC<TabListProps>;
|
|
500
|
+
declare const Tab: React.FC<TabProps>;
|
|
501
|
+
declare const TabPanel: React.FC<TabPanelProps>;
|
|
503
502
|
|
|
504
503
|
interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
|
|
505
504
|
size?: "sm" | "lg";
|
|
@@ -508,7 +507,7 @@ interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
|
508
507
|
cols?: number;
|
|
509
508
|
children?: ReactNode;
|
|
510
509
|
}
|
|
511
|
-
declare const Textarea:
|
|
510
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
512
511
|
|
|
513
512
|
interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof toggleVariants> {
|
|
514
513
|
size?: "sm" | "md" | "lg";
|
|
@@ -519,7 +518,7 @@ declare const toggleVariants: (props?: ({
|
|
|
519
518
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
520
519
|
intent?: "primary" | "success" | null | undefined;
|
|
521
520
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
522
|
-
declare const Toggle:
|
|
521
|
+
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
|
|
523
522
|
|
|
524
523
|
declare const tooltipVariants: (props?: ({
|
|
525
524
|
position?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
@@ -529,6 +528,6 @@ interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "content">,
|
|
|
529
528
|
position: "top" | "right" | "bottom" | "left";
|
|
530
529
|
content: JSX.Element | string;
|
|
531
530
|
}
|
|
532
|
-
declare const Tooltip:
|
|
531
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
533
532
|
|
|
534
533
|
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, Loading, MenuDropdown, MenuItem, MenuSubItem, Modal, Notice, Pagination, ProgressBar, Radio, Sidebar, Skeleton, Slider, Stepper, Tab, TabList, TabPanel, Table, TableBody, TableDataCell, TableHead, TableHeadCell, TableRow, TabsContainer, Textarea, Toggle, Tooltip };
|