@oneplatformdev/ui 0.0.1-beta.96 → 0.0.1-beta.97

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.
Files changed (2) hide show
  1. package/Dialog/Dialog.mjs +26 -12
  2. package/package.json +1 -1
package/Dialog/Dialog.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { jsx as o, jsxs as d } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as n } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import * as e from "@radix-ui/react-dialog";
4
4
  import { X as m } from "lucide-react";
5
5
  import { cn as i } from "@oneplatformdev/utils";
6
- const h = e.Root, w = e.Trigger, f = e.Portal, v = e.Close, n = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
6
+ const h = e.Root, w = e.Trigger, f = e.Portal, v = e.Close, r = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
7
7
  e.Overlay,
8
8
  {
9
9
  ref: s,
@@ -14,10 +14,10 @@ const h = e.Root, w = e.Trigger, f = e.Portal, v = e.Close, n = l.forwardRef(({
14
14
  ...t
15
15
  }
16
16
  ));
17
- n.displayName = e.Overlay.displayName;
18
- const p = l.forwardRef(({ className: a, children: t, showCloseButton: s = !0, ...r }, c) => /* @__PURE__ */ d(f, { children: [
19
- /* @__PURE__ */ o(n, {}),
20
- /* @__PURE__ */ d(
17
+ r.displayName = e.Overlay.displayName;
18
+ const p = l.forwardRef(({ className: a, children: t, showCloseButton: s = !0, ...d }, c) => /* @__PURE__ */ n(f, { children: [
19
+ /* @__PURE__ */ o(r, {}),
20
+ /* @__PURE__ */ n(
21
21
  e.Content,
22
22
  {
23
23
  ref: c,
@@ -28,13 +28,27 @@ const p = l.forwardRef(({ className: a, children: t, showCloseButton: s = !0, ..
28
28
  "bg-[#FCFCFC] border border-[#E8E9EB] rounded-[16px]",
29
29
  a
30
30
  ),
31
- ...r,
31
+ ...d,
32
32
  children: [
33
33
  t,
34
- s && /* @__PURE__ */ d(e.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground w-10 aspect-square", children: [
35
- /* @__PURE__ */ o(m, { className: "h-4 w-4" }),
36
- /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
37
- ] })
34
+ s && /* @__PURE__ */ n(
35
+ e.Close,
36
+ {
37
+ className: i(
38
+ "absolute right-4 top-4 rounded-sm ring-offset-background w-10 aspect-square",
39
+ "flex items-center justify-center",
40
+ "data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
41
+ "opacity-70 hover:opacity-100",
42
+ "focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
43
+ "disabled:pointer-events-none",
44
+ "transition-opacity"
45
+ ),
46
+ children: [
47
+ /* @__PURE__ */ o(m, { className: "h-4 w-4" }),
48
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
49
+ ]
50
+ }
51
+ )
38
52
  ]
39
53
  }
40
54
  )
@@ -96,7 +110,7 @@ export {
96
110
  y as DialogDescription,
97
111
  u as DialogFooter,
98
112
  g as DialogHeader,
99
- n as DialogOverlay,
113
+ r as DialogOverlay,
100
114
  f as DialogPortal,
101
115
  x as DialogTitle,
102
116
  w as DialogTrigger
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/ui",
3
- "version": "0.0.1-beta.96",
3
+ "version": "0.0.1-beta.97",
4
4
  "description": "UI React Components.",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [