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 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:I,...v}=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":I},Object.keys(v).reduce((O,C)=>(C.startsWith("k-")?O[C]=v[C]:O[`k-${C}`]=v[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 Ro}from"react/jsx-runtime";var Oe="k-input",Ko=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ho={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 Ro("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=Ko;E.options=Ho;E.className=Oe;E.defaultOptions=ge;E.moduleName=ue;E.folderName=Te;import{jsx as Do}from"react/jsx-runtime";var ke="k-picker",Po=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],zo={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 Do("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=Po;se.options=zo;se.className=ke;se.defaultOptions=ye;se.moduleName=ue;se.folderName=Te;import{Fragment as Fo,jsx as Ot}from"react/jsx-runtime";var Ge="k-font-icon",Bo=[],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]},Uo={},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(Fo,{})};fe.states=Bo;fe.options=wo;fe.className=Ge;fe.defaultOptions=Uo;var gt=fe;import{Fragment as $o,jsx as _e}from"react/jsx-runtime";var $e="k-svg-icon",Vo=[],Go={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($o,{});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=Vo;xe.options=Go;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",Xo=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Jo=[],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(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:Xo(`${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=Jo;M.options=qo;M.defaultOptions=qe;M.className=Ke;M.moduleName=yt;M.folderName=_t;import{Fragment as Yo,jsx as We}from"react/jsx-runtime";var Ht="k-clear-value",Wo=[n.disabled,n.loading,n.readonly],Qo={},P=e=>{let{disabled:t,loading:o,readonly:i,value:r}=e;return t||i||o||!r?We(Yo,{}):We("span",{className:s(e.className,Ht),children:We(M,{icon:"x"})})};P.states=Wo;P.options=Qo;P.className=Ht;import{jsx as en}from"react/jsx-runtime";var Qe="k-input-inner",Zo=[],jo={},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 en("input",{...l,type:o,className:s(e.className,Qe,S(Qe,e)),placeholder:i,autoComplete:r,defaultValue:t})};z.states=Zo;z.options=jo;z.className=Qe;import{jsx as Rt,jsxs as nn}from"react/jsx-runtime";var Ye="k-input-inner",tn=[],on={},Ze=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:r,valueIconName:l,...p}=e;return nn("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=tn;Ze.options=on;Ze.className=Ye;import{jsx as rn}from"react/jsx-runtime";var je="k-input-inner",sn=[],an={},Pt={value:"",placeholder:""},et=e=>{let{value:t=Pt.value,placeholder:o=Pt.placeholder,rows:i,...r}=e;return rn("textarea",{...r,className:s(e.className,je,S(je,e)),placeholder:o,rows:i,defaultValue:t})};et.states=sn;et.options=an;et.className=je;import{Fragment as pn,jsx as zt}from"react/jsx-runtime";var Dt="k-input-loading-icon",ln=[n.disabled,n.loading],F=e=>{let{disabled:t,loading:o}=e;return t||!o?zt(pn,{}):zt("span",{className:s(e.className,Dt,"k-icon k-i-loading")})};F.states=ln;F.className=Dt;import{Fragment as dn,jsx as Bt}from"react/jsx-runtime";var wt="k-input-validation-icon",mn=[n.valid,n.invalid,n.disabled,n.loading],cn={},D=e=>{let{valid:t,invalid:o,disabled:i,loading:r}=e,l=o?"warning-circle":"check-circle";return i||r||!!!(t||o)?Bt(dn,{}):Bt(M,{className:s(wt),icon:l})};D.states=mn;D.options=cn;D.className=wt;import{Fragment as xn,jsx as Ut}from"react/jsx-runtime";var un="k-input-prefix",fn={direction:"horizontal"},Re=e=>{let{direction:t=fn.direction,...o}=e;return e.children?Ut("span",{...o,className:s(un,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Ut(xn,{})};import{Fragment as Ln,jsx as Ft}from"react/jsx-runtime";var Nn="k-input-suffix",hn={direction:"horizontal"},Pe=e=>{let{direction:t=hn.direction,...o}=e;return e.children?Ft("span",{...o,className:s(Nn,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ft(Ln,{})};import{jsx as Wi}from"react/jsx-runtime";import{jsx as ji}from"react/jsx-runtime";import{jsx as An}from"react/jsx-runtime";var Vt="k-input-separator",bn={direction:"vertical"},ie=e=>{let{direction:t=bn.direction,...o}=e;return An("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",Sn=[],Mn={},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=Sn;_.options=Mn;_.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",En=[],vn={},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=En;V.options=vn;V.className=Qt;V.defaultOptions=Yt;V.moduleName=ot;V.folderName=qt;var nt="action-buttons",Zt=nt;import{jsx as Tn}from"react/jsx-runtime";var ze="k-actions",In=[],Cn={},st={alignment:"start",orientation:"horizontal"},G=e=>{let{alignment:t=st.alignment,orientation:o=st.orientation,...i}=e;return Tn("div",{...i,className:s(ze,{[`${ze}-${t}`]:t,[`${ze}-${o}`]:o},e.className),children:e.children})};G.states=In;G.options=Cn;G.className=ze;G.defaultOptions=st;G.moduleName=nt;G.folderName=Zt;import{jsx as gn}from"react/jsx-runtime";var On="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 gn(r,{...l,...!i&&{alignment:t,orientation:o},className:s(e.className,On),children:e.children})};var at="searchbox",eo=at;import{jsx as he,jsxs as _n}from"react/jsx-runtime";var to="k-searchbox",kn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],yn={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:I=rt.icon,...v}=e;return _n(E,{...v,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:I}),he(z,{placeholder:o,value:t}),he(F,{...e}),he(D,{...e}),he(P,{...e})]})};$.states=kn;$.options=yn;$.className=to;$.defaultOptions=rt;$.moduleName=at;$.folderName=eo;import{jsx as er}from"react/jsx-runtime";var lt="textbox",oo=lt;import{Fragment as no,jsx as X,jsxs as pt}from"react/jsx-runtime";var so="k-textbox",Kn=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Hn={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:I,invalid:v,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:I,invalid:v,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:I,invalid:v,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=Kn;J.options=Hn;J.className=so;J.defaultOptions=j;J.moduleName=lt;J.folderName=oo;import{jsx as ur}from"react/jsx-runtime";import{Fragment as br,jsx as Lr}from"react/jsx-runtime";var mt="button",ao=mt;import{Fragment as Dn,jsx as Le,jsxs as ro}from"react/jsx-runtime";var be="k-button",Rn=["icon-button"],Pn=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],zn={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:I,iconClassName:v,...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":!I&&!R&&C}),children:[A&&Le(M,{className:s(v,"k-button-icon"),icon:A}),I?ro(Dn,{children:[I&&Le("span",{className:"k-button-text",children:I}),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=Pn;k.options=zn;k.variants=Rn;k.className=be;k.defaultOptions=ee;k.moduleName=mt;k.folderName=ao;import{jsx as gr}from"react/jsx-runtime";import{jsx as Kr}from"react/jsx-runtime";import{jsx as zr}from"react/jsx-runtime";import{Fragment as Wr,jsx as qr}from"react/jsx-runtime";import{jsx as q,jsxs as ct}from"react/jsx-runtime";var lo="k-actionsheet-titlebar",Bn={},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=Bn;import{jsx as dt,jsxs as Vn}from"react/jsx-runtime";var ut="k-actionsheet-view",wn=[],Un={},Fn={},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 Vn("div",{...p,className:s(e.className,ut,{[`${ut}-animated`]:o}),children:[d,dt("div",{className:"k-actionsheet-content",children:i}),c]})};ae.states=wn;ae.options=Un;ae.className=ut;ae.defaultOptions=Fn;var Ae="action-sheet",De=Ae;import{jsx as Be,jsxs as Xn}from"react/jsx-runtime";var po="k-actionsheet",Gn=[],$n={},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 Xn("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=Gn;B.options=$n;B.className=po;B.defaultOptions=Se;B.moduleName=Ae;B.folderName=De;import{jsx as Qn}from"react/jsx-runtime";var mo="k-actionsheet-container",Jn=[],qn={},Wn={},re=e=>{let{children:t,...o}=e;return Qn("div",{...o,className:mo,children:t})};re.states=Jn;re.options=qn;re.className=mo;re.defaultOptions=Wn;re.moduleName=Ae;re.folderName=De;import{jsx as vl}from"react/jsx-runtime";import{Fragment as Zn,jsx as Me,jsxs as ft}from"react/jsx-runtime";var xt="k-actionsheet-item",Yn=[n.hover,n.focus,n.selected,n.disabled],Nt=e=>{let{iconName:t,text:o,description:i,hover:r,focus:l,selected:p,disabled: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(Zn,{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=Yn;Nt.className=xt;import{jsx as Kl,jsxs as Hl}from"react/jsx-runtime";import{jsx as Dl}from"react/jsx-runtime";import{jsx as Fl}from"react/jsx-runtime";import{jsx as Xl}from"react/jsx-runtime";import{jsx as es}from"react/jsx-runtime";var jn="k-no-data",Ee=e=>es("span",{className:s(jn,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",ts=[],os={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,I)=>{A.type===K?(A.props.root===!0?(c=A.props.label,A.props.children.map((v,O)=>{L.push(le(b,{...v.props},`optChild-${O}-${new Date().getTime()}`))})):A.props.children.forEach((v,O)=>{let C="";O===0&&(C=A.props.label),L.push(le(b,{className:O===0?"k-first":"",...v.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}-${I}`)),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=ts;y.options=os;y.className=ht;y.defaultOptions=fo;y.moduleName=w;y.folderName=Q;import{jsx as as}from"react/jsx-runtime";var xo="k-list-container",ns=[],ss={},is={},me=e=>{let{...t}=e;return as("div",{...t,className:s(e.className,xo),children:e.children})};me.states=ns;me.options=ss;me.className=xo;me.defaultOptions=is;me.moduleName=w;me.folderName=Q;import{jsx as te,jsxs as ps}from"react/jsx-runtime";var Lt="k-list",rs=[],ls={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."}),ps("div",{...r,className:s(e.className,Lt,S(Lt,{size:t}),{"k-virtual-list":o}),children:[p,d]})};U.states=rs;U.options=ls;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",ms=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.checked,n.indeterminate],cs={size:[a.small,a.medium,a.large],rounded:[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=ms;H.options=cs;H.className=we;H.defaultOptions=bt;H.moduleName=oe;H.folderName=ce;import{jsx as fs}from"react/jsx-runtime";var bo="k-checkbox-list",ds=[],us={},Ao={layout:"vertical"},Y=e=>{let{layout:t=Ao.layout,...o}=e;return fs("ul",{...o,className:s(e.className,bo,{[`k-list-${t}`]:t}),children:e.children})};Y.states=ds;Y.options=us;Y.className=bo;Y.defaultOptions=Ao;Y.moduleName=oe;Y.folderName=ce;import{jsx as Ls}from"react/jsx-runtime";var So="k-checkbox-list-item",xs=[],Ns={},hs={},Z=e=>{let{...t}=e;return Ls("li",{...t,className:s(e.className,So),children:e.children})};Z.states=xs;Z.options=Ns;Z.className=So;Z.defaultOptions=hs;Z.moduleName=oe;Z.folderName=ce;import{Fragment as Gp,jsx as Vp,jsxs as $p}from"react/jsx-runtime";import{Fragment as Qp,jsx as Wp,jsxs as Yp}from"react/jsx-runtime";import{Fragment as om,jsx as tm,jsxs as nm}from"react/jsx-runtime";import{Fragment as lm,jsx as rm,jsxs as pm}from"react/jsx-runtime";import{jsx as um}from"react/jsx-runtime";import{jsx as hm}from"react/jsx-runtime";import{jsx as Ue,jsxs as Ms}from"react/jsx-runtime";var St="k-list-item",bs=[n.hover,n.focus,n.selected,n.disabled],As={},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,A=t||e.children;return Ms("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=bs;b.options=As;b.className=St;b.defaultOptions=Ss;b.moduleName=w;b.folderName=Q;import{jsx as Mt,jsxs as vs}from"react/jsx-runtime";var Es="k-list-content",pe=e=>{let{virtualization:t,...o}=e;return vs("div",{...o,className:s(Es,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 Cs,jsx as vo,jsxs as Ts}from"react/jsx-runtime";var K=e=>{let{virtualization:t,label:o}=e;return Ts(Cs,{children:[o&&vo(Eo,{children:o}),e.children&&vo(pe,{virtualization:t,children:e.children})]})};import{jsx as Io}from"react/jsx-runtime";var Os="k-list-group-item",ho=e=>Io("li",{className:s(Os,e.className),children:Io("span",{className:"k-list-item-text",children:e.children})});import{jsx as _s}from"react/jsx-runtime";var Et="k-list-optionlabel",gs=[n.hover,n.focus,n.selected,n.disabled],ks={},ys={},Fe=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return _s("div",{...p,className:s(Et,g(Et,{hover:o,focus:i,selected:r,disabled:l})),children:t})};Fe.states=gs;Fe.options=ks;Fe.className=Et;Fe.defaultOptions=ys;import{jsx as Ps}from"react/jsx-runtime";var vt="k-list-custom-value",Ks=[n.hover,n.focus,n.selected,n.disabled],Hs={},Rs={},de=e=>{let{text:t,hover:o,focus:i,selected:r,disabled:l,...p}=e;return Ps("div",{...p,className:s(vt,g(vt,{hover:o,focus:i,selected:r,disabled:l})),children:t})};de.states=Ks;de.options=Hs;de.className=vt;de.defaultOptions=Rs;import{jsx as tc}from"react/jsx-runtime";import{jsx as ic}from"react/jsx-runtime";import{jsx as pc,jsxs as mc}from"react/jsx-runtime";import{jsx as fc,jsxs as xc}from"react/jsx-runtime";import{jsx as bc}from"react/jsx-runtime";import{jsx as Ec,jsxs as vc}from"react/jsx-runtime";import{jsx as Oc,jsxs as gc}from"react/jsx-runtime";var It="autocomplete",Co=It;import{Fragment as Ct,jsx as T,jsxs as ve}from"react/jsx-runtime";var To="k-autocomplete",zs=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Ds={size:[a.small,a.medium,a.large],rounded:[f.small,f.medium,f.large,f.full],fillMode:[x.solid,x.flat,x.outline]},Ie={size:E.defaultOptions.size,rounded:E.defaultOptions.rounded,fillMode:E.defaultOptions.fillMode,separators:!0},ne=e=>{let{size:t=Ie.size,rounded:o=Ie.rounded,fillMode:i=Ie.fillMode,separators:r=Ie.separators,prefix:l,suffix:p,value:d,placeholder:c,hover:u,focus:N,valid:h,invalid:L,required:A,loading:I,disabled:v,popup:O,opened:C,readonly:R,adaptive:Ce,adaptiveSettings:Ve,adaptiveTitle:go,adaptiveSubtitle:ko,adaptiveCustomValue:yo,..._o}=e;return ve(Ct,{children:[ve(E,{..._o,size:t,rounded:o,fillMode:i,hover:u,focus:N,valid:h,invalid:L,required:A,loading:I,disabled:v,readonly:R,className:s(e.className,To),children:[l&&ve(Ct,{children:[T(Re,{children:l}),r&&T(ie,{})]}),T(z,{placeholder:c,value:d}),T(D,{valid:h,invalid:L,loading:I,disabled:v}),T(F,{loading:I,disabled:v}),T(P,{loading:I,disabled:v,readonly:R,value:d}),p&&ve(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:go,subtitle:ko}),children:T("div",{className:"k-list-container",children:ve(y,{customValue:yo?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=zs;ne.options=Ds;ne.className=To;ne.defaultOptions=Ie;ne.moduleName=It;ne.folderName=Co;var Oo=ne;import{jsx as Bs}from"react/jsx-runtime";var rd=e=>Bs(Oo,{adaptive:!0,...e});export{rd as AutocompleteAdaptive};