UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 28.6 kB
var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,r)=>t[r]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var v=(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"}),k=(e,t)=>{let{valid:o,invalid:r,hover:a,focus:p,checked:c,active:d,selected:h,disabled:x,indeterminate:T,loading:E,empty:L,readonly:S,highlighted:I,...M}=t;return i({"k-valid":o,"k-invalid":r,"k-hover":a,"k-focus":p,"k-checked":c,"k-active":d,"k-selected":h,"k-disabled":x,"k-indeterminate":T&&!c,"k-loading":E,"k-empty":L,"k-readonly":S,"k-highlighted":I},Object.keys(M).reduce((O,y)=>(y.startsWith("k-")?O[y]=M[y]:O[`k-${y}`]=M[y],O),{}))};function gt(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(r=>[`k-${r}`,!0]))}var s={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},m={small:"small",medium:"medium",large:"large",full:"full"},u={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},l={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",generating:"generating",expanded:"expanded"};var ee="checkbox",se=ee;import{jsx as Rt}from"react/jsx-runtime";var Oe="k-checkbox",Fo=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Vo={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full]},Ze={size:s.medium,rounded:m.medium},R=e=>{let{id:t,checked:o,indeterminate:r,hover:a,focus:p,disabled:c,invalid:d,valid:h,required:x,size:T=Ze.size,rounded:E=Ze.rounded,...L}=e;return Rt("span",{className:"k-checkbox-wrap",children:Rt("input",{...L,id:t,type:"checkbox",defaultChecked:o,required:x,className:i(e.className,Oe,v(Oe,{size:T,rounded:E}),k(Oe,{hover:a,focus:p,disabled:c,invalid:d,valid:h,indeterminate:r,checked:o}))})})};R.states=Fo;R.options=Vo;R.className=Oe;R.defaultOptions=Ze;R.moduleName=ee;R.folderName=se;import{jsx as $o}from"react/jsx-runtime";var _t="k-checkbox-list",Xo=[],Go={},Kt={layout:"vertical"},U=e=>{let{layout:t=Kt.layout,...o}=e;return $o("ul",{...o,className:i(e.className,_t,{[`k-list-${t}`]:t}),children:e.children})};U.states=Xo;U.options=Go;U.className=_t;U.defaultOptions=Kt;U.moduleName=ee;U.folderName=se;import{jsx as Qo}from"react/jsx-runtime";var Ht="k-checkbox-list-item",Jo=[],qo={},Wo={},F=e=>{let{...t}=e;return Qo("li",{...t,className:i(e.className,Ht),children:e.children})};F.states=Jo;F.options=qo;F.className=Ht;F.defaultOptions=Wo;F.moduleName=ee;F.folderName=se;import{Fragment as mr,jsx as cr,jsxs as dr}from"react/jsx-runtime";import{Fragment as Nr,jsx as xr,jsxs as vr}from"react/jsx-runtime";import{Fragment as Ar,jsx as Er,jsxs as Mr}from"react/jsx-runtime";import{Fragment as Lr,jsx as kr,jsxs as Or}from"react/jsx-runtime";import{jsx as _r}from"react/jsx-runtime";import{jsx as zr}from"react/jsx-runtime";var fe="treeview",we=fe;import{jsx as ge}from"react/jsx-runtime";import{createElement as Pt}from"react";var et="k-treeview",Yo=[],Zo={size:[s.small,s.medium,s.large]},zt={size:s.medium},w=e=>{let{size:t=zt.size,children:o,dir:r,...a}=e,p=[];return o&&(Array.isArray(o)?o.map((c,d)=>{c.type===f&&p.push(Pt(f,{...c.props,dir:r,key:d})),c.type===C&&p.push(Pt(C,{...c.props,dir:r,key:d}))}):(o.type===f&&p.push(ge(f,{...o.props,dir:r})),o.type===C&&p.push(ge(C,{...o.props,dir:r})))),ge("div",{...a,dir:r,className:i(e.className,et,v(et,{size:t})),children:ge(C,{className:"k-treeview-lines",dir:r,children:p})})};w.states=Yo;w.options=Zo;w.className=et;w.defaultOptions=zt;w.moduleName=fe;w.folderName=we;import{Fragment as on,jsx as Dt}from"react/jsx-runtime";var tt="k-font-icon",jo=[],en={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},tn={},he=e=>{let{size:t,themeColor:o,icon:r,rotate:a,flip:p,...c}=e;return r?Dt("span",{...c,className:i(e.className,tt,v(tt,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):Dt(on,{})};he.states=jo;he.options=en;he.className=tt;he.defaultOptions=tn;var Bt=he;import{Fragment as sn,jsx as Re}from"react/jsx-runtime";var ot="k-svg-icon",nn=[],rn={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},Ut={viewBox:"0 0 24 24"},xe=e=>{let{size:t,themeColor:o,rotate:r,flip:a,viewBox:p=Ut.viewBox,icon:c,...d}=e;if(!c)return Re(sn,{});c==="none"&&{...d,className:i(e.className,ot,"k-none")};let h=typeof c=="object"&&c.name&&c.name;return Re("span",{...d,className:i(e.className,ot,v("k-icon",{size:t}),{[`k-svg-i-${h}`]:h,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),children:Re("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:p,dangerouslySetInnerHTML:typeof c=="object"?{__html:c.content}:void 0,children:c?void 0:e.children})})};xe.states=nn;xe.options=rn;xe.className=ot;xe.defaultOptions=Ut;var nt=xe;import*as it from"@progress/kendo-svg-icons";var Ft="icon",Vt="icons";import{Fragment as Xt,jsx as Ne}from"react/jsx-runtime";var _e="k-icon",an=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ln=[],pn={size:[s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},rt={viewBox:"0 0 24 24",type:"svg"},N=e=>{let{size:t,themeColor:o,icon:r,type:a=rt.type,rotate:p,flip:c,viewBox:d=rt.viewBox,...h}=e;if(!r)return Ne(Xt,{});if(a==="svg"){if(r==="none")return Ne(nt,{...h,className:i(e.className,_e),icon:r,size:t});let x=it[r]?r:an(`${r}-icon`);return it[x]?Ne(nt,{...h,className:i(e.className,_e),icon:it[x],size:t,themeColor:o,rotate:p,flip:c,viewBox:d}):Ne(Xt,{})}return Ne(Bt,{...h,className:i(e.className,_e),icon:r,size:t,themeColor:o,rotate:p,flip:c})};N.states=ln;N.options=pn;N.defaultOptions=rt;N.className=_e;N.moduleName=Ft;N.folderName=Vt;import{jsx as Gt}from"react/jsx-runtime";import{createElement as mn}from"react";var cn="k-treeview-group",C=e=>{let{children:t,dir:o}=e,r=[];return t&&(Array.isArray(t)?t.map((a,p)=>{a.type===ve&&r.push(mn(ve,{...a.props,dir:o,key:p}))}):t.type===ve&&r.push(Gt(ve,{...t.props,dir:o}))),Gt("ul",{className:i(e.className,cn),children:r})};import{jsx as $t,jsxs as fn}from"react/jsx-runtime";var st="k-treeview-leaf",dn=[n.hover,n.focus,n.selected],un={},Ke=e=>{let{text:t,showIcon:o,icon:r,hover:a,focus:p,selected:c,...d}=e;return fn("span",{...d,className:i(e.className,st,k(st,{hover:a,focus:p,selected:c})),children:[o&&$t(N,{icon:r}),$t("span",{className:"k-treeview-leaf-text",children:t})]})};Ke.states=dn;Ke.options=un;Ke.className=st;var Jt=Ke;import{Fragment as bn,jsx as ae,jsxs as qt}from"react/jsx-runtime";import{createElement as vn}from"react";var Wt="k-treeview-item",hn=[n.hover,n.focus,n.selected,n.disabled],xn={},Nn={},f=e=>{let{leafClassName:t,children:o,hasChildren:r,expanded:a,text:p,showIcon:c,icon:d,showCheckbox:h,checked:x,hover:T,focus:E,selected:L,disabled:S,top:I,bottom:M,dir:O,...y}=e,_=r||o,P=[];return o&&(Array.isArray(o)?o.map((j,Ye)=>{j.type===C&&P.push(vn(C,{...j.props,dir:O,key:Ye},j.props.children))}):o.type===C&&P.push(ae(C,{...o.props,dir:O,children:o.props.children}))),qt("li",{...y,className:i(e.className,Wt),children:[qt("span",{className:i({"k-treeview-top":I,"k-treeview-bot":M,"k-treeview-mid":!I&&!M}),children:[_&&ae("span",{className:i("k-treeview-toggle",k("k-treeview-toggle",{disabled:S})),children:ae(N,{icon:a?"caret-alt-down":O==="rtl"?"caret-alt-left":"caret-alt-right"})}),h&&ae(R,{checked:x,disabled:S}),ae(Jt,{className:i(t,k(t,{disabled:S})),text:p,showIcon:c,icon:d,hover:T,focus:E,selected:L})]}),a&&_&&ae(bn,{children:P})]})};f.states=hn;f.options=xn;f.className=Wt;f.defaultOptions=Nn;f.moduleName=fe;f.folderName=we;var ve=f;import{jsx as Bs}from"react/jsx-runtime";import{jsx as Xs,jsxs as Gs}from"react/jsx-runtime";import{jsx as Ws,jsxs as Qs}from"react/jsx-runtime";import{jsx as ea,jsxs as ta}from"react/jsx-runtime";import{jsx as ra,jsxs as sa}from"react/jsx-runtime";var be="input",He=be;import{jsx as En}from"react/jsx-runtime";var Pe="k-input",Tn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Cn={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline]},ze={size:s.medium,rounded:s.medium,fillMode:u.solid},A=e=>{let{hover:t,focus:o,disabled:r,invalid:a,valid:p,loading:c,readonly:d,size:h=ze.size,rounded:x=ze.rounded,fillMode:T=ze.fillMode,...E}=e;return En("span",{...E,className:i(e.className,Pe,v(Pe,{size:h,rounded:x,fillMode:T}),k(Pe,{hover:t,focus:o,disabled:r,invalid:a,valid:p,loading:c,readonly:d}))})};A.states=Tn;A.options=Cn;A.className=Pe;A.defaultOptions=ze;A.moduleName=be;A.folderName=He;import{jsx as Sn}from"react/jsx-runtime";var De="k-picker",An=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Mn={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline]},Be={size:s.medium,rounded:m.medium,fillMode:u.solid},le=e=>{let{hover:t,focus:o,disabled:r,invalid:a,valid:p,loading:c,readonly:d,size:h=Be.size,rounded:x=Be.rounded,fillMode:T=Be.fillMode,...E}=e;return Sn("span",{...E,className:i(e.className,De,v(De,{size:h,rounded:x,fillMode:T}),k(De,{hover:t,focus:o,disabled:r,invalid:a,valid:p,loading:c,readonly:d})),children:e.children})};le.states=An;le.options=Mn;le.className=De;le.defaultOptions=Be;le.moduleName=be;le.folderName=He;import{Fragment as kn,jsx as at}from"react/jsx-runtime";var Qt="k-clear-value",In=[n.disabled,n.loading,n.readonly],yn={},z=e=>{let{disabled:t,loading:o,readonly:r,value:a}=e;return t||r||o||!a?at(kn,{}):at("span",{className:i(e.className,Qt),children:at(N,{icon:"x"})})};z.states=In;z.options=yn;z.className=Qt;import{jsx as wn}from"react/jsx-runtime";var lt="k-input-inner",Ln=[],On={},Ue={type:"text",autocomplete:"off",value:"",placeholder:""},te=e=>{let{value:t=Ue.value,type:o=Ue.type,placeholder:r=Ue.placeholder,autocomplete:a=Ue.autocomplete,...p}=e;return wn("input",{...p,type:o,className:i(e.className,lt,v(lt,e)),placeholder:r,autoComplete:a,defaultValue:t})};te.states=Ln;te.options=On;te.className=lt;import{jsx as Yt,jsxs as _n}from"react/jsx-runtime";var pt="k-input-inner",gn=[],Rn={},ct=e=>{let{value:t,placeholder:o,showValue:r,valueIcon:a,valueIconName:p,...c}=e;return _n("span",{...c,className:i(e.className,pt,v(pt,e)),children:[a,!a&&p&&Yt(N,{className:"k-input-value-icon",icon:p}),r&&!t&&o,r&&t&&Yt("span",{className:"k-input-value-text",children:t})]})};ct.states=gn;ct.options=Rn;ct.className=pt;import{jsx as Pn}from"react/jsx-runtime";var mt="k-input-inner",Kn=[],Hn={},Zt={value:"",placeholder:""},dt=e=>{let{value:t=Zt.value,placeholder:o=Zt.placeholder,rows:r,...a}=e;return Pn("textarea",{...a,className:i(e.className,mt,v(mt,e)),placeholder:o,rows:r,defaultValue:t})};dt.states=Kn;dt.options=Hn;dt.className=mt;import{Fragment as Dn,jsx as jt}from"react/jsx-runtime";var eo="k-input-loading-icon",zn=[n.disabled,n.loading],V=e=>{let{disabled:t,loading:o}=e;return t||!o?jt(Dn,{}):jt("span",{className:i(e.className,eo,"k-icon k-i-loading")})};V.states=zn;V.className=eo;import{Fragment as Fn,jsx as to}from"react/jsx-runtime";var oo="k-input-validation-icon",Bn=[n.valid,n.invalid,n.disabled,n.loading],Un={},D=e=>{let{valid:t,invalid:o,disabled:r,loading:a}=e,p=o?"warning-circle":"check-circle";return r||a||!!!(t||o)?to(Fn,{}):to(N,{className:i(oo),icon:p})};D.states=Bn;D.options=Un;D.className=oo;import{Fragment as Gn,jsx as no}from"react/jsx-runtime";var Vn="k-input-prefix",Xn={direction:"horizontal"},Fe=e=>{let{direction:t=Xn.direction,...o}=e;return e.children?no("span",{...o,className:i(Vn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):no(Gn,{})};import{Fragment as qn,jsx as io}from"react/jsx-runtime";var $n="k-input-suffix",Jn={direction:"horizontal"},Ve=e=>{let{direction:t=Jn.direction,...o}=e;return e.children?io("span",{...o,className:i($n,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):io(qn,{})};import{jsx as ol}from"react/jsx-runtime";import{jsx as sl}from"react/jsx-runtime";import{jsx as Qn}from"react/jsx-runtime";var ro="k-input-separator",Wn={direction:"vertical"},ut=e=>{let{direction:t=Wn.direction,...o}=e;return Qn("span",{...o,className:i(ro,e.className,{[`${ro}-${t}`]:t})})};var ft="button",so=ft;import{Fragment as ei,jsx as Te,jsxs as ao}from"react/jsx-runtime";var Ce="k-button",Yn=["icon-button"],Zn=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],jn={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline,u.clear,u.link],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark,l.inverse]},oe={size:s.medium,rounded:m.medium,fillMode:u.solid,themeColor:l.base,showArrow:!1,arrowIconName:"caret-alt-down"},g=e=>{let{size:t=oe.size,rounded:o=oe.rounded,fillMode:r=oe.fillMode,themeColor:a=oe.themeColor,showArrow:p=oe.showArrow,arrowIconName:c=oe.arrowIconName,variant:d,hover:h,focus:x,active:T,selected:E,disabled:L,icon:S,text:I,iconClassName:M,...O}=e,y=S!==void 0,_=e.children!==void 0;return ao("button",{...O,className:i(e.className,Ce,gt(Ce,d),v(Ce,{size:t,rounded:o,fillMode:r,themeColor:a}),k(Ce,{hover:h,focus:x,active:T,disabled:L,selected:E}),{"k-icon-button":!I&&!_&&y}),children:[S&&Te(N,{className:i(M,"k-button-icon"),icon:S}),I?ao(ei,{children:[I&&Te("span",{className:"k-button-text",children:I}),e.children]}):e.children&&Te("span",{className:"k-button-text",children:e.children}),p&&Te("span",{className:"k-menu-button-arrow k-button-arrow",children:Te(N,{icon:c})})]})};g.states=Zn;g.options=jn;g.variants=Yn;g.className=Ce;g.defaultOptions=oe;g.moduleName=ft;g.folderName=so;import{jsx as Rl}from"react/jsx-runtime";import{jsx as Pl}from"react/jsx-runtime";import{jsx as Ul}from"react/jsx-runtime";import{jsx as Yl}from"react/jsx-runtime";var ht="avatar",lo=ht;import{jsx as po}from"react/jsx-runtime";var Ee="k-avatar";var ti=[n.hover,n.focus,n.active,n.selected,n.disabled],oi={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark,l.inverse]},ne={type:"text",size:s.medium,rounded:m.full,fillMode:u.solid,themeColor:l.primary,border:!1},X=e=>{let{size:t=ne.size,rounded:o=ne.rounded,fillMode:r=ne.fillMode,themeColor:a=ne.themeColor,type:p=ne.type,border:c=ne.border,...d}=e;return po("div",{...d,className:i(e.className,Ee,v(Ee,{size:t,rounded:o,fillMode:r,themeColor:a}),{[`${Ee}-bordered`]:c}),children:po("span",{className:`${Ee}-${p}`,children:e.children})})};X.states=ti;X.options=oi;X.className=Ee;X.defaultOptions=ne;X.moduleName=ht;X.folderName=lo;import{jsx as sp}from"react/jsx-runtime";import{jsx as cp}from"react/jsx-runtime";import{jsx as fp}from"react/jsx-runtime";var Ae="chip",Xe=Ae;import{jsx as pe,jsxs as ri}from"react/jsx-runtime";var Ge="k-chip",ni=[n.hover,n.focus,n.active,n.selected,n.disabled],ii={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.outline],themeColor:[l.base,l.success,l.warning,l.error,l.info]},ce={size:s.medium,rounded:m.medium,fillMode:u.solid,themeColor:l.base,avatarImage:"/packages/html/assets/avatar.jpg"},me=e=>{let{size:t=ce.size,rounded:o=ce.rounded,fillMode:r=ce.fillMode,themeColor:a=ce.themeColor,text:p,icon:c,actions:d,showAvatar:h,avatarImage:x=ce.avatarImage,hover:T,focus:E,active:L,selected:S,disabled:I,...M}=e;return ri("div",{...M,className:i(e.className,Ge,v(Ge,{size:t,rounded:o,fillMode:r,themeColor:a}),k(Ge,{hover:T,focus:E,active:L,disabled:I,selected:S})),children:[c&&pe(N,{className:"k-chip-icon",icon:c,size:"small"}),h&&pe(X,{className:"k-chip-avatar",type:"image",children:pe("img",{src:x})}),pe("span",{className:"k-chip-content",children:e.children?e.children:p&&pe("span",{className:"k-chip-label",children:p})}),d&&pe("span",{className:"k-chip-actions",children:d})]})};me.states=ni;me.options=ii;me.className=Ge;me.defaultOptions=ce;me.moduleName=Ae;me.folderName=Xe;import{jsx as li}from"react/jsx-runtime";var xt="k-chip-list",si=[],ai={size:[s.small,s.medium,s.large]},mo={size:s.medium},G=e=>{let{size:t=mo.size,...o}=e;return li("div",{...o,className:i(e.className,xt,v(xt,{size:t})),children:e.children})};G.states=si;G.options=ai;G.className=xt;G.defaultOptions=mo;G.moduleName=Ae;G.folderName=Xe;import{jsx as _p}from"react/jsx-runtime";import{jsx as zp}from"react/jsx-runtime";import{jsx as Fp}from"react/jsx-runtime";import{jsx as Jp}from"react/jsx-runtime";import{Fragment as jp,jsx as Zp,jsxs as ec}from"react/jsx-runtime";var Nt="popup",uo=Nt;import{jsx as fo}from"react/jsx-runtime";var ho="k-animation-container",ci=[],mi={},xo={positionMode:"absolute"},H=e=>{let{positionMode:t=xo.positionMode,animationStyle:o,offset:r,...a}=e;return fo("div",{...a,style:{...r,...e.style},className:i(e.className,ho,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:fo("div",{className:"k-child-animation-container",style:o,children:e.children})})};H.states=ci;H.options=mi;H.className=ho;H.defaultOptions=xo;H.moduleName=Nt;H.folderName=uo;var vt="popup",No=vt;import{jsx as vo}from"react/jsx-runtime";var bo="k-popup",di=[],ui={},To={positionMode:"absolute"},$=e=>{let{offset:t,positionMode:o=To.positionMode,animationStyle:r,...a}=e;return vo(H,{positionMode:o,offset:t,animationStyle:r,children:vo("div",{...a,className:i(e.className,bo),children:e.children})})};$.states=di;$.options=ui;$.className=bo;$.defaultOptions=To;$.moduleName=vt;$.folderName=No;var bt="action-buttons",Co=bt;import{jsx as xi}from"react/jsx-runtime";var Je="k-actions",fi=[],hi={},Tt={alignment:"start",orientation:"horizontal"},J=e=>{let{alignment:t=Tt.alignment,orientation:o=Tt.orientation,...r}=e;return xi("div",{...r,className:i(Je,{[`${Je}-${t}`]:t,[`${Je}-${o}`]:o},e.className),children:e.children})};J.states=fi;J.options=hi;J.className=Je;J.defaultOptions=Tt;J.moduleName=bt;J.folderName=Co;import{jsx as vi}from"react/jsx-runtime";var Ni="k-actionsheet-footer",Eo={alignment:"stretched",orientation:"horizontal"},Ct=e=>{let{alignment:t=Eo.alignment,orientation:o=Eo.orientation,template:r,as:a=r?"div":J,...p}=e;return vi(a,{...p,...!r&&{alignment:t,orientation:o},className:i(e.className,Ni),children:e.children})};var Et="searchbox",Ao=Et;import{jsx as Me,jsxs as Ci}from"react/jsx-runtime";var Mo="k-searchbox",bi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],Ti={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline]},At={showIcon:!0,icon:"search",size:A.defaultOptions.size,rounded:A.defaultOptions.rounded,fillMode:A.defaultOptions.fillMode},q=e=>{let{value:t,placeholder:o,size:r,rounded:a,fillMode:p,hover:c,focus:d,valid:h,invalid:x,required:T,loading:E,disabled:L,showIcon:S=At.showIcon,icon:I=At.icon,...M}=e;return Ci(A,{...M,size:r,rounded:a,fillMode:p,hover:c,focus:d,valid:h,invalid:x,required:T,loading:E,disabled:L,className:i(e.className,Mo),children:[S&&Me(N,{className:"k-input-icon",icon:I}),Me(te,{placeholder:o,value:t}),Me(V,{...e}),Me(D,{...e}),Me(z,{...e})]})};q.states=bi;q.options=Ti;q.className=Mo;q.defaultOptions=At;q.moduleName=Et;q.folderName=Ao;import{jsx as Jc}from"react/jsx-runtime";var Mt="textbox",So=Mt;import{Fragment as Io,jsx as W,jsxs as St}from"react/jsx-runtime";var yo="k-textbox",Ei=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ai={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline]},ie={showClearButton:!0,showValidationIcon:!0,size:A.defaultOptions.size,rounded:A.defaultOptions.rounded,fillMode:A.defaultOptions.fillMode,separators:!0},Q=e=>{let{size:t=ie.size,rounded:o=ie.rounded,fillMode:r=ie.fillMode,separators:a=ie.separators,showClearButton:p=ie.showClearButton,showValidationIcon:c=ie.showValidationIcon,prefix:d,suffix:h,type:x,value:T,placeholder:E,hover:L,focus:S,valid:I,invalid:M,required:O,loading:y,disabled:_,readonly:P,...j}=e;return St(A,{...j,size:t,rounded:o,fillMode:r,hover:L,focus:S,valid:I,invalid:M,required:O,loading:y,disabled:_,readonly:P,className:i(e.className,yo),children:[d&&St(Io,{children:[W(Fe,{children:d}),a&&W(ut,{})]}),W(te,{placeholder:E,value:T,type:x}),c&&W(D,{valid:I,invalid:M,loading:y,disabled:_}),W(V,{loading:y,disabled:_}),p&&W(z,{loading:y,disabled:_,readonly:P,value:T}),h&&St(Io,{children:[a&&W(ut,{}),W(Ve,{children:h})]})]})};Q.states=Ei;Q.options=Ai;Q.className=yo;Q.defaultOptions=ie;Q.moduleName=Mt;Q.folderName=So;import{jsx as sm}from"react/jsx-runtime";import{Fragment as dm,jsx as mm}from"react/jsx-runtime";import{Fragment as bm,jsx as vm}from"react/jsx-runtime";import{jsx as Y,jsxs as It}from"react/jsx-runtime";var Lo="k-actionsheet-titlebar",Mi={},Z=e=>{let{title:t,subtitle:o,actionsStart:r,actionsEnd:a,filter:p,input:c,inputValue:d,inputPlaceholder:h,adaptive:x,children:T,...E}=e;return It("div",{...E,className:i(e.className,Lo),children:[It("div",{className:"k-actionsheet-titlebar-group",children:[r&&Y("div",{className:"k-actionsheet-actions",children:r}),!T&&It("div",{className:"k-actionsheet-title",children:[t&&Y("div",{className:"k-text-center",children:t}),o&&Y("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),T&&Y("div",{className:"k-actionsheet-title",children:T}),a&&Y("div",{className:"k-actionsheet-actions",children:a})]}),(c||p)&&Y("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:c?Y(Q,{value:d,placeholder:h,size:x?"large":"medium"}):Y(q,{placeholder:"Filter",size:x?"large":"medium"})})]})};Z.className=Lo;Z.defaultOptions=Mi;import{jsx as yt,jsxs as ki}from"react/jsx-runtime";var kt="k-actionsheet-view",Si=[],Ii={},yi={},de=e=>{let{adaptive:t,animated:o,children:r,header:a,footer:p,...c}=e,d=a?.type===Z&&yt(Z,{adaptive:t,...a?.props}),h=p?.type===Ct&&yt(Ct,{...p?.props});return ki("div",{...c,className:i(e.className,kt,{[`${kt}-animated`]:o}),children:[d,yt("div",{className:"k-actionsheet-content",children:r}),h]})};de.states=Si;de.options=Ii;de.className=kt;de.defaultOptions=yi;var Se="action-sheet",qe=Se;import{jsx as We,jsxs as wi}from"react/jsx-runtime";var Oo="k-actionsheet",Li=[],Oi={},Ie={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},B=e=>{let{side:t=Ie.side,fullscreen:o=Ie.fullscreen,adaptive:r=Ie.adaptive,overlay:a=Ie.overlay,template:p,children:c,header:d,footer:h,...x}=e;return wi("div",{className:"k-actionsheet-container",children:[a&&We("div",{className:"k-overlay"}),We(H,{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:We("div",{...x,className:i(e.className,Oo,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":r}),children:p||We(de,{header:d,footer:h,adaptive:r,...e,children:c})})})]})};B.states=Li;B.options=Oi;B.className=Oo;B.defaultOptions=Ie;B.moduleName=Se;B.folderName=qe;import{jsx as Ki}from"react/jsx-runtime";var wo="k-actionsheet-container",gi=[],Ri={},_i={},ue=e=>{let{children:t,...o}=e;return Ki("div",{...o,className:wo,children:t})};ue.states=gi;ue.options=Ri;ue.className=wo;ue.defaultOptions=_i;ue.moduleName=Se;ue.folderName=qe;import{jsx as qm}from"react/jsx-runtime";import{Fragment as Pi,jsx as ye,jsxs as Lt}from"react/jsx-runtime";var Ot="k-actionsheet-item",Hi=[n.hover,n.focus,n.selected,n.disabled],wt=e=>{let{iconName:t,text:o,description:r,hover:a,focus:p,selected:c,disabled:d,...h}=e;return Lt("span",{...h,className:i(e.className,Ot,k(Ot,{hover:a,focus:p,selected:c,disabled:d})),children:[!e.children&&ye(Pi,{children:Lt("span",{className:"k-actionsheet-action",children:[t&&ye("span",{className:"k-icon-wrap",children:ye(N,{className:"k-actionsheet-item-icon",icon:t})}),Lt("span",{className:"k-actionsheet-item-text",children:[o&&ye("span",{className:"k-actionsheet-item-title",children:o}),r&&ye("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};wt.states=Hi;wt.className=Ot;import{jsx as nd,jsxs as id}from"react/jsx-runtime";import{jsx as ld}from"react/jsx-runtime";import{jsx as dd}from"react/jsx-runtime";import{jsx as xd}from"react/jsx-runtime";var Ro="dropdown-tree",_o="dropdowntree";import{Fragment as Ko,jsx as b,jsxs as ke}from"react/jsx-runtime";var Ho="k-multiselecttree",zi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Di={size:[s.small,s.medium,s.large],rounded:[m.small,m.medium,m.large,m.full],fillMode:[u.solid,u.flat,u.outline]},Qe={size:A.defaultOptions.size,rounded:A.defaultOptions.rounded,fillMode:A.defaultOptions.fillMode},re=e=>{let{size:t=Qe.size,rounded:o=Qe.rounded,fillMode:r=Qe.fillMode,prefix:a,suffix:p,placeholder:c,tags:d,popup:h,showArrowButton:x,hover:T,focus:E,valid:L,invalid:S,required:I,loading:M,disabled:O,readonly:y,opened:_,dir:P,adaptive:j,adaptiveSettings:Ye,adaptiveTitle:zo,adaptiveSubtitle:Do,adaptiveFilter:Bo,...Uo}=e;return ke(Ko,{children:[ke(A,{...Uo,dir:P,size:t,rounded:o,fillMode:r,hover:T,focus:E,valid:L,invalid:S,required:I,loading:M,disabled:O,readonly:y,className:i(e.className,Ho),children:[b(Fe,{children:a}),b(G,{size:t,className:"k-input-values",children:b(Ko,{children:d})}),b("span",{className:"k-input-inner",children:!d&&b("span",{className:"k-input-value-text",children:c})}),b(D,{valid:L,invalid:S,loading:M,disabled:O}),b(V,{loading:M,disabled:O}),b(z,{loading:M,disabled:O,readonly:y,value:d?"value":""}),b(Ve,{children:p}),x&&b(g,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:r})]}),_&&h&&b($,{className:"k-multiselecttree-popup",dir:P,children:h}),j&&b(B,{adaptive:!0,...Ye,header:b(Z,{actionsEnd:b(g,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:Bo,inputPlaceholder:c,title:zo,subtitle:Do}),children:ke(w,{size:"large",children:[b(f,{top:!0,text:"Root 1"}),b(f,{text:"Root 2",expanded:!0,children:ke(C,{children:[b(f,{top:!0,text:"Child 2.1"}),b(f,{text:"Child 2.2",children:b(C,{children:b(f,{bottom:!0,text:"Child 2.2.1"})})}),b(f,{text:"Child 2.3"}),b(f,{bottom:!0,leafClassName:"k-treeview-load-more-button",text:"Load more ..."})]})}),b(f,{bottom:!0,text:"Root 3",children:ke(C,{children:[b(f,{top:!0,text:"Child 3.1"}),b(f,{text:"Child 3.2"}),b(f,{bottom:!0,text:"Child 3.3"})]})})]})})]})};re.states=zi;re.options=Di;re.className=Ho;re.defaultOptions=Qe;re.moduleName=Ro;re.folderName=_o;var Po=re;import{Fragment as Bi,jsx as K,jsxs as Le}from"react/jsx-runtime";var Gd=e=>K(Po,{opened:!0,popup:Le(Bi,{children:[Le("div",{className:"k-check-all",children:[K(R,{}),K("span",{className:"k-checkbox-label",children:"Check all"})]}),Le(w,{dir:e.dir,children:[K(f,{top:!0,text:"Furniture",showCheckbox:!0,children:Le(C,{children:[K(f,{top:!0,text:"Child 1",showCheckbox:!0}),K(f,{text:"Child 2",showCheckbox:!0}),K(f,{bottom:!0,text:"Child 3",showCheckbox:!0})]})}),K(f,{bottom:!0,text:"Decor",showCheckbox:!0,children:Le(C,{children:[K(f,{top:!0,text:"Child 1",showCheckbox:!0}),K(f,{text:"Child 2",showCheckbox:!0}),K(f,{bottom:!0,text:"Child 3",showCheckbox:!0})]})})]})]}),...e});export{Gd as MultiSelectTreePopup};