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