@arcadeai/design-system 3.37.0 → 3.38.1

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 (27) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/assets/tokens.css +1 -1
  3. package/dist/assets/variables.css +1 -1
  4. package/dist/components/index.js +287 -284
  5. package/dist/components/ui/atoms/index.d.ts +1 -0
  6. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  7. package/dist/components/ui/atoms/index.js +184 -181
  8. package/dist/components/ui/atoms/sparkle-burst.d.ts +21 -0
  9. package/dist/components/ui/atoms/sparkle-burst.d.ts.map +1 -0
  10. package/dist/components/ui/atoms/sparkle-burst.js +29 -0
  11. package/dist/components/ui/index.js +287 -284
  12. package/dist/components/ui/molecules/command-bar.d.ts +8 -1
  13. package/dist/components/ui/molecules/command-bar.d.ts.map +1 -1
  14. package/dist/components/ui/molecules/command-bar.js +24 -17
  15. package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
  16. package/dist/components/ui/molecules/prompt-input.js +57 -45
  17. package/dist/components/ui/molecules/steps-progress.d.ts +18 -1
  18. package/dist/components/ui/molecules/steps-progress.d.ts.map +1 -1
  19. package/dist/components/ui/molecules/steps-progress.js +201 -46
  20. package/dist/components/ui/molecules/suggestion-card.d.ts +2 -2
  21. package/dist/components/ui/molecules/suggestion-card.d.ts.map +1 -1
  22. package/dist/components/ui/molecules/suggestion-card.js +86 -49
  23. package/dist/components/ui/molecules/tool-authorization.js +5 -5
  24. package/dist/components/ui/templates/chat-template.d.ts.map +1 -1
  25. package/dist/components/ui/templates/chat-template.js +53 -50
  26. package/dist/main.js +230 -227
  27. package/package.json +1 -1
@@ -1,79 +1,116 @@
1
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { Skeleton as r } from "../atoms/skeleton.js";
3
- import { cn as a } from "../../../lib/utils.js";
4
- function g({
5
- className: t,
6
- icon: o,
7
- title: d,
8
- subtitle: l,
9
- ...n
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__ */ s(
12
+ return /* @__PURE__ */ t(
12
13
  "button",
13
14
  {
14
- className: a(
15
- "flex w-full cursor-pointer flex-col gap-2 rounded-2xl border bg-card p-4 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",
16
- t
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
- ...n,
25
+ ...i,
21
26
  children: [
22
27
  /* @__PURE__ */ e(
23
28
  "div",
24
29
  {
25
- className: "flex size-8 items-center justify-center rounded-xl border bg-muted shadow-xs sm:size-10",
30
+ className: "flex items-center justify-center rounded-xl border bg-muted shadow-xs",
26
31
  "data-slot": "suggestion-card-icon",
27
- children: o
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__ */ s("div", { className: "space-y-2 pt-2", children: [
31
- /* @__PURE__ */ e(
32
- "h3",
33
- {
34
- className: "font-semibold text-card-foreground text-sm",
35
- "data-slot": "suggestion-card-title",
36
- children: d
37
- }
38
- ),
39
- /* @__PURE__ */ e(
40
- "p",
41
- {
42
- className: "text-muted-foreground text-xs",
43
- "data-slot": "suggestion-card-subtitle",
44
- children: l
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 m({
53
- className: t,
54
- ...o
68
+ function h({
69
+ className: r,
70
+ style: s,
71
+ ...a
55
72
  }) {
56
- return /* @__PURE__ */ s(
73
+ return /* @__PURE__ */ t(
57
74
  "div",
58
75
  {
59
76
  "aria-hidden": "true",
60
- className: a(
61
- "flex w-full flex-col gap-2 rounded-2xl border bg-card p-4 shadow-xs",
62
- t
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
- ...o,
82
+ style: {
83
+ padding: "clamp(0.75rem, 1.6vh, 1rem)",
84
+ ...s
85
+ },
86
+ ...a,
66
87
  children: [
67
- /* @__PURE__ */ e(r, { className: "size-8 rounded-xl sm:size-10" }),
68
- /* @__PURE__ */ s("div", { className: "space-y-2 pt-2", children: [
69
- /* @__PURE__ */ e(r, { className: "h-4 w-3/4 rounded" }),
70
- /* @__PURE__ */ e(r, { className: "h-3 w-1/2 rounded" })
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
- g as SuggestionCard,
78
- m as SuggestionCardSkeleton
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 j({
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 y({
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
- j as ToolAuthorizationContent,
157
+ y as ToolAuthorizationContent,
158
158
  T as ToolAuthorizationHeader,
159
- y as ToolAuthorizationMessage
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,MAA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4B,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,2CAQ9B"}
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: t, ...e }) {
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
- t
9
+ e
10
10
  ),
11
11
  "data-slot": "chat-template",
12
- ...e
12
+ ...t
13
13
  }
14
14
  );
15
15
  }
16
16
  function n({
17
- className: t,
18
- ...e
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
- t
25
+ e
26
26
  ),
27
27
  "data-slot": "chat-template-header",
28
- ...e
28
+ ...t
29
29
  }
30
30
  );
31
31
  }
32
- function s({
33
- className: t,
34
- ...e
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", t),
39
+ className: l("flex items-center gap-2", e),
40
40
  "data-slot": "chat-template-header-group",
41
- ...e
41
+ ...t
42
42
  }
43
43
  );
44
44
  }
45
- function i({
46
- className: t,
47
- ...e
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
- t
54
+ e
55
55
  ),
56
56
  "data-slot": "chat-template-body",
57
- ...e
57
+ ...t
58
58
  }
59
59
  );
60
60
  }
61
- function c({
62
- className: t,
63
- ...e
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
- t
70
+ e
71
71
  ),
72
72
  "data-slot": "chat-template-footer",
73
- ...e
73
+ ...t
74
74
  }
75
75
  );
76
76
  }
77
77
  function d({
78
- className: t,
79
- ...e
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-8 flex max-w-xl flex-col rounded-xl p-6 text-center leading-relaxed sm:mt-16 md:mt-24",
86
- t
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
- ...e
89
+ ...t
90
90
  }
91
91
  );
92
92
  }
93
- function p({
94
- className: t,
95
- ...e
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-2 bg-linear-to-r from-foreground to-foreground/70 bg-clip-text font-bold font-serif text-2xl text-transparent tracking-wide sm:mb-4 sm:text-3xl md:text-4xl",
102
- t
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
- ...e
105
+ ...t
106
106
  }
107
107
  );
108
108
  }
109
- function x({
110
- className: t,
111
- ...e
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-4 bg-linear-to-r from-foreground/80 to-foreground/60 bg-clip-text font-medium text-transparent text-xl sm:mb-8 sm:text-2xl md:text-4xl",
118
- t
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
- ...e
121
+ ...t
122
122
  }
123
123
  );
124
124
  }
125
- function f({
126
- className: t,
127
- ...e
125
+ function u({
126
+ className: e,
127
+ ...t
128
128
  }) {
129
129
  return /* @__PURE__ */ a(
130
130
  "div",
131
131
  {
132
- className: l("mb-2 grid w-full grid-cols-12 gap-4 pt-1", t),
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
- ...e
137
+ ...t
135
138
  }
136
139
  );
137
140
  }
138
141
  export {
139
142
  m as ChatTemplate,
140
- i as ChatTemplateBody,
141
- c as ChatTemplateFooter,
143
+ p as ChatTemplateBody,
144
+ i as ChatTemplateFooter,
142
145
  n as ChatTemplateHeader,
143
- s as ChatTemplateHeaderGroup,
146
+ c as ChatTemplateHeaderGroup,
144
147
  d as ChatTemplateOverview,
145
- x as ChatTemplateOverviewSubtitle,
146
- p as ChatTemplateOverviewTitle,
147
- f as ChatTemplateSuggestions
148
+ f as ChatTemplateOverviewSubtitle,
149
+ s as ChatTemplateOverviewTitle,
150
+ u as ChatTemplateSuggestions
148
151
  };