dgz-ui-shared 1.1.20 → 1.1.21
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/{Actions-1AyyAnYT.js → Actions-CKVu3P3q.js} +6 -6
- package/dist/Actions-uGf1oq7E.cjs +1 -0
- package/dist/{DateRangePicker-kaBfJaKY.cjs → DateRangePicker-C1c1mofH.cjs} +3 -3
- package/dist/{DateRangePicker-D57HSCpq.js → DateRangePicker-DFsQ10c7.js} +5 -5
- package/dist/{ExportData-dSwR1N1v.js → ExportData-1xS2UAoq.js} +6 -6
- package/dist/ExportData-ApStkEWC.cjs +1 -0
- package/dist/{FilterWrapper-BYTeNMOP.js → FilterWrapper-Dk18nVPy.js} +26 -26
- package/dist/FilterWrapper-DvNjUQih.cjs +21 -0
- package/dist/{MyInput-xQAtNQfv.cjs → MyInput-9MnlVZ4h.cjs} +1 -1
- package/dist/{MyInput-DfwJGqEz.js → MyInput-B-QCpehg.js} +14 -14
- package/dist/{MyLimitSelect-BSZcXwK_.cjs → MyLimitSelect-BU1FClXt.cjs} +2 -2
- package/dist/{MyLimitSelect-B8aFncMj.js → MyLimitSelect-D5ZWDY-s.js} +7 -7
- package/dist/{MySelect-B09FshOo.js → MySelect-C5uWRVJh.js} +6 -6
- package/dist/MySelect-DNK997Bi.cjs +1 -0
- package/dist/{button-2punbuN6-BBVynxVj.cjs → button-CdZDBhmr-3yMPCRDo.cjs} +1 -1
- package/dist/{button-2punbuN6-Bxlf8sMg.js → button-CdZDBhmr-BT_j3ig5.js} +7 -7
- package/dist/{chevron-right-HWBijj-I-Bdcofm_0.cjs → chevron-right-HWBijj-I-CZBu0GKg.cjs} +1 -1
- package/dist/{chevron-right-HWBijj-I-Bkp_tbGM.js → chevron-right-HWBijj-I-DsFUufdU.js} +1 -1
- package/dist/components/actions/index.cjs.js +1 -1
- package/dist/components/actions/index.es.js +1 -1
- package/dist/components/confirm/index.cjs.js +1 -1
- package/dist/components/confirm/index.es.js +1 -1
- package/dist/components/datatable/index.cjs.js +5 -5
- package/dist/components/datatable/index.es.js +166 -166
- package/dist/components/datepicker/index.cjs.js +1 -1
- package/dist/components/datepicker/index.es.js +1 -1
- package/dist/components/export/index.cjs.js +1 -1
- package/dist/components/export/index.es.js +1 -1
- package/dist/components/filters/index.cjs.js +1 -1
- package/dist/components/filters/index.es.js +3 -3
- package/dist/components/form/index.cjs.js +2 -2
- package/dist/components/form/index.es.js +12 -12
- package/dist/components/modal/index.cjs.js +2 -2
- package/dist/components/modal/index.es.js +7 -7
- package/dist/components/pagination/index.cjs.js +1 -1
- package/dist/components/pagination/index.es.js +1 -1
- package/dist/components/theme/index.cjs.js +3 -3
- package/dist/components/theme/index.es.js +4 -4
- package/dist/components/tooltip/index.cjs.js +1 -1
- package/dist/components/tooltip/index.es.js +44 -44
- package/dist/{createLucideIcon-B950nf2d-Brk4LIHH.js → createLucideIcon-B950nf2d-9wLYOF5y.js} +1 -1
- package/dist/{createLucideIcon-B950nf2d-BaIaB_Fz.cjs → createLucideIcon-B950nf2d-DrrWmvZU.cjs} +4 -4
- package/dist/dropdown-menu-TWRSm6RK-DQ03CnVw.cjs +1 -0
- package/dist/{dropdown-menu-lArmcWbC-jIg7CHSO.js → dropdown-menu-TWRSm6RK-D_FJpI4C.js} +83 -83
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +1 -1
- package/dist/{index-CiR6yUKf-BEMUeikM.js → index-BL59b1Bz-C9bJE_xn.js} +90 -90
- package/dist/{index-CiR6yUKf-B1h5S0LB.cjs → index-BL59b1Bz-COeLljOH.cjs} +4 -4
- package/dist/{index-DUK8Bn0m-Clp83x2_.js → index-C4qYhCZt-BZQduTld.js} +29 -29
- package/dist/index-C4qYhCZt-DWBiWQ93.cjs +5 -0
- package/dist/index-CbK6da4c-QXbo5Vgb.cjs +1 -0
- package/dist/{index-Dp0y0FJw-B42jTfO0.js → index-CbK6da4c-d_6FdYZH.js} +1 -1
- package/dist/{index-GjjxAtgk-Dl4JPPHK.js → index-Cths1nBq-BUfZy21E.js} +71 -71
- package/dist/index-Cths1nBq-DzDn15YE.cjs +11 -0
- package/dist/{index-CMHo7s91-D6S6dZoG.cjs → index-ZsCkaYy6-Bjyf2SZs.cjs} +1 -1
- package/dist/{index-CMHo7s91-BRFfxKgJ.js → index-ZsCkaYy6-Cw9HUeiu.js} +1 -1
- package/dist/{input-mask-DBDaFFnm-CwBTZF0M.js → input-mask-DBLFIvhN-BBxoZxnd.js} +341 -341
- package/dist/{input-mask-DBDaFFnm-Dmv3bbE0.cjs → input-mask-DBLFIvhN-C_0RAR2l.cjs} +32 -32
- package/dist/{popover-Dvg-QyCn-CJ3lAD8Q.js → popover-OZcfKDD9-C2PVWPLS.js} +17 -17
- package/dist/popover-OZcfKDD9-KUWOsIOs.cjs +1 -0
- package/dist/{react-select-CKazfTiF-1EhjhhlL.js → react-select-DVPHHTAP-D2u3DqGr.js} +2 -2
- package/dist/{react-select-CKazfTiF-Bb-Uf4tM.cjs → react-select-DVPHHTAP-DKDInFsM.cjs} +9 -9
- package/dist/{unstyled-BcD9hmh4.cjs → unstyled-BFCMBSGZ.cjs} +2 -2
- package/dist/{unstyled-BRWVVWRl.js → unstyled-BMbrfzye.js} +5 -5
- package/package.json +2 -2
- package/dist/Actions-Dg5LYo56.cjs +0 -1
- package/dist/ExportData-DUuHYzA-.cjs +0 -1
- package/dist/FilterWrapper-DXKousYF.cjs +0 -21
- package/dist/MySelect-Dps9WQfz.cjs +0 -1
- package/dist/dropdown-menu-lArmcWbC-DCwGoXng.cjs +0 -1
- package/dist/index-DUK8Bn0m-BIulOZIQ.cjs +0 -5
- package/dist/index-Dp0y0FJw-DVwS4FcV.cjs +0 -1
- package/dist/index-GjjxAtgk-DaxZek3n.cjs +0 -11
- package/dist/popover-Dvg-QyCn-Dr2o9oAG.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./index-BL59b1Bz-COeLljOH.cjs"),xn=require("react"),M=require("./index-Cths1nBq-DzDn15YE.cjs"),F=require("./createLucideIcon-B950nf2d-DrrWmvZU.cjs"),P=require("./index-ZsCkaYy6-Bjyf2SZs.cjs"),_n=require("./chevron-right-HWBijj-I-CZBu0GKg.cjs"),j=require("./utils-B6fNqzRf-BNysSCt9.cjs");function bn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=bn(xn);var ee=["Enter"," "],Mn=["ArrowDown","PageUp","Home"],me=["ArrowUp","PageDown","End"],jn=[...Mn,...me],Dn={ltr:[...ee,"ArrowRight"],rtl:[...ee,"ArrowLeft"]},Rn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},A="Menu",[L,Cn,Nn]=M.D(A),[D,ve]=r.j(A,[Nn,P.oo,M.be]),H=P.oo(),he=M.be(),[kn,R]=D(A),[On,K]=D(A),ge=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:a,onOpenChange:c,modal:l=!0}=e,i=H(t),[m,h]=s.useState(null),p=s.useRef(!1),u=r.n(c),f=M.n(a);return s.useEffect(()=>{const g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),r.ae.jsx(P.io,{...i,children:r.ae.jsx(kn,{scope:t,open:n,onOpenChange:u,content:m,onContentChange:h,children:r.ae.jsx(On,{scope:t,onClose:s.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:p,dir:f,modal:l,children:o})})})};ge.displayName=A;var Pn="MenuAnchor",ne=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,a=H(n);return r.ae.jsx(P.ro,{...a,...o,ref:t})});ne.displayName=Pn;var re="MenuPortal",[In,we]=D(re,{forceMount:void 0}),ye=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:a}=e,c=R(re,t);return r.ae.jsx(In,{scope:t,forceMount:n,children:r.ae.jsx(r.R,{present:n||c.open,children:r.ae.jsx(F.Me,{asChild:!0,container:a,children:o})})})};ye.displayName=re;var x="MenuContent",[En,te]=D(x),xe=s.forwardRef((e,t)=>{const n=we(x,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,c=R(x,e.__scopeMenu),l=K(x,e.__scopeMenu);return r.ae.jsx(L.Provider,{scope:e.__scopeMenu,children:r.ae.jsx(r.R,{present:o||c.open,children:r.ae.jsx(L.Slot,{scope:e.__scopeMenu,children:l.modal?r.ae.jsx(Tn,{...a,ref:t}):r.ae.jsx(Sn,{...a,ref:t})})})})}),Tn=s.forwardRef((e,t)=>{const n=R(x,e.__scopeMenu),o=s.useRef(null),a=r.i(t,o);return s.useEffect(()=>{const c=o.current;if(c)return F.Rt(c)},[]),r.ae.jsx(oe,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:r.y$1(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Sn=s.forwardRef((e,t)=>{const n=R(x,e.__scopeMenu);return r.ae.jsx(oe,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Fn=r.S("MenuContent.ScrollLock"),oe=s.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:l,disableOutsidePointerEvents:i,onEntryFocus:m,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,disableOutsideScroll:v,...C}=e,N=R(x,n),I=K(x,n),z=H(n),B=he(n),ue=Cn(n),[pn,ie]=s.useState(null),G=s.useRef(null),fn=r.i(t,G,N.onContentChange),q=s.useRef(0),U=s.useRef(""),mn=s.useRef(0),Q=s.useRef(null),de=s.useRef("right"),J=s.useRef(0),vn=v?F.dt:s.Fragment,hn=v?{as:Fn,allowPinchZoom:!0}:void 0,gn=d=>{var w,_;const O=U.current+d,E=ue().filter(b=>!b.disabled),V=document.activeElement,T=(w=E.find(b=>b.ref.current===V))==null?void 0:w.textValue,wn=E.map(b=>b.textValue),yn=Wn(wn,O,T),le=(_=E.find(b=>b.textValue===yn))==null?void 0:_.ref.current;(function b(pe){U.current=pe,window.clearTimeout(q.current),pe!==""&&(q.current=window.setTimeout(()=>b(""),1e3))})(O),le&&setTimeout(()=>le.focus())};s.useEffect(()=>()=>window.clearTimeout(q.current),[]),F.Ct();const k=s.useCallback(d=>{var w,_;return de.current===((w=Q.current)==null?void 0:w.side)&&Yn(d,(_=Q.current)==null?void 0:_.area)},[]);return r.ae.jsx(En,{scope:n,searchRef:U,onItemEnter:s.useCallback(d=>{k(d)&&d.preventDefault()},[k]),onItemLeave:s.useCallback(d=>{var w;k(d)||((w=G.current)==null||w.focus(),ie(null))},[k]),onTriggerLeave:s.useCallback(d=>{k(d)&&d.preventDefault()},[k]),pointerGraceTimerRef:mn,onPointerGraceIntentChange:s.useCallback(d=>{Q.current=d},[]),children:r.ae.jsx(vn,{...hn,children:r.ae.jsx(F.Se,{asChild:!0,trapped:a,onMountAutoFocus:r.y$1(c,d=>{var w;d.preventDefault(),(w=G.current)==null||w.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:r.ae.jsx(r.M,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:u,onInteractOutside:f,onDismiss:g,children:r.ae.jsx(M.Fe,{asChild:!0,...B,dir:I.dir,orientation:"vertical",loop:o,currentTabStopId:pn,onCurrentTabStopIdChange:ie,onEntryFocus:r.y$1(m,d=>{I.isUsingKeyboardRef.current||d.preventDefault()}),preventScrollOnEntryFocus:!0,children:r.ae.jsx(P.so,{role:"menu","aria-orientation":"vertical","data-state":Fe(N.open),"data-radix-menu-content":"",dir:I.dir,...z,...C,ref:fn,style:{outline:"none",...C.style},onKeyDown:r.y$1(C.onKeyDown,d=>{const w=d.target.closest("[data-radix-menu-content]")===d.currentTarget,_=d.ctrlKey||d.altKey||d.metaKey,O=d.key.length===1;w&&(d.key==="Tab"&&d.preventDefault(),!_&&O&&gn(d.key));const E=G.current;if(d.target!==E||!jn.includes(d.key))return;d.preventDefault();const V=ue().filter(T=>!T.disabled).map(T=>T.ref.current);me.includes(d.key)&&V.reverse(),Vn(V)}),onBlur:r.y$1(e.onBlur,d=>{d.currentTarget.contains(d.target)||(window.clearTimeout(q.current),U.current="")}),onPointerMove:r.y$1(e.onPointerMove,$(d=>{const w=d.target,_=J.current!==d.clientX;if(d.currentTarget.contains(w)&&_){const O=d.clientX>J.current?"right":"left";de.current=O,J.current=d.clientX}}))})})})})})})});xe.displayName=x;var Ln="MenuGroup",ae=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.ae.jsx(r.h.div,{role:"group",...o,ref:t})});ae.displayName=Ln;var $n="MenuLabel",_e=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.ae.jsx(r.h.div,{...o,ref:t})});_e.displayName=$n;var X="MenuItem",fe="menu.itemSelect",Y=s.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...a}=e,c=s.useRef(null),l=K(X,e.__scopeMenu),i=te(X,e.__scopeMenu),m=r.i(t,c),h=s.useRef(!1),p=()=>{const u=c.current;if(!n&&u){const f=new CustomEvent(fe,{bubbles:!0,cancelable:!0});u.addEventListener(fe,g=>o==null?void 0:o(g),{once:!0}),r.w(u,f),f.defaultPrevented?h.current=!1:l.onClose()}};return r.ae.jsx(be,{...a,ref:m,disabled:n,onClick:r.y$1(e.onClick,p),onPointerDown:u=>{var f;(f=e.onPointerDown)==null||f.call(e,u),h.current=!0},onPointerUp:r.y$1(e.onPointerUp,u=>{var f;h.current||(f=u.currentTarget)==null||f.click()}),onKeyDown:r.y$1(e.onKeyDown,u=>{const f=i.searchRef.current!=="";n||f&&u.key===" "||ee.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Y.displayName=X;var be=s.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:a,...c}=e,l=te(X,n),i=he(n),m=s.useRef(null),h=r.i(t,m),[p,u]=s.useState(!1),[f,g]=s.useState("");return s.useEffect(()=>{const v=m.current;v&&g((v.textContent??"").trim())},[c.children]),r.ae.jsx(L.ItemSlot,{scope:n,disabled:o,textValue:a??f,children:r.ae.jsx(M.ge,{asChild:!0,...i,focusable:!o,children:r.ae.jsx(r.h.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...c,ref:h,onPointerMove:r.y$1(e.onPointerMove,$(v=>{o?l.onItemLeave(v):(l.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:r.y$1(e.onPointerLeave,$(v=>l.onItemLeave(v))),onFocus:r.y$1(e.onFocus,()=>u(!0)),onBlur:r.y$1(e.onBlur,()=>u(!1))})})})}),An="MenuCheckboxItem",Me=s.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...a}=e;return r.ae.jsx(Ne,{scope:e.__scopeMenu,checked:n,children:r.ae.jsx(Y,{role:"menuitemcheckbox","aria-checked":W(n)?"mixed":n,...a,ref:t,"data-state":ce(n),onSelect:r.y$1(a.onSelect,()=>o==null?void 0:o(W(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Me.displayName=An;var je="MenuRadioGroup",[Kn,zn]=D(je,{value:void 0,onValueChange:()=>{}}),De=s.forwardRef((e,t)=>{const{value:n,onValueChange:o,...a}=e,c=r.n(o);return r.ae.jsx(Kn,{scope:e.__scopeMenu,value:n,onValueChange:c,children:r.ae.jsx(ae,{...a,ref:t})})});De.displayName=je;var Re="MenuRadioItem",Ce=s.forwardRef((e,t)=>{const{value:n,...o}=e,a=zn(Re,e.__scopeMenu),c=n===a.value;return r.ae.jsx(Ne,{scope:e.__scopeMenu,checked:c,children:r.ae.jsx(Y,{role:"menuitemradio","aria-checked":c,...o,ref:t,"data-state":ce(c),onSelect:r.y$1(o.onSelect,()=>{var l;return(l=a.onValueChange)==null?void 0:l.call(a,n)},{checkForDefaultPrevented:!1})})})});Ce.displayName=Re;var se="MenuItemIndicator",[Ne,Bn]=D(se,{checked:!1}),ke=s.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...a}=e,c=Bn(se,n);return r.ae.jsx(r.R,{present:o||W(c.checked)||c.checked===!0,children:r.ae.jsx(r.h.span,{...a,ref:t,"data-state":ce(c.checked)})})});ke.displayName=se;var Gn="MenuSeparator",Oe=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.ae.jsx(r.h.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Oe.displayName=Gn;var qn="MenuArrow",Pe=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,a=H(n);return r.ae.jsx(P.co,{...a,...o,ref:t})});Pe.displayName=qn;var Un="MenuSub",[$r,Ie]=D(Un),S="MenuSubTrigger",Ee=s.forwardRef((e,t)=>{const n=R(S,e.__scopeMenu),o=K(S,e.__scopeMenu),a=Ie(S,e.__scopeMenu),c=te(S,e.__scopeMenu),l=s.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:m}=c,h={__scopeMenu:e.__scopeMenu},p=s.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return s.useEffect(()=>p,[p]),s.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),m(null)}},[i,m]),r.ae.jsx(ne,{asChild:!0,...h,children:r.ae.jsx(be,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":Fe(n.open),...e,ref:r.f(t,a.onTriggerChange),onClick:u=>{var f;(f=e.onClick)==null||f.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:r.y$1(e.onPointerMove,$(u=>{c.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(c.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:r.y$1(e.onPointerLeave,$(u=>{var f,g;p();const v=(f=n.content)==null?void 0:f.getBoundingClientRect();if(v){const C=(g=n.content)==null?void 0:g.dataset.side,N=C==="right",I=N?-5:5,z=v[N?"left":"right"],B=v[N?"right":"left"];c.onPointerGraceIntentChange({area:[{x:u.clientX+I,y:u.clientY},{x:z,y:v.top},{x:B,y:v.top},{x:B,y:v.bottom},{x:z,y:v.bottom}],side:C}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(u),u.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:r.y$1(e.onKeyDown,u=>{var f;const g=c.searchRef.current!=="";e.disabled||g&&u.key===" "||Dn[o.dir].includes(u.key)&&(n.onOpenChange(!0),(f=n.content)==null||f.focus(),u.preventDefault())})})})});Ee.displayName=S;var Te="MenuSubContent",Se=s.forwardRef((e,t)=>{const n=we(x,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,c=R(x,e.__scopeMenu),l=K(x,e.__scopeMenu),i=Ie(Te,e.__scopeMenu),m=s.useRef(null),h=r.i(t,m);return r.ae.jsx(L.Provider,{scope:e.__scopeMenu,children:r.ae.jsx(r.R,{present:o||c.open,children:r.ae.jsx(L.Slot,{scope:e.__scopeMenu,children:r.ae.jsx(oe,{id:i.contentId,"aria-labelledby":i.triggerId,...a,ref:h,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var u;l.isUsingKeyboardRef.current&&((u=m.current)==null||u.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:r.y$1(e.onFocusOutside,p=>{p.target!==i.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:r.y$1(e.onEscapeKeyDown,p=>{l.onClose(),p.preventDefault()}),onKeyDown:r.y$1(e.onKeyDown,p=>{var u;const f=p.currentTarget.contains(p.target),g=Rn[l.dir].includes(p.key);f&&g&&(c.onOpenChange(!1),(u=i.trigger)==null||u.focus(),p.preventDefault())})})})})})});Se.displayName=Te;function Fe(e){return e?"open":"closed"}function W(e){return e==="indeterminate"}function ce(e){return W(e)?"indeterminate":e?"checked":"unchecked"}function Vn(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Xn(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Wn(e,t,n){const o=t.length>1&&Array.from(t).every(i=>i===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let c=Xn(e,Math.max(a,0));o.length===1&&(c=c.filter(i=>i!==n));const l=c.find(i=>i.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Hn(e,t){const{x:n,y:o}=e;let a=!1;for(let c=0,l=t.length-1;c<t.length;l=c++){const i=t[c],m=t[l],h=i.x,p=i.y,u=m.x,f=m.y;p>o!=f>o&&n<(u-h)*(o-p)/(f-p)+h&&(a=!a)}return a}function Yn(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Hn(n,t)}function $(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Zn=ge,Qn=ne,Jn=ye,er=xe,nr=ae,rr=_e,tr=Y,or=Me,ar=De,sr=Ce,cr=ke,ur=Oe,ir=Pe,dr=Ee,lr=Se,Z="DropdownMenu",[pr,Ar]=r.j(Z,[ve]),y=ve(),[fr,Le]=pr(Z),$e=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:a,defaultOpen:c,onOpenChange:l,modal:i=!0}=e,m=y(t),h=s.useRef(null),[p,u]=r.y({prop:a,defaultProp:c??!1,onChange:l,caller:Z});return r.ae.jsx(fr,{scope:t,triggerId:r.g(),triggerRef:h,contentId:r.g(),open:p,onOpenChange:u,onOpenToggle:s.useCallback(()=>u(f=>!f),[u]),modal:i,children:r.ae.jsx(Zn,{...m,open:p,onOpenChange:u,dir:o,modal:i,children:n})})};$e.displayName=Z;var Ae="DropdownMenuTrigger",Ke=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...a}=e,c=Le(Ae,n),l=y(n);return r.ae.jsx(Qn,{asChild:!0,...l,children:r.ae.jsx(r.h.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:r.f(t,c.triggerRef),onPointerDown:r.y$1(e.onPointerDown,i=>{!o&&i.button===0&&i.ctrlKey===!1&&(c.onOpenToggle(),c.open||i.preventDefault())}),onKeyDown:r.y$1(e.onKeyDown,i=>{o||(["Enter"," "].includes(i.key)&&c.onOpenToggle(),i.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Ke.displayName=Ae;var mr="DropdownMenuPortal",ze=e=>{const{__scopeDropdownMenu:t,...n}=e,o=y(t);return r.ae.jsx(Jn,{...o,...n})};ze.displayName=mr;var Be="DropdownMenuContent",Ge=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=Le(Be,n),c=y(n),l=s.useRef(!1);return r.ae.jsx(er,{id:a.contentId,"aria-labelledby":a.triggerId,...c,...o,ref:t,onCloseAutoFocus:r.y$1(e.onCloseAutoFocus,i=>{var m;l.current||(m=a.triggerRef.current)==null||m.focus(),l.current=!1,i.preventDefault()}),onInteractOutside:r.y$1(e.onInteractOutside,i=>{const m=i.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0,p=m.button===2||h;(!a.modal||p)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ge.displayName=Be;var vr="DropdownMenuGroup",hr=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(nr,{...a,...o,ref:t})});hr.displayName=vr;var gr="DropdownMenuLabel",qe=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(rr,{...a,...o,ref:t})});qe.displayName=gr;var wr="DropdownMenuItem",Ue=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(tr,{...a,...o,ref:t})});Ue.displayName=wr;var yr="DropdownMenuCheckboxItem",Ve=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(or,{...a,...o,ref:t})});Ve.displayName=yr;var xr="DropdownMenuRadioGroup",_r=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(ar,{...a,...o,ref:t})});_r.displayName=xr;var br="DropdownMenuRadioItem",Xe=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(sr,{...a,...o,ref:t})});Xe.displayName=br;var Mr="DropdownMenuItemIndicator",We=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(cr,{...a,...o,ref:t})});We.displayName=Mr;var jr="DropdownMenuSeparator",He=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(ur,{...a,...o,ref:t})});He.displayName=jr;var Dr="DropdownMenuArrow",Rr=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(ir,{...a,...o,ref:t})});Rr.displayName=Dr;var Cr="DropdownMenuSubTrigger",Ye=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(dr,{...a,...o,ref:t})});Ye.displayName=Cr;var Nr="DropdownMenuSubContent",Ze=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=y(n);return r.ae.jsx(lr,{...a,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ze.displayName=Nr;var kr=$e,Or=Ke,Pr=ze,Qe=Ge,Je=qe,en=Ue,nn=Ve,rn=Xe,tn=We,on=He,an=Ye,sn=Ze;const Ir=kr,Er=Or,Tr=s.forwardRef(({className:e,inset:t,children:n,...o},a)=>r.ae.jsxs(an,{ref:a,className:j.mo("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[n,r.ae.jsx(_n.e,{className:"ml-auto"})]}));Tr.displayName=an.displayName;const Sr=s.forwardRef(({className:e,...t},n)=>r.ae.jsx(sn,{ref:n,className:j.mo("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",e),...t}));Sr.displayName=sn.displayName;const cn=s.forwardRef(({className:e,sideOffset:t=4,...n},o)=>r.ae.jsx(Pr,{children:r.ae.jsx(Qe,{ref:o,sideOffset:t,className:j.mo("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),...n})}));cn.displayName=Qe.displayName;const un=s.forwardRef(({className:e,inset:t,...n},o)=>r.ae.jsx(en,{ref:o,className:j.mo("focus:bg-accent focus:text-accent-foreground relative flex cursor-default cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n}));un.displayName=en.displayName;const dn=s.forwardRef(({className:e,children:t,checked:n,...o},a)=>r.ae.jsxs(nn,{ref:a,className:j.mo("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...o,children:[r.ae.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.ae.jsx(tn,{children:r.ae.jsx(M.t,{className:"h-4 w-4"})})}),t]}));dn.displayName=nn.displayName;const Fr=s.forwardRef(({className:e,children:t,...n},o)=>r.ae.jsxs(rn,{ref:o,className:j.mo("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[r.ae.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.ae.jsx(tn,{children:r.ae.jsx(M.a,{className:"h-2 w-2 fill-current"})})}),t]}));Fr.displayName=rn.displayName;const Lr=s.forwardRef(({className:e,inset:t,...n},o)=>r.ae.jsx(Je,{ref:o,className:j.mo("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Lr.displayName=Je.displayName;const ln=s.forwardRef(({className:e,...t},n)=>r.ae.jsx(on,{ref:n,className:j.mo("bg-muted -mx-1 my-1 h-px",e),...t}));ln.displayName=on.displayName;exports.At=Er;exports.Tt=Ir;exports.dt=dn;exports.ft=ln;exports.it=cn;exports.ut=un;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as he, y as bn, a, g as me, h as O, b as h,
|
|
1
|
+
import { j as he, y as bn, a, g as me, h as O, b as h, f as we, n as ge, R as H, i as A, w as Dn, S as jn, M as Rn } from "./index-BL59b1Bz-C9bJE_xn.js";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { t as Cn,
|
|
4
|
-
import { M as En, R as Tn, C as Sn, d as
|
|
5
|
-
import { o as ye, i as
|
|
6
|
-
import { e as zn } from "./chevron-right-HWBijj-I-
|
|
3
|
+
import { t as Cn, D as Nn, b as xe, n as kn, g as Pn, F as On, a as In } from "./index-Cths1nBq-BUfZy21E.js";
|
|
4
|
+
import { M as En, R as Tn, C as Sn, d as Fn, S as $n } from "./createLucideIcon-B950nf2d-9wLYOF5y.js";
|
|
5
|
+
import { o as ye, i as An, r as Ln, s as Kn, c as Gn } from "./index-ZsCkaYy6-Cw9HUeiu.js";
|
|
6
|
+
import { e as zn } from "./chevron-right-HWBijj-I-DsFUufdU.js";
|
|
7
7
|
import { m as D } from "./utils-B6fNqzRf-B1_jG1K7.js";
|
|
8
8
|
var ne = ["Enter", " "], Un = ["ArrowDown", "PageUp", "Home"], _e = ["ArrowUp", "PageDown", "End"], Vn = [...Un, ..._e], Bn = {
|
|
9
9
|
ltr: [...ne, "ArrowRight"],
|
|
@@ -11,27 +11,27 @@ var ne = ["Enter", " "], Un = ["ArrowDown", "PageUp", "Home"], _e = ["ArrowUp",
|
|
|
11
11
|
}, Xn = {
|
|
12
12
|
ltr: ["ArrowLeft"],
|
|
13
13
|
rtl: ["ArrowRight"]
|
|
14
|
-
},
|
|
14
|
+
}, L = "Menu", [F, Wn, qn] = Nn(L), [j, Me] = he(L, [
|
|
15
15
|
qn,
|
|
16
16
|
ye,
|
|
17
17
|
xe
|
|
18
|
-
]), Q = ye(), be = xe(), [Hn, R] = j(
|
|
19
|
-
const { __scopeMenu: r, open: n = !1, children: t, dir: o, onOpenChange: c, modal: l = !0 } = e, d = Q(r), [m,
|
|
18
|
+
]), Q = ye(), be = xe(), [Hn, R] = j(L), [Qn, K] = j(L), De = (e) => {
|
|
19
|
+
const { __scopeMenu: r, open: n = !1, children: t, dir: o, onOpenChange: c, modal: l = !0 } = e, d = Q(r), [m, w] = s.useState(null), p = s.useRef(!1), u = ge(c), f = kn(o);
|
|
20
20
|
return s.useEffect(() => {
|
|
21
|
-
const
|
|
21
|
+
const g = () => {
|
|
22
22
|
p.current = !0, document.addEventListener("pointerdown", v, { capture: !0, once: !0 }), document.addEventListener("pointermove", v, { capture: !0, once: !0 });
|
|
23
23
|
}, v = () => p.current = !1;
|
|
24
|
-
return document.addEventListener("keydown",
|
|
25
|
-
document.removeEventListener("keydown",
|
|
24
|
+
return document.addEventListener("keydown", g, { capture: !0 }), () => {
|
|
25
|
+
document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", v, { capture: !0 }), document.removeEventListener("pointermove", v, { capture: !0 });
|
|
26
26
|
};
|
|
27
|
-
}, []), /* @__PURE__ */ a.jsx(
|
|
27
|
+
}, []), /* @__PURE__ */ a.jsx(An, { ...d, children: /* @__PURE__ */ a.jsx(
|
|
28
28
|
Hn,
|
|
29
29
|
{
|
|
30
30
|
scope: r,
|
|
31
31
|
open: n,
|
|
32
32
|
onOpenChange: u,
|
|
33
33
|
content: m,
|
|
34
|
-
onContentChange:
|
|
34
|
+
onContentChange: w,
|
|
35
35
|
children: /* @__PURE__ */ a.jsx(
|
|
36
36
|
Qn,
|
|
37
37
|
{
|
|
@@ -46,11 +46,11 @@ var ne = ["Enter", " "], Un = ["ArrowDown", "PageUp", "Home"], _e = ["ArrowUp",
|
|
|
46
46
|
}
|
|
47
47
|
) });
|
|
48
48
|
};
|
|
49
|
-
De.displayName =
|
|
49
|
+
De.displayName = L;
|
|
50
50
|
var Yn = "MenuAnchor", re = s.forwardRef(
|
|
51
51
|
(e, r) => {
|
|
52
52
|
const { __scopeMenu: n, ...t } = e, o = Q(n);
|
|
53
|
-
return /* @__PURE__ */ a.jsx(
|
|
53
|
+
return /* @__PURE__ */ a.jsx(Ln, { ...o, ...t, ref: r });
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
56
|
re.displayName = Yn;
|
|
@@ -63,12 +63,12 @@ var te = "MenuPortal", [Zn, je] = j(te, {
|
|
|
63
63
|
Re.displayName = te;
|
|
64
64
|
var _ = "MenuContent", [Jn, oe] = j(_), Ce = s.forwardRef(
|
|
65
65
|
(e, r) => {
|
|
66
|
-
const n = je(_, e.__scopeMenu), { forceMount: t = n.forceMount, ...o } = e, c = R(_, e.__scopeMenu), l =
|
|
67
|
-
return /* @__PURE__ */ a.jsx(
|
|
66
|
+
const n = je(_, e.__scopeMenu), { forceMount: t = n.forceMount, ...o } = e, c = R(_, e.__scopeMenu), l = K(_, e.__scopeMenu);
|
|
67
|
+
return /* @__PURE__ */ a.jsx(F.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(H, { present: t || c.open, children: /* @__PURE__ */ a.jsx(F.Slot, { scope: e.__scopeMenu, children: l.modal ? /* @__PURE__ */ a.jsx(er, { ...o, ref: r }) : /* @__PURE__ */ a.jsx(nr, { ...o, ref: r }) }) }) });
|
|
68
68
|
}
|
|
69
69
|
), er = s.forwardRef(
|
|
70
70
|
(e, r) => {
|
|
71
|
-
const n = R(_, e.__scopeMenu), t = s.useRef(null), o =
|
|
71
|
+
const n = R(_, e.__scopeMenu), t = s.useRef(null), o = A(r, t);
|
|
72
72
|
return s.useEffect(() => {
|
|
73
73
|
const c = t.current;
|
|
74
74
|
if (c) return Tn(c);
|
|
@@ -112,14 +112,14 @@ var _ = "MenuContent", [Jn, oe] = j(_), Ce = s.forwardRef(
|
|
|
112
112
|
onCloseAutoFocus: l,
|
|
113
113
|
disableOutsidePointerEvents: d,
|
|
114
114
|
onEntryFocus: m,
|
|
115
|
-
onEscapeKeyDown:
|
|
115
|
+
onEscapeKeyDown: w,
|
|
116
116
|
onPointerDownOutside: p,
|
|
117
117
|
onFocusOutside: u,
|
|
118
118
|
onInteractOutside: f,
|
|
119
|
-
onDismiss:
|
|
119
|
+
onDismiss: g,
|
|
120
120
|
disableOutsideScroll: v,
|
|
121
121
|
...C
|
|
122
|
-
} = e, N = R(_, n), I =
|
|
122
|
+
} = e, N = R(_, n), I = K(_, n), G = Q(n), z = be(n), de = Wn(n), [vn, ie] = s.useState(null), U = s.useRef(null), hn = A(r, U, N.onContentChange), V = s.useRef(0), B = s.useRef(""), wn = s.useRef(0), J = s.useRef(null), le = s.useRef("right"), ee = s.useRef(0), gn = v ? Fn : s.Fragment, xn = v ? { as: rr, allowPinchZoom: !0 } : void 0, yn = (i) => {
|
|
123
123
|
var x, M;
|
|
124
124
|
const P = B.current + i, E = de().filter((b) => !b.disabled), X = document.activeElement, T = (x = E.find((b) => b.ref.current === X)) == null ? void 0 : x.textValue, _n = E.map((b) => b.textValue), Mn = mr(_n, P, T), pe = (M = E.find((b) => b.textValue === Mn)) == null ? void 0 : M.ref.current;
|
|
125
125
|
(function b(fe) {
|
|
@@ -155,12 +155,12 @@ var _ = "MenuContent", [Jn, oe] = j(_), Ce = s.forwardRef(
|
|
|
155
155
|
},
|
|
156
156
|
[k]
|
|
157
157
|
),
|
|
158
|
-
pointerGraceTimerRef:
|
|
158
|
+
pointerGraceTimerRef: wn,
|
|
159
159
|
onPointerGraceIntentChange: s.useCallback((i) => {
|
|
160
160
|
J.current = i;
|
|
161
161
|
}, []),
|
|
162
|
-
children: /* @__PURE__ */ a.jsx(
|
|
163
|
-
|
|
162
|
+
children: /* @__PURE__ */ a.jsx(gn, { ...xn, children: /* @__PURE__ */ a.jsx(
|
|
163
|
+
$n,
|
|
164
164
|
{
|
|
165
165
|
asChild: !0,
|
|
166
166
|
trapped: o,
|
|
@@ -174,11 +174,11 @@ var _ = "MenuContent", [Jn, oe] = j(_), Ce = s.forwardRef(
|
|
|
174
174
|
{
|
|
175
175
|
asChild: !0,
|
|
176
176
|
disableOutsidePointerEvents: d,
|
|
177
|
-
onEscapeKeyDown:
|
|
177
|
+
onEscapeKeyDown: w,
|
|
178
178
|
onPointerDownOutside: p,
|
|
179
179
|
onFocusOutside: u,
|
|
180
180
|
onInteractOutside: f,
|
|
181
|
-
onDismiss:
|
|
181
|
+
onDismiss: g,
|
|
182
182
|
children: /* @__PURE__ */ a.jsx(
|
|
183
183
|
On,
|
|
184
184
|
{
|
|
@@ -194,7 +194,7 @@ var _ = "MenuContent", [Jn, oe] = j(_), Ce = s.forwardRef(
|
|
|
194
194
|
}),
|
|
195
195
|
preventScrollOnEntryFocus: !0,
|
|
196
196
|
children: /* @__PURE__ */ a.jsx(
|
|
197
|
-
|
|
197
|
+
Kn,
|
|
198
198
|
{
|
|
199
199
|
role: "menu",
|
|
200
200
|
"aria-orientation": "vertical",
|
|
@@ -219,7 +219,7 @@ var _ = "MenuContent", [Jn, oe] = j(_), Ce = s.forwardRef(
|
|
|
219
219
|
}),
|
|
220
220
|
onPointerMove: h(
|
|
221
221
|
e.onPointerMove,
|
|
222
|
-
|
|
222
|
+
$((i) => {
|
|
223
223
|
const x = i.target, M = ee.current !== i.clientX;
|
|
224
224
|
if (i.currentTarget.contains(x) && M) {
|
|
225
225
|
const P = i.clientX > ee.current ? "right" : "left";
|
|
@@ -256,11 +256,11 @@ var or = "MenuLabel", Ne = s.forwardRef(
|
|
|
256
256
|
Ne.displayName = or;
|
|
257
257
|
var W = "MenuItem", ve = "menu.itemSelect", Y = s.forwardRef(
|
|
258
258
|
(e, r) => {
|
|
259
|
-
const { disabled: n = !1, onSelect: t, ...o } = e, c = s.useRef(null), l =
|
|
259
|
+
const { disabled: n = !1, onSelect: t, ...o } = e, c = s.useRef(null), l = K(W, e.__scopeMenu), d = oe(W, e.__scopeMenu), m = A(r, c), w = s.useRef(!1), p = () => {
|
|
260
260
|
const u = c.current;
|
|
261
261
|
if (!n && u) {
|
|
262
262
|
const f = new CustomEvent(ve, { bubbles: !0, cancelable: !0 });
|
|
263
|
-
u.addEventListener(ve, (
|
|
263
|
+
u.addEventListener(ve, (g) => t == null ? void 0 : t(g), { once: !0 }), Dn(u, f), f.defaultPrevented ? w.current = !1 : l.onClose();
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
266
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -272,11 +272,11 @@ var W = "MenuItem", ve = "menu.itemSelect", Y = s.forwardRef(
|
|
|
272
272
|
onClick: h(e.onClick, p),
|
|
273
273
|
onPointerDown: (u) => {
|
|
274
274
|
var f;
|
|
275
|
-
(f = e.onPointerDown) == null || f.call(e, u),
|
|
275
|
+
(f = e.onPointerDown) == null || f.call(e, u), w.current = !0;
|
|
276
276
|
},
|
|
277
277
|
onPointerUp: h(e.onPointerUp, (u) => {
|
|
278
278
|
var f;
|
|
279
|
-
|
|
279
|
+
w.current || (f = u.currentTarget) == null || f.click();
|
|
280
280
|
}),
|
|
281
281
|
onKeyDown: h(e.onKeyDown, (u) => {
|
|
282
282
|
const f = d.searchRef.current !== "";
|
|
@@ -289,12 +289,12 @@ var W = "MenuItem", ve = "menu.itemSelect", Y = s.forwardRef(
|
|
|
289
289
|
Y.displayName = W;
|
|
290
290
|
var ke = s.forwardRef(
|
|
291
291
|
(e, r) => {
|
|
292
|
-
const { __scopeMenu: n, disabled: t = !1, textValue: o, ...c } = e, l = oe(W, n), d = be(n), m = s.useRef(null),
|
|
292
|
+
const { __scopeMenu: n, disabled: t = !1, textValue: o, ...c } = e, l = oe(W, n), d = be(n), m = s.useRef(null), w = A(r, m), [p, u] = s.useState(!1), [f, g] = s.useState("");
|
|
293
293
|
return s.useEffect(() => {
|
|
294
294
|
const v = m.current;
|
|
295
|
-
v &&
|
|
295
|
+
v && g((v.textContent ?? "").trim());
|
|
296
296
|
}, [c.children]), /* @__PURE__ */ a.jsx(
|
|
297
|
-
|
|
297
|
+
F.ItemSlot,
|
|
298
298
|
{
|
|
299
299
|
scope: n,
|
|
300
300
|
disabled: t,
|
|
@@ -307,16 +307,16 @@ var ke = s.forwardRef(
|
|
|
307
307
|
"aria-disabled": t || void 0,
|
|
308
308
|
"data-disabled": t ? "" : void 0,
|
|
309
309
|
...c,
|
|
310
|
-
ref:
|
|
310
|
+
ref: w,
|
|
311
311
|
onPointerMove: h(
|
|
312
312
|
e.onPointerMove,
|
|
313
|
-
|
|
313
|
+
$((v) => {
|
|
314
314
|
t ? l.onItemLeave(v) : (l.onItemEnter(v), v.defaultPrevented || v.currentTarget.focus({ preventScroll: !0 }));
|
|
315
315
|
})
|
|
316
316
|
),
|
|
317
317
|
onPointerLeave: h(
|
|
318
318
|
e.onPointerLeave,
|
|
319
|
-
|
|
319
|
+
$((v) => l.onItemLeave(v))
|
|
320
320
|
),
|
|
321
321
|
onFocus: h(e.onFocus, () => u(!0)),
|
|
322
322
|
onBlur: h(e.onBlur, () => u(!1))
|
|
@@ -352,7 +352,7 @@ var Oe = "MenuRadioGroup", [sr, cr] = j(
|
|
|
352
352
|
} }
|
|
353
353
|
), Ie = s.forwardRef(
|
|
354
354
|
(e, r) => {
|
|
355
|
-
const { value: n, onValueChange: t, ...o } = e, c =
|
|
355
|
+
const { value: n, onValueChange: t, ...o } = e, c = ge(t);
|
|
356
356
|
return /* @__PURE__ */ a.jsx(sr, { scope: e.__scopeMenu, value: n, onValueChange: c, children: /* @__PURE__ */ a.jsx(se, { ...o, ref: r }) });
|
|
357
357
|
}
|
|
358
358
|
);
|
|
@@ -384,7 +384,7 @@ Te.displayName = Ee;
|
|
|
384
384
|
var ce = "MenuItemIndicator", [Se, ur] = j(
|
|
385
385
|
ce,
|
|
386
386
|
{ checked: !1 }
|
|
387
|
-
),
|
|
387
|
+
), Fe = s.forwardRef(
|
|
388
388
|
(e, r) => {
|
|
389
389
|
const { __scopeMenu: n, forceMount: t, ...o } = e, c = ur(ce, n);
|
|
390
390
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -403,8 +403,8 @@ var ce = "MenuItemIndicator", [Se, ur] = j(
|
|
|
403
403
|
);
|
|
404
404
|
}
|
|
405
405
|
);
|
|
406
|
-
|
|
407
|
-
var dr = "MenuSeparator",
|
|
406
|
+
Fe.displayName = ce;
|
|
407
|
+
var dr = "MenuSeparator", $e = s.forwardRef(
|
|
408
408
|
(e, r) => {
|
|
409
409
|
const { __scopeMenu: n, ...t } = e;
|
|
410
410
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -418,17 +418,17 @@ var dr = "MenuSeparator", Fe = s.forwardRef(
|
|
|
418
418
|
);
|
|
419
419
|
}
|
|
420
420
|
);
|
|
421
|
-
|
|
422
|
-
var ir = "MenuArrow",
|
|
421
|
+
$e.displayName = dr;
|
|
422
|
+
var ir = "MenuArrow", Ae = s.forwardRef(
|
|
423
423
|
(e, r) => {
|
|
424
424
|
const { __scopeMenu: n, ...t } = e, o = Q(n);
|
|
425
425
|
return /* @__PURE__ */ a.jsx(Gn, { ...o, ...t, ref: r });
|
|
426
426
|
}
|
|
427
427
|
);
|
|
428
|
-
|
|
429
|
-
var lr = "MenuSub", [pt,
|
|
428
|
+
Ae.displayName = ir;
|
|
429
|
+
var lr = "MenuSub", [pt, Le] = j(lr), S = "MenuSubTrigger", Ke = s.forwardRef(
|
|
430
430
|
(e, r) => {
|
|
431
|
-
const n = R(S, e.__scopeMenu), t =
|
|
431
|
+
const n = R(S, e.__scopeMenu), t = K(S, e.__scopeMenu), o = Le(S, e.__scopeMenu), c = oe(S, e.__scopeMenu), l = s.useRef(null), { pointerGraceTimerRef: d, onPointerGraceIntentChange: m } = c, w = { __scopeMenu: e.__scopeMenu }, p = s.useCallback(() => {
|
|
432
432
|
l.current && window.clearTimeout(l.current), l.current = null;
|
|
433
433
|
}, []);
|
|
434
434
|
return s.useEffect(() => p, [p]), s.useEffect(() => {
|
|
@@ -436,7 +436,7 @@ var lr = "MenuSub", [pt, Ke] = j(lr), S = "MenuSubTrigger", Ae = s.forwardRef(
|
|
|
436
436
|
return () => {
|
|
437
437
|
window.clearTimeout(u), m(null);
|
|
438
438
|
};
|
|
439
|
-
}, [d, m]), /* @__PURE__ */ a.jsx(re, { asChild: !0, ...
|
|
439
|
+
}, [d, m]), /* @__PURE__ */ a.jsx(re, { asChild: !0, ...w, children: /* @__PURE__ */ a.jsx(
|
|
440
440
|
ke,
|
|
441
441
|
{
|
|
442
442
|
id: o.triggerId,
|
|
@@ -445,14 +445,14 @@ var lr = "MenuSub", [pt, Ke] = j(lr), S = "MenuSubTrigger", Ae = s.forwardRef(
|
|
|
445
445
|
"aria-controls": o.contentId,
|
|
446
446
|
"data-state": Ue(n.open),
|
|
447
447
|
...e,
|
|
448
|
-
ref:
|
|
448
|
+
ref: we(r, o.onTriggerChange),
|
|
449
449
|
onClick: (u) => {
|
|
450
450
|
var f;
|
|
451
451
|
(f = e.onClick) == null || f.call(e, u), !(e.disabled || u.defaultPrevented) && (u.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
452
452
|
},
|
|
453
453
|
onPointerMove: h(
|
|
454
454
|
e.onPointerMove,
|
|
455
|
-
|
|
455
|
+
$((u) => {
|
|
456
456
|
c.onItemEnter(u), !u.defaultPrevented && !e.disabled && !n.open && !l.current && (c.onPointerGraceIntentChange(null), l.current = window.setTimeout(() => {
|
|
457
457
|
n.onOpenChange(!0), p();
|
|
458
458
|
}, 100));
|
|
@@ -460,12 +460,12 @@ var lr = "MenuSub", [pt, Ke] = j(lr), S = "MenuSubTrigger", Ae = s.forwardRef(
|
|
|
460
460
|
),
|
|
461
461
|
onPointerLeave: h(
|
|
462
462
|
e.onPointerLeave,
|
|
463
|
-
|
|
464
|
-
var f,
|
|
463
|
+
$((u) => {
|
|
464
|
+
var f, g;
|
|
465
465
|
p();
|
|
466
466
|
const v = (f = n.content) == null ? void 0 : f.getBoundingClientRect();
|
|
467
467
|
if (v) {
|
|
468
|
-
const C = (
|
|
468
|
+
const C = (g = n.content) == null ? void 0 : g.dataset.side, N = C === "right", I = N ? -5 : 5, G = v[N ? "left" : "right"], z = v[N ? "right" : "left"];
|
|
469
469
|
c.onPointerGraceIntentChange({
|
|
470
470
|
area: [
|
|
471
471
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
@@ -489,24 +489,24 @@ var lr = "MenuSub", [pt, Ke] = j(lr), S = "MenuSubTrigger", Ae = s.forwardRef(
|
|
|
489
489
|
),
|
|
490
490
|
onKeyDown: h(e.onKeyDown, (u) => {
|
|
491
491
|
var f;
|
|
492
|
-
const
|
|
493
|
-
e.disabled ||
|
|
492
|
+
const g = c.searchRef.current !== "";
|
|
493
|
+
e.disabled || g && u.key === " " || Bn[t.dir].includes(u.key) && (n.onOpenChange(!0), (f = n.content) == null || f.focus(), u.preventDefault());
|
|
494
494
|
})
|
|
495
495
|
}
|
|
496
496
|
) });
|
|
497
497
|
}
|
|
498
498
|
);
|
|
499
|
-
|
|
499
|
+
Ke.displayName = S;
|
|
500
500
|
var Ge = "MenuSubContent", ze = s.forwardRef(
|
|
501
501
|
(e, r) => {
|
|
502
|
-
const n = je(_, e.__scopeMenu), { forceMount: t = n.forceMount, ...o } = e, c = R(_, e.__scopeMenu), l =
|
|
503
|
-
return /* @__PURE__ */ a.jsx(
|
|
502
|
+
const n = je(_, e.__scopeMenu), { forceMount: t = n.forceMount, ...o } = e, c = R(_, e.__scopeMenu), l = K(_, e.__scopeMenu), d = Le(Ge, e.__scopeMenu), m = s.useRef(null), w = A(r, m);
|
|
503
|
+
return /* @__PURE__ */ a.jsx(F.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(H, { present: t || c.open, children: /* @__PURE__ */ a.jsx(F.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
|
|
504
504
|
ae,
|
|
505
505
|
{
|
|
506
506
|
id: d.contentId,
|
|
507
507
|
"aria-labelledby": d.triggerId,
|
|
508
508
|
...o,
|
|
509
|
-
ref:
|
|
509
|
+
ref: w,
|
|
510
510
|
align: "start",
|
|
511
511
|
side: l.dir === "rtl" ? "left" : "right",
|
|
512
512
|
disableOutsidePointerEvents: !1,
|
|
@@ -525,8 +525,8 @@ var Ge = "MenuSubContent", ze = s.forwardRef(
|
|
|
525
525
|
}),
|
|
526
526
|
onKeyDown: h(e.onKeyDown, (p) => {
|
|
527
527
|
var u;
|
|
528
|
-
const f = p.currentTarget.contains(p.target),
|
|
529
|
-
f &&
|
|
528
|
+
const f = p.currentTarget.contains(p.target), g = Xn[l.dir].includes(p.key);
|
|
529
|
+
f && g && (c.onOpenChange(!1), (u = d.trigger) == null || u.focus(), p.preventDefault());
|
|
530
530
|
})
|
|
531
531
|
}
|
|
532
532
|
) }) }) });
|
|
@@ -563,8 +563,8 @@ function vr(e, r) {
|
|
|
563
563
|
const { x: n, y: t } = e;
|
|
564
564
|
let o = !1;
|
|
565
565
|
for (let c = 0, l = r.length - 1; c < r.length; l = c++) {
|
|
566
|
-
const d = r[c], m = r[l],
|
|
567
|
-
p > t != f > t && n < (u -
|
|
566
|
+
const d = r[c], m = r[l], w = d.x, p = d.y, u = m.x, f = m.y;
|
|
567
|
+
p > t != f > t && n < (u - w) * (t - p) / (f - p) + w && (o = !o);
|
|
568
568
|
}
|
|
569
569
|
return o;
|
|
570
570
|
}
|
|
@@ -573,10 +573,10 @@ function hr(e, r) {
|
|
|
573
573
|
const n = { x: e.clientX, y: e.clientY };
|
|
574
574
|
return vr(n, r);
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function $(e) {
|
|
577
577
|
return (r) => r.pointerType === "mouse" ? e(r) : void 0;
|
|
578
578
|
}
|
|
579
|
-
var
|
|
579
|
+
var wr = De, gr = re, xr = Re, yr = Ce, _r = se, Mr = Ne, br = Y, Dr = Pe, jr = Ie, Rr = Te, Cr = Fe, Nr = $e, kr = Ae, Pr = Ke, Or = ze, Z = "DropdownMenu", [Ir, ft] = he(
|
|
580
580
|
Z,
|
|
581
581
|
[Me]
|
|
582
582
|
), y = Me(), [Er, Ve] = Ir(Z), Be = (e) => {
|
|
@@ -588,7 +588,7 @@ var gr = De, wr = re, xr = Re, yr = Ce, _r = se, Mr = Ne, br = Y, Dr = Pe, jr =
|
|
|
588
588
|
defaultOpen: c,
|
|
589
589
|
onOpenChange: l,
|
|
590
590
|
modal: d = !0
|
|
591
|
-
} = e, m = y(r),
|
|
591
|
+
} = e, m = y(r), w = s.useRef(null), [p, u] = bn({
|
|
592
592
|
prop: o,
|
|
593
593
|
defaultProp: c ?? !1,
|
|
594
594
|
onChange: l,
|
|
@@ -599,13 +599,13 @@ var gr = De, wr = re, xr = Re, yr = Ce, _r = se, Mr = Ne, br = Y, Dr = Pe, jr =
|
|
|
599
599
|
{
|
|
600
600
|
scope: r,
|
|
601
601
|
triggerId: me(),
|
|
602
|
-
triggerRef:
|
|
602
|
+
triggerRef: w,
|
|
603
603
|
contentId: me(),
|
|
604
604
|
open: p,
|
|
605
605
|
onOpenChange: u,
|
|
606
606
|
onOpenToggle: s.useCallback(() => u((f) => !f), [u]),
|
|
607
607
|
modal: d,
|
|
608
|
-
children: /* @__PURE__ */ a.jsx(
|
|
608
|
+
children: /* @__PURE__ */ a.jsx(wr, { ...m, open: p, onOpenChange: u, dir: t, modal: d, children: n })
|
|
609
609
|
}
|
|
610
610
|
);
|
|
611
611
|
};
|
|
@@ -613,7 +613,7 @@ Be.displayName = Z;
|
|
|
613
613
|
var Xe = "DropdownMenuTrigger", We = s.forwardRef(
|
|
614
614
|
(e, r) => {
|
|
615
615
|
const { __scopeDropdownMenu: n, disabled: t = !1, ...o } = e, c = Ve(Xe, n), l = y(n);
|
|
616
|
-
return /* @__PURE__ */ a.jsx(
|
|
616
|
+
return /* @__PURE__ */ a.jsx(gr, { asChild: !0, ...l, children: /* @__PURE__ */ a.jsx(
|
|
617
617
|
O.button,
|
|
618
618
|
{
|
|
619
619
|
type: "button",
|
|
@@ -625,7 +625,7 @@ var Xe = "DropdownMenuTrigger", We = s.forwardRef(
|
|
|
625
625
|
"data-disabled": t ? "" : void 0,
|
|
626
626
|
disabled: t,
|
|
627
627
|
...o,
|
|
628
|
-
ref:
|
|
628
|
+
ref: we(r, c.triggerRef),
|
|
629
629
|
onPointerDown: h(e.onPointerDown, (d) => {
|
|
630
630
|
!t && d.button === 0 && d.ctrlKey === !1 && (c.onOpenToggle(), c.open || d.preventDefault());
|
|
631
631
|
}),
|
|
@@ -658,7 +658,7 @@ var He = "DropdownMenuContent", Qe = s.forwardRef(
|
|
|
658
658
|
l.current || (m = o.triggerRef.current) == null || m.focus(), l.current = !1, d.preventDefault();
|
|
659
659
|
}),
|
|
660
660
|
onInteractOutside: h(e.onInteractOutside, (d) => {
|
|
661
|
-
const m = d.detail.originalEvent,
|
|
661
|
+
const m = d.detail.originalEvent, w = m.button === 0 && m.ctrlKey === !0, p = m.button === 2 || w;
|
|
662
662
|
(!o.modal || p) && (l.current = !0);
|
|
663
663
|
}),
|
|
664
664
|
style: {
|
|
@@ -674,37 +674,37 @@ var He = "DropdownMenuContent", Qe = s.forwardRef(
|
|
|
674
674
|
}
|
|
675
675
|
);
|
|
676
676
|
Qe.displayName = He;
|
|
677
|
-
var Sr = "DropdownMenuGroup",
|
|
677
|
+
var Sr = "DropdownMenuGroup", Fr = s.forwardRef(
|
|
678
678
|
(e, r) => {
|
|
679
679
|
const { __scopeDropdownMenu: n, ...t } = e, o = y(n);
|
|
680
680
|
return /* @__PURE__ */ a.jsx(_r, { ...o, ...t, ref: r });
|
|
681
681
|
}
|
|
682
682
|
);
|
|
683
|
-
|
|
684
|
-
var
|
|
683
|
+
Fr.displayName = Sr;
|
|
684
|
+
var $r = "DropdownMenuLabel", Ye = s.forwardRef(
|
|
685
685
|
(e, r) => {
|
|
686
686
|
const { __scopeDropdownMenu: n, ...t } = e, o = y(n);
|
|
687
687
|
return /* @__PURE__ */ a.jsx(Mr, { ...o, ...t, ref: r });
|
|
688
688
|
}
|
|
689
689
|
);
|
|
690
|
-
Ye.displayName =
|
|
691
|
-
var
|
|
690
|
+
Ye.displayName = $r;
|
|
691
|
+
var Ar = "DropdownMenuItem", Ze = s.forwardRef(
|
|
692
692
|
(e, r) => {
|
|
693
693
|
const { __scopeDropdownMenu: n, ...t } = e, o = y(n);
|
|
694
694
|
return /* @__PURE__ */ a.jsx(br, { ...o, ...t, ref: r });
|
|
695
695
|
}
|
|
696
696
|
);
|
|
697
|
-
Ze.displayName =
|
|
698
|
-
var
|
|
697
|
+
Ze.displayName = Ar;
|
|
698
|
+
var Lr = "DropdownMenuCheckboxItem", Je = s.forwardRef((e, r) => {
|
|
699
699
|
const { __scopeDropdownMenu: n, ...t } = e, o = y(n);
|
|
700
700
|
return /* @__PURE__ */ a.jsx(Dr, { ...o, ...t, ref: r });
|
|
701
701
|
});
|
|
702
|
-
Je.displayName =
|
|
703
|
-
var
|
|
702
|
+
Je.displayName = Lr;
|
|
703
|
+
var Kr = "DropdownMenuRadioGroup", Gr = s.forwardRef((e, r) => {
|
|
704
704
|
const { __scopeDropdownMenu: n, ...t } = e, o = y(n);
|
|
705
705
|
return /* @__PURE__ */ a.jsx(jr, { ...o, ...t, ref: r });
|
|
706
706
|
});
|
|
707
|
-
Gr.displayName =
|
|
707
|
+
Gr.displayName = Kr;
|
|
708
708
|
var zr = "DropdownMenuRadioItem", en = s.forwardRef((e, r) => {
|
|
709
709
|
const { __scopeDropdownMenu: n, ...t } = e, o = y(n);
|
|
710
710
|
return /* @__PURE__ */ a.jsx(Rr, { ...o, ...t, ref: r });
|
|
@@ -864,10 +864,10 @@ const at = s.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ a.jsx(
|
|
|
864
864
|
));
|
|
865
865
|
at.displayName = pn.displayName;
|
|
866
866
|
export {
|
|
867
|
-
vt as
|
|
867
|
+
vt as A,
|
|
868
|
+
mt as T,
|
|
868
869
|
rt as d,
|
|
869
870
|
at as f,
|
|
870
871
|
et as i,
|
|
871
|
-
mt as j,
|
|
872
872
|
nt as u
|
|
873
873
|
};
|
package/dist/hooks/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ve=require("../useSortable-ByFhUHQb.cjs"),V=require("../jsx-runtime-h4oGeKUK.cjs"),$=require("react"),U=require("../unstyled-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ve=require("../useSortable-ByFhUHQb.cjs"),V=require("../jsx-runtime-h4oGeKUK.cjs"),$=require("react"),U=require("../unstyled-BFCMBSGZ.cjs"),Ee=require("../lodash-C5w_OPmE.cjs"),Ye=require("../useFilter-Cwz8oftI.cjs"),je=require("../_commonjsHelpers-DKOUU3wS.cjs"),We=require("../useTheme-DSAqyhTz.cjs"),Fe=()=>{const e=$.useCallback(({onConfirm:a})=>{const n=Ee.lodashExports.uniqueId();U.y.warning(V.jsxRuntimeExports.jsx(V.jsxRuntimeExports.Fragment,{}),{toastId:n,autoClose:!1}),U.y.update(n,{position:"bottom-left",render:V.jsxRuntimeExports.jsx(U.Confirm,{defaultOpen:!0,onConfirm:()=>{a(),U.y.dismiss(n)}})})},[]),o=$.useCallback(({onSubmit:a})=>{const n=Ee.lodashExports.uniqueId();U.y.warning(V.jsxRuntimeExports.jsx(V.jsxRuntimeExports.Fragment,{}),{position:"bottom-left",toastId:n,autoClose:!1}),U.y.update(n,{render:V.jsxRuntimeExports.jsx(U.PasswordConfirm,{defaultOpen:!0,onSubmit:f=>{a(f),U.y.dismiss(n)}})})},[]);return{confirm:e,confirmPassword:o}},Ue=(e,o=!1)=>{const a=$.useRef(document.title);$.useEffect(()=>(o&&a.current===document.title&&(a.current=document.title),document.title=e,()=>{o&&(document.title=a.current)}),[e,o])};var G={},Te;function ze(){if(Te)return G;Te=1,G.match=c,G.parse=l;var e=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,a=/^(?:(min|max)-)?(.+)/,n=/(em|rem|px|cm|mm|in|pt|pc)?$/,f=/(dpi|dpcm|dppx)?$/;function c(d,u){return l(d).some(function(v){var g=v.inverse,q=v.type==="all"||u.type===v.type;if(q&&g||!(q||g))return!1;var A=v.expressions.every(function(j){var D=j.feature,Y=j.modifier,x=j.value,R=u[D];if(!R)return!1;switch(D){case"orientation":case"scan":return R.toLowerCase()===x.toLowerCase();case"width":case"height":case"device-width":case"device-height":x=C(x),R=C(R);break;case"resolution":x=m(x),R=m(R);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":x=p(x),R=p(R);break;case"grid":case"color":case"color-index":case"monochrome":x=parseInt(x,10)||1,R=parseInt(R,10)||0;break}switch(Y){case"min":return R>=x;case"max":return R<=x;default:return R===x}});return A&&!g||!A&&g})}function l(d){return d.split(",").map(function(u){u=u.trim();var v=u.match(e),g=v[1],q=v[2],A=v[3]||"",j={};return j.inverse=!!g&&g.toLowerCase()==="not",j.type=q?q.toLowerCase():"all",A=A.match(/\([^\)]+\)/g)||[],j.expressions=A.map(function(D){var Y=D.match(o),x=Y[1].toLowerCase().match(a);return{modifier:x[1],feature:x[2],value:Y[2]}}),j})}function p(d){var u=Number(d),v;return u||(v=d.match(/^(\d+)\s*\/\s*(\d+)$/),u=v[1]/v[2]),u}function m(d){var u=parseFloat(d),v=String(d).match(f)[1];switch(v){case"dpcm":return u/2.54;case"dppx":return u*96;default:return u}}function C(d){var u=parseFloat(d),v=String(d).match(n)[1];switch(v){case"em":return u*16;case"rem":return u*16;case"cm":return u*96/2.54;case"mm":return u*96/2.54/10;case"in":return u*96;case"pt":return u*72;case"pc":return u*72/12;default:return u}}return G}var ce,ge;function Ne(){if(ge)return ce;ge=1;var e=ze().match,o=typeof window<"u"?window.matchMedia:null;function a(f,c,l){var p=this,m;o&&!l&&(m=o.call(window,f)),m?(this.matches=m.matches,this.media=m.media,m.addListener(u)):(this.matches=e(f,c),this.media=f),this.addListener=C,this.removeListener=d,this.dispose=v;function C(g){m&&m.addListener(g)}function d(g){m&&m.removeListener(g)}function u(g){p.matches=g.matches,p.media=g.media}function v(){m&&m.removeListener(u)}}function n(f,c,l){return new a(f,c,l)}return ce=n,ce}var He=Ne();const Qe=je.getDefaultExportFromCjs(He);var Ve=/[A-Z]/g,Ke=/^ms-/,ue={};function Je(e){return"-"+e.toLowerCase()}function qe(e){if(ue.hasOwnProperty(e))return ue[e];var o=e.replace(Ve,Je);return ue[e]=Ke.test(o)?"-"+o:o}function Xe(e,o){if(e===o)return!0;if(!e||!o)return!1;const a=Object.keys(e),n=Object.keys(o),f=a.length;if(n.length!==f)return!1;for(let c=0;c<f;c++){const l=a[c];if(e[l]!==o[l]||!Object.prototype.hasOwnProperty.call(o,l))return!1}return!0}var Z={exports:{}},B={exports:{}},_={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
package/dist/hooks/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as jr, a as qr, u as $r } from "../useSortable-DRvyr1Gy.js";
|
|
2
2
|
import { j as Q } from "../jsx-runtime-DS1N_tNq.js";
|
|
3
3
|
import { useCallback as Ee, useRef as qe, useEffect as F, useContext as Fe, createContext as Ue, useState as ee } from "react";
|
|
4
|
-
import { y as V, C as Ne, P as ze } from "../unstyled-
|
|
4
|
+
import { y as V, C as Ne, P as ze } from "../unstyled-BMbrfzye.js";
|
|
5
5
|
import { l as ge } from "../lodash-CYNxjS-I.js";
|
|
6
6
|
import { u as Lr } from "../useFilter-DJunNBm2.js";
|
|
7
7
|
import { g as $e } from "../_commonjsHelpers-DaMA6jEr.js";
|