fina-react-ds 1.0.24 → 1.0.27

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