@panneau/modal-confirm 4.0.2 → 4.0.3
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/es/index.js +7 -5
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
import Dialog from '@panneau/modal-dialog';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
function ConfirmModal(_ref) {
|
|
6
7
|
var id = _ref.id,
|
|
@@ -18,7 +19,7 @@ function ConfirmModal(_ref) {
|
|
|
18
19
|
className = _ref$className === void 0 ? null : _ref$className,
|
|
19
20
|
_ref$children = _ref.children,
|
|
20
21
|
children = _ref$children === void 0 ? null : _ref$children;
|
|
21
|
-
return /*#__PURE__*/
|
|
22
|
+
return /*#__PURE__*/jsx(Dialog, {
|
|
22
23
|
id: id,
|
|
23
24
|
title: title,
|
|
24
25
|
size: "lg",
|
|
@@ -27,7 +28,7 @@ function ConfirmModal(_ref) {
|
|
|
27
28
|
buttons: [_objectSpread({
|
|
28
29
|
id: 'no',
|
|
29
30
|
name: 'no',
|
|
30
|
-
label: /*#__PURE__*/
|
|
31
|
+
label: /*#__PURE__*/jsx(FormattedMessage, {
|
|
31
32
|
id: "yhU8J6",
|
|
32
33
|
defaultMessage: [{
|
|
33
34
|
"type": 0,
|
|
@@ -39,7 +40,7 @@ function ConfirmModal(_ref) {
|
|
|
39
40
|
}, cancelButton), _objectSpread({
|
|
40
41
|
id: 'yes',
|
|
41
42
|
name: 'yes',
|
|
42
|
-
label: /*#__PURE__*/
|
|
43
|
+
label: /*#__PURE__*/jsx(FormattedMessage, {
|
|
43
44
|
id: "3ebjtX",
|
|
44
45
|
defaultMessage: [{
|
|
45
46
|
"type": 0,
|
|
@@ -48,8 +49,9 @@ function ConfirmModal(_ref) {
|
|
|
48
49
|
}),
|
|
49
50
|
theme: 'primary',
|
|
50
51
|
onClick: onConfirm
|
|
51
|
-
}, confirmButton)]
|
|
52
|
-
|
|
52
|
+
}, confirmButton)],
|
|
53
|
+
children: children
|
|
54
|
+
});
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
export { ConfirmModal as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/modal-confirm",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Confirm modal",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.12.5",
|
|
52
52
|
"@panneau/core": "^4.0.2",
|
|
53
|
-
"@panneau/intl": "^4.0.
|
|
53
|
+
"@panneau/intl": "^4.0.3",
|
|
54
54
|
"@panneau/modal-dialog": "^4.0.2",
|
|
55
55
|
"@panneau/themes": "^4.0.2",
|
|
56
56
|
"classnames": "^2.5.1",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "26b5ab7536b0e8c3197d40d302fc2681e7c7122e"
|
|
65
65
|
}
|