@rc-component/dialog 1.5.0 → 1.6.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.
- package/README.md +24 -17
- package/dist/common-async.js +1488 -150
- package/dist/common-async.js.map +1 -1
- package/dist/demos-async.css +3 -3
- package/dist/demos-async.css.map +1 -1
- package/dist/demos-async.js +57 -57
- package/dist/demos-async.js.map +1 -1
- package/dist/docs_changelog_md-async.js +1823 -1841
- package/dist/docs_changelog_md-async.js.map +1 -1
- package/dist/docs_demo_ant-design_md-async.js +34 -52
- package/dist/docs_demo_ant-design_md-async.js.map +1 -1
- package/dist/docs_demo_bootstrap_md-async.js +34 -52
- package/dist/docs_demo_bootstrap_md-async.js.map +1 -1
- package/dist/docs_demo_draggable_md-async.js +34 -52
- package/dist/docs_demo_draggable_md-async.js.map +1 -1
- package/dist/docs_demo_multiple-Portal_md-async.js +80 -52
- package/dist/docs_demo_multiple-Portal_md-async.js.map +1 -1
- package/dist/docs_demo_pure_md-async.js +34 -52
- package/dist/docs_demo_pure_md-async.js.map +1 -1
- package/dist/docs_index_md-async.js +1617 -1580
- package/dist/docs_index_md-async.js.map +1 -1
- package/dist/dumi__tmp__dumi__theme__ContextWrapper-async.js +10 -10
- package/dist/dumi__tmp__dumi__theme__ContextWrapper-async.js.map +1 -1
- package/dist/meta__docs-async.css +3 -3
- package/dist/meta__docs-async.css.map +1 -1
- package/dist/meta__docs-async.js +72 -1415
- package/dist/meta__docs-async.js.map +1 -1
- package/dist/nm__dumi__dist__client__pages__404-async.js +3 -3
- package/dist/nm__dumi__dist__client__pages__404-async.js.map +1 -1
- package/dist/nm__dumi__dist__client__pages__Demo__index-async.js +3 -3
- package/dist/nm__dumi__dist__client__pages__Demo__index-async.js.map +1 -1
- package/dist/{node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js → node_modules_dumi_dist_client_misc_reactDemoCompiler_js-async.js} +4 -4
- package/dist/node_modules_dumi_dist_client_misc_reactDemoCompiler_js-async.js.map +1 -0
- package/dist/{node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js → node_modules_dumi_theme-default_layouts_DocLayout_index_js-async.js} +44 -44
- package/dist/node_modules_dumi_theme-default_layouts_DocLayout_index_js-async.js.map +1 -0
- package/dist/{node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js → node_modules_react-dom_server_browser_js-async.js} +5 -5
- package/dist/node_modules_react-dom_server_browser_js-async.js.map +1 -0
- package/dist/umi.css +15 -0
- package/dist/umi.css.map +1 -1
- package/dist/umi.js +31515 -28954
- package/dist/umi.js.map +1 -1
- package/dist/vendors-async.css +18794 -15080
- package/dist/vendors-async.css.map +1 -1
- package/dist/vendors-async.js +15650 -12147
- package/dist/vendors-async.js.map +1 -1
- package/es/Dialog/Content/Panel.d.ts +0 -1
- package/es/Dialog/Content/Panel.js +15 -44
- package/es/Dialog/Content/index.js +2 -2
- package/es/Dialog/Mask.js +2 -2
- package/es/Dialog/index.js +3 -10
- package/lib/Dialog/Content/Panel.d.ts +0 -1
- package/lib/Dialog/Content/Panel.js +16 -45
- package/lib/Dialog/Content/index.js +2 -2
- package/lib/Dialog/Mask.js +2 -2
- package/lib/Dialog/index.js +3 -10
- package/package.json +4 -7
- package/dist/10509781610555453368.hot-update-url-map.json +0 -1
- package/dist/10509781610555453368.hot-update.json +0 -1
- package/dist/11977476592833392720.hot-update-url-map.json +0 -1
- package/dist/11977476592833392720.hot-update.json +0 -1
- package/dist/14397576132152343869.hot-update-url-map.json +0 -1
- package/dist/14397576132152343869.hot-update.json +0 -1
- package/dist/14597408625395534096.hot-update-url-map.json +0 -1
- package/dist/14597408625395534096.hot-update.json +0 -1
- package/dist/15104553912779929595.hot-update-url-map.json +0 -1
- package/dist/15104553912779929595.hot-update.json +0 -1
- package/dist/4361192314875393955.hot-update-url-map.json +0 -1
- package/dist/4361192314875393955.hot-update.json +0 -1
- package/dist/4704580574928883170.hot-update-url-map.json +0 -1
- package/dist/4704580574928883170.hot-update.json +0 -1
- package/dist/5496443382647786649.hot-update-url-map.json +0 -1
- package/dist/5496443382647786649.hot-update.json +0 -1
- package/dist/7338948553039754745.hot-update-url-map.json +0 -1
- package/dist/7338948553039754745.hot-update.json +0 -1
- package/dist/7441995189917427860.hot-update-url-map.json +0 -1
- package/dist/7441995189917427860.hot-update.json +0 -1
- package/dist/8425845753817463333.hot-update-url-map.json +0 -1
- package/dist/8425845753817463333.hot-update.json +0 -1
- package/dist/8742625841545363477.hot-update-url-map.json +0 -1
- package/dist/8742625841545363477.hot-update.json +0 -1
- package/dist/960384830459946830.hot-update-url-map.json +0 -1
- package/dist/960384830459946830.hot-update.json +0 -1
- package/dist/9707589364653732454.hot-update-url-map.json +0 -1
- package/dist/9707589364653732454.hot-update.json +0 -1
- package/dist/common-async.10509781610555453368.hot-update.js +0 -268
- package/dist/common-async.10509781610555453368.hot-update.js.map +0 -1
- package/dist/common-async.11977476592833392720.hot-update.js +0 -395
- package/dist/common-async.11977476592833392720.hot-update.js.map +0 -1
- package/dist/common-async.14397576132152343869.hot-update.js +0 -395
- package/dist/common-async.14397576132152343869.hot-update.js.map +0 -1
- package/dist/common-async.14597408625395534096.hot-update.js +0 -268
- package/dist/common-async.14597408625395534096.hot-update.js.map +0 -1
- package/dist/common-async.15104553912779929595.hot-update.js +0 -268
- package/dist/common-async.15104553912779929595.hot-update.js.map +0 -1
- package/dist/common-async.4361192314875393955.hot-update.js +0 -268
- package/dist/common-async.4361192314875393955.hot-update.js.map +0 -1
- package/dist/common-async.4704580574928883170.hot-update.js +0 -268
- package/dist/common-async.4704580574928883170.hot-update.js.map +0 -1
- package/dist/common-async.5496443382647786649.hot-update.js +0 -391
- package/dist/common-async.5496443382647786649.hot-update.js.map +0 -1
- package/dist/common-async.7338948553039754745.hot-update.js +0 -395
- package/dist/common-async.7338948553039754745.hot-update.js.map +0 -1
- package/dist/common-async.7441995189917427860.hot-update.js +0 -394
- package/dist/common-async.7441995189917427860.hot-update.js.map +0 -1
- package/dist/common-async.8425845753817463333.hot-update.js +0 -268
- package/dist/common-async.8425845753817463333.hot-update.js.map +0 -1
- package/dist/common-async.8742625841545363477.hot-update.js +0 -268
- package/dist/common-async.8742625841545363477.hot-update.js.map +0 -1
- package/dist/common-async.960384830459946830.hot-update.js +0 -268
- package/dist/common-async.960384830459946830.hot-update.js.map +0 -1
- package/dist/common-async.9707589364653732454.hot-update.js +0 -268
- package/dist/common-async.9707589364653732454.hot-update.js.map +0 -1
- package/dist/demos-async.7338948553039754745.hot-update.js +0 -395
- package/dist/demos-async.7338948553039754745.hot-update.js.map +0 -1
- package/dist/meta__docs-async.7338948553039754745.hot-update.js +0 -395
- package/dist/meta__docs-async.7338948553039754745.hot-update.js.map +0 -1
- package/dist/node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js.map +0 -1
- package/dist/node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js.map +0 -1
- package/dist/node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js.map +0 -1
|
@@ -9,7 +9,6 @@ export interface PanelProps extends Omit<IDialogPropTypes, 'getOpenCount'> {
|
|
|
9
9
|
}
|
|
10
10
|
export type PanelRef = {
|
|
11
11
|
focus: () => void;
|
|
12
|
-
changeActive: (next: boolean) => void;
|
|
13
12
|
};
|
|
14
13
|
declare const Panel: React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<PanelRef>>;
|
|
15
14
|
export default Panel;
|
|
@@ -1,19 +1,11 @@
|
|
|
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
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
3
|
import { useComposeRef } from "@rc-component/util/es/ref";
|
|
4
|
+
import { useLockFocus } from "@rc-component/util/es/Dom/focus";
|
|
4
5
|
import React, { useMemo, useRef } from 'react';
|
|
5
6
|
import { RefContext } from "../../context";
|
|
6
7
|
import MemoChildren from "./MemoChildren";
|
|
7
8
|
import pickAttrs from "@rc-component/util/es/pickAttrs";
|
|
8
|
-
const sentinelStyle = {
|
|
9
|
-
width: 0,
|
|
10
|
-
height: 0,
|
|
11
|
-
overflow: 'hidden',
|
|
12
|
-
outline: 'none'
|
|
13
|
-
};
|
|
14
|
-
const entityStyle = {
|
|
15
|
-
outline: 'none'
|
|
16
|
-
};
|
|
17
9
|
const Panel = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
18
10
|
const {
|
|
19
11
|
prefixCls,
|
|
@@ -44,28 +36,14 @@ const Panel = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
44
36
|
const {
|
|
45
37
|
panel: panelRef
|
|
46
38
|
} = React.useContext(RefContext);
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
|
|
39
|
+
const internalRef = useRef(null);
|
|
40
|
+
const mergedRef = useComposeRef(holderRef, panelRef, internalRef);
|
|
41
|
+
useLockFocus(visible, () => internalRef.current);
|
|
50
42
|
React.useImperativeHandle(ref, () => ({
|
|
51
43
|
focus: () => {
|
|
52
|
-
|
|
44
|
+
internalRef.current?.focus({
|
|
53
45
|
preventScroll: true
|
|
54
46
|
});
|
|
55
|
-
},
|
|
56
|
-
changeActive: next => {
|
|
57
|
-
const {
|
|
58
|
-
activeElement
|
|
59
|
-
} = document;
|
|
60
|
-
if (next && activeElement === sentinelEndRef.current) {
|
|
61
|
-
sentinelStartRef.current.focus({
|
|
62
|
-
preventScroll: true
|
|
63
|
-
});
|
|
64
|
-
} else if (!next && activeElement === sentinelStartRef.current) {
|
|
65
|
-
sentinelEndRef.current.focus({
|
|
66
|
-
preventScroll: true
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
47
|
}
|
|
70
48
|
}));
|
|
71
49
|
|
|
@@ -79,18 +57,18 @@ const Panel = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
79
57
|
}
|
|
80
58
|
// ================================ Render ================================
|
|
81
59
|
const footerNode = footer ? /*#__PURE__*/React.createElement("div", {
|
|
82
|
-
className:
|
|
60
|
+
className: clsx(`${prefixCls}-footer`, modalClassNames?.footer),
|
|
83
61
|
style: {
|
|
84
62
|
...modalStyles?.footer
|
|
85
63
|
}
|
|
86
64
|
}, footer) : null;
|
|
87
65
|
const headerNode = title ? /*#__PURE__*/React.createElement("div", {
|
|
88
|
-
className:
|
|
66
|
+
className: clsx(`${prefixCls}-header`, modalClassNames?.header),
|
|
89
67
|
style: {
|
|
90
68
|
...modalStyles?.header
|
|
91
69
|
}
|
|
92
70
|
}, /*#__PURE__*/React.createElement("div", {
|
|
93
|
-
className:
|
|
71
|
+
className: clsx(`${prefixCls}-title`, modalClassNames?.title),
|
|
94
72
|
id: ariaId,
|
|
95
73
|
style: {
|
|
96
74
|
...modalStyles?.title
|
|
@@ -120,10 +98,10 @@ const Panel = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
120
98
|
disabled: closeBtnIsDisabled
|
|
121
99
|
}), closableObj.closeIcon) : null;
|
|
122
100
|
const content = /*#__PURE__*/React.createElement("div", {
|
|
123
|
-
className:
|
|
101
|
+
className: clsx(`${prefixCls}-container`, modalClassNames?.container),
|
|
124
102
|
style: modalStyles?.container
|
|
125
103
|
}, closerNode, headerNode, /*#__PURE__*/React.createElement("div", _extends({
|
|
126
|
-
className:
|
|
104
|
+
className: clsx(`${prefixCls}-body`, modalClassNames?.body),
|
|
127
105
|
style: {
|
|
128
106
|
...bodyStyle,
|
|
129
107
|
...modalStyles?.body
|
|
@@ -139,20 +117,13 @@ const Panel = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
139
117
|
...style,
|
|
140
118
|
...contentStyle
|
|
141
119
|
},
|
|
142
|
-
className:
|
|
120
|
+
className: clsx(prefixCls, className),
|
|
143
121
|
onMouseDown: onMouseDown,
|
|
144
|
-
onMouseUp: onMouseUp
|
|
145
|
-
|
|
146
|
-
ref: sentinelStartRef,
|
|
147
|
-
tabIndex: 0,
|
|
148
|
-
style: entityStyle
|
|
122
|
+
onMouseUp: onMouseUp,
|
|
123
|
+
tabIndex: -1
|
|
149
124
|
}, /*#__PURE__*/React.createElement(MemoChildren, {
|
|
150
125
|
shouldUpdate: visible || forceRender
|
|
151
|
-
}, modalRender ? modalRender(content) : content))
|
|
152
|
-
tabIndex: 0,
|
|
153
|
-
ref: sentinelEndRef,
|
|
154
|
-
style: sentinelStyle
|
|
155
|
-
}));
|
|
126
|
+
}, modalRender ? modalRender(content) : content));
|
|
156
127
|
});
|
|
157
128
|
if (process.env.NODE_ENV !== 'production') {
|
|
158
129
|
Panel.displayName = 'Panel';
|
|
@@ -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
|
|
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:
|
|
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
|
|
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:
|
|
28
|
+
className: clsx(`${prefixCls}-mask`, motionClassName, className)
|
|
29
29
|
}, maskProps)));
|
|
30
30
|
};
|
|
31
31
|
export default Mask;
|
package/es/Dialog/index.js
CHANGED
|
@@ -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
|
|
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";
|
|
@@ -43,7 +43,6 @@ const Dialog = props => {
|
|
|
43
43
|
} = props;
|
|
44
44
|
if (process.env.NODE_ENV !== 'production') {
|
|
45
45
|
['wrapStyle', 'bodyStyle', 'maskStyle'].forEach(prop => {
|
|
46
|
-
// (prop in props) && console.error(`Warning: ${prop} is deprecated, please use styles instead.`)
|
|
47
46
|
warning(!(prop in props), `${prop} is deprecated, please use styles instead.`);
|
|
48
47
|
});
|
|
49
48
|
if ('wrapClassName' in props) {
|
|
@@ -137,11 +136,6 @@ const Dialog = props => {
|
|
|
137
136
|
onInternalClose(e);
|
|
138
137
|
return;
|
|
139
138
|
}
|
|
140
|
-
|
|
141
|
-
// keep focus inside dialog
|
|
142
|
-
if (visible && e.keyCode === KeyCode.TAB) {
|
|
143
|
-
contentRef.current.changeActive(!e.shiftKey);
|
|
144
|
-
}
|
|
145
139
|
}
|
|
146
140
|
|
|
147
141
|
// ========================= Effect =========================
|
|
@@ -167,7 +161,7 @@ const Dialog = props => {
|
|
|
167
161
|
|
|
168
162
|
// ========================= Render =========================
|
|
169
163
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
170
|
-
className:
|
|
164
|
+
className: clsx(`${prefixCls}-root`, rootClassName),
|
|
171
165
|
style: rootStyle
|
|
172
166
|
}, pickAttrs(props, {
|
|
173
167
|
data: true
|
|
@@ -183,9 +177,8 @@ const Dialog = props => {
|
|
|
183
177
|
maskProps: maskProps,
|
|
184
178
|
className: modalClassNames?.mask
|
|
185
179
|
}), /*#__PURE__*/React.createElement("div", _extends({
|
|
186
|
-
tabIndex: -1,
|
|
187
180
|
onKeyDown: onWrapperKeyDown,
|
|
188
|
-
className:
|
|
181
|
+
className: clsx(`${prefixCls}-wrap`, wrapClassName, modalClassNames?.wrapper),
|
|
189
182
|
ref: wrapperRef,
|
|
190
183
|
onClick: onWrapperClick,
|
|
191
184
|
style: mergedStyle
|
|
@@ -9,7 +9,6 @@ export interface PanelProps extends Omit<IDialogPropTypes, 'getOpenCount'> {
|
|
|
9
9
|
}
|
|
10
10
|
export type PanelRef = {
|
|
11
11
|
focus: () => void;
|
|
12
|
-
changeActive: (next: boolean) => void;
|
|
13
12
|
};
|
|
14
13
|
declare const Panel: React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<PanelRef>>;
|
|
15
14
|
export default Panel;
|
|
@@ -4,25 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _clsx = require("clsx");
|
|
8
8
|
var _ref = require("@rc-component/util/lib/ref");
|
|
9
|
+
var _focus = require("@rc-component/util/lib/Dom/focus");
|
|
9
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
11
|
var _context = require("../../context");
|
|
11
12
|
var _MemoChildren = _interopRequireDefault(require("./MemoChildren"));
|
|
12
13
|
var _pickAttrs = _interopRequireDefault(require("@rc-component/util/lib/pickAttrs"));
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
15
|
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
16
|
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
17
|
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
|
-
const sentinelStyle = {
|
|
18
|
-
width: 0,
|
|
19
|
-
height: 0,
|
|
20
|
-
overflow: 'hidden',
|
|
21
|
-
outline: 'none'
|
|
22
|
-
};
|
|
23
|
-
const entityStyle = {
|
|
24
|
-
outline: 'none'
|
|
25
|
-
};
|
|
26
18
|
const Panel = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
27
19
|
const {
|
|
28
20
|
prefixCls,
|
|
@@ -53,28 +45,14 @@ const Panel = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
53
45
|
const {
|
|
54
46
|
panel: panelRef
|
|
55
47
|
} = _react.default.useContext(_context.RefContext);
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
|
|
48
|
+
const internalRef = (0, _react.useRef)(null);
|
|
49
|
+
const mergedRef = (0, _ref.useComposeRef)(holderRef, panelRef, internalRef);
|
|
50
|
+
(0, _focus.useLockFocus)(visible, () => internalRef.current);
|
|
59
51
|
_react.default.useImperativeHandle(ref, () => ({
|
|
60
52
|
focus: () => {
|
|
61
|
-
|
|
53
|
+
internalRef.current?.focus({
|
|
62
54
|
preventScroll: true
|
|
63
55
|
});
|
|
64
|
-
},
|
|
65
|
-
changeActive: next => {
|
|
66
|
-
const {
|
|
67
|
-
activeElement
|
|
68
|
-
} = document;
|
|
69
|
-
if (next && activeElement === sentinelEndRef.current) {
|
|
70
|
-
sentinelStartRef.current.focus({
|
|
71
|
-
preventScroll: true
|
|
72
|
-
});
|
|
73
|
-
} else if (!next && activeElement === sentinelStartRef.current) {
|
|
74
|
-
sentinelEndRef.current.focus({
|
|
75
|
-
preventScroll: true
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
56
|
}
|
|
79
57
|
}));
|
|
80
58
|
|
|
@@ -88,18 +66,18 @@ const Panel = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
88
66
|
}
|
|
89
67
|
// ================================ Render ================================
|
|
90
68
|
const footerNode = footer ? /*#__PURE__*/_react.default.createElement("div", {
|
|
91
|
-
className: (0,
|
|
69
|
+
className: (0, _clsx.clsx)(`${prefixCls}-footer`, modalClassNames?.footer),
|
|
92
70
|
style: {
|
|
93
71
|
...modalStyles?.footer
|
|
94
72
|
}
|
|
95
73
|
}, footer) : null;
|
|
96
74
|
const headerNode = title ? /*#__PURE__*/_react.default.createElement("div", {
|
|
97
|
-
className: (0,
|
|
75
|
+
className: (0, _clsx.clsx)(`${prefixCls}-header`, modalClassNames?.header),
|
|
98
76
|
style: {
|
|
99
77
|
...modalStyles?.header
|
|
100
78
|
}
|
|
101
79
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
102
|
-
className: (0,
|
|
80
|
+
className: (0, _clsx.clsx)(`${prefixCls}-title`, modalClassNames?.title),
|
|
103
81
|
id: ariaId,
|
|
104
82
|
style: {
|
|
105
83
|
...modalStyles?.title
|
|
@@ -129,10 +107,10 @@ const Panel = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
129
107
|
disabled: closeBtnIsDisabled
|
|
130
108
|
}), closableObj.closeIcon) : null;
|
|
131
109
|
const content = /*#__PURE__*/_react.default.createElement("div", {
|
|
132
|
-
className: (0,
|
|
110
|
+
className: (0, _clsx.clsx)(`${prefixCls}-container`, modalClassNames?.container),
|
|
133
111
|
style: modalStyles?.container
|
|
134
112
|
}, closerNode, headerNode, /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
135
|
-
className: (0,
|
|
113
|
+
className: (0, _clsx.clsx)(`${prefixCls}-body`, modalClassNames?.body),
|
|
136
114
|
style: {
|
|
137
115
|
...bodyStyle,
|
|
138
116
|
...modalStyles?.body
|
|
@@ -148,20 +126,13 @@ const Panel = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
|
148
126
|
...style,
|
|
149
127
|
...contentStyle
|
|
150
128
|
},
|
|
151
|
-
className: (0,
|
|
129
|
+
className: (0, _clsx.clsx)(prefixCls, className),
|
|
152
130
|
onMouseDown: onMouseDown,
|
|
153
|
-
onMouseUp: onMouseUp
|
|
154
|
-
|
|
155
|
-
ref: sentinelStartRef,
|
|
156
|
-
tabIndex: 0,
|
|
157
|
-
style: entityStyle
|
|
131
|
+
onMouseUp: onMouseUp,
|
|
132
|
+
tabIndex: -1
|
|
158
133
|
}, /*#__PURE__*/_react.default.createElement(_MemoChildren.default, {
|
|
159
134
|
shouldUpdate: visible || forceRender
|
|
160
|
-
}, modalRender ? modalRender(content) : content))
|
|
161
|
-
tabIndex: 0,
|
|
162
|
-
ref: sentinelEndRef,
|
|
163
|
-
style: sentinelStyle
|
|
164
|
-
}));
|
|
135
|
+
}, modalRender ? modalRender(content) : content));
|
|
165
136
|
});
|
|
166
137
|
if (process.env.NODE_ENV !== 'production') {
|
|
167
138
|
Panel.displayName = 'Panel';
|
|
@@ -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
|
|
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,
|
|
76
|
+
className: (0, _clsx.clsx)(className, motionClassName)
|
|
77
77
|
})));
|
|
78
78
|
});
|
|
79
79
|
if (process.env.NODE_ENV !== 'production') {
|
package/lib/Dialog/Mask.js
CHANGED
|
@@ -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
|
|
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,
|
|
37
|
+
className: (0, _clsx.clsx)(`${prefixCls}-mask`, motionClassName, className)
|
|
38
38
|
}, maskProps)));
|
|
39
39
|
};
|
|
40
40
|
var _default = exports.default = Mask;
|
package/lib/Dialog/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
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"));
|
|
@@ -52,7 +52,6 @@ const Dialog = props => {
|
|
|
52
52
|
} = props;
|
|
53
53
|
if (process.env.NODE_ENV !== 'production') {
|
|
54
54
|
['wrapStyle', 'bodyStyle', 'maskStyle'].forEach(prop => {
|
|
55
|
-
// (prop in props) && console.error(`Warning: ${prop} is deprecated, please use styles instead.`)
|
|
56
55
|
(0, _warning.warning)(!(prop in props), `${prop} is deprecated, please use styles instead.`);
|
|
57
56
|
});
|
|
58
57
|
if ('wrapClassName' in props) {
|
|
@@ -146,11 +145,6 @@ const Dialog = props => {
|
|
|
146
145
|
onInternalClose(e);
|
|
147
146
|
return;
|
|
148
147
|
}
|
|
149
|
-
|
|
150
|
-
// keep focus inside dialog
|
|
151
|
-
if (visible && e.keyCode === _KeyCode.default.TAB) {
|
|
152
|
-
contentRef.current.changeActive(!e.shiftKey);
|
|
153
|
-
}
|
|
154
148
|
}
|
|
155
149
|
|
|
156
150
|
// ========================= Effect =========================
|
|
@@ -176,7 +170,7 @@ const Dialog = props => {
|
|
|
176
170
|
|
|
177
171
|
// ========================= Render =========================
|
|
178
172
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
179
|
-
className: (0,
|
|
173
|
+
className: (0, _clsx.clsx)(`${prefixCls}-root`, rootClassName),
|
|
180
174
|
style: rootStyle
|
|
181
175
|
}, (0, _pickAttrs.default)(props, {
|
|
182
176
|
data: true
|
|
@@ -192,9 +186,8 @@ const Dialog = props => {
|
|
|
192
186
|
maskProps: maskProps,
|
|
193
187
|
className: modalClassNames?.mask
|
|
194
188
|
}), /*#__PURE__*/React.createElement("div", _extends({
|
|
195
|
-
tabIndex: -1,
|
|
196
189
|
onKeyDown: onWrapperKeyDown,
|
|
197
|
-
className: (0,
|
|
190
|
+
className: (0, _clsx.clsx)(`${prefixCls}-wrap`, wrapClassName, modalClassNames?.wrapper),
|
|
198
191
|
ref: wrapperRef,
|
|
199
192
|
onClick: onWrapperClick,
|
|
200
193
|
style: mergedStyle
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rc-component/dialog",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "dialog ui component for react",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@rc-component/motion": "^1.1.3",
|
|
54
54
|
"@rc-component/portal": "^2.0.0",
|
|
55
|
-
"@rc-component/util": "^1.0
|
|
56
|
-
"
|
|
55
|
+
"@rc-component/util": "^1.5.0",
|
|
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": "^
|
|
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":[]}
|