@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 198 kB
JavaScript
var Ym=Object.create;var Ar=Object.defineProperty;var Qm=Object.getOwnPropertyDescriptor;var Zm=Object.getOwnPropertyNames;var jm=Object.getPrototypeOf,eu=Object.prototype.hasOwnProperty;var ou=(e,o)=>{for(var t in o)Ar(e,t,{get:o[t],enumerable:!0})},bs=(e,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let l of Zm(o))!eu.call(e,l)&&l!==t&&Ar(e,l,{get:()=>o[l],enumerable:!(r=Qm(o,l))||r.enumerable});return e};var fs=(e,o,t)=>(t=e!=null?Ym(jm(e)):{},bs(o||!e||!e.__esModule?Ar(t,"default",{value:e,enumerable:!0}):t,e)),tu=e=>bs(Ar({},"__esModule",{value:!0}),e);var VN={};ou(VN,{GridWithGrouping:()=>ms});module.exports=tu(VN);var a=(...e)=>e.filter(o=>o!==!0&&!!o).map(o=>Array.isArray(o)?a(...o):typeof o=="object"?Object.keys(o).map((t,r)=>o[r]||o[t]&&t||null).filter(t=>t!==null).join(" "):o).filter(o=>!!o).join(" ");var y=(e,o)=>a({[`${e}-xs`]:o.size==="xsmall",[`${e}-sm`]:o.size==="small",[`${e}-md`]:o.size==="medium",[`${e}-lg`]:o.size==="large",[`${e}-xl`]:o.size==="xlarge",[`${e}-xxl`]:o.size==="xxlarge",[`${e}-xxxl`]:o.size==="xxxlarge"},{[`${e}-${o.fillMode}`]:o.fillMode},{[`${e}-${o.themeColor}`]:o.themeColor},{"k-rounded-sm":o.rounded==="small","k-rounded-md":o.rounded==="medium","k-rounded-lg":o.rounded==="large","k-rounded-full":o.rounded==="full","k-rounded-none":o.rounded==="none"}),S=(e,o)=>{let{valid:t,invalid:r,hover:l,focus:n,checked:d,active:m,selected:f,disabled:k,indeterminate:N,loading:v,empty:b,readonly:w,highlighted:C,...G}=o;return a({"k-valid":t,"k-invalid":r,"k-hover":l,"k-focus":n,"k-checked":d,"k-active":m,"k-selected":f,"k-disabled":k,"k-indeterminate":N&&!d,"k-loading":v,"k-empty":b,"k-readonly":w,"k-highlighted":C},Object.keys(G).reduce((H,P)=>(P.startsWith("k-")?H[P]=G[P]:H[`k-${P}`]=G[P],H),{}))};function Ts(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"},Uo={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},M={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 B(e){return Cl[e]=(Cl[e]||0)+1,`k-${e}-${Cl[e]}`}var Ja=require("react/jsx-runtime"),Ll="k-font-icon",au=[],ru={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info]},lu={},qa=e=>{let{size:o,themeColor:t,icon:r,rotate:l,flip:n,...d}=e;return r?(0,Ja.jsx)("span",{...d,className:a(e.className,Ll,y(Ll,{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"}):(0,Ja.jsx)(Ja.Fragment,{})};qa.states=au;qa.options=ru;qa.className=Ll;qa.defaultOptions=lu;var gs=qa;var Pt=require("react/jsx-runtime"),Ml="k-svg-icon",iu=[],nu={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info],variant:[Uo.outline,Uo.solid,Uo.duotone]},yl={viewBox:"0 0 24 24",variant:Uo.outline},Ya=e=>{var v,b;let{size:o,themeColor:t,rotate:r,flip:l,viewBox:n=yl.viewBox,variant:d=yl.variant,icon:m,...f}=e;if(!m)return(0,Pt.jsx)(Pt.Fragment,{});if(m==="none")return(0,Pt.jsx)("span",{...f,className:a(e.className,Ml,y("k-icon",{size:o}),"k-none"),"aria-hidden":"true"});let k=typeof m=="object"&&m.name&&m.name,N=typeof m=="object"?d&&((v=m.variants)==null?void 0:v[d])||((b=m.variants)==null?void 0:b.outline)||m.content:void 0;return(0,Pt.jsx)("span",{...f,className:a(e.className,Ml,y("k-icon",{size:o}),{[`k-svg-i-${k}`]:k,[`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:(0,Pt.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:n,dangerouslySetInnerHTML:N!==void 0?{__html:N}:void 0,children:m?void 0:e.children})})};Ya.states=iu;Ya.options=nu;Ya.className=Ml;Ya.defaultOptions=yl;var Sl=Ya;var Al=fs(require("@progress/kendo-svg-icons"));var hs="icon",xs="icons";var vs=require("react");var Ns=require("react"),ks=(0,Ns.createContext)({iconsType:"svg"});var Zo=require("react/jsx-runtime"),Ir="k-icon",su=e=>e.replace(/([-_][a-z0-9])/gi,o=>o.toUpperCase().replace("-","").replace("_","")),du=[],cu={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info],variant:[Uo.outline,Uo.solid,Uo.duotone]},Rr={viewBox:"0 0 24 24",type:"svg",variant:Uo.outline},T=e=>{let{iconsType:o}=(0,vs.useContext)(ks),{size:t,themeColor:r,icon:l,type:n=o||Rr.type,rotate:d,flip:m,viewBox:f=Rr.viewBox,variant:k=Rr.variant,...N}=e;if(!l)return(0,Zo.jsx)(Zo.Fragment,{});if((o||n)==="svg"){if(l==="none")return(0,Zo.jsx)(Sl,{...N,className:a(e.className,Ir),icon:l,size:t,variant:k});let b=Al[l]?l:su(`${l}-icon`);return Al[b]?(0,Zo.jsx)(Sl,{...N,className:a(e.className,Ir),icon:Al[b],size:t,themeColor:r,rotate:d,flip:m,viewBox:f,variant:k}):(0,Zo.jsx)(Zo.Fragment,{})}return(0,Zo.jsx)(gs,{...N,className:a(e.className,Ir),icon:l,size:t,themeColor:r,rotate:d,flip:m})};T.states=du;T.options=cu;T.defaultOptions=Rr;T.className=Ir;T.moduleName=hs;T.folderName=xs;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."}]};var Qa=require("react/jsx-runtime"),pu="k-chip-action";var ce=e=>{let{type:o,...t}=e,r;switch(o){case"remove":r=(0,Qa.jsx)(T,{icon:"x-circle",size:"small"});break;case"more":r=(0,Qa.jsx)(T,{icon:"more-vertical",size:"small"});break;default:return(0,Qa.jsx)(T,{icon:o,size:"small"})}return(0,Qa.jsx)("span",{...t,className:a(e.className,pu,`k-chip-${o}-action`),children:r})};var Il="avatar",ws=Il;var El=require("react/jsx-runtime"),Za="k-avatar";var mu=[i.hover,i.focus,i.active,i.selected,i.disabled],uu={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:[M.undefined,M.base,M.primary,M.secondary,M.tertiary]},Rl={type:"text",border:!1},je=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,type:n=Rl.type,border:d=Rl.border,...m}=e;return(0,El.jsx)("div",{...m,className:a(e.className,Za,y(Za,{size:o,rounded:t,fillMode:r,themeColor:l}),{[`${Za}-bordered`]:d}),children:(0,El.jsx)("span",{className:`${Za}-${n}`,children:e.children})})};je.states=mu;je.options=uu;je.className=Za;je.defaultOptions=Rl;je.moduleName=Il;je.folderName=ws;je.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var _t=je;var Ls=require("react/jsx-runtime"),Cs=e=>(0,Ls.jsx)(_t,{type:"icon",...e});var ys=require("react/jsx-runtime"),Ms=e=>(0,ys.jsx)(_t,{type:"text",...e});var As=require("react/jsx-runtime"),Ss=e=>(0,As.jsx)(_t,{type:"image",...e});var bu=require("react/jsx-runtime");var Yt=require("react/jsx-runtime"),fu=je.options,Tu=je.states,gu={...je.defaultOptions,variant:"image"},hu=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],xu=[],Qt=e=>{let{variant:o,...t}=e;switch(o){case"icon":return(0,Yt.jsx)(Cs,{...t,children:(0,Yt.jsx)(T,{icon:"star"})});case"text":return(0,Yt.jsx)(Ms,{...t,children:"JO"});default:return(0,Yt.jsx)(Ss,{...t,children:(0,Yt.jsx)("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};Qt.options=fu;Qt.states=Tu;Qt.variants=hu;Qt.defaultOptions=gu;Qt.modifiers=xu;Qt.className=je.className;var ja="chip",Er=ja,Gr="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";var jo=require("react/jsx-runtime"),Or="k-chip",Nu=[i.hover,i.focus,i.active,i.selected,i.disabled],ku={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:[M.undefined,M.base,M.success,M.warning,M.error,M.info]},Is={avatarImage:"/packages/html/assets/avatar.jpg"},le=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,text:n,icon:d,actions:m,showAvatar:f,avatarImage:k=Is.avatarImage,hover:N,focus:v,active:b,selected:w,disabled:C,...G}=e;return(0,jo.jsxs)("div",{...G,className:a(e.className,Or,y(Or,{size:o,rounded:t,fillMode:r,themeColor:l}),S(Or,{hover:N,focus:v,active:b,disabled:C,selected:w})),role:e.role||"button","aria-pressed":e.role==="option"?void 0:w?"true":"false",...e.role==="option"&&w!==void 0&&{"aria-selected":w?"true":"false"},"aria-disabled":C?"true":void 0,children:[d&&(0,jo.jsx)(T,{className:"k-chip-icon",icon:d,size:"small"}),f&&(0,jo.jsx)(je,{className:"k-chip-avatar",type:"image",children:(0,jo.jsx)("img",{src:k,alt:""})}),(0,jo.jsx)("span",{className:"k-chip-content",children:e.children?e.children:n&&(0,jo.jsx)("span",{className:"k-chip-label",children:n})}),m&&(0,jo.jsx)("span",{className:"k-chip-actions",children:m})]})};le.states=Nu;le.options=ku;le.className=Or;le.defaultOptions=Is;le.moduleName=ja;le.folderName=Er;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 Mo=le;var Rs=require("react/jsx-runtime"),Gl="k-chip-list",vu=[],wu={size:[s.undefined,s.small,s.medium,s.large]},Cu={},ie=e=>{let{size:o,multiselectable:t,ariaLabel:r,...l}=e;return(0,Rs.jsx)("div",{...l,className:a(e.className,Gl,y(Gl,{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=vu;ie.options=wu;ie.className=Gl;ie.defaultOptions=Cu;ie.moduleName=ja;ie.folderName=Er;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."}]};var Lu=require("react/jsx-runtime");var Mu=require("react/jsx-runtime");var Es=require("react/jsx-runtime"),Hr=e=>(0,Es.jsx)(Mo,{text:"text",...e});var yu=require("react/jsx-runtime");var Su=require("react/jsx-runtime");var Ol=require("react/jsx-runtime");var Gs=require("react/jsx-runtime");var Os=require("react/jsx-runtime");var Hs=require("react/jsx-runtime");var et=require("react/jsx-runtime"),Au={...Mo.options,...ie.options},Iu=[],Ru=ie.states,Eu={...Mo.defaultOptions,...ie.defaultOptions},Gu=[{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==null?void 0:o.icon,n=o==null?void 0:o.actions,d=o==null?void 0:o.avatar,m=d?Gr:void 0;return(0,et.jsxs)(ie,{size:r.size,className:t,children:[(0,et.jsx)(Hr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:n?(0,et.jsx)(ce,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"}),(0,et.jsx)(Hr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:n?(0,et.jsx)(ce,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"}),(0,et.jsx)(Hr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:n?(0,et.jsx)(ce,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"})]})};Zt.options=Au;Zt.states=Ru;Zt.variants=Iu;Zt.defaultOptions=Eu;Zt.modifiers=Gu;Zt.className=ie.className;var Pr=require("react/jsx-runtime"),Ou=le.states,Hu=le.defaultOptions,Pu=le.options,_u=[],Ku=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],jt=e=>{let{modifiers:o,...t}=e,r={};return Object.keys(o||{}).forEach(l=>{switch(l){case"icon":r.icon=o!=null&&o[l]?"arrow-down":void 0;break;case"avatar":r.showAvatar=!!(o!=null&&o[l]),r.avatarImage=o!=null&&o[l]?Gr:void 0;break;case"more-options":r.actions||(r.actions=[]),r.actions[0]=o!=null&&o[l]?(0,Pr.jsx)(ce,{type:"more"}):void 0;break;case"remove-icon":r.actions||(r.actions=[]),r.actions[1]=o!=null&&o[l]?(0,Pr.jsx)(ce,{type:"remove"}):void 0;break;default:break}}),(0,Pr.jsx)(le,{...t,...r,children:"Chip component"})};jt.options=Pu;jt.states=Ou;jt.variants=_u;jt.defaultOptions=Hu;jt.modifiers=Ku;jt.className=le.className;var j="grid",oe=j;var Kr=require("react/jsx-runtime"),_r="k-grid",Du=[],Bu={size:[s.undefined,s.small,s.medium,s.large]},zu=[],Ps={pagerPosition:"bottom"},_=e=>{let{size:o,pagerPosition:t=Ps.pagerPosition,toolbar:r,pager:l,groupingHeader:n,gridSelectionAggregates:d,_renderAriaRoot:m,resizable:f,ariaColCount:k,ariaRowCount:N,ariaRootId:v,ariaRole:b="grid",...w}=e;return(0,Kr.jsxs)("div",{...w,className:a(e.className,_r,{[`${_r}-resizable`]:f},y(_r,{size:o})),children:[r,t==="top"&&l,n,e.children&&m?(0,Kr.jsx)("div",{className:"k-grid-aria-root",role:b,id:v,"aria-colcount":k,"aria-rowcount":N,children:e.children}):e.children,d,t==="bottom"&&l]})};_.states=Du;_.options=Bu;_.variants=zu;_.className=_r;_.defaultOptions=Ps;_.moduleName=j;_.folderName=oe;_.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."}]};var Ks=require("react/jsx-runtime"),_s="k-grid-header",q=e=>{let{draggable:o,...t}=e;return(0,Ks.jsx)("div",{...t,className:a(e.className,_s,{"k-grid-draggable-header":o}),children:e.children})};q.className=_s;q.moduleName=j;q.folderName=oe;var er=require("react/jsx-runtime"),Ds="k-grouping-header",ze=e=>{let{dropHint:o,dropClue:t,...r}=e;return(0,er.jsxs)("div",{...r,className:a(e.className,Ds),children:[t&&(0,er.jsx)("div",{className:"k-grouping-dropclue"}),e.children,(0,er.jsx)("div",{className:"k-grouping-drop-container",children:o})]})};ze.className=Ds;ze.moduleName=j;ze.folderName=oe;var zs=require("react/jsx-runtime"),Bs="k-grid-pinned-container",or=e=>{let{position:o,...t}=e;return(0,zs.jsx)("div",{...t,className:a(e.className,Bs,{"k-pos-bottom":o==="bottom"}),children:e.children})};or.className=Bs;or.moduleName=j;or.folderName=oe;var Fs=require("react/jsx-runtime"),Us="k-grid-sticky-container",tr=e=>{let{position:o,...t}=e;return(0,Fs.jsx)("div",{...t,className:a(e.className,Us,{"k-pos-bottom":o==="bottom"}),children:e.children})};tr.className=Us;tr.moduleName=j;tr.folderName=oe;var Ee="table",Ue=Ee;var Vs=require("react/jsx-runtime"),$s="k-data-table",Uu=[],Fu={size:[s.undefined,s.small,s.medium,s.large]},$u={},ot=e=>{let{size:o,...t}=e;return(0,Vs.jsx)("div",{...t,className:a(e.className,$s,y("k-table",{size:o})),children:e.children})};ot.states=Uu;ot.options=Fu;ot.className=$s;ot.defaultOptions=$u;ot.moduleName=Ee;ot.folderName=Ue;var Ws=require("react/jsx-runtime"),Hl="k-table-header-wrap",Vu=[i.hover,i.focus,i.disabled],Wu={},Xu={},gt=e=>{let{children:o,hover:t,focus:r,disabled:l,...n}=e;return(0,Ws.jsx)("div",{...n,className:a(e.className,Hl,S(Hl,{hover:t,focus:r,disabled:l})),children:o})};gt.states=Vu;gt.options=Wu;gt.className=Hl;gt.defaultOptions=Xu;gt.moduleName=Ee;gt.folderName=Ue;var Xs=require("react/jsx-runtime"),Pl="k-table",Ju=[],qu={size:[s.undefined,s.small,s.medium,s.large]},Yu={},Fe=e=>{let{size:o,...t}=e;return(0,Xs.jsx)("table",{...t,className:a(e.className,Pl,y(Pl,{size:o})),children:e.children})};Fe.states=Ju;Fe.options=qu;Fe.className=Pl;Fe.defaultOptions=Yu;Fe.moduleName=Ee;Fe.folderName=Ue;var Dr=require("react/jsx-runtime"),_l="k-table-header",Qu=[i.hover,i.focus,i.disabled],Zu={},ju={},tt=e=>{let{children:o,hover:t,focus:r,disabled:l,...n}=e;return(0,Dr.jsx)("div",{...n,className:a(e.className,_l,S(_l,{hover:t,focus:r,disabled:l})),children:(0,Dr.jsx)(gt,{children:(0,Dr.jsx)(Fe,{children:o})})})};tt.states=Qu;tt.options=Zu;tt.className=_l;tt.defaultOptions=ju;tt.moduleName=Ee;tt.folderName=Ue;var qs=require("react/jsx-runtime"),Js="k-table-scroller",eb=[],ob={},tb={},ea=e=>{let{children:o,...t}=e;return(0,qs.jsx)("div",{...t,className:a(e.className,Js),children:o})};ea.states=eb;ea.options=ob;ea.className=Js;ea.defaultOptions=tb;ea.moduleName=Ee;ea.folderName=Ue;var ab=require("react/jsx-runtime");var Qs=require("react/jsx-runtime"),Ys="k-table-footer",rb=[],lb={},ib={},ht=e=>{let{children:o,...t}=e;return(0,Qs.jsx)("div",{...t,className:a(e.className,Ys),children:o})};ht.states=rb;ht.options=lb;ht.className=Ys;ht.defaultOptions=ib;ht.moduleName=Ee;ht.folderName=Ue;var Zs=require("react/jsx-runtime"),Kl="k-table-list",nb=[],sb={size:[s.undefined,s.small,s.medium,s.large]},db={},xt=e=>{let{size:o,virtualization:t,...r}=e;return(0,Zs.jsx)("ul",{...r,className:a(e.className,"k-table",Kl,y(Kl,{size:o}),{"k-virtual-table":t}),children:e.children})};xt.states=nb;xt.options=sb;xt.className=Kl;xt.defaultOptions=db;xt.moduleName=Ee;xt.folderName=Ue;var js=require("react/jsx-runtime"),cb="k-table-thead",$=e=>(0,js.jsx)("thead",{className:a(e.className,cb),children:e.children});var ed=require("react/jsx-runtime"),pb="k-table-tbody",Y=e=>(0,ed.jsx)("tbody",{className:a(e.className,pb),children:e.children});var mb=require("react/jsx-runtime");var od=require("react/jsx-runtime"),Dl="k-table-row",ub=[i.hover,i.focus,i.selected,i.disabled,i.highlighted],A=e=>{let{hover:o,focus:t,selected:r,highlighted:l,disabled:n,alt:d,...m}=e;return(0,od.jsx)("tr",{...m,className:a(e.className,Dl,{"k-table-alt-row":d},S(Dl,{hover:o,focus:t,disabled:n,selected:r,highlighted:l})),children:e.children})};A.states=ub;A.className=Dl;var td=require("react/jsx-runtime"),Bl="k-table-row",bb=[i.hover,i.focus,i.selected,i.disabled],Br=e=>{let{hover:o,focus:t,selected:r,disabled:l,alt:n,...d}=e;return(0,td.jsx)("li",{...d,className:a(e.className,Bl,{"k-table-alt-row":n},S(Bl,{hover:o,focus:t,disabled:l,selected:r})),children:e.children})};Br.states=bb;Br.className=Bl;var rd=require("react/jsx-runtime"),ad="k-table-th",at=e=>{let{text:o,colspan:t,rowspan:r,...l}=e,n=o||e.children;return(0,rd.jsx)("th",{colSpan:t,rowSpan:r,...l,className:a(e.className,ad),children:n})};at.className=ad;at.moduleName=Ee;at.folderName=Ue;var fb=require("react/jsx-runtime");var ld=require("react/jsx-runtime"),zl="k-table-td",Tb=[i.focus,i.selected,i.highlighted],p=e=>{let{focus:o,selected:t,highlighted:r,text:l,colspan:n,rowspan:d,...m}=e,f=l||e.children;return(0,ld.jsx)("td",{colSpan:n,rowSpan:d,...m,className:a(e.className,zl,S(zl,{focus:o,selected:t,highlighted:r})),children:f})};p.states=Tb;p.className=zl;var gb=require("react/jsx-runtime");var hb=require("react/jsx-runtime");var xb=require("react/jsx-runtime");var Nb=require("react/jsx-runtime");var kb=require("react/jsx-runtime");var nd=require("react/jsx-runtime");var sd=require("react/jsx-runtime");var cd=require("react/jsx-runtime");var Ul=require("react/jsx-runtime");var md=require("react/jsx-runtime"),pd="k-grid-header-table",Q=e=>(0,md.jsx)(Fe,{...e,className:a(e.className,pd),children:e.children});Q.className=pd;Q.moduleName=j;Q.folderName=oe;var fo=require("react/jsx-runtime"),Fl="k-header",Cb=[i.hover,i.focus,i.active],ud={sortIcon:"sort-asc-small"},R=e=>{let{menu:o,sortable:t,filterable:r,sticky:l,resizable:n,columnTitle:d,hover:m,focus:f,active:k,sortIcon:N=ud.sortIcon,sortOrder:v,accessibleLabel:b,...w}=e;return(0,fo.jsxs)(at,{...w,className:a(e.className,Fl,{"k-filterable":o||r,"k-sorted":t,"k-grid-header-sticky":l,"k-touch-action-none":n},S(Fl,{hover:m,focus:f,active:k})),children:[d&&(0,fo.jsxs)("span",{className:"k-cell-inner",children:[(0,fo.jsxs)("span",{className:"k-link",children:[(0,fo.jsx)("span",{className:"k-column-title",children:d}),t&&(0,fo.jsx)("span",{className:"k-sort-icon",children:(0,fo.jsx)(T,{icon:N})}),v&&(0,fo.jsx)("span",{className:"k-sort-order",children:v})]}),o&&(0,fo.jsx)("a",{className:a("k-grid-header-menu",{"k-active":k,"k-grid-filter-menu":o==="filter","k-grid-column-menu":o==="column"}),children:(0,fo.jsx)(T,{icon:o==="filter"?"filter":"more-vertical"})})]}),!d&&b&&(0,fo.jsx)("span",{className:"k-sr-only",children:b}),e.children,n&&(0,fo.jsx)("span",{className:"k-column-resizer k-touch-action-none"})]})};R.states=Cb;R.className=Fl;R.defaultOptions=ud;R.moduleName=j;R.folderName=oe;var fd=require("react/jsx-runtime"),bd="k-grid-container",V=e=>(0,fd.jsx)("div",{...e,className:a(e.className,bd),children:e.children});V.className=bd;V.moduleName=j;V.folderName=oe;var gd=require("react/jsx-runtime"),Td="k-grid-content",W=e=>(0,gd.jsx)("div",{...e,className:a(e.className,Td),children:e.children});W.className=Td;W.moduleName=j;W.folderName=oe;var xd=require("react/jsx-runtime"),hd="k-grid-table",X=e=>(0,xd.jsx)(Fe,{...e,className:a(e.className,hd),children:e.children});X.className=hd;X.moduleName=j;X.folderName=oe;var kd=require("react/jsx-runtime"),Nd="k-grid-footer",zr=e=>(0,kd.jsx)("div",{...e,className:a(e.className,Nd),children:e.children});zr.className=Nd;zr.moduleName=j;zr.folderName=oe;var wd=require("react/jsx-runtime"),vd="k-grid-footer-table",Ur=e=>(0,wd.jsx)(Fe,{...e,className:a(e.className,vd),children:e.children});Ur.className=vd;Ur.moduleName=j;Ur.folderName=oe;var $l="button",Cd=$l;var To=require("react/jsx-runtime"),ar="k-button",Lb=["icon-button"],Mb=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],yb={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:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info,M.inverse]},Vl={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:o="button",size:t,rounded:r,fillMode:l,themeColor:n,showArrow:d=Vl.showArrow,arrowIconName:m=Vl.arrowIconName,variant:f,hover:k,focus:N,active:v,selected:b,disabled:w,togglable:C,ariaDisabled:G,icon:H,iconSize:P,text:U,iconClassName:ge,className:de,...Ye}=e,Qe=H!=null,Ze=e.children!==void 0;return(0,To.jsxs)(o,{className:a(de,ar,Ts(ar,f),y(ar,{size:t,rounded:r,fillMode:l,themeColor:n}),S(ar,{hover:k,focus:N,active:v,disabled:w||G,selected:b}),{"k-icon-button":!U&&!Ze&&Qe}),"aria-pressed":C?b?"true":"false":void 0,...Ye,"aria-disabled":G?"true":void 0,disabled:w||void 0,children:[typeof H=="string"&&H&&(0,To.jsx)(T,{className:a(ge,"k-button-icon"),icon:H,size:P}),H&&typeof H!="string"&&(0,To.jsx)(To.Fragment,{children:H}),U?(0,To.jsxs)(To.Fragment,{children:[U&&(0,To.jsx)("span",{className:"k-button-text",children:U}),e.children]}):e.children&&(0,To.jsx)("span",{className:"k-button-text",children:e.children}),d&&(0,To.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,To.jsx)(T,{icon:m})})]})};c.states=Mb;c.options=yb;c.variants=Lb;c.className=ar;c.defaultOptions=Vl;c.moduleName=$l;c.folderName=Cd;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."}]};var Ld=require("react/jsx-runtime"),Nt=e=>(0,Ld.jsx)(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var Md=require("react/jsx-runtime"),rr=e=>(0,Md.jsx)(c,{icon:"folder",children:"Button",...e});var yd=require("react/jsx-runtime"),Kt=e=>(0,yd.jsx)(c,{children:"Button",...e});var Fr=require("react/jsx-runtime"),Sb=c.options,Ab=c.states,Ib={...c.defaultOptions,variant:"text"},Rb=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Eb=[],oa=e=>{let{variant:o,...t}=e;switch(o){case"icon-only":return(0,Fr.jsx)(Nt,{...t,icon:"star"});case"icon-and-text":return(0,Fr.jsx)(rr,{...t,icon:"star",children:"Button"});default:return(0,Fr.jsx)(Kt,{...t,children:"Button"})}};oa.options=Sb;oa.states=Ab;oa.variants=Rb;oa.defaultOptions=Ib;oa.modifiers=Eb;oa.className=c.className;var lr="input",$r=lr;var Sd=require("react/jsx-runtime"),Vr="k-input",Gb=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Ob={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]},Hb={},Le=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m,size:f,rounded:k,fillMode:N,...v}=e;return(0,Sd.jsx)("span",{...v,className:a(e.className,Vr,y(Vr,{size:f,rounded:k,fillMode:N}),S(Vr,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m}))})};Le.states=Gb;Le.options=Ob;Le.className=Vr;Le.defaultOptions=Hb;Le.moduleName=lr;Le.folderName=$r;var Ad=require("react/jsx-runtime"),Wr="k-picker",Pb=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],_b={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]},Kb={},Fo=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m,size:f,rounded:k,fillMode:N,...v}=e;return(0,Ad.jsx)("span",{...v,className:a(e.className,Wr,y(Wr,{size:f,rounded:k,fillMode:N}),S(Wr,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m})),children:e.children})};Fo.states=Pb;Fo.options=_b;Fo.className=Wr;Fo.defaultOptions=Kb;Fo.moduleName=lr;Fo.folderName=$r;var ta=require("react/jsx-runtime"),Id="k-clear-value",Db=[i.disabled,i.loading,i.readonly],Bb={},go=e=>{let{disabled:o,loading:t,readonly:r,value:l}=e;return o||r||t||!l?(0,ta.jsx)(ta.Fragment,{}):(0,ta.jsx)("span",{className:a(e.className,Id),children:(0,ta.jsx)(T,{icon:"x"})})};go.states=Db;go.options=Bb;go.className=Id;var Rd=require("react/jsx-runtime"),Wl="k-input-inner",zb=[],Ub={},Xr={type:"text",autocomplete:"off",value:"",placeholder:""},ho=e=>{let{value:o=Xr.value,type:t=Xr.type,placeholder:r=Xr.placeholder,autocomplete:l=Xr.autocomplete,disabled:n,readOnly:d,...m}=e;return(0,Rd.jsx)("input",{...m,type:t,className:a(e.className,Wl,y(Wl,e)),placeholder:r,autoComplete:l,defaultValue:o,disabled:n||void 0,readOnly:d||void 0})};ho.states=zb;ho.options=Ub;ho.className=Wl;var ir=require("react/jsx-runtime"),Xl="k-input-inner",Fb=[],$b={},Dt=e=>{let{value:o,placeholder:t,showValue:r,valueIcon:l,valueIconName:n,...d}=e;return(0,ir.jsxs)("span",{...d,className:a(e.className,Xl,y(Xl,e)),children:[l,!l&&n&&(0,ir.jsx)(T,{className:"k-input-value-icon",icon:n}),r&&!o&&t,r&&o&&(0,ir.jsx)("span",{className:"k-input-value-text",children:o})]})};Dt.states=Fb;Dt.options=$b;Dt.className=Xl;var Gd=require("react/jsx-runtime"),Jl="k-input-inner",Vb=[],Wb={},Ed={value:"",placeholder:""},ql=e=>{let{value:o=Ed.value,placeholder:t=Ed.placeholder,rows:r,disabled:l,...n}=e;return(0,Gd.jsx)("textarea",{...n,className:a(e.className,Jl,y(Jl,e)),placeholder:t,rows:r,defaultValue:o,disabled:l||void 0})};ql.states=Vb;ql.options=Wb;ql.className=Jl;var nr=require("react/jsx-runtime"),Od="k-input-loading-icon",Xb=[i.disabled,i.loading],no=e=>{let{disabled:o,loading:t}=e;return o||!t?(0,nr.jsx)(nr.Fragment,{}):(0,nr.jsx)("span",{className:a(e.className,Od,"k-icon k-i-loading")})};no.states=Xb;no.className=Od;var sr=require("react/jsx-runtime"),Hd="k-input-validation-icon",Jb=[i.valid,i.invalid,i.disabled,i.loading],qb={},eo=e=>{let{valid:o,invalid:t,disabled:r,loading:l}=e,n=t?"warning-circle":"check-circle";return r||l||!!!(o||t)?(0,sr.jsx)(sr.Fragment,{}):(0,sr.jsx)(T,{className:a(Hd),icon:n})};eo.states=Jb;eo.options=qb;eo.className=Hd;var dr=require("react/jsx-runtime"),Yb="k-input-prefix",Qb={direction:"horizontal"},yo=e=>{let{direction:o=Qb.direction,...t}=e;return e.children?(0,dr.jsx)("span",{...t,className:a(Yb,e.className,{[`k-input-prefix-${o}`]:o}),children:e.children}):(0,dr.jsx)(dr.Fragment,{})};var cr=require("react/jsx-runtime"),Zb="k-input-suffix",jb={direction:"horizontal"},So=e=>{let{direction:o=jb.direction,...t}=e;return e.children?(0,cr.jsx)("span",{...t,className:a(Zb,e.className,{[`k-input-suffix-${o}`]:o}),children:e.children}):(0,cr.jsx)(cr.Fragment,{})};var ef=require("react/jsx-runtime");var Pd=require("react/jsx-runtime"),of="k-input-suffix-text",Yl=e=>{let{children:o,...t}=e;return(0,Pd.jsx)("span",{...t,className:a(of,e.className),children:o})};var Kd=require("react/jsx-runtime"),_d="k-input-separator",tf={direction:"vertical"},Ao=e=>{let{direction:o=tf.direction,...t}=e;return(0,Kd.jsx)("span",{...t,className:a(_d,e.className,{[`${_d}-${o}`]:o})})};var Ie=require("react/jsx-runtime"),af=Le.states,rf=Le.defaultOptions,lf=Le.options,nf=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],sf=[],aa=e=>{let{modifiers:o,valid:t,invalid:r,loading:l,disabled:n,readonly:d,...m}=e,f=o==null?void 0:o.prefix,k=o==null?void 0:o.suffix,N=o==null?void 0:o["clear-button"],v=o==null?void 0:o["validation-icon"],b=o==null?void 0:o.separators;return(0,Ie.jsxs)(Le,{...m,valid:t,invalid:r,loading:l,disabled:n,readonly:d,style:{width:300},children:[f&&(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)(yo,{children:(0,Ie.jsx)(T,{icon:"lock"})}),b&&(0,Ie.jsx)(Ao,{})]}),(0,Ie.jsx)(ho,{placeholder:"Placeholder",value:"Value"}),v&&(0,Ie.jsx)(eo,{valid:t,invalid:r,loading:l,disabled:n}),(0,Ie.jsx)(no,{loading:l,disabled:n}),N&&(0,Ie.jsx)(go,{loading:l,disabled:n,readonly:d,value:"Value"}),k&&(0,Ie.jsxs)(Ie.Fragment,{children:[b&&(0,Ie.jsx)(Ao,{}),(0,Ie.jsx)(So,{children:(0,Ie.jsx)(Kt,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};aa.options=lf;aa.states=af;aa.variants=sf;aa.defaultOptions=rf;aa.modifiers=nf;aa.className=Le.className;var Ql="popup",Dd=Ql;var jl=require("react/jsx-runtime"),Bd="k-animation-container",df=[],cf={},Zl={positionMode:"absolute",shown:!0},$o=e=>{let{positionMode:o=Zl.positionMode,shown:t=Zl.shown,animationStyle:r,offset:l,...n}=e;return(0,jl.jsx)("div",{...n,style:{...l,...e.style},className:a(e.className,Bd,{"k-animation-container-shown":t,"k-animation-container-fixed":o==="fixed"}),children:(0,jl.jsx)("div",{className:"k-child-animation-container",style:r,children:e.children})})};$o.states=df;$o.options=cf;$o.className=Bd;$o.defaultOptions=Zl;$o.moduleName=Ql;$o.folderName=Dd;var ei="popup",zd=ei;var oi=require("react/jsx-runtime"),Ud="k-popup",pf=[],mf={},Fd={positionMode:"absolute"},re=e=>{let{offset:o,positionMode:t=Fd.positionMode,animationStyle:r,containerClassName:l,containerRole:n,containerAriaLabel:d,...m}=e;return(0,oi.jsx)($o,{positionMode:t,offset:o,animationStyle:r,className:l,role:n,"aria-label":d,children:(0,oi.jsx)("div",{...m,className:a(e.className,Ud),children:e.children})})};re.states=pf;re.options=mf;re.className=Ud;re.defaultOptions=Fd;re.moduleName=ei;re.folderName=zd;re.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 ti="action-buttons",$d=ti;var Vd=require("react/jsx-runtime"),Jr="k-actions",uf=[],bf={},ai={alignment:"start",orientation:"horizontal"},Io=e=>{let{alignment:o=ai.alignment,orientation:t=ai.orientation,...r}=e;return(0,Vd.jsx)("div",{...r,className:a(Jr,{[`${Jr}-${o}`]:o,[`${Jr}-${t}`]:t},e.className),children:e.children})};Io.states=uf;Io.options=bf;Io.className=Jr;Io.defaultOptions=ai;Io.moduleName=ti;Io.folderName=$d;var Xd=require("react/jsx-runtime"),ff="k-actionsheet-footer",Wd={alignment:"stretched",orientation:"horizontal"},kt=e=>{let{alignment:o=Wd.alignment,orientation:t=Wd.orientation,template:r,as:l=r?"div":Io,...n}=e;return(0,Xd.jsx)(l,{...n,...!r&&{alignment:o,orientation:t},className:a(e.className,ff),children:e.children})};var ri="searchbox",Jd=ri;var vt=require("react/jsx-runtime"),qd="k-searchbox",Tf=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],gf={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]},li={showIcon:!0,icon:"search"},xo=e=>{let{value:o,placeholder:t,size:r,rounded:l,fillMode:n,hover:d,focus:m,valid:f,invalid:k,required:N,loading:v,disabled:b,showIcon:w=li.showIcon,icon:C=li.icon,"aria-label":G,...H}=e;return(0,vt.jsxs)(Le,{...H,size:r,rounded:l,fillMode:n,hover:d,focus:m,valid:f,invalid:k,required:N,loading:v,disabled:b,className:a(e.className,qd),children:[w&&(0,vt.jsx)(T,{className:"k-input-icon",icon:C}),(0,vt.jsx)(ho,{placeholder:t,value:o,"aria-label":G}),(0,vt.jsx)(no,{...e}),(0,vt.jsx)(eo,{...e}),(0,vt.jsx)(go,{...e})]})};xo.states=Tf;xo.options=gf;xo.className=qd;xo.defaultOptions=li;xo.moduleName=ri;xo.folderName=Jd;var hf=require("react/jsx-runtime");var ii="textbox",Yd=ii;var $e=require("react/jsx-runtime"),Qd="k-textbox",xf=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Nf={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]},qr={showClearButton:!0,showValidationIcon:!0,separators:!0},me=e=>{let{size:o,rounded:t,fillMode:r,separators:l=qr.separators,showClearButton:n=qr.showClearButton,showValidationIcon:d=qr.showValidationIcon,prefix:m,suffix:f,type:k,value:N,placeholder:v,hover:b,focus:w,valid:C,invalid:G,required:H,loading:P,disabled:U,readonly:ge,id:de,"aria-label":Ye,"aria-describedby":Qe,...Ze}=e;return(0,$e.jsxs)(Le,{...Ze,size:o,rounded:t,fillMode:r,hover:b,focus:w,valid:C,invalid:G,required:H,loading:P,disabled:U,readonly:ge,className:a(e.className,Qd),children:[m&&(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)(yo,{children:m}),l&&(0,$e.jsx)(Ao,{})]}),(0,$e.jsx)(ho,{id:de,placeholder:v,value:N,type:k,disabled:U,"aria-label":Ye,"aria-describedby":Qe,"aria-invalid":G?"true":void 0}),d&&(0,$e.jsx)(eo,{valid:C,invalid:G,loading:P,disabled:U}),(0,$e.jsx)(no,{loading:P,disabled:U}),n&&(0,$e.jsx)(go,{loading:P,disabled:U,readonly:ge,value:N}),f&&(0,$e.jsxs)($e.Fragment,{children:[l&&(0,$e.jsx)(Ao,{}),(0,$e.jsx)(So,{children:f})]})]})};me.states=xf;me.options=Nf;me.className=Qd;me.defaultOptions=qr;me.moduleName=ii;me.folderName=Yd;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",at