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