@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,827 @@
1
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[56],{MZF8:function(e,t,a){"use strict";var l=a("ogwx");a.d(t,"a",(function(){return l["b"]}));a("VCU9")},RZMt:function(e,t,a){},WPI9:function(e,t,a){"use strict";a.r(t);var l=a("q1tI"),n=a.n(l),r=a("dEAq"),c=a("Zxc8"),u=a("JjdP"),m=n.a.memo(u["default"]["statistic-basic"].component),i=n.a.memo(u["default"]["statistic-company"].component),d=n.a.memo(u["default"]["statistic-incard"].component),o=n.a.memo(u["default"]["statistic-countdown"].component);t["default"]=e=>(n.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)))}),[]),n.a.createElement(n.a.Fragment,null,n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"markdown"},n.a.createElement("h1",{id:"statistic-\u7edf\u8ba1\u6570\u503c"},n.a.createElement(r["AnchorLink"],{to:"#statistic-\u7edf\u8ba1\u6570\u503c","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Statistic \u7edf\u8ba1\u6570\u503c"),n.a.createElement("p",null,"\u5c55\u793a\u7edf\u8ba1\u6570\u503c\u3002"),n.a.createElement("h2",{id:"\u4f55\u65f6\u4f7f\u7528"},n.a.createElement(r["AnchorLink"],{to:"#\u4f55\u65f6\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u4f55\u65f6\u4f7f\u7528"),n.a.createElement("ul",null,n.a.createElement("li",null,"\u5f53\u9700\u8981\u7a81\u51fa\u67d0\u4e2a\u6216\u67d0\u7ec4\u6570\u5b57\u65f6\u3002"),n.a.createElement("li",null,"\u5f53\u9700\u8981\u5c55\u793a\u5e26\u63cf\u8ff0\u7684\u7edf\u8ba1\u7c7b\u6570\u636e\u65f6\u4f7f\u7528\u3002")),n.a.createElement("h3",{id:"\u57fa\u672c"},n.a.createElement(r["AnchorLink"],{to:"#\u57fa\u672c","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u57fa\u672c")),n.a.createElement(c["default"],u["default"]["statistic-basic"].previewerProps,n.a.createElement(m,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u5355\u4f4d"},n.a.createElement(r["AnchorLink"],{to:"#\u5355\u4f4d","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5355\u4f4d")),n.a.createElement(c["default"],u["default"]["statistic-company"].previewerProps,n.a.createElement(i,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u5728\u5361\u7247\u4e2d\u4f7f\u7528"},n.a.createElement(r["AnchorLink"],{to:"#\u5728\u5361\u7247\u4e2d\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5728\u5361\u7247\u4e2d\u4f7f\u7528")),n.a.createElement(c["default"],u["default"]["statistic-incard"].previewerProps,n.a.createElement(d,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h3",{id:"\u5012\u8ba1\u65f6"},n.a.createElement(r["AnchorLink"],{to:"#\u5012\u8ba1\u65f6","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"\u5012\u8ba1\u65f6")),n.a.createElement(c["default"],u["default"]["statistic-countdown"].previewerProps,n.a.createElement(o,null)),n.a.createElement("div",{className:"markdown"},n.a.createElement("h2",{id:"api"},n.a.createElement(r["AnchorLink"],{to:"#api","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"API"),n.a.createElement("h4",{id:"statistic"},n.a.createElement(r["AnchorLink"],{to:"#statistic","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Statistic"),n.a.createElement("table",null,n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,"\u53c2\u6570"),n.a.createElement("th",null,"\u8bf4\u660e"),n.a.createElement("th",null,"\u7c7b\u578b"),n.a.createElement("th",null,"\u9ed8\u8ba4\u503c"),n.a.createElement("th",null,"\u7248\u672c"))),n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",null,"decimalSeparator"),n.a.createElement("td",null,"\u8bbe\u7f6e\u5c0f\u6570\u70b9"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,".")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"formatter"),n.a.createElement("td",null,"\u81ea\u5b9a\u4e49\u6570\u503c\u5c55\u793a"),n.a.createElement("td",null,"(value) => ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"groupSeparator"),n.a.createElement("td",null,"\u8bbe\u7f6e\u5343\u5206\u4f4d\u6807\u8bc6\u7b26"),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,",")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"loading"),n.a.createElement("td",null,"\u6570\u503c\u662f\u5426\u52a0\u8f7d\u4e2d"),n.a.createElement("td",null,"boolean"),n.a.createElement("td",null,"false"),n.a.createElement("td",null,"4.8.0")),n.a.createElement("tr",null,n.a.createElement("td",null,"precision"),n.a.createElement("td",null,"\u6570\u503c\u7cbe\u5ea6"),n.a.createElement("td",null,"number"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"prefix"),n.a.createElement("td",null,"\u8bbe\u7f6e\u6570\u503c\u7684\u524d\u7f00"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"suffix"),n.a.createElement("td",null,"\u8bbe\u7f6e\u6570\u503c\u7684\u540e\u7f00"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"title"),n.a.createElement("td",null,"\u6570\u503c\u7684\u6807\u9898"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"value"),n.a.createElement("td",null,"\u6570\u503c\u5185\u5bb9"),n.a.createElement("td",null,"string | number"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"valueStyle"),n.a.createElement("td",null,"\u8bbe\u7f6e\u6570\u503c\u7684\u6837\u5f0f"),n.a.createElement("td",null,"CSSProperties"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)))),n.a.createElement("h4",{id:"statisticcountdown"},n.a.createElement(r["AnchorLink"],{to:"#statisticcountdown","aria-hidden":"true",tabIndex:-1},n.a.createElement("span",{className:"icon icon-link"})),"Statistic.Countdown"),n.a.createElement("table",null,n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,"\u53c2\u6570"),n.a.createElement("th",null,"\u8bf4\u660e"),n.a.createElement("th",null,"\u7c7b\u578b"),n.a.createElement("th",null,"\u9ed8\u8ba4\u503c"),n.a.createElement("th",null,"\u7248\u672c"))),n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",null,"format"),n.a.createElement("td",null,"\u683c\u5f0f\u5316\u5012\u8ba1\u65f6\u5c55\u793a\uff0c\u53c2\u8003 ",n.a.createElement(r["Link"],{to:"http://momentjs.com/"},"moment")),n.a.createElement("td",null,"string"),n.a.createElement("td",null,n.a.createElement("code",null,"HH:mm:ss")),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"prefix"),n.a.createElement("td",null,"\u8bbe\u7f6e\u6570\u503c\u7684\u524d\u7f00"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"suffix"),n.a.createElement("td",null,"\u8bbe\u7f6e\u6570\u503c\u7684\u540e\u7f00"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"title"),n.a.createElement("td",null,"\u6570\u503c\u7684\u6807\u9898"),n.a.createElement("td",null,"ReactNode"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"value"),n.a.createElement("td",null,"\u6570\u503c\u5185\u5bb9"),n.a.createElement("td",null,"number | moment"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"valueStyle"),n.a.createElement("td",null,"\u8bbe\u7f6e\u6570\u503c\u7684\u6837\u5f0f"),n.a.createElement("td",null,"CSSProperties"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onFinish"),n.a.createElement("td",null,"\u5012\u8ba1\u65f6\u5b8c\u6210\u65f6\u89e6\u53d1"),n.a.createElement("td",null,"() => void"),n.a.createElement("td",null,"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"onChange"),n.a.createElement("td",null,"\u5012\u8ba1\u65f6\u65f6\u95f4\u53d8\u5316\u65f6\u89e6\u53d1"),n.a.createElement("td",null,"(value: number) => void"),n.a.createElement("td",null,"-"),n.a.createElement("td",null,"4.16.0")))),n.a.createElement("style",{dangerouslySetInnerHTML:{__html:"\n .site-statistic-demo-card {\n padding: 30px;\n background: #ececec;\n }\n"}})))))},Zxc8:function(e,t,a){"use strict";a.r(t);var l=a("q1tI"),n=a.n(l),r=a("k3GJ"),c=a("MZF8"),u=a("dEAq"),m=a("H1Ra");a("RZMt");function i(e,t){return f(e)||E(e,t)||o(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 o(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,l=new Array(t);a<t;a++)l[a]=e[a];return l}function E(e,t){var a=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l,n,r=[],c=!0,u=!1;try{for(a=a.call(e);!(c=(l=a.next()).done);c=!0)if(r.push(l.value),t&&r.length===t)break}catch(m){u=!0,n=m}finally{try{c||null==a["return"]||a["return"]()}finally{if(u)throw n}}return r}}function f(e){if(Array.isArray(e))return e}function p(e,t){var a,l=null===(a=e.match(/\.(\w+)$/))||void 0===a?void 0:a[1];return l||(l=t.tsx?"tsx":"jsx"),l}var b=function(e){var t,a,d,o=Object(l["useRef"])(),s=Object(l["useContext"])(u["context"]),E=s.locale,f=Object(u["useLocaleProps"])(E,e),b=Object(u["useDemoUrl"])(f.identifier),h=f.demoUrl||b,v=(null===c["a"]||void 0===c["a"]?void 0:c["a"].location.hash)==="#".concat(f.identifier),k=1===Object.keys(f.sources).length,_=Object(u["useCodeSandbox"])((null===(t=f.hideActions)||void 0===t?void 0:t.includes("CSB"))?null:f),y=Object(u["useRiddle"])((null===(a=f.hideActions)||void 0===a?void 0:a.includes("RIDDLE"))?null:f),w=Object(u["useMotions"])(f.motions||[],o.current),g=i(w,2),N=g[0],x=g[1],S=Object(u["useCopy"])(),A=i(S,2),j=A[0],C=A[1],O=Object(l["useState"])("_"),I=i(O,2),L=I[0],R=I[1],P=Object(l["useState"])(p(L,f.sources[L])),M=i(P,2),T=M[0],U=M[1],Z=Object(l["useState"])(Boolean(f.defaultShowCode)),F=i(Z,2),H=F[0],J=F[1],q=Object(l["useState"])(Math.random()),$=i(q,2),B=$[0],D=$[1],G=f.sources[L][T]||f.sources[L].content,X=Object(u["useTSPlaygroundUrl"])(E,G),K=Object(l["useRef"])(),V=Object(u["usePrefersColor"])(),W=i(V,1),z=W[0];function Q(e){R(e),U(p(e,f.sources[e]))}return Object(l["useEffect"])((function(){D(Math.random())}),[z]),n.a.createElement("div",{style:f.style,className:[f.className,"__dumi-default-previewer",v?"__dumi-default-previewer-target":""].filter(Boolean).join(" "),id:f.identifier,"data-debug":f.debug||void 0,"data-iframe":f.iframe||void 0},f.iframe&&n.a.createElement("div",{className:"__dumi-default-previewer-browser-nav"}),n.a.createElement("div",{ref:o,className:"__dumi-default-previewer-demo",style:{transform:f.transform?"translate(0, 0)":void 0,padding:f.compact||f.iframe&&!1!==f.compact?"0":void 0,background:f.background}},f.iframe?n.a.createElement("iframe",{title:"dumi-previewer",style:{height:String(f.iframe).replace(/(\d)$/,"$1px")},key:B,src:h,ref:K}):f.children),n.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":f.title},f.title&&n.a.createElement(u["AnchorLink"],{to:"#".concat(f.identifier)},f.title),f.description&&n.a.createElement("div",{dangerouslySetInnerHTML:{__html:f.description}})),n.a.createElement("div",{className:"__dumi-default-previewer-actions"},_&&n.a.createElement("button",{title:"Open demo on CodeSandbox.io",className:"__dumi-default-icon",role:"codesandbox",onClick:_}),y&&n.a.createElement("button",{title:"Open demo on Riddle",className:"__dumi-default-icon",role:"riddle",onClick:y}),f.motions&&n.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:x,onClick:function(){return N()}}),f.iframe&&n.a.createElement("button",{title:"Reload demo iframe page",className:"__dumi-default-icon",role:"refresh",onClick:function(){return D(Math.random())}}),!(null===(d=f.hideActions)||void 0===d?void 0:d.includes("EXTERNAL"))&&n.a.createElement(u["Link"],{target:"_blank",to:h},n.a.createElement("button",{title:"Open demo in new tab",className:"__dumi-default-icon",role:"open-demo",type:"button"})),n.a.createElement("span",null),n.a.createElement("button",{title:"Copy source code",className:"__dumi-default-icon",role:"copy","data-status":C,onClick:function(){return j(G)}}),"tsx"===T&&H&&n.a.createElement(u["Link"],{target:"_blank",to:X},n.a.createElement("button",{title:"Get JSX via TypeScript Playground",className:"__dumi-default-icon",role:"change-tsx",type:"button"})),n.a.createElement("button",{title:"Toggle source code panel",className:"__dumi-default-icon".concat(H?" __dumi-default-btn-expand":""),role:"source",type:"button",onClick:function(){return J(!H)}})),H&&n.a.createElement("div",{className:"__dumi-default-previewer-source-wrapper"},!k&&n.a.createElement(r["b"],{className:"__dumi-default-previewer-source-tab",prefixCls:"__dumi-default-tabs",moreIcon:"\xb7\xb7\xb7",defaultActiveKey:L,onChange:Q},Object.keys(f.sources).map((function(e){return n.a.createElement(r["a"],{tab:"_"===e?"index.".concat(p(e,f.sources[e])):e,key:e})}))),n.a.createElement("div",{className:"__dumi-default-previewer-source"},n.a.createElement(m["a"],{code:G,lang:T,showCopy:!1}))))};t["default"]=b}}]);
1
+ (window['webpackJsonp'] = window['webpackJsonp'] || []).push([
2
+ [56],
3
+ {
4
+ MZF8: function (e, t, a) {
5
+ 'use strict';
6
+ var l = a('ogwx');
7
+ a.d(t, 'a', function () {
8
+ return l['b'];
9
+ });
10
+ a('VCU9');
11
+ },
12
+ RZMt: function (e, t, a) {},
13
+ WPI9: function (e, t, a) {
14
+ 'use strict';
15
+ a.r(t);
16
+ var l = a('q1tI'),
17
+ n = a.n(l),
18
+ r = a('dEAq'),
19
+ c = a('Zxc8'),
20
+ u = a('JjdP'),
21
+ m = n.a.memo(u['default']['statistic-basic'].component),
22
+ i = n.a.memo(u['default']['statistic-company'].component),
23
+ d = n.a.memo(u['default']['statistic-incard'].component),
24
+ o = n.a.memo(u['default']['statistic-countdown'].component);
25
+ t['default'] = (e) => (
26
+ n.a.useEffect(() => {
27
+ var t;
28
+ null !== e &&
29
+ void 0 !== e &&
30
+ null !== (t = e.location) &&
31
+ void 0 !== t &&
32
+ t.hash &&
33
+ r['AnchorLink'].scrollToAnchor(
34
+ decodeURIComponent(e.location.hash.slice(1)),
35
+ );
36
+ }, []),
37
+ n.a.createElement(
38
+ n.a.Fragment,
39
+ null,
40
+ n.a.createElement(
41
+ n.a.Fragment,
42
+ null,
43
+ n.a.createElement(
44
+ 'div',
45
+ { className: 'markdown' },
46
+ n.a.createElement(
47
+ 'h1',
48
+ { id: 'statistic-\u7edf\u8ba1\u6570\u503c' },
49
+ n.a.createElement(
50
+ r['AnchorLink'],
51
+ {
52
+ to: '#statistic-\u7edf\u8ba1\u6570\u503c',
53
+ 'aria-hidden': 'true',
54
+ tabIndex: -1,
55
+ },
56
+ n.a.createElement('span', { className: 'icon icon-link' }),
57
+ ),
58
+ 'Statistic \u7edf\u8ba1\u6570\u503c',
59
+ ),
60
+ n.a.createElement(
61
+ 'p',
62
+ null,
63
+ '\u5c55\u793a\u7edf\u8ba1\u6570\u503c\u3002',
64
+ ),
65
+ n.a.createElement(
66
+ 'h2',
67
+ { id: '\u4f55\u65f6\u4f7f\u7528' },
68
+ n.a.createElement(
69
+ r['AnchorLink'],
70
+ {
71
+ to: '#\u4f55\u65f6\u4f7f\u7528',
72
+ 'aria-hidden': 'true',
73
+ tabIndex: -1,
74
+ },
75
+ n.a.createElement('span', { className: 'icon icon-link' }),
76
+ ),
77
+ '\u4f55\u65f6\u4f7f\u7528',
78
+ ),
79
+ n.a.createElement(
80
+ 'ul',
81
+ null,
82
+ n.a.createElement(
83
+ 'li',
84
+ null,
85
+ '\u5f53\u9700\u8981\u7a81\u51fa\u67d0\u4e2a\u6216\u67d0\u7ec4\u6570\u5b57\u65f6\u3002',
86
+ ),
87
+ n.a.createElement(
88
+ 'li',
89
+ null,
90
+ '\u5f53\u9700\u8981\u5c55\u793a\u5e26\u63cf\u8ff0\u7684\u7edf\u8ba1\u7c7b\u6570\u636e\u65f6\u4f7f\u7528\u3002',
91
+ ),
92
+ ),
93
+ n.a.createElement(
94
+ 'h3',
95
+ { id: '\u57fa\u672c' },
96
+ n.a.createElement(
97
+ r['AnchorLink'],
98
+ { to: '#\u57fa\u672c', 'aria-hidden': 'true', tabIndex: -1 },
99
+ n.a.createElement('span', { className: 'icon icon-link' }),
100
+ ),
101
+ '\u57fa\u672c',
102
+ ),
103
+ ),
104
+ n.a.createElement(
105
+ c['default'],
106
+ u['default']['statistic-basic'].previewerProps,
107
+ n.a.createElement(m, null),
108
+ ),
109
+ n.a.createElement(
110
+ 'div',
111
+ { className: 'markdown' },
112
+ n.a.createElement(
113
+ 'h3',
114
+ { id: '\u5355\u4f4d' },
115
+ n.a.createElement(
116
+ r['AnchorLink'],
117
+ { to: '#\u5355\u4f4d', 'aria-hidden': 'true', tabIndex: -1 },
118
+ n.a.createElement('span', { className: 'icon icon-link' }),
119
+ ),
120
+ '\u5355\u4f4d',
121
+ ),
122
+ ),
123
+ n.a.createElement(
124
+ c['default'],
125
+ u['default']['statistic-company'].previewerProps,
126
+ n.a.createElement(i, null),
127
+ ),
128
+ n.a.createElement(
129
+ 'div',
130
+ { className: 'markdown' },
131
+ n.a.createElement(
132
+ 'h3',
133
+ { id: '\u5728\u5361\u7247\u4e2d\u4f7f\u7528' },
134
+ n.a.createElement(
135
+ r['AnchorLink'],
136
+ {
137
+ to: '#\u5728\u5361\u7247\u4e2d\u4f7f\u7528',
138
+ 'aria-hidden': 'true',
139
+ tabIndex: -1,
140
+ },
141
+ n.a.createElement('span', { className: 'icon icon-link' }),
142
+ ),
143
+ '\u5728\u5361\u7247\u4e2d\u4f7f\u7528',
144
+ ),
145
+ ),
146
+ n.a.createElement(
147
+ c['default'],
148
+ u['default']['statistic-incard'].previewerProps,
149
+ n.a.createElement(d, null),
150
+ ),
151
+ n.a.createElement(
152
+ 'div',
153
+ { className: 'markdown' },
154
+ n.a.createElement(
155
+ 'h3',
156
+ { id: '\u5012\u8ba1\u65f6' },
157
+ n.a.createElement(
158
+ r['AnchorLink'],
159
+ {
160
+ to: '#\u5012\u8ba1\u65f6',
161
+ 'aria-hidden': 'true',
162
+ tabIndex: -1,
163
+ },
164
+ n.a.createElement('span', { className: 'icon icon-link' }),
165
+ ),
166
+ '\u5012\u8ba1\u65f6',
167
+ ),
168
+ ),
169
+ n.a.createElement(
170
+ c['default'],
171
+ u['default']['statistic-countdown'].previewerProps,
172
+ n.a.createElement(o, null),
173
+ ),
174
+ n.a.createElement(
175
+ 'div',
176
+ { className: 'markdown' },
177
+ n.a.createElement(
178
+ 'h2',
179
+ { id: 'api' },
180
+ n.a.createElement(
181
+ r['AnchorLink'],
182
+ { to: '#api', 'aria-hidden': 'true', tabIndex: -1 },
183
+ n.a.createElement('span', { className: 'icon icon-link' }),
184
+ ),
185
+ 'API',
186
+ ),
187
+ n.a.createElement(
188
+ 'h4',
189
+ { id: 'statistic' },
190
+ n.a.createElement(
191
+ r['AnchorLink'],
192
+ { to: '#statistic', 'aria-hidden': 'true', tabIndex: -1 },
193
+ n.a.createElement('span', { className: 'icon icon-link' }),
194
+ ),
195
+ 'Statistic',
196
+ ),
197
+ n.a.createElement(
198
+ 'table',
199
+ null,
200
+ n.a.createElement(
201
+ 'thead',
202
+ null,
203
+ n.a.createElement(
204
+ 'tr',
205
+ null,
206
+ n.a.createElement('th', null, '\u53c2\u6570'),
207
+ n.a.createElement('th', null, '\u8bf4\u660e'),
208
+ n.a.createElement('th', null, '\u7c7b\u578b'),
209
+ n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
210
+ n.a.createElement('th', null, '\u7248\u672c'),
211
+ ),
212
+ ),
213
+ n.a.createElement(
214
+ 'tbody',
215
+ null,
216
+ n.a.createElement(
217
+ 'tr',
218
+ null,
219
+ n.a.createElement('td', null, 'decimalSeparator'),
220
+ n.a.createElement(
221
+ 'td',
222
+ null,
223
+ '\u8bbe\u7f6e\u5c0f\u6570\u70b9',
224
+ ),
225
+ n.a.createElement('td', null, 'string'),
226
+ n.a.createElement(
227
+ 'td',
228
+ null,
229
+ n.a.createElement('code', null, '.'),
230
+ ),
231
+ n.a.createElement('td', null),
232
+ ),
233
+ n.a.createElement(
234
+ 'tr',
235
+ null,
236
+ n.a.createElement('td', null, 'formatter'),
237
+ n.a.createElement(
238
+ 'td',
239
+ null,
240
+ '\u81ea\u5b9a\u4e49\u6570\u503c\u5c55\u793a',
241
+ ),
242
+ n.a.createElement('td', null, '(value) => ReactNode'),
243
+ n.a.createElement('td', null, '-'),
244
+ n.a.createElement('td', null),
245
+ ),
246
+ n.a.createElement(
247
+ 'tr',
248
+ null,
249
+ n.a.createElement('td', null, 'groupSeparator'),
250
+ n.a.createElement(
251
+ 'td',
252
+ null,
253
+ '\u8bbe\u7f6e\u5343\u5206\u4f4d\u6807\u8bc6\u7b26',
254
+ ),
255
+ n.a.createElement('td', null, 'string'),
256
+ n.a.createElement(
257
+ 'td',
258
+ null,
259
+ n.a.createElement('code', null, ','),
260
+ ),
261
+ n.a.createElement('td', null),
262
+ ),
263
+ n.a.createElement(
264
+ 'tr',
265
+ null,
266
+ n.a.createElement('td', null, 'loading'),
267
+ n.a.createElement(
268
+ 'td',
269
+ null,
270
+ '\u6570\u503c\u662f\u5426\u52a0\u8f7d\u4e2d',
271
+ ),
272
+ n.a.createElement('td', null, 'boolean'),
273
+ n.a.createElement('td', null, 'false'),
274
+ n.a.createElement('td', null, '4.8.0'),
275
+ ),
276
+ n.a.createElement(
277
+ 'tr',
278
+ null,
279
+ n.a.createElement('td', null, 'precision'),
280
+ n.a.createElement('td', null, '\u6570\u503c\u7cbe\u5ea6'),
281
+ n.a.createElement('td', null, 'number'),
282
+ n.a.createElement('td', null, '-'),
283
+ n.a.createElement('td', null),
284
+ ),
285
+ n.a.createElement(
286
+ 'tr',
287
+ null,
288
+ n.a.createElement('td', null, 'prefix'),
289
+ n.a.createElement(
290
+ 'td',
291
+ null,
292
+ '\u8bbe\u7f6e\u6570\u503c\u7684\u524d\u7f00',
293
+ ),
294
+ n.a.createElement('td', null, 'ReactNode'),
295
+ n.a.createElement('td', null, '-'),
296
+ n.a.createElement('td', null),
297
+ ),
298
+ n.a.createElement(
299
+ 'tr',
300
+ null,
301
+ n.a.createElement('td', null, 'suffix'),
302
+ n.a.createElement(
303
+ 'td',
304
+ null,
305
+ '\u8bbe\u7f6e\u6570\u503c\u7684\u540e\u7f00',
306
+ ),
307
+ n.a.createElement('td', null, 'ReactNode'),
308
+ n.a.createElement('td', null, '-'),
309
+ n.a.createElement('td', null),
310
+ ),
311
+ n.a.createElement(
312
+ 'tr',
313
+ null,
314
+ n.a.createElement('td', null, 'title'),
315
+ n.a.createElement(
316
+ 'td',
317
+ null,
318
+ '\u6570\u503c\u7684\u6807\u9898',
319
+ ),
320
+ n.a.createElement('td', null, 'ReactNode'),
321
+ n.a.createElement('td', null, '-'),
322
+ n.a.createElement('td', null),
323
+ ),
324
+ n.a.createElement(
325
+ 'tr',
326
+ null,
327
+ n.a.createElement('td', null, 'value'),
328
+ n.a.createElement('td', null, '\u6570\u503c\u5185\u5bb9'),
329
+ n.a.createElement('td', null, 'string | number'),
330
+ n.a.createElement('td', null, '-'),
331
+ n.a.createElement('td', null),
332
+ ),
333
+ n.a.createElement(
334
+ 'tr',
335
+ null,
336
+ n.a.createElement('td', null, 'valueStyle'),
337
+ n.a.createElement(
338
+ 'td',
339
+ null,
340
+ '\u8bbe\u7f6e\u6570\u503c\u7684\u6837\u5f0f',
341
+ ),
342
+ n.a.createElement('td', null, 'CSSProperties'),
343
+ n.a.createElement('td', null, '-'),
344
+ n.a.createElement('td', null),
345
+ ),
346
+ ),
347
+ ),
348
+ n.a.createElement(
349
+ 'h4',
350
+ { id: 'statisticcountdown' },
351
+ n.a.createElement(
352
+ r['AnchorLink'],
353
+ {
354
+ to: '#statisticcountdown',
355
+ 'aria-hidden': 'true',
356
+ tabIndex: -1,
357
+ },
358
+ n.a.createElement('span', { className: 'icon icon-link' }),
359
+ ),
360
+ 'Statistic.Countdown',
361
+ ),
362
+ n.a.createElement(
363
+ 'table',
364
+ null,
365
+ n.a.createElement(
366
+ 'thead',
367
+ null,
368
+ n.a.createElement(
369
+ 'tr',
370
+ null,
371
+ n.a.createElement('th', null, '\u53c2\u6570'),
372
+ n.a.createElement('th', null, '\u8bf4\u660e'),
373
+ n.a.createElement('th', null, '\u7c7b\u578b'),
374
+ n.a.createElement('th', null, '\u9ed8\u8ba4\u503c'),
375
+ n.a.createElement('th', null, '\u7248\u672c'),
376
+ ),
377
+ ),
378
+ n.a.createElement(
379
+ 'tbody',
380
+ null,
381
+ n.a.createElement(
382
+ 'tr',
383
+ null,
384
+ n.a.createElement('td', null, 'format'),
385
+ n.a.createElement(
386
+ 'td',
387
+ null,
388
+ '\u683c\u5f0f\u5316\u5012\u8ba1\u65f6\u5c55\u793a\uff0c\u53c2\u8003 ',
389
+ n.a.createElement(
390
+ r['Link'],
391
+ { to: 'http://momentjs.com/' },
392
+ 'moment',
393
+ ),
394
+ ),
395
+ n.a.createElement('td', null, 'string'),
396
+ n.a.createElement(
397
+ 'td',
398
+ null,
399
+ n.a.createElement('code', null, 'HH:mm:ss'),
400
+ ),
401
+ n.a.createElement('td', null),
402
+ ),
403
+ n.a.createElement(
404
+ 'tr',
405
+ null,
406
+ n.a.createElement('td', null, 'prefix'),
407
+ n.a.createElement(
408
+ 'td',
409
+ null,
410
+ '\u8bbe\u7f6e\u6570\u503c\u7684\u524d\u7f00',
411
+ ),
412
+ n.a.createElement('td', null, 'ReactNode'),
413
+ n.a.createElement('td', null, '-'),
414
+ n.a.createElement('td', null),
415
+ ),
416
+ n.a.createElement(
417
+ 'tr',
418
+ null,
419
+ n.a.createElement('td', null, 'suffix'),
420
+ n.a.createElement(
421
+ 'td',
422
+ null,
423
+ '\u8bbe\u7f6e\u6570\u503c\u7684\u540e\u7f00',
424
+ ),
425
+ n.a.createElement('td', null, 'ReactNode'),
426
+ n.a.createElement('td', null, '-'),
427
+ n.a.createElement('td', null),
428
+ ),
429
+ n.a.createElement(
430
+ 'tr',
431
+ null,
432
+ n.a.createElement('td', null, 'title'),
433
+ n.a.createElement(
434
+ 'td',
435
+ null,
436
+ '\u6570\u503c\u7684\u6807\u9898',
437
+ ),
438
+ n.a.createElement('td', null, 'ReactNode'),
439
+ n.a.createElement('td', null, '-'),
440
+ n.a.createElement('td', null),
441
+ ),
442
+ n.a.createElement(
443
+ 'tr',
444
+ null,
445
+ n.a.createElement('td', null, 'value'),
446
+ n.a.createElement('td', null, '\u6570\u503c\u5185\u5bb9'),
447
+ n.a.createElement('td', null, 'number | moment'),
448
+ n.a.createElement('td', null, '-'),
449
+ n.a.createElement('td', null),
450
+ ),
451
+ n.a.createElement(
452
+ 'tr',
453
+ null,
454
+ n.a.createElement('td', null, 'valueStyle'),
455
+ n.a.createElement(
456
+ 'td',
457
+ null,
458
+ '\u8bbe\u7f6e\u6570\u503c\u7684\u6837\u5f0f',
459
+ ),
460
+ n.a.createElement('td', null, 'CSSProperties'),
461
+ n.a.createElement('td', null, '-'),
462
+ n.a.createElement('td', null),
463
+ ),
464
+ n.a.createElement(
465
+ 'tr',
466
+ null,
467
+ n.a.createElement('td', null, 'onFinish'),
468
+ n.a.createElement(
469
+ 'td',
470
+ null,
471
+ '\u5012\u8ba1\u65f6\u5b8c\u6210\u65f6\u89e6\u53d1',
472
+ ),
473
+ n.a.createElement('td', null, '() => void'),
474
+ n.a.createElement('td', null, '-'),
475
+ n.a.createElement('td', null),
476
+ ),
477
+ n.a.createElement(
478
+ 'tr',
479
+ null,
480
+ n.a.createElement('td', null, 'onChange'),
481
+ n.a.createElement(
482
+ 'td',
483
+ null,
484
+ '\u5012\u8ba1\u65f6\u65f6\u95f4\u53d8\u5316\u65f6\u89e6\u53d1',
485
+ ),
486
+ n.a.createElement('td', null, '(value: number) => void'),
487
+ n.a.createElement('td', null, '-'),
488
+ n.a.createElement('td', null, '4.16.0'),
489
+ ),
490
+ ),
491
+ ),
492
+ n.a.createElement('style', {
493
+ dangerouslySetInnerHTML: {
494
+ __html:
495
+ '\n .site-statistic-demo-card {\n padding: 30px;\n background: #ececec;\n }\n',
496
+ },
497
+ }),
498
+ ),
499
+ ),
500
+ )
501
+ );
502
+ },
503
+ Zxc8: function (e, t, a) {
504
+ 'use strict';
505
+ a.r(t);
506
+ var l = a('q1tI'),
507
+ n = a.n(l),
508
+ r = a('k3GJ'),
509
+ c = a('MZF8'),
510
+ u = a('dEAq'),
511
+ m = a('H1Ra');
512
+ a('RZMt');
513
+ function i(e, t) {
514
+ return f(e) || E(e, t) || o(e, t) || d();
515
+ }
516
+ function d() {
517
+ throw new TypeError(
518
+ 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
519
+ );
520
+ }
521
+ function o(e, t) {
522
+ if (e) {
523
+ if ('string' === typeof e) return s(e, t);
524
+ var a = Object.prototype.toString.call(e).slice(8, -1);
525
+ return (
526
+ 'Object' === a && e.constructor && (a = e.constructor.name),
527
+ 'Map' === a || 'Set' === a
528
+ ? Array.from(e)
529
+ : 'Arguments' === a ||
530
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)
531
+ ? s(e, t)
532
+ : void 0
533
+ );
534
+ }
535
+ }
536
+ function s(e, t) {
537
+ (null == t || t > e.length) && (t = e.length);
538
+ for (var a = 0, l = new Array(t); a < t; a++) l[a] = e[a];
539
+ return l;
540
+ }
541
+ function E(e, t) {
542
+ var a =
543
+ null == e
544
+ ? null
545
+ : ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
546
+ e['@@iterator'];
547
+ if (null != a) {
548
+ var l,
549
+ n,
550
+ r = [],
551
+ c = !0,
552
+ u = !1;
553
+ try {
554
+ for (a = a.call(e); !(c = (l = a.next()).done); c = !0)
555
+ if ((r.push(l.value), t && r.length === t)) break;
556
+ } catch (m) {
557
+ (u = !0), (n = m);
558
+ } finally {
559
+ try {
560
+ c || null == a['return'] || a['return']();
561
+ } finally {
562
+ if (u) throw n;
563
+ }
564
+ }
565
+ return r;
566
+ }
567
+ }
568
+ function f(e) {
569
+ if (Array.isArray(e)) return e;
570
+ }
571
+ function p(e, t) {
572
+ var a,
573
+ l =
574
+ null === (a = e.match(/\.(\w+)$/)) || void 0 === a ? void 0 : a[1];
575
+ return l || (l = t.tsx ? 'tsx' : 'jsx'), l;
576
+ }
577
+ var b = function (e) {
578
+ var t,
579
+ a,
580
+ d,
581
+ o = Object(l['useRef'])(),
582
+ s = Object(l['useContext'])(u['context']),
583
+ E = s.locale,
584
+ f = Object(u['useLocaleProps'])(E, e),
585
+ b = Object(u['useDemoUrl'])(f.identifier),
586
+ h = f.demoUrl || b,
587
+ v =
588
+ (null === c['a'] || void 0 === c['a']
589
+ ? void 0
590
+ : c['a'].location.hash) === '#'.concat(f.identifier),
591
+ k = 1 === Object.keys(f.sources).length,
592
+ _ = Object(u['useCodeSandbox'])(
593
+ (
594
+ null === (t = f.hideActions) || void 0 === t
595
+ ? void 0
596
+ : t.includes('CSB')
597
+ )
598
+ ? null
599
+ : f,
600
+ ),
601
+ y = Object(u['useRiddle'])(
602
+ (
603
+ null === (a = f.hideActions) || void 0 === a
604
+ ? void 0
605
+ : a.includes('RIDDLE')
606
+ )
607
+ ? null
608
+ : f,
609
+ ),
610
+ w = Object(u['useMotions'])(f.motions || [], o.current),
611
+ g = i(w, 2),
612
+ N = g[0],
613
+ x = g[1],
614
+ S = Object(u['useCopy'])(),
615
+ A = i(S, 2),
616
+ j = A[0],
617
+ C = A[1],
618
+ O = Object(l['useState'])('_'),
619
+ I = i(O, 2),
620
+ L = I[0],
621
+ R = I[1],
622
+ P = Object(l['useState'])(p(L, f.sources[L])),
623
+ M = i(P, 2),
624
+ T = M[0],
625
+ U = M[1],
626
+ Z = Object(l['useState'])(Boolean(f.defaultShowCode)),
627
+ F = i(Z, 2),
628
+ H = F[0],
629
+ J = F[1],
630
+ q = Object(l['useState'])(Math.random()),
631
+ $ = i(q, 2),
632
+ B = $[0],
633
+ D = $[1],
634
+ G = f.sources[L][T] || f.sources[L].content,
635
+ X = Object(u['useTSPlaygroundUrl'])(E, G),
636
+ K = Object(l['useRef'])(),
637
+ V = Object(u['usePrefersColor'])(),
638
+ W = i(V, 1),
639
+ z = W[0];
640
+ function Q(e) {
641
+ R(e), U(p(e, f.sources[e]));
642
+ }
643
+ return (
644
+ Object(l['useEffect'])(
645
+ function () {
646
+ D(Math.random());
647
+ },
648
+ [z],
649
+ ),
650
+ n.a.createElement(
651
+ 'div',
652
+ {
653
+ style: f.style,
654
+ className: [
655
+ f.className,
656
+ '__dumi-default-previewer',
657
+ v ? '__dumi-default-previewer-target' : '',
658
+ ]
659
+ .filter(Boolean)
660
+ .join(' '),
661
+ id: f.identifier,
662
+ 'data-debug': f.debug || void 0,
663
+ 'data-iframe': f.iframe || void 0,
664
+ },
665
+ f.iframe &&
666
+ n.a.createElement('div', {
667
+ className: '__dumi-default-previewer-browser-nav',
668
+ }),
669
+ n.a.createElement(
670
+ 'div',
671
+ {
672
+ ref: o,
673
+ className: '__dumi-default-previewer-demo',
674
+ style: {
675
+ transform: f.transform ? 'translate(0, 0)' : void 0,
676
+ padding:
677
+ f.compact || (f.iframe && !1 !== f.compact) ? '0' : void 0,
678
+ background: f.background,
679
+ },
680
+ },
681
+ f.iframe
682
+ ? n.a.createElement('iframe', {
683
+ title: 'dumi-previewer',
684
+ style: {
685
+ height: String(f.iframe).replace(/(\d)$/, '$1px'),
686
+ },
687
+ key: B,
688
+ src: h,
689
+ ref: K,
690
+ })
691
+ : f.children,
692
+ ),
693
+ n.a.createElement(
694
+ 'div',
695
+ {
696
+ className: '__dumi-default-previewer-desc',
697
+ 'data-title': f.title,
698
+ },
699
+ f.title &&
700
+ n.a.createElement(
701
+ u['AnchorLink'],
702
+ { to: '#'.concat(f.identifier) },
703
+ f.title,
704
+ ),
705
+ f.description &&
706
+ n.a.createElement('div', {
707
+ dangerouslySetInnerHTML: { __html: f.description },
708
+ }),
709
+ ),
710
+ n.a.createElement(
711
+ 'div',
712
+ { className: '__dumi-default-previewer-actions' },
713
+ _ &&
714
+ n.a.createElement('button', {
715
+ title: 'Open demo on CodeSandbox.io',
716
+ className: '__dumi-default-icon',
717
+ role: 'codesandbox',
718
+ onClick: _,
719
+ }),
720
+ y &&
721
+ n.a.createElement('button', {
722
+ title: 'Open demo on Riddle',
723
+ className: '__dumi-default-icon',
724
+ role: 'riddle',
725
+ onClick: y,
726
+ }),
727
+ f.motions &&
728
+ n.a.createElement('button', {
729
+ title: 'Execute motions',
730
+ className: '__dumi-default-icon',
731
+ role: 'motions',
732
+ disabled: x,
733
+ onClick: function () {
734
+ return N();
735
+ },
736
+ }),
737
+ f.iframe &&
738
+ n.a.createElement('button', {
739
+ title: 'Reload demo iframe page',
740
+ className: '__dumi-default-icon',
741
+ role: 'refresh',
742
+ onClick: function () {
743
+ return D(Math.random());
744
+ },
745
+ }),
746
+ !(null === (d = f.hideActions) || void 0 === d
747
+ ? void 0
748
+ : d.includes('EXTERNAL')) &&
749
+ n.a.createElement(
750
+ u['Link'],
751
+ { target: '_blank', to: h },
752
+ n.a.createElement('button', {
753
+ title: 'Open demo in new tab',
754
+ className: '__dumi-default-icon',
755
+ role: 'open-demo',
756
+ type: 'button',
757
+ }),
758
+ ),
759
+ n.a.createElement('span', null),
760
+ n.a.createElement('button', {
761
+ title: 'Copy source code',
762
+ className: '__dumi-default-icon',
763
+ role: 'copy',
764
+ 'data-status': C,
765
+ onClick: function () {
766
+ return j(G);
767
+ },
768
+ }),
769
+ 'tsx' === T &&
770
+ H &&
771
+ n.a.createElement(
772
+ u['Link'],
773
+ { target: '_blank', to: X },
774
+ n.a.createElement('button', {
775
+ title: 'Get JSX via TypeScript Playground',
776
+ className: '__dumi-default-icon',
777
+ role: 'change-tsx',
778
+ type: 'button',
779
+ }),
780
+ ),
781
+ n.a.createElement('button', {
782
+ title: 'Toggle source code panel',
783
+ className: '__dumi-default-icon'.concat(
784
+ H ? ' __dumi-default-btn-expand' : '',
785
+ ),
786
+ role: 'source',
787
+ type: 'button',
788
+ onClick: function () {
789
+ return J(!H);
790
+ },
791
+ }),
792
+ ),
793
+ H &&
794
+ n.a.createElement(
795
+ 'div',
796
+ { className: '__dumi-default-previewer-source-wrapper' },
797
+ !k &&
798
+ n.a.createElement(
799
+ r['b'],
800
+ {
801
+ className: '__dumi-default-previewer-source-tab',
802
+ prefixCls: '__dumi-default-tabs',
803
+ moreIcon: '\xb7\xb7\xb7',
804
+ defaultActiveKey: L,
805
+ onChange: Q,
806
+ },
807
+ Object.keys(f.sources).map(function (e) {
808
+ return n.a.createElement(r['a'], {
809
+ tab:
810
+ '_' === e ? 'index.'.concat(p(e, f.sources[e])) : e,
811
+ key: e,
812
+ });
813
+ }),
814
+ ),
815
+ n.a.createElement(
816
+ 'div',
817
+ { className: '__dumi-default-previewer-source' },
818
+ n.a.createElement(m['a'], { code: G, lang: T, showCopy: !1 }),
819
+ ),
820
+ ),
821
+ )
822
+ );
823
+ };
824
+ t['default'] = b;
825
+ },
826
+ },
827
+ ]);