@arcadeai/design-system 3.37.0 → 3.38.0
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/ui/molecules/command-bar.d.ts +8 -1
- package/dist/components/ui/molecules/command-bar.d.ts.map +1 -1
- package/dist/components/ui/molecules/command-bar.js +24 -17
- package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
- package/dist/components/ui/molecules/prompt-input.js +57 -45
- package/dist/components/ui/molecules/steps-progress.d.ts +4 -0
- package/dist/components/ui/molecules/steps-progress.d.ts.map +1 -1
- package/dist/components/ui/molecules/steps-progress.js +154 -45
- package/dist/components/ui/molecules/suggestion-card.d.ts +2 -2
- package/dist/components/ui/molecules/suggestion-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/suggestion-card.js +86 -49
- package/dist/components/ui/molecules/tool-authorization.js +5 -5
- package/dist/components/ui/templates/chat-template.d.ts.map +1 -1
- package/dist/components/ui/templates/chat-template.js +53 -50
- package/package.json +1 -1
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
type CommandBarProps = {
|
|
2
2
|
command: string;
|
|
3
3
|
className?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Called when content is copied from the command area.
|
|
6
|
+
* `source` is `"copy_button"` for button clicks (via navigator.clipboard)
|
|
7
|
+
* and `"clipboard"` for keyboard/menu copies (DOM copy event).
|
|
8
|
+
* The two paths are mutually exclusive — no double-counting occurs.
|
|
9
|
+
*/
|
|
10
|
+
onCopy?: (source: "copy_button" | "clipboard") => void;
|
|
4
11
|
};
|
|
5
|
-
export declare function CommandBar({ command, className }: CommandBarProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function CommandBar({ command, className, onCopy }: CommandBarProps): import("react/jsx-runtime").JSX.Element;
|
|
6
13
|
export {};
|
|
7
14
|
//# sourceMappingURL=command-bar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-bar.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/command-bar.tsx"],"names":[],"mappings":"AAKA,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"command-bar.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/command-bar.tsx"],"names":[],"mappings":"AAKA,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,GAAG,WAAW,KAAK,IAAI,CAAC;CACxD,CAAC;AAEF,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,eAAe,2CA8BzE"}
|
|
@@ -1,25 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { w as
|
|
3
|
-
import { CopyButton as
|
|
4
|
-
import { SHIKI_THEMES as
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { w as l } from "../../../web-BwFNdl01.js";
|
|
3
|
+
import { CopyButton as s } from "../atoms/copy-button.js";
|
|
4
|
+
import { SHIKI_THEMES as n } from "../../../lib/shiki-themes.js";
|
|
5
5
|
import { cn as i } from "../../../lib/utils.js";
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
6
|
+
function c({ command: t, className: r, onCopy: o }) {
|
|
7
|
+
return /* @__PURE__ */ a(
|
|
8
8
|
"div",
|
|
9
9
|
{
|
|
10
10
|
className: i("relative overflow-hidden rounded-md border", r),
|
|
11
11
|
children: [
|
|
12
|
-
/* @__PURE__ */ e(
|
|
13
|
-
|
|
12
|
+
/* @__PURE__ */ e(
|
|
13
|
+
"div",
|
|
14
14
|
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
className: "overflow-x-auto text-sm [&_.shiki]:py-3 [&_.shiki]:pr-14 [&_.shiki]:pl-10",
|
|
16
|
+
onCopy: () => o?.("clipboard"),
|
|
17
|
+
children: /* @__PURE__ */ e(
|
|
18
|
+
l,
|
|
19
|
+
{
|
|
20
|
+
addDefaultStyles: !1,
|
|
21
|
+
defaultColor: !1,
|
|
22
|
+
language: "shellscript",
|
|
23
|
+
showLanguage: !1,
|
|
24
|
+
theme: n,
|
|
25
|
+
children: t
|
|
26
|
+
}
|
|
27
|
+
)
|
|
21
28
|
}
|
|
22
|
-
)
|
|
29
|
+
),
|
|
23
30
|
/* @__PURE__ */ e(
|
|
24
31
|
"span",
|
|
25
32
|
{
|
|
@@ -28,11 +35,11 @@ function u({ command: t, className: r }) {
|
|
|
28
35
|
children: "$"
|
|
29
36
|
}
|
|
30
37
|
),
|
|
31
|
-
/* @__PURE__ */ e("div", { className: "absolute top-1/2 right-3 -translate-y-1/2", children: /* @__PURE__ */ e(
|
|
38
|
+
/* @__PURE__ */ e("div", { className: "absolute top-1/2 right-3 -translate-y-1/2", children: /* @__PURE__ */ e(s, { content: t, onCopy: () => o?.("copy_button") }) })
|
|
32
39
|
]
|
|
33
40
|
}
|
|
34
41
|
);
|
|
35
42
|
}
|
|
36
43
|
export {
|
|
37
|
-
|
|
44
|
+
c as CommandBar
|
|
38
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-input.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/prompt-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EACL,OAAO,EAIR,MAAM,+BAA+B,CAAC;AA6BvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEhC,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,SAAiB,EACjB,SAAe,EACf,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,OAAO,EACP,GAAG,KAAK,EACT,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"prompt-input.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/prompt-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EACL,OAAO,EAIR,MAAM,+BAA+B,CAAC;AA6BvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEhC,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,SAAiB,EACjB,SAAe,EACf,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,OAAO,EACP,GAAG,KAAK,EACT,EAAE,gBAAgB,2CA8ClB;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE1C,iBAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,SAAS,EACT,eAAuB,EACvB,GAAG,KAAK,EACT,EAAE,wBAAwB,2CAqE1B;AAED,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAElE,iBAAS,kBAAkB,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAUzB;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;CAC5C,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC;AAEzC,iBAAS,iBAAiB,CAAC,EACzB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,IAAY,EACZ,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAwBxB;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,GACpB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Textarea as
|
|
4
|
-
import { TooltipProvider as
|
|
1
|
+
import { jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import w, { createContext as _, useState as C, useRef as P, useLayoutEffect as k, useContext as T } from "react";
|
|
3
|
+
import { Textarea as H } from "../atoms/textarea.js";
|
|
4
|
+
import { TooltipProvider as I, Tooltip as R, TooltipTrigger as $, TooltipContent as D } from "../atoms/tooltip.js";
|
|
5
5
|
import { cn as x } from "../../../lib/utils.js";
|
|
6
6
|
const b = _({
|
|
7
7
|
isLoading: !1,
|
|
@@ -11,15 +11,15 @@ const b = _({
|
|
|
11
11
|
maxHeight: 240,
|
|
12
12
|
onSubmit: void 0,
|
|
13
13
|
disabled: !1,
|
|
14
|
-
textareaRef:
|
|
14
|
+
textareaRef: w.createRef()
|
|
15
15
|
});
|
|
16
16
|
function v() {
|
|
17
|
-
return
|
|
17
|
+
return T(b);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
className:
|
|
19
|
+
function E({
|
|
20
|
+
className: n,
|
|
21
21
|
isLoading: r = !1,
|
|
22
|
-
maxHeight:
|
|
22
|
+
maxHeight: o = 240,
|
|
23
23
|
value: s,
|
|
24
24
|
onValueChange: i,
|
|
25
25
|
onSubmit: l,
|
|
@@ -28,30 +28,31 @@ function V({
|
|
|
28
28
|
onClick: d,
|
|
29
29
|
...u
|
|
30
30
|
}) {
|
|
31
|
-
const [
|
|
32
|
-
m(
|
|
33
|
-
}, t = (
|
|
34
|
-
c ||
|
|
31
|
+
const [p, m] = C(s || ""), f = P(null), g = (h) => {
|
|
32
|
+
m(h), i?.(h);
|
|
33
|
+
}, t = (h) => {
|
|
34
|
+
c || f.current?.focus(), d?.(h);
|
|
35
35
|
};
|
|
36
|
-
return /* @__PURE__ */ a(
|
|
36
|
+
return /* @__PURE__ */ a(I, { children: /* @__PURE__ */ a(
|
|
37
37
|
b.Provider,
|
|
38
38
|
{
|
|
39
39
|
value: {
|
|
40
40
|
isLoading: r,
|
|
41
|
-
value: s ??
|
|
41
|
+
value: s ?? p,
|
|
42
42
|
setValue: i ?? g,
|
|
43
|
-
maxHeight:
|
|
43
|
+
maxHeight: o,
|
|
44
44
|
onSubmit: l,
|
|
45
45
|
disabled: c,
|
|
46
|
-
textareaRef:
|
|
46
|
+
textareaRef: f
|
|
47
47
|
},
|
|
48
48
|
children: /* @__PURE__ */ a(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
className: x(
|
|
52
52
|
"cursor-text rounded-lg border border-input bg-background p-2 shadow-xs transition-[box-shadow,border-color] focus-within:border focus-within:border-muted-foreground focus-within:shadow-[0_0_4px_color-mix(in_oklch,var(--ring)_4%,transparent)] dark:focus-within:shadow-[0_0_4px_color-mix(in_oklch,var(--ring)_8%,transparent)]",
|
|
53
|
-
|
|
53
|
+
n
|
|
54
54
|
),
|
|
55
|
+
"data-slot": "prompt-input",
|
|
55
56
|
onClick: t,
|
|
56
57
|
...u,
|
|
57
58
|
children: e
|
|
@@ -60,36 +61,37 @@ function V({
|
|
|
60
61
|
}
|
|
61
62
|
) });
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
-
className:
|
|
64
|
+
function L({
|
|
65
|
+
className: n,
|
|
65
66
|
onKeyDown: r,
|
|
66
|
-
disableAutosize:
|
|
67
|
+
disableAutosize: o = !1,
|
|
67
68
|
...s
|
|
68
69
|
}) {
|
|
69
|
-
const { value: i, setValue: l, maxHeight: e, onSubmit: c, disabled: d, textareaRef: u } = v(),
|
|
70
|
-
!t ||
|
|
70
|
+
const { value: i, setValue: l, maxHeight: e, onSubmit: c, disabled: d, textareaRef: u } = v(), p = (t) => {
|
|
71
|
+
!t || o || (t.style.height = "auto", typeof e == "number" ? t.style.height = `${Math.min(t.scrollHeight, e)}px` : t.style.height = `min(${t.scrollHeight}px, ${e})`);
|
|
71
72
|
}, m = (t) => {
|
|
72
|
-
u.current = t,
|
|
73
|
+
u.current = t, p(t);
|
|
73
74
|
};
|
|
74
|
-
|
|
75
|
-
if (!u.current ||
|
|
75
|
+
k(() => {
|
|
76
|
+
if (!u.current || o)
|
|
76
77
|
return;
|
|
77
78
|
const t = u.current;
|
|
78
79
|
t.style.height = "auto", typeof e == "number" ? t.style.height = `${Math.min(t.scrollHeight, e)}px` : t.style.height = `min(${t.scrollHeight}px, ${e})`;
|
|
79
|
-
}, [i, e,
|
|
80
|
-
const
|
|
81
|
-
|
|
80
|
+
}, [i, e, o]);
|
|
81
|
+
const f = (t) => {
|
|
82
|
+
p(t.target), l(t.target.value);
|
|
82
83
|
}, g = (t) => {
|
|
83
84
|
t.key === "Enter" && !t.shiftKey && (t.preventDefault(), d || c?.()), r?.(t);
|
|
84
85
|
};
|
|
85
86
|
return /* @__PURE__ */ a(
|
|
86
|
-
|
|
87
|
+
H,
|
|
87
88
|
{
|
|
88
89
|
className: x(
|
|
89
|
-
"min-h-[
|
|
90
|
-
|
|
90
|
+
"min-h-[56px] w-full resize-none border-none bg-transparent text-foreground shadow-none outline-none focus-visible:ring-0 focus-visible:ring-offset-0 dark:bg-transparent",
|
|
91
|
+
n
|
|
91
92
|
),
|
|
92
|
-
|
|
93
|
+
"data-slot": "prompt-input-textarea",
|
|
94
|
+
onChange: f,
|
|
93
95
|
onKeyDown: g,
|
|
94
96
|
ref: m,
|
|
95
97
|
rows: 1,
|
|
@@ -98,38 +100,48 @@ function E({
|
|
|
98
100
|
}
|
|
99
101
|
);
|
|
100
102
|
}
|
|
101
|
-
function
|
|
102
|
-
children:
|
|
103
|
+
function M({
|
|
104
|
+
children: n,
|
|
103
105
|
className: r,
|
|
104
|
-
...
|
|
106
|
+
...o
|
|
105
107
|
}) {
|
|
106
|
-
return /* @__PURE__ */ a(
|
|
108
|
+
return /* @__PURE__ */ a(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
className: x("flex items-center gap-2", r),
|
|
112
|
+
"data-slot": "prompt-input-actions",
|
|
113
|
+
...o,
|
|
114
|
+
children: n
|
|
115
|
+
}
|
|
116
|
+
);
|
|
107
117
|
}
|
|
108
118
|
function q({
|
|
109
|
-
tooltip:
|
|
119
|
+
tooltip: n,
|
|
110
120
|
children: r,
|
|
111
|
-
className:
|
|
121
|
+
className: o,
|
|
112
122
|
side: s = "top",
|
|
113
123
|
...i
|
|
114
124
|
}) {
|
|
115
125
|
const { disabled: l } = v();
|
|
116
|
-
return /* @__PURE__ */
|
|
126
|
+
return /* @__PURE__ */ y(R, { ...i, children: [
|
|
117
127
|
/* @__PURE__ */ a(
|
|
118
128
|
$,
|
|
119
129
|
{
|
|
120
130
|
asChild: !0,
|
|
121
131
|
disabled: l,
|
|
122
132
|
onClick: (e) => e.stopPropagation(),
|
|
123
|
-
|
|
133
|
+
onPointerDown: (e) => {
|
|
134
|
+
e.pointerType !== "touch" && e.preventDefault();
|
|
135
|
+
},
|
|
124
136
|
children: r
|
|
125
137
|
}
|
|
126
138
|
),
|
|
127
|
-
/* @__PURE__ */ a(D, { className:
|
|
139
|
+
/* @__PURE__ */ a(D, { className: o, side: s, children: n })
|
|
128
140
|
] });
|
|
129
141
|
}
|
|
130
142
|
export {
|
|
131
|
-
|
|
143
|
+
E as PromptInput,
|
|
132
144
|
q as PromptInputAction,
|
|
133
|
-
|
|
134
|
-
|
|
145
|
+
M as PromptInputActions,
|
|
146
|
+
L as PromptInputTextarea
|
|
135
147
|
};
|
|
@@ -10,5 +10,9 @@ export type StepsProgressProps = {
|
|
|
10
10
|
steps: Step[];
|
|
11
11
|
onDismiss?: () => void;
|
|
12
12
|
} & React.ComponentProps<"section">;
|
|
13
|
+
export declare function getMobileIndexForSteps(steps: Step[], options?: {
|
|
14
|
+
currentIndex?: number;
|
|
15
|
+
isDismissible?: boolean;
|
|
16
|
+
}): number;
|
|
13
17
|
export declare function StepsProgress({ steps, onDismiss, className, ...props }: StepsProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
14
18
|
//# sourceMappingURL=steps-progress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps-progress.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/steps-progress.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"steps-progress.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/steps-progress.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAMpC,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9D,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,GAAG,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;AAoDpC,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,IAAI,EAAE,EACb,OAAO,CAAC,EAAE;IACR,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,UAwBF;AAuBD,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAuIpB"}
|
|
@@ -1,89 +1,198 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { X as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronLeft as w, X as g, ChevronRight as y } from "lucide-react";
|
|
3
|
+
import { useState as C, useLayoutEffect as S } from "react";
|
|
4
|
+
import { Button as p } from "../atoms/button.js";
|
|
5
|
+
import { StepIndicator as j } from "../atoms/step-indicator.js";
|
|
6
|
+
import { cn as c } from "../../../lib/utils.js";
|
|
7
|
+
function M({ step: e, stepNumber: t }) {
|
|
8
|
+
const r = /* @__PURE__ */ n(
|
|
9
|
+
j,
|
|
9
10
|
{
|
|
11
|
+
className: "min-w-0",
|
|
10
12
|
label: e.label,
|
|
11
13
|
status: e.status,
|
|
12
14
|
stepNumber: t
|
|
13
15
|
}
|
|
14
16
|
);
|
|
15
|
-
return e.onClick ? /* @__PURE__ */
|
|
17
|
+
return e.onClick ? /* @__PURE__ */ n(
|
|
16
18
|
"button",
|
|
17
19
|
{
|
|
18
20
|
className: "flex min-w-0 flex-1 cursor-pointer items-center justify-center",
|
|
19
21
|
onClick: e.onClick,
|
|
20
22
|
type: "button",
|
|
21
|
-
children:
|
|
23
|
+
children: r
|
|
22
24
|
}
|
|
23
|
-
) : /* @__PURE__ */
|
|
25
|
+
) : /* @__PURE__ */ n("span", { className: "flex min-w-0 flex-1 items-center justify-center", children: r });
|
|
26
|
+
}
|
|
27
|
+
function v(e) {
|
|
28
|
+
return e.length - 1;
|
|
29
|
+
}
|
|
30
|
+
function L(e) {
|
|
31
|
+
return e.findIndex((t) => t.status === "active");
|
|
32
|
+
}
|
|
33
|
+
function N(e, t) {
|
|
34
|
+
return e.length === 0 ? t ? 0 : -1 : t ? e.length : v(e);
|
|
35
|
+
}
|
|
36
|
+
function f(e, t) {
|
|
37
|
+
const { currentIndex: r, isDismissible: l = !1 } = t ?? {}, i = L(e);
|
|
38
|
+
if (i >= 0)
|
|
39
|
+
return i;
|
|
40
|
+
if (e.length === 0)
|
|
41
|
+
return l ? 0 : -1;
|
|
42
|
+
const d = N(e, l);
|
|
43
|
+
return r !== void 0 && r >= 0 && r <= d ? r : v(e);
|
|
44
|
+
}
|
|
45
|
+
function z(e, t, r) {
|
|
46
|
+
const l = N(e, r);
|
|
47
|
+
return t >= 0 && t <= l ? t : f(e, {
|
|
48
|
+
currentIndex: t,
|
|
49
|
+
isDismissible: r
|
|
50
|
+
});
|
|
24
51
|
}
|
|
25
|
-
function
|
|
52
|
+
function B(e) {
|
|
53
|
+
return `calc(${(e - 1) / e} * (100% - 4.25rem) + 0.75rem)`;
|
|
54
|
+
}
|
|
55
|
+
function F({
|
|
26
56
|
steps: e,
|
|
27
57
|
onDismiss: t,
|
|
28
|
-
className:
|
|
29
|
-
...
|
|
58
|
+
className: r,
|
|
59
|
+
...l
|
|
30
60
|
}) {
|
|
31
|
-
const
|
|
32
|
-
|
|
61
|
+
const i = !!t, [d, u] = C(
|
|
62
|
+
() => f(e, { isDismissible: i })
|
|
63
|
+
);
|
|
64
|
+
S(() => {
|
|
65
|
+
u(
|
|
66
|
+
(a) => f(e, {
|
|
67
|
+
currentIndex: a,
|
|
68
|
+
isDismissible: i
|
|
69
|
+
})
|
|
70
|
+
);
|
|
71
|
+
}, [i, e]);
|
|
72
|
+
const o = z(
|
|
73
|
+
e,
|
|
74
|
+
d,
|
|
75
|
+
i
|
|
76
|
+
), k = e[o], h = e.length, b = o > 0, x = i ? o < h : o < e.length - 1, I = i && e.at(-1)?.status === "active";
|
|
77
|
+
return /* @__PURE__ */ s(
|
|
33
78
|
"section",
|
|
34
79
|
{
|
|
35
80
|
"aria-label": "Steps progress",
|
|
36
|
-
className:
|
|
81
|
+
className: c(
|
|
37
82
|
"relative h-14 overflow-hidden border border-border bg-card text-foreground",
|
|
38
|
-
|
|
83
|
+
r
|
|
39
84
|
),
|
|
40
|
-
...
|
|
85
|
+
...l,
|
|
41
86
|
children: [
|
|
42
|
-
|
|
87
|
+
I && /* @__PURE__ */ n(
|
|
88
|
+
"span",
|
|
89
|
+
{
|
|
90
|
+
"aria-hidden": "true",
|
|
91
|
+
className: "pointer-events-none absolute top-0 right-0 z-10 hidden h-0.5 bg-foreground sm:block",
|
|
92
|
+
style: { left: B(e.length) }
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
k?.status === "active" && /* @__PURE__ */ n(
|
|
43
96
|
"span",
|
|
44
97
|
{
|
|
45
98
|
"aria-hidden": "true",
|
|
46
|
-
className: "pointer-events-none absolute
|
|
47
|
-
style: { left: c }
|
|
99
|
+
className: "pointer-events-none absolute inset-x-0 top-0 z-20 h-0.5 bg-foreground sm:hidden"
|
|
48
100
|
}
|
|
49
101
|
),
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
"
|
|
102
|
+
/* @__PURE__ */ s("div", { className: "relative z-10 flex h-full items-center sm:gap-3 sm:px-3", children: [
|
|
103
|
+
/* @__PURE__ */ n(
|
|
104
|
+
"button",
|
|
53
105
|
{
|
|
54
|
-
"aria-
|
|
55
|
-
className:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
106
|
+
"aria-label": "Go to previous step",
|
|
107
|
+
className: c(
|
|
108
|
+
"flex h-full shrink-0 items-center px-2 text-muted-foreground sm:hidden",
|
|
109
|
+
!b && "pointer-events-none invisible"
|
|
110
|
+
),
|
|
111
|
+
onClick: () => u(o - 1),
|
|
112
|
+
tabIndex: b ? 0 : -1,
|
|
113
|
+
type: "button",
|
|
114
|
+
children: /* @__PURE__ */ n(w, { className: "h-4 w-4" })
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ s("ol", { className: "flex h-full min-w-0 flex-1 items-center gap-0", children: [
|
|
118
|
+
e.map((a, m) => /* @__PURE__ */ s(
|
|
119
|
+
"li",
|
|
120
|
+
{
|
|
121
|
+
"aria-current": a.status === "active" ? "step" : void 0,
|
|
122
|
+
className: c(
|
|
123
|
+
"relative isolate flex h-full min-w-0 flex-1 items-center justify-center px-2 py-4 sm:px-3",
|
|
124
|
+
m !== o && "hidden sm:flex"
|
|
125
|
+
),
|
|
126
|
+
"data-status": a.status,
|
|
127
|
+
children: [
|
|
128
|
+
m > 0 && /* @__PURE__ */ n(
|
|
129
|
+
"span",
|
|
130
|
+
{
|
|
131
|
+
"aria-hidden": "true",
|
|
132
|
+
className: "absolute left-0 hidden h-full w-px bg-border sm:block"
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
/* @__PURE__ */ n(M, { step: a, stepNumber: m + 1 })
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
a.id
|
|
139
|
+
)),
|
|
140
|
+
t && /* @__PURE__ */ n(
|
|
141
|
+
"li",
|
|
142
|
+
{
|
|
143
|
+
className: c(
|
|
144
|
+
"relative isolate flex h-full flex-1 items-center justify-center sm:hidden",
|
|
145
|
+
o !== h && "hidden"
|
|
146
|
+
),
|
|
147
|
+
children: /* @__PURE__ */ s(
|
|
148
|
+
p,
|
|
60
149
|
{
|
|
61
|
-
"aria-
|
|
62
|
-
className: "
|
|
150
|
+
"aria-label": "Dismiss steps progress",
|
|
151
|
+
className: "h-8 gap-1.5 border border-border px-3 text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
152
|
+
onClick: t,
|
|
153
|
+
type: "button",
|
|
154
|
+
variant: "ghost",
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ n(g, { className: "h-4 w-4" }),
|
|
157
|
+
/* @__PURE__ */ n("span", { className: "text-sm", children: "Dismiss" })
|
|
158
|
+
]
|
|
63
159
|
}
|
|
64
|
-
)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
160
|
+
)
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
] }),
|
|
164
|
+
/* @__PURE__ */ n(
|
|
165
|
+
"button",
|
|
166
|
+
{
|
|
167
|
+
"aria-label": "Go to next step",
|
|
168
|
+
className: c(
|
|
169
|
+
"flex h-full shrink-0 items-center px-2 text-muted-foreground sm:hidden",
|
|
170
|
+
!x && "pointer-events-none invisible"
|
|
171
|
+
),
|
|
172
|
+
onClick: () => u(o + 1),
|
|
173
|
+
tabIndex: x ? 0 : -1,
|
|
174
|
+
type: "button",
|
|
175
|
+
children: /* @__PURE__ */ n(y, { className: "h-4 w-4" })
|
|
176
|
+
}
|
|
177
|
+
),
|
|
178
|
+
t && /* @__PURE__ */ n(
|
|
179
|
+
p,
|
|
72
180
|
{
|
|
73
181
|
"aria-label": "Dismiss steps progress",
|
|
74
|
-
className: "h-8 w-8 shrink-0 border border-border text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
182
|
+
className: "hidden h-8 w-8 shrink-0 border border-border text-muted-foreground hover:bg-muted hover:text-foreground sm:flex",
|
|
75
183
|
onClick: t,
|
|
76
184
|
size: "icon",
|
|
77
185
|
type: "button",
|
|
78
186
|
variant: "ghost",
|
|
79
|
-
children: /* @__PURE__ */
|
|
187
|
+
children: /* @__PURE__ */ n(g, { className: "h-4 w-4" })
|
|
80
188
|
}
|
|
81
|
-
)
|
|
189
|
+
)
|
|
82
190
|
] })
|
|
83
191
|
]
|
|
84
192
|
}
|
|
85
193
|
);
|
|
86
194
|
}
|
|
87
195
|
export {
|
|
88
|
-
|
|
196
|
+
F as StepsProgress,
|
|
197
|
+
f as getMobileIndexForSteps
|
|
89
198
|
};
|
|
@@ -7,7 +7,7 @@ export type SuggestionCardProps = {
|
|
|
7
7
|
/** Secondary descriptive text */
|
|
8
8
|
subtitle: string;
|
|
9
9
|
} & React.ComponentProps<"button">;
|
|
10
|
-
export declare function SuggestionCard({ className, icon, title, subtitle, ...props }: SuggestionCardProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function SuggestionCard({ className, icon, title, subtitle, style, ...props }: SuggestionCardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export type SuggestionCardSkeletonProps = React.ComponentProps<"div">;
|
|
12
|
-
export declare function SuggestionCardSkeleton({ className, ...props }: SuggestionCardSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function SuggestionCardSkeleton({ className, style, ...props }: SuggestionCardSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
//# sourceMappingURL=suggestion-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion-card.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/suggestion-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAMpC,MAAM,MAAM,mBAAmB,GAAG;IAChC,mDAAmD;IACnD,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAEnC,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"suggestion-card.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/suggestion-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAMpC,MAAM,MAAM,mBAAmB,GAAG;IAChC,mDAAmD;IACnD,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAEnC,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACT,EAAE,mBAAmB,2CA4CrB;AAID,MAAM,MAAM,2BAA2B,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEtE,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,2BAA2B,2CA+B7B"}
|
|
@@ -1,79 +1,116 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Skeleton as
|
|
3
|
-
import { cn as
|
|
4
|
-
function
|
|
5
|
-
className:
|
|
6
|
-
icon:
|
|
7
|
-
title:
|
|
8
|
-
subtitle:
|
|
9
|
-
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Skeleton as d } from "../atoms/skeleton.js";
|
|
3
|
+
import { cn as l } from "../../../lib/utils.js";
|
|
4
|
+
function u({
|
|
5
|
+
className: r,
|
|
6
|
+
icon: s,
|
|
7
|
+
title: a,
|
|
8
|
+
subtitle: o,
|
|
9
|
+
style: n,
|
|
10
|
+
...i
|
|
10
11
|
}) {
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ t(
|
|
12
13
|
"button",
|
|
13
14
|
{
|
|
14
|
-
className:
|
|
15
|
-
"flex w-full cursor-pointer flex-col gap-
|
|
16
|
-
|
|
15
|
+
className: l(
|
|
16
|
+
"flex w-full cursor-pointer flex-col gap-1.5 rounded-2xl border bg-card text-left shadow-xs transition-all hover:-translate-y-0.5 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
17
|
+
r
|
|
17
18
|
),
|
|
18
19
|
"data-slot": "suggestion-card",
|
|
20
|
+
style: {
|
|
21
|
+
padding: "clamp(0.75rem, 1.6vh, 1rem)",
|
|
22
|
+
...n
|
|
23
|
+
},
|
|
19
24
|
type: "button",
|
|
20
|
-
...
|
|
25
|
+
...i,
|
|
21
26
|
children: [
|
|
22
27
|
/* @__PURE__ */ e(
|
|
23
28
|
"div",
|
|
24
29
|
{
|
|
25
|
-
className: "flex
|
|
30
|
+
className: "flex items-center justify-center rounded-xl border bg-muted shadow-xs",
|
|
26
31
|
"data-slot": "suggestion-card-icon",
|
|
27
|
-
|
|
32
|
+
style: {
|
|
33
|
+
width: "clamp(2rem, 2.8vh, 2.5rem)",
|
|
34
|
+
height: "clamp(2rem, 2.8vh, 2.5rem)"
|
|
35
|
+
},
|
|
36
|
+
children: s
|
|
28
37
|
}
|
|
29
38
|
),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
/* @__PURE__ */ t(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
className: "space-y-1.5",
|
|
43
|
+
style: { paddingTop: "clamp(0.25rem, 0.8vh, 0.5rem)" },
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ e(
|
|
46
|
+
"h3",
|
|
47
|
+
{
|
|
48
|
+
className: "font-semibold text-card-foreground text-sm leading-tight",
|
|
49
|
+
"data-slot": "suggestion-card-title",
|
|
50
|
+
children: a
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ e(
|
|
54
|
+
"p",
|
|
55
|
+
{
|
|
56
|
+
className: "text-muted-foreground text-xs leading-snug",
|
|
57
|
+
"data-slot": "suggestion-card-subtitle",
|
|
58
|
+
children: o
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
)
|
|
48
64
|
]
|
|
49
65
|
}
|
|
50
66
|
);
|
|
51
67
|
}
|
|
52
|
-
function
|
|
53
|
-
className:
|
|
54
|
-
|
|
68
|
+
function h({
|
|
69
|
+
className: r,
|
|
70
|
+
style: s,
|
|
71
|
+
...a
|
|
55
72
|
}) {
|
|
56
|
-
return /* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ t(
|
|
57
74
|
"div",
|
|
58
75
|
{
|
|
59
76
|
"aria-hidden": "true",
|
|
60
|
-
className:
|
|
61
|
-
"flex w-full flex-col gap-
|
|
62
|
-
|
|
77
|
+
className: l(
|
|
78
|
+
"flex w-full flex-col gap-1.5 rounded-2xl border bg-card shadow-xs",
|
|
79
|
+
r
|
|
63
80
|
),
|
|
64
81
|
"data-slot": "suggestion-card-skeleton",
|
|
65
|
-
|
|
82
|
+
style: {
|
|
83
|
+
padding: "clamp(0.75rem, 1.6vh, 1rem)",
|
|
84
|
+
...s
|
|
85
|
+
},
|
|
86
|
+
...a,
|
|
66
87
|
children: [
|
|
67
|
-
/* @__PURE__ */ e(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
88
|
+
/* @__PURE__ */ e(
|
|
89
|
+
d,
|
|
90
|
+
{
|
|
91
|
+
className: "rounded-xl",
|
|
92
|
+
style: {
|
|
93
|
+
width: "clamp(2rem, 2.8vh, 2.5rem)",
|
|
94
|
+
height: "clamp(2rem, 2.8vh, 2.5rem)"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ t(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
className: "space-y-1.5",
|
|
102
|
+
style: { paddingTop: "clamp(0.25rem, 0.8vh, 0.5rem)" },
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ e(d, { className: "h-4 w-3/4 rounded" }),
|
|
105
|
+
/* @__PURE__ */ e(d, { className: "h-3 w-1/2 rounded" })
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
)
|
|
72
109
|
]
|
|
73
110
|
}
|
|
74
111
|
);
|
|
75
112
|
}
|
|
76
113
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
114
|
+
u as SuggestionCard,
|
|
115
|
+
h as SuggestionCardSkeleton
|
|
79
116
|
};
|
|
@@ -3,7 +3,7 @@ import { c as d } from "../../../index-UgeK3A8s.js";
|
|
|
3
3
|
import { Card as m, CardContent as c, CardHeader as x } from "../atoms/card.js";
|
|
4
4
|
import { JsonHighlight as f } from "../atoms/json-highlight.js";
|
|
5
5
|
import { cn as o } from "../../../lib/utils.js";
|
|
6
|
-
const h = d("gap-0 py-0", {
|
|
6
|
+
const h = d("my-2 gap-0 py-0", {
|
|
7
7
|
variants: {
|
|
8
8
|
status: {
|
|
9
9
|
loading: "",
|
|
@@ -96,7 +96,7 @@ function T({
|
|
|
96
96
|
}
|
|
97
97
|
) });
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function y({
|
|
100
100
|
className: e,
|
|
101
101
|
...a
|
|
102
102
|
}) {
|
|
@@ -109,7 +109,7 @@ function j({
|
|
|
109
109
|
}
|
|
110
110
|
) });
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function j({
|
|
113
113
|
className: e,
|
|
114
114
|
status: a,
|
|
115
115
|
...r
|
|
@@ -154,7 +154,7 @@ function H({
|
|
|
154
154
|
export {
|
|
155
155
|
C as ToolAuthorization,
|
|
156
156
|
H as ToolAuthorizationArgs,
|
|
157
|
-
|
|
157
|
+
y as ToolAuthorizationContent,
|
|
158
158
|
T as ToolAuthorizationHeader,
|
|
159
|
-
|
|
159
|
+
j as ToolAuthorizationMessage
|
|
160
160
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-template.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/templates/chat-template.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAE5D,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAWtE;AAID,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAErE,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAWzB;AAID,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvE,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,4BAA4B,2CAQ9B;AAID,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEhE,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,qBAAqB,2CAWvB;AAID,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAErE,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAWzB;AAID,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpE,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,yBAAyB,2CAW3B;AAID,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AAExE,wBAAgB,yBAAyB,CAAC,EACxC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,8BAA8B,2CAWhC;AAID,MAAM,MAAM,iCAAiC,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AAE3E,wBAAgB,4BAA4B,CAAC,EAC3C,SAAS,EACT,GAAG,KAAK,EACT,EAAE,iCAAiC,2CAWnC;AAID,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvE,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,4BAA4B,
|
|
1
|
+
{"version":3,"file":"chat-template.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/templates/chat-template.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAE5D,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAWtE;AAID,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAErE,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAWzB;AAID,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvE,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,4BAA4B,2CAQ9B;AAID,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEhE,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,qBAAqB,2CAWvB;AAID,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAErE,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAWzB;AAID,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpE,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,yBAAyB,2CAW3B;AAID,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AAExE,wBAAgB,yBAAyB,CAAC,EACxC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,8BAA8B,2CAWhC;AAID,MAAM,MAAM,iCAAiC,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AAE3E,wBAAgB,4BAA4B,CAAC,EAC3C,SAAS,EACT,GAAG,KAAK,EACT,EAAE,iCAAiC,2CAWnC;AAID,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvE,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,4BAA4B,2CAW9B"}
|
|
@@ -1,148 +1,151 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { cn as l } from "../../../lib/utils.js";
|
|
3
|
-
function m({ className:
|
|
3
|
+
function m({ className: e, ...t }) {
|
|
4
4
|
return /* @__PURE__ */ a(
|
|
5
5
|
"div",
|
|
6
6
|
{
|
|
7
7
|
className: l(
|
|
8
8
|
"relative flex h-dvh min-w-0 flex-col bg-background",
|
|
9
|
-
|
|
9
|
+
e
|
|
10
10
|
),
|
|
11
11
|
"data-slot": "chat-template",
|
|
12
|
-
...
|
|
12
|
+
...t
|
|
13
13
|
}
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
function n({
|
|
17
|
-
className:
|
|
18
|
-
...
|
|
17
|
+
className: e,
|
|
18
|
+
...t
|
|
19
19
|
}) {
|
|
20
20
|
return /* @__PURE__ */ a(
|
|
21
21
|
"header",
|
|
22
22
|
{
|
|
23
23
|
className: l(
|
|
24
24
|
"sticky top-0 z-10 flex items-center gap-2 bg-background px-2 py-1.5",
|
|
25
|
-
|
|
25
|
+
e
|
|
26
26
|
),
|
|
27
27
|
"data-slot": "chat-template-header",
|
|
28
|
-
...
|
|
28
|
+
...t
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
className:
|
|
34
|
-
...
|
|
32
|
+
function c({
|
|
33
|
+
className: e,
|
|
34
|
+
...t
|
|
35
35
|
}) {
|
|
36
36
|
return /* @__PURE__ */ a(
|
|
37
37
|
"div",
|
|
38
38
|
{
|
|
39
|
-
className: l("flex items-center gap-2",
|
|
39
|
+
className: l("flex items-center gap-2", e),
|
|
40
40
|
"data-slot": "chat-template-header-group",
|
|
41
|
-
...
|
|
41
|
+
...t
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
className:
|
|
47
|
-
...
|
|
45
|
+
function p({
|
|
46
|
+
className: e,
|
|
47
|
+
...t
|
|
48
48
|
}) {
|
|
49
49
|
return /* @__PURE__ */ a(
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
52
|
className: l(
|
|
53
53
|
"flex min-w-0 flex-1 flex-col gap-6 overflow-y-auto pt-4",
|
|
54
|
-
|
|
54
|
+
e
|
|
55
55
|
),
|
|
56
56
|
"data-slot": "chat-template-body",
|
|
57
|
-
...
|
|
57
|
+
...t
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
className:
|
|
63
|
-
...
|
|
61
|
+
function i({
|
|
62
|
+
className: e,
|
|
63
|
+
...t
|
|
64
64
|
}) {
|
|
65
65
|
return /* @__PURE__ */ a(
|
|
66
66
|
"footer",
|
|
67
67
|
{
|
|
68
68
|
className: l(
|
|
69
69
|
"mx-auto flex w-full flex-col gap-1.5 px-4 pt-2 pb-4 md:max-w-3xl md:pb-6",
|
|
70
|
-
|
|
70
|
+
e
|
|
71
71
|
),
|
|
72
72
|
"data-slot": "chat-template-footer",
|
|
73
|
-
...
|
|
73
|
+
...t
|
|
74
74
|
}
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
77
|
function d({
|
|
78
|
-
className:
|
|
79
|
-
...
|
|
78
|
+
className: e,
|
|
79
|
+
...t
|
|
80
80
|
}) {
|
|
81
81
|
return /* @__PURE__ */ a(
|
|
82
82
|
"div",
|
|
83
83
|
{
|
|
84
84
|
className: l(
|
|
85
|
-
"mx-auto mt-
|
|
86
|
-
|
|
85
|
+
"mx-auto mt-[clamp(0.75rem,5vh,4rem)] flex max-w-xl flex-col rounded-xl px-6 py-[clamp(1rem,2.5vh,1.5rem)] text-center leading-relaxed",
|
|
86
|
+
e
|
|
87
87
|
),
|
|
88
88
|
"data-slot": "chat-template-overview",
|
|
89
|
-
...
|
|
89
|
+
...t
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
className:
|
|
95
|
-
...
|
|
93
|
+
function s({
|
|
94
|
+
className: e,
|
|
95
|
+
...t
|
|
96
96
|
}) {
|
|
97
97
|
return /* @__PURE__ */ a(
|
|
98
98
|
"h1",
|
|
99
99
|
{
|
|
100
100
|
className: l(
|
|
101
|
-
"mb-
|
|
102
|
-
|
|
101
|
+
"mb-[clamp(0.5rem,1.5vh,1rem)] text-balance bg-linear-to-r from-foreground to-foreground/70 bg-clip-text font-bold font-serif text-[clamp(1.8rem,3.7vh,2.55rem)] text-transparent leading-tight tracking-wide",
|
|
102
|
+
e
|
|
103
103
|
),
|
|
104
104
|
"data-slot": "chat-template-overview-title",
|
|
105
|
-
...
|
|
105
|
+
...t
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
className:
|
|
111
|
-
...
|
|
109
|
+
function f({
|
|
110
|
+
className: e,
|
|
111
|
+
...t
|
|
112
112
|
}) {
|
|
113
113
|
return /* @__PURE__ */ a(
|
|
114
114
|
"h2",
|
|
115
115
|
{
|
|
116
116
|
className: l(
|
|
117
|
-
"mb-
|
|
118
|
-
|
|
117
|
+
"mb-[clamp(1rem,3.2vh,2.25rem)] text-balance bg-linear-to-r from-foreground/90 to-foreground/70 bg-clip-text font-medium text-[clamp(1.3rem,3.3vh,2.15rem)] text-transparent leading-tight",
|
|
118
|
+
e
|
|
119
119
|
),
|
|
120
120
|
"data-slot": "chat-template-overview-subtitle",
|
|
121
|
-
...
|
|
121
|
+
...t
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
className:
|
|
127
|
-
...
|
|
125
|
+
function u({
|
|
126
|
+
className: e,
|
|
127
|
+
...t
|
|
128
128
|
}) {
|
|
129
129
|
return /* @__PURE__ */ a(
|
|
130
130
|
"div",
|
|
131
131
|
{
|
|
132
|
-
className: l(
|
|
132
|
+
className: l(
|
|
133
|
+
"mb-2 grid w-full grid-cols-12 gap-3 pt-1 lg:gap-4",
|
|
134
|
+
e
|
|
135
|
+
),
|
|
133
136
|
"data-slot": "chat-template-suggestions",
|
|
134
|
-
...
|
|
137
|
+
...t
|
|
135
138
|
}
|
|
136
139
|
);
|
|
137
140
|
}
|
|
138
141
|
export {
|
|
139
142
|
m as ChatTemplate,
|
|
140
|
-
|
|
141
|
-
|
|
143
|
+
p as ChatTemplateBody,
|
|
144
|
+
i as ChatTemplateFooter,
|
|
142
145
|
n as ChatTemplateHeader,
|
|
143
|
-
|
|
146
|
+
c as ChatTemplateHeaderGroup,
|
|
144
147
|
d as ChatTemplateOverview,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
f as ChatTemplateOverviewSubtitle,
|
|
149
|
+
s as ChatTemplateOverviewTitle,
|
|
150
|
+
u as ChatTemplateSuggestions
|
|
148
151
|
};
|