@panneau/modal-confirm 3.0.163 → 3.0.164
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 +4 -1
- package/lib/index.js +4 -1
- package/package.json +6 -6
package/es/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
5
5
|
import Dialog from '@panneau/modal-dialog';
|
|
6
6
|
|
|
7
7
|
var propTypes = {
|
|
8
|
+
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
8
9
|
title: PropTypes.node,
|
|
9
10
|
onConfirm: PropTypes.func,
|
|
10
11
|
onClose: PropTypes.func,
|
|
@@ -27,7 +28,8 @@ var defaultProps = {
|
|
|
27
28
|
children: null
|
|
28
29
|
};
|
|
29
30
|
function ConfirmModal(_ref) {
|
|
30
|
-
var
|
|
31
|
+
var id = _ref.id,
|
|
32
|
+
title = _ref.title,
|
|
31
33
|
onConfirm = _ref.onConfirm,
|
|
32
34
|
onClose = _ref.onClose,
|
|
33
35
|
confirmButton = _ref.confirmButton,
|
|
@@ -35,6 +37,7 @@ function ConfirmModal(_ref) {
|
|
|
35
37
|
className = _ref.className,
|
|
36
38
|
children = _ref.children;
|
|
37
39
|
return /*#__PURE__*/React.createElement(Dialog, {
|
|
40
|
+
id: id,
|
|
38
41
|
title: title,
|
|
39
42
|
size: "lg",
|
|
40
43
|
onClose: onClose,
|
package/lib/index.js
CHANGED
|
@@ -9,6 +9,7 @@ var reactIntl = require('react-intl');
|
|
|
9
9
|
var Dialog = require('@panneau/modal-dialog');
|
|
10
10
|
|
|
11
11
|
var propTypes = {
|
|
12
|
+
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
12
13
|
title: PropTypes.node,
|
|
13
14
|
onConfirm: PropTypes.func,
|
|
14
15
|
onClose: PropTypes.func,
|
|
@@ -31,7 +32,8 @@ var defaultProps = {
|
|
|
31
32
|
children: null
|
|
32
33
|
};
|
|
33
34
|
function ConfirmModal(_ref) {
|
|
34
|
-
var
|
|
35
|
+
var id = _ref.id,
|
|
36
|
+
title = _ref.title,
|
|
35
37
|
onConfirm = _ref.onConfirm,
|
|
36
38
|
onClose = _ref.onClose,
|
|
37
39
|
confirmButton = _ref.confirmButton,
|
|
@@ -39,6 +41,7 @@ function ConfirmModal(_ref) {
|
|
|
39
41
|
className = _ref.className,
|
|
40
42
|
children = _ref.children;
|
|
41
43
|
return /*#__PURE__*/React.createElement(Dialog, {
|
|
44
|
+
id: id,
|
|
42
45
|
title: title,
|
|
43
46
|
size: "lg",
|
|
44
47
|
onClose: onClose,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/modal-confirm",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.164",
|
|
4
4
|
"description": "Confirm modal",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.12.5",
|
|
49
|
-
"@panneau/core": "^3.0.
|
|
50
|
-
"@panneau/intl": "^3.0.
|
|
51
|
-
"@panneau/modal-dialog": "^3.0.
|
|
52
|
-
"@panneau/themes": "^3.0.
|
|
49
|
+
"@panneau/core": "^3.0.164",
|
|
50
|
+
"@panneau/intl": "^3.0.164",
|
|
51
|
+
"@panneau/modal-dialog": "^3.0.164",
|
|
52
|
+
"@panneau/themes": "^3.0.164",
|
|
53
53
|
"classnames": "^2.5.1",
|
|
54
54
|
"lodash": "^4.17.21",
|
|
55
55
|
"prop-types": "^15.7.2",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "7a1511eb7b08a09cfcf708d1ca314a12155e9bd8"
|
|
62
62
|
}
|