@uipath/apollo-wind 2.53.1 → 2.53.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/custom/global-header.cjs +3 -0
- package/dist/components/custom/global-header.js +3 -0
- package/dist/components/ui/context-menu.cjs +7 -2
- package/dist/components/ui/context-menu.d.ts +4 -1
- package/dist/components/ui/context-menu.js +7 -2
- package/dist/components/ui/drawer.cjs +7 -2
- package/dist/components/ui/drawer.d.ts +4 -1
- package/dist/components/ui/drawer.js +7 -2
- package/dist/components/ui/index.cjs +14 -14
- package/dist/components/ui/portal-container.d.ts +9 -8
- package/dist/components/ui/tooltip.cjs +8 -2
- package/dist/components/ui/tooltip.d.ts +8 -1
- package/dist/components/ui/tooltip.js +8 -2
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ const external_react_namespaceObject = require("react");
|
|
|
33
33
|
const avatar_cjs_namespaceObject = require("../ui/avatar.cjs");
|
|
34
34
|
const dropdown_menu_cjs_namespaceObject = require("../ui/dropdown-menu.cjs");
|
|
35
35
|
const popover_cjs_namespaceObject = require("../ui/popover.cjs");
|
|
36
|
+
const portal_container_cjs_namespaceObject = require("../ui/portal-container.cjs");
|
|
36
37
|
const sheet_cjs_namespaceObject = require("../ui/sheet.cjs");
|
|
37
38
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
38
39
|
function HeaderIconButton({ icon, label, onClick, disabled }) {
|
|
@@ -334,6 +335,7 @@ function AvatarDropdown({ themeClass }) {
|
|
|
334
335
|
function MaestroHeader({ className, theme = 'dark', title = 'Maestro', tenantName = 'Select', menuContent, onSearchClick }) {
|
|
335
336
|
const themeClass = theme;
|
|
336
337
|
const [menuOpen, setMenuOpen] = external_react_namespaceObject.useState(false);
|
|
338
|
+
const resolvedPortalContainer = (0, portal_container_cjs_namespaceObject.useResolvedPortalContainer)();
|
|
337
339
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
338
340
|
children: [
|
|
339
341
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("header", {
|
|
@@ -398,6 +400,7 @@ function MaestroHeader({ className, theme = 'dark', title = 'Maestro', tenantNam
|
|
|
398
400
|
open: menuOpen,
|
|
399
401
|
onOpenChange: setMenuOpen,
|
|
400
402
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(sheet_cjs_namespaceObject.SheetPortal, {
|
|
403
|
+
container: resolvedPortalContainer,
|
|
401
404
|
children: [
|
|
402
405
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(sheet_cjs_namespaceObject.SheetOverlay, {
|
|
403
406
|
className: "top-12"
|
|
@@ -5,6 +5,7 @@ import { useState } from "react";
|
|
|
5
5
|
import { Avatar, AvatarFallback } from "../ui/avatar.js";
|
|
6
6
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from "../ui/dropdown-menu.js";
|
|
7
7
|
import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover.js";
|
|
8
|
+
import { useResolvedPortalContainer } from "../ui/portal-container.js";
|
|
8
9
|
import { Sheet, SheetOverlay, SheetPortal, SheetTitle } from "../ui/sheet.js";
|
|
9
10
|
import { cn } from "../../lib/index.js";
|
|
10
11
|
function HeaderIconButton({ icon, label, onClick, disabled }) {
|
|
@@ -306,6 +307,7 @@ function AvatarDropdown({ themeClass }) {
|
|
|
306
307
|
function MaestroHeader({ className, theme = 'dark', title = 'Maestro', tenantName = 'Select', menuContent, onSearchClick }) {
|
|
307
308
|
const themeClass = theme;
|
|
308
309
|
const [menuOpen, setMenuOpen] = useState(false);
|
|
310
|
+
const resolvedPortalContainer = useResolvedPortalContainer();
|
|
309
311
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
310
312
|
children: [
|
|
311
313
|
/*#__PURE__*/ jsxs("header", {
|
|
@@ -370,6 +372,7 @@ function MaestroHeader({ className, theme = 'dark', title = 'Maestro', tenantNam
|
|
|
370
372
|
open: menuOpen,
|
|
371
373
|
onOpenChange: setMenuOpen,
|
|
372
374
|
children: /*#__PURE__*/ jsxs(SheetPortal, {
|
|
375
|
+
container: resolvedPortalContainer,
|
|
373
376
|
children: [
|
|
374
377
|
/*#__PURE__*/ jsx(SheetOverlay, {
|
|
375
378
|
className: "top-12"
|
|
@@ -45,6 +45,7 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
45
45
|
const react_context_menu_namespaceObject = require("@radix-ui/react-context-menu");
|
|
46
46
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
47
47
|
const external_react_namespaceObject = require("react");
|
|
48
|
+
const external_portal_container_cjs_namespaceObject = require("./portal-container.cjs");
|
|
48
49
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
49
50
|
const ContextMenu = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Root, {
|
|
50
51
|
"data-slot": "context-menu",
|
|
@@ -99,14 +100,18 @@ const ContextMenuSubContent = /*#__PURE__*/ external_react_namespaceObject.forwa
|
|
|
99
100
|
...props
|
|
100
101
|
}));
|
|
101
102
|
ContextMenuSubContent.displayName = react_context_menu_namespaceObject.SubContent.displayName;
|
|
102
|
-
const ContextMenuContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)
|
|
103
|
+
const ContextMenuContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, container, ...props }, ref)=>{
|
|
104
|
+
const resolvedContainer = (0, external_portal_container_cjs_namespaceObject.useResolvedPortalContainer)(container);
|
|
105
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ContextMenuPortal, {
|
|
106
|
+
container: resolvedContainer,
|
|
103
107
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Content, {
|
|
104
108
|
ref: ref,
|
|
105
109
|
"data-slot": "context-menu-content",
|
|
106
110
|
className: (0, index_cjs_namespaceObject.cn)('z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md future:rounded-lg animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]', className),
|
|
107
111
|
...props
|
|
108
112
|
})
|
|
109
|
-
})
|
|
113
|
+
});
|
|
114
|
+
});
|
|
110
115
|
ContextMenuContent.displayName = react_context_menu_namespaceObject.Content.displayName;
|
|
111
116
|
const ContextMenuItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_context_menu_namespaceObject.Item, {
|
|
112
117
|
ref: ref,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { type PortalContainerOverride } from './portal-container';
|
|
3
4
|
declare const ContextMenu: {
|
|
4
5
|
(props: React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
displayName: string;
|
|
@@ -19,7 +20,9 @@ declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<Contex
|
|
|
19
20
|
inset?: boolean;
|
|
20
21
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
21
22
|
declare const ContextMenuSubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
-
declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> &
|
|
23
|
+
declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
24
|
+
container?: PortalContainerOverride;
|
|
25
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
23
26
|
declare const ContextMenuItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
24
27
|
inset?: boolean;
|
|
25
28
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { CheckboxItem, Content, Group, Item, ItemIndicator, Label, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger } from "@radix-ui/react-context-menu";
|
|
4
4
|
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
|
+
import { useResolvedPortalContainer } from "./portal-container.js";
|
|
6
7
|
import { cn } from "../../lib/index.js";
|
|
7
8
|
const ContextMenu = (props)=>/*#__PURE__*/ jsx(Root, {
|
|
8
9
|
"data-slot": "context-menu",
|
|
@@ -57,14 +58,18 @@ const ContextMenuSubContent = /*#__PURE__*/ forwardRef(({ className, ...props },
|
|
|
57
58
|
...props
|
|
58
59
|
}));
|
|
59
60
|
ContextMenuSubContent.displayName = SubContent.displayName;
|
|
60
|
-
const ContextMenuContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)
|
|
61
|
+
const ContextMenuContent = /*#__PURE__*/ forwardRef(({ className, container, ...props }, ref)=>{
|
|
62
|
+
const resolvedContainer = useResolvedPortalContainer(container);
|
|
63
|
+
return /*#__PURE__*/ jsx(ContextMenuPortal, {
|
|
64
|
+
container: resolvedContainer,
|
|
61
65
|
children: /*#__PURE__*/ jsx(Content, {
|
|
62
66
|
ref: ref,
|
|
63
67
|
"data-slot": "context-menu-content",
|
|
64
68
|
className: cn('z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md future:rounded-lg animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]', className),
|
|
65
69
|
...props
|
|
66
70
|
})
|
|
67
|
-
})
|
|
71
|
+
});
|
|
72
|
+
});
|
|
68
73
|
ContextMenuContent.displayName = Content.displayName;
|
|
69
74
|
const ContextMenuItem = /*#__PURE__*/ forwardRef(({ className, inset, ...props }, ref)=>/*#__PURE__*/ jsx(Item, {
|
|
70
75
|
ref: ref,
|
|
@@ -39,6 +39,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
39
39
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
40
|
const external_react_namespaceObject = require("react");
|
|
41
41
|
const external_vaul_namespaceObject = require("vaul");
|
|
42
|
+
const external_portal_container_cjs_namespaceObject = require("./portal-container.cjs");
|
|
42
43
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
43
44
|
const Drawer = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Root, {
|
|
44
45
|
"data-slot": "drawer",
|
|
@@ -69,7 +70,10 @@ const DrawerOverlay = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({
|
|
|
69
70
|
...props
|
|
70
71
|
}));
|
|
71
72
|
DrawerOverlay.displayName = external_vaul_namespaceObject.Drawer.Overlay.displayName;
|
|
72
|
-
const DrawerContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, ...props }, ref)
|
|
73
|
+
const DrawerContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, children, container, ...props }, ref)=>{
|
|
74
|
+
const resolvedContainer = (0, external_portal_container_cjs_namespaceObject.useResolvedPortalContainer)(container);
|
|
75
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(DrawerPortal, {
|
|
76
|
+
container: resolvedContainer,
|
|
73
77
|
children: [
|
|
74
78
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DrawerOverlay, {}),
|
|
75
79
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Content, {
|
|
@@ -85,7 +89,8 @@ const DrawerContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({
|
|
|
85
89
|
]
|
|
86
90
|
})
|
|
87
91
|
]
|
|
88
|
-
})
|
|
92
|
+
});
|
|
93
|
+
});
|
|
89
94
|
DrawerContent.displayName = 'DrawerContent';
|
|
90
95
|
const DrawerHeader = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
91
96
|
"data-slot": "drawer-header",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
3
|
+
import { type PortalContainerOverride } from './portal-container';
|
|
3
4
|
declare const Drawer: {
|
|
4
5
|
(props: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
displayName: string;
|
|
@@ -11,7 +12,9 @@ declare const DrawerPortal: {
|
|
|
11
12
|
};
|
|
12
13
|
declare const DrawerClose: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
13
14
|
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> &
|
|
15
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
16
|
+
container?: PortalContainerOverride;
|
|
17
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
15
18
|
declare const DrawerHeader: {
|
|
16
19
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
17
20
|
displayName: string;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { Drawer } from "vaul";
|
|
5
|
+
import { useResolvedPortalContainer } from "./portal-container.js";
|
|
5
6
|
import { cn } from "../../lib/index.js";
|
|
6
7
|
const drawer_Drawer = (props)=>/*#__PURE__*/ jsx(Drawer.Root, {
|
|
7
8
|
"data-slot": "drawer",
|
|
@@ -32,7 +33,10 @@ const DrawerOverlay = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/
|
|
|
32
33
|
...props
|
|
33
34
|
}));
|
|
34
35
|
DrawerOverlay.displayName = Drawer.Overlay.displayName;
|
|
35
|
-
const DrawerContent = /*#__PURE__*/ forwardRef(({ className, children, ...props }, ref)
|
|
36
|
+
const DrawerContent = /*#__PURE__*/ forwardRef(({ className, children, container, ...props }, ref)=>{
|
|
37
|
+
const resolvedContainer = useResolvedPortalContainer(container);
|
|
38
|
+
return /*#__PURE__*/ jsxs(DrawerPortal, {
|
|
39
|
+
container: resolvedContainer,
|
|
36
40
|
children: [
|
|
37
41
|
/*#__PURE__*/ jsx(DrawerOverlay, {}),
|
|
38
42
|
/*#__PURE__*/ jsxs(Drawer.Content, {
|
|
@@ -48,7 +52,8 @@ const DrawerContent = /*#__PURE__*/ forwardRef(({ className, children, ...props
|
|
|
48
52
|
]
|
|
49
53
|
})
|
|
50
54
|
]
|
|
51
|
-
})
|
|
55
|
+
});
|
|
56
|
+
});
|
|
52
57
|
DrawerContent.displayName = 'DrawerContent';
|
|
53
58
|
const DrawerHeader = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
54
59
|
"data-slot": "drawer-header",
|
|
@@ -30,7 +30,7 @@ var __webpack_modules__ = {
|
|
|
30
30
|
"@/components/ui/calendar" (module) {
|
|
31
31
|
module.exports = require("./calendar.cjs");
|
|
32
32
|
},
|
|
33
|
-
"
|
|
33
|
+
"@/components/ui/card" (module) {
|
|
34
34
|
module.exports = require("./card.cjs");
|
|
35
35
|
},
|
|
36
36
|
"./chart" (module) {
|
|
@@ -39,13 +39,13 @@ var __webpack_modules__ = {
|
|
|
39
39
|
"@/components/ui/checkbox" (module) {
|
|
40
40
|
module.exports = require("./checkbox.cjs");
|
|
41
41
|
},
|
|
42
|
-
"
|
|
42
|
+
"@/components/ui/collapsible" (module) {
|
|
43
43
|
module.exports = require("./collapsible.cjs");
|
|
44
44
|
},
|
|
45
45
|
"./combobox" (module) {
|
|
46
46
|
module.exports = require("./combobox.cjs");
|
|
47
47
|
},
|
|
48
|
-
"
|
|
48
|
+
"@/components/ui/command" (module) {
|
|
49
49
|
module.exports = require("./command.cjs");
|
|
50
50
|
},
|
|
51
51
|
"@/components/ui/context-menu" (module) {
|
|
@@ -60,7 +60,7 @@ var __webpack_modules__ = {
|
|
|
60
60
|
"./datetime-picker" (module) {
|
|
61
61
|
module.exports = require("./datetime-picker.cjs");
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"@/components/ui/dialog" (module) {
|
|
64
64
|
module.exports = require("./dialog.cjs");
|
|
65
65
|
},
|
|
66
66
|
"./drawer" (module) {
|
|
@@ -87,7 +87,7 @@ var __webpack_modules__ = {
|
|
|
87
87
|
"@/components/ui/info-tooltip" (module) {
|
|
88
88
|
module.exports = require("./info-tooltip.cjs");
|
|
89
89
|
},
|
|
90
|
-
"
|
|
90
|
+
"@/components/ui/input-group" (module) {
|
|
91
91
|
module.exports = require("./input-group.cjs");
|
|
92
92
|
},
|
|
93
93
|
"@/components/ui/input" (module) {
|
|
@@ -168,7 +168,7 @@ var __webpack_modules__ = {
|
|
|
168
168
|
"./tabs" (module) {
|
|
169
169
|
module.exports = require("./tabs.cjs");
|
|
170
170
|
},
|
|
171
|
-
"
|
|
171
|
+
"@/components/ui/textarea" (module) {
|
|
172
172
|
module.exports = require("./textarea.cjs");
|
|
173
173
|
},
|
|
174
174
|
"./toggle-group" (module) {
|
|
@@ -177,7 +177,7 @@ var __webpack_modules__ = {
|
|
|
177
177
|
"@/components/ui/toggle" (module) {
|
|
178
178
|
module.exports = require("./toggle.cjs");
|
|
179
179
|
},
|
|
180
|
-
"
|
|
180
|
+
"@/components/ui/tooltip" (module) {
|
|
181
181
|
module.exports = require("./tooltip.cjs");
|
|
182
182
|
},
|
|
183
183
|
"./tree-view" (module) {
|
|
@@ -303,7 +303,7 @@ var __webpack_exports__ = {};
|
|
|
303
303
|
"default"
|
|
304
304
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_calendar__rspack_import_9[__rspack_import_key];
|
|
305
305
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
306
|
-
var _card__rspack_import_10 = __webpack_require__("
|
|
306
|
+
var _card__rspack_import_10 = __webpack_require__("@/components/ui/card");
|
|
307
307
|
var __rspack_reexport = {};
|
|
308
308
|
for(const __rspack_import_key in _card__rspack_import_10)if ([
|
|
309
309
|
"TreeView",
|
|
@@ -324,7 +324,7 @@ var __webpack_exports__ = {};
|
|
|
324
324
|
"default"
|
|
325
325
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_checkbox__rspack_import_12[__rspack_import_key];
|
|
326
326
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
327
|
-
var _collapsible__rspack_import_13 = __webpack_require__("
|
|
327
|
+
var _collapsible__rspack_import_13 = __webpack_require__("@/components/ui/collapsible");
|
|
328
328
|
var __rspack_reexport = {};
|
|
329
329
|
for(const __rspack_import_key in _collapsible__rspack_import_13)if ([
|
|
330
330
|
"TreeView",
|
|
@@ -338,7 +338,7 @@ var __webpack_exports__ = {};
|
|
|
338
338
|
"default"
|
|
339
339
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_combobox__rspack_import_14[__rspack_import_key];
|
|
340
340
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
341
|
-
var _command__rspack_import_15 = __webpack_require__("
|
|
341
|
+
var _command__rspack_import_15 = __webpack_require__("@/components/ui/command");
|
|
342
342
|
var __rspack_reexport = {};
|
|
343
343
|
for(const __rspack_import_key in _command__rspack_import_15)if ([
|
|
344
344
|
"TreeView",
|
|
@@ -373,7 +373,7 @@ var __webpack_exports__ = {};
|
|
|
373
373
|
"default"
|
|
374
374
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_datetime_picker__rspack_import_19[__rspack_import_key];
|
|
375
375
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
376
|
-
var _dialog__rspack_import_20 = __webpack_require__("
|
|
376
|
+
var _dialog__rspack_import_20 = __webpack_require__("@/components/ui/dialog");
|
|
377
377
|
var __rspack_reexport = {};
|
|
378
378
|
for(const __rspack_import_key in _dialog__rspack_import_20)if ([
|
|
379
379
|
"TreeView",
|
|
@@ -443,7 +443,7 @@ var __webpack_exports__ = {};
|
|
|
443
443
|
"default"
|
|
444
444
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input__rspack_import_29[__rspack_import_key];
|
|
445
445
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
446
|
-
var _input_group__rspack_import_30 = __webpack_require__("
|
|
446
|
+
var _input_group__rspack_import_30 = __webpack_require__("@/components/ui/input-group");
|
|
447
447
|
var __rspack_reexport = {};
|
|
448
448
|
for(const __rspack_import_key in _input_group__rspack_import_30)if ([
|
|
449
449
|
"TreeView",
|
|
@@ -625,7 +625,7 @@ var __webpack_exports__ = {};
|
|
|
625
625
|
"default"
|
|
626
626
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tabs__rspack_import_55[__rspack_import_key];
|
|
627
627
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
628
|
-
var _textarea__rspack_import_56 = __webpack_require__("
|
|
628
|
+
var _textarea__rspack_import_56 = __webpack_require__("@/components/ui/textarea");
|
|
629
629
|
var __rspack_reexport = {};
|
|
630
630
|
for(const __rspack_import_key in _textarea__rspack_import_56)if ([
|
|
631
631
|
"TreeView",
|
|
@@ -646,7 +646,7 @@ var __webpack_exports__ = {};
|
|
|
646
646
|
"default"
|
|
647
647
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_toggle_group__rspack_import_58[__rspack_import_key];
|
|
648
648
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
649
|
-
var _tooltip__rspack_import_59 = __webpack_require__("
|
|
649
|
+
var _tooltip__rspack_import_59 = __webpack_require__("@/components/ui/tooltip");
|
|
650
650
|
var __rspack_reexport = {};
|
|
651
651
|
for(const __rspack_import_key in _tooltip__rspack_import_59)if ([
|
|
652
652
|
"TreeView",
|
|
@@ -2,27 +2,28 @@ import * as React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Per-overlay portal target: `undefined`/`null` inherit the nearest
|
|
4
4
|
* {@link PortalContainerProvider} (or `document.body` if none), `'body'` forces
|
|
5
|
-
* `document.body`,
|
|
5
|
+
* `document.body`, a node portals into it. `null` inherits rather than
|
|
6
6
|
* forcing body so `container={ref.current}` is safe before the ref attaches.
|
|
7
|
+
*
|
|
8
|
+
* `DocumentFragment` so a `ShadowRoot` can be passed directly — the shadow-DOM host this exists
|
|
9
|
+
* for is otherwise the one target it cannot name. Radix accepts both.
|
|
7
10
|
*/
|
|
8
|
-
export type PortalContainerOverride =
|
|
11
|
+
export type PortalContainerOverride = Element | DocumentFragment | 'body' | null;
|
|
9
12
|
/**
|
|
10
13
|
* Resolves an overlay's portal target from its `container` and the ambient
|
|
11
14
|
* provider, shared so the behavior stays identical across overlays. `undefined`
|
|
12
15
|
* is Radix's default (`document.body`) and keeps SSR clear of `document`.
|
|
13
16
|
*/
|
|
14
|
-
export declare function useResolvedPortalContainer(container?: PortalContainerOverride):
|
|
17
|
+
export declare function useResolvedPortalContainer(container?: PortalContainerOverride): Element | DocumentFragment | undefined;
|
|
15
18
|
export interface PortalContainerProviderProps {
|
|
16
19
|
children: React.ReactNode;
|
|
17
20
|
/** Node to portal into; omit (or pass a not-yet-attached ref, i.e. `null`) for an auto in-tree boundary. */
|
|
18
21
|
container?: HTMLElement | null;
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
21
|
-
* Portals
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* or focus-trapped hosts, where body-level content escapes the root. Mount one
|
|
25
|
-
* per React root.
|
|
24
|
+
* Portals overlay content into its own subtree instead of `document.body`, keeping overlays in the
|
|
25
|
+
* trigger's DOM root and focus boundary. Without it they break under shadow-DOM or focus-trapped
|
|
26
|
+
* hosts, where body-level content escapes the root. Mount one per React root.
|
|
26
27
|
*
|
|
27
28
|
* Known limitation: an overlay open *on mount* portals to `document.body` for
|
|
28
29
|
* the first commit (the boundary ref hasn't attached yet) then remounts; pass a
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
"use client";
|
|
2
3
|
var __webpack_require__ = {};
|
|
3
4
|
(()=>{
|
|
4
5
|
__webpack_require__.d = (exports1, definition)=>{
|
|
@@ -33,6 +34,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
33
34
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
34
35
|
const react_tooltip_namespaceObject = require("@radix-ui/react-tooltip");
|
|
35
36
|
const external_react_namespaceObject = require("react");
|
|
37
|
+
const external_portal_container_cjs_namespaceObject = require("./portal-container.cjs");
|
|
36
38
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
37
39
|
const TooltipProvider = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Provider, {
|
|
38
40
|
"data-slot": "tooltip-provider",
|
|
@@ -50,10 +52,14 @@ const TooltipTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((
|
|
|
50
52
|
...props
|
|
51
53
|
}));
|
|
52
54
|
TooltipTrigger.displayName = react_tooltip_namespaceObject.Trigger.displayName;
|
|
53
|
-
const TooltipPortal = (
|
|
55
|
+
const TooltipPortal = ({ container, ...props })=>{
|
|
56
|
+
const resolvedContainer = (0, external_portal_container_cjs_namespaceObject.useResolvedPortalContainer)(container);
|
|
57
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Portal, {
|
|
54
58
|
"data-slot": "tooltip-portal",
|
|
55
|
-
...props
|
|
59
|
+
...props,
|
|
60
|
+
container: resolvedContainer
|
|
56
61
|
});
|
|
62
|
+
};
|
|
57
63
|
TooltipPortal.displayName = 'TooltipPortal';
|
|
58
64
|
const TooltipContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Content, {
|
|
59
65
|
ref: ref,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { type PortalContainerOverride } from './portal-container';
|
|
3
4
|
declare const TooltipProvider: {
|
|
4
5
|
(props: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
displayName: string;
|
|
@@ -9,8 +10,14 @@ declare const Tooltip: {
|
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
/**
|
|
14
|
+
* Resolves the container here rather than in `TooltipContent`: Tooltip is the one overlay whose
|
|
15
|
+
* portal is a sibling the consumer composes, not something `*Content` owns.
|
|
16
|
+
*/
|
|
12
17
|
declare const TooltipPortal: {
|
|
13
|
-
(props: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Portal
|
|
18
|
+
({ container, ...props }: Omit<React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Portal>, "container"> & {
|
|
19
|
+
container?: PortalContainerOverride;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
21
|
displayName: string;
|
|
15
22
|
};
|
|
16
23
|
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
2
3
|
import { Content, Portal, Provider, Root, Trigger } from "@radix-ui/react-tooltip";
|
|
3
4
|
import { forwardRef } from "react";
|
|
5
|
+
import { useResolvedPortalContainer } from "./portal-container.js";
|
|
4
6
|
import { cn } from "../../lib/index.js";
|
|
5
7
|
const TooltipProvider = (props)=>/*#__PURE__*/ jsx(Provider, {
|
|
6
8
|
"data-slot": "tooltip-provider",
|
|
@@ -18,10 +20,14 @@ const TooltipTrigger = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(
|
|
|
18
20
|
...props
|
|
19
21
|
}));
|
|
20
22
|
TooltipTrigger.displayName = Trigger.displayName;
|
|
21
|
-
const TooltipPortal = (
|
|
23
|
+
const TooltipPortal = ({ container, ...props })=>{
|
|
24
|
+
const resolvedContainer = useResolvedPortalContainer(container);
|
|
25
|
+
return /*#__PURE__*/ jsx(Portal, {
|
|
22
26
|
"data-slot": "tooltip-portal",
|
|
23
|
-
...props
|
|
27
|
+
...props,
|
|
28
|
+
container: resolvedContainer
|
|
24
29
|
});
|
|
30
|
+
};
|
|
25
31
|
TooltipPortal.displayName = 'TooltipPortal';
|
|
26
32
|
const TooltipContent = /*#__PURE__*/ forwardRef(({ className, sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ jsx(Content, {
|
|
27
33
|
ref: ref,
|
package/dist/index.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export type { MultiSelectProps } from './components/ui/multi-select';
|
|
|
71
71
|
export { MultiSelect } from './components/ui/multi-select';
|
|
72
72
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from './components/ui/pagination';
|
|
73
73
|
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger, } from './components/ui/popover';
|
|
74
|
-
export type { PortalContainerProviderProps } from './components/ui/portal-container';
|
|
74
|
+
export type { PortalContainerOverride, PortalContainerProviderProps, } from './components/ui/portal-container';
|
|
75
75
|
export { PortalContainerProvider } from './components/ui/portal-container';
|
|
76
76
|
export { Progress } from './components/ui/progress';
|
|
77
77
|
export type { MarkdownPreviewTokenOverride, PromptEditorAutoCompleteOption, PromptEditorAutocompleteMenuProps, PromptEditorDiffType, PromptEditorMode, PromptEditorProps, PromptEditorRef, PromptEditorRenderTokenPill, PromptEditorStrings, PromptEditorToken, PromptEditorTokenPillSlotProps, PromptEditorTokenType, PromptEditorToolbarActiveFormats, PromptTokenNode, TokenPillProps, TokenPillWithTooltipProps, } from './components/ui/prompt-editor';
|