@arcadeai/design-system 3.27.4 → 3.27.6

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 (77) hide show
  1. package/dist/assets/icons/claude.js +10 -0
  2. package/dist/assets/icons/cline.js +10 -0
  3. package/dist/assets/icons/cursor-install-dark.js +12 -0
  4. package/dist/assets/icons/cursor-install-light.js +12 -0
  5. package/dist/assets/icons/gemini.js +12 -0
  6. package/dist/assets/icons/goose.js +13 -0
  7. package/dist/assets/icons/openai.js +10 -0
  8. package/dist/assets/icons/roocode.js +10 -0
  9. package/dist/assets/icons/vscode.js +12 -0
  10. package/dist/assets/icons/windsurf.js +10 -0
  11. package/dist/components/index.js +394 -374
  12. package/dist/components/ui/atoms/icons/claude.d.ts +4 -0
  13. package/dist/components/ui/atoms/icons/claude.d.ts.map +1 -0
  14. package/dist/components/ui/atoms/icons/claude.js +9 -0
  15. package/dist/components/ui/atoms/icons/cline.d.ts +4 -0
  16. package/dist/components/ui/atoms/icons/cline.d.ts.map +1 -0
  17. package/dist/components/ui/atoms/icons/cline.js +9 -0
  18. package/dist/components/ui/atoms/icons/cursor-install-dark.d.ts +4 -0
  19. package/dist/components/ui/atoms/icons/cursor-install-dark.d.ts.map +1 -0
  20. package/dist/components/ui/atoms/icons/cursor-install-dark.js +16 -0
  21. package/dist/components/ui/atoms/icons/cursor-install-light.d.ts +4 -0
  22. package/dist/components/ui/atoms/icons/cursor-install-light.d.ts.map +1 -0
  23. package/dist/components/ui/atoms/icons/cursor-install-light.js +16 -0
  24. package/dist/components/ui/atoms/icons/gemini.d.ts +4 -0
  25. package/dist/components/ui/atoms/icons/gemini.d.ts.map +1 -0
  26. package/dist/components/ui/atoms/icons/gemini.js +55 -0
  27. package/dist/components/ui/atoms/icons/goose.d.ts +4 -0
  28. package/dist/components/ui/atoms/icons/goose.d.ts.map +1 -0
  29. package/dist/components/ui/atoms/icons/goose.js +9 -0
  30. package/dist/components/ui/atoms/icons/index.d.ts +10 -0
  31. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
  32. package/dist/components/ui/atoms/icons/index.js +250 -230
  33. package/dist/components/ui/atoms/icons/openai.d.ts +4 -0
  34. package/dist/components/ui/atoms/icons/openai.d.ts.map +1 -0
  35. package/dist/components/ui/atoms/icons/openai.js +9 -0
  36. package/dist/components/ui/atoms/icons/roocode.d.ts +4 -0
  37. package/dist/components/ui/atoms/icons/roocode.d.ts.map +1 -0
  38. package/dist/components/ui/atoms/icons/roocode.js +9 -0
  39. package/dist/components/ui/atoms/icons/vscode.d.ts +4 -0
  40. package/dist/components/ui/atoms/icons/vscode.d.ts.map +1 -0
  41. package/dist/components/ui/atoms/icons/vscode.js +39 -0
  42. package/dist/components/ui/atoms/icons/windsurf.d.ts +4 -0
  43. package/dist/components/ui/atoms/icons/windsurf.d.ts.map +1 -0
  44. package/dist/components/ui/atoms/icons/windsurf.js +9 -0
  45. package/dist/components/ui/atoms/index.js +379 -359
  46. package/dist/components/ui/index.js +394 -374
  47. package/dist/components/ui/molecules/index.js +1 -1
  48. package/dist/components/ui/molecules/requirement-badges.js +1 -1
  49. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  50. package/dist/components/ui/molecules/toolkit-picker-trigger.js +34 -34
  51. package/dist/components/ui/molecules/toolkit-selection-summary.d.ts.map +1 -1
  52. package/dist/components/ui/molecules/toolkit-selection-summary.js +5 -5
  53. package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +1 -1
  54. package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +1 -1
  55. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +1 -1
  56. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.d.ts.map +1 -1
  57. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +101 -74
  58. package/dist/components/ui/organisms/toolkit-picker/components/tools-list.d.ts.map +1 -1
  59. package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +74 -50
  60. package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.d.ts +21 -0
  61. package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.d.ts.map +1 -0
  62. package/dist/components/ui/organisms/toolkit-picker/components/unoptimized-toggle.js +29 -0
  63. package/dist/components/ui/organisms/toolkit-picker/hooks/featured-toolkits.d.ts +1 -1
  64. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts +8 -0
  65. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.d.ts.map +1 -1
  66. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker.js +105 -49
  67. package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.d.ts.map +1 -1
  68. package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +26 -6
  69. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +20 -20
  70. package/dist/lib/arcade/arcade.d.ts.map +1 -1
  71. package/dist/lib/arcade/arcade.js +49 -49
  72. package/dist/main.js +441 -421
  73. package/dist/metadata/utils.d.ts +4 -7
  74. package/dist/metadata/utils.d.ts.map +1 -1
  75. package/dist/metadata/utils.js +16 -13
  76. package/dist/{toolkit-card-D6Dqff6p.js → toolkit-card-DaoEIG0R.js} +22 -22
  77. package/package.json +33 -19
@@ -1,6 +1,6 @@
1
1
  import { DateTimePicker as e } from "./date-time-picker.js";
2
2
  import { EmptyState as m } from "./empty-state.js";
3
- import { R as a, T as p } from "../../../toolkit-card-D6Dqff6p.js";
3
+ import { R as a, T as p } from "../../../toolkit-card-DaoEIG0R.js";
4
4
  import { ToolCard as f } from "./tool-card.js";
5
5
  import { ToolkitPickerTrigger as k } from "./toolkit-picker-trigger.js";
6
6
  import { ToolkitSelectionSummary as c } from "./toolkit-selection-summary.js";
@@ -11,7 +11,7 @@ import "../../../react-resizable-panels.browser-DYl0LXfw.js";
11
11
  import "../atoms/sidebar.js";
12
12
  import "../atoms/tooltip.js";
13
13
  import "./date-time-picker.js";
14
- import { O as q, R as x, S as A } from "../../../toolkit-card-D6Dqff6p.js";
14
+ import { O as q, R as x, S as A } from "../../../toolkit-card-DaoEIG0R.js";
15
15
  import "./tool-card.js";
16
16
  import "../../../metadata/oauth-providers.js";
17
17
  import "../../../metadata/toolkits.js";
@@ -6,7 +6,7 @@ import "../../../utils-6KgZuQUR.js";
6
6
  import "../../../index-r7CUvu2m.js";
7
7
  import "lucide-react";
8
8
  import "react";
9
- import { T as k } from "../../../toolkit-card-D6Dqff6p.js";
9
+ import { T as k } from "../../../toolkit-card-DaoEIG0R.js";
10
10
  import "../utils/memo.js";
11
11
  export {
12
12
  k as ToolkitCard
@@ -1,53 +1,53 @@
1
1
  import { jsx as e, jsxs as t, Fragment as h } from "react/jsx-runtime";
2
- import { Badge as v } from "../atoms/badge.js";
2
+ import { Badge as T } from "../atoms/badge.js";
3
3
  import { Button as w } from "../atoms/button.js";
4
- import { Tooltip as y, TooltipTrigger as z, TooltipContent as j } from "../atoms/tooltip.js";
4
+ import { Tooltip as C, TooltipTrigger as y, TooltipContent as z } from "../atoms/tooltip.js";
5
5
  import { c as g } from "../../../utils-6KgZuQUR.js";
6
- import { getToolkitIcon as C } from "../../../metadata/toolkit-icons.js";
7
- import { Loader2 as $, Package as L } from "lucide-react";
8
- import { useToolkitPicker as B } from "../organisms/toolkit-picker/hooks/use-toolkit-picker.js";
6
+ import { getToolkitIcon as M } from "../../../metadata/toolkit-icons.js";
7
+ import { Loader2 as P, Package as S } from "lucide-react";
8
+ import { useToolkitPicker as j } from "../organisms/toolkit-picker/hooks/use-toolkit-picker.js";
9
9
  function D({
10
10
  maxVisibleIcons: k = 2,
11
11
  className: b,
12
12
  countType: s = "toolkits",
13
- loading: o = !1,
14
- ...n
13
+ loading: n = !1,
14
+ ...i
15
15
  }) {
16
16
  const {
17
17
  state: { committedToolkits: f, committedTools: N }
18
- } = B(), i = Array.from(f.keys()), l = i.length, x = N.size, c = i.slice(0, k).map((r) => {
19
- const a = f.get(r);
20
- return C(a?.metadata?.id);
21
- }), p = Math.max(l - c.length, 0), T = s === "tools";
22
- let d = "Toolkits", m = l;
23
- T && (d = "Tools", m = x);
24
- let u = `Select ${s === "tools" ? "Tools" : "Toolkits"}`;
25
- return o ? u = "Loading toolkits..." : l > 0 && (u = `${m} ${d.toLowerCase()} selected`), /* @__PURE__ */ e(
18
+ } = j(), o = Array.from(f.keys()), l = o.length, x = N.size, c = o.slice(0, k).map((a) => {
19
+ const r = f.get(a);
20
+ return M(r?.metadata?.id);
21
+ }), p = Math.max(l - c.length, 0), v = s === "tools";
22
+ let d = "MCP Servers", m = l;
23
+ v && (d = "Tools", m = x);
24
+ let u = `Select ${s === "tools" ? "Tools" : "MCP Servers"}`;
25
+ return n ? u = "Loading MCP servers..." : l > 0 && (u = `${m} ${d.toLowerCase()} selected`), /* @__PURE__ */ e(
26
26
  w,
27
27
  {
28
- ...n,
28
+ ...i,
29
29
  "aria-label": u,
30
30
  className: g("gap-2 bg-transparent transition-colors", b),
31
- disabled: o,
32
- size: n.size ?? "sm",
33
- variant: n.variant ?? "outline",
34
- children: o ? /* @__PURE__ */ t(h, { children: [
35
- /* @__PURE__ */ e($, { className: "h-4 w-4 animate-spin" }),
31
+ disabled: n,
32
+ size: i.size ?? "sm",
33
+ variant: i.variant ?? "outline",
34
+ children: n ? /* @__PURE__ */ t(h, { children: [
35
+ /* @__PURE__ */ e(P, { className: "h-4 w-4 animate-spin" }),
36
36
  /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
37
37
  /* @__PURE__ */ e("div", { className: "h-4 w-16 animate-pulse rounded bg-neutral-200 dark:bg-neutral-700" }),
38
38
  /* @__PURE__ */ e("div", { className: "h-5 w-6 animate-pulse rounded-full bg-neutral-200 dark:bg-neutral-700" })
39
39
  ] })
40
40
  ] }) : /* @__PURE__ */ t(h, { children: [
41
- l > 0 && /* @__PURE__ */ t(y, { children: [
42
- /* @__PURE__ */ e(z, { asChild: !0, children: /* @__PURE__ */ t("span", { className: "mr-2 flex items-center", children: [
43
- c.map((r, a) => /* @__PURE__ */ e(
41
+ l > 0 && /* @__PURE__ */ t(C, { children: [
42
+ /* @__PURE__ */ e(y, { asChild: !0, children: /* @__PURE__ */ t("span", { className: "mr-2 flex items-center", children: [
43
+ c.map((a, r) => /* @__PURE__ */ e(
44
44
  "div",
45
45
  {
46
- className: g("relative first:ml-0", a > 0 && "-ml-2"),
47
- style: { zIndex: a + 1 },
48
- children: /* @__PURE__ */ e("div", { className: "flex size-6 items-center justify-center rounded-xl bg-gradient-to-br from-white to-neutral-50 p-1.5 shadow-lg ring-1 ring-neutral-200/80 transition-all hover:scale-110 hover:shadow-xl dark:from-neutral-800 dark:to-neutral-900 dark:ring-neutral-700/80", children: /* @__PURE__ */ e(r, { className: "h-3 w-3 text-neutral-700 dark:text-neutral-300" }) })
46
+ className: g("relative first:ml-0", r > 0 && "-ml-2"),
47
+ style: { zIndex: r + 1 },
48
+ children: /* @__PURE__ */ e("div", { className: "flex size-6 items-center justify-center rounded-xl bg-gradient-to-br from-white to-neutral-50 p-1.5 shadow-lg ring-1 ring-neutral-200/80 transition-all hover:scale-110 hover:shadow-xl dark:from-neutral-800 dark:to-neutral-900 dark:ring-neutral-700/80", children: /* @__PURE__ */ e(a, { className: "h-3 w-3 text-neutral-700 dark:text-neutral-300" }) })
49
49
  },
50
- `${r.name || "icon"}-${a}`
50
+ `${a.name || "icon"}-${r}`
51
51
  )),
52
52
  p > 0 && /* @__PURE__ */ t(
53
53
  "span",
@@ -61,12 +61,12 @@ function D({
61
61
  }
62
62
  )
63
63
  ] }) }),
64
- /* @__PURE__ */ e(j, { side: "bottom", sideOffset: 6, children: /* @__PURE__ */ e("div", { className: "text-xs", children: /* @__PURE__ */ t("ul", { className: "list-disc space-y-1 pl-4", children: [
64
+ /* @__PURE__ */ e(z, { side: "bottom", sideOffset: 6, children: /* @__PURE__ */ e("div", { className: "text-xs", children: /* @__PURE__ */ t("ul", { className: "list-disc space-y-1 pl-4", children: [
65
65
  /* @__PURE__ */ t("li", { children: [
66
- /* @__PURE__ */ e("span", { className: "font-semibold text-neutral-800 dark:text-neutral-200", children: "Toolkits" }),
66
+ /* @__PURE__ */ e("span", { className: "font-semibold text-neutral-800 dark:text-neutral-200", children: "MCP Servers" }),
67
67
  /* @__PURE__ */ t("span", { className: "text-neutral-700 dark:text-neutral-300", children: [
68
68
  ": ",
69
- i.join(", ")
69
+ o.join(", ")
70
70
  ] })
71
71
  ] }),
72
72
  /* @__PURE__ */ t("li", { children: [
@@ -80,15 +80,15 @@ function D({
80
80
  ] }) }) })
81
81
  ] }),
82
82
  l === 0 && /* @__PURE__ */ t(h, { children: [
83
- /* @__PURE__ */ e(L, { className: "h-4 w-4" }),
83
+ /* @__PURE__ */ e(S, { className: "h-4 w-4" }),
84
84
  /* @__PURE__ */ t("span", { className: "truncate text-sm", children: [
85
85
  "Select ",
86
- s === "tools" ? "Tools" : "Toolkits"
86
+ s === "tools" ? "Tools" : "MCP Servers"
87
87
  ] })
88
88
  ] }),
89
89
  l > 0 && /* @__PURE__ */ t("span", { className: "inline-flex items-center gap-2 truncate text-sm", children: [
90
90
  d,
91
- /* @__PURE__ */ e(v, { className: "px-1.5 py-0 text-[11px]", variant: "default", children: m })
91
+ /* @__PURE__ */ e(T, { className: "px-1.5 py-0 text-[11px]", variant: "default", children: m })
92
92
  ] })
93
93
  ] })
94
94
  }
@@ -1 +1 @@
1
- {"version":3,"file":"toolkit-selection-summary.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/toolkit-selection-summary.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qEAAqE,CAAC;AAI/G,MAAM,MAAM,4BAA4B,GAAG;IACzC,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAGF,wBAAgB,uBAAuB,CAAC,EACtC,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,aAAa,GACd,EAAE,4BAA4B,2CA4G9B"}
1
+ {"version":3,"file":"toolkit-selection-summary.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/toolkit-selection-summary.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qEAAqE,CAAC;AAI/G,MAAM,MAAM,4BAA4B,GAAG;IACzC,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAGF,wBAAgB,uBAAuB,CAAC,EACtC,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,aAAa,GACd,EAAE,4BAA4B,2CA6G9B"}
@@ -7,7 +7,7 @@ import "../atoms/chart.js";
7
7
  import "../../../react-resizable-panels.browser-DYl0LXfw.js";
8
8
  import "../atoms/sidebar.js";
9
9
  import "./date-time-picker.js";
10
- import "../../../toolkit-card-D6Dqff6p.js";
10
+ import "../../../toolkit-card-DaoEIG0R.js";
11
11
  import "./tool-card.js";
12
12
  import { getToolkitIcon as z } from "../../../metadata/toolkit-icons.js";
13
13
  import "../organisms/toolkit-picker/hooks/use-toolkit-picker.js";
@@ -18,7 +18,7 @@ function D({
18
18
  onClear: N,
19
19
  onSelectAll: m,
20
20
  allVisibleSelected: k,
21
- selectionMode: w
21
+ selectionMode: v
22
22
  }) {
23
23
  const l = s.size > 0 || n.size > 0, i = Array.from(s.keys()), o = n.size, a = i.length, r = i.slice(0, j), c = Math.max(a - r.length, 0);
24
24
  return /* @__PURE__ */ t(
@@ -43,7 +43,7 @@ function D({
43
43
  ] }),
44
44
  /* @__PURE__ */ t("div", { className: "ml-1 flex items-center sm:ml-1.5", children: [
45
45
  r.map((d, h) => {
46
- const v = s.get(d), b = z(v?.metadata?.id);
46
+ const w = s.get(d), b = z(w?.metadata?.id);
47
47
  return /* @__PURE__ */ e(
48
48
  "div",
49
49
  {
@@ -70,7 +70,7 @@ function D({
70
70
  /* @__PURE__ */ t("div", { className: "text-neutral-600 text-xs dark:text-neutral-400", children: [
71
71
  "from ",
72
72
  a,
73
- " toolkit",
73
+ " MCP server",
74
74
  a !== 1 ? "s" : ""
75
75
  ] })
76
76
  ] }) }),
@@ -91,7 +91,7 @@ function D({
91
91
  ]
92
92
  }
93
93
  ),
94
- w !== "single" && m && !k && /* @__PURE__ */ t(p, { children: [
94
+ v !== "single" && m && !k && /* @__PURE__ */ t(p, { children: [
95
95
  /* @__PURE__ */ e(g, { asChild: !0, children: /* @__PURE__ */ e(
96
96
  x,
97
97
  {
@@ -7,7 +7,7 @@ import { Input as k } from "../../../atoms/input.js";
7
7
  import "../../../../../react-resizable-panels.browser-DYl0LXfw.js";
8
8
  import "../../../atoms/sidebar.js";
9
9
  import "../../../molecules/date-time-picker.js";
10
- import "../../../../../toolkit-card-D6Dqff6p.js";
10
+ import "../../../../../toolkit-card-DaoEIG0R.js";
11
11
  import "../../../molecules/tool-card.js";
12
12
  import "../../../../../metadata/oauth-providers.js";
13
13
  import "../../../../../metadata/toolkits.js";
@@ -7,7 +7,7 @@ import "../../../atoms/chart.js";
7
7
  import "../../../../../react-resizable-panels.browser-DYl0LXfw.js";
8
8
  import "../../../atoms/sidebar.js";
9
9
  import "../../../molecules/date-time-picker.js";
10
- import "../../../../../toolkit-card-D6Dqff6p.js";
10
+ import "../../../../../toolkit-card-DaoEIG0R.js";
11
11
  import "../../../molecules/tool-card.js";
12
12
  import "../../../../../metadata/oauth-providers.js";
13
13
  import "../../../../../metadata/toolkits.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { T as c } from "../../../../../toolkit-card-D6Dqff6p.js";
2
+ import { T as c } from "../../../../../toolkit-card-DaoEIG0R.js";
3
3
  import { getToolkitIcon as d } from "../../../../../metadata/toolkit-icons.js";
4
4
  function g({
5
5
  toolkit: e,
@@ -1 +1 @@
1
- {"version":3,"file":"toolkit-list.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/components/toolkit-list.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAM9C,KAAK,gBAAgB,GAAG;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CACtD,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,kBAAkB,GACnB,EAAE,gBAAgB,2CAqJlB"}
1
+ {"version":3,"file":"toolkit-list.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/components/toolkit-list.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAO9C,KAAK,gBAAgB,GAAG;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CACtD,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,kBAAkB,GACnB,EAAE,gBAAgB,2CAoLlB"}
@@ -1,142 +1,169 @@
1
- import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import { VirtualizedGrid as u } from "../../../atoms/virtualized-grid.js";
1
+ import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
+ import { VirtualizedGrid as h } from "../../../atoms/virtualized-grid.js";
3
3
  import "../../../molecules/date-time-picker.js";
4
- import { EmptyState as w } from "../../../molecules/empty-state.js";
5
- import "../../../../../toolkit-card-D6Dqff6p.js";
4
+ import { EmptyState as P } from "../../../molecules/empty-state.js";
5
+ import "../../../../../toolkit-card-DaoEIG0R.js";
6
6
  import "../../../molecules/tool-card.js";
7
7
  import "../../../../../metadata/oauth-providers.js";
8
8
  import "../../../../../metadata/toolkits.js";
9
9
  import "lucide-react";
10
- import { useToolkitPicker as S } from "../hooks/use-toolkit-picker.js";
10
+ import { useToolkitPicker as R } from "../hooks/use-toolkit-picker.js";
11
11
  import "../../../atoms/mobile-tooltip.js";
12
- import { useMemo as v } from "react";
12
+ import { useMemo as A } from "react";
13
13
  import "../../../atoms/chart.js";
14
14
  import "../../../../../react-resizable-panels.browser-DYl0LXfw.js";
15
15
  import "../../../atoms/sidebar.js";
16
- import { useColumns as C } from "../../../../../hooks/use-columns.js";
17
- import { FEATURED_TOOLKITS as R } from "../hooks/featured-toolkits.js";
18
- import { ToolkitCardWithSelection as A } from "./toolkit-card-with-selection.js";
19
- const x = 156;
20
- function J({
21
- selectionMode: f,
22
- scrollContainerRef: d
16
+ import { useColumns as L } from "../../../../../hooks/use-columns.js";
17
+ import { UnoptimizedToggle as I } from "./unoptimized-toggle.js";
18
+ import { FEATURED_TOOLKITS as U } from "../hooks/featured-toolkits.js";
19
+ import { ToolkitCardWithSelection as G } from "./toolkit-card-with-selection.js";
20
+ const f = 156;
21
+ function ee({
22
+ selectionMode: x,
23
+ scrollContainerRef: n
23
24
  }) {
24
25
  const {
25
- state: { filteredToolkits: m, selectedToolkits: l, selectedTools: T, searchQuery: o },
26
- toggleToolkit: y,
27
- setActiveTab: h,
28
- setToolkitFilter: k
29
- } = S(), n = C(), { selectedToolkitItems: a, featuredToolkitItems: i, unselectedToolkitItems: c } = v(() => {
30
- const e = Array.from(m), g = new Set(
31
- R.map((r) => r.toLowerCase())
32
- ), N = e.filter(
33
- (r) => l.has(r.name)
34
- ), I = e.filter(
35
- (r) => !(l.has(r.name) || o.trim()) && g.has(r.name.toLowerCase())
26
+ state: {
27
+ filteredToolkits: d,
28
+ selectedToolkits: s,
29
+ selectedTools: S,
30
+ searchQuery: i,
31
+ showUnoptimizedToolkits: k,
32
+ hasStarterToolkits: T,
33
+ hiddenToolkitCount: m
34
+ },
35
+ toggleToolkit: C,
36
+ setActiveTab: y,
37
+ setToolkitFilter: N,
38
+ toggleUnoptimizedToolkits: w
39
+ } = R(), c = L(), { selectedToolkitItems: l, featuredToolkitItems: a, unselectedToolkitItems: p } = A(() => {
40
+ const e = Array.from(d), u = new Set(
41
+ U.map((r) => r.toLowerCase())
36
42
  ), b = e.filter(
37
- (r) => !l.has(r.name) && (o.trim() || !g.has(r.name.toLowerCase()))
43
+ (r) => s.has(r.name)
44
+ ), v = e.filter(
45
+ (r) => !(s.has(r.name) || i.trim()) && u.has(r.name.toLowerCase())
46
+ ), z = e.filter(
47
+ (r) => !s.has(r.name) && (i.trim() || !u.has(r.name.toLowerCase()))
38
48
  );
39
49
  return {
40
- selectedToolkitItems: N,
41
- featuredToolkitItems: I,
42
- unselectedToolkitItems: b
50
+ selectedToolkitItems: b,
51
+ featuredToolkitItems: v,
52
+ unselectedToolkitItems: z
43
53
  };
44
- }, [m, o, l]);
45
- if (m.size === 0)
46
- return /* @__PURE__ */ t(
47
- w,
54
+ }, [d, i, s]);
55
+ if (d.size === 0)
56
+ return T && m > 0 ? /* @__PURE__ */ t(
57
+ I,
58
+ {
59
+ hiddenCount: m,
60
+ isShowingUnoptimized: k,
61
+ itemType: "toolkit",
62
+ onToggle: w
63
+ }
64
+ ) : /* @__PURE__ */ t(
65
+ P,
48
66
  {
49
67
  "data-testid": "empty-toolkits",
50
68
  description: "Try a different search term",
51
- title: "No toolkits found"
69
+ title: "No MCP servers found"
52
70
  }
53
71
  );
54
- const p = (e) => /* @__PURE__ */ t(
55
- A,
72
+ const g = (e) => /* @__PURE__ */ t(
73
+ G,
56
74
  {
57
- onSelect: (g) => {
58
- if (f === "single") {
59
- h("tools"), k(e.name);
75
+ onSelect: (u) => {
76
+ if (x === "single") {
77
+ y("tools"), N(e.name);
60
78
  return;
61
79
  }
62
- y(e);
80
+ C(e);
63
81
  },
64
82
  onView: () => {
65
- k(e.name), h("tools");
83
+ N(e.name), y("tools");
66
84
  },
67
- selectedTools: new Set(T.keys()),
68
- selectionMode: f,
85
+ selectedTools: new Set(S.keys()),
86
+ selectionMode: x,
69
87
  toolkit: e
70
88
  },
71
89
  e.name
72
90
  );
73
- return /* @__PURE__ */ s("div", { className: "space-y-4", "data-testid": "toolkits-grid", children: [
74
- a.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-3", "data-testid": "selected-toolkits-section", children: [
75
- /* @__PURE__ */ s("div", { className: "flex items-center gap-1.5", children: [
91
+ return /* @__PURE__ */ o("div", { className: "space-y-4", "data-testid": "toolkits-grid", children: [
92
+ l.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-3", "data-testid": "selected-toolkits-section", children: [
93
+ /* @__PURE__ */ o("div", { className: "flex items-center gap-1.5", children: [
76
94
  /* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "Selected" }),
77
- /* @__PURE__ */ t("span", { className: "rounded-full bg-emerald-300 px-1.5 py-0.5 text-emerald-900 text-xs dark:bg-emerald-500/25 dark:text-emerald-200", children: a.length })
95
+ /* @__PURE__ */ t("span", { className: "rounded-full bg-emerald-300 px-1.5 py-0.5 text-emerald-900 text-xs dark:bg-emerald-500/25 dark:text-emerald-200", children: l.length })
78
96
  ] }),
79
97
  /* @__PURE__ */ t(
80
- u,
98
+ h,
81
99
  {
82
- columns: n,
83
- estimateRowSize: x,
100
+ columns: c,
101
+ estimateRowSize: f,
84
102
  getItemKey: (e) => e.name,
85
103
  gridClassName: "grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3",
86
- items: a,
87
- parentRef: d,
88
- renderItem: p,
104
+ items: l,
105
+ parentRef: n,
106
+ renderItem: g,
89
107
  rowGapPx: 12
90
108
  }
91
109
  )
92
110
  ] }),
93
- !o.trim() && i.length > 0 && /* @__PURE__ */ s(
111
+ !i.trim() && a.length > 0 && /* @__PURE__ */ o(
94
112
  "div",
95
113
  {
96
114
  className: "space-y-3 rounded-lg bg-neutral-50 p-4 dark:bg-neutral-900",
97
115
  "data-testid": "featured-toolkits-section",
98
116
  children: [
99
- /* @__PURE__ */ s("div", { className: "flex items-center gap-1.5", children: [
100
- /* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "Featured Toolkits" }),
101
- /* @__PURE__ */ t("span", { className: "rounded-full bg-neutral-200 px-1.5 py-0.5 text-neutral-800 text-xs dark:bg-neutral-800 dark:text-neutral-200", children: i.length })
117
+ /* @__PURE__ */ o("div", { className: "flex items-center gap-1.5", children: [
118
+ /* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "Featured MCP Servers" }),
119
+ /* @__PURE__ */ t("span", { className: "rounded-full bg-neutral-200 px-1.5 py-0.5 text-neutral-800 text-xs dark:bg-neutral-800 dark:text-neutral-200", children: a.length })
102
120
  ] }),
103
121
  /* @__PURE__ */ t(
104
- u,
122
+ h,
105
123
  {
106
- columns: n,
107
- estimateRowSize: x,
124
+ columns: c,
125
+ estimateRowSize: f,
108
126
  getItemKey: (e) => e.name,
109
127
  gridClassName: "grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3",
110
- items: i,
111
- parentRef: d,
112
- renderItem: p,
128
+ items: a,
129
+ parentRef: n,
130
+ renderItem: g,
113
131
  rowGapPx: 12
114
132
  }
115
133
  )
116
134
  ]
117
135
  }
118
136
  ),
119
- c.length > 0 && /* @__PURE__ */ s("div", { className: "space-y-3", children: [
120
- (a.length > 0 || i.length > 0) && /* @__PURE__ */ s("div", { className: "flex items-center gap-1.5", children: [
121
- /* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "All toolkits" }),
122
- /* @__PURE__ */ t("span", { className: "rounded-full bg-neutral-200 px-1.5 py-0.5 text-neutral-800 text-xs dark:bg-neutral-800 dark:text-neutral-200", children: c.length })
137
+ p.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-3", children: [
138
+ (l.length > 0 || a.length > 0) && /* @__PURE__ */ o("div", { className: "flex items-center gap-1.5", children: [
139
+ /* @__PURE__ */ t("h3", { className: "font-semibold text-neutral-700 text-sm dark:text-neutral-200", children: "All MCP servers" }),
140
+ /* @__PURE__ */ t("span", { className: "rounded-full bg-neutral-200 px-1.5 py-0.5 text-neutral-800 text-xs dark:bg-neutral-800 dark:text-neutral-200", children: p.length })
123
141
  ] }),
124
142
  /* @__PURE__ */ t(
125
- u,
143
+ h,
126
144
  {
127
- columns: n,
128
- estimateRowSize: x,
145
+ columns: c,
146
+ estimateRowSize: f,
129
147
  getItemKey: (e) => e.name,
130
148
  gridClassName: "grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3",
131
- items: c,
132
- parentRef: d,
133
- renderItem: p,
149
+ items: p,
150
+ parentRef: n,
151
+ renderItem: g,
134
152
  rowGapPx: 12
135
153
  }
136
154
  )
137
- ] })
155
+ ] }),
156
+ T && /* @__PURE__ */ t(
157
+ I,
158
+ {
159
+ hiddenCount: m,
160
+ isShowingUnoptimized: k,
161
+ itemType: "toolkit",
162
+ onToggle: w
163
+ }
164
+ )
138
165
  ] });
139
166
  }
140
167
  export {
141
- J as ToolkitList
168
+ ee as ToolkitList
142
169
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tools-list.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/components/tools-list.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,KAAK,cAAc,GAAG;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CACtD,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACxB,aAAa,EACb,kBAAkB,GACnB,EAAE,cAAc,2CAsGhB"}
1
+ {"version":3,"file":"tools-list.d.ts","sourceRoot":"","sources":["../../../../../../lib/components/ui/organisms/toolkit-picker/components/tools-list.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAM9C,KAAK,cAAc,GAAG;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CACtD,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACxB,aAAa,EACb,kBAAkB,GACnB,EAAE,cAAc,2CAgIhB"}