@data-c/ui 0.1.71 → 0.2.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 CHANGED
@@ -9,7 +9,7 @@ import * as _mui_material_styles from '@mui/material/styles';
9
9
  import { AvatarProps } from '@mui/material/Avatar';
10
10
  import { DialogComponent, DialogProps as DialogProps$2 } from '@toolpad/core';
11
11
  export { useDialogs } from '@toolpad/core';
12
- import { GridActionsCellItemProps, GridColDef as GridColDef$1, DataGridProps, GridRowsProp, GridRowSelectionModel, GridCallbackDetails } from '@mui/x-data-grid';
12
+ import { GridColDef as GridColDef$1, DataGridProps, GridRowsProp, GridRowSelectionModel, GridCallbackDetails } from '@mui/x-data-grid';
13
13
  import * as LucideIcons from 'lucide-react';
14
14
  import { LucideProps } from 'lucide-react';
15
15
 
@@ -523,17 +523,20 @@ declare const ContentTitle: {
523
523
  Root: typeof ContentTitleRoot;
524
524
  };
525
525
 
526
- interface RootProps extends Omit<DialogProps$1, 'onClose'> {
527
- height?: number | string;
528
- children: ReactNode;
529
- onClose: (result: any) => Promise<void>;
530
- }
531
- declare function DialogRoot({ children, height, fullWidth, ...rest }: RootProps): react_jsx_runtime.JSX.Element;
526
+ declare function DialogActionCancelar$1({ children, ...rest }: ButtonProps$3): react_jsx_runtime.JSX.Element;
532
527
 
533
- interface DialogProviderProps {
534
- children: React__default.ReactNode;
528
+ interface DialogActionCloseProps {
529
+ onClose: (result?: any) => Promise<void>;
535
530
  }
536
- declare function DialogProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
531
+ declare function DialogActionClose({ onClose }: DialogActionCloseProps): react_jsx_runtime.JSX.Element;
532
+
533
+ declare function DialogActions(props: StackProps): react_jsx_runtime.JSX.Element;
534
+
535
+ type ButtonProps$1 = {
536
+ isLoading: boolean;
537
+ label?: string;
538
+ } & ButtonProps$3;
539
+ declare function DialogActionCancelar({ children, label, ...rest }: ButtonProps$1): react_jsx_runtime.JSX.Element;
537
540
 
538
541
  interface DialogAdicionarButtonProps<T> extends Omit<ButtonProps$3, 'onClick'> {
539
542
  dialogComponent: DialogComponent<any, any>;
@@ -542,33 +545,38 @@ interface DialogAdicionarButtonProps<T> extends Omit<ButtonProps$3, 'onClick'> {
542
545
  }
543
546
  declare function DialogAdicionarButton<T>(props: DialogAdicionarButtonProps<T>): react_jsx_runtime.JSX.Element;
544
547
 
545
- declare function DialogHeader(props: StackProps): react_jsx_runtime.JSX.Element;
546
-
547
- declare function Title$1(props: TypographyProps): react_jsx_runtime.JSX.Element;
548
-
549
- interface DialogActionCloseProps {
550
- onClose: (result?: any) => Promise<void>;
548
+ interface DialogConfirmProps<T = any> extends DialogProps$2<T, T | false> {
549
+ title?: string;
550
+ message?: string;
551
+ confirmButtonLabel?: string;
552
+ cancelButtonLabel?: string;
551
553
  }
552
- declare function DialogActionClose({ onClose }: DialogActionCloseProps): react_jsx_runtime.JSX.Element;
554
+ declare function DialogConfirm(props: DialogConfirmProps): react_jsx_runtime.JSX.Element;
555
+
556
+ declare function DialogConfirmDelete({ open, onClose, payload, }: DialogProps$2<{
557
+ useRemover: any;
558
+ configs: any;
559
+ }>): react_jsx_runtime.JSX.Element;
553
560
 
554
561
  declare function DialogContent({ children, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
555
562
 
556
563
  declare function Footer$1(props: StackProps): react_jsx_runtime.JSX.Element;
557
564
 
558
- declare function DialogActions(props: StackProps): react_jsx_runtime.JSX.Element;
565
+ declare function DialogHeader(props: StackProps): react_jsx_runtime.JSX.Element;
559
566
 
560
- declare function DialogActionCancelar$1({ children, ...rest }: ButtonProps$3): react_jsx_runtime.JSX.Element;
567
+ interface DialogProviderProps {
568
+ children: React__default.ReactNode;
569
+ }
570
+ declare function DialogProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
561
571
 
562
- type ButtonProps$1 = {
563
- isLoading: boolean;
564
- label?: string;
565
- } & ButtonProps$3;
566
- declare function DialogActionCancelar({ children, label, ...rest }: ButtonProps$1): react_jsx_runtime.JSX.Element;
572
+ interface RootProps extends Omit<DialogProps$1, 'onClose'> {
573
+ height?: number | string;
574
+ children: ReactNode;
575
+ onClose: (result: any) => Promise<void>;
576
+ }
577
+ declare function DialogRoot({ children, height, fullWidth, ...rest }: RootProps): react_jsx_runtime.JSX.Element;
567
578
 
568
- declare function DialogConfirmDelete({ open, onClose, payload, }: DialogProps$2<{
569
- useRemover: any;
570
- configs: any;
571
- }>): react_jsx_runtime.JSX.Element;
579
+ declare function Title$1(props: TypographyProps): react_jsx_runtime.JSX.Element;
572
580
 
573
581
  declare const Dialog: {
574
582
  Root: typeof DialogRoot;
@@ -583,6 +591,7 @@ declare const Dialog: {
583
591
  ActionCancelar: typeof DialogActionCancelar$1;
584
592
  ActionSalvar: typeof DialogActionCancelar;
585
593
  ConfirmDelete: typeof DialogConfirmDelete;
594
+ Confirm: typeof DialogConfirm;
586
595
  };
587
596
 
588
597
  interface FilterAdvancedActionsContainerProps {
@@ -721,7 +730,7 @@ declare function CellActions(props: CellActionsProps): react_jsx_runtime.JSX.Ele
721
730
  type CellActionProps = {
722
731
  event?: string;
723
732
  onClick?: (event?: string) => void;
724
- } & GridActionsCellItemProps;
733
+ };
725
734
  declare function CellAction(props: CellActionProps): react_jsx_runtime.JSX.Element;
726
735
 
727
736
  interface PaginationProps {