@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:O,...R}=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":O},Object.keys(R).reduce((C,E)=>(E.startsWith("k-")?C[E]=R[E]:C[`k-${E}`]=R[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 ni={};function L(e){return ni[e]=(ni[e]||0)+1,`k-${e}-${ni[e]}`}import{Fragment as ts,jsx as Ma}from"react/jsx-runtime";var si="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={},oo=e=>{let{size:t,themeColor:o,icon:i,rotate:a,flip:s,...l}=e;return i?Ma("span",{...l,className:n(e.className,si,I(si,{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,{})};oo.states=Zn;oo.options=jn;oo.className=si;oo.defaultOptions=es;var Ra=oo;import{Fragment as as,jsx as Co}from"react/jsx-runtime";var li="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]},di={viewBox:"0 0 24 24",variant:Pe.outline},io=e=>{let{size:t,themeColor:o,rotate:i,flip:a,viewBox:s=di.viewBox,variant:l=di.variant,icon:c,...u}=e;if(!c)return Co(as,{});if(c==="none")return Co("span",{...u,className:n(e.className,li,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 Co("span",{...u,className:n(e.className,li,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:Co("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})})};io.states=os;io.options=is;io.className=li;io.defaultOptions=di;var ci=io;import*as pi 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 ao}from"react/jsx-runtime";var wo="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]},Io={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||Io.type,rotate:l,flip:c,viewBox:u=Io.viewBox,variant:p=Io.variant,...f}=e;if(!a)return ao(Da,{});if((t||s)==="svg"){if(a==="none")return ao(ci,{...f,className:n(e.className,wo),icon:a,size:o,variant:p});let y=pi[a]?a:ss(`${a}-icon`);return pi[y]?ao(ci,{...f,className:n(e.className,wo),icon:pi[y],size:o,themeColor:i,rotate:l,flip:c,viewBox:u,variant:p}):ao(Da,{})}return ao(Ra,{...f,className:n(e.className,wo),icon:a,size:o,themeColor:i,rotate:l,flip:c})};N.states=ls;N.options=ds;N.defaultOptions=Io;N.className=wo;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={},nt=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"})]})})};nt.states=cs;nt.options=ps;nt.className=Ha;nt.defaultOptions=ms;var za=nt;import fs from"react";var mi="pivotgrid",Ba=mi;import{jsx as Ke,jsxs as Fa}from"react/jsx-runtime";var Ga="k-pivotgrid",bs=[],hs={},So={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=So.emptyCell,configuratorDisplay:o=So.configuratorDisplay,configuratorPosition:i=So.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=So;fe.moduleName=mi;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 ui="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,ui,{"k-pivotgrid-column-total":t},S(ui,{hover:i,selected:a})),children:o})};A.states=Cs;A.options=ws;A.className=ui;A.defaultOptions=Is;import{jsx as fi,jsxs as Rs}from"react/jsx-runtime";var bi="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,bi,{"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(bi,{focus:p,selected:f})),children:[o&&fi(N,{className:"k-pivotgrid-toggle",icon:`chevron-${y[o]}`}),i&&fi("span",{className:"k-pivotgrid-header-title",children:i}),(a||a==="")&&fi("span",{className:"k-pivotgrid-content",children:a})]})};b.states=As;b.options=Es;b.className=bi;b.defaultOptions=Ms;var hi="action-buttons",Va=hi;import{jsx as Ks}from"react/jsx-runtime";var Ao="k-actions",Os=[],Ps={},xi={alignment:"start",orientation:"horizontal"},De=e=>{let{alignment:t=xi.alignment,orientation:o=xi.orientation,...i}=e;return Ks("div",{...i,className:n(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${o}`]:o},e.className),children:e.children})};De.states=Os;De.options=Ps;De.className=Ao;De.defaultOptions=xi;De.moduleName=hi;De.folderName=Va;var vi="button",Xa=vi;import{Fragment as qa,jsx as ht,jsxs as Wa}from"react/jsx-runtime";var ro="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]},Ni={showArrow:!1,arrowIconName:"chevron-down"},T=e=>{let{as:t="button",size:o,rounded:i,fillMode:a,themeColor:s,showArrow:l=Ni.showArrow,arrowIconName:c=Ni.arrowIconName,variant:u,hover:p,focus:f,active:v,selected:y,disabled:w,togglable:O,ariaDisabled:R,icon:C,iconSize:E,text:B,iconClassName:W,className:J,...Ne}=e,Ue=C!=null,rt=e.children!==void 0;return Wa(t,{className:n(J,ro,Ea(ro,u),I(ro,{size:o,rounded:i,fillMode:a,themeColor:s}),S(ro,{hover:p,focus:f,active:v,disabled:w||R,selected:y}),{"k-icon-button":!B&&!rt&&Ue}),"aria-pressed":O?y?"true":"false":void 0,...Ne,"aria-disabled":R?"true":void 0,disabled:w||void 0,children:[typeof C=="string"&&C&&ht(N,{className:n(W,"k-button-icon"),icon:C,size:E}),C&&typeof C!="string"&&ht(qa,{children:C}),B?Wa(qa,{children:[B&&ht("span",{className:"k-button-text",children:B}),e.children]}):e.children&&ht("span",{className:"k-button-text",children:e.children}),l&&ht("span",{className:"k-menu-button-arrow k-button-arrow",children:ht(N,{icon:c})})]})};T.states=_s;T.options=Hs;T.variants=Ds;T.className=ro;T.defaultOptions=Ni;T.moduleName=vi;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 gi=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 st=e=>Fs(T,{children:"Button",...e});import{jsx as ki}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=[],xt=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return ki(gi,{...o,icon:"star"});case"icon-and-text":return ki(Ja,{...o,icon:"star",children:"Button"});default:return ki(st,{...o,children:"Button"})}};xt.options=Gs;xt.states=Us;xt.variants=Vs;xt.defaultOptions=$s;xt.modifiers=Xs;xt.className=T.className;import{Fragment as Ys,jsx as lt,jsxs as Ya}from"react/jsx-runtime";var Eo="k-pivotgrid-configurator",qs=[],Ws={},Js=Ya(Ys,{children:[lt(T,{children:"Cancel"}),lt(T,{themeColor:"primary",children:"Apply"})]}),no={orientation:"vertical",mode:"push",actionButtons:Js,header:"Settings"},_e=e=>{let{orientation:t=no.orientation,mode:o=no.mode,actionButtons:i=no.actionButtons,header:a=no.header,headerId:s,children:l,...c}=e,u=s||L("pivotgrid-configurator-header");return lt("div",{...c,className:n(e.className,Eo),role:"dialog","aria-labelledby":u,children:Ya("div",{className:n("k-pivotgrid-configurator-panel",{[`${Eo}-${t}`]:t,[`${Eo}-${o}`]:o}),children:[lt("div",{className:"k-pivotgrid-configurator-header",children:lt("div",{className:"k-pivotgrid-configurator-header-text",id:u,children:a})}),lt("div",{className:"k-pivotgrid-configurator-content",children:l}),lt(De,{alignment:"end",className:"k-pivotgrid-configurator-actions",children:i})]})})};_e.states=qs;_e.options=Ws;_e.className=Eo;_e.defaultOptions=no;var so="input",Mo=so;import{jsx as el}from"react/jsx-runtime";var Ro="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={},F=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,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}))})};F.states=Qs;F.options=Zs;F.className=Ro;F.defaultOptions=js;F.moduleName=so;F.folderName=Mo;import{jsx as al}from"react/jsx-runtime";var Oo="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={},Ye=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,Oo,I(Oo,{size:u,rounded:p,fillMode:f}),S(Oo,{hover:t,focus:o,disabled:i,invalid:a,valid:s,loading:l,readonly:c})),children:e.children})};Ye.states=tl;Ye.options=ol;Ye.className=Oo;Ye.defaultOptions=il;Ye.moduleName=so;Ye.folderName=Mo;import{Fragment as sl,jsx as Li}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?Li(sl,{}):Li("span",{className:n(e.className,Qa),children:Li(N,{icon:"x"})})};ie.states=rl;ie.options=nl;ie.className=Qa;import{jsx as cl}from"react/jsx-runtime";var yi="k-input-inner",ll=[],dl={},Po={type:"text",autocomplete:"off",value:"",placeholder:""},ae=e=>{let{value:t=Po.value,type:o=Po.type,placeholder:i=Po.placeholder,autocomplete:a=Po.autocomplete,disabled:s,readOnly:l,...c}=e;return cl("input",{...c,type:o,className:n(e.className,yi,I(yi,e)),placeholder:i,autoComplete:a,defaultValue:t,disabled:s||void 0,readOnly:l||void 0})};ae.states=ll;ae.options=dl;ae.className=yi;import{jsx as Za,jsxs as ul}from"react/jsx-runtime";var Ti="k-input-inner",pl=[],ml={},lo=e=>{let{value:t,placeholder:o,showValue:i,valueIcon:a,valueIconName:s,...l}=e;return ul("span",{...l,className:n(e.className,Ti,I(Ti,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})]})};lo.states=pl;lo.options=ml;lo.className=Ti;import{jsx as hl}from"react/jsx-runtime";var Ci="k-input-inner",fl=[],bl={},ja={value:"",placeholder:""},co=e=>{let{value:t=ja.value,placeholder:o=ja.placeholder,rows:i,disabled:a,...s}=e;return hl("textarea",{...s,className:n(e.className,Ci,I(Ci,e)),placeholder:o,rows:i,defaultValue:t,disabled:a||void 0})};co.states=fl;co.options=bl;co.className=Ci;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",wi=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 Ii}from"react/jsx-runtime";var Rl=F.states,Ol=F.defaultOptions,Pl=F.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=[],vt=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 Ii(F,{...c,valid:o,invalid:i,loading:a,disabled:s,readonly:l,style:{width:300},children:[u&&Ii(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&&Ii(sr,{children:[y&&He(re,{}),He(ye,{children:He(st,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};vt.options=Pl;vt.states=Rl;vt.variants=Dl;vt.defaultOptions=Ol;vt.modifiers=Kl;vt.className=F.className;var Si="popup",lr=Si;import{jsx as dr}from"react/jsx-runtime";var cr="k-animation-container",_l=[],Hl={},Ai={positionMode:"absolute",shown:!0},ze=e=>{let{positionMode:t=Ai.positionMode,shown:o=Ai.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=Ai;ze.moduleName=Si;ze.folderName=lr;var Ei="popup",pr=Ei;import{jsx as mr}from"react/jsx-runtime";var ur="k-popup",zl=[],Bl={},fr={positionMode:"absolute"},$e=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})})};$e.states=zl;$e.options=Bl;$e.className=ur;$e.defaultOptions=fr;$e.moduleName=Ei;$e.folderName=pr;$e.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"},Nt=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 Mi="searchbox",hr=Mi;import{jsx as po,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]},Ri={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=Ri.showIcon,icon:O=Ri.icon,"aria-label":R,...C}=e;return Vl(F,{...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&&po(N,{className:"k-input-icon",icon:O}),po(ae,{placeholder:o,value:t,"aria-label":R}),po(te,{...e}),po(Y,{...e}),po(ie,{...e})]})};Te.states=Ul;Te.options=$l;Te.className=xr;Te.defaultOptions=Ri;Te.moduleName=Mi;Te.folderName=hr;import{jsx as mx}from"react/jsx-runtime";var Oi="textbox",vr=Oi;import{Fragment as Nr,jsx as Qe,jsxs as Pi}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]},Ko={showClearButton:!0,showValidationIcon:!0,separators:!0},_=e=>{let{size:t,rounded:o,fillMode:i,separators:a=Ko.separators,showClearButton:s=Ko.showClearButton,showValidationIcon:l=Ko.showValidationIcon,prefix:c,suffix:u,type:p,value:f,placeholder:v,hover:y,focus:w,valid:O,invalid:R,required:C,loading:E,disabled:B,readonly:W,id:J,"aria-label":Ne,"aria-describedby":Ue,...rt}=e;return Pi(F,{...rt,size:t,rounded:o,fillMode:i,hover:y,focus:w,valid:O,invalid:R,required:C,loading:E,disabled:B,readonly:W,className:n(e.className,gr),children:[c&&Pi(Nr,{children:[Qe(Le,{children:c}),a&&Qe(re,{})]}),Qe(ae,{id:J,placeholder:v,value:f,type:p,disabled:B,"aria-label":Ne,"aria-describedby":Ue,"aria-invalid":R?"true":void 0}),l&&Qe(Y,{valid:O,invalid:R,loading:E,disabled:B}),Qe(te,{loading:E,disabled:B}),s&&Qe(ie,{loading:E,disabled:B,readonly:W,value:f}),u&&Pi(Nr,{children:[a&&Qe(re,{}),Qe(ye,{children:u})]})]})};_.states=Xl;_.options=ql;_.className=gr;_.defaultOptions=Ko;_.moduleName=Oi;_.folderName=vr;_.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 mo=_;import{jsx as Wl}from"react/jsx-runtime";var kr=e=>Wl(mo,{...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 Ki}from"react/jsx-runtime";var Jl=_.states,Yl=_.defaultOptions,Ql=_.options,Zl=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],jl=[],gt=e=>{let{modifiers:t,...o}=e,i={};return Object.keys(t||{}).forEach(a=>{switch(a){case"prefix":i.prefix=t?.[a]?Ki(N,{icon:"lock"}):void 0;break;case"suffix":i.suffix=t?.[a]?Ki(st,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":i.showClearButton=t?.[a];break;default:break}}),Ki(kr,{value:"Value",style:{width:300},...o,...i})};gt.options=Ql;gt.states=Jl;gt.variants=jl;gt.defaultOptions=Yl;gt.modifiers=Zl;gt.className=_.className;import{jsx as Ze,jsxs as Di}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 Di("div",{...y,className:n(e.className,Lr),children:[Di("div",{className:"k-actionsheet-titlebar-group",children:[i&&Ze("div",{className:"k-actionsheet-actions",children:i}),!v&&Di("div",{className:"k-actionsheet-title",id:f,children:[t&&Ze("div",{className:"k-text-center",children:t}),o&&Ze("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),v&&Ze("div",{className:"k-actionsheet-title",id:f,children:v}),a&&Ze("div",{className:"k-actionsheet-actions",children:a})]}),(l||s)&&Ze("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Ze(_,{value:c,placeholder:u,size:p?"large":"medium","aria-label":t||u||"Input"}):Ze(Te,{placeholder:"Filter",size:p?"large":"medium","aria-label":"Filter options"})})]})};Me.className=Lr;Me.defaultOptions=ed;import{jsx as _i,jsxs as ad}from"react/jsx-runtime";var Hi="k-actionsheet-view",td=[],od={},id={},kt=e=>{let{adaptive:t,animated:o,children:i,header:a,footer:s,titleId:l,...c}=e,u=a?.type===Me&&_i(Me,{adaptive:t,titleId:l,...a?.props}),p=s?.type===Nt&&_i(Nt,{...s?.props});return ad("div",{...c,className:n(e.className,Hi,{[`${Hi}-animated`]:o}),children:[u,_i("div",{className:"k-actionsheet-content",children:i}),p]})};kt.states=td;kt.options=od;kt.className=Hi;kt.defaultOptions=id;var uo="action-sheet",Do=uo;var zi="overlay",yr=zi;import{jsx as ld}from"react/jsx-runtime";var Tr="k-overlay",rd=[],nd={},sd={},je=e=>{let{...t}=e;return ld("div",{...t,className:n(e.className,Tr),children:e.children})};je.states=rd;je.options=nd;je.className=Tr;je.defaultOptions=sd;je.moduleName=zi;je.folderName=yr;import{jsx as _o,jsxs as pd}from"react/jsx-runtime";var Cr="k-actionsheet",dd=[],cd={},fo={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},Q=e=>{let{side:t=fo.side,fullscreen:o=fo.fullscreen,adaptive:i=fo.adaptive,overlay:a=fo.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&&_o(je,{}),_o(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:_o("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||_o(kt,{header:c,footer:u,adaptive:i,titleId:v,...e,children:l})})})]})};Q.states=dd;Q.options=cd;Q.className=Cr;Q.defaultOptions=fo;Q.moduleName=uo;Q.folderName=Do;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={},Lt=e=>{let{children:t,...o}=e;return bd("div",{...o,className:wr,children:t})};Lt.states=md;Lt.options=ud;Lt.className=wr;Lt.defaultOptions=fd;Lt.moduleName=uo;Lt.folderName=Do;import{jsx as hd}from"react/jsx-runtime";var Bi=e=>{let{...t}=e;return hd("div",{...t,className:n(e.className,"k-list-ul"),children:e.children})};import{Fragment as vd,jsx as bo,jsxs as Fi}from"react/jsx-runtime";var Gi="k-actionsheet-item",xd=[r.hover,r.focus,r.selected,r.disabled],et=e=>{let{iconName:t,text:o,description:i,hover:a,focus:s,selected:l,disabled:c,...u}=e;return Fi("span",{...u,className:n(e.className,Gi,S(Gi,{hover:a,focus:s,selected:l,disabled:c})),children:[!e.children&&bo(vd,{children:Fi("span",{className:"k-actionsheet-action",children:[t&&bo("span",{className:"k-icon-wrap",children:bo(N,{className:"k-actionsheet-item-icon",icon:t})}),Fi("span",{className:"k-actionsheet-item-text",children:[o&&bo("span",{className:"k-actionsheet-item-title",children:o}),i&&bo("span",{className:"k-actionsheet-item-description",children:i})]})]})}),e.children]})};et.states=xd;et.className=Gi;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 Ui}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"}],yt=e=>{let{variant:t,modifiers:o,...i}={...Sr,...e},a={},s=Ui(Bi,{children:[Z(et,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),Z(et,{text:"Add to Favorites",iconName:"heart"}),Z(et,{text:"Upload New",iconName:"upload",disabled:!0}),Z("hr",{className:"k-hr"}),Z(et,{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?Ui(Nt,{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?Ui(Nt,{alignment:"stretched",children:[Z(T,{text:"Apply",themeColor:"primary"}),Z(T,{text:"Cancel",themeColor:"base"})]}):void 0,children:s})};yt.options=Nd;yt.states=gd;yt.variants=kd;yt.defaultOptions=Sr;yt.modifiers=Ld;yt.className=Q.className;import Xi from"react";import{jsx as Ar}from"react/jsx-runtime";var yd="k-list-group-sticky-header",$i=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",Vi=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 dt="list",Tt=dt;import{jsx as Er,jsxs as Mr}from"react/jsx-runtime";var qi="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=Xi.Children.toArray(i)[0],w=y?.props?.children?Xi.Children.count(y.props.children):Xi.Children.count(i);return Mr("div",{...f,className:n(e.className,qi,I(qi,{size:t}),{"k-virtual-list":o}),children:[l,s,c,a&&Er($i,{children:a}),i||(u!==void 0?u:Er(Vi,{live:!0,children:"No data found."})),p&&i&&Mr(Vi,{className:"k-sr-only",live:!0,children:[w," items found."]})]})};q.states=wd;q.options=Id;q.className=qi;q.defaultOptions=Sd;q.moduleName=dt;q.folderName=Tt;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={},Ct=e=>{let{...t}=e;return Rd("div",{...t,className:n(e.className,Rr),children:e.children})};Ct.states=Ad;Ct.options=Ed;Ct.className=Rr;Ct.defaultOptions=Md;Ct.moduleName=dt;Ct.folderName=Tt;var ct="checkbox",wt=ct;import{jsx as Or}from"react/jsx-runtime";var Ho="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,Ho,I(Ho,{size:f,rounded:v}),S(Ho,{hover:a,focus:s,disabled:l,invalid:c,valid:u,indeterminate:i,checked:o}))})})};j.states=Od;j.options=Pd;j.className=Ho;j.defaultOptions=Kd;j.moduleName=ct;j.folderName=wt;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=ct;ne.folderName=wt;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=ct;se.folderName=wt;import{Fragment as Ud,jsx as _r,jsxs as $d}from"react/jsx-runtime";var Ve=({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=[],It=e=>{let{variant:t,...o}=e;return t==="horizontal"?Hr(ne,{layout:"horizontal",...o,children:[Ce(se,{children:Ce(Ve,{id:L("cb"),defaultChecked:!0,children:"Label"})}),Ce(se,{children:Ce(Ve,{id:L("cb"),children:"Label"})}),Ce(se,{children:Ce(Ve,{id:L("cb"),children:"Label"})})]}):Hr(ne,{...o,children:[Ce(se,{children:Ce(Ve,{id:L("cb"),defaultChecked:!0,children:"Label"})}),Ce(se,{children:Ce(Ve,{id:L("cb"),children:"Label"})}),Ce(se,{children:Ce(Ve,{id:L("cb"),children:"Label"})})]})};It.options=Vd;It.states=Xd;It.variants=Wd;It.defaultOptions=qd;It.modifiers=Jd;It.className=ne.className;import{jsx as tc}from"react/jsx-runtime";var Yd=Re.options,Qd=Re.states,Zd=Re.defaultOptions,jd=[],ec=[],St=e=>tc(Ve,{id:L("checkbox"),...e,defaultChecked:!0,children:"Label"});St.options=Yd;St.states=Qd;St.variants=jd;St.defaultOptions=Zd;St.modifiers=ec;St.className=Re.className;import{jsx as pt,jsxs as rc}from"react/jsx-runtime";var Wi="k-list-item",oc=[r.hover,r.focus,r.selected,r.disabled],ic={},ac={},G=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:O,...R}=e,C=t||e.children;return rc("li",{...R,id:O,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":Wi,S(Wi,{hover:u,focus:p,disabled:v,selected:f})),children:[l&&pt(j,{checked:c}),a&&pt("span",{className:"k-list-item-icon-wrapper",children:pt(N,{icon:a,className:n("k-list-item-icon",s)})}),pt("span",{className:"k-list-item-text",children:C}),y&&pt("div",{className:"k-list-item-actions",children:y}),w&&pt("span",{className:"k-list-item-description",children:w}),o&&o!==""&&pt("div",{className:"k-list-item-group-label",children:o})]})};G.states=oc;G.options=ic;G.className=Wi;G.defaultOptions=ac;G.moduleName=dt;G.folderName=Tt;G.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",mt=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})};mt.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 Ji,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:Ji(mt,{role:"listbox",id:s,"aria-label":i,"aria-labelledby":a,children:e.children}),t&&Ji("div",{className:"k-height-container",children:Ji("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 Yi,jsxs as uc}from"react/jsx-runtime";var zo="k-list-sticky-header",cc=[r.hover,r.focus,r.selected],pc={},mc={},Bo=e=>{let{label:t="Select all",showCheckbox:o=!0,checked:i,indeterminate:a,hover:s,focus:l,selected:c,...u}=e;return Yi("div",{...u,className:n(zo,e.className),children:uc("div",{className:n(`${zo}-item`,S(`${zo}-item`,{hover:s,focus:l,selected:c})),children:[o&&Yi(j,{checked:i,indeterminate:a,"aria-label":t}),Yi("span",{className:"k-list-item-text",children:t})]})})};Bo.states=cc;Bo.options=pc;Bo.className=zo;Bo.defaultOptions=mc;import{Fragment as wk,jsx as Ck,jsxs as Ik}from"react/jsx-runtime";import{jsx as Qi,jsxs as bc}from"react/jsx-runtime";var fc="k-list-group-item",ho=e=>{let{groupIconName:t,...o}=e;return bc("li",{...o,role:"presentation",className:n(fc,e.className),children:[t&&Qi("span",{className:"k-list-item-icon-wrapper",children:Qi(N,{icon:t,className:"k-list-item-icon"})}),Qi("span",{className:"k-list-item-text",children:e.children})]})};ho.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 Zi="k-list-optionlabel",hc=[r.hover,r.focus,r.selected,r.disabled],xc={},vc={},Fo=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:s,...l}=e;return Nc("div",{...l,className:n(Zi,S(Zi,{hover:o,focus:i,selected:a,disabled:s})),children:t})};Fo.states=hc;Fo.options=xc;Fo.className=Zi;Fo.defaultOptions=vc;import{jsx as yc}from"react/jsx-runtime";var ji="k-list-custom-value",gc=[r.hover,r.focus,r.selected,r.disabled],kc={},Lc={},Go=e=>{let{text:t,hover:o,focus:i,selected:a,disabled:s,...l}=e;return yc("div",{...l,className:n(ji,S(ji,{hover:o,focus:i,selected:a,disabled:s})),children:t})};Go.states=gc;Go.options=kc;Go.className=ji;Go.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 ea}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]},ta={showValue:!0,arrowIconName:"chevron-down"},D=e=>{let{size:t,rounded:o,fillMode:i,arrowIconName:a=ta.arrowIconName,showValue:s=ta.showValue,valueIconName:l,prefix:c,suffix:u,value:p,placeholder:f,hover:v,focus:y,valid:w,invalid:O,required:R,loading:C,disabled:E,readonly:B,popup:W,opened:J,adaptive:Ne,adaptiveSettings:Ue,adaptiveTitle:rt,adaptiveSubtitle:qn,adaptiveFilter:Wn,id:to,activeDescendant:Sa,"aria-label":Jn,...Yn}=e,Qn=to?`${to}-listbox`:void 0,Aa=to?`${to}-value`:void 0;return ea(wc,{children:[ea(Ye,{...Yn,id:to,size:t,rounded:o,fillMode:i,hover:v,focus:y,valid:w,invalid:O,required:R,loading:C,disabled:E,readonly:B,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(lo,{placeholder:f,value:p,showValue:s,valueIconName:l,id:Aa}),de(Y,{valid:w,invalid:O,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($e,{className:"k-list-container k-dropdownlist-popup",containerRole:"region",containerAriaLabel:"Dropdown sugg