@rc-component/dialog 1.0.1 → 1.1.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 (120) hide show
  1. package/dist/10509781610555453368.hot-update-url-map.json +1 -0
  2. package/dist/10509781610555453368.hot-update.json +1 -0
  3. package/dist/11977476592833392720.hot-update-url-map.json +1 -0
  4. package/dist/11977476592833392720.hot-update.json +1 -0
  5. package/dist/14397576132152343869.hot-update-url-map.json +1 -0
  6. package/dist/14397576132152343869.hot-update.json +1 -0
  7. package/dist/14597408625395534096.hot-update-url-map.json +1 -0
  8. package/dist/14597408625395534096.hot-update.json +1 -0
  9. package/dist/15104553912779929595.hot-update-url-map.json +1 -0
  10. package/dist/15104553912779929595.hot-update.json +1 -0
  11. package/dist/4361192314875393955.hot-update-url-map.json +1 -0
  12. package/dist/4361192314875393955.hot-update.json +1 -0
  13. package/dist/4704580574928883170.hot-update-url-map.json +1 -0
  14. package/dist/4704580574928883170.hot-update.json +1 -0
  15. package/dist/5496443382647786649.hot-update-url-map.json +1 -0
  16. package/dist/5496443382647786649.hot-update.json +1 -0
  17. package/dist/7338948553039754745.hot-update-url-map.json +1 -0
  18. package/dist/7338948553039754745.hot-update.json +1 -0
  19. package/dist/7441995189917427860.hot-update-url-map.json +1 -0
  20. package/dist/7441995189917427860.hot-update.json +1 -0
  21. package/dist/8425845753817463333.hot-update-url-map.json +1 -0
  22. package/dist/8425845753817463333.hot-update.json +1 -0
  23. package/dist/8742625841545363477.hot-update-url-map.json +1 -0
  24. package/dist/8742625841545363477.hot-update.json +1 -0
  25. package/dist/960384830459946830.hot-update-url-map.json +1 -0
  26. package/dist/960384830459946830.hot-update.json +1 -0
  27. package/dist/9707589364653732454.hot-update-url-map.json +1 -0
  28. package/dist/9707589364653732454.hot-update.json +1 -0
  29. package/dist/common-async.10509781610555453368.hot-update.js +268 -0
  30. package/dist/common-async.10509781610555453368.hot-update.js.map +1 -0
  31. package/dist/common-async.11977476592833392720.hot-update.js +395 -0
  32. package/dist/common-async.11977476592833392720.hot-update.js.map +1 -0
  33. package/dist/common-async.14397576132152343869.hot-update.js +395 -0
  34. package/dist/common-async.14397576132152343869.hot-update.js.map +1 -0
  35. package/dist/common-async.14597408625395534096.hot-update.js +268 -0
  36. package/dist/common-async.14597408625395534096.hot-update.js.map +1 -0
  37. package/dist/common-async.15104553912779929595.hot-update.js +268 -0
  38. package/dist/common-async.15104553912779929595.hot-update.js.map +1 -0
  39. package/dist/common-async.4361192314875393955.hot-update.js +268 -0
  40. package/dist/common-async.4361192314875393955.hot-update.js.map +1 -0
  41. package/dist/common-async.4704580574928883170.hot-update.js +268 -0
  42. package/dist/common-async.4704580574928883170.hot-update.js.map +1 -0
  43. package/dist/common-async.5496443382647786649.hot-update.js +391 -0
  44. package/dist/common-async.5496443382647786649.hot-update.js.map +1 -0
  45. package/dist/common-async.7338948553039754745.hot-update.js +395 -0
  46. package/dist/common-async.7338948553039754745.hot-update.js.map +1 -0
  47. package/dist/common-async.7441995189917427860.hot-update.js +394 -0
  48. package/dist/common-async.7441995189917427860.hot-update.js.map +1 -0
  49. package/dist/common-async.8425845753817463333.hot-update.js +268 -0
  50. package/dist/common-async.8425845753817463333.hot-update.js.map +1 -0
  51. package/dist/common-async.8742625841545363477.hot-update.js +268 -0
  52. package/dist/common-async.8742625841545363477.hot-update.js.map +1 -0
  53. package/dist/common-async.960384830459946830.hot-update.js +268 -0
  54. package/dist/common-async.960384830459946830.hot-update.js.map +1 -0
  55. package/dist/common-async.9707589364653732454.hot-update.js +268 -0
  56. package/dist/common-async.9707589364653732454.hot-update.js.map +1 -0
  57. package/dist/common-async.js +1180 -0
  58. package/dist/common-async.js.map +1 -0
  59. package/dist/demos-async.7338948553039754745.hot-update.js +395 -0
  60. package/dist/demos-async.7338948553039754745.hot-update.js.map +1 -0
  61. package/dist/demos-async.css +396 -0
  62. package/dist/demos-async.css.map +1 -0
  63. package/dist/demos-async.js +1242 -0
  64. package/dist/demos-async.js.map +1 -0
  65. package/dist/docs_changelog_md-async.js +2159 -0
  66. package/dist/docs_changelog_md-async.js.map +1 -0
  67. package/dist/docs_demo_ant-design_md-async.js +119 -0
  68. package/dist/docs_demo_ant-design_md-async.js.map +1 -0
  69. package/dist/docs_demo_bootstrap_md-async.js +119 -0
  70. package/dist/docs_demo_bootstrap_md-async.js.map +1 -0
  71. package/dist/docs_demo_draggable_md-async.js +119 -0
  72. package/dist/docs_demo_draggable_md-async.js.map +1 -0
  73. package/dist/docs_demo_multiple-Portal_md-async.js +119 -0
  74. package/dist/docs_demo_multiple-Portal_md-async.js.map +1 -0
  75. package/dist/docs_demo_pure_md-async.js +119 -0
  76. package/dist/docs_demo_pure_md-async.js.map +1 -0
  77. package/dist/docs_index_md-async.js +1717 -0
  78. package/dist/docs_index_md-async.js.map +1 -0
  79. package/dist/dumi__tmp__dumi__theme__ContextWrapper-async.js +201 -0
  80. package/dist/dumi__tmp__dumi__theme__ContextWrapper-async.js.map +1 -0
  81. package/dist/meta__docs-async.7338948553039754745.hot-update.js +395 -0
  82. package/dist/meta__docs-async.7338948553039754745.hot-update.js.map +1 -0
  83. package/dist/meta__docs-async.css +396 -0
  84. package/dist/meta__docs-async.css.map +1 -0
  85. package/dist/meta__docs-async.js +2391 -0
  86. package/dist/meta__docs-async.js.map +1 -0
  87. package/dist/nm__dumi__dist__client__pages__404-async.js +69 -0
  88. package/dist/nm__dumi__dist__client__pages__404-async.js.map +1 -0
  89. package/dist/nm__dumi__dist__client__pages__Demo__index-async.js +63 -0
  90. package/dist/nm__dumi__dist__client__pages__Demo__index-async.js.map +1 -0
  91. package/dist/node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js +368 -0
  92. package/dist/node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js.map +1 -0
  93. package/dist/node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js +1077 -0
  94. package/dist/node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js.map +1 -0
  95. package/dist/node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js +18 -0
  96. package/dist/node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js.map +1 -0
  97. package/dist/umi.css +1302 -0
  98. package/dist/umi.css.map +1 -0
  99. package/dist/umi.js +80442 -0
  100. package/dist/umi.js.map +1 -0
  101. package/dist/vendors-async.css +22545 -0
  102. package/dist/vendors-async.css.map +1 -0
  103. package/dist/vendors-async.js +53289 -0
  104. package/dist/vendors-async.js.map +1 -0
  105. package/es/Dialog/Content/Panel.d.ts +2 -2
  106. package/es/Dialog/Content/Panel.js +1 -1
  107. package/es/Dialog/Content/index.d.ts +4 -1
  108. package/es/Dialog/Content/index.js +12 -4
  109. package/es/Dialog/Mask.js +2 -2
  110. package/es/Dialog/index.js +26 -18
  111. package/es/DialogWrap.js +1 -1
  112. package/lib/Dialog/Content/Panel.d.ts +2 -2
  113. package/lib/Dialog/Content/Panel.js +4 -4
  114. package/lib/Dialog/Content/index.d.ts +4 -1
  115. package/lib/Dialog/Content/index.js +15 -7
  116. package/lib/Dialog/Mask.js +5 -5
  117. package/lib/Dialog/index.js +30 -22
  118. package/lib/DialogWrap.js +3 -3
  119. package/lib/index.js +1 -1
  120. package/package.json +10 -15
@@ -0,0 +1 @@
1
+ {"js":{"node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","vendors":"vendors-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","demos":"demos-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","docs/changelog.md":"docs_changelog_md-async.js","docs/index.md":"docs_index_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","common":"common-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","meta__docs":"meta__docs-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js"},"css":{"vendors":"vendors-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","demos":"demos-async.css","meta__docs":"meta__docs-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"common":"common-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","meta__docs":"meta__docs-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","docs/index.md":"docs_index_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","demos":"demos-async.js","docs/changelog.md":"docs_changelog_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","vendors":"vendors-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js"},"css":{"meta__docs":"meta__docs-async.css","demos":"demos-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/index.md":"docs_index_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","demos":"demos-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","common":"common-async.js","meta__docs":"meta__docs-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","vendors":"vendors-async.js","docs/changelog.md":"docs_changelog_md-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js"},"css":{"meta__docs":"meta__docs-async.css","demos":"demos-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/changelog.md":"docs_changelog_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","common":"common-async.js","vendors":"vendors-async.js","docs/index.md":"docs_index_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","meta__docs":"meta__docs-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","demos":"demos-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js"},"css":{".dumi/tmp/umi.ts?hmr":"umi.css","meta__docs":"meta__docs-async.css","demos":"demos-async.css","vendors":"vendors-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","vendors":"vendors-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/changelog.md":"docs_changelog_md-async.js","docs/index.md":"docs_index_md-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","demos":"demos-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","meta__docs":"meta__docs-async.js","common":"common-async.js"},"css":{"vendors":"vendors-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","demos":"demos-async.css","meta__docs":"meta__docs-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"common":"common-async.js","docs/changelog.md":"docs_changelog_md-async.js","demos":"demos-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","vendors":"vendors-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","meta__docs":"meta__docs-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/index.md":"docs_index_md-async.js"},"css":{".dumi/tmp/umi.ts?hmr":"umi.css","meta__docs":"meta__docs-async.css","demos":"demos-async.css","vendors":"vendors-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"demos":"demos-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","vendors":"vendors-async.js","docs/index.md":"docs_index_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","meta__docs":"meta__docs-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","docs/changelog.md":"docs_changelog_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","common":"common-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js"},"css":{"demos":"demos-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css","meta__docs":"meta__docs-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"demos":"demos-async.js","meta__docs":"meta__docs-async.js","vendors":"vendors-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","docs/changelog.md":"docs_changelog_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","common":"common-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","docs/index.md":"docs_index_md-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js"},"css":{"meta__docs":"meta__docs-async.css","vendors":"vendors-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","demos":"demos-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"meta__docs":"meta__docs-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","docs/changelog.md":"docs_changelog_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","demos":"demos-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/index.md":"docs_index_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","vendors":"vendors-async.js","common":"common-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js"},"css":{"meta__docs":"meta__docs-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css","demos":"demos-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["meta__docs-async.js","demos-async.js","common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"docs/changelog.md":"docs_changelog_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","meta__docs":"meta__docs-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","demos":"demos-async.js","vendors":"vendors-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","common":"common-async.js","docs/index.md":"docs_index_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js"},"css":{"vendors":"vendors-async.css","demos":"demos-async.css","meta__docs":"meta__docs-async.css",".dumi/tmp/umi.ts?hmr":"umi.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","demos":"demos-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/index.md":"docs_index_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","vendors":"vendors-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/changelog.md":"docs_changelog_md-async.js","common":"common-async.js","meta__docs":"meta__docs-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js"},"css":{".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css","meta__docs":"meta__docs-async.css","demos":"demos-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","vendors":"vendors-async.js","docs/changelog.md":"docs_changelog_md-async.js","common":"common-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","meta__docs":"meta__docs-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","demos":"demos-async.js","docs/index.md":"docs_index_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js"},"css":{"demos":"demos-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","vendors":"vendors-async.css","meta__docs":"meta__docs-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"vendors":"vendors-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","docs/demo/pure.md":"docs_demo_pure_md-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/changelog.md":"docs_changelog_md-async.js","meta__docs":"meta__docs-async.js","common":"common-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","demos":"demos-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","docs/index.md":"docs_index_md-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js"},"css":{"vendors":"vendors-async.css","meta__docs":"meta__docs-async.css",".dumi/tmp/umi.ts?hmr":"umi.css","demos":"demos-async.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1 @@
1
+ {"js":{"docs/index.md":"docs_index_md-async.js","common":"common-async.js","node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js":"node_modules__dumi_2_4_17_dumi_theme-default_layouts_DocLayout_index_js-async.js","docs/demo/draggable.md":"docs_demo_draggable_md-async.js","docs/changelog.md":"docs_changelog_md-async.js","nm__dumi__dist__client__pages__404":"nm__dumi__dist__client__pages__404-async.js","meta__docs":"meta__docs-async.js","node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js":"node_modules__dumi_2_4_17_dumi_dist_client_misc_reactDemoCompiler_js-async.js","vendors":"vendors-async.js","docs/demo/multiple-Portal.md":"docs_demo_multiple-Portal_md-async.js","demos":"demos-async.js","docs/demo/ant-design.md":"docs_demo_ant-design_md-async.js","docs/demo/bootstrap.md":"docs_demo_bootstrap_md-async.js","dumi__tmp__dumi__theme__ContextWrapper":"dumi__tmp__dumi__theme__ContextWrapper-async.js","node_modules/_react-dom@18.3.1@react-dom/server.browser.js":"node_modules__react-dom_18_3_1_react-dom_server_browser_js-async.js","nm__dumi__dist__client__pages__Demo__index":"nm__dumi__dist__client__pages__Demo__index-async.js",".dumi/tmp/umi.ts?hmr":"umi.js","docs/demo/pure.md":"docs_demo_pure_md-async.js"},"css":{"vendors":"vendors-async.css","meta__docs":"meta__docs-async.css","demos":"demos-async.css",".dumi/tmp/umi.ts?hmr":"umi.css"}}
@@ -0,0 +1 @@
1
+ {"c":["common-async.js"],"r":[]}
@@ -0,0 +1,268 @@
1
+ globalThis.makoModuleHotUpdate('common', {
2
+ modules: {
3
+ "src/Dialog/Content/index.tsx": function(module, exports, __mako_require__) {
4
+ "use strict";
5
+ __mako_require__.d(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ __mako_require__.d(exports, "default", {
9
+ enumerable: true,
10
+ get: function() {
11
+ return _default;
12
+ }
13
+ });
14
+ var _interop_require_default = __mako_require__("@swc/helpers/_/_interop_require_default");
15
+ var _interop_require_wildcard = __mako_require__("@swc/helpers/_/_interop_require_wildcard");
16
+ var _reactrefresh = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/_react-refresh@0.14.2@react-refresh/runtime.js"));
17
+ var _jsxdevruntime = __mako_require__("node_modules/_react@18.3.1@react/jsx-dev-runtime.js");
18
+ var _react = /*#__PURE__*/ _interop_require_wildcard._(__mako_require__("node_modules/_react@18.3.1@react/index.js"));
19
+ var _classnames = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules/_classnames@2.5.1@classnames/index.js"));
20
+ var _motion = /*#__PURE__*/ _interop_require_default._(__mako_require__("node_modules/_@rc-component_motion@1.1.3@@rc-component/motion/es/index.js"));
21
+ var _util = __mako_require__("src/util.ts");
22
+ var _Panel = /*#__PURE__*/ _interop_require_default._(__mako_require__("src/Dialog/Content/Panel.tsx"));
23
+ var prevRefreshReg;
24
+ var prevRefreshSig;
25
+ prevRefreshReg = self.$RefreshReg$;
26
+ prevRefreshSig = self.$RefreshSig$;
27
+ self.$RefreshReg$ = (type, id)=>{
28
+ _reactrefresh.register(type, module.id + id);
29
+ };
30
+ self.$RefreshSig$ = _reactrefresh.createSignatureFunctionForTransform;
31
+ var _s = $RefreshSig$();
32
+ const Content = /*#__PURE__*/ _s(_react.forwardRef(_c = _s((props, ref)=>{
33
+ _s();
34
+ const { prefixCls, title, style, className, visible, forceRender, destroyOnClose, motionName, ariaId, onVisibleChanged, mousePosition } = props;
35
+ const dialogRef = (0, _react.useRef)();
36
+ const panelRef = (0, _react.useRef)();
37
+ // ============================== Refs ==============================
38
+ _react.useImperativeHandle(ref, ()=>({
39
+ ...panelRef.current,
40
+ inMotion: dialogRef.current.inMotion,
41
+ enableMotion: dialogRef.current.enableMotion
42
+ }));
43
+ // ============================= Style ==============================
44
+ const [transformOrigin, setTransformOrigin] = _react.useState();
45
+ const contentStyle = {};
46
+ if (transformOrigin) contentStyle.transformOrigin = transformOrigin;
47
+ function onPrepare() {
48
+ const elementOffset = (0, _util.offset)(dialogRef.current.nativeElement);
49
+ setTransformOrigin(mousePosition && (mousePosition.x || mousePosition.y) ? `${mousePosition.x - elementOffset.left}px ${mousePosition.y - elementOffset.top}px` : '');
50
+ }
51
+ // ============================= Render =============================
52
+ return /*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_motion.default, {
53
+ visible: visible,
54
+ onVisibleChanged: onVisibleChanged,
55
+ onAppearPrepare: onPrepare,
56
+ onEnterPrepare: onPrepare,
57
+ forceRender: forceRender,
58
+ motionName: motionName,
59
+ removeOnLeave: destroyOnClose,
60
+ ref: dialogRef,
61
+ children: ({ className: motionClassName, style: motionStyle }, motionRef)=>/*#__PURE__*/ (0, _jsxdevruntime.jsxDEV)(_Panel.default, {
62
+ ...props,
63
+ ref: panelRef,
64
+ title: title,
65
+ ariaId: ariaId,
66
+ prefixCls: prefixCls,
67
+ holderRef: motionRef,
68
+ style: {
69
+ ...motionStyle,
70
+ ...style,
71
+ ...contentStyle
72
+ },
73
+ className: (0, _classnames.default)(className, motionClassName)
74
+ }, void 0, false, {
75
+ fileName: "src/Dialog/Content/index.tsx",
76
+ lineNumber: 81,
77
+ columnNumber: 9
78
+ }, this)
79
+ }, void 0, false, {
80
+ fileName: "src/Dialog/Content/index.tsx",
81
+ lineNumber: 70,
82
+ columnNumber: 5
83
+ }, this);
84
+ }, "B8iJBl3QRco45KFPnPJ2XBRLfiA=")), "B8iJBl3QRco45KFPnPJ2XBRLfiA=");
85
+ _c1 = Content;
86
+ Content.displayName = 'Content';
87
+ var _default = Content;
88
+ var _c;
89
+ var _c1;
90
+ $RefreshReg$(_c, "Content$React.forwardRef");
91
+ $RefreshReg$(_c1, "Content");
92
+ if (prevRefreshReg) self.$RefreshReg$ = prevRefreshReg;
93
+ if (prevRefreshSig) self.$RefreshSig$ = prevRefreshSig;
94
+ function registerClassComponent(filename, moduleExports) {
95
+ for(const key in moduleExports)try {
96
+ if (key === "__esModule") continue;
97
+ const exportValue = moduleExports[key];
98
+ if (_reactrefresh.isLikelyComponentType(exportValue) && exportValue.prototype && exportValue.prototype.isReactComponent) _reactrefresh.register(exportValue, filename + " " + key);
99
+ } catch (e) {}
100
+ }
101
+ function $RefreshIsReactComponentLike$(moduleExports) {
102
+ if (_reactrefresh.isLikelyComponentType(moduleExports || moduleExports.default)) return true;
103
+ for(var key in moduleExports)try {
104
+ if (_reactrefresh.isLikelyComponentType(moduleExports[key])) return true;
105
+ } catch (e) {}
106
+ return false;
107
+ }
108
+ registerClassComponent(module.id, module.exports);
109
+ if ($RefreshIsReactComponentLike$(module.exports)) {
110
+ module.meta.hot.accept();
111
+ _reactrefresh.performReactRefresh();
112
+ }
113
+ }
114
+ }
115
+ }, function(runtime) {
116
+ runtime._h = '4704580574928883170';
117
+ runtime.updateEnsure2Map({
118
+ ".dumi/tmp/dumi/theme/ContextWrapper.tsx": [
119
+ "dumi__tmp__dumi__theme__ContextWrapper"
120
+ ],
121
+ "docs/changelog.md": [
122
+ "vendors",
123
+ "docs/changelog.md"
124
+ ],
125
+ "docs/changelog.md?type=demo": [
126
+ "vendors",
127
+ "common",
128
+ "meta__docs"
129
+ ],
130
+ "docs/changelog.md?type=text": [
131
+ "vendors",
132
+ "common",
133
+ "meta__docs"
134
+ ],
135
+ "docs/demo/ant-design.md": [
136
+ "vendors",
137
+ "docs/demo/ant-design.md"
138
+ ],
139
+ "docs/demo/ant-design.md?type=demo": [
140
+ "vendors",
141
+ "common",
142
+ "meta__docs"
143
+ ],
144
+ "docs/demo/ant-design.md?type=text": [
145
+ "vendors",
146
+ "common",
147
+ "meta__docs"
148
+ ],
149
+ "docs/demo/bootstrap.md": [
150
+ "vendors",
151
+ "docs/demo/bootstrap.md"
152
+ ],
153
+ "docs/demo/bootstrap.md?type=demo": [
154
+ "vendors",
155
+ "common",
156
+ "meta__docs"
157
+ ],
158
+ "docs/demo/bootstrap.md?type=text": [
159
+ "vendors",
160
+ "common",
161
+ "meta__docs"
162
+ ],
163
+ "docs/demo/draggable.md": [
164
+ "vendors",
165
+ "docs/demo/draggable.md"
166
+ ],
167
+ "docs/demo/draggable.md?type=demo": [
168
+ "vendors",
169
+ "common",
170
+ "meta__docs"
171
+ ],
172
+ "docs/demo/draggable.md?type=text": [
173
+ "vendors",
174
+ "common",
175
+ "meta__docs"
176
+ ],
177
+ "docs/demo/multiple-Portal.md": [
178
+ "vendors",
179
+ "docs/demo/multiple-Portal.md"
180
+ ],
181
+ "docs/demo/multiple-Portal.md?type=demo": [
182
+ "vendors",
183
+ "common",
184
+ "meta__docs"
185
+ ],
186
+ "docs/demo/multiple-Portal.md?type=text": [
187
+ "vendors",
188
+ "common",
189
+ "meta__docs"
190
+ ],
191
+ "docs/demo/pure.md": [
192
+ "vendors",
193
+ "docs/demo/pure.md"
194
+ ],
195
+ "docs/demo/pure.md?type=demo": [
196
+ "vendors",
197
+ "common",
198
+ "meta__docs"
199
+ ],
200
+ "docs/demo/pure.md?type=text": [
201
+ "vendors",
202
+ "common",
203
+ "meta__docs"
204
+ ],
205
+ "docs/examples/ant-design.tsx?techStack=react": [
206
+ "vendors",
207
+ "common",
208
+ "demos"
209
+ ],
210
+ "docs/examples/bootstrap.tsx?techStack=react": [
211
+ "vendors",
212
+ "common",
213
+ "demos"
214
+ ],
215
+ "docs/examples/draggable.tsx?techStack=react": [
216
+ "vendors",
217
+ "common",
218
+ "demos"
219
+ ],
220
+ "docs/examples/multiple-Portal.tsx?techStack=react": [
221
+ "vendors",
222
+ "common",
223
+ "demos"
224
+ ],
225
+ "docs/examples/pure.tsx?techStack=react": [
226
+ "vendors",
227
+ "common",
228
+ "demos"
229
+ ],
230
+ "docs/index.md": [
231
+ "vendors",
232
+ "docs/index.md"
233
+ ],
234
+ "docs/index.md?type=demo": [
235
+ "vendors",
236
+ "common",
237
+ "meta__docs"
238
+ ],
239
+ "docs/index.md?type=text": [
240
+ "vendors",
241
+ "common",
242
+ "meta__docs"
243
+ ],
244
+ "node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js": [
245
+ "vendors",
246
+ "node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js"
247
+ ],
248
+ "node_modules/_dumi@2.4.17@dumi/dist/client/pages/404.js": [
249
+ "vendors",
250
+ "nm__dumi__dist__client__pages__404"
251
+ ],
252
+ "node_modules/_dumi@2.4.17@dumi/dist/client/pages/Demo/index.js": [
253
+ "vendors",
254
+ "nm__dumi__dist__client__pages__Demo__index"
255
+ ],
256
+ "node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js": [
257
+ "vendors",
258
+ "node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js"
259
+ ],
260
+ "node_modules/_react-dom@18.3.1@react-dom/server.browser.js": [
261
+ "vendors",
262
+ "node_modules/_react-dom@18.3.1@react-dom/server.browser.js"
263
+ ]
264
+ });
265
+ ;
266
+ });
267
+
268
+ //# sourceMappingURL=common-async.10509781610555453368.hot-update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["common-async.10509781610555453368.hot-update.js","src/Dialog/Content/index.tsx"],"sourcesContent":["globalThis.makoModuleHotUpdate(\n 'common',\n {\n modules: {},\n },\n function (runtime) {\n runtime._h='4704580574928883170';\nruntime.updateEnsure2Map({\".dumi/tmp/dumi/theme/ContextWrapper.tsx\":[\"dumi__tmp__dumi__theme__ContextWrapper\"],\"docs/changelog.md\":[\"vendors\",\"docs/changelog.md\"],\"docs/changelog.md?type=demo\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/changelog.md?type=text\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/demo/ant-design.md\":[\"vendors\",\"docs/demo/ant-design.md\"],\"docs/demo/ant-design.md?type=demo\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/demo/ant-design.md?type=text\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/demo/bootstrap.md\":[\"vendors\",\"docs/demo/bootstrap.md\"],\"docs/demo/bootstrap.md?type=demo\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/demo/bootstrap.md?type=text\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/demo/draggable.md\":[\"vendors\",\"docs/demo/draggable.md\"],\"docs/demo/draggable.md?type=demo\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/demo/draggable.md?type=text\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/demo/multiple-Portal.md\":[\"vendors\",\"docs/demo/multiple-Portal.md\"],\"docs/demo/multiple-Portal.md?type=demo\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/demo/multiple-Portal.md?type=text\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/demo/pure.md\":[\"vendors\",\"docs/demo/pure.md\"],\"docs/demo/pure.md?type=demo\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/demo/pure.md?type=text\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/examples/ant-design.tsx?techStack=react\":[\"vendors\",\"common\",\"demos\"],\"docs/examples/bootstrap.tsx?techStack=react\":[\"vendors\",\"common\",\"demos\"],\"docs/examples/draggable.tsx?techStack=react\":[\"vendors\",\"common\",\"demos\"],\"docs/examples/multiple-Portal.tsx?techStack=react\":[\"vendors\",\"common\",\"demos\"],\"docs/examples/pure.tsx?techStack=react\":[\"vendors\",\"common\",\"demos\"],\"docs/index.md\":[\"vendors\",\"docs/index.md\"],\"docs/index.md?type=demo\":[\"vendors\",\"common\",\"meta__docs\"],\"docs/index.md?type=text\":[\"vendors\",\"common\",\"meta__docs\"],\"node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js\":[\"vendors\",\"node_modules/_dumi@2.4.17@dumi/dist/client/misc/reactDemoCompiler.js\"],\"node_modules/_dumi@2.4.17@dumi/dist/client/pages/404.js\":[\"vendors\",\"nm__dumi__dist__client__pages__404\"],\"node_modules/_dumi@2.4.17@dumi/dist/client/pages/Demo/index.js\":[\"vendors\",\"nm__dumi__dist__client__pages__Demo__index\"],\"node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js\":[\"vendors\",\"node_modules/_dumi@2.4.17@dumi/theme-default/layouts/DocLayout/index.js\"],\"node_modules/_react-dom@18.3.1@react-dom/server.browser.js\":[\"vendors\",\"node_modules/_react-dom@18.3.1@react-dom/server.browser.js\"]});;\n },\n);\n","import * as React from 'react';\nimport { useRef } from 'react';\nimport classNames from 'classnames';\nimport CSSMotion from '@rc-component/motion';\nimport { offset } from '../../util';\nimport type { PanelProps, PanelRef } from './Panel';\nimport Panel from './Panel';\nimport type { CSSMotionRef } from '@rc-component/motion/es/CSSMotion';\n\nexport type CSSMotionStateRef = Pick<CSSMotionRef, 'inMotion' | 'enableMotion'>;\n\nexport type ContentRef = PanelRef & CSSMotionStateRef;\n\nexport type ContentProps = {\n motionName: string;\n ariaId: string;\n onVisibleChanged: (visible: boolean) => void;\n} & PanelProps;\n\nconst Content = React.forwardRef<ContentRef, ContentProps>((props, ref) => {\n const {\n prefixCls,\n title,\n style,\n className,\n visible,\n forceRender,\n destroyOnClose,\n motionName,\n ariaId,\n onVisibleChanged,\n mousePosition,\n } = props;\n\n const dialogRef = useRef<\n {\n nativeElement: HTMLDivElement;\n } & CSSMotionStateRef\n >();\n\n const panelRef = useRef<PanelRef>();\n\n // ============================== Refs ==============================\n React.useImperativeHandle(ref, () => ({\n ...panelRef.current,\n inMotion: dialogRef.current.inMotion,\n enableMotion: dialogRef.current.enableMotion,\n }));\n\n // ============================= Style ==============================\n const [transformOrigin, setTransformOrigin] = React.useState<string>();\n const contentStyle: React.CSSProperties = {};\n\n if (transformOrigin) {\n contentStyle.transformOrigin = transformOrigin;\n }\n\n function onPrepare() {\n const elementOffset = offset(dialogRef.current.nativeElement);\n\n setTransformOrigin(\n mousePosition && (mousePosition.x || mousePosition.y)\n ? `${mousePosition.x - elementOffset.left}px ${mousePosition.y - elementOffset.top}px`\n : '',\n );\n }\n\n // ============================= Render =============================\n return (\n <CSSMotion\n visible={visible}\n onVisibleChanged={onVisibleChanged}\n onAppearPrepare={onPrepare}\n onEnterPrepare={onPrepare}\n forceRender={forceRender}\n motionName={motionName}\n removeOnLeave={destroyOnClose}\n ref={dialogRef}\n >\n {({ className: motionClassName, style: motionStyle }, motionRef) => (\n <Panel\n {...props}\n ref={panelRef}\n title={title}\n ariaId={ariaId}\n prefixCls={prefixCls}\n holderRef={motionRef}\n style={{ ...motionStyle, ...style, ...contentStyle }}\n className={classNames(className, motionClassName)}\n />\n )}\n </CSSMotion>\n );\n});\n\nContent.displayName = 'Content';\n\nexport default Content;\n"],"names":[],"mappings":"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"}