@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 26.9 kB
JavaScript
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var x=(e,t)=>i({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.fillMode}-${t.themeColor}`]:t.fillMode&&t.themeColor},{[`${e}-${t.themeColor}`]:t.themeColor&&t.fillMode===void 0},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full"}),I=(e,t)=>i({"k-valid":t.valid,"k-invalid":t.invalid,"k-hover":t.hover,"k-focus":t.focus,"k-checked":t.checked,"k-active":t.active,"k-selected":t.selected,"k-disabled":t.disabled,"k-indeterminate":t.indeterminate&&!t.checked,"k-loading":t.loading,"k-empty":t.empty,"k-readonly":t.readonly,"k-highlighted":t.highlighted});var a={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},d={small:"small",medium:"medium",large:"large",full:"full"},u={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},r={inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inverse:"inverse"},n={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted"};import{jsx as mt}from"react/jsx-runtime";var Se="k-checkbox",co=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],po={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full]},Ve={size:a.medium,rounded:d.medium},O=e=>{let{id:t,checked:o,indeterminate:s,hover:l,focus:c,disabled:p,invalid:m,valid:h,required:b,size:S=Ve.size,rounded:C=Ve.rounded,...w}=e;return mt("span",{className:"k-checkbox-wrap",children:mt("input",{...w,id:t,type:"checkbox",defaultChecked:o,required:b,className:i(e.className,Se,x(Se,{size:S,rounded:C}),I(Se,{hover:l,focus:c,disabled:p,invalid:m,valid:h,indeterminate:s,checked:o}))})})};O.states=co;O.options=po;O.className=Se;O.defaultOptions=Ve;import{jsx as fo}from"react/jsx-runtime";var ut="k-checkbox-list",mo=[],uo={},ft={layout:"vertical"},Q=e=>{let{layout:t=ft.layout,...o}=e;return fo("ul",{...o,className:i(e.className,ut,{[`k-list-${t}`]:t}),children:e.children})};Q.states=mo;Q.options=uo;Q.className=ut;Q.defaultOptions=ft;import{jsx as bo}from"react/jsx-runtime";var ht="k-checkbox-list-item",ho=[],xo={},vo={},Y=e=>{let{...t}=e;return bo("li",{...t,className:i(e.className,ht),children:e.children})};Y.states=ho;Y.options=xo;Y.className=ht;Y.defaultOptions=vo;import{Fragment as Ti,jsx as ki,jsxs as Ii}from"react/jsx-runtime";import{Fragment as Ei,jsx as Mi,jsxs as Li}from"react/jsx-runtime";import{Fragment as Hi,jsx as Ki,jsxs as Pi}from"react/jsx-runtime";import{Fragment as _i,jsx as $i,jsxs as Fi}from"react/jsx-runtime";import{jsx as Di}from"react/jsx-runtime";import{jsx as Yi}from"react/jsx-runtime";import{jsx as ye}from"react/jsx-runtime";import{createElement as xt}from"react";var _e="k-treeview",No=[],So={size:[a.small,a.medium,a.large]},vt={size:a.medium},M=e=>{let{size:t=vt.size,children:o,dir:s,...l}=e,c=[];return o&&(Array.isArray(o)?o.map((p,m)=>{p.type===f&&c.push(xt(f,{...p.props,dir:s,key:m})),p.type===y&&c.push(xt(y,{...p.props,dir:s,key:m}))}):(o.type===f&&c.push(ye(f,{...o.props,dir:s})),o.type===y&&c.push(ye(y,{...o.props,dir:s})))),ye("div",{...l,dir:s,className:i(e.className,_e,x(_e,{size:t})),children:ye(y,{className:"k-treeview-lines",dir:s,children:c})})};M.states=No;M.options=So;M.className=_e;M.defaultOptions=vt;import{Fragment as To,jsx as bt}from"react/jsx-runtime";var Fe="k-icon k-font-icon",yo=[],Co={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[r.base,r.primary,r.secondary,r.tertiary,r.success,r.warning,r.error,r.info,r.light,r.dark]},ko={},le=e=>{let{size:t,themeColor:o,icon:s,rotate:l,flip:c,...p}=e;return s?bt("span",{...p,className:i(e.className,Fe,x(Fe,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${l}`]:l,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"})}):bt(To,{})};le.states=yo;le.options=Co;le.className=Fe;le.defaultOptions=ko;var Nt=le;import{Fragment as go,jsx as Ce}from"react/jsx-runtime";var Xe="k-icon k-svg-icon",Io=[],wo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[r.base,r.primary,r.secondary,r.tertiary,r.success,r.warning,r.error,r.info,r.light,r.dark]},St={viewBox:"0 0 24 24"},ce=e=>{let{size:t,themeColor:o,rotate:s,flip:l,viewBox:c=St.viewBox,icon:p,...m}=e;if(!p)return Ce(go,{});p==="none"&&{...m,className:i(e.className,Xe,"k-none")};let h=typeof p=="object"&&p.name&&p.name;return Ce("span",{...m,className:i(e.className,Xe,x("k-icon",{size:t}),{[`k-svg-i-${h}`]:h,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),children:Ce("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:c,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};ce.states=Io;ce.options=wo;ce.className=Xe;ce.defaultOptions=St;var Je=ce;import*as yt from"@progress/kendo-svg-icons";import{Fragment as Ct,jsx as pe}from"react/jsx-runtime";var Ao=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Mo=[],Eo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[r.base,r.primary,r.secondary,r.tertiary,r.success,r.warning,r.error,r.info,r.light,r.dark]},qe={viewBox:"0 0 24 24",type:"svg"},N=e=>{let{size:t,themeColor:o,icon:s,type:l=qe.type,rotate:c,flip:p,viewBox:m=qe.viewBox,...h}=e;if(!s)return pe(Ct,{});if(l==="svg"){if(s==="none")return pe(Je,{...h,icon:s,size:t});let b=Ao(`${s}-icon`);return yt[b]?pe(Je,{...h,icon:yt[b],size:t,themeColor:o,rotate:c,flip:p,viewBox:m}):pe(Ct,{})}return pe(Nt,{...h,icon:s,size:t,themeColor:o,rotate:c,flip:p})};N.states=Mo;N.options=Eo;N.defaultOptions=qe;import{jsx as kt}from"react/jsx-runtime";import{createElement as zo}from"react";var Lo="k-treeview-group",y=e=>{let{children:t,dir:o}=e,s=[];return t&&(Array.isArray(t)?t.map((l,c)=>{l.type===de&&s.push(zo(de,{...l.props,dir:o,key:c}))}):t.type===de&&s.push(kt(de,{...t.props,dir:o}))),kt("ul",{className:i(e.className,Lo),children:s})};import{jsx as Tt,jsxs as Ko}from"react/jsx-runtime";var De="k-treeview-leaf",Oo=[n.hover,n.focus,n.selected],Ro={},ke=e=>{let{text:t,showIcon:o,icon:s,hover:l,focus:c,selected:p,...m}=e;return Ko("span",{...m,className:i(e.className,De,I(De,{hover:l,focus:c,selected:p})),children:[o&&Tt(N,{icon:s}),Tt("span",{className:"k-treeview-leaf-text",children:t})]})};ke.states=Oo;ke.options=Ro;ke.className=De;var It=ke;import{Fragment as Vo,jsx as Z,jsxs as wt}from"react/jsx-runtime";import{createElement as Go}from"react";var gt="k-treeview-item",Ho=[n.hover,n.focus,n.selected,n.disabled],Po={},Bo={},f=e=>{let{leafClassName:t,children:o,hasChildren:s,expanded:l,text:c,showIcon:p,icon:m,showCheckbox:h,checked:b,hover:S,focus:C,selected:w,disabled:T,top:A,bottom:g,dir:E,...L}=e,K=s||o,H=[];return o&&(Array.isArray(o)?o.map((X,Ge)=>{X.type===y&&H.push(Go(y,{...X.props,dir:E,key:Ge},X.props.children))}):o.type===y&&H.push(Z(y,{...o.props,dir:E,children:o.props.children}))),wt("li",{...L,className:i(e.className,gt),children:[wt("span",{className:i({"k-treeview-top":A,"k-treeview-bot":g,"k-treeview-mid":!A&&!g}),children:[K&&Z("span",{className:i("k-treeview-toggle",I("k-treeview-toggle",{disabled:T})),children:Z(N,{icon:l?"caret-alt-down":E==="rtl"?"caret-alt-left":"caret-alt-right"})}),h&&Z(O,{checked:b,disabled:T}),Z(It,{className:i(t,I(t,{disabled:T})),text:c,showIcon:p,icon:m,hover:S,focus:C,selected:w})]}),l&&K&&Z(Vo,{children:H})]})};f.states=Ho;f.options=Po;f.className=gt;f.defaultOptions=Bo;var de=f;import{jsx as Us}from"react/jsx-runtime";import{jsx as Zs,jsxs as js}from"react/jsx-runtime";import{jsx as na,jsxs as ia}from"react/jsx-runtime";import{jsx as la,jsxs as ca}from"react/jsx-runtime";import{jsx as ua,jsxs as fa}from"react/jsx-runtime";import{jsx as Fo}from"react/jsx-runtime";var Te="k-input",$o=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],_o={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline]},Ie={size:a.medium,rounded:a.medium,fillMode:u.solid},k=e=>{let{hover:t,focus:o,disabled:s,invalid:l,valid:c,loading:p,readonly:m,size:h=Ie.size,rounded:b=Ie.rounded,fillMode:S=Ie.fillMode,...C}=e;return Fo("span",{...C,className:i(e.className,Te,x(Te,{size:h,rounded:b,fillMode:S}),I(Te,{hover:t,focus:o,disabled:s,invalid:l,valid:c,loading:p,readonly:m}))})};k.states=$o;k.options=_o;k.className=Te;k.defaultOptions=Ie;import{jsx as qo}from"react/jsx-runtime";var we="k-picker",Xo=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Jo={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline]},ge={size:a.medium,rounded:d.medium,fillMode:u.solid},Ae=e=>{let{hover:t,focus:o,disabled:s,invalid:l,valid:c,loading:p,readonly:m,size:h=ge.size,rounded:b=ge.rounded,fillMode:S=ge.fillMode,...C}=e;return qo("span",{...C,className:i(e.className,we,x(we,{size:h,rounded:b,fillMode:S}),I(we,{hover:t,focus:o,disabled:s,invalid:l,valid:c,loading:p,readonly:m})),children:e.children})};Ae.states=Xo;Ae.options=Jo;Ae.className=we;Ae.defaultOptions=ge;import{Fragment as Wo,jsx as Ue}from"react/jsx-runtime";var At="k-clear-value",Do=[n.disabled,n.loading,n.readonly],Uo={},P=e=>{let{disabled:t,loading:o,readonly:s,value:l}=e;return t||s||o||!l?Ue(Wo,{}):Ue("span",{className:i(e.className,At),children:Ue(N,{icon:"x"})})};P.states=Do;P.options=Uo;P.className=At;import{jsx as Zo}from"react/jsx-runtime";var We="k-input-inner",Qo=[],Yo={},Me={type:"text",autocomplete:"off",value:"",placeholder:""},J=e=>{let{value:t=Me.value,type:o=Me.type,placeholder:s=Me.placeholder,autocomplete:l=Me.autocomplete,...c}=e;return Zo("input",{...c,type:o,className:i(e.className,We,x(We,e)),placeholder:s,autoComplete:l,defaultValue:t})};J.states=Qo;J.options=Yo;J.className=We;import{jsx as Mt,jsxs as tn}from"react/jsx-runtime";var Qe="k-input-inner",jo=[],en={},Ye=e=>{let{value:t,placeholder:o,showValue:s,valueIcon:l,valueIconName:c,...p}=e;return tn("span",{...p,className:i(e.className,Qe,x(Qe,e)),children:[l,!l&&c&&Mt(N,{className:"k-input-value-icon",icon:c}),s&&!t&&o,s&&t&&Mt("span",{className:"k-input-value-text",children:t})]})};Ye.states=jo;Ye.options=en;Ye.className=Qe;import{jsx as sn}from"react/jsx-runtime";var Ze="k-input-inner",on=[],nn={},Et={value:"",placeholder:""},je=e=>{let{value:t=Et.value,placeholder:o=Et.placeholder,rows:s,...l}=e;return sn("textarea",{...l,className:i(e.className,Ze,x(Ze,e)),placeholder:o,rows:s,defaultValue:t})};je.states=on;je.options=nn;je.className=Ze;import{Fragment as rn,jsx as Lt}from"react/jsx-runtime";var zt="k-input-loading-icon",an=[n.disabled,n.loading],G=e=>{let{disabled:t,loading:o}=e;return t||!o?Lt(rn,{}):Lt("span",{className:i(e.className,zt,"k-icon k-i-loading")})};G.states=an;G.className=zt;import{Fragment as pn,jsx as Ot}from"react/jsx-runtime";var Rt="k-input-validation-icon",ln=[n.valid,n.invalid,n.disabled,n.loading],cn={},B=e=>{let{valid:t,invalid:o,disabled:s,loading:l}=e,c=o?"warning-circle":"check-circle";return s||l||!!!(t||o)?Ot(pn,{}):Ot(N,{className:i(Rt),icon:c})};B.states=ln;B.options=cn;B.className=Rt;import{Fragment as un,jsx as Kt}from"react/jsx-runtime";var dn="k-input-prefix",mn={direction:"horizontal"},Ee=e=>{let{direction:t=mn.direction,...o}=e;return e.children?Kt("span",{...o,className:i(dn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Kt(un,{})};import{Fragment as xn,jsx as Ht}from"react/jsx-runtime";var fn="k-input-suffix",hn={direction:"horizontal"},Le=e=>{let{direction:t=hn.direction,...o}=e;return e.children?Ht("span",{...o,className:i(fn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ht(xn,{})};import{jsx as rr}from"react/jsx-runtime";import{jsx as dr}from"react/jsx-runtime";import{jsx as bn}from"react/jsx-runtime";var Pt="k-input-separator",vn={direction:"vertical"},et=e=>{let{direction:t=vn.direction,...o}=e;return bn("span",{...o,className:i(Pt,e.className,{[`${Pt}-${t}`]:t})})};import{Fragment as yn,jsx as me,jsxs as Bt}from"react/jsx-runtime";var ze="k-button",Nn=[n.hover,n.focus,n.active,n.selected,n.disabled],Sn={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[r.base,r.primary,r.secondary,r.tertiary,r.success,r.warning,r.error,r.info,r.light,r.dark,r.inverse]},q={size:a.medium,rounded:d.medium,fillMode:u.solid,themeColor:r.base,showArrow:!1,arrowIconName:"caret-alt-down"},R=e=>{let{size:t=q.size,rounded:o=q.rounded,fillMode:s=q.fillMode,themeColor:l=q.themeColor,showArrow:c=q.showArrow,arrowIconName:p=q.arrowIconName,hover:m,focus:h,active:b,selected:S,disabled:C,icon:w,text:T,iconClassName:A,...g}=e,E=w!==void 0,L=e.children!==void 0;return Bt("button",{...g,className:i(e.className,ze,x(ze,{size:t,rounded:o,fillMode:s,themeColor:l}),I(ze,{hover:m,focus:h,active:b,disabled:C,selected:S}),{"k-icon-button":!T&&!L&&E}),children:[w&&me(N,{className:i(A,"k-button-icon"),icon:w}),T?Bt(yn,{children:[T&&me("span",{className:"k-button-text",children:T}),e.children]}):e.children&&me("span",{className:"k-button-text",children:e.children}),c&&me("span",{className:"k-menu-button-arrow k-button-arrow",children:me(N,{icon:p})})]})};R.states=Nn;R.options=Sn;R.className=ze;R.defaultOptions=q;import{jsx as Hr}from"react/jsx-runtime";import{jsx as Vr}from"react/jsx-runtime";import{jsx as Xr}from"react/jsx-runtime";import{jsx as el}from"react/jsx-runtime";import{jsx as Gt}from"react/jsx-runtime";var ue="k-avatar";var Cn=[n.hover,n.focus,n.active,n.selected,n.disabled],kn={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline],themeColor:[r.base,r.primary,r.secondary,r.tertiary,r.success,r.warning,r.error,r.info,r.light,r.dark,r.inverse]},D={type:"text",size:a.medium,rounded:d.full,fillMode:u.solid,themeColor:r.primary,border:!1},j=e=>{let{size:t=D.size,rounded:o=D.rounded,fillMode:s=D.fillMode,themeColor:l=D.themeColor,type:c=D.type,border:p=D.border,...m}=e;return Gt("div",{...m,className:i(e.className,ue,x(ue,{size:t,rounded:o,fillMode:s,themeColor:l}),{[`${ue}-bordered`]:p}),children:Gt("span",{className:`${ue}-${c}`,children:e.children})})};j.states=Cn;j.options=kn;j.className=ue;j.defaultOptions=D;import{jsx as rl}from"react/jsx-runtime";import{jsx as dl}from"react/jsx-runtime";import{jsx as hl}from"react/jsx-runtime";import{jsx as ee,jsxs as wn}from"react/jsx-runtime";var Oe="k-chip",Tn=[n.hover,n.focus,n.active,n.selected,n.disabled],In={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.outline],themeColor:[r.base,r.success,r.warning,r.error,r.info]},te={size:a.medium,rounded:d.medium,fillMode:u.solid,themeColor:r.base,avatarImage:"/packages/html/assets/avatar.jpg"},Re=e=>{let{size:t=te.size,rounded:o=te.rounded,fillMode:s=te.fillMode,themeColor:l=te.themeColor,text:c,icon:p,actions:m,showAvatar:h,avatarImage:b=te.avatarImage,hover:S,focus:C,active:w,selected:T,disabled:A,...g}=e;return wn("div",{...g,className:i(e.className,Oe,x(Oe,{size:t,rounded:o,fillMode:s,themeColor:l}),I(Oe,{hover:S,focus:C,active:w,disabled:A,selected:T})),children:[p&&ee(N,{className:"k-chip-icon",icon:p,size:"small"}),h&&ee(j,{className:"k-chip-avatar",type:"image",children:ee("img",{src:b})}),ee("span",{className:"k-chip-content",children:e.children?e.children:c&&ee("span",{className:"k-chip-label",children:c})}),m&&ee("span",{className:"k-chip-actions",children:m})]})};Re.states=Tn;Re.options=In;Re.className=Oe;Re.defaultOptions=te;import{jsx as Mn}from"react/jsx-runtime";var tt="k-chip-list",gn=[],An={size:[a.small,a.medium,a.large]},$t={size:a.medium},oe=e=>{let{size:t=$t.size,...o}=e;return Mn("div",{...o,className:i(e.className,tt,x(tt,{size:t})),children:e.children})};oe.states=gn;oe.options=An;oe.className=tt;oe.defaultOptions=$t;import{jsx as zl}from"react/jsx-runtime";import{jsx as Hl}from"react/jsx-runtime";import{jsx as Vl}from"react/jsx-runtime";import{jsx as Jl}from"react/jsx-runtime";import{Fragment as Yl,jsx as Ql,jsxs as Zl}from"react/jsx-runtime";import{jsx as _t}from"react/jsx-runtime";var Ft="k-animation-container",Ln=[],zn={},Xt={positionMode:"absolute"},V=e=>{let{positionMode:t=Xt.positionMode,animationStyle:o,offset:s,...l}=e;return _t("div",{...l,style:{...s,...e.style},className:i(e.className,Ft,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:_t("div",{className:"k-child-animation-container",style:o,children:e.children})})};V.states=Ln;V.options=zn;V.className=Ft;V.defaultOptions=Xt;import{jsx as Jt}from"react/jsx-runtime";var qt="k-popup",On=[],Rn={},Dt={positionMode:"absolute"},ne=e=>{let{offset:t,positionMode:o=Dt.positionMode,animationStyle:s,...l}=e;return Jt(V,{positionMode:o,offset:t,animationStyle:s,children:Jt("div",{...l,className:i(e.className,qt),children:e.children})})};ne.states=On;ne.options=Rn;ne.className=qt;ne.defaultOptions=Dt;import{jsx as Pn}from"react/jsx-runtime";var He="k-actions",Kn=[],Hn={},ot={alignment:"start",orientation:"horizontal"},ie=e=>{let{alignment:t=ot.alignment,orientation:o=ot.orientation,...s}=e;return Pn("div",{...s,className:i(He,{[`${He}-${t}`]:t,[`${He}-${o}`]:o},e.className),children:e.children})};ie.states=Kn;ie.options=Hn;ie.className=He;ie.defaultOptions=ot;import{jsx as Gn}from"react/jsx-runtime";var Bn="k-actionsheet-footer",Ut={alignment:"stretched",orientation:"horizontal"},nt=e=>{let{alignment:t=Ut.alignment,orientation:o=Ut.orientation,template:s,as:l=s?"div":ie,...c}=e;return Gn(l,{...c,...!s&&{alignment:t,orientation:o},className:i(e.className,Bn),children:e.children})};import{jsx as fe,jsxs as _n}from"react/jsx-runtime";var Wt="k-searchbox",Vn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],$n={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline]},it={showIcon:!0,icon:"search",size:k.defaultOptions.size,rounded:k.defaultOptions.rounded,fillMode:k.defaultOptions.fillMode},se=e=>{let{value:t,placeholder:o,size:s,rounded:l,fillMode:c,hover:p,focus:m,valid:h,invalid:b,required:S,loading:C,disabled:w,showIcon:T=it.showIcon,icon:A=it.icon,...g}=e;return _n(k,{...g,size:s,rounded:l,fillMode:c,hover:p,focus:m,valid:h,invalid:b,required:S,loading:C,disabled:w,className:i(e.className,Wt),children:[T&&fe(N,{className:"k-input-icon",icon:A}),fe(J,{placeholder:o,value:t}),fe(G,{...e}),fe(B,{...e}),fe(P,{...e})]})};se.states=Vn;se.options=$n;se.className=Wt;se.defaultOptions=it;import{jsx as Pc}from"react/jsx-runtime";import{Fragment as Qt,jsx as $,jsxs as st}from"react/jsx-runtime";var Yt="k-textbox",Fn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Xn={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline]},U={showClearButton:!0,showValidationIcon:!0,size:k.defaultOptions.size,rounded:k.defaultOptions.rounded,fillMode:k.defaultOptions.fillMode,separators:!0},ae=e=>{let{size:t=U.size,rounded:o=U.rounded,fillMode:s=U.fillMode,separators:l=U.separators,showClearButton:c=U.showClearButton,showValidationIcon:p=U.showValidationIcon,prefix:m,suffix:h,type:b,value:S,placeholder:C,hover:w,focus:T,valid:A,invalid:g,required:E,loading:L,disabled:K,readonly:H,...X}=e;return st(k,{...X,size:t,rounded:o,fillMode:s,hover:w,focus:T,valid:A,invalid:g,required:E,loading:L,disabled:K,readonly:H,className:i(e.className,Yt),children:[m&&st(Qt,{children:[$(Ee,{children:m}),l&&$(et,{})]}),$(J,{placeholder:C,value:S,type:b}),p&&$(B,{valid:A,invalid:g,loading:L,disabled:K}),$(G,{loading:L,disabled:K}),c&&$(P,{loading:L,disabled:K,readonly:H,value:S}),h&&st(Qt,{children:[l&&$(et,{}),$(Le,{children:h})]})]})};ae.states=Fn;ae.options=Xn;ae.className=Yt;ae.defaultOptions=U;import{jsx as Uc}from"react/jsx-runtime";import{Fragment as ep,jsx as jc}from"react/jsx-runtime";import{Fragment as rp,jsx as ap}from"react/jsx-runtime";import{jsx as _,jsxs as at}from"react/jsx-runtime";var jt="k-actionsheet-titlebar",Jn={},F=e=>{let{title:t,subtitle:o,actionsStart:s,actionsEnd:l,filter:c,input:p,inputValue:m,inputPlaceholder:h,adaptive:b,children:S,...C}=e;return at("div",{...C,className:i(e.className,jt),children:[at("div",{className:"k-actionsheet-titlebar-group",children:[s&&_("div",{className:"k-actionsheet-actions",children:s}),!S&&at("div",{className:"k-actionsheet-title",children:[t&&_("div",{className:"k-text-center",children:t}),o&&_("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),S&&_("div",{className:"k-actionsheet-title",children:S}),l&&_("div",{className:"k-actionsheet-actions",children:l})]}),(p||c)&&_("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?_(ae,{value:m,placeholder:h,size:b?"large":"medium"}):_(se,{placeholder:"Filter",size:b?"large":"medium"})})]})};F.className=jt;F.defaultOptions=Jn;import{jsx as rt,jsxs as Wn}from"react/jsx-runtime";var lt="k-actionsheet-view",qn=[],Dn={},Un={},re=e=>{let{adaptive:t,animated:o,children:s,header:l,footer:c,...p}=e,m=l?.type===F&&rt(F,{adaptive:t,...l?.props}),h=c?.type===nt&&rt(nt,{...c?.props});return Wn("div",{...p,className:i(e.className,lt,{[`${lt}-animated`]:o}),children:[m,rt("div",{className:"k-actionsheet-content",children:s}),h]})};re.states=qn;re.options=Dn;re.className=lt;re.defaultOptions=Un;import{jsx as Pe,jsxs as Zn}from"react/jsx-runtime";var eo="k-actionsheet",Qn=[],Yn={},he={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},W=e=>{let{side:t=he.side,fullscreen:o=he.fullscreen,adaptive:s=he.adaptive,overlay:l=he.overlay,template:c,children:p,header:m,footer:h,...b}=e;return Zn("div",{className:"k-actionsheet-container",children:[l&&Pe("div",{className:"k-overlay"}),Pe(V,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Pe("div",{...b,className:i(e.className,eo,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":s}),children:c||Pe(re,{header:m,footer:h,adaptive:s,...e,children:p})})})]})};W.states=Qn;W.options=Yn;W.className=eo;W.defaultOptions=he;import{jsx as Lp}from"react/jsx-runtime";import{Fragment as ei,jsx as xe,jsxs as ct}from"react/jsx-runtime";var pt="k-actionsheet-item",jn=[n.hover,n.focus,n.selected,n.disabled],dt=e=>{let{iconName:t,text:o,description:s,hover:l,focus:c,selected:p,disabled:m,...h}=e;return ct("span",{...h,className:i(e.className,pt,I(pt,{hover:l,focus:c,selected:p,disabled:m})),children:[!e.children&&xe(ei,{children:ct("span",{className:"k-actionsheet-action",children:[t&&xe("span",{className:"k-icon-wrap",children:xe(N,{className:"k-actionsheet-item-icon",icon:t})}),ct("span",{className:"k-actionsheet-item-text",children:[o&&xe("span",{className:"k-actionsheet-item-title",children:o}),s&&xe("span",{className:"k-actionsheet-item-description",children:s})]})]})}),e.children]})};dt.states=jn;dt.className=pt;import{jsx as Vp,jsxs as $p}from"react/jsx-runtime";import{jsx as Jp}from"react/jsx-runtime";import{jsx as Wp}from"react/jsx-runtime";import{jsx as jp}from"react/jsx-runtime";import{Fragment as oo,jsx as v,jsxs as ve}from"react/jsx-runtime";var no="k-multiselecttree",ti=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],oi={size:[a.small,a.medium,a.large],rounded:[d.small,d.medium,d.large,d.full],fillMode:[u.solid,u.flat,u.outline]},Be={size:k.defaultOptions.size,rounded:k.defaultOptions.rounded,fillMode:k.defaultOptions.fillMode},be=e=>{let{size:t=Be.size,rounded:o=Be.rounded,fillMode:s=Be.fillMode,prefix:l,suffix:c,placeholder:p,tags:m,popup:h,showArrowButton:b,hover:S,focus:C,valid:w,invalid:T,required:A,loading:g,disabled:E,readonly:L,opened:K,dir:H,adaptive:X,adaptiveSettings:Ge,adaptiveTitle:so,adaptiveSubtitle:ao,adaptiveFilter:ro,...lo}=e;return ve(oo,{children:[ve(k,{...lo,dir:H,size:t,rounded:o,fillMode:s,hover:S,focus:C,valid:w,invalid:T,required:A,loading:g,disabled:E,readonly:L,className:i(e.className,no),children:[v(Ee,{children:l}),v(oe,{size:t,className:"k-input-values",children:v(oo,{children:m})}),v("span",{className:"k-input-inner",children:!m&&v("span",{className:"k-input-value-text",children:p})}),v(B,{valid:w,invalid:T,loading:g,disabled:E}),v(G,{loading:g,disabled:E}),v(P,{loading:g,disabled:E,readonly:L,value:m?"value":""}),v(Le,{children:c}),b&&v(R,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:s})]}),K&&h&&v(ne,{className:"k-multiselecttree-popup",dir:H,children:h}),X&&v(W,{adaptive:!0,...Ge,header:v(F,{actionsEnd:v(R,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:ro,inputPlaceholder:p,title:so,subtitle:ao}),children:ve(M,{size:"large",children:[v(f,{top:!0,text:"Root 1"}),v(f,{text:"Root 2",expanded:!0,children:ve(y,{children:[v(f,{top:!0,text:"Child 2.1"}),v(f,{text:"Child 2.2",children:v(y,{children:v(f,{bottom:!0,text:"Child 2.2.1"})})}),v(f,{text:"Child 2.3"}),v(f,{bottom:!0,leafClassName:"k-treeview-load-more-button",text:"Load more ..."})]})}),v(f,{bottom:!0,text:"Root 3",children:ve(y,{children:[v(f,{top:!0,text:"Child 3.1"}),v(f,{text:"Child 3.2"}),v(f,{bottom:!0,text:"Child 3.3"})]})})]})})]})};be.states=ti;be.options=oi;be.className=no;be.defaultOptions=Be;var io=be;import{Fragment as ni,jsx as z,jsxs as Ne}from"react/jsx-runtime";var Id=e=>z(io,{opened:!0,popup:Ne(ni,{children:[Ne("div",{className:"k-check-all",children:[z(O,{}),z("span",{className:"k-checkbox-label",children:"Check all"})]}),Ne(M,{dir:e.dir,children:[z(f,{top:!0,text:"Furniture",showCheckbox:!0,children:Ne(y,{children:[z(f,{top:!0,text:"Child 1",showCheckbox:!0}),z(f,{text:"Child 2",showCheckbox:!0}),z(f,{bottom:!0,text:"Child 3",showCheckbox:!0})]})}),z(f,{bottom:!0,text:"Decor",showCheckbox:!0,children:Ne(y,{children:[z(f,{top:!0,text:"Child 1",showCheckbox:!0}),z(f,{text:"Child 2",showCheckbox:!0}),z(f,{bottom:!0,text:"Child 3",showCheckbox:!0})]})})]})]}),...e});export{Id as MultiSelectTreePopup};