@data-c/ui 0.2.25 → 0.2.27

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,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, IconButtonProps, DrawerProps, TypographyProps, ToolbarProps as ToolbarProps$1, TextFieldProps, 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 { 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
4
  import * as React$1 from 'react';
5
5
  import React__default, { ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
6
6
  import { CredentialsConfigsInterface, AmbienteDataInterface, Empresa, PaginationProps as PaginationProps$1 } from '@data-c/hooks';
@@ -11,7 +11,6 @@ export { useDialogs } from '@toolpad/core';
11
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
- import { TextFieldProps as TextFieldProps$1 } from '@mui/material/TextField';
15
14
  import { DatePickerProps } from '@mui/x-date-pickers';
16
15
 
17
16
  interface ButtonProps$2 extends ButtonProps$3 {
@@ -140,7 +139,7 @@ declare function PageTitle$1(props: PageTitleProps$1): react_jsx_runtime.JSX.Ele
140
139
 
141
140
  type SearchTextFieldProps = {
142
141
  onSearch: (query: string) => void;
143
- } & Omit<TextFieldProps, 'onChange'>;
142
+ } & Omit<TextFieldProps$1, 'onChange'>;
144
143
  declare function SearchTextField(props: SearchTextFieldProps): react_jsx_runtime.JSX.Element;
145
144
 
146
145
  interface TooltipProps extends TooltipProps$2 {
@@ -200,14 +199,14 @@ interface DrawerMenuProps extends DrawerProps {
200
199
  }
201
200
  declare function DrawerMenu(props: DrawerMenuProps): react_jsx_runtime.JSX.Element;
202
201
 
203
- declare function PasswordTextField(props: TextFieldProps): react_jsx_runtime.JSX.Element;
202
+ declare function PasswordTextField(props: TextFieldProps$1): react_jsx_runtime.JSX.Element;
204
203
 
205
204
  interface EditableProps {
206
205
  onChange: (value?: string) => void;
207
206
  onEscape?: (oldValue?: string, newValue?: string) => void;
208
207
  value?: string;
209
208
  typographyProps?: TypographyProps;
210
- textFieldProps?: TextFieldProps;
209
+ textFieldProps?: TextFieldProps$1;
211
210
  displayEditButton?: boolean;
212
211
  displaySaveButton?: boolean;
213
212
  isEditing?: boolean;
@@ -940,7 +939,7 @@ interface TransporterValue {
940
939
  }
941
940
  interface TransporterBaseProps<T = TransporterValue, D = T> {
942
941
  value?: T | null;
943
- onChange: (value: T, details: D) => void;
942
+ onChange: (value: T, details?: D) => void;
944
943
  name?: string;
945
944
  label?: string;
946
945
  error?: boolean;
@@ -951,22 +950,27 @@ interface TransporterBaseProps<T = TransporterValue, D = T> {
951
950
  scope?: string;
952
951
  }
953
952
 
953
+ type TextFieldProps = {
954
+ readonly?: boolean;
955
+ } & TextFieldProps$1;
956
+ declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element;
957
+
954
958
  type TipoDocumento = 'cpf' | 'cnpj' | 'auto';
955
- type DocumentoTextFieldProps = TextFieldProps$1 & {
959
+ type DocumentoTextFieldProps = TextFieldProps & {
956
960
  value?: string;
957
961
  onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
958
962
  tipoDocumento?: TipoDocumento;
959
963
  };
960
964
  declare function DocumentoTextField(props: DocumentoTextFieldProps): react_jsx_runtime.JSX.Element;
961
965
 
962
- type CEPTextFieldProps = TextFieldProps$1 & {
966
+ type CEPTextFieldProps = TextFieldProps & {
963
967
  value?: string;
964
968
  onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
965
969
  };
966
970
  declare function CEPTextField(props: CEPTextFieldProps): react_jsx_runtime.JSX.Element;
967
971
 
968
972
  type TipoTelefone = 'fixed' | 'mobile' | 'auto';
969
- type TelefoneTextFieldProps = TextFieldProps$1 & {
973
+ type TelefoneTextFieldProps = TextFieldProps & {
970
974
  value?: string;
971
975
  onChange?: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
972
976
  tipoTelefone?: TipoTelefone;
@@ -1039,4 +1043,4 @@ declare namespace DateRangePicker {
1039
1043
  };
1040
1044
  }
1041
1045
 
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, 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, TipoDocumento, TipoTelefone, Title, TitleProps, TitleVariant, Tooltip, TooltipProps, TransportableDataTableProps, Transporter, TransporterBaseProps, TransporterValue, VersaoProps, renderMenuItems, theme, useFilter, useFilterApi, useMenu, useTransporter };
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 };