@sis-cc/dotstatsuite-visions 7.14.4 → 7.14.5

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.
@@ -16,7 +16,7 @@
16
16
  * user: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
17
17
  * submit: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
18
18
  * }),
19
- * onClose: PropTypes.func.isRequired,
19
+ * onClose: PropTypes.func,
20
20
  * onSubmit: PropTypes.func.isRequired
21
21
  * };
22
22
  * @demoReady
@@ -124,7 +124,7 @@ var AuthDialog = function AuthDialog(_ref) {
124
124
  labels.header
125
125
  )
126
126
  ),
127
- React.createElement(
127
+ onClose && React.createElement(
128
128
  IconButton,
129
129
  { className: classes.closeButton, onClick: onClose },
130
130
  React.createElement(CloseIcon, null)
@@ -204,7 +204,7 @@ AuthDialog.propTypes = process.env.NODE_ENV !== "production" ? {
204
204
  user: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
205
205
  submit: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
206
206
  }),
207
- onClose: PropTypes.func.isRequired,
207
+ onClose: PropTypes.func,
208
208
  onSubmit: PropTypes.func.isRequired
209
209
  } : {};
210
210
 
@@ -66,7 +66,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
66
66
  * user: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
67
67
  * submit: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
68
68
  * }),
69
- * onClose: PropTypes.func.isRequired,
69
+ * onClose: PropTypes.func,
70
70
  * onSubmit: PropTypes.func.isRequired
71
71
  * };
72
72
  * @demoReady
@@ -161,7 +161,7 @@ var AuthDialog = function AuthDialog(_ref) {
161
161
  labels.header
162
162
  )
163
163
  ),
164
- _react2.default.createElement(
164
+ onClose && _react2.default.createElement(
165
165
  _IconButton2.default,
166
166
  { className: classes.closeButton, onClick: onClose },
167
167
  _react2.default.createElement(_Close2.default, null)
@@ -241,7 +241,7 @@ AuthDialog.propTypes = process.env.NODE_ENV !== "production" ? {
241
241
  user: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node]),
242
242
  submit: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node])
243
243
  }),
244
- onClose: _propTypes2.default.func.isRequired,
244
+ onClose: _propTypes2.default.func,
245
245
  onSubmit: _propTypes2.default.func.isRequired
246
246
  } : {};
247
247
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-visions",
3
- "version": "7.14.4",
3
+ "version": "7.14.5",
4
4
  "description": "Library of visual components",
5
5
  "author": "OECD",
6
6
  "homepage": "https://visions-qa.siscc.org/#o",