UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

2 lines (1 loc) 26.9 kB
var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,i)=>t[i]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var M=(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:S,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":S,"k-highlighted":v},Object.keys(I).reduce((O,T)=>(T.startsWith("k-")?O[T]=I[T]:O[`k-${T}`]=I[T],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,M(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,M(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 Xe="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,Xe,M(Xe,{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=Xe;fe.defaultOptions=wo;var gt=fe;import{Fragment as Xo,jsx as _e}from"react/jsx-runtime";var Ge="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(Xo,{});p==="none"&&{...d,className:s(e.className,Ge,"k-none")};let c=typeof p=="object"&&p.name&&p.name;return _e("span",{...d,className:s(e.className,Ge,M("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=Ge;xe.defaultOptions=kt;var $e=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",Go=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),$o=[],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"},A=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($e,{...c,className:s(e.className,Ke),icon:i,size:t});let u=Je[i]?i:Go(`${i}-icon`);return Je[u]?Ne($e,{...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})};A.states=$o;A.options=Jo;A.defaultOptions=qe;A.className=Ke;A.moduleName=yt;A.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(A,{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,M(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,M(Ye,e)),children:[r,!r&&l&&Rt(A,{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,M(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(A,{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="button",Xt=tt;import{Fragment as En,jsx as he,jsxs as Gt}from"react/jsx-runtime";var Le="k-button",Sn=["icon-button"],Mn=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],An={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]},j={size:a.medium,rounded:f.medium,fillMode:x.solid,themeColor:m.base,showArrow:!1,arrowIconName:"caret-alt-down"},k=e=>{let{size:t=j.size,rounded:o=j.rounded,fillMode:i=j.fillMode,themeColor:r=j.themeColor,showArrow:l=j.showArrow,arrowIconName:p=j.arrowIconName,variant:d,hover:c,focus:u,active:N,selected:h,disabled:L,icon:S,text:v,iconClassName:I,...O}=e,T=S!==void 0,R=e.children!==void 0;return Gt("button",{...O,className:s(e.className,Le,Tt(Le,d),M(Le,{size:t,rounded:o,fillMode:i,themeColor:r}),g(Le,{hover:c,focus:u,active:N,disabled:L,selected:h}),{"k-icon-button":!v&&!R&&T}),children:[S&&he(A,{className:s(I,"k-button-icon"),icon:S}),v?Gt(En,{children:[v&&he("span",{className:"k-button-text",children:v}),e.children]}):e.children&&he("span",{className:"k-button-text",children:e.children}),l&&he("span",{className:"k-menu-button-arrow k-button-arrow",children:he(A,{icon:p})})]})};k.states=Mn;k.options=An;k.variants=Sn;k.className=Le;k.defaultOptions=j;k.moduleName=tt;k.folderName=Xt;import{jsx as Ia}from"react/jsx-runtime";import{jsx as Oa}from"react/jsx-runtime";import{jsx as _a}from"react/jsx-runtime";var ot="popup",$t=ot;import{jsx as Jt}from"react/jsx-runtime";var qt="k-animation-container",In=[],vn={},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=In;_.options=vn;_.className=qt;_.defaultOptions=Wt;_.moduleName=ot;_.folderName=$t;var nt="popup",Qt=nt;import{jsx as Yt}from"react/jsx-runtime";var Zt="k-popup",Cn=[],Tn={},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=Cn;V.options=Tn;V.className=Zt;V.defaultOptions=jt;V.moduleName=nt;V.folderName=Qt;var st="action-buttons",eo=st;import{jsx as kn}from"react/jsx-runtime";var ze="k-actions",On=[],gn={},it={alignment:"start",orientation:"horizontal"},X=e=>{let{alignment:t=it.alignment,orientation:o=it.orientation,...i}=e;return kn("div",{...i,className:s(ze,{[`${ze}-${t}`]:t,[`${ze}-${o}`]:o},e.className),children:e.children})};X.states=On;X.options=gn;X.className=ze;X.defaultOptions=it;X.moduleName=st;X.folderName=eo;import{jsx as _n}from"react/jsx-runtime";var yn="k-actionsheet-footer",to={alignment:"stretched",orientation:"horizontal"},at=e=>{let{alignment:t=to.alignment,orientation:o=to.orientation,template:i,as:r=i?"div":X,...l}=e;return _n(r,{...l,...!i&&{alignment:t,orientation:o},className:s(e.className,yn),children:e.children})};var rt="searchbox",oo=rt;import{jsx as be,jsxs as Rn}from"react/jsx-runtime";var no="k-searchbox",Kn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],Hn={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},G=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:S=lt.showIcon,icon:v=lt.icon,...I}=e;return Rn(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:[S&&be(A,{className:"k-input-icon",icon:v}),be(z,{placeholder:o,value:t}),be(F,{...e}),be(D,{...e}),be(P,{...e})]})};G.states=Kn;G.options=Hn;G.className=no;G.defaultOptions=lt;G.moduleName=rt;G.folderName=oo;import{jsx as Mr}from"react/jsx-runtime";var pt="textbox",so=pt;import{Fragment as io,jsx as $,jsxs as mt}from"react/jsx-runtime";var ao="k-textbox",Pn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],zn={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},ee={showClearButton:!0,showValidationIcon:!0,size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},J=e=>{let{size:t=ee.size,rounded:o=ee.rounded,fillMode:i=ee.fillMode,separators:r=ee.separators,showClearButton:l=ee.showClearButton,showValidationIcon:p=ee.showValidationIcon,prefix:d,suffix:c,type:u,value:N,placeholder:h,hover:L,focus:S,valid:v,invalid:I,required:O,loading:T,disabled:R,readonly:Ce,...Ve}=e;return mt(E,{...Ve,size:t,rounded:o,fillMode:i,hover:L,focus:S,valid:v,invalid:I,required:O,loading:T,disabled:R,readonly:Ce,className:s(e.className,ao),children:[d&&mt(io,{children:[$(Re,{children:d}),r&&$(ie,{})]}),$(z,{placeholder:h,value:N,type:u}),p&&$(D,{valid:v,invalid:I,loading:T,disabled:R}),$(F,{loading:T,disabled:R}),l&&$(P,{loading:T,disabled:R,readonly:Ce,value:N}),c&&mt(io,{children:[r&&$(ie,{}),$(Pe,{children:c})]})]})};J.states=Pn;J.options=zn;J.className=ao;J.defaultOptions=ee;J.moduleName=pt;J.folderName=so;import{jsx as Hr}from"react/jsx-runtime";import{Fragment as wr,jsx as Br}from"react/jsx-runtime";import{Fragment as Jr,jsx as $r}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(G,{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===at&&dt(at,{...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 Se="action-sheet",De=Se;import{jsx as Be,jsxs as Gn}from"react/jsx-runtime";var po="k-actionsheet",Vn=[],Xn={},Me={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},B=e=>{let{side:t=Me.side,fullscreen:o=Me.fullscreen,adaptive:i=Me.adaptive,overlay:r=Me.overlay,template:l,children:p,header:d,footer:c,...u}=e;return Gn("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=Xn;B.className=po;B.defaultOptions=Me;B.moduleName=Se;B.folderName=De;import{jsx as Wn}from"react/jsx-runtime";var mo="k-actionsheet-container",$n=[],Jn={},qn={},re=e=>{let{children:t,...o}=e;return Wn("div",{...o,className:mo,children:t})};re.states=$n;re.options=Jn;re.className=mo;re.defaultOptions=qn;re.moduleName=Se;re.folderName=De;import{jsx as Al}from"react/jsx-runtime";import{Fragment as Yn,jsx as Ae,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&&Ae(Yn,{children:ft("span",{className:"k-actionsheet-action",children:[t&&Ae("span",{className:"k-icon-wrap",children:Ae(A,{className:"k-actionsheet-item-icon",icon:t})}),ft("span",{className:"k-actionsheet-item-text",children:[o&&Ae("span",{className:"k-actionsheet-item-title",children:o}),i&&Ae("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 Xl}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((S,v)=>{S.type===K?(S.props.root===!0?(c=S.props.label,S.props.children.map((I,O)=>{L.push(le(b,{...I.props},`optChild-${O}-${new Date().getTime()}`))})):S.props.children.forEach((I,O)=>{let T="";O===0&&(T=S.props.label),L.push(le(b,{className:O===0?"k-first":"",...I.props,groupLabel:T},`groupLabel-${O}-${new Date().getTime()}`))}),u=le(K,{label:c,virtualization:o,children:L})):S.type===b&&(L.push(le(b,{...S.props},`${S.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,M(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,M(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,M(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={},So={layout:"vertical"},Y=e=>{let{layout:t=So.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=So;Y.moduleName=oe;Y.folderName=ce;import{jsx as hs}from"react/jsx-runtime";var Mo="k-checkbox-list-item",fs=[],xs={},Ns={},Z=e=>{let{...t}=e;return hs("li",{...t,className:s(e.className,Mo),children:e.children})};Z.states=fs;Z.options=xs;Z.className=Mo;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 Ms}from"react/jsx-runtime";var Mt="k-list-item",Ls=[n.hover,n.focus,n.selected,n.disabled],bs={},Ss={},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,S=t||e.children;return Ms("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(A,{icon:l}),Ue("span",{className:"k-list-item-text",children:S}),o&&o!==""&&Ue("div",{className:"k-list-item-group-label",children:o})]})};b.states=Ls;b.options=bs;b.className=Mt;b.defaultOptions=Ss;b.moduleName=w;b.folderName=Q;import{jsx as At,jsxs as Es}from"react/jsx-runtime";var As="k-list-content",pe=e=>{let{virtualization:t,...o}=e;return Es("div",{...o,className:s(As,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 Ao}from"react/jsx-runtime";var Is="k-list-group-sticky-header",Eo=e=>Ao("div",{className:s(Is,e.className),children:Ao("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 Mc,jsxs as Ac}from"react/jsx-runtime";import{jsx as Cc,jsxs as Tc}from"react/jsx-runtime";var vt="combobox",Co=vt;import{Fragment as Ct,jsx as C,jsxs as Ie}from"react/jsx-runtime";var To="k-combobox",Ps=[n.hover,n.focus,n.valid,n.invalid,n.loading,n.required,n.disabled,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:S,loading:v,disabled:I,popup:O,opened:T,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:S,loading:v,disabled:I,readonly:R,className:s(e.className,To),children:[l&&Ie(Ct,{children:[C(Re,{children:l}),r&&C(ie,{})]}),C(z,{placeholder:c,value:d}),C(D,{valid:h,invalid:L,loading:v,disabled:I}),C(F,{loading:v,disabled:I}),C(P,{loading:v,disabled:I,readonly:R,value:d}),p&&Ie(Ct,{children:[r&&C(ie,{}),C(Pe,{children:p})]}),C(k,{className:"k-input-button",icon:"caret-alt-down",rounded:null,size:t,fillMode:i})]}),T&&O&&C(V,{className:"k-list-container k-combobox-popup",children:O}),Ce&&C(B,{adaptive:!0,...Ve,header:C(W,{actionsEnd:C(k,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat"}),input:!0,inputValue:d,inputPlaceholder:c,title:Oo,subtitle:go}),children:C("div",{className:"k-list-container",children:Ie(y,{customValue:ko?C(de,{text:`Use "${d}"`}):void 0,size:"large",children:[C(b,{text:"List item"}),C(b,{text:"List item"}),C(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 COMBOBOX_CLASSNAME,ne as Combobox,od as default};