@data-c/ui 0.2.28 → 0.2.30

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,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
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';
3
+ import * as React$1 from 'react';
4
+ import React__default, { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
4
5
  import { CredentialsConfigsInterface, AmbienteDataInterface, Empresa, PaginationProps as PaginationProps$1 } from '@data-c/hooks';
5
6
  import * as _mui_material_styles from '@mui/material/styles';
6
7
  import { AvatarProps } from '@mui/material/Avatar';
@@ -27,7 +28,7 @@ declare function ColorsGrid(): react_jsx_runtime.JSX.Element;
27
28
 
28
29
  interface TooltipProps$1 {
29
30
  type: 'warning' | 'info';
30
- content: NonNullable<React$1.ReactNode>;
31
+ content: NonNullable<React__default.ReactNode>;
31
32
  }
32
33
  interface ExtraOptionsProps {
33
34
  id: string;
@@ -39,7 +40,7 @@ interface ExtraOptionsProps {
39
40
  badge?: number;
40
41
  }
41
42
  interface DataTableOptionsProps<T> {
42
- onClick(event: string, value: T, e?: React$1.MouseEvent<HTMLButtonElement, MouseEvent>): any;
43
+ onClick(event: string, value: T, e?: React__default.MouseEvent<HTMLButtonElement, MouseEvent>): any;
43
44
  value: T;
44
45
  extraOptions?: Array<ExtraOptionsProps>;
45
46
  displayUpdateButton?: boolean;
@@ -74,19 +75,19 @@ declare namespace DataTableOptions {
74
75
  }
75
76
 
76
77
  interface FilterControlProps {
77
- renderLabel?: (filterLabel: string, filterValue: any) => React$1.ReactNode;
78
+ renderLabel?: (filterLabel: string, filterValue: any) => React__default.ReactNode;
78
79
  disableds?: Array<string>;
79
80
  }
80
81
  declare function FilterControl(props: FilterControlProps): react_jsx_runtime.JSX.Element;
81
82
 
82
83
  interface FilterProps {
83
84
  children: ReactNode;
84
- triggerButton?: 'none' | React$1.ReactNode;
85
+ triggerButton?: 'none' | React__default.ReactNode;
85
86
  triggerButtonLabel?: string;
86
87
  triggerButtonProps?: ButtonProps$3;
87
88
  title?: string;
88
89
  onApplyFilters?: (filters: any) => void;
89
- renderLabel?: (filterLabel: string, filterValue: any) => React$1.ReactNode;
90
+ renderLabel?: (filterLabel: string, filterValue: any) => React__default.ReactNode;
90
91
  disableds?: Array<string>;
91
92
  disableFilterControl?: Boolean;
92
93
  drawerProps?: DrawerProps;
@@ -478,7 +479,7 @@ declare function Footer$1(props: StackProps): react_jsx_runtime.JSX.Element;
478
479
  declare function DialogHeader(props: StackProps): react_jsx_runtime.JSX.Element;
479
480
 
480
481
  interface DialogProviderProps {
481
- children: React$1.ReactNode;
482
+ children: React__default.ReactNode;
482
483
  }
483
484
  declare function DialogProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
484
485
 
@@ -508,7 +509,7 @@ declare const Dialog: {
508
509
  };
509
510
 
510
511
  interface FilterAdvancedActionsContainerProps {
511
- children: React$1.ReactNode;
512
+ children: React__default.ReactNode;
512
513
  }
513
514
  declare function FilterAdvancedActionsContainer({ children, }: FilterAdvancedActionsContainerProps): react_jsx_runtime.JSX.Element;
514
515
 
@@ -520,7 +521,7 @@ interface FilterAdvancedContainerProps {
520
521
  declare function FilterAdvancedContainer(props: FilterAdvancedContainerProps): react_jsx_runtime.JSX.Element;
521
522
 
522
523
  interface FilterAdvancedActionsContentProps {
523
- children: React$1.ReactNode;
524
+ children: React__default.ReactNode;
524
525
  }
525
526
  declare function FilterAdvancedActionsContent({ children, }: FilterAdvancedActionsContentProps): react_jsx_runtime.JSX.Element;
526
527
 
@@ -551,20 +552,20 @@ interface FilterDataContextProps<T = any> {
551
552
  container?: HTMLElement;
552
553
  searchId?: string;
553
554
  }
554
- declare const FilterDataContext: React$1.Context<FilterDataContextProps<any>>;
555
+ declare const FilterDataContext: React__default.Context<FilterDataContextProps<any>>;
555
556
  interface FilterApiContextProps<T = any> {
556
557
  setContainer: (container: HTMLElement) => void;
557
- openFilter: (event: React$1.MouseEvent<HTMLElement>) => void;
558
+ openFilter: (event: React__default.MouseEvent<HTMLElement>) => void;
558
559
  closeFilter: () => void;
559
560
  toggleFilter: () => void;
560
- onChangeFilterValue?: (e: React$1.ChangeEvent<HTMLInputElement>) => void;
561
+ onChangeFilterValue?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
561
562
  changeFilterValue: (name: string, value: any) => void;
562
563
  changeFilterValues: (filterValues: T) => void;
563
564
  applyFilterValues: () => void;
564
565
  deleteFilterValue?: (filterName: string) => void;
565
566
  deleteAllFilterValues?: () => void;
566
567
  }
567
- declare const FilterApiContext: React$1.Context<FilterApiContextProps<any>>;
568
+ declare const FilterApiContext: React__default.Context<FilterApiContextProps<any>>;
568
569
  interface FilterOptions<T> {
569
570
  label?: string;
570
571
  value?: T;
@@ -799,7 +800,7 @@ interface ButtonGroupRootProps {
799
800
  value?: string | number;
800
801
  isLoading?: boolean;
801
802
  disableMemory?: boolean;
802
- children: React$1.ReactElement<ButtonGroupButtonProps> | React$1.ReactElement<ButtonGroupButtonProps>[];
803
+ children: React__default.ReactElement<ButtonGroupButtonProps> | React__default.ReactElement<ButtonGroupButtonProps>[];
803
804
  }
804
805
  declare function ButtonGroupRoot(props: ButtonGroupRootProps): react_jsx_runtime.JSX.Element;
805
806
 
@@ -809,12 +810,12 @@ declare const Button: {
809
810
  };
810
811
 
811
812
  interface CardRootProps extends BoxProps {
812
- children: React$1.ReactNode;
813
+ children: React__default.ReactNode;
813
814
  }
814
815
  declare function CardRoot(props: CardRootProps): react_jsx_runtime.JSX.Element;
815
816
 
816
817
  interface CardHeaderProps {
817
- children: React$1.ReactNode;
818
+ children: React__default.ReactNode;
818
819
  }
819
820
  declare function CardHeader(props: CardHeaderProps): react_jsx_runtime.JSX.Element;
820
821
 
@@ -845,7 +846,7 @@ declare const LucideIcon: ({ name, size, strokeWidth, color, ...props }: LucideI
845
846
 
846
847
  type TitleVariant = 'title1' | 'title2' | 'title3';
847
848
  interface TitleProps extends Omit<TypographyProps, 'variant'> {
848
- children: React$1.ReactNode;
849
+ children: React__default.ReactNode;
849
850
  variant?: TitleVariant;
850
851
  }
851
852
  declare function Title({ children, variant, sx, ...rest }: TitleProps): react_jsx_runtime.JSX.Element;
@@ -887,6 +888,7 @@ interface AutocompleteProps<T = any> {
887
888
  required?: boolean;
888
889
  disabled?: boolean;
889
890
  autoFocus?: boolean;
891
+ readonly?: boolean;
890
892
  }
891
893
  declare function Autocomplete<T = any>(props: AutocompleteProps<T>): react_jsx_runtime.JSX.Element;
892
894
 
@@ -952,21 +954,21 @@ declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element
952
954
  type TipoDocumento = 'cpf' | 'cnpj' | 'auto';
953
955
  type DocumentoTextFieldProps = TextFieldProps & {
954
956
  value?: string;
955
- onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
957
+ onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
956
958
  tipoDocumento?: TipoDocumento;
957
959
  };
958
960
  declare function DocumentoTextField(props: DocumentoTextFieldProps): react_jsx_runtime.JSX.Element;
959
961
 
960
962
  type CEPTextFieldProps = TextFieldProps & {
961
963
  value?: string;
962
- onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
964
+ onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
963
965
  };
964
966
  declare function CEPTextField(props: CEPTextFieldProps): react_jsx_runtime.JSX.Element;
965
967
 
966
968
  type TipoTelefone = 'fixed' | 'mobile' | 'auto';
967
969
  type TelefoneTextFieldProps = TextFieldProps & {
968
970
  value?: string;
969
- onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
971
+ onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
970
972
  tipoTelefone?: TipoTelefone;
971
973
  allowDDI?: boolean;
972
974
  };
@@ -1037,4 +1039,8 @@ declare namespace DateRangePicker {
1037
1039
  };
1038
1040
  }
1039
1041
 
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 };
1042
+ declare const CurrencyTextField: React$1.ForwardRefExoticComponent<Omit<Omit<TextFieldProps, "onChange"> & {
1043
+ onChange?: ((e: React.ChangeEvent<HTMLInputElement>, value: any) => void) | undefined;
1044
+ }, "ref"> & React$1.RefAttributes<unknown>>;
1045
+
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 };