fui-material 0.2.67 → 0.2.68

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,3 +1,667 @@
1
- export * from './material';
2
- export * from './icons';
3
- export * from './function-elements';
1
+ import React, { FC } from 'react';
2
+
3
+ interface IFButton {
4
+ children?: React.ReactChild | React.ReactNode;
5
+ variant?: 'contained' | 'default';
6
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
7
+ size?: 'btn-lg' | 'btn-sm' | 'btn-xs';
8
+ disabled?: boolean;
9
+ onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
10
+ st?: React.CSSProperties;
11
+ className?: string;
12
+ fullWidth?: boolean;
13
+ id?: string;
14
+ type?: "button" | "submit" | "reset" | undefined;
15
+ }
16
+ declare const FButton: ({ children, variant, color, size, disabled, onClick, st, className, fullWidth, id, type }: IFButton) => React.JSX.Element;
17
+
18
+ interface IFButtonFile {
19
+ children?: React.ReactChild | React.ReactNode;
20
+ variant?: 'contained' | 'default';
21
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
22
+ size?: 'btn-lg' | 'btn-sm' | 'btn-xs';
23
+ disabled?: boolean;
24
+ st?: React.CSSProperties;
25
+ className?: string;
26
+ fullWidth?: boolean;
27
+ id?: string;
28
+ onChange: (file: FileList | null) => void;
29
+ multiple?: boolean;
30
+ maxCount?: number;
31
+ accept?: string;
32
+ spacing?: 0 | 0.5 | 1 | 2 | 3 | 4 | 8 | 12 | undefined;
33
+ direction?: "row" | "row-reverse" | "column" | "column-reverse" | undefined;
34
+ }
35
+ declare const FButtonFile: ({ children, variant, color, size, disabled, st, className, fullWidth, id, onChange, multiple, maxCount, accept, spacing, direction }: IFButtonFile) => React.JSX.Element;
36
+
37
+ interface IFTextField {
38
+ label?: string;
39
+ st?: React.CSSProperties;
40
+ value?: string | number | readonly string[] | undefined | null;
41
+ onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
42
+ type?: 'text' | 'number' | 'email' | 'tel' | 'password';
43
+ onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
44
+ onFocus?: React.FocusEventHandler<HTMLInputElement> | undefined;
45
+ fullWidth?: boolean;
46
+ disabled?: boolean;
47
+ readOnly?: boolean | undefined;
48
+ defaultValue?: string | number | readonly string[] | undefined;
49
+ errText?: string[];
50
+ helpText?: string;
51
+ onInput?: React.FormEventHandler<HTMLInputElement> | undefined;
52
+ id?: string;
53
+ className?: string;
54
+ load?: boolean;
55
+ min?: number;
56
+ max?: number;
57
+ placeholder?: string | undefined;
58
+ }
59
+ declare const FTextField: FC<IFTextField>;
60
+
61
+ interface IFStack {
62
+ direction?: 'row' | "row-reverse" | 'column' | "column-reverse";
63
+ alignItems?: "flex-start" | "center" | "flex-end" | "stretch" | "baseline";
64
+ justifyContent?: "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
65
+ spacing?: number;
66
+ children?: React.ReactChild | React.ReactNode;
67
+ className?: string;
68
+ st?: React.CSSProperties;
69
+ id?: string;
70
+ }
71
+ declare const FStack: FC<IFStack>;
72
+
73
+ interface IFGrid {
74
+ children?: React.ReactChild | React.ReactNode;
75
+ className?: string;
76
+ st?: React.CSSProperties;
77
+ id?: string;
78
+ obj?: 'container' | 'item';
79
+ xs?: number;
80
+ sm?: number;
81
+ md?: number;
82
+ lg?: number;
83
+ xl?: number;
84
+ xxl?: number;
85
+ colAuto?: 'col-sm-auto' | 'col-md-auto' | 'col-lg-auto' | 'col-xl-auto' | 'col-xxl-auto';
86
+ }
87
+ declare const FGrid: FC<IFGrid>;
88
+
89
+ interface IFContainer {
90
+ maxWidth?: 'container-xs' | 'container-sm' | 'container-md' | 'container-lg' | 'container-xl' | 'container-xxl' | 'container-fluid';
91
+ children?: React.ReactChild | React.ReactNode;
92
+ className?: string;
93
+ st?: React.CSSProperties;
94
+ id?: string;
95
+ }
96
+ declare const FContainer: FC<IFContainer>;
97
+
98
+ interface IFPaper {
99
+ label?: string;
100
+ children?: React.ReactChild | React.ReactNode;
101
+ st?: React.CSSProperties;
102
+ fontSizeLabel?: string;
103
+ fontSizeBody?: string;
104
+ id?: string;
105
+ className?: string;
106
+ onAnimationEnd?: () => void;
107
+ animated?: {
108
+ name: string;
109
+ value: string;
110
+ };
111
+ }
112
+ declare const FPaper: FC<IFPaper>;
113
+
114
+ interface IFTable {
115
+ st?: React.CSSProperties;
116
+ children?: React.ReactChild | React.ReactNode;
117
+ id?: string;
118
+ className?: string;
119
+ onClick?: React.MouseEventHandler<HTMLTableElement> | undefined;
120
+ overflowX?: 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto' | undefined;
121
+ }
122
+ declare const FTable: FC<IFTable>;
123
+
124
+ interface IFTableHead {
125
+ st?: React.CSSProperties;
126
+ children?: React.ReactChild | React.ReactNode;
127
+ onClick?: React.MouseEventHandler<HTMLTableSectionElement> | undefined;
128
+ id?: string;
129
+ className?: string;
130
+ }
131
+ declare const FTableHead: FC<IFTableHead>;
132
+
133
+ interface IFTableBody {
134
+ st?: React.CSSProperties;
135
+ children?: React.ReactChild | React.ReactNode;
136
+ onClick?: React.MouseEventHandler<HTMLTableSectionElement> | undefined;
137
+ id?: string;
138
+ className?: string;
139
+ }
140
+ declare const FTableBody: FC<IFTableBody>;
141
+
142
+ interface IFTableRow {
143
+ st?: React.CSSProperties;
144
+ children?: React.ReactChild | React.ReactNode;
145
+ onClick?: React.MouseEventHandler<HTMLTableRowElement> | undefined;
146
+ id?: string;
147
+ className?: string;
148
+ }
149
+ declare const FTableRow: FC<IFTableRow>;
150
+
151
+ interface IFTableHeaderCell {
152
+ st?: React.CSSProperties;
153
+ row?: number | undefined;
154
+ col?: number | undefined;
155
+ children?: React.ReactChild | React.ReactNode;
156
+ onClick?: React.MouseEventHandler<HTMLTableHeaderCellElement> | undefined;
157
+ id?: string;
158
+ className?: string;
159
+ }
160
+ declare const FTableHeaderCell: FC<IFTableHeaderCell>;
161
+
162
+ interface IFTableDataCell {
163
+ st?: React.CSSProperties;
164
+ row?: number | undefined;
165
+ col?: number | undefined;
166
+ children?: React.ReactChild | React.ReactNode;
167
+ onClick?: React.MouseEventHandler<HTMLTableHeaderCellElement> | undefined;
168
+ id?: string;
169
+ onBlur?: React.FocusEventHandler<HTMLTableDataCellElement> | undefined;
170
+ onFocus?: React.FocusEventHandler<HTMLTableDataCellElement> | undefined;
171
+ className?: string;
172
+ }
173
+ declare const FTableDataCell: FC<IFTableDataCell>;
174
+
175
+ interface IFTableFooter {
176
+ st?: React.CSSProperties;
177
+ children?: React.ReactChild | React.ReactNode;
178
+ onClick?: React.MouseEventHandler<HTMLTableSectionElement> | undefined;
179
+ id?: string;
180
+ className?: string;
181
+ }
182
+ declare const FTableFooter: FC<IFTableFooter>;
183
+
184
+ interface IFDialog {
185
+ openAndClose: boolean;
186
+ id?: string;
187
+ className?: string;
188
+ st?: React.CSSProperties;
189
+ children?: React.ReactChild | React.ReactNode;
190
+ hide?: boolean;
191
+ closeButtonBackPage?: React.Dispatch<React.SetStateAction<boolean>>;
192
+ width?: 'xs' | 'md' | 'lg' | 'xxl' | 'adaptive';
193
+ }
194
+ declare const FDialog: FC<IFDialog>;
195
+
196
+ interface IFDialogHeader {
197
+ title?: string;
198
+ handleClose?: () => void;
199
+ }
200
+ declare const FDialogHeader: FC<IFDialogHeader>;
201
+
202
+ interface IFDialogBody {
203
+ st?: React.CSSProperties;
204
+ children?: React.ReactChild | React.ReactNode;
205
+ scroll?: boolean;
206
+ }
207
+ declare const FDialogBody: FC<IFDialogBody>;
208
+
209
+ interface IFDialogFooter {
210
+ children?: React.ReactChild | React.ReactNode;
211
+ }
212
+ declare const FDialogFooter: FC<IFDialogFooter>;
213
+
214
+ interface IFProgress {
215
+ st?: React.CSSProperties;
216
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
217
+ }
218
+ declare const FProgress: FC<IFProgress>;
219
+
220
+ interface IFPreloader {
221
+ st?: React.CSSProperties;
222
+ backgroundColor?: string;
223
+ children?: React.ReactChild | React.ReactNode;
224
+ open: boolean;
225
+ }
226
+ declare const FPreloader: FC<IFPreloader>;
227
+
228
+ interface IFCheckbox {
229
+ label?: React.ReactChild | React.ReactNode;
230
+ onChange: React.ChangeEventHandler<HTMLInputElement> | undefined;
231
+ defaultChecked?: boolean | undefined;
232
+ className?: string;
233
+ id?: string;
234
+ st?: React.CSSProperties | undefined;
235
+ checked?: boolean | undefined;
236
+ disabled?: boolean;
237
+ }
238
+ declare const FCheckbox: FC<IFCheckbox>;
239
+
240
+ interface IFRadioButton {
241
+ label?: React.ReactChild | React.ReactNode;
242
+ onClick: React.MouseEventHandler<HTMLInputElement> | undefined;
243
+ className?: string;
244
+ id?: string;
245
+ st?: React.CSSProperties | undefined;
246
+ checked?: boolean | undefined;
247
+ disabled?: boolean;
248
+ }
249
+ declare const FRadioButton: FC<IFRadioButton>;
250
+
251
+ interface IFPagination {
252
+ currentPage: number;
253
+ totalCount: number;
254
+ pageSize: number;
255
+ onPageChange: (page: number | string | number) => void;
256
+ id?: string;
257
+ className?: string;
258
+ st?: React.CSSProperties | undefined;
259
+ siblingCount: 0 | 1 | 2;
260
+ }
261
+ declare const FPagination: FC<IFPagination>;
262
+
263
+ interface IFTimeline {
264
+ children?: React.ReactChild | React.ReactNode;
265
+ st?: React.CSSProperties;
266
+ id?: string;
267
+ className?: string;
268
+ }
269
+ declare const FTimeline: FC<IFTimeline>;
270
+
271
+ interface IFTimelineCard {
272
+ children?: React.ReactChild | React.ReactNode;
273
+ st?: React.CSSProperties;
274
+ title?: string;
275
+ id?: string;
276
+ className?: string;
277
+ }
278
+ declare const FTimelineCard: FC<IFTimelineCard>;
279
+
280
+ interface IFOpenImgFull {
281
+ id?: string;
282
+ className?: string;
283
+ st?: React.CSSProperties;
284
+ imagesUrl: string[];
285
+ selectedImg: number;
286
+ handleClose?: () => void;
287
+ setSelectedImg: (number: number) => void;
288
+ openAndClose: boolean;
289
+ }
290
+ declare const FOpenImgFull: FC<IFOpenImgFull>;
291
+
292
+ interface IFAccordion {
293
+ children?: React.ReactChild | React.ReactNode;
294
+ variant?: 'info' | 'alert' | 'warning';
295
+ title?: string;
296
+ id?: string;
297
+ className?: string;
298
+ st?: React.CSSProperties;
299
+ defaultOpen?: boolean;
300
+ }
301
+ declare const FAccordion: FC<IFAccordion>;
302
+
303
+ interface IFInputFileForm {
304
+ id?: string;
305
+ className?: string;
306
+ st?: React.CSSProperties;
307
+ dataMaxSize?: {
308
+ dimension: 'МБ' | 'КБ';
309
+ size: number;
310
+ };
311
+ name?: string;
312
+ accept?: string;
313
+ multiple?: boolean;
314
+ onChange: (e: FileList) => void;
315
+ disabled?: boolean;
316
+ deleteFile?: boolean;
317
+ title?: string;
318
+ }
319
+ declare const FInputFileForm: FC<IFInputFileForm>;
320
+
321
+ interface IFFile {
322
+ id?: string;
323
+ className?: string;
324
+ st?: React.CSSProperties;
325
+ handleDelete?: () => void;
326
+ name: string;
327
+ }
328
+ declare const FFile: FC<IFFile>;
329
+
330
+ interface IFSelect {
331
+ label?: string;
332
+ st?: React.CSSProperties;
333
+ onChange?: React.ChangeEventHandler<HTMLSelectElement> | undefined;
334
+ children?: React.ReactChild | React.ReactNode;
335
+ value?: string | number | readonly string[] | undefined;
336
+ multiple?: boolean | undefined;
337
+ size?: number | undefined;
338
+ fullWidth?: boolean;
339
+ disabled?: boolean;
340
+ defaultValue?: string | number | readonly string[] | undefined;
341
+ id?: string;
342
+ className?: string;
343
+ load?: boolean;
344
+ errText?: string[];
345
+ helpText?: string;
346
+ }
347
+ declare const FSelect: FC<IFSelect>;
348
+
349
+ interface IFSelectItem {
350
+ st?: React.CSSProperties;
351
+ value?: string | number | readonly string[] | undefined;
352
+ children?: React.ReactChild | React.ReactNode;
353
+ disabled?: boolean;
354
+ onClick?: React.MouseEventHandler<HTMLOptionElement> | undefined;
355
+ selected?: boolean;
356
+ className?: string;
357
+ id?: string;
358
+ }
359
+ declare const FSelectItem: FC<IFSelectItem>;
360
+
361
+ interface IFFullDateField {
362
+ label?: string;
363
+ st?: React.CSSProperties;
364
+ value?: string | number | undefined | null;
365
+ onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
366
+ fullWidth?: boolean;
367
+ defaultValue?: string | number | readonly string[] | undefined;
368
+ disabled?: boolean;
369
+ readOnly?: boolean;
370
+ id?: string;
371
+ className?: string;
372
+ onkeydown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
373
+ min?: string | undefined;
374
+ max?: string | undefined;
375
+ load?: boolean;
376
+ errText?: string[];
377
+ helpText?: string;
378
+ onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
379
+ onFocus?: React.FocusEventHandler<HTMLInputElement> | undefined;
380
+ }
381
+ declare const FFullDateField: FC<IFFullDateField>;
382
+
383
+ interface IFSelectSearchDb {
384
+ fetchingFunc: (text: string) => Promise<any[]>;
385
+ selectedElement: (e: any | undefined) => void;
386
+ selectItem: any;
387
+ label?: string;
388
+ st?: React.CSSProperties;
389
+ id?: string;
390
+ fullWidth?: boolean;
391
+ className?: string;
392
+ disabled?: boolean;
393
+ readOnly?: boolean;
394
+ errText?: string[];
395
+ helpText?: string;
396
+ onFocus?: React.FocusEventHandler<HTMLInputElement> | undefined;
397
+ onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
398
+ minLengthText?: number;
399
+ }
400
+ declare const FSelectSearchDb: FC<IFSelectSearchDb>;
401
+
402
+ interface IFTextArea {
403
+ label?: string;
404
+ st?: React.CSSProperties;
405
+ value?: string | undefined;
406
+ cols?: number;
407
+ rows?: number;
408
+ placeholder?: string;
409
+ readOnly?: boolean;
410
+ disabled?: boolean;
411
+ autoComplete?: boolean;
412
+ className?: string;
413
+ id?: string;
414
+ fullWidth?: boolean;
415
+ onChange?: React.ChangeEventHandler<HTMLTextAreaElement> | undefined;
416
+ onClick?: React.MouseEventHandler<HTMLTextAreaElement> | undefined;
417
+ onFocus?: React.FocusEventHandler<HTMLTextAreaElement> | undefined;
418
+ errText?: string[];
419
+ helpText?: string;
420
+ load?: boolean;
421
+ }
422
+ declare const FTextArea: FC<IFTextArea>;
423
+
424
+ interface IFAlert {
425
+ title?: string;
426
+ body?: string;
427
+ variant: 'info' | 'error' | 'success' | 'warning';
428
+ onClose?: (e: boolean) => void;
429
+ st?: React.CSSProperties | undefined;
430
+ open: boolean;
431
+ vertical?: 'top' | 'bottom' | 'center';
432
+ horizontal?: 'left' | 'center' | 'right';
433
+ buttonClose?: boolean;
434
+ className?: string;
435
+ displayTime?: number;
436
+ size?: string;
437
+ }
438
+ declare const FAlert: FC<IFAlert>;
439
+
440
+ interface IFNative {
441
+ label: string;
442
+ id?: string;
443
+ className?: string;
444
+ st?: React.CSSProperties;
445
+ children?: React.ReactChild | React.ReactNode;
446
+ value?: string[] | number[];
447
+ singleChoice?: (element: string[]) => void;
448
+ multipleChoice?: (element: string[]) => void;
449
+ disabled?: boolean;
450
+ size?: number;
451
+ overflowX?: boolean;
452
+ width?: number | 'auto' | 'fit-content' | 'inherit' | 'initial' | 'max-content' | 'min-content' | 'revert' | 'unset' | '-webkit-fill-available';
453
+ fullWidth?: boolean;
454
+ }
455
+ declare const FNative: FC<IFNative>;
456
+
457
+ interface IFTabs$1 {
458
+ children?: React.ReactChild | React.ReactNode;
459
+ id?: string;
460
+ className?: string;
461
+ st?: React.CSSProperties;
462
+ }
463
+ declare const FTabs: FC<IFTabs$1>;
464
+
465
+ interface IFTabs {
466
+ children?: React.ReactChild | React.ReactNode;
467
+ id?: string;
468
+ className?: string;
469
+ st?: React.CSSProperties;
470
+ disabled?: boolean;
471
+ active?: boolean;
472
+ onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
473
+ }
474
+ declare const FTab: FC<IFTabs>;
475
+
476
+ interface IFDropdown {
477
+ label?: React.ReactChild | React.ReactNode;
478
+ children?: React.ReactChild | React.ReactNode;
479
+ variant?: 'contained' | 'default';
480
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
481
+ size?: 'btn-lg' | 'btn-sm' | 'btn-xs';
482
+ disabled?: boolean;
483
+ st?: React.CSSProperties;
484
+ className?: string;
485
+ id?: string;
486
+ }
487
+ declare const FDropdown: FC<IFDropdown>;
488
+
489
+ interface IFDropdownItem {
490
+ disabled?: boolean;
491
+ st?: React.CSSProperties;
492
+ className?: string;
493
+ id?: string;
494
+ children?: React.ReactChild | React.ReactNode;
495
+ onClick?: React.MouseEventHandler<HTMLLIElement> | undefined;
496
+ }
497
+ declare const FDropdownItem: FC<IFDropdownItem>;
498
+
499
+ interface IFSearchBox {
500
+ label?: string;
501
+ st?: React.CSSProperties;
502
+ value?: string | number | readonly string[] | undefined;
503
+ onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
504
+ type?: 'text' | 'number' | 'email' | 'tel' | 'password';
505
+ onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
506
+ onFocus?: React.FocusEventHandler<HTMLInputElement> | undefined;
507
+ fullWidth?: boolean;
508
+ disabled?: boolean;
509
+ readOnly?: boolean | undefined;
510
+ defaultValue?: string | number | readonly string[] | undefined;
511
+ errText?: string[];
512
+ helpText?: string;
513
+ onInput?: React.FormEventHandler<HTMLInputElement> | undefined;
514
+ id?: string;
515
+ className?: string;
516
+ load?: boolean;
517
+ min?: number;
518
+ max?: number;
519
+ placeholder?: string | undefined;
520
+ children?: React.ReactChild | React.ReactNode;
521
+ variant?: 'contained' | 'default';
522
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
523
+ onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
524
+ }
525
+ declare const FSearchBox: FC<IFSearchBox>;
526
+
527
+ interface IFCloseIcon {
528
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
529
+ size?: number;
530
+ st?: React.CSSProperties;
531
+ id?: string;
532
+ className?: string;
533
+ handleClose?: () => void;
534
+ }
535
+ declare const FCloseIcon: ({ color, size, st, id, className, handleClose }: IFCloseIcon) => React.JSX.Element;
536
+
537
+ interface IFArrowIcon {
538
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
539
+ size?: number;
540
+ st?: React.CSSProperties;
541
+ direction?: 'up' | 'down' | 'left' | 'right';
542
+ handleClick?: () => void;
543
+ id?: string;
544
+ className?: string;
545
+ }
546
+ declare const FArrowIcon: ({ color, size, st, direction, handleClick, id, className }: IFArrowIcon) => React.JSX.Element;
547
+
548
+ interface IFPlusIcon {
549
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
550
+ size?: number;
551
+ st?: React.CSSProperties;
552
+ id?: string;
553
+ className?: string;
554
+ handleClick?: () => void;
555
+ }
556
+ declare const FPlusIcon: ({ color, size, st, className, id, handleClick }: IFPlusIcon) => React.JSX.Element;
557
+
558
+ interface IFTrashIcon {
559
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
560
+ size?: number;
561
+ st?: React.CSSProperties;
562
+ id?: string;
563
+ className?: string;
564
+ handleClick?: () => void;
565
+ }
566
+ declare const FTrashIcon: ({ color, size, st, id, className, handleClick, }: IFTrashIcon) => React.JSX.Element;
567
+
568
+ interface IFCheckIcon {
569
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
570
+ size?: number;
571
+ st?: React.CSSProperties;
572
+ id?: string;
573
+ className?: string;
574
+ handleClick?: () => void;
575
+ }
576
+ declare const FCheckIcon: ({ color, size, st, id, className, handleClick }: IFCheckIcon) => React.JSX.Element;
577
+
578
+ interface IFListIcon {
579
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
580
+ size?: number;
581
+ st?: React.CSSProperties;
582
+ id?: string;
583
+ className?: string;
584
+ handleClick?: () => void;
585
+ }
586
+ declare const FListIcon: ({ color, size, st, id, className, handleClick }: IFListIcon) => React.JSX.Element;
587
+
588
+ interface IFPenIcon {
589
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
590
+ size?: number;
591
+ st?: React.CSSProperties;
592
+ id?: string;
593
+ className?: string;
594
+ handleClick?: () => void;
595
+ }
596
+ declare const FPenIcon: ({ color, size, st, id, className, handleClick }: IFPenIcon) => React.JSX.Element;
597
+
598
+ interface IFDownloadIcon {
599
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
600
+ size?: number;
601
+ st?: React.CSSProperties;
602
+ id?: string;
603
+ className?: string;
604
+ handleClick?: () => void;
605
+ }
606
+ declare const FDownloadIcon: ({ color, size, st, id, className, handleClick }: IFDownloadIcon) => React.JSX.Element;
607
+
608
+ interface IFCopyAddIcon {
609
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
610
+ size?: number;
611
+ st?: React.CSSProperties;
612
+ id?: string;
613
+ className?: string;
614
+ handleClick?: () => void;
615
+ }
616
+ declare const FCopyAddIcon: ({ color, size, st, id, className, handleClick }: IFCopyAddIcon) => React.JSX.Element;
617
+
618
+ interface IFUnlinkIcon {
619
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
620
+ size?: number;
621
+ st?: React.CSSProperties;
622
+ id?: string;
623
+ className?: string;
624
+ handleClick?: () => void;
625
+ }
626
+ declare const FUnlinkIcon: ({ color, size, st, id, className, handleClick }: IFUnlinkIcon) => React.JSX.Element;
627
+
628
+ interface IFFilterIcon {
629
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
630
+ size?: number;
631
+ st?: React.CSSProperties;
632
+ id?: string;
633
+ className?: string;
634
+ handleClick?: () => void;
635
+ }
636
+ declare const FFilterIcon: ({ color, size, st, id, className, handleClick }: IFFilterIcon) => React.JSX.Element;
637
+
638
+ interface IFLoadIcon {
639
+ color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
640
+ size?: number;
641
+ st?: React.CSSProperties;
642
+ id?: string;
643
+ className?: string;
644
+ handleClick?: () => void;
645
+ }
646
+ declare const FLoadIcon: ({ size, st, id, className, color }: IFLoadIcon) => React.JSX.Element;
647
+
648
+ interface IfAlert {
649
+ title?: string;
650
+ body: string;
651
+ variant: 'info' | 'error' | 'success' | 'warning';
652
+ }
653
+ declare const fAlert: ({ title, body, variant }: IfAlert) => void;
654
+
655
+ interface IfConfirm {
656
+ title?: string;
657
+ body: string;
658
+ }
659
+ declare const fConfirm: ({ title, body }: IfConfirm) => Promise<boolean>;
660
+
661
+ interface IfPrompt {
662
+ title?: string;
663
+ body?: string;
664
+ }
665
+ declare const fPrompt: ({ title, body }: IfPrompt) => Promise<string | null>;
666
+
667
+ export { FAccordion, FAlert, FArrowIcon, FButton, FButtonFile, FCheckIcon, FCheckbox, FCloseIcon, FContainer, FCopyAddIcon, FDialog, FDialogBody, FDialogFooter, FDialogHeader, FDownloadIcon, FDropdown, FDropdownItem, FFile, FFilterIcon, FFullDateField, FGrid, FInputFileForm, FListIcon, FLoadIcon, FNative, FOpenImgFull, FPagination, FPaper, FPenIcon, FPlusIcon, FPreloader, FProgress, FRadioButton, FSearchBox, FSelect, FSelectItem, FSelectSearchDb, FStack, FTab, FTable, FTableBody, FTableDataCell, FTableFooter, FTableHead, FTableHeaderCell, FTableRow, FTabs, FTextArea, FTextField, FTimeline, FTimelineCard, FTrashIcon, FUnlinkIcon, fAlert, fConfirm, fPrompt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fui-material",
3
- "version": "0.2.67",
3
+ "version": "0.2.68",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -14,7 +14,8 @@
14
14
  "bootstrap": "^5.2.2",
15
15
  "bun-types": "^1.0.5-canary.20231006T140143",
16
16
  "gh-pages": "^6.0.0",
17
- "rollup": "^4.0.2",
17
+ "rollup": "^2.60.0",
18
+ "rollup-plugin-peer-deps-external": "^2.2.4",
18
19
  "rollup-plugin-postcss": "^4.0.2",
19
20
  "rollup-plugin-typescript2": "^0.36.0",
20
21
  "typescript": "^5.2.2"
@@ -25,7 +26,7 @@
25
26
  "scripts": {
26
27
  "build": "rollup -c --bundleConfigAsCjs",
27
28
  "publish": "npm publish",
28
- "build-publish" : "rollup -c --bundleConfigAsCjs && npm publish"
29
+ "build-publish": "rollup -c --bundleConfigAsCjs && npm publish"
29
30
  },
30
31
  "eslintConfig": {
31
32
  "extends": [
@@ -35,9 +36,10 @@
35
36
  "dependencies": {
36
37
  "@types/react": "^18.2.25",
37
38
  "@types/react-dom": "^18.2.10",
38
- "typescript": "^5.2.2",
39
39
  "react": "^18.2.0",
40
- "react-dom": "^18.2.0"
40
+ "react-dom": "^18.2.0",
41
+ "rollup-plugin-dts": "^6.0.2",
42
+ "typescript": "^5.0.0"
41
43
  },
42
44
  "main": "dist/index.d.ts",
43
45
  "module": "dist/index.d.tss",