@datacrest/dcuikit 1.0.33 → 1.0.36
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/build/components/Molecule/Dialog/Dialog.d.ts +1 -1
- package/build/components/Molecule/Dialog/types.d.ts +6 -5
- package/build/index.esm.js +1 -1
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/tsconfig.prod.tsbuildinfo +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DialogProps } from './types';
|
|
3
3
|
declare const Dialog: {
|
|
4
|
-
({ trigger, isOpen, closeOnOutsideClick, ...props }: DialogProps): React.JSX.Element;
|
|
4
|
+
({ trigger, isOpen, closeOnOutsideClick, children, ...props }: DialogProps): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export default Dialog;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
export interface DialogField {
|
|
3
3
|
label: string;
|
|
4
4
|
name: string;
|
|
@@ -9,7 +9,7 @@ export interface DialogField {
|
|
|
9
9
|
}
|
|
10
10
|
export interface BaseDialogProps {
|
|
11
11
|
title: string;
|
|
12
|
-
description
|
|
12
|
+
description?: string;
|
|
13
13
|
cancelText?: string;
|
|
14
14
|
confirmText?: string;
|
|
15
15
|
onConfirm?: (data?: Record<string, unknown>) => void;
|
|
@@ -23,11 +23,12 @@ export interface BaseDialogProps {
|
|
|
23
23
|
className?: string;
|
|
24
24
|
onClose?: () => void;
|
|
25
25
|
fields?: DialogField[];
|
|
26
|
+
footer?: ReactNode;
|
|
26
27
|
}
|
|
27
|
-
export interface DialogProps extends BaseDialogProps {
|
|
28
|
-
trigger: string;
|
|
28
|
+
export interface DialogProps extends BaseDialogProps, PropsWithChildren {
|
|
29
|
+
trigger: string | ReactNode;
|
|
29
30
|
}
|
|
30
|
-
export interface DialogContentProps extends BaseDialogProps {
|
|
31
|
+
export interface DialogContentProps extends BaseDialogProps, PropsWithChildren {
|
|
31
32
|
onOpenChange: (open: boolean) => void;
|
|
32
33
|
}
|
|
33
34
|
export interface MockDialogPrimitiveProps extends PropsWithChildren {
|