@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 30.4 kB
JavaScript
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...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 L=(e,t)=>s({[`${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"}),O=(e,t)=>{let{valid:o,invalid:i,hover:r,focus:p,checked:m,active:u,selected:d,disabled:f,indeterminate:N,loading:x,empty:A,readonly:M,highlighted:T,...I}=t;return s({"k-valid":o,"k-invalid":i,"k-hover":r,"k-focus":p,"k-checked":m,"k-active":u,"k-selected":d,"k-disabled":f,"k-indeterminate":N&&!m,"k-loading":x,"k-empty":A,"k-readonly":M,"k-highlighted":T},Object.keys(I).reduce((y,v)=>(v.startsWith("k-")?y[v]=I[v]:y[`k-${v}`]=I[v],y),{}))};function Vt(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(i=>[`k-${i}`,!0]))}var a={xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},c={small:"small",medium:"medium",large:"large",full:"full"},h={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 Me="input",He=Me;import{jsx as nn}from"react/jsx-runtime";var ze="k-input",tn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],on={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},Pe={size:a.medium,rounded:a.medium,fillMode:h.solid},E=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u,size:d=Pe.size,rounded:f=Pe.rounded,fillMode:N=Pe.fillMode,...x}=e;return nn("span",{...x,className:s(e.className,ze,L(ze,{size:d,rounded:f,fillMode:N}),O(ze,{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u}))})};E.states=tn;E.options=on;E.className=ze;E.defaultOptions=Pe;E.moduleName=Me;E.folderName=He;import{jsx as rn}from"react/jsx-runtime";var De="k-picker",sn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],an={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},we={size:a.medium,rounded:c.medium,fillMode:h.solid},le=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u,size:d=we.size,rounded:f=we.rounded,fillMode:N=we.fillMode,...x}=e;return rn("span",{...x,className:s(e.className,De,L(De,{size:d,rounded:f,fillMode:N}),O(De,{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u})),children:e.children})};le.states=sn;le.options=an;le.className=De;le.defaultOptions=we;le.moduleName=Me;le.folderName=He;import{Fragment as cn,jsx as $t}from"react/jsx-runtime";var it="k-font-icon",ln=[],pn={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},mn={},Se=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:p,...m}=e;return i?$t("span",{...m,className:s(e.className,it,L(it,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"})}):$t(cn,{})};Se.states=ln;Se.options=pn;Se.className=it;Se.defaultOptions=mn;var Xt=Se;import{Fragment as fn,jsx as Be}from"react/jsx-runtime";var at="k-svg-icon",dn=[],un={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},Gt={viewBox:"0 0 24 24"},Ee=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:p=Gt.viewBox,icon:m,...u}=e;if(!m)return Be(fn,{});m==="none"&&{...u,className:s(e.className,at,"k-none")};let d=typeof m=="object"&&m.name&&m.name;return Be("span",{...u,className:s(e.className,at,L("k-icon",{size:t}),{[`k-svg-i-${d}`]:d,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:Be("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:p,dangerouslySetInnerHTML:typeof m=="object"?{__html:m.content}:void 0,children:m?void 0:e.children})})};Ee.states=dn;Ee.options=un;Ee.className=at;Ee.defaultOptions=Gt;var rt=Ee;import*as lt from"@progress/kendo-svg-icons";var Jt="icon",qt="icons";import{Fragment as Wt,jsx as ve}from"react/jsx-runtime";var Ue="k-icon",hn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Nn=[],xn={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[l.base,l.primary,l.secondary,l.tertiary,l.success,l.warning,l.error,l.info,l.light,l.dark]},pt={viewBox:"0 0 24 24",type:"svg"},b=e=>{let{size:t,themeColor:o,icon:i,type:r=pt.type,rotate:p,flip:m,viewBox:u=pt.viewBox,...d}=e;if(!i)return ve(Wt,{});if(r==="svg"){if(i==="none")return ve(rt,{...d,className:s(e.className,Ue),icon:i,size:t});let f=lt[i]?i:hn(`${i}-icon`);return lt[f]?ve(rt,{...d,className:s(e.className,Ue),icon:lt[f],size:t,themeColor:o,rotate:p,flip:m,viewBox:u}):ve(Wt,{})}return ve(Xt,{...d,className:s(e.className,Ue),icon:i,size:t,themeColor:o,rotate:p,flip:m})};b.states=Nn;b.options=xn;b.defaultOptions=pt;b.className=Ue;b.moduleName=Jt;b.folderName=qt;import{Fragment as An,jsx as mt}from"react/jsx-runtime";var Qt="k-clear-value",Ln=[n.disabled,n.loading,n.readonly],bn={},z=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?mt(An,{}):mt("span",{className:s(e.className,Qt),children:mt(b,{icon:"x"})})};z.states=Ln;z.options=bn;z.className=Qt;import{jsx as En}from"react/jsx-runtime";var ct="k-input-inner",Mn=[],Sn={},Fe={type:"text",autocomplete:"off",value:"",placeholder:""},P=e=>{let{value:t=Fe.value,type:o=Fe.type,placeholder:i=Fe.placeholder,autocomplete:r=Fe.autocomplete,...p}=e;return En("input",{...p,type:o,className:s(e.className,ct,L(ct,e)),placeholder:i,autoComplete:r,defaultValue:t})};P.states=Mn;P.options=Sn;P.className=ct;import{jsx as Yt,jsxs as In}from"react/jsx-runtime";var dt="k-input-inner",vn=[],Cn={},ut=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:p,...m}=e;return In("span",{...m,className:s(e.className,dt,L(dt,e)),children:[r,!r&&p&&Yt(b,{className:"k-input-value-icon",icon:p}),i&&!t&&o,i&&t&&Yt("span",{className:"k-input-value-text",children:t})]})};ut.states=vn;ut.options=Cn;ut.className=dt;import{jsx as yn}from"react/jsx-runtime";var ft="k-input-inner",Tn=[],On={},Zt={value:"",placeholder:""},ht=e=>{let{value:t=Zt.value,placeholder:o=Zt.placeholder,rows:i,...r}=e;return yn("textarea",{...r,className:s(e.className,ft,L(ft,e)),placeholder:o,rows:i,defaultValue:t})};ht.states=Tn;ht.options=On;ht.className=ft;import{Fragment as kn,jsx as jt}from"react/jsx-runtime";var eo="k-input-loading-icon",gn=[n.disabled,n.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?jt(kn,{}):jt("span",{className:s(e.className,eo,"k-icon k-i-loading")})};F.states=gn;F.className=eo;import{Fragment as Rn,jsx as to}from"react/jsx-runtime";var oo="k-input-validation-icon",Kn=[n.valid,n.invalid,n.disabled,n.loading],_n={},D=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,p=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?to(Rn,{}):to(b,{className:s(oo),icon:p})};D.states=Kn;D.options=_n;D.className=oo;import{Fragment as Pn,jsx as no}from"react/jsx-runtime";var Hn="k-input-prefix",zn={direction:"horizontal"},Ve=e=>{let{direction:t=zn.direction,...o}=e;return e.children?no("span",{...o,className:s(Hn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):no(Pn,{})};import{Fragment as Bn,jsx as so}from"react/jsx-runtime";var Dn="k-input-suffix",wn={direction:"horizontal"},$e=e=>{let{direction:t=wn.direction,...o}=e;return e.children?so("span",{...o,className:s(Dn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):so(Bn,{})};import{jsx as Ia}from"react/jsx-runtime";import{jsx as ga}from"react/jsx-runtime";import{jsx as Fn}from"react/jsx-runtime";var io="k-input-separator",Un={direction:"vertical"},pe=e=>{let{direction:t=Un.direction,...o}=e;return Fn("span",{...o,className:s(io,e.className,{[`${io}-${t}`]:t})})};var Nt="button",ao=Nt;import{Fragment as Gn,jsx as Ce,jsxs as ro}from"react/jsx-runtime";var Ie="k-button",Vn=["icon-button"],$n=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Xn={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline,h.clear,h.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:a.medium,rounded:c.medium,fillMode:h.solid,themeColor:l.base,showArrow:!1,arrowIconName:"caret-alt-down"},g=e=>{let{size:t=oe.size,rounded:o=oe.rounded,fillMode:i=oe.fillMode,themeColor:r=oe.themeColor,showArrow:p=oe.showArrow,arrowIconName:m=oe.arrowIconName,variant:u,hover:d,focus:f,active:N,selected:x,disabled:A,icon:M,text:T,iconClassName:I,...y}=e,v=M!==void 0,K=e.children!==void 0;return ro("button",{...y,className:s(e.className,Ie,Vt(Ie,u),L(Ie,{size:t,rounded:o,fillMode:i,themeColor:r}),O(Ie,{hover:d,focus:f,active:N,disabled:A,selected:x}),{"k-icon-button":!T&&!K&&v}),children:[M&&Ce(b,{className:s(I,"k-button-icon"),icon:M}),T?ro(Gn,{children:[T&&Ce("span",{className:"k-button-text",children:T}),e.children]}):e.children&&Ce("span",{className:"k-button-text",children:e.children}),p&&Ce("span",{className:"k-menu-button-arrow k-button-arrow",children:Ce(b,{icon:m})})]})};g.states=$n;g.options=Xn;g.variants=Vn;g.className=Ie;g.defaultOptions=oe;g.moduleName=Nt;g.folderName=ao;import{jsx as nr}from"react/jsx-runtime";import{jsx as rr}from"react/jsx-runtime";import{jsx as cr}from"react/jsx-runtime";import{jsx as Xe}from"react/jsx-runtime";var Jn="k-chip-action";var Ge=e=>{let{type:t,...o}=e,i;switch(t){case"remove":i=Xe(b,{icon:"x-circle",size:"small"});break;case"more":i=Xe(b,{icon:"more-vertical",size:"small"});break;default:return Xe(b,{icon:t,size:"small"})}return Xe("span",{...o,className:s(e.className,Jn,`k-chip-${t}-action`),children:i})};var xt="avatar",lo=xt;import{jsx as po}from"react/jsx-runtime";var Te="k-avatar";var qn=[n.hover,n.focus,n.active,n.selected,n.disabled],Wn={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.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:a.medium,rounded:c.full,fillMode:h.solid,themeColor:l.primary,border:!1},V=e=>{let{size:t=ne.size,rounded:o=ne.rounded,fillMode:i=ne.fillMode,themeColor:r=ne.themeColor,type:p=ne.type,border:m=ne.border,...u}=e;return po("div",{...u,className:s(e.className,Te,L(Te,{size:t,rounded:o,fillMode:i,themeColor:r}),{[`${Te}-bordered`]:m}),children:po("span",{className:`${Te}-${p}`,children:e.children})})};V.states=qn;V.options=Wn;V.className=Te;V.defaultOptions=ne;V.moduleName=xt;V.folderName=lo;import{jsx as yr}from"react/jsx-runtime";import{jsx as _r}from"react/jsx-runtime";import{jsx as Pr}from"react/jsx-runtime";var Oe="chip",Je=Oe;import{jsx as me,jsxs as Zn}from"react/jsx-runtime";var qe="k-chip",Qn=[n.hover,n.focus,n.active,n.selected,n.disabled],Yn={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.outline],themeColor:[l.base,l.success,l.warning,l.error,l.info]},ce={size:a.medium,rounded:c.medium,fillMode:h.solid,themeColor:l.base,avatarImage:"/packages/html/assets/avatar.jpg"},$=e=>{let{size:t=ce.size,rounded:o=ce.rounded,fillMode:i=ce.fillMode,themeColor:r=ce.themeColor,text:p,icon:m,actions:u,showAvatar:d,avatarImage:f=ce.avatarImage,hover:N,focus:x,active:A,selected:M,disabled:T,...I}=e;return Zn("div",{...I,className:s(e.className,qe,L(qe,{size:t,rounded:o,fillMode:i,themeColor:r}),O(qe,{hover:N,focus:x,active:A,disabled:T,selected:M})),children:[m&&me(b,{className:"k-chip-icon",icon:m,size:"small"}),d&&me(V,{className:"k-chip-avatar",type:"image",children:me("img",{src:f})}),me("span",{className:"k-chip-content",children:e.children?e.children:p&&me("span",{className:"k-chip-label",children:p})}),u&&me("span",{className:"k-chip-actions",children:u})]})};$.states=Qn;$.options=Yn;$.className=qe;$.defaultOptions=ce;$.moduleName=Oe;$.folderName=Je;import{jsx as ts}from"react/jsx-runtime";var Lt="k-chip-list",jn=[],es={size:[a.small,a.medium,a.large]},co={size:a.medium},X=e=>{let{size:t=co.size,...o}=e;return ts("div",{...o,className:s(e.className,Lt,L(Lt,{size:t})),children:e.children})};X.states=jn;X.options=es;X.className=Lt;X.defaultOptions=co;X.moduleName=Oe;X.folderName=Je;import{jsx as nl}from"react/jsx-runtime";import{jsx as rl}from"react/jsx-runtime";import{jsx as cl}from"react/jsx-runtime";import{jsx as Nl}from"react/jsx-runtime";import{Fragment as Sl,jsx as Ml,jsxs as El}from"react/jsx-runtime";var bt="popup",uo=bt;import{jsx as fo}from"react/jsx-runtime";var ho="k-animation-container",os=[],ns={},No={positionMode:"absolute"},_=e=>{let{positionMode:t=No.positionMode,animationStyle:o,offset:i,...r}=e;return fo("div",{...r,style:{...i,...e.style},className:s(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})})};_.states=os;_.options=ns;_.className=ho;_.defaultOptions=No;_.moduleName=bt;_.folderName=uo;var At="popup",xo=At;import{jsx as Lo}from"react/jsx-runtime";var bo="k-popup",ss=[],is={},Ao={positionMode:"absolute"},G=e=>{let{offset:t,positionMode:o=Ao.positionMode,animationStyle:i,...r}=e;return Lo(_,{positionMode:o,offset:t,animationStyle:i,children:Lo("div",{...r,className:s(e.className,bo),children:e.children})})};G.states=ss;G.options=is;G.className=bo;G.defaultOptions=Ao;G.moduleName=At;G.folderName=xo;var Mt="action-buttons",Mo=Mt;import{jsx as ls}from"react/jsx-runtime";var Qe="k-actions",as=[],rs={},St={alignment:"start",orientation:"horizontal"},J=e=>{let{alignment:t=St.alignment,orientation:o=St.orientation,...i}=e;return ls("div",{...i,className:s(Qe,{[`${Qe}-${t}`]:t,[`${Qe}-${o}`]:o},e.className),children:e.children})};J.states=as;J.options=rs;J.className=Qe;J.defaultOptions=St;J.moduleName=Mt;J.folderName=Mo;import{jsx as ms}from"react/jsx-runtime";var ps="k-actionsheet-footer",So={alignment:"stretched",orientation:"horizontal"},Et=e=>{let{alignment:t=So.alignment,orientation:o=So.orientation,template:i,as:r=i?"div":J,...p}=e;return ms(r,{...p,...!i&&{alignment:t,orientation:o},className:s(e.className,ps),children:e.children})};var vt="searchbox",Eo=vt;import{jsx as ye,jsxs as us}from"react/jsx-runtime";var vo="k-searchbox",cs=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],ds={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},Ct={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},q=e=>{let{value:t,placeholder:o,size:i,rounded:r,fillMode:p,hover:m,focus:u,valid:d,invalid:f,required:N,loading:x,disabled:A,showIcon:M=Ct.showIcon,icon:T=Ct.icon,...I}=e;return us(E,{...I,size:i,rounded:r,fillMode:p,hover:m,focus:u,valid:d,invalid:f,required:N,loading:x,disabled:A,className:s(e.className,vo),children:[M&&ye(b,{className:"k-input-icon",icon:T}),ye(P,{placeholder:o,value:t}),ye(F,{...e}),ye(D,{...e}),ye(z,{...e})]})};q.states=cs;q.options=ds;q.className=vo;q.defaultOptions=Ct;q.moduleName=vt;q.folderName=Eo;import{jsx as Np}from"react/jsx-runtime";var It="textbox",Co=It;import{Fragment as Io,jsx as W,jsxs as Tt}from"react/jsx-runtime";var To="k-textbox",fs=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],hs={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},se={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},Q=e=>{let{size:t=se.size,rounded:o=se.rounded,fillMode:i=se.fillMode,separators:r=se.separators,showClearButton:p=se.showClearButton,showValidationIcon:m=se.showValidationIcon,prefix:u,suffix:d,type:f,value:N,placeholder:x,hover:A,focus:M,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,...st}=e;return Tt(E,{...st,size:t,rounded:o,fillMode:i,hover:A,focus:M,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,className:s(e.className,To),children:[u&&Tt(Io,{children:[W(Ve,{children:u}),r&&W(pe,{})]}),W(P,{placeholder:x,value:N,type:f}),m&&W(D,{valid:T,invalid:I,loading:v,disabled:K}),W(F,{loading:v,disabled:K}),p&&W(z,{loading:v,disabled:K,readonly:Ae,value:N}),d&&Tt(Io,{children:[r&&W(pe,{}),W($e,{children:d})]})]})};Q.states=fs;Q.options=hs;Q.className=To;Q.defaultOptions=se;Q.moduleName=It;Q.folderName=Co;import{jsx as yp}from"react/jsx-runtime";import{Fragment as Hp,jsx as Rp}from"react/jsx-runtime";import{Fragment as Fp,jsx as Up}from"react/jsx-runtime";import{jsx as Y,jsxs as Ot}from"react/jsx-runtime";var yo="k-actionsheet-titlebar",Ns={},Z=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:p,input:m,inputValue:u,inputPlaceholder:d,adaptive:f,children:N,...x}=e;return Ot("div",{...x,className:s(e.className,yo),children:[Ot("div",{className:"k-actionsheet-titlebar-group",children:[i&&Y("div",{className:"k-actionsheet-actions",children:i}),!N&&Ot("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})]}),N&&Y("div",{className:"k-actionsheet-title",children:N}),r&&Y("div",{className:"k-actionsheet-actions",children:r})]}),(m||p)&&Y("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:m?Y(Q,{value:u,placeholder:d,size:f?"large":"medium"}):Y(q,{placeholder:"Filter",size:f?"large":"medium"})})]})};Z.className=yo;Z.defaultOptions=Ns;import{jsx as yt,jsxs as As}from"react/jsx-runtime";var gt="k-actionsheet-view",xs=[],Ls={},bs={},de=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:p,...m}=e,u=r?.type===Z&&yt(Z,{adaptive:t,...r?.props}),d=p?.type===Et&&yt(Et,{...p?.props});return As("div",{...m,className:s(e.className,gt,{[`${gt}-animated`]:o}),children:[u,yt("div",{className:"k-actionsheet-content",children:i}),d]})};de.states=xs;de.options=Ls;de.className=gt;de.defaultOptions=bs;var ge="action-sheet",Ye=ge;import{jsx as Ze,jsxs as Es}from"react/jsx-runtime";var go="k-actionsheet",Ms=[],Ss={},ke={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},w=e=>{let{side:t=ke.side,fullscreen:o=ke.fullscreen,adaptive:i=ke.adaptive,overlay:r=ke.overlay,template:p,children:m,header:u,footer:d,...f}=e;return Es("div",{className:"k-actionsheet-container",children:[r&&Ze("div",{className:"k-overlay"}),Ze(_,{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:Ze("div",{...f,className:s(e.className,go,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:p||Ze(de,{header:u,footer:d,adaptive:i,...e,children:m})})})]})};w.states=Ms;w.options=Ss;w.className=go;w.defaultOptions=ke;w.moduleName=ge;w.folderName=Ye;import{jsx as Ts}from"react/jsx-runtime";var ko="k-actionsheet-container",vs=[],Cs={},Is={},ue=e=>{let{children:t,...o}=e;return Ts("div",{...o,className:ko,children:t})};ue.states=vs;ue.options=Cs;ue.className=ko;ue.defaultOptions=Is;ue.moduleName=ge;ue.folderName=Ye;import{jsx as xm}from"react/jsx-runtime";import{Fragment as ys,jsx as Ke,jsxs as kt}from"react/jsx-runtime";var Kt="k-actionsheet-item",Os=[n.hover,n.focus,n.selected,n.disabled],_t=e=>{let{iconName:t,text:o,description:i,hover:r,focus:p,selected:m,disabled:u,...d}=e;return kt("span",{...d,className:s(e.className,Kt,O(Kt,{hover:r,focus:p,selected:m,disabled:u})),children:[!e.children&&Ke(ys,{children:kt("span",{className:"k-actionsheet-action",children:[t&&Ke("span",{className:"k-icon-wrap",children:Ke(b,{className:"k-actionsheet-item-icon",icon:t})}),kt("span",{className:"k-actionsheet-item-text",children:[o&&Ke("span",{className:"k-actionsheet-item-title",children:o}),i&&Ke("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};_t.states=Os;_t.className=Kt;import{jsx as Im,jsxs as Tm}from"react/jsx-runtime";import{jsx as km}from"react/jsx-runtime";import{jsx as Hm}from"react/jsx-runtime";import{jsx as wm}from"react/jsx-runtime";import{jsx as ks}from"react/jsx-runtime";var gs="k-no-data",_e=e=>ks("span",{className:s(gs,e.className),children:e.children});var B="list",j=B;import{jsx as fe,jsxs as _o}from"react/jsx-runtime";var Rt="k-list",Ks=[],_s={size:[a.small,a.medium,a.large]},Ro={size:a.medium},k=e=>{let{size:t=Ro.size,virtualization:o,children:i,optionLabel:r,customValue:p,screenReaders:m,...u}=e,d,f,N,x,A=[];return i?i.map((M,T)=>{M.type===R?(M.props.root===!0?(d=M.props.label,M.props.children.map((I,y)=>{A.push(fe(S,{...I.props},`optChild-${y}-${new Date().getTime()}`))})):M.props.children.forEach((I,y)=>{let v="";y===0&&(v=M.props.label),A.push(fe(S,{className:y===0?"k-first":"",...I.props,groupLabel:v},`groupLabel-${y}-${new Date().getTime()}`))}),f=fe(R,{label:d,virtualization:o,children:A})):M.type===S&&(A.push(fe(S,{...M.props},`${M.type}-${T}`)),N=fe(he,{virtualization:o,children:A}),m&&(x=_o(_e,{className:"k-sr-only",children:[A.length," items found."]})))}):x=fe(_e,{children:"No data found."}),_o("div",{...u,className:s(e.className,Rt,L(Rt,{size:t}),{"k-virtual-list":o}),children:[r,p,f,N,x]})};k.states=Ks;k.options=_s;k.className=Rt;k.defaultOptions=Ro;k.moduleName=B;k.folderName=j;import{jsx as Ps}from"react/jsx-runtime";var Ho="k-list-container",Rs=[],Hs={},zs={},Ne=e=>{let{...t}=e;return Ps("div",{...t,className:s(e.className,Ho),children:e.children})};Ne.states=Rs;Ne.options=Hs;Ne.className=Ho;Ne.defaultOptions=zs;Ne.moduleName=B;Ne.folderName=j;import{jsx as ie,jsxs as Bs}from"react/jsx-runtime";var Ht="k-list",Ds=[],ws={size:[a.small,a.medium,a.large]},zo={size:a.medium},U=e=>{let{size:t=zo.size,virtualization:o,children:i,...r}=e,p,m,u,d=[];return i?i.map((f,N)=>{f.type===R?(f.props.root===!0?(p=f.props.label,f.props.children.map((x,A)=>{d.push(ie(S,{...x.props},`optChild-${A}-${new Date().getTime()}`))})):(d.push(ie(Po,{...f.props,children:f.props.label},`listChild-${N}`)),f.props.children.map((x,A)=>{d.push(ie(S,{...x.props},`fwOptChild-${A}-${new Date().getTime()}`))})),m=ie(R,{label:p,virtualization:o,children:d})):f.type===S&&(d.push(ie(S,{...f.props},`${f.type}-${N}`)),u=ie(he,{virtualization:o,children:d}))}):u=ie(_e,{children:"No data found."}),Bs("div",{...r,className:s(e.className,Ht,L(Ht,{size:t}),{"k-virtual-list":o}),children:[m,u]})};U.states=Ds;U.options=ws;U.className=Ht;U.defaultOptions=zo;U.moduleName=B;U.folderName=j;var ae="checkbox",xe=ae;import{jsx as Do}from"react/jsx-runtime";var je="k-checkbox",Us=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Fs={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full]},zt={size:a.medium,rounded:c.medium},H=e=>{let{id:t,checked:o,indeterminate:i,hover:r,focus:p,disabled:m,invalid:u,valid:d,required:f,size:N=zt.size,rounded:x=zt.rounded,...A}=e;return Do("span",{className:"k-checkbox-wrap",children:Do("input",{...A,id:t,type:"checkbox",defaultChecked:o,required:f,className:s(e.className,je,L(je,{size:N,rounded:x}),O(je,{hover:r,focus:p,disabled:m,invalid:u,valid:d,indeterminate:i,checked:o}))})})};H.states=Us;H.options=Fs;H.className=je;H.defaultOptions=zt;H.moduleName=ae;H.folderName=xe;import{jsx as Xs}from"react/jsx-runtime";var wo="k-checkbox-list",Vs=[],$s={},Bo={layout:"vertical"},ee=e=>{let{layout:t=Bo.layout,...o}=e;return Xs("ul",{...o,className:s(e.className,wo,{[`k-list-${t}`]:t}),children:e.children})};ee.states=Vs;ee.options=$s;ee.className=wo;ee.defaultOptions=Bo;ee.moduleName=ae;ee.folderName=xe;import{jsx as Ws}from"react/jsx-runtime";var Uo="k-checkbox-list-item",Gs=[],Js={},qs={},te=e=>{let{...t}=e;return Ws("li",{...t,className:s(e.className,Uo),children:e.children})};te.states=Gs;te.options=Js;te.className=Uo;te.defaultOptions=qs;te.moduleName=ae;te.folderName=xe;import{Fragment as Pc,jsx as zc,jsxs as Dc}from"react/jsx-runtime";import{Fragment as Vc,jsx as Fc,jsxs as $c}from"react/jsx-runtime";import{Fragment as Wc,jsx as qc,jsxs as Qc}from"react/jsx-runtime";import{Fragment as td,jsx as ed,jsxs as od}from"react/jsx-runtime";import{jsx as ad}from"react/jsx-runtime";import{jsx as md}from"react/jsx-runtime";import{jsx as et,jsxs as js}from"react/jsx-runtime";var Dt="k-list-item",Qs=[n.hover,n.focus,n.selected,n.disabled],Ys={},Zs={},S=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:p,showCheckbox:m,checked:u,hover:d,focus:f,selected:N,disabled:x,...A}=e,M=t||e.children;return js("li",{...A,className:s(e.className,i?"k-list-group-item":Dt,O(Dt,{hover:d,focus:f,disabled:x,selected:N})),children:[m&&et(H,{checked:u}),r&&et(b,{icon:p}),et("span",{className:"k-list-item-text",children:M}),o&&o!==""&&et("div",{className:"k-list-item-group-label",children:o})]})};S.states=Qs;S.options=Ys;S.className=Dt;S.defaultOptions=Zs;S.moduleName=B;S.folderName=j;import{jsx as wt,jsxs as ti}from"react/jsx-runtime";var ei="k-list-content",he=e=>{let{virtualization:t,...o}=e;return ti("div",{...o,className:s(ei,e.className),children:[wt("ul",{className:s("k-list-ul"),children:e.children}),t&&wt("div",{className:"k-height-container",children:wt("div",{})})]})};import{jsx as Fo}from"react/jsx-runtime";var oi="k-list-group-sticky-header",Vo=e=>Fo("div",{className:s(oi,e.className),children:Fo("div",{className:"k-list-header-text",children:e.children})});import{Fragment as ni,jsx as $o,jsxs as si}from"react/jsx-runtime";var R=e=>{let{virtualization:t,label:o}=e;return si(ni,{children:[o&&$o(Vo,{children:o}),e.children&&$o(he,{virtualization:t,children:e.children})]})};import{jsx as Xo}from"react/jsx-runtime";var ii="k-list-group-item",Po=e=>Xo("li",{className:s(ii,e.className),children:Xo("span",{className:"k-list-item-text",children:e.children})});import{jsx as pi}from"react/jsx-runtime";var Bt="k-list-optionlabel",ai=[n.hover,n.focus,n.selected,n.disabled],ri={},li={},tt=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:p,...m}=e;return pi("div",{...m,className:s(Bt,O(Bt,{hover:o,focus:i,selected:r,disabled:p})),children:t})};tt.states=ai;tt.options=ri;tt.className=Bt;tt.defaultOptions=li;import{jsx as ui}from"react/jsx-runtime";var Ut="k-list-custom-value",mi=[n.hover,n.focus,n.selected,n.disabled],ci={},di={},Le=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:p,...m}=e;return ui("div",{...m,className:s(Ut,O(Ut,{hover:o,focus:i,selected:r,disabled:p})),children:t})};Le.states=mi;Le.options=ci;Le.className=Ut;Le.defaultOptions=di;import{jsx as qd}from"react/jsx-runtime";import{jsx as Zd}from"react/jsx-runtime";import{jsx as ou,jsxs as nu}from"react/jsx-runtime";import{jsx as ru,jsxs as lu}from"react/jsx-runtime";import{jsx as du}from"react/jsx-runtime";import{jsx as Nu,jsxs as xu}from"react/jsx-runtime";import{jsx as Mu,jsxs as Su}from"react/jsx-runtime";var Ft="multiselect",Go=Ft;import{Fragment as ot,jsx as C,jsxs as be}from"react/jsx-runtime";var Jo="k-multiselect",fi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],hi={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},Re={size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},re=e=>{let{size:t=Re.size,rounded:o=Re.rounded,fillMode:i=Re.fillMode,separators:r=Re.separators,prefix:p,suffix:m,value:u,placeholder:d,tags:f,popup:N,showArrowButton:x,hover:A,focus:M,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,opened:st,adaptive:Wo,adaptiveSettings:Qo,adaptiveTitle:Yo,adaptiveSubtitle:Zo,adaptiveCustomValue:jo,...en}=e;return be(ot,{children:[be(E,{...en,size:t,rounded:o,fillMode:i,hover:A,focus:M,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,className:s(e.className,Jo),children:[p&&be(ot,{children:[C(Ve,{children:p}),r&&C(pe,{})]}),be("div",{className:"k-input-values",children:[C(X,{size:t,children:C(ot,{children:f})}),C(P,{placeholder:d,value:u})]}),C(D,{valid:T,invalid:I,loading:v,disabled:K}),C(F,{loading:v,disabled:K}),C(z,{loading:v,disabled:K,readonly:Ae,value:f?"value":""}),m&&be(ot,{children:[r&&C(pe,{}),C($e,{children:m})]}),x&&C(g,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:i})]}),st&&N&&C(G,{className:"k-list-container k-multiselect-popup",children:N}),Wo&&C(w,{adaptive:!0,...Qo,header:C(Z,{actionsEnd:C(g,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:u,inputPlaceholder:d,title:Yo,subtitle:Zo}),children:C("div",{className:"k-list-container",children:be(k,{customValue:jo?C(Le,{text:`Use "${u}"`}):void 0,size:"large",children:[C(S,{text:"List item"}),C(S,{text:"List item"}),C(S,{text:"List item"})]})})})]})};re.states=fi;re.options=hi;re.className=Jo;re.defaultOptions=Re;re.moduleName=Ft;re.folderName=Go;var qo=re;import{Fragment as Ni,jsx as nt}from"react/jsx-runtime";var of=({size:e,rounded:t,children:o,...i})=>nt(Ni,{children:nt(qo,{size:e,rounded:t,tags:nt($,{text:o,actions:nt(Ge,{type:"remove"}),size:e,rounded:t}),...i})});export{of as MultiSelectValue};