@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 29.9 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:h,loading:x,empty:b,readonly:A,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":h&&!m,"k-loading":x,"k-empty":b,"k-readonly":A,"k-highlighted":T},Object.keys(I).reduce((y,v)=>(v.startsWith("k-")?y[v]=I[v]:y[`k-${v}`]=I[v],y),{}))};function Bt(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"},N={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 en}from"react/jsx-runtime";var ze="k-input",Zo=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],jo={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[N.solid,N.flat,N.outline]},Pe={size:a.medium,rounded:a.medium,fillMode:N.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:h=Pe.fillMode,...x}=e;return en("span",{...x,className:s(e.className,ze,L(ze,{size:d,rounded:f,fillMode:h}),O(ze,{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u}))})};E.states=Zo;E.options=jo;E.className=ze;E.defaultOptions=Pe;E.moduleName=Me;E.folderName=He;import{jsx as nn}from"react/jsx-runtime";var De="k-picker",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:[N.solid,N.flat,N.outline]},we={size:a.medium,rounded:c.medium,fillMode:N.solid},re=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:h=we.fillMode,...x}=e;return nn("span",{...x,className:s(e.className,De,L(De,{size:d,rounded:f,fillMode:h}),O(De,{hover:t,focus:o,disabled:i,invalid:r,valid:p,loading:m,readonly:u})),children:e.children})};re.states=tn;re.options=on;re.className=De;re.defaultOptions=we;re.moduleName=Me;re.folderName=He;import{Fragment as ln,jsx as Ut}from"react/jsx-runtime";var ot="k-font-icon",sn=[],an={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]},rn={},Se=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:p,...m}=e;return i?Ut("span",{...m,className:s(e.className,ot,L(ot,{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"})}):Ut(ln,{})};Se.states=sn;Se.options=an;Se.className=ot;Se.defaultOptions=rn;var Ft=Se;import{Fragment as cn,jsx as Be}from"react/jsx-runtime";var nt="k-svg-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]},Vt={viewBox:"0 0 24 24"},Ee=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:p=Vt.viewBox,icon:m,...u}=e;if(!m)return Be(cn,{});m==="none"&&{...u,className:s(e.className,nt,"k-none")};let d=typeof m=="object"&&m.name&&m.name;return Be("span",{...u,className:s(e.className,nt,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=pn;Ee.options=mn;Ee.className=nt;Ee.defaultOptions=Vt;var st=Ee;import*as it from"@progress/kendo-svg-icons";var $t="icon",Xt="icons";import{Fragment as Gt,jsx as ve}from"react/jsx-runtime";var Ue="k-icon",dn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),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]},at={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:i,type:r=at.type,rotate:p,flip:m,viewBox:u=at.viewBox,...d}=e;if(!i)return ve(Gt,{});if(r==="svg"){if(i==="none")return ve(st,{...d,className:s(e.className,Ue),icon:i,size:t});let f=it[i]?i:dn(`${i}-icon`);return it[f]?ve(st,{...d,className:s(e.className,Ue),icon:it[f],size:t,themeColor:o,rotate:p,flip:m,viewBox:u}):ve(Gt,{})}return ve(Ft,{...d,className:s(e.className,Ue),icon:i,size:t,themeColor:o,rotate:p,flip:m})};M.states=un;M.options=fn;M.defaultOptions=at;M.className=Ue;M.moduleName=$t;M.folderName=Xt;import{Fragment as xn,jsx as rt}from"react/jsx-runtime";var Jt="k-clear-value",Nn=[n.disabled,n.loading,n.readonly],hn={},z=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?rt(xn,{}):rt("span",{className:s(e.className,Jt),children:rt(M,{icon:"x"})})};z.states=Nn;z.options=hn;z.className=Jt;import{jsx as An}from"react/jsx-runtime";var lt="k-input-inner",Ln=[],bn={},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 An("input",{...p,type:o,className:s(e.className,lt,L(lt,e)),placeholder:i,autoComplete:r,defaultValue:t})};P.states=Ln;P.options=bn;P.className=lt;import{jsx as qt,jsxs as En}from"react/jsx-runtime";var pt="k-input-inner",Mn=[],Sn={},mt=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:p,...m}=e;return En("span",{...m,className:s(e.className,pt,L(pt,e)),children:[r,!r&&p&&qt(M,{className:"k-input-value-icon",icon:p}),i&&!t&&o,i&&t&&qt("span",{className:"k-input-value-text",children:t})]})};mt.states=Mn;mt.options=Sn;mt.className=pt;import{jsx as In}from"react/jsx-runtime";var ct="k-input-inner",vn=[],Cn={},Wt={value:"",placeholder:""},dt=e=>{let{value:t=Wt.value,placeholder:o=Wt.placeholder,rows:i,...r}=e;return In("textarea",{...r,className:s(e.className,ct,L(ct,e)),placeholder:o,rows:i,defaultValue:t})};dt.states=vn;dt.options=Cn;dt.className=ct;import{Fragment as On,jsx as Qt}from"react/jsx-runtime";var Yt="k-input-loading-icon",Tn=[n.disabled,n.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?Qt(On,{}):Qt("span",{className:s(e.className,Yt,"k-icon k-i-loading")})};F.states=Tn;F.className=Yt;import{Fragment as kn,jsx as Zt}from"react/jsx-runtime";var jt="k-input-validation-icon",yn=[n.valid,n.invalid,n.disabled,n.loading],gn={},D=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,p=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?Zt(kn,{}):Zt(M,{className:s(jt),icon:p})};D.states=yn;D.options=gn;D.className=jt;import{Fragment as Rn,jsx as eo}from"react/jsx-runtime";var Kn="k-input-prefix",_n={direction:"horizontal"},Ve=e=>{let{direction:t=_n.direction,...o}=e;return e.children?eo("span",{...o,className:s(Kn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):eo(Rn,{})};import{Fragment as Pn,jsx as to}from"react/jsx-runtime";var Hn="k-input-suffix",zn={direction:"horizontal"},$e=e=>{let{direction:t=zn.direction,...o}=e;return e.children?to("span",{...o,className:s(Hn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):to(Pn,{})};import{jsx as Ea}from"react/jsx-runtime";import{jsx as Ta}from"react/jsx-runtime";import{jsx as wn}from"react/jsx-runtime";var oo="k-input-separator",Dn={direction:"vertical"},le=e=>{let{direction:t=Dn.direction,...o}=e;return wn("span",{...o,className:s(oo,e.className,{[`${oo}-${t}`]:t})})};var ut="button",no=ut;import{Fragment as Vn,jsx as Ce,jsxs as so}from"react/jsx-runtime";var Ie="k-button",Bn=["icon-button"],Un=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Fn={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[N.solid,N.flat,N.outline,N.clear,N.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:a.medium,rounded:c.medium,fillMode:N.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:r=te.themeColor,showArrow:p=te.showArrow,arrowIconName:m=te.arrowIconName,variant:u,hover:d,focus:f,active:h,selected:x,disabled:b,icon:A,text:T,iconClassName:I,...y}=e,v=A!==void 0,K=e.children!==void 0;return so("button",{...y,className:s(e.className,Ie,Bt(Ie,u),L(Ie,{size:t,rounded:o,fillMode:i,themeColor:r}),O(Ie,{hover:d,focus:f,active:h,disabled:b,selected:x}),{"k-icon-button":!T&&!K&&v}),children:[A&&Ce(M,{className:s(I,"k-button-icon"),icon:A}),T?so(Vn,{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(M,{icon:m})})]})};g.states=Un;g.options=Fn;g.variants=Bn;g.className=Ie;g.defaultOptions=te;g.moduleName=ut;g.folderName=no;import{jsx as er}from"react/jsx-runtime";import{jsx as sr}from"react/jsx-runtime";import{jsx as lr}from"react/jsx-runtime";import{jsx as Lr}from"react/jsx-runtime";var ft="avatar",io=ft;import{jsx as ao}from"react/jsx-runtime";var Te="k-avatar";var $n=[n.hover,n.focus,n.active,n.selected,n.disabled],Xn={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[N.solid,N.flat,N.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:a.medium,rounded:c.full,fillMode:N.solid,themeColor:l.primary,border:!1},V=e=>{let{size:t=oe.size,rounded:o=oe.rounded,fillMode:i=oe.fillMode,themeColor:r=oe.themeColor,type:p=oe.type,border:m=oe.border,...u}=e;return ao("div",{...u,className:s(e.className,Te,L(Te,{size:t,rounded:o,fillMode:i,themeColor:r}),{[`${Te}-bordered`]:m}),children:ao("span",{className:`${Te}-${p}`,children:e.children})})};V.states=$n;V.options=Xn;V.className=Te;V.defaultOptions=oe;V.moduleName=ft;V.folderName=io;import{jsx as Tr}from"react/jsx-runtime";import{jsx as kr}from"react/jsx-runtime";import{jsx as Hr}from"react/jsx-runtime";var Oe="chip",Xe=Oe;import{jsx as pe,jsxs as qn}from"react/jsx-runtime";var Ge="k-chip",Gn=[n.hover,n.focus,n.active,n.selected,n.disabled],Jn={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[N.solid,N.outline],themeColor:[l.base,l.success,l.warning,l.error,l.info]},me={size:a.medium,rounded:c.medium,fillMode:N.solid,themeColor:l.base,avatarImage:"/packages/html/assets/avatar.jpg"},ce=e=>{let{size:t=me.size,rounded:o=me.rounded,fillMode:i=me.fillMode,themeColor:r=me.themeColor,text:p,icon:m,actions:u,showAvatar:d,avatarImage:f=me.avatarImage,hover:h,focus:x,active:b,selected:A,disabled:T,...I}=e;return qn("div",{...I,className:s(e.className,Ge,L(Ge,{size:t,rounded:o,fillMode:i,themeColor:r}),O(Ge,{hover:h,focus:x,active:b,disabled:T,selected:A})),children:[m&&pe(M,{className:"k-chip-icon",icon:m,size:"small"}),d&&pe(V,{className:"k-chip-avatar",type:"image",children:pe("img",{src:f})}),pe("span",{className:"k-chip-content",children:e.children?e.children:p&&pe("span",{className:"k-chip-label",children:p})}),u&&pe("span",{className:"k-chip-actions",children:u})]})};ce.states=Gn;ce.options=Jn;ce.className=Ge;ce.defaultOptions=me;ce.moduleName=Oe;ce.folderName=Xe;import{jsx as Yn}from"react/jsx-runtime";var Nt="k-chip-list",Wn=[],Qn={size:[a.small,a.medium,a.large]},lo={size:a.medium},$=e=>{let{size:t=lo.size,...o}=e;return Yn("div",{...o,className:s(e.className,Nt,L(Nt,{size:t})),children:e.children})};$.states=Wn;$.options=Qn;$.className=Nt;$.defaultOptions=lo;$.moduleName=Oe;$.folderName=Xe;import{jsx as tl}from"react/jsx-runtime";import{jsx as il}from"react/jsx-runtime";import{jsx as pl}from"react/jsx-runtime";import{jsx as fl}from"react/jsx-runtime";import{Fragment as Al,jsx as bl,jsxs as Ml}from"react/jsx-runtime";var ht="popup",po=ht;import{jsx as mo}from"react/jsx-runtime";var co="k-animation-container",jn=[],es={},uo={positionMode:"absolute"},_=e=>{let{positionMode:t=uo.positionMode,animationStyle:o,offset:i,...r}=e;return mo("div",{...r,style:{...i,...e.style},className:s(e.className,co,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:mo("div",{className:"k-child-animation-container",style:o,children:e.children})})};_.states=jn;_.options=es;_.className=co;_.defaultOptions=uo;_.moduleName=ht;_.folderName=po;var xt="popup",fo=xt;import{jsx as No}from"react/jsx-runtime";var ho="k-popup",ts=[],os={},xo={positionMode:"absolute"},X=e=>{let{offset:t,positionMode:o=xo.positionMode,animationStyle:i,...r}=e;return No(_,{positionMode:o,offset:t,animationStyle:i,children:No("div",{...r,className:s(e.className,ho),children:e.children})})};X.states=ts;X.options=os;X.className=ho;X.defaultOptions=xo;X.moduleName=xt;X.folderName=fo;var Lt="action-buttons",Lo=Lt;import{jsx as is}from"react/jsx-runtime";var qe="k-actions",ns=[],ss={},bt={alignment:"start",orientation:"horizontal"},G=e=>{let{alignment:t=bt.alignment,orientation:o=bt.orientation,...i}=e;return is("div",{...i,className:s(qe,{[`${qe}-${t}`]:t,[`${qe}-${o}`]:o},e.className),children:e.children})};G.states=ns;G.options=ss;G.className=qe;G.defaultOptions=bt;G.moduleName=Lt;G.folderName=Lo;import{jsx as rs}from"react/jsx-runtime";var as="k-actionsheet-footer",bo={alignment:"stretched",orientation:"horizontal"},At=e=>{let{alignment:t=bo.alignment,orientation:o=bo.orientation,template:i,as:r=i?"div":G,...p}=e;return rs(r,{...p,...!i&&{alignment:t,orientation:o},className:s(e.className,as),children:e.children})};var Mt="searchbox",Ao=Mt;import{jsx as ye,jsxs as ms}from"react/jsx-runtime";var Mo="k-searchbox",ls=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],ps={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[N.solid,N.flat,N.outline]},St={showIcon:!0,icon:"search",size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode},J=e=>{let{value:t,placeholder:o,size:i,rounded:r,fillMode:p,hover:m,focus:u,valid:d,invalid:f,required:h,loading:x,disabled:b,showIcon:A=St.showIcon,icon:T=St.icon,...I}=e;return ms(E,{...I,size:i,rounded:r,fillMode:p,hover:m,focus:u,valid:d,invalid:f,required:h,loading:x,disabled:b,className:s(e.className,Mo),children:[A&&ye(M,{className:"k-input-icon",icon:T}),ye(P,{placeholder:o,value:t}),ye(F,{...e}),ye(D,{...e}),ye(z,{...e})]})};J.states=ls;J.options=ps;J.className=Mo;J.defaultOptions=St;J.moduleName=Mt;J.folderName=Ao;import{jsx as fp}from"react/jsx-runtime";var Et="textbox",So=Et;import{Fragment as Eo,jsx as q,jsxs as vt}from"react/jsx-runtime";var vo="k-textbox",cs=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],ds={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[N.solid,N.flat,N.outline]},ne={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},W=e=>{let{size:t=ne.size,rounded:o=ne.rounded,fillMode:i=ne.fillMode,separators:r=ne.separators,showClearButton:p=ne.showClearButton,showValidationIcon:m=ne.showValidationIcon,prefix:u,suffix:d,type:f,value:h,placeholder:x,hover:b,focus:A,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,...tt}=e;return vt(E,{...tt,size:t,rounded:o,fillMode:i,hover:b,focus:A,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,className:s(e.className,vo),children:[u&&vt(Eo,{children:[q(Ve,{children:u}),r&&q(le,{})]}),q(P,{placeholder:x,value:h,type:f}),m&&q(D,{valid:T,invalid:I,loading:v,disabled:K}),q(F,{loading:v,disabled:K}),p&&q(z,{loading:v,disabled:K,readonly:Ae,value:h}),d&&vt(Eo,{children:[r&&q(le,{}),q($e,{children:d})]})]})};W.states=cs;W.options=ds;W.className=vo;W.defaultOptions=ne;W.moduleName=Et;W.folderName=So;import{jsx as Tp}from"react/jsx-runtime";import{Fragment as _p,jsx as Kp}from"react/jsx-runtime";import{Fragment as Bp,jsx as wp}from"react/jsx-runtime";import{jsx as Q,jsxs as Ct}from"react/jsx-runtime";var Io="k-actionsheet-titlebar",us={},Y=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:p,input:m,inputValue:u,inputPlaceholder:d,adaptive:f,children:h,...x}=e;return Ct("div",{...x,className:s(e.className,Io),children:[Ct("div",{className:"k-actionsheet-titlebar-group",children:[i&&Q("div",{className:"k-actionsheet-actions",children:i}),!h&&Ct("div",{className:"k-actionsheet-title",children:[t&&Q("div",{className:"k-text-center",children:t}),o&&Q("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),h&&Q("div",{className:"k-actionsheet-title",children:h}),r&&Q("div",{className:"k-actionsheet-actions",children:r})]}),(m||p)&&Q("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:m?Q(W,{value:u,placeholder:d,size:f?"large":"medium"}):Q(J,{placeholder:"Filter",size:f?"large":"medium"})})]})};Y.className=Io;Y.defaultOptions=us;import{jsx as It,jsxs as xs}from"react/jsx-runtime";var Tt="k-actionsheet-view",fs=[],Ns={},hs={},de=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:p,...m}=e,u=r?.type===Y&&It(Y,{adaptive:t,...r?.props}),d=p?.type===At&&It(At,{...p?.props});return xs("div",{...m,className:s(e.className,Tt,{[`${Tt}-animated`]:o}),children:[u,It("div",{className:"k-actionsheet-content",children:i}),d]})};de.states=fs;de.options=Ns;de.className=Tt;de.defaultOptions=hs;var ge="action-sheet",We=ge;import{jsx as Qe,jsxs as As}from"react/jsx-runtime";var To="k-actionsheet",Ls=[],bs={},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 As("div",{className:"k-actionsheet-container",children:[r&&Qe("div",{className:"k-overlay"}),Qe(_,{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:Qe("div",{...f,className:s(e.className,To,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:p||Qe(de,{header:u,footer:d,adaptive:i,...e,children:m})})})]})};w.states=Ls;w.options=bs;w.className=To;w.defaultOptions=ke;w.moduleName=ge;w.folderName=We;import{jsx as vs}from"react/jsx-runtime";var Oo="k-actionsheet-container",Ms=[],Ss={},Es={},ue=e=>{let{children:t,...o}=e;return vs("div",{...o,className:Oo,children:t})};ue.states=Ms;ue.options=Ss;ue.className=Oo;ue.defaultOptions=Es;ue.moduleName=ge;ue.folderName=We;import{jsx as Nm}from"react/jsx-runtime";import{Fragment as Is,jsx as Ke,jsxs as Ot}from"react/jsx-runtime";var yt="k-actionsheet-item",Cs=[n.hover,n.focus,n.selected,n.disabled],gt=e=>{let{iconName:t,text:o,description:i,hover:r,focus:p,selected:m,disabled:u,...d}=e;return Ot("span",{...d,className:s(e.className,yt,O(yt,{hover:r,focus:p,selected:m,disabled:u})),children:[!e.children&&Ke(Is,{children:Ot("span",{className:"k-actionsheet-action",children:[t&&Ke("span",{className:"k-icon-wrap",children:Ke(M,{className:"k-actionsheet-item-icon",icon:t})}),Ot("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]})};gt.states=Cs;gt.className=yt;import{jsx as vm,jsxs as Cm}from"react/jsx-runtime";import{jsx as ym}from"react/jsx-runtime";import{jsx as _m}from"react/jsx-runtime";import{jsx as Pm}from"react/jsx-runtime";import{jsx as Os}from"react/jsx-runtime";var Ts="k-no-data",_e=e=>Os("span",{className:s(Ts,e.className),children:e.children});var B="list",Z=B;import{jsx as fe,jsxs as go}from"react/jsx-runtime";var kt="k-list",ys=[],gs={size:[a.small,a.medium,a.large]},ko={size:a.medium},k=e=>{let{size:t=ko.size,virtualization:o,children:i,optionLabel:r,customValue:p,screenReaders:m,...u}=e,d,f,h,x,b=[];return i?i.map((A,T)=>{A.type===R?(A.props.root===!0?(d=A.props.label,A.props.children.map((I,y)=>{b.push(fe(S,{...I.props},`optChild-${y}-${new Date().getTime()}`))})):A.props.children.forEach((I,y)=>{let v="";y===0&&(v=A.props.label),b.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:b})):A.type===S&&(b.push(fe(S,{...A.props},`${A.type}-${T}`)),h=fe(Ne,{virtualization:o,children:b}),m&&(x=go(_e,{className:"k-sr-only",children:[b.length," items found."]})))}):x=fe(_e,{children:"No data found."}),go("div",{...u,className:s(e.className,kt,L(kt,{size:t}),{"k-virtual-list":o}),children:[r,p,f,h,x]})};k.states=ys;k.options=gs;k.className=kt;k.defaultOptions=ko;k.moduleName=B;k.folderName=Z;import{jsx as Rs}from"react/jsx-runtime";var Ko="k-list-container",ks=[],Ks={},_s={},he=e=>{let{...t}=e;return Rs("div",{...t,className:s(e.className,Ko),children:e.children})};he.states=ks;he.options=Ks;he.className=Ko;he.defaultOptions=_s;he.moduleName=B;he.folderName=Z;import{jsx as se,jsxs as Ps}from"react/jsx-runtime";var Kt="k-list",Hs=[],zs={size:[a.small,a.medium,a.large]},_o={size:a.medium},U=e=>{let{size:t=_o.size,virtualization:o,children:i,...r}=e,p,m,u,d=[];return i?i.map((f,h)=>{f.type===R?(f.props.root===!0?(p=f.props.label,f.props.children.map((x,b)=>{d.push(se(S,{...x.props},`optChild-${b}-${new Date().getTime()}`))})):(d.push(se(Ro,{...f.props,children:f.props.label},`listChild-${h}`)),f.props.children.map((x,b)=>{d.push(se(S,{...x.props},`fwOptChild-${b}-${new Date().getTime()}`))})),m=se(R,{label:p,virtualization:o,children:d})):f.type===S&&(d.push(se(S,{...f.props},`${f.type}-${h}`)),u=se(Ne,{virtualization:o,children:d}))}):u=se(_e,{children:"No data found."}),Ps("div",{...r,className:s(e.className,Kt,L(Kt,{size:t}),{"k-virtual-list":o}),children:[m,u]})};U.states=Hs;U.options=zs;U.className=Kt;U.defaultOptions=_o;U.moduleName=B;U.folderName=Z;var ie="checkbox",xe=ie;import{jsx as Ho}from"react/jsx-runtime";var Ye="k-checkbox",Ds=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],ws={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full]},_t={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:h=_t.size,rounded:x=_t.rounded,...b}=e;return Ho("span",{className:"k-checkbox-wrap",children:Ho("input",{...b,id:t,type:"checkbox",defaultChecked:o,required:f,className:s(e.className,Ye,L(Ye,{size:h,rounded:x}),O(Ye,{hover:r,focus:p,disabled:m,invalid:u,valid:d,indeterminate:i,checked:o}))})})};H.states=Ds;H.options=ws;H.className=Ye;H.defaultOptions=_t;H.moduleName=ie;H.folderName=xe;import{jsx as Fs}from"react/jsx-runtime";var zo="k-checkbox-list",Bs=[],Us={},Po={layout:"vertical"},j=e=>{let{layout:t=Po.layout,...o}=e;return Fs("ul",{...o,className:s(e.className,zo,{[`k-list-${t}`]:t}),children:e.children})};j.states=Bs;j.options=Us;j.className=zo;j.defaultOptions=Po;j.moduleName=ie;j.folderName=xe;import{jsx as Gs}from"react/jsx-runtime";var Do="k-checkbox-list-item",Vs=[],$s={},Xs={},ee=e=>{let{...t}=e;return Gs("li",{...t,className:s(e.className,Do),children:e.children})};ee.states=Vs;ee.options=$s;ee.className=Do;ee.defaultOptions=Xs;ee.moduleName=ie;ee.folderName=xe;import{Fragment as Hc,jsx as Rc,jsxs as zc}from"react/jsx-runtime";import{Fragment as Uc,jsx as Bc,jsxs as Fc}from"react/jsx-runtime";import{Fragment as Jc,jsx as Gc,jsxs as qc}from"react/jsx-runtime";import{Fragment as jc,jsx as Zc,jsxs as ed}from"react/jsx-runtime";import{jsx as sd}from"react/jsx-runtime";import{jsx as ld}from"react/jsx-runtime";import{jsx as Ze,jsxs as Qs}from"react/jsx-runtime";var Ht="k-list-item",Js=[n.hover,n.focus,n.selected,n.disabled],qs={},Ws={},S=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:p,showCheckbox:m,checked:u,hover:d,focus:f,selected:h,disabled:x,...b}=e,A=t||e.children;return Qs("li",{...b,className:s(e.className,i?"k-list-group-item":Ht,O(Ht,{hover:d,focus:f,disabled:x,selected:h})),children:[m&&Ze(H,{checked:u}),r&&Ze(M,{icon:p}),Ze("span",{className:"k-list-item-text",children:A}),o&&o!==""&&Ze("div",{className:"k-list-item-group-label",children:o})]})};S.states=Js;S.options=qs;S.className=Ht;S.defaultOptions=Ws;S.moduleName=B;S.folderName=Z;import{jsx as zt,jsxs as Zs}from"react/jsx-runtime";var Ys="k-list-content",Ne=e=>{let{virtualization:t,...o}=e;return Zs("div",{...o,className:s(Ys,e.className),children:[zt("ul",{className:s("k-list-ul"),children:e.children}),t&&zt("div",{className:"k-height-container",children:zt("div",{})})]})};import{jsx as wo}from"react/jsx-runtime";var js="k-list-group-sticky-header",Bo=e=>wo("div",{className:s(js,e.className),children:wo("div",{className:"k-list-header-text",children:e.children})});import{Fragment as ei,jsx as Uo,jsxs as ti}from"react/jsx-runtime";var R=e=>{let{virtualization:t,label:o}=e;return ti(ei,{children:[o&&Uo(Bo,{children:o}),e.children&&Uo(Ne,{virtualization:t,children:e.children})]})};import{jsx as Fo}from"react/jsx-runtime";var oi="k-list-group-item",Ro=e=>Fo("li",{className:s(oi,e.className),children:Fo("span",{className:"k-list-item-text",children:e.children})});import{jsx as ai}from"react/jsx-runtime";var Pt="k-list-optionlabel",ni=[n.hover,n.focus,n.selected,n.disabled],si={},ii={},je=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:p,...m}=e;return ai("div",{...m,className:s(Pt,O(Pt,{hover:o,focus:i,selected:r,disabled:p})),children:t})};je.states=ni;je.options=si;je.className=Pt;je.defaultOptions=ii;import{jsx as mi}from"react/jsx-runtime";var Dt="k-list-custom-value",ri=[n.hover,n.focus,n.selected,n.disabled],li={},pi={},Le=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:p,...m}=e;return mi("div",{...m,className:s(Dt,O(Dt,{hover:o,focus:i,selected:r,disabled:p})),children:t})};Le.states=ri;Le.options=li;Le.className=Dt;Le.defaultOptions=pi;import{jsx as Gd}from"react/jsx-runtime";import{jsx as Qd}from"react/jsx-runtime";import{jsx as eu,jsxs as tu}from"react/jsx-runtime";import{jsx as iu,jsxs as au}from"react/jsx-runtime";import{jsx as mu}from"react/jsx-runtime";import{jsx as fu,jsxs as Nu}from"react/jsx-runtime";import{jsx as bu,jsxs as Au}from"react/jsx-runtime";var wt="multiselect",Vo=wt;import{Fragment as et,jsx as C,jsxs as be}from"react/jsx-runtime";var $o="k-multiselect",ci=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],di={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[N.solid,N.flat,N.outline]},Re={size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},ae=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:h,showArrowButton:x,hover:b,focus:A,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,opened:tt,adaptive:Go,adaptiveSettings:Jo,adaptiveTitle:qo,adaptiveSubtitle:Wo,adaptiveCustomValue:Qo,...Yo}=e;return be(et,{children:[be(E,{...Yo,size:t,rounded:o,fillMode:i,hover:b,focus:A,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,className:s(e.className,$o),children:[p&&be(et,{children:[C(Ve,{children:p}),r&&C(le,{})]}),be("div",{className:"k-input-values",children:[C($,{size:t,children:C(et,{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(et,{children:[r&&C(le,{}),C($e,{children:m})]}),x&&C(g,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:i})]}),tt&&h&&C(X,{className:"k-list-container k-multiselect-popup",children:h}),Go&&C(w,{adaptive:!0,...Jo,header:C(Y,{actionsEnd:C(g,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:u,inputPlaceholder:d,title:qo,subtitle:Wo}),children:C("div",{className:"k-list-container",children:be(k,{customValue:Qo?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"})]})})})]})};ae.states=ci;ae.options=di;ae.className=$o;ae.defaultOptions=Re;ae.moduleName=wt;ae.folderName=Vo;var Xo=ae;import{jsx as ui}from"react/jsx-runtime";var ju=e=>ui(Xo,{...e});export{ju as MultiSelectNormal};