@definable/ui 0.1.32 → 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 (47) 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 +14 -14
  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 +52 -52
  14. package/dist/components/confirmation-modal.js +23 -23
  15. package/dist/components/context-menu.js +30 -30
  16. package/dist/components/dialog.js +32 -32
  17. package/dist/components/drawer.js +6 -6
  18. package/dist/components/dropdown-menu.js +16 -16
  19. package/dist/components/image-cropper-modal.js +27 -27
  20. package/dist/components/image-cropper.js +27 -27
  21. package/dist/components/input.js +9 -9
  22. package/dist/components/loader.js +3 -3
  23. package/dist/components/loading-placeholder.js +4 -4
  24. package/dist/components/mention.js +18 -18
  25. package/dist/components/modal.js +39 -39
  26. package/dist/components/picker.js +30 -30
  27. package/dist/components/popover.js +7 -7
  28. package/dist/components/progress.js +13 -13
  29. package/dist/components/radio-group.js +19 -19
  30. package/dist/components/scroll-area.js +20 -20
  31. package/dist/components/select.js +25 -25
  32. package/dist/components/selection-bar.js +17 -17
  33. package/dist/components/separator.js +8 -8
  34. package/dist/components/skeleton.js +8 -8
  35. package/dist/components/slider.js +11 -11
  36. package/dist/components/stepper.js +1 -1
  37. package/dist/components/switch.js +8 -8
  38. package/dist/components/table-empty.js +6 -6
  39. package/dist/components/table-mobile.js +45 -45
  40. package/dist/components/table.js +66 -66
  41. package/dist/components/tabs.js +16 -16
  42. package/dist/components/textarea.js +4 -4
  43. package/dist/components/use-toast.js +9 -9
  44. package/dist/index.js +1 -1
  45. package/dist/{stepper-modal-JXpOXOV2.js → stepper-modal-Bh6gsg8o.js} +79 -79
  46. package/dist/styles.css +1 -1
  47. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { jsx as o, jsxs as d } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as l } from "react/jsx-runtime";
2
2
  import x, { forwardRef as b } from "react";
3
- import { MentionsInput as v, Mention as y } from "react-mentions";
3
+ import { MentionsInput as y, Mention as v } from "react-mentions";
4
4
  import { cn as n } from "../lib/utils.js";
5
- const w = (e, t, i, a, r) => /* @__PURE__ */ d(
5
+ const w = (e, t, i, a, r) => /* @__PURE__ */ l(
6
6
  "div",
7
7
  {
8
8
  className: n(
@@ -18,9 +18,9 @@ const w = (e, t, i, a, r) => /* @__PURE__ */ d(
18
18
  className: "h-full w-full object-cover"
19
19
  }
20
20
  ) }),
21
- /* @__PURE__ */ d("div", { className: "flex flex-col", children: [
21
+ /* @__PURE__ */ l("div", { className: "flex flex-col", children: [
22
22
  /* @__PURE__ */ o("span", { className: "font-medium", children: e.display }),
23
- e.subtitle && /* @__PURE__ */ o("span", { className: "text-xs text-muted-foreground", children: e.subtitle })
23
+ e.subtitle && /* @__PURE__ */ o("span", { className: "text-xs text-tertiary", children: e.subtitle })
24
24
  ] })
25
25
  ]
26
26
  }
@@ -31,14 +31,14 @@ const w = (e, t, i, a, r) => /* @__PURE__ */ d(
31
31
  placeholder: i = "Type @ to mention someone",
32
32
  data: a,
33
33
  disabled: r = !1,
34
- className: l,
34
+ className: d,
35
35
  inputClassName: s,
36
36
  suggestionItemClassName: m,
37
37
  trigger: p = "@",
38
- displayTransform: u = _,
39
- onKeyDown: c
40
- }, g) => {
41
- const h = {
38
+ displayTransform: c = _,
39
+ onKeyDown: u
40
+ }, h) => {
41
+ const g = {
42
42
  control: {
43
43
  fontSize: 14,
44
44
  fontWeight: "normal",
@@ -108,31 +108,31 @@ const w = (e, t, i, a, r) => /* @__PURE__ */ d(
108
108
  }, []), /* @__PURE__ */ o(
109
109
  "div",
110
110
  {
111
- ref: g,
112
- className: n("relative w-full", l),
111
+ ref: h,
112
+ className: n("relative w-full", d),
113
113
  children: /* @__PURE__ */ o(
114
- v,
114
+ y,
115
115
  {
116
116
  value: e,
117
117
  onChange: t,
118
- style: { ...h, ...f },
118
+ style: { ...g, ...f },
119
119
  placeholder: i,
120
120
  disabled: r,
121
121
  a11ySuggestionsListLabel: "Suggested mentions",
122
122
  className: n(
123
- "w-full rounded-md bg-transparent text-sm placeholder:text-muted-foreground resize-none font-normal",
123
+ "w-full rounded-md bg-transparent text-sm placeholder:text-tertiary resize-none font-normal",
124
124
  s
125
125
  ),
126
126
  suggestionsPortalHost: typeof document < "u" ? document.body : void 0,
127
127
  allowSuggestionsAboveCursor: !0,
128
- onKeyDown: c,
128
+ onKeyDown: u,
129
129
  children: /* @__PURE__ */ o(
130
- y,
130
+ v,
131
131
  {
132
132
  trigger: p,
133
133
  data: a,
134
134
  renderSuggestion: w,
135
- displayTransform: u,
135
+ displayTransform: c,
136
136
  appendSpaceOnAdd: !0,
137
137
  className: n(
138
138
  "text-primary font-medium",
@@ -27,17 +27,17 @@ const P = (r) => {
27
27
  };
28
28
  function I({
29
29
  isOpen: r,
30
- onClose: i,
31
- title: d,
32
- description: a,
33
- icon: s,
34
- children: x,
35
- footer: n,
36
- size: g = "md",
37
- showClose: w = !0,
30
+ onClose: n,
31
+ title: a,
32
+ description: d,
33
+ icon: i,
34
+ children: u,
35
+ footer: s,
36
+ size: y = "md",
37
+ showClose: v = !0,
38
38
  className: f,
39
- isContentScrollable: v = !0,
40
- mainClassName: y,
39
+ isContentScrollable: w = !0,
40
+ mainClassName: g,
41
41
  contentClassName: N,
42
42
  header: c,
43
43
  headerClassName: b,
@@ -45,33 +45,33 @@ function I({
45
45
  mobileSheet: m
46
46
  }) {
47
47
  if (m != null && m.enable && r && window.innerWidth < 768) {
48
- const { position: h } = m;
48
+ const { position: x } = m;
49
49
  return /* @__PURE__ */ e(
50
50
  L,
51
51
  {
52
52
  isOpen: r,
53
- onClose: i,
54
- header: c || (d || a || s ? /* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: [
55
- s && /* @__PURE__ */ e("div", { className: "h-8 w-8 rounded-lg flex items-center justify-center", children: s }),
53
+ onClose: n,
54
+ header: c || (a || d || i ? /* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: [
55
+ i && /* @__PURE__ */ e("div", { className: "h-8 w-8 rounded-lg flex items-center justify-center", children: i }),
56
56
  /* @__PURE__ */ t("div", { children: [
57
- d && /* @__PURE__ */ e("h2", { className: "text-sm font-medium", children: d }),
58
- a && /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: a })
57
+ a && /* @__PURE__ */ e("h2", { className: "text-sm font-medium", children: a }),
58
+ d && /* @__PURE__ */ e("p", { className: "text-sm text-tertiary", children: d })
59
59
  ] })
60
60
  ] }) : void 0),
61
- footer: /* @__PURE__ */ e("div", { className: "flex gap-2 justify-end", children: n }),
61
+ footer: /* @__PURE__ */ e("div", { className: "flex gap-2 justify-end", children: s }),
62
62
  className: l(f, "w-full max-w-full"),
63
- position: h || "bottom",
63
+ position: x || "bottom",
64
64
  headerClassName: l(b, "w-full max-w-full"),
65
65
  enableFullscreen: !1,
66
- children: x
66
+ children: u
67
67
  }
68
68
  );
69
69
  }
70
- const u = F((h) => {
71
- h.key === "Escape" && r && i();
72
- }, [r, i]);
73
- H(() => (document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u)), [u]);
74
- const o = d || a || s || c, j = /* @__PURE__ */ e(E, { children: r && /* @__PURE__ */ e("div", { className: l("fixed inset-0 z-50 overflow-hidden", k), children: /* @__PURE__ */ t("div", { className: l("min-h-full flex items-center justify-center p-4", y), children: [
70
+ const h = F((x) => {
71
+ x.key === "Escape" && r && n();
72
+ }, [r, n]);
73
+ H(() => (document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h)), [h]);
74
+ const o = a || d || i || c, j = /* @__PURE__ */ e(E, { children: r && /* @__PURE__ */ e("div", { className: l("fixed inset-0 z-50 overflow-hidden", k), children: /* @__PURE__ */ t("div", { className: l("min-h-full flex items-center justify-center p-4", g), children: [
75
75
  /* @__PURE__ */ e(
76
76
  p.div,
77
77
  {
@@ -79,7 +79,7 @@ function I({
79
79
  animate: { opacity: 1 },
80
80
  exit: { opacity: 0 },
81
81
  className: "fixed inset-0 bg-secondary/80 backdrop-blur-sm",
82
- onClick: i
82
+ onClick: n
83
83
  }
84
84
  ),
85
85
  /* @__PURE__ */ t(
@@ -93,37 +93,37 @@ function I({
93
93
  "relative transform rounded-lg bg-secondary shadow-xl border border-light flex flex-col max-h-[85vh] overflow-hidden",
94
94
  f
95
95
  ),
96
- style: P(g),
96
+ style: P(y),
97
97
  children: [
98
98
  o && /* @__PURE__ */ t("div", { className: "flex-shrink-0 rounded-t-lg bg-card flex items-center justify-between p-2 border-b border-light", children: [
99
99
  c || /* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: [
100
- s && /* @__PURE__ */ e("div", { className: "h-8 w-8 rounded-lg flex items-center justify-center", children: s }),
100
+ i && /* @__PURE__ */ e("div", { className: "h-8 w-8 rounded-lg flex items-center justify-center", children: i }),
101
101
  /* @__PURE__ */ t("div", { children: [
102
- d && /* @__PURE__ */ e("h2", { className: "text-sm font-small", children: d }),
103
- a && /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: a })
102
+ a && /* @__PURE__ */ e("h2", { className: "text-sm font-small", children: a }),
103
+ d && /* @__PURE__ */ e("p", { className: "text-sm text-tertiary", children: d })
104
104
  ] })
105
105
  ] }),
106
- w && /* @__PURE__ */ e(
106
+ v && /* @__PURE__ */ e(
107
107
  "button",
108
108
  {
109
- onClick: i,
110
- className: "p-1.5 rounded-md hover:bg-muted text-muted-foreground",
109
+ onClick: n,
110
+ className: "p-1.5 rounded-md hover:bg-hover text-tertiary",
111
111
  children: /* @__PURE__ */ t("div", { className: "flex justify-center items-center", children: [
112
112
  /* @__PURE__ */ e(z, { className: "h-4 w-4" }),
113
- /* @__PURE__ */ e("kbd", { className: "ml-2 text-[10px] text-muted-foreground bg-muted px-1.5 py-0.5 rounded", children: "ESC" })
113
+ /* @__PURE__ */ e("kbd", { className: "ml-2 text-[10px] text-tertiary bg-hover px-1.5 py-0.5 rounded", children: "ESC" })
114
114
  ] })
115
115
  }
116
116
  )
117
117
  ] }),
118
118
  /* @__PURE__ */ e("div", { className: l(
119
119
  "flex-1 min-h-0",
120
- v ? "overflow-y-auto" : "",
121
- !n && !o ? "rounded-lg" : "",
122
- !n && o ? "rounded-b-lg" : "",
123
- n && !o ? "rounded-t-lg" : "",
120
+ w ? "overflow-y-auto" : "",
121
+ !s && !o ? "rounded-lg" : "",
122
+ !s && o ? "rounded-b-lg" : "",
123
+ s && !o ? "rounded-t-lg" : "",
124
124
  N
125
- ), children: x }),
126
- n && /* @__PURE__ */ e("div", { className: "flex-shrink-0 flex items-center justify-end gap-2 px-4 py-3 border-t border-light bg-card rounded-b-lg", children: n })
125
+ ), children: u }),
126
+ s && /* @__PURE__ */ e("div", { className: "flex-shrink-0 flex items-center justify-end gap-2 px-4 py-3 border-t border-light bg-card rounded-b-lg", children: s })
127
127
  ]
128
128
  }
129
129
  )
@@ -1,66 +1,66 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { useState as u } from "react";
3
- import i from "react-mobile-picker";
2
+ import { useState as p } from "react";
3
+ import o from "react-mobile-picker";
4
4
  import { cn as l } from "../lib/utils.js";
5
5
  import { Button as D } from "./button.js";
6
6
  import { ChevronRight as j } from "lucide-react";
7
7
  import { Drawer as z, DrawerTrigger as O, DrawerContent as P, DrawerHeader as T, DrawerTitle as V, DrawerFooter as H } from "./drawer.js";
8
8
  function E({
9
9
  label: n,
10
- options: d,
10
+ options: s,
11
11
  value: a,
12
- onChange: p,
13
- trigger: f,
14
- className: g,
15
- pickerClassName: x,
16
- description: s,
17
- drawerProps: b
12
+ onChange: f,
13
+ trigger: x,
14
+ className: u,
15
+ pickerClassName: g,
16
+ description: c,
17
+ drawerProps: v
18
18
  }) {
19
- const [v, c] = u(!1), [m, h] = u(a), N = (r) => {
20
- r && h(a), c(r);
21
- }, o = d.find((r) => r.value === a), w = { column: m }, k = (r) => {
19
+ const [b, d] = p(!1), [m, h] = p(a), y = (r) => {
20
+ r && h(a), d(r);
21
+ }, i = s.find((r) => r.value === a), w = { column: m }, N = (r) => {
22
22
  h(r.column);
23
- }, y = () => {
24
- p(m), c(!1);
23
+ }, k = () => {
24
+ f(m), d(!1);
25
25
  };
26
- return /* @__PURE__ */ t(z, { open: v, onOpenChange: N, ...b, children: [
26
+ return /* @__PURE__ */ t(z, { open: b, onOpenChange: y, ...v, children: [
27
27
  /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ e(
28
28
  "div",
29
29
  {
30
- className: l("cursor-pointer select-none", g),
31
- children: f || /* @__PURE__ */ t("div", { className: "flex items-center justify-between p-3.5 bg-muted/20 hover:bg-muted/30 active:scale-[0.98] rounded-xl border border-light transition-all group", children: [
30
+ className: l("cursor-pointer select-none", u),
31
+ children: x || /* @__PURE__ */ t("div", { className: "flex items-center justify-between p-3.5 bg-hover/20 hover:bg-hover/30 active:scale-[0.98] rounded-xl border border-light transition-all group", children: [
32
32
  /* @__PURE__ */ t("div", { className: "flex flex-col gap-0.5 text-left", children: [
33
- /* @__PURE__ */ e("span", { className: "text-[10px] font-black uppercase tracking-[0.2em] text-muted-foreground/45", children: n }),
33
+ /* @__PURE__ */ e("span", { className: "text-[10px] font-black uppercase tracking-[0.2em] text-tertiary/45", children: n }),
34
34
  /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
35
- /* @__PURE__ */ e("span", { className: "text-sm font-bold text-foreground", children: (o == null ? void 0 : o.label) || a }),
36
- s && /* @__PURE__ */ t("span", { className: "text-[10px] text-muted-foreground/50 font-medium truncate max-w-[120px]", children: [
35
+ /* @__PURE__ */ e("span", { className: "text-sm font-bold text-primary", children: (i == null ? void 0 : i.label) || a }),
36
+ c && /* @__PURE__ */ t("span", { className: "text-[10px] text-tertiary/50 font-medium truncate max-w-[120px]", children: [
37
37
  "• ",
38
- s
38
+ c
39
39
  ] })
40
40
  ] })
41
41
  ] }),
42
- /* @__PURE__ */ e("div", { className: "w-7 min-w-[28px] h-7 rounded-full bg-muted/30 flex items-center justify-center group-hover:bg-muted/50 transition-colors", children: /* @__PURE__ */ e(j, { className: "w-4 h-4 text-muted-foreground/60" }) })
42
+ /* @__PURE__ */ e("div", { className: "w-7 min-w-[28px] h-7 rounded-full bg-hover/30 flex items-center justify-center group-hover:bg-hover/50 transition-colors", children: /* @__PURE__ */ e(j, { className: "w-4 h-4 text-tertiary/60" }) })
43
43
  ] })
44
44
  }
45
45
  ) }),
46
46
  /* @__PURE__ */ t(P, { children: [
47
47
  /* @__PURE__ */ e(T, { children: /* @__PURE__ */ e(V, { children: n }) }),
48
- /* @__PURE__ */ e("div", { className: "px-6 pt-0 space-y-5 pb-10", children: /* @__PURE__ */ t("div", { className: "relative h-[220px] bg-card dark:bg-muted/10 rounded-[32px] overflow-hidden border border-light shadow-sm", children: [
48
+ /* @__PURE__ */ e("div", { className: "px-6 pt-0 space-y-5 pb-10", children: /* @__PURE__ */ t("div", { className: "relative h-[220px] bg-card dark:bg-hover/10 rounded-[32px] overflow-hidden border border-light shadow-sm", children: [
49
49
  /* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-1/2 -translate-y-1/2 h-[56px] bg-primary/[0.04] dark:bg-primary/10 border-y border-primary/10 rounded-2xl pointer-events-none z-10" }),
50
50
  /* @__PURE__ */ e(
51
- i,
51
+ o,
52
52
  {
53
53
  value: w,
54
- onChange: k,
54
+ onChange: N,
55
55
  height: 220,
56
56
  itemHeight: 56,
57
- className: l(x),
58
- children: /* @__PURE__ */ e(i.Column, { name: "column", children: d.map((r) => /* @__PURE__ */ e(i.Item, { value: r.value, children: ({ selected: C }) => /* @__PURE__ */ e(
57
+ className: l(g),
58
+ children: /* @__PURE__ */ e(o.Column, { name: "column", children: s.map((r) => /* @__PURE__ */ e(o.Item, { value: r.value, children: ({ selected: C }) => /* @__PURE__ */ e(
59
59
  "div",
60
60
  {
61
61
  className: l(
62
62
  "flex items-center justify-center h-full px-6 text-center transition-all duration-300 ease-out",
63
- C ? "text-primary text-xl font-bold tracking-tight" : "text-muted-foreground/30 text-base font-medium scale-95"
63
+ C ? "text-primary text-xl font-bold tracking-tight" : "text-tertiary/30 text-base font-medium scale-95"
64
64
  ),
65
65
  children: r.label
66
66
  }
@@ -73,8 +73,8 @@ function E({
73
73
  /* @__PURE__ */ e(H, { children: /* @__PURE__ */ t(
74
74
  D,
75
75
  {
76
- onClick: y,
77
- className: "w-full h-12 rounded-2xl text-base font-bold shadow-lg shadow-primary/10 bg-primary text-primary-foreground hover:opacity-95 active:scale-[0.98] transition-all",
76
+ onClick: k,
77
+ className: "w-full h-12 rounded-2xl text-base font-bold shadow-lg shadow-primary/10 bg-primary text-white hover:opacity-95 active:scale-[0.98] transition-all",
78
78
  children: [
79
79
  "Confirm ",
80
80
  n
@@ -1,23 +1,23 @@
1
- import { jsx as t } from "react/jsx-runtime";
1
+ import { jsx as o } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
- import * as o from "@radix-ui/react-popover";
3
+ import * as t from "@radix-ui/react-popover";
4
4
  import { cn as s } from "../lib/utils.js";
5
- const l = o.Root, c = o.Trigger, m = n.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...d }, i) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
6
- o.Content,
5
+ const f = t.Root, c = t.Trigger, m = n.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...d }, i) => /* @__PURE__ */ o(t.Portal, { children: /* @__PURE__ */ o(
6
+ t.Content,
7
7
  {
8
8
  ref: i,
9
9
  align: a,
10
10
  sideOffset: r,
11
11
  className: s(
12
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
12
+ "z-50 w-72 rounded-md border bg-card p-4 text-primary shadow-md outline-none 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",
13
13
  e
14
14
  ),
15
15
  ...d
16
16
  }
17
17
  ) }));
18
- m.displayName = o.Content.displayName;
18
+ m.displayName = t.Content.displayName;
19
19
  export {
20
- l as Popover,
20
+ f as Popover,
21
21
  m as PopoverContent,
22
22
  c as PopoverTrigger
23
23
  };
@@ -1,19 +1,19 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import * as a from "react";
3
- import * as o from "@radix-ui/react-progress";
4
- import { motion as e } from "framer-motion";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import * as e from "react";
3
+ import * as i from "@radix-ui/react-progress";
4
+ import { motion as t } from "framer-motion";
5
5
  import { cn as l } from "../lib/utils.js";
6
- const f = a.forwardRef(({ className: m, value: r, ...s }, t) => /* @__PURE__ */ i(
7
- o.Root,
6
+ const f = e.forwardRef(({ className: s, value: r, ...m }, a) => /* @__PURE__ */ o(
7
+ i.Root,
8
8
  {
9
- ref: t,
9
+ ref: a,
10
10
  className: l(
11
- "relative h-2 w-full overflow-hidden rounded-full bg-muted",
12
- m
11
+ "relative h-2 w-full overflow-hidden rounded-full bg-hover",
12
+ s
13
13
  ),
14
- ...s,
15
- children: /* @__PURE__ */ i(
16
- e.div,
14
+ ...m,
15
+ children: /* @__PURE__ */ o(
16
+ t.div,
17
17
  {
18
18
  className: "h-full w-full bg-primary",
19
19
  initial: { x: "-100%" },
@@ -28,7 +28,7 @@ const f = a.forwardRef(({ className: m, value: r, ...s }, t) => /* @__PURE__ */
28
28
  )
29
29
  }
30
30
  ));
31
- f.displayName = o.Root.displayName;
31
+ f.displayName = i.Root.displayName;
32
32
  export {
33
33
  f as Progress
34
34
  };
@@ -1,47 +1,47 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import * as e from "@radix-ui/react-radio-group";
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ import * as r from "@radix-ui/react-radio-group";
4
4
  import { cn as l } from "../lib/utils.js";
5
- import { Circle as m } from "lucide-react";
6
- import { motion as t } from "framer-motion";
7
- const n = s.forwardRef(({ className: i, ...a }, o) => /* @__PURE__ */ r(
8
- e.Root,
5
+ import { Circle as c } from "lucide-react";
6
+ import { motion as s } from "framer-motion";
7
+ const m = t.forwardRef(({ className: i, ...a }, o) => /* @__PURE__ */ e(
8
+ r.Root,
9
9
  {
10
10
  className: l("grid gap-2", i),
11
11
  ...a,
12
12
  ref: o
13
13
  }
14
14
  ));
15
- n.displayName = e.Root.displayName;
16
- const c = s.forwardRef(({ className: i, ...a }, o) => /* @__PURE__ */ r(
17
- t.div,
15
+ m.displayName = r.Root.displayName;
16
+ const n = t.forwardRef(({ className: i, ...a }, o) => /* @__PURE__ */ e(
17
+ s.div,
18
18
  {
19
19
  whileHover: { scale: 1.05 },
20
20
  whileTap: { scale: 0.95 },
21
- children: /* @__PURE__ */ r(
22
- e.Item,
21
+ children: /* @__PURE__ */ e(
22
+ r.Item,
23
23
  {
24
24
  ref: o,
25
25
  className: l(
26
- "aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
26
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-black/20 dark:focus-visible:ring-white/20 disabled:cursor-not-allowed disabled:opacity-50",
27
27
  i
28
28
  ),
29
29
  ...a,
30
- children: /* @__PURE__ */ r(e.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ r(
31
- t.div,
30
+ children: /* @__PURE__ */ e(r.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(
31
+ s.div,
32
32
  {
33
33
  initial: { scale: 0 },
34
34
  animate: { scale: 1 },
35
35
  transition: { type: "spring", stiffness: 300, damping: 20 },
36
- children: /* @__PURE__ */ r(m, { className: "h-2.5 w-2.5 fill-current text-current" })
36
+ children: /* @__PURE__ */ e(c, { className: "h-2.5 w-2.5 fill-current text-current" })
37
37
  }
38
38
  ) })
39
39
  }
40
40
  )
41
41
  }
42
42
  ));
43
- c.displayName = e.Item.displayName;
43
+ n.displayName = r.Item.displayName;
44
44
  export {
45
- n as RadioGroup,
46
- c as RadioGroupItem
45
+ m as RadioGroup,
46
+ n as RadioGroupItem
47
47
  };
@@ -1,46 +1,46 @@
1
- import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
- import * as c from "react";
1
+ import { jsxs as c, jsx as l } from "react/jsx-runtime";
2
+ import * as i from "react";
3
3
  import * as r from "@radix-ui/react-scroll-area";
4
- import { cn as s } from "../lib/utils.js";
5
- const n = c.forwardRef(({ className: o, children: e, ...a }, t) => /* @__PURE__ */ i(
4
+ import { cn as d } from "../lib/utils.js";
5
+ const n = i.forwardRef(({ className: e, children: a, ...o }, t) => /* @__PURE__ */ c(
6
6
  r.Root,
7
7
  {
8
8
  ref: t,
9
- className: s("relative overflow-hidden", o),
10
- ...a,
9
+ className: d("relative overflow-hidden", e),
10
+ ...o,
11
11
  children: [
12
- /* @__PURE__ */ l(r.Viewport, { className: "h-full w-full rounded-[inherit]", children: e }),
13
- /* @__PURE__ */ l(d, {}),
12
+ /* @__PURE__ */ l(r.Viewport, { className: "h-full w-full rounded-[inherit]", children: a }),
13
+ /* @__PURE__ */ l(s, {}),
14
14
  /* @__PURE__ */ l(r.Corner, {})
15
15
  ]
16
16
  }
17
17
  ));
18
18
  n.displayName = r.Root.displayName;
19
- const d = c.forwardRef(({ className: o, orientation: e = "vertical", ...a }, t) => /* @__PURE__ */ l(
19
+ const s = i.forwardRef(({ className: e, orientation: a = "vertical", ...o }, t) => /* @__PURE__ */ l(
20
20
  r.ScrollAreaScrollbar,
21
21
  {
22
22
  ref: t,
23
- orientation: e,
24
- className: s(
23
+ orientation: a,
24
+ className: d(
25
25
  "flex touch-none select-none transition-colors",
26
- e === "vertical" && "h-full w-1.5 border-l border-l-transparent p-[1px] hover:w-2",
27
- e === "horizontal" && "h-1.5 flex-col border-t border-t-transparent p-[1px] hover:h-2",
28
- o
26
+ a === "vertical" && "h-full w-1.5 border-l border-l-transparent p-[1px] hover:w-2",
27
+ a === "horizontal" && "h-1.5 flex-col border-t border-t-transparent p-[1px] hover:h-2",
28
+ e
29
29
  ),
30
- ...a,
30
+ ...o,
31
31
  children: /* @__PURE__ */ l(
32
32
  r.ScrollAreaThumb,
33
33
  {
34
- className: s(
35
- "relative flex-1 rounded-full bg-border/40 hover:bg-border/70 transition-all duration-150",
36
- "data-[state=dragging]:bg-border/70"
34
+ className: d(
35
+ "relative flex-1 rounded-full bg-light/40 hover:bg-light/70 dark:bg-dark/40 dark:hover:bg-dark/70 transition-all duration-150",
36
+ "data-[state=dragging]:bg-light/70 dark:data-[state=dragging]:bg-dark/70"
37
37
  )
38
38
  }
39
39
  )
40
40
  }
41
41
  ));
42
- d.displayName = r.ScrollAreaScrollbar.displayName;
42
+ s.displayName = r.ScrollAreaScrollbar.displayName;
43
43
  export {
44
44
  n as ScrollArea,
45
- d as ScrollBar
45
+ s as ScrollBar
46
46
  };