@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 jn,jsx as Sa}from"react/jsx-runtime";var ai="k-font-icon",Yn=[],Qn={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]},Zn={},jt=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(jn,{})};jt.states=Yn;jt.options=Qn;jt.className=ai;jt.defaultOptions=Zn;var Aa=jt;import{Fragment as os,jsx as Lo}from"react/jsx-runtime";var ri="k-svg-icon",es=[],ts={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},eo=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(os,{});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})})};eo.states=es;eo.options=ts;eo.className=ri;eo.defaultOptions=ni;var si=eo;import*as li from"@progress/kendo-svg-icons";var Ea="icon",Ma="icons";import{useContext as as}from"react";import{createContext as is}from"react";var Ra=is({iconsType:"svg"});import{Fragment as Oa,jsx as to}from"react/jsx-runtime";var yo="k-icon",rs=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ns=[],ss={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}=as(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 to(Oa,{});if((t||s)==="svg"){if(a==="none")return to(si,{...f,className:n(e.className,yo),icon:a,size:o,variant:p});let L=li[a]?a:rs(`${a}-icon`);return li[L]?to(si,{...f,className:n(e.className,yo),icon:li[L],size:o,themeColor:i,rotate:l,flip:c,viewBox:u,variant:p}):to(Oa,{})}return to(Aa,{...f,className:n(e.className,yo),icon:a,size:o,themeColor:i,rotate:l,flip:c})};N.states=ns;N.options=ss;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 ps}from"react/jsx-runtime";var Ka="k-pivotgrid-configurator-button",ls=[],ds={},cs={},at=e=>{let{...t}=e;return Pa("div",{...t,className:n(e.className,Ka),"aria-hidden":"true",children:ps("span",{children:["Change settings",Pa(N,{icon:"gear"})]})})};at.states=ls;at.options=ds;at.className=Ka;at.defaultOptions=cs;var Da=at;import ms from"react";var di="pivotgrid",_a=di;import{jsx as Pe,jsxs as Ha}from"react/jsx-runtime";var za="k-pivotgrid",us=[],fs={},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"&&ms.cloneElement(a,{"aria-hidden":"true"}),o!=="none"&&Pe(Da,{})]})};ue.states=us;ue.options=fs;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."}]};import{jsx as vs}from"react/jsx-runtime";var Ba="k-pivotgrid-table",bs=[],hs={},xs={},Ne=e=>{let{children:t,...o}=e;return vs("table",{...o,className:n(e.className,Ba),children:t})};Ne.states=bs;Ne.options=hs;Ne.className=Ba;Ne.defaultOptions=xs;import{jsx as Ls}from"react/jsx-runtime";var Fa="k-pivotgrid-tbody",Ns=[],gs={},ks={},ge=e=>{let{children:t,...o}=e;return Ls("tbody",{...o,className:n(e.className,Fa),children:t})};ge.states=Ns;ge.options=gs;ge.className=Fa;ge.defaultOptions=ks;import{jsx as ws}from"react/jsx-runtime";var ci="k-pivotgrid-row",ys=[r.hover,r.selected],Ts={},Cs={},A=e=>{let{columnTotal:t,children:o,hover:i,selected:a,...s}=e;return ws("tr",{...s,className:n(e.className,ci,{"k-pivotgrid-column-total":t},S(ci,{hover:i,selected:a})),children:o})};A.states=ys;A.options=Ts;A.className=ci;A.defaultOptions=Cs;import{jsx as pi,jsxs as Es}from"react/jsx-runtime";var mi="k-pivotgrid-cell",Is=[r.focus,r.selected],Ss={},As={},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 Es(t,{...v,className:n(e.className,mi,{"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(mi,{focus:p,selected:f})),children:[o&&pi(N,{className:"k-pivotgrid-toggle",icon:`chevron-${L[o]}`}),i&&pi("span",{className:"k-pivotgrid-header-title",children:i}),(a||a==="")&&pi("span",{className:"k-pivotgrid-content",children:a})]})};b.states=Is;b.options=Ss;b.className=mi;b.defaultOptions=As;var ui="action-buttons",Ga=ui;import{jsx as Os}from"react/jsx-runtime";var wo="k-actions",Ms=[],Rs={},fi={alignment:"start",orientation:"horizontal"},Ke=e=>{let{alignment:t=fi.alignment,orientation:o=fi.orientation,...i}=e;return Os("div",{...i,className:n(wo,{[`${wo}-${t}`]:t,[`${wo}-${o}`]:o},e.className),children:e.children})};Ke.states=Ms;Ke.options=Rs;Ke.className=wo;Ke.defaultOptions=fi;Ke.moduleName=ui;Ke.folderName=Ga;var bi="button",Ua=bi;import{Fragment as $a,jsx as ft,jsxs as Va}from"react/jsx-runtime";var oo="k-button",Ps=["icon-button"],Ks=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],Ds={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]},hi={showArrow:!1,arrowIconName:"chevron-down"},T=e=>{let{as:t="button",size:o,rounded:i,fillMode:a,themeColor:s,showArrow:l=hi.showArrow,arrowIconName:c=hi.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,Fe=C!=null,it=e.children!==void 0;return Va(t,{className:n(q,oo,Ia(oo,u),I(oo,{size:o,rounded:i,fillMode:a,themeColor:s}),S(oo,{hover:p,focus:f,active:v,disabled:w||M,selected:L}),{"k-icon-button":!_&&!it&&Fe}),"aria-pressed":R?L?"true":"false":void 0,...ve,"aria-disabled":M?"true":void 0,disabled:w||void 0,children:[typeof C=="string"&&C&&ft(N,{className:n(V,"k-button-icon"),icon:C,size:E}),C&&typeof C!="string"&&ft($a,{children:C}),_?Va($a,{children:[_&&ft("span",{className:"k-button-text",children:_}),e.children]}):e.children&&ft("span",{className:"k-button-text",children:e.children}),l&&ft("span",{className:"k-menu-button-arrow k-button-arrow",children:ft(N,{icon:c})})]})};T.states=Ks;T.options=Ds;T.variants=Ps;T.className=oo;T.defaultOptions=hi;T.moduleName=bi;T.folderName=Ua;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 _s}from"react/jsx-runtime";var xi=e=>_s(T,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Hs}from"react/jsx-runtime";var Xa=e=>Hs(T,{icon:"folder",children:"Button",...e});import{jsx as zs}from"react/jsx-runtime";var rt=e=>zs(T,{children:"Button",...e});import{jsx as vi}from"react/jsx-runtime";var Bs=T.options,Fs=T.states,Gs={...T.defaultOptions,variant:"text"},Us=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],$s=[],bt=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return vi(xi,{...o,icon:"star"});case"icon-and-text":return vi(Xa,{...o,icon:"star",children:"Button"});default:return vi(rt,{...o,children:"Button"})}};bt.options=Bs;bt.states=Fs;bt.variants=Us;bt.defaultOptions=Gs;bt.modifiers=$s;bt.className=T.className;import{Fragment as Ws,jsx as nt,jsxs as qa}from"react/jsx-runtime";var Io="k-pivotgrid-configurator",Vs=[],Xs={},qs=qa(Ws,{children:[nt(T,{children:"Cancel"}),nt(T,{themeColor:"primary",children:"Apply"})]}),io={orientation:"vertical",mode:"push",actionButtons:qs,header:"Settings"},De=e=>{let{orientation:t=io.orientation,mode:o=io.mode,actionButtons:i=io.actionButtons,header:a=io.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:qa("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})]})})};De.states=Vs;De.options=Xs;De.className=Io;De.defaultOptions=io;var ao="input",So=ao;import{jsx as Zs}from"react/jsx-runtime";var Ao="k-input",Js=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Ys={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]},Qs={},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 Zs("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=Js;H.options=Ys;H.className=Ao;H.defaultOptions=Qs;H.moduleName=ao;H.folderName=So;import{jsx as ol}from"react/jsx-runtime";var Eo="k-picker",js=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],el={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]},tl={},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 ol("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=js;We.options=el;We.className=Eo;We.defaultOptions=tl;We.moduleName=ao;We.folderName=So;import{Fragment as rl,jsx as Ni}from"react/jsx-runtime";var Wa="k-clear-value",il=[r.disabled,r.loading,r.readonly],al={},oe=e=>{let{disabled:t,loading:o,readonly:i,value:a}=e;return t||i||o||!a?Ni(rl,{}):Ni("span",{className:n(e.className,Wa),children:Ni(N,{icon:"x"})})};oe.states=il;oe.options=al;oe.className=Wa;import{jsx as ll}from"react/jsx-runtime";var gi="k-input-inner",nl=[],sl={},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 ll("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=nl;ie.options=sl;ie.className=gi;import{jsx as Ja,jsxs as pl}from"react/jsx-runtime";var ki="k-input-inner",dl=[],cl={},ro=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:a,valueIconName:s,...l}=e;return pl("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})]})};ro.states=dl;ro.options=cl;ro.className=ki;import{jsx as fl}from"react/jsx-runtime";var Li="k-input-inner",ml=[],ul={},Ya={value:"",placeholder:""},no=e=>{let{value:t=Ya.value,placeholder:o=Ya.placeholder,rows:i,disabled:a,...s}=e;return fl("textarea",{...s,className:n(e.className,Li,I(Li,e)),placeholder:o,rows:i,defaultValue:t,disabled:a||void 0})};no.states=ml;no.options=ul;no.className=Li;import{Fragment as hl,jsx as Qa}from"react/jsx-runtime";var Za="k-input-loading-icon",bl=[r.disabled,r.loading],ee=e=>{let{disabled:t,loading:o}=e;return t||!o?Qa(hl,{}):Qa("span",{className:n(e.className,Za,"k-icon k-i-loading")})};ee.states=bl;ee.className=Za;import{Fragment as Nl,jsx as ja}from"react/jsx-runtime";var er="k-input-validation-icon",xl=[r.valid,r.invalid,r.disabled,r.loading],vl={},J=e=>{let{valid:t,invalid:o,disabled:i,loading:a}=e,s=o?"warning-circle":"check-circle";return i||a||!!!(t||o)?ja(Nl,{}):ja(N,{className:n(er),icon:s})};J.states=xl;J.options=vl;J.className=er;import{Fragment as Ll,jsx as tr}from"react/jsx-runtime";var gl="k-input-prefix",kl={direction:"horizontal"},ke=e=>{let{direction:t=kl.direction,...o}=e;return e.children?tr("span",{...o,className:n(gl,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):tr(Ll,{})};import{Fragment as Cl,jsx as or}from"react/jsx-runtime";var yl="k-input-suffix",Tl={direction:"horizontal"},Le=e=>{let{direction:t=Tl.direction,...o}=e;return e.children?or("span",{...o,className:n(yl,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):or(Cl,{})};import{jsx as Zb}from"react/jsx-runtime";import{jsx as Il}from"react/jsx-runtime";var wl="k-input-suffix-text",yi=e=>{let{children:t,...o}=e;return Il("span",{...o,className:n(wl,e.className),children:t})};import{jsx as Al}from"react/jsx-runtime";var ir="k-input-separator",Sl={direction:"vertical"},ae=e=>{let{direction:t=Sl.direction,...o}=e;return Al("span",{...o,className:n(ir,e.className,{[`${ir}-${t}`]:t})})};import{Fragment as ar,jsx as _e,jsxs as Ti}from"react/jsx-runtime";var El=H.states,Ml=H.defaultOptions,Rl=H.options,Ol=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Pl=[],ht=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:[_e(ke,{children:_e(N,{icon:"lock"})}),L&&_e(ae,{})]}),_e(ie,{placeholder:"Placeholder",value:"Value"}),v&&_e(J,{valid:o,invalid:i,loading:a,disabled:s}),_e(ee,{loading:a,disabled:s}),f&&_e(oe,{loading:a,disabled:s,readonly:l,value:"Value"}),p&&Ti(ar,{children:[L&&_e(ae,{}),_e(Le,{children:_e(rt,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};ht.options=Rl;ht.states=El;ht.variants=Pl;ht.defaultOptions=Ml;ht.modifiers=Ol;ht.className=H.className;var Ci="popup",rr=Ci;import{jsx as nr}from"react/jsx-runtime";var sr="k-animation-container",Kl=[],Dl={},wi={positionMode:"absolute",shown:!0},He=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})})};He.states=Kl;He.options=Dl;He.className=sr;He.defaultOptions=wi;He.moduleName=Ci;He.folderName=rr;var Ii="popup",lr=Ii;import{jsx as dr}from"react/jsx-runtime";var cr="k-popup",_l=[],Hl={},pr={positionMode:"absolute"},Ge=e=>{let{offset:t,positionMode:o=pr.positionMode,animationStyle:i,containerClassName:a,containerRole:s,containerAriaLabel:l,...c}=e;return dr(He,{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=_l;Ge.options=Hl;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 Bl}from"react/jsx-runtime";var zl="k-actionsheet-footer",mr={alignment:"stretched",orientation:"horizontal"},xt=e=>{let{alignment:t=mr.alignment,orientation:o=mr.orientation,template:i,as:a=i?"div":Ke,...s}=e;return Bl(a,{...s,...!i&&{alignment:t,orientation:o},className:n(e.className,zl),children:e.children})};var Si="searchbox",ur=Si;import{jsx as so,jsxs as Ul}from"react/jsx-runtime";var fr="k-searchbox",Fl=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],Gl={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 Ul(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&&so(N,{className:"k-input-icon",icon:R}),so(ie,{placeholder:o,value:t,"aria-label":M}),so(ee,{...e}),so(J,{...e}),so(oe,{...e})]})};ye.states=Fl;ye.options=Gl;ye.className=fr;ye.defaultOptions=Ai;ye.moduleName=Si;ye.folderName=ur;import{jsx as cx}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",$l=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Vl={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":Fe,...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":Fe,"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=$l;K.options=Vl;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 lo=K;import{jsx as Xl}from"react/jsx-runtime";var vr=e=>Xl(lo,{...e});import{Fragment as Sx,jsx as Ix}from"react/jsx-runtime";import{Fragment as Px,jsx as Ox}from"react/jsx-runtime";import{jsx as Hx}from"react/jsx-runtime";import{jsx as Ri}from"react/jsx-runtime";var ql=K.states,Wl=K.defaultOptions,Jl=K.options,Yl=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Ql=[],vt=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})};vt.options=Jl;vt.states=ql;vt.variants=Ql;vt.defaultOptions=Wl;vt.modifiers=Yl;vt.className=K.className;import{jsx as Ye,jsxs as Oi}from"react/jsx-runtime";var Nr="k-actionsheet-titlebar",Zl={},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=Zl;import{jsx as Pi,jsxs as od}from"react/jsx-runtime";var Ki="k-actionsheet-view",jl=[],ed={},td={},Nt=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===xt&&Pi(xt,{...s?.props});return od("div",{...c,className:n(e.className,Ki,{[`${Ki}-animated`]:o}),children:[u,Pi("div",{className:"k-actionsheet-content",children:i}),p]})};Nt.states=jl;Nt.options=ed;Nt.className=Ki;Nt.defaultOptions=td;var co="action-sheet",Oo=co;var Di="overlay",gr=Di;import{jsx as nd}from"react/jsx-runtime";var kr="k-overlay",id=[],ad={},rd={},Qe=e=>{let{...t}=e;return nd("div",{...t,className:n(e.className,kr),children:e.children})};Qe.states=id;Qe.options=ad;Qe.className=kr;Qe.defaultOptions=rd;Qe.moduleName=Di;Qe.folderName=gr;import{jsx as Po,jsxs as dd}from"react/jsx-runtime";var Lr="k-actionsheet",sd=[],ld={},po={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Y=e=>{let{side:t=po.side,fullscreen:o=po.fullscreen,adaptive:i=po.adaptive,overlay:a=po.overlay,template:s,children:l,header:c,footer:u,id:p,...f}=e,v=p&&!s&&c?`${p}-title`:void 0;return dd("div",{className:"k-actionsheet-container",children:[a&&Po(Qe,{}),Po(He,{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(Nt,{header:c,footer:u,adaptive:i,titleId:v,...e,children:l})})})]})};Y.states=sd;Y.options=ld;Y.className=Lr;Y.defaultOptions=po;Y.moduleName=co;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 ud}from"react/jsx-runtime";var yr="k-actionsheet-container",cd=[],pd={},md={},gt=e=>{let{children:t,...o}=e;return ud("div",{...o,className:yr,children:t})};gt.states=cd;gt.options=pd;gt.className=yr;gt.defaultOptions=md;gt.moduleName=co;gt.folderName=Oo;import{jsx as fd}from"react/jsx-runtime";var _i=e=>{let{...t}=e;return fd("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as hd,jsx as mo,jsxs as Hi}from"react/jsx-runtime";var zi="k-actionsheet-item",bd=[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&&mo(hd,{children:Hi("span",{className:"k-actionsheet-action",children:[t&&mo("span",{className:"k-icon-wrap",children:mo(N,{className:"k-actionsheet-item-icon",icon:t})}),Hi("span",{className:"k-actionsheet-item-text",children:[o&&mo("span",{className:"k-actionsheet-item-title",children:o}),i&&mo("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};Ze.states=bd;Ze.className=zi;import{jsx as _v,jsxs as Hv}from"react/jsx-runtime";import{jsx as Gv}from"react/jsx-runtime";import{jsx as Xv}from"react/jsx-runtime";import{jsx as Yv}from"react/jsx-runtime";import{jsx as Q,jsxs as Bi}from"react/jsx-runtime";var xd=Y.options,vd=Y.states,Cr={...Y.defaultOptions,variant:"normal"},Nd=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],gd=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],kt=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(xt,{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(xt,{alignment:"stretched",children:[Q(T,{text:"Apply",themeColor:"primary"}),Q(T,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};kt.options=xd;kt.states=vd;kt.variants=Nd;kt.defaultOptions=Cr;kt.modifiers=gd;kt.className=Y.className;import Ui from"react";import{jsx as wr}from"react/jsx-runtime";var kd="k-list-group-sticky-header",Fi=e=>wr("div",{className:n(kd,e.className),children:wr("div",{className:"k-list-header-text",children:e.children})});import{jsx as yd}from"react/jsx-runtime";var Ld="k-no-data",Gi=e=>{let{live:t,...o}=e;return yd("span",{...o,className:n(Ld,e.className),"aria-live":t?"polite":void 0,children:e.children})};var st="list",Lt=st;import{jsx as Ir,jsxs as Sr}from"react/jsx-runtime";var $i="k-list",Td=[],Cd={size:[d.undefined,d.small,d.medium,d.large]},wd={},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=Td;G.options=Cd;G.className=$i;G.defaultOptions=wd;G.moduleName=st;G.folderName=Lt;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 Ed}from"react/jsx-runtime";var Ar="k-list-container",Id=[],Sd={},Ad={},yt=e=>{let{...t}=e;return Ed("div",{...t,className:n(e.className,Ar),children:e.children})};yt.states=Id;yt.options=Sd;yt.className=Ar;yt.defaultOptions=Ad;yt.moduleName=st;yt.folderName=Lt;var lt="checkbox",Tt=lt;import{jsx as Er}from"react/jsx-runtime";var Ko="k-checkbox",Md=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],Rd={size:[d.undefined,d.small,d.medium,d.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},Od={},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=Md;Z.options=Rd;Z.className=Ko;Z.defaultOptions=Od;Z.moduleName=lt;Z.folderName=Tt;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 Dd}from"react/jsx-runtime";var Mr="k-checkbox-list",Pd=[],Kd={},Rr={layout:"vertical"},re=e=>{let{layout:t=Rr.layout,...o}=e;return Dd("ul",{...o,className:n(e.className,Mr,{[`k-list-${t}`]:t}),children:e.children})};re.states=Pd;re.options=Kd;re.className=Mr;re.defaultOptions=Rr;re.moduleName=lt;re.folderName=Tt;import{jsx as Bd}from"react/jsx-runtime";var Or="k-checkbox-list-item",_d=[],Hd={},zd={},ne=e=>{let{...t}=e;return Bd("li",{...t,className:n(e.className,Or),children:e.children})};ne.states=_d;ne.options=Hd;ne.className=Or;ne.defaultOptions=zd;ne.moduleName=lt;ne.folderName=Tt;import{Fragment as Fd,jsx as Pr,jsxs as Gd}from"react/jsx-runtime";var Ue=({children:e="Label",id:t="cb-label-after",...o})=>Gd(Fd,{children:[Pr(Me,{id:t,...o}),Pr("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as rg,jsx as ag,jsxs as ng}from"react/jsx-runtime";import{Fragment as pg,jsx as cg,jsxs as mg}from"react/jsx-runtime";import{Fragment as xg,jsx as hg,jsxs as vg}from"react/jsx-runtime";import{jsx as Lg}from"react/jsx-runtime";import{jsx as wg}from"react/jsx-runtime";import{jsx as Eg}from"react/jsx-runtime";import{jsx as Te,jsxs as Kr}from"react/jsx-runtime";var Ud=re.options,$d=re.states,Vd={...re.defaultOptions,variant:"vertical"},Xd=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],qd=[],Ct=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"})})]})};Ct.options=Ud;Ct.states=$d;Ct.variants=Xd;Ct.defaultOptions=Vd;Ct.modifiers=qd;Ct.className=re.className;import{jsx as jd}from"react/jsx-runtime";var Wd=Me.options,Jd=Me.states,Yd=Me.defaultOptions,Qd=[],Zd=[],wt=e=>jd(Ue,{id:y("checkbox"),...e,defaultChecked:!0,children:"Label"});wt.options=Wd;wt.states=Jd;wt.variants=Qd;wt.defaultOptions=Yd;wt.modifiers=Zd;wt.className=Me.className;import{jsx as dt,jsxs as ic}from"react/jsx-runtime";var Vi="k-list-item",ec=[r.hover,r.focus,r.selected,r.disabled],tc={},oc={},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 ic("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=ec;z.options=tc;z.className=Vi;z.defaultOptions=oc;z.moduleName=st;z.folderName=Lt;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 rc}from"react/jsx-runtime";var ac="k-list-ul",ct=e=>{let{children:t,role:o,id:i,...a}=e;return rc("ul",{...a,id:i,role:o,className:n(ac,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 sc}from"react/jsx-runtime";var nc="k-list-content",se=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":a,listboxId:s,...l}=e;return sc("div",{...l,className:n(nc,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 pc}from"react/jsx-runtime";var Do="k-list-sticky-header",lc=[r.hover,r.focus,r.selected],dc={},cc={},_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:pc("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=lc;_o.options=dc;_o.className=Do;_o.defaultOptions=cc;import{Fragment as Tk,jsx as yk,jsxs as Ck}from"react/jsx-runtime";import{jsx as Wi,jsxs as uc}from"react/jsx-runtime";var mc="k-list-group-item",uo=e=>{let{groupIconName:t,...o}=e;return uc("li",{...o,role:"presentation",className:n(mc,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})]})};uo.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 xc}from"react/jsx-runtime";var Ji="k-list-optionlabel",fc=[r.hover,r.focus,r.selected,r.disabled],bc={},hc={},Ho=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:s,...l}=e;return xc("div",{...l,className:n(Ji,S(Ji,{hover:o,focus:i,selected:a,disabled:s})),children:t})};Ho.states=fc;Ho.options=bc;Ho.className=Ji;Ho.defaultOptions=hc;import{jsx as kc}from"react/jsx-runtime";var Yi="k-list-custom-value",vc=[r.hover,r.focus,r.selected,r.disabled],Nc={},gc={},zo=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:s,...l}=e;return kc("div",{...l,className:n(Yi,S(Yi,{hover:o,focus:i,selected:a,disabled:s})),children:t})};zo.states=vc;zo.options=Nc;zo.className=Yi;zo.defaultOptions=gc;import{Fragment as Fk,jsx as Bk,jsxs as Gk}from"react/jsx-runtime";import{Fragment as Wk,jsx as qk,jsxs as Jk}from"react/jsx-runtime";import{Fragment as oL,jsx as eL,jsxs as tL}from"react/jsx-runtime";import{Fragment as dL,jsx as sL,jsxs as lL}from"react/jsx-runtime";import{jsx as uL}from"react/jsx-runtime";import{Fragment as NL,jsx as vL,jsxs as gL}from"react/jsx-runtime";var Dr="dropdown-list",_r="dropdownlist";import{Fragment as Tc,jsx as le,jsxs as Qi}from"react/jsx-runtime";var Hr="k-dropdownlist",Lc=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],yc={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:Fe,adaptiveTitle:it,adaptiveSubtitle:Vn,adaptiveFilter:Xn,id:Zt,activeDescendant:Ca,"aria-label":qn,...Wn}=e,Jn=Zt?`${Zt}-listbox`:void 0,wa=Zt?`${Zt}-value`:void 0;return Qi(Tc,{children:[Qi(We,{...Wn,id:Zt,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?Jn:void 0,"aria-activedescendant":q&&Ca?Ca:void 0,"aria-describedby":q?wa:void 0,"aria-disabled":E?"true":void 0,"aria-label":qn,tabIndex:0,children:[le(ke,{children:c}),le(ro,{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