@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.
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +249 -237
- package/dist/components/ui/core/button/button.d.ts +1 -1
- package/dist/components/ui/core/card/card.d.ts +17 -0
- package/dist/components/ui/core/card/card.js +143 -0
- package/dist/components/ui/core/card/card.metadata.d.ts +8 -0
- package/dist/components/ui/core/card/card.metadata.js +9 -0
- package/dist/components/ui/core/code-block/code-block.d.ts +1 -1
- package/dist/components/ui/core/combobox/combobox.d.ts +15 -0
- package/dist/components/ui/core/combobox/combobox.metadata.d.ts +2 -0
- package/dist/components/ui/core/command/command.d.ts +2 -2
- package/dist/components/ui/core/dialog/dialog.js +49 -50
- package/dist/components/ui/core/helper-text/helper-text.js +1 -1
- package/dist/components/ui/core/inline-citation/inline-citation.js +3 -3
- package/dist/components/ui/core/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/core/message/message.d.ts +2 -2
- package/dist/components/ui/core/message/message.js +35 -37
- package/dist/components/ui/core/prompt-input/prompt-input.d.ts +1 -1
- package/dist/components/ui/core/prompt-input/prompt-input.js +18 -18
- package/dist/components/ui/core/reasoning/reasoning.js +4 -1
- package/dist/components/ui/core/sources/sources.js +2 -2
- package/dist/components/ui/core/tool/tool.js +1 -1
- package/dist/index.js +249 -237
- package/dist/styles.css +1 -1
- package/dist/styles.source.css +1055 -0
- package/package.json +21 -8
|
@@ -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,
|
|
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,
|
|
6
|
-
import { DropdownMenu as W,
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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 {
|
|
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
|
|
61
|
+
"data-open:flex flex-col py-3 gap-6 text-popover-foreground outline-none",
|
|
62
62
|
t
|
|
63
63
|
),
|
|
64
64
|
...o
|