@cognite/aura 0.1.5 → 0.1.6

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 (65) hide show
  1. package/dist/colors.css +824 -0
  2. package/dist/components/index.d.ts +9 -2
  3. package/dist/components/index.js +279 -249
  4. package/dist/components/ui/core/accordion/accordion.d.ts +24 -0
  5. package/dist/components/ui/core/accordion/accordion.js +113 -0
  6. package/dist/components/ui/core/accordion/accordion.metadata.d.ts +2 -0
  7. package/dist/components/ui/core/accordion/accordion.metadata.js +9 -0
  8. package/dist/components/ui/core/alert/alert.js +65 -65
  9. package/dist/components/ui/core/avatar/avatar.js +29 -32
  10. package/dist/components/ui/core/badge/badge.d.ts +1 -1
  11. package/dist/components/ui/core/badge/badge.js +44 -52
  12. package/dist/components/ui/core/banner/banner.d.ts +40 -0
  13. package/dist/components/ui/core/banner/banner.js +218 -0
  14. package/dist/components/ui/core/banner/banner.metadata.d.ts +2 -0
  15. package/dist/components/ui/core/banner/banner.metadata.js +9 -0
  16. package/dist/components/ui/core/button/button.d.ts +2 -2
  17. package/dist/components/ui/core/button/button.js +19 -20
  18. package/dist/components/ui/core/button-group/button-group.js +10 -10
  19. package/dist/components/ui/core/card/card.js +1 -1
  20. package/dist/components/ui/core/code-block/code-block.d.ts +10 -3
  21. package/dist/components/ui/core/code-block/code-block.js +147 -94
  22. package/dist/components/ui/core/code-block/code-block.metadata.js +1 -1
  23. package/dist/components/ui/core/collapsible/collapsible.js +30 -24
  24. package/dist/components/ui/core/command/command.d.ts +2 -2
  25. package/dist/components/ui/core/command/command.js +30 -30
  26. package/dist/components/ui/core/dialog/dialog.js +8 -8
  27. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +35 -35
  28. package/dist/components/ui/core/helper-text/helper-text.js +8 -8
  29. package/dist/components/ui/core/hover-card/hover-card.js +5 -5
  30. package/dist/components/ui/core/inline-citation/inline-citation.js +19 -16
  31. package/dist/components/ui/core/input/input.d.ts +1 -5
  32. package/dist/components/ui/core/input/input.js +24 -30
  33. package/dist/components/ui/core/input-group/input-group.d.ts +2 -2
  34. package/dist/components/ui/core/input-group/input-group.js +104 -74
  35. package/dist/components/ui/core/label/label.d.ts +3 -1
  36. package/dist/components/ui/core/label/label.js +39 -16
  37. package/dist/components/ui/core/label/label.metadata.js +2 -2
  38. package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +11 -0
  39. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +13 -0
  40. package/dist/components/ui/core/message/message.d.ts +1 -1
  41. package/dist/components/ui/core/message/message.js +62 -44
  42. package/dist/components/ui/core/popover/popover.d.ts +10 -1
  43. package/dist/components/ui/core/popover/popover.js +137 -34
  44. package/dist/components/ui/core/popover/popover.metadata.js +9 -0
  45. package/dist/components/ui/core/progress/progress.d.ts +10 -0
  46. package/dist/components/ui/core/progress/progress.js +61 -0
  47. package/dist/components/ui/core/progress/progress.metadata.d.ts +2 -0
  48. package/dist/components/ui/core/progress/progress.metadata.js +9 -0
  49. package/dist/components/ui/core/prompt-input/prompt-input.d.ts +2 -2
  50. package/dist/components/ui/core/prompt-input/prompt-input.js +100 -100
  51. package/dist/components/ui/core/select/select.d.ts +3 -3
  52. package/dist/components/ui/core/select/select.js +69 -73
  53. package/dist/components/ui/core/skeleton/skeleton.js +6 -6
  54. package/dist/components/ui/core/sources/sources.js +8 -1
  55. package/dist/components/ui/core/textarea/textarea.d.ts +1 -8
  56. package/dist/components/ui/core/textarea/textarea.js +21 -45
  57. package/dist/components/ui/core/tool/tool.js +38 -34
  58. package/dist/components/ui/core/tooltip/tooltip.js +10 -10
  59. package/dist/index.d.ts +1 -1
  60. package/dist/index.js +276 -249
  61. package/dist/lib/utils.d.ts +6 -6
  62. package/dist/lib/utils.js +26 -26
  63. package/dist/styles.css +1 -1
  64. package/dist/styles.source.css +3 -812
  65. package/package.json +21 -7
@@ -1,146 +1,199 @@
1
- import { jsx as o, jsxs as z } from "react/jsx-runtime";
2
- import { createContext as E, forwardRef as y, useState as C, useMemo as T, useEffect as M, useContext as N } from "react";
3
- import { IconCheck as j, IconCopy as P, IconSelector as $ } from "@tabler/icons-react";
4
- import { isStorybookTestEnv as f, highlightCode as A, cn as d } from "../../../../lib/utils.js";
5
- import { Button as _ } from "../button/button.js";
6
- const g = E({
1
+ import { jsx as t, jsxs as E } from "react/jsx-runtime";
2
+ import { createContext as R, forwardRef as x, useState as y, useMemo as z, useEffect as L, useContext as B } from "react";
3
+ import { IconCheck as S, IconCopy as j, IconSelector as M, IconDownload as U } from "@tabler/icons-react";
4
+ import { isStorybookTestEnv as h, highlightCode as F, cn as i } from "../../../../lib/utils.js";
5
+ import { Button as I } from "../button/button.js";
6
+ const g = R({
7
7
  code: "",
8
8
  copyText: "",
9
9
  isCollapsed: !1,
10
10
  setIsCollapsed: () => {
11
11
  },
12
12
  lineCount: 0
13
- }), D = y(
13
+ }), A = (e) => e.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;"), O = x(
14
14
  ({
15
15
  code: e,
16
- copyText: t,
17
- language: r,
18
- showLineNumbers: l = !1,
16
+ copyText: l,
17
+ language: a,
18
+ showLineNumbers: r = !1,
19
19
  collapsed: s = !1,
20
- className: c,
21
- children: n,
22
- ...h
20
+ className: d,
21
+ children: c,
22
+ ...m
23
23
  }, p) => {
24
- const [k, m] = C(""), [b, a] = C(""), [i, H] = C(s), w = e.split(`
25
- `).length, B = t ?? e, I = T(
26
- () => f ? `<pre><code>${e}</code></pre>` : "",
27
- [e]
24
+ const [f, n] = y(""), [u, o] = y(""), [k, D] = y(s), b = e.length === 0 ? " " : e, N = e.split(`
25
+ `).length, T = l ?? e, _ = z(
26
+ () => h ? `<pre><code>${A(b)}</code></pre>` : "",
27
+ [b]
28
28
  );
29
- M(() => {
30
- if (f) return;
31
- let v = !1;
32
- return A(e, r, l).then(([x, u]) => {
33
- v || (m(x), a(u));
34
- }).catch((x) => {
35
- if (console.error("Failed to highlight code:", x), !v) {
36
- const u = `<pre><code>${e}</code></pre>`;
37
- m(u), a(u);
29
+ L(() => {
30
+ if (h) return;
31
+ let w = !1;
32
+ return F(b, a, r).then(([v, C]) => {
33
+ w || (n(v), o(C));
34
+ }).catch((v) => {
35
+ if (console.error("Failed to highlight code:", v), !w) {
36
+ const C = `<pre><code>${A(b)}</code></pre>`;
37
+ n(C), o(C);
38
38
  }
39
39
  }), () => {
40
- v = !0;
40
+ w = !0;
41
41
  };
42
- }, [e, r, l]);
43
- const S = T(
42
+ }, [b, a, r]);
43
+ const H = z(
44
44
  () => ({
45
45
  code: e,
46
- copyText: B,
47
- isCollapsed: i,
48
- setIsCollapsed: H,
49
- lineCount: w
46
+ copyText: T,
47
+ isCollapsed: k,
48
+ setIsCollapsed: D,
49
+ lineCount: N
50
50
  }),
51
- [e, B, i, w]
51
+ [e, T, k, N]
52
52
  );
53
- return /* @__PURE__ */ o(g.Provider, { value: S, children: /* @__PURE__ */ o(
53
+ return /* @__PURE__ */ t(g.Provider, { value: H, children: /* @__PURE__ */ E(
54
54
  "div",
55
55
  {
56
56
  ref: p,
57
57
  "data-slot": "code-block",
58
- className: d(
59
- "group/code-block relative w-full overflow-hidden rounded-md bg-background text-foreground",
60
- c
58
+ className: i(
59
+ "group/code-block relative w-full overflow-hidden rounded-xl bg-background text-foreground",
60
+ d
61
61
  ),
62
- ...h,
63
- children: /* @__PURE__ */ z("div", { className: "relative", children: [
64
- /* @__PURE__ */ o(
65
- "div",
66
- {
67
- className: d(
68
- "dark:hidden [&>pre]:m-0 [&>pre]:bg-card [&>pre]:p-4 [&>pre]:text-foreground [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm [&>pre]:overflow-x-auto",
69
- i && "max-h-26 overflow-y-hidden"
70
- ),
71
- dangerouslySetInnerHTML: {
72
- __html: f ? I : k
62
+ ...m,
63
+ children: [
64
+ /* @__PURE__ */ E("div", { className: "relative", children: [
65
+ /* @__PURE__ */ t(
66
+ "div",
67
+ {
68
+ className: i(
69
+ "dark:hidden [&>pre]:m-0 [&>pre]:min-h-10 [&>pre]:bg-card-background [&>pre]:p-2 [&>pre]:text-secondary-foreground [&>pre]:leading-[18px] [&>pre]:tracking-[-0.08px] [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm [&>pre]:overflow-x-auto",
70
+ k && "max-h-26 overflow-y-hidden"
71
+ ),
72
+ dangerouslySetInnerHTML: {
73
+ __html: h ? _ : f
74
+ }
73
75
  }
74
- }
75
- ),
76
- /* @__PURE__ */ o(
76
+ ),
77
+ /* @__PURE__ */ t(
78
+ "div",
79
+ {
80
+ className: i(
81
+ "hidden dark:block [&>pre]:m-0 [&>pre]:min-h-10 [&>pre]:bg-card-background [&>pre]:p-2 [&>pre]:text-secondary-foreground [&>pre]:leading-[18px] [&>pre]:tracking-[-0.08px] [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm [&>pre]:overflow-x-auto",
82
+ k && "max-h-26 overflow-y-hidden"
83
+ ),
84
+ dangerouslySetInnerHTML: {
85
+ __html: h ? _ : u
86
+ }
87
+ }
88
+ ),
89
+ k && /* @__PURE__ */ t("div", { className: "pointer-events-none absolute bottom-0 left-0 right-0 h-3/4 bg-linear-to-b from-transparent via-card-background/70 to-card-background" })
90
+ ] }),
91
+ c ? /* @__PURE__ */ t(
77
92
  "div",
78
93
  {
79
- className: d(
80
- "hidden dark:block [&>pre]:m-0 [&>pre]:bg-card [&>pre]:p-4 [&>pre]:text-foreground [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm [&>pre]:overflow-x-auto",
81
- i && "max-h-26 overflow-y-hidden"
94
+ "data-slot": "code-block-actions",
95
+ className: i(
96
+ "absolute top-2 right-2 flex items-center gap-1 opacity-0 transition-opacity group-hover/code-block:opacity-100 group-focus-within/code-block:opacity-100",
97
+ h && "opacity-100"
82
98
  ),
83
- dangerouslySetInnerHTML: {
84
- __html: f ? I : b
85
- }
99
+ children: c
86
100
  }
87
- ),
88
- i && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute bottom-0 left-0 right-0 h-3/4 bg-linear-to-b from-transparent via-card/70 to-card" }),
89
- n && /* @__PURE__ */ o("div", { className: "absolute top-2 right-2 hidden items-center gap-2 group-hover/code-block:flex", children: n })
90
- ] })
101
+ ) : null
102
+ ]
91
103
  }
92
104
  ) });
93
105
  }
94
106
  );
95
- D.displayName = "CodeBlock";
96
- const F = y(({ onCopy: e, onError: t, timeout: r = 2e3, children: l, className: s, ...c }, n) => {
97
- const [h, p] = C(!1), { copyText: k } = N(g), m = async () => {
107
+ O.displayName = "CodeBlock";
108
+ const P = x(({ onCopy: e, onError: l, timeout: a = 2e3, children: r, className: s, ...d }, c) => {
109
+ const [m, p] = y(!1), { copyText: f } = B(g), n = async () => {
98
110
  if (typeof window > "u" || !navigator?.clipboard?.writeText) {
99
- t?.(new Error("Clipboard API not available"));
111
+ l?.(new Error("Clipboard API not available"));
100
112
  return;
101
113
  }
102
114
  try {
103
- await navigator.clipboard.writeText(k), p(!0), e?.(), setTimeout(() => p(!1), r);
104
- } catch (a) {
105
- console.warn("Clipboard write failed:", a), t?.(
106
- a instanceof Error ? a : new Error("Clipboard write failed")
115
+ await navigator.clipboard.writeText(f), p(!0), e?.(), setTimeout(() => p(!1), a);
116
+ } catch (o) {
117
+ console.warn("Clipboard write failed:", o), l?.(
118
+ o instanceof Error ? o : new Error("Clipboard write failed")
107
119
  );
108
120
  }
109
- }, b = h ? j : P;
110
- return /* @__PURE__ */ o(
111
- _,
121
+ }, u = m ? S : j;
122
+ return /* @__PURE__ */ t(
123
+ I,
112
124
  {
113
- ref: n,
125
+ ref: c,
114
126
  "data-slot": "code-block-copy-button",
115
- className: d("shrink-0", s),
116
- onClick: m,
117
- size: "icon",
127
+ className: i("shrink-0", s),
128
+ onClick: n,
129
+ size: "icon-sm",
118
130
  variant: "secondary",
119
- ...c,
120
- children: l ?? /* @__PURE__ */ o(b, { size: 14 })
131
+ ...d,
132
+ children: r ?? /* @__PURE__ */ t(u, { size: 14 })
121
133
  }
122
134
  );
123
135
  });
124
- F.displayName = "CodeBlockCopyButton";
125
- const L = y(({ children: e, className: t, ...r }, l) => {
126
- const { isCollapsed: s, setIsCollapsed: c, lineCount: n } = N(g);
127
- return n <= 1 ? null : /* @__PURE__ */ o(
128
- _,
136
+ P.displayName = "CodeBlockCopyButton";
137
+ const $ = x(({ children: e, className: l, ...a }, r) => {
138
+ const { isCollapsed: s, setIsCollapsed: d, lineCount: c } = B(g);
139
+ return c <= 1 ? null : /* @__PURE__ */ t(
140
+ I,
129
141
  {
130
- ref: l,
142
+ ref: r,
131
143
  "data-slot": "code-block-collapse-button",
132
- className: d("shrink-0", t),
133
- onClick: () => c(!s),
134
- size: "icon",
144
+ className: i("shrink-0", l),
145
+ onClick: () => d(!s),
146
+ size: "icon-sm",
135
147
  variant: "secondary",
136
- ...r,
137
- children: e ?? /* @__PURE__ */ o($, { size: 14 })
148
+ ...a,
149
+ children: e ?? /* @__PURE__ */ t(M, { size: 14 })
138
150
  }
139
151
  );
140
152
  });
141
- L.displayName = "CodeBlockCollapseButton";
153
+ $.displayName = "CodeBlockCollapseButton";
154
+ const q = x(
155
+ ({
156
+ fileName: e = "code.txt",
157
+ mimeType: l = "text/plain;charset=utf-8",
158
+ onDownload: a,
159
+ onError: r,
160
+ children: s,
161
+ className: d,
162
+ ...c
163
+ }, m) => {
164
+ const { code: p } = B(g), f = () => {
165
+ if (typeof window > "u" || typeof document > "u") {
166
+ r?.(new Error("Download not available"));
167
+ return;
168
+ }
169
+ try {
170
+ const n = new Blob([p], { type: l }), u = URL.createObjectURL(n), o = document.createElement("a");
171
+ o.href = u, o.download = e, o.rel = "noopener", o.click(), URL.revokeObjectURL(u), a?.();
172
+ } catch (n) {
173
+ r?.(
174
+ n instanceof Error ? n : new Error("Download failed")
175
+ );
176
+ }
177
+ };
178
+ return /* @__PURE__ */ t(
179
+ I,
180
+ {
181
+ ref: m,
182
+ "data-slot": "code-block-download-button",
183
+ className: i("shrink-0", d),
184
+ onClick: f,
185
+ size: "icon-sm",
186
+ variant: "secondary",
187
+ ...c,
188
+ children: s ?? /* @__PURE__ */ t(U, { size: 14 })
189
+ }
190
+ );
191
+ }
192
+ );
193
+ q.displayName = "CodeBlockDownloadButton";
142
194
  export {
143
- D as CodeBlock,
144
- L as CodeBlockCollapseButton,
145
- F as CodeBlockCopyButton
195
+ O as CodeBlock,
196
+ $ as CodeBlockCollapseButton,
197
+ P as CodeBlockCopyButton,
198
+ q as CodeBlockDownloadButton
146
199
  };
@@ -1,7 +1,7 @@
1
1
  const o = {
2
2
  name: "CodeBlock",
3
3
  status: "in-progress-code-review",
4
- description: "A syntax-highlighted code block with copy and collapse functionality."
4
+ description: "A syntax-highlighted code block with copy, download and collapse functionality."
5
5
  };
6
6
  export {
7
7
  o as CodeBlockMetadata
@@ -1,44 +1,50 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as t } from "react";
3
- import { Collapsible as i } from "@base-ui/react/collapsible";
4
- import { cn as s } from "../../../../lib/utils.js";
5
- const n = t(({ className: l, ...e }, o) => /* @__PURE__ */ a(
6
- i.Root,
3
+ import { Collapsible as n } from "@base-ui/react/collapsible";
4
+ import { cn as i } from "../../../../lib/utils.js";
5
+ const s = t(({ className: l, ...o }, e) => /* @__PURE__ */ a(
6
+ n.Root,
7
7
  {
8
- ref: o,
8
+ ref: e,
9
9
  "data-slot": "collapsible",
10
- className: s("w-full min-w-0 box-border *:max-w-full", l),
11
- ...e
10
+ className: i(
11
+ "w-full min-w-0 rounded-md box-border *:max-w-full",
12
+ l
13
+ ),
14
+ ...o
12
15
  }
13
16
  ));
14
- n.displayName = "Collapsible";
15
- const p = t(({ className: l, children: e, ...o }, r) => /* @__PURE__ */ a(
16
- i.Trigger,
17
+ s.displayName = "Collapsible";
18
+ const d = t(({ className: l, children: o, ...e }, r) => /* @__PURE__ */ a(
19
+ n.Trigger,
17
20
  {
18
21
  ref: r,
19
22
  "data-slot": "collapsible-trigger",
20
- className: s("group/collapsible-trigger text-base", l),
21
- ...o,
22
- children: e
23
+ className: i(
24
+ "group/collapsible-trigger rounded-lg text-sm font-medium leading-5 text-foreground overflow-hidden",
25
+ l
26
+ ),
27
+ ...e,
28
+ children: o
23
29
  }
24
30
  ));
25
- p.displayName = "CollapsibleTrigger";
26
- const b = t(({ className: l, keepMounted: e = !0, ...o }, r) => /* @__PURE__ */ a(
27
- i.Panel,
31
+ d.displayName = "CollapsibleTrigger";
32
+ const m = t(({ className: l, keepMounted: o = !0, ...e }, r) => /* @__PURE__ */ a(
33
+ n.Panel,
28
34
  {
29
35
  ref: r,
30
36
  "data-slot": "collapsible-content",
31
- className: s(
32
- "hidden data-open:block border-none outline-none text-muted-foreground text-sm leading-4.5 tracking-tight w-full min-w-0 overflow-x-hidden box-border *:max-w-full *:box-border",
37
+ className: i(
38
+ "hidden data-open:block border-none outline-none text-secondary-foreground text-sm font-normal leading-5 tracking-tight w-full min-w-0 overflow-x-hidden box-border *:max-w-full *:box-border",
33
39
  l
34
40
  ),
35
- keepMounted: e,
36
- ...o
41
+ keepMounted: o,
42
+ ...e
37
43
  }
38
44
  ));
39
- b.displayName = "CollapsibleContent";
45
+ m.displayName = "CollapsibleContent";
40
46
  export {
41
- n as Collapsible,
42
- b as CollapsibleContent,
43
- p as CollapsibleTrigger
47
+ s as Collapsible,
48
+ m as CollapsibleContent,
49
+ d as CollapsibleTrigger
44
50
  };
@@ -31,7 +31,7 @@ declare const CommandInput: import('react').ForwardRefExoticComponent<Omit<Omit<
31
31
  ref?: React.Ref<HTMLInputElement>;
32
32
  } & {
33
33
  asChild?: boolean;
34
- }, "key" | keyof import('react').InputHTMLAttributes<HTMLInputElement> | "asChild">, "onChange" | "type" | "value"> & {
34
+ }, "key" | keyof import('react').InputHTMLAttributes<HTMLInputElement> | "asChild">, "onChange" | "value" | "type"> & {
35
35
  value?: string;
36
36
  onValueChange?: (search: string) => void;
37
37
  } & import('react').RefAttributes<HTMLInputElement>, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
@@ -75,7 +75,7 @@ declare const CommandItem: import('react').ForwardRefExoticComponent<Omit<{
75
75
  ref?: React.Ref<HTMLDivElement>;
76
76
  } & {
77
77
  asChild?: boolean;
78
- }, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
78
+ }, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "value" | "disabled"> & {
79
79
  disabled?: boolean;
80
80
  onSelect?: (value: string) => void;
81
81
  value?: string;
@@ -4,23 +4,23 @@ import { IconSearch as p } from "@tabler/icons-react";
4
4
  import { Command as r } from "cmdk";
5
5
  import { cn as m } from "../../../../lib/utils.js";
6
6
  import { Dialog as u, DialogHeader as g, DialogTitle as h, DialogDescription as f, DialogContent as x } from "../dialog/dialog.js";
7
- const s = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
7
+ const s = d(({ className: e, ...a }, t) => /* @__PURE__ */ o(
8
8
  r,
9
9
  {
10
- ref: a,
10
+ ref: t,
11
11
  "data-slot": "command",
12
12
  className: m(
13
13
  "rounded-lg bg-background text-muted-foreground flex h-full w-full flex-col overflow-hidden",
14
14
  e
15
15
  ),
16
- ...t
16
+ ...a
17
17
  }
18
18
  ));
19
19
  s.displayName = "Command";
20
20
  function y({
21
21
  title: e = "Command Palette",
22
- description: t = "Search for a command to run...",
23
- children: a,
22
+ description: a = "Search for a command to run...",
23
+ children: t,
24
24
  className: l,
25
25
  showCloseButton: c = !0,
26
26
  ...i
@@ -28,7 +28,7 @@ function y({
28
28
  return /* @__PURE__ */ n(u, { ...i, children: [
29
29
  /* @__PURE__ */ n(g, { className: "sr-only rounded-lg", children: [
30
30
  /* @__PURE__ */ o(h, { children: e }),
31
- /* @__PURE__ */ o(f, { children: t })
31
+ /* @__PURE__ */ o(f, { children: a })
32
32
  ] }),
33
33
  /* @__PURE__ */ o(
34
34
  x,
@@ -36,13 +36,13 @@ function y({
36
36
  "data-slot": "command-dialog",
37
37
  className: m("overflow-hidden p-0", l),
38
38
  showCloseButton: c,
39
- children: /* @__PURE__ */ o(s, { className: "**:[[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: a })
39
+ children: /* @__PURE__ */ o(s, { className: "**:[[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: t })
40
40
  }
41
41
  )
42
42
  ] });
43
43
  }
44
44
  y.displayName = "CommandDialog";
45
- const k = d(({ className: e, ...t }, a) => /* @__PURE__ */ n(
45
+ const k = d(({ className: e, ...a }, t) => /* @__PURE__ */ n(
46
46
  "div",
47
47
  {
48
48
  "data-slot": "command-input-wrapper",
@@ -52,88 +52,88 @@ const k = d(({ className: e, ...t }, a) => /* @__PURE__ */ n(
52
52
  /* @__PURE__ */ o(
53
53
  r.Input,
54
54
  {
55
- ref: a,
55
+ ref: t,
56
56
  "data-slot": "command-input",
57
57
  className: m(
58
58
  "placeholder:text-muted-foreground flex h-10 w-full rounded-lg bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
59
59
  e
60
60
  ),
61
- ...t
61
+ ...a
62
62
  }
63
63
  )
64
64
  ]
65
65
  }
66
66
  ));
67
67
  k.displayName = "CommandInput";
68
- const C = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
68
+ const C = d(({ className: e, ...a }, t) => /* @__PURE__ */ o(
69
69
  r.List,
70
70
  {
71
- ref: a,
71
+ ref: t,
72
72
  "data-slot": "command-list",
73
73
  className: m(
74
74
  "max-h-75 scroll-py-1 overflow-x-hidden overflow-y-auto",
75
75
  e
76
76
  ),
77
- ...t
77
+ ...a
78
78
  }
79
79
  ));
80
80
  C.displayName = "CommandList";
81
- const N = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
81
+ const N = d(({ className: e, ...a }, t) => /* @__PURE__ */ o(
82
82
  r.Empty,
83
83
  {
84
- ref: a,
84
+ ref: t,
85
85
  "data-slot": "command-empty",
86
86
  className: m("py-6 text-center text-sm", e),
87
- ...t
87
+ ...a
88
88
  }
89
89
  ));
90
90
  N.displayName = "CommandEmpty";
91
- const v = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
91
+ const v = d(({ className: e, ...a }, t) => /* @__PURE__ */ o(
92
92
  r.Group,
93
93
  {
94
- ref: a,
94
+ ref: t,
95
95
  "data-slot": "command-group",
96
96
  className: m(
97
- "text-popover-foreground font-normal **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-sm **:[[cmdk-group-heading]]:font-medium",
97
+ "text-foreground font-normal **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-sm **:[[cmdk-group-heading]]:font-medium",
98
98
  e
99
99
  ),
100
- ...t
100
+ ...a
101
101
  }
102
102
  ));
103
103
  v.displayName = "CommandGroup";
104
- const w = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
104
+ const w = d(({ className: e, ...a }, t) => /* @__PURE__ */ o(
105
105
  r.Separator,
106
106
  {
107
- ref: a,
107
+ ref: t,
108
108
  "data-slot": "command-separator",
109
109
  className: m("bg-border -mx-1 h-px", e),
110
- ...t
110
+ ...a
111
111
  }
112
112
  ));
113
113
  w.displayName = "CommandSeparator";
114
- const _ = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
114
+ const _ = d(({ className: e, ...a }, t) => /* @__PURE__ */ o(
115
115
  r.Item,
116
116
  {
117
- ref: a,
117
+ ref: t,
118
118
  "data-slot": "command-item",
119
119
  className: m(
120
- "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
120
+ "data-[selected=true]:bg-accent-background data-[selected=true]:text-foreground [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
121
121
  e
122
122
  ),
123
- ...t
123
+ ...a
124
124
  }
125
125
  ));
126
126
  _.displayName = "CommandItem";
127
- const b = d(({ className: e, ...t }, a) => /* @__PURE__ */ o(
127
+ const b = d(({ className: e, ...a }, t) => /* @__PURE__ */ o(
128
128
  "span",
129
129
  {
130
- ref: a,
130
+ ref: t,
131
131
  "data-slot": "command-shortcut",
132
132
  className: m(
133
133
  "text-muted-foreground ml-auto text-xs tracking-widest",
134
134
  e
135
135
  ),
136
- ...t
136
+ ...a
137
137
  }
138
138
  ));
139
139
  b.displayName = "CommandShortcut";
@@ -27,7 +27,7 @@ function N({
27
27
  }) {
28
28
  return /* @__PURE__ */ a(e.Close, { "data-slot": "dialog-close", ...o, children: t });
29
29
  }
30
- function m({
30
+ function u({
31
31
  className: t,
32
32
  ...o
33
33
  }) {
@@ -51,13 +51,13 @@ function C({
51
51
  ...s
52
52
  }) {
53
53
  return /* @__PURE__ */ l(p, { "data-slot": "dialog-portal", children: [
54
- /* @__PURE__ */ a(m, {}),
54
+ /* @__PURE__ */ a(u, {}),
55
55
  /* @__PURE__ */ l(
56
56
  e.Popup,
57
57
  {
58
58
  "data-slot": "dialog-content",
59
59
  className: i(
60
- "bg-popover fixed inset-x-4 top-1/2 z-50 grid -translate-y-1/2 rounded-xl border px-5 py-5 mb-2.5 shadow-xl outline-none transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0 sm:inset-x-0 sm:left-1/2 sm:w-full sm:max-w-lg sm:-translate-x-1/2",
60
+ "bg-popover-background fixed inset-x-4 top-1/2 z-50 grid -translate-y-1/2 rounded-xl border px-5 py-5 mb-2.5 shadow-xl outline-none transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0 sm:inset-x-0 sm:left-1/2 sm:w-full sm:max-w-lg sm:-translate-x-1/2",
61
61
  t
62
62
  ),
63
63
  ...s,
@@ -84,7 +84,7 @@ function C({
84
84
  )
85
85
  ] });
86
86
  }
87
- function w({ className: t, ...o }) {
87
+ function k({ className: t, ...o }) {
88
88
  return /* @__PURE__ */ a(
89
89
  "div",
90
90
  {
@@ -97,7 +97,7 @@ function w({ className: t, ...o }) {
97
97
  }
98
98
  );
99
99
  }
100
- function k({ className: t, ...o }) {
100
+ function w({ className: t, ...o }) {
101
101
  return /* @__PURE__ */ a(
102
102
  "div",
103
103
  {
@@ -147,9 +147,9 @@ export {
147
147
  N as DialogClose,
148
148
  C as DialogContent,
149
149
  T as DialogDescription,
150
- k as DialogFooter,
151
- w as DialogHeader,
152
- m as DialogOverlay,
150
+ w as DialogFooter,
151
+ k as DialogHeader,
152
+ u as DialogOverlay,
153
153
  p as DialogPortal,
154
154
  P as DialogTitle,
155
155
  v as DialogTrigger