@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 107 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:y,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":y,"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 Ea(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"},Pe={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 ri={};function L(e){return ri[e]=(ri[e]||0)+1,`k-${e}-${ri[e]}`}import{Fragment as ts,jsx as Ma}from"react/jsx-runtime";var ni="k-font-icon",Zn=[],jn={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]},es={},to=e=>{let{size:t,themeColor:o,icon:i,rotate:a,flip:s,...l}=e;return i?Ma("span",{...l,className:n(e.className,ni,I(ni,{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"}):Ma(ts,{})};to.states=Zn;to.options=jn;to.className=ni;to.defaultOptions=es;var Ra=to;import{Fragment as as,jsx as To}from"react/jsx-runtime";var si="k-svg-icon",os=[],is={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:[Pe.outline,Pe.solid,Pe.duotone]},li={viewBox:"0 0 24 24",variant:Pe.outline},oo=e=>{let{size:t,themeColor:o,rotate:i,flip:a,viewBox:s=li.viewBox,variant:l=li.variant,icon:c,...u}=e;if(!c)return To(as,{});if(c==="none")return To("span",{...u,className:n(e.className,si,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 To("span",{...u,className:n(e.className,si,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:To("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})})};oo.states=os;oo.options=is;oo.className=si;oo.defaultOptions=li;var di=oo;import*as ci from"@progress/kendo-svg-icons";var Oa="icon",Pa="icons";import{useContext as ns}from"react";import{createContext as rs}from"react";var Ka=rs({iconsType:"svg"});import{Fragment as Da,jsx as io}from"react/jsx-runtime";var Co="k-icon",ss=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ls=[],ds={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:[Pe.outline,Pe.solid,Pe.duotone]},wo={viewBox:"0 0 24 24",type:"svg",variant:Pe.outline},N=e=>{let{iconsType:t}=ns(Ka),{size:o,themeColor:i,icon:a,type:s=t||wo.type,rotate:l,flip:c,viewBox:u=wo.viewBox,variant:p=wo.variant,...f}=e;if(!a)return io(Da,{});if((t||s)==="svg"){if(a==="none")return io(di,{...f,className:n(e.className,Co),icon:a,size:o,variant:p});let y=ci[a]?a:ss(`${a}-icon`);return ci[y]?io(di,{...f,className:n(e.className,Co),icon:ci[y],size:o,themeColor:i,rotate:l,flip:c,viewBox:u,variant:p}):io(Da,{})}return io(Ra,{...f,className:n(e.className,Co),icon:a,size:o,themeColor:i,rotate:l,flip:c})};N.states=ls;N.options=ds;N.defaultOptions=wo;N.className=Co;N.moduleName=Oa;N.folderName=Pa;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 _a,jsxs as us}from"react/jsx-runtime";var Ha="k-pivotgrid-configurator-button",cs=[],ps={},ms={},rt=e=>{let{...t}=e;return _a("div",{...t,className:n(e.className,Ha),"aria-hidden":"true",children:us("span",{children:["Change settings",_a(N,{icon:"gear"})]})})};rt.states=cs;rt.options=ps;rt.className=Ha;rt.defaultOptions=ms;var za=rt;import fs from"react";var pi="pivotgrid",Ba=pi;import{jsx as Ke,jsxs as Fa}from"react/jsx-runtime";var Ga="k-pivotgrid",bs=[],hs={},Io={emptyCell:Ke("div",{className:"k-pivotgrid-empty-cell",role:"none",children:Ke("table",{role:"none",children:Ke("thead",{role:"none",children:Ke("tr",{role:"none",children:Ke("th",{"aria-colspan":1,"aria-rowspan":1,id:L("pivotgrid-empty"),children:Ke("span",{className:"k-sr-only",children:"PivotGrid component. Use the arrow keys to navigate."})})})})})}),configuratorDisplay:"none",configuratorPosition:"right"},fe=e=>{let{emptyCell:t=Io.emptyCell,configuratorDisplay:o=Io.configuratorDisplay,configuratorPosition:i=Io.configuratorPosition,configurator:a,columnHeaders:s,rowHeaders:l,children:c,...u}=e;return Fa("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:[Fa("div",{...u,className:n(e.className,Ga),role:"grid",children:[t,Ke("div",{className:"k-pivotgrid-column-headers",role:"none",children:s}),Ke("div",{className:"k-pivotgrid-row-headers",role:"none",children:l}),Ke("div",{className:"k-pivotgrid-values",role:"none",children:c})]}),a&&o==="opened"&&a,a&&o==="closed"&&fs.cloneElement(a,{"aria-hidden":"true"}),o!=="none"&&Ke(za,{})]})};fe.states=bs;fe.options=hs;fe.className=Ga;fe.defaultOptions=Io;fe.moduleName=pi;fe.folderName=Ba;fe.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 gs}from"react/jsx-runtime";var Ua="k-pivotgrid-table",xs=[],vs={},Ns={},ge=e=>{let{children:t,...o}=e;return gs("table",{...o,className:n(e.className,Ua),children:t})};ge.states=xs;ge.options=vs;ge.className=Ua;ge.defaultOptions=Ns;import{jsx as Ts}from"react/jsx-runtime";var $a="k-pivotgrid-tbody",ks=[],Ls={},ys={},ke=e=>{let{children:t,...o}=e;return Ts("tbody",{...o,className:n(e.className,$a),children:t})};ke.states=ks;ke.options=Ls;ke.className=$a;ke.defaultOptions=ys;import{jsx as Ss}from"react/jsx-runtime";var mi="k-pivotgrid-row",Cs=[r.hover,r.selected],ws={},Is={},A=e=>{let{columnTotal:t,children:o,hover:i,selected:a,...s}=e;return Ss("tr",{...s,className:n(e.className,mi,{"k-pivotgrid-column-total":t},S(mi,{hover:i,selected:a})),children:o})};A.states=Cs;A.options=ws;A.className=mi;A.defaultOptions=Is;import{jsx as ui,jsxs as Rs}from"react/jsx-runtime";var fi="k-pivotgrid-cell",As=[r.focus,r.selected],Es={},Ms={},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,y={up:"up",down:"down"};return Rs(t,{...v,className:n(e.className,fi,{"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(fi,{focus:p,selected:f})),children:[o&&ui(N,{className:"k-pivotgrid-toggle",icon:`chevron-${y[o]}`}),i&&ui("span",{className:"k-pivotgrid-header-title",children:i}),(a||a==="")&&ui("span",{className:"k-pivotgrid-content",children:a})]})};b.states=As;b.options=Es;b.className=fi;b.defaultOptions=Ms;var bi="action-buttons",Va=bi;import{jsx as Ks}from"react/jsx-runtime";var So="k-actions",Os=[],Ps={},hi={alignment:"start",orientation:"horizontal"},De=e=>{let{alignment:t=hi.alignment,orientation:o=hi.orientation,...i}=e;return Ks("div",{...i,className:n(So,{[`${So}-${t}`]:t,[`${So}-${o}`]:o},e.className),children:e.children})};De.states=Os;De.options=Ps;De.className=So;De.defaultOptions=hi;De.moduleName=bi;De.folderName=Va;var xi="button",Xa=xi;import{Fragment as qa,jsx as bt,jsxs as Wa}from"react/jsx-runtime";var ao="k-button",Ds=["icon-button"],_s=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],Hs={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]},vi={showArrow:!1,arrowIconName:"chevron-down"},T=e=>{let{as:t="button",size:o,rounded:i,fillMode:a,themeColor:s,showArrow:l=vi.showArrow,arrowIconName:c=vi.arrowIconName,variant:u,hover:p,focus:f,active:v,selected:y,disabled:w,togglable:R,ariaDisabled:M,icon:C,iconSize:E,text:H,iconClassName:W,className:J,...Ne}=e,Ge=C!=null,at=e.children!==void 0;return Wa(t,{className:n(J,ao,Ea(ao,u),I(ao,{size:o,rounded:i,fillMode:a,themeColor:s}),S(ao,{hover:p,focus:f,active:v,disabled:w||M,selected:y}),{"k-icon-button":!H&&!at&&Ge}),"aria-pressed":R?y?"true":"false":void 0,...Ne,"aria-disabled":M?"true":void 0,disabled:w||void 0,children:[typeof C=="string"&&C&&bt(N,{className:n(W,"k-button-icon"),icon:C,size:E}),C&&typeof C!="string"&&bt(qa,{children:C}),H?Wa(qa,{children:[H&&bt("span",{className:"k-button-text",children:H}),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=_s;T.options=Hs;T.variants=Ds;T.className=ao;T.defaultOptions=vi;T.moduleName=xi;T.folderName=Xa;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 zs}from"react/jsx-runtime";var Ni=e=>zs(T,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Bs}from"react/jsx-runtime";var Ja=e=>Bs(T,{icon:"folder",children:"Button",...e});import{jsx as Fs}from"react/jsx-runtime";var nt=e=>Fs(T,{children:"Button",...e});import{jsx as gi}from"react/jsx-runtime";var Gs=T.options,Us=T.states,$s={...T.defaultOptions,variant:"text"},Vs=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Xs=[],ht=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return gi(Ni,{...o,icon:"star"});case"icon-and-text":return gi(Ja,{...o,icon:"star",children:"Button"});default:return gi(nt,{...o,children:"Button"})}};ht.options=Gs;ht.states=Us;ht.variants=Vs;ht.defaultOptions=$s;ht.modifiers=Xs;ht.className=T.className;import{Fragment as Ys,jsx as st,jsxs as Ya}from"react/jsx-runtime";var Ao="k-pivotgrid-configurator",qs=[],Ws={},Js=Ya(Ys,{children:[st(T,{children:"Cancel"}),st(T,{themeColor:"primary",children:"Apply"})]}),ro={orientation:"vertical",mode:"push",actionButtons:Js,header:"Settings"},_e=e=>{let{orientation:t=ro.orientation,mode:o=ro.mode,actionButtons:i=ro.actionButtons,header:a=ro.header,headerId:s,children:l,...c}=e,u=s||L("pivotgrid-configurator-header");return st("div",{...c,className:n(e.className,Ao),role:"dialog","aria-labelledby":u,children:Ya("div",{className:n("k-pivotgrid-configurator-panel",{[`${Ao}-${t}`]:t,[`${Ao}-${o}`]:o}),children:[st("div",{className:"k-pivotgrid-configurator-header",children:st("div",{className:"k-pivotgrid-configurator-header-text",id:u,children:a})}),st("div",{className:"k-pivotgrid-configurator-content",children:l}),st(De,{alignment:"end",className:"k-pivotgrid-configurator-actions",children:i})]})})};_e.states=qs;_e.options=Ws;_e.className=Ao;_e.defaultOptions=ro;var no="input",Eo=no;import{jsx as el}from"react/jsx-runtime";var Mo="k-input",Qs=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Zs={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]},js={},z=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 el("span",{...v,className:n(e.className,Mo,I(Mo,{size:u,rounded:p,fillMode:f}),S(Mo,{hover:t,focus:o,disabled:i,invalid:a,valid:s,loading:l,readonly:c}))})};z.states=Qs;z.options=Zs;z.className=Mo;z.defaultOptions=js;z.moduleName=no;z.folderName=Eo;import{jsx as al}from"react/jsx-runtime";var Ro="k-picker",tl=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ol={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]},il={},Je=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 al("span",{...v,className:n(e.className,Ro,I(Ro,{size:u,rounded:p,fillMode:f}),S(Ro,{hover:t,focus:o,disabled:i,invalid:a,valid:s,loading:l,readonly:c})),children:e.children})};Je.states=tl;Je.options=ol;Je.className=Ro;Je.defaultOptions=il;Je.moduleName=no;Je.folderName=Eo;import{Fragment as sl,jsx as ki}from"react/jsx-runtime";var Qa="k-clear-value",rl=[r.disabled,r.loading,r.readonly],nl={},ie=e=>{let{disabled:t,loading:o,readonly:i,value:a}=e;return t||i||o||!a?ki(sl,{}):ki("span",{className:n(e.className,Qa),children:ki(N,{icon:"x"})})};ie.states=rl;ie.options=nl;ie.className=Qa;import{jsx as cl}from"react/jsx-runtime";var Li="k-input-inner",ll=[],dl={},Oo={type:"text",autocomplete:"off",value:"",placeholder:""},ae=e=>{let{value:t=Oo.value,type:o=Oo.type,placeholder:i=Oo.placeholder,autocomplete:a=Oo.autocomplete,disabled:s,readOnly:l,...c}=e;return cl("input",{...c,type:o,className:n(e.className,Li,I(Li,e)),placeholder:i,autoComplete:a,defaultValue:t,disabled:s||void 0,readOnly:l||void 0})};ae.states=ll;ae.options=dl;ae.className=Li;import{jsx as Za,jsxs as ul}from"react/jsx-runtime";var yi="k-input-inner",pl=[],ml={},so=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:a,valueIconName:s,...l}=e;return ul("span",{...l,className:n(e.className,yi,I(yi,e)),children:[a,!a&&s&&Za(N,{className:"k-input-value-icon",icon:s}),i&&!t&&o,i&&t&&Za("span",{className:"k-input-value-text",children:t})]})};so.states=pl;so.options=ml;so.className=yi;import{jsx as hl}from"react/jsx-runtime";var Ti="k-input-inner",fl=[],bl={},ja={value:"",placeholder:""},lo=e=>{let{value:t=ja.value,placeholder:o=ja.placeholder,rows:i,disabled:a,...s}=e;return hl("textarea",{...s,className:n(e.className,Ti,I(Ti,e)),placeholder:o,rows:i,defaultValue:t,disabled:a||void 0})};lo.states=fl;lo.options=bl;lo.className=Ti;import{Fragment as vl,jsx as er}from"react/jsx-runtime";var tr="k-input-loading-icon",xl=[r.disabled,r.loading],te=e=>{let{disabled:t,loading:o}=e;return t||!o?er(vl,{}):er("span",{className:n(e.className,tr,"k-icon k-i-loading")})};te.states=xl;te.className=tr;import{Fragment as kl,jsx as or}from"react/jsx-runtime";var ir="k-input-validation-icon",Nl=[r.valid,r.invalid,r.disabled,r.loading],gl={},Y=e=>{let{valid:t,invalid:o,disabled:i,loading:a}=e,s=o?"warning-circle":"check-circle";return i||a||!!!(t||o)?or(kl,{}):or(N,{className:n(ir),icon:s})};Y.states=Nl;Y.options=gl;Y.className=ir;import{Fragment as Tl,jsx as ar}from"react/jsx-runtime";var Ll="k-input-prefix",yl={direction:"horizontal"},Le=e=>{let{direction:t=yl.direction,...o}=e;return e.children?ar("span",{...o,className:n(Ll,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):ar(Tl,{})};import{Fragment as Il,jsx as rr}from"react/jsx-runtime";var Cl="k-input-suffix",wl={direction:"horizontal"},ye=e=>{let{direction:t=wl.direction,...o}=e;return e.children?rr("span",{...o,className:n(Cl,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):rr(Il,{})};import{jsx as eh}from"react/jsx-runtime";import{jsx as Al}from"react/jsx-runtime";var Sl="k-input-suffix-text",Ci=e=>{let{children:t,...o}=e;return Al("span",{...o,className:n(Sl,e.className),children:t})};import{jsx as Ml}from"react/jsx-runtime";var nr="k-input-separator",El={direction:"vertical"},re=e=>{let{direction:t=El.direction,...o}=e;return Ml("span",{...o,className:n(nr,e.className,{[`${nr}-${t}`]:t})})};import{Fragment as sr,jsx as He,jsxs as wi}from"react/jsx-runtime";var Rl=z.states,Ol=z.defaultOptions,Pl=z.options,Kl=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Dl=[],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"],y=t?.separators;return wi(z,{...c,valid:o,invalid:i,loading:a,disabled:s,readonly:l,style:{width:300},children:[u&&wi(sr,{children:[He(Le,{children:He(N,{icon:"lock"})}),y&&He(re,{})]}),He(ae,{placeholder:"Placeholder",value:"Value"}),v&&He(Y,{valid:o,invalid:i,loading:a,disabled:s}),He(te,{loading:a,disabled:s}),f&&He(ie,{loading:a,disabled:s,readonly:l,value:"Value"}),p&&wi(sr,{children:[y&&He(re,{}),He(ye,{children:He(nt,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};xt.options=Pl;xt.states=Rl;xt.variants=Dl;xt.defaultOptions=Ol;xt.modifiers=Kl;xt.className=z.className;var Ii="popup",lr=Ii;import{jsx as dr}from"react/jsx-runtime";var cr="k-animation-container",_l=[],Hl={},Si={positionMode:"absolute",shown:!0},ze=e=>{let{positionMode:t=Si.positionMode,shown:o=Si.shown,animationStyle:i,offset:a,...s}=e;return dr("div",{...s,style:{...a,...e.style},className:n(e.className,cr,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:dr("div",{className:"k-child-animation-container",style:i,children:e.children})})};ze.states=_l;ze.options=Hl;ze.className=cr;ze.defaultOptions=Si;ze.moduleName=Ii;ze.folderName=lr;var Ai="popup",pr=Ai;import{jsx as mr}from"react/jsx-runtime";var ur="k-popup",zl=[],Bl={},fr={positionMode:"absolute"},Ue=e=>{let{offset:t,positionMode:o=fr.positionMode,animationStyle:i,containerClassName:a,containerRole:s,containerAriaLabel:l,...c}=e;return mr(ze,{positionMode:o,offset:t,animationStyle:i,className:a,role:s,"aria-label":l,children:mr("div",{...c,className:n(e.className,ur),children:e.children})})};Ue.states=zl;Ue.options=Bl;Ue.className=ur;Ue.defaultOptions=fr;Ue.moduleName=Ai;Ue.folderName=pr;Ue.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 Gl}from"react/jsx-runtime";var Fl="k-actionsheet-footer",br={alignment:"stretched",orientation:"horizontal"},vt=e=>{let{alignment:t=br.alignment,orientation:o=br.orientation,template:i,as:a=i?"div":De,...s}=e;return Gl(a,{...s,...!i&&{alignment:t,orientation:o},className:n(e.className,Fl),children:e.children})};var Ei="searchbox",hr=Ei;import{jsx as co,jsxs as Vl}from"react/jsx-runtime";var xr="k-searchbox",Ul=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],$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]},Mi={showIcon:!0,icon:"search"},Te=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:y,showIcon:w=Mi.showIcon,icon:R=Mi.icon,"aria-label":M,...C}=e;return Vl(z,{...C,size:i,rounded:a,fillMode:s,hover:l,focus:c,valid:u,invalid:p,required:f,loading:v,disabled:y,className:n(e.className,xr),children:[w&&co(N,{className:"k-input-icon",icon:R}),co(ae,{placeholder:o,value:t,"aria-label":M}),co(te,{...e}),co(Y,{...e}),co(ie,{...e})]})};Te.states=Ul;Te.options=$l;Te.className=xr;Te.defaultOptions=Mi;Te.moduleName=Ei;Te.folderName=hr;import{jsx as mx}from"react/jsx-runtime";var Ri="textbox",vr=Ri;import{Fragment as Nr,jsx as Ye,jsxs as Oi}from"react/jsx-runtime";var gr="k-textbox",Xl=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ql={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]},Po={showClearButton:!0,showValidationIcon:!0,separators:!0},D=e=>{let{size:t,rounded:o,fillMode:i,separators:a=Po.separators,showClearButton:s=Po.showClearButton,showValidationIcon:l=Po.showValidationIcon,prefix:c,suffix:u,type:p,value:f,placeholder:v,hover:y,focus:w,valid:R,invalid:M,required:C,loading:E,disabled:H,readonly:W,id:J,"aria-label":Ne,"aria-describedby":Ge,...at}=e;return Oi(z,{...at,size:t,rounded:o,fillMode:i,hover:y,focus:w,valid:R,invalid:M,required:C,loading:E,disabled:H,readonly:W,className:n(e.className,gr),children:[c&&Oi(Nr,{children:[Ye(Le,{children:c}),a&&Ye(re,{})]}),Ye(ae,{id:J,placeholder:v,value:f,type:p,disabled:H,"aria-label":Ne,"aria-describedby":Ge,"aria-invalid":M?"true":void 0}),l&&Ye(Y,{valid:R,invalid:M,loading:E,disabled:H}),Ye(te,{loading:E,disabled:H}),s&&Ye(ie,{loading:E,disabled:H,readonly:W,value:f}),u&&Oi(Nr,{children:[a&&Ye(re,{}),Ye(ye,{children:u})]})]})};D.states=Xl;D.options=ql;D.className=gr;D.defaultOptions=Po;D.moduleName=Ri;D.folderName=vr;D.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 po=D;import{jsx as Wl}from"react/jsx-runtime";var kr=e=>Wl(po,{...e});import{Fragment as Ex,jsx as Ax}from"react/jsx-runtime";import{Fragment as Dx,jsx as Kx}from"react/jsx-runtime";import{jsx as Bx}from"react/jsx-runtime";import{jsx as Pi}from"react/jsx-runtime";var Jl=D.states,Yl=D.defaultOptions,Ql=D.options,Zl=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],jl=[],Nt=e=>{let{modifiers:t,...o}=e,i={};return Object.keys(t||{}).forEach(a=>{switch(a){case"prefix":i.prefix=t?.[a]?Pi(N,{icon:"lock"}):void 0;break;case"suffix":i.suffix=t?.[a]?Pi(nt,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":i.showClearButton=t?.[a];break;default:break}}),Pi(kr,{value:"Value",style:{width:300},...o,...i})};Nt.options=Ql;Nt.states=Jl;Nt.variants=jl;Nt.defaultOptions=Yl;Nt.modifiers=Zl;Nt.className=D.className;import{jsx as Qe,jsxs as Ki}from"react/jsx-runtime";var Lr="k-actionsheet-titlebar",ed={},Me=e=>{let{title:t,subtitle:o,actionsStart:i,actionsEnd:a,filter:s,input:l,inputValue:c,inputPlaceholder:u,adaptive:p,titleId:f,children:v,...y}=e;return Ki("div",{...y,className:n(e.className,Lr),children:[Ki("div",{className:"k-actionsheet-titlebar-group",children:[i&&Qe("div",{className:"k-actionsheet-actions",children:i}),!v&&Ki("div",{className:"k-actionsheet-title",id:f,children:[t&&Qe("div",{className:"k-text-center",children:t}),o&&Qe("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),v&&Qe("div",{className:"k-actionsheet-title",id:f,children:v}),a&&Qe("div",{className:"k-actionsheet-actions",children:a})]}),(l||s)&&Qe("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Qe(D,{value:c,placeholder:u,size:p?"large":"medium","aria-label":t||u||"Input"}):Qe(Te,{placeholder:"Filter",size:p?"large":"medium","aria-label":"Filter options"})})]})};Me.className=Lr;Me.defaultOptions=ed;import{jsx as Di,jsxs as ad}from"react/jsx-runtime";var _i="k-actionsheet-view",td=[],od={},id={},gt=e=>{let{adaptive:t,animated:o,children:i,header:a,footer:s,titleId:l,...c}=e,u=a?.type===Me&&Di(Me,{adaptive:t,titleId:l,...a?.props}),p=s?.type===vt&&Di(vt,{...s?.props});return ad("div",{...c,className:n(e.className,_i,{[`${_i}-animated`]:o}),children:[u,Di("div",{className:"k-actionsheet-content",children:i}),p]})};gt.states=td;gt.options=od;gt.className=_i;gt.defaultOptions=id;var mo="action-sheet",Ko=mo;var Hi="overlay",yr=Hi;import{jsx as ld}from"react/jsx-runtime";var Tr="k-overlay",rd=[],nd={},sd={},Ze=e=>{let{...t}=e;return ld("div",{...t,className:n(e.className,Tr),children:e.children})};Ze.states=rd;Ze.options=nd;Ze.className=Tr;Ze.defaultOptions=sd;Ze.moduleName=Hi;Ze.folderName=yr;import{jsx as Do,jsxs as pd}from"react/jsx-runtime";var Cr="k-actionsheet",dd=[],cd={},uo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Q=e=>{let{side:t=uo.side,fullscreen:o=uo.fullscreen,adaptive:i=uo.adaptive,overlay:a=uo.overlay,template:s,children:l,header:c,footer:u,id:p,...f}=e,v=p&&!s&&c?`${p}-title`:void 0;return pd("div",{className:"k-actionsheet-container",children:[a&&Do(Ze,{}),Do(ze,{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:Do("div",{...f,id:p,role:"dialog","aria-modal":a?"true":void 0,"aria-labelledby":v,className:n(e.className,Cr,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":i}),children:s||Do(gt,{header:c,footer:u,adaptive:i,titleId:v,...e,children:l})})})]})};Q.states=dd;Q.options=cd;Q.className=Cr;Q.defaultOptions=uo;Q.moduleName=mo;Q.folderName=Ko;Q.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 bd}from"react/jsx-runtime";var wr="k-actionsheet-container",md=[],ud={},fd={},kt=e=>{let{children:t,...o}=e;return bd("div",{...o,className:wr,children:t})};kt.states=md;kt.options=ud;kt.className=wr;kt.defaultOptions=fd;kt.moduleName=mo;kt.folderName=Ko;import{jsx as hd}from"react/jsx-runtime";var zi=e=>{let{...t}=e;return hd("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as vd,jsx as fo,jsxs as Bi}from"react/jsx-runtime";var Fi="k-actionsheet-item",xd=[r.hover,r.focus,r.selected,r.disabled],je=e=>{let{iconName:t,text:o,description:i,hover:a,focus:s,selected:l,disabled:c,...u}=e;return Bi("span",{...u,className:n(e.className,Fi,S(Fi,{hover:a,focus:s,selected:l,disabled:c})),children:[!e.children&&fo(vd,{children:Bi("span",{className:"k-actionsheet-action",children:[t&&fo("span",{className:"k-icon-wrap",children:fo(N,{className:"k-actionsheet-item-icon",icon:t})}),Bi("span",{className:"k-actionsheet-item-text",children:[o&&fo("span",{className:"k-actionsheet-item-title",children:o}),i&&fo("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};je.states=xd;je.className=Fi;import{jsx as zv,jsxs as Bv}from"react/jsx-runtime";import{jsx as $v}from"react/jsx-runtime";import{jsx as Wv}from"react/jsx-runtime";import{jsx as Zv}from"react/jsx-runtime";import{jsx as Z,jsxs as Gi}from"react/jsx-runtime";var Nd=Q.options,gd=Q.states,Sr={...Q.defaultOptions,variant:"normal"},kd=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Ld=[{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}={...Sr,...e},a={},s=Gi(zi,{children:[Z(je,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),Z(je,{text:"Add to Favorites",iconName:"heart"}),Z(je,{text:"Upload New",iconName:"upload",disabled:!0}),Z("hr",{className:"k-hr"}),Z(je,{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"?Z(Q,{...i,adaptive:!0,fullscreen:a.fullScreen,header:Z(Me,{actionsStart:a.actionsStart?Z(T,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:a.actionsEnd?Z(T,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:a.subtitle}),footer:a.footer?Gi(vt,{alignment:"stretched",children:[Z(T,{text:"Cancel",size:"large",themeColor:"base"}),Z(T,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:s}):Z(Q,{...i,fullscreen:a.fullScreen,header:Z(Me,{actionsStart:a.actionsStart?Z(T,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:a.actionsEnd?Z(T,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:a.subtitle}),footer:a.footer?Gi(vt,{alignment:"stretched",children:[Z(T,{text:"Apply",themeColor:"primary"}),Z(T,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};Lt.options=Nd;Lt.states=gd;Lt.variants=kd;Lt.defaultOptions=Sr;Lt.modifiers=Ld;Lt.className=Q.className;import Vi from"react";import{jsx as Ar}from"react/jsx-runtime";var yd="k-list-group-sticky-header",Ui=e=>Ar("div",{className:n(yd,e.className),children:Ar("div",{className:"k-list-header-text",children:e.children})});import{jsx as Cd}from"react/jsx-runtime";var Td="k-no-data",$i=e=>{let{live:t,...o}=e;return Cd("span",{...o,className:n(Td,e.className),"aria-live":t?"polite":void 0,children:e.children})};var lt="list",yt=lt;import{jsx as Er,jsxs as Mr}from"react/jsx-runtime";var Xi="k-list",wd=[],Id={size:[d.undefined,d.small,d.medium,d.large]},Sd={},q=e=>{let{size:t,virtualization:o,children:i,header:a,selectAll:s,optionLabel:l,customValue:c,noData:u,screenReaders:p,...f}=e,y=Vi.Children.toArray(i)[0],w=y?.props?.children?Vi.Children.count(y.props.children):Vi.Children.count(i);return Mr("div",{...f,className:n(e.className,Xi,I(Xi,{size:t}),{"k-virtual-list":o}),children:[l,s,c,a&&Er(Ui,{children:a}),i||(u!==void 0?u:Er($i,{live:!0,children:"No data found."})),p&&i&&Mr($i,{className:"k-sr-only",live:!0,children:[w," items found."]})]})};q.states=wd;q.options=Id;q.className=Xi;q.defaultOptions=Sd;q.moduleName=lt;q.folderName=yt;q.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 Rd}from"react/jsx-runtime";var Rr="k-list-container",Ad=[],Ed={},Md={},Tt=e=>{let{...t}=e;return Rd("div",{...t,className:n(e.className,Rr),children:e.children})};Tt.states=Ad;Tt.options=Ed;Tt.className=Rr;Tt.defaultOptions=Md;Tt.moduleName=lt;Tt.folderName=yt;var dt="checkbox",Ct=dt;import{jsx as Or}from"react/jsx-runtime";var _o="k-checkbox",Od=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],Pd={size:[d.undefined,d.small,d.medium,d.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},Kd={},j=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:y,...w}=e;return Or("span",{className:"k-checkbox-wrap",role:y,children:Or("input",{...w,id:t,type:"checkbox",defaultChecked:o,required:p,disabled:l||void 0,"aria-invalid":c?"true":void 0,className:n(e.className,_o,I(_o,{size:f,rounded:v}),S(_o,{hover:a,focus:s,disabled:l,invalid:c,valid:u,indeterminate:i,checked:o}))})})};j.states=Od;j.options=Pd;j.className=_o;j.defaultOptions=Kd;j.moduleName=dt;j.folderName=Ct;j.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 Re=j;import{jsx as Hd}from"react/jsx-runtime";var Pr="k-checkbox-list",Dd=[],_d={},Kr={layout:"vertical"},ne=e=>{let{layout:t=Kr.layout,...o}=e;return Hd("ul",{...o,className:n(e.className,Pr,{[`k-list-${t}`]:t}),children:e.children})};ne.states=Dd;ne.options=_d;ne.className=Pr;ne.defaultOptions=Kr;ne.moduleName=dt;ne.folderName=Ct;import{jsx as Gd}from"react/jsx-runtime";var Dr="k-checkbox-list-item",zd=[],Bd={},Fd={},se=e=>{let{...t}=e;return Gd("li",{...t,className:n(e.className,Dr),children:e.children})};se.states=zd;se.options=Bd;se.className=Dr;se.defaultOptions=Fd;se.moduleName=dt;se.folderName=Ct;import{Fragment as Ud,jsx as _r,jsxs as $d}from"react/jsx-runtime";var $e=({children:e="Label",id:t="cb-label-after",...o})=>$d(Ud,{children:[_r(Re,{id:t,...o}),_r("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as sg,jsx as ng,jsxs as lg}from"react/jsx-runtime";import{Fragment as ug,jsx as mg,jsxs as fg}from"react/jsx-runtime";import{Fragment as Ng,jsx as vg,jsxs as gg}from"react/jsx-runtime";import{jsx as Tg}from"react/jsx-runtime";import{jsx as Sg}from"react/jsx-runtime";import{jsx as Rg}from"react/jsx-runtime";import{jsx as Ce,jsxs as Hr}from"react/jsx-runtime";var Vd=ne.options,Xd=ne.states,qd={...ne.defaultOptions,variant:"vertical"},Wd=[{name:"vertical",title:"Vertical"},{name:"horizontal",title:"Horizontal"}],Jd=[],wt=e=>{let{variant:t,...o}=e;return t==="horizontal"?Hr(ne,{layout:"horizontal",...o,children:[Ce(se,{children:Ce($e,{id:L("cb"),defaultChecked:!0,children:"Label"})}),Ce(se,{children:Ce($e,{id:L("cb"),children:"Label"})}),Ce(se,{children:Ce($e,{id:L("cb"),children:"Label"})})]}):Hr(ne,{...o,children:[Ce(se,{children:Ce($e,{id:L("cb"),defaultChecked:!0,children:"Label"})}),Ce(se,{children:Ce($e,{id:L("cb"),children:"Label"})}),Ce(se,{children:Ce($e,{id:L("cb"),children:"Label"})})]})};wt.options=Vd;wt.states=Xd;wt.variants=Wd;wt.defaultOptions=qd;wt.modifiers=Jd;wt.className=ne.className;import{jsx as tc}from"react/jsx-runtime";var Yd=Re.options,Qd=Re.states,Zd=Re.defaultOptions,jd=[],ec=[],It=e=>tc($e,{id:L("checkbox"),...e,defaultChecked:!0,children:"Label"});It.options=Yd;It.states=Qd;It.variants=jd;It.defaultOptions=Zd;It.modifiers=ec;It.className=Re.className;import{jsx as ct,jsxs as rc}from"react/jsx-runtime";var qi="k-list-item",oc=[r.hover,r.focus,r.selected,r.disabled],ic={},ac={},B=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:y,description:w,id:R,...M}=e,C=t||e.children;return rc("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":qi,S(qi,{hover:u,focus:p,disabled:v,selected:f})),children:[l&&ct(j,{checked:c}),a&&ct("span",{className:"k-list-item-icon-wrapper",children:ct(N,{icon:a,className:n("k-list-item-icon",s)})}),ct("span",{className:"k-list-item-text",children:C}),y&&ct("div",{className:"k-list-item-actions",children:y}),w&&ct("span",{className:"k-list-item-description",children:w}),o&&o!==""&&ct("div",{className:"k-list-item-group-label",children:o})]})};B.states=oc;B.options=ic;B.className=qi;B.defaultOptions=ac;B.moduleName=lt;B.folderName=yt;B.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 sc}from"react/jsx-runtime";var nc="k-list-ul",pt=e=>{let{children:t,role:o,id:i,...a}=e;return sc("ul",{...a,id:i,role:o,className:n(nc,e.className),children:t})};pt.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 Wi,jsxs as dc}from"react/jsx-runtime";var lc="k-list-content",le=e=>{let{virtualization:t,grouping:o,"aria-label":i,"aria-labelledby":a,listboxId:s,...l}=e;return dc("div",{...l,className:n(lc,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:Wi(pt,{role:"listbox",id:s,"aria-label":i,"aria-labelledby":a,children:e.children}),t&&Wi("div",{className:"k-height-container",children:Wi("div",{})})]})};le.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 Ji,jsxs as uc}from"react/jsx-runtime";var Ho="k-list-sticky-header",cc=[r.hover,r.focus,r.selected],pc={},mc={},zo=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:i,indeterminate:a,hover:s,focus:l,selected:c,...u}=e;return Ji("div",{...u,className:n(Ho,e.className),children:uc("div",{className:n(`${Ho}-item`,S(`${Ho}-item`,{hover:s,focus:l,selected:c})),children:[o&&Ji(j,{checked:i,indeterminate:a,"aria-label":t}),Ji("span",{className:"k-list-item-text",children:t})]})})};zo.states=cc;zo.options=pc;zo.className=Ho;zo.defaultOptions=mc;import{Fragment as wk,jsx as Ck,jsxs as Ik}from"react/jsx-runtime";import{jsx as Yi,jsxs as bc}from"react/jsx-runtime";var fc="k-list-group-item",bo=e=>{let{groupIconName:t,...o}=e;return bc("li",{...o,role:"presentation",className:n(fc,e.className),children:[t&&Yi("span",{className:"k-list-item-icon-wrapper",children:Yi(N,{icon:t,className:"k-list-item-icon"})}),Yi("span",{className:"k-list-item-text",children:e.children})]})};bo.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 Nc}from"react/jsx-runtime";var Qi="k-list-optionlabel",hc=[r.hover,r.focus,r.selected,r.disabled],xc={},vc={},Bo=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:s,...l}=e;return Nc("div",{...l,className:n(Qi,S(Qi,{hover:o,focus:i,selected:a,disabled:s})),children:t})};Bo.states=hc;Bo.options=xc;Bo.className=Qi;Bo.defaultOptions=vc;import{jsx as yc}from"react/jsx-runtime";var Zi="k-list-custom-value",gc=[r.hover,r.focus,r.selected,r.disabled],kc={},Lc={},Fo=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:s,...l}=e;return yc("div",{...l,className:n(Zi,S(Zi,{hover:o,focus:i,selected:a,disabled:s})),children:t})};Fo.states=gc;Fo.options=kc;Fo.className=Zi;Fo.defaultOptions=Lc;import{Fragment as Uk,jsx as Gk,jsxs as $k}from"react/jsx-runtime";import{Fragment as Yk,jsx as Jk,jsxs as Qk}from"react/jsx-runtime";import{Fragment as aL,jsx as oL,jsxs as iL}from"react/jsx-runtime";import{Fragment as pL,jsx as dL,jsxs as cL}from"react/jsx-runtime";import{jsx as bL}from"react/jsx-runtime";import{Fragment as kL,jsx as gL,jsxs as LL}from"react/jsx-runtime";var zr="dropdown-list",Br="dropdownlist";import{Fragment as wc,jsx as de,jsxs as ji}from"react/jsx-runtime";var Fr="k-dropdownlist",Tc=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],Cc={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]},ea={showValue:!0,arrowIconName:"chevron-down"},P=e=>{let{size:t,rounded:o,fillMode:i,arrowIconName:a=ea.arrowIconName,showValue:s=ea.showValue,valueIconName:l,prefix:c,suffix:u,value:p,placeholder:f,hover:v,focus:y,valid:w,invalid:R,required:M,loading:C,disabled:E,readonly:H,popup:W,opened:J,adaptive:Ne,adaptiveSettings:Ge,adaptiveTitle:at,adaptiveSubtitle:qn,adaptiveFilter:Wn,id:eo,activeDescendant:Sa,"aria-label":Jn,...Yn}=e,Qn=eo?`${eo}-listbox`:void 0,Aa=eo?`${eo}-value`:void 0;return ji(wc,{children:[ji(Je,{...Yn,id:eo,size:t,rounded:o,fillMode:i,hover:v,focus:y,valid:w,invalid:R,required:M,loading:C,disabled:E,readonly:H,className:n(e.className,Fr,{"k-icon-picker":!s&&l}),role:"combobox","aria-haspopup":"listbox","aria-expanded":J?"true":"false","aria-controls":J?Qn:void 0,"aria-activedescendant":J&&Sa?Sa:void 0,"aria-describedby":J?Aa:void 0,"aria-disabled":E?"true":void 0,"aria-label":Jn,tabIndex:0,children:[de(Le,{children:c}),de(so,{placeholder:f,value:p,showValue:s,valueIconName:l,id:Aa}),de(Y,{valid:w,invalid:R,loading:C,disabled:E}),de(te,{loading:C,disabled:E}),de(ye,{children:u}),de(T,{className:"k-input-button",icon:a,size:e.size,fillMode:e.fillMode,"aria-label":f||"Toggle dropdown",tabIndex:-1})]}),J&&W&&de(Ue,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown sugg