laif-ds 0.1.32 → 0.1.34

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 (52) hide show
  1. package/dist/components/ui/accordion.js +2 -7
  2. package/dist/components/ui/alert-dialog.js +10 -37
  3. package/dist/components/ui/alert.js +1 -5
  4. package/dist/components/ui/app-multiple-select-dropdown.js +120 -116
  5. package/dist/components/ui/app-select.js +9 -1
  6. package/dist/components/ui/app-sidebar.js +9 -23
  7. package/dist/components/ui/aspect-ratio.js +1 -3
  8. package/dist/components/ui/async-select.js +80 -64
  9. package/dist/components/ui/audio-visualizer.js +3 -2
  10. package/dist/components/ui/button.js +45 -5
  11. package/dist/components/ui/card.js +7 -2
  12. package/dist/components/ui/charts/circular.js +1 -1
  13. package/dist/components/ui/chat-message.js +34 -16
  14. package/dist/components/ui/chat.js +4 -4
  15. package/dist/components/ui/command.js +1 -1
  16. package/dist/components/ui/data-cross-table.js +33 -9
  17. package/dist/components/ui/data-table.js +4 -4
  18. package/dist/components/ui/date-picker.js +2 -2
  19. package/dist/components/ui/dropdown-menu.js +7 -7
  20. package/dist/components/ui/file-preview.js +9 -9
  21. package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +25 -3
  22. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +32 -13
  23. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +7 -1
  24. package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +6 -1
  25. package/dist/components/ui/gantt/components/Chart/Chart.js +19 -3
  26. package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +80 -71
  27. package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +72 -54
  28. package/dist/components/ui/gantt/components/Controls/Controls.js +4 -2
  29. package/dist/components/ui/gantt/hooks/useGanttCalculate.js +11 -1
  30. package/dist/components/ui/gantt/utils/getWholeWidth.js +4 -1
  31. package/dist/components/ui/gantt/utils/transformData.js +7 -4
  32. package/dist/components/ui/input-selector.js +5 -2
  33. package/dist/components/ui/input.js +41 -46
  34. package/dist/components/ui/interrupt-prompt.js +2 -2
  35. package/dist/components/ui/markdown-renderer.js +2 -2
  36. package/dist/components/ui/message-input.js +12 -10
  37. package/dist/components/ui/multiple-selector.js +44 -31
  38. package/dist/components/ui/prompt-suggestions.js +2 -2
  39. package/dist/components/ui/resizable.js +1 -1
  40. package/dist/components/ui/select.js +6 -10
  41. package/dist/components/ui/sidebar.js +27 -19
  42. package/dist/components/ui/slider.js +103 -89
  43. package/dist/components/ui/table-skeleton.js +29 -11
  44. package/dist/components/ui/table.js +4 -1
  45. package/dist/components/ui/tabs.js +1 -1
  46. package/dist/components/ui/theme-switcher.js +2 -7
  47. package/dist/components/ui/typing-indicator.js +4 -4
  48. package/dist/components/ui/typo.js +1 -8
  49. package/dist/hooks/use-mobile.js +3 -1
  50. package/dist/index.d.ts +9 -8
  51. package/dist/styles.css +1 -1
  52. package/package.json +3 -1
@@ -13,7 +13,9 @@ import { GanttDimensionsSettings as o } from "../../constants/DimensionsSettings
13
13
  import { DragStepOptions as u } from "../../constants/DragStepOptions.js";
14
14
  const Y = ({ className: D }) => {
15
15
  const { calculate: s } = L(), { settings: a, setSettings: p, currentDate: j } = y(B), [z, c] = h(a.dimension), [t, m] = h(
16
- Object.keys(o).findIndex((e) => e === a.dimension)
16
+ Object.keys(o).findIndex(
17
+ (e) => e === a.dimension
18
+ )
17
19
  ), l = f(() => Object.keys(o).map((e, i) => ({
18
20
  label: o[e].label,
19
21
  value: e,
@@ -46,7 +48,7 @@ const Y = ({ className: D }) => {
46
48
  },
47
49
  [p, a]
48
50
  );
49
- return /* @__PURE__ */ d("div", { className: P("flex items-center gap-2 p-4 border-b", D), children: [
51
+ return /* @__PURE__ */ d("div", { className: P("flex items-center gap-2 border-b p-4", D), children: [
50
52
  /* @__PURE__ */ n(
51
53
  g,
52
54
  {
@@ -10,7 +10,17 @@ const P = () => {
10
10
  return { calculate: d(
11
11
  (s) => {
12
12
  var l;
13
- const { stepWidth: S, itemsCount: p, scaleStepItems: g, secondsInPixel: n, unitOfTime: m } = O[s], c = z(e, p, m), i = C(s, c, e), f = x[t.dragStepSize].seconds / n;
13
+ const {
14
+ stepWidth: S,
15
+ itemsCount: p,
16
+ scaleStepItems: g,
17
+ secondsInPixel: n,
18
+ unitOfTime: m
19
+ } = O[s], c = z(e, p, m), i = C(
20
+ s,
21
+ c,
22
+ e
23
+ ), f = x[t.dragStepSize].seconds / n;
14
24
  o({
15
25
  stepWidth: S,
16
26
  initialScrollOffset: i,
@@ -1,7 +1,10 @@
1
1
  "use client";
2
2
  import m from "../../../../_virtual/dayjs.min.js";
3
3
  import { GanttDimensions as u } from "../enums/GanttDimensions.js";
4
- const h = (n, t, o, r) => t === u.DAY ? r * n.reduce((e, i) => e + m.unix(i).daysInMonth(), 0) : n.length * o * r;
4
+ const h = (n, t, o, r) => t === u.DAY ? r * n.reduce(
5
+ (e, i) => e + m.unix(i).daysInMonth(),
6
+ 0
7
+ ) : n.length * o * r;
5
8
  export {
6
9
  h as getWholeWidth
7
10
  };
@@ -5,10 +5,13 @@ const g = (e, u = !0, o = 0, d = 0, t = []) => e.reduce((l, r) => {
5
5
  var h;
6
6
  const c = d + l.length;
7
7
  if ((h = r == null ? void 0 : r.children) != null && h.length) {
8
- const f = g(r.children, u, o + 1, c + 1, [
9
- ...t,
10
- r.key
11
- ]);
8
+ const f = g(
9
+ r.children,
10
+ u,
11
+ o + 1,
12
+ c + 1,
13
+ [...t, r.key]
14
+ );
12
15
  return [
13
16
  ...l,
14
17
  {
@@ -46,7 +46,10 @@ function V({
46
46
  initial: "initial",
47
47
  animate: "animate",
48
48
  exit: "exit",
49
- className: r("flex w-full flex-col items-center justify-center gap-8", v),
49
+ className: r(
50
+ "flex w-full flex-col items-center justify-center gap-8",
51
+ v
52
+ ),
50
53
  children: /* @__PURE__ */ N(
51
54
  l.div,
52
55
  {
@@ -85,7 +88,7 @@ function V({
85
88
  animate: "animate",
86
89
  exit: "exit",
87
90
  className: r(
88
- "text-2xl font-medium text-d-foreground dark:text-d-foreground",
91
+ "text-d-foreground dark:text-d-foreground text-2xl font-medium",
89
92
  y
90
93
  ),
91
94
  children: e
@@ -19,52 +19,47 @@ const b = x(
19
19
  size: "default"
20
20
  }
21
21
  }
22
- ), h = c.forwardRef(({
23
- className: o,
24
- type: l,
25
- label: r,
26
- labelClassName: m,
27
- id: p,
28
- iconLeft: i,
29
- iconRight: s,
30
- size: t,
31
- ...u
32
- }, f) => {
33
- const n = p || (r ? `input-${Math.random().toString(36).substring(2, 9)}` : void 0);
34
- return /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
35
- r && /* @__PURE__ */ e(
36
- v,
37
- {
38
- htmlFor: n,
39
- className: m,
40
- children: r
41
- }
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-d-muted-foreground pointer-events-none", children: /* @__PURE__ */ e(d, { name: i, size: t === "lg" ? "sm" : "xs" }) }),
45
- /* @__PURE__ */ e(
46
- "input",
47
- {
48
- id: n,
49
- type: l,
50
- "data-slot": "input",
51
- className: g(
52
- b({ size: t }),
53
- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
54
- "aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive",
55
- "shadow-sm",
56
- i ? t !== "lg" ? "pl-9" : "pl-10" : "",
57
- s ? t !== "lg" ? "pr-9" : "pr-10" : "",
58
- o
59
- ),
60
- ref: f,
61
- ...u
62
- }
63
- ),
64
- s && /* @__PURE__ */ e("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-d-muted-foreground pointer-events-none", children: /* @__PURE__ */ e(d, { name: s, size: t === "lg" ? "sm" : "xs" }) })
65
- ] })
66
- ] });
67
- });
22
+ ), h = c.forwardRef(
23
+ ({
24
+ className: o,
25
+ type: l,
26
+ label: r,
27
+ labelClassName: m,
28
+ id: p,
29
+ iconLeft: i,
30
+ iconRight: s,
31
+ size: t,
32
+ ...u
33
+ }, f) => {
34
+ const n = p || (r ? `input-${Math.random().toString(36).substring(2, 9)}` : void 0);
35
+ return /* @__PURE__ */ a("div", { className: "space-y-1.5", children: [
36
+ r && /* @__PURE__ */ e(v, { htmlFor: n, className: m, children: r }),
37
+ /* @__PURE__ */ a("div", { className: "relative", children: [
38
+ i && /* @__PURE__ */ e("div", { className: "text-d-muted-foreground pointer-events-none absolute top-1/2 left-3 -translate-y-1/2", children: /* @__PURE__ */ e(d, { name: i, size: t === "lg" ? "sm" : "xs" }) }),
39
+ /* @__PURE__ */ e(
40
+ "input",
41
+ {
42
+ id: n,
43
+ type: l,
44
+ "data-slot": "input",
45
+ className: g(
46
+ b({ size: t }),
47
+ "focus-visible:ring-ring focus-visible:ring-1 focus-visible:outline-none",
48
+ "aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive",
49
+ "shadow-sm",
50
+ i ? t !== "lg" ? "pl-9" : "pl-10" : "",
51
+ s ? t !== "lg" ? "pr-9" : "pr-10" : "",
52
+ o
53
+ ),
54
+ ref: f,
55
+ ...u
56
+ }
57
+ ),
58
+ s && /* @__PURE__ */ e("div", { className: "text-d-muted-foreground pointer-events-none absolute top-1/2 right-3 -translate-y-1/2", children: /* @__PURE__ */ e(d, { name: s, size: t === "lg" ? "sm" : "xs" }) })
59
+ ] })
60
+ ] });
61
+ }
62
+ );
68
63
  h.displayName = "Input";
69
64
  export {
70
65
  h as Input,
@@ -16,13 +16,13 @@ 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-d-background py-1 text-center text-sm text-d-secondary-foreground",
19
+ className: "bg-d-background text-d-secondary-foreground absolute left-1/2 flex -translate-x-1/2 overflow-hidden rounded-full border py-1 text-center text-sm whitespace-nowrap",
20
20
  children: [
21
21
  /* @__PURE__ */ e("span", { className: "ml-2.5", children: "Press Enter again to interrupt" }),
22
22
  /* @__PURE__ */ e(
23
23
  "button",
24
24
  {
25
- className: "ml-1 mr-2.5 flex items-center",
25
+ className: "mr-2.5 ml-1 flex items-center",
26
26
  type: "button",
27
27
  onClick: r,
28
28
  "aria-label": "Close",
@@ -58,7 +58,7 @@ const w = ({
58
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: d, copyMessage: "Copied code to clipboard" }) })
61
+ /* @__PURE__ */ t("div", { className: "invisible absolute top-2 right-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) {
@@ -86,7 +86,7 @@ const C = {
86
86
  "code",
87
87
  {
88
88
  className: g(
89
- "font-mono [:not(pre)>&]:rounded-md [:not(pre)>&]:bg-d-background/50 [:not(pre)>&]:px-1 [:not(pre)>&]:py-0.5"
89
+ "[:not(pre)>&]:bg-d-background/50 font-mono [:not(pre)>&]:rounded-md [:not(pre)>&]:px-1 [:not(pre)>&]:py-0.5"
90
90
  ),
91
91
  ...i,
92
92
  children: e
@@ -87,7 +87,9 @@ function ne({
87
87
  (c = t.currentTarget.form) == null || c.requestSubmit();
88
88
  }
89
89
  o == null || o(t);
90
- }, b = Y(null), [J, Q] = y(0);
90
+ }, b = Y(
91
+ null
92
+ ), [J, Q] = y(0);
91
93
  C(() => {
92
94
  b.current && Q(b.current.offsetHeight);
93
95
  }, [r.value]);
@@ -129,14 +131,14 @@ function ne({
129
131
  onPaste: B,
130
132
  onKeyDown: W,
131
133
  className: R(
132
- "z-10 w-full grow resize-none rounded-xl border border-d-input bg-d-background p-3 pr-24 text-sm ring-offset-d-background transition-[border] placeholder:text-d-secondary-foreground focus-visible:border-d-primary focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
134
+ "border-d-input bg-d-background ring-offset-d-background placeholder:text-d-secondary-foreground focus-visible:border-d-primary z-10 w-full grow resize-none rounded-xl border p-3 pr-24 text-sm transition-[border] focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
133
135
  z && "pb-16",
134
136
  l
135
137
  ),
136
138
  ...r.allowAttachments ? I(r, ["allowAttachments", "files", "setFiles"]) : I(r, ["allowAttachments"])
137
139
  }
138
140
  ),
139
- r.allowAttachments && /* @__PURE__ */ e("div", { className: "absolute inset-x-3 bottom-2 z-20 overflow-x-scroll py-3 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", children: /* @__PURE__ */ e("div", { className: "flex space-x-3", children: /* @__PURE__ */ e(v, { mode: "popLayout", children: (S = r.files) == null ? void 0 : S.map((t) => /* @__PURE__ */ e(
141
+ r.allowAttachments && /* @__PURE__ */ e("div", { className: "absolute inset-x-3 bottom-2 z-20 overflow-x-scroll py-3 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: /* @__PURE__ */ e("div", { className: "flex space-x-3", children: /* @__PURE__ */ e(v, { mode: "popLayout", children: (S = r.files) == null ? void 0 : S.map((t) => /* @__PURE__ */ e(
140
142
  K,
141
143
  {
142
144
  file: t,
@@ -153,7 +155,7 @@ function ne({
153
155
  t.name + String(t.lastModified)
154
156
  )) }) }) })
155
157
  ] }) }),
156
- /* @__PURE__ */ d("div", { className: "absolute right-3 top-3 z-20 flex gap-2", children: [
158
+ /* @__PURE__ */ d("div", { className: "absolute top-3 right-3 z-20 flex gap-2", children: [
157
159
  r.allowAttachments && /* @__PURE__ */ e(
158
160
  p,
159
161
  {
@@ -223,7 +225,7 @@ function le({ isDragging: a }) {
223
225
  return /* @__PURE__ */ e(v, { children: a && /* @__PURE__ */ d(
224
226
  x.div,
225
227
  {
226
- className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center space-x-2 rounded-xl border border-dashed border-d-border bg-d-background text-sm text-d-secondary-foreground",
228
+ className: "border-d-border bg-d-background text-d-secondary-foreground pointer-events-none absolute inset-0 z-20 flex items-center justify-center space-x-2 rounded-xl border border-dashed text-sm",
227
229
  initial: { opacity: 0 },
228
230
  animate: { opacity: 1 },
229
231
  exit: { opacity: 0 },
@@ -255,18 +257,18 @@ function se() {
255
257
  return /* @__PURE__ */ d(
256
258
  x.div,
257
259
  {
258
- className: "flex h-full w-full flex-col items-center justify-center rounded-xl bg-d-background/80 backdrop-blur-sm",
260
+ className: "bg-d-background/80 flex h-full w-full flex-col items-center justify-center rounded-xl backdrop-blur-sm",
259
261
  initial: { opacity: 0 },
260
262
  animate: { opacity: 1 },
261
263
  exit: { opacity: 0 },
262
264
  transition: { duration: 0.2 },
263
265
  children: [
264
266
  /* @__PURE__ */ d("div", { className: "relative", children: [
265
- /* @__PURE__ */ e(ae, { className: "h-8 w-8 animate-spin text-d-primary" }),
267
+ /* @__PURE__ */ e(ae, { className: "text-d-primary h-8 w-8 animate-spin" }),
266
268
  /* @__PURE__ */ e(
267
269
  x.div,
268
270
  {
269
- className: "absolute inset-0 h-8 w-8 animate-pulse rounded-full bg-d-primary/20",
271
+ className: "bg-d-primary/20 absolute inset-0 h-8 w-8 animate-pulse rounded-full",
270
272
  initial: { scale: 0.8, opacity: 0 },
271
273
  animate: { scale: 1.2, opacity: 1 },
272
274
  transition: {
@@ -278,7 +280,7 @@ function se() {
278
280
  }
279
281
  )
280
282
  ] }),
281
- /* @__PURE__ */ e("p", { className: "mt-4 text-sm font-medium text-d-secondary-foreground", children: "Transcribing audio..." })
283
+ /* @__PURE__ */ e("p", { className: "text-d-secondary-foreground mt-4 text-sm font-medium", children: "Transcribing audio..." })
282
284
  ]
283
285
  }
284
286
  );
@@ -297,7 +299,7 @@ function ce({ isVisible: a, onStopRecording: l }) {
297
299
  }
298
300
  },
299
301
  exit: { top: 0, filter: "blur(5px)" },
300
- className: "absolute left-1/2 flex -translate-x-1/2 cursor-pointer overflow-hidden whitespace-nowrap rounded-full border bg-d-background py-1 text-center text-sm text-d-secondary-foreground",
302
+ className: "bg-d-background text-d-secondary-foreground absolute left-1/2 flex -translate-x-1/2 cursor-pointer overflow-hidden rounded-full border py-1 text-center text-sm whitespace-nowrap",
301
303
  onClick: l,
302
304
  children: /* @__PURE__ */ d("span", { className: "mx-2.5 flex items-center", children: [
303
305
  /* @__PURE__ */ e(ie, { className: "mr-2 h-3 w-3" }),
@@ -33,7 +33,9 @@ function z(i, l) {
33
33
  function ge(i, l) {
34
34
  const u = JSON.parse(JSON.stringify(i));
35
35
  for (const [b, o] of Object.entries(u))
36
- u[b] = o.filter((C) => !l.find((v) => v.value === C.value));
36
+ u[b] = o.filter(
37
+ (C) => !l.find((v) => v.value === C.value)
38
+ );
37
39
  return u;
38
40
  }
39
41
  function we(i, l) {
@@ -189,7 +191,10 @@ const xe = a.forwardRef(
189
191
  var t;
190
192
  re(e), (t = n == null ? void 0 : n.onKeyDown) == null || t.call(n, e);
191
193
  },
192
- className: g("h-auto overflow-visible bg-transparent shadow-sm", n == null ? void 0 : n.className),
194
+ className: g(
195
+ "h-auto overflow-visible bg-transparent shadow-sm",
196
+ n == null ? void 0 : n.className
197
+ ),
193
198
  shouldFilter: (n == null ? void 0 : n.shouldFilter) !== void 0 ? n.shouldFilter : !v,
194
199
  filter: ie(),
195
200
  children: [
@@ -197,7 +202,7 @@ const xe = a.forwardRef(
197
202
  "div",
198
203
  {
199
204
  className: g(
200
- "min-h-10 rounded-md border border-d-input text-base ring-offset-d-background focus-within:ring-1 focus-within:ring-d-ring md:text-sm",
205
+ "border-d-input ring-offset-d-background focus-within:ring-d-ring min-h-10 rounded-md border text-base focus-within:ring-1 md:text-sm",
201
206
  {
202
207
  "px-3 py-2": r.length !== 0,
203
208
  "cursor-text": !w && r.length !== 0,
@@ -227,7 +232,7 @@ const xe = a.forwardRef(
227
232
  {
228
233
  type: "button",
229
234
  className: g(
230
- "ml-1 rounded-full text-d-secondary-foreground outline-none ring-offset-d-background focus:ring-1 focus:ring-d-ring focus:ring-offset-2",
235
+ "text-d-secondary-foreground ring-offset-d-background focus:ring-d-ring ml-1 rounded-full outline-none focus:ring-1 focus:ring-offset-2",
231
236
  (w || e.fixed) && "hidden"
232
237
  ),
233
238
  onKeyDown: (t) => {
@@ -237,7 +242,7 @@ const xe = a.forwardRef(
237
242
  t.preventDefault(), t.stopPropagation();
238
243
  },
239
244
  onClick: () => J(e),
240
- children: /* @__PURE__ */ d(Y, { className: "h-3 w-3 text-d-secondary-foreground hover:text-d-foreground" })
245
+ children: /* @__PURE__ */ d(Y, { className: "text-d-secondary-foreground hover:text-d-foreground h-3 w-3" })
241
246
  }
242
247
  )
243
248
  ]
@@ -265,7 +270,7 @@ const xe = a.forwardRef(
265
270
  },
266
271
  placeholder: H && r.length !== 0 ? "" : u,
267
272
  className: g(
268
- "flex-1 bg-transparent outline-none placeholder:text-d-muted-foreground",
273
+ "placeholder:text-d-muted-foreground flex-1 bg-transparent outline-none",
269
274
  {
270
275
  "w-full": H,
271
276
  "px-3 py-2": r.length === 0,
@@ -279,7 +284,7 @@ const xe = a.forwardRef(
279
284
  "div",
280
285
  {
281
286
  className: g(
282
- "absolute right-0 top-0 flex items-center justify-center rounded-full bg-d-secondary/20 hover:bg-d-secondary/30 p-1 cursor-pointer z-20 border",
287
+ "bg-d-secondary/20 hover:bg-d-secondary/30 absolute top-0 right-0 z-20 flex cursor-pointer items-center justify-center rounded-full border p-1",
283
288
  (P || w || r.length < 1 || r.filter((e) => e.fixed).length === r.length) && "hidden"
284
289
  ),
285
290
  onClick: () => {
@@ -295,7 +300,7 @@ const xe = a.forwardRef(
295
300
  /* @__PURE__ */ d("div", { className: "relative", children: h && /* @__PURE__ */ d(
296
301
  ce,
297
302
  {
298
- className: "absolute top-1 z-10 w-full rounded-md border bg-d-popover text-d-popover-foreground shadow-md outline-none animate-in",
303
+ className: "bg-d-popover text-d-popover-foreground animate-in absolute top-1 z-10 w-full rounded-md border shadow-md outline-none",
299
304
  onMouseLeave: () => {
300
305
  $(!1);
301
306
  },
@@ -310,31 +315,39 @@ const xe = a.forwardRef(
310
315
  ne(),
311
316
  le(),
312
317
  !p && /* @__PURE__ */ d(K, { value: "-", className: "hidden" }),
313
- Object.entries(se).map(([e, t]) => /* @__PURE__ */ d(ve, { heading: e, className: "h-full overflow-auto", children: /* @__PURE__ */ d(U, { children: t.map((f) => /* @__PURE__ */ d(
314
- K,
318
+ Object.entries(se).map(([e, t]) => /* @__PURE__ */ d(
319
+ ve,
315
320
  {
316
- value: f.label,
317
- disabled: f.disable,
318
- onMouseDown: (j) => {
319
- j.preventDefault(), j.stopPropagation();
320
- },
321
- onSelect: () => {
322
- if (r.length >= X) {
323
- E == null || E(r.length);
324
- return;
325
- }
326
- R("");
327
- const j = [...r, f];
328
- O(j), l == null || l(j);
329
- },
330
- className: g(
331
- "cursor-pointer",
332
- f.disable && "cursor-default text-d-secondary-foreground"
333
- ),
334
- children: f.label
321
+ heading: e,
322
+ className: "h-full overflow-auto",
323
+ children: /* @__PURE__ */ d(U, { children: t.map((f) => /* @__PURE__ */ d(
324
+ K,
325
+ {
326
+ value: f.label,
327
+ disabled: f.disable,
328
+ onMouseDown: (j) => {
329
+ j.preventDefault(), j.stopPropagation();
330
+ },
331
+ onSelect: () => {
332
+ if (r.length >= X) {
333
+ E == null || E(r.length);
334
+ return;
335
+ }
336
+ R("");
337
+ const j = [...r, f];
338
+ O(j), l == null || l(j);
339
+ },
340
+ className: g(
341
+ "cursor-pointer",
342
+ f.disable && "text-d-secondary-foreground cursor-default"
343
+ ),
344
+ children: f.label
345
+ },
346
+ f.value
347
+ )) })
335
348
  },
336
- f.value
337
- )) }) }, e))
349
+ e
350
+ ))
338
351
  ] })
339
352
  }
340
353
  ) })
@@ -5,13 +5,13 @@ function d({
5
5
  append: l,
6
6
  suggestions: n
7
7
  }) {
8
- return /* @__PURE__ */ t("div", { className: "space-y-6 grow", children: [
8
+ return /* @__PURE__ */ t("div", { className: "grow space-y-6", children: [
9
9
  /* @__PURE__ */ e("h2", { className: "text-center text-2xl font-bold", children: c }),
10
10
  /* @__PURE__ */ e("div", { className: "flex gap-6 text-sm", children: n.map((r) => /* @__PURE__ */ e(
11
11
  "button",
12
12
  {
13
13
  onClick: () => l({ role: "user", content: r }),
14
- className: "h-max flex-1 rounded-xl border bg-d-background p-4 hover:bg-d-secondary",
14
+ className: "bg-d-background hover:bg-d-secondary h-max flex-1 rounded-xl border p-4",
15
15
  children: /* @__PURE__ */ e("p", { children: r })
16
16
  },
17
17
  r
@@ -34,7 +34,7 @@ function g({
34
34
  {
35
35
  "data-slot": "resizable-handle",
36
36
  className: t(
37
- "bg-d-border focus-visible:ring-d-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
37
+ "bg-d-border focus-visible:ring-d-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
38
38
  r
39
39
  ),
40
40
  ...l,
@@ -15,14 +15,7 @@ function q({
15
15
  }) {
16
16
  const n = d.useId();
17
17
  return /* @__PURE__ */ i("div", { className: "space-y-1.5", children: [
18
- a && /* @__PURE__ */ e(
19
- j,
20
- {
21
- htmlFor: n,
22
- className: s,
23
- children: a
24
- }
25
- ),
18
+ a && /* @__PURE__ */ e(j, { htmlFor: n, className: s, children: a }),
26
19
  /* @__PURE__ */ e(u.Provider, { value: { size: t, id: n }, children: /* @__PURE__ */ e(p, { "data-slot": "select", ...r }) })
27
20
  ] });
28
21
  }
@@ -51,7 +44,7 @@ function H({
51
44
  "data-slot": "select-trigger",
52
45
  "data-size": l,
53
46
  className: o(
54
- "flex items-center justify-between whitespace-nowrap rounded-md border border-d-input bg-transparent px-3 py-2 shadow-sm ring-offset-background data-[placeholder]:text-d-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
47
+ "border-d-input ring-offset-background data-[placeholder]:text-d-muted-foreground focus:ring-ring flex items-center justify-between rounded-md border bg-transparent px-3 py-2 whitespace-nowrap shadow-sm focus:ring-1 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
55
48
  "aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive",
56
49
  "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
57
50
  "*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2",
@@ -110,7 +103,10 @@ function K({
110
103
  S,
111
104
  {
112
105
  "data-slot": "select-label",
113
- className: o("text-d-secondary-foreground px-2 py-1.5 text-xs", t),
106
+ className: o(
107
+ "text-d-secondary-foreground px-2 py-1.5 text-xs",
108
+ t
109
+ ),
114
110
  ...a
115
111
  }
116
112
  );