fina-react-ds 1.0.25 → 1.0.28
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/alert-dialog.js +22 -22
- package/dist/components/alert.js +26 -26
- package/dist/components/avatar.js +19 -19
- package/dist/components/badge.js +20 -20
- package/dist/components/button.js +52 -52
- package/dist/components/calendar.js +83 -83
- package/dist/components/card.js +46 -46
- package/dist/components/checkbox.js +21 -21
- package/dist/components/date-picker.js +23 -23
- package/dist/components/dialog.js +38 -38
- package/dist/components/dropdown-menu.js +23 -23
- package/dist/components/file-uploader.js +47 -47
- package/dist/components/form-switch.js +9 -9
- package/dist/components/form.js +15 -15
- package/dist/components/hover-card.js +5 -5
- package/dist/components/input.js +15 -15
- package/dist/components/label.js +17 -17
- package/dist/components/mode-toggle.js +17 -17
- package/dist/components/pagination.js +25 -25
- package/dist/components/popover.js +8 -8
- package/dist/components/select.js +38 -38
- package/dist/components/sheet.js +78 -76
- package/dist/components/sidebar.js +198 -198
- package/dist/components/skeleton.js +7 -7
- package/dist/components/sonner.js +3 -3
- package/dist/components/switch.js +20 -20
- package/dist/components/table.js +44 -44
- package/dist/components/tabs.js +29 -29
- package/dist/components/textarea.js +12 -12
- package/dist/components/tooltip.js +14 -14
- package/dist/providers/loader-provider.js +7 -7
- package/dist/themes/base.css +985 -884
- package/package.json +1 -1
package/dist/components/input.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { cn as
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var r = (e, i) => o(e, "name", { value: i, configurable: !0 });
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { cn as l } from "../lib/utils.js";
|
|
5
|
+
function u({ className: e, type: i, ...t }) {
|
|
6
|
+
return /* @__PURE__ */ n(
|
|
7
7
|
"input",
|
|
8
8
|
{
|
|
9
9
|
type: i,
|
|
10
10
|
"data-slot": "input",
|
|
11
|
-
className:
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
11
|
+
className: l(
|
|
12
|
+
"placeholder:text-placeholder selection:bg-primary selection:text-primary-foreground bg-input border-input-border flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none md:text-sm",
|
|
13
|
+
"file:text-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
14
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
15
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
16
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
17
17
|
e
|
|
18
18
|
),
|
|
19
|
-
...
|
|
19
|
+
...t
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
r(u, "Input");
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
u as Input
|
|
26
26
|
};
|
package/dist/components/label.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var a = (e, t) =>
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { Label as
|
|
5
|
-
import { cn as
|
|
6
|
-
function
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var a = (e, t) => s(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Label as d } from "radix-ui";
|
|
5
|
+
import { cn as i } from "../lib/utils.js";
|
|
6
|
+
function b({
|
|
7
7
|
className: e,
|
|
8
8
|
required: t = !1,
|
|
9
|
-
children:
|
|
10
|
-
...
|
|
9
|
+
children: o,
|
|
10
|
+
...r
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
|
|
12
|
+
return /* @__PURE__ */ l(
|
|
13
|
+
d.Root,
|
|
14
14
|
{
|
|
15
15
|
"data-slot": "label",
|
|
16
|
-
className:
|
|
17
|
-
"
|
|
16
|
+
className: i(
|
|
17
|
+
"flex items-center text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
18
18
|
e
|
|
19
19
|
),
|
|
20
|
-
...
|
|
20
|
+
...r,
|
|
21
21
|
children: [
|
|
22
|
-
|
|
22
|
+
o,
|
|
23
23
|
" ",
|
|
24
|
-
t && /* @__PURE__ */
|
|
24
|
+
t && /* @__PURE__ */ n("span", { className: "text-destructive", children: "*" })
|
|
25
25
|
]
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
a(
|
|
29
|
+
a(b, "Label");
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
b as Label
|
|
32
32
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var o = (r,
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { Sun as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { DropdownMenu as
|
|
7
|
-
import { useTheme as
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var o = (r, a) => l(r, "name", { value: a, configurable: !0 });
|
|
3
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
4
|
+
import { Sun as i, Moon as s } from "lucide-react";
|
|
5
|
+
import { Button as m } from "./button.js";
|
|
6
|
+
import { DropdownMenu as c, DropdownMenuTrigger as d, DropdownMenuContent as h, DropdownMenuItem as t } from "./dropdown-menu.js";
|
|
7
|
+
import { useTheme as p } from "../providers/theme-provider.js";
|
|
8
8
|
function C() {
|
|
9
|
-
const { setTheme: r } =
|
|
10
|
-
return /* @__PURE__ */ c
|
|
11
|
-
/* @__PURE__ */ e(
|
|
12
|
-
/* @__PURE__ */ e(
|
|
13
|
-
/* @__PURE__ */ e(
|
|
14
|
-
/* @__PURE__ */ e("span", { className: "
|
|
9
|
+
const { setTheme: r } = p();
|
|
10
|
+
return /* @__PURE__ */ n(c, { children: [
|
|
11
|
+
/* @__PURE__ */ e(d, { asChild: !0, children: /* @__PURE__ */ n(m, { variant: "ghost", color: "dark", size: "icon", children: [
|
|
12
|
+
/* @__PURE__ */ e(i, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
|
|
13
|
+
/* @__PURE__ */ e(s, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
|
|
14
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: "Toggle theme" })
|
|
15
15
|
] }) }),
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */ e(
|
|
18
|
-
/* @__PURE__ */ e(
|
|
19
|
-
/* @__PURE__ */ e(
|
|
16
|
+
/* @__PURE__ */ n(h, { align: "end", children: [
|
|
17
|
+
/* @__PURE__ */ e(t, { onClick: /* @__PURE__ */ o(() => r("light"), "onClick"), children: "Light" }),
|
|
18
|
+
/* @__PURE__ */ e(t, { onClick: /* @__PURE__ */ o(() => r("dark"), "onClick"), children: "Dark" }),
|
|
19
|
+
/* @__PURE__ */ e(t, { onClick: /* @__PURE__ */ o(() => r("system"), "onClick"), children: "System" })
|
|
20
20
|
] })
|
|
21
21
|
] });
|
|
22
22
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var i = (a, n) =>
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var i = (a, n) => c(a, "name", { value: n, configurable: !0 });
|
|
3
3
|
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
4
|
-
import { ChevronLeftIcon as
|
|
4
|
+
import { ChevronLeftIcon as p, ChevronRightIcon as m, MoreHorizontalIcon as u } from "lucide-react";
|
|
5
5
|
import { cn as e } from "../lib/utils.js";
|
|
6
|
-
import { buttonVariants as
|
|
6
|
+
import { buttonVariants as d } from "./button.js";
|
|
7
7
|
function P({ className: a, ...n }) {
|
|
8
8
|
return /* @__PURE__ */ t(
|
|
9
9
|
"nav",
|
|
@@ -11,7 +11,7 @@ function P({ className: a, ...n }) {
|
|
|
11
11
|
role: "navigation",
|
|
12
12
|
"aria-label": "pagination",
|
|
13
13
|
"data-slot": "pagination",
|
|
14
|
-
className: e("
|
|
14
|
+
className: e("mx-auto flex w-full justify-center", a),
|
|
15
15
|
...n
|
|
16
16
|
}
|
|
17
17
|
);
|
|
@@ -25,7 +25,7 @@ function v({
|
|
|
25
25
|
"ul",
|
|
26
26
|
{
|
|
27
27
|
"data-slot": "pagination-content",
|
|
28
|
-
className: e("
|
|
28
|
+
className: e("flex flex-row items-center gap-1", a),
|
|
29
29
|
...n
|
|
30
30
|
}
|
|
31
31
|
);
|
|
@@ -35,11 +35,11 @@ function b({ ...a }) {
|
|
|
35
35
|
return /* @__PURE__ */ t("li", { "data-slot": "pagination-item", ...a });
|
|
36
36
|
}
|
|
37
37
|
i(b, "PaginationItem");
|
|
38
|
-
function
|
|
38
|
+
function r({
|
|
39
39
|
className: a,
|
|
40
40
|
isActive: n,
|
|
41
|
-
size:
|
|
42
|
-
...
|
|
41
|
+
size: s = "icon",
|
|
42
|
+
...l
|
|
43
43
|
}) {
|
|
44
44
|
return /* @__PURE__ */ t(
|
|
45
45
|
"a",
|
|
@@ -48,32 +48,32 @@ function c({
|
|
|
48
48
|
"data-slot": "pagination-link",
|
|
49
49
|
"data-active": n,
|
|
50
50
|
className: e(
|
|
51
|
-
|
|
51
|
+
d({
|
|
52
52
|
variant: n ? "contained" : "ghost",
|
|
53
53
|
color: "dark",
|
|
54
|
-
size:
|
|
54
|
+
size: s
|
|
55
55
|
}),
|
|
56
56
|
a
|
|
57
57
|
),
|
|
58
|
-
...
|
|
58
|
+
...l
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
|
-
i(
|
|
62
|
+
i(r, "PaginationLink");
|
|
63
63
|
function k({
|
|
64
64
|
className: a,
|
|
65
65
|
...n
|
|
66
66
|
}) {
|
|
67
67
|
return /* @__PURE__ */ o(
|
|
68
|
-
|
|
68
|
+
r,
|
|
69
69
|
{
|
|
70
70
|
"aria-label": "Go to previous page",
|
|
71
71
|
size: "default",
|
|
72
|
-
className: e("
|
|
72
|
+
className: e("gap-1 px-2.5 sm:pl-2.5", a),
|
|
73
73
|
...n,
|
|
74
74
|
children: [
|
|
75
|
-
/* @__PURE__ */ t(
|
|
76
|
-
/* @__PURE__ */ t("span", { className: "
|
|
75
|
+
/* @__PURE__ */ t(p, {}),
|
|
76
|
+
/* @__PURE__ */ t("span", { className: "hidden sm:block", children: "Précédent" })
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
);
|
|
@@ -84,15 +84,15 @@ function z({
|
|
|
84
84
|
...n
|
|
85
85
|
}) {
|
|
86
86
|
return /* @__PURE__ */ o(
|
|
87
|
-
|
|
87
|
+
r,
|
|
88
88
|
{
|
|
89
89
|
"aria-label": "Go to next page",
|
|
90
90
|
size: "default",
|
|
91
|
-
className: e("
|
|
91
|
+
className: e("gap-1 px-2.5 sm:pr-2.5", a),
|
|
92
92
|
...n,
|
|
93
93
|
children: [
|
|
94
|
-
/* @__PURE__ */ t("span", { className: "
|
|
95
|
-
/* @__PURE__ */ t(
|
|
94
|
+
/* @__PURE__ */ t("span", { className: "hidden sm:block", children: "Suivant" }),
|
|
95
|
+
/* @__PURE__ */ t(m, {})
|
|
96
96
|
]
|
|
97
97
|
}
|
|
98
98
|
);
|
|
@@ -107,11 +107,11 @@ function j({
|
|
|
107
107
|
{
|
|
108
108
|
"aria-hidden": !0,
|
|
109
109
|
"data-slot": "pagination-ellipsis",
|
|
110
|
-
className: e("
|
|
110
|
+
className: e("flex size-9 items-center justify-center", a),
|
|
111
111
|
...n,
|
|
112
112
|
children: [
|
|
113
|
-
/* @__PURE__ */ t(
|
|
114
|
-
/* @__PURE__ */ t("span", { className: "
|
|
113
|
+
/* @__PURE__ */ t(u, { className: "size-4" }),
|
|
114
|
+
/* @__PURE__ */ t("span", { className: "sr-only", children: "More pages" })
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
117
|
);
|
|
@@ -122,7 +122,7 @@ export {
|
|
|
122
122
|
v as PaginationContent,
|
|
123
123
|
j as PaginationEllipsis,
|
|
124
124
|
b as PaginationItem,
|
|
125
|
-
|
|
125
|
+
r as PaginationLink,
|
|
126
126
|
z as PaginationNext,
|
|
127
127
|
k as PaginationPrevious
|
|
128
128
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var t = (o, a) =>
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var t = (o, a) => i(o, "name", { value: a, configurable: !0 });
|
|
3
3
|
import { jsx as e } from "react/jsx-runtime";
|
|
4
4
|
import { Popover as r } from "radix-ui";
|
|
5
|
-
import { cn as
|
|
6
|
-
function
|
|
5
|
+
import { cn as p } from "../lib/utils.js";
|
|
6
|
+
function c({
|
|
7
7
|
...o
|
|
8
8
|
}) {
|
|
9
9
|
return /* @__PURE__ */ e(r.Root, { "data-slot": "popover", ...o });
|
|
10
10
|
}
|
|
11
|
-
t(
|
|
11
|
+
t(c, "Popover");
|
|
12
12
|
function u({
|
|
13
13
|
...o
|
|
14
14
|
}) {
|
|
@@ -27,8 +27,8 @@ function v({
|
|
|
27
27
|
"data-slot": "popover-content",
|
|
28
28
|
align: a,
|
|
29
29
|
sideOffset: n,
|
|
30
|
-
className:
|
|
31
|
-
"
|
|
30
|
+
className: p(
|
|
31
|
+
"bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
32
32
|
o
|
|
33
33
|
),
|
|
34
34
|
...d
|
|
@@ -43,7 +43,7 @@ function g({
|
|
|
43
43
|
}
|
|
44
44
|
t(g, "PopoverAnchor");
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
c as Popover,
|
|
47
47
|
g as PopoverAnchor,
|
|
48
48
|
v as PopoverContent,
|
|
49
49
|
u as PopoverTrigger
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (
|
|
3
|
-
import { jsx as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var r = (i, o) => l(i, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
4
|
+
import p from "clsx";
|
|
5
|
+
import f from "react-select";
|
|
6
6
|
function y({
|
|
7
|
-
options:
|
|
8
|
-
placeholder:
|
|
9
|
-
onChange:
|
|
10
|
-
value:
|
|
11
|
-
...
|
|
7
|
+
options: i,
|
|
8
|
+
placeholder: o = "Sélectionner",
|
|
9
|
+
onChange: d,
|
|
10
|
+
value: a,
|
|
11
|
+
...c
|
|
12
12
|
}) {
|
|
13
|
-
const
|
|
14
|
-
Array.isArray(
|
|
15
|
-
|
|
16
|
-
) :
|
|
17
|
-
}, "handleChange"),
|
|
18
|
-
const
|
|
19
|
-
|
|
13
|
+
const u = /* @__PURE__ */ r((e) => {
|
|
14
|
+
Array.isArray(e) ? d == null || d(
|
|
15
|
+
e.map((t) => t.value)
|
|
16
|
+
) : d == null || d(e == null ? void 0 : e.value);
|
|
17
|
+
}, "handleChange"), n = /* @__PURE__ */ r(() => c.isMulti ? Array.isArray(a) ? (i == null ? void 0 : i.filter((e) => a.includes(e.value))) ?? [] : [] : i.find((e) => e.value === a), "getSelectedOptions"), s = /* @__PURE__ */ r((e) => {
|
|
18
|
+
const t = e.relatedTarget;
|
|
19
|
+
t && (t.tagName === "A" || t.tagName === "BUTTON" || t.tagName === "TEXTAREA" || t.tagName === "INPUT") && t.focus();
|
|
20
20
|
}, "onBlurWorkaround");
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
21
|
+
return /* @__PURE__ */ m(
|
|
22
|
+
f,
|
|
23
23
|
{
|
|
24
|
-
...
|
|
25
|
-
options:
|
|
26
|
-
onChange:
|
|
27
|
-
value:
|
|
24
|
+
...c,
|
|
25
|
+
options: i,
|
|
26
|
+
onChange: u,
|
|
27
|
+
value: n(),
|
|
28
28
|
classNames: {
|
|
29
|
-
control: /* @__PURE__ */ r(() => "
|
|
30
|
-
menu: /* @__PURE__ */ r(() => "
|
|
31
|
-
menuList: /* @__PURE__ */ r(() => "
|
|
32
|
-
option: /* @__PURE__ */ r((
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
control: /* @__PURE__ */ r(() => "px-3 py-1 border bg-input rounded-md text-base md:text-sm min-h-9! shadow-none border-input-border has-[:focus]:border-ring has-[:focus]:ring-[3px] ring-ring/50 has-aria-invalid:border-destructive! has-aria-invalid:ring-destructive/20! has-aria-invalid:dark:ring-destructive/40!", "control"),
|
|
30
|
+
menu: /* @__PURE__ */ r(() => "bg-popover border rounded-md py-0 overflow-hidden shadow-md mt-2", "menu"),
|
|
31
|
+
menuList: /* @__PURE__ */ r(() => "py-0 bg-popover", "menuList"),
|
|
32
|
+
option: /* @__PURE__ */ r((e) => p(
|
|
33
|
+
"py-1 px-2 text-popover-foreground text-base md:text-sm!",
|
|
34
|
+
e.isSelected && "bg-input-accent!",
|
|
35
|
+
e.isFocused && "bg-input-accent/50"
|
|
36
36
|
), "option"),
|
|
37
|
-
placeholder: /* @__PURE__ */ r(() => "
|
|
38
|
-
multiValue: /* @__PURE__ */ r(() => "
|
|
39
|
-
multiValueRemove: /* @__PURE__ */ r(() => "
|
|
40
|
-
dropdownIndicator: /* @__PURE__ */ r(() => "
|
|
41
|
-
clearIndicator: /* @__PURE__ */ r(() => "
|
|
42
|
-
noOptionsMessage: /* @__PURE__ */ r(() => "
|
|
37
|
+
placeholder: /* @__PURE__ */ r(() => "text-placeholder", "placeholder"),
|
|
38
|
+
multiValue: /* @__PURE__ */ r(() => "bg-input-accent text-input-accent-foreground mr-1 px-1 py-0.5 rounded-md flex items-center", "multiValue"),
|
|
39
|
+
multiValueRemove: /* @__PURE__ */ r(() => "cursor-pointer", "multiValueRemove"),
|
|
40
|
+
dropdownIndicator: /* @__PURE__ */ r(() => "text-placeholder cursor-pointer", "dropdownIndicator"),
|
|
41
|
+
clearIndicator: /* @__PURE__ */ r(() => "text-placeholder cursor-pointer", "clearIndicator"),
|
|
42
|
+
noOptionsMessage: /* @__PURE__ */ r(() => "py-2", "noOptionsMessage")
|
|
43
43
|
},
|
|
44
|
-
onBlur:
|
|
45
|
-
placeholder:
|
|
44
|
+
onBlur: s,
|
|
45
|
+
placeholder: o,
|
|
46
46
|
unstyled: !0
|
|
47
47
|
}
|
|
48
48
|
);
|
package/dist/components/sheet.js
CHANGED
|
@@ -1,158 +1,160 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as a, jsxs as
|
|
4
|
-
import { Dialog as
|
|
5
|
-
import { XIcon as
|
|
6
|
-
import { cn as
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var o = (t, e) => c(t, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
import { Dialog as s } from "radix-ui";
|
|
5
|
+
import { XIcon as f } from "lucide-react";
|
|
6
|
+
import { cn as n } from "../lib/utils.js";
|
|
7
|
+
import { Button as u } from "./button.js";
|
|
8
|
+
function v({ ...t }) {
|
|
9
|
+
return /* @__PURE__ */ a(s.Root, { "data-slot": "sheet", ...t });
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
-
function
|
|
11
|
+
o(v, "Sheet");
|
|
12
|
+
function N({
|
|
12
13
|
...t
|
|
13
14
|
}) {
|
|
14
|
-
return /* @__PURE__ */ a(
|
|
15
|
+
return /* @__PURE__ */ a(s.Trigger, { "data-slot": "sheet-trigger", ...t });
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
-
function
|
|
17
|
+
o(N, "SheetTrigger");
|
|
18
|
+
function w({
|
|
18
19
|
...t
|
|
19
20
|
}) {
|
|
20
|
-
return /* @__PURE__ */ a(
|
|
21
|
+
return /* @__PURE__ */ a(s.Close, { "data-slot": "sheet-close", ...t });
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
function
|
|
23
|
+
o(w, "SheetClose");
|
|
24
|
+
function h({
|
|
24
25
|
...t
|
|
25
26
|
}) {
|
|
26
|
-
return /* @__PURE__ */ a(
|
|
27
|
+
return /* @__PURE__ */ a(s.Portal, { "data-slot": "sheet-portal", ...t });
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
function
|
|
29
|
+
o(h, "SheetPortal");
|
|
30
|
+
function m({
|
|
30
31
|
className: t,
|
|
31
32
|
...e
|
|
32
33
|
}) {
|
|
33
34
|
return /* @__PURE__ */ a(
|
|
34
|
-
|
|
35
|
+
s.Overlay,
|
|
35
36
|
{
|
|
36
37
|
"data-slot": "sheet-overlay",
|
|
37
|
-
className:
|
|
38
|
-
"
|
|
38
|
+
className: n(
|
|
39
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
39
40
|
t
|
|
40
41
|
),
|
|
41
42
|
...e
|
|
42
43
|
}
|
|
43
44
|
);
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
function
|
|
46
|
+
o(m, "SheetOverlay");
|
|
47
|
+
function C({
|
|
47
48
|
className: t,
|
|
48
49
|
children: e,
|
|
49
|
-
side:
|
|
50
|
-
size:
|
|
51
|
-
...
|
|
50
|
+
side: l = "right",
|
|
51
|
+
size: r = "s",
|
|
52
|
+
...d
|
|
52
53
|
}) {
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */ a(
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
54
|
+
return /* @__PURE__ */ i(h, { children: [
|
|
55
|
+
/* @__PURE__ */ a(m, {}),
|
|
56
|
+
/* @__PURE__ */ i(
|
|
57
|
+
s.Content,
|
|
57
58
|
{
|
|
58
59
|
"data-slot": "sheet-content",
|
|
59
|
-
className:
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
className: n(
|
|
61
|
+
"bg-card data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
62
|
+
l === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full border-l w-[90%]",
|
|
63
|
+
l === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full border-r w-[90%]",
|
|
64
|
+
r === "s" && "md:max-w-1/3",
|
|
65
|
+
r === "m" && "md:max-w-1/2",
|
|
66
|
+
r === "l" && "md:max-w-2/3",
|
|
66
67
|
t
|
|
67
68
|
),
|
|
68
|
-
...
|
|
69
|
+
...d,
|
|
69
70
|
children: [
|
|
70
71
|
e,
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
/* @__PURE__ */ a(
|
|
73
|
+
s.Close,
|
|
74
|
+
{
|
|
75
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
|
|
76
|
+
asChild: !0,
|
|
77
|
+
children: /* @__PURE__ */ i(u, { variant: "ghost", color: "dark", size: "icon", children: [
|
|
78
|
+
/* @__PURE__ */ a(f, { className: "size-4" }),
|
|
79
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
80
|
+
] })
|
|
81
|
+
}
|
|
82
|
+
)
|
|
75
83
|
]
|
|
76
84
|
}
|
|
77
85
|
)
|
|
78
86
|
] });
|
|
79
87
|
}
|
|
80
|
-
|
|
81
|
-
function
|
|
88
|
+
o(C, "SheetContent");
|
|
89
|
+
function T({ className: t, ...e }) {
|
|
82
90
|
return /* @__PURE__ */ a(
|
|
83
91
|
"div",
|
|
84
92
|
{
|
|
85
93
|
"data-slot": "sheet-header",
|
|
86
|
-
className:
|
|
87
|
-
"fc:flex fc:flex-col fc:gap-1.5 fc:px-4 fc:pt-4 ",
|
|
88
|
-
t
|
|
89
|
-
),
|
|
94
|
+
className: n("flex flex-col gap-1.5 px-4 pt-4 ", t),
|
|
90
95
|
...e
|
|
91
96
|
}
|
|
92
97
|
);
|
|
93
98
|
}
|
|
94
|
-
|
|
95
|
-
function
|
|
99
|
+
o(T, "SheetHeader");
|
|
100
|
+
function k({ className: t, ...e }) {
|
|
96
101
|
return /* @__PURE__ */ a(
|
|
97
102
|
"div",
|
|
98
103
|
{
|
|
99
104
|
"data-slot": "sheet-footer",
|
|
100
|
-
className:
|
|
101
|
-
"fc:mt-auto fc:flex fc:flex-col fc:gap-2 fc:px-4 fc:pb-4",
|
|
102
|
-
t
|
|
103
|
-
),
|
|
105
|
+
className: n("mt-auto flex flex-col gap-2 px-4 pb-4", t),
|
|
104
106
|
...e
|
|
105
107
|
}
|
|
106
108
|
);
|
|
107
109
|
}
|
|
108
|
-
|
|
109
|
-
function
|
|
110
|
+
o(k, "SheetFooter");
|
|
111
|
+
function D({ className: t, ...e }) {
|
|
110
112
|
return /* @__PURE__ */ a(
|
|
111
113
|
"div",
|
|
112
114
|
{
|
|
113
115
|
"data-slot": "sheet-body",
|
|
114
|
-
className:
|
|
116
|
+
className: n("p-4 flex-1 overflow-y-auto", t),
|
|
115
117
|
...e
|
|
116
118
|
}
|
|
117
119
|
);
|
|
118
120
|
}
|
|
119
|
-
|
|
120
|
-
function
|
|
121
|
+
o(D, "SheetBody");
|
|
122
|
+
function j({
|
|
121
123
|
className: t,
|
|
122
124
|
...e
|
|
123
125
|
}) {
|
|
124
126
|
return /* @__PURE__ */ a(
|
|
125
|
-
|
|
127
|
+
s.Title,
|
|
126
128
|
{
|
|
127
129
|
"data-slot": "sheet-title",
|
|
128
|
-
className:
|
|
130
|
+
className: n("text-foreground font-semibold", t),
|
|
129
131
|
...e
|
|
130
132
|
}
|
|
131
133
|
);
|
|
132
134
|
}
|
|
133
|
-
|
|
134
|
-
function
|
|
135
|
+
o(j, "SheetTitle");
|
|
136
|
+
function z({
|
|
135
137
|
className: t,
|
|
136
138
|
...e
|
|
137
139
|
}) {
|
|
138
140
|
return /* @__PURE__ */ a(
|
|
139
|
-
|
|
141
|
+
s.Description,
|
|
140
142
|
{
|
|
141
143
|
"data-slot": "sheet-description",
|
|
142
|
-
className:
|
|
144
|
+
className: n("text-muted text-sm", t),
|
|
143
145
|
...e
|
|
144
146
|
}
|
|
145
147
|
);
|
|
146
148
|
}
|
|
147
|
-
|
|
149
|
+
o(z, "SheetDescription");
|
|
148
150
|
export {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
151
|
+
v as Sheet,
|
|
152
|
+
D as SheetBody,
|
|
153
|
+
w as SheetClose,
|
|
154
|
+
C as SheetContent,
|
|
155
|
+
z as SheetDescription,
|
|
156
|
+
k as SheetFooter,
|
|
157
|
+
T as SheetHeader,
|
|
158
|
+
j as SheetTitle,
|
|
159
|
+
N as SheetTrigger
|
|
158
160
|
};
|