@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 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:N,loading:h,empty:L,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":N&&!p,"k-loading":h,"k-empty":L,"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 Tt(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 Ho}from"react/jsx-runtime";var Oe="k-input",_o=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ko={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:N=ge.fillMode,...h}=e;return Ho("span",{...h,className:s(e.className,Oe,S(Oe,{size:c,rounded:u,fillMode:N}),g(Oe,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:d}))})};E.states=_o;E.options=Ko;E.className=Oe;E.defaultOptions=ge;E.moduleName=ue;E.folderName=Te;import{jsx as zo}from"react/jsx-runtime";var ke="k-picker",Ro=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Po={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:N=ye.fillMode,...h}=e;return zo("span",{...h,className:s(e.className,ke,S(ke,{size:c,rounded:u,fillMode:N}),g(ke,{hover:t,focus:o,disabled:i,invalid:r,valid:l,loading:p,readonly:d})),children:e.children})};se.states=Ro;se.options=Po;se.className=ke;se.defaultOptions=ye;se.moduleName=ue;se.folderName=Te;import{Fragment as Uo,jsx as Ot}from"react/jsx-runtime";var Ge="k-font-icon",Do=[],Bo={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]},wo={},fe=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:l,...p}=e;return i?Ot("span",{...p,className:s(e.className,Ge,S(Ge,{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"})}):Ot(Uo,{})};fe.states=Do;fe.options=Bo;fe.className=Ge;fe.defaultOptions=wo;var gt=fe;import{Fragment as Go,jsx as _e}from"react/jsx-runtime";var $e="k-svg-icon",Fo=[],Vo={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]},kt={viewBox:"0 0 24 24"},xe=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:l=kt.viewBox,icon:p,...d}=e;if(!p)return _e(Go,{});p==="none"&&{...d,className:s(e.className,$e,"k-none")};let c=typeof p=="object"&&p.name&&p.name;return _e("span",{...d,className:s(e.className,$e,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=Fo;xe.options=Vo;xe.className=$e;xe.defaultOptions=kt;var Xe=xe;import*as Je from"@progress/kendo-svg-icons";var yt="icon",_t="icons";import{Fragment as Kt,jsx as Ne}from"react/jsx-runtime";var Ke="k-icon",$o=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Xo=[],Jo={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]},qe={viewBox:"0 0 24 24",type:"svg"},M=e=>{let{size:t,themeColor:o,icon:i,type:r=qe.type,rotate:l,flip:p,viewBox:d=qe.viewBox,...c}=e;if(!i)return Ne(Kt,{});if(r==="svg"){if(i==="none")return Ne(Xe,{...c,className:s(e.className,Ke),icon:i,size:t});let u=Je[i]?i:$o(`${i}-icon`);return Je[u]?Ne(Xe,{...c,className:s(e.className,Ke),icon:Je[u],size:t,themeColor:o,rotate:l,flip:p,viewBox:d}):Ne(Kt,{})}return Ne(gt,{...c,className:s(e.className,Ke),icon:i,size:t,themeColor:o,rotate:l,flip:p})};M.states=Xo;M.options=Jo;M.defaultOptions=qe;M.className=Ke;M.moduleName=yt;M.folderName=_t;import{Fragment as Qo,jsx as We}from"react/jsx-runtime";var Ht="k-clear-value",qo=[n.disabled,n.loading,n.readonly],Wo={},P=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?We(Qo,{}):We("span",{className:s(e.className,Ht),children:We(M,{icon:"x"})})};P.states=qo;P.options=Wo;P.className=Ht;import{jsx as jo}from"react/jsx-runtime";var Qe="k-input-inner",Yo=[],Zo={},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 jo("input",{...l,type:o,className:s(e.className,Qe,S(Qe,e)),placeholder:i,autoComplete:r,defaultValue:t})};z.states=Yo;z.options=Zo;z.className=Qe;import{jsx as Rt,jsxs as on}from"react/jsx-runtime";var Ye="k-input-inner",en=[],tn={},Ze=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:l,...p}=e;return on("span",{...p,className:s(e.className,Ye,S(Ye,e)),children:[r,!r&&l&&Rt(M,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&Rt("span",{className:"k-input-value-text",children:t})]})};Ze.states=en;Ze.options=tn;Ze.className=Ye;import{jsx as an}from"react/jsx-runtime";var je="k-input-inner",nn=[],sn={},Pt={value:"",placeholder:""},et=e=>{let{value:t=Pt.value,placeholder:o=Pt.placeholder,rows:i,...r}=e;return an("textarea",{...r,className:s(e.className,je,S(je,e)),placeholder:o,rows:i,defaultValue:t})};et.states=nn;et.options=sn;et.className=je;import{Fragment as ln,jsx as zt}from"react/jsx-runtime";var Dt="k-input-loading-icon",rn=[n.disabled,n.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?zt(ln,{}):zt("span",{className:s(e.className,Dt,"k-icon k-i-loading")})};F.states=rn;F.className=Dt;import{Fragment as cn,jsx as Bt}from"react/jsx-runtime";var wt="k-input-validation-icon",pn=[n.valid,n.invalid,n.disabled,n.loading],mn={},D=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,l=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?Bt(cn,{}):Bt(M,{className:s(wt),icon:l})};D.states=pn;D.options=mn;D.className=wt;import{Fragment as fn,jsx as Ut}from"react/jsx-runtime";var dn="k-input-prefix",un={direction:"horizontal"},Re=e=>{let{direction:t=un.direction,...o}=e;return e.children?Ut("span",{...o,className:s(dn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ut(fn,{})};import{Fragment as hn,jsx as Ft}from"react/jsx-runtime";var xn="k-input-suffix",Nn={direction:"horizontal"},Pe=e=>{let{direction:t=Nn.direction,...o}=e;return e.children?Ft("span",{...o,className:s(xn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ft(hn,{})};import{jsx as Ji}from"react/jsx-runtime";import{jsx as Yi}from"react/jsx-runtime";import{jsx as bn}from"react/jsx-runtime";var Vt="k-input-separator",Ln={direction:"vertical"},ie=e=>{let{direction:t=Ln.direction,...o}=e;return bn("span",{...o,className:s(Vt,e.className,{[`${Vt}-${t}`]:t})})};var tt="popup",Gt=tt;import{jsx as $t}from"react/jsx-runtime";var Xt="k-animation-container",An=[],Sn={},Jt={positionMode:"absolute"},_=e=>{let{positionMode:t=Jt.positionMode,animationStyle:o,offset:i,...r}=e;return $t("div",{...r,style:{...i,...e.style},className:s(e.className,Xt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:$t("div",{className:"k-child-animation-container",style:o,children:e.children})})};_.states=An;_.options=Sn;_.className=Xt;_.defaultOptions=Jt;_.moduleName=tt;_.folderName=Gt;var ot="popup",qt=ot;import{jsx as Wt}from"react/jsx-runtime";var Qt="k-popup",Mn=[],En={},Yt={positionMode:"absolute"},V=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})})};V.states=Mn;V.options=En;V.className=Qt;V.defaultOptions=Yt;V.moduleName=ot;V.folderName=qt;var nt="action-buttons",Zt=nt;import{jsx as Cn}from"react/jsx-runtime";var ze="k-actions",In=[],vn={},st={alignment:"start",orientation:"horizontal"},G=e=>{let{alignment:t=st.alignment,orientation:o=st.orientation,...i}=e;return Cn("div",{...i,className:s(ze,{[`${ze}-${t}`]:t,[`${ze}-${o}`]:o},e.className),children:e.children})};G.states=In;G.options=vn;G.className=ze;G.defaultOptions=st;G.moduleName=nt;G.folderName=Zt;import{jsx as On}from"react/jsx-runtime";var Tn="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":G,...l}=e;return On(r,{...l,...!i&&{alignment:t,orientation:o},className:s(e.className,Tn),children:e.children})};var at="searchbox",eo=at;import{jsx as he,jsxs as yn}from"react/jsx-runtime";var to="k-searchbox",gn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],kn={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},rt={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:N,loading:h,disabled:L,showIcon:A=rt.showIcon,icon:v=rt.icon,...I}=e;return yn(E,{...I,size:i,rounded:r,fillMode:l,hover:p,focus:d,valid:c,invalid:u,required:N,loading:h,disabled:L,className:s(e.className,to),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=gn;$.options=kn;$.className=to;$.defaultOptions=rt;$.moduleName=at;$.folderName=eo;import{jsx as Za}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",_n=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Kn={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:N,placeholder:h,hover:L,focus:A,valid:v,invalid:I,required:O,loading:C,disabled:R,readonly:Ce,...Ve}=e;return pt(E,{...Ve,size:t,rounded:o,fillMode:i,hover:L,focus:A,valid:v,invalid:I,required:O,loading:C,disabled:R,readonly:Ce,className:s(e.className,so),children:[d&&pt(no,{children:[X(Re,{children:d}),r&&X(ie,{})]}),X(z,{placeholder:h,value:N,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:N}),c&&pt(no,{children:[r&&X(ie,{}),X(Pe,{children:c})]})]})};J.states=_n;J.options=Kn;J.className=so;J.defaultOptions=j;J.moduleName=lt;J.folderName=oo;import{jsx as cr}from"react/jsx-runtime";import{Fragment as hr,jsx as Nr}from"react/jsx-runtime";var mt="button",ao=mt;import{Fragment as zn,jsx as Le,jsxs as ro}from"react/jsx-runtime";var be="k-button",Hn=["icon-button"],Rn=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Pn={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"},k=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:N,selected:h,disabled:L,icon:A,text:v,iconClassName:I,...O}=e,C=A!==void 0,R=e.children!==void 0;return ro("button",{...O,className:s(e.className,be,Tt(be,d),S(be,{size:t,rounded:o,fillMode:i,themeColor:r}),g(be,{hover:c,focus:u,active:N,disabled:L,selected:h}),{"k-icon-button":!v&&!R&&C}),children:[A&&Le(M,{className:s(I,"k-button-icon"),icon:A}),v?ro(zn,{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})})]})};k.states=Rn;k.options=Pn;k.variants=Hn;k.className=be;k.defaultOptions=ee;k.moduleName=mt;k.folderName=ao;import{jsx as Tr}from"react/jsx-runtime";import{jsx as yr}from"react/jsx-runtime";import{jsx as Rr}from"react/jsx-runtime";import{Fragment as Jr,jsx as Xr}from"react/jsx-runtime";import{jsx as q,jsxs as ct}from"react/jsx-runtime";var lo="k-actionsheet-titlebar",Dn={},W=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:r,filter:l,input:p,inputValue:d,inputPlaceholder:c,adaptive:u,children:N,...h}=e;return ct("div",{...h,className:s(e.className,lo),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})]}),(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=lo;W.defaultOptions=Dn;import{jsx as dt,jsxs as Fn}from"react/jsx-runtime";var ut="k-actionsheet-view",Bn=[],wn={},Un={},ae=e=>{let{adaptive:t,animated:o,children:i,header:r,footer:l,...p}=e,d=r?.type===W&&dt(W,{adaptive:t,...r?.props}),c=l?.type===it&&dt(it,{...l?.props});return Fn("div",{...p,className:s(e.className,ut,{[`${ut}-animated`]:o}),children:[d,dt("div",{className:"k-actionsheet-content",children:i}),c]})};ae.states=Bn;ae.options=wn;ae.className=ut;ae.defaultOptions=Un;var Ae="action-sheet",De=Ae;import{jsx as Be,jsxs as $n}from"react/jsx-runtime";var po="k-actionsheet",Vn=[],Gn={},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 $n("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,po,{[`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=Vn;B.options=Gn;B.className=po;B.defaultOptions=Se;B.moduleName=Ae;B.folderName=De;import{jsx as Wn}from"react/jsx-runtime";var mo="k-actionsheet-container",Xn=[],Jn={},qn={},re=e=>{let{children:t,...o}=e;return Wn("div",{...o,className:mo,children:t})};re.states=Xn;re.options=Jn;re.className=mo;re.defaultOptions=qn;re.moduleName=Ae;re.folderName=De;import{jsx as Ml}from"react/jsx-runtime";import{Fragment as Yn,jsx as Me,jsxs as ft}from"react/jsx-runtime";var xt="k-actionsheet-item",Qn=[n.hover,n.focus,n.selected,n.disabled],Nt=e=>{let{iconName:t,text:o,description:i,hover:r,focus:l,selected:p,disabled:d,...c}=e;return ft("span",{...c,className:s(e.className,xt,g(xt,{hover:r,focus:l,selected:p,disabled:d})),children:[!e.children&&Me(Yn,{children:ft("span",{className:"k-actionsheet-action",children:[t&&Me("span",{className:"k-icon-wrap",children:Me(M,{className:"k-actionsheet-item-icon",icon:t})}),ft("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]})};Nt.states=Qn;Nt.className=xt;import{jsx as yl,jsxs as _l}from"react/jsx-runtime";import{jsx as Pl}from"react/jsx-runtime";import{jsx as wl}from"react/jsx-runtime";import{jsx as Gl}from"react/jsx-runtime";import{jsx as jn}from"react/jsx-runtime";var Zn="k-no-data",Ee=e=>jn("span",{className:s(Zn,e.className),children:e.children});var w="list",Q=w;import{jsx as le,jsxs as uo}from"react/jsx-runtime";var ht="k-list",es=[],ts={size:[a.small,a.medium,a.large]},fo={size:a.medium},y=e=>{let{size:t=fo.size,virtualization:o,children:i,optionLabel:r,customValue:l,screenReaders:p,...d}=e,c,u,N,h,L=[];return i?i.map((A,v)=>{A.type===K?(A.props.root===!0?(c=A.props.label,A.props.children.map((I,O)=>{L.push(le(b,{...I.props},`optChild-${O}-${new Date().getTime()}`))})):A.props.children.forEach((I,O)=>{let C="";O===0&&(C=A.props.label),L.push(le(b,{className:O===0?"k-first":"",...I.props,groupLabel:C},`groupLabel-${O}-${new Date().getTime()}`))}),u=le(K,{label:c,virtualization:o,children:L})):A.type===b&&(L.push(le(b,{...A.props},`${A.type}-${v}`)),N=le(pe,{virtualization:o,children:L}),p&&(h=uo(Ee,{className:"k-sr-only",children:[L.length," items found."]})))}):h=le(Ee,{children:"No data found."}),uo("div",{...d,className:s(e.className,ht,S(ht,{size:t}),{"k-virtual-list":o}),children:[r,l,u,N,h]})};y.states=es;y.options=ts;y.className=ht;y.defaultOptions=fo;y.moduleName=w;y.folderName=Q;import{jsx as is}from"react/jsx-runtime";var xo="k-list-container",os=[],ns={},ss={},me=e=>{let{...t}=e;return is("div",{...t,className:s(e.className,xo),children:e.children})};me.states=os;me.options=ns;me.className=xo;me.defaultOptions=ss;me.moduleName=w;me.folderName=Q;import{jsx as te,jsxs as ls}from"react/jsx-runtime";var Lt="k-list",as=[],rs={size:[a.small,a.medium,a.large]},No={size:a.medium},U=e=>{let{size:t=No.size,virtualization:o,children:i,...r}=e,l,p,d,c=[];return i?i.map((u,N)=>{u.type===K?(u.props.root===!0?(l=u.props.label,u.props.children.map((h,L)=>{c.push(te(b,{...h.props},`optChild-${L}-${new Date().getTime()}`))})):(c.push(te(ho,{...u.props,children:u.props.label},`listChild-${N}`)),u.props.children.map((h,L)=>{c.push(te(b,{...h.props},`fwOptChild-${L}-${new Date().getTime()}`))})),p=te(K,{label:l,virtualization:o,children:c})):u.type===b&&(c.push(te(b,{...u.props},`${u.type}-${N}`)),d=te(pe,{virtualization:o,children:c}))}):d=te(Ee,{children:"No data found."}),ls("div",{...r,className:s(e.className,Lt,S(Lt,{size:t}),{"k-virtual-list":o}),children:[p,d]})};U.states=as;U.options=rs;U.className=Lt;U.defaultOptions=No;U.moduleName=w;U.folderName=Q;var oe="checkbox",ce=oe;import{jsx as Lo}from"react/jsx-runtime";var we="k-checkbox",ps=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],ms={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full]},bt={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:N=bt.size,rounded:h=bt.rounded,...L}=e;return Lo("span",{className:"k-checkbox-wrap",children:Lo("input",{...L,id:t,type:"checkbox",defaultChecked:o,required:u,className:s(e.className,we,S(we,{size:N,rounded:h}),g(we,{hover:r,focus:l,disabled:p,invalid:d,valid:c,indeterminate:i,checked:o}))})})};H.states=ps;H.options=ms;H.className=we;H.defaultOptions=bt;H.moduleName=oe;H.folderName=ce;import{jsx as us}from"react/jsx-runtime";var bo="k-checkbox-list",cs=[],ds={},Ao={layout:"vertical"},Y=e=>{let{layout:t=Ao.layout,...o}=e;return us("ul",{...o,className:s(e.className,bo,{[`k-list-${t}`]:t}),children:e.children})};Y.states=cs;Y.options=ds;Y.className=bo;Y.defaultOptions=Ao;Y.moduleName=oe;Y.folderName=ce;import{jsx as hs}from"react/jsx-runtime";var So="k-checkbox-list-item",fs=[],xs={},Ns={},Z=e=>{let{...t}=e;return hs("li",{...t,className:s(e.className,So),children:e.children})};Z.states=fs;Z.options=xs;Z.className=So;Z.defaultOptions=Ns;Z.moduleName=oe;Z.folderName=ce;import{Fragment as Fp,jsx as Up,jsxs as Vp}from"react/jsx-runtime";import{Fragment as qp,jsx as Jp,jsxs as Wp}from"react/jsx-runtime";import{Fragment as em,jsx as jp,jsxs as tm}from"react/jsx-runtime";import{Fragment as am,jsx as im,jsxs as rm}from"react/jsx-runtime";import{jsx as cm}from"react/jsx-runtime";import{jsx as xm}from"react/jsx-runtime";import{jsx as Ue,jsxs as Ss}from"react/jsx-runtime";var St="k-list-item",Ls=[n.hover,n.focus,n.selected,n.disabled],bs={},As={},b=e=>{let{text:t,groupLabel:o,group:i,showIcon:r,iconName:l,showCheckbox:p,checked:d,hover:c,focus:u,selected:N,disabled:h,...L}=e,A=t||e.children;return Ss("li",{...L,className:s(e.className,i?"k-list-group-item":St,g(St,{hover:c,focus:u,disabled:h,selected:N})),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})]})};b.states=Ls;b.options=bs;b.className=St;b.defaultOptions=As;b.moduleName=w;b.folderName=Q;import{jsx as Mt,jsxs as Es}from"react/jsx-runtime";var Ms="k-list-content",pe=e=>{let{virtualization:t,...o}=e;return Es("div",{...o,className:s(Ms,e.className),children:[Mt("ul",{className:s("k-list-ul"),children:e.children}),t&&Mt("div",{className:"k-height-container",children:Mt("div",{})})]})};import{jsx as Mo}from"react/jsx-runtime";var Is="k-list-group-sticky-header",Eo=e=>Mo("div",{className:s(Is,e.className),children:Mo("div",{className:"k-list-header-text",children:e.children})});import{Fragment as vs,jsx as Io,jsxs as Cs}from"react/jsx-runtime";var K=e=>{let{virtualization:t,label:o}=e;return Cs(vs,{children:[o&&Io(Eo,{children:o}),e.children&&Io(pe,{virtualization:t,children:e.children})]})};import{jsx as vo}from"react/jsx-runtime";var Ts="k-list-group-item",ho=e=>vo("li",{className:s(Ts,e.className),children:vo("span",{className:"k-list-item-text",children:e.children})});import{jsx as ys}from"react/jsx-runtime";var Et="k-list-optionlabel",Os=[n.hover,n.focus,n.selected,n.disabled],gs={},ks={},Fe=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return ys("div",{...p,className:s(Et,g(Et,{hover:o,focus:i,selected:r,disabled:l})),children:t})};Fe.states=Os;Fe.options=gs;Fe.className=Et;Fe.defaultOptions=ks;import{jsx as Rs}from"react/jsx-runtime";var It="k-list-custom-value",_s=[n.hover,n.focus,n.selected,n.disabled],Ks={},Hs={},de=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return Rs("div",{...p,className:s(It,g(It,{hover:o,focus:i,selected:r,disabled:l})),children:t})};de.states=_s;de.options=Ks;de.className=It;de.defaultOptions=Hs;import{jsx as jm}from"react/jsx-runtime";import{jsx as nc}from"react/jsx-runtime";import{jsx as rc,jsxs as lc}from"react/jsx-runtime";import{jsx as dc,jsxs as uc}from"react/jsx-runtime";import{jsx as hc}from"react/jsx-runtime";import{jsx as Sc,jsxs as Mc}from"react/jsx-runtime";import{jsx as Cc,jsxs as Tc}from"react/jsx-runtime";var vt="autocomplete",Co=vt;import{Fragment as Ct,jsx as T,jsxs as Ie}from"react/jsx-runtime";var To="k-autocomplete",Ps=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],zs={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:N,valid:h,invalid:L,required:A,loading:v,disabled:I,popup:O,opened:C,readonly:R,adaptive:Ce,adaptiveSettings:Ve,adaptiveTitle:Oo,adaptiveSubtitle:go,adaptiveCustomValue:ko,...yo}=e;return Ie(Ct,{children:[Ie(E,{...yo,size:t,rounded:o,fillMode:i,hover:u,focus:N,valid:h,invalid:L,required:A,loading:v,disabled:I,readonly:R,className:s(e.className,To),children:[l&&Ie(Ct,{children:[T(Re,{children:l}),r&&T(ie,{})]}),T(z,{placeholder:c,value:d}),T(D,{valid:h,invalid:L,loading:v,disabled:I}),T(F,{loading:v,disabled:I}),T(P,{loading:v,disabled:I,readonly:R,value:d}),p&&Ie(Ct,{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,...Ve,header:T(W,{actionsEnd:T(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:d,inputPlaceholder:c,title:Oo,subtitle:go}),children:T("div",{className:"k-list-container",children:Ie(y,{customValue:ko?T(de,{text:`Use "${d}"`}):void 0,size:"large",children:[T(b,{text:"List item"}),T(b,{text:"List item"}),T(b,{text:"List item"})]})})})]})};ne.states=Ps;ne.options=zs;ne.className=To;ne.defaultOptions=ve;ne.moduleName=vt;ne.folderName=Co;var od=ne;export{To as AUTOCOMPLETE_CLASSNAME,ne as Autocomplete,od as default};