@definable/ui 0.1.31 → 0.1.35

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 (50) hide show
  1. package/dist/components/alert-dialog.js +15 -15
  2. package/dist/components/alert.js +21 -21
  3. package/dist/components/avatar.js +7 -7
  4. package/dist/components/badge.js +10 -10
  5. package/dist/components/button.d.ts +1 -1
  6. package/dist/components/button.js +20 -18
  7. package/dist/components/calendar.js +26 -26
  8. package/dist/components/card.js +27 -27
  9. package/dist/components/carousel.js +39 -39
  10. package/dist/components/checkbox.js +7 -7
  11. package/dist/components/collapse.js +17 -17
  12. package/dist/components/command-menu.js +30 -30
  13. package/dist/components/command.js +55 -55
  14. package/dist/components/confirmation-modal.js +23 -23
  15. package/dist/components/context-menu.js +30 -30
  16. package/dist/components/dialog.js +33 -33
  17. package/dist/components/drawer.js +7 -7
  18. package/dist/components/dropdown-menu.js +16 -16
  19. package/dist/components/dropzone.js +3 -3
  20. package/dist/components/image-cropper-modal.js +57 -57
  21. package/dist/components/image-cropper.js +45 -45
  22. package/dist/components/input.js +9 -9
  23. package/dist/components/loader.js +4 -4
  24. package/dist/components/loading-placeholder.js +4 -4
  25. package/dist/components/mention.js +18 -18
  26. package/dist/components/modal.js +39 -39
  27. package/dist/components/picker.js +30 -30
  28. package/dist/components/popover.js +7 -7
  29. package/dist/components/progress.js +13 -13
  30. package/dist/components/radio-group.js +19 -19
  31. package/dist/components/scroll-area.js +20 -20
  32. package/dist/components/select.js +28 -28
  33. package/dist/components/selection-bar.js +18 -18
  34. package/dist/components/separator.js +8 -8
  35. package/dist/components/sheet.js +28 -28
  36. package/dist/components/skeleton.js +8 -8
  37. package/dist/components/slider.js +13 -13
  38. package/dist/components/stepper.js +1 -1
  39. package/dist/components/switch.js +8 -8
  40. package/dist/components/table-empty.js +6 -6
  41. package/dist/components/table-mobile.js +36 -36
  42. package/dist/components/table.js +80 -80
  43. package/dist/components/tabs.js +16 -16
  44. package/dist/components/textarea.js +9 -9
  45. package/dist/components/tooltip.js +5 -5
  46. package/dist/components/use-toast.js +9 -9
  47. package/dist/index.js +1 -1
  48. package/dist/{stepper-modal-JXpOXOV2.js → stepper-modal-Bh6gsg8o.js} +79 -79
  49. package/dist/styles.css +1 -1
  50. package/package.json +1 -1
@@ -3,22 +3,22 @@ import * as t from "react";
3
3
  import * as e from "@radix-ui/react-switch";
4
4
  import { cn as a } from "../lib/utils.js";
5
5
  import { motion as n } from "framer-motion";
6
- const c = t.forwardRef(({ className: r, ...o }, s) => /* @__PURE__ */ i(
6
+ const l = t.forwardRef(({ className: o, ...r }, s) => /* @__PURE__ */ i(
7
7
  e.Root,
8
8
  {
9
9
  className: a(
10
- "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
11
- r
10
+ "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black/20 dark:focus-visible:ring-white/20 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-[#1F1F20] disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[var(--text-primary)] data-[state=unchecked]:bg-[var(--border-input)]",
11
+ o
12
12
  ),
13
- ...o,
13
+ ...r,
14
14
  ref: s,
15
15
  children: /* @__PURE__ */ i(e.Thumb, { asChild: !0, children: /* @__PURE__ */ i(
16
16
  n.div,
17
17
  {
18
- className: "block h-4 w-4 rounded-full bg-background shadow-lg ring-0",
18
+ className: "block h-4 w-4 rounded-full bg-[var(--bg-card)] shadow-lg ring-0",
19
19
  initial: !1,
20
20
  animate: {
21
- x: o.checked ? 16 : 0
21
+ x: r.checked ? 16 : 0
22
22
  },
23
23
  transition: {
24
24
  type: "spring",
@@ -29,7 +29,7 @@ const c = t.forwardRef(({ className: r, ...o }, s) => /* @__PURE__ */ i(
29
29
  ) })
30
30
  }
31
31
  ));
32
- c.displayName = e.Root.displayName;
32
+ l.displayName = e.Root.displayName;
33
33
  export {
34
- c as Switch
34
+ l as Switch
35
35
  };
@@ -1,20 +1,20 @@
1
1
  import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import { FolderOpen as m } from "lucide-react";
3
- import { Button as i } from "./button.js";
2
+ import { FolderOpen as l } from "lucide-react";
3
+ import { Button as m } from "./button.js";
4
4
  function x({
5
5
  title: a = "No data available",
6
6
  description: s = "Get started by creating your first record.",
7
7
  actionLabel: c = "Create New",
8
8
  onAction: t,
9
- icon: l = /* @__PURE__ */ e(m, { className: "w-10 h-10 text-muted-foreground" })
9
+ icon: i = /* @__PURE__ */ e(l, { className: "w-10 h-10 text-tertiary" })
10
10
  }) {
11
11
  return /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12 px-4", children: /* @__PURE__ */ r("div", { className: "space-y-5 text-center", children: [
12
- /* @__PURE__ */ e("div", { className: "flex justify-center", children: l }),
12
+ /* @__PURE__ */ e("div", { className: "flex justify-center", children: i }),
13
13
  /* @__PURE__ */ r("div", { className: "space-y-2", children: [
14
14
  /* @__PURE__ */ e("h3", { className: "text-lg font-medium", children: a }),
15
- /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground max-w-sm mx-auto", children: s })
15
+ /* @__PURE__ */ e("p", { className: "text-sm text-tertiary max-w-sm mx-auto", children: s })
16
16
  ] }),
17
- t && /* @__PURE__ */ e(i, { onClick: t, children: c })
17
+ t && /* @__PURE__ */ e(m, { onClick: t, children: c })
18
18
  ] }) });
19
19
  }
20
20
  export {
@@ -1,75 +1,75 @@
1
- import { jsx as r, jsxs as d } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
2
  import { cn as c } from "../lib/utils.js";
3
- import { Checkbox as v } from "./checkbox.js";
4
- import { Tooltip as b } from "./tooltip.js";
3
+ import { Checkbox as u } from "./checkbox.js";
4
+ import { Tooltip as f } from "./tooltip.js";
5
5
  import { useState as g } from "react";
6
6
  import { ChevronRight as x } from "lucide-react";
7
7
  function V({
8
- data: n,
9
- columns: o,
10
- showCheckbox: m = !0,
8
+ data: h,
9
+ columns: l,
10
+ showCheckbox: n = !0,
11
11
  onRowClick: t,
12
- selectedItems: i,
13
- onSelect: l,
14
- isLoading: h = !1,
15
- loadingRows: u = 3
12
+ selectedItems: d,
13
+ onSelect: o,
14
+ isLoading: m = !1,
15
+ loadingRows: v = 3
16
16
  }) {
17
- const [f, p] = g(null);
18
- return h ? /* @__PURE__ */ r("div", { className: "space-y-4", children: Array(u).fill(0).map((a, s) => /* @__PURE__ */ d(
17
+ const [b, p] = g(null);
18
+ return m ? /* @__PURE__ */ r("div", { className: "space-y-4", children: Array(v).fill(0).map((a, s) => /* @__PURE__ */ i(
19
19
  "div",
20
20
  {
21
- className: "border border-border/50 rounded-xl p-4 space-y-4 shadow-sm bg-card/30 animate-pulse",
21
+ className: "border border-light rounded-xl p-4 space-y-4 shadow-sm bg-card animate-pulse",
22
22
  children: [
23
- /* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
24
- /* @__PURE__ */ r("div", { className: "h-5 bg-muted/70 rounded-md w-2/5" }),
25
- m && /* @__PURE__ */ r("div", { className: "h-4 w-4 rounded-md bg-muted/50" })
23
+ /* @__PURE__ */ i("div", { className: "flex items-center justify-between", children: [
24
+ /* @__PURE__ */ r("div", { className: "h-5 bg-hover/70 rounded-md w-2/5" }),
25
+ n && /* @__PURE__ */ r("div", { className: "h-4 w-4 rounded-md bg-hover/50" })
26
26
  ] }),
27
- /* @__PURE__ */ r("div", { className: "space-y-3 pt-2", children: o.slice(0, 4).map((e, N) => /* @__PURE__ */ d("div", { className: "flex items-start gap-3", children: [
28
- /* @__PURE__ */ r("div", { className: "h-4 bg-muted/40 rounded-md w-1/4" }),
29
- /* @__PURE__ */ r("div", { className: "h-4 bg-muted/60 rounded-md", style: { width: Math.random() * 50 + 30 + "%" } })
27
+ /* @__PURE__ */ r("div", { className: "space-y-3 pt-2", children: l.slice(0, 4).map((e, N) => /* @__PURE__ */ i("div", { className: "flex items-start gap-3", children: [
28
+ /* @__PURE__ */ r("div", { className: "h-4 bg-hover/40 rounded-md w-1/4" }),
29
+ /* @__PURE__ */ r("div", { className: "h-4 bg-hover/60 rounded-md", style: { width: Math.random() * 50 + 30 + "%" } })
30
30
  ] }, `skeleton-col-${e.id}`)) })
31
31
  ]
32
32
  },
33
33
  `skeleton-${s}`
34
- )) }) : n.length === 0 ? null : /* @__PURE__ */ r("div", { className: "space-y-4", children: n.map((a, s) => /* @__PURE__ */ d(
34
+ )) }) : h.length === 0 ? null : /* @__PURE__ */ r("div", { className: "space-y-4", children: h.map((a, s) => /* @__PURE__ */ i(
35
35
  "div",
36
36
  {
37
37
  className: c(
38
- "border border-border/40 rounded-xl overflow-hidden bg-card/30 shadow-sm transition-all duration-200",
39
- t && "cursor-pointer hover:border-primary/30 hover:shadow-md hover:bg-card/50"
38
+ "border border-light/40 rounded-xl overflow-hidden bg-card shadow-sm transition-all duration-200",
39
+ t && "cursor-pointer hover:border-primary/30 hover:shadow-md hover:bg-card"
40
40
  ),
41
41
  onClick: () => t == null ? void 0 : t(a),
42
42
  children: [
43
- /* @__PURE__ */ d("div", { className: "flex items-center justify-between p-4 border-b border-border/30 bg-muted/5", children: [
44
- /* @__PURE__ */ r("div", { className: "font-medium", children: o[0].cell(a) || `Item ${s + 1}` }),
45
- /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
46
- m && /* @__PURE__ */ r(
47
- v,
43
+ /* @__PURE__ */ i("div", { className: "flex items-center justify-between p-4 border-b border-light bg-hover/5", children: [
44
+ /* @__PURE__ */ r("div", { className: "font-medium", children: l[0].cell(a) || `Item ${s + 1}` }),
45
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
46
+ n && /* @__PURE__ */ r(
47
+ u,
48
48
  {
49
- checked: i == null ? void 0 : i.has(a.id),
49
+ checked: d == null ? void 0 : d.has(a.id),
50
50
  onClick: (e) => {
51
- e.stopPropagation(), l == null || l(a.id, !(i != null && i.has(a.id)));
51
+ e.stopPropagation(), o == null || o(a.id, !(d != null && d.has(a.id)));
52
52
  },
53
- className: "data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground"
53
+ className: "data-[state=checked]:bg-primary data-[state=checked]:text-white"
54
54
  }
55
55
  ),
56
- t && /* @__PURE__ */ r(x, { className: "h-4 w-4 text-muted-foreground/50" })
56
+ t && /* @__PURE__ */ r(x, { className: "h-4 w-4 text-tertiary/50" })
57
57
  ] })
58
58
  ] }),
59
- /* @__PURE__ */ r("div", { className: "px-4 py-3 space-y-3", children: o.slice(1).map((e) => /* @__PURE__ */ d(
59
+ /* @__PURE__ */ r("div", { className: "px-4 py-3 space-y-3", children: l.slice(1).map((e) => /* @__PURE__ */ i(
60
60
  "div",
61
61
  {
62
62
  className: "flex items-start gap-3 text-sm group",
63
63
  onMouseEnter: () => e.tooltipValue && p(`${s}-${e.id}`),
64
64
  onMouseLeave: () => p(null),
65
65
  children: [
66
- /* @__PURE__ */ r("div", { className: "font-medium text-muted-foreground w-1/3 min-w-[80px] text-xs uppercase tracking-wide pt-0.5", children: e.header }),
66
+ /* @__PURE__ */ r("div", { className: "font-medium text-tertiary w-1/3 min-w-[80px] text-xs uppercase tracking-wide pt-0.5", children: e.header }),
67
67
  /* @__PURE__ */ r("div", { className: c(
68
- "flex-1 min-w-0 text-foreground/90 group-hover:text-foreground transition-colors",
68
+ "flex-1 min-w-0 text-primary/90 group-hover:text-primary transition-colors",
69
69
  e.truncate && "truncate"
70
70
  ), children: e.cell(a) }),
71
- e.tooltipValue && f === `${s}-${e.id}` && /* @__PURE__ */ r(
72
- b,
71
+ e.tooltipValue && b === `${s}-${e.id}` && /* @__PURE__ */ r(
72
+ f,
73
73
  {
74
74
  content: e.tooltipValue(a),
75
75
  side: "bottom",
@@ -1,51 +1,51 @@
1
- import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
- import { cn as d } from "../lib/utils.js";
3
- import { Checkbox as y } from "./checkbox.js";
4
- import { Tooltip as k } from "./tooltip.js";
5
- import { useState as w } from "react";
6
- import { TableEmpty as z } from "./table-empty.js";
7
- const u = ({ children: t, className: n }) => /* @__PURE__ */ r("div", { className: d("border border-border/50 rounded-lg overflow-hidden bg-background shadow-sm", n), children: t });
1
+ import { jsx as i, jsxs as n } from "react/jsx-runtime";
2
+ import { cn as t } from "../lib/utils.js";
3
+ import { Checkbox as N } from "./checkbox.js";
4
+ import { Tooltip as w } from "./tooltip.js";
5
+ import { useState as z } from "react";
6
+ import { TableEmpty as V } from "./table-empty.js";
7
+ const g = ({ children: d, className: l }) => /* @__PURE__ */ i("div", { className: t("border border-light rounded-lg overflow-hidden bg-secondary shadow-sm", l), children: d });
8
8
  function q({
9
- data: t,
10
- columns: n,
11
- showCheckbox: s = !0,
12
- onRowClick: c,
13
- className: v,
14
- selectedItems: a,
15
- onSelect: o,
16
- emptyState: N,
17
- isLoading: x = !1,
9
+ data: d,
10
+ columns: l,
11
+ showCheckbox: o = !0,
12
+ onRowClick: p,
13
+ className: c,
14
+ selectedItems: e,
15
+ onSelect: s,
16
+ emptyState: x,
17
+ isLoading: b = !1,
18
18
  loadingRows: T = 5,
19
19
  tableHeightOffset: f
20
20
  }) {
21
- const [j, m] = w(null), g = { height: f ? `calc(100vh - ${f})` : "calc(100vh - 8rem)" }, p = [
22
- s ? "40px" : null,
23
- ...n.map((i) => i.width || "1fr")
24
- ].filter(Boolean).join(" "), $ = () => /* @__PURE__ */ r(
21
+ const [j, y] = z(null), m = { height: f ? `calc(100vh - ${f})` : "calc(100vh - 8rem)" }, v = [
22
+ o ? "40px" : null,
23
+ ...l.map((r) => r.width || "1fr")
24
+ ].filter(Boolean).join(" "), $ = () => /* @__PURE__ */ i(
25
25
  "div",
26
26
  {
27
- className: d("divide-y divide-border/50 overflow-y-auto"),
28
- style: g,
29
- children: Array(T).fill(0).map((i, h) => /* @__PURE__ */ l(
27
+ className: t("divide-y divide-light/50 overflow-y-auto"),
28
+ style: m,
29
+ children: Array(T).fill(0).map((r, h) => /* @__PURE__ */ n(
30
30
  "div",
31
31
  {
32
32
  className: "grid items-center px-6 py-4 text-sm",
33
- style: { gridTemplateColumns: p },
33
+ style: { gridTemplateColumns: v },
34
34
  children: [
35
- s && /* @__PURE__ */ r("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ r("div", { className: "h-4 w-4 rounded bg-muted animate-pulse" }) }),
36
- n.map((e) => /* @__PURE__ */ r(
35
+ o && /* @__PURE__ */ i("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ i("div", { className: "h-4 w-4 rounded bg-hover animate-pulse" }) }),
36
+ l.map((a) => /* @__PURE__ */ i(
37
37
  "div",
38
38
  {
39
- className: d("px-2 relative min-w-0", e.className),
40
- children: /* @__PURE__ */ r(
39
+ className: t("px-2 relative min-w-0", a.className),
40
+ children: /* @__PURE__ */ i(
41
41
  "div",
42
42
  {
43
- className: "h-4 bg-muted rounded animate-pulse",
43
+ className: "h-4 bg-hover rounded animate-pulse",
44
44
  style: { width: Math.random() * 40 + 40 + "%" }
45
45
  }
46
46
  )
47
47
  },
48
- `skeleton-col-${e.id}`
48
+ `skeleton-col-${a.id}`
49
49
  ))
50
50
  ]
51
51
  },
@@ -53,91 +53,91 @@ function q({
53
53
  ))
54
54
  }
55
55
  );
56
- return x ? /* @__PURE__ */ r(u, { className: v, children: /* @__PURE__ */ l("div", { className: "relative bg-card", children: [
57
- /* @__PURE__ */ l(
56
+ return b ? /* @__PURE__ */ i(g, { className: c, children: /* @__PURE__ */ n("div", { className: "relative bg-card", children: [
57
+ /* @__PURE__ */ n(
58
58
  "div",
59
59
  {
60
- className: d(
61
- "grid items-center px-6 py-3 text-xs font-medium text-muted-foreground/80 bg-muted/30 border-b border-border/50 sticky top-0 z-10"
60
+ className: t(
61
+ "grid items-center px-6 py-3 text-xs font-medium text-tertiary/80 bg-hover/30 border-b border-light sticky top-0 z-10"
62
62
  ),
63
- style: { gridTemplateColumns: p },
63
+ style: { gridTemplateColumns: v },
64
64
  children: [
65
- s && /* @__PURE__ */ r("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ r("div", { className: "h-4 w-4 rounded bg-muted animate-pulse" }) }),
66
- n.map((i) => /* @__PURE__ */ r("div", { className: d("px-2 font-medium", i.className), children: i.header }, i.id))
65
+ o && /* @__PURE__ */ i("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ i("div", { className: "h-4 w-4 rounded bg-hover animate-pulse" }) }),
66
+ l.map((r) => /* @__PURE__ */ i("div", { className: t("px-2 font-medium", r.className), children: r.header }, r.id))
67
67
  ]
68
68
  }
69
69
  ),
70
- /* @__PURE__ */ r($, {})
71
- ] }) }) : t.length === 0 ? /* @__PURE__ */ r(u, { className: v, children: /* @__PURE__ */ r("div", { className: "relative bg-card", children: /* @__PURE__ */ r(z, { ...N }) }) }) : /* @__PURE__ */ r(u, { className: v, children: /* @__PURE__ */ l("div", { className: "relative bg-card", children: [
72
- /* @__PURE__ */ l(
70
+ /* @__PURE__ */ i($, {})
71
+ ] }) }) : d.length === 0 ? /* @__PURE__ */ i(g, { className: c, children: /* @__PURE__ */ i("div", { className: "relative bg-card", children: /* @__PURE__ */ i(V, { ...x }) }) }) : /* @__PURE__ */ i(g, { className: c, children: /* @__PURE__ */ n("div", { className: "relative bg-card", children: [
72
+ /* @__PURE__ */ n(
73
73
  "div",
74
74
  {
75
- className: d(
76
- "grid items-center px-6 py-3 text-xs font-medium text-muted-foreground/80 bg-muted/30 border-b border-border/50 sticky top-0 z-10"
75
+ className: t(
76
+ "grid items-center px-6 py-3 text-xs font-medium text-tertiary/80 bg-hover/30 border-b border-light sticky top-0 z-10"
77
77
  ),
78
- style: { gridTemplateColumns: p },
78
+ style: { gridTemplateColumns: v },
79
79
  children: [
80
- s && /* @__PURE__ */ r("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ r(
81
- y,
80
+ o && /* @__PURE__ */ i("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ i(
81
+ N,
82
82
  {
83
- checked: t.length > 0 && (a == null ? void 0 : a.size) === t.length,
84
- onClick: (i) => {
85
- i.stopPropagation();
86
- const e = !((a == null ? void 0 : a.size) === t.length);
87
- t.forEach((b) => {
88
- (a == null ? void 0 : a.has(b.id)) !== e && (o == null || o(b.id, e));
83
+ checked: d.length > 0 && (e == null ? void 0 : e.size) === d.length,
84
+ onClick: (r) => {
85
+ r.stopPropagation();
86
+ const a = !((e == null ? void 0 : e.size) === d.length);
87
+ d.forEach((u) => {
88
+ (e == null ? void 0 : e.has(u.id)) !== a && (s == null || s(u.id, a));
89
89
  });
90
90
  }
91
91
  }
92
92
  ) }),
93
- n.map((i) => /* @__PURE__ */ r("div", { className: d("px-2 font-medium", i.className), children: i.header }, i.id))
93
+ l.map((r) => /* @__PURE__ */ i("div", { className: t("px-2 font-medium", r.className), children: r.header }, r.id))
94
94
  ]
95
95
  }
96
96
  ),
97
- /* @__PURE__ */ r(
97
+ /* @__PURE__ */ i(
98
98
  "div",
99
99
  {
100
- className: d("divide-y divide-border/30 overflow-y-auto"),
101
- style: g,
102
- children: t.map((i, h) => /* @__PURE__ */ l(
100
+ className: t("divide-y divide-light/30 overflow-y-auto"),
101
+ style: m,
102
+ children: d.map((r, h) => /* @__PURE__ */ n(
103
103
  "div",
104
104
  {
105
- className: d(
106
- "grid items-center px-6 py-4 text-sm text-foreground hover:bg-muted/30 transition-colors duration-150 group cursor-pointer"
105
+ className: t(
106
+ "grid items-center px-6 py-4 text-sm text-primary hover:bg-hover/30 transition-colors duration-150 group cursor-pointer"
107
107
  ),
108
- style: { gridTemplateColumns: p },
109
- onClick: () => c == null ? void 0 : c(i),
108
+ style: { gridTemplateColumns: v },
109
+ onClick: () => p == null ? void 0 : p(r),
110
110
  children: [
111
- s && /* @__PURE__ */ r("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ r(
112
- y,
111
+ o && /* @__PURE__ */ i("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ i(
112
+ N,
113
113
  {
114
- checked: a == null ? void 0 : a.has(i.id),
115
- onClick: (e) => {
116
- e.stopPropagation(), o == null || o(i.id, !(a != null && a.has(i.id)));
114
+ checked: e == null ? void 0 : e.has(r.id),
115
+ onClick: (a) => {
116
+ a.stopPropagation(), s == null || s(r.id, !(e != null && e.has(r.id)));
117
117
  }
118
118
  }
119
119
  ) }),
120
- n.map((e) => /* @__PURE__ */ l(
120
+ l.map((a) => /* @__PURE__ */ n(
121
121
  "div",
122
122
  {
123
- className: d(
123
+ className: t(
124
124
  "px-2 relative min-w-0",
125
- e.className
125
+ a.className
126
126
  ),
127
- onMouseEnter: () => e.tooltipValue && m(`${h}-${e.id}`),
128
- onMouseLeave: () => m(null),
127
+ onMouseEnter: () => a.tooltipValue && y(`${h}-${a.id}`),
128
+ onMouseLeave: () => y(null),
129
129
  children: [
130
- /* @__PURE__ */ r("div", { className: d(
130
+ /* @__PURE__ */ i("div", { className: t(
131
131
  "flex items-center gap-2",
132
- e.truncate && "overflow-hidden"
133
- ), children: /* @__PURE__ */ r("div", { className: d(
132
+ a.truncate && "overflow-hidden"
133
+ ), children: /* @__PURE__ */ i("div", { className: t(
134
134
  "w-full",
135
- e.truncate && "truncate"
136
- ), children: e.cell(i) }) }),
137
- e.tooltipValue && j === `${h}-${e.id}` && /* @__PURE__ */ r(
138
- k,
135
+ a.truncate && "truncate"
136
+ ), children: a.cell(r) }) }),
137
+ a.tooltipValue && j === `${h}-${a.id}` && /* @__PURE__ */ i(
138
+ w,
139
139
  {
140
- content: e.tooltipValue(i),
140
+ content: a.tooltipValue(r),
141
141
  side: "bottom",
142
142
  align: "start",
143
143
  isVisible: !0
@@ -145,11 +145,11 @@ function q({
145
145
  )
146
146
  ]
147
147
  },
148
- e.id
148
+ a.id
149
149
  ))
150
150
  ]
151
151
  },
152
- i.id
152
+ r.id
153
153
  ))
154
154
  }
155
155
  )
@@ -1,46 +1,46 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import * as a from "react";
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import * as r from "react";
3
3
  import * as e from "@radix-ui/react-tabs";
4
- import { cn as n } from "../lib/utils.js";
5
- const m = e.Root, r = a.forwardRef(({ className: i, ...t }, s) => /* @__PURE__ */ o(
4
+ import { cn as o } from "../lib/utils.js";
5
+ const m = e.Root, n = r.forwardRef(({ className: i, ...t }, s) => /* @__PURE__ */ a(
6
6
  e.List,
7
7
  {
8
8
  ref: s,
9
- className: n(
10
- "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
9
+ className: o(
10
+ "inline-flex h-9 items-center justify-center rounded-lg bg-hover p-1 text-tertiary",
11
11
  i
12
12
  ),
13
13
  ...t
14
14
  }
15
15
  ));
16
- r.displayName = e.List.displayName;
17
- const f = a.forwardRef(({ className: i, ...t }, s) => /* @__PURE__ */ o(
16
+ n.displayName = e.List.displayName;
17
+ const f = r.forwardRef(({ className: i, ...t }, s) => /* @__PURE__ */ a(
18
18
  e.Trigger,
19
19
  {
20
20
  ref: s,
21
- className: n(
22
- "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
21
+ className: o(
22
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-white dark:ring-offset-[#1F1F20] transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black/20 dark:focus-visible:ring-white/20 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-secondary data-[state=active]:text-primary data-[state=active]:shadow",
23
23
  i
24
24
  ),
25
25
  ...t
26
26
  }
27
27
  ));
28
28
  f.displayName = e.Trigger.displayName;
29
- const d = a.forwardRef(({ className: i, ...t }, s) => /* @__PURE__ */ o(
29
+ const l = r.forwardRef(({ className: i, ...t }, s) => /* @__PURE__ */ a(
30
30
  e.Content,
31
31
  {
32
32
  ref: s,
33
- className: n(
34
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
33
+ className: o(
34
+ "mt-2 ring-offset-white dark:ring-offset-[#1F1F20] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black/20 dark:focus-visible:ring-white/20 focus-visible:ring-offset-2",
35
35
  i
36
36
  ),
37
37
  ...t
38
38
  }
39
39
  ));
40
- d.displayName = e.Content.displayName;
40
+ l.displayName = e.Content.displayName;
41
41
  export {
42
42
  m as Tabs,
43
- d as TabsContent,
44
- r as TabsList,
43
+ l as TabsContent,
44
+ n as TabsList,
45
45
  f as TabsTrigger
46
46
  };
@@ -1,20 +1,20 @@
1
- import { jsx as i } from "react/jsx-runtime";
1
+ import { jsx as o } from "react/jsx-runtime";
2
2
  import * as t from "react";
3
- import { cn as a } from "../lib/utils.js";
4
- const s = t.forwardRef(
5
- ({ className: e, ...r }, o) => /* @__PURE__ */ i(
3
+ import { cn as s } from "../lib/utils.js";
4
+ const a = t.forwardRef(
5
+ ({ className: e, ...r }, i) => /* @__PURE__ */ o(
6
6
  "textarea",
7
7
  {
8
- className: a(
9
- "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
8
+ className: s(
9
+ "flex min-h-[80px] w-full rounded-md border border-light bg-secondary px-3 py-2 text-sm ring-offset-white dark:ring-offset-[#1F1F20] placeholder:text-tertiary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black/20 dark:focus-visible:ring-white/20 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
10
10
  e
11
11
  ),
12
- ref: o,
12
+ ref: i,
13
13
  ...r
14
14
  }
15
15
  )
16
16
  );
17
- s.displayName = "Textarea";
17
+ a.displayName = "Textarea";
18
18
  export {
19
- s as Textarea
19
+ a as Textarea
20
20
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { AnimatePresence as n, motion as c } from "framer-motion";
3
- import { cn as i } from "../lib/utils.js";
2
+ import { AnimatePresence as n, motion as i } from "framer-motion";
3
+ import { cn as c } from "../lib/utils.js";
4
4
  function b({ content: t, side: o = "right", align: e = "center", isVisible: s }) {
5
5
  return /* @__PURE__ */ r(n, { children: s && /* @__PURE__ */ r(
6
- c.div,
6
+ i.div,
7
7
  {
8
8
  initial: {
9
9
  opacity: 0,
@@ -19,9 +19,9 @@ function b({ content: t, side: o = "right", align: e = "center", isVisible: s })
19
19
  ...a(o)
20
20
  },
21
21
  transition: { duration: 0.15, ease: "easeOut" },
22
- className: i(
22
+ className: c(
23
23
  "absolute z-[100] px-2.5 py-1.5 rounded-md text-xs font-medium whitespace-nowrap",
24
- "bg-background border border-border/50 shadow-lg",
24
+ "bg-secondary border border-light shadow-lg",
25
25
  l(o, e)
26
26
  ),
27
27
  children: t
@@ -1,5 +1,5 @@
1
- import { jsx as o, jsxs as c } from "react/jsx-runtime";
2
- import { useState as l, useCallback as u } from "react";
1
+ import { jsx as o, jsxs as l } from "react/jsx-runtime";
2
+ import { useState as c, useCallback as u } from "react";
3
3
  let s = [], a = [];
4
4
  const d = () => {
5
5
  a.forEach((t) => t([...s]));
@@ -18,7 +18,7 @@ const d = () => {
18
18
  }
19
19
  };
20
20
  }, g = () => {
21
- const [t, i] = l(s), e = u(() => {
21
+ const [t, i] = c(s), e = u(() => {
22
22
  const r = (n) => {
23
23
  i(n);
24
24
  };
@@ -26,21 +26,21 @@ const d = () => {
26
26
  a = a.filter((n) => n !== r);
27
27
  };
28
28
  }, []);
29
- return l(() => e()), {
29
+ return c(() => e()), {
30
30
  toast: m,
31
31
  toasts: t,
32
32
  dismiss: (r) => {
33
33
  s = s.filter((n) => n.id !== r), d();
34
34
  }
35
35
  };
36
- }, p = () => {
36
+ }, h = () => {
37
37
  const { toasts: t, dismiss: i } = g();
38
- return t.length === 0 ? null : /* @__PURE__ */ o("div", { className: "fixed top-4 right-4 z-50 flex flex-col gap-2 w-[350px]", children: t.map((e) => /* @__PURE__ */ c(
38
+ return t.length === 0 ? null : /* @__PURE__ */ o("div", { className: "fixed top-4 right-4 z-50 flex flex-col gap-2 w-[350px]", children: t.map((e) => /* @__PURE__ */ l(
39
39
  "div",
40
40
  {
41
- className: `p-4 rounded-lg shadow-lg border border-border/50 transition-all duration-300 ease-in-out ${e.type === "error" ? "bg-destructive text-destructive-foreground" : e.type === "success" ? "bg-green-50 text-green-800 border-green-200" : e.type === "warning" ? "bg-amber-50 text-amber-800 border-amber-200" : "bg-background text-foreground"}`,
41
+ className: `p-4 rounded-lg shadow-lg border border-light transition-all duration-300 ease-in-out ${e.type === "error" ? "bg-red-500 text-white" : e.type === "success" ? "bg-green-50 text-green-800 border-green-200" : e.type === "warning" ? "bg-amber-50 text-amber-800 border-amber-200" : "bg-secondary text-primary"}`,
42
42
  children: [
43
- /* @__PURE__ */ c("div", { className: "flex justify-between items-start", children: [
43
+ /* @__PURE__ */ l("div", { className: "flex justify-between items-start", children: [
44
44
  /* @__PURE__ */ o("div", { className: "font-medium", children: e.title }),
45
45
  /* @__PURE__ */ o(
46
46
  "button",
@@ -58,7 +58,7 @@ const d = () => {
58
58
  )) });
59
59
  };
60
60
  export {
61
- p as ToastContainer,
61
+ h as ToastContainer,
62
62
  m as toast,
63
63
  g as useToast
64
64
  };
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ import { Separator as V1 } from "./components/separator.js";
35
35
  import { Sheet as X1 } from "./components/sheet.js";
36
36
  import { Skeleton as q1 } from "./components/skeleton.js";
37
37
  import { Slider as K1 } from "./components/slider.js";
38
- import { a as W1, S as Y1, b as Z1 } from "./stepper-modal-JXpOXOV2.js";
38
+ import { a as W1, S as Y1, b as Z1 } from "./stepper-modal-Bh6gsg8o.js";
39
39
  import { Switch as e2 } from "./components/switch.js";
40
40
  import { Table as r2 } from "./components/table.js";
41
41
  import { TableEmpty as t2 } from "./components/table-empty.js";