revdev-components 0.167.0 → 0.168.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.
@@ -15,6 +15,7 @@ export interface RegularDialogProps {
15
15
  contentClassName?: string;
16
16
  okHide?: boolean;
17
17
  okDisabled?: boolean;
18
+ okLoading?: boolean;
18
19
  onOk?: () => void;
19
20
  onClose?: () => void;
20
21
  open?: boolean;
package/build/index.js CHANGED
@@ -5180,7 +5180,7 @@ var InfoDialog = function (_a) {
5180
5180
  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"};
5181
5181
 
5182
5182
  var RegularDialog = function (_a) {
5183
- 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;
5183
+ 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, okLoading = _a.okLoading, onOk = _a.onOk, onClose = _a.onClose, _c = _a.open, open = _c === void 0 ? true : _c, _d = _a.maskClosable, maskClosable = _d === void 0 ? false : _d;
5184
5184
  var close = React.useMemo(function () {
5185
5185
  return React.createElement(RegularIcon, { name: "cross", className: s$i.close, onClick: onClose });
5186
5186
  }, [onClose]);
@@ -5212,7 +5212,7 @@ var RegularDialog = function (_a) {
5212
5212
  React.createElement("div", { className: classNames(s$i.content, contentClassName) }, children),
5213
5213
  hideFooter ? null : (React.createElement("div", { className: classNames(s$i.footer, footerClassName) },
5214
5214
  React.createElement(antd.Button, { onClick: onClose }, cancelText || "Cancel"),
5215
- okHide ? null : (React.createElement(antd.Button, { type: "primary", onClick: onOk, disabled: okDisabled }, okText || "OK"))))));
5215
+ okHide ? null : (React.createElement(antd.Button, { type: "primary", onClick: onOk, disabled: okDisabled, loading: okLoading }, okText || "OK"))))));
5216
5216
  };
5217
5217
 
5218
5218
  var s$h = {"root":"index-module_root__qFuRH"};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.167.0",
3
+ "version": "0.168.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {