@arcadeai/design-system 3.35.1 → 3.35.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/{outlook-mail.js → microsoft-outlook-mail.js} +4 -4
- package/dist/assets/images/arcade-logo.d.ts +10 -5
- package/dist/components/index.js +490 -488
- package/dist/components/ui/atoms/icons/arcade-logo.d.ts +4 -0
- package/dist/components/ui/atoms/icons/arcade-logo.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/arcade-logo.js +33 -0
- package/dist/components/ui/atoms/icons/index.d.ts +3 -2
- package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/index.js +284 -282
- package/dist/components/ui/atoms/icons/microsoft-outlook-calendar.d.ts +4 -0
- package/dist/components/ui/atoms/icons/microsoft-outlook-calendar.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/{outlook-calendar.js → microsoft-outlook-calendar.js} +1 -1
- package/dist/components/ui/atoms/icons/microsoft-outlook-mail.d.ts +4 -0
- package/dist/components/ui/atoms/icons/microsoft-outlook-mail.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/{outlook-mail.js → microsoft-outlook-mail.js} +3 -3
- package/dist/components/ui/atoms/index.js +407 -405
- package/dist/components/ui/index.js +490 -488
- package/dist/components/ui/pages/chat-page.js +13 -13
- package/dist/components/ui/pages/login-page.js +9 -9
- package/dist/main.js +519 -517
- package/dist/metadata/toolkit-icons.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.js +209 -206
- package/dist/metadata/toolkits.d.ts.map +1 -1
- package/dist/metadata/toolkits.js +45 -6
- package/dist/metadata/utils.d.ts.map +1 -1
- package/dist/metadata/utils.js +18 -17
- package/package.json +1 -1
- package/dist/arcade-logo-BVV97-cr.js +0 -33
- package/dist/assets/images/arcade-logo.d.ts.map +0 -1
- package/dist/components/ui/atoms/icons/outlook-calendar.d.ts +0 -4
- package/dist/components/ui/atoms/icons/outlook-calendar.d.ts.map +0 -1
- package/dist/components/ui/atoms/icons/outlook-mail.d.ts +0 -4
- package/dist/components/ui/atoms/icons/outlook-mail.d.ts.map +0 -1
- /package/dist/assets/icons/{outlook-calendar.js → microsoft-outlook-calendar.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { PlusIcon as X, SquareIcon as Y, ArrowUpIcon as Z, SquarePenIcon as L, LogOutIcon as ee, ChevronsUpDownIcon as re, Trash2Icon as G } from "lucide-react";
|
|
3
3
|
import { useState as w, useRef as te } from "react";
|
|
4
|
-
import { A as ne } from "../../../arcade-logo-BVV97-cr.js";
|
|
5
4
|
import { Button as o } from "../atoms/button.js";
|
|
6
|
-
import { ChatContainerRoot as
|
|
7
|
-
import { DropdownMenuItem as
|
|
5
|
+
import { ChatContainerRoot as ne, ChatContainerContent as ae, ChatContainerScrollAnchor as ie } from "../atoms/chat-container.js";
|
|
6
|
+
import { DropdownMenuItem as le, DropdownMenu as oe, DropdownMenuTrigger as ce, DropdownMenuContent as se, DropdownMenuRadioGroup as de, DropdownMenuRadioItem as he } from "../atoms/dropdown-menu.js";
|
|
7
|
+
import { ArcadeLogo as me } from "../atoms/icons/arcade-logo.js";
|
|
8
8
|
import { Loader as pe } from "../atoms/loader.js";
|
|
9
9
|
import { Popover as B, PopoverTrigger as R, PopoverContent as U } from "../atoms/popover.js";
|
|
10
10
|
import { ScrollButton as ue } from "../atoms/scroll-button.js";
|
|
@@ -17,7 +17,7 @@ import { UserNav as Me } from "../molecules/user-nav.js";
|
|
|
17
17
|
import { ChatTemplate as Pe, ChatTemplateHeader as He, ChatTemplateHeaderGroup as A, ChatTemplateOverview as _e, ChatTemplateOverviewTitle as je, ChatTemplateOverviewSubtitle as Ae, ChatTemplateFooter as Ge, ChatTemplateSuggestions as Be } from "../templates/chat-template.js";
|
|
18
18
|
import { cn as q } from "../../../lib/utils.js";
|
|
19
19
|
function Re() {
|
|
20
|
-
return /* @__PURE__ */ e(
|
|
20
|
+
return /* @__PURE__ */ e(me, { className: "h-5 w-auto text-foreground" });
|
|
21
21
|
}
|
|
22
22
|
function Ue(t, a) {
|
|
23
23
|
if (t.onClick)
|
|
@@ -32,17 +32,17 @@ function qe({
|
|
|
32
32
|
selectedModelId: a,
|
|
33
33
|
onModelChange: n
|
|
34
34
|
}) {
|
|
35
|
-
return !t || t.length === 0 ? null : /* @__PURE__ */ r(
|
|
36
|
-
/* @__PURE__ */ e(
|
|
35
|
+
return !t || t.length === 0 ? null : /* @__PURE__ */ r(oe, { children: [
|
|
36
|
+
/* @__PURE__ */ e(ce, { asChild: !0, children: /* @__PURE__ */ r(o, { className: "h-[34px] gap-1 px-2", variant: "outline", children: [
|
|
37
37
|
t.find((i) => i.id === a)?.name ?? "Select model",
|
|
38
38
|
/* @__PURE__ */ e(re, { className: "size-3" })
|
|
39
39
|
] }) }),
|
|
40
|
-
/* @__PURE__ */ e(
|
|
41
|
-
|
|
40
|
+
/* @__PURE__ */ e(se, { align: "start", className: "min-w-[300px]", children: /* @__PURE__ */ e(
|
|
41
|
+
de,
|
|
42
42
|
{
|
|
43
43
|
onValueChange: n,
|
|
44
44
|
value: a,
|
|
45
|
-
children: t.map((i) => /* @__PURE__ */ e(
|
|
45
|
+
children: t.map((i) => /* @__PURE__ */ e(he, { value: i.id, children: /* @__PURE__ */ r("div", { className: "flex flex-col items-start gap-1", children: [
|
|
46
46
|
/* @__PURE__ */ e("div", { className: "font-medium", children: i.name }),
|
|
47
47
|
i.description && /* @__PURE__ */ e("div", { className: "text-muted-foreground text-xs", children: i.description })
|
|
48
48
|
] }) }, i.id))
|
|
@@ -240,11 +240,11 @@ function cr({
|
|
|
240
240
|
] }) })
|
|
241
241
|
] }),
|
|
242
242
|
/* @__PURE__ */ r(
|
|
243
|
-
|
|
243
|
+
ne,
|
|
244
244
|
{
|
|
245
245
|
className: "relative min-w-0 flex-1 flex-col pt-4",
|
|
246
246
|
children: [
|
|
247
|
-
/* @__PURE__ */ r(
|
|
247
|
+
/* @__PURE__ */ r(ae, { className: "gap-6 pb-4", children: [
|
|
248
248
|
D || (p && p.length > 0 ? /* @__PURE__ */ e(
|
|
249
249
|
ke,
|
|
250
250
|
{
|
|
@@ -260,7 +260,7 @@ function cr({
|
|
|
260
260
|
] }),
|
|
261
261
|
/* @__PURE__ */ e(Ae, { children: "How can I help you today?" })
|
|
262
262
|
] })),
|
|
263
|
-
/* @__PURE__ */ e(
|
|
263
|
+
/* @__PURE__ */ e(ie, {})
|
|
264
264
|
] }),
|
|
265
265
|
/* @__PURE__ */ e("div", { className: "pointer-events-none absolute right-0 bottom-0 left-0 z-10 h-10 bg-linear-to-t from-10% from-background to-transparent" }),
|
|
266
266
|
/* @__PURE__ */ e("div", { className: "pointer-events-none absolute right-0 bottom-4 left-0 z-20 flex justify-center px-4", children: /* @__PURE__ */ e("div", { className: "flex w-full max-w-3xl justify-end pr-4", children: /* @__PURE__ */ e(ue, { className: "pointer-events-auto shadow-md" }) }) })
|
|
@@ -370,7 +370,7 @@ function cr({
|
|
|
370
370
|
avatarUrl: t?.avatarUrl,
|
|
371
371
|
email: t?.email,
|
|
372
372
|
name: t?.name,
|
|
373
|
-
children: y && /* @__PURE__ */ r(
|
|
373
|
+
children: y && /* @__PURE__ */ r(le, { onClick: y, children: [
|
|
374
374
|
/* @__PURE__ */ e(ee, { className: "size-4" }),
|
|
375
375
|
"Sign out"
|
|
376
376
|
] })
|
|
@@ -2,10 +2,10 @@ import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { Loader2 as p, LogIn as d } from "lucide-react";
|
|
3
3
|
import { Fragment as f } from "react";
|
|
4
4
|
import { ArcadeGrid as g } from "../../../assets/images/arcade-grid.js";
|
|
5
|
-
import { A } from "
|
|
6
|
-
import {
|
|
5
|
+
import { Button as A } from "../atoms/button.js";
|
|
6
|
+
import { ArcadeLogo as b } from "../atoms/icons/arcade-logo.js";
|
|
7
7
|
import { AuthTemplate as T, AuthTemplateVideoBackground as v, AuthTemplateLogo as y, AuthTemplateCard as L, AuthTemplateHeader as N, AuthTemplateTitle as x, AuthTemplateDescription as k, AuthTemplateContent as z, AuthTemplateFooter as w, AuthTemplatePrompt as P, AuthTemplatePromptLink as _, AuthTemplateLegal as B, AuthTemplateLegalLink as C } from "../templates/auth-template.js";
|
|
8
|
-
import { cn as
|
|
8
|
+
import { cn as m } from "../../../lib/utils.js";
|
|
9
9
|
import { PUBLIC_VIDEO_URL as D } from "../../../metadata/constants.js";
|
|
10
10
|
const I = `${D}/A_L_Orange_Pink.mp4`;
|
|
11
11
|
function F({ isLoading: t }) {
|
|
@@ -34,25 +34,25 @@ function q({
|
|
|
34
34
|
onSubmit: i,
|
|
35
35
|
privacyHref: a,
|
|
36
36
|
registerHref: o,
|
|
37
|
-
submitText:
|
|
37
|
+
submitText: s = "Sign in with Arcade",
|
|
38
38
|
termsHref: l,
|
|
39
39
|
videoSrc: c = I
|
|
40
40
|
}) {
|
|
41
|
-
const h = t ? n :
|
|
41
|
+
const h = t ? n : s, u = o || l || a;
|
|
42
42
|
return /* @__PURE__ */ r(T, { children: [
|
|
43
43
|
/* @__PURE__ */ e("div", { className: "absolute -inset-4 z-0 bg-gradient-to-br from-rose-500/70 via-pink-400/50 to-amber-500/70 opacity-60 blur-lg brightness-50" }),
|
|
44
44
|
c && /* @__PURE__ */ e(v, { src: c }),
|
|
45
45
|
/* @__PURE__ */ e("div", { className: "absolute inset-0 z-1 opacity-[0.01]", children: /* @__PURE__ */ e(g, { className: "size-full", fill: "currentColor" }) }),
|
|
46
|
-
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(
|
|
46
|
+
/* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(b, { className: "h-12 w-auto text-zinc-900 dark:text-white" }) }),
|
|
47
47
|
/* @__PURE__ */ r(L, { children: [
|
|
48
48
|
/* @__PURE__ */ r(N, { children: [
|
|
49
49
|
/* @__PURE__ */ e(x, { children: "Welcome back" }),
|
|
50
50
|
/* @__PURE__ */ e(k, { children: "Sign in with your Arcade account to continue" })
|
|
51
51
|
] }),
|
|
52
52
|
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ r(
|
|
53
|
-
|
|
53
|
+
A,
|
|
54
54
|
{
|
|
55
|
-
className:
|
|
55
|
+
className: m(
|
|
56
56
|
"group relative h-12 w-full overflow-hidden text-base transition-all duration-300",
|
|
57
57
|
"hover:scale-[1.01] hover:shadow-md hover:brightness-105 active:scale-[0.99]"
|
|
58
58
|
),
|
|
@@ -67,7 +67,7 @@ function q({
|
|
|
67
67
|
/* @__PURE__ */ e(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
|
-
className:
|
|
70
|
+
className: m(
|
|
71
71
|
"absolute inset-0 bg-gradient-to-r from-primary/5 via-primary/0 to-primary/5 transition-opacity duration-300 group-hover:opacity-100",
|
|
72
72
|
t ? "pointer-events-none opacity-0" : "opacity-0"
|
|
73
73
|
)
|