@data-c/ui 0.2.26 → 0.2.28
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 +33 -35
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import * as React$1 from 'react';
|
|
5
|
-
import React__default, { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
import { ButtonProps as ButtonProps$3, StackProps, CheckboxProps as CheckboxProps$1, IconButtonProps, DrawerProps, TypographyProps, ToolbarProps as ToolbarProps$1, TextFieldProps as TextFieldProps$1, TooltipProps as TooltipProps$2, BoxProps, PaperProps, SvgIconProps, IconProps, ListProps, DialogProps as DialogProps$1, ChipProps, InputBaseProps, Breakpoint, TableFooterProps, MenuItemProps as MenuItemProps$2, PopoverProps, ContainerProps, AutocompleteInputChangeReason } from '@mui/material';
|
|
3
|
+
import React$1, { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
6
4
|
import { CredentialsConfigsInterface, AmbienteDataInterface, Empresa, PaginationProps as PaginationProps$1 } from '@data-c/hooks';
|
|
7
5
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
8
6
|
import { AvatarProps } from '@mui/material/Avatar';
|
|
@@ -11,7 +9,6 @@ export { useDialogs } from '@toolpad/core';
|
|
|
11
9
|
import { GridColDef as GridColDef$1, DataGridProps, GridRowsProp, GridRowSelectionModel, GridCallbackDetails, GridActionsCellItemProps } from '@mui/x-data-grid';
|
|
12
10
|
import * as LucideIcons from 'lucide-react';
|
|
13
11
|
import { LucideProps } from 'lucide-react';
|
|
14
|
-
import { TextFieldProps as TextFieldProps$1 } from '@mui/material/TextField';
|
|
15
12
|
import { DatePickerProps } from '@mui/x-date-pickers';
|
|
16
13
|
|
|
17
14
|
interface ButtonProps$2 extends ButtonProps$3 {
|
|
@@ -28,13 +25,9 @@ declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
|
28
25
|
|
|
29
26
|
declare function ColorsGrid(): react_jsx_runtime.JSX.Element;
|
|
30
27
|
|
|
31
|
-
declare const CurrencyTextField: React$1.ForwardRefExoticComponent<Omit<Omit<_mui_material.OutlinedTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.StandardTextFieldProps, "onChange"> & {
|
|
32
|
-
onChange?: ((e: React.ChangeEvent<HTMLInputElement>, value: any) => void) | undefined;
|
|
33
|
-
}, "ref"> & React$1.RefAttributes<unknown>>;
|
|
34
|
-
|
|
35
28
|
interface TooltipProps$1 {
|
|
36
29
|
type: 'warning' | 'info';
|
|
37
|
-
content: NonNullable<
|
|
30
|
+
content: NonNullable<React$1.ReactNode>;
|
|
38
31
|
}
|
|
39
32
|
interface ExtraOptionsProps {
|
|
40
33
|
id: string;
|
|
@@ -46,7 +39,7 @@ interface ExtraOptionsProps {
|
|
|
46
39
|
badge?: number;
|
|
47
40
|
}
|
|
48
41
|
interface DataTableOptionsProps<T> {
|
|
49
|
-
onClick(event: string, value: T, e?:
|
|
42
|
+
onClick(event: string, value: T, e?: React$1.MouseEvent<HTMLButtonElement, MouseEvent>): any;
|
|
50
43
|
value: T;
|
|
51
44
|
extraOptions?: Array<ExtraOptionsProps>;
|
|
52
45
|
displayUpdateButton?: boolean;
|
|
@@ -81,19 +74,19 @@ declare namespace DataTableOptions {
|
|
|
81
74
|
}
|
|
82
75
|
|
|
83
76
|
interface FilterControlProps {
|
|
84
|
-
renderLabel?: (filterLabel: string, filterValue: any) =>
|
|
77
|
+
renderLabel?: (filterLabel: string, filterValue: any) => React$1.ReactNode;
|
|
85
78
|
disableds?: Array<string>;
|
|
86
79
|
}
|
|
87
80
|
declare function FilterControl(props: FilterControlProps): react_jsx_runtime.JSX.Element;
|
|
88
81
|
|
|
89
82
|
interface FilterProps {
|
|
90
83
|
children: ReactNode;
|
|
91
|
-
triggerButton?: 'none' |
|
|
84
|
+
triggerButton?: 'none' | React$1.ReactNode;
|
|
92
85
|
triggerButtonLabel?: string;
|
|
93
86
|
triggerButtonProps?: ButtonProps$3;
|
|
94
87
|
title?: string;
|
|
95
88
|
onApplyFilters?: (filters: any) => void;
|
|
96
|
-
renderLabel?: (filterLabel: string, filterValue: any) =>
|
|
89
|
+
renderLabel?: (filterLabel: string, filterValue: any) => React$1.ReactNode;
|
|
97
90
|
disableds?: Array<string>;
|
|
98
91
|
disableFilterControl?: Boolean;
|
|
99
92
|
drawerProps?: DrawerProps;
|
|
@@ -140,7 +133,7 @@ declare function PageTitle$1(props: PageTitleProps$1): react_jsx_runtime.JSX.Ele
|
|
|
140
133
|
|
|
141
134
|
type SearchTextFieldProps = {
|
|
142
135
|
onSearch: (query: string) => void;
|
|
143
|
-
} & Omit<TextFieldProps, 'onChange'>;
|
|
136
|
+
} & Omit<TextFieldProps$1, 'onChange'>;
|
|
144
137
|
declare function SearchTextField(props: SearchTextFieldProps): react_jsx_runtime.JSX.Element;
|
|
145
138
|
|
|
146
139
|
interface TooltipProps extends TooltipProps$2 {
|
|
@@ -200,14 +193,14 @@ interface DrawerMenuProps extends DrawerProps {
|
|
|
200
193
|
}
|
|
201
194
|
declare function DrawerMenu(props: DrawerMenuProps): react_jsx_runtime.JSX.Element;
|
|
202
195
|
|
|
203
|
-
declare function PasswordTextField(props: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
196
|
+
declare function PasswordTextField(props: TextFieldProps$1): react_jsx_runtime.JSX.Element;
|
|
204
197
|
|
|
205
198
|
interface EditableProps {
|
|
206
199
|
onChange: (value?: string) => void;
|
|
207
200
|
onEscape?: (oldValue?: string, newValue?: string) => void;
|
|
208
201
|
value?: string;
|
|
209
202
|
typographyProps?: TypographyProps;
|
|
210
|
-
textFieldProps?: TextFieldProps;
|
|
203
|
+
textFieldProps?: TextFieldProps$1;
|
|
211
204
|
displayEditButton?: boolean;
|
|
212
205
|
displaySaveButton?: boolean;
|
|
213
206
|
isEditing?: boolean;
|
|
@@ -485,7 +478,7 @@ declare function Footer$1(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
|
485
478
|
declare function DialogHeader(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
486
479
|
|
|
487
480
|
interface DialogProviderProps {
|
|
488
|
-
children:
|
|
481
|
+
children: React$1.ReactNode;
|
|
489
482
|
}
|
|
490
483
|
declare function DialogProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
|
|
491
484
|
|
|
@@ -515,7 +508,7 @@ declare const Dialog: {
|
|
|
515
508
|
};
|
|
516
509
|
|
|
517
510
|
interface FilterAdvancedActionsContainerProps {
|
|
518
|
-
children:
|
|
511
|
+
children: React$1.ReactNode;
|
|
519
512
|
}
|
|
520
513
|
declare function FilterAdvancedActionsContainer({ children, }: FilterAdvancedActionsContainerProps): react_jsx_runtime.JSX.Element;
|
|
521
514
|
|
|
@@ -527,7 +520,7 @@ interface FilterAdvancedContainerProps {
|
|
|
527
520
|
declare function FilterAdvancedContainer(props: FilterAdvancedContainerProps): react_jsx_runtime.JSX.Element;
|
|
528
521
|
|
|
529
522
|
interface FilterAdvancedActionsContentProps {
|
|
530
|
-
children:
|
|
523
|
+
children: React$1.ReactNode;
|
|
531
524
|
}
|
|
532
525
|
declare function FilterAdvancedActionsContent({ children, }: FilterAdvancedActionsContentProps): react_jsx_runtime.JSX.Element;
|
|
533
526
|
|
|
@@ -558,20 +551,20 @@ interface FilterDataContextProps<T = any> {
|
|
|
558
551
|
container?: HTMLElement;
|
|
559
552
|
searchId?: string;
|
|
560
553
|
}
|
|
561
|
-
declare const FilterDataContext:
|
|
554
|
+
declare const FilterDataContext: React$1.Context<FilterDataContextProps<any>>;
|
|
562
555
|
interface FilterApiContextProps<T = any> {
|
|
563
556
|
setContainer: (container: HTMLElement) => void;
|
|
564
|
-
openFilter: (event:
|
|
557
|
+
openFilter: (event: React$1.MouseEvent<HTMLElement>) => void;
|
|
565
558
|
closeFilter: () => void;
|
|
566
559
|
toggleFilter: () => void;
|
|
567
|
-
onChangeFilterValue?: (e:
|
|
560
|
+
onChangeFilterValue?: (e: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
568
561
|
changeFilterValue: (name: string, value: any) => void;
|
|
569
562
|
changeFilterValues: (filterValues: T) => void;
|
|
570
563
|
applyFilterValues: () => void;
|
|
571
564
|
deleteFilterValue?: (filterName: string) => void;
|
|
572
565
|
deleteAllFilterValues?: () => void;
|
|
573
566
|
}
|
|
574
|
-
declare const FilterApiContext:
|
|
567
|
+
declare const FilterApiContext: React$1.Context<FilterApiContextProps<any>>;
|
|
575
568
|
interface FilterOptions<T> {
|
|
576
569
|
label?: string;
|
|
577
570
|
value?: T;
|
|
@@ -806,7 +799,7 @@ interface ButtonGroupRootProps {
|
|
|
806
799
|
value?: string | number;
|
|
807
800
|
isLoading?: boolean;
|
|
808
801
|
disableMemory?: boolean;
|
|
809
|
-
children:
|
|
802
|
+
children: React$1.ReactElement<ButtonGroupButtonProps> | React$1.ReactElement<ButtonGroupButtonProps>[];
|
|
810
803
|
}
|
|
811
804
|
declare function ButtonGroupRoot(props: ButtonGroupRootProps): react_jsx_runtime.JSX.Element;
|
|
812
805
|
|
|
@@ -816,12 +809,12 @@ declare const Button: {
|
|
|
816
809
|
};
|
|
817
810
|
|
|
818
811
|
interface CardRootProps extends BoxProps {
|
|
819
|
-
children:
|
|
812
|
+
children: React$1.ReactNode;
|
|
820
813
|
}
|
|
821
814
|
declare function CardRoot(props: CardRootProps): react_jsx_runtime.JSX.Element;
|
|
822
815
|
|
|
823
816
|
interface CardHeaderProps {
|
|
824
|
-
children:
|
|
817
|
+
children: React$1.ReactNode;
|
|
825
818
|
}
|
|
826
819
|
declare function CardHeader(props: CardHeaderProps): react_jsx_runtime.JSX.Element;
|
|
827
820
|
|
|
@@ -852,7 +845,7 @@ declare const LucideIcon: ({ name, size, strokeWidth, color, ...props }: LucideI
|
|
|
852
845
|
|
|
853
846
|
type TitleVariant = 'title1' | 'title2' | 'title3';
|
|
854
847
|
interface TitleProps extends Omit<TypographyProps, 'variant'> {
|
|
855
|
-
children:
|
|
848
|
+
children: React$1.ReactNode;
|
|
856
849
|
variant?: TitleVariant;
|
|
857
850
|
}
|
|
858
851
|
declare function Title({ children, variant, sx, ...rest }: TitleProps): react_jsx_runtime.JSX.Element;
|
|
@@ -951,24 +944,29 @@ interface TransporterBaseProps<T = TransporterValue, D = T> {
|
|
|
951
944
|
scope?: string;
|
|
952
945
|
}
|
|
953
946
|
|
|
947
|
+
type TextFieldProps = {
|
|
948
|
+
readonly?: boolean;
|
|
949
|
+
} & TextFieldProps$1;
|
|
950
|
+
declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
951
|
+
|
|
954
952
|
type TipoDocumento = 'cpf' | 'cnpj' | 'auto';
|
|
955
|
-
type DocumentoTextFieldProps = TextFieldProps
|
|
953
|
+
type DocumentoTextFieldProps = TextFieldProps & {
|
|
956
954
|
value?: string;
|
|
957
|
-
onChange?: (event:
|
|
955
|
+
onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
958
956
|
tipoDocumento?: TipoDocumento;
|
|
959
957
|
};
|
|
960
958
|
declare function DocumentoTextField(props: DocumentoTextFieldProps): react_jsx_runtime.JSX.Element;
|
|
961
959
|
|
|
962
|
-
type CEPTextFieldProps = TextFieldProps
|
|
960
|
+
type CEPTextFieldProps = TextFieldProps & {
|
|
963
961
|
value?: string;
|
|
964
|
-
onChange?: (event:
|
|
962
|
+
onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
965
963
|
};
|
|
966
964
|
declare function CEPTextField(props: CEPTextFieldProps): react_jsx_runtime.JSX.Element;
|
|
967
965
|
|
|
968
966
|
type TipoTelefone = 'fixed' | 'mobile' | 'auto';
|
|
969
|
-
type TelefoneTextFieldProps = TextFieldProps
|
|
967
|
+
type TelefoneTextFieldProps = TextFieldProps & {
|
|
970
968
|
value?: string;
|
|
971
|
-
onChange?: (event:
|
|
969
|
+
onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
972
970
|
tipoTelefone?: TipoTelefone;
|
|
973
971
|
allowDDI?: boolean;
|
|
974
972
|
};
|
|
@@ -1039,4 +1037,4 @@ declare namespace DateRangePicker {
|
|
|
1039
1037
|
};
|
|
1040
1038
|
}
|
|
1041
1039
|
|
|
1042
|
-
export { AlterarLicenca, AlterarLicencaProps, AlterarSenha, AlterarSenhaProps, Article, Autocomplete, AutocompleteProps, Avatar, Breadcrumbs, BreadcrumbsItem, BreadcrumbsProps, Button$1 as Button, ButtonContainer, Button as ButtonGroup, CEPTextField, CEPTextFieldProps, Card, Checkbox, CheckboxProps, ColorsGrid, Content$1 as Content, ContentProps, ContentTitle, CurrencyCellStyle,
|
|
1040
|
+
export { AlterarLicenca, AlterarLicencaProps, AlterarSenha, AlterarSenhaProps, Article, Autocomplete, AutocompleteProps, Avatar, Breadcrumbs, BreadcrumbsItem, BreadcrumbsProps, Button$1 as Button, ButtonContainer, Button as ButtonGroup, CEPTextField, CEPTextFieldProps, Card, Checkbox, CheckboxProps, ColorsGrid, Content$1 as Content, ContentProps, ContentTitle, CurrencyCellStyle, DataTable, DataTableOptions, DataTableOptionsProps, DatePicker, DatePickerProvider, DateRange, DateRangePicker, Dialog, DocumentoTextField, DocumentoTextFieldProps, 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, NotaVersao, OptionStyles, Page, PageTitle$1 as PageTitle, PasswordTextField, List as Popover, Profile, ProfileProps, SearchTextField, Surface, TelefoneTextField, TelefoneTextFieldProps, TextField, TextFieldProps, TipoDocumento, TipoTelefone, Title, TitleProps, TitleVariant, Tooltip, TooltipProps, TransportableDataTableProps, Transporter, TransporterBaseProps, TransporterValue, VersaoProps, renderMenuItems, theme, useFilter, useFilterApi, useMenu, useTransporter };
|