@arcadeai/design-system 3.35.2 → 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.
- package/dist/assets/icons/claude-code-logotype.js +10 -0
- package/dist/assets/icons/cursor-logotype.js +10 -0
- package/dist/assets/icons/langchain-logotype.js +10 -0
- package/dist/assets/icons/mastra-logotype.js +10 -0
- package/dist/assets/icons/vercel-logotype.js +10 -0
- package/dist/components/index.js +631 -600
- package/dist/components/ui/atoms/arcade-gradient.d.ts +4 -0
- package/dist/components/ui/atoms/arcade-gradient.d.ts.map +1 -0
- package/dist/components/ui/atoms/arcade-gradient.js +26 -0
- package/dist/components/ui/atoms/brand-chip.d.ts +9 -0
- package/dist/components/ui/atoms/brand-chip.d.ts.map +1 -0
- package/dist/components/ui/atoms/brand-chip.js +19 -0
- package/dist/components/ui/atoms/code-block.d.ts.map +1 -1
- package/dist/components/ui/atoms/code-block.js +31 -723
- package/dist/components/ui/atoms/icons/claude-code-logotype.d.ts +4 -0
- package/dist/components/ui/atoms/icons/claude-code-logotype.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/claude-code-logotype.js +34 -0
- package/dist/components/ui/atoms/icons/cursor-logotype.d.ts +4 -0
- package/dist/components/ui/atoms/icons/cursor-logotype.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/cursor-logotype.js +21 -0
- package/dist/components/ui/atoms/icons/index.d.ts +5 -0
- package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/index.js +278 -268
- package/dist/components/ui/atoms/icons/langchain-logotype.d.ts +4 -0
- package/dist/components/ui/atoms/icons/langchain-logotype.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/langchain-logotype.js +45 -0
- package/dist/components/ui/atoms/icons/mastra-logotype.d.ts +4 -0
- package/dist/components/ui/atoms/icons/mastra-logotype.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/mastra-logotype.js +19 -0
- package/dist/components/ui/atoms/icons/vercel-logotype.d.ts +4 -0
- package/dist/components/ui/atoms/icons/vercel-logotype.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/vercel-logotype.js +26 -0
- package/dist/components/ui/atoms/icons/vercel.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/vercel.js +0 -1
- package/dist/components/ui/atoms/index.d.ts +2 -0
- package/dist/components/ui/atoms/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/index.js +530 -516
- package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
- package/dist/components/ui/atoms/virtualized-grid.js +16 -16
- package/dist/components/ui/index.js +631 -600
- package/dist/components/ui/molecules/chat-history-item.d.ts +21 -0
- package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -0
- package/dist/components/ui/molecules/chat-history-item.js +88 -0
- package/dist/components/ui/molecules/chat-message-list.d.ts +6 -0
- package/dist/components/ui/molecules/chat-message-list.d.ts.map +1 -1
- package/dist/components/ui/molecules/chat-message-list.js +117 -61
- package/dist/components/ui/molecules/command-bar.d.ts +7 -0
- package/dist/components/ui/molecules/command-bar.d.ts.map +1 -0
- package/dist/components/ui/molecules/command-bar.js +38 -0
- package/dist/components/ui/molecules/confirm-popover.d.ts +20 -0
- package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -0
- package/dist/components/ui/molecules/confirm-popover.js +50 -0
- package/dist/components/ui/molecules/empty-state.d.ts +2 -1
- package/dist/components/ui/molecules/empty-state.d.ts.map +1 -1
- package/dist/components/ui/molecules/empty-state.js +9 -7
- package/dist/components/ui/molecules/error-state.d.ts +17 -0
- package/dist/components/ui/molecules/error-state.d.ts.map +1 -0
- package/dist/components/ui/molecules/error-state.js +45 -0
- package/dist/components/ui/molecules/index.d.ts +9 -4
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +51 -49
- package/dist/components/ui/molecules/requirement-badges.js +4 -5
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/pages/chat-page-skeleton.d.ts +7 -0
- package/dist/components/ui/pages/chat-page-skeleton.d.ts.map +1 -0
- package/dist/components/ui/pages/chat-page-skeleton.js +18 -0
- package/dist/components/ui/pages/index.d.ts +2 -2
- package/dist/components/ui/pages/index.d.ts.map +1 -1
- package/dist/components/ui/pages/index.js +4 -4
- package/dist/components/ui/templates/chat-template-skeletons.d.ts +12 -0
- package/dist/components/ui/templates/chat-template-skeletons.d.ts.map +1 -0
- package/dist/components/ui/templates/chat-template-skeletons.js +127 -0
- package/dist/components/ui/templates/error-template.d.ts +20 -0
- package/dist/components/ui/templates/error-template.d.ts.map +1 -0
- package/dist/components/ui/templates/error-template.js +117 -0
- package/dist/components/ui/templates/index.d.ts +4 -0
- package/dist/components/ui/templates/index.d.ts.map +1 -1
- package/dist/components/ui/templates/index.js +37 -22
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/hooks/use-mobile.js +12 -11
- package/dist/lib/shiki-themes.d.ts +5 -0
- package/dist/lib/shiki-themes.d.ts.map +1 -0
- package/dist/lib/shiki-themes.js +7 -0
- package/dist/main.js +656 -625
- package/dist/metadata/toolkit-icons.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.js +187 -186
- package/dist/metadata/toolkits.d.ts.map +1 -1
- package/dist/metadata/toolkits.js +13 -0
- package/dist/{toolkit-card-B97E7TBA.js → toolkit-card-CB1oiaei.js} +2 -3
- package/dist/web-BwFNdl01.js +697 -0
- package/package.json +3 -2
- package/dist/components/ui/molecules/switcher.d.ts +0 -83
- package/dist/components/ui/molecules/switcher.d.ts.map +0 -1
- package/dist/components/ui/molecules/switcher.js +0 -164
- package/dist/components/ui/pages/chat-page.d.ts +0 -83
- package/dist/components/ui/pages/chat-page.d.ts.map +0 -1
- package/dist/components/ui/pages/chat-page.js +0 -385
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtualized-grid.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/virtualized-grid.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI;IACpC,0BAA0B;IAC1B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACzC,oCAAoC;IACpC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAClD,2CAA2C;IAC3C,eAAe,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IAChC,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;
|
|
1
|
+
{"version":3,"file":"virtualized-grid.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/virtualized-grid.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI;IACpC,0BAA0B;IAC1B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACzC,oCAAoC;IACpC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAClD,2CAA2C;IAC3C,eAAe,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IAChC,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAgBF,wBAAgB,eAAe,CAAC,CAAC,EAAE,EACjC,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,eAAe,EACf,UAAU,EACV,QAA2B,EAC3B,QAA6B,EAC7B,aAAwC,GACzC,EAAE,oBAAoB,CAAC,CAAC,CAAC,kDA0GzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
2
|
import * as w from "react";
|
|
3
|
-
import { useRef as F, useState as
|
|
3
|
+
import { useRef as F, useState as k, useEffect as T, useMemo as D } from "react";
|
|
4
4
|
import { flushSync as N } from "react-dom";
|
|
5
5
|
function y(r, l, e) {
|
|
6
6
|
let s = e.initialDeps ?? [], t, n = !0;
|
|
@@ -42,7 +42,7 @@ function O(r, l) {
|
|
|
42
42
|
throw new Error("Unexpected undefined");
|
|
43
43
|
return r;
|
|
44
44
|
}
|
|
45
|
-
const W = (r, l) => Math.abs(r - l) < 1.01,
|
|
45
|
+
const W = (r, l) => Math.abs(r - l) < 1.01, V = (r, l, e) => {
|
|
46
46
|
let s;
|
|
47
47
|
return function(...t) {
|
|
48
48
|
r.clearTimeout(s), s = r.setTimeout(() => l.apply(this, t), e);
|
|
@@ -50,7 +50,7 @@ const W = (r, l) => Math.abs(r - l) < 1.01, L = (r, l, e) => {
|
|
|
50
50
|
}, z = (r) => {
|
|
51
51
|
const { offsetWidth: l, offsetHeight: e } = r;
|
|
52
52
|
return { width: l, height: e };
|
|
53
|
-
},
|
|
53
|
+
}, L = (r) => r, j = (r) => {
|
|
54
54
|
const l = Math.max(r.startIndex - r.overscan, 0), e = Math.min(r.endIndex + r.overscan, r.count - 1), s = [];
|
|
55
55
|
for (let t = l; t <= e; t++)
|
|
56
56
|
s.push(t);
|
|
@@ -97,7 +97,7 @@ const W = (r, l) => Math.abs(r - l) < 1.01, L = (r, l, e) => {
|
|
|
97
97
|
return;
|
|
98
98
|
let t = 0;
|
|
99
99
|
const n = r.options.useScrollendEvent && I ? () => {
|
|
100
|
-
} :
|
|
100
|
+
} : V(
|
|
101
101
|
s,
|
|
102
102
|
() => {
|
|
103
103
|
l(t, !1);
|
|
@@ -132,7 +132,7 @@ const W = (r, l) => Math.abs(r - l) < 1.01, L = (r, l, e) => {
|
|
|
132
132
|
behavior: e
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
|
-
class
|
|
135
|
+
class q {
|
|
136
136
|
constructor(l) {
|
|
137
137
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.currentScrollToIndex = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
|
|
138
138
|
let e = null;
|
|
@@ -170,7 +170,7 @@ class U {
|
|
|
170
170
|
scrollPaddingStart: 0,
|
|
171
171
|
scrollPaddingEnd: 0,
|
|
172
172
|
horizontal: !1,
|
|
173
|
-
getItemKey:
|
|
173
|
+
getItemKey: L,
|
|
174
174
|
rangeExtractor: j,
|
|
175
175
|
onChange: () => {
|
|
176
176
|
},
|
|
@@ -323,7 +323,7 @@ class U {
|
|
|
323
323
|
this.getScrollOffset(),
|
|
324
324
|
this.options.lanes
|
|
325
325
|
],
|
|
326
|
-
(e, s, t, n) => this.range = e.length > 0 && s > 0 ?
|
|
326
|
+
(e, s, t, n) => this.range = e.length > 0 && s > 0 ? U({
|
|
327
327
|
measurements: e,
|
|
328
328
|
outerSize: s,
|
|
329
329
|
scrollOffset: t,
|
|
@@ -531,7 +531,7 @@ const _ = (r, l, e, s) => {
|
|
|
531
531
|
}
|
|
532
532
|
return r > 0 ? r - 1 : 0;
|
|
533
533
|
};
|
|
534
|
-
function
|
|
534
|
+
function U({
|
|
535
535
|
measurements: r,
|
|
536
536
|
outerSize: l,
|
|
537
537
|
scrollOffset: e,
|
|
@@ -579,7 +579,7 @@ function K({
|
|
|
579
579
|
r && o ? N(e) : e(), (i = l.onChange) == null || i.call(l, n, o);
|
|
580
580
|
}
|
|
581
581
|
}, [t] = w.useState(
|
|
582
|
-
() => new
|
|
582
|
+
() => new q(s)
|
|
583
583
|
);
|
|
584
584
|
return t.setOptions(s), A(() => t._didMount(), []), A(() => t._willUpdate()), t;
|
|
585
585
|
}
|
|
@@ -591,8 +591,8 @@ function G(r) {
|
|
|
591
591
|
...r
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
|
-
const X = 5, Y = 0
|
|
595
|
-
function
|
|
594
|
+
const X = 5, Y = 0;
|
|
595
|
+
function J(r, l) {
|
|
596
596
|
if (l <= 0)
|
|
597
597
|
throw new Error(`chunkArray: size must be positive, received ${l}`);
|
|
598
598
|
const e = [];
|
|
@@ -600,7 +600,7 @@ function Q(r, l) {
|
|
|
600
600
|
e.push(r.slice(s, s + l));
|
|
601
601
|
return e;
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function te({
|
|
604
604
|
items: r,
|
|
605
605
|
columns: l,
|
|
606
606
|
parentRef: e,
|
|
@@ -609,13 +609,13 @@ function se({
|
|
|
609
609
|
getItemKey: n,
|
|
610
610
|
overscan: o = X,
|
|
611
611
|
rowGapPx: i = Y,
|
|
612
|
-
gridClassName: h =
|
|
612
|
+
gridClassName: h = "grid grid-cols-1 gap-4"
|
|
613
613
|
}) {
|
|
614
614
|
if (l <= 0)
|
|
615
615
|
throw new Error(
|
|
616
616
|
`VirtualizedGrid: columns must be positive, received ${l}`
|
|
617
617
|
);
|
|
618
|
-
const u = F(null), [c, v] =
|
|
618
|
+
const u = F(null), [c, v] = k(0);
|
|
619
619
|
T(() => {
|
|
620
620
|
const m = u.current, p = e.current;
|
|
621
621
|
if (!(m && p))
|
|
@@ -628,7 +628,7 @@ function se({
|
|
|
628
628
|
const E = new ResizeObserver(d);
|
|
629
629
|
return E.observe(m), E.observe(p), () => E.disconnect();
|
|
630
630
|
}, [e]);
|
|
631
|
-
const a =
|
|
631
|
+
const a = D(() => J(r, l).map(
|
|
632
632
|
(p, d) => p.map((E, S) => ({
|
|
633
633
|
item: E,
|
|
634
634
|
index: d * l + S
|
|
@@ -679,5 +679,5 @@ function se({
|
|
|
679
679
|
);
|
|
680
680
|
}
|
|
681
681
|
export {
|
|
682
|
-
|
|
682
|
+
te as VirtualizedGrid
|
|
683
683
|
};
|