@arcadeai/design-system 3.27.5 → 3.27.7
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/attio.js +10 -0
- package/dist/assets/icons/claude.js +10 -0
- package/dist/assets/icons/cline.js +10 -0
- package/dist/assets/icons/cursor-install-dark.js +12 -0
- package/dist/assets/icons/cursor-install-light.js +12 -0
- package/dist/assets/icons/gemini.js +12 -0
- package/dist/assets/icons/goose.js +13 -0
- package/dist/assets/icons/openai.js +10 -0
- package/dist/assets/icons/vscode.js +12 -0
- package/dist/assets/icons/windsurf.js +10 -0
- package/dist/components/index.js +416 -396
- package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
- package/dist/components/ui/atoms/checkbox.js +100 -100
- package/dist/components/ui/atoms/icons/attio.d.ts +4 -0
- package/dist/components/ui/atoms/icons/attio.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/attio.js +27 -0
- package/dist/components/ui/atoms/icons/claude.d.ts +4 -0
- package/dist/components/ui/atoms/icons/claude.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/claude.js +27 -0
- package/dist/components/ui/atoms/icons/cline.d.ts +4 -0
- package/dist/components/ui/atoms/icons/cline.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/cline.js +23 -0
- package/dist/components/ui/atoms/icons/cursor-install-dark.d.ts +4 -0
- package/dist/components/ui/atoms/icons/cursor-install-dark.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/cursor-install-dark.js +79 -0
- package/dist/components/ui/atoms/icons/cursor-install-light.d.ts +4 -0
- package/dist/components/ui/atoms/icons/cursor-install-light.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/cursor-install-light.js +79 -0
- package/dist/components/ui/atoms/icons/gemini.d.ts +4 -0
- package/dist/components/ui/atoms/icons/gemini.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/gemini.js +234 -0
- package/dist/components/ui/atoms/icons/goose.d.ts +4 -0
- package/dist/components/ui/atoms/icons/goose.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/goose.js +22 -0
- package/dist/components/ui/atoms/icons/index.d.ts +10 -0
- package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/index.js +256 -236
- package/dist/components/ui/atoms/icons/openai.d.ts +4 -0
- package/dist/components/ui/atoms/icons/openai.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/openai.js +26 -0
- package/dist/components/ui/atoms/icons/vscode.d.ts +4 -0
- package/dist/components/ui/atoms/icons/vscode.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/vscode.js +187 -0
- package/dist/components/ui/atoms/icons/windsurf.d.ts +4 -0
- package/dist/components/ui/atoms/icons/windsurf.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/windsurf.js +26 -0
- package/dist/components/ui/atoms/index.js +399 -379
- package/dist/components/ui/index.js +416 -396
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.d.ts +6 -3
- package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +1 -1
- package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/tool-card.js +55 -54
- package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/toolkit-picker-trigger.js +34 -34
- package/dist/components/ui/molecules/toolkit-selection-summary.d.ts.map +1 -1
- package/dist/components/ui/molecules/toolkit-selection-summary.js +5 -5
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.d.ts.map +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +101 -74
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.d.ts.map +1 -1
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +74 -50
- package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.d.ts +21 -0
- package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.d.ts.map +1 -0
- package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.js +29 -0
- package/dist/components/ui/organisms/toolkit-picker/hooks/featured-toolkits.d.ts +1 -1
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +8 -0
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts.map +1 -1
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.js +120 -51
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts.map +1 -1
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +55 -24
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +20 -20
- package/dist/hooks/use-is-truncated.d.ts +13 -0
- package/dist/hooks/use-is-truncated.d.ts.map +1 -0
- package/dist/hooks/use-is-truncated.js +20 -0
- package/dist/lib/arcade/arcade.d.ts +0 -24
- package/dist/lib/arcade/arcade.d.ts.map +1 -1
- package/dist/lib/arcade/arcade.js +258 -421
- package/dist/lib/arcade/toolkit-collection.d.ts +15 -0
- package/dist/lib/arcade/toolkit-collection.d.ts.map +1 -0
- package/dist/lib/arcade/toolkit-collection.js +149 -0
- package/dist/main.js +455 -435
- package/dist/metadata/oauth-providers.d.ts +2 -0
- package/dist/metadata/oauth-providers.d.ts.map +1 -1
- package/dist/metadata/oauth-providers.js +84 -72
- package/dist/metadata/toolkits.js +7 -7
- package/dist/metadata/utils.d.ts +4 -7
- package/dist/metadata/utils.d.ts.map +1 -1
- package/dist/metadata/utils.js +16 -13
- package/dist/{toolkit-card-D6Dqff6p.js → toolkit-card-Cmp_yG03.js} +115 -110
- package/package.json +34 -23
|
@@ -1,123 +1,134 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Card as R, CardContent as j } from "./components/ui/atoms/card.js";
|
|
3
3
|
import { Checkbox as O } from "./components/ui/atoms/checkbox.js";
|
|
4
4
|
import { ViewToolsControl as $ } from "./components/ui/atoms/view-tools-control.js";
|
|
5
|
-
import { c as
|
|
6
|
-
import { c as
|
|
7
|
-
import { Key as
|
|
5
|
+
import { c as m } from "./utils-6KgZuQUR.js";
|
|
6
|
+
import { c as k } from "./index-r7CUvu2m.js";
|
|
7
|
+
import { Key as D, Fingerprint as K, Wrench as P, Package as z } from "lucide-react";
|
|
8
8
|
import * as f from "react";
|
|
9
9
|
import { Badge as N } from "./components/ui/atoms/badge.js";
|
|
10
|
-
import { ByocBadge as
|
|
10
|
+
import { ByocBadge as U } from "./components/ui/atoms/byoc-badge.js";
|
|
11
11
|
import "./components/ui/atoms/chart.js";
|
|
12
12
|
import "./components/ui/atoms/mobile-tooltip.js";
|
|
13
|
-
import { ProBadge as
|
|
13
|
+
import { ProBadge as _ } from "./components/ui/atoms/pro-badge.js";
|
|
14
14
|
import "./react-resizable-panels.browser-DYl0LXfw.js";
|
|
15
15
|
import "./components/ui/atoms/sidebar.js";
|
|
16
|
-
import { Tooltip as
|
|
16
|
+
import { Tooltip as v, TooltipTrigger as y, TooltipContent as w } from "./components/ui/atoms/tooltip.js";
|
|
17
17
|
import "./components/ui/molecules/date-time-picker.js";
|
|
18
18
|
import "./components/ui/molecules/tool-card.js";
|
|
19
|
-
import { areStringArraysEqual as
|
|
19
|
+
import { areStringArraysEqual as h, createPropsComparator as C } from "./components/ui/utils/memo.js";
|
|
20
20
|
import "./metadata/oauth-providers.js";
|
|
21
21
|
import "./metadata/toolkits.js";
|
|
22
22
|
import "./components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.js";
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const F = ({
|
|
24
|
+
secrets: r,
|
|
25
|
+
className: a
|
|
26
|
+
}) => {
|
|
27
|
+
const s = (r.pending?.length ?? 0) > 0, n = /* @__PURE__ */ i("div", { className: "space-y-3", children: [
|
|
25
28
|
/* @__PURE__ */ e("div", { className: "font-medium text-gray-900 dark:text-gray-100", children: "API Keys & Secrets" }),
|
|
26
|
-
(r.configured?.length ?? 0) > 0 && /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */ e("div", { className: "mb-1 font-medium text-emerald-700 text-xs dark:text-emerald-300", children: "Configured" }),
|
|
28
|
-
/* @__PURE__ */ e("ul", { className: "list-disc pl-4 text-gray-700 text-xs dark:text-gray-300", children: r.configured?.map((t) => /* @__PURE__ */ e("li", { children: t }, `cfg-${t}`)) })
|
|
29
|
+
(r.configured?.length ?? 0) > 0 && /* @__PURE__ */ i("div", { children: [
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "mb-1.5 font-medium text-emerald-700 text-xs dark:text-emerald-300", children: "Configured" }),
|
|
31
|
+
/* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-gray-700 text-xs dark:text-gray-300", children: r.configured?.map((t) => /* @__PURE__ */ e("li", { children: t }, `cfg-${t}`)) })
|
|
29
32
|
] }),
|
|
30
|
-
(r.pending?.length ?? 0) > 0 && /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */ e("div", { className: "mb-1 font-medium text-red-700 text-xs dark:text-red-300", children: "Pending" }),
|
|
32
|
-
/* @__PURE__ */ e("ul", { className: "list-disc pl-4 text-gray-700 text-xs dark:text-gray-300", children: r.pending?.map((t) => /* @__PURE__ */ e("li", { children: t }, `pen-${t}`)) })
|
|
33
|
+
(r.pending?.length ?? 0) > 0 && /* @__PURE__ */ i("div", { children: [
|
|
34
|
+
/* @__PURE__ */ e("div", { className: "mb-1.5 font-medium text-red-700 text-xs dark:text-red-300", children: "Pending" }),
|
|
35
|
+
/* @__PURE__ */ e("ul", { className: "list-disc space-y-1 pl-4 text-gray-700 text-xs dark:text-gray-300", children: r.pending?.map((t) => /* @__PURE__ */ e("li", { children: t }, `pen-${t}`)) })
|
|
33
36
|
] })
|
|
34
37
|
] });
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */ e(
|
|
38
|
+
return /* @__PURE__ */ i(v, { children: [
|
|
39
|
+
/* @__PURE__ */ e(y, { asChild: !0, children: /* @__PURE__ */ i(
|
|
37
40
|
N,
|
|
38
41
|
{
|
|
39
|
-
className:
|
|
42
|
+
className: m(
|
|
40
43
|
"gap-1.5 bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-200",
|
|
41
|
-
|
|
44
|
+
s && "border-l-2 border-l-yellow-600",
|
|
45
|
+
a
|
|
42
46
|
),
|
|
43
47
|
variant: "secondary",
|
|
44
48
|
children: [
|
|
45
|
-
/* @__PURE__ */ e(
|
|
49
|
+
/* @__PURE__ */ e(D, { className: "h-3.5 w-3.5" }),
|
|
46
50
|
"Secrets"
|
|
47
51
|
]
|
|
48
52
|
}
|
|
49
53
|
) }),
|
|
50
|
-
/* @__PURE__ */ e(
|
|
54
|
+
/* @__PURE__ */ e(w, { className: "max-w-xs p-4 text-sm", sideOffset: 12, children: n })
|
|
51
55
|
] });
|
|
52
|
-
},
|
|
53
|
-
|
|
56
|
+
}, S = ({
|
|
57
|
+
oauth: r,
|
|
58
|
+
className: a
|
|
59
|
+
}) => {
|
|
60
|
+
const s = r.providers.filter((d) => d.status === "active").length, t = r.providers.length - s > 0, l = /* @__PURE__ */ i("div", { className: "space-y-3", children: [
|
|
54
61
|
/* @__PURE__ */ e("div", { className: "font-medium text-gray-900 dark:text-gray-100", children: "OAuth Authorization" }),
|
|
55
|
-
r.providers.map((
|
|
56
|
-
/* @__PURE__ */ e("span", { className: "font-medium", children:
|
|
62
|
+
r.providers.map((d) => /* @__PURE__ */ i("div", { className: "text-gray-700 text-xs dark:text-gray-300", children: [
|
|
63
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: d.id }),
|
|
57
64
|
" ",
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
] },
|
|
65
|
+
d.status === "active" ? /* @__PURE__ */ e("span", { className: "text-emerald-700 dark:text-emerald-300", children: "(active)" }) : /* @__PURE__ */ e("span", { className: "text-red-700 dark:text-red-300", children: "(inactive)" }),
|
|
66
|
+
d.scopes.length > 0 && /* @__PURE__ */ e("div", { className: "mt-1 pl-3 text-gray-600 dark:text-gray-400", children: d.scopes.join(", ") })
|
|
67
|
+
] }, d.id))
|
|
61
68
|
] });
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */ e(
|
|
69
|
+
return /* @__PURE__ */ i(v, { children: [
|
|
70
|
+
/* @__PURE__ */ e(y, { asChild: !0, children: /* @__PURE__ */ i(
|
|
64
71
|
N,
|
|
65
72
|
{
|
|
66
|
-
className:
|
|
73
|
+
className: m(
|
|
67
74
|
"gap-1.5 bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-200",
|
|
68
|
-
t && "border-l-2 border-l-yellow-600"
|
|
75
|
+
t && "border-l-2 border-l-yellow-600",
|
|
76
|
+
a
|
|
69
77
|
),
|
|
70
78
|
variant: "secondary",
|
|
71
79
|
children: [
|
|
72
|
-
/* @__PURE__ */ e(
|
|
80
|
+
/* @__PURE__ */ e(K, { className: "h-3.5 w-3.5" }),
|
|
73
81
|
"OAuth"
|
|
74
82
|
]
|
|
75
83
|
}
|
|
76
84
|
) }),
|
|
77
|
-
/* @__PURE__ */ e(
|
|
85
|
+
/* @__PURE__ */ e(w, { className: "max-w-xs p-4 text-sm", sideOffset: 12, children: l })
|
|
78
86
|
] });
|
|
79
87
|
};
|
|
80
88
|
function W({
|
|
81
89
|
requirementsSummary: r,
|
|
82
90
|
isByoc: a = !1,
|
|
83
|
-
isPro: s = !1
|
|
91
|
+
isPro: s = !1,
|
|
92
|
+
badgeClassName: n
|
|
84
93
|
}) {
|
|
85
94
|
if (!(r?.secrets || r?.oauth || a || s))
|
|
86
95
|
return null;
|
|
87
|
-
const { secrets: t, oauth:
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
t && /* @__PURE__ */ e(G, { secrets: t }),
|
|
90
|
-
|
|
91
|
-
a && /* @__PURE__ */ e(
|
|
92
|
-
s && /* @__PURE__ */ e(
|
|
96
|
+
const { secrets: t, oauth: l } = r;
|
|
97
|
+
return /* @__PURE__ */ i("div", { className: "flex w-full flex-wrap items-center gap-1.5", children: [
|
|
98
|
+
t && /* @__PURE__ */ e(G, { className: n, secrets: t }),
|
|
99
|
+
l && /* @__PURE__ */ e(H, { className: n, oauth: l }),
|
|
100
|
+
a && /* @__PURE__ */ e(U, { className: m("gap-1.5 rounded-md", n) }),
|
|
101
|
+
s && /* @__PURE__ */ e(_, { className: m("gap-1.5 rounded-md", n) })
|
|
93
102
|
] });
|
|
94
103
|
}
|
|
95
|
-
const G = f.memo(
|
|
104
|
+
const G = f.memo(F, (r, a) => r.className !== a.className ? !1 : r.secrets === a.secrets ? !0 : !(!(r.secrets && a.secrets) || !h(
|
|
96
105
|
r.secrets.configured,
|
|
97
106
|
a.secrets.configured
|
|
98
|
-
) || !
|
|
107
|
+
) || !h(
|
|
99
108
|
r.secrets.pending,
|
|
100
109
|
a.secrets.pending
|
|
101
|
-
))), H = f.memo(
|
|
110
|
+
))), H = f.memo(S, (r, a) => {
|
|
111
|
+
if (r.className !== a.className)
|
|
112
|
+
return !1;
|
|
102
113
|
if (r.oauth === a.oauth)
|
|
103
114
|
return !0;
|
|
104
115
|
if (!(r.oauth && a.oauth))
|
|
105
116
|
return !1;
|
|
106
|
-
const s = r.oauth.providers,
|
|
107
|
-
if (s ===
|
|
117
|
+
const s = r.oauth.providers, n = a.oauth.providers;
|
|
118
|
+
if (s === n)
|
|
108
119
|
return !0;
|
|
109
|
-
if (s.length !==
|
|
120
|
+
if (s.length !== n.length)
|
|
110
121
|
return !1;
|
|
111
|
-
for (let
|
|
112
|
-
const
|
|
113
|
-
if (!(
|
|
122
|
+
for (let t = 0; t < s.length; t++) {
|
|
123
|
+
const l = s[t], d = n[t];
|
|
124
|
+
if (!(l.id === d.id && l.status === d.status) || !h(l.scopes, d.scopes))
|
|
114
125
|
return !1;
|
|
115
126
|
}
|
|
116
127
|
return !0;
|
|
117
128
|
}), J = f.memo(
|
|
118
129
|
W,
|
|
119
|
-
|
|
120
|
-
), L =
|
|
130
|
+
C(["requirementsSummary", "isByoc", "isPro", "badgeClassName"])
|
|
131
|
+
), L = k("", {
|
|
121
132
|
variants: {
|
|
122
133
|
selected: {
|
|
123
134
|
true: "border-2 border-emerald-600 dark:border-emerald-400",
|
|
@@ -135,7 +146,7 @@ const G = f.memo(_, (r, a) => r.secrets === a.secrets ? !0 : !(!(r.secrets && a.
|
|
|
135
146
|
class: "border-neutral-200 hover:border-neutral-300 dark:border-neutral-800 dark:hover:border-neutral-700"
|
|
136
147
|
}
|
|
137
148
|
]
|
|
138
|
-
}), M = (r, a, s,
|
|
149
|
+
}), M = (r, a, s, n) => r && !a && s > 0 ? `${s}/${n} tools` : `${n} tool${n !== 1 ? "s" : ""}`, Q = k(
|
|
139
150
|
"inline-flex items-center gap-1 rounded-full px-2 py-1 font-medium text-xs",
|
|
140
151
|
{
|
|
141
152
|
variants: {
|
|
@@ -150,35 +161,35 @@ function X({
|
|
|
150
161
|
name: r,
|
|
151
162
|
version: a,
|
|
152
163
|
toolsCount: s,
|
|
153
|
-
Icon:
|
|
154
|
-
isSelected:
|
|
155
|
-
isPartiallySelected:
|
|
156
|
-
selectedToolsCount:
|
|
157
|
-
requirementsSummary:
|
|
158
|
-
onSelect:
|
|
159
|
-
onView:
|
|
160
|
-
hideCheckbox:
|
|
161
|
-
isByoc:
|
|
162
|
-
isPro:
|
|
163
|
-
...
|
|
164
|
+
Icon: n = (g) => /* @__PURE__ */ e(z, { ...g }),
|
|
165
|
+
isSelected: t = !1,
|
|
166
|
+
isPartiallySelected: l = !1,
|
|
167
|
+
selectedToolsCount: d = 0,
|
|
168
|
+
requirementsSummary: x,
|
|
169
|
+
onSelect: p,
|
|
170
|
+
onView: c,
|
|
171
|
+
hideCheckbox: u = !1,
|
|
172
|
+
isByoc: B,
|
|
173
|
+
isPro: A,
|
|
174
|
+
...I
|
|
164
175
|
}) {
|
|
165
176
|
const g = f.useCallback(() => {
|
|
166
|
-
if (
|
|
167
|
-
|
|
177
|
+
if (u && c) {
|
|
178
|
+
c();
|
|
168
179
|
return;
|
|
169
180
|
}
|
|
170
|
-
|
|
171
|
-
}, [
|
|
172
|
-
const
|
|
173
|
-
(
|
|
174
|
-
},
|
|
181
|
+
p?.(!(t || l));
|
|
182
|
+
}, [u, t, l, p, c]), T = (o) => {
|
|
183
|
+
const q = o.key === "Enter" || o.code === "Enter", E = o.key === " " || o.key === "Spacebar" || o.code === "Space";
|
|
184
|
+
(q || E) && (o.preventDefault(), g()), (o.key === "ArrowRight" || o.code === "ArrowRight") && c && (o.preventDefault(), c());
|
|
185
|
+
}, b = l && !t;
|
|
175
186
|
return /* @__PURE__ */ e(
|
|
176
187
|
R,
|
|
177
188
|
{
|
|
178
|
-
...
|
|
189
|
+
...I,
|
|
179
190
|
"aria-description": "Click card to select this toolkit. Use the View tools control to see its tools.",
|
|
180
191
|
"aria-label": `Select toolkit ${r}`,
|
|
181
|
-
className:
|
|
192
|
+
className: m(
|
|
182
193
|
"group",
|
|
183
194
|
"relative",
|
|
184
195
|
"h-full",
|
|
@@ -195,71 +206,65 @@ function X({
|
|
|
195
206
|
"dark:hover:bg-neutral-900/70",
|
|
196
207
|
"hover:shadow-lg",
|
|
197
208
|
L({
|
|
198
|
-
selected:
|
|
199
|
-
partial:
|
|
209
|
+
selected: t,
|
|
210
|
+
partial: l
|
|
200
211
|
})
|
|
201
212
|
),
|
|
202
213
|
onClick: g,
|
|
203
214
|
onKeyDown: T,
|
|
204
215
|
tabIndex: 0,
|
|
205
|
-
children: /* @__PURE__ */ e(j, { className: "px-3", children: /* @__PURE__ */
|
|
206
|
-
/* @__PURE__ */
|
|
216
|
+
children: /* @__PURE__ */ e(j, { className: "px-3", children: /* @__PURE__ */ i("div", { className: "space-y-3", children: [
|
|
217
|
+
/* @__PURE__ */ i(
|
|
207
218
|
"div",
|
|
208
219
|
{
|
|
209
|
-
className:
|
|
220
|
+
className: m(
|
|
210
221
|
"grid items-center gap-2",
|
|
211
222
|
"grid-cols-[20px_1fr_auto]",
|
|
212
|
-
|
|
223
|
+
u && "grid-cols-[1fr_auto]"
|
|
213
224
|
),
|
|
214
225
|
children: [
|
|
215
|
-
!
|
|
226
|
+
!u && /* @__PURE__ */ e("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
216
227
|
O,
|
|
217
228
|
{
|
|
218
|
-
checked:
|
|
219
|
-
onCheckedChange: (
|
|
220
|
-
|
|
221
|
-
ref: (l) => {
|
|
222
|
-
if (l && i && !n) {
|
|
223
|
-
const p = l.querySelector(
|
|
224
|
-
'input[type="checkbox"]'
|
|
225
|
-
);
|
|
226
|
-
p && (p.indeterminate = !0);
|
|
227
|
-
}
|
|
229
|
+
checked: l && !t ? "indeterminate" : t,
|
|
230
|
+
onCheckedChange: (o) => {
|
|
231
|
+
p?.(o === !0);
|
|
228
232
|
},
|
|
233
|
+
onClick: (o) => o.stopPropagation(),
|
|
229
234
|
tabIndex: -1
|
|
230
235
|
}
|
|
231
236
|
) }),
|
|
232
|
-
/* @__PURE__ */ e("div", { className: "mr-1.5 min-w-0", children: /* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */ e("div", { className: "flex size-9 items-center justify-center rounded bg-gradient-to-b from-neutral-200 to-neutral-100 ring-1 ring-black/5 dark:from-neutral-800 dark:to-neutral-900 dark:ring-white/5", children: /* @__PURE__ */ e(
|
|
234
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ e("div", { className: "mr-1.5 min-w-0", children: /* @__PURE__ */ i("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
238
|
+
/* @__PURE__ */ e("div", { className: "flex size-9 items-center justify-center rounded bg-gradient-to-b from-neutral-200 to-neutral-100 ring-1 ring-black/5 dark:from-neutral-800 dark:to-neutral-900 dark:ring-white/5", children: /* @__PURE__ */ e(n, { className: "size-6 text-neutral-700 dark:text-neutral-200" }) }),
|
|
239
|
+
/* @__PURE__ */ i("div", { className: "flex h-9 min-w-0 flex-col justify-center space-y-0.5", children: [
|
|
235
240
|
/* @__PURE__ */ e("h3", { className: "truncate font-semibold text-base text-neutral-900 leading-tight dark:text-neutral-100", children: r }),
|
|
236
|
-
a && /* @__PURE__ */
|
|
241
|
+
a && /* @__PURE__ */ i("span", { className: "font-medium text-neutral-500 text-xs leading-tight dark:text-neutral-400", children: [
|
|
237
242
|
"v",
|
|
238
243
|
a
|
|
239
244
|
] })
|
|
240
245
|
] })
|
|
241
246
|
] }) }),
|
|
242
|
-
/* @__PURE__ */ e("div", { className: "mt-0.5 self-center justify-self-end", children:
|
|
247
|
+
/* @__PURE__ */ e("div", { className: "mt-0.5 self-center justify-self-end", children: c ? /* @__PURE__ */ e(
|
|
243
248
|
$,
|
|
244
249
|
{
|
|
245
|
-
indeterminate:
|
|
250
|
+
indeterminate: b,
|
|
246
251
|
name: r,
|
|
247
|
-
onClick: () =>
|
|
248
|
-
selectedCount:
|
|
252
|
+
onClick: () => c(),
|
|
253
|
+
selectedCount: d,
|
|
249
254
|
toolsCount: s
|
|
250
255
|
}
|
|
251
|
-
) : /* @__PURE__ */
|
|
256
|
+
) : /* @__PURE__ */ i(
|
|
252
257
|
"div",
|
|
253
258
|
{
|
|
254
259
|
className: Q({
|
|
255
|
-
indeterminate:
|
|
260
|
+
indeterminate: b
|
|
256
261
|
}),
|
|
257
262
|
children: [
|
|
258
|
-
/* @__PURE__ */ e(
|
|
263
|
+
/* @__PURE__ */ e(P, { className: "h-3 w-3" }),
|
|
259
264
|
/* @__PURE__ */ e("span", { children: M(
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
265
|
+
l,
|
|
266
|
+
t,
|
|
267
|
+
d,
|
|
263
268
|
s
|
|
264
269
|
) })
|
|
265
270
|
]
|
|
@@ -268,19 +273,19 @@ function X({
|
|
|
268
273
|
]
|
|
269
274
|
}
|
|
270
275
|
),
|
|
271
|
-
/* @__PURE__ */ e("div", { className: u
|
|
276
|
+
/* @__PURE__ */ e("div", { className: m(u ? "ml-0" : "ml-8"), children: /* @__PURE__ */ e(
|
|
272
277
|
J,
|
|
273
278
|
{
|
|
274
|
-
isByoc:
|
|
275
|
-
isPro:
|
|
276
|
-
requirementsSummary:
|
|
279
|
+
isByoc: B,
|
|
280
|
+
isPro: A,
|
|
281
|
+
requirementsSummary: x
|
|
277
282
|
}
|
|
278
283
|
) })
|
|
279
284
|
] }) })
|
|
280
285
|
}
|
|
281
286
|
);
|
|
282
287
|
}
|
|
283
|
-
const Y =
|
|
288
|
+
const Y = C([
|
|
284
289
|
"name",
|
|
285
290
|
"version",
|
|
286
291
|
"description",
|
package/package.json
CHANGED
|
@@ -1,74 +1,85 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcadeai/design-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.27.
|
|
4
|
+
"version": "3.27.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/main.js",
|
|
7
7
|
"types": "./dist/main.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"
|
|
10
|
+
"development": "./lib/main.ts",
|
|
11
11
|
"types": "./dist/main.d.ts",
|
|
12
12
|
"default": "./dist/main.js"
|
|
13
13
|
},
|
|
14
14
|
"./rhf": {
|
|
15
|
-
"
|
|
15
|
+
"development": "./lib/integrations/rhf/index.ts",
|
|
16
16
|
"types": "./dist/integrations/rhf/index.d.ts",
|
|
17
17
|
"default": "./dist/integrations/rhf/index.js"
|
|
18
18
|
},
|
|
19
19
|
"./index.css": "./dist/assets/index.css",
|
|
20
20
|
"./components/ui/organisms/toolkit-picker": {
|
|
21
|
-
"
|
|
21
|
+
"development": "./lib/components/ui/organisms/toolkit-picker/index.tsx",
|
|
22
22
|
"types": "./dist/components/ui/organisms/toolkit-picker/index.d.ts",
|
|
23
23
|
"default": "./dist/components/ui/organisms/toolkit-picker/index.js"
|
|
24
24
|
},
|
|
25
|
+
"./components/ui/atoms/icons": {
|
|
26
|
+
"development": "./lib/components/ui/atoms/icons/index.tsx",
|
|
27
|
+
"types": "./dist/components/ui/atoms/icons/index.d.ts",
|
|
28
|
+
"default": "./dist/components/ui/atoms/icons/index.js"
|
|
29
|
+
},
|
|
25
30
|
"./components/*": {
|
|
26
|
-
"
|
|
31
|
+
"development": "./lib/components/*.tsx",
|
|
27
32
|
"types": "./dist/components/*.d.ts",
|
|
28
33
|
"default": "./dist/components/*.js"
|
|
29
34
|
},
|
|
30
35
|
"./hooks/*": {
|
|
31
|
-
"
|
|
36
|
+
"development": "./lib/hooks/*.ts",
|
|
32
37
|
"types": "./dist/hooks/*.d.ts",
|
|
33
38
|
"default": "./dist/hooks/*.js"
|
|
34
39
|
},
|
|
35
40
|
"./lib/*": {
|
|
36
|
-
"
|
|
41
|
+
"development": "./lib/lib/*.ts",
|
|
37
42
|
"types": "./dist/lib/*.d.ts",
|
|
38
43
|
"default": "./dist/lib/*.js"
|
|
39
44
|
},
|
|
40
45
|
"./metadata/toolkit-icons": {
|
|
41
|
-
"
|
|
46
|
+
"development": "./lib/metadata/toolkit-icons.tsx",
|
|
42
47
|
"types": "./dist/metadata/toolkit-icons.d.ts",
|
|
43
48
|
"default": "./dist/metadata/toolkit-icons.js"
|
|
44
49
|
},
|
|
45
50
|
"./metadata/*": {
|
|
46
|
-
"
|
|
51
|
+
"development": "./lib/metadata/*.ts",
|
|
47
52
|
"types": "./dist/metadata/*.d.ts",
|
|
48
53
|
"default": "./dist/metadata/*.js"
|
|
49
54
|
},
|
|
50
55
|
"./integrations/*": {
|
|
51
|
-
"
|
|
56
|
+
"development": "./lib/integrations/*.ts",
|
|
52
57
|
"types": "./dist/integrations/*.d.ts",
|
|
53
58
|
"default": "./dist/integrations/*.js"
|
|
54
59
|
},
|
|
55
60
|
"./assets/images/*": {
|
|
56
|
-
"
|
|
61
|
+
"development": "./lib/assets/images/*.svg",
|
|
57
62
|
"types": "./dist/assets/images/*.d.ts",
|
|
58
63
|
"default": "./dist/assets/images/*.js"
|
|
59
64
|
},
|
|
60
65
|
"./assets/icons/*": {
|
|
61
|
-
"
|
|
66
|
+
"development": "./lib/assets/icons/*.svg",
|
|
62
67
|
"types": "./dist/assets/icons/*.d.ts",
|
|
63
68
|
"default": "./dist/assets/icons/*.js"
|
|
64
69
|
},
|
|
65
|
-
"./assets
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"./
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
"./assets/variables.css": {
|
|
71
|
+
"development": "./lib/variables.css",
|
|
72
|
+
"default": "./dist/assets/variables.css"
|
|
73
|
+
},
|
|
74
|
+
"./assets/tokens.css": {
|
|
75
|
+
"development": "./lib/tokens.css",
|
|
76
|
+
"default": "./dist/assets/tokens.css"
|
|
77
|
+
},
|
|
78
|
+
"./assets/fonts.css": {
|
|
79
|
+
"development": "./lib/fonts.css",
|
|
80
|
+
"default": "./dist/assets/fonts.css"
|
|
81
|
+
},
|
|
82
|
+
"./assets/*": "./dist/assets/*"
|
|
72
83
|
},
|
|
73
84
|
"repository": "github:ArcadeAI/Design-System",
|
|
74
85
|
"files": [
|
|
@@ -80,7 +91,7 @@
|
|
|
80
91
|
"scripts": {
|
|
81
92
|
"dev": "storybook dev -p 6006 --no-open",
|
|
82
93
|
"dev:types": "tsc -b ./tsconfig.lib.json --watch --preserveWatchOutput",
|
|
83
|
-
"prebuild": "
|
|
94
|
+
"prebuild": "bun run generate-icons",
|
|
84
95
|
"build": "tsc -b ./tsconfig.lib.json && vite build && cp lib/global.d.ts dist/",
|
|
85
96
|
"check": "tsc --noEmit",
|
|
86
97
|
"check-types": "tsc --noEmit",
|
|
@@ -91,7 +102,7 @@
|
|
|
91
102
|
"storybook": "storybook dev -p 6006",
|
|
92
103
|
"build-storybook": "storybook build",
|
|
93
104
|
"generate-metadata-json": "bunx tsx ./scripts/generate-metadata-json.ts",
|
|
94
|
-
"generate-icons": "
|
|
105
|
+
"generate-icons": "bun ./scripts/generate-icon-components.js && bun x ultracite fix ./lib/components/ui/atoms/icons"
|
|
95
106
|
},
|
|
96
107
|
"peerDependencies": {
|
|
97
108
|
"@hookform/resolvers": "5.2.1",
|
|
@@ -121,7 +132,7 @@
|
|
|
121
132
|
"@types/react-dom": "19.2.3",
|
|
122
133
|
"@vitejs/plugin-react-swc": "4.2.2",
|
|
123
134
|
"@vitest/browser-playwright": "4.0.16",
|
|
124
|
-
"@vitest/coverage-
|
|
135
|
+
"@vitest/coverage-istanbul": "4.0.16",
|
|
125
136
|
"chromatic": "13.3.0",
|
|
126
137
|
"glob": "11.1.0",
|
|
127
138
|
"globals": "16.4.0",
|
|
@@ -180,6 +191,6 @@
|
|
|
180
191
|
"lodash-es": "4.17.23"
|
|
181
192
|
},
|
|
182
193
|
"engines": {
|
|
183
|
-
"
|
|
194
|
+
"bun": ">=1.3.5"
|
|
184
195
|
}
|
|
185
196
|
}
|