@cognite/aura 0.1.1 → 0.1.3

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.
@@ -1,13 +1,13 @@
1
1
  import { jsx as o, jsxs as w } from "react/jsx-runtime";
2
- import { createContext as H, forwardRef as p, useContext as b, useState as N, useCallback as A, useMemo as E } from "react";
2
+ import { createContext as H, forwardRef as p, useState as N, useContext as b, useCallback as A, useMemo as E } from "react";
3
3
  import { IconSend as D, IconLoader2 as z, IconSquare as B, IconX as L, IconPlus as k, IconInfoCircle as G } from "@tabler/icons-react";
4
4
  import { cn as r } from "../../../../lib/utils.js";
5
- import { Command as F, CommandInput as j, CommandList as K, CommandEmpty as V, CommandGroup as q, CommandItem as R, CommandSeparator as O } from "../command/command.js";
6
- import { DropdownMenu as W, DropdownMenuTrigger as X, DropdownMenuContent as J, DropdownMenuItem as Q } from "../dropdown-menu/dropdown-menu.js";
5
+ import { Command as F, CommandEmpty as j, CommandGroup as K, CommandInput as V, CommandItem as q, CommandList as R, CommandSeparator as O } from "../command/command.js";
6
+ import { DropdownMenu as W, DropdownMenuContent as X, DropdownMenuItem as J, DropdownMenuTrigger as Q } from "../dropdown-menu/dropdown-menu.js";
7
7
  import { HelperText as C } from "../helper-text/helper-text.js";
8
- import { HoverCard as U, HoverCardTrigger as Y, HoverCardContent as Z } from "../hover-card/hover-card.js";
8
+ import { HoverCard as U, HoverCardContent as Y, HoverCardTrigger as Z } from "../hover-card/hover-card.js";
9
9
  import { InputGroupTextarea as _, InputGroupAddon as x, InputGroupButton as h, InputGroup as $ } from "../input-group/input-group.js";
10
- import { Select as tt, SelectTrigger as et, SelectContent as ot, SelectItem as nt, SelectValue as rt } from "../select/select.js";
10
+ import { Select as tt, SelectContent as et, SelectItem as ot, SelectTrigger as nt, SelectValue as rt } from "../select/select.js";
11
11
  const g = H(
12
12
  null
13
13
  ), Jt = () => {
@@ -182,7 +182,7 @@ const dt = ({
182
182
  children: e,
183
183
  ...n
184
184
  }) => /* @__PURE__ */ o(
185
- X,
185
+ Q,
186
186
  {
187
187
  render: /* @__PURE__ */ o(T, { className: t, ...n, children: e ?? /* @__PURE__ */ o(k, { className: "size-4" }) })
188
188
  }
@@ -191,12 +191,12 @@ dt.displayName = "PromptInputActionMenuTrigger";
191
191
  const It = ({
192
192
  className: t,
193
193
  ...e
194
- }) => /* @__PURE__ */ o(J, { align: "start", className: r(t), ...e });
194
+ }) => /* @__PURE__ */ o(X, { align: "start", className: r(t), ...e });
195
195
  It.displayName = "PromptInputActionMenuContent";
196
196
  const Pt = ({
197
197
  className: t,
198
198
  ...e
199
- }) => /* @__PURE__ */ o(Q, { className: r(t), ...e });
199
+ }) => /* @__PURE__ */ o(J, { className: r(t), ...e });
200
200
  Pt.displayName = "PromptInputActionMenuItem";
201
201
  const yt = p(
202
202
  ({
@@ -231,7 +231,7 @@ const gt = ({
231
231
  className: t,
232
232
  ...e
233
233
  }) => /* @__PURE__ */ o(
234
- et,
234
+ nt,
235
235
  {
236
236
  className: r(
237
237
  "border-none bg-transparent font-medium text-muted-foreground shadow-none transition-colors",
@@ -245,12 +245,12 @@ gt.displayName = "PromptInputModelSelectTrigger";
245
245
  const ft = ({
246
246
  className: t,
247
247
  ...e
248
- }) => /* @__PURE__ */ o(ot, { className: r(t), ...e });
248
+ }) => /* @__PURE__ */ o(et, { className: r(t), ...e });
249
249
  ft.displayName = "PromptInputModelSelectContent";
250
250
  const Ct = ({
251
251
  className: t,
252
252
  ...e
253
- }) => /* @__PURE__ */ o(nt, { className: r(t), ...e });
253
+ }) => /* @__PURE__ */ o(ot, { className: r(t), ...e });
254
254
  Ct.displayName = "PromptInputModelSelectItem";
255
255
  const bt = ({
256
256
  className: t,
@@ -263,12 +263,12 @@ const xt = ({
263
263
  ...n
264
264
  }) => /* @__PURE__ */ o(U, { closeDelay: e, openDelay: t, ...n });
265
265
  xt.displayName = "PromptInputHoverCard";
266
- const ht = (t) => /* @__PURE__ */ o(Y, { ...t });
266
+ const ht = (t) => /* @__PURE__ */ o(Z, { ...t });
267
267
  ht.displayName = "PromptInputHoverCardTrigger";
268
268
  const vt = ({
269
269
  align: t = "start",
270
270
  ...e
271
- }) => /* @__PURE__ */ o(Z, { align: t, ...e });
271
+ }) => /* @__PURE__ */ o(Y, { align: t, ...e });
272
272
  vt.displayName = "PromptInputHoverCardContent";
273
273
  const Tt = p(({ className: t, ...e }, n) => /* @__PURE__ */ o(
274
274
  "div",
@@ -337,27 +337,27 @@ At.displayName = "PromptInputCommand";
337
337
  const Et = ({
338
338
  className: t,
339
339
  ...e
340
- }) => /* @__PURE__ */ o(j, { className: r(t), ...e });
340
+ }) => /* @__PURE__ */ o(V, { className: r(t), ...e });
341
341
  Et.displayName = "PromptInputCommandInput";
342
342
  const Dt = ({
343
343
  className: t,
344
344
  ...e
345
- }) => /* @__PURE__ */ o(K, { className: r(t), ...e });
345
+ }) => /* @__PURE__ */ o(R, { className: r(t), ...e });
346
346
  Dt.displayName = "PromptInputCommandList";
347
347
  const zt = ({
348
348
  className: t,
349
349
  ...e
350
- }) => /* @__PURE__ */ o(V, { className: r(t), ...e });
350
+ }) => /* @__PURE__ */ o(j, { className: r(t), ...e });
351
351
  zt.displayName = "PromptInputCommandEmpty";
352
352
  const Bt = ({
353
353
  className: t,
354
354
  ...e
355
- }) => /* @__PURE__ */ o(q, { className: r(t), ...e });
355
+ }) => /* @__PURE__ */ o(K, { className: r(t), ...e });
356
356
  Bt.displayName = "PromptInputCommandGroup";
357
357
  const Lt = ({
358
358
  className: t,
359
359
  ...e
360
- }) => /* @__PURE__ */ o(R, { className: r(t), ...e });
360
+ }) => /* @__PURE__ */ o(q, { className: r(t), ...e });
361
361
  Lt.displayName = "PromptInputCommandItem";
362
362
  const kt = ({
363
363
  className: t,
@@ -8,7 +8,10 @@ const l = g(!0), p = () => c(l), b = s(
8
8
  {
9
9
  ref: a,
10
10
  "data-slot": "reasoning",
11
- className: i("relative flex w-full flex-col gap-2 not-prose", t),
11
+ className: i(
12
+ "relative flex w-full flex-col gap-2 not-prose py-2",
13
+ t
14
+ ),
12
15
  ...o,
13
16
  children: e
14
17
  }
@@ -1,4 +1,4 @@
1
- import { jsxs as c, jsx as s } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
2
2
  import { IconMist as f } from "@tabler/icons-react";
3
3
  import { cn as l } from "../../../../lib/utils.js";
4
4
  import { InlineCitation as p, InlineCitationLink as x } from "../inline-citation/inline-citation.js";
@@ -8,7 +8,7 @@ const S = ({ className: r, title: e, children: t, ...o }) => {
8
8
  "div",
9
9
  {
10
10
  "data-slot": "sources",
11
- className: l("flex flex-col gap-2", r),
11
+ className: l("flex flex-col gap-2 py-2", r),
12
12
  ...o,
13
13
  children: [
14
14
  n ? null : i,
@@ -58,7 +58,7 @@ const v = s(({ className: t, ...o }, l) => /* @__PURE__ */ e(
58
58
  ref: l,
59
59
  "data-slot": "tool-content",
60
60
  className: d(
61
- "flex flex-col gap-4 py-3 text-popover-foreground outline-none",
61
+ "data-open:flex flex-col py-3 gap-6 text-popover-foreground outline-none",
62
62
  t
63
63
  ),
64
64
  ...o