@cognite/aura 0.1.0 → 0.1.1

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,17 +1,18 @@
1
1
  import { jsx as t, jsxs as u, Fragment as C } from "react/jsx-runtime";
2
2
  import { createContext as N, useMemo as y, useId as z, useContext as I } from "react";
3
3
  import { Select as o } from "@base-ui/react/select";
4
- import { IconCheck as V, IconChevronDown as v, IconChevronUp as _, IconExclamationCircle as O } from "@tabler/icons-react";
5
- import { useControllableState as P } from "../../../../lib/use-controllable-state.js";
6
- import { getPortalContainer as j, cn as s, disabledState as k, invalidState as D, focusState as T, filledState as B, hoverState as E, formElementBase as G } from "../../../../lib/utils.js";
7
- const f = N(null), L = () => {
8
- const e = I(f);
4
+ import { IconCheck as V, IconChevronDown as h, IconChevronUp as _, IconExclamationCircle as O } from "@tabler/icons-react";
5
+ import { usePortalContainer as P } from "../../../../lib/portal-container-context.js";
6
+ import { useControllableState as j } from "../../../../lib/use-controllable-state.js";
7
+ import { cn as s, disabledState as k, invalidState as D, focusState as T, filledState as B, hoverState as E, formElementBase as G } from "../../../../lib/utils.js";
8
+ const g = N(null), L = () => {
9
+ const e = I(g);
9
10
  if (!e)
10
11
  throw new Error("Select components must be used within Select");
11
12
  return e;
12
13
  };
13
- function K(e) {
14
- const [a, l] = P({
14
+ function Q(e) {
15
+ const [a, l] = j({
15
16
  prop: e.open,
16
17
  defaultProp: e.defaultOpen ?? !1,
17
18
  onChange: e.onOpenChange
@@ -19,44 +20,44 @@ function K(e) {
19
20
  if (e.multiple) {
20
21
  const {
21
22
  multiple: m,
22
- value: g,
23
+ value: v,
23
24
  defaultValue: b,
24
25
  onValueChange: S,
25
26
  ...w
26
27
  } = e;
27
- return /* @__PURE__ */ t(f.Provider, { value: n, children: /* @__PURE__ */ t(
28
+ return /* @__PURE__ */ t(g.Provider, { value: n, children: /* @__PURE__ */ t(
28
29
  o.Root,
29
30
  {
30
31
  "data-slot": "select",
31
32
  open: a,
32
- onOpenChange: (p) => l(p),
33
- value: g,
33
+ onOpenChange: (f) => l(f),
34
+ value: v,
34
35
  defaultValue: b,
35
- onValueChange: (p, R) => {
36
- S?.(p ?? []);
36
+ onValueChange: (f, R) => {
37
+ S?.(f ?? []);
37
38
  },
38
39
  multiple: !0,
39
40
  ...w
40
41
  }
41
42
  ) });
42
43
  }
43
- const { value: r, defaultValue: i, onValueChange: c, ...d } = e, h = r === void 0 ? void 0 : r === "" ? null : r, x = i === void 0 ? void 0 : i === "" ? null : i;
44
- return /* @__PURE__ */ t(f.Provider, { value: n, children: /* @__PURE__ */ t(
44
+ const { value: r, defaultValue: i, onValueChange: c, ...d } = e, p = r === void 0 ? void 0 : r === "" ? null : r, x = i === void 0 ? void 0 : i === "" ? null : i;
45
+ return /* @__PURE__ */ t(g.Provider, { value: n, children: /* @__PURE__ */ t(
45
46
  o.Root,
46
47
  {
47
48
  "data-slot": "select",
48
49
  open: a,
49
50
  onOpenChange: (m) => l(m),
50
- value: h,
51
+ value: p,
51
52
  defaultValue: x,
52
- onValueChange: (m, g) => {
53
+ onValueChange: (m, v) => {
53
54
  c?.(typeof m == "string" ? m : "");
54
55
  },
55
56
  ...d
56
57
  }
57
58
  ) });
58
59
  }
59
- function Q({ className: e, ...a }) {
60
+ function X({ className: e, ...a }) {
60
61
  return /* @__PURE__ */ t(
61
62
  o.Group,
62
63
  {
@@ -66,7 +67,7 @@ function Q({ className: e, ...a }) {
66
67
  }
67
68
  );
68
69
  }
69
- function X({
70
+ function Y({
70
71
  icon: e,
71
72
  ...a
72
73
  }) {
@@ -75,7 +76,7 @@ function X({
75
76
  /* @__PURE__ */ t(o.Value, { "data-slot": "select-value", ...a })
76
77
  ] }) : /* @__PURE__ */ t(o.Value, { "data-slot": "select-value", ...a });
77
78
  }
78
- function Y({
79
+ function Z({
79
80
  className: e,
80
81
  size: a = "default",
81
82
  children: l,
@@ -111,7 +112,7 @@ function Y({
111
112
  o.Icon,
112
113
  {
113
114
  render: /* @__PURE__ */ t(
114
- v,
115
+ h,
115
116
  {
116
117
  className: s(
117
118
  "size-4 opacity-50 transition-transform",
@@ -137,7 +138,7 @@ function Y({
137
138
  )
138
139
  ] });
139
140
  }
140
- function Z({
141
+ function M({
141
142
  className: e,
142
143
  children: a,
143
144
  position: l = "popper",
@@ -147,7 +148,8 @@ function Z({
147
148
  sideOffset: c = 4,
148
149
  ...d
149
150
  }) {
150
- return /* @__PURE__ */ t(o.Portal, { container: j(), children: /* @__PURE__ */ t(
151
+ const p = P();
152
+ return /* @__PURE__ */ t(o.Portal, { container: p, children: /* @__PURE__ */ t(
151
153
  o.Positioner,
152
154
  {
153
155
  alignItemWithTrigger: !1,
@@ -177,7 +179,7 @@ function Z({
177
179
  }
178
180
  ) });
179
181
  }
180
- function M({
182
+ function ee({
181
183
  className: e,
182
184
  ...a
183
185
  }) {
@@ -190,7 +192,7 @@ function M({
190
192
  }
191
193
  );
192
194
  }
193
- function ee({
195
+ function te({
194
196
  className: e,
195
197
  children: a,
196
198
  icon: l,
@@ -218,7 +220,7 @@ function ee({
218
220
  }
219
221
  );
220
222
  }
221
- function te({
223
+ function ae({
222
224
  className: e,
223
225
  ...a
224
226
  }) {
@@ -261,19 +263,19 @@ function A({
261
263
  e
262
264
  ),
263
265
  ...a,
264
- children: /* @__PURE__ */ t(v, { className: "size-4" })
266
+ children: /* @__PURE__ */ t(h, { className: "size-4" })
265
267
  }
266
268
  );
267
269
  }
268
270
  export {
269
- K as Select,
270
- Z as SelectContent,
271
- Q as SelectGroup,
272
- ee as SelectItem,
273
- M as SelectLabel,
271
+ Q as Select,
272
+ M as SelectContent,
273
+ X as SelectGroup,
274
+ te as SelectItem,
275
+ ee as SelectLabel,
274
276
  A as SelectScrollDownButton,
275
277
  U as SelectScrollUpButton,
276
- te as SelectSeparator,
277
- Y as SelectTrigger,
278
- X as SelectValue
278
+ ae as SelectSeparator,
279
+ Z as SelectTrigger,
280
+ Y as SelectValue
279
281
  };
@@ -0,0 +1,68 @@
1
+ import { jsxs as c, jsx as s } from "react/jsx-runtime";
2
+ import { IconMist as f } from "@tabler/icons-react";
3
+ import { cn as l } from "../../../../lib/utils.js";
4
+ import { InlineCitation as p, InlineCitationLink as x } from "../inline-citation/inline-citation.js";
5
+ const S = ({ className: r, title: e, children: t, ...o }) => {
6
+ const n = e === !1 || e === "false", i = e === void 0 || e === !0 ? /* @__PURE__ */ s(h, {}) : e;
7
+ return /* @__PURE__ */ c(
8
+ "div",
9
+ {
10
+ "data-slot": "sources",
11
+ className: l("flex flex-col gap-2", r),
12
+ ...o,
13
+ children: [
14
+ n ? null : i,
15
+ /* @__PURE__ */ s("div", { "data-slot": "sources-items", className: "flex flex-wrap gap-2", children: t })
16
+ ]
17
+ }
18
+ );
19
+ }, h = ({
20
+ className: r,
21
+ title: e = "Sources",
22
+ children: t,
23
+ ...o
24
+ }) => /* @__PURE__ */ c(
25
+ "div",
26
+ {
27
+ "data-slot": "sources-title",
28
+ className: l(
29
+ "flex items-center gap-2 text-base leading-5 tracking-tighter text-muted-foreground",
30
+ r
31
+ ),
32
+ ...o,
33
+ children: [
34
+ /* @__PURE__ */ s(f, { className: "size-4 shrink-0" }),
35
+ t ?? /* @__PURE__ */ s("span", { children: e })
36
+ ]
37
+ }
38
+ ), I = ({
39
+ href: r,
40
+ url: e,
41
+ title: t,
42
+ variant: o = "mountain",
43
+ target: n = "_blank",
44
+ icon: i,
45
+ className: d,
46
+ children: u,
47
+ ...m
48
+ }) => {
49
+ const a = r || e;
50
+ return a ? /* @__PURE__ */ s(p, { children: /* @__PURE__ */ s(
51
+ x,
52
+ {
53
+ "data-slot": "source",
54
+ href: a,
55
+ target: n,
56
+ variant: o,
57
+ icon: i,
58
+ className: d,
59
+ ...m,
60
+ children: u ?? t
61
+ }
62
+ ) }) : null;
63
+ };
64
+ export {
65
+ I as Source,
66
+ S as Sources,
67
+ h as SourcesTitle
68
+ };
@@ -1,8 +1,9 @@
1
- import { jsx as o, jsxs as m } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as f } from "react/jsx-runtime";
2
2
  import { forwardRef as i } from "react";
3
3
  import { Tooltip as e } from "@base-ui/react/tooltip";
4
- import { getPortalContainer as f, cn as g } from "../../../../lib/utils.js";
5
- function x({
4
+ import { usePortalContainer as g } from "../../../../lib/portal-container-context.js";
5
+ import { cn as c } from "../../../../lib/utils.js";
6
+ function P({
6
7
  delayDuration: t = 0,
7
8
  ...a
8
9
  }) {
@@ -15,7 +16,7 @@ function x({
15
16
  }
16
17
  );
17
18
  }
18
- function z({
19
+ function w({
19
20
  disableHoverableContent: t,
20
21
  ...a
21
22
  }) {
@@ -28,7 +29,7 @@ function z({
28
29
  }
29
30
  );
30
31
  }
31
- const c = i((t, a) => /* @__PURE__ */ o(
32
+ const u = i((t, a) => /* @__PURE__ */ o(
32
33
  e.Trigger,
33
34
  {
34
35
  ref: a,
@@ -36,8 +37,8 @@ const c = i((t, a) => /* @__PURE__ */ o(
36
37
  ...t
37
38
  }
38
39
  ));
39
- c.displayName = "TooltipTrigger";
40
- const u = i(
40
+ u.displayName = "TooltipTrigger";
41
+ const h = i(
41
42
  ({
42
43
  className: t,
43
44
  side: a = "top",
@@ -46,37 +47,40 @@ const u = i(
46
47
  alignOffset: r = 0,
47
48
  children: s,
48
49
  ...l
49
- }, p) => /* @__PURE__ */ o(e.Portal, { container: f(), children: /* @__PURE__ */ o(
50
- e.Positioner,
51
- {
52
- align: n,
53
- alignOffset: r,
54
- side: a,
55
- sideOffset: d,
56
- className: "isolate z-50 min-w-max",
57
- children: /* @__PURE__ */ m(
58
- e.Popup,
59
- {
60
- ref: p,
61
- "data-slot": "tooltip-content",
62
- className: g(
63
- "data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-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 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md p-2 text-sm font-medium leading-tight",
64
- t
65
- ),
66
- ...l,
67
- children: [
68
- s,
69
- /* @__PURE__ */ o(e.Arrow, { className: "size-2.5 -translate-y-1/2 rotate-45 rounded-xs data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=bottom]:-mt-0.5 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5 data-[side=top]:-mt-0.5" })
70
- ]
71
- }
72
- )
73
- }
74
- ) })
50
+ }, m) => {
51
+ const p = g();
52
+ return /* @__PURE__ */ o(e.Portal, { container: p, children: /* @__PURE__ */ o(
53
+ e.Positioner,
54
+ {
55
+ align: n,
56
+ alignOffset: r,
57
+ side: a,
58
+ sideOffset: d,
59
+ className: "isolate z-50 min-w-max",
60
+ children: /* @__PURE__ */ f(
61
+ e.Popup,
62
+ {
63
+ ref: m,
64
+ "data-slot": "tooltip-content",
65
+ className: c(
66
+ "data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-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 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md p-2 text-sm font-medium leading-tight",
67
+ t
68
+ ),
69
+ ...l,
70
+ children: [
71
+ s,
72
+ /* @__PURE__ */ o(e.Arrow, { className: "size-2.5 -translate-y-1/2 rotate-45 rounded-xs data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=bottom]:-mt-0.5 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5 data-[side=top]:-mt-0.5" })
73
+ ]
74
+ }
75
+ )
76
+ }
77
+ ) });
78
+ }
75
79
  );
76
- u.displayName = "TooltipContent";
80
+ h.displayName = "TooltipContent";
77
81
  export {
78
- z as Tooltip,
79
- u as TooltipContent,
80
- x as TooltipProvider,
81
- c as TooltipTrigger
82
+ w as Tooltip,
83
+ h as TooltipContent,
84
+ P as TooltipProvider,
85
+ u as TooltipTrigger
82
86
  };
package/dist/index.js CHANGED
@@ -2,13 +2,13 @@ import { Button as e, buttonVariants as r } from "./components/ui/core/button/bu
2
2
  import { ButtonMetadata as n } from "./components/ui/core/button/button.metadata.js";
3
3
  import { ButtonGroup as m, ButtonGroupSeparator as u, ButtonGroupText as l, buttonGroupVariants as d } from "./components/ui/core/button-group/button-group.js";
4
4
  import { ButtonGroupMetadata as I } from "./components/ui/core/button-group/button-group.metadata.js";
5
- import { Avatar as x, AvatarFallback as M, AvatarIcon as f, AvatarImage as g } from "./components/ui/core/avatar/avatar.js";
6
- import { AvatarMetadata as T } from "./components/ui/core/avatar/avatar.metadata.js";
7
- import { Label as s } from "./components/ui/core/label/label.js";
5
+ import { Avatar as C, AvatarFallback as M, AvatarIcon as f, AvatarImage as g } from "./components/ui/core/avatar/avatar.js";
6
+ import { AvatarMetadata as c } from "./components/ui/core/avatar/avatar.metadata.js";
7
+ import { Label as S } from "./components/ui/core/label/label.js";
8
8
  import { LabelMetadata as D } from "./components/ui/core/label/label.metadata.js";
9
9
  import { HelperText as B } from "./components/ui/core/helper-text/helper-text.js";
10
10
  import { HelperTextMetadata as w } from "./components/ui/core/helper-text/helper-text.metadata.js";
11
- import { Loader as v } from "./components/ui/core/loader/loader.js";
11
+ import { Loader as G } from "./components/ui/core/loader/loader.js";
12
12
  import { LoaderMetadata as L } from "./components/ui/core/loader/loader.metadata.js";
13
13
  import { Shimmer as R } from "./components/ui/core/shimmer/shimmer.js";
14
14
  import { ShimmerMetadata as h } from "./components/ui/core/shimmer/shimmer.metadata.js";
@@ -20,9 +20,9 @@ import { Tooltip as N, TooltipContent as W, TooltipProvider as X, TooltipTrigger
20
20
  import { TooltipMetadata as _ } from "./components/ui/core/tooltip/tooltip.metadata.js";
21
21
  import { Tool as oo, ToolContent as to, ToolHeader as eo, ToolInput as ro, ToolOutput as ao } from "./components/ui/core/tool/tool.js";
22
22
  import { ToolMetadata as po } from "./components/ui/core/tool/tool.metadata.js";
23
- import { DropdownMenu as uo, DropdownMenuCheckboxItem as lo, DropdownMenuContent as io, DropdownMenuGroup as Io, DropdownMenuHeader as Co, DropdownMenuItem as xo, DropdownMenuLabel as Mo, DropdownMenuPortal as fo, DropdownMenuRadioGroup as go, DropdownMenuRadioItem as Po, DropdownMenuSectionLabel as To, DropdownMenuSeparator as co, DropdownMenuShortcut as so, DropdownMenuSub as So, DropdownMenuSubContent as Do, DropdownMenuSubTrigger as bo, DropdownMenuTrigger as Bo } from "./components/ui/core/dropdown-menu/dropdown-menu.js";
23
+ import { DropdownMenu as uo, DropdownMenuCheckboxItem as lo, DropdownMenuContent as io, DropdownMenuGroup as Io, DropdownMenuHeader as xo, DropdownMenuItem as Co, DropdownMenuLabel as Mo, DropdownMenuPortal as fo, DropdownMenuRadioGroup as go, DropdownMenuRadioItem as Po, DropdownMenuSectionLabel as co, DropdownMenuSeparator as To, DropdownMenuShortcut as So, DropdownMenuSub as so, DropdownMenuSubContent as Do, DropdownMenuSubTrigger as bo, DropdownMenuTrigger as Bo } from "./components/ui/core/dropdown-menu/dropdown-menu.js";
24
24
  import { DropdownMenuMetadata as wo } from "./components/ui/core/dropdown-menu/dropdown-menu.metadata.js";
25
- import { Badge as vo, badgeVariants as Ho } from "./components/ui/core/badge/badge.js";
25
+ import { Badge as Go, badgeVariants as Ho } from "./components/ui/core/badge/badge.js";
26
26
  import { BadgeMetadata as ko } from "./components/ui/core/badge/badge.metadata.js";
27
27
  import { Collapsible as yo, CollapsibleContent as ho, CollapsibleTrigger as Vo } from "./components/ui/core/collapsible/collapsible.js";
28
28
  import { CollapsibleMetadata as Eo } from "./components/ui/core/collapsible/collapsible.metadata.js";
@@ -34,16 +34,16 @@ import { Skeleton as nt } from "./components/ui/core/skeleton/skeleton.js";
34
34
  import { SkeletonMetadata as mt } from "./components/ui/core/skeleton/skeleton.metadata.js";
35
35
  import { Input as lt } from "./components/ui/core/input/input.js";
36
36
  import { InputMetadata as it } from "./components/ui/core/input/input.metadata.js";
37
- import { Textarea as Ct } from "./components/ui/core/textarea/textarea.js";
37
+ import { Textarea as xt } from "./components/ui/core/textarea/textarea.js";
38
38
  import { TextareaMetadata as Mt } from "./components/ui/core/textarea/textarea.metadata.js";
39
- import { InputGroup as gt, InputGroupAddon as Pt, InputGroupButton as Tt, InputGroupInput as ct, InputGroupText as st, InputGroupTextarea as St } from "./components/ui/core/input-group/input-group.js";
39
+ import { InputGroup as gt, InputGroupAddon as Pt, InputGroupButton as ct, InputGroupInput as Tt, InputGroupText as St, InputGroupTextarea as st } from "./components/ui/core/input-group/input-group.js";
40
40
  import { InputGroupMetadata as bt } from "./components/ui/core/input-group/input-group.metadata.js";
41
- import { Alert as At, AlertActions as wt, AlertButton as Gt, AlertClose as vt, AlertDescription as Ht, AlertTitle as Lt } from "./components/ui/core/alert/alert.js";
41
+ import { Alert as At, AlertActions as wt, AlertButton as vt, AlertClose as Gt, AlertDescription as Ht, AlertTitle as Lt } from "./components/ui/core/alert/alert.js";
42
42
  import { AlertMetadata as Rt } from "./components/ui/core/alert/alert.metadata.js";
43
43
  import { Message as ht, MessageAction as Vt, MessageActions as Ft, MessageContent as Et, MessageResponse as Ot } from "./components/ui/core/message/message.js";
44
44
  import { PromptInputMetadata as Ut } from "./components/ui/core/prompt-input/prompt-input.metadata.js";
45
- import { PromptInput as qt, PromptInputActionMenu as zt, PromptInputActionMenuContent as Jt, PromptInputActionMenuItem as Kt, PromptInputActionMenuTrigger as Nt, PromptInputBody as Wt, PromptInputButton as Xt, PromptInputCommand as Yt, PromptInputCommandEmpty as Zt, PromptInputCommandGroup as _t, PromptInputCommandInput as $t, PromptInputCommandItem as oe, PromptInputCommandList as te, PromptInputCommandSeparator as ee, PromptInputFooter as re, PromptInputHeader as ae, PromptInputHoverCard as ne, PromptInputHoverCardContent as pe, PromptInputHoverCardTrigger as me, PromptInputModelSelect as ue, PromptInputModelSelectContent as le, PromptInputModelSelectItem as de, PromptInputModelSelectTrigger as ie, PromptInputModelSelectValue as Ie, PromptInputProvider as Ce, PromptInputSubmit as xe, PromptInputTab as Me, PromptInputTabBody as fe, PromptInputTabItem as ge, PromptInputTabLabel as Pe, PromptInputTabsList as Te, PromptInputTextarea as ce, PromptInputTools as se, usePromptInputController as Se } from "./components/ui/core/prompt-input/prompt-input.js";
46
- import { Dialog as be, DialogClose as Be, DialogContent as Ae, DialogDescription as we, DialogFooter as Ge, DialogHeader as ve, DialogOverlay as He, DialogPortal as Le, DialogTitle as ke, DialogTrigger as Re } from "./components/ui/core/dialog/dialog.js";
45
+ import { PromptInput as qt, PromptInputActionMenu as zt, PromptInputActionMenuContent as Jt, PromptInputActionMenuItem as Kt, PromptInputActionMenuTrigger as Nt, PromptInputBody as Wt, PromptInputButton as Xt, PromptInputCommand as Yt, PromptInputCommandEmpty as Zt, PromptInputCommandGroup as _t, PromptInputCommandInput as $t, PromptInputCommandItem as oe, PromptInputCommandList as te, PromptInputCommandSeparator as ee, PromptInputFooter as re, PromptInputHeader as ae, PromptInputHoverCard as ne, PromptInputHoverCardContent as pe, PromptInputHoverCardTrigger as me, PromptInputModelSelect as ue, PromptInputModelSelectContent as le, PromptInputModelSelectItem as de, PromptInputModelSelectTrigger as ie, PromptInputModelSelectValue as Ie, PromptInputProvider as xe, PromptInputSubmit as Ce, PromptInputTab as Me, PromptInputTabBody as fe, PromptInputTabItem as ge, PromptInputTabLabel as Pe, PromptInputTabsList as ce, PromptInputTextarea as Te, PromptInputTools as Se, usePromptInputController as se } from "./components/ui/core/prompt-input/prompt-input.js";
46
+ import { Dialog as be, DialogClose as Be, DialogContent as Ae, DialogDescription as we, DialogFooter as ve, DialogHeader as Ge, DialogOverlay as He, DialogPortal as Le, DialogTitle as ke, DialogTrigger as Re } from "./components/ui/core/dialog/dialog.js";
47
47
  import { DialogMetadata as he } from "./components/ui/core/dialog/dialog.metadata.js";
48
48
  import { Command as Fe, CommandDialog as Ee, CommandEmpty as Oe, CommandGroup as Qe, CommandInput as Ue, CommandItem as je, CommandList as qe, CommandSeparator as ze, CommandShortcut as Je } from "./components/ui/core/command/command.js";
49
49
  import { CommandMetadata as Ne } from "./components/ui/core/command/command.metadata.js";
@@ -51,20 +51,23 @@ import { InlineCitationMetadata as Xe } from "./components/ui/core/inline-citati
51
51
  import { InlineCitation as Ze, InlineCitationCard as _e, InlineCitationCardBody as $e, InlineCitationCardTrigger as or, InlineCitationGroup as tr, InlineCitationLink as er, InlineCitationQuote as rr, InlineCitationSource as ar, InlineCitationText as nr } from "./components/ui/core/inline-citation/inline-citation.js";
52
52
  import { Reasoning as mr, ReasoningContent as ur, ReasoningHeader as lr, ReasoningItem as dr } from "./components/ui/core/reasoning/reasoning.js";
53
53
  import { ReasoningMetadata as Ir } from "./components/ui/core/reasoning/reasoning.metadata.js";
54
+ import { Popover as Cr, PopoverContent as Mr, PopoverTrigger as fr } from "./components/ui/core/popover/popover.js";
55
+ import { Source as Pr, Sources as cr, SourcesTitle as Tr } from "./components/ui/core/sources/sources.js";
56
+ import { PortalContainerContext as sr } from "./lib/portal-container-context.js";
54
57
  export {
55
58
  At as Alert,
56
59
  wt as AlertActions,
57
- Gt as AlertButton,
58
- vt as AlertClose,
60
+ vt as AlertButton,
61
+ Gt as AlertClose,
59
62
  Ht as AlertDescription,
60
63
  Rt as AlertMetadata,
61
64
  Lt as AlertTitle,
62
- x as Avatar,
65
+ C as Avatar,
63
66
  M as AvatarFallback,
64
67
  f as AvatarIcon,
65
68
  g as AvatarImage,
66
- T as AvatarMetadata,
67
- vo as Badge,
69
+ c as AvatarMetadata,
70
+ Go as Badge,
68
71
  ko as BadgeMetadata,
69
72
  e as Button,
70
73
  m as ButtonGroup,
@@ -94,8 +97,8 @@ export {
94
97
  Be as DialogClose,
95
98
  Ae as DialogContent,
96
99
  we as DialogDescription,
97
- Ge as DialogFooter,
98
- ve as DialogHeader,
100
+ ve as DialogFooter,
101
+ Ge as DialogHeader,
99
102
  he as DialogMetadata,
100
103
  He as DialogOverlay,
101
104
  Le as DialogPortal,
@@ -105,17 +108,17 @@ export {
105
108
  lo as DropdownMenuCheckboxItem,
106
109
  io as DropdownMenuContent,
107
110
  Io as DropdownMenuGroup,
108
- Co as DropdownMenuHeader,
109
- xo as DropdownMenuItem,
111
+ xo as DropdownMenuHeader,
112
+ Co as DropdownMenuItem,
110
113
  Mo as DropdownMenuLabel,
111
114
  wo as DropdownMenuMetadata,
112
115
  fo as DropdownMenuPortal,
113
116
  go as DropdownMenuRadioGroup,
114
117
  Po as DropdownMenuRadioItem,
115
- To as DropdownMenuSectionLabel,
116
- co as DropdownMenuSeparator,
117
- so as DropdownMenuShortcut,
118
- So as DropdownMenuSub,
118
+ co as DropdownMenuSectionLabel,
119
+ To as DropdownMenuSeparator,
120
+ So as DropdownMenuShortcut,
121
+ so as DropdownMenuSub,
119
122
  Do as DropdownMenuSubContent,
120
123
  bo as DropdownMenuSubTrigger,
121
124
  Bo as DropdownMenuTrigger,
@@ -138,21 +141,25 @@ export {
138
141
  lt as Input,
139
142
  gt as InputGroup,
140
143
  Pt as InputGroupAddon,
141
- Tt as InputGroupButton,
142
- ct as InputGroupInput,
144
+ ct as InputGroupButton,
145
+ Tt as InputGroupInput,
143
146
  bt as InputGroupMetadata,
144
- st as InputGroupText,
145
- St as InputGroupTextarea,
147
+ St as InputGroupText,
148
+ st as InputGroupTextarea,
146
149
  it as InputMetadata,
147
- s as Label,
150
+ S as Label,
148
151
  D as LabelMetadata,
149
- v as Loader,
152
+ G as Loader,
150
153
  L as LoaderMetadata,
151
154
  ht as Message,
152
155
  Vt as MessageAction,
153
156
  Ft as MessageActions,
154
157
  Et as MessageContent,
155
158
  Ot as MessageResponse,
159
+ Cr as Popover,
160
+ Mr as PopoverContent,
161
+ fr as PopoverTrigger,
162
+ sr as PortalContainerContext,
156
163
  qt as PromptInput,
157
164
  zt as PromptInputActionMenu,
158
165
  Jt as PromptInputActionMenuContent,
@@ -178,15 +185,15 @@ export {
178
185
  de as PromptInputModelSelectItem,
179
186
  ie as PromptInputModelSelectTrigger,
180
187
  Ie as PromptInputModelSelectValue,
181
- Ce as PromptInputProvider,
182
- xe as PromptInputSubmit,
188
+ xe as PromptInputProvider,
189
+ Ce as PromptInputSubmit,
183
190
  Me as PromptInputTab,
184
191
  fe as PromptInputTabBody,
185
192
  ge as PromptInputTabItem,
186
193
  Pe as PromptInputTabLabel,
187
- Te as PromptInputTabsList,
188
- ce as PromptInputTextarea,
189
- se as PromptInputTools,
194
+ ce as PromptInputTabsList,
195
+ Te as PromptInputTextarea,
196
+ Se as PromptInputTools,
190
197
  mr as Reasoning,
191
198
  ur as ReasoningContent,
192
199
  lr as ReasoningHeader,
@@ -209,7 +216,10 @@ export {
209
216
  h as ShimmerMetadata,
210
217
  nt as Skeleton,
211
218
  mt as SkeletonMetadata,
212
- Ct as Textarea,
219
+ Pr as Source,
220
+ cr as Sources,
221
+ Tr as SourcesTitle,
222
+ xt as Textarea,
213
223
  Mt as TextareaMetadata,
214
224
  oo as Tool,
215
225
  to as ToolContent,
@@ -225,5 +235,5 @@ export {
225
235
  Ho as badgeVariants,
226
236
  d as buttonGroupVariants,
227
237
  r as buttonVariants,
228
- Se as usePromptInputController
238
+ se as usePromptInputController
229
239
  };
@@ -0,0 +1,2 @@
1
+ export declare const PortalContainerContext: import('react').Context<HTMLElement | undefined>;
2
+ export declare function usePortalContainer(): HTMLElement | undefined;
@@ -0,0 +1,12 @@
1
+ import { createContext as t, useContext as o } from "react";
2
+ import { getPortalContainer as n } from "./utils.js";
3
+ const e = t(
4
+ void 0
5
+ );
6
+ function C() {
7
+ return o(e) ?? n();
8
+ }
9
+ export {
10
+ e as PortalContainerContext,
11
+ C as usePortalContainer
12
+ };