@radix-ui/react-dropdown-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
@@ -2,12 +2,9 @@ import * as React from "react";
2
2
  import * as Radix from "@radix-ui/react-primitive";
3
3
  import { Primitive } from "@radix-ui/react-primitive";
4
4
  import * as MenuPrimitive from "@radix-ui/react-menu";
5
- import { Scope } from "@radix-ui/react-context";
6
5
  type Direction = 'ltr' | 'rtl';
7
- type ScopedProps<P> = P & {
8
- __scopeDropdownMenu?: Scope;
9
- };
10
6
  export const createDropdownMenuScope: import("@radix-ui/react-context").CreateScope;
7
+ type MenuRootProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Root>;
11
8
  export interface DropdownMenuProps {
12
9
  children?: React.ReactNode;
13
10
  dir?: Direction;
@@ -15,18 +12,24 @@ export interface DropdownMenuProps {
15
12
  defaultOpen?: boolean;
16
13
  onOpenChange?(open: boolean): void;
17
14
  modal?: boolean;
15
+ /**
16
+ * @see https://github.com/theKashey/react-remove-scroll#usage
17
+ */
18
+ allowPinchZoom?: MenuRootProps['allowPinchZoom'];
18
19
  }
19
20
  export const DropdownMenu: React.FC<DropdownMenuProps>;
20
21
  type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
21
22
  export interface DropdownMenuTriggerProps extends PrimitiveButtonProps {
22
23
  }
23
24
  export const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
25
+ type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
26
+ export interface DropdownMenuPortalProps extends MenuPortalProps {
27
+ }
28
+ export const DropdownMenuPortal: React.FC<DropdownMenuPortalProps>;
24
29
  type MenuContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
25
- export interface DropdownMenuContentProps extends DropdownMenuRootContentProps, MenuContentProps {
30
+ export interface DropdownMenuContentProps extends MenuContentProps {
26
31
  }
27
32
  export const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
28
- interface DropdownMenuRootContentProps extends ScopedProps<MenuContentProps> {
29
- }
30
33
  type MenuGroupProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
31
34
  export interface DropdownMenuGroupProps extends MenuGroupProps {
32
35
  }
@@ -39,10 +42,6 @@ type MenuItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
39
42
  export interface DropdownMenuItemProps extends MenuItemProps {
40
43
  }
41
44
  export const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
42
- type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
43
- export interface DropdownMenuTriggerItemProps extends MenuSubTriggerProps {
44
- }
45
- export const DropdownMenuTriggerItem: React.ForwardRefExoticComponent<DropdownMenuTriggerItemProps & React.RefAttributes<HTMLDivElement>>;
46
45
  type MenuCheckboxItemProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
47
46
  export interface DropdownMenuCheckboxItemProps extends MenuCheckboxItemProps {
48
47
  }
@@ -67,18 +66,36 @@ type MenuArrowProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>
67
66
  export interface DropdownMenuArrowProps extends MenuArrowProps {
68
67
  }
69
68
  export const DropdownMenuArrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
69
+ export interface DropdownMenuSubProps {
70
+ children?: React.ReactNode;
71
+ open?: boolean;
72
+ defaultOpen?: boolean;
73
+ onOpenChange?(open: boolean): void;
74
+ }
75
+ export const DropdownMenuSub: React.FC<DropdownMenuSubProps>;
76
+ type MenuSubTriggerProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
77
+ export interface DropdownMenuSubTriggerProps extends MenuSubTriggerProps {
78
+ }
79
+ export const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
80
+ type MenuSubContentProps = Radix.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
81
+ export interface DropdownMenuSubContentProps extends MenuSubContentProps {
82
+ }
83
+ export const DropdownMenuSubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
70
84
  export const Root: React.FC<DropdownMenuProps>;
71
85
  export const Trigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
86
+ export const Portal: React.FC<DropdownMenuPortalProps>;
72
87
  export const Content: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
73
88
  export const Group: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
74
89
  export const Label: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
75
90
  export const Item: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
76
- export const TriggerItem: React.ForwardRefExoticComponent<DropdownMenuTriggerItemProps & React.RefAttributes<HTMLDivElement>>;
77
91
  export const CheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
78
92
  export const RadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
79
93
  export const RadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
80
94
  export const ItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
81
95
  export const Separator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
82
96
  export const Arrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
97
+ export const Sub: React.FC<DropdownMenuSubProps>;
98
+ export const SubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
99
+ export const SubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
83
100
 
84
101
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"mappings":"A;A;A;A;A;AAaA,iBAAiB,KAAK,GAAG,KAAK,CAAC;AAQ/B,iBAAiB,CAAC,IAAI,CAAC,GAAG;IAAE,mBAAmB,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAC1D,OAAA,8FAGC,CAAC;AAyBF;IACE,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,OAAA,MAAM,cAAc,MAAM,EAAE,CAAC,iBAAiB,CA6B7C,CAAC;AA6DF,4BAA4B,MAAM,wBAAwB,CAAC,OAAO,UAAU,MAAM,CAAC,CAAC;AACpF,yCAAmC,SAAQ,oBAAoB;CAAG;AAElE,OAAA,MAAM,uHAuCL,CAAC;AAiBF,wBAAwB,MAAM,wBAAwB,CAAC,OAAO,cAAc,OAAO,CAAC,CAAC;AACrF,yCAAmC,SAAQ,4BAA4B,EAAE,gBAAgB;CAAG;AAE5F,OAAA,MAAM,oHA6BL,CAAC;AAOF,sCAAuC,SAAQ,YAAY,gBAAgB,CAAC;CAAG;AAyC/E,sBAAsB,MAAM,wBAAwB,CAAC,OAAO,cAAc,KAAK,CAAC,CAAC;AACjF,uCA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A,MAAM,+GAML,CAAC;AAMF,OAAA,MAAM,iCAAmB,CAAC;AAC1B,OAAA,MAAM,2GAA6B,CAAC;AACpC,OAAA,MAAM,wGAA6B,CAAC;AACpC,OAAA,MAAM,oGAAyB,CAAC;AAChC,OAAA,MAAM,oGAAyB,CAAC;AAChC,OAAA,MAAM,kGAAuB,CAAC;AAC9B,OAAA,MAAM,gHAAqC,CAAC;AAC5C,OAAA,MAAM,kHAAuC,CAAC;AAC9C,OAAA,MAAM,8GAAmC,CAAC;AAC1C,OAAA,MAAM,4GAAiC,CAAC;AACxC,OAAA,MAAM,qHAAyC,CAAC;AAChD,OAAA,MAAM,4GAAiC,CAAC;AACxC,OAAA,MAAM,mGAAyB,CAAC","sources":["./packages/react/dropdown-menu/src/packages/react/dropdown-menu/src/DropdownMenu.tsx","./packages/react/dropdown-menu/src/packages/react/dropdown-menu/src/index.ts"],"sourcesContent":[null,null],"names":[],"version":3,"file":"index.d.ts.map"}
1
+ {"mappings":";;;;AAaA,iBAAiB,KAAK,GAAG,KAAK,CAAC;AAS/B,OAAA,8FAGC,CAAC;AAgBF,qBAAqB,MAAM,wBAAwB,CAAC,OAAO,cAAc,IAAI,CAAC,CAAC;AAC/E;IACE,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;CAClD;AAED,OAAA,MAAM,cAAc,MAAM,EAAE,CAAC,iBAAiB,CA0C7C,CAAC;AAWF,4BAA4B,MAAM,wBAAwB,CAAC,OAAO,UAAU,MAAM,CAAC,CAAC;AACpF,yCAAmC,SAAQ,oBAAoB;C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AM,mGAAyB,CAAC;AAChC,OAAA,MAAM,mCAAqB,CAAC;AAC5B,OAAA,MAAM,8GAAmC,CAAC;AAC1C,OAAA,MAAM,8GAAmC,CAAC","sources":["packages/react/dropdown-menu/src/packages/react/dropdown-menu/src/DropdownMenu.tsx","packages/react/dropdown-menu/src/packages/react/dropdown-menu/src/index.ts","packages/react/dropdown-menu/src/index.ts"],"sourcesContent":[null,null,"export * from './DropdownMenu';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
package/dist/index.js CHANGED
@@ -1,2 +1,395 @@
1
- var e,o=require("@radix-ui/react-id").useId,n=require("@radix-ui/react-menu"),r=l({},n),t=n.createMenuScope,p=require("@radix-ui/react-primitive").Primitive,s=require("@radix-ui/react-use-controllable-state").useControllableState,c=require("@radix-ui/react-context").createContextScope,a=require("@radix-ui/react-compose-refs").composeRefs,u=require("@radix-ui/primitive").composeEventHandlers,d=l({},require("react")),i=(e=require("@babel/runtime/helpers/extends"))&&e.__esModule?e.default:e;function l(e,o){return Object.keys(o).forEach((function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return o[n]}})})),e}const[f,w]=c("DropdownMenu",[t]);exports.createDropdownMenuScope=w;const m=t(),[g,D]=f("DropdownMenu"),M=e=>{const{__scopeDropdownMenu:o,children:n,open:t,defaultOpen:p,onOpenChange:c}=e,a=I("DropdownMenu",o),u=m(o),[l=!1,f]=s({prop:t,defaultProp:p,onChange:c}),w=d.useCallback((()=>f((e=>!e))),[f]);return a.isInsideContent?/*#__PURE__*/d.createElement(g,{scope:o,isRootMenu:!1,open:l,onOpenChange:f,onOpenToggle:w},/*#__PURE__*/d.createElement(r.Sub,i({},u,{open:l,onOpenChange:f}),n)):/*#__PURE__*/d.createElement(x,i({},e,{open:l,onOpenChange:f,onOpenToggle:w}),n)};exports.DropdownMenu=M;const x=e=>{const{__scopeDropdownMenu:n,children:t,dir:p,open:s,onOpenChange:c,onOpenToggle:a,modal:u=!0}=e,l=m(n),f=d.useRef(null);/*#__PURE__*/return d.createElement(g,{scope:n,isRootMenu:!0,triggerId:o(),triggerRef:f,contentId:o(),open:s,onOpenChange:c,onOpenToggle:a,modal:u},/*#__PURE__*/d.createElement(r.Root,i({},l,{open:s,onOpenChange:c,dir:p,modal:u}),t))},_=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,disabled:t=!1,...s}=e,c=D("DropdownMenuTrigger",n),l=m(n);return c.isRootMenu?/*#__PURE__*/d.createElement(r.Anchor,i({asChild:!0},l),/*#__PURE__*/d.createElement(p.button,i({type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":!!c.open||void 0,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":t?"":void 0,disabled:t},s,{ref:a(o,c.triggerRef),onPointerDown:u(e.onPointerDown,(e=>{t||0!==e.button||!1!==e.ctrlKey||(c.open||e.preventDefault(),c.onOpenToggle())})),onKeyDown:u(e.onKeyDown,(e=>{t||(["Enter"," "].includes(e.key)&&c.onOpenToggle(),"ArrowDown"===e.key&&c.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())}))}))):null}));exports.DropdownMenuTrigger=_;const[R,I]=f("DropdownMenuContent",{isInsideContent:!1}),C=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,p=D("DropdownMenuContent",n),s=m(n),c={...t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}};/*#__PURE__*/return d.createElement(R,{scope:n,isInsideContent:!0},p.isRootMenu?/*#__PURE__*/d.createElement(b,i({__scopeDropdownMenu:n},c,{ref:o})):/*#__PURE__*/d.createElement(r.Content,i({},s,c,{ref:o})))}));exports.DropdownMenuContent=C;const b=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,portalled:t=!0,...p}=e,s=D("DropdownMenuContent",n),c=m(n),a=d.useRef(!1);return s.isRootMenu?/*#__PURE__*/d.createElement(r.Content,i({id:s.contentId,"aria-labelledby":s.triggerId},c,p,{ref:o,portalled:t,onCloseAutoFocus:u(e.onCloseAutoFocus,(e=>{var o;a.current||null===(o=s.triggerRef.current)||void 0===o||o.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:u(e.onInteractOutside,(e=>{const o=e.detail.originalEvent,n=0===o.button&&!0===o.ctrlKey,r=2===o.button||n;s.modal&&!r||(a.current=!0)}))})):null})),E=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,p=m(n);/*#__PURE__*/return d.createElement(r.Group,i({},p,t,{ref:o}))}));exports.DropdownMenuGroup=E;const h=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,p=m(n);/*#__PURE__*/return d.createElement(r.Label,i({},p,t,{ref:o}))}));exports.DropdownMenuLabel=h;const O=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,p=m(n);/*#__PURE__*/return d.createElement(r.Item,i({},p,t,{ref:o}))}));exports.DropdownMenuItem=O;const v=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,p=m(n);/*#__PURE__*/return d.createElement(r.SubTrigger,i({},p,t,{ref:o}))}));exports.DropdownMenuTriggerItem=v;const y=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,p=m(n);/*#__PURE__*/return d.createElement(r.CheckboxItem,i({},p,t,{ref:o}))}));exports.DropdownMenuCheckboxItem=y;const T=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,p=m(n);/*#__PURE__*/return d.createElement(r.RadioGroup,i({},p,t,{ref:o}))}));exports.DropdownMenuRadioGroup=T;const q=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,p=m(n);/*#__PURE__*/return d.createElement(r.RadioItem,i({},p,t,{ref:o}))}));exports.DropdownMenuRadioItem=q;const S=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,p=m(n);/*#__PURE__*/return d.createElement(r.ItemIndicator,i({},p,t,{ref:o}))}));exports.DropdownMenuItemIndicator=S;const k=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,p=m(n);/*#__PURE__*/return d.createElement(r.Separator,i({},p,t,{ref:o}))}));exports.DropdownMenuSeparator=k;const A=/*#__PURE__*/d.forwardRef(((e,o)=>{const{__scopeDropdownMenu:n,...t}=e,p=m(n);/*#__PURE__*/return d.createElement(r.Arrow,i({},p,t,{ref:o}))}));exports.DropdownMenuArrow=A;const G=M;exports.Root=G;const P=_;exports.Trigger=P;const K=C;exports.Content=K;const L=E;exports.Group=L;const j=h;exports.Label=j;const F=O;exports.Item=F;const H=v;exports.TriggerItem=H;const z=y;exports.CheckboxItem=z;const B=T;exports.RadioGroup=B;const J=q;exports.RadioItem=J;const N=S;exports.ItemIndicator=N;const Q=k;exports.Separator=Q;const U=A;exports.Arrow=U;
1
+ var $7dQ7Q$babelruntimehelpersextends = require("@babel/runtime/helpers/extends");
2
+ var $7dQ7Q$react = require("react");
3
+ var $7dQ7Q$radixuiprimitive = require("@radix-ui/primitive");
4
+ var $7dQ7Q$radixuireactcomposerefs = require("@radix-ui/react-compose-refs");
5
+ var $7dQ7Q$radixuireactcontext = require("@radix-ui/react-context");
6
+ var $7dQ7Q$radixuireactusecontrollablestate = require("@radix-ui/react-use-controllable-state");
7
+ var $7dQ7Q$radixuireactprimitive = require("@radix-ui/react-primitive");
8
+ var $7dQ7Q$radixuireactmenu = require("@radix-ui/react-menu");
9
+ var $7dQ7Q$radixuireactid = require("@radix-ui/react-id");
10
+
11
+ function $parcel$exportWildcard(dest, source) {
12
+ Object.keys(source).forEach(function(key) {
13
+ if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
14
+ return;
15
+ }
16
+
17
+ Object.defineProperty(dest, key, {
18
+ enumerable: true,
19
+ get: function get() {
20
+ return source[key];
21
+ }
22
+ });
23
+ });
24
+
25
+ return dest;
26
+ }
27
+ function $parcel$interopDefault(a) {
28
+ return a && a.__esModule ? a.default : a;
29
+ }
30
+ function $parcel$export(e, n, v, s) {
31
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
32
+ }
33
+ var $d1bf075a6b218014$exports = {};
34
+
35
+ $parcel$export($d1bf075a6b218014$exports, "createDropdownMenuScope", () => $d1bf075a6b218014$export$c0623cd925aeb687);
36
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenu", () => $d1bf075a6b218014$export$e44a253a59704894);
37
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuTrigger", () => $d1bf075a6b218014$export$d2469213b3befba9);
38
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuPortal", () => $d1bf075a6b218014$export$cd369b4d4d54efc9);
39
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuContent", () => $d1bf075a6b218014$export$6e76d93a37c01248);
40
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuGroup", () => $d1bf075a6b218014$export$246bebaba3a2f70e);
41
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuLabel", () => $d1bf075a6b218014$export$76e48c5b57f24495);
42
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuItem", () => $d1bf075a6b218014$export$ed97964d1871885d);
43
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuCheckboxItem", () => $d1bf075a6b218014$export$53a69729da201fa9);
44
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuRadioGroup", () => $d1bf075a6b218014$export$3323ad73d55f587e);
45
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuRadioItem", () => $d1bf075a6b218014$export$e4f69b41b1637536);
46
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuItemIndicator", () => $d1bf075a6b218014$export$42355ae145153fb6);
47
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuSeparator", () => $d1bf075a6b218014$export$da160178fd3bc7e9);
48
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuArrow", () => $d1bf075a6b218014$export$34b8980744021ec5);
49
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuSub", () => $d1bf075a6b218014$export$2f307d81a64f5442);
50
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuSubTrigger", () => $d1bf075a6b218014$export$21dcb7ec56f874cf);
51
+ $parcel$export($d1bf075a6b218014$exports, "DropdownMenuSubContent", () => $d1bf075a6b218014$export$f34ec8bc2482cc5f);
52
+ $parcel$export($d1bf075a6b218014$exports, "Root", () => $d1bf075a6b218014$export$be92b6f5f03c0fe9);
53
+ $parcel$export($d1bf075a6b218014$exports, "Trigger", () => $d1bf075a6b218014$export$41fb9f06171c75f4);
54
+ $parcel$export($d1bf075a6b218014$exports, "Portal", () => $d1bf075a6b218014$export$602eac185826482c);
55
+ $parcel$export($d1bf075a6b218014$exports, "Content", () => $d1bf075a6b218014$export$7c6e2c02157bb7d2);
56
+ $parcel$export($d1bf075a6b218014$exports, "Group", () => $d1bf075a6b218014$export$eb2fcfdbd7ba97d4);
57
+ $parcel$export($d1bf075a6b218014$exports, "Label", () => $d1bf075a6b218014$export$b04be29aa201d4f5);
58
+ $parcel$export($d1bf075a6b218014$exports, "Item", () => $d1bf075a6b218014$export$6d08773d2e66f8f2);
59
+ $parcel$export($d1bf075a6b218014$exports, "CheckboxItem", () => $d1bf075a6b218014$export$16ce288f89fa631c);
60
+ $parcel$export($d1bf075a6b218014$exports, "RadioGroup", () => $d1bf075a6b218014$export$a98f0dcb43a68a25);
61
+ $parcel$export($d1bf075a6b218014$exports, "RadioItem", () => $d1bf075a6b218014$export$371ab307eab489c0);
62
+ $parcel$export($d1bf075a6b218014$exports, "ItemIndicator", () => $d1bf075a6b218014$export$c3468e2714d175fa);
63
+ $parcel$export($d1bf075a6b218014$exports, "Separator", () => $d1bf075a6b218014$export$1ff3c3f08ae963c0);
64
+ $parcel$export($d1bf075a6b218014$exports, "Arrow", () => $d1bf075a6b218014$export$21b07c8f274aebd5);
65
+ $parcel$export($d1bf075a6b218014$exports, "Sub", () => $d1bf075a6b218014$export$d7a01e11500dfb6f);
66
+ $parcel$export($d1bf075a6b218014$exports, "SubTrigger", () => $d1bf075a6b218014$export$2ea8a7a591ac5eac);
67
+ $parcel$export($d1bf075a6b218014$exports, "SubContent", () => $d1bf075a6b218014$export$6d4de93b380beddf);
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+ /* -------------------------------------------------------------------------------------------------
79
+ * DropdownMenu
80
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$DROPDOWN_MENU_NAME = 'DropdownMenu';
81
+ const [$d1bf075a6b218014$var$createDropdownMenuContext, $d1bf075a6b218014$export$c0623cd925aeb687] = $7dQ7Q$radixuireactcontext.createContextScope($d1bf075a6b218014$var$DROPDOWN_MENU_NAME, [
82
+ $7dQ7Q$radixuireactmenu.createMenuScope
83
+ ]);
84
+ const $d1bf075a6b218014$var$useMenuScope = $7dQ7Q$radixuireactmenu.createMenuScope();
85
+ const [$d1bf075a6b218014$var$DropdownMenuProvider, $d1bf075a6b218014$var$useDropdownMenuContext] = $d1bf075a6b218014$var$createDropdownMenuContext($d1bf075a6b218014$var$DROPDOWN_MENU_NAME);
86
+ const $d1bf075a6b218014$export$e44a253a59704894 = (props)=>{
87
+ const { __scopeDropdownMenu: __scopeDropdownMenu , children: children , dir: dir , open: openProp , defaultOpen: defaultOpen , onOpenChange: onOpenChange , modal: modal = true , allowPinchZoom: allowPinchZoom } = props;
88
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
89
+ const triggerRef = $7dQ7Q$react.useRef(null);
90
+ const [open = false, setOpen] = $7dQ7Q$radixuireactusecontrollablestate.useControllableState({
91
+ prop: openProp,
92
+ defaultProp: defaultOpen,
93
+ onChange: onOpenChange
94
+ });
95
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($d1bf075a6b218014$var$DropdownMenuProvider, {
96
+ scope: __scopeDropdownMenu,
97
+ triggerId: $7dQ7Q$radixuireactid.useId(),
98
+ triggerRef: triggerRef,
99
+ contentId: $7dQ7Q$radixuireactid.useId(),
100
+ open: open,
101
+ onOpenChange: setOpen,
102
+ onOpenToggle: $7dQ7Q$react.useCallback(()=>setOpen((prevOpen)=>!prevOpen
103
+ )
104
+ , [
105
+ setOpen
106
+ ]),
107
+ modal: modal
108
+ }, /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.Root, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, {
109
+ open: open,
110
+ onOpenChange: setOpen,
111
+ dir: dir,
112
+ modal: modal,
113
+ allowPinchZoom: allowPinchZoom
114
+ }), children));
115
+ };
116
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$e44a253a59704894, {
117
+ displayName: $d1bf075a6b218014$var$DROPDOWN_MENU_NAME
118
+ });
119
+ /* -------------------------------------------------------------------------------------------------
120
+ * DropdownMenuTrigger
121
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$TRIGGER_NAME = 'DropdownMenuTrigger';
122
+ const $d1bf075a6b218014$export$d2469213b3befba9 = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
123
+ const { __scopeDropdownMenu: __scopeDropdownMenu , disabled: disabled = false , ...triggerProps } = props;
124
+ const context = $d1bf075a6b218014$var$useDropdownMenuContext($d1bf075a6b218014$var$TRIGGER_NAME, __scopeDropdownMenu);
125
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
126
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.Anchor, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({
127
+ asChild: true
128
+ }, menuScope), /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactprimitive.Primitive.button, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({
129
+ type: "button",
130
+ id: context.triggerId,
131
+ "aria-haspopup": "menu",
132
+ "aria-expanded": context.open ? true : undefined,
133
+ "aria-controls": context.open ? context.contentId : undefined,
134
+ "data-state": context.open ? 'open' : 'closed',
135
+ "data-disabled": disabled ? '' : undefined,
136
+ disabled: disabled
137
+ }, triggerProps, {
138
+ ref: $7dQ7Q$radixuireactcomposerefs.composeRefs(forwardedRef, context.triggerRef),
139
+ onPointerDown: $7dQ7Q$radixuiprimitive.composeEventHandlers(props.onPointerDown, (event)=>{
140
+ // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)
141
+ // but not when the control key is pressed (avoiding MacOS right click)
142
+ if (!disabled && event.button === 0 && event.ctrlKey === false) {
143
+ context.onOpenToggle(); // prevent trigger focusing when opening
144
+ // this allows the content to be given focus without competition
145
+ if (!context.open) event.preventDefault();
146
+ }
147
+ }),
148
+ onKeyDown: $7dQ7Q$radixuiprimitive.composeEventHandlers(props.onKeyDown, (event)=>{
149
+ if (disabled) return;
150
+ if ([
151
+ 'Enter',
152
+ ' '
153
+ ].includes(event.key)) context.onOpenToggle();
154
+ if (event.key === 'ArrowDown') context.onOpenChange(true); // prevent keypresses from scrolling window
155
+ if ([
156
+ ' ',
157
+ 'ArrowDown'
158
+ ].includes(event.key)) event.preventDefault();
159
+ })
160
+ })));
161
+ });
162
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$d2469213b3befba9, {
163
+ displayName: $d1bf075a6b218014$var$TRIGGER_NAME
164
+ });
165
+ /* -------------------------------------------------------------------------------------------------
166
+ * DropdownMenuPortal
167
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$PORTAL_NAME = 'DropdownMenuPortal';
168
+ const $d1bf075a6b218014$export$cd369b4d4d54efc9 = (props)=>{
169
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...portalProps } = props;
170
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
171
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.Portal, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, portalProps));
172
+ };
173
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$cd369b4d4d54efc9, {
174
+ displayName: $d1bf075a6b218014$var$PORTAL_NAME
175
+ });
176
+ /* -------------------------------------------------------------------------------------------------
177
+ * DropdownMenuContent
178
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$CONTENT_NAME = 'DropdownMenuContent';
179
+ const $d1bf075a6b218014$export$6e76d93a37c01248 = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
180
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...contentProps } = props;
181
+ const context = $d1bf075a6b218014$var$useDropdownMenuContext($d1bf075a6b218014$var$CONTENT_NAME, __scopeDropdownMenu);
182
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
183
+ const hasInteractedOutsideRef = $7dQ7Q$react.useRef(false);
184
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.Content, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({
185
+ id: context.contentId,
186
+ "aria-labelledby": context.triggerId
187
+ }, menuScope, contentProps, {
188
+ ref: forwardedRef,
189
+ onCloseAutoFocus: $7dQ7Q$radixuiprimitive.composeEventHandlers(props.onCloseAutoFocus, (event)=>{
190
+ var _context$triggerRef$c;
191
+ if (!hasInteractedOutsideRef.current) (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();
192
+ hasInteractedOutsideRef.current = false; // Always prevent auto focus because we either focus manually or want user agent focus
193
+ event.preventDefault();
194
+ }),
195
+ onInteractOutside: $7dQ7Q$radixuiprimitive.composeEventHandlers(props.onInteractOutside, (event)=>{
196
+ const originalEvent = event.detail.originalEvent;
197
+ const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
198
+ const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
199
+ if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;
200
+ }),
201
+ style: {
202
+ ...props.style,
203
+ // re-namespace exposed content custom property
204
+ ['--radix-dropdown-menu-content-transform-origin']: 'var(--radix-popper-transform-origin)'
205
+ }
206
+ }));
207
+ });
208
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$6e76d93a37c01248, {
209
+ displayName: $d1bf075a6b218014$var$CONTENT_NAME
210
+ });
211
+ /* -------------------------------------------------------------------------------------------------
212
+ * DropdownMenuGroup
213
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$GROUP_NAME = 'DropdownMenuGroup';
214
+ const $d1bf075a6b218014$export$246bebaba3a2f70e = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
215
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...groupProps } = props;
216
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
217
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.Group, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, groupProps, {
218
+ ref: forwardedRef
219
+ }));
220
+ });
221
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$246bebaba3a2f70e, {
222
+ displayName: $d1bf075a6b218014$var$GROUP_NAME
223
+ });
224
+ /* -------------------------------------------------------------------------------------------------
225
+ * DropdownMenuLabel
226
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$LABEL_NAME = 'DropdownMenuLabel';
227
+ const $d1bf075a6b218014$export$76e48c5b57f24495 = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
228
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...labelProps } = props;
229
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
230
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.Label, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, labelProps, {
231
+ ref: forwardedRef
232
+ }));
233
+ });
234
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$76e48c5b57f24495, {
235
+ displayName: $d1bf075a6b218014$var$LABEL_NAME
236
+ });
237
+ /* -------------------------------------------------------------------------------------------------
238
+ * DropdownMenuItem
239
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$ITEM_NAME = 'DropdownMenuItem';
240
+ const $d1bf075a6b218014$export$ed97964d1871885d = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
241
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...itemProps } = props;
242
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
243
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.Item, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, itemProps, {
244
+ ref: forwardedRef
245
+ }));
246
+ });
247
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$ed97964d1871885d, {
248
+ displayName: $d1bf075a6b218014$var$ITEM_NAME
249
+ });
250
+ /* -------------------------------------------------------------------------------------------------
251
+ * DropdownMenuCheckboxItem
252
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$CHECKBOX_ITEM_NAME = 'DropdownMenuCheckboxItem';
253
+ const $d1bf075a6b218014$export$53a69729da201fa9 = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
254
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...checkboxItemProps } = props;
255
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
256
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.CheckboxItem, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, checkboxItemProps, {
257
+ ref: forwardedRef
258
+ }));
259
+ });
260
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$53a69729da201fa9, {
261
+ displayName: $d1bf075a6b218014$var$CHECKBOX_ITEM_NAME
262
+ });
263
+ /* -------------------------------------------------------------------------------------------------
264
+ * DropdownMenuRadioGroup
265
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$RADIO_GROUP_NAME = 'DropdownMenuRadioGroup';
266
+ const $d1bf075a6b218014$export$3323ad73d55f587e = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
267
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...radioGroupProps } = props;
268
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
269
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.RadioGroup, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, radioGroupProps, {
270
+ ref: forwardedRef
271
+ }));
272
+ });
273
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$3323ad73d55f587e, {
274
+ displayName: $d1bf075a6b218014$var$RADIO_GROUP_NAME
275
+ });
276
+ /* -------------------------------------------------------------------------------------------------
277
+ * DropdownMenuRadioItem
278
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$RADIO_ITEM_NAME = 'DropdownMenuRadioItem';
279
+ const $d1bf075a6b218014$export$e4f69b41b1637536 = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
280
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...radioItemProps } = props;
281
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
282
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.RadioItem, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, radioItemProps, {
283
+ ref: forwardedRef
284
+ }));
285
+ });
286
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$e4f69b41b1637536, {
287
+ displayName: $d1bf075a6b218014$var$RADIO_ITEM_NAME
288
+ });
289
+ /* -------------------------------------------------------------------------------------------------
290
+ * DropdownMenuItemIndicator
291
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$INDICATOR_NAME = 'DropdownMenuItemIndicator';
292
+ const $d1bf075a6b218014$export$42355ae145153fb6 = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
293
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...itemIndicatorProps } = props;
294
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
295
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.ItemIndicator, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, itemIndicatorProps, {
296
+ ref: forwardedRef
297
+ }));
298
+ });
299
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$42355ae145153fb6, {
300
+ displayName: $d1bf075a6b218014$var$INDICATOR_NAME
301
+ });
302
+ /* -------------------------------------------------------------------------------------------------
303
+ * DropdownMenuSeparator
304
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$SEPARATOR_NAME = 'DropdownMenuSeparator';
305
+ const $d1bf075a6b218014$export$da160178fd3bc7e9 = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
306
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...separatorProps } = props;
307
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
308
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.Separator, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, separatorProps, {
309
+ ref: forwardedRef
310
+ }));
311
+ });
312
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$da160178fd3bc7e9, {
313
+ displayName: $d1bf075a6b218014$var$SEPARATOR_NAME
314
+ });
315
+ /* -------------------------------------------------------------------------------------------------
316
+ * DropdownMenuArrow
317
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$ARROW_NAME = 'DropdownMenuArrow';
318
+ const $d1bf075a6b218014$export$34b8980744021ec5 = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
319
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...arrowProps } = props;
320
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
321
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.Arrow, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, arrowProps, {
322
+ ref: forwardedRef
323
+ }));
324
+ });
325
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$34b8980744021ec5, {
326
+ displayName: $d1bf075a6b218014$var$ARROW_NAME
327
+ });
328
+ /* -------------------------------------------------------------------------------------------------
329
+ * DropdownMenuSub
330
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$export$2f307d81a64f5442 = (props)=>{
331
+ const { __scopeDropdownMenu: __scopeDropdownMenu , children: children , open: openProp , onOpenChange: onOpenChange , defaultOpen: defaultOpen } = props;
332
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
333
+ const [open = false, setOpen] = $7dQ7Q$radixuireactusecontrollablestate.useControllableState({
334
+ prop: openProp,
335
+ defaultProp: defaultOpen,
336
+ onChange: onOpenChange
337
+ });
338
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.Sub, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, {
339
+ open: open,
340
+ onOpenChange: setOpen
341
+ }), children);
342
+ };
343
+ /* -------------------------------------------------------------------------------------------------
344
+ * DropdownMenuSubTrigger
345
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$SUB_TRIGGER_NAME = 'DropdownMenuSubTrigger';
346
+ const $d1bf075a6b218014$export$21dcb7ec56f874cf = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
347
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...subTriggerProps } = props;
348
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
349
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.SubTrigger, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, subTriggerProps, {
350
+ ref: forwardedRef
351
+ }));
352
+ });
353
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$21dcb7ec56f874cf, {
354
+ displayName: $d1bf075a6b218014$var$SUB_TRIGGER_NAME
355
+ });
356
+ /* -------------------------------------------------------------------------------------------------
357
+ * DropdownMenuSubContent
358
+ * -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$var$SUB_CONTENT_NAME = 'DropdownMenuSubContent';
359
+ const $d1bf075a6b218014$export$f34ec8bc2482cc5f = /*#__PURE__*/ $7dQ7Q$react.forwardRef((props, forwardedRef)=>{
360
+ const { __scopeDropdownMenu: __scopeDropdownMenu , ...subContentProps } = props;
361
+ const menuScope = $d1bf075a6b218014$var$useMenuScope(__scopeDropdownMenu);
362
+ return /*#__PURE__*/ $7dQ7Q$react.createElement($7dQ7Q$radixuireactmenu.SubContent, ($parcel$interopDefault($7dQ7Q$babelruntimehelpersextends))({}, menuScope, subContentProps, {
363
+ ref: forwardedRef,
364
+ style: {
365
+ ...props.style,
366
+ // re-namespace exposed content custom property
367
+ ['--radix-dropdown-menu-content-transform-origin']: 'var(--radix-popper-transform-origin)'
368
+ }
369
+ }));
370
+ });
371
+ /*#__PURE__*/ Object.assign($d1bf075a6b218014$export$f34ec8bc2482cc5f, {
372
+ displayName: $d1bf075a6b218014$var$SUB_CONTENT_NAME
373
+ });
374
+ /* -----------------------------------------------------------------------------------------------*/ const $d1bf075a6b218014$export$be92b6f5f03c0fe9 = $d1bf075a6b218014$export$e44a253a59704894;
375
+ const $d1bf075a6b218014$export$41fb9f06171c75f4 = $d1bf075a6b218014$export$d2469213b3befba9;
376
+ const $d1bf075a6b218014$export$602eac185826482c = $d1bf075a6b218014$export$cd369b4d4d54efc9;
377
+ const $d1bf075a6b218014$export$7c6e2c02157bb7d2 = $d1bf075a6b218014$export$6e76d93a37c01248;
378
+ const $d1bf075a6b218014$export$eb2fcfdbd7ba97d4 = $d1bf075a6b218014$export$246bebaba3a2f70e;
379
+ const $d1bf075a6b218014$export$b04be29aa201d4f5 = $d1bf075a6b218014$export$76e48c5b57f24495;
380
+ const $d1bf075a6b218014$export$6d08773d2e66f8f2 = $d1bf075a6b218014$export$ed97964d1871885d;
381
+ const $d1bf075a6b218014$export$16ce288f89fa631c = $d1bf075a6b218014$export$53a69729da201fa9;
382
+ const $d1bf075a6b218014$export$a98f0dcb43a68a25 = $d1bf075a6b218014$export$3323ad73d55f587e;
383
+ const $d1bf075a6b218014$export$371ab307eab489c0 = $d1bf075a6b218014$export$e4f69b41b1637536;
384
+ const $d1bf075a6b218014$export$c3468e2714d175fa = $d1bf075a6b218014$export$42355ae145153fb6;
385
+ const $d1bf075a6b218014$export$1ff3c3f08ae963c0 = $d1bf075a6b218014$export$da160178fd3bc7e9;
386
+ const $d1bf075a6b218014$export$21b07c8f274aebd5 = $d1bf075a6b218014$export$34b8980744021ec5;
387
+ const $d1bf075a6b218014$export$d7a01e11500dfb6f = $d1bf075a6b218014$export$2f307d81a64f5442;
388
+ const $d1bf075a6b218014$export$2ea8a7a591ac5eac = $d1bf075a6b218014$export$21dcb7ec56f874cf;
389
+ const $d1bf075a6b218014$export$6d4de93b380beddf = $d1bf075a6b218014$export$f34ec8bc2482cc5f;
390
+
391
+
392
+ $parcel$exportWildcard(module.exports, $d1bf075a6b218014$exports);
393
+
394
+
2
395
  //# sourceMappingURL=index.js.map