@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 b=(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:L,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":L,"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 Se="input",ze=Se;import{jsx as sn}from"react/jsx-runtime";var Pe="k-input",on=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],nn={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},De={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=De.size,rounded:f=De.rounded,fillMode:N=De.fillMode,...L}=e;return sn("span",{...L,className:s(e.className,Pe,b(Pe,{size:d,rounded:f,fillMode:N}),O(Pe,{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u}))})};E.states=on;E.options=nn;E.className=Pe;E.defaultOptions=De;E.moduleName=Se;E.folderName=ze;import{jsx as ln}from"react/jsx-runtime";var we="k-picker",an=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],rn={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},Be={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=Be.size,rounded:f=Be.rounded,fillMode:N=Be.fillMode,...L}=e;return ln("span",{...L,className:s(e.className,we,b(we,{size:d,rounded:f,fillMode:N}),O(we,{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u})),children:e.children})};le.states=an;le.options=rn;le.className=we;le.defaultOptions=Be;le.moduleName=Se;le.folderName=ze;import{Fragment as dn,jsx as $t}from"react/jsx-runtime";var it="k-font-icon",pn=[],mn={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]},cn={},Ee=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:p,...m}=e;return i?$t("span",{...m,className:s(e.className,it,b(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(dn,{})};Ee.states=pn;Ee.options=mn;Ee.className=it;Ee.defaultOptions=cn;var Xt=Ee;import{Fragment as hn,jsx as Ue}from"react/jsx-runtime";var at="k-svg-icon",un=[],fn={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"},ve=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:p=Gt.viewBox,icon:m,...u}=e;if(!m)return Ue(hn,{});m==="none"&&{...u,className:s(e.className,at,"k-none")};let d=typeof m=="object"&&m.name&&m.name;return Ue("span",{...u,className:s(e.className,at,b("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:Ue("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})})};ve.states=un;ve.options=fn;ve.className=at;ve.defaultOptions=Gt;var rt=ve;import*as lt from"@progress/kendo-svg-icons";var Jt="icon",qt="icons";import{Fragment as Wt,jsx as Ce}from"react/jsx-runtime";var Fe="k-icon",Nn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),xn=[],Ln={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"},x=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 Ce(Wt,{});if(r==="svg"){if(i==="none")return Ce(rt,{...d,className:s(e.className,Fe),icon:i,size:t});let f=lt[i]?i:Nn(`${i}-icon`);return lt[f]?Ce(rt,{...d,className:s(e.className,Fe),icon:lt[f],size:t,themeColor:o,rotate:p,flip:m,viewBox:u}):Ce(Wt,{})}return Ce(Xt,{...d,className:s(e.className,Fe),icon:i,size:t,themeColor:o,rotate:p,flip:m})};x.states=xn;x.options=Ln;x.defaultOptions=pt;x.className=Fe;x.moduleName=Jt;x.folderName=qt;import{Fragment as Mn,jsx as mt}from"react/jsx-runtime";var Qt="k-clear-value",bn=[n.disabled,n.loading,n.readonly],An={},z=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?mt(Mn,{}):mt("span",{className:s(e.className,Qt),children:mt(x,{icon:"x"})})};z.states=bn;z.options=An;z.className=Qt;import{jsx as vn}from"react/jsx-runtime";var ct="k-input-inner",Sn=[],En={},Ve={type:"text",autocomplete:"off",value:"",placeholder:""},P=e=>{let{value:t=Ve.value,type:o=Ve.type,placeholder:i=Ve.placeholder,autocomplete:r=Ve.autocomplete,...p}=e;return vn("input",{...p,type:o,className:s(e.className,ct,b(ct,e)),placeholder:i,autoComplete:r,defaultValue:t})};P.states=Sn;P.options=En;P.className=ct;import{jsx as Yt,jsxs as Tn}from"react/jsx-runtime";var dt="k-input-inner",Cn=[],In={},ut=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:p,...m}=e;return Tn("span",{...m,className:s(e.className,dt,b(dt,e)),children:[r,!r&&p&&Yt(x,{className:"k-input-value-icon",icon:p}),i&&!t&&o,i&&t&&Yt("span",{className:"k-input-value-text",children:t})]})};ut.states=Cn;ut.options=In;ut.className=dt;import{jsx as gn}from"react/jsx-runtime";var ft="k-input-inner",On=[],yn={},Zt={value:"",placeholder:""},ht=e=>{let{value:t=Zt.value,placeholder:o=Zt.placeholder,rows:i,...r}=e;return gn("textarea",{...r,className:s(e.className,ft,b(ft,e)),placeholder:o,rows:i,defaultValue:t})};ht.states=On;ht.options=yn;ht.className=ft;import{Fragment as Kn,jsx as jt}from"react/jsx-runtime";var eo="k-input-loading-icon",kn=[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=kn;F.className=eo;import{Fragment as Hn,jsx as to}from"react/jsx-runtime";var oo="k-input-validation-icon",_n=[n.valid,n.invalid,n.disabled,n.loading],Rn={},D=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,p=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?to(Hn,{}):to(x,{className:s(oo),icon:p})};D.states=_n;D.options=Rn;D.className=oo;import{Fragment as Dn,jsx as no}from"react/jsx-runtime";var zn="k-input-prefix",Pn={direction:"horizontal"},$e=e=>{let{direction:t=Pn.direction,...o}=e;return e.children?no("span",{...o,className:s(zn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):no(Dn,{})};import{Fragment as Un,jsx as so}from"react/jsx-runtime";var wn="k-input-suffix",Bn={direction:"horizontal"},Xe=e=>{let{direction:t=Bn.direction,...o}=e;return e.children?so("span",{...o,className:s(wn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):so(Un,{})};import{jsx as Ia}from"react/jsx-runtime";import{jsx as ga}from"react/jsx-runtime";import{jsx as Vn}from"react/jsx-runtime";var io="k-input-separator",Fn={direction:"vertical"},pe=e=>{let{direction:t=Fn.direction,...o}=e;return Vn("span",{...o,className:s(io,e.className,{[`${io}-${t}`]:t})})};var Nt="button",ao=Nt;import{Fragment as Jn,jsx as Ie,jsxs as ro}from"react/jsx-runtime";var Te="k-button",$n=["icon-button"],Xn=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Gn={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:L,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,Te,Vt(Te,u),b(Te,{size:t,rounded:o,fillMode:i,themeColor:r}),O(Te,{hover:d,focus:f,active:N,disabled:A,selected:L}),{"k-icon-button":!T&&!K&&v}),children:[M&&Ie(x,{className:s(I,"k-button-icon"),icon:M}),T?ro(Jn,{children:[T&&Ie("span",{className:"k-button-text",children:T}),e.children]}):e.children&&Ie("span",{className:"k-button-text",children:e.children}),p&&Ie("span",{className:"k-menu-button-arrow k-button-arrow",children:Ie(x,{icon:m})})]})};g.states=Xn;g.options=Gn;g.variants=$n;g.className=Te;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 Ge}from"react/jsx-runtime";var qn="k-chip-action";var Je=e=>{let{type:t,...o}=e,i;switch(t){case"remove":i=Ge(x,{icon:"x-circle",size:"small"});break;case"more":i=Ge(x,{icon:"more-vertical",size:"small"});break;default:return Ge(x,{icon:t,size:"small"})}return Ge("span",{...o,className:s(e.className,qn,`k-chip-${t}-action`),children:i})};var xt="avatar",lo=xt;import{jsx as po}from"react/jsx-runtime";var Oe="k-avatar";var Wn=[n.hover,n.focus,n.active,n.selected,n.disabled],Qn={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,Oe,b(Oe,{size:t,rounded:o,fillMode:i,themeColor:r}),{[`${Oe}-bordered`]:m}),children:po("span",{className:`${Oe}-${p}`,children:e.children})})};V.states=Wn;V.options=Qn;V.className=Oe;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 ye="chip",qe=ye;import{jsx as me,jsxs as jn}from"react/jsx-runtime";var We="k-chip",Yn=[n.hover,n.focus,n.active,n.selected,n.disabled],Zn={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:L,active:A,selected:M,disabled:T,...I}=e;return jn("div",{...I,className:s(e.className,We,b(We,{size:t,rounded:o,fillMode:i,themeColor:r}),O(We,{hover:N,focus:L,active:A,disabled:T,selected:M})),children:[m&&me(x,{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=Yn;$.options=Zn;$.className=We;$.defaultOptions=ce;$.moduleName=ye;$.folderName=qe;import{jsx as os}from"react/jsx-runtime";var Lt="k-chip-list",es=[],ts={size:[a.small,a.medium,a.large]},co={size:a.medium},X=e=>{let{size:t=co.size,...o}=e;return os("div",{...o,className:s(e.className,Lt,b(Lt,{size:t})),children:e.children})};X.states=es;X.options=ts;X.className=Lt;X.defaultOptions=co;X.moduleName=ye;X.folderName=qe;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",ns=[],ss={},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=ns;_.options=ss;_.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",is=[],as={},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=is;G.options=as;G.className=bo;G.defaultOptions=Ao;G.moduleName=At;G.folderName=xo;var Mt="action-buttons",Mo=Mt;import{jsx as ps}from"react/jsx-runtime";var Ye="k-actions",rs=[],ls={},St={alignment:"start",orientation:"horizontal"},J=e=>{let{alignment:t=St.alignment,orientation:o=St.orientation,...i}=e;return ps("div",{...i,className:s(Ye,{[`${Ye}-${t}`]:t,[`${Ye}-${o}`]:o},e.className),children:e.children})};J.states=rs;J.options=ls;J.className=Ye;J.defaultOptions=St;J.moduleName=Mt;J.folderName=Mo;import{jsx as cs}from"react/jsx-runtime";var ms="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 cs(r,{...p,...!i&&{alignment:t,orientation:o},className:s(e.className,ms),children:e.children})};var vt="searchbox",Eo=vt;import{jsx as ge,jsxs as fs}from"react/jsx-runtime";var vo="k-searchbox",ds=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],us={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:L,disabled:A,showIcon:M=Ct.showIcon,icon:T=Ct.icon,...I}=e;return fs(E,{...I,size:i,rounded:r,fillMode:p,hover:m,focus:u,valid:d,invalid:f,required:N,loading:L,disabled:A,className:s(e.className,vo),children:[M&&ge(x,{className:"k-input-icon",icon:T}),ge(P,{placeholder:o,value:t}),ge(F,{...e}),ge(D,{...e}),ge(z,{...e})]})};q.states=ds;q.options=us;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",hs=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ns={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:L,hover:A,focus:M,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Me,...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:Me,className:s(e.className,To),children:[u&&Tt(Io,{children:[W($e,{children:u}),r&&W(pe,{})]}),W(P,{placeholder:L,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:Me,value:N}),d&&Tt(Io,{children:[r&&W(pe,{}),W(Xe,{children:d})]})]})};Q.states=hs;Q.options=Ns;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",xs={},Z=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:p,input:m,inputValue:u,inputPlaceholder:d,adaptive:f,children:N,...L}=e;return Ot("div",{...L,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=xs;import{jsx as yt,jsxs as Ms}from"react/jsx-runtime";var gt="k-actionsheet-view",Ls=[],bs={},As={},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 Ms("div",{...m,className:s(e.className,gt,{[`${gt}-animated`]:o}),children:[u,yt("div",{className:"k-actionsheet-content",children:i}),d]})};de.states=Ls;de.options=bs;de.className=gt;de.defaultOptions=As;var ke="action-sheet",Ze=ke;import{jsx as je,jsxs as vs}from"react/jsx-runtime";var go="k-actionsheet",Ss=[],Es={},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 vs("div",{className:"k-actionsheet-container",children:[r&&je("div",{className:"k-overlay"}),je(_,{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:je("div",{...f,className:s(e.className,go,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:p||je(de,{header:u,footer:d,adaptive:i,...e,children:m})})})]})};w.states=Ss;w.options=Es;w.className=go;w.defaultOptions=Ke;w.moduleName=ke;w.folderName=Ze;import{jsx as Os}from"react/jsx-runtime";var ko="k-actionsheet-container",Cs=[],Is={},Ts={},ue=e=>{let{children:t,...o}=e;return Os("div",{...o,className:ko,children:t})};ue.states=Cs;ue.options=Is;ue.className=ko;ue.defaultOptions=Ts;ue.moduleName=ke;ue.folderName=Ze;import{jsx as xm}from"react/jsx-runtime";import{Fragment as gs,jsx as _e,jsxs as kt}from"react/jsx-runtime";var Kt="k-actionsheet-item",ys=[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&&_e(gs,{children:kt("span",{className:"k-actionsheet-action",children:[t&&_e("span",{className:"k-icon-wrap",children:_e(x,{className:"k-actionsheet-item-icon",icon:t})}),kt("span",{className:"k-actionsheet-item-text",children:[o&&_e("span",{className:"k-actionsheet-item-title",children:o}),i&&_e("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};_t.states=ys;_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 ks="k-no-data",Re=e=>Ks("span",{className:s(ks,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",_s=[],Rs={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,L,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&&(L=_o(Re,{className:"k-sr-only",children:[A.length," items found."]})))}):L=fe(Re,{children:"No data found."}),_o("div",{...u,className:s(e.className,Rt,b(Rt,{size:t}),{"k-virtual-list":o}),children:[r,p,f,N,L]})};k.states=_s;k.options=Rs;k.className=Rt;k.defaultOptions=Ro;k.moduleName=B;k.folderName=j;import{jsx as Ds}from"react/jsx-runtime";var Ho="k-list-container",Hs=[],zs={},Ps={},Ne=e=>{let{...t}=e;return Ds("div",{...t,className:s(e.className,Ho),children:e.children})};Ne.states=Hs;Ne.options=zs;Ne.className=Ho;Ne.defaultOptions=Ps;Ne.moduleName=B;Ne.folderName=j;import{jsx as ie,jsxs as Us}from"react/jsx-runtime";var Ht="k-list",ws=[],Bs={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((L,A)=>{d.push(ie(S,{...L.props},`optChild-${A}-${new Date().getTime()}`))})):(d.push(ie(Po,{...f.props,children:f.props.label},`listChild-${N}`)),f.props.children.map((L,A)=>{d.push(ie(S,{...L.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(Re,{children:"No data found."}),Us("div",{...r,className:s(e.className,Ht,b(Ht,{size:t}),{"k-virtual-list":o}),children:[m,u]})};U.states=ws;U.options=Bs;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 et="k-checkbox",Fs=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Vs={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:L=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,et,b(et,{size:N,rounded:L}),O(et,{hover:r,focus:p,disabled:m,invalid:u,valid:d,indeterminate:i,checked:o}))})})};H.states=Fs;H.options=Vs;H.className=et;H.defaultOptions=zt;H.moduleName=ae;H.folderName=xe;import{jsx as Gs}from"react/jsx-runtime";var wo="k-checkbox-list",$s=[],Xs={},Bo={layout:"vertical"},ee=e=>{let{layout:t=Bo.layout,...o}=e;return Gs("ul",{...o,className:s(e.className,wo,{[`k-list-${t}`]:t}),children:e.children})};ee.states=$s;ee.options=Xs;ee.className=wo;ee.defaultOptions=Bo;ee.moduleName=ae;ee.folderName=xe;import{jsx as Qs}from"react/jsx-runtime";var Uo="k-checkbox-list-item",Js=[],qs={},Ws={},te=e=>{let{...t}=e;return Qs("li",{...t,className:s(e.className,Uo),children:e.children})};te.states=Js;te.options=qs;te.className=Uo;te.defaultOptions=Ws;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 tt,jsxs as ei}from"react/jsx-runtime";var Dt="k-list-item",Ys=[n.hover,n.focus,n.selected,n.disabled],Zs={},js={},S=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:p,showCheckbox:m,checked:u,hover:d,focus:f,selected:N,disabled:L,...A}=e,M=t||e.children;return ei("li",{...A,className:s(e.className,i?"k-list-group-item":Dt,O(Dt,{hover:d,focus:f,disabled:L,selected:N})),children:[m&&tt(H,{checked:u}),r&&tt(x,{icon:p}),tt("span",{className:"k-list-item-text",children:M}),o&&o!==""&&tt("div",{className:"k-list-item-group-label",children:o})]})};S.states=Ys;S.options=Zs;S.className=Dt;S.defaultOptions=js;S.moduleName=B;S.folderName=j;import{jsx as wt,jsxs as oi}from"react/jsx-runtime";var ti="k-list-content",he=e=>{let{virtualization:t,...o}=e;return oi("div",{...o,className:s(ti,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 ni="k-list-group-sticky-header",Vo=e=>Fo("div",{className:s(ni,e.className),children:Fo("div",{className:"k-list-header-text",children:e.children})});import{Fragment as si,jsx as $o,jsxs as ii}from"react/jsx-runtime";var R=e=>{let{virtualization:t,label:o}=e;return ii(si,{children:[o&&$o(Vo,{children:o}),e.children&&$o(he,{virtualization:t,children:e.children})]})};import{jsx as Xo}from"react/jsx-runtime";var ai="k-list-group-item",Po=e=>Xo("li",{className:s(ai,e.className),children:Xo("span",{className:"k-list-item-text",children:e.children})});import{jsx as mi}from"react/jsx-runtime";var Bt="k-list-optionlabel",ri=[n.hover,n.focus,n.selected,n.disabled],li={},pi={},ot=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:p,...m}=e;return mi("div",{...m,className:s(Bt,O(Bt,{hover:o,focus:i,selected:r,disabled:p})),children:t})};ot.states=ri;ot.options=li;ot.className=Bt;ot.defaultOptions=pi;import{jsx as fi}from"react/jsx-runtime";var Ut="k-list-custom-value",ci=[n.hover,n.focus,n.selected,n.disabled],di={},ui={},Le=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:p,...m}=e;return fi("div",{...m,className:s(Ut,O(Ut,{hover:o,focus:i,selected:r,disabled:p})),children:t})};Le.states=ci;Le.options=di;Le.className=Ut;Le.defaultOptions=ui;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 nt,jsx as C,jsxs as be}from"react/jsx-runtime";var Jo="k-multiselect",hi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ni={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.outline]},He={size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},re=e=>{let{size:t=He.size,rounded:o=He.rounded,fillMode:i=He.fillMode,separators:r=He.separators,prefix:p,suffix:m,value:u,placeholder:d,tags:f,popup:N,showArrowButton:L,hover:A,focus:M,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Me,opened:st,adaptive:Qo,adaptiveSettings:Yo,adaptiveTitle:Zo,adaptiveSubtitle:jo,adaptiveCustomValue:en,...tn}=e;return be(nt,{children:[be(E,{...tn,size:t,rounded:o,fillMode:i,hover:A,focus:M,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Me,className:s(e.className,Jo),children:[p&&be(nt,{children:[C($e,{children:p}),r&&C(pe,{})]}),be("div",{className:"k-input-values",children:[C(X,{size:t,children:C(nt,{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:Me,value:f?"value":""}),m&&be(nt,{children:[r&&C(pe,{}),C(Xe,{children:m})]}),L&&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}),Qo&&C(w,{adaptive:!0,...Yo,header:C(Z,{actionsEnd:C(g,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:u,inputPlaceholder:d,title:Zo,subtitle:jo}),children:C("div",{className:"k-list-container",children:be(k,{customValue:en?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=hi;re.options=Ni;re.className=Jo;re.defaultOptions=He;re.moduleName=Ft;re.folderName=Go;var qo=re;import{Fragment as Wo,jsx as Ae}from"react/jsx-runtime";var nf=e=>Ae(qo,{prefix:Ae(Wo,{children:Ae(x,{icon:"user"})}),tags:Ae(Wo,{children:Ae($,{text:"Prefix",actions:Ae(Je,{type:"remove"})})}),...e});export{nf as MultiSelectPrefix};