ywana-core8 0.0.784 → 0.0.786

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/dist/index.cjs CHANGED
@@ -4226,7 +4226,15 @@ var Dialog = function Dialog(props) {
4226
4226
  children = props.children,
4227
4227
  actions = props.actions,
4228
4228
  className = props.className,
4229
- onClose = props.onClose;
4229
+ onClose = props.onClose,
4230
+ _props$overlayCanClos = props.overlayCanClose,
4231
+ overlayCanClose = _props$overlayCanClos === void 0 ? true : _props$overlayCanClos;
4232
+
4233
+ function overlayClose() {
4234
+ if (overlayCanClose) {
4235
+ close();
4236
+ }
4237
+ }
4230
4238
 
4231
4239
  function close() {
4232
4240
  if (onClose) onClose();
@@ -4240,7 +4248,7 @@ var Dialog = function Dialog(props) {
4240
4248
 
4241
4249
  return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
4242
4250
  className: "overlay " + className,
4243
- onMouseDown: close
4251
+ onMouseDown: overlayClose
4244
4252
  }), /*#__PURE__*/React__default["default"].createElement("dialog", {
4245
4253
  className: "dialog-panel " + className
4246
4254
  }, /*#__PURE__*/React__default["default"].createElement("header", null, icon ? /*#__PURE__*/React__default["default"].createElement(MenuIcon, {
@@ -5290,6 +5298,8 @@ var PasswordEditor = function PasswordEditor(props) {
5290
5298
  var id = props.id,
5291
5299
  _props$label = props.label,
5292
5300
  label = _props$label === void 0 ? "Change Password" : _props$label,
5301
+ _props$lang = props.lang,
5302
+ lang = _props$lang === void 0 ? "ES" : _props$lang,
5293
5303
  _props$labelPosition = props.labelPosition,
5294
5304
  labelPosition = _props$labelPosition === void 0 ? "left" : _props$labelPosition,
5295
5305
  className = props.className,
@@ -5307,6 +5317,7 @@ var PasswordEditor = function PasswordEditor(props) {
5307
5317
 
5308
5318
  var openDialog = function openDialog() {
5309
5319
  site.openDialog( /*#__PURE__*/React__default["default"].createElement(ChangePasswordDialog, {
5320
+ lang: lang,
5310
5321
  label: label,
5311
5322
  onOK: onOK,
5312
5323
  onClose: onClose
@@ -5323,6 +5334,7 @@ var PasswordEditor = function PasswordEditor(props) {
5323
5334
  readOnly: true
5324
5335
  }), /*#__PURE__*/React__default["default"].createElement(Icon, {
5325
5336
  icon: "edit",
5337
+ clickable: true,
5326
5338
  action: openDialog,
5327
5339
  size: "small"
5328
5340
  }));