@data-c/ui 0.1.71 → 0.1.73
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 +40 -29
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -523,17 +523,20 @@ declare const ContentTitle: {
|
|
|
523
523
|
Root: typeof ContentTitleRoot;
|
|
524
524
|
};
|
|
525
525
|
|
|
526
|
-
|
|
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
|
|
534
|
-
|
|
528
|
+
interface DialogActionCloseProps {
|
|
529
|
+
onClose: (result?: any) => Promise<void>;
|
|
535
530
|
}
|
|
536
|
-
declare function
|
|
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
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
onClose: (result?: any) => Promise<void>;
|
|
548
|
+
interface DialogConfirmProps<T = any> extends DialogProps$2<T, boolean> {
|
|
549
|
+
title?: string;
|
|
550
|
+
message?: string;
|
|
551
|
+
confirmButtonLabel?: string;
|
|
552
|
+
cancelButtonLabel?: string;
|
|
551
553
|
}
|
|
552
|
-
declare function
|
|
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
|
|
565
|
+
declare function DialogHeader(props: StackProps): react_jsx_runtime.JSX.Element;
|
|
559
566
|
|
|
560
|
-
|
|
567
|
+
interface DialogProviderProps {
|
|
568
|
+
children: React__default.ReactNode;
|
|
569
|
+
}
|
|
570
|
+
declare function DialogProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
|
|
561
571
|
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
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
|
|
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 {
|
|
@@ -620,6 +629,7 @@ declare function FilterContainer({ children }: {
|
|
|
620
629
|
children: ReactNode;
|
|
621
630
|
}): react_jsx_runtime.JSX.Element;
|
|
622
631
|
|
|
632
|
+
type FilterAppliedCallback = (filters: any) => void;
|
|
623
633
|
interface FilterDataContextProps<T = any> {
|
|
624
634
|
filterValues: T;
|
|
625
635
|
filterValuesAsArray: Array<Record<string, T>>;
|
|
@@ -647,12 +657,13 @@ interface FilterOptions<T> {
|
|
|
647
657
|
label?: string;
|
|
648
658
|
value?: T;
|
|
649
659
|
}
|
|
650
|
-
interface FilterProviderProps<T =
|
|
660
|
+
interface FilterProviderProps<T = unknown> {
|
|
651
661
|
children: ReactNode;
|
|
652
662
|
filterValues?: T;
|
|
653
663
|
storagePath?: string;
|
|
664
|
+
onFilterApplied?: FilterAppliedCallback;
|
|
654
665
|
}
|
|
655
|
-
declare function FilterProvider<T>(props: FilterProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
666
|
+
declare function FilterProvider<T = any>(props: FilterProviderProps<T>): react_jsx_runtime.JSX.Element;
|
|
656
667
|
declare function useFilter<T = any>(): FilterDataContextProps<T>;
|
|
657
668
|
declare function useFilterApi<T = any>(): FilterApiContextProps<T>;
|
|
658
669
|
|