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