@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 27 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 gt(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 zo}from"react/jsx-runtime";var Oe="k-input",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]},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 zo("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=Ro;E.options=Po;E.className=Oe;E.defaultOptions=ge;E.moduleName=ue;E.folderName=Te;import{jsx as wo}from"react/jsx-runtime";var ke="k-picker",Do=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Bo={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 wo("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=Do;se.options=Bo;se.className=ke;se.defaultOptions=ye;se.moduleName=ue;se.folderName=Te;import{Fragment as Go,jsx as kt}from"react/jsx-runtime";var Ge="k-font-icon",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]},Vo={},fe=e=>{let{size:t,themeColor:o,icon:i,rotate:r,flip:l,...p}=e;return i?kt("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"})}):kt(Go,{})};fe.states=Uo;fe.options=Fo;fe.className=Ge;fe.defaultOptions=Vo;var yt=fe;import{Fragment as Jo,jsx as _e}from"react/jsx-runtime";var $e="k-svg-icon",$o=[],Xo={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]},_t={viewBox:"0 0 24 24"},xe=e=>{let{size:t,themeColor:o,rotate:i,flip:r,viewBox:l=_t.viewBox,icon:p,...d}=e;if(!p)return _e(Jo,{});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=$o;xe.options=Xo;xe.className=$e;xe.defaultOptions=_t;var Xe=xe;import*as Je from"@progress/kendo-svg-icons";var Kt="icon",Ht="icons";import{Fragment as Rt,jsx as Ne}from"react/jsx-runtime";var Ke="k-icon",qo=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Wo=[],Qo={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(Rt,{});if(r==="svg"){if(i==="none")return Ne(Xe,{...c,className:s(e.className,Ke),icon:i,size:t});let u=Je[i]?i:qo(`${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(Rt,{})}return Ne(yt,{...c,className:s(e.className,Ke),icon:i,size:t,themeColor:o,rotate:l,flip:p})};M.states=Wo;M.options=Qo;M.defaultOptions=qe;M.className=Ke;M.moduleName=Kt;M.folderName=Ht;import{Fragment as jo,jsx as We}from"react/jsx-runtime";var Pt="k-clear-value",Yo=[n.disabled,n.loading,n.readonly],Zo={},P=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?We(jo,{}):We("span",{className:s(e.className,Pt),children:We(M,{icon:"x"})})};P.states=Yo;P.options=Zo;P.className=Pt;import{jsx as on}from"react/jsx-runtime";var Qe="k-input-inner",en=[],tn={},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 on("input",{...l,type:o,className:s(e.className,Qe,S(Qe,e)),placeholder:i,autoComplete:r,defaultValue:t})};z.states=en;z.options=tn;z.className=Qe;import{jsx as zt,jsxs as an}from"react/jsx-runtime";var Ye="k-input-inner",nn=[],sn={},Ze=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:l,...p}=e;return an("span",{...p,className:s(e.className,Ye,S(Ye,e)),children:[r,!r&&l&&zt(M,{className:"k-input-value-icon",icon:l}),i&&!t&&o,i&&t&&zt("span",{className:"k-input-value-text",children:t})]})};Ze.states=nn;Ze.options=sn;Ze.className=Ye;import{jsx as pn}from"react/jsx-runtime";var je="k-input-inner",rn=[],ln={},Dt={value:"",placeholder:""},et=e=>{let{value:t=Dt.value,placeholder:o=Dt.placeholder,rows:i,...r}=e;return pn("textarea",{...r,className:s(e.className,je,S(je,e)),placeholder:o,rows:i,defaultValue:t})};et.states=rn;et.options=ln;et.className=je;import{Fragment as cn,jsx as Bt}from"react/jsx-runtime";var wt="k-input-loading-icon",mn=[n.disabled,n.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?Bt(cn,{}):Bt("span",{className:s(e.className,wt,"k-icon k-i-loading")})};F.states=mn;F.className=wt;import{Fragment as fn,jsx as Ut}from"react/jsx-runtime";var Ft="k-input-validation-icon",dn=[n.valid,n.invalid,n.disabled,n.loading],un={},D=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,l=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?Ut(fn,{}):Ut(M,{className:s(Ft),icon:l})};D.states=dn;D.options=un;D.className=Ft;import{Fragment as hn,jsx as Vt}from"react/jsx-runtime";var xn="k-input-prefix",Nn={direction:"horizontal"},Re=e=>{let{direction:t=Nn.direction,...o}=e;return e.children?Vt("span",{...o,className:s(xn,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Vt(hn,{})};import{Fragment as An,jsx as Gt}from"react/jsx-runtime";var Ln="k-input-suffix",bn={direction:"horizontal"},Pe=e=>{let{direction:t=bn.direction,...o}=e;return e.children?Gt("span",{...o,className:s(Ln,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Gt(An,{})};import{jsx as Zi}from"react/jsx-runtime";import{jsx as oa}from"react/jsx-runtime";import{jsx as Mn}from"react/jsx-runtime";var $t="k-input-separator",Sn={direction:"vertical"},ie=e=>{let{direction:t=Sn.direction,...o}=e;return Mn("span",{...o,className:s($t,e.className,{[`${$t}-${t}`]:t})})};var tt="popup",Xt=tt;import{jsx as Jt}from"react/jsx-runtime";var qt="k-animation-container",En=[],In={},Wt={positionMode:"absolute"},_=e=>{let{positionMode:t=Wt.positionMode,animationStyle:o,offset:i,...r}=e;return Jt("div",{...r,style:{...i,...e.style},className:s(e.className,qt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:Jt("div",{className:"k-child-animation-container",style:o,children:e.children})})};_.states=En;_.options=In;_.className=qt;_.defaultOptions=Wt;_.moduleName=tt;_.folderName=Xt;var ot="popup",Qt=ot;import{jsx as Yt}from"react/jsx-runtime";var Zt="k-popup",vn=[],Cn={},jt={positionMode:"absolute"},V=e=>{let{offset:t,positionMode:o=jt.positionMode,animationStyle:i,...r}=e;return Yt(_,{positionMode:o,offset:t,animationStyle:i,children:Yt("div",{...r,className:s(e.className,Zt),children:e.children})})};V.states=vn;V.options=Cn;V.className=Zt;V.defaultOptions=jt;V.moduleName=ot;V.folderName=Qt;var nt="action-buttons",eo=nt;import{jsx as gn}from"react/jsx-runtime";var ze="k-actions",Tn=[],On={},st={alignment:"start",orientation:"horizontal"},G=e=>{let{alignment:t=st.alignment,orientation:o=st.orientation,...i}=e;return gn("div",{...i,className:s(ze,{[`${ze}-${t}`]:t,[`${ze}-${o}`]:o},e.className),children:e.children})};G.states=Tn;G.options=On;G.className=ze;G.defaultOptions=st;G.moduleName=nt;G.folderName=eo;import{jsx as yn}from"react/jsx-runtime";var kn="k-actionsheet-footer",to={alignment:"stretched",orientation:"horizontal"},it=e=>{let{alignment:t=to.alignment,orientation:o=to.orientation,template:i,as:r=i?"div":G,...l}=e;return yn(r,{...l,...!i&&{alignment:t,orientation:o},className:s(e.className,kn),children:e.children})};var at="searchbox",oo=at;import{jsx as he,jsxs as Hn}from"react/jsx-runtime";var no="k-searchbox",_n=[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 Hn(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,no),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=_n;$.options=Kn;$.className=no;$.defaultOptions=rt;$.moduleName=at;$.folderName=oo;import{jsx as nr}from"react/jsx-runtime";var lt="textbox",so=lt;import{Fragment as io,jsx as X,jsxs as pt}from"react/jsx-runtime";var ao="k-textbox",Rn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Pn={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,ao),children:[d&&pt(io,{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(io,{children:[r&&X(ie,{}),X(Pe,{children:c})]})]})};J.states=Rn;J.options=Pn;J.className=ao;J.defaultOptions=j;J.moduleName=lt;J.folderName=so;import{jsx as Nr}from"react/jsx-runtime";import{Fragment as Mr,jsx as Sr}from"react/jsx-runtime";var mt="button",lo=mt;import{Fragment as wn,jsx as Le,jsxs as po}from"react/jsx-runtime";var be="k-button",zn=["icon-button"],Dn=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Bn={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 po("button",{...O,className:s(e.className,be,gt(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?po(wn,{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=Dn;k.options=Bn;k.variants=zn;k.className=be;k.defaultOptions=ee;k.moduleName=mt;k.folderName=lo;import{jsx as _r}from"react/jsx-runtime";import{jsx as Pr}from"react/jsx-runtime";import{jsx as Un}from"react/jsx-runtime";var ct=e=>Un(k,{children:"Button",...e});import{Fragment as Qr,jsx as Wr}from"react/jsx-runtime";import{jsx as q,jsxs as dt}from"react/jsx-runtime";var mo="k-actionsheet-titlebar",Fn={},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 dt("div",{...h,className:s(e.className,mo),children:[dt("div",{className:"k-actionsheet-titlebar-group",children:[i&&q("div",{className:"k-actionsheet-actions",children:i}),!N&&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})]}),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=mo;W.defaultOptions=Fn;import{jsx as ut,jsxs as Xn}from"react/jsx-runtime";var ft="k-actionsheet-view",Vn=[],Gn={},$n={},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===it&&ut(it,{...l?.props});return Xn("div",{...p,className:s(e.className,ft,{[`${ft}-animated`]:o}),children:[d,ut("div",{className:"k-actionsheet-content",children:i}),c]})};ae.states=Vn;ae.options=Gn;ae.className=ft;ae.defaultOptions=$n;var Ae="action-sheet",De=Ae;import{jsx as Be,jsxs as Wn}from"react/jsx-runtime";var co="k-actionsheet",Jn=[],qn={},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 Wn("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,co,{[`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=Jn;B.options=qn;B.className=co;B.defaultOptions=Se;B.moduleName=Ae;B.folderName=De;import{jsx as jn}from"react/jsx-runtime";var uo="k-actionsheet-container",Qn=[],Yn={},Zn={},re=e=>{let{children:t,...o}=e;return jn("div",{...o,className:uo,children:t})};re.states=Qn;re.options=Yn;re.className=uo;re.defaultOptions=Zn;re.moduleName=Ae;re.folderName=De;import{jsx as vl}from"react/jsx-runtime";import{Fragment as ts,jsx as Me,jsxs as xt}from"react/jsx-runtime";var Nt="k-actionsheet-item",es=[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(ts,{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=es;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 ns}from"react/jsx-runtime";var os="k-no-data",Ee=e=>ns("span",{className:s(os,e.className),children:e.children});var w="list",Q=w;import{jsx as le,jsxs as xo}from"react/jsx-runtime";var Lt="k-list",ss=[],is={size:[a.small,a.medium,a.large]},No={size:a.medium},y=e=>{let{size:t=No.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=xo(Ee,{className:"k-sr-only",children:[L.length," items found."]})))}):h=le(Ee,{children:"No data found."}),xo("div",{...d,className:s(e.className,Lt,S(Lt,{size:t}),{"k-virtual-list":o}),children:[r,l,u,N,h]})};y.states=ss;y.options=is;y.className=Lt;y.defaultOptions=No;y.moduleName=w;y.folderName=Q;import{jsx as ps}from"react/jsx-runtime";var ho="k-list-container",as=[],rs={},ls={},me=e=>{let{...t}=e;return ps("div",{...t,className:s(e.className,ho),children:e.children})};me.states=as;me.options=rs;me.className=ho;me.defaultOptions=ls;me.moduleName=w;me.folderName=Q;import{jsx as te,jsxs as ds}from"react/jsx-runtime";var bt="k-list",ms=[],cs={size:[a.small,a.medium,a.large]},Lo={size:a.medium},U=e=>{let{size:t=Lo.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(bo,{...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."}),ds("div",{...r,className:s(e.className,bt,S(bt,{size:t}),{"k-virtual-list":o}),children:[p,d]})};U.states=ms;U.options=cs;U.className=bt;U.defaultOptions=Lo;U.moduleName=w;U.folderName=Q;var oe="checkbox",ce=oe;import{jsx as Ao}from"react/jsx-runtime";var we="k-checkbox",us=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],fs={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:N=At.size,rounded:h=At.rounded,...L}=e;return Ao("span",{className:"k-checkbox-wrap",children:Ao("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=us;H.options=fs;H.className=we;H.defaultOptions=At;H.moduleName=oe;H.folderName=ce;import{jsx as hs}from"react/jsx-runtime";var So="k-checkbox-list",xs=[],Ns={},Mo={layout:"vertical"},Y=e=>{let{layout:t=Mo.layout,...o}=e;return hs("ul",{...o,className:s(e.className,So,{[`k-list-${t}`]:t}),children:e.children})};Y.states=xs;Y.options=Ns;Y.className=So;Y.defaultOptions=Mo;Y.moduleName=oe;Y.folderName=ce;import{jsx as Ss}from"react/jsx-runtime";var Eo="k-checkbox-list-item",Ls=[],bs={},As={},Z=e=>{let{...t}=e;return Ss("li",{...t,className:s(e.className,Eo),children:e.children})};Z.states=Ls;Z.options=bs;Z.className=Eo;Z.defaultOptions=As;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 vs}from"react/jsx-runtime";var Mt="k-list-item",Ms=[n.hover,n.focus,n.selected,n.disabled],Es={},Is={},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 vs("li",{...L,className:s(e.className,i?"k-list-group-item":Mt,g(Mt,{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=Ms;b.options=Es;b.className=Mt;b.defaultOptions=Is;b.moduleName=w;b.folderName=Q;import{jsx as Et,jsxs as Ts}from"react/jsx-runtime";var Cs="k-list-content",pe=e=>{let{virtualization:t,...o}=e;return Ts("div",{...o,className:s(Cs,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 Io}from"react/jsx-runtime";var Os="k-list-group-sticky-header",vo=e=>Io("div",{className:s(Os,e.className),children:Io("div",{className:"k-list-header-text",children:e.children})});import{Fragment as gs,jsx as Co,jsxs as ks}from"react/jsx-runtime";var K=e=>{let{virtualization:t,label:o}=e;return ks(gs,{children:[o&&Co(vo,{children:o}),e.children&&Co(pe,{virtualization:t,children:e.children})]})};import{jsx as To}from"react/jsx-runtime";var ys="k-list-group-item",bo=e=>To("li",{className:s(ys,e.className),children:To("span",{className:"k-list-item-text",children:e.children})});import{jsx as Rs}from"react/jsx-runtime";var It="k-list-optionlabel",_s=[n.hover,n.focus,n.selected,n.disabled],Ks={},Hs={},Fe=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})};Fe.states=_s;Fe.options=Ks;Fe.className=It;Fe.defaultOptions=Hs;import{jsx as Bs}from"react/jsx-runtime";var vt="k-list-custom-value",Ps=[n.hover,n.focus,n.selected,n.disabled],zs={},Ds={},de=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return Bs("div",{...p,className:s(vt,g(vt,{hover:o,focus:i,selected:r,disabled:l})),children:t})};de.states=Ps;de.options=zs;de.className=vt;de.defaultOptions=Ds;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",Oo=Ct;import{Fragment as Tt,jsx as T,jsxs as Ie}from"react/jsx-runtime";var go="k-autocomplete",ws=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Us={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:yo,adaptiveSubtitle:_o,adaptiveCustomValue:Ko,...Ho}=e;return Ie(Tt,{children:[Ie(E,{...Ho,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,go),children:[l&&Ie(Tt,{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(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,...Ve,header:T(W,{actionsEnd:T(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:d,inputPlaceholder:c,title:yo,subtitle:_o}),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=ws;ne.options=Us;ne.className=go;ne.defaultOptions=ve;ne.moduleName=Ct;ne.folderName=Oo;var ko=ne;import{Fragment as Fs,jsx as Ot}from"react/jsx-runtime";var pd=e=>Ot(ko,{suffix:Ot(Fs,{children:Ot(ct,{fillMode:"clear",children:"Search"})}),...e});export{pd as AutocompleteSuffix};