impact-nova 1.6.5 → 1.6.7

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,9 +1,9 @@
1
- import { jsx as l, jsxs as n } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as c } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
3
  import * as e from "@radix-ui/react-alert-dialog";
4
4
  import { cn as s } from "../../lib/utils.js";
5
- import { buttonVariants as d } from "./button-variants.js";
6
- const v = e.Root, w = e.Trigger, m = e.Portal, r = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
5
+ import { buttonVariants as r } from "./button-variants.js";
6
+ const R = e.Root, b = e.Trigger, p = e.Portal, n = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
7
7
  e.Overlay,
8
8
  {
9
9
  className: s(
@@ -14,25 +14,28 @@ const v = e.Root, w = e.Trigger, m = e.Portal, r = i.forwardRef(({ className: a,
14
14
  ref: o
15
15
  }
16
16
  ));
17
- r.displayName = e.Overlay.displayName;
18
- const c = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ n(m, { children: [
19
- /* @__PURE__ */ l(r, {}),
17
+ n.displayName = e.Overlay.displayName;
18
+ const f = i.forwardRef(({ className: a, onOpenAutoFocus: t, ...o }, m) => /* @__PURE__ */ c(p, { children: [
19
+ /* @__PURE__ */ l(n, {}),
20
20
  /* @__PURE__ */ l(
21
21
  e.Content,
22
22
  {
23
- ref: o,
23
+ ref: m,
24
24
  "aria-describedby": void 0,
25
25
  "data-component": "alert-dialog-content",
26
+ onOpenAutoFocus: (d) => {
27
+ d.preventDefault(), t?.(d);
28
+ },
26
29
  className: s(
27
30
  "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-canvas p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
28
31
  a
29
32
  ),
30
- ...t
33
+ ...o
31
34
  }
32
35
  )
33
36
  ] }));
34
- c.displayName = e.Content.displayName;
35
- const p = ({
37
+ f.displayName = e.Content.displayName;
38
+ const g = ({
36
39
  className: a,
37
40
  ...t
38
41
  }) => /* @__PURE__ */ l(
@@ -45,8 +48,8 @@ const p = ({
45
48
  ...t
46
49
  }
47
50
  );
48
- p.displayName = "AlertDialogHeader";
49
- const f = ({
51
+ g.displayName = "AlertDialogHeader";
52
+ const N = ({
50
53
  className: a,
51
54
  ...t
52
55
  }) => /* @__PURE__ */ l(
@@ -59,8 +62,8 @@ const f = ({
59
62
  ...t
60
63
  }
61
64
  );
62
- f.displayName = "AlertDialogFooter";
63
- const g = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
65
+ N.displayName = "AlertDialogFooter";
66
+ const y = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
64
67
  e.Title,
65
68
  {
66
69
  ref: o,
@@ -69,8 +72,8 @@ const g = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
69
72
  ...t
70
73
  }
71
74
  ));
72
- g.displayName = e.Title.displayName;
73
- const N = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
75
+ y.displayName = e.Title.displayName;
76
+ const x = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
74
77
  e.Description,
75
78
  {
76
79
  ref: o,
@@ -79,41 +82,41 @@ const N = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
79
82
  ...t
80
83
  }
81
84
  ));
82
- N.displayName = e.Description.displayName;
83
- const y = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
85
+ x.displayName = e.Description.displayName;
86
+ const A = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
84
87
  e.Action,
85
88
  {
86
89
  ref: o,
87
90
  "data-component": "alert-dialog-action",
88
- className: s(d(), a),
91
+ className: s(r(), a),
89
92
  ...t
90
93
  }
91
94
  ));
92
- y.displayName = e.Action.displayName;
93
- const x = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
95
+ A.displayName = e.Action.displayName;
96
+ const D = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
94
97
  e.Cancel,
95
98
  {
96
99
  ref: o,
97
100
  "data-component": "alert-dialog-cancel",
98
101
  className: s(
99
- d({ variant: "outline" }),
102
+ r({ variant: "outline" }),
100
103
  "mt-2 sm:mt-0",
101
104
  a
102
105
  ),
103
106
  ...t
104
107
  }
105
108
  ));
106
- x.displayName = e.Cancel.displayName;
109
+ D.displayName = e.Cancel.displayName;
107
110
  export {
108
- v as AlertDialog,
109
- y as AlertDialogAction,
110
- x as AlertDialogCancel,
111
- c as AlertDialogContent,
112
- N as AlertDialogDescription,
113
- f as AlertDialogFooter,
114
- p as AlertDialogHeader,
115
- r as AlertDialogOverlay,
116
- m as AlertDialogPortal,
117
- g as AlertDialogTitle,
118
- w as AlertDialogTrigger
111
+ R as AlertDialog,
112
+ A as AlertDialogAction,
113
+ D as AlertDialogCancel,
114
+ f as AlertDialogContent,
115
+ x as AlertDialogDescription,
116
+ N as AlertDialogFooter,
117
+ g as AlertDialogHeader,
118
+ n as AlertDialogOverlay,
119
+ p as AlertDialogPortal,
120
+ y as AlertDialogTitle,
121
+ b as AlertDialogTrigger
119
122
  };