laif-ds 0.1.11 → 0.1.13

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 (61) hide show
  1. package/dist/components/ui/accordion.js +16 -16
  2. package/dist/components/ui/alert-dialog.js +2 -2
  3. package/dist/components/ui/alert.js +5 -5
  4. package/dist/components/ui/async-select.js +39 -39
  5. package/dist/components/ui/audio-visualizer.js +7 -7
  6. package/dist/components/ui/avatar.js +3 -3
  7. package/dist/components/ui/badge.js +12 -12
  8. package/dist/components/ui/breadcrumb.js +1 -1
  9. package/dist/components/ui/button.js +31 -28
  10. package/dist/components/ui/calendar.js +23 -23
  11. package/dist/components/ui/card.js +6 -6
  12. package/dist/components/ui/chart.js +40 -40
  13. package/dist/components/ui/chat-message.js +59 -59
  14. package/dist/components/ui/checkbox.js +7 -7
  15. package/dist/components/ui/command.js +35 -35
  16. package/dist/components/ui/context-menu.js +16 -16
  17. package/dist/components/ui/data-table.js +2 -2
  18. package/dist/components/ui/date-picker.js +14 -14
  19. package/dist/components/ui/dialog.js +11 -11
  20. package/dist/components/ui/drawer.js +5 -5
  21. package/dist/components/ui/file-preview.js +14 -14
  22. package/dist/components/ui/form.js +18 -18
  23. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +6 -6
  24. package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +9 -9
  25. package/dist/components/ui/hover-card.js +5 -5
  26. package/dist/components/ui/input-otp.js +5 -5
  27. package/dist/components/ui/input-selector.js +11 -11
  28. package/dist/components/ui/input.js +25 -25
  29. package/dist/components/ui/interrupt-prompt.js +1 -1
  30. package/dist/components/ui/markdown-renderer.js +19 -19
  31. package/dist/components/ui/menubar.js +16 -16
  32. package/dist/components/ui/message-input.js +29 -29
  33. package/dist/components/ui/multiple-selector.js +92 -92
  34. package/dist/components/ui/navigation-menu.js +13 -13
  35. package/dist/components/ui/popover.js +1 -1
  36. package/dist/components/ui/progress.js +4 -4
  37. package/dist/components/ui/prompt-suggestions.js +9 -9
  38. package/dist/components/ui/radio-group.js +5 -5
  39. package/dist/components/ui/resizable.js +2 -2
  40. package/dist/components/ui/scroll-area.js +7 -7
  41. package/dist/components/ui/select.js +10 -10
  42. package/dist/components/ui/separator.js +3 -3
  43. package/dist/components/ui/sheet.js +8 -8
  44. package/dist/components/ui/sidebar.js +134 -134
  45. package/dist/components/ui/skeleton.js +1 -1
  46. package/dist/components/ui/switch.js +5 -5
  47. package/dist/components/ui/table.js +3 -3
  48. package/dist/components/ui/tabs.js +2 -2
  49. package/dist/components/ui/textarea.js +7 -7
  50. package/dist/components/ui/toaster.js +12 -12
  51. package/dist/components/ui/toggle.js +2 -2
  52. package/dist/components/ui/tooltip.js +2 -2
  53. package/dist/components/ui/typing-indicator.js +8 -8
  54. package/dist/components/ui/typo.js +9 -9
  55. package/dist/dist/components/ui/checkbox.js +5 -5
  56. package/dist/dist/components/ui/scroll-area.js +2 -2
  57. package/dist/dist/components/ui/table.js +1 -1
  58. package/dist/index.d.ts +3 -2
  59. package/dist/styles.css +1 -1
  60. package/dist/styles.v3.css +1 -1
  61. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx as m } from "react/jsx-runtime";
2
+ import { jsx as n } from "react/jsx-runtime";
3
3
  import * as s from "react";
4
4
  import { Root as f } from "../../node_modules/@radix-ui/react-slot/dist/index.js";
5
5
  import { FormProvider as u, Controller as F, useFormContext as x, useFormState as I } from "../../node_modules/react-hook-form/dist/index.esm.js";
@@ -9,8 +9,8 @@ const S = u, c = s.createContext(
9
9
  {}
10
10
  ), $ = ({
11
11
  ...t
12
- }) => /* @__PURE__ */ m(c.Provider, { value: { name: t.name }, children: /* @__PURE__ */ m(F, { ...t }) }), d = () => {
13
- const t = s.useContext(c), o = s.useContext(l), { getFieldState: e } = x(), r = I({ name: t.name }), n = e(t.name, r);
12
+ }) => /* @__PURE__ */ n(c.Provider, { value: { name: t.name }, children: /* @__PURE__ */ n(F, { ...t }) }), d = () => {
13
+ const t = s.useContext(c), o = s.useContext(l), { getFieldState: e } = x(), r = I({ name: t.name }), m = e(t.name, r);
14
14
  if (!t)
15
15
  throw new Error("useFormField should be used within <FormField>");
16
16
  const { id: i } = o;
@@ -20,14 +20,14 @@ const S = u, c = s.createContext(
20
20
  formItemId: `${i}-form-item`,
21
21
  formDescriptionId: `${i}-form-item-description`,
22
22
  formMessageId: `${i}-form-item-message`,
23
- ...n
23
+ ...m
24
24
  };
25
25
  }, l = s.createContext(
26
26
  {}
27
27
  );
28
28
  function D({ className: t, ...o }) {
29
29
  const e = s.useId();
30
- return /* @__PURE__ */ m(l.Provider, { value: { id: e }, children: /* @__PURE__ */ m(
30
+ return /* @__PURE__ */ n(l.Provider, { value: { id: e }, children: /* @__PURE__ */ n(
31
31
  "div",
32
32
  {
33
33
  "data-slot": "form-item",
@@ -41,25 +41,25 @@ function M({
41
41
  ...o
42
42
  }) {
43
43
  const { error: e, formItemId: r } = d();
44
- return /* @__PURE__ */ m(
44
+ return /* @__PURE__ */ n(
45
45
  g,
46
46
  {
47
47
  "data-slot": "form-label",
48
48
  "data-error": !!e,
49
- className: a("data-[error=true]:text-destructive", t),
49
+ className: a("data-[error=true]:text-d-destructive", t),
50
50
  htmlFor: r,
51
51
  ...o
52
52
  }
53
53
  );
54
54
  }
55
55
  function N({ ...t }) {
56
- const { error: o, formItemId: e, formDescriptionId: r, formMessageId: n } = d();
57
- return /* @__PURE__ */ m(
56
+ const { error: o, formItemId: e, formDescriptionId: r, formMessageId: m } = d();
57
+ return /* @__PURE__ */ n(
58
58
  f,
59
59
  {
60
60
  "data-slot": "form-control",
61
61
  id: e,
62
- "aria-describedby": o ? `${r} ${n}` : `${r}`,
62
+ "aria-describedby": o ? `${r} ${m}` : `${r}`,
63
63
  "aria-invalid": !!o,
64
64
  ...t
65
65
  }
@@ -67,26 +67,26 @@ function N({ ...t }) {
67
67
  }
68
68
  function w({ className: t, ...o }) {
69
69
  const { formDescriptionId: e } = d();
70
- return /* @__PURE__ */ m(
70
+ return /* @__PURE__ */ n(
71
71
  "p",
72
72
  {
73
73
  "data-slot": "form-description",
74
74
  id: e,
75
- className: a("text-muted-foreground text-sm", t),
75
+ className: a("text-d-secondary-foreground text-sm", t),
76
76
  ...o
77
77
  }
78
78
  );
79
79
  }
80
- function P({ className: t, ...o }) {
81
- const { error: e, formMessageId: r } = d(), n = e ? String((e == null ? void 0 : e.message) ?? "") : o.children;
82
- return n ? /* @__PURE__ */ m(
80
+ function y({ className: t, ...o }) {
81
+ const { error: e, formMessageId: r } = d(), m = e ? String((e == null ? void 0 : e.message) ?? "") : o.children;
82
+ return m ? /* @__PURE__ */ n(
83
83
  "p",
84
84
  {
85
85
  "data-slot": "form-message",
86
86
  id: r,
87
- className: a("text-destructive text-sm", t),
87
+ className: a("text-d-destructive text-sm", t),
88
88
  ...o,
89
- children: n
89
+ children: m
90
90
  }
91
91
  ) : null;
92
92
  }
@@ -97,6 +97,6 @@ export {
97
97
  $ as FormField,
98
98
  D as FormItem,
99
99
  M as FormLabel,
100
- P as FormMessage,
100
+ y as FormMessage,
101
101
  d as useFormField
102
102
  };
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { useContext as a, useMemo as d } from "react";
4
- import { BarsRowContext as m } from "./BarsRowContext.js";
5
- import { GanttContext as p } from "../../../Gantt/GanttContext.js";
3
+ import { useContext as i, useMemo as a } from "react";
4
+ import { BarsRowContext as p } from "./BarsRowContext.js";
5
+ import { GanttContext as m } from "../../../Gantt/GanttContext.js";
6
6
  import l from "./BarsItems/BarItems.js";
7
7
  const v = ({ barData: t, index: r, style: o, onBarDoubleClick: s }) => {
8
- const { settings: n } = a(p), i = d(() => ({
8
+ const { settings: n } = i(m), d = a(() => ({
9
9
  ...o,
10
- backgroundImage: `repeating-linear-gradient(to right, var(--border) 0px 1px, ${r % 2 === 0 ? "var(--background)" : "var(--muted)"} 1px ${n.stepWidth}px`
10
+ backgroundImage: `repeating-linear-gradient(to right, var(--d-border) 0px 1px, ${r % 2 === 0 ? "var(--d-background)" : "var(--d-secondary)"} 1px ${n.stepWidth}px`
11
11
  }), [r, n.stepWidth, o]);
12
- return /* @__PURE__ */ e(m.Provider, { value: { barData: t }, children: /* @__PURE__ */ e("div", { className: "gantt-bars-row-wrap", style: i, children: /* @__PURE__ */ e(
12
+ return /* @__PURE__ */ e(p.Provider, { value: { barData: t }, children: /* @__PURE__ */ e("div", { className: "gantt-bars-row-wrap", style: d, children: /* @__PURE__ */ e(
13
13
  l,
14
14
  {
15
15
  data: t.data,
@@ -5,13 +5,13 @@ import { VariableSizeList as E } from "../../../../../../node_modules/react-wind
5
5
  import { MinusSquareOutlined as y } from "../../../assets/icons/MinusSquareOutlined.js";
6
6
  import { PlusSquareOutlined as T } from "../../../assets/icons/PlusSquareOutlined.js";
7
7
  import { GanttConsts as i } from "../../../constants/GanttConsts.js";
8
- const b = g(({ height: c, data: s, setData: l, treeTitle: m = "Attività" }, u) => {
8
+ const b = g(({ height: c, data: s, setData: l, treeTitle: m = "Attività" }, p) => {
9
9
  const o = f(() => {
10
10
  const r = [];
11
11
  for (const e of s)
12
12
  e.hasOwnProperty("expanded") && !e.expanded && r.push(e.key);
13
13
  return s.filter((e) => !e.parentsKeys.some((n) => r.includes(n)));
14
- }, [s]), p = h(
14
+ }, [s]), u = h(
15
15
  (r) => {
16
16
  const e = [...s], t = e.find((n) => n.key === r);
17
17
  t != null && t.hasOwnProperty("expanded") && (t.expanded = !t.expanded), l(e);
@@ -21,7 +21,7 @@ const b = g(({ height: c, data: s, setData: l, treeTitle: m = "Attività" }, u)
21
21
  return /* @__PURE__ */ a(
22
22
  "div",
23
23
  {
24
- className: "gantt-tree-wrap bg-background",
24
+ className: "gantt-tree-wrap bg-d-background",
25
25
  style: {
26
26
  width: i.TREE_WIDTH,
27
27
  marginTop: -i.HEADER_HEIGHT
@@ -29,8 +29,8 @@ const b = g(({ height: c, data: s, setData: l, treeTitle: m = "Attività" }, u)
29
29
  children: /* @__PURE__ */ a(
30
30
  E,
31
31
  {
32
- ref: u,
33
- className: "gantt-tree-list bg-background",
32
+ ref: p,
33
+ className: "gantt-tree-list bg-d-background",
34
34
  layout: "vertical",
35
35
  width: "100%",
36
36
  height: c,
@@ -38,7 +38,7 @@ const b = g(({ height: c, data: s, setData: l, treeTitle: m = "Attività" }, u)
38
38
  itemSize: () => i.ROW_HEIGHT,
39
39
  itemData: o,
40
40
  innerElementType: ({ children: r, props: e }) => /* @__PURE__ */ d("div", { style: { height: o.length * i.ROW_HEIGHT }, ...e, children: [
41
- /* @__PURE__ */ a("div", { className: "gantt-tree-title bg-background", style: { height: i.HEADER_HEIGHT }, children: m }),
41
+ /* @__PURE__ */ a("div", { className: "gantt-tree-title bg-d-background", style: { height: i.HEADER_HEIGHT }, children: m }),
42
42
  /* @__PURE__ */ a("div", { className: "gantt-tree-inner-wrap", children: r })
43
43
  ] }),
44
44
  children: ({ style: r, index: e, data: t }) => {
@@ -46,13 +46,13 @@ const b = g(({ height: c, data: s, setData: l, treeTitle: m = "Attività" }, u)
46
46
  return /* @__PURE__ */ d(
47
47
  "button",
48
48
  {
49
- className: "gantt-tree-list-item bg-background text-foreground",
49
+ className: "gantt-tree-list-item bg-d-background text-foreground",
50
50
  style: {
51
51
  ...r,
52
- backgroundColor: e % 2 === 0 ? "var(--background)" : "var(--muted)",
52
+ backgroundColor: e % 2 === 0 ? "var(--d-background)" : "var(--d-secondary)",
53
53
  paddingLeft: i.LEAF_TITLE_PADDING_LEFT + n.level * i.LEAF_CHILDREN_PADDING_LEFT
54
54
  },
55
- onClick: () => p(n.key),
55
+ onClick: () => u(n.key),
56
56
  children: [
57
57
  n.hasOwnProperty("expanded") ? n.expanded ? /* @__PURE__ */ a(y, { className: "gantt-tree-icon" }) : /* @__PURE__ */ a(T, { className: "gantt-tree-icon" }) : null,
58
58
  /* @__PURE__ */ a("div", { children: t[e].title })
@@ -5,12 +5,12 @@ import { cn as m } from "../../lib/utils.js";
5
5
  function p({
6
6
  ...t
7
7
  }) {
8
- return /* @__PURE__ */ o(d, { "data-slot": "hover-card", ...t });
8
+ return /* @__PURE__ */ o(d, { "data-slot": "hover-d-card", ...t });
9
9
  }
10
10
  function u({
11
11
  ...t
12
12
  }) {
13
- return /* @__PURE__ */ o(n, { "data-slot": "hover-card-trigger", ...t });
13
+ return /* @__PURE__ */ o(n, { "data-slot": "hover-d-card-trigger", ...t });
14
14
  }
15
15
  function g({
16
16
  className: t,
@@ -18,14 +18,14 @@ function g({
18
18
  sideOffset: a = 4,
19
19
  ...r
20
20
  }) {
21
- return /* @__PURE__ */ o(i, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ o(
21
+ return /* @__PURE__ */ o(i, { "data-slot": "hover-d-card-portal", children: /* @__PURE__ */ o(
22
22
  s,
23
23
  {
24
- "data-slot": "hover-card-content",
24
+ "data-slot": "hover-d-card-content",
25
25
  align: e,
26
26
  sideOffset: a,
27
27
  className: m(
28
- "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-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
28
+ "bg-d-popover text-d-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-64 origin-(--radix-hover-d-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
29
29
  t
30
30
  ),
31
31
  ...r
@@ -36,20 +36,20 @@ function g({
36
36
  className: e,
37
37
  ...i
38
38
  }) {
39
- const n = u.useContext(p), { char: s, hasFakeCaret: o, isActive: d } = (n == null ? void 0 : n.slots[t]) ?? {};
39
+ const n = u.useContext(p), { char: d, hasFakeCaret: s, isActive: o } = (n == null ? void 0 : n.slots[t]) ?? {};
40
40
  return /* @__PURE__ */ c(
41
41
  "div",
42
42
  {
43
43
  "data-slot": "input-otp-slot",
44
- "data-active": d,
44
+ "data-active": o,
45
45
  className: r(
46
- "data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",
46
+ "data-[active=true]:border-d-ring data-[active=true]:ring-d-ring/50 data-[active=true]:aria-invalid:ring-d-destructive/20 dark:data-[active=true]:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive data-[active=true]:aria-invalid:border-d-destructive dark:bg-d-input/30 border-d-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",
47
47
  e
48
48
  ),
49
49
  ...i,
50
50
  children: [
51
- s,
52
- o && /* @__PURE__ */ a("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ a("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
51
+ d,
52
+ s && /* @__PURE__ */ a("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ a("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
53
53
  ]
54
54
  }
55
55
  );
@@ -19,7 +19,7 @@ function V({
19
19
  buttonClassName: u,
20
20
  counterClassName: y
21
21
  }) {
22
- const [e, o] = s.useState(a), [m, f] = s.useState(!1);
22
+ const [e, o] = s.useState(a), [d, m] = s.useState(!1);
23
23
  s.useEffect(() => {
24
24
  o(a);
25
25
  }, [a]);
@@ -28,15 +28,15 @@ function V({
28
28
  const n = e + 1;
29
29
  o(n), t == null || t(n);
30
30
  } else
31
- d();
31
+ f();
32
32
  }, h = (c) => {
33
33
  if (c.preventDefault(), e > p) {
34
34
  const n = e - 1;
35
35
  o(n), t == null || t(n);
36
36
  } else
37
- d();
38
- }, d = () => {
39
- f(!0), setTimeout(() => f(!1), 300);
37
+ f();
38
+ }, f = () => {
39
+ m(!0), setTimeout(() => m(!1), 300);
40
40
  };
41
41
  return /* @__PURE__ */ i(
42
42
  l.div,
@@ -50,7 +50,7 @@ function V({
50
50
  children: /* @__PURE__ */ N(
51
51
  l.div,
52
52
  {
53
- variants: m ? {
53
+ variants: d ? {
54
54
  initial: { x: 0 },
55
55
  vibrate: {
56
56
  x: [0, -5, 5, -5, 5, 0],
@@ -58,7 +58,7 @@ function V({
58
58
  }
59
59
  } : void 0,
60
60
  initial: "initial",
61
- animate: m ? "vibrate" : "initial",
61
+ animate: d ? "vibrate" : "initial",
62
62
  className: "flex items-center gap-8",
63
63
  children: [
64
64
  /* @__PURE__ */ i(
@@ -68,8 +68,8 @@ function V({
68
68
  onClick: h,
69
69
  className: r(
70
70
  "h-12 w-12 rounded-full border",
71
- "bg-background",
72
- "hover:bg-accent hover:text-accent-foreground",
71
+ "bg-d-background",
72
+ "hover:bg-d-accent hover:text-d-accent-foreground",
73
73
  "text-foreground cursor-pointer",
74
74
  "flex items-center justify-center",
75
75
  u
@@ -99,8 +99,8 @@ function V({
99
99
  onClick: g,
100
100
  className: r(
101
101
  "h-12 w-12 rounded-full border",
102
- "bg-background",
103
- "hover:bg-accent hover:text-accent-foreground",
102
+ "bg-d-background",
103
+ "hover:bg-d-accent hover:text-d-accent-foreground",
104
104
  "text-foreground cursor-pointer",
105
105
  "flex items-center justify-center",
106
106
  u
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
3
- import { cva as f } from "../../node_modules/class-variance-authority/dist/index.js";
4
- import { cn as c } from "../../lib/utils.js";
2
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
3
+ import { cva as c } from "../../node_modules/class-variance-authority/dist/index.js";
4
+ import { cn as f } from "../../lib/utils.js";
5
5
  import { Label as x } from "./label.js";
6
- import { Icon as o } from "./icon.js";
7
- const g = f(
8
- "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent px-3 transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
6
+ import { Icon as a } from "./icon.js";
7
+ const g = c(
8
+ "file:text-foreground placeholder:text-d-secondary-foreground selection:bg-d-primary selection:text-d-primary-foreground dark:bg-d-input/30 border-d-input flex w-full min-w-0 rounded-md border bg-transparent px-3 transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
9
9
  {
10
10
  variants: {
11
11
  size: {
@@ -20,47 +20,47 @@ const g = f(
20
20
  }
21
21
  );
22
22
  function w({
23
- className: l,
24
- type: d,
23
+ className: o,
24
+ type: l,
25
25
  label: r,
26
- labelClassName: m,
27
- id: u,
26
+ labelClassName: p,
27
+ id: m,
28
28
  iconLeft: i,
29
29
  iconRight: n,
30
30
  size: t,
31
- ...p
31
+ ...u
32
32
  }) {
33
- const s = u || (r ? `input-${Math.random().toString(36).substring(2, 9)}` : void 0);
34
- return /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
33
+ const d = m || (r ? `input-${Math.random().toString(36).substring(2, 9)}` : void 0);
34
+ return /* @__PURE__ */ s("div", { className: "space-y-1.5", children: [
35
35
  r && /* @__PURE__ */ e(
36
36
  x,
37
37
  {
38
- htmlFor: s,
39
- className: m,
38
+ htmlFor: d,
39
+ className: p,
40
40
  children: r
41
41
  }
42
42
  ),
43
- /* @__PURE__ */ a("div", { className: "relative", children: [
44
- i && /* @__PURE__ */ e("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: /* @__PURE__ */ e(o, { name: i, size: t === "lg" ? "sm" : "xs" }) }),
43
+ /* @__PURE__ */ s("div", { className: "relative", children: [
44
+ i && /* @__PURE__ */ e("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-d-secondary-foreground pointer-events-none", children: /* @__PURE__ */ e(a, { name: i, size: t === "lg" ? "sm" : "xs" }) }),
45
45
  /* @__PURE__ */ e(
46
46
  "input",
47
47
  {
48
- id: s,
49
- type: d,
48
+ id: d,
49
+ type: l,
50
50
  "data-slot": "input",
51
- className: c(
51
+ className: f(
52
52
  g({ size: t }),
53
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
54
- "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
53
+ "focus-visible:border-d-ring focus-visible:ring-d-ring/50 focus-visible:ring-[3px]",
54
+ "aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive",
55
55
  "shadow-xs",
56
56
  i ? t !== "lg" ? "pl-8" : "pl-10" : "",
57
57
  n ? t !== "lg" ? "pr-8" : "pr-10" : "",
58
- l
58
+ o
59
59
  ),
60
- ...p
60
+ ...u
61
61
  }
62
62
  ),
63
- n && /* @__PURE__ */ e("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: /* @__PURE__ */ e(o, { name: n, size: t === "lg" ? "sm" : "xs" }) })
63
+ n && /* @__PURE__ */ e("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-d-secondary-foreground pointer-events-none", children: /* @__PURE__ */ e(a, { name: n, size: t === "lg" ? "sm" : "xs" }) })
64
64
  ] })
65
65
  ] });
66
66
  }
@@ -16,7 +16,7 @@ function m({ isOpen: t, close: r }) {
16
16
  }
17
17
  },
18
18
  exit: { top: 0, filter: "blur(5px)" },
19
- className: "absolute left-1/2 flex -translate-x-1/2 overflow-hidden whitespace-nowrap rounded-full border bg-background py-1 text-center text-sm text-muted-foreground",
19
+ className: "absolute left-1/2 flex -translate-x-1/2 overflow-hidden whitespace-nowrap rounded-full border bg-d-background py-1 text-center text-sm text-d-secondary-foreground",
20
20
  children: [
21
21
  /* @__PURE__ */ e("span", { className: "ml-2.5", children: "Press Enter again to interrupt" }),
22
22
  /* @__PURE__ */ e(
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as t, jsxs as p, Fragment as b } from "react/jsx-runtime";
3
- import x, { Suspense as y } from "react";
3
+ import y, { Suspense as x } from "react";
4
4
  import { cn as g } from "../../lib/utils.js";
5
5
  import { CopyButton as k } from "./copy-button.js";
6
6
  import { Markdown as N } from "../../node_modules/react-markdown/lib/index.js";
@@ -8,10 +8,10 @@ import v from "../../node_modules/remark-gfm/lib/index.js";
8
8
  function q({ children: e }) {
9
9
  return /* @__PURE__ */ t("div", { className: "space-y-3", children: /* @__PURE__ */ t(N, { remarkPlugins: [v], components: C, children: e }) });
10
10
  }
11
- const h = x.memo(
11
+ const h = y.memo(
12
12
  async ({ children: e, language: o, ...n }) => {
13
- const { codeToTokens: i, bundledLanguages: l } = await import("../../node_modules/shiki/dist/index.js");
14
- if (!(o in l))
13
+ const { codeToTokens: i, bundledLanguages: d } = await import("../../node_modules/shiki/dist/index.js");
14
+ if (!(o in d))
15
15
  return /* @__PURE__ */ t("pre", { ...n, children: e });
16
16
  const { tokens: a } = await i(e, {
17
17
  lang: o,
@@ -22,14 +22,14 @@ const h = x.memo(
22
22
  }
23
23
  });
24
24
  return /* @__PURE__ */ t("pre", { ...n, children: /* @__PURE__ */ t("code", { children: a.map((m, c) => /* @__PURE__ */ p(b, { children: [
25
- /* @__PURE__ */ t("span", { children: m.map((d, u) => {
26
- const f = typeof d.htmlStyle == "string" ? void 0 : d.htmlStyle;
25
+ /* @__PURE__ */ t("span", { children: m.map((l, u) => {
26
+ const f = typeof l.htmlStyle == "string" ? void 0 : l.htmlStyle;
27
27
  return /* @__PURE__ */ t(
28
28
  "span",
29
29
  {
30
30
  className: "text-shiki-light bg-shiki-light-bg dark:text-shiki-dark dark:bg-shiki-dark-bg",
31
31
  style: f,
32
- children: d.content
32
+ children: l.content
33
33
  },
34
34
  u
35
35
  );
@@ -46,19 +46,19 @@ const w = ({
46
46
  language: n,
47
47
  ...i
48
48
  }) => {
49
- const l = typeof e == "string" ? e : s(e), a = g(
50
- "overflow-x-scroll rounded-md border bg-background/50 p-4 font-mono text-sm [scrollbar-width:none]",
49
+ const d = typeof e == "string" ? e : s(e), a = g(
50
+ "overflow-x-scroll rounded-md border bg-d-background/50 p-4 font-mono text-sm [scrollbar-width:none]",
51
51
  o
52
52
  );
53
53
  return /* @__PURE__ */ p("div", { className: "group/code relative mb-4", children: [
54
54
  /* @__PURE__ */ t(
55
- y,
55
+ x,
56
56
  {
57
57
  fallback: /* @__PURE__ */ t("pre", { className: a, ...i, children: e }),
58
- children: /* @__PURE__ */ t(h, { language: n, className: a, children: l })
58
+ children: /* @__PURE__ */ t(h, { language: n, className: a, children: d })
59
59
  }
60
60
  ),
61
- /* @__PURE__ */ t("div", { className: "invisible absolute right-2 top-2 flex space-x-1 rounded-lg p-1 opacity-0 transition-all duration-200 group-hover/code:visible group-hover/code:opacity-100", children: /* @__PURE__ */ t(k, { content: l, copyMessage: "Copied code to clipboard" }) })
61
+ /* @__PURE__ */ t("div", { className: "invisible absolute right-2 top-2 flex space-x-1 rounded-lg p-1 opacity-0 transition-all duration-200 group-hover/code:visible group-hover/code:opacity-100", children: /* @__PURE__ */ t(k, { content: d, copyMessage: "Copied code to clipboard" }) })
62
62
  ] });
63
63
  };
64
64
  function s(e) {
@@ -78,15 +78,15 @@ const C = {
78
78
  h4: r("h4", "font-semibold text-base"),
79
79
  h5: r("h5", "font-medium"),
80
80
  strong: r("strong", "font-semibold"),
81
- a: r("a", "text-primary underline underline-offset-2"),
82
- blockquote: r("blockquote", "border-l-2 border-primary pl-4"),
81
+ a: r("a", "text-d-primary underline underline-offset-2"),
82
+ blockquote: r("blockquote", "border-l-2 border-d-primary pl-4"),
83
83
  code: ({ children: e, className: o, node: n, ...i }) => {
84
- const l = /language-(\w+)/.exec(o || "");
85
- return l ? /* @__PURE__ */ t(w, { className: o, language: l[1], ...i, children: e }) : /* @__PURE__ */ t(
84
+ const d = /language-(\w+)/.exec(o || "");
85
+ return d ? /* @__PURE__ */ t(w, { className: o, language: d[1], ...i, children: e }) : /* @__PURE__ */ t(
86
86
  "code",
87
87
  {
88
88
  className: g(
89
- "font-mono [:not(pre)>&]:rounded-md [:not(pre)>&]:bg-background/50 [:not(pre)>&]:px-1 [:not(pre)>&]:py-0.5"
89
+ "font-mono [:not(pre)>&]:rounded-md [:not(pre)>&]:bg-d-background/50 [:not(pre)>&]:px-1 [:not(pre)>&]:py-0.5"
90
90
  ),
91
91
  ...i,
92
92
  children: e
@@ -109,12 +109,12 @@ const C = {
109
109
  "td",
110
110
  "border border-foreground/20 px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right"
111
111
  ),
112
- tr: r("tr", "m-0 border-t p-0 even:bg-muted"),
112
+ tr: r("tr", "m-0 border-t p-0 even:bg-d-secondary"),
113
113
  p: r("p", "whitespace-pre-wrap"),
114
114
  hr: r("hr", "border-foreground/20")
115
115
  };
116
116
  function r(e, o) {
117
- const n = ({ node: i, ...l }) => /* @__PURE__ */ t(e, { className: o, ...l });
117
+ const n = ({ node: i, ...d }) => /* @__PURE__ */ t(e, { className: o, ...d });
118
118
  return n.displayName = String(e), n;
119
119
  }
120
120
  export {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as a, jsxs as s } from "react/jsx-runtime";
3
- import { Root as u, Menu as c, Trigger as l, Content as m, Item as f, Separator as b, Label as p, CheckboxItem as g, ItemIndicator as d, RadioItem as x, RadioGroup as v, Portal as h, SubContent as M, SubTrigger as z, Group as N, Sub as I } from "../../node_modules/@radix-ui/react-menubar/dist/index.js";
3
+ import { Root as u, Menu as c, Trigger as l, Content as m, Item as f, Separator as b, Label as p, CheckboxItem as g, ItemIndicator as d, RadioItem as x, RadioGroup as v, Portal as h, SubContent as M, SubTrigger as z, Group as N, Sub as y } from "../../node_modules/@radix-ui/react-menubar/dist/index.js";
4
4
  import { cn as o } from "../../lib/utils.js";
5
- import S from "../../node_modules/lucide-react/dist/esm/icons/check.js";
6
- import y from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
5
+ import I from "../../node_modules/lucide-react/dist/esm/icons/check.js";
6
+ import S from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
7
7
  import C from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
8
8
  function L({
9
9
  className: e,
@@ -14,7 +14,7 @@ function L({
14
14
  {
15
15
  "data-slot": "menubar",
16
16
  className: o(
17
- "bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
17
+ "bg-d-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
18
18
  e
19
19
  ),
20
20
  ...t
@@ -50,7 +50,7 @@ function B({
50
50
  {
51
51
  "data-slot": "menubar-trigger",
52
52
  className: o(
53
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
53
+ "focus:bg-d-accent focus:text-d-accent-foreground data-[state=open]:bg-d-accent data-[state=open]:text-d-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
54
54
  e
55
55
  ),
56
56
  ...t
@@ -72,7 +72,7 @@ function D({
72
72
  alignOffset: n,
73
73
  sideOffset: r,
74
74
  className: o(
75
- "bg-popover text-popover-foreground data-[state=open]:animate-in 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 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
75
+ "bg-d-popover text-d-popover-foreground data-[state=open]:animate-in 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 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
76
76
  e
77
77
  ),
78
78
  ...i
@@ -92,7 +92,7 @@ function E({
92
92
  "data-inset": t,
93
93
  "data-variant": n,
94
94
  className: o(
95
- "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
95
+ "focus:bg-d-accent focus:text-d-accent-foreground data-[variant=destructive]:text-d-destructive data-[variant=destructive]:focus:bg-d-destructive/10 dark:data-[variant=destructive]:focus:bg-d-destructive/20 data-[variant=destructive]:focus:text-d-destructive data-[variant=destructive]:*:[svg]:!text-d-destructive [&_svg:not([class*='text-'])]:text-d-secondary-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
96
96
  e
97
97
  ),
98
98
  ...r
@@ -110,13 +110,13 @@ function F({
110
110
  {
111
111
  "data-slot": "menubar-checkbox-item",
112
112
  className: o(
113
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
113
+ "focus:bg-d-accent focus:text-d-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
114
114
  e
115
115
  ),
116
116
  checked: n,
117
117
  ...r,
118
118
  children: [
119
- /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(S, { className: "size-4" }) }) }),
119
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(I, { className: "size-4" }) }) }),
120
120
  t
121
121
  ]
122
122
  }
@@ -132,12 +132,12 @@ function H({
132
132
  {
133
133
  "data-slot": "menubar-radio-item",
134
134
  className: o(
135
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
135
+ "focus:bg-d-accent focus:text-d-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
136
136
  e
137
137
  ),
138
138
  ...n,
139
139
  children: [
140
- /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(y, { className: "size-2 fill-current" }) }) }),
140
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(S, { className: "size-2 fill-current" }) }) }),
141
141
  t
142
142
  ]
143
143
  }
@@ -169,7 +169,7 @@ function K({
169
169
  b,
170
170
  {
171
171
  "data-slot": "menubar-separator",
172
- className: o("bg-border -mx-1 my-1 h-px", e),
172
+ className: o("bg-d-border -mx-1 my-1 h-px", e),
173
173
  ...t
174
174
  }
175
175
  );
@@ -183,7 +183,7 @@ function O({
183
183
  {
184
184
  "data-slot": "menubar-shortcut",
185
185
  className: o(
186
- "text-muted-foreground ml-auto text-xs tracking-widest",
186
+ "text-d-secondary-foreground ml-auto text-xs tracking-widest",
187
187
  e
188
188
  ),
189
189
  ...t
@@ -193,7 +193,7 @@ function O({
193
193
  function Q({
194
194
  ...e
195
195
  }) {
196
- return /* @__PURE__ */ a(I, { "data-slot": "menubar-sub", ...e });
196
+ return /* @__PURE__ */ a(y, { "data-slot": "menubar-sub", ...e });
197
197
  }
198
198
  function U({
199
199
  className: e,
@@ -207,7 +207,7 @@ function U({
207
207
  "data-slot": "menubar-sub-trigger",
208
208
  "data-inset": t,
209
209
  className: o(
210
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",
210
+ "focus:bg-d-accent focus:text-d-accent-foreground data-[state=open]:bg-d-accent data-[state=open]:text-d-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",
211
211
  e
212
212
  ),
213
213
  ...r,
@@ -227,7 +227,7 @@ function V({
227
227
  {
228
228
  "data-slot": "menubar-sub-content",
229
229
  className: o(
230
- "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 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
230
+ "bg-d-popover text-d-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 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
231
231
  e
232
232
  ),
233
233
  ...t