@data-c/ui 0.1.24 → 0.1.29
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 +79 -9
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/package.json +8 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
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
|
+
import { ButtonProps as ButtonProps$2, 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
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { ReactNode, ComponentType } from 'react';
|
|
6
6
|
import { MUIDataTableProps } from 'mui-datatables';
|
|
7
7
|
import { PaginationProps, TransportableDataTableProps, CredentialsConfigsInterface, AmbienteDataInterface } from '@data-c/hooks';
|
|
8
8
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
9
|
+
import { DialogComponent, DialogProps as DialogProps$2 } from '@toolpad/core/useDialogs';
|
|
10
|
+
import { AvatarProps } from '@mui/material/Avatar';
|
|
9
11
|
|
|
10
|
-
interface ButtonProps extends ButtonProps$
|
|
12
|
+
interface ButtonProps$1 extends ButtonProps$2 {
|
|
11
13
|
isLoading?: boolean;
|
|
12
14
|
}
|
|
13
|
-
declare const Button: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare const Button: (props: ButtonProps$1) => react_jsx_runtime.JSX.Element;
|
|
14
16
|
|
|
15
17
|
declare function ButtonContainer(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
16
18
|
|
|
@@ -40,8 +42,8 @@ interface DialogProps extends DialogProps$1 {
|
|
|
40
42
|
onConfirm?: () => void;
|
|
41
43
|
dialogActionsProps?: DialogActionsProps;
|
|
42
44
|
}
|
|
43
|
-
declare function Dialog(props: DialogProps): react_jsx_runtime.JSX.Element;
|
|
44
|
-
declare namespace Dialog {
|
|
45
|
+
declare function Dialog$1(props: DialogProps): react_jsx_runtime.JSX.Element;
|
|
46
|
+
declare namespace Dialog$1 {
|
|
45
47
|
var defaultProps: {
|
|
46
48
|
fullWidth: boolean;
|
|
47
49
|
type: string;
|
|
@@ -130,7 +132,7 @@ interface FilterProps {
|
|
|
130
132
|
children: ReactNode;
|
|
131
133
|
triggerButton?: 'none' | React__default.ReactNode;
|
|
132
134
|
triggerButtonLabel?: string;
|
|
133
|
-
triggerButtonProps?: ButtonProps$
|
|
135
|
+
triggerButtonProps?: ButtonProps$2;
|
|
134
136
|
title?: string;
|
|
135
137
|
onApplyFilters?: (filters: any) => void;
|
|
136
138
|
renderLabel?: (filterLabel: string, filterValue: any) => React__default.ReactNode;
|
|
@@ -161,7 +163,7 @@ interface FormContainerProps {
|
|
|
161
163
|
onSubmitForm?: (formValues: any) => void;
|
|
162
164
|
view?: 'dialog' | 'plain';
|
|
163
165
|
triggerButton?: 'none' | React__default.ReactNode;
|
|
164
|
-
triggerButtonProps?: ButtonProps$
|
|
166
|
+
triggerButtonProps?: ButtonProps$2;
|
|
165
167
|
triggerButtonLabel?: string;
|
|
166
168
|
confirmButtonLabel?: string;
|
|
167
169
|
actions?: ReactNode;
|
|
@@ -245,7 +247,7 @@ interface AlterarSenhaProps {
|
|
|
245
247
|
email?: string;
|
|
246
248
|
senhaAtual?: string;
|
|
247
249
|
isOpen: boolean;
|
|
248
|
-
onClose: () => void
|
|
250
|
+
onClose: () => Promise<void>;
|
|
249
251
|
onSuccess?: () => void;
|
|
250
252
|
onFailed?: (err: any) => void;
|
|
251
253
|
}
|
|
@@ -292,4 +294,72 @@ declare function Surface(props: PaperProps): react_jsx_runtime.JSX.Element;
|
|
|
292
294
|
|
|
293
295
|
declare const theme: _mui_material_styles.Theme;
|
|
294
296
|
|
|
295
|
-
|
|
297
|
+
interface RootProps extends Omit<DialogProps$1, 'onClose'> {
|
|
298
|
+
height?: number | string;
|
|
299
|
+
children: ReactNode;
|
|
300
|
+
onClose: (result: any) => Promise<void>;
|
|
301
|
+
}
|
|
302
|
+
declare function DialogRoot({ children, height, fullWidth, ...rest }: RootProps): react_jsx_runtime.JSX.Element;
|
|
303
|
+
|
|
304
|
+
interface DialogProviderProps {
|
|
305
|
+
children: React__default.ReactNode;
|
|
306
|
+
}
|
|
307
|
+
declare function DialogProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
|
|
308
|
+
|
|
309
|
+
interface DialogAdicionarButtonProps<T> extends Omit<ButtonProps$2, 'onClick'> {
|
|
310
|
+
dialogComponent: DialogComponent<any, any>;
|
|
311
|
+
payload: T;
|
|
312
|
+
label?: string;
|
|
313
|
+
}
|
|
314
|
+
declare function DialogAdicionarButton<T>(props: DialogAdicionarButtonProps<T>): react_jsx_runtime.JSX.Element;
|
|
315
|
+
|
|
316
|
+
declare function DialogHeader(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
317
|
+
|
|
318
|
+
declare function Title(props: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
319
|
+
|
|
320
|
+
interface DialogActionCloseProps {
|
|
321
|
+
onClose: (result?: any) => Promise<void>;
|
|
322
|
+
}
|
|
323
|
+
declare function DialogActionClose({ onClose }: DialogActionCloseProps): react_jsx_runtime.JSX.Element;
|
|
324
|
+
|
|
325
|
+
declare function DialogContent({ children, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
|
|
326
|
+
|
|
327
|
+
declare function Footer(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
328
|
+
|
|
329
|
+
declare function DialogActions(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
330
|
+
|
|
331
|
+
declare function DialogActionCancelar$1({ children, ...rest }: ButtonProps$2): react_jsx_runtime.JSX.Element;
|
|
332
|
+
|
|
333
|
+
type ButtonProps = {
|
|
334
|
+
isLoading: boolean;
|
|
335
|
+
label?: string;
|
|
336
|
+
} & ButtonProps$2;
|
|
337
|
+
declare function DialogActionCancelar({ children, label, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
338
|
+
|
|
339
|
+
declare function DialogConfirmDelete({ open, onClose, payload, }: DialogProps$2<{
|
|
340
|
+
identificador: any;
|
|
341
|
+
useRemover: any;
|
|
342
|
+
}>): react_jsx_runtime.JSX.Element;
|
|
343
|
+
|
|
344
|
+
declare const Dialog: {
|
|
345
|
+
Root: typeof DialogRoot;
|
|
346
|
+
Provider: typeof DialogProvider;
|
|
347
|
+
AdicionarButton: typeof DialogAdicionarButton;
|
|
348
|
+
Header: typeof DialogHeader;
|
|
349
|
+
Title: typeof Title;
|
|
350
|
+
ActionClose: typeof DialogActionClose;
|
|
351
|
+
Content: typeof DialogContent;
|
|
352
|
+
Footer: typeof Footer;
|
|
353
|
+
Actions: typeof DialogActions;
|
|
354
|
+
ActionCancelar: typeof DialogActionCancelar$1;
|
|
355
|
+
ActionSalvar: typeof DialogActionCancelar;
|
|
356
|
+
ConfirmDelete: typeof DialogConfirmDelete;
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
declare function Avatar(props: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
360
|
+
|
|
361
|
+
interface ProfileProps {
|
|
362
|
+
}
|
|
363
|
+
declare function Profile(props: ProfileProps): react_jsx_runtime.JSX.Element;
|
|
364
|
+
|
|
365
|
+
export { AlterarSenha, AlterarSenhaProps, Avatar, Button, ButtonContainer, Checkbox, CheckboxProps, ColorsGrid, Content, ContentProps, CurrencyCellStyle, CurrencyTextField, DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DeleteContainer, DeleteContainerProps, Dialog$1 as Dialog, DialogProps, Dialog as DialogV2, DrawerMenu, DrawerMenuProps, Editable, EditableProps, FilterContainer, FilterControl, FilterProps, Flag, FormContainer, FormContainerProps, LabelValue, LabelValueProps, MenuItemProps, MioAuth, MioAuthProps, OptionStyles, PageTitle, PasswordTextField, Profile, ProfileProps, SearchTextField, Surface, Tooltip, TooltipProps, Transporter, TransporterProps, theme };
|