@uipath/apollo-wind 2.32.2 → 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.
@@ -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)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(AlertDialogPortal, {
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"> & React.RefAttributes<HTMLDivElement>>;
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)=>/*#__PURE__*/ jsxs(AlertDialogPortal, {
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
- "./badge" (module) {
18
+ "@/components/ui/badge" (module) {
19
19
  module.exports = require("./badge.cjs");
20
20
  },
21
21
  "./breadcrumb" (module) {
@@ -33,7 +33,7 @@ var __webpack_modules__ = {
33
33
  "./card" (module) {
34
34
  module.exports = require("./card.cjs");
35
35
  },
36
- "./checkbox" (module) {
36
+ "@/components/ui/checkbox" (module) {
37
37
  module.exports = require("./checkbox.cjs");
38
38
  },
39
39
  "./collapsible" (module) {
@@ -42,7 +42,7 @@ var __webpack_modules__ = {
42
42
  "./combobox" (module) {
43
43
  module.exports = require("./combobox.cjs");
44
44
  },
45
- "./command" (module) {
45
+ "@/components/ui/command" (module) {
46
46
  module.exports = require("./command.cjs");
47
47
  },
48
48
  "./context-menu" (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__("./badge");
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",
@@ -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__("./checkbox");
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",
@@ -310,7 +310,7 @@ var __webpack_exports__ = {};
310
310
  "default"
311
311
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_combobox__rspack_import_13[__rspack_import_key];
312
312
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
313
- var _command__rspack_import_14 = __webpack_require__("./command");
313
+ var _command__rspack_import_14 = __webpack_require__("@/components/ui/command");
314
314
  var __rspack_reexport = {};
315
315
  for(const __rspack_import_key in _command__rspack_import_14)if ([
316
316
  "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)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(SheetPortal, {
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)=>/*#__PURE__*/ jsxs(SheetPortal, {
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-wind",
3
- "version": "2.32.2",
3
+ "version": "2.32.4",
4
4
  "description": "UiPath wind design system - A Tailwind CSS based React component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -107,7 +107,7 @@
107
107
  "clsx": "^2.1.1",
108
108
  "cmdk": "^1.1.1",
109
109
  "date-fns": "^4.1.0",
110
- "dompurify": "^3.4.0",
110
+ "dompurify": "^3.4.13",
111
111
  "framer-motion": "^12.26.2",
112
112
  "jsep": "^1.4.0",
113
113
  "lexical": "0.42.0",
@@ -124,7 +124,7 @@
124
124
  "tailwindcss": "^4.1.17",
125
125
  "vaul": "^1.1.2",
126
126
  "zod": "^4.3.5",
127
- "@uipath/apollo-core": "5.12.0"
127
+ "@uipath/apollo-core": "5.12.1"
128
128
  },
129
129
  "devDependencies": {
130
130
  "@codemirror/lang-javascript": "^6.2.5",