@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
package/dist/common-async.js
CHANGED
|
@@ -1,12 +1,768 @@
|
|
|
1
1
|
((typeof globalThis !== 'undefined' ? globalThis : self)["makoChunk_@rc-component/dialog"] = (typeof globalThis !== 'undefined' ? globalThis : self)["makoChunk_@rc-component/dialog"] || []).push([
|
|
2
2
|
['common'],
|
|
3
|
-
{ "docs/
|
|
3
|
+
{ "docs/changelog.md?type=text": function (module, exports, __mako_require__){
|
|
4
4
|
"use strict";
|
|
5
5
|
__mako_require__.d(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
__mako_require__.d(exports, "texts", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return texts;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
8
14
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
9
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
15
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
16
|
+
__mako_require__("docs/changelog.md?watch=parent");
|
|
17
|
+
var prevRefreshReg;
|
|
18
|
+
var prevRefreshSig;
|
|
19
|
+
prevRefreshReg = self.$RefreshReg$;
|
|
20
|
+
prevRefreshSig = self.$RefreshSig$;
|
|
21
|
+
self.$RefreshReg$ = (type, id)=>{
|
|
22
|
+
_reactrefresh.register(type, module.id + id);
|
|
23
|
+
};
|
|
24
|
+
self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
|
|
25
|
+
const texts = [
|
|
26
|
+
{
|
|
27
|
+
"value": "2021-01-07",
|
|
28
|
+
"paraId": 0,
|
|
29
|
+
"tocIndex": 1
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"value": "improve: ScrollLocker call related. ",
|
|
33
|
+
"paraId": 1,
|
|
34
|
+
"tocIndex": 1
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"value": "#227",
|
|
38
|
+
"paraId": 1,
|
|
39
|
+
"tocIndex": 1
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"value": "2021-01-04",
|
|
43
|
+
"paraId": 2,
|
|
44
|
+
"tocIndex": 2
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"value": "refactor: use ScrollLocker. ",
|
|
48
|
+
"paraId": 3,
|
|
49
|
+
"tocIndex": 2
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"value": "#220",
|
|
53
|
+
"paraId": 3,
|
|
54
|
+
"tocIndex": 2
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"value": "2020-12-19",
|
|
58
|
+
"paraId": 4,
|
|
59
|
+
"tocIndex": 3
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"value": "fix: trigger close only when click wrap itself. ",
|
|
63
|
+
"paraId": 5,
|
|
64
|
+
"tocIndex": 3
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"value": "#218",
|
|
68
|
+
"paraId": 5,
|
|
69
|
+
"tocIndex": 3
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"value": "2020-12-07",
|
|
73
|
+
"paraId": 6,
|
|
74
|
+
"tocIndex": 4
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"value": "fix: Dialog should keep refresh when forceRender provided. ",
|
|
78
|
+
"paraId": 7,
|
|
79
|
+
"tocIndex": 4
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"value": "#217",
|
|
83
|
+
"paraId": 7,
|
|
84
|
+
"tocIndex": 4
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"value": "2020-12-03",
|
|
88
|
+
"paraId": 8,
|
|
89
|
+
"tocIndex": 5
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"value": "fix: dialog dont close when mouseDown in content and mouseUp in wrapper. ",
|
|
93
|
+
"paraId": 9,
|
|
94
|
+
"tocIndex": 5
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"value": "#210",
|
|
98
|
+
"paraId": 9,
|
|
99
|
+
"tocIndex": 5
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"value": "chore: Should not re-render when dialog is invisible. ",
|
|
103
|
+
"paraId": 10,
|
|
104
|
+
"tocIndex": 5
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"value": "#212",
|
|
108
|
+
"paraId": 10,
|
|
109
|
+
"tocIndex": 5
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"value": "2020-10-21",
|
|
113
|
+
"paraId": 11,
|
|
114
|
+
"tocIndex": 6
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"value": "chore: support react 17. ",
|
|
118
|
+
"paraId": 12,
|
|
119
|
+
"tocIndex": 6
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"value": "#207",
|
|
123
|
+
"paraId": 12,
|
|
124
|
+
"tocIndex": 6
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"value": "2020-10-14",
|
|
128
|
+
"paraId": 13,
|
|
129
|
+
"tocIndex": 7
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"value": "fix: Dialog should not auto destroy. ",
|
|
133
|
+
"paraId": 14,
|
|
134
|
+
"tocIndex": 7
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"value": "#206",
|
|
138
|
+
"paraId": 14,
|
|
139
|
+
"tocIndex": 7
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"value": "2020-10-11",
|
|
143
|
+
"paraId": 15,
|
|
144
|
+
"tocIndex": 8
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"value": "fix: Portal event bubble. ",
|
|
148
|
+
"paraId": 16,
|
|
149
|
+
"tocIndex": 8
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"value": "#204",
|
|
153
|
+
"paraId": 16,
|
|
154
|
+
"tocIndex": 8
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"value": "2020-09-29",
|
|
158
|
+
"paraId": 17,
|
|
159
|
+
"tocIndex": 9
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"value": "refactor: Use ",
|
|
163
|
+
"paraId": 18,
|
|
164
|
+
"tocIndex": 9
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"value": "rc-motion",
|
|
168
|
+
"paraId": 18,
|
|
169
|
+
"tocIndex": 9
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"value": ". ",
|
|
173
|
+
"paraId": 18,
|
|
174
|
+
"tocIndex": 9
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"value": "#203",
|
|
178
|
+
"paraId": 18,
|
|
179
|
+
"tocIndex": 9
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"value": "fix: prevent scroll behavior when focus trigger. ",
|
|
183
|
+
"paraId": 19,
|
|
184
|
+
"tocIndex": 10
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"value": "ant-design/ant-design#26582",
|
|
188
|
+
"paraId": 19,
|
|
189
|
+
"tocIndex": 10
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"value": "fix: page scroll position will jump after dialog is closed. ",
|
|
193
|
+
"paraId": 20,
|
|
194
|
+
"tocIndex": 11
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"value": "#202",
|
|
198
|
+
"paraId": 20,
|
|
199
|
+
"tocIndex": 11
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"value": "fix: remove typing from package.json. ",
|
|
203
|
+
"paraId": 21,
|
|
204
|
+
"tocIndex": 12
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"value": "#201",
|
|
208
|
+
"paraId": 21,
|
|
209
|
+
"tocIndex": 12
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"value": "fix: add displayName. ",
|
|
213
|
+
"paraId": 22,
|
|
214
|
+
"tocIndex": 13
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"value": "#200",
|
|
218
|
+
"paraId": 22,
|
|
219
|
+
"tocIndex": 13
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"value": "fate: add ",
|
|
223
|
+
"paraId": 23,
|
|
224
|
+
"tocIndex": 14
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"value": "modalRender",
|
|
228
|
+
"paraId": 23,
|
|
229
|
+
"tocIndex": 14
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"value": ". ",
|
|
233
|
+
"paraId": 23,
|
|
234
|
+
"tocIndex": 14
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"value": "#195",
|
|
238
|
+
"paraId": 23,
|
|
239
|
+
"tocIndex": 14
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"value": "use ",
|
|
243
|
+
"paraId": 24,
|
|
244
|
+
"tocIndex": 15
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"value": "father",
|
|
248
|
+
"paraId": 24,
|
|
249
|
+
"tocIndex": 15
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"value": ". ",
|
|
253
|
+
"paraId": 24,
|
|
254
|
+
"tocIndex": 15
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"value": "#197",
|
|
258
|
+
"paraId": 24,
|
|
259
|
+
"tocIndex": 15
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"value": "Fix dialog component will only show mask, if initialize a Dialog component with both forceRender and visible are true. ",
|
|
263
|
+
"paraId": 25,
|
|
264
|
+
"tocIndex": 16
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"value": "#194",
|
|
268
|
+
"paraId": 25,
|
|
269
|
+
"tocIndex": 16
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"value": "remove babel runtime.",
|
|
273
|
+
"paraId": 26,
|
|
274
|
+
"tocIndex": 17
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"value": "up ",
|
|
278
|
+
"paraId": 26,
|
|
279
|
+
"tocIndex": 17
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"value": "rc-drawer",
|
|
283
|
+
"paraId": 26,
|
|
284
|
+
"tocIndex": 17
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"value": " to ",
|
|
288
|
+
"paraId": 26,
|
|
289
|
+
"tocIndex": 17
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"value": "4.1.0",
|
|
293
|
+
"paraId": 26,
|
|
294
|
+
"tocIndex": 17
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"value": ".",
|
|
298
|
+
"paraId": 26,
|
|
299
|
+
"tocIndex": 17
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"value": "upgrade ",
|
|
303
|
+
"paraId": 27,
|
|
304
|
+
"tocIndex": 18
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"value": "rc-util",
|
|
308
|
+
"paraId": 27,
|
|
309
|
+
"tocIndex": 18
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"value": " to ",
|
|
313
|
+
"paraId": 27,
|
|
314
|
+
"tocIndex": 18
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"value": "5.0.0",
|
|
318
|
+
"paraId": 27,
|
|
319
|
+
"tocIndex": 18
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"value": ".",
|
|
323
|
+
"paraId": 27,
|
|
324
|
+
"tocIndex": 18
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"value": "upgrade ",
|
|
328
|
+
"paraId": 28,
|
|
329
|
+
"tocIndex": 19
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"value": "rc-animate",
|
|
333
|
+
"paraId": 28,
|
|
334
|
+
"tocIndex": 19
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"value": " to ",
|
|
338
|
+
"paraId": 28,
|
|
339
|
+
"tocIndex": 19
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"value": "3.0.0",
|
|
343
|
+
"paraId": 28,
|
|
344
|
+
"tocIndex": 19
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"value": ".",
|
|
348
|
+
"paraId": 28,
|
|
349
|
+
"tocIndex": 19
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"value": "Update accessibility.",
|
|
353
|
+
"paraId": 29,
|
|
354
|
+
"tocIndex": 20
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"value": "Support ",
|
|
358
|
+
"paraId": 30,
|
|
359
|
+
"tocIndex": 21
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"value": "forceRender",
|
|
363
|
+
"paraId": 30,
|
|
364
|
+
"tocIndex": 21
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"value": " for dialog.",
|
|
368
|
+
"paraId": 30,
|
|
369
|
+
"tocIndex": 21
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"value": "Add closeIcon. ",
|
|
373
|
+
"paraId": 31,
|
|
374
|
+
"tocIndex": 22
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"value": "#89",
|
|
378
|
+
"paraId": 32,
|
|
379
|
+
"tocIndex": 22
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"value": " ",
|
|
383
|
+
"paraId": 31,
|
|
384
|
+
"tocIndex": 22
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"value": "@HeskeyBaozi ",
|
|
388
|
+
"paraId": 31,
|
|
389
|
+
"tocIndex": 22
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"value": "Add destroyOnClose. ",
|
|
393
|
+
"paraId": 33,
|
|
394
|
+
"tocIndex": 23
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"value": "#72",
|
|
398
|
+
"paraId": 33,
|
|
399
|
+
"tocIndex": 23
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"value": " ",
|
|
403
|
+
"paraId": 33,
|
|
404
|
+
"tocIndex": 23
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"value": "@Rohanhacker",
|
|
408
|
+
"paraId": 33,
|
|
409
|
+
"tocIndex": 23
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"value": "Remove ReactNative support, please use ",
|
|
413
|
+
"paraId": 34,
|
|
414
|
+
"tocIndex": 24
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"value": "https://github.com/react-component/m-dialog",
|
|
418
|
+
"paraId": 34,
|
|
419
|
+
"tocIndex": 24
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"value": " instead.",
|
|
423
|
+
"paraId": 34,
|
|
424
|
+
"tocIndex": 24
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"value": "Support React 16.",
|
|
428
|
+
"paraId": 34,
|
|
429
|
+
"tocIndex": 24
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"value": "Notable change: Close animation won't trigger when dialog unmounting after React 16, see ",
|
|
433
|
+
"paraId": 35,
|
|
434
|
+
"tocIndex": 24
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"value": "facebook/react#10826",
|
|
438
|
+
"paraId": 35,
|
|
439
|
+
"tocIndex": 24
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"value": "fixed: RN modal support landscape orientation, ",
|
|
443
|
+
"paraId": 36,
|
|
444
|
+
"tocIndex": 25
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"value": "https://github.com/react-component/dialog/pull/64",
|
|
448
|
+
"paraId": 36,
|
|
449
|
+
"tocIndex": 25
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"value": "remove rc-dialog/lib/Modal's entry prop, add animationType prop",
|
|
453
|
+
"paraId": 37,
|
|
454
|
+
"tocIndex": 26
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"value": "add rc-dialog/lib/Modal to support react-native",
|
|
458
|
+
"paraId": 38,
|
|
459
|
+
"tocIndex": 27
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"value": "use getContainerRenderMixin from 'rc-util'",
|
|
463
|
+
"paraId": 39,
|
|
464
|
+
"tocIndex": 28
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"value": "new html structure and class",
|
|
468
|
+
"paraId": 40,
|
|
469
|
+
"tocIndex": 29
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"value": "disable window scroll when show",
|
|
473
|
+
"paraId": 40,
|
|
474
|
+
"tocIndex": 29
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"value": "add maskClosable",
|
|
478
|
+
"paraId": 41,
|
|
479
|
+
"tocIndex": 30
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"value": "separate close and header",
|
|
483
|
+
"paraId": 42,
|
|
484
|
+
"tocIndex": 31
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"value": "only support react 0.14",
|
|
488
|
+
"paraId": 43,
|
|
489
|
+
"tocIndex": 32
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"value": "refactor to clean api. remove onShow onBeforeClose",
|
|
493
|
+
"paraId": 44,
|
|
494
|
+
"tocIndex": 33
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"value": "use rc-animate & rc-align",
|
|
498
|
+
"paraId": 45,
|
|
499
|
+
"tocIndex": 34
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"value": "support esc to close",
|
|
503
|
+
"paraId": 46,
|
|
504
|
+
"tocIndex": 35
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"value": "add renderToBody props",
|
|
508
|
+
"paraId": 47,
|
|
509
|
+
"tocIndex": 36
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"value": "make dialog render to body and use ",
|
|
513
|
+
"paraId": 48,
|
|
514
|
+
"tocIndex": 37
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"value": "dom-align",
|
|
518
|
+
"paraId": 48,
|
|
519
|
+
"tocIndex": 37
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"value": " to align",
|
|
523
|
+
"paraId": 48,
|
|
524
|
+
"tocIndex": 37
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"value": "support es6 and react 0.13",
|
|
528
|
+
"paraId": 49,
|
|
529
|
+
"tocIndex": 38
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"value": "new",
|
|
533
|
+
"paraId": 50,
|
|
534
|
+
"tocIndex": 39
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"value": " ",
|
|
538
|
+
"paraId": 50,
|
|
539
|
+
"tocIndex": 39
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"value": "#3",
|
|
543
|
+
"paraId": 50,
|
|
544
|
+
"tocIndex": 39
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"value": " support closable requestClose onBeforeClose",
|
|
548
|
+
"paraId": 50,
|
|
549
|
+
"tocIndex": 39
|
|
550
|
+
}
|
|
551
|
+
];
|
|
552
|
+
if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
|
|
553
|
+
if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
|
|
554
|
+
function registerClassComponent(filename, moduleExports) {
|
|
555
|
+
for(const key in moduleExports)try {
|
|
556
|
+
if (key === "__esModule") continue;
|
|
557
|
+
const exportValue = moduleExports[key];
|
|
558
|
+
if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
|
|
559
|
+
} catch (e) {}
|
|
560
|
+
}
|
|
561
|
+
function $RefreshIsReactComponentLike$(moduleExports) {
|
|
562
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
|
|
563
|
+
for(var key in moduleExports)try {
|
|
564
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
|
|
565
|
+
} catch (e) {}
|
|
566
|
+
return false;
|
|
567
|
+
}
|
|
568
|
+
registerClassComponent(module.id, module.exports);
|
|
569
|
+
if ($RefreshIsReactComponentLike$(module.exports)) {
|
|
570
|
+
module.meta.hot.accept();
|
|
571
|
+
_reactrefresh.performReactRefresh();
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
},
|
|
575
|
+
"docs/demo/ant-design.md?type=text": function (module, exports, __mako_require__){
|
|
576
|
+
"use strict";
|
|
577
|
+
__mako_require__.d(exports, "__esModule", {
|
|
578
|
+
value: true
|
|
579
|
+
});
|
|
580
|
+
__mako_require__.d(exports, "texts", {
|
|
581
|
+
enumerable: true,
|
|
582
|
+
get: function() {
|
|
583
|
+
return texts;
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
587
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
588
|
+
__mako_require__("docs/demo/ant-design.md?watch=parent");
|
|
589
|
+
var prevRefreshReg;
|
|
590
|
+
var prevRefreshSig;
|
|
591
|
+
prevRefreshReg = self.$RefreshReg$;
|
|
592
|
+
prevRefreshSig = self.$RefreshSig$;
|
|
593
|
+
self.$RefreshReg$ = (type, id)=>{
|
|
594
|
+
_reactrefresh.register(type, module.id + id);
|
|
595
|
+
};
|
|
596
|
+
self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
|
|
597
|
+
const texts = [];
|
|
598
|
+
if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
|
|
599
|
+
if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
|
|
600
|
+
function registerClassComponent(filename, moduleExports) {
|
|
601
|
+
for(const key in moduleExports)try {
|
|
602
|
+
if (key === "__esModule") continue;
|
|
603
|
+
const exportValue = moduleExports[key];
|
|
604
|
+
if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
|
|
605
|
+
} catch (e) {}
|
|
606
|
+
}
|
|
607
|
+
function $RefreshIsReactComponentLike$(moduleExports) {
|
|
608
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
|
|
609
|
+
for(var key in moduleExports)try {
|
|
610
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
|
|
611
|
+
} catch (e) {}
|
|
612
|
+
return false;
|
|
613
|
+
}
|
|
614
|
+
registerClassComponent(module.id, module.exports);
|
|
615
|
+
if ($RefreshIsReactComponentLike$(module.exports)) {
|
|
616
|
+
module.meta.hot.accept();
|
|
617
|
+
_reactrefresh.performReactRefresh();
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
},
|
|
621
|
+
"docs/demo/bootstrap.md?type=text": function (module, exports, __mako_require__){
|
|
622
|
+
"use strict";
|
|
623
|
+
__mako_require__.d(exports, "__esModule", {
|
|
624
|
+
value: true
|
|
625
|
+
});
|
|
626
|
+
__mako_require__.d(exports, "texts", {
|
|
627
|
+
enumerable: true,
|
|
628
|
+
get: function() {
|
|
629
|
+
return texts;
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
633
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
634
|
+
__mako_require__("docs/demo/bootstrap.md?watch=parent");
|
|
635
|
+
var prevRefreshReg;
|
|
636
|
+
var prevRefreshSig;
|
|
637
|
+
prevRefreshReg = self.$RefreshReg$;
|
|
638
|
+
prevRefreshSig = self.$RefreshSig$;
|
|
639
|
+
self.$RefreshReg$ = (type, id)=>{
|
|
640
|
+
_reactrefresh.register(type, module.id + id);
|
|
641
|
+
};
|
|
642
|
+
self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
|
|
643
|
+
const texts = [];
|
|
644
|
+
if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
|
|
645
|
+
if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
|
|
646
|
+
function registerClassComponent(filename, moduleExports) {
|
|
647
|
+
for(const key in moduleExports)try {
|
|
648
|
+
if (key === "__esModule") continue;
|
|
649
|
+
const exportValue = moduleExports[key];
|
|
650
|
+
if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
|
|
651
|
+
} catch (e) {}
|
|
652
|
+
}
|
|
653
|
+
function $RefreshIsReactComponentLike$(moduleExports) {
|
|
654
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
|
|
655
|
+
for(var key in moduleExports)try {
|
|
656
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
|
|
657
|
+
} catch (e) {}
|
|
658
|
+
return false;
|
|
659
|
+
}
|
|
660
|
+
registerClassComponent(module.id, module.exports);
|
|
661
|
+
if ($RefreshIsReactComponentLike$(module.exports)) {
|
|
662
|
+
module.meta.hot.accept();
|
|
663
|
+
_reactrefresh.performReactRefresh();
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
},
|
|
667
|
+
"docs/demo/draggable.md?type=text": function (module, exports, __mako_require__){
|
|
668
|
+
"use strict";
|
|
669
|
+
__mako_require__.d(exports, "__esModule", {
|
|
670
|
+
value: true
|
|
671
|
+
});
|
|
672
|
+
__mako_require__.d(exports, "texts", {
|
|
673
|
+
enumerable: true,
|
|
674
|
+
get: function() {
|
|
675
|
+
return texts;
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
679
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
680
|
+
__mako_require__("docs/demo/draggable.md?watch=parent");
|
|
681
|
+
var prevRefreshReg;
|
|
682
|
+
var prevRefreshSig;
|
|
683
|
+
prevRefreshReg = self.$RefreshReg$;
|
|
684
|
+
prevRefreshSig = self.$RefreshSig$;
|
|
685
|
+
self.$RefreshReg$ = (type, id)=>{
|
|
686
|
+
_reactrefresh.register(type, module.id + id);
|
|
687
|
+
};
|
|
688
|
+
self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
|
|
689
|
+
const texts = [];
|
|
690
|
+
if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
|
|
691
|
+
if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
|
|
692
|
+
function registerClassComponent(filename, moduleExports) {
|
|
693
|
+
for(const key in moduleExports)try {
|
|
694
|
+
if (key === "__esModule") continue;
|
|
695
|
+
const exportValue = moduleExports[key];
|
|
696
|
+
if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
|
|
697
|
+
} catch (e) {}
|
|
698
|
+
}
|
|
699
|
+
function $RefreshIsReactComponentLike$(moduleExports) {
|
|
700
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
|
|
701
|
+
for(var key in moduleExports)try {
|
|
702
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
|
|
703
|
+
} catch (e) {}
|
|
704
|
+
return false;
|
|
705
|
+
}
|
|
706
|
+
registerClassComponent(module.id, module.exports);
|
|
707
|
+
if ($RefreshIsReactComponentLike$(module.exports)) {
|
|
708
|
+
module.meta.hot.accept();
|
|
709
|
+
_reactrefresh.performReactRefresh();
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
},
|
|
713
|
+
"docs/demo/pure.md?type=text": function (module, exports, __mako_require__){
|
|
714
|
+
"use strict";
|
|
715
|
+
__mako_require__.d(exports, "__esModule", {
|
|
716
|
+
value: true
|
|
717
|
+
});
|
|
718
|
+
__mako_require__.d(exports, "texts", {
|
|
719
|
+
enumerable: true,
|
|
720
|
+
get: function() {
|
|
721
|
+
return texts;
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
725
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
726
|
+
__mako_require__("docs/demo/pure.md?watch=parent");
|
|
727
|
+
var prevRefreshReg;
|
|
728
|
+
var prevRefreshSig;
|
|
729
|
+
prevRefreshReg = self.$RefreshReg$;
|
|
730
|
+
prevRefreshSig = self.$RefreshSig$;
|
|
731
|
+
self.$RefreshReg$ = (type, id)=>{
|
|
732
|
+
_reactrefresh.register(type, module.id + id);
|
|
733
|
+
};
|
|
734
|
+
self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
|
|
735
|
+
const texts = [];
|
|
736
|
+
if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
|
|
737
|
+
if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
|
|
738
|
+
function registerClassComponent(filename, moduleExports) {
|
|
739
|
+
for(const key in moduleExports)try {
|
|
740
|
+
if (key === "__esModule") continue;
|
|
741
|
+
const exportValue = moduleExports[key];
|
|
742
|
+
if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
|
|
743
|
+
} catch (e) {}
|
|
744
|
+
}
|
|
745
|
+
function $RefreshIsReactComponentLike$(moduleExports) {
|
|
746
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
|
|
747
|
+
for(var key in moduleExports)try {
|
|
748
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
|
|
749
|
+
} catch (e) {}
|
|
750
|
+
return false;
|
|
751
|
+
}
|
|
752
|
+
registerClassComponent(module.id, module.exports);
|
|
753
|
+
if ($RefreshIsReactComponentLike$(module.exports)) {
|
|
754
|
+
module.meta.hot.accept();
|
|
755
|
+
_reactrefresh.performReactRefresh();
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
},
|
|
759
|
+
"docs/examples/ant-design.tsx?watch=parent": function (module, exports, __mako_require__){
|
|
760
|
+
"use strict";
|
|
761
|
+
__mako_require__.d(exports, "__esModule", {
|
|
762
|
+
value: true
|
|
763
|
+
});
|
|
764
|
+
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
765
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
10
766
|
var prevRefreshReg;
|
|
11
767
|
var prevRefreshSig;
|
|
12
768
|
prevRefreshReg = self.$RefreshReg$;
|
|
@@ -44,7 +800,7 @@ __mako_require__.d(exports, "__esModule", {
|
|
|
44
800
|
value: true
|
|
45
801
|
});
|
|
46
802
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
47
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
803
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
48
804
|
var prevRefreshReg;
|
|
49
805
|
var prevRefreshSig;
|
|
50
806
|
prevRefreshReg = self.$RefreshReg$;
|
|
@@ -82,7 +838,7 @@ __mako_require__.d(exports, "__esModule", {
|
|
|
82
838
|
value: true
|
|
83
839
|
});
|
|
84
840
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
85
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
841
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
86
842
|
var prevRefreshReg;
|
|
87
843
|
var prevRefreshSig;
|
|
88
844
|
prevRefreshReg = self.$RefreshReg$;
|
|
@@ -120,7 +876,7 @@ __mako_require__.d(exports, "__esModule", {
|
|
|
120
876
|
value: true
|
|
121
877
|
});
|
|
122
878
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
123
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
879
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
124
880
|
var prevRefreshReg;
|
|
125
881
|
var prevRefreshSig;
|
|
126
882
|
prevRefreshReg = self.$RefreshReg$;
|
|
@@ -158,7 +914,52 @@ __mako_require__.d(exports, "__esModule", {
|
|
|
158
914
|
value: true
|
|
159
915
|
});
|
|
160
916
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
161
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
917
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
918
|
+
var prevRefreshReg;
|
|
919
|
+
var prevRefreshSig;
|
|
920
|
+
prevRefreshReg = self.$RefreshReg$;
|
|
921
|
+
prevRefreshSig = self.$RefreshSig$;
|
|
922
|
+
self.$RefreshReg$ = (type, id)=>{
|
|
923
|
+
_reactrefresh.register(type, module.id + id);
|
|
924
|
+
};
|
|
925
|
+
self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
|
|
926
|
+
if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
|
|
927
|
+
if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
|
|
928
|
+
function registerClassComponent(filename, moduleExports) {
|
|
929
|
+
for(const key in moduleExports)try {
|
|
930
|
+
if (key === "__esModule") continue;
|
|
931
|
+
const exportValue = moduleExports[key];
|
|
932
|
+
if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
|
|
933
|
+
} catch (e) {}
|
|
934
|
+
}
|
|
935
|
+
function $RefreshIsReactComponentLike$(moduleExports) {
|
|
936
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
|
|
937
|
+
for(var key in moduleExports)try {
|
|
938
|
+
if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
|
|
939
|
+
} catch (e) {}
|
|
940
|
+
return false;
|
|
941
|
+
}
|
|
942
|
+
registerClassComponent(module.id, module.exports);
|
|
943
|
+
if ($RefreshIsReactComponentLike$(module.exports)) {
|
|
944
|
+
module.meta.hot.accept();
|
|
945
|
+
_reactrefresh.performReactRefresh();
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
},
|
|
949
|
+
"docs/index.md?type=text": function (module, exports, __mako_require__){
|
|
950
|
+
"use strict";
|
|
951
|
+
__mako_require__.d(exports, "__esModule", {
|
|
952
|
+
value: true
|
|
953
|
+
});
|
|
954
|
+
__mako_require__.d(exports, "texts", {
|
|
955
|
+
enumerable: true,
|
|
956
|
+
get: function() {
|
|
957
|
+
return texts;
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
961
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
962
|
+
__mako_require__("docs/index.md?watch=parent");
|
|
162
963
|
var prevRefreshReg;
|
|
163
964
|
var prevRefreshSig;
|
|
164
965
|
prevRefreshReg = self.$RefreshReg$;
|
|
@@ -167,6 +968,552 @@ self.$RefreshReg$ = (type, id)=>{
|
|
|
167
968
|
_reactrefresh.register(type, module.id + id);
|
|
168
969
|
};
|
|
169
970
|
self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
|
|
971
|
+
const texts = [
|
|
972
|
+
{
|
|
973
|
+
"value": "react dialog component.",
|
|
974
|
+
"paraId": 0,
|
|
975
|
+
"tocIndex": 0
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"value": " ",
|
|
979
|
+
"paraId": 1,
|
|
980
|
+
"tocIndex": 0
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"value": " ",
|
|
984
|
+
"paraId": 1,
|
|
985
|
+
"tocIndex": 0
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"value": " ",
|
|
989
|
+
"paraId": 1,
|
|
990
|
+
"tocIndex": 0
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"value": " ",
|
|
994
|
+
"paraId": 1,
|
|
995
|
+
"tocIndex": 0
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"value": " ",
|
|
999
|
+
"paraId": 1,
|
|
1000
|
+
"tocIndex": 0
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"value": "http://localhost:8007/examples/",
|
|
1004
|
+
"paraId": 2,
|
|
1005
|
+
"tocIndex": 2
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"value": "online example: ",
|
|
1009
|
+
"paraId": 3,
|
|
1010
|
+
"tocIndex": 2
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"value": "https://dialog.react-component.vercel.app/",
|
|
1014
|
+
"paraId": 3,
|
|
1015
|
+
"tocIndex": 2
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"value": "var Dialog = require('@rc-component/dialog');\n\nReactDOM.render(\n <Dialog title={title} onClose={callback1} visible>\n <p>first dialog</p>\n </Dialog>\n), document.getElementById('t1'));\n\n// use dialog\n",
|
|
1019
|
+
"paraId": 4,
|
|
1020
|
+
"tocIndex": 4
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"value": "Name",
|
|
1024
|
+
"paraId": 5,
|
|
1025
|
+
"tocIndex": 6
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"value": "Type",
|
|
1029
|
+
"paraId": 5,
|
|
1030
|
+
"tocIndex": 6
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"value": "Default",
|
|
1034
|
+
"paraId": 5,
|
|
1035
|
+
"tocIndex": 6
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"value": "Description",
|
|
1039
|
+
"paraId": 5,
|
|
1040
|
+
"tocIndex": 6
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"value": "Version",
|
|
1044
|
+
"paraId": 5,
|
|
1045
|
+
"tocIndex": 6
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"value": "prefixCls",
|
|
1049
|
+
"paraId": 5,
|
|
1050
|
+
"tocIndex": 6
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"value": "String",
|
|
1054
|
+
"paraId": 5,
|
|
1055
|
+
"tocIndex": 6
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"value": "rc-dialog",
|
|
1059
|
+
"paraId": 5,
|
|
1060
|
+
"tocIndex": 6
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"value": "The dialog dom node's prefixCls",
|
|
1064
|
+
"paraId": 5,
|
|
1065
|
+
"tocIndex": 6
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"value": "className",
|
|
1069
|
+
"paraId": 5,
|
|
1070
|
+
"tocIndex": 6
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"value": "String",
|
|
1074
|
+
"paraId": 5,
|
|
1075
|
+
"tocIndex": 6
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"value": "additional className for dialog",
|
|
1079
|
+
"paraId": 5,
|
|
1080
|
+
"tocIndex": 6
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"value": "classNames",
|
|
1084
|
+
"paraId": 5,
|
|
1085
|
+
"tocIndex": 6
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"value": "{ header?: string; body?: string; footer?: string; mask?: string; content?: string; wrapper?: string; }",
|
|
1089
|
+
"paraId": 5,
|
|
1090
|
+
"tocIndex": 6
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"value": "pass className to target area",
|
|
1094
|
+
"paraId": 5,
|
|
1095
|
+
"tocIndex": 6
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"value": "styles",
|
|
1099
|
+
"paraId": 5,
|
|
1100
|
+
"tocIndex": 6
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"value": "{ header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties; mask?: CSSProperties; content?: CSSProperties; wrapper?: CSSProperties; }",
|
|
1104
|
+
"paraId": 5,
|
|
1105
|
+
"tocIndex": 6
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"value": "pass styles to target area",
|
|
1109
|
+
"paraId": 5,
|
|
1110
|
+
"tocIndex": 6
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"value": "style",
|
|
1114
|
+
"paraId": 5,
|
|
1115
|
+
"tocIndex": 6
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"value": "Object",
|
|
1119
|
+
"paraId": 5,
|
|
1120
|
+
"tocIndex": 6
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"value": "{}",
|
|
1124
|
+
"paraId": 5,
|
|
1125
|
+
"tocIndex": 6
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"value": "Root style for dialog element.Such as width, height",
|
|
1129
|
+
"paraId": 5,
|
|
1130
|
+
"tocIndex": 6
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"value": "zIndex",
|
|
1134
|
+
"paraId": 5,
|
|
1135
|
+
"tocIndex": 6
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"value": "Number",
|
|
1139
|
+
"paraId": 5,
|
|
1140
|
+
"tocIndex": 6
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"value": "visible",
|
|
1144
|
+
"paraId": 5,
|
|
1145
|
+
"tocIndex": 6
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"value": "Boolean",
|
|
1149
|
+
"paraId": 5,
|
|
1150
|
+
"tocIndex": 6
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"value": "false",
|
|
1154
|
+
"paraId": 5,
|
|
1155
|
+
"tocIndex": 6
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"value": "current dialog's visible status",
|
|
1159
|
+
"paraId": 5,
|
|
1160
|
+
"tocIndex": 6
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"value": "animation",
|
|
1164
|
+
"paraId": 5,
|
|
1165
|
+
"tocIndex": 6
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"value": "String",
|
|
1169
|
+
"paraId": 5,
|
|
1170
|
+
"tocIndex": 6
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"value": "part of dialog animation css class name",
|
|
1174
|
+
"paraId": 5,
|
|
1175
|
+
"tocIndex": 6
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"value": "maskAnimation",
|
|
1179
|
+
"paraId": 5,
|
|
1180
|
+
"tocIndex": 6
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"value": "String",
|
|
1184
|
+
"paraId": 5,
|
|
1185
|
+
"tocIndex": 6
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"value": "part of dialog's mask animation css class name",
|
|
1189
|
+
"paraId": 5,
|
|
1190
|
+
"tocIndex": 6
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"value": "transitionName",
|
|
1194
|
+
"paraId": 5,
|
|
1195
|
+
"tocIndex": 6
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"value": "String",
|
|
1199
|
+
"paraId": 5,
|
|
1200
|
+
"tocIndex": 6
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"value": "dialog animation css class name",
|
|
1204
|
+
"paraId": 5,
|
|
1205
|
+
"tocIndex": 6
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"value": "maskTransitionName",
|
|
1209
|
+
"paraId": 5,
|
|
1210
|
+
"tocIndex": 6
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
"value": "String",
|
|
1214
|
+
"paraId": 5,
|
|
1215
|
+
"tocIndex": 6
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"value": "mask animation css class name",
|
|
1219
|
+
"paraId": 5,
|
|
1220
|
+
"tocIndex": 6
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"value": "title",
|
|
1224
|
+
"paraId": 5,
|
|
1225
|
+
"tocIndex": 6
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"value": "String|React.Element",
|
|
1229
|
+
"paraId": 5,
|
|
1230
|
+
"tocIndex": 6
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"value": "Title of the dialog",
|
|
1234
|
+
"paraId": 5,
|
|
1235
|
+
"tocIndex": 6
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"value": "footer",
|
|
1239
|
+
"paraId": 5,
|
|
1240
|
+
"tocIndex": 6
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"value": "React.Element",
|
|
1244
|
+
"paraId": 5,
|
|
1245
|
+
"tocIndex": 6
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"value": "footer of the dialog",
|
|
1249
|
+
"paraId": 5,
|
|
1250
|
+
"tocIndex": 6
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"value": "closable",
|
|
1254
|
+
"paraId": 5,
|
|
1255
|
+
"tocIndex": 6
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"value": "Boolean | ({ closeIcon?: React.ReactNode; disabled?: boolean, afterClose:function } & React.AriaAttributes)",
|
|
1259
|
+
"paraId": 5,
|
|
1260
|
+
"tocIndex": 6
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
"value": "true",
|
|
1264
|
+
"paraId": 5,
|
|
1265
|
+
"tocIndex": 6
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"value": "whether show close button",
|
|
1269
|
+
"paraId": 5,
|
|
1270
|
+
"tocIndex": 6
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"value": "mask",
|
|
1274
|
+
"paraId": 5,
|
|
1275
|
+
"tocIndex": 6
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"value": "Boolean",
|
|
1279
|
+
"paraId": 5,
|
|
1280
|
+
"tocIndex": 6
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"value": "true",
|
|
1284
|
+
"paraId": 5,
|
|
1285
|
+
"tocIndex": 6
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"value": "whether show mask",
|
|
1289
|
+
"paraId": 5,
|
|
1290
|
+
"tocIndex": 6
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"value": "maskClosable",
|
|
1294
|
+
"paraId": 5,
|
|
1295
|
+
"tocIndex": 6
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
"value": "Boolean",
|
|
1299
|
+
"paraId": 5,
|
|
1300
|
+
"tocIndex": 6
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"value": "true",
|
|
1304
|
+
"paraId": 5,
|
|
1305
|
+
"tocIndex": 6
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"value": "whether click mask to close",
|
|
1309
|
+
"paraId": 5,
|
|
1310
|
+
"tocIndex": 6
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"value": "keyboard",
|
|
1314
|
+
"paraId": 5,
|
|
1315
|
+
"tocIndex": 6
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
"value": "Boolean",
|
|
1319
|
+
"paraId": 5,
|
|
1320
|
+
"tocIndex": 6
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"value": "true",
|
|
1324
|
+
"paraId": 5,
|
|
1325
|
+
"tocIndex": 6
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"value": "whether support press esc to close",
|
|
1329
|
+
"paraId": 5,
|
|
1330
|
+
"tocIndex": 6
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"value": "mousePosition",
|
|
1334
|
+
"paraId": 5,
|
|
1335
|
+
"tocIndex": 6
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"value": "{x:number,y:number}",
|
|
1339
|
+
"paraId": 5,
|
|
1340
|
+
"tocIndex": 6
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"value": "set pageX and pageY of current mouse(it will cause transform origin to be set).",
|
|
1344
|
+
"paraId": 5,
|
|
1345
|
+
"tocIndex": 6
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"value": "onClose",
|
|
1349
|
+
"paraId": 5,
|
|
1350
|
+
"tocIndex": 6
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"value": "function()",
|
|
1354
|
+
"paraId": 5,
|
|
1355
|
+
"tocIndex": 6
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"value": "called when click close button or mask",
|
|
1359
|
+
"paraId": 5,
|
|
1360
|
+
"tocIndex": 6
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"value": "afterClose",
|
|
1364
|
+
"paraId": 5,
|
|
1365
|
+
"tocIndex": 6
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"value": "function()",
|
|
1369
|
+
"paraId": 5,
|
|
1370
|
+
"tocIndex": 6
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"value": "called when close animation end",
|
|
1374
|
+
"paraId": 5,
|
|
1375
|
+
"tocIndex": 6
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"value": "getContainer",
|
|
1379
|
+
"paraId": 5,
|
|
1380
|
+
"tocIndex": 6
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"value": "function(): HTMLElement",
|
|
1384
|
+
"paraId": 5,
|
|
1385
|
+
"tocIndex": 6
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"value": "to determine where Dialog will be mounted",
|
|
1389
|
+
"paraId": 5,
|
|
1390
|
+
"tocIndex": 6
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"value": "destroyOnHidden",
|
|
1394
|
+
"paraId": 5,
|
|
1395
|
+
"tocIndex": 6
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"value": "Boolean",
|
|
1399
|
+
"paraId": 5,
|
|
1400
|
+
"tocIndex": 6
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"value": "false",
|
|
1404
|
+
"paraId": 5,
|
|
1405
|
+
"tocIndex": 6
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"value": "to unmount child compenents on onClose",
|
|
1409
|
+
"paraId": 5,
|
|
1410
|
+
"tocIndex": 6
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
"value": "closeIcon",
|
|
1414
|
+
"paraId": 5,
|
|
1415
|
+
"tocIndex": 6
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"value": "ReactNode",
|
|
1419
|
+
"paraId": 5,
|
|
1420
|
+
"tocIndex": 6
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"value": "specific the close icon.",
|
|
1424
|
+
"paraId": 5,
|
|
1425
|
+
"tocIndex": 6
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
"value": "forceRender",
|
|
1429
|
+
"paraId": 5,
|
|
1430
|
+
"tocIndex": 6
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"value": "Boolean",
|
|
1434
|
+
"paraId": 5,
|
|
1435
|
+
"tocIndex": 6
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"value": "false",
|
|
1439
|
+
"paraId": 5,
|
|
1440
|
+
"tocIndex": 6
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
"value": "Create dialog dom node before dialog first show",
|
|
1444
|
+
"paraId": 5,
|
|
1445
|
+
"tocIndex": 6
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"value": "focusTriggerAfterClose",
|
|
1449
|
+
"paraId": 5,
|
|
1450
|
+
"tocIndex": 6
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
"value": "Boolean",
|
|
1454
|
+
"paraId": 5,
|
|
1455
|
+
"tocIndex": 6
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"value": "true",
|
|
1459
|
+
"paraId": 5,
|
|
1460
|
+
"tocIndex": 6
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"value": "focus trigger element when dialog closed",
|
|
1464
|
+
"paraId": 5,
|
|
1465
|
+
"tocIndex": 6
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
"value": "modalRender",
|
|
1469
|
+
"paraId": 5,
|
|
1470
|
+
"tocIndex": 6
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"value": "(node: ReactNode) => ReactNode",
|
|
1474
|
+
"paraId": 5,
|
|
1475
|
+
"tocIndex": 6
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"value": "Custom modal content render",
|
|
1479
|
+
"paraId": 5,
|
|
1480
|
+
"tocIndex": 6
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"value": "8.3.0",
|
|
1484
|
+
"paraId": 5,
|
|
1485
|
+
"tocIndex": 6
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"value": "npm install\nnpm start\n",
|
|
1489
|
+
"paraId": 6,
|
|
1490
|
+
"tocIndex": 7
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
"value": "npm test\nnpm run chrome-test\n",
|
|
1494
|
+
"paraId": 7,
|
|
1495
|
+
"tocIndex": 8
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"value": "npm run coverage\n",
|
|
1499
|
+
"paraId": 8,
|
|
1500
|
+
"tocIndex": 9
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"value": "open coverage/ dir",
|
|
1504
|
+
"paraId": 9,
|
|
1505
|
+
"tocIndex": 9
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"value": "@rc-component/dialog is released under the MIT license.",
|
|
1509
|
+
"paraId": 10,
|
|
1510
|
+
"tocIndex": 10
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"value": "\n ",
|
|
1514
|
+
"paraId": 11
|
|
1515
|
+
}
|
|
1516
|
+
];
|
|
170
1517
|
if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
|
|
171
1518
|
if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
|
|
172
1519
|
function registerClassComponent(filename, moduleExports) {
|
|
@@ -202,8 +1549,8 @@ __mako_require__.d(exports, "default", {
|
|
|
202
1549
|
}
|
|
203
1550
|
});
|
|
204
1551
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
205
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
206
|
-
var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
1552
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
1553
|
+
var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react/index.js"));
|
|
207
1554
|
var prevRefreshReg;
|
|
208
1555
|
var prevRefreshSig;
|
|
209
1556
|
prevRefreshReg = self.$RefreshReg$;
|
|
@@ -253,14 +1600,15 @@ __mako_require__.d(exports, "default", {
|
|
|
253
1600
|
});
|
|
254
1601
|
var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
|
|
255
1602
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
256
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
257
|
-
var _jsxdevruntime = __mako_require__("node_modules/
|
|
258
|
-
var
|
|
259
|
-
var _ref = __mako_require__("node_modules
|
|
260
|
-
var
|
|
1603
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
1604
|
+
var _jsxdevruntime = __mako_require__("node_modules/react/jsx-dev-runtime.js");
|
|
1605
|
+
var _clsx = __mako_require__("node_modules/clsx/dist/clsx.mjs");
|
|
1606
|
+
var _ref = __mako_require__("node_modules/@rc-component/util/lib/ref.js");
|
|
1607
|
+
var _focus = __mako_require__("node_modules/@rc-component/util/lib/Dom/focus.js");
|
|
1608
|
+
var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react/index.js"));
|
|
261
1609
|
var _context = __mako_require__("src/context.ts");
|
|
262
1610
|
var _MemoChildren = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/Dialog/Content/MemoChildren.tsx"));
|
|
263
|
-
var _pickAttrs = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules
|
|
1611
|
+
var _pickAttrs = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules/@rc-component/util/lib/pickAttrs.js"));
|
|
264
1612
|
var prevRefreshReg;
|
|
265
1613
|
var prevRefreshSig;
|
|
266
1614
|
prevRefreshReg = self.$RefreshReg$;
|
|
@@ -270,36 +1618,18 @@ self.$RefreshReg$ = (type, id)=>{
|
|
|
270
1618
|
};
|
|
271
1619
|
self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
|
|
272
1620
|
var _s = $RefreshSig$();
|
|
273
|
-
const sentinelStyle = {
|
|
274
|
-
width: 0,
|
|
275
|
-
height: 0,
|
|
276
|
-
overflow: 'hidden',
|
|
277
|
-
outline: 'none'
|
|
278
|
-
};
|
|
279
|
-
const entityStyle = {
|
|
280
|
-
outline: 'none'
|
|
281
|
-
};
|
|
282
1621
|
const Panel = /*#__PURE__*/ _s(_react.default.forwardRef(_c = _s((props, ref)=>{
|
|
283
1622
|
_s();
|
|
284
1623
|
const { prefixCls, className, style, title, ariaId, footer, closable, closeIcon, onClose, children, bodyStyle, bodyProps, modalRender, onMouseDown, onMouseUp, holderRef, visible, forceRender, width, height, classNames: modalClassNames, styles: modalStyles } = props;
|
|
285
1624
|
// ================================= Refs =================================
|
|
286
1625
|
const { panel: panelRef } = _react.default.useContext(_context.RefContext);
|
|
287
|
-
const
|
|
288
|
-
const
|
|
289
|
-
|
|
1626
|
+
const internalRef = (0, _react.useRef)(null);
|
|
1627
|
+
const mergedRef = (0, _ref.useComposeRef)(holderRef, panelRef, internalRef);
|
|
1628
|
+
(0, _focus.useLockFocus)(visible, ()=>internalRef.current);
|
|
290
1629
|
_react.default.useImperativeHandle(ref, ()=>({
|
|
291
1630
|
focus: ()=>{
|
|
292
|
-
var
|
|
293
|
-
(
|
|
294
|
-
preventScroll: true
|
|
295
|
-
});
|
|
296
|
-
},
|
|
297
|
-
changeActive: (next)=>{
|
|
298
|
-
const { activeElement } = document;
|
|
299
|
-
if (next && activeElement === sentinelEndRef.current) sentinelStartRef.current.focus({
|
|
300
|
-
preventScroll: true
|
|
301
|
-
});
|
|
302
|
-
else if (!next && activeElement === sentinelStartRef.current) sentinelEndRef.current.focus({
|
|
1631
|
+
var _internalRef_current;
|
|
1632
|
+
(_internalRef_current = internalRef.current) === null || _internalRef_current === void 0 || _internalRef_current.focus({
|
|
303
1633
|
preventScroll: true
|
|
304
1634
|
});
|
|
305
1635
|
}
|
|
@@ -310,23 +1640,23 @@ const Panel = /*#__PURE__*/ _s(_react.default.forwardRef(_c = _s((props, ref)=>{
|
|
|
310
1640
|
if (height !== undefined) contentStyle.height = height;
|
|
311
1641
|
// ================================ Render ================================
|
|
312
1642
|
const footerNode = footer ? /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
|
|
313
|
-
className: (0,
|
|
1643
|
+
className: (0, _clsx.clsx)(`${prefixCls}-footer`, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.footer),
|
|
314
1644
|
style: {
|
|
315
1645
|
...modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.footer
|
|
316
1646
|
},
|
|
317
1647
|
children: footer
|
|
318
1648
|
}, void 0, false, {
|
|
319
1649
|
fileName: "src/Dialog/Content/Panel.tsx",
|
|
320
|
-
lineNumber:
|
|
1650
|
+
lineNumber: 72,
|
|
321
1651
|
columnNumber: 5
|
|
322
1652
|
}, this) : null;
|
|
323
1653
|
const headerNode = title ? /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
|
|
324
|
-
className: (0,
|
|
1654
|
+
className: (0, _clsx.clsx)(`${prefixCls}-header`, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.header),
|
|
325
1655
|
style: {
|
|
326
1656
|
...modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.header
|
|
327
1657
|
},
|
|
328
1658
|
children: /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
|
|
329
|
-
className: (0,
|
|
1659
|
+
className: (0, _clsx.clsx)(`${prefixCls}-title`, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.title),
|
|
330
1660
|
id: ariaId,
|
|
331
1661
|
style: {
|
|
332
1662
|
...modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.title
|
|
@@ -334,12 +1664,12 @@ const Panel = /*#__PURE__*/ _s(_react.default.forwardRef(_c = _s((props, ref)=>{
|
|
|
334
1664
|
children: title
|
|
335
1665
|
}, void 0, false, {
|
|
336
1666
|
fileName: "src/Dialog/Content/Panel.tsx",
|
|
337
|
-
lineNumber:
|
|
1667
|
+
lineNumber: 85,
|
|
338
1668
|
columnNumber: 7
|
|
339
1669
|
}, this)
|
|
340
1670
|
}, void 0, false, {
|
|
341
1671
|
fileName: "src/Dialog/Content/Panel.tsx",
|
|
342
|
-
lineNumber:
|
|
1672
|
+
lineNumber: 81,
|
|
343
1673
|
columnNumber: 5
|
|
344
1674
|
}, this) : null;
|
|
345
1675
|
const closableObj = (0, _react.useMemo)(()=>{
|
|
@@ -349,7 +1679,7 @@ const Panel = /*#__PURE__*/ _s(_react.default.forwardRef(_c = _s((props, ref)=>{
|
|
|
349
1679
|
className: `${prefixCls}-close-x`
|
|
350
1680
|
}, void 0, false, {
|
|
351
1681
|
fileName: "src/Dialog/Content/Panel.tsx",
|
|
352
|
-
lineNumber:
|
|
1682
|
+
lineNumber: 100,
|
|
353
1683
|
columnNumber: 40
|
|
354
1684
|
}, this)
|
|
355
1685
|
};
|
|
@@ -371,17 +1701,17 @@ const Panel = /*#__PURE__*/ _s(_react.default.forwardRef(_c = _s((props, ref)=>{
|
|
|
371
1701
|
children: closableObj.closeIcon
|
|
372
1702
|
}, void 0, false, {
|
|
373
1703
|
fileName: "src/Dialog/Content/Panel.tsx",
|
|
374
|
-
lineNumber:
|
|
1704
|
+
lineNumber: 109,
|
|
375
1705
|
columnNumber: 5
|
|
376
1706
|
}, this) : null;
|
|
377
1707
|
const content = /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
|
|
378
|
-
className: (0,
|
|
379
|
-
style: modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.
|
|
1708
|
+
className: (0, _clsx.clsx)(`${prefixCls}-container`, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.container),
|
|
1709
|
+
style: modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.container,
|
|
380
1710
|
children: [
|
|
381
1711
|
closerNode,
|
|
382
1712
|
headerNode,
|
|
383
1713
|
/*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
|
|
384
|
-
className: (0,
|
|
1714
|
+
className: (0, _clsx.clsx)(`${prefixCls}-body`, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.body),
|
|
385
1715
|
style: {
|
|
386
1716
|
...bodyStyle,
|
|
387
1717
|
...modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.body
|
|
@@ -390,14 +1720,14 @@ const Panel = /*#__PURE__*/ _s(_react.default.forwardRef(_c = _s((props, ref)=>{
|
|
|
390
1720
|
children: children
|
|
391
1721
|
}, void 0, false, {
|
|
392
1722
|
fileName: "src/Dialog/Content/Panel.tsx",
|
|
393
|
-
lineNumber:
|
|
1723
|
+
lineNumber: 128,
|
|
394
1724
|
columnNumber: 7
|
|
395
1725
|
}, this),
|
|
396
1726
|
footerNode
|
|
397
1727
|
]
|
|
398
1728
|
}, void 0, true, {
|
|
399
1729
|
fileName: "src/Dialog/Content/Panel.tsx",
|
|
400
|
-
lineNumber:
|
|
1730
|
+
lineNumber: 122,
|
|
401
1731
|
columnNumber: 5
|
|
402
1732
|
}, this);
|
|
403
1733
|
return /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
|
|
@@ -409,49 +1739,32 @@ const Panel = /*#__PURE__*/ _s(_react.default.forwardRef(_c = _s((props, ref)=>{
|
|
|
409
1739
|
...style,
|
|
410
1740
|
...contentStyle
|
|
411
1741
|
},
|
|
412
|
-
className: (0,
|
|
1742
|
+
className: (0, _clsx.clsx)(prefixCls, className),
|
|
413
1743
|
onMouseDown: onMouseDown,
|
|
414
1744
|
onMouseUp: onMouseUp,
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
lineNumber: 164,
|
|
426
|
-
columnNumber: 9
|
|
427
|
-
}, this)
|
|
428
|
-
}, void 0, false, {
|
|
429
|
-
fileName: "src/Dialog/Content/Panel.tsx",
|
|
430
|
-
lineNumber: 163,
|
|
431
|
-
columnNumber: 7
|
|
432
|
-
}, this),
|
|
433
|
-
/*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
|
|
434
|
-
tabIndex: 0,
|
|
435
|
-
ref: sentinelEndRef,
|
|
436
|
-
style: sentinelStyle
|
|
437
|
-
}, void 0, false, {
|
|
438
|
-
fileName: "src/Dialog/Content/Panel.tsx",
|
|
439
|
-
lineNumber: 168,
|
|
440
|
-
columnNumber: 7
|
|
441
|
-
}, this)
|
|
442
|
-
]
|
|
443
|
-
}, "dialog-element", true, {
|
|
1745
|
+
tabIndex: -1,
|
|
1746
|
+
children: /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_MemoChildren.default, {
|
|
1747
|
+
shouldUpdate: visible || forceRender,
|
|
1748
|
+
children: modalRender ? modalRender(content) : content
|
|
1749
|
+
}, void 0, false, {
|
|
1750
|
+
fileName: "src/Dialog/Content/Panel.tsx",
|
|
1751
|
+
lineNumber: 152,
|
|
1752
|
+
columnNumber: 7
|
|
1753
|
+
}, this)
|
|
1754
|
+
}, "dialog-element", false, {
|
|
444
1755
|
fileName: "src/Dialog/Content/Panel.tsx",
|
|
445
|
-
lineNumber:
|
|
1756
|
+
lineNumber: 140,
|
|
446
1757
|
columnNumber: 5
|
|
447
1758
|
}, this);
|
|
448
|
-
}, "
|
|
1759
|
+
}, "bU247zidmyUZOs2UoXntPMSnEJE=", false, function() {
|
|
449
1760
|
return [
|
|
450
|
-
_ref.useComposeRef
|
|
1761
|
+
_ref.useComposeRef,
|
|
1762
|
+
_focus.useLockFocus
|
|
451
1763
|
];
|
|
452
|
-
})), "
|
|
1764
|
+
})), "bU247zidmyUZOs2UoXntPMSnEJE=", false, function() {
|
|
453
1765
|
return [
|
|
454
|
-
_ref.useComposeRef
|
|
1766
|
+
_ref.useComposeRef,
|
|
1767
|
+
_focus.useLockFocus
|
|
455
1768
|
];
|
|
456
1769
|
});
|
|
457
1770
|
_c1 = Panel;
|
|
@@ -497,13 +1810,13 @@ __mako_require__.d(exports, "default", {
|
|
|
497
1810
|
});
|
|
498
1811
|
var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
|
|
499
1812
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
500
|
-
var _reactrefresh = _interop_require_wildcard._(__mako_require__("node_modules/
|
|
501
|
-
var _jsxdevruntime = __mako_require__("node_modules/
|
|
502
|
-
var _react = _interop_require_wildcard._(__mako_require__("node_modules/
|
|
503
|
-
var
|
|
504
|
-
var _motion = _interop_require_default._(__mako_require__("node_modules
|
|
1813
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
1814
|
+
var _jsxdevruntime = __mako_require__("node_modules/react/jsx-dev-runtime.js");
|
|
1815
|
+
var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react/index.js"));
|
|
1816
|
+
var _clsx = __mako_require__("node_modules/clsx/dist/clsx.mjs");
|
|
1817
|
+
var _motion = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules/@rc-component/motion/es/index.js"));
|
|
505
1818
|
var _util = __mako_require__("src/util.ts");
|
|
506
|
-
var _Panel = _interop_require_default._(__mako_require__("src/Dialog/Content/Panel.tsx"));
|
|
1819
|
+
var _Panel = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/Dialog/Content/Panel.tsx"));
|
|
507
1820
|
var prevRefreshReg;
|
|
508
1821
|
var prevRefreshSig;
|
|
509
1822
|
prevRefreshReg = self.$RefreshReg$;
|
|
@@ -513,16 +1826,18 @@ self.$RefreshReg$ = (type, id)=>{
|
|
|
513
1826
|
};
|
|
514
1827
|
self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
|
|
515
1828
|
var _s = $RefreshSig$();
|
|
516
|
-
const Content = _s(_react.forwardRef(_c = _s((props, ref)=>{
|
|
1829
|
+
const Content = /*#__PURE__*/ _s(_react.forwardRef(_c = _s((props, ref)=>{
|
|
517
1830
|
_s();
|
|
518
|
-
const { prefixCls, title, style, className, visible, forceRender,
|
|
519
|
-
const dialogRef = (0, _react.useRef)();
|
|
520
|
-
const panelRef = (0, _react.useRef)();
|
|
1831
|
+
const { prefixCls, title, style, className, visible, forceRender, destroyOnHidden, motionName, ariaId, onVisibleChanged, mousePosition } = props;
|
|
1832
|
+
const dialogRef = (0, _react.useRef)(null);
|
|
1833
|
+
const panelRef = (0, _react.useRef)(null);
|
|
1834
|
+
// ============================== Refs ==============================
|
|
521
1835
|
_react.useImperativeHandle(ref, ()=>({
|
|
522
1836
|
...panelRef.current,
|
|
523
1837
|
inMotion: dialogRef.current.inMotion,
|
|
524
1838
|
enableMotion: dialogRef.current.enableMotion
|
|
525
1839
|
}));
|
|
1840
|
+
// ============================= Style ==============================
|
|
526
1841
|
const [transformOrigin, setTransformOrigin] = _react.useState();
|
|
527
1842
|
const contentStyle = {};
|
|
528
1843
|
if (transformOrigin) contentStyle.transformOrigin = transformOrigin;
|
|
@@ -530,16 +1845,17 @@ const Content = _s(_react.forwardRef(_c = _s((props, ref)=>{
|
|
|
530
1845
|
const elementOffset = (0, _util.offset)(dialogRef.current.nativeElement);
|
|
531
1846
|
setTransformOrigin(mousePosition && (mousePosition.x || mousePosition.y) ? `${mousePosition.x - elementOffset.left}px ${mousePosition.y - elementOffset.top}px` : '');
|
|
532
1847
|
}
|
|
533
|
-
|
|
1848
|
+
// ============================= Render =============================
|
|
1849
|
+
return /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_motion.default, {
|
|
534
1850
|
visible: visible,
|
|
535
1851
|
onVisibleChanged: onVisibleChanged,
|
|
536
1852
|
onAppearPrepare: onPrepare,
|
|
537
1853
|
onEnterPrepare: onPrepare,
|
|
538
1854
|
forceRender: forceRender,
|
|
539
1855
|
motionName: motionName,
|
|
540
|
-
removeOnLeave:
|
|
1856
|
+
removeOnLeave: destroyOnHidden,
|
|
541
1857
|
ref: dialogRef,
|
|
542
|
-
children: ({ className: motionClassName, style: motionStyle }, motionRef)
|
|
1858
|
+
children: ({ className: motionClassName, style: motionStyle }, motionRef)=>/*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_Panel.default, {
|
|
543
1859
|
...props,
|
|
544
1860
|
ref: panelRef,
|
|
545
1861
|
title: title,
|
|
@@ -551,15 +1867,15 @@ const Content = _s(_react.forwardRef(_c = _s((props, ref)=>{
|
|
|
551
1867
|
...style,
|
|
552
1868
|
...contentStyle
|
|
553
1869
|
},
|
|
554
|
-
className: (0,
|
|
1870
|
+
className: (0, _clsx.clsx)(className, motionClassName)
|
|
555
1871
|
}, void 0, false, {
|
|
556
1872
|
fileName: "src/Dialog/Content/index.tsx",
|
|
557
|
-
lineNumber:
|
|
1873
|
+
lineNumber: 77,
|
|
558
1874
|
columnNumber: 9
|
|
559
1875
|
}, this)
|
|
560
1876
|
}, void 0, false, {
|
|
561
1877
|
fileName: "src/Dialog/Content/index.tsx",
|
|
562
|
-
lineNumber:
|
|
1878
|
+
lineNumber: 66,
|
|
563
1879
|
columnNumber: 5
|
|
564
1880
|
}, this);
|
|
565
1881
|
}, "B8iJBl3QRco45KFPnPJ2XBRLfiA=")), "B8iJBl3QRco45KFPnPJ2XBRLfiA=");
|
|
@@ -606,11 +1922,11 @@ __mako_require__.d(exports, "default", {
|
|
|
606
1922
|
});
|
|
607
1923
|
var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
|
|
608
1924
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
609
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
610
|
-
var _jsxdevruntime = __mako_require__("node_modules/
|
|
611
|
-
var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
612
|
-
var
|
|
613
|
-
var _motion = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules
|
|
1925
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
1926
|
+
var _jsxdevruntime = __mako_require__("node_modules/react/jsx-dev-runtime.js");
|
|
1927
|
+
var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react/index.js"));
|
|
1928
|
+
var _clsx = __mako_require__("node_modules/clsx/dist/clsx.mjs");
|
|
1929
|
+
var _motion = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules/@rc-component/motion/es/index.js"));
|
|
614
1930
|
var prevRefreshReg;
|
|
615
1931
|
var prevRefreshSig;
|
|
616
1932
|
prevRefreshReg = self.$RefreshReg$;
|
|
@@ -631,7 +1947,7 @@ const Mask = (props)=>{
|
|
|
631
1947
|
...motionStyle,
|
|
632
1948
|
...style
|
|
633
1949
|
},
|
|
634
|
-
className: (0,
|
|
1950
|
+
className: (0, _clsx.clsx)(`${prefixCls}-mask`, motionClassName, className),
|
|
635
1951
|
...maskProps
|
|
636
1952
|
}, void 0, false, {
|
|
637
1953
|
fileName: "src/Dialog/Mask.tsx",
|
|
@@ -684,18 +2000,18 @@ __mako_require__.d(exports, "default", {
|
|
|
684
2000
|
});
|
|
685
2001
|
var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
|
|
686
2002
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
687
|
-
var _reactrefresh = _interop_require_wildcard._(__mako_require__("node_modules/
|
|
688
|
-
var _jsxdevruntime = __mako_require__("node_modules/
|
|
689
|
-
var
|
|
690
|
-
var _contains = _interop_require_default._(__mako_require__("node_modules
|
|
691
|
-
var _useId = _interop_require_default._(__mako_require__("node_modules
|
|
692
|
-
var _KeyCode = _interop_require_default._(__mako_require__("node_modules
|
|
693
|
-
var _pickAttrs = _interop_require_default._(__mako_require__("node_modules
|
|
694
|
-
var _react = _interop_require_wildcard._(__mako_require__("node_modules/
|
|
2003
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
2004
|
+
var _jsxdevruntime = __mako_require__("node_modules/react/jsx-dev-runtime.js");
|
|
2005
|
+
var _clsx = __mako_require__("node_modules/clsx/dist/clsx.mjs");
|
|
2006
|
+
var _contains = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules/@rc-component/util/lib/Dom/contains.js"));
|
|
2007
|
+
var _useId = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules/@rc-component/util/lib/hooks/useId.js"));
|
|
2008
|
+
var _KeyCode = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules/@rc-component/util/lib/KeyCode.js"));
|
|
2009
|
+
var _pickAttrs = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules/@rc-component/util/lib/pickAttrs.js"));
|
|
2010
|
+
var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react/index.js"));
|
|
695
2011
|
var _util = __mako_require__("src/util.ts");
|
|
696
|
-
var _Content = _interop_require_default._(__mako_require__("src/Dialog/Content/index.tsx"));
|
|
697
|
-
var _Mask = _interop_require_default._(__mako_require__("src/Dialog/Mask.tsx"));
|
|
698
|
-
var _warning = __mako_require__("node_modules
|
|
2012
|
+
var _Content = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/Dialog/Content/index.tsx"));
|
|
2013
|
+
var _Mask = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/Dialog/Mask.tsx"));
|
|
2014
|
+
var _warning = __mako_require__("node_modules/@rc-component/util/lib/warning.js");
|
|
699
2015
|
var prevRefreshReg;
|
|
700
2016
|
var prevRefreshSig;
|
|
701
2017
|
prevRefreshReg = self.$RefreshReg$;
|
|
@@ -707,7 +2023,11 @@ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
|
|
|
707
2023
|
var _s = $RefreshSig$();
|
|
708
2024
|
const Dialog = (props)=>{
|
|
709
2025
|
_s();
|
|
710
|
-
const { prefixCls = 'rc-dialog', zIndex, visible = false, keyboard = true, focusTriggerAfterClose = true,
|
|
2026
|
+
const { prefixCls = 'rc-dialog', zIndex, visible = false, keyboard = true, focusTriggerAfterClose = true, // scrollLocker,
|
|
2027
|
+
// Wrapper
|
|
2028
|
+
wrapStyle, wrapClassName, wrapProps, onClose, afterOpenChange, afterClose, // Dialog
|
|
2029
|
+
transitionName, animation, closable = true, // Mask
|
|
2030
|
+
mask = true, maskTransitionName, maskAnimation, maskClosable = true, maskStyle, maskProps, rootClassName, rootStyle, classNames: modalClassNames, styles: modalStyles } = props;
|
|
711
2031
|
[
|
|
712
2032
|
'wrapStyle',
|
|
713
2033
|
'bodyStyle',
|
|
@@ -716,10 +2036,11 @@ const Dialog = (props)=>{
|
|
|
716
2036
|
(0, _warning.warning)(!(prop in props), `${prop} is deprecated, please use styles instead.`);
|
|
717
2037
|
});
|
|
718
2038
|
if ('wrapClassName' in props) (0, _warning.warning)(false, `wrapClassName is deprecated, please use classNames instead.`);
|
|
719
|
-
const lastOutSideActiveElementRef = (0, _react.useRef)();
|
|
720
|
-
const wrapperRef = (0, _react.useRef)();
|
|
721
|
-
const contentRef = (0, _react.useRef)();
|
|
2039
|
+
const lastOutSideActiveElementRef = (0, _react.useRef)(null);
|
|
2040
|
+
const wrapperRef = (0, _react.useRef)(null);
|
|
2041
|
+
const contentRef = (0, _react.useRef)(null);
|
|
722
2042
|
const [animatedVisible, setAnimatedVisible] = _react.useState(visible);
|
|
2043
|
+
// ========================== Init ==========================
|
|
723
2044
|
const ariaId = (0, _useId.default)();
|
|
724
2045
|
function saveLastOutSideActiveElementRef() {
|
|
725
2046
|
if (!(0, _contains.default)(wrapperRef.current, document.activeElement)) lastOutSideActiveElementRef.current = document.activeElement;
|
|
@@ -730,19 +2051,28 @@ const Dialog = (props)=>{
|
|
|
730
2051
|
(_contentRef_current = contentRef.current) === null || _contentRef_current === void 0 || _contentRef_current.focus();
|
|
731
2052
|
}
|
|
732
2053
|
}
|
|
2054
|
+
// ========================= Events =========================
|
|
2055
|
+
// Close action will trigger by:
|
|
2056
|
+
// 1. When hide motion end
|
|
2057
|
+
// 2. Controlled `open` to `false` immediately after set to `true` which will not trigger motion
|
|
733
2058
|
function doClose() {
|
|
2059
|
+
// Clean up scroll bar & focus back
|
|
734
2060
|
setAnimatedVisible(false);
|
|
735
2061
|
if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {
|
|
736
2062
|
try {
|
|
737
2063
|
lastOutSideActiveElementRef.current.focus({
|
|
738
2064
|
preventScroll: true
|
|
739
2065
|
});
|
|
740
|
-
} catch (e) {
|
|
2066
|
+
} catch (e) {
|
|
2067
|
+
// Do nothing
|
|
2068
|
+
}
|
|
741
2069
|
lastOutSideActiveElementRef.current = null;
|
|
742
2070
|
}
|
|
2071
|
+
// Trigger afterClose only when change visible from true to false
|
|
743
2072
|
if (animatedVisible) afterClose === null || afterClose === void 0 || afterClose();
|
|
744
2073
|
}
|
|
745
2074
|
function onDialogVisibleChanged(newVisible) {
|
|
2075
|
+
// Try to focus
|
|
746
2076
|
if (newVisible) focusDialogContent();
|
|
747
2077
|
else doClose();
|
|
748
2078
|
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(newVisible);
|
|
@@ -750,8 +2080,10 @@ const Dialog = (props)=>{
|
|
|
750
2080
|
function onInternalClose(e) {
|
|
751
2081
|
onClose === null || onClose === void 0 || onClose(e);
|
|
752
2082
|
}
|
|
2083
|
+
// >>> Content
|
|
753
2084
|
const contentClickRef = (0, _react.useRef)(false);
|
|
754
|
-
const contentTimeoutRef = (0, _react.useRef)();
|
|
2085
|
+
const contentTimeoutRef = (0, _react.useRef)(null);
|
|
2086
|
+
// We need record content click incase content popup out of dialog
|
|
755
2087
|
const onContentMouseDown = ()=>{
|
|
756
2088
|
clearTimeout(contentTimeoutRef.current);
|
|
757
2089
|
contentClickRef.current = true;
|
|
@@ -761,6 +2093,8 @@ const Dialog = (props)=>{
|
|
|
761
2093
|
contentClickRef.current = false;
|
|
762
2094
|
});
|
|
763
2095
|
};
|
|
2096
|
+
// >>> Wrapper
|
|
2097
|
+
// Close only when element not on dialog
|
|
764
2098
|
let onWrapperClick = null;
|
|
765
2099
|
if (maskClosable) onWrapperClick = (e)=>{
|
|
766
2100
|
if (contentClickRef.current) contentClickRef.current = false;
|
|
@@ -772,8 +2106,8 @@ const Dialog = (props)=>{
|
|
|
772
2106
|
onInternalClose(e);
|
|
773
2107
|
return;
|
|
774
2108
|
}
|
|
775
|
-
if (visible && e.keyCode === _KeyCode.default.TAB) contentRef.current.changeActive(!e.shiftKey);
|
|
776
2109
|
}
|
|
2110
|
+
// ========================= Effect =========================
|
|
777
2111
|
(0, _react.useEffect)(()=>{
|
|
778
2112
|
if (visible) {
|
|
779
2113
|
setAnimatedVisible(true);
|
|
@@ -782,6 +2116,7 @@ const Dialog = (props)=>{
|
|
|
782
2116
|
}, [
|
|
783
2117
|
visible
|
|
784
2118
|
]);
|
|
2119
|
+
// Remove direct should also check the scroll bar update
|
|
785
2120
|
(0, _react.useEffect)(()=>()=>{
|
|
786
2121
|
clearTimeout(contentTimeoutRef.current);
|
|
787
2122
|
}, []);
|
|
@@ -791,14 +2126,15 @@ const Dialog = (props)=>{
|
|
|
791
2126
|
...modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.wrapper,
|
|
792
2127
|
display: !animatedVisible ? 'none' : null
|
|
793
2128
|
};
|
|
794
|
-
|
|
795
|
-
|
|
2129
|
+
// ========================= Render =========================
|
|
2130
|
+
return /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
|
|
2131
|
+
className: (0, _clsx.clsx)(`${prefixCls}-root`, rootClassName),
|
|
796
2132
|
style: rootStyle,
|
|
797
2133
|
...(0, _pickAttrs.default)(props, {
|
|
798
2134
|
data: true
|
|
799
2135
|
}),
|
|
800
2136
|
children: [
|
|
801
|
-
(0, _jsxdevruntime.jsxDEV)(_Mask.default, {
|
|
2137
|
+
/*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_Mask.default, {
|
|
802
2138
|
prefixCls: prefixCls,
|
|
803
2139
|
visible: mask && visible,
|
|
804
2140
|
motionName: (0, _util.getMotionName)(prefixCls, maskTransitionName, maskAnimation),
|
|
@@ -811,18 +2147,17 @@ const Dialog = (props)=>{
|
|
|
811
2147
|
className: modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.mask
|
|
812
2148
|
}, void 0, false, {
|
|
813
2149
|
fileName: "src/Dialog/index.tsx",
|
|
814
|
-
lineNumber:
|
|
2150
|
+
lineNumber: 188,
|
|
815
2151
|
columnNumber: 7
|
|
816
2152
|
}, this),
|
|
817
|
-
(0, _jsxdevruntime.jsxDEV)("div", {
|
|
818
|
-
tabIndex: -1,
|
|
2153
|
+
/*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
|
|
819
2154
|
onKeyDown: onWrapperKeyDown,
|
|
820
|
-
className: (0,
|
|
2155
|
+
className: (0, _clsx.clsx)(`${prefixCls}-wrap`, wrapClassName, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.wrapper),
|
|
821
2156
|
ref: wrapperRef,
|
|
822
2157
|
onClick: onWrapperClick,
|
|
823
2158
|
style: mergedStyle,
|
|
824
2159
|
...wrapProps,
|
|
825
|
-
children: (0, _jsxdevruntime.jsxDEV)(_Content.default, {
|
|
2160
|
+
children: /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_Content.default, {
|
|
826
2161
|
...props,
|
|
827
2162
|
onMouseDown: onContentMouseDown,
|
|
828
2163
|
onMouseUp: onContentMouseUp,
|
|
@@ -836,18 +2171,18 @@ const Dialog = (props)=>{
|
|
|
836
2171
|
motionName: (0, _util.getMotionName)(prefixCls, transitionName, animation)
|
|
837
2172
|
}, void 0, false, {
|
|
838
2173
|
fileName: "src/Dialog/index.tsx",
|
|
839
|
-
lineNumber:
|
|
2174
|
+
lineNumber: 204,
|
|
840
2175
|
columnNumber: 9
|
|
841
2176
|
}, this)
|
|
842
2177
|
}, void 0, false, {
|
|
843
2178
|
fileName: "src/Dialog/index.tsx",
|
|
844
|
-
lineNumber:
|
|
2179
|
+
lineNumber: 196,
|
|
845
2180
|
columnNumber: 7
|
|
846
2181
|
}, this)
|
|
847
2182
|
]
|
|
848
2183
|
}, void 0, true, {
|
|
849
2184
|
fileName: "src/Dialog/index.tsx",
|
|
850
|
-
lineNumber:
|
|
2185
|
+
lineNumber: 183,
|
|
851
2186
|
columnNumber: 5
|
|
852
2187
|
}, this);
|
|
853
2188
|
};
|
|
@@ -896,10 +2231,10 @@ __mako_require__.d(exports, "default", {
|
|
|
896
2231
|
});
|
|
897
2232
|
var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
|
|
898
2233
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
899
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
900
|
-
var _jsxdevruntime = __mako_require__("node_modules/
|
|
901
|
-
var _portal = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules
|
|
902
|
-
var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
2234
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
2235
|
+
var _jsxdevruntime = __mako_require__("node_modules/react/jsx-dev-runtime.js");
|
|
2236
|
+
var _portal = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules/@rc-component/portal/es/index.js"));
|
|
2237
|
+
var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react/index.js"));
|
|
903
2238
|
var _context = __mako_require__("src/context.ts");
|
|
904
2239
|
var _Dialog = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/Dialog/index.tsx"));
|
|
905
2240
|
var prevRefreshReg;
|
|
@@ -920,7 +2255,7 @@ var _s = $RefreshSig$();
|
|
|
920
2255
|
* So here should add a child (div element) to custom container.
|
|
921
2256
|
* */ const DialogWrap = (props)=>{
|
|
922
2257
|
_s();
|
|
923
|
-
const { visible, getContainer, forceRender,
|
|
2258
|
+
const { visible, getContainer, forceRender, destroyOnHidden = false, afterClose, closable, panelRef } = props;
|
|
924
2259
|
const [animatedVisible, setAnimatedVisible] = _react.useState(visible);
|
|
925
2260
|
const refContext = _react.useMemo(()=>({
|
|
926
2261
|
panel: panelRef
|
|
@@ -933,7 +2268,7 @@ var _s = $RefreshSig$();
|
|
|
933
2268
|
visible
|
|
934
2269
|
]);
|
|
935
2270
|
// Destroy on close will remove wrapped div
|
|
936
|
-
if (!forceRender &&
|
|
2271
|
+
if (!forceRender && destroyOnHidden && !animatedVisible) return null;
|
|
937
2272
|
return /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_context.RefContext.Provider, {
|
|
938
2273
|
value: refContext,
|
|
939
2274
|
children: /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_portal.default, {
|
|
@@ -943,24 +2278,27 @@ var _s = $RefreshSig$();
|
|
|
943
2278
|
autoLock: visible || animatedVisible,
|
|
944
2279
|
children: /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_Dialog.default, {
|
|
945
2280
|
...props,
|
|
946
|
-
|
|
2281
|
+
destroyOnHidden: destroyOnHidden,
|
|
947
2282
|
afterClose: ()=>{
|
|
2283
|
+
const closableObj = closable && typeof closable === 'object' ? closable : {};
|
|
2284
|
+
const { afterClose: closableAfterClose } = closableObj || {};
|
|
2285
|
+
closableAfterClose === null || closableAfterClose === void 0 || closableAfterClose();
|
|
948
2286
|
afterClose === null || afterClose === void 0 || afterClose();
|
|
949
2287
|
setAnimatedVisible(false);
|
|
950
2288
|
}
|
|
951
2289
|
}, void 0, false, {
|
|
952
2290
|
fileName: "src/DialogWrap.tsx",
|
|
953
|
-
lineNumber:
|
|
2291
|
+
lineNumber: 49,
|
|
954
2292
|
columnNumber: 9
|
|
955
2293
|
}, this)
|
|
956
2294
|
}, void 0, false, {
|
|
957
2295
|
fileName: "src/DialogWrap.tsx",
|
|
958
|
-
lineNumber:
|
|
2296
|
+
lineNumber: 43,
|
|
959
2297
|
columnNumber: 7
|
|
960
2298
|
}, this)
|
|
961
2299
|
}, void 0, false, {
|
|
962
2300
|
fileName: "src/DialogWrap.tsx",
|
|
963
|
-
lineNumber:
|
|
2301
|
+
lineNumber: 42,
|
|
964
2302
|
columnNumber: 5
|
|
965
2303
|
}, this);
|
|
966
2304
|
};
|
|
@@ -1005,8 +2343,8 @@ __mako_require__.d(exports, "RefContext", {
|
|
|
1005
2343
|
}
|
|
1006
2344
|
});
|
|
1007
2345
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
1008
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
1009
|
-
var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
2346
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
2347
|
+
var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react/index.js"));
|
|
1010
2348
|
var prevRefreshReg;
|
|
1011
2349
|
var prevRefreshSig;
|
|
1012
2350
|
prevRefreshReg = self.$RefreshReg$;
|
|
@@ -1060,7 +2398,7 @@ __mako_require__.e(exports, {
|
|
|
1060
2398
|
});
|
|
1061
2399
|
var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
|
|
1062
2400
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
1063
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
2401
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
1064
2402
|
var _DialogWrap = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/DialogWrap.tsx"));
|
|
1065
2403
|
var _Panel = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/Dialog/Content/Panel.tsx"));
|
|
1066
2404
|
var prevRefreshReg;
|
|
@@ -1116,7 +2454,7 @@ __mako_require__.e(exports, {
|
|
|
1116
2454
|
}
|
|
1117
2455
|
});
|
|
1118
2456
|
var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
|
|
1119
|
-
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/
|
|
2457
|
+
var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
|
|
1120
2458
|
var prevRefreshReg;
|
|
1121
2459
|
var prevRefreshSig;
|
|
1122
2460
|
prevRefreshReg = self.$RefreshReg$;
|