@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 2.46 kB
JavaScript
var i=(...o)=>o.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?i(...e):typeof e=="object"?Object.keys(e).map((t,s)=>e[s]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");var x=(o,e)=>i({[`${o}-xs`]:e.size==="xsmall",[`${o}-sm`]:e.size==="small",[`${o}-md`]:e.size==="medium",[`${o}-lg`]:e.size==="large",[`${o}-xl`]:e.size==="xlarge",[`${o}-xxl`]:e.size==="xxlarge",[`${o}-xxxl`]:e.size==="xxxlarge"},{[`${o}-${e.fillMode}`]:e.fillMode},{[`${o}-${e.fillMode}-${e.themeColor}`]:e.fillMode&&e.themeColor},{[`${o}-${e.themeColor}`]:e.themeColor&&e.fillMode===void 0},{"k-rounded-sm":e.rounded==="small","k-rounded-md":e.rounded==="medium","k-rounded-lg":e.rounded==="large","k-rounded-full":e.rounded==="full"});var d={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"};var m={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"};var c="popup",M=c;import{jsx as A}from"react/jsx-runtime";var N="k-animation-container",T=[],_={},O={positionMode:"absolute"},n=o=>{let{positionMode:e=O.positionMode,animationStyle:t,offset:s,...a}=o;return A("div",{...a,style:{...s,...o.style},className:i(o.className,N,"k-animation-container-shown",{"k-animation-container-fixed":e==="fixed"}),children:A("div",{className:"k-child-animation-container",style:t,children:o.children})})};n.states=T;n.options=_;n.className=N;n.defaultOptions=O;n.moduleName=c;n.folderName=M;var u="popup",h=u;import{jsx as g}from"react/jsx-runtime";var P="k-popup",L=[],v={},b={positionMode:"absolute"},l=o=>{let{offset:e,positionMode:t=b.positionMode,animationStyle:s,...a}=o;return g(n,{positionMode:t,offset:e,animationStyle:s,children:g("div",{...a,className:i(o.className,P),children:o.children})})};l.states=L;l.options=v;l.className=P;l.defaultOptions=b;l.moduleName=u;l.folderName=h;var p="toolbar",E=p;import{jsx as k}from"react/jsx-runtime";var y="k-toolbar-popup",R=[],C={size:[d.small,d.medium,d.large],fillMode:[m.solid,m.outline,m.flat]},f={size:d.medium,fillMode:m.solid},r=o=>{let{size:e=f.size,fillMode:t=f.fillMode,section:s,...a}=o;return k(l,{...a,className:i(o.className,y),children:s?k("span",{className:i("k-toolbar-items-list",x("k-toolbar-items-list",{size:e,fillMode:t})),children:o.children}):o.children})};r.states=R;r.options=C;r.className=y;r.defaultOptions=f;r.moduleName=p;r.folderName=E;var se=r;export{y as TOOLBARPOPUP_CLASSNAME,r as ToolbarPopup,se as default};