groove-dev 0.26.38 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/CLAUDE.md +24 -19
- package/node_modules/@groove-dev/cli/bin/groove.js +2 -0
- package/node_modules/@groove-dev/cli/package.json +1 -1
- package/node_modules/@groove-dev/cli/src/commands/nuke.js +16 -4
- package/node_modules/@groove-dev/cli/src/commands/stop.js +17 -2
- package/node_modules/@groove-dev/daemon/integrations-registry.json +681 -75
- package/node_modules/@groove-dev/daemon/package.json +1 -1
- package/node_modules/@groove-dev/daemon/src/adaptive.js +23 -25
- package/node_modules/@groove-dev/daemon/src/api.js +346 -22
- package/node_modules/@groove-dev/daemon/src/classifier.js +53 -6
- package/node_modules/@groove-dev/daemon/src/firstrun.js +14 -1
- package/node_modules/@groove-dev/daemon/src/gateways/manager.js +2 -2
- package/node_modules/@groove-dev/daemon/src/index.js +28 -4
- package/node_modules/@groove-dev/daemon/src/integrations.js +215 -14
- package/node_modules/@groove-dev/daemon/src/introducer.js +84 -11
- package/node_modules/@groove-dev/daemon/src/journalist.js +43 -1
- package/node_modules/@groove-dev/daemon/src/lockmanager.js +60 -0
- package/node_modules/@groove-dev/daemon/src/mcp-manager.js +270 -0
- package/node_modules/@groove-dev/daemon/src/memory.js +370 -0
- package/node_modules/@groove-dev/daemon/src/pm.js +1 -1
- package/node_modules/@groove-dev/daemon/src/process.js +141 -9
- package/node_modules/@groove-dev/daemon/src/registry.js +1 -1
- package/node_modules/@groove-dev/daemon/src/rotator.js +334 -31
- package/node_modules/@groove-dev/daemon/src/router.js +43 -0
- package/node_modules/@groove-dev/daemon/src/tokentracker.js +70 -18
- package/node_modules/@groove-dev/daemon/src/validate.js +5 -13
- package/node_modules/@groove-dev/daemon/templates/groove-slides.cjs +306 -0
- package/node_modules/@groove-dev/daemon/test/classifier.test.js +3 -5
- package/node_modules/@groove-dev/daemon/test/lockmanager.test.js +64 -0
- package/node_modules/@groove-dev/daemon/test/memory.test.js +252 -0
- package/node_modules/@groove-dev/daemon/test/rotator.test.js +108 -0
- package/node_modules/@groove-dev/daemon/test/router.test.js +64 -0
- package/node_modules/@groove-dev/daemon/test/slides-engine.test.js +230 -0
- package/node_modules/@groove-dev/daemon/test/tokentracker.test.js +78 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-DjORRpF0.css +1 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-eCrVowF0.js +652 -0
- package/node_modules/@groove-dev/gui/dist/index.html +2 -2
- package/node_modules/@groove-dev/gui/package.json +1 -4
- package/node_modules/@groove-dev/gui/src/components/agents/agent-chat.jsx +26 -17
- package/node_modules/@groove-dev/gui/src/components/agents/agent-config.jsx +22 -1
- package/node_modules/@groove-dev/gui/src/components/agents/agent-feed.jsx +53 -21
- package/node_modules/@groove-dev/gui/src/components/agents/agent-node.jsx +132 -90
- package/node_modules/@groove-dev/gui/src/components/agents/spawn-wizard.jsx +212 -1
- package/node_modules/@groove-dev/gui/src/components/dashboard/cache-ring.jsx +6 -2
- package/node_modules/@groove-dev/gui/src/components/dashboard/intel-panel.jsx +495 -174
- package/node_modules/@groove-dev/gui/src/components/dashboard/kpi-card.jsx +12 -2
- package/node_modules/@groove-dev/gui/src/components/dashboard/team-burn-panel.jsx +55 -0
- package/node_modules/@groove-dev/gui/src/components/layout/activity-bar.jsx +3 -3
- package/node_modules/@groove-dev/gui/src/components/layout/app-shell.jsx +24 -19
- package/node_modules/@groove-dev/gui/src/components/layout/command-palette.jsx +2 -2
- package/node_modules/@groove-dev/gui/src/components/marketplace/integration-wizard.jsx +391 -61
- package/node_modules/@groove-dev/gui/src/components/marketplace/marketplace-card.jsx +29 -7
- package/node_modules/@groove-dev/gui/src/lib/format.js +0 -6
- package/node_modules/@groove-dev/gui/src/lib/hooks/use-dashboard.js +23 -5
- package/node_modules/@groove-dev/gui/src/stores/groove.js +59 -9
- package/node_modules/@groove-dev/gui/src/views/agents.jsx +84 -10
- package/node_modules/@groove-dev/gui/src/views/dashboard.jsx +24 -21
- package/node_modules/@groove-dev/gui/src/views/marketplace.jsx +153 -85
- package/package.json +2 -8
- package/packages/cli/bin/groove.js +2 -0
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/commands/nuke.js +16 -4
- package/packages/cli/src/commands/stop.js +17 -2
- package/packages/daemon/integrations-registry.json +681 -75
- package/packages/daemon/package.json +1 -1
- package/packages/daemon/src/adaptive.js +23 -25
- package/packages/daemon/src/api.js +346 -22
- package/packages/daemon/src/classifier.js +53 -6
- package/packages/daemon/src/firstrun.js +14 -1
- package/packages/daemon/src/gateways/manager.js +2 -2
- package/packages/daemon/src/index.js +28 -4
- package/packages/daemon/src/integrations.js +215 -14
- package/packages/daemon/src/introducer.js +84 -11
- package/packages/daemon/src/journalist.js +43 -1
- package/packages/daemon/src/lockmanager.js +60 -0
- package/packages/daemon/src/mcp-manager.js +270 -0
- package/packages/daemon/src/memory.js +370 -0
- package/packages/daemon/src/pm.js +1 -1
- package/packages/daemon/src/process.js +141 -9
- package/packages/daemon/src/registry.js +1 -1
- package/packages/daemon/src/rotator.js +334 -31
- package/packages/daemon/src/router.js +43 -0
- package/packages/daemon/src/tokentracker.js +70 -18
- package/packages/daemon/src/validate.js +5 -13
- package/packages/daemon/templates/groove-slides.cjs +306 -0
- package/packages/gui/dist/assets/index-DjORRpF0.css +1 -0
- package/packages/gui/dist/assets/index-eCrVowF0.js +652 -0
- package/packages/gui/dist/index.html +2 -2
- package/packages/gui/package.json +1 -4
- package/packages/gui/src/components/agents/agent-chat.jsx +26 -17
- package/packages/gui/src/components/agents/agent-config.jsx +22 -1
- package/packages/gui/src/components/agents/agent-feed.jsx +53 -21
- package/packages/gui/src/components/agents/agent-node.jsx +132 -90
- package/packages/gui/src/components/agents/spawn-wizard.jsx +212 -1
- package/packages/gui/src/components/dashboard/cache-ring.jsx +6 -2
- package/packages/gui/src/components/dashboard/intel-panel.jsx +495 -174
- package/packages/gui/src/components/dashboard/kpi-card.jsx +12 -2
- package/packages/gui/src/components/dashboard/team-burn-panel.jsx +55 -0
- package/packages/gui/src/components/layout/activity-bar.jsx +3 -3
- package/packages/gui/src/components/layout/app-shell.jsx +24 -19
- package/packages/gui/src/components/layout/command-palette.jsx +2 -2
- package/packages/gui/src/components/marketplace/integration-wizard.jsx +391 -61
- package/packages/gui/src/components/marketplace/marketplace-card.jsx +29 -7
- package/packages/gui/src/lib/format.js +0 -6
- package/packages/gui/src/lib/hooks/use-dashboard.js +23 -5
- package/packages/gui/src/stores/groove.js +59 -9
- package/packages/gui/src/views/agents.jsx +84 -10
- package/packages/gui/src/views/dashboard.jsx +24 -21
- package/packages/gui/src/views/marketplace.jsx +153 -85
- package/node_modules/@groove-dev/gui/dist/assets/index-CEFKgLGB.css +0 -1
- package/node_modules/@groove-dev/gui/dist/assets/index-CaKBNWcK.js +0 -638
- package/node_modules/@groove-dev/gui/dist/groove-logo-short.png +0 -0
- package/node_modules/@groove-dev/gui/dist/groove-logo.png +0 -0
- package/node_modules/@groove-dev/gui/public/groove-logo-short.png +0 -0
- package/node_modules/@groove-dev/gui/public/groove-logo.png +0 -0
- package/node_modules/@groove-dev/gui/src/components/ui/dropdown-menu.jsx +0 -60
- package/node_modules/@groove-dev/gui/src/lib/hooks/use-media-query.js +0 -18
- package/node_modules/@radix-ui/react-dropdown-menu/LICENSE +0 -21
- package/node_modules/@radix-ui/react-dropdown-menu/README.md +0 -3
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.mts +0 -97
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.ts +0 -97
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -337
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -7
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +0 -305
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +0 -7
- package/node_modules/@radix-ui/react-dropdown-menu/package.json +0 -75
- package/node_modules/@radix-ui/react-popover/LICENSE +0 -21
- package/node_modules/@radix-ui/react-popover/README.md +0 -3
- package/node_modules/@radix-ui/react-popover/dist/index.d.mts +0 -85
- package/node_modules/@radix-ui/react-popover/dist/index.d.ts +0 -85
- package/node_modules/@radix-ui/react-popover/dist/index.js +0 -352
- package/node_modules/@radix-ui/react-popover/dist/index.js.map +0 -7
- package/node_modules/@radix-ui/react-popover/dist/index.mjs +0 -320
- package/node_modules/@radix-ui/react-popover/dist/index.mjs.map +0 -7
- package/node_modules/@radix-ui/react-popover/package.json +0 -82
- package/node_modules/@radix-ui/react-separator/LICENSE +0 -21
- package/node_modules/@radix-ui/react-separator/README.md +0 -3
- package/node_modules/@radix-ui/react-separator/dist/index.d.mts +0 -21
- package/node_modules/@radix-ui/react-separator/dist/index.d.ts +0 -21
- package/node_modules/@radix-ui/react-separator/dist/index.js +0 -65
- package/node_modules/@radix-ui/react-separator/dist/index.js.map +0 -7
- package/node_modules/@radix-ui/react-separator/dist/index.mjs +0 -32
- package/node_modules/@radix-ui/react-separator/dist/index.mjs.map +0 -7
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/LICENSE +0 -21
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/README.md +0 -3
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.d.mts +0 -52
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.d.ts +0 -52
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js +0 -80
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -7
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.mjs +0 -47
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +0 -7
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/package.json +0 -69
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/LICENSE +0 -21
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/README.md +0 -3
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.d.mts +0 -22
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.d.ts +0 -22
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.js +0 -152
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -7
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.mjs +0 -119
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.mjs.map +0 -7
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/package.json +0 -64
- package/node_modules/@radix-ui/react-separator/package.json +0 -69
- package/packages/gui/dist/assets/index-CEFKgLGB.css +0 -1
- package/packages/gui/dist/assets/index-CaKBNWcK.js +0 -638
- package/packages/gui/dist/groove-logo-short.png +0 -0
- package/packages/gui/dist/groove-logo.png +0 -0
- package/packages/gui/public/groove-logo-short.png +0 -0
- package/packages/gui/public/groove-logo.png +0 -0
- package/packages/gui/src/components/ui/dropdown-menu.jsx +0 -60
- package/packages/gui/src/lib/hooks/use-media-query.js +0 -18
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
|
|
4
|
-
import { FocusScope } from '@radix-ui/react-focus-scope';
|
|
5
|
-
import * as PopperPrimitive from '@radix-ui/react-popper';
|
|
6
|
-
import { Portal as Portal$1 } from '@radix-ui/react-portal';
|
|
7
|
-
import { Primitive } from '@radix-ui/react-primitive';
|
|
8
|
-
|
|
9
|
-
declare const createPopoverScope: _radix_ui_react_context.CreateScope;
|
|
10
|
-
interface PopoverProps {
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
open?: boolean;
|
|
13
|
-
defaultOpen?: boolean;
|
|
14
|
-
onOpenChange?: (open: boolean) => void;
|
|
15
|
-
modal?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const Popover: React.FC<PopoverProps>;
|
|
18
|
-
type PopperAnchorProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Anchor>;
|
|
19
|
-
interface PopoverAnchorProps extends PopperAnchorProps {
|
|
20
|
-
}
|
|
21
|
-
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
23
|
-
interface PopoverTriggerProps extends PrimitiveButtonProps {
|
|
24
|
-
}
|
|
25
|
-
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
26
|
-
type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>;
|
|
27
|
-
interface PopoverPortalProps {
|
|
28
|
-
children?: React.ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
* Specify a container element to portal the content into.
|
|
31
|
-
*/
|
|
32
|
-
container?: PortalProps['container'];
|
|
33
|
-
/**
|
|
34
|
-
* Used to force mounting when more control is needed. Useful when
|
|
35
|
-
* controlling animation with React animation libraries.
|
|
36
|
-
*/
|
|
37
|
-
forceMount?: true;
|
|
38
|
-
}
|
|
39
|
-
declare const PopoverPortal: React.FC<PopoverPortalProps>;
|
|
40
|
-
interface PopoverContentProps extends PopoverContentTypeProps {
|
|
41
|
-
/**
|
|
42
|
-
* Used to force mounting when more control is needed. Useful when
|
|
43
|
-
* controlling animation with React animation libraries.
|
|
44
|
-
*/
|
|
45
|
-
forceMount?: true;
|
|
46
|
-
}
|
|
47
|
-
declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
|
-
interface PopoverContentTypeProps extends Omit<PopoverContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
|
|
49
|
-
}
|
|
50
|
-
type FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>;
|
|
51
|
-
type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
|
|
52
|
-
type PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
|
|
53
|
-
interface PopoverContentImplProps extends Omit<PopperContentProps, 'onPlaced'>, Omit<DismissableLayerProps, 'onDismiss'> {
|
|
54
|
-
/**
|
|
55
|
-
* Whether focus should be trapped within the `Popover`
|
|
56
|
-
* (default: false)
|
|
57
|
-
*/
|
|
58
|
-
trapFocus?: FocusScopeProps['trapped'];
|
|
59
|
-
/**
|
|
60
|
-
* Event handler called when auto-focusing on open.
|
|
61
|
-
* Can be prevented.
|
|
62
|
-
*/
|
|
63
|
-
onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
|
|
64
|
-
/**
|
|
65
|
-
* Event handler called when auto-focusing on close.
|
|
66
|
-
* Can be prevented.
|
|
67
|
-
*/
|
|
68
|
-
onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
|
|
69
|
-
}
|
|
70
|
-
interface PopoverCloseProps extends PrimitiveButtonProps {
|
|
71
|
-
}
|
|
72
|
-
declare const PopoverClose: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
73
|
-
type PopperArrowProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
|
|
74
|
-
interface PopoverArrowProps extends PopperArrowProps {
|
|
75
|
-
}
|
|
76
|
-
declare const PopoverArrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
77
|
-
declare const Root: React.FC<PopoverProps>;
|
|
78
|
-
declare const Anchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
79
|
-
declare const Trigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
80
|
-
declare const Portal: React.FC<PopoverPortalProps>;
|
|
81
|
-
declare const Content: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
-
declare const Close: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
83
|
-
declare const Arrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
84
|
-
|
|
85
|
-
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 };
|
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// src/index.ts
|
|
32
|
-
var index_exports = {};
|
|
33
|
-
__export(index_exports, {
|
|
34
|
-
Anchor: () => Anchor2,
|
|
35
|
-
Arrow: () => Arrow2,
|
|
36
|
-
Close: () => Close,
|
|
37
|
-
Content: () => Content2,
|
|
38
|
-
Popover: () => Popover,
|
|
39
|
-
PopoverAnchor: () => PopoverAnchor,
|
|
40
|
-
PopoverArrow: () => PopoverArrow,
|
|
41
|
-
PopoverClose: () => PopoverClose,
|
|
42
|
-
PopoverContent: () => PopoverContent,
|
|
43
|
-
PopoverPortal: () => PopoverPortal,
|
|
44
|
-
PopoverTrigger: () => PopoverTrigger,
|
|
45
|
-
Portal: () => Portal,
|
|
46
|
-
Root: () => Root2,
|
|
47
|
-
Trigger: () => Trigger,
|
|
48
|
-
createPopoverScope: () => createPopoverScope
|
|
49
|
-
});
|
|
50
|
-
module.exports = __toCommonJS(index_exports);
|
|
51
|
-
|
|
52
|
-
// src/popover.tsx
|
|
53
|
-
var React = __toESM(require("react"));
|
|
54
|
-
var import_primitive = require("@radix-ui/primitive");
|
|
55
|
-
var import_react_compose_refs = require("@radix-ui/react-compose-refs");
|
|
56
|
-
var import_react_context = require("@radix-ui/react-context");
|
|
57
|
-
var import_react_dismissable_layer = require("@radix-ui/react-dismissable-layer");
|
|
58
|
-
var import_react_focus_guards = require("@radix-ui/react-focus-guards");
|
|
59
|
-
var import_react_focus_scope = require("@radix-ui/react-focus-scope");
|
|
60
|
-
var import_react_id = require("@radix-ui/react-id");
|
|
61
|
-
var PopperPrimitive = __toESM(require("@radix-ui/react-popper"));
|
|
62
|
-
var import_react_popper = require("@radix-ui/react-popper");
|
|
63
|
-
var import_react_portal = require("@radix-ui/react-portal");
|
|
64
|
-
var import_react_presence = require("@radix-ui/react-presence");
|
|
65
|
-
var import_react_primitive = require("@radix-ui/react-primitive");
|
|
66
|
-
var import_react_slot = require("@radix-ui/react-slot");
|
|
67
|
-
var import_react_use_controllable_state = require("@radix-ui/react-use-controllable-state");
|
|
68
|
-
var import_aria_hidden = require("aria-hidden");
|
|
69
|
-
var import_react_remove_scroll = require("react-remove-scroll");
|
|
70
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
71
|
-
var POPOVER_NAME = "Popover";
|
|
72
|
-
var [createPopoverContext, createPopoverScope] = (0, import_react_context.createContextScope)(POPOVER_NAME, [
|
|
73
|
-
import_react_popper.createPopperScope
|
|
74
|
-
]);
|
|
75
|
-
var usePopperScope = (0, import_react_popper.createPopperScope)();
|
|
76
|
-
var [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);
|
|
77
|
-
var Popover = (props) => {
|
|
78
|
-
const {
|
|
79
|
-
__scopePopover,
|
|
80
|
-
children,
|
|
81
|
-
open: openProp,
|
|
82
|
-
defaultOpen,
|
|
83
|
-
onOpenChange,
|
|
84
|
-
modal = false
|
|
85
|
-
} = props;
|
|
86
|
-
const popperScope = usePopperScope(__scopePopover);
|
|
87
|
-
const triggerRef = React.useRef(null);
|
|
88
|
-
const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);
|
|
89
|
-
const [open, setOpen] = (0, import_react_use_controllable_state.useControllableState)({
|
|
90
|
-
prop: openProp,
|
|
91
|
-
defaultProp: defaultOpen ?? false,
|
|
92
|
-
onChange: onOpenChange,
|
|
93
|
-
caller: POPOVER_NAME
|
|
94
|
-
});
|
|
95
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
96
|
-
PopoverProvider,
|
|
97
|
-
{
|
|
98
|
-
scope: __scopePopover,
|
|
99
|
-
contentId: (0, import_react_id.useId)(),
|
|
100
|
-
triggerRef,
|
|
101
|
-
open,
|
|
102
|
-
onOpenChange: setOpen,
|
|
103
|
-
onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
104
|
-
hasCustomAnchor,
|
|
105
|
-
onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),
|
|
106
|
-
onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),
|
|
107
|
-
modal,
|
|
108
|
-
children
|
|
109
|
-
}
|
|
110
|
-
) });
|
|
111
|
-
};
|
|
112
|
-
Popover.displayName = POPOVER_NAME;
|
|
113
|
-
var ANCHOR_NAME = "PopoverAnchor";
|
|
114
|
-
var PopoverAnchor = React.forwardRef(
|
|
115
|
-
(props, forwardedRef) => {
|
|
116
|
-
const { __scopePopover, ...anchorProps } = props;
|
|
117
|
-
const context = usePopoverContext(ANCHOR_NAME, __scopePopover);
|
|
118
|
-
const popperScope = usePopperScope(__scopePopover);
|
|
119
|
-
const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
|
|
120
|
-
React.useEffect(() => {
|
|
121
|
-
onCustomAnchorAdd();
|
|
122
|
-
return () => onCustomAnchorRemove();
|
|
123
|
-
}, [onCustomAnchorAdd, onCustomAnchorRemove]);
|
|
124
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
|
125
|
-
}
|
|
126
|
-
);
|
|
127
|
-
PopoverAnchor.displayName = ANCHOR_NAME;
|
|
128
|
-
var TRIGGER_NAME = "PopoverTrigger";
|
|
129
|
-
var PopoverTrigger = React.forwardRef(
|
|
130
|
-
(props, forwardedRef) => {
|
|
131
|
-
const { __scopePopover, ...triggerProps } = props;
|
|
132
|
-
const context = usePopoverContext(TRIGGER_NAME, __scopePopover);
|
|
133
|
-
const popperScope = usePopperScope(__scopePopover);
|
|
134
|
-
const composedTriggerRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
|
135
|
-
const trigger = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
136
|
-
import_react_primitive.Primitive.button,
|
|
137
|
-
{
|
|
138
|
-
type: "button",
|
|
139
|
-
"aria-haspopup": "dialog",
|
|
140
|
-
"aria-expanded": context.open,
|
|
141
|
-
"aria-controls": context.contentId,
|
|
142
|
-
"data-state": getState(context.open),
|
|
143
|
-
...triggerProps,
|
|
144
|
-
ref: composedTriggerRef,
|
|
145
|
-
onClick: (0, import_primitive.composeEventHandlers)(props.onClick, context.onOpenToggle)
|
|
146
|
-
}
|
|
147
|
-
);
|
|
148
|
-
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });
|
|
149
|
-
}
|
|
150
|
-
);
|
|
151
|
-
PopoverTrigger.displayName = TRIGGER_NAME;
|
|
152
|
-
var PORTAL_NAME = "PopoverPortal";
|
|
153
|
-
var [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {
|
|
154
|
-
forceMount: void 0
|
|
155
|
-
});
|
|
156
|
-
var PopoverPortal = (props) => {
|
|
157
|
-
const { __scopePopover, forceMount, children, container } = props;
|
|
158
|
-
const context = usePopoverContext(PORTAL_NAME, __scopePopover);
|
|
159
|
-
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 }) }) });
|
|
160
|
-
};
|
|
161
|
-
PopoverPortal.displayName = PORTAL_NAME;
|
|
162
|
-
var CONTENT_NAME = "PopoverContent";
|
|
163
|
-
var PopoverContent = React.forwardRef(
|
|
164
|
-
(props, forwardedRef) => {
|
|
165
|
-
const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);
|
|
166
|
-
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
167
|
-
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
|
168
|
-
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 }) });
|
|
169
|
-
}
|
|
170
|
-
);
|
|
171
|
-
PopoverContent.displayName = CONTENT_NAME;
|
|
172
|
-
var Slot = (0, import_react_slot.createSlot)("PopoverContent.RemoveScroll");
|
|
173
|
-
var PopoverContentModal = React.forwardRef(
|
|
174
|
-
(props, forwardedRef) => {
|
|
175
|
-
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
|
176
|
-
const contentRef = React.useRef(null);
|
|
177
|
-
const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, contentRef);
|
|
178
|
-
const isRightClickOutsideRef = React.useRef(false);
|
|
179
|
-
React.useEffect(() => {
|
|
180
|
-
const content = contentRef.current;
|
|
181
|
-
if (content) return (0, import_aria_hidden.hideOthers)(content);
|
|
182
|
-
}, []);
|
|
183
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_remove_scroll.RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
184
|
-
PopoverContentImpl,
|
|
185
|
-
{
|
|
186
|
-
...props,
|
|
187
|
-
ref: composedRefs,
|
|
188
|
-
trapFocus: context.open,
|
|
189
|
-
disableOutsidePointerEvents: true,
|
|
190
|
-
onCloseAutoFocus: (0, import_primitive.composeEventHandlers)(props.onCloseAutoFocus, (event) => {
|
|
191
|
-
event.preventDefault();
|
|
192
|
-
if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();
|
|
193
|
-
}),
|
|
194
|
-
onPointerDownOutside: (0, import_primitive.composeEventHandlers)(
|
|
195
|
-
props.onPointerDownOutside,
|
|
196
|
-
(event) => {
|
|
197
|
-
const originalEvent = event.detail.originalEvent;
|
|
198
|
-
const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
|
|
199
|
-
const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
|
200
|
-
isRightClickOutsideRef.current = isRightClick;
|
|
201
|
-
},
|
|
202
|
-
{ checkForDefaultPrevented: false }
|
|
203
|
-
),
|
|
204
|
-
onFocusOutside: (0, import_primitive.composeEventHandlers)(
|
|
205
|
-
props.onFocusOutside,
|
|
206
|
-
(event) => event.preventDefault(),
|
|
207
|
-
{ checkForDefaultPrevented: false }
|
|
208
|
-
)
|
|
209
|
-
}
|
|
210
|
-
) });
|
|
211
|
-
}
|
|
212
|
-
);
|
|
213
|
-
var PopoverContentNonModal = React.forwardRef(
|
|
214
|
-
(props, forwardedRef) => {
|
|
215
|
-
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
|
216
|
-
const hasInteractedOutsideRef = React.useRef(false);
|
|
217
|
-
const hasPointerDownOutsideRef = React.useRef(false);
|
|
218
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
219
|
-
PopoverContentImpl,
|
|
220
|
-
{
|
|
221
|
-
...props,
|
|
222
|
-
ref: forwardedRef,
|
|
223
|
-
trapFocus: false,
|
|
224
|
-
disableOutsidePointerEvents: false,
|
|
225
|
-
onCloseAutoFocus: (event) => {
|
|
226
|
-
props.onCloseAutoFocus?.(event);
|
|
227
|
-
if (!event.defaultPrevented) {
|
|
228
|
-
if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
|
|
229
|
-
event.preventDefault();
|
|
230
|
-
}
|
|
231
|
-
hasInteractedOutsideRef.current = false;
|
|
232
|
-
hasPointerDownOutsideRef.current = false;
|
|
233
|
-
},
|
|
234
|
-
onInteractOutside: (event) => {
|
|
235
|
-
props.onInteractOutside?.(event);
|
|
236
|
-
if (!event.defaultPrevented) {
|
|
237
|
-
hasInteractedOutsideRef.current = true;
|
|
238
|
-
if (event.detail.originalEvent.type === "pointerdown") {
|
|
239
|
-
hasPointerDownOutsideRef.current = true;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
const target = event.target;
|
|
243
|
-
const targetIsTrigger = context.triggerRef.current?.contains(target);
|
|
244
|
-
if (targetIsTrigger) event.preventDefault();
|
|
245
|
-
if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
|
|
246
|
-
event.preventDefault();
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
);
|
|
253
|
-
var PopoverContentImpl = React.forwardRef(
|
|
254
|
-
(props, forwardedRef) => {
|
|
255
|
-
const {
|
|
256
|
-
__scopePopover,
|
|
257
|
-
trapFocus,
|
|
258
|
-
onOpenAutoFocus,
|
|
259
|
-
onCloseAutoFocus,
|
|
260
|
-
disableOutsidePointerEvents,
|
|
261
|
-
onEscapeKeyDown,
|
|
262
|
-
onPointerDownOutside,
|
|
263
|
-
onFocusOutside,
|
|
264
|
-
onInteractOutside,
|
|
265
|
-
...contentProps
|
|
266
|
-
} = props;
|
|
267
|
-
const context = usePopoverContext(CONTENT_NAME, __scopePopover);
|
|
268
|
-
const popperScope = usePopperScope(__scopePopover);
|
|
269
|
-
(0, import_react_focus_guards.useFocusGuards)();
|
|
270
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
271
|
-
import_react_focus_scope.FocusScope,
|
|
272
|
-
{
|
|
273
|
-
asChild: true,
|
|
274
|
-
loop: true,
|
|
275
|
-
trapped: trapFocus,
|
|
276
|
-
onMountAutoFocus: onOpenAutoFocus,
|
|
277
|
-
onUnmountAutoFocus: onCloseAutoFocus,
|
|
278
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
279
|
-
import_react_dismissable_layer.DismissableLayer,
|
|
280
|
-
{
|
|
281
|
-
asChild: true,
|
|
282
|
-
disableOutsidePointerEvents,
|
|
283
|
-
onInteractOutside,
|
|
284
|
-
onEscapeKeyDown,
|
|
285
|
-
onPointerDownOutside,
|
|
286
|
-
onFocusOutside,
|
|
287
|
-
onDismiss: () => context.onOpenChange(false),
|
|
288
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
289
|
-
PopperPrimitive.Content,
|
|
290
|
-
{
|
|
291
|
-
"data-state": getState(context.open),
|
|
292
|
-
role: "dialog",
|
|
293
|
-
id: context.contentId,
|
|
294
|
-
...popperScope,
|
|
295
|
-
...contentProps,
|
|
296
|
-
ref: forwardedRef,
|
|
297
|
-
style: {
|
|
298
|
-
...contentProps.style,
|
|
299
|
-
// re-namespace exposed content custom properties
|
|
300
|
-
...{
|
|
301
|
-
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
302
|
-
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
303
|
-
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
304
|
-
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
305
|
-
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
)
|
|
310
|
-
}
|
|
311
|
-
)
|
|
312
|
-
}
|
|
313
|
-
);
|
|
314
|
-
}
|
|
315
|
-
);
|
|
316
|
-
var CLOSE_NAME = "PopoverClose";
|
|
317
|
-
var PopoverClose = React.forwardRef(
|
|
318
|
-
(props, forwardedRef) => {
|
|
319
|
-
const { __scopePopover, ...closeProps } = props;
|
|
320
|
-
const context = usePopoverContext(CLOSE_NAME, __scopePopover);
|
|
321
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
322
|
-
import_react_primitive.Primitive.button,
|
|
323
|
-
{
|
|
324
|
-
type: "button",
|
|
325
|
-
...closeProps,
|
|
326
|
-
ref: forwardedRef,
|
|
327
|
-
onClick: (0, import_primitive.composeEventHandlers)(props.onClick, () => context.onOpenChange(false))
|
|
328
|
-
}
|
|
329
|
-
);
|
|
330
|
-
}
|
|
331
|
-
);
|
|
332
|
-
PopoverClose.displayName = CLOSE_NAME;
|
|
333
|
-
var ARROW_NAME = "PopoverArrow";
|
|
334
|
-
var PopoverArrow = React.forwardRef(
|
|
335
|
-
(props, forwardedRef) => {
|
|
336
|
-
const { __scopePopover, ...arrowProps } = props;
|
|
337
|
-
const popperScope = usePopperScope(__scopePopover);
|
|
338
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
339
|
-
}
|
|
340
|
-
);
|
|
341
|
-
PopoverArrow.displayName = ARROW_NAME;
|
|
342
|
-
function getState(open) {
|
|
343
|
-
return open ? "open" : "closed";
|
|
344
|
-
}
|
|
345
|
-
var Root2 = Popover;
|
|
346
|
-
var Anchor2 = PopoverAnchor;
|
|
347
|
-
var Trigger = PopoverTrigger;
|
|
348
|
-
var Portal = PopoverPortal;
|
|
349
|
-
var Content2 = PopoverContent;
|
|
350
|
-
var Close = PopoverClose;
|
|
351
|
-
var Arrow2 = PopoverArrow;
|
|
352
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/index.ts", "../src/popover.tsx"],
|
|
4
|
-
"sourcesContent": ["'use client';\nexport {\n createPopoverScope,\n //\n Popover,\n PopoverAnchor,\n PopoverTrigger,\n PopoverPortal,\n PopoverContent,\n PopoverClose,\n PopoverArrow,\n //\n Root,\n Anchor,\n Trigger,\n Portal,\n Content,\n Close,\n Arrow,\n} from './popover';\nexport type {\n PopoverProps,\n PopoverAnchorProps,\n PopoverTriggerProps,\n PopoverPortalProps,\n PopoverContentProps,\n PopoverCloseProps,\n PopoverArrowProps,\n} from './popover';\n", "import * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { createContextScope } from '@radix-ui/react-context';\nimport { DismissableLayer } from '@radix-ui/react-dismissable-layer';\nimport { useFocusGuards } from '@radix-ui/react-focus-guards';\nimport { FocusScope } from '@radix-ui/react-focus-scope';\nimport { useId } from '@radix-ui/react-id';\nimport * as PopperPrimitive from '@radix-ui/react-popper';\nimport { createPopperScope } from '@radix-ui/react-popper';\nimport { Portal as PortalPrimitive } from '@radix-ui/react-portal';\nimport { Presence } from '@radix-ui/react-presence';\nimport { Primitive } from '@radix-ui/react-primitive';\nimport { createSlot } from '@radix-ui/react-slot';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { hideOthers } from 'aria-hidden';\nimport { RemoveScroll } from 'react-remove-scroll';\n\nimport type { Scope } from '@radix-ui/react-context';\n\n/* -------------------------------------------------------------------------------------------------\n * Popover\n * -----------------------------------------------------------------------------------------------*/\n\nconst POPOVER_NAME = 'Popover';\n\ntype ScopedProps<P> = P & { __scopePopover?: Scope };\nconst [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [\n createPopperScope,\n]);\nconst usePopperScope = createPopperScope();\n\ntype PopoverContextValue = {\n triggerRef: React.RefObject<HTMLButtonElement | null>;\n contentId: string;\n open: boolean;\n onOpenChange(open: boolean): void;\n onOpenToggle(): void;\n hasCustomAnchor: boolean;\n onCustomAnchorAdd(): void;\n onCustomAnchorRemove(): void;\n modal: boolean;\n};\n\nconst [PopoverProvider, usePopoverContext] =\n createPopoverContext<PopoverContextValue>(POPOVER_NAME);\n\ninterface PopoverProps {\n children?: React.ReactNode;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n modal?: boolean;\n}\n\nconst Popover: React.FC<PopoverProps> = (props: ScopedProps<PopoverProps>) => {\n const {\n __scopePopover,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = false,\n } = props;\n const popperScope = usePopperScope(__scopePopover);\n const triggerRef = React.useRef<HTMLButtonElement>(null);\n const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: POPOVER_NAME,\n });\n\n return (\n <PopperPrimitive.Root {...popperScope}>\n <PopoverProvider\n scope={__scopePopover}\n contentId={useId()}\n triggerRef={triggerRef}\n open={open}\n onOpenChange={setOpen}\n onOpenToggle={React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen])}\n hasCustomAnchor={hasCustomAnchor}\n onCustomAnchorAdd={React.useCallback(() => setHasCustomAnchor(true), [])}\n onCustomAnchorRemove={React.useCallback(() => setHasCustomAnchor(false), [])}\n modal={modal}\n >\n {children}\n </PopoverProvider>\n </PopperPrimitive.Root>\n );\n};\n\nPopover.displayName = POPOVER_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverAnchor\n * -----------------------------------------------------------------------------------------------*/\n\nconst ANCHOR_NAME = 'PopoverAnchor';\n\ntype PopoverAnchorElement = React.ComponentRef<typeof PopperPrimitive.Anchor>;\ntype PopperAnchorProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Anchor>;\ninterface PopoverAnchorProps extends PopperAnchorProps {}\n\nconst PopoverAnchor = React.forwardRef<PopoverAnchorElement, PopoverAnchorProps>(\n (props: ScopedProps<PopoverAnchorProps>, forwardedRef) => {\n const { __scopePopover, ...anchorProps } = props;\n const context = usePopoverContext(ANCHOR_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const { onCustomAnchorAdd, onCustomAnchorRemove } = context;\n\n React.useEffect(() => {\n onCustomAnchorAdd();\n return () => onCustomAnchorRemove();\n }, [onCustomAnchorAdd, onCustomAnchorRemove]);\n\n return <PopperPrimitive.Anchor {...popperScope} {...anchorProps} ref={forwardedRef} />;\n }\n);\n\nPopoverAnchor.displayName = ANCHOR_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'PopoverTrigger';\n\ntype PopoverTriggerElement = React.ComponentRef<typeof Primitive.button>;\ntype PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;\ninterface PopoverTriggerProps extends PrimitiveButtonProps {}\n\nconst PopoverTrigger = React.forwardRef<PopoverTriggerElement, PopoverTriggerProps>(\n (props: ScopedProps<PopoverTriggerProps>, forwardedRef) => {\n const { __scopePopover, ...triggerProps } = props;\n const context = usePopoverContext(TRIGGER_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n\n const trigger = (\n <Primitive.button\n type=\"button\"\n aria-haspopup=\"dialog\"\n aria-expanded={context.open}\n aria-controls={context.contentId}\n data-state={getState(context.open)}\n {...triggerProps}\n ref={composedTriggerRef}\n onClick={composeEventHandlers(props.onClick, context.onOpenToggle)}\n />\n );\n\n return context.hasCustomAnchor ? (\n trigger\n ) : (\n <PopperPrimitive.Anchor asChild {...popperScope}>\n {trigger}\n </PopperPrimitive.Anchor>\n );\n }\n);\n\nPopoverTrigger.displayName = TRIGGER_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverPortal\n * -----------------------------------------------------------------------------------------------*/\n\nconst PORTAL_NAME = 'PopoverPortal';\n\ntype PortalContextValue = { forceMount?: true };\nconst [PortalProvider, usePortalContext] = createPopoverContext<PortalContextValue>(PORTAL_NAME, {\n forceMount: undefined,\n});\n\ntype PortalProps = React.ComponentPropsWithoutRef<typeof PortalPrimitive>;\ninterface PopoverPortalProps {\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 PopoverPortal: React.FC<PopoverPortalProps> = (props: ScopedProps<PopoverPortalProps>) => {\n const { __scopePopover, forceMount, children, container } = props;\n const context = usePopoverContext(PORTAL_NAME, __scopePopover);\n return (\n <PortalProvider scope={__scopePopover} forceMount={forceMount}>\n <Presence present={forceMount || context.open}>\n <PortalPrimitive asChild container={container}>\n {children}\n </PortalPrimitive>\n </Presence>\n </PortalProvider>\n );\n};\n\nPopoverPortal.displayName = PORTAL_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverContent\n * -----------------------------------------------------------------------------------------------*/\n\nconst CONTENT_NAME = 'PopoverContent';\n\ninterface PopoverContentProps extends PopoverContentTypeProps {\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 PopoverContent = React.forwardRef<PopoverContentTypeElement, PopoverContentProps>(\n (props: ScopedProps<PopoverContentProps>, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n return (\n <Presence present={forceMount || context.open}>\n {context.modal ? (\n <PopoverContentModal {...contentProps} ref={forwardedRef} />\n ) : (\n <PopoverContentNonModal {...contentProps} ref={forwardedRef} />\n )}\n </Presence>\n );\n }\n);\n\nPopoverContent.displayName = CONTENT_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst Slot = createSlot('PopoverContent.RemoveScroll');\n\ntype PopoverContentTypeElement = PopoverContentImplElement;\ninterface PopoverContentTypeProps\n extends Omit<PopoverContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {}\n\nconst PopoverContentModal = React.forwardRef<PopoverContentTypeElement, PopoverContentTypeProps>(\n (props: ScopedProps<PopoverContentTypeProps>, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const contentRef = React.useRef<HTMLDivElement>(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const isRightClickOutsideRef = React.useRef(false);\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 <RemoveScroll as={Slot} allowPinchZoom>\n <PopoverContentImpl\n {...props}\n ref={composedRefs}\n // we make sure we're not trapping once it's been closed\n // (closed !== unmounted when animating out)\n trapFocus={context.open}\n disableOutsidePointerEvents\n onCloseAutoFocus={composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();\n })}\n onPointerDownOutside={composeEventHandlers(\n props.onPointerDownOutside,\n (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 isRightClickOutsideRef.current = isRightClick;\n },\n { checkForDefaultPrevented: false }\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(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n )}\n />\n </RemoveScroll>\n );\n }\n);\n\nconst PopoverContentNonModal = React.forwardRef<PopoverContentTypeElement, PopoverContentTypeProps>(\n (props: ScopedProps<PopoverContentTypeProps>, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n\n return (\n <PopoverContentImpl\n {...props}\n ref={forwardedRef}\n trapFocus={false}\n disableOutsidePointerEvents={false}\n onCloseAutoFocus={(event) => {\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 PopoverContentImplElement = React.ComponentRef<typeof PopperPrimitive.Content>;\ntype FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>;\ntype DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;\ntype PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;\ninterface PopoverContentImplProps\n extends Omit<PopperContentProps, 'onPlaced'>,\n Omit<DismissableLayerProps, 'onDismiss'> {\n /**\n * Whether focus should be trapped within the `Popover`\n * (default: 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 PopoverContentImpl = React.forwardRef<PopoverContentImplElement, PopoverContentImplProps>(\n (props: ScopedProps<PopoverContentImplProps>, forwardedRef) => {\n const {\n __scopePopover,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n ...contentProps\n } = props;\n const context = usePopoverContext(CONTENT_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n\n // Make sure the whole tree has focus guards as our `Popover` may be\n // the last element in the DOM (because of the `Portal`)\n useFocusGuards();\n\n return (\n <FocusScope\n asChild\n loop\n trapped={trapFocus}\n onMountAutoFocus={onOpenAutoFocus}\n onUnmountAutoFocus={onCloseAutoFocus}\n >\n <DismissableLayer\n asChild\n disableOutsidePointerEvents={disableOutsidePointerEvents}\n onInteractOutside={onInteractOutside}\n onEscapeKeyDown={onEscapeKeyDown}\n onPointerDownOutside={onPointerDownOutside}\n onFocusOutside={onFocusOutside}\n onDismiss={() => context.onOpenChange(false)}\n >\n <PopperPrimitive.Content\n data-state={getState(context.open)}\n role=\"dialog\"\n id={context.contentId}\n {...popperScope}\n {...contentProps}\n ref={forwardedRef}\n style={{\n ...contentProps.style,\n // re-namespace exposed content custom properties\n ...{\n '--radix-popover-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-popover-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-popover-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-popover-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-popover-trigger-height': 'var(--radix-popper-anchor-height)',\n },\n }}\n />\n </DismissableLayer>\n </FocusScope>\n );\n }\n);\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverClose\n * -----------------------------------------------------------------------------------------------*/\n\nconst CLOSE_NAME = 'PopoverClose';\n\ntype PopoverCloseElement = React.ComponentRef<typeof Primitive.button>;\ninterface PopoverCloseProps extends PrimitiveButtonProps {}\n\nconst PopoverClose = React.forwardRef<PopoverCloseElement, PopoverCloseProps>(\n (props: ScopedProps<PopoverCloseProps>, forwardedRef) => {\n const { __scopePopover, ...closeProps } = props;\n const context = usePopoverContext(CLOSE_NAME, __scopePopover);\n return (\n <Primitive.button\n type=\"button\"\n {...closeProps}\n ref={forwardedRef}\n onClick={composeEventHandlers(props.onClick, () => context.onOpenChange(false))}\n />\n );\n }\n);\n\nPopoverClose.displayName = CLOSE_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverArrow\n * -----------------------------------------------------------------------------------------------*/\n\nconst ARROW_NAME = 'PopoverArrow';\n\ntype PopoverArrowElement = React.ComponentRef<typeof PopperPrimitive.Arrow>;\ntype PopperArrowProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;\ninterface PopoverArrowProps extends PopperArrowProps {}\n\nconst PopoverArrow = React.forwardRef<PopoverArrowElement, PopoverArrowProps>(\n (props: ScopedProps<PopoverArrowProps>, forwardedRef) => {\n const { __scopePopover, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopePopover);\n return <PopperPrimitive.Arrow {...popperScope} {...arrowProps} ref={forwardedRef} />;\n }\n);\n\nPopoverArrow.displayName = ARROW_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction getState(open: boolean) {\n return open ? 'open' : 'closed';\n}\n\nconst Root = Popover;\nconst Anchor = PopoverAnchor;\nconst Trigger = PopoverTrigger;\nconst Portal = PopoverPortal;\nconst Content = PopoverContent;\nconst Close = PopoverClose;\nconst Arrow = PopoverArrow;\n\nexport {\n createPopoverScope,\n //\n Popover,\n PopoverAnchor,\n PopoverTrigger,\n PopoverPortal,\n PopoverContent,\n PopoverClose,\n PopoverArrow,\n //\n Root,\n Anchor,\n Trigger,\n Portal,\n Content,\n Close,\n Arrow,\n};\nexport type {\n PopoverProps,\n PopoverAnchorProps,\n PopoverTriggerProps,\n PopoverPortalProps,\n PopoverContentProps,\n PopoverCloseProps,\n Popover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