UNPKG

@progress/kendo-themes-html

Version:

A collection of HTML helpers used for developing Kendo UI themes

1 lines 192 kB
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 L=(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"}),M=(e,o)=>{let{valid:t,invalid:r,hover:l,focus:n,checked:d,active:m,selected:b,disabled:N,indeterminate:x,loading:k,empty:u,readonly:v,highlighted:C,...I}=o;return a({"k-valid":t,"k-invalid":r,"k-hover":l,"k-focus":n,"k-checked":d,"k-active":m,"k-selected":b,"k-disabled":N,"k-indeterminate":x&&!d,"k-loading":k,"k-empty":u,"k-readonly":v,"k-highlighted":C},Object.keys(I).reduce((E,G)=>(G.startsWith("k-")?E[G]=I[G]:E[`k-${G}`]=I[G],E),{}))};function bn(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"},Io={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 cl={};function P(e){return cl[e]=(cl[e]||0)+1,`k-${e}-${cl[e]}`}import{Fragment as Bc,jsx as fn}from"react/jsx-runtime";var pl="k-font-icon",_c=[],Kc={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]},Dc={},Ha=e=>{let{size:o,themeColor:t,icon:r,rotate:l,flip:n,...d}=e;return r?fn("span",{...d,className:a(e.className,pl,L(pl,{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"}):fn(Bc,{})};Ha.states=_c;Ha.options=Kc;Ha.className=pl;Ha.defaultOptions=Dc;var Tn=Ha;import{Fragment as Fc,jsx as br}from"react/jsx-runtime";var ml="k-svg-icon",zc=[],Uc={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:[Io.outline,Io.solid,Io.duotone]},ul={viewBox:"0 0 24 24",variant:Io.outline},Pa=e=>{let{size:o,themeColor:t,rotate:r,flip:l,viewBox:n=ul.viewBox,variant:d=ul.variant,icon:m,...b}=e;if(!m)return br(Fc,{});if(m==="none")return br("span",{...b,className:a(e.className,ml,L("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 br("span",{...b,className:a(e.className,ml,L("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:br("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})})};Pa.states=zc;Pa.options=Uc;Pa.className=ml;Pa.defaultOptions=ul;var bl=Pa;import*as fl from"@progress/kendo-svg-icons";var gn="icon",hn="icons";import{useContext as Vc}from"react";import{createContext as $c}from"react";var xn=$c({iconsType:"svg"});import{Fragment as Nn,jsx as _a}from"react/jsx-runtime";var fr="k-icon",Wc=e=>e.replace(/([-_][a-z0-9])/gi,o=>o.toUpperCase().replace("-","").replace("_","")),Xc=[],Jc={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:[Io.outline,Io.solid,Io.duotone]},Tr={viewBox:"0 0 24 24",type:"svg",variant:Io.outline},f=e=>{let{iconsType:o}=Vc(xn),{size:t,themeColor:r,icon:l,type:n=o||Tr.type,rotate:d,flip:m,viewBox:b=Tr.viewBox,variant:N=Tr.variant,...x}=e;if(!l)return _a(Nn,{});if((o||n)==="svg"){if(l==="none")return _a(bl,{...x,className:a(e.className,fr),icon:l,size:t,variant:N});let u=fl[l]?l:Wc(`${l}-icon`);return fl[u]?_a(bl,{...x,className:a(e.className,fr),icon:fl[u],size:t,themeColor:r,rotate:d,flip:m,viewBox:b,variant:N}):_a(Nn,{})}return _a(Tn,{...x,className:a(e.className,fr),icon:l,size:t,themeColor:r,rotate:d,flip:m})};f.states=Xc;f.options=Jc;f.defaultOptions=Tr;f.className=fr;f.moduleName=gn;f.folderName=hn;f.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 gr}from"react/jsx-runtime";var qc="k-chip-action";var ce=e=>{let{type:o,...t}=e,r;switch(o){case"remove":r=gr(f,{icon:"x-circle",size:"small"});break;case"more":r=gr(f,{icon:"more-vertical",size:"small"});break;default:return gr(f,{icon:o,size:"small"})}return gr("span",{...t,className:a(e.className,qc,`k-chip-${o}-action`),children:r})};var Tl="avatar",kn=Tl;import{jsx as vn}from"react/jsx-runtime";var Ka="k-avatar";var Yc=[i.hover,i.focus,i.active,i.selected,i.disabled],Qc={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]},gl={type:"text",border:!1},Be=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,type:n=gl.type,border:d=gl.border,...m}=e;return vn("div",{...m,className:a(e.className,Ka,L(Ka,{size:o,rounded:t,fillMode:r,themeColor:l}),{[`${Ka}-bordered`]:d}),children:vn("span",{className:`${Ka}-${n}`,children:e.children})})};Be.states=Yc;Be.options=Qc;Be.className=Ka;Be.defaultOptions=gl;Be.moduleName=Tl;Be.folderName=kn;Be.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var Nt=Be;import{jsx as Zc}from"react/jsx-runtime";var wn=e=>Zc(Nt,{type:"icon",...e});import{jsx as jc}from"react/jsx-runtime";var Cn=e=>jc(Nt,{type:"text",...e});import{jsx as ep}from"react/jsx-runtime";var Ln=e=>ep(Nt,{type:"image",...e});import{jsx as JN}from"react/jsx-runtime";import{jsx as Da}from"react/jsx-runtime";var op=Be.options,tp=Be.states,ap={...Be.defaultOptions,variant:"image"},rp=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],lp=[],Kt=e=>{let{variant:o,...t}=e;switch(o){case"icon":return Da(wn,{...t,children:Da(f,{icon:"star"})});case"text":return Da(Cn,{...t,children:"JO"});default:return Da(Ln,{...t,children:Da("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};Kt.options=op;Kt.states=tp;Kt.variants=rp;Kt.defaultOptions=ap;Kt.modifiers=lp;Kt.className=Be.className;var Ba="chip",hr=Ba,xr="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as Dt,jsxs as sp}from"react/jsx-runtime";var Nr="k-chip",ip=[i.hover,i.focus,i.active,i.selected,i.disabled],np={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]},Mn={avatarImage:"/packages/html/assets/avatar.jpg"},le=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,text:n,icon:d,actions:m,showAvatar:b,avatarImage:N=Mn.avatarImage,hover:x,focus:k,active:u,selected:v,disabled:C,...I}=e;return sp("div",{...I,className:a(e.className,Nr,L(Nr,{size:o,rounded:t,fillMode:r,themeColor:l}),M(Nr,{hover:x,focus:k,active:u,disabled:C,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":C?"true":void 0,children:[d&&Dt(f,{className:"k-chip-icon",icon:d,size:"small"}),b&&Dt(Be,{className:"k-chip-avatar",type:"image",children:Dt("img",{src:N,alt:""})}),Dt("span",{className:"k-chip-content",children:e.children?e.children:n&&Dt("span",{className:"k-chip-label",children:n})}),m&&Dt("span",{className:"k-chip-actions",children:m})]})};le.states=ip;le.options=np;le.className=Nr;le.defaultOptions=Mn;le.moduleName=Ba;le.folderName=hr;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 po=le;import{jsx as mp}from"react/jsx-runtime";var hl="k-chip-list",dp=[],cp={size:[s.undefined,s.small,s.medium,s.large]},pp={},ie=e=>{let{size:o,multiselectable:t,ariaLabel:r,...l}=e;return mp("div",{...l,className:a(e.className,hl,L(hl,{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=dp;ie.options=cp;ie.className=hl;ie.defaultOptions=pp;ie.moduleName=Ba;ie.folderName=hr;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 Ck}from"react/jsx-runtime";import{jsx as Sk}from"react/jsx-runtime";import{jsx as up}from"react/jsx-runtime";var kr=e=>up(po,{text:"text",...e});import{jsx as Pk}from"react/jsx-runtime";import{jsx as Bk}from"react/jsx-runtime";import{Fragment as Wk,jsx as Vk,jsxs as Xk}from"react/jsx-runtime";import{jsx as Zk,jsxs as jk}from"react/jsx-runtime";import{jsx as rv,jsxs as lv}from"react/jsx-runtime";import{jsx as pv,jsxs as mv}from"react/jsx-runtime";import{jsx as Bt,jsxs as xp}from"react/jsx-runtime";var bp={...po.options,...ie.options},fp=[],Tp=ie.states,gp={...po.defaultOptions,...ie.defaultOptions},hp=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],zt=e=>{let{modifiers:o,className:t,...r}=e,l=o?.icon,n=o?.actions,d=o?.avatar,m=d?xr:void 0;return xp(ie,{size:r.size,className:t,children:[Bt(kr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:n?Bt(ce,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"}),Bt(kr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:n?Bt(ce,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"}),Bt(kr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:n?Bt(ce,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"})]})};zt.options=bp;zt.states=Tp;zt.variants=fp;zt.defaultOptions=gp;zt.modifiers=hp;zt.className=ie.className;import{jsx as xl}from"react/jsx-runtime";var Np=le.states,kp=le.defaultOptions,vp=le.options,wp=[],Cp=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],Ut=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]?xr:void 0;break;case"more-options":r.actions||(r.actions=[]),r.actions[0]=o?.[l]?xl(ce,{type:"more"}):void 0;break;case"remove-icon":r.actions||(r.actions=[]),r.actions[1]=o?.[l]?xl(ce,{type:"remove"}):void 0;break;default:break}}),xl(le,{...t,...r,children:"Chip component"})};Ut.options=vp;Ut.states=Np;Ut.variants=wp;Ut.defaultOptions=kp;Ut.modifiers=Cp;Ut.className=le.className;var Q="grid",ee=Q;import{jsx as Sp,jsxs as Ap}from"react/jsx-runtime";var vr="k-grid",Lp=[],Mp={size:[s.undefined,s.small,s.medium,s.large]},yp=[],yn={pagerPosition:"bottom"},O=e=>{let{size:o,pagerPosition:t=yn.pagerPosition,toolbar:r,pager:l,groupingHeader:n,gridSelectionAggregates:d,_renderAriaRoot:m,resizable:b,ariaColCount:N,ariaRowCount:x,ariaRootId:k,ariaRole:u="grid",...v}=e;return Ap("div",{...v,className:a(e.className,vr,{[`${vr}-resizable`]:b},L(vr,{size:o})),children:[r,t==="top"&&l,n,e.children&&m?Sp("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]})};O.states=Lp;O.options=Mp;O.variants=yp;O.className=vr;O.defaultOptions=yn;O.moduleName=Q;O.folderName=ee;O.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 Ip}from"react/jsx-runtime";var Sn="k-grid-header",X=e=>{let{draggable:o,...t}=e;return Ip("div",{...t,className:a(e.className,Sn,{"k-grid-draggable-header":o}),children:e.children})};X.className=Sn;X.moduleName=Q;X.folderName=ee;import{jsx as An,jsxs as Rp}from"react/jsx-runtime";var In="k-grouping-header",Re=e=>{let{dropHint:o,dropClue:t,...r}=e;return Rp("div",{...r,className:a(e.className,In),children:[t&&An("div",{className:"k-grouping-dropclue"}),e.children,An("div",{className:"k-grouping-drop-container",children:o})]})};Re.className=In;Re.moduleName=Q;Re.folderName=ee;import{jsx as Ep}from"react/jsx-runtime";var Rn="k-grid-pinned-container",za=e=>{let{position:o,...t}=e;return Ep("div",{...t,className:a(e.className,Rn,{"k-pos-bottom":o==="bottom"}),children:e.children})};za.className=Rn;za.moduleName=Q;za.folderName=ee;import{jsx as Gp}from"react/jsx-runtime";var En="k-grid-sticky-container",Ua=e=>{let{position:o,...t}=e;return Gp("div",{...t,className:a(e.className,En,{"k-pos-bottom":o==="bottom"}),children:e.children})};Ua.className=En;Ua.moduleName=Q;Ua.folderName=ee;var ye="table",Ee=ye;import{jsx as _p}from"react/jsx-runtime";var Gn="k-data-table",Op=[],Hp={size:[s.undefined,s.small,s.medium,s.large]},Pp={},Ko=e=>{let{size:o,...t}=e;return _p("div",{...t,className:a(e.className,Gn,L("k-table",{size:o})),children:e.children})};Ko.states=Op;Ko.options=Hp;Ko.className=Gn;Ko.defaultOptions=Pp;Ko.moduleName=ye;Ko.folderName=Ee;import{jsx as zp}from"react/jsx-runtime";var Nl="k-table-header-wrap",Kp=[i.hover,i.focus,i.disabled],Dp={},Bp={},Zo=e=>{let{children:o,hover:t,focus:r,disabled:l,...n}=e;return zp("div",{...n,className:a(e.className,Nl,M(Nl,{hover:t,focus:r,disabled:l})),children:o})};Zo.states=Kp;Zo.options=Dp;Zo.className=Nl;Zo.defaultOptions=Bp;Zo.moduleName=ye;Zo.folderName=Ee;import{jsx as Vp}from"react/jsx-runtime";var kl="k-table",Up=[],Fp={size:[s.undefined,s.small,s.medium,s.large]},$p={},Ge=e=>{let{size:o,...t}=e;return Vp("table",{...t,className:a(e.className,kl,L(kl,{size:o})),children:e.children})};Ge.states=Up;Ge.options=Fp;Ge.className=kl;Ge.defaultOptions=$p;Ge.moduleName=ye;Ge.folderName=Ee;import{jsx as vl}from"react/jsx-runtime";var wl="k-table-header",Wp=[i.hover,i.focus,i.disabled],Xp={},Jp={},Do=e=>{let{children:o,hover:t,focus:r,disabled:l,...n}=e;return vl("div",{...n,className:a(e.className,wl,M(wl,{hover:t,focus:r,disabled:l})),children:vl(Zo,{children:vl(Ge,{children:o})})})};Do.states=Wp;Do.options=Xp;Do.className=wl;Do.defaultOptions=Jp;Do.moduleName=ye;Do.folderName=Ee;import{jsx as Zp}from"react/jsx-runtime";var On="k-table-scroller",qp=[],Yp={},Qp={},Ft=e=>{let{children:o,...t}=e;return Zp("div",{...t,className:a(e.className,On),children:o})};Ft.states=qp;Ft.options=Yp;Ft.className=On;Ft.defaultOptions=Qp;Ft.moduleName=ye;Ft.folderName=Ee;import{jsx as Pw}from"react/jsx-runtime";import{jsx as tm}from"react/jsx-runtime";var Hn="k-table-footer",jp=[],em={},om={},jo=e=>{let{children:o,...t}=e;return tm("div",{...t,className:a(e.className,Hn),children:o})};jo.states=jp;jo.options=em;jo.className=Hn;jo.defaultOptions=om;jo.moduleName=ye;jo.folderName=Ee;import{jsx as im}from"react/jsx-runtime";var Cl="k-table-list",am=[],rm={size:[s.undefined,s.small,s.medium,s.large]},lm={},et=e=>{let{size:o,virtualization:t,...r}=e;return im("ul",{...r,className:a(e.className,"k-table",Cl,L(Cl,{size:o}),{"k-virtual-table":t}),children:e.children})};et.states=am;et.options=rm;et.className=Cl;et.defaultOptions=lm;et.moduleName=ye;et.folderName=Ee;import{jsx as sm}from"react/jsx-runtime";var nm="k-table-thead",U=e=>sm("thead",{className:a(e.className,nm),children:e.children});import{jsx as cm}from"react/jsx-runtime";var dm="k-table-tbody",J=e=>cm("tbody",{className:a(e.className,dm),children:e.children});import{jsx as eC}from"react/jsx-runtime";import{jsx as mm}from"react/jsx-runtime";var Ll="k-table-row",pm=[i.hover,i.focus,i.selected,i.disabled,i.highlighted],S=e=>{let{hover:o,focus:t,selected:r,highlighted:l,disabled:n,alt:d,...m}=e;return mm("tr",{...m,className:a(e.className,Ll,{"k-table-alt-row":d},M(Ll,{hover:o,focus:t,disabled:n,selected:r,highlighted:l})),children:e.children})};S.states=pm;S.className=Ll;import{jsx as bm}from"react/jsx-runtime";var Ml="k-table-row",um=[i.hover,i.focus,i.selected,i.disabled],wr=e=>{let{hover:o,focus:t,selected:r,disabled:l,alt:n,...d}=e;return bm("li",{...d,className:a(e.className,Ml,{"k-table-alt-row":n},M(Ml,{hover:o,focus:t,disabled:l,selected:r})),children:e.children})};wr.states=um;wr.className=Ml;import{jsx as fm}from"react/jsx-runtime";var Pn="k-table-th",Bo=e=>{let{text:o,colspan:t,rowspan:r,...l}=e,n=o||e.children;return fm("th",{colSpan:t,rowSpan:r,...l,className:a(e.className,Pn),children:n})};Bo.className=Pn;Bo.moduleName=ye;Bo.folderName=Ee;import{jsx as bC}from"react/jsx-runtime";import{jsx as gm}from"react/jsx-runtime";var yl="k-table-td",Tm=[i.focus,i.selected,i.highlighted],p=e=>{let{focus:o,selected:t,highlighted:r,text:l,colspan:n,rowspan:d,...m}=e,b=l||e.children;return gm("td",{colSpan:n,rowSpan:d,...m,className:a(e.className,yl,M(yl,{focus:o,selected:t,highlighted:r})),children:b})};p.states=Tm;p.className=yl;import{jsx as kC}from"react/jsx-runtime";import{jsx as LC}from"react/jsx-runtime";import{jsx as AC}from"react/jsx-runtime";import{jsx as GC}from"react/jsx-runtime";import{jsx as _C}from"react/jsx-runtime";import{jsx as $C,jsxs as VC}from"react/jsx-runtime";import{jsx as qC,jsxs as YC}from"react/jsx-runtime";import{jsx as eL,jsxs as oL}from"react/jsx-runtime";import{Fragment as nL,jsx as lL,jsxs as iL}from"react/jsx-runtime";import{jsx as Nm}from"react/jsx-runtime";var Dn="k-grid-header-table",q=e=>Nm(Ge,{...e,className:a(e.className,Dn),children:e.children});q.className=Dn;q.moduleName=Q;q.folderName=ee;import{jsx as ot,jsxs as Sl}from"react/jsx-runtime";var Al="k-header",km=[i.hover,i.focus,i.active],Bn={sortIcon:"sort-asc-small"},A=e=>{let{menu:o,sortable:t,filterable:r,sticky:l,resizable:n,columnTitle:d,hover:m,focus:b,active:N,sortIcon:x=Bn.sortIcon,sortOrder:k,accessibleLabel:u,...v}=e;return Sl(Bo,{...v,className:a(e.className,Al,{"k-filterable":o||r,"k-sorted":t,"k-grid-header-sticky":l,"k-touch-action-none":n},M(Al,{hover:m,focus:b,active:N})),children:[d&&Sl("span",{className:"k-cell-inner",children:[Sl("span",{className:"k-link",children:[ot("span",{className:"k-column-title",children:d}),t&&ot("span",{className:"k-sort-icon",children:ot(f,{icon:x})}),k&&ot("span",{className:"k-sort-order",children:k})]}),o&&ot("a",{className:a("k-grid-header-menu",{"k-active":N,"k-grid-filter-menu":o==="filter","k-grid-column-menu":o==="column"}),children:ot(f,{icon:o==="filter"?"filter":"more-vertical"})})]}),!d&&u&&ot("span",{className:"k-sr-only",children:u}),e.children,n&&ot("span",{className:"k-column-resizer k-touch-action-none"})]})};A.states=km;A.className=Al;A.defaultOptions=Bn;A.moduleName=Q;A.folderName=ee;import{jsx as vm}from"react/jsx-runtime";var zn="k-grid-container",F=e=>vm("div",{...e,className:a(e.className,zn),children:e.children});F.className=zn;F.moduleName=Q;F.folderName=ee;import{jsx as wm}from"react/jsx-runtime";var Un="k-grid-content",$=e=>wm("div",{...e,className:a(e.className,Un),children:e.children});$.className=Un;$.moduleName=Q;$.folderName=ee;import{jsx as Cm}from"react/jsx-runtime";var Fn="k-grid-table",V=e=>Cm(Ge,{...e,className:a(e.className,Fn),children:e.children});V.className=Fn;V.moduleName=Q;V.folderName=ee;import{jsx as Lm}from"react/jsx-runtime";var $n="k-grid-footer",Cr=e=>Lm("div",{...e,className:a(e.className,$n),children:e.children});Cr.className=$n;Cr.moduleName=Q;Cr.folderName=ee;import{jsx as Mm}from"react/jsx-runtime";var Vn="k-grid-footer-table",Lr=e=>Mm(Ge,{...e,className:a(e.className,Vn),children:e.children});Lr.className=Vn;Lr.moduleName=Q;Lr.folderName=ee;var Il="button",Wn=Il;import{Fragment as Xn,jsx as $t,jsxs as Jn}from"react/jsx-runtime";var Fa="k-button",ym=["icon-button"],Sm=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Am={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]},Rl={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:o="button",size:t,rounded:r,fillMode:l,themeColor:n,showArrow:d=Rl.showArrow,arrowIconName:m=Rl.arrowIconName,variant:b,hover:N,focus:x,active:k,selected:u,disabled:v,togglable:C,ariaDisabled:I,icon:E,iconSize:G,text:B,iconClassName:ge,className:de,..._e}=e,Ke=E!=null,De=e.children!==void 0;return Jn(o,{className:a(de,Fa,bn(Fa,b),L(Fa,{size:t,rounded:r,fillMode:l,themeColor:n}),M(Fa,{hover:N,focus:x,active:k,disabled:v||I,selected:u}),{"k-icon-button":!B&&!De&&Ke}),"aria-pressed":C?u?"true":"false":void 0,..._e,"aria-disabled":I?"true":void 0,disabled:v||void 0,children:[typeof E=="string"&&E&&$t(f,{className:a(ge,"k-button-icon"),icon:E,size:G}),E&&typeof E!="string"&&$t(Xn,{children:E}),B?Jn(Xn,{children:[B&&$t("span",{className:"k-button-text",children:B}),e.children]}):e.children&&$t("span",{className:"k-button-text",children:e.children}),d&&$t("span",{className:"k-menu-button-arrow k-button-arrow",children:$t(f,{icon:m})})]})};c.states=Sm;c.options=Am;c.variants=ym;c.className=Fa;c.defaultOptions=Rl;c.moduleName=Il;c.folderName=Wn;c.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 Im}from"react/jsx-runtime";var tt=e=>Im(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Rm}from"react/jsx-runtime";var $a=e=>Rm(c,{icon:"folder",children:"Button",...e});import{jsx as Em}from"react/jsx-runtime";var kt=e=>Em(c,{children:"Button",...e});import{jsx as El}from"react/jsx-runtime";var Gm=c.options,Om=c.states,Hm={...c.defaultOptions,variant:"text"},Pm=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],_m=[],Vt=e=>{let{variant:o,...t}=e;switch(o){case"icon-only":return El(tt,{...t,icon:"star"});case"icon-and-text":return El($a,{...t,icon:"star",children:"Button"});default:return El(kt,{...t,children:"Button"})}};Vt.options=Gm;Vt.states=Om;Vt.variants=Pm;Vt.defaultOptions=Hm;Vt.modifiers=_m;Vt.className=c.className;var Va="input",Mr=Va;import{jsx as zm}from"react/jsx-runtime";var yr="k-input",Km=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Dm={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]},Bm={},ve=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m,size:b,rounded:N,fillMode:x,...k}=e;return zm("span",{...k,className:a(e.className,yr,L(yr,{size:b,rounded:N,fillMode:x}),M(yr,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m}))})};ve.states=Km;ve.options=Dm;ve.className=yr;ve.defaultOptions=Bm;ve.moduleName=Va;ve.folderName=Mr;import{jsx as Vm}from"react/jsx-runtime";var Sr="k-picker",Um=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Fm={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]},$m={},Ro=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m,size:b,rounded:N,fillMode:x,...k}=e;return Vm("span",{...k,className:a(e.className,Sr,L(Sr,{size:b,rounded:N,fillMode:x}),M(Sr,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m})),children:e.children})};Ro.states=Um;Ro.options=Fm;Ro.className=Sr;Ro.defaultOptions=$m;Ro.moduleName=Va;Ro.folderName=Mr;import{Fragment as Jm,jsx as Gl}from"react/jsx-runtime";var qn="k-clear-value",Wm=[i.disabled,i.loading,i.readonly],Xm={},oo=e=>{let{disabled:o,loading:t,readonly:r,value:l}=e;return o||r||t||!l?Gl(Jm,{}):Gl("span",{className:a(e.className,qn),children:Gl(f,{icon:"x"})})};oo.states=Wm;oo.options=Xm;oo.className=qn;import{jsx as Qm}from"react/jsx-runtime";var Ol="k-input-inner",qm=[],Ym={},Ar={type:"text",autocomplete:"off",value:"",placeholder:""},to=e=>{let{value:o=Ar.value,type:t=Ar.type,placeholder:r=Ar.placeholder,autocomplete:l=Ar.autocomplete,disabled:n,readOnly:d,...m}=e;return Qm("input",{...m,type:t,className:a(e.className,Ol,L(Ol,e)),placeholder:r,autoComplete:l,defaultValue:o,disabled:n||void 0,readOnly:d||void 0})};to.states=qm;to.options=Ym;to.className=Ol;import{jsx as Yn,jsxs as eu}from"react/jsx-runtime";var Hl="k-input-inner",Zm=[],jm={},vt=e=>{let{value:o,placeholder:t,showValue:r,valueIcon:l,valueIconName:n,...d}=e;return eu("span",{...d,className:a(e.className,Hl,L(Hl,e)),children:[l,!l&&n&&Yn(f,{className:"k-input-value-icon",icon:n}),r&&!o&&t,r&&o&&Yn("span",{className:"k-input-value-text",children:o})]})};vt.states=Zm;vt.options=jm;vt.className=Hl;import{jsx as au}from"react/jsx-runtime";var Pl="k-input-inner",ou=[],tu={},Qn={value:"",placeholder:""},_l=e=>{let{value:o=Qn.value,placeholder:t=Qn.placeholder,rows:r,disabled:l,...n}=e;return au("textarea",{...n,className:a(e.className,Pl,L(Pl,e)),placeholder:t,rows:r,defaultValue:o,disabled:l||void 0})};_l.states=ou;_l.options=tu;_l.className=Pl;import{Fragment as lu,jsx as Zn}from"react/jsx-runtime";var jn="k-input-loading-icon",ru=[i.disabled,i.loading],qe=e=>{let{disabled:o,loading:t}=e;return o||!t?Zn(lu,{}):Zn("span",{className:a(e.className,jn,"k-icon k-i-loading")})};qe.states=ru;qe.className=jn;import{Fragment as su,jsx as es}from"react/jsx-runtime";var os="k-input-validation-icon",iu=[i.valid,i.invalid,i.disabled,i.loading],nu={},ze=e=>{let{valid:o,invalid:t,disabled:r,loading:l}=e,n=t?"warning-circle":"check-circle";return r||l||!!!(o||t)?es(su,{}):es(f,{className:a(os),icon:n})};ze.states=iu;ze.options=nu;ze.className=os;import{Fragment as pu,jsx as ts}from"react/jsx-runtime";var du="k-input-prefix",cu={direction:"horizontal"},mo=e=>{let{direction:o=cu.direction,...t}=e;return e.children?ts("span",{...t,className:a(du,e.className,{[`k-input-prefix-${o}`]:o}),children:e.children}):ts(pu,{})};import{Fragment as bu,jsx as as}from"react/jsx-runtime";var mu="k-input-suffix",uu={direction:"horizontal"},uo=e=>{let{direction:o=uu.direction,...t}=e;return e.children?as("span",{...t,className:a(mu,e.className,{[`k-input-suffix-${o}`]:o}),children:e.children}):as(bu,{})};import{jsx as Iy}from"react/jsx-runtime";import{jsx as Tu}from"react/jsx-runtime";var fu="k-input-suffix-text",Kl=e=>{let{children:o,...t}=e;return Tu("span",{...t,className:a(fu,e.className),children:o})};import{jsx as hu}from"react/jsx-runtime";var rs="k-input-separator",gu={direction:"vertical"},bo=e=>{let{direction:o=gu.direction,...t}=e;return hu("span",{...t,className:a(rs,e.className,{[`${rs}-${o}`]:o})})};import{Fragment as ls,jsx as Eo,jsxs as Dl}from"react/jsx-runtime";var xu=ve.states,Nu=ve.defaultOptions,ku=ve.options,vu=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],wu=[],Wt=e=>{let{modifiers:o,valid:t,invalid:r,loading:l,disabled:n,readonly:d,...m}=e,b=o?.prefix,N=o?.suffix,x=o?.["clear-button"],k=o?.["validation-icon"],u=o?.separators;return Dl(ve,{...m,valid:t,invalid:r,loading:l,disabled:n,readonly:d,style:{width:300},children:[b&&Dl(ls,{children:[Eo(mo,{children:Eo(f,{icon:"lock"})}),u&&Eo(bo,{})]}),Eo(to,{placeholder:"Placeholder",value:"Value"}),k&&Eo(ze,{valid:t,invalid:r,loading:l,disabled:n}),Eo(qe,{loading:l,disabled:n}),x&&Eo(oo,{loading:l,disabled:n,readonly:d,value:"Value"}),N&&Dl(ls,{children:[u&&Eo(bo,{}),Eo(uo,{children:Eo(kt,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};Wt.options=ku;Wt.states=xu;Wt.variants=wu;Wt.defaultOptions=Nu;Wt.modifiers=vu;Wt.className=ve.className;var Bl="popup",is=Bl;import{jsx as ns}from"react/jsx-runtime";var ss="k-animation-container",Cu=[],Lu={},zl={positionMode:"absolute",shown:!0},Go=e=>{let{positionMode:o=zl.positionMode,shown:t=zl.shown,animationStyle:r,offset:l,...n}=e;return ns("div",{...n,style:{...l,...e.style},className:a(e.className,ss,{"k-animation-container-shown":t,"k-animation-container-fixed":o==="fixed"}),children:ns("div",{className:"k-child-animation-container",style:r,children:e.children})})};Go.states=Cu;Go.options=Lu;Go.className=ss;Go.defaultOptions=zl;Go.moduleName=Bl;Go.folderName=is;var Ul="popup",ds=Ul;import{jsx as cs}from"react/jsx-runtime";var ps="k-popup",Mu=[],yu={},ms={positionMode:"absolute"},ae=e=>{let{offset:o,positionMode:t=ms.positionMode,animationStyle:r,containerClassName:l,containerRole:n,containerAriaLabel:d,...m}=e;return cs(Go,{positionMode:t,offset:o,animationStyle:r,className:l,role:n,"aria-label":d,children:cs("div",{...m,className:a(e.className,ps),children:e.children})})};ae.states=Mu;ae.options=yu;ae.className=ps;ae.defaultOptions=ms;ae.moduleName=Ul;ae.folderName=ds;ae.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 Fl="action-buttons",us=Fl;import{jsx as Iu}from"react/jsx-runtime";var Ir="k-actions",Su=[],Au={},$l={alignment:"start",orientation:"horizontal"},fo=e=>{let{alignment:o=$l.alignment,orientation:t=$l.orientation,...r}=e;return Iu("div",{...r,className:a(Ir,{[`${Ir}-${o}`]:o,[`${Ir}-${t}`]:t},e.className),children:e.children})};fo.states=Su;fo.options=Au;fo.className=Ir;fo.defaultOptions=$l;fo.moduleName=Fl;fo.folderName=us;import{jsx as Eu}from"react/jsx-runtime";var Ru="k-actionsheet-footer",bs={alignment:"stretched",orientation:"horizontal"},at=e=>{let{alignment:o=bs.alignment,orientation:t=bs.orientation,template:r,as:l=r?"div":fo,...n}=e;return Eu(l,{...n,...!r&&{alignment:o,orientation:t},className:a(e.className,Ru),children:e.children})};var Vl="searchbox",fs=Vl;import{jsx as Wa,jsxs as Hu}from"react/jsx-runtime";var Ts="k-searchbox",Gu=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],Ou={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]},Wl={showIcon:!0,icon:"search"},ao=e=>{let{value:o,placeholder:t,size:r,rounded:l,fillMode:n,hover:d,focus:m,valid:b,invalid:N,required:x,loading:k,disabled:u,showIcon:v=Wl.showIcon,icon:C=Wl.icon,"aria-label":I,...E}=e;return Hu(ve,{...E,size:r,rounded:l,fillMode:n,hover:d,focus:m,valid:b,invalid:N,required:x,loading:k,disabled:u,className:a(e.className,Ts),children:[v&&Wa(f,{className:"k-input-icon",icon:C}),Wa(to,{placeholder:t,value:o,"aria-label":I}),Wa(qe,{...e}),Wa(ze,{...e}),Wa(oo,{...e})]})};ao.states=Gu;ao.options=Ou;ao.className=Ts;ao.defaultOptions=Wl;ao.moduleName=Vl;ao.folderName=fs;import{jsx as qS}from"react/jsx-runtime";var Xl="textbox",gs=Xl;import{Fragment as hs,jsx as rt,jsxs as Jl}from"react/jsx-runtime";var xs="k-textbox",Pu=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],_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]},Rr={showClearButton:!0,showValidationIcon:!0,separators:!0},me=e=>{let{size:o,rounded:t,fillMode:r,separators:l=Rr.separators,showClearButton:n=Rr.showClearButton,showValidationIcon:d=Rr.showValidationIcon,prefix:m,suffix:b,type:N,value:x,placeholder:k,hover:u,focus:v,valid:C,invalid:I,required:E,loading:G,disabled:B,readonly:ge,id:de,"aria-label":_e,"aria-describedby":Ke,...De}=e;return Jl(ve,{...De,size:o,rounded:t,fillMode:r,hover:u,focus:v,valid:C,invalid:I,required:E,loading:G,disabled:B,readonly:ge,className:a(e.className,xs),children:[m&&Jl(hs,{children:[rt(mo,{children:m}),l&&rt(bo,{})]}),rt(to,{id:de,placeholder:k,value:x,type:N,disabled:B,"aria-label":_e,"aria-describedby":Ke,"aria-invalid":I?"true":void 0}),d&&rt(ze,{valid:C,invalid:I,loading:G,disabled:B}),rt(qe,{loading:G,disabled:B}),n&&rt(oo,{loading:G,disabled:B,readonly:ge,value:x}),b&&Jl(hs,{children:[l&&rt(bo,{}),rt(uo,{children:b})]})]})};me.states=Pu;me.options=_u;me.className=xs;me.defaultOptions=Rr;me.moduleName=Xl;me.folderName=gs;me.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 Xa=me;import{jsx as Ku}from"react/jsx-runtime";var Ns=e=>Ku(Xa,{...e});import{Fragment as uA,jsx as mA}from"react/jsx-runtime";import{Fragment as xA,jsx as hA}from"react/jsx-runtime";import{jsx as wA}from"react/jsx-runtime";import{jsx as ql}from"react/jsx-runtime";var Du=me.states,Bu=me.defaultOptions,zu=me.options,Uu=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Fu=[],Xt=e=>{let{modifiers:o,...t}=e,r={};return Object.keys(o||{}).forEach(l=>{switch(l){case"prefix":r.prefix=o?.[l]?ql(f,{icon:"lock"}):void 0;break;case"suffix":r.suffix=o?.[l]?ql(kt,{size:t.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":r.showClearButton=o?.[l];break;default:break}}),ql(Ns,{value:"Value",style:{width:300},...t,...r})};Xt.options=zu;Xt.states=Du;Xt.variants=Fu;Xt.defaultOptions=Bu;Xt.modifiers=Uu;Xt.className=me.className;import{jsx as lt,jsxs as Yl}from"react/jsx-runtime";var ks="k-actionsheet-titlebar",$u={},Ue=e=>