@gv-tech/ui-web 2.29.2 → 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 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -1
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +25 -24
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -4
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +12 -11
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +4 -3
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +12 -11
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +4 -3
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -1
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -1
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -1
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +12 -12
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -1
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +40 -40
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +7 -7
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +1 -1
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +36 -36
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +36 -36
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +36 -36
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +26 -26
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -1
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +28 -27
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -1
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +4 -3
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -1
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -1
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +1 -1
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +1 -1
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +14 -14
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -1
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -1
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +38 -38
- package/dist/{sidebar-C2ax_A0G.mjs → sidebar-DrU3nKaL.mjs} +138 -134
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -1
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +1 -1
- package/dist/support-fab.cjs +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -1
- package/dist/text.cjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/{theme-toggle-BSMwXb8o.mjs → theme-toggle-9KtAIRxy.mjs} +6 -6
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -1
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -1
- package/dist/{toaster-D2BV6jez.mjs → toaster-8RrHPtlc.mjs} +8 -8
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -1
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -1
- package/package.json +1 -1
- package/dist/accordion-Bd0-CZQn.js +0 -1
- package/dist/accordion-Cf6DNbLH.mjs +0 -244
- package/dist/alert-dialog-BxFH0Lwn.mjs +0 -180
- package/dist/alert-dialog-C6vNmGBL.js +0 -1
- package/dist/aspect-ratio-CdQevcDV.mjs +0 -38
- package/dist/aspect-ratio-Z4Nkc56X.js +0 -1
- package/dist/avatar-B5PWwGhY.mjs +0 -136
- package/dist/avatar-CFhYRM52.js +0 -1
- package/dist/calendar-D5qgt2o2.js +0 -1
- package/dist/calendar-DIqXNjOR.mjs +0 -3029
- package/dist/carousel-D-xEqRCX.js +0 -1
- package/dist/carousel-DPjWmM_A.mjs +0 -1169
- package/dist/checkbox-DEPm1BBc.mjs +0 -184
- package/dist/checkbox-DI9Hn_e_.js +0 -1
- package/dist/chunk-HBS6WEDP-D2-yWzIN.js +0 -1
- package/dist/chunk-HBS6WEDP-DD8ZmxRM.mjs +0 -62
- package/dist/combobox-C4y8AbZX.mjs +0 -5644
- package/dist/combobox-boXp-mix.js +0 -3
- package/dist/command-BnW6UIVk.js +0 -1
- package/dist/command-Cbsp7PBx.mjs +0 -542
- package/dist/context-menu-CwsdFpx1.js +0 -1
- package/dist/context-menu-FNgV55ZV.mjs +0 -315
- package/dist/dist-7YyzJonC.mjs +0 -39
- package/dist/dist-AlmToDtO.mjs +0 -17
- package/dist/dist-B76UOZbx.mjs +0 -40
- package/dist/dist-B7Ph9-T6.mjs +0 -44
- package/dist/dist-B7jnFMko.js +0 -1
- package/dist/dist-BOiFyvyS.mjs +0 -10
- package/dist/dist-BQkDLAY7.js +0 -1
- package/dist/dist-Bal96K8t.js +0 -1
- package/dist/dist-Blgp9lfa.js +0 -1
- package/dist/dist-BnlI08Je.mjs +0 -96
- package/dist/dist-Bu-uFV1C.mjs +0 -191
- package/dist/dist-C2BHd5i1.mjs +0 -460
- package/dist/dist-C516Vwxy.mjs +0 -116
- package/dist/dist-CBlqVBTk.js +0 -1
- package/dist/dist-CDcZ8WMF.js +0 -1
- package/dist/dist-CDksSmTD.mjs +0 -189
- package/dist/dist-CF-qVmmV.js +0 -1
- package/dist/dist-CIgGRTmJ.js +0 -1
- package/dist/dist-CJqVmdrU.js +0 -1
- package/dist/dist-COqM3IM6.mjs +0 -89
- package/dist/dist-CbWpCWog.mjs +0 -180
- package/dist/dist-CcGLWbPa.mjs +0 -19
- package/dist/dist-Cn4F8XlY.mjs +0 -220
- package/dist/dist-CoTs6T03.js +0 -1
- package/dist/dist-Co_xSt6d.js +0 -1
- package/dist/dist-Cu0GG-3j.mjs +0 -15
- package/dist/dist-DJqkhIXb.js +0 -1
- package/dist/dist-DKI-XYwI.mjs +0 -98
- package/dist/dist-DQeXXRYL.mjs +0 -201
- package/dist/dist-DW2ltK5-.js +0 -1
- package/dist/dist-DWcKY_sJ.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DdAeWIwf.js +0 -1
- package/dist/dist-DhubV_gU.mjs +0 -4
- package/dist/dist-DmY7elIQ.js +0 -1
- package/dist/dist-DoWtzxYc.mjs +0 -684
- package/dist/dist-DuQlxGyN.js +0 -1
- package/dist/dist-KFF7QKuL.js +0 -1
- package/dist/dist-RXrZgzkO.js +0 -1
- package/dist/dist-R_G5UQRm.js +0 -1
- package/dist/dist-dwRwxUPt.mjs +0 -22
- package/dist/dist-fzmUl3YX.mjs +0 -553
- package/dist/dist-hBsne-A2.mjs +0 -92
- package/dist/dist-ljiGYyay.mjs +0 -29
- package/dist/dist-pqMcQ1Nk.js +0 -1
- package/dist/dist-zmnQp5Xf.js +0 -1
- package/dist/dropdown-menu-ChuqZeix.js +0 -1
- package/dist/dropdown-menu-DU7KNoXP.mjs +0 -311
- package/dist/es2015-BooeZGhO.mjs +0 -554
- package/dist/es2015-Dggv0vx3.js +0 -41
- package/dist/floating-ui.react-dom-2hihjuTL.mjs +0 -1057
- package/dist/floating-ui.react-dom-BtFIezY4.js +0 -1
- package/dist/hover-card-BeqCs_2R.js +0 -1
- package/dist/hover-card-w8PmCyw2.mjs +0 -176
- package/dist/input-otp-Bn_Uy1mR.mjs +0 -398
- package/dist/input-otp-CTRB_0Xp.js +0 -20
- package/dist/label-Da0kELfR.mjs +0 -26
- package/dist/label-JMa1tFfC.js +0 -1
- package/dist/menubar-B7sRxpE4.mjs +0 -405
- package/dist/menubar-Bd-QKMcw.js +0 -1
- package/dist/message-scroller-B8AU0v3Y.mjs +0 -805
- package/dist/message-scroller-BJb4Mh_I.js +0 -1
- package/dist/navigation-menu-B-RwfscB.mjs +0 -638
- package/dist/navigation-menu-kPwxYZCR.js +0 -1
- package/dist/popover-Cq5cTNtC.js +0 -1
- package/dist/popover-T6Ra737i.mjs +0 -241
- package/dist/progress-e9YzxvRo.mjs +0 -90
- package/dist/progress-iUSEI7J9.js +0 -6
- package/dist/questionnaire-BLCvUX1C.mjs +0 -1137
- package/dist/questionnaire-CcymIPae.js +0 -1
- package/dist/radio-group-BKpiDcIb.mjs +0 -264
- package/dist/radio-group-DPEzCmxe.js +0 -1
- package/dist/resizable-ByF0NmN9.mjs +0 -2153
- package/dist/resizable-oL3v42zT.js +0 -1
- package/dist/rolldown-runtime-D7yIeQp2.mjs +0 -13
- package/dist/rolldown-runtime-DbbDpzbe.js +0 -1
- package/dist/scroll-area-BzNeOQ6C.mjs +0 -568
- package/dist/scroll-area-s4_ZJK59.js +0 -1
- package/dist/select-B_nRxX2Y.mjs +0 -831
- package/dist/select-j5_dph9S.js +0 -1
- package/dist/separator-Bn-3XUSJ.js +0 -1
- package/dist/separator-CCcMNS78.mjs +0 -38
- package/dist/sidebar-Cnem2n5A.js +0 -1
- package/dist/slider-B2PUTc7W.mjs +0 -484
- package/dist/slider-wZuXwuib.js +0 -1
- package/dist/switch-CD675xU7.js +0 -1
- package/dist/switch-ikzIzrme.mjs +0 -172
- package/dist/tabs-DCm5zOYB.mjs +0 -158
- package/dist/tabs-fcahDQDp.js +0 -1
- package/dist/theme-toggle-BGTJsIA-.js +0 -1
- package/dist/toast-C31v9P1K.js +0 -1
- package/dist/toast-vU5ISM03.mjs +0 -445
- package/dist/toaster-CaJyOCyC.js +0 -1
- package/dist/toggle-CSZdCCwX.js +0 -1
- package/dist/toggle-Cv9YYwLI.mjs +0 -58
- package/dist/toggle-group-RT8wyBwK.js +0 -1
- package/dist/toggle-group-qvjasXS-.mjs +0 -166
- package/dist/tooltip-7ERoN5mV.mjs +0 -386
- package/dist/tooltip-CC9_spXT.js +0 -1
package/dist/dist-DuQlxGyN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-DZiOPWLp.js"),n=require("./dist-CJqVmdrU.js"),r=require("./dist-DW2ltK5-.js"),i=require("./dist-RXrZgzkO.js"),a=require("./dist-zmnQp5Xf.js"),o=require("./dist-R_G5UQRm.js"),s=require("./dist-DmY7elIQ.js"),c=require("./dist-CDcZ8WMF.js"),l=require("./dist-Blgp9lfa.js"),u=require("./dist-CBlqVBTk.js"),d=require("./es2015-Dggv0vx3.js"),f=require("./dist-B7jnFMko.js");let 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=`Dialog`,[y,b]=r.t(v),[x,S]=y(v),C=_(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:c,modal:l=!0}=e,u=m.useRef(null),d=m.useRef(null),{nodes:f,registry:p}=s.i(),[g,_]=a.t({prop:r,defaultProp:o??!1,onChange:c,caller:v}),[y,b]=m.useState(0),[S,C]=m.useState(0);return(0,h.jsx)(x,{scope:t,triggerRef:u,contentRef:d,contentId:i.t(),titleId:i.t(),descriptionId:i.t(),titlePresent:y>0,descriptionPresent:S>0,setTitleCount:b,setDescriptionCount:C,open:g,onOpenChange:_,onOpenToggle:m.useCallback(()=>_(e=>!e),[_]),modal:l,branchNodes:f,branchRegistry:p,children:n})},`Dialog`),w=`DialogTrigger`,T=m.forwardRef(_(function(e,r){let{__scopeDialog:i,...a}=e,o=S(w,i),s=n.a(r,o.triggerRef);return(0,h.jsx)(u.t.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":W(o.open),...a,ref:s,onClick:t.t(e.onClick,o.onOpenToggle)})},`DialogTrigger`)),E=`DialogPortal`,[D,O]=y(E,{forceMount:void 0}),k=_(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=S(E,t);return(0,h.jsx)(D,{scope:t,forceMount:n,children:m.Children.map(r,e=>(0,h.jsx)(l.t,{present:n||a.open,children:(0,h.jsx)(c.t,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),A=`DialogOverlay`,j=m.forwardRef(_(function(e,t){let n=O(A,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=S(A,e.__scopeDialog);return a.modal?(0,h.jsx)(l.t,{present:r||a.open,children:(0,h.jsx)(N,{...i,ref:t})}):null},`DialogOverlay`)),M=n.n(`DialogOverlay.RemoveScroll`),N=m.forwardRef(_(function(e,t){let{__scopeDialog:r,...i}=e,a=S(A,r),s=o.r(),c=n.a(t,s);return(0,h.jsx)(d.n,{as:M,allowPinchZoom:!0,shards:m.useMemo(()=>[a.contentRef,...a.branchNodes.map(e=>({current:e}))],[a.contentRef,a.branchNodes]),children:(0,h.jsx)(u.t.div,{"data-state":W(a.open),...i,ref:c,style:{pointerEvents:`auto`,...i.style}})})},`DialogOverlayImpl`)),P=`DialogContent`,F=m.forwardRef(_(function(e,t){let n=O(P,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=S(P,e.__scopeDialog);return(0,h.jsx)(l.t,{present:r||a.open,children:a.modal?(0,h.jsx)(I,{...i,ref:t}):(0,h.jsx)(L,{...i,ref:t})})},`DialogContent`)),I=m.forwardRef(_(function(e,r){let i=S(P,e.__scopeDialog),a=m.useRef(null),o=n.a(r,i.contentRef,a);return m.useEffect(()=>{let e=a.current;if(e)return d.t(e)},[]),(0,h.jsx)(R,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:t.t(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:t.t(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:t.t(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),L=m.forwardRef(_(function(e,t){let n=S(P,e.__scopeDialog),r=m.useRef(!1),i=m.useRef(!1);return(0,h.jsx)(R,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),R=m.forwardRef(_(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":c,children:l,...u}=e,f=S(P,n);return d.r(),(0,h.jsx)(s.n,{registry:f.branchRegistry,children:(0,h.jsx)(s.t,{asChild:!0,loop:!0,trapped:r,branches:f.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,h.jsx)(o.t,{role:`dialog`,id:f.contentId,"aria-labelledby":f.titlePresent?f.titleId:void 0,"aria-describedby":f.descriptionPresent?U(c,f.descriptionId):c,"data-state":W(f.open),...u,ref:t,deferPointerDownOutside:!0,onDismiss:()=>f.onOpenChange(!1),children:l})})})},`DialogContentImpl`)),z=m.forwardRef(_(function(e,t){let{__scopeDialog:n,...r}=e,i=S(`DialogTitle`,n),{setTitleCount:a}=i;return f.t(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,h.jsx)(u.t.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),B=m.forwardRef(_(function(e,t){let{__scopeDialog:n,...r}=e,i=S(`DialogDescription`,n),{setDescriptionCount:a}=i;return f.t(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,h.jsx)(u.t.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),V=`DialogClose`,H=m.forwardRef(_(function(e,n){let{__scopeDialog:r,...i}=e,a=S(V,r);return(0,h.jsx)(u.t.button,{type:`button`,...i,ref:n,onClick:t.t(e.onClick,()=>a.onOpenChange(!1))})},`DialogClose`));function U(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}_(U,`concatAriaDescribedby`);function W(e){return e?`open`:`closed`}_(W,`getState`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return C}});
|
package/dist/dist-KFF7QKuL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CBlqVBTk.js");let n=require("react"),r=e.r(n,1);n=e.r(n);let i=require("react/jsx-runtime");var a=Object.defineProperty,o=(e,t)=>a(e,`name`,{value:t,configurable:!0}),s=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),c=r.forwardRef(o(function(e,n){return(0,i.jsx)(t.t.span,{...e,ref:n,style:{...s,...e.style}})},`VisuallyHidden`));Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
package/dist/dist-RXrZgzkO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-B7jnFMko.js");let n=require("react"),r=e.r(n,1);n=e.r(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o=r.useId||(()=>void 0),s=0;function c(e){let[n,i]=r.useState(o());return t.t(()=>{e||i(e=>e??String(s++))},[e]),e||(n?`radix-${n}`:``)}a(c,`useId`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
|
package/dist/dist-R_G5UQRm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-DZiOPWLp.js"),n=require("./dist-CBlqVBTk.js"),r=require("./dist-CJqVmdrU.js"),i=require("./dist-pqMcQ1Nk.js");let a=require("react"),o=e.r(a,1);a=e.r(a);let s=require("react/jsx-runtime");var c=Object.defineProperty,l=(e,t)=>c(e,`name`,{value:t,configurable:!0}),u=`dismissableLayer.update`,d=`dismissableLayer.pointerDownOutside`,f=`dismissableLayer.focusOutside`,p,m=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),h=o.forwardRef(l(function(e,a){let{disableOutsidePointerEvents:c=!1,deferPointerDownOutside:d=!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:_,onDismiss:v,...S}=e,C=o.useContext(m),[w,T]=o.useState(null),E=w?.ownerDocument??globalThis?.document,[,D]=o.useState({}),O=r.a(a,T),k=Array.from(C.layers),[A]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),j=A?k.indexOf(A):-1,M=w?k.indexOf(w):-1,N=C.layersWithOutsidePointerEventsDisabled.size>0,P=M>=j,F=o.useRef(!1),I=y(e=>{h?.(e),_?.(e),e.defaultPrevented||v?.()},{ownerDocument:E,deferPointerDownOutside:d,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:C.dismissableSurfaces,shouldHandlePointerDownOutside:o.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...C.branches].some(t=>t.contains(e));return P&&!t},[C.branches,P])}),L=b(e=>{if(d&&F.current)return;let t=e.target;[...C.branches].some(e=>e.contains(t))||(g?.(e),_?.(e),e.defaultPrevented||v?.())},E),R=w?M===k.length-1:!1,z=i.t(e=>{e.key===`Escape`&&(f?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))});return o.useEffect(()=>{if(R)return E.addEventListener(`keydown`,z,{capture:!0}),()=>E.removeEventListener(`keydown`,z,{capture:!0})},[E,R,z]),o.useEffect(()=>{if(w)return c&&(C.layersWithOutsidePointerEventsDisabled.size===0&&(p=E.body.style.pointerEvents,E.body.style.pointerEvents=`none`),C.layersWithOutsidePointerEventsDisabled.add(w)),C.layers.add(w),x(),()=>{c&&(C.layersWithOutsidePointerEventsDisabled.delete(w),C.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=p))}},[w,E,c,C]),o.useEffect(()=>()=>{w&&(C.layers.delete(w),C.layersWithOutsidePointerEventsDisabled.delete(w),x())},[w,C]),o.useEffect(()=>{let e=l(()=>D({}),`handleUpdate`);return document.addEventListener(u,e),()=>document.removeEventListener(u,e)},[]),(0,s.jsx)(n.t.div,{...S,ref:O,style:{pointerEvents:N?P?`auto`:`none`:void 0,...e.style},onFocusCapture:t.t(e.onFocusCapture,L.onFocusCapture),onBlurCapture:t.t(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:t.t(e.onPointerDownCapture,I.onPointerDownCapture)})},`DismissableLayer`)),g=o.forwardRef(l(function(e,t){let i=o.useContext(m),a=o.useRef(null),c=r.a(t,a);return o.useEffect(()=>{let e=a.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}},[i.branches]),(0,s.jsx)(n.t.div,{...e,ref:c})},`DismissableLayerBranch`));function _(){let e=o.useContext(m),[t,n]=o.useState(null);return o.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}l(_,`useDismissableLayerSurface`);var v=l(()=>!0,`IS_TRUE`);function y(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:s,shouldHandlePointerDownOutside:c=v}=t,u=i.t(e),f=o.useRef(!1),p=o.useRef(!1),m=o.useRef(new Map),h=o.useRef(()=>{});return o.useEffect(()=>{function e(){p.current=!1,a.current=!1,m.current.clear()}l(e,`resetOutsideInteraction`);function t(){return Array.from(m.current.values()).some(Boolean)}l(t,`isOutsideInteractionIntercepted`);function i(e){if(!p.current)return;let t=e.target;t instanceof Node&&[...s].some(e=>e.contains(t))||m.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{p.current&&h.current()},0)}l(i,`handleInteractionCapture`);function o(e){p.current&&m.current.set(e.type,!1)}l(o,`handleInteractionBubble`);let g=l(i=>{if(i.target&&!f.current){let o=function(){n.removeEventListener(`click`,h.current);let r=t();e(),r||S(d,u,s,{discrete:!0})};if(l(o,`handleAndDispatchPointerDownOutsideEvent`),!c(i.target)){n.removeEventListener(`click`,h.current),e(),f.current=!1;return}let s={originalEvent:i};p.current=!0,a.current=r&&i.button===0,m.current.clear(),!r||i.button!==0?o():(n.removeEventListener(`click`,h.current),h.current=o,n.addEventListener(`click`,h.current,{once:!0}))}else n.removeEventListener(`click`,h.current),e();f.current=!1},`handlePointerDown`),_=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of _)n.addEventListener(e,i,!0),n.addEventListener(e,o);let v=window.setTimeout(()=>{n.addEventListener(`pointerdown`,g)},0);return()=>{window.clearTimeout(v),n.removeEventListener(`pointerdown`,g),n.removeEventListener(`click`,h.current);for(let e of _)n.removeEventListener(e,i,!0),n.removeEventListener(e,o)}},[n,u,r,a,s,c]),{onPointerDownCapture:l(()=>f.current=!0,`onPointerDownCapture`)}}l(y,`usePointerDownOutside`);function b(e,t=globalThis?.document){let n=i.t(e),r=o.useRef(!1);return o.useEffect(()=>{let e=l(e=>{e.target&&!r.current&&S(f,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:l(()=>r.current=!0,`onFocusCapture`),onBlurCapture:l(()=>r.current=!1,`onBlurCapture`)}}l(b,`useFocusOutside`);function x(){let e=new CustomEvent(u);document.dispatchEvent(e)}l(x,`dispatchUpdate`);function S(e,t,r,{discrete:i}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),i?n.n(a,o):a.dispatchEvent(o)}l(S,`handleAndDispatchCustomEvent`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return h}});
|
package/dist/dist-dwRwxUPt.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
// ../../node_modules/.bun/@radix-ui+react-direction@1.2.0+0ac650c021fb1b59/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
4
|
-
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
-
value: t,
|
|
6
|
-
configurable: !0
|
|
7
|
-
}), i = {
|
|
8
|
-
LTR: "ltr",
|
|
9
|
-
RTL: "rtl"
|
|
10
|
-
}, a = e.createContext(void 0), o = /* @__PURE__ */ r((e) => {
|
|
11
|
-
let { dir: n, children: r } = e;
|
|
12
|
-
return /* @__PURE__ */ t(a.Provider, {
|
|
13
|
-
value: n,
|
|
14
|
-
children: r
|
|
15
|
-
});
|
|
16
|
-
}, "DirectionProvider");
|
|
17
|
-
function s(t) {
|
|
18
|
-
let n = e.useContext(a);
|
|
19
|
-
return t || n || i.LTR;
|
|
20
|
-
}
|
|
21
|
-
r(s, "useDirection");
|
|
22
|
-
export { s as n, o as t };
|
package/dist/dist-fzmUl3YX.mjs
DELETED
|
@@ -1,553 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-B76UOZbx.mjs";
|
|
2
|
-
import { t } from "./dist-C2BHd5i1.mjs";
|
|
3
|
-
import { a as n, n as r } from "./dist-C516Vwxy.mjs";
|
|
4
|
-
import { t as i } from "./dist-COqM3IM6.mjs";
|
|
5
|
-
import { n as a } from "./dist-dwRwxUPt.mjs";
|
|
6
|
-
import { t as o } from "./dist-CbWpCWog.mjs";
|
|
7
|
-
import { n as s, r as c, t as l } from "./es2015-BooeZGhO.mjs";
|
|
8
|
-
import { i as u, n as d, r as f, t as p } from "./dist-CDksSmTD.mjs";
|
|
9
|
-
import { t as m } from "./dist-Cu0GG-3j.mjs";
|
|
10
|
-
import { a as h, i as ee, n as te, t as g } from "./dist-Cn4F8XlY.mjs";
|
|
11
|
-
import { t as ne } from "./dist-CcGLWbPa.mjs";
|
|
12
|
-
import { t as _ } from "./dist-BnlI08Je.mjs";
|
|
13
|
-
import { n as re, t as v } from "./dist-B7Ph9-T6.mjs";
|
|
14
|
-
import { n as ie, r as y, t as ae } from "./dist-Bu-uFV1C.mjs";
|
|
15
|
-
import { t as b } from "./dist-AlmToDtO.mjs";
|
|
16
|
-
import * as x from "react";
|
|
17
|
-
import { jsx as S } from "react/jsx-runtime";
|
|
18
|
-
// ../../node_modules/.bun/@radix-ui+react-menu@2.2.1+2b23df507bdda662/node_modules/@radix-ui/react-menu/dist/index.mjs
|
|
19
|
-
var C = Object.defineProperty, w = (e, t) => C(e, "name", {
|
|
20
|
-
value: t,
|
|
21
|
-
configurable: !0
|
|
22
|
-
}), T = {
|
|
23
|
-
LTR: "ltr",
|
|
24
|
-
RTL: "rtl"
|
|
25
|
-
}, E = ["Enter", " "], D = [
|
|
26
|
-
"ArrowDown",
|
|
27
|
-
"PageUp",
|
|
28
|
-
"Home"
|
|
29
|
-
], O = [
|
|
30
|
-
"ArrowUp",
|
|
31
|
-
"PageDown",
|
|
32
|
-
"End"
|
|
33
|
-
], oe = [...D, ...O], k = {
|
|
34
|
-
ltr: [...E, "ArrowRight"],
|
|
35
|
-
rtl: [...E, "ArrowLeft"]
|
|
36
|
-
}, se = {
|
|
37
|
-
ltr: ["ArrowLeft"],
|
|
38
|
-
rtl: ["ArrowRight"]
|
|
39
|
-
}, A = "Menu", [j, ce, le] = t(A), [M, N] = i(A, [
|
|
40
|
-
le,
|
|
41
|
-
h,
|
|
42
|
-
y
|
|
43
|
-
]), P = h(), ue = y(), [F, I] = M(A), [de, L] = M(A), fe = /* @__PURE__ */ w((e) => {
|
|
44
|
-
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: o, modal: s = !0 } = e, c = P(t), [l, u] = x.useState(null), d = x.useRef(!1), f = b(o), p = a(i);
|
|
45
|
-
return x.useEffect(() => {
|
|
46
|
-
let e = /* @__PURE__ */ w(() => {
|
|
47
|
-
d.current = !0, document.addEventListener("pointerdown", t, {
|
|
48
|
-
capture: !0,
|
|
49
|
-
once: !0
|
|
50
|
-
}), document.addEventListener("pointermove", t, {
|
|
51
|
-
capture: !0,
|
|
52
|
-
once: !0
|
|
53
|
-
});
|
|
54
|
-
}, "handleKeyDown"), t = /* @__PURE__ */ w(() => d.current = !1, "handlePointer");
|
|
55
|
-
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
56
|
-
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
57
|
-
};
|
|
58
|
-
}, []), x.useEffect(() => {
|
|
59
|
-
if (!n) return;
|
|
60
|
-
let e = /* @__PURE__ */ w(() => f(!1), "handleBlur");
|
|
61
|
-
return window.addEventListener("blur", e), () => window.removeEventListener("blur", e);
|
|
62
|
-
}, [n, f]), /* @__PURE__ */ S(g, {
|
|
63
|
-
...c,
|
|
64
|
-
children: /* @__PURE__ */ S(F, {
|
|
65
|
-
scope: t,
|
|
66
|
-
open: n,
|
|
67
|
-
onOpenChange: f,
|
|
68
|
-
content: l,
|
|
69
|
-
onContentChange: u,
|
|
70
|
-
children: /* @__PURE__ */ S(de, {
|
|
71
|
-
scope: t,
|
|
72
|
-
onClose: x.useCallback(() => f(!1), [f]),
|
|
73
|
-
isUsingKeyboardRef: d,
|
|
74
|
-
dir: p,
|
|
75
|
-
modal: s,
|
|
76
|
-
children: r
|
|
77
|
-
})
|
|
78
|
-
})
|
|
79
|
-
});
|
|
80
|
-
}, "Menu"), R = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
81
|
-
let { __scopeMenu: n, ...r } = e, i = P(n);
|
|
82
|
-
return /* @__PURE__ */ S(te, {
|
|
83
|
-
...i,
|
|
84
|
-
...r,
|
|
85
|
-
ref: t
|
|
86
|
-
});
|
|
87
|
-
}, "MenuAnchor")), z = "MenuPortal", [B, V] = M(z, { forceMount: void 0 }), H = /* @__PURE__ */ w((e) => {
|
|
88
|
-
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = I(z, t);
|
|
89
|
-
return /* @__PURE__ */ S(B, {
|
|
90
|
-
scope: t,
|
|
91
|
-
forceMount: n,
|
|
92
|
-
children: /* @__PURE__ */ S(_, {
|
|
93
|
-
present: n || a.open,
|
|
94
|
-
children: /* @__PURE__ */ S(ne, {
|
|
95
|
-
asChild: !0,
|
|
96
|
-
container: i,
|
|
97
|
-
children: r
|
|
98
|
-
})
|
|
99
|
-
})
|
|
100
|
-
});
|
|
101
|
-
}, "MenuPortal"), U = "MenuContent", [pe, W] = M(U), me = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
102
|
-
let n = V(U, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = I(U, e.__scopeMenu), o = L(U, e.__scopeMenu);
|
|
103
|
-
return /* @__PURE__ */ S(j.Provider, {
|
|
104
|
-
scope: e.__scopeMenu,
|
|
105
|
-
children: /* @__PURE__ */ S(_, {
|
|
106
|
-
present: r || a.open,
|
|
107
|
-
children: /* @__PURE__ */ S(j.Slot, {
|
|
108
|
-
scope: e.__scopeMenu,
|
|
109
|
-
children: o.modal ? /* @__PURE__ */ S(he, {
|
|
110
|
-
...i,
|
|
111
|
-
ref: t
|
|
112
|
-
}) : /* @__PURE__ */ S(ge, {
|
|
113
|
-
...i,
|
|
114
|
-
ref: t
|
|
115
|
-
})
|
|
116
|
-
})
|
|
117
|
-
})
|
|
118
|
-
});
|
|
119
|
-
}, "MenuContent")), he = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, r) {
|
|
120
|
-
let i = I(U, t.__scopeMenu), a = x.useRef(null), o = n(r, a);
|
|
121
|
-
return x.useEffect(() => {
|
|
122
|
-
let e = a.current;
|
|
123
|
-
if (e) return l(e);
|
|
124
|
-
}, []), /* @__PURE__ */ S(G, {
|
|
125
|
-
...t,
|
|
126
|
-
ref: o,
|
|
127
|
-
trapFocus: i.open,
|
|
128
|
-
disableOutsidePointerEvents: i.open,
|
|
129
|
-
disableOutsideScroll: !0,
|
|
130
|
-
onFocusOutside: e(t.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
131
|
-
onDismiss: () => i.onOpenChange(!1)
|
|
132
|
-
});
|
|
133
|
-
}, "MenuRootContentModal")), ge = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
134
|
-
let n = I(U, e.__scopeMenu);
|
|
135
|
-
return /* @__PURE__ */ S(G, {
|
|
136
|
-
...e,
|
|
137
|
-
ref: t,
|
|
138
|
-
trapFocus: !1,
|
|
139
|
-
disableOutsidePointerEvents: !1,
|
|
140
|
-
disableOutsideScroll: !1,
|
|
141
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
142
|
-
});
|
|
143
|
-
}, "MenuRootContentNonModal")), _e = r("MenuContent.ScrollLock"), G = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, r) {
|
|
144
|
-
let { __scopeMenu: i, loop: a = !1, trapFocus: l, onOpenAutoFocus: m, onCloseAutoFocus: h, disableOutsidePointerEvents: te, onEntryFocus: g, onEscapeKeyDown: ne, onPointerDownOutside: _, onFocusOutside: re, onInteractOutside: v, onDismiss: ie, disableOutsideScroll: y, ...b } = t, C = I(U, i), T = L(U, i), E = P(i), D = ue(i), k = ce(i), [se, A] = x.useState(null), j = x.useRef(null), [le, M] = x.useState(null);
|
|
145
|
-
f(le);
|
|
146
|
-
let { nodes: N, registry: F } = u(), de = !!(l || y), fe = n(r, j, C.onContentChange, M), R = x.useRef(0), z = x.useRef(""), B = x.useRef(0), V = x.useRef(null), H = x.useRef("right"), W = x.useRef(0), me = x.useMemo(() => y ? [j, ...N.map((e) => ({ current: e }))] : [], [
|
|
147
|
-
j,
|
|
148
|
-
N,
|
|
149
|
-
y
|
|
150
|
-
]), he = y ? s : x.Fragment, ge = y ? {
|
|
151
|
-
as: _e,
|
|
152
|
-
allowPinchZoom: !0,
|
|
153
|
-
shards: me
|
|
154
|
-
} : void 0, G = /* @__PURE__ */ w((e) => {
|
|
155
|
-
let t = z.current + e, n = k().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = Ve(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
156
|
-
function s(e) {
|
|
157
|
-
z.current = e, window.clearTimeout(R.current), e !== "" && (R.current = window.setTimeout(() => s(""), 1e3));
|
|
158
|
-
}
|
|
159
|
-
w(s, "updateSearch"), s(t), o && setTimeout(() => o.focus());
|
|
160
|
-
}, "handleTypeaheadSearch");
|
|
161
|
-
x.useEffect(() => () => window.clearTimeout(R.current), []), c();
|
|
162
|
-
let K = x.useCallback((e) => H.current === V.current?.side && Ue(e, V.current?.area), []);
|
|
163
|
-
return /* @__PURE__ */ S(pe, {
|
|
164
|
-
scope: i,
|
|
165
|
-
searchRef: z,
|
|
166
|
-
onItemEnter: x.useCallback((e) => {
|
|
167
|
-
K(e) && e.preventDefault();
|
|
168
|
-
}, [K]),
|
|
169
|
-
onItemLeave: x.useCallback((e) => {
|
|
170
|
-
K(e) || (j.current?.focus(), A(null));
|
|
171
|
-
}, [K]),
|
|
172
|
-
onTriggerLeave: x.useCallback((e) => {
|
|
173
|
-
K(e) && e.preventDefault();
|
|
174
|
-
}, [K]),
|
|
175
|
-
pointerGraceTimerRef: B,
|
|
176
|
-
onPointerGraceIntentChange: x.useCallback((e) => {
|
|
177
|
-
V.current = e;
|
|
178
|
-
}, []),
|
|
179
|
-
children: /* @__PURE__ */ S(d, {
|
|
180
|
-
registry: de ? F : null,
|
|
181
|
-
children: /* @__PURE__ */ S(he, {
|
|
182
|
-
...ge,
|
|
183
|
-
children: /* @__PURE__ */ S(p, {
|
|
184
|
-
asChild: !0,
|
|
185
|
-
trapped: l,
|
|
186
|
-
branches: N,
|
|
187
|
-
onMountAutoFocus: e(m, (e) => {
|
|
188
|
-
e.preventDefault(), j.current?.focus({ preventScroll: !0 });
|
|
189
|
-
}),
|
|
190
|
-
onUnmountAutoFocus: h,
|
|
191
|
-
children: /* @__PURE__ */ S(o, {
|
|
192
|
-
asChild: !0,
|
|
193
|
-
disableOutsidePointerEvents: te,
|
|
194
|
-
onEscapeKeyDown: ne,
|
|
195
|
-
onPointerDownOutside: _,
|
|
196
|
-
onFocusOutside: re,
|
|
197
|
-
onInteractOutside: v,
|
|
198
|
-
onDismiss: ie,
|
|
199
|
-
children: /* @__PURE__ */ S(ae, {
|
|
200
|
-
asChild: !0,
|
|
201
|
-
...D,
|
|
202
|
-
dir: T.dir,
|
|
203
|
-
orientation: "vertical",
|
|
204
|
-
loop: a,
|
|
205
|
-
currentTabStopId: se,
|
|
206
|
-
onCurrentTabStopIdChange: A,
|
|
207
|
-
onEntryFocus: e(g, (e) => {
|
|
208
|
-
T.isUsingKeyboardRef.current || e.preventDefault();
|
|
209
|
-
}),
|
|
210
|
-
preventScrollOnEntryFocus: !0,
|
|
211
|
-
children: /* @__PURE__ */ S(ee, {
|
|
212
|
-
role: "menu",
|
|
213
|
-
"aria-orientation": "vertical",
|
|
214
|
-
"data-state": X(C.open),
|
|
215
|
-
"data-radix-menu-content": "",
|
|
216
|
-
dir: T.dir,
|
|
217
|
-
...E,
|
|
218
|
-
...b,
|
|
219
|
-
ref: fe,
|
|
220
|
-
style: {
|
|
221
|
-
outline: "none",
|
|
222
|
-
...b.style
|
|
223
|
-
},
|
|
224
|
-
onKeyDown: e(b.onKeyDown, (e) => {
|
|
225
|
-
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
226
|
-
t && (e.key === "Tab" && e.preventDefault(), !n && r && G(e.key));
|
|
227
|
-
let i = j.current;
|
|
228
|
-
if (e.target !== i || !oe.includes(e.key)) return;
|
|
229
|
-
e.preventDefault();
|
|
230
|
-
let a = k().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
231
|
-
O.includes(e.key) && a.reverse(), ze(a);
|
|
232
|
-
}),
|
|
233
|
-
onBlur: e(t.onBlur, (e) => {
|
|
234
|
-
e.currentTarget.contains(e.target) || (window.clearTimeout(R.current), z.current = "");
|
|
235
|
-
}),
|
|
236
|
-
onPointerMove: e(t.onPointerMove, $((e) => {
|
|
237
|
-
let t = e.target, n = W.current !== e.clientX;
|
|
238
|
-
if (e.currentTarget.contains(t) && n) {
|
|
239
|
-
let t = e.clientX > W.current ? "right" : "left";
|
|
240
|
-
H.current = t, W.current = e.clientX;
|
|
241
|
-
}
|
|
242
|
-
}))
|
|
243
|
-
})
|
|
244
|
-
})
|
|
245
|
-
})
|
|
246
|
-
})
|
|
247
|
-
})
|
|
248
|
-
})
|
|
249
|
-
});
|
|
250
|
-
}, "MenuContentImpl")), K = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
251
|
-
let { __scopeMenu: n, ...r } = e;
|
|
252
|
-
return /* @__PURE__ */ S(v.div, {
|
|
253
|
-
role: "group",
|
|
254
|
-
...r,
|
|
255
|
-
ref: t
|
|
256
|
-
});
|
|
257
|
-
}, "MenuGroup")), ve = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
258
|
-
let { __scopeMenu: n, ...r } = e;
|
|
259
|
-
return /* @__PURE__ */ S(v.div, {
|
|
260
|
-
...r,
|
|
261
|
-
ref: t
|
|
262
|
-
});
|
|
263
|
-
}, "MenuLabel")), q = "MenuItem", ye = "menu.itemSelect", J = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, r) {
|
|
264
|
-
let { disabled: i = !1, onSelect: a, ...o } = t, s = x.useRef(null), c = L(q, t.__scopeMenu), l = W(q, t.__scopeMenu), u = n(r, s), d = x.useRef(!1), f = /* @__PURE__ */ w(() => {
|
|
265
|
-
let e = s.current;
|
|
266
|
-
if (!i && e) {
|
|
267
|
-
let t = new CustomEvent(ye, {
|
|
268
|
-
bubbles: !0,
|
|
269
|
-
cancelable: !0
|
|
270
|
-
});
|
|
271
|
-
e.addEventListener(ye, (e) => a?.(e), { once: !0 }), re(e, t), t.defaultPrevented ? d.current = !1 : c.onClose();
|
|
272
|
-
}
|
|
273
|
-
}, "handleSelect");
|
|
274
|
-
return /* @__PURE__ */ S(be, {
|
|
275
|
-
...o,
|
|
276
|
-
ref: u,
|
|
277
|
-
disabled: i,
|
|
278
|
-
onClick: e(t.onClick, f),
|
|
279
|
-
onPointerDown: (e) => {
|
|
280
|
-
t.onPointerDown?.(e), d.current = !0;
|
|
281
|
-
},
|
|
282
|
-
onPointerUp: e(t.onPointerUp, (e) => {
|
|
283
|
-
d.current || e.currentTarget?.click();
|
|
284
|
-
}),
|
|
285
|
-
onKeyDown: e(t.onKeyDown, (e) => {
|
|
286
|
-
i || e.target !== e.currentTarget || (l.searchRef.current === "" || e.key !== " ") && E.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
287
|
-
})
|
|
288
|
-
});
|
|
289
|
-
}, "MenuItem")), be = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, r) {
|
|
290
|
-
let { __scopeMenu: i, disabled: a = !1, textValue: o, ...s } = t, c = W(q, i), l = ue(i), u = x.useRef(null), d = n(r, u), [f, p] = x.useState(!1), [m, h] = x.useState("");
|
|
291
|
-
return x.useEffect(() => {
|
|
292
|
-
let e = u.current;
|
|
293
|
-
e && h((e.textContent ?? "").trim());
|
|
294
|
-
}, [s.children]), /* @__PURE__ */ S(j.ItemSlot, {
|
|
295
|
-
scope: i,
|
|
296
|
-
disabled: a,
|
|
297
|
-
textValue: o ?? m,
|
|
298
|
-
children: /* @__PURE__ */ S(ie, {
|
|
299
|
-
asChild: !0,
|
|
300
|
-
...l,
|
|
301
|
-
focusable: !a,
|
|
302
|
-
children: /* @__PURE__ */ S(v.div, {
|
|
303
|
-
role: "menuitem",
|
|
304
|
-
"data-highlighted": f ? "" : void 0,
|
|
305
|
-
"aria-disabled": a || void 0,
|
|
306
|
-
"data-disabled": a ? "" : void 0,
|
|
307
|
-
...s,
|
|
308
|
-
ref: d,
|
|
309
|
-
onPointerMove: e(t.onPointerMove, $((e) => {
|
|
310
|
-
a ? c.onItemLeave(e) : (c.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
311
|
-
})),
|
|
312
|
-
onPointerLeave: e(t.onPointerLeave, $((e) => c.onItemLeave(e))),
|
|
313
|
-
onFocus: e(t.onFocus, () => p(!0)),
|
|
314
|
-
onBlur: e(t.onBlur, () => p(!1))
|
|
315
|
-
})
|
|
316
|
-
})
|
|
317
|
-
});
|
|
318
|
-
}, "MenuItemImpl")), xe = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, n) {
|
|
319
|
-
let { checked: r = !1, onCheckedChange: i, ...a } = t;
|
|
320
|
-
return /* @__PURE__ */ S(Oe, {
|
|
321
|
-
scope: t.__scopeMenu,
|
|
322
|
-
checked: r,
|
|
323
|
-
children: /* @__PURE__ */ S(J, {
|
|
324
|
-
role: "menuitemcheckbox",
|
|
325
|
-
"aria-checked": Z(r) ? "mixed" : r,
|
|
326
|
-
...a,
|
|
327
|
-
ref: n,
|
|
328
|
-
"data-state": Q(r),
|
|
329
|
-
onSelect: e(a.onSelect, () => i?.(Z(r) ? !0 : !r), { checkForDefaultPrevented: !1 })
|
|
330
|
-
})
|
|
331
|
-
});
|
|
332
|
-
}, "MenuCheckboxItem")), [Se, Ce] = M("MenuRadioGroup", {
|
|
333
|
-
value: void 0,
|
|
334
|
-
onValueChange: /* @__PURE__ */ w(() => {}, "onValueChange")
|
|
335
|
-
}), we = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
336
|
-
let { value: n, onValueChange: r, ...i } = e, a = b(r);
|
|
337
|
-
return /* @__PURE__ */ S(Se, {
|
|
338
|
-
scope: e.__scopeMenu,
|
|
339
|
-
value: n,
|
|
340
|
-
onValueChange: a,
|
|
341
|
-
children: /* @__PURE__ */ S(K, {
|
|
342
|
-
...i,
|
|
343
|
-
ref: t
|
|
344
|
-
})
|
|
345
|
-
});
|
|
346
|
-
}, "MenuRadioGroup")), Te = "MenuRadioItem", Ee = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, n) {
|
|
347
|
-
let { value: r, ...i } = t, a = Ce(Te, t.__scopeMenu), o = r === a.value;
|
|
348
|
-
return /* @__PURE__ */ S(Oe, {
|
|
349
|
-
scope: t.__scopeMenu,
|
|
350
|
-
checked: o,
|
|
351
|
-
children: /* @__PURE__ */ S(J, {
|
|
352
|
-
role: "menuitemradio",
|
|
353
|
-
"aria-checked": o,
|
|
354
|
-
...i,
|
|
355
|
-
ref: n,
|
|
356
|
-
"data-state": Q(o),
|
|
357
|
-
onSelect: e(i.onSelect, () => a.onValueChange?.(r), { checkForDefaultPrevented: !1 })
|
|
358
|
-
})
|
|
359
|
-
});
|
|
360
|
-
}, "MenuRadioItem")), De = "MenuItemIndicator", [Oe, ke] = M(De, { checked: !1 }), Ae = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
361
|
-
let { __scopeMenu: n, forceMount: r, ...i } = e, a = ke(De, n);
|
|
362
|
-
return /* @__PURE__ */ S(_, {
|
|
363
|
-
present: r || Z(a.checked) || a.checked === !0,
|
|
364
|
-
children: /* @__PURE__ */ S(v.span, {
|
|
365
|
-
...i,
|
|
366
|
-
ref: t,
|
|
367
|
-
"data-state": Q(a.checked)
|
|
368
|
-
})
|
|
369
|
-
});
|
|
370
|
-
}, "MenuItemIndicator")), je = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
371
|
-
let { __scopeMenu: n, ...r } = e;
|
|
372
|
-
return /* @__PURE__ */ S(v.div, {
|
|
373
|
-
role: "separator",
|
|
374
|
-
"aria-orientation": "horizontal",
|
|
375
|
-
...r,
|
|
376
|
-
ref: t
|
|
377
|
-
});
|
|
378
|
-
}, "MenuSeparator")), Me = "MenuSub", [Ne, Pe] = M(Me), Fe = /* @__PURE__ */ w((e) => {
|
|
379
|
-
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = I(Me, t), o = P(t), [s, c] = x.useState(null), [l, u] = x.useState(null), d = b(i);
|
|
380
|
-
return x.useEffect(() => (a.open === !1 && d(!1), () => d(!1)), [a.open, d]), /* @__PURE__ */ S(g, {
|
|
381
|
-
...o,
|
|
382
|
-
children: /* @__PURE__ */ S(F, {
|
|
383
|
-
scope: t,
|
|
384
|
-
open: r,
|
|
385
|
-
onOpenChange: d,
|
|
386
|
-
content: l,
|
|
387
|
-
onContentChange: u,
|
|
388
|
-
children: /* @__PURE__ */ S(Ne, {
|
|
389
|
-
scope: t,
|
|
390
|
-
contentId: m(),
|
|
391
|
-
triggerId: m(),
|
|
392
|
-
trigger: s,
|
|
393
|
-
onTriggerChange: c,
|
|
394
|
-
children: n
|
|
395
|
-
})
|
|
396
|
-
})
|
|
397
|
-
});
|
|
398
|
-
}, "MenuSub"), Y = "MenuSubTrigger", Ie = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, r) {
|
|
399
|
-
let i = I(Y, t.__scopeMenu), a = L(Y, t.__scopeMenu), o = Pe(Y, t.__scopeMenu), s = W(Y, t.__scopeMenu), c = x.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, d = { __scopeMenu: t.__scopeMenu }, f = x.useCallback(() => {
|
|
400
|
-
c.current && window.clearTimeout(c.current), c.current = null;
|
|
401
|
-
}, []);
|
|
402
|
-
x.useEffect(() => f, [f]), x.useEffect(() => {
|
|
403
|
-
let e = l.current;
|
|
404
|
-
return () => {
|
|
405
|
-
window.clearTimeout(e), u(null);
|
|
406
|
-
};
|
|
407
|
-
}, [l, u]);
|
|
408
|
-
let p = n(r, o.onTriggerChange);
|
|
409
|
-
return /* @__PURE__ */ S(R, {
|
|
410
|
-
asChild: !0,
|
|
411
|
-
...d,
|
|
412
|
-
children: /* @__PURE__ */ S(be, {
|
|
413
|
-
id: o.triggerId,
|
|
414
|
-
"aria-haspopup": "menu",
|
|
415
|
-
"aria-expanded": i.open,
|
|
416
|
-
"aria-controls": i.open ? o.contentId : void 0,
|
|
417
|
-
"data-state": X(i.open),
|
|
418
|
-
...t,
|
|
419
|
-
ref: p,
|
|
420
|
-
onClick: (e) => {
|
|
421
|
-
t.onClick?.(e), t.disabled || e.defaultPrevented || (e.currentTarget.focus(), i.open || i.onOpenChange(!0));
|
|
422
|
-
},
|
|
423
|
-
onPointerMove: e(t.onPointerMove, $((e) => {
|
|
424
|
-
s.onItemEnter(e), e.defaultPrevented || t.disabled || i.open || c.current || (s.onPointerGraceIntentChange(null), c.current = window.setTimeout(() => {
|
|
425
|
-
i.onOpenChange(!0), f();
|
|
426
|
-
}, 100));
|
|
427
|
-
})),
|
|
428
|
-
onPointerLeave: e(t.onPointerLeave, $((e) => {
|
|
429
|
-
f();
|
|
430
|
-
let t = i.content?.getBoundingClientRect();
|
|
431
|
-
if (t) {
|
|
432
|
-
let n = i.content?.dataset.side, r = n === "right", a = r ? -5 : 5, o = t[r ? "left" : "right"], c = t[r ? "right" : "left"];
|
|
433
|
-
s.onPointerGraceIntentChange({
|
|
434
|
-
area: [
|
|
435
|
-
{
|
|
436
|
-
x: e.clientX + a,
|
|
437
|
-
y: e.clientY
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
x: o,
|
|
441
|
-
y: t.top
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
x: c,
|
|
445
|
-
y: t.top
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
x: c,
|
|
449
|
-
y: t.bottom
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
x: o,
|
|
453
|
-
y: t.bottom
|
|
454
|
-
}
|
|
455
|
-
],
|
|
456
|
-
side: n
|
|
457
|
-
}), window.clearTimeout(l.current), l.current = window.setTimeout(() => s.onPointerGraceIntentChange(null), 300);
|
|
458
|
-
} else {
|
|
459
|
-
if (s.onTriggerLeave(e), e.defaultPrevented) return;
|
|
460
|
-
s.onPointerGraceIntentChange(null);
|
|
461
|
-
}
|
|
462
|
-
})),
|
|
463
|
-
onKeyDown: e(t.onKeyDown, (e) => {
|
|
464
|
-
t.disabled || e.target !== e.currentTarget || (s.searchRef.current === "" || e.key !== " ") && k[a.dir].includes(e.key) && (i.onOpenChange(!0), i.content?.focus(), e.preventDefault());
|
|
465
|
-
})
|
|
466
|
-
})
|
|
467
|
-
});
|
|
468
|
-
}, "MenuSubTrigger")), Le = "MenuSubContent", Re = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ w(function(t, r) {
|
|
469
|
-
let i = V(U, t.__scopeMenu), { forceMount: a = i.forceMount, align: o = "start", ...s } = t, c = I(U, t.__scopeMenu), l = L(U, t.__scopeMenu), u = Pe(Le, t.__scopeMenu), d = x.useRef(null), f = n(r, d);
|
|
470
|
-
return /* @__PURE__ */ S(j.Provider, {
|
|
471
|
-
scope: t.__scopeMenu,
|
|
472
|
-
children: /* @__PURE__ */ S(_, {
|
|
473
|
-
present: a || c.open,
|
|
474
|
-
children: /* @__PURE__ */ S(j.Slot, {
|
|
475
|
-
scope: t.__scopeMenu,
|
|
476
|
-
children: /* @__PURE__ */ S(G, {
|
|
477
|
-
id: u.contentId,
|
|
478
|
-
"aria-labelledby": u.triggerId,
|
|
479
|
-
...s,
|
|
480
|
-
ref: f,
|
|
481
|
-
align: o,
|
|
482
|
-
side: l.dir === T.RTL ? "left" : "right",
|
|
483
|
-
disableOutsidePointerEvents: !1,
|
|
484
|
-
disableOutsideScroll: !1,
|
|
485
|
-
trapFocus: !1,
|
|
486
|
-
onOpenAutoFocus: (e) => {
|
|
487
|
-
l.isUsingKeyboardRef.current && d.current?.focus(), e.preventDefault();
|
|
488
|
-
},
|
|
489
|
-
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
490
|
-
onFocusOutside: e(t.onFocusOutside, (e) => {
|
|
491
|
-
e.target !== u.trigger && c.onOpenChange(!1);
|
|
492
|
-
}),
|
|
493
|
-
onEscapeKeyDown: e(t.onEscapeKeyDown, (e) => {
|
|
494
|
-
l.onClose(), e.preventDefault();
|
|
495
|
-
}),
|
|
496
|
-
onKeyDown: e(t.onKeyDown, (e) => {
|
|
497
|
-
let t = e.currentTarget.contains(e.target), n = se[l.dir].includes(e.key);
|
|
498
|
-
t && n && (c.onOpenChange(!1), u.trigger?.focus(), e.preventDefault());
|
|
499
|
-
})
|
|
500
|
-
})
|
|
501
|
-
})
|
|
502
|
-
})
|
|
503
|
-
});
|
|
504
|
-
}, "MenuSubContent"));
|
|
505
|
-
function X(e) {
|
|
506
|
-
return e ? "open" : "closed";
|
|
507
|
-
}
|
|
508
|
-
w(X, "getOpenState");
|
|
509
|
-
function Z(e) {
|
|
510
|
-
return e === "indeterminate";
|
|
511
|
-
}
|
|
512
|
-
w(Z, "isIndeterminate");
|
|
513
|
-
function Q(e) {
|
|
514
|
-
return Z(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
515
|
-
}
|
|
516
|
-
w(Q, "getCheckedState");
|
|
517
|
-
function ze(e) {
|
|
518
|
-
let t = document.activeElement;
|
|
519
|
-
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
520
|
-
}
|
|
521
|
-
w(ze, "focusFirst");
|
|
522
|
-
function Be(e, t) {
|
|
523
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
524
|
-
}
|
|
525
|
-
w(Be, "wrapArray");
|
|
526
|
-
function Ve(e, t, n) {
|
|
527
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Be(e, Math.max(i, 0));
|
|
528
|
-
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
529
|
-
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
530
|
-
return o === n ? void 0 : o;
|
|
531
|
-
}
|
|
532
|
-
w(Ve, "getNextMatch");
|
|
533
|
-
function He(e, t) {
|
|
534
|
-
let { x: n, y: r } = e, i = !1;
|
|
535
|
-
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
536
|
-
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
537
|
-
l > r != d > r && n < (u - c) * (r - l) / (d - l) + c && (i = !i);
|
|
538
|
-
}
|
|
539
|
-
return i;
|
|
540
|
-
}
|
|
541
|
-
w(He, "isPointInPolygon");
|
|
542
|
-
function Ue(e, t) {
|
|
543
|
-
return t ? He({
|
|
544
|
-
x: e.clientX,
|
|
545
|
-
y: e.clientY
|
|
546
|
-
}, t) : !1;
|
|
547
|
-
}
|
|
548
|
-
w(Ue, "isPointerInGraceArea");
|
|
549
|
-
function $(e) {
|
|
550
|
-
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
551
|
-
}
|
|
552
|
-
w($, "whenMouse");
|
|
553
|
-
export { K as a, ve as c, Ee as d, je as f, N as g, Ie as h, me as i, H as l, Re as m, R as n, J as o, Fe as p, xe as r, Ae as s, fe as t, we as u };
|