@rc-component/dialog 1.6.2 → 1.7.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.
Files changed (108) hide show
  1. package/dist/common-async.js +2518 -0
  2. package/dist/common-async.js.map +1 -0
  3. package/dist/demos-async.css +396 -0
  4. package/dist/demos-async.css.map +1 -0
  5. package/dist/demos-async.js +1242 -0
  6. package/dist/demos-async.js.map +1 -0
  7. package/dist/docs_changelog_md-async.js +2141 -0
  8. package/dist/docs_changelog_md-async.js.map +1 -0
  9. package/dist/docs_demo_ant-design_md-async.js +101 -0
  10. package/dist/docs_demo_ant-design_md-async.js.map +1 -0
  11. package/dist/docs_demo_bootstrap_md-async.js +101 -0
  12. package/dist/docs_demo_bootstrap_md-async.js.map +1 -0
  13. package/dist/docs_demo_draggable_md-async.js +101 -0
  14. package/dist/docs_demo_draggable_md-async.js.map +1 -0
  15. package/dist/docs_demo_multiple-Portal_md-async.js +147 -0
  16. package/dist/docs_demo_multiple-Portal_md-async.js.map +1 -0
  17. package/dist/docs_demo_pure_md-async.js +101 -0
  18. package/dist/docs_demo_pure_md-async.js.map +1 -0
  19. package/dist/docs_index_md-async.js +1754 -0
  20. package/dist/docs_index_md-async.js.map +1 -0
  21. package/dist/dumi__tmp__dumi__theme__ContextWrapper-async.js +201 -0
  22. package/dist/dumi__tmp__dumi__theme__ContextWrapper-async.js.map +1 -0
  23. package/dist/meta__docs-async.css +396 -0
  24. package/dist/meta__docs-async.css.map +1 -0
  25. package/dist/meta__docs-async.js +1048 -0
  26. package/dist/meta__docs-async.js.map +1 -0
  27. package/dist/nm__dumi__dist__client__pages__404-async.js +69 -0
  28. package/dist/nm__dumi__dist__client__pages__404-async.js.map +1 -0
  29. package/dist/nm__dumi__dist__client__pages__Demo__index-async.js +63 -0
  30. package/dist/{9f7aa744-async.3e863897.js.map → nm__dumi__dist__client__pages__Demo__index-async.js.map} +1 -1
  31. package/dist/node_modules_dumi_dist_client_misc_reactDemoCompiler_js-async.js +368 -0
  32. package/dist/node_modules_dumi_dist_client_misc_reactDemoCompiler_js-async.js.map +1 -0
  33. package/dist/node_modules_dumi_theme-default_layouts_DocLayout_index_js-async.js +1077 -0
  34. package/dist/node_modules_dumi_theme-default_layouts_DocLayout_index_js-async.js.map +1 -0
  35. package/dist/node_modules_react-dom_server_browser_js-async.js +18 -0
  36. package/dist/{f410dd15-async.4aeedec3.js.map → node_modules_react-dom_server_browser_js-async.js.map} +1 -1
  37. package/dist/umi.css +1317 -0
  38. package/dist/umi.css.map +1 -0
  39. package/dist/umi.js +83003 -0
  40. package/dist/umi.js.map +1 -0
  41. package/dist/vendors-async.css +26259 -0
  42. package/dist/vendors-async.css.map +1 -0
  43. package/dist/vendors-async.js +56792 -0
  44. package/dist/vendors-async.js.map +1 -0
  45. package/es/Dialog/index.js +0 -12
  46. package/es/DialogWrap.js +14 -1
  47. package/es/IDialogPropTypes.d.ts +1 -1
  48. package/lib/Dialog/index.js +0 -12
  49. package/lib/DialogWrap.js +14 -1
  50. package/lib/IDialogPropTypes.d.ts +1 -1
  51. package/package.json +5 -5
  52. package/dist/00feb83c-async.b2b13c3a.js +0 -2
  53. package/dist/00feb83c-async.b2b13c3a.js.map +0 -1
  54. package/dist/12e34244-async.042e069f.js +0 -2
  55. package/dist/12e34244-async.042e069f.js.map +0 -1
  56. package/dist/1476aea7-async.5924d48b.js +0 -2
  57. package/dist/1476aea7-async.5924d48b.js.map +0 -1
  58. package/dist/267f1112-async.b1c4e09d.js +0 -2
  59. package/dist/267f1112-async.b1c4e09d.js.map +0 -1
  60. package/dist/3daea961-async.dfa8a2b7.js +0 -2
  61. package/dist/3daea961-async.dfa8a2b7.js.map +0 -1
  62. package/dist/404.html +0 -15
  63. package/dist/42e76558-async.f2db19d4.js +0 -2
  64. package/dist/42e76558-async.f2db19d4.js.map +0 -1
  65. package/dist/58f5abb1-async.f36f6f5a.js +0 -2
  66. package/dist/58f5abb1-async.f36f6f5a.js.map +0 -1
  67. package/dist/779f92e1-async.d95373de.js +0 -124
  68. package/dist/779f92e1-async.d95373de.js.map +0 -1
  69. package/dist/9e8e2db3-async.7488f9f0.css +0 -2
  70. package/dist/9e8e2db3-async.7488f9f0.css.map +0 -1
  71. package/dist/9e8e2db3-async.82b5afee.js +0 -8
  72. package/dist/9e8e2db3-async.82b5afee.js.map +0 -1
  73. package/dist/9f7aa744-async.3e863897.js +0 -2
  74. package/dist/bd24602e-async.050c580d.js +0 -2
  75. package/dist/bd24602e-async.050c580d.js.map +0 -1
  76. package/dist/cd8d7381-async.a336cd94.js +0 -2
  77. package/dist/cd8d7381-async.a336cd94.js.map +0 -1
  78. package/dist/changelog/index.html +0 -15
  79. package/dist/common-async.d12bbb31.js +0 -2
  80. package/dist/common-async.d12bbb31.js.map +0 -1
  81. package/dist/demo/ant-design/index.html +0 -15
  82. package/dist/demo/bootstrap/index.html +0 -15
  83. package/dist/demo/draggable/index.html +0 -15
  84. package/dist/demo/multiple--portal/index.html +0 -15
  85. package/dist/demo/pure/index.html +0 -15
  86. package/dist/f2210531-async.0ea798a7.js +0 -2
  87. package/dist/f2210531-async.0ea798a7.js.map +0 -1
  88. package/dist/f410dd15-async.4aeedec3.js +0 -2
  89. package/dist/fff33d9f-async.4061bf6f.js +0 -2
  90. package/dist/fff33d9f-async.4061bf6f.js.map +0 -1
  91. package/dist/fff33d9f-async.f200d0df.css +0 -2
  92. package/dist/fff33d9f-async.f200d0df.css.map +0 -1
  93. package/dist/index.html +0 -15
  94. package/dist/preload_helper.fdfc8d07.js +0 -1
  95. package/dist/umi.ebc6765d.js +0 -9
  96. package/dist/umi.ebc6765d.js.map +0 -1
  97. package/dist/umi.ed582539.css +0 -2
  98. package/dist/umi.ed582539.css.map +0 -1
  99. package/dist/vendors-async.53ad541e.css +0 -2
  100. package/dist/vendors-async.53ad541e.css.map +0 -1
  101. package/dist/vendors-async.af87bf96.js +0 -44
  102. package/dist/vendors-async.af87bf96.js.map +0 -1
  103. package/dist/~demos/:id/index.html +0 -15
  104. package/dist/~demos/docs-demo-ant-design-demo-ant-design/index.html +0 -15
  105. package/dist/~demos/docs-demo-bootstrap-demo-bootstrap/index.html +0 -15
  106. package/dist/~demos/docs-demo-draggable-demo-draggable/index.html +0 -15
  107. package/dist/~demos/docs-demo-multiple-portal-demo-multiple-portal/index.html +0 -15
  108. package/dist/~demos/docs-demo-pure-demo-pure/index.html +0 -15
@@ -0,0 +1,2518 @@
1
+ ((typeof globalThis !== 'undefined' ? globalThis : self)["makoChunk_@rc-component/dialog"] = (typeof globalThis !== 'undefined' ? globalThis : self)["makoChunk_@rc-component/dialog"] || []).push([
2
+ ['common'],
3
+ { "docs/changelog.md?type=text": function (module, exports, __mako_require__){
4
+ "use strict";
5
+ __mako_require__.d(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ __mako_require__.d(exports, "texts", {
9
+ enumerable: true,
10
+ get: function() {
11
+ return texts;
12
+ }
13
+ });
14
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
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"));
766
+ var prevRefreshReg;
767
+ var prevRefreshSig;
768
+ prevRefreshReg = self.$RefreshReg$;
769
+ prevRefreshSig = self.$RefreshSig$;
770
+ self.$RefreshReg$ = (type, id)=>{
771
+ _reactrefresh.register(type, module.id + id);
772
+ };
773
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
774
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
775
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
776
+ function registerClassComponent(filename, moduleExports) {
777
+ for(const key in moduleExports)try {
778
+ if (key === "__esModule") continue;
779
+ const exportValue = moduleExports[key];
780
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
781
+ } catch (e) {}
782
+ }
783
+ function $RefreshIsReactComponentLike$(moduleExports) {
784
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
785
+ for(var key in moduleExports)try {
786
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
787
+ } catch (e) {}
788
+ return false;
789
+ }
790
+ registerClassComponent(module.id, module.exports);
791
+ if ($RefreshIsReactComponentLike$(module.exports)) {
792
+ module.meta.hot.accept();
793
+ _reactrefresh.performReactRefresh();
794
+ }
795
+
796
+ },
797
+ "docs/examples/bootstrap.tsx?watch=parent": function (module, exports, __mako_require__){
798
+ "use strict";
799
+ __mako_require__.d(exports, "__esModule", {
800
+ value: true
801
+ });
802
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
803
+ var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
804
+ var prevRefreshReg;
805
+ var prevRefreshSig;
806
+ prevRefreshReg = self.$RefreshReg$;
807
+ prevRefreshSig = self.$RefreshSig$;
808
+ self.$RefreshReg$ = (type, id)=>{
809
+ _reactrefresh.register(type, module.id + id);
810
+ };
811
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
812
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
813
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
814
+ function registerClassComponent(filename, moduleExports) {
815
+ for(const key in moduleExports)try {
816
+ if (key === "__esModule") continue;
817
+ const exportValue = moduleExports[key];
818
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
819
+ } catch (e) {}
820
+ }
821
+ function $RefreshIsReactComponentLike$(moduleExports) {
822
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
823
+ for(var key in moduleExports)try {
824
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
825
+ } catch (e) {}
826
+ return false;
827
+ }
828
+ registerClassComponent(module.id, module.exports);
829
+ if ($RefreshIsReactComponentLike$(module.exports)) {
830
+ module.meta.hot.accept();
831
+ _reactrefresh.performReactRefresh();
832
+ }
833
+
834
+ },
835
+ "docs/examples/draggable.tsx?watch=parent": function (module, exports, __mako_require__){
836
+ "use strict";
837
+ __mako_require__.d(exports, "__esModule", {
838
+ value: true
839
+ });
840
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
841
+ var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
842
+ var prevRefreshReg;
843
+ var prevRefreshSig;
844
+ prevRefreshReg = self.$RefreshReg$;
845
+ prevRefreshSig = self.$RefreshSig$;
846
+ self.$RefreshReg$ = (type, id)=>{
847
+ _reactrefresh.register(type, module.id + id);
848
+ };
849
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
850
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
851
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
852
+ function registerClassComponent(filename, moduleExports) {
853
+ for(const key in moduleExports)try {
854
+ if (key === "__esModule") continue;
855
+ const exportValue = moduleExports[key];
856
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
857
+ } catch (e) {}
858
+ }
859
+ function $RefreshIsReactComponentLike$(moduleExports) {
860
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
861
+ for(var key in moduleExports)try {
862
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
863
+ } catch (e) {}
864
+ return false;
865
+ }
866
+ registerClassComponent(module.id, module.exports);
867
+ if ($RefreshIsReactComponentLike$(module.exports)) {
868
+ module.meta.hot.accept();
869
+ _reactrefresh.performReactRefresh();
870
+ }
871
+
872
+ },
873
+ "docs/examples/multiple-Portal.tsx?watch=parent": function (module, exports, __mako_require__){
874
+ "use strict";
875
+ __mako_require__.d(exports, "__esModule", {
876
+ value: true
877
+ });
878
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
879
+ var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
880
+ var prevRefreshReg;
881
+ var prevRefreshSig;
882
+ prevRefreshReg = self.$RefreshReg$;
883
+ prevRefreshSig = self.$RefreshSig$;
884
+ self.$RefreshReg$ = (type, id)=>{
885
+ _reactrefresh.register(type, module.id + id);
886
+ };
887
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
888
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
889
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
890
+ function registerClassComponent(filename, moduleExports) {
891
+ for(const key in moduleExports)try {
892
+ if (key === "__esModule") continue;
893
+ const exportValue = moduleExports[key];
894
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
895
+ } catch (e) {}
896
+ }
897
+ function $RefreshIsReactComponentLike$(moduleExports) {
898
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
899
+ for(var key in moduleExports)try {
900
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
901
+ } catch (e) {}
902
+ return false;
903
+ }
904
+ registerClassComponent(module.id, module.exports);
905
+ if ($RefreshIsReactComponentLike$(module.exports)) {
906
+ module.meta.hot.accept();
907
+ _reactrefresh.performReactRefresh();
908
+ }
909
+
910
+ },
911
+ "docs/examples/pure.tsx?watch=parent": function (module, exports, __mako_require__){
912
+ "use strict";
913
+ __mako_require__.d(exports, "__esModule", {
914
+ value: true
915
+ });
916
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
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");
963
+ var prevRefreshReg;
964
+ var prevRefreshSig;
965
+ prevRefreshReg = self.$RefreshReg$;
966
+ prevRefreshSig = self.$RefreshSig$;
967
+ self.$RefreshReg$ = (type, id)=>{
968
+ _reactrefresh.register(type, module.id + id);
969
+ };
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
+ ];
1517
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
1518
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
1519
+ function registerClassComponent(filename, moduleExports) {
1520
+ for(const key in moduleExports)try {
1521
+ if (key === "__esModule") continue;
1522
+ const exportValue = moduleExports[key];
1523
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
1524
+ } catch (e) {}
1525
+ }
1526
+ function $RefreshIsReactComponentLike$(moduleExports) {
1527
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
1528
+ for(var key in moduleExports)try {
1529
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
1530
+ } catch (e) {}
1531
+ return false;
1532
+ }
1533
+ registerClassComponent(module.id, module.exports);
1534
+ if ($RefreshIsReactComponentLike$(module.exports)) {
1535
+ module.meta.hot.accept();
1536
+ _reactrefresh.performReactRefresh();
1537
+ }
1538
+
1539
+ },
1540
+ "src/Dialog/Content/MemoChildren.tsx": function (module, exports, __mako_require__){
1541
+ "use strict";
1542
+ __mako_require__.d(exports, "__esModule", {
1543
+ value: true
1544
+ });
1545
+ __mako_require__.d(exports, "default", {
1546
+ enumerable: true,
1547
+ get: function() {
1548
+ return _default;
1549
+ }
1550
+ });
1551
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
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"));
1554
+ var prevRefreshReg;
1555
+ var prevRefreshSig;
1556
+ prevRefreshReg = self.$RefreshReg$;
1557
+ prevRefreshSig = self.$RefreshSig$;
1558
+ self.$RefreshReg$ = (type, id)=>{
1559
+ _reactrefresh.register(type, module.id + id);
1560
+ };
1561
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
1562
+ var _default = /*#__PURE__*/ _c1 = _react.memo(_c = ({ children })=>children, (_, { shouldUpdate })=>!shouldUpdate);
1563
+ var _c;
1564
+ var _c1;
1565
+ $RefreshReg$(_c, "%default%$React.memo");
1566
+ $RefreshReg$(_c1, "%default%");
1567
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
1568
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
1569
+ function registerClassComponent(filename, moduleExports) {
1570
+ for(const key in moduleExports)try {
1571
+ if (key === "__esModule") continue;
1572
+ const exportValue = moduleExports[key];
1573
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
1574
+ } catch (e) {}
1575
+ }
1576
+ function $RefreshIsReactComponentLike$(moduleExports) {
1577
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
1578
+ for(var key in moduleExports)try {
1579
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
1580
+ } catch (e) {}
1581
+ return false;
1582
+ }
1583
+ registerClassComponent(module.id, module.exports);
1584
+ if ($RefreshIsReactComponentLike$(module.exports)) {
1585
+ module.meta.hot.accept();
1586
+ _reactrefresh.performReactRefresh();
1587
+ }
1588
+
1589
+ },
1590
+ "src/Dialog/Content/Panel.tsx": function (module, exports, __mako_require__){
1591
+ "use strict";
1592
+ __mako_require__.d(exports, "__esModule", {
1593
+ value: true
1594
+ });
1595
+ __mako_require__.d(exports, "default", {
1596
+ enumerable: true,
1597
+ get: function() {
1598
+ return _default;
1599
+ }
1600
+ });
1601
+ var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
1602
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
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"));
1609
+ var _context = __mako_require__("src/context.ts");
1610
+ var _MemoChildren = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/Dialog/Content/MemoChildren.tsx"));
1611
+ var _pickAttrs = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules/@rc-component/util/lib/pickAttrs.js"));
1612
+ var prevRefreshReg;
1613
+ var prevRefreshSig;
1614
+ prevRefreshReg = self.$RefreshReg$;
1615
+ prevRefreshSig = self.$RefreshSig$;
1616
+ self.$RefreshReg$ = (type, id)=>{
1617
+ _reactrefresh.register(type, module.id + id);
1618
+ };
1619
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
1620
+ var _s = $RefreshSig$();
1621
+ const Panel = /*#__PURE__*/ _s(_react.default.forwardRef(_c = _s((props, ref)=>{
1622
+ _s();
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;
1624
+ // ================================= Refs =================================
1625
+ const { panel: panelRef } = _react.default.useContext(_context.RefContext);
1626
+ const internalRef = (0, _react.useRef)(null);
1627
+ const mergedRef = (0, _ref.useComposeRef)(holderRef, panelRef, internalRef);
1628
+ (0, _focus.useLockFocus)(visible, ()=>internalRef.current);
1629
+ _react.default.useImperativeHandle(ref, ()=>({
1630
+ focus: ()=>{
1631
+ var _internalRef_current;
1632
+ (_internalRef_current = internalRef.current) === null || _internalRef_current === void 0 || _internalRef_current.focus({
1633
+ preventScroll: true
1634
+ });
1635
+ }
1636
+ }));
1637
+ // ================================ Style =================================
1638
+ const contentStyle = {};
1639
+ if (width !== undefined) contentStyle.width = width;
1640
+ if (height !== undefined) contentStyle.height = height;
1641
+ // ================================ Render ================================
1642
+ const footerNode = footer ? /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
1643
+ className: (0, _clsx.clsx)(`${prefixCls}-footer`, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.footer),
1644
+ style: {
1645
+ ...modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.footer
1646
+ },
1647
+ children: footer
1648
+ }, void 0, false, {
1649
+ fileName: "src/Dialog/Content/Panel.tsx",
1650
+ lineNumber: 72,
1651
+ columnNumber: 5
1652
+ }, this) : null;
1653
+ const headerNode = title ? /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
1654
+ className: (0, _clsx.clsx)(`${prefixCls}-header`, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.header),
1655
+ style: {
1656
+ ...modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.header
1657
+ },
1658
+ children: /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
1659
+ className: (0, _clsx.clsx)(`${prefixCls}-title`, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.title),
1660
+ id: ariaId,
1661
+ style: {
1662
+ ...modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.title
1663
+ },
1664
+ children: title
1665
+ }, void 0, false, {
1666
+ fileName: "src/Dialog/Content/Panel.tsx",
1667
+ lineNumber: 85,
1668
+ columnNumber: 7
1669
+ }, this)
1670
+ }, void 0, false, {
1671
+ fileName: "src/Dialog/Content/Panel.tsx",
1672
+ lineNumber: 81,
1673
+ columnNumber: 5
1674
+ }, this) : null;
1675
+ const closableObj = (0, _react.useMemo)(()=>{
1676
+ if (typeof closable === 'object' && closable !== null) return closable;
1677
+ if (closable) return {
1678
+ closeIcon: closeIcon ?? /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("span", {
1679
+ className: `${prefixCls}-close-x`
1680
+ }, void 0, false, {
1681
+ fileName: "src/Dialog/Content/Panel.tsx",
1682
+ lineNumber: 100,
1683
+ columnNumber: 40
1684
+ }, this)
1685
+ };
1686
+ return {};
1687
+ }, [
1688
+ closable,
1689
+ closeIcon,
1690
+ prefixCls
1691
+ ]);
1692
+ const ariaProps = (0, _pickAttrs.default)(closableObj, true);
1693
+ const closeBtnIsDisabled = typeof closable === 'object' && closable.disabled;
1694
+ const closerNode = closable ? /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("button", {
1695
+ type: "button",
1696
+ onClick: onClose,
1697
+ "aria-label": "Close",
1698
+ ...ariaProps,
1699
+ className: `${prefixCls}-close`,
1700
+ disabled: closeBtnIsDisabled,
1701
+ children: closableObj.closeIcon
1702
+ }, void 0, false, {
1703
+ fileName: "src/Dialog/Content/Panel.tsx",
1704
+ lineNumber: 109,
1705
+ columnNumber: 5
1706
+ }, this) : null;
1707
+ const content = /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
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,
1710
+ children: [
1711
+ closerNode,
1712
+ headerNode,
1713
+ /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
1714
+ className: (0, _clsx.clsx)(`${prefixCls}-body`, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.body),
1715
+ style: {
1716
+ ...bodyStyle,
1717
+ ...modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.body
1718
+ },
1719
+ ...bodyProps,
1720
+ children: children
1721
+ }, void 0, false, {
1722
+ fileName: "src/Dialog/Content/Panel.tsx",
1723
+ lineNumber: 128,
1724
+ columnNumber: 7
1725
+ }, this),
1726
+ footerNode
1727
+ ]
1728
+ }, void 0, true, {
1729
+ fileName: "src/Dialog/Content/Panel.tsx",
1730
+ lineNumber: 122,
1731
+ columnNumber: 5
1732
+ }, this);
1733
+ return /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
1734
+ role: "dialog",
1735
+ "aria-labelledby": title ? ariaId : null,
1736
+ "aria-modal": "true",
1737
+ ref: mergedRef,
1738
+ style: {
1739
+ ...style,
1740
+ ...contentStyle
1741
+ },
1742
+ className: (0, _clsx.clsx)(prefixCls, className),
1743
+ onMouseDown: onMouseDown,
1744
+ onMouseUp: onMouseUp,
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, {
1755
+ fileName: "src/Dialog/Content/Panel.tsx",
1756
+ lineNumber: 140,
1757
+ columnNumber: 5
1758
+ }, this);
1759
+ }, "bU247zidmyUZOs2UoXntPMSnEJE=", false, function() {
1760
+ return [
1761
+ _ref.useComposeRef,
1762
+ _focus.useLockFocus
1763
+ ];
1764
+ })), "bU247zidmyUZOs2UoXntPMSnEJE=", false, function() {
1765
+ return [
1766
+ _ref.useComposeRef,
1767
+ _focus.useLockFocus
1768
+ ];
1769
+ });
1770
+ _c1 = Panel;
1771
+ Panel.displayName = 'Panel';
1772
+ var _default = Panel;
1773
+ var _c;
1774
+ var _c1;
1775
+ $RefreshReg$(_c, "Panel$React.forwardRef");
1776
+ $RefreshReg$(_c1, "Panel");
1777
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
1778
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
1779
+ function registerClassComponent(filename, moduleExports) {
1780
+ for(const key in moduleExports)try {
1781
+ if (key === "__esModule") continue;
1782
+ const exportValue = moduleExports[key];
1783
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
1784
+ } catch (e) {}
1785
+ }
1786
+ function $RefreshIsReactComponentLike$(moduleExports) {
1787
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
1788
+ for(var key in moduleExports)try {
1789
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
1790
+ } catch (e) {}
1791
+ return false;
1792
+ }
1793
+ registerClassComponent(module.id, module.exports);
1794
+ if ($RefreshIsReactComponentLike$(module.exports)) {
1795
+ module.meta.hot.accept();
1796
+ _reactrefresh.performReactRefresh();
1797
+ }
1798
+
1799
+ },
1800
+ "src/Dialog/Content/index.tsx": function (module, exports, __mako_require__){
1801
+ "use strict";
1802
+ __mako_require__.d(exports, "__esModule", {
1803
+ value: true
1804
+ });
1805
+ __mako_require__.d(exports, "default", {
1806
+ enumerable: true,
1807
+ get: function() {
1808
+ return _default;
1809
+ }
1810
+ });
1811
+ var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
1812
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
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"));
1818
+ var _util = __mako_require__("src/util.ts");
1819
+ var _Panel = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/Dialog/Content/Panel.tsx"));
1820
+ var prevRefreshReg;
1821
+ var prevRefreshSig;
1822
+ prevRefreshReg = self.$RefreshReg$;
1823
+ prevRefreshSig = self.$RefreshSig$;
1824
+ self.$RefreshReg$ = (type, id)=>{
1825
+ _reactrefresh.register(type, module.id + id);
1826
+ };
1827
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
1828
+ var _s = $RefreshSig$();
1829
+ const Content = /*#__PURE__*/ _s(_react.forwardRef(_c = _s((props, ref)=>{
1830
+ _s();
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 ==============================
1835
+ _react.useImperativeHandle(ref, ()=>({
1836
+ ...panelRef.current,
1837
+ inMotion: dialogRef.current.inMotion,
1838
+ enableMotion: dialogRef.current.enableMotion
1839
+ }));
1840
+ // ============================= Style ==============================
1841
+ const [transformOrigin, setTransformOrigin] = _react.useState();
1842
+ const contentStyle = {};
1843
+ if (transformOrigin) contentStyle.transformOrigin = transformOrigin;
1844
+ function onPrepare() {
1845
+ const elementOffset = (0, _util.offset)(dialogRef.current.nativeElement);
1846
+ setTransformOrigin(mousePosition && (mousePosition.x || mousePosition.y) ? `${mousePosition.x - elementOffset.left}px ${mousePosition.y - elementOffset.top}px` : '');
1847
+ }
1848
+ // ============================= Render =============================
1849
+ return /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_motion.default, {
1850
+ visible: visible,
1851
+ onVisibleChanged: onVisibleChanged,
1852
+ onAppearPrepare: onPrepare,
1853
+ onEnterPrepare: onPrepare,
1854
+ forceRender: forceRender,
1855
+ motionName: motionName,
1856
+ removeOnLeave: destroyOnHidden,
1857
+ ref: dialogRef,
1858
+ children: ({ className: motionClassName, style: motionStyle }, motionRef)=>/*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_Panel.default, {
1859
+ ...props,
1860
+ ref: panelRef,
1861
+ title: title,
1862
+ ariaId: ariaId,
1863
+ prefixCls: prefixCls,
1864
+ holderRef: motionRef,
1865
+ style: {
1866
+ ...motionStyle,
1867
+ ...style,
1868
+ ...contentStyle
1869
+ },
1870
+ className: (0, _clsx.clsx)(className, motionClassName)
1871
+ }, void 0, false, {
1872
+ fileName: "src/Dialog/Content/index.tsx",
1873
+ lineNumber: 77,
1874
+ columnNumber: 9
1875
+ }, this)
1876
+ }, void 0, false, {
1877
+ fileName: "src/Dialog/Content/index.tsx",
1878
+ lineNumber: 66,
1879
+ columnNumber: 5
1880
+ }, this);
1881
+ }, "B8iJBl3QRco45KFPnPJ2XBRLfiA=")), "B8iJBl3QRco45KFPnPJ2XBRLfiA=");
1882
+ _c1 = Content;
1883
+ Content.displayName = 'Content';
1884
+ var _default = Content;
1885
+ var _c;
1886
+ var _c1;
1887
+ $RefreshReg$(_c, "Content$React.forwardRef");
1888
+ $RefreshReg$(_c1, "Content");
1889
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
1890
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
1891
+ function registerClassComponent(filename, moduleExports) {
1892
+ for(const key in moduleExports)try {
1893
+ if (key === "__esModule") continue;
1894
+ const exportValue = moduleExports[key];
1895
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
1896
+ } catch (e) {}
1897
+ }
1898
+ function $RefreshIsReactComponentLike$(moduleExports) {
1899
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
1900
+ for(var key in moduleExports)try {
1901
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
1902
+ } catch (e) {}
1903
+ return false;
1904
+ }
1905
+ registerClassComponent(module.id, module.exports);
1906
+ if ($RefreshIsReactComponentLike$(module.exports)) {
1907
+ module.meta.hot.accept();
1908
+ _reactrefresh.performReactRefresh();
1909
+ }
1910
+
1911
+ },
1912
+ "src/Dialog/Mask.tsx": function (module, exports, __mako_require__){
1913
+ "use strict";
1914
+ __mako_require__.d(exports, "__esModule", {
1915
+ value: true
1916
+ });
1917
+ __mako_require__.d(exports, "default", {
1918
+ enumerable: true,
1919
+ get: function() {
1920
+ return _default;
1921
+ }
1922
+ });
1923
+ var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
1924
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
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"));
1930
+ var prevRefreshReg;
1931
+ var prevRefreshSig;
1932
+ prevRefreshReg = self.$RefreshReg$;
1933
+ prevRefreshSig = self.$RefreshSig$;
1934
+ self.$RefreshReg$ = (type, id)=>{
1935
+ _reactrefresh.register(type, module.id + id);
1936
+ };
1937
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
1938
+ const Mask = (props)=>{
1939
+ const { prefixCls, style, visible, maskProps, motionName, className } = props;
1940
+ return /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_motion.default, {
1941
+ visible: visible,
1942
+ motionName: motionName,
1943
+ leavedClassName: `${prefixCls}-mask-hidden`,
1944
+ children: ({ className: motionClassName, style: motionStyle }, ref)=>/*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
1945
+ ref: ref,
1946
+ style: {
1947
+ ...motionStyle,
1948
+ ...style
1949
+ },
1950
+ className: (0, _clsx.clsx)(`${prefixCls}-mask`, motionClassName, className),
1951
+ ...maskProps
1952
+ }, void 0, false, {
1953
+ fileName: "src/Dialog/Mask.tsx",
1954
+ lineNumber: 24,
1955
+ columnNumber: 9
1956
+ }, this)
1957
+ }, "mask", false, {
1958
+ fileName: "src/Dialog/Mask.tsx",
1959
+ lineNumber: 17,
1960
+ columnNumber: 5
1961
+ }, this);
1962
+ };
1963
+ _c = Mask;
1964
+ var _default = Mask;
1965
+ var _c;
1966
+ $RefreshReg$(_c, "Mask");
1967
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
1968
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
1969
+ function registerClassComponent(filename, moduleExports) {
1970
+ for(const key in moduleExports)try {
1971
+ if (key === "__esModule") continue;
1972
+ const exportValue = moduleExports[key];
1973
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
1974
+ } catch (e) {}
1975
+ }
1976
+ function $RefreshIsReactComponentLike$(moduleExports) {
1977
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
1978
+ for(var key in moduleExports)try {
1979
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
1980
+ } catch (e) {}
1981
+ return false;
1982
+ }
1983
+ registerClassComponent(module.id, module.exports);
1984
+ if ($RefreshIsReactComponentLike$(module.exports)) {
1985
+ module.meta.hot.accept();
1986
+ _reactrefresh.performReactRefresh();
1987
+ }
1988
+
1989
+ },
1990
+ "src/Dialog/index.tsx": function (module, exports, __mako_require__){
1991
+ "use strict";
1992
+ __mako_require__.d(exports, "__esModule", {
1993
+ value: true
1994
+ });
1995
+ __mako_require__.d(exports, "default", {
1996
+ enumerable: true,
1997
+ get: function() {
1998
+ return _default;
1999
+ }
2000
+ });
2001
+ var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
2002
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
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"));
2011
+ var _util = __mako_require__("src/util.ts");
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");
2015
+ var prevRefreshReg;
2016
+ var prevRefreshSig;
2017
+ prevRefreshReg = self.$RefreshReg$;
2018
+ prevRefreshSig = self.$RefreshSig$;
2019
+ self.$RefreshReg$ = (type, id)=>{
2020
+ _reactrefresh.register(type, module.id + id);
2021
+ };
2022
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
2023
+ var _s = $RefreshSig$();
2024
+ const Dialog = (props)=>{
2025
+ _s();
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;
2031
+ [
2032
+ 'wrapStyle',
2033
+ 'bodyStyle',
2034
+ 'maskStyle'
2035
+ ].forEach((prop)=>{
2036
+ (0, _warning.warning)(!(prop in props), `${prop} is deprecated, please use styles instead.`);
2037
+ });
2038
+ if ('wrapClassName' in props) (0, _warning.warning)(false, `wrapClassName is deprecated, please use classNames instead.`);
2039
+ const lastOutSideActiveElementRef = (0, _react.useRef)(null);
2040
+ const wrapperRef = (0, _react.useRef)(null);
2041
+ const contentRef = (0, _react.useRef)(null);
2042
+ const [animatedVisible, setAnimatedVisible] = _react.useState(visible);
2043
+ // ========================== Init ==========================
2044
+ const ariaId = (0, _useId.default)();
2045
+ function saveLastOutSideActiveElementRef() {
2046
+ if (!(0, _contains.default)(wrapperRef.current, document.activeElement)) lastOutSideActiveElementRef.current = document.activeElement;
2047
+ }
2048
+ function focusDialogContent() {
2049
+ if (!(0, _contains.default)(wrapperRef.current, document.activeElement)) {
2050
+ var _contentRef_current;
2051
+ (_contentRef_current = contentRef.current) === null || _contentRef_current === void 0 || _contentRef_current.focus();
2052
+ }
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
2058
+ function doClose() {
2059
+ // Clean up scroll bar & focus back
2060
+ setAnimatedVisible(false);
2061
+ if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {
2062
+ try {
2063
+ lastOutSideActiveElementRef.current.focus({
2064
+ preventScroll: true
2065
+ });
2066
+ } catch (e) {
2067
+ // Do nothing
2068
+ }
2069
+ lastOutSideActiveElementRef.current = null;
2070
+ }
2071
+ // Trigger afterClose only when change visible from true to false
2072
+ if (animatedVisible) afterClose === null || afterClose === void 0 || afterClose();
2073
+ }
2074
+ function onDialogVisibleChanged(newVisible) {
2075
+ // Try to focus
2076
+ if (newVisible) focusDialogContent();
2077
+ else doClose();
2078
+ afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(newVisible);
2079
+ }
2080
+ function onInternalClose(e) {
2081
+ onClose === null || onClose === void 0 || onClose(e);
2082
+ }
2083
+ // >>> Content
2084
+ const contentClickRef = (0, _react.useRef)(false);
2085
+ const contentTimeoutRef = (0, _react.useRef)(null);
2086
+ // We need record content click incase content popup out of dialog
2087
+ const onContentMouseDown = ()=>{
2088
+ clearTimeout(contentTimeoutRef.current);
2089
+ contentClickRef.current = true;
2090
+ };
2091
+ const onContentMouseUp = ()=>{
2092
+ contentTimeoutRef.current = setTimeout(()=>{
2093
+ contentClickRef.current = false;
2094
+ });
2095
+ };
2096
+ // >>> Wrapper
2097
+ // Close only when element not on dialog
2098
+ let onWrapperClick = null;
2099
+ if (maskClosable) onWrapperClick = (e)=>{
2100
+ if (contentClickRef.current) contentClickRef.current = false;
2101
+ else if (wrapperRef.current === e.target) onInternalClose(e);
2102
+ };
2103
+ function onWrapperKeyDown(e) {
2104
+ if (keyboard && e.keyCode === _KeyCode.default.ESC) {
2105
+ e.stopPropagation();
2106
+ onInternalClose(e);
2107
+ return;
2108
+ }
2109
+ }
2110
+ // ========================= Effect =========================
2111
+ (0, _react.useEffect)(()=>{
2112
+ if (visible) {
2113
+ setAnimatedVisible(true);
2114
+ saveLastOutSideActiveElementRef();
2115
+ } else if (animatedVisible && contentRef.current.enableMotion() && !contentRef.current.inMotion()) doClose();
2116
+ }, [
2117
+ visible
2118
+ ]);
2119
+ // Remove direct should also check the scroll bar update
2120
+ (0, _react.useEffect)(()=>()=>{
2121
+ clearTimeout(contentTimeoutRef.current);
2122
+ }, []);
2123
+ const mergedStyle = {
2124
+ zIndex,
2125
+ ...wrapStyle,
2126
+ ...modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.wrapper,
2127
+ display: !animatedVisible ? 'none' : null
2128
+ };
2129
+ // ========================= Render =========================
2130
+ return /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
2131
+ className: (0, _clsx.clsx)(`${prefixCls}-root`, rootClassName),
2132
+ style: rootStyle,
2133
+ ...(0, _pickAttrs.default)(props, {
2134
+ data: true
2135
+ }),
2136
+ children: [
2137
+ /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_Mask.default, {
2138
+ prefixCls: prefixCls,
2139
+ visible: mask && visible,
2140
+ motionName: (0, _util.getMotionName)(prefixCls, maskTransitionName, maskAnimation),
2141
+ style: {
2142
+ zIndex,
2143
+ ...maskStyle,
2144
+ ...modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.mask
2145
+ },
2146
+ maskProps: maskProps,
2147
+ className: modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.mask
2148
+ }, void 0, false, {
2149
+ fileName: "src/Dialog/index.tsx",
2150
+ lineNumber: 188,
2151
+ columnNumber: 7
2152
+ }, this),
2153
+ /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)("div", {
2154
+ onKeyDown: onWrapperKeyDown,
2155
+ className: (0, _clsx.clsx)(`${prefixCls}-wrap`, wrapClassName, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.wrapper),
2156
+ ref: wrapperRef,
2157
+ onClick: onWrapperClick,
2158
+ style: mergedStyle,
2159
+ ...wrapProps,
2160
+ children: /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_Content.default, {
2161
+ ...props,
2162
+ onMouseDown: onContentMouseDown,
2163
+ onMouseUp: onContentMouseUp,
2164
+ ref: contentRef,
2165
+ closable: closable,
2166
+ ariaId: ariaId,
2167
+ prefixCls: prefixCls,
2168
+ visible: visible && animatedVisible,
2169
+ onClose: onInternalClose,
2170
+ onVisibleChanged: onDialogVisibleChanged,
2171
+ motionName: (0, _util.getMotionName)(prefixCls, transitionName, animation)
2172
+ }, void 0, false, {
2173
+ fileName: "src/Dialog/index.tsx",
2174
+ lineNumber: 204,
2175
+ columnNumber: 9
2176
+ }, this)
2177
+ }, void 0, false, {
2178
+ fileName: "src/Dialog/index.tsx",
2179
+ lineNumber: 196,
2180
+ columnNumber: 7
2181
+ }, this)
2182
+ ]
2183
+ }, void 0, true, {
2184
+ fileName: "src/Dialog/index.tsx",
2185
+ lineNumber: 183,
2186
+ columnNumber: 5
2187
+ }, this);
2188
+ };
2189
+ _s(Dialog, "jpgAGSop6biDTxPFPAMT85ShMu0=", false, function() {
2190
+ return [
2191
+ _useId.default
2192
+ ];
2193
+ });
2194
+ _c = Dialog;
2195
+ var _default = Dialog;
2196
+ var _c;
2197
+ $RefreshReg$(_c, "Dialog");
2198
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
2199
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
2200
+ function registerClassComponent(filename, moduleExports) {
2201
+ for(const key in moduleExports)try {
2202
+ if (key === "__esModule") continue;
2203
+ const exportValue = moduleExports[key];
2204
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
2205
+ } catch (e) {}
2206
+ }
2207
+ function $RefreshIsReactComponentLike$(moduleExports) {
2208
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
2209
+ for(var key in moduleExports)try {
2210
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
2211
+ } catch (e) {}
2212
+ return false;
2213
+ }
2214
+ registerClassComponent(module.id, module.exports);
2215
+ if ($RefreshIsReactComponentLike$(module.exports)) {
2216
+ module.meta.hot.accept();
2217
+ _reactrefresh.performReactRefresh();
2218
+ }
2219
+
2220
+ },
2221
+ "src/DialogWrap.tsx": function (module, exports, __mako_require__){
2222
+ "use strict";
2223
+ __mako_require__.d(exports, "__esModule", {
2224
+ value: true
2225
+ });
2226
+ __mako_require__.d(exports, "default", {
2227
+ enumerable: true,
2228
+ get: function() {
2229
+ return _default;
2230
+ }
2231
+ });
2232
+ var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
2233
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
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"));
2238
+ var _context = __mako_require__("src/context.ts");
2239
+ var _Dialog = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/Dialog/index.tsx"));
2240
+ var prevRefreshReg;
2241
+ var prevRefreshSig;
2242
+ prevRefreshReg = self.$RefreshReg$;
2243
+ prevRefreshSig = self.$RefreshSig$;
2244
+ self.$RefreshReg$ = (type, id)=>{
2245
+ _reactrefresh.register(type, module.id + id);
2246
+ };
2247
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
2248
+ var _s = $RefreshSig$();
2249
+ // fix issue #10656
2250
+ /*
2251
+ * getContainer remarks
2252
+ * Custom container should not be return, because in the Portal component, it will remove the
2253
+ * return container element here, if the custom container is the only child of it's component,
2254
+ * like issue #10656, It will has a conflict with removeChild method in react-dom.
2255
+ * So here should add a child (div element) to custom container.
2256
+ * */ const DialogWrap = (props)=>{
2257
+ _s();
2258
+ const { visible, getContainer, forceRender, destroyOnHidden = false, afterClose, closable, panelRef } = props;
2259
+ const [animatedVisible, setAnimatedVisible] = _react.useState(visible);
2260
+ const refContext = _react.useMemo(()=>({
2261
+ panel: panelRef
2262
+ }), [
2263
+ panelRef
2264
+ ]);
2265
+ _react.useEffect(()=>{
2266
+ if (visible) setAnimatedVisible(true);
2267
+ }, [
2268
+ visible
2269
+ ]);
2270
+ // Destroy on close will remove wrapped div
2271
+ if (!forceRender && destroyOnHidden && !animatedVisible) return null;
2272
+ return /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_context.RefContext.Provider, {
2273
+ value: refContext,
2274
+ children: /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_portal.default, {
2275
+ open: visible || forceRender || animatedVisible,
2276
+ autoDestroy: false,
2277
+ getContainer: getContainer,
2278
+ autoLock: visible || animatedVisible,
2279
+ children: /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_Dialog.default, {
2280
+ ...props,
2281
+ destroyOnHidden: destroyOnHidden,
2282
+ afterClose: ()=>{
2283
+ const closableObj = closable && typeof closable === 'object' ? closable : {};
2284
+ const { afterClose: closableAfterClose } = closableObj || {};
2285
+ closableAfterClose === null || closableAfterClose === void 0 || closableAfterClose();
2286
+ afterClose === null || afterClose === void 0 || afterClose();
2287
+ setAnimatedVisible(false);
2288
+ }
2289
+ }, void 0, false, {
2290
+ fileName: "src/DialogWrap.tsx",
2291
+ lineNumber: 49,
2292
+ columnNumber: 9
2293
+ }, this)
2294
+ }, void 0, false, {
2295
+ fileName: "src/DialogWrap.tsx",
2296
+ lineNumber: 43,
2297
+ columnNumber: 7
2298
+ }, this)
2299
+ }, void 0, false, {
2300
+ fileName: "src/DialogWrap.tsx",
2301
+ lineNumber: 42,
2302
+ columnNumber: 5
2303
+ }, this);
2304
+ };
2305
+ _s(DialogWrap, "N2Fqxpoym3ZwLNsWl2JCF4u+lvs=");
2306
+ _c = DialogWrap;
2307
+ DialogWrap.displayName = 'Dialog';
2308
+ var _default = DialogWrap;
2309
+ var _c;
2310
+ $RefreshReg$(_c, "DialogWrap");
2311
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
2312
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
2313
+ function registerClassComponent(filename, moduleExports) {
2314
+ for(const key in moduleExports)try {
2315
+ if (key === "__esModule") continue;
2316
+ const exportValue = moduleExports[key];
2317
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
2318
+ } catch (e) {}
2319
+ }
2320
+ function $RefreshIsReactComponentLike$(moduleExports) {
2321
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
2322
+ for(var key in moduleExports)try {
2323
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
2324
+ } catch (e) {}
2325
+ return false;
2326
+ }
2327
+ registerClassComponent(module.id, module.exports);
2328
+ if ($RefreshIsReactComponentLike$(module.exports)) {
2329
+ module.meta.hot.accept();
2330
+ _reactrefresh.performReactRefresh();
2331
+ }
2332
+
2333
+ },
2334
+ "src/context.ts": function (module, exports, __mako_require__){
2335
+ "use strict";
2336
+ __mako_require__.d(exports, "__esModule", {
2337
+ value: true
2338
+ });
2339
+ __mako_require__.d(exports, "RefContext", {
2340
+ enumerable: true,
2341
+ get: function() {
2342
+ return RefContext;
2343
+ }
2344
+ });
2345
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
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"));
2348
+ var prevRefreshReg;
2349
+ var prevRefreshSig;
2350
+ prevRefreshReg = self.$RefreshReg$;
2351
+ prevRefreshSig = self.$RefreshSig$;
2352
+ self.$RefreshReg$ = (type, id)=>{
2353
+ _reactrefresh.register(type, module.id + id);
2354
+ };
2355
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
2356
+ const RefContext = /*#__PURE__*/ _react.createContext({});
2357
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
2358
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
2359
+ function registerClassComponent(filename, moduleExports) {
2360
+ for(const key in moduleExports)try {
2361
+ if (key === "__esModule") continue;
2362
+ const exportValue = moduleExports[key];
2363
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
2364
+ } catch (e) {}
2365
+ }
2366
+ function $RefreshIsReactComponentLike$(moduleExports) {
2367
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
2368
+ for(var key in moduleExports)try {
2369
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
2370
+ } catch (e) {}
2371
+ return false;
2372
+ }
2373
+ registerClassComponent(module.id, module.exports);
2374
+ if ($RefreshIsReactComponentLike$(module.exports)) {
2375
+ module.meta.hot.accept();
2376
+ _reactrefresh.performReactRefresh();
2377
+ }
2378
+
2379
+ },
2380
+ "src/index.ts": function (module, exports, __mako_require__){
2381
+ "use strict";
2382
+ __mako_require__.d(exports, "__esModule", {
2383
+ value: true
2384
+ });
2385
+ function _export(target, all) {
2386
+ for(var name in all)Object.defineProperty(target, name, {
2387
+ enumerable: true,
2388
+ get: all[name]
2389
+ });
2390
+ }
2391
+ __mako_require__.e(exports, {
2392
+ Panel: function() {
2393
+ return _Panel.default;
2394
+ },
2395
+ default: function() {
2396
+ return _default;
2397
+ }
2398
+ });
2399
+ var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
2400
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
2401
+ var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
2402
+ var _DialogWrap = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/DialogWrap.tsx"));
2403
+ var _Panel = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/Dialog/Content/Panel.tsx"));
2404
+ var prevRefreshReg;
2405
+ var prevRefreshSig;
2406
+ prevRefreshReg = self.$RefreshReg$;
2407
+ prevRefreshSig = self.$RefreshSig$;
2408
+ self.$RefreshReg$ = (type, id)=>{
2409
+ _reactrefresh.register(type, module.id + id);
2410
+ };
2411
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
2412
+ var _default = _DialogWrap.default;
2413
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
2414
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
2415
+ function registerClassComponent(filename, moduleExports) {
2416
+ for(const key in moduleExports)try {
2417
+ if (key === "__esModule") continue;
2418
+ const exportValue = moduleExports[key];
2419
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
2420
+ } catch (e) {}
2421
+ }
2422
+ function $RefreshIsReactComponentLike$(moduleExports) {
2423
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
2424
+ for(var key in moduleExports)try {
2425
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
2426
+ } catch (e) {}
2427
+ return false;
2428
+ }
2429
+ registerClassComponent(module.id, module.exports);
2430
+ if ($RefreshIsReactComponentLike$(module.exports)) {
2431
+ module.meta.hot.accept();
2432
+ _reactrefresh.performReactRefresh();
2433
+ }
2434
+
2435
+ },
2436
+ "src/util.ts": function (module, exports, __mako_require__){
2437
+ // =============================== Motion ===============================
2438
+ "use strict";
2439
+ __mako_require__.d(exports, "__esModule", {
2440
+ value: true
2441
+ });
2442
+ function _export(target, all) {
2443
+ for(var name in all)Object.defineProperty(target, name, {
2444
+ enumerable: true,
2445
+ get: all[name]
2446
+ });
2447
+ }
2448
+ __mako_require__.e(exports, {
2449
+ getMotionName: function() {
2450
+ return getMotionName;
2451
+ },
2452
+ offset: function() {
2453
+ return offset;
2454
+ }
2455
+ });
2456
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
2457
+ var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/react-refresh/runtime.js"));
2458
+ var prevRefreshReg;
2459
+ var prevRefreshSig;
2460
+ prevRefreshReg = self.$RefreshReg$;
2461
+ prevRefreshSig = self.$RefreshSig$;
2462
+ self.$RefreshReg$ = (type, id)=>{
2463
+ _reactrefresh.register(type, module.id + id);
2464
+ };
2465
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
2466
+ function getMotionName(prefixCls, transitionName, animationName) {
2467
+ let motionName = transitionName;
2468
+ if (!motionName && animationName) motionName = `${prefixCls}-${animationName}`;
2469
+ return motionName;
2470
+ }
2471
+ // =============================== Offset ===============================
2472
+ function getScroll(w, top) {
2473
+ let ret = w[`page${top ? 'Y' : 'X'}Offset`];
2474
+ const method = `scroll${top ? 'Top' : 'Left'}`;
2475
+ if (typeof ret !== 'number') {
2476
+ const d = w.document;
2477
+ ret = d.documentElement[method];
2478
+ if (typeof ret !== 'number') ret = d.body[method];
2479
+ }
2480
+ return ret;
2481
+ }
2482
+ function offset(el) {
2483
+ const rect = el.getBoundingClientRect();
2484
+ const pos = {
2485
+ left: rect.left,
2486
+ top: rect.top
2487
+ };
2488
+ const doc = el.ownerDocument;
2489
+ const w = doc.defaultView || doc.parentWindow;
2490
+ pos.left += getScroll(w);
2491
+ pos.top += getScroll(w, true);
2492
+ return pos;
2493
+ }
2494
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
2495
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
2496
+ function registerClassComponent(filename, moduleExports) {
2497
+ for(const key in moduleExports)try {
2498
+ if (key === "__esModule") continue;
2499
+ const exportValue = moduleExports[key];
2500
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
2501
+ } catch (e) {}
2502
+ }
2503
+ function $RefreshIsReactComponentLike$(moduleExports) {
2504
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
2505
+ for(var key in moduleExports)try {
2506
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
2507
+ } catch (e) {}
2508
+ return false;
2509
+ }
2510
+ registerClassComponent(module.id, module.exports);
2511
+ if ($RefreshIsReactComponentLike$(module.exports)) {
2512
+ module.meta.hot.accept();
2513
+ _reactrefresh.performReactRefresh();
2514
+ }
2515
+
2516
+ },
2517
+ }]);
2518
+ //# sourceMappingURL=common-async.js.map