@fle-ui/next 1.0.0-alpha.12 → 1.0.0-alpha.13

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 (164) hide show
  1. package/.history/package_20211011190148.json +141 -0
  2. package/.history/package_20211011193053.json +141 -0
  3. package/dist/@fle-ui/next.css +2 -2
  4. package/dist/@fle-ui/next.css.map +1 -1
  5. package/dist/@fle-ui/next.js +1 -1
  6. package/dist/@fle-ui/next.min.css +2 -2
  7. package/dist/@fle-ui/next.min.css.map +1 -1
  8. package/dist/@fle-ui/next.min.js +1 -1
  9. package/docs-dist/components__affix__affix.md.js +701 -1
  10. package/docs-dist/components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~00d1741d.js +22482 -1
  11. package/docs-dist/components__alert__alert.md.js +942 -1
  12. package/docs-dist/components__anchor__anchor.md.js +789 -1
  13. package/docs-dist/components__auto-complete__autoComplete.md.js +1145 -1
  14. package/docs-dist/components__avatar__avatar.md.js +854 -1
  15. package/docs-dist/components__back-top__backTop.md.js +581 -1
  16. package/docs-dist/components__badge__badge.md.js +972 -1
  17. package/docs-dist/components__breadcrumb__breadcrumb.md.js +914 -1
  18. package/docs-dist/components__button__button.md.js +1037 -1
  19. package/docs-dist/components__calendar__calendar.md.js +897 -1
  20. package/docs-dist/components__card__card.md.js +1106 -1
  21. package/docs-dist/components__carousel__carousel.md.js +770 -1
  22. package/docs-dist/components__cascader__cascader.md.js +1378 -1
  23. package/docs-dist/components__checkbox__checkbox.md.js +876 -1
  24. package/docs-dist/components__collapse__collapse.md.js +959 -1
  25. package/docs-dist/components__comment__comment.md.js +586 -1
  26. package/docs-dist/components__config-provider__configProvider.md.js +1055 -1
  27. package/docs-dist/components__date-picker__date-picker.md.js +2622 -1
  28. package/docs-dist/components__descriptions__descriptions.md.js +863 -1
  29. package/docs-dist/components__divider__divider.md.js +681 -1
  30. package/docs-dist/components__drawer__drawer.md.js +997 -1
  31. package/docs-dist/components__dropdown__dropdown.md.js +1170 -1
  32. package/docs-dist/components__empty__empty.md.js +692 -1
  33. package/docs-dist/components__form__form.md.js +4099 -1
  34. package/docs-dist/components__grid__grid.md.js +999 -1
  35. package/docs-dist/components__icon__icon.md.js +739 -1
  36. package/docs-dist/components__image__image.md.js +745 -1
  37. package/docs-dist/components__input-number__inputNumber.md.js +1006 -1
  38. package/docs-dist/components__input__input.md.js +1579 -1
  39. package/docs-dist/components__layout__layout.md.js +1220 -1
  40. package/docs-dist/components__list__list.md.js +1255 -1
  41. package/docs-dist/components__mentions__mentions.md.js +943 -1
  42. package/docs-dist/components__menu__menu.md.js +1370 -1
  43. package/docs-dist/components__message__message.md.js +1223 -1
  44. package/docs-dist/components__modal__modal.md.js +1808 -1
  45. package/docs-dist/components__notification__notification.md.js +1192 -1
  46. package/docs-dist/components__page-header__page-header.md.js +781 -1
  47. package/docs-dist/components__pagination__pagination.md.js +954 -1
  48. package/docs-dist/components__popconfirm__popconfirm.md.js +792 -1
  49. package/docs-dist/components__popover__popover.md.js +665 -1
  50. package/docs-dist/components__progress__progress.md.js +1139 -1
  51. package/docs-dist/components__radio__radio.md.js +999 -1
  52. package/docs-dist/components__rate__rate.md.js +851 -1
  53. package/docs-dist/components__result__result.md.js +681 -1
  54. package/docs-dist/components__select__select.md.js +2081 -1
  55. package/docs-dist/components__slider__slider.md.js +1053 -1
  56. package/docs-dist/components__space__space.md.js +746 -1
  57. package/docs-dist/components__spin__spin.md.js +730 -1
  58. package/docs-dist/components__statistic__statistic.md.js +827 -1
  59. package/docs-dist/components__steps__steps.md.js +1097 -1
  60. package/docs-dist/components__switch__switch.md.js +763 -1
  61. package/docs-dist/components__table__table.md.js +3692 -1
  62. package/docs-dist/components__tabs__tabs.md.js +1213 -1
  63. package/docs-dist/components__tag__tag.md.js +779 -1
  64. package/docs-dist/components__time-picker__time-picker.md.js +1232 -1
  65. package/docs-dist/components__timeline__timeline.md.js +799 -1
  66. package/docs-dist/components__tooltip__tooltip.md.js +888 -1
  67. package/docs-dist/components__transfer__transfer.md.js +1226 -1
  68. package/docs-dist/components__tree-select__tree-select.md.js +1042 -1
  69. package/docs-dist/components__typography__typography.md.js +1793 -1
  70. package/docs-dist/components__upload__upload.md.js +1798 -1
  71. package/docs-dist/demos_bmurcdaerb.js +603 -1
  72. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.chunk.css +1 -1
  73. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.js +21570 -1
  74. package/docs-dist/demos_citsitats.js +549 -1
  75. package/docs-dist/demos_daolpu.chunk.css +1 -1
  76. package/docs-dist/demos_daolpu.js +22680 -1
  77. package/docs-dist/demos_dirg.js +47 -1
  78. package/docs-dist/demos_drac.js +748 -1
  79. package/docs-dist/demos_ecaps.js +529 -1
  80. package/docs-dist/demos_egami.js +153 -1
  81. package/docs-dist/demos_egassem.js +187 -1
  82. package/docs-dist/demos_egdab.js +872 -1
  83. package/docs-dist/demos_elbat.chunk.css +1 -1
  84. package/docs-dist/demos_elbat.js +27626 -1
  85. package/docs-dist/demos_enilemit.js +627 -1
  86. package/docs-dist/demos_espalloc.js +705 -1
  87. package/docs-dist/demos_etar.js +547 -1
  88. package/docs-dist/demos_etelpmoc-otua.js +613 -1
  89. package/docs-dist/demos_gat.js +487 -1
  90. package/docs-dist/demos_hctiws.js +439 -1
  91. package/docs-dist/demos_ladom.js +791 -1
  92. package/docs-dist/demos_lesuorac.js +193 -1
  93. package/docs-dist/demos_mrifnocpop.js +671 -1
  94. package/docs-dist/demos_mrof.js +3082 -1
  95. package/docs-dist/demos_nips.js +461 -1
  96. package/docs-dist/demos_noitacifiton.js +765 -1
  97. package/docs-dist/demos_noitanigap.js +233 -1
  98. package/docs-dist/demos_nottub.js +847 -1
  99. package/docs-dist/demos_nwodpord.js +965 -1
  100. package/docs-dist/demos_oidar.js +340 -1
  101. package/docs-dist/demos_pitloot.js +204 -1
  102. package/docs-dist/demos_pot-kcab.js +62 -1
  103. package/docs-dist/demos_radnelac.js +285 -1
  104. package/docs-dist/demos_ratava.js +647 -1
  105. package/docs-dist/demos_rebmun-tupni.js +209 -1
  106. package/docs-dist/demos_redacsac.js +576 -1
  107. package/docs-dist/demos_redaeh-egap.js +761 -1
  108. package/docs-dist/demos_redils.js +659 -1
  109. package/docs-dist/demos_redivid.js +167 -1
  110. package/docs-dist/demos_redivorp-gifnoc.js +2154 -1
  111. package/docs-dist/demos_refsnart.js +774 -1
  112. package/docs-dist/demos_rekcip-emit.js +183 -1
  113. package/docs-dist/demos_rekcip-etad.js +469 -1
  114. package/docs-dist/demos_revopop.js +335 -1
  115. package/docs-dist/demos_reward.js +484 -1
  116. package/docs-dist/demos_rohcna.js +194 -1
  117. package/docs-dist/demos_sbat.chunk.css +1 -1
  118. package/docs-dist/demos_sbat.js +22358 -1
  119. package/docs-dist/demos_snoitnem.js +202 -1
  120. package/docs-dist/demos_snoitpircsed.js +351 -1
  121. package/docs-dist/demos_spets.js +910 -1
  122. package/docs-dist/demos_ssergorp.js +698 -1
  123. package/docs-dist/demos_tceles.js +1416 -1
  124. package/docs-dist/demos_tluser.js +530 -1
  125. package/docs-dist/demos_tnemmoc.js +560 -1
  126. package/docs-dist/demos_trela.js +341 -1
  127. package/docs-dist/demos_tsil.js +603 -1
  128. package/docs-dist/demos_tuoyal.js +872 -1
  129. package/docs-dist/demos_tupni.js +1245 -1
  130. package/docs-dist/demos_unem.js +1012 -1
  131. package/docs-dist/demos_xiffa.js +93 -1
  132. package/docs-dist/demos_xobkcehc.js +186 -1
  133. package/docs-dist/demos_yhpargopyt.js +798 -1
  134. package/docs-dist/demos_ytpme.js +433 -1
  135. package/docs-dist/docs__document__getting-started.md.js +193 -1
  136. package/docs-dist/docs__document__introduce.md.js +441 -1
  137. package/docs-dist/docs__document__practical-projects.md.js +117 -1
  138. package/docs-dist/docs__index.md.js +27 -1
  139. package/docs-dist/docs__story__index.md.js +89 -1
  140. package/docs-dist/dumi_demos.js +456 -1
  141. package/docs-dist/umi.js +28727 -1
  142. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~3ba4f4a1.js +2590 -1
  143. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~ac3aca9a.js +8970 -1
  144. package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~e29e5a37.js +2619 -1
  145. package/docs-dist/vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_egami~~4cc402e9.js +57323 -1
  146. package/docs-dist/vendors~demos_daolpu~demos_elbat.js +1649 -1
  147. package/docs-dist/vendors~demos_daolpu~demos_elbat~demos_sbat.js +4169 -1
  148. package/docs-dist/vendors~demos_gat.js +4673 -1
  149. package/docs-dist/vendors~demos_ladom.js +1855 -1
  150. package/docs-dist/vendors~demos_redivorp-gifnoc.js +9666 -1
  151. package/docs-dist/vendors~demos_sbat.js +1601 -1
  152. package/docs-dist/vendors~demos_trela.js +1722 -1
  153. package/docs-dist/vendors~demos_tsil.js +4970 -1
  154. package/docs-dist/vendors~demos_tuoyal.js +748 -1
  155. package/docs-dist/vendors~wrappers.js +1360 -1
  156. package/docs-dist/wrappers.js +21 -1
  157. package/es/drawer/style/drawer.less +8 -4
  158. package/es/drawer/style/index.css +1 -1
  159. package/es/style/themes/default.less +57 -29
  160. package/lib/drawer/style/drawer.less +8 -4
  161. package/lib/drawer/style/index.css +1 -1
  162. package/lib/style/themes/default.less +57 -29
  163. package/package.json +1 -1
  164. package/report.html +1 -1
@@ -1 +1,792 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[46],{Hh86:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),l=a.n(n),r=a("dEAq"),c=a("Zxc8"),o=a("JjdP"),i=l.a.memo(o["default"]["popconfirm-basic"].component),m=l.a.memo(o["default"]["popconfirm-locale"].component),d=l.a.memo(o["default"]["popconfirm-placement"].component),u=l.a.memo(o["default"]["popconfirm-dynamic-trigger"].component),s=l.a.memo(o["default"]["popconfirm-icon"].component),E=l.a.memo(o["default"]["popconfirm-async"].component),p=l.a.memo(o["default"]["popconfirm-promise"].component);t["default"]=e=>(l.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&r["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),l.a.createElement(l.a.Fragment,null,l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"markdown"},l.a.createElement("p",null,"\u70b9\u51fb\u5143\u7d20\uff0c\u5f39\u51fa\u6c14\u6ce1\u5f0f\u7684\u786e\u8ba4\u6846\u3002"),l.a.createElement("h2",{id:"\u4f55\u65f6\u4f7f\u7528"},l.a.createElement(r["AnchorLink"],{to:"#\u4f55\u65f6\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u4f55\u65f6\u4f7f\u7528"),l.a.createElement("p",null,"\u76ee\u6807\u5143\u7d20\u7684\u64cd\u4f5c\u9700\u8981\u7528\u6237\u8fdb\u4e00\u6b65\u7684\u786e\u8ba4\u65f6\uff0c\u5728\u76ee\u6807\u5143\u7d20\u9644\u8fd1\u5f39\u51fa\u6d6e\u5c42\u63d0\u793a\uff0c\u8be2\u95ee\u7528\u6237\u3002"),l.a.createElement("p",null,"\u548c ",l.a.createElement("code",null,"confirm")," \u5f39\u51fa\u7684\u5168\u5c4f\u5c45\u4e2d\u6a21\u6001\u5bf9\u8bdd\u6846\u76f8\u6bd4\uff0c\u4ea4\u4e92\u5f62\u5f0f\u66f4\u8f7b\u91cf\u3002"),l.a.createElement("h2",{id:"\u4ee3\u7801\u6f14\u793a"},l.a.createElement(r["AnchorLink"],{to:"#\u4ee3\u7801\u6f14\u793a","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u4ee3\u7801\u6f14\u793a"),l.a.createElement("h3",{id:"\u57fa\u672c"},l.a.createElement(r["AnchorLink"],{to:"#\u57fa\u672c","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u57fa\u672c")),l.a.createElement(c["default"],o["default"]["popconfirm-basic"].previewerProps,l.a.createElement(i,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u56fd\u9645\u5316"},l.a.createElement(r["AnchorLink"],{to:"#\u56fd\u9645\u5316","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u56fd\u9645\u5316")),l.a.createElement(c["default"],o["default"]["popconfirm-locale"].previewerProps,l.a.createElement(m,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u4f4d\u7f6e"},l.a.createElement(r["AnchorLink"],{to:"#\u4f4d\u7f6e","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u4f4d\u7f6e")),l.a.createElement(c["default"],o["default"]["popconfirm-placement"].previewerProps,l.a.createElement(d,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u6761\u4ef6\u89e6\u53d1"},l.a.createElement(r["AnchorLink"],{to:"#\u6761\u4ef6\u89e6\u53d1","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u6761\u4ef6\u89e6\u53d1")),l.a.createElement(c["default"],o["default"]["popconfirm-dynamic-trigger"].previewerProps,l.a.createElement(u,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u81ea\u5b9a\u4e49-icon-\u56fe\u6807"},l.a.createElement(r["AnchorLink"],{to:"#\u81ea\u5b9a\u4e49-icon-\u56fe\u6807","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u81ea\u5b9a\u4e49 Icon \u56fe\u6807")),l.a.createElement(c["default"],o["default"]["popconfirm-icon"].previewerProps,l.a.createElement(s,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u5f02\u6b65\u5173\u95ed"},l.a.createElement(r["AnchorLink"],{to:"#\u5f02\u6b65\u5173\u95ed","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u5f02\u6b65\u5173\u95ed")),l.a.createElement(c["default"],o["default"]["popconfirm-async"].previewerProps,l.a.createElement(E,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h3",{id:"\u57fa\u4e8e-promise-\u7684\u5f02\u6b65\u5173\u95ed"},l.a.createElement(r["AnchorLink"],{to:"#\u57fa\u4e8e-promise-\u7684\u5f02\u6b65\u5173\u95ed","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u57fa\u4e8e Promise \u7684\u5f02\u6b65\u5173\u95ed")),l.a.createElement(c["default"],o["default"]["popconfirm-promise"].previewerProps,l.a.createElement(p,null)),l.a.createElement("div",{className:"markdown"},l.a.createElement("h2",{id:"api"},l.a.createElement(r["AnchorLink"],{to:"#api","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"API"),l.a.createElement("table",null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,"\u53c2\u6570"),l.a.createElement("th",null,"\u8bf4\u660e"),l.a.createElement("th",null,"\u7c7b\u578b"),l.a.createElement("th",null,"\u9ed8\u8ba4\u503c"))),l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,"cancelButtonProps"),l.a.createElement("td",null,"cancel \u6309\u94ae props"),l.a.createElement("td",null,l.a.createElement(r["AnchorLink"],{to:"/components/button/#API"},"ButtonProps")),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"cancelText"),l.a.createElement("td",null,"\u53d6\u6d88\u6309\u94ae\u6587\u5b57"),l.a.createElement("td",null,"string"),l.a.createElement("td",null,l.a.createElement("code",null,"\u53d6\u6d88"))),l.a.createElement("tr",null,l.a.createElement("td",null,"disabled"),l.a.createElement("td",null,"\u963b\u6b62\u70b9\u51fb Popconfirm \u5b50\u5143\u7d20\u65f6\u5f39\u51fa\u786e\u8ba4\u6846"),l.a.createElement("td",null,"boolean"),l.a.createElement("td",null,"false")),l.a.createElement("tr",null,l.a.createElement("td",null,"icon"),l.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u5f39\u51fa\u6c14\u6ce1 Icon \u56fe\u6807"),l.a.createElement("td",null,"ReactNode"),l.a.createElement("td",null,"<ExclamationCircle />")),l.a.createElement("tr",null,l.a.createElement("td",null,"okButtonProps"),l.a.createElement("td",null,"ok \u6309\u94ae props"),l.a.createElement("td",null,l.a.createElement(r["AnchorLink"],{to:"/components/button/#API"},"ButtonProps")),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"okText"),l.a.createElement("td",null,"\u786e\u8ba4\u6309\u94ae\u6587\u5b57"),l.a.createElement("td",null,"string"),l.a.createElement("td",null,l.a.createElement("code",null,"\u786e\u5b9a"))),l.a.createElement("tr",null,l.a.createElement("td",null,"okType"),l.a.createElement("td",null,"\u786e\u8ba4\u6309\u94ae\u7c7b\u578b"),l.a.createElement("td",null,"string"),l.a.createElement("td",null,l.a.createElement("code",null,"primary"))),l.a.createElement("tr",null,l.a.createElement("td",null,"title"),l.a.createElement("td",null,"\u786e\u8ba4\u6846\u7684\u63cf\u8ff0"),l.a.createElement("td",null,"ReactNode | () => ReactNode"),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"onCancel"),l.a.createElement("td",null,"\u70b9\u51fb\u53d6\u6d88\u7684\u56de\u8c03"),l.a.createElement("td",null,"function(e)"),l.a.createElement("td",null,"-")),l.a.createElement("tr",null,l.a.createElement("td",null,"onConfirm"),l.a.createElement("td",null,"\u70b9\u51fb\u786e\u8ba4\u7684\u56de\u8c03"),l.a.createElement("td",null,"function(e)"),l.a.createElement("td",null,"-")))),l.a.createElement("p",null,"\u66f4\u591a\u5c5e\u6027\u8bf7\u53c2\u8003 ",l.a.createElement(r["AnchorLink"],{to:"/components/tooltip/#API"},"Tooltip"),"\u3002"),l.a.createElement("h2",{id:"\u6ce8\u610f"},l.a.createElement(r["AnchorLink"],{to:"#\u6ce8\u610f","aria-hidden":"true",tabIndex:-1},l.a.createElement("span",{className:"icon icon-link"})),"\u6ce8\u610f"),l.a.createElement("p",null,"\u8bf7\u786e\u4fdd ",l.a.createElement("code",null,"Popconfirm")," \u7684\u5b50\u5143\u7d20\u80fd\u63a5\u53d7 ",l.a.createElement("code",null,"onMouseEnter"),"\u3001",l.a.createElement("code",null,"onMouseLeave"),"\u3001",l.a.createElement("code",null,"onFocus"),"\u3001",l.a.createElement("code",null,"onClick")," \u4e8b\u4ef6\u3002"),l.a.createElement("style",{dangerouslySetInnerHTML:{__html:"\n.demo {\n overflow: auto;\n}\n.ant-popover-wrap > a {\n margin-right: 8px;\n}\n.ant-btn {\n margin-right: 8px;\n margin-bottom: 8px;\n}\n#popconfirm-placement .ant-btn {\n width: 70px;\n text-align: center;\n padding: 0;\n}\n"}})))))},MZF8:function(e,t,a){"use strict";var n=a("ogwx");a.d(t,"a",(function(){return n["b"]}));a("VCU9")},RZMt:function(e,t,a){},Zxc8:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),l=a.n(n),r=a("k3GJ"),c=a("MZF8"),o=a("dEAq"),i=a("H1Ra");a("RZMt");function m(e,t){return p(e)||E(e,t)||u(e,t)||d()}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return s(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function E(e,t){var a=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,l,r=[],c=!0,o=!1;try{for(a=a.call(e);!(c=(n=a.next()).done);c=!0)if(r.push(n.value),t&&r.length===t)break}catch(i){o=!0,l=i}finally{try{c||null==a["return"]||a["return"]()}finally{if(o)throw l}}return r}}function p(e){if(Array.isArray(e))return e}function f(e,t){var a,n=null===(a=e.match(/\.(\w+)$/))||void 0===a?void 0:a[1];return n||(n=t.tsx?"tsx":"jsx"),n}var h=function(e){var t,a,d,u=Object(n["useRef"])(),s=Object(n["useContext"])(o["context"]),E=s.locale,p=Object(o["useLocaleProps"])(E,e),h=Object(o["useDemoUrl"])(p.identifier),b=p.demoUrl||h,v=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(p.identifier),k=1===Object.keys(p.sources).length,y=Object(o["useCodeSandbox"])((null===(t=p.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:p),_=Object(o["useRiddle"])((null===(a=p.hideActions)||void 0===a?void 0:a.includes("RIDDLE"))?null:p),w=Object(o["useMotions"])(p.motions||[],u.current),g=m(w,2),N=g[0],x=g[1],A=Object(o["useCopy"])(),I=m(A,2),j=I[0],C=I[1],L=Object(n["useState"])("_"),O=m(L,2),P=O[0],S=O[1],R=Object(n["useState"])(f(P,p.sources[P])),M=m(R,2),T=M[0],B=M[1],U=Object(n["useState"])(Boolean(p.defaultShowCode)),Z=m(U,2),F=Z[0],J=Z[1],q=Object(n["useState"])(Math.random()),H=m(q,2),$=H[0],D=H[1],G=p.sources[P][T]||p.sources[P].content,X=Object(o["useTSPlaygroundUrl"])(E,G),K=Object(n["useRef"])(),V=Object(o["usePrefersColor"])(),z=m(V,1),Q=z[0];function W(e){S(e),B(f(e,p.sources[e]))}return Object(n["useEffect"])((function(){D(Math.random())}),[Q]),l.a.createElement("div",{style:p.style,className:[p.className,"__dumi-default-previewer",v?"__dumi-default-previewer-target":""].filter(Boolean).join(" "),id:p.identifier,"data-debug":p.debug||void 0,"data-iframe":p.iframe||void 0},p.iframe&&l.a.createElement("div",{className:"__dumi-default-previewer-browser-nav"}),l.a.createElement("div",{ref:u,className:"__dumi-default-previewer-demo",style:{transform:p.transform?"translate(0, 0)":void 0,padding:p.compact||p.iframe&&!1!==p.compact?"0":void 0,background:p.background}},p.iframe?l.a.createElement("iframe",{title:"dumi-previewer",style:{height:String(p.iframe).replace(/(\d)$/,"$1px")},key:$,src:b,ref:K}):p.children),l.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":p.title},p.title&&l.a.createElement(o["AnchorLink"],{to:"#".concat(p.identifier)},p.title),p.description&&l.a.createElement("div",{dangerouslySetInnerHTML:{__html:p.description}})),l.a.createElement("div",{className:"__dumi-default-previewer-actions"},y&&l.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:y}),_&&l.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:_}),p.motions&&l.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:x,onClick:function(){return N()}}),p.iframe&&l.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return D(Math.random())}}),!(null===(d=p.hideActions)||void 0===d?void 0:d.includes("EXTERNAL"))&&l.a.createElement(o["Link"],{target:"_blank",to:b},l.a.createElement("button",{title:"Open demo in new tab",className:"__dumi-default-icon",role:"open-demo",type:"button"})),l.a.createElement("span",null),l.a.createElement("button",{title:"Copy source code",className:"__dumi-default-icon",role:"copy","data-status":C,onClick:function(){return j(G)}}),"tsx"===T&&F&&l.a.createElement(o["Link"],{target:"_blank",to:X},l.a.createElement("button",{title:"Get JSX via TypeScript Playground",className:"__dumi-default-icon",role:"change-tsx",type:"button"})),l.a.createElement("button",{title:"Toggle source code panel",className:"__dumi-default-icon".concat(F?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:function(){return J(!F)}})),F&&l.a.createElement("div",{className:"__dumi-default-previewer-source-wrapper"},!k&&l.a.createElement(r["b"],{className:"__dumi-default-previewer-source-tab",prefixCls:"__dumi-default-tabs",moreIcon:"\xb7\xb7\xb7",defaultActiveKey:P,onChange:W},Object.keys(p.sources).map((function(e){return l.a.createElement(r["a"],{tab:"_"===e?"index.".concat(f(e,p.sources[e])):e,key:e})}))),l.a.createElement("div",{className:"__dumi-default-previewer-source"},l.a.createElement(i["a"],{code:G,lang:T,showCopy:!1}))))};t["default"]=h}}]);
1
+ (window['webpackJsonp'] = window['webpackJsonp'] || []).push([
2
+ [46],
3
+ {
4
+ Hh86: function (e, t, a) {
5
+ 'use strict';
6
+ a.r(t);
7
+ var n = a('q1tI'),
8
+ l = a.n(n),
9
+ r = a('dEAq'),
10
+ c = a('Zxc8'),
11
+ o = a('JjdP'),
12
+ i = l.a.memo(o['default']['popconfirm-basic'].component),
13
+ m = l.a.memo(o['default']['popconfirm-locale'].component),
14
+ d = l.a.memo(o['default']['popconfirm-placement'].component),
15
+ u = l.a.memo(o['default']['popconfirm-dynamic-trigger'].component),
16
+ s = l.a.memo(o['default']['popconfirm-icon'].component),
17
+ E = l.a.memo(o['default']['popconfirm-async'].component),
18
+ p = l.a.memo(o['default']['popconfirm-promise'].component);
19
+ t['default'] = (e) => (
20
+ l.a.useEffect(() => {
21
+ var t;
22
+ null !== e &&
23
+ void 0 !== e &&
24
+ null !== (t = e.location) &&
25
+ void 0 !== t &&
26
+ t.hash &&
27
+ r['AnchorLink'].scrollToAnchor(
28
+ decodeURIComponent(e.location.hash.slice(1)),
29
+ );
30
+ }, []),
31
+ l.a.createElement(
32
+ l.a.Fragment,
33
+ null,
34
+ l.a.createElement(
35
+ l.a.Fragment,
36
+ null,
37
+ l.a.createElement(
38
+ 'div',
39
+ { className: 'markdown' },
40
+ l.a.createElement(
41
+ 'p',
42
+ null,
43
+ '\u70b9\u51fb\u5143\u7d20\uff0c\u5f39\u51fa\u6c14\u6ce1\u5f0f\u7684\u786e\u8ba4\u6846\u3002',
44
+ ),
45
+ l.a.createElement(
46
+ 'h2',
47
+ { id: '\u4f55\u65f6\u4f7f\u7528' },
48
+ l.a.createElement(
49
+ r['AnchorLink'],
50
+ {
51
+ to: '#\u4f55\u65f6\u4f7f\u7528',
52
+ 'aria-hidden': 'true',
53
+ tabIndex: -1,
54
+ },
55
+ l.a.createElement('span', { className: 'icon icon-link' }),
56
+ ),
57
+ '\u4f55\u65f6\u4f7f\u7528',
58
+ ),
59
+ l.a.createElement(
60
+ 'p',
61
+ null,
62
+ '\u76ee\u6807\u5143\u7d20\u7684\u64cd\u4f5c\u9700\u8981\u7528\u6237\u8fdb\u4e00\u6b65\u7684\u786e\u8ba4\u65f6\uff0c\u5728\u76ee\u6807\u5143\u7d20\u9644\u8fd1\u5f39\u51fa\u6d6e\u5c42\u63d0\u793a\uff0c\u8be2\u95ee\u7528\u6237\u3002',
63
+ ),
64
+ l.a.createElement(
65
+ 'p',
66
+ null,
67
+ '\u548c ',
68
+ l.a.createElement('code', null, 'confirm'),
69
+ ' \u5f39\u51fa\u7684\u5168\u5c4f\u5c45\u4e2d\u6a21\u6001\u5bf9\u8bdd\u6846\u76f8\u6bd4\uff0c\u4ea4\u4e92\u5f62\u5f0f\u66f4\u8f7b\u91cf\u3002',
70
+ ),
71
+ l.a.createElement(
72
+ 'h2',
73
+ { id: '\u4ee3\u7801\u6f14\u793a' },
74
+ l.a.createElement(
75
+ r['AnchorLink'],
76
+ {
77
+ to: '#\u4ee3\u7801\u6f14\u793a',
78
+ 'aria-hidden': 'true',
79
+ tabIndex: -1,
80
+ },
81
+ l.a.createElement('span', { className: 'icon icon-link' }),
82
+ ),
83
+ '\u4ee3\u7801\u6f14\u793a',
84
+ ),
85
+ l.a.createElement(
86
+ 'h3',
87
+ { id: '\u57fa\u672c' },
88
+ l.a.createElement(
89
+ r['AnchorLink'],
90
+ { to: '#\u57fa\u672c', 'aria-hidden': 'true', tabIndex: -1 },
91
+ l.a.createElement('span', { className: 'icon icon-link' }),
92
+ ),
93
+ '\u57fa\u672c',
94
+ ),
95
+ ),
96
+ l.a.createElement(
97
+ c['default'],
98
+ o['default']['popconfirm-basic'].previewerProps,
99
+ l.a.createElement(i, null),
100
+ ),
101
+ l.a.createElement(
102
+ 'div',
103
+ { className: 'markdown' },
104
+ l.a.createElement(
105
+ 'h3',
106
+ { id: '\u56fd\u9645\u5316' },
107
+ l.a.createElement(
108
+ r['AnchorLink'],
109
+ {
110
+ to: '#\u56fd\u9645\u5316',
111
+ 'aria-hidden': 'true',
112
+ tabIndex: -1,
113
+ },
114
+ l.a.createElement('span', { className: 'icon icon-link' }),
115
+ ),
116
+ '\u56fd\u9645\u5316',
117
+ ),
118
+ ),
119
+ l.a.createElement(
120
+ c['default'],
121
+ o['default']['popconfirm-locale'].previewerProps,
122
+ l.a.createElement(m, null),
123
+ ),
124
+ l.a.createElement(
125
+ 'div',
126
+ { className: 'markdown' },
127
+ l.a.createElement(
128
+ 'h3',
129
+ { id: '\u4f4d\u7f6e' },
130
+ l.a.createElement(
131
+ r['AnchorLink'],
132
+ { to: '#\u4f4d\u7f6e', 'aria-hidden': 'true', tabIndex: -1 },
133
+ l.a.createElement('span', { className: 'icon icon-link' }),
134
+ ),
135
+ '\u4f4d\u7f6e',
136
+ ),
137
+ ),
138
+ l.a.createElement(
139
+ c['default'],
140
+ o['default']['popconfirm-placement'].previewerProps,
141
+ l.a.createElement(d, null),
142
+ ),
143
+ l.a.createElement(
144
+ 'div',
145
+ { className: 'markdown' },
146
+ l.a.createElement(
147
+ 'h3',
148
+ { id: '\u6761\u4ef6\u89e6\u53d1' },
149
+ l.a.createElement(
150
+ r['AnchorLink'],
151
+ {
152
+ to: '#\u6761\u4ef6\u89e6\u53d1',
153
+ 'aria-hidden': 'true',
154
+ tabIndex: -1,
155
+ },
156
+ l.a.createElement('span', { className: 'icon icon-link' }),
157
+ ),
158
+ '\u6761\u4ef6\u89e6\u53d1',
159
+ ),
160
+ ),
161
+ l.a.createElement(
162
+ c['default'],
163
+ o['default']['popconfirm-dynamic-trigger'].previewerProps,
164
+ l.a.createElement(u, null),
165
+ ),
166
+ l.a.createElement(
167
+ 'div',
168
+ { className: 'markdown' },
169
+ l.a.createElement(
170
+ 'h3',
171
+ { id: '\u81ea\u5b9a\u4e49-icon-\u56fe\u6807' },
172
+ l.a.createElement(
173
+ r['AnchorLink'],
174
+ {
175
+ to: '#\u81ea\u5b9a\u4e49-icon-\u56fe\u6807',
176
+ 'aria-hidden': 'true',
177
+ tabIndex: -1,
178
+ },
179
+ l.a.createElement('span', { className: 'icon icon-link' }),
180
+ ),
181
+ '\u81ea\u5b9a\u4e49 Icon \u56fe\u6807',
182
+ ),
183
+ ),
184
+ l.a.createElement(
185
+ c['default'],
186
+ o['default']['popconfirm-icon'].previewerProps,
187
+ l.a.createElement(s, null),
188
+ ),
189
+ l.a.createElement(
190
+ 'div',
191
+ { className: 'markdown' },
192
+ l.a.createElement(
193
+ 'h3',
194
+ { id: '\u5f02\u6b65\u5173\u95ed' },
195
+ l.a.createElement(
196
+ r['AnchorLink'],
197
+ {
198
+ to: '#\u5f02\u6b65\u5173\u95ed',
199
+ 'aria-hidden': 'true',
200
+ tabIndex: -1,
201
+ },
202
+ l.a.createElement('span', { className: 'icon icon-link' }),
203
+ ),
204
+ '\u5f02\u6b65\u5173\u95ed',
205
+ ),
206
+ ),
207
+ l.a.createElement(
208
+ c['default'],
209
+ o['default']['popconfirm-async'].previewerProps,
210
+ l.a.createElement(E, null),
211
+ ),
212
+ l.a.createElement(
213
+ 'div',
214
+ { className: 'markdown' },
215
+ l.a.createElement(
216
+ 'h3',
217
+ { id: '\u57fa\u4e8e-promise-\u7684\u5f02\u6b65\u5173\u95ed' },
218
+ l.a.createElement(
219
+ r['AnchorLink'],
220
+ {
221
+ to: '#\u57fa\u4e8e-promise-\u7684\u5f02\u6b65\u5173\u95ed',
222
+ 'aria-hidden': 'true',
223
+ tabIndex: -1,
224
+ },
225
+ l.a.createElement('span', { className: 'icon icon-link' }),
226
+ ),
227
+ '\u57fa\u4e8e Promise \u7684\u5f02\u6b65\u5173\u95ed',
228
+ ),
229
+ ),
230
+ l.a.createElement(
231
+ c['default'],
232
+ o['default']['popconfirm-promise'].previewerProps,
233
+ l.a.createElement(p, null),
234
+ ),
235
+ l.a.createElement(
236
+ 'div',
237
+ { className: 'markdown' },
238
+ l.a.createElement(
239
+ 'h2',
240
+ { id: 'api' },
241
+ l.a.createElement(
242
+ r['AnchorLink'],
243
+ { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
244
+ l.a.createElement('span', { className: 'icon icon-link' }),
245
+ ),
246
+ 'API',
247
+ ),
248
+ l.a.createElement(
249
+ 'table',
250
+ null,
251
+ l.a.createElement(
252
+ 'thead',
253
+ null,
254
+ l.a.createElement(
255
+ 'tr',
256
+ null,
257
+ l.a.createElement('th', null, '\u53c2\u6570'),
258
+ l.a.createElement('th', null, '\u8bf4\u660e'),
259
+ l.a.createElement('th', null, '\u7c7b\u578b'),
260
+ l.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
261
+ ),
262
+ ),
263
+ l.a.createElement(
264
+ 'tbody',
265
+ null,
266
+ l.a.createElement(
267
+ 'tr',
268
+ null,
269
+ l.a.createElement('td', null, 'cancelButtonProps'),
270
+ l.a.createElement('td', null, 'cancel \u6309\u94ae props'),
271
+ l.a.createElement(
272
+ 'td',
273
+ null,
274
+ l.a.createElement(
275
+ r['AnchorLink'],
276
+ { to: '/components/button/#API' },
277
+ 'ButtonProps',
278
+ ),
279
+ ),
280
+ l.a.createElement('td', null, '-'),
281
+ ),
282
+ l.a.createElement(
283
+ 'tr',
284
+ null,
285
+ l.a.createElement('td', null, 'cancelText'),
286
+ l.a.createElement(
287
+ 'td',
288
+ null,
289
+ '\u53d6\u6d88\u6309\u94ae\u6587\u5b57',
290
+ ),
291
+ l.a.createElement('td', null, 'string'),
292
+ l.a.createElement(
293
+ 'td',
294
+ null,
295
+ l.a.createElement('code', null, '\u53d6\u6d88'),
296
+ ),
297
+ ),
298
+ l.a.createElement(
299
+ 'tr',
300
+ null,
301
+ l.a.createElement('td', null, 'disabled'),
302
+ l.a.createElement(
303
+ 'td',
304
+ null,
305
+ '\u963b\u6b62\u70b9\u51fb Popconfirm \u5b50\u5143\u7d20\u65f6\u5f39\u51fa\u786e\u8ba4\u6846',
306
+ ),
307
+ l.a.createElement('td', null, 'boolean'),
308
+ l.a.createElement('td', null, 'false'),
309
+ ),
310
+ l.a.createElement(
311
+ 'tr',
312
+ null,
313
+ l.a.createElement('td', null, 'icon'),
314
+ l.a.createElement(
315
+ 'td',
316
+ null,
317
+ '\u81ea\u5b9a\u4e49\u5f39\u51fa\u6c14\u6ce1 Icon \u56fe\u6807',
318
+ ),
319
+ l.a.createElement('td', null, 'ReactNode'),
320
+ l.a.createElement('td', null, '<ExclamationCircle />'),
321
+ ),
322
+ l.a.createElement(
323
+ 'tr',
324
+ null,
325
+ l.a.createElement('td', null, 'okButtonProps'),
326
+ l.a.createElement('td', null, 'ok \u6309\u94ae props'),
327
+ l.a.createElement(
328
+ 'td',
329
+ null,
330
+ l.a.createElement(
331
+ r['AnchorLink'],
332
+ { to: '/components/button/#API' },
333
+ 'ButtonProps',
334
+ ),
335
+ ),
336
+ l.a.createElement('td', null, '-'),
337
+ ),
338
+ l.a.createElement(
339
+ 'tr',
340
+ null,
341
+ l.a.createElement('td', null, 'okText'),
342
+ l.a.createElement(
343
+ 'td',
344
+ null,
345
+ '\u786e\u8ba4\u6309\u94ae\u6587\u5b57',
346
+ ),
347
+ l.a.createElement('td', null, 'string'),
348
+ l.a.createElement(
349
+ 'td',
350
+ null,
351
+ l.a.createElement('code', null, '\u786e\u5b9a'),
352
+ ),
353
+ ),
354
+ l.a.createElement(
355
+ 'tr',
356
+ null,
357
+ l.a.createElement('td', null, 'okType'),
358
+ l.a.createElement(
359
+ 'td',
360
+ null,
361
+ '\u786e\u8ba4\u6309\u94ae\u7c7b\u578b',
362
+ ),
363
+ l.a.createElement('td', null, 'string'),
364
+ l.a.createElement(
365
+ 'td',
366
+ null,
367
+ l.a.createElement('code', null, 'primary'),
368
+ ),
369
+ ),
370
+ l.a.createElement(
371
+ 'tr',
372
+ null,
373
+ l.a.createElement('td', null, 'title'),
374
+ l.a.createElement(
375
+ 'td',
376
+ null,
377
+ '\u786e\u8ba4\u6846\u7684\u63cf\u8ff0',
378
+ ),
379
+ l.a.createElement(
380
+ 'td',
381
+ null,
382
+ 'ReactNode | () => ReactNode',
383
+ ),
384
+ l.a.createElement('td', null, '-'),
385
+ ),
386
+ l.a.createElement(
387
+ 'tr',
388
+ null,
389
+ l.a.createElement('td', null, 'onCancel'),
390
+ l.a.createElement(
391
+ 'td',
392
+ null,
393
+ '\u70b9\u51fb\u53d6\u6d88\u7684\u56de\u8c03',
394
+ ),
395
+ l.a.createElement('td', null, 'function(e)'),
396
+ l.a.createElement('td', null, '-'),
397
+ ),
398
+ l.a.createElement(
399
+ 'tr',
400
+ null,
401
+ l.a.createElement('td', null, 'onConfirm'),
402
+ l.a.createElement(
403
+ 'td',
404
+ null,
405
+ '\u70b9\u51fb\u786e\u8ba4\u7684\u56de\u8c03',
406
+ ),
407
+ l.a.createElement('td', null, 'function(e)'),
408
+ l.a.createElement('td', null, '-'),
409
+ ),
410
+ ),
411
+ ),
412
+ l.a.createElement(
413
+ 'p',
414
+ null,
415
+ '\u66f4\u591a\u5c5e\u6027\u8bf7\u53c2\u8003 ',
416
+ l.a.createElement(
417
+ r['AnchorLink'],
418
+ { to: '/components/tooltip/#API' },
419
+ 'Tooltip',
420
+ ),
421
+ '\u3002',
422
+ ),
423
+ l.a.createElement(
424
+ 'h2',
425
+ { id: '\u6ce8\u610f' },
426
+ l.a.createElement(
427
+ r['AnchorLink'],
428
+ { to: '#\u6ce8\u610f', 'aria-hidden': 'true', tabIndex: -1 },
429
+ l.a.createElement('span', { className: 'icon icon-link' }),
430
+ ),
431
+ '\u6ce8\u610f',
432
+ ),
433
+ l.a.createElement(
434
+ 'p',
435
+ null,
436
+ '\u8bf7\u786e\u4fdd ',
437
+ l.a.createElement('code', null, 'Popconfirm'),
438
+ ' \u7684\u5b50\u5143\u7d20\u80fd\u63a5\u53d7 ',
439
+ l.a.createElement('code', null, 'onMouseEnter'),
440
+ '\u3001',
441
+ l.a.createElement('code', null, 'onMouseLeave'),
442
+ '\u3001',
443
+ l.a.createElement('code', null, 'onFocus'),
444
+ '\u3001',
445
+ l.a.createElement('code', null, 'onClick'),
446
+ ' \u4e8b\u4ef6\u3002',
447
+ ),
448
+ l.a.createElement('style', {
449
+ dangerouslySetInnerHTML: {
450
+ __html:
451
+ '\n.demo {\n overflow: auto;\n}\n.ant-popover-wrap > a {\n margin-right: 8px;\n}\n.ant-btn {\n margin-right: 8px;\n margin-bottom: 8px;\n}\n#popconfirm-placement .ant-btn {\n width: 70px;\n text-align: center;\n padding: 0;\n}\n',
452
+ },
453
+ }),
454
+ ),
455
+ ),
456
+ )
457
+ );
458
+ },
459
+ MZF8: function (e, t, a) {
460
+ 'use strict';
461
+ var n = a('ogwx');
462
+ a.d(t, 'a', function () {
463
+ return n['b'];
464
+ });
465
+ a('VCU9');
466
+ },
467
+ RZMt: function (e, t, a) {},
468
+ Zxc8: function (e, t, a) {
469
+ 'use strict';
470
+ a.r(t);
471
+ var n = a('q1tI'),
472
+ l = a.n(n),
473
+ r = a('k3GJ'),
474
+ c = a('MZF8'),
475
+ o = a('dEAq'),
476
+ i = a('H1Ra');
477
+ a('RZMt');
478
+ function m(e, t) {
479
+ return p(e) || E(e, t) || u(e, t) || d();
480
+ }
481
+ function d() {
482
+ throw new TypeError(
483
+ 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
484
+ );
485
+ }
486
+ function u(e, t) {
487
+ if (e) {
488
+ if ('string' === typeof e) return s(e, t);
489
+ var a = Object.prototype.toString.call(e).slice(8, -1);
490
+ return (
491
+ 'Object' === a && e.constructor && (a = e.constructor.name),
492
+ 'Map' === a || 'Set' === a
493
+ ? Array.from(e)
494
+ : 'Arguments' === a ||
495
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
496
+ ? s(e, t)
497
+ : void 0
498
+ );
499
+ }
500
+ }
501
+ function s(e, t) {
502
+ (null == t || t > e.length) && (t = e.length);
503
+ for (var a = 0, n = new Array(t); a < t; a++) n[a] = e[a];
504
+ return n;
505
+ }
506
+ function E(e, t) {
507
+ var a =
508
+ null == e
509
+ ? null
510
+ : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
511
+ e['@@iterator'];
512
+ if (null != a) {
513
+ var n,
514
+ l,
515
+ r = [],
516
+ c = !0,
517
+ o = !1;
518
+ try {
519
+ for (a = a.call(e); !(c = (n = a.next()).done); c = !0)
520
+ if ((r.push(n.value), t && r.length === t)) break;
521
+ } catch (i) {
522
+ (o = !0), (l = i);
523
+ } finally {
524
+ try {
525
+ c || null == a['return'] || a['return']();
526
+ } finally {
527
+ if (o) throw l;
528
+ }
529
+ }
530
+ return r;
531
+ }
532
+ }
533
+ function p(e) {
534
+ if (Array.isArray(e)) return e;
535
+ }
536
+ function f(e, t) {
537
+ var a,
538
+ n =
539
+ null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
540
+ return n || (n = t.tsx ? 'tsx' : 'jsx'), n;
541
+ }
542
+ var h = function (e) {
543
+ var t,
544
+ a,
545
+ d,
546
+ u = Object(n['useRef'])(),
547
+ s = Object(n['useContext'])(o['context']),
548
+ E = s.locale,
549
+ p = Object(o['useLocaleProps'])(E, e),
550
+ h = Object(o['useDemoUrl'])(p.identifier),
551
+ b = p.demoUrl || h,
552
+ v =
553
+ (null === c['a'] || void 0 === c['a']
554
+ ? void 0
555
+ : c['a'].location.hash) === '#'.concat(p.identifier),
556
+ k = 1 === Object.keys(p.sources).length,
557
+ y = Object(o['useCodeSandbox'])(
558
+ (
559
+ null === (t = p.hideActions) || void 0 === t
560
+ ? void 0
561
+ : t.includes('CSB')
562
+ )
563
+ ? null
564
+ : p,
565
+ ),
566
+ _ = Object(o['useRiddle'])(
567
+ (
568
+ null === (a = p.hideActions) || void 0 === a
569
+ ? void 0
570
+ : a.includes('RIDDLE')
571
+ )
572
+ ? null
573
+ : p,
574
+ ),
575
+ w = Object(o['useMotions'])(p.motions || [], u.current),
576
+ g = m(w, 2),
577
+ N = g[0],
578
+ x = g[1],
579
+ A = Object(o['useCopy'])(),
580
+ I = m(A, 2),
581
+ j = I[0],
582
+ C = I[1],
583
+ L = Object(n['useState'])('_'),
584
+ O = m(L, 2),
585
+ P = O[0],
586
+ S = O[1],
587
+ R = Object(n['useState'])(f(P, p.sources[P])),
588
+ M = m(R, 2),
589
+ T = M[0],
590
+ B = M[1],
591
+ U = Object(n['useState'])(Boolean(p.defaultShowCode)),
592
+ Z = m(U, 2),
593
+ F = Z[0],
594
+ J = Z[1],
595
+ q = Object(n['useState'])(Math.random()),
596
+ H = m(q, 2),
597
+ $ = H[0],
598
+ D = H[1],
599
+ G = p.sources[P][T] || p.sources[P].content,
600
+ X = Object(o['useTSPlaygroundUrl'])(E, G),
601
+ K = Object(n['useRef'])(),
602
+ V = Object(o['usePrefersColor'])(),
603
+ z = m(V, 1),
604
+ Q = z[0];
605
+ function W(e) {
606
+ S(e), B(f(e, p.sources[e]));
607
+ }
608
+ return (
609
+ Object(n['useEffect'])(
610
+ function () {
611
+ D(Math.random());
612
+ },
613
+ [Q],
614
+ ),
615
+ l.a.createElement(
616
+ 'div',
617
+ {
618
+ style: p.style,
619
+ className: [
620
+ p.className,
621
+ '__dumi-default-previewer',
622
+ v ? '__dumi-default-previewer-target' : '',
623
+ ]
624
+ .filter(Boolean)
625
+ .join(' '),
626
+ id: p.identifier,
627
+ 'data-debug': p.debug || void 0,
628
+ 'data-iframe': p.iframe || void 0,
629
+ },
630
+ p.iframe &&
631
+ l.a.createElement('div', {
632
+ className: '__dumi-default-previewer-browser-nav',
633
+ }),
634
+ l.a.createElement(
635
+ 'div',
636
+ {
637
+ ref: u,
638
+ className: '__dumi-default-previewer-demo',
639
+ style: {
640
+ transform: p.transform ? 'translate(0, 0)' : void 0,
641
+ padding:
642
+ p.compact || (p.iframe && !1 !== p.compact) ? '0' : void 0,
643
+ background: p.background,
644
+ },
645
+ },
646
+ p.iframe
647
+ ? l.a.createElement('iframe', {
648
+ title: 'dumi-previewer',
649
+ style: {
650
+ height: String(p.iframe).replace(/(\d)$/, '$1px'),
651
+ },
652
+ key: $,
653
+ src: b,
654
+ ref: K,
655
+ })
656
+ : p.children,
657
+ ),
658
+ l.a.createElement(
659
+ 'div',
660
+ {
661
+ className: '__dumi-default-previewer-desc',
662
+ 'data-title': p.title,
663
+ },
664
+ p.title &&
665
+ l.a.createElement(
666
+ o['AnchorLink'],
667
+ { to: '#'.concat(p.identifier) },
668
+ p.title,
669
+ ),
670
+ p.description &&
671
+ l.a.createElement('div', {
672
+ dangerouslySetInnerHTML: { __html: p.description },
673
+ }),
674
+ ),
675
+ l.a.createElement(
676
+ 'div',
677
+ { className: '__dumi-default-previewer-actions' },
678
+ y &&
679
+ l.a.createElement('button', {
680
+ title: 'Open demo on CodeSandbox.io',
681
+ className: '__dumi-default-icon',
682
+ role: 'codesandbox',
683
+ onClick: y,
684
+ }),
685
+ _ &&
686
+ l.a.createElement('button', {
687
+ title: 'Open demo on Riddle',
688
+ className: '__dumi-default-icon',
689
+ role: 'riddle',
690
+ onClick: _,
691
+ }),
692
+ p.motions &&
693
+ l.a.createElement('button', {
694
+ title: 'Execute motions',
695
+ className: '__dumi-default-icon',
696
+ role: 'motions',
697
+ disabled: x,
698
+ onClick: function () {
699
+ return N();
700
+ },
701
+ }),
702
+ p.iframe &&
703
+ l.a.createElement('button', {
704
+ title: 'Reload demo iframe page',
705
+ className: '__dumi-default-icon',
706
+ role: 'refresh',
707
+ onClick: function () {
708
+ return D(Math.random());
709
+ },
710
+ }),
711
+ !(null === (d = p.hideActions) || void 0 === d
712
+ ? void 0
713
+ : d.includes('EXTERNAL')) &&
714
+ l.a.createElement(
715
+ o['Link'],
716
+ { target: '_blank', to: b },
717
+ l.a.createElement('button', {
718
+ title: 'Open demo in new tab',
719
+ className: '__dumi-default-icon',
720
+ role: 'open-demo',
721
+ type: 'button',
722
+ }),
723
+ ),
724
+ l.a.createElement('span', null),
725
+ l.a.createElement('button', {
726
+ title: 'Copy source code',
727
+ className: '__dumi-default-icon',
728
+ role: 'copy',
729
+ 'data-status': C,
730
+ onClick: function () {
731
+ return j(G);
732
+ },
733
+ }),
734
+ 'tsx' === T &&
735
+ F &&
736
+ l.a.createElement(
737
+ o['Link'],
738
+ { target: '_blank', to: X },
739
+ l.a.createElement('button', {
740
+ title: 'Get JSX via TypeScript Playground',
741
+ className: '__dumi-default-icon',
742
+ role: 'change-tsx',
743
+ type: 'button',
744
+ }),
745
+ ),
746
+ l.a.createElement('button', {
747
+ title: 'Toggle source code panel',
748
+ className: '__dumi-default-icon'.concat(
749
+ F ? ' __dumi-default-btn-expand' : '',
750
+ ),
751
+ role: 'source',
752
+ type: 'button',
753
+ onClick: function () {
754
+ return J(!F);
755
+ },
756
+ }),
757
+ ),
758
+ F &&
759
+ l.a.createElement(
760
+ 'div',
761
+ { className: '__dumi-default-previewer-source-wrapper' },
762
+ !k &&
763
+ l.a.createElement(
764
+ r['b'],
765
+ {
766
+ className: '__dumi-default-previewer-source-tab',
767
+ prefixCls: '__dumi-default-tabs',
768
+ moreIcon: '\xb7\xb7\xb7',
769
+ defaultActiveKey: P,
770
+ onChange: W,
771
+ },
772
+ Object.keys(p.sources).map(function (e) {
773
+ return l.a.createElement(r['a'], {
774
+ tab:
775
+ '_' === e ? 'index.'.concat(f(e, p.sources[e])) : e,
776
+ key: e,
777
+ });
778
+ }),
779
+ ),
780
+ l.a.createElement(
781
+ 'div',
782
+ { className: '__dumi-default-previewer-source' },
783
+ l.a.createElement(i['a'], { code: G, lang: T, showCopy: !1 }),
784
+ ),
785
+ ),
786
+ )
787
+ );
788
+ };
789
+ t['default'] = h;
790
+ },
791
+ },
792
+ ]);