@radix-ui/react-dropdown-menu 0.1.7-rc.4 → 0.1.7-rc.40
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 +29 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +394 -1
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +375 -1
- package/dist/index.module.js.map +1 -1
- package/package.json +7 -7
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
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":"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","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
|
|
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
|