@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 212 kB
JavaScript
var du=Object.create;var Hr=Object.defineProperty;var cu=Object.getOwnPropertyDescriptor;var pu=Object.getOwnPropertyNames;var mu=Object.getPrototypeOf,uu=Object.prototype.hasOwnProperty;var bu=(e,o)=>{for(var t in o)Hr(e,t,{get:o[t],enumerable:!0})},ys=(e,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let l of pu(o))!uu.call(e,l)&&l!==t&&Hr(e,l,{get:()=>o[l],enumerable:!(r=cu(o,l))||r.enumerable});return e};var Ss=(e,o,t)=>(t=e!=null?du(mu(e)):{},ys(o||!e||!e.__esModule?Hr(t,"default",{value:e,enumerable:!0}):t,e)),fu=e=>ys(Hr({},"__esModule",{value:!0}),e);var lk={};bu(lk,{GridWithLockedColumnsStickyGrouping:()=>rk});module.exports=fu(lk);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 I=(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"}),R=(e,o)=>{let{valid:t,invalid:r,hover:l,focus:d,checked:p,active:u,selected:T,disabled:N,indeterminate:x,loading:C,empty:f,readonly:L,highlighted:y,...O}=o;return a({"k-valid":t,"k-invalid":r,"k-hover":l,"k-focus":d,"k-checked":p,"k-active":u,"k-selected":T,"k-disabled":N,"k-indeterminate":x&&!p,"k-loading":C,"k-empty":f,"k-readonly":L,"k-highlighted":y},Object.keys(O).reduce((_,K)=>(K.startsWith("k-")?_[K]=O[K]:_[`k-${K}`]=O[K],_),{}))};function As(e,o){if(!o)return{};let t=Array.isArray(o)?o:[o];return Object.fromEntries(t.map(r=>[`k-${r}`,!0]))}var c={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},k={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},v={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Vo={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},A={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},n={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var yl={};function M(e){return yl[e]=(yl[e]||0)+1,`k-${e}-${yl[e]}`}var or=require("react/jsx-runtime"),Sl="k-font-icon",Tu=[],gu={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[A.undefined,A.base,A.primary,A.secondary,A.tertiary,A.success,A.warning,A.error,A.info]},hu={},tr=e=>{let{size:o,themeColor:t,icon:r,rotate:l,flip:d,...p}=e;return r?(0,or.jsx)("span",{...p,className:a(e.className,Sl,I(Sl,{size:o}),{[`k-i-${r}`]:r,[`k-color-${t}`]:t,[`k-rotate-${l}`]:l,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):(0,or.jsx)(or.Fragment,{})};tr.states=Tu;tr.options=gu;tr.className=Sl;tr.defaultOptions=hu;var Is=tr;var Kt=require("react/jsx-runtime"),Al="k-svg-icon",xu=[],Nu={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[A.undefined,A.base,A.primary,A.secondary,A.tertiary,A.success,A.warning,A.error,A.info],variant:[Vo.outline,Vo.solid,Vo.duotone]},Il={viewBox:"0 0 24 24",variant:Vo.outline},ar=e=>{var C,f;let{size:o,themeColor:t,rotate:r,flip:l,viewBox:d=Il.viewBox,variant:p=Il.variant,icon:u,...T}=e;if(!u)return(0,Kt.jsx)(Kt.Fragment,{});if(u==="none")return(0,Kt.jsx)("span",{...T,className:a(e.className,Al,I("k-icon",{size:o}),"k-none"),"aria-hidden":"true"});let N=typeof u=="object"&&u.name&&u.name,x=typeof u=="object"?p&&((C=u.variants)==null?void 0:C[p])||((f=u.variants)==null?void 0:f.outline)||u.content:void 0;return(0,Kt.jsx)("span",{...T,className:a(e.className,Al,I("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:(0,Kt.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof u=="object"?u.viewBox:d,dangerouslySetInnerHTML:x!==void 0?{__html:x}:void 0,children:u?void 0:e.children})})};ar.states=xu;ar.options=Nu;ar.className=Al;ar.defaultOptions=Il;var Rl=ar;var El=Ss(require("@progress/kendo-svg-icons"));var Rs="icon",Es="icons";var Hs=require("react");var Gs=require("react"),Os=(0,Gs.createContext)({iconsType:"svg"});var ot=require("react/jsx-runtime"),Pr="k-icon",ku=e=>e.replace(/([-_][a-z0-9])/gi,o=>o.toUpperCase().replace("-","").replace("_","")),vu=[],wu={size:[c.undefined,c.xsmall,c.small,c.medium,c.large,c.xlarge,c.xxlarge,c.xxxlarge],themeColor:[A.undefined,A.base,A.primary,A.secondary,A.tertiary,A.success,A.warning,A.error,A.info],variant:[Vo.outline,Vo.solid,Vo.duotone]},_r={viewBox:"0 0 24 24",type:"svg",variant:Vo.outline},g=e=>{let{iconsType:o}=(0,Hs.useContext)(Os),{size:t,themeColor:r,icon:l,type:d=o||_r.type,rotate:p,flip:u,viewBox:T=_r.viewBox,variant:N=_r.variant,...x}=e;if(!l)return(0,ot.jsx)(ot.Fragment,{});if((o||d)==="svg"){if(l==="none")return(0,ot.jsx)(Rl,{...x,className:a(e.className,Pr),icon:l,size:t,variant:N});let f=El[l]?l:ku(`${l}-icon`);return El[f]?(0,ot.jsx)(Rl,{...x,className:a(e.className,Pr),icon:El[f],size:t,themeColor:r,rotate:p,flip:u,viewBox:T,variant:N}):(0,ot.jsx)(ot.Fragment,{})}return(0,ot.jsx)(Is,{...x,className:a(e.className,Pr),icon:l,size:t,themeColor:r,rotate:p,flip:u})};g.states=vu;g.options=wu;g.defaultOptions=_r;g.className=Pr;g.moduleName=Rs;g.folderName=Es;g.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 rr=require("react/jsx-runtime"),Cu="k-chip-action";var de=e=>{let{type:o,...t}=e,r;switch(o){case"remove":r=(0,rr.jsx)(g,{icon:"x-circle",size:"small"});break;case"more":r=(0,rr.jsx)(g,{icon:"more-vertical",size:"small"});break;default:return(0,rr.jsx)(g,{icon:o,size:"small"})}return(0,rr.jsx)("span",{...t,className:a(e.className,Cu,`k-chip-${o}-action`),children:r})};var Gl="avatar",Ps=Gl;var Hl=require("react/jsx-runtime"),lr="k-avatar";var Lu=[n.hover,n.focus,n.active,n.selected,n.disabled],Mu={size:[c.undefined,c.small,c.medium,c.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.outline],themeColor:[A.undefined,A.base,A.primary,A.secondary,A.tertiary]},Ol={type:"text",border:!1},eo=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,type:d=Ol.type,border:p=Ol.border,...u}=e;return(0,Hl.jsx)("div",{...u,className:a(e.className,lr,I(lr,{size:o,rounded:t,fillMode:r,themeColor:l}),{[`${lr}-bordered`]:p}),children:(0,Hl.jsx)("span",{className:`${lr}-${d}`,children:e.children})})};eo.states=Lu;eo.options=Mu;eo.className=lr;eo.defaultOptions=Ol;eo.moduleName=Gl;eo.folderName=Ps;eo.ariaSpec={selector:".k-avatar",rules:[{selector:".k-avatar img",attribute:"alt",usage:"Images inside Avatar must have alt text for screen readers."}]};var Dt=eo;var Ks=require("react/jsx-runtime"),_s=e=>(0,Ks.jsx)(Dt,{type:"icon",...e});var Bs=require("react/jsx-runtime"),Ds=e=>(0,Bs.jsx)(Dt,{type:"text",...e});var Us=require("react/jsx-runtime"),zs=e=>(0,Us.jsx)(Dt,{type:"image",...e});var yu=require("react/jsx-runtime");var ta=require("react/jsx-runtime"),Su=eo.options,Au=eo.states,Iu={...eo.defaultOptions,variant:"image"},Ru=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],Eu=[],aa=e=>{let{variant:o,...t}=e;switch(o){case"icon":return(0,ta.jsx)(_s,{...t,children:(0,ta.jsx)(g,{icon:"star"})});case"text":return(0,ta.jsx)(Ds,{...t,children:"JO"});default:return(0,ta.jsx)(zs,{...t,children:(0,ta.jsx)("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};aa.options=Su;aa.states=Au;aa.variants=Ru;aa.defaultOptions=Iu;aa.modifiers=Eu;aa.className=eo.className;var ir="chip",Kr=ir,Dr="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";var tt=require("react/jsx-runtime"),Br="k-chip",Gu=[n.hover,n.focus,n.active,n.selected,n.disabled],Ou={size:[c.undefined,c.small,c.medium,c.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.outline],themeColor:[A.undefined,A.base,A.success,A.warning,A.error,A.info]},Fs={avatarImage:"/packages/html/assets/avatar.jpg"},ie=e=>{let{size:o,rounded:t,fillMode:r,themeColor:l,text:d,icon:p,actions:u,showAvatar:T,avatarImage:N=Fs.avatarImage,hover:x,focus:C,active:f,selected:L,disabled:y,...O}=e;return(0,tt.jsxs)("div",{...O,className:a(e.className,Br,I(Br,{size:o,rounded:t,fillMode:r,themeColor:l}),R(Br,{hover:x,focus:C,active:f,disabled:y,selected:L})),role:e.role||"button","aria-pressed":e.role==="option"?void 0:L?"true":"false",...e.role==="option"&&L!==void 0&&{"aria-selected":L?"true":"false"},"aria-disabled":y?"true":void 0,children:[p&&(0,tt.jsx)(g,{className:"k-chip-icon",icon:p,size:"small"}),T&&(0,tt.jsx)(eo,{className:"k-chip-avatar",type:"image",children:(0,tt.jsx)("img",{src:N,alt:""})}),(0,tt.jsx)("span",{className:"k-chip-content",children:e.children?e.children:d&&(0,tt.jsx)("span",{className:"k-chip-label",children:d})}),u&&(0,tt.jsx)("span",{className:"k-chip-actions",children:u})]})};ie.states=Gu;ie.options=Ou;ie.className=Br;ie.defaultOptions=Fs;ie.moduleName=ir;ie.folderName=Kr;ie.ariaSpec={selector:".k-chip",rules:[{selector:"*:not(.k-chip-list) > .k-chip",attribute:"role=button",usage:"Announces that the chip acts as a button when standalone."},{selector:"*:not(.k-chip-list) > .k-chip.k-selected",attribute:"aria-pressed=true",usage:"Announces that the Chip has been selected."},{selector:"*:not(.k-chip-list) > .k-chip:not(.k-selected)",attribute:"aria-pressed=false",usage:"Announces that the Chip has not been selected."},{selector:".k-chip",attribute:"aria-disabled=true (when disabled)",usage:"Announces that the Chip is disabled."}]};var yo=ie;var $s=require("react/jsx-runtime"),Pl="k-chip-list",Hu=[],Pu={size:[c.undefined,c.small,c.medium,c.large]},_u={},ne=e=>{let{size:o,multiselectable:t,ariaLabel:r,...l}=e;return(0,$s.jsx)("div",{...l,className:a(e.className,Pl,I(Pl,{size:o})),role:e.role||"listbox","aria-label":e.role==="none"?void 0:r||"chip list","aria-orientation":e.role==="none"?void 0:"horizontal","aria-multiselectable":t?"true":void 0,children:e.children})};ne.states=Hu;ne.options=Pu;ne.className=Pl;ne.defaultOptions=_u;ne.moduleName=ir;ne.folderName=Kr;ne.ariaSpec={selector:".k-chip-list",rules:[{selector:".k-chip-list",attribute:"role=listbox",usage:"Announces the list role of the chip list."},{selector:".k-chip-list",attribute:"aria-label or aria-labelledby",usage:"Adds label to the ChipList element. ListBox element requires an accessible name."},{selector:".k-chip-list",attribute:"aria-orientation=horizontal",usage:"Specifies the horizontal orientation of the chiplist."},{selector:".k-chip-list",attribute:"aria-multiselectable=true (when multiple selection)",usage:"Announces the multiple selection ability of the chiplist."},{selector:".k-chip-list .k-chip",attribute:"role=option",usage:"Announces the chip is an option inner component of the chip list."},{selector:".k-chip-list .k-chip.k-selected",attribute:"aria-selected=true",usage:"Announces the chip is selected."},{selector:".k-chip-list .k-chip:not(.k-selected)",attribute:"aria-selected=false",usage:"Announces the chip is not selected."},{selector:".k-chip-list .k-chip:has(.k-i-x-circle), .k-chip-list .k-chip:has(.k-svg-i-x-circle)",attribute:"aria-keyshortcuts=Enter Delete",usage:"Announces the Delete action along with the default Enter key."}]};var Ku=require("react/jsx-runtime");var Du=require("react/jsx-runtime");var Vs=require("react/jsx-runtime"),zr=e=>(0,Vs.jsx)(yo,{text:"text",...e});var Bu=require("react/jsx-runtime");var zu=require("react/jsx-runtime");var _l=require("react/jsx-runtime");var Ws=require("react/jsx-runtime");var Xs=require("react/jsx-runtime");var Js=require("react/jsx-runtime");var at=require("react/jsx-runtime"),Uu={...yo.options,...ne.options},Fu=[],$u=ne.states,Vu={...yo.defaultOptions,...ne.defaultOptions},Wu=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],ra=e=>{let{modifiers:o,className:t,...r}=e,l=o==null?void 0:o.icon,d=o==null?void 0:o.actions,p=o==null?void 0:o.avatar,u=p?Dr:void 0;return(0,at.jsxs)(ne,{size:r.size,className:t,children:[(0,at.jsx)(zr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:d?(0,at.jsx)(de,{type:"remove"}):void 0,showAvatar:p,avatarImage:u,children:"Chip"}),(0,at.jsx)(zr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:d?(0,at.jsx)(de,{type:"remove"}):void 0,showAvatar:p,avatarImage:u,children:"Chip"}),(0,at.jsx)(zr,{...r,role:"option","aria-selected":"false","aria-pressed":void 0,icon:l?"star":void 0,actions:d?(0,at.jsx)(de,{type:"remove"}):void 0,showAvatar:p,avatarImage:u,children:"Chip"})]})};ra.options=Uu;ra.states=$u;ra.variants=Fu;ra.defaultOptions=Vu;ra.modifiers=Wu;ra.className=ne.className;var Ur=require("react/jsx-runtime"),Xu=ie.states,Ju=ie.defaultOptions,qu=ie.options,Yu=[],Qu=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],la=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]?Dr:void 0;break;case"more-options":r.actions||(r.actions=[]),r.actions[0]=o!=null&&o[l]?(0,Ur.jsx)(de,{type:"more"}):void 0;break;case"remove-icon":r.actions||(r.actions=[]),r.actions[1]=o!=null&&o[l]?(0,Ur.jsx)(de,{type:"remove"}):void 0;break;default:break}}),(0,Ur.jsx)(ie,{...t,...r,children:"Chip component"})};la.options=qu;la.states=Xu;la.variants=Yu;la.defaultOptions=Ju;la.modifiers=Qu;la.className=ie.className;var ee="grid",te=ee;var $r=require("react/jsx-runtime"),Fr="k-grid",Zu=[],ju={size:[c.undefined,c.small,c.medium,c.large]},eb=[],qs={pagerPosition:"bottom"},D=e=>{let{size:o,pagerPosition:t=qs.pagerPosition,toolbar:r,pager:l,groupingHeader:d,gridSelectionAggregates:p,_renderAriaRoot:u,resizable:T,ariaColCount:N,ariaRowCount:x,ariaRootId:C,ariaRole:f="grid",...L}=e;return(0,$r.jsxs)("div",{...L,className:a(e.className,Fr,{[`${Fr}-resizable`]:T},I(Fr,{size:o})),children:[r,t==="top"&&l,d,e.children&&u?(0,$r.jsx)("div",{className:"k-grid-aria-root",role:f,id:C,"aria-colcount":N,"aria-rowcount":x,children:e.children}):e.children,p,t==="bottom"&&l]})};D.states=Zu;D.options=ju;D.variants=eb;D.className=Fr;D.defaultOptions=qs;D.moduleName=ee;D.folderName=te;D.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 Qs=require("react/jsx-runtime"),Ys="k-grid-header",Q=e=>{let{draggable:o,...t}=e;return(0,Qs.jsx)("div",{...t,className:a(e.className,Ys,{"k-grid-draggable-header":o}),children:e.children})};Q.className=Ys;Q.moduleName=ee;Q.folderName=te;var nr=require("react/jsx-runtime"),Zs="k-grouping-header",Pe=e=>{let{dropHint:o,dropClue:t,...r}=e;return(0,nr.jsxs)("div",{...r,className:a(e.className,Zs),children:[t&&(0,nr.jsx)("div",{className:"k-grouping-dropclue"}),e.children,(0,nr.jsx)("div",{className:"k-grouping-drop-container",children:o})]})};Pe.className=Zs;Pe.moduleName=ee;Pe.folderName=te;var ed=require("react/jsx-runtime"),js="k-grid-pinned-container",sr=e=>{let{position:o,...t}=e;return(0,ed.jsx)("div",{...t,className:a(e.className,js,{"k-pos-bottom":o==="bottom"}),children:e.children})};sr.className=js;sr.moduleName=ee;sr.folderName=te;var td=require("react/jsx-runtime"),od="k-grid-sticky-container",Bt=e=>{let{position:o,...t}=e;return(0,td.jsx)("div",{...t,className:a(e.className,od,{"k-pos-bottom":o==="bottom"}),children:e.children})};Bt.className=od;Bt.moduleName=ee;Bt.folderName=te;var _e="table",We=_e;var rd=require("react/jsx-runtime"),ad="k-data-table",ob=[],tb={size:[c.undefined,c.small,c.medium,c.large]},ab={},rt=e=>{let{size:o,...t}=e;return(0,rd.jsx)("div",{...t,className:a(e.className,ad,I("k-table",{size:o})),children:e.children})};rt.states=ob;rt.options=tb;rt.className=ad;rt.defaultOptions=ab;rt.moduleName=_e;rt.folderName=We;var ld=require("react/jsx-runtime"),Kl="k-table-header-wrap",rb=[n.hover,n.focus,n.disabled],lb={},ib={},xt=e=>{let{children:o,hover:t,focus:r,disabled:l,...d}=e;return(0,ld.jsx)("div",{...d,className:a(e.className,Kl,R(Kl,{hover:t,focus:r,disabled:l})),children:o})};xt.states=rb;xt.options=lb;xt.className=Kl;xt.defaultOptions=ib;xt.moduleName=_e;xt.folderName=We;var id=require("react/jsx-runtime"),Dl="k-table",nb=[],sb={size:[c.undefined,c.small,c.medium,c.large]},db={},Xe=e=>{let{size:o,...t}=e;return(0,id.jsx)("table",{...t,className:a(e.className,Dl,I(Dl,{size:o})),children:e.children})};Xe.states=nb;Xe.options=sb;Xe.className=Dl;Xe.defaultOptions=db;Xe.moduleName=_e;Xe.folderName=We;var Vr=require("react/jsx-runtime"),Bl="k-table-header",cb=[n.hover,n.focus,n.disabled],pb={},mb={},lt=e=>{let{children:o,hover:t,focus:r,disabled:l,...d}=e;return(0,Vr.jsx)("div",{...d,className:a(e.className,Bl,R(Bl,{hover:t,focus:r,disabled:l})),children:(0,Vr.jsx)(xt,{children:(0,Vr.jsx)(Xe,{children:o})})})};lt.states=cb;lt.options=pb;lt.className=Bl;lt.defaultOptions=mb;lt.moduleName=_e;lt.folderName=We;var sd=require("react/jsx-runtime"),nd="k-table-scroller",ub=[],bb={},fb={},ia=e=>{let{children:o,...t}=e;return(0,sd.jsx)("div",{...t,className:a(e.className,nd),children:o})};ia.states=ub;ia.options=bb;ia.className=nd;ia.defaultOptions=fb;ia.moduleName=_e;ia.folderName=We;var Tb=require("react/jsx-runtime");var cd=require("react/jsx-runtime"),dd="k-table-footer",gb=[],hb={},xb={},Nt=e=>{let{children:o,...t}=e;return(0,cd.jsx)("div",{...t,className:a(e.className,dd),children:o})};Nt.states=gb;Nt.options=hb;Nt.className=dd;Nt.defaultOptions=xb;Nt.moduleName=_e;Nt.folderName=We;var pd=require("react/jsx-runtime"),zl="k-table-list",Nb=[],kb={size:[c.undefined,c.small,c.medium,c.large]},vb={},kt=e=>{let{size:o,virtualization:t,...r}=e;return(0,pd.jsx)("ul",{...r,className:a(e.className,"k-table",zl,I(zl,{size:o}),{"k-virtual-table":t}),children:e.children})};kt.states=Nb;kt.options=kb;kt.className=zl;kt.defaultOptions=vb;kt.moduleName=_e;kt.folderName=We;var md=require("react/jsx-runtime"),wb="k-table-thead",X=e=>(0,md.jsx)("thead",{className:a(e.className,wb),children:e.children});var ud=require("react/jsx-runtime"),Cb="k-table-tbody",$=e=>(0,ud.jsx)("tbody",{className:a(e.className,Cb),children:e.children});var Lb=require("react/jsx-runtime");var bd=require("react/jsx-runtime"),Ul="k-table-row",Mb=[n.hover,n.focus,n.selected,n.disabled,n.highlighted],h=e=>{let{hover:o,focus:t,selected:r,highlighted:l,disabled:d,alt:p,...u}=e;return(0,bd.jsx)("tr",{...u,className:a(e.className,Ul,{"k-table-alt-row":p},R(Ul,{hover:o,focus:t,disabled:d,selected:r,highlighted:l})),children:e.children})};h.states=Mb;h.className=Ul;var fd=require("react/jsx-runtime"),Fl="k-table-row",yb=[n.hover,n.focus,n.selected,n.disabled],Wr=e=>{let{hover:o,focus:t,selected:r,disabled:l,alt:d,...p}=e;return(0,fd.jsx)("li",{...p,className:a(e.className,Fl,{"k-table-alt-row":d},R(Fl,{hover:o,focus:t,disabled:l,selected:r})),children:e.children})};Wr.states=yb;Wr.className=Fl;var gd=require("react/jsx-runtime"),Td="k-table-th",it=e=>{let{text:o,colspan:t,rowspan:r,...l}=e,d=o||e.children;return(0,gd.jsx)("th",{colSpan:t,rowSpan:r,...l,className:a(e.className,Td),children:d})};it.className=Td;it.moduleName=_e;it.folderName=We;var Sb=require("react/jsx-runtime");var hd=require("react/jsx-runtime"),$l="k-table-td",Ab=[n.focus,n.selected,n.highlighted],i=e=>{let{focus:o,selected:t,highlighted:r,text:l,colspan:d,rowspan:p,...u}=e,T=l||e.children;return(0,hd.jsx)("td",{colSpan:d,rowSpan:p,...u,className:a(e.className,$l,R($l,{focus:o,selected:t,highlighted:r})),children:T})};i.states=Ab;i.className=$l;var Ib=require("react/jsx-runtime");var Rb=require("react/jsx-runtime");var Eb=require("react/jsx-runtime");var Gb=require("react/jsx-runtime");var Ob=require("react/jsx-runtime");var Nd=require("react/jsx-runtime");var kd=require("react/jsx-runtime");var wd=require("react/jsx-runtime");var Vl=require("react/jsx-runtime");var Ld=require("react/jsx-runtime"),Cd="k-grid-header-table",J=e=>(0,Ld.jsx)(Xe,{...e,className:a(e.className,Cd),children:e.children});J.className=Cd;J.moduleName=ee;J.folderName=te;var To=require("react/jsx-runtime"),Wl="k-header",_b=[n.hover,n.focus,n.active],Md={sortIcon:"sort-asc-small"},E=e=>{let{menu:o,sortable:t,filterable:r,sticky:l,resizable:d,columnTitle:p,hover:u,focus:T,active:N,sortIcon:x=Md.sortIcon,sortOrder:C,accessibleLabel:f,...L}=e;return(0,To.jsxs)(it,{...L,className:a(e.className,Wl,{"k-filterable":o||r,"k-sorted":t,"k-grid-header-sticky":l,"k-touch-action-none":d},R(Wl,{hover:u,focus:T,active:N})),children:[p&&(0,To.jsxs)("span",{className:"k-cell-inner",children:[(0,To.jsxs)("span",{className:"k-link",children:[(0,To.jsx)("span",{className:"k-column-title",children:p}),t&&(0,To.jsx)("span",{className:"k-sort-icon",children:(0,To.jsx)(g,{icon:x})}),C&&(0,To.jsx)("span",{className:"k-sort-order",children:C})]}),o&&(0,To.jsx)("a",{className:a("k-grid-header-menu",{"k-active":N,"k-grid-filter-menu":o==="filter","k-grid-column-menu":o==="column"}),children:(0,To.jsx)(g,{icon:o==="filter"?"filter":"more-vertical"})})]}),!p&&f&&(0,To.jsx)("span",{className:"k-sr-only",children:f}),e.children,d&&(0,To.jsx)("span",{className:"k-column-resizer k-touch-action-none"})]})};E.states=_b;E.className=Wl;E.defaultOptions=Md;E.moduleName=ee;E.folderName=te;var Sd=require("react/jsx-runtime"),yd="k-grid-container",q=e=>(0,Sd.jsx)("div",{...e,className:a(e.className,yd),children:e.children});q.className=yd;q.moduleName=ee;q.folderName=te;var Id=require("react/jsx-runtime"),Ad="k-grid-content",Y=e=>(0,Id.jsx)("div",{...e,className:a(e.className,Ad),children:e.children});Y.className=Ad;Y.moduleName=ee;Y.folderName=te;var Ed=require("react/jsx-runtime"),Rd="k-grid-table",F=e=>(0,Ed.jsx)(Xe,{...e,className:a(e.className,Rd),children:e.children});F.className=Rd;F.moduleName=ee;F.folderName=te;var Od=require("react/jsx-runtime"),Gd="k-grid-footer",Xr=e=>(0,Od.jsx)("div",{...e,className:a(e.className,Gd),children:e.children});Xr.className=Gd;Xr.moduleName=ee;Xr.folderName=te;var Pd=require("react/jsx-runtime"),Hd="k-grid-footer-table",Jr=e=>(0,Pd.jsx)(Xe,{...e,className:a(e.className,Hd),children:e.children});Jr.className=Hd;Jr.moduleName=ee;Jr.folderName=te;var Xl="button",_d=Xl;var go=require("react/jsx-runtime"),dr="k-button",Kb=["icon-button"],Db=[n.hover,n.focus,n.active,n.selected,n.disabled,n.generating],Bb={size:[c.undefined,c.xsmall,c.small,c.medium,c.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.flat,v.outline,v.clear,v.link],themeColor:[A.undefined,A.base,A.primary,A.secondary,A.tertiary,A.success,A.warning,A.error,A.info,A.inverse]},Jl={showArrow:!1,arrowIconName:"chevron-down"},m=e=>{let{as:o="button",size:t,rounded:r,fillMode:l,themeColor:d,showArrow:p=Jl.showArrow,arrowIconName:u=Jl.arrowIconName,variant:T,hover:N,focus:x,active:C,selected:f,disabled:L,togglable:y,ariaDisabled:O,icon:_,iconSize:K,text:U,iconClassName:ue,className:re,...Re}=e,Ee=_!=null,Ge=e.children!==void 0;return(0,go.jsxs)(o,{className:a(re,dr,As(dr,T),I(dr,{size:t,rounded:r,fillMode:l,themeColor:d}),R(dr,{hover:N,focus:x,active:C,disabled:L||O,selected:f}),{"k-icon-button":!U&&!Ge&&Ee}),"aria-pressed":y?f?"true":"false":void 0,...Re,"aria-disabled":O?"true":void 0,disabled:L||void 0,children:[typeof _=="string"&&_&&(0,go.jsx)(g,{className:a(ue,"k-button-icon"),icon:_,size:K}),_&&typeof _!="string"&&(0,go.jsx)(go.Fragment,{children:_}),U?(0,go.jsxs)(go.Fragment,{children:[U&&(0,go.jsx)("span",{className:"k-button-text",children:U}),e.children]}):e.children&&(0,go.jsx)("span",{className:"k-button-text",children:e.children}),p&&(0,go.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,go.jsx)(g,{icon:u})})]})};m.states=Db;m.options=Bb;m.variants=Kb;m.className=dr;m.defaultOptions=Jl;m.moduleName=Xl;m.folderName=_d;m.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 Kd=require("react/jsx-runtime"),vt=e=>(0,Kd.jsx)(m,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var Dd=require("react/jsx-runtime"),cr=e=>(0,Dd.jsx)(m,{icon:"folder",children:"Button",...e});var Bd=require("react/jsx-runtime"),zt=e=>(0,Bd.jsx)(m,{children:"Button",...e});var qr=require("react/jsx-runtime"),zb=m.options,Ub=m.states,Fb={...m.defaultOptions,variant:"text"},$b=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Vb=[],na=e=>{let{variant:o,...t}=e;switch(o){case"icon-only":return(0,qr.jsx)(vt,{...t,icon:"star"});case"icon-and-text":return(0,qr.jsx)(cr,{...t,icon:"star",children:"Button"});default:return(0,qr.jsx)(zt,{...t,children:"Button"})}};na.options=zb;na.states=Ub;na.variants=$b;na.defaultOptions=Fb;na.modifiers=Vb;na.className=m.className;var pr="input",Yr=pr;var zd=require("react/jsx-runtime"),Qr="k-input",Wb=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Xb={size:[c.undefined,c.small,c.medium,c.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},Jb={},Me=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:d,loading:p,readonly:u,size:T,rounded:N,fillMode:x,...C}=e;return(0,zd.jsx)("span",{...C,className:a(e.className,Qr,I(Qr,{size:T,rounded:N,fillMode:x}),R(Qr,{hover:o,focus:t,disabled:r,invalid:l,valid:d,loading:p,readonly:u}))})};Me.states=Wb;Me.options=Xb;Me.className=Qr;Me.defaultOptions=Jb;Me.moduleName=pr;Me.folderName=Yr;var Ud=require("react/jsx-runtime"),Zr="k-picker",qb=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Yb={size:[c.undefined,c.small,c.medium,c.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},Qb={},Wo=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:d,loading:p,readonly:u,size:T,rounded:N,fillMode:x,...C}=e;return(0,Ud.jsx)("span",{...C,className:a(e.className,Zr,I(Zr,{size:T,rounded:N,fillMode:x}),R(Zr,{hover:o,focus:t,disabled:r,invalid:l,valid:d,loading:p,readonly:u})),children:e.children})};Wo.states=qb;Wo.options=Yb;Wo.className=Zr;Wo.defaultOptions=Qb;Wo.moduleName=pr;Wo.folderName=Yr;var sa=require("react/jsx-runtime"),Fd="k-clear-value",Zb=[n.disabled,n.loading,n.readonly],jb={},ho=e=>{let{disabled:o,loading:t,readonly:r,value:l}=e;return o||r||t||!l?(0,sa.jsx)(sa.Fragment,{}):(0,sa.jsx)("span",{className:a(e.className,Fd),children:(0,sa.jsx)(g,{icon:"x"})})};ho.states=Zb;ho.options=jb;ho.className=Fd;var $d=require("react/jsx-runtime"),ql="k-input-inner",ef=[],of={},jr={type:"text",autocomplete:"off",value:"",placeholder:""},xo=e=>{let{value:o=jr.value,type:t=jr.type,placeholder:r=jr.placeholder,autocomplete:l=jr.autocomplete,disabled:d,readOnly:p,...u}=e;return(0,$d.jsx)("input",{...u,type:t,className:a(e.className,ql,I(ql,e)),placeholder:r,autoComplete:l,defaultValue:o,disabled:d||void 0,readOnly:p||void 0})};xo.states=ef;xo.options=of;xo.className=ql;var mr=require("react/jsx-runtime"),Yl="k-input-inner",tf=[],af={},Ut=e=>{let{value:o,placeholder:t,showValue:r,valueIcon:l,valueIconName:d,...p}=e;return(0,mr.jsxs)("span",{...p,className:a(e.className,Yl,I(Yl,e)),children:[l,!l&&d&&(0,mr.jsx)(g,{className:"k-input-value-icon",icon:d}),r&&!o&&t,r&&o&&(0,mr.jsx)("span",{className:"k-input-value-text",children:o})]})};Ut.states=tf;Ut.options=af;Ut.className=Yl;var Wd=require("react/jsx-runtime"),Ql="k-input-inner",rf=[],lf={},Vd={value:"",placeholder:""},Zl=e=>{let{value:o=Vd.value,placeholder:t=Vd.placeholder,rows:r,disabled:l,...d}=e;return(0,Wd.jsx)("textarea",{...d,className:a(e.className,Ql,I(Ql,e)),placeholder:t,rows:r,defaultValue:o,disabled:l||void 0})};Zl.states=rf;Zl.options=lf;Zl.className=Ql;var ur=require("react/jsx-runtime"),Xd="k-input-loading-icon",nf=[n.disabled,n.loading],so=e=>{let{disabled:o,loading:t}=e;return o||!t?(0,ur.jsx)(ur.Fragment,{}):(0,ur.jsx)("span",{className:a(e.className,Xd,"k-icon k-i-loading")})};so.states=nf;so.className=Xd;var br=require("react/jsx-runtime"),Jd="k-input-validation-icon",sf=[n.valid,n.invalid,n.disabled,n.loading],df={},oo=e=>{let{valid:o,invalid:t,disabled:r,loading:l}=e,d=t?"warning-circle":"check-circle";return r||l||!!!(o||t)?(0,br.jsx)(br.Fragment,{}):(0,br.jsx)(g,{className:a(Jd),icon:d})};oo.states=sf;oo.options=df;oo.className=Jd;var fr=require("react/jsx-runtime"),cf="k-input-prefix",pf={direction:"horizontal"},So=e=>{let{direction:o=pf.direction,...t}=e;return e.children?(0,fr.jsx)("span",{...t,className:a(cf,e.className,{[`k-input-prefix-${o}`]:o}),children:e.children}):(0,fr.jsx)(fr.Fragment,{})};var Tr=require("react/jsx-runtime"),mf="k-input-suffix",uf={direction:"horizontal"},Ao=e=>{let{direction:o=uf.direction,...t}=e;return e.children?(0,Tr.jsx)("span",{...t,className:a(mf,e.className,{[`k-input-suffix-${o}`]:o}),children:e.children}):(0,Tr.jsx)(Tr.Fragment,{})};var bf=require("react/jsx-runtime");var qd=require("react/jsx-runtime"),ff="k-input-suffix-text",jl=e=>{let{children:o,...t}=e;return(0,qd.jsx)("span",{...t,className:a(ff,e.className),children:o})};var Qd=require("react/jsx-runtime"),Yd="k-input-separator",Tf={direction:"vertical"},Io=e=>{let{direction:o=Tf.direction,...t}=e;return(0,Qd.jsx)("span",{...t,className:a(Yd,e.className,{[`${Yd}-${o}`]:o})})};var Oe=require("react/jsx-runtime"),gf=Me.states,hf=Me.defaultOptions,xf=Me.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"}],kf=[],da=e=>{let{modifiers:o,valid:t,invalid:r,loading:l,disabled:d,readonly:p,...u}=e,T=o==null?void 0:o.prefix,N=o==null?void 0:o.suffix,x=o==null?void 0:o["clear-button"],C=o==null?void 0:o["validation-icon"],f=o==null?void 0:o.separators;return(0,Oe.jsxs)(Me,{...u,valid:t,invalid:r,loading:l,disabled:d,readonly:p,style:{width:300},children:[T&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(So,{children:(0,Oe.jsx)(g,{icon:"lock"})}),f&&(0,Oe.jsx)(Io,{})]}),(0,Oe.jsx)(xo,{placeholder:"Placeholder",value:"Value"}),C&&(0,Oe.jsx)(oo,{valid:t,invalid:r,loading:l,disabled:d}),(0,Oe.jsx)(so,{loading:l,disabled:d}),x&&(0,Oe.jsx)(ho,{loading:l,disabled:d,readonly:p,value:"Value"}),N&&(0,Oe.jsxs)(Oe.Fragment,{children:[f&&(0,Oe.jsx)(Io,{}),(0,Oe.jsx)(Ao,{children:(0,Oe.jsx)(zt,{size:u.size,fillMode:"clear",children:"Send"})})]})]})};da.options=xf;da.states=gf;da.variants=kf;da.defaultOptions=hf;da.modifiers=Nf;da.className=Me.className;var ei="popup",Zd=ei;var ti=require("react/jsx-runtime"),jd="k-animation-container",vf=[],wf={},oi={positionMode:"absolute",shown:!0},Xo=e=>{let{positionMode:o=oi.positionMode,shown:t=oi.shown,animationStyle:r,offset:l,...d}=e;return(0,ti.jsx)("div",{...d,style:{...l,...e.style},className:a(e.className,jd,{"k-animation-container-shown":t,"k-animation-container-fixed":o==="fixed"}),children:(0,ti.jsx)("div",{className:"k-child-animation-container",style:r,children:e.children})})};Xo.states=vf;Xo.options=wf;Xo.className=jd;Xo.defaultOptions=oi;Xo.moduleName=ei;Xo.folderName=Zd;var ai="popup",ec=ai;var ri=require("react/jsx-runtime"),oc="k-popup",Cf=[],Lf={},tc={positionMode:"absolute"},se=e=>{let{offset:o,positionMode:t=tc.positionMode,animationStyle:r,containerClassName:l,containerRole:d,containerAriaLabel:p,...u}=e;return(0,ri.jsx)(Xo,{positionMode:t,offset:o,animationStyle:r,className:l,role:d,"aria-label":p,children:(0,ri.jsx)("div",{...u,className:a(e.className,oc),children:e.children})})};se.states=Cf;se.options=Lf;se.className=oc;se.defaultOptions=tc;se.moduleName=ai;se.folderName=ec;se.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var li="action-buttons",ac=li;var rc=require("react/jsx-runtime"),el="k-actions",Mf=[],yf={},ii={alignment:"start",orientation:"horizontal"},Ro=e=>{let{alignment:o=ii.alignment,orientation:t=ii.orientation,...r}=e;return(0,rc.jsx)("div",{...r,className:a(el,{[`${el}-${o}`]:o,[`${el}-${t}`]:t},e.className),children:e.children})};Ro.states=Mf;Ro.options=yf;Ro.className=el;Ro.defaultOptions=ii;Ro.moduleName=li;Ro.folderName=ac;var ic=require("react/jsx-runtime"),Sf="k-actionsheet-footer",lc={alignment:"stretched",orientation:"horizontal"},wt=e=>{let{alignment:o=lc.alignment,orientation:t=lc.orientation,template:r,as:l=r?"div":Ro,...d}=e;return(0,ic.jsx)(l,{...d,...!r&&{alignment:o,orientation:t},className:a(e.className,Sf),children:e.children})};var ni="searchbox",nc=ni;var Ct=require("react/jsx-runtime"),sc="k-searchbox",Af=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading],If={size:[c.undefined,c.small,c.medium,c.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},si={showIcon:!0,icon:"search"},No=e=>{let{value:o,placeholder:t,size:r,rounded:l,fillMode:d,hover:p,focus:u,valid:T,invalid:N,required:x,loading:C,disabled:f,showIcon:L=si.showIcon,icon:y=si.icon,"aria-label":O,..._}=e;return(0,Ct.jsxs)(Me,{..._,size:r,rounded:l,fillMode:d,hover:p,focus:u,valid:T,invalid:N,required:x,loading:C,disabled:f,className:a(e.className,sc),children:[L&&(0,Ct.jsx)(g,{className:"k-input-icon",icon:y}),(0,Ct.jsx)(xo,{placeholder:t,value:o,"aria-label":O}),(0,Ct.jsx)(so,{...e}),(0,Ct.jsx)(oo,{...e}),(0,Ct.jsx)(ho,{...e})]})};No.states=Af;No.options=If;No.className=sc;No.defaultOptions=si;No.moduleName=ni;No.folderName=nc;var Rf=require("react/jsx-runtime");var di="textbox",dc=di;var Je=require("react/jsx-runtime"),cc="k-textbox",Ef=[n.hover,n.focus,n.valid,n.invalid,n.required,n.disabled,n.loading,n.readonly],Gf={size:[c.undefined,c.small,c.medium,c.large],rounded:[k.undefined,k.none,k.small,k.medium,k.large,k.full],fillMode:[v.undefined,v.solid,v.flat,v.outline]},ol={showClearButton:!0,showValidationIcon:!0,separators:!0},be=e=>{let{size:o,rounded:t,fillMode:r,separators:l=ol.separators,showClearButton:d=ol.showClearButton,showValidationIcon:p=ol.showValidationIcon,prefix:u,suffix:T,type:N,value:x,placeholder:C,hover:f,focus:L,valid:y,invalid:O,required:_,loading:K,disabled:U,readonly:ue,id:re,"aria-label":Re,"aria-describedby":Ee,...Ge}=e;return(0,Je.jsxs)(Me,{...Ge,size:o,rounded:t,fillMode:r,hover:f,focus:L,valid:y,invalid:O,required:_,loading:K,disabled:U,readonly:ue,className:a(e.className,cc),children:[u&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(So,{children:u}),l&&(0,Je.jsx)(Io,{})]}),(0,Je.jsx)(xo,{id:re,placeholder:C,value:x,type:N,disabled:U,"aria-label":Re,"aria-describedby":Ee,"aria-invalid":O?"true":void 0}),p&&(0,Je.jsx)(oo,{valid:y,invalid:O,loading:K,disabled:U}),(0,Je.jsx)(so,{loading:K,disabled:U}),d&&(0,Je.jsx)(ho,{loading:K,disabled:U,readonly:ue,value:x}),T&&(0,Je.jsxs)(Je.Fragment,{children:[l&&(0,Je.jsx)(Io,{}),(0,Je.jsx)(Ao,{children:T})]})]})};be.states=Ef;be.options=Gf;be.className=cc;be.defaultOptions=ol;be.moduleName=di;be.folderName=dc;be.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-textbo