@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 75.3 kB
JavaScript
var a=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?a(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var S=(e,t)=>a({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),k=(e,t)=>{let{valid:o,invalid:n,hover:i,focus:l,checked:d,active:c,selected:p,disabled:u,indeterminate:f,loading:g,empty:L,readonly:E,highlighted:R,...C}=t;return a({"k-valid":o,"k-invalid":n,"k-hover":i,"k-focus":l,"k-checked":d,"k-active":c,"k-selected":p,"k-disabled":u,"k-indeterminate":f&&!d,"k-loading":g,"k-empty":L,"k-readonly":E,"k-highlighted":R},Object.keys(C).reduce((N,A)=>(A.startsWith("k-")?N[A]=C[A]:N[`k-${A}`]=C[A],N),{}))};function la(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(n=>[`k-${n}`,!0]))}var s={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},m={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"},ce={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},T={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},r={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 Yt={};function I(e){return Yt[e]=(Yt[e]||0)+1,`k-${e}-${Yt[e]}`}var G="grid",J=G;import{jsx as Ui,jsxs as Fi}from"react/jsx-runtime";var It="k-grid",Bi=[],zi={size:[s.undefined,s.small,s.medium,s.large]},Gi=[],da={pagerPosition:"bottom"},pe=e=>{let{size:t,pagerPosition:o=da.pagerPosition,toolbar:n,pager:i,groupingHeader:l,gridSelectionAggregates:d,_renderAriaRoot:c,resizable:p,ariaColCount:u,ariaRowCount:f,ariaRootId:g,ariaRole:L="grid",...E}=e;return Fi("div",{...E,className:a(e.className,It,{[`${It}-resizable`]:p},S(It,{size:t})),children:[n,o==="top"&&i,l,e.children&&c?Ui("div",{className:"k-grid-aria-root",role:L,id:g,"aria-colcount":u,"aria-rowcount":f,children:e.children}):e.children,d,o==="bottom"&&i]})};pe.states=Bi;pe.options=zi;pe.variants=Gi;pe.className=It;pe.defaultOptions=da;pe.moduleName=G;pe.folderName=J;pe.ariaSpec={selector:".k-grid",rules:[{selector:".k-grid-toolbar",attribute:"role=toolbar",usage:"The toolbar is a collection of command buttons and inputs."},{selector:".k-grid-toolbar",attribute:"aria-label",usage:"Clarifies the purpose of the toolbar."},{selector:".k-grid-toolbar",attribute:"aria-controls=.k-grid-aria-root id (when present)",usage:"Pointing to the id of the element with role=grid."},{selector:".k-grouping-header",attribute:"role=toolbar",usage:"The Grouping pane is a ToolBar (collection of buttons)."},{selector:".k-grouping-header",attribute:"aria-label",usage:"Clarifies the purpose of the grouping pane."},{selector:".k-grouping-header",attribute:"aria-controls=.k-grid-aria-root id (when present)",usage:"Pointing to the id of the element with role=grid."},{selector:".k-grouping-header .k-chip-list",attribute:"role=none",usage:"The ChipList default listbox role is removed to keep the toolbar --> button roles hierarchy."},{selector:".k-grouping-header .k-chip",attribute:"role=button",usage:"If the element used is not <button>, then the role must be specified."},{selector:".k-grid:not(.k-treelist) .k-grid-aria-root",attribute:"role=grid",usage:"The role specifies the element is a Data Grid."},{selector:".k-grid-aria-root",attribute:"aria-colcount (when present)",usage:"The total number of columns in the Grid. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-aria-root",attribute:"aria-rowcount (when present)",usage:"The total number of rows in the table. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid-header-wrap>table",attribute:"role=none",usage:"Negates the default semantic role of the <table> element."},{selector:".k-grid-header-wrap>table>thead",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th:not(.k-hierarchy-cell):not(.k-group-cell):not(.k-drag-cell)",attribute:"role=columnheader",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-sort (when present)",usage:"Present if sorting is enabled for that column."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-haspopup=dialog (when present)",usage:"Present if the column has a ColumnMenu or FilterMenu."},{selector:".k-grid-header-wrap>table>thead>tr.k-filter-row>td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr.k-filter-row>td",attribute:"aria-label",usage:"Has a label indicating that the cell is part of a filter row."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table, .k-grid-pinned-container .k-grid-table",attribute:"role=none",usage:"Negates the default semantic role of the <table> element."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody, .k-grid-pinned-container tbody",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr, .k-grid-pinned-container tbody tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr, .k-grid-pinned-container tbody tr",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr>td, .k-grid-pinned-container tbody td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr>td, .k-grid-pinned-container tbody td",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:"tr.k-selected",attribute:"aria-selected=true",usage:"Set on the currently selected row(s) in row selection mode. All cells within the selected row also carry aria-selected=true (without k-selected class). Applies to both regular and pinned rows."},{selector:"td.k-selected",attribute:"aria-selected=true",usage:"Set on the currently selected cell(s) in cell selection mode. The k-selected class on cells is only applied in cell selection mode, but aria-selected=true is present on cells regardless of selection mode."},{selector:".k-master-row .k-hierarchy-cell, .k-grouping-row>td",attribute:"aria-expanded",usage:"For cells holding grouping criteria values and for Master row cells in Detail template scenario."},{selector:".k-group-cell",attribute:"role=presentation",usage:"Group offset cells (header and content) are non-interactive placeholders with no semantic role."},{selector:".k-drag-cell",attribute:"aria-label",usage:"Must be present in a Drag Row scenario on the cell containing the drag handle."},{selector:".k-grid-header-locked table tr",attribute:"aria-owns",usage:"Locked header rows own cells from the corresponding non-locked header table rows."},{selector:".k-grid-content-locked table tr:not(.k-grouping-row)",attribute:"aria-owns",usage:"Locked content rows own cells from the corresponding non-locked content table rows. Group header rows are excluded because the non-locked group header rows are presentational."},{selector:".k-grid-lockedcolumns .k-grid-header .k-grid-header-wrap table tr",attribute:"role=none",usage:"Non-locked header rows have their semantic role removed when locked columns exist."},{selector:".k-grid-lockedcolumns .k-grid-content table tr",attribute:"role=none",usage:"Non-locked content rows have their semantic role removed when locked columns exist."},{selector:".k-grid-lockedcolumns .k-grid-header .k-grid-header-wrap th",attribute:"role=columnheader",usage:"Non-locked header cells retain columnheader role so they are announced correctly when owned via aria-owns."},{selector:".k-grid-lockedcolumns .k-grid-content td:not(.k-grouping-row td)",attribute:"role=gridcell",usage:"Non-locked data cells retain gridcell role so they are announced correctly when owned via aria-owns. Cells inside group header rows are excluded as those rows are presentational."},{selector:".k-grid-filter-popup",attribute:"role=dialog",usage:"The filter menu popup has dialog role."},{selector:".k-grid-filter-popup",attribute:"id",usage:"Unique id linked to the header cell aria-controls attribute."},{selector:".k-grid-filter-popup",attribute:"aria-label",usage:'Descriptive label for the filter menu, e.g. "Column Title Filter Menu".'},{selector:".k-grid-columnmenu-popup",attribute:"role=dialog",usage:"The column menu popup has dialog role."},{selector:".k-grid-columnmenu-popup",attribute:"id",usage:"Unique id linked to the header cell aria-controls attribute."},{selector:".k-grid-columnmenu-popup",attribute:"aria-label",usage:'Descriptive label for the column menu, e.g. "Column Title Column Menu".'},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"role=button",usage:"Column menu items have button role."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"tabindex=0",usage:"Column menu items are focusable."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"aria-expanded",usage:"Expandable column menu items announce their expanded state."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"aria-controls",usage:"Expandable items point to the id of the content they control."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"role=listbox",usage:"The column list is a listbox."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"aria-multiselectable=true",usage:"The column list supports multiple selections."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"aria-label",usage:"Accessible name for the column list."},{selector:".k-grid-columnmenu-popup .k-column-list-item",attribute:"role=option",usage:"Column list items are options."},{selector:".k-grid-columnmenu-popup .k-column-list-item",attribute:"aria-checked",usage:"Column list items announce their checked state."},{selector:"tfoot",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:"tfoot tr td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr td",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-selection-aggregates",attribute:"aria-live=polite",usage:"Ensures that changes in the calculated selection aggregates are announced by assistive technologies."},{selector:".k-grid-stack-cell",attribute:"tabindex=0",usage:"Stacked cell elements receive tabindex 0 when focus is within their parent .k-grid-stack-row element."},{selector:".k-grid-sticky-container",attribute:"role=none",usage:"Sticky group container has no semantic role."},{selector:".k-grid-sticky-container .k-grid-table",attribute:"role=none",usage:"Negates the default semantic role of the sticky group <table> element."},{selector:".k-grid-sticky-container tbody",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-sticky-container tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-sticky-container tr",attribute:"aria-rowindex",usage:"Matches the aria-rowindex of the real group header/footer row it mirrors."},{selector:".k-grid-sticky-container td:not(.k-group-cell)",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed. Group offset cells are excluded as they retain role=presentation."},{selector:".k-grid-sticky-container .k-grouping-row>td",attribute:"aria-expanded",usage:"Mirrors the expanded/collapsed state of the real group header row."},{selector:".k-grid-sticky-container td:not(.k-group-cell)",attribute:"tabindex",usage:"Receives tabindex 0 when focused, -1 otherwise, for keyboard navigation. Group offset cells are excluded as they are presentational."},{selector:".k-grid-sticky-container td",attribute:"aria-colindex (when present)",usage:"Col number. Typically 1 for the group header cell spanning all columns."},{selector:".k-grid-pinned-container",attribute:"role=none",usage:"Container for pinned rows has no semantic role."},{selector:".k-grid-pinned-container .k-grid-pinned-wrap",attribute:"role=none",usage:"Inner wrapper for the pinned rows table has no semantic role."},{selector:".k-grid-pinned-container tbody",attribute:"aria-label",usage:'Describes the purpose of the pinned rows group, e.g. "Top pinned rows" or "Bottom pinned rows".'},{selector:".k-grid-pinned-container td",attribute:"aria-haspopup=menu (when present)",usage:"Pinned row cells announce the context menu for row pinning operations."},{selector:".k-grid-pinned-container td",attribute:"aria-controls",usage:"Points to the ID of the context menu popup for row pinning."},{selector:".k-grid-pinned-container td",attribute:"aria-expanded",usage:"Indicates whether the context menu popup is open."},{selector:".k-grid-content td",attribute:"aria-haspopup=menu (when present)",usage:"Regular data cells announce context menu when row pinning uses contextual mode."},{selector:".k-grid-content td",attribute:"aria-controls",usage:"Points to the ID of the context menu popup for row pinning."},{selector:".k-grid-content td",attribute:"aria-expanded",usage:"Indicates whether the context menu popup is open."},{selector:'.k-pin-cell [class*="k-icon"]',attribute:"aria-hidden=true",usage:"Pin/unpin icon inside the dedicated column is decorative and must be hidden from assistive technologies."}]};import{jsx as Vi}from"react/jsx-runtime";var ca="k-grid-container",pt=e=>Vi("div",{...e,className:a(e.className,ca),children:e.children});pt.className=ca;pt.moduleName=G;pt.folderName=J;import{jsx as Xi}from"react/jsx-runtime";var pa="k-grid-content",mt=e=>Xi("div",{...e,className:a(e.className,pa),children:e.children});mt.className=pa;mt.moduleName=G;mt.folderName=J;var H="table",z=H;import{jsx as Ji}from"react/jsx-runtime";var ma="k-data-table",$i=[],qi={size:[s.undefined,s.small,s.medium,s.large]},Wi={},fe=e=>{let{size:t,...o}=e;return Ji("div",{...o,className:a(e.className,ma,S("k-table",{size:t})),children:e.children})};fe.states=$i;fe.options=qi;fe.className=ma;fe.defaultOptions=Wi;fe.moduleName=H;fe.folderName=z;import{jsx as ji}from"react/jsx-runtime";var Qt="k-table-header-wrap",Yi=[r.hover,r.focus,r.disabled],Qi={},Zi={},Le=e=>{let{children:t,hover:o,focus:n,disabled:i,...l}=e;return ji("div",{...l,className:a(e.className,Qt,k(Qt,{hover:o,focus:n,disabled:i})),children:t})};Le.states=Yi;Le.options=Qi;Le.className=Qt;Le.defaultOptions=Zi;Le.moduleName=H;Le.folderName=z;import{jsx as an}from"react/jsx-runtime";var Zt="k-table",en=[],tn={size:[s.undefined,s.small,s.medium,s.large]},on={},ee=e=>{let{size:t,...o}=e;return an("table",{...o,className:a(e.className,Zt,S(Zt,{size:t})),children:e.children})};ee.states=en;ee.options=tn;ee.className=Zt;ee.defaultOptions=on;ee.moduleName=H;ee.folderName=z;import{jsx as jt}from"react/jsx-runtime";var eo="k-table-header",nn=[r.hover,r.focus,r.disabled],rn={},sn={},he=e=>{let{children:t,hover:o,focus:n,disabled:i,...l}=e;return jt("div",{...l,className:a(e.className,eo,k(eo,{hover:o,focus:n,disabled:i})),children:jt(Le,{children:jt(ee,{children:t})})})};he.states=nn;he.options=rn;he.className=eo;he.defaultOptions=sn;he.moduleName=H;he.folderName=z;import{jsx as pn}from"react/jsx-runtime";var ua="k-table-scroller",ln=[],dn={},cn={},Fe=e=>{let{children:t,...o}=e;return pn("div",{...o,className:a(e.className,ua),children:t})};Fe.states=ln;Fe.options=dn;Fe.className=ua;Fe.defaultOptions=cn;Fe.moduleName=H;Fe.folderName=z;import{jsx as rc}from"react/jsx-runtime";import{jsx as fn}from"react/jsx-runtime";var ba="k-table-footer",mn=[],un={},bn={},ke=e=>{let{children:t,...o}=e;return fn("div",{...o,className:a(e.className,ba),children:t})};ke.states=mn;ke.options=un;ke.className=ba;ke.defaultOptions=bn;ke.moduleName=H;ke.folderName=z;import{jsx as gn}from"react/jsx-runtime";var to="k-table-list",hn=[],xn={size:[s.undefined,s.small,s.medium,s.large]},Tn={},ve=e=>{let{size:t,virtualization:o,...n}=e;return gn("ul",{...n,className:a(e.className,"k-table",to,S(to,{size:t}),{"k-virtual-table":o}),children:e.children})};ve.states=hn;ve.options=xn;ve.className=to;ve.defaultOptions=Tn;ve.moduleName=H;ve.folderName=z;import{jsx as Tc}from"react/jsx-runtime";import{jsx as Ln}from"react/jsx-runtime";var Nn="k-table-tbody",wt=e=>Ln("tbody",{className:a(e.className,Nn),children:e.children});import{jsx as Ac}from"react/jsx-runtime";import{jsx as vn}from"react/jsx-runtime";var oo="k-table-row",kn=[r.hover,r.focus,r.selected,r.disabled,r.highlighted],me=e=>{let{hover:t,focus:o,selected:n,highlighted:i,disabled:l,alt:d,...c}=e;return vn("tr",{...c,className:a(e.className,oo,{"k-table-alt-row":d},k(oo,{hover:t,focus:o,disabled:l,selected:n,highlighted:i})),children:e.children})};me.states=kn;me.className=oo;import{jsx as An}from"react/jsx-runtime";var ao="k-table-row",Sn=[r.hover,r.focus,r.selected,r.disabled],Ct=e=>{let{hover:t,focus:o,selected:n,disabled:i,alt:l,...d}=e;return An("li",{...d,className:a(e.className,ao,{"k-table-alt-row":l},k(ao,{hover:t,focus:o,disabled:i,selected:n})),children:e.children})};Ct.states=Sn;Ct.className=ao;import{jsx as En}from"react/jsx-runtime";var fa="k-table-th",He=e=>{let{text:t,colspan:o,rowspan:n,...i}=e,l=t||e.children;return En("th",{colSpan:o,rowSpan:n,...i,className:a(e.className,fa),children:l})};He.className=fa;He.moduleName=H;He.folderName=z;import{jsx as Bc}from"react/jsx-runtime";import{jsx as yn}from"react/jsx-runtime";var io="k-table-td",Mn=[r.focus,r.selected,r.highlighted],Se=e=>{let{focus:t,selected:o,highlighted:n,text:i,colspan:l,rowspan:d,...c}=e,p=i||e.children;return yn("td",{colSpan:l,rowSpan:d,...c,className:a(e.className,io,k(io,{focus:t,selected:o,highlighted:n})),children:p})};Se.states=Mn;Se.className=io;import{jsx as $c}from"react/jsx-runtime";import{jsx as Yc}from"react/jsx-runtime";import{jsx as ep}from"react/jsx-runtime";import{jsx as ip}from"react/jsx-runtime";import{jsx as lp}from"react/jsx-runtime";import{jsx as fp,jsxs as hp}from"react/jsx-runtime";import{jsx as Np,jsxs as Lp}from"react/jsx-runtime";import{jsx as Ap,jsxs as Ep}from"react/jsx-runtime";import{Fragment as Rp,jsx as wp,jsxs as Cp}from"react/jsx-runtime";import{jsx as Rn}from"react/jsx-runtime";var xa="k-grid-table",ut=e=>Rn(ee,{...e,className:a(e.className,xa),children:e.children});ut.className=xa;ut.moduleName=G;ut.folderName=J;import{Fragment as Pn,jsx as Ta}from"react/jsx-runtime";var ro="k-font-icon",On=[],Dn={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[T.undefined,T.base,T.primary,T.secondary,T.tertiary,T.success,T.warning,T.error,T.info]},Kn={},bt=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:l,...d}=e;return n?Ta("span",{...d,className:a(e.className,ro,S(ro,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true"}):Ta(Pn,{})};bt.states=On;bt.options=Dn;bt.className=ro;bt.defaultOptions=Kn;var ga=bt;import{Fragment as Bn,jsx as Rt}from"react/jsx-runtime";var so="k-svg-icon",Hn=[],_n={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[T.undefined,T.base,T.primary,T.secondary,T.tertiary,T.success,T.warning,T.error,T.info],variant:[ce.outline,ce.solid,ce.duotone]},lo={viewBox:"0 0 24 24",variant:ce.outline},ft=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:l=lo.viewBox,variant:d=lo.variant,icon:c,...p}=e;if(!c)return Rt(Bn,{});if(c==="none")return Rt("span",{...p,className:a(e.className,so,S("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let u=typeof c=="object"&&c.name&&c.name,f=typeof c=="object"?d&&c.variants?.[d]||c.variants?.outline||c.content:void 0;return Rt("span",{...p,className:a(e.className,so,S("k-icon",{size:t}),{[`k-svg-i-${u}`]:u,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:Rt("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:l,dangerouslySetInnerHTML:f!==void 0?{__html:f}:void 0,children:c?void 0:e.children})})};ft.states=Hn;ft.options=_n;ft.className=so;ft.defaultOptions=lo;var co=ft;import*as po from"@progress/kendo-svg-icons";var Na="icon",La="icons";import{useContext as Gn}from"react";import{createContext as zn}from"react";var ka=zn({iconsType:"svg"});import{Fragment as va,jsx as ht}from"react/jsx-runtime";var Ot="k-icon",Un=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Fn=[],Vn={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[T.undefined,T.base,T.primary,T.secondary,T.tertiary,T.success,T.warning,T.error,T.info],variant:[ce.outline,ce.solid,ce.duotone]},Dt={viewBox:"0 0 24 24",type:"svg",variant:ce.outline},v=e=>{let{iconsType:t}=Gn(ka),{size:o,themeColor:n,icon:i,type:l=t||Dt.type,rotate:d,flip:c,viewBox:p=Dt.viewBox,variant:u=Dt.variant,...f}=e;if(!i)return ht(va,{});if((t||l)==="svg"){if(i==="none")return ht(co,{...f,className:a(e.className,Ot),icon:i,size:o,variant:u});let L=po[i]?i:Un(`${i}-icon`);return po[L]?ht(co,{...f,className:a(e.className,Ot),icon:po[L],size:o,themeColor:n,rotate:d,flip:c,viewBox:p,variant:u}):ht(va,{})}return ht(ga,{...f,className:a(e.className,Ot),icon:i,size:o,themeColor:n,rotate:d,flip:c})};v.states=Fn;v.options=Vn;v.defaultOptions=Dt;v.className=Ot;v.moduleName=Na;v.folderName=La;v.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 mo="button",Sa=mo;import{Fragment as Aa,jsx as Ve,jsxs as Ea}from"react/jsx-runtime";var xt="k-button",Xn=["icon-button"],$n=[r.hover,r.focus,r.active,r.selected,r.disabled,r.generating],qn={size:[s.undefined,s.xsmall,s.small,s.medium,s.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[T.undefined,T.base,T.primary,T.secondary,T.tertiary,T.success,T.warning,T.error,T.info,T.inverse]},uo={showArrow:!1,arrowIconName:"chevron-down"},b=e=>{let{as:t="button",size:o,rounded:n,fillMode:i,themeColor:l,showArrow:d=uo.showArrow,arrowIconName:c=uo.arrowIconName,variant:p,hover:u,focus:f,active:g,selected:L,disabled:E,togglable:R,ariaDisabled:C,icon:N,iconSize:A,text:O,iconClassName:re,className:y,...Ke}=e,Pe=N!=null,dt=e.children!==void 0;return Ea(t,{className:a(y,xt,la(xt,p),S(xt,{size:o,rounded:n,fillMode:i,themeColor:l}),k(xt,{hover:u,focus:f,active:g,disabled:E||C,selected:L}),{"k-icon-button":!O&&!dt&&Pe}),"aria-pressed":R?L?"true":"false":void 0,...Ke,"aria-disabled":C?"true":void 0,disabled:E||void 0,children:[typeof N=="string"&&N&&Ve(v,{className:a(re,"k-button-icon"),icon:N,size:A}),N&&typeof N!="string"&&Ve(Aa,{children:N}),O?Ea(Aa,{children:[O&&Ve("span",{className:"k-button-text",children:O}),e.children]}):e.children&&Ve("span",{className:"k-button-text",children:e.children}),d&&Ve("span",{className:"k-menu-button-arrow k-button-arrow",children:Ve(v,{icon:c})})]})};b.states=$n;b.options=qn;b.variants=Xn;b.className=xt;b.defaultOptions=uo;b.moduleName=mo;b.folderName=Sa;b.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as Wn}from"react/jsx-runtime";var Ma=e=>Wn(b,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Jn}from"react/jsx-runtime";var ya=e=>Jn(b,{icon:"folder",children:"Button",...e});import{jsx as Yn}from"react/jsx-runtime";var _e=e=>Yn(b,{children:"Button",...e});import{jsx as bo}from"react/jsx-runtime";var Qn=b.options,Zn=b.states,jn={...b.defaultOptions,variant:"text"},er=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],tr=[],Xe=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return bo(Ma,{...o,icon:"star"});case"icon-and-text":return bo(ya,{...o,icon:"star",children:"Button"});default:return bo(_e,{...o,children:"Button"})}};Xe.options=Qn;Xe.states=Zn;Xe.variants=er;Xe.defaultOptions=jn;Xe.modifiers=tr;Xe.className=b.className;var Tt="input",Kt=Tt;import{jsx as nr}from"react/jsx-runtime";var Pt="k-input",or=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ar={size:[s.undefined,s.small,s.medium,s.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},ir={},K=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:d,readonly:c,size:p,rounded:u,fillMode:f,...g}=e;return nr("span",{...g,className:a(e.className,Pt,S(Pt,{size:p,rounded:u,fillMode:f}),k(Pt,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:d,readonly:c}))})};K.states=or;K.options=ar;K.className=Pt;K.defaultOptions=ir;K.moduleName=Tt;K.folderName=Kt;import{jsx as dr}from"react/jsx-runtime";var Ht="k-picker",rr=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],sr={size:[s.undefined,s.small,s.medium,s.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},lr={},Ae=e=>{let{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:d,readonly:c,size:p,rounded:u,fillMode:f,...g}=e;return dr("span",{...g,className:a(e.className,Ht,S(Ht,{size:p,rounded:u,fillMode:f}),k(Ht,{hover:t,focus:o,disabled:n,invalid:i,valid:l,loading:d,readonly:c})),children:e.children})};Ae.states=rr;Ae.options=sr;Ae.className=Ht;Ae.defaultOptions=lr;Ae.moduleName=Tt;Ae.folderName=Kt;import{Fragment as mr,jsx as fo}from"react/jsx-runtime";var Ia="k-clear-value",cr=[r.disabled,r.loading,r.readonly],pr={},se=e=>{let{disabled:t,loading:o,readonly:n,value:i}=e;return t||n||o||!i?fo(mr,{}):fo("span",{className:a(e.className,Ia),children:fo(v,{icon:"x"})})};se.states=cr;se.options=pr;se.className=Ia;import{jsx as fr}from"react/jsx-runtime";var ho="k-input-inner",ur=[],br={},_t={type:"text",autocomplete:"off",value:"",placeholder:""},le=e=>{let{value:t=_t.value,type:o=_t.type,placeholder:n=_t.placeholder,autocomplete:i=_t.autocomplete,disabled:l,readOnly:d,...c}=e;return fr("input",{...c,type:o,className:a(e.className,ho,S(ho,e)),placeholder:n,autoComplete:i,defaultValue:t,disabled:l||void 0,readOnly:d||void 0})};le.states=ur;le.options=br;le.className=ho;import{jsx as wa,jsxs as Tr}from"react/jsx-runtime";var xo="k-input-inner",hr=[],xr={},gt=e=>{let{value:t,placeholder:o,showValue:n,valueIcon:i,valueIconName:l,...d}=e;return Tr("span",{...d,className:a(e.className,xo,S(xo,e)),children:[i,!i&&l&&wa(v,{className:"k-input-value-icon",icon:l}),n&&!t&&o,n&&t&&wa("span",{className:"k-input-value-text",children:t})]})};gt.states=hr;gt.options=xr;gt.className=xo;import{jsx as Lr}from"react/jsx-runtime";var To="k-input-inner",gr=[],Nr={},Ca={value:"",placeholder:""},go=e=>{let{value:t=Ca.value,placeholder:o=Ca.placeholder,rows:n,disabled:i,...l}=e;return Lr("textarea",{...l,className:a(e.className,To,S(To,e)),placeholder:o,rows:n,defaultValue:t,disabled:i||void 0})};go.states=gr;go.options=Nr;go.className=To;import{Fragment as vr,jsx as Ra}from"react/jsx-runtime";var Oa="k-input-loading-icon",kr=[r.disabled,r.loading],te=e=>{let{disabled:t,loading:o}=e;return t||!o?Ra(vr,{}):Ra("span",{className:a(e.className,Oa,"k-icon k-i-loading")})};te.states=kr;te.className=Oa;import{Fragment as Er,jsx as Da}from"react/jsx-runtime";var Ka="k-input-validation-icon",Sr=[r.valid,r.invalid,r.disabled,r.loading],Ar={},Z=e=>{let{valid:t,invalid:o,disabled:n,loading:i}=e,l=o?"warning-circle":"check-circle";return n||i||!!!(t||o)?Da(Er,{}):Da(v,{className:a(Ka),icon:l})};Z.states=Sr;Z.options=Ar;Z.className=Ka;import{Fragment as Ir,jsx as Pa}from"react/jsx-runtime";var Mr="k-input-prefix",yr={direction:"horizontal"},Ee=e=>{let{direction:t=yr.direction,...o}=e;return e.children?Pa("span",{...o,className:a(Mr,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Pa(Ir,{})};import{Fragment as Rr,jsx as Ha}from"react/jsx-runtime";var wr="k-input-suffix",Cr={direction:"horizontal"},Me=e=>{let{direction:t=Cr.direction,...o}=e;return e.children?Ha("span",{...o,className:a(wr,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Ha(Rr,{})};import{jsx as Xu}from"react/jsx-runtime";import{jsx as Dr}from"react/jsx-runtime";var Or="k-input-suffix-text",No=e=>{let{children:t,...o}=e;return Dr("span",{...o,className:a(Or,e.className),children:t})};import{jsx as Pr}from"react/jsx-runtime";var _a="k-input-separator",Kr={direction:"vertical"},xe=e=>{let{direction:t=Kr.direction,...o}=e;return Pr("span",{...o,className:a(_a,e.className,{[`${_a}-${t}`]:t})})};import{Fragment as Ba,jsx as ue,jsxs as Lo}from"react/jsx-runtime";var Hr=K.states,_r=K.defaultOptions,Br=K.options,zr=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Gr=[],$e=e=>{let{modifiers:t,valid:o,invalid:n,loading:i,disabled:l,readonly:d,...c}=e,p=t?.prefix,u=t?.suffix,f=t?.["clear-button"],g=t?.["validation-icon"],L=t?.separators;return Lo(K,{...c,valid:o,invalid:n,loading:i,disabled:l,readonly:d,style:{width:300},children:[p&&Lo(Ba,{children:[ue(Ee,{children:ue(v,{icon:"lock"})}),L&&ue(xe,{})]}),ue(le,{placeholder:"Placeholder",value:"Value"}),g&&ue(Z,{valid:o,invalid:n,loading:i,disabled:l}),ue(te,{loading:i,disabled:l}),f&&ue(se,{loading:i,disabled:l,readonly:d,value:"Value"}),u&&Lo(Ba,{children:[L&&ue(xe,{}),ue(Me,{children:ue(_e,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};$e.options=Br;$e.states=Hr;$e.variants=Gr;$e.defaultOptions=_r;$e.modifiers=zr;$e.className=K.className;var ko="popup",za=ko;import{jsx as Ga}from"react/jsx-runtime";var Ua="k-animation-container",Ur=[],Fr={},vo={positionMode:"absolute",shown:!0},be=e=>{let{positionMode:t=vo.positionMode,shown:o=vo.shown,animationStyle:n,offset:i,...l}=e;return Ga("div",{...l,style:{...i,...e.style},className:a(e.className,Ua,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Ga("div",{className:"k-child-animation-container",style:n,children:e.children})})};be.states=Ur;be.options=Fr;be.className=Ua;be.defaultOptions=vo;be.moduleName=ko;be.folderName=za;var So="popup",Fa=So;import{jsx as Va}from"react/jsx-runtime";var Xa="k-popup",Vr=[],Xr={},$a={positionMode:"absolute"},Te=e=>{let{offset:t,positionMode:o=$a.positionMode,animationStyle:n,containerClassName:i,containerRole:l,containerAriaLabel:d,...c}=e;return Va(be,{positionMode:o,offset:t,animationStyle:n,className:i,role:l,"aria-label":d,children:Va("div",{...c,className:a(e.className,Xa),children:e.children})})};Te.states=Vr;Te.options=Xr;Te.className=Xa;Te.defaultOptions=$a;Te.moduleName=So;Te.folderName=Fa;Te.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 Ao="action-buttons",qa=Ao;import{jsx as Wr}from"react/jsx-runtime";var Bt="k-actions",$r=[],qr={},Eo={alignment:"start",orientation:"horizontal"},ye=e=>{let{alignment:t=Eo.alignment,orientation:o=Eo.orientation,...n}=e;return Wr("div",{...n,className:a(Bt,{[`${Bt}-${t}`]:t,[`${Bt}-${o}`]:o},e.className),children:e.children})};ye.states=$r;ye.options=qr;ye.className=Bt;ye.defaultOptions=Eo;ye.moduleName=Ao;ye.folderName=qa;import{jsx as Yr}from"react/jsx-runtime";var Jr="k-actionsheet-footer",Wa={alignment:"stretched",orientation:"horizontal"},qe=e=>{let{alignment:t=Wa.alignment,orientation:o=Wa.orientation,template:n,as:i=n?"div":ye,...l}=e;return Yr(i,{...l,...!n&&{alignment:t,orientation:o},className:a(e.className,Jr),children:e.children})};var Mo="searchbox",Ja=Mo;import{jsx as Nt,jsxs as jr}from"react/jsx-runtime";var Ya="k-searchbox",Qr=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading],Zr={size:[s.undefined,s.small,s.medium,s.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},yo={showIcon:!0,icon:"search"},oe=e=>{let{value:t,placeholder:o,size:n,rounded:i,fillMode:l,hover:d,focus:c,valid:p,invalid:u,required:f,loading:g,disabled:L,showIcon:E=yo.showIcon,icon:R=yo.icon,"aria-label":C,...N}=e;return jr(K,{...N,size:n,rounded:i,fillMode:l,hover:d,focus:c,valid:p,invalid:u,required:f,loading:g,disabled:L,className:a(e.className,Ya),children:[E&&Nt(v,{className:"k-input-icon",icon:R}),Nt(le,{placeholder:o,value:t,"aria-label":C}),Nt(te,{...e}),Nt(Z,{...e}),Nt(se,{...e})]})};oe.states=Qr;oe.options=Zr;oe.className=Ya;oe.defaultOptions=yo;oe.moduleName=Mo;oe.folderName=Ja;import{jsx as pf}from"react/jsx-runtime";var Io="textbox",Qa=Io;import{Fragment as Za,jsx as Ie,jsxs as wo}from"react/jsx-runtime";var ja="k-textbox",es=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.loading,r.readonly],ts={size:[s.undefined,s.small,s.medium,s.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},zt={showClearButton:!0,showValidationIcon:!0,separators:!0},U=e=>{let{size:t,rounded:o,fillMode:n,separators:i=zt.separators,showClearButton:l=zt.showClearButton,showValidationIcon:d=zt.showValidationIcon,prefix:c,suffix:p,type:u,value:f,placeholder:g,hover:L,focus:E,valid:R,invalid:C,required:N,loading:A,disabled:O,readonly:re,id:y,"aria-label":Ke,"aria-describedby":Pe,...dt}=e;return wo(K,{...dt,size:t,rounded:o,fillMode:n,hover:L,focus:E,valid:R,invalid:C,required:N,loading:A,disabled:O,readonly:re,className:a(e.className,ja),children:[c&&wo(Za,{children:[Ie(Ee,{children:c}),i&&Ie(xe,{})]}),Ie(le,{id:y,placeholder:g,value:f,type:u,disabled:O,"aria-label":Ke,"aria-describedby":Pe,"aria-invalid":C?"true":void 0}),d&&Ie(Z,{valid:R,invalid:C,loading:A,disabled:O}),Ie(te,{loading:A,disabled:O}),l&&Ie(se,{loading:A,disabled:O,readonly:re,value:f}),p&&wo(Za,{children:[i&&Ie(xe,{}),Ie(Me,{children:p})]})]})};U.states=es;U.options=ts;U.className=ja;U.defaultOptions=zt;U.moduleName=Io;U.folderName=Qa;U.ariaSpec={selector:".k-textbox",rules:[{selector:".k-textbox > .k-input-inner",attribute:"role=textbox or nodeName=input",usage:"Describes the role of the component."},{selector:".k-textbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-textbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the TextBox is in an invalid state."},{selector:".k-textbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the input."},{selector:".k-textbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the TextBox is disabled."}]};var Lt=U;import{jsx as os}from"react/jsx-runtime";var ei=e=>os(Lt,{...e});import{Fragment as If,jsx as yf}from"react/jsx-runtime";import{Fragment as Kf,jsx as Df}from"react/jsx-runtime";import{jsx as Bf}from"react/jsx-runtime";import{jsx as Co}from"react/jsx-runtime";var as=U.states,is=U.defaultOptions,ns=U.options,rs=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],ss=[],We=e=>{let{modifiers:t,...o}=e,n={};return Object.keys(t||{}).forEach(i=>{switch(i){case"prefix":n.prefix=t?.[i]?Co(v,{icon:"lock"}):void 0;break;case"suffix":n.suffix=t?.[i]?Co(_e,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":n.showClearButton=t?.[i];break;default:break}}),Co(ei,{value:"Value",style:{width:300},...o,...n})};We.options=ns;We.states=as;We.variants=ss;We.defaultOptions=is;We.modifiers=rs;We.className=U.className;import{jsx as we,jsxs as Ro}from"react/jsx-runtime";var ti="k-actionsheet-titlebar",ls={},de=e=>{let{title:t,subtitle:o,actionsStart:n,actionsEnd:i,filter:l,input:d,inputValue:c,inputPlaceholder:p,adaptive:u,titleId:f,children:g,...L}=e;return Ro("div",{...L,className:a(e.className,ti),children:[Ro("div",{className:"k-actionsheet-titlebar-group",children:[n&&we("div",{className:"k-actionsheet-actions",children:n}),!g&&Ro("div",{className:"k-actionsheet-title",id:f,children:[t&&we("div",{className:"k-text-center",children:t}),o&&we("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),g&&we("div",{className:"k-actionsheet-title",id:f,children:g}),i&&we("div",{className:"k-actionsheet-actions",children:i})]}),(d||l)&&we("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?we(U,{value:c,placeholder:p,size:u?"large":"medium","aria-label":t||p||"Input"}):we(oe,{placeholder:"Filter",size:u?"large":"medium","aria-label":"Filter options"})})]})};de.className=ti;de.defaultOptions=ls;import{jsx as Oo,jsxs as ms}from"react/jsx-runtime";var Do="k-actionsheet-view",ds=[],cs={},ps={},Je=e=>{let{adaptive:t,animated:o,children:n,header:i,footer:l,titleId:d,...c}=e,p=i?.type===de&&Oo(de,{adaptive:t,titleId:d,...i?.props}),u=l?.type===qe&&Oo(qe,{...l?.props});return ms("div",{...c,className:a(e.className,Do,{[`${Do}-animated`]:o}),children:[p,Oo("div",{className:"k-actionsheet-content",children:n}),u]})};Je.states=ds;Je.options=cs;Je.className=Do;Je.defaultOptions=ps;var kt="action-sheet",Gt=kt;var Ko="overlay",oi=Ko;import{jsx as hs}from"react/jsx-runtime";var ai="k-overlay",us=[],bs={},fs={},Ce=e=>{let{...t}=e;return hs("div",{...t,className:a(e.className,ai),children:e.children})};Ce.states=us;Ce.options=bs;Ce.className=ai;Ce.defaultOptions=fs;Ce.moduleName=Ko;Ce.folderName=oi;import{jsx as Ut,jsxs as gs}from"react/jsx-runtime";var ii="k-actionsheet",xs=[],Ts={},vt={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},_=e=>{let{side:t=vt.side,fullscreen:o=vt.fullscreen,adaptive:n=vt.adaptive,overlay:i=vt.overlay,template:l,children:d,header:c,footer:p,id:u,...f}=e,g=u&&!l&&c?`${u}-title`:void 0;return gs("div",{className:"k-actionsheet-container",children:[i&&Ut(Ce,{}),Ut(be,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:Ut("div",{...f,id:u,role:"dialog","aria-modal":i?"true":void 0,"aria-labelledby":g,className:a(e.className,ii,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":n}),children:l||Ut(Je,{header:c,footer:p,adaptive:n,titleId:g,...e,children:d})})})]})};_.states=xs;_.options=Ts;_.className=ii;_.defaultOptions=vt;_.moduleName=kt;_.folderName=Gt;_.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};import{jsx as vs}from"react/jsx-runtime";var ni="k-actionsheet-container",Ns=[],Ls={},ks={},Ye=e=>{let{children:t,...o}=e;return vs("div",{...o,className:ni,children:t})};Ye.states=Ns;Ye.options=Ls;Ye.className=ni;Ye.defaultOptions=ks;Ye.moduleName=kt;Ye.folderName=Gt;import{jsx as Ss}from"react/jsx-runtime";var Po=e=>{let{...t}=e;return Ss("div",{...t,className:a(e.className,"k-list-ul"),children:e.children})};import{Fragment as Es,jsx as St,jsxs as Ho}from"react/jsx-runtime";var _o="k-actionsheet-item",As=[r.hover,r.focus,r.selected,r.disabled],Re=e=>{let{iconName:t,text:o,description:n,hover:i,focus:l,selected:d,disabled:c,...p}=e;return Ho("span",{...p,className:a(e.className,_o,k(_o,{hover:i,focus:l,selected:d,disabled:c})),children:[!e.children&&St(Es,{children:Ho("span",{className:"k-actionsheet-action",children:[t&&St("span",{className:"k-icon-wrap",children:St(v,{className:"k-actionsheet-item-icon",icon:t})}),Ho("span",{className:"k-actionsheet-item-text",children:[o&&St("span",{className:"k-actionsheet-item-title",children:o}),n&&St("span",{className:"k-actionsheet-item-description",children:n})]})]})}),e.children]})};Re.states=As;Re.className=_o;import{jsx as _h,jsxs as Bh}from"react/jsx-runtime";import{jsx as Fh}from"react/jsx-runtime";import{jsx as qh}from"react/jsx-runtime";import{jsx as Qh}from"react/jsx-runtime";import{jsx as B,jsxs as Bo}from"react/jsx-runtime";var Ms=_.options,ys=_.states,si={..._.defaultOptions,variant:"normal"},Is=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],ws=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Qe=e=>{let{variant:t,modifiers:o,...n}={...si,...e},i={},l=Bo(Po,{children:[B(Re,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),B(Re,{text:"Add to Favorites",iconName:"heart"}),B(Re,{text:"Upload New",iconName:"upload",disabled:!0}),B("hr",{className:"k-hr"}),B(Re,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",c="Select Item";return t==="fullScreen"&&(i.fullScreen=!0),Object.keys(o||{}).forEach(p=>{switch(p){case"actions":i.actionsStart=!!o?.[p],i.actionsEnd=!!o?.[p];break;case"subtitle":i.subtitle=o?.[p]?d:void 0;break;case"footer":i.footer=!!o?.[p];break;default:break}}),t==="adaptive"?B(_,{...n,adaptive:!0,fullscreen:i.fullScreen,header:B(de,{actionsStart:i.actionsStart?B(b,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?B(b,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:i.subtitle}),footer:i.footer?Bo(qe,{alignment:"stretched",children:[B(b,{text:"Cancel",size:"large",themeColor:"base"}),B(b,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:l}):B(_,{...n,fullscreen:i.fullScreen,header:B(de,{actionsStart:i.actionsStart?B(b,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:i.actionsEnd?B(b,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:i.subtitle}),footer:i.footer?Bo(qe,{alignment:"stretched",children:[B(b,{text:"Apply",themeColor:"primary"}),B(b,{text:"Cancel",themeColor:"base"})]}):void 0,children:l})};Qe.options=Ms;Qe.states=ys;Qe.variants=Is;Qe.defaultOptions=si;Qe.modifiers=ws;Qe.className=_.className;import Uo from"react";import{jsx as li}from"react/jsx-runtime";var Cs="k-list-group-sticky-header",zo=e=>li("div",{className:a(Cs,e.className),children:li("div",{className:"k-list-header-text",children:e.children})});import{jsx as Os}from"react/jsx-runtime";var Rs="k-no-data",Go=e=>{let{live:t,...o}=e;return Os("span",{...o,className:a(Rs,e.className),"aria-live":t?"polite":void 0,children:e.children})};var Be="list",Ze=Be;import{jsx as di,jsxs as ci}from"react/jsx-runtime";var Fo="k-list",Ds=[],Ks={size:[s.undefined,s.small,s.medium,s.large]},Ps={},w=e=>{let{size:t,virtualization:o,children:n,header:i,selectAll:l,optionLabel:d,customValue:c,noData:p,screenReaders:u,...f}=e,L=Uo.Children.toArray(n)[0],E=L?.props?.children?Uo.Children.count(L.props.children):Uo.Children.count(n);return ci("div",{...f,className:a(e.className,Fo,S(Fo,{size:t}),{"k-virtual-list":o}),children:[d,l,c,i&&di(zo,{children:i}),n||(p!==void 0?p:di(Go,{live:!0,children:"No data found."})),u&&n&&ci(Go,{className:"k-sr-only",live:!0,children:[E," items found."]})]})};w.states=Ds;w.options=Ks;w.className=Fo;w.defaultOptions=Ps;w.moduleName=Be;w.folderName=Ze;w.ariaSpec={selector:".k-list",rules:[{selector:".k-list .k-no-data",attribute:"aria-live=polite",usage:'Announces "No data found" to screen readers.'}]};import{jsx as zs}from"react/jsx-runtime";var pi="k-list-container",Hs=[],_s={},Bs={},je=e=>{let{...t}=e;return zs("div",{...t,className:a(e.className,pi),children:e.children})};je.states=Hs;je.options=_s;je.className=pi;je.defaultOptions=Bs;je.moduleName=Be;je.folderName=Ze;var ze="checkbox",et=ze;import{jsx as mi}from"react/jsx-runtime";var Ft="k-checkbox",Gs=[r.hover,r.focus,r.valid,r.invalid,r.required,r.disabled,r.checked,r.indeterminate],Us={size:[s.undefined,s.small,s.medium,s.large],rounded:[m.undefined,m.none,m.small,m.medium,m.large,m.full]},Fs={},Y=e=>{let{id:t,checked:o,indeterminate:n,hover:i,focus:l,disabled:d,invalid:c,valid:p,required:u,size:f,rounded:g,wrapperRole:L,...E}=e;return mi("span",{className:"k-checkbox-wrap",role:L,children:mi("input",{...E,id:t,type:"checkbox",defaultChecked:o,required:u,disabled:d||void 0,"aria-invalid":c?"true":void 0,className:a(e.className,Ft,S(Ft,{size:f,rounded:g}),k(Ft,{hover:i,focus:l,disabled:d,invalid:c,valid:p,indeterminate:n,checked:o}))})})};Y.states=Gs;Y.options=Us;Y.className=Ft;Y.defaultOptions=Fs;Y.moduleName=ze;Y.folderName=et;Y.ariaSpec={selector:".k-checkbox",rules:[{selector:".k-checkbox",attribute:"role=checkbox or type=checkbox",usage:"Announces the checkbox role of the element."},{selector:".k-checkbox",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name to which it will be assigned."},{selector:".k-checkbox",attribute:"aria-checked=true/false/mixed or checked",usage:"For native checkboxes the checked state is handled by the browser. aria-checked is used for custom implementations."},{selector:".k-checkbox",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the checkbox."},{selector:".k-checkbox",attribute:"disabled or aria-disabled=true (when disabled)",usage:"For native checkboxes use the HTML disabled attribute. aria-disabled for custom implementations."},{selector:".k-invalid, .ng-invalid",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the CheckBox is in a form and announces the invalid state."}]};var ae=Y;import{jsx as $s}from"react/jsx-runtime";var ui="k-checkbox-list",Vs=[],Xs={},bi={layout:"vertical"},F=e=>{let{layout:t=bi.layout,...o}=e;return $s("ul",{...o,className:a(e.className,ui,{[`k-list-${t}`]:t}),children:e.children})};F.states=Vs;F.options=Xs;F.className=ui;F.defaultOptions=bi;F.moduleName=ze;F.folderName=et;import{jsx as Ys}from"react/jsx-runtime";var fi="k-checkbox-list-item",qs=[],Ws={},Js={},V=e=>{let{...t}=e;return Ys("li",{...t,className:a(e.className,fi),children:e.children})};V.states=qs;V.options=Ws;V.className=fi;V.defaultOptions=Js;V.moduleName=ze;V.folderName=et;import{Fragment as Qs,jsx as hi,jsxs as Zs}from"react/jsx-runtime";var ge=({children:e="Label",id:t="cb-label-after",...o})=>Zs(Qs,{children:[hi(ae,{id:t,...o}),hi("label",{className:"k-checkbox-label",htmlFor:t,children:e})]});import{Fragment as rT,jsx as nT,jsxs as sT}from"react/jsx-runtime";import{Fragment as mT,jsx as pT,jsxs as uT}from"react