tawuniya 0.6.0

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.
@@ -0,0 +1,1055 @@
1
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
+ import { ClassProp } from 'class-variance-authority/types';
3
+ import { Column } from '@tanstack/react-table';
4
+ import { ColumnDef } from '@tanstack/react-table';
5
+ import { CurveType } from 'recharts/types/shape/Curve';
6
+ import { default as default_2 } from 'react';
7
+ import { Dispatch } from 'react';
8
+ import { ForwardRefExoticComponent } from 'react';
9
+ import { HTMLAttributeAnchorTarget } from 'react';
10
+ import { JSX } from 'react';
11
+ import { LabelPosition } from 'recharts/types/component/Label';
12
+ import { Margin } from 'recharts';
13
+ import * as React_2 from 'react';
14
+ import { ReactNode } from 'react';
15
+ import { RefAttributes } from 'react';
16
+ import { Row } from '@tanstack/react-table';
17
+ import { SetStateAction } from 'react';
18
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
19
+ import { TypedDataKey } from 'recharts/types/util/typedDataKey';
20
+ import { VariantProps } from 'class-variance-authority';
21
+
22
+ export declare const Accordion: <S extends boolean = false>({ items, single, toggleIcon, defaultOpen, classNames, }: AccordionProps<S>) => JSX.Element;
23
+
24
+ declare interface AccordionClassNames {
25
+ wrapperClassName?: string;
26
+ itemClassName?: string;
27
+ titleClassName?: string;
28
+ descriptionClassName?: string;
29
+ iconClassName?: string;
30
+ toggleIconClassName?: string;
31
+ }
32
+
33
+ declare interface AccordionProps<S extends boolean = false> {
34
+ items: ExpandableSectionItemType[];
35
+ toggleIcon?: string | ReactNode;
36
+ single?: S;
37
+ defaultOpen?: S extends true ? number : number[];
38
+ classNames?: AccordionClassNames;
39
+ }
40
+
41
+ export declare const Alert: ({ title, description, variant, icon, action, className, children, hideIcon, hideBorder, }: AlertProps) => JSX.Element;
42
+
43
+ export declare const AlertDialog: ({ title, description, trigger, cancelButtonText, actionButtonText, actionButtonProps, cancelButtonProps, actionButtonIcon, cancelButtonIcon, buttonsAlignment, buttonsFullWidth, centered, className, titleClassName, descriptionClassName, open, isLoading, onOpenChange, onActionClick, }: AlertDialogProps) => JSX.Element;
44
+
45
+ declare interface AlertDialogProps {
46
+ title: string;
47
+ description?: string;
48
+ trigger: React.ReactNode;
49
+ cancelButtonText?: string;
50
+ actionButtonText?: string;
51
+ actionButtonProps?: Partial<ButtonProps>;
52
+ cancelButtonProps?: Partial<ButtonProps>;
53
+ actionButtonIcon?: React.ReactNode;
54
+ cancelButtonIcon?: React.ReactNode;
55
+ buttonsAlignment?: "start" | "center" | "end";
56
+ buttonsFullWidth?: boolean;
57
+ centered?: boolean;
58
+ className?: string;
59
+ titleClassName?: string;
60
+ descriptionClassName?: string;
61
+ open?: boolean;
62
+ isLoading?: boolean;
63
+ onOpenChange?: (open: boolean) => void;
64
+ onActionClick?: () => void;
65
+ }
66
+
67
+ declare interface AlertProps {
68
+ title?: string;
69
+ description?: string;
70
+ variant?: "default" | "primary" | "destructive" | "warning" | "info" | "success";
71
+ icon?: React.ReactNode;
72
+ action?: {
73
+ label: string;
74
+ onClick: () => void;
75
+ };
76
+ hideBorder?: boolean;
77
+ className?: string;
78
+ children?: React.ReactNode;
79
+ hideIcon?: boolean;
80
+ }
81
+
82
+ declare type AlignContent = {
83
+ x?: aligns;
84
+ y?: aligns;
85
+ };
86
+
87
+ declare type aligns = "start" | "center" | "end";
88
+
89
+ export declare const AreaChart: <T extends object>({ data, series, type, dataKey, showCursor, hideXAxis, hideYAxis, hideTooltipLabel, showTickLine, showAxisLine, showCartesianGrid, showLegend, tickMargin, margin, strokeWidth, fillOpacity, stacked, gradient, dot, labelList, className, wrapperClassName, tickFormatter, }: AreaChartProps<T>) => JSX.Element;
90
+
91
+ declare interface AreaChartProps<T extends object> {
92
+ data: T[];
93
+ series: ChartConfig;
94
+ type?: CurveType;
95
+ dataKey: TypedDataKey<T, unknown>;
96
+ showCursor?: boolean;
97
+ hideXAxis?: boolean;
98
+ hideYAxis?: boolean;
99
+ hideTooltipLabel?: boolean;
100
+ showTickLine?: boolean;
101
+ showAxisLine?: boolean;
102
+ showCartesianGrid?: boolean;
103
+ showLegend?: boolean;
104
+ tickMargin?: number;
105
+ margin?: Partial<Margin>;
106
+ strokeWidth?: number;
107
+ fillOpacity?: number;
108
+ stacked?: boolean;
109
+ gradient?: boolean | GradientConfig;
110
+ dot?: DotConfig_2;
111
+ labelList?: LabelListConfig_3;
112
+ className?: string;
113
+ wrapperClassName?: string;
114
+ tickFormatter?: (value: unknown) => string;
115
+ }
116
+
117
+ export declare function Badge({ className, variant, asChild, size, rounded, shadow, ...props }: React_2.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
118
+ asChild?: boolean;
119
+ }): React_2.JSX.Element;
120
+
121
+ declare const badgeVariants: (props?: ({
122
+ variant?: "default" | "primary" | "secondary" | "success" | "info" | "warning" | "destructive" | "plain" | "outline" | "ghost" | null | undefined;
123
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined;
124
+ rounded?: "sm" | "md" | "lg" | "full" | null | undefined;
125
+ shadow?: "sm" | "md" | "lg" | "none" | null | undefined;
126
+ } & ClassProp) | undefined) => string;
127
+
128
+ export declare const BarChart: <T extends object>({ data, series, categoryKey, horizontal, showCartesianGrid, tickMargin, showXAxis, showYAxis, hideTooltipLabel, showCursor, stacked, labelList, withLegend, borderRadius, margin, className, wrapperClassName, }: BarChartProps<T>) => JSX.Element;
129
+
130
+ declare interface BarChartProps<T extends object> {
131
+ data: T[];
132
+ series: ChartConfig;
133
+ categoryKey: TypedDataKey<T | never>;
134
+ horizontal?: boolean;
135
+ showCartesianGrid?: boolean;
136
+ tickMargin?: number;
137
+ showXAxis?: boolean;
138
+ showYAxis?: boolean;
139
+ hideTooltipLabel?: boolean;
140
+ showCursor?: boolean;
141
+ stacked?: boolean;
142
+ labelList?: LabelListItem[];
143
+ withLegend?: boolean;
144
+ borderRadius?: BorderRadius;
145
+ margin?: Partial<Margin>;
146
+ className?: string;
147
+ wrapperClassName?: string;
148
+ }
149
+
150
+ declare interface BaseProps extends VariantProps<typeof checkboxButtonVariants> {
151
+ description?: string;
152
+ size?: "sm" | "md" | "lg";
153
+ rounded?: rounded;
154
+ fullWidth?: boolean;
155
+ info?: default_2.ReactNode;
156
+ disabled?: boolean;
157
+ className?: string;
158
+ error?: string;
159
+ form?: {
160
+ controller: any;
161
+ control: any;
162
+ name: string;
163
+ };
164
+ }
165
+
166
+ declare type BorderRadius = number | [number, number, number, number];
167
+
168
+ export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
169
+
170
+ declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
171
+ asChild?: boolean;
172
+ shadow?: shadow;
173
+ rounded?: rounded;
174
+ fullWidth?: boolean;
175
+ badge?: React_2.ReactNode;
176
+ badgeClassName?: string;
177
+ wrapperClassName?: string;
178
+ loading?: boolean;
179
+ }
180
+
181
+ declare const buttonVariants: (props?: ({
182
+ variant?: "default" | "primary" | "secondary" | "success" | "info" | "warning" | "destructive" | "plain" | "outline" | "outline_muted" | "ghost" | "smooth" | "smooth_destructive" | "solid_smooth" | "solid_smooth_destructive" | null | undefined;
183
+ shadow?: "sm" | "md" | "lg" | "xl" | null | undefined;
184
+ rounded?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
185
+ fullWidth?: boolean | null | undefined;
186
+ size?: "default" | "sm" | "md" | "lg" | "xl" | "icon" | null | undefined;
187
+ } & ClassProp) | undefined) => string;
188
+
189
+ declare type CaptionLayout = "dropdown" | "label" | "dropdown-months" | "dropdown-years";
190
+
191
+ export declare const CardButton: ({ title, icon, active, features, subText, href, target, badgeText, classNames, }: CardButtonProps) => JSX.Element;
192
+
193
+ declare interface CardButtonProps {
194
+ title: string;
195
+ icon: ReactNode;
196
+ active?: boolean;
197
+ features?: FeatureItem[];
198
+ subText?: ReactNode;
199
+ href: string;
200
+ target?: HTMLAttributeAnchorTarget | undefined;
201
+ badgeText?: string;
202
+ classNames?: {
203
+ mainWrapper?: string;
204
+ contentWrapper?: string;
205
+ featuresWrapper?: string;
206
+ iconWrapper?: string;
207
+ title?: string;
208
+ badge?: {
209
+ wrapper?: string;
210
+ badgeItem?: string;
211
+ };
212
+ feature?: {
213
+ wrapper?: string;
214
+ icon?: string;
215
+ text?: string;
216
+ };
217
+ };
218
+ }
219
+
220
+ export declare const Carousel: ({ slides, title, description, alignContent, nextIcon, prevIcon, options, onClick, classNames, children, }: CarouselProps) => JSX.Element;
221
+
222
+ declare interface CarouselProps {
223
+ slides: SlideItem[];
224
+ title?: string;
225
+ description?: string;
226
+ alignContent?: AlignContent;
227
+ nextIcon?: React.ReactNode;
228
+ prevIcon?: React.ReactNode;
229
+ options?: options;
230
+ onClick?: (slideId: string, slide: SlideItem) => void;
231
+ classNames?: ClassNames;
232
+ children?: React.ReactNode;
233
+ }
234
+
235
+ declare type ChartConfig = Record<string, {
236
+ label?: React_2.ReactNode;
237
+ icon?: React_2.ComponentType;
238
+ } & ({
239
+ color?: string;
240
+ theme?: never;
241
+ } | {
242
+ color?: never;
243
+ theme: Record<keyof typeof THEMES, string>;
244
+ })>;
245
+
246
+ export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
247
+
248
+ export declare const CheckboxButton: {
249
+ (props: CheckboxButtonProps): default_2.JSX.Element | null;
250
+ displayName: string;
251
+ };
252
+
253
+ declare interface CheckboxButtonMultipleProps extends BaseProps {
254
+ multiple: true;
255
+ items: CheckboxItem[];
256
+ checked?: string[];
257
+ onChange?: (checked: string[]) => void;
258
+ }
259
+
260
+ declare type CheckboxButtonProps = CheckboxButtonSingleProps | CheckboxButtonMultipleProps;
261
+
262
+ declare interface CheckboxButtonSingleProps extends BaseProps {
263
+ multiple?: false;
264
+ label?: string;
265
+ id?: string;
266
+ checked?: boolean;
267
+ onChange?: (checked: boolean) => void;
268
+ }
269
+
270
+ declare const checkboxButtonVariants: (props?: ({
271
+ rounded?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
272
+ fullWidth?: boolean | null | undefined;
273
+ size?: "sm" | "md" | "lg" | null | undefined;
274
+ } & ClassProp) | undefined) => string;
275
+
276
+ declare interface CheckboxItem {
277
+ id: string;
278
+ label: string;
279
+ description?: string;
280
+ }
281
+
282
+ export declare const CircleProgress: ({ size, percentage, className, }: CircleProgressProps) => JSX.Element;
283
+
284
+ declare interface CircleProgressProps {
285
+ className?: string;
286
+ size?: "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl";
287
+ percentage: number;
288
+ }
289
+
290
+ declare type ClassNames = {
291
+ className?: string;
292
+ containerClassName?: string;
293
+ backdropClassName?: string;
294
+ slideWrapperClassName?: string;
295
+ slideClassName?: string;
296
+ titleClassName?: string;
297
+ descriptionClassName?: string;
298
+ actionWrapperClassName?: string;
299
+ actionButtonClassName?: string;
300
+ };
301
+
302
+ declare interface classNames {
303
+ wrapperClassName?: string;
304
+ itemWrapperClassName?: string;
305
+ titleClassNames?: string;
306
+ tooltipIconClassName?: string;
307
+ tooltipTitleClassName?: string;
308
+ tooltipWrapperClassName?: string;
309
+ optionsWrapperClassName?: string;
310
+ optionsClassName?: string;
311
+ }
312
+
313
+ export declare const DataOverview: ({ items, type, classNames, }: DataOverviewProps) => JSX.Element;
314
+
315
+ declare interface DataOverviewClassNames {
316
+ wrapperClassName?: string;
317
+ titleClassName?: string;
318
+ valueClassName?: string;
319
+ iconClassName?: string;
320
+ itemWrapperClassName?: string;
321
+ }
322
+
323
+ declare interface DataOverviewItem {
324
+ id: string;
325
+ title: string;
326
+ value: string | ReactNode;
327
+ icon?: string | ReactNode;
328
+ }
329
+
330
+ declare const DataOverviewItem: ({ id, title, value, icon, isStacked, itemWrapperClassName, iconClassName, titleClassName, valueClassName, }: DataOverviewItemProps) => JSX.Element;
331
+
332
+ declare interface DataOverviewItemProps extends DataOverviewItem, Omit<DataOverviewClassNames, "wrapperClassName"> {
333
+ isStacked: boolean;
334
+ }
335
+
336
+ declare interface DataOverviewProps {
337
+ items: DataOverviewItem[];
338
+ type?: DataOverviewType;
339
+ classNames?: DataOverviewClassNames;
340
+ }
341
+
342
+ declare type DataOverviewType = "inline" | "stacked";
343
+
344
+ export declare const DataTable: <TData, TValue>({ columns, data, loading, classNameWrapper, classNameHeadRow, classNameHeadCell, classNameBodyRow, classNameBodyCell, classNamePagination, hidePagination, skeleton, empty, paginationTotal, onSelectedRowsChange, resetSelection, onRowClick, }: DataTableProps<TData, TValue>) => JSX.Element;
345
+
346
+ export declare const DataTableColumnHeader: <TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>) => JSX.Element;
347
+
348
+ declare interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {
349
+ column: Column<TData, TValue>;
350
+ title: string;
351
+ }
352
+
353
+ declare interface DataTableProps<TData, TValue> {
354
+ columns: ColumnDef<TData, TValue>[];
355
+ data: TData[];
356
+ loading?: boolean;
357
+ classNameWrapper?: string;
358
+ classNameHeadRow?: string;
359
+ classNameHeadCell?: string;
360
+ classNameBodyRow?: string;
361
+ classNameBodyCell?: string;
362
+ classNamePagination?: string;
363
+ hidePagination?: boolean;
364
+ skeleton?: {
365
+ rowSpan?: number;
366
+ colSpan?: number;
367
+ };
368
+ empty?: {
369
+ icon?: React.ReactNode;
370
+ title?: string;
371
+ description?: string;
372
+ };
373
+ paginationTotal?: number;
374
+ onSelectedRowsChange?: Dispatch<SetStateAction<TData[]>>;
375
+ resetSelection?: object | null;
376
+ onRowClick?: (rowTable: Row<TData>, rowItem: TData) => void;
377
+ }
378
+
379
+ declare type DataWithFill<T> = T & {
380
+ fill?: string;
381
+ };
382
+
383
+ export declare const DatePicker: ForwardRefExoticComponent<DatePickerProps & RefAttributes<HTMLButtonElement>>;
384
+
385
+ declare interface DatePickerProps {
386
+ label: string;
387
+ id: string;
388
+ error?: string;
389
+ className?: string;
390
+ disabled?: boolean;
391
+ value?: string;
392
+ modal?: boolean;
393
+ icon?: React.ReactNode;
394
+ captionLayout?: CaptionLayout;
395
+ views?: ("Day" | "Month" | "Year")[];
396
+ onChange?: (date: string) => void;
397
+ form?: {
398
+ controller: any;
399
+ control: any;
400
+ name: string;
401
+ };
402
+ min?: string;
403
+ max?: string;
404
+ format?: string;
405
+ wrapperClassName?: string;
406
+ }
407
+
408
+ export declare const DateSelector: ForwardRefExoticComponent<DateSelectorProps & RefAttributes<HTMLButtonElement>>;
409
+
410
+ declare interface DateSelectorProps {
411
+ label?: string;
412
+ views?: ("Day" | "Month" | "Year")[];
413
+ outputDate?: "hijri" | "gregorian";
414
+ isHijri?: boolean;
415
+ format?: string;
416
+ value?: string | Date;
417
+ className?: string;
418
+ error?: string;
419
+ min?: string;
420
+ max?: string;
421
+ hideToggle?: boolean;
422
+ onChange?: (value: string) => void;
423
+ onDateChange?: (gregorianDate: string, hijriDate: string) => void;
424
+ form?: {
425
+ controller: any;
426
+ control: any;
427
+ name: string;
428
+ };
429
+ disabled?: boolean;
430
+ }
431
+
432
+ declare interface DeclarationItem {
433
+ id: string;
434
+ title: string;
435
+ tooltipIcon?: string | ReactNode;
436
+ tooltipTitle?: string;
437
+ tooltipContent?: ReactNode;
438
+ options: OptionItem[];
439
+ selectedItem: string;
440
+ allowedOption?: string;
441
+ }
442
+
443
+ export declare const DeclarationOfExposure: ({ items, classNames, alertTitle, alertDescription, value, error, onChange, form, }: DeclarationOfExposureProps) => JSX.Element;
444
+
445
+ declare interface DeclarationOfExposureProps {
446
+ items?: DeclarationItem[];
447
+ classNames?: classNames;
448
+ alertTitle?: string;
449
+ alertDescription?: string;
450
+ value?: boolean;
451
+ error?: string;
452
+ onChange?: (value: boolean) => void;
453
+ form?: {
454
+ controller: any;
455
+ control: any;
456
+ name: string;
457
+ };
458
+ }
459
+
460
+ export declare const Divider: React_2.ForwardRefExoticComponent<DividerProps & React_2.RefAttributes<HTMLDivElement>>;
461
+
462
+ declare interface DividerProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dividerVariants> {
463
+ thickness?: number;
464
+ children?: React_2.ReactNode;
465
+ }
466
+
467
+ declare const dividerVariants: (props?: ({
468
+ orientation?: "horizontal" | "vertical" | null | undefined;
469
+ variant?: "full" | "inset" | "middle" | null | undefined;
470
+ tone?: "strong" | "soft" | null | undefined;
471
+ flexItem?: boolean | null | undefined;
472
+ } & ClassProp) | undefined) => string;
473
+
474
+ declare interface Doc {
475
+ fileName: string;
476
+ fileType: string;
477
+ url: string;
478
+ }
479
+
480
+ declare interface DonutConfig {
481
+ value: number;
482
+ label?: DonutLabelConfig;
483
+ }
484
+
485
+ declare interface DonutLabelConfig {
486
+ show?: boolean;
487
+ valueClassName?: string;
488
+ labelClassName?: string;
489
+ labelY?: number;
490
+ }
491
+
492
+ declare interface DotConfig {
493
+ show?: boolean;
494
+ fill?: string;
495
+ strokeWidth?: number;
496
+ activeRadius?: number;
497
+ }
498
+
499
+ declare interface DotConfig_2 {
500
+ show?: boolean;
501
+ fill?: string;
502
+ strokeWidth?: number;
503
+ activeRadius?: number;
504
+ }
505
+
506
+ export declare const EmptyMessage: ({ icon, title, description }: EmptyProps) => JSX.Element;
507
+
508
+ declare interface EmptyProps {
509
+ icon?: React.ReactNode;
510
+ title?: string;
511
+ description?: string;
512
+ }
513
+
514
+ export declare const ExpandableSection: ({ icon, title, description, additional, content, open, onToggle, toggleIcon, classNames, }: ExpandableSectionProps) => JSX.Element;
515
+
516
+ declare type ExpandableSectionItemType = {
517
+ icon: ReactNode | string;
518
+ title: string;
519
+ description?: string;
520
+ additional?: ReactNode;
521
+ content: ReactNode;
522
+ };
523
+
524
+ declare interface ExpandableSectionProps extends ExpandableSectionItemType, Pick<AccordionProps, "toggleIcon"> {
525
+ open?: boolean;
526
+ onToggle?: () => void;
527
+ classNames?: Omit<AccordionClassNames, "wrapperClassName">;
528
+ }
529
+
530
+ declare type FeatureItem = {
531
+ key: string;
532
+ text: string;
533
+ };
534
+
535
+ declare interface FileData {
536
+ id: string;
537
+ file: string;
538
+ fileName: string;
539
+ fileType: string;
540
+ size: number;
541
+ }
542
+
543
+ export declare const FileUpload: default_2.FC<FileUploadProps>;
544
+
545
+ declare interface FileUploadProps {
546
+ label?: string;
547
+ placeholder?: string;
548
+ id?: string;
549
+ error?: string;
550
+ maxSize?: number;
551
+ maxFiles?: number;
552
+ className?: string;
553
+ wrapperClassName?: string;
554
+ value?: FileData[];
555
+ defaultValue?: FileData[];
556
+ onChange?: (files: FileData[]) => void;
557
+ form?: {
558
+ controller: any;
559
+ control: any;
560
+ name: string;
561
+ };
562
+ render?: default_2.ReactNode;
563
+ accept?: string;
564
+ disabled?: boolean;
565
+ }
566
+
567
+ declare interface GradientConfig {
568
+ startOpacity?: number;
569
+ endOpacity?: number;
570
+ startOffset?: string;
571
+ endOffset?: string;
572
+ }
573
+
574
+ export declare const HeaderPaper: ({ icon, title, description, additional, children, classNames, }: HeaderPaperProps) => JSX.Element;
575
+
576
+ declare interface HeaderPaperProps {
577
+ icon?: ReactNode | string;
578
+ title: string;
579
+ description?: string;
580
+ additional?: ReactNode;
581
+ children: ReactNode;
582
+ classNames?: {
583
+ wrapperClassName?: string;
584
+ titleClassName?: string;
585
+ descriptionClassName?: string;
586
+ iconWrapperClassName?: string;
587
+ iconClassName?: string;
588
+ };
589
+ }
590
+
591
+ export declare function Icon({ name, className }: Icon): JSX.Element | null;
592
+
593
+ export declare interface Icon {
594
+ name: string;
595
+ className?: string;
596
+ }
597
+
598
+ declare type IconName = "tawuniya-small" | "document-upload" | "down-arrow" | "checkbox-circle-fill" | "empty-state" | "absher" | "home" | "tawuniya-logo" | "document-download" | "tawuniya-library-symble-new";
599
+
600
+ export declare const IconText: ({ icon, text, align, gap, iconSize, textSize, classNames, }: IconTextProps) => JSX.Element;
601
+
602
+ declare type IconTextBase = (VariantProps<typeof iconTextVariants> & {
603
+ icon: React.ReactNode;
604
+ text: React.ReactNode;
605
+ classNames?: {
606
+ container?: string;
607
+ icon?: string;
608
+ text?: never;
609
+ };
610
+ }) | (VariantProps<typeof iconTextVariants> & {
611
+ icon: React.ReactNode;
612
+ text: string;
613
+ classNames?: {
614
+ container?: string;
615
+ icon?: string;
616
+ text?: string;
617
+ };
618
+ });
619
+
620
+ declare type IconTextProps = IconTextBase;
621
+
622
+ declare const iconTextVariants: (props?: ({
623
+ align?: "center" | "start" | "end" | null | undefined;
624
+ gap?: "sm" | "md" | "lg" | "xs" | "none" | null | undefined;
625
+ iconSize?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
626
+ textSize?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
627
+ } & ClassProp) | undefined) => string;
628
+
629
+ export declare const ImagePicker: ForwardRefExoticComponent<ImagePickerProps & RefAttributes<HTMLInputElement>>;
630
+
631
+ declare interface ImagePickerProps {
632
+ maxSize?: number;
633
+ maxFiles?: number;
634
+ id?: string;
635
+ error?: string;
636
+ viewOnly?: boolean;
637
+ className?: string;
638
+ value?: FileData[];
639
+ images?: {
640
+ fileName: string;
641
+ fileType: string;
642
+ url: string;
643
+ }[];
644
+ onChange?: (files: FileData[]) => void;
645
+ form?: {
646
+ controller: any;
647
+ control: any;
648
+ name: string;
649
+ };
650
+ }
651
+
652
+ export declare const Input: ({ className, type, color, label, value, id, error, suffix, suffixClass, prefix, prefixClass, register, disabled, name, size, labelSize, placeholder, info, onChange, ...props }: InputProps) => default_2.JSX.Element;
653
+
654
+ declare type InputColor = "default" | "primary" | "secondary" | "success" | "info" | "warning" | "destructive";
655
+
656
+ declare interface InputProps extends Omit<default_2.InputHTMLAttributes<HTMLInputElement>, "prefix" | "size" | "onChange">, VariantProps<typeof inputVariants> {
657
+ label?: string;
658
+ prefix?: string | default_2.ReactNode;
659
+ prefixClass?: string;
660
+ suffix?: string | default_2.ReactNode;
661
+ suffixClass?: string;
662
+ error?: string;
663
+ color?: InputColor;
664
+ size?: Size;
665
+ labelSize?: Size;
666
+ register?: any;
667
+ info?: string;
668
+ onChange?: (value: string) => void;
669
+ }
670
+
671
+ declare const inputVariants: (props?: ({
672
+ color?: "default" | "primary" | "secondary" | "success" | "info" | "warning" | "destructive" | null | undefined;
673
+ size?: "sm" | "md" | "lg" | null | undefined;
674
+ } & ClassProp) | undefined) => string;
675
+
676
+ declare interface Item {
677
+ stageName: string | null;
678
+ description?: string | null;
679
+ sideNode?: React.ReactNode | string;
680
+ stageStatus?: React.ReactNode;
681
+ isComplete?: boolean;
682
+ }
683
+
684
+ declare interface LabelListConfig<T> {
685
+ show?: boolean;
686
+ dataKey?: keyof T & string;
687
+ fontSize?: number;
688
+ fontWeight?: "regular" | "medium" | "semibold" | "bold";
689
+ fontStyle?: "normal" | "italic";
690
+ className?: string;
691
+ }
692
+
693
+ declare interface LabelListConfig_2 {
694
+ show?: boolean;
695
+ position?: LabelPosition;
696
+ offset?: number;
697
+ fontSize?: number;
698
+ fontWeight?: 'regular' | 'medium' | 'semibold' | 'bold';
699
+ fontStyle?: 'normal' | 'italic';
700
+ className?: string;
701
+ }
702
+
703
+ declare interface LabelListConfig_3 {
704
+ show?: boolean;
705
+ position?: LabelPosition;
706
+ offset?: number;
707
+ fontSize?: number;
708
+ fontWeight?: 'regular' | 'medium' | 'semibold' | 'bold';
709
+ fontStyle?: 'normal' | 'italic';
710
+ className?: string;
711
+ }
712
+
713
+ declare type LabelListItem = {
714
+ dataKey?: string;
715
+ position?: LabelPosition;
716
+ offset?: number;
717
+ fontSize?: number;
718
+ className?: string;
719
+ };
720
+
721
+ export declare const LineChart: <T extends object>({ data, series, type, dataKey, showCursor, hideXAxis, hideYAxis, hideTooltipLabel, showTickLine, showAxisLine, showCartesianGrid, showLegend, tickMargin, margin, strokeWidth, dot, labelList, className, wrapperClassName, tickFormatter, }: LineChartProps<T>) => JSX.Element;
722
+
723
+ declare interface LineChartProps<T extends object> {
724
+ data: T[];
725
+ series: ChartConfig;
726
+ type?: CurveType;
727
+ dataKey: TypedDataKey<T, unknown>;
728
+ showCursor?: boolean;
729
+ hideXAxis?: boolean;
730
+ hideYAxis?: boolean;
731
+ hideTooltipLabel?: boolean;
732
+ showTickLine?: boolean;
733
+ showAxisLine?: boolean;
734
+ showCartesianGrid?: boolean;
735
+ showLegend?: boolean;
736
+ tickMargin?: number;
737
+ margin?: Partial<Margin>;
738
+ strokeWidth?: number;
739
+ dot?: DotConfig;
740
+ labelList?: LabelListConfig_2;
741
+ className?: string;
742
+ wrapperClassName?: string;
743
+ tickFormatter?: (value: unknown) => string;
744
+ }
745
+
746
+ declare type LinkComponentType = React.ComponentType<any>;
747
+
748
+ export declare const Loader: ({ loading, icon, text, size, className, }: LoaderProps) => JSX.Element | null;
749
+
750
+ declare interface LoaderProps extends VariantProps<typeof loaderVariants> {
751
+ text?: string;
752
+ icon?: string;
753
+ loading: boolean;
754
+ className?: string;
755
+ }
756
+
757
+ declare const loaderVariants: (props?: ({
758
+ size?: "sm" | "md" | "lg" | null | undefined;
759
+ } & ClassProp) | undefined) => string;
760
+
761
+ export declare const MainProvider: ({ children, showAccessibility, accessibilityPosition, }: MainProviderProps) => JSX.Element;
762
+
763
+ declare interface MainProviderProps extends Children {
764
+ showAccessibility?: boolean;
765
+ accessibilityPosition?: AccessibilityPositionType;
766
+ }
767
+
768
+ declare interface Option_2 {
769
+ label: string;
770
+ value: string;
771
+ }
772
+
773
+ declare interface OptionItem {
774
+ value: string;
775
+ label: string;
776
+ }
777
+
778
+ declare type options = {
779
+ loop?: boolean;
780
+ fade?: boolean;
781
+ autoPlay?: boolean;
782
+ delay?: number;
783
+ startIndex?: number;
784
+ hideDots?: boolean;
785
+ hideArrows?: boolean;
786
+ };
787
+
788
+ export declare const OTP: ({ title, description, channel, initialSeconds, initialMinutes, isAbsher, hideIcon, centered, disabled, className, disableAutoSubmitting, viewType, verifyOTP, resendOTP, openModal, onOpenModal, }: OTPProps) => JSX.Element;
789
+
790
+ declare interface OTPProps {
791
+ title?: string;
792
+ description?: string;
793
+ channel?: string;
794
+ initialMinutes?: number;
795
+ initialSeconds?: number;
796
+ isAbsher?: boolean;
797
+ hideIcon?: boolean;
798
+ centered?: boolean;
799
+ disabled?: boolean;
800
+ className?: string;
801
+ disableAutoSubmitting?: boolean;
802
+ viewType?: "normal" | "modal";
803
+ verifyOTP?: (otp: string) => void;
804
+ resendOTP?: () => void;
805
+ openModal?: boolean;
806
+ onOpenModal?: Dispatch<SetStateAction<boolean>>;
807
+ }
808
+
809
+ export declare const Pagination: ({ paginationTotal, firstButtonLabel, lastButtonLabel, prevButtonLabel, nextButtonLabel, className, }: PaginationProps) => JSX.Element;
810
+
811
+ declare interface PaginationProps {
812
+ paginationTotal: number;
813
+ firstButtonLabel?: string;
814
+ lastButtonLabel?: string;
815
+ prevButtonLabel?: string;
816
+ nextButtonLabel?: string;
817
+ className?: string;
818
+ }
819
+
820
+ export declare const PieChart: <T extends object>({ data, nameKey, dataKey, hideTooltipLabel, showLegend, margin, donut, activeIndex, labelList, gap, cornerRadius, className, legendClassName, wrapperClassName, }: PieChartProps<T>) => JSX.Element;
821
+
822
+ declare interface PieChartProps<T extends object> {
823
+ data: DataWithFill<T>[];
824
+ nameKey: keyof T & string;
825
+ dataKey: keyof T & string;
826
+ hideTooltipLabel?: boolean;
827
+ showLegend?: boolean;
828
+ margin?: Partial<Margin>;
829
+ activeIndex?: number;
830
+ labelList?: LabelListConfig<T>;
831
+ donut?: DonutConfig;
832
+ gap?: number;
833
+ cornerRadius?: string | number;
834
+ className?: string;
835
+ legendClassName?: string;
836
+ wrapperClassName?: string;
837
+ }
838
+
839
+ export declare const ProgressBar: ({ progress, isReadOnly, className, classNameTrack, hideThumb, onProgressChange, }: ProgressBarProps) => JSX.Element;
840
+
841
+ declare interface ProgressBarProps {
842
+ progress: number;
843
+ isReadOnly?: boolean;
844
+ className?: string;
845
+ classNameTrack?: string;
846
+ hideThumb?: boolean;
847
+ onProgressChange?: (value: number) => void;
848
+ }
849
+
850
+ export declare const RadioButton: default_2.ForwardRefExoticComponent<RadioButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
851
+
852
+ declare interface RadioButtonProps {
853
+ options: Option_2[];
854
+ value?: string | null;
855
+ error?: string;
856
+ disabled?: boolean;
857
+ className?: string;
858
+ wrapperClassName?: string;
859
+ selectedClassName?: string;
860
+ radioCircleClassName?: string;
861
+ onChange?: (val: string | null) => void;
862
+ form?: {
863
+ controller: any;
864
+ control: any;
865
+ name: string;
866
+ };
867
+ }
868
+
869
+ declare type rounded = "sm" | "md" | "lg" | "xl" | "full";
870
+
871
+ export declare const Select: default_2.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & default_2.RefAttributes<HTMLButtonElement>>;
872
+
873
+ declare interface SelectProps {
874
+ label?: string;
875
+ options: {
876
+ [key: string]: any;
877
+ }[];
878
+ value?: any;
879
+ size?: "sm" | "md" | "lg";
880
+ searchable?: boolean;
881
+ searchText?: string;
882
+ ref?: default_2.Ref<HTMLButtonElement>;
883
+ emptyText?: string;
884
+ error?: string;
885
+ embedded?: boolean;
886
+ disabled?: boolean;
887
+ modal?: boolean;
888
+ className?: string;
889
+ bodyClass?: string;
890
+ wrapperClassName?: string;
891
+ itemClassName?: string;
892
+ onChange?: (value: any) => void;
893
+ form?: {
894
+ controller: any;
895
+ control: any;
896
+ name: string;
897
+ };
898
+ getOptionsLabel?: string;
899
+ getOptionsValue?: string;
900
+ displayValue?: boolean;
901
+ }
902
+
903
+ declare type shadow = "sm" | "md" | "lg" | "xl";
904
+
905
+ export declare const Sidebar: (props: SidebarProps) => JSX.Element;
906
+
907
+ declare type SidebarItem = {
908
+ id: string;
909
+ href: string;
910
+ label: string;
911
+ icon: IconName | string;
912
+ active?: boolean;
913
+ isLocatedAtEnd?: boolean;
914
+ subItems?: SidebarItem[];
915
+ clickable?: boolean;
916
+ allowedPrivileges?: string[];
917
+ };
918
+
919
+ declare interface SidebarProps {
920
+ items?: SidebarItem[];
921
+ logo?: {
922
+ expanded?: React.ReactNode;
923
+ collapsed?: React.ReactNode;
924
+ };
925
+ itemVariants?: Partial<ButtonProps>;
926
+ activeVariants?: Partial<Pick<ButtonProps, "variant" | "className">>;
927
+ breakpoint?: number;
928
+ defaultCollapsed?: boolean;
929
+ header?: React.ReactNode;
930
+ footer?: React.ReactNode;
931
+ showHeaderWhenCollapsed?: boolean;
932
+ showFooterWhenCollapsed?: boolean;
933
+ linkComponent?: LinkComponentType;
934
+ sidebarCollapsed?: boolean;
935
+ privileges?: string[];
936
+ className?: string;
937
+ onClick?: (id: string) => void;
938
+ }
939
+
940
+ declare type Size = "sm" | "md" | "lg";
941
+
942
+ export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
943
+
944
+ export declare const SlideGallery: ({ documents, open, onOpenChange }: SlideGalleryProps) => JSX.Element;
945
+
946
+ declare interface SlideGalleryProps {
947
+ documents: Doc[];
948
+ open: boolean;
949
+ onOpenChange: (open: boolean) => void;
950
+ }
951
+
952
+ declare type SlideItem = {
953
+ id: string;
954
+ title?: string;
955
+ description?: string;
956
+ image: string;
957
+ };
958
+
959
+ export declare const Stepper: ({ steps, stepValue, markComplete, className, }: StepperProps) => JSX.Element;
960
+
961
+ declare type StepperProps = {
962
+ steps: {
963
+ id: string;
964
+ title: React.ReactNode;
965
+ description: React.ReactNode;
966
+ status: string;
967
+ }[];
968
+ stepValue: string;
969
+ markComplete?: boolean;
970
+ className?: string;
971
+ };
972
+
973
+ export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps & default_2.RefAttributes<HTMLInputElement>>;
974
+
975
+ declare interface SwitchProps extends VariantProps<typeof toggleVariants>, Omit<default_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "value"> {
976
+ label?: string;
977
+ error?: string;
978
+ size?: "sm" | "md" | "lg";
979
+ name?: string;
980
+ register?: any;
981
+ value?: boolean;
982
+ className?: string;
983
+ wrapperClassName?: string;
984
+ onChange?: (status: boolean) => void;
985
+ }
986
+
987
+ export declare const Tabs: ({ tabs, defaultTab, value, variant, unmount, wrapperClassName, className, children, onValueChange, }: TabsProps) => JSX.Element;
988
+
989
+ export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): React_2.JSX.Element;
990
+
991
+ declare interface TabsProps {
992
+ tabs: {
993
+ label: string;
994
+ key: string;
995
+ icon?: React.ReactNode;
996
+ }[];
997
+ defaultTab: string;
998
+ value?: string;
999
+ variant?: "default" | "filled" | "filled_primary" | "underlined";
1000
+ unmount?: boolean;
1001
+ wrapperClassName?: string;
1002
+ className?: string;
1003
+ children: React.ReactNode;
1004
+ onValueChange?: (value: string) => void;
1005
+ }
1006
+
1007
+ export declare const Textarea: ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & RefAttributes<HTMLTextAreaElement>>;
1008
+
1009
+ declare interface TextAreaProps extends VariantProps<typeof textareaVariants> {
1010
+ label?: string;
1011
+ placeholder?: string;
1012
+ name: string;
1013
+ maxLength?: number;
1014
+ register?: any;
1015
+ error?: string;
1016
+ disabled?: boolean;
1017
+ value?: string;
1018
+ ref?: React.RefObject<HTMLTextAreaElement>;
1019
+ className?: string;
1020
+ onChange?: (value: string) => void;
1021
+ }
1022
+
1023
+ declare const textareaVariants: (props?: ({
1024
+ size?: "sm" | "md" | "lg" | null | undefined;
1025
+ } & ClassProp) | undefined) => string;
1026
+
1027
+ declare const THEMES: {
1028
+ readonly light: "";
1029
+ readonly dark: ".dark";
1030
+ };
1031
+
1032
+ declare const toggleVariants: (props?: ({
1033
+ size?: "sm" | "md" | "lg" | null | undefined;
1034
+ } & ClassProp) | undefined) => string;
1035
+
1036
+ export declare const Typography: ({ as: Comp, className, size, weight, color, htmlFor, ...props }: TypographyProps) => JSX.Element;
1037
+
1038
+ declare interface TypographyProps extends Omit<React.HTMLAttributes<HTMLElement>, "color">, VariantProps<typeof typographyVariants> {
1039
+ as?: "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | "label" | "div";
1040
+ htmlFor?: string;
1041
+ }
1042
+
1043
+ declare const typographyVariants: (props?: ({
1044
+ size?: "sm" | "md" | "lg" | "xl" | "xs" | "xxl" | "xxxl" | null | undefined;
1045
+ weight?: "thin" | "light" | "normal" | "medium" | "semibold" | "bold" | null | undefined;
1046
+ color?: "default" | "primary" | "success" | "warning" | "destructive" | "muted_foreground" | "error" | "white" | null | undefined;
1047
+ } & ClassProp) | undefined) => string;
1048
+
1049
+ export declare const VerticalStepper: ({ items }: VerticalStepperProps) => JSX.Element;
1050
+
1051
+ declare interface VerticalStepperProps {
1052
+ items: Item[];
1053
+ }
1054
+
1055
+ export { }