@granto-umbrella/umbrella-components 3.0.48 → 3.0.49
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/package.json
CHANGED
|
@@ -20,6 +20,8 @@ export const ExportExcelModal = ({
|
|
|
20
20
|
description,
|
|
21
21
|
onExport,
|
|
22
22
|
onSave,
|
|
23
|
+
isLoadingSave,
|
|
24
|
+
isLoadingExport,
|
|
23
25
|
}: {
|
|
24
26
|
open: boolean;
|
|
25
27
|
onOpenChange: (open: boolean) => void;
|
|
@@ -30,6 +32,8 @@ export const ExportExcelModal = ({
|
|
|
30
32
|
description: string;
|
|
31
33
|
onExport?: (data: any) => void;
|
|
32
34
|
onSave?: (data: any) => void;
|
|
35
|
+
isLoadingSave?: boolean;
|
|
36
|
+
isLoadingExport?: boolean;
|
|
33
37
|
}) => {
|
|
34
38
|
return (
|
|
35
39
|
<Dialog.Root open={open} onOpenChange={onOpenChange}>
|
|
@@ -65,6 +69,7 @@ export const ExportExcelModal = ({
|
|
|
65
69
|
onClick: () => {
|
|
66
70
|
if (onExport) onExport(data.selected);
|
|
67
71
|
},
|
|
72
|
+
isLoading: isLoadingExport,
|
|
68
73
|
},
|
|
69
74
|
{
|
|
70
75
|
label: 'Salvar configurações',
|
|
@@ -72,6 +77,7 @@ export const ExportExcelModal = ({
|
|
|
72
77
|
onClick: () => {
|
|
73
78
|
if (onSave) onSave(data.selected);
|
|
74
79
|
},
|
|
80
|
+
isLoading: isLoadingSave,
|
|
75
81
|
},
|
|
76
82
|
]}
|
|
77
83
|
orientation="horizontal"
|