@arcadeai/design-system 3.36.2 → 3.37.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/assets/index.css +1 -1
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/variables.css +1 -1
- package/dist/components/index.js +62 -61
- package/dist/components/ui/atoms/loader.d.ts +1 -1
- package/dist/components/ui/atoms/loader.d.ts.map +1 -1
- package/dist/components/ui/atoms/loader.js +91 -61
- package/dist/components/ui/index.js +62 -61
- package/dist/components/ui/molecules/index.d.ts +2 -2
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +25 -24
- package/dist/components/ui/molecules/steps-progress.d.ts +1 -0
- package/dist/components/ui/molecules/steps-progress.d.ts.map +1 -1
- package/dist/components/ui/molecules/steps-progress.js +75 -52
- package/dist/components/ui/molecules/suggestion-card.d.ts +2 -0
- package/dist/components/ui/molecules/suggestion-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/suggestion-card.js +42 -16
- package/dist/components/ui/molecules/tool-call-accordion.d.ts +6 -1
- package/dist/components/ui/molecules/tool-call-accordion.d.ts.map +1 -1
- package/dist/components/ui/molecules/tool-call-accordion.js +153 -96
- package/dist/components/ui/templates/chat-template-skeletons.d.ts.map +1 -1
- package/dist/components/ui/templates/chat-template-skeletons.js +27 -35
- package/dist/main.js +89 -88
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -212,17 +212,17 @@ import { Message as yn, MessageAction as In, MessageActions as wn, MessageAvatar
|
|
|
212
212
|
import { PromptInput as On, PromptInputAction as Rn, PromptInputActions as Vn, PromptInputTextarea as zn } from "./ui/molecules/prompt-input.js";
|
|
213
213
|
import { R as Nn, T as Zn } from "../toolkit-card-CB1oiaei.js";
|
|
214
214
|
import { StepsProgress as Un } from "./ui/molecules/steps-progress.js";
|
|
215
|
-
import { SuggestionCard as Xn } from "./ui/molecules/suggestion-card.js";
|
|
216
|
-
import { ToolAuthorization as
|
|
217
|
-
import { ToolCallAccordion as
|
|
218
|
-
import { ToolCard as
|
|
219
|
-
import { UserNav as
|
|
220
|
-
import { ChatPageSkeleton as
|
|
221
|
-
import { LoginPage as
|
|
222
|
-
import { AuthTemplate as
|
|
223
|
-
import { ChatTemplate as
|
|
224
|
-
import { ChatBodySkeleton as
|
|
225
|
-
import { ErrorTemplate as
|
|
215
|
+
import { SuggestionCard as Xn, SuggestionCardSkeleton as Yn } from "./ui/molecules/suggestion-card.js";
|
|
216
|
+
import { ToolAuthorization as Qn, ToolAuthorizationArgs as Kn, ToolAuthorizationContent as _n, ToolAuthorizationHeader as $n, ToolAuthorizationMessage as of } from "./ui/molecules/tool-authorization.js";
|
|
217
|
+
import { ToolCallAccordion as ef, ToolCallAccordionContent as tf, ToolCallAccordionItem as af, ToolCallAccordionTrigger as pf } from "./ui/molecules/tool-call-accordion.js";
|
|
218
|
+
import { ToolCard as lf } from "./ui/molecules/tool-card.js";
|
|
219
|
+
import { UserNav as ff } from "./ui/molecules/user-nav.js";
|
|
220
|
+
import { ChatPageSkeleton as df } from "./ui/pages/chat-page-skeleton.js";
|
|
221
|
+
import { LoginPage as gf } from "./ui/pages/login-page.js";
|
|
222
|
+
import { AuthTemplate as Cf, AuthTemplateCard as cf, AuthTemplateContent as Tf, AuthTemplateDefaultBackground as Sf, AuthTemplateDescription as hf, AuthTemplateFooter as bf, AuthTemplateGridOverlay as Af, AuthTemplateHeader as Mf, AuthTemplateLegal as Df, AuthTemplateLegalLink as kf, AuthTemplateLogo as Bf, AuthTemplatePrompt as Gf, AuthTemplatePromptLink as Pf, AuthTemplateTitle as vf, AuthTemplateVideoBackground as Lf } from "./ui/templates/auth-template.js";
|
|
223
|
+
import { ChatTemplate as If, ChatTemplateBody as wf, ChatTemplateFooter as Hf, ChatTemplateHeader as Ef, ChatTemplateHeaderGroup as Ff, ChatTemplateOverview as Of, ChatTemplateOverviewSubtitle as Rf, ChatTemplateOverviewTitle as Vf, ChatTemplateSuggestions as zf } from "./ui/templates/chat-template.js";
|
|
224
|
+
import { ChatBodySkeleton as Nf, ChatContentSkeleton as Zf, ChatFooterSkeleton as qf, ChatHeaderSkeleton as Uf, ChatSidebarSkeleton as Jf } from "./ui/templates/chat-template-skeletons.js";
|
|
225
|
+
import { ErrorTemplate as Yf, ErrorTemplateActions as jf, ErrorTemplateContent as Qf, ErrorTemplateDescription as Kf, ErrorTemplateIcon as _f, ErrorTemplateLogo as $f, ErrorTemplateTitle as ox, ErrorTemplateUrl as rx } from "./ui/templates/error-template.js";
|
|
226
226
|
export {
|
|
227
227
|
e as Accordion,
|
|
228
228
|
t as AccordionContent,
|
|
@@ -254,21 +254,21 @@ export {
|
|
|
254
254
|
Hr as Atlassian,
|
|
255
255
|
Fr as Attio,
|
|
256
256
|
Rr as Auth0,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
257
|
+
Cf as AuthTemplate,
|
|
258
|
+
cf as AuthTemplateCard,
|
|
259
|
+
Tf as AuthTemplateContent,
|
|
260
|
+
Sf as AuthTemplateDefaultBackground,
|
|
261
|
+
hf as AuthTemplateDescription,
|
|
262
|
+
bf as AuthTemplateFooter,
|
|
263
|
+
Af as AuthTemplateGridOverlay,
|
|
264
|
+
Mf as AuthTemplateHeader,
|
|
265
|
+
Df as AuthTemplateLegal,
|
|
266
|
+
kf as AuthTemplateLegalLink,
|
|
267
|
+
Bf as AuthTemplateLogo,
|
|
268
|
+
Gf as AuthTemplatePrompt,
|
|
269
|
+
Pf as AuthTemplatePromptLink,
|
|
270
|
+
vf as AuthTemplateTitle,
|
|
271
|
+
Lf as AuthTemplateVideoBackground,
|
|
272
272
|
k as Avatar,
|
|
273
273
|
B as AvatarFallback,
|
|
274
274
|
G as AvatarImage,
|
|
@@ -312,28 +312,28 @@ export {
|
|
|
312
312
|
xo as ChartTooltip,
|
|
313
313
|
so as ChartTooltipContent,
|
|
314
314
|
un as ChatAssistantMessage,
|
|
315
|
-
|
|
315
|
+
Nf as ChatBodySkeleton,
|
|
316
316
|
uo as ChatContainerContent,
|
|
317
317
|
Co as ChatContainerRoot,
|
|
318
318
|
co as ChatContainerScrollAnchor,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
319
|
+
Zf as ChatContentSkeleton,
|
|
320
|
+
qf as ChatFooterSkeleton,
|
|
321
|
+
Uf as ChatHeaderSkeleton,
|
|
322
322
|
sn as ChatHistoryItem,
|
|
323
323
|
Cn as ChatMessageList,
|
|
324
324
|
cn as ChatMessageListSkeleton,
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
df as ChatPageSkeleton,
|
|
326
|
+
Jf as ChatSidebarSkeleton,
|
|
327
327
|
Tn as ChatStreamingIndicator,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
328
|
+
If as ChatTemplate,
|
|
329
|
+
wf as ChatTemplateBody,
|
|
330
|
+
Hf as ChatTemplateFooter,
|
|
331
|
+
Ef as ChatTemplateHeader,
|
|
332
|
+
Ff as ChatTemplateHeaderGroup,
|
|
333
|
+
Of as ChatTemplateOverview,
|
|
334
|
+
Rf as ChatTemplateOverviewSubtitle,
|
|
335
|
+
Vf as ChatTemplateOverviewTitle,
|
|
336
|
+
zf as ChatTemplateSuggestions,
|
|
337
337
|
Sn as ChatUserMessage,
|
|
338
338
|
So as Checkbox,
|
|
339
339
|
fe as Claude,
|
|
@@ -403,14 +403,14 @@ export {
|
|
|
403
403
|
Qe as Ebay,
|
|
404
404
|
Gn as EmptyState,
|
|
405
405
|
vn as ErrorState,
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
406
|
+
Yf as ErrorTemplate,
|
|
407
|
+
jf as ErrorTemplateActions,
|
|
408
|
+
Qf as ErrorTemplateContent,
|
|
409
|
+
Kf as ErrorTemplateDescription,
|
|
410
|
+
_f as ErrorTemplateIcon,
|
|
411
|
+
$f as ErrorTemplateLogo,
|
|
412
|
+
ox as ErrorTemplateTitle,
|
|
413
|
+
rx as ErrorTemplateUrl,
|
|
414
414
|
_e as Evernote,
|
|
415
415
|
ot as Exa,
|
|
416
416
|
et as Factorial,
|
|
@@ -456,7 +456,7 @@ export {
|
|
|
456
456
|
Ca as Linear,
|
|
457
457
|
Ta as Linkedin,
|
|
458
458
|
pi as Loader,
|
|
459
|
-
|
|
459
|
+
gf as LoginPage,
|
|
460
460
|
ha as Luma,
|
|
461
461
|
Aa as Mailchimp,
|
|
462
462
|
ii as Markdown,
|
|
@@ -580,6 +580,7 @@ export {
|
|
|
580
580
|
Un as StepsProgress,
|
|
581
581
|
am as Stripe,
|
|
582
582
|
Xn as SuggestionCard,
|
|
583
|
+
Yn as SuggestionCardSkeleton,
|
|
583
584
|
Fl as Switch,
|
|
584
585
|
Rl as Table,
|
|
585
586
|
Vl as TableBody,
|
|
@@ -598,16 +599,16 @@ export {
|
|
|
598
599
|
lm as Ticktick,
|
|
599
600
|
fm as Tiktok,
|
|
600
601
|
on as Toggle,
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
602
|
+
Qn as ToolAuthorization,
|
|
603
|
+
Kn as ToolAuthorizationArgs,
|
|
604
|
+
_n as ToolAuthorizationContent,
|
|
605
|
+
$n as ToolAuthorizationHeader,
|
|
606
|
+
of as ToolAuthorizationMessage,
|
|
607
|
+
ef as ToolCallAccordion,
|
|
608
|
+
tf as ToolCallAccordionContent,
|
|
609
|
+
af as ToolCallAccordionItem,
|
|
610
|
+
pf as ToolCallAccordionTrigger,
|
|
611
|
+
lf as ToolCard,
|
|
611
612
|
Zn as ToolkitCard,
|
|
612
613
|
tn as Tooltip,
|
|
613
614
|
an as TooltipContent,
|
|
@@ -616,7 +617,7 @@ export {
|
|
|
616
617
|
dm as Trello,
|
|
617
618
|
gm as Twilio,
|
|
618
619
|
Cm as Twitch,
|
|
619
|
-
|
|
620
|
+
ff as UserNav,
|
|
620
621
|
Tm as Vercel,
|
|
621
622
|
hm as VercelLogotype,
|
|
622
623
|
nn as ViewToolsControl,
|
|
@@ -3,7 +3,7 @@ type LoaderProps = {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
size?: LoaderSize;
|
|
5
5
|
text?: string;
|
|
6
|
-
variant?: "circular" | "classic" | "pulse" | "pulse-dot" | "dots" | "typing" | "wave" | "bars" | "terminal" | "text-blink" | "text-shimmer" | "loading-dots";
|
|
6
|
+
variant?: "circular" | "classic" | "pulse" | "pulse-dot" | "dots" | "typing" | "wave" | "bars" | "terminal" | "text-blink" | "text-shimmer" | "loading-dots" | "braille";
|
|
7
7
|
};
|
|
8
8
|
declare function Loader({ variant, size, text, className, }: LoaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export type { LoaderProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/loader.tsx"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EACJ,UAAU,GACV,SAAS,GACT,OAAO,GACP,WAAW,GACX,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,UAAU,GACV,YAAY,GACZ,cAAc,GACd,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/loader.tsx"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EACJ,UAAU,GACV,SAAS,GACT,OAAO,GACP,WAAW,GACX,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,UAAU,GACV,YAAY,GACZ,cAAc,GACd,cAAc,GACd,SAAS,CAAC;CACf,CAAC;AA8ZF,iBAAS,MAAM,CAAC,EACd,OAAoB,EACpB,IAAW,EACX,IAAI,EACJ,SAAS,GACV,EAAE,WAAW,2CAiCb;AAED,YAAY,EAAE,WAAW,EAAE,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
1
|
+
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { cn as a } from "../../../lib/utils.js";
|
|
3
3
|
function m({
|
|
4
|
-
className:
|
|
4
|
+
className: i,
|
|
5
5
|
size: e = "md"
|
|
6
6
|
}) {
|
|
7
7
|
return /* @__PURE__ */ n(
|
|
@@ -10,7 +10,7 @@ function m({
|
|
|
10
10
|
className: a(
|
|
11
11
|
"animate-spin rounded-full border-2 border-primary border-t-transparent",
|
|
12
12
|
{ sm: "size-4", md: "size-5", lg: "size-6" }[e],
|
|
13
|
-
|
|
13
|
+
i
|
|
14
14
|
),
|
|
15
15
|
children: /* @__PURE__ */ n("span", { className: "sr-only", children: "Loading" })
|
|
16
16
|
}
|
|
@@ -30,16 +30,16 @@ const c = {
|
|
|
30
30
|
lg: "14px"
|
|
31
31
|
};
|
|
32
32
|
function g({
|
|
33
|
-
className:
|
|
33
|
+
className: i,
|
|
34
34
|
size: e = "md"
|
|
35
35
|
}) {
|
|
36
|
-
const
|
|
36
|
+
const t = { sm: "size-4", md: "size-5", lg: "size-6" }, s = {
|
|
37
37
|
sm: { height: "6px", width: "1.5px" },
|
|
38
38
|
md: { height: "8px", width: "2px" },
|
|
39
39
|
lg: { height: "10px", width: "2.5px" }
|
|
40
40
|
};
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */ n("div", { className: "absolute h-full w-full", children: Array.from({ length: 12 }, (
|
|
41
|
+
return /* @__PURE__ */ l("div", { className: a("relative", t[e], i), children: [
|
|
42
|
+
/* @__PURE__ */ n("div", { className: "absolute h-full w-full", children: Array.from({ length: 12 }, (d, r) => /* @__PURE__ */ n(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
45
|
className: "absolute animate-[spinner-fade_1.2s_linear_infinite] rounded-full bg-primary",
|
|
@@ -61,16 +61,16 @@ function g({
|
|
|
61
61
|
] });
|
|
62
62
|
}
|
|
63
63
|
function p({
|
|
64
|
-
className:
|
|
64
|
+
className: i,
|
|
65
65
|
size: e = "md"
|
|
66
66
|
}) {
|
|
67
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ l("div", { className: a("relative", { sm: "size-4", md: "size-5", lg: "size-6" }[e], i), children: [
|
|
68
68
|
/* @__PURE__ */ n("div", { className: "absolute inset-0 animate-[thin-pulse_1.5s_ease-in-out_infinite] rounded-full border-2 border-primary" }),
|
|
69
69
|
/* @__PURE__ */ n("span", { className: "sr-only", children: "Loading" })
|
|
70
70
|
] });
|
|
71
71
|
}
|
|
72
72
|
function x({
|
|
73
|
-
className:
|
|
73
|
+
className: i,
|
|
74
74
|
size: e = "md"
|
|
75
75
|
}) {
|
|
76
76
|
return /* @__PURE__ */ n(
|
|
@@ -79,32 +79,32 @@ function x({
|
|
|
79
79
|
className: a(
|
|
80
80
|
"animate-[pulse-dot_1.2s_ease-in-out_infinite] rounded-full bg-primary",
|
|
81
81
|
{ sm: "size-1", md: "size-2", lg: "size-3" }[e],
|
|
82
|
-
|
|
82
|
+
i
|
|
83
83
|
),
|
|
84
84
|
children: /* @__PURE__ */ n("span", { className: "sr-only", children: "Loading" })
|
|
85
85
|
}
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
88
|
function f({
|
|
89
|
-
className:
|
|
89
|
+
className: i,
|
|
90
90
|
size: e = "md"
|
|
91
91
|
}) {
|
|
92
|
-
const
|
|
93
|
-
return /* @__PURE__ */
|
|
92
|
+
const t = { sm: "h-1.5 w-1.5", md: "h-2 w-2", lg: "h-2.5 w-2.5" };
|
|
93
|
+
return /* @__PURE__ */ l(
|
|
94
94
|
"div",
|
|
95
95
|
{
|
|
96
96
|
className: a(
|
|
97
97
|
"flex items-center space-x-1",
|
|
98
98
|
{ sm: "h-4", md: "h-5", lg: "h-6" }[e],
|
|
99
|
-
|
|
99
|
+
i
|
|
100
100
|
),
|
|
101
101
|
children: [
|
|
102
|
-
Array.from({ length: 3 }, (
|
|
102
|
+
Array.from({ length: 3 }, (d, r) => /* @__PURE__ */ n(
|
|
103
103
|
"div",
|
|
104
104
|
{
|
|
105
105
|
className: a(
|
|
106
106
|
"animate-[bounce-dots_1.4s_ease-in-out_infinite] rounded-full bg-primary",
|
|
107
|
-
|
|
107
|
+
t[e]
|
|
108
108
|
),
|
|
109
109
|
style: { animationDelay: `${r * 160}ms` }
|
|
110
110
|
},
|
|
@@ -116,25 +116,25 @@ function f({
|
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
118
|
function _({
|
|
119
|
-
className:
|
|
119
|
+
className: i,
|
|
120
120
|
size: e = "md"
|
|
121
121
|
}) {
|
|
122
|
-
const
|
|
123
|
-
return /* @__PURE__ */
|
|
122
|
+
const t = { sm: "h-1 w-1", md: "h-1.5 w-1.5", lg: "h-2 w-2" };
|
|
123
|
+
return /* @__PURE__ */ l(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
126
126
|
className: a(
|
|
127
127
|
"flex items-center space-x-1",
|
|
128
128
|
{ sm: "h-4", md: "h-5", lg: "h-6" }[e],
|
|
129
|
-
|
|
129
|
+
i
|
|
130
130
|
),
|
|
131
131
|
children: [
|
|
132
|
-
Array.from({ length: 3 }, (
|
|
132
|
+
Array.from({ length: 3 }, (d, r) => /* @__PURE__ */ n(
|
|
133
133
|
"div",
|
|
134
134
|
{
|
|
135
135
|
className: a(
|
|
136
136
|
"animate-[typing_1s_infinite] rounded-full bg-primary",
|
|
137
|
-
|
|
137
|
+
t[e]
|
|
138
138
|
),
|
|
139
139
|
style: { animationDelay: `${r * 250}ms` }
|
|
140
140
|
},
|
|
@@ -146,21 +146,21 @@ function _({
|
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
148
|
function y({
|
|
149
|
-
className:
|
|
149
|
+
className: i,
|
|
150
150
|
size: e = "md"
|
|
151
151
|
}) {
|
|
152
|
-
const
|
|
152
|
+
const t = { sm: "w-0.5", md: "w-0.5", lg: "w-1" }, s = { sm: "h-4", md: "h-5", lg: "h-6" }, d = {
|
|
153
153
|
sm: ["6px", "9px", "12px", "9px", "6px"],
|
|
154
154
|
md: ["8px", "12px", "16px", "12px", "8px"],
|
|
155
155
|
lg: ["10px", "15px", "20px", "15px", "10px"]
|
|
156
156
|
};
|
|
157
|
-
return /* @__PURE__ */
|
|
157
|
+
return /* @__PURE__ */ l(
|
|
158
158
|
"div",
|
|
159
159
|
{
|
|
160
160
|
className: a(
|
|
161
161
|
"flex items-center gap-0.5",
|
|
162
162
|
s[e],
|
|
163
|
-
|
|
163
|
+
i
|
|
164
164
|
),
|
|
165
165
|
children: [
|
|
166
166
|
Array.from({ length: 5 }, (r, o) => /* @__PURE__ */ n(
|
|
@@ -168,11 +168,11 @@ function y({
|
|
|
168
168
|
{
|
|
169
169
|
className: a(
|
|
170
170
|
"animate-[wave_1s_ease-in-out_infinite] rounded-full bg-primary",
|
|
171
|
-
|
|
171
|
+
t[e]
|
|
172
172
|
),
|
|
173
173
|
style: {
|
|
174
174
|
animationDelay: `${o * 100}ms`,
|
|
175
|
-
height:
|
|
175
|
+
height: d[e][o]
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
178
|
o
|
|
@@ -183,21 +183,21 @@ function y({
|
|
|
183
183
|
);
|
|
184
184
|
}
|
|
185
185
|
function b({
|
|
186
|
-
className:
|
|
186
|
+
className: i,
|
|
187
187
|
size: e = "md"
|
|
188
188
|
}) {
|
|
189
|
-
const
|
|
190
|
-
return /* @__PURE__ */
|
|
189
|
+
const t = { sm: "w-1", md: "w-1.5", lg: "w-2" };
|
|
190
|
+
return /* @__PURE__ */ l("div", { className: a("flex", {
|
|
191
191
|
sm: "h-4 gap-1",
|
|
192
192
|
md: "h-5 gap-1.5",
|
|
193
193
|
lg: "h-6 gap-2"
|
|
194
|
-
}[e],
|
|
195
|
-
Array.from({ length: 3 }, (
|
|
194
|
+
}[e], i), children: [
|
|
195
|
+
Array.from({ length: 3 }, (d, r) => /* @__PURE__ */ n(
|
|
196
196
|
"div",
|
|
197
197
|
{
|
|
198
198
|
className: a(
|
|
199
199
|
"h-full animate-[wave-bars_1.2s_ease-in-out_infinite] bg-primary",
|
|
200
|
-
|
|
200
|
+
t[e]
|
|
201
201
|
),
|
|
202
202
|
style: { animationDelay: `${r * 0.2}s` }
|
|
203
203
|
},
|
|
@@ -207,17 +207,17 @@ function b({
|
|
|
207
207
|
] });
|
|
208
208
|
}
|
|
209
209
|
function v({
|
|
210
|
-
className:
|
|
210
|
+
className: i,
|
|
211
211
|
size: e = "md"
|
|
212
212
|
}) {
|
|
213
|
-
const
|
|
214
|
-
return /* @__PURE__ */
|
|
213
|
+
const t = { sm: "h-3 w-1.5", md: "h-4 w-2", lg: "h-5 w-2.5" }, s = { sm: "text-xs", md: "text-sm", lg: "text-base" };
|
|
214
|
+
return /* @__PURE__ */ l(
|
|
215
215
|
"div",
|
|
216
216
|
{
|
|
217
217
|
className: a(
|
|
218
218
|
"flex items-center space-x-1",
|
|
219
219
|
{ sm: "h-4", md: "h-5", lg: "h-6" }[e],
|
|
220
|
-
|
|
220
|
+
i
|
|
221
221
|
),
|
|
222
222
|
children: [
|
|
223
223
|
/* @__PURE__ */ n("span", { className: a("font-mono text-primary", s[e]), children: ">" }),
|
|
@@ -226,7 +226,7 @@ function v({
|
|
|
226
226
|
{
|
|
227
227
|
className: a(
|
|
228
228
|
"animate-[blink_1s_step-end_infinite] bg-primary",
|
|
229
|
-
|
|
229
|
+
t[e]
|
|
230
230
|
)
|
|
231
231
|
}
|
|
232
232
|
),
|
|
@@ -236,26 +236,26 @@ function v({
|
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
function L({
|
|
239
|
-
text:
|
|
239
|
+
text: i = "Thinking",
|
|
240
240
|
className: e,
|
|
241
|
-
size:
|
|
241
|
+
size: t = "md"
|
|
242
242
|
}) {
|
|
243
243
|
return /* @__PURE__ */ n(
|
|
244
244
|
"div",
|
|
245
245
|
{
|
|
246
246
|
className: a(
|
|
247
247
|
"animate-[text-blink_2s_ease-in-out_infinite] font-medium",
|
|
248
|
-
{ sm: "text-xs", md: "text-sm", lg: "text-base" }[
|
|
248
|
+
{ sm: "text-xs", md: "text-sm", lg: "text-base" }[t],
|
|
249
249
|
e
|
|
250
250
|
),
|
|
251
|
-
children:
|
|
251
|
+
children: i
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
255
|
function N({
|
|
256
|
-
text:
|
|
256
|
+
text: i = "Thinking",
|
|
257
257
|
className: e,
|
|
258
|
-
size:
|
|
258
|
+
size: t = "md"
|
|
259
259
|
}) {
|
|
260
260
|
return /* @__PURE__ */ n(
|
|
261
261
|
"div",
|
|
@@ -264,41 +264,69 @@ function N({
|
|
|
264
264
|
"bg-[linear-gradient(to_right,var(--muted-foreground)_40%,var(--foreground)_60%,var(--muted-foreground)_80%)]",
|
|
265
265
|
"bg-size-[200%_auto] bg-clip-text font-medium text-transparent",
|
|
266
266
|
"animate-[shimmer_4s_infinite_linear]",
|
|
267
|
-
{ sm: "text-xs", md: "text-sm", lg: "text-base" }[
|
|
267
|
+
{ sm: "text-xs", md: "text-sm", lg: "text-base" }[t],
|
|
268
268
|
e
|
|
269
269
|
),
|
|
270
|
-
children:
|
|
270
|
+
children: i
|
|
271
271
|
}
|
|
272
272
|
);
|
|
273
273
|
}
|
|
274
274
|
function S({
|
|
275
|
-
className:
|
|
275
|
+
className: i,
|
|
276
276
|
text: e = "Thinking",
|
|
277
|
-
size:
|
|
277
|
+
size: t = "md"
|
|
278
278
|
}) {
|
|
279
279
|
const s = { sm: "text-xs", md: "text-sm", lg: "text-base" };
|
|
280
|
-
return /* @__PURE__ */
|
|
280
|
+
return /* @__PURE__ */ l("div", { className: a("inline-flex items-center", i), children: [
|
|
281
281
|
/* @__PURE__ */ n(
|
|
282
282
|
"span",
|
|
283
283
|
{
|
|
284
|
-
className: a("font-medium text-muted-foreground", s[
|
|
284
|
+
className: a("font-medium text-muted-foreground", s[t]),
|
|
285
285
|
children: e
|
|
286
286
|
}
|
|
287
287
|
),
|
|
288
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ l("span", { className: "inline-flex", children: [
|
|
289
289
|
/* @__PURE__ */ n("span", { className: "animate-[loading-dots_1.4s_infinite_0.2s] text-muted-foreground", children: "." }),
|
|
290
290
|
/* @__PURE__ */ n("span", { className: "animate-[loading-dots_1.4s_infinite_0.4s] text-muted-foreground", children: "." }),
|
|
291
291
|
/* @__PURE__ */ n("span", { className: "animate-[loading-dots_1.4s_infinite_0.6s] text-muted-foreground", children: "." })
|
|
292
292
|
] })
|
|
293
293
|
] });
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
|
|
295
|
+
function w({
|
|
296
|
+
className: i,
|
|
297
297
|
size: e = "md",
|
|
298
|
-
text:
|
|
298
|
+
text: t
|
|
299
|
+
}) {
|
|
300
|
+
const s = { sm: "text-sm", md: "text-base", lg: "text-lg" }, d = { sm: "text-xs", md: "text-sm", lg: "text-base" };
|
|
301
|
+
return /* @__PURE__ */ l("div", { className: a("inline-flex items-center gap-1.5", i), children: [
|
|
302
|
+
/* @__PURE__ */ n(
|
|
303
|
+
"span",
|
|
304
|
+
{
|
|
305
|
+
"aria-hidden": "true",
|
|
306
|
+
className: a(
|
|
307
|
+
"before:animate-[braille-spin_0.8s_steps(10,end)_infinite] before:content-['⠋']",
|
|
308
|
+
"font-mono text-primary leading-none",
|
|
309
|
+
s[e]
|
|
310
|
+
)
|
|
311
|
+
}
|
|
312
|
+
),
|
|
313
|
+
t && /* @__PURE__ */ n(
|
|
314
|
+
"span",
|
|
315
|
+
{
|
|
316
|
+
className: a("text-muted-foreground leading-none", d[e]),
|
|
317
|
+
children: t
|
|
318
|
+
}
|
|
319
|
+
),
|
|
320
|
+
!t && /* @__PURE__ */ n("span", { className: "sr-only", children: "Loading" })
|
|
321
|
+
] });
|
|
322
|
+
}
|
|
323
|
+
function A({
|
|
324
|
+
variant: i = "circular",
|
|
325
|
+
size: e = "md",
|
|
326
|
+
text: t,
|
|
299
327
|
className: s
|
|
300
328
|
}) {
|
|
301
|
-
switch (
|
|
329
|
+
switch (i) {
|
|
302
330
|
case "circular":
|
|
303
331
|
return /* @__PURE__ */ n(m, { className: s, size: e });
|
|
304
332
|
case "classic":
|
|
@@ -318,15 +346,17 @@ function C({
|
|
|
318
346
|
case "terminal":
|
|
319
347
|
return /* @__PURE__ */ n(v, { className: s, size: e });
|
|
320
348
|
case "text-blink":
|
|
321
|
-
return /* @__PURE__ */ n(L, { className: s, size: e, text:
|
|
349
|
+
return /* @__PURE__ */ n(L, { className: s, size: e, text: t });
|
|
322
350
|
case "text-shimmer":
|
|
323
|
-
return /* @__PURE__ */ n(N, { className: s, size: e, text:
|
|
351
|
+
return /* @__PURE__ */ n(N, { className: s, size: e, text: t });
|
|
324
352
|
case "loading-dots":
|
|
325
|
-
return /* @__PURE__ */ n(S, { className: s, size: e, text:
|
|
353
|
+
return /* @__PURE__ */ n(S, { className: s, size: e, text: t });
|
|
354
|
+
case "braille":
|
|
355
|
+
return /* @__PURE__ */ n(w, { className: s, size: e, text: t });
|
|
326
356
|
default:
|
|
327
357
|
return /* @__PURE__ */ n(m, { className: s, size: e });
|
|
328
358
|
}
|
|
329
359
|
}
|
|
330
360
|
export {
|
|
331
|
-
|
|
361
|
+
A as Loader
|
|
332
362
|
};
|