@gv-tech/ui-web 2.29.1 → 2.29.3
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.
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +53 -2
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +2 -3
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -2
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +26 -26
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -2
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -5
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +13 -13
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +5 -5
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +13 -13
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +5 -5
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -2
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +2 -3
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -2
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +14 -15
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -2
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +13 -14
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -2
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -2
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +41 -42
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +8 -9
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -2
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +2 -3
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +37 -38
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +34 -35
- package/dist/hooks/use-theme.d.ts +52 -52
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +66 -66
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +27 -28
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -2
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +2 -3
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +29 -29
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +2 -3
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -2
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +5 -5
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -2
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -2
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +2 -3
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -2
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +15 -16
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -2
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -2
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -2
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -2
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -2
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -2
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.mjs +6 -11
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +12 -13
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -2
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -2
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +39 -40
- package/dist/{sidebar-DM9ee9wf.mjs → sidebar-DrU3nKaL.mjs} +137 -135
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -2
- package/dist/sonner.mjs +1 -2
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +2 -3
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +21 -22
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -2
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.mjs +5 -6
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +2 -3
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -2
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +14 -12
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/theme-provider.mjs +1 -2
- package/dist/{theme-toggle-3RStptYf.mjs → theme-toggle-9KtAIRxy.mjs} +18 -20
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -2
- package/dist/{toaster-gT2b7mfE.mjs → toaster-8RrHPtlc.mjs} +10 -12
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -2
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -2
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -2
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -2
- package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
- package/package.json +3 -3
- package/dist/accordion-D5QXSsCK.mjs +0 -248
- package/dist/accordion-DjyDOX-h.js +0 -1
- package/dist/alert-dialog-B-a0Wa1M.mjs +0 -182
- package/dist/alert-dialog-DYQAhGBC.js +0 -1
- package/dist/aspect-ratio-C-KOOyGP.js +0 -1
- package/dist/aspect-ratio-s7Ji1MSr.mjs +0 -40
- package/dist/avatar-4K3XjhP8.js +0 -1
- package/dist/avatar-d8Di248f.mjs +0 -138
- package/dist/calendar-DFj14O6r.js +0 -1
- package/dist/calendar-UW8h9dfh.mjs +0 -3182
- package/dist/carousel-CNGpg5df.js +0 -1
- package/dist/carousel-DG9xGJns.mjs +0 -1171
- package/dist/checkbox-BCgbTAdU.js +0 -1
- package/dist/checkbox-Dq8VHKDH.mjs +0 -186
- package/dist/chunk-BmowowmI.mjs +0 -14
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
- package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +0 -63
- package/dist/chunk-mLOUI7ql.js +0 -1
- package/dist/combobox-CpPIGtPJ.js +0 -4
- package/dist/combobox-b4OmCNw1.mjs +0 -5887
- package/dist/command-5hobOyGG.mjs +0 -545
- package/dist/command-Dbqnm9kI.js +0 -1
- package/dist/context-menu-DyTUismw.js +0 -1
- package/dist/context-menu-DzzU-_v8.mjs +0 -317
- package/dist/dist-1zUKVGvf.js +0 -1
- package/dist/dist-B057I8ju.mjs +0 -30
- package/dist/dist-BB78QQyQ.mjs +0 -41
- package/dist/dist-BBvidwzC.js +0 -1
- package/dist/dist-BEbV0Hal.mjs +0 -45
- package/dist/dist-BPL7gUpg.mjs +0 -18
- package/dist/dist-BTUvBzOm.js +0 -1
- package/dist/dist-BU-TFzJf.js +0 -1
- package/dist/dist-Bb5W_J2F.mjs +0 -39
- package/dist/dist-BbI6NHqR.mjs +0 -23
- package/dist/dist-BexAB6yo.mjs +0 -192
- package/dist/dist-BgXIqHHq.js +0 -1
- package/dist/dist-Bvfb4y_L.mjs +0 -100
- package/dist/dist-C8Pm6LRc.js +0 -1
- package/dist/dist-CGgemr2V.js +0 -1
- package/dist/dist-CPAF050o.mjs +0 -90
- package/dist/dist-CS572Be42.mjs +0 -11
- package/dist/dist-CUvxOuXM.mjs +0 -551
- package/dist/dist-C_iFkwIX.js +0 -1
- package/dist/dist-ClYM7l1t.js +0 -1
- package/dist/dist-CpKLY_uZ.mjs +0 -96
- package/dist/dist-D1qkELLT.js +0 -1
- package/dist/dist-D7-Fky36.js +0 -1
- package/dist/dist-DEpkkABT.js +0 -1
- package/dist/dist-DI1vapnL.mjs +0 -20
- package/dist/dist-DJqkhIXb2.js +0 -1
- package/dist/dist-DKXojpVG.js +0 -1
- package/dist/dist-DYUvPCPC.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DatgTWLz.mjs +0 -202
- package/dist/dist-Dm3IQk5b.mjs +0 -685
- package/dist/dist-DoivLw3t.js +0 -1
- package/dist/dist-Dq-h6VAy.mjs +0 -118
- package/dist/dist-Dt6m-kwU.mjs +0 -221
- package/dist/dist-E8ieJTBC.mjs +0 -190
- package/dist/dist-GazS1kfR.mjs +0 -5
- package/dist/dist-N97cIp0_.js +0 -1
- package/dist/dist-OqDzLHTa.mjs +0 -460
- package/dist/dist-Qm9hFvM1.js +0 -1
- package/dist/dist-UkWa-Arh.mjs +0 -16
- package/dist/dist-UnTrOmPV.js +0 -1
- package/dist/dist-YAADIsyo.js +0 -1
- package/dist/dist-Zs2sjYhL.js +0 -1
- package/dist/dist-hFLuJoMi.js +0 -1
- package/dist/dist-s7ibhASj.mjs +0 -181
- package/dist/dist-vu20fMUK.mjs +0 -93
- package/dist/dropdown-menu-BqAhn64y.mjs +0 -313
- package/dist/dropdown-menu-BtKOr--r.js +0 -1
- package/dist/es2015-DbAsWDbs.js +0 -41
- package/dist/es2015-DbsmTzuc.mjs +0 -571
- package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
- package/dist/floating-ui.react-dom-CyupHsR6.mjs +0 -1062
- package/dist/hover-card-DMsxpR9G.mjs +0 -178
- package/dist/hover-card-DWXusgiI.js +0 -1
- package/dist/input-otp-D49Y9VcH.mjs +0 -409
- package/dist/input-otp-u3obpt-Q.js +0 -20
- package/dist/label-Dacwh21G.js +0 -1
- package/dist/label-DsSICLPc.mjs +0 -28
- package/dist/menubar-BYNeRuzx.js +0 -1
- package/dist/menubar-DZqEj6S1.mjs +0 -407
- package/dist/message-scroller-CS4t7Ypn.mjs +0 -824
- package/dist/message-scroller-DqLu0YI6.js +0 -1
- package/dist/navigation-menu-B36G3O83.js +0 -1
- package/dist/navigation-menu-RO6thDOF.mjs +0 -636
- package/dist/popover-DSBkc70V.mjs +0 -243
- package/dist/popover-DUHbvKB8.js +0 -1
- package/dist/progress-B9z08UXf.js +0 -6
- package/dist/progress-CQ4nQ85t.mjs +0 -92
- package/dist/questionnaire-CVED7G7R.mjs +0 -1159
- package/dist/questionnaire-PWClWvST.js +0 -1
- package/dist/radio-group-Bd3WbH5I.js +0 -1
- package/dist/radio-group-TRiAhMZB.mjs +0 -266
- package/dist/resizable-Cq60hEWB.js +0 -1
- package/dist/resizable-Qc8cVUKd.mjs +0 -2857
- package/dist/scroll-area-D6MiNHnJ.mjs +0 -564
- package/dist/scroll-area-DFUdJeSZ.js +0 -1
- package/dist/select-BFJUmjvX.mjs +0 -830
- package/dist/select-iQFoKU1s.js +0 -1
- package/dist/separator-2kr96SyF.mjs +0 -40
- package/dist/separator-Bo49G2aj.js +0 -1
- package/dist/sidebar-C6O8hLkz.js +0 -1
- package/dist/slider-CagVxozY.js +0 -1
- package/dist/slider-CdTCoQu1.mjs +0 -485
- package/dist/switch-CoeAC1Wk.js +0 -1
- package/dist/switch-zUBdj7jK.mjs +0 -174
- package/dist/tabs-DaE9pEbo.mjs +0 -160
- package/dist/tabs-TMhXe20x.js +0 -1
- package/dist/theme-toggle-DKh8WFLT.js +0 -1
- package/dist/toast-B0S3F09s.js +0 -1
- package/dist/toast-D0Yb-K84.mjs +0 -445
- package/dist/toaster-CX9im8R_.js +0 -1
- package/dist/toggle-B0hXPsi7.js +0 -1
- package/dist/toggle-BAeKd2N0.mjs +0 -59
- package/dist/toggle-group-CEKhUozD.mjs +0 -167
- package/dist/toggle-group-htyug3G7.js +0 -1
- package/dist/tooltip-BZazhXDZ.js +0 -1
- package/dist/tooltip-R_nK_Qh5.mjs +0 -390
package/dist/menubar-BYNeRuzx.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-C_iFkwIX.js"),n=require("./dist-BBvidwzC.js"),r=require("./dist-hFLuJoMi.js"),i=require("./dist-DYUvPCPC.js"),a=require("./dist-Zs2sjYhL.js"),o=require("./dist-DZiOPWLp.js"),s=require("./dist-YAADIsyo.js"),c=require("./dist-C8Pm6LRc.js"),l=require("./dist-UnTrOmPV.js"),u=require("./dist-DEpkkABT.js"),d=require("./dist-BgXIqHHq.js");let f=require("lucide-react"),p=require("react"),m=e.r(p,1);p=e.r(p);let h=require("react/jsx-runtime");var g=Object.defineProperty,_=(e,t)=>g(e,`name`,{value:t,configurable:!0}),v={LTR:`ltr`,RTL:`rtl`},y=`Menubar`,[b,x,S]=a.t(y),[C,ee]=i.t(y,[S,u.r]),w=d.g(),T=u.r(),[E,D]=C(y),te=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,value:i,onValueChange:a,defaultValue:o,loop:c=!0,dir:d,...f}=e,p=l.n(d),g=T(n),[_,v]=s.t({prop:i,onChange:a,defaultProp:o??``,caller:y}),[x,S]=m.useState(null);return(0,h.jsx)(E,{scope:n,value:_,onMenuOpen:m.useCallback(e=>{v(e),S(e)},[v]),onMenuClose:m.useCallback(()=>v(``),[v]),onMenuToggle:m.useCallback(e=>{v(t=>t?``:e),S(e)},[v]),dir:p,loop:c,children:(0,h.jsx)(b.Provider,{scope:n,children:(0,h.jsx)(b.Slot,{scope:n,children:(0,h.jsx)(u.t,{asChild:!0,...g,orientation:`horizontal`,loop:c,dir:p,currentTabStopId:x,onCurrentTabStopIdChange:S,children:(0,h.jsx)(r.t.div,{role:`menubar`,...f,ref:t})})})})})},`Menubar`)),O=`MenubarMenu`,[k,A]=C(O),j=_(e=>{let{__scopeMenubar:t,value:n,...r}=e,i=c.t(),a=n||i||`LEGACY_REACT_AUTO_VALUE`,o=D(O,t),s=w(t),l=m.useRef(null),u=m.useRef(!1),f=o.value===a;return m.useEffect(()=>{f||(u.current=!1)},[f]),(0,h.jsx)(k,{scope:t,value:a,triggerId:c.t(),triggerRef:l,contentId:c.t(),wasKeyboardTriggerOpenRef:u,children:(0,h.jsx)(d.t,{...s,open:f,onOpenChange:e=>{e||o.onMenuClose()},modal:!1,dir:o.dir,...r})})},`MenubarMenu`),M=`MenubarTrigger`,ne=m.forwardRef(_(function(e,t){let{__scopeMenubar:i,disabled:a=!1,...s}=e,c=T(i),l=w(i),f=D(M,i),p=A(M,i),g=m.useRef(null),_=n.a(t,g,p.triggerRef),[v,y]=m.useState(!1),x=f.value===p.value;return(0,h.jsx)(b.ItemSlot,{scope:i,value:p.value,disabled:a,children:(0,h.jsx)(u.n,{asChild:!0,...c,focusable:!a,tabStopId:p.value,children:(0,h.jsx)(d.n,{asChild:!0,...l,children:(0,h.jsx)(r.t.button,{type:`button`,role:`menuitem`,id:p.triggerId,"aria-haspopup":`menu`,"aria-expanded":x,"aria-controls":x?p.contentId:void 0,"data-highlighted":v?``:void 0,"data-state":x?`open`:`closed`,"data-disabled":a?``:void 0,disabled:a,...s,ref:_,onPointerDown:o.t(e.onPointerDown,e=>{!a&&e.button===0&&e.ctrlKey===!1&&(f.onMenuOpen(p.value),x||e.preventDefault())}),onPointerEnter:o.t(e.onPointerEnter,()=>{f.value&&!x&&(f.onMenuOpen(p.value),g.current?.focus())}),onKeyDown:o.t(e.onKeyDown,e=>{a||([`Enter`,` `].includes(e.key)&&f.onMenuToggle(p.value),e.key===`ArrowDown`&&f.onMenuOpen(p.value),[`Enter`,` `,`ArrowDown`].includes(e.key)&&(p.wasKeyboardTriggerOpenRef.current=!0,e.preventDefault()))}),onFocus:o.t(e.onFocus,()=>y(!0)),onBlur:o.t(e.onBlur,()=>y(!1))})})})})},`MenubarTrigger`)),N=_(e=>{let{__scopeMenubar:t,...n}=e,r=w(t);return(0,h.jsx)(d.l,{...r,...n})},`MenubarPortal`),P=`MenubarContent`,F=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,align:r=`start`,...i}=e,a=w(n),s=D(P,n),c=A(P,n),l=x(n),u=m.useRef(!1);return(0,h.jsx)(d.i,{id:c.contentId,"aria-labelledby":c.triggerId,"data-radix-menubar-content":``,...a,...i,ref:t,align:r,onCloseAutoFocus:o.t(e.onCloseAutoFocus,e=>{!s.value&&!u.current&&c.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onFocusOutside:o.t(e.onFocusOutside,e=>{let t=e.target;l().some(e=>e.ref.current?.contains(t))&&e.preventDefault()}),onInteractOutside:o.t(e.onInteractOutside,()=>{u.current=!0}),onEntryFocus:e=>{c.wasKeyboardTriggerOpenRef.current||e.preventDefault()},onKeyDown:o.t(e.onKeyDown,e=>{if([`ArrowRight`,`ArrowLeft`].includes(e.key)){let t=e.target,n=t.hasAttribute(`data-radix-menubar-subtrigger`),r=t.closest(`[data-radix-menubar-content]`)!==e.currentTarget,i=(s.dir===v.RTL?`ArrowRight`:`ArrowLeft`)===e.key;if(!i&&n||r&&i)return;let a=l().filter(e=>!e.disabled).map(e=>e.value);i&&a.reverse();let o=a.indexOf(c.value);a=s.loop?J(a,o+1):a.slice(o+1);let[u]=a;u&&s.onMenuOpen(u)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-menubar-content-available-width":`var(--radix-popper-available-width)`,"--radix-menubar-content-available-height":`var(--radix-popper-available-height)`,"--radix-menubar-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-menubar-trigger-height":`var(--radix-popper-anchor-height)`}})},`MenubarContent`)),I=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,...r}=e,i=w(n);return(0,h.jsx)(d.a,{...i,...r,ref:t})},`MenubarGroup`)),L=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,...r}=e,i=w(n);return(0,h.jsx)(d.c,{...i,...r,ref:t})},`MenubarLabel`)),R=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,...r}=e,i=w(n);return(0,h.jsx)(d.o,{...i,...r,ref:t})},`MenubarItem`)),z=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,...r}=e,i=w(n);return(0,h.jsx)(d.r,{...i,...r,ref:t})},`MenubarCheckboxItem`)),B=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,...r}=e,i=w(n);return(0,h.jsx)(d.u,{...i,...r,ref:t})},`MenubarRadioGroup`)),V=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,...r}=e,i=w(n);return(0,h.jsx)(d.d,{...i,...r,ref:t})},`MenubarRadioItem`)),H=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,...r}=e,i=w(n);return(0,h.jsx)(d.s,{...i,...r,ref:t})},`MenubarItemIndicator`)),U=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,...r}=e,i=w(n);return(0,h.jsx)(d.f,{...i,...r,ref:t})},`MenubarSeparator`)),W=`MenubarSub`,G=_(e=>{let{__scopeMenubar:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=w(t),[c,l]=s.t({prop:r,defaultProp:a??!1,onChange:i,caller:W});return(0,h.jsx)(d.p,{...o,open:c,onOpenChange:l,children:n})},`MenubarSub`),K=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,...r}=e,i=w(n);return(0,h.jsx)(d.h,{"data-radix-menubar-subtrigger":``,...i,...r,ref:t})},`MenubarSubTrigger`)),q=m.forwardRef(_(function(e,t){let{__scopeMenubar:n,...r}=e,i=w(n);return(0,h.jsx)(d.m,{...i,"data-radix-menubar-content":``,...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-menubar-content-available-width":`var(--radix-popper-available-width)`,"--radix-menubar-content-available-height":`var(--radix-popper-available-height)`,"--radix-menubar-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-menubar-trigger-height":`var(--radix-popper-anchor-height)`}})},`MenubarSubContent`));function J(e,t){return e.map((n,r)=>e[(t+r)%e.length])}_(J,`wrapArray`);function Y({className:e,...n}){return(0,h.jsx)(te,{"data-slot":`menubar`,className:t.t(`flex h-8 items-center gap-0.5 rounded-lg border p-[3px]`,e),...n})}function X({...e}){return(0,h.jsx)(j,{"data-slot":`menubar-menu`,...e})}function Z({...e}){return(0,h.jsx)(I,{"data-slot":`menubar-group`,...e})}function Q({...e}){return(0,h.jsx)(N,{"data-slot":`menubar-portal`,...e})}function re({...e}){return(0,h.jsx)(B,{"data-slot":`menubar-radio-group`,...e})}function ie({className:e,...n}){return(0,h.jsx)(ne,{"data-slot":`menubar-trigger`,className:t.t(`hover:bg-muted aria-expanded:bg-muted flex items-center rounded-sm px-1.5 py-[2px] text-sm font-medium outline-hidden select-none`,e),...n})}function ae({className:e,align:n=`start`,alignOffset:r=-4,sideOffset:i=8,...a}){return(0,h.jsx)(Q,{children:(0,h.jsx)(F,{"data-slot":`menubar-content`,align:n,alignOffset:r,sideOffset:i,className:t.t(`bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 z-50 min-w-36 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-md ring-1 duration-100`,e),...a})})}function oe({className:e,inset:n,variant:r=`default`,...i}){return(0,h.jsx)(R,{"data-slot":`menubar-item`,"data-inset":n,"data-variant":r,className:t.t(`group/menubar-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:*:[svg]:text-destructive! relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...i})}function $({className:e,children:n,checked:r,inset:i,...a}){return(0,h.jsxs)(z,{"data-slot":`menubar-checkbox-item`,"data-inset":i,className:t.t(`focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-7 pe-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),checked:r,...a,children:[(0,h.jsx)(`span`,{className:`pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4`,children:(0,h.jsx)(H,{children:(0,h.jsx)(f.CheckIcon,{})})}),n]})}function se({className:e,children:n,inset:r,...i}){return(0,h.jsxs)(V,{"data-slot":`menubar-radio-item`,"data-inset":r,className:t.t(`focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-7 pe-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...i,children:[(0,h.jsx)(`span`,{className:`pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4`,children:(0,h.jsx)(H,{children:(0,h.jsx)(f.CheckIcon,{})})}),n]})}function ce({className:e,inset:n,...r}){return(0,h.jsx)(L,{"data-slot":`menubar-label`,"data-inset":n,className:t.t(`px-1.5 py-1 text-sm font-medium data-inset:ps-7`,e),...r})}function le({className:e,...n}){return(0,h.jsx)(U,{"data-slot":`menubar-separator`,className:t.t(`bg-border -mx-1 my-1 h-px`,e),...n})}function ue({className:e,...n}){return(0,h.jsx)(`span`,{"data-slot":`menubar-shortcut`,className:t.t(`text-muted-foreground group-focus/menubar-item:text-accent-foreground ms-auto text-xs tracking-widest`,e),...n})}function de({...e}){return(0,h.jsx)(G,{"data-slot":`menubar-sub`,...e})}function fe({className:e,inset:n,children:r,...i}){return(0,h.jsxs)(K,{"data-slot":`menubar-sub-trigger`,"data-inset":n,className:t.t(`focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4`,e),...i,children:[r,(0,h.jsx)(f.ChevronRightIcon,{className:`ms-auto size-4 rtl:rotate-180`})]})}function pe({className:e,...n}){return(0,h.jsx)(q,{"data-slot":`menubar-sub-content`,className:t.t(`bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-lg ring-1 duration-100`,e),...n})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return se}});
|
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
2
|
-
import { a as t } from "./dist-Dq-h6VAy.mjs";
|
|
3
|
-
import { t as n } from "./dist-BEbV0Hal.mjs";
|
|
4
|
-
import { t as r } from "./dist-CPAF050o.mjs";
|
|
5
|
-
import { t as i } from "./dist-OqDzLHTa.mjs";
|
|
6
|
-
import { t as a } from "./dist-BB78QQyQ.mjs";
|
|
7
|
-
import { t as o } from "./dist-Bvfb4y_L.mjs";
|
|
8
|
-
import { t as s } from "./dist-UkWa-Arh.mjs";
|
|
9
|
-
import { n as c } from "./dist-BbI6NHqR.mjs";
|
|
10
|
-
import { n as l, r as u, t as d } from "./dist-BexAB6yo.mjs";
|
|
11
|
-
import { a as f, c as p, d as m, f as h, g, h as _, i as v, l as y, m as b, n as x, o as S, p as ee, r as te, s as C, t as w, u as T } from "./dist-CUvxOuXM.mjs";
|
|
12
|
-
import { CheckIcon as E, ChevronRightIcon as ne } from "lucide-react";
|
|
13
|
-
import * as D from "react";
|
|
14
|
-
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
15
|
-
//#region ../../node_modules/.bun/@radix-ui+react-menubar@1.2.1+b146eb580f4286be/node_modules/@radix-ui/react-menubar/dist/index.mjs
|
|
16
|
-
var A = Object.defineProperty, j = (e, t) => A(e, "name", {
|
|
17
|
-
value: t,
|
|
18
|
-
configurable: !0
|
|
19
|
-
}), re = {
|
|
20
|
-
LTR: "ltr",
|
|
21
|
-
RTL: "rtl"
|
|
22
|
-
}, M = "Menubar", [N, ie, P] = i(M), [F, ae] = r(M, [P, u]), I = g(), L = u(), [R, z] = F(M), B = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
23
|
-
let { __scopeMenubar: r, value: i, onValueChange: a, defaultValue: s, loop: l = !0, dir: u, ...f } = e, p = c(u), m = L(r), [h, g] = o({
|
|
24
|
-
prop: i,
|
|
25
|
-
onChange: a,
|
|
26
|
-
defaultProp: s ?? "",
|
|
27
|
-
caller: M
|
|
28
|
-
}), [_, v] = D.useState(null);
|
|
29
|
-
return /* @__PURE__ */ O(R, {
|
|
30
|
-
scope: r,
|
|
31
|
-
value: h,
|
|
32
|
-
onMenuOpen: D.useCallback((e) => {
|
|
33
|
-
g(e), v(e);
|
|
34
|
-
}, [g]),
|
|
35
|
-
onMenuClose: D.useCallback(() => g(""), [g]),
|
|
36
|
-
onMenuToggle: D.useCallback((e) => {
|
|
37
|
-
g((t) => t ? "" : e), v(e);
|
|
38
|
-
}, [g]),
|
|
39
|
-
dir: p,
|
|
40
|
-
loop: l,
|
|
41
|
-
children: /* @__PURE__ */ O(N.Provider, {
|
|
42
|
-
scope: r,
|
|
43
|
-
children: /* @__PURE__ */ O(N.Slot, {
|
|
44
|
-
scope: r,
|
|
45
|
-
children: /* @__PURE__ */ O(d, {
|
|
46
|
-
asChild: !0,
|
|
47
|
-
...m,
|
|
48
|
-
orientation: "horizontal",
|
|
49
|
-
loop: l,
|
|
50
|
-
dir: p,
|
|
51
|
-
currentTabStopId: _,
|
|
52
|
-
onCurrentTabStopIdChange: v,
|
|
53
|
-
children: /* @__PURE__ */ O(n.div, {
|
|
54
|
-
role: "menubar",
|
|
55
|
-
...f,
|
|
56
|
-
ref: t
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
})
|
|
60
|
-
})
|
|
61
|
-
});
|
|
62
|
-
}, "Menubar")), V = "MenubarMenu", [H, U] = F(V), W = /* @__PURE__ */ j((e) => {
|
|
63
|
-
let { __scopeMenubar: t, value: n, ...r } = e, i = s(), a = n || i || "LEGACY_REACT_AUTO_VALUE", o = z(V, t), c = I(t), l = D.useRef(null), u = D.useRef(!1), d = o.value === a;
|
|
64
|
-
return D.useEffect(() => {
|
|
65
|
-
d || (u.current = !1);
|
|
66
|
-
}, [d]), /* @__PURE__ */ O(H, {
|
|
67
|
-
scope: t,
|
|
68
|
-
value: a,
|
|
69
|
-
triggerId: s(),
|
|
70
|
-
triggerRef: l,
|
|
71
|
-
contentId: s(),
|
|
72
|
-
wasKeyboardTriggerOpenRef: u,
|
|
73
|
-
children: /* @__PURE__ */ O(w, {
|
|
74
|
-
...c,
|
|
75
|
-
open: d,
|
|
76
|
-
onOpenChange: (e) => {
|
|
77
|
-
e || o.onMenuClose();
|
|
78
|
-
},
|
|
79
|
-
modal: !1,
|
|
80
|
-
dir: o.dir,
|
|
81
|
-
...r
|
|
82
|
-
})
|
|
83
|
-
});
|
|
84
|
-
}, "MenubarMenu"), G = "MenubarTrigger", K = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, r) {
|
|
85
|
-
let { __scopeMenubar: i, disabled: o = !1, ...s } = e, c = L(i), u = I(i), d = z(G, i), f = U(G, i), p = D.useRef(null), m = t(r, p, f.triggerRef), [h, g] = D.useState(!1), _ = d.value === f.value;
|
|
86
|
-
return /* @__PURE__ */ O(N.ItemSlot, {
|
|
87
|
-
scope: i,
|
|
88
|
-
value: f.value,
|
|
89
|
-
disabled: o,
|
|
90
|
-
children: /* @__PURE__ */ O(l, {
|
|
91
|
-
asChild: !0,
|
|
92
|
-
...c,
|
|
93
|
-
focusable: !o,
|
|
94
|
-
tabStopId: f.value,
|
|
95
|
-
children: /* @__PURE__ */ O(x, {
|
|
96
|
-
asChild: !0,
|
|
97
|
-
...u,
|
|
98
|
-
children: /* @__PURE__ */ O(n.button, {
|
|
99
|
-
type: "button",
|
|
100
|
-
role: "menuitem",
|
|
101
|
-
id: f.triggerId,
|
|
102
|
-
"aria-haspopup": "menu",
|
|
103
|
-
"aria-expanded": _,
|
|
104
|
-
"aria-controls": _ ? f.contentId : void 0,
|
|
105
|
-
"data-highlighted": h ? "" : void 0,
|
|
106
|
-
"data-state": _ ? "open" : "closed",
|
|
107
|
-
"data-disabled": o ? "" : void 0,
|
|
108
|
-
disabled: o,
|
|
109
|
-
...s,
|
|
110
|
-
ref: m,
|
|
111
|
-
onPointerDown: a(e.onPointerDown, (e) => {
|
|
112
|
-
!o && e.button === 0 && e.ctrlKey === !1 && (d.onMenuOpen(f.value), _ || e.preventDefault());
|
|
113
|
-
}),
|
|
114
|
-
onPointerEnter: a(e.onPointerEnter, () => {
|
|
115
|
-
d.value && !_ && (d.onMenuOpen(f.value), p.current?.focus());
|
|
116
|
-
}),
|
|
117
|
-
onKeyDown: a(e.onKeyDown, (e) => {
|
|
118
|
-
o || (["Enter", " "].includes(e.key) && d.onMenuToggle(f.value), e.key === "ArrowDown" && d.onMenuOpen(f.value), [
|
|
119
|
-
"Enter",
|
|
120
|
-
" ",
|
|
121
|
-
"ArrowDown"
|
|
122
|
-
].includes(e.key) && (f.wasKeyboardTriggerOpenRef.current = !0, e.preventDefault()));
|
|
123
|
-
}),
|
|
124
|
-
onFocus: a(e.onFocus, () => g(!0)),
|
|
125
|
-
onBlur: a(e.onBlur, () => g(!1))
|
|
126
|
-
})
|
|
127
|
-
})
|
|
128
|
-
})
|
|
129
|
-
});
|
|
130
|
-
}, "MenubarTrigger")), q = /* @__PURE__ */ j((e) => {
|
|
131
|
-
let { __scopeMenubar: t, ...n } = e;
|
|
132
|
-
return /* @__PURE__ */ O(y, {
|
|
133
|
-
...I(t),
|
|
134
|
-
...n
|
|
135
|
-
});
|
|
136
|
-
}, "MenubarPortal"), J = "MenubarContent", Y = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
137
|
-
let { __scopeMenubar: n, align: r = "start", ...i } = e, o = I(n), s = z(J, n), c = U(J, n), l = ie(n), u = D.useRef(!1);
|
|
138
|
-
return /* @__PURE__ */ O(v, {
|
|
139
|
-
id: c.contentId,
|
|
140
|
-
"aria-labelledby": c.triggerId,
|
|
141
|
-
"data-radix-menubar-content": "",
|
|
142
|
-
...o,
|
|
143
|
-
...i,
|
|
144
|
-
ref: t,
|
|
145
|
-
align: r,
|
|
146
|
-
onCloseAutoFocus: a(e.onCloseAutoFocus, (e) => {
|
|
147
|
-
!s.value && !u.current && c.triggerRef.current?.focus(), u.current = !1, e.preventDefault();
|
|
148
|
-
}),
|
|
149
|
-
onFocusOutside: a(e.onFocusOutside, (e) => {
|
|
150
|
-
let t = e.target;
|
|
151
|
-
l().some((e) => e.ref.current?.contains(t)) && e.preventDefault();
|
|
152
|
-
}),
|
|
153
|
-
onInteractOutside: a(e.onInteractOutside, () => {
|
|
154
|
-
u.current = !0;
|
|
155
|
-
}),
|
|
156
|
-
onEntryFocus: (e) => {
|
|
157
|
-
c.wasKeyboardTriggerOpenRef.current || e.preventDefault();
|
|
158
|
-
},
|
|
159
|
-
onKeyDown: a(e.onKeyDown, (e) => {
|
|
160
|
-
if (["ArrowRight", "ArrowLeft"].includes(e.key)) {
|
|
161
|
-
let t = e.target, n = t.hasAttribute("data-radix-menubar-subtrigger"), r = t.closest("[data-radix-menubar-content]") !== e.currentTarget, i = (s.dir === re.RTL ? "ArrowRight" : "ArrowLeft") === e.key;
|
|
162
|
-
if (!i && n || r && i) return;
|
|
163
|
-
let a = l().filter((e) => !e.disabled).map((e) => e.value);
|
|
164
|
-
i && a.reverse();
|
|
165
|
-
let o = a.indexOf(c.value);
|
|
166
|
-
a = s.loop ? Z(a, o + 1) : a.slice(o + 1);
|
|
167
|
-
let [u] = a;
|
|
168
|
-
u && s.onMenuOpen(u);
|
|
169
|
-
}
|
|
170
|
-
}, { checkForDefaultPrevented: !1 }),
|
|
171
|
-
style: {
|
|
172
|
-
...e.style,
|
|
173
|
-
"--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
174
|
-
"--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
|
|
175
|
-
"--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
|
|
176
|
-
"--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
|
|
177
|
-
"--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}, "MenubarContent")), oe = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
181
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
182
|
-
return /* @__PURE__ */ O(f, {
|
|
183
|
-
...I(n),
|
|
184
|
-
...r,
|
|
185
|
-
ref: t
|
|
186
|
-
});
|
|
187
|
-
}, "MenubarGroup")), se = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
188
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
189
|
-
return /* @__PURE__ */ O(p, {
|
|
190
|
-
...I(n),
|
|
191
|
-
...r,
|
|
192
|
-
ref: t
|
|
193
|
-
});
|
|
194
|
-
}, "MenubarLabel")), ce = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
195
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
196
|
-
return /* @__PURE__ */ O(S, {
|
|
197
|
-
...I(n),
|
|
198
|
-
...r,
|
|
199
|
-
ref: t
|
|
200
|
-
});
|
|
201
|
-
}, "MenubarItem")), le = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
202
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
203
|
-
return /* @__PURE__ */ O(te, {
|
|
204
|
-
...I(n),
|
|
205
|
-
...r,
|
|
206
|
-
ref: t
|
|
207
|
-
});
|
|
208
|
-
}, "MenubarCheckboxItem")), ue = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
209
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
210
|
-
return /* @__PURE__ */ O(T, {
|
|
211
|
-
...I(n),
|
|
212
|
-
...r,
|
|
213
|
-
ref: t
|
|
214
|
-
});
|
|
215
|
-
}, "MenubarRadioGroup")), de = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
216
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
217
|
-
return /* @__PURE__ */ O(m, {
|
|
218
|
-
...I(n),
|
|
219
|
-
...r,
|
|
220
|
-
ref: t
|
|
221
|
-
});
|
|
222
|
-
}, "MenubarRadioItem")), X = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
223
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
224
|
-
return /* @__PURE__ */ O(C, {
|
|
225
|
-
...I(n),
|
|
226
|
-
...r,
|
|
227
|
-
ref: t
|
|
228
|
-
});
|
|
229
|
-
}, "MenubarItemIndicator")), fe = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
230
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
231
|
-
return /* @__PURE__ */ O(h, {
|
|
232
|
-
...I(n),
|
|
233
|
-
...r,
|
|
234
|
-
ref: t
|
|
235
|
-
});
|
|
236
|
-
}, "MenubarSeparator")), pe = "MenubarSub", me = /* @__PURE__ */ j((e) => {
|
|
237
|
-
let { __scopeMenubar: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, s = I(t), [c, l] = o({
|
|
238
|
-
prop: r,
|
|
239
|
-
defaultProp: a ?? !1,
|
|
240
|
-
onChange: i,
|
|
241
|
-
caller: pe
|
|
242
|
-
});
|
|
243
|
-
return /* @__PURE__ */ O(ee, {
|
|
244
|
-
...s,
|
|
245
|
-
open: c,
|
|
246
|
-
onOpenChange: l,
|
|
247
|
-
children: n
|
|
248
|
-
});
|
|
249
|
-
}, "MenubarSub"), he = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
250
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
251
|
-
return /* @__PURE__ */ O(_, {
|
|
252
|
-
"data-radix-menubar-subtrigger": "",
|
|
253
|
-
...I(n),
|
|
254
|
-
...r,
|
|
255
|
-
ref: t
|
|
256
|
-
});
|
|
257
|
-
}, "MenubarSubTrigger")), ge = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
258
|
-
let { __scopeMenubar: n, ...r } = e;
|
|
259
|
-
return /* @__PURE__ */ O(b, {
|
|
260
|
-
...I(n),
|
|
261
|
-
"data-radix-menubar-content": "",
|
|
262
|
-
...r,
|
|
263
|
-
ref: t,
|
|
264
|
-
style: {
|
|
265
|
-
...e.style,
|
|
266
|
-
"--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
267
|
-
"--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
|
|
268
|
-
"--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
|
|
269
|
-
"--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
|
|
270
|
-
"--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
}, "MenubarSubContent"));
|
|
274
|
-
function Z(e, t) {
|
|
275
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
276
|
-
}
|
|
277
|
-
j(Z, "wrapArray");
|
|
278
|
-
//#endregion
|
|
279
|
-
//#region src/menubar.tsx
|
|
280
|
-
function _e({ className: t, ...n }) {
|
|
281
|
-
return /* @__PURE__ */ O(B, {
|
|
282
|
-
"data-slot": "menubar",
|
|
283
|
-
className: e("flex h-8 items-center gap-0.5 rounded-lg border p-[3px]", t),
|
|
284
|
-
...n
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
function ve({ ...e }) {
|
|
288
|
-
return /* @__PURE__ */ O(W, {
|
|
289
|
-
"data-slot": "menubar-menu",
|
|
290
|
-
...e
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
function ye({ ...e }) {
|
|
294
|
-
return /* @__PURE__ */ O(oe, {
|
|
295
|
-
"data-slot": "menubar-group",
|
|
296
|
-
...e
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
function Q({ ...e }) {
|
|
300
|
-
return /* @__PURE__ */ O(q, {
|
|
301
|
-
"data-slot": "menubar-portal",
|
|
302
|
-
...e
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
function be({ ...e }) {
|
|
306
|
-
return /* @__PURE__ */ O(ue, {
|
|
307
|
-
"data-slot": "menubar-radio-group",
|
|
308
|
-
...e
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
function xe({ className: t, ...n }) {
|
|
312
|
-
return /* @__PURE__ */ O(K, {
|
|
313
|
-
"data-slot": "menubar-trigger",
|
|
314
|
-
className: e("hover:bg-muted aria-expanded:bg-muted flex items-center rounded-sm px-1.5 py-[2px] text-sm font-medium outline-hidden select-none", t),
|
|
315
|
-
...n
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
function Se({ className: t, align: n = "start", alignOffset: r = -4, sideOffset: i = 8, ...a }) {
|
|
319
|
-
return /* @__PURE__ */ O(Q, { children: /* @__PURE__ */ O(Y, {
|
|
320
|
-
"data-slot": "menubar-content",
|
|
321
|
-
align: n,
|
|
322
|
-
alignOffset: r,
|
|
323
|
-
sideOffset: i,
|
|
324
|
-
className: e("bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 z-50 min-w-36 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-md ring-1 duration-100", t),
|
|
325
|
-
...a
|
|
326
|
-
}) });
|
|
327
|
-
}
|
|
328
|
-
function Ce({ className: t, inset: n, variant: r = "default", ...i }) {
|
|
329
|
-
return /* @__PURE__ */ O(ce, {
|
|
330
|
-
"data-slot": "menubar-item",
|
|
331
|
-
"data-inset": n,
|
|
332
|
-
"data-variant": r,
|
|
333
|
-
className: e("group/menubar-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:*:[svg]:text-destructive! relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
334
|
-
...i
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
function $({ className: t, children: n, checked: r, inset: i, ...a }) {
|
|
338
|
-
return /* @__PURE__ */ k(le, {
|
|
339
|
-
"data-slot": "menubar-checkbox-item",
|
|
340
|
-
"data-inset": i,
|
|
341
|
-
className: e("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-7 pe-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0", t),
|
|
342
|
-
checked: r,
|
|
343
|
-
...a,
|
|
344
|
-
children: [/* @__PURE__ */ O("span", {
|
|
345
|
-
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
346
|
-
children: /* @__PURE__ */ O(X, { children: /* @__PURE__ */ O(E, {}) })
|
|
347
|
-
}), n]
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
function we({ className: t, children: n, inset: r, ...i }) {
|
|
351
|
-
return /* @__PURE__ */ k(de, {
|
|
352
|
-
"data-slot": "menubar-radio-item",
|
|
353
|
-
"data-inset": r,
|
|
354
|
-
className: e("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-7 pe-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
355
|
-
...i,
|
|
356
|
-
children: [/* @__PURE__ */ O("span", {
|
|
357
|
-
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
358
|
-
children: /* @__PURE__ */ O(X, { children: /* @__PURE__ */ O(E, {}) })
|
|
359
|
-
}), n]
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
function Te({ className: t, inset: n, ...r }) {
|
|
363
|
-
return /* @__PURE__ */ O(se, {
|
|
364
|
-
"data-slot": "menubar-label",
|
|
365
|
-
"data-inset": n,
|
|
366
|
-
className: e("px-1.5 py-1 text-sm font-medium data-inset:ps-7", t),
|
|
367
|
-
...r
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
function Ee({ className: t, ...n }) {
|
|
371
|
-
return /* @__PURE__ */ O(fe, {
|
|
372
|
-
"data-slot": "menubar-separator",
|
|
373
|
-
className: e("bg-border -mx-1 my-1 h-px", t),
|
|
374
|
-
...n
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
function De({ className: t, ...n }) {
|
|
378
|
-
return /* @__PURE__ */ O("span", {
|
|
379
|
-
"data-slot": "menubar-shortcut",
|
|
380
|
-
className: e("text-muted-foreground group-focus/menubar-item:text-accent-foreground ms-auto text-xs tracking-widest", t),
|
|
381
|
-
...n
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
function Oe({ ...e }) {
|
|
385
|
-
return /* @__PURE__ */ O(me, {
|
|
386
|
-
"data-slot": "menubar-sub",
|
|
387
|
-
...e
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
function ke({ className: t, inset: n, children: r, ...i }) {
|
|
391
|
-
return /* @__PURE__ */ k(he, {
|
|
392
|
-
"data-slot": "menubar-sub-trigger",
|
|
393
|
-
"data-inset": n,
|
|
394
|
-
className: e("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-none select-none data-inset:ps-7 [&_svg:not([class*='size-'])]:size-4", t),
|
|
395
|
-
...i,
|
|
396
|
-
children: [r, /* @__PURE__ */ O(ne, { className: "ms-auto size-4 rtl:rotate-180" })]
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
function Ae({ className: t, ...n }) {
|
|
400
|
-
return /* @__PURE__ */ O(ge, {
|
|
401
|
-
"data-slot": "menubar-sub-content",
|
|
402
|
-
className: e("bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-lg ring-1 duration-100", t),
|
|
403
|
-
...n
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
//#endregion
|
|
407
|
-
export { Ce as a, Q as c, Ee as d, De as f, xe as g, ke as h, ye as i, be as l, Ae as m, $ as n, Te as o, Oe as p, Se as r, ve as s, _e as t, we as u };
|