@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 192 kB
JavaScript
var a=(...e)=>e.filter(o=>o!==!0&&!!o).map(o=>Array.isArray(o)?a(...o):typeof o=="object"?Object.keys(o).map((t,r)=>o[r]||o[t]&&t||null).filter(t=>t!==null).join(" "):o).filter(o=>!!o).join(" ");var L=(e,o)=>a({[`${e}-xs`]:o.size==="xsmall",[`${e}-sm`]:o.size==="small",[`${e}-md`]:o.size==="medium",[`${e}-lg`]:o.size==="large",[`${e}-xl`]:o.size==="xlarge",[`${e}-xxl`]:o.size==="xxlarge",[`${e}-xxxl`]:o.size==="xxxlarge"},{[`${e}-${o.fillMode}`]:o.fillMode},{[`${e}-${o.themeColor}`]:o.themeColor},{"k-rounded-sm":o.rounded==="small","k-rounded-md":o.rounded==="medium","k-rounded-lg":o.rounded==="large","k-rounded-full":o.rounded==="full","k-rounded-none":o.rounded==="none"}),M=(e,o)=>{let{valid:t,invalid:r,hover:l,focus:n,checked:d,active:m,selected:b,disabled:N,indeterminate:x,loading:k,empty:u,readonly:v,highlighted:C,...I}=o;return a({"k-valid":t,"k-invalid":r,"k-hover":l,"k-focus":n,"k-checked":d,"k-active":m,"k-selected":b,"k-disabled":N,"k-indeterminate":x&&!d,"k-loading":k,"k-empty":u,"k-readonly":v,"k-highlighted":C},Object.keys(I).reduce((E,G)=>(G.startsWith("k-")?E[G]=I[G]:E[`k-${G}`]=I[G],E),{}))};function bn(e,o){if(!o)return{};let t=Array.isArray(o)?o:[o];return Object.fromEntries(t.map(r=>[`k-${r}`,!0]))}var s={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},g={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},h={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},Io={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},w={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},i={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var cl={};function P(e){return cl[e]=(cl[e]||0)+1,`k-${e}-${cl[e]}`}var Q="grid",ee=Q;import{jsx as Bc,jsxs as zc}from"react/jsx-runtime";var br="k-grid",_c=[],Kc={size:[s.undefined,s.small,s.medium,s.large]},Dc=[],fn={pagerPosition:"bottom"},O=e=>{let{size:o,pagerPosition:t=fn.pagerPosition,toolbar:r,pager:l,groupingHeader:n,gridSelectionAggregates:d,_renderAriaRoot:m,resizable:b,ariaColCount:N,ariaRowCount:x,ariaRootId:k,ariaRole:u="grid",...v}=e;return zc("div",{...v,className:a(e.className,br,{[`${br}-resizable`]:b},L(br,{size:o})),children:[r,t==="top"&&l,n,e.children&&m?Bc("div",{className:"k-grid-aria-root",role:u,id:k,"aria-colcount":N,"aria-rowcount":x,children:e.children}):e.children,d,t==="bottom"&&l]})};O.states=_c;O.options=Kc;O.variants=Dc;O.className=br;O.defaultOptions=fn;O.moduleName=Q;O.folderName=ee;O.ariaSpec={selector:".k-grid",rules:[{selector:".k-grid-toolbar",attribute:"role=toolbar",usage:"The toolbar is a collection of command buttons and inputs."},{selector:".k-grid-toolbar",attribute:"aria-label",usage:"Clarifies the purpose of the toolbar."},{selector:".k-grid-toolbar",attribute:"aria-controls=.k-grid-aria-root id (when present)",usage:"Pointing to the id of the element with role=grid."},{selector:".k-grouping-header",attribute:"role=toolbar",usage:"The Grouping pane is a ToolBar (collection of buttons)."},{selector:".k-grouping-header",attribute:"aria-label",usage:"Clarifies the purpose of the grouping pane."},{selector:".k-grouping-header",attribute:"aria-controls=.k-grid-aria-root id (when present)",usage:"Pointing to the id of the element with role=grid."},{selector:".k-grouping-header .k-chip-list",attribute:"role=none",usage:"The ChipList default listbox role is removed to keep the toolbar --> button roles hierarchy."},{selector:".k-grouping-header .k-chip",attribute:"role=button",usage:"If the element used is not <button>, then the role must be specified."},{selector:".k-grid:not(.k-treelist) .k-grid-aria-root",attribute:"role=grid",usage:"The role specifies the element is a Data Grid."},{selector:".k-grid-aria-root",attribute:"aria-colcount (when present)",usage:"The total number of columns in the Grid. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-aria-root",attribute:"aria-rowcount (when present)",usage:"The total number of rows in the table. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid-header-wrap>table",attribute:"role=none",usage:"Negates the default semantic role of the <table> element."},{selector:".k-grid-header-wrap>table>thead",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th:not(.k-hierarchy-cell):not(.k-group-cell):not(.k-drag-cell)",attribute:"role=columnheader",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-sort (when present)",usage:"Present if sorting is enabled for that column."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-header-wrap>table>thead>tr:not(.k-filter-row)>th",attribute:"aria-haspopup=dialog (when present)",usage:"Present if the column has a ColumnMenu or FilterMenu."},{selector:".k-grid-header-wrap>table>thead>tr.k-filter-row>td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-header-wrap>table>thead>tr.k-filter-row>td",attribute:"aria-label",usage:"Has a label indicating that the cell is part of a filter row."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table, .k-grid-pinned-container .k-grid-table",attribute:"role=none",usage:"Negates the default semantic role of the <table> element."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody, .k-grid-pinned-container tbody",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr, .k-grid-pinned-container tbody tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr, .k-grid-pinned-container tbody tr",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr>td, .k-grid-pinned-container tbody td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid:not(.k-grid-lockedcolumns) .k-grid-content>table>tbody>tr>td, .k-grid-pinned-container tbody td",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:"tr.k-selected",attribute:"aria-selected=true",usage:"Set on the currently selected row(s) in row selection mode. All cells within the selected row also carry aria-selected=true (without k-selected class). Applies to both regular and pinned rows."},{selector:"td.k-selected",attribute:"aria-selected=true",usage:"Set on the currently selected cell(s) in cell selection mode. The k-selected class on cells is only applied in cell selection mode, but aria-selected=true is present on cells regardless of selection mode."},{selector:".k-master-row .k-hierarchy-cell, .k-grouping-row>td",attribute:"aria-expanded",usage:"For cells holding grouping criteria values and for Master row cells in Detail template scenario."},{selector:".k-group-cell",attribute:"role=presentation",usage:"Group offset cells (header and content) are non-interactive placeholders with no semantic role."},{selector:".k-drag-cell",attribute:"aria-label",usage:"Must be present in a Drag Row scenario on the cell containing the drag handle."},{selector:".k-grid-header-locked table tr",attribute:"aria-owns",usage:"Locked header rows own cells from the corresponding non-locked header table rows."},{selector:".k-grid-content-locked table tr:not(.k-grouping-row)",attribute:"aria-owns",usage:"Locked content rows own cells from the corresponding non-locked content table rows. Group header rows are excluded because the non-locked group header rows are presentational."},{selector:".k-grid-lockedcolumns .k-grid-header .k-grid-header-wrap table tr",attribute:"role=none",usage:"Non-locked header rows have their semantic role removed when locked columns exist."},{selector:".k-grid-lockedcolumns .k-grid-content table tr",attribute:"role=none",usage:"Non-locked content rows have their semantic role removed when locked columns exist."},{selector:".k-grid-lockedcolumns .k-grid-header .k-grid-header-wrap th",attribute:"role=columnheader",usage:"Non-locked header cells retain columnheader role so they are announced correctly when owned via aria-owns."},{selector:".k-grid-lockedcolumns .k-grid-content td:not(.k-grouping-row td)",attribute:"role=gridcell",usage:"Non-locked data cells retain gridcell role so they are announced correctly when owned via aria-owns. Cells inside group header rows are excluded as those rows are presentational."},{selector:".k-grid-filter-popup",attribute:"role=dialog",usage:"The filter menu popup has dialog role."},{selector:".k-grid-filter-popup",attribute:"id",usage:"Unique id linked to the header cell aria-controls attribute."},{selector:".k-grid-filter-popup",attribute:"aria-label",usage:'Descriptive label for the filter menu, e.g. "Column Title Filter Menu".'},{selector:".k-grid-columnmenu-popup",attribute:"role=dialog",usage:"The column menu popup has dialog role."},{selector:".k-grid-columnmenu-popup",attribute:"id",usage:"Unique id linked to the header cell aria-controls attribute."},{selector:".k-grid-columnmenu-popup",attribute:"aria-label",usage:'Descriptive label for the column menu, e.g. "Column Title Column Menu".'},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"role=button",usage:"Column menu items have button role."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"tabindex=0",usage:"Column menu items are focusable."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"aria-expanded",usage:"Expandable column menu items announce their expanded state."},{selector:".k-grid-columnmenu-popup .k-columnmenu-item",attribute:"aria-controls",usage:"Expandable items point to the id of the content they control."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"role=listbox",usage:"The column list is a listbox."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"aria-multiselectable=true",usage:"The column list supports multiple selections."},{selector:".k-grid-columnmenu-popup .k-column-list",attribute:"aria-label",usage:"Accessible name for the column list."},{selector:".k-grid-columnmenu-popup .k-column-list-item",attribute:"role=option",usage:"Column list items are options."},{selector:".k-grid-columnmenu-popup .k-column-list-item",attribute:"aria-checked",usage:"Column list items announce their checked state."},{selector:"tfoot",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr",attribute:"aria-rowindex (when present)",usage:"Row number. Needed for Paging, Virtual rows, or Master/Detail rows scenarios."},{selector:"tfoot tr td",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed."},{selector:"tfoot tr td",attribute:"aria-colindex (when present)",usage:"Col number. Needed for Virtual columns and Hidden columns scenarios."},{selector:".k-grid-selection-aggregates",attribute:"aria-live=polite",usage:"Ensures that changes in the calculated selection aggregates are announced by assistive technologies."},{selector:".k-grid-stack-cell",attribute:"tabindex=0",usage:"Stacked cell elements receive tabindex 0 when focus is within their parent .k-grid-stack-row element."},{selector:".k-grid-sticky-container",attribute:"role=none",usage:"Sticky group container has no semantic role."},{selector:".k-grid-sticky-container .k-grid-table",attribute:"role=none",usage:"Negates the default semantic role of the sticky group <table> element."},{selector:".k-grid-sticky-container tbody",attribute:"role=rowgroup",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-sticky-container tr",attribute:"role=row",usage:"Required as the owner <table> element has its semantic role removed."},{selector:".k-grid-sticky-container tr",attribute:"aria-rowindex",usage:"Matches the aria-rowindex of the real group header/footer row it mirrors."},{selector:".k-grid-sticky-container td:not(.k-group-cell)",attribute:"role=gridcell",usage:"Required as the owner <table> element has its semantic role removed. Group offset cells are excluded as they retain role=presentation."},{selector:".k-grid-sticky-container .k-grouping-row>td",attribute:"aria-expanded",usage:"Mirrors the expanded/collapsed state of the real group header row."},{selector:".k-grid-sticky-container td:not(.k-group-cell)",attribute:"tabindex",usage:"Receives tabindex 0 when focused, -1 otherwise, for keyboard navigation. Group offset cells are excluded as they are presentational."},{selector:".k-grid-sticky-container td",attribute:"aria-colindex (when present)",usage:"Col number. Typically 1 for the group header cell spanning all columns."},{selector:".k-grid-pinned-container",attribute:"role=none",usage:"Container for pinned rows has no semantic role."},{selector:".k-grid-pinned-container .k-grid-pinned-wrap",attribute:"role=none",usage:"Inner wrapper for the pinned rows table has no semantic role."},{selector:".k-grid-pinned-container tbody",attribute:"aria-label",usage:'Describes the purpose of the pinned rows group, e.g. "Top pinned rows" or "Bottom pinned rows".'},{selector:".k-grid-pinned-container td",attribute:"aria-haspopup=menu (when present)",usage:"Pinned row cells announce the context menu for row pinning operations."},{selector:".k-grid-pinned-container td",attribute:"aria-controls",usage:"Points to the ID of the context menu popup for row pinning."},{selector:".k-grid-pinned-container td",attribute:"aria-expanded",usage:"Indicates whether the context menu popup is open."},{selector:".k-grid-content td",attribute:"aria-haspopup=menu (when present)",usage:"Regular data cells announce context menu when row pinning uses contextual mode."},{selector:".k-grid-content td",attribute:"aria-controls",usage:"Points to the ID of the context menu popup for row pinning."},{selector:".k-grid-content td",attribute:"aria-expanded",usage:"Indicates whether the context menu popup is open."},{selector:'.k-pin-cell [class*="k-icon"]',attribute:"aria-hidden=true",usage:"Pin/unpin icon inside the dedicated column is decorative and must be hidden from assistive technologies."}]};import{Fragment as Vc,jsx as Tn}from"react/jsx-runtime";var pl="k-font-icon",Uc=[],Fc={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info]},$c={},Ha=e=>{let{size:o,themeColor:t,icon:r,rotate:l,flip:n,...d}=e;return r?Tn("span",{...d,className:a(e.className,pl,L(pl,{size:o}),{[`k-i-${r}`]:r,[`k-color-${t}`]:t,[`k-rotate-${l}`]:l,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true"}):Tn(Vc,{})};Ha.states=Uc;Ha.options=Fc;Ha.className=pl;Ha.defaultOptions=$c;var gn=Ha;import{Fragment as Jc,jsx as fr}from"react/jsx-runtime";var ml="k-svg-icon",Wc=[],Xc={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info],variant:[Io.outline,Io.solid,Io.duotone]},ul={viewBox:"0 0 24 24",variant:Io.outline},Pa=e=>{let{size:o,themeColor:t,rotate:r,flip:l,viewBox:n=ul.viewBox,variant:d=ul.variant,icon:m,...b}=e;if(!m)return fr(Jc,{});if(m==="none")return fr("span",{...b,className:a(e.className,ml,L("k-icon",{size:o}),"k-none"),"aria-hidden":"true"});let N=typeof m=="object"&&m.name&&m.name,x=typeof m=="object"?d&&m.variants?.[d]||m.variants?.outline||m.content:void 0;return fr("span",{...b,className:a(e.className,ml,L("k-icon",{size:o}),{[`k-svg-i-${N}`]:N,[`k-color-${t}`]:t,[`k-rotate-${r}`]:r,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true",children:fr("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:n,dangerouslySetInnerHTML:x!==void 0?{__html:x}:void 0,children:m?void 0:e.children})})};Pa.states=Wc;Pa.options=Xc;Pa.className=ml;Pa.defaultOptions=ul;var bl=Pa;import*as fl from"@progress/kendo-svg-icons";var hn="icon",xn="icons";import{useContext as Yc}from"react";import{createContext as qc}from"react";var Nn=qc({iconsType:"svg"});import{Fragment as kn,jsx as _a}from"react/jsx-runtime";var Tr="k-icon",Qc=e=>e.replace(/([-_][a-z0-9])/gi,o=>o.toUpperCase().replace("-","").replace("_","")),Zc=[],jc={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info],variant:[Io.outline,Io.solid,Io.duotone]},gr={viewBox:"0 0 24 24",type:"svg",variant:Io.outline},f=e=>{let{iconsType:o}=Yc(Nn),{size:t,themeColor:r,icon:l,type:n=o||gr.type,rotate:d,flip:m,viewBox:b=gr.viewBox,variant:N=gr.variant,...x}=e;if(!l)return _a(kn,{});if((o||n)==="svg"){if(l==="none")return _a(bl,{...x,className:a(e.className,Tr),icon:l,size:t,variant:N});let u=fl[l]?l:Qc(`${l}-icon`);return fl[u]?_a(bl,{...x,className:a(e.className,Tr),icon:fl[u],size:t,themeColor:r,rotate:d,flip:m,viewBox:b,variant:N}):_a(kn,{})}return _a(gn,{...x,className:a(e.className,Tr),icon:l,size:t,themeColor:r,rotate:d,flip:m})};f.states=Zc;f.options=jc;f.defaultOptions=gr;f.className=Tr;f.moduleName=hn;f.folderName=xn;f.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var Tl="button",vn=Tl;import{Fragment as wn,jsx as Dt,jsxs as Cn}from"react/jsx-runtime";var Ka="k-button",ep=["icon-button"],op=[i.hover,i.focus,i.active,i.selected,i.disabled,i.generating],tp={size:[s.undefined,s.xsmall,s.small,s.medium,s.large],rounded:[g.undefined,g.none,g.small,g.medium,g.large,g.full],fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link],themeColor:[w.undefined,w.base,w.primary,w.secondary,w.tertiary,w.success,w.warning,w.error,w.info,w.inverse]},gl={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:o="button",size:t,rounded:r,fillMode:l,themeColor:n,showArrow:d=gl.showArrow,arrowIconName:m=gl.arrowIconName,variant:b,hover:N,focus:x,active:k,selected:u,disabled:v,togglable:C,ariaDisabled:I,icon:E,iconSize:G,text:B,iconClassName:ge,className:de,..._e}=e,Ke=E!=null,De=e.children!==void 0;return Cn(o,{className:a(de,Ka,bn(Ka,b),L(Ka,{size:t,rounded:r,fillMode:l,themeColor:n}),M(Ka,{hover:N,focus:x,active:k,disabled:v||I,selected:u}),{"k-icon-button":!B&&!De&&Ke}),"aria-pressed":C?u?"true":"false":void 0,..._e,"aria-disabled":I?"true":void 0,disabled:v||void 0,children:[typeof E=="string"&&E&&Dt(f,{className:a(ge,"k-button-icon"),icon:E,size:G}),E&&typeof E!="string"&&Dt(wn,{children:E}),B?Cn(wn,{children:[B&&Dt("span",{className:"k-button-text",children:B}),e.children]}):e.children&&Dt("span",{className:"k-button-text",children:e.children}),d&&Dt("span",{className:"k-menu-button-arrow k-button-arrow",children:Dt(f,{icon:m})})]})};c.states=op;c.options=tp;c.variants=ep;c.className=Ka;c.defaultOptions=gl;c.moduleName=Tl;c.folderName=vn;c.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as ap}from"react/jsx-runtime";var Zo=e=>ap(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as rp}from"react/jsx-runtime";var Da=e=>rp(c,{icon:"folder",children:"Button",...e});import{jsx as lp}from"react/jsx-runtime";var Nt=e=>lp(c,{children:"Button",...e});import{jsx as hl}from"react/jsx-runtime";var ip=c.options,np=c.states,sp={...c.defaultOptions,variant:"text"},dp=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],cp=[],Bt=e=>{let{variant:o,...t}=e;switch(o){case"icon-only":return hl(Zo,{...t,icon:"star"});case"icon-and-text":return hl(Da,{...t,icon:"star",children:"Button"});default:return hl(Nt,{...t,children:"Button"})}};Bt.options=ip;Bt.states=np;Bt.variants=dp;Bt.defaultOptions=sp;Bt.modifiers=cp;Bt.className=c.className;var xl="button",Ln=xl;import{jsx as bp}from"react/jsx-runtime";var Ba="k-button-group",pp=[i.disabled],mp={fillMode:[h.undefined,h.solid,h.flat,h.outline,h.clear,h.link]},up={},_=e=>{let{fillMode:o,disabled:t,stretched:r,...l}=e;return bp("div",{role:"group",...l,className:a(e.className,Ba,L(Ba,{fillMode:o}),M(Ba,{disabled:t}),{[`${Ba}-stretched`]:r}),...t&&{"aria-disabled":"true"},children:e.children})};_.states=pp;_.options=mp;_.className=Ba;_.defaultOptions=up;_.moduleName=xl;_.folderName=Ln;_.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."}]};import{Fragment as Tk,jsx as fk,jsxs as gk}from"react/jsx-runtime";import{Fragment as wk,jsx as vk,jsxs as Ck}from"react/jsx-runtime";import{Fragment as Ik,jsx as Ak,jsxs as Rk}from"react/jsx-runtime";import{Fragment as _k,jsx as Pk,jsxs as Kk}from"react/jsx-runtime";import{Fragment as $k,jsx as Fk,jsxs as Vk}from"react/jsx-runtime";import{Fragment as Qk,jsx as Yk,jsxs as Zk}from"react/jsx-runtime";import{jsx as Ko,jsxs as Nl}from"react/jsx-runtime";var fp={...c.options,..._.options},Tp=c.states,gp={...c.defaultOptions,..._.defaultOptions,variant:"text-button"},hp=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],xp=[],zt=e=>{let{variant:o,className:t,...r}=e;return o==="icon-button"?Nl(_,{fillMode:r.fillMode,className:t,children:[Ko(c,{...r,icon:"star"}),Ko(c,{...r,icon:"star"}),Ko(c,{...r,icon:"star"})]}):o==="icon-text-button"?Nl(_,{fillMode:r.fillMode,className:t,children:[Ko(c,{...r,icon:"star",children:"First"}),Ko(c,{...r,icon:"star",children:"Middle"}),Ko(c,{...r,icon:"star",children:"Last"})]}):Nl(_,{fillMode:r.fillMode,className:t,children:[Ko(c,{...r,children:"First"}),Ko(c,{...r,children:"Middle"}),Ko(c,{...r,children:"Last"})]})};zt.options=fp;zt.states=Tp;zt.variants=hp;zt.defaultOptions=gp;zt.modifiers=xp;zt.className=_.className;var za="input",hr=za;import{jsx as wp}from"react/jsx-runtime";var xr="k-input",Np=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],kp={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]},vp={},ve=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m,size:b,rounded:N,fillMode:x,...k}=e;return wp("span",{...k,className:a(e.className,xr,L(xr,{size:b,rounded:N,fillMode:x}),M(xr,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m}))})};ve.states=Np;ve.options=kp;ve.className=xr;ve.defaultOptions=vp;ve.moduleName=za;ve.folderName=hr;import{jsx as yp}from"react/jsx-runtime";var Nr="k-picker",Cp=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],Lp={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]},Mp={},Ro=e=>{let{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m,size:b,rounded:N,fillMode:x,...k}=e;return yp("span",{...k,className:a(e.className,Nr,L(Nr,{size:b,rounded:N,fillMode:x}),M(Nr,{hover:o,focus:t,disabled:r,invalid:l,valid:n,loading:d,readonly:m})),children:e.children})};Ro.states=Cp;Ro.options=Lp;Ro.className=Nr;Ro.defaultOptions=Mp;Ro.moduleName=za;Ro.folderName=hr;import{Fragment as Ip,jsx as kl}from"react/jsx-runtime";var Mn="k-clear-value",Sp=[i.disabled,i.loading,i.readonly],Ap={},oo=e=>{let{disabled:o,loading:t,readonly:r,value:l}=e;return o||r||t||!l?kl(Ip,{}):kl("span",{className:a(e.className,Mn),children:kl(f,{icon:"x"})})};oo.states=Sp;oo.options=Ap;oo.className=Mn;import{jsx as Gp}from"react/jsx-runtime";var vl="k-input-inner",Rp=[],Ep={},kr={type:"text",autocomplete:"off",value:"",placeholder:""},to=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 Gp("input",{...m,type:t,className:a(e.className,vl,L(vl,e)),placeholder:r,autoComplete:l,defaultValue:o,disabled:n||void 0,readOnly:d||void 0})};to.states=Rp;to.options=Ep;to.className=vl;import{jsx as yn,jsxs as Pp}from"react/jsx-runtime";var wl="k-input-inner",Op=[],Hp={},kt=e=>{let{value:o,placeholder:t,showValue:r,valueIcon:l,valueIconName:n,...d}=e;return Pp("span",{...d,className:a(e.className,wl,L(wl,e)),children:[l,!l&&n&&yn(f,{className:"k-input-value-icon",icon:n}),r&&!o&&t,r&&o&&yn("span",{className:"k-input-value-text",children:o})]})};kt.states=Op;kt.options=Hp;kt.className=wl;import{jsx as Dp}from"react/jsx-runtime";var Cl="k-input-inner",_p=[],Kp={},Sn={value:"",placeholder:""},Ll=e=>{let{value:o=Sn.value,placeholder:t=Sn.placeholder,rows:r,disabled:l,...n}=e;return Dp("textarea",{...n,className:a(e.className,Cl,L(Cl,e)),placeholder:t,rows:r,defaultValue:o,disabled:l||void 0})};Ll.states=_p;Ll.options=Kp;Ll.className=Cl;import{Fragment as zp,jsx as An}from"react/jsx-runtime";var In="k-input-loading-icon",Bp=[i.disabled,i.loading],qe=e=>{let{disabled:o,loading:t}=e;return o||!t?An(zp,{}):An("span",{className:a(e.className,In,"k-icon k-i-loading")})};qe.states=Bp;qe.className=In;import{Fragment as $p,jsx as Rn}from"react/jsx-runtime";var En="k-input-validation-icon",Up=[i.valid,i.invalid,i.disabled,i.loading],Fp={},Be=e=>{let{valid:o,invalid:t,disabled:r,loading:l}=e,n=t?"warning-circle":"check-circle";return r||l||!!!(o||t)?Rn($p,{}):Rn(f,{className:a(En),icon:n})};Be.states=Up;Be.options=Fp;Be.className=En;import{Fragment as Xp,jsx as Gn}from"react/jsx-runtime";var Vp="k-input-prefix",Wp={direction:"horizontal"},po=e=>{let{direction:o=Wp.direction,...t}=e;return e.children?Gn("span",{...t,className:a(Vp,e.className,{[`k-input-prefix-${o}`]:o}),children:e.children}):Gn(Xp,{})};import{Fragment as Yp,jsx as On}from"react/jsx-runtime";var Jp="k-input-suffix",qp={direction:"horizontal"},mo=e=>{let{direction:o=qp.direction,...t}=e;return e.children?On("span",{...t,className:a(Jp,e.className,{[`k-input-suffix-${o}`]:o}),children:e.children}):On(Yp,{})};import{jsx as Zv}from"react/jsx-runtime";import{jsx as Zp}from"react/jsx-runtime";var Qp="k-input-suffix-text",Ml=e=>{let{children:o,...t}=e;return Zp("span",{...t,className:a(Qp,e.className),children:o})};import{jsx as em}from"react/jsx-runtime";var Hn="k-input-separator",jp={direction:"vertical"},uo=e=>{let{direction:o=jp.direction,...t}=e;return em("span",{...t,className:a(Hn,e.className,{[`${Hn}-${o}`]:o})})};import{Fragment as Pn,jsx as Eo,jsxs as yl}from"react/jsx-runtime";var om=ve.states,tm=ve.defaultOptions,am=ve.options,rm=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],lm=[],Ut=e=>{let{modifiers:o,valid:t,invalid:r,loading:l,disabled:n,readonly:d,...m}=e,b=o?.prefix,N=o?.suffix,x=o?.["clear-button"],k=o?.["validation-icon"],u=o?.separators;return yl(ve,{...m,valid:t,invalid:r,loading:l,disabled:n,readonly:d,style:{width:300},children:[b&&yl(Pn,{children:[Eo(po,{children:Eo(f,{icon:"lock"})}),u&&Eo(uo,{})]}),Eo(to,{placeholder:"Placeholder",value:"Value"}),k&&Eo(Be,{valid:t,invalid:r,loading:l,disabled:n}),Eo(qe,{loading:l,disabled:n}),x&&Eo(oo,{loading:l,disabled:n,readonly:d,value:"Value"}),N&&yl(Pn,{children:[u&&Eo(uo,{}),Eo(mo,{children:Eo(Nt,{size:m.size,fillMode:"clear",children:"Send"})})]})]})};Ut.options=am;Ut.states=om;Ut.variants=lm;Ut.defaultOptions=tm;Ut.modifiers=rm;Ut.className=ve.className;import{jsx as _n,jsxs as sm}from"react/jsx-runtime";var Kn="k-color-preview",im=[],nm={},jo=e=>{let{color:o,iconName:t,...r}=e;return sm("span",{...r,className:a(e.className,Kn,{"k-icon-color-preview":t,"k-no-color":!o}),children:[t&&_n(f,{icon:t,className:"k-color-preview-icon"}),_n("span",{className:"k-color-preview-mask",style:{backgroundColor:o}})]})};jo.states=im;jo.options=nm;jo.className=Kn;var Sl="popup",Dn=Sl;import{jsx as Bn}from"react/jsx-runtime";var zn="k-animation-container",dm=[],cm={},Al={positionMode:"absolute",shown:!0},Go=e=>{let{positionMode:o=Al.positionMode,shown:t=Al.shown,animationStyle:r,offset:l,...n}=e;return Bn("div",{...n,style:{...l,...e.style},className:a(e.className,zn,{"k-animation-container-shown":t,"k-animation-container-fixed":o==="fixed"}),children:Bn("div",{className:"k-child-animation-container",style:r,children:e.children})})};Go.states=dm;Go.options=cm;Go.className=zn;Go.defaultOptions=Al;Go.moduleName=Sl;Go.folderName=Dn;var Il="popup",Un=Il;import{jsx as Fn}from"react/jsx-runtime";var $n="k-popup",pm=[],mm={},Vn={positionMode:"absolute"},ae=e=>{let{offset:o,positionMode:t=Vn.positionMode,animationStyle:r,containerClassName:l,containerRole:n,containerAriaLabel:d,...m}=e;return Fn(Go,{positionMode:t,offset:o,animationStyle:r,className:l,role:n,"aria-label":d,children:Fn("div",{...m,className:a(e.className,$n),children:e.children})})};ae.states=pm;ae.options=mm;ae.className=$n;ae.defaultOptions=Vn;ae.moduleName=Il;ae.folderName=Un;ae.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var Rl="action-buttons",Wn=Rl;import{jsx as fm}from"react/jsx-runtime";var vr="k-actions",um=[],bm={},El={alignment:"start",orientation:"horizontal"},bo=e=>{let{alignment:o=El.alignment,orientation:t=El.orientation,...r}=e;return fm("div",{...r,className:a(vr,{[`${vr}-${o}`]:o,[`${vr}-${t}`]:t},e.className),children:e.children})};bo.states=um;bo.options=bm;bo.className=vr;bo.defaultOptions=El;bo.moduleName=Rl;bo.folderName=Wn;import{jsx as gm}from"react/jsx-runtime";var Tm="k-actionsheet-footer",Xn={alignment:"stretched",orientation:"horizontal"},et=e=>{let{alignment:o=Xn.alignment,orientation:t=Xn.orientation,template:r,as:l=r?"div":bo,...n}=e;return gm(l,{...n,...!r&&{alignment:o,orientation:t},className:a(e.className,Tm),children:e.children})};var Gl="searchbox",Jn=Gl;import{jsx as Ua,jsxs as Nm}from"react/jsx-runtime";var qn="k-searchbox",hm=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading],xm={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]},Ol={showIcon:!0,icon:"search"},ao=e=>{let{value:o,placeholder:t,size:r,rounded:l,fillMode:n,hover:d,focus:m,valid:b,invalid:N,required:x,loading:k,disabled:u,showIcon:v=Ol.showIcon,icon:C=Ol.icon,"aria-label":I,...E}=e;return Nm(ve,{...E,size:r,rounded:l,fillMode:n,hover:d,focus:m,valid:b,invalid:N,required:x,loading:k,disabled:u,className:a(e.className,qn),children:[v&&Ua(f,{className:"k-input-icon",icon:C}),Ua(to,{placeholder:t,value:o,"aria-label":I}),Ua(qe,{...e}),Ua(Be,{...e}),Ua(oo,{...e})]})};ao.states=hm;ao.options=xm;ao.className=qn;ao.defaultOptions=Ol;ao.moduleName=Gl;ao.folderName=Jn;import{jsx as wC}from"react/jsx-runtime";var Hl="textbox",Yn=Hl;import{Fragment as Qn,jsx as ot,jsxs as Pl}from"react/jsx-runtime";var Zn="k-textbox",km=[i.hover,i.focus,i.valid,i.invalid,i.required,i.disabled,i.loading,i.readonly],vm={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]},wr={showClearButton:!0,showValidationIcon:!0,separators:!0},me=e=>{let{size:o,rounded:t,fillMode:r,separators:l=wr.separators,showClearButton:n=wr.showClearButton,showValidationIcon:d=wr.showValidationIcon,prefix:m,suffix:b,type:N,value:x,placeholder:k,hover:u,focus:v,valid:C,invalid:I,required:E,loading:G,disabled:B,readonly:ge,id:de,"aria-label":_e,"aria-describedby":Ke,...De}=e;return Pl(ve,{...De,size:o,rounded:t,fillMode:r,hover:u,focus:v,valid:C,invalid:I,required:E,loading:G,disabled:B,readonly:ge,className:a(e.className,Zn),children:[m&&Pl(Qn,{children:[ot(po,{children:m}),l&&ot(uo,{})]}),ot(to,{id:de,placeholder:k,value:x,type:N,disabled:B,"aria-label":_e,"aria-describedby":Ke,"aria-invalid":I?"true":void 0}),d&&ot(Be,{valid:C,invalid:I,loading:G,disabled:B}),ot(qe,{loading:G,disabled:B}),n&&ot(oo,{loading:G,disabled:B,readonly:ge,value:x}),b&&Pl(Qn,{children:[l&&ot(uo,{}),ot(mo,{children:b})]})]})};me.states=km;me.options=vm;me.className=Zn;me.defaultOptions=wr;me.moduleName=Hl;me.folderName=Yn;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 Fa=me;import{jsx as wm}from"react/jsx-runtime";var jn=e=>wm(Fa,{...e});import{Fragment as zC,jsx as BC}from"react/jsx-runtime";import{Fragment as XC,jsx as WC}from"react/jsx-runtime";import{jsx as QC}from"react/jsx-runtime";import{jsx as _l}from"react/jsx-runtime";var Cm=me.states,Lm=me.defaultOptions,Mm=me.options,ym=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Sm=[],Ft=e=>{let{modifiers:o,...t}=e,r={};return Object.keys(o||{}).forEach(l=>{switch(l){case"prefix":r.prefix=o?.[l]?_l(f,{icon:"lock"}):void 0;break;case"suffix":r.suffix=o?.[l]?_l(Nt,{size:t.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":r.showClearButton=o?.[l];break;default:break}}),_l(jn,{value:"Value",style:{width:300},...t,...r})};Ft.options=Mm;Ft.states=Cm;Ft.variants=Sm;Ft.defaultOptions=Lm;Ft.modifiers=ym;Ft.className=me.className;import{jsx as tt,jsxs as Kl}from"react/jsx-runtime";var es="k-actionsheet-titlebar",Am={},ze=e=>{let{title:o,subtitle:t,actionsStart:r,actionsEnd:l,filter:n,input:d,inputValue:m,inputPlaceholder:b,adaptive:N,titleId:x,children:k,...u}=e;return Kl("div",{...u,className:a(e.className,es),children:[Kl("div",{className:"k-actionsheet-titlebar-group",children:[r&&tt("div",{className:"k-actionsheet-actions",children:r}),!k&&Kl("div",{className:"k-actionsheet-title",id:x,children:[o&&tt("div",{className:"k-text-center",children:o}),t&&tt("div",{className:"k-actionsheet-subtitle k-text-center",children:t})]}),k&&tt("div",{className:"k-actionsheet-title",id:x,children:k}),l&&tt("div",{className:"k-actionsheet-actions",children:l})]}),(d||n)&&tt("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:d?tt(me,{value:m,placeholder:b,size:N?"large":"medium","aria-label":o||b||"Input"}):tt(ao,{placeholder:"Filter",size:N?"large":"medium","aria-label":"Filter options"})})]})};ze.className=es;ze.defaultOptions=Am;import{jsx as Dl,jsxs as Gm}from"react/jsx-runtime";var Bl="k-actionsheet-view",Im=[],Rm={},Em={},$t=e=>{let{adaptive:o,animated:t,children:r,header:l,footer:n,titleId:d,...m}=e,b=l?.type===ze&&Dl(ze,{adaptive:o,titleId:d,...l?.props}),N=n?.type===et&&Dl(et,{...n?.props});return Gm("div",{...m,className:a(e.className,Bl,{[`${Bl}-animated`]:t}),children:[b,Dl("div",{className:"k-actionsheet-content",children:r}),N]})};$t.states=Im;$t.options=Rm;$t.className=Bl;$t.defaultOptions=Em;var $a="action-sheet",Cr=$a;var zl="overlay",os=zl;import{jsx as _m}from"react/jsx-runtime";var ts="k-overlay",Om=[],Hm={},Pm={},at=e=>{let{...o}=e;return _m("div",{...o,className:a(e.className,ts),children:e.children})};at.states=Om;at.options=Hm;at.className=ts;at.defaultOptions=Pm;at.moduleName=zl;at.folderName=os;import{jsx as Lr,jsxs as Bm}from"react/jsx-runtime";var as="k-actionsheet",Km=[],Dm={},Va={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},xe=e=>{let{side:o=Va.side,fullscreen:t=Va.fullscreen,adaptive:r=Va.adaptive,overlay:l=Va.overlay,template:n,children:d,header:m,footer:b,id:N,...x}=e,k=N&&!n&&m?`${N}-title`:void 0;return Bm("div",{className:"k-actionsheet-container",children:[l&&Lr(at,{}),Lr(Go,{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:Lr("div",{...x,id:N,role:"dialog","aria-modal":l?"true":void 0,"aria-labelledby":k,className:a(e.className,as,{[`k-actionsheet-${o}`]:t===!1,"k-actionsheet-fullscreen":t===!0,"k-adaptive-actionsheet":r}),children:n||Lr($t,{header:m,footer:b,adaptive:r,titleId:k,...e,children:d})})})]})};xe.states=Km;xe.options=Dm;xe.className=as;xe.defaultOptions=Va;xe.moduleName=$a;xe.folderName=Cr;xe.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 $m}from"react/jsx-runtime";var rs="k-actionsheet-container",zm=[],Um={},Fm={},Vt=e=>{let{children:o,...t}=e;return $m("div",{...t,className:rs,children:o})};Vt.states=zm;Vt.options=Um;Vt.className=rs;Vt.defaultOptions=Fm;Vt.moduleName=$a;Vt.folderName=Cr;import{jsx as Vm}from"react/jsx-runtime";var Ul=e=>{let{...o}=e;return Vm("div",{...o,className:a(e.className,"k-list-ul"),children:e.children})};import{Fragment as Xm,jsx as Wa,jsxs as Fl}from"react/jsx-runtime";var $l="k-actionsheet-item",Wm=[i.hover,i.focus,i.selected,i.disabled],rt=e=>{let{iconName:o,text:t,description:r,hover:l,focus:n,selected:d,disabled:m,...b}=e;return Fl("span",{...b,className:a(e.className,$l,M($l,{hover:l,focus:n,selected:d,disabled:m})),children:[!e.children&&Wa(Xm,{children:Fl("span",{className:"k-actionsheet-action",children:[o&&Wa("span",{className:"k-icon-wrap",children:Wa(f,{className:"k-actionsheet-item-icon",icon:o})}),Fl("span",{className:"k-actionsheet-item-text",children:[t&&Wa("span",{className:"k-actionsheet-item-title",children:t}),r&&Wa("span",{className:"k-actionsheet-item-description",children:r})]})]})}),e.children]})};rt.states=Wm;rt.className=$l;import{jsx as YL,jsxs as QL}from"react/jsx-runtime";import{jsx as oM}from"react/jsx-runtime";import{jsx as lM}from"react/jsx-runtime";import{jsx as dM}from"react/jsx-runtime";import{jsx as ye,jsxs as Vl}from"react/jsx-runtime";var Jm=xe.options,qm=xe.states,is={...xe.defaultOptions,variant:"normal"},Ym=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],Qm=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],Wt=e=>{let{variant:o,modifiers:t,...r}={...is,...e},l={},n=Vl(Ul,{children:[ye(rt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),ye(rt,{text:"Add to Favorites",iconName:"heart"}),ye(rt,{text:"Upload New",iconName:"upload",disabled:!0}),ye("hr",{className:"k-hr"}),ye(rt,{text:"Cancel",iconName:"cancel"})]}),d="Choose from the items below",m="Select Item";return o==="fullScreen"&&(l.fullScreen=!0),Object.keys(t||{}).forEach(b=>{switch(b){case"actions":l.actionsStart=!!t?.[b],l.actionsEnd=!!t?.[b];break;case"subtitle":l.subtitle=t?.[b]?d:void 0;break;case"footer":l.footer=!!t?.[b];break;default:break}}),o==="adaptive"?ye(xe,{...r,adaptive:!0,fullscreen:l.fullScreen,header:ye(ze,{actionsStart:l.actionsStart?ye(c,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:l.actionsEnd?ye(c,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:m,subtitle:l.subtitle}),footer:l.footer?Vl(et,{alignment:"stretched",children:[ye(c,{text:"Cancel",size:"large",themeColor:"base"}),ye(c,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:n}):ye(xe,{...r,fullscreen:l.fullScreen,header:ye(ze,{actionsStart:l.actionsStart?ye(c,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:l.actionsEnd?ye(c,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:l.subtitle}),footer:l.footer?Vl(et,{alignment:"stretched",children:[ye(c,{text:"Apply",themeColor:"primary"}),ye(c,{text:"Cancel",themeColor:"base"})]}):void 0,children:n})};Wt.options=Jm;Wt.states=qm;Wt.variants=Ym;Wt.defaultOptions=is;Wt.modifiers=Qm;Wt.className=xe.className;var Wl="slider",ns=Wl;import{jsx as Xt,jsxs as Xl}from"react/jsx-runtime";var Xa="k-slider",Zm=[i.hover,i.focus,i.active,i.disabled,i.readonly],jm={},fo={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},be=e=>{let{type:o=fo.type,orientation:t=fo.orientation,gradientType:r=fo.gradientType,readonly:l=fo.readonly,disabled:n=fo.disabled,handlePosition:d=fo.handlePosition,showButtons:m=fo.showButtons,showTicks:b=fo.showTicks,value:N=fo.value,min:x=fo.min,max:k=fo.max,startValue:u,endValue:v,hover:C,focus:I,active:E,trackStyle:G,dir:B,...ge}=e,_e=(()=>{if(o==="gradient"&&r==="2d")return"undefined";if(t==="vertical")return"vertical"})(),Ke,De;return t==="horizontal"?(Ke=B==="rtl"?"chevron-left":"chevron-right",De=B==="rtl"?"chevron-right":"chevron-left"):t==="vertical"&&(Ke="chevron-up",De="chevron-down"),Xl("div",{...ge,className:a(Xa,e.className,M(Xa,{readonly:l,disabled:n}),{[`k-slider-${t}`]:t,"k-colorgradient-slider":o==="gradient"}),dir:B,children:[m&&Xt(c,{className:"k-button-decrease",rounded:"full",icon:De,tabIndex:-1,title:"Decrease"}),Xl("div",{className:"k-slider-track-wrap",children:[b&&Xt("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),Xl("div",{className:"k-slider-track",style:G,children:[Xt("div",{className:"k-slider-selection"}),o==="range"&&Xt("span",{className:a("k-draghandle","k-draghandle-start",M(Xa,{hover:C,focus:I,active:E})),role:"slider",tabIndex:n?void 0:0,"aria-valuenow":u??x,"aria-valuemin":x,"aria-valuemax":v??k,"aria-orientation":_e,"aria-disabled":n?"true":void 0,"aria-readonly":l?"true":void 0,"aria-label":ge["aria-label"]?`${ge["aria-label"]} start`:"Range start"}),Xt("span",{className:a("k-draghandle",`k-draghandle-${d}`,M(Xa,{hover:C,focus:I,active:E})),role:"slider",tabIndex:n?void 0:0,"aria-valuenow":o==="range"?v??k:N,"aria-valuemin":o==="range"?u??x:x,"aria-valuemax":k,"aria-orientation":_e,"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&&Xt(c,{className:"k-button-increase",rounded:"full",icon:Ke,tabIndex:-1,title:"Increase"})]})};be.states=Zm;be.options=jm;be.className=Xa;be.defaultOptions=fo;be.moduleName=Wl;be.folderName=ns;be.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."}]};import{jsx as ss}from"react/jsx-runtime";var ds="k-tick",eu=[],ou={},cs={label:!1},H=e=>{let{style:o,label:t=cs.label,orientation:r,large:l,text:n,...d}=e;return ss("li",{...d,role:"presentation",title:n||"Tick",className:a(e.className,ds,{[`k-tick-${r}`]:r,"k-tick-large":l}),style:o,children:t&&ss("span",{className:"k-label",children:n})})};H.states=eu;H.options=ou;H.className=ds;H.defaultOptions=cs;import{Fragment as tu,jsx as To,jsxs as au}from"react/jsx-runtime";var ps=e=>To(be,{"aria-label":e["aria-label"]||"Slider",children:au(tu,{children:[To(H,{className:"k-first",label:!0,large:!0,text:"0"}),To(H,{}),To(H,{}),To(H,{}),To(H,{}),To(H,{label:!0,large:!0,text:"5"}),To(H,{}),To(H,{}),To(H,{}),To(H,{}),To(H,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as ru,jsx as go,jsxs as lu}from"react/jsx-runtime";var ms=e=>go(be,{children:lu(ru,{children:[go(H,{className:"k-first",label:!0,large:!0,text:"0"}),go(H,{}),go(H,{}),go(H,{}),go(H,{}),go(H,{label:!0,large:!0,text:"5"}),go(H,{}),go(H,{}),go(H,{}),go(H,{}),go(H,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as QM,jsx as YM,jsxs as ZM}from"react/jsx-runtime";import{Fragment as ay,jsx as ty,jsxs as ry}from"react/jsx-runtime";import{jsx as iu}from"react/jsx-runtime";var Jl=e=>iu(be,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-l