v1.0 with SW PWA enabled
This commit is contained in:
21
frontend/node_modules/@radix-ui/react-popover/LICENSE
generated
vendored
Normal file
21
frontend/node_modules/@radix-ui/react-popover/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-popover/README.md
generated
vendored
Normal file
3
frontend/node_modules/@radix-ui/react-popover/README.md
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# `react-popover`
|
||||
|
||||
View docs [here](https://radix-ui.com/primitives/docs/components/popover).
|
||||
85
frontend/node_modules/@radix-ui/react-popover/dist/index.d.mts
generated
vendored
Normal file
85
frontend/node_modules/@radix-ui/react-popover/dist/index.d.mts
generated
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
||||
import * as React from 'react';
|
||||
import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
|
||||
import { FocusScope } from '@radix-ui/react-focus-scope';
|
||||
import * as PopperPrimitive from '@radix-ui/react-popper';
|
||||
import { Portal as Portal$1 } from '@radix-ui/react-portal';
|
||||
import { Primitive } from '@radix-ui/react-primitive';
|
||||
|
||||
declare const createPopoverScope: _radix_ui_react_context.CreateScope;
|
||||
interface PopoverProps {
|
||||
children?: React.ReactNode;
|
||||
open?: boolean;
|
||||
defaultOpen?: boolean;
|
||||
onOpenChange?: (open: boolean) => void;
|
||||
modal?: boolean;
|
||||
}
|
||||
declare const Popover: React.FC<PopoverProps>;
|
||||
type PopperAnchorProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Anchor>;
|
||||
interface PopoverAnchorProps extends PopperAnchorProps {
|
||||
}
|
||||
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
||||
interface PopoverTriggerProps extends PrimitiveButtonProps {
|
||||
}
|
||||
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>;
|
||||
interface PopoverPortalProps {
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Specify a container element to portal the content into.
|
||||
*/
|
||||
container?: PortalProps['container'];
|
||||
/**
|
||||
* Used to force mounting when more control is needed. Useful when
|
||||
* controlling animation with React animation libraries.
|
||||
*/
|
||||
forceMount?: true;
|
||||
}
|
||||
declare const PopoverPortal: React.FC<PopoverPortalProps>;
|
||||
interface PopoverContentProps extends PopoverContentTypeProps {
|
||||
/**
|
||||
* Used to force mounting when more control is needed. Useful when
|
||||
* controlling animation with React animation libraries.
|
||||
*/
|
||||
forceMount?: true;
|
||||
}
|
||||
declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
interface PopoverContentTypeProps extends Omit<PopoverContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
|
||||
}
|
||||
type FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>;
|
||||
type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
|
||||
type PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
|
||||
interface PopoverContentImplProps extends Omit<PopperContentProps, 'onPlaced'>, Omit<DismissableLayerProps, 'onDismiss'> {
|
||||
/**
|
||||
* Whether focus should be trapped within the `Popover`
|
||||
* (default: false)
|
||||
*/
|
||||
trapFocus?: FocusScopeProps['trapped'];
|
||||
/**
|
||||
* Event handler called when auto-focusing on open.
|
||||
* Can be prevented.
|
||||
*/
|
||||
onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
|
||||
/**
|
||||
* Event handler called when auto-focusing on close.
|
||||
* Can be prevented.
|
||||
*/
|
||||
onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
|
||||
}
|
||||
interface PopoverCloseProps extends PrimitiveButtonProps {
|
||||
}
|
||||
declare const PopoverClose: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
type PopperArrowProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
|
||||
interface PopoverArrowProps extends PopperArrowProps {
|
||||
}
|
||||
declare const PopoverArrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
|
||||
declare const Root: React.FC<PopoverProps>;
|
||||
declare const Anchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Trigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
declare const Portal: React.FC<PopoverPortalProps>;
|
||||
declare const Content: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Close: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
declare const Arrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
|
||||
|
||||
export { Anchor, Arrow, Close, Content, Popover, PopoverAnchor, type PopoverAnchorProps, PopoverArrow, type PopoverArrowProps, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, PopoverPortal, type PopoverPortalProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, Root, Trigger, createPopoverScope };
|
||||
85
frontend/node_modules/@radix-ui/react-popover/dist/index.d.ts
generated
vendored
Normal file
85
frontend/node_modules/@radix-ui/react-popover/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
||||
import * as React from 'react';
|
||||
import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
|
||||
import { FocusScope } from '@radix-ui/react-focus-scope';
|
||||
import * as PopperPrimitive from '@radix-ui/react-popper';
|
||||
import { Portal as Portal$1 } from '@radix-ui/react-portal';
|
||||
import { Primitive } from '@radix-ui/react-primitive';
|
||||
|
||||
declare const createPopoverScope: _radix_ui_react_context.CreateScope;
|
||||
interface PopoverProps {
|
||||
children?: React.ReactNode;
|
||||
open?: boolean;
|
||||
defaultOpen?: boolean;
|
||||
onOpenChange?: (open: boolean) => void;
|
||||
modal?: boolean;
|
||||
}
|
||||
declare const Popover: React.FC<PopoverProps>;
|
||||
type PopperAnchorProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Anchor>;
|
||||
interface PopoverAnchorProps extends PopperAnchorProps {
|
||||
}
|
||||
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
||||
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
||||
interface PopoverTriggerProps extends PrimitiveButtonProps {
|
||||
}
|
||||
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>;
|
||||
interface PopoverPortalProps {
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Specify a container element to portal the content into.
|
||||
*/
|
||||
container?: PortalProps['container'];
|
||||
/**
|
||||
* Used to force mounting when more control is needed. Useful when
|
||||
* controlling animation with React animation libraries.
|
||||
*/
|
||||
forceMount?: true;
|
||||
}
|
||||
declare const PopoverPortal: React.FC<PopoverPortalProps>;
|
||||
interface PopoverContentProps extends PopoverContentTypeProps {
|
||||
/**
|
||||
* Used to force mounting when more control is needed. Useful when
|
||||
* controlling animation with React animation libraries.
|
||||
*/
|
||||
forceMount?: true;
|
||||
}
|
||||
declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
interface PopoverContentTypeProps extends Omit<PopoverContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
|
||||
}
|
||||
type FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>;
|
||||
type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
|
||||
type PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
|
||||
interface PopoverContentImplProps extends Omit<PopperContentProps, 'onPlaced'>, Omit<DismissableLayerProps, 'onDismiss'> {
|
||||
/**
|
||||
* Whether focus should be trapped within the `Popover`
|
||||
* (default: false)
|
||||
*/
|
||||
trapFocus?: FocusScopeProps['trapped'];
|
||||
/**
|
||||
* Event handler called when auto-focusing on open.
|
||||
* Can be prevented.
|
||||
*/
|
||||
onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
|
||||
/**
|
||||
* Event handler called when auto-focusing on close.
|
||||
* Can be prevented.
|
||||
*/
|
||||
onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
|
||||
}
|
||||
interface PopoverCloseProps extends PrimitiveButtonProps {
|
||||
}
|
||||
declare const PopoverClose: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
type PopperArrowProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
|
||||
interface PopoverArrowProps extends PopperArrowProps {
|
||||
}
|
||||
declare const PopoverArrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
|
||||
declare const Root: React.FC<PopoverProps>;
|
||||
declare const Anchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Trigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
declare const Portal: React.FC<PopoverPortalProps>;
|
||||
declare const Content: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
||||
declare const Close: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
||||
declare const Arrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
|
||||
|
||||
export { Anchor, Arrow, Close, Content, Popover, PopoverAnchor, type PopoverAnchorProps, PopoverArrow, type PopoverArrowProps, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, PopoverPortal, type PopoverPortalProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, Root, Trigger, createPopoverScope };
|
||||
352
frontend/node_modules/@radix-ui/react-popover/dist/index.js
generated
vendored
Normal file
352
frontend/node_modules/@radix-ui/react-popover/dist/index.js
generated
vendored
Normal file
@ -0,0 +1,352 @@
|
||||
"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, {
|
||||
Anchor: () => Anchor2,
|
||||
Arrow: () => Arrow2,
|
||||
Close: () => Close,
|
||||
Content: () => Content2,
|
||||
Popover: () => Popover,
|
||||
PopoverAnchor: () => PopoverAnchor,
|
||||
PopoverArrow: () => PopoverArrow,
|
||||
PopoverClose: () => PopoverClose,
|
||||
PopoverContent: () => PopoverContent,
|
||||
PopoverPortal: () => PopoverPortal,
|
||||
PopoverTrigger: () => PopoverTrigger,
|
||||
Portal: () => Portal,
|
||||
Root: () => Root2,
|
||||
Trigger: () => Trigger,
|
||||
createPopoverScope: () => createPopoverScope
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/popover.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_dismissable_layer = require("@radix-ui/react-dismissable-layer");
|
||||
var import_react_focus_guards = require("@radix-ui/react-focus-guards");
|
||||
var import_react_focus_scope = require("@radix-ui/react-focus-scope");
|
||||
var import_react_id = require("@radix-ui/react-id");
|
||||
var PopperPrimitive = __toESM(require("@radix-ui/react-popper"));
|
||||
var import_react_popper = require("@radix-ui/react-popper");
|
||||
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_slot = require("@radix-ui/react-slot");
|
||||
var import_react_use_controllable_state = require("@radix-ui/react-use-controllable-state");
|
||||
var import_aria_hidden = require("aria-hidden");
|
||||
var import_react_remove_scroll = require("react-remove-scroll");
|
||||
var import_jsx_runtime = require("react/jsx-runtime");
|
||||
var POPOVER_NAME = "Popover";
|
||||
var [createPopoverContext, createPopoverScope] = (0, import_react_context.createContextScope)(POPOVER_NAME, [
|
||||
import_react_popper.createPopperScope
|
||||
]);
|
||||
var usePopperScope = (0, import_react_popper.createPopperScope)();
|
||||
var [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);
|
||||
var Popover = (props) => {
|
||||
const {
|
||||
__scopePopover,
|
||||
children,
|
||||
open: openProp,
|
||||
defaultOpen,
|
||||
onOpenChange,
|
||||
modal = false
|
||||
} = props;
|
||||
const popperScope = usePopperScope(__scopePopover);
|
||||
const triggerRef = React.useRef(null);
|
||||
const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);
|
||||
const [open, setOpen] = (0, import_react_use_controllable_state.useControllableState)({
|
||||
prop: openProp,
|
||||
defaultProp: defaultOpen ?? false,
|
||||
onChange: onOpenChange,
|
||||
caller: POPOVER_NAME
|
||||
});
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
||||
PopoverProvider,
|
||||
{
|
||||
scope: __scopePopover,
|
||||
contentId: (0, import_react_id.useId)(),
|
||||
triggerRef,
|
||||
open,
|
||||
onOpenChange: setOpen,
|
||||
onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
||||
hasCustomAnchor,
|
||||
onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),
|
||||
onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),
|
||||
modal,
|
||||
children
|
||||
}
|
||||
) });
|
||||
};
|
||||
Popover.displayName = POPOVER_NAME;
|
||||
var ANCHOR_NAME = "PopoverAnchor";
|
||||
var PopoverAnchor = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopePopover, ...anchorProps } = props;
|
||||
const context = usePopoverContext(ANCHOR_NAME, __scopePopover);
|
||||
const popperScope = usePopperScope(__scopePopover);
|
||||
const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
|
||||
React.useEffect(() => {
|
||||
onCustomAnchorAdd();
|
||||
return () => onCustomAnchorRemove();
|
||||
}, [onCustomAnchorAdd, onCustomAnchorRemove]);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
PopoverAnchor.displayName = ANCHOR_NAME;
|
||||
var TRIGGER_NAME = "PopoverTrigger";
|
||||
var PopoverTrigger = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopePopover, ...triggerProps } = props;
|
||||
const context = usePopoverContext(TRIGGER_NAME, __scopePopover);
|
||||
const popperScope = usePopperScope(__scopePopover);
|
||||
const composedTriggerRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
||||
const trigger = /* @__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)
|
||||
}
|
||||
);
|
||||
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });
|
||||
}
|
||||
);
|
||||
PopoverTrigger.displayName = TRIGGER_NAME;
|
||||
var PORTAL_NAME = "PopoverPortal";
|
||||
var [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {
|
||||
forceMount: void 0
|
||||
});
|
||||
var PopoverPortal = (props) => {
|
||||
const { __scopePopover, forceMount, children, container } = props;
|
||||
const context = usePopoverContext(PORTAL_NAME, __scopePopover);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__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 }) }) });
|
||||
};
|
||||
PopoverPortal.displayName = PORTAL_NAME;
|
||||
var CONTENT_NAME = "PopoverContent";
|
||||
var PopoverContent = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);
|
||||
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
||||
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
||||
}
|
||||
);
|
||||
PopoverContent.displayName = CONTENT_NAME;
|
||||
var Slot = (0, import_react_slot.createSlot)("PopoverContent.RemoveScroll");
|
||||
var PopoverContentModal = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
||||
const contentRef = React.useRef(null);
|
||||
const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, contentRef);
|
||||
const isRightClickOutsideRef = React.useRef(false);
|
||||
React.useEffect(() => {
|
||||
const content = contentRef.current;
|
||||
if (content) return (0, import_aria_hidden.hideOthers)(content);
|
||||
}, []);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_remove_scroll.RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
||||
PopoverContentImpl,
|
||||
{
|
||||
...props,
|
||||
ref: composedRefs,
|
||||
trapFocus: context.open,
|
||||
disableOutsidePointerEvents: true,
|
||||
onCloseAutoFocus: (0, import_primitive.composeEventHandlers)(props.onCloseAutoFocus, (event) => {
|
||||
event.preventDefault();
|
||||
if (!isRightClickOutsideRef.current) 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;
|
||||
isRightClickOutsideRef.current = isRightClick;
|
||||
},
|
||||
{ checkForDefaultPrevented: false }
|
||||
),
|
||||
onFocusOutside: (0, import_primitive.composeEventHandlers)(
|
||||
props.onFocusOutside,
|
||||
(event) => event.preventDefault(),
|
||||
{ checkForDefaultPrevented: false }
|
||||
)
|
||||
}
|
||||
) });
|
||||
}
|
||||
);
|
||||
var PopoverContentNonModal = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
||||
const hasInteractedOutsideRef = React.useRef(false);
|
||||
const hasPointerDownOutsideRef = React.useRef(false);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
||||
PopoverContentImpl,
|
||||
{
|
||||
...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 PopoverContentImpl = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const {
|
||||
__scopePopover,
|
||||
trapFocus,
|
||||
onOpenAutoFocus,
|
||||
onCloseAutoFocus,
|
||||
disableOutsidePointerEvents,
|
||||
onEscapeKeyDown,
|
||||
onPointerDownOutside,
|
||||
onFocusOutside,
|
||||
onInteractOutside,
|
||||
...contentProps
|
||||
} = props;
|
||||
const context = usePopoverContext(CONTENT_NAME, __scopePopover);
|
||||
const popperScope = usePopperScope(__scopePopover);
|
||||
(0, import_react_focus_guards.useFocusGuards)();
|
||||
return /* @__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,
|
||||
{
|
||||
asChild: true,
|
||||
disableOutsidePointerEvents,
|
||||
onInteractOutside,
|
||||
onEscapeKeyDown,
|
||||
onPointerDownOutside,
|
||||
onFocusOutside,
|
||||
onDismiss: () => context.onOpenChange(false),
|
||||
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
||||
PopperPrimitive.Content,
|
||||
{
|
||||
"data-state": getState(context.open),
|
||||
role: "dialog",
|
||||
id: context.contentId,
|
||||
...popperScope,
|
||||
...contentProps,
|
||||
ref: forwardedRef,
|
||||
style: {
|
||||
...contentProps.style,
|
||||
// re-namespace exposed content custom properties
|
||||
...{
|
||||
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
||||
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
||||
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
||||
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
||||
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
var CLOSE_NAME = "PopoverClose";
|
||||
var PopoverClose = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopePopover, ...closeProps } = props;
|
||||
const context = usePopoverContext(CLOSE_NAME, __scopePopover);
|
||||
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))
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
PopoverClose.displayName = CLOSE_NAME;
|
||||
var ARROW_NAME = "PopoverArrow";
|
||||
var PopoverArrow = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopePopover, ...arrowProps } = props;
|
||||
const popperScope = usePopperScope(__scopePopover);
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
PopoverArrow.displayName = ARROW_NAME;
|
||||
function getState(open) {
|
||||
return open ? "open" : "closed";
|
||||
}
|
||||
var Root2 = Popover;
|
||||
var Anchor2 = PopoverAnchor;
|
||||
var Trigger = PopoverTrigger;
|
||||
var Portal = PopoverPortal;
|
||||
var Content2 = PopoverContent;
|
||||
var Close = PopoverClose;
|
||||
var Arrow2 = PopoverArrow;
|
||||
//# sourceMappingURL=index.js.map
|
||||
7
frontend/node_modules/@radix-ui/react-popover/dist/index.js.map
generated
vendored
Normal file
7
frontend/node_modules/@radix-ui/react-popover/dist/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
320
frontend/node_modules/@radix-ui/react-popover/dist/index.mjs
generated
vendored
Normal file
320
frontend/node_modules/@radix-ui/react-popover/dist/index.mjs
generated
vendored
Normal file
@ -0,0 +1,320 @@
|
||||
"use client";
|
||||
|
||||
// src/popover.tsx
|
||||
import * as React from "react";
|
||||
import { composeEventHandlers } from "@radix-ui/primitive";
|
||||
import { useComposedRefs } from "@radix-ui/react-compose-refs";
|
||||
import { createContextScope } from "@radix-ui/react-context";
|
||||
import { DismissableLayer } from "@radix-ui/react-dismissable-layer";
|
||||
import { useFocusGuards } from "@radix-ui/react-focus-guards";
|
||||
import { FocusScope } from "@radix-ui/react-focus-scope";
|
||||
import { useId } from "@radix-ui/react-id";
|
||||
import * as PopperPrimitive from "@radix-ui/react-popper";
|
||||
import { createPopperScope } from "@radix-ui/react-popper";
|
||||
import { Portal as PortalPrimitive } from "@radix-ui/react-portal";
|
||||
import { Presence } from "@radix-ui/react-presence";
|
||||
import { Primitive } from "@radix-ui/react-primitive";
|
||||
import { createSlot } from "@radix-ui/react-slot";
|
||||
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
||||
import { hideOthers } from "aria-hidden";
|
||||
import { RemoveScroll } from "react-remove-scroll";
|
||||
import { jsx } from "react/jsx-runtime";
|
||||
var POPOVER_NAME = "Popover";
|
||||
var [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
|
||||
createPopperScope
|
||||
]);
|
||||
var usePopperScope = createPopperScope();
|
||||
var [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);
|
||||
var Popover = (props) => {
|
||||
const {
|
||||
__scopePopover,
|
||||
children,
|
||||
open: openProp,
|
||||
defaultOpen,
|
||||
onOpenChange,
|
||||
modal = false
|
||||
} = props;
|
||||
const popperScope = usePopperScope(__scopePopover);
|
||||
const triggerRef = React.useRef(null);
|
||||
const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);
|
||||
const [open, setOpen] = useControllableState({
|
||||
prop: openProp,
|
||||
defaultProp: defaultOpen ?? false,
|
||||
onChange: onOpenChange,
|
||||
caller: POPOVER_NAME
|
||||
});
|
||||
return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(
|
||||
PopoverProvider,
|
||||
{
|
||||
scope: __scopePopover,
|
||||
contentId: useId(),
|
||||
triggerRef,
|
||||
open,
|
||||
onOpenChange: setOpen,
|
||||
onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
||||
hasCustomAnchor,
|
||||
onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),
|
||||
onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),
|
||||
modal,
|
||||
children
|
||||
}
|
||||
) });
|
||||
};
|
||||
Popover.displayName = POPOVER_NAME;
|
||||
var ANCHOR_NAME = "PopoverAnchor";
|
||||
var PopoverAnchor = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopePopover, ...anchorProps } = props;
|
||||
const context = usePopoverContext(ANCHOR_NAME, __scopePopover);
|
||||
const popperScope = usePopperScope(__scopePopover);
|
||||
const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
|
||||
React.useEffect(() => {
|
||||
onCustomAnchorAdd();
|
||||
return () => onCustomAnchorRemove();
|
||||
}, [onCustomAnchorAdd, onCustomAnchorRemove]);
|
||||
return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
PopoverAnchor.displayName = ANCHOR_NAME;
|
||||
var TRIGGER_NAME = "PopoverTrigger";
|
||||
var PopoverTrigger = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopePopover, ...triggerProps } = props;
|
||||
const context = usePopoverContext(TRIGGER_NAME, __scopePopover);
|
||||
const popperScope = usePopperScope(__scopePopover);
|
||||
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
||||
const trigger = /* @__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)
|
||||
}
|
||||
);
|
||||
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });
|
||||
}
|
||||
);
|
||||
PopoverTrigger.displayName = TRIGGER_NAME;
|
||||
var PORTAL_NAME = "PopoverPortal";
|
||||
var [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {
|
||||
forceMount: void 0
|
||||
});
|
||||
var PopoverPortal = (props) => {
|
||||
const { __scopePopover, forceMount, children, container } = props;
|
||||
const context = usePopoverContext(PORTAL_NAME, __scopePopover);
|
||||
return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });
|
||||
};
|
||||
PopoverPortal.displayName = PORTAL_NAME;
|
||||
var CONTENT_NAME = "PopoverContent";
|
||||
var PopoverContent = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);
|
||||
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
||||
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
||||
return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
||||
}
|
||||
);
|
||||
PopoverContent.displayName = CONTENT_NAME;
|
||||
var Slot = createSlot("PopoverContent.RemoveScroll");
|
||||
var PopoverContentModal = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
||||
const contentRef = React.useRef(null);
|
||||
const composedRefs = useComposedRefs(forwardedRef, contentRef);
|
||||
const isRightClickOutsideRef = React.useRef(false);
|
||||
React.useEffect(() => {
|
||||
const content = contentRef.current;
|
||||
if (content) return hideOthers(content);
|
||||
}, []);
|
||||
return /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(
|
||||
PopoverContentImpl,
|
||||
{
|
||||
...props,
|
||||
ref: composedRefs,
|
||||
trapFocus: context.open,
|
||||
disableOutsidePointerEvents: true,
|
||||
onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
|
||||
event.preventDefault();
|
||||
if (!isRightClickOutsideRef.current) 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;
|
||||
isRightClickOutsideRef.current = isRightClick;
|
||||
},
|
||||
{ checkForDefaultPrevented: false }
|
||||
),
|
||||
onFocusOutside: composeEventHandlers(
|
||||
props.onFocusOutside,
|
||||
(event) => event.preventDefault(),
|
||||
{ checkForDefaultPrevented: false }
|
||||
)
|
||||
}
|
||||
) });
|
||||
}
|
||||
);
|
||||
var PopoverContentNonModal = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
||||
const hasInteractedOutsideRef = React.useRef(false);
|
||||
const hasPointerDownOutsideRef = React.useRef(false);
|
||||
return /* @__PURE__ */ jsx(
|
||||
PopoverContentImpl,
|
||||
{
|
||||
...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 PopoverContentImpl = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const {
|
||||
__scopePopover,
|
||||
trapFocus,
|
||||
onOpenAutoFocus,
|
||||
onCloseAutoFocus,
|
||||
disableOutsidePointerEvents,
|
||||
onEscapeKeyDown,
|
||||
onPointerDownOutside,
|
||||
onFocusOutside,
|
||||
onInteractOutside,
|
||||
...contentProps
|
||||
} = props;
|
||||
const context = usePopoverContext(CONTENT_NAME, __scopePopover);
|
||||
const popperScope = usePopperScope(__scopePopover);
|
||||
useFocusGuards();
|
||||
return /* @__PURE__ */ jsx(
|
||||
FocusScope,
|
||||
{
|
||||
asChild: true,
|
||||
loop: true,
|
||||
trapped: trapFocus,
|
||||
onMountAutoFocus: onOpenAutoFocus,
|
||||
onUnmountAutoFocus: onCloseAutoFocus,
|
||||
children: /* @__PURE__ */ jsx(
|
||||
DismissableLayer,
|
||||
{
|
||||
asChild: true,
|
||||
disableOutsidePointerEvents,
|
||||
onInteractOutside,
|
||||
onEscapeKeyDown,
|
||||
onPointerDownOutside,
|
||||
onFocusOutside,
|
||||
onDismiss: () => context.onOpenChange(false),
|
||||
children: /* @__PURE__ */ jsx(
|
||||
PopperPrimitive.Content,
|
||||
{
|
||||
"data-state": getState(context.open),
|
||||
role: "dialog",
|
||||
id: context.contentId,
|
||||
...popperScope,
|
||||
...contentProps,
|
||||
ref: forwardedRef,
|
||||
style: {
|
||||
...contentProps.style,
|
||||
// re-namespace exposed content custom properties
|
||||
...{
|
||||
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
||||
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
||||
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
||||
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
||||
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
var CLOSE_NAME = "PopoverClose";
|
||||
var PopoverClose = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopePopover, ...closeProps } = props;
|
||||
const context = usePopoverContext(CLOSE_NAME, __scopePopover);
|
||||
return /* @__PURE__ */ jsx(
|
||||
Primitive.button,
|
||||
{
|
||||
type: "button",
|
||||
...closeProps,
|
||||
ref: forwardedRef,
|
||||
onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
PopoverClose.displayName = CLOSE_NAME;
|
||||
var ARROW_NAME = "PopoverArrow";
|
||||
var PopoverArrow = React.forwardRef(
|
||||
(props, forwardedRef) => {
|
||||
const { __scopePopover, ...arrowProps } = props;
|
||||
const popperScope = usePopperScope(__scopePopover);
|
||||
return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
||||
}
|
||||
);
|
||||
PopoverArrow.displayName = ARROW_NAME;
|
||||
function getState(open) {
|
||||
return open ? "open" : "closed";
|
||||
}
|
||||
var Root2 = Popover;
|
||||
var Anchor2 = PopoverAnchor;
|
||||
var Trigger = PopoverTrigger;
|
||||
var Portal = PopoverPortal;
|
||||
var Content2 = PopoverContent;
|
||||
var Close = PopoverClose;
|
||||
var Arrow2 = PopoverArrow;
|
||||
export {
|
||||
Anchor2 as Anchor,
|
||||
Arrow2 as Arrow,
|
||||
Close,
|
||||
Content2 as Content,
|
||||
Popover,
|
||||
PopoverAnchor,
|
||||
PopoverArrow,
|
||||
PopoverClose,
|
||||
PopoverContent,
|
||||
PopoverPortal,
|
||||
PopoverTrigger,
|
||||
Portal,
|
||||
Root2 as Root,
|
||||
Trigger,
|
||||
createPopoverScope
|
||||
};
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
7
frontend/node_modules/@radix-ui/react-popover/dist/index.mjs.map
generated
vendored
Normal file
7
frontend/node_modules/@radix-ui/react-popover/dist/index.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
21
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/LICENSE
generated
vendored
Normal file
21
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/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-popover/node_modules/@radix-ui/react-slot/README.md
generated
vendored
Normal file
3
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/README.md
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# `react-slot`
|
||||
|
||||
View docs [here](https://radix-ui.com/primitives/docs/utilities/slot).
|
||||
17
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.d.mts
generated
vendored
Normal file
17
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.d.mts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
import * as React from 'react';
|
||||
|
||||
interface SlotProps extends React.HTMLAttributes<HTMLElement> {
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
declare function createSlot(ownerName: string): React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
|
||||
declare const Slot: React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
|
||||
interface SlottableProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
interface SlottableComponent extends React.FC<SlottableProps> {
|
||||
__radixId: symbol;
|
||||
}
|
||||
declare function createSlottable(ownerName: string): SlottableComponent;
|
||||
declare const Slottable: SlottableComponent;
|
||||
|
||||
export { Slot as Root, Slot, type SlotProps, Slottable, createSlot, createSlottable };
|
||||
17
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.d.ts
generated
vendored
Normal file
17
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
import * as React from 'react';
|
||||
|
||||
interface SlotProps extends React.HTMLAttributes<HTMLElement> {
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
declare function createSlot(ownerName: string): React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
|
||||
declare const Slot: React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
|
||||
interface SlottableProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
interface SlottableComponent extends React.FC<SlottableProps> {
|
||||
__radixId: symbol;
|
||||
}
|
||||
declare function createSlottable(ownerName: string): SlottableComponent;
|
||||
declare const Slottable: SlottableComponent;
|
||||
|
||||
export { Slot as Root, Slot, type SlotProps, Slottable, createSlot, createSlottable };
|
||||
138
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js
generated
vendored
Normal file
138
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js
generated
vendored
Normal file
@ -0,0 +1,138 @@
|
||||
"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);
|
||||
|
||||
// src/index.ts
|
||||
var index_exports = {};
|
||||
__export(index_exports, {
|
||||
Root: () => Slot,
|
||||
Slot: () => Slot,
|
||||
Slottable: () => Slottable,
|
||||
createSlot: () => createSlot,
|
||||
createSlottable: () => createSlottable
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/slot.tsx
|
||||
var React = __toESM(require("react"));
|
||||
var import_react_compose_refs = require("@radix-ui/react-compose-refs");
|
||||
var import_jsx_runtime = require("react/jsx-runtime");
|
||||
// @__NO_SIDE_EFFECTS__
|
||||
function createSlot(ownerName) {
|
||||
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
||||
const Slot2 = React.forwardRef((props, forwardedRef) => {
|
||||
const { children, ...slotProps } = props;
|
||||
const childrenArray = React.Children.toArray(children);
|
||||
const slottable = childrenArray.find(isSlottable);
|
||||
if (slottable) {
|
||||
const newElement = slottable.props.children;
|
||||
const newChildren = childrenArray.map((child) => {
|
||||
if (child === slottable) {
|
||||
if (React.Children.count(newElement) > 1) return React.Children.only(null);
|
||||
return React.isValidElement(newElement) ? newElement.props.children : null;
|
||||
} else {
|
||||
return child;
|
||||
}
|
||||
});
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
|
||||
}
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
||||
});
|
||||
Slot2.displayName = `${ownerName}.Slot`;
|
||||
return Slot2;
|
||||
}
|
||||
var Slot = /* @__PURE__ */ createSlot("Slot");
|
||||
// @__NO_SIDE_EFFECTS__
|
||||
function createSlotClone(ownerName) {
|
||||
const SlotClone = React.forwardRef((props, forwardedRef) => {
|
||||
const { children, ...slotProps } = props;
|
||||
if (React.isValidElement(children)) {
|
||||
const childrenRef = getElementRef(children);
|
||||
const props2 = mergeProps(slotProps, children.props);
|
||||
if (children.type !== React.Fragment) {
|
||||
props2.ref = forwardedRef ? (0, import_react_compose_refs.composeRefs)(forwardedRef, childrenRef) : childrenRef;
|
||||
}
|
||||
return React.cloneElement(children, props2);
|
||||
}
|
||||
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
||||
});
|
||||
SlotClone.displayName = `${ownerName}.SlotClone`;
|
||||
return SlotClone;
|
||||
}
|
||||
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
||||
// @__NO_SIDE_EFFECTS__
|
||||
function createSlottable(ownerName) {
|
||||
const Slottable2 = ({ children }) => {
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
||||
};
|
||||
Slottable2.displayName = `${ownerName}.Slottable`;
|
||||
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
||||
return Slottable2;
|
||||
}
|
||||
var Slottable = /* @__PURE__ */ createSlottable("Slottable");
|
||||
function isSlottable(child) {
|
||||
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
||||
}
|
||||
function mergeProps(slotProps, childProps) {
|
||||
const overrideProps = { ...childProps };
|
||||
for (const propName in childProps) {
|
||||
const slotPropValue = slotProps[propName];
|
||||
const childPropValue = childProps[propName];
|
||||
const isHandler = /^on[A-Z]/.test(propName);
|
||||
if (isHandler) {
|
||||
if (slotPropValue && childPropValue) {
|
||||
overrideProps[propName] = (...args) => {
|
||||
const result = childPropValue(...args);
|
||||
slotPropValue(...args);
|
||||
return result;
|
||||
};
|
||||
} else if (slotPropValue) {
|
||||
overrideProps[propName] = slotPropValue;
|
||||
}
|
||||
} else if (propName === "style") {
|
||||
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
||||
} else if (propName === "className") {
|
||||
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
||||
}
|
||||
}
|
||||
return { ...slotProps, ...overrideProps };
|
||||
}
|
||||
function getElementRef(element) {
|
||||
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
||||
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
||||
if (mayWarn) {
|
||||
return element.ref;
|
||||
}
|
||||
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
||||
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
||||
if (mayWarn) {
|
||||
return element.props.ref;
|
||||
}
|
||||
return element.props.ref || element.ref;
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
7
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js.map
generated
vendored
Normal file
7
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
105
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs
generated
vendored
Normal file
105
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs
generated
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
// src/slot.tsx
|
||||
import * as React from "react";
|
||||
import { composeRefs } from "@radix-ui/react-compose-refs";
|
||||
import { Fragment as Fragment2, jsx } from "react/jsx-runtime";
|
||||
// @__NO_SIDE_EFFECTS__
|
||||
function createSlot(ownerName) {
|
||||
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
||||
const Slot2 = React.forwardRef((props, forwardedRef) => {
|
||||
const { children, ...slotProps } = props;
|
||||
const childrenArray = React.Children.toArray(children);
|
||||
const slottable = childrenArray.find(isSlottable);
|
||||
if (slottable) {
|
||||
const newElement = slottable.props.children;
|
||||
const newChildren = childrenArray.map((child) => {
|
||||
if (child === slottable) {
|
||||
if (React.Children.count(newElement) > 1) return React.Children.only(null);
|
||||
return React.isValidElement(newElement) ? newElement.props.children : null;
|
||||
} else {
|
||||
return child;
|
||||
}
|
||||
});
|
||||
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
|
||||
}
|
||||
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
||||
});
|
||||
Slot2.displayName = `${ownerName}.Slot`;
|
||||
return Slot2;
|
||||
}
|
||||
var Slot = /* @__PURE__ */ createSlot("Slot");
|
||||
// @__NO_SIDE_EFFECTS__
|
||||
function createSlotClone(ownerName) {
|
||||
const SlotClone = React.forwardRef((props, forwardedRef) => {
|
||||
const { children, ...slotProps } = props;
|
||||
if (React.isValidElement(children)) {
|
||||
const childrenRef = getElementRef(children);
|
||||
const props2 = mergeProps(slotProps, children.props);
|
||||
if (children.type !== React.Fragment) {
|
||||
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
||||
}
|
||||
return React.cloneElement(children, props2);
|
||||
}
|
||||
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
||||
});
|
||||
SlotClone.displayName = `${ownerName}.SlotClone`;
|
||||
return SlotClone;
|
||||
}
|
||||
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
||||
// @__NO_SIDE_EFFECTS__
|
||||
function createSlottable(ownerName) {
|
||||
const Slottable2 = ({ children }) => {
|
||||
return /* @__PURE__ */ jsx(Fragment2, { children });
|
||||
};
|
||||
Slottable2.displayName = `${ownerName}.Slottable`;
|
||||
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
||||
return Slottable2;
|
||||
}
|
||||
var Slottable = /* @__PURE__ */ createSlottable("Slottable");
|
||||
function isSlottable(child) {
|
||||
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
||||
}
|
||||
function mergeProps(slotProps, childProps) {
|
||||
const overrideProps = { ...childProps };
|
||||
for (const propName in childProps) {
|
||||
const slotPropValue = slotProps[propName];
|
||||
const childPropValue = childProps[propName];
|
||||
const isHandler = /^on[A-Z]/.test(propName);
|
||||
if (isHandler) {
|
||||
if (slotPropValue && childPropValue) {
|
||||
overrideProps[propName] = (...args) => {
|
||||
const result = childPropValue(...args);
|
||||
slotPropValue(...args);
|
||||
return result;
|
||||
};
|
||||
} else if (slotPropValue) {
|
||||
overrideProps[propName] = slotPropValue;
|
||||
}
|
||||
} else if (propName === "style") {
|
||||
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
||||
} else if (propName === "className") {
|
||||
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
||||
}
|
||||
}
|
||||
return { ...slotProps, ...overrideProps };
|
||||
}
|
||||
function getElementRef(element) {
|
||||
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
||||
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
||||
if (mayWarn) {
|
||||
return element.ref;
|
||||
}
|
||||
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
||||
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
||||
if (mayWarn) {
|
||||
return element.props.ref;
|
||||
}
|
||||
return element.props.ref || element.ref;
|
||||
}
|
||||
export {
|
||||
Slot as Root,
|
||||
Slot,
|
||||
Slottable,
|
||||
createSlot,
|
||||
createSlottable
|
||||
};
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
7
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs.map
generated
vendored
Normal file
7
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
63
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/package.json
generated
vendored
Normal file
63
frontend/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/package.json
generated
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
{
|
||||
"name": "@radix-ui/react-slot",
|
||||
"version": "1.2.3",
|
||||
"license": "MIT",
|
||||
"source": "./src/index.ts",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@radix-ui/react-compose-refs": "1.1.2"
|
||||
},
|
||||
"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/eslint-config": "0.0.0",
|
||||
"@repo/typescript-config": "0.0.0",
|
||||
"@repo/builder": "0.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": "*",
|
||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/react": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
82
frontend/node_modules/@radix-ui/react-popover/package.json
generated
vendored
Normal file
82
frontend/node_modules/@radix-ui/react-popover/package.json
generated
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
{
|
||||
"name": "@radix-ui/react-popover",
|
||||
"version": "1.1.15",
|
||||
"license": "MIT",
|
||||
"source": "./src/index.ts",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"aria-hidden": "^1.2.4",
|
||||
"react-remove-scroll": "^2.6.3",
|
||||
"@radix-ui/primitive": "1.1.3",
|
||||
"@radix-ui/react-compose-refs": "1.1.2",
|
||||
"@radix-ui/react-dismissable-layer": "1.1.11",
|
||||
"@radix-ui/react-focus-guards": "1.1.3",
|
||||
"@radix-ui/react-focus-scope": "1.1.7",
|
||||
"@radix-ui/react-id": "1.1.1",
|
||||
"@radix-ui/react-context": "1.1.2",
|
||||
"@radix-ui/react-presence": "1.1.5",
|
||||
"@radix-ui/react-portal": "1.1.9",
|
||||
"@radix-ui/react-popper": "1.2.8",
|
||||
"@radix-ui/react-primitive": "2.1.3",
|
||||
"@radix-ui/react-slot": "1.2.3",
|
||||
"@radix-ui/react-use-controllable-state": "1.2.2"
|
||||
},
|
||||
"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/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