@panneau/modal-dialog 2.0.72 → 2.0.79

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 CHANGED
@@ -18,7 +18,7 @@ var propTypes = {
18
18
  children: PropTypes$1.node,
19
19
  footer: PropTypes$1.node,
20
20
  buttons: PropTypes.buttons,
21
- onClickClose: PropTypes$1.func,
21
+ onClose: PropTypes$1.func,
22
22
  className: PropTypes$1.string
23
23
  };
24
24
  var defaultProps = {
@@ -28,7 +28,7 @@ var defaultProps = {
28
28
  children: null,
29
29
  footer: null,
30
30
  buttons: null,
31
- onClickClose: null,
31
+ onClose: null,
32
32
  className: null
33
33
  };
34
34
  var ModalDialog = function ModalDialog(_ref) {
@@ -39,7 +39,7 @@ var ModalDialog = function ModalDialog(_ref) {
39
39
  children = _ref.children,
40
40
  buttons = _ref.buttons,
41
41
  footer = _ref.footer,
42
- onClickClose = _ref.onClickClose,
42
+ onClose = _ref.onClose,
43
43
  className = _ref.className;
44
44
  return /*#__PURE__*/React.createElement(Modal, null, /*#__PURE__*/React.createElement("div", {
45
45
  className: classNames(['modal-dialog', styles.container, (_ref2 = {}, _defineProperty(_ref2, "modal-".concat(size), size !== null), _defineProperty(_ref2, className, className), _ref2)]),
@@ -54,7 +54,7 @@ var ModalDialog = function ModalDialog(_ref) {
54
54
  type: "button",
55
55
  className: "btn-close close",
56
56
  "aria-label": "Close",
57
- onClick: onClickClose
57
+ onClick: onClose
58
58
  })), /*#__PURE__*/React.createElement("div", {
59
59
  className: classNames(['modal-body', styles.body])
60
60
  }, children), footer !== null || buttons !== null ? /*#__PURE__*/React.createElement("div", {
package/lib/index.js CHANGED
@@ -33,7 +33,7 @@ var propTypes = {
33
33
  children: PropTypes__default["default"].node,
34
34
  footer: PropTypes__default["default"].node,
35
35
  buttons: core.PropTypes.buttons,
36
- onClickClose: PropTypes__default["default"].func,
36
+ onClose: PropTypes__default["default"].func,
37
37
  className: PropTypes__default["default"].string
38
38
  };
39
39
  var defaultProps = {
@@ -43,7 +43,7 @@ var defaultProps = {
43
43
  children: null,
44
44
  footer: null,
45
45
  buttons: null,
46
- onClickClose: null,
46
+ onClose: null,
47
47
  className: null
48
48
  };
49
49
  var ModalDialog = function ModalDialog(_ref) {
@@ -54,7 +54,7 @@ var ModalDialog = function ModalDialog(_ref) {
54
54
  children = _ref.children,
55
55
  buttons = _ref.buttons,
56
56
  footer = _ref.footer,
57
- onClickClose = _ref.onClickClose,
57
+ onClose = _ref.onClose,
58
58
  className = _ref.className;
59
59
  return /*#__PURE__*/React__default["default"].createElement(Modal__default["default"], null, /*#__PURE__*/React__default["default"].createElement("div", {
60
60
  className: classNames__default["default"](['modal-dialog', styles.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, "modal-".concat(size), size !== null), _defineProperty__default["default"](_ref2, className, className), _ref2)]),
@@ -69,7 +69,7 @@ var ModalDialog = function ModalDialog(_ref) {
69
69
  type: "button",
70
70
  className: "btn-close close",
71
71
  "aria-label": "Close",
72
- onClick: onClickClose
72
+ onClick: onClose
73
73
  })), /*#__PURE__*/React__default["default"].createElement("div", {
74
74
  className: classNames__default["default"](['modal-body', styles.body])
75
75
  }, children), footer !== null || buttons !== null ? /*#__PURE__*/React__default["default"].createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/modal-dialog",
3
- "version": "2.0.72",
3
+ "version": "2.0.79",
4
4
  "description": "Default modal",
5
5
  "keywords": [
6
6
  "javascript"
@@ -53,12 +53,12 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@babel/runtime": "^7.12.5",
56
- "@panneau/core": "^2.0.71",
57
- "@panneau/element-button": "^2.0.71",
58
- "@panneau/element-buttons": "^2.0.71",
59
- "@panneau/element-label": "^2.0.71",
60
- "@panneau/element-modal": "^2.0.72",
61
- "@panneau/themes": "^2.0.71",
56
+ "@panneau/core": "^2.0.75",
57
+ "@panneau/element-button": "^2.0.75",
58
+ "@panneau/element-buttons": "^2.0.75",
59
+ "@panneau/element-label": "^2.0.75",
60
+ "@panneau/element-modal": "^2.0.75",
61
+ "@panneau/themes": "^2.0.75",
62
62
  "classnames": "^2.2.6",
63
63
  "lodash": "^4.17.21",
64
64
  "prop-types": "^15.7.2",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "dec3ab57e02e99a81625bf5c2f7d8589fd222e57"
70
+ "gitHead": "b3bfbc84de833d32a4939542aba6e010d3672ffa"
71
71
  }