@data-c/ui 0.1.40 → 0.1.41

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
@@ -6,8 +6,8 @@ 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
9
  import { AvatarProps } from '@mui/material/Avatar';
10
+ import { DialogComponent, DialogProps as DialogProps$2 } from '@toolpad/core/useDialogs';
11
11
 
12
12
  interface ButtonProps$1 extends ButtonProps$2 {
13
13
  isLoading?: boolean;
@@ -294,68 +294,6 @@ declare function Surface(props: PaperProps): react_jsx_runtime.JSX.Element;
294
294
 
295
295
  declare const theme: _mui_material_styles.Theme;
296
296
 
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
297
  declare function Avatar(props: AvatarProps): react_jsx_runtime.JSX.Element;
360
298
 
361
299
  interface ProfileProps {
@@ -531,4 +469,66 @@ declare const ContentTitle: {
531
469
  Root: typeof ContentTitleRoot;
532
470
  };
533
471
 
472
+ interface RootProps extends Omit<DialogProps$1, 'onClose'> {
473
+ height?: number | string;
474
+ children: ReactNode;
475
+ onClose: (result: any) => Promise<void>;
476
+ }
477
+ declare function DialogRoot({ children, height, fullWidth, ...rest }: RootProps): react_jsx_runtime.JSX.Element;
478
+
479
+ interface DialogProviderProps {
480
+ children: React__default.ReactNode;
481
+ }
482
+ declare function DialogProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
483
+
484
+ interface DialogAdicionarButtonProps<T> extends Omit<ButtonProps$2, 'onClick'> {
485
+ dialogComponent: DialogComponent<any, any>;
486
+ payload: T;
487
+ label?: string;
488
+ }
489
+ declare function DialogAdicionarButton<T>(props: DialogAdicionarButtonProps<T>): react_jsx_runtime.JSX.Element;
490
+
491
+ declare function DialogHeader(props: StackProps): react_jsx_runtime.JSX.Element;
492
+
493
+ declare function Title(props: TypographyProps): react_jsx_runtime.JSX.Element;
494
+
495
+ interface DialogActionCloseProps {
496
+ onClose: (result?: any) => Promise<void>;
497
+ }
498
+ declare function DialogActionClose({ onClose }: DialogActionCloseProps): react_jsx_runtime.JSX.Element;
499
+
500
+ declare function DialogContent({ children, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
501
+
502
+ declare function Footer(props: StackProps): react_jsx_runtime.JSX.Element;
503
+
504
+ declare function DialogActions(props: StackProps): react_jsx_runtime.JSX.Element;
505
+
506
+ declare function DialogActionCancelar$1({ children, ...rest }: ButtonProps$2): react_jsx_runtime.JSX.Element;
507
+
508
+ type ButtonProps = {
509
+ isLoading: boolean;
510
+ label?: string;
511
+ } & ButtonProps$2;
512
+ declare function DialogActionCancelar({ children, label, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
513
+
514
+ declare function DialogConfirmDelete({ open, onClose, payload, }: DialogProps$2<{
515
+ identificador: any;
516
+ useRemover: any;
517
+ }>): react_jsx_runtime.JSX.Element;
518
+
519
+ declare const Dialog: {
520
+ Root: typeof DialogRoot;
521
+ Provider: typeof DialogProvider;
522
+ AdicionarButton: typeof DialogAdicionarButton;
523
+ Header: typeof DialogHeader;
524
+ Title: typeof Title;
525
+ ActionClose: typeof DialogActionClose;
526
+ Content: typeof DialogContent;
527
+ Footer: typeof Footer;
528
+ Actions: typeof DialogActions;
529
+ ActionCancelar: typeof DialogActionCancelar$1;
530
+ ActionSalvar: typeof DialogActionCancelar;
531
+ ConfirmDelete: typeof DialogConfirmDelete;
532
+ };
533
+
534
534
  export { AlterarSenha, AlterarSenhaProps, Avatar, Breadcrumbs, BreadcrumbsItem, BreadcrumbsProps, Button, ButtonContainer, Checkbox, CheckboxProps, ColorsGrid, Content, ContentProps, ContentTitle, 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, Header, Icon, LabelValue, LabelValueProps, Menu, MenuItemProps$1 as MenuItemProps, MioAuth, MioAuthProps, OptionStyles, PageTitle, PasswordTextField, Profile, ProfileProps, SearchTextField, Surface, Tooltip, TooltipProps, Transporter, TransporterProps, renderMenuItems, theme };