impact-nova 1.1.1 → 1.1.2

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 (36) hide show
  1. package/dist/components/ui/accordion.js +37 -33
  2. package/dist/components/ui/alert.d.ts +2 -0
  3. package/dist/components/ui/alert.js +46 -31
  4. package/dist/components/ui/breadcrumb.d.ts +7 -2
  5. package/dist/components/ui/breadcrumb.js +98 -77
  6. package/dist/components/ui/calendar.js +198 -178
  7. package/dist/components/ui/date-picker/date-picker.js +94 -87
  8. package/dist/components/ui/date-picker/date-range-picker.js +124 -117
  9. package/dist/components/ui/date-picker/month-picker.js +98 -91
  10. package/dist/components/ui/date-picker/month-range-picker.js +118 -111
  11. package/dist/components/ui/date-picker/multi-date-picker.js +76 -69
  12. package/dist/components/ui/date-picker/multi-month-picker.js +72 -65
  13. package/dist/components/ui/date-picker/multi-week-picker.js +88 -81
  14. package/dist/components/ui/date-picker/week-picker.js +107 -100
  15. package/dist/components/ui/date-picker/week-range-picker.js +144 -137
  16. package/dist/components/ui/dialog.js +65 -61
  17. package/dist/components/ui/drawer.d.ts +3 -1
  18. package/dist/components/ui/drawer.js +44 -29
  19. package/dist/components/ui/file-upload.d.ts +2 -1
  20. package/dist/components/ui/file-upload.js +159 -135
  21. package/dist/components/ui/filter-panel/filter-panel.js +89 -70
  22. package/dist/components/ui/filter-strip/filter-summary.js +117 -104
  23. package/dist/components/ui/filter-strip/filter-tag-list.js +81 -65
  24. package/dist/components/ui/popover.js +52 -48
  25. package/dist/components/ui/prompt.d.ts +2 -1
  26. package/dist/components/ui/prompt.js +81 -64
  27. package/dist/components/ui/sheet.js +91 -84
  28. package/dist/components/ui/sidebar.js +9 -8
  29. package/dist/components/ui/tabs.d.ts +2 -0
  30. package/dist/components/ui/tabs.js +58 -55
  31. package/dist/components/ui/tag.js +21 -20
  32. package/dist/components/ui/toast.js +41 -37
  33. package/dist/components/ui/tooltip.js +1 -1
  34. package/dist/impact-nova.css +1 -1
  35. package/dist/index.js +250 -248
  36. package/package.json +1 -1
@@ -1,87 +1,91 @@
1
- import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import * as d from "react";
1
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
+ import * as s from "react";
3
3
  import * as a from "@radix-ui/react-popover";
4
- import { X as l } from "lucide-react";
5
- import { cn as n } from "../../lib/utils.js";
6
- const P = a.Root, u = a.Trigger, b = a.Anchor, m = d.forwardRef(({ className: e, align: o = "center", sideOffset: r = 4, ...i }, p) => /* @__PURE__ */ t(a.Portal, { children: /* @__PURE__ */ t(
4
+ import { X as p } from "lucide-react";
5
+ import { Tooltip as m, TooltipTrigger as c, TooltipContent as f } from "./tooltip.js";
6
+ import { cn as r } from "../../lib/utils.js";
7
+ const w = a.Root, T = a.Trigger, j = a.Anchor, v = s.forwardRef(({ className: e, align: o = "center", sideOffset: n = 4, ...d }, l) => /* @__PURE__ */ t(a.Portal, { children: /* @__PURE__ */ t(
7
8
  a.Content,
8
9
  {
9
- ref: p,
10
+ ref: l,
10
11
  align: o,
11
- sideOffset: r,
12
+ sideOffset: n,
12
13
  "data-component": "popover-content",
13
- className: n(
14
+ className: r(
14
15
  "z-50 min-w-[240px] rounded-xl border bg-popover p-3 text-popover-foreground shadow-md outline-none overflow-hidden 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 origin-[--radix-popover-content-transform-origin]",
15
16
  e
16
17
  ),
17
- ...i
18
+ ...d
18
19
  }
19
20
  ) }));
20
- m.displayName = a.Content.displayName;
21
- const c = ({
21
+ v.displayName = a.Content.displayName;
22
+ const h = ({
22
23
  className: e,
23
24
  ...o
24
25
  }) => /* @__PURE__ */ t(
25
26
  "div",
26
27
  {
27
- className: n("flex items-center justify-between gap-4 mb-3", e),
28
+ className: r("flex items-center justify-between gap-4 mb-3", e),
28
29
  ...o
29
30
  }
30
31
  );
31
- c.displayName = "PopoverHeader";
32
- const f = ({
32
+ h.displayName = "PopoverHeader";
33
+ const g = ({
33
34
  className: e,
34
35
  ...o
35
36
  }) => /* @__PURE__ */ t(
36
37
  "h3",
37
38
  {
38
39
  "data-component": "popover-title",
39
- className: n(
40
+ className: r(
40
41
  "text-[16px] font-extrabold leading-none text-[#1f2b4d]",
41
42
  e
42
43
  ),
43
44
  ...o
44
45
  }
45
46
  );
46
- f.displayName = "PopoverTitle";
47
- const v = d.forwardRef(({ className: e, ...o }, r) => /* @__PURE__ */ s(
48
- a.Close,
49
- {
50
- ref: r,
51
- "data-component": "popover-close",
52
- className: n(
53
- "rounded-sm opacity-70 transition-opacity hover:opacity-100 outline-none focus:ring-0 disabled:pointer-events-none",
54
- e
55
- ),
56
- ...o,
57
- children: [
58
- /* @__PURE__ */ t(l, { className: "h-4 w-4 text-[#60697d]" }),
59
- /* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
60
- ]
61
- }
62
- ));
63
- v.displayName = a.Close.displayName;
64
- const x = ({
47
+ g.displayName = "PopoverTitle";
48
+ const x = s.forwardRef(({ className: e, ...o }, n) => /* @__PURE__ */ i(m, { children: [
49
+ /* @__PURE__ */ t(c, { asChild: !0, children: /* @__PURE__ */ i(
50
+ a.Close,
51
+ {
52
+ ref: n,
53
+ "data-component": "popover-close",
54
+ className: r(
55
+ "rounded-sm opacity-70 transition-opacity hover:opacity-100 outline-none focus:ring-0 disabled:pointer-events-none",
56
+ e
57
+ ),
58
+ ...o,
59
+ children: [
60
+ /* @__PURE__ */ t(p, { className: "h-4 w-4 text-[#60697d]" }),
61
+ /* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
62
+ ]
63
+ }
64
+ ) }),
65
+ /* @__PURE__ */ t(f, { variant: "tertiary", side: "top", children: "Close" })
66
+ ] }));
67
+ x.displayName = a.Close.displayName;
68
+ const N = ({
65
69
  className: e,
66
70
  ...o
67
- }) => /* @__PURE__ */ t("div", { className: n("text-sm", e), ...o });
68
- x.displayName = "PopoverBody";
69
- const N = ({
71
+ }) => /* @__PURE__ */ t("div", { className: r("text-sm", e), ...o });
72
+ N.displayName = "PopoverBody";
73
+ const y = ({
70
74
  className: e,
71
75
  ...o
72
- }) => /* @__PURE__ */ s("div", { className: n("mt-4 flex flex-col gap-3", e), ...o, children: [
76
+ }) => /* @__PURE__ */ i("div", { className: r("mt-4 flex flex-col gap-3", e), ...o, children: [
73
77
  /* @__PURE__ */ t("div", { className: "h-[1px] w-full bg-[#f0f2f5]" }),
74
78
  /* @__PURE__ */ t("div", { className: "flex justify-end gap-2", children: o.children })
75
79
  ] });
76
- N.displayName = "PopoverFooter";
80
+ y.displayName = "PopoverFooter";
77
81
  export {
78
- P as Popover,
79
- b as PopoverAnchor,
80
- x as PopoverBody,
81
- v as PopoverClose,
82
- m as PopoverContent,
83
- N as PopoverFooter,
84
- c as PopoverHeader,
85
- f as PopoverTitle,
86
- u as PopoverTrigger
82
+ w as Popover,
83
+ j as PopoverAnchor,
84
+ N as PopoverBody,
85
+ x as PopoverClose,
86
+ v as PopoverContent,
87
+ y as PopoverFooter,
88
+ h as PopoverHeader,
89
+ g as PopoverTitle,
90
+ T as PopoverTrigger
87
91
  };
@@ -22,5 +22,6 @@ export interface PromptProps extends Omit<React.ComponentPropsWithoutRef<typeof
22
22
  children?: React.ReactNode;
23
23
  className?: string;
24
24
  }
25
+ declare const PromptClose: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
25
26
  declare const Prompt: React.ForwardRefExoticComponent<PromptProps & React.RefAttributes<HTMLDivElement>>;
26
- export { Prompt, promptVariants };
27
+ export { Prompt, promptVariants, PromptClose };
@@ -1,11 +1,12 @@
1
- import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
- import * as k from "react";
1
+ import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
+ import * as m from "react";
3
3
  import { cva as P } from "class-variance-authority";
4
- import { Info as T, CheckCircle2 as V, AlertTriangle as R, Trash2 as A } from "lucide-react";
4
+ import { Info as k, CheckCircle2 as R, AlertTriangle as V, Trash2 as A, X as B } from "lucide-react";
5
5
  import { cn as r } from "../../lib/utils.js";
6
- import { Button as n } from "./button.js";
7
- import { Dialog as B, DialogContent as F, DialogHeader as H, DialogTitle as I, DialogDescription as q, DialogFooter as E } from "./dialog.js";
8
- const U = P("", {
6
+ import { Tooltip as F, TooltipTrigger as H, TooltipContent as I } from "./tooltip.js";
7
+ import { Button as f } from "./button.js";
8
+ import { Dialog as X, DialogContent as q, DialogHeader as E, DialogTitle as G, DialogDescription as J, DialogFooter as K } from "./dialog.js";
9
+ const $ = P("", {
9
10
  variants: {
10
11
  variant: {
11
12
  default: "",
@@ -18,37 +19,52 @@ const U = P("", {
18
19
  defaultVariants: {
19
20
  variant: "default"
20
21
  }
21
- }), G = k.forwardRef(
22
+ }), L = m.forwardRef(({ className: l, ...i }, a) => /* @__PURE__ */ o(F, { children: [
23
+ /* @__PURE__ */ e(H, { asChild: !0, children: /* @__PURE__ */ e(
24
+ "button",
25
+ {
26
+ ref: a,
27
+ className: r("text-[#60697d] hover:text-[#0d152c] transition-colors", l),
28
+ type: "button",
29
+ "aria-label": "Close",
30
+ ...i,
31
+ children: /* @__PURE__ */ e(B, { size: 16 })
32
+ }
33
+ ) }),
34
+ /* @__PURE__ */ e(I, { side: "top", variant: "tertiary", children: "Close" })
35
+ ] }));
36
+ L.displayName = "PromptClose";
37
+ const M = m.forwardRef(
22
38
  ({
23
- open: f,
24
- onOpenChange: c,
25
- title: d,
26
- description: l,
27
- confirmLabel: m = "Confirm",
28
- cancelLabel: p = "Cancel",
29
- onConfirm: u,
30
- onCancel: x,
39
+ open: l,
40
+ onOpenChange: i,
41
+ title: a,
42
+ description: c,
43
+ confirmLabel: p = "Confirm",
44
+ cancelLabel: u = "Cancel",
45
+ onConfirm: x,
46
+ onCancel: h,
31
47
  confirmVariant: b,
32
- cancelVariant: h = "secondary",
33
- variant: e = "default",
34
- showClose: g = !0,
48
+ cancelVariant: g = "secondary",
49
+ variant: t = "default",
50
+ showClose: C = !0,
35
51
  preventOutsideClick: w = !1,
36
- footer: a,
37
- children: o,
52
+ footer: n,
53
+ children: d,
38
54
  className: N,
39
- ...C
40
- }, D) => {
41
- const v = () => {
42
- u?.(), c?.(!1);
43
- }, y = () => {
44
- x?.(), c?.(!1);
45
- }, s = e !== "default", j = b || (e === "destructive" ? "destructive" : "default");
46
- return /* @__PURE__ */ t(B, { open: f, onOpenChange: c, ...C, children: /* @__PURE__ */ i(
47
- F,
55
+ ...y
56
+ }, v) => {
57
+ const D = () => {
58
+ x?.(), i?.(!1);
59
+ }, T = () => {
60
+ h?.(), i?.(!1);
61
+ }, s = t !== "default", j = b || (t === "destructive" ? "destructive" : "default");
62
+ return /* @__PURE__ */ e(X, { open: l, onOpenChange: i, ...y, children: /* @__PURE__ */ o(
63
+ q,
48
64
  {
49
- ref: D,
65
+ ref: v,
50
66
  "aria-describedby": void 0,
51
- hideClose: !g,
67
+ hideClose: !C,
52
68
  onPointerDownOutside: (z) => {
53
69
  w && z.preventDefault();
54
70
  },
@@ -58,74 +74,74 @@ const U = P("", {
58
74
  N
59
75
  ),
60
76
  "data-component": "prompt",
61
- "data-variant": e,
77
+ "data-variant": t,
62
78
  children: [
63
- s && /* @__PURE__ */ i(
79
+ s && /* @__PURE__ */ o(
64
80
  "div",
65
81
  {
66
82
  className: r(
67
83
  "mb-4 flex h-12 w-12 items-center justify-center rounded-xl",
68
- e === "info" && "bg-[#eceefd] text-[#4259ee]",
69
- e === "success" && "bg-[#ebf7f1] text-[#10b981]",
70
- e === "warning" && "bg-[#f6ebbf] text-[#d97706]",
71
- e === "destructive" && "bg-[#fceeee] text-[#ef4444]"
84
+ t === "info" && "bg-[#eceefd] text-[#4259ee]",
85
+ t === "success" && "bg-[#ebf7f1] text-[#10b981]",
86
+ t === "warning" && "bg-[#f6ebbf] text-[#d97706]",
87
+ t === "destructive" && "bg-[#fceeee] text-[#ef4444]"
72
88
  ),
73
89
  children: [
74
- e === "info" && /* @__PURE__ */ t(T, { size: 24 }),
75
- e === "success" && /* @__PURE__ */ t(V, { size: 24 }),
76
- e === "warning" && /* @__PURE__ */ t(R, { size: 24 }),
77
- e === "destructive" && /* @__PURE__ */ t(A, { size: 24 })
90
+ t === "info" && /* @__PURE__ */ e(k, { size: 24 }),
91
+ t === "success" && /* @__PURE__ */ e(R, { size: 24 }),
92
+ t === "warning" && /* @__PURE__ */ e(V, { size: 24 }),
93
+ t === "destructive" && /* @__PURE__ */ e(A, { size: 24 })
78
94
  ]
79
95
  }
80
96
  ),
81
- /* @__PURE__ */ i(
82
- H,
97
+ /* @__PURE__ */ o(
98
+ E,
83
99
  {
84
100
  className: r(s && "mb-6 space-y-2 items-center bg-white border-none"),
85
101
  children: [
86
- /* @__PURE__ */ t(
87
- I,
102
+ /* @__PURE__ */ e(
103
+ G,
88
104
  {
89
105
  className: r(
90
106
  s && "text-[18px] font-extrabold text-[#1f2b4d]"
91
107
  ),
92
- children: d
108
+ children: a
93
109
  }
94
110
  ),
95
- l && /* @__PURE__ */ t(
96
- q,
111
+ c && /* @__PURE__ */ e(
112
+ J,
97
113
  {
98
114
  className: r(s && "text-sm text-[#60697d]"),
99
- children: l
115
+ children: c
100
116
  }
101
117
  )
102
118
  ]
103
119
  }
104
120
  ),
105
- o && /* @__PURE__ */ t("div", { className: r("w-full py-4", s && "text-center"), children: o }),
106
- a ? /* @__PURE__ */ t("div", { className: "w-full", children: a }) : /* @__PURE__ */ i(
107
- E,
121
+ d && /* @__PURE__ */ e("div", { className: r("w-full py-4", s && "text-center"), children: d }),
122
+ n ? /* @__PURE__ */ e("div", { className: "w-full", children: n }) : /* @__PURE__ */ o(
123
+ K,
108
124
  {
109
125
  className: r(
110
126
  s && "mt-6 flex flex-row justify-center gap-3 w-full sm:justify-center px-0 pb-0"
111
127
  ),
112
128
  children: [
113
- /* @__PURE__ */ t(
114
- n,
129
+ /* @__PURE__ */ e(
130
+ f,
115
131
  {
116
- variant: h,
117
- onClick: y,
132
+ variant: g,
133
+ onClick: T,
118
134
  className: r(s && "h-10 px-6"),
119
- children: p
135
+ children: u
120
136
  }
121
137
  ),
122
- /* @__PURE__ */ t(
123
- n,
138
+ /* @__PURE__ */ e(
139
+ f,
124
140
  {
125
141
  variant: j,
126
- onClick: v,
142
+ onClick: D,
127
143
  className: r(s && "h-10 px-6"),
128
- children: m
144
+ children: p
129
145
  }
130
146
  )
131
147
  ]
@@ -136,8 +152,9 @@ const U = P("", {
136
152
  ) });
137
153
  }
138
154
  );
139
- G.displayName = "Prompt";
155
+ M.displayName = "Prompt";
140
156
  export {
141
- G as Prompt,
142
- U as promptVariants
157
+ M as Prompt,
158
+ L as PromptClose,
159
+ $ as promptVariants
143
160
  };
@@ -1,26 +1,27 @@
1
- import { jsx as a, jsxs as d } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
3
  import * as o from "@radix-ui/react-dialog";
4
- import { cva as x } from "class-variance-authority";
5
- import { ChevronDown as y, ChevronUp as b, X as N } from "lucide-react";
6
- import { cn as i } from "../../lib/utils.js";
7
- const p = n.createContext({
4
+ import { cva as N } from "class-variance-authority";
5
+ import { ChevronDown as v, ChevronUp as C, X as S } from "lucide-react";
6
+ import { cn as r } from "../../lib/utils.js";
7
+ import { Tooltip as p, TooltipTrigger as h, TooltipContent as f } from "./tooltip.js";
8
+ const u = n.createContext({
8
9
  isExpanded: !1,
9
10
  expandable: !1,
10
11
  side: "right"
11
- }), B = o.Root, F = o.Trigger, v = o.Close, S = o.Portal, f = n.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
12
+ }), I = o.Root, U = o.Trigger, w = o.Close, T = o.Portal, g = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
12
13
  o.Overlay,
13
14
  {
14
- className: i(
15
+ className: r(
15
16
  "fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
16
- e
17
+ t
17
18
  ),
18
- ...t,
19
+ ...a,
19
20
  ref: s
20
21
  }
21
22
  ));
22
- f.displayName = o.Overlay.displayName;
23
- const w = x(
23
+ g.displayName = o.Overlay.displayName;
24
+ const k = N(
24
25
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
25
26
  {
26
27
  variants: {
@@ -35,22 +36,22 @@ const w = x(
35
36
  side: "right"
36
37
  }
37
38
  }
38
- ), C = n.forwardRef(({ side: e = "right", className: t, children: s, expandable: l = !1, ...c }, m) => {
39
- const [r, h] = n.useState(!1), u = n.useCallback(() => {
40
- h((g) => !g);
39
+ ), E = n.forwardRef(({ side: t = "right", className: a, children: s, expandable: d = !1, ...c }, m) => {
40
+ const [l, x] = n.useState(!1), y = n.useCallback(() => {
41
+ x((b) => !b);
41
42
  }, []);
42
- return /* @__PURE__ */ a(p.Provider, { value: { isExpanded: r, onExpandToggle: u, expandable: l, side: e || void 0 }, children: /* @__PURE__ */ d(S, { children: [
43
- /* @__PURE__ */ a(f, {}),
44
- /* @__PURE__ */ a(
43
+ return /* @__PURE__ */ e(u.Provider, { value: { isExpanded: l, onExpandToggle: y, expandable: d, side: t || void 0 }, children: /* @__PURE__ */ i(T, { children: [
44
+ /* @__PURE__ */ e(g, {}),
45
+ /* @__PURE__ */ e(
45
46
  o.Content,
46
47
  {
47
48
  ref: m,
48
49
  "data-component": "sheet-content",
49
- className: i(
50
- w({ side: e }),
50
+ className: r(
51
+ k({ side: t }),
51
52
  "flex flex-col p-0 transition-all duration-300",
52
- e === "bottom" && (r ? "h-[96vh]" : "h-[40vh]"),
53
- t
53
+ t === "bottom" && (l ? "h-[96vh]" : "h-[40vh]"),
54
+ a
54
55
  ),
55
56
  ...c,
56
57
  children: s
@@ -58,103 +59,109 @@ const w = x(
58
59
  )
59
60
  ] }) });
60
61
  });
61
- C.displayName = o.Content.displayName;
62
- const k = ({
63
- className: e,
64
- children: t,
62
+ E.displayName = o.Content.displayName;
63
+ const R = ({
64
+ className: t,
65
+ children: a,
65
66
  ...s
66
67
  }) => {
67
- const { isExpanded: l, onExpandToggle: c, expandable: m, side: r } = n.useContext(p);
68
- return /* @__PURE__ */ d(
68
+ const { isExpanded: d, onExpandToggle: c, expandable: m, side: l } = n.useContext(u);
69
+ return /* @__PURE__ */ i(
69
70
  "div",
70
71
  {
71
- className: i(
72
+ className: r(
72
73
  "flex px-4 py-4 shrink-0 items-center justify-between bg-light-blue border-b",
73
- r === "bottom" && "rounded-t-lg",
74
- e
74
+ l === "bottom" && "rounded-t-lg",
75
+ t
75
76
  ),
76
77
  ...s,
77
78
  children: [
78
- /* @__PURE__ */ a("div", { className: "flex flex-col space-y-1 text-center sm:text-left", children: t }),
79
- /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
80
- m && /* @__PURE__ */ d(
81
- "button",
82
- {
83
- type: "button",
84
- "data-component": "sheet-expand-toggle",
85
- onClick: c,
86
- className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none",
87
- children: [
88
- l ? /* @__PURE__ */ a(y, { className: "h-4 w-4" }) : /* @__PURE__ */ a(b, { className: "h-4 w-4" }),
89
- /* @__PURE__ */ a("span", { className: "sr-only", children: l ? "Collapse" : "Expand" })
90
- ]
91
- }
92
- ),
93
- /* @__PURE__ */ d(v, { "data-component": "sheet-close", className: "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", children: [
94
- /* @__PURE__ */ a(N, { className: "h-4 w-4" }),
95
- /* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
79
+ /* @__PURE__ */ e("div", { className: "flex flex-col space-y-1 text-center sm:text-left", children: a }),
80
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
81
+ m && /* @__PURE__ */ i(p, { children: [
82
+ /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ i(
83
+ "button",
84
+ {
85
+ type: "button",
86
+ "data-component": "sheet-expand-toggle",
87
+ onClick: c,
88
+ className: "rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none",
89
+ children: [
90
+ d ? /* @__PURE__ */ e(v, { className: "h-4 w-4" }) : /* @__PURE__ */ e(C, { className: "h-4 w-4" }),
91
+ /* @__PURE__ */ e("span", { className: "sr-only", children: d ? "Collapse" : "Expand" })
92
+ ]
93
+ }
94
+ ) }),
95
+ /* @__PURE__ */ e(f, { variant: "tertiary", side: "top", children: d ? "Collapse" : "Expand" })
96
+ ] }),
97
+ /* @__PURE__ */ i(p, { children: [
98
+ /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ i(w, { "data-component": "sheet-close", className: "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", children: [
99
+ /* @__PURE__ */ e(S, { className: "h-4 w-4" }),
100
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
101
+ ] }) }),
102
+ /* @__PURE__ */ e(f, { variant: "tertiary", side: "top", children: "Close" })
96
103
  ] })
97
104
  ] })
98
105
  ]
99
106
  }
100
107
  );
101
108
  };
102
- k.displayName = "SheetHeader";
103
- const E = ({
104
- className: e,
105
- ...t
106
- }) => /* @__PURE__ */ a(
109
+ R.displayName = "SheetHeader";
110
+ const D = ({
111
+ className: t,
112
+ ...a
113
+ }) => /* @__PURE__ */ e(
107
114
  "div",
108
115
  {
109
- className: i("flex-1 overflow-y-auto p-4", e),
110
- ...t
116
+ className: r("flex-1 overflow-y-auto p-4", t),
117
+ ...a
111
118
  }
112
119
  );
113
- E.displayName = "SheetBody";
114
- const T = ({
115
- className: e,
116
- ...t
117
- }) => /* @__PURE__ */ a(
120
+ D.displayName = "SheetBody";
121
+ const j = ({
122
+ className: t,
123
+ ...a
124
+ }) => /* @__PURE__ */ e(
118
125
  "div",
119
126
  {
120
- className: i(
127
+ className: r(
121
128
  "mt-auto flex px-4 py-3 shrink-0 items-center justify-end gap-2 border-t bg-background",
122
- e
129
+ t
123
130
  ),
124
- ...t,
125
- children: t.children
131
+ ...a,
132
+ children: a.children
126
133
  }
127
134
  );
128
- T.displayName = "SheetFooter";
129
- const R = n.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
135
+ j.displayName = "SheetFooter";
136
+ const P = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
130
137
  o.Title,
131
138
  {
132
139
  ref: s,
133
140
  "data-component": "sheet-title",
134
- className: i("text-sm font-bold leading-none tracking-tight", e),
135
- ...t
141
+ className: r("text-sm font-bold leading-none tracking-tight", t),
142
+ ...a
136
143
  }
137
144
  ));
138
- R.displayName = o.Title.displayName;
139
- const D = n.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ a(
145
+ P.displayName = o.Title.displayName;
146
+ const O = n.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e(
140
147
  o.Description,
141
148
  {
142
149
  ref: s,
143
- className: i("text-sm text-muted-foreground", e),
144
- ...t
150
+ className: r("text-sm text-muted-foreground", t),
151
+ ...a
145
152
  }
146
153
  ));
147
- D.displayName = o.Description.displayName;
154
+ O.displayName = o.Description.displayName;
148
155
  export {
149
- B as Sheet,
150
- E as SheetBody,
151
- v as SheetClose,
152
- C as SheetContent,
153
- D as SheetDescription,
154
- T as SheetFooter,
155
- k as SheetHeader,
156
- f as SheetOverlay,
157
- S as SheetPortal,
158
- R as SheetTitle,
159
- F as SheetTrigger
156
+ I as Sheet,
157
+ D as SheetBody,
158
+ w as SheetClose,
159
+ E as SheetContent,
160
+ O as SheetDescription,
161
+ j as SheetFooter,
162
+ R as SheetHeader,
163
+ g as SheetOverlay,
164
+ T as SheetPortal,
165
+ P as SheetTitle,
166
+ U as SheetTrigger
160
167
  };