@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 105 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"}),S=(e,t)=>{let{valid:o,invalid:i,hover:a,focus:s,checked:l,active:c,selected:u,disabled:p,indeterminate:f,loading:v,empty:L,readonly:w,highlighted:R,...M}=t;return n({"k-valid":o,"k-invalid":i,"k-hover":a,"k-focus":s,"k-checked":l,"k-active":c,"k-selected":u,"k-disabled":p,"k-indeterminate":f&&!l,"k-loading":v,"k-empty":L,"k-readonly":w,"k-highlighted":R},Object.keys(M).reduce((C,E)=>(E.startsWith("k-")?C[E]=M[E]:C[`k-${E}`]=M[E],C),{}))};function Ia(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(i=>[`k-${i}`,!0]))}var d={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},m={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},h={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Oe={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},g={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},r={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 ii={};function y(e){return ii[e]=(ii[e]||0)+1,`k-${e}-${ii[e]}`}import{Fragment as Zn,jsx as Sa}from"react/jsx-runtime";var ai="k-font-icon",Jn=[],Yn={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info]},Qn={},Zt=e=>{let{size:t,themeColor:o,icon:i,rotate:a,flip:s,...l}=e;return i?Sa("span",{...l,className:n(e.className,ai,I(ai,{size:t}),{[`k-i-${i}`]:i,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):Sa(Zn,{})};Zt.states=Jn;Zt.options=Yn;Zt.className=ai;Zt.defaultOptions=Qn;var Aa=Zt;import{Fragment as ts,jsx as Lo}from"react/jsx-runtime";var ri="k-svg-icon",jn=[],es={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info],variant:[Oe.outline,Oe.solid,Oe.duotone]},ni={viewBox:"0 0 24 24",variant:Oe.outline},jt=e=>{let{size:t,themeColor:o,rotate:i,flip:a,viewBox:s=ni.viewBox,variant:l=ni.variant,icon:c,...u}=e;if(!c)return Lo(ts,{});if(c==="none")return Lo("span",{...u,className:n(e.className,ri,I("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let p=typeof c=="object"&&c.name&&c.name,f=typeof c=="object"?l&&c.variants?.[l]||c.variants?.outline||c.content:void 0;return Lo("span",{...u,className:n(e.className,ri,I("k-icon",{size:t}),{[`k-svg-i-${p}`]:p,[`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:Lo("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:s,dangerouslySetInnerHTML:f!==void 0?{__html:f}:void 0,children:c?void 0:e.children})})};jt.states=jn;jt.options=es;jt.className=ri;jt.defaultOptions=ni;var si=jt;import*as li from"@progress/kendo-svg-icons";var Ea="icon",Ma="icons";import{useContext as is}from"react";import{createContext as os}from"react";var Ra=os({iconsType:"svg"});import{Fragment as Oa,jsx as eo}from"react/jsx-runtime";var yo="k-icon",as=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),rs=[],ns={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info],variant:[Oe.outline,Oe.solid,Oe.duotone]},To={viewBox:"0 0 24 24",type:"svg",variant:Oe.outline},N=e=>{let{iconsType:t}=is(Ra),{size:o,themeColor:i,icon:a,type:s=t||To.type,rotate:l,flip:c,viewBox:u=To.viewBox,variant:p=To.variant,...f}=e;if(!a)return eo(Oa,{});if((t||s)==="svg"){if(a==="none")return eo(si,{...f,className:n(e.className,yo),icon:a,size:o,variant:p});let L=li[a]?a:as(`${a}-icon`);return li[L]?eo(si,{...f,className:n(e.className,yo),icon:li[L],size:o,themeColor:i,rotate:l,flip:c,viewBox:u,variant:p}):eo(Oa,{})}return eo(Aa,{...f,className:n(e.className,yo),icon:a,size:o,themeColor:i,rotate:l,flip:c})};N.states=rs;N.options=ns;N.defaultOptions=To;N.className=yo;N.moduleName=Ea;N.folderName=Ma;N.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 Pa,jsxs as cs}from"react/jsx-runtime";var Ka="k-pivotgrid-configurator-button",ss=[],ls={},ds={},at=e=>{let{...t}=e;return Pa("div",{...t,className:n(e.className,Ka),"aria-hidden":"true",children:cs("span",{children:["Change settings",Pa(N,{icon:"gear"})]})})};at.states=ss;at.options=ls;at.className=Ka;at.defaultOptions=ds;var Da=at;import ps from"react";var di="pivotgrid",_a=di;import{jsx as Pe,jsxs as Ha}from"react/jsx-runtime";var za="k-pivotgrid",ms=[],us={},Co={emptyCell:Pe("div",{className:"k-pivotgrid-empty-cell",role:"none",children:Pe("table",{role:"none",children:Pe("thead",{role:"none",children:Pe("tr",{role:"none",children:Pe("th",{"aria-colspan":1,"aria-rowspan":1,id:y("pivotgrid-empty"),children:Pe("span",{className:"k-sr-only",children:"PivotGrid component. Use the arrow keys to navigate."})})})})})}),configuratorDisplay:"none",configuratorPosition:"right"},ue=e=>{let{emptyCell:t=Co.emptyCell,configuratorDisplay:o=Co.configuratorDisplay,configuratorPosition:i=Co.configuratorPosition,configurator:a,columnHeaders:s,rowHeaders:l,children:c,...u}=e;return Ha("div",{className:{left:"k-d-flex k-flex-row-reverse k-pos-relative",bottom:"k-d-flex k-flex-col k-pos-relative",top:"k-d-flex k-flex-col-reverse k-pos-relative",right:"k-d-flex k-flex-row k-pos-relative"}[i],children:[Ha("div",{...u,className:n(e.className,za),role:"grid",children:[t,Pe("div",{className:"k-pivotgrid-column-headers",role:"none",children:s}),Pe("div",{className:"k-pivotgrid-row-headers",role:"none",children:l}),Pe("div",{className:"k-pivotgrid-values",role:"none",children:c})]}),a&&o==="opened"&&a,a&&o==="closed"&&ps.cloneElement(a,{"aria-hidden":"true"}),o!=="none"&&Pe(Da,{})]})};ue.states=ms;ue.options=us;ue.className=za;ue.defaultOptions=Co;ue.moduleName=di;ue.folderName=_a;ue.ariaSpec={selector:".k-pivotgrid",rules:[{selector:".k-pivotgrid",attribute:"role=grid",usage:"The role specifies the element is a Data Grid."},{selector:".k-pivotgrid-empty-cell th",attribute:"id",usage:"Sets a unique identifier for the cell to be referenced from the first column header row aria-owns attribute."},{selector:".k-pivotgrid-column-headers>.k-pivotgrid-table",attribute:"role=none",usage:"Negates the default semantic role of the <table> element."},{selector:".k-pivotgrid-column-headers>.k-pivotgrid-table>tbody",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-pivotgrid-column-headers>.k-pivotgrid-table>tbody>.k-pivotgrid-row",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-pivotgrid-column-headers>.k-pivotgrid-table>tbody>.k-pivotgrid-row:first-child",attribute:"aria-owns",usage:"Lists the IDs of the empty cell and all cells in the first column headers row to construct the a11y tree."},{selector:".k-pivotgrid-column-headers>.k-pivotgrid-table>tbody>.k-pivotgrid-row>th",attribute:"role=columnheader",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-pivotgrid-column-headers>.k-pivotgrid-table>tbody>.k-pivotgrid-row>th",attribute:"aria-expanded (when expandable)",usage:"Indicates the current expanded state of the header."},{selector:".k-pivotgrid-column-headers>.k-pivotgrid-table>tbody>.k-pivotgrid-row>th",attribute:"id",usage:"Unique and deterministic identifier, used to associate the header cell with respective data cells."},{selector:'[class*="i-chevron-up"]',attribute:"aria-hidden=true",usage:"Excludes the collapse icon from the screen reader output."},{selector:'[class*="i-chevron-down"]',attribute:"aria-hidden=true",usage:"Excludes the expand icon from the screen reader output."},{selector:".k-pivotgrid-row-headers>.k-pivotgrid-table",attribute:"role=none",usage:"Negates the default semantic role of the <table> element."},{selector:".k-pivotgrid-row-headers>.k-pivotgrid-table>tbody",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-pivotgrid-row-headers>.k-pivotgrid-table>tbody>.k-pivotgrid-row",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-pivotgrid-row-headers>.k-pivotgrid-table>tbody>.k-pivotgrid-row",attribute:"aria-owns (when present)",usage:"Used to associate row header cells with the corresponding data cells."},{selector:".k-pivotgrid-row-headers>.k-pivotgrid-table>tbody>.k-pivotgrid-row>th",attribute:"role=rowheader",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-pivotgrid-row-headers>.k-pivotgrid-table>tbody>.k-pivotgrid-row>th",attribute:"aria-expanded (when expandable)",usage:"Indicates the current expanded state of the header."},{selector:".k-pivotgrid-values>.k-pivotgrid-table",attribute:"role=none",usage:"Negates the default semantic role of the <table> element."},{selector:".k-pivotgrid-values>.k-pivotgrid-table>tbody",attribute:"role=none",usage:"The contained rows are associated with their headers through alternative mechanics."},{selector:".k-pivotgrid-values>.k-pivotgrid-table>tbody>.k-pivotgrid-row",attribute:"role=none",usage:"The rows are associated with their headers through alternative mechanics."},{selector:".k-pivotgrid-values>.k-pivotgrid-table>tbody>.k-pivotgrid-row>td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-pivotgrid-values>.k-pivotgrid-table>tbody>.k-pivotgrid-row>td",attribute:"id",usage:"Unique and deterministic identifier, used to associate the data cell with respective row header cells."},{selector:".k-pivotgrid-values>.k-pivotgrid-table>tbody>.k-pivotgrid-row>td",attribute:"aria-describedby (when present)",usage:"Used to associate the data cells with the respective column header cells."},{selector:".k-pivotgrid-configurator-button",attribute:"aria-hidden=true",usage:"Hide the element from assistive technologies."},{selector:".k-pivotgrid-configurator",attribute:"role=dialog",usage:"The role specifies the element is a dialog."},{selector:".k-pivotgrid-configurator",attribute:"aria-hidden (when closed)",usage:"Specifies whether the configurator is visible if it is still in the DOM when closed."},{selector:".k-pivotgrid-configurator",attribute:"aria-labelledby",usage:"Associates the configurator wrapper with its internal header element."},{selector:".k-pivotgrid-configurator-header-text",attribute:"id",usage:"Unique identifier used to associate the header text with elements that reference it as a label."},{selector:".k-pivotgrid-configurator-content .k-label",attribute:"id",usage:"Unique identifier used to associate the label text with elements that reference it as a label."},{selector:".k-pivotgrid-configurator-actions .k-button.k-disabled",attribute:"aria-disabled=true (when disabled)",usage:"Announces the non-interactive state of the configurator Cancel and Apply buttons."},{selector:".k-fields-list-wrapper .k-treeview",attribute:"aria-labelledby",usage:"Associates the fields chooser TreeView with the Fields section and Configurator header texts."},{selector:".k-pivotgrid-configurator-content .k-chip-list",attribute:"aria-labelledby",usage:"Associates the chip lists with their respective section label and Configurator header texts."}]};var ci="action-buttons",Ba=ci;import{jsx as hs}from"react/jsx-runtime";var wo="k-actions",fs=[],bs={},pi={alignment:"start",orientation:"horizontal"},Ke=e=>{let{alignment:t=pi.alignment,orientation:o=pi.orientation,...i}=e;return hs("div",{...i,className:n(wo,{[`${wo}-${t}`]:t,[`${wo}-${o}`]:o},e.className),children:e.children})};Ke.states=fs;Ke.options=bs;Ke.className=wo;Ke.defaultOptions=pi;Ke.moduleName=ci;Ke.folderName=Ba;var mi="button",Fa=mi;import{Fragment as Ga,jsx as bt,jsxs as Ua}from"react/jsx-runtime";var to="k-button",xs=["icon-button"],vs=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],Ns={size:[d.undefined,d.xsmall,d.small,d.medium,d.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info,g.inverse]},ui={showArrow:!1,arrowIconName:"chevron-down"},T=e=>{let{as:t="button",size:o,rounded:i,fillMode:a,themeColor:s,showArrow:l=ui.showArrow,arrowIconName:c=ui.arrowIconName,variant:u,hover:p,focus:f,active:v,selected:L,disabled:w,togglable:R,ariaDisabled:M,icon:C,iconSize:E,text:_,iconClassName:V,className:q,...ve}=e,Be=C!=null,it=e.children!==void 0;return Ua(t,{className:n(q,to,Ia(to,u),I(to,{size:o,rounded:i,fillMode:a,themeColor:s}),S(to,{hover:p,focus:f,active:v,disabled:w||M,selected:L}),{"k-icon-button":!_&&!it&&Be}),"aria-pressed":R?L?"true":"false":void 0,...ve,"aria-disabled":M?"true":void 0,disabled:w||void 0,children:[typeof C=="string"&&C&&bt(N,{className:n(V,"k-button-icon"),icon:C,size:E}),C&&typeof C!="string"&&bt(Ga,{children:C}),_?Ua(Ga,{children:[_&&bt("span",{className:"k-button-text",children:_}),e.children]}):e.children&&bt("span",{className:"k-button-text",children:e.children}),l&&bt("span",{className:"k-menu-button-arrow k-button-arrow",children:bt(N,{icon:c})})]})};T.states=vs;T.options=Ns;T.variants=xs;T.className=to;T.defaultOptions=ui;T.moduleName=mi;T.folderName=Fa;T.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 gs}from"react/jsx-runtime";var fi=e=>gs(T,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as ks}from"react/jsx-runtime";var $a=e=>ks(T,{icon:"folder",children:"Button",...e});import{jsx as Ls}from"react/jsx-runtime";var rt=e=>Ls(T,{children:"Button",...e});import{jsx as bi}from"react/jsx-runtime";var ys=T.options,Ts=T.states,Cs={...T.defaultOptions,variant:"text"},ws=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Is=[],ht=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return bi(fi,{...o,icon:"star"});case"icon-and-text":return bi($a,{...o,icon:"star",children:"Button"});default:return bi(rt,{...o,children:"Button"})}};ht.options=ys;ht.states=Ts;ht.variants=ws;ht.defaultOptions=Cs;ht.modifiers=Is;ht.className=T.className;import{Fragment as Ms,jsx as nt,jsxs as Va}from"react/jsx-runtime";var Io="k-pivotgrid-configurator",Ss=[],As={},Es=Va(Ms,{children:[nt(T,{children:"Cancel"}),nt(T,{themeColor:"primary",children:"Apply"})]}),oo={orientation:"vertical",mode:"push",actionButtons:Es,header:"Settings"},Fe=e=>{let{orientation:t=oo.orientation,mode:o=oo.mode,actionButtons:i=oo.actionButtons,header:a=oo.header,headerId:s,children:l,...c}=e,u=s||y("pivotgrid-configurator-header");return nt("div",{...c,className:n(e.className,Io),role:"dialog","aria-labelledby":u,children:Va("div",{className:n("k-pivotgrid-configurator-panel",{[`${Io}-${t}`]:t,[`${Io}-${o}`]:o}),children:[nt("div",{className:"k-pivotgrid-configurator-header",children:nt("div",{className:"k-pivotgrid-configurator-header-text",id:u,children:a})}),nt("div",{className:"k-pivotgrid-configurator-content",children:l}),nt(Ke,{alignment:"end",className:"k-pivotgrid-configurator-actions",children:i})]})})};Fe.states=Ss;Fe.options=As;Fe.className=Io;Fe.defaultOptions=oo;import{jsx as hi,jsxs as Ks}from"react/jsx-runtime";var xi="k-pivotgrid-cell",Rs=[r.focus,r.selected],Os={},Ps={},b=e=>{let{as:t="td",toggle:o,headerTitle:i,content:a,headerRootCell:s,totalCell:l,headerTotalCell:c,rowTotalCell:u,focus:p,selected:f,...v}=e,L={up:"up",down:"down"};return Ks(t,{...v,className:n(e.className,xi,{"k-pivotgrid-expanded":o==="up","k-pivotgrid-header-root":s,"k-pivotgrid-total":l,"k-pivotgrid-header-total":c,"k-pivotgrid-row-total":u},S(xi,{focus:p,selected:f})),children:[o&&hi(N,{className:"k-pivotgrid-toggle",icon:`chevron-${L[o]}`}),i&&hi("span",{className:"k-pivotgrid-header-title",children:i}),(a||a==="")&&hi("span",{className:"k-pivotgrid-content",children:a})]})};b.states=Rs;b.options=Os;b.className=xi;b.defaultOptions=Ps;import{jsx as zs}from"react/jsx-runtime";var vi="k-pivotgrid-row",Ds=[r.hover,r.selected],_s={},Hs={},A=e=>{let{columnTotal:t,children:o,hover:i,selected:a,...s}=e;return zs("tr",{...s,className:n(e.className,vi,{"k-pivotgrid-column-total":t},S(vi,{hover:i,selected:a})),children:o})};A.states=Ds;A.options=_s;A.className=vi;A.defaultOptions=Hs;import{jsx as Us}from"react/jsx-runtime";var Xa="k-pivotgrid-table",Bs=[],Fs={},Gs={},Ne=e=>{let{children:t,...o}=e;return Us("table",{...o,className:n(e.className,Xa),children:t})};Ne.states=Bs;Ne.options=Fs;Ne.className=Xa;Ne.defaultOptions=Gs;import{jsx as qs}from"react/jsx-runtime";var qa="k-pivotgrid-tbody",$s=[],Vs={},Xs={},ge=e=>{let{children:t,...o}=e;return qs("tbody",{...o,className:n(e.className,qa),children:t})};ge.states=$s;ge.options=Vs;ge.className=qa;ge.defaultOptions=Xs;var io="input",So=io;import{jsx as Qs}from"react/jsx-runtime";var Ao="k-input",Ws=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Js={size:[d.undefined,d.small,d.medium,d.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Ys={},H=e=>{let{hover:t,focus:o,disabled:i,invalid:a,valid:s,loading:l,readonly:c,size:u,rounded:p,fillMode:f,...v}=e;return Qs("span",{...v,className:n(e.className,Ao,I(Ao,{size:u,rounded:p,fillMode:f}),S(Ao,{hover:t,focus:o,disabled:i,invalid:a,valid:s,loading:l,readonly:c}))})};H.states=Ws;H.options=Js;H.className=Ao;H.defaultOptions=Ys;H.moduleName=io;H.folderName=So;import{jsx as tl}from"react/jsx-runtime";var Eo="k-picker",Zs=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],js={size:[d.undefined,d.small,d.medium,d.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},el={},We=e=>{let{hover:t,focus:o,disabled:i,invalid:a,valid:s,loading:l,readonly:c,size:u,rounded:p,fillMode:f,...v}=e;return tl("span",{...v,className:n(e.className,Eo,I(Eo,{size:u,rounded:p,fillMode:f}),S(Eo,{hover:t,focus:o,disabled:i,invalid:a,valid:s,loading:l,readonly:c})),children:e.children})};We.states=Zs;We.options=js;We.className=Eo;We.defaultOptions=el;We.moduleName=io;We.folderName=So;import{Fragment as al,jsx as Ni}from"react/jsx-runtime";var Wa="k-clear-value",ol=[r.disabled,r.loading,r.readonly],il={},oe=e=>{let{disabled:t,loading:o,readonly:i,value:a}=e;return t||i||o||!a?Ni(al,{}):Ni("span",{className:n(e.className,Wa),children:Ni(N,{icon:"x"})})};oe.states=ol;oe.options=il;oe.className=Wa;import{jsx as sl}from"react/jsx-runtime";var gi="k-input-inner",rl=[],nl={},Mo={type:"text",autocomplete:"off",value:"",placeholder:""},ie=e=>{let{value:t=Mo.value,type:o=Mo.type,placeholder:i=Mo.placeholder,autocomplete:a=Mo.autocomplete,disabled:s,readOnly:l,...c}=e;return sl("input",{...c,type:o,className:n(e.className,gi,I(gi,e)),placeholder:i,autoComplete:a,defaultValue:t,disabled:s||void 0,readOnly:l||void 0})};ie.states=rl;ie.options=nl;ie.className=gi;import{jsx as Ja,jsxs as cl}from"react/jsx-runtime";var ki="k-input-inner",ll=[],dl={},ao=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:a,valueIconName:s,...l}=e;return cl("span",{...l,className:n(e.className,ki,I(ki,e)),children:[a,!a&&s&&Ja(N,{className:"k-input-value-icon",icon:s}),i&&!t&&o,i&&t&&Ja("span",{className:"k-input-value-text",children:t})]})};ao.states=ll;ao.options=dl;ao.className=ki;import{jsx as ul}from"react/jsx-runtime";var Li="k-input-inner",pl=[],ml={},Ya={value:"",placeholder:""},ro=e=>{let{value:t=Ya.value,placeholder:o=Ya.placeholder,rows:i,disabled:a,...s}=e;return ul("textarea",{...s,className:n(e.className,Li,I(Li,e)),placeholder:o,rows:i,defaultValue:t,disabled:a||void 0})};ro.states=pl;ro.options=ml;ro.className=Li;import{Fragment as bl,jsx as Qa}from"react/jsx-runtime";var Za="k-input-loading-icon",fl=[r.disabled,r.loading],ee=e=>{let{disabled:t,loading:o}=e;return t||!o?Qa(bl,{}):Qa("span",{className:n(e.className,Za,"k-icon k-i-loading")})};ee.states=fl;ee.className=Za;import{Fragment as vl,jsx as ja}from"react/jsx-runtime";var er="k-input-validation-icon",hl=[r.valid,r.invalid,r.disabled,r.loading],xl={},J=e=>{let{valid:t,invalid:o,disabled:i,loading:a}=e,s=o?"warning-circle":"check-circle";return i||a||!!!(t||o)?ja(vl,{}):ja(N,{className:n(er),icon:s})};J.states=hl;J.options=xl;J.className=er;import{Fragment as kl,jsx as tr}from"react/jsx-runtime";var Nl="k-input-prefix",gl={direction:"horizontal"},ke=e=>{let{direction:t=gl.direction,...o}=e;return e.children?tr("span",{...o,className:n(Nl,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):tr(kl,{})};import{Fragment as Tl,jsx as or}from"react/jsx-runtime";var Ll="k-input-suffix",yl={direction:"horizontal"},Le=e=>{let{direction:t=yl.direction,...o}=e;return e.children?or("span",{...o,className:n(Ll,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):or(Tl,{})};import{jsx as Qb}from"react/jsx-runtime";import{jsx as wl}from"react/jsx-runtime";var Cl="k-input-suffix-text",yi=e=>{let{children:t,...o}=e;return wl("span",{...o,className:n(Cl,e.className),children:t})};import{jsx as Sl}from"react/jsx-runtime";var ir="k-input-separator",Il={direction:"vertical"},ae=e=>{let{direction:t=Il.direction,...o}=e;return Sl("span",{...o,className:n(ir,e.className,{[`${ir}-${t}`]:t})})};import{Fragment as ar,jsx as De,jsxs as Ti}from"react/jsx-runtime";var Al=H.states,El=H.defaultOptions,Ml=H.options,Rl=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Ol=[],xt=e=>{let{modifiers:t,valid:o,invalid:i,loading:a,disabled:s,readonly:l,...c}=e,u=t?.prefix,p=t?.suffix,f=t?.["clear-button"],v=t?.["validation-icon"],L=t?.separators;return Ti(H,{...c,valid:o,invalid:i,loading:a,disabled:s,readonly:l,style:{width:300},children:[u&&Ti(ar,{children:[De(ke,{children:De(N,{icon:"lock"})}),L&&De(ae,{})]}),De(ie,{placeholder:"Placeholder",value:"Value"}),v&&De(J,{valid:o,invalid:i,loading:a,disabled:s}),De(ee,{loading:a,disabled:s}),f&&De(oe,{loading:a,disabled:s,readonly:l,value:"Value"}),p&&Ti(ar,{children:[L&&De(ae,{}),De(Le,{children:De(rt,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};xt.options=Ml;xt.states=Al;xt.variants=Ol;xt.defaultOptions=El;xt.modifiers=Rl;xt.className=H.className;var Ci="popup",rr=Ci;import{jsx as nr}from"react/jsx-runtime";var sr="k-animation-container",Pl=[],Kl={},wi={positionMode:"absolute",shown:!0},_e=e=>{let{positionMode:t=wi.positionMode,shown:o=wi.shown,animationStyle:i,offset:a,...s}=e;return nr("div",{...s,style:{...a,...e.style},className:n(e.className,sr,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:nr("div",{className:"k-child-animation-container",style:i,children:e.children})})};_e.states=Pl;_e.options=Kl;_e.className=sr;_e.defaultOptions=wi;_e.moduleName=Ci;_e.folderName=rr;var Ii="popup",lr=Ii;import{jsx as dr}from"react/jsx-runtime";var cr="k-popup",Dl=[],_l={},pr={positionMode:"absolute"},Ge=e=>{let{offset:t,positionMode:o=pr.positionMode,animationStyle:i,containerClassName:a,containerRole:s,containerAriaLabel:l,...c}=e;return dr(_e,{positionMode:o,offset:t,animationStyle:i,className:a,role:s,"aria-label":l,children:dr("div",{...c,className:n(e.className,cr),children:e.children})})};Ge.states=Dl;Ge.options=_l;Ge.className=cr;Ge.defaultOptions=pr;Ge.moduleName=Ii;Ge.folderName=lr;Ge.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.'}]};import{jsx as zl}from"react/jsx-runtime";var Hl="k-actionsheet-footer",mr={alignment:"stretched",orientation:"horizontal"},vt=e=>{let{alignment:t=mr.alignment,orientation:o=mr.orientation,template:i,as:a=i?"div":Ke,...s}=e;return zl(a,{...s,...!i&&{alignment:t,orientation:o},className:n(e.className,Hl),children:e.children})};var Si="searchbox",ur=Si;import{jsx as no,jsxs as Gl}from"react/jsx-runtime";var fr="k-searchbox",Bl=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],Fl={size:[d.undefined,d.small,d.medium,d.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Ai={showIcon:!0,icon:"search"},ye=e=>{let{value:t,placeholder:o,size:i,rounded:a,fillMode:s,hover:l,focus:c,valid:u,invalid:p,required:f,loading:v,disabled:L,showIcon:w=Ai.showIcon,icon:R=Ai.icon,"aria-label":M,...C}=e;return Gl(H,{...C,size:i,rounded:a,fillMode:s,hover:l,focus:c,valid:u,invalid:p,required:f,loading:v,disabled:L,className:n(e.className,fr),children:[w&&no(N,{className:"k-input-icon",icon:R}),no(ie,{placeholder:o,value:t,"aria-label":M}),no(ee,{...e}),no(J,{...e}),no(oe,{...e})]})};ye.states=Bl;ye.options=Fl;ye.className=fr;ye.defaultOptions=Ai;ye.moduleName=Si;ye.folderName=ur;import{jsx as dx}from"react/jsx-runtime";var Ei="textbox",br=Ei;import{Fragment as hr,jsx as Je,jsxs as Mi}from"react/jsx-runtime";var xr="k-textbox",Ul=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],$l={size:[d.undefined,d.small,d.medium,d.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Ro={showClearButton:!0,showValidationIcon:!0,separators:!0},K=e=>{let{size:t,rounded:o,fillMode:i,separators:a=Ro.separators,showClearButton:s=Ro.showClearButton,showValidationIcon:l=Ro.showValidationIcon,prefix:c,suffix:u,type:p,value:f,placeholder:v,hover:L,focus:w,valid:R,invalid:M,required:C,loading:E,disabled:_,readonly:V,id:q,"aria-label":ve,"aria-describedby":Be,...it}=e;return Mi(H,{...it,size:t,rounded:o,fillMode:i,hover:L,focus:w,valid:R,invalid:M,required:C,loading:E,disabled:_,readonly:V,className:n(e.className,xr),children:[c&&Mi(hr,{children:[Je(ke,{children:c}),a&&Je(ae,{})]}),Je(ie,{id:q,placeholder:v,value:f,type:p,disabled:_,"aria-label":ve,"aria-describedby":Be,"aria-invalid":M?"true":void 0}),l&&Je(J,{valid:R,invalid:M,loading:E,disabled:_}),Je(ee,{loading:E,disabled:_}),s&&Je(oe,{loading:E,disabled:_,readonly:V,value:f}),u&&Mi(hr,{children:[a&&Je(ae,{}),Je(Le,{children:u})]})]})};K.states=Ul;K.options=$l;K.className=xr;K.defaultOptions=Ro;K.moduleName=Ei;K.folderName=br;K.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 so=K;import{jsx as Vl}from"react/jsx-runtime";var vr=e=>Vl(so,{...e});import{Fragment as Ix,jsx as wx}from"react/jsx-runtime";import{Fragment as Ox,jsx as Rx}from"react/jsx-runtime";import{jsx as _x}from"react/jsx-runtime";import{jsx as Ri}from"react/jsx-runtime";var Xl=K.states,ql=K.defaultOptions,Wl=K.options,Jl=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Yl=[],Nt=e=>{let{modifiers:t,...o}=e,i={};return Object.keys(t||{}).forEach(a=>{switch(a){case"prefix":i.prefix=t?.[a]?Ri(N,{icon:"lock"}):void 0;break;case"suffix":i.suffix=t?.[a]?Ri(rt,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":i.showClearButton=t?.[a];break;default:break}}),Ri(vr,{value:"Value",style:{width:300},...o,...i})};Nt.options=Wl;Nt.states=Xl;Nt.variants=Yl;Nt.defaultOptions=ql;Nt.modifiers=Jl;Nt.className=K.className;import{jsx as Ye,jsxs as Oi}from"react/jsx-runtime";var Nr="k-actionsheet-titlebar",Ql={},Ee=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:a,filter:s,input:l,inputValue:c,inputPlaceholder:u,adaptive:p,titleId:f,children:v,...L}=e;return Oi("div",{...L,className:n(e.className,Nr),children:[Oi("div",{className:"k-actionsheet-titlebar-group",children:[i&&Ye("div",{className:"k-actionsheet-actions",children:i}),!v&&Oi("div",{className:"k-actionsheet-title",id:f,children:[t&&Ye("div",{className:"k-text-center",children:t}),o&&Ye("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),v&&Ye("div",{className:"k-actionsheet-title",id:f,children:v}),a&&Ye("div",{className:"k-actionsheet-actions",children:a})]}),(l||s)&&Ye("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Ye(K,{value:c,placeholder:u,size:p?"large":"medium","aria-label":t||u||"Input"}):Ye(ye,{placeholder:"Filter",size:p?"large":"medium","aria-label":"Filter options"})})]})};Ee.className=Nr;Ee.defaultOptions=Ql;import{jsx as Pi,jsxs as td}from"react/jsx-runtime";var Ki="k-actionsheet-view",Zl=[],jl={},ed={},gt=e=>{let{adaptive:t,animated:o,children:i,header:a,footer:s,titleId:l,...c}=e,u=a?.type===Ee&&Pi(Ee,{adaptive:t,titleId:l,...a?.props}),p=s?.type===vt&&Pi(vt,{...s?.props});return td("div",{...c,className:n(e.className,Ki,{[`${Ki}-animated`]:o}),children:[u,Pi("div",{className:"k-actionsheet-content",children:i}),p]})};gt.states=Zl;gt.options=jl;gt.className=Ki;gt.defaultOptions=ed;var lo="action-sheet",Oo=lo;var Di="overlay",gr=Di;import{jsx as rd}from"react/jsx-runtime";var kr="k-overlay",od=[],id={},ad={},Qe=e=>{let{...t}=e;return rd("div",{...t,className:n(e.className,kr),children:e.children})};Qe.states=od;Qe.options=id;Qe.className=kr;Qe.defaultOptions=ad;Qe.moduleName=Di;Qe.folderName=gr;import{jsx as Po,jsxs as ld}from"react/jsx-runtime";var Lr="k-actionsheet",nd=[],sd={},co={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Y=e=>{let{side:t=co.side,fullscreen:o=co.fullscreen,adaptive:i=co.adaptive,overlay:a=co.overlay,template:s,children:l,header:c,footer:u,id:p,...f}=e,v=p&&!s&&c?`${p}-title`:void 0;return ld("div",{className:"k-actionsheet-container",children:[a&&Po(Qe,{}),Po(_e,{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:Po("div",{...f,id:p,role:"dialog","aria-modal":a?"true":void 0,"aria-labelledby":v,className:n(e.className,Lr,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:s||Po(gt,{header:c,footer:u,adaptive:i,titleId:v,...e,children:l})})})]})};Y.states=nd;Y.options=sd;Y.className=Lr;Y.defaultOptions=co;Y.moduleName=lo;Y.folderName=Oo;Y.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 md}from"react/jsx-runtime";var yr="k-actionsheet-container",dd=[],cd={},pd={},kt=e=>{let{children:t,...o}=e;return md("div",{...o,className:yr,children:t})};kt.states=dd;kt.options=cd;kt.className=yr;kt.defaultOptions=pd;kt.moduleName=lo;kt.folderName=Oo;import{jsx as ud}from"react/jsx-runtime";var _i=e=>{let{...t}=e;return ud("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as bd,jsx as po,jsxs as Hi}from"react/jsx-runtime";var zi="k-actionsheet-item",fd=[r.hover,r.focus,r.selected,r.disabled],Ze=e=>{let{iconName:t,text:o,description:i,hover:a,focus:s,selected:l,disabled:c,...u}=e;return Hi("span",{...u,className:n(e.className,zi,S(zi,{hover:a,focus:s,selected:l,disabled:c})),children:[!e.children&&po(bd,{children:Hi("span",{className:"k-actionsheet-action",children:[t&&po("span",{className:"k-icon-wrap",children:po(N,{className:"k-actionsheet-item-icon",icon:t})}),Hi("span",{className:"k-actionsheet-item-text",children:[o&&po("span",{className:"k-actionsheet-item-title",children:o}),i&&po("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};Ze.states=fd;Ze.className=zi;import{jsx as Dv,jsxs as _v}from"react/jsx-runtime";import{jsx as Fv}from"react/jsx-runtime";import{jsx as Vv}from"react/jsx-runtime";import{jsx as Jv}from"react/jsx-runtime";import{jsx as Q,jsxs as Bi}from"react/jsx-runtime";var hd=Y.options,xd=Y.states,Cr={...Y.defaultOptions,variant:"normal"},vd=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Nd=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Lt=e=>{let{variant:t,modifiers:o,...i}={...Cr,...e},a={},s=Bi(_i,{children:[Q(Ze,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),Q(Ze,{text:"Add to Favorites",iconName:"heart"}),Q(Ze,{text:"Upload New",iconName:"upload",disabled:!0}),Q("hr",{className:"k-hr"}),Q(Ze,{text:"Cancel",iconName:"cancel"})]}),l="Choose from the items below",c="Select Item";return t==="fullScreen"&&(a.fullScreen=!0),Object.keys(o||{}).forEach(u=>{switch(u){case"actions":a.actionsStart=!!o?.[u],a.actionsEnd=!!o?.[u];break;case"subtitle":a.subtitle=o?.[u]?l:void 0;break;case"footer":a.footer=!!o?.[u];break;default:break}}),t==="adaptive"?Q(Y,{...i,adaptive:!0,fullscreen:a.fullScreen,header:Q(Ee,{actionsStart:a.actionsStart?Q(T,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:a.actionsEnd?Q(T,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:a.subtitle}),footer:a.footer?Bi(vt,{alignment:"stretched",children:[Q(T,{text:"Cancel",size:"large",themeColor:"base"}),Q(T,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):Q(Y,{...i,fullscreen:a.fullScreen,header:Q(Ee,{actionsStart:a.actionsStart?Q(T,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:a.actionsEnd?Q(T,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:a.subtitle}),footer:a.footer?Bi(vt,{alignment:"stretched",children:[Q(T,{text:"Apply",themeColor:"primary"}),Q(T,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Lt.options=hd;Lt.states=xd;Lt.variants=vd;Lt.defaultOptions=Cr;Lt.modifiers=Nd;Lt.className=Y.className;import Ui from"react";import{jsx as wr}from"react/jsx-runtime";var gd="k-list-group-sticky-header",Fi=e=>wr("div",{className:n(gd,e.className),children:wr("div",{className:"k-list-header-text",children:e.children})});import{jsx as Ld}from"react/jsx-runtime";var kd="k-no-data",Gi=e=>{let{live:t,...o}=e;return Ld("span",{...o,className:n(kd,e.className),"aria-live":t?"polite":void 0,children:e.children})};var st="list",yt=st;import{jsx as Ir,jsxs as Sr}from"react/jsx-runtime";var $i="k-list",yd=[],Td={size:[d.undefined,d.small,d.medium,d.large]},Cd={},G=e=>{let{size:t,virtualization:o,children:i,header:a,selectAll:s,optionLabel:l,customValue:c,noData:u,screenReaders:p,...f}=e,L=Ui.Children.toArray(i)[0],w=L?.props?.children?Ui.Children.count(L.props.children):Ui.Children.count(i);return Sr("div",{...f,className:n(e.className,$i,I($i,{size:t}),{"k-virtual-list":o}),children:[l,s,c,a&&Ir(Fi,{children:a}),i||(u!==void 0?u:Ir(Gi,{live:!0,children:"No data found."})),p&&i&&Sr(Gi,{className:"k-sr-only",live:!0,children:[w," items found."]})]})};G.states=yd;G.options=Td;G.className=$i;G.defaultOptions=Cd;G.moduleName=st;G.folderName=yt;G.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 Ad}from"react/jsx-runtime";var Ar="k-list-container",wd=[],Id={},Sd={},Tt=e=>{let{...t}=e;return Ad("div",{...t,className:n(e.className,Ar),children:e.children})};Tt.states=wd;Tt.options=Id;Tt.className=Ar;Tt.defaultOptions=Sd;Tt.moduleName=st;Tt.folderName=yt;var lt="checkbox",Ct=lt;import{jsx as Er}from"react/jsx-runtime";var Ko="k-checkbox",Ed=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],Md={size:[d.undefined,d.small,d.medium,d.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},Rd={},Z=e=>{let{id:t,checked:o,indeterminate:i,hover:a,focus:s,disabled:l,invalid:c,valid:u,required:p,size:f,rounded:v,wrapperRole:L,...w}=e;return Er("span",{className:"k-checkbox-wrap",role:L,children:Er("input",{...w,id:t,type:"checkbox",defaultChecked:o,required:p,disabled:l||void 0,"aria-invalid":c?"true":void 0,className:n(e.className,Ko,I(Ko,{size:f,rounded:v}),S(Ko,{hover:a,focus:s,disabled:l,invalid:c,valid:u,indeterminate:i,checked:o}))})})};Z.states=Ed;Z.options=Md;Z.className=Ko;Z.defaultOptions=Rd;Z.moduleName=lt;Z.folderName=Ct;Z.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 Me=Z;import{jsx as Kd}from"react/jsx-runtime";var Mr="k-checkbox-list",Od=[],Pd={},Rr={layout:"vertical"},re=e=>{let{layout:t=Rr.layout,...o}=e;return Kd("ul",{...o,className:n(e.className,Mr,{[`k-list-${t}`]:t}),children:e.children})};re.states=Od;re.options=Pd;re.className=Mr;re.defaultOptions=Rr;re.moduleName=lt;re.folderName=Ct;import{jsx as zd}from"react/jsx-runtime";var Or="k-checkbox-list-item",Dd=[],_d={},Hd={},ne=e=>{let{...t}=e;return zd("li",{...t,className:n(e.className,Or),children:e.children})};ne.states=Dd;ne.options=_d;ne.className=Or;ne.defaultOptions=Hd;ne.moduleName=lt;ne.folderName=Ct;import{Fragment as Bd,jsx as Pr,jsxs as Fd}from"react/jsx-runtime";var Ue=({children:e="Label",id:t="cb-label-after",...o})=>Fd(Bd,{children:[Pr(Me,{id:t,...o}),Pr("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as ag,jsx as ig,jsxs as rg}from"react/jsx-runtime";import{Fragment as cg,jsx as dg,jsxs as pg}from"react/jsx-runtime";import{Fragment as hg,jsx as bg,jsxs as xg}from"react/jsx-runtime";import{jsx as kg}from"react/jsx-runtime";import{jsx as Cg}from"react/jsx-runtime";import{jsx as Ag}from"react/jsx-runtime";import{jsx as Te,jsxs as Kr}from"react/jsx-runtime";var Gd=re.options,Ud=re.states,$d={...re.defaultOptions,variant:"vertical"},Vd=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Xd=[],wt=e=>{let{variant:t,...o}=e;return t==="horizontal"?Kr(re,{layout:"horizontal",...o,children:[Te(ne,{children:Te(Ue,{id:y("cb"),defaultChecked:!0,children:"Label"})}),Te(ne,{children:Te(Ue,{id:y("cb"),children:"Label"})}),Te(ne,{children:Te(Ue,{id:y("cb"),children:"Label"})})]}):Kr(re,{...o,children:[Te(ne,{children:Te(Ue,{id:y("cb"),defaultChecked:!0,children:"Label"})}),Te(ne,{children:Te(Ue,{id:y("cb"),children:"Label"})}),Te(ne,{children:Te(Ue,{id:y("cb"),children:"Label"})})]})};wt.options=Gd;wt.states=Ud;wt.variants=Vd;wt.defaultOptions=$d;wt.modifiers=Xd;wt.className=re.className;import{jsx as Zd}from"react/jsx-runtime";var qd=Me.options,Wd=Me.states,Jd=Me.defaultOptions,Yd=[],Qd=[],It=e=>Zd(Ue,{id:y("checkbox"),...e,defaultChecked:!0,children:"Label"});It.options=qd;It.states=Wd;It.variants=Yd;It.defaultOptions=Jd;It.modifiers=Qd;It.className=Me.className;import{jsx as dt,jsxs as oc}from"react/jsx-runtime";var Vi="k-list-item",jd=[r.hover,r.focus,r.selected,r.disabled],ec={},tc={},z=e=>{let{text:t,groupLabel:o,group:i,iconName:a,iconClassName:s,showCheckbox:l,checked:c,hover:u,focus:p,selected:f,disabled:v,actions:L,description:w,id:R,...M}=e,C=t||e.children;return oc("li",{...M,id:R,role:i?"presentation":"option",tabIndex:i?void 0:p?0:-1,"aria-selected":!i&&f?"true":i?void 0:"false","aria-disabled":!i&&v?"true":void 0,className:n(e.className,i?"k-list-group-item":Vi,S(Vi,{hover:u,focus:p,disabled:v,selected:f})),children:[l&&dt(Z,{checked:c}),a&&dt("span",{className:"k-list-item-icon-wrapper",children:dt(N,{icon:a,className:n("k-list-item-icon",s)})}),dt("span",{className:"k-list-item-text",children:C}),L&&dt("div",{className:"k-list-item-actions",children:L}),w&&dt("span",{className:"k-list-item-description",children:w}),o&&o!==""&&dt("div",{className:"k-list-item-group-label",children:o})]})};z.states=jd;z.options=ec;z.className=Vi;z.defaultOptions=tc;z.moduleName=st;z.folderName=yt;z.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 ac}from"react/jsx-runtime";var ic="k-list-ul",ct=e=>{let{children:t,role:o,id:i,...a}=e;return ac("ul",{...a,id:i,role:o,className:n(ic,e.className),children:t})};ct.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 Xi,jsxs as nc}from"react/jsx-runtime";var rc="k-list-content",se=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":a,listboxId:s,...l}=e;return nc("div",{...l,className:n(rc,e.className),role:o?"listbox":void 0,id:o?s:void 0,"aria-label":o?i:void 0,"aria-labelledby":o?a:void 0,children:[o?e.children:Xi(ct,{role:"listbox",id:s,"aria-label":i,"aria-labelledby":a,children:e.children}),t&&Xi("div",{className:"k-height-container",children:Xi("div",{})})]})};se.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 qi,jsxs as cc}from"react/jsx-runtime";var Do="k-list-sticky-header",sc=[r.hover,r.focus,r.selected],lc={},dc={},_o=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:i,indeterminate:a,hover:s,focus:l,selected:c,...u}=e;return qi("div",{...u,className:n(Do,e.className),children:cc("div",{className:n(`${Do}-item`,S(`${Do}-item`,{hover:s,focus:l,selected:c})),children:[o&&qi(Z,{checked:i,indeterminate:a,"aria-label":t}),qi("span",{className:"k-list-item-text",children:t})]})})};_o.states=sc;_o.options=lc;_o.className=Do;_o.defaultOptions=dc;import{Fragment as yk,jsx as Lk,jsxs as Tk}from"react/jsx-runtime";import{jsx as Wi,jsxs as mc}from"react/jsx-runtime";var pc="k-list-group-item",mo=e=>{let{groupIconName:t,...o}=e;return mc("li",{...o,role:"presentation",className:n(pc,e.className),children:[t&&Wi("span",{className:"k-list-item-icon-wrapper",children:Wi(N,{icon:t,className:"k-list-item-icon"})}),Wi("span",{className:"k-list-item-text",children:e.children})]})};mo.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 hc}from"react/jsx-runtime";var Ji="k-list-optionlabel",uc=[r.hover,r.focus,r.selected,r.disabled],fc={},bc={},Ho=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:s,...l}=e;return hc("div",{...l,className:n(Ji,S(Ji,{hover:o,focus:i,selected:a,disabled:s})),children:t})};Ho.states=uc;Ho.options=fc;Ho.className=Ji;Ho.defaultOptions=bc;import{jsx as gc}from"react/jsx-runtime";var Yi="k-list-custom-value",xc=[r.hover,r.focus,r.selected,r.disabled],vc={},Nc={},zo=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:s,...l}=e;return gc("div",{...l,className:n(Yi,S(Yi,{hover:o,focus:i,selected:a,disabled:s})),children:t})};zo.states=xc;zo.options=vc;zo.className=Yi;zo.defaultOptions=Nc;import{Fragment as Bk,jsx as zk,jsxs as Fk}from"react/jsx-runtime";import{Fragment as qk,jsx as Xk,jsxs as Wk}from"react/jsx-runtime";import{Fragment as tL,jsx as jk,jsxs as eL}from"react/jsx-runtime";import{Fragment as lL,jsx as nL,jsxs as sL}from"react/jsx-runtime";import{jsx as mL}from"react/jsx-runtime";import{Fragment as vL,jsx as xL,jsxs as NL}from"react/jsx-runtime";var Dr="dropdown-list",_r="dropdownlist";import{Fragment as yc,jsx as le,jsxs as Qi}from"react/jsx-runtime";var Hr="k-dropdownlist",kc=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Lc={size:[d.undefined,d.small,d.medium,d.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Zi={showValue:!0,arrowIconName:"chevron-down"},O=e=>{let{size:t,rounded:o,fillMode:i,arrowIconName:a=Zi.arrowIconName,showValue:s=Zi.showValue,valueIconName:l,prefix:c,suffix:u,value:p,placeholder:f,hover:v,focus:L,valid:w,invalid:R,required:M,loading:C,disabled:E,readonly:_,popup:V,opened:q,adaptive:ve,adaptiveSettings:Be,adaptiveTitle:it,adaptiveSubtitle:$n,adaptiveFilter:Vn,id:Qt,activeDescendant:Ca,"aria-label":Xn,...qn}=e,Wn=Qt?`${Qt}-listbox`:void 0,wa=Qt?`${Qt}-value`:void 0;return Qi(yc,{children:[Qi(We,{...qn,id:Qt,size:t,rounded:o,fillMode:i,hover:v,focus:L,valid:w,invalid:R,required:M,loading:C,disabled:E,readonly:_,className:n(e.className,Hr,{"k-icon-picker":!s&&l}),role:"combobox","aria-haspopup":"listbox","aria-expanded":q?"true":"false","aria-controls":q?Wn:void 0,"aria-activedescendant":q&&Ca?Ca:void 0,"aria-describedby":q?wa:void 0,"aria-disabled":E?"true":void 0,"aria-label":Xn,tabIndex:0,children:[le(ke,{children:c}),le(ao,{placeholder:f,value:p,showValue:s,valueIconName:l,id:wa}),le(J,{valid:w,invalid:R,loading:C,disabled:E}),le(ee,{loading:C,disabled:E}),le(Le,{children:u}),le(T,{className:"k-input-button",icon:a,size:e.size,fillMode:e.fillMode,"aria-label":f||"Toggle dropdown",tabIndex:-1})]}),q&&V&&le(Ge,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown sugg