@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 194 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 M=(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"}),y=(e,o)=>{let{valid:t,invalid:r,hover:l,focus:n,checked:d,active:m,selected:f,disabled:N,indeterminate:x,loading:k,empty:u,readonly:v,highlighted:L,...I}=o;return a({"k-valid":t,"k-invalid":r,"k-hover":l,"k-focus":n,"k-checked":d,"k-active":m,"k-selected":f,"k-disabled":N,"k-indeterminate":x&&!d,"k-loading":k,"k-empty":u,"k-readonly":v,"k-highlighted":L},Object.keys(I).reduce((E,G)=>(G.startsWith("k-")?E[G]=I[G]:E[`k-${G}`]=I[G],E),{}))};function gn(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"},w={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 Fc,jsx as hn}from"react/jsx-runtime";var ul="k-font-icon",Bc=[],zc={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info]},Uc={},_a=e=>{let{size:o,themeColor:t,icon:r,rotate:l,flip:n,...d}=e;return r?hn("span",{...d,className:a(e.className,ul,M(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"}):hn(Fc,{})};_a.states=Bc;_a.options=zc;_a.className=ul;_a.defaultOptions=Uc;var xn=_a;import{Fragment as Wc,jsx as Tr}from"react/jsx-runtime";var bl="k-svg-icon",$c=[],Vc={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.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:d=fl.variant,icon:m,...f}=e;if(!m)return Tr(Wc,{});if(m==="none")return Tr("span",{...f,className:a(e.className,bl,M("k-icon",{size:o}),"k-none"),"aria-hidden":"true"});let N=typeof m=="object"&&m.name&&m.name,x=typeof m=="object"?d&&m.variants?.[d]||m.variants?.outline||m.content:void 0;return Tr("span",{...f,className:a(e.className,bl,M("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=$c;Ka.options=Vc;Ka.className=bl;Ka.defaultOptions=fl;var Tl=Ka;import*as gl from"@progress/kendo-svg-icons";var Nn="icon",kn="icons";import{useContext as Jc}from"react";import{createContext as Xc}from"react";var vn=Xc({iconsType:"svg"});import{Fragment as wn,jsx as Da}from"react/jsx-runtime";var gr="k-icon",qc=e=>e.replace(/([-_][a-z0-9])/gi,o=>o.toUpperCase().replace("-","").replace("_","")),Yc=[],Qc={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info],variant:[Eo.outline,Eo.solid,Eo.duotone]},hr={viewBox:"0 0 24 24",type:"svg",variant:Eo.outline},b=e=>{let{iconsType:o}=Jc(vn),{size:t,themeColor:r,icon:l,type:n=o||hr.type,rotate:d,flip:m,viewBox:f=hr.viewBox,variant:N=hr.variant,...x}=e;if(!l)return Da(wn,{});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:qc(`${l}-icon`);return gl[u]?Da(Tl,{...x,className:a(e.className,gr),icon:gl[u],size:t,themeColor:r,rotate:d,flip:m,viewBox:f,variant:N}):Da(wn,{})}return Da(xn,{...x,className:a(e.className,gr),icon:l,size:t,themeColor:r,rotate:d,flip:m})};b.states=Yc;b.options=Qc;b.defaultOptions=hr;b.className=gr;b.moduleName=Nn;b.folderName=kn;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 Zc="k-chip-action";var ae=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,Zc,`k-chip-${o}-action`),children:r})};var hl="avatar",Cn=hl;import{jsx as Ln}from"react/jsx-runtime";var Ba="k-avatar";var jc=[i.hover,i.focus,i.active,i.selected,i.disabled],ep={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:[w.undefined,w.base,w.primary,w.secondary,w.tertiary]},xl={type:"text",border:!1},Ue=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,type:n=xl.type,border:d=xl.border,...m}=e;return Ln("div",{...m,className:a(e.className,Ba,M(Ba,{size:o,rounded:t,fillMode:r,themeColor:l}),{[`${Ba}-bordered`]:d}),children:Ln("span",{className:`${Ba}-${n}`,children:e.children})})};Ue.states=jc;Ue.options=ep;Ue.className=Ba;Ue.defaultOptions=xl;Ue.moduleName=hl;Ue.folderName=Cn;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 op}from"react/jsx-runtime";var Mn=e=>op(vt,{type:"icon",...e});import{jsx as tp}from"react/jsx-runtime";var yn=e=>tp(vt,{type:"text",...e});import{jsx as ap}from"react/jsx-runtime";var Sn=e=>ap(vt,{type:"image",...e});import{jsx as QN}from"react/jsx-runtime";import{jsx as za}from"react/jsx-runtime";var rp=Ue.options,lp=Ue.states,ip={...Ue.defaultOptions,variant:"image"},np=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],sp=[],Bt=e=>{let{variant:o,...t}=e;switch(o){case"icon":return za(Mn,{...t,children:za(b,{icon:"star"})});case"text":return za(yn,{...t,children:"JO"});default:return za(Sn,{...t,children:za("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};Bt.options=rp;Bt.states=lp;Bt.variants=np;Bt.defaultOptions=ip;Bt.modifiers=sp;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 pp}from"react/jsx-runtime";var vr="k-chip",dp=[i.hover,i.focus,i.active,i.selected,i.disabled],cp={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:[w.undefined,w.base,w.success,w.warning,w.error,w.info]},An={avatarImage:"/packages/html/assets/avatar.jpg"},le=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,text:n,icon:d,actions:m,showAvatar:f,avatarImage:N=An.avatarImage,hover:x,focus:k,active:u,selected:v,disabled:L,...I}=e;return pp("div",{...I,className:a(e.className,vr,M(vr,{size:o,rounded:t,fillMode:r,themeColor:l}),y(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:[d&&zt(b,{className:"k-chip-icon",icon:d,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})]})};le.states=dp;le.options=cp;le.className=vr;le.defaultOptions=An;le.moduleName=Ua;le.folderName=Nr;le.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 uo=le;import{jsx as fp}from"react/jsx-runtime";var Nl="k-chip-list",mp=[],up={size:[s.undefined,s.small,s.medium,s.large]},bp={},ie=e=>{let{size:o,multiselectable:t,ariaLabel:r,...l}=e;return fp("div",{...l,className:a(e.className,Nl,M(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=mp;ie.options=up;ie.className=Nl;ie.defaultOptions=bp;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 Tp}from"react/jsx-runtime";var wr=e=>Tp(uo,{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 vp}from"react/jsx-runtime";var gp={...uo.options,...ie.options},hp=[],xp=ie.states,Np={...uo.defaultOptions,...ie.defaultOptions},kp=[{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,d=o?.avatar,m=d?kr:void 0;return vp(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(ae,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"}),Ut(wr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:n?Ut(ae,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"}),Ut(wr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:n?Ut(ae,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"})]})};Ft.options=gp;Ft.states=xp;Ft.variants=hp;Ft.defaultOptions=Np;Ft.modifiers=kp;Ft.className=ie.className;import{jsx as kl}from"react/jsx-runtime";var wp=le.states,Cp=le.defaultOptions,Lp=le.options,Mp=[],yp=[{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(ae,{type:"more"}):void 0;break;case"remove-icon":r.actions||(r.actions=[]),r.actions[1]=o?.[l]?kl(ae,{type:"remove"}):void 0;break;default:break}}),kl(le,{...t,...r,children:"Chip component"})};$t.options=Lp;$t.states=wp;$t.variants=Mp;$t.defaultOptions=Cp;$t.modifiers=yp;$t.className=le.className;var Z="grid",oe=Z;import{jsx as Rp,jsxs as Ep}from"react/jsx-runtime";var Cr="k-grid",Sp=[],Ap={size:[s.undefined,s.small,s.medium,s.large]},Ip=[],In={pagerPosition:"bottom"},H=e=>{let{size:o,pagerPosition:t=In.pagerPosition,toolbar:r,pager:l,groupingHeader:n,gridSelectionAggregates:d,_renderAriaRoot:m,resizable:f,ariaColCount:N,ariaRowCount:x,ariaRootId:k,ariaRole:u="grid",...v}=e;return Ep("div",{...v,className:a(e.className,Cr,{[`${Cr}-resizable`]:f},M(Cr,{size:o})),children:[r,t==="top"&&l,n,e.children&&m?Rp("div",{className:"k-grid-aria-root",role:u,id:k,"aria-colcount":N,"aria-rowcount":x,children:e.children}):e.children,d,t==="bottom"&&l]})};H.states=Sp;H.options=Ap;H.variants=Ip;H.className=Cr;H.defaultOptions=In;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 Gp}from"react/jsx-runtime";var Rn="k-grid-header",X=e=>{let{draggable:o,...t}=e;return Gp("div",{...t,className:a(e.className,Rn,{"k-grid-draggable-header":o}),children:e.children})};X.className=Rn;X.moduleName=Z;X.folderName=oe;import{jsx as En,jsxs as Op}from"react/jsx-runtime";var Gn="k-grouping-header",Se=e=>{let{dropHint:o,dropClue:t,...r}=e;return Op("div",{...r,className:a(e.className,Gn),children:[t&&En("div",{className:"k-grouping-dropclue"}),e.children,En("div",{className:"k-grouping-drop-container",children:o})]})};Se.className=Gn;Se.moduleName=Z;Se.folderName=oe;import{jsx as Hp}from"react/jsx-runtime";var On="k-grid-pinned-container",Fa=e=>{let{position:o,...t}=e;return Hp("div",{...t,className:a(e.className,On,{"k-pos-bottom":o==="bottom"}),children:e.children})};Fa.className=On;Fa.moduleName=Z;Fa.folderName=oe;import{jsx as Pp}from"react/jsx-runtime";var Hn="k-grid-sticky-container",$a=e=>{let{position:o,...t}=e;return Pp("div",{...t,className:a(e.className,Hn,{"k-pos-bottom":o==="bottom"}),children:e.children})};$a.className=Hn;$a.moduleName=Z;$a.folderName=oe;var Ae="table",Ge=Ae;import{jsx as Bp}from"react/jsx-runtime";var Pn="k-data-table",_p=[],Kp={size:[s.undefined,s.small,s.medium,s.large]},Dp={},Bo=e=>{let{size:o,...t}=e;return Bp("div",{...t,className:a(e.className,Pn,M("k-table",{size:o})),children:e.children})};Bo.states=_p;Bo.options=Kp;Bo.className=Pn;Bo.defaultOptions=Dp;Bo.moduleName=Ae;Bo.folderName=Ge;import{jsx as $p}from"react/jsx-runtime";var vl="k-table-header-wrap",zp=[i.hover,i.focus,i.disabled],Up={},Fp={},et=e=>{let{children:o,hover:t,focus:r,disabled:l,...n}=e;return $p("div",{...n,className:a(e.className,vl,y(vl,{hover:t,focus:r,disabled:l})),children:o})};et.states=zp;et.options=Up;et.className=vl;et.defaultOptions=Fp;et.moduleName=Ae;et.folderName=Ge;import{jsx as Jp}from"react/jsx-runtime";var wl="k-table",Vp=[],Wp={size:[s.undefined,s.small,s.medium,s.large]},Xp={},Oe=e=>{let{size:o,...t}=e;return Jp("table",{...t,className:a(e.className,wl,M(wl,{size:o})),children:e.children})};Oe.states=Vp;Oe.options=Wp;Oe.className=wl;Oe.defaultOptions=Xp;Oe.moduleName=Ae;Oe.folderName=Ge;import{jsx as Cl}from"react/jsx-runtime";var Ll="k-table-header",qp=[i.hover,i.focus,i.disabled],Yp={},Qp={},zo=e=>{let{children:o,hover:t,focus:r,disabled:l,...n}=e;return Cl("div",{...n,className:a(e.className,Ll,y(Ll,{hover:t,focus:r,disabled:l})),children:Cl(et,{children:Cl(Oe,{children:o})})})};zo.states=qp;zo.options=Yp;zo.className=Ll;zo.defaultOptions=Qp;zo.moduleName=Ae;zo.folderName=Ge;import{jsx as om}from"react/jsx-runtime";var _n="k-table-scroller",Zp=[],jp={},em={},Vt=e=>{let{children:o,...t}=e;return om("div",{...t,className:a(e.className,_n),children:o})};Vt.states=Zp;Vt.options=jp;Vt.className=_n;Vt.defaultOptions=em;Vt.moduleName=Ae;Vt.folderName=Ge;import{jsx as Dw}from"react/jsx-runtime";import{jsx as lm}from"react/jsx-runtime";var Kn="k-table-footer",tm=[],am={},rm={},ot=e=>{let{children:o,...t}=e;return lm("div",{...t,className:a(e.className,Kn),children:o})};ot.states=tm;ot.options=am;ot.className=Kn;ot.defaultOptions=rm;ot.moduleName=Ae;ot.folderName=Ge;import{jsx as dm}from"react/jsx-runtime";var Ml="k-table-list",im=[],nm={size:[s.undefined,s.small,s.medium,s.large]},sm={},tt=e=>{let{size:o,virtualization:t,...r}=e;return dm("ul",{...r,className:a(e.className,"k-table",Ml,M(Ml,{size:o}),{"k-virtual-table":t}),children:e.children})};tt.states=im;tt.options=nm;tt.className=Ml;tt.defaultOptions=sm;tt.moduleName=Ae;tt.folderName=Ge;import{jsx as pm}from"react/jsx-runtime";var cm="k-table-thead",F=e=>pm("thead",{className:a(e.className,cm),children:e.children});import{jsx as um}from"react/jsx-runtime";var mm="k-table-tbody",J=e=>um("tbody",{className:a(e.className,mm),children:e.children});import{jsx as aC}from"react/jsx-runtime";import{jsx as fm}from"react/jsx-runtime";var yl="k-table-row",bm=[i.hover,i.focus,i.selected,i.disabled,i.highlighted],C=e=>{let{hover:o,focus:t,selected:r,highlighted:l,disabled:n,alt:d,...m}=e;return fm("tr",{...m,className:a(e.className,yl,{"k-table-alt-row":d},y(yl,{hover:o,focus:t,disabled:n,selected:r,highlighted:l})),children:e.children})};C.states=bm;C.className=yl;import{jsx as gm}from"react/jsx-runtime";var Sl="k-table-row",Tm=[i.hover,i.focus,i.selected,i.disabled],Lr=e=>{let{hover:o,focus:t,selected:r,disabled:l,alt:n,...d}=e;return gm("li",{...d,className:a(e.className,Sl,{"k-table-alt-row":n},y(Sl,{hover:o,focus:t,disabled:l,selected:r})),children:e.children})};Lr.states=Tm;Lr.className=Sl;import{jsx as hm}from"react/jsx-runtime";var Dn="k-table-th",Uo=e=>{let{text:o,colspan:t,rowspan:r,...l}=e,n=o||e.children;return hm("th",{colSpan:t,rowSpan:r,...l,className:a(e.className,Dn),children:n})};Uo.className=Dn;Uo.moduleName=Ae;Uo.folderName=Ge;import{jsx as gC}from"react/jsx-runtime";import{jsx as Nm}from"react/jsx-runtime";var Al="k-table-td",xm=[i.focus,i.selected,i.highlighted],c=e=>{let{focus:o,selected:t,highlighted:r,text:l,colspan:n,rowspan:d,...m}=e,f=l||e.children;return Nm("td",{colSpan:n,rowSpan:d,...m,className:a(e.className,Al,y(Al,{focus:o,selected:t,highlighted:r})),children:f})};c.states=xm;c.className=Al;import{jsx as CC}from"react/jsx-runtime";import{jsx as SC}from"react/jsx-runtime";import{jsx as EC}from"react/jsx-runtime";import{jsx as PC}from"react/jsx-runtime";import{jsx as BC}from"react/jsx-runtime";import{jsx as XC,jsxs as JC}from"react/jsx-runtime";import{jsx as ZC,jsxs as jC}from"react/jsx-runtime";import{jsx as aL,jsxs as rL}from"react/jsx-runtime";import{Fragment as cL,jsx as sL,jsxs as dL}from"react/jsx-runtime";import{jsx as wm}from"react/jsx-runtime";var Un="k-grid-header-table",q=e=>wm(Oe,{...e,className:a(e.className,Un),children:e.children});q.className=Un;q.moduleName=Z;q.folderName=oe;import{jsx as at,jsxs as Il}from"react/jsx-runtime";var Rl="k-header",Cm=[i.hover,i.focus,i.active],Fn={sortIcon:"sort-asc-small"},A=e=>{let{menu:o,sortable:t,filterable:r,sticky:l,resizable:n,columnTitle:d,hover:m,focus:f,active:N,sortIcon:x=Fn.sortIcon,sortOrder:k,accessibleLabel:u,...v}=e;return Il(Uo,{...v,className:a(e.className,Rl,{"k-filterable":o||r,"k-sorted":t,"k-grid-header-sticky":l,"k-touch-action-none":n},y(Rl,{hover:m,focus:f,active:N})),children:[d&&Il("span",{className:"k-cell-inner",children:[Il("span",{className:"k-link",children:[at("span",{className:"k-column-title",children:d}),t&&at("span",{className:"k-sort-icon",children:at(b,{icon:x})}),k&&at("span",{className:"k-sort-order",children:k})]}),o&&at("a",{className:a("k-grid-header-menu",{"k-active":N,"k-grid-filter-menu":o==="filter","k-grid-column-menu":o==="column"}),children:at(b,{icon:o==="filter"?"filter":"more-vertical"})})]}),!d&&u&&at("span",{className:"k-sr-only",children:u}),e.children,n&&at("span",{className:"k-column-resizer k-touch-action-none"})]})};A.states=Cm;A.className=Rl;A.defaultOptions=Fn;A.moduleName=Z;A.folderName=oe;import{jsx as Lm}from"react/jsx-runtime";var $n="k-grid-container",$=e=>Lm("div",{...e,className:a(e.className,$n),children:e.children});$.className=$n;$.moduleName=Z;$.folderName=oe;import{jsx as Mm}from"react/jsx-runtime";var Vn="k-grid-content",V=e=>Mm("div",{...e,className:a(e.className,Vn),children:e.children});V.className=Vn;V.moduleName=Z;V.folderName=oe;import{jsx as ym}from"react/jsx-runtime";var Wn="k-grid-table",W=e=>ym(Oe,{...e,className:a(e.className,Wn),children:e.children});W.className=Wn;W.moduleName=Z;W.folderName=oe;import{jsx as Sm}from"react/jsx-runtime";var Xn="k-grid-footer",Mr=e=>Sm("div",{...e,className:a(e.className,Xn),children:e.children});Mr.className=Xn;Mr.moduleName=Z;Mr.folderName=oe;import{jsx as Am}from"react/jsx-runtime";var Jn="k-grid-footer-table",yr=e=>Am(Oe,{...e,className:a(e.className,Jn),children:e.children});yr.className=Jn;yr.moduleName=Z;yr.folderName=oe;var El="button",qn=El;import{Fragment as Yn,jsx as Wt,jsxs as Qn}from"react/jsx-runtime";var Va="k-button",Im=["icon-button"],Rm=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Em={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:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info,w.inverse]},Gl={showArrow:!1,arrowIconName:"chevron-down"},p=e=>{let{as:o="button",size:t,rounded:r,fillMode:l,themeColor:n,showArrow:d=Gl.showArrow,arrowIconName:m=Gl.arrowIconName,variant:f,hover:N,focus:x,active:k,selected:u,disabled:v,togglable:L,ariaDisabled:I,icon:E,iconSize:G,text:z,iconClassName:he,className:pe,...De}=e,Be=E!=null,ze=e.children!==void 0;return Qn(o,{className:a(pe,Va,gn(Va,f),M(Va,{size:t,rounded:r,fillMode:l,themeColor:n}),y(Va,{hover:N,focus:x,active:k,disabled:v||I,selected:u}),{"k-icon-button":!z&&!ze&&Be}),"aria-pressed":L?u?"true":"false":void 0,...De,"aria-disabled":I?"true":void 0,disabled:v||void 0,children:[typeof E=="string"&&E&&Wt(b,{className:a(he,"k-button-icon"),icon:E,size:G}),E&&typeof E!="string"&&Wt(Yn,{children:E}),z?Qn(Yn,{children:[z&&Wt("span",{className:"k-button-text",children:z}),e.children]}):e.children&&Wt("span",{className:"k-button-text",children:e.children}),d&&Wt("span",{className:"k-menu-button-arrow k-button-arrow",children:Wt(b,{icon:m})})]})};p.states=Rm;p.options=Em;p.variants=Im;p.className=Va;p.defaultOptions=Gl;p.moduleName=El;p.folderName=qn;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 Gm}from"react/jsx-runtime";var rt=e=>Gm(p,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Om}from"react/jsx-runtime";var Wa=e=>Om(p,{icon:"folder",children:"Button",...e});import{jsx as Hm}from"react/jsx-runtime";var wt=e=>Hm(p,{children:"Button",...e});import{jsx as Ol}from"react/jsx-runtime";var Pm=p.options,_m=p.states,Km={...p.defaultOptions,variant:"text"},Dm=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Bm=[],Xt=e=>{let{variant:o,...t}=e;switch(o){case"icon-only":return Ol(rt,{...t,icon:"star"});case"icon-and-text":return Ol(Wa,{...t,icon:"star",children:"Button"});default:return Ol(wt,{...t,children:"Button"})}};Xt.options=Pm;Xt.states=_m;Xt.variants=Dm;Xt.defaultOptions=Km;Xt.modifiers=Bm;Xt.className=p.className;var Xa="input",Sr=Xa;import{jsx as $m}from"react/jsx-runtime";var Ar="k-input",zm=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Um={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]},Fm={},we=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m,size:f,rounded:N,fillMode:x,...k}=e;return $m("span",{...k,className:a(e.className,Ar,M(Ar,{size:f,rounded:N,fillMode:x}),y(Ar,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m}))})};we.states=zm;we.options=Um;we.className=Ar;we.defaultOptions=Fm;we.moduleName=Xa;we.folderName=Sr;import{jsx as Jm}from"react/jsx-runtime";var Ir="k-picker",Vm=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Wm={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]},Xm={},Go=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m,size:f,rounded:N,fillMode:x,...k}=e;return Jm("span",{...k,className:a(e.className,Ir,M(Ir,{size:f,rounded:N,fillMode:x}),y(Ir,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m})),children:e.children})};Go.states=Vm;Go.options=Wm;Go.className=Ir;Go.defaultOptions=Xm;Go.moduleName=Xa;Go.folderName=Sr;import{Fragment as Qm,jsx as Hl}from"react/jsx-runtime";var Zn="k-clear-value",qm=[i.disabled,i.loading,i.readonly],Ym={},ao=e=>{let{disabled:o,loading:t,readonly:r,value:l}=e;return o||r||t||!l?Hl(Qm,{}):Hl("span",{className:a(e.className,Zn),children:Hl(b,{icon:"x"})})};ao.states=qm;ao.options=Ym;ao.className=Zn;import{jsx as eu}from"react/jsx-runtime";var Pl="k-input-inner",Zm=[],jm={},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:d,...m}=e;return eu("input",{...m,type:t,className:a(e.className,Pl,M(Pl,e)),placeholder:r,autoComplete:l,defaultValue:o,disabled:n||void 0,readOnly:d||void 0})};ro.states=Zm;ro.options=jm;ro.className=Pl;import{jsx as jn,jsxs as au}from"react/jsx-runtime";var _l="k-input-inner",ou=[],tu={},Ct=e=>{let{value:o,placeholder:t,showValue:r,valueIcon:l,valueIconName:n,...d}=e;return au("span",{...d,className:a(e.className,_l,M(_l,e)),children:[l,!l&&n&&jn(b,{className:"k-input-value-icon",icon:n}),r&&!o&&t,r&&o&&jn("span",{className:"k-input-value-text",children:o})]})};Ct.states=ou;Ct.options=tu;Ct.className=_l;import{jsx as iu}from"react/jsx-runtime";var Kl="k-input-inner",ru=[],lu={},es={value:"",placeholder:""},Dl=e=>{let{value:o=es.value,placeholder:t=es.placeholder,rows:r,disabled:l,...n}=e;return iu("textarea",{...n,className:a(e.className,Kl,M(Kl,e)),placeholder:t,rows:r,defaultValue:o,disabled:l||void 0})};Dl.states=ru;Dl.options=lu;Dl.className=Kl;import{Fragment as su,jsx as os}from"react/jsx-runtime";var ts="k-input-loading-icon",nu=[i.disabled,i.loading],Qe=e=>{let{disabled:o,loading:t}=e;return o||!t?os(su,{}):os("span",{className:a(e.className,ts,"k-icon k-i-loading")})};Qe.states=nu;Qe.className=ts;import{Fragment as pu,jsx as as}from"react/jsx-runtime";var rs="k-input-validation-icon",du=[i.valid,i.invalid,i.disabled,i.loading],cu={},Fe=e=>{let{valid:o,invalid:t,disabled:r,loading:l}=e,n=t?"warning-circle":"check-circle";return r||l||!!!(o||t)?as(pu,{}):as(b,{className:a(rs),icon:n})};Fe.states=du;Fe.options=cu;Fe.className=rs;import{Fragment as bu,jsx as ls}from"react/jsx-runtime";var mu="k-input-prefix",uu={direction:"horizontal"},bo=e=>{let{direction:o=uu.direction,...t}=e;return e.children?ls("span",{...t,className:a(mu,e.className,{[`k-input-prefix-${o}`]:o}),children:e.children}):ls(bu,{})};import{Fragment as gu,jsx as is}from"react/jsx-runtime";var fu="k-input-suffix",Tu={direction:"horizontal"},fo=e=>{let{direction:o=Tu.direction,...t}=e;return e.children?is("span",{...t,className:a(fu,e.className,{[`k-input-suffix-${o}`]:o}),children:e.children}):is(gu,{})};import{jsx as Gy}from"react/jsx-runtime";import{jsx as xu}from"react/jsx-runtime";var hu="k-input-suffix-text",Bl=e=>{let{children:o,...t}=e;return xu("span",{...t,className:a(hu,e.className),children:o})};import{jsx as ku}from"react/jsx-runtime";var ns="k-input-separator",Nu={direction:"vertical"},To=e=>{let{direction:o=Nu.direction,...t}=e;return ku("span",{...t,className:a(ns,e.className,{[`${ns}-${o}`]:o})})};import{Fragment as ss,jsx as Oo,jsxs as zl}from"react/jsx-runtime";var vu=we.states,wu=we.defaultOptions,Cu=we.options,Lu=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Mu=[],Jt=e=>{let{modifiers:o,valid:t,invalid:r,loading:l,disabled:n,readonly:d,...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:d,style:{width:300},children:[f&&zl(ss,{children:[Oo(bo,{children:Oo(b,{icon:"lock"})}),u&&Oo(To,{})]}),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:d,value:"Value"}),N&&zl(ss,{children:[u&&Oo(To,{}),Oo(fo,{children:Oo(wt,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};Jt.options=Cu;Jt.states=vu;Jt.variants=Mu;Jt.defaultOptions=wu;Jt.modifiers=Lu;Jt.className=we.className;var Ul="popup",ds=Ul;import{jsx as cs}from"react/jsx-runtime";var ps="k-animation-container",yu=[],Su={},Fl={positionMode:"absolute",shown:!0},Ho=e=>{let{positionMode:o=Fl.positionMode,shown:t=Fl.shown,animationStyle:r,offset:l,...n}=e;return cs("div",{...n,style:{...l,...e.style},className:a(e.className,ps,{"k-animation-container-shown":t,"k-animation-container-fixed":o==="fixed"}),children:cs("div",{className:"k-child-animation-container",style:r,children:e.children})})};Ho.states=yu;Ho.options=Su;Ho.className=ps;Ho.defaultOptions=Fl;Ho.moduleName=Ul;Ho.folderName=ds;var $l="popup",ms=$l;import{jsx as us}from"react/jsx-runtime";var bs="k-popup",Au=[],Iu={},fs={positionMode:"absolute"},ne=e=>{let{offset:o,positionMode:t=fs.positionMode,animationStyle:r,containerClassName:l,containerRole:n,containerAriaLabel:d,...m}=e;return us(Ho,{positionMode:t,offset:o,animationStyle:r,className:l,role:n,"aria-label":d,children:us("div",{...m,className:a(e.className,bs),children:e.children})})};ne.states=Au;ne.options=Iu;ne.className=bs;ne.defaultOptions=fs;ne.moduleName=$l;ne.folderName=ms;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",Ts=Vl;import{jsx as Gu}from"react/jsx-runtime";var Er="k-actions",Ru=[],Eu={},Wl={alignment:"start",orientation:"horizontal"},go=e=>{let{alignment:o=Wl.alignment,orientation:t=Wl.orientation,...r}=e;return Gu("div",{...r,className:a(Er,{[`${Er}-${o}`]:o,[`${Er}-${t}`]:t},e.className),children:e.children})};go.states=Ru;go.options=Eu;go.className=Er;go.defaultOptions=Wl;go.moduleName=Vl;go.folderName=Ts;import{jsx as Hu}from"react/jsx-runtime";var Ou="k-actionsheet-footer",gs={alignment:"stretched",orientation:"horizontal"},lt=e=>{let{alignment:o=gs.alignment,orientation:t=gs.orientation,template:r,as:l=r?"div":go,...n}=e;return Hu(l,{...n,...!r&&{alignment:o,orientation:t},className:a(e.className,Ou),children:e.children})};var Xl="searchbox",hs=Xl;import{jsx as Ja,jsxs as Ku}from"react/jsx-runtime";var xs="k-searchbox",Pu=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],_u={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:d,focus:m,valid:f,invalid:N,required:x,loading:k,disabled:u,showIcon:v=Jl.showIcon,icon:L=Jl.icon,"aria-label":I,...E}=e;return Ku(we,{...E,size:r,rounded:l,fillMode:n,hover:d,focus:m,valid:f,invalid:N,required:x,loading:k,disabled:u,className:a(e.className,xs),children:[v&&Ja(b,{className:"k-input-icon",icon:L}),Ja(ro,{placeholder:t,value:o,"aria-label":I}),Ja(Qe,{...e}),Ja(Fe,{...e}),Ja(ao,{...e})]})};lo.states=Pu;lo.options=_u;lo.className=xs;lo.defaultOptions=Jl;lo.moduleName=Xl;lo.folderName=hs;import{jsx as ZS}from"react/jsx-runtime";var ql="textbox",Ns=ql;import{Fragment as ks,jsx as it,jsxs as Yl}from"react/jsx-runtime";var vs="k-textbox",Du=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Bu={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:d=Gr.showValidationIcon,prefix:m,suffix:f,type:N,value:x,placeholder:k,hover:u,focus:v,valid:L,invalid:I,required:E,loading:G,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:I,required:E,loading:G,disabled:z,readonly:he,className:a(e.className,vs),children:[m&&Yl(ks,{children:[it(bo,{children:m}),l&&it(To,{})]}),it(ro,{id:pe,placeholder:k,value:x,type:N,disabled:z,"aria-label":De,"aria-describedby":Be,"aria-invalid":I?"true":void 0}),d&&it(Fe,{valid:L,invalid:I,loading:G,disabled:z}),it(Qe,{loading:G,disabled:z}),n&&it(ao,{loading:G,disabled:z,readonly:he,value:x}),f&&Yl(ks,{children:[l&&it(To,{}),it(fo,{children:f})]})]})};ue.states=Du;ue.options=Bu;ue.className=vs;ue.defaultOptions=Gr;ue.moduleName=ql;ue.folderName=Ns;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 zu}from"react/jsx-runtime";var ws=e=>zu(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 Uu=ue.states,Fu=ue.defaultOptions,$u=ue.options,Vu=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Wu=[],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(ws,{value:"Value",style:{width:300},...t,...r})};qt.options=$u;qt.states=Uu;qt.variants=Wu;qt.defaultOptions=Fu;qt.modifiers=Vu;qt.className=ue.className;import{jsx as nt,jsxs as Zl}from"react/jsx-runtime";var Cs="k-actionsheet-titlebar",Xu={},$e=e=>