@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
@@ -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
  };
@@ -2,14 +2,14 @@ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
3
  import * as e from "@radix-ui/react-select";
4
4
  import { ChevronDown as N, Search as S, Check as v } from "lucide-react";
5
- import { cn as i } from "../lib/utils.js";
5
+ import { cn as d } from "../lib/utils.js";
6
6
  import { Input as C } from "./input.js";
7
7
  const I = e.Root, E = e.Group, L = e.Value, R = a.forwardRef(({ className: o, children: s, ...r }, n) => /* @__PURE__ */ c(
8
8
  e.Trigger,
9
9
  {
10
10
  ref: n,
11
- className: i(
12
- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
11
+ className: d(
12
+ "flex h-10 w-full items-center justify-between rounded-md border border-light bg-secondary px-3 py-2 text-sm ring-offset-white dark:ring-offset-[#1F1F20] placeholder:text-tertiary focus:outline-none focus:ring-2 focus:ring-black/20 dark:focus:ring-white/20 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
13
13
  o
14
14
  ),
15
15
  ...r,
@@ -20,8 +20,8 @@ const I = e.Root, E = e.Group, L = e.Value, R = a.forwardRef(({ className: o, ch
20
20
  }
21
21
  ));
22
22
  R.displayName = e.Trigger.displayName;
23
- const g = a.forwardRef(({ className: o, children: s, position: r = "popper", searchable: n, onSearch: m, searchPlaceholder: p = "Search...", ...f }, d) => {
24
- const [b, y] = a.useState(""), u = a.useRef(null);
23
+ const g = a.forwardRef(({ className: o, children: s, position: r = "popper", searchable: n, onSearch: m, searchPlaceholder: f = "Search...", ...p }, i) => {
24
+ const [y, b] = a.useState(""), u = a.useRef(null);
25
25
  a.useEffect(() => {
26
26
  n && u.current && setTimeout(() => {
27
27
  var l;
@@ -29,7 +29,7 @@ const g = a.forwardRef(({ className: o, children: s, position: r = "popper", sea
29
29
  }, 50);
30
30
  }, [n]);
31
31
  const w = (l) => {
32
- y(l.target.value), m && m(l.target.value);
32
+ b(l.target.value), m && m(l.target.value);
33
33
  }, h = (l) => {
34
34
  l.stopPropagation();
35
35
  }, x = (l) => {
@@ -38,31 +38,31 @@ const g = a.forwardRef(({ className: o, children: s, position: r = "popper", sea
38
38
  return /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ c(
39
39
  e.Content,
40
40
  {
41
- ref: d,
42
- className: i(
43
- "relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",
41
+ ref: i,
42
+ className: d(
43
+ "relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-card text-primary shadow-md 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",
44
44
  r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
45
45
  o
46
46
  ),
47
47
  position: r,
48
- ...f,
48
+ ...p,
49
49
  children: [
50
50
  n && /* @__PURE__ */ t(
51
51
  "div",
52
52
  {
53
- className: "px-2 py-1.5 sticky top-0 bg-popover z-10 border-b",
53
+ className: "px-2 py-1.5 sticky top-0 bg-card z-10 border-b",
54
54
  onClick: h,
55
55
  children: /* @__PURE__ */ c("div", { className: "relative", children: [
56
- /* @__PURE__ */ t(S, { className: "absolute left-2 top-1/2 transform -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground" }),
56
+ /* @__PURE__ */ t(S, { className: "absolute left-2 top-1/2 transform -translate-y-1/2 h-3.5 w-3.5 text-tertiary" }),
57
57
  /* @__PURE__ */ t(
58
58
  C,
59
59
  {
60
60
  ref: u,
61
- value: b,
61
+ value: y,
62
62
  onChange: w,
63
63
  onClick: h,
64
64
  onKeyDown: x,
65
- placeholder: p,
65
+ placeholder: f,
66
66
  className: "h-7 text-xs pl-7"
67
67
  }
68
68
  )
@@ -72,7 +72,7 @@ const g = a.forwardRef(({ className: o, children: s, position: r = "popper", sea
72
72
  /* @__PURE__ */ t(
73
73
  e.Viewport,
74
74
  {
75
- className: i(
75
+ className: d(
76
76
  "p-1",
77
77
  r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
78
78
  ),
@@ -84,21 +84,21 @@ const g = a.forwardRef(({ className: o, children: s, position: r = "popper", sea
84
84
  ) });
85
85
  });
86
86
  g.displayName = e.Content.displayName;
87
- const V = a.forwardRef(({ className: o, ...s }, r) => /* @__PURE__ */ t(
87
+ const k = a.forwardRef(({ className: o, ...s }, r) => /* @__PURE__ */ t(
88
88
  e.Label,
89
89
  {
90
90
  ref: r,
91
- className: i("py-1.5 pl-8 pr-2 text-sm font-semibold", o),
91
+ className: d("py-1.5 pl-8 pr-2 text-sm font-semibold", o),
92
92
  ...s
93
93
  }
94
94
  ));
95
- V.displayName = e.Label.displayName;
96
- const k = a.forwardRef(({ className: o, children: s, ...r }, n) => /* @__PURE__ */ c(
95
+ k.displayName = e.Label.displayName;
96
+ const V = a.forwardRef(({ className: o, children: s, ...r }, n) => /* @__PURE__ */ c(
97
97
  e.Item,
98
98
  {
99
99
  ref: n,
100
- className: i(
101
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
100
+ className: d(
101
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-hover focus:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
102
102
  o
103
103
  ),
104
104
  ...r,
@@ -108,14 +108,14 @@ const k = a.forwardRef(({ className: o, children: s, ...r }, n) => /* @__PURE__
108
108
  ]
109
109
  }
110
110
  ));
111
- k.displayName = e.Item.displayName;
111
+ V.displayName = e.Item.displayName;
112
112
  const T = a.forwardRef(({ children: o, searchPlaceholder: s, ...r }, n) => {
113
- const [m, p] = a.useState(""), f = a.Children.map(o, (d) => a.isValidElement(d) && d.type === g ? a.cloneElement(d, {
113
+ const [m, f] = a.useState(""), p = a.Children.map(o, (i) => a.isValidElement(i) && i.type === g ? a.cloneElement(i, {
114
114
  searchable: !0,
115
- onSearch: p,
115
+ onSearch: f,
116
116
  searchPlaceholder: s
117
- }) : d);
118
- return /* @__PURE__ */ t(I, { ...r, children: f });
117
+ }) : i);
118
+ return /* @__PURE__ */ t(I, { ...r, children: p });
119
119
  });
120
120
  T.displayName = "SearchableSelect";
121
121
  export {
@@ -123,8 +123,8 @@ export {
123
123
  I as Select,
124
124
  g as SelectContent,
125
125
  E as SelectGroup,
126
- k as SelectItem,
127
- V as SelectLabel,
126
+ V as SelectItem,
127
+ k as SelectLabel,
128
128
  R as SelectTrigger,
129
129
  L as SelectValue
130
130
  };
@@ -1,13 +1,13 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import { AnimatePresence as o, motion as d } from "framer-motion";
3
- import { Check as h, X as p, Download as g, Trash as x } from "lucide-react";
4
- import { Button as r } from "./button.js";
5
- function w({
6
- selectedCount: l,
3
+ import { Check as h, X as g, Download as p, Trash as x } from "lucide-react";
4
+ import { Button as t } from "./button.js";
5
+ function y({
6
+ selectedCount: c,
7
7
  onEnable: a,
8
8
  onDisable: s,
9
- onDelete: t,
10
- onDownload: c,
9
+ onDelete: r,
10
+ onDownload: l,
11
11
  onCancel: m,
12
12
  show: n
13
13
  }) {
@@ -17,37 +17,37 @@ function w({
17
17
  initial: { y: 100, opacity: 0 },
18
18
  animate: { y: 0, opacity: 1 },
19
19
  exit: { y: 100, opacity: 0 },
20
- className: "fixed bottom-4 left-1/2 -translate-x-1/2 w-fit bg-background rounded-lg border shadow-lg z-50",
20
+ className: "fixed bottom-4 left-1/2 -translate-x-1/2 w-fit bg-secondary rounded-lg border shadow-lg z-50",
21
21
  children: /* @__PURE__ */ i("div", { className: "flex items-center gap-6 px-4 py-2", children: [
22
22
  /* @__PURE__ */ i("div", { className: "flex items-center gap-2 text-sm font-medium", children: [
23
- /* @__PURE__ */ e("span", { className: "bg-primary text-primary-foreground w-8 h-8 rounded-lg flex items-center justify-center", children: l }),
23
+ /* @__PURE__ */ e("span", { className: "bg-primary text-white w-8 h-8 rounded-lg flex items-center justify-center", children: c }),
24
24
  "Selected"
25
25
  ] }),
26
- /* @__PURE__ */ e("div", { className: "h-4 w-px bg-border" }),
26
+ /* @__PURE__ */ e("div", { className: "h-4 w-px bg-light" }),
27
27
  /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
28
- a && /* @__PURE__ */ i(r, { variant: "ghost", size: "sm", onClick: a, children: [
28
+ a && /* @__PURE__ */ i(t, { variant: "ghost", size: "sm", onClick: a, children: [
29
29
  /* @__PURE__ */ e(h, { className: "mr-2 h-4 w-4" }),
30
30
  "Enable"
31
31
  ] }),
32
- s && /* @__PURE__ */ i(r, { variant: "ghost", size: "sm", onClick: s, children: [
33
- /* @__PURE__ */ e(p, { className: "mr-2 h-4 w-4" }),
32
+ s && /* @__PURE__ */ i(t, { variant: "ghost", size: "sm", onClick: s, children: [
33
+ /* @__PURE__ */ e(g, { className: "mr-2 h-4 w-4" }),
34
34
  "Disable"
35
35
  ] }),
36
- c && /* @__PURE__ */ i(r, { variant: "ghost", size: "sm", onClick: c, children: [
37
- /* @__PURE__ */ e(g, { className: "mr-2 h-4 w-4" }),
36
+ l && /* @__PURE__ */ i(t, { variant: "ghost", size: "sm", onClick: l, children: [
37
+ /* @__PURE__ */ e(p, { className: "mr-2 h-4 w-4" }),
38
38
  "Download"
39
39
  ] }),
40
- t && /* @__PURE__ */ i(r, { variant: "ghost", size: "sm", className: "text-destructive", onClick: t, children: [
40
+ r && /* @__PURE__ */ i(t, { variant: "ghost", size: "sm", className: "text-red-500", onClick: r, children: [
41
41
  /* @__PURE__ */ e(x, { className: "mr-2 h-4 w-4" }),
42
42
  "Delete"
43
43
  ] })
44
44
  ] }),
45
- /* @__PURE__ */ e("div", { className: "h-4 w-px bg-border" }),
46
- /* @__PURE__ */ e(r, { variant: "ghost", size: "sm", onClick: m, children: "Cancel" })
45
+ /* @__PURE__ */ e("div", { className: "h-4 w-px bg-light" }),
46
+ /* @__PURE__ */ e(t, { variant: "ghost", size: "sm", onClick: m, children: "Cancel" })
47
47
  ] })
48
48
  }
49
49
  ) });
50
50
  }
51
51
  export {
52
- w as SelectionBar
52
+ y as SelectionBar
53
53
  };
@@ -1,16 +1,16 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import * as i from "react";
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import * as l from "react";
3
3
  import * as o from "@radix-ui/react-separator";
4
- import { cn as l } from "../lib/utils.js";
5
- const s = i.forwardRef(
6
- ({ className: a, orientation: r = "horizontal", decorative: t = !0, ...m }, p) => /* @__PURE__ */ e(
4
+ import { cn as e } from "../lib/utils.js";
5
+ const s = l.forwardRef(
6
+ ({ className: a, orientation: r = "horizontal", decorative: t = !0, ...m }, i) => /* @__PURE__ */ p(
7
7
  o.Root,
8
8
  {
9
- ref: p,
9
+ ref: i,
10
10
  decorative: t,
11
11
  orientation: r,
12
- className: l(
13
- "shrink-0 bg-border",
12
+ className: e(
13
+ "shrink-0 bg-light dark:bg-dark",
14
14
  r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
15
15
  a
16
16
  ),
@@ -1,26 +1,26 @@
1
1
  import { jsxs as l, jsx as t, Fragment as R } from "react/jsx-runtime";
2
2
  import { Minimize2 as B, Maximize2 as I, X as M } from "lucide-react";
3
- import { Button as b } from "./button.js";
3
+ import { Button as y } from "./button.js";
4
4
  import { useState as X, useRef as q, useEffect as m } from "react";
5
5
  import { cn as u } from "../lib/utils.js";
6
- import { AnimatePresence as D, motion as y } from "framer-motion";
6
+ import { AnimatePresence as D, motion as g } from "framer-motion";
7
7
  import { createPortal as G } from "react-dom";
8
8
  let a = [];
9
9
  function W({
10
10
  isOpen: i,
11
11
  onClose: s,
12
- children: g,
12
+ children: b,
13
13
  header: v,
14
14
  footer: f,
15
15
  className: N,
16
- enableFullscreen: k = !0,
16
+ enableFullscreen: w = !0,
17
17
  position: c = "right",
18
- headerClassName: w = "",
18
+ headerClassName: k = "",
19
19
  disableOutsideClose: h = !1
20
20
  }) {
21
- const [n, P] = X(!1), r = q(null);
22
- if (m(() => (i ? a.push(r) : a = a.filter((e) => e !== r), () => {
23
- a = a.filter((e) => e !== r);
21
+ const [r, P] = X(!1), n = q(null);
22
+ if (m(() => (i ? a.push(n) : a = a.filter((e) => e !== n), () => {
23
+ a = a.filter((e) => e !== n);
24
24
  }), [i]), m(() => {
25
25
  const e = (o) => {
26
26
  var p;
@@ -28,14 +28,14 @@ function W({
28
28
  const A = a.some(
29
29
  (x) => x.current && x.current.contains(o.target)
30
30
  ), F = (p = o.target) == null ? void 0 : p.closest("[data-sheet-close]");
31
- !A && !F && r.current && !r.current.contains(o.target) && s();
31
+ !A && !F && n.current && !n.current.contains(o.target) && s();
32
32
  };
33
- return i && !n && document.addEventListener("mousedown", e), () => {
33
+ return i && !r && document.addEventListener("mousedown", e), () => {
34
34
  document.removeEventListener("mousedown", e);
35
35
  };
36
- }, [i, n, h]), m(() => {
36
+ }, [i, r, h]), m(() => {
37
37
  const e = (o) => {
38
- o.key === "Escape" && i && a[a.length - 1] === r && s();
38
+ o.key === "Escape" && i && a[a.length - 1] === n && s();
39
39
  };
40
40
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
41
41
  }, [i]), !i) return null;
@@ -43,25 +43,25 @@ function W({
43
43
  e.stopPropagation(), s();
44
44
  }, z = /* @__PURE__ */ l("div", { className: "flex flex-col h-full", children: [
45
45
  /* @__PURE__ */ l("div", { className: u(
46
- "flex items-center bg-card justify-between py-4 px-4 h-header border-b border-border/50",
47
- w
46
+ "flex items-center bg-card justify-between py-4 px-4 h-header border-b border-light",
47
+ k
48
48
  ), children: [
49
49
  /* @__PURE__ */ t("div", { className: "text-sm font-medium", children: v }),
50
50
  /* @__PURE__ */ l("div", { className: "flex items-center gap-1 ml-auto", children: [
51
- k && /* @__PURE__ */ t(
52
- b,
51
+ w && /* @__PURE__ */ t(
52
+ y,
53
53
  {
54
54
  variant: "ghost",
55
55
  size: "icon",
56
56
  className: "h-7 w-7",
57
57
  onClick: (e) => {
58
- e.stopPropagation(), P(!n);
58
+ e.stopPropagation(), P(!r);
59
59
  },
60
- children: n ? /* @__PURE__ */ t(B, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ t(I, { className: "h-3.5 w-3.5" })
60
+ children: r ? /* @__PURE__ */ t(B, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ t(I, { className: "h-3.5 w-3.5" })
61
61
  }
62
62
  ),
63
63
  /* @__PURE__ */ t(
64
- b,
64
+ y,
65
65
  {
66
66
  variant: "ghost",
67
67
  size: "icon",
@@ -73,8 +73,8 @@ function W({
73
73
  )
74
74
  ] })
75
75
  ] }),
76
- /* @__PURE__ */ t("div", { className: "flex-1 overflow-auto", children: g }),
77
- f && /* @__PURE__ */ t("div", { className: "border-t border-border/50 bg-card py-2 px-3", children: /* @__PURE__ */ t("div", { className: "text-sm", children: f }) })
76
+ /* @__PURE__ */ t("div", { className: "flex-1 overflow-auto", children: b }),
77
+ f && /* @__PURE__ */ t("div", { className: "border-t border-light bg-card py-2 px-3", children: /* @__PURE__ */ t("div", { className: "text-sm", children: f }) })
78
78
  ] }), C = () => c === "left" ? {
79
79
  initial: { x: -100, opacity: 0 },
80
80
  animate: { x: 0, opacity: 1 },
@@ -87,9 +87,9 @@ function W({
87
87
  initial: { x: 100, opacity: 0 },
88
88
  animate: { x: 0, opacity: 1 },
89
89
  exit: { x: 100, opacity: 0 }
90
- }, L = () => n ? "inset-4 rounded-lg" : c === "left" ? "inset-y-0 left-0 border-r" : c === "bottom" ? "inset-x-0 bottom-0 border-t" : "inset-y-0 right-0 border-l", d = C(), S = L(), j = /* @__PURE__ */ t(D, { children: i && /* @__PURE__ */ l(R, { children: [
90
+ }, L = () => r ? "inset-4 rounded-lg" : c === "left" ? "inset-y-0 left-0 border-r" : c === "bottom" ? "inset-x-0 bottom-0 border-t" : "inset-y-0 right-0 border-l", d = C(), S = L(), j = /* @__PURE__ */ t(D, { children: i && /* @__PURE__ */ l(R, { children: [
91
91
  /* @__PURE__ */ t(
92
- y.div,
92
+ g.div,
93
93
  {
94
94
  initial: { opacity: 0 },
95
95
  animate: { opacity: 1 },
@@ -98,15 +98,15 @@ function W({
98
98
  e.stopPropagation(), s();
99
99
  },
100
100
  className: u(
101
- "fixed inset-0 z-[100] bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
102
- n ? "block" : "hidden"
101
+ "fixed inset-0 z-[100] bg-secondary/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
102
+ r ? "block" : "hidden"
103
103
  )
104
104
  }
105
105
  ),
106
106
  /* @__PURE__ */ t(
107
- y.div,
107
+ g.div,
108
108
  {
109
- ref: r,
109
+ ref: n,
110
110
  initial: d.initial,
111
111
  animate: d.animate,
112
112
  exit: d.exit,
@@ -115,7 +115,7 @@ function W({
115
115
  ease: [0.32, 0.72, 0, 1]
116
116
  },
117
117
  className: u(
118
- "fixed z-[100] bg-background shadow-lg flex flex-col border-border/50",
118
+ "fixed z-[100] bg-secondary shadow-lg flex flex-col border-light",
119
119
  S,
120
120
  N
121
121
  ),
@@ -1,17 +1,17 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { cn as r } from "../lib/utils.js";
3
- function d({
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { cn as m } from "../lib/utils.js";
3
+ function i({
4
4
  className: e,
5
- ...m
5
+ ...o
6
6
  }) {
7
- return /* @__PURE__ */ o(
7
+ return /* @__PURE__ */ r(
8
8
  "div",
9
9
  {
10
- className: r("animate-pulse rounded-md bg-muted/60", e),
11
- ...m
10
+ className: m("animate-pulse rounded-md bg-hover/60", e),
11
+ ...o
12
12
  }
13
13
  );
14
14
  }
15
15
  export {
16
- d as Skeleton
16
+ i as Skeleton
17
17
  };
@@ -1,32 +1,32 @@
1
- import { jsxs as s, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as i } from "react/jsx-runtime";
2
2
  import * as t from "react";
3
3
  import * as e from "@radix-ui/react-slider";
4
- import { cn as n } from "../lib/utils.js";
5
- const c = t.forwardRef(({ className: l, ...o }, a) => {
6
- var i;
7
- return /* @__PURE__ */ s(
4
+ import { cn as c } from "../lib/utils.js";
5
+ const n = t.forwardRef(({ className: l, ...r }, s) => {
6
+ var o;
7
+ return /* @__PURE__ */ a(
8
8
  e.Root,
9
9
  {
10
- ref: a,
11
- className: n(
10
+ ref: s,
11
+ className: c(
12
12
  "relative flex w-full touch-none select-none items-center",
13
13
  l
14
14
  ),
15
- ...o,
15
+ ...r,
16
16
  children: [
17
- /* @__PURE__ */ r(e.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ r(
17
+ /* @__PURE__ */ i(e.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ i(
18
18
  "div",
19
19
  {
20
20
  className: "absolute h-full bg-primary",
21
- style: { width: `${(((i = o.value) == null ? void 0 : i[0]) || 0) * 100}%` }
21
+ style: { width: `${(((o = r.value) == null ? void 0 : o[0]) || 0) * 100}%` }
22
22
  }
23
23
  ) }),
24
- /* @__PURE__ */ r(e.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 hover:scale-110 active:scale-90" })
24
+ /* @__PURE__ */ i(e.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-secondary shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-black/20 dark:focus-visible:ring-white/20 disabled:pointer-events-none disabled:opacity-50 hover:scale-110 active:scale-90" })
25
25
  ]
26
26
  }
27
27
  );
28
28
  });
29
- c.displayName = e.Root.displayName;
29
+ n.displayName = e.Root.displayName;
30
30
  export {
31
- c as Slider
31
+ n as Slider
32
32
  };
@@ -1,4 +1,4 @@
1
- import { a as p, S as t, b as o } from "../stepper-modal-JXpOXOV2.js";
1
+ import { a as p, S as t, b as o } from "../stepper-modal-Bh6gsg8o.js";
2
2
  export {
3
3
  p as StepLayout,
4
4
  t as Stepper,