@data-c/ui 0.0.65-alpha.0 → 0.0.66-alpha.0
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 +14 -3
- package/dist/index.js +6 -33
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, TextFieldProps, DialogProps as DialogProps$1, IconButtonProps, TypographyProps, TooltipProps as TooltipProps$2 } from '@mui/material';
|
|
2
|
-
import React$1, { ReactNode } from 'react';
|
|
2
|
+
import React$1, { ReactNode, ComponentType } from 'react';
|
|
3
3
|
import { MUIDataTableProps } from 'mui-datatables';
|
|
4
|
-
import { PaginationProps } from '@data-c/hooks';
|
|
4
|
+
import { PaginationProps, TransportableDataTableProps, HttpRequestInterface, PlainQueryProps, HttpResponseInterface } from '@data-c/hooks';
|
|
5
5
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
6
6
|
|
|
7
7
|
interface ButtonProps extends ButtonProps$1 {
|
|
@@ -165,6 +165,17 @@ type SearchTextFieldProps = {
|
|
|
165
165
|
} & Omit<TextFieldProps, 'onChange'>;
|
|
166
166
|
declare function SearchTextField(props: SearchTextFieldProps): JSX.Element;
|
|
167
167
|
|
|
168
|
+
type TransporterProps<T> = {
|
|
169
|
+
form?: ComponentType;
|
|
170
|
+
table: ComponentType<TransportableDataTableProps<T>>;
|
|
171
|
+
inputValue?: unknown;
|
|
172
|
+
onSearch: (p: HttpRequestInterface<PlainQueryProps>) => Promise<HttpResponseInterface<T>>;
|
|
173
|
+
renderValue: (value: T) => string;
|
|
174
|
+
value?: T | null;
|
|
175
|
+
onChange?: (value: T | null) => void;
|
|
176
|
+
} & Omit<TextFieldProps, 'onChange'>;
|
|
177
|
+
declare function Transporter<T>(props: TransporterProps<T>): JSX.Element;
|
|
178
|
+
|
|
168
179
|
interface TooltipProps extends TooltipProps$2 {
|
|
169
180
|
type: 'warning' | 'info';
|
|
170
181
|
}
|
|
@@ -182,4 +193,4 @@ declare module '@mui/material/styles' {
|
|
|
182
193
|
}
|
|
183
194
|
declare const theme: _mui_material_styles.Theme;
|
|
184
195
|
|
|
185
|
-
export { Button, ButtonContainer, ButtonContainerProps, Checkbox, CheckboxProps, ColorsGrid, CurrencyCellStyle, CurrencyTextField, DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DeleteContainer, DeleteContainerProps, Dialog, DialogProps, FilterContainer, FilterControl, FilterProps, Flag, FormContainer, FormContainerProps, LabelValue, LabelValueProps, OptionStyles, PageTitle, SearchTextField, Tooltip, TooltipProps, theme };
|
|
196
|
+
export { Button, ButtonContainer, ButtonContainerProps, Checkbox, CheckboxProps, ColorsGrid, CurrencyCellStyle, CurrencyTextField, DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DeleteContainer, DeleteContainerProps, Dialog, DialogProps, FilterContainer, FilterControl, FilterProps, Flag, FormContainer, FormContainerProps, LabelValue, LabelValueProps, OptionStyles, PageTitle, SearchTextField, Tooltip, TooltipProps, Transporter, theme };
|