@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 204 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 S=(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"}),A=(e,o)=>{let{valid:t,invalid:r,hover:l,focus:s,checked:c,active:u,selected:f,disabled:N,indeterminate:x,loading:w,empty:b,readonly:C,highlighted:M,...E}=o;return a({"k-valid":t,"k-invalid":r,"k-hover":l,"k-focus":s,"k-checked":c,"k-active":u,"k-selected":f,"k-disabled":N,"k-indeterminate":x&&!c,"k-loading":w,"k-empty":b,"k-readonly":C,"k-highlighted":M},Object.keys(E).reduce((O,P)=>(P.startsWith("k-")?O[P]=E[P]:O[`k-${P}`]=E[P],O),{}))};function In(e,o){if(!o)return{};let t=Array.isArray(o)?o:[o];return Object.fromEntries(t.map(r=>[`k-${r}`,!0]))}var d={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},k={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},v={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Oo={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},y={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},n={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 bl={};function L(e){return bl[e]=(bl[e]||0)+1,`k-${e}-${bl[e]}`}import{Fragment as tp,jsx as Rn}from"react/jsx-runtime";var fl="k-font-icon",jc=[],ep={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[y.undefined,y.base,y.primary,y.secondary,y.tertiary,y.success,y.warning,y.error,y.info]},op={},Fa=e=>{let{size:o,themeColor:t,icon:r,rotate:l,flip:s,...c}=e;return r?Rn("span",{...c,className:a(e.className,fl,S(fl,{size:o}),{[`k-i-${r}`]:r,[`k-color-${t}`]:t,[`k-rotate-${l}`]:l,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):Rn(tp,{})};Fa.states=jc;Fa.options=ep;Fa.className=fl;Fa.defaultOptions=op;var En=Fa;import{Fragment as lp,jsx as kr}from"react/jsx-runtime";var Tl="k-svg-icon",ap=[],rp={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[y.undefined,y.base,y.primary,y.secondary,y.tertiary,y.success,y.warning,y.error,y.info],variant:[Oo.outline,Oo.solid,Oo.duotone]},gl={viewBox:"0 0 24 24",variant:Oo.outline},$a=e=>{let{size:o,themeColor:t,rotate:r,flip:l,viewBox:s=gl.viewBox,variant:c=gl.variant,icon:u,...f}=e;if(!u)return kr(lp,{});if(u==="none")return kr("span",{...f,className:a(e.className,Tl,S("k-icon",{size:o}),"k-none"),"aria-hidden":"true"});let N=typeof u=="object"&&u.name&&u.name,x=typeof u=="object"?c&&u.variants?.[c]||u.variants?.outline||u.content:void 0;return kr("span",{...f,className:a(e.className,Tl,S("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:kr("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof u=="object"?u.viewBox:s,dangerouslySetInnerHTML:x!==void 0?{__html:x}:void 0,children:u?void 0:e.children})})};$a.states=ap;$a.options=rp;$a.className=Tl;$a.defaultOptions=gl;var hl=$a;import*as xl from"@progress/kendo-svg-icons";var Gn="icon",On="icons";import{useContext as np}from"react";import{createContext as ip}from"react";var Hn=ip({iconsType:"svg"});import{Fragment as Pn,jsx as Va}from"react/jsx-runtime";var vr="k-icon",sp=e=>e.replace(/([-_][a-z0-9])/gi,o=>o.toUpperCase().replace("-","").replace("_","")),dp=[],cp={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[y.undefined,y.base,y.primary,y.secondary,y.tertiary,y.success,y.warning,y.error,y.info],variant:[Oo.outline,Oo.solid,Oo.duotone]},wr={viewBox:"0 0 24 24",type:"svg",variant:Oo.outline},T=e=>{let{iconsType:o}=np(Hn),{size:t,themeColor:r,icon:l,type:s=o||wr.type,rotate:c,flip:u,viewBox:f=wr.viewBox,variant:N=wr.variant,...x}=e;if(!l)return Va(Pn,{});if((o||s)==="svg"){if(l==="none")return Va(hl,{...x,className:a(e.className,vr),icon:l,size:t,variant:N});let b=xl[l]?l:sp(`${l}-icon`);return xl[b]?Va(hl,{...x,className:a(e.className,vr),icon:xl[b],size:t,themeColor:r,rotate:c,flip:u,viewBox:f,variant:N}):Va(Pn,{})}return Va(En,{...x,className:a(e.className,vr),icon:l,size:t,themeColor:r,rotate:c,flip:u})};T.states=dp;T.options=cp;T.defaultOptions=wr;T.className=vr;T.moduleName=Gn;T.folderName=On;T.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 Cr}from"react/jsx-runtime";var pp="k-chip-action";var ce=e=>{let{type:o,...t}=e,r;switch(o){case"remove":r=Cr(T,{icon:"x-circle",size:"small"});break;case"more":r=Cr(T,{icon:"more-vertical",size:"small"});break;default:return Cr(T,{icon:o,size:"small"})}return Cr("span",{...t,className:a(e.className,pp,`k-chip-${o}-action`),children:r})};var Nl="avatar",_n=Nl;import{jsx as Kn}from"react/jsx-runtime";var Wa="k-avatar";var mp=[n.hover,n.focus,n.active,n.selected,n.disabled],up={size:[d.undefined,d.small,d.medium,d.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.outline],themeColor:[y.undefined,y.base,y.primary,y.secondary,y.tertiary]},kl={type:"text",border:!1},Ue=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,type:s=kl.type,border:c=kl.border,...u}=e;return Kn("div",{...u,className:a(e.className,Wa,S(Wa,{size:o,rounded:t,fillMode:r,themeColor:l}),{[`${Wa}-bordered`]:c}),children:Kn("span",{className:`${Wa}-${s}`,children:e.children})})};Ue.states=mp;Ue.options=up;Ue.className=Wa;Ue.defaultOptions=kl;Ue.moduleName=Nl;Ue.folderName=_n;Ue.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var wt=Ue;import{jsx as bp}from"react/jsx-runtime";var Dn=e=>bp(wt,{type:"icon",...e});import{jsx as fp}from"react/jsx-runtime";var Bn=e=>fp(wt,{type:"text",...e});import{jsx as Tp}from"react/jsx-runtime";var zn=e=>Tp(wt,{type:"image",...e});import{jsx as ck}from"react/jsx-runtime";import{jsx as Xa}from"react/jsx-runtime";var gp=Ue.options,hp=Ue.states,xp={...Ue.defaultOptions,variant:"image"},Np=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],kp=[],Vt=e=>{let{variant:o,...t}=e;switch(o){case"icon":return Xa(Dn,{...t,children:Xa(T,{icon:"star"})});case"text":return Xa(Bn,{...t,children:"JO"});default:return Xa(zn,{...t,children:Xa("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};Vt.options=gp;Vt.states=hp;Vt.variants=Np;Vt.defaultOptions=xp;Vt.modifiers=kp;Vt.className=Ue.className;var Ja="chip",Lr=Ja,Mr="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as Wt,jsxs as Cp}from"react/jsx-runtime";var yr="k-chip",vp=[n.hover,n.focus,n.active,n.selected,n.disabled],wp={size:[d.undefined,d.small,d.medium,d.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.outline],themeColor:[y.undefined,y.base,y.success,y.warning,y.error,y.info]},Un={avatarImage:"/packages/html/assets/avatar.jpg"},ie=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,text:s,icon:c,actions:u,showAvatar:f,avatarImage:N=Un.avatarImage,hover:x,focus:w,active:b,selected:C,disabled:M,...E}=e;return Cp("div",{...E,className:a(e.className,yr,S(yr,{size:o,rounded:t,fillMode:r,themeColor:l}),A(yr,{hover:x,focus:w,active:b,disabled:M,selected:C})),role:e.role||"button","aria-pressed":e.role==="option"?void 0:C?"true":"false",...e.role==="option"&&C!==void 0&&{"aria-selected":C?"true":"false"},"aria-disabled":M?"true":void 0,children:[c&&Wt(T,{className:"k-chip-icon",icon:c,size:"small"}),f&&Wt(Ue,{className:"k-chip-avatar",type:"image",children:Wt("img",{src:N,alt:""})}),Wt("span",{className:"k-chip-content",children:e.children?e.children:s&&Wt("span",{className:"k-chip-label",children:s})}),u&&Wt("span",{className:"k-chip-actions",children:u})]})};ie.states=vp;ie.options=wp;ie.className=yr;ie.defaultOptions=Un;ie.moduleName=Ja;ie.folderName=Lr;ie.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=ie;import{jsx as Sp}from"react/jsx-runtime";var vl="k-chip-list",Lp=[],Mp={size:[d.undefined,d.small,d.medium,d.large]},yp={},ne=e=>{let{size:o,multiselectable:t,ariaLabel:r,...l}=e;return Sp("div",{...l,className:a(e.className,vl,S(vl,{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})};ne.states=Lp;ne.options=Mp;ne.className=vl;ne.defaultOptions=yp;ne.moduleName=Ja;ne.folderName=Lr;ne.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 Bk}from"react/jsx-runtime";import{jsx as $k}from"react/jsx-runtime";import{jsx as Ap}from"react/jsx-runtime";var Sr=e=>Ap(uo,{text:"text",...e});import{jsx as Zk}from"react/jsx-runtime";import{jsx as tv}from"react/jsx-runtime";import{Fragment as sv,jsx as nv,jsxs as dv}from"react/jsx-runtime";import{jsx as bv,jsxs as fv}from"react/jsx-runtime";import{jsx as Nv,jsxs as kv}from"react/jsx-runtime";import{jsx as yv,jsxs as Sv}from"react/jsx-runtime";import{jsx as Xt,jsxs as Hp}from"react/jsx-runtime";var Ip={...uo.options,...ne.options},Rp=[],Ep=ne.states,Gp={...uo.defaultOptions,...ne.defaultOptions},Op=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],Jt=e=>{let{modifiers:o,className:t,...r}=e,l=o?.icon,s=o?.actions,c=o?.avatar,u=c?Mr:void 0;return Hp(ne,{size:r.size,className:t,children:[Xt(Sr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:s?Xt(ce,{type:"remove"}):void 0,showAvatar:c,avatarImage:u,children:"Chip"}),Xt(Sr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:s?Xt(ce,{type:"remove"}):void 0,showAvatar:c,avatarImage:u,children:"Chip"}),Xt(Sr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:s?Xt(ce,{type:"remove"}):void 0,showAvatar:c,avatarImage:u,children:"Chip"})]})};Jt.options=Ip;Jt.states=Ep;Jt.variants=Rp;Jt.defaultOptions=Gp;Jt.modifiers=Op;Jt.className=ne.className;import{jsx as wl}from"react/jsx-runtime";var Pp=ie.states,_p=ie.defaultOptions,Kp=ie.options,Dp=[],Bp=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],qt=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]?Mr:void 0;break;case"more-options":r.actions||(r.actions=[]),r.actions[0]=o?.[l]?wl(ce,{type:"more"}):void 0;break;case"remove-icon":r.actions||(r.actions=[]),r.actions[1]=o?.[l]?wl(ce,{type:"remove"}):void 0;break;default:break}}),wl(ie,{...t,...r,children:"Chip component"})};qt.options=Kp;qt.states=Pp;qt.variants=Dp;qt.defaultOptions=_p;qt.modifiers=Bp;qt.className=ie.className;var j="grid",te=j;import{jsx as $p,jsxs as Vp}from"react/jsx-runtime";var Ar="k-grid",zp=[],Up={size:[d.undefined,d.small,d.medium,d.large]},Fp=[],Fn={pagerPosition:"bottom"},_=e=>{let{size:o,pagerPosition:t=Fn.pagerPosition,toolbar:r,pager:l,groupingHeader:s,gridSelectionAggregates:c,_renderAriaRoot:u,resizable:f,ariaColCount:N,ariaRowCount:x,ariaRootId:w,ariaRole:b="grid",...C}=e;return Vp("div",{...C,className:a(e.className,Ar,{[`${Ar}-resizable`]:f},S(Ar,{size:o})),children:[r,t==="top"&&l,s,e.children&&u?$p("div",{className:"k-grid-aria-root",role:b,id:w,"aria-colcount":N,"aria-rowcount":x,children:e.children}):e.children,c,t==="bottom"&&l]})};_.states=zp;_.options=Up;_.variants=Fp;_.className=Ar;_.defaultOptions=Fn;_.moduleName=j;_.folderName=te;_.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 Wp}from"react/jsx-runtime";var $n="k-grid-header",Y=e=>{let{draggable:o,...t}=e;return Wp("div",{...t,className:a(e.className,$n,{"k-grid-draggable-header":o}),children:e.children})};Y.className=$n;Y.moduleName=j;Y.folderName=te;import{jsx as Vn,jsxs as Xp}from"react/jsx-runtime";var Wn="k-grouping-header",Ee=e=>{let{dropHint:o,dropClue:t,...r}=e;return Xp("div",{...r,className:a(e.className,Wn),children:[t&&Vn("div",{className:"k-grouping-dropclue"}),e.children,Vn("div",{className:"k-grouping-drop-container",children:o})]})};Ee.className=Wn;Ee.moduleName=j;Ee.folderName=te;import{jsx as Jp}from"react/jsx-runtime";var Xn="k-grid-pinned-container",qa=e=>{let{position:o,...t}=e;return Jp("div",{...t,className:a(e.className,Xn,{"k-pos-bottom":o==="bottom"}),children:e.children})};qa.className=Xn;qa.moduleName=j;qa.folderName=te;import{jsx as qp}from"react/jsx-runtime";var Jn="k-grid-sticky-container",Ct=e=>{let{position:o,...t}=e;return qp("div",{...t,className:a(e.className,Jn,{"k-pos-bottom":o==="bottom"}),children:e.children})};Ct.className=Jn;Ct.moduleName=j;Ct.folderName=te;var Ge="table",_e=Ge;import{jsx as jp}from"react/jsx-runtime";var qn="k-data-table",Yp=[],Qp={size:[d.undefined,d.small,d.medium,d.large]},Zp={},Uo=e=>{let{size:o,...t}=e;return jp("div",{...t,className:a(e.className,qn,S("k-table",{size:o})),children:e.children})};Uo.states=Yp;Uo.options=Qp;Uo.className=qn;Uo.defaultOptions=Zp;Uo.moduleName=Ge;Uo.folderName=_e;import{jsx as am}from"react/jsx-runtime";var Cl="k-table-header-wrap",em=[n.hover,n.focus,n.disabled],om={},tm={},ot=e=>{let{children:o,hover:t,focus:r,disabled:l,...s}=e;return am("div",{...s,className:a(e.className,Cl,A(Cl,{hover:t,focus:r,disabled:l})),children:o})};ot.states=em;ot.options=om;ot.className=Cl;ot.defaultOptions=tm;ot.moduleName=Ge;ot.folderName=_e;import{jsx as nm}from"react/jsx-runtime";var Ll="k-table",rm=[],lm={size:[d.undefined,d.small,d.medium,d.large]},im={},Ke=e=>{let{size:o,...t}=e;return nm("table",{...t,className:a(e.className,Ll,S(Ll,{size:o})),children:e.children})};Ke.states=rm;Ke.options=lm;Ke.className=Ll;Ke.defaultOptions=im;Ke.moduleName=Ge;Ke.folderName=_e;import{jsx as Ml}from"react/jsx-runtime";var yl="k-table-header",sm=[n.hover,n.focus,n.disabled],dm={},cm={},Fo=e=>{let{children:o,hover:t,focus:r,disabled:l,...s}=e;return Ml("div",{...s,className:a(e.className,yl,A(yl,{hover:t,focus:r,disabled:l})),children:Ml(ot,{children:Ml(Ke,{children:o})})})};Fo.states=sm;Fo.options=dm;Fo.className=yl;Fo.defaultOptions=cm;Fo.moduleName=Ge;Fo.folderName=_e;import{jsx as bm}from"react/jsx-runtime";var Yn="k-table-scroller",pm=[],mm={},um={},Yt=e=>{let{children:o,...t}=e;return bm("div",{...t,className:a(e.className,Yn),children:o})};Yt.states=pm;Yt.options=mm;Yt.className=Yn;Yt.defaultOptions=um;Yt.moduleName=Ge;Yt.folderName=_e;import{jsx as Zw}from"react/jsx-runtime";import{jsx as hm}from"react/jsx-runtime";var Qn="k-table-footer",fm=[],Tm={},gm={},tt=e=>{let{children:o,...t}=e;return hm("div",{...t,className:a(e.className,Qn),children:o})};tt.states=fm;tt.options=Tm;tt.className=Qn;tt.defaultOptions=gm;tt.moduleName=Ge;tt.folderName=_e;import{jsx as vm}from"react/jsx-runtime";var Sl="k-table-list",xm=[],Nm={size:[d.undefined,d.small,d.medium,d.large]},km={},at=e=>{let{size:o,virtualization:t,...r}=e;return vm("ul",{...r,className:a(e.className,"k-table",Sl,S(Sl,{size:o}),{"k-virtual-table":t}),children:e.children})};at.states=xm;at.options=Nm;at.className=Sl;at.defaultOptions=km;at.moduleName=Ge;at.folderName=_e;import{jsx as Cm}from"react/jsx-runtime";var wm="k-table-thead",W=e=>Cm("thead",{className:a(e.className,wm),children:e.children});import{jsx as Mm}from"react/jsx-runtime";var Lm="k-table-tbody",z=e=>Mm("tbody",{className:a(e.className,Lm),children:e.children});import{jsx as TC}from"react/jsx-runtime";import{jsx as Sm}from"react/jsx-runtime";var Al="k-table-row",ym=[n.hover,n.focus,n.selected,n.disabled,n.highlighted],g=e=>{let{hover:o,focus:t,selected:r,highlighted:l,disabled:s,alt:c,...u}=e;return Sm("tr",{...u,className:a(e.className,Al,{"k-table-alt-row":c},A(Al,{hover:o,focus:t,disabled:s,selected:r,highlighted:l})),children:e.children})};g.states=ym;g.className=Al;import{jsx as Im}from"react/jsx-runtime";var Il="k-table-row",Am=[n.hover,n.focus,n.selected,n.disabled],Ir=e=>{let{hover:o,focus:t,selected:r,disabled:l,alt:s,...c}=e;return Im("li",{...c,className:a(e.className,Il,{"k-table-alt-row":s},A(Il,{hover:o,focus:t,disabled:l,selected:r})),children:e.children})};Ir.states=Am;Ir.className=Il;import{jsx as Rm}from"react/jsx-runtime";var Zn="k-table-th",$o=e=>{let{text:o,colspan:t,rowspan:r,...l}=e,s=o||e.children;return Rm("th",{colSpan:t,rowSpan:r,...l,className:a(e.className,Zn),children:s})};$o.className=Zn;$o.moduleName=Ge;$o.folderName=_e;import{jsx as IC}from"react/jsx-runtime";import{jsx as Gm}from"react/jsx-runtime";var Rl="k-table-td",Em=[n.focus,n.selected,n.highlighted],i=e=>{let{focus:o,selected:t,highlighted:r,text:l,colspan:s,rowspan:c,...u}=e,f=l||e.children;return Gm("td",{colSpan:s,rowSpan:c,...u,className:a(e.className,Rl,A(Rl,{focus:o,selected:t,highlighted:r})),children:f})};i.states=Em;i.className=Rl;import{jsx as _C}from"react/jsx-runtime";import{jsx as zC}from"react/jsx-runtime";import{jsx as VC}from"react/jsx-runtime";import{jsx as qC}from"react/jsx-runtime";import{jsx as jC}from"react/jsx-runtime";import{jsx as iL,jsxs as nL}from"react/jsx-runtime";import{jsx as pL,jsxs as mL}from"react/jsx-runtime";import{jsx as TL,jsxs as gL}from"react/jsx-runtime";import{Fragment as wL,jsx as kL,jsxs as vL}from"react/jsx-runtime";import{jsx as Pm}from"react/jsx-runtime";var os="k-grid-header-table",X=e=>Pm(Ke,{...e,className:a(e.className,os),children:e.children});X.className=os;X.moduleName=j;X.folderName=te;import{jsx as rt,jsxs as El}from"react/jsx-runtime";var Gl="k-header",_m=[n.hover,n.focus,n.active],ts={sortIcon:"sort-asc-small"},R=e=>{let{menu:o,sortable:t,filterable:r,sticky:l,resizable:s,columnTitle:c,hover:u,focus:f,active:N,sortIcon:x=ts.sortIcon,sortOrder:w,accessibleLabel:b,...C}=e;return El($o,{...C,className:a(e.className,Gl,{"k-filterable":o||r,"k-sorted":t,"k-grid-header-sticky":l,"k-touch-action-none":s},A(Gl,{hover:u,focus:f,active:N})),children:[c&&El("span",{className:"k-cell-inner",children:[El("span",{className:"k-link",children:[rt("span",{className:"k-column-title",children:c}),t&&rt("span",{className:"k-sort-icon",children:rt(T,{icon:x})}),w&&rt("span",{className:"k-sort-order",children:w})]}),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(T,{icon:o==="filter"?"filter":"more-vertical"})})]}),!c&&b&&rt("span",{className:"k-sr-only",children:b}),e.children,s&&rt("span",{className:"k-column-resizer k-touch-action-none"})]})};R.states=_m;R.className=Gl;R.defaultOptions=ts;R.moduleName=j;R.folderName=te;import{jsx as Km}from"react/jsx-runtime";var as="k-grid-container",J=e=>Km("div",{...e,className:a(e.className,as),children:e.children});J.className=as;J.moduleName=j;J.folderName=te;import{jsx as Dm}from"react/jsx-runtime";var rs="k-grid-content",q=e=>Dm("div",{...e,className:a(e.className,rs),children:e.children});q.className=rs;q.moduleName=j;q.folderName=te;import{jsx as Bm}from"react/jsx-runtime";var ls="k-grid-table",B=e=>Bm(Ke,{...e,className:a(e.className,ls),children:e.children});B.className=ls;B.moduleName=j;B.folderName=te;import{jsx as zm}from"react/jsx-runtime";var is="k-grid-footer",Rr=e=>zm("div",{...e,className:a(e.className,is),children:e.children});Rr.className=is;Rr.moduleName=j;Rr.folderName=te;import{jsx as Um}from"react/jsx-runtime";var ns="k-grid-footer-table",Er=e=>Um(Ke,{...e,className:a(e.className,ns),children:e.children});Er.className=ns;Er.moduleName=j;Er.folderName=te;var Ol="button",ss=Ol;import{Fragment as ds,jsx as Qt,jsxs as cs}from"react/jsx-runtime";var Ya="k-button",Fm=["icon-button"],$m=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Vm={size:[d.undefined,d.xsmall,d.small,d.medium,d.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link],themeColor:[y.undefined,y.base,y.primary,y.secondary,y.tertiary,y.success,y.warning,y.error,y.info,y.inverse]},Hl={showArrow:!1,arrowIconName:"chevron-down"},p=e=>{let{as:o="button",size:t,rounded:r,fillMode:l,themeColor:s,showArrow:c=Hl.showArrow,arrowIconName:u=Hl.arrowIconName,variant:f,hover:N,focus:x,active:w,selected:b,disabled:C,togglable:M,ariaDisabled:E,icon:O,iconSize:P,text:D,iconClassName:be,className:le,...Se}=e,Ae=O!=null,Ie=e.children!==void 0;return cs(o,{className:a(le,Ya,In(Ya,f),S(Ya,{size:t,rounded:r,fillMode:l,themeColor:s}),A(Ya,{hover:N,focus:x,active:w,disabled:C||E,selected:b}),{"k-icon-button":!D&&!Ie&&Ae}),"aria-pressed":M?b?"true":"false":void 0,...Se,"aria-disabled":E?"true":void 0,disabled:C||void 0,children:[typeof O=="string"&&O&&Qt(T,{className:a(be,"k-button-icon"),icon:O,size:P}),O&&typeof O!="string"&&Qt(ds,{children:O}),D?cs(ds,{children:[D&&Qt("span",{className:"k-button-text",children:D}),e.children]}):e.children&&Qt("span",{className:"k-button-text",children:e.children}),c&&Qt("span",{className:"k-menu-button-arrow k-button-arrow",children:Qt(T,{icon:u})})]})};p.states=$m;p.options=Vm;p.variants=Fm;p.className=Ya;p.defaultOptions=Hl;p.moduleName=Ol;p.folderName=ss;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 Wm}from"react/jsx-runtime";var lt=e=>Wm(p,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Xm}from"react/jsx-runtime";var Qa=e=>Xm(p,{icon:"folder",children:"Button",...e});import{jsx as Jm}from"react/jsx-runtime";var Lt=e=>Jm(p,{children:"Button",...e});import{jsx as Pl}from"react/jsx-runtime";var qm=p.options,Ym=p.states,Qm={...p.defaultOptions,variant:"text"},Zm=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],jm=[],Zt=e=>{let{variant:o,...t}=e;switch(o){case"icon-only":return Pl(lt,{...t,icon:"star"});case"icon-and-text":return Pl(Qa,{...t,icon:"star",children:"Button"});default:return Pl(Lt,{...t,children:"Button"})}};Zt.options=qm;Zt.states=Ym;Zt.variants=Zm;Zt.defaultOptions=Qm;Zt.modifiers=jm;Zt.className=p.className;var Za="input",Gr=Za;import{jsx as au}from"react/jsx-runtime";var Or="k-input",eu=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],ou={size:[d.undefined,d.small,d.medium,d.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},tu={},Ce=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:s,loading:c,readonly:u,size:f,rounded:N,fillMode:x,...w}=e;return au("span",{...w,className:a(e.className,Or,S(Or,{size:f,rounded:N,fillMode:x}),A(Or,{hover:o,focus:t,disabled:r,invalid:l,valid:s,loading:c,readonly:u}))})};Ce.states=eu;Ce.options=ou;Ce.className=Or;Ce.defaultOptions=tu;Ce.moduleName=Za;Ce.folderName=Gr;import{jsx as nu}from"react/jsx-runtime";var Hr="k-picker",ru=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],lu={size:[d.undefined,d.small,d.medium,d.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},iu={},Ho=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:s,loading:c,readonly:u,size:f,rounded:N,fillMode:x,...w}=e;return nu("span",{...w,className:a(e.className,Hr,S(Hr,{size:f,rounded:N,fillMode:x}),A(Hr,{hover:o,focus:t,disabled:r,invalid:l,valid:s,loading:c,readonly:u})),children:e.children})};Ho.states=ru;Ho.options=lu;Ho.className=Hr;Ho.defaultOptions=iu;Ho.moduleName=Za;Ho.folderName=Gr;import{Fragment as cu,jsx as _l}from"react/jsx-runtime";var ps="k-clear-value",su=[n.disabled,n.loading,n.readonly],du={},ao=e=>{let{disabled:o,loading:t,readonly:r,value:l}=e;return o||r||t||!l?_l(cu,{}):_l("span",{className:a(e.className,ps),children:_l(T,{icon:"x"})})};ao.states=su;ao.options=du;ao.className=ps;import{jsx as uu}from"react/jsx-runtime";var Kl="k-input-inner",pu=[],mu={},Pr={type:"text",autocomplete:"off",value:"",placeholder:""},ro=e=>{let{value:o=Pr.value,type:t=Pr.type,placeholder:r=Pr.placeholder,autocomplete:l=Pr.autocomplete,disabled:s,readOnly:c,...u}=e;return uu("input",{...u,type:t,className:a(e.className,Kl,S(Kl,e)),placeholder:r,autoComplete:l,defaultValue:o,disabled:s||void 0,readOnly:c||void 0})};ro.states=pu;ro.options=mu;ro.className=Kl;import{jsx as ms,jsxs as Tu}from"react/jsx-runtime";var Dl="k-input-inner",bu=[],fu={},Mt=e=>{let{value:o,placeholder:t,showValue:r,valueIcon:l,valueIconName:s,...c}=e;return Tu("span",{...c,className:a(e.className,Dl,S(Dl,e)),children:[l,!l&&s&&ms(T,{className:"k-input-value-icon",icon:s}),r&&!o&&t,r&&o&&ms("span",{className:"k-input-value-text",children:o})]})};Mt.states=bu;Mt.options=fu;Mt.className=Dl;import{jsx as xu}from"react/jsx-runtime";var Bl="k-input-inner",gu=[],hu={},us={value:"",placeholder:""},zl=e=>{let{value:o=us.value,placeholder:t=us.placeholder,rows:r,disabled:l,...s}=e;return xu("textarea",{...s,className:a(e.className,Bl,S(Bl,e)),placeholder:t,rows:r,defaultValue:o,disabled:l||void 0})};zl.states=gu;zl.options=hu;zl.className=Bl;import{Fragment as ku,jsx as bs}from"react/jsx-runtime";var fs="k-input-loading-icon",Nu=[n.disabled,n.loading],Qe=e=>{let{disabled:o,loading:t}=e;return o||!t?bs(ku,{}):bs("span",{className:a(e.className,fs,"k-icon k-i-loading")})};Qe.states=Nu;Qe.className=fs;import{Fragment as Cu,jsx as Ts}from"react/jsx-runtime";var gs="k-input-validation-icon",vu=[n.valid,n.invalid,n.disabled,n.loading],wu={},Fe=e=>{let{valid:o,invalid:t,disabled:r,loading:l}=e,s=t?"warning-circle":"check-circle";return r||l||!!!(o||t)?Ts(Cu,{}):Ts(T,{className:a(gs),icon:s})};Fe.states=vu;Fe.options=wu;Fe.className=gs;import{Fragment as yu,jsx as hs}from"react/jsx-runtime";var Lu="k-input-prefix",Mu={direction:"horizontal"},bo=e=>{let{direction:o=Mu.direction,...t}=e;return e.children?hs("span",{...t,className:a(Lu,e.className,{[`k-input-prefix-${o}`]:o}),children:e.children}):hs(yu,{})};import{Fragment as Iu,jsx as xs}from"react/jsx-runtime";var Su="k-input-suffix",Au={direction:"horizontal"},fo=e=>{let{direction:o=Au.direction,...t}=e;return e.children?xs("span",{...t,className:a(Su,e.className,{[`k-input-suffix-${o}`]:o}),children:e.children}):xs(Iu,{})};import{jsx as Wy}from"react/jsx-runtime";import{jsx as Eu}from"react/jsx-runtime";var Ru="k-input-suffix-text",Ul=e=>{let{children:o,...t}=e;return Eu("span",{...t,className:a(Ru,e.className),children:o})};import{jsx as Ou}from"react/jsx-runtime";var Ns="k-input-separator",Gu={direction:"vertical"},To=e=>{let{direction:o=Gu.direction,...t}=e;return Ou("span",{...t,className:a(Ns,e.className,{[`${Ns}-${o}`]:o})})};import{Fragment as ks,jsx as Po,jsxs as Fl}from"react/jsx-runtime";var Hu=Ce.states,Pu=Ce.defaultOptions,_u=Ce.options,Ku=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Du=[],jt=e=>{let{modifiers:o,valid:t,invalid:r,loading:l,disabled:s,readonly:c,...u}=e,f=o?.prefix,N=o?.suffix,x=o?.["clear-button"],w=o?.["validation-icon"],b=o?.separators;return Fl(Ce,{...u,valid:t,invalid:r,loading:l,disabled:s,readonly:c,style:{width:300},children:[f&&Fl(ks,{children:[Po(bo,{children:Po(T,{icon:"lock"})}),b&&Po(To,{})]}),Po(ro,{placeholder:"Placeholder",value:"Value"}),w&&Po(Fe,{valid:t,invalid:r,loading:l,disabled:s}),Po(Qe,{loading:l,disabled:s}),x&&Po(ao,{loading:l,disabled:s,readonly:c,value:"Value"}),N&&Fl(ks,{children:[b&&Po(To,{}),Po(fo,{children:Po(Lt,{size:u.size,fillMode:"clear",children:"Send"})})]})]})};jt.options=_u;jt.states=Hu;jt.variants=Du;jt.defaultOptions=Pu;jt.modifiers=Ku;jt.className=Ce.className;var $l="popup",vs=$l;import{jsx as ws}from"react/jsx-runtime";var Cs="k-animation-container",Bu=[],zu={},Vl={positionMode:"absolute",shown:!0},_o=e=>{let{positionMode:o=Vl.positionMode,shown:t=Vl.shown,animationStyle:r,offset:l,...s}=e;return ws("div",{...s,style:{...l,...e.style},className:a(e.className,Cs,{"k-animation-container-shown":t,"k-animation-container-fixed":o==="fixed"}),children:ws("div",{className:"k-child-animation-container",style:r,children:e.children})})};_o.states=Bu;_o.options=zu;_o.className=Cs;_o.defaultOptions=Vl;_o.moduleName=$l;_o.folderName=vs;var Wl="popup",Ls=Wl;import{jsx as Ms}from"react/jsx-runtime";var ys="k-popup",Uu=[],Fu={},Ss={positionMode:"absolute"},se=e=>{let{offset:o,positionMode:t=Ss.positionMode,animationStyle:r,containerClassName:l,containerRole:s,containerAriaLabel:c,...u}=e;return Ms(_o,{positionMode:t,offset:o,animationStyle:r,className:l,role:s,"aria-label":c,children:Ms("div",{...u,className:a(e.className,ys),children:e.children})})};se.states=Uu;se.options=Fu;se.className=ys;se.defaultOptions=Ss;se.moduleName=Wl;se.folderName=Ls;se.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 Xl="action-buttons",As=Xl;import{jsx as Wu}from"react/jsx-runtime";var _r="k-actions",$u=[],Vu={},Jl={alignment:"start",orientation:"horizontal"},go=e=>{let{alignment:o=Jl.alignment,orientation:t=Jl.orientation,...r}=e;return Wu("div",{...r,className:a(_r,{[`${_r}-${o}`]:o,[`${_r}-${t}`]:t},e.className),children:e.children})};go.states=$u;go.options=Vu;go.className=_r;go.defaultOptions=Jl;go.moduleName=Xl;go.folderName=As;import{jsx as Ju}from"react/jsx-runtime";var Xu="k-actionsheet-footer",Is={alignment:"stretched",orientation:"horizontal"},it=e=>{let{alignment:o=Is.alignment,orientation:t=Is.orientation,template:r,as:l=r?"div":go,...s}=e;return Ju(l,{...s,...!r&&{alignment:o,orientation:t},className:a(e.className,Xu),children:e.children})};var ql="searchbox",Rs=ql;import{jsx as ja,jsxs as Qu}from"react/jsx-runtime";var Es="k-searchbox",qu=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],Yu={size:[d.undefined,d.small,d.medium,d.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},Yl={showIcon:!0,icon:"search"},lo=e=>{let{value:o,placeholder:t,size:r,rounded:l,fillMode:s,hover:c,focus:u,valid:f,invalid:N,required:x,loading:w,disabled:b,showIcon:C=Yl.showIcon,icon:M=Yl.icon,"aria-label":E,...O}=e;return Qu(Ce,{...O,size:r,rounded:l,fillMode:s,hover:c,focus:u,valid:f,invalid:N,required:x,loading:w,disabled:b,className:a(e.className,Es),children:[C&&ja(T,{className:"k-input-icon",icon:M}),ja(ro,{placeholder:t,value:o,"aria-label":E}),ja(Qe,{...e}),ja(Fe,{...e}),ja(ao,{...e})]})};lo.states=qu;lo.options=Yu;lo.className=Es;lo.defaultOptions=Yl;lo.moduleName=ql;lo.folderName=Rs;import{jsx as pA}from"react/jsx-runtime";var Ql="textbox",Gs=Ql;import{Fragment as Os,jsx as nt,jsxs as Zl}from"react/jsx-runtime";var Hs="k-textbox",Zu=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],ju={size:[d.undefined,d.small,d.medium,d.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},Kr={showClearButton:!0,showValidationIcon:!0,separators:!0},fe=e=>{let{size:o,rounded:t,fillMode:r,separators:l=Kr.separators,showClearButton:s=Kr.showClearButton,showValidationIcon:c=Kr.showValidationIcon,prefix:u,suffix:f,type:N,value:x,placeholder:w,hover:b,focus:C,valid:M,invalid:E,required:O,loading:P,disabled:D,readonly:be,id:le,"aria-label":Se,"aria-describedby":Ae,...Ie}=e;return Zl(Ce,{...Ie,size:o,rounded:t,fillMode:r,hover:b,focus:C,valid:M,invalid:E,required:O,loading:P,disabled:D,readonly:be,className:a(e.className,Hs),children:[u&&Zl(Os,{children:[nt(bo,{children:u}),l&&nt(To,{})]}),nt(ro,{id:le,placeholder:w,value:x,type:N,disabled:D,"aria-label":Se,"aria-describedby":Ae,"aria-invalid":E?"true":void 0}),c&&nt(Fe,{valid:M,invalid:E,loading:P,disabled:D}),nt(Qe,{loading:P,disabled:D}),s&&nt(ao,{loading:P,disabled:D,readonly:be,value:x}),f&&Zl(Os,{children:[l&&nt(To,{}),nt(fo,{children:f})]})]})};fe.states=Zu;fe.options=ju;fe.className=Hs;fe.defaultOptions=Kr;fe.moduleName=Ql;fe.folderName=Gs;fe.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 er=fe;import{jsx as eb}from"react/jsx-runtime";var Ps=e=>eb(er,{...e});import{Fragment as AA,jsx as SA}from"react/jsx-runtime";import{Fragment as HA,jsx as OA}from"react/jsx-runtime";import{jsx as DA}from"react/jsx-runtime";import{jsx as jl}from"react/jsx-runtime";var ob=fe.states,tb=fe.defaultOptions,ab=fe.options,rb=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],lb=[],ea=e=>{let{modifiers:o,...t}=e,r={};return Object.keys(o||{}).forEach(l=>{switch(l){case"prefix":r.prefix=o?.[l]?jl(T,{icon:"lock"}):void 0;break;case"suffix":r.suffix=o?.[l]?jl(Lt,{size:t.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":r.showClearButton=o?.[l];break;default:break}}),jl(Ps,{value:"Value",style:{width:300},...t,...r})};ea.options=ab;ea.states=ob;ea.variants=lb;ea.defaultOptions=tb;ea.modifiers=rb;ea.className=fe.className;import{jsx as st,jsxs as ei}from"react/jsx-runtime";var _s="k-actionsheet-titlebar",ib={},$e=e=>