@data-c/ui 0.1.6 → 0.1.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 CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ButtonProps as ButtonProps$1, StackProps, CheckboxProps as CheckboxProps$1, TextFieldProps, DialogProps as DialogProps$1, IconButtonProps, DrawerProps, TypographyProps, ToolbarProps, FilterOptionsState, TooltipProps as TooltipProps$2, BoxProps, PaperProps } from '@mui/material';
3
- import React$1, { ReactNode, ComponentType } from 'react';
2
+ import * as _mui_material from '@mui/material';
3
+ import { ButtonProps as ButtonProps$1, StackProps, CheckboxProps as CheckboxProps$1, DialogProps as DialogProps$1, IconButtonProps, DrawerProps, TypographyProps, ToolbarProps, TextFieldProps, FilterOptionsState, TooltipProps as TooltipProps$2, BoxProps, PaperProps } from '@mui/material';
4
+ import * as React$1 from 'react';
5
+ import React__default, { ReactNode, ComponentType } from 'react';
4
6
  import { MUIDataTableProps } from 'mui-datatables';
5
7
  import { PaginationProps, TransportableDataTableProps, CredentialsConfigsInterface, AmbienteDataInterface } from '@data-c/hooks';
6
8
  import * as _mui_material_styles from '@mui/material/styles';
@@ -19,14 +21,9 @@ declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
19
21
 
20
22
  declare function ColorsGrid(): react_jsx_runtime.JSX.Element;
21
23
 
22
- declare function CurrencyTextField(props: Omit<TextFieldProps, 'onChange'> & {
23
- onChange?: (e: React.ChangeEvent<HTMLInputElement>, value: any) => void;
24
- }): react_jsx_runtime.JSX.Element;
25
- declare namespace CurrencyTextField {
26
- var defaultProps: {
27
- value: number;
28
- };
29
- }
24
+ declare const CurrencyTextField: React$1.ForwardRefExoticComponent<Omit<Omit<_mui_material.OutlinedTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.StandardTextFieldProps, "onChange"> & {
25
+ onChange?: ((e: React.ChangeEvent<HTMLInputElement>, value: any) => void) | undefined;
26
+ }, "ref"> & React$1.RefAttributes<unknown>>;
30
27
 
31
28
  interface DialogActionsProps {
32
29
  cancelLabel?: string;
@@ -77,7 +74,7 @@ declare const DataTable: (props: DataTableProps) => react_jsx_runtime.JSX.Elemen
77
74
 
78
75
  interface TooltipProps$1 {
79
76
  type: 'warning' | 'info';
80
- content: NonNullable<React$1.ReactNode>;
77
+ content: NonNullable<React__default.ReactNode>;
81
78
  }
82
79
  interface ExtraOptionsProps {
83
80
  id: string;
@@ -89,7 +86,7 @@ interface ExtraOptionsProps {
89
86
  badge?: number;
90
87
  }
91
88
  interface DataTableOptionsProps<T> {
92
- onClick(event: string, value: T, e?: React$1.MouseEvent<HTMLButtonElement, MouseEvent>): any;
89
+ onClick(event: string, value: T, e?: React__default.MouseEvent<HTMLButtonElement, MouseEvent>): any;
93
90
  value: T;
94
91
  extraOptions?: Array<ExtraOptionsProps>;
95
92
  displayUpdateButton?: boolean;
@@ -124,19 +121,19 @@ declare namespace DataTableOptions {
124
121
  }
125
122
 
126
123
  interface FilterControlProps {
127
- renderLabel?: (filterLabel: string, filterValue: any) => React$1.ReactNode;
124
+ renderLabel?: (filterLabel: string, filterValue: any) => React__default.ReactNode;
128
125
  disableds?: Array<string>;
129
126
  }
130
127
  declare function FilterControl(props: FilterControlProps): react_jsx_runtime.JSX.Element;
131
128
 
132
129
  interface FilterProps {
133
130
  children: ReactNode;
134
- triggerButton?: 'none' | React$1.ReactNode;
131
+ triggerButton?: 'none' | React__default.ReactNode;
135
132
  triggerButtonLabel?: string;
136
133
  triggerButtonProps?: ButtonProps$1;
137
134
  title?: string;
138
135
  onApplyFilters?: (filters: any) => void;
139
- renderLabel?: (filterLabel: string, filterValue: any) => React$1.ReactNode;
136
+ renderLabel?: (filterLabel: string, filterValue: any) => React__default.ReactNode;
140
137
  disableds?: Array<string>;
141
138
  disableFilterControl?: Boolean;
142
139
  drawerProps?: DrawerProps;
@@ -163,7 +160,7 @@ interface FormContainerProps {
163
160
  children: ReactNode;
164
161
  onSubmitForm?: (formValues: any) => void;
165
162
  view?: 'dialog' | 'plain';
166
- triggerButton?: 'none' | React$1.ReactNode;
163
+ triggerButton?: 'none' | React__default.ReactNode;
167
164
  triggerButtonProps?: ButtonProps$1;
168
165
  triggerButtonLabel?: string;
169
166
  confirmButtonLabel?: string;