@data-c/ui 0.2.4 → 0.2.9
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 +169 -139
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +6 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as _mui_material from '@mui/material';
|
|
3
|
-
import { ButtonProps as ButtonProps$3, StackProps, CheckboxProps as CheckboxProps$1,
|
|
3
|
+
import { ButtonProps as ButtonProps$3, StackProps, CheckboxProps as CheckboxProps$1, IconButtonProps, DrawerProps, TypographyProps, ToolbarProps as ToolbarProps$1, TextFieldProps, TooltipProps as TooltipProps$2, BoxProps, PaperProps, SvgIconProps, IconProps, DialogProps as DialogProps$1, ChipProps, InputBaseProps, Breakpoint, TableFooterProps, MenuItemProps as MenuItemProps$2, PopoverProps, ContainerProps, AutocompleteInputChangeReason } from '@mui/material';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
|
-
import React__default, { ReactNode,
|
|
6
|
-
import {
|
|
5
|
+
import React__default, { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
6
|
+
import { CredentialsConfigsInterface, AmbienteDataInterface, Empresa, PaginationProps as PaginationProps$1 } from '@data-c/hooks';
|
|
7
7
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
8
8
|
import { AvatarProps } from '@mui/material/Avatar';
|
|
9
|
-
import { DialogComponent, DialogProps
|
|
9
|
+
import { DialogComponent, DialogProps } from '@toolpad/core';
|
|
10
10
|
export { useDialogs } from '@toolpad/core';
|
|
11
|
-
import { GridColDef as GridColDef$1, DataGridProps, GridRowsProp, GridRowSelectionModel, GridCallbackDetails } from '@mui/x-data-grid';
|
|
11
|
+
import { GridColDef as GridColDef$1, DataGridProps, GridRowsProp, GridRowSelectionModel, GridCallbackDetails, GridActionsCellItemProps } from '@mui/x-data-grid';
|
|
12
12
|
import * as LucideIcons from 'lucide-react';
|
|
13
13
|
import { LucideProps } from 'lucide-react';
|
|
14
14
|
|
|
@@ -30,40 +30,6 @@ declare const CurrencyTextField: React$1.ForwardRefExoticComponent<Omit<Omit<_mu
|
|
|
30
30
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement>, value: any) => void) | undefined;
|
|
31
31
|
}, "ref"> & React$1.RefAttributes<unknown>>;
|
|
32
32
|
|
|
33
|
-
interface DialogActionsProps {
|
|
34
|
-
cancelLabel?: string;
|
|
35
|
-
confirmLabel?: string;
|
|
36
|
-
type?: 'content' | 'info' | 'warning' | 'error' | 'success';
|
|
37
|
-
onCancel?: () => void;
|
|
38
|
-
onConfirm?: () => void;
|
|
39
|
-
isLoadingConfirmButton?: boolean;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface DialogProps extends DialogProps$1 {
|
|
43
|
-
actions?: 'none' | ReactNode;
|
|
44
|
-
type?: 'content' | 'info' | 'warning' | 'error' | 'success';
|
|
45
|
-
onConfirm?: () => void;
|
|
46
|
-
dialogActionsProps?: DialogActionsProps;
|
|
47
|
-
}
|
|
48
|
-
declare function Dialog$1(props: DialogProps): react_jsx_runtime.JSX.Element;
|
|
49
|
-
declare namespace Dialog$1 {
|
|
50
|
-
var defaultProps: {
|
|
51
|
-
fullWidth: boolean;
|
|
52
|
-
type: string;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
interface DeleteContainerProps extends DialogProps {
|
|
57
|
-
title: string;
|
|
58
|
-
children: ReactNode;
|
|
59
|
-
onDelete?: (formValues: any) => void;
|
|
60
|
-
type?: 'warning' | 'error';
|
|
61
|
-
}
|
|
62
|
-
declare function DeleteContainer(props: DeleteContainerProps): react_jsx_runtime.JSX.Element;
|
|
63
|
-
declare namespace DeleteContainer {
|
|
64
|
-
var defaultProps: DialogProps;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
33
|
interface TooltipProps$1 {
|
|
68
34
|
type: 'warning' | 'info';
|
|
69
35
|
content: NonNullable<React__default.ReactNode>;
|
|
@@ -148,22 +114,6 @@ interface Flag {
|
|
|
148
114
|
}
|
|
149
115
|
declare function Flag(props: Flag): react_jsx_runtime.JSX.Element | null;
|
|
150
116
|
|
|
151
|
-
interface FormContainerProps {
|
|
152
|
-
children: ReactNode;
|
|
153
|
-
onSubmitForm?: (formValues: any) => void;
|
|
154
|
-
view?: 'dialog' | 'plain';
|
|
155
|
-
triggerButton?: 'none' | React__default.ReactNode;
|
|
156
|
-
triggerButtonProps?: ButtonProps$3;
|
|
157
|
-
triggerButtonLabel?: string;
|
|
158
|
-
confirmButtonLabel?: string;
|
|
159
|
-
actions?: ReactNode;
|
|
160
|
-
dialogProps?: Omit<DialogProps$1, 'open'>;
|
|
161
|
-
}
|
|
162
|
-
declare function FormContainer(props: FormContainerProps): react_jsx_runtime.JSX.Element;
|
|
163
|
-
declare namespace FormContainer {
|
|
164
|
-
var defaultProps: Omit<FormContainerProps, "children">;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
117
|
interface LabelValueProps {
|
|
168
118
|
label: string;
|
|
169
119
|
children: ReactNode | string;
|
|
@@ -174,7 +124,7 @@ interface LabelValueProps {
|
|
|
174
124
|
}
|
|
175
125
|
declare function LabelValue(props: LabelValueProps): react_jsx_runtime.JSX.Element;
|
|
176
126
|
|
|
177
|
-
interface PageTitleProps {
|
|
127
|
+
interface PageTitleProps$1 {
|
|
178
128
|
title: string;
|
|
179
129
|
children?: ReactNode;
|
|
180
130
|
toolbarProps?: ToolbarProps$1;
|
|
@@ -184,33 +134,13 @@ interface PageTitleProps {
|
|
|
184
134
|
onSearch?: (query: string) => void;
|
|
185
135
|
storagePath?: string;
|
|
186
136
|
}
|
|
187
|
-
declare function PageTitle(props: PageTitleProps): react_jsx_runtime.JSX.Element;
|
|
137
|
+
declare function PageTitle$1(props: PageTitleProps$1): react_jsx_runtime.JSX.Element;
|
|
188
138
|
|
|
189
139
|
type SearchTextFieldProps = {
|
|
190
140
|
onSearch: (query: string) => void;
|
|
191
141
|
} & Omit<TextFieldProps, 'onChange'>;
|
|
192
142
|
declare function SearchTextField(props: SearchTextFieldProps): react_jsx_runtime.JSX.Element;
|
|
193
143
|
|
|
194
|
-
type TransporterProps<T, TP = {}> = {
|
|
195
|
-
form?: ComponentType;
|
|
196
|
-
table: ComponentType<TransportableDataTableProps<T>>;
|
|
197
|
-
tableProps?: TP;
|
|
198
|
-
options: Array<T>;
|
|
199
|
-
value?: T | null;
|
|
200
|
-
inputValue?: unknown;
|
|
201
|
-
isLoading?: boolean;
|
|
202
|
-
onSearch: (q: string) => void;
|
|
203
|
-
renderValue: (value: T) => string;
|
|
204
|
-
onChange?: (value: T | null) => void;
|
|
205
|
-
optionKeyName?: string;
|
|
206
|
-
filterOptions?: ((options: T[], state: FilterOptionsState<T>) => T[]) | undefined;
|
|
207
|
-
dialogProps?: Omit<DialogProps$1, 'open'>;
|
|
208
|
-
} & Omit<TextFieldProps, 'onChange'>;
|
|
209
|
-
declare function Transporter<T>(props: TransporterProps<T>): react_jsx_runtime.JSX.Element;
|
|
210
|
-
declare namespace Transporter {
|
|
211
|
-
var defaultProps: Pick<TransporterProps<any, {}>, "dialogProps">;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
144
|
interface TooltipProps extends TooltipProps$2 {
|
|
215
145
|
type: 'warning' | 'info';
|
|
216
146
|
}
|
|
@@ -531,7 +461,7 @@ interface DialogAdicionarButtonProps<T> extends Omit<ButtonProps$3, 'onClick'> {
|
|
|
531
461
|
}
|
|
532
462
|
declare function DialogAdicionarButton<T>(props: DialogAdicionarButtonProps<T>): react_jsx_runtime.JSX.Element;
|
|
533
463
|
|
|
534
|
-
interface DialogConfirmProps<T = any> extends DialogProps
|
|
464
|
+
interface DialogConfirmProps<T = any> extends DialogProps<T, T | false> {
|
|
535
465
|
title?: string;
|
|
536
466
|
message?: string;
|
|
537
467
|
confirmButtonLabel?: string;
|
|
@@ -539,7 +469,7 @@ interface DialogConfirmProps<T = any> extends DialogProps$2<T, T | false> {
|
|
|
539
469
|
}
|
|
540
470
|
declare function DialogConfirm(props: DialogConfirmProps): react_jsx_runtime.JSX.Element;
|
|
541
471
|
|
|
542
|
-
declare function DialogConfirmDelete({ open, onClose, payload, }: DialogProps
|
|
472
|
+
declare function DialogConfirmDelete({ open, onClose, payload, }: DialogProps<{
|
|
543
473
|
useRemover: any;
|
|
544
474
|
configs: any;
|
|
545
475
|
}>): react_jsx_runtime.JSX.Element;
|
|
@@ -562,14 +492,14 @@ interface RootProps extends Omit<DialogProps$1, 'onClose'> {
|
|
|
562
492
|
}
|
|
563
493
|
declare function DialogRoot({ children, height, fullWidth, ...rest }: RootProps): react_jsx_runtime.JSX.Element;
|
|
564
494
|
|
|
565
|
-
declare function Title$
|
|
495
|
+
declare function Title$2(props: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
566
496
|
|
|
567
497
|
declare const Dialog: {
|
|
568
498
|
Root: typeof DialogRoot;
|
|
569
499
|
Provider: typeof DialogProvider;
|
|
570
500
|
AdicionarButton: typeof DialogAdicionarButton;
|
|
571
501
|
Header: typeof DialogHeader;
|
|
572
|
-
Title: typeof Title$
|
|
502
|
+
Title: typeof Title$2;
|
|
573
503
|
ActionClose: typeof DialogActionClose;
|
|
574
504
|
Content: typeof DialogContent;
|
|
575
505
|
Footer: typeof Footer$1;
|
|
@@ -678,18 +608,54 @@ declare const Filter: {
|
|
|
678
608
|
Chip: typeof FiltrerChip;
|
|
679
609
|
};
|
|
680
610
|
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
611
|
+
type GridColDef = GridColDef$1 & {
|
|
612
|
+
enableStickyColumns?: boolean;
|
|
613
|
+
};
|
|
614
|
+
interface TableProps<T> extends Omit<DataGridProps, 'onCellKeyDown' | 'onRowDoubleClick'> {
|
|
615
|
+
data?: GridRowsProp<{
|
|
616
|
+
[key: string | symbol]: any;
|
|
617
|
+
}>;
|
|
618
|
+
columns: GridColDef[];
|
|
619
|
+
error?: string;
|
|
620
|
+
isLoading?: boolean;
|
|
621
|
+
isFetching?: boolean;
|
|
622
|
+
stackProps?: StackProps;
|
|
623
|
+
controlledRowsSelectedId?: GridRowSelectionModel;
|
|
624
|
+
onCellKeyDown?: (event: 'edit' | 'delete', id: number | string) => void;
|
|
625
|
+
onRowDoubleClick?: (event: 'edit' | 'delete', id: number | string) => void;
|
|
626
|
+
onClearRowsSelectedId?: (rowsSelectedId: GridRowSelectionModel) => void;
|
|
627
|
+
onRowSelectionChange?: (rowSelectionModel: GridRowSelectionModel, details: GridCallbackDetails) => void;
|
|
685
628
|
}
|
|
686
|
-
declare function
|
|
629
|
+
declare function Table<T>(props: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
687
630
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
631
|
+
type DataTableActionProps = {} & GridActionsCellItemProps;
|
|
632
|
+
declare function DataTableAction(props: DataTableActionProps): react_jsx_runtime.JSX.Element;
|
|
633
|
+
|
|
634
|
+
type DataTableActionDeleteProps = {} & Omit<GridActionsCellItemProps, 'icon' | 'label'>;
|
|
635
|
+
declare function DataTableActionDelete(props: DataTableActionDeleteProps): react_jsx_runtime.JSX.Element;
|
|
636
|
+
|
|
637
|
+
type DataTableActionEditProps = {} & Omit<GridActionsCellItemProps, 'icon' | 'label'>;
|
|
638
|
+
declare function DataTableActionEdit(props: DataTableActionEditProps): react_jsx_runtime.JSX.Element;
|
|
639
|
+
|
|
640
|
+
interface ActionsProps {
|
|
641
|
+
breakpoints?: Breakpoint | number;
|
|
642
|
+
children: ReactNode;
|
|
691
643
|
}
|
|
692
|
-
declare function
|
|
644
|
+
declare function Actions({ children, breakpoints }: ActionsProps): react_jsx_runtime.JSX.Element;
|
|
645
|
+
|
|
646
|
+
type DataTableActionTransportProps = {} & Omit<GridActionsCellItemProps, 'icon' | 'label'>;
|
|
647
|
+
declare function DataTableActionTransport(props: DataTableActionTransportProps): react_jsx_runtime.JSX.Element;
|
|
648
|
+
|
|
649
|
+
type ButtonProps = {
|
|
650
|
+
isLoading?: boolean;
|
|
651
|
+
} & ButtonProps$3;
|
|
652
|
+
declare function DataTableButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
653
|
+
|
|
654
|
+
type CellActionProps = {
|
|
655
|
+
event?: string;
|
|
656
|
+
onClick?: (event?: string) => void;
|
|
657
|
+
};
|
|
658
|
+
declare function CellAction(props: CellActionProps): react_jsx_runtime.JSX.Element;
|
|
693
659
|
|
|
694
660
|
interface CellActionDeleteProps {
|
|
695
661
|
onClick?: (event: 'delete') => void;
|
|
@@ -698,8 +664,6 @@ interface CellActionDeleteProps {
|
|
|
698
664
|
}
|
|
699
665
|
declare function CellActionDelete({ onClick, ...rest }: CellActionDeleteProps): react_jsx_runtime.JSX.Element;
|
|
700
666
|
|
|
701
|
-
declare function ExportCsvButton(): react_jsx_runtime.JSX.Element;
|
|
702
|
-
|
|
703
667
|
interface CellActionEditProps {
|
|
704
668
|
disabled?: boolean;
|
|
705
669
|
title?: string;
|
|
@@ -713,11 +677,18 @@ interface CellActionsProps {
|
|
|
713
677
|
}
|
|
714
678
|
declare function CellActions(props: CellActionsProps): react_jsx_runtime.JSX.Element;
|
|
715
679
|
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
680
|
+
interface CellActionTransportProps {
|
|
681
|
+
disabled?: boolean;
|
|
682
|
+
title?: string;
|
|
683
|
+
onClick?: (event: 'transport') => void;
|
|
684
|
+
}
|
|
685
|
+
declare function CellActionTransport({ onClick, ...rest }: CellActionTransportProps): react_jsx_runtime.JSX.Element;
|
|
686
|
+
|
|
687
|
+
declare function Content(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
688
|
+
|
|
689
|
+
declare function ExportCsvButton(): react_jsx_runtime.JSX.Element;
|
|
690
|
+
|
|
691
|
+
declare function Footer(props: TableFooterProps): react_jsx_runtime.JSX.Element;
|
|
721
692
|
|
|
722
693
|
interface PaginationProps {
|
|
723
694
|
pagination?: PaginationProps$1;
|
|
@@ -727,53 +698,24 @@ interface PaginationProps {
|
|
|
727
698
|
}
|
|
728
699
|
declare function Pagination(props: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
729
700
|
|
|
730
|
-
|
|
731
|
-
breakpoints?: Breakpoint | number;
|
|
732
|
-
children: ReactNode;
|
|
733
|
-
}
|
|
734
|
-
declare function Actions({ children, breakpoints }: ActionsProps): react_jsx_runtime.JSX.Element;
|
|
735
|
-
|
|
736
|
-
interface ToolbarProps {
|
|
737
|
-
children?: ReactNode;
|
|
738
|
-
}
|
|
739
|
-
declare function Toolbar({ children }: ToolbarProps): react_jsx_runtime.JSX.Element;
|
|
740
|
-
|
|
741
|
-
declare function Content(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
742
|
-
|
|
743
|
-
type ButtonProps = {
|
|
744
|
-
isLoading?: boolean;
|
|
745
|
-
} & ButtonProps$3;
|
|
746
|
-
declare function DataTableButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
747
|
-
|
|
748
|
-
declare function Footer(props: TableFooterProps): react_jsx_runtime.JSX.Element;
|
|
701
|
+
declare function Root({ children, height, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
|
|
749
702
|
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
interface TableProps<T> extends Omit<DataGridProps, 'onCellKeyDown' | 'onRowDoubleClick'> {
|
|
754
|
-
data?: GridRowsProp<{
|
|
755
|
-
[key: string | symbol]: any;
|
|
756
|
-
}>;
|
|
757
|
-
columns: GridColDef[];
|
|
758
|
-
error?: string;
|
|
759
|
-
isLoading?: boolean;
|
|
760
|
-
isFetching?: boolean;
|
|
761
|
-
stackProps?: StackProps;
|
|
762
|
-
controlledRowsSelectedId?: GridRowSelectionModel;
|
|
763
|
-
onCellKeyDown?: (event: 'edit' | 'delete', id: number | string) => void;
|
|
764
|
-
onRowDoubleClick?: (event: 'edit' | 'delete', id: number | string) => void;
|
|
765
|
-
onClearRowsSelectedId?: (rowsSelectedId: GridRowSelectionModel) => void;
|
|
766
|
-
onRowSelectionChange?: (rowSelectionModel: GridRowSelectionModel, details: GridCallbackDetails) => void;
|
|
703
|
+
interface SelectionCounterProps {
|
|
704
|
+
countTitle?: string;
|
|
705
|
+
gender?: 'masculino' | 'feminino';
|
|
767
706
|
}
|
|
768
|
-
declare function
|
|
707
|
+
declare function SelectionCounter(props: SelectionCounterProps): react_jsx_runtime.JSX.Element;
|
|
769
708
|
|
|
770
|
-
interface TitleProps extends TypographyProps {
|
|
709
|
+
interface TitleProps$1 extends TypographyProps {
|
|
771
710
|
titleDivider?: boolean;
|
|
772
711
|
children: string;
|
|
773
712
|
}
|
|
774
|
-
declare function Title({ children, titleDivider, sx, }: TitleProps): react_jsx_runtime.JSX.Element;
|
|
713
|
+
declare function Title$1({ children, titleDivider, sx, }: TitleProps$1): react_jsx_runtime.JSX.Element;
|
|
775
714
|
|
|
776
|
-
|
|
715
|
+
interface ToolbarProps {
|
|
716
|
+
children?: ReactNode;
|
|
717
|
+
}
|
|
718
|
+
declare function Toolbar({ children }: ToolbarProps): react_jsx_runtime.JSX.Element;
|
|
777
719
|
|
|
778
720
|
declare const DataTable: {
|
|
779
721
|
CellActionTransport: typeof CellActionTransport;
|
|
@@ -790,8 +732,12 @@ declare const DataTable: {
|
|
|
790
732
|
Button: typeof DataTableButton;
|
|
791
733
|
Footer: typeof Footer;
|
|
792
734
|
Table: typeof Table;
|
|
793
|
-
Title: typeof Title;
|
|
735
|
+
Title: typeof Title$1;
|
|
794
736
|
Root: typeof Root;
|
|
737
|
+
Action: typeof DataTableAction;
|
|
738
|
+
ActionEdit: typeof DataTableActionEdit;
|
|
739
|
+
ActionDelete: typeof DataTableActionDelete;
|
|
740
|
+
ActionTransport: typeof DataTableActionTransport;
|
|
795
741
|
};
|
|
796
742
|
|
|
797
743
|
interface ListRootProps extends StackProps {
|
|
@@ -893,4 +839,88 @@ interface LucideIconProps extends LucideProps {
|
|
|
893
839
|
}
|
|
894
840
|
declare const LucideIcon: ({ name, size, strokeWidth, color, ...props }: LucideIconProps) => react_jsx_runtime.JSX.Element;
|
|
895
841
|
|
|
896
|
-
|
|
842
|
+
type TitleVariant = 'title1' | 'title2' | 'title3';
|
|
843
|
+
interface TitleProps extends Omit<TypographyProps, 'variant'> {
|
|
844
|
+
children: React__default.ReactNode;
|
|
845
|
+
variant?: TitleVariant;
|
|
846
|
+
}
|
|
847
|
+
declare function Title({ children, variant, sx, ...rest }: TitleProps): react_jsx_runtime.JSX.Element;
|
|
848
|
+
|
|
849
|
+
interface PageContentProps extends BoxProps {
|
|
850
|
+
}
|
|
851
|
+
declare function PageContent(props: PageContentProps): react_jsx_runtime.JSX.Element;
|
|
852
|
+
|
|
853
|
+
interface PageHeaderProps extends StackProps {
|
|
854
|
+
}
|
|
855
|
+
declare function PageHeader(props: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
856
|
+
|
|
857
|
+
declare function Container(props: ContainerProps): react_jsx_runtime.JSX.Element;
|
|
858
|
+
|
|
859
|
+
interface PageTitleProps extends Omit<TitleProps, 'children'> {
|
|
860
|
+
title: string;
|
|
861
|
+
}
|
|
862
|
+
declare function PageTitle({ title, ...props }: PageTitleProps): react_jsx_runtime.JSX.Element;
|
|
863
|
+
|
|
864
|
+
declare const Page: {
|
|
865
|
+
Root: typeof Container;
|
|
866
|
+
Header: typeof PageHeader;
|
|
867
|
+
Title: typeof PageTitle;
|
|
868
|
+
Content: typeof PageContent;
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
interface AutocompleteProps<T = any> {
|
|
872
|
+
onDoubleClick?: () => void;
|
|
873
|
+
onChange?: (value: T | null) => void;
|
|
874
|
+
value?: T | null;
|
|
875
|
+
options: Array<T>;
|
|
876
|
+
renderValue?: (value: T) => string;
|
|
877
|
+
onSearchChange?: (query: string, reason: AutocompleteInputChangeReason) => void;
|
|
878
|
+
label?: string;
|
|
879
|
+
isLoading?: boolean;
|
|
880
|
+
name?: string;
|
|
881
|
+
helperText?: string;
|
|
882
|
+
error?: boolean;
|
|
883
|
+
required?: boolean;
|
|
884
|
+
disabled?: boolean;
|
|
885
|
+
autoFocus?: boolean;
|
|
886
|
+
}
|
|
887
|
+
declare function Autocomplete<T = any>(props: AutocompleteProps<T>): react_jsx_runtime.JSX.Element;
|
|
888
|
+
|
|
889
|
+
interface TransporterContainerProps {
|
|
890
|
+
children: ReactNode;
|
|
891
|
+
title?: string;
|
|
892
|
+
}
|
|
893
|
+
declare function TransporterContainer(props: TransporterContainerProps): react_jsx_runtime.JSX.Element | null;
|
|
894
|
+
|
|
895
|
+
interface TransporterRootProps<T> {
|
|
896
|
+
scope: string;
|
|
897
|
+
value?: T | null;
|
|
898
|
+
onChange?: (value: T) => void;
|
|
899
|
+
children: ReactNode;
|
|
900
|
+
}
|
|
901
|
+
declare function TransporterRoot<T = any>(props: TransporterRootProps<T>): react_jsx_runtime.JSX.Element;
|
|
902
|
+
|
|
903
|
+
type TransporterTextFieldProps = {} & Omit<AutocompleteProps, 'onChange' | 'value'>;
|
|
904
|
+
declare function TransporterTextField(props: TransporterTextFieldProps): react_jsx_runtime.JSX.Element;
|
|
905
|
+
|
|
906
|
+
type TransporterStore<T> = {
|
|
907
|
+
isOpen: boolean;
|
|
908
|
+
query?: string;
|
|
909
|
+
value?: T | null;
|
|
910
|
+
setQuery: (query?: string) => void;
|
|
911
|
+
setValue: (value?: T | null) => void;
|
|
912
|
+
openTransporter: () => void;
|
|
913
|
+
closeTransporter: (value?: T) => Promise<void>;
|
|
914
|
+
onChange?: (value: T) => void;
|
|
915
|
+
setOnChange: (fn?: (value: T) => void) => void;
|
|
916
|
+
triggerOnChange: (value: T) => void;
|
|
917
|
+
};
|
|
918
|
+
declare function useTransporter<T>(id: string): TransporterStore<T>;
|
|
919
|
+
|
|
920
|
+
declare const Transporter: {
|
|
921
|
+
Root: typeof TransporterRoot;
|
|
922
|
+
TextField: typeof TransporterTextField;
|
|
923
|
+
Container: typeof TransporterContainer;
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
export { AlterarLicenca, AlterarLicencaProps, AlterarSenha, AlterarSenhaProps, Autocomplete, AutocompleteProps, Avatar, Breadcrumbs, BreadcrumbsItem, BreadcrumbsProps, Button$1 as Button, ButtonContainer, Button as ButtonGroup, Card, Checkbox, CheckboxProps, ColorsGrid, Content$1 as Content, ContentProps, ContentTitle, CurrencyCellStyle, CurrencyTextField, DataTable, DataTableOptions, DataTableOptionsProps, Dialog, DrawerMenu, DrawerMenuProps, Editable, EditableProps, Filter, FilterApiContext, FilterApiContextProps, FilterContainer$1 as FilterContainer, FilterControl, FilterDataContext, FilterDataContextProps, FilterOptions, FilterProps, FilterProvider, FilterProviderProps, Flag, GridColDef, Header, Icon, LabelValue, LabelValueProps, List$1 as List, LucideIcon as LucidIcon, Menu, MenuItemProps$1 as MenuItemProps, MioAuth, MioAuthProps, OptionStyles, Page, PageTitle$1 as PageTitle, PasswordTextField, List as Popover, Profile, ProfileProps, SearchTextField, Surface, Title, TitleProps, TitleVariant, Tooltip, TooltipProps, Transporter, renderMenuItems, theme, useFilter, useFilterApi, useMenu, useTransporter };
|