revdev-components 0.20.0 → 0.21.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.
@@ -13,7 +13,8 @@ export interface RegularDialogProps {
13
13
  cancelText?: string;
14
14
  footerClassName?: string;
15
15
  contentClassName?: string;
16
- hideOk?: boolean;
16
+ okHide?: boolean;
17
+ okDisabled?: boolean;
17
18
  onOk?: () => void;
18
19
  onClose?: () => void;
19
20
  open?: boolean;
package/build/index.js CHANGED
@@ -4814,7 +4814,7 @@ var InfoDialog = function (_a) {
4814
4814
  var s$8 = {"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"};
4815
4815
 
4816
4816
  var RegularDialog = function (_a) {
4817
- 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, hideOk = _a.hideOk, onOk = _a.onOk, onClose = _a.onClose, _c = _a.open, open = _c === void 0 ? true : _c;
4817
+ 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;
4818
4818
  var close = React.useMemo(function () {
4819
4819
  return React.createElement(RegularIcon, { name: "cross", className: s$8.close, onClick: onClose });
4820
4820
  }, [onClose]);
@@ -4851,7 +4851,7 @@ var RegularDialog = function (_a) {
4851
4851
  React.createElement("div", { className: classNames(s$8.content, contentClassName) }, children),
4852
4852
  hideFooter ? null : (React.createElement("div", { className: classNames(s$8.footer, footerClassName) },
4853
4853
  React.createElement(antd.Button, { onClick: onClose }, cancelText || "Cancel"),
4854
- hideOk ? null : (React.createElement(antd.Button, { type: "primary", onClick: handleOk }, okText || "OK"))))));
4854
+ okHide ? null : (React.createElement(antd.Button, { type: "primary", onClick: handleOk, disabled: okDisabled }, okText || "OK"))))));
4855
4855
  };
4856
4856
 
4857
4857
  var s$7 = {"root":"index-module_root__9mhio"};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {