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.
- package/dist/components/ui/accordion.js +37 -33
- package/dist/components/ui/alert.d.ts +2 -0
- package/dist/components/ui/alert.js +46 -31
- package/dist/components/ui/breadcrumb.d.ts +7 -2
- package/dist/components/ui/breadcrumb.js +98 -77
- package/dist/components/ui/calendar.js +198 -178
- package/dist/components/ui/date-picker/date-picker.js +94 -87
- package/dist/components/ui/date-picker/date-range-picker.js +124 -117
- package/dist/components/ui/date-picker/month-picker.js +98 -91
- package/dist/components/ui/date-picker/month-range-picker.js +118 -111
- package/dist/components/ui/date-picker/multi-date-picker.js +76 -69
- package/dist/components/ui/date-picker/multi-month-picker.js +72 -65
- package/dist/components/ui/date-picker/multi-week-picker.js +88 -81
- package/dist/components/ui/date-picker/week-picker.js +107 -100
- package/dist/components/ui/date-picker/week-range-picker.js +144 -137
- package/dist/components/ui/dialog.js +65 -61
- package/dist/components/ui/drawer.d.ts +3 -1
- package/dist/components/ui/drawer.js +44 -29
- package/dist/components/ui/file-upload.d.ts +2 -1
- package/dist/components/ui/file-upload.js +159 -135
- package/dist/components/ui/filter-panel/filter-panel.js +89 -70
- package/dist/components/ui/filter-strip/filter-summary.js +117 -104
- package/dist/components/ui/filter-strip/filter-tag-list.js +81 -65
- package/dist/components/ui/popover.js +52 -48
- package/dist/components/ui/prompt.d.ts +2 -1
- package/dist/components/ui/prompt.js +81 -64
- package/dist/components/ui/sheet.js +91 -84
- package/dist/components/ui/sidebar.js +9 -8
- package/dist/components/ui/tabs.d.ts +2 -0
- package/dist/components/ui/tabs.js +58 -55
- package/dist/components/ui/tag.js +21 -20
- package/dist/components/ui/toast.js +41 -37
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +250 -248
- package/package.json +1 -1
|
@@ -1,87 +1,91 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import * as
|
|
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
|
|
5
|
-
import {
|
|
6
|
-
|
|
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:
|
|
10
|
+
ref: l,
|
|
10
11
|
align: o,
|
|
11
|
-
sideOffset:
|
|
12
|
+
sideOffset: n,
|
|
12
13
|
"data-component": "popover-content",
|
|
13
|
-
className:
|
|
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
|
-
...
|
|
18
|
+
...d
|
|
18
19
|
}
|
|
19
20
|
) }));
|
|
20
|
-
|
|
21
|
-
const
|
|
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:
|
|
28
|
+
className: r("flex items-center justify-between gap-4 mb-3", e),
|
|
28
29
|
...o
|
|
29
30
|
}
|
|
30
31
|
);
|
|
31
|
-
|
|
32
|
-
const
|
|
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:
|
|
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
|
-
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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:
|
|
68
|
-
|
|
69
|
-
const
|
|
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__ */
|
|
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
|
-
|
|
80
|
+
y.displayName = "PopoverFooter";
|
|
77
81
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
|
2
|
-
import * as
|
|
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
|
|
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 {
|
|
7
|
-
import {
|
|
8
|
-
|
|
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
|
-
}),
|
|
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:
|
|
24
|
-
onOpenChange:
|
|
25
|
-
title:
|
|
26
|
-
description:
|
|
27
|
-
confirmLabel:
|
|
28
|
-
cancelLabel:
|
|
29
|
-
onConfirm:
|
|
30
|
-
onCancel:
|
|
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:
|
|
33
|
-
variant:
|
|
34
|
-
showClose:
|
|
48
|
+
cancelVariant: g = "secondary",
|
|
49
|
+
variant: t = "default",
|
|
50
|
+
showClose: C = !0,
|
|
35
51
|
preventOutsideClick: w = !1,
|
|
36
|
-
footer:
|
|
37
|
-
children:
|
|
52
|
+
footer: n,
|
|
53
|
+
children: d,
|
|
38
54
|
className: N,
|
|
39
|
-
...
|
|
40
|
-
},
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
}, s =
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
|
|
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:
|
|
65
|
+
ref: v,
|
|
50
66
|
"aria-describedby": void 0,
|
|
51
|
-
hideClose: !
|
|
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":
|
|
77
|
+
"data-variant": t,
|
|
62
78
|
children: [
|
|
63
|
-
s && /* @__PURE__ */
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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__ */
|
|
82
|
-
|
|
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__ */
|
|
87
|
-
|
|
102
|
+
/* @__PURE__ */ e(
|
|
103
|
+
G,
|
|
88
104
|
{
|
|
89
105
|
className: r(
|
|
90
106
|
s && "text-[18px] font-extrabold text-[#1f2b4d]"
|
|
91
107
|
),
|
|
92
|
-
children:
|
|
108
|
+
children: a
|
|
93
109
|
}
|
|
94
110
|
),
|
|
95
|
-
|
|
96
|
-
|
|
111
|
+
c && /* @__PURE__ */ e(
|
|
112
|
+
J,
|
|
97
113
|
{
|
|
98
114
|
className: r(s && "text-sm text-[#60697d]"),
|
|
99
|
-
children:
|
|
115
|
+
children: c
|
|
100
116
|
}
|
|
101
117
|
)
|
|
102
118
|
]
|
|
103
119
|
}
|
|
104
120
|
),
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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__ */
|
|
114
|
-
|
|
129
|
+
/* @__PURE__ */ e(
|
|
130
|
+
f,
|
|
115
131
|
{
|
|
116
|
-
variant:
|
|
117
|
-
onClick:
|
|
132
|
+
variant: g,
|
|
133
|
+
onClick: T,
|
|
118
134
|
className: r(s && "h-10 px-6"),
|
|
119
|
-
children:
|
|
135
|
+
children: u
|
|
120
136
|
}
|
|
121
137
|
),
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
|
|
138
|
+
/* @__PURE__ */ e(
|
|
139
|
+
f,
|
|
124
140
|
{
|
|
125
141
|
variant: j,
|
|
126
|
-
onClick:
|
|
142
|
+
onClick: D,
|
|
127
143
|
className: r(s && "h-10 px-6"),
|
|
128
|
-
children:
|
|
144
|
+
children: p
|
|
129
145
|
}
|
|
130
146
|
)
|
|
131
147
|
]
|
|
@@ -136,8 +152,9 @@ const U = P("", {
|
|
|
136
152
|
) });
|
|
137
153
|
}
|
|
138
154
|
);
|
|
139
|
-
|
|
155
|
+
M.displayName = "Prompt";
|
|
140
156
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
157
|
+
M as Prompt,
|
|
158
|
+
L as PromptClose,
|
|
159
|
+
$ as promptVariants
|
|
143
160
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
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
|
|
5
|
-
import { ChevronDown as
|
|
6
|
-
import { cn as
|
|
7
|
-
|
|
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
|
-
}),
|
|
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:
|
|
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
|
-
|
|
17
|
+
t
|
|
17
18
|
),
|
|
18
|
-
...
|
|
19
|
+
...a,
|
|
19
20
|
ref: s
|
|
20
21
|
}
|
|
21
22
|
));
|
|
22
|
-
|
|
23
|
-
const
|
|
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
|
-
),
|
|
39
|
-
const [
|
|
40
|
-
|
|
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__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
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:
|
|
50
|
-
|
|
50
|
+
className: r(
|
|
51
|
+
k({ side: t }),
|
|
51
52
|
"flex flex-col p-0 transition-all duration-300",
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
62
|
-
const
|
|
63
|
-
className:
|
|
64
|
-
children:
|
|
62
|
+
E.displayName = o.Content.displayName;
|
|
63
|
+
const R = ({
|
|
64
|
+
className: t,
|
|
65
|
+
children: a,
|
|
65
66
|
...s
|
|
66
67
|
}) => {
|
|
67
|
-
const { isExpanded:
|
|
68
|
-
return /* @__PURE__ */
|
|
68
|
+
const { isExpanded: d, onExpandToggle: c, expandable: m, side: l } = n.useContext(u);
|
|
69
|
+
return /* @__PURE__ */ i(
|
|
69
70
|
"div",
|
|
70
71
|
{
|
|
71
|
-
className:
|
|
72
|
+
className: r(
|
|
72
73
|
"flex px-4 py-4 shrink-0 items-center justify-between bg-light-blue border-b",
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
l === "bottom" && "rounded-t-lg",
|
|
75
|
+
t
|
|
75
76
|
),
|
|
76
77
|
...s,
|
|
77
78
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
m && /* @__PURE__ */
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
|
|
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
|
-
|
|
103
|
-
const
|
|
104
|
-
className:
|
|
105
|
-
...
|
|
106
|
-
}) => /* @__PURE__ */
|
|
109
|
+
R.displayName = "SheetHeader";
|
|
110
|
+
const D = ({
|
|
111
|
+
className: t,
|
|
112
|
+
...a
|
|
113
|
+
}) => /* @__PURE__ */ e(
|
|
107
114
|
"div",
|
|
108
115
|
{
|
|
109
|
-
className:
|
|
110
|
-
...
|
|
116
|
+
className: r("flex-1 overflow-y-auto p-4", t),
|
|
117
|
+
...a
|
|
111
118
|
}
|
|
112
119
|
);
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
className:
|
|
116
|
-
...
|
|
117
|
-
}) => /* @__PURE__ */
|
|
120
|
+
D.displayName = "SheetBody";
|
|
121
|
+
const j = ({
|
|
122
|
+
className: t,
|
|
123
|
+
...a
|
|
124
|
+
}) => /* @__PURE__ */ e(
|
|
118
125
|
"div",
|
|
119
126
|
{
|
|
120
|
-
className:
|
|
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
|
-
|
|
129
|
+
t
|
|
123
130
|
),
|
|
124
|
-
...
|
|
125
|
-
children:
|
|
131
|
+
...a,
|
|
132
|
+
children: a.children
|
|
126
133
|
}
|
|
127
134
|
);
|
|
128
|
-
|
|
129
|
-
const
|
|
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:
|
|
135
|
-
...
|
|
141
|
+
className: r("text-sm font-bold leading-none tracking-tight", t),
|
|
142
|
+
...a
|
|
136
143
|
}
|
|
137
144
|
));
|
|
138
|
-
|
|
139
|
-
const
|
|
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:
|
|
144
|
-
...
|
|
150
|
+
className: r("text-sm text-muted-foreground", t),
|
|
151
|
+
...a
|
|
145
152
|
}
|
|
146
153
|
));
|
|
147
|
-
|
|
154
|
+
O.displayName = o.Description.displayName;
|
|
148
155
|
export {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
};
|