v1.0 with SW PWA enabled
This commit is contained in:
21
frontend/node_modules/@radix-ui/react-dropdown-menu/LICENSE
generated
vendored
Normal file
21
frontend/node_modules/@radix-ui/react-dropdown-menu/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 WorkOS
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
3
frontend/node_modules/@radix-ui/react-dropdown-menu/README.md
generated
vendored
Normal file
3
frontend/node_modules/@radix-ui/react-dropdown-menu/README.md
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# `react-dropdown-menu`
|
||||
|
||||
View docs [here](https://radix-ui.com/primitives/docs/components/dropdown-menu).
|
||||
97
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.mts
generated
vendored
Normal file
97
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.mts
generated
vendored
Normal file
@ -0,0 +1,97 @@
|
||||
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
||||
import * as React from 'react';
|
||||
import { Primitive } from '@radix-ui/react-primitive';
|
||||
import * as MenuPrimitive from '@radix-ui/react-menu';
|
||||
|
||||
type Direction = 'ltr' | 'rtl';
|
||||
declare const createDropdownMenuScope: _radix_ui_react_context.CreateScope;
|
||||
interface DropdownMenuProps {
|
||||
children?: React.ReactNode;
|
||||
dir?: Direction;
|
||||
open?: boolean;
|
||||
defaultOpen?: boolean;
|
||||
onOpenChange?(open: boolean): void;
|
||||
modal?: boolean;
|
||||
}
|
||||
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
||||
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
||||
interface DropdownMenuTriggerProps extends PrimitiveButtonProps {
|
||||
}
|
||||
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
||||
interface DropdownMenuPortalProps extends MenuPortalProps {
|
||||
}
|
||||
declare const DropdownMenuPortal: React.FC<DropdownMenuPortalProps>;
|
||||
type MenuContentProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
||||
interface DropdownMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
|
||||
}
|
||||
declare const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuGroupProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
||||
interface DropdownMenuGroupProps extends MenuGroupProps {
|
||||
}
|
||||
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuLabelProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
||||
interface DropdownMenuLabelProps extends MenuLabelProps {
|
||||
}
|
||||
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
||||
interface DropdownMenuItemProps extends MenuItemProps {
|
||||
}
|
||||
declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuCheckboxItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
||||
interface DropdownMenuCheckboxItemProps extends MenuCheckboxItemProps {
|
||||
}
|
||||
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuRadioGroupProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
||||
interface DropdownMenuRadioGroupProps extends MenuRadioGroupProps {
|
||||
}
|
||||
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuRadioItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
||||
interface DropdownMenuRadioItemProps extends MenuRadioItemProps {
|
||||
}
|
||||
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuItemIndicatorProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
||||
interface DropdownMenuItemIndicatorProps extends MenuItemIndicatorProps {
|
||||
}
|
||||
declare const DropdownMenuItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
||||
type MenuSeparatorProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
||||
interface DropdownMenuSeparatorProps extends MenuSeparatorProps {
|
||||
}
|
||||
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuArrowProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
||||
interface DropdownMenuArrowProps extends MenuArrowProps {
|
||||
}
|
||||
declare const DropdownMenuArrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
||||
interface DropdownMenuSubProps {
|
||||
children?: React.ReactNode;
|
||||
open?: boolean;
|
||||
defaultOpen?: boolean;
|
||||
onOpenChange?(open: boolean): void;
|
||||
}
|
||||
declare const DropdownMenuSub: React.FC<DropdownMenuSubProps>;
|
||||
type MenuSubTriggerProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
||||
interface DropdownMenuSubTriggerProps extends MenuSubTriggerProps {
|
||||
}
|
||||
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuSubContentProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
||||
interface DropdownMenuSubContentProps extends MenuSubContentProps {
|
||||
}
|
||||
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Root: React.FC<DropdownMenuProps>;
|
||||
declare const Trigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
declare const Portal: React.FC<DropdownMenuPortalProps>;
|
||||
declare const Content: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Group: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Label: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Item: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const CheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const RadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const RadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const ItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
||||
declare const Separator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Arrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
||||
declare const Sub: React.FC<DropdownMenuSubProps>;
|
||||
declare const SubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const SubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
|
||||
export { Arrow, CheckboxItem, Content, DropdownMenu, DropdownMenuArrow, type DropdownMenuArrowProps, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, DropdownMenuItemIndicator, type DropdownMenuItemIndicatorProps, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, Group, Item, ItemIndicator, Label, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger, createDropdownMenuScope };
|
||||
97
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.ts
generated
vendored
Normal file
97
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,97 @@
|
||||
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
||||
import * as React from 'react';
|
||||
import { Primitive } from '@radix-ui/react-primitive';
|
||||
import * as MenuPrimitive from '@radix-ui/react-menu';
|
||||
|
||||
type Direction = 'ltr' | 'rtl';
|
||||
declare const createDropdownMenuScope: _radix_ui_react_context.CreateScope;
|
||||
interface DropdownMenuProps {
|
||||
children?: React.ReactNode;
|
||||
dir?: Direction;
|
||||
open?: boolean;
|
||||
defaultOpen?: boolean;
|
||||
onOpenChange?(open: boolean): void;
|
||||
modal?: boolean;
|
||||
}
|
||||
declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
||||
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
||||
interface DropdownMenuTriggerProps extends PrimitiveButtonProps {
|
||||
}
|
||||
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
|
||||
interface DropdownMenuPortalProps extends MenuPortalProps {
|
||||
}
|
||||
declare const DropdownMenuPortal: React.FC<DropdownMenuPortalProps>;
|
||||
type MenuContentProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
|
||||
interface DropdownMenuContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
|
||||
}
|
||||
declare const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuGroupProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
|
||||
interface DropdownMenuGroupProps extends MenuGroupProps {
|
||||
}
|
||||
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuLabelProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
|
||||
interface DropdownMenuLabelProps extends MenuLabelProps {
|
||||
}
|
||||
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
|
||||
interface DropdownMenuItemProps extends MenuItemProps {
|
||||
}
|
||||
declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuCheckboxItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
|
||||
interface DropdownMenuCheckboxItemProps extends MenuCheckboxItemProps {
|
||||
}
|
||||
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuRadioGroupProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
|
||||
interface DropdownMenuRadioGroupProps extends MenuRadioGroupProps {
|
||||
}
|
||||
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuRadioItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
|
||||
interface DropdownMenuRadioItemProps extends MenuRadioItemProps {
|
||||
}
|
||||
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuItemIndicatorProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
|
||||
interface DropdownMenuItemIndicatorProps extends MenuItemIndicatorProps {
|
||||
}
|
||||
declare const DropdownMenuItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
||||
type MenuSeparatorProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
|
||||
interface DropdownMenuSeparatorProps extends MenuSeparatorProps {
|
||||
}
|
||||
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuArrowProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
|
||||
interface DropdownMenuArrowProps extends MenuArrowProps {
|
||||
}
|
||||
declare const DropdownMenuArrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
||||
interface DropdownMenuSubProps {
|
||||
children?: React.ReactNode;
|
||||
open?: boolean;
|
||||
defaultOpen?: boolean;
|
||||
onOpenChange?(open: boolean): void;
|
||||
}
|
||||
declare const DropdownMenuSub: React.FC<DropdownMenuSubProps>;
|
||||
type MenuSubTriggerProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
|
||||
interface DropdownMenuSubTriggerProps extends MenuSubTriggerProps {
|
||||
}
|
||||
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type MenuSubContentProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
|
||||
interface DropdownMenuSubContentProps extends MenuSubContentProps {
|
||||
}
|
||||
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Root: React.FC<DropdownMenuProps>;
|
||||
declare const Trigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
declare const Portal: React.FC<DropdownMenuPortalProps>;
|
||||
declare const Content: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Group: React.ForwardRefExoticComponent<DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Label: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Item: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const CheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const RadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const RadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const ItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
||||
declare const Separator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Arrow: React.ForwardRefExoticComponent<DropdownMenuArrowProps & React.RefAttributes<SVGSVGElement>>;
|
||||
declare const Sub: React.FC<DropdownMenuSubProps>;
|
||||
declare const SubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const SubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
|
||||
export { Arrow, CheckboxItem, Content, DropdownMenu, DropdownMenuArrow, type DropdownMenuArrowProps, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, DropdownMenuItemIndicator, type DropdownMenuItemIndicatorProps, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, Group, Item, ItemIndicator, Label, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger, createDropdownMenuScope };
|
||||
337
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.js
generated
vendored
Normal file
337
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.js
generated
vendored
Normal file
@ -0,0 +1,337 @@
|
||||
"use strict";
|
||||
"use client";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var index_exports = {};
|
||||
__export(index_exports, {
|
||||
Arrow: () => Arrow2,
|
||||
CheckboxItem: () => CheckboxItem2,
|
||||
Content: () => Content2,
|
||||
DropdownMenu: () => DropdownMenu,
|
||||
DropdownMenuArrow: () => DropdownMenuArrow,
|
||||
DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
|
||||
DropdownMenuContent: () => DropdownMenuContent,
|
||||
DropdownMenuGroup: () => DropdownMenuGroup,
|
||||
DropdownMenuItem: () => DropdownMenuItem,
|
||||
DropdownMenuItemIndicator: () => DropdownMenuItemIndicator,
|
||||
DropdownMenuLabel: () => DropdownMenuLabel,
|
||||
DropdownMenuPortal: () => DropdownMenuPortal,
|
||||
DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
|
||||
DropdownMenuRadioItem: () => DropdownMenuRadioItem,
|
||||
DropdownMenuSeparator: () => DropdownMenuSeparator,
|
||||
DropdownMenuSub: () => DropdownMenuSub,
|
||||
DropdownMenuSubContent: () => DropdownMenuSubContent,
|
||||
DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
|
||||
DropdownMenuTrigger: () => DropdownMenuTrigger,
|
||||
Group: () => Group2,
|
||||
Item: () => Item2,
|
||||
ItemIndicator: () => ItemIndicator2,
|
||||
Label: () => Label2,
|
||||
Portal: () => Portal2,
|
||||
RadioGroup: () => RadioGroup2,
|
||||
RadioItem: () => RadioItem2,
|
||||
Root: () => Root2,
|
||||
Separator: () => Separator2,
|
||||
Sub: () => Sub2,
|
||||
SubContent: () => SubContent2,
|
||||
SubTrigger: () => SubTrigger2,
|
||||
Trigger: () => Trigger,
|
||||
createDropdownMenuScope: () => createDropdownMenuScope
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/dropdown-menu.tsx
|
||||
var React = __toESM(require("react"));
|
||||
var import_primitive = require("@radix-ui/primitive");
|
||||
var import_react_compose_refs = require("@radix-ui/react-compose-refs");
|
||||
var import_react_context = require("@radix-ui/react-context");
|
||||
var import_react_use_controllable_state = require("@radix-ui/react-use-controllable-state");
|
||||
var import_react_primitive = require("@radix-ui/react-primitive");
|
||||
var MenuPrimitive = __toESM(require("@radix-ui/react-menu"));
|
||||
var import_react_menu = require("@radix-ui/react-menu");
|
||||
var import_react_id = require("@radix-ui/react-id");
|
||||
var import_jsx_runtime = require("react/jsx-runtime");
|
||||
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
||||
var [createDropdownMenuContext, createDropdownMenuScope] = (0, import_react_context.createContextScope)(
|
||||
DROPDOWN_MENU_NAME,
|
||||
[import_react_menu.createMenuScope]
|
||||
);
|
||||
var useMenuScope = (0, import_react_menu.createMenuScope)();
|
||||
var [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);
|
||||
var DropdownMenu = (props) => {
|
||||
const {
|
||||
__scopeDropdownMenu,
|
||||
children,
|
||||
dir,
|
||||
open: openProp,
|
||||
defaultOpen,
|
||||
onOpenChange,
|
||||
modal = true
|
||||
} = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
const triggerRef = React.useRef(null);
|
||||
const [open, setOpen] = (0, import_react_use_controllable_state.useControllableState)({
|
||||
prop: openProp,
|
||||
defaultProp: defaultOpen ?? false,
|
||||
onChange: onOpenChange,
|
||||
caller: DROPDOWN_MENU_NAME
|
||||
});
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
||||
DropdownMenuProvider,
|
||||
{
|
||||
scope: __scopeDropdownMenu,
|
||||
triggerId: (0, import_react_id.useId)(),
|
||||
triggerRef,
|
||||
contentId: (0, import_react_id.useId)(),
|
||||
open,
|
||||
onOpenChange: setOpen,
|
||||
onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
||||
modal,
|
||||
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.Root, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })
|
||||
}
|
||||
);
|
||||
};
|
||||
DropdownMenu.displayName = DROPDOWN_MENU_NAME;
|
||||
var TRIGGER_NAME = "DropdownMenuTrigger";
|
||||
var DropdownMenuTrigger = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;
|
||||
const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.Anchor, { asChild: true, ...menuScope, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
||||
import_react_primitive.Primitive.button,
|
||||
{
|
||||
type: "button",
|
||||
id: context.triggerId,
|
||||
"aria-haspopup": "menu",
|
||||
"aria-expanded": context.open,
|
||||
"aria-controls": context.open ? context.contentId : void 0,
|
||||
"data-state": context.open ? "open" : "closed",
|
||||
"data-disabled": disabled ? "" : void 0,
|
||||
disabled,
|
||||
...triggerProps,
|
||||
ref: (0, import_react_compose_refs.composeRefs)(forwardedRef, context.triggerRef),
|
||||
onPointerDown: (0, import_primitive.composeEventHandlers)(props.onPointerDown, (event) => {
|
||||
if (!disabled && event.button === 0 && event.ctrlKey === false) {
|
||||
context.onOpenToggle();
|
||||
if (!context.open) event.preventDefault();
|
||||
}
|
||||
}),
|
||||
onKeyDown: (0, import_primitive.composeEventHandlers)(props.onKeyDown, (event) => {
|
||||
if (disabled) return;
|
||||
if (["Enter", " "].includes(event.key)) context.onOpenToggle();
|
||||
if (event.key === "ArrowDown") context.onOpenChange(true);
|
||||
if (["Enter", " ", "ArrowDown"].includes(event.key)) event.preventDefault();
|
||||
})
|
||||
}
|
||||
) });
|
||||
}
|
||||
);
|
||||
DropdownMenuTrigger.displayName = TRIGGER_NAME;
|
||||
var PORTAL_NAME = "DropdownMenuPortal";
|
||||
var DropdownMenuPortal = (props) => {
|
||||
const { __scopeDropdownMenu, ...portalProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.Portal, { ...menuScope, ...portalProps });
|
||||
};
|
||||
DropdownMenuPortal.displayName = PORTAL_NAME;
|
||||
var CONTENT_NAME = "DropdownMenuContent";
|
||||
var DropdownMenuContent = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...contentProps } = props;
|
||||
const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
const hasInteractedOutsideRef = React.useRef(false);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
||||
MenuPrimitive.Content,
|
||||
{
|
||||
id: context.contentId,
|
||||
"aria-labelledby": context.triggerId,
|
||||
...menuScope,
|
||||
...contentProps,
|
||||
ref: forwardedRef,
|
||||
onCloseAutoFocus: (0, import_primitive.composeEventHandlers)(props.onCloseAutoFocus, (event) => {
|
||||
if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
|
||||
hasInteractedOutsideRef.current = false;
|
||||
event.preventDefault();
|
||||
}),
|
||||
onInteractOutside: (0, import_primitive.composeEventHandlers)(props.onInteractOutside, (event) => {
|
||||
const originalEvent = event.detail.originalEvent;
|
||||
const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
|
||||
const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
||||
if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;
|
||||
}),
|
||||
style: {
|
||||
...props.style,
|
||||
// re-namespace exposed content custom properties
|
||||
...{
|
||||
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
||||
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
||||
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
||||
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
||||
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
DropdownMenuContent.displayName = CONTENT_NAME;
|
||||
var GROUP_NAME = "DropdownMenuGroup";
|
||||
var DropdownMenuGroup = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...groupProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
DropdownMenuGroup.displayName = GROUP_NAME;
|
||||
var LABEL_NAME = "DropdownMenuLabel";
|
||||
var DropdownMenuLabel = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...labelProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
DropdownMenuLabel.displayName = LABEL_NAME;
|
||||
var ITEM_NAME = "DropdownMenuItem";
|
||||
var DropdownMenuItem = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...itemProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
DropdownMenuItem.displayName = ITEM_NAME;
|
||||
var CHECKBOX_ITEM_NAME = "DropdownMenuCheckboxItem";
|
||||
var DropdownMenuCheckboxItem = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...checkboxItemProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;
|
||||
var RADIO_GROUP_NAME = "DropdownMenuRadioGroup";
|
||||
var DropdownMenuRadioGroup = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...radioGroupProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuRadioGroup.displayName = RADIO_GROUP_NAME;
|
||||
var RADIO_ITEM_NAME = "DropdownMenuRadioItem";
|
||||
var DropdownMenuRadioItem = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...radioItemProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuRadioItem.displayName = RADIO_ITEM_NAME;
|
||||
var INDICATOR_NAME = "DropdownMenuItemIndicator";
|
||||
var DropdownMenuItemIndicator = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...itemIndicatorProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuItemIndicator.displayName = INDICATOR_NAME;
|
||||
var SEPARATOR_NAME = "DropdownMenuSeparator";
|
||||
var DropdownMenuSeparator = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...separatorProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuSeparator.displayName = SEPARATOR_NAME;
|
||||
var ARROW_NAME = "DropdownMenuArrow";
|
||||
var DropdownMenuArrow = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...arrowProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
DropdownMenuArrow.displayName = ARROW_NAME;
|
||||
var DropdownMenuSub = (props) => {
|
||||
const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
const [open, setOpen] = (0, import_react_use_controllable_state.useControllableState)({
|
||||
prop: openProp,
|
||||
defaultProp: defaultOpen ?? false,
|
||||
onChange: onOpenChange,
|
||||
caller: "DropdownMenuSub"
|
||||
});
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });
|
||||
};
|
||||
var SUB_TRIGGER_NAME = "DropdownMenuSubTrigger";
|
||||
var DropdownMenuSubTrigger = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...subTriggerProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPrimitive.SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuSubTrigger.displayName = SUB_TRIGGER_NAME;
|
||||
var SUB_CONTENT_NAME = "DropdownMenuSubContent";
|
||||
var DropdownMenuSubContent = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...subContentProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
||||
MenuPrimitive.SubContent,
|
||||
{
|
||||
...menuScope,
|
||||
...subContentProps,
|
||||
ref: forwardedRef,
|
||||
style: {
|
||||
...props.style,
|
||||
// re-namespace exposed content custom properties
|
||||
...{
|
||||
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
||||
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
||||
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
||||
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
||||
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
DropdownMenuSubContent.displayName = SUB_CONTENT_NAME;
|
||||
var Root2 = DropdownMenu;
|
||||
var Trigger = DropdownMenuTrigger;
|
||||
var Portal2 = DropdownMenuPortal;
|
||||
var Content2 = DropdownMenuContent;
|
||||
var Group2 = DropdownMenuGroup;
|
||||
var Label2 = DropdownMenuLabel;
|
||||
var Item2 = DropdownMenuItem;
|
||||
var CheckboxItem2 = DropdownMenuCheckboxItem;
|
||||
var RadioGroup2 = DropdownMenuRadioGroup;
|
||||
var RadioItem2 = DropdownMenuRadioItem;
|
||||
var ItemIndicator2 = DropdownMenuItemIndicator;
|
||||
var Separator2 = DropdownMenuSeparator;
|
||||
var Arrow2 = DropdownMenuArrow;
|
||||
var Sub2 = DropdownMenuSub;
|
||||
var SubTrigger2 = DropdownMenuSubTrigger;
|
||||
var SubContent2 = DropdownMenuSubContent;
|
||||
//# sourceMappingURL=index.js.map
|
||||
7
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map
generated
vendored
Normal file
7
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
305
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs
generated
vendored
Normal file
305
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs
generated
vendored
Normal file
@ -0,0 +1,305 @@
|
||||
"use client";
|
||||
|
||||
// src/dropdown-menu.tsx
|
||||
import * as React from "react";
|
||||
import { composeEventHandlers } from "@radix-ui/primitive";
|
||||
import { composeRefs } from "@radix-ui/react-compose-refs";
|
||||
import { createContextScope } from "@radix-ui/react-context";
|
||||
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
||||
import { Primitive } from "@radix-ui/react-primitive";
|
||||
import * as MenuPrimitive from "@radix-ui/react-menu";
|
||||
import { createMenuScope } from "@radix-ui/react-menu";
|
||||
import { useId } from "@radix-ui/react-id";
|
||||
import { jsx } from "react/jsx-runtime";
|
||||
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
||||
var [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(
|
||||
DROPDOWN_MENU_NAME,
|
||||
[createMenuScope]
|
||||
);
|
||||
var useMenuScope = createMenuScope();
|
||||
var [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);
|
||||
var DropdownMenu = (props) => {
|
||||
const {
|
||||
__scopeDropdownMenu,
|
||||
children,
|
||||
dir,
|
||||
open: openProp,
|
||||
defaultOpen,
|
||||
onOpenChange,
|
||||
modal = true
|
||||
} = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
const triggerRef = React.useRef(null);
|
||||
const [open, setOpen] = useControllableState({
|
||||
prop: openProp,
|
||||
defaultProp: defaultOpen ?? false,
|
||||
onChange: onOpenChange,
|
||||
caller: DROPDOWN_MENU_NAME
|
||||
});
|
||||
return /* @__PURE__ */ jsx(
|
||||
DropdownMenuProvider,
|
||||
{
|
||||
scope: __scopeDropdownMenu,
|
||||
triggerId: useId(),
|
||||
triggerRef,
|
||||
contentId: useId(),
|
||||
open,
|
||||
onOpenChange: setOpen,
|
||||
onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
||||
modal,
|
||||
children: /* @__PURE__ */ jsx(MenuPrimitive.Root, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })
|
||||
}
|
||||
);
|
||||
};
|
||||
DropdownMenu.displayName = DROPDOWN_MENU_NAME;
|
||||
var TRIGGER_NAME = "DropdownMenuTrigger";
|
||||
var DropdownMenuTrigger = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;
|
||||
const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(
|
||||
Primitive.button,
|
||||
{
|
||||
type: "button",
|
||||
id: context.triggerId,
|
||||
"aria-haspopup": "menu",
|
||||
"aria-expanded": context.open,
|
||||
"aria-controls": context.open ? context.contentId : void 0,
|
||||
"data-state": context.open ? "open" : "closed",
|
||||
"data-disabled": disabled ? "" : void 0,
|
||||
disabled,
|
||||
...triggerProps,
|
||||
ref: composeRefs(forwardedRef, context.triggerRef),
|
||||
onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {
|
||||
if (!disabled && event.button === 0 && event.ctrlKey === false) {
|
||||
context.onOpenToggle();
|
||||
if (!context.open) event.preventDefault();
|
||||
}
|
||||
}),
|
||||
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
||||
if (disabled) return;
|
||||
if (["Enter", " "].includes(event.key)) context.onOpenToggle();
|
||||
if (event.key === "ArrowDown") context.onOpenChange(true);
|
||||
if (["Enter", " ", "ArrowDown"].includes(event.key)) event.preventDefault();
|
||||
})
|
||||
}
|
||||
) });
|
||||
}
|
||||
);
|
||||
DropdownMenuTrigger.displayName = TRIGGER_NAME;
|
||||
var PORTAL_NAME = "DropdownMenuPortal";
|
||||
var DropdownMenuPortal = (props) => {
|
||||
const { __scopeDropdownMenu, ...portalProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });
|
||||
};
|
||||
DropdownMenuPortal.displayName = PORTAL_NAME;
|
||||
var CONTENT_NAME = "DropdownMenuContent";
|
||||
var DropdownMenuContent = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...contentProps } = props;
|
||||
const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
const hasInteractedOutsideRef = React.useRef(false);
|
||||
return /* @__PURE__ */ jsx(
|
||||
MenuPrimitive.Content,
|
||||
{
|
||||
id: context.contentId,
|
||||
"aria-labelledby": context.triggerId,
|
||||
...menuScope,
|
||||
...contentProps,
|
||||
ref: forwardedRef,
|
||||
onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
|
||||
if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
|
||||
hasInteractedOutsideRef.current = false;
|
||||
event.preventDefault();
|
||||
}),
|
||||
onInteractOutside: composeEventHandlers(props.onInteractOutside, (event) => {
|
||||
const originalEvent = event.detail.originalEvent;
|
||||
const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
|
||||
const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
||||
if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;
|
||||
}),
|
||||
style: {
|
||||
...props.style,
|
||||
// re-namespace exposed content custom properties
|
||||
...{
|
||||
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
||||
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
||||
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
||||
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
||||
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
DropdownMenuContent.displayName = CONTENT_NAME;
|
||||
var GROUP_NAME = "DropdownMenuGroup";
|
||||
var DropdownMenuGroup = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...groupProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
DropdownMenuGroup.displayName = GROUP_NAME;
|
||||
var LABEL_NAME = "DropdownMenuLabel";
|
||||
var DropdownMenuLabel = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...labelProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
DropdownMenuLabel.displayName = LABEL_NAME;
|
||||
var ITEM_NAME = "DropdownMenuItem";
|
||||
var DropdownMenuItem = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...itemProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
DropdownMenuItem.displayName = ITEM_NAME;
|
||||
var CHECKBOX_ITEM_NAME = "DropdownMenuCheckboxItem";
|
||||
var DropdownMenuCheckboxItem = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...checkboxItemProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;
|
||||
var RADIO_GROUP_NAME = "DropdownMenuRadioGroup";
|
||||
var DropdownMenuRadioGroup = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...radioGroupProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuRadioGroup.displayName = RADIO_GROUP_NAME;
|
||||
var RADIO_ITEM_NAME = "DropdownMenuRadioItem";
|
||||
var DropdownMenuRadioItem = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...radioItemProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuRadioItem.displayName = RADIO_ITEM_NAME;
|
||||
var INDICATOR_NAME = "DropdownMenuItemIndicator";
|
||||
var DropdownMenuItemIndicator = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...itemIndicatorProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuItemIndicator.displayName = INDICATOR_NAME;
|
||||
var SEPARATOR_NAME = "DropdownMenuSeparator";
|
||||
var DropdownMenuSeparator = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...separatorProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuSeparator.displayName = SEPARATOR_NAME;
|
||||
var ARROW_NAME = "DropdownMenuArrow";
|
||||
var DropdownMenuArrow = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...arrowProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
DropdownMenuArrow.displayName = ARROW_NAME;
|
||||
var DropdownMenuSub = (props) => {
|
||||
const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
const [open, setOpen] = useControllableState({
|
||||
prop: openProp,
|
||||
defaultProp: defaultOpen ?? false,
|
||||
onChange: onOpenChange,
|
||||
caller: "DropdownMenuSub"
|
||||
});
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });
|
||||
};
|
||||
var SUB_TRIGGER_NAME = "DropdownMenuSubTrigger";
|
||||
var DropdownMenuSubTrigger = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...subTriggerProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(MenuPrimitive.SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });
|
||||
});
|
||||
DropdownMenuSubTrigger.displayName = SUB_TRIGGER_NAME;
|
||||
var SUB_CONTENT_NAME = "DropdownMenuSubContent";
|
||||
var DropdownMenuSubContent = React.forwardRef((props, forwardedRef) => {
|
||||
const { __scopeDropdownMenu, ...subContentProps } = props;
|
||||
const menuScope = useMenuScope(__scopeDropdownMenu);
|
||||
return /* @__PURE__ */ jsx(
|
||||
MenuPrimitive.SubContent,
|
||||
{
|
||||
...menuScope,
|
||||
...subContentProps,
|
||||
ref: forwardedRef,
|
||||
style: {
|
||||
...props.style,
|
||||
// re-namespace exposed content custom properties
|
||||
...{
|
||||
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
||||
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
||||
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
||||
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
||||
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
DropdownMenuSubContent.displayName = SUB_CONTENT_NAME;
|
||||
var Root2 = DropdownMenu;
|
||||
var Trigger = DropdownMenuTrigger;
|
||||
var Portal2 = DropdownMenuPortal;
|
||||
var Content2 = DropdownMenuContent;
|
||||
var Group2 = DropdownMenuGroup;
|
||||
var Label2 = DropdownMenuLabel;
|
||||
var Item2 = DropdownMenuItem;
|
||||
var CheckboxItem2 = DropdownMenuCheckboxItem;
|
||||
var RadioGroup2 = DropdownMenuRadioGroup;
|
||||
var RadioItem2 = DropdownMenuRadioItem;
|
||||
var ItemIndicator2 = DropdownMenuItemIndicator;
|
||||
var Separator2 = DropdownMenuSeparator;
|
||||
var Arrow2 = DropdownMenuArrow;
|
||||
var Sub2 = DropdownMenuSub;
|
||||
var SubTrigger2 = DropdownMenuSubTrigger;
|
||||
var SubContent2 = DropdownMenuSubContent;
|
||||
export {
|
||||
Arrow2 as Arrow,
|
||||
CheckboxItem2 as CheckboxItem,
|
||||
Content2 as Content,
|
||||
DropdownMenu,
|
||||
DropdownMenuArrow,
|
||||
DropdownMenuCheckboxItem,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuGroup,
|
||||
DropdownMenuItem,
|
||||
DropdownMenuItemIndicator,
|
||||
DropdownMenuLabel,
|
||||
DropdownMenuPortal,
|
||||
DropdownMenuRadioGroup,
|
||||
DropdownMenuRadioItem,
|
||||
DropdownMenuSeparator,
|
||||
DropdownMenuSub,
|
||||
DropdownMenuSubContent,
|
||||
DropdownMenuSubTrigger,
|
||||
DropdownMenuTrigger,
|
||||
Group2 as Group,
|
||||
Item2 as Item,
|
||||
ItemIndicator2 as ItemIndicator,
|
||||
Label2 as Label,
|
||||
Portal2 as Portal,
|
||||
RadioGroup2 as RadioGroup,
|
||||
RadioItem2 as RadioItem,
|
||||
Root2 as Root,
|
||||
Separator2 as Separator,
|
||||
Sub2 as Sub,
|
||||
SubContent2 as SubContent,
|
||||
SubTrigger2 as SubTrigger,
|
||||
Trigger,
|
||||
createDropdownMenuScope
|
||||
};
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
7
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map
generated
vendored
Normal file
7
frontend/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
75
frontend/node_modules/@radix-ui/react-dropdown-menu/package.json
generated
vendored
Normal file
75
frontend/node_modules/@radix-ui/react-dropdown-menu/package.json
generated
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
{
|
||||
"name": "@radix-ui/react-dropdown-menu",
|
||||
"version": "2.1.16",
|
||||
"license": "MIT",
|
||||
"source": "./src/index.ts",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@radix-ui/primitive": "1.1.3",
|
||||
"@radix-ui/react-context": "1.1.2",
|
||||
"@radix-ui/react-compose-refs": "1.1.2",
|
||||
"@radix-ui/react-id": "1.1.1",
|
||||
"@radix-ui/react-menu": "2.1.16",
|
||||
"@radix-ui/react-use-controllable-state": "1.2.2",
|
||||
"@radix-ui/react-primitive": "2.1.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^19.0.7",
|
||||
"@types/react-dom": "^19.0.3",
|
||||
"eslint": "^9.18.0",
|
||||
"react": "^19.1.0",
|
||||
"react-dom": "^19.1.0",
|
||||
"typescript": "^5.7.3",
|
||||
"@repo/builder": "0.0.0",
|
||||
"@repo/eslint-config": "0.0.0",
|
||||
"@repo/test-data": "0.0.0",
|
||||
"@repo/typescript-config": "0.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": "*",
|
||||
"@types/react-dom": "*",
|
||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
||||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/react": {
|
||||
"optional": true
|
||||
},
|
||||
"@types/react-dom": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"homepage": "https://radix-ui.com/primitives",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/radix-ui/primitives.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/radix-ui/primitives/issues"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint --max-warnings 0 src",
|
||||
"clean": "rm -rf dist",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"build": "radix-build"
|
||||
},
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.mts",
|
||||
"default": "./dist/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user