@panneau/modal-dialog 4.0.48 → 4.0.50
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 +5 -4
- package/dist/index.js +2 -2
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { Label, Button, ButtonSize } from '@panneau/core';
|
|
4
4
|
import { ModalProps } from '@panneau/element-modal';
|
|
5
5
|
|
|
6
|
-
interface
|
|
6
|
+
interface DialogModalProps extends Omit<ModalProps, 'title'> {
|
|
7
7
|
id: string;
|
|
8
8
|
title?: Label | null;
|
|
9
|
-
size?:
|
|
9
|
+
size?: 'lg' | 'sm' | null;
|
|
10
10
|
header?: ReactNode | null;
|
|
11
11
|
children?: ReactNode | null;
|
|
12
12
|
footer?: ReactNode | null;
|
|
@@ -28,6 +28,7 @@ interface ModalDialogProps extends Omit<ModalProps, 'title'> {
|
|
|
28
28
|
onClickSubmit?: (() => void) | null;
|
|
29
29
|
onClickCancel?: (() => void) | null;
|
|
30
30
|
}
|
|
31
|
-
declare function
|
|
31
|
+
declare function DialogModal({ id, title, size, header, children, buttons, buttonsSize, submitButtonLabel, cancelButtonLabel, cancelButton, submitButton, footer, requestClose, withoutClose, withCloseOutside, className, headerClassName, bodyClassName, footerClassName, buttonsClassName, withCancelButton, withSubmitButton, onClickCancel, onClickSubmit, ...props }: DialogModalProps): react_jsx_runtime.JSX.Element;
|
|
32
32
|
|
|
33
|
-
export {
|
|
33
|
+
export { DialogModal as default };
|
|
34
|
+
export type { DialogModalProps };
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import Label from '@panneau/element-label';
|
|
|
7
7
|
import Modal from '@panneau/element-modal';
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
|
-
function
|
|
10
|
+
function DialogModal({
|
|
11
11
|
id,
|
|
12
12
|
title = null,
|
|
13
13
|
size = null,
|
|
@@ -98,4 +98,4 @@ function ModalDialog({
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
export {
|
|
101
|
+
export { DialogModal as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/modal-dialog",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.50",
|
|
4
4
|
"description": "Default modal",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.28.6",
|
|
63
|
-
"@panneau/core": "^4.0.
|
|
64
|
-
"@panneau/element-button": "^4.0.
|
|
65
|
-
"@panneau/element-buttons": "^4.0.
|
|
66
|
-
"@panneau/element-label": "^4.0.
|
|
67
|
-
"@panneau/element-modal": "^4.0.
|
|
68
|
-
"@panneau/themes": "^4.0.
|
|
63
|
+
"@panneau/core": "^4.0.50",
|
|
64
|
+
"@panneau/element-button": "^4.0.50",
|
|
65
|
+
"@panneau/element-buttons": "^4.0.50",
|
|
66
|
+
"@panneau/element-label": "^4.0.50",
|
|
67
|
+
"@panneau/element-modal": "^4.0.50",
|
|
68
|
+
"@panneau/themes": "^4.0.50",
|
|
69
69
|
"classnames": "^2.5.1",
|
|
70
70
|
"lodash": "^4.17.21",
|
|
71
71
|
"react-intl": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^10.0.0"
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "c5d4004686dae5529035f8eac83571739e24340d"
|
|
77
77
|
}
|