atomos_next_genesis 0.0.4 → 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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React, { 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';
2
2
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
@@ -7,8 +7,9 @@ type AccordionProps = {
7
7
  collapsible?: boolean;
8
8
  className?: string;
9
9
  children: React.ReactNode;
10
+ expanded?: boolean;
10
11
  };
11
- declare function Accordion({ type, collapsible, className, children, }: AccordionProps): React.JSX.Element;
12
+ declare function Accordion({ type, collapsible, className, children, expanded, }: AccordionProps): React.JSX.Element;
12
13
  type AccordionItemProps = {
13
14
  value: string;
14
15
  disabled?: boolean;
@@ -21,13 +22,15 @@ declare function AccordionItem({ value, disabled, openItems, handleToggle, child
21
22
  type AccordionTriggerProps = {
22
23
  isOpen?: boolean;
23
24
  children: React.ReactNode;
25
+ defaultOpen?: boolean;
26
+ className?: string;
27
+ triggerIcon?: React.ReactNode;
24
28
  };
25
- declare function AccordionTrigger({ isOpen, children }: AccordionTriggerProps): React.JSX.Element;
29
+ declare function AccordionTrigger({ isOpen, children, className, triggerIcon, }: AccordionTriggerProps): React.JSX.Element;
26
30
  type AccordionContentProps = {
27
- isOpen?: boolean;
28
31
  children: React.ReactNode;
29
32
  };
30
- declare function AccordionContent({ isOpen, children }: AccordionContentProps): React.JSX.Element;
33
+ declare function AccordionContent({ children }: AccordionContentProps): React.JSX.Element;
31
34
 
32
35
  interface BaseProps$1 {
33
36
  type: "image" | "icon" | "text";
@@ -82,35 +85,87 @@ interface ButtonProps$1 extends ButtonHTMLAttributes<HTMLButtonElement>, Variant
82
85
  endIcon?: JSX.Element;
83
86
  disabled?: boolean;
84
87
  fullWidth?: boolean;
88
+ type?: "submit" | "reset" | "button";
85
89
  }
86
90
  declare const buttonVariants: (props?: ({
87
91
  variant?: "filled" | "outlined" | null | undefined;
88
- 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;
89
93
  size?: "sm" | "md" | "lg" | null | undefined;
90
94
  } & class_variance_authority_types.ClassProp) | undefined) => string;
91
- declare const Button: ({ children, className, variant, intent, fullWidth, startIcon, disabled, endIcon, size, ...props }: ButtonProps$1) => React.JSX.Element;
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>;
92
145
 
93
146
  interface CheckboxProps extends Omit<HTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof checkboxVariant> {
94
- size?: "sm" | "lg";
147
+ size?: "sm" | "lg" | "xl";
95
148
  disabled?: boolean;
96
149
  checked?: boolean;
97
150
  children?: never;
98
151
  }
99
152
  declare const checkboxVariant: (props?: ({
100
- size?: "sm" | "lg" | null | undefined;
153
+ size?: "sm" | "lg" | "xl" | null | undefined;
101
154
  } & class_variance_authority_types.ClassProp) | undefined) => string;
102
155
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
103
156
 
104
- declare const chipVariants: (props?: ({
105
- intent?: "indigo" | "orange" | "pink" | "purple" | "violet" | "primary" | "success" | "error" | "warning" | "default" | "bluegray" | "bluelight" | "rose" | null | undefined;
106
- size?: "sm" | "md" | "lg" | null | undefined;
107
- } & class_variance_authority_types.ClassProp) | undefined) => string;
108
- interface ChipProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof chipVariants> {
157
+ interface ChipProps extends HTMLAttributes<HTMLSpanElement>, VariantProps<typeof chipVariants> {
109
158
  children: ReactNode;
110
159
  dot?: boolean;
111
160
  dotColor?: string;
161
+ startIcon?: JSX.Element;
162
+ endIcon?: JSX.Element;
112
163
  }
113
- declare const Chip: ({ children, className, size, intent, dot, dotColor, }: ChipProps) => React.JSX.Element;
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;
114
169
 
115
170
  interface CircularProgressBarProps {
116
171
  strokeWidth?: number;
@@ -129,14 +184,30 @@ interface DividerProps {
129
184
  }
130
185
  declare const Divider: ({ width, height, position, className, }: DividerProps) => React.JSX.Element;
131
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>;
199
+
132
200
  type Option$1 = {
133
- label: string;
134
- value: string;
201
+ label: string | number;
202
+ value: string | number;
135
203
  info?: string;
136
204
  addInfo?: string;
137
205
  tooltipContent?: string;
206
+ disabledOption?: boolean;
207
+ labelTextColor?: string;
138
208
  };
139
209
  interface DropdownProps$1 {
210
+ id?: string;
140
211
  icon?: JSX.Element;
141
212
  options: Option$1[];
142
213
  selected?: Option$1[];
@@ -153,25 +224,52 @@ interface DropdownProps$1 {
153
224
  addInfo?: string | number;
154
225
  tooltipContent?: string;
155
226
  width?: string;
156
- dropDownTooltip?: boolean | undefined;
157
227
  dropdownFooter?: boolean | undefined;
158
228
  disabled?: boolean;
229
+ labelTextColor?: string;
230
+ footerAction?: React.ReactNode;
159
231
  }
160
232
  declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps$1 & React.RefAttributes<HTMLDivElement>>;
161
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;
255
+
162
256
  type Option = {
163
- label: string;
164
- value: string;
257
+ label: string | number;
258
+ value: string | number;
165
259
  info?: string;
166
260
  addInfo?: string;
167
261
  tooltipContent?: string;
262
+ disabledOption?: boolean;
263
+ labelTextColor?: string;
168
264
  };
169
265
  interface DropdownProps {
266
+ id?: string;
170
267
  options: Option[];
171
268
  selected?: Option[];
172
269
  setSelected?: React.Dispatch<React.SetStateAction<Option[]>>;
173
270
  onApply?: () => void;
174
271
  onReset?: () => void;
272
+ dropdownText?: string;
175
273
  search?: boolean;
176
274
  multiple?: boolean;
177
275
  renderItem?: (option: Option) => React.ReactNode;
@@ -184,23 +282,38 @@ interface DropdownProps {
184
282
  addInfo?: string | number;
185
283
  tooltipContent?: string;
186
284
  width?: string;
187
- dropDownTooltip?: boolean | undefined;
188
285
  dropdownFooter?: boolean;
189
286
  disabled?: boolean;
287
+ labelTextColor?: string;
288
+ footerAction?: React.ReactNode;
190
289
  }
191
290
  declare const DropdownWithIcon: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<HTMLDivElement>>;
192
291
 
292
+ interface FileSelectorProps extends InputHTMLAttributes<HTMLInputElement> {
293
+ component: JSX.Element;
294
+ }
295
+ declare const FileSelector: React.ForwardRefExoticComponent<FileSelectorProps & React.RefAttributes<HTMLInputElement>>;
296
+
193
297
  interface FileUploadProps extends InputHTMLAttributes<HTMLInputElement> {
194
298
  id: string;
195
299
  selectedFile?: File[];
196
300
  setSelectedFile?: (files: File[]) => void;
197
301
  children?: ReactNode;
198
- onDelete?: () => void;
302
+ onDelete?: (index: number) => void;
199
303
  title?: string;
200
304
  disabled?: boolean;
305
+ filePreviewClassName?: string;
201
306
  }
202
307
  declare const FileUpload: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<HTMLInputElement>>;
203
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;
316
+
204
317
  interface GlobalNavigationProps {
205
318
  isOpen: boolean;
206
319
  setIsOpen: (isOpen: boolean) => void;
@@ -223,10 +336,22 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">
223
336
  startIcon?: JSX.Element;
224
337
  endIcon?: JSX.Element;
225
338
  disabled?: boolean;
339
+ error?: boolean;
226
340
  type: "text" | "url" | "email" | "password" | "number" | "tel" | "search" | "time";
227
341
  }
228
342
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
229
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;
354
+
230
355
  interface BaseProps {
231
356
  className?: string;
232
357
  children?: React.ReactNode;
@@ -249,16 +374,14 @@ type ButtonProps = BaseProps & {
249
374
  type ListItemProps = LinkProps | ButtonProps;
250
375
  declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
251
376
 
252
- interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement>, VariantProps<typeof labelVariants> {
253
- htmlFor?: string;
254
- children: ReactNode;
255
- required?: boolean;
256
- disabled?: boolean;
377
+ interface ListPaginationProps {
378
+ count: number;
379
+ page: number;
380
+ rowsPerPage: number;
381
+ onPageChange: (newPage: number) => void;
382
+ className?: string;
257
383
  }
258
- declare const labelVariants: (props?: ({
259
- size?: "sm" | "md" | "lg" | null | undefined;
260
- } & class_variance_authority_types.ClassProp) | undefined) => string;
261
- declare const Label: ({ children, htmlFor, size, required, disabled, className, ...props }: LabelProps) => React.JSX.Element;
384
+ declare const ListPagination: React.FC<ListPaginationProps>;
262
385
 
263
386
  interface LoadingProps {
264
387
  width?: string;
@@ -275,51 +398,35 @@ interface ModalProps {
275
398
  setShowModal: (value: boolean) => void;
276
399
  closeOnOutsideClick?: boolean;
277
400
  className?: string;
278
- }
279
- declare function Modal({ children, showModal, setShowModal, closeModal, closeOnOutsideClick, className, }: ModalProps): React.JSX.Element;
280
-
281
- interface MenuDropdownProps {
282
- trigger: JSX.Element;
283
- children: React.ReactNode;
284
401
  width?: string;
285
- className?: string;
286
402
  }
287
- declare function MenuDropdown({ trigger, children, width, className, }: MenuDropdownProps): React.JSX.Element;
288
- interface MenuSubItemProps {
289
- label: string;
290
- onClick?: () => void;
291
- disabled?: boolean;
292
- children?: React.ReactNode;
293
- className?: string;
294
- }
295
- declare const MenuSubItem: React.FC<MenuSubItemProps>;
296
- interface MenuItemProps {
297
- content: React.ReactNode;
298
- children: React.ReactNode;
299
- label?: string;
300
- className?: string;
301
- sectionClassName?: string;
302
- menuClassName?: string;
303
- }
304
- declare const MenuItem: React.FC<MenuItemProps>;
403
+ declare function Modal({ children, showModal, setShowModal, closeModal, closeOnOutsideClick, className, width, }: ModalProps): React.JSX.Element;
305
404
 
306
405
  interface NoticeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof noticeVariants> {
307
406
  children?: ReactNode;
308
407
  noticeTitle?: string;
309
408
  variant: "success" | "warning" | "info" | "error" | "default";
310
- position?: "top" | "bottom";
409
+ position?: "top" | "bottom" | "center";
311
410
  showIcon?: boolean;
312
411
  open: boolean;
313
412
  setOpen: (value: boolean) => void;
314
413
  }
315
414
  declare const noticeVariants: (props?: ({
316
415
  variant?: "success" | "error" | "warning" | "default" | "info" | null | undefined;
317
- position?: "top" | "bottom" | null | undefined;
416
+ position?: "center" | "top" | "bottom" | null | undefined;
318
417
  } & class_variance_authority_types.ClassProp) | undefined) => string;
319
418
  declare const Notice: ({ children, variant, position, noticeTitle, open, setOpen, showIcon, }: NoticeProps) => React.JSX.Element;
320
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>;
426
+
321
427
  type TablePaginationProps = {
322
428
  count: number;
429
+ countVariable?: string;
323
430
  page: number;
324
431
  rowsPerPage: number;
325
432
  rowsPerPageOptions: (number | {
@@ -329,6 +436,8 @@ type TablePaginationProps = {
329
436
  onPageChange: (newPage: number) => void;
330
437
  onRowsPerPageChange: (newRowsPerPage: number) => void;
331
438
  className?: string;
439
+ variant?: "primary" | "secondary";
440
+ itemsPerPage?: boolean;
332
441
  };
333
442
  declare const Pagination: React.FC<TablePaginationProps>;
334
443
 
@@ -351,37 +460,66 @@ declare const radioVariants: (props?: ({
351
460
  } & class_variance_authority_types.ClassProp) | undefined) => string;
352
461
  declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
353
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;
493
+
494
+ interface NavItem {
495
+ label: string;
496
+ href?: string;
497
+ icon?: React.ReactElement;
498
+ subItems?: NavItem[];
499
+ }
354
500
  interface SidebarProps {
355
501
  children: React.ReactNode;
356
502
  collapsed: boolean;
357
503
  setCollapsed: (collapsed: boolean) => void;
358
504
  scroll?: boolean;
505
+ dense?: boolean;
359
506
  navItems?: {
360
507
  label: string;
361
- items: {
362
- label: string;
363
- href: string;
364
- icon?: React.ReactElement;
365
- }[];
508
+ items: NavItem[];
366
509
  }[];
367
510
  }
368
511
  interface SidebarHeaderProps {
369
- collapsed: boolean;
370
- setCollapsed: (collapsed: boolean) => void;
371
512
  children: ReactNode;
513
+ dense?: boolean;
372
514
  }
373
515
  interface SidebarMenuProps {
374
516
  collapsed: boolean;
375
- setCollapsed: (collapsed: boolean) => void;
376
- scroll?: boolean;
377
517
  navItems?: {
378
518
  label: string;
379
- items: {
380
- label: string;
381
- href: string;
382
- icon?: React.ReactElement;
383
- }[];
519
+ items: NavItem[];
384
520
  }[];
521
+ scroll?: boolean;
522
+ dense?: boolean;
385
523
  }
386
524
  interface FooterProps {
387
525
  children: React.ReactNode;
@@ -389,12 +527,9 @@ interface FooterProps {
389
527
  setCollapsed: (collapsed: boolean) => void;
390
528
  navItems?: {
391
529
  label: string;
392
- items: {
393
- label: string;
394
- href: string;
395
- icon?: React.ReactElement;
396
- }[];
530
+ items: NavItem[];
397
531
  }[];
532
+ dense?: boolean;
398
533
  }
399
534
  declare const Sidebar: React.FC<SidebarProps> & {
400
535
  Header: React.FC<SidebarHeaderProps>;
@@ -402,6 +537,14 @@ declare const Sidebar: React.FC<SidebarProps> & {
402
537
  Footer: React.FC<FooterProps>;
403
538
  };
404
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
+
405
548
  interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
406
549
  value: number;
407
550
  min?: number;
@@ -410,12 +553,20 @@ interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"
410
553
  }
411
554
  declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLInputElement>>;
412
555
 
413
- interface SkeletonProps {
414
- width?: string | number;
415
- height?: string | number;
416
- circle?: boolean;
556
+ interface SpinnerProps {
557
+ size?: "xs" | "sm" | "md" | "lg";
558
+ color?: "primary" | "black" | "gray" | string;
417
559
  }
418
- declare const Skeleton: React.FC<SkeletonProps>;
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>>;
419
570
 
420
571
  interface StepConfig {
421
572
  name: string;
@@ -448,22 +599,26 @@ interface TableHeadCellProps extends ThHTMLAttributes<HTMLTableCellElement> {
448
599
  icon?: JSX.Element;
449
600
  sticky?: boolean;
450
601
  left?: string;
602
+ right?: string;
451
603
  stickyIcon?: JSX.Element;
452
604
  shadow?: boolean;
605
+ shadowRight?: boolean;
453
606
  }
454
607
  interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
455
608
  children?: ReactNode;
456
609
  icon?: JSX.Element;
457
610
  sticky?: boolean;
458
611
  left?: string;
612
+ right?: string;
459
613
  shadow?: boolean;
614
+ shadowRight?: boolean;
460
615
  }
461
616
  declare const Table: ({ children, className, dense, ...props }: TableProps) => React.JSX.Element;
462
617
  declare const TableHead: ({ children, className, ...props }: TableHeadProps) => React.JSX.Element;
463
618
  declare const TableBody: ({ children, className, ...props }: TableHeadProps) => React.JSX.Element;
464
619
  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;
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;
467
622
 
468
623
  interface TabItem {
469
624
  label: string;
@@ -473,21 +628,29 @@ interface TabsContainerProps {
473
628
  value: string;
474
629
  children: React.ReactNode;
475
630
  className?: string;
631
+ position?: "horizontal" | "vertical";
476
632
  }
477
633
  interface TabListProps extends Partial<TabItem> {
478
634
  onChange: (value: string) => void;
479
635
  ariaLabel?: string;
480
636
  children: React.ReactNode;
481
637
  box?: boolean;
638
+ pill?: boolean;
482
639
  className?: string;
640
+ position?: "horizontal" | "vertical";
483
641
  }
484
642
  interface TabProps extends TabItem {
485
643
  onChange: (value: string) => void;
486
644
  box?: boolean;
645
+ pill?: boolean;
487
646
  content?: React.ReactNode;
488
647
  selectedTabValue: string;
489
648
  icon?: JSX.Element;
490
649
  className?: string;
650
+ tabIndex?: number;
651
+ onKeyDown?: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
652
+ position?: "horizontal" | "vertical";
653
+ ref?: React.Ref<HTMLButtonElement>;
491
654
  }
492
655
  interface TabPanelProps {
493
656
  value: string;
@@ -497,7 +660,7 @@ interface TabPanelProps {
497
660
  }
498
661
  declare const TabsContainer: React.FC<TabsContainerProps>;
499
662
  declare const TabList: React.FC<TabListProps>;
500
- declare const Tab: React.FC<TabProps>;
663
+ declare const Tab: React.ForwardRefExoticComponent<Omit<TabProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
501
664
  declare const TabPanel: React.FC<TabPanelProps>;
502
665
 
503
666
  interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
@@ -505,10 +668,21 @@ interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>
505
668
  disabled?: boolean;
506
669
  rows?: number;
507
670
  cols?: number;
671
+ error?: boolean;
508
672
  children?: ReactNode;
509
673
  }
510
674
  declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
511
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>;
685
+
512
686
  interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof toggleVariants> {
513
687
  size?: "sm" | "md" | "lg";
514
688
  disabled?: boolean;
@@ -521,7 +695,7 @@ declare const toggleVariants: (props?: ({
521
695
  declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
522
696
 
523
697
  declare const tooltipVariants: (props?: ({
524
- position?: "top" | "right" | "bottom" | "left" | null | undefined;
698
+ position?: "left" | "right" | "top" | "bottom" | null | undefined;
525
699
  } & class_variance_authority_types.ClassProp) | undefined) => string;
526
700
  interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "content">, VariantProps<typeof tooltipVariants> {
527
701
  children: ReactNode;
@@ -530,4 +704,68 @@ interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, "content">,
530
704
  }
531
705
  declare const Tooltip: React.FC<TooltipProps>;
532
706
 
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 };
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;
770
+
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 };