@uipath/apollo-wind 2.32.3 → 2.32.4
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/ui/alert-dialog.cjs +9 -3
- package/dist/components/ui/alert-dialog.d.ts +5 -2
- package/dist/components/ui/alert-dialog.js +9 -3
- package/dist/components/ui/dialog.cjs +4 -1
- package/dist/components/ui/dialog.d.ts +2 -0
- package/dist/components/ui/dialog.js +4 -1
- package/dist/components/ui/index.cjs +16 -16
- package/dist/components/ui/sheet.cjs +7 -2
- package/dist/components/ui/sheet.d.ts +2 -0
- package/dist/components/ui/sheet.js +7 -2
- package/package.json +1 -1
|
@@ -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)=>{
|
|
@@ -37,10 +38,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
38
|
AlertDialogAction: ()=>AlertDialogAction
|
|
38
39
|
});
|
|
39
40
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
41
|
+
const react_alert_dialog_namespaceObject = require("@radix-ui/react-alert-dialog");
|
|
40
42
|
const external_react_namespaceObject = require("react");
|
|
41
43
|
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
44
|
+
const external_portal_container_cjs_namespaceObject = require("./portal-container.cjs");
|
|
42
45
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
43
|
-
const react_alert_dialog_namespaceObject = require("@radix-ui/react-alert-dialog");
|
|
44
46
|
const AlertDialog = react_alert_dialog_namespaceObject.Root;
|
|
45
47
|
const AlertDialogTrigger = react_alert_dialog_namespaceObject.Trigger;
|
|
46
48
|
const AlertDialogPortal = react_alert_dialog_namespaceObject.Portal;
|
|
@@ -50,7 +52,10 @@ const AlertDialogOverlay = /*#__PURE__*/ external_react_namespaceObject.forwardR
|
|
|
50
52
|
ref: ref
|
|
51
53
|
}));
|
|
52
54
|
AlertDialogOverlay.displayName = react_alert_dialog_namespaceObject.Overlay.displayName;
|
|
53
|
-
const AlertDialogContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)
|
|
55
|
+
const AlertDialogContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, container, ...props }, ref)=>{
|
|
56
|
+
const resolvedContainer = (0, external_portal_container_cjs_namespaceObject.useResolvedPortalContainer)(container);
|
|
57
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(AlertDialogPortal, {
|
|
58
|
+
container: resolvedContainer,
|
|
54
59
|
children: [
|
|
55
60
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AlertDialogOverlay, {}),
|
|
56
61
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content, {
|
|
@@ -59,7 +64,8 @@ const AlertDialogContent = /*#__PURE__*/ external_react_namespaceObject.forwardR
|
|
|
59
64
|
...props
|
|
60
65
|
})
|
|
61
66
|
]
|
|
62
|
-
})
|
|
67
|
+
});
|
|
68
|
+
});
|
|
63
69
|
AlertDialogContent.displayName = react_alert_dialog_namespaceObject.Content.displayName;
|
|
64
70
|
const AlertDialogHeader = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
65
71
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-col space-y-2 text-center sm:text-left', className),
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { type PortalContainerOverride } from './portal-container';
|
|
3
4
|
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
4
5
|
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
6
|
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
6
7
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> &
|
|
8
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
|
+
container?: PortalContainerOverride;
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
8
11
|
declare const AlertDialogHeader: {
|
|
9
12
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
13
|
displayName: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Action, Cancel, Content, Description, Overlay, Portal, Root, Title, Trigger } from "@radix-ui/react-alert-dialog";
|
|
2
4
|
import { forwardRef } from "react";
|
|
3
5
|
import { buttonVariants } from "./button.js";
|
|
6
|
+
import { useResolvedPortalContainer } from "./portal-container.js";
|
|
4
7
|
import { cn } from "../../lib/index.js";
|
|
5
|
-
import { Action, Cancel, Content, Description, Overlay, Portal, Root, Title, Trigger } from "@radix-ui/react-alert-dialog";
|
|
6
8
|
const AlertDialog = Root;
|
|
7
9
|
const AlertDialogTrigger = Trigger;
|
|
8
10
|
const AlertDialogPortal = Portal;
|
|
@@ -12,7 +14,10 @@ const AlertDialogOverlay = /*#__PURE__*/ forwardRef(({ className, ...props }, re
|
|
|
12
14
|
ref: ref
|
|
13
15
|
}));
|
|
14
16
|
AlertDialogOverlay.displayName = Overlay.displayName;
|
|
15
|
-
const AlertDialogContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)
|
|
17
|
+
const AlertDialogContent = /*#__PURE__*/ forwardRef(({ className, container, ...props }, ref)=>{
|
|
18
|
+
const resolvedContainer = useResolvedPortalContainer(container);
|
|
19
|
+
return /*#__PURE__*/ jsxs(AlertDialogPortal, {
|
|
20
|
+
container: resolvedContainer,
|
|
16
21
|
children: [
|
|
17
22
|
/*#__PURE__*/ jsx(AlertDialogOverlay, {}),
|
|
18
23
|
/*#__PURE__*/ jsx(Content, {
|
|
@@ -21,7 +26,8 @@ const AlertDialogContent = /*#__PURE__*/ forwardRef(({ className, ...props }, re
|
|
|
21
26
|
...props
|
|
22
27
|
})
|
|
23
28
|
]
|
|
24
|
-
})
|
|
29
|
+
});
|
|
30
|
+
});
|
|
25
31
|
AlertDialogContent.displayName = Content.displayName;
|
|
26
32
|
const AlertDialogHeader = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
27
33
|
className: cn('flex flex-col space-y-2 text-center sm:text-left', className),
|
|
@@ -40,6 +40,7 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
40
40
|
const react_dialog_namespaceObject = require("@radix-ui/react-dialog");
|
|
41
41
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
42
42
|
const external_react_namespaceObject = require("react");
|
|
43
|
+
const external_portal_container_cjs_namespaceObject = require("./portal-container.cjs");
|
|
43
44
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
44
45
|
function Dialog({ ...props }) {
|
|
45
46
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Root, {
|
|
@@ -75,9 +76,11 @@ const dialog_DialogOverlay = /*#__PURE__*/ external_react_namespaceObject.forwar
|
|
|
75
76
|
...props
|
|
76
77
|
});
|
|
77
78
|
});
|
|
78
|
-
const dialog_DialogContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(function({ className, children, showCloseButton = true, ...props }, ref) {
|
|
79
|
+
const dialog_DialogContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(function({ className, children, showCloseButton = true, container, ...props }, ref) {
|
|
80
|
+
const resolvedContainer = (0, external_portal_container_cjs_namespaceObject.useResolvedPortalContainer)(container);
|
|
79
81
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DialogPortal, {
|
|
80
82
|
"data-slot": "dialog-portal",
|
|
83
|
+
container: resolvedContainer,
|
|
81
84
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(dialog_DialogOverlay, {
|
|
82
85
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Content, {
|
|
83
86
|
"data-slot": "dialog-content",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { type PortalContainerOverride } from './portal-container';
|
|
3
4
|
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
6
|
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,6 +8,7 @@ declare const DialogClose: React.ForwardRefExoticComponent<Omit<DialogPrimitive.
|
|
|
7
8
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
9
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
10
|
showCloseButton?: boolean;
|
|
11
|
+
container?: PortalContainerOverride;
|
|
10
12
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
13
|
declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
12
14
|
declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Close, Content, Description, Overlay, Portal, Root, Title, Trigger } from "@radix-ui/react-dialog";
|
|
4
4
|
import { XIcon } 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
|
function Dialog({ ...props }) {
|
|
8
9
|
return /*#__PURE__*/ jsx(Root, {
|
|
@@ -38,9 +39,11 @@ const dialog_DialogOverlay = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
38
39
|
...props
|
|
39
40
|
});
|
|
40
41
|
});
|
|
41
|
-
const dialog_DialogContent = /*#__PURE__*/ forwardRef(function({ className, children, showCloseButton = true, ...props }, ref) {
|
|
42
|
+
const dialog_DialogContent = /*#__PURE__*/ forwardRef(function({ className, children, showCloseButton = true, container, ...props }, ref) {
|
|
43
|
+
const resolvedContainer = useResolvedPortalContainer(container);
|
|
42
44
|
return /*#__PURE__*/ jsx(DialogPortal, {
|
|
43
45
|
"data-slot": "dialog-portal",
|
|
46
|
+
container: resolvedContainer,
|
|
44
47
|
children: /*#__PURE__*/ jsx(dialog_DialogOverlay, {
|
|
45
48
|
children: /*#__PURE__*/ jsxs(Content, {
|
|
46
49
|
"data-slot": "dialog-content",
|
|
@@ -15,7 +15,7 @@ var __webpack_modules__ = {
|
|
|
15
15
|
"./avatar" (module) {
|
|
16
16
|
module.exports = require("./avatar.cjs");
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"@/components/ui/badge" (module) {
|
|
19
19
|
module.exports = require("./badge.cjs");
|
|
20
20
|
},
|
|
21
21
|
"./breadcrumb" (module) {
|
|
@@ -24,7 +24,7 @@ var __webpack_modules__ = {
|
|
|
24
24
|
"./button-group" (module) {
|
|
25
25
|
module.exports = require("./button-group.cjs");
|
|
26
26
|
},
|
|
27
|
-
"
|
|
27
|
+
"@/components/ui/button" (module) {
|
|
28
28
|
module.exports = require("./button.cjs");
|
|
29
29
|
},
|
|
30
30
|
"./calendar" (module) {
|
|
@@ -33,7 +33,7 @@ var __webpack_modules__ = {
|
|
|
33
33
|
"./card" (module) {
|
|
34
34
|
module.exports = require("./card.cjs");
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"@/components/ui/checkbox" (module) {
|
|
37
37
|
module.exports = require("./checkbox.cjs");
|
|
38
38
|
},
|
|
39
39
|
"./collapsible" (module) {
|
|
@@ -57,7 +57,7 @@ var __webpack_modules__ = {
|
|
|
57
57
|
"./datetime-picker" (module) {
|
|
58
58
|
module.exports = require("./datetime-picker.cjs");
|
|
59
59
|
},
|
|
60
|
-
"
|
|
60
|
+
"./dialog" (module) {
|
|
61
61
|
module.exports = require("./dialog.cjs");
|
|
62
62
|
},
|
|
63
63
|
"./dropdown-menu" (module) {
|
|
@@ -78,10 +78,10 @@ var __webpack_modules__ = {
|
|
|
78
78
|
"./input-group" (module) {
|
|
79
79
|
module.exports = require("./input-group.cjs");
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"./input" (module) {
|
|
82
82
|
module.exports = require("./input.cjs");
|
|
83
83
|
},
|
|
84
|
-
"
|
|
84
|
+
"./label" (module) {
|
|
85
85
|
module.exports = require("./label.cjs");
|
|
86
86
|
},
|
|
87
87
|
"./layout" (module) {
|
|
@@ -150,13 +150,13 @@ var __webpack_modules__ = {
|
|
|
150
150
|
"./tabs" (module) {
|
|
151
151
|
module.exports = require("./tabs.cjs");
|
|
152
152
|
},
|
|
153
|
-
"
|
|
153
|
+
"./textarea" (module) {
|
|
154
154
|
module.exports = require("./textarea.cjs");
|
|
155
155
|
},
|
|
156
156
|
"./toggle-group" (module) {
|
|
157
157
|
module.exports = require("./toggle-group.cjs");
|
|
158
158
|
},
|
|
159
|
-
"
|
|
159
|
+
"./toggle" (module) {
|
|
160
160
|
module.exports = require("./toggle.cjs");
|
|
161
161
|
},
|
|
162
162
|
"./tooltip" (module) {
|
|
@@ -247,7 +247,7 @@ var __webpack_exports__ = {};
|
|
|
247
247
|
"default"
|
|
248
248
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_avatar__rspack_import_4[__rspack_import_key];
|
|
249
249
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
250
|
-
var _badge__rspack_import_5 = __webpack_require__("
|
|
250
|
+
var _badge__rspack_import_5 = __webpack_require__("@/components/ui/badge");
|
|
251
251
|
var __rspack_reexport = {};
|
|
252
252
|
for(const __rspack_import_key in _badge__rspack_import_5)if ([
|
|
253
253
|
"TreeView",
|
|
@@ -261,7 +261,7 @@ var __webpack_exports__ = {};
|
|
|
261
261
|
"default"
|
|
262
262
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_breadcrumb__rspack_import_6[__rspack_import_key];
|
|
263
263
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
264
|
-
var _button__rspack_import_7 = __webpack_require__("
|
|
264
|
+
var _button__rspack_import_7 = __webpack_require__("@/components/ui/button");
|
|
265
265
|
var __rspack_reexport = {};
|
|
266
266
|
for(const __rspack_import_key in _button__rspack_import_7)if ([
|
|
267
267
|
"TreeView",
|
|
@@ -289,7 +289,7 @@ var __webpack_exports__ = {};
|
|
|
289
289
|
"default"
|
|
290
290
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_card__rspack_import_10[__rspack_import_key];
|
|
291
291
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
292
|
-
var _checkbox__rspack_import_11 = __webpack_require__("
|
|
292
|
+
var _checkbox__rspack_import_11 = __webpack_require__("@/components/ui/checkbox");
|
|
293
293
|
var __rspack_reexport = {};
|
|
294
294
|
for(const __rspack_import_key in _checkbox__rspack_import_11)if ([
|
|
295
295
|
"TreeView",
|
|
@@ -345,7 +345,7 @@ var __webpack_exports__ = {};
|
|
|
345
345
|
"default"
|
|
346
346
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_datetime_picker__rspack_import_18[__rspack_import_key];
|
|
347
347
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
348
|
-
var _dialog__rspack_import_19 = __webpack_require__("
|
|
348
|
+
var _dialog__rspack_import_19 = __webpack_require__("./dialog");
|
|
349
349
|
var __rspack_reexport = {};
|
|
350
350
|
for(const __rspack_import_key in _dialog__rspack_import_19)if ([
|
|
351
351
|
"TreeView",
|
|
@@ -387,7 +387,7 @@ var __webpack_exports__ = {};
|
|
|
387
387
|
"default"
|
|
388
388
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_24[__rspack_import_key];
|
|
389
389
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
390
|
-
var _input__rspack_import_25 = __webpack_require__("
|
|
390
|
+
var _input__rspack_import_25 = __webpack_require__("./input");
|
|
391
391
|
var __rspack_reexport = {};
|
|
392
392
|
for(const __rspack_import_key in _input__rspack_import_25)if ([
|
|
393
393
|
"TreeView",
|
|
@@ -401,7 +401,7 @@ var __webpack_exports__ = {};
|
|
|
401
401
|
"default"
|
|
402
402
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input_group__rspack_import_26[__rspack_import_key];
|
|
403
403
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
404
|
-
var _label__rspack_import_27 = __webpack_require__("
|
|
404
|
+
var _label__rspack_import_27 = __webpack_require__("./label");
|
|
405
405
|
var __rspack_reexport = {};
|
|
406
406
|
for(const __rspack_import_key in _label__rspack_import_27)if ([
|
|
407
407
|
"TreeView",
|
|
@@ -562,14 +562,14 @@ var __webpack_exports__ = {};
|
|
|
562
562
|
"default"
|
|
563
563
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tabs__rspack_import_49[__rspack_import_key];
|
|
564
564
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
565
|
-
var _textarea__rspack_import_50 = __webpack_require__("
|
|
565
|
+
var _textarea__rspack_import_50 = __webpack_require__("./textarea");
|
|
566
566
|
var __rspack_reexport = {};
|
|
567
567
|
for(const __rspack_import_key in _textarea__rspack_import_50)if ([
|
|
568
568
|
"TreeView",
|
|
569
569
|
"default"
|
|
570
570
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_textarea__rspack_import_50[__rspack_import_key];
|
|
571
571
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
572
|
-
var _toggle__rspack_import_51 = __webpack_require__("
|
|
572
|
+
var _toggle__rspack_import_51 = __webpack_require__("./toggle");
|
|
573
573
|
var __rspack_reexport = {};
|
|
574
574
|
for(const __rspack_import_key in _toggle__rspack_import_51)if ([
|
|
575
575
|
"TreeView",
|
|
@@ -41,6 +41,7 @@ const react_dialog_namespaceObject = require("@radix-ui/react-dialog");
|
|
|
41
41
|
const external_class_variance_authority_namespaceObject = require("class-variance-authority");
|
|
42
42
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
43
43
|
const external_react_namespaceObject = require("react");
|
|
44
|
+
const external_portal_container_cjs_namespaceObject = require("./portal-container.cjs");
|
|
44
45
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
45
46
|
const Sheet = react_dialog_namespaceObject.Root;
|
|
46
47
|
const SheetTrigger = react_dialog_namespaceObject.Trigger;
|
|
@@ -65,7 +66,10 @@ const sheetVariants = (0, external_class_variance_authority_namespaceObject.cva)
|
|
|
65
66
|
side: 'right'
|
|
66
67
|
}
|
|
67
68
|
});
|
|
68
|
-
const SheetContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ side = 'right', className, children, ...props }, ref)
|
|
69
|
+
const SheetContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ side = 'right', className, children, container, ...props }, ref)=>{
|
|
70
|
+
const resolvedContainer = (0, external_portal_container_cjs_namespaceObject.useResolvedPortalContainer)(container);
|
|
71
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(SheetPortal, {
|
|
72
|
+
container: resolvedContainer,
|
|
69
73
|
children: [
|
|
70
74
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SheetOverlay, {}),
|
|
71
75
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Content, {
|
|
@@ -91,7 +95,8 @@ const SheetContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({
|
|
|
91
95
|
]
|
|
92
96
|
})
|
|
93
97
|
]
|
|
94
|
-
})
|
|
98
|
+
});
|
|
99
|
+
});
|
|
95
100
|
SheetContent.displayName = react_dialog_namespaceObject.Content.displayName;
|
|
96
101
|
const SheetHeader = ({ className, ...props })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
97
102
|
className: (0, index_cjs_namespaceObject.cn)('flex flex-col space-y-2 text-center sm:text-left', className),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import { type PortalContainerOverride } from './portal-container';
|
|
4
5
|
declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
|
|
5
6
|
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
7
|
declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -10,6 +11,7 @@ declare const sheetVariants: (props?: ({
|
|
|
10
11
|
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
11
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
13
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
14
|
+
container?: PortalContainerOverride;
|
|
13
15
|
}
|
|
14
16
|
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
17
|
declare const SheetHeader: {
|
|
@@ -4,6 +4,7 @@ import { Close, Content, Description, Overlay, Portal, Root, Title, Trigger } fr
|
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { X } from "lucide-react";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
|
+
import { useResolvedPortalContainer } from "./portal-container.js";
|
|
7
8
|
import { cn } from "../../lib/index.js";
|
|
8
9
|
const Sheet = Root;
|
|
9
10
|
const SheetTrigger = Trigger;
|
|
@@ -28,7 +29,10 @@ const sheetVariants = cva('fixed z-50 gap-4 bg-background p-6 shadow-lg transiti
|
|
|
28
29
|
side: 'right'
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
|
-
const SheetContent = /*#__PURE__*/ forwardRef(({ side = 'right', className, children, ...props }, ref)
|
|
32
|
+
const SheetContent = /*#__PURE__*/ forwardRef(({ side = 'right', className, children, container, ...props }, ref)=>{
|
|
33
|
+
const resolvedContainer = useResolvedPortalContainer(container);
|
|
34
|
+
return /*#__PURE__*/ jsxs(SheetPortal, {
|
|
35
|
+
container: resolvedContainer,
|
|
32
36
|
children: [
|
|
33
37
|
/*#__PURE__*/ jsx(SheetOverlay, {}),
|
|
34
38
|
/*#__PURE__*/ jsxs(Content, {
|
|
@@ -54,7 +58,8 @@ const SheetContent = /*#__PURE__*/ forwardRef(({ side = 'right', className, chil
|
|
|
54
58
|
]
|
|
55
59
|
})
|
|
56
60
|
]
|
|
57
|
-
})
|
|
61
|
+
});
|
|
62
|
+
});
|
|
58
63
|
SheetContent.displayName = Content.displayName;
|
|
59
64
|
const SheetHeader = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
60
65
|
className: cn('flex flex-col space-y-2 text-center sm:text-left', className),
|