UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

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