@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 26.8 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 A=(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"}),T=(e,t)=>{let{valid:o,invalid:i,hover:r,focus:l,checked:p,active:f,selected:c,disabled:d,indeterminate:x,loading:h,empty:b,readonly:S,highlighted:v,...C}=t;return s({"k-valid":o,"k-invalid":i,"k-hover":r,"k-focus":l,"k-checked":p,"k-active":f,"k-selected":c,"k-disabled":d,"k-indeterminate":x&&!p,"k-loading":h,"k-empty":b,"k-readonly":S,"k-highlighted":v},Object.keys(C).reduce((I,E)=>(E.startsWith("k-")?I[E]=C[E]:I[`k-${E}`]=C[E],I),{}))};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"},u={small:"small",medium:"medium",large:"large",full:"full"},N={solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},m={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"};import{Fragment as Po,jsx as Ct}from"react/jsx-runtime";var Ve="k-font-icon",Ko=[],Ro={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Ho={},ue=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:l,...p}=e;return i?Ct("span",{...p,className:s(e.className,Ve,A(Ve,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"})}):Ct(Po,{})};ue.states=Ko;ue.options=Ro;ue.className=Ve;ue.defaultOptions=Ho;var Tt=ue;import{Fragment as wo,jsx as ve}from"react/jsx-runtime";var Ge="k-svg-icon",zo=[],Do={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Ot={viewBox:"0 0 24 24"},fe=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:l=Ot.viewBox,icon:p,...f}=e;if(!p)return ve(wo,{});p==="none"&&{...f,className:s(e.className,Ge,"k-none")};let c=typeof p=="object"&&p.name&&p.name;return ve("span",{...f,className:s(e.className,Ge,A("k-icon",{size:t}),{[`k-svg-i-${c}`]:c,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),children:ve("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:l,dangerouslySetInnerHTML:typeof p=="object"?{__html:p.content}:void 0,children:p?void 0:e.children})})};fe.states=zo;fe.options=Do;fe.className=Ge;fe.defaultOptions=Ot;var Xe=fe;import*as $e from"@progress/kendo-svg-icons";var gt="icon",kt="icons";import{Fragment as yt,jsx as Ne}from"react/jsx-runtime";var Ce="k-icon",Bo=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Uo=[],Fo={size:[a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark]},Je={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:i,type:r=Je.type,rotate:l,flip:p,viewBox:f=Je.viewBox,...c}=e;if(!i)return Ne(yt,{});if(r==="svg"){if(i==="none")return Ne(Xe,{...c,className:s(e.className,Ce),icon:i,size:t});let d=$e[i]?i:Bo(`${i}-icon`);return $e[d]?Ne(Xe,{...c,className:s(e.className,Ce),icon:$e[d],size:t,themeColor:o,rotate:l,flip:p,viewBox:f}):Ne(yt,{})}return Ne(Tt,{...c,className:s(e.className,Ce),icon:i,size:t,themeColor:o,rotate:l,flip:p})};M.states=Uo;M.options=Fo;M.defaultOptions=Je;M.className=Ce;M.moduleName=gt;M.folderName=kt;var qe="button",_t=qe;import{Fragment as $o,jsx as xe,jsxs as Kt}from"react/jsx-runtime";var he="k-button",Vo=["icon-button"],Go=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Xo={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline,N.clear,N.link],themeColor:[m.base,m.primary,m.secondary,m.tertiary,m.success,m.warning,m.error,m.info,m.light,m.dark,m.inverse]},Z={size:a.medium,rounded:u.medium,fillMode:N.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},k=e=>{let{size:t=Z.size,rounded:o=Z.rounded,fillMode:i=Z.fillMode,themeColor:r=Z.themeColor,showArrow:l=Z.showArrow,arrowIconName:p=Z.arrowIconName,variant:f,hover:c,focus:d,active:x,selected:h,disabled:b,icon:S,text:v,iconClassName:C,...I}=e,E=S!==void 0,w=e.children!==void 0;return Kt("button",{...I,className:s(e.className,he,vt(he,f),A(he,{size:t,rounded:o,fillMode:i,themeColor:r}),T(he,{hover:c,focus:d,active:x,disabled:b,selected:h}),{"k-icon-button":!v&&!w&&E}),children:[S&&xe(M,{className:s(C,"k-button-icon"),icon:S}),v?Kt($o,{children:[v&&xe("span",{className:"k-button-text",children:v}),e.children]}):e.children&&xe("span",{className:"k-button-text",children:e.children}),l&&xe("span",{className:"k-menu-button-arrow k-button-arrow",children:xe(M,{icon:p})})]})};k.states=Go;k.options=Xo;k.variants=Vo;k.className=he;k.defaultOptions=Z;k.moduleName=qe;k.folderName=_t;import{jsx as bi}from"react/jsx-runtime";import{jsx as Ei}from"react/jsx-runtime";import{jsx as Ti}from"react/jsx-runtime";var Le="input",Te=Le;import{jsx as Wo}from"react/jsx-runtime";var Oe="k-input",Jo=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],qo={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline]},ge={size:a.medium,rounded:a.medium,fillMode:N.solid},O=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f,size:c=ge.size,rounded:d=ge.rounded,fillMode:x=ge.fillMode,...h}=e;return Wo("span",{...h,className:s(e.className,Oe,A(Oe,{size:c,rounded:d,fillMode:x}),T(Oe,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f}))})};O.states=Jo;O.options=qo;O.className=Oe;O.defaultOptions=ge;O.moduleName=Le;O.folderName=Te;import{jsx as Zo}from"react/jsx-runtime";var ke="k-picker",Qo=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Yo={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline]},ye={size:a.medium,rounded:u.medium,fillMode:N.solid},B=e=>{let{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f,size:c=ye.size,rounded:d=ye.rounded,fillMode:x=ye.fillMode,...h}=e;return Zo("span",{...h,className:s(e.className,ke,A(ke,{size:c,rounded:d,fillMode:x}),T(ke,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:f})),children:e.children})};B.states=Qo;B.options=Yo;B.className=ke;B.defaultOptions=ye;B.moduleName=Le;B.folderName=Te;import{Fragment as tn,jsx as We}from"react/jsx-runtime";var Rt="k-clear-value",jo=[n.disabled,n.loading,n.readonly],en={},j=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?We(tn,{}):We("span",{className:s(e.className,Rt),children:We(M,{icon:"x"})})};j.states=jo;j.options=en;j.className=Rt;import{jsx as sn}from"react/jsx-runtime";var Qe="k-input-inner",on=[],nn={},_e={type:"text",autocomplete:"off",value:"",placeholder:""},ee=e=>{let{value:t=_e.value,type:o=_e.type,placeholder:i=_e.placeholder,autocomplete:r=_e.autocomplete,...l}=e;return sn("input",{...l,type:o,className:s(e.className,Qe,A(Qe,e)),placeholder:i,autoComplete:r,defaultValue:t})};ee.states=on;ee.options=nn;ee.className=Qe;import{jsx as Ht,jsxs as ln}from"react/jsx-runtime";var Ye="k-input-inner",an=[],rn={},be=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:l,...p}=e;return ln("span",{...p,className:s(e.className,Ye,A(Ye,e)),children:[r,!r&&l&&Ht(M,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&Ht("span",{className:"k-input-value-text",children:t})]})};be.states=an;be.options=rn;be.className=Ye;import{jsx as cn}from"react/jsx-runtime";var Ze="k-input-inner",pn=[],mn={},Pt={value:"",placeholder:""},je=e=>{let{value:t=Pt.value,placeholder:o=Pt.placeholder,rows:i,...r}=e;return cn("textarea",{...r,className:s(e.className,Ze,A(Ze,e)),placeholder:o,rows:i,defaultValue:t})};je.states=pn;je.options=mn;je.className=Ze;import{Fragment as un,jsx as zt}from"react/jsx-runtime";var Dt="k-input-loading-icon",dn=[n.disabled,n.loading],U=e=>{let{disabled:t,loading:o}=e;return t||!o?zt(un,{}):zt("span",{className:s(e.className,Dt,"k-icon k-i-loading")})};U.states=dn;U.className=Dt;import{Fragment as xn,jsx as wt}from"react/jsx-runtime";var Bt="k-input-validation-icon",fn=[n.valid,n.invalid,n.disabled,n.loading],Nn={},H=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,l=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?wt(xn,{}):wt(M,{className:s(Bt),icon:l})};H.states=fn;H.options=Nn;H.className=Bt;import{Fragment as bn,jsx as Ut}from"react/jsx-runtime";var hn="k-input-prefix",Ln={direction:"horizontal"},Ke=e=>{let{direction:t=Ln.direction,...o}=e;return e.children?Ut("span",{...o,className:s(hn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ut(bn,{})};import{Fragment as Mn,jsx as Ft}from"react/jsx-runtime";var Sn="k-input-suffix",An={direction:"horizontal"},Re=e=>{let{direction:t=An.direction,...o}=e;return e.children?Ft("span",{...o,className:s(Sn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ft(Mn,{})};import{jsx as La}from"react/jsx-runtime";import{jsx as Ma}from"react/jsx-runtime";import{jsx as In}from"react/jsx-runtime";var Vt="k-input-separator",En={direction:"vertical"},et=e=>{let{direction:t=En.direction,...o}=e;return In("span",{...o,className:s(Vt,e.className,{[`${Vt}-${t}`]:t})})};var tt="popup",Gt=tt;import{jsx as Xt}from"react/jsx-runtime";var $t="k-animation-container",vn=[],Cn={},Jt={positionMode:"absolute"},_=e=>{let{positionMode:t=Jt.positionMode,animationStyle:o,offset:i,...r}=e;return Xt("div",{...r,style:{...i,...e.style},className:s(e.className,$t,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Xt("div",{className:"k-child-animation-container",style:o,children:e.children})})};_.states=vn;_.options=Cn;_.className=$t;_.defaultOptions=Jt;_.moduleName=tt;_.folderName=Gt;var ot="popup",qt=ot;import{jsx as Wt}from"react/jsx-runtime";var Qt="k-popup",Tn=[],On={},Yt={positionMode:"absolute"},F=e=>{let{offset:t,positionMode:o=Yt.positionMode,animationStyle:i,...r}=e;return Wt(_,{positionMode:o,offset:t,animationStyle:i,children:Wt("div",{...r,className:s(e.className,Qt),children:e.children})})};F.states=Tn;F.options=On;F.className=Qt;F.defaultOptions=Yt;F.moduleName=ot;F.folderName=qt;var nt="action-buttons",Zt=nt;import{jsx as yn}from"react/jsx-runtime";var He="k-actions",gn=[],kn={},st={alignment:"start",orientation:"horizontal"},V=e=>{let{alignment:t=st.alignment,orientation:o=st.orientation,...i}=e;return yn("div",{...i,className:s(He,{[`${He}-${t}`]:t,[`${He}-${o}`]:o},e.className),children:e.children})};V.states=gn;V.options=kn;V.className=He;V.defaultOptions=st;V.moduleName=nt;V.folderName=Zt;import{jsx as Kn}from"react/jsx-runtime";var _n="k-actionsheet-footer",jt={alignment:"stretched",orientation:"horizontal"},it=e=>{let{alignment:t=jt.alignment,orientation:o=jt.orientation,template:i,as:r=i?"div":V,...l}=e;return Kn(r,{...l,...!i&&{alignment:t,orientation:o},className:s(e.className,_n),children:e.children})};var at="searchbox",eo=at;import{jsx as Se,jsxs as Pn}from"react/jsx-runtime";var to="k-searchbox",Rn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],Hn={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline]},rt={showIcon:!0,icon:"search",size:O.defaultOptions.size,rounded:O.defaultOptions.rounded,fillMode:O.defaultOptions.fillMode},G=e=>{let{value:t,placeholder:o,size:i,rounded:r,fillMode:l,hover:p,focus:f,valid:c,invalid:d,required:x,loading:h,disabled:b,showIcon:S=rt.showIcon,icon:v=rt.icon,...C}=e;return Pn(O,{...C,size:i,rounded:r,fillMode:l,hover:p,focus:f,valid:c,invalid:d,required:x,loading:h,disabled:b,className:s(e.className,to),children:[S&&Se(M,{className:"k-input-icon",icon:v}),Se(ee,{placeholder:o,value:t}),Se(U,{...e}),Se(H,{...e}),Se(j,{...e})]})};G.states=Rn;G.options=Hn;G.className=to;G.defaultOptions=rt;G.moduleName=at;G.folderName=eo;import{jsx as Er}from"react/jsx-runtime";var lt="textbox",oo=lt;import{Fragment as no,jsx as X,jsxs as pt}from"react/jsx-runtime";var so="k-textbox",zn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Dn={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline]},te={showClearButton:!0,showValidationIcon:!0,size:O.defaultOptions.size,rounded:O.defaultOptions.rounded,fillMode:O.defaultOptions.fillMode,separators:!0},$=e=>{let{size:t=te.size,rounded:o=te.rounded,fillMode:i=te.fillMode,separators:r=te.separators,showClearButton:l=te.showClearButton,showValidationIcon:p=te.showValidationIcon,prefix:f,suffix:c,type:d,value:x,placeholder:h,hover:b,focus:S,valid:v,invalid:C,required:I,loading:E,disabled:w,readonly:de,...Fe}=e;return pt(O,{...Fe,size:t,rounded:o,fillMode:i,hover:b,focus:S,valid:v,invalid:C,required:I,loading:E,disabled:w,readonly:de,className:s(e.className,so),children:[f&&pt(no,{children:[X(Ke,{children:f}),r&&X(et,{})]}),X(ee,{placeholder:h,value:x,type:d}),p&&X(H,{valid:v,invalid:C,loading:E,disabled:w}),X(U,{loading:E,disabled:w}),l&&X(j,{loading:E,disabled:w,readonly:de,value:x}),c&&pt(no,{children:[r&&X(et,{}),X(Re,{children:c})]})]})};$.states=zn;$.options=Dn;$.className=so;$.defaultOptions=te;$.moduleName=lt;$.folderName=oo;import{jsx as Pr}from"react/jsx-runtime";import{Fragment as Fr,jsx as Ur}from"react/jsx-runtime";import{Fragment as Wr,jsx as qr}from"react/jsx-runtime";import{jsx as J,jsxs as mt}from"react/jsx-runtime";var ao="k-actionsheet-titlebar",wn={},q=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:l,input:p,inputValue:f,inputPlaceholder:c,adaptive:d,children:x,...h}=e;return mt("div",{...h,className:s(e.className,ao),children:[mt("div",{className:"k-actionsheet-titlebar-group",children:[i&&J("div",{className:"k-actionsheet-actions",children:i}),!x&&mt("div",{className:"k-actionsheet-title",children:[t&&J("div",{className:"k-text-center",children:t}),o&&J("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&J("div",{className:"k-actionsheet-title",children:x}),r&&J("div",{className:"k-actionsheet-actions",children:r})]}),(p||l)&&J("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:p?J($,{value:f,placeholder:c,size:d?"large":"medium"}):J(G,{placeholder:"Filter",size:d?"large":"medium"})})]})};q.className=ao;q.defaultOptions=wn;import{jsx as ct,jsxs as Vn}from"react/jsx-runtime";var dt="k-actionsheet-view",Bn=[],Un={},Fn={},ie=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:l,...p}=e,f=r?.type===q&&ct(q,{adaptive:t,...r?.props}),c=l?.type===it&&ct(it,{...l?.props});return Vn("div",{...p,className:s(e.className,dt,{[`${dt}-animated`]:o}),children:[f,ct("div",{className:"k-actionsheet-content",children:i}),c]})};ie.states=Bn;ie.options=Un;ie.className=dt;ie.defaultOptions=Fn;var Ae="action-sheet",Pe=Ae;import{jsx as ze,jsxs as $n}from"react/jsx-runtime";var ro="k-actionsheet",Gn=[],Xn={},Me={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},P=e=>{let{side:t=Me.side,fullscreen:o=Me.fullscreen,adaptive:i=Me.adaptive,overlay:r=Me.overlay,template:l,children:p,header:f,footer:c,...d}=e;return $n("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",{...d,className:s(e.className,ro,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:l||ze(ie,{header:f,footer:c,adaptive:i,...e,children:p})})})]})};P.states=Gn;P.options=Xn;P.className=ro;P.defaultOptions=Me;P.moduleName=Ae;P.folderName=Pe;import{jsx as Qn}from"react/jsx-runtime";var lo="k-actionsheet-container",Jn=[],qn={},Wn={},ae=e=>{let{children:t,...o}=e;return Qn("div",{...o,className:lo,children:t})};ae.states=Jn;ae.options=qn;ae.className=lo;ae.defaultOptions=Wn;ae.moduleName=Ae;ae.folderName=Pe;import{jsx as Il}from"react/jsx-runtime";import{Fragment as Zn,jsx as Ee,jsxs as ut}from"react/jsx-runtime";var ft="k-actionsheet-item",Yn=[n.hover,n.focus,n.selected,n.disabled],Nt=e=>{let{iconName:t,text:o,description:i,hover:r,focus:l,selected:p,disabled:f,...c}=e;return ut("span",{...c,className:s(e.className,ft,T(ft,{hover:r,focus:l,selected:p,disabled:f})),children:[!e.children&&Ee(Zn,{children:ut("span",{className:"k-actionsheet-action",children:[t&&Ee("span",{className:"k-icon-wrap",children:Ee(M,{className:"k-actionsheet-item-icon",icon:t})}),ut("span",{className:"k-actionsheet-item-text",children:[o&&Ee("span",{className:"k-actionsheet-item-title",children:o}),i&&Ee("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};Nt.states=Yn;Nt.className=ft;import{jsx as Kl,jsxs as Rl}from"react/jsx-runtime";import{jsx as Dl}from"react/jsx-runtime";import{jsx as Fl}from"react/jsx-runtime";import{jsx as $l}from"react/jsx-runtime";import{jsx as es}from"react/jsx-runtime";var jn="k-no-data",Ie=e=>es("span",{className:s(jn,e.className),children:e.children});var z="list",W=z;import{jsx as re,jsxs as mo}from"react/jsx-runtime";var xt="k-list",ts=[],os={size:[a.small,a.medium,a.large]},co={size:a.medium},y=e=>{let{size:t=co.size,virtualization:o,children:i,optionLabel:r,customValue:l,screenReaders:p,...f}=e,c,d,x,h,b=[];return i?i.map((S,v)=>{S.type===K?(S.props.root===!0?(c=S.props.label,S.props.children.map((C,I)=>{b.push(re(L,{...C.props},`optChild-${I}-${new Date().getTime()}`))})):S.props.children.forEach((C,I)=>{let E="";I===0&&(E=S.props.label),b.push(re(L,{className:I===0?"k-first":"",...C.props,groupLabel:E},`groupLabel-${I}-${new Date().getTime()}`))}),d=re(K,{label:c,virtualization:o,children:b})):S.type===L&&(b.push(re(L,{...S.props},`${S.type}-${v}`)),x=re(le,{virtualization:o,children:b}),p&&(h=mo(Ie,{className:"k-sr-only",children:[b.length," items found."]})))}):h=re(Ie,{children:"No data found."}),mo("div",{...f,className:s(e.className,xt,A(xt,{size:t}),{"k-virtual-list":o}),children:[r,l,d,x,h]})};y.states=ts;y.options=os;y.className=xt;y.defaultOptions=co;y.moduleName=z;y.folderName=W;import{jsx as as}from"react/jsx-runtime";var uo="k-list-container",ns=[],ss={},is={},pe=e=>{let{...t}=e;return as("div",{...t,className:s(e.className,uo),children:e.children})};pe.states=ns;pe.options=ss;pe.className=uo;pe.defaultOptions=is;pe.moduleName=z;pe.folderName=W;import{jsx as oe,jsxs as ps}from"react/jsx-runtime";var ht="k-list",rs=[],ls={size:[a.small,a.medium,a.large]},fo={size:a.medium},D=e=>{let{size:t=fo.size,virtualization:o,children:i,...r}=e,l,p,f,c=[];return i?i.map((d,x)=>{d.type===K?(d.props.root===!0?(l=d.props.label,d.props.children.map((h,b)=>{c.push(oe(L,{...h.props},`optChild-${b}-${new Date().getTime()}`))})):(c.push(oe(No,{...d.props,children:d.props.label},`listChild-${x}`)),d.props.children.map((h,b)=>{c.push(oe(L,{...h.props},`fwOptChild-${b}-${new Date().getTime()}`))})),p=oe(K,{label:l,virtualization:o,children:c})):d.type===L&&(c.push(oe(L,{...d.props},`${d.type}-${x}`)),f=oe(le,{virtualization:o,children:c}))}):f=oe(Ie,{children:"No data found."}),ps("div",{...r,className:s(e.className,ht,A(ht,{size:t}),{"k-virtual-list":o}),children:[p,f]})};D.states=rs;D.options=ls;D.className=ht;D.defaultOptions=fo;D.moduleName=z;D.folderName=W;var ne="checkbox",me=ne;import{jsx as xo}from"react/jsx-runtime";var De="k-checkbox",ms=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],cs={size:[a.small,a.medium,a.large],rounded:[u.small,u.medium,u.large,u.full]},Lt={size:a.medium,rounded:u.medium},R=e=>{let{id:t,checked:o,indeterminate:i,hover:r,focus:l,disabled:p,invalid:f,valid:c,required:d,size:x=Lt.size,rounded:h=Lt.rounded,...b}=e;return xo("span",{className:"k-checkbox-wrap",children:xo("input",{...b,id:t,type:"checkbox",defaultChecked:o,required:d,className:s(e.className,De,A(De,{size:x,rounded:h}),T(De,{hover:r,focus:l,disabled:p,invalid:f,valid:c,indeterminate:i,checked:o}))})})};R.states=ms;R.options=cs;R.className=De;R.defaultOptions=Lt;R.moduleName=ne;R.folderName=me;import{jsx as fs}from"react/jsx-runtime";var ho="k-checkbox-list",ds=[],us={},Lo={layout:"vertical"},Q=e=>{let{layout:t=Lo.layout,...o}=e;return fs("ul",{...o,className:s(e.className,ho,{[`k-list-${t}`]:t}),children:e.children})};Q.states=ds;Q.options=us;Q.className=ho;Q.defaultOptions=Lo;Q.moduleName=ne;Q.folderName=me;import{jsx as Ls}from"react/jsx-runtime";var bo="k-checkbox-list-item",Ns=[],xs={},hs={},Y=e=>{let{...t}=e;return Ls("li",{...t,className:s(e.className,bo),children:e.children})};Y.states=Ns;Y.options=xs;Y.className=bo;Y.defaultOptions=hs;Y.moduleName=ne;Y.folderName=me;import{Fragment as Gp,jsx as Vp,jsxs as Xp}from"react/jsx-runtime";import{Fragment as Qp,jsx as Wp,jsxs as Yp}from"react/jsx-runtime";import{Fragment as om,jsx as tm,jsxs as nm}from"react/jsx-runtime";import{Fragment as lm,jsx as rm,jsxs as pm}from"react/jsx-runtime";import{jsx as um}from"react/jsx-runtime";import{jsx as hm}from"react/jsx-runtime";import{jsx as we,jsxs as Ms}from"react/jsx-runtime";var St="k-list-item",bs=[n.hover,n.focus,n.selected,n.disabled],Ss={},As={},L=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:l,showCheckbox:p,checked:f,hover:c,focus:d,selected:x,disabled:h,...b}=e,S=t||e.children;return Ms("li",{...b,className:s(e.className,i?"k-list-group-item":St,T(St,{hover:c,focus:d,disabled:h,selected:x})),children:[p&&we(R,{checked:f}),r&&we(M,{icon:l}),we("span",{className:"k-list-item-text",children:S}),o&&o!==""&&we("div",{className:"k-list-item-group-label",children:o})]})};L.states=bs;L.options=Ss;L.className=St;L.defaultOptions=As;L.moduleName=z;L.folderName=W;import{jsx as At,jsxs as Is}from"react/jsx-runtime";var Es="k-list-content",le=e=>{let{virtualization:t,...o}=e;return Is("div",{...o,className:s(Es,e.className),children:[At("ul",{className:s("k-list-ul"),children:e.children}),t&&At("div",{className:"k-height-container",children:At("div",{})})]})};import{jsx as So}from"react/jsx-runtime";var vs="k-list-group-sticky-header",Ao=e=>So("div",{className:s(vs,e.className),children:So("div",{className:"k-list-header-text",children:e.children})});import{Fragment as Cs,jsx as Mo,jsxs as Ts}from"react/jsx-runtime";var K=e=>{let{virtualization:t,label:o}=e;return Ts(Cs,{children:[o&&Mo(Ao,{children:o}),e.children&&Mo(le,{virtualization:t,children:e.children})]})};import{jsx as Eo}from"react/jsx-runtime";var Os="k-list-group-item",No=e=>Eo("li",{className:s(Os,e.className),children:Eo("span",{className:"k-list-item-text",children:e.children})});import{jsx as _s}from"react/jsx-runtime";var Mt="k-list-optionlabel",gs=[n.hover,n.focus,n.selected,n.disabled],ks={},ys={},Be=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return _s("div",{...p,className:s(Mt,T(Mt,{hover:o,focus:i,selected:r,disabled:l})),children:t})};Be.states=gs;Be.options=ks;Be.className=Mt;Be.defaultOptions=ys;import{jsx as Ps}from"react/jsx-runtime";var Et="k-list-custom-value",Ks=[n.hover,n.focus,n.selected,n.disabled],Rs={},Hs={},Ue=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return Ps("div",{...p,className:s(Et,T(Et,{hover:o,focus:i,selected:r,disabled:l})),children:t})};Ue.states=Ks;Ue.options=Rs;Ue.className=Et;Ue.defaultOptions=Hs;import{jsx as tc}from"react/jsx-runtime";import{jsx as ic}from"react/jsx-runtime";import{jsx as pc,jsxs as mc}from"react/jsx-runtime";import{jsx as fc,jsxs as Nc}from"react/jsx-runtime";import{jsx as bc}from"react/jsx-runtime";import{jsx as Ec,jsxs as Ic}from"react/jsx-runtime";import{jsx as Oc,jsxs as gc}from"react/jsx-runtime";var Io="dropdown-list",vo="dropdownlist";import{Fragment as ws,jsx as g,jsxs as It}from"react/jsx-runtime";var Co="k-dropdownlist",zs=[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:[u.small,u.medium,u.large,u.full],fillMode:[N.solid,N.flat,N.outline]},ce={showValue:!0,arrowIconName:"caret-alt-down",size:a.medium,rounded:u.medium,fillMode:N.solid},se=e=>{let{size:t=ce.size,rounded:o=ce.rounded,fillMode:i=ce.fillMode,arrowIconName:r=ce.arrowIconName,showValue:l=ce.showValue,valueIconName:p,prefix:f,suffix:c,value:d,placeholder:x,hover:h,focus:b,valid:S,invalid:v,required:C,loading:I,disabled:E,readonly:w,popup:de,opened:Fe,adaptive:To,adaptiveSettings:Oo,adaptiveTitle:go,adaptiveSubtitle:ko,adaptiveFilter:yo,..._o}=e;return It(ws,{children:[It(B,{..._o,size:t,rounded:o,fillMode:i,hover:h,focus:b,valid:S,invalid:v,required:C,loading:I,disabled:E,readonly:w,className:s(e.className,Co,{"k-icon-picker":!l&&p}),children:[g(Ke,{children:f}),g(be,{placeholder:x,value:d,showValue:l,valueIconName:p}),g(H,{valid:S,invalid:v,loading:I,disabled:E}),g(U,{loading:I,disabled:E}),g(Re,{children:c}),g(k,{className:"k-input-button",icon:r,rounded:null,size:e.size,fillMode:e.fillMode})]}),Fe&&de&&g(F,{className:"k-list-container k-dropdownlist-popup",children:de}),To&&g(P,{adaptive:!0,...Oo,header:g(q,{actionsEnd:g(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),filter:yo,inputValue:d,inputPlaceholder:x,title:go,subtitle:ko}),children:g("div",{className:"k-list-container",children:It(y,{size:"large",children:[g(L,{text:"List item"}),g(L,{text:"List item"}),g(L,{text:"List item"})]})})})]})};se.states=zs;se.options=Ds;se.className=Co;se.defaultOptions=ce;se.moduleName=Io;se.folderName=vo;var sd=se;export{Co as DROPDOWNLIST_CLASSNAME,se as DropdownList,sd as default};