lms/public/build/assets/dropdown-menu-DO-po5c1.js
2025-12-15 12:26:23 +01:00

2 lines
3.5 KiB
JavaScript

import{V as b,W as w,r as n,j as e,X as N,Y as i,Z as l,$ as h,a0 as c,a1 as m,a2 as p,a3 as y,a4 as f,a5 as u,a6 as x,K as j,a7 as g,a8 as v}from"./vendor-BKmmeuxg.js";import{c as d}from"./utils-DxSsnXxD.js";const E=b,G=w,L=h,R=n.forwardRef(({className:a,inset:t,children:s,...o},r)=>e.jsxs(p,{ref:r,className:d("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",a),...o,children:[s,e.jsx(y,{className:"ml-auto"})]}));R.displayName=p.displayName;const D=n.forwardRef(({className:a,...t},s)=>e.jsx(f,{ref:s,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t}));D.displayName=f.displayName;const M=n.forwardRef(({className:a,sideOffset:t=4,...s},o)=>e.jsx(N,{children:e.jsx(i,{ref:o,sideOffset:t,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})}));M.displayName=i.displayName;const C=n.forwardRef(({className:a,inset:t,...s},o)=>e.jsx(l,{ref:o,className:d("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",a),...s}));C.displayName=l.displayName;const z=n.forwardRef(({className:a,children:t,checked:s,...o},r)=>e.jsxs(u,{ref:r,className:d("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:s,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(x,{children:e.jsx(j,{className:"h-4 w-4"})})}),t]}));z.displayName=u.displayName;const I=n.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(g,{ref:o,className:d("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(x,{children:e.jsx(v,{className:"h-2 w-2 fill-current"})})}),t]}));I.displayName=g.displayName;const S=n.forwardRef(({className:a,inset:t,...s},o)=>e.jsx(c,{ref:o,className:d("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...s}));S.displayName=c.displayName;const k=n.forwardRef(({className:a,...t},s)=>e.jsx(m,{ref:s,className:d("-mx-1 my-1 h-px bg-muted",a),...t}));k.displayName=m.displayName;export{E as D,G as a,M as b,C as c,L as d,S as e,k as f};