@data-c/ui 0.2.3 → 0.2.8
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 +109 -64
- package/dist/index.js +156 -8
- package/dist/index.js.map +1 -1
- package/package.json +26 -17
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, DialogProps as DialogProps$1, IconButtonProps, DrawerProps, TypographyProps, ToolbarProps as ToolbarProps$1, TextFieldProps, FilterOptionsState, TooltipProps as TooltipProps$2, BoxProps, PaperProps, SvgIconProps, IconProps, ChipProps, InputBaseProps, Breakpoint, TableFooterProps, MenuItemProps as MenuItemProps$2, PopoverProps } from '@mui/material';
|
|
3
|
+
import { ButtonProps as ButtonProps$3, StackProps, CheckboxProps as CheckboxProps$1, DialogProps as DialogProps$1, IconButtonProps, DrawerProps, TypographyProps, ToolbarProps as ToolbarProps$1, TextFieldProps, FilterOptionsState, TooltipProps as TooltipProps$2, BoxProps, PaperProps, SvgIconProps, IconProps, ChipProps, InputBaseProps, Breakpoint, TableFooterProps, MenuItemProps as MenuItemProps$2, PopoverProps, ContainerProps } from '@mui/material';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { ReactNode, ComponentType, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
6
6
|
import { TransportableDataTableProps, CredentialsConfigsInterface, AmbienteDataInterface, Empresa, PaginationProps as PaginationProps$1 } from '@data-c/hooks';
|
|
@@ -8,7 +8,7 @@ import * as _mui_material_styles from '@mui/material/styles';
|
|
|
8
8
|
import { AvatarProps } from '@mui/material/Avatar';
|
|
9
9
|
import { DialogComponent, DialogProps as DialogProps$2 } 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
|
|
|
@@ -174,7 +174,7 @@ interface LabelValueProps {
|
|
|
174
174
|
}
|
|
175
175
|
declare function LabelValue(props: LabelValueProps): react_jsx_runtime.JSX.Element;
|
|
176
176
|
|
|
177
|
-
interface PageTitleProps {
|
|
177
|
+
interface PageTitleProps$1 {
|
|
178
178
|
title: string;
|
|
179
179
|
children?: ReactNode;
|
|
180
180
|
toolbarProps?: ToolbarProps$1;
|
|
@@ -184,7 +184,7 @@ interface PageTitleProps {
|
|
|
184
184
|
onSearch?: (query: string) => void;
|
|
185
185
|
storagePath?: string;
|
|
186
186
|
}
|
|
187
|
-
declare function PageTitle(props: PageTitleProps): react_jsx_runtime.JSX.Element;
|
|
187
|
+
declare function PageTitle$1(props: PageTitleProps$1): react_jsx_runtime.JSX.Element;
|
|
188
188
|
|
|
189
189
|
type SearchTextFieldProps = {
|
|
190
190
|
onSearch: (query: string) => void;
|
|
@@ -562,14 +562,14 @@ interface RootProps extends Omit<DialogProps$1, 'onClose'> {
|
|
|
562
562
|
}
|
|
563
563
|
declare function DialogRoot({ children, height, fullWidth, ...rest }: RootProps): react_jsx_runtime.JSX.Element;
|
|
564
564
|
|
|
565
|
-
declare function Title$
|
|
565
|
+
declare function Title$2(props: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
566
566
|
|
|
567
567
|
declare const Dialog: {
|
|
568
568
|
Root: typeof DialogRoot;
|
|
569
569
|
Provider: typeof DialogProvider;
|
|
570
570
|
AdicionarButton: typeof DialogAdicionarButton;
|
|
571
571
|
Header: typeof DialogHeader;
|
|
572
|
-
Title: typeof Title$
|
|
572
|
+
Title: typeof Title$2;
|
|
573
573
|
ActionClose: typeof DialogActionClose;
|
|
574
574
|
Content: typeof DialogContent;
|
|
575
575
|
Footer: typeof Footer$1;
|
|
@@ -678,18 +678,54 @@ declare const Filter: {
|
|
|
678
678
|
Chip: typeof FiltrerChip;
|
|
679
679
|
};
|
|
680
680
|
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
681
|
+
type GridColDef = GridColDef$1 & {
|
|
682
|
+
enableStickyColumns?: boolean;
|
|
683
|
+
};
|
|
684
|
+
interface TableProps<T> extends Omit<DataGridProps, 'onCellKeyDown' | 'onRowDoubleClick'> {
|
|
685
|
+
data?: GridRowsProp<{
|
|
686
|
+
[key: string | symbol]: any;
|
|
687
|
+
}>;
|
|
688
|
+
columns: GridColDef[];
|
|
689
|
+
error?: string;
|
|
690
|
+
isLoading?: boolean;
|
|
691
|
+
isFetching?: boolean;
|
|
692
|
+
stackProps?: StackProps;
|
|
693
|
+
controlledRowsSelectedId?: GridRowSelectionModel;
|
|
694
|
+
onCellKeyDown?: (event: 'edit' | 'delete', id: number | string) => void;
|
|
695
|
+
onRowDoubleClick?: (event: 'edit' | 'delete', id: number | string) => void;
|
|
696
|
+
onClearRowsSelectedId?: (rowsSelectedId: GridRowSelectionModel) => void;
|
|
697
|
+
onRowSelectionChange?: (rowSelectionModel: GridRowSelectionModel, details: GridCallbackDetails) => void;
|
|
685
698
|
}
|
|
686
|
-
declare function
|
|
699
|
+
declare function Table<T>(props: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
687
700
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
701
|
+
type DataTableActionProps = {} & GridActionsCellItemProps;
|
|
702
|
+
declare function DataTableAction(props: DataTableActionProps): react_jsx_runtime.JSX.Element;
|
|
703
|
+
|
|
704
|
+
type DataTableActionDeleteProps = {} & Omit<GridActionsCellItemProps, 'icon' | 'label'>;
|
|
705
|
+
declare function DataTableActionDelete(props: DataTableActionDeleteProps): react_jsx_runtime.JSX.Element;
|
|
706
|
+
|
|
707
|
+
type DataTableActionEditProps = {} & Omit<GridActionsCellItemProps, 'icon' | 'label'>;
|
|
708
|
+
declare function DataTableActionEdit(props: DataTableActionEditProps): react_jsx_runtime.JSX.Element;
|
|
709
|
+
|
|
710
|
+
interface ActionsProps {
|
|
711
|
+
breakpoints?: Breakpoint | number;
|
|
712
|
+
children: ReactNode;
|
|
691
713
|
}
|
|
692
|
-
declare function
|
|
714
|
+
declare function Actions({ children, breakpoints }: ActionsProps): react_jsx_runtime.JSX.Element;
|
|
715
|
+
|
|
716
|
+
type DataTableActionTransportProps = {} & Omit<GridActionsCellItemProps, 'icon' | 'label'>;
|
|
717
|
+
declare function DataTableActionTransport(props: DataTableActionTransportProps): react_jsx_runtime.JSX.Element;
|
|
718
|
+
|
|
719
|
+
type ButtonProps = {
|
|
720
|
+
isLoading?: boolean;
|
|
721
|
+
} & ButtonProps$3;
|
|
722
|
+
declare function DataTableButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
723
|
+
|
|
724
|
+
type CellActionProps = {
|
|
725
|
+
event?: string;
|
|
726
|
+
onClick?: (event?: string) => void;
|
|
727
|
+
};
|
|
728
|
+
declare function CellAction(props: CellActionProps): react_jsx_runtime.JSX.Element;
|
|
693
729
|
|
|
694
730
|
interface CellActionDeleteProps {
|
|
695
731
|
onClick?: (event: 'delete') => void;
|
|
@@ -698,8 +734,6 @@ interface CellActionDeleteProps {
|
|
|
698
734
|
}
|
|
699
735
|
declare function CellActionDelete({ onClick, ...rest }: CellActionDeleteProps): react_jsx_runtime.JSX.Element;
|
|
700
736
|
|
|
701
|
-
declare function ExportCsvButton(): react_jsx_runtime.JSX.Element;
|
|
702
|
-
|
|
703
737
|
interface CellActionEditProps {
|
|
704
738
|
disabled?: boolean;
|
|
705
739
|
title?: string;
|
|
@@ -713,11 +747,18 @@ interface CellActionsProps {
|
|
|
713
747
|
}
|
|
714
748
|
declare function CellActions(props: CellActionsProps): react_jsx_runtime.JSX.Element;
|
|
715
749
|
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
750
|
+
interface CellActionTransportProps {
|
|
751
|
+
disabled?: boolean;
|
|
752
|
+
title?: string;
|
|
753
|
+
onClick?: (event: 'transport') => void;
|
|
754
|
+
}
|
|
755
|
+
declare function CellActionTransport({ onClick, ...rest }: CellActionTransportProps): react_jsx_runtime.JSX.Element;
|
|
756
|
+
|
|
757
|
+
declare function Content(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
758
|
+
|
|
759
|
+
declare function ExportCsvButton(): react_jsx_runtime.JSX.Element;
|
|
760
|
+
|
|
761
|
+
declare function Footer(props: TableFooterProps): react_jsx_runtime.JSX.Element;
|
|
721
762
|
|
|
722
763
|
interface PaginationProps {
|
|
723
764
|
pagination?: PaginationProps$1;
|
|
@@ -727,53 +768,24 @@ interface PaginationProps {
|
|
|
727
768
|
}
|
|
728
769
|
declare function Pagination(props: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
729
770
|
|
|
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;
|
|
771
|
+
declare function Root({ children, height, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
|
|
749
772
|
|
|
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;
|
|
773
|
+
interface SelectionCounterProps {
|
|
774
|
+
countTitle?: string;
|
|
775
|
+
gender?: 'masculino' | 'feminino';
|
|
767
776
|
}
|
|
768
|
-
declare function
|
|
777
|
+
declare function SelectionCounter(props: SelectionCounterProps): react_jsx_runtime.JSX.Element;
|
|
769
778
|
|
|
770
|
-
interface TitleProps extends TypographyProps {
|
|
779
|
+
interface TitleProps$1 extends TypographyProps {
|
|
771
780
|
titleDivider?: boolean;
|
|
772
781
|
children: string;
|
|
773
782
|
}
|
|
774
|
-
declare function Title({ children, titleDivider, sx, }: TitleProps): react_jsx_runtime.JSX.Element;
|
|
783
|
+
declare function Title$1({ children, titleDivider, sx, }: TitleProps$1): react_jsx_runtime.JSX.Element;
|
|
775
784
|
|
|
776
|
-
|
|
785
|
+
interface ToolbarProps {
|
|
786
|
+
children?: ReactNode;
|
|
787
|
+
}
|
|
788
|
+
declare function Toolbar({ children }: ToolbarProps): react_jsx_runtime.JSX.Element;
|
|
777
789
|
|
|
778
790
|
declare const DataTable: {
|
|
779
791
|
CellActionTransport: typeof CellActionTransport;
|
|
@@ -790,8 +802,12 @@ declare const DataTable: {
|
|
|
790
802
|
Button: typeof DataTableButton;
|
|
791
803
|
Footer: typeof Footer;
|
|
792
804
|
Table: typeof Table;
|
|
793
|
-
Title: typeof Title;
|
|
805
|
+
Title: typeof Title$1;
|
|
794
806
|
Root: typeof Root;
|
|
807
|
+
Action: typeof DataTableAction;
|
|
808
|
+
ActionEdit: typeof DataTableActionEdit;
|
|
809
|
+
ActionDelete: typeof DataTableActionDelete;
|
|
810
|
+
ActionTransport: typeof DataTableActionTransport;
|
|
795
811
|
};
|
|
796
812
|
|
|
797
813
|
interface ListRootProps extends StackProps {
|
|
@@ -893,4 +909,33 @@ interface LucideIconProps extends LucideProps {
|
|
|
893
909
|
}
|
|
894
910
|
declare const LucideIcon: ({ name, size, strokeWidth, color, ...props }: LucideIconProps) => react_jsx_runtime.JSX.Element;
|
|
895
911
|
|
|
896
|
-
|
|
912
|
+
type TitleVariant = 'title1' | 'title2' | 'title3';
|
|
913
|
+
interface TitleProps extends Omit<TypographyProps, 'variant'> {
|
|
914
|
+
children: React__default.ReactNode;
|
|
915
|
+
variant?: TitleVariant;
|
|
916
|
+
}
|
|
917
|
+
declare function Title({ children, variant, sx, ...rest }: TitleProps): react_jsx_runtime.JSX.Element;
|
|
918
|
+
|
|
919
|
+
interface PageContentProps extends BoxProps {
|
|
920
|
+
}
|
|
921
|
+
declare function PageContent(props: PageContentProps): react_jsx_runtime.JSX.Element;
|
|
922
|
+
|
|
923
|
+
interface PageHeaderProps extends StackProps {
|
|
924
|
+
}
|
|
925
|
+
declare function PageHeader(props: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
926
|
+
|
|
927
|
+
declare function Container(props: ContainerProps): react_jsx_runtime.JSX.Element;
|
|
928
|
+
|
|
929
|
+
interface PageTitleProps extends Omit<TitleProps, 'children'> {
|
|
930
|
+
title: string;
|
|
931
|
+
}
|
|
932
|
+
declare function PageTitle({ title, ...props }: PageTitleProps): react_jsx_runtime.JSX.Element;
|
|
933
|
+
|
|
934
|
+
declare const Page: {
|
|
935
|
+
Root: typeof Container;
|
|
936
|
+
Header: typeof PageHeader;
|
|
937
|
+
Title: typeof PageTitle;
|
|
938
|
+
Content: typeof PageContent;
|
|
939
|
+
};
|
|
940
|
+
|
|
941
|
+
export { AlterarLicenca, AlterarLicencaProps, AlterarSenha, AlterarSenhaProps, 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, DeleteContainer, DeleteContainerProps, Dialog$1 as Dialog, DialogProps, Dialog as DialogV2, DrawerMenu, DrawerMenuProps, Editable, EditableProps, Filter, FilterApiContext, FilterApiContextProps, FilterContainer$1 as FilterContainer, FilterControl, FilterDataContext, FilterDataContextProps, FilterOptions, FilterProps, FilterProvider, FilterProviderProps, Flag, FormContainer, FormContainerProps, 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, TransporterProps, renderMenuItems, theme, useFilter, useFilterApi, useMenu };
|