PageSourceSearch

https://dotui.org/assets/menu-CiU7M568.js

js dotui.org collected 2026-10-05 05:04:54 UTC 5,133 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-CNC7AqOf.js";import{t}from"./link-CAlj84Qr.js";import{t as n}from"./jsx-runtime-DiK4U9sA.js";import{O as r,j as i}from"./icons-DQrB-lEW.js";import{a}from"./styles-DXtJiwOv.js";import{a as o}from"./utils-_Dn76xaQ.js";import"./icons-CUXs_MYA.js";import{t as s}from"./meta-BHVzYp2w.js";import{n as c}from"./getItemCount-A4Pc69lF.js";import{n as l,o as u,r as d,s as f,t as p}from"./Menu-DHY5WxMw.js";import{t as m}from"./Text-DkEMPHMg.js";var{useStyles:h,styles:g}=a(s,{base:{slots:{root:[`max-h-[inherit] scroll-my-1 overflow-y-auto rounded-[inherit] outline-hidden`,`**:data-separator:my-1 **:data-separator:w-auto`],item:[`relative flex w-full cursor-interactive items-center gap-2 outline-hidden select-ui disabled:pointer-events-none **:[svg]:pointer-events-none **:[svg]:shrink-0`,`focus:bg-highlight focus:text-fg-on-highlight`,`disabled:text-(--disabled-fg,currentColor) disabled:**:text-current`,`has-data-menu-item-description:flex-col has-data-menu-item-description:items-start has-data-menu-item-description:gap-0 has-data-menu-item-description:has-[>svg]:pl-8 has-data-menu-item-description:*:[svg]:absolute has-data-menu-item-description:*:[svg]:top-2 has-data-menu-item-description:*:[svg]:left-2`,`has-submenu:pr-8`,`*:[kbd]:ml-auto *:[kbd]:border-0 *:[kbd]:bg-transparent *:[kbd]:text-fg-muted`,`data-[variant=danger]:text-fg-danger data-[variant=danger]:focus:bg-danger-muted`],indicator:[`pointer-events-none absolute flex items-center justify-center`],submenuIndicator:[`pointer-events-none absolute right-2 flex items-center justify-center`],itemLabel:[``],itemDescription:[`text-fg-muted`],section:[`scroll-my-1`],sectionTitle:[`font-medium text-fg-muted`]}},density:{compact:{slots:{root:`text-xs/relaxed`,item:`min-h-7 gap-2 py-1 text-xs/relaxed **:[svg]:not-with-[size]:size-3.5`,sectionTitle:`py-1.5`}},default:{slots:{root:`text-sm`,item:`gap-1.5 py-1 text-sm **:[svg]:not-with-[size]:size-4`,sectionTitle:`py-1`}},comfortable:{slots:{root:`text-sm`,item:`gap-2 py-1.5 text-sm **:[svg]:not-with-[size]:size-4`,sectionTitle:`py-1.5`}}},params:{indicator:{"check-start":{slots:{item:`data-selection-mode:pl-8 data-selection-mode:has-data-menu-item-description:has-[>svg]:pl-14 data-selection-mode:has-data-menu-item-description:*:[svg]:left-8`,indicator:`left-2`}},"check-end":{slots:{item:`data-selection-mode:pr-8`,indicator:`right-2`}}},highlight:{accent:{slots:{item:`focus:**:text-current`}}},inset:{inset:{slots:{root:`p-1 **:data-separator:-mx-1`,item:`rounded-(--studio-menu-item-radius)`},density:{compact:{slots:{item:`px-2`,sectionTitle:`px-2`}},default:{slots:{item:`px-1.5`,sectionTitle:`px-1.5`}},comfortable:{slots:{item:`px-2`,sectionTitle:`px-2`}}}},"full-bleed":{slots:{root:`py-1`},density:{compact:{slots:{item:`px-2.5`,sectionTitle:`px-2.5`}},default:{slots:{item:`px-3`,sectionTitle:`px-3`}},comfortable:{slots:{item:`px-3.5`,sectionTitle:`px-3.5`}}}}},labels:{sentence:{slots:{sectionTitle:`text-xs`}},caps:{slots:{sectionTitle:`text-[0.6875rem] font-medium tracking-wider uppercase`}}}}}),_=n(),v=e=>(0,_.jsx)(p,{...e}),y=({className:e,...t})=>{let{root:n}=h()();return(0,_.jsx)(u,{"data-menu-content":``,className:o(e,e=>n({className:e})),...t})},b=e=>(0,_.jsx)(f,{...e}),x=({className:e,variant:t,textValue:n,...a})=>{let{item:s,indicator:c,submenuIndicator:u}=h()(),d=n||(typeof a.children==`string`?a.children:void 0);return(0,_.jsx)(l,{"data-slot":`menu-item`,"data-menu-item":``,"data-variant":t,textValue:d,className:o(e,e=>s({className:e})),...a,children:o(a.children,(e,{selectionMode:t,isSelected:n,hasSubmenu:a})=>(0,_.jsxs)(_.Fragment,{children:[t!==`none`&&(0,_.jsx)(`span`,{"data-menu-item-indicator":``,className:c(),children:n&&(0,_.jsx)(r,{"aria-hidden":!0,className:`size-4 text-fg-accent`})}),typeof e==`string`?(0,_.jsx)(S,{children:e}):e,a&&(0,_.jsx)(`span`,{"data-menu-item-indicator":``,className:u(),children:(0,_.jsx)(i,{"aria-hidden":!0,className:`size-4`})})]}))})},S=({className:e,...t})=>{let{itemLabel:n}=h()();return(0,_.jsx)(m,{"data-menu-item-label":``,slot:`label`,className:n({className:e}),...t})},C=({className:e,...t})=>{let{itemDescription:n}=h()();return(0,_.jsx)(m,{"data-menu-item-description":``,slot:`description`,className:n({className:e}),...t})},w=({children:e,className:t,...n})=>{let{section:r}=h()();return(0,_.jsx)(d,{"data-menu-section":``,className:r({className:t}),...n,children:e})},T=({className:e,...t})=>{let{sectionTitle:n}=h()();return(0,_.jsx)(c,{"data-menu-section-header":``,className:n({className:e}),...t})},E=e({Menu:()=>v,MenuContent:()=>y,MenuItem:()=>D,MenuItemDescription:()=>C,MenuItemLabel:()=>S,MenuSection:()=>w,MenuSectionHeader:()=>T,MenuSub:()=>b});function D({href:e,...n}){return e===void 0?(0,_.jsx)(x,{...n}):(0,_.jsx)(x,{href:typeof e==`object`?e.to??`#`:e,render:n=>{if(!(`href`in n))return(0,_.jsx)(`div`,{...n});if(typeof e==`object`){let{href:r,...i}=n;return(0,_.jsx)(t,{...e,...i})}if(e.startsWith(`/`)){let{href:r,...i}=n;return(0,_.jsx)(t,{to:e,...i})}return(0,_.jsx)(`a`,{...n})},...n})}export{C as a,T as c,y as i,b as l,E as n,S as o,v as r,w as s,D as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.