@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 20.3 kB
JavaScript
var dt=Object.create;var te=Object.defineProperty;var ft=Object.getOwnPropertyDescriptor;var xt=Object.getOwnPropertyNames;var Mt=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty;var ht=(e,t)=>{for(var o in t)te(e,o,{get:t[o],enumerable:!0})},Ce=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of xt(t))!bt.call(e,n)&&n!==o&&te(e,n,{get:()=>t[n],enumerable:!(s=ft(t,n))||s.enumerable});return e};var Nt=(e,t,o)=>(o=e!=null?dt(Mt(e)):{},Ce(t||!e||!e.__esModule?te(o,"default",{value:e,enumerable:!0}):o,e)),It=e=>Ce(te({},"__esModule",{value:!0}),e);var io={};ht(io,{CONTEXTMENU_CLASSNAME:()=>Te,ContextMenu:()=>U,default:()=>so});module.exports=It(io);var i=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?i(...t):typeof t=="object"?Object.keys(t).map((o,s)=>t[s]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var P=(e,t)=>i({[`${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"}),F=(e,t)=>{let{valid:o,invalid:s,hover:n,focus:l,checked:m,active:u,selected:v,disabled:g,indeterminate:p,loading:x,empty:d,readonly:H,highlighted:$,...T}=t;return i({"k-valid":o,"k-invalid":s,"k-hover":n,"k-focus":l,"k-checked":m,"k-active":u,"k-selected":v,"k-disabled":g,"k-indeterminate":p&&!m,"k-loading":x,"k-empty":d,"k-readonly":H,"k-highlighted":$},Object.keys(T).reduce((N,k)=>(k.startsWith("k-")?N[k]=T[k]:N[`k-${k}`]=T[k],N),{}))};function we(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(s=>[`k-${s}`,!0]))}var a={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},V={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},X={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},C={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},r={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},f={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 Y=require("react/jsx-runtime"),se="k-font-icon",gt=[],vt={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[r.undefined,r.base,r.primary,r.secondary,r.tertiary,r.success,r.warning,r.error,r.info]},kt={},Z=e=>{let{size:t,themeColor:o,icon:s,rotate:n,flip:l,...m}=e;return s?(0,Y.jsx)("span",{...m,className:i(e.className,se,P(se,{size:t}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":l==="h"||l==="both","k-flip-v":l==="v"||l==="both"}),"aria-hidden":"true"}):(0,Y.jsx)(Y.Fragment,{})};Z.states=gt;Z.options=vt;Z.className=se;Z.defaultOptions=kt;var _e=Z;var W=require("react/jsx-runtime"),ie="k-svg-icon",Et=[],At={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[r.undefined,r.base,r.primary,r.secondary,r.tertiary,r.success,r.warning,r.error,r.info],variant:[C.outline,C.solid,C.duotone]},le={viewBox:"0 0 24 24",variant:C.outline},j=e=>{var x,d;let{size:t,themeColor:o,rotate:s,flip:n,viewBox:l=le.viewBox,variant:m=le.variant,icon:u,...v}=e;if(!u)return(0,W.jsx)(W.Fragment,{});if(u==="none")return(0,W.jsx)("span",{...v,className:i(e.className,ie,P("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let g=typeof u=="object"&&u.name&&u.name,p=typeof u=="object"?m&&((x=u.variants)==null?void 0:x[m])||((d=u.variants)==null?void 0:d.outline)||u.content:void 0;return(0,W.jsx)("span",{...v,className:i(e.className,ie,P("k-icon",{size:t}),{[`k-svg-i-${g}`]:g,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:(0,W.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof u=="object"?u.viewBox:l,dangerouslySetInnerHTML:p!==void 0?{__html:p}:void 0,children:u?void 0:e.children})})};j.states=Et;j.options=At;j.className=ie;j.defaultOptions=le;var me=j;var ue=Nt(require("@progress/kendo-svg-icons"));var Pe="icon",Re="icons";var Ue=require("react");var Ke=require("react"),Be=(0,Ke.createContext)({iconsType:"svg"});var R=require("react/jsx-runtime"),oe="k-icon",Lt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Ot=[],St={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[r.undefined,r.base,r.primary,r.secondary,r.tertiary,r.success,r.warning,r.error,r.info],variant:[C.outline,C.solid,C.duotone]},ne={viewBox:"0 0 24 24",type:"svg",variant:C.outline},M=e=>{let{iconsType:t}=(0,Ue.useContext)(Be),{size:o,themeColor:s,icon:n,type:l=t||ne.type,rotate:m,flip:u,viewBox:v=ne.viewBox,variant:g=ne.variant,...p}=e;if(!n)return(0,R.jsx)(R.Fragment,{});if((t||l)==="svg"){if(n==="none")return(0,R.jsx)(me,{...p,className:i(e.className,oe),icon:n,size:o,variant:g});let d=ue[n]?n:Lt(`${n}-icon`);return ue[d]?(0,R.jsx)(me,{...p,className:i(e.className,oe),icon:ue[d],size:o,themeColor:s,rotate:m,flip:u,viewBox:v,variant:g}):(0,R.jsx)(R.Fragment,{})}return(0,R.jsx)(_e,{...p,className:i(e.className,oe),icon:n,size:o,themeColor:s,rotate:m,flip:u})};M.states=Ot;M.options=St;M.defaultOptions=ne;M.className=oe;M.moduleName=Pe;M.folderName=Re;M.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 E="menu",L=E;var K=require("react/jsx-runtime"),ce="k-menu-item",yt=[f.hover,f.focus,f.active,f.selected,f.disabled],Tt={},He={iconPosition:"before"},I=e=>{let{hover:t,focus:o,active:s,selected:n,disabled:l,icon:m,text:u,first:v,last:g,showArrow:p,arrowIconName:x,iconPosition:d=He.iconPosition,dir:H,children:$,expanded:T,...N}=e,k=x;return k||(k=H==="rtl"?"chevron-left":"chevron-right"),(0,K.jsxs)("li",{...N,className:i(e.className,ce,"k-item",F(ce,{focus:o,disabled:l,hover:t,active:s,selected:n}),{"k-first":v,"k-last":g}),role:"menuitem",...p&&{"aria-haspopup":"menu"},...p&&{"aria-expanded":T?"true":"false"},...l&&{"aria-disabled":"true"},...o&&{tabIndex:0},children:[(0,K.jsxs)("span",{className:i("k-link k-menu-link"),children:[m&&d==="before"&&(0,K.jsx)(M,{className:"k-menu-link-icon",icon:m}),(0,K.jsx)("span",{className:"k-menu-link-text",children:u}),m&&d==="after"&&(0,K.jsx)(M,{className:"k-menu-link-icon",icon:m}),p&&(0,K.jsx)("span",{className:"k-menu-expand-arrow","aria-hidden":"true",children:(0,K.jsx)(M,{icon:k})})]}),$]})};I.states=yt;I.options=Tt;I.className=ce;I.defaultOptions=He;I.moduleName=E;I.folderName=L;var B=require("react/jsx-runtime"),pe="k-menu-item",Ct=[f.hover,f.focus,f.active,f.selected,f.disabled],wt={},de={dir:"ltr",iconPosition:"before"},O=e=>{let{hover:t,focus:o,active:s,selected:n,disabled:l,icon:m,text:u,first:v,last:g,showArrow:p,arrowIconName:x,iconPosition:d=de.iconPosition,dir:H=de.dir,children:$,popup:T,expanded:N,...k}=e,z=x;return z||(z=H==="rtl"?"chevron-left":"chevron-right"),(0,B.jsxs)("li",{role:"menuitem",...k,className:i(e.className,pe,"k-item",F(pe,{focus:o,disabled:l}),{"k-first":v,"k-last":g}),...p&&{"aria-haspopup":"menu"},...p&&{"aria-expanded":N?"true":"false"},...l&&{"aria-disabled":"true"},...o&&{tabIndex:0},children:[(0,B.jsxs)("span",{className:i("k-link k-menu-link",F("k-menu-link",{hover:t,active:s,selected:n,disabled:l})),children:[m&&d==="before"&&(0,B.jsx)(M,{className:"k-menu-link-icon",icon:m}),(0,B.jsx)("span",{className:"k-menu-link-text",children:u}),m&&d==="after"&&(0,B.jsx)(M,{className:"k-menu-link-icon",icon:m}),p&&(0,B.jsx)("span",{className:"k-menu-expand-arrow","aria-hidden":"true",children:(0,B.jsx)(M,{icon:z})})]}),$,T]})};O.states=Ct;O.options=wt;O.className=pe;O.defaultOptions=de;O.moduleName=E;O.folderName=L;var fe="button",ze=fe;var A=require("react/jsx-runtime"),ee="k-button",_t=["icon-button"],Pt=[f.hover,f.focus,f.active,f.selected,f.disabled,f.generating],Rt={size:[a.undefined,a.xsmall,a.small,a.medium,a.large],rounded:[V.undefined,V.none,V.small,V.medium,V.large,V.full],fillMode:[X.undefined,X.solid,X.flat,X.outline,X.clear,X.link],themeColor:[r.undefined,r.base,r.primary,r.secondary,r.tertiary,r.success,r.warning,r.error,r.info,r.inverse]},xe={showArrow:!1,arrowIconName:"chevron-down"},c=e=>{let{as:t="button",size:o,rounded:s,fillMode:n,themeColor:l,showArrow:m=xe.showArrow,arrowIconName:u=xe.arrowIconName,variant:v,hover:g,focus:p,active:x,selected:d,disabled:H,togglable:$,ariaDisabled:T,icon:N,iconSize:k,text:z,iconClassName:lt,className:mt,...ut}=e,ct=N!=null,pt=e.children!==void 0;return(0,A.jsxs)(t,{className:i(mt,ee,we(ee,v),P(ee,{size:o,rounded:s,fillMode:n,themeColor:l}),F(ee,{hover:g,focus:p,active:x,disabled:H||T,selected:d}),{"k-icon-button":!z&&!pt&&ct}),"aria-pressed":$?d?"true":"false":void 0,...ut,"aria-disabled":T?"true":void 0,disabled:H||void 0,children:[typeof N=="string"&&N&&(0,A.jsx)(M,{className:i(lt,"k-button-icon"),icon:N,size:k}),N&&typeof N!="string"&&(0,A.jsx)(A.Fragment,{children:N}),z?(0,A.jsxs)(A.Fragment,{children:[z&&(0,A.jsx)("span",{className:"k-button-text",children:z}),e.children]}):e.children&&(0,A.jsx)("span",{className:"k-button-text",children:e.children}),m&&(0,A.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,A.jsx)(M,{icon:u})})]})};c.states=Pt;c.options=Rt;c.variants=_t;c.className=ee;c.defaultOptions=xe;c.moduleName=fe;c.folderName=ze;c.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var $e=require("react/jsx-runtime"),De=e=>(0,$e.jsx)(c,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var Ve=require("react/jsx-runtime"),Fe=e=>(0,Ve.jsx)(c,{icon:"folder",children:"Button",...e});var We=require("react/jsx-runtime"),Xe=e=>(0,We.jsx)(c,{children:"Button",...e});var re=require("react/jsx-runtime"),Kt=c.options,Bt=c.states,Ut={...c.defaultOptions,variant:"text"},Ht=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],zt=[],J=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,re.jsx)(De,{...o,icon:"star"});case"icon-and-text":return(0,re.jsx)(Fe,{...o,icon:"star",children:"Button"});default:return(0,re.jsx)(Xe,{...o,children:"Button"})}};J.options=Kt;J.states=Bt;J.variants=Ht;J.defaultOptions=Ut;J.modifiers=zt;J.className=c.className;var qe=require("react/jsx-runtime"),Ge="k-menu-scroll-wrapper",Dt=[],$t={},Ft={},G=e=>{let{className:t,children:o,orientation:s,...n}=e;return(0,qe.jsx)("div",{...n,className:i(t,Ge,{"k-menu-scroll-wrapper-vertical":s==="vertical"}),children:o})};G.states=Dt;G.options=$t;G.className=Ge;G.defaultOptions=Ft;G.moduleName=E;G.folderName=L;var Je=G;var h=require("react/jsx-runtime"),Me="k-menu",Vt=[],Xt={},ae={orientation:"horizontal",header:!0,scrollButtonsPosition:"around"},b=e=>{let{children:t,orientation:o=ae.orientation,header:s=ae.header,scrollable:n,scrollButtonsPosition:l=ae.scrollButtonsPosition,wrapperStyles:m,dir:u,popup:v,contextMenu:g,...p}=e,x={horizontal:{prev:u!=="rtl"?"left":"right",next:u!=="rtl"?"right":"left"},vertical:{prev:"up",next:"down"}},d=(0,h.jsx)("ul",{dir:u,...p,className:i(e.className,"k-reset",Me,{[`${Me}-${o}`]:o,"k-header":s}),role:g?"menu":"menubar",...o==="vertical"&&{"aria-orientation":"vertical"},children:t});return(0,h.jsxs)(h.Fragment,{children:[n?(0,h.jsxs)(Je,{orientation:o,style:m,dir:e.dir,children:[l==="start"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c,{fillMode:"flat",icon:`chevron-${x[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),(0,h.jsx)(c,{fillMode:"flat",icon:`chevron-${x[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}),l==="around"&&(0,h.jsx)(c,{fillMode:"flat",icon:`chevron-${x[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),d,l==="end"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c,{fillMode:"flat",icon:`chevron-${x[o].prev}`,className:"k-menu-scroll-button k-menu-scroll-button-prev",tabIndex:-1,"aria-label":"Scroll previous"}),(0,h.jsx)(c,{fillMode:"flat",icon:`chevron-${x[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}),l==="around"&&(0,h.jsx)(c,{fillMode:"flat",icon:`chevron-${x[o].next}`,className:"k-menu-scroll-button k-menu-scroll-button-next",tabIndex:-1,"aria-label":"Scroll next"})]}):d,v]})};b.states=Vt;b.options=Xt;b.className=Me;b.defaultOptions=ae;b.moduleName=E;b.folderName=L;b.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."}]};var Ye=require("react/jsx-runtime"),be="k-separator",Qe={orientation:"horizontal"},q=e=>{let{orientation:t=Qe.orientation,...o}=e;return(0,Ye.jsx)("li",{...o,className:i(e.className,"k-item",be,{[`${be}-${t}`]:t}),role:"separator"})};q.className=be;q.defaultOptions=Qe;q.moduleName=E;q.folderName=L;var Ze=require("react/jsx-runtime");var je=require("react/jsx-runtime"),he="k-menu-group",Wt=[],Gt={size:[a.undefined,a.small,a.medium,a.large]},Jt={},S=e=>{let{children:t,size:o,...s}=e;return(0,je.jsx)("ul",{role:"menu",...s,className:i(e.className,he,P(he,{size:o})),children:t})};S.states=Wt;S.options=Gt;S.className=he;S.defaultOptions=Jt;S.moduleName=E;S.folderName=L;var y=require("react/jsx-runtime"),Ne=e=>(0,y.jsx)(b,{children:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(I,{first:!0,text:"Item 1"}),(0,y.jsx)(I,{showArrow:!0,arrowIconName:"chevron-down",text:"Item 2"}),(0,y.jsx)(I,{showArrow:!0,arrowIconName:"chevron-down",text:"Item 3"}),(0,y.jsx)(I,{text:"Item 4"}),(0,y.jsx)(I,{last:!0,text:"Item 5"})]}),...e});var Ie="popup",et=Ie;var ve=require("react/jsx-runtime"),tt="k-animation-container",qt=[],Qt={},ge={positionMode:"absolute",shown:!0},D=e=>{let{positionMode:t=ge.positionMode,shown:o=ge.shown,animationStyle:s,offset:n,...l}=e;return(0,ve.jsx)("div",{...l,style:{...n,...e.style},className:i(e.className,tt,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:(0,ve.jsx)("div",{className:"k-child-animation-container",style:s,children:e.children})})};D.states=qt;D.options=Qt;D.className=tt;D.defaultOptions=ge;D.moduleName=Ie;D.folderName=et;var ke="popup",ot=ke;var Ee=require("react/jsx-runtime"),nt="k-popup",Yt=[],Zt={},rt={positionMode:"absolute"},w=e=>{let{offset:t,positionMode:o=rt.positionMode,animationStyle:s,containerClassName:n,containerRole:l,containerAriaLabel:m,...u}=e;return(0,Ee.jsx)(D,{positionMode:o,offset:t,animationStyle:s,className:n,role:l,"aria-label":m,children:(0,Ee.jsx)("div",{...u,className:i(e.className,nt),children:e.children})})};w.states=Yt;w.options=Zt;w.className=nt;w.defaultOptions=rt;w.moduleName=ke;w.folderName=ot;w.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 Ae=require("react/jsx-runtime");var Le=require("react/jsx-runtime");var Oe=require("react/jsx-runtime");var Se=require("react/jsx-runtime");var _=require("react/jsx-runtime"),jt={...b.options,scrollable:{type:"boolean"}},eo=b.states,at={...b.defaultOptions,variant:"horizontal"},to=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],oo=[{name:"opened",title:"Opened"}],Q=e=>{let{variant:t,modifiers:o,...s}={...at,...e},n={},l=t==="vertical"?{left:"200px",top:"30px"}:{left:"90px",top:"auto"};return Object.keys(o||{}).forEach(m=>{m==="opened"&&(n.opened=!!(o!=null&&o[m]),n.popup=o!=null&&o[m]?(0,_.jsx)(w,{className:"k-menu-popup",offset:l,children:(0,_.jsxs)(S,{children:[(0,_.jsx)(O,{text:"Item 1"}),(0,_.jsx)(O,{text:"Item 2"}),(0,_.jsx)(q,{}),(0,_.jsx)(O,{text:"Item 3"})]})}):null)}),t==="vertical"?(0,_.jsx)(Ne,{...s,...n,orientation:"vertical",style:{width:"200px"}}):(0,_.jsx)(Ne,{...s,...n})};Q.options=jt;Q.states=eo;Q.variants=to;Q.defaultOptions=at;Q.modifiers=oo;Q.className=b.className;var ye="context-menu",st=ye;var it=require("react/jsx-runtime"),Te="k-context-menu",no=[],ro={},ao={},U=e=>{let{children:t,...o}=e;return(0,it.jsx)(S,{...o,className:i(e.className,Te),role:"menu",children:t})};U.states=no;U.options=ro;U.className=Te;U.defaultOptions=ao;U.moduleName=ye;U.folderName=st;U.ariaSpec={selector:".k-context-menu",rules:[{selector:".k-context-menu",attribute:"role=menu",usage:"The context menu implements the menu role."},{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-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."},{selector:".k-menu-popup .k-menu-group",attribute:"id",usage:"Each nested menu has an id linked to parent aria-controls."}]};var so=U;