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