@rc-component/dialog 1.4.0 → 1.5.1

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.
Files changed (118) hide show
  1. package/README.md +1 -1
  2. package/es/Dialog/Content/Panel.js +7 -7
  3. package/es/Dialog/Content/index.js +2 -2
  4. package/es/Dialog/Mask.js +2 -2
  5. package/es/Dialog/index.js +3 -3
  6. package/es/DialogWrap.js +6 -0
  7. package/es/IDialogPropTypes.d.ts +6 -4
  8. package/lib/Dialog/Content/Panel.js +8 -8
  9. package/lib/Dialog/Content/index.js +2 -2
  10. package/lib/Dialog/Mask.js +2 -2
  11. package/lib/Dialog/index.js +3 -3
  12. package/lib/DialogWrap.js +6 -0
  13. package/lib/IDialogPropTypes.d.ts +6 -4
  14. package/package.json +3 -6
  15. package/dist/10509781610555453368.hot-update-url-map.json +0 -1
  16. package/dist/10509781610555453368.hot-update.json +0 -1
  17. package/dist/11977476592833392720.hot-update-url-map.json +0 -1
  18. package/dist/11977476592833392720.hot-update.json +0 -1
  19. package/dist/14397576132152343869.hot-update-url-map.json +0 -1
  20. package/dist/14397576132152343869.hot-update.json +0 -1
  21. package/dist/14597408625395534096.hot-update-url-map.json +0 -1
  22. package/dist/14597408625395534096.hot-update.json +0 -1
  23. package/dist/15104553912779929595.hot-update-url-map.json +0 -1
  24. package/dist/15104553912779929595.hot-update.json +0 -1
  25. package/dist/4361192314875393955.hot-update-url-map.json +0 -1
  26. package/dist/4361192314875393955.hot-update.json +0 -1
  27. package/dist/4704580574928883170.hot-update-url-map.json +0 -1
  28. package/dist/4704580574928883170.hot-update.json +0 -1
  29. package/dist/5496443382647786649.hot-update-url-map.json +0 -1
  30. package/dist/5496443382647786649.hot-update.json +0 -1
  31. package/dist/7338948553039754745.hot-update-url-map.json +0 -1
  32. package/dist/7338948553039754745.hot-update.json +0 -1
  33. package/dist/7441995189917427860.hot-update-url-map.json +0 -1
  34. package/dist/7441995189917427860.hot-update.json +0 -1
  35. package/dist/8425845753817463333.hot-update-url-map.json +0 -1
  36. package/dist/8425845753817463333.hot-update.json +0 -1
  37. package/dist/8742625841545363477.hot-update-url-map.json +0 -1
  38. package/dist/8742625841545363477.hot-update.json +0 -1
  39. package/dist/960384830459946830.hot-update-url-map.json +0 -1
  40. package/dist/960384830459946830.hot-update.json +0 -1
  41. package/dist/9707589364653732454.hot-update-url-map.json +0 -1
  42. package/dist/9707589364653732454.hot-update.json +0 -1
  43. package/dist/common-async.10509781610555453368.hot-update.js +0 -268
  44. package/dist/common-async.10509781610555453368.hot-update.js.map +0 -1
  45. package/dist/common-async.11977476592833392720.hot-update.js +0 -395
  46. package/dist/common-async.11977476592833392720.hot-update.js.map +0 -1
  47. package/dist/common-async.14397576132152343869.hot-update.js +0 -395
  48. package/dist/common-async.14397576132152343869.hot-update.js.map +0 -1
  49. package/dist/common-async.14597408625395534096.hot-update.js +0 -268
  50. package/dist/common-async.14597408625395534096.hot-update.js.map +0 -1
  51. package/dist/common-async.15104553912779929595.hot-update.js +0 -268
  52. package/dist/common-async.15104553912779929595.hot-update.js.map +0 -1
  53. package/dist/common-async.4361192314875393955.hot-update.js +0 -268
  54. package/dist/common-async.4361192314875393955.hot-update.js.map +0 -1
  55. package/dist/common-async.4704580574928883170.hot-update.js +0 -268
  56. package/dist/common-async.4704580574928883170.hot-update.js.map +0 -1
  57. package/dist/common-async.5496443382647786649.hot-update.js +0 -391
  58. package/dist/common-async.5496443382647786649.hot-update.js.map +0 -1
  59. package/dist/common-async.7338948553039754745.hot-update.js +0 -395
  60. package/dist/common-async.7338948553039754745.hot-update.js.map +0 -1
  61. package/dist/common-async.7441995189917427860.hot-update.js +0 -394
  62. package/dist/common-async.7441995189917427860.hot-update.js.map +0 -1
  63. package/dist/common-async.8425845753817463333.hot-update.js +0 -268
  64. package/dist/common-async.8425845753817463333.hot-update.js.map +0 -1
  65. package/dist/common-async.8742625841545363477.hot-update.js +0 -268
  66. package/dist/common-async.8742625841545363477.hot-update.js.map +0 -1
  67. package/dist/common-async.960384830459946830.hot-update.js +0 -268
  68. package/dist/common-async.960384830459946830.hot-update.js.map +0 -1
  69. package/dist/common-async.9707589364653732454.hot-update.js +0 -268
  70. package/dist/common-async.9707589364653732454.hot-update.js.map +0 -1
  71. package/dist/common-async.js +0 -1180
  72. package/dist/common-async.js.map +0 -1
  73. package/dist/demos-async.7338948553039754745.hot-update.js +0 -395
  74. package/dist/demos-async.7338948553039754745.hot-update.js.map +0 -1
  75. package/dist/demos-async.css +0 -396
  76. package/dist/demos-async.css.map +0 -1
  77. package/dist/demos-async.js +0 -1242
  78. package/dist/demos-async.js.map +0 -1
  79. package/dist/docs_changelog_md-async.js +0 -2159
  80. package/dist/docs_changelog_md-async.js.map +0 -1
  81. package/dist/docs_demo_ant-design_md-async.js +0 -119
  82. package/dist/docs_demo_ant-design_md-async.js.map +0 -1
  83. package/dist/docs_demo_bootstrap_md-async.js +0 -119
  84. package/dist/docs_demo_bootstrap_md-async.js.map +0 -1
  85. package/dist/docs_demo_draggable_md-async.js +0 -119
  86. package/dist/docs_demo_draggable_md-async.js.map +0 -1
  87. package/dist/docs_demo_multiple-Portal_md-async.js +0 -119
  88. package/dist/docs_demo_multiple-Portal_md-async.js.map +0 -1
  89. package/dist/docs_demo_pure_md-async.js +0 -119
  90. package/dist/docs_demo_pure_md-async.js.map +0 -1
  91. package/dist/docs_index_md-async.js +0 -1717
  92. package/dist/docs_index_md-async.js.map +0 -1
  93. package/dist/dumi__tmp__dumi__theme__ContextWrapper-async.js +0 -201
  94. package/dist/dumi__tmp__dumi__theme__ContextWrapper-async.js.map +0 -1
  95. package/dist/meta__docs-async.7338948553039754745.hot-update.js +0 -395
  96. package/dist/meta__docs-async.7338948553039754745.hot-update.js.map +0 -1
  97. package/dist/meta__docs-async.css +0 -396
  98. package/dist/meta__docs-async.css.map +0 -1
  99. package/dist/meta__docs-async.js +0 -2391
  100. package/dist/meta__docs-async.js.map +0 -1
  101. package/dist/nm__dumi__dist__client__pages__404-async.js +0 -69
  102. package/dist/nm__dumi__dist__client__pages__404-async.js.map +0 -1
  103. package/dist/nm__dumi__dist__client__pages__Demo__index-async.js +0 -63
  104. package/dist/nm__dumi__dist__client__pages__Demo__index-async.js.map +0 -1
  105. package/dist/node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js +0 -368
  106. package/dist/node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js.map +0 -1
  107. package/dist/node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js +0 -1077
  108. package/dist/node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js.map +0 -1
  109. package/dist/node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js +0 -18
  110. package/dist/node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js.map +0 -1
  111. package/dist/umi.css +0 -1302
  112. package/dist/umi.css.map +0 -1
  113. package/dist/umi.js +0 -80442
  114. package/dist/umi.js.map +0 -1
  115. package/dist/vendors-async.css +0 -22545
  116. package/dist/vendors-async.css.map +0 -1
  117. package/dist/vendors-async.js +0 -53289
  118. package/dist/vendors-async.js.map +0 -1
package/README.md CHANGED
@@ -64,7 +64,7 @@ ReactDOM.render(
64
64
  | maskTransitionName | String | | mask animation css class name | |
65
65
  | title | String\|React.Element | | Title of the dialog | |
66
66
  | footer | React.Element | | footer of the dialog | |
67
- | closable | Boolean \| ({ closeIcon?: React.ReactNode; disabled?: boolean } & React.AriaAttributes | true | whether show close button | |
67
+ | closable | Boolean \| ({ closeIcon?: React.ReactNode; disabled?: boolean, afterClose:function } & React.AriaAttributes) | true | whether show close button | |
68
68
  | mask | Boolean | true | whether show mask | |
69
69
  | maskClosable | Boolean | true | whether click mask to close | |
70
70
  | keyboard | Boolean | true | whether support press esc to close | |
@@ -1,5 +1,5 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- import classNames from 'classnames';
2
+ import { clsx } from 'clsx';
3
3
  import { useComposeRef } from "@rc-component/util/es/ref";
4
4
  import React, { useMemo, useRef } from 'react';
5
5
  import { RefContext } from "../../context";
@@ -79,18 +79,18 @@ const Panel = /*#__PURE__*/React.forwardRef((props, ref) => {
79
79
  }
80
80
  // ================================ Render ================================
81
81
  const footerNode = footer ? /*#__PURE__*/React.createElement("div", {
82
- className: classNames(`${prefixCls}-footer`, modalClassNames?.footer),
82
+ className: clsx(`${prefixCls}-footer`, modalClassNames?.footer),
83
83
  style: {
84
84
  ...modalStyles?.footer
85
85
  }
86
86
  }, footer) : null;
87
87
  const headerNode = title ? /*#__PURE__*/React.createElement("div", {
88
- className: classNames(`${prefixCls}-header`, modalClassNames?.header),
88
+ className: clsx(`${prefixCls}-header`, modalClassNames?.header),
89
89
  style: {
90
90
  ...modalStyles?.header
91
91
  }
92
92
  }, /*#__PURE__*/React.createElement("div", {
93
- className: classNames(`${prefixCls}-title`, modalClassNames?.title),
93
+ className: clsx(`${prefixCls}-title`, modalClassNames?.title),
94
94
  id: ariaId,
95
95
  style: {
96
96
  ...modalStyles?.title
@@ -120,10 +120,10 @@ const Panel = /*#__PURE__*/React.forwardRef((props, ref) => {
120
120
  disabled: closeBtnIsDisabled
121
121
  }), closableObj.closeIcon) : null;
122
122
  const content = /*#__PURE__*/React.createElement("div", {
123
- className: classNames(`${prefixCls}-container`, modalClassNames?.container),
123
+ className: clsx(`${prefixCls}-container`, modalClassNames?.container),
124
124
  style: modalStyles?.container
125
125
  }, closerNode, headerNode, /*#__PURE__*/React.createElement("div", _extends({
126
- className: classNames(`${prefixCls}-body`, modalClassNames?.body),
126
+ className: clsx(`${prefixCls}-body`, modalClassNames?.body),
127
127
  style: {
128
128
  ...bodyStyle,
129
129
  ...modalStyles?.body
@@ -139,7 +139,7 @@ const Panel = /*#__PURE__*/React.forwardRef((props, ref) => {
139
139
  ...style,
140
140
  ...contentStyle
141
141
  },
142
- className: classNames(prefixCls, className),
142
+ className: clsx(prefixCls, className),
143
143
  onMouseDown: onMouseDown,
144
144
  onMouseUp: onMouseUp
145
145
  }, /*#__PURE__*/React.createElement("div", {
@@ -1,7 +1,7 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  import * as React from 'react';
3
3
  import { useRef } from 'react';
4
- import classNames from 'classnames';
4
+ import { clsx } from 'clsx';
5
5
  import CSSMotion from '@rc-component/motion';
6
6
  import { offset } from "../../util";
7
7
  import Panel from "./Panel";
@@ -64,7 +64,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
64
64
  ...style,
65
65
  ...contentStyle
66
66
  },
67
- className: classNames(className, motionClassName)
67
+ className: clsx(className, motionClassName)
68
68
  })));
69
69
  });
70
70
  if (process.env.NODE_ENV !== 'production') {
package/es/Dialog/Mask.js CHANGED
@@ -1,6 +1,6 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
  import * as React from 'react';
3
- import classNames from 'classnames';
3
+ import { clsx } from 'clsx';
4
4
  import CSSMotion from '@rc-component/motion';
5
5
  const Mask = props => {
6
6
  const {
@@ -25,7 +25,7 @@ const Mask = props => {
25
25
  ...motionStyle,
26
26
  ...style
27
27
  },
28
- className: classNames(`${prefixCls}-mask`, motionClassName, className)
28
+ className: clsx(`${prefixCls}-mask`, motionClassName, className)
29
29
  }, maskProps)));
30
30
  };
31
31
  export default Mask;
@@ -1,5 +1,5 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- import classNames from 'classnames';
2
+ import { clsx } from 'clsx';
3
3
  import contains from "@rc-component/util/es/Dom/contains";
4
4
  import useId from "@rc-component/util/es/hooks/useId";
5
5
  import KeyCode from "@rc-component/util/es/KeyCode";
@@ -167,7 +167,7 @@ const Dialog = props => {
167
167
 
168
168
  // ========================= Render =========================
169
169
  return /*#__PURE__*/React.createElement("div", _extends({
170
- className: classNames(`${prefixCls}-root`, rootClassName),
170
+ className: clsx(`${prefixCls}-root`, rootClassName),
171
171
  style: rootStyle
172
172
  }, pickAttrs(props, {
173
173
  data: true
@@ -185,7 +185,7 @@ const Dialog = props => {
185
185
  }), /*#__PURE__*/React.createElement("div", _extends({
186
186
  tabIndex: -1,
187
187
  onKeyDown: onWrapperKeyDown,
188
- className: classNames(`${prefixCls}-wrap`, wrapClassName, modalClassNames?.wrapper),
188
+ className: clsx(`${prefixCls}-wrap`, wrapClassName, modalClassNames?.wrapper),
189
189
  ref: wrapperRef,
190
190
  onClick: onWrapperClick,
191
191
  style: mergedStyle
package/es/DialogWrap.js CHANGED
@@ -19,6 +19,7 @@ const DialogWrap = props => {
19
19
  forceRender,
20
20
  destroyOnHidden = false,
21
21
  afterClose,
22
+ closable,
22
23
  panelRef
23
24
  } = props;
24
25
  const [animatedVisible, setAnimatedVisible] = React.useState(visible);
@@ -45,6 +46,11 @@ const DialogWrap = props => {
45
46
  }, /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
46
47
  destroyOnHidden: destroyOnHidden,
47
48
  afterClose: () => {
49
+ const closableObj = closable && typeof closable === 'object' ? closable : {};
50
+ const {
51
+ afterClose: closableAfterClose
52
+ } = closableObj || {};
53
+ closableAfterClose?.();
48
54
  afterClose?.();
49
55
  setAnimatedVisible(false);
50
56
  }
@@ -3,6 +3,11 @@ import type { CSSProperties, ReactNode, SyntheticEvent } from 'react';
3
3
  export type SemanticName = 'header' | 'body' | 'footer' | 'container' | 'title' | 'wrapper' | 'mask';
4
4
  export type ModalClassNames = Partial<Record<SemanticName, string>>;
5
5
  export type ModalStyles = Partial<Record<SemanticName, CSSProperties>>;
6
+ export type ClosableType = {
7
+ closeIcon?: React.ReactNode;
8
+ disabled?: boolean;
9
+ afterClose?: () => any;
10
+ };
6
11
  export type IDialogPropTypes = {
7
12
  className?: string;
8
13
  keyboard?: boolean;
@@ -13,10 +18,7 @@ export type IDialogPropTypes = {
13
18
  afterClose?: () => any;
14
19
  afterOpenChange?: (open: boolean) => void;
15
20
  onClose?: (e: SyntheticEvent) => any;
16
- closable?: boolean | ({
17
- closeIcon?: React.ReactNode;
18
- disabled?: boolean;
19
- } & React.AriaAttributes);
21
+ closable?: boolean | (ClosableType & React.AriaAttributes);
20
22
  maskClosable?: boolean;
21
23
  visible?: boolean;
22
24
  destroyOnHidden?: boolean;
@@ -4,15 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _classnames = _interopRequireDefault(require("classnames"));
7
+ var _clsx = require("clsx");
8
8
  var _ref = require("@rc-component/util/lib/ref");
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _context = require("../../context");
11
11
  var _MemoChildren = _interopRequireDefault(require("./MemoChildren"));
12
12
  var _pickAttrs = _interopRequireDefault(require("@rc-component/util/lib/pickAttrs"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
17
  const sentinelStyle = {
18
18
  width: 0,
@@ -88,18 +88,18 @@ const Panel = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
88
88
  }
89
89
  // ================================ Render ================================
90
90
  const footerNode = footer ? /*#__PURE__*/_react.default.createElement("div", {
91
- className: (0, _classnames.default)(`${prefixCls}-footer`, modalClassNames?.footer),
91
+ className: (0, _clsx.clsx)(`${prefixCls}-footer`, modalClassNames?.footer),
92
92
  style: {
93
93
  ...modalStyles?.footer
94
94
  }
95
95
  }, footer) : null;
96
96
  const headerNode = title ? /*#__PURE__*/_react.default.createElement("div", {
97
- className: (0, _classnames.default)(`${prefixCls}-header`, modalClassNames?.header),
97
+ className: (0, _clsx.clsx)(`${prefixCls}-header`, modalClassNames?.header),
98
98
  style: {
99
99
  ...modalStyles?.header
100
100
  }
101
101
  }, /*#__PURE__*/_react.default.createElement("div", {
102
- className: (0, _classnames.default)(`${prefixCls}-title`, modalClassNames?.title),
102
+ className: (0, _clsx.clsx)(`${prefixCls}-title`, modalClassNames?.title),
103
103
  id: ariaId,
104
104
  style: {
105
105
  ...modalStyles?.title
@@ -129,10 +129,10 @@ const Panel = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
129
129
  disabled: closeBtnIsDisabled
130
130
  }), closableObj.closeIcon) : null;
131
131
  const content = /*#__PURE__*/_react.default.createElement("div", {
132
- className: (0, _classnames.default)(`${prefixCls}-container`, modalClassNames?.container),
132
+ className: (0, _clsx.clsx)(`${prefixCls}-container`, modalClassNames?.container),
133
133
  style: modalStyles?.container
134
134
  }, closerNode, headerNode, /*#__PURE__*/_react.default.createElement("div", _extends({
135
- className: (0, _classnames.default)(`${prefixCls}-body`, modalClassNames?.body),
135
+ className: (0, _clsx.clsx)(`${prefixCls}-body`, modalClassNames?.body),
136
136
  style: {
137
137
  ...bodyStyle,
138
138
  ...modalStyles?.body
@@ -148,7 +148,7 @@ const Panel = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
148
148
  ...style,
149
149
  ...contentStyle
150
150
  },
151
- className: (0, _classnames.default)(prefixCls, className),
151
+ className: (0, _clsx.clsx)(prefixCls, className),
152
152
  onMouseDown: onMouseDown,
153
153
  onMouseUp: onMouseUp
154
154
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var React = _react;
9
- var _classnames = _interopRequireDefault(require("classnames"));
9
+ var _clsx = require("clsx");
10
10
  var _motion = _interopRequireDefault(require("@rc-component/motion"));
11
11
  var _util = require("../../util");
12
12
  var _Panel = _interopRequireDefault(require("./Panel"));
@@ -73,7 +73,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
73
73
  ...style,
74
74
  ...contentStyle
75
75
  },
76
- className: (0, _classnames.default)(className, motionClassName)
76
+ className: (0, _clsx.clsx)(className, motionClassName)
77
77
  })));
78
78
  });
79
79
  if (process.env.NODE_ENV !== 'production') {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _clsx = require("clsx");
9
9
  var _motion = _interopRequireDefault(require("@rc-component/motion"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
@@ -34,7 +34,7 @@ const Mask = props => {
34
34
  ...motionStyle,
35
35
  ...style
36
36
  },
37
- className: (0, _classnames.default)(`${prefixCls}-mask`, motionClassName, className)
37
+ className: (0, _clsx.clsx)(`${prefixCls}-mask`, motionClassName, className)
38
38
  }, maskProps)));
39
39
  };
40
40
  var _default = exports.default = Mask;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _classnames = _interopRequireDefault(require("classnames"));
7
+ var _clsx = require("clsx");
8
8
  var _contains = _interopRequireDefault(require("@rc-component/util/lib/Dom/contains"));
9
9
  var _useId = _interopRequireDefault(require("@rc-component/util/lib/hooks/useId"));
10
10
  var _KeyCode = _interopRequireDefault(require("@rc-component/util/lib/KeyCode"));
@@ -176,7 +176,7 @@ const Dialog = props => {
176
176
 
177
177
  // ========================= Render =========================
178
178
  return /*#__PURE__*/React.createElement("div", _extends({
179
- className: (0, _classnames.default)(`${prefixCls}-root`, rootClassName),
179
+ className: (0, _clsx.clsx)(`${prefixCls}-root`, rootClassName),
180
180
  style: rootStyle
181
181
  }, (0, _pickAttrs.default)(props, {
182
182
  data: true
@@ -194,7 +194,7 @@ const Dialog = props => {
194
194
  }), /*#__PURE__*/React.createElement("div", _extends({
195
195
  tabIndex: -1,
196
196
  onKeyDown: onWrapperKeyDown,
197
- className: (0, _classnames.default)(`${prefixCls}-wrap`, wrapClassName, modalClassNames?.wrapper),
197
+ className: (0, _clsx.clsx)(`${prefixCls}-wrap`, wrapClassName, modalClassNames?.wrapper),
198
198
  ref: wrapperRef,
199
199
  onClick: onWrapperClick,
200
200
  style: mergedStyle
package/lib/DialogWrap.js CHANGED
@@ -28,6 +28,7 @@ const DialogWrap = props => {
28
28
  forceRender,
29
29
  destroyOnHidden = false,
30
30
  afterClose,
31
+ closable,
31
32
  panelRef
32
33
  } = props;
33
34
  const [animatedVisible, setAnimatedVisible] = React.useState(visible);
@@ -54,6 +55,11 @@ const DialogWrap = props => {
54
55
  }, /*#__PURE__*/React.createElement(_Dialog.default, _extends({}, props, {
55
56
  destroyOnHidden: destroyOnHidden,
56
57
  afterClose: () => {
58
+ const closableObj = closable && typeof closable === 'object' ? closable : {};
59
+ const {
60
+ afterClose: closableAfterClose
61
+ } = closableObj || {};
62
+ closableAfterClose?.();
57
63
  afterClose?.();
58
64
  setAnimatedVisible(false);
59
65
  }
@@ -3,6 +3,11 @@ import type { CSSProperties, ReactNode, SyntheticEvent } from 'react';
3
3
  export type SemanticName = 'header' | 'body' | 'footer' | 'container' | 'title' | 'wrapper' | 'mask';
4
4
  export type ModalClassNames = Partial<Record<SemanticName, string>>;
5
5
  export type ModalStyles = Partial<Record<SemanticName, CSSProperties>>;
6
+ export type ClosableType = {
7
+ closeIcon?: React.ReactNode;
8
+ disabled?: boolean;
9
+ afterClose?: () => any;
10
+ };
6
11
  export type IDialogPropTypes = {
7
12
  className?: string;
8
13
  keyboard?: boolean;
@@ -13,10 +18,7 @@ export type IDialogPropTypes = {
13
18
  afterClose?: () => any;
14
19
  afterOpenChange?: (open: boolean) => void;
15
20
  onClose?: (e: SyntheticEvent) => any;
16
- closable?: boolean | ({
17
- closeIcon?: React.ReactNode;
18
- disabled?: boolean;
19
- } & React.AriaAttributes);
21
+ closable?: boolean | (ClosableType & React.AriaAttributes);
20
22
  maskClosable?: boolean;
21
23
  visible?: boolean;
22
24
  destroyOnHidden?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-component/dialog",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "dialog ui component for react",
5
5
  "keywords": [
6
6
  "react",
@@ -53,7 +53,7 @@
53
53
  "@rc-component/motion": "^1.1.3",
54
54
  "@rc-component/portal": "^2.0.0",
55
55
  "@rc-component/util": "^1.0.1",
56
- "classnames": "^2.2.6"
56
+ "clsx": "^2.1.1"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@rc-component/drawer": "^1.0.0",
@@ -62,18 +62,15 @@
62
62
  "@rc-component/select": "^1.0.0",
63
63
  "@testing-library/jest-dom": "^6.1.6",
64
64
  "@testing-library/react": "^16.3.0",
65
- "@types/jest": "^29.4.0",
65
+ "@types/jest": "^30.0.0",
66
66
  "@types/keyv": "3.1.4",
67
67
  "@types/node": "^24.0.8",
68
68
  "@types/react": "^19.1.4",
69
69
  "@types/react-dom": "^19.1.5",
70
70
  "@umijs/fabric": "^3.0.0",
71
71
  "bootstrap": "^5.3.7",
72
- "cross-env": "^7.0.0",
73
72
  "dumi": "^2.1.3",
74
73
  "eslint": "^7.1.0",
75
- "eslint-config-airbnb": "^19.0.4",
76
- "eslint-plugin-react": "^7.20.6",
77
74
  "father": "^4.1.5",
78
75
  "gh-pages": "^6.1.1",
79
76
  "glob": "^11.0.0",
@@ -1 +0,0 @@
1
- {"js":{"node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","vendors":"vendors-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","demos":"demos-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","docs/changelog.md":"docs_changelog_md-async.js","docs/index.md":"docs_index_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","common":"common-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","meta__docs":"meta__docs-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js"},"css":{"vendors":"vendors-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","demos":"demos-async.css","meta__docs":"meta__docs-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"common":"common-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","meta__docs":"meta__docs-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","docs/index.md":"docs_index_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","demos":"demos-async.js","docs/changelog.md":"docs_changelog_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","vendors":"vendors-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js"},"css":{"meta__docs":"meta__docs-async.css","demos":"demos-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/index.md":"docs_index_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","demos":"demos-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","common":"common-async.js","meta__docs":"meta__docs-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","vendors":"vendors-async.js","docs/changelog.md":"docs_changelog_md-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js"},"css":{"meta__docs":"meta__docs-async.css","demos":"demos-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/changelog.md":"docs_changelog_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","common":"common-async.js","vendors":"vendors-async.js","docs/index.md":"docs_index_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","meta__docs":"meta__docs-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","demos":"demos-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js"},"css":{".dumi/tmp/umi.ts?hmr":"umi.css","meta__docs":"meta__docs-async.css","demos":"demos-async.css","vendors":"vendors-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","vendors":"vendors-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/changelog.md":"docs_changelog_md-async.js","docs/index.md":"docs_index_md-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","demos":"demos-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","meta__docs":"meta__docs-async.js","common":"common-async.js"},"css":{"vendors":"vendors-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","demos":"demos-async.css","meta__docs":"meta__docs-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"common":"common-async.js","docs/changelog.md":"docs_changelog_md-async.js","demos":"demos-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","vendors":"vendors-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","meta__docs":"meta__docs-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/index.md":"docs_index_md-async.js"},"css":{".dumi/tmp/umi.ts?hmr":"umi.css","meta__docs":"meta__docs-async.css","demos":"demos-async.css","vendors":"vendors-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"demos":"demos-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","vendors":"vendors-async.js","docs/index.md":"docs_index_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","meta__docs":"meta__docs-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","docs/changelog.md":"docs_changelog_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","common":"common-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js"},"css":{"demos":"demos-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css","meta__docs":"meta__docs-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"demos":"demos-async.js","meta__docs":"meta__docs-async.js","vendors":"vendors-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","docs/changelog.md":"docs_changelog_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","common":"common-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","docs/index.md":"docs_index_md-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js"},"css":{"meta__docs":"meta__docs-async.css","vendors":"vendors-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","demos":"demos-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"meta__docs":"meta__docs-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","docs/changelog.md":"docs_changelog_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","demos":"demos-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/index.md":"docs_index_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","vendors":"vendors-async.js","common":"common-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js"},"css":{"meta__docs":"meta__docs-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css","demos":"demos-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["meta__docs-async.js","demos-async.js","common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"docs/changelog.md":"docs_changelog_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","meta__docs":"meta__docs-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","demos":"demos-async.js","vendors":"vendors-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","common":"common-async.js","docs/index.md":"docs_index_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js"},"css":{"vendors":"vendors-async.css","demos":"demos-async.css","meta__docs":"meta__docs-async.css",".dumi/tmp/umi.ts?hmr":"umi.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","demos":"demos-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/index.md":"docs_index_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","vendors":"vendors-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/changelog.md":"docs_changelog_md-async.js","common":"common-async.js","meta__docs":"meta__docs-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js"},"css":{".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css","meta__docs":"meta__docs-async.css","demos":"demos-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","vendors":"vendors-async.js","docs/changelog.md":"docs_changelog_md-async.js","common":"common-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","meta__docs":"meta__docs-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","demos":"demos-async.js","docs/index.md":"docs_index_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js"},"css":{"demos":"demos-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css","meta__docs":"meta__docs-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"vendors":"vendors-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/changelog.md":"docs_changelog_md-async.js","meta__docs":"meta__docs-async.js","common":"common-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","demos":"demos-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","docs/index.md":"docs_index_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js"},"css":{"vendors":"vendors-async.css","meta__docs":"meta__docs-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","demos":"demos-async.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}
@@ -1 +0,0 @@
1
- {"js":{"docs/index.md":"docs_index_md-async.js","common":"common-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/changelog.md":"docs_changelog_md-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","meta__docs":"meta__docs-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","vendors":"vendors-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","demos":"demos-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/pure.md":"docs_demo_pure_md-async.js"},"css":{"vendors":"vendors-async.css","meta__docs":"meta__docs-async.css","demos":"demos-async.css",".dumi/tmp/umi.ts?hmr":"umi.css"}}
@@ -1 +0,0 @@
1
- {"c":["common-async.js"],"r":[]}