>;
+
+export { Close, Content, Description, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Overlay, Portal, Root, Title, Trigger, WarningProvider, createDialogScope };
diff --git a/node_modules/@radix-ui/react-dialog/dist/index.js b/node_modules/@radix-ui/react-dialog/dist/index.js
new file mode 100644
index 0000000..61e4ecc
--- /dev/null
+++ b/node_modules/@radix-ui/react-dialog/dist/index.js
@@ -0,0 +1,372 @@
+"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);
+
+// packages/react/dialog/src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ Close: () => Close,
+ Content: () => Content,
+ Description: () => Description,
+ Dialog: () => Dialog,
+ DialogClose: () => DialogClose,
+ DialogContent: () => DialogContent,
+ DialogDescription: () => DialogDescription,
+ DialogOverlay: () => DialogOverlay,
+ DialogPortal: () => DialogPortal,
+ DialogTitle: () => DialogTitle,
+ DialogTrigger: () => DialogTrigger,
+ Overlay: () => Overlay,
+ Portal: () => Portal,
+ Root: () => Root,
+ Title: () => Title,
+ Trigger: () => Trigger,
+ WarningProvider: () => WarningProvider,
+ createDialogScope: () => createDialogScope
+});
+module.exports = __toCommonJS(src_exports);
+
+// packages/react/dialog/src/dialog.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_id = require("@radix-ui/react-id");
+var import_react_use_controllable_state = require("@radix-ui/react-use-controllable-state");
+var import_react_dismissable_layer = require("@radix-ui/react-dismissable-layer");
+var import_react_focus_scope = require("@radix-ui/react-focus-scope");
+var import_react_portal = require("@radix-ui/react-portal");
+var import_react_presence = require("@radix-ui/react-presence");
+var import_react_primitive = require("@radix-ui/react-primitive");
+var import_react_focus_guards = require("@radix-ui/react-focus-guards");
+var import_react_remove_scroll = require("react-remove-scroll");
+var import_aria_hidden = require("aria-hidden");
+var import_react_slot = require("@radix-ui/react-slot");
+var import_jsx_runtime = require("react/jsx-runtime");
+var DIALOG_NAME = "Dialog";
+var [createDialogContext, createDialogScope] = (0, import_react_context.createContextScope)(DIALOG_NAME);
+var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
+var Dialog = (props) => {
+ const {
+ __scopeDialog,
+ children,
+ open: openProp,
+ defaultOpen,
+ onOpenChange,
+ modal = true
+ } = props;
+ const triggerRef = React.useRef(null);
+ const contentRef = React.useRef(null);
+ const [open = false, setOpen] = (0, import_react_use_controllable_state.useControllableState)({
+ prop: openProp,
+ defaultProp: defaultOpen,
+ onChange: onOpenChange
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
+ DialogProvider,
+ {
+ scope: __scopeDialog,
+ triggerRef,
+ contentRef,
+ contentId: (0, import_react_id.useId)(),
+ titleId: (0, import_react_id.useId)(),
+ descriptionId: (0, import_react_id.useId)(),
+ open,
+ onOpenChange: setOpen,
+ onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
+ modal,
+ children
+ }
+ );
+};
+Dialog.displayName = DIALOG_NAME;
+var TRIGGER_NAME = "DialogTrigger";
+var DialogTrigger = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, ...triggerProps } = props;
+ const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
+ const composedTriggerRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
+ import_react_primitive.Primitive.button,
+ {
+ type: "button",
+ "aria-haspopup": "dialog",
+ "aria-expanded": context.open,
+ "aria-controls": context.contentId,
+ "data-state": getState(context.open),
+ ...triggerProps,
+ ref: composedTriggerRef,
+ onClick: (0, import_primitive.composeEventHandlers)(props.onClick, context.onOpenToggle)
+ }
+ );
+ }
+);
+DialogTrigger.displayName = TRIGGER_NAME;
+var PORTAL_NAME = "DialogPortal";
+var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {
+ forceMount: void 0
+});
+var DialogPortal = (props) => {
+ const { __scopeDialog, forceMount, children, container } = props;
+ const context = useDialogContext(PORTAL_NAME, __scopeDialog);
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_portal.Portal, { asChild: true, container, children: child }) })) });
+};
+DialogPortal.displayName = PORTAL_NAME;
+var OVERLAY_NAME = "DialogOverlay";
+var DialogOverlay = React.forwardRef(
+ (props, forwardedRef) => {
+ const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
+ const { forceMount = portalContext.forceMount, ...overlayProps } = props;
+ const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
+ return context.modal ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
+ }
+);
+DialogOverlay.displayName = OVERLAY_NAME;
+var DialogOverlayImpl = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, ...overlayProps } = props;
+ const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
+ return (
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
+ // ie. when `Overlay` and `Content` are siblings
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_remove_scroll.RemoveScroll, { as: import_react_slot.Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
+ import_react_primitive.Primitive.div,
+ {
+ "data-state": getState(context.open),
+ ...overlayProps,
+ ref: forwardedRef,
+ style: { pointerEvents: "auto", ...overlayProps.style }
+ }
+ ) })
+ );
+ }
+);
+var CONTENT_NAME = "DialogContent";
+var DialogContent = React.forwardRef(
+ (props, forwardedRef) => {
+ const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
+ const { forceMount = portalContext.forceMount, ...contentProps } = props;
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
+ }
+);
+DialogContent.displayName = CONTENT_NAME;
+var DialogContentModal = React.forwardRef(
+ (props, forwardedRef) => {
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
+ const contentRef = React.useRef(null);
+ const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.contentRef, contentRef);
+ React.useEffect(() => {
+ const content = contentRef.current;
+ if (content) return (0, import_aria_hidden.hideOthers)(content);
+ }, []);
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
+ DialogContentImpl,
+ {
+ ...props,
+ ref: composedRefs,
+ trapFocus: context.open,
+ disableOutsidePointerEvents: true,
+ onCloseAutoFocus: (0, import_primitive.composeEventHandlers)(props.onCloseAutoFocus, (event) => {
+ event.preventDefault();
+ context.triggerRef.current?.focus();
+ }),
+ onPointerDownOutside: (0, import_primitive.composeEventHandlers)(props.onPointerDownOutside, (event) => {
+ const originalEvent = event.detail.originalEvent;
+ const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
+ const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
+ if (isRightClick) event.preventDefault();
+ }),
+ onFocusOutside: (0, import_primitive.composeEventHandlers)(
+ props.onFocusOutside,
+ (event) => event.preventDefault()
+ )
+ }
+ );
+ }
+);
+var DialogContentNonModal = React.forwardRef(
+ (props, forwardedRef) => {
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
+ const hasInteractedOutsideRef = React.useRef(false);
+ const hasPointerDownOutsideRef = React.useRef(false);
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
+ DialogContentImpl,
+ {
+ ...props,
+ ref: forwardedRef,
+ trapFocus: false,
+ disableOutsidePointerEvents: false,
+ onCloseAutoFocus: (event) => {
+ props.onCloseAutoFocus?.(event);
+ if (!event.defaultPrevented) {
+ if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
+ event.preventDefault();
+ }
+ hasInteractedOutsideRef.current = false;
+ hasPointerDownOutsideRef.current = false;
+ },
+ onInteractOutside: (event) => {
+ props.onInteractOutside?.(event);
+ if (!event.defaultPrevented) {
+ hasInteractedOutsideRef.current = true;
+ if (event.detail.originalEvent.type === "pointerdown") {
+ hasPointerDownOutsideRef.current = true;
+ }
+ }
+ const target = event.target;
+ const targetIsTrigger = context.triggerRef.current?.contains(target);
+ if (targetIsTrigger) event.preventDefault();
+ if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
+ event.preventDefault();
+ }
+ }
+ }
+ );
+ }
+);
+var DialogContentImpl = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
+ const context = useDialogContext(CONTENT_NAME, __scopeDialog);
+ const contentRef = React.useRef(null);
+ const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, contentRef);
+ (0, import_react_focus_guards.useFocusGuards)();
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
+ import_react_focus_scope.FocusScope,
+ {
+ asChild: true,
+ loop: true,
+ trapped: trapFocus,
+ onMountAutoFocus: onOpenAutoFocus,
+ onUnmountAutoFocus: onCloseAutoFocus,
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
+ import_react_dismissable_layer.DismissableLayer,
+ {
+ role: "dialog",
+ id: context.contentId,
+ "aria-describedby": context.descriptionId,
+ "aria-labelledby": context.titleId,
+ "data-state": getState(context.open),
+ ...contentProps,
+ ref: composedRefs,
+ onDismiss: () => context.onOpenChange(false)
+ }
+ )
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TitleWarning, { titleId: context.titleId }),
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
+ ] })
+ ] });
+ }
+);
+var TITLE_NAME = "DialogTitle";
+var DialogTitle = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, ...titleProps } = props;
+ const context = useDialogContext(TITLE_NAME, __scopeDialog);
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_primitive.Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
+ }
+);
+DialogTitle.displayName = TITLE_NAME;
+var DESCRIPTION_NAME = "DialogDescription";
+var DialogDescription = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, ...descriptionProps } = props;
+ const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_primitive.Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
+ }
+);
+DialogDescription.displayName = DESCRIPTION_NAME;
+var CLOSE_NAME = "DialogClose";
+var DialogClose = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, ...closeProps } = props;
+ const context = useDialogContext(CLOSE_NAME, __scopeDialog);
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
+ import_react_primitive.Primitive.button,
+ {
+ type: "button",
+ ...closeProps,
+ ref: forwardedRef,
+ onClick: (0, import_primitive.composeEventHandlers)(props.onClick, () => context.onOpenChange(false))
+ }
+ );
+ }
+);
+DialogClose.displayName = CLOSE_NAME;
+function getState(open) {
+ return open ? "open" : "closed";
+}
+var TITLE_WARNING_NAME = "DialogTitleWarning";
+var [WarningProvider, useWarningContext] = (0, import_react_context.createContext)(TITLE_WARNING_NAME, {
+ contentName: CONTENT_NAME,
+ titleName: TITLE_NAME,
+ docsSlug: "dialog"
+});
+var TitleWarning = ({ titleId }) => {
+ const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);
+ const MESSAGE = `\`${titleWarningContext.contentName}\` requires a \`${titleWarningContext.titleName}\` for the component to be accessible for screen reader users.
+
+If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it with our VisuallyHidden component.
+
+For more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;
+ React.useEffect(() => {
+ if (titleId) {
+ const hasTitle = document.getElementById(titleId);
+ if (!hasTitle) console.error(MESSAGE);
+ }
+ }, [MESSAGE, titleId]);
+ return null;
+};
+var DESCRIPTION_WARNING_NAME = "DialogDescriptionWarning";
+var DescriptionWarning = ({ contentRef, descriptionId }) => {
+ const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);
+ const MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${descriptionWarningContext.contentName}}.`;
+ React.useEffect(() => {
+ const describedById = contentRef.current?.getAttribute("aria-describedby");
+ if (descriptionId && describedById) {
+ const hasDescription = document.getElementById(descriptionId);
+ if (!hasDescription) console.warn(MESSAGE);
+ }
+ }, [MESSAGE, contentRef, descriptionId]);
+ return null;
+};
+var Root = Dialog;
+var Trigger = DialogTrigger;
+var Portal = DialogPortal;
+var Overlay = DialogOverlay;
+var Content = DialogContent;
+var Title = DialogTitle;
+var Description = DialogDescription;
+var Close = DialogClose;
+//# sourceMappingURL=index.js.map
diff --git a/node_modules/@radix-ui/react-dialog/dist/index.js.map b/node_modules/@radix-ui/react-dialog/dist/index.js.map
new file mode 100644
index 0000000..aec17ce
--- /dev/null
+++ b/node_modules/@radix-ui/react-dialog/dist/index.js.map
@@ -0,0 +1,7 @@
+{
+ "version": 3,
+ "sources": ["../src/index.ts", "../src/dialog.tsx"],
+ "sourcesContent": ["'use client';\nexport {\n createDialogScope,\n //\n Dialog,\n DialogTrigger,\n DialogPortal,\n DialogOverlay,\n DialogContent,\n DialogTitle,\n DialogDescription,\n DialogClose,\n //\n Root,\n Trigger,\n Portal,\n Overlay,\n Content,\n Title,\n Description,\n Close,\n //\n WarningProvider,\n} from './dialog';\nexport type {\n DialogProps,\n DialogTriggerProps,\n DialogPortalProps,\n DialogOverlayProps,\n DialogContentProps,\n DialogTitleProps,\n DialogDescriptionProps,\n DialogCloseProps,\n} from './dialog';\n", "import * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { createContext, createContextScope } from '@radix-ui/react-context';\nimport { useId } from '@radix-ui/react-id';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { DismissableLayer } from '@radix-ui/react-dismissable-layer';\nimport { FocusScope } from '@radix-ui/react-focus-scope';\nimport { Portal as PortalPrimitive } from '@radix-ui/react-portal';\nimport { Presence } from '@radix-ui/react-presence';\nimport { Primitive } from '@radix-ui/react-primitive';\nimport { useFocusGuards } from '@radix-ui/react-focus-guards';\nimport { RemoveScroll } from 'react-remove-scroll';\nimport { hideOthers } from 'aria-hidden';\nimport { Slot } from '@radix-ui/react-slot';\n\nimport type { Scope } from '@radix-ui/react-context';\n\n/* -------------------------------------------------------------------------------------------------\n * Dialog\n * -----------------------------------------------------------------------------------------------*/\n\nconst DIALOG_NAME = 'Dialog';\n\ntype ScopedProps = P & { __scopeDialog?: Scope };\nconst [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\n\ntype DialogContextValue = {\n triggerRef: React.RefObject;\n contentRef: React.RefObject;\n contentId: string;\n titleId: string;\n descriptionId: string;\n open: boolean;\n onOpenChange(open: boolean): void;\n onOpenToggle(): void;\n modal: boolean;\n};\n\nconst [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\n\ninterface DialogProps {\n children?: React.ReactNode;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?(open: boolean): void;\n modal?: boolean;\n}\n\nconst Dialog: React.FC = (props: ScopedProps) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true,\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange,\n });\n\n return (\n setOpen((prevOpen) => !prevOpen), [setOpen])}\n modal={modal}\n >\n {children}\n \n );\n};\n\nDialog.displayName = DIALOG_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'DialogTrigger';\n\ntype DialogTriggerElement = React.ElementRef;\ntype PrimitiveButtonProps = React.ComponentPropsWithoutRef;\ninterface DialogTriggerProps extends PrimitiveButtonProps {}\n\nconst DialogTrigger = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return (\n \n );\n }\n);\n\nDialogTrigger.displayName = TRIGGER_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogPortal\n * -----------------------------------------------------------------------------------------------*/\n\nconst PORTAL_NAME = 'DialogPortal';\n\ntype PortalContextValue = { forceMount?: true };\nconst [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: undefined,\n});\n\ntype PortalProps = React.ComponentPropsWithoutRef;\ninterface DialogPortalProps {\n children?: React.ReactNode;\n /**\n * Specify a container element to portal the content into.\n */\n container?: PortalProps['container'];\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true;\n}\n\nconst DialogPortal: React.FC = (props: ScopedProps) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return (\n \n {React.Children.map(children, (child) => (\n \n \n {child}\n \n \n ))}\n \n );\n};\n\nDialogPortal.displayName = PORTAL_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogOverlay\n * -----------------------------------------------------------------------------------------------*/\n\nconst OVERLAY_NAME = 'DialogOverlay';\n\ntype DialogOverlayElement = DialogOverlayImplElement;\ninterface DialogOverlayProps extends DialogOverlayImplProps {\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true;\n}\n\nconst DialogOverlay = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? (\n \n \n \n ) : null;\n }\n);\n\nDialogOverlay.displayName = OVERLAY_NAME;\n\ntype DialogOverlayImplElement = React.ElementRef;\ntype PrimitiveDivProps = React.ComponentPropsWithoutRef;\ninterface DialogOverlayImplProps extends PrimitiveDivProps {}\n\nconst DialogOverlayImpl = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n \n \n \n );\n }\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DialogContent\n * -----------------------------------------------------------------------------------------------*/\n\nconst CONTENT_NAME = 'DialogContent';\n\ntype DialogContentElement = DialogContentTypeElement;\ninterface DialogContentProps extends DialogContentTypeProps {\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true;\n}\n\nconst DialogContent = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return (\n \n {context.modal ? (\n \n ) : (\n \n )}\n \n );\n }\n);\n\nDialogContent.displayName = CONTENT_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype DialogContentTypeElement = DialogContentImplElement;\ninterface DialogContentTypeProps\n extends Omit {}\n\nconst DialogContentModal = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n\n // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n\n return (\n {\n event.preventDefault();\n context.triggerRef.current?.focus();\n })}\n onPointerDownOutside={composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n\n // If the event is a right-click, we shouldn't close because\n // it is effectively as if we right-clicked the `Overlay`.\n if (isRightClick) event.preventDefault();\n })}\n // When focus is trapped, a `focusout` event may still happen.\n // We make sure we don't trigger our `onDismiss` in such case.\n onFocusOutside={composeEventHandlers(props.onFocusOutside, (event) =>\n event.preventDefault()\n )}\n />\n );\n }\n);\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst DialogContentNonModal = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n\n return (\n {\n props.onCloseAutoFocus?.(event);\n\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n // Always prevent auto focus because we either focus manually or want user agent focus\n event.preventDefault();\n }\n\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n }}\n onInteractOutside={(event) => {\n props.onInteractOutside?.(event);\n\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === 'pointerdown') {\n hasPointerDownOutsideRef.current = true;\n }\n }\n\n // Prevent dismissing when clicking the trigger.\n // As the trigger is already setup to close, without doing so would\n // cause it to close and immediately open.\n const target = event.target as HTMLElement;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n\n // On Safari if the trigger is inside a container with tabIndex={0}, when clicked\n // we will get the pointer down outside event on the trigger, but then a subsequent\n // focus outside event on the container, we ignore any focus outside event when we've\n // already had a pointer down outside event.\n if (event.detail.originalEvent.type === 'focusin' && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }}\n />\n );\n }\n);\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype DialogContentImplElement = React.ElementRef;\ntype DismissableLayerProps = React.ComponentPropsWithoutRef;\ntype FocusScopeProps = React.ComponentPropsWithoutRef;\ninterface DialogContentImplProps extends Omit {\n /**\n * When `true`, focus cannot escape the `Content` via keyboard,\n * pointer, or a programmatic focus.\n * @defaultValue false\n */\n trapFocus?: FocusScopeProps['trapped'];\n\n /**\n * Event handler called when auto-focusing on open.\n * Can be prevented.\n */\n onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];\n\n /**\n * Event handler called when auto-focusing on close.\n * Can be prevented.\n */\n onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];\n}\n\nconst DialogContentImpl = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n\n // Make sure the whole tree has focus guards as our `Dialog` will be\n // the last element in the DOM (because of the `Portal`)\n useFocusGuards();\n\n return (\n <>\n \n context.onOpenChange(false)}\n />\n \n {process.env.NODE_ENV !== 'production' && (\n <>\n \n \n >\n )}\n >\n );\n }\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DialogTitle\n * -----------------------------------------------------------------------------------------------*/\n\nconst TITLE_NAME = 'DialogTitle';\n\ntype DialogTitleElement = React.ElementRef;\ntype PrimitiveHeading2Props = React.ComponentPropsWithoutRef;\ninterface DialogTitleProps extends PrimitiveHeading2Props {}\n\nconst DialogTitle = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return ;\n }\n);\n\nDialogTitle.displayName = TITLE_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogDescription\n * -----------------------------------------------------------------------------------------------*/\n\nconst DESCRIPTION_NAME = 'DialogDescription';\n\ntype DialogDescriptionElement = React.ElementRef;\ntype PrimitiveParagraphProps = React.ComponentPropsWithoutRef;\ninterface DialogDescriptionProps extends PrimitiveParagraphProps {}\n\nconst DialogDescription = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return ;\n }\n);\n\nDialogDescription.displayName = DESCRIPTION_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogClose\n * -----------------------------------------------------------------------------------------------*/\n\nconst CLOSE_NAME = 'DialogClose';\n\ntype DialogCloseElement = React.ElementRef;\ninterface DialogCloseProps extends PrimitiveButtonProps {}\n\nconst DialogClose = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return (\n context.onOpenChange(false))}\n />\n );\n }\n);\n\nDialogClose.displayName = CLOSE_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction getState(open: boolean) {\n return open ? 'open' : 'closed';\n}\n\nconst TITLE_WARNING_NAME = 'DialogTitleWarning';\n\nconst [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: 'dialog',\n});\n\ntype TitleWarningProps = { titleId?: string };\n\nconst TitleWarning: React.FC = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n\n return null;\n};\n\nconst DESCRIPTION_WARNING_NAME = 'DialogDescriptionWarning';\n\ntype DescriptionWarningProps = {\n contentRef: React.RefObject;\n descriptionId?: string;\n};\n\nconst DescriptionWarning: React.FC = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute('aria-describedby');\n // if we have an id and the user hasn't set aria-describedby={undefined}\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n\n return null;\n};\n\nconst Root = Dialog;\nconst Trigger = DialogTrigger;\nconst Portal = DialogPortal;\nconst Overlay = DialogOverlay;\nconst Content = DialogContent;\nconst Title = DialogTitle;\nconst Description = DialogDescription;\nconst Close = DialogClose;\n\nexport {\n createDialogScope,\n //\n Dialog,\n DialogTrigger,\n DialogPortal,\n DialogOverlay,\n DialogContent,\n DialogTitle,\n DialogDescription,\n DialogClose,\n //\n Root,\n Trigger,\n Portal,\n Overlay,\n Content,\n Title,\n Description,\n Close,\n //\n WarningProvider,\n};\nexport type {\n DialogProps,\n DialogTriggerProps,\n DialogPortalProps,\n DialogOverlayProps,\n DialogContentProps,\n DialogTitleProps,\n DialogDescriptionProps,\n DialogCloseProps,\n};\n"],
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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GAAG,CAAC,SAAS,OAAO,CAAC;AAErB,SAAO;AACT;AAEA,IAAM,2BAA2B;AAOjC,IAAM,qBAAwD,CAAC,EAAE,YAAY,cAAc,MAAM;AAC/F,QAAM,4BAA4B,kBAAkB,wBAAwB;AAC5E,QAAM,UAAU,6EAA6E,0BAA0B,WAAW;AAElI,EAAM,gBAAU,MAAM;AACpB,UAAM,gBAAgB,WAAW,SAAS,aAAa,kBAAkB;AAEzE,QAAI,iBAAiB,eAAe;AAClC,YAAM,iBAAiB,SAAS,eAAe,aAAa;AAC5D,UAAI,CAAC,eAAgB,SAAQ,KAAK,OAAO;AAAA,IAC3C;AAAA,EACF,GAAG,CAAC,SAAS,YAAY,aAAa,CAAC;AAEvC,SAAO;AACT;AAEA,IAAM,OAAO;AACb,IAAM,UAAU;AAChB,IAAM,SAAS;AACf,IAAM,UAAU;AAChB,IAAM,UAAU;AAChB,IAAM,QAAQ;AACd,IAAM,cAAc;AACpB,IAAM,QAAQ;",
+ "names": ["PortalPrimitive"]
+}
diff --git a/node_modules/@radix-ui/react-dialog/dist/index.mjs b/node_modules/@radix-ui/react-dialog/dist/index.mjs
new file mode 100644
index 0000000..81cd963
--- /dev/null
+++ b/node_modules/@radix-ui/react-dialog/dist/index.mjs
@@ -0,0 +1,340 @@
+"use client";
+
+// packages/react/dialog/src/dialog.tsx
+import * as React from "react";
+import { composeEventHandlers } from "@radix-ui/primitive";
+import { useComposedRefs } from "@radix-ui/react-compose-refs";
+import { createContext, createContextScope } from "@radix-ui/react-context";
+import { useId } from "@radix-ui/react-id";
+import { useControllableState } from "@radix-ui/react-use-controllable-state";
+import { DismissableLayer } from "@radix-ui/react-dismissable-layer";
+import { FocusScope } from "@radix-ui/react-focus-scope";
+import { Portal as PortalPrimitive } from "@radix-ui/react-portal";
+import { Presence } from "@radix-ui/react-presence";
+import { Primitive } from "@radix-ui/react-primitive";
+import { useFocusGuards } from "@radix-ui/react-focus-guards";
+import { RemoveScroll } from "react-remove-scroll";
+import { hideOthers } from "aria-hidden";
+import { Slot } from "@radix-ui/react-slot";
+import { Fragment, jsx, jsxs } from "react/jsx-runtime";
+var DIALOG_NAME = "Dialog";
+var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
+var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
+var Dialog = (props) => {
+ const {
+ __scopeDialog,
+ children,
+ open: openProp,
+ defaultOpen,
+ onOpenChange,
+ modal = true
+ } = props;
+ const triggerRef = React.useRef(null);
+ const contentRef = React.useRef(null);
+ const [open = false, setOpen] = useControllableState({
+ prop: openProp,
+ defaultProp: defaultOpen,
+ onChange: onOpenChange
+ });
+ return /* @__PURE__ */ jsx(
+ DialogProvider,
+ {
+ scope: __scopeDialog,
+ triggerRef,
+ contentRef,
+ contentId: useId(),
+ titleId: useId(),
+ descriptionId: useId(),
+ open,
+ onOpenChange: setOpen,
+ onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
+ modal,
+ children
+ }
+ );
+};
+Dialog.displayName = DIALOG_NAME;
+var TRIGGER_NAME = "DialogTrigger";
+var DialogTrigger = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, ...triggerProps } = props;
+ const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
+ const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
+ return /* @__PURE__ */ jsx(
+ Primitive.button,
+ {
+ type: "button",
+ "aria-haspopup": "dialog",
+ "aria-expanded": context.open,
+ "aria-controls": context.contentId,
+ "data-state": getState(context.open),
+ ...triggerProps,
+ ref: composedTriggerRef,
+ onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
+ }
+ );
+ }
+);
+DialogTrigger.displayName = TRIGGER_NAME;
+var PORTAL_NAME = "DialogPortal";
+var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {
+ forceMount: void 0
+});
+var DialogPortal = (props) => {
+ const { __scopeDialog, forceMount, children, container } = props;
+ const context = useDialogContext(PORTAL_NAME, __scopeDialog);
+ return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });
+};
+DialogPortal.displayName = PORTAL_NAME;
+var OVERLAY_NAME = "DialogOverlay";
+var DialogOverlay = React.forwardRef(
+ (props, forwardedRef) => {
+ const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
+ const { forceMount = portalContext.forceMount, ...overlayProps } = props;
+ const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
+ return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
+ }
+);
+DialogOverlay.displayName = OVERLAY_NAME;
+var DialogOverlayImpl = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, ...overlayProps } = props;
+ const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
+ return (
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
+ // ie. when `Overlay` and `Content` are siblings
+ /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(
+ Primitive.div,
+ {
+ "data-state": getState(context.open),
+ ...overlayProps,
+ ref: forwardedRef,
+ style: { pointerEvents: "auto", ...overlayProps.style }
+ }
+ ) })
+ );
+ }
+);
+var CONTENT_NAME = "DialogContent";
+var DialogContent = React.forwardRef(
+ (props, forwardedRef) => {
+ const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
+ const { forceMount = portalContext.forceMount, ...contentProps } = props;
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
+ return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
+ }
+);
+DialogContent.displayName = CONTENT_NAME;
+var DialogContentModal = React.forwardRef(
+ (props, forwardedRef) => {
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
+ const contentRef = React.useRef(null);
+ const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);
+ React.useEffect(() => {
+ const content = contentRef.current;
+ if (content) return hideOthers(content);
+ }, []);
+ return /* @__PURE__ */ jsx(
+ DialogContentImpl,
+ {
+ ...props,
+ ref: composedRefs,
+ trapFocus: context.open,
+ disableOutsidePointerEvents: true,
+ onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
+ event.preventDefault();
+ context.triggerRef.current?.focus();
+ }),
+ onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {
+ const originalEvent = event.detail.originalEvent;
+ const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
+ const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
+ if (isRightClick) event.preventDefault();
+ }),
+ onFocusOutside: composeEventHandlers(
+ props.onFocusOutside,
+ (event) => event.preventDefault()
+ )
+ }
+ );
+ }
+);
+var DialogContentNonModal = React.forwardRef(
+ (props, forwardedRef) => {
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
+ const hasInteractedOutsideRef = React.useRef(false);
+ const hasPointerDownOutsideRef = React.useRef(false);
+ return /* @__PURE__ */ jsx(
+ DialogContentImpl,
+ {
+ ...props,
+ ref: forwardedRef,
+ trapFocus: false,
+ disableOutsidePointerEvents: false,
+ onCloseAutoFocus: (event) => {
+ props.onCloseAutoFocus?.(event);
+ if (!event.defaultPrevented) {
+ if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
+ event.preventDefault();
+ }
+ hasInteractedOutsideRef.current = false;
+ hasPointerDownOutsideRef.current = false;
+ },
+ onInteractOutside: (event) => {
+ props.onInteractOutside?.(event);
+ if (!event.defaultPrevented) {
+ hasInteractedOutsideRef.current = true;
+ if (event.detail.originalEvent.type === "pointerdown") {
+ hasPointerDownOutsideRef.current = true;
+ }
+ }
+ const target = event.target;
+ const targetIsTrigger = context.triggerRef.current?.contains(target);
+ if (targetIsTrigger) event.preventDefault();
+ if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
+ event.preventDefault();
+ }
+ }
+ }
+ );
+ }
+);
+var DialogContentImpl = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
+ const context = useDialogContext(CONTENT_NAME, __scopeDialog);
+ const contentRef = React.useRef(null);
+ const composedRefs = useComposedRefs(forwardedRef, contentRef);
+ useFocusGuards();
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
+ /* @__PURE__ */ jsx(
+ FocusScope,
+ {
+ asChild: true,
+ loop: true,
+ trapped: trapFocus,
+ onMountAutoFocus: onOpenAutoFocus,
+ onUnmountAutoFocus: onCloseAutoFocus,
+ children: /* @__PURE__ */ jsx(
+ DismissableLayer,
+ {
+ role: "dialog",
+ id: context.contentId,
+ "aria-describedby": context.descriptionId,
+ "aria-labelledby": context.titleId,
+ "data-state": getState(context.open),
+ ...contentProps,
+ ref: composedRefs,
+ onDismiss: () => context.onOpenChange(false)
+ }
+ )
+ }
+ ),
+ /* @__PURE__ */ jsxs(Fragment, { children: [
+ /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),
+ /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
+ ] })
+ ] });
+ }
+);
+var TITLE_NAME = "DialogTitle";
+var DialogTitle = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, ...titleProps } = props;
+ const context = useDialogContext(TITLE_NAME, __scopeDialog);
+ return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
+ }
+);
+DialogTitle.displayName = TITLE_NAME;
+var DESCRIPTION_NAME = "DialogDescription";
+var DialogDescription = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, ...descriptionProps } = props;
+ const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
+ return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
+ }
+);
+DialogDescription.displayName = DESCRIPTION_NAME;
+var CLOSE_NAME = "DialogClose";
+var DialogClose = React.forwardRef(
+ (props, forwardedRef) => {
+ const { __scopeDialog, ...closeProps } = props;
+ const context = useDialogContext(CLOSE_NAME, __scopeDialog);
+ return /* @__PURE__ */ jsx(
+ Primitive.button,
+ {
+ type: "button",
+ ...closeProps,
+ ref: forwardedRef,
+ onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
+ }
+ );
+ }
+);
+DialogClose.displayName = CLOSE_NAME;
+function getState(open) {
+ return open ? "open" : "closed";
+}
+var TITLE_WARNING_NAME = "DialogTitleWarning";
+var [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {
+ contentName: CONTENT_NAME,
+ titleName: TITLE_NAME,
+ docsSlug: "dialog"
+});
+var TitleWarning = ({ titleId }) => {
+ const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);
+ const MESSAGE = `\`${titleWarningContext.contentName}\` requires a \`${titleWarningContext.titleName}\` for the component to be accessible for screen reader users.
+
+If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it with our VisuallyHidden component.
+
+For more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;
+ React.useEffect(() => {
+ if (titleId) {
+ const hasTitle = document.getElementById(titleId);
+ if (!hasTitle) console.error(MESSAGE);
+ }
+ }, [MESSAGE, titleId]);
+ return null;
+};
+var DESCRIPTION_WARNING_NAME = "DialogDescriptionWarning";
+var DescriptionWarning = ({ contentRef, descriptionId }) => {
+ const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);
+ const MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${descriptionWarningContext.contentName}}.`;
+ React.useEffect(() => {
+ const describedById = contentRef.current?.getAttribute("aria-describedby");
+ if (descriptionId && describedById) {
+ const hasDescription = document.getElementById(descriptionId);
+ if (!hasDescription) console.warn(MESSAGE);
+ }
+ }, [MESSAGE, contentRef, descriptionId]);
+ return null;
+};
+var Root = Dialog;
+var Trigger = DialogTrigger;
+var Portal = DialogPortal;
+var Overlay = DialogOverlay;
+var Content = DialogContent;
+var Title = DialogTitle;
+var Description = DialogDescription;
+var Close = DialogClose;
+export {
+ Close,
+ Content,
+ Description,
+ Dialog,
+ DialogClose,
+ DialogContent,
+ DialogDescription,
+ DialogOverlay,
+ DialogPortal,
+ DialogTitle,
+ DialogTrigger,
+ Overlay,
+ Portal,
+ Root,
+ Title,
+ Trigger,
+ WarningProvider,
+ createDialogScope
+};
+//# sourceMappingURL=index.mjs.map
diff --git a/node_modules/@radix-ui/react-dialog/dist/index.mjs.map b/node_modules/@radix-ui/react-dialog/dist/index.mjs.map
new file mode 100644
index 0000000..7803e41
--- /dev/null
+++ b/node_modules/@radix-ui/react-dialog/dist/index.mjs.map
@@ -0,0 +1,7 @@
+{
+ "version": 3,
+ "sources": ["../src/dialog.tsx"],
+ "sourcesContent": ["import * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { createContext, createContextScope } from '@radix-ui/react-context';\nimport { useId } from '@radix-ui/react-id';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { DismissableLayer } from '@radix-ui/react-dismissable-layer';\nimport { FocusScope } from '@radix-ui/react-focus-scope';\nimport { Portal as PortalPrimitive } from '@radix-ui/react-portal';\nimport { Presence } from '@radix-ui/react-presence';\nimport { Primitive } from '@radix-ui/react-primitive';\nimport { useFocusGuards } from '@radix-ui/react-focus-guards';\nimport { RemoveScroll } from 'react-remove-scroll';\nimport { hideOthers } from 'aria-hidden';\nimport { Slot } from '@radix-ui/react-slot';\n\nimport type { Scope } from '@radix-ui/react-context';\n\n/* -------------------------------------------------------------------------------------------------\n * Dialog\n * -----------------------------------------------------------------------------------------------*/\n\nconst DIALOG_NAME = 'Dialog';\n\ntype ScopedProps = P & { __scopeDialog?: Scope };\nconst [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\n\ntype DialogContextValue = {\n triggerRef: React.RefObject;\n contentRef: React.RefObject;\n contentId: string;\n titleId: string;\n descriptionId: string;\n open: boolean;\n onOpenChange(open: boolean): void;\n onOpenToggle(): void;\n modal: boolean;\n};\n\nconst [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\n\ninterface DialogProps {\n children?: React.ReactNode;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?(open: boolean): void;\n modal?: boolean;\n}\n\nconst Dialog: React.FC = (props: ScopedProps) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true,\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange,\n });\n\n return (\n setOpen((prevOpen) => !prevOpen), [setOpen])}\n modal={modal}\n >\n {children}\n \n );\n};\n\nDialog.displayName = DIALOG_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'DialogTrigger';\n\ntype DialogTriggerElement = React.ElementRef;\ntype PrimitiveButtonProps = React.ComponentPropsWithoutRef;\ninterface DialogTriggerProps extends PrimitiveButtonProps {}\n\nconst DialogTrigger = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return (\n \n );\n }\n);\n\nDialogTrigger.displayName = TRIGGER_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogPortal\n * -----------------------------------------------------------------------------------------------*/\n\nconst PORTAL_NAME = 'DialogPortal';\n\ntype PortalContextValue = { forceMount?: true };\nconst [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: undefined,\n});\n\ntype PortalProps = React.ComponentPropsWithoutRef;\ninterface DialogPortalProps {\n children?: React.ReactNode;\n /**\n * Specify a container element to portal the content into.\n */\n container?: PortalProps['container'];\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true;\n}\n\nconst DialogPortal: React.FC = (props: ScopedProps) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return (\n \n {React.Children.map(children, (child) => (\n \n \n {child}\n \n \n ))}\n \n );\n};\n\nDialogPortal.displayName = PORTAL_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogOverlay\n * -----------------------------------------------------------------------------------------------*/\n\nconst OVERLAY_NAME = 'DialogOverlay';\n\ntype DialogOverlayElement = DialogOverlayImplElement;\ninterface DialogOverlayProps extends DialogOverlayImplProps {\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true;\n}\n\nconst DialogOverlay = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? (\n \n \n \n ) : null;\n }\n);\n\nDialogOverlay.displayName = OVERLAY_NAME;\n\ntype DialogOverlayImplElement = React.ElementRef;\ntype PrimitiveDivProps = React.ComponentPropsWithoutRef;\ninterface DialogOverlayImplProps extends PrimitiveDivProps {}\n\nconst DialogOverlayImpl = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n \n \n \n );\n }\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DialogContent\n * -----------------------------------------------------------------------------------------------*/\n\nconst CONTENT_NAME = 'DialogContent';\n\ntype DialogContentElement = DialogContentTypeElement;\ninterface DialogContentProps extends DialogContentTypeProps {\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true;\n}\n\nconst DialogContent = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return (\n \n {context.modal ? (\n \n ) : (\n \n )}\n \n );\n }\n);\n\nDialogContent.displayName = CONTENT_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype DialogContentTypeElement = DialogContentImplElement;\ninterface DialogContentTypeProps\n extends Omit {}\n\nconst DialogContentModal = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n\n // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n\n return (\n {\n event.preventDefault();\n context.triggerRef.current?.focus();\n })}\n onPointerDownOutside={composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n\n // If the event is a right-click, we shouldn't close because\n // it is effectively as if we right-clicked the `Overlay`.\n if (isRightClick) event.preventDefault();\n })}\n // When focus is trapped, a `focusout` event may still happen.\n // We make sure we don't trigger our `onDismiss` in such case.\n onFocusOutside={composeEventHandlers(props.onFocusOutside, (event) =>\n event.preventDefault()\n )}\n />\n );\n }\n);\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst DialogContentNonModal = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n\n return (\n {\n props.onCloseAutoFocus?.(event);\n\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n // Always prevent auto focus because we either focus manually or want user agent focus\n event.preventDefault();\n }\n\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n }}\n onInteractOutside={(event) => {\n props.onInteractOutside?.(event);\n\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === 'pointerdown') {\n hasPointerDownOutsideRef.current = true;\n }\n }\n\n // Prevent dismissing when clicking the trigger.\n // As the trigger is already setup to close, without doing so would\n // cause it to close and immediately open.\n const target = event.target as HTMLElement;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n\n // On Safari if the trigger is inside a container with tabIndex={0}, when clicked\n // we will get the pointer down outside event on the trigger, but then a subsequent\n // focus outside event on the container, we ignore any focus outside event when we've\n // already had a pointer down outside event.\n if (event.detail.originalEvent.type === 'focusin' && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }}\n />\n );\n }\n);\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype DialogContentImplElement = React.ElementRef;\ntype DismissableLayerProps = React.ComponentPropsWithoutRef;\ntype FocusScopeProps = React.ComponentPropsWithoutRef;\ninterface DialogContentImplProps extends Omit {\n /**\n * When `true`, focus cannot escape the `Content` via keyboard,\n * pointer, or a programmatic focus.\n * @defaultValue false\n */\n trapFocus?: FocusScopeProps['trapped'];\n\n /**\n * Event handler called when auto-focusing on open.\n * Can be prevented.\n */\n onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];\n\n /**\n * Event handler called when auto-focusing on close.\n * Can be prevented.\n */\n onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];\n}\n\nconst DialogContentImpl = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n\n // Make sure the whole tree has focus guards as our `Dialog` will be\n // the last element in the DOM (because of the `Portal`)\n useFocusGuards();\n\n return (\n <>\n \n context.onOpenChange(false)}\n />\n \n {process.env.NODE_ENV !== 'production' && (\n <>\n \n \n >\n )}\n >\n );\n }\n);\n\n/* -------------------------------------------------------------------------------------------------\n * DialogTitle\n * -----------------------------------------------------------------------------------------------*/\n\nconst TITLE_NAME = 'DialogTitle';\n\ntype DialogTitleElement = React.ElementRef;\ntype PrimitiveHeading2Props = React.ComponentPropsWithoutRef;\ninterface DialogTitleProps extends PrimitiveHeading2Props {}\n\nconst DialogTitle = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return ;\n }\n);\n\nDialogTitle.displayName = TITLE_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogDescription\n * -----------------------------------------------------------------------------------------------*/\n\nconst DESCRIPTION_NAME = 'DialogDescription';\n\ntype DialogDescriptionElement = React.ElementRef;\ntype PrimitiveParagraphProps = React.ComponentPropsWithoutRef;\ninterface DialogDescriptionProps extends PrimitiveParagraphProps {}\n\nconst DialogDescription = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return ;\n }\n);\n\nDialogDescription.displayName = DESCRIPTION_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * DialogClose\n * -----------------------------------------------------------------------------------------------*/\n\nconst CLOSE_NAME = 'DialogClose';\n\ntype DialogCloseElement = React.ElementRef;\ninterface DialogCloseProps extends PrimitiveButtonProps {}\n\nconst DialogClose = React.forwardRef(\n (props: ScopedProps, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return (\n context.onOpenChange(false))}\n />\n );\n }\n);\n\nDialogClose.displayName = CLOSE_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction getState(open: boolean) {\n return open ? 'open' : 'closed';\n}\n\nconst TITLE_WARNING_NAME = 'DialogTitleWarning';\n\nconst [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: 'dialog',\n});\n\ntype TitleWarningProps = { titleId?: string };\n\nconst TitleWarning: React.FC = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n\n return null;\n};\n\nconst DESCRIPTION_WARNING_NAME = 'DialogDescriptionWarning';\n\ntype DescriptionWarningProps = {\n contentRef: React.RefObject;\n descriptionId?: string;\n};\n\nconst DescriptionWarning: React.FC = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute('aria-describedby');\n // if we have an id and the user hasn't set aria-describedby={undefined}\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n\n return null;\n};\n\nconst Root = Dialog;\nconst Trigger = DialogTrigger;\nconst Portal = DialogPortal;\nconst Overlay = DialogOverlay;\nconst Content = DialogContent;\nconst Title = DialogTitle;\nconst Description = DialogDescription;\nconst Close = DialogClose;\n\nexport {\n createDialogScope,\n //\n Dialog,\n DialogTrigger,\n DialogPortal,\n DialogOverlay,\n DialogContent,\n DialogTitle,\n DialogDescription,\n DialogClose,\n //\n Root,\n Trigger,\n Portal,\n Overlay,\n Content,\n Title,\n Description,\n Close,\n //\n WarningProvider,\n};\nexport type {\n DialogProps,\n DialogTriggerProps,\n DialogPortalProps,\n DialogOverlayProps,\n DialogContentProps,\n DialogTitleProps,\n DialogDescriptionProps,\n DialogCloseProps,\n};\n"],
+ "mappings": ";;;AAAA,YAAY,WAAW;AACvB,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;AAChC,SAAS,eAAe,0BAA0B;AAClD,SAAS,aAAa;AACtB,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,kBAAkB;AAC3B,SAAS,UAAU,uBAAuB;AAC1C,SAAS,gBAAgB;AACzB,SAAS,iBAAiB;AAC1B,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AAqDjB,SAyVM,UAzVN,KAyVM,YAzVN;AA7CJ,IAAM,cAAc;AAGpB,IAAM,CAAC,qBAAqB,iBAAiB,IAAI,mBAAmB,WAAW;AAc/E,IAAM,CAAC,gBAAgB,gBAAgB,IAAI,oBAAwC,WAAW;AAU9F,IAAM,SAAgC,CAAC,UAAoC;AACzE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IAC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AChB,IAAM,SAAS;AACf,IAAM,UAAU;AAChB,IAAM,UAAU;AAChB,IAAM,QAAQ;AACd,IAAM,cAAc;AACpB,IAAM,QAAQ;",
+ "names": []
+}
diff --git a/node_modules/@radix-ui/react-dialog/package.json b/node_modules/@radix-ui/react-dialog/package.json
new file mode 100644
index 0000000..413b242
--- /dev/null
+++ b/node_modules/@radix-ui/react-dialog/package.json
@@ -0,0 +1,79 @@
+{
+ "name": "@radix-ui/react-dialog",
+ "version": "1.1.6",
+ "license": "MIT",
+ "exports": {
+ ".": {
+ "import": {
+ "types": "./dist/index.d.mts",
+ "default": "./dist/index.mjs"
+ },
+ "require": {
+ "types": "./dist/index.d.ts",
+ "default": "./dist/index.js"
+ }
+ }
+ },
+ "source": "./src/index.ts",
+ "main": "./dist/index.js",
+ "module": "./dist/index.mjs",
+ "types": "./dist/index.d.ts",
+ "files": [
+ "dist",
+ "README.md"
+ ],
+ "sideEffects": false,
+ "scripts": {
+ "lint": "eslint --max-warnings 0 src",
+ "clean": "rm -rf dist",
+ "version": "yarn version"
+ },
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.1",
+ "@radix-ui/react-compose-refs": "1.1.1",
+ "@radix-ui/react-context": "1.1.1",
+ "@radix-ui/react-dismissable-layer": "1.1.5",
+ "@radix-ui/react-focus-guards": "1.1.1",
+ "@radix-ui/react-focus-scope": "1.1.2",
+ "@radix-ui/react-id": "1.1.0",
+ "@radix-ui/react-portal": "1.1.4",
+ "@radix-ui/react-presence": "1.1.2",
+ "@radix-ui/react-primitive": "2.0.2",
+ "@radix-ui/react-slot": "1.1.2",
+ "@radix-ui/react-use-controllable-state": "1.1.0",
+ "aria-hidden": "^1.2.4",
+ "react-remove-scroll": "^2.6.3"
+ },
+ "devDependencies": {
+ "@repo/eslint-config": "0.0.0",
+ "@repo/typescript-config": "0.0.0",
+ "@types/react": "^19.0.7",
+ "@types/react-dom": "^19.0.3",
+ "eslint": "^9.18.0",
+ "react": "^19.0.0",
+ "react-dom": "^19.0.0",
+ "typescript": "^5.7.3"
+ },
+ "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"
+ }
+}
\ No newline at end of file
diff --git a/node_modules/@radix-ui/react-direction/README.md b/node_modules/@radix-ui/react-direction/README.md
new file mode 100644
index 0000000..d11d6ea
--- /dev/null
+++ b/node_modules/@radix-ui/react-direction/README.md
@@ -0,0 +1,13 @@
+# `react-direction`
+
+## Installation
+
+```sh
+$ yarn add @radix-ui/react-direction
+# or
+$ npm install @radix-ui/react-direction
+```
+
+## Usage
+
+View docs [here](https://radix-ui.com/primitives/docs/utilities/direction).
diff --git a/node_modules/@radix-ui/react-direction/dist/index.d.mts b/node_modules/@radix-ui/react-direction/dist/index.d.mts
new file mode 100644
index 0000000..b0f8834
--- /dev/null
+++ b/node_modules/@radix-ui/react-direction/dist/index.d.mts
@@ -0,0 +1,12 @@
+import * as React from 'react';
+
+type Direction = 'ltr' | 'rtl';
+interface DirectionProviderProps {
+ children?: React.ReactNode;
+ dir: Direction;
+}
+declare const DirectionProvider: React.FC;
+declare function useDirection(localDir?: Direction): Direction;
+declare const Provider: React.FC;
+
+export { DirectionProvider, Provider, useDirection };
diff --git a/node_modules/@radix-ui/react-direction/dist/index.d.ts b/node_modules/@radix-ui/react-direction/dist/index.d.ts
new file mode 100644
index 0000000..b0f8834
--- /dev/null
+++ b/node_modules/@radix-ui/react-direction/dist/index.d.ts
@@ -0,0 +1,12 @@
+import * as React from 'react';
+
+type Direction = 'ltr' | 'rtl';
+interface DirectionProviderProps {
+ children?: React.ReactNode;
+ dir: Direction;
+}
+declare const DirectionProvider: React.FC;
+declare function useDirection(localDir?: Direction): Direction;
+declare const Provider: React.FC;
+
+export { DirectionProvider, Provider, useDirection };
diff --git a/node_modules/@radix-ui/react-direction/dist/index.js b/node_modules/@radix-ui/react-direction/dist/index.js
new file mode 100644
index 0000000..7eb4c4c
--- /dev/null
+++ b/node_modules/@radix-ui/react-direction/dist/index.js
@@ -0,0 +1,52 @@
+"use strict";
+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);
+
+// packages/react/direction/src/index.ts
+var src_exports = {};
+__export(src_exports, {
+ DirectionProvider: () => DirectionProvider,
+ Provider: () => Provider,
+ useDirection: () => useDirection
+});
+module.exports = __toCommonJS(src_exports);
+
+// packages/react/direction/src/Direction.tsx
+var React = __toESM(require("react"));
+var import_jsx_runtime = require("react/jsx-runtime");
+var DirectionContext = React.createContext(void 0);
+var DirectionProvider = (props) => {
+ const { dir, children } = props;
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DirectionContext.Provider, { value: dir, children });
+};
+function useDirection(localDir) {
+ const globalDir = React.useContext(DirectionContext);
+ return localDir || globalDir || "ltr";
+}
+var Provider = DirectionProvider;
+//# sourceMappingURL=index.js.map
diff --git a/node_modules/@radix-ui/react-direction/dist/index.js.map b/node_modules/@radix-ui/react-direction/dist/index.js.map
new file mode 100644
index 0000000..bcd0ed3
--- /dev/null
+++ b/node_modules/@radix-ui/react-direction/dist/index.js.map
@@ -0,0 +1,7 @@
+{
+ "version": 3,
+ "sources": ["../src/index.ts", "../src/Direction.tsx"],
+ "sourcesContent": ["export {\n useDirection,\n //\n Provider,\n //\n DirectionProvider,\n} from './Direction';\n", "import * as React from 'react';\n\ntype Direction = 'ltr' | 'rtl';\nconst DirectionContext = React.createContext(undefined);\n\n/* -------------------------------------------------------------------------------------------------\n * Direction\n * -----------------------------------------------------------------------------------------------*/\n\ninterface DirectionProviderProps {\n children?: React.ReactNode;\n dir: Direction;\n}\nconst DirectionProvider: React.FC = (props) => {\n const { dir, children } = props;\n return