@oneplatformdev/ui 0.0.1-beta.121 → 0.0.1-beta.123
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/Dialog/Dialog.mjs +1 -1
- package/Popover/Popover.mjs +26 -27
- package/package.json +1 -1
package/Dialog/Dialog.mjs
CHANGED
|
@@ -29,7 +29,7 @@ const w = i.forwardRef(
|
|
|
29
29
|
const d = y(null), [u, x] = N(null);
|
|
30
30
|
return D(() => x(d.current), []), /* @__PURE__ */ n(v, { children: [
|
|
31
31
|
/* @__PURE__ */ o(m, {}),
|
|
32
|
-
/* @__PURE__ */ o("div", { ref: d, className: "fixed inset-0 z-
|
|
32
|
+
/* @__PURE__ */ o("div", { ref: d, className: "fixed inset-0 z-80" }),
|
|
33
33
|
/* @__PURE__ */ o(b, { value: u, children: /* @__PURE__ */ n(
|
|
34
34
|
e.Content,
|
|
35
35
|
{
|
package/Popover/Popover.mjs
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as s from "react";
|
|
3
3
|
import * as o from "@radix-ui/react-popover";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as m } from "@oneplatformdev/utils";
|
|
5
5
|
import "../Dialog/Dialog.mjs";
|
|
6
|
-
import { useDialogOverlayContainer as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
...n
|
|
22
|
-
},
|
|
6
|
+
import { useDialogOverlayContainer as p } from "../Dialog/DialogOverlayScope.mjs";
|
|
7
|
+
const g = (t) => /* @__PURE__ */ e(o.Root, { ...t, modal: !0 }), P = o.Trigger, h = o.Anchor, l = s.forwardRef(({ className: t, align: a = "center", sideOffset: r = 4, style: i, ...n }, d) => (p(), // <PopoverPrimitive.Portal container={container ?? undefined}>
|
|
8
|
+
/* @__PURE__ */ e(o.Portal, { children: /* @__PURE__ */ e(
|
|
9
|
+
o.Content,
|
|
10
|
+
{
|
|
11
|
+
ref: d,
|
|
12
|
+
align: a,
|
|
13
|
+
sideOffset: r,
|
|
14
|
+
className: m(
|
|
15
|
+
// "z-90 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
|
|
16
|
+
"w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
|
|
17
|
+
t
|
|
18
|
+
),
|
|
19
|
+
style: {
|
|
20
|
+
pointerEvents: "auto",
|
|
23
21
|
...i
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
22
|
+
},
|
|
23
|
+
...n
|
|
24
|
+
}
|
|
25
|
+
) })));
|
|
26
|
+
l.displayName = o.Content.displayName;
|
|
28
27
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
g as Popover,
|
|
29
|
+
h as PopoverAnchor,
|
|
30
|
+
l as PopoverContent,
|
|
31
|
+
P as PopoverTrigger
|
|
33
32
|
};
|