@arcadeai/design-system 3.36.0 → 3.36.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.
Files changed (61) hide show
  1. package/dist/components/index.js +411 -396
  2. package/dist/components/ui/atoms/arcade-gradient.d.ts.map +1 -0
  3. package/dist/components/ui/atoms/{icons/arcade-gradient.js → arcade-gradient.js} +1 -1
  4. package/dist/components/ui/atoms/icons/index.d.ts +0 -1
  5. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
  6. package/dist/components/ui/atoms/icons/index.js +294 -296
  7. package/dist/components/ui/atoms/index.d.ts +1 -0
  8. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  9. package/dist/components/ui/atoms/index.js +112 -112
  10. package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
  11. package/dist/components/ui/atoms/virtualized-grid.js +16 -16
  12. package/dist/components/ui/index.js +411 -396
  13. package/dist/components/ui/molecules/chat-history-item.d.ts +21 -0
  14. package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -0
  15. package/dist/components/ui/molecules/chat-history-item.js +88 -0
  16. package/dist/components/ui/molecules/chat-message-list.d.ts +6 -0
  17. package/dist/components/ui/molecules/chat-message-list.d.ts.map +1 -1
  18. package/dist/components/ui/molecules/chat-message-list.js +117 -61
  19. package/dist/components/ui/molecules/confirm-popover.d.ts +20 -0
  20. package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -0
  21. package/dist/components/ui/molecules/confirm-popover.js +50 -0
  22. package/dist/components/ui/molecules/error-state.d.ts +17 -0
  23. package/dist/components/ui/molecules/error-state.d.ts.map +1 -0
  24. package/dist/components/ui/molecules/error-state.js +45 -0
  25. package/dist/components/ui/molecules/index.d.ts +8 -4
  26. package/dist/components/ui/molecules/index.d.ts.map +1 -1
  27. package/dist/components/ui/molecules/index.js +41 -41
  28. package/dist/components/ui/molecules/requirement-badges.js +4 -5
  29. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  30. package/dist/components/ui/pages/chat-page-skeleton.d.ts +7 -0
  31. package/dist/components/ui/pages/chat-page-skeleton.d.ts.map +1 -0
  32. package/dist/components/ui/pages/chat-page-skeleton.js +18 -0
  33. package/dist/components/ui/pages/index.d.ts +2 -2
  34. package/dist/components/ui/pages/index.d.ts.map +1 -1
  35. package/dist/components/ui/pages/index.js +4 -4
  36. package/dist/components/ui/templates/chat-template-skeletons.d.ts +12 -0
  37. package/dist/components/ui/templates/chat-template-skeletons.d.ts.map +1 -0
  38. package/dist/components/ui/templates/chat-template-skeletons.js +127 -0
  39. package/dist/components/ui/templates/error-template.d.ts +20 -0
  40. package/dist/components/ui/templates/error-template.d.ts.map +1 -0
  41. package/dist/components/ui/templates/error-template.js +117 -0
  42. package/dist/components/ui/templates/index.d.ts +4 -0
  43. package/dist/components/ui/templates/index.d.ts.map +1 -1
  44. package/dist/components/ui/templates/index.js +37 -22
  45. package/dist/hooks/use-mobile.d.ts.map +1 -1
  46. package/dist/hooks/use-mobile.js +12 -11
  47. package/dist/main.js +380 -365
  48. package/dist/metadata/toolkit-icons.d.ts.map +1 -1
  49. package/dist/metadata/toolkit-icons.js +187 -186
  50. package/dist/metadata/toolkits.d.ts.map +1 -1
  51. package/dist/metadata/toolkits.js +13 -0
  52. package/dist/{toolkit-card-B97E7TBA.js → toolkit-card-CB1oiaei.js} +2 -3
  53. package/package.json +1 -1
  54. package/dist/components/ui/atoms/icons/arcade-gradient.d.ts.map +0 -1
  55. package/dist/components/ui/molecules/switcher.d.ts +0 -83
  56. package/dist/components/ui/molecules/switcher.d.ts.map +0 -1
  57. package/dist/components/ui/molecules/switcher.js +0 -164
  58. package/dist/components/ui/pages/chat-page.d.ts +0 -83
  59. package/dist/components/ui/pages/chat-page.d.ts.map +0 -1
  60. package/dist/components/ui/pages/chat-page.js +0 -385
  61. /package/dist/components/ui/atoms/{icons/arcade-gradient.d.ts → arcade-gradient.d.ts} +0 -0
@@ -1,45 +1,46 @@
1
- import { ChatAssistantMessage as r, ChatMessageList as e, ChatStreamingIndicator as a, ChatUserMessage as i } from "./chat-message-list.js";
2
- import { CommandBar as n } from "./command-bar.js";
3
- import { DateTimePicker as p } from "./date-time-picker.js";
4
- import { EmptyState as g } from "./empty-state.js";
5
- import { Message as A, MessageAction as C, MessageActions as T, MessageAvatar as h, MessageContent as x } from "./message.js";
6
- import { PromptInput as u, PromptInputAction as d, PromptInputActions as S, PromptInputTextarea as M } from "./prompt-input.js";
7
- import { R as w, T as P } from "../../../toolkit-card-B97E7TBA.js";
8
- import { StepsProgress as k } from "./steps-progress.js";
9
- import { SuggestionCard as B } from "./suggestion-card.js";
10
- import { Switcher as U, SwitcherContent as q, SwitcherInput as y, SwitcherItem as D, SwitcherTrigger as E, useSwitcher as H } from "./switcher.js";
11
- import { ToolAuthorization as N, ToolAuthorizationArgs as b, ToolAuthorizationContent as j, ToolAuthorizationHeader as F, ToolAuthorizationMessage as G } from "./tool-authorization.js";
1
+ import { ChatHistoryItem as r } from "./chat-history-item.js";
2
+ import { ChatAssistantMessage as a, ChatMessageList as s, ChatMessageListSkeleton as i, ChatStreamingIndicator as n, ChatUserMessage as m } from "./chat-message-list.js";
3
+ import { CommandBar as l } from "./command-bar.js";
4
+ import { ConfirmPopover as C } from "./confirm-popover.js";
5
+ import { DateTimePicker as x } from "./date-time-picker.js";
6
+ import { EmptyState as T } from "./empty-state.js";
7
+ import { ErrorState as d } from "./error-state.js";
8
+ import { Message as u, MessageAction as M, MessageActions as I, MessageAvatar as P, MessageContent as S } from "./message.js";
9
+ import { PromptInput as k, PromptInputAction as v, PromptInputActions as y, PromptInputTextarea as B } from "./prompt-input.js";
10
+ import { R as H, T as L } from "../../../toolkit-card-CB1oiaei.js";
11
+ import { StepsProgress as U } from "./steps-progress.js";
12
+ import { SuggestionCard as D } from "./suggestion-card.js";
13
+ import { ToolAuthorization as b, ToolAuthorizationArgs as j, ToolAuthorizationContent as w, ToolAuthorizationHeader as F, ToolAuthorizationMessage as G } from "./tool-authorization.js";
12
14
  import { ToolCallAccordion as K, ToolCallAccordionContent as O, ToolCallAccordionItem as Q, ToolCallAccordionTrigger as V } from "./tool-call-accordion.js";
13
15
  import { ToolCard as X } from "./tool-card.js";
14
16
  import { UserNav as Z } from "./user-nav.js";
15
17
  export {
16
- r as ChatAssistantMessage,
17
- e as ChatMessageList,
18
- a as ChatStreamingIndicator,
19
- i as ChatUserMessage,
20
- n as CommandBar,
21
- p as DateTimePicker,
22
- g as EmptyState,
23
- A as Message,
24
- C as MessageAction,
25
- T as MessageActions,
26
- h as MessageAvatar,
27
- x as MessageContent,
28
- u as PromptInput,
29
- d as PromptInputAction,
30
- S as PromptInputActions,
31
- M as PromptInputTextarea,
32
- w as RequirementBadges,
33
- k as StepsProgress,
34
- B as SuggestionCard,
35
- U as Switcher,
36
- q as SwitcherContent,
37
- y as SwitcherInput,
38
- D as SwitcherItem,
39
- E as SwitcherTrigger,
40
- N as ToolAuthorization,
41
- b as ToolAuthorizationArgs,
42
- j as ToolAuthorizationContent,
18
+ a as ChatAssistantMessage,
19
+ r as ChatHistoryItem,
20
+ s as ChatMessageList,
21
+ i as ChatMessageListSkeleton,
22
+ n as ChatStreamingIndicator,
23
+ m as ChatUserMessage,
24
+ l as CommandBar,
25
+ C as ConfirmPopover,
26
+ x as DateTimePicker,
27
+ T as EmptyState,
28
+ d as ErrorState,
29
+ u as Message,
30
+ M as MessageAction,
31
+ I as MessageActions,
32
+ P as MessageAvatar,
33
+ S as MessageContent,
34
+ k as PromptInput,
35
+ v as PromptInputAction,
36
+ y as PromptInputActions,
37
+ B as PromptInputTextarea,
38
+ H as RequirementBadges,
39
+ U as StepsProgress,
40
+ D as SuggestionCard,
41
+ b as ToolAuthorization,
42
+ j as ToolAuthorizationArgs,
43
+ w as ToolAuthorizationContent,
43
44
  F as ToolAuthorizationHeader,
44
45
  G as ToolAuthorizationMessage,
45
46
  K as ToolCallAccordion,
@@ -47,7 +48,6 @@ export {
47
48
  Q as ToolCallAccordionItem,
48
49
  V as ToolCallAccordionTrigger,
49
50
  X as ToolCard,
50
- P as ToolkitCard,
51
- Z as UserNav,
52
- H as useSwitcher
51
+ L as ToolkitCard,
52
+ Z as UserNav
53
53
  };
@@ -15,13 +15,12 @@ import "../atoms/sidebar.js";
15
15
  import "../atoms/view-tools-control.js";
16
16
  import "./date-time-picker.js";
17
17
  import "./prompt-input.js";
18
- import { O as b, R as j, S as k } from "../../../toolkit-card-B97E7TBA.js";
19
- import "./switcher.js";
18
+ import { O as A, R as b, S as j } from "../../../toolkit-card-CB1oiaei.js";
20
19
  import "./tool-call-accordion.js";
21
20
  import "./tool-card.js";
22
21
  import "../utils/memo.js";
23
22
  export {
24
- b as OAuthBadge,
25
- j as RequirementBadges,
26
- k as SecretsBadge
23
+ A as OAuthBadge,
24
+ b as RequirementBadges,
25
+ j as SecretsBadge
27
26
  };
@@ -6,7 +6,7 @@ import "../atoms/card.js";
6
6
  import "../atoms/checkbox.js";
7
7
  import "../atoms/view-tools-control.js";
8
8
  import "../../../lib/utils.js";
9
- import { T as k } from "../../../toolkit-card-B97E7TBA.js";
9
+ import { T as k } from "../../../toolkit-card-CB1oiaei.js";
10
10
  import "../utils/memo.js";
11
11
  export {
12
12
  k as ToolkitCard
@@ -0,0 +1,7 @@
1
+ import type * as React from "react";
2
+ export type ChatPageSkeletonProps = {
3
+ defaultSidebarOpen?: boolean;
4
+ showSidebar?: boolean;
5
+ } & React.ComponentProps<"div">;
6
+ export declare function ChatPageSkeleton({ defaultSidebarOpen, showSidebar, className, ...props }: ChatPageSkeletonProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=chat-page-skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-page-skeleton.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/pages/chat-page-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAQpC,MAAM,MAAM,qBAAqB,GAAG;IAClC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEhC,wBAAgB,gBAAgB,CAAC,EAC/B,kBAAyB,EACzB,WAAkB,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,qBAAqB,2CAavB"}
@@ -0,0 +1,18 @@
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import { SidebarProvider as m, SidebarInset as d } from "../atoms/sidebar.js";
3
+ import { ChatContentSkeleton as n, ChatSidebarSkeleton as f } from "../templates/chat-template-skeletons.js";
4
+ import { cn as l } from "../../../lib/utils.js";
5
+ function p({
6
+ defaultSidebarOpen: o = !0,
7
+ showSidebar: i = !0,
8
+ className: r,
9
+ ...t
10
+ }) {
11
+ return i ? /* @__PURE__ */ a(m, { defaultOpen: o, children: [
12
+ /* @__PURE__ */ e(f, {}),
13
+ /* @__PURE__ */ e(d, { className: l(r), ...t, children: /* @__PURE__ */ e(n, {}) })
14
+ ] }) : /* @__PURE__ */ e(n, { className: r, ...t });
15
+ }
16
+ export {
17
+ p as ChatPageSkeleton
18
+ };
@@ -1,6 +1,6 @@
1
1
  /** biome-ignore-all lint/performance/noBarrelFile: Barrel files are acceptable for atomic component folders */
2
- export type { ChatPageProps, ChatPageSuggestion } from './chat-page';
3
- export { ChatPage } from './chat-page';
2
+ export type { ChatPageSkeletonProps } from './chat-page-skeleton';
3
+ export { ChatPageSkeleton } from './chat-page-skeleton';
4
4
  export type { LoginPageProps } from './login-page';
5
5
  export { LoginPage } from './login-page';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/pages/index.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAE/G,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/pages/index.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAE/G,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
@@ -1,6 +1,6 @@
1
- import { ChatPage as r } from "./chat-page.js";
2
- import { LoginPage as g } from "./login-page.js";
1
+ import { ChatPageSkeleton as r } from "./chat-page-skeleton.js";
2
+ import { LoginPage as a } from "./login-page.js";
3
3
  export {
4
- r as ChatPage,
5
- g as LoginPage
4
+ r as ChatPageSkeleton,
5
+ a as LoginPage
6
6
  };
@@ -0,0 +1,12 @@
1
+ import type * as React from "react";
2
+ export type ChatHeaderSkeletonProps = React.ComponentProps<"header">;
3
+ export declare function ChatHeaderSkeleton({ className, ...props }: ChatHeaderSkeletonProps): import("react/jsx-runtime").JSX.Element;
4
+ export type ChatBodySkeletonProps = React.ComponentProps<"div">;
5
+ export declare function ChatBodySkeleton({ className, ...props }: ChatBodySkeletonProps): import("react/jsx-runtime").JSX.Element;
6
+ export type ChatFooterSkeletonProps = React.ComponentProps<"footer">;
7
+ export declare function ChatFooterSkeleton({ className, ...props }: ChatFooterSkeletonProps): import("react/jsx-runtime").JSX.Element;
8
+ export type ChatSidebarSkeletonProps = React.ComponentProps<"div">;
9
+ export declare function ChatSidebarSkeleton({ className, ...props }: ChatSidebarSkeletonProps): import("react/jsx-runtime").JSX.Element;
10
+ export type ChatContentSkeletonProps = React.ComponentProps<"div">;
11
+ export declare function ChatContentSkeleton({ className, ...props }: ChatContentSkeletonProps): import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=chat-template-skeletons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-template-skeletons.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/templates/chat-template-skeletons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAcpC,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAErE,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAYzB;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,2CAevB;AAkBD,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAErE,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAyBzB;AAID,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEnE,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,2CA8C1B;AAID,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEnE,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,2CAQ1B"}
@@ -0,0 +1,127 @@
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import { Skeleton as l } from "../atoms/skeleton.js";
3
+ import { ChatTemplateOverview as o, ChatTemplate as t, ChatTemplateFooter as i, ChatTemplateSuggestions as h, ChatTemplateHeader as p, ChatTemplateHeaderGroup as n } from "./chat-template.js";
4
+ import { cn as m } from "../../../lib/utils.js";
5
+ function f({
6
+ className: s,
7
+ ...d
8
+ }) {
9
+ return /* @__PURE__ */ a(p, { className: s, ...d, children: [
10
+ /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(l, { className: "h-7 w-7 rounded-md" }) }),
11
+ /* @__PURE__ */ e("div", { className: "flex-1" }),
12
+ /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(l, { className: "h-9 w-9 rounded-md sm:w-[88px]" }) })
13
+ ] });
14
+ }
15
+ function u({
16
+ className: s,
17
+ ...d
18
+ }) {
19
+ return /* @__PURE__ */ e(
20
+ "div",
21
+ {
22
+ className: m(
23
+ "flex min-w-0 flex-1 flex-col gap-6 overflow-y-auto pt-4",
24
+ s
25
+ ),
26
+ ...d,
27
+ children: /* @__PURE__ */ a(o, { children: [
28
+ /* @__PURE__ */ e(l, { className: "mx-auto mb-2 h-8 w-40 rounded-lg sm:mb-4 sm:h-9 sm:w-48 md:h-[44px] md:w-56" }),
29
+ /* @__PURE__ */ e(l, { className: "mx-auto mb-4 h-7 w-56 rounded-lg sm:mb-8 sm:h-8 sm:w-72 md:h-[44px] md:w-96" })
30
+ ] })
31
+ }
32
+ );
33
+ }
34
+ function x() {
35
+ return /* @__PURE__ */ a("div", { className: "flex w-full flex-col gap-2 rounded-2xl border bg-card p-4 shadow-xs", children: [
36
+ /* @__PURE__ */ e(l, { className: "h-8 w-8 rounded-xl sm:h-10 sm:w-10" }),
37
+ /* @__PURE__ */ a("div", { className: "space-y-2 pt-2", children: [
38
+ /* @__PURE__ */ e(l, { className: "h-4 w-3/4" }),
39
+ /* @__PURE__ */ e(l, { className: "h-3 w-1/2" })
40
+ ] })
41
+ ] });
42
+ }
43
+ function N({
44
+ className: s,
45
+ ...d
46
+ }) {
47
+ return /* @__PURE__ */ a(i, { className: s, ...d, children: [
48
+ /* @__PURE__ */ e(h, { children: Array.from({ length: 5 }).map((c, r) => /* @__PURE__ */ e(
49
+ "div",
50
+ {
51
+ className: m(
52
+ "col-span-12 sm:col-span-6",
53
+ r < 3 ? "md:col-span-4" : "md:col-span-6",
54
+ r > 1 && "hidden sm:block"
55
+ ),
56
+ children: /* @__PURE__ */ e(x, {})
57
+ },
58
+ `suggestion-skeleton-${r.toString()}`
59
+ )) }),
60
+ /* @__PURE__ */ a("div", { className: "rounded-lg border bg-background p-2 shadow-xs", children: [
61
+ /* @__PURE__ */ e(l, { className: "h-[44px] w-full rounded-md" }),
62
+ /* @__PURE__ */ e("div", { className: "flex justify-end px-2 pt-2 pb-2", children: /* @__PURE__ */ e(l, { className: "h-9 w-9 rounded-md" }) })
63
+ ] })
64
+ ] });
65
+ }
66
+ function C({
67
+ className: s,
68
+ ...d
69
+ }) {
70
+ return /* @__PURE__ */ a(
71
+ "div",
72
+ {
73
+ className: m(
74
+ "flex w-(--sidebar-width) shrink-0 flex-col bg-sidebar p-2",
75
+ s
76
+ ),
77
+ ...d,
78
+ children: [
79
+ /* @__PURE__ */ a("div", { className: "flex flex-col gap-6 pb-2", children: [
80
+ /* @__PURE__ */ e("div", { className: "flex items-center px-2 pt-2", children: /* @__PURE__ */ e(l, { className: "h-5 w-20" }) }),
81
+ /* @__PURE__ */ e(l, { className: "h-9 w-full rounded-md" })
82
+ ] }),
83
+ /* @__PURE__ */ a("div", { className: "flex-1 overflow-hidden py-2", children: [
84
+ /* @__PURE__ */ e("div", { className: "px-2 py-1", children: /* @__PURE__ */ e(l, { className: "mb-2 h-3 w-12" }) }),
85
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-0.5", children: Array.from({ length: 6 }).map((c, r) => /* @__PURE__ */ e(
86
+ "div",
87
+ {
88
+ className: "flex h-8 items-center gap-2 rounded-md px-2",
89
+ children: /* @__PURE__ */ e(
90
+ l,
91
+ {
92
+ className: "h-4 flex-1",
93
+ style: { maxWidth: `${55 + r * 17 % 35}%` }
94
+ }
95
+ )
96
+ },
97
+ `skeleton-row-${r.toString()}`
98
+ )) })
99
+ ] }),
100
+ /* @__PURE__ */ e("div", { className: "mt-auto p-2", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2 rounded-lg p-2", children: [
101
+ /* @__PURE__ */ e(l, { className: "h-8 w-8 rounded-full" }),
102
+ /* @__PURE__ */ a("div", { className: "flex flex-1 flex-col gap-1", children: [
103
+ /* @__PURE__ */ e(l, { className: "h-3 w-24" }),
104
+ /* @__PURE__ */ e(l, { className: "h-2.5 w-32" })
105
+ ] })
106
+ ] }) })
107
+ ]
108
+ }
109
+ );
110
+ }
111
+ function k({
112
+ className: s,
113
+ ...d
114
+ }) {
115
+ return /* @__PURE__ */ a(t, { className: s, ...d, children: [
116
+ /* @__PURE__ */ e(f, {}),
117
+ /* @__PURE__ */ e(u, {}),
118
+ /* @__PURE__ */ e(N, {})
119
+ ] });
120
+ }
121
+ export {
122
+ u as ChatBodySkeleton,
123
+ k as ChatContentSkeleton,
124
+ N as ChatFooterSkeleton,
125
+ f as ChatHeaderSkeleton,
126
+ C as ChatSidebarSkeleton
127
+ };
@@ -0,0 +1,20 @@
1
+ import type * as React from "react";
2
+ export type ErrorTemplateProps = React.ComponentProps<"div">;
3
+ export declare function ErrorTemplate({ className, ...props }: ErrorTemplateProps): import("react/jsx-runtime").JSX.Element;
4
+ export type ErrorTemplateLogoProps = React.ComponentProps<"div">;
5
+ export declare function ErrorTemplateLogo({ className, ...props }: ErrorTemplateLogoProps): import("react/jsx-runtime").JSX.Element;
6
+ export type ErrorTemplateIconProps = React.ComponentProps<"div">;
7
+ export declare function ErrorTemplateIcon({ className, ...props }: ErrorTemplateIconProps): import("react/jsx-runtime").JSX.Element;
8
+ export type ErrorTemplateContentProps = React.ComponentProps<"main">;
9
+ export declare function ErrorTemplateContent({ className, ...props }: ErrorTemplateContentProps): import("react/jsx-runtime").JSX.Element;
10
+ export type ErrorTemplateTitleProps = React.ComponentProps<"h1">;
11
+ export declare function ErrorTemplateTitle({ className, ...props }: ErrorTemplateTitleProps): import("react/jsx-runtime").JSX.Element;
12
+ export type ErrorTemplateDescriptionProps = React.ComponentProps<"p">;
13
+ export declare function ErrorTemplateDescription({ className, ...props }: ErrorTemplateDescriptionProps): import("react/jsx-runtime").JSX.Element;
14
+ export type ErrorTemplateUrlProps = {
15
+ url: string;
16
+ } & Omit<React.ComponentProps<"div">, "children">;
17
+ export declare function ErrorTemplateUrl({ className, url, ...props }: ErrorTemplateUrlProps): import("react/jsx-runtime").JSX.Element;
18
+ export type ErrorTemplateActionsProps = React.ComponentProps<"div">;
19
+ export declare function ErrorTemplateActions({ className, ...props }: ErrorTemplateActionsProps): import("react/jsx-runtime").JSX.Element;
20
+ //# sourceMappingURL=error-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-template.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/templates/error-template.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAE7D,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAUxE;AAID,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEjE,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAExB;AAID,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEjE,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAExB;AAID,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AAErE,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,yBAAyB,2CAU3B;AAID,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AAEjE,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAUzB;AAID,MAAM,MAAM,6BAA6B,GAAG,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AAEtE,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,6BAA6B,2CAU/B;AAID,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;CACb,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAElD,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,qBAAqB,2CAkBvB;AAID,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpE,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,yBAAyB,2CAU3B"}
@@ -0,0 +1,117 @@
1
+ import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
+ import { cn as n } from "../../../lib/utils.js";
3
+ function s({ className: e, ...r }) {
4
+ return /* @__PURE__ */ t(
5
+ "div",
6
+ {
7
+ className: n(
8
+ "relative flex min-h-svh w-full flex-col items-center justify-center overflow-hidden bg-background pb-12 text-foreground",
9
+ e
10
+ ),
11
+ ...r
12
+ }
13
+ );
14
+ }
15
+ function c({
16
+ className: e,
17
+ ...r
18
+ }) {
19
+ return /* @__PURE__ */ t("div", { className: n("mb-6", e), ...r });
20
+ }
21
+ function i({
22
+ className: e,
23
+ ...r
24
+ }) {
25
+ return /* @__PURE__ */ t("div", { className: n("mb-6", e), ...r });
26
+ }
27
+ function u({
28
+ className: e,
29
+ ...r
30
+ }) {
31
+ return /* @__PURE__ */ t(
32
+ "main",
33
+ {
34
+ className: n(
35
+ "relative mx-auto flex w-full max-w-2xl flex-col items-center text-center",
36
+ e
37
+ ),
38
+ ...r
39
+ }
40
+ );
41
+ }
42
+ function x({
43
+ className: e,
44
+ ...r
45
+ }) {
46
+ return /* @__PURE__ */ t(
47
+ "h1",
48
+ {
49
+ className: n(
50
+ "font-medium text-muted-foreground text-sm uppercase tracking-[0.2em]",
51
+ e
52
+ ),
53
+ ...r
54
+ }
55
+ );
56
+ }
57
+ function d({
58
+ className: e,
59
+ ...r
60
+ }) {
61
+ return /* @__PURE__ */ t(
62
+ "p",
63
+ {
64
+ className: n(
65
+ "mx-auto mt-3 max-w-md text-muted-foreground text-sm leading-relaxed",
66
+ e
67
+ ),
68
+ ...r
69
+ }
70
+ );
71
+ }
72
+ function f({
73
+ className: e,
74
+ url: r,
75
+ ...o
76
+ }) {
77
+ return /* @__PURE__ */ m(
78
+ "div",
79
+ {
80
+ className: n(
81
+ "mt-5 inline-flex max-w-sm items-center gap-2 rounded-lg border border-border/40 bg-muted/20 px-3 py-1.5",
82
+ e
83
+ ),
84
+ ...o,
85
+ children: [
86
+ /* @__PURE__ */ t("span", { className: "shrink-0 text-muted-foreground text-xs uppercase tracking-widest", children: "URL" }),
87
+ /* @__PURE__ */ t("span", { className: "h-3 w-px bg-border/60" }),
88
+ /* @__PURE__ */ t("span", { className: "truncate font-mono text-foreground/70 text-xs", children: r })
89
+ ]
90
+ }
91
+ );
92
+ }
93
+ function p({
94
+ className: e,
95
+ ...r
96
+ }) {
97
+ return /* @__PURE__ */ t(
98
+ "div",
99
+ {
100
+ className: n(
101
+ "mt-8 flex w-full flex-col gap-3 sm:flex-row sm:justify-center",
102
+ e
103
+ ),
104
+ ...r
105
+ }
106
+ );
107
+ }
108
+ export {
109
+ s as ErrorTemplate,
110
+ p as ErrorTemplateActions,
111
+ u as ErrorTemplateContent,
112
+ d as ErrorTemplateDescription,
113
+ i as ErrorTemplateIcon,
114
+ c as ErrorTemplateLogo,
115
+ x as ErrorTemplateTitle,
116
+ f as ErrorTemplateUrl
117
+ };
@@ -3,4 +3,8 @@ export type { AuthTemplateCardProps, AuthTemplateContentProps, AuthTemplateDefau
3
3
  export { AuthTemplate, AuthTemplateCard, AuthTemplateContent, AuthTemplateDefaultBackground, AuthTemplateDescription, AuthTemplateFooter, AuthTemplateGridOverlay, AuthTemplateHeader, AuthTemplateLegal, AuthTemplateLegalLink, AuthTemplateLogo, AuthTemplatePrompt, AuthTemplatePromptLink, AuthTemplateTitle, AuthTemplateVideoBackground, } from './auth-template';
4
4
  export type { ChatTemplateBodyProps, ChatTemplateFooterProps, ChatTemplateHeaderGroupProps, ChatTemplateHeaderProps, ChatTemplateOverviewProps, ChatTemplateOverviewSubtitleProps, ChatTemplateOverviewTitleProps, ChatTemplateProps, ChatTemplateSuggestionsProps, } from './chat-template';
5
5
  export { ChatTemplate, ChatTemplateBody, ChatTemplateFooter, ChatTemplateHeader, ChatTemplateHeaderGroup, ChatTemplateOverview, ChatTemplateOverviewSubtitle, ChatTemplateOverviewTitle, ChatTemplateSuggestions, } from './chat-template';
6
+ export type { ChatBodySkeletonProps, ChatContentSkeletonProps, ChatFooterSkeletonProps, ChatHeaderSkeletonProps, ChatSidebarSkeletonProps, } from './chat-template-skeletons';
7
+ export { ChatBodySkeleton, ChatContentSkeleton, ChatFooterSkeleton, ChatHeaderSkeleton, ChatSidebarSkeleton, } from './chat-template-skeletons';
8
+ export type { ErrorTemplateActionsProps, ErrorTemplateContentProps, ErrorTemplateDescriptionProps, ErrorTemplateIconProps, ErrorTemplateLogoProps, ErrorTemplateProps, ErrorTemplateTitleProps, ErrorTemplateUrlProps, } from './error-template';
9
+ export { ErrorTemplate, ErrorTemplateActions, ErrorTemplateContent, ErrorTemplateDescription, ErrorTemplateIcon, ErrorTemplateLogo, ErrorTemplateTitle, ErrorTemplateUrl, } from './error-template';
6
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/templates/index.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAE/G,YAAY,EACV,qBAAqB,EACrB,wBAAwB,EACxB,kCAAkC,EAClC,4BAA4B,EAC5B,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,gCAAgC,GACjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,6BAA6B,EAC7B,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,yBAAyB,EACzB,iCAAiC,EACjC,8BAA8B,EAC9B,iBAAiB,EACjB,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/templates/index.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAE/G,YAAY,EACV,qBAAqB,EACrB,wBAAwB,EACxB,kCAAkC,EAClC,4BAA4B,EAC5B,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,gCAAgC,GACjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,6BAA6B,EAC7B,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,yBAAyB,EACzB,iCAAiC,EACjC,8BAA8B,EAC9B,iBAAiB,EACjB,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC7B,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC"}
@@ -1,28 +1,43 @@
1
- import { AuthTemplate as a, AuthTemplateCard as l, AuthTemplateContent as p, AuthTemplateDefaultBackground as m, AuthTemplateDescription as T, AuthTemplateFooter as h, AuthTemplateGridOverlay as r, AuthTemplateHeader as u, AuthTemplateLegal as o, AuthTemplateLegalLink as A, AuthTemplateLogo as i, AuthTemplatePrompt as C, AuthTemplatePromptLink as d, AuthTemplateTitle as n, AuthTemplateVideoBackground as g } from "./auth-template.js";
2
- import { ChatTemplate as L, ChatTemplateBody as k, ChatTemplateFooter as O, ChatTemplateHeader as c, ChatTemplateHeaderGroup as f, ChatTemplateOverview as s, ChatTemplateOverviewSubtitle as w, ChatTemplateOverviewTitle as B, ChatTemplateSuggestions as H } from "./chat-template.js";
1
+ import { AuthTemplate as a, AuthTemplateCard as r, AuthTemplateContent as o, AuthTemplateDefaultBackground as l, AuthTemplateDescription as p, AuthTemplateFooter as m, AuthTemplateGridOverlay as T, AuthTemplateHeader as h, AuthTemplateLegal as u, AuthTemplateLegalLink as n, AuthTemplateLogo as i, AuthTemplatePrompt as C, AuthTemplatePromptLink as A, AuthTemplateTitle as d, AuthTemplateVideoBackground as k } from "./auth-template.js";
2
+ import { ChatTemplate as E, ChatTemplateBody as S, ChatTemplateFooter as v, ChatTemplateHeader as c, ChatTemplateHeaderGroup as L, ChatTemplateOverview as f, ChatTemplateOverviewSubtitle as s, ChatTemplateOverviewTitle as x, ChatTemplateSuggestions as B } from "./chat-template.js";
3
+ import { ChatBodySkeleton as O, ChatContentSkeleton as w, ChatFooterSkeleton as y, ChatHeaderSkeleton as D, ChatSidebarSkeleton as F } from "./chat-template-skeletons.js";
4
+ import { ErrorTemplate as G, ErrorTemplateActions as P, ErrorTemplateContent as I, ErrorTemplateDescription as U, ErrorTemplateIcon as V, ErrorTemplateLogo as j, ErrorTemplateTitle as q, ErrorTemplateUrl as z } from "./error-template.js";
3
5
  export {
4
6
  a as AuthTemplate,
5
- l as AuthTemplateCard,
6
- p as AuthTemplateContent,
7
- m as AuthTemplateDefaultBackground,
8
- T as AuthTemplateDescription,
9
- h as AuthTemplateFooter,
10
- r as AuthTemplateGridOverlay,
11
- u as AuthTemplateHeader,
12
- o as AuthTemplateLegal,
13
- A as AuthTemplateLegalLink,
7
+ r as AuthTemplateCard,
8
+ o as AuthTemplateContent,
9
+ l as AuthTemplateDefaultBackground,
10
+ p as AuthTemplateDescription,
11
+ m as AuthTemplateFooter,
12
+ T as AuthTemplateGridOverlay,
13
+ h as AuthTemplateHeader,
14
+ u as AuthTemplateLegal,
15
+ n as AuthTemplateLegalLink,
14
16
  i as AuthTemplateLogo,
15
17
  C as AuthTemplatePrompt,
16
- d as AuthTemplatePromptLink,
17
- n as AuthTemplateTitle,
18
- g as AuthTemplateVideoBackground,
19
- L as ChatTemplate,
20
- k as ChatTemplateBody,
21
- O as ChatTemplateFooter,
18
+ A as AuthTemplatePromptLink,
19
+ d as AuthTemplateTitle,
20
+ k as AuthTemplateVideoBackground,
21
+ O as ChatBodySkeleton,
22
+ w as ChatContentSkeleton,
23
+ y as ChatFooterSkeleton,
24
+ D as ChatHeaderSkeleton,
25
+ F as ChatSidebarSkeleton,
26
+ E as ChatTemplate,
27
+ S as ChatTemplateBody,
28
+ v as ChatTemplateFooter,
22
29
  c as ChatTemplateHeader,
23
- f as ChatTemplateHeaderGroup,
24
- s as ChatTemplateOverview,
25
- w as ChatTemplateOverviewSubtitle,
26
- B as ChatTemplateOverviewTitle,
27
- H as ChatTemplateSuggestions
30
+ L as ChatTemplateHeaderGroup,
31
+ f as ChatTemplateOverview,
32
+ s as ChatTemplateOverviewSubtitle,
33
+ x as ChatTemplateOverviewTitle,
34
+ B as ChatTemplateSuggestions,
35
+ G as ErrorTemplate,
36
+ P as ErrorTemplateActions,
37
+ I as ErrorTemplateContent,
38
+ U as ErrorTemplateDescription,
39
+ V as ErrorTemplateIcon,
40
+ j as ErrorTemplateLogo,
41
+ q as ErrorTemplateTitle,
42
+ z as ErrorTemplateUrl
28
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../lib/hooks/use-mobile.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,YAgB1B"}
1
+ {"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../lib/hooks/use-mobile.ts"],"names":[],"mappings":"AAWA,wBAAgB,WAAW,YAa1B"}
@@ -1,16 +1,17 @@
1
- import * as o from "react";
1
+ import * as i from "react";
2
2
  const e = 768;
3
- function r() {
4
- const [s, n] = o.useState(
5
- void 0
6
- );
7
- return o.useEffect(() => {
8
- const t = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => {
9
- n(window.innerWidth < e);
3
+ function s() {
4
+ return typeof window > "u" ? !1 : window.innerWidth < e;
5
+ }
6
+ function d() {
7
+ const [o, r] = i.useState(s);
8
+ return i.useEffect(() => {
9
+ const n = window.matchMedia(`(max-width: ${e - 1}px)`), t = () => {
10
+ r(window.innerWidth < e);
10
11
  };
11
- return t.addEventListener("change", i), n(window.innerWidth < e), () => t.removeEventListener("change", i);
12
- }, []), !!s;
12
+ return n.addEventListener("change", t), () => n.removeEventListener("change", t);
13
+ }, []), o;
13
14
  }
14
15
  export {
15
- r as useIsMobile
16
+ d as useIsMobile
16
17
  };