@data-c/ui 0.0.114-alpha.0 → 0.0.115-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 +21 -20
- package/dist/index.js +64 -53
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { ButtonProps as ButtonProps$1, StackProps, CheckboxProps as CheckboxProps$1, TextFieldProps, DialogProps as DialogProps$1, IconButtonProps, TypographyProps, FilterOptionsState, TooltipProps as TooltipProps$2 } from '@mui/material';
|
|
2
3
|
import React$1, { ReactNode, ComponentType } from 'react';
|
|
3
4
|
import { MUIDataTableProps } from 'mui-datatables';
|
|
@@ -7,20 +8,20 @@ import * as _mui_material_styles from '@mui/material/styles';
|
|
|
7
8
|
interface ButtonProps extends ButtonProps$1 {
|
|
8
9
|
isLoading?: boolean;
|
|
9
10
|
}
|
|
10
|
-
declare const Button: (props: ButtonProps) => JSX.Element;
|
|
11
|
+
declare const Button: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
|
-
declare function ButtonContainer(props: StackProps): JSX.Element;
|
|
13
|
+
declare function ButtonContainer(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
13
14
|
|
|
14
15
|
interface CheckboxProps extends CheckboxProps$1 {
|
|
15
16
|
label: string;
|
|
16
17
|
}
|
|
17
|
-
declare function Checkbox(props: CheckboxProps): JSX.Element;
|
|
18
|
+
declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
18
19
|
|
|
19
|
-
declare function ColorsGrid(): JSX.Element;
|
|
20
|
+
declare function ColorsGrid(): react_jsx_runtime.JSX.Element;
|
|
20
21
|
|
|
21
22
|
declare function CurrencyTextField(props: Omit<TextFieldProps, 'onChange'> & {
|
|
22
23
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>, value: any) => void;
|
|
23
|
-
}): JSX.Element;
|
|
24
|
+
}): react_jsx_runtime.JSX.Element;
|
|
24
25
|
declare namespace CurrencyTextField {
|
|
25
26
|
var defaultProps: {
|
|
26
27
|
value: number;
|
|
@@ -32,7 +33,7 @@ interface DialogProps extends DialogProps$1 {
|
|
|
32
33
|
type?: 'content' | 'info' | 'warning' | 'error' | 'success';
|
|
33
34
|
onConfirm?: () => void;
|
|
34
35
|
}
|
|
35
|
-
declare function Dialog(props: DialogProps): JSX.Element;
|
|
36
|
+
declare function Dialog(props: DialogProps): react_jsx_runtime.JSX.Element;
|
|
36
37
|
declare namespace Dialog {
|
|
37
38
|
var defaultProps: {
|
|
38
39
|
fullWidth: boolean;
|
|
@@ -46,7 +47,7 @@ interface DeleteContainerProps extends DialogProps {
|
|
|
46
47
|
onDelete?: (formValues: any) => void;
|
|
47
48
|
type?: 'warning' | 'error';
|
|
48
49
|
}
|
|
49
|
-
declare function DeleteContainer(props: DeleteContainerProps): JSX.Element;
|
|
50
|
+
declare function DeleteContainer(props: DeleteContainerProps): react_jsx_runtime.JSX.Element;
|
|
50
51
|
declare namespace DeleteContainer {
|
|
51
52
|
var defaultProps: DialogProps;
|
|
52
53
|
}
|
|
@@ -61,7 +62,7 @@ interface DataTableProps extends Omit<MUIDataTableProps, 'title'> {
|
|
|
61
62
|
changePageSize?: (pageSize: number) => void;
|
|
62
63
|
changeSort?: (column: string, direction: string) => void;
|
|
63
64
|
}
|
|
64
|
-
declare const DataTable: (props: DataTableProps) => JSX.Element;
|
|
65
|
+
declare const DataTable: (props: DataTableProps) => react_jsx_runtime.JSX.Element;
|
|
65
66
|
|
|
66
67
|
interface TooltipProps$1 {
|
|
67
68
|
type: 'warning' | 'info';
|
|
@@ -100,7 +101,7 @@ declare const CurrencyCellStyle: () => {
|
|
|
100
101
|
textAlign: string;
|
|
101
102
|
};
|
|
102
103
|
};
|
|
103
|
-
declare function DataTableOptions<T extends unknown>(props: DataTableOptionsProps<T>): JSX.Element;
|
|
104
|
+
declare function DataTableOptions<T extends unknown>(props: DataTableOptionsProps<T>): react_jsx_runtime.JSX.Element;
|
|
104
105
|
declare namespace DataTableOptions {
|
|
105
106
|
var defaultProps: {
|
|
106
107
|
displayUpdateButton: boolean;
|
|
@@ -113,7 +114,7 @@ declare namespace DataTableOptions {
|
|
|
113
114
|
interface FilterControlProps {
|
|
114
115
|
renderLabel?: (filterLabel: string, filterValue: any) => React$1.ReactNode;
|
|
115
116
|
}
|
|
116
|
-
declare function FilterControl(props: FilterControlProps): JSX.Element;
|
|
117
|
+
declare function FilterControl(props: FilterControlProps): react_jsx_runtime.JSX.Element;
|
|
117
118
|
|
|
118
119
|
interface FilterProps {
|
|
119
120
|
children: ReactNode;
|
|
@@ -124,13 +125,13 @@ interface FilterProps {
|
|
|
124
125
|
onApplyFilters?: (filters: any) => void;
|
|
125
126
|
renderLabel?: (filterLabel: string, filterValue: any) => React$1.ReactNode;
|
|
126
127
|
}
|
|
127
|
-
declare function FilterContainer(props: FilterProps): JSX.Element;
|
|
128
|
+
declare function FilterContainer(props: FilterProps): react_jsx_runtime.JSX.Element;
|
|
128
129
|
declare namespace FilterContainer {
|
|
129
130
|
var defaultProps: {
|
|
130
131
|
triggerButtonLabel: string;
|
|
131
132
|
triggerButtonProps: {
|
|
132
133
|
variant: string;
|
|
133
|
-
startIcon: JSX.Element;
|
|
134
|
+
startIcon: react_jsx_runtime.JSX.Element;
|
|
134
135
|
};
|
|
135
136
|
title: string;
|
|
136
137
|
};
|
|
@@ -140,7 +141,7 @@ interface Flag {
|
|
|
140
141
|
isFlagged: boolean;
|
|
141
142
|
type: 'success' | 'error' | 'warning' | 'info' | 'primary' | 'secondary';
|
|
142
143
|
}
|
|
143
|
-
declare function Flag(props: Flag): JSX.Element | null;
|
|
144
|
+
declare function Flag(props: Flag): react_jsx_runtime.JSX.Element | null;
|
|
144
145
|
|
|
145
146
|
interface FormContainerProps {
|
|
146
147
|
children: ReactNode;
|
|
@@ -152,7 +153,7 @@ interface FormContainerProps {
|
|
|
152
153
|
actions?: ReactNode;
|
|
153
154
|
dialogProps?: Omit<DialogProps$1, 'open'>;
|
|
154
155
|
}
|
|
155
|
-
declare function FormContainer(props: FormContainerProps): JSX.Element;
|
|
156
|
+
declare function FormContainer(props: FormContainerProps): react_jsx_runtime.JSX.Element;
|
|
156
157
|
declare namespace FormContainer {
|
|
157
158
|
var defaultProps: Omit<FormContainerProps, "children">;
|
|
158
159
|
}
|
|
@@ -165,7 +166,7 @@ interface LabelValueProps {
|
|
|
165
166
|
isNumber?: boolean;
|
|
166
167
|
showDivider?: boolean;
|
|
167
168
|
}
|
|
168
|
-
declare function LabelValue(props: LabelValueProps): JSX.Element;
|
|
169
|
+
declare function LabelValue(props: LabelValueProps): react_jsx_runtime.JSX.Element;
|
|
169
170
|
|
|
170
171
|
interface PageTitleProps {
|
|
171
172
|
title: string;
|
|
@@ -173,12 +174,12 @@ interface PageTitleProps {
|
|
|
173
174
|
onBack?: () => void;
|
|
174
175
|
onClose?: () => void;
|
|
175
176
|
}
|
|
176
|
-
declare function PageTitle(props: PageTitleProps): JSX.Element;
|
|
177
|
+
declare function PageTitle(props: PageTitleProps): react_jsx_runtime.JSX.Element;
|
|
177
178
|
|
|
178
179
|
type SearchTextFieldProps = {
|
|
179
180
|
onSearch: (query: string) => void;
|
|
180
181
|
} & Omit<TextFieldProps, 'onChange'>;
|
|
181
|
-
declare function SearchTextField(props: SearchTextFieldProps): JSX.Element;
|
|
182
|
+
declare function SearchTextField(props: SearchTextFieldProps): react_jsx_runtime.JSX.Element;
|
|
182
183
|
|
|
183
184
|
type TransporterProps<T, TP = {}> = {
|
|
184
185
|
form?: ComponentType;
|
|
@@ -195,7 +196,7 @@ type TransporterProps<T, TP = {}> = {
|
|
|
195
196
|
filterOptions?: ((options: T[], state: FilterOptionsState<T>) => T[]) | undefined;
|
|
196
197
|
dialogProps?: Omit<DialogProps$1, 'open'>;
|
|
197
198
|
} & Omit<TextFieldProps, 'onChange'>;
|
|
198
|
-
declare function Transporter<T>(props: TransporterProps<T>): JSX.Element;
|
|
199
|
+
declare function Transporter<T>(props: TransporterProps<T>): react_jsx_runtime.JSX.Element;
|
|
199
200
|
declare namespace Transporter {
|
|
200
201
|
var defaultProps: Pick<TransporterProps<any, {}>, "dialogProps">;
|
|
201
202
|
}
|
|
@@ -204,7 +205,7 @@ interface TooltipProps extends TooltipProps$2 {
|
|
|
204
205
|
type: 'warning' | 'info';
|
|
205
206
|
}
|
|
206
207
|
declare const Tooltip: {
|
|
207
|
-
(props: TooltipProps): JSX.Element;
|
|
208
|
+
(props: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
208
209
|
defaultProps: {
|
|
209
210
|
type: string;
|
|
210
211
|
};
|
|
@@ -216,7 +217,7 @@ interface MioAuthProps {
|
|
|
216
217
|
onLoginFailed: (err: any) => void;
|
|
217
218
|
appName: string;
|
|
218
219
|
}
|
|
219
|
-
declare function MioAuth(props: MioAuthProps): JSX.Element;
|
|
220
|
+
declare function MioAuth(props: MioAuthProps): react_jsx_runtime.JSX.Element;
|
|
220
221
|
|
|
221
222
|
declare module '@mui/material/styles' {
|
|
222
223
|
interface Components {
|