UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 29.9 kB
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: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":N&&!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"},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 jo}from"react/jsx-runtime";var ze="k-input",Yo=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Zo={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 jo("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=Yo;E.options=Zo;E.className=ze;E.defaultOptions=Pe;E.moduleName=Me;E.folderName=He;import{jsx as on}from"react/jsx-runtime";var De="k-picker",en=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],tn={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},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:N=we.fillMode,...x}=e;return on("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})};re.states=en;re.options=tn;re.className=De;re.defaultOptions=we;re.moduleName=Me;re.folderName=He;import{Fragment as rn,jsx as Ut}from"react/jsx-runtime";var ot="k-font-icon",nn=[],sn={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]},an={},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(rn,{})};Se.states=nn;Se.options=sn;Se.className=ot;Se.defaultOptions=an;var Ft=Se;import{Fragment as mn,jsx as Be}from"react/jsx-runtime";var nt="k-svg-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]},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(mn,{});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=ln;Ee.options=pn;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",cn=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),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]},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:cn(`${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=dn;M.options=un;M.defaultOptions=at;M.className=Ue;M.moduleName=$t;M.folderName=Xt;import{Fragment as Nn,jsx as rt}from"react/jsx-runtime";var Jt="k-clear-value",fn=[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(Nn,{}):rt("span",{className:s(e.className,Jt),children:rt(M,{icon:"x"})})};z.states=fn;z.options=hn;z.className=Jt;import{jsx as bn}from"react/jsx-runtime";var lt="k-input-inner",xn=[],Ln={},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 bn("input",{...p,type:o,className:s(e.className,lt,L(lt,e)),placeholder:i,autoComplete:r,defaultValue:t})};P.states=xn;P.options=Ln;P.className=lt;import{jsx as qt,jsxs as Sn}from"react/jsx-runtime";var pt="k-input-inner",An=[],Mn={},mt=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:p,...m}=e;return Sn("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=An;mt.options=Mn;mt.className=pt;import{jsx as Cn}from"react/jsx-runtime";var ct="k-input-inner",En=[],vn={},Wt={value:"",placeholder:""},dt=e=>{let{value:t=Wt.value,placeholder:o=Wt.placeholder,rows:i,...r}=e;return Cn("textarea",{...r,className:s(e.className,ct,L(ct,e)),placeholder:o,rows:i,defaultValue:t})};dt.states=En;dt.options=vn;dt.className=ct;import{Fragment as Tn,jsx as Qt}from"react/jsx-runtime";var Yt="k-input-loading-icon",In=[n.disabled,n.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?Qt(Tn,{}):Qt("span",{className:s(e.className,Yt,"k-icon k-i-loading")})};F.states=In;F.className=Yt;import{Fragment as gn,jsx as Zt}from"react/jsx-runtime";var jt="k-input-validation-icon",On=[n.valid,n.invalid,n.disabled,n.loading],yn={},D=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,p=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?Zt(gn,{}):Zt(M,{className:s(jt),icon:p})};D.states=On;D.options=yn;D.className=jt;import{Fragment as _n,jsx as eo}from"react/jsx-runtime";var kn="k-input-prefix",Kn={direction:"horizontal"},Ve=e=>{let{direction:t=Kn.direction,...o}=e;return e.children?eo("span",{...o,className:s(kn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):eo(_n,{})};import{Fragment as zn,jsx as to}from"react/jsx-runtime";var Rn="k-input-suffix",Hn={direction:"horizontal"},$e=e=>{let{direction:t=Hn.direction,...o}=e;return e.children?to("span",{...o,className:s(Rn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):to(zn,{})};import{jsx as Ma}from"react/jsx-runtime";import{jsx as Ca}from"react/jsx-runtime";import{jsx as Dn}from"react/jsx-runtime";var oo="k-input-separator",Pn={direction:"vertical"},le=e=>{let{direction:t=Pn.direction,...o}=e;return Dn("span",{...o,className:s(oo,e.className,{[`${oo}-${t}`]:t})})};var ut="button",no=ut;import{Fragment as Fn,jsx as Ce,jsxs as so}from"react/jsx-runtime";var Ie="k-button",wn=["icon-button"],Bn=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Un={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]},te={size:a.medium,rounded:c.medium,fillMode:h.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:N,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:N,disabled:b,selected:x}),{"k-icon-button":!T&&!K&&v}),children:[A&&Ce(M,{className:s(I,"k-button-icon"),icon:A}),T?so(Fn,{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=Bn;g.options=Un;g.variants=wn;g.className=Ie;g.defaultOptions=te;g.moduleName=ut;g.folderName=no;import{jsx as Za}from"react/jsx-runtime";import{jsx as or}from"react/jsx-runtime";import{jsx as ar}from"react/jsx-runtime";import{jsx as Nr}from"react/jsx-runtime";var ft="avatar",io=ft;import{jsx as ao}from"react/jsx-runtime";var Te="k-avatar";var Vn=[n.hover,n.focus,n.active,n.selected,n.disabled],$n={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]},oe={type:"text",size:a.medium,rounded:c.full,fillMode:h.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=Vn;V.options=$n;V.className=Te;V.defaultOptions=oe;V.moduleName=ft;V.folderName=io;import{jsx as Cr}from"react/jsx-runtime";import{jsx as yr}from"react/jsx-runtime";import{jsx as _r}from"react/jsx-runtime";var Oe="chip",Xe=Oe;import{jsx as pe,jsxs as Jn}from"react/jsx-runtime";var Ge="k-chip",Xn=[n.hover,n.focus,n.active,n.selected,n.disabled],Gn={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]},me={size:a.medium,rounded:c.medium,fillMode:h.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:N,focus:x,active:b,selected:A,disabled:T,...I}=e;return Jn("div",{...I,className:s(e.className,Ge,L(Ge,{size:t,rounded:o,fillMode:i,themeColor:r}),O(Ge,{hover:N,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=Xn;ce.options=Gn;ce.className=Ge;ce.defaultOptions=me;ce.moduleName=Oe;ce.folderName=Xe;import{jsx as Qn}from"react/jsx-runtime";var ht="k-chip-list",qn=[],Wn={size:[a.small,a.medium,a.large]},lo={size:a.medium},$=e=>{let{size:t=lo.size,...o}=e;return Qn("div",{...o,className:s(e.className,ht,L(ht,{size:t})),children:e.children})};$.states=qn;$.options=Wn;$.className=ht;$.defaultOptions=lo;$.moduleName=Oe;$.folderName=Xe;import{jsx as jr}from"react/jsx-runtime";import{jsx as nl}from"react/jsx-runtime";import{jsx as rl}from"react/jsx-runtime";import{jsx as dl}from"react/jsx-runtime";import{Fragment as Ll,jsx as xl,jsxs as bl}from"react/jsx-runtime";var Nt="popup",po=Nt;import{jsx as mo}from"react/jsx-runtime";var co="k-animation-container",Zn=[],jn={},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=Zn;_.options=jn;_.className=co;_.defaultOptions=uo;_.moduleName=Nt;_.folderName=po;var xt="popup",fo=xt;import{jsx as ho}from"react/jsx-runtime";var No="k-popup",es=[],ts={},xo={positionMode:"absolute"},X=e=>{let{offset:t,positionMode:o=xo.positionMode,animationStyle:i,...r}=e;return ho(_,{positionMode:o,offset:t,animationStyle:i,children:ho("div",{...r,className:s(e.className,No),children:e.children})})};X.states=es;X.options=ts;X.className=No;X.defaultOptions=xo;X.moduleName=xt;X.folderName=fo;var Lt="action-buttons",Lo=Lt;import{jsx as ss}from"react/jsx-runtime";var qe="k-actions",os=[],ns={},bt={alignment:"start",orientation:"horizontal"},G=e=>{let{alignment:t=bt.alignment,orientation:o=bt.orientation,...i}=e;return ss("div",{...i,className:s(qe,{[`${qe}-${t}`]:t,[`${qe}-${o}`]:o},e.className),children:e.children})};G.states=os;G.options=ns;G.className=qe;G.defaultOptions=bt;G.moduleName=Lt;G.folderName=Lo;import{jsx as as}from"react/jsx-runtime";var is="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 as(r,{...p,...!i&&{alignment:t,orientation:o},className:s(e.className,is),children:e.children})};var Mt="searchbox",Ao=Mt;import{jsx as ye,jsxs as ps}from"react/jsx-runtime";var Mo="k-searchbox",rs=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],ls={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.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:N,loading:x,disabled:b,showIcon:A=St.showIcon,icon:T=St.icon,...I}=e;return ps(E,{...I,size:i,rounded:r,fillMode:p,hover:m,focus:u,valid:d,invalid:f,required:N,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=rs;J.options=ls;J.className=Mo;J.defaultOptions=St;J.moduleName=Mt;J.folderName=Ao;import{jsx as dp}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",ms=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],cs={size:[a.small,a.medium,a.large],rounded:[c.small,c.medium,c.large,c.full],fillMode:[h.solid,h.flat,h.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:N,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:N,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:N}),d&&vt(Eo,{children:[r&&q(le,{}),q($e,{children:d})]})]})};W.states=ms;W.options=cs;W.className=vo;W.defaultOptions=ne;W.moduleName=Et;W.folderName=So;import{jsx as Cp}from"react/jsx-runtime";import{Fragment as kp,jsx as gp}from"react/jsx-runtime";import{Fragment as Dp,jsx as Pp}from"react/jsx-runtime";import{jsx as Q,jsxs as Ct}from"react/jsx-runtime";var Io="k-actionsheet-titlebar",ds={},Y=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 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}),!N&&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})]}),N&&Q("div",{className:"k-actionsheet-title",children:N}),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=ds;import{jsx as It,jsxs as Ns}from"react/jsx-runtime";var Tt="k-actionsheet-view",us=[],fs={},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 Ns("div",{...m,className:s(e.className,Tt,{[`${Tt}-animated`]:o}),children:[u,It("div",{className:"k-actionsheet-content",children:i}),d]})};de.states=us;de.options=fs;de.className=Tt;de.defaultOptions=hs;var ge="action-sheet",We=ge;import{jsx as Qe,jsxs as bs}from"react/jsx-runtime";var To="k-actionsheet",xs=[],Ls={},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 bs("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=xs;w.options=Ls;w.className=To;w.defaultOptions=ke;w.moduleName=ge;w.folderName=We;import{jsx as Es}from"react/jsx-runtime";var Oo="k-actionsheet-container",As=[],Ms={},Ss={},ue=e=>{let{children:t,...o}=e;return Es("div",{...o,className:Oo,children:t})};ue.states=As;ue.options=Ms;ue.className=Oo;ue.defaultOptions=Ss;ue.moduleName=ge;ue.folderName=We;import{jsx as um}from"react/jsx-runtime";import{Fragment as Cs,jsx as Ke,jsxs as Ot}from"react/jsx-runtime";var yt="k-actionsheet-item",vs=[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(Cs,{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=vs;gt.className=yt;import{jsx as Sm,jsxs as Em}from"react/jsx-runtime";import{jsx 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 Ts}from"react/jsx-runtime";var Is="k-no-data",_e=e=>Ts("span",{className:s(Is,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",Os=[],ys={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,N,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}`)),N=fe(he,{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,N,x]})};k.states=Os;k.options=ys;k.className=kt;k.defaultOptions=ko;k.moduleName=B;k.folderName=Z;import{jsx as _s}from"react/jsx-runtime";var Ko="k-list-container",gs=[],ks={},Ks={},Ne=e=>{let{...t}=e;return _s("div",{...t,className:s(e.className,Ko),children:e.children})};Ne.states=gs;Ne.options=ks;Ne.className=Ko;Ne.defaultOptions=Ks;Ne.moduleName=B;Ne.folderName=Z;import{jsx as se,jsxs as zs}from"react/jsx-runtime";var Kt="k-list",Rs=[],Hs={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,N)=>{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-${N}`)),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}-${N}`)),u=se(he,{virtualization:o,children:d}))}):u=se(_e,{children:"No data found."}),zs("div",{...r,className:s(e.className,Kt,L(Kt,{size:t}),{"k-virtual-list":o}),children:[m,u]})};U.states=Rs;U.options=Hs;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",Ps=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],Ds={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:N=_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:N,rounded:x}),O(Ye,{hover:r,focus:p,disabled:m,invalid:u,valid:d,indeterminate:i,checked:o}))})})};H.states=Ps;H.options=Ds;H.className=Ye;H.defaultOptions=_t;H.moduleName=ie;H.folderName=xe;import{jsx as Us}from"react/jsx-runtime";var zo="k-checkbox-list",ws=[],Bs={},Po={layout:"vertical"},j=e=>{let{layout:t=Po.layout,...o}=e;return Us("ul",{...o,className:s(e.className,zo,{[`k-list-${t}`]:t}),children:e.children})};j.states=ws;j.options=Bs;j.className=zo;j.defaultOptions=Po;j.moduleName=ie;j.folderName=xe;import{jsx as Xs}from"react/jsx-runtime";var Do="k-checkbox-list-item",Fs=[],Vs={},$s={},ee=e=>{let{...t}=e;return Xs("li",{...t,className:s(e.className,Do),children:e.children})};ee.states=Fs;ee.options=Vs;ee.className=Do;ee.defaultOptions=$s;ee.moduleName=ie;ee.folderName=xe;import{Fragment as _c,jsx as Kc,jsxs as Rc}from"react/jsx-runtime";import{Fragment as wc,jsx as Dc,jsxs as Bc}from"react/jsx-runtime";import{Fragment as Xc,jsx as $c,jsxs as Gc}from"react/jsx-runtime";import{Fragment as Yc,jsx as Qc,jsxs as Zc}from"react/jsx-runtime";import{jsx as od}from"react/jsx-runtime";import{jsx as ad}from"react/jsx-runtime";import{jsx as Ze,jsxs as Ws}from"react/jsx-runtime";var Ht="k-list-item",Gs=[n.hover,n.focus,n.selected,n.disabled],Js={},qs={},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,...b}=e,A=t||e.children;return Ws("li",{...b,className:s(e.className,i?"k-list-group-item":Ht,O(Ht,{hover:d,focus:f,disabled:x,selected:N})),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=Gs;S.options=Js;S.className=Ht;S.defaultOptions=qs;S.moduleName=B;S.folderName=Z;import{jsx as zt,jsxs as Ys}from"react/jsx-runtime";var Qs="k-list-content",he=e=>{let{virtualization:t,...o}=e;return Ys("div",{...o,className:s(Qs,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 Zs="k-list-group-sticky-header",Bo=e=>wo("div",{className:s(Zs,e.className),children:wo("div",{className:"k-list-header-text",children:e.children})});import{Fragment as js,jsx as Uo,jsxs as ei}from"react/jsx-runtime";var R=e=>{let{virtualization:t,label:o}=e;return ei(js,{children:[o&&Uo(Bo,{children:o}),e.children&&Uo(he,{virtualization:t,children:e.children})]})};import{jsx as Fo}from"react/jsx-runtime";var ti="k-list-group-item",Ro=e=>Fo("li",{className:s(ti,e.className),children:Fo("span",{className:"k-list-item-text",children:e.children})});import{jsx as ii}from"react/jsx-runtime";var Pt="k-list-optionlabel",oi=[n.hover,n.focus,n.selected,n.disabled],ni={},si={},je=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:p,...m}=e;return ii("div",{...m,className:s(Pt,O(Pt,{hover:o,focus:i,selected:r,disabled:p})),children:t})};je.states=oi;je.options=ni;je.className=Pt;je.defaultOptions=si;import{jsx as pi}from"react/jsx-runtime";var Dt="k-list-custom-value",ai=[n.hover,n.focus,n.selected,n.disabled],ri={},li={},Le=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:p,...m}=e;return pi("div",{...m,className:s(Dt,O(Dt,{hover:o,focus:i,selected:r,disabled:p})),children:t})};Le.states=ai;Le.options=ri;Le.className=Dt;Le.defaultOptions=li;import{jsx as $d}from"react/jsx-runtime";import{jsx as qd}from"react/jsx-runtime";import{jsx as Zd,jsxs as jd}from"react/jsx-runtime";import{jsx as nu,jsxs as su}from"react/jsx-runtime";import{jsx as lu}from"react/jsx-runtime";import{jsx as du,jsxs as uu}from"react/jsx-runtime";import{jsx as xu,jsxs as Lu}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",mi=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],ci={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},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:N,showArrowButton:x,hover:b,focus:A,valid:T,invalid:I,required:y,loading:v,disabled:K,readonly:Ae,opened:tt,adaptive:Xo,adaptiveSettings:Go,adaptiveTitle:Jo,adaptiveSubtitle:qo,adaptiveCustomValue:Wo,...Qo}=e;return be(et,{children:[be(E,{...Qo,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&&N&&C(X,{className:"k-list-container k-multiselect-popup",children:N}),Xo&&C(w,{adaptive:!0,...Go,header:C(Y,{actionsEnd:C(g,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:u,inputPlaceholder:d,title:Jo,subtitle:qo}),children:C("div",{className:"k-list-container",children:be(k,{customValue:Wo?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=mi;ae.options=ci;ae.className=$o;ae.defaultOptions=Re;ae.moduleName=wt;ae.folderName=Vo;var qu=ae;export{$o as MULTISELECT_CLASSNAME,ae as MultiSelect,qu as default};