@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 198 kB
JavaScript
var Ym=Object.create;var Ar=Object.defineProperty;var Qm=Object.getOwnPropertyDescriptor;var Zm=Object.getOwnPropertyNames;var jm=Object.getPrototypeOf,eu=Object.prototype.hasOwnProperty;var ou=(e,o)=>{for(var t in o)Ar(e,t,{get:o[t],enumerable:!0})},us=(e,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let l of Zm(o))!eu.call(e,l)&&l!==t&&Ar(e,l,{get:()=>o[l],enumerable:!(r=Qm(o,l))||r.enumerable});return e};var bs=(e,o,t)=>(t=e!=null?Ym(jm(e)):{},us(o||!e||!e.__esModule?Ar(t,"default",{value:e,enumerable:!0}):t,e)),tu=e=>us(Ar({},"__esModule",{value:!0}),e);var WN={};ou(WN,{GridDemo:()=>Ht,default:()=>VN});module.exports=tu(WN);var a=(...e)=>e.filter(o=>o!==!0&&!!o).map(o=>Array.isArray(o)?a(...o):typeof o=="object"?Object.keys(o).map((t,r)=>o[r]||o[t]&&t||null).filter(t=>t!==null).join(" "):o).filter(o=>!!o).join(" ");var y=(e,o)=>a({[`${e}-xs`]:o.size==="xsmall",[`${e}-sm`]:o.size==="small",[`${e}-md`]:o.size==="medium",[`${e}-lg`]:o.size==="large",[`${e}-xl`]:o.size==="xlarge",[`${e}-xxl`]:o.size==="xxlarge",[`${e}-xxxl`]:o.size==="xxxlarge"},{[`${e}-${o.fillMode}`]:o.fillMode},{[`${e}-${o.themeColor}`]:o.themeColor},{"k-rounded-sm":o.rounded==="small","k-rounded-md":o.rounded==="medium","k-rounded-lg":o.rounded==="large","k-rounded-full":o.rounded==="full","k-rounded-none":o.rounded==="none"}),S=(e,o)=>{let{valid:t,invalid:r,hover:l,focus:n,checked:d,active:m,selected:f,disabled:k,indeterminate:N,loading:v,empty:b,readonly:w,highlighted:C,...G}=o;return a({"k-valid":t,"k-invalid":r,"k-hover":l,"k-focus":n,"k-checked":d,"k-active":m,"k-selected":f,"k-disabled":k,"k-indeterminate":N&&!d,"k-loading":v,"k-empty":b,"k-readonly":w,"k-highlighted":C},Object.keys(G).reduce((H,P)=>(P.startsWith("k-")?H[P]=G[P]:H[`k-${P}`]=G[P],H),{}))};function fs(e,o){if(!o)return{};let t=Array.isArray(o)?o:[o];return Object.fromEntries(t.map(r=>[`k-${r}`,!0]))}var s={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},g={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},h={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Uo={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},M={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},i={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var Cl={};function B(e){return Cl[e]=(Cl[e]||0)+1,`k-${e}-${Cl[e]}`}var j="grid",oe=j;var Rr=require("react/jsx-runtime"),Ir="k-grid",au=[],ru={size:[s.undefined,s.small,s.medium,s.large]},lu=[],Ts={pagerPosition:"bottom"},_=e=>{let{size:o,pagerPosition:t=Ts.pagerPosition,toolbar:r,pager:l,groupingHeader:n,gridSelectionAggregates:d,_renderAriaRoot:m,resizable:f,ariaColCount:k,ariaRowCount:N,ariaRootId:v,ariaRole:b="grid",...w}=e;return(0,Rr.jsxs)("div",{...w,className:a(e.className,Ir,{[`${Ir}-resizable`]:f},y(Ir,{size:o})),children:[r,t==="top"&&l,n,e.children&&m?(0,Rr.jsx)("div",{className:"k-grid-aria-root",role:b,id:v,"aria-colcount":k,"aria-rowcount":N,children:e.children}):e.children,d,t==="bottom"&&l]})};_.states=au;_.options=ru;_.variants=lu;_.className=Ir;_.defaultOptions=Ts;_.moduleName=j;_.folderName=oe;_.ariaSpec={selector:".k-grid",rules:[{selector:".k-grid-toolbar",attribute:"role=toolbar",usage:"The toolbar is a collection of command buttons and inputs."},{selector:".k-grid-toolbar",attribute:"aria-label",usage:"Clarifies the purpose of the toolbar."},{selector:".k-grid-toolbar",attribute:"aria-controls=.k-grid-aria-root id (when present)",usage:"Pointing to the id of the element with role=grid."},{selector:".k-grouping-header",attribute:"role=toolbar",usage:"The Grouping pane is a ToolBar (collection of buttons)."},{selector:".k-grouping-header",attribute:"aria-label",usage:"Clarifies the purpose of the grouping pane."},{selector:".k-grouping-header",attribute:"aria-controls=.k-grid-aria-root id (when present)",usage:"Pointing to the id of the element with role=grid."},{selector:".k-grouping-header .k-chip-list",attribute:"role=none",usage:"The ChipList default listbox role is removed to keep the toolbar --> button roles hierarchy."},{selector:".k-grouping-header .k-chip",attribute:"role=button",usage:"If the element used is not <button>, then the role must be specified."},{selector:".k-grid:not(.k-treelist) .k-grid-aria-root",attribute:"role=grid",usage:"The role specifies the element is a Data Grid."},{selector:".k-grid-aria-root",attribute:"aria-colcount (when present)",usage:"The total number of columns in the Grid. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-aria-root",attribute:"aria-rowcount (when present)",usage:"The total number of rows in the table. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid-header-wrap>table",attribute:"role=none",usage:"Negates the default semantic role of the <table> element."},{selector:".k-grid-header-wrap>table>thead",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th:not(.k-hierarchy-cell):not(.k-group-cell):not(.k-drag-cell)",attribute:"role=columnheader",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-sort (when present)",usage:"Present if sorting is enabled for that column."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-haspopup=dialog (when present)",usage:"Present if the column has a ColumnMenu or FilterMenu."},{selector:".k-grid-header-wrap>table>thead>tr.k-filter-row>td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr.k-filter-row>td",attribute:"aria-label",usage:"Has a label indicating that the cell is part of a filter row."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table, .k-grid-pinned-container .k-grid-table",attribute:"role=none",usage:"Negates the default semantic role of the <table> element."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody, .k-grid-pinned-container tbody",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr, .k-grid-pinned-container tbody tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr, .k-grid-pinned-container tbody tr",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr>td, .k-grid-pinned-container tbody td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr>td, .k-grid-pinned-container tbody td",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:"tr.k-selected",attribute:"aria-selected=true",usage:"Set on the currently selected row(s) in row selection mode. All cells within the selected row also carry aria-selected=true (without k-selected class). Applies to both regular and pinned rows."},{selector:"td.k-selected",attribute:"aria-selected=true",usage:"Set on the currently selected cell(s) in cell selection mode. The k-selected class on cells is only applied in cell selection mode, but aria-selected=true is present on cells regardless of selection mode."},{selector:".k-master-row .k-hierarchy-cell, .k-grouping-row>td",attribute:"aria-expanded",usage:"For cells holding grouping criteria values and for Master row cells in Detail template scenario."},{selector:".k-group-cell",attribute:"role=presentation",usage:"Group offset cells (header and content) are non-interactive placeholders with no semantic role."},{selector:".k-drag-cell",attribute:"aria-label",usage:"Must be present in a Drag Row scenario on the cell containing the drag handle."},{selector:".k-grid-header-locked table tr",attribute:"aria-owns",usage:"Locked header rows own cells from the corresponding non-locked header table rows."},{selector:".k-grid-content-locked table tr:not(.k-grouping-row)",attribute:"aria-owns",usage:"Locked content rows own cells from the corresponding non-locked content table rows. Group header rows are excluded because the non-locked group header rows are presentational."},{selector:".k-grid-lockedcolumns .k-grid-header .k-grid-header-wrap table tr",attribute:"role=none",usage:"Non-locked header rows have their semantic role removed when locked columns exist."},{selector:".k-grid-lockedcolumns .k-grid-content table tr",attribute:"role=none",usage:"Non-locked content rows have their semantic role removed when locked columns exist."},{selector:".k-grid-lockedcolumns .k-grid-header .k-grid-header-wrap th",attribute:"role=columnheader",usage:"Non-locked header cells retain columnheader role so they are announced correctly when owned via aria-owns."},{selector:".k-grid-lockedcolumns .k-grid-content td:not(.k-grouping-row td)",attribute:"role=gridcell",usage:"Non-locked data cells retain gridcell role so they are announced correctly when owned via aria-owns. Cells inside group header rows are excluded as those rows are presentational."},{selector:".k-grid-filter-popup",attribute:"role=dialog",usage:"The filter menu popup has dialog role."},{selector:".k-grid-filter-popup",attribute:"id",usage:"Unique id linked to the header cell aria-controls attribute."},{selector:".k-grid-filter-popup",attribute:"aria-label",usage:'Descriptive label for the filter menu, e.g. "Column Title Filter Menu".'},{selector:".k-grid-columnmenu-popup",attribute:"role=dialog",usage:"The column menu popup has dialog role."},{selector:".k-grid-columnmenu-popup",attribute:"id",usage:"Unique id linked to the header cell aria-controls attribute."},{selector:".k-grid-columnmenu-popup",attribute:"aria-label",usage:'Descriptive label for the column menu, e.g. "Column Title Column Menu".'},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"role=button",usage:"Column menu items have button role."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"tabindex=0",usage:"Column menu items are focusable."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"aria-expanded",usage:"Expandable column menu items announce their expanded state."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"aria-controls",usage:"Expandable items point to the id of the content they control."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"role=listbox",usage:"The column list is a listbox."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"aria-multiselectable=true",usage:"The column list supports multiple selections."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"aria-label",usage:"Accessible name for the column list."},{selector:".k-grid-columnmenu-popup .k-column-list-item",attribute:"role=option",usage:"Column list items are options."},{selector:".k-grid-columnmenu-popup .k-column-list-item",attribute:"aria-checked",usage:"Column list items announce their checked state."},{selector:"tfoot",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:"tfoot tr td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr td",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-selection-aggregates",attribute:"aria-live=polite",usage:"Ensures that changes in the calculated selection aggregates are announced by assistive technologies."},{selector:".k-grid-stack-cell",attribute:"tabindex=0",usage:"Stacked cell elements receive tabindex 0 when focus is within their parent .k-grid-stack-row element."},{selector:".k-grid-sticky-container",attribute:"role=none",usage:"Sticky group container has no semantic role."},{selector:".k-grid-sticky-container .k-grid-table",attribute:"role=none",usage:"Negates the default semantic role of the sticky group <table> element."},{selector:".k-grid-sticky-container tbody",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-sticky-container tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-sticky-container tr",attribute:"aria-rowindex",usage:"Matches the aria-rowindex of the real group header/footer row it mirrors."},{selector:".k-grid-sticky-container td:not(.k-group-cell)",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed. Group offset cells are excluded as they retain role=presentation."},{selector:".k-grid-sticky-container .k-grouping-row>td",attribute:"aria-expanded",usage:"Mirrors the expanded/collapsed state of the real group header row."},{selector:".k-grid-sticky-container td:not(.k-group-cell)",attribute:"tabindex",usage:"Receives tabindex 0 when focused, -1 otherwise, for keyboard navigation. Group offset cells are excluded as they are presentational."},{selector:".k-grid-sticky-container td",attribute:"aria-colindex (when present)",usage:"Col number. Typically 1 for the group header cell spanning all columns."},{selector:".k-grid-pinned-container",attribute:"role=none",usage:"Container for pinned rows has no semantic role."},{selector:".k-grid-pinned-container .k-grid-pinned-wrap",attribute:"role=none",usage:"Inner wrapper for the pinned rows table has no semantic role."},{selector:".k-grid-pinned-container tbody",attribute:"aria-label",usage:'Describes the purpose of the pinned rows group, e.g. "Top pinned rows" or "Bottom pinned rows".'},{selector:".k-grid-pinned-container td",attribute:"aria-haspopup=menu (when present)",usage:"Pinned row cells announce the context menu for row pinning operations."},{selector:".k-grid-pinned-container td",attribute:"aria-controls",usage:"Points to the ID of the context menu popup for row pinning."},{selector:".k-grid-pinned-container td",attribute:"aria-expanded",usage:"Indicates whether the context menu popup is open."},{selector:".k-grid-content td",attribute:"aria-haspopup=menu (when present)",usage:"Regular data cells announce context menu when row pinning uses contextual mode."},{selector:".k-grid-content td",attribute:"aria-controls",usage:"Points to the ID of the context menu popup for row pinning."},{selector:".k-grid-content td",attribute:"aria-expanded",usage:"Indicates whether the context menu popup is open."},{selector:'.k-pin-cell [class*="k-icon"]',attribute:"aria-hidden=true",usage:"Pin/unpin icon inside the dedicated column is decorative and must be hidden from assistive technologies."}]};var Ja=require("react/jsx-runtime"),Ll="k-font-icon",iu=[],nu={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info]},su={},qa=e=>{let{size:o,themeColor:t,icon:r,rotate:l,flip:n,...d}=e;return r?(0,Ja.jsx)("span",{...d,className:a(e.className,Ll,y(Ll,{size:o}),{[`k-i-${r}`]:r,[`k-color-${t}`]:t,[`k-rotate-${l}`]:l,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true"}):(0,Ja.jsx)(Ja.Fragment,{})};qa.states=iu;qa.options=nu;qa.className=Ll;qa.defaultOptions=su;var gs=qa;var _t=require("react/jsx-runtime"),Ml="k-svg-icon",du=[],cu={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info],variant:[Uo.outline,Uo.solid,Uo.duotone]},yl={viewBox:"0 0 24 24",variant:Uo.outline},Ya=e=>{var v,b;let{size:o,themeColor:t,rotate:r,flip:l,viewBox:n=yl.viewBox,variant:d=yl.variant,icon:m,...f}=e;if(!m)return(0,_t.jsx)(_t.Fragment,{});if(m==="none")return(0,_t.jsx)("span",{...f,className:a(e.className,Ml,y("k-icon",{size:o}),"k-none"),"aria-hidden":"true"});let k=typeof m=="object"&&m.name&&m.name,N=typeof m=="object"?d&&((v=m.variants)==null?void 0:v[d])||((b=m.variants)==null?void 0:b.outline)||m.content:void 0;return(0,_t.jsx)("span",{...f,className:a(e.className,Ml,y("k-icon",{size:o}),{[`k-svg-i-${k}`]:k,[`k-color-${t}`]:t,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true",children:(0,_t.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:n,dangerouslySetInnerHTML:N!==void 0?{__html:N}:void 0,children:m?void 0:e.children})})};Ya.states=du;Ya.options=cu;Ya.className=Ml;Ya.defaultOptions=yl;var Sl=Ya;var Al=bs(require("@progress/kendo-svg-icons"));var hs="icon",xs="icons";var vs=require("react");var Ns=require("react"),ks=(0,Ns.createContext)({iconsType:"svg"});var Zo=require("react/jsx-runtime"),Er="k-icon",pu=e=>e.replace(/([-_][a-z0-9])/gi,o=>o.toUpperCase().replace("-","").replace("_","")),mu=[],uu={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info],variant:[Uo.outline,Uo.solid,Uo.duotone]},Gr={viewBox:"0 0 24 24",type:"svg",variant:Uo.outline},T=e=>{let{iconsType:o}=(0,vs.useContext)(ks),{size:t,themeColor:r,icon:l,type:n=o||Gr.type,rotate:d,flip:m,viewBox:f=Gr.viewBox,variant:k=Gr.variant,...N}=e;if(!l)return(0,Zo.jsx)(Zo.Fragment,{});if((o||n)==="svg"){if(l==="none")return(0,Zo.jsx)(Sl,{...N,className:a(e.className,Er),icon:l,size:t,variant:k});let b=Al[l]?l:pu(`${l}-icon`);return Al[b]?(0,Zo.jsx)(Sl,{...N,className:a(e.className,Er),icon:Al[b],size:t,themeColor:r,rotate:d,flip:m,viewBox:f,variant:k}):(0,Zo.jsx)(Zo.Fragment,{})}return(0,Zo.jsx)(gs,{...N,className:a(e.className,Er),icon:l,size:t,themeColor:r,rotate:d,flip:m})};T.states=mu;T.options=uu;T.defaultOptions=Gr;T.className=Er;T.moduleName=hs;T.folderName=xs;T.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var Il="button",ws=Il;var fo=require("react/jsx-runtime"),Qa="k-button",bu=["icon-button"],fu=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],Tu={size:[s.undefined,s.xsmall,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[M.undefined,M.base,M.primary,M.secondary,M.tertiary,M.success,M.warning,M.error,M.info,M.inverse]},Rl={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:o="button",size:t,rounded:r,fillMode:l,themeColor:n,showArrow:d=Rl.showArrow,arrowIconName:m=Rl.arrowIconName,variant:f,hover:k,focus:N,active:v,selected:b,disabled:w,togglable:C,ariaDisabled:G,icon:H,iconSize:P,text:U,iconClassName:ge,className:de,...Ye}=e,Qe=H!=null,Ze=e.children!==void 0;return(0,fo.jsxs)(o,{className:a(de,Qa,fs(Qa,f),y(Qa,{size:t,rounded:r,fillMode:l,themeColor:n}),S(Qa,{hover:k,focus:N,active:v,disabled:w||G,selected:b}),{"k-icon-button":!U&&!Ze&&Qe}),"aria-pressed":C?b?"true":"false":void 0,...Ye,"aria-disabled":G?"true":void 0,disabled:w||void 0,children:[typeof H=="string"&&H&&(0,fo.jsx)(T,{className:a(ge,"k-button-icon"),icon:H,size:P}),H&&typeof H!="string"&&(0,fo.jsx)(fo.Fragment,{children:H}),U?(0,fo.jsxs)(fo.Fragment,{children:[U&&(0,fo.jsx)("span",{className:"k-button-text",children:U}),e.children]}):e.children&&(0,fo.jsx)("span",{className:"k-button-text",children:e.children}),d&&(0,fo.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,fo.jsx)(T,{icon:m})})]})};c.states=fu;c.options=Tu;c.variants=bu;c.className=Qa;c.defaultOptions=Rl;c.moduleName=Il;c.folderName=ws;c.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Cs=require("react/jsx-runtime"),gt=e=>(0,Cs.jsx)(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var Ls=require("react/jsx-runtime"),Za=e=>(0,Ls.jsx)(c,{icon:"folder",children:"Button",...e});var Ms=require("react/jsx-runtime"),Kt=e=>(0,Ms.jsx)(c,{children:"Button",...e});var Or=require("react/jsx-runtime"),gu=c.options,hu=c.states,xu={...c.defaultOptions,variant:"text"},Nu=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ku=[],Qt=e=>{let{variant:o,...t}=e;switch(o){case"icon-only":return(0,Or.jsx)(gt,{...t,icon:"star"});case"icon-and-text":return(0,Or.jsx)(Za,{...t,icon:"star",children:"Button"});default:return(0,Or.jsx)(Kt,{...t,children:"Button"})}};Qt.options=gu;Qt.states=hu;Qt.variants=Nu;Qt.defaultOptions=xu;Qt.modifiers=ku;Qt.className=c.className;var El="button",ys=El;var Ss=require("react/jsx-runtime"),ja="k-button-group",vu=[i.disabled],wu={fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link]},Cu={},z=e=>{let{fillMode:o,disabled:t,stretched:r,...l}=e;return(0,Ss.jsx)("div",{role:"group",...l,className:a(e.className,ja,y(ja,{fillMode:o}),S(ja,{disabled:t}),{[`${ja}-stretched`]:r}),...t&&{"aria-disabled":"true"},children:e.children})};z.states=vu;z.options=wu;z.className=ja;z.defaultOptions=Cu;z.moduleName=El;z.folderName=ys;z.ariaSpec={selector:".k-button-group",rules:[{selector:".k-button-group:not(.k-split-button)",attribute:"role=group",usage:"Sets the proper role for the group of buttons."},{selector:".k-button-group.k-disabled",attribute:"aria-disabled=true",usage:"The attribute is rendered only when the entire button group is disabled."},{selector:".k-button-group:not(.k-split-button):not(.k-scheduler-navigation):not(.k-zoom-control) .k-button",attribute:"aria-pressed (when selected)",usage:"Specifies the current state of the ButtonGroup. Only the selected button within the group will have this attribute set to true."}]};var Gl=require("react/jsx-runtime");var Ol=require("react/jsx-runtime");var Hl=require("react/jsx-runtime");var Pl=require("react/jsx-runtime");var _l=require("react/jsx-runtime");var Kl=require("react/jsx-runtime");var no=require("react/jsx-runtime"),Lu={...c.options,...z.options},Mu=c.states,yu={...c.defaultOptions,...z.defaultOptions,variant:"text-button"},Su=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Au=[],Zt=e=>{let{variant:o,className:t,...r}=e;return o==="icon-button"?(0,no.jsxs)(z,{fillMode:r.fillMode,className:t,children:[(0,no.jsx)(c,{...r,icon:"star"}),(0,no.jsx)(c,{...r,icon:"star"}),(0,no.jsx)(c,{...r,icon:"star"})]}):o==="icon-text-button"?(0,no.jsxs)(z,{fillMode:r.fillMode,className:t,children:[(0,no.jsx)(c,{...r,icon:"star",children:"First"}),(0,no.jsx)(c,{...r,icon:"star",children:"Middle"}),(0,no.jsx)(c,{...r,icon:"star",children:"Last"})]}):(0,no.jsxs)(z,{fillMode:r.fillMode,className:t,children:[(0,no.jsx)(c,{...r,children:"First"}),(0,no.jsx)(c,{...r,children:"Middle"}),(0,no.jsx)(c,{...r,children:"Last"})]})};Zt.options=Lu;Zt.states=Mu;Zt.variants=Su;Zt.defaultOptions=yu;Zt.modifiers=Au;Zt.className=z.className;var er="input",Hr=er;var As=require("react/jsx-runtime"),Pr="k-input",Iu=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Ru={size:[s.undefined,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Eu={},Le=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m,size:f,rounded:k,fillMode:N,...v}=e;return(0,As.jsx)("span",{...v,className:a(e.className,Pr,y(Pr,{size:f,rounded:k,fillMode:N}),S(Pr,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m}))})};Le.states=Iu;Le.options=Ru;Le.className=Pr;Le.defaultOptions=Eu;Le.moduleName=er;Le.folderName=Hr;var Is=require("react/jsx-runtime"),_r="k-picker",Gu=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Ou={size:[s.undefined,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Hu={},Fo=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m,size:f,rounded:k,fillMode:N,...v}=e;return(0,Is.jsx)("span",{...v,className:a(e.className,_r,y(_r,{size:f,rounded:k,fillMode:N}),S(_r,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m})),children:e.children})};Fo.states=Gu;Fo.options=Ou;Fo.className=_r;Fo.defaultOptions=Hu;Fo.moduleName=er;Fo.folderName=Hr;var jt=require("react/jsx-runtime"),Rs="k-clear-value",Pu=[i.disabled,i.loading,i.readonly],_u={},To=e=>{let{disabled:o,loading:t,readonly:r,value:l}=e;return o||r||t||!l?(0,jt.jsx)(jt.Fragment,{}):(0,jt.jsx)("span",{className:a(e.className,Rs),children:(0,jt.jsx)(T,{icon:"x"})})};To.states=Pu;To.options=_u;To.className=Rs;var Es=require("react/jsx-runtime"),Dl="k-input-inner",Ku=[],Du={},Kr={type:"text",autocomplete:"off",value:"",placeholder:""},go=e=>{let{value:o=Kr.value,type:t=Kr.type,placeholder:r=Kr.placeholder,autocomplete:l=Kr.autocomplete,disabled:n,readOnly:d,...m}=e;return(0,Es.jsx)("input",{...m,type:t,className:a(e.className,Dl,y(Dl,e)),placeholder:r,autoComplete:l,defaultValue:o,disabled:n||void 0,readOnly:d||void 0})};go.states=Ku;go.options=Du;go.className=Dl;var or=require("react/jsx-runtime"),Bl="k-input-inner",Bu=[],zu={},Dt=e=>{let{value:o,placeholder:t,showValue:r,valueIcon:l,valueIconName:n,...d}=e;return(0,or.jsxs)("span",{...d,className:a(e.className,Bl,y(Bl,e)),children:[l,!l&&n&&(0,or.jsx)(T,{className:"k-input-value-icon",icon:n}),r&&!o&&t,r&&o&&(0,or.jsx)("span",{className:"k-input-value-text",children:o})]})};Dt.states=Bu;Dt.options=zu;Dt.className=Bl;var Os=require("react/jsx-runtime"),zl="k-input-inner",Uu=[],Fu={},Gs={value:"",placeholder:""},Ul=e=>{let{value:o=Gs.value,placeholder:t=Gs.placeholder,rows:r,disabled:l,...n}=e;return(0,Os.jsx)("textarea",{...n,className:a(e.className,zl,y(zl,e)),placeholder:t,rows:r,defaultValue:o,disabled:l||void 0})};Ul.states=Uu;Ul.options=Fu;Ul.className=zl;var tr=require("react/jsx-runtime"),Hs="k-input-loading-icon",$u=[i.disabled,i.loading],so=e=>{let{disabled:o,loading:t}=e;return o||!t?(0,tr.jsx)(tr.Fragment,{}):(0,tr.jsx)("span",{className:a(e.className,Hs,"k-icon k-i-loading")})};so.states=$u;so.className=Hs;var ar=require("react/jsx-runtime"),Ps="k-input-validation-icon",Vu=[i.valid,i.invalid,i.disabled,i.loading],Wu={},je=e=>{let{valid:o,invalid:t,disabled:r,loading:l}=e,n=t?"warning-circle":"check-circle";return r||l||!!!(o||t)?(0,ar.jsx)(ar.Fragment,{}):(0,ar.jsx)(T,{className:a(Ps),icon:n})};je.states=Vu;je.options=Wu;je.className=Ps;var rr=require("react/jsx-runtime"),Xu="k-input-prefix",Ju={direction:"horizontal"},Mo=e=>{let{direction:o=Ju.direction,...t}=e;return e.children?(0,rr.jsx)("span",{...t,className:a(Xu,e.className,{[`k-input-prefix-${o}`]:o}),children:e.children}):(0,rr.jsx)(rr.Fragment,{})};var lr=require("react/jsx-runtime"),qu="k-input-suffix",Yu={direction:"horizontal"},yo=e=>{let{direction:o=Yu.direction,...t}=e;return e.children?(0,lr.jsx)("span",{...t,className:a(qu,e.className,{[`k-input-suffix-${o}`]:o}),children:e.children}):(0,lr.jsx)(lr.Fragment,{})};var Qu=require("react/jsx-runtime");var _s=require("react/jsx-runtime"),Zu="k-input-suffix-text",Fl=e=>{let{children:o,...t}=e;return(0,_s.jsx)("span",{...t,className:a(Zu,e.className),children:o})};var Ds=require("react/jsx-runtime"),Ks="k-input-separator",ju={direction:"vertical"},So=e=>{let{direction:o=ju.direction,...t}=e;return(0,Ds.jsx)("span",{...t,className:a(Ks,e.className,{[`${Ks}-${o}`]:o})})};var Ie=require("react/jsx-runtime"),eb=Le.states,ob=Le.defaultOptions,tb=Le.options,ab=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],rb=[],ea=e=>{let{modifiers:o,valid:t,invalid:r,loading:l,disabled:n,readonly:d,...m}=e,f=o==null?void 0:o.prefix,k=o==null?void 0:o.suffix,N=o==null?void 0:o["clear-button"],v=o==null?void 0:o["validation-icon"],b=o==null?void 0:o.separators;return(0,Ie.jsxs)(Le,{...m,valid:t,invalid:r,loading:l,disabled:n,readonly:d,style:{width:300},children:[f&&(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)(Mo,{children:(0,Ie.jsx)(T,{icon:"lock"})}),b&&(0,Ie.jsx)(So,{})]}),(0,Ie.jsx)(go,{placeholder:"Placeholder",value:"Value"}),v&&(0,Ie.jsx)(je,{valid:t,invalid:r,loading:l,disabled:n}),(0,Ie.jsx)(so,{loading:l,disabled:n}),N&&(0,Ie.jsx)(To,{loading:l,disabled:n,readonly:d,value:"Value"}),k&&(0,Ie.jsxs)(Ie.Fragment,{children:[b&&(0,Ie.jsx)(So,{}),(0,Ie.jsx)(yo,{children:(0,Ie.jsx)(Kt,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};ea.options=tb;ea.states=eb;ea.variants=rb;ea.defaultOptions=ob;ea.modifiers=ab;ea.className=Le.className;var ir=require("react/jsx-runtime"),Bs="k-color-preview",lb=[],ib={},ht=e=>{let{color:o,iconName:t,...r}=e;return(0,ir.jsxs)("span",{...r,className:a(e.className,Bs,{"k-icon-color-preview":t,"k-no-color":!o}),children:[t&&(0,ir.jsx)(T,{icon:t,className:"k-color-preview-icon"}),(0,ir.jsx)("span",{className:"k-color-preview-mask",style:{backgroundColor:o}})]})};ht.states=lb;ht.options=ib;ht.className=Bs;var $l="popup",zs=$l;var Wl=require("react/jsx-runtime"),Us="k-animation-container",nb=[],sb={},Vl={positionMode:"absolute",shown:!0},$o=e=>{let{positionMode:o=Vl.positionMode,shown:t=Vl.shown,animationStyle:r,offset:l,...n}=e;return(0,Wl.jsx)("div",{...n,style:{...l,...e.style},className:a(e.className,Us,{"k-animation-container-shown":t,"k-animation-container-fixed":o==="fixed"}),children:(0,Wl.jsx)("div",{className:"k-child-animation-container",style:r,children:e.children})})};$o.states=nb;$o.options=sb;$o.className=Us;$o.defaultOptions=Vl;$o.moduleName=$l;$o.folderName=zs;var Xl="popup",Fs=Xl;var Jl=require("react/jsx-runtime"),$s="k-popup",db=[],cb={},Vs={positionMode:"absolute"},re=e=>{let{offset:o,positionMode:t=Vs.positionMode,animationStyle:r,containerClassName:l,containerRole:n,containerAriaLabel:d,...m}=e;return(0,Jl.jsx)($o,{positionMode:t,offset:o,animationStyle:r,className:l,role:n,"aria-label":d,children:(0,Jl.jsx)("div",{...m,className:a(e.className,$s),children:e.children})})};re.states=db;re.options=cb;re.className=$s;re.defaultOptions=Vs;re.moduleName=Xl;re.folderName=Fs;re.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var ql="action-buttons",Ws=ql;var Xs=require("react/jsx-runtime"),Dr="k-actions",pb=[],mb={},Yl={alignment:"start",orientation:"horizontal"},Ao=e=>{let{alignment:o=Yl.alignment,orientation:t=Yl.orientation,...r}=e;return(0,Xs.jsx)("div",{...r,className:a(Dr,{[`${Dr}-${o}`]:o,[`${Dr}-${t}`]:t},e.className),children:e.children})};Ao.states=pb;Ao.options=mb;Ao.className=Dr;Ao.defaultOptions=Yl;Ao.moduleName=ql;Ao.folderName=Ws;var qs=require("react/jsx-runtime"),ub="k-actionsheet-footer",Js={alignment:"stretched",orientation:"horizontal"},xt=e=>{let{alignment:o=Js.alignment,orientation:t=Js.orientation,template:r,as:l=r?"div":Ao,...n}=e;return(0,qs.jsx)(l,{...n,...!r&&{alignment:o,orientation:t},className:a(e.className,ub),children:e.children})};var Ql="searchbox",Ys=Ql;var Nt=require("react/jsx-runtime"),Qs="k-searchbox",bb=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],fb={size:[s.undefined,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Zl={showIcon:!0,icon:"search"},ho=e=>{let{value:o,placeholder:t,size:r,rounded:l,fillMode:n,hover:d,focus:m,valid:f,invalid:k,required:N,loading:v,disabled:b,showIcon:w=Zl.showIcon,icon:C=Zl.icon,"aria-label":G,...H}=e;return(0,Nt.jsxs)(Le,{...H,size:r,rounded:l,fillMode:n,hover:d,focus:m,valid:f,invalid:k,required:N,loading:v,disabled:b,className:a(e.className,Qs),children:[w&&(0,Nt.jsx)(T,{className:"k-input-icon",icon:C}),(0,Nt.jsx)(go,{placeholder:t,value:o,"aria-label":G}),(0,Nt.jsx)(so,{...e}),(0,Nt.jsx)(je,{...e}),(0,Nt.jsx)(To,{...e})]})};ho.states=bb;ho.options=fb;ho.className=Qs;ho.defaultOptions=Zl;ho.moduleName=Ql;ho.folderName=Ys;var Tb=require("react/jsx-runtime");var jl="textbox",Zs=jl;var ze=require("react/jsx-runtime"),js="k-textbox",gb=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],hb={size:[s.undefined,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.flat,h.outline]},Br={showClearButton:!0,showValidationIcon:!0,separators:!0},me=e=>{let{size:o,rounded:t,fillMode:r,separators:l=Br.separators,showClearButton:n=Br.showClearButton,showValidationIcon:d=Br.showValidationIcon,prefix:m,suffix:f,type:k,value:N,placeholder:v,hover:b,focus:w,valid:C,invalid:G,required:H,loading:P,disabled:U,readonly:ge,id:de,"aria-label":Ye,"aria-describedby":Qe,...Ze}=e;return(0,ze.jsxs)(Le,{...Ze,size:o,rounded:t,fillMode:r,hover:b,focus:w,valid:C,invalid:G,required:H,loading:P,disabled:U,readonly:ge,className:a(e.className,js),children:[m&&(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(Mo,{children:m}),l&&(0,ze.jsx)(So,{})]}),(0,ze.jsx)(go,{id:de,placeholder:v,value:N,type:k,disabled:U,"aria-label":Ye,"aria-describedby":Qe,"aria-invalid":G?"true":void 0}),d&&(0,ze.jsx)(je,{valid:C,invalid:G,loading:P,disabled:U}),(0,ze.jsx)(so,{loading:P,disabled:U}),n&&(0,ze.jsx)(To,{loading:P,disabled:U,readonly:ge,value:N}),f&&(0,ze.jsxs)(ze.Fragment,{children:[l&&(0,ze.jsx)(So,{}),(0,ze.jsx)(yo,{children:f})]})]})};me.states=gb;me.options=hb;me.className=js;me.defaultOptions=Br;me.moduleName=jl;me.folderName=Zs;me.ariaSpec={selector:".k-textbox",rules:[{selector:".k-textbox > .k-input-inner",attribute:"role=textbox or nodeName=input",usage:"Describes the role of the component."},{selector:".k-textbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-textbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the TextBox is in an invalid state."},{selector:".k-textbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the input."},{selector:".k-textbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the TextBox is disabled."}]};var nr=me;var od=require("react/jsx-runtime"),ed=e=>(0,od.jsx)(nr,{...e});var td=require("react/jsx-runtime");var ad=require("react/jsx-runtime");var xb=require("react/jsx-runtime");var zr=require("react/jsx-runtime"),Nb=me.states,kb=me.defaultOptions,vb=me.options,wb=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Cb=[],oa=e=>{let{modifiers:o,...t}=e,r={};return Object.keys(o||{}).forEach(l=>{switch(l){case"prefix":r.prefix=o!=null&&o[l]?(0,zr.jsx)(T,{icon:"lock"}):void 0;break;case"suffix":r.suffix=o!=null&&o[l]?(0,zr.jsx)(Kt,{size:t.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":r.showClearButton=o==null?void 0:o[l];break;default:break}}),(0,zr.jsx)(ed,{value:"Value",style:{width:300},...t,...r})};oa.options=vb;oa.states=Nb;oa.variants=Cb;oa.defaultOptions=kb;oa.modifiers=wb;oa.className=me.className;var xo=require("react/jsx-runtime"),rd="k-actionsheet-titlebar",Lb={},eo=e=>{let{title:o,subtitle:t,actionsStart:r,actionsEnd:l,filter:n,input:d,inputValue:m,inputPlaceholder:f,adaptive:k,titleId:N,children:v,...b}=e;return(0,xo.jsxs)("div",{...b,className:a(e.className,rd),children:[(0,xo.jsxs)("div",{className:"k-actionsheet-titlebar-group",children:[r&&(0,xo.jsx)("div",{className:"k-actionsheet-actions",children:r}),!v&&(0,xo.jsxs)("div",{className:"k-actionsheet-title",id:N,children:[o&&(0,xo.jsx)("div",{className:"k-text-center",children:o}),t&&(0,xo.jsx)("div",{className:"k-actionsheet-subtitle k-text-center",children:t})]}),v&&(0,xo.jsx)("div",{className:"k-actionsheet-title",id:N,children:v}),l&&(0,xo.jsx)("div",{className:"k-actionsheet-actions",children:l})]}),(d||n)&&(0,xo.jsx)("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?(0,xo.jsx)(me,{value:m,placeholder:f,size:k?"large":"medium","aria-label":o||f||"Input"}):(0,xo.jsx)(ho,{placeholder:"Filter",size:k?"large":"medium","aria-label":"Filter options"})})]})};eo.className=rd;eo.defaultOptions=Lb;var ta=require("react/jsx-runtime"),ei="k-actionsheet-view",Mb=[],yb={},Sb={},aa=e=>{let{adaptive:o,animated:t,children:r,header:l,footer:n,titleId:d,...m}=e,f=(l==null?void 0:l.type)===eo&&(0,ta.jsx)(eo,{adaptive:o,titleId:d,...l==null?void 0:l.props}),k=(n==null?void 0:n.type)===xt&&(0,ta.jsx)(xt,{...n==null?void 0:n.props});return(0,ta.jsxs)("div",{...m,className:a(e.className,ei,{[`${ei}-animated`]:t}),children:[f,(0,ta.jsx)("div",{className:"k-actionsheet-content",children:r}),k]})};aa.states=Mb;aa.options=yb;aa.className=ei;aa.defaultOptions=Sb;var sr="action-sheet",Ur=sr;var oi="overlay",ld=oi;var nd=require("react/jsx-runtime"),id="k-overlay",Ab=[],Ib={},Rb={},kt=e=>{let{...o}=e;return(0,nd.jsx)("div",{...o,className:a(e.className,id),children:e.children})};kt.states=Ab;kt.options=Ib;kt.className=id;kt.defaultOptions=Rb;kt.moduleName=oi;kt.folderName=ld;var Bt=require("react/jsx-runtime"),sd="k-actionsheet",Eb=[],Gb={},dr={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},ve=e=>{let{side:o=dr.side,fullscreen:t=dr.fullscreen,adaptive:r=dr.adaptive,overlay:l=dr.overlay,template:n,children:d,header:m,footer:f,id:k,...N}=e,v=k&&!n&&m?`${k}-title`:void 0;return(0,Bt.jsxs)("div",{className:"k-actionsheet-container",children:[l&&(0,Bt.jsx)(kt,{}),(0,Bt.jsx)($o,{animationStyle:{[`${t===!0?"top":o}`]:0,[`${t===!0?"width":null}`]:"100%",[`${t===!0?"height":null}`]:"100%",[`${o==="top"||o==="bottom"?"width":null}`]:"100%",[`${o==="left"||o==="right"?"height":null}`]:"100%"},children:(0,Bt.jsx)("div",{...N,id:k,role:"dialog","aria-modal":l?"true":void 0,"aria-labelledby":v,className:a(e.className,sd,{[`k-actionsheet-${o}`]:t===!1,"k-actionsheet-fullscreen":t===!0,"k-adaptive-actionsheet":r}),children:n||(0,Bt.jsx)(aa,{header:m,footer:f,adaptive:r,titleId:v,...e,children:d})})})]})};ve.states=Eb;ve.options=Gb;ve.className=sd;ve.defaultOptions=dr;ve.moduleName=sr;ve.folderName=Ur;ve.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."}]};var cd=require("react/jsx-runtime"),dd="k-actionsheet-container",Ob=[],Hb={},Pb={},ra=e=>{let{children:o,...t}=e;return(0,cd.jsx)("div",{...t,className:dd,children:o})};ra.states=Ob;ra.options=Hb;ra.className=dd;ra.defaultOptions=Pb;ra.moduleName=sr;ra.folderName=Ur;var pd=require("react/jsx-runtime"),ti=e=>{let{...o}=e;return(0,pd.jsx)("div",{...o,className:a(e.className,"k-list-ul"),children:e.children})};var Io=require("react/jsx-runtime"),ai="k-actionsheet-item",_b=[i.hover,i.focus,i.selected,i.disabled],vt=e=>{let{iconName:o,text:t,description:r,hover:l,focus:n,selected:d,disabled:m,...f}=e;return(0,Io.jsxs)("span",{...f,className:a(e.className,ai,S(ai,{hover:l,focus:n,selected:d,disabled:m})),children:[!e.children&&(0,Io.jsx)(Io.Fragment,{children:(0,Io.jsxs)("span",{className:"k-actionsheet-action",children:[o&&(0,Io.jsx)("span",{className:"k-icon-wrap",children:(0,Io.jsx)(T,{className:"k-actionsheet-item-icon",icon:o})}),(0,Io.jsxs)("span",{className:"k-actionsheet-item-text",children:[t&&(0,Io.jsx)("span",{className:"k-actionsheet-item-title",children:t}),r&&(0,Io.jsx)("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};vt.states=_b;vt.className=ai;var md=require("react/jsx-runtime");var Kb=require("react/jsx-runtime");var Db=require("react/jsx-runtime");var Bb=require("react/jsx-runtime");var he=require("react/jsx-runtime"),zb=ve.options,Ub=ve.states,bd={...ve.defaultOptions,variant:"normal"},Fb=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],$b=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],la=e=>{let{variant:o,modifiers:t,...r}={...bd,...e},l={},n=(0,he.jsxs)(ti,{children:[(0,he.jsx)(vt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),(0,he.jsx)(vt,{text:"Add to Favorites",iconName:"heart"}),(0,he.jsx)(vt,{text:"Upload New",iconName:"upload",disabled:!0}),(0,he.jsx)("hr",{className:"k-hr"}),(0,he.jsx)(vt,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",m="Select Item";return o==="fullScreen"&&(l.fullScreen=!0),Object.keys(t||{}).forEach(f=>{switch(f){case"actions":l.actionsStart=!!(t!=null&&t[f]),l.actionsEnd=!!(t!=null&&t[f]);break;case"subtitle":l.subtitle=t!=null&&t[f]?d:void 0;break;case"footer":l.footer=!!(t!=null&&t[f]);break;default:break}}),o==="adaptive"?(0,he.jsx)(ve,{...r,adaptive:!0,fullscreen:l.fullScreen,header:(0,he.jsx)(eo,{actionsStart:l.actionsStart?(0,he.jsx)(c,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:l.actionsEnd?(0,he.jsx)(c,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:m,subtitle:l.subtitle}),footer:l.footer?(0,he.jsxs)(xt,{alignment:"stretched",children:[(0,he.jsx)(c,{text:"Cancel",size:"large",themeColor:"base"}),(0,he.jsx)(c,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:n}):(0,he.jsx)(ve,{...r,fullscreen:l.fullScreen,header:(0,he.jsx)(eo,{actionsStart:l.actionsStart?(0,he.jsx)(c,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:l.actionsEnd?(0,he.jsx)(c,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:l.subtitle}),footer:l.footer?(0,he.jsxs)(xt,{alignment:"stretched",children:[(0,he.jsx)(c,{text:"Apply",themeColor:"primary"}),(0,he.jsx)(c,{text:"Cancel",themeColor:"base"})]}):void 0,children:n})};la.options=zb;la.states=Ub;la.variants=Fb;la.defaultOptions=bd;la.modifiers=$b;la.className=ve.className;var ri="slider",fd=ri;var Po=require("react/jsx-runtime"),cr="k-slider",Vb=[i.hover,i.focus,i.active,i.disabled,i.readonly],Wb={},Ro={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},fe=e=>{let{type:o=Ro.type,orientation:t=Ro.orientation,gradientType:r=Ro.gradientType,readonly:l=Ro.readonly,disabled:n=Ro.disabled,handlePosition:d=Ro.handlePosition,showButtons:m=Ro.showButtons,showTicks:f=Ro.showTicks,value:k=Ro.value,min:N=Ro.min,max:v=Ro.max,startValue:b,endValue:w,hover:C,focus:G,active:H,trackStyle:P,dir:U,...ge}=e,Ye=(()=>{if(o==="gradient"&&r==="2d")return"undefined";if(t==="vertical")return"vertical"})(),Qe,Ze;return t==="horizontal"?(Qe=U==="rtl"?"chevron-left":"chevron-right",Ze=U==="rtl"?"chevron-right":"chevron-left"):t==="vertical"&&(Qe="chevron-up",Ze="chevron-down"),(0,Po.jsxs)("div",{...ge,className:a(cr,e.className,S(cr,{readonly:l,disabled:n}),{[`k-slider-${t}`]:t,"k-colorgradient-slider":o==="gradient"}),dir:U,children:[m&&(0,Po.jsx)(c,{className:"k-button-decrease",rounded:"full",icon:Ze,tabIndex:-1,title:"Decrease"}),(0,Po.jsxs)("div",{className:"k-slider-track-wrap",children:[f&&(0,Po.jsx)("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),(0,Po.jsxs)("div",{className:"k-slider-track",style:P,children:[(0,Po.jsx)("div",{className:"k-slider-selection"}),o==="range"&&(0,Po.jsx)("span",{className:a("k-draghandle","k-draghandle-start",S(cr,{hover:C,focus:G,active:H})),role:"slider",tabIndex:n?void 0:0,"aria-valuenow":b??N,"aria-valuemin":N,"aria-valuemax":w??v,"aria-orientation":Ye,"aria-disabled":n?"true":void 0,"aria-readonly":l?"true":void 0,"aria-label":ge["aria-label"]?`${ge["aria-label"]} start`:"Range start"}),(0,Po.jsx)("span",{className:a("k-draghandle",`k-draghandle-${d}`,S(cr,{hover:C,focus:G,active:H})),role:"slider",tabIndex:n?void 0:0,"aria-valuenow":o==="range"?w??v:k,"aria-valuemin":o==="range"?b??N:N,"aria-valuemax":v,"aria-orientation":Ye,"aria-disabled":n?"true":void 0,"aria-readonly":l?"true":void 0,"aria-label":o==="range"?ge["aria-label"]?`${ge["aria-label"]} end`:"Range end":ge["aria-label"]})]})]}),m&&(0,Po.jsx)(c,{className:"k-button-increase",rounded:"full",icon:Qe,tabIndex:-1,title:"Increase"})]})};fe.states=Vb;fe.options=Wb;fe.className=cr;fe.defaultOptions=Ro;fe.moduleName=ri;fe.folderName=fd;fe.ariaSpec={selector:".k-slider",rules:[{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"role=slider",usage:"Sets the proper role for Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-label or aria-labelledby or title",usage:"The Slider needs an accessible name to be assigned to it."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the Slider is in a form and announces the invalid state."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuetext (when has text alternative)",usage:"Specifies a human-readable text alternative to the numeric value. Provided by consuming applications."},{selector:".k-slider:not(.k-disabled) .k-draghandle:not(.k-hsv-draghandle)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled sliders are removed from tab order."},{selector:".k-slider-vertical .k-draghandle",attribute:"aria-orientation=vertical (when vertical)",usage:"Present only when slider is vertical."},{selector:".k-slider.k-disabled .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-disabled=true",usage:"Rendered only when the Slider is disabled."},{selector:".k-slider.k-readonly .k-draghandle",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Slider is readonly. Readonly sliders remain focusable but their value cannot be changed."},{selector:".k-slider .k-button",attribute:"tabindex=-1",usage:"Excludes the buttons from the natural tab order. Keyboard users use arrow keys on the drag handle."},{selector:".k-slider .k-button",attribute:"title",usage:'Provides a tooltip describing the button action (e.g., "Decrease" or "Increase").'},{selector:".k-slider .k-slider-items",attribute:"aria-hidden=true",usage:"Hides the tick list from assistive technologies. Tick values are redundant with the drag handle value attributes."},{selector:".k-slider .k-tick",attribute:"role=presentation",usage:"Removes semantic meaning from individual tick elements. Ticks are visual-only markers."},{selector:".k-slider .k-tick",attribute:"title",usage:"Represents the value associated with the respective tick."}]};var li=require("react/jsx-runtime"),Td="k-tick",Xb=[],Jb={},gd={label:!1},K=e=>{let{st