spotlibs-components 0.1.5 → 0.1.7

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,825 @@
1
+ import * as React from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { SxProps } from '@mui/material/styles';
4
+
5
+ interface BaseAlertProps {
6
+ variant?: string;
7
+ type?: string;
8
+ title?: React.ReactNode;
9
+ children?: React.ReactNode;
10
+ icon?: React.ReactNode;
11
+ color?: string;
12
+ sx?: any;
13
+ onClose?: () => void;
14
+ childrenStyle?: React.CSSProperties;
15
+ [key: string]: any;
16
+ }
17
+
18
+ declare function BaseAlert(
19
+ props: BaseAlertProps,
20
+ ): React.ReactElement | null;
21
+
22
+ interface PrimitiveColorType {
23
+ color_overlay: string;
24
+
25
+ color_palette_neutral_100: string;
26
+ color_palette_neutral_90: string;
27
+ color_palette_neutral_80: string;
28
+ color_palette_neutral_70: string;
29
+ color_palette_neutral_60: string;
30
+ color_palette_neutral_50: string;
31
+ color_palette_neutral_40: string;
32
+ color_palette_neutral_30: string;
33
+ color_palette_neutral_20: string;
34
+ color_palette_neutral_10: string;
35
+
36
+ color_palette_dark_blue: string;
37
+ color_palette_blue: string;
38
+ color_palette_light_blue: string;
39
+
40
+ color_palette_dark_orange: string;
41
+ color_palette_orange: string;
42
+ color_palette_light_orange: string;
43
+
44
+ color_palette_dark_green: string;
45
+ color_palette_green: string;
46
+ color_palette_light_green: string;
47
+
48
+ color_palette_dark_red: string;
49
+ color_palette_red: string;
50
+ color_palette_light_red: string;
51
+
52
+ color_palette_dark_yellow: string;
53
+ color_palette_yellow: string;
54
+ color_palette_light_yellow: string;
55
+
56
+ [key: string]: string;
57
+ }
58
+
59
+ declare const PrimitiveColor: PrimitiveColorType;
60
+
61
+ declare namespace DerivedColor {
62
+ let color_bg_default: any;
63
+ let color_bg_white: any;
64
+ let color_bg_black: any;
65
+ let color_bg_dark_grey: any;
66
+ let color_bg_dark_blue: any;
67
+ let color_bg_blue: any;
68
+ let color_bg_light_blue: any;
69
+ let color_bg_orange: any;
70
+ let color_bg_light_orange: any;
71
+ let color_bg_green: any;
72
+ let color_bg_light_green: any;
73
+ let color_bg_red: any;
74
+ let color_bg_light_red: any;
75
+ let color_bg_yellow: any;
76
+ let color_bg_light_yellow: any;
77
+ let color_border_grey: any;
78
+ let color_border_dark_grey: any;
79
+ let color_border_white: any;
80
+ let color_border_blue: any;
81
+ let color_border_orange: any;
82
+ let color_border_green: any;
83
+ let color_border_red: any;
84
+ let color_border_yellow: any;
85
+ let color_text_black: any;
86
+ let color_text_dark_grey: any;
87
+ let color_text_grey: any;
88
+ let color_text_light_grey: any;
89
+ let color_text_white: any;
90
+ let color_text_blue: any;
91
+ let color_text_orange: any;
92
+ let color_text_green: any;
93
+ let color_text_red: any;
94
+ let color_text_yellow: any;
95
+ let color_icon_grey: any;
96
+ let color_icon_light_grey: any;
97
+ let color_icon_white: any;
98
+ let color_icon_blue: any;
99
+ let color_icon_orange: any;
100
+ let color_icon_green: any;
101
+ let color_icon_red: any;
102
+ let color_icon_yellow: any;
103
+ }
104
+
105
+ declare const VariantStyles: Record<
106
+ string,
107
+ {
108
+ fontSize: string;
109
+ fontWeight: number;
110
+ }
111
+ >;
112
+
113
+ interface TypographyProps {
114
+ variant?: string;
115
+ children?: React.ReactNode;
116
+ sx?: React.CSSProperties & Record<string, unknown>;
117
+ [key: string]: any;
118
+ }
119
+
120
+ declare function Typography(
121
+ props: TypographyProps,
122
+ ): React.ReactElement | null;
123
+
124
+ declare const SpacingToken: {
125
+ spacing0: string;
126
+ spacing1: string;
127
+ spacing2: string;
128
+ spacing3: string;
129
+ spacing4: string;
130
+ spacing5: string;
131
+ spacing6: string;
132
+ spacing7: string;
133
+ spacing8: string;
134
+ spacing9: string;
135
+ spacing10: string;
136
+ };
137
+
138
+ declare const CONTENT_SPACING_TOKENS: {
139
+ spacing_1: {
140
+ mobile: string;
141
+ tablet: string;
142
+ web: string;
143
+ };
144
+ spacing_2: {
145
+ mobile: string;
146
+ tablet: string;
147
+ web: string;
148
+ };
149
+ spacing_3: {
150
+ mobile: string;
151
+ tablet: string;
152
+ web: string;
153
+ };
154
+ };
155
+
156
+ interface ResponsiveSpacingValue {
157
+ mobile?: string;
158
+ tablet?: string;
159
+ web?: string;
160
+ [key: string]: string | undefined;
161
+ }
162
+
163
+ type SpacingSizeValue = keyof typeof SpacingToken | string | number;
164
+
165
+ type ContentSpacingSizeValue =
166
+ | keyof typeof CONTENT_SPACING_TOKENS
167
+ | ResponsiveSpacingValue;
168
+
169
+ interface SpacingProps {
170
+ size?: SpacingSizeValue;
171
+ axis?: "vertical" | "horizontal";
172
+ as?: React.ElementType;
173
+ className?: string;
174
+ style?: React.CSSProperties;
175
+ children?: React.ReactNode;
176
+ [key: string]: unknown;
177
+ }
178
+
179
+ interface ContentSpacingProps {
180
+ size?: ContentSpacingSizeValue;
181
+ breakpoint?: "mobile" | "tablet" | "web";
182
+ as?: React.ElementType;
183
+ className?: string;
184
+ style?: React.CSSProperties;
185
+ children?: React.ReactNode;
186
+ [key: string]: unknown;
187
+ }
188
+
189
+ declare const Spacing: React.FC<SpacingProps>;
190
+
191
+ declare const ContentSpacing: React.FC<ContentSpacingProps>;
192
+
193
+ declare namespace Shadow {
194
+ namespace elevation_0 {
195
+ let shadow: string;
196
+ let surface: string;
197
+ }
198
+ namespace elevation_1 {
199
+ let shadow_1: string;
200
+ export { shadow_1 as shadow };
201
+ let surface_1: string;
202
+ export { surface_1 as surface };
203
+ }
204
+ namespace elevation_2 {
205
+ let shadow_2: string;
206
+ export { shadow_2 as shadow };
207
+ let surface_2: string;
208
+ export { surface_2 as surface };
209
+ }
210
+ namespace elevation_3 {
211
+ let shadow_3: string;
212
+ export { shadow_3 as shadow };
213
+ let surface_3: string;
214
+ export { surface_3 as surface };
215
+ }
216
+ namespace elevation_4 {
217
+ let shadow_4: string;
218
+ export { shadow_4 as shadow };
219
+ let surface_4: string;
220
+ export { surface_4 as surface };
221
+ }
222
+ }
223
+ declare function ShadowToken({ level, as: Component, style, children, ...rest }: {
224
+ [x: string]: any;
225
+ level?: string;
226
+ as?: string;
227
+ style: any;
228
+ children: any;
229
+ }): any;
230
+
231
+ declare namespace Radius {
232
+ let radius_0: string;
233
+ let radius_1: string;
234
+ let radius_2: string;
235
+ let radius_3: string;
236
+ let radius_4: string;
237
+ let radius_x: string;
238
+ }
239
+ declare function RadiusToken({ radius, as: Component, style, children, ...rest }: {
240
+ [x: string]: any;
241
+ radius?: string;
242
+ as?: string;
243
+ style: any;
244
+ children: any;
245
+ }): any;
246
+
247
+ declare function BaseButton({ onClick, children, variant, color, size, disabled, icon, sx, ...rest }: {
248
+ [x: string]: any;
249
+ onClick?: () => void;
250
+ children?: any;
251
+ variant?: string;
252
+ color?: string;
253
+ size?: string;
254
+ disabled?: boolean;
255
+ icon?: any;
256
+ sx?: {};
257
+ }): any;
258
+
259
+ declare function BaseCard({ type, children, sx, icon, label, title, subtitle, dataList, updateDate, boldCountIcon, boldCount, boldTitle, boldUpdate, iconHeader, backgroundColor, colorTitlte, colorNominal, displayIcon, formatNumber, colorCount, headerBackgroundColor, isCollapsible, ...restProps }: {
260
+ [x: string]: any;
261
+ type?: string;
262
+ children?: any;
263
+ sx?: {};
264
+ icon?: any;
265
+ label?: string;
266
+ title?: string;
267
+ subtitle?: string;
268
+ dataList?: any[];
269
+ updateDate?: string;
270
+ boldCountIcon?: boolean;
271
+ boldCount?: boolean;
272
+ boldTitle?: boolean;
273
+ boldUpdate?: boolean;
274
+ iconHeader?: any;
275
+ backgroundColor?: string;
276
+ colorTitlte?: any;
277
+ colorNominal?: any;
278
+ displayIcon?: boolean;
279
+ formatNumber?: string;
280
+ colorCount?: any;
281
+ headerBackgroundColor?: string;
282
+ isCollapsible?: boolean;
283
+ }): any;
284
+
285
+ declare function BaseSwitch({ status, label, labelPlacement, isDisabled, onChange, }: {
286
+ status?: boolean;
287
+ label: any;
288
+ labelPlacement?: string;
289
+ isDisabled?: boolean;
290
+ onChange: any;
291
+ }): any;
292
+
293
+ interface BaseCheckboxOption {
294
+ label: React.ReactNode;
295
+ value: string;
296
+ disabled?: boolean;
297
+ [key: string]: any;
298
+ }
299
+
300
+ interface BaseCheckboxSharedProps {
301
+ options: BaseCheckboxOption[];
302
+ label?: React.ReactNode;
303
+ disabled?: boolean;
304
+ labelPlacement?: "top" | "bottom" | "start" | "end";
305
+ isHorizontal?: boolean;
306
+ sx?: any;
307
+ [key: string]: any;
308
+ }
309
+
310
+ interface BaseCheckboxSingleProps extends Omit<BaseCheckboxSharedProps, "options"> {
311
+ options?: undefined;
312
+ checked?: boolean;
313
+ onChange?: (checked: boolean, event?: React.ChangeEvent<HTMLInputElement>) => void;
314
+ }
315
+
316
+ interface BaseCheckboxGroupProps extends BaseCheckboxSharedProps {
317
+ options: BaseCheckboxOption[];
318
+ checked?: string[];
319
+ onChange?: (newValue: string[]) => void;
320
+ }
321
+
322
+ type BaseCheckboxProps =
323
+ | BaseCheckboxSingleProps
324
+ | BaseCheckboxGroupProps;
325
+
326
+ declare function BaseCheckbox(
327
+ props: BaseCheckboxProps,
328
+ ): React.ReactElement | null;
329
+
330
+ type BaseDatatableAlign =
331
+ | "left"
332
+ | "center"
333
+ | "right"
334
+ | "justify"
335
+ | "inherit"
336
+ | (string & {});
337
+
338
+ interface BaseDatatableColumn<T = Record<string, any>> {
339
+ id?: string;
340
+ key?: string;
341
+ field?: string;
342
+ sortField?: string;
343
+ label?: ReactNode;
344
+ header?: ReactNode;
345
+ accessorKey?: string;
346
+ accessorFn?: (row: T) => any;
347
+ align?: BaseDatatableAlign;
348
+ headerAlign?: BaseDatatableAlign;
349
+ width?: number;
350
+ minWidth?: number;
351
+ sticky?: "left" | "right";
352
+ sortable?: boolean;
353
+ noWrap?: boolean;
354
+ cellBg?: string;
355
+ cellText?: string;
356
+ cellSx?: SxProps;
357
+ renderCell?: (context: {
358
+ value: any;
359
+ row: T;
360
+ rowIndex: number;
361
+ column: BaseDatatableColumn<T>;
362
+ columnIndex: number;
363
+ checked?: boolean;
364
+ }) => ReactNode;
365
+ }
366
+
367
+ interface BaseDatatableHeaderCell {
368
+ id?: string;
369
+ key?: string;
370
+ label: ReactNode;
371
+ align?: BaseDatatableAlign;
372
+ colSpan?: number;
373
+ rowSpan?: number;
374
+ colspan?: number;
375
+ rowspan?: number;
376
+ sortKey?: string;
377
+ width?: number;
378
+ minWidth?: number;
379
+ sticky?: "left" | "right";
380
+ sx?: SxProps;
381
+ }
382
+
383
+ interface BaseDatatableFeatures {
384
+ sorting?: boolean;
385
+ sortingMode?: "client" | "server";
386
+ defaultSort?: BaseDatatableSortState | null;
387
+ sortState?: BaseDatatableSortState | null;
388
+ resetPageOnSort?: boolean;
389
+ onSortChange?: (
390
+ payload: BaseDatatableSortPayload,
391
+ column: BaseDatatableColumn,
392
+ cell: BaseDatatableHeaderCell,
393
+ ) => void;
394
+ headerInteractive?: boolean;
395
+ }
396
+
397
+ interface BaseDatatableSortState {
398
+ key: string;
399
+ direction: "asc" | "desc";
400
+ }
401
+
402
+ interface BaseDatatableSortPayload {
403
+ orderBy: string;
404
+ order: "asc" | "desc";
405
+ page: number;
406
+ rowsPerPage: number;
407
+ }
408
+
409
+ interface BaseDatatableLayout {
410
+ stickyHeader?: boolean;
411
+ stickyOffset?: number;
412
+ freezeLeft?: number;
413
+ freezeRight?: number;
414
+ maxHeight?: number;
415
+ }
416
+
417
+ interface BaseDatatableSelection<T = Record<string, any>> {
418
+ enabled?: boolean;
419
+ position?: "left" | "right";
420
+ selectRowOnClick?: boolean;
421
+ selectedRowIds?: Array<string | number>;
422
+ defaultSelectedRowIds?: Array<string | number>;
423
+ onChange?: (selectedRowIds: Array<string | number>) => void;
424
+ isRowSelectable?: (row: T, rowIndex: number) => boolean;
425
+ }
426
+
427
+ interface BaseDatatablePagination {
428
+ enabled?: boolean;
429
+ serverSide?: boolean;
430
+ count?: number;
431
+ page?: number;
432
+ rowsPerPage?: number;
433
+ rowsPerPageOptions?: number[];
434
+ labelRowsPerPage?: ReactNode;
435
+ onPageChange?: (event: unknown, nextPage: number) => void;
436
+ onRowsPerPageChange?: (event: unknown, nextRowsPerPage: number) => void;
437
+ }
438
+
439
+ interface BaseDatatableCellOverrides {
440
+ rowSpan?: number;
441
+ colSpan?: number;
442
+ content?: ReactNode;
443
+ sx?: SxProps;
444
+ }
445
+
446
+ interface BaseDatatableRenderRowContext<T = Record<string, any>> {
447
+ row: T;
448
+ rowIndex: number;
449
+ rowId: string | number;
450
+ rowActive: boolean;
451
+ columns: BaseDatatableColumn<T>[];
452
+ dataColumns: BaseDatatableColumn<T>[];
453
+ selectedRowIds: Array<string | number>;
454
+ renderCell: (
455
+ column: BaseDatatableColumn<T>,
456
+ row: T,
457
+ rowIndex: number,
458
+ columnIndex: number,
459
+ rowId: string | number,
460
+ rowActive: boolean,
461
+ cellOverrides?: BaseDatatableCellOverrides,
462
+ ) => ReactNode;
463
+ }
464
+
465
+ interface BaseDatatableProps<T = Record<string, any>> {
466
+ columns?: Array<BaseDatatableColumn<T> | string>;
467
+ data?: T[];
468
+ header?: BaseDatatableHeaderCell[][];
469
+ features?: BaseDatatableFeatures;
470
+ layout?: BaseDatatableLayout;
471
+ selection?: BaseDatatableSelection<T>;
472
+ pagination?: BaseDatatablePagination;
473
+ renderRow?: (context: BaseDatatableRenderRowContext<T>) => ReactNode;
474
+ onRowClick?: (row: T, rowIndex: number) => void;
475
+ getRowId?: (row: T, rowIndex: number) => string | number;
476
+ emptyState?: ReactNode;
477
+ loading?: boolean;
478
+ loadingText?: ReactNode;
479
+ rowHover?: boolean;
480
+ activeRowId?: string | number | null;
481
+ containerSx?: SxProps;
482
+ tableSx?: SxProps;
483
+ }
484
+
485
+ declare function BaseDatatable<T = Record<string, any>>(
486
+ props: BaseDatatableProps<T>,
487
+ ): ReactNode;
488
+
489
+ interface BaseDatePickerProps {
490
+ type?: string;
491
+
492
+ name?: string;
493
+ control?: any;
494
+
495
+ defaultValue?: any;
496
+
497
+ title?: React.ReactNode;
498
+ subtitle?: React.ReactNode;
499
+
500
+ className?: string;
501
+ titleClassName?: string;
502
+ subtitleClassName?: string;
503
+
504
+ placeholder?: string;
505
+
506
+ minDate?: any;
507
+ maxDate?: any;
508
+
509
+ isDisabled?: boolean;
510
+ clearable?: boolean;
511
+ editableDateInputs?: boolean;
512
+
513
+ format?: string;
514
+
515
+ onChange?: (date: any) => void;
516
+
517
+ [key: string]: any;
518
+ }
519
+
520
+ declare function BaseDatePicker(
521
+ props: BaseDatePickerProps,
522
+ ): React.ReactElement | null;
523
+
524
+ interface BaseDropdownProps {
525
+ name?: string;
526
+ control?: any;
527
+ options?: any[];
528
+ loadOptions?: any;
529
+ isMulti?: boolean;
530
+ isSearchable?: boolean;
531
+ showChip?: boolean;
532
+ showSelectAll?: boolean;
533
+ title?: React.ReactNode;
534
+ subtitle?: React.ReactNode;
535
+ className?: string;
536
+ titleClassName?: string;
537
+ subtitleClassName?: string;
538
+ defaultValue?: any;
539
+ isDisabled?: boolean;
540
+ isClearable?: boolean;
541
+ preventOverflow?: boolean;
542
+ optionColors?: string[];
543
+ variant?: "select" | "checkbox";
544
+ [key: string]: any;
545
+ }
546
+
547
+ declare function BaseDropdown(
548
+ props: BaseDropdownProps,
549
+ ): React.ReactElement;
550
+
551
+ interface BaseDropzoneSettings {
552
+ allowedExtensions?: Record<string, any>;
553
+ maxSize?: number;
554
+ maxFiles?: number;
555
+ isImagePreview?: boolean;
556
+ previewType?: "grid" | "list";
557
+ }
558
+
559
+ interface BaseDropzoneLabels {
560
+ title?: React.ReactNode;
561
+ dropzoneTitle?: string;
562
+ titleButton?: string;
563
+ allowedFileLabel?: string;
564
+ }
565
+
566
+ interface BaseDropzoneCallbacks {
567
+ uploadFile?: (file: File) => void | Promise<any>;
568
+ removeFile?: (file: File) => void;
569
+ customError?: (error: unknown) => void;
570
+ }
571
+
572
+ interface BaseDropzoneProps {
573
+ autoUpload?: boolean;
574
+
575
+ settings?: BaseDropzoneSettings;
576
+
577
+ labels?: BaseDropzoneLabels;
578
+
579
+ callbacks?: BaseDropzoneCallbacks;
580
+ }
581
+
582
+ declare function BaseDropzone(
583
+ props: BaseDropzoneProps,
584
+ ): React.ReactElement;
585
+
586
+ interface BaseRadioOption {
587
+ label: React.ReactNode;
588
+ value: any;
589
+ disabled?: boolean;
590
+ [key: string]: any;
591
+ }
592
+
593
+ interface BaseRadioButtonProps {
594
+ name?: string;
595
+ control?: any;
596
+ defaultValue?: any;
597
+
598
+ label?: React.ReactNode;
599
+ options?: BaseRadioOption[];
600
+
601
+ /* ================= TYPOGRAPHY ================= */
602
+ labelVariant?: string;
603
+ errorVariant?: string;
604
+
605
+ /* ================= LAYOUT ================= */
606
+ orientation?: "vertical" | "horizontal";
607
+
608
+ /* ================= COLOR TOKEN ================= */
609
+ radioColorToken?: string;
610
+
611
+ /* ================= STATE ================= */
612
+ isDisabled?: boolean;
613
+
614
+ /* ================= CLASS ================= */
615
+ className?: string;
616
+ titleClassName?: string;
617
+ fieldClassName?: string;
618
+
619
+ /* ================= ERROR ================= */
620
+ useErrorStateHelper?: boolean;
621
+
622
+ [key: string]: any;
623
+ }
624
+
625
+ declare function BaseRadioButton(
626
+ props: BaseRadioButtonProps,
627
+ ): React.ReactElement | null;
628
+
629
+ declare function BaseStepper({ steps, activeStep, orientation, variant, }: {
630
+ steps?: any[];
631
+ activeStep?: number;
632
+ orientation?: string;
633
+ variant?: string;
634
+ }): any;
635
+ declare namespace BaseStepper {
636
+ namespace propTypes {
637
+ let steps: any;
638
+ let activeStep: any;
639
+ let orientation: any;
640
+ let variant: any;
641
+ }
642
+ }
643
+
644
+ interface BaseTextFieldProps {
645
+ name?: string;
646
+ control?: any;
647
+
648
+ defaultValue?: any;
649
+ className?: string;
650
+ titleClassName?: string;
651
+
652
+ maxLength?: number;
653
+ showLength?: boolean;
654
+
655
+ isNumericOnly?: boolean;
656
+ isAlphaNumericOnly?: boolean;
657
+ isAlphaOnly?: boolean;
658
+
659
+ allowedSpecialCharacters?: string;
660
+ dontAllowedSpecialCharacters?: string;
661
+
662
+ isAlphaNumericWithUnderscore?: boolean;
663
+
664
+ isDisabled?: boolean;
665
+ isCantPaste?: boolean;
666
+
667
+ result?: any;
668
+ resultColor?: string;
669
+
670
+ noSpaceAllowed?: boolean;
671
+
672
+ showCountHelper?: boolean;
673
+
674
+ textMask?: string;
675
+
676
+ [key: string]: any;
677
+ }
678
+
679
+ declare function BaseTextField(
680
+ props: BaseTextFieldProps,
681
+ ): React.ReactElement | null;
682
+
683
+ interface TextFieldUploadProps {
684
+ name?: string;
685
+ control?: any;
686
+
687
+ defaultValue?: string;
688
+
689
+ title?: React.ReactNode;
690
+
691
+ accept?: string;
692
+ maxSize?: number;
693
+
694
+ isDisabled?: boolean;
695
+
696
+ buttonLabel?: string;
697
+ buttonPosition?: "start" | "end";
698
+
699
+ iconPosition?: "start" | "end";
700
+
701
+ uploadFile?: (file: File) => void | Promise<any>;
702
+
703
+ [key: string]: any;
704
+ }
705
+
706
+ declare function TextFieldUpload(
707
+ props: TextFieldUploadProps,
708
+ ): React.ReactElement | null;
709
+
710
+ interface BaseTextAreaProps {
711
+ name?: string;
712
+ control?: any;
713
+ defaultValue?: any;
714
+ helperText?: React.ReactNode;
715
+ rules?: any;
716
+ exactLength?: number;
717
+ maxLength?: number;
718
+
719
+ [key: string]: any;
720
+ }
721
+
722
+ declare function BaseTextArea(
723
+ props: BaseTextAreaProps,
724
+ ): React.ReactElement | null;
725
+
726
+ interface BaseModalProps {
727
+ open?: boolean;
728
+
729
+ onClose?: () => void;
730
+ onConfirm?: () => void;
731
+ onCancel?: () => void;
732
+
733
+ icon?: React.ReactNode;
734
+
735
+ title?: React.ReactNode;
736
+ description?: React.ReactNode;
737
+
738
+ children?: React.ReactNode;
739
+ footer?: React.ReactNode;
740
+
741
+ showConfirm?: boolean;
742
+ showCancel?: boolean;
743
+
744
+ confirmLabel?: string;
745
+ cancelLabel?: string;
746
+
747
+ confirmVariant?: string;
748
+ cancelVariant?: string;
749
+
750
+ confirmColor?: string;
751
+ cancelColor?: string;
752
+
753
+ confirmSize?: string;
754
+ cancelSize?: string;
755
+
756
+ align?: "left" | "center" | "right";
757
+
758
+ modalWidth?: string;
759
+
760
+ showCloseIcon?: boolean;
761
+
762
+ [key: string]: any;
763
+ }
764
+
765
+ declare function BaseModal(
766
+ props: BaseModalProps,
767
+ ): React.ReactElement | null;
768
+
769
+ interface BaseModalStepperStep {
770
+ label?: string;
771
+ description?: string;
772
+ responseCode?: string;
773
+ responseDesc?: string;
774
+ responseTime?: number;
775
+ }
776
+
777
+ interface BaseModalStepperProps {
778
+ open: boolean;
779
+
780
+ onClose: (event?: any, reason?: any) => void;
781
+
782
+ title?: string;
783
+
784
+ stepper?: BaseModalStepperStep[];
785
+
786
+ navState?: string | number | null;
787
+
788
+ lengthUpload?: number;
789
+
790
+ id_pengajuan?: number | null;
791
+
792
+ showFooter?: boolean;
793
+
794
+ children?: React.ReactNode;
795
+
796
+ modalWidth?: string;
797
+
798
+ [key: string]: any;
799
+ }
800
+
801
+ declare function BaseModalStepper(
802
+ props: BaseModalStepperProps,
803
+ ): React.ReactElement | null;
804
+
805
+ interface BaseModalOTPProps {
806
+ isOpen?: boolean;
807
+
808
+ phone?: string;
809
+
810
+ setIsOpen?: (open: boolean) => void;
811
+
812
+ otpLength?: number;
813
+
814
+ onValidateOtp?: (otp: string) => void;
815
+
816
+ onRequestOtp?: () => void;
817
+
818
+ [key: string]: any;
819
+ }
820
+
821
+ declare function BaseModalOTP(
822
+ props: BaseModalOTPProps,
823
+ ): React.ReactElement | null;
824
+
825
+ export { BaseAlert, BaseButton, BaseCard, BaseCheckbox, BaseDatatable, BaseDatePicker, BaseDropdown, BaseDropzone, BaseModal, BaseModalOTP, BaseModalStepper, BaseRadioButton, BaseStepper, BaseSwitch, BaseTextArea, BaseTextField, CONTENT_SPACING_TOKENS, ContentSpacing, DerivedColor, PrimitiveColor, Radius, RadiusToken, Shadow, ShadowToken, Spacing, SpacingToken, TextFieldUpload, Typography, VariantStyles };