@radix-ui/react-context-menu 0.1.7-rc.4 → 0.1.7-rc.42

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/index.d.ts CHANGED
@@ -4,19 +4,28 @@ import { Primitive } from "@radix-ui/react-primitive";
4
4
  import * as MenuPrimitive from "@radix-ui/react-menu";
5
5
  type Direction = 'ltr' | 'rtl';
6
6
  export const createContextMenuScope: import("@radix-ui/react-context").CreateScope;
7
+ type MenuRootProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Root>;
7
8
  export interface ContextMenuProps {
8
9
  children?: React.ReactNode;
9
10
  onOpenChange?(open: boolean): void;
10
11
  dir?: Direction;
11
12
  modal?: boolean;
13
+ /**
14
+ * @see https://github.com/theKashey/react-remove-scroll#usage
15
+ */
16
+ allowPinchZoom?: MenuRootProps['allowPinchZoom'];
12
17
  }
13
18
  export const ContextMenu: React.FC<ContextMenuProps>;
14
19
  type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
15
20
  export interface ContextMenuTriggerProps extends PrimitiveSpanProps {
16
21
  }
17
22
  export const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
23
+ type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
24
+ export interface ContextMenuPortalProps extends MenuPortalProps {
25
+ }
26
+ export const ContextMenuPortal: React.FC<ContextMenuPortalProps>;
18
27
  type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
19
- export interface ContextMenuContentProps extends Omit<MenuContentProps, 'portalled' | 'side' | 'align'> {
28
+ export interface ContextMenuContentProps extends Omit<MenuContentProps, 'side' | 'sideOffset' | 'align'> {
20
29
  }
21
30
  export const ContextMenuContent: React.ForwardRefExoticComponent<ContextMenuContentProps & React.RefAttributes<HTMLDivElement>>;
22
31
  type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
@@ -31,10 +40,6 @@ type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
31
40
  export interface ContextMenuItemProps extends MenuItemProps {
32
41
  }
33
42
  export const ContextMenuItem: React.ForwardRefExoticComponent<ContextMenuItemProps & React.RefAttributes<HTMLDivElement>>;
34
- type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
35
- export interface ContextMenuTriggerItemProps extends MenuSubTriggerProps {
36
- }
37
- export const ContextMenuTriggerItem: React.ForwardRefExoticComponent<ContextMenuTriggerItemProps & React.RefAttributes<HTMLDivElement>>;
38
43
  type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
39
44
  export interface ContextMenuCheckboxItemProps extends MenuCheckboxItemProps {
40
45
  }
@@ -59,18 +64,36 @@ type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>
59
64
  export interface ContextMenuArrowProps extends MenuArrowProps {
60
65
  }
61
66
  export const ContextMenuArrow: React.ForwardRefExoticComponent<ContextMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
67
+ export interface ContextMenuSubProps {
68
+ children?: React.ReactNode;
69
+ open?: boolean;
70
+ defaultOpen?: boolean;
71
+ onOpenChange?(open: boolean): void;
72
+ }
73
+ export const ContextMenuSub: React.FC<ContextMenuSubProps>;
74
+ type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
75
+ export interface ContextMenuSubTriggerProps extends MenuSubTriggerProps {
76
+ }
77
+ export const ContextMenuSubTrigger: React.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
78
+ type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
79
+ export interface ContextMenuSubContentProps extends MenuSubContentProps {
80
+ }
81
+ export const ContextMenuSubContent: React.ForwardRefExoticComponent<ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
62
82
  export const Root: React.FC<ContextMenuProps>;
63
83
  export const Trigger: React.ForwardRefExoticComponent<ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
84
+ export const Portal: React.FC<ContextMenuPortalProps>;
64
85
  export const Content: React.ForwardRefExoticComponent<ContextMenuContentProps & React.RefAttributes<HTMLDivElement>>;
65
86
  export const Group: React.ForwardRefExoticComponent<ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
66
87
  export const Label: React.ForwardRefExoticComponent<ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
67
88
  export const Item: React.ForwardRefExoticComponent<ContextMenuItemProps & React.RefAttributes<HTMLDivElement>>;
68
- export const TriggerItem: React.ForwardRefExoticComponent<ContextMenuTriggerItemProps & React.RefAttributes<HTMLDivElement>>;
69
89
  export const CheckboxItem: React.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
70
90
  export const RadioGroup: React.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
71
91
  export const RadioItem: React.ForwardRefExoticComponent<ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
72
92
  export const ItemIndicator: React.ForwardRefExoticComponent<ContextMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
73
93
  export const Separator: React.ForwardRefExoticComponent<ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
74
94
  export const Arrow: React.ForwardRefExoticComponent<ContextMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
95
+ export const Sub: React.FC<ContextMenuSubProps>;
96
+ export const SubTrigger: React.ForwardRefExoticComponent<ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
97
+ export const SubContent: React.ForwardRefExoticComponent<ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
75
98
 
76
99
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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src/ContextMenu.tsx","./packages/react/context-menu/src/packages/react/context-menu/src/index.ts"],"sourcesContent":[null,null],"names":[],"version":3,"file":"index.d.ts.map"}
1
+ {"mappings":";;;;AAYA,iBAAiB,KAAK,GAAG,KAAK,CAAC;AAU/B,OAAA,6FAEE,CAAC;AAYH,qBAAqB,MAAM,wBAAwB,CAAC,OAAO,cAAc,IAAI,CAAC,CAAC;AAC/E;IACE,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,YAAY,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;CAClD;AAED,OAAA,MAAM,aAAa,MAAM,EAAE,CAAC,gBAAgB,CAiC3C,CAAC;AAWF,0BAA0B,MAAM,wBAAwB,CAAC,OAAO,UAAU,IAAI,CAAC,CAAC;AAChF,wCAAkC,SAAQ,kBAAkB;CAAG;AAE/D,OAAA,MAAM,mHAuDL,CAAC;AAUF,uBAAuB,MAAM,wBAAwB,CAAC,OAAO,cAAc,MAAM,CAAC,CAAC;AACnF,uCAAiC,SAAQ,eAAe;CAAG;AAE3D,OAAA,MAAM,mBAAmB,MAAM,EAAE,CAAC,sBAAsB,CAMvD,CAAC;AAWF,wBAAwB,MAAM,wBAAwB,CAAC,OAAO,cAAc,OAAO,CAAC,CAAC;AACrF,wCAAkC,SAAQ,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO,CAAC;CAAG;AAEpG,OAAA,MAAM,kHAsCL,CAAC;AAWF,sBAAsB,MAAM,wBAAwB,CAAC,OAAO,cAAc,KAAK,CAAC,CAAC;AACjF,sCAAgC,SAAQ,cAAc;CAAG;AAEzD,OAAA,MAAM,8GAML,CAAC;AAWF,sBAAsB,MAAM,wBAAwB,CAAC,OAAO,cAAc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,MAAM,EAAE,CAAC,mBAAmB,CAcjD,CAAC;AAWF,2BAA2B,MAAM,wBAAwB,CAAC,OAAO,cAAc,UAAU,CAAC,CAAC;AAC3F,2CAAqC,SAAQ,mBAAmB;CAAG;AAEnE,OAAA,MAAM,wHAOJ,CAAC;AAWH,2BAA2B,MAAM,wBAAwB,CAAC,OAAO,cAAc,UAAU,CAAC,CAAC;AAC3F,2CAAqC,SAAQ,mBAAmB;CAAG;AAEnE,OAAA,MAAM,wHAoBJ,CAAC;AAUH,OAAA,MAAM,gCAAkB,CAAC;AACzB,OAAA,MAAM,wGAA4B,CAAC;AACnC,OAAA,MAAM,wCAA0B,CAAC;AACjC,OAAA,MAAM,uGAA4B,CAAC;AACnC,OAAA,MAAM,mGAAwB,CAAC;AAC/B,OAAA,MAAM,mGAAwB,CAAC;AAC/B,OAAA,MAAM,iGAAsB,CAAC;AAC7B,OAAA,MAAM,iHAAsC,CAAC;AAC7C,OAAA,MAAM,6GAAkC,CAAC;AACzC,OAAA,MAAM,2GAAgC,CAAC;AACvC,OAAA,MAAM,oHAAwC,CAAC;AAC/C,OAAA,MAAM,2GAAgC,CAAC;AACvC,OAAA,MAAM,kGAAwB,CAAC;AAC/B,OAAA,MAAM,kCAAoB,CAAC;AAC3B,OAAA,MAAM,6GAAkC,CAAC;AACzC,OAAA,MAAM,6GAAkC,CAAC","sources":["packages/react/context-menu/src/packages/react/context-menu/src/ContextMenu.tsx","packages/react/context-menu/src/packages/react/context-menu/src/index.ts","packages/react/context-menu/src/index.ts"],"sourcesContent":[null,null,"export * from './ContextMenu';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
package/dist/index.js CHANGED
@@ -1,2 +1,412 @@
1
- var e,t=require("@radix-ui/react-use-callback-ref").useCallbackRef,n=require("@radix-ui/react-menu"),o=p({},n),r=n.createMenuScope,c=require("@radix-ui/react-primitive").Primitive,s=require("@radix-ui/react-context").createContextScope,u=require("@radix-ui/primitive").composeEventHandlers,a=p({},require("react")),i=(e=require("@babel/runtime/helpers/extends"))&&e.__esModule?e.default:e;function p(e,t){return Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})),e}const[x,l]=s("ContextMenu",[r]);exports.createContextMenuScope=l;const C=r(),[f,d]=x("ContextMenu"),m=e=>{const{__scopeContextMenu:n,children:r,onOpenChange:c,dir:s,modal:u=!0}=e,[p,x]=a.useState(!1),l=R("ContextMenu",n),d=C(n),m=t(c),M=a.useCallback((e=>{x(e),m(e)}),[m]);return l.isInsideContent?/*#__PURE__*/a.createElement(f,{scope:n,isRootMenu:!1,open:p,onOpenChange:M,modal:u},/*#__PURE__*/a.createElement(o.Sub,i({},d,{open:p,onOpenChange:M}),r)):/*#__PURE__*/a.createElement(f,{scope:n,isRootMenu:!0,open:p,onOpenChange:M,modal:u},/*#__PURE__*/a.createElement(o.Root,i({},d,{dir:s,open:p,onOpenChange:M,modal:u}),r))};exports.ContextMenu=m;const M=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,s=d("ContextMenuTrigger",n),p=C(n),x=a.useRef({x:0,y:0}),l=a.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...x.current})}),f=a.useRef(0),m=a.useCallback((()=>window.clearTimeout(f.current)),[]),M=e=>{x.current={x:e.clientX,y:e.clientY},s.onOpenChange(!0)};return a.useEffect((()=>m),[m]),/*#__PURE__*/a.createElement(_,{scope:n,isInsideContent:!1},/*#__PURE__*/a.createElement(o.Anchor,i({},p,{virtualRef:l})),/*#__PURE__*/a.createElement(c.span,i({},r,{ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:u(e.onContextMenu,(e=>{m(),e.preventDefault(),M(e)})),onPointerDown:u(e.onPointerDown,S((e=>{m(),f.current=window.setTimeout((()=>M(e)),700)}))),onPointerMove:u(e.onPointerMove,S(m)),onPointerCancel:u(e.onPointerCancel,S(m)),onPointerUp:u(e.onPointerUp,S(m))})))}));exports.ContextMenuTrigger=M;const[_,R]=x("ContextMenuContent",{isInsideContent:!1}),g=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=d("ContextMenuContent",n),s=C(n),u={...r,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}};/*#__PURE__*/return a.createElement(_,{scope:n,isInsideContent:!0},c.isRootMenu?/*#__PURE__*/a.createElement(E,i({__scopeContextMenu:n},u,{ref:t})):/*#__PURE__*/a.createElement(o.Content,i({},s,u,{ref:t})))}));exports.ContextMenuContent=g;const E=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=d("ContextMenuContent",n),s=C(n),u=a.useRef(!1);/*#__PURE__*/return a.createElement(o.Content,i({},s,r,{ref:t,portalled:!0,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{var n;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),!t.defaultPrevented&&u.current&&t.preventDefault(),u.current=!1},onInteractOutside:t=>{var n;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||c.modal||(u.current=!0)}}))})),w=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=C(n);/*#__PURE__*/return a.createElement(o.Group,i({},c,r,{ref:t}))}));exports.ContextMenuGroup=w;const I=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=C(n);/*#__PURE__*/return a.createElement(o.Label,i({},c,r,{ref:t}))}));exports.ContextMenuLabel=I;const b=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=C(n);/*#__PURE__*/return a.createElement(o.Item,i({},c,r,{ref:t}))}));exports.ContextMenuItem=b;const h=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=C(n);/*#__PURE__*/return a.createElement(o.SubTrigger,i({},c,r,{ref:t}))}));exports.ContextMenuTriggerItem=h;const v=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=C(n);/*#__PURE__*/return a.createElement(o.CheckboxItem,i({},c,r,{ref:t}))}));exports.ContextMenuCheckboxItem=v;const O=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=C(n);/*#__PURE__*/return a.createElement(o.RadioGroup,i({},c,r,{ref:t}))}));exports.ContextMenuRadioGroup=O;const P=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=C(n);/*#__PURE__*/return a.createElement(o.RadioItem,i({},c,r,{ref:t}))}));exports.ContextMenuRadioItem=P;const T=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=C(n);/*#__PURE__*/return a.createElement(o.ItemIndicator,i({},c,r,{ref:t}))}));exports.ContextMenuItemIndicator=T;const k=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=C(n);/*#__PURE__*/return a.createElement(o.Separator,i({},c,r,{ref:t}))}));exports.ContextMenuSeparator=k;const y=/*#__PURE__*/a.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,c=C(n);/*#__PURE__*/return a.createElement(o.Arrow,i({},c,r,{ref:t}))}));function S(e){return t=>"mouse"!==t.pointerType?e(t):void 0}exports.ContextMenuArrow=y;const q=m;exports.Root=q;const A=M;exports.Trigger=A;const G=g;exports.Content=G;const D=w;exports.Group=D;const L=I;exports.Label=L;const j=b;exports.Item=j;const F=h;exports.TriggerItem=F;const U=v;exports.CheckboxItem=U;const B=O;exports.RadioGroup=B;const H=P;exports.RadioItem=H;const W=T;exports.ItemIndicator=W;const X=k;exports.Separator=X;const Y=y;exports.Arrow=Y;
1
+ var $l8XVT$babelruntimehelpersextends = require("@babel/runtime/helpers/extends");
2
+ var $l8XVT$react = require("react");
3
+ var $l8XVT$radixuiprimitive = require("@radix-ui/primitive");
4
+ var $l8XVT$radixuireactcontext = require("@radix-ui/react-context");
5
+ var $l8XVT$radixuireactprimitive = require("@radix-ui/react-primitive");
6
+ var $l8XVT$radixuireactmenu = require("@radix-ui/react-menu");
7
+ var $l8XVT$radixuireactusecallbackref = require("@radix-ui/react-use-callback-ref");
8
+ var $l8XVT$radixuireactusecontrollablestate = require("@radix-ui/react-use-controllable-state");
9
+
10
+ function $parcel$exportWildcard(dest, source) {
11
+ Object.keys(source).forEach(function(key) {
12
+ if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
13
+ return;
14
+ }
15
+
16
+ Object.defineProperty(dest, key, {
17
+ enumerable: true,
18
+ get: function get() {
19
+ return source[key];
20
+ }
21
+ });
22
+ });
23
+
24
+ return dest;
25
+ }
26
+ function $parcel$interopDefault(a) {
27
+ return a && a.__esModule ? a.default : a;
28
+ }
29
+ function $parcel$export(e, n, v, s) {
30
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
31
+ }
32
+ var $5de197f6cd80e8e9$exports = {};
33
+
34
+ $parcel$export($5de197f6cd80e8e9$exports, "createContextMenuScope", () => $5de197f6cd80e8e9$export$1059331f43ddcc82);
35
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenu", () => $5de197f6cd80e8e9$export$8dc6765e8be191c7);
36
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuTrigger", () => $5de197f6cd80e8e9$export$be6fc7b1d5b0beb9);
37
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuPortal", () => $5de197f6cd80e8e9$export$14afd0be83e45060);
38
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuContent", () => $5de197f6cd80e8e9$export$572205900c9369e);
39
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuGroup", () => $5de197f6cd80e8e9$export$9860523b0fcdd664);
40
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuLabel", () => $5de197f6cd80e8e9$export$d4b9d3b609a10742);
41
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuItem", () => $5de197f6cd80e8e9$export$16a26dc176a49100);
42
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuCheckboxItem", () => $5de197f6cd80e8e9$export$b6adbe51d5d8b7ec);
43
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuRadioGroup", () => $5de197f6cd80e8e9$export$db5c89af5ed9aa07);
44
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuRadioItem", () => $5de197f6cd80e8e9$export$8a727d09a7d9bfc2);
45
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuItemIndicator", () => $5de197f6cd80e8e9$export$9ed8194dee42d94b);
46
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuSeparator", () => $5de197f6cd80e8e9$export$8d6b009fadfe1207);
47
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuArrow", () => $5de197f6cd80e8e9$export$f47d0a58228a61e2);
48
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuSub", () => $5de197f6cd80e8e9$export$5bc21d1c00c4b201);
49
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuSubTrigger", () => $5de197f6cd80e8e9$export$30b2b5c64556d316);
50
+ $parcel$export($5de197f6cd80e8e9$exports, "ContextMenuSubContent", () => $5de197f6cd80e8e9$export$2c967063bd2dc512);
51
+ $parcel$export($5de197f6cd80e8e9$exports, "Root", () => $5de197f6cd80e8e9$export$be92b6f5f03c0fe9);
52
+ $parcel$export($5de197f6cd80e8e9$exports, "Trigger", () => $5de197f6cd80e8e9$export$41fb9f06171c75f4);
53
+ $parcel$export($5de197f6cd80e8e9$exports, "Portal", () => $5de197f6cd80e8e9$export$602eac185826482c);
54
+ $parcel$export($5de197f6cd80e8e9$exports, "Content", () => $5de197f6cd80e8e9$export$7c6e2c02157bb7d2);
55
+ $parcel$export($5de197f6cd80e8e9$exports, "Group", () => $5de197f6cd80e8e9$export$eb2fcfdbd7ba97d4);
56
+ $parcel$export($5de197f6cd80e8e9$exports, "Label", () => $5de197f6cd80e8e9$export$b04be29aa201d4f5);
57
+ $parcel$export($5de197f6cd80e8e9$exports, "Item", () => $5de197f6cd80e8e9$export$6d08773d2e66f8f2);
58
+ $parcel$export($5de197f6cd80e8e9$exports, "CheckboxItem", () => $5de197f6cd80e8e9$export$16ce288f89fa631c);
59
+ $parcel$export($5de197f6cd80e8e9$exports, "RadioGroup", () => $5de197f6cd80e8e9$export$a98f0dcb43a68a25);
60
+ $parcel$export($5de197f6cd80e8e9$exports, "RadioItem", () => $5de197f6cd80e8e9$export$371ab307eab489c0);
61
+ $parcel$export($5de197f6cd80e8e9$exports, "ItemIndicator", () => $5de197f6cd80e8e9$export$c3468e2714d175fa);
62
+ $parcel$export($5de197f6cd80e8e9$exports, "Separator", () => $5de197f6cd80e8e9$export$1ff3c3f08ae963c0);
63
+ $parcel$export($5de197f6cd80e8e9$exports, "Arrow", () => $5de197f6cd80e8e9$export$21b07c8f274aebd5);
64
+ $parcel$export($5de197f6cd80e8e9$exports, "Sub", () => $5de197f6cd80e8e9$export$d7a01e11500dfb6f);
65
+ $parcel$export($5de197f6cd80e8e9$exports, "SubTrigger", () => $5de197f6cd80e8e9$export$2ea8a7a591ac5eac);
66
+ $parcel$export($5de197f6cd80e8e9$exports, "SubContent", () => $5de197f6cd80e8e9$export$6d4de93b380beddf);
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ /* -------------------------------------------------------------------------------------------------
77
+ * ContextMenu
78
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$CONTEXT_MENU_NAME = 'ContextMenu';
79
+ const [$5de197f6cd80e8e9$var$createContextMenuContext, $5de197f6cd80e8e9$export$1059331f43ddcc82] = $l8XVT$radixuireactcontext.createContextScope($5de197f6cd80e8e9$var$CONTEXT_MENU_NAME, [
80
+ $l8XVT$radixuireactmenu.createMenuScope
81
+ ]);
82
+ const $5de197f6cd80e8e9$var$useMenuScope = $l8XVT$radixuireactmenu.createMenuScope();
83
+ const [$5de197f6cd80e8e9$var$ContextMenuProvider, $5de197f6cd80e8e9$var$useContextMenuContext] = $5de197f6cd80e8e9$var$createContextMenuContext($5de197f6cd80e8e9$var$CONTEXT_MENU_NAME);
84
+ const $5de197f6cd80e8e9$export$8dc6765e8be191c7 = (props)=>{
85
+ const { __scopeContextMenu: __scopeContextMenu , children: children , onOpenChange: onOpenChange , dir: dir , modal: modal = true , allowPinchZoom: allowPinchZoom } = props;
86
+ const [open1, setOpen] = $l8XVT$react.useState(false);
87
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
88
+ const handleOpenChangeProp = $l8XVT$radixuireactusecallbackref.useCallbackRef(onOpenChange);
89
+ const handleOpenChange = $l8XVT$react.useCallback((open)=>{
90
+ setOpen(open);
91
+ handleOpenChangeProp(open);
92
+ }, [
93
+ handleOpenChangeProp
94
+ ]);
95
+ return /*#__PURE__*/ $l8XVT$react.createElement($5de197f6cd80e8e9$var$ContextMenuProvider, {
96
+ scope: __scopeContextMenu,
97
+ open: open1,
98
+ onOpenChange: handleOpenChange,
99
+ modal: modal
100
+ }, /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.Root, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, {
101
+ dir: dir,
102
+ open: open1,
103
+ onOpenChange: handleOpenChange,
104
+ modal: modal,
105
+ allowPinchZoom: allowPinchZoom
106
+ }), children));
107
+ };
108
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$8dc6765e8be191c7, {
109
+ displayName: $5de197f6cd80e8e9$var$CONTEXT_MENU_NAME
110
+ });
111
+ /* -------------------------------------------------------------------------------------------------
112
+ * ContextMenuTrigger
113
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$TRIGGER_NAME = 'ContextMenuTrigger';
114
+ const $5de197f6cd80e8e9$export$be6fc7b1d5b0beb9 = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
115
+ const { __scopeContextMenu: __scopeContextMenu , ...triggerProps } = props;
116
+ const context = $5de197f6cd80e8e9$var$useContextMenuContext($5de197f6cd80e8e9$var$TRIGGER_NAME, __scopeContextMenu);
117
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
118
+ const pointRef = $l8XVT$react.useRef({
119
+ x: 0,
120
+ y: 0
121
+ });
122
+ const virtualRef = $l8XVT$react.useRef({
123
+ getBoundingClientRect: ()=>DOMRect.fromRect({
124
+ width: 0,
125
+ height: 0,
126
+ ...pointRef.current
127
+ })
128
+ });
129
+ const longPressTimerRef = $l8XVT$react.useRef(0);
130
+ const clearLongPress = $l8XVT$react.useCallback(()=>window.clearTimeout(longPressTimerRef.current)
131
+ , []);
132
+ const handleOpen = (event)=>{
133
+ pointRef.current = {
134
+ x: event.clientX,
135
+ y: event.clientY
136
+ };
137
+ context.onOpenChange(true);
138
+ };
139
+ $l8XVT$react.useEffect(()=>clearLongPress
140
+ , [
141
+ clearLongPress
142
+ ]);
143
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$react.Fragment, null, /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.Anchor, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, {
144
+ virtualRef: virtualRef
145
+ })), /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactprimitive.Primitive.span, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({
146
+ "data-state": context.open ? 'open' : 'closed'
147
+ }, triggerProps, {
148
+ ref: forwardedRef // prevent iOS context menu from appearing
149
+ ,
150
+ style: {
151
+ WebkitTouchCallout: 'none',
152
+ ...props.style
153
+ },
154
+ onContextMenu: $l8XVT$radixuiprimitive.composeEventHandlers(props.onContextMenu, (event)=>{
155
+ // clearing the long press here because some platforms already support
156
+ // long press to trigger a `contextmenu` event
157
+ clearLongPress();
158
+ handleOpen(event);
159
+ event.preventDefault();
160
+ }),
161
+ onPointerDown: $l8XVT$radixuiprimitive.composeEventHandlers(props.onPointerDown, $5de197f6cd80e8e9$var$whenTouchOrPen((event)=>{
162
+ // clear the long press here in case there's multiple touch points
163
+ clearLongPress();
164
+ longPressTimerRef.current = window.setTimeout(()=>handleOpen(event)
165
+ , 700);
166
+ })),
167
+ onPointerMove: $l8XVT$radixuiprimitive.composeEventHandlers(props.onPointerMove, $5de197f6cd80e8e9$var$whenTouchOrPen(clearLongPress)),
168
+ onPointerCancel: $l8XVT$radixuiprimitive.composeEventHandlers(props.onPointerCancel, $5de197f6cd80e8e9$var$whenTouchOrPen(clearLongPress)),
169
+ onPointerUp: $l8XVT$radixuiprimitive.composeEventHandlers(props.onPointerUp, $5de197f6cd80e8e9$var$whenTouchOrPen(clearLongPress))
170
+ })));
171
+ });
172
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$be6fc7b1d5b0beb9, {
173
+ displayName: $5de197f6cd80e8e9$var$TRIGGER_NAME
174
+ });
175
+ /* -------------------------------------------------------------------------------------------------
176
+ * ContextMenuPortal
177
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$PORTAL_NAME = 'ContextMenuPortal';
178
+ const $5de197f6cd80e8e9$export$14afd0be83e45060 = (props)=>{
179
+ const { __scopeContextMenu: __scopeContextMenu , ...portalProps } = props;
180
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
181
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.Portal, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, portalProps));
182
+ };
183
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$14afd0be83e45060, {
184
+ displayName: $5de197f6cd80e8e9$var$PORTAL_NAME
185
+ });
186
+ /* -------------------------------------------------------------------------------------------------
187
+ * ContextMenuContent
188
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$CONTENT_NAME = 'ContextMenuContent';
189
+ const $5de197f6cd80e8e9$export$572205900c9369e = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
190
+ const { __scopeContextMenu: __scopeContextMenu , ...contentProps } = props;
191
+ const context = $5de197f6cd80e8e9$var$useContextMenuContext($5de197f6cd80e8e9$var$CONTENT_NAME, __scopeContextMenu);
192
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
193
+ const hasInteractedOutsideRef = $l8XVT$react.useRef(false);
194
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.Content, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, contentProps, {
195
+ ref: forwardedRef,
196
+ side: "right",
197
+ sideOffset: 2,
198
+ align: "start",
199
+ onCloseAutoFocus: (event)=>{
200
+ var _props$onCloseAutoFoc;
201
+ (_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
202
+ if (!event.defaultPrevented && hasInteractedOutsideRef.current) event.preventDefault();
203
+ hasInteractedOutsideRef.current = false;
204
+ },
205
+ onInteractOutside: (event)=>{
206
+ var _props$onInteractOuts;
207
+ (_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
208
+ if (!event.defaultPrevented && !context.modal) hasInteractedOutsideRef.current = true;
209
+ },
210
+ style: {
211
+ ...props.style,
212
+ // re-namespace exposed content custom property
213
+ ['--radix-context-menu-content-transform-origin']: 'var(--radix-popper-transform-origin)'
214
+ }
215
+ }));
216
+ });
217
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$572205900c9369e, {
218
+ displayName: $5de197f6cd80e8e9$var$CONTENT_NAME
219
+ });
220
+ /* -------------------------------------------------------------------------------------------------
221
+ * ContextMenuGroup
222
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$GROUP_NAME = 'ContextMenuGroup';
223
+ const $5de197f6cd80e8e9$export$9860523b0fcdd664 = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
224
+ const { __scopeContextMenu: __scopeContextMenu , ...groupProps } = props;
225
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
226
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.Group, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, groupProps, {
227
+ ref: forwardedRef
228
+ }));
229
+ });
230
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$9860523b0fcdd664, {
231
+ displayName: $5de197f6cd80e8e9$var$GROUP_NAME
232
+ });
233
+ /* -------------------------------------------------------------------------------------------------
234
+ * ContextMenuLabel
235
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$LABEL_NAME = 'ContextMenuLabel';
236
+ const $5de197f6cd80e8e9$export$d4b9d3b609a10742 = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
237
+ const { __scopeContextMenu: __scopeContextMenu , ...labelProps } = props;
238
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
239
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.Label, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, labelProps, {
240
+ ref: forwardedRef
241
+ }));
242
+ });
243
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$d4b9d3b609a10742, {
244
+ displayName: $5de197f6cd80e8e9$var$LABEL_NAME
245
+ });
246
+ /* -------------------------------------------------------------------------------------------------
247
+ * ContextMenuItem
248
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$ITEM_NAME = 'ContextMenuItem';
249
+ const $5de197f6cd80e8e9$export$16a26dc176a49100 = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
250
+ const { __scopeContextMenu: __scopeContextMenu , ...itemProps } = props;
251
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
252
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.Item, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, itemProps, {
253
+ ref: forwardedRef
254
+ }));
255
+ });
256
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$16a26dc176a49100, {
257
+ displayName: $5de197f6cd80e8e9$var$ITEM_NAME
258
+ });
259
+ /* -------------------------------------------------------------------------------------------------
260
+ * ContextMenuCheckboxItem
261
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$CHECKBOX_ITEM_NAME = 'ContextMenuCheckboxItem';
262
+ const $5de197f6cd80e8e9$export$b6adbe51d5d8b7ec = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
263
+ const { __scopeContextMenu: __scopeContextMenu , ...checkboxItemProps } = props;
264
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
265
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.CheckboxItem, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, checkboxItemProps, {
266
+ ref: forwardedRef
267
+ }));
268
+ });
269
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$b6adbe51d5d8b7ec, {
270
+ displayName: $5de197f6cd80e8e9$var$CHECKBOX_ITEM_NAME
271
+ });
272
+ /* -------------------------------------------------------------------------------------------------
273
+ * ContextMenuRadioGroup
274
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$RADIO_GROUP_NAME = 'ContextMenuRadioGroup';
275
+ const $5de197f6cd80e8e9$export$db5c89af5ed9aa07 = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
276
+ const { __scopeContextMenu: __scopeContextMenu , ...radioGroupProps } = props;
277
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
278
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.RadioGroup, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, radioGroupProps, {
279
+ ref: forwardedRef
280
+ }));
281
+ });
282
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$db5c89af5ed9aa07, {
283
+ displayName: $5de197f6cd80e8e9$var$RADIO_GROUP_NAME
284
+ });
285
+ /* -------------------------------------------------------------------------------------------------
286
+ * ContextMenuRadioItem
287
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$RADIO_ITEM_NAME = 'ContextMenuRadioItem';
288
+ const $5de197f6cd80e8e9$export$8a727d09a7d9bfc2 = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
289
+ const { __scopeContextMenu: __scopeContextMenu , ...radioItemProps } = props;
290
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
291
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.RadioItem, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, radioItemProps, {
292
+ ref: forwardedRef
293
+ }));
294
+ });
295
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$8a727d09a7d9bfc2, {
296
+ displayName: $5de197f6cd80e8e9$var$RADIO_ITEM_NAME
297
+ });
298
+ /* -------------------------------------------------------------------------------------------------
299
+ * ContextMenuItemIndicator
300
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$INDICATOR_NAME = 'ContextMenuItemIndicator';
301
+ const $5de197f6cd80e8e9$export$9ed8194dee42d94b = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
302
+ const { __scopeContextMenu: __scopeContextMenu , ...itemIndicatorProps } = props;
303
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
304
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.ItemIndicator, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, itemIndicatorProps, {
305
+ ref: forwardedRef
306
+ }));
307
+ });
308
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$9ed8194dee42d94b, {
309
+ displayName: $5de197f6cd80e8e9$var$INDICATOR_NAME
310
+ });
311
+ /* -------------------------------------------------------------------------------------------------
312
+ * ContextMenuSeparator
313
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$SEPARATOR_NAME = 'ContextMenuSeparator';
314
+ const $5de197f6cd80e8e9$export$8d6b009fadfe1207 = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
315
+ const { __scopeContextMenu: __scopeContextMenu , ...separatorProps } = props;
316
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
317
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.Separator, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, separatorProps, {
318
+ ref: forwardedRef
319
+ }));
320
+ });
321
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$8d6b009fadfe1207, {
322
+ displayName: $5de197f6cd80e8e9$var$SEPARATOR_NAME
323
+ });
324
+ /* -------------------------------------------------------------------------------------------------
325
+ * ContextMenuArrow
326
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$ARROW_NAME = 'ContextMenuArrow';
327
+ const $5de197f6cd80e8e9$export$f47d0a58228a61e2 = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
328
+ const { __scopeContextMenu: __scopeContextMenu , ...arrowProps } = props;
329
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
330
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.Arrow, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, arrowProps, {
331
+ ref: forwardedRef
332
+ }));
333
+ });
334
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$f47d0a58228a61e2, {
335
+ displayName: $5de197f6cd80e8e9$var$ARROW_NAME
336
+ });
337
+ /* -------------------------------------------------------------------------------------------------
338
+ * ContextMenuSub
339
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$SUB_NAME = 'ContextMenuSub';
340
+ const $5de197f6cd80e8e9$export$5bc21d1c00c4b201 = (props)=>{
341
+ const { __scopeContextMenu: __scopeContextMenu , children: children , onOpenChange: onOpenChange , open: openProp , defaultOpen: defaultOpen } = props;
342
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
343
+ const [open, setOpen] = $l8XVT$radixuireactusecontrollablestate.useControllableState({
344
+ prop: openProp,
345
+ defaultProp: defaultOpen,
346
+ onChange: onOpenChange
347
+ });
348
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.Sub, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, {
349
+ open: open,
350
+ onOpenChange: setOpen
351
+ }), children);
352
+ };
353
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$5bc21d1c00c4b201, {
354
+ displayName: $5de197f6cd80e8e9$var$SUB_NAME
355
+ });
356
+ /* -------------------------------------------------------------------------------------------------
357
+ * ContextMenuSubTrigger
358
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$SUB_TRIGGER_NAME = 'ContextMenuSubTrigger';
359
+ const $5de197f6cd80e8e9$export$30b2b5c64556d316 = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
360
+ const { __scopeContextMenu: __scopeContextMenu , ...triggerItemProps } = props;
361
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
362
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.SubTrigger, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, triggerItemProps, {
363
+ ref: forwardedRef
364
+ }));
365
+ });
366
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$30b2b5c64556d316, {
367
+ displayName: $5de197f6cd80e8e9$var$SUB_TRIGGER_NAME
368
+ });
369
+ /* -------------------------------------------------------------------------------------------------
370
+ * ContextMenuSubContent
371
+ * -----------------------------------------------------------------------------------------------*/ const $5de197f6cd80e8e9$var$SUB_CONTENT_NAME = 'ContextMenuSubContent';
372
+ const $5de197f6cd80e8e9$export$2c967063bd2dc512 = /*#__PURE__*/ $l8XVT$react.forwardRef((props, forwardedRef)=>{
373
+ const { __scopeContextMenu: __scopeContextMenu , ...subContentProps } = props;
374
+ const menuScope = $5de197f6cd80e8e9$var$useMenuScope(__scopeContextMenu);
375
+ return /*#__PURE__*/ $l8XVT$react.createElement($l8XVT$radixuireactmenu.SubContent, ($parcel$interopDefault($l8XVT$babelruntimehelpersextends))({}, menuScope, subContentProps, {
376
+ ref: forwardedRef,
377
+ style: {
378
+ ...props.style,
379
+ // re-namespace exposed content custom property
380
+ ['--radix-context-menu-content-transform-origin']: 'var(--radix-popper-transform-origin)'
381
+ }
382
+ }));
383
+ });
384
+ /*#__PURE__*/ Object.assign($5de197f6cd80e8e9$export$2c967063bd2dc512, {
385
+ displayName: $5de197f6cd80e8e9$var$SUB_CONTENT_NAME
386
+ });
387
+ /* -----------------------------------------------------------------------------------------------*/ function $5de197f6cd80e8e9$var$whenTouchOrPen(handler) {
388
+ return (event)=>event.pointerType !== 'mouse' ? handler(event) : undefined
389
+ ;
390
+ }
391
+ const $5de197f6cd80e8e9$export$be92b6f5f03c0fe9 = $5de197f6cd80e8e9$export$8dc6765e8be191c7;
392
+ const $5de197f6cd80e8e9$export$41fb9f06171c75f4 = $5de197f6cd80e8e9$export$be6fc7b1d5b0beb9;
393
+ const $5de197f6cd80e8e9$export$602eac185826482c = $5de197f6cd80e8e9$export$14afd0be83e45060;
394
+ const $5de197f6cd80e8e9$export$7c6e2c02157bb7d2 = $5de197f6cd80e8e9$export$572205900c9369e;
395
+ const $5de197f6cd80e8e9$export$eb2fcfdbd7ba97d4 = $5de197f6cd80e8e9$export$9860523b0fcdd664;
396
+ const $5de197f6cd80e8e9$export$b04be29aa201d4f5 = $5de197f6cd80e8e9$export$d4b9d3b609a10742;
397
+ const $5de197f6cd80e8e9$export$6d08773d2e66f8f2 = $5de197f6cd80e8e9$export$16a26dc176a49100;
398
+ const $5de197f6cd80e8e9$export$16ce288f89fa631c = $5de197f6cd80e8e9$export$b6adbe51d5d8b7ec;
399
+ const $5de197f6cd80e8e9$export$a98f0dcb43a68a25 = $5de197f6cd80e8e9$export$db5c89af5ed9aa07;
400
+ const $5de197f6cd80e8e9$export$371ab307eab489c0 = $5de197f6cd80e8e9$export$8a727d09a7d9bfc2;
401
+ const $5de197f6cd80e8e9$export$c3468e2714d175fa = $5de197f6cd80e8e9$export$9ed8194dee42d94b;
402
+ const $5de197f6cd80e8e9$export$1ff3c3f08ae963c0 = $5de197f6cd80e8e9$export$8d6b009fadfe1207;
403
+ const $5de197f6cd80e8e9$export$21b07c8f274aebd5 = $5de197f6cd80e8e9$export$f47d0a58228a61e2;
404
+ const $5de197f6cd80e8e9$export$d7a01e11500dfb6f = $5de197f6cd80e8e9$export$5bc21d1c00c4b201;
405
+ const $5de197f6cd80e8e9$export$2ea8a7a591ac5eac = $5de197f6cd80e8e9$export$30b2b5c64556d316;
406
+ const $5de197f6cd80e8e9$export$6d4de93b380beddf = $5de197f6cd80e8e9$export$2c967063bd2dc512;
407
+
408
+
409
+ $parcel$exportWildcard(module.exports, $5de197f6cd80e8e9$exports);
410
+
411
+
2
412
  //# sourceMappingURL=index.js.map