@data-c/ui 0.2.27 → 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 CHANGED
@@ -1,8 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as _mui_material from '@mui/material';
3
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';
4
- import * as React$1 from 'react';
5
- import React__default, { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
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';
@@ -27,13 +25,9 @@ declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
27
25
 
28
26
  declare function ColorsGrid(): react_jsx_runtime.JSX.Element;
29
27
 
30
- declare const CurrencyTextField: React$1.ForwardRefExoticComponent<Omit<Omit<_mui_material.OutlinedTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.StandardTextFieldProps, "onChange"> & {
31
- onChange?: ((e: React.ChangeEvent<HTMLInputElement>, value: any) => void) | undefined;
32
- }, "ref"> & React$1.RefAttributes<unknown>>;
33
-
34
28
  interface TooltipProps$1 {
35
29
  type: 'warning' | 'info';
36
- content: NonNullable<React__default.ReactNode>;
30
+ content: NonNullable<React$1.ReactNode>;
37
31
  }
38
32
  interface ExtraOptionsProps {
39
33
  id: string;
@@ -45,7 +39,7 @@ interface ExtraOptionsProps {
45
39
  badge?: number;
46
40
  }
47
41
  interface DataTableOptionsProps<T> {
48
- onClick(event: string, value: T, e?: React__default.MouseEvent<HTMLButtonElement, MouseEvent>): any;
42
+ onClick(event: string, value: T, e?: React$1.MouseEvent<HTMLButtonElement, MouseEvent>): any;
49
43
  value: T;
50
44
  extraOptions?: Array<ExtraOptionsProps>;
51
45
  displayUpdateButton?: boolean;
@@ -80,19 +74,19 @@ declare namespace DataTableOptions {
80
74
  }
81
75
 
82
76
  interface FilterControlProps {
83
- renderLabel?: (filterLabel: string, filterValue: any) => React__default.ReactNode;
77
+ renderLabel?: (filterLabel: string, filterValue: any) => React$1.ReactNode;
84
78
  disableds?: Array<string>;
85
79
  }
86
80
  declare function FilterControl(props: FilterControlProps): react_jsx_runtime.JSX.Element;
87
81
 
88
82
  interface FilterProps {
89
83
  children: ReactNode;
90
- triggerButton?: 'none' | React__default.ReactNode;
84
+ triggerButton?: 'none' | React$1.ReactNode;
91
85
  triggerButtonLabel?: string;
92
86
  triggerButtonProps?: ButtonProps$3;
93
87
  title?: string;
94
88
  onApplyFilters?: (filters: any) => void;
95
- renderLabel?: (filterLabel: string, filterValue: any) => React__default.ReactNode;
89
+ renderLabel?: (filterLabel: string, filterValue: any) => React$1.ReactNode;
96
90
  disableds?: Array<string>;
97
91
  disableFilterControl?: Boolean;
98
92
  drawerProps?: DrawerProps;
@@ -484,7 +478,7 @@ declare function Footer$1(props: StackProps): react_jsx_runtime.JSX.Element;
484
478
  declare function DialogHeader(props: StackProps): react_jsx_runtime.JSX.Element;
485
479
 
486
480
  interface DialogProviderProps {
487
- children: React__default.ReactNode;
481
+ children: React$1.ReactNode;
488
482
  }
489
483
  declare function DialogProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
490
484
 
@@ -514,7 +508,7 @@ declare const Dialog: {
514
508
  };
515
509
 
516
510
  interface FilterAdvancedActionsContainerProps {
517
- children: React__default.ReactNode;
511
+ children: React$1.ReactNode;
518
512
  }
519
513
  declare function FilterAdvancedActionsContainer({ children, }: FilterAdvancedActionsContainerProps): react_jsx_runtime.JSX.Element;
520
514
 
@@ -526,7 +520,7 @@ interface FilterAdvancedContainerProps {
526
520
  declare function FilterAdvancedContainer(props: FilterAdvancedContainerProps): react_jsx_runtime.JSX.Element;
527
521
 
528
522
  interface FilterAdvancedActionsContentProps {
529
- children: React__default.ReactNode;
523
+ children: React$1.ReactNode;
530
524
  }
531
525
  declare function FilterAdvancedActionsContent({ children, }: FilterAdvancedActionsContentProps): react_jsx_runtime.JSX.Element;
532
526
 
@@ -557,20 +551,20 @@ interface FilterDataContextProps<T = any> {
557
551
  container?: HTMLElement;
558
552
  searchId?: string;
559
553
  }
560
- declare const FilterDataContext: React__default.Context<FilterDataContextProps<any>>;
554
+ declare const FilterDataContext: React$1.Context<FilterDataContextProps<any>>;
561
555
  interface FilterApiContextProps<T = any> {
562
556
  setContainer: (container: HTMLElement) => void;
563
- openFilter: (event: React__default.MouseEvent<HTMLElement>) => void;
557
+ openFilter: (event: React$1.MouseEvent<HTMLElement>) => void;
564
558
  closeFilter: () => void;
565
559
  toggleFilter: () => void;
566
- onChangeFilterValue?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
560
+ onChangeFilterValue?: (e: React$1.ChangeEvent<HTMLInputElement>) => void;
567
561
  changeFilterValue: (name: string, value: any) => void;
568
562
  changeFilterValues: (filterValues: T) => void;
569
563
  applyFilterValues: () => void;
570
564
  deleteFilterValue?: (filterName: string) => void;
571
565
  deleteAllFilterValues?: () => void;
572
566
  }
573
- declare const FilterApiContext: React__default.Context<FilterApiContextProps<any>>;
567
+ declare const FilterApiContext: React$1.Context<FilterApiContextProps<any>>;
574
568
  interface FilterOptions<T> {
575
569
  label?: string;
576
570
  value?: T;
@@ -805,7 +799,7 @@ interface ButtonGroupRootProps {
805
799
  value?: string | number;
806
800
  isLoading?: boolean;
807
801
  disableMemory?: boolean;
808
- children: React__default.ReactElement<ButtonGroupButtonProps> | React__default.ReactElement<ButtonGroupButtonProps>[];
802
+ children: React$1.ReactElement<ButtonGroupButtonProps> | React$1.ReactElement<ButtonGroupButtonProps>[];
809
803
  }
810
804
  declare function ButtonGroupRoot(props: ButtonGroupRootProps): react_jsx_runtime.JSX.Element;
811
805
 
@@ -815,12 +809,12 @@ declare const Button: {
815
809
  };
816
810
 
817
811
  interface CardRootProps extends BoxProps {
818
- children: React__default.ReactNode;
812
+ children: React$1.ReactNode;
819
813
  }
820
814
  declare function CardRoot(props: CardRootProps): react_jsx_runtime.JSX.Element;
821
815
 
822
816
  interface CardHeaderProps {
823
- children: React__default.ReactNode;
817
+ children: React$1.ReactNode;
824
818
  }
825
819
  declare function CardHeader(props: CardHeaderProps): react_jsx_runtime.JSX.Element;
826
820
 
@@ -851,7 +845,7 @@ declare const LucideIcon: ({ name, size, strokeWidth, color, ...props }: LucideI
851
845
 
852
846
  type TitleVariant = 'title1' | 'title2' | 'title3';
853
847
  interface TitleProps extends Omit<TypographyProps, 'variant'> {
854
- children: React__default.ReactNode;
848
+ children: React$1.ReactNode;
855
849
  variant?: TitleVariant;
856
850
  }
857
851
  declare function Title({ children, variant, sx, ...rest }: TitleProps): react_jsx_runtime.JSX.Element;
@@ -958,21 +952,21 @@ declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element
958
952
  type TipoDocumento = 'cpf' | 'cnpj' | 'auto';
959
953
  type DocumentoTextFieldProps = TextFieldProps & {
960
954
  value?: string;
961
- onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
955
+ onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
962
956
  tipoDocumento?: TipoDocumento;
963
957
  };
964
958
  declare function DocumentoTextField(props: DocumentoTextFieldProps): react_jsx_runtime.JSX.Element;
965
959
 
966
960
  type CEPTextFieldProps = TextFieldProps & {
967
961
  value?: string;
968
- onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
962
+ onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
969
963
  };
970
964
  declare function CEPTextField(props: CEPTextFieldProps): react_jsx_runtime.JSX.Element;
971
965
 
972
966
  type TipoTelefone = 'fixed' | 'mobile' | 'auto';
973
967
  type TelefoneTextFieldProps = TextFieldProps & {
974
968
  value?: string;
975
- onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
969
+ onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
976
970
  tipoTelefone?: TipoTelefone;
977
971
  allowDDI?: boolean;
978
972
  };
@@ -1043,4 +1037,4 @@ declare namespace DateRangePicker {
1043
1037
  };
1044
1038
  }
1045
1039
 
1046
- 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, CurrencyTextField, 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 };
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 };