@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 195 kB
JavaScript
var a=(...e)=>e.filter(o=>o!==!0&&!!o).map(o=>Array.isArray(o)?a(...o):typeof o=="object"?Object.keys(o).map((t,r)=>o[r]||o[t]&&t||null).filter(t=>t!==null).join(" "):o).filter(o=>!!o).join(" ");var y=(e,o)=>a({[`${e}-xs`]:o.size==="xsmall",[`${e}-sm`]:o.size==="small",[`${e}-md`]:o.size==="medium",[`${e}-lg`]:o.size==="large",[`${e}-xl`]:o.size==="xlarge",[`${e}-xxl`]:o.size==="xxlarge",[`${e}-xxxl`]:o.size==="xxxlarge"},{[`${e}-${o.fillMode}`]:o.fillMode},{[`${e}-${o.themeColor}`]:o.themeColor},{"k-rounded-sm":o.rounded==="small","k-rounded-md":o.rounded==="medium","k-rounded-lg":o.rounded==="large","k-rounded-full":o.rounded==="full","k-rounded-none":o.rounded==="none"}),S=(e,o)=>{let{valid:t,invalid:r,hover:l,focus:n,checked:c,active:m,selected:f,disabled:N,indeterminate:x,loading:k,empty:u,readonly:v,highlighted:L,...R}=o;return a({"k-valid":t,"k-invalid":r,"k-hover":l,"k-focus":n,"k-checked":c,"k-active":m,"k-selected":f,"k-disabled":N,"k-indeterminate":x&&!c,"k-loading":k,"k-empty":u,"k-readonly":v,"k-highlighted":L},Object.keys(R).reduce((G,O)=>(O.startsWith("k-")?G[O]=R[O]:G[`k-${O}`]=R[O],G),{}))};function Tn(e,o){if(!o)return{};let t=Array.isArray(o)?o:[o];return Object.fromEntries(t.map(r=>[`k-${r}`,!0]))}var s={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},g={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"},Eo={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},C={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},i={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 ml={};function _(e){return ml[e]=(ml[e]||0)+1,`k-${e}-${ml[e]}`}import{Fragment as Uc,jsx as gn}from"react/jsx-runtime";var ul="k-font-icon",Dc=[],Bc={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[C.undefined,C.base,C.primary,C.secondary,C.tertiary,C.success,C.warning,C.error,C.info]},zc={},_a=e=>{let{size:o,themeColor:t,icon:r,rotate:l,flip:n,...c}=e;return r?gn("span",{...c,className:a(e.className,ul,y(ul,{size:o}),{[`k-i-${r}`]:r,[`k-color-${t}`]:t,[`k-rotate-${l}`]:l,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true"}):gn(Uc,{})};_a.states=Dc;_a.options=Bc;_a.className=ul;_a.defaultOptions=zc;var hn=_a;import{Fragment as Vc,jsx as Tr}from"react/jsx-runtime";var bl="k-svg-icon",Fc=[],$c={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[C.undefined,C.base,C.primary,C.secondary,C.tertiary,C.success,C.warning,C.error,C.info],variant:[Eo.outline,Eo.solid,Eo.duotone]},fl={viewBox:"0 0 24 24",variant:Eo.outline},Ka=e=>{let{size:o,themeColor:t,rotate:r,flip:l,viewBox:n=fl.viewBox,variant:c=fl.variant,icon:m,...f}=e;if(!m)return Tr(Vc,{});if(m==="none")return Tr("span",{...f,className:a(e.className,bl,y("k-icon",{size:o}),"k-none"),"aria-hidden":"true"});let N=typeof m=="object"&&m.name&&m.name,x=typeof m=="object"?c&&m.variants?.[c]||m.variants?.outline||m.content:void 0;return Tr("span",{...f,className:a(e.className,bl,y("k-icon",{size:o}),{[`k-svg-i-${N}`]:N,[`k-color-${t}`]:t,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true",children:Tr("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:n,dangerouslySetInnerHTML:x!==void 0?{__html:x}:void 0,children:m?void 0:e.children})})};Ka.states=Fc;Ka.options=$c;Ka.className=bl;Ka.defaultOptions=fl;var Tl=Ka;import*as gl from"@progress/kendo-svg-icons";var xn="icon",Nn="icons";import{useContext as Xc}from"react";import{createContext as Wc}from"react";var kn=Wc({iconsType:"svg"});import{Fragment as vn,jsx as Da}from"react/jsx-runtime";var gr="k-icon",Jc=e=>e.replace(/([-_][a-z0-9])/gi,o=>o.toUpperCase().replace("-","").replace("_","")),qc=[],Yc={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[C.undefined,C.base,C.primary,C.secondary,C.tertiary,C.success,C.warning,C.error,C.info],variant:[Eo.outline,Eo.solid,Eo.duotone]},hr={viewBox:"0 0 24 24",type:"svg",variant:Eo.outline},b=e=>{let{iconsType:o}=Xc(kn),{size:t,themeColor:r,icon:l,type:n=o||hr.type,rotate:c,flip:m,viewBox:f=hr.viewBox,variant:N=hr.variant,...x}=e;if(!l)return Da(vn,{});if((o||n)==="svg"){if(l==="none")return Da(Tl,{...x,className:a(e.className,gr),icon:l,size:t,variant:N});let u=gl[l]?l:Jc(`${l}-icon`);return gl[u]?Da(Tl,{...x,className:a(e.className,gr),icon:gl[u],size:t,themeColor:r,rotate:c,flip:m,viewBox:f,variant:N}):Da(vn,{})}return Da(hn,{...x,className:a(e.className,gr),icon:l,size:t,themeColor:r,rotate:c,flip:m})};b.states=qc;b.options=Yc;b.defaultOptions=hr;b.className=gr;b.moduleName=xn;b.folderName=Nn;b.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 xr}from"react/jsx-runtime";var Qc="k-chip-action";var le=e=>{let{type:o,...t}=e,r;switch(o){case"remove":r=xr(b,{icon:"x-circle",size:"small"});break;case"more":r=xr(b,{icon:"more-vertical",size:"small"});break;default:return xr(b,{icon:o,size:"small"})}return xr("span",{...t,className:a(e.className,Qc,`k-chip-${o}-action`),children:r})};var hl="avatar",wn=hl;import{jsx as Cn}from"react/jsx-runtime";var Ba="k-avatar";var Zc=[i.hover,i.focus,i.active,i.selected,i.disabled],jc={size:[s.undefined,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.outline],themeColor:[C.undefined,C.base,C.primary,C.secondary,C.tertiary]},xl={type:"text",border:!1},Ue=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,type:n=xl.type,border:c=xl.border,...m}=e;return Cn("div",{...m,className:a(e.className,Ba,y(Ba,{size:o,rounded:t,fillMode:r,themeColor:l}),{[`${Ba}-bordered`]:c}),children:Cn("span",{className:`${Ba}-${n}`,children:e.children})})};Ue.states=Zc;Ue.options=jc;Ue.className=Ba;Ue.defaultOptions=xl;Ue.moduleName=hl;Ue.folderName=wn;Ue.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var vt=Ue;import{jsx as ep}from"react/jsx-runtime";var Ln=e=>ep(vt,{type:"icon",...e});import{jsx as op}from"react/jsx-runtime";var Mn=e=>op(vt,{type:"text",...e});import{jsx as tp}from"react/jsx-runtime";var yn=e=>tp(vt,{type:"image",...e});import{jsx as QN}from"react/jsx-runtime";import{jsx as za}from"react/jsx-runtime";var ap=Ue.options,rp=Ue.states,lp={...Ue.defaultOptions,variant:"image"},ip=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],np=[],Bt=e=>{let{variant:o,...t}=e;switch(o){case"icon":return za(Ln,{...t,children:za(b,{icon:"star"})});case"text":return za(Mn,{...t,children:"JO"});default:return za(yn,{...t,children:za("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};Bt.options=ap;Bt.states=rp;Bt.variants=ip;Bt.defaultOptions=lp;Bt.modifiers=np;Bt.className=Ue.className;var Ua="chip",Nr=Ua,kr="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as zt,jsxs as cp}from"react/jsx-runtime";var vr="k-chip",sp=[i.hover,i.focus,i.active,i.selected,i.disabled],dp={size:[s.undefined,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.outline],themeColor:[C.undefined,C.base,C.success,C.warning,C.error,C.info]},Sn={avatarImage:"/packages/html/assets/avatar.jpg"},re=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,text:n,icon:c,actions:m,showAvatar:f,avatarImage:N=Sn.avatarImage,hover:x,focus:k,active:u,selected:v,disabled:L,...R}=e;return cp("div",{...R,className:a(e.className,vr,y(vr,{size:o,rounded:t,fillMode:r,themeColor:l}),S(vr,{hover:x,focus:k,active:u,disabled:L,selected:v})),role:e.role||"button","aria-pressed":e.role==="option"?void 0:v?"true":"false",...e.role==="option"&&v!==void 0&&{"aria-selected":v?"true":"false"},"aria-disabled":L?"true":void 0,children:[c&&zt(b,{className:"k-chip-icon",icon:c,size:"small"}),f&&zt(Ue,{className:"k-chip-avatar",type:"image",children:zt("img",{src:N,alt:""})}),zt("span",{className:"k-chip-content",children:e.children?e.children:n&&zt("span",{className:"k-chip-label",children:n})}),m&&zt("span",{className:"k-chip-actions",children:m})]})};re.states=sp;re.options=dp;re.className=vr;re.defaultOptions=Sn;re.moduleName=Ua;re.folderName=Nr;re.ariaSpec={selector:".k-chip",rules:[{selector:"*:not(.k-chip-list) > .k-chip",attribute:"role=button",usage:"Announces that the chip acts as a button when standalone."},{selector:"*:not(.k-chip-list) > .k-chip.k-selected",attribute:"aria-pressed=true",usage:"Announces that the Chip has been selected."},{selector:"*:not(.k-chip-list) > .k-chip:not(.k-selected)",attribute:"aria-pressed=false",usage:"Announces that the Chip has not been selected."},{selector:".k-chip",attribute:"aria-disabled=true (when disabled)",usage:"Announces that the Chip is disabled."}]};var bo=re;import{jsx as bp}from"react/jsx-runtime";var Nl="k-chip-list",pp=[],mp={size:[s.undefined,s.small,s.medium,s.large]},up={},ie=e=>{let{size:o,multiselectable:t,ariaLabel:r,...l}=e;return bp("div",{...l,className:a(e.className,Nl,y(Nl,{size:o})),role:e.role||"listbox","aria-label":e.role==="none"?void 0:r||"chip list","aria-orientation":e.role==="none"?void 0:"horizontal","aria-multiselectable":t?"true":void 0,children:e.children})};ie.states=pp;ie.options=mp;ie.className=Nl;ie.defaultOptions=up;ie.moduleName=Ua;ie.folderName=Nr;ie.ariaSpec={selector:".k-chip-list",rules:[{selector:".k-chip-list",attribute:"role=listbox",usage:"Announces the list role of the chip list."},{selector:".k-chip-list",attribute:"aria-label or aria-labelledby",usage:"Adds label to the ChipList element. ListBox element requires an accessible name."},{selector:".k-chip-list",attribute:"aria-orientation=horizontal",usage:"Specifies the horizontal orientation of the chiplist."},{selector:".k-chip-list",attribute:"aria-multiselectable=true (when multiple selection)",usage:"Announces the multiple selection ability of the chiplist."},{selector:".k-chip-list .k-chip",attribute:"role=option",usage:"Announces the chip is an option inner component of the chip list."},{selector:".k-chip-list .k-chip.k-selected",attribute:"aria-selected=true",usage:"Announces the chip is selected."},{selector:".k-chip-list .k-chip:not(.k-selected)",attribute:"aria-selected=false",usage:"Announces the chip is not selected."},{selector:".k-chip-list .k-chip:has(.k-i-x-circle), .k-chip-list .k-chip:has(.k-svg-i-x-circle)",attribute:"aria-keyshortcuts=Enter Delete",usage:"Announces the Delete action along with the default Enter key."}]};import{jsx as yk}from"react/jsx-runtime";import{jsx as Rk}from"react/jsx-runtime";import{jsx as fp}from"react/jsx-runtime";var wr=e=>fp(bo,{text:"text",...e});import{jsx as Dk}from"react/jsx-runtime";import{jsx as Fk}from"react/jsx-runtime";import{Fragment as qk,jsx as Jk,jsxs as Yk}from"react/jsx-runtime";import{jsx as ov,jsxs as tv}from"react/jsx-runtime";import{jsx as nv,jsxs as sv}from"react/jsx-runtime";import{jsx as bv,jsxs as fv}from"react/jsx-runtime";import{jsx as Ut,jsxs as kp}from"react/jsx-runtime";var Tp={...bo.options,...ie.options},gp=[],hp=ie.states,xp={...bo.defaultOptions,...ie.defaultOptions},Np=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],Ft=e=>{let{modifiers:o,className:t,...r}=e,l=o?.icon,n=o?.actions,c=o?.avatar,m=c?kr:void 0;return kp(ie,{size:r.size,className:t,children:[Ut(wr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:n?Ut(le,{type:"remove"}):void 0,showAvatar:c,avatarImage:m,children:"Chip"}),Ut(wr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:n?Ut(le,{type:"remove"}):void 0,showAvatar:c,avatarImage:m,children:"Chip"}),Ut(wr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:n?Ut(le,{type:"remove"}):void 0,showAvatar:c,avatarImage:m,children:"Chip"})]})};Ft.options=Tp;Ft.states=hp;Ft.variants=gp;Ft.defaultOptions=xp;Ft.modifiers=Np;Ft.className=ie.className;import{jsx as kl}from"react/jsx-runtime";var vp=re.states,wp=re.defaultOptions,Cp=re.options,Lp=[],Mp=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],$t=e=>{let{modifiers:o,...t}=e,r={};return Object.keys(o||{}).forEach(l=>{switch(l){case"icon":r.icon=o?.[l]?"arrow-down":void 0;break;case"avatar":r.showAvatar=!!o?.[l],r.avatarImage=o?.[l]?kr:void 0;break;case"more-options":r.actions||(r.actions=[]),r.actions[0]=o?.[l]?kl(le,{type:"more"}):void 0;break;case"remove-icon":r.actions||(r.actions=[]),r.actions[1]=o?.[l]?kl(le,{type:"remove"}):void 0;break;default:break}}),kl(re,{...t,...r,children:"Chip component"})};$t.options=Cp;$t.states=vp;$t.variants=Lp;$t.defaultOptions=wp;$t.modifiers=Mp;$t.className=re.className;var vl="button",An=vl;import{Fragment as In,jsx as Vt,jsxs as Rn}from"react/jsx-runtime";var Fa="k-button",yp=["icon-button"],Sp=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Ap={size:[s.undefined,s.xsmall,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[C.undefined,C.base,C.primary,C.secondary,C.tertiary,C.success,C.warning,C.error,C.info,C.inverse]},wl={showArrow:!1,arrowIconName:"chevron-down"},p=e=>{let{as:o="button",size:t,rounded:r,fillMode:l,themeColor:n,showArrow:c=wl.showArrow,arrowIconName:m=wl.arrowIconName,variant:f,hover:N,focus:x,active:k,selected:u,disabled:v,togglable:L,ariaDisabled:R,icon:G,iconSize:O,text:z,iconClassName:he,className:pe,...De}=e,Be=G!=null,ze=e.children!==void 0;return Rn(o,{className:a(pe,Fa,Tn(Fa,f),y(Fa,{size:t,rounded:r,fillMode:l,themeColor:n}),S(Fa,{hover:N,focus:x,active:k,disabled:v||R,selected:u}),{"k-icon-button":!z&&!ze&&Be}),"aria-pressed":L?u?"true":"false":void 0,...De,"aria-disabled":R?"true":void 0,disabled:v||void 0,children:[typeof G=="string"&&G&&Vt(b,{className:a(he,"k-button-icon"),icon:G,size:O}),G&&typeof G!="string"&&Vt(In,{children:G}),z?Rn(In,{children:[z&&Vt("span",{className:"k-button-text",children:z}),e.children]}):e.children&&Vt("span",{className:"k-button-text",children:e.children}),c&&Vt("span",{className:"k-menu-button-arrow k-button-arrow",children:Vt(b,{icon:m})})]})};p.states=Sp;p.options=Ap;p.variants=yp;p.className=Fa;p.defaultOptions=wl;p.moduleName=vl;p.folderName=An;p.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 Ip}from"react/jsx-runtime";var et=e=>Ip(p,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Rp}from"react/jsx-runtime";var $a=e=>Rp(p,{icon:"folder",children:"Button",...e});import{jsx as Ep}from"react/jsx-runtime";var wt=e=>Ep(p,{children:"Button",...e});import{jsx as Cl}from"react/jsx-runtime";var Gp=p.options,Op=p.states,Hp={...p.defaultOptions,variant:"text"},Pp=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_p=[],Wt=e=>{let{variant:o,...t}=e;switch(o){case"icon-only":return Cl(et,{...t,icon:"star"});case"icon-and-text":return Cl($a,{...t,icon:"star",children:"Button"});default:return Cl(wt,{...t,children:"Button"})}};Wt.options=Gp;Wt.states=Op;Wt.variants=Pp;Wt.defaultOptions=Hp;Wt.modifiers=_p;Wt.className=p.className;var Z="grid",oe=Z;import{jsx as zp,jsxs as Up}from"react/jsx-runtime";var Cr="k-grid",Kp=[],Dp={size:[s.undefined,s.small,s.medium,s.large]},Bp=[],En={pagerPosition:"bottom"},H=e=>{let{size:o,pagerPosition:t=En.pagerPosition,toolbar:r,pager:l,groupingHeader:n,gridSelectionAggregates:c,_renderAriaRoot:m,resizable:f,ariaColCount:N,ariaRowCount:x,ariaRootId:k,ariaRole:u="grid",...v}=e;return Up("div",{...v,className:a(e.className,Cr,{[`${Cr}-resizable`]:f},y(Cr,{size:o})),children:[r,t==="top"&&l,n,e.children&&m?zp("div",{className:"k-grid-aria-root",role:u,id:k,"aria-colcount":N,"aria-rowcount":x,children:e.children}):e.children,c,t==="bottom"&&l]})};H.states=Kp;H.options=Dp;H.variants=Bp;H.className=Cr;H.defaultOptions=En;H.moduleName=Z;H.folderName=oe;H.ariaSpec={selector:".k-grid",rules:[{selector:".k-grid-toolbar",attribute:"role=toolbar",usage:"The toolbar is a collection of command buttons and inputs."},{selector:".k-grid-toolbar",attribute:"aria-label",usage:"Clarifies the purpose of the toolbar."},{selector:".k-grid-toolbar",attribute:"aria-controls=.k-grid-aria-root id (when present)",usage:"Pointing to the id of the element with role=grid."},{selector:".k-grouping-header",attribute:"role=toolbar",usage:"The Grouping pane is a ToolBar (collection of buttons)."},{selector:".k-grouping-header",attribute:"aria-label",usage:"Clarifies the purpose of the grouping pane."},{selector:".k-grouping-header",attribute:"aria-controls=.k-grid-aria-root id (when present)",usage:"Pointing to the id of the element with role=grid."},{selector:".k-grouping-header .k-chip-list",attribute:"role=none",usage:"The ChipList default listbox role is removed to keep the toolbar --> button roles hierarchy."},{selector:".k-grouping-header .k-chip",attribute:"role=button",usage:"If the element used is not <button>, then the role must be specified."},{selector:".k-grid:not(.k-treelist) .k-grid-aria-root",attribute:"role=grid",usage:"The role specifies the element is a Data Grid."},{selector:".k-grid-aria-root",attribute:"aria-colcount (when present)",usage:"The total number of columns in the Grid. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-aria-root",attribute:"aria-rowcount (when present)",usage:"The total number of rows in the table. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid-header-wrap>table",attribute:"role=none",usage:"Negates the default semantic role of the <table> element."},{selector:".k-grid-header-wrap>table>thead",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th:not(.k-hierarchy-cell):not(.k-group-cell):not(.k-drag-cell)",attribute:"role=columnheader",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-sort (when present)",usage:"Present if sorting is enabled for that column."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-haspopup=dialog (when present)",usage:"Present if the column has a ColumnMenu or FilterMenu."},{selector:".k-grid-header-wrap>table>thead>tr.k-filter-row>td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr.k-filter-row>td",attribute:"aria-label",usage:"Has a label indicating that the cell is part of a filter row."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table, .k-grid-pinned-container .k-grid-table",attribute:"role=none",usage:"Negates the default semantic role of the <table> element."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody, .k-grid-pinned-container tbody",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr, .k-grid-pinned-container tbody tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr, .k-grid-pinned-container tbody tr",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr>td, .k-grid-pinned-container tbody td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr>td, .k-grid-pinned-container tbody td",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:"tr.k-selected",attribute:"aria-selected=true",usage:"Set on the currently selected row(s) in row selection mode. All cells within the selected row also carry aria-selected=true (without k-selected class). Applies to both regular and pinned rows."},{selector:"td.k-selected",attribute:"aria-selected=true",usage:"Set on the currently selected cell(s) in cell selection mode. The k-selected class on cells is only applied in cell selection mode, but aria-selected=true is present on cells regardless of selection mode."},{selector:".k-master-row .k-hierarchy-cell, .k-grouping-row>td",attribute:"aria-expanded",usage:"For cells holding grouping criteria values and for Master row cells in Detail template scenario."},{selector:".k-group-cell",attribute:"role=presentation",usage:"Group offset cells (header and content) are non-interactive placeholders with no semantic role."},{selector:".k-drag-cell",attribute:"aria-label",usage:"Must be present in a Drag Row scenario on the cell containing the drag handle."},{selector:".k-grid-header-locked table tr",attribute:"aria-owns",usage:"Locked header rows own cells from the corresponding non-locked header table rows."},{selector:".k-grid-content-locked table tr:not(.k-grouping-row)",attribute:"aria-owns",usage:"Locked content rows own cells from the corresponding non-locked content table rows. Group header rows are excluded because the non-locked group header rows are presentational."},{selector:".k-grid-lockedcolumns .k-grid-header .k-grid-header-wrap table tr",attribute:"role=none",usage:"Non-locked header rows have their semantic role removed when locked columns exist."},{selector:".k-grid-lockedcolumns .k-grid-content table tr",attribute:"role=none",usage:"Non-locked content rows have their semantic role removed when locked columns exist."},{selector:".k-grid-lockedcolumns .k-grid-header .k-grid-header-wrap th",attribute:"role=columnheader",usage:"Non-locked header cells retain columnheader role so they are announced correctly when owned via aria-owns."},{selector:".k-grid-lockedcolumns .k-grid-content td:not(.k-grouping-row td)",attribute:"role=gridcell",usage:"Non-locked data cells retain gridcell role so they are announced correctly when owned via aria-owns. Cells inside group header rows are excluded as those rows are presentational."},{selector:".k-grid-filter-popup",attribute:"role=dialog",usage:"The filter menu popup has dialog role."},{selector:".k-grid-filter-popup",attribute:"id",usage:"Unique id linked to the header cell aria-controls attribute."},{selector:".k-grid-filter-popup",attribute:"aria-label",usage:'Descriptive label for the filter menu, e.g. "Column Title Filter Menu".'},{selector:".k-grid-columnmenu-popup",attribute:"role=dialog",usage:"The column menu popup has dialog role."},{selector:".k-grid-columnmenu-popup",attribute:"id",usage:"Unique id linked to the header cell aria-controls attribute."},{selector:".k-grid-columnmenu-popup",attribute:"aria-label",usage:'Descriptive label for the column menu, e.g. "Column Title Column Menu".'},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"role=button",usage:"Column menu items have button role."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"tabindex=0",usage:"Column menu items are focusable."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"aria-expanded",usage:"Expandable column menu items announce their expanded state."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"aria-controls",usage:"Expandable items point to the id of the content they control."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"role=listbox",usage:"The column list is a listbox."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"aria-multiselectable=true",usage:"The column list supports multiple selections."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"aria-label",usage:"Accessible name for the column list."},{selector:".k-grid-columnmenu-popup .k-column-list-item",attribute:"role=option",usage:"Column list items are options."},{selector:".k-grid-columnmenu-popup .k-column-list-item",attribute:"aria-checked",usage:"Column list items announce their checked state."},{selector:"tfoot",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:"tfoot tr td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr td",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-selection-aggregates",attribute:"aria-live=polite",usage:"Ensures that changes in the calculated selection aggregates are announced by assistive technologies."},{selector:".k-grid-stack-cell",attribute:"tabindex=0",usage:"Stacked cell elements receive tabindex 0 when focus is within their parent .k-grid-stack-row element."},{selector:".k-grid-sticky-container",attribute:"role=none",usage:"Sticky group container has no semantic role."},{selector:".k-grid-sticky-container .k-grid-table",attribute:"role=none",usage:"Negates the default semantic role of the sticky group <table> element."},{selector:".k-grid-sticky-container tbody",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-sticky-container tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-sticky-container tr",attribute:"aria-rowindex",usage:"Matches the aria-rowindex of the real group header/footer row it mirrors."},{selector:".k-grid-sticky-container td:not(.k-group-cell)",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed. Group offset cells are excluded as they retain role=presentation."},{selector:".k-grid-sticky-container .k-grouping-row>td",attribute:"aria-expanded",usage:"Mirrors the expanded/collapsed state of the real group header row."},{selector:".k-grid-sticky-container td:not(.k-group-cell)",attribute:"tabindex",usage:"Receives tabindex 0 when focused, -1 otherwise, for keyboard navigation. Group offset cells are excluded as they are presentational."},{selector:".k-grid-sticky-container td",attribute:"aria-colindex (when present)",usage:"Col number. Typically 1 for the group header cell spanning all columns."},{selector:".k-grid-pinned-container",attribute:"role=none",usage:"Container for pinned rows has no semantic role."},{selector:".k-grid-pinned-container .k-grid-pinned-wrap",attribute:"role=none",usage:"Inner wrapper for the pinned rows table has no semantic role."},{selector:".k-grid-pinned-container tbody",attribute:"aria-label",usage:'Describes the purpose of the pinned rows group, e.g. "Top pinned rows" or "Bottom pinned rows".'},{selector:".k-grid-pinned-container td",attribute:"aria-haspopup=menu (when present)",usage:"Pinned row cells announce the context menu for row pinning operations."},{selector:".k-grid-pinned-container td",attribute:"aria-controls",usage:"Points to the ID of the context menu popup for row pinning."},{selector:".k-grid-pinned-container td",attribute:"aria-expanded",usage:"Indicates whether the context menu popup is open."},{selector:".k-grid-content td",attribute:"aria-haspopup=menu (when present)",usage:"Regular data cells announce context menu when row pinning uses contextual mode."},{selector:".k-grid-content td",attribute:"aria-controls",usage:"Points to the ID of the context menu popup for row pinning."},{selector:".k-grid-content td",attribute:"aria-expanded",usage:"Indicates whether the context menu popup is open."},{selector:'.k-pin-cell [class*="k-icon"]',attribute:"aria-hidden=true",usage:"Pin/unpin icon inside the dedicated column is decorative and must be hidden from assistive technologies."}]};import{jsx as Fp}from"react/jsx-runtime";var Gn="k-grid-header",X=e=>{let{draggable:o,...t}=e;return Fp("div",{...t,className:a(e.className,Gn,{"k-grid-draggable-header":o}),children:e.children})};X.className=Gn;X.moduleName=Z;X.folderName=oe;import{jsx as On,jsxs as $p}from"react/jsx-runtime";var Hn="k-grouping-header",Ie=e=>{let{dropHint:o,dropClue:t,...r}=e;return $p("div",{...r,className:a(e.className,Hn),children:[t&&On("div",{className:"k-grouping-dropclue"}),e.children,On("div",{className:"k-grouping-drop-container",children:o})]})};Ie.className=Hn;Ie.moduleName=Z;Ie.folderName=oe;import{jsx as Vp}from"react/jsx-runtime";var Pn="k-grid-pinned-container",Va=e=>{let{position:o,...t}=e;return Vp("div",{...t,className:a(e.className,Pn,{"k-pos-bottom":o==="bottom"}),children:e.children})};Va.className=Pn;Va.moduleName=Z;Va.folderName=oe;import{jsx as Wp}from"react/jsx-runtime";var _n="k-grid-sticky-container",Wa=e=>{let{position:o,...t}=e;return Wp("div",{...t,className:a(e.className,_n,{"k-pos-bottom":o==="bottom"}),children:e.children})};Wa.className=_n;Wa.moduleName=Z;Wa.folderName=oe;var Re="table",Oe=Re;import{jsx as Yp}from"react/jsx-runtime";var Kn="k-data-table",Xp=[],Jp={size:[s.undefined,s.small,s.medium,s.large]},qp={},Bo=e=>{let{size:o,...t}=e;return Yp("div",{...t,className:a(e.className,Kn,y("k-table",{size:o})),children:e.children})};Bo.states=Xp;Bo.options=Jp;Bo.className=Kn;Bo.defaultOptions=qp;Bo.moduleName=Re;Bo.folderName=Oe;import{jsx as em}from"react/jsx-runtime";var Ll="k-table-header-wrap",Qp=[i.hover,i.focus,i.disabled],Zp={},jp={},ot=e=>{let{children:o,hover:t,focus:r,disabled:l,...n}=e;return em("div",{...n,className:a(e.className,Ll,S(Ll,{hover:t,focus:r,disabled:l})),children:o})};ot.states=Qp;ot.options=Zp;ot.className=Ll;ot.defaultOptions=jp;ot.moduleName=Re;ot.folderName=Oe;import{jsx as rm}from"react/jsx-runtime";var Ml="k-table",om=[],tm={size:[s.undefined,s.small,s.medium,s.large]},am={},He=e=>{let{size:o,...t}=e;return rm("table",{...t,className:a(e.className,Ml,y(Ml,{size:o})),children:e.children})};He.states=om;He.options=tm;He.className=Ml;He.defaultOptions=am;He.moduleName=Re;He.folderName=Oe;import{jsx as yl}from"react/jsx-runtime";var Sl="k-table-header",lm=[i.hover,i.focus,i.disabled],im={},nm={},zo=e=>{let{children:o,hover:t,focus:r,disabled:l,...n}=e;return yl("div",{...n,className:a(e.className,Sl,S(Sl,{hover:t,focus:r,disabled:l})),children:yl(ot,{children:yl(He,{children:o})})})};zo.states=lm;zo.options=im;zo.className=Sl;zo.defaultOptions=nm;zo.moduleName=Re;zo.folderName=Oe;import{jsx as pm}from"react/jsx-runtime";var Dn="k-table-scroller",sm=[],dm={},cm={},Xt=e=>{let{children:o,...t}=e;return pm("div",{...t,className:a(e.className,Dn),children:o})};Xt.states=sm;Xt.options=dm;Xt.className=Dn;Xt.defaultOptions=cm;Xt.moduleName=Re;Xt.folderName=Oe;import{jsx as uC}from"react/jsx-runtime";import{jsx as fm}from"react/jsx-runtime";var Bn="k-table-footer",mm=[],um={},bm={},tt=e=>{let{children:o,...t}=e;return fm("div",{...t,className:a(e.className,Bn),children:o})};tt.states=mm;tt.options=um;tt.className=Bn;tt.defaultOptions=bm;tt.moduleName=Re;tt.folderName=Oe;import{jsx as xm}from"react/jsx-runtime";var Al="k-table-list",Tm=[],gm={size:[s.undefined,s.small,s.medium,s.large]},hm={},at=e=>{let{size:o,virtualization:t,...r}=e;return xm("ul",{...r,className:a(e.className,"k-table",Al,y(Al,{size:o}),{"k-virtual-table":t}),children:e.children})};at.states=Tm;at.options=gm;at.className=Al;at.defaultOptions=hm;at.moduleName=Re;at.folderName=Oe;import{jsx as km}from"react/jsx-runtime";var Nm="k-table-thead",F=e=>km("thead",{className:a(e.className,Nm),children:e.children});import{jsx as wm}from"react/jsx-runtime";var vm="k-table-tbody",J=e=>wm("tbody",{className:a(e.className,vm),children:e.children});import{jsx as RC}from"react/jsx-runtime";import{jsx as Lm}from"react/jsx-runtime";var Il="k-table-row",Cm=[i.hover,i.focus,i.selected,i.disabled,i.highlighted],w=e=>{let{hover:o,focus:t,selected:r,highlighted:l,disabled:n,alt:c,...m}=e;return Lm("tr",{...m,className:a(e.className,Il,{"k-table-alt-row":c},S(Il,{hover:o,focus:t,disabled:n,selected:r,highlighted:l})),children:e.children})};w.states=Cm;w.className=Il;import{jsx as ym}from"react/jsx-runtime";var Rl="k-table-row",Mm=[i.hover,i.focus,i.selected,i.disabled],Lr=e=>{let{hover:o,focus:t,selected:r,disabled:l,alt:n,...c}=e;return ym("li",{...c,className:a(e.className,Rl,{"k-table-alt-row":n},S(Rl,{hover:o,focus:t,disabled:l,selected:r})),children:e.children})};Lr.states=Mm;Lr.className=Rl;import{jsx as Sm}from"react/jsx-runtime";var zn="k-table-th",Uo=e=>{let{text:o,colspan:t,rowspan:r,...l}=e,n=o||e.children;return Sm("th",{colSpan:t,rowSpan:r,...l,className:a(e.className,zn),children:n})};Uo.className=zn;Uo.moduleName=Re;Uo.folderName=Oe;import{jsx as VC}from"react/jsx-runtime";import{jsx as Im}from"react/jsx-runtime";var El="k-table-td",Am=[i.focus,i.selected,i.highlighted],d=e=>{let{focus:o,selected:t,highlighted:r,text:l,colspan:n,rowspan:c,...m}=e,f=l||e.children;return Im("td",{colSpan:n,rowSpan:c,...m,className:a(e.className,El,S(El,{focus:o,selected:t,highlighted:r})),children:f})};d.states=Am;d.className=El;import{jsx as ZC}from"react/jsx-runtime";import{jsx as tL}from"react/jsx-runtime";import{jsx as iL}from"react/jsx-runtime";import{jsx as cL}from"react/jsx-runtime";import{jsx as bL}from"react/jsx-runtime";import{jsx as kL,jsxs as vL}from"react/jsx-runtime";import{jsx as ML,jsxs as yL}from"react/jsx-runtime";import{jsx as RL,jsxs as EL}from"react/jsx-runtime";import{Fragment as KL,jsx as PL,jsxs as _L}from"react/jsx-runtime";import{jsx as Gm}from"react/jsx-runtime";var $n="k-grid-header-table",q=e=>Gm(He,{...e,className:a(e.className,$n),children:e.children});q.className=$n;q.moduleName=Z;q.folderName=oe;import{jsx as rt,jsxs as Gl}from"react/jsx-runtime";var Ol="k-header",Om=[i.hover,i.focus,i.active],Vn={sortIcon:"sort-asc-small"},I=e=>{let{menu:o,sortable:t,filterable:r,sticky:l,resizable:n,columnTitle:c,hover:m,focus:f,active:N,sortIcon:x=Vn.sortIcon,sortOrder:k,accessibleLabel:u,...v}=e;return Gl(Uo,{...v,className:a(e.className,Ol,{"k-filterable":o||r,"k-sorted":t,"k-grid-header-sticky":l,"k-touch-action-none":n},S(Ol,{hover:m,focus:f,active:N})),children:[c&&Gl("span",{className:"k-cell-inner",children:[Gl("span",{className:"k-link",children:[rt("span",{className:"k-column-title",children:c}),t&&rt("span",{className:"k-sort-icon",children:rt(b,{icon:x})}),k&&rt("span",{className:"k-sort-order",children:k})]}),o&&rt("a",{className:a("k-grid-header-menu",{"k-active":N,"k-grid-filter-menu":o==="filter","k-grid-column-menu":o==="column"}),children:rt(b,{icon:o==="filter"?"filter":"more-vertical"})})]}),!c&&u&&rt("span",{className:"k-sr-only",children:u}),e.children,n&&rt("span",{className:"k-column-resizer k-touch-action-none"})]})};I.states=Om;I.className=Ol;I.defaultOptions=Vn;I.moduleName=Z;I.folderName=oe;import{jsx as Hm}from"react/jsx-runtime";var Wn="k-grid-container",$=e=>Hm("div",{...e,className:a(e.className,Wn),children:e.children});$.className=Wn;$.moduleName=Z;$.folderName=oe;import{jsx as Pm}from"react/jsx-runtime";var Xn="k-grid-content",V=e=>Pm("div",{...e,className:a(e.className,Xn),children:e.children});V.className=Xn;V.moduleName=Z;V.folderName=oe;import{jsx as _m}from"react/jsx-runtime";var Jn="k-grid-table",W=e=>_m(He,{...e,className:a(e.className,Jn),children:e.children});W.className=Jn;W.moduleName=Z;W.folderName=oe;import{jsx as Km}from"react/jsx-runtime";var qn="k-grid-footer",Mr=e=>Km("div",{...e,className:a(e.className,qn),children:e.children});Mr.className=qn;Mr.moduleName=Z;Mr.folderName=oe;import{jsx as Dm}from"react/jsx-runtime";var Yn="k-grid-footer-table",yr=e=>Dm(He,{...e,className:a(e.className,Yn),children:e.children});yr.className=Yn;yr.moduleName=Z;yr.folderName=oe;var Xa="input",Sr=Xa;import{jsx as Fm}from"react/jsx-runtime";var Ar="k-input",Bm=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],zm={size:[s.undefined,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Um={},we=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:c,readonly:m,size:f,rounded:N,fillMode:x,...k}=e;return Fm("span",{...k,className:a(e.className,Ar,y(Ar,{size:f,rounded:N,fillMode:x}),S(Ar,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:c,readonly:m}))})};we.states=Bm;we.options=zm;we.className=Ar;we.defaultOptions=Um;we.moduleName=Xa;we.folderName=Sr;import{jsx as Xm}from"react/jsx-runtime";var Ir="k-picker",$m=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Vm={size:[s.undefined,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Wm={},Go=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:c,readonly:m,size:f,rounded:N,fillMode:x,...k}=e;return Xm("span",{...k,className:a(e.className,Ir,y(Ir,{size:f,rounded:N,fillMode:x}),S(Ir,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:c,readonly:m})),children:e.children})};Go.states=$m;Go.options=Vm;Go.className=Ir;Go.defaultOptions=Wm;Go.moduleName=Xa;Go.folderName=Sr;import{Fragment as Ym,jsx as Hl}from"react/jsx-runtime";var Qn="k-clear-value",Jm=[i.disabled,i.loading,i.readonly],qm={},ao=e=>{let{disabled:o,loading:t,readonly:r,value:l}=e;return o||r||t||!l?Hl(Ym,{}):Hl("span",{className:a(e.className,Qn),children:Hl(b,{icon:"x"})})};ao.states=Jm;ao.options=qm;ao.className=Qn;import{jsx as jm}from"react/jsx-runtime";var Pl="k-input-inner",Qm=[],Zm={},Rr={type:"text",autocomplete:"off",value:"",placeholder:""},ro=e=>{let{value:o=Rr.value,type:t=Rr.type,placeholder:r=Rr.placeholder,autocomplete:l=Rr.autocomplete,disabled:n,readOnly:c,...m}=e;return jm("input",{...m,type:t,className:a(e.className,Pl,y(Pl,e)),placeholder:r,autoComplete:l,defaultValue:o,disabled:n||void 0,readOnly:c||void 0})};ro.states=Qm;ro.options=Zm;ro.className=Pl;import{jsx as Zn,jsxs as tu}from"react/jsx-runtime";var _l="k-input-inner",eu=[],ou={},Ct=e=>{let{value:o,placeholder:t,showValue:r,valueIcon:l,valueIconName:n,...c}=e;return tu("span",{...c,className:a(e.className,_l,y(_l,e)),children:[l,!l&&n&&Zn(b,{className:"k-input-value-icon",icon:n}),r&&!o&&t,r&&o&&Zn("span",{className:"k-input-value-text",children:o})]})};Ct.states=eu;Ct.options=ou;Ct.className=_l;import{jsx as lu}from"react/jsx-runtime";var Kl="k-input-inner",au=[],ru={},jn={value:"",placeholder:""},Dl=e=>{let{value:o=jn.value,placeholder:t=jn.placeholder,rows:r,disabled:l,...n}=e;return lu("textarea",{...n,className:a(e.className,Kl,y(Kl,e)),placeholder:t,rows:r,defaultValue:o,disabled:l||void 0})};Dl.states=au;Dl.options=ru;Dl.className=Kl;import{Fragment as nu,jsx as es}from"react/jsx-runtime";var os="k-input-loading-icon",iu=[i.disabled,i.loading],Qe=e=>{let{disabled:o,loading:t}=e;return o||!t?es(nu,{}):es("span",{className:a(e.className,os,"k-icon k-i-loading")})};Qe.states=iu;Qe.className=os;import{Fragment as cu,jsx as ts}from"react/jsx-runtime";var as="k-input-validation-icon",su=[i.valid,i.invalid,i.disabled,i.loading],du={},Fe=e=>{let{valid:o,invalid:t,disabled:r,loading:l}=e,n=t?"warning-circle":"check-circle";return r||l||!!!(o||t)?ts(cu,{}):ts(b,{className:a(as),icon:n})};Fe.states=su;Fe.options=du;Fe.className=as;import{Fragment as uu,jsx as rs}from"react/jsx-runtime";var pu="k-input-prefix",mu={direction:"horizontal"},fo=e=>{let{direction:o=mu.direction,...t}=e;return e.children?rs("span",{...t,className:a(pu,e.className,{[`k-input-prefix-${o}`]:o}),children:e.children}):rs(uu,{})};import{Fragment as Tu,jsx as ls}from"react/jsx-runtime";var bu="k-input-suffix",fu={direction:"horizontal"},To=e=>{let{direction:o=fu.direction,...t}=e;return e.children?ls("span",{...t,className:a(bu,e.className,{[`k-input-suffix-${o}`]:o}),children:e.children}):ls(Tu,{})};import{jsx as Gy}from"react/jsx-runtime";import{jsx as hu}from"react/jsx-runtime";var gu="k-input-suffix-text",Bl=e=>{let{children:o,...t}=e;return hu("span",{...t,className:a(gu,e.className),children:o})};import{jsx as Nu}from"react/jsx-runtime";var is="k-input-separator",xu={direction:"vertical"},go=e=>{let{direction:o=xu.direction,...t}=e;return Nu("span",{...t,className:a(is,e.className,{[`${is}-${o}`]:o})})};import{Fragment as ns,jsx as Oo,jsxs as zl}from"react/jsx-runtime";var ku=we.states,vu=we.defaultOptions,wu=we.options,Cu=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Lu=[],Jt=e=>{let{modifiers:o,valid:t,invalid:r,loading:l,disabled:n,readonly:c,...m}=e,f=o?.prefix,N=o?.suffix,x=o?.["clear-button"],k=o?.["validation-icon"],u=o?.separators;return zl(we,{...m,valid:t,invalid:r,loading:l,disabled:n,readonly:c,style:{width:300},children:[f&&zl(ns,{children:[Oo(fo,{children:Oo(b,{icon:"lock"})}),u&&Oo(go,{})]}),Oo(ro,{placeholder:"Placeholder",value:"Value"}),k&&Oo(Fe,{valid:t,invalid:r,loading:l,disabled:n}),Oo(Qe,{loading:l,disabled:n}),x&&Oo(ao,{loading:l,disabled:n,readonly:c,value:"Value"}),N&&zl(ns,{children:[u&&Oo(go,{}),Oo(To,{children:Oo(wt,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};Jt.options=wu;Jt.states=ku;Jt.variants=Lu;Jt.defaultOptions=vu;Jt.modifiers=Cu;Jt.className=we.className;var Ul="popup",ss=Ul;import{jsx as ds}from"react/jsx-runtime";var cs="k-animation-container",Mu=[],yu={},Fl={positionMode:"absolute",shown:!0},Ho=e=>{let{positionMode:o=Fl.positionMode,shown:t=Fl.shown,animationStyle:r,offset:l,...n}=e;return ds("div",{...n,style:{...l,...e.style},className:a(e.className,cs,{"k-animation-container-shown":t,"k-animation-container-fixed":o==="fixed"}),children:ds("div",{className:"k-child-animation-container",style:r,children:e.children})})};Ho.states=Mu;Ho.options=yu;Ho.className=cs;Ho.defaultOptions=Fl;Ho.moduleName=Ul;Ho.folderName=ss;var $l="popup",ps=$l;import{jsx as ms}from"react/jsx-runtime";var us="k-popup",Su=[],Au={},bs={positionMode:"absolute"},ne=e=>{let{offset:o,positionMode:t=bs.positionMode,animationStyle:r,containerClassName:l,containerRole:n,containerAriaLabel:c,...m}=e;return ms(Ho,{positionMode:t,offset:o,animationStyle:r,className:l,role:n,"aria-label":c,children:ms("div",{...m,className:a(e.className,us),children:e.children})})};ne.states=Su;ne.options=Au;ne.className=us;ne.defaultOptions=bs;ne.moduleName=$l;ne.folderName=ps;ne.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var Vl="action-buttons",fs=Vl;import{jsx as Eu}from"react/jsx-runtime";var Er="k-actions",Iu=[],Ru={},Wl={alignment:"start",orientation:"horizontal"},ho=e=>{let{alignment:o=Wl.alignment,orientation:t=Wl.orientation,...r}=e;return Eu("div",{...r,className:a(Er,{[`${Er}-${o}`]:o,[`${Er}-${t}`]:t},e.className),children:e.children})};ho.states=Iu;ho.options=Ru;ho.className=Er;ho.defaultOptions=Wl;ho.moduleName=Vl;ho.folderName=fs;import{jsx as Ou}from"react/jsx-runtime";var Gu="k-actionsheet-footer",Ts={alignment:"stretched",orientation:"horizontal"},lt=e=>{let{alignment:o=Ts.alignment,orientation:t=Ts.orientation,template:r,as:l=r?"div":ho,...n}=e;return Ou(l,{...n,...!r&&{alignment:o,orientation:t},className:a(e.className,Gu),children:e.children})};var Xl="searchbox",gs=Xl;import{jsx as Ja,jsxs as _u}from"react/jsx-runtime";var hs="k-searchbox",Hu=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],Pu={size:[s.undefined,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Jl={showIcon:!0,icon:"search"},lo=e=>{let{value:o,placeholder:t,size:r,rounded:l,fillMode:n,hover:c,focus:m,valid:f,invalid:N,required:x,loading:k,disabled:u,showIcon:v=Jl.showIcon,icon:L=Jl.icon,"aria-label":R,...G}=e;return _u(we,{...G,size:r,rounded:l,fillMode:n,hover:c,focus:m,valid:f,invalid:N,required:x,loading:k,disabled:u,className:a(e.className,hs),children:[v&&Ja(b,{className:"k-input-icon",icon:L}),Ja(ro,{placeholder:t,value:o,"aria-label":R}),Ja(Qe,{...e}),Ja(Fe,{...e}),Ja(ao,{...e})]})};lo.states=Hu;lo.options=Pu;lo.className=hs;lo.defaultOptions=Jl;lo.moduleName=Xl;lo.folderName=gs;import{jsx as ZS}from"react/jsx-runtime";var ql="textbox",xs=ql;import{Fragment as Ns,jsx as it,jsxs as Yl}from"react/jsx-runtime";var ks="k-textbox",Ku=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Du={size:[s.undefined,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Gr={showClearButton:!0,showValidationIcon:!0,separators:!0},ue=e=>{let{size:o,rounded:t,fillMode:r,separators:l=Gr.separators,showClearButton:n=Gr.showClearButton,showValidationIcon:c=Gr.showValidationIcon,prefix:m,suffix:f,type:N,value:x,placeholder:k,hover:u,focus:v,valid:L,invalid:R,required:G,loading:O,disabled:z,readonly:he,id:pe,"aria-label":De,"aria-describedby":Be,...ze}=e;return Yl(we,{...ze,size:o,rounded:t,fillMode:r,hover:u,focus:v,valid:L,invalid:R,required:G,loading:O,disabled:z,readonly:he,className:a(e.className,ks),children:[m&&Yl(Ns,{children:[it(fo,{children:m}),l&&it(go,{})]}),it(ro,{id:pe,placeholder:k,value:x,type:N,disabled:z,"aria-label":De,"aria-describedby":Be,"aria-invalid":R?"true":void 0}),c&&it(Fe,{valid:L,invalid:R,loading:O,disabled:z}),it(Qe,{loading:O,disabled:z}),n&&it(ao,{loading:O,disabled:z,readonly:he,value:x}),f&&Yl(Ns,{children:[l&&it(go,{}),it(To,{children:f})]})]})};ue.states=Ku;ue.options=Du;ue.className=ks;ue.defaultOptions=Gr;ue.moduleName=ql;ue.folderName=xs;ue.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 qa=ue;import{jsx as Bu}from"react/jsx-runtime";var vs=e=>Bu(qa,{...e});import{Fragment as TA,jsx as fA}from"react/jsx-runtime";import{Fragment as vA,jsx as kA}from"react/jsx-runtime";import{jsx as MA}from"react/jsx-runtime";import{jsx as Ql}from"react/jsx-runtime";var zu=ue.states,Uu=ue.defaultOptions,Fu=ue.options,$u=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Vu=[],qt=e=>{let{modifiers:o,...t}=e,r={};return Object.keys(o||{}).forEach(l=>{switch(l){case"prefix":r.prefix=o?.[l]?Ql(b,{icon:"lock"}):void 0;break;case"suffix":r.suffix=o?.[l]?Ql(wt,{size:t.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":r.showClearButton=o?.[l];break;default:break}}),Ql(vs,{value:"Value",style:{width:300},...t,...r})};qt.options=Fu;qt.states=zu;qt.variants=Vu;qt.defaultOptions=Uu;qt.modifiers=$u;qt.className=ue.className;import{jsx as nt,jsxs as Zl}from"react/jsx-runtime";var ws="k-actionsheet-titlebar",Wu={},$e=e=>