@arcadeai/design-system 3.33.0 → 3.33.2
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/assets/icons/attio.js +6 -6
- package/dist/assets/icons/daytona.js +6 -6
- package/dist/assets/icons/math-toolkit.js +10 -0
- package/dist/components/index.js +431 -404
- package/dist/components/ui/atoms/command.js +288 -364
- package/dist/components/ui/atoms/copy-button.d.ts.map +1 -1
- package/dist/components/ui/atoms/copy-button.js +3 -2
- package/dist/components/ui/atoms/dropdown-menu.js +1 -1
- package/dist/components/ui/atoms/hover-card.js +1 -1
- package/dist/components/ui/atoms/icons/attio.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/attio.js +13 -25
- package/dist/components/ui/atoms/icons/daytona.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/daytona.js +9 -14
- package/dist/components/ui/atoms/icons/index.d.ts +1 -0
- package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/index.js +138 -136
- package/dist/components/ui/atoms/icons/math-toolkit.d.ts +4 -0
- package/dist/components/ui/atoms/icons/math-toolkit.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/math-toolkit.js +15 -0
- package/dist/components/ui/atoms/index.d.ts +1 -0
- package/dist/components/ui/atoms/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/index.js +295 -289
- package/dist/components/ui/atoms/markdown.js +1 -1
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/scroll-button.d.ts.map +1 -1
- package/dist/components/ui/atoms/scroll-button.js +34 -28
- package/dist/components/ui/atoms/select.js +1 -1
- package/dist/components/ui/atoms/step-indicator.d.ts +17 -0
- package/dist/components/ui/atoms/step-indicator.d.ts.map +1 -0
- package/dist/components/ui/atoms/step-indicator.js +151 -0
- package/dist/components/ui/atoms/tooltip.js +1 -1
- package/dist/components/ui/index.js +431 -404
- package/dist/components/ui/molecules/chat-message-list.d.ts +74 -0
- package/dist/components/ui/molecules/chat-message-list.d.ts.map +1 -0
- package/dist/components/ui/molecules/chat-message-list.js +121 -0
- package/dist/components/ui/molecules/index.d.ts +6 -0
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +29 -20
- package/dist/components/ui/molecules/message.js +1 -1
- package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
- package/dist/components/ui/molecules/prompt-input.js +42 -43
- package/dist/components/ui/molecules/requirement-badges.js +3 -3
- package/dist/components/ui/molecules/steps-progress.d.ts +13 -0
- package/dist/components/ui/molecules/steps-progress.d.ts.map +1 -0
- package/dist/components/ui/molecules/steps-progress.js +66 -0
- package/dist/components/ui/molecules/suggestion-card.d.ts +11 -0
- package/dist/components/ui/molecules/suggestion-card.d.ts.map +1 -0
- package/dist/components/ui/molecules/suggestion-card.js +53 -0
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/pages/chat-page.d.ts +75 -0
- package/dist/components/ui/pages/chat-page.d.ts.map +1 -0
- package/dist/components/ui/pages/chat-page.js +300 -0
- package/dist/components/ui/pages/index.d.ts +2 -0
- package/dist/components/ui/pages/index.d.ts.map +1 -1
- package/dist/components/ui/pages/index.js +2 -0
- package/dist/components/ui/templates/chat-template.d.ts +20 -0
- package/dist/components/ui/templates/chat-template.d.ts.map +1 -0
- package/dist/components/ui/templates/chat-template.js +148 -0
- package/dist/components/ui/templates/index.d.ts +2 -0
- package/dist/components/ui/templates/index.d.ts.map +1 -1
- package/dist/components/ui/templates/index.js +19 -9
- package/dist/highlighted-body-TPN3WLV5-DyOGcftJ.js +19 -0
- package/dist/index-BEZCAdXQ.js +1568 -0
- package/dist/main.js +461 -434
- package/dist/{markdown-ChximrBv.js → markdown-9KGBuupR.js} +6264 -6046
- package/dist/mermaid-O7DHMXV3-CUp9wvRi.js +4 -0
- package/dist/metadata/toolkit-icons.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.js +268 -259
- package/dist/metadata/toolkits.d.ts.map +1 -1
- package/dist/metadata/toolkits.js +80 -2
- package/dist/{toolkit-card-B0syFJQ6.js → toolkit-card-k8jio69G.js} +2 -2
- package/package.json +1 -1
- package/dist/highlighted-body-B3W2YXNL-D6XBJnwx.js +0 -19
- package/dist/index-DO05OIM5.js +0 -1545
- package/dist/mermaid-3ZIDBTTL-DtIP-JZq.js +0 -4
|
@@ -7,7 +7,7 @@ import { c as G } from "../../../index-DFZozV_h.js";
|
|
|
7
7
|
import { P as H, D as K } from "../../../index-DrFfdHac.js";
|
|
8
8
|
import { h as j, R as U, u as V, F as W } from "../../../index-CvA4FcaC.js";
|
|
9
9
|
import { u as Z } from "../../../index-Cv867SGx.js";
|
|
10
|
-
import { R as q, A as _, c as x, C as B, a as J } from "../../../index-
|
|
10
|
+
import { R as q, A as _, c as x, C as B, a as J } from "../../../index-BEZCAdXQ.js";
|
|
11
11
|
import { P as w } from "../../../index-BaLuVb4t.js";
|
|
12
12
|
import { P as b } from "../../../index-DLohNuco.js";
|
|
13
13
|
import { u as Q } from "../../../index-437EL2iq.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-button.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/scroll-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"scroll-button.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/scroll-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAU,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAQ3E,KAAK,iBAAiB,GAAG;IACvB,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC;IACzD,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;CACpD,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAEnC,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,OAAmB,EACnB,IAAW,EACX,GAAG,KAAK,EACT,EAAE,iBAAiB,2CA6BnB;AAED,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,33 +1,39 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronDown as s } from "lucide-react";
|
|
3
|
-
import { Button as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { Button as c } from "./button.js";
|
|
4
|
+
import { Tooltip as m, TooltipTrigger as p, TooltipContent as u } from "./tooltip.js";
|
|
5
|
+
import { cn as d } from "../../../lib/utils.js";
|
|
6
|
+
import { u as h } from "../../../StickToBottom-BGUuEI8O.js";
|
|
7
|
+
function y({
|
|
8
|
+
className: r,
|
|
9
|
+
variant: l = "outline",
|
|
10
|
+
size: n = "sm",
|
|
11
|
+
...e
|
|
11
12
|
}) {
|
|
12
|
-
const { isAtBottom:
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
const { isAtBottom: t, scrollToBottom: i } = h();
|
|
14
|
+
return /* @__PURE__ */ a(m, { children: [
|
|
15
|
+
/* @__PURE__ */ o(p, { asChild: !0, children: /* @__PURE__ */ o(
|
|
16
|
+
c,
|
|
17
|
+
{
|
|
18
|
+
"aria-hidden": t,
|
|
19
|
+
"aria-label": "Scroll to bottom",
|
|
20
|
+
className: d(
|
|
21
|
+
"h-10 w-10 rounded-full transition-all duration-150 ease-out",
|
|
22
|
+
t ? "pointer-events-none translate-y-4 scale-95 opacity-0" : "translate-y-0 scale-100 opacity-100",
|
|
23
|
+
r
|
|
24
|
+
),
|
|
25
|
+
"data-slot": "scroll-button",
|
|
26
|
+
onClick: () => i(),
|
|
27
|
+
size: n,
|
|
28
|
+
tabIndex: t ? -1 : 0,
|
|
29
|
+
variant: l,
|
|
30
|
+
...e,
|
|
31
|
+
children: /* @__PURE__ */ o(s, { className: "h-5 w-5" })
|
|
32
|
+
}
|
|
33
|
+
) }),
|
|
34
|
+
/* @__PURE__ */ o(u, { children: "Scroll to bottom" })
|
|
35
|
+
] });
|
|
30
36
|
}
|
|
31
37
|
export {
|
|
32
|
-
|
|
38
|
+
y as ScrollButton
|
|
33
39
|
};
|
|
@@ -12,7 +12,7 @@ import { u as pt } from "../../../index-ByaXH_ih.js";
|
|
|
12
12
|
import { P as ft, D as mt } from "../../../index-DrFfdHac.js";
|
|
13
13
|
import { h as ht, u as vt, R as gt, F as St } from "../../../index-CvA4FcaC.js";
|
|
14
14
|
import { u as Te } from "../../../index-Cv867SGx.js";
|
|
15
|
-
import { R as wt, A as xt, c as Me, C as Ct, a as yt } from "../../../index-
|
|
15
|
+
import { R as wt, A as xt, c as Me, C as Ct, a as yt } from "../../../index-BEZCAdXQ.js";
|
|
16
16
|
import { P as M } from "../../../index-DLohNuco.js";
|
|
17
17
|
import { u as It } from "../../../index-0ioNhtNM.js";
|
|
18
18
|
import { u as Re } from "../../../index-437EL2iq.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
declare const stepIndicatorIconVariants: (props?: ({
|
|
4
|
+
status?: "active" | "complete" | "incomplete" | null | undefined;
|
|
5
|
+
} & ClassProp) | undefined) => string;
|
|
6
|
+
declare const stepIndicatorLabelVariants: (props?: ({
|
|
7
|
+
status?: "active" | "complete" | "incomplete" | null | undefined;
|
|
8
|
+
} & ClassProp) | undefined) => string;
|
|
9
|
+
type DivProps = Omit<React.ComponentProps<"div">, "children">;
|
|
10
|
+
export type StepIndicatorProps = {
|
|
11
|
+
status: "incomplete" | "active" | "complete";
|
|
12
|
+
stepNumber: number;
|
|
13
|
+
label: string;
|
|
14
|
+
} & DivProps;
|
|
15
|
+
declare function StepIndicator({ status, stepNumber, label, className, ...props }: StepIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export { StepIndicator, stepIndicatorIconVariants, stepIndicatorLabelVariants };
|
|
17
|
+
//# sourceMappingURL=step-indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-indicator.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/step-indicator.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,yBAAyB;;8EAc9B,CAAC;AAEF,QAAA,MAAM,0BAA0B;;8EAe/B,CAAC;AAEF,KAAK,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,QAAQ,CAAC;AAmFb,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAsBpB;AAED,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../../../index-UgeK3A8s.js";
|
|
3
|
+
import { Check as u } from "lucide-react";
|
|
4
|
+
import { cn as a } from "../../../lib/utils.js";
|
|
5
|
+
const o = d(
|
|
6
|
+
"relative z-20 inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-full border",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
status: {
|
|
10
|
+
complete: "border-success bg-success text-success-foreground",
|
|
11
|
+
active: "border-foreground bg-foreground text-background",
|
|
12
|
+
incomplete: "border-muted bg-muted text-foreground"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
status: "incomplete"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
), l = d(
|
|
20
|
+
"relative z-20 truncate text-sm leading-[19.6px]",
|
|
21
|
+
{
|
|
22
|
+
variants: {
|
|
23
|
+
status: {
|
|
24
|
+
complete: "text-muted-foreground line-through decoration-1 decoration-current",
|
|
25
|
+
active: "font-semibold text-foreground",
|
|
26
|
+
incomplete: "text-muted-foreground/70"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
status: "incomplete"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
function m({
|
|
35
|
+
label: s,
|
|
36
|
+
className: n,
|
|
37
|
+
...t
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ c(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
className: a("flex items-center gap-4", n),
|
|
43
|
+
"data-slot": "step-indicator",
|
|
44
|
+
"data-status": "complete",
|
|
45
|
+
...t,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ e("span", { className: a(o({ status: "complete" })), children: /* @__PURE__ */ e(u, { className: "h-3.5 w-3.5" }) }),
|
|
48
|
+
/* @__PURE__ */ c("span", { className: a(l({ status: "complete" })), children: [
|
|
49
|
+
s,
|
|
50
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: " — complete" })
|
|
51
|
+
] })
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
function p({
|
|
57
|
+
stepNumber: s,
|
|
58
|
+
label: n,
|
|
59
|
+
className: t,
|
|
60
|
+
...r
|
|
61
|
+
}) {
|
|
62
|
+
return /* @__PURE__ */ c(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
className: a("flex items-center gap-4", t),
|
|
66
|
+
"data-slot": "step-indicator",
|
|
67
|
+
"data-status": "active",
|
|
68
|
+
...r,
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ e(
|
|
71
|
+
"span",
|
|
72
|
+
{
|
|
73
|
+
"aria-hidden": "true",
|
|
74
|
+
className: "pointer-events-none absolute inset-x-0 top-0 z-10 h-0.5 bg-foreground"
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ e(
|
|
78
|
+
"span",
|
|
79
|
+
{
|
|
80
|
+
"aria-hidden": "true",
|
|
81
|
+
className: "pointer-events-none absolute top-[-18px] left-1/2 z-0 h-5 w-[70%] -translate-x-1/2 rounded-full bg-primary opacity-100 blur-[18px] saturate-150"
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ e("span", { className: a(o({ status: "active" })), children: /* @__PURE__ */ e("span", { className: "text-sm", children: s }) }),
|
|
85
|
+
/* @__PURE__ */ c("span", { className: a(l({ status: "active" })), children: [
|
|
86
|
+
n,
|
|
87
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: " — active" })
|
|
88
|
+
] })
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function f({
|
|
94
|
+
stepNumber: s,
|
|
95
|
+
label: n,
|
|
96
|
+
className: t,
|
|
97
|
+
...r
|
|
98
|
+
}) {
|
|
99
|
+
return /* @__PURE__ */ c(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
className: a("flex items-center gap-4", t),
|
|
103
|
+
"data-slot": "step-indicator",
|
|
104
|
+
"data-status": "incomplete",
|
|
105
|
+
...r,
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ e("span", { className: a(o({ status: "incomplete" })), children: /* @__PURE__ */ e("span", { className: "text-sm", children: s }) }),
|
|
108
|
+
/* @__PURE__ */ c(
|
|
109
|
+
"span",
|
|
110
|
+
{
|
|
111
|
+
className: a(l({ status: "incomplete" })),
|
|
112
|
+
children: [
|
|
113
|
+
n,
|
|
114
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: " — incomplete" })
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
function N({
|
|
123
|
+
status: s,
|
|
124
|
+
stepNumber: n,
|
|
125
|
+
label: t,
|
|
126
|
+
className: r,
|
|
127
|
+
...i
|
|
128
|
+
}) {
|
|
129
|
+
return s === "complete" ? /* @__PURE__ */ e(m, { className: r, label: t, ...i }) : s === "active" ? /* @__PURE__ */ e(
|
|
130
|
+
p,
|
|
131
|
+
{
|
|
132
|
+
className: r,
|
|
133
|
+
label: t,
|
|
134
|
+
stepNumber: n,
|
|
135
|
+
...i
|
|
136
|
+
}
|
|
137
|
+
) : /* @__PURE__ */ e(
|
|
138
|
+
f,
|
|
139
|
+
{
|
|
140
|
+
className: r,
|
|
141
|
+
label: t,
|
|
142
|
+
stepNumber: n,
|
|
143
|
+
...i
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
export {
|
|
148
|
+
N as StepIndicator,
|
|
149
|
+
o as stepIndicatorIconVariants,
|
|
150
|
+
l as stepIndicatorLabelVariants
|
|
151
|
+
};
|
|
@@ -6,7 +6,7 @@ import { u as S, a as W } from "../../../index-D2LZVjSn.js";
|
|
|
6
6
|
import { c as J } from "../../../index-DFZozV_h.js";
|
|
7
7
|
import { P as Q, D as Z } from "../../../index-DrFfdHac.js";
|
|
8
8
|
import { u as ee } from "../../../index-Cv867SGx.js";
|
|
9
|
-
import { R as te, A as oe, a as re, c as G, C as ne } from "../../../index-
|
|
9
|
+
import { R as te, A as oe, a as re, c as G, C as ne } from "../../../index-BEZCAdXQ.js";
|
|
10
10
|
import { P as j } from "../../../index-BaLuVb4t.js";
|
|
11
11
|
import { P as se } from "../../../index-DLohNuco.js";
|
|
12
12
|
import { u as ae } from "../../../index-437EL2iq.js";
|