revdev-components 0.138.0 → 0.139.0

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.
@@ -18,6 +18,7 @@ export interface RegularDialogProps {
18
18
  onOk?: () => void;
19
19
  onClose?: () => void;
20
20
  open?: boolean;
21
+ maskClosable?: boolean;
21
22
  }
22
23
  export declare const RegularDialog: React.FC<RegularDialogProps>;
23
24
  export {};
package/build/index.js CHANGED
@@ -5037,7 +5037,7 @@ var InfoDialog = function (_a) {
5037
5037
  var s$i = {"root":"index-module_root__BQI-i","header":"index-module_header__OUCQj","title":"index-module_title__HPbDC","close":"index-module_close__-FN6K","content":"index-module_content__BpXha","footer":"index-module_footer__xqKte"};
5038
5038
 
5039
5039
  var RegularDialog = function (_a) {
5040
- var titleIcon = _a.titleIcon, titlePrefix = _a.titlePrefix, title = _a.title, children = _a.children, _b = _a.hideFooter, hideFooter = _b === void 0 ? false : _b, className = _a.className, width = _a.width, okText = _a.okText, cancelText = _a.cancelText, footerClassName = _a.footerClassName, contentClassName = _a.contentClassName, okHide = _a.okHide, okDisabled = _a.okDisabled, onOk = _a.onOk, onClose = _a.onClose, _c = _a.open, open = _c === void 0 ? true : _c;
5040
+ var titleIcon = _a.titleIcon, titlePrefix = _a.titlePrefix, title = _a.title, children = _a.children, _b = _a.hideFooter, hideFooter = _b === void 0 ? false : _b, className = _a.className, width = _a.width, okText = _a.okText, cancelText = _a.cancelText, footerClassName = _a.footerClassName, contentClassName = _a.contentClassName, okHide = _a.okHide, okDisabled = _a.okDisabled, onOk = _a.onOk, onClose = _a.onClose, _c = _a.open, open = _c === void 0 ? true : _c, _d = _a.maskClosable, maskClosable = _d === void 0 ? false : _d;
5041
5041
  var close = React.useMemo(function () {
5042
5042
  return React.createElement(RegularIcon, { name: "cross", className: s$i.close, onClick: onClose });
5043
5043
  }, [onClose]);
@@ -5064,7 +5064,7 @@ var RegularDialog = function (_a) {
5064
5064
  }
5065
5065
  return result;
5066
5066
  }, [width]);
5067
- return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$i.root, className), maskClosable: false, footer: null },
5067
+ return (React.createElement(antd.Modal, { open: open, onCancel: onClose, style: style, className: classNames(s$i.root, className), maskClosable: maskClosable, footer: null },
5068
5068
  titleContent,
5069
5069
  React.createElement("div", { className: classNames(s$i.content, contentClassName) }, children),
5070
5070
  hideFooter ? null : (React.createElement("div", { className: classNames(s$i.footer, footerClassName) },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.138.0",
3
+ "version": "0.139.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {