-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ ac27441 🚀
- Loading branch information
0 parents
commit 306f581
Showing
649 changed files
with
28,304 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
"use strict";(self.webpackChunk_ant_design_pro_editor=self.webpackChunk_ant_design_pro_editor||[]).push([[1036],{91036:function(pe,R,t){t.d(R,{y$:function(){return Ie}});var $=t(77117),O=t.n($),W=t(58909),Z=t(84875),_=t.n(Z),y=t(50959),v=t(41346),M=t(28152),E=t.n(M),H=t(8221),U=t(60766),L=t(90943),P=t.n(L),f=t(18840),p=t.n(f),h=t(38711),F=t(30520),V,Q,ue=(0,h.kc)(function(d,e){var o=d.css,s=d.cx,l=e.prefixCls,r=e.theme,a="".concat(l),n=(0,F.p)(r==="dark"),c=n.colorFillTertiary,m=n.colorText;return{copy:s("".concat(a,"-copy"),o(V||(V=p()([` | ||
position: absolute; | ||
top: 16px; | ||
right: 16px; | ||
display: flex; | ||
flex-direction: column; | ||
width: 16px; | ||
height: 16px; | ||
padding: 0; | ||
overflow: hidden; | ||
border: 0; | ||
outline: none; | ||
cursor: pointer; | ||
opacity: 0.6; | ||
transition: opacity 0.2s; | ||
background-color: `,`; | ||
&:hover { | ||
opacity: 0.8; | ||
} | ||
`])),c)),copyIcon:s("".concat(a,"-copy-icon"),o(Q||(Q=p()([` | ||
width: 16px; | ||
color: `,`; | ||
height: 16px; | ||
font-size: 16px; | ||
@keyframes copy-button-trans { | ||
0% { | ||
margin-top: 0; | ||
opacity: 0.8; | ||
} | ||
10% { | ||
margin-top: -16px; | ||
opacity: 0.8; | ||
} | ||
90% { | ||
margin-top: -16px; | ||
opacity: 0.8; | ||
} | ||
100% { | ||
margin-top: 0; | ||
opacity: 0.8; | ||
} | ||
} | ||
&.scoll { | ||
animation: copy-button-trans 2s; | ||
animation-play-state: running; | ||
} | ||
`])),m))}}),i=t(11527),me=function(e){var o=e.content,s=e.onCopy,l=e.theme,r=l===void 0?"light":l,a=e.prefixCls,n=e.style,c=(0,y.useState)(),m=E()(c,2),u=m[0],g=m[1],x=ue({prefixCls:a,theme:r}),b=x.styles;(0,y.useEffect)(function(){return function(){window.clearTimeout(u)}});var C=(0,y.useState)(!1),N=E()(C,2),j=N[0],T=N[1];return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(P(),{text:o&&o.length?o:"",onCopy:function(){T(!0);var S=window.setTimeout(function(){T(!1)},2e3);g(S),s&&s(o)},children:(0,i.jsxs)("button",{type:"button",disabled:j,className:b.copy,style:n,children:[(0,i.jsx)(H.Z,{className:_()(b.copyIcon,{scoll:j})}),(0,i.jsx)(U.Z,{className:b.copyIcon,style:{color:"rgb(63,177,99)"}})]})})})},he=me,ge=t(40741),xe=t(28566),ye=t(22305),I=t.n(ye),k,G,J,ve=(0,h.kc)(function(d,e){var o=d.cx,s=d.css,l=d.token,r=e.prefixCls,a=e.theme,n="".concat(r),c=(0,F.p)(a==="dark"),m=c.colorFillTertiary,u=c.colorText,g=c.colorTextSecondary,x=I()(m).mix(I()(a==="dark"?"white":"black"),.03).alpha(.9).hsl().string();return{small:o("".concat(n,"-tag-small"),s(k||(k=p()([` | ||
padding: 2px 6px; | ||
line-height: 1; | ||
`])))),lang:o(s(G||(G=p()([` | ||
position: absolute; | ||
z-index: 2; | ||
right: 0; | ||
bottom: 8px; | ||
background-color: `,`; | ||
font-family: `,`; | ||
color: `,`; | ||
transition: opacity 0.1s; | ||
`])),x,l.fontFamilyCode,g)),tag:o("".concat(n,"-tag"),s(J||(J=p()([` | ||
color: `,` !important; | ||
border-radius: `,`px; | ||
P &:hover { | ||
color: `,`; | ||
background: `,`; | ||
} | ||
`])),u,l.borderRadius,u,l.colorFill))}}),fe=function(e){var o=e||{},s=o.children,l=o.size,r=l===void 0?"default":l,a=o.theme,n=a===void 0?"light":a,c=o.prefixCls,m=ve({theme:n,prefixCls:c}),u=m.styles,g=m.cx;return(0,i.jsx)(xe.Z,{bordered:!1,className:g(u.tag,u.lang,r==="small"&&u.small),children:s})},be=fe,Ce=t(27566),X=t.n(Ce),je=function(e,o){var s=(0,y.useRef)();function l(r,a){return Object.keys(r).forEach(function(n){X()(r[n])==="object"&&r[n].handle?a.addEventListener(n,r[n].handle,r[n].options):a.addEventListener(n,r[n])}),function(){Object.keys(r).forEach(function(n){X()(r[n])==="object"&&r[n].handle?a.removeEventListener(n,r[n].handle,r[n].options):a.removeEventListener(n,r[n])})}}return(0,y.useEffect)(function(){if(e.current)return l({keydown:function(a){var n=window.getSelection();if((a.ctrlKey||a.metaKey)&&a.code==="KeyA"&&s.current&&e.current){var c=document.createRange();c.selectNodeContents(e.current),n.removeAllRanges(),n.addRange(c),a.preventDefault()}(a.ctrlKey||a.metaKey)&&a.code==="KeyC"&&s.current&&e.current&&o&&n&&o(n.toString())},focus:function(){s.current=!0},blur:function(){s.current=!1}},e.current)},[e.current,e]),null},Y,q,ee,ne,te,oe,re,ae,le,se,ie,w=(0,h.kc)(function(d,e){var o=d.css,s=d.cx,l=d.token,r=e.prefixCls,a=e.theme,n=e.type,c="".concat(r),m=(0,F.p)(a==="dark"),u=m.colorFillTertiary,g=m.colorText,x=m.colorTextSecondary,b=o(Y||(Y=p()([` | ||
background-color: `,`; | ||
border: 1px solid `,`; | ||
`])),n==="block"?u:"transparent",n==="block"?"transparent":l.colorBorder),C=o(q||(q=p()([` | ||
background-color: `,`; | ||
`])),n==="block"?I()(u).alpha(.9).hsl().string():"transparent");return{wrapper:s("".concat(c,"-wrapper"),C,o(ee||(ee=p()([` | ||
border-radius: `,`px; | ||
.`,`-copy { | ||
background-color: transparent; | ||
position: inherit; | ||
width: 30px; | ||
padding-left: 6px; | ||
} | ||
`])),l.borderRadius,c)),expland:o(ne||(ne=p()([` | ||
color: `,`; | ||
`])),I()(g).alpha(.8).hsl().string()),copy:o(te||(te=p()([` | ||
color: `,`; | ||
`])),I()(g).alpha(.6).hsl().string()),header:s("".concat(c,"-header"),o(oe||(oe=p()([` | ||
background-color: `,`; | ||
padding: 4px 8px; | ||
border-radius: `,`px; | ||
width: auto !important; // override self width | ||
`])),n==="block"?l.colorFillTertiary:"transparent",l.borderRadius),o(re||(re=p()([` | ||
.`,`-btn { | ||
&:hover { | ||
color: `,` !important; | ||
} | ||
} | ||
`])),v.xb,x)),container:s("".concat(c,"-container"),b,o(ae||(ae=p()([` | ||
position: relative; | ||
overflow: auto; | ||
margin: 0; | ||
border-radius: `,`px; | ||
transition: background-color 100ms `,`; | ||
:not(:hover) { | ||
.`,`-copy { | ||
visibility: hidden; | ||
opacity: 0; | ||
} | ||
.`,`-tag { | ||
visibility: hidden; | ||
opacity: 0; | ||
} | ||
} | ||
pre { | ||
margin: 0 !important; | ||
padding: `,` !important; | ||
background: none !important; | ||
} | ||
code { | ||
background: transparent !important; | ||
} | ||
`])),l.borderRadius,l.motionEaseOut,c,c,n==="pure"?0:"16px 24px")),trigger:o(le||(le=p()([` | ||
min-width: 100px; | ||
display: flex; | ||
justify-content: center; | ||
span { | ||
font-family: `,` !important; | ||
} | ||
`])),l.fontFamilyCode),lang:s(o(se||(se=p()([` | ||
position: absolute; | ||
z-index: 2; | ||
right: 0; | ||
bottom: 8px; | ||
font-family: `,`; | ||
color: `,`; | ||
// opacity: 0; | ||
transition: opacity 0.1s; | ||
`])),l.fontFamilyCode,l.colorTextSecondary)),select:o(ie||(ie=p()([` | ||
min-width: 100px; | ||
.`,`-btn { | ||
color: `,`; | ||
} | ||
.`,`-select-selector { | ||
padding-inline-end: 4px !important; | ||
} | ||
.`,`-select-selection-overflow-item-suffix { | ||
.`,`-select-selection-search { | ||
display: none; | ||
} | ||
} | ||
`])),v.xb,g,v.xb,v.xb,v.xb)}}),ce=t(98153),de=function(e){var o=e.children,s=e.style,l=e.className,r=e.lineNumber,a=r===void 0?!1:r,n=e.copyable,c=n===void 0?!0:n,m=e.theme,u=m===void 0?ce.q:m,g=e.language,x=g===void 0?"tsx":g,b=e.prefixCls,C=e.showLanguage,N=C===void 0?!0:C,j=e.type,T=j===void 0?"block":j,K=e.onCopy,S=(0,v.k2)("highlight",b),z=w({prefixCls:S,theme:u,type:T}),D=z.styles,A=(0,y.createRef)();return je(A,K),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{ref:A,tabIndex:-1,style:s,className:_()(D.container,l),children:[c&&(0,i.jsx)(he,{prefixCls:S,onCopy:K,theme:u,content:o}),N&&x&&(0,i.jsx)(be,{prefixCls:S,theme:u,children:x.toLowerCase()}),(0,i.jsx)(ge.Z,{lineNumber:a,language:x,theme:u,prefixCls:S,children:o})]})})},Te=t(24974),Se=t(82669),Oe=t(91569),Ee=t(67276),Le=t(18385),Pe=t(47100),Fe=t(24819),Ne=t(22012),De=Object.keys(Ne.Q).map(function(d){return{label:d,value:d.toLowerCase()}}),Be=(0,y.memo)(function(d){var e=d||{},o=e.children,s=e.language,l=s===void 0?"markdown":s,r=e.className,a=e.style,n=e.prefixCls,c=e.theme,m=c===void 0?ce.q:c,u=e.copyable,g=u===void 0?!0:u,x=e.type,b=x===void 0?"block":x,C=(0,v.k2)("highlight",n),N=(0,y.useState)(!0),j=E()(N,2),T=j[0],K=j[1],S=(0,y.useState)(l),z=E()(S,2),D=z[0],A=z[1],Ke=w({prefixCls:C,theme:m,type:b}),B=Ke.styles;return(0,i.jsxs)("div",{className:_()(B.wrapper,r),style:a,children:[(0,i.jsxs)(Fe.D,{align:"center",className:B.header,horizontal:!0,justify:"space-between",children:[(0,i.jsx)(Ee.Z,{className:B.expland,icon:T?(0,i.jsx)(Se.Z,{size:14}):(0,i.jsx)(Oe.Z,{size:14}),onClick:function(){return K(!T)},size:24}),(0,i.jsx)(Le.P,{bordered:!1,className:B.select,onSelect:A,mode:"tags",options:De,tagRender:function(ze){return(0,i.jsx)("div",{className:B.trigger,children:(0,i.jsx)(Pe.ZP,{type:"text",size:"small",children:ze.label})})},showSearch:!0,size:"small",suffixIcon:!1,value:D.toLowerCase()}),g&&(0,i.jsx)(Te.Z,{className:B.copy,content:o})]}),(0,i.jsx)(de,O()(O()({},d),{},{language:D==null?void 0:D.toLowerCase(),style:T?{}:{height:0,overflow:"hidden",border:"none"},copyable:!1,showLanguage:!1}))]})}),_e=Be,Ie=function(e){var o=e.prefixCls,s=e.type,l=e.theme,r=e.containerWrapper,a=w({prefixCls:o,type:s,theme:l}),n=a.theme;return(0,i.jsx)(W.iV,{componentToken:{Select:{colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill},Button:{colorText:n.colorTextTertiary,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill}},children:r?(0,i.jsx)(_e,O()({},e)):(0,i.jsx)(de,O()({},e))})}},18385:function(pe,R,t){t.d(R,{P:function(){return U}});var $=t(77117),O=t.n($),W=t(18840),Z=t.n(W),_=t(32413),y=t(38711),v=t(58909),M=t(11527),E,H=(0,y.kc)(function(L){var P=L.css,f=L.stylish,p=L.prefixCls,h="".concat(p,"-select"),F=":not(.".concat(h,"-disabled):not(.").concat(h,"-customize-input)");return P(E||(E=Z()([` | ||
&.`,` { | ||
&-multiple:not(&-customize-input) &.`,`-selector { | ||
`,`; | ||
} | ||
&`,` { | ||
&:hover { | ||
.`,`-selector { | ||
border-color: transparent; | ||
`,`; | ||
} | ||
} | ||
} | ||
&-focused`,` { | ||
&:hover { | ||
.`,`-selector { | ||
`,`; | ||
} | ||
} | ||
.`,`-selector { | ||
`,`; | ||
} | ||
} | ||
} | ||
.`,` { | ||
&-arrow { | ||
top: 13px; | ||
right: 8px; | ||
width: 10px; | ||
height: 10px; | ||
font-size: 10px; | ||
} | ||
} | ||
`])),h,h,f.controlContainer,F,h,f.controlContainer,F,h,f.controlContainerFocused,h,f.controlContainerFocused,h)}),U=function(P){var f=H(),p=f.styles,h=f.cx;return(0,M.jsx)(v.iV,{children:(0,M.jsx)(_.Z,O()(O()({},P),{},{className:h(p,P.className)}))})}}}]); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.