@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.
@@ -0,0 +1,143 @@
1
+ import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as d } from "react";
3
+ import { IconDotsVertical as n } from "@tabler/icons-react";
4
+ import { cn as o } from "../../../../lib/utils.js";
5
+ import { Button as i } from "../button/button.js";
6
+ import { DropdownMenu as l, DropdownMenuTrigger as m, DropdownMenuContent as p } from "../dropdown-menu/dropdown-menu.js";
7
+ const u = d(
8
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
9
+ "div",
10
+ {
11
+ ref: t,
12
+ "data-slot": "card",
13
+ className: o(
14
+ "bg-card text-card-foreground flex flex-col rounded-lg hover:bg-accent",
15
+ a
16
+ ),
17
+ ...r
18
+ }
19
+ )
20
+ );
21
+ u.displayName = "Card";
22
+ const h = d(
23
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
24
+ "div",
25
+ {
26
+ ref: t,
27
+ "data-slot": "card-header",
28
+ className: o(
29
+ "@container/card-header group/card-header grid auto-rows-min items-start gap-1.5 px-4 pt-4 [.border-b]:pb-6",
30
+ "grid-cols-[1fr]",
31
+ "has-data-[slot=card-icon]:grid-cols-[auto_1fr]",
32
+ "has-data-[slot=card-header-right]:grid-cols-[1fr_auto]",
33
+ "has-data-[slot=card-icon]:has-data-[slot=card-header-right]:grid-cols-[auto_1fr_auto]",
34
+ a
35
+ ),
36
+ ...r
37
+ }
38
+ )
39
+ );
40
+ h.displayName = "CardHeader";
41
+ const f = d(
42
+ ({ className: a, children: r, ...t }, s) => /* @__PURE__ */ e(
43
+ "div",
44
+ {
45
+ ref: s,
46
+ "data-slot": "card-icon",
47
+ className: o("col-start-1 row-start-1 h-full", a),
48
+ ...t,
49
+ children: /* @__PURE__ */ e("div", { className: "flex items-center h-full", children: r })
50
+ }
51
+ )
52
+ );
53
+ f.displayName = "CardIcon";
54
+ const g = d(({ className: a, as: r = "h3", ...t }, s) => /* @__PURE__ */ e(
55
+ r,
56
+ {
57
+ ref: s,
58
+ "data-slot": "card-title",
59
+ className: o(
60
+ "tracking-tightest text-foreground font-medium text-lg row-start-1",
61
+ "group-has-data-[slot=card-icon]/card-header:col-start-2",
62
+ a
63
+ ),
64
+ ...t
65
+ }
66
+ ));
67
+ g.displayName = "CardTitle";
68
+ const C = d(
69
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
70
+ "p",
71
+ {
72
+ ref: t,
73
+ "data-slot": "card-description",
74
+ className: o(
75
+ "text-muted-foreground text-sm row-start-2",
76
+ "group-has-data-[slot=card-icon]/card-header:col-start-2",
77
+ a
78
+ ),
79
+ ...r
80
+ }
81
+ )
82
+ );
83
+ C.displayName = "CardDescription";
84
+ const N = d(
85
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
86
+ "div",
87
+ {
88
+ ref: t,
89
+ "data-slot": "card-header-right",
90
+ className: o(
91
+ "row-span-2 row-start-1 self-start justify-self-end",
92
+ a
93
+ ),
94
+ ...r
95
+ }
96
+ )
97
+ );
98
+ N.displayName = "CardHeaderRight";
99
+ const x = d(({ children: a, align: r = "end", ...t }, s) => /* @__PURE__ */ c(l, { ...t, children: [
100
+ /* @__PURE__ */ e(
101
+ m,
102
+ {
103
+ render: /* @__PURE__ */ e(i, { variant: "ghost", size: "icon-sm", ref: s, children: /* @__PURE__ */ e(n, {}) })
104
+ }
105
+ ),
106
+ /* @__PURE__ */ e(p, { align: r, children: a })
107
+ ] }));
108
+ x.displayName = "CardActions";
109
+ const w = d(
110
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
111
+ "div",
112
+ {
113
+ ref: t,
114
+ "data-slot": "card-content",
115
+ className: o("p-4", a),
116
+ ...r
117
+ }
118
+ )
119
+ );
120
+ w.displayName = "CardContent";
121
+ const y = d(
122
+ ({ className: a, ...r }, t) => /* @__PURE__ */ e(
123
+ "div",
124
+ {
125
+ ref: t,
126
+ "data-slot": "card-footer",
127
+ className: o("flex px-4 pb-4", a),
128
+ ...r
129
+ }
130
+ )
131
+ );
132
+ y.displayName = "CardFooter";
133
+ export {
134
+ u as Card,
135
+ x as CardActions,
136
+ w as CardContent,
137
+ C as CardDescription,
138
+ y as CardFooter,
139
+ h as CardHeader,
140
+ N as CardHeaderRight,
141
+ f as CardIcon,
142
+ g as CardTitle
143
+ };
@@ -0,0 +1,8 @@
1
+ import { ComponentMeta } from '../../../../lib/types';
2
+ /**
3
+ * Card Component Metadata
4
+ *
5
+ * This metadata is used by the documentation system to generate
6
+ * component documentation pages and provide context for LLMs.
7
+ */
8
+ export declare const CardMetadata: ComponentMeta;
@@ -0,0 +1,9 @@
1
+ const e = {
2
+ name: "Card",
3
+ status: "in-progress-code-review",
4
+ description: "A flexible card layout with header, content, action, and footer slots.",
5
+ llmUsage: "Use `<Card>` with `<CardHeader>`, `<CardTitle>`, `<CardDescription>`, `<CardContent>`, and `<CardFooter>` for structured content containers."
6
+ };
7
+ export {
8
+ e as CardMetadata
9
+ };
@@ -15,7 +15,7 @@ type CodeBlockCopyButtonProps = ComponentProps<typeof Button> & {
15
15
  };
16
16
  declare const CodeBlockCopyButton: import('react').ForwardRefExoticComponent<Omit<CodeBlockCopyButtonProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
17
17
  declare const CodeBlockCollapseButton: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ButtonProps & import('class-variance-authority').VariantProps<(props?: ({
18
- variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
18
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
19
19
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
20
20
  } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
21
21
  export { CodeBlock, CodeBlockCollapseButton, CodeBlockCopyButton };
@@ -0,0 +1,15 @@
1
+ import { ComponentProps } from 'react';
2
+ import { Button } from '../button/button';
3
+ type ComboboxProps = Omit<ComponentProps<typeof Button>, 'value' | 'onChange'> & {
4
+ options: Array<{
5
+ value: string;
6
+ label: string;
7
+ }>;
8
+ value?: string;
9
+ onValueChange?: (value: string) => void;
10
+ placeholder?: string;
11
+ searchPlaceholder?: string;
12
+ emptyText?: string;
13
+ };
14
+ declare const Combobox: import('react').ForwardRefExoticComponent<Omit<ComboboxProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
15
+ export { Combobox };
@@ -0,0 +1,2 @@
1
+ import { ComponentMeta } from '../../../../lib/types';
2
+ export declare const ComboboxMetadata: ComponentMeta;
@@ -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">, "type" | "value" | "onChange"> & {
34
+ }, "key" | keyof import('react').InputHTMLAttributes<HTMLInputElement> | "asChild">, "onChange" | "type" | "value"> & {
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">, "disabled" | "value" | "onSelect"> & {
78
+ }, "key" | keyof import('react').HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
79
79
  disabled?: boolean;
80
80
  onSelect?: (value: string) => void;
81
81
  value?: string;
@@ -1,18 +1,19 @@
1
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import { Dialog as a } from "@base-ui/react/dialog";
1
+ import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
+ import { Dialog as e } from "@base-ui/react/dialog";
3
3
  import { IconX as d } from "@tabler/icons-react";
4
4
  import { usePortalContainer as c } from "../../../../lib/portal-container-context.js";
5
5
  import { cn as i } from "../../../../lib/utils.js";
6
- function D({ ...t }) {
7
- return /* @__PURE__ */ e(a.Root, { "data-slot": "dialog", ...t });
6
+ import { Button as g } from "../button/button.js";
7
+ function b({ ...t }) {
8
+ return /* @__PURE__ */ a(e.Root, { "data-slot": "dialog", ...t });
8
9
  }
9
- function b({ children: t, ...o }) {
10
- return /* @__PURE__ */ e(a.Trigger, { "data-slot": "dialog-trigger", ...o, children: t });
10
+ function v({ children: t, ...o }) {
11
+ return /* @__PURE__ */ a(e.Trigger, { "data-slot": "dialog-trigger", ...o, children: t });
11
12
  }
12
- function g({ ...t }) {
13
+ function p({ ...t }) {
13
14
  const o = c();
14
- return /* @__PURE__ */ e(
15
- a.Portal,
15
+ return /* @__PURE__ */ a(
16
+ e.Portal,
16
17
  {
17
18
  "data-slot": "dialog-portal",
18
19
  container: o,
@@ -20,18 +21,18 @@ function g({ ...t }) {
20
21
  }
21
22
  );
22
23
  }
23
- function h({
24
+ function N({
24
25
  children: t,
25
26
  ...o
26
27
  }) {
27
- return /* @__PURE__ */ e(a.Close, { "data-slot": "dialog-close", ...o, children: t });
28
+ return /* @__PURE__ */ a(e.Close, { "data-slot": "dialog-close", ...o, children: t });
28
29
  }
29
- function u({
30
+ function m({
30
31
  className: t,
31
32
  ...o
32
33
  }) {
33
- return /* @__PURE__ */ e(
34
- a.Backdrop,
34
+ return /* @__PURE__ */ a(
35
+ e.Backdrop,
35
36
  {
36
37
  "data-slot": "dialog-overlay",
37
38
  className: i(
@@ -42,17 +43,17 @@ function u({
42
43
  }
43
44
  );
44
45
  }
45
- function v({
46
+ function C({
46
47
  className: t,
47
48
  children: o,
48
- showCloseButton: l = !0,
49
- closeButtonLabel: r = "Close",
49
+ showCloseButton: r = !0,
50
+ closeButtonLabel: n = "Close",
50
51
  ...s
51
52
  }) {
52
- return /* @__PURE__ */ n(g, { "data-slot": "dialog-portal", children: [
53
- /* @__PURE__ */ e(u, {}),
54
- /* @__PURE__ */ n(
55
- a.Popup,
53
+ return /* @__PURE__ */ l(p, { "data-slot": "dialog-portal", children: [
54
+ /* @__PURE__ */ a(m, {}),
55
+ /* @__PURE__ */ l(
56
+ e.Popup,
56
57
  {
57
58
  "data-slot": "dialog-content",
58
59
  className: i(
@@ -62,20 +63,18 @@ function v({
62
63
  ...s,
63
64
  children: [
64
65
  o,
65
- l && /* @__PURE__ */ e(
66
- a.Close,
66
+ r && /* @__PURE__ */ a(
67
+ e.Close,
67
68
  {
68
69
  "data-slot": "dialog-close",
69
- render: /* @__PURE__ */ n(
70
- "button",
70
+ render: /* @__PURE__ */ a(
71
+ g,
71
72
  {
72
- type: "button",
73
- "aria-label": r,
74
- className: "ring-offset-background focus:ring-ring data-open:bg-accent data-open:text-muted-foreground text-foreground absolute top-5 right-4 flex size-7 items-center justify-center rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",
75
- children: [
76
- /* @__PURE__ */ e(d, { className: "h-4 w-4" }),
77
- /* @__PURE__ */ e("span", { className: "sr-only", children: r })
78
- ]
73
+ variant: "ghost",
74
+ size: "icon-sm",
75
+ className: "absolute top-5 right-4 opacity-70 hover:opacity-100",
76
+ "aria-label": n,
77
+ children: /* @__PURE__ */ a(d, { className: "h-4 w-4" })
79
78
  }
80
79
  )
81
80
  }
@@ -85,8 +84,8 @@ function v({
85
84
  )
86
85
  ] });
87
86
  }
88
- function N({ className: t, ...o }) {
89
- return /* @__PURE__ */ e(
87
+ function w({ className: t, ...o }) {
88
+ return /* @__PURE__ */ a(
90
89
  "div",
91
90
  {
92
91
  "data-slot": "dialog-header",
@@ -99,7 +98,7 @@ function N({ className: t, ...o }) {
99
98
  );
100
99
  }
101
100
  function k({ className: t, ...o }) {
102
- return /* @__PURE__ */ e(
101
+ return /* @__PURE__ */ a(
103
102
  "div",
104
103
  {
105
104
  "data-slot": "dialog-footer",
@@ -111,12 +110,12 @@ function k({ className: t, ...o }) {
111
110
  }
112
111
  );
113
112
  }
114
- function C({
113
+ function P({
115
114
  className: t,
116
115
  ...o
117
116
  }) {
118
- return /* @__PURE__ */ e(
119
- a.Title,
117
+ return /* @__PURE__ */ a(
118
+ e.Title,
120
119
  {
121
120
  "data-slot": "dialog-title",
122
121
  className: i(
@@ -127,12 +126,12 @@ function C({
127
126
  }
128
127
  );
129
128
  }
130
- function w({
129
+ function T({
131
130
  className: t,
132
131
  ...o
133
132
  }) {
134
- return /* @__PURE__ */ e(
135
- a.Description,
133
+ return /* @__PURE__ */ a(
134
+ e.Description,
136
135
  {
137
136
  "data-slot": "dialog-description",
138
137
  className: i(
@@ -144,14 +143,14 @@ function w({
144
143
  );
145
144
  }
146
145
  export {
147
- D as Dialog,
148
- h as DialogClose,
149
- v as DialogContent,
150
- w as DialogDescription,
146
+ b as Dialog,
147
+ N as DialogClose,
148
+ C as DialogContent,
149
+ T as DialogDescription,
151
150
  k as DialogFooter,
152
- N as DialogHeader,
153
- u as DialogOverlay,
154
- g as DialogPortal,
155
- C as DialogTitle,
156
- b as DialogTrigger
151
+ w as DialogHeader,
152
+ m as DialogOverlay,
153
+ p as DialogPortal,
154
+ P as DialogTitle,
155
+ v as DialogTrigger
157
156
  };
@@ -1,4 +1,4 @@
1
- import { jsx as e, jsxs as p } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as g, isValidElement as u } from "react";
3
3
  import { IconExclamationCircle as h } from "@tabler/icons-react";
4
4
  import { cva as i } from "class-variance-authority";
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as d, Fragment as v } from "react/jsx-runtime";
2
2
  import { forwardRef as r } from "react";
3
3
  import { cn as o, getHostname as m } from "../../../../lib/utils.js";
4
4
  import { Badge as g } from "../badge/badge.js";
5
- import { HoverCard as f, HoverCardTrigger as x, HoverCardContent as b } from "../hover-card/hover-card.js";
5
+ import { HoverCard as f, HoverCardContent as x, HoverCardTrigger as b } from "../hover-card/hover-card.js";
6
6
  const h = r(
7
7
  ({ className: e, ...n }, t) => /* @__PURE__ */ i(
8
8
  "span",
@@ -49,7 +49,7 @@ const q = (e) => /* @__PURE__ */ i(
49
49
  className: t,
50
50
  ...a
51
51
  }) => /* @__PURE__ */ i(
52
- x,
52
+ b,
53
53
  {
54
54
  render: /* @__PURE__ */ d(
55
55
  g,
@@ -76,7 +76,7 @@ const q = (e) => /* @__PURE__ */ i(
76
76
  className: e,
77
77
  ...n
78
78
  }) => /* @__PURE__ */ i(
79
- b,
79
+ x,
80
80
  {
81
81
  "data-slot": "inline-citation-card-body",
82
82
  className: o("relative w-80 p-0", e),
@@ -4,7 +4,7 @@ declare const InputGroupAddon: import('react').ForwardRefExoticComponent<Omit<im
4
4
  align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
6
6
  declare const InputGroupButton: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<import('@base-ui/react').ButtonProps & VariantProps<(props?: ({
7
- variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
7
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
8
8
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "size"> & VariantProps<(props?: ({
10
10
  size?: "sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined;
@@ -41,7 +41,7 @@ declare const MessageBranchNext: ({ children, ...props }: MessageBranchNextProps
41
41
  type MessageBranchPageProps = HTMLAttributes<HTMLSpanElement>;
42
42
  declare const MessageBranchPage: ({ className, ...props }: MessageBranchPageProps) => import("react/jsx-runtime").JSX.Element;
43
43
  type MessageResponseProps = ComponentProps<typeof Streamdown>;
44
- declare const MessageResponse: import('react').MemoExoticComponent<({ className, components, ...props }: MessageResponseProps) => import("react/jsx-runtime").JSX.Element>;
44
+ declare const MessageResponse: import('react').MemoExoticComponent<({ className, components, plugins, ...props }: MessageResponseProps) => import("react/jsx-runtime").JSX.Element>;
45
45
  type MessageAttachmentProps = HTMLAttributes<HTMLDivElement> & {
46
46
  data: FileUIPart;
47
47
  className?: string;
@@ -52,4 +52,4 @@ type MessageAttachmentsProps = ComponentProps<'div'>;
52
52
  declare function MessageAttachments({ children, className, ...props }: MessageAttachmentsProps): import("react/jsx-runtime").JSX.Element | null;
53
53
  type MessageToolbarProps = ComponentProps<'div'>;
54
54
  declare const MessageToolbar: ({ className, children, ...props }: MessageToolbarProps) => import("react/jsx-runtime").JSX.Element;
55
- export { Message, MessageContent, MessageAvatar, MessageAvatarIcon, MessageActions, MessageAction, MessageBranch, MessageBranchContent, MessageBranchSelector, MessageBranchPrevious, MessageBranchNext, MessageBranchPage, MessageResponse, MessageAttachment, MessageAttachments, MessageToolbar, };
55
+ export { Message, MessageAction, MessageActions, MessageAttachment, MessageAttachments, MessageAvatar, MessageAvatarIcon, MessageBranch, MessageBranchContent, MessageBranchNext, MessageBranchPage, MessageBranchPrevious, MessageBranchSelector, MessageContent, MessageResponse, MessageToolbar, };
@@ -1,24 +1,25 @@
1
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
2
  import { createContext as i, memo as b } from "react";
3
+ import { mermaid as _ } from "@streamdown/mermaid";
3
4
  import "@tabler/icons-react";
4
- import { Streamdown as _ } from "streamdown";
5
+ import { Streamdown as p } from "streamdown";
5
6
  import { cn as d } from "../../../../lib/utils.js";
6
7
  import "../avatar/avatar.js";
7
- import { Button as p } from "../button/button.js";
8
+ import { Button as u } from "../button/button.js";
8
9
  import "../button-group/button-group.js";
9
- import { Tooltip as u, TooltipTrigger as w, TooltipContent as g } from "../tooltip/tooltip.js";
10
- const T = ({ className: t, isResponse: o = !1, ...a }) => /* @__PURE__ */ e(
10
+ import { Tooltip as w, TooltipTrigger as g, TooltipContent as f } from "../tooltip/tooltip.js";
11
+ const z = ({ className: t, isResponse: o = !1, ...a }) => /* @__PURE__ */ e(
11
12
  "div",
12
13
  {
13
14
  "data-slot": "message",
14
15
  className: d(
15
- "group flex w-full items-start justify-start gap-3 py-2 mb-0",
16
+ "group flex w-full items-start justify-start gap-3 mb-0 py-3",
16
17
  o ? "is-assistant items-start" : "is-user flex-row-reverse",
17
18
  t
18
19
  ),
19
20
  ...a
20
21
  }
21
- ), R = ({
22
+ ), A = ({
22
23
  children: t,
23
24
  className: o,
24
25
  ...a
@@ -27,16 +28,16 @@ const T = ({ className: t, isResponse: o = !1, ...a }) => /* @__PURE__ */ e(
27
28
  {
28
29
  "data-slot": "message-content",
29
30
  className: d(
30
- "is-user:dark flex flex-col gap-1 overflow-hidden rounded-md text-base leading-tight tracking-tightest",
31
+ "is-user:dark flex flex-col gap-4 rounded-md text-base leading-tight tracking-tightest",
31
32
  "max-w-4/5",
32
- "group-[.is-user]:bg-accent group-[.is-user]:p-2 group-[.is-user]:text-accent-foreground",
33
+ "group-[.is-user]:overflow-hidden group-[.is-user]:bg-accent group-[.is-user]:p-2 group-[.is-user]:text-accent-foreground",
33
34
  "group-[.is-assistant]:text-foreground group-[.is-assistant]:pt-1",
34
35
  o
35
36
  ),
36
37
  ...a,
37
38
  children: t
38
39
  }
39
- ), z = ({
40
+ ), B = ({
40
41
  className: t,
41
42
  children: o,
42
43
  ...a
@@ -44,26 +45,26 @@ const T = ({ className: t, isResponse: o = !1, ...a }) => /* @__PURE__ */ e(
44
45
  "div",
45
46
  {
46
47
  "data-slot": "message-actions",
47
- className: d("flex items-center gap-2", t),
48
+ className: d("flex items-center gap-2 pt-2", t),
48
49
  ...a,
49
50
  children: o
50
51
  }
51
- ), A = ({
52
+ ), S = ({
52
53
  tooltip: t,
53
54
  children: o,
54
55
  label: a,
55
- className: n,
56
+ className: r,
56
57
  variant: m = "ghost",
57
58
  size: c = "sm",
58
59
  ...l
59
60
  }) => {
60
- const r = /* @__PURE__ */ s(
61
- p,
61
+ const s = /* @__PURE__ */ n(
62
+ u,
62
63
  {
63
64
  "data-slot": "message-action",
64
65
  className: d(
65
66
  "relative icon-sm text-muted-foreground hover:text-foreground",
66
- n
67
+ r
67
68
  ),
68
69
  size: c,
69
70
  type: "button",
@@ -75,15 +76,15 @@ const T = ({ className: t, isResponse: o = !1, ...a }) => /* @__PURE__ */ e(
75
76
  ]
76
77
  }
77
78
  );
78
- return t ? /* @__PURE__ */ s(u, { children: [
79
- /* @__PURE__ */ e(w, { render: r }),
80
- /* @__PURE__ */ e(g, { children: /* @__PURE__ */ e("p", { children: t }) })
81
- ] }) : r;
79
+ return t ? /* @__PURE__ */ n(w, { children: [
80
+ /* @__PURE__ */ e(g, { render: s }),
81
+ /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e("p", { children: t }) })
82
+ ] }) : s;
82
83
  };
83
84
  i(
84
85
  null
85
86
  );
86
- const f = {
87
+ const k = {
87
88
  h1: ({ children: t }) => /* @__PURE__ */ e("h1", { className: "mt-0 mb-2 scroll-m-20 text-xl font-medium tracking-tightest", children: t }),
88
89
  h2: ({ children: t }) => /* @__PURE__ */ e("h2", { className: "mt-4 mb-1 scroll-m-20 text-lg font-medium tracking-tightest", children: t }),
89
90
  h3: ({ children: t }) => /* @__PURE__ */ e("h3", { className: "mt-4 mb-1 scroll-m-20 text-base font-medium tracking-tighter", children: t }),
@@ -100,11 +101,7 @@ const f = {
100
101
  li: ({ children: t }) => /* @__PURE__ */ e("li", { className: "py-0", children: t }),
101
102
  blockquote: ({ children: t }) => /* @__PURE__ */ e("blockquote", { className: "my-3 pr-2 pl-2 border-l border-l-border text-sm text-muted-foreground font-normal tracking-tight not-italic", children: t }),
102
103
  hr: () => /* @__PURE__ */ e("hr", { className: "my-4 border-border" }),
103
- a: ({
104
- children: t,
105
- href: o,
106
- ...a
107
- }) => /* @__PURE__ */ e(
104
+ a: ({ children: t, href: o, ...a }) => /* @__PURE__ */ e(
108
105
  "a",
109
106
  {
110
107
  className: "text-foreground-link no-underline hover:underline underline-offset-4",
@@ -119,9 +116,9 @@ const f = {
119
116
  tr: ({ children: t }) => /* @__PURE__ */ e("tr", { className: "m-0 border-t p-0 even:bg-muted", children: t }),
120
117
  th: ({ children: t }) => /* @__PURE__ */ e("th", { className: "border px-4 py-2 text-left font-bold", children: t }),
121
118
  td: ({ children: t }) => /* @__PURE__ */ e("td", { className: "border px-4 py-2 text-left", children: t })
122
- }, k = b(
123
- ({ className: t, components: o, ...a }) => /* @__PURE__ */ e(
124
- _,
119
+ }, x = b(
120
+ ({ className: t, components: o, plugins: a, ...r }) => /* @__PURE__ */ e(
121
+ p,
125
122
  {
126
123
  "data-slot": "message-response",
127
124
  className: d(
@@ -223,18 +220,19 @@ const f = {
223
220
  "[&>*:last-child]:mb-0",
224
221
  t
225
222
  ),
226
- components: { ...f, ...o },
223
+ components: { ...k, ...o },
227
224
  controls: !1,
228
- ...a
225
+ plugins: { ...a, mermaid: _ },
226
+ ...r
229
227
  }
230
228
  ),
231
229
  (t, o) => t.children === o.children
232
230
  );
233
- k.displayName = "MessageResponse";
231
+ x.displayName = "MessageResponse";
234
232
  export {
235
- T as Message,
236
- A as MessageAction,
237
- z as MessageActions,
238
- R as MessageContent,
239
- k as MessageResponse
233
+ z as Message,
234
+ S as MessageAction,
235
+ B as MessageActions,
236
+ A as MessageContent,
237
+ x as MessageResponse
240
238
  };
@@ -44,7 +44,7 @@ type PromptInputToolsProps = HTMLAttributes<HTMLDivElement>;
44
44
  declare const PromptInputTools: import('react').ForwardRefExoticComponent<PromptInputToolsProps & import('react').RefAttributes<HTMLDivElement>>;
45
45
  type PromptInputButtonProps = ComponentProps<typeof InputGroupButton>;
46
46
  declare const PromptInputButton: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import('@base-ui/react').ButtonProps & import('class-variance-authority').VariantProps<(props?: ({
47
- variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
47
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
48
48
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
49
49
  } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "size"> & import('class-variance-authority').VariantProps<(props?: ({
50
50
  size?: "sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined;