@progress/kendo-themes-html 14.0.0-dev.3 → 14.0.0-dev.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var T=(e,t)=>s({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),H=(e,t)=>{let{valid:o,invalid:n,hover:i,focus:m,checked:r,active:h,selected:p,disabled:M,indeterminate:d,loading:f,empty:N,readonly:k,highlighted:L,...w}=t;return s({"k-valid":o,"k-invalid":n,"k-hover":i,"k-focus":m,"k-checked":r,"k-active":h,"k-selected":p,"k-disabled":M,"k-indeterminate":d&&!r,"k-loading":f,"k-empty":N,"k-readonly":k,"k-highlighted":L},Object.keys(w).reduce((_,S)=>(S.startsWith("k-")?_[S]=w[S]:_[`k-${S}`]=w[S],_),{}))};function Ue(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(n=>[`k-${n}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},y={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},I={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},a={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},u={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 be={};function he(e){return be[e]=(be[e]||0)+1,`k-${e}-${be[e]}`}import{Fragment as Rt,jsx as De}from"react/jsx-runtime";var Me="k-font-icon",Bt=[],Pt={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info]},_t={},Z=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:m,...r}=e;return n?De("span",{...r,className:s(e.className,Me,T(Me,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":m==="h"||m==="both","k-flip-v":m==="v"||m==="both"}),"aria-hidden":"true"}):De(Rt,{})};Z.states=Bt;Z.options=Pt;Z.className=Me;Z.defaultOptions=_t;var $e=Z;import{Fragment as Ht,jsx as le}from"react/jsx-runtime";var xe="k-svg-icon",Kt=[],zt={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info]},Fe={viewBox:"0 0 24 24"},j=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:m=Fe.viewBox,icon:r,...h}=e;if(!r)return le(Ht,{});if(r==="none")return le("span",{...h,className:s(e.className,xe,T("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let p=typeof r=="object"&&r.name&&r.name;return le("span",{...h,className:s(e.className,xe,T("k-icon",{size:t}),{[`k-svg-i-${p}`]:p,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:le("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof r=="object"?r.viewBox:m,dangerouslySetInnerHTML:typeof r=="object"?{__html:r.content}:void 0,children:r?void 0:e.children})})};j.states=Kt;j.options=zt;j.className=xe;j.defaultOptions=Fe;var Ne=j;import*as Ie from"@progress/kendo-svg-icons";var We="icon",Ve="icons";import{useContext as Dt}from"react";import{createContext as Ut}from"react";var Je=Ut({iconsType:"svg"});import{Fragment as Xe,jsx as ee}from"react/jsx-runtime";var me="k-icon",$t=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ft=[],Wt={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info]},ke={viewBox:"0 0 24 24",type:"svg"},b=e=>{let{iconsType:t}=Dt(Je),{size:o,themeColor:n,icon:i,type:m=t||ke.type,rotate:r,flip:h,viewBox:p=ke.viewBox,...M}=e;if(!i)return ee(Xe,{});if((t||m)==="svg"){if(i==="none")return ee(Ne,{...M,className:s(e.className,me),icon:i,size:o});let f=Ie[i]?i:$t(`${i}-icon`);return Ie[f]?ee(Ne,{...M,className:s(e.className,me),icon:Ie[f],size:o,themeColor:n,rotate:r,flip:h,viewBox:p}):ee(Xe,{})}return ee($e,{...M,className:s(e.className,me),icon:i,size:o,themeColor:n,rotate:r,flip:h})};b.states=Ft;b.options=Wt;b.defaultOptions=ke;b.className=me;b.moduleName=We;b.folderName=Ve;b.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 ve="button",Ge=ve;import{Fragment as Gt,jsx as te,jsxs as qe}from"react/jsx-runtime";var oe="k-button",Vt=["icon-button"],Jt=[u.hover,u.focus,u.active,u.selected,u.disabled,u.generating],Xt={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[I.undefined,I.solid,I.flat,I.outline,I.clear,I.link],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info,a.inverse]},Se={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:t="button",size:o,rounded:n,fillMode:i,themeColor:m,showArrow:r=Se.showArrow,arrowIconName:h=Se.arrowIconName,variant:p,hover:M,focus:d,active:f,selected:N,disabled:k,togglable:L,ariaDisabled:w,icon:_,text:S,iconClassName:Y,className:wt,...yt}=e,Ot=_!==void 0,Ct=e.children!==void 0;return qe(t,{className:s(wt,oe,Ue(oe,p),T(oe,{size:o,rounded:n,fillMode:i,themeColor:m}),H(oe,{hover:M,focus:d,active:f,disabled:k||w,selected:N}),{"k-icon-button":!S&&!Ct&&Ot}),...yt,"aria-pressed":L?N?"true":"false":void 0,"aria-disabled":w?"true":void 0,disabled:k||void 0,children:[_&&te(b,{className:s(Y,"k-button-icon"),icon:_}),S?qe(Gt,{children:[S&&te("span",{className:"k-button-text",children:S}),e.children]}):e.children&&te("span",{className:"k-button-text",children:e.children}),r&&te("span",{className:"k-menu-button-arrow k-button-arrow",children:te(b,{icon:h})})]})};c.states=Jt;c.options=Xt;c.variants=Vt;c.className=oe;c.defaultOptions=Se;c.moduleName=ve;c.folderName=Ge;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 qt}from"react/jsx-runtime";var Qe=e=>qt(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Qt}from"react/jsx-runtime";var Ye=e=>Qt(c,{icon:"folder",children:"Button",...e});import{jsx as Yt}from"react/jsx-runtime";var Ze=e=>Yt(c,{children:"Button",...e});import{jsx as ge}from"react/jsx-runtime";var Zt=c.options,jt=c.states,eo={...c.defaultOptions,variant:"text"},to=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],oo=[],J=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return ge(Qe,{...o,icon:"star"});case"icon-and-text":return ge(Ye,{...o,icon:"star",children:"Button"});default:return ge(Ze,{...o,children:"Button"})}};J.options=Zt;J.states=jt;J.variants=to;J.defaultOptions=eo;J.modifiers=oo;J.className=c.className;var Ae="menu-button",je=Ae;import{jsx as so}from"react/jsx-runtime";var et="k-menu-button",no=[u.hover,u.focus,u.active,u.selected,u.disabled],ro={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[I.undefined,I.solid,I.flat,I.outline,I.clear,I.link],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info,a.inverse]},Te={showArrow:!0,arrowIconName:"chevron-down"},x=e=>{let{size:t,rounded:o,fillMode:n,themeColor:i,hover:m,focus:r,active:h,selected:p,disabled:M,icon:d,text:f,showArrow:N=Te.showArrow,arrowIconName:k=Te.arrowIconName,expanded:L,...w}=e;return so(c,{...w,className:s(e.className,et),text:f,size:t,rounded:o,fillMode:n,themeColor:i,hover:m,focus:r,active:h,selected:p,disabled:M,icon:d,showArrow:N,arrowIconName:k,"aria-expanded":L?"true":"false",...!f&&d&&!e["aria-label"]&&{"aria-label":"Menu"},...M&&{"aria-disabled":"true"}})};x.states=no;x.options=ro;x.className=et;x.defaultOptions=Te;x.moduleName=Ae;x.folderName=je;x.ariaSpec={selector:".k-menu-button",rules:[{selector:".k-menu-button",attribute:"role=button or nodeName=button",usage:"Omitted if the button DOM element is used."},{selector:".k-menu-button",attribute:"aria-label (when icon-only)",usage:"Required when no text is visible in the button."},{selector:".k-menu-button",attribute:"aria-expanded=true/false",usage:"Announces the state of the popup visibility."},{selector:".k-menu-button",attribute:"aria-controls=.k-menu-group id (when open)",usage:"Points to the popup element. Builds a relationship between the button and the popup."},{selector:".k-menu-button.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the button is disabled."},{selector:".k-menu-group",attribute:"role=list",usage:"Announces the list role of the popup."},{selector:".k-menu-item",attribute:"role=listitem",usage:"Announces the listitem role of the popup items."}]};import{jsx as dr}from"react/jsx-runtime";import{jsx as Mr}from"react/jsx-runtime";import{jsx as kr}from"react/jsx-runtime";var O="menu",B=O;import{jsx as ne,jsxs as tt}from"react/jsx-runtime";var Ee="k-menu-item",ao=[u.hover,u.focus,u.active,u.selected,u.disabled],io={},ot={iconPosition:"before"},g=e=>{let{hover:t,focus:o,active:n,selected:i,disabled:m,icon:r,text:h,first:p,last:M,showArrow:d,arrowIconName:f,iconPosition:N=ot.iconPosition,dir:k,children:L,expanded:w,..._}=e,S=f;return S||(S=k==="rtl"?"chevron-left":"chevron-right"),tt("li",{..._,className:s(e.className,Ee,"k-item",H(Ee,{focus:o,disabled:m,hover:t,active:n,selected:i}),{"k-first":p,"k-last":M}),role:"menuitem",...d&&{"aria-haspopup":"menu"},...d&&{"aria-expanded":w?"true":"false"},...m&&{"aria-disabled":"true"},...o&&{tabIndex:0},children:[tt("span",{className:s("k-link k-menu-link"),children:[r&&N==="before"&&ne(b,{className:"k-menu-link-icon",icon:r}),ne("span",{className:"k-menu-link-text",children:h}),r&&N==="after"&&ne(b,{className:"k-menu-link-icon",icon:r}),d&&ne("span",{className:"k-menu-expand-arrow","aria-hidden":"true",children:ne(b,{icon:S})})]}),L]})};g.states=ao;g.options=io;g.className=Ee;g.defaultOptions=ot;g.moduleName=O;g.folderName=B;import{jsx as re,jsxs as nt}from"react/jsx-runtime";var Le="k-menu-item",lo=[u.hover,u.focus,u.active,u.selected,u.disabled],mo={},we={dir:"ltr",iconPosition:"before"},A=e=>{let{hover:t,focus:o,active:n,selected:i,disabled:m,icon:r,text:h,first:p,last:M,showArrow:d,arrowIconName:f,iconPosition:N=we.iconPosition,dir:k=we.dir,children:L,popup:w,expanded:_,...S}=e,Y=f;return Y||(Y=k==="rtl"?"chevron-left":"chevron-right"),nt("li",{...S,className:s(e.className,Le,"k-item",H(Le,{focus:o,disabled:m}),{"k-first":p,"k-last":M}),role:"menuitem",...d&&{"aria-haspopup":"menu"},...d&&{"aria-expanded":_?"true":"false"},...m&&{"aria-disabled":"true"},...o&&{tabIndex:0},children:[nt("span",{className:s("k-link k-menu-link",H("k-menu-link",{hover:t,active:n,selected:i,disabled:m})),children:[r&&N==="before"&&re(b,{className:"k-menu-link-icon",icon:r}),re("span",{className:"k-menu-link-text",children:h}),r&&N==="after"&&re(b,{className:"k-menu-link-icon",icon:r}),d&&re("span",{className:"k-menu-expand-arrow","aria-hidden":"true",children:re(b,{icon:Y})})]}),L,w]})};A.states=lo;A.options=mo;A.className=Le;A.defaultOptions=we;A.moduleName=O;A.folderName=B;import{jsx as fo}from"react/jsx-runtime";var rt="k-menu-scroll-wrapper",co=[],uo={},po={},F=e=>{let{className:t,children:o,orientation:n,...i}=e;return fo("div",{...i,className:s(t,rt,{"k-menu-scroll-wrapper-vertical":n==="vertical"}),children:o})};F.states=co;F.options=uo;F.className=rt;F.defaultOptions=po;F.moduleName=O;F.folderName=B;var st=F;import{Fragment as ye,jsx as W,jsxs as ue}from"react/jsx-runtime";var Oe="k-menu",bo=[],ho={},pe={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},v=e=>{let{children:t,orientation:o=pe.orientation,header:n=pe.header,scrollable:i,scrollButtonsPosition:m=pe.scrollButtonsPosition,wrapperStyles:r,dir:h,popup:p,contextMenu:M,...d}=e,f={horizontal:{prev:h!=="rtl"?"left":"right",next:h!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},N=W("ul",{dir:h,...d,className:s(e.className,"k-reset",Oe,{[`${Oe}-${o}`]:o,"k-header":n}),role:M?"menu":"menubar",...o==="vertical"&&{"aria-orientation":"vertical"},children:t});return ue(ye,{children:[i?ue(st,{orientation:o,style:r,dir:e.dir,children:[m==="start"&&ue(ye,{children:[W(c,{fillMode:"flat",icon:`chevron-${f[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),W(c,{fillMode:"flat",icon:`chevron-${f[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}),m==="around"&&W(c,{fillMode:"flat",icon:`chevron-${f[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),N,m==="end"&&ue(ye,{children:[W(c,{fillMode:"flat",icon:`chevron-${f[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),W(c,{fillMode:"flat",icon:`chevron-${f[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}),m==="around"&&W(c,{fillMode:"flat",icon:`chevron-${f[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}):N,p]})};v.states=bo;v.options=ho;v.className=Oe;v.defaultOptions=pe;v.moduleName=O;v.folderName=B;v.ariaSpec={selector:".k-menu",rules:[{selector:".k-menu:not(.k-context-menu)",attribute:"role=menubar",usage:"Announces the Menu menubar role."},{selector:".k-menu.k-menu-vertical",attribute:"aria-orientation=vertical",usage:"Announces the Menu orientation when vertical."},{selector:".k-menu-item",attribute:"role=menuitem",usage:"Announces the Menu item role."},{selector:".k-menu-item",attribute:"aria-haspopup=menu (when present)",usage:"Indicates a popup menu is associated with the item."},{selector:".k-menu-item",attribute:"aria-expanded=true/false (when present)",usage:"Indicates whether the submenu is expanded."},{selector:".k-menu-item.k-disabled",attribute:"aria-disabled=true",usage:"Informs assistive technologies that a Menu item is disabled."},{selector:".k-menu-expand-arrow",attribute:"aria-hidden=true",usage:"Expand arrow elements are hidden from assistive technologies."},{selector:".k-menu-popup .k-menu-group",attribute:"role=menu",usage:"The role of the nested menu displayed in a popup."},{selector:".k-menu-scroll-button",attribute:"tabindex=-1",usage:"Scroll buttons are removed from the tab sequence."},{selector:".k-menu-scroll-button",attribute:"aria-label",usage:"Scroll buttons have an accessible label."},{selector:".k-menu-item.k-focus",attribute:"tabindex=0",usage:"The focused item has tabindex 0."},{selector:".k-menu-item",attribute:"aria-controls=ul.k-menu-group id (when present)",usage:"Points to the ID of the submenu. Only present when the item controls a submenu element."},{selector:".k-menu-popup .k-menu-group",attribute:"id",usage:"Each nested menu has a deterministic id linked to the parent aria-controls."}]};import{jsx as Mo}from"react/jsx-runtime";var Ce="k-separator",at={orientation:"horizontal"},X=e=>{let{orientation:t=at.orientation,...o}=e;return Mo("li",{...o,className:s(e.className,"k-item",Ce,{[`${Ce}-${t}`]:t}),role:"separator"})};X.className=Ce;X.defaultOptions=at;X.moduleName=O;X.folderName=B;import{Fragment as Qr,jsx as Yr}from"react/jsx-runtime";import{jsx as ko}from"react/jsx-runtime";var Be="k-menu-group",xo=[],No={size:[l.undefined,l.small,l.medium,l.large]},Io={},P=e=>{let{children:t,size:o,...n}=e;return ko("ul",{...n,className:s(e.className,Be,T(Be,{size:o})),role:"menu",children:t})};P.states=xo;P.options=No;P.className=Be;P.defaultOptions=Io;P.moduleName=O;P.folderName=B;import{Fragment as vo,jsx as G,jsxs as So}from"react/jsx-runtime";var Pe=e=>G(v,{children:So(vo,{children:[G(g,{first:!0,text:"Item 1"}),G(g,{showArrow:!0,arrowIconName:"chevron-down",text:"Item 2"}),G(g,{showArrow:!0,arrowIconName:"chevron-down",text:"Item 3"}),G(g,{text:"Item 4"}),G(g,{last:!0,text:"Item 5"})]}),...e});var _e="popup",it=_e;import{jsx as lt}from"react/jsx-runtime";var mt="k-animation-container",go=[],Ao={},ct={positionMode:"absolute"},D=e=>{let{positionMode:t=ct.positionMode,animationStyle:o,offset:n,...i}=e;return lt("div",{...i,style:{...n,...e.style},className:s(e.className,mt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:lt("div",{className:"k-child-animation-container",style:o,children:e.children})})};D.states=go;D.options=Ao;D.className=mt;D.defaultOptions=ct;D.moduleName=_e;D.folderName=it;var Re="popup",ut=Re;import{jsx as pt}from"react/jsx-runtime";var dt="k-popup",To=[],Eo={},ft={positionMode:"absolute"},C=e=>{let{offset:t,positionMode:o=ft.positionMode,animationStyle:n,containerClassName:i,containerRole:m,containerAriaLabel:r,...h}=e;return pt(D,{positionMode:o,offset:t,animationStyle:n,className:i,role:m,"aria-label":r,children:pt("div",{...h,className:s(e.className,dt),children:e.children})})};C.states=To;C.options=Eo;C.className=dt;C.defaultOptions=ft;C.moduleName=Re;C.folderName=ut;C.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.'}]};import{Fragment as Ts,jsx as gs,jsxs as As}from"react/jsx-runtime";import{Fragment as Os,jsx as ys,jsxs as Cs}from"react/jsx-runtime";import{Fragment as Ks,jsx as Rs,jsxs as zs}from"react/jsx-runtime";import{Fragment as Fs,jsx as $s,jsxs as Ws}from"react/jsx-runtime";import{jsx as V,jsxs as Co}from"react/jsx-runtime";var Lo=v.options,wo=v.states,bt={...v.defaultOptions,variant:"horizontal"},yo=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Oo=[{name:"scrollable",title:"Scrollable"},{name:"opened",title:"Opened"}],q=e=>{let{variant:t,modifiers:o,...n}={...bt,...e},i={};return Object.keys(o||{}).forEach(m=>{switch(m){case"scrollable":i.scrollable=!!o?.[m];break;case"opened":i.opened=!!o?.[m],i.popup=V(C,{className:"k-menu-popup",children:Co(P,{children:[V(A,{text:"Item 1"}),V(A,{text:"Item 2"}),V(X,{}),V(A,{text:"Item 3"})]})});break}}),t==="vertical"?V(Pe,{...n,...i,orientation:"vertical",style:{width:"200px"}}):V(Pe,{...n,...i})};q.options=Lo;q.states=wo;q.variants=yo;q.defaultOptions=bt;q.modifiers=Oo;q.className=v.className;import{Fragment as va,jsx as Ia,jsxs as ka}from"react/jsx-runtime";import{jsx as Ta}from"react/jsx-runtime";import{Fragment as Ko,jsx as z,jsxs as ht}from"react/jsx-runtime";var Bo=c.states,Mt={...c.defaultOptions,variant:"text"},Po=c.options,_o=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ro=[{name:"opened",title:"Opened"}],Q=e=>{let{variant:t,modifiers:o,...n}={...Mt,...e},i={},m=z(C,{className:"k-menu-popup",children:ht(P,{size:n.size,children:[z(A,{first:!0,text:"Menu Item"}),z(A,{text:"Menu Item"}),z(A,{last:!0,text:"Menu Item"})]})}),r;switch(t){case"icon-only":r=z("div",{children:z(x,{...n,...i,icon:"star"})});break;case"icon-and-text":r=z("div",{children:z(x,{...n,...i,icon:"star",children:"Dropdown Button"})});break;default:r=z("div",{children:z(x,{...n,...i,children:"Dropdown Button"})});break}return ht(Ko,{children:[r,o?.opened&&m]})};Q.options=Po;Q.states=Bo;Q.variants=_o;Q.defaultOptions=Mt;Q.modifiers=Ro;Q.className=x.className;import{jsx as Do}from"react/jsx-runtime";var xt="k-tabstrip-items",zo=[],Ho={},Uo={tabAlignment:"start"},se=e=>{let{children:t,tabAlignment:o,orientation:n,...i}=e;return Do("ul",{...i,className:s(e.className,xt,"k-reset",`k-tabstrip-items-${o}`),role:"tablist",...n==="vertical"&&{"aria-orientation":"vertical"},children:t})};se.states=zo;se.options=Ho;se.className=xt;se.defaultOptions=Uo;var Nt=se;import{jsx as Wo}from"react/jsx-runtime";var It="k-tabstrip-items-wrapper",$o=[],Fo={},kt={orientation:"horizontal"},ae=e=>{let{children:t,orientation:o=kt.orientation,...n}=e;return Wo("div",{...n,className:s(e.className,It,{"k-hstack":o==="horizontal","k-vstack":o==="vertical"}),children:t})};ae.states=$o;ae.options=Fo;ae.className=It;ae.defaultOptions=kt;var vt=ae;var Ke="tabstrip",St=Ke;import{jsx as R,jsxs as gt}from"react/jsx-runtime";var $="k-tabstrip",Vo=[],Jo={size:[l.undefined,l.small,l.medium,l.large]},de={position:"top",tabAlignment:"start",scrollButtons:"around"},U=e=>{let{size:t,scrollable:o,children:n,tabStripItems:i,tabStripItemsId:m,position:r=de.position,tabAlignment:h=de.tabAlignment,scrollButtons:p=de.scrollButtons,dir:M,scrollingPosition:d,overflow:f,...N}=e,k={top:{prev:M!=="rtl"?"left":"right",next:M!=="rtl"?"right":"left"},bottom:{prev:M!=="rtl"?"left":"right",next:M!=="rtl"?"right":"left"},right:{prev:"up",next:"down"},left:{prev:"up",next:"down"}},L={top:"horizontal",bottom:"horizontal",left:"vertical",right:"vertical"},w={start:"start",center:"center",end:"end",justify:"justify",stretched:"stretched"};return gt("div",{dir:M,...N,className:s($,e.className,{[`${$}-${r}`]:r,[`${$}-scrollable`]:o,[`${$}-scrollable-overlay`]:o&&(p==="hidden"||!p),[`${$}-scrollable-${d}`]:d&&d!=="both",[`${$}-overflow`]:f},T($,{size:t})),children:[r==="bottom"&&n,gt(vt,{orientation:L[r],children:[o&&(p==="around"||p==="start")&&R("span",{className:s("k-tabstrip-prev","k-button",T("k-button",{size:t,fillMode:I.flat}),"k-icon-button"),"aria-hidden":"true",children:R(b,{className:"k-button-icon",icon:`chevron-${k[r].prev}`})}),o&&p==="start"&&R("span",{className:s("k-tabstrip-next","k-button",T("k-button",{size:t,fillMode:I.flat}),"k-icon-button"),"aria-hidden":"true",children:R(b,{className:"k-button-icon",icon:`chevron-${k[r].next}`})}),R(Nt,{className:s({"k-tabstrip-items-scroll":o&&p==="hidden"}),tabAlignment:w[h],orientation:L[r],...m&&{id:m},children:i}),o&&p==="end"&&R("span",{className:s("k-tabstrip-prev","k-button",T("k-button",{size:t,fillMode:I.flat}),"k-icon-button"),"aria-hidden":"true",children:R(b,{className:"k-button-icon",icon:`chevron-${k[r].prev}`})}),o&&(p==="around"||p==="end")&&R("span",{className:s("k-tabstrip-next","k-button",T("k-button",{size:t,fillMode:I.flat}),"k-icon-button"),"aria-hidden":"true",children:R(b,{className:"k-button-icon",icon:`chevron-${k[r].next}`})}),f&&R("div",{className:"k-tabstrip-actions k-hstack",children:R(x,{className:"k-tabstrip-overflow-button",icon:"more-vertical",fillMode:"flat",size:t,showArrow:!1})})]}),r!=="bottom"&&n]})};U.states=Vo;U.options=Jo;U.className=$;U.defaultOptions=de;U.moduleName=Ke;U.folderName=St;U.ariaSpec={selector:".k-tabstrip",rules:[{selector:".k-tabstrip-items",attribute:"role=tablist",usage:"Indicates the tablist role for the ul element."},{selector:".k-tabstrip.k-tabstrip-left .k-tabstrip-items,.k-tabstrip.k-tabstrip-right .k-tabstrip-items",attribute:"aria-orientation=vertical",usage:"Indicates the orientation when vertical."},{selector:".k-tabstrip-item",attribute:"role=tab",usage:"The tab li element."},{selector:".k-tabstrip .k-tabstrip-item.k-active",attribute:"aria-selected=true",usage:"Announces the selected state of the tab."},{selector:".k-tabstrip-content",attribute:"role=tabpanel",usage:"The content div of the tab."},{selector:".k-tabstrip .k-tabstrip-item.k-active",attribute:"aria-controls (when present)",usage:"Announces the relation between the panel and active tab. Only present when tab controls a specific panel."},{selector:".k-tabstrip-content",attribute:"aria-hidden=true (when not active)",usage:"Only if the component implements a feature to control whether the content should be persisted."},{selector:".k-tabstrip-content",attribute:"aria-labelledby (when present)",usage:"Refers to the tab element that controls the panel. Only present when panel has an associated tab."},{selector:".k-tabstrip-scrollable .k-button",attribute:"aria-hidden=true",usage:"Scroll buttons are hidden from assistive technologies."}]};import{jsx as fe,jsxs as ze}from"react/jsx-runtime";var He="k-tabstrip-item",Xo=[u.active,u.hover,u.disabled,u.focus],Go={},At={iconPosition:"before"},K=e=>{let{dragging:t,active:o,hover:n,focus:i,disabled:m,children:r,first:h,last:p,closable:M,icon:d,iconPosition:f=At.iconPosition,value:N,actions:k,...L}=e;return ze("li",{...L,className:s(e.className,He,H(He,{hover:n,active:o,disabled:m,focus:i}),{"k-tabstrip-dragging":t,"k-first":h,"k-last":p}),role:"tab",...o&&{"aria-selected":"true"},...m&&{"aria-disabled":"true"},children:[ze("span",{className:"k-link",children:[d&&f==="before"&&fe(b,{icon:d}),N&&fe("span",{className:"k-link-text",children:N}),d&&f==="after"&&fe(b,{icon:d})]}),(k||M)&&ze("span",{className:"k-item-actions",children:[k,M&&fe(c,{as:"span",className:"k-remove-tab",icon:"x",fillMode:"flat",size:"xsmall",title:"Close","aria-hidden":"true"})]}),r]})};K.states=Xo;K.options=Go;K.className=He;K.item=At;import{Fragment as Zo,jsx as E,jsxs as Lt}from"react/jsx-runtime";var Tt="k-spreadsheet-sheets-bar",qo=[],Qo={},Yo=Lt(Zo,{children:[E(K,{first:!0,active:!0,value:"Sheet 1",actions:E(x,{showArrow:!1,size:"xsmall",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet1"),E(K,{value:"Sheet 2",actions:E(x,{showArrow:!1,size:"xsmall",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet2"),E(K,{value:"Sheet 3",actions:E(x,{showArrow:!1,size:"xsmall",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet3"),E(K,{value:"Sheet 4",actions:E(x,{showArrow:!1,size:"xsmall",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet4"),E(K,{value:"Sheet 5",actions:E(x,{showArrow:!1,size:"xsmall",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet5"),E(K,{last:!0,value:"Sheet 6",actions:E(x,{showArrow:!1,size:"xsmall",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet6")]}),Et={tabStripItems:Yo},ie=e=>{let{tabStripItems:t=Et.tabStripItems,...o}=e,n=he("spreadsheet-sheets");return Lt("div",{...o,className:s(Tt,e.className),children:[E(c,{className:"k-spreadsheet-sheet-add",fillMode:"flat",size:"xsmall",icon:"plus","aria-label":"Add new sheet","aria-controls":n}),E(c,{className:"k-spreadsheet-sheets-menu",fillMode:"flat",size:"xsmall",icon:"menu","aria-label":"Sheets menu","aria-controls":n}),E(U,{className:"k-spreadsheet-sheets",tabStripItems:t,tabStripItemsId:n,position:"bottom",scrollable:!0,scrollButtons:"end"})]})};ie.states=qo;ie.options=Qo;ie.className=Tt;ie.defaultOptions=Et;var bi=ie;export{Tt as SPREADSHEETSHEETSBAR_CLASSNAME,ie as SpreadsheetSheetsBar,bi as default};
1
+ var s=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?s(...t):typeof t=="object"?Object.keys(t).map((o,n)=>t[n]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var T=(e,t)=>s({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),H=(e,t)=>{let{valid:o,invalid:n,hover:i,focus:m,checked:r,active:h,selected:p,disabled:M,indeterminate:d,loading:f,empty:N,readonly:k,highlighted:L,...w}=t;return s({"k-valid":o,"k-invalid":n,"k-hover":i,"k-focus":m,"k-checked":r,"k-active":h,"k-selected":p,"k-disabled":M,"k-indeterminate":d&&!r,"k-loading":f,"k-empty":N,"k-readonly":k,"k-highlighted":L},Object.keys(w).reduce((_,S)=>(S.startsWith("k-")?_[S]=w[S]:_[`k-${S}`]=w[S],_),{}))};function Ue(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(n=>[`k-${n}`,!0]))}var l={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},y={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},I={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},a={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},u={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 be={};function he(e){return be[e]=(be[e]||0)+1,`k-${e}-${be[e]}`}import{Fragment as Rt,jsx as De}from"react/jsx-runtime";var Me="k-font-icon",Bt=[],Pt={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info]},_t={},Z=e=>{let{size:t,themeColor:o,icon:n,rotate:i,flip:m,...r}=e;return n?De("span",{...r,className:s(e.className,Me,T(Me,{size:t}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":m==="h"||m==="both","k-flip-v":m==="v"||m==="both"}),"aria-hidden":"true"}):De(Rt,{})};Z.states=Bt;Z.options=Pt;Z.className=Me;Z.defaultOptions=_t;var $e=Z;import{Fragment as Ht,jsx as le}from"react/jsx-runtime";var xe="k-svg-icon",Kt=[],zt={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info]},Fe={viewBox:"0 0 24 24"},j=e=>{let{size:t,themeColor:o,rotate:n,flip:i,viewBox:m=Fe.viewBox,icon:r,...h}=e;if(!r)return le(Ht,{});if(r==="none")return le("span",{...h,className:s(e.className,xe,T("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let p=typeof r=="object"&&r.name&&r.name;return le("span",{...h,className:s(e.className,xe,T("k-icon",{size:t}),{[`k-svg-i-${p}`]:p,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:le("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof r=="object"?r.viewBox:m,dangerouslySetInnerHTML:typeof r=="object"?{__html:r.content}:void 0,children:r?void 0:e.children})})};j.states=Kt;j.options=zt;j.className=xe;j.defaultOptions=Fe;var Ne=j;import*as Ie from"@progress/kendo-svg-icons";var We="icon",Ve="icons";import{useContext as Dt}from"react";import{createContext as Ut}from"react";var Je=Ut({iconsType:"svg"});import{Fragment as Xe,jsx as ee}from"react/jsx-runtime";var me="k-icon",$t=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ft=[],Wt={size:[l.undefined,l.xsmall,l.small,l.medium,l.large,l.xlarge,l.xxlarge,l.xxxlarge],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info]},ke={viewBox:"0 0 24 24",type:"svg"},b=e=>{let{iconsType:t}=Dt(Je),{size:o,themeColor:n,icon:i,type:m=t||ke.type,rotate:r,flip:h,viewBox:p=ke.viewBox,...M}=e;if(!i)return ee(Xe,{});if((t||m)==="svg"){if(i==="none")return ee(Ne,{...M,className:s(e.className,me),icon:i,size:o});let f=Ie[i]?i:$t(`${i}-icon`);return Ie[f]?ee(Ne,{...M,className:s(e.className,me),icon:Ie[f],size:o,themeColor:n,rotate:r,flip:h,viewBox:p}):ee(Xe,{})}return ee($e,{...M,className:s(e.className,me),icon:i,size:o,themeColor:n,rotate:r,flip:h})};b.states=Ft;b.options=Wt;b.defaultOptions=ke;b.className=me;b.moduleName=We;b.folderName=Ve;b.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 ve="button",Ge=ve;import{Fragment as Gt,jsx as te,jsxs as qe}from"react/jsx-runtime";var oe="k-button",Vt=["icon-button"],Jt=[u.hover,u.focus,u.active,u.selected,u.disabled,u.generating],Xt={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[I.undefined,I.solid,I.flat,I.outline,I.clear,I.link],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info,a.inverse]},Se={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:t="button",size:o,rounded:n,fillMode:i,themeColor:m,showArrow:r=Se.showArrow,arrowIconName:h=Se.arrowIconName,variant:p,hover:M,focus:d,active:f,selected:N,disabled:k,togglable:L,ariaDisabled:w,icon:_,text:S,iconClassName:Y,className:wt,...yt}=e,Ot=_!==void 0,Ct=e.children!==void 0;return qe(t,{className:s(wt,oe,Ue(oe,p),T(oe,{size:o,rounded:n,fillMode:i,themeColor:m}),H(oe,{hover:M,focus:d,active:f,disabled:k||w,selected:N}),{"k-icon-button":!S&&!Ct&&Ot}),...yt,"aria-pressed":L?N?"true":"false":void 0,"aria-disabled":w?"true":void 0,disabled:k||void 0,children:[_&&te(b,{className:s(Y,"k-button-icon"),icon:_}),S?qe(Gt,{children:[S&&te("span",{className:"k-button-text",children:S}),e.children]}):e.children&&te("span",{className:"k-button-text",children:e.children}),r&&te("span",{className:"k-menu-button-arrow k-button-arrow",children:te(b,{icon:h})})]})};c.states=Jt;c.options=Xt;c.variants=Vt;c.className=oe;c.defaultOptions=Se;c.moduleName=ve;c.folderName=Ge;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 qt}from"react/jsx-runtime";var Qe=e=>qt(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Qt}from"react/jsx-runtime";var Ye=e=>Qt(c,{icon:"folder",children:"Button",...e});import{jsx as Yt}from"react/jsx-runtime";var Ze=e=>Yt(c,{children:"Button",...e});import{jsx as ge}from"react/jsx-runtime";var Zt=c.options,jt=c.states,eo={...c.defaultOptions,variant:"text"},to=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],oo=[],J=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return ge(Qe,{...o,icon:"star"});case"icon-and-text":return ge(Ye,{...o,icon:"star",children:"Button"});default:return ge(Ze,{...o,children:"Button"})}};J.options=Zt;J.states=jt;J.variants=to;J.defaultOptions=eo;J.modifiers=oo;J.className=c.className;var Ae="menu-button",je=Ae;import{jsx as so}from"react/jsx-runtime";var et="k-menu-button",no=[u.hover,u.focus,u.active,u.selected,u.disabled],ro={size:[l.undefined,l.xsmall,l.small,l.medium,l.large],rounded:[y.undefined,y.none,y.small,y.medium,y.large,y.full],fillMode:[I.undefined,I.solid,I.flat,I.outline,I.clear,I.link],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info,a.inverse]},Te={showArrow:!0,arrowIconName:"chevron-down"},x=e=>{let{size:t,rounded:o,fillMode:n,themeColor:i,hover:m,focus:r,active:h,selected:p,disabled:M,icon:d,text:f,showArrow:N=Te.showArrow,arrowIconName:k=Te.arrowIconName,expanded:L,...w}=e;return so(c,{...w,className:s(e.className,et),text:f,size:t,rounded:o,fillMode:n,themeColor:i,hover:m,focus:r,active:h,selected:p,disabled:M,icon:d,showArrow:N,arrowIconName:k,"aria-expanded":L?"true":"false",...!f&&d&&!e["aria-label"]&&{"aria-label":"Menu"},...M&&{"aria-disabled":"true"}})};x.states=no;x.options=ro;x.className=et;x.defaultOptions=Te;x.moduleName=Ae;x.folderName=je;x.ariaSpec={selector:".k-menu-button",rules:[{selector:".k-menu-button",attribute:"role=button or nodeName=button",usage:"Omitted if the button DOM element is used."},{selector:".k-menu-button",attribute:"aria-label (when icon-only)",usage:"Required when no text is visible in the button."},{selector:".k-menu-button",attribute:"aria-expanded=true/false",usage:"Announces the state of the popup visibility."},{selector:".k-menu-button",attribute:"aria-controls=.k-menu-group id (when open)",usage:"Points to the popup element. Builds a relationship between the button and the popup."},{selector:".k-menu-button.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the button is disabled."},{selector:".k-menu-group",attribute:"role=list",usage:"Announces the list role of the popup."},{selector:".k-menu-item",attribute:"role=listitem",usage:"Announces the listitem role of the popup items."}]};import{jsx as dr}from"react/jsx-runtime";import{jsx as Mr}from"react/jsx-runtime";import{jsx as kr}from"react/jsx-runtime";var O="menu",B=O;import{jsx as ne,jsxs as tt}from"react/jsx-runtime";var Ee="k-menu-item",ao=[u.hover,u.focus,u.active,u.selected,u.disabled],io={},ot={iconPosition:"before"},g=e=>{let{hover:t,focus:o,active:n,selected:i,disabled:m,icon:r,text:h,first:p,last:M,showArrow:d,arrowIconName:f,iconPosition:N=ot.iconPosition,dir:k,children:L,expanded:w,..._}=e,S=f;return S||(S=k==="rtl"?"chevron-left":"chevron-right"),tt("li",{..._,className:s(e.className,Ee,"k-item",H(Ee,{focus:o,disabled:m,hover:t,active:n,selected:i}),{"k-first":p,"k-last":M}),role:"menuitem",...d&&{"aria-haspopup":"menu"},...d&&{"aria-expanded":w?"true":"false"},...m&&{"aria-disabled":"true"},...o&&{tabIndex:0},children:[tt("span",{className:s("k-link k-menu-link"),children:[r&&N==="before"&&ne(b,{className:"k-menu-link-icon",icon:r}),ne("span",{className:"k-menu-link-text",children:h}),r&&N==="after"&&ne(b,{className:"k-menu-link-icon",icon:r}),d&&ne("span",{className:"k-menu-expand-arrow","aria-hidden":"true",children:ne(b,{icon:S})})]}),L]})};g.states=ao;g.options=io;g.className=Ee;g.defaultOptions=ot;g.moduleName=O;g.folderName=B;import{jsx as re,jsxs as nt}from"react/jsx-runtime";var Le="k-menu-item",lo=[u.hover,u.focus,u.active,u.selected,u.disabled],mo={},we={dir:"ltr",iconPosition:"before"},A=e=>{let{hover:t,focus:o,active:n,selected:i,disabled:m,icon:r,text:h,first:p,last:M,showArrow:d,arrowIconName:f,iconPosition:N=we.iconPosition,dir:k=we.dir,children:L,popup:w,expanded:_,...S}=e,Y=f;return Y||(Y=k==="rtl"?"chevron-left":"chevron-right"),nt("li",{...S,className:s(e.className,Le,"k-item",H(Le,{focus:o,disabled:m}),{"k-first":p,"k-last":M}),role:"menuitem",...d&&{"aria-haspopup":"menu"},...d&&{"aria-expanded":_?"true":"false"},...m&&{"aria-disabled":"true"},...o&&{tabIndex:0},children:[nt("span",{className:s("k-link k-menu-link",H("k-menu-link",{hover:t,active:n,selected:i,disabled:m})),children:[r&&N==="before"&&re(b,{className:"k-menu-link-icon",icon:r}),re("span",{className:"k-menu-link-text",children:h}),r&&N==="after"&&re(b,{className:"k-menu-link-icon",icon:r}),d&&re("span",{className:"k-menu-expand-arrow","aria-hidden":"true",children:re(b,{icon:Y})})]}),L,w]})};A.states=lo;A.options=mo;A.className=Le;A.defaultOptions=we;A.moduleName=O;A.folderName=B;import{jsx as fo}from"react/jsx-runtime";var rt="k-menu-scroll-wrapper",co=[],uo={},po={},F=e=>{let{className:t,children:o,orientation:n,...i}=e;return fo("div",{...i,className:s(t,rt,{"k-menu-scroll-wrapper-vertical":n==="vertical"}),children:o})};F.states=co;F.options=uo;F.className=rt;F.defaultOptions=po;F.moduleName=O;F.folderName=B;var st=F;import{Fragment as ye,jsx as W,jsxs as ue}from"react/jsx-runtime";var Oe="k-menu",bo=[],ho={},pe={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},v=e=>{let{children:t,orientation:o=pe.orientation,header:n=pe.header,scrollable:i,scrollButtonsPosition:m=pe.scrollButtonsPosition,wrapperStyles:r,dir:h,popup:p,contextMenu:M,...d}=e,f={horizontal:{prev:h!=="rtl"?"left":"right",next:h!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},N=W("ul",{dir:h,...d,className:s(e.className,"k-reset",Oe,{[`${Oe}-${o}`]:o,"k-header":n}),role:M?"menu":"menubar",...o==="vertical"&&{"aria-orientation":"vertical"},children:t});return ue(ye,{children:[i?ue(st,{orientation:o,style:r,dir:e.dir,children:[m==="start"&&ue(ye,{children:[W(c,{fillMode:"flat",icon:`chevron-${f[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),W(c,{fillMode:"flat",icon:`chevron-${f[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}),m==="around"&&W(c,{fillMode:"flat",icon:`chevron-${f[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),N,m==="end"&&ue(ye,{children:[W(c,{fillMode:"flat",icon:`chevron-${f[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),W(c,{fillMode:"flat",icon:`chevron-${f[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}),m==="around"&&W(c,{fillMode:"flat",icon:`chevron-${f[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}):N,p]})};v.states=bo;v.options=ho;v.className=Oe;v.defaultOptions=pe;v.moduleName=O;v.folderName=B;v.ariaSpec={selector:".k-menu",rules:[{selector:".k-menu:not(.k-context-menu)",attribute:"role=menubar",usage:"Announces the Menu menubar role."},{selector:".k-menu.k-menu-vertical",attribute:"aria-orientation=vertical",usage:"Announces the Menu orientation when vertical."},{selector:".k-menu-item",attribute:"role=menuitem",usage:"Announces the Menu item role."},{selector:".k-menu-item",attribute:"aria-haspopup=menu (when present)",usage:"Indicates a popup menu is associated with the item."},{selector:".k-menu-item",attribute:"aria-expanded=true/false (when present)",usage:"Indicates whether the submenu is expanded."},{selector:".k-menu-item.k-disabled",attribute:"aria-disabled=true",usage:"Informs assistive technologies that a Menu item is disabled."},{selector:".k-menu-expand-arrow",attribute:"aria-hidden=true",usage:"Expand arrow elements are hidden from assistive technologies."},{selector:".k-menu-popup .k-menu-group",attribute:"role=menu",usage:"The role of the nested menu displayed in a popup."},{selector:".k-menu-scroll-button",attribute:"tabindex=-1",usage:"Scroll buttons are removed from the tab sequence."},{selector:".k-menu-scroll-button",attribute:"aria-label",usage:"Scroll buttons have an accessible label."},{selector:".k-menu-item.k-focus",attribute:"tabindex=0",usage:"The focused item has tabindex 0."},{selector:".k-menu-item",attribute:"aria-controls=ul.k-menu-group id (when present)",usage:"Points to the ID of the submenu. Only present when the item controls a submenu element."},{selector:".k-menu-popup .k-menu-group",attribute:"id",usage:"Each nested menu has a deterministic id linked to the parent aria-controls."}]};import{jsx as Mo}from"react/jsx-runtime";var Ce="k-separator",at={orientation:"horizontal"},X=e=>{let{orientation:t=at.orientation,...o}=e;return Mo("li",{...o,className:s(e.className,"k-item",Ce,{[`${Ce}-${t}`]:t}),role:"separator"})};X.className=Ce;X.defaultOptions=at;X.moduleName=O;X.folderName=B;import{Fragment as Qr,jsx as Yr}from"react/jsx-runtime";import{jsx as ko}from"react/jsx-runtime";var Be="k-menu-group",xo=[],No={size:[l.undefined,l.small,l.medium,l.large]},Io={},P=e=>{let{children:t,size:o,...n}=e;return ko("ul",{...n,className:s(e.className,Be,T(Be,{size:o})),role:"menu",children:t})};P.states=xo;P.options=No;P.className=Be;P.defaultOptions=Io;P.moduleName=O;P.folderName=B;import{Fragment as vo,jsx as G,jsxs as So}from"react/jsx-runtime";var Pe=e=>G(v,{children:So(vo,{children:[G(g,{first:!0,text:"Item 1"}),G(g,{showArrow:!0,arrowIconName:"chevron-down",text:"Item 2"}),G(g,{showArrow:!0,arrowIconName:"chevron-down",text:"Item 3"}),G(g,{text:"Item 4"}),G(g,{last:!0,text:"Item 5"})]}),...e});var _e="popup",it=_e;import{jsx as lt}from"react/jsx-runtime";var mt="k-animation-container",go=[],Ao={},ct={positionMode:"absolute"},D=e=>{let{positionMode:t=ct.positionMode,animationStyle:o,offset:n,...i}=e;return lt("div",{...i,style:{...n,...e.style},className:s(e.className,mt,"k-animation-container-shown",{"k-animation-container-fixed":t==="fixed"}),children:lt("div",{className:"k-child-animation-container",style:o,children:e.children})})};D.states=go;D.options=Ao;D.className=mt;D.defaultOptions=ct;D.moduleName=_e;D.folderName=it;var Re="popup",ut=Re;import{jsx as pt}from"react/jsx-runtime";var dt="k-popup",To=[],Eo={},ft={positionMode:"absolute"},C=e=>{let{offset:t,positionMode:o=ft.positionMode,animationStyle:n,containerClassName:i,containerRole:m,containerAriaLabel:r,...h}=e;return pt(D,{positionMode:o,offset:t,animationStyle:n,className:i,role:m,"aria-label":r,children:pt("div",{...h,className:s(e.className,dt),children:e.children})})};C.states=To;C.options=Eo;C.className=dt;C.defaultOptions=ft;C.moduleName=Re;C.folderName=ut;C.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.'}]};import{Fragment as Ts,jsx as gs,jsxs as As}from"react/jsx-runtime";import{Fragment as Os,jsx as ys,jsxs as Cs}from"react/jsx-runtime";import{Fragment as Ks,jsx as Rs,jsxs as zs}from"react/jsx-runtime";import{Fragment as Fs,jsx as $s,jsxs as Ws}from"react/jsx-runtime";import{jsx as V,jsxs as Co}from"react/jsx-runtime";var Lo=v.options,wo=v.states,bt={...v.defaultOptions,variant:"horizontal"},yo=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Oo=[{name:"scrollable",title:"Scrollable"},{name:"opened",title:"Opened"}],q=e=>{let{variant:t,modifiers:o,...n}={...bt,...e},i={};return Object.keys(o||{}).forEach(m=>{switch(m){case"scrollable":i.scrollable=!!o?.[m];break;case"opened":i.opened=!!o?.[m],i.popup=V(C,{className:"k-menu-popup",children:Co(P,{children:[V(A,{text:"Item 1"}),V(A,{text:"Item 2"}),V(X,{}),V(A,{text:"Item 3"})]})});break}}),t==="vertical"?V(Pe,{...n,...i,orientation:"vertical",style:{width:"200px"}}):V(Pe,{...n,...i})};q.options=Lo;q.states=wo;q.variants=yo;q.defaultOptions=bt;q.modifiers=Oo;q.className=v.className;import{Fragment as va,jsx as Ia,jsxs as ka}from"react/jsx-runtime";import{jsx as Ta}from"react/jsx-runtime";import{Fragment as Ko,jsx as z,jsxs as ht}from"react/jsx-runtime";var Bo=c.states,Mt={...c.defaultOptions,variant:"text"},Po=c.options,_o=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ro=[{name:"opened",title:"Opened"}],Q=e=>{let{variant:t,modifiers:o,...n}={...Mt,...e},i={},m=z(C,{className:"k-menu-popup",children:ht(P,{size:n.size,children:[z(A,{first:!0,text:"Menu Item"}),z(A,{text:"Menu Item"}),z(A,{last:!0,text:"Menu Item"})]})}),r;switch(t){case"icon-only":r=z("div",{children:z(x,{...n,...i,icon:"star"})});break;case"icon-and-text":r=z("div",{children:z(x,{...n,...i,icon:"star",children:"Dropdown Button"})});break;default:r=z("div",{children:z(x,{...n,...i,children:"Dropdown Button"})});break}return ht(Ko,{children:[r,o?.opened&&m]})};Q.options=Po;Q.states=Bo;Q.variants=_o;Q.defaultOptions=Mt;Q.modifiers=Ro;Q.className=x.className;import{jsx as Do}from"react/jsx-runtime";var xt="k-tabstrip-items",zo=[],Ho={},Uo={tabAlignment:"start"},se=e=>{let{children:t,tabAlignment:o,orientation:n,...i}=e;return Do("ul",{...i,className:s(e.className,xt,"k-reset",`k-tabstrip-items-${o}`),role:"tablist",...n==="vertical"&&{"aria-orientation":"vertical"},children:t})};se.states=zo;se.options=Ho;se.className=xt;se.defaultOptions=Uo;var Nt=se;import{jsx as Wo}from"react/jsx-runtime";var It="k-tabstrip-items-wrapper",$o=[],Fo={},kt={orientation:"horizontal"},ae=e=>{let{children:t,orientation:o=kt.orientation,...n}=e;return Wo("div",{...n,className:s(e.className,It,{"k-hstack":o==="horizontal","k-vstack":o==="vertical"}),children:t})};ae.states=$o;ae.options=Fo;ae.className=It;ae.defaultOptions=kt;var vt=ae;var Ke="tabstrip",St=Ke;import{jsx as R,jsxs as gt}from"react/jsx-runtime";var $="k-tabstrip",Vo=[],Jo={size:[l.undefined,l.small,l.medium,l.large]},de={position:"top",tabAlignment:"start",scrollButtons:"around"},U=e=>{let{size:t,scrollable:o,children:n,tabStripItems:i,tabStripItemsId:m,position:r=de.position,tabAlignment:h=de.tabAlignment,scrollButtons:p=de.scrollButtons,dir:M,scrollingPosition:d,overflow:f,...N}=e,k={top:{prev:M!=="rtl"?"left":"right",next:M!=="rtl"?"right":"left"},bottom:{prev:M!=="rtl"?"left":"right",next:M!=="rtl"?"right":"left"},right:{prev:"up",next:"down"},left:{prev:"up",next:"down"}},L={top:"horizontal",bottom:"horizontal",left:"vertical",right:"vertical"},w={start:"start",center:"center",end:"end",justify:"justify",stretched:"stretched"};return gt("div",{dir:M,...N,className:s($,e.className,{[`${$}-${r}`]:r,[`${$}-scrollable`]:o,[`${$}-scrollable-overlay`]:o&&(p==="hidden"||!p),[`${$}-scrollable-${d}`]:d&&d!=="both",[`${$}-overflow`]:f},T($,{size:t})),children:[r==="bottom"&&n,gt(vt,{orientation:L[r],children:[o&&(p==="around"||p==="start")&&R("span",{className:s("k-tabstrip-prev","k-button",T("k-button",{size:t,fillMode:I.flat}),"k-icon-button"),"aria-hidden":"true",children:R(b,{className:"k-button-icon",icon:`chevron-${k[r].prev}`})}),o&&p==="start"&&R("span",{className:s("k-tabstrip-next","k-button",T("k-button",{size:t,fillMode:I.flat}),"k-icon-button"),"aria-hidden":"true",children:R(b,{className:"k-button-icon",icon:`chevron-${k[r].next}`})}),R(Nt,{className:s({"k-tabstrip-items-scroll":o&&p==="hidden"}),tabAlignment:w[h],orientation:L[r],...m&&{id:m},children:i}),o&&p==="end"&&R("span",{className:s("k-tabstrip-prev","k-button",T("k-button",{size:t,fillMode:I.flat}),"k-icon-button"),"aria-hidden":"true",children:R(b,{className:"k-button-icon",icon:`chevron-${k[r].prev}`})}),o&&(p==="around"||p==="end")&&R("span",{className:s("k-tabstrip-next","k-button",T("k-button",{size:t,fillMode:I.flat}),"k-icon-button"),"aria-hidden":"true",children:R(b,{className:"k-button-icon",icon:`chevron-${k[r].next}`})}),f&&R("div",{className:"k-tabstrip-actions k-hstack",children:R(x,{className:"k-tabstrip-overflow-button",icon:"more-vertical",fillMode:"flat",size:t,showArrow:!1})})]}),r!=="bottom"&&n]})};U.states=Vo;U.options=Jo;U.className=$;U.defaultOptions=de;U.moduleName=Ke;U.folderName=St;U.ariaSpec={selector:".k-tabstrip",rules:[{selector:".k-tabstrip-items",attribute:"role=tablist",usage:"Indicates the tablist role for the ul element."},{selector:".k-tabstrip.k-tabstrip-left .k-tabstrip-items,.k-tabstrip.k-tabstrip-right .k-tabstrip-items",attribute:"aria-orientation=vertical",usage:"Indicates the orientation when vertical."},{selector:".k-tabstrip-item",attribute:"role=tab",usage:"The tab li element."},{selector:".k-tabstrip .k-tabstrip-item.k-active",attribute:"aria-selected=true",usage:"Announces the selected state of the tab."},{selector:".k-tabstrip-content",attribute:"role=tabpanel",usage:"The content div of the tab."},{selector:".k-tabstrip .k-tabstrip-item.k-active",attribute:"aria-controls (when present)",usage:"Announces the relation between the panel and active tab. Only present when tab controls a specific panel."},{selector:".k-tabstrip-content",attribute:"aria-hidden=true (when not active)",usage:"Only if the component implements a feature to control whether the content should be persisted."},{selector:".k-tabstrip-content",attribute:"aria-labelledby (when present)",usage:"Refers to the tab element that controls the panel. Only present when panel has an associated tab."},{selector:".k-tabstrip-scrollable .k-button",attribute:"aria-hidden=true",usage:"Scroll buttons are hidden from assistive technologies."}]};import{jsx as fe,jsxs as ze}from"react/jsx-runtime";var He="k-tabstrip-item",Xo=[u.active,u.hover,u.disabled,u.focus],Go={},At={iconPosition:"before"},K=e=>{let{dragging:t,active:o,hover:n,focus:i,disabled:m,children:r,first:h,last:p,closable:M,icon:d,iconPosition:f=At.iconPosition,value:N,actions:k,...L}=e;return ze("li",{...L,className:s(e.className,He,H(He,{hover:n,active:o,disabled:m,focus:i}),{"k-tabstrip-dragging":t,"k-first":h,"k-last":p}),role:"tab",...o&&{"aria-selected":"true"},...m&&{"aria-disabled":"true"},children:[ze("span",{className:"k-link",children:[d&&f==="before"&&fe(b,{icon:d}),N&&fe("span",{className:"k-link-text",children:N}),d&&f==="after"&&fe(b,{icon:d})]}),(k||M)&&ze("span",{className:"k-item-actions",children:[k,M&&fe(c,{as:"span",className:"k-remove-tab",icon:"x",fillMode:"flat",size:"xsmall",title:"Close","aria-hidden":"true"})]}),r]})};K.states=Xo;K.options=Go;K.className=He;K.item=At;import{Fragment as Zo,jsx as E,jsxs as Lt}from"react/jsx-runtime";var Tt="k-spreadsheet-sheets-bar",qo=[],Qo={},Yo=Lt(Zo,{children:[E(K,{first:!0,active:!0,value:"Sheet 1",actions:E(x,{showArrow:!1,size:"small",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet1"),E(K,{value:"Sheet 2",actions:E(x,{showArrow:!1,size:"small",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet2"),E(K,{value:"Sheet 3",actions:E(x,{showArrow:!1,size:"small",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet3"),E(K,{value:"Sheet 4",actions:E(x,{showArrow:!1,size:"small",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet4"),E(K,{value:"Sheet 5",actions:E(x,{showArrow:!1,size:"small",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet5"),E(K,{last:!0,value:"Sheet 6",actions:E(x,{showArrow:!1,size:"small",icon:"chevron-down",fillMode:"flat","aria-label":"Sheet options"})},"sheet6")]}),Et={tabStripItems:Yo},ie=e=>{let{tabStripItems:t=Et.tabStripItems,...o}=e,n=he("spreadsheet-sheets");return Lt("div",{...o,className:s(Tt,e.className),children:[E(c,{className:"k-spreadsheet-sheet-add",fillMode:"flat",size:"small",icon:"plus","aria-label":"Add new sheet","aria-controls":n}),E(c,{className:"k-spreadsheet-sheets-menu",fillMode:"flat",size:"small",icon:"menu","aria-label":"Sheets menu","aria-controls":n}),E(U,{className:"k-spreadsheet-sheets",tabStripItems:t,tabStripItemsId:n,position:"bottom",scrollable:!0,scrollButtons:"end"})]})};ie.states=qo;ie.options=Qo;ie.className=Tt;ie.defaultOptions=Et;var bi=ie;export{Tt as SPREADSHEETSHEETSBAR_CLASSNAME,ie as SpreadsheetSheetsBar,bi as default};