@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 69.2 kB
JavaScript
var n=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?n(...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 I=(e,t)=>n({[`${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.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),v=(e,t)=>{let{valid:o,invalid:i,hover:a,focus:r,checked:m,active:p,selected:c,disabled:f,indeterminate:d,loading:x,empty:L,readonly:S,highlighted:g,...A}=t;return n({"k-valid":o,"k-invalid":i,"k-hover":a,"k-focus":r,"k-checked":m,"k-active":p,"k-selected":c,"k-disabled":f,"k-indeterminate":d&&!m,"k-loading":x,"k-empty":L,"k-readonly":S,"k-highlighted":g},Object.keys(A).reduce((k,C)=>(C.startsWith("k-")?k[C]=A[C]:k[`k-${C}`]=A[C],k),{}))};function An(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(i=>[`k-${i}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},b={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},M={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},le={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},h={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},s={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 ro={};function E(e){return ro[e]=(ro[e]||0)+1,`k-${e}-${ro[e]}`}var G="column-menu",J=G;import{jsx as xa}from"react/jsx-runtime";var lo="k-column-menu",ba=[],ha={size:[l.undefined,l.small,l.medium,l.large]},Cn={view:"list"},me=e=>{let{view:t=Cn.view,size:o,...i}=e;return xa("div",{...i,className:n(e.className,lo,I(lo,{size:o}),{"k-column-menu-tabbed":t==="tabbed"}),children:e.children})};me.states=ba;me.options=ha;me.className=lo;me.defaultOptions=Cn;me.moduleName=G;me.folderName=J;me.ariaSpec={selector:".k-column-menu",rules:[{selector:".k-columnmenu-item",attribute:"role=button",usage:"Sets column menu item role to button."},{selector:".k-columnmenu-item",attribute:"tabindex=0",usage:"Sets column menu item tabindex."},{selector:".k-expander .k-columnmenu-item",attribute:"aria-expanded=true/false",usage:"Sets the expanded state of an expandable item."},{selector:".k-expander .k-columnmenu-item",attribute:"aria-controls",usage:"Points to id attribute of the content whose visibility the expandable item controls."},{selector:".k-expander .k-columnmenu-item-content",attribute:"id",usage:"Unique and deterministic id linked to the aria-controls attribute of the corresponding expandable item."},{selector:".k-column-list",attribute:"role=listbox",usage:"Sets the listbox role of the list of columns wrapper."},{selector:".k-column-list",attribute:"aria-multiselectable=true",usage:"Specifies that the list is multiselectable."},{selector:".k-column-list",attribute:"aria-label",usage:"Accessible name for the column list."},{selector:".k-column-list .k-column-list-item",attribute:"role=option",usage:"Sets the option role of the list item."},{selector:".k-column-list .k-column-list-item",attribute:"aria-checked=true/false",usage:"Sets the checked state of list item."}]};import{jsx as En}from"react/jsx-runtime";var mo="k-column-list",Na=[],Ma={size:[l.undefined,l.small,l.medium,l.large]},La={},Oe=e=>{let{size:t,...o}=e;return En("div",{className:"k-column-list-wrapper",children:En("div",{...o,className:n(e.className,mo,I(mo,{size:t})),role:"listbox","aria-multiselectable":"true",children:e.children})})};Oe.states=Na;Oe.options=Ma;Oe.className=mo;Oe.defaultOptions=La;Oe.moduleName=G;Oe.folderName=J;var ye="checkbox",ze=ye;import{jsx as Tn}from"react/jsx-runtime";var Ht="k-checkbox",Ia=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.checked,s.indeterminate],va={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full]},Sa={},y=e=>{let{id:t,checked:o,indeterminate:i,hover:a,focus:r,disabled:m,invalid:p,valid:c,required:f,size:d,rounded:x,wrapperRole:L,...S}=e;return Tn("span",{className:"k-checkbox-wrap",role:L,children:Tn("input",{...S,id:t,type:"checkbox",defaultChecked:o,required:f,disabled:m||void 0,"aria-invalid":p?"true":void 0,className:n(e.className,Ht,I(Ht,{size:d,rounded:x}),v(Ht,{hover:a,focus:r,disabled:m,invalid:p,valid:c,indeterminate:i,checked:o}))})})};y.states=Ia;y.options=va;y.className=Ht;y.defaultOptions=Sa;y.moduleName=ye;y.folderName=ze;y.ariaSpec={selector:".k-checkbox",rules:[{selector:".k-checkbox",attribute:"role=checkbox or type=checkbox",usage:"Announces the checkbox role of the element."},{selector:".k-checkbox",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name to which it will be assigned."},{selector:".k-checkbox",attribute:"aria-checked=true/false/mixed or checked",usage:"For native checkboxes the checked state is handled by the browser. aria-checked is used for custom implementations."},{selector:".k-checkbox",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the checkbox."},{selector:".k-checkbox",attribute:"disabled or aria-disabled=true (when disabled)",usage:"For native checkboxes use the HTML disabled attribute. aria-disabled for custom implementations."},{selector:".k-invalid, .ng-invalid",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the CheckBox is in a form and announces the invalid state."}]};var ne=y;import{jsx as Aa}from"react/jsx-runtime";var On="k-checkbox-list",ka=[],ga={},yn={layout:"vertical"},V=e=>{let{layout:t=yn.layout,...o}=e;return Aa("ul",{...o,className:n(e.className,On,{[`k-list-${t}`]:t}),children:e.children})};V.states=ka;V.options=ga;V.className=On;V.defaultOptions=yn;V.moduleName=ye;V.folderName=ze;import{jsx as Oa}from"react/jsx-runtime";var Kn="k-checkbox-list-item",Ca=[],Ea={},Ta={},$=e=>{let{...t}=e;return Oa("li",{...t,className:n(e.className,Kn),children:e.children})};$.states=Ca;$.options=Ea;$.className=Kn;$.defaultOptions=Ta;$.moduleName=ye;$.folderName=ze;import{Fragment as ya,jsx as Rn,jsxs as Ka}from"react/jsx-runtime";var he=({children:e="Label",id:t="cb-label-after",...o})=>Ka(ya,{children:[Rn(ne,{id:t,...o}),Rn("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as Xp,jsx as $p,jsxs as Wp}from"react/jsx-runtime";import{Fragment as Zp,jsx as Qp,jsxs as jp}from"react/jsx-runtime";import{Fragment as ic,jsx as nc,jsxs as ac}from"react/jsx-runtime";import{jsx as mc}from"react/jsx-runtime";import{jsx as uc}from"react/jsx-runtime";import{jsx as xc}from"react/jsx-runtime";import{jsx as ee,jsxs as wn}from"react/jsx-runtime";var Ra=V.options,wa=V.states,_a={...V.defaultOptions,variant:"vertical"},Pa=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Ha=[],Fe=e=>{let{variant:t,...o}=e;return t==="horizontal"?wn(V,{layout:"horizontal",...o,children:[ee($,{children:ee(he,{id:E("cb"),defaultChecked:!0,children:"Label"})}),ee($,{children:ee(he,{id:E("cb"),children:"Label"})}),ee($,{children:ee(he,{id:E("cb"),children:"Label"})})]}):wn(V,{...o,children:[ee($,{children:ee(he,{id:E("cb"),defaultChecked:!0,children:"Label"})}),ee($,{children:ee(he,{id:E("cb"),children:"Label"})}),ee($,{children:ee(he,{id:E("cb"),children:"Label"})})]})};Fe.options=Ra;Fe.states=wa;Fe.variants=Pa;Fe.defaultOptions=_a;Fe.modifiers=Ha;Fe.className=V.className;import{jsx as Ga}from"react/jsx-runtime";var Da=ne.options,Ua=ne.states,Ba=ne.defaultOptions,za=[],Fa=[],Ge=e=>Ga(he,{id:E("checkbox"),...e,defaultChecked:!0,children:"Label"});Ge.options=Da;Ge.states=Ua;Ge.variants=za;Ge.defaultOptions=Ba;Ge.modifiers=Fa;Ge.className=ne.className;import{jsx as _n,jsxs as Wa}from"react/jsx-runtime";var po="k-column-list-item",Va=[s.focus,s.disabled,s.hover],$a={},Xa={},Mt=e=>{let{label:t,checked:o,focus:i,hover:a,disabled:r,...m}=e;return Wa("span",{...m,className:n(e.className,po,v(po,{focus:i,hover:a,disabled:r})),role:"option","aria-checked":o?"true":"false",children:[_n(y,{disabled:r,checked:o,"aria-label":t}),_n("span",{className:"k-checkbox-label",children:t})]})};Mt.states=Va;Mt.options=$a;Mt.className=po;Mt.defaultOptions=Xa;import{Fragment as Qa,jsx as Pn}from"react/jsx-runtime";var co="k-font-icon",Ja=[],qa={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[h.undefined,h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info]},Ya={},Lt=e=>{let{size:t,themeColor:o,icon:i,rotate:a,flip:r,...m}=e;return i?Pn("span",{...m,className:n(e.className,co,I(co,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true"}):Pn(Qa,{})};Lt.states=Ja;Lt.options=qa;Lt.className=co;Lt.defaultOptions=Ya;var Hn=Lt;import{Fragment as es,jsx as Dt}from"react/jsx-runtime";var uo="k-svg-icon",Za=[],ja={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[h.undefined,h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info],variant:[le.outline,le.solid,le.duotone]},fo={viewBox:"0 0 24 24",variant:le.outline},It=e=>{let{size:t,themeColor:o,rotate:i,flip:a,viewBox:r=fo.viewBox,variant:m=fo.variant,icon:p,...c}=e;if(!p)return Dt(es,{});if(p==="none")return Dt("span",{...c,className:n(e.className,uo,I("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let f=typeof p=="object"&&p.name&&p.name,d=typeof p=="object"?m&&p.variants?.[m]||p.variants?.outline||p.content:void 0;return Dt("span",{...c,className:n(e.className,uo,I("k-icon",{size:t}),{[`k-svg-i-${f}`]:f,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),"aria-hidden":"true",children:Dt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof p=="object"?p.viewBox:r,dangerouslySetInnerHTML:d!==void 0?{__html:d}:void 0,children:p?void 0:e.children})})};It.states=Za;It.options=ja;It.className=uo;It.defaultOptions=fo;var bo=It;import*as ho from"@progress/kendo-svg-icons";var Dn="icon",Un="icons";import{useContext as os}from"react";import{createContext as ts}from"react";var Bn=ts({iconsType:"svg"});import{Fragment as zn,jsx as vt}from"react/jsx-runtime";var Ut="k-icon",ns=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),is=[],as={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[h.undefined,h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info],variant:[le.outline,le.solid,le.duotone]},Bt={viewBox:"0 0 24 24",type:"svg",variant:le.outline},u=e=>{let{iconsType:t}=os(Bn),{size:o,themeColor:i,icon:a,type:r=t||Bt.type,rotate:m,flip:p,viewBox:c=Bt.viewBox,variant:f=Bt.variant,...d}=e;if(!a)return vt(zn,{});if((t||r)==="svg"){if(a==="none")return vt(bo,{...d,className:n(e.className,Ut),icon:a,size:o,variant:f});let L=ho[a]?a:ns(`${a}-icon`);return ho[L]?vt(bo,{...d,className:n(e.className,Ut),icon:ho[L],size:o,themeColor:i,rotate:m,flip:p,viewBox:c,variant:f}):vt(zn,{})}return vt(Hn,{...d,className:n(e.className,Ut),icon:a,size:o,themeColor:i,rotate:m,flip:p})};u.states=is;u.options=as;u.defaultOptions=Bt;u.className=Ut;u.moduleName=Dn;u.folderName=Un;u.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};import{jsx as xo,jsxs as Fn}from"react/jsx-runtime";var No="k-columnmenu-item",ss=[s.focus,s.selected],rs={},ls={},xe=e=>{let{focus:t,selected:o,text:i,startIcon:a,endIcon:r,sortIndex:m,...p}=e;return Fn("div",{...p,className:n(e.className,No,v(No,{focus:t,selected:o})),role:"button",tabIndex:0,children:[a&&xo(u,{icon:a}),i,r&&Fn("span",{className:"k-columnmenu-indicators",children:[xo(u,{icon:r}),m&&xo("span",{className:"k-sort-index",children:m})]}),e.children]})};xe.states=ss;xe.options=rs;xe.className=No;xe.defaultOptions=ls;xe.moduleName=G;xe.folderName=J;import{jsx as Sd}from"react/jsx-runtime";import{jsx as ps}from"react/jsx-runtime";var ms="k-columnmenu-item-content",Gn=e=>ps("div",{...e,className:n(e.className,ms,"k-columns-item"),children:e.children});import{jsx as Vn}from"react/jsx-runtime";var $n="k-filter-menu",cs=[],ds={},us={},Le=e=>{let{...t}=e;return Vn("form",{...t,className:n(e.className,$n),children:Vn("div",{className:"k-filter-menu-container",children:e.children})})};Le.states=cs;Le.options=ds;Le.className=$n;Le.defaultOptions=us;Le.moduleName=G;Le.folderName=J;import{jsx as wd}from"react/jsx-runtime";import{jsx as Mo,jsxs as xs}from"react/jsx-runtime";var fs="k-item",bs={size:[l.undefined,l.small,l.medium,l.large]},hs=[],Lo=e=>{let{text:t,size:o,...i}=e;return Mo("li",{...i,className:n(e.className,fs),children:xs("label",{className:"k-label k-checkbox-label",children:[Mo(y,{size:o}),Mo("span",{children:t})]})})};Lo.states=hs;Lo.options=bs;import{jsx as Ve,jsxs as Xn}from"react/jsx-runtime";var Wn="k-expander",Ns=[],Ms={},Ls={},Ke=e=>{let{itemText:t,itemStartIcon:o,itemEndIcon:i,itemSortIndex:a,expanded:r,itemContent:m,expanderIcon:p,contentId:c,...f}=e,d=c||E("columnmenu-content"),x=!r&&!p?Ve(u,{icon:"chevron-down"}):r&&!p?Ve(u,{icon:"chevron-up"}):Ve(u,{icon:p});return Xn("div",{...f,className:n(e.className,Wn),children:[Xn(xe,{text:t,startIcon:o,endIcon:i,sortIndex:a,"aria-expanded":r?"true":"false","aria-controls":d,children:[Ve("span",{className:"k-spacer"}),Ve("span",{className:"k-expander-indicator",children:x})]}),r&&Ve(Gn,{id:d,children:m}),e.children]})};Ke.states=Ns;Ke.options=Ms;Ke.className=Wn;Ke.defaultOptions=Ls;Ke.moduleName=G;Ke.folderName=J;import{jsx as ks}from"react/jsx-runtime";var Io="k-group-menu",Is=[],vs={size:[l.undefined,l.small,l.medium,l.large]},Ss={},$e=e=>{let{size:t,...o}=e;return ks("div",{...o,className:n(e.className,Io,I(Io,{size:t})),children:e.children})};$e.states=Is;$e.options=vs;$e.className=Io;$e.defaultOptions=Ss;$e.moduleName=G;$e.folderName=J;import{Fragment as Es,jsx as zt,jsxs as Jn}from"react/jsx-runtime";var vo="k-group-menu-item",gs=[s.hover,s.selected],As={},Cs={},Xe=e=>{let{hover:t,selected:o,text:i,actionsStart:a,actionsEnd:r,...m}=e;return Jn("div",{...m,className:n(e.className,vo,v(vo,{hover:t,selected:o})),children:[a&&zt("span",{className:"k-group-menu-item-actions",children:a}),zt("span",{className:"k-group-item-text",children:i}),r&&Jn(Es,{children:[zt("span",{className:"k-spacer"}),zt("span",{className:"k-group-menu-item-actions",children:r})]}),e.children]})};Xe.states=gs;Xe.options=As;Xe.className=vo;Xe.defaultOptions=Cs;Xe.moduleName=G;Xe.folderName=J;import{jsx as Re}from"react/jsx-runtime";var So="k-group-menu-item-action",Ts=[s.hover,s.disabled,s.selected],Os={size:[l.undefined,l.small,l.medium,l.large]};var ko=e=>{let{hover:t,disabled:o,selected:i,size:a,type:r,...m}=e,p;switch(r){case"remove":p=Re(u,{icon:"x-circle",size:a});break;case"add":p=Re(u,{icon:"plus-circle",size:a});break;case"drag":p=Re(u,{icon:"handle-drag-dots",size:a});break;case"up":p=Re(u,{icon:"chevron-up",size:a});break;case"down":p=Re(u,{icon:"chevron-down",size:a});break;default:p=Re(u,{icon:r,size:a});break}return Re("span",{...m,className:n(e.className,So,v(So,{selected:i,hover:t,disabled:o}),`k-group-menu-item-${r}-action`),children:p})};ko.options=Ts;ko.options=Os;ko.className=So;import{jsx as ru}from"react/jsx-runtime";import{Fragment as fu,jsx as du,jsxs as uu}from"react/jsx-runtime";var go="button",qn=go;import{Fragment as Yn,jsx as We,jsxs as Qn}from"react/jsx-runtime";var St="k-button",ys=["icon-button"],Ks=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],Rs={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[M.undefined,M.solid,M.flat,M.outline,M.clear,M.link],themeColor:[h.undefined,h.base,h.primary,h.secondary,h.tertiary,h.success,h.warning,h.error,h.info,h.inverse]},Ao={showArrow:!1,arrowIconName:"chevron-down"},N=e=>{let{as:t="button",size:o,rounded:i,fillMode:a,themeColor:r,showArrow:m=Ao.showArrow,arrowIconName:p=Ao.arrowIconName,variant:c,hover:f,focus:d,active:x,selected:L,disabled:S,togglable:g,ariaDisabled:A,icon:k,iconSize:C,text:R,iconClassName:Te,className:be,...bt}=e,ht=k!=null,xt=e.children!==void 0;return Qn(t,{className:n(be,St,An(St,c),I(St,{size:o,rounded:i,fillMode:a,themeColor:r}),v(St,{hover:f,focus:d,active:x,disabled:S||A,selected:L}),{"k-icon-button":!R&&!xt&&ht}),"aria-pressed":g?L?"true":"false":void 0,...bt,"aria-disabled":A?"true":void 0,disabled:S||void 0,children:[typeof k=="string"&&k&&We(u,{className:n(Te,"k-button-icon"),icon:k,size:C}),k&&typeof k!="string"&&We(Yn,{children:k}),R?Qn(Yn,{children:[R&&We("span",{className:"k-button-text",children:R}),e.children]}):e.children&&We("span",{className:"k-button-text",children:e.children}),m&&We("span",{className:"k-menu-button-arrow k-button-arrow",children:We(u,{icon:p})})]})};N.states=Ks;N.options=Rs;N.variants=ys;N.className=St;N.defaultOptions=Ao;N.moduleName=go;N.folderName=qn;N.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as ws}from"react/jsx-runtime";var Zn=e=>ws(N,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as _s}from"react/jsx-runtime";var jn=e=>_s(N,{icon:"folder",children:"Button",...e});import{jsx as Ps}from"react/jsx-runtime";var we=e=>Ps(N,{children:"Button",...e});import{jsx as Co}from"react/jsx-runtime";var Hs=N.options,Ds=N.states,Us={...N.defaultOptions,variant:"text"},Bs=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],zs=[],Je=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return Co(Zn,{...o,icon:"star"});case"icon-and-text":return Co(jn,{...o,icon:"star",children:"Button"});default:return Co(we,{...o,children:"Button"})}};Je.options=Hs;Je.states=Ds;Je.variants=Bs;Je.defaultOptions=Us;Je.modifiers=zs;Je.className=N.className;var kt="input",Ft=kt;import{jsx as $s}from"react/jsx-runtime";var Gt="k-input",Fs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Gs={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[M.undefined,M.solid,M.flat,M.outline]},Vs={},U=e=>{let{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:m,readonly:p,size:c,rounded:f,fillMode:d,...x}=e;return $s("span",{...x,className:n(e.className,Gt,I(Gt,{size:c,rounded:f,fillMode:d}),v(Gt,{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:m,readonly:p}))})};U.states=Fs;U.options=Gs;U.className=Gt;U.defaultOptions=Vs;U.moduleName=kt;U.folderName=Ft;import{jsx as qs}from"react/jsx-runtime";var Vt="k-picker",Xs=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ws={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[M.undefined,M.solid,M.flat,M.outline]},Js={},Ie=e=>{let{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:m,readonly:p,size:c,rounded:f,fillMode:d,...x}=e;return qs("span",{...x,className:n(e.className,Vt,I(Vt,{size:c,rounded:f,fillMode:d}),v(Vt,{hover:t,focus:o,disabled:i,invalid:a,valid:r,loading:m,readonly:p})),children:e.children})};Ie.states=Xs;Ie.options=Ws;Ie.className=Vt;Ie.defaultOptions=Js;Ie.moduleName=kt;Ie.folderName=Ft;import{Fragment as Zs,jsx as Eo}from"react/jsx-runtime";var ei="k-clear-value",Ys=[s.disabled,s.loading,s.readonly],Qs={},Ne=e=>{let{disabled:t,loading:o,readonly:i,value:a}=e;return t||i||o||!a?Eo(Zs,{}):Eo("span",{className:n(e.className,ei),children:Eo(u,{icon:"x"})})};Ne.states=Ys;Ne.options=Qs;Ne.className=ei;import{jsx as tr}from"react/jsx-runtime";var To="k-input-inner",js=[],er={},$t={type:"text",autocomplete:"off",value:"",placeholder:""},Me=e=>{let{value:t=$t.value,type:o=$t.type,placeholder:i=$t.placeholder,autocomplete:a=$t.autocomplete,disabled:r,readOnly:m,...p}=e;return tr("input",{...p,type:o,className:n(e.className,To,I(To,e)),placeholder:i,autoComplete:a,defaultValue:t,disabled:r||void 0,readOnly:m||void 0})};Me.states=js;Me.options=er;Me.className=To;import{jsx as ti,jsxs as ir}from"react/jsx-runtime";var Oo="k-input-inner",or=[],nr={},gt=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:a,valueIconName:r,...m}=e;return ir("span",{...m,className:n(e.className,Oo,I(Oo,e)),children:[a,!a&&r&&ti(u,{className:"k-input-value-icon",icon:r}),i&&!t&&o,i&&t&&ti("span",{className:"k-input-value-text",children:t})]})};gt.states=or;gt.options=nr;gt.className=Oo;import{jsx as rr}from"react/jsx-runtime";var yo="k-input-inner",ar=[],sr={},oi={value:"",placeholder:""},Ko=e=>{let{value:t=oi.value,placeholder:o=oi.placeholder,rows:i,disabled:a,...r}=e;return rr("textarea",{...r,className:n(e.className,yo,I(yo,e)),placeholder:o,rows:i,defaultValue:t,disabled:a||void 0})};Ko.states=ar;Ko.options=sr;Ko.className=yo;import{Fragment as mr,jsx as ni}from"react/jsx-runtime";var ii="k-input-loading-icon",lr=[s.disabled,s.loading],pe=e=>{let{disabled:t,loading:o}=e;return t||!o?ni(mr,{}):ni("span",{className:n(e.className,ii,"k-icon k-i-loading")})};pe.states=lr;pe.className=ii;import{Fragment as dr,jsx as ai}from"react/jsx-runtime";var si="k-input-validation-icon",pr=[s.valid,s.invalid,s.disabled,s.loading],cr={},ie=e=>{let{valid:t,invalid:o,disabled:i,loading:a}=e,r=o?"warning-circle":"check-circle";return i||a||!!!(t||o)?ai(dr,{}):ai(u,{className:n(si),icon:r})};ie.states=pr;ie.options=cr;ie.className=si;import{Fragment as br,jsx as ri}from"react/jsx-runtime";var ur="k-input-prefix",fr={direction:"horizontal"},qe=e=>{let{direction:t=fr.direction,...o}=e;return e.children?ri("span",{...o,className:n(ur,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ri(br,{})};import{Fragment as Nr,jsx as li}from"react/jsx-runtime";var hr="k-input-suffix",xr={direction:"horizontal"},Ye=e=>{let{direction:t=xr.direction,...o}=e;return e.children?li("span",{...o,className:n(hr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):li(Nr,{})};import{jsx as Tf}from"react/jsx-runtime";import{jsx as Rf}from"react/jsx-runtime";import{jsx as Lr}from"react/jsx-runtime";var mi="k-input-separator",Mr={direction:"vertical"},Qe=e=>{let{direction:t=Mr.direction,...o}=e;return Lr("span",{...o,className:n(mi,e.className,{[`${mi}-${t}`]:t})})};import{Fragment as pi,jsx as ce,jsxs as Ro}from"react/jsx-runtime";var Ir=U.states,vr=U.defaultOptions,Sr=U.options,kr=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],gr=[],Ze=e=>{let{modifiers:t,valid:o,invalid:i,loading:a,disabled:r,readonly:m,...p}=e,c=t?.prefix,f=t?.suffix,d=t?.["clear-button"],x=t?.["validation-icon"],L=t?.separators;return Ro(U,{...p,valid:o,invalid:i,loading:a,disabled:r,readonly:m,style:{width:300},children:[c&&Ro(pi,{children:[ce(qe,{children:ce(u,{icon:"lock"})}),L&&ce(Qe,{})]}),ce(Me,{placeholder:"Placeholder",value:"Value"}),x&&ce(ie,{valid:o,invalid:i,loading:a,disabled:r}),ce(pe,{loading:a,disabled:r}),d&&ce(Ne,{loading:a,disabled:r,readonly:m,value:"Value"}),f&&Ro(pi,{children:[L&&ce(Qe,{}),ce(Ye,{children:ce(we,{size:p.size,fillMode:"clear",children:"Send"})})]})]})};Ze.options=Sr;Ze.states=Ir;Ze.variants=gr;Ze.defaultOptions=vr;Ze.modifiers=kr;Ze.className=U.className;var wo="popup",ci=wo;import{jsx as di}from"react/jsx-runtime";var ui="k-animation-container",Ar=[],Cr={},_o={positionMode:"absolute",shown:!0},de=e=>{let{positionMode:t=_o.positionMode,shown:o=_o.shown,animationStyle:i,offset:a,...r}=e;return di("div",{...r,style:{...a,...e.style},className:n(e.className,ui,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:di("div",{className:"k-child-animation-container",style:i,children:e.children})})};de.states=Ar;de.options=Cr;de.className=ui;de.defaultOptions=_o;de.moduleName=wo;de.folderName=ci;var Po="popup",fi=Po;import{jsx as bi}from"react/jsx-runtime";var hi="k-popup",Er=[],Tr={},xi={positionMode:"absolute"},B=e=>{let{offset:t,positionMode:o=xi.positionMode,animationStyle:i,containerClassName:a,containerRole:r,containerAriaLabel:m,...p}=e;return bi(de,{positionMode:o,offset:t,animationStyle:i,className:a,role:r,"aria-label":m,children:bi("div",{...p,className:n(e.className,hi),children:e.children})})};B.states=Er;B.options=Tr;B.className=hi;B.defaultOptions=xi;B.moduleName=Po;B.folderName=fi;B.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var Ho="action-buttons",Ni=Ho;import{jsx as Kr}from"react/jsx-runtime";var Xt="k-actions",Or=[],yr={},Do={alignment:"start",orientation:"horizontal"},ue=e=>{let{alignment:t=Do.alignment,orientation:o=Do.orientation,...i}=e;return Kr("div",{...i,className:n(Xt,{[`${Xt}-${t}`]:t,[`${Xt}-${o}`]:o},e.className),children:e.children})};ue.states=Or;ue.options=yr;ue.className=Xt;ue.defaultOptions=Do;ue.moduleName=Ho;ue.folderName=Ni;import{jsx as wr}from"react/jsx-runtime";var Rr="k-actionsheet-footer",Mi={alignment:"stretched",orientation:"horizontal"},je=e=>{let{alignment:t=Mi.alignment,orientation:o=Mi.orientation,template:i,as:a=i?"div":ue,...r}=e;return wr(a,{...r,...!i&&{alignment:t,orientation:o},className:n(e.className,Rr),children:e.children})};var Uo="searchbox",Li=Uo;import{jsx as At,jsxs as Hr}from"react/jsx-runtime";var Ii="k-searchbox",_r=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Pr={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[M.undefined,M.solid,M.flat,M.outline]},Bo={showIcon:!0,icon:"search"},Q=e=>{let{value:t,placeholder:o,size:i,rounded:a,fillMode:r,hover:m,focus:p,valid:c,invalid:f,required:d,loading:x,disabled:L,showIcon:S=Bo.showIcon,icon:g=Bo.icon,"aria-label":A,...k}=e;return Hr(U,{...k,size:i,rounded:a,fillMode:r,hover:m,focus:p,valid:c,invalid:f,required:d,loading:x,disabled:L,className:n(e.className,Ii),children:[S&&At(u,{className:"k-input-icon",icon:g}),At(Me,{placeholder:o,value:t,"aria-label":A}),At(pe,{...e}),At(ie,{...e}),At(Ne,{...e})]})};Q.states=_r;Q.options=Pr;Q.className=Ii;Q.defaultOptions=Bo;Q.moduleName=Uo;Q.folderName=Li;import{jsx as qb}from"react/jsx-runtime";var zo="textbox",vi=zo;import{Fragment as Si,jsx as ve,jsxs as Fo}from"react/jsx-runtime";var ki="k-textbox",Dr=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Ur={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[M.undefined,M.solid,M.flat,M.outline]},Wt={showClearButton:!0,showValidationIcon:!0,separators:!0},z=e=>{let{size:t,rounded:o,fillMode:i,separators:a=Wt.separators,showClearButton:r=Wt.showClearButton,showValidationIcon:m=Wt.showValidationIcon,prefix:p,suffix:c,type:f,value:d,placeholder:x,hover:L,focus:S,valid:g,invalid:A,required:k,loading:C,disabled:R,readonly:Te,id:be,"aria-label":bt,"aria-describedby":ht,...xt}=e;return Fo(U,{...xt,size:t,rounded:o,fillMode:i,hover:L,focus:S,valid:g,invalid:A,required:k,loading:C,disabled:R,readonly:Te,className:n(e.className,ki),children:[p&&Fo(Si,{children:[ve(qe,{children:p}),a&&ve(Qe,{})]}),ve(Me,{id:be,placeholder:x,value:d,type:f,disabled:R,"aria-label":bt,"aria-describedby":ht,"aria-invalid":A?"true":void 0}),m&&ve(ie,{valid:g,invalid:A,loading:C,disabled:R}),ve(pe,{loading:C,disabled:R}),r&&ve(Ne,{loading:C,disabled:R,readonly:Te,value:d}),c&&Fo(Si,{children:[a&&ve(Qe,{}),ve(Ye,{children:c})]})]})};z.states=Dr;z.options=Ur;z.className=ki;z.defaultOptions=Wt;z.moduleName=zo;z.folderName=vi;z.ariaSpec={selector:".k-textbox",rules:[{selector:".k-textbox > .k-input-inner",attribute:"role=textbox or nodeName=input",usage:"Describes the role of the component."},{selector:".k-textbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-textbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the TextBox is in an invalid state."},{selector:".k-textbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the input."},{selector:".k-textbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the TextBox is disabled."}]};var Ct=z;import{jsx as Br}from"react/jsx-runtime";var gi=e=>Br(Ct,{...e});import{Fragment as uh,jsx as dh}from"react/jsx-runtime";import{Fragment as Mh,jsx as Nh}from"react/jsx-runtime";import{jsx as Sh}from"react/jsx-runtime";import{jsx as Go}from"react/jsx-runtime";var zr=z.states,Fr=z.defaultOptions,Gr=z.options,Vr=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],$r=[],et=e=>{let{modifiers:t,...o}=e,i={};return Object.keys(t||{}).forEach(a=>{switch(a){case"prefix":i.prefix=t?.[a]?Go(u,{icon:"lock"}):void 0;break;case"suffix":i.suffix=t?.[a]?Go(we,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":i.showClearButton=t?.[a];break;default:break}}),Go(gi,{value:"Value",style:{width:300},...o,...i})};et.options=Gr;et.states=zr;et.variants=$r;et.defaultOptions=Fr;et.modifiers=Vr;et.className=z.className;import{jsx as Se,jsxs as Vo}from"react/jsx-runtime";var Ai="k-actionsheet-titlebar",Xr={},ae=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:a,filter:r,input:m,inputValue:p,inputPlaceholder:c,adaptive:f,titleId:d,children:x,...L}=e;return Vo("div",{...L,className:n(e.className,Ai),children:[Vo("div",{className:"k-actionsheet-titlebar-group",children:[i&&Se("div",{className:"k-actionsheet-actions",children:i}),!x&&Vo("div",{className:"k-actionsheet-title",id:d,children:[t&&Se("div",{className:"k-text-center",children:t}),o&&Se("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),x&&Se("div",{className:"k-actionsheet-title",id:d,children:x}),a&&Se("div",{className:"k-actionsheet-actions",children:a})]}),(m||r)&&Se("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:m?Se(z,{value:p,placeholder:c,size:f?"large":"medium","aria-label":t||c||"Input"}):Se(Q,{placeholder:"Filter",size:f?"large":"medium","aria-label":"Filter options"})})]})};ae.className=Ai;ae.defaultOptions=Xr;import{jsx as $o,jsxs as Yr}from"react/jsx-runtime";var Xo="k-actionsheet-view",Wr=[],Jr={},qr={},tt=e=>{let{adaptive:t,animated:o,children:i,header:a,footer:r,titleId:m,...p}=e,c=a?.type===ae&&$o(ae,{adaptive:t,titleId:m,...a?.props}),f=r?.type===je&&$o(je,{...r?.props});return Yr("div",{...p,className:n(e.className,Xo,{[`${Xo}-animated`]:o}),children:[c,$o("div",{className:"k-actionsheet-content",children:i}),f]})};tt.states=Wr;tt.options=Jr;tt.className=Xo;tt.defaultOptions=qr;var Et="action-sheet",Jt=Et;var Wo="overlay",Ci=Wo;import{jsx as el}from"react/jsx-runtime";var Ei="k-overlay",Qr=[],Zr={},jr={},ke=e=>{let{...t}=e;return el("div",{...t,className:n(e.className,Ei),children:e.children})};ke.states=Qr;ke.options=Zr;ke.className=Ei;ke.defaultOptions=jr;ke.moduleName=Wo;ke.folderName=Ci;import{jsx as qt,jsxs as nl}from"react/jsx-runtime";var Ti="k-actionsheet",tl=[],ol={},Tt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},w=e=>{let{side:t=Tt.side,fullscreen:o=Tt.fullscreen,adaptive:i=Tt.adaptive,overlay:a=Tt.overlay,template:r,children:m,header:p,footer:c,id:f,...d}=e,x=f&&!r&&p?`${f}-title`:void 0;return nl("div",{className:"k-actionsheet-container",children:[a&&qt(ke,{}),qt(de,{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:qt("div",{...d,id:f,role:"dialog","aria-modal":a?"true":void 0,"aria-labelledby":x,className:n(e.className,Ti,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:r||qt(tt,{header:p,footer:c,adaptive:i,titleId:x,...e,children:m})})})]})};w.states=tl;w.options=ol;w.className=Ti;w.defaultOptions=Tt;w.moduleName=Et;w.folderName=Jt;w.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};import{jsx as rl}from"react/jsx-runtime";var Oi="k-actionsheet-container",il=[],al={},sl={},ot=e=>{let{children:t,...o}=e;return rl("div",{...o,className:Oi,children:t})};ot.states=il;ot.options=al;ot.className=Oi;ot.defaultOptions=sl;ot.moduleName=Et;ot.folderName=Jt;import{jsx as ll}from"react/jsx-runtime";var Jo=e=>{let{...t}=e;return ll("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as pl,jsx as Ot,jsxs as qo}from"react/jsx-runtime";var Yo="k-actionsheet-item",ml=[s.hover,s.focus,s.selected,s.disabled],ge=e=>{let{iconName:t,text:o,description:i,hover:a,focus:r,selected:m,disabled:p,...c}=e;return qo("span",{...c,className:n(e.className,Yo,v(Yo,{hover:a,focus:r,selected:m,disabled:p})),children:[!e.children&&Ot(pl,{children:qo("span",{className:"k-actionsheet-action",children:[t&&Ot("span",{className:"k-icon-wrap",children:Ot(u,{className:"k-actionsheet-item-icon",icon:t})}),qo("span",{className:"k-actionsheet-item-text",children:[o&&Ot("span",{className:"k-actionsheet-item-title",children:o}),i&&Ot("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};ge.states=ml;ge.className=Yo;import{jsx as vx,jsxs as Sx}from"react/jsx-runtime";import{jsx as Cx}from"react/jsx-runtime";import{jsx as yx}from"react/jsx-runtime";import{jsx as _x}from"react/jsx-runtime";import{jsx as _,jsxs as Qo}from"react/jsx-runtime";var cl=w.options,dl=w.states,Ki={...w.defaultOptions,variant:"normal"},ul=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],fl=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],nt=e=>{let{variant:t,modifiers:o,...i}={...Ki,...e},a={},r=Qo(Jo,{children:[_(ge,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),_(ge,{text:"Add to Favorites",iconName:"heart"}),_(ge,{text:"Upload New",iconName:"upload",disabled:!0}),_("hr",{className:"k-hr"}),_(ge,{text:"Cancel",iconName:"cancel"})]}),m="Choose from the items below",p="Select Item";return t==="fullScreen"&&(a.fullScreen=!0),Object.keys(o||{}).forEach(c=>{switch(c){case"actions":a.actionsStart=!!o?.[c],a.actionsEnd=!!o?.[c];break;case"subtitle":a.subtitle=o?.[c]?m:void 0;break;case"footer":a.footer=!!o?.[c];break;default:break}}),t==="adaptive"?_(w,{...i,adaptive:!0,fullscreen:a.fullScreen,header:_(ae,{actionsStart:a.actionsStart?_(N,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:a.actionsEnd?_(N,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:p,subtitle:a.subtitle}),footer:a.footer?Qo(je,{alignment:"stretched",children:[_(N,{text:"Cancel",size:"large",themeColor:"base"}),_(N,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:r}):_(w,{...i,fullscreen:a.fullScreen,header:_(ae,{actionsStart:a.actionsStart?_(N,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:a.actionsEnd?_(N,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:a.subtitle}),footer:a.footer?Qo(je,{alignment:"stretched",children:[_(N,{text:"Apply",themeColor:"primary"}),_(N,{text:"Cancel",themeColor:"base"})]}):void 0,children:r})};nt.options=cl;nt.states=dl;nt.variants=ul;nt.defaultOptions=Ki;nt.modifiers=fl;nt.className=w.className;import en from"react";import{jsx as Ri}from"react/jsx-runtime";var bl="k-list-group-sticky-header",Zo=e=>Ri("div",{className:n(bl,e.className),children:Ri("div",{className:"k-list-header-text",children:e.children})});import{jsx as xl}from"react/jsx-runtime";var hl="k-no-data",jo=e=>{let{live:t,...o}=e;return xl("span",{...o,className:n(hl,e.className),"aria-live":t?"polite":void 0,children:e.children})};var _e="list",it=_e;import{jsx as wi,jsxs as _i}from"react/jsx-runtime";var tn="k-list",Nl=[],Ml={size:[l.undefined,l.small,l.medium,l.large]},Ll={},O=e=>{let{size:t,virtualization:o,children:i,header:a,selectAll:r,optionLabel:m,customValue:p,noData:c,screenReaders:f,...d}=e,L=en.Children.toArray(i)[0],S=L?.props?.children?en.Children.count(L.props.children):en.Children.count(i);return _i("div",{...d,className:n(e.className,tn,I(tn,{size:t}),{"k-virtual-list":o}),children:[m,r,p,a&&wi(Zo,{children:a}),i||(c!==void 0?c:wi(jo,{live:!0,children:"No data found."})),f&&i&&_i(jo,{className:"k-sr-only",live:!0,children:[S," items found."]})]})};O.states=Nl;O.options=Ml;O.className=tn;O.defaultOptions=Ll;O.moduleName=_e;O.folderName=it;O.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as kl}from"react/jsx-runtime";var Pi="k-list-container",Il=[],vl={},Sl={},at=e=>{let{...t}=e;return kl("div",{...t,className:n(e.className,Pi),children:e.children})};at.states=Il;at.options=vl;at.className=Pi;at.defaultOptions=Sl;at.moduleName=_e;at.folderName=it;import{jsx as Pe,jsxs as El}from"react/jsx-runtime";var on="k-list-item",gl=[s.hover,s.focus,s.selected,s.disabled],Al={},Cl={},T=e=>{let{text:t,groupLabel:o,group:i,iconName:a,iconClassName:r,showCheckbox:m,checked:p,hover:c,focus:f,selected:d,disabled:x,actions:L,description:S,id:g,...A}=e,k=t||e.children;return El("li",{...A,id:g,role:i?"presentation":"option",tabIndex:i?void 0:f?0:-1,"aria-selected":!i&&d?"true":i?void 0:"false","aria-disabled":!i&&x?"true":void 0,className:n(e.className,i?"k-list-group-item":on,v(on,{hover:c,focus:f,disabled:x,selected:d})),children:[m&&Pe(y,{checked:p}),a&&Pe("span",{className:"k-list-item-icon-wrapper",children:Pe(u,{icon:a,className:n("k-list-item-icon",r)})}),Pe("span",{className:"k-list-item-text",children:k}),L&&Pe("div",{className:"k-list-item-actions",children:L}),S&&Pe("span",{className:"k-list-item-description",children:S}),o&&o!==""&&Pe("div",{className:"k-list-item-group-label",children:o})]})};T.states=gl;T.options=Al;T.className=on;T.defaultOptions=Cl;T.moduleName=_e;T.folderName=it;T.ariaSpec={selector:".k-list-item",rules:[{selector:".k-list-item",attribute:"role=option",usage:"Each list item is an option in the listbox."},{selector:".k-list-item",attribute:"id",usage:"ID for aria-activedescendant reference."},{selector:".k-list-item",attribute:"aria-selected (when selectable)",usage:"Indicates the selected state of the option."},{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-item-icon",attribute:"aria-hidden=true",usage:"Decorative icons are hidden from assistive technology."}]};import{jsx as Ol}from"react/jsx-runtime";var Tl="k-list-ul",He=e=>{let{children:t,role:o,id:i,...a}=e;return Ol("ul",{...a,id:i,role:o,className:n(Tl,e.className),children:t})};He.ariaSpec={selector:".k-list-ul",rules:[{selector:'.k-list-ul[role="listbox"]',attribute:"role=listbox",usage:"For ungrouped lists, the UL has the listbox role."},{selector:'.k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."},{selector:'.k-list-ul[role="group"]',attribute:"role=group",usage:"For grouped sublists under a group header."},{selector:'.k-list-ul[role="group"]',attribute:"aria-labelledby (when grouped)",usage:"References the group header ID."}]};import{jsx as nn,jsxs as Kl}from"react/jsx-runtime";var yl="k-list-content",X=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":a,listboxId:r,...m}=e;return Kl("div",{...m,className:n(yl,e.className),role:o?"listbox":void 0,id:o?r:void 0,"aria-label":o?i:void 0,"aria-labelledby":o?a:void 0,children:[o?e.children:nn(He,{role:"listbox",id:r,"aria-label":i,"aria-labelledby":a,children:e.children}),t&&nn("div",{className:"k-height-container",children:nn("div",{})})]})};X.ariaSpec={selector:".k-list-content",rules:[{selector:'.k-list-content[role="listbox"]',attribute:"role=listbox",usage:"For grouped lists, the list content container has the listbox role."},{selector:'.k-list-content[role="listbox"]',attribute:"aria-label or aria-labelledby (when has accessible name)",usage:"Accessible name for the listbox."}]};import{jsx as an,jsxs as Pl}from"react/jsx-runtime";var Yt="k-list-sticky-header",Rl=[s.hover,s.focus,s.selected],wl={},_l={},Qt=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:i,indeterminate:a,hover:r,focus:m,selected:p,...c}=e;return an("div",{...c,className:n(Yt,e.className),children:Pl("div",{className:n(`${Yt}-item`,v(`${Yt}-item`,{hover:r,focus:m,selected:p})),children:[o&&an(y,{checked:i,indeterminate:a,"aria-label":t}),an("span",{className:"k-list-item-text",children:t})]})})};Qt.states=Rl;Qt.options=wl;Qt.className=Yt;Qt.defaultOptions=_l;import{Fragment as $N,jsx as VN,jsxs as XN}from"react/jsx-runtime";import{jsx as sn,jsxs as Dl}from"react/jsx-runtime";var Hl="k-list-group-item",yt=e=>{let{groupIconName:t,...o}=e;return Dl("li",{...o,role:"presentation",className:n(Hl,e.className),children:[t&&sn("span",{className:"k-list-item-icon-wrapper",children:sn(u,{icon:t,className:"k-list-item-icon"})}),sn("span",{className:"k-list-item-text",children:e.children})]})};yt.ariaSpec={selector:".k-list-group-item",rules:[{selector:".k-list-group-item",attribute:"role=presentation",usage:"Group headers are presentational, not selectable options."},{selector:".k-list-group-item",attribute:"id (when referenced)",usage:"ID for aria-labelledby on the parent group UL."}]};import{jsx as Fl}from"react/jsx-runtime";var rn="k-list-optionlabel",Ul=[s.hover,s.focus,s.selected,s.disabled],Bl={},zl={},Zt=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:r,...m}=e;return Fl("div",{...m,className:n(rn,v(rn,{hover:o,focus:i,selected:a,disabled:r})),children:t})};Zt.states=Ul;Zt.options=Bl;Zt.className=rn;Zt.defaultOptions=zl;import{jsx as Xl}from"react/jsx-runtime";var ln="k-list-custom-value",Gl=[s.hover,s.focus,s.selected,s.disabled],Vl={},$l={},jt=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:r,...m}=e;return Xl("div",{...m,className:n(ln,v(ln,{hover:o,focus:i,selected:a,disabled:r})),children:t})};jt.states=Gl;jt.options=Vl;jt.className=ln;jt.defaultOptions=$l;import{Fragment as lM,jsx as rM,jsxs as mM}from"react/jsx-runtime";import{Fragment as bM,jsx as fM,jsxs as hM}from"react/jsx-runtime";import{Fragment as SM,jsx as IM,jsxs as vM}from"react/jsx-runtime";import{Fragment as OM,jsx as EM,jsxs as TM}from"react/jsx-runtime";import{jsx as wM}from"react/jsx-runtime";import{Fragment as BM,jsx as UM,jsxs as zM}from"react/jsx-runtime";var Hi="dropdown-list",Di="dropdownlist";import{Fragment as ql,jsx as W,jsxs as mn}from"react/jsx-runtime";var Ui="k-dropdownlist",Wl=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Jl={size:[l.undefined,l.small,l.medium,l.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[M.undefined,M.solid,M.flat,M.outline]},pn={showValue:!0,arrowIconName:"chevron-down"},q=e=>{let{size:t,rounded:o,fillMode:i,arrowIconName:a=pn.arrowIconName,showValue:r=pn.showValue,valueIconName:m,prefix:p,suffix:c,value:f,placeholder:d,hover:x,focus:L,valid:S,invalid:g,required:A,loading:k,disabled:C,readonly:R,popup:Te,opened:be,adaptive:bt,adaptiveSettings:ht,adaptiveTitle:xt,adaptiveSubtitle:pa,adaptiveFilter:ca,id:Nt,activeDescendant:kn,"aria-label":da,...ua}=e,fa=Nt?`${Nt}-listbox`:void 0,gn=Nt?`${Nt}-value`:void 0;return mn(ql,{children:[mn(Ie,{...ua,id:Nt,size:t,rounded:o,fillMode:i,hover:x,focus:L,valid:S,invalid:g,required:A,loading:k,disabled:C,readonly:R,className:n(e.className,Ui,{"k-icon-picker":!r&&m}),role:"combobox","aria-haspopup":"listbox","aria-expanded":be?"true":"false","aria-controls":be?fa:void 0,"aria-activedescendant":be&&kn?kn:void 0,"aria-describedby":be?gn:void 0,"aria-disabled":C?"true":void 0,"aria-label":da,tabIndex:0,children:[W(qe,{children:p}),W(gt,{placeholder:d,value:f,showValue:r,valueIconName:m,id:gn}),W(ie,{valid:S,invalid:g,loading:k,disabled:C}),W(pe,{loading:k,disabled:C}),W(Ye,{children:c}),W(N,{className:"k-input-button",icon:a,size:e.size,fillMode:e.fillMode,"aria-label":d||"Toggle dropdown",tabIndex:-1})]}),be&&Te&&W(B,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown suggestions",children:Te}),bt&&W(w,{adaptive:!0,...ht,header:W(ae,{actionsEnd:W(N,{icon:"check",themeColor:"primary",size:"large",fillMode:"flat","aria-label":"Apply selection"}),filter:ca,inputValue:f,inputPlaceholder:d,title:xt,subtitle:pa}),children:W("div",{className:"k-list-container",children:W(O,{size:"large",children:mn(X,{"aria-label":"Options",children:[W(T,{text:"List item"}),W(T,{text:"List item"}),W(T,{text:"List item"})]})})})})]})};q.states=Wl;q.options=Jl;q.className=Ui;q.defaultOptions=pn;q.moduleName=Hi;q.folderName=Di;q.ariaSpec={rules:[{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"role=combobox",usage:"Announces the dropdown element."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-haspopup=listbox",usage:"Indicates the presence of a listbox popup."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-expanded",usage:"Announces the visibility state of the popup."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"aria-label",usage:"Accessible name for the dropdown."},{selector:".k-dropdownlist:not(.k-views-dropdown)",attribute:"tabindex=0",usage:"The element must be focusable."},{selector:".k-dropdownlist.k-disabled",attribute:"aria-disabled=true",usage:"Rendered when the dropdown is disabled."},{selector:".k-dropdownlist .k-input-button",attribute:"aria-label",usage:"Accessible name for the dropdown button."},{selector:".k-dropdownlist .k-input-button",attribute:"tabindex=-1",usage:"The button must not be focusable."},{selector:".k-dropdownlist-popup .k-list-content, .k-dropdownlist-popup .k-list-ul",attribute:"role=listbox",usage:"Popup list has listbox role."},{selector:'.k-dropdownlist-popup .k-list-ul[role="listbox"]',attribute:"aria-label or aria-labelledby",usage:"Popup listbox must have an accessible name. Consuming code is responsible for associating with the component label via aria-labelledby."},{selector:".k-dropdownlist-popup .k-list-item",attribute:"role=option",usage:"Each list item is an option."}]};import{jsx as IL}from"react/jsx-runtime";import{jsx as CL,jsxs as EL}from"react/jsx-runtime";import{Fragment as HL,jsx as _L,jsxs as PL}from"react/jsx-runtime";import{jsx as FL}from"react/jsx-runtime";import{jsx as JL,jsxs as qL}from"react/jsx-runtime";import{Fragment as iI,jsx as oI,jsxs as nI}from"react/jsx-runtime";import{jsx as mI}from"react/jsx-runtime";import{Fragment as tm,jsx as Ae,jsxs as Bi}from"react/jsx-runtime";var Yl=q.states,Ql=q.defaultOptions,Zl=q.options,jl=[{name:"opened",title:"Opened"}],em=[],rt=e=>{let{modifiers:t,...o}=e,i={},a=Bi(tm,{children:[Ae("div",{className:"k-list-filter",children:Ae(Q,{})}),Ae(O,{style:{width:300},size:o.size,children:Bi(X,{children:[Ae(T,{children:"List item"}),Ae(T,{children:"List item"}),Ae(T,{children:"List item"})]})})]});return Object.keys(t||{}).forEach(r=>{r==="opened"&&(i.opened=!!t?.[r],i.popup=t?.[r]?a:void 0)}),Ae("div",{children:Ae(q,{placeholder:"Value",style:{width:300},...o,...i})})};rt.options=Zl;rt.states=Yl;rt.variants=em;rt.defaultOptions=Ql;rt.modifiers=jl;rt.className=q.className;import{Fragment as _I,jsx as RI,jsxs as wI}from"react/jsx-runtime";import{Fragment as $I,jsx as GI,jsxs as VI}from"react/jsx-runtime";var cn="menu-button",zi=cn;import{jsx as im}from"react/jsx-runtime";var Fi="k-menu-button",om=[s.hover,s.focus,s.active,s.selected,s.disabled],nm={size:[l.undefined,l.xsmall,l.small,l.me