@arcadeai/design-system 5.0.2 → 6.0.0
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/{clamp-DV0oJUnl.js → CSPContext-_3HefTUC.js} +1 -6
- package/dist/{DialogRoot-xodRxCJ6.js → DialogRoot-DuiSPdsZ.js} +1 -1
- package/dist/{DialogTrigger-BRWKaMYv.js → DialogTrigger-DGGP-2Oc.js} +109 -108
- package/dist/{FloatingPortalLite-e0IaokaG.js → FloatingPortalLite-D5nFwFgJ.js} +1 -1
- package/dist/ReactStore-C3H8e2ha.js +600 -0
- package/dist/{Toggle-waFXW8db.js → Toggle-BdxyK_Ln.js} +1 -1
- package/dist/{accordion-DimUia61.js → accordion-BP9Lgkg8.js} +18 -18
- package/dist/{alert-dialog-BiDZwtP2.js → alert-dialog-1bUE2clB.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/variables.css +1 -1
- package/dist/{avatar-B-lhJ-Gz.js → avatar-DbL6b01k.js} +4 -3
- package/dist/{checkbox-CZViOGvt.js → checkbox-DB9O_Iw9.js} +96 -85
- package/dist/clamp-BT4ayAnN.js +6 -0
- package/dist/{collapsible-DlF1q_cg.js → collapsible-DP7Fb-Lu.js} +17 -17
- package/dist/components/index.js +259 -251
- package/dist/components/ui/atoms/accordion.js +1 -1
- package/dist/components/ui/atoms/alert-dialog.js +1 -1
- package/dist/components/ui/atoms/avatar.js +1 -1
- package/dist/components/ui/atoms/checkbox.d.ts +16 -2
- package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
- package/dist/components/ui/atoms/checkbox.js +2 -2
- package/dist/components/ui/atoms/clear-button.d.ts +13 -0
- package/dist/components/ui/atoms/clear-button.d.ts.map +1 -0
- package/dist/components/ui/atoms/clear-button.js +23 -0
- package/dist/components/ui/atoms/collapsible.js +1 -1
- package/dist/components/ui/atoms/dialog.js +2 -2
- package/dist/components/ui/atoms/dropdown-menu.js +1 -1
- package/dist/components/ui/atoms/hover-card.js +1 -1
- package/dist/components/ui/atoms/icon-tile.d.ts +10 -0
- package/dist/components/ui/atoms/icon-tile.d.ts.map +1 -0
- package/dist/components/ui/atoms/icon-tile.js +25 -0
- package/dist/components/ui/atoms/index.d.ts +3 -1
- package/dist/components/ui/atoms/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/index.js +210 -208
- package/dist/components/ui/atoms/input-group.js +1 -1
- package/dist/components/ui/atoms/input.js +1 -1
- package/dist/components/ui/atoms/mobile-tooltip.js +2 -2
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/progress.js +1 -1
- package/dist/components/ui/atoms/radio-group.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +1 -1
- package/dist/components/ui/atoms/scroll-button.js +1 -1
- package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts +24 -0
- package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts.map +1 -0
- package/dist/components/ui/atoms/scroll-to-bottom-button.js +31 -0
- package/dist/components/ui/atoms/select.js +1 -1
- package/dist/components/ui/atoms/sheet.js +2 -2
- package/dist/components/ui/atoms/sidebar.js +2 -2
- package/dist/components/ui/atoms/slider.js +1 -1
- package/dist/components/ui/atoms/switch.js +1 -1
- package/dist/components/ui/atoms/tabs.js +1 -1
- package/dist/components/ui/atoms/toggle-group.js +1 -1
- package/dist/components/ui/atoms/toggle.js +1 -1
- package/dist/components/ui/atoms/tooltip.js +1 -1
- package/dist/components/ui/blocks/demo.js +4 -4
- package/dist/components/ui/index.js +259 -251
- package/dist/components/ui/molecules/avatar-stack.d.ts +32 -0
- package/dist/components/ui/molecules/avatar-stack.d.ts.map +1 -0
- package/dist/components/ui/molecules/avatar-stack.js +91 -0
- package/dist/components/ui/molecules/callout.d.ts +20 -0
- package/dist/components/ui/molecules/callout.d.ts.map +1 -0
- package/dist/components/ui/molecules/callout.js +39 -0
- package/dist/components/ui/molecules/chat-history-item.js +1 -1
- package/dist/components/ui/molecules/chip-body.d.ts +21 -0
- package/dist/components/ui/molecules/chip-body.d.ts.map +1 -0
- package/dist/components/ui/molecules/chip-body.js +21 -0
- package/dist/components/ui/molecules/client-secret-field.js +1 -1
- package/dist/components/ui/molecules/confirm-popover.js +1 -1
- package/dist/components/ui/molecules/date-time-picker.js +2 -2
- package/dist/components/ui/molecules/filter-chip-group.d.ts +26 -0
- package/dist/components/ui/molecules/filter-chip-group.d.ts.map +1 -0
- package/dist/components/ui/molecules/{mcp-server-picker/category-filter.js → filter-chip-group.js} +8 -7
- package/dist/components/ui/molecules/index.d.ts +19 -7
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +41 -35
- package/dist/components/ui/molecules/mcp-server-picker/card-setup-button.d.ts +21 -0
- package/dist/components/ui/molecules/mcp-server-picker/card-setup-button.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/card-setup-button.js +34 -0
- package/dist/components/ui/molecules/mcp-server-picker/constants.d.ts +2 -0
- package/dist/components/ui/molecules/mcp-server-picker/constants.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/constants.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.js +18 -15
- package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/section-callout.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.js +12 -6
- package/dist/components/ui/molecules/mcp-server-picker/selection-card-parts.d.ts +28 -0
- package/dist/components/ui/molecules/mcp-server-picker/selection-card-parts.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/selection-card-parts.js +28 -0
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.js +29 -81
- package/dist/components/ui/molecules/mcp-server-picker/server-card.d.ts +3 -6
- package/dist/components/ui/molecules/mcp-server-picker/server-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-card.js +93 -108
- package/dist/components/ui/molecules/mcp-server-picker/setup-callout.d.ts +13 -0
- package/dist/components/ui/molecules/mcp-server-picker/setup-callout.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/setup-callout.js +27 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.d.ts +5 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +49 -42
- package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts +12 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/{tool-search-band.js → tool-recommendations.js} +6 -6
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts +6 -6
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.js +21 -33
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.js +19 -22
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-group-header.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.d.ts +3 -1
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.js +33 -31
- package/dist/components/ui/molecules/message.js +2 -2
- package/dist/components/ui/molecules/prompt-input.js +1 -1
- package/dist/components/ui/molecules/removable-chip.d.ts.map +1 -0
- package/dist/components/ui/{atoms → molecules}/removable-chip.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +1 -1
- package/dist/components/ui/molecules/tool-call-accordion.js +2 -2
- package/dist/components/ui/molecules/tool-card.js +2 -2
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/undo-toast.d.ts +47 -0
- package/dist/components/ui/molecules/undo-toast.d.ts.map +1 -0
- package/dist/components/ui/molecules/undo-toast.js +3 -0
- package/dist/components/ui/molecules/user-nav.js +2 -2
- package/dist/components/ui/organisms/mcp-selection-summary-bar.d.ts.map +1 -1
- package/dist/components/ui/organisms/mcp-selection-summary-bar.js +27 -30
- package/dist/components/ui/organisms/mcp-server-picker.d.ts +6 -3
- package/dist/components/ui/organisms/mcp-server-picker.d.ts.map +1 -1
- package/dist/components/ui/organisms/mcp-server-picker.js +4 -4
- package/dist/{dropdown-menu-CWWN1cXs.js → dropdown-menu-ecggVuhu.js} +202 -199
- package/dist/{getPseudoElementBounds-D_dlkPnQ.js → getPseudoElementBounds-BOe22aYl.js} +3 -3
- package/dist/{hover-card-GELKDadU.js → hover-card-CGLPPPPP.js} +71 -70
- package/dist/{input-DZfZK6b1.js → input-DZTqcpe-.js} +1 -1
- package/dist/main.js +265 -257
- 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 +153 -141
- package/dist/{popover-Cne_hQUh.js → popover-CpLkQtT5.js} +129 -128
- package/dist/popupStateMapping-XiLS0Jku.js +643 -0
- package/dist/{progress-D71iUjvg.js → progress-BqG0PtAD.js} +1 -1
- package/dist/{radio-group-CTqA-p0w.js → radio-group-BpMluqfv.js} +8 -7
- package/dist/{safePolygon-os2F06tc.js → safePolygon-DmV1hDsw.js} +35 -34
- package/dist/{scroll-area-C0KbhRES.js → scroll-area-D7iOy7xj.js} +4 -3
- package/dist/{scrollEdges-CHZpP0us.js → scrollEdges-Dck9qFyQ.js} +1 -1
- package/dist/{select-RvAj5g6e.js → select-DFWNXxvZ.js} +179 -176
- package/dist/{slider-Bhn1ogwZ.js → slider-ClXWRpwI.js} +4 -3
- package/dist/{store-C-KXBzZ0.js → store-D7k1qIkZ.js} +23 -22
- package/dist/{switch-D8M0xvzp.js → switch-DlxZDt6o.js} +3 -3
- package/dist/{tabs-ttkDuwww.js → tabs-Cj3LY-7F.js} +9 -8
- package/dist/{toggle-group-CL_MBwuU.js → toggle-group-CmP4iHEJ.js} +1 -1
- package/dist/{tooltip-ZIywOFGf.js → tooltip-BUR7V5Aa.js} +197 -196
- package/dist/{ui-CttBuHXi.js → ui-46pgiw5T.js} +2 -2
- package/dist/undo-toast-Cf4T6ToX.js +898 -0
- package/dist/{useAnchoredPopupScrollLock-a2b_Frjv.js → useAnchoredPopupScrollLock-CnoPUwXv.js} +1 -1
- package/dist/{useAriaLabelledBy-WyUZP7Yf.js → useAriaLabelledBy-DJZioWd6.js} +1 -1
- package/dist/useBaseUiId-CXSJgVcI.js +8 -0
- package/dist/{useCollapsiblePanel-B6XZh6zH.js → useCollapsiblePanel-BPbcE70S.js} +15 -14
- package/dist/{useFocus-DwJfNYN6.js → useFocus-B_SrhX9q.js} +10 -10
- package/dist/{useBaseUiId-voePHgyX.js → useId-Bzr7_bed.js} +1 -6
- package/dist/{useLabelableId-CC2YaILf.js → useLabelableId-9jrDGk5d.js} +1 -1
- package/dist/useOpenChangeComplete-CVIwfcpl.js +80 -0
- package/dist/{useOpenInteractionType-DQhvPqO3.js → useOpenInteractionType-INvHftZi.js} +29 -28
- package/dist/{usePositioner-DkeyI5Le.js → usePositioner-CaLGGc-z.js} +98 -97
- package/dist/useTransitionStatus-CCIoL5RH.js +51 -0
- package/dist/{useTriggerFocusGuards-Qi8iK-AK.js → useTriggerFocusGuards-Dlv8KvSm.js} +7 -7
- package/package.json +1 -1
- package/dist/components/ui/atoms/removable-chip.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts +0 -31
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.js +0 -106
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts +0 -18
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts +0 -12
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts.map +0 -1
- package/dist/popupStateMapping-C8W76brO.js +0 -1221
- package/dist/useOpenChangeComplete-Bs6gnxd9.js +0 -127
- /package/dist/components/ui/{atoms → molecules}/removable-chip.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolkit-chip.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/toolkit-chip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"toolkit-chip.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/toolkit-chip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,MAAM,MAAM,mBAAmB,GAAG;IAChC,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAElD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,SAAS,EACT,KAAK,EACL,aAAa,EACb,KAAa,EACb,SAAiB,EACjB,MAAM,EACN,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,mBAAmB,qBAsCrB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { RemovableChip as e
|
|
3
|
+
import { RemovableChip as e } from "../removable-chip.js";
|
|
4
|
+
import { ChipBody as t } from "../chip-body.js";
|
|
4
5
|
import { McpToolkitAvatar as n } from "./toolkit-avatar.js";
|
|
5
6
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
7
|
//#region lib/components/ui/molecules/mcp-server-picker/toolkit-chip.tsx
|
|
@@ -12,29 +13,25 @@ function a({ name: a, toolkitId: o, total: s, selectedCount: c, added: l = !1, i
|
|
|
12
13
|
"data-status": g,
|
|
13
14
|
onRemove: f,
|
|
14
15
|
removeLabel: m,
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ r(t, {
|
|
16
17
|
"aria-label": h,
|
|
18
|
+
count: u && c != null && s != null ? /* @__PURE__ */ i("span", {
|
|
19
|
+
className: "shrink-0 text-[10px] text-muted-foreground tabular-nums",
|
|
20
|
+
children: [
|
|
21
|
+
c,
|
|
22
|
+
"/",
|
|
23
|
+
s
|
|
24
|
+
]
|
|
25
|
+
}) : null,
|
|
26
|
+
icon: /* @__PURE__ */ r(n, {
|
|
27
|
+
name: a,
|
|
28
|
+
size: "sm",
|
|
29
|
+
toolkitId: o
|
|
30
|
+
}),
|
|
31
|
+
label: a,
|
|
32
|
+
labelClassName: "max-w-44 truncate capitalize",
|
|
17
33
|
onClick: d,
|
|
18
|
-
title: h
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ r(n, {
|
|
21
|
-
name: a,
|
|
22
|
-
size: "sm",
|
|
23
|
-
toolkitId: o
|
|
24
|
-
}),
|
|
25
|
-
/* @__PURE__ */ r("span", {
|
|
26
|
-
className: "max-w-44 truncate font-medium capitalize",
|
|
27
|
-
children: a
|
|
28
|
-
}),
|
|
29
|
-
u && c != null && s != null ? /* @__PURE__ */ i("span", {
|
|
30
|
-
className: "shrink-0 text-[10px] text-muted-foreground tabular-nums",
|
|
31
|
-
children: [
|
|
32
|
-
c,
|
|
33
|
-
"/",
|
|
34
|
-
s
|
|
35
|
-
]
|
|
36
|
-
}) : null
|
|
37
|
-
]
|
|
34
|
+
title: h
|
|
38
35
|
})
|
|
39
36
|
});
|
|
40
37
|
}
|
|
@@ -22,7 +22,7 @@ function i({ name: i, toolkitId: a, avatarSize: o = "sm", headingAs: s = "h4", c
|
|
|
22
22
|
children: i
|
|
23
23
|
}),
|
|
24
24
|
c === void 0 ? null : /* @__PURE__ */ n("span", {
|
|
25
|
-
className: "shrink-0 text-muted-foreground text-xs tabular-nums",
|
|
25
|
+
className: "shrink-0 text-[var(--mcp-muted-foreground)] text-xs tabular-nums",
|
|
26
26
|
children: c
|
|
27
27
|
})
|
|
28
28
|
]
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export type McpUnoptimizedMatchCardProps = {
|
|
2
2
|
serverCount: number;
|
|
3
3
|
toolCount: number;
|
|
4
|
+
/** Explanation shown in the desktop-hover and mobile-tap tooltips. */
|
|
5
|
+
tooltip: string;
|
|
4
6
|
onShow?: () => void;
|
|
5
7
|
className?: string;
|
|
6
8
|
};
|
|
7
|
-
export declare function McpUnoptimizedMatchCard({ serverCount, toolCount, onShow, className, }: McpUnoptimizedMatchCardProps): import("react").JSX.Element | null;
|
|
9
|
+
export declare function McpUnoptimizedMatchCard({ serverCount, toolCount, tooltip, onShow, className, }: McpUnoptimizedMatchCardProps): import("react").JSX.Element | null;
|
|
8
10
|
//# sourceMappingURL=unoptimized-match-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unoptimized-match-card.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/unoptimized-match-card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unoptimized-match-card.d.ts","sourceRoot":"","sources":["../../../../../lib/components/ui/molecules/mcp-server-picker/unoptimized-match-card.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,4BAA4B,GAAG;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAMF,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,SAAS,EACT,OAAO,EACP,MAAM,EACN,SAAS,GACV,EAAE,4BAA4B,sCAyF9B"}
|
|
@@ -1,59 +1,61 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn as e } from "../../../../lib/utils.js";
|
|
4
|
-
import { i as t, n, r, t as i } from "../../../../tooltip-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { i as t, n, r, t as i } from "../../../../tooltip-BUR7V5Aa.js";
|
|
5
|
+
import { IconTile as a } from "../../atoms/icon-tile.js";
|
|
6
|
+
import { mcpSelectionCardShellVariants as o } from "./selection-card-parts.js";
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
import { Braces as l, Info as u } from "lucide-react";
|
|
7
9
|
//#region lib/components/ui/molecules/mcp-server-picker/unoptimized-match-card.tsx
|
|
8
|
-
function
|
|
10
|
+
function d(e, t) {
|
|
9
11
|
return `${e} ${t}${e === 1 ? "" : "s"}`;
|
|
10
12
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
className: e("flex h-full w-full items-center gap-2 rounded-lg border border-brand-text/40 border-dashed bg-muted/20 p-3", m),
|
|
13
|
+
function f({ serverCount: f, toolCount: p, tooltip: m, onShow: h, className: g }) {
|
|
14
|
+
if (f === 0 && p === 0) return null;
|
|
15
|
+
let _ = [f > 0 ? `+${d(f, "server")}` : null, p > 0 ? `+${d(p, "tool")}` : null].filter(Boolean).join(" ");
|
|
16
|
+
return /* @__PURE__ */ c("div", {
|
|
17
|
+
className: e(o({ selectionState: "none" }), "relative flex h-full w-full items-stretch border-[var(--mcp-picker-selected-border)] border-dashed dark:border-brand-text/40", g),
|
|
17
18
|
"data-slot": "mcp-unoptimized-match-card",
|
|
18
|
-
children: [/* @__PURE__ */
|
|
19
|
-
render: /* @__PURE__ */
|
|
20
|
-
"aria-label": `Show unoptimized (${
|
|
21
|
-
className: "flex min-w-0 flex-1 cursor-pointer items-center gap-2 text-left transition-
|
|
22
|
-
onClick:
|
|
19
|
+
children: [/* @__PURE__ */ s(r, { children: /* @__PURE__ */ c(i, { children: [/* @__PURE__ */ c(t, {
|
|
20
|
+
render: /* @__PURE__ */ s("button", {
|
|
21
|
+
"aria-label": `Show unoptimized (${_})`,
|
|
22
|
+
className: "flex min-w-0 flex-1 cursor-pointer items-center gap-2.5 rounded-lg px-3 py-2.5 text-left transition-[background-color,color,transform] duration-[var(--duration-fast)] ease-[var(--ease-smooth)] after:absolute after:inset-0 after:rounded-lg after:content-[''] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-inset active:translate-y-px motion-reduce:transition-colors motion-reduce:active:translate-y-0",
|
|
23
|
+
onClick: h,
|
|
23
24
|
type: "button"
|
|
24
25
|
}),
|
|
25
26
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
"
|
|
28
|
-
|
|
27
|
+
/* @__PURE__ */ s(a, {
|
|
28
|
+
className: "text-brand-text",
|
|
29
|
+
size: "xl",
|
|
30
|
+
children: /* @__PURE__ */ s(l, { "aria-hidden": !0 })
|
|
29
31
|
}),
|
|
30
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ s("span", {
|
|
31
33
|
className: "min-w-0 flex-1 truncate font-medium text-sm",
|
|
32
34
|
children: "Show unoptimized"
|
|
33
35
|
}),
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
className: "shrink-0 whitespace-nowrap text-muted-foreground text-xs tabular-nums",
|
|
36
|
-
children:
|
|
36
|
+
/* @__PURE__ */ s("span", {
|
|
37
|
+
className: "shrink-0 whitespace-nowrap text-[var(--mcp-muted-foreground)] text-xs tabular-nums",
|
|
38
|
+
children: _
|
|
37
39
|
})
|
|
38
40
|
]
|
|
39
|
-
}), /* @__PURE__ */
|
|
41
|
+
}), /* @__PURE__ */ s(n, {
|
|
40
42
|
className: "max-w-xs",
|
|
41
43
|
side: "top",
|
|
42
|
-
children:
|
|
43
|
-
})] }) }), /* @__PURE__ */
|
|
44
|
-
render: /* @__PURE__ */
|
|
44
|
+
children: m
|
|
45
|
+
})] }) }), /* @__PURE__ */ s(r, { children: /* @__PURE__ */ c(i, { children: [/* @__PURE__ */ s(t, {
|
|
46
|
+
render: /* @__PURE__ */ s("button", {
|
|
45
47
|
"aria-label": "What are unoptimized tools?",
|
|
46
|
-
className: "shrink-0 cursor-pointer rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 sm:hidden",
|
|
48
|
+
className: "relative z-10 flex shrink-0 cursor-pointer items-center rounded-r-lg px-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-inset sm:hidden",
|
|
47
49
|
type: "button"
|
|
48
50
|
}),
|
|
49
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ s(u, {
|
|
50
52
|
"aria-hidden": !0,
|
|
51
|
-
className: "size-3.5 text-muted-foreground"
|
|
53
|
+
className: "size-3.5 text-[var(--mcp-muted-foreground)]"
|
|
52
54
|
})
|
|
53
|
-
}), /* @__PURE__ */
|
|
55
|
+
}), /* @__PURE__ */ s(n, {
|
|
54
56
|
className: "max-w-xs",
|
|
55
57
|
side: "top",
|
|
56
|
-
children:
|
|
58
|
+
children: m
|
|
57
59
|
})] }) })]
|
|
58
60
|
});
|
|
59
61
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn as e } from "../../../lib/utils.js";
|
|
2
|
-
import { i as t, n, r, t as i } from "../../../tooltip-
|
|
3
|
-
import { o as a, r as o, t as s } from "../../../avatar-
|
|
2
|
+
import { i as t, n, r, t as i } from "../../../tooltip-BUR7V5Aa.js";
|
|
3
|
+
import { o as a, r as o, t as s } from "../../../avatar-DbL6b01k.js";
|
|
4
4
|
import { t as c } from "../../../markdown-BzQfFDNF.js";
|
|
5
5
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
6
|
//#region lib/components/ui/molecules/message.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn as e } from "../../../lib/utils.js";
|
|
2
|
-
import { i as t, n, r, t as i } from "../../../tooltip-
|
|
2
|
+
import { i as t, n, r, t as i } from "../../../tooltip-BUR7V5Aa.js";
|
|
3
3
|
import { Textarea as a } from "../atoms/textarea.js";
|
|
4
4
|
import o, { createContext as s, useContext as c, useLayoutEffect as l, useRef as u, useState as d } from "react";
|
|
5
5
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removable-chip.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/removable-chip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,QAAA,MAAM,mBAAmB,0WACgV,CAAC;AAE1W,MAAM,MAAM,kBAAkB,GAAG;IAC/B,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AAElD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,QAAQ,EACR,MAAc,EACd,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,kBAAkB,qBA2BpB;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAC9B,MAAM,CACP,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,qBAY1B;AAED,OAAO,EAAE,mBAAmB,IAAI,wBAAwB,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { cn as e } from "../../../lib/utils.js";
|
|
4
4
|
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
import { X as i } from "lucide-react";
|
|
6
|
-
//#region lib/components/ui/
|
|
6
|
+
//#region lib/components/ui/molecules/removable-chip.tsx
|
|
7
7
|
var a = "inline-flex cursor-pointer items-center gap-1.5 transition-[background-color,color,transform] duration-[var(--duration-fast)] ease-[var(--ease-smooth)] hover:bg-foreground/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-inset active:scale-[0.98] motion-reduce:transition-colors motion-reduce:active:scale-100";
|
|
8
8
|
function o({ removeLabel: a, onRemove: o, active: s = !1, children: c, className: l, ...u }) {
|
|
9
9
|
return /* @__PURE__ */ r("div", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n } from "../../../ui-
|
|
1
|
+
import { i as e, n as t, r as n } from "../../../ui-46pgiw5T.js";
|
|
2
2
|
export { t as OAuthBadge, n as RequirementBadges, e as SecretsBadge };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { i as e, n as t, r as n, t as r } from "../../../accordion-
|
|
3
|
+
import { i as e, n as t, r as n, t as r } from "../../../accordion-BP9Lgkg8.js";
|
|
4
4
|
import { cn as i } from "../../../lib/utils.js";
|
|
5
5
|
import { t as a } from "../../../dist-Ber_p4PA.js";
|
|
6
|
-
import { n as o, r as s, t as c } from "../../../collapsible-
|
|
6
|
+
import { n as o, r as s, t as c } from "../../../collapsible-DP7Fb-Lu.js";
|
|
7
7
|
import { CopyButton as l } from "../atoms/copy-button.js";
|
|
8
8
|
import { JsonHighlight as u } from "../atoms/json-highlight.js";
|
|
9
9
|
import * as d from "react";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn as e } from "../../../lib/utils.js";
|
|
4
4
|
import { t } from "../../../button-BdQxLUOB.js";
|
|
5
5
|
import { Card as n, CardContent as r } from "../atoms/card.js";
|
|
6
|
-
import { t as i } from "../../../checkbox-
|
|
7
|
-
import { n as a, r as o, t as s } from "../../../collapsible-
|
|
6
|
+
import { t as i } from "../../../checkbox-DB9O_Iw9.js";
|
|
7
|
+
import { n as a, r as o, t as s } from "../../../collapsible-DP7Fb-Lu.js";
|
|
8
8
|
import { createPropsComparator as c } from "../utils/memo.js";
|
|
9
9
|
import { useIsTruncated as l } from "../../../hooks/use-is-truncated.js";
|
|
10
10
|
import * as u from "react";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type UndoToastOptions = {
|
|
3
|
+
/** Human description of the change being offered for undo. */
|
|
4
|
+
message: string;
|
|
5
|
+
/** Optional leading glyph shown before the message. */
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
/** Label for the reversing action button. @default "Undo" */
|
|
8
|
+
actionLabel?: string;
|
|
9
|
+
/** Reverses the edit. */
|
|
10
|
+
onUndo: () => void;
|
|
11
|
+
/** Fires on any close — the action, the ✕, a swipe, or the auto-dismiss. */
|
|
12
|
+
onDismiss?: () => void;
|
|
13
|
+
/** Auto-dismiss delay for this toast. Falls back to the provider's value. */
|
|
14
|
+
dismissMs?: number;
|
|
15
|
+
};
|
|
16
|
+
export type UndoToastProviderProps = {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Anchor the toast inside this element instead of the document body — pass the
|
|
20
|
+
* picker's relatively-positioned shell so the pill sits over the list.
|
|
21
|
+
*/
|
|
22
|
+
container?: HTMLElement | null;
|
|
23
|
+
/** Extra classes for the positioning viewport. */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Default auto-dismiss delay. @default 4000 */
|
|
26
|
+
dismissMs?: number;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Base UI Toast–powered undo affordance. Base UI owns the auto-dismiss timer,
|
|
30
|
+
* pause-on-hover/focus, enter/exit animation, and swipe-to-dismiss; this wrapper
|
|
31
|
+
* only supplies single-slot semantics (a stable toast id), an anchored viewport,
|
|
32
|
+
* and the pill styling.
|
|
33
|
+
*
|
|
34
|
+
* Wrap the region in `UndoToastProvider`, then call `useUndoToast().show(...)`
|
|
35
|
+
* from any descendant.
|
|
36
|
+
*/
|
|
37
|
+
export declare function UndoToastProvider({ children, container, className, dismissMs, }: UndoToastProviderProps): React.JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Imperative handle for the undo toast: `show()` opens (or replaces) the pill,
|
|
40
|
+
* `dismiss()` closes it. Must be called under an `UndoToastProvider`. Both
|
|
41
|
+
* callbacks are stable, so they're safe to list in effect dependencies.
|
|
42
|
+
*/
|
|
43
|
+
export declare function useUndoToast(): {
|
|
44
|
+
show: ({ message, icon, actionLabel, onUndo, onDismiss, dismissMs, }: UndoToastOptions) => "mcp-undo-toast";
|
|
45
|
+
dismiss: () => void;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=undo-toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"undo-toast.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/undo-toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAiBpC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,8DAA8D;IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,SAAS,EACT,SAA8B,GAC/B,EAAE,sBAAsB,qBAmBxB;AA8CD;;;;GAIG;AACH,wBAAgB,YAAY;0EAWrB,gBAAgB;;EA2CtB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn as e } from "../../../lib/utils.js";
|
|
2
2
|
import { t } from "../../../button-BdQxLUOB.js";
|
|
3
|
-
import { o as n, r, t as i } from "../../../avatar-
|
|
4
|
-
import { h as a, o, r as s, t as c, u as l } from "../../../dropdown-menu-
|
|
3
|
+
import { o as n, r, t as i } from "../../../avatar-DbL6b01k.js";
|
|
4
|
+
import { h as a, o, r as s, t as c, u as l } from "../../../dropdown-menu-ecggVuhu.js";
|
|
5
5
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
6
|
import { ChevronsUpDownIcon as p } from "lucide-react";
|
|
7
7
|
//#region lib/components/ui/molecules/user-nav.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-selection-summary-bar.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-selection-summary-bar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp-selection-summary-bar.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-selection-summary-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,0DAA0D,CAAC;AAGlE,MAAM,MAAM,4BAA4B,GAAG;IACzC,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAC;CACZ,GAAG,IAAI,CAAC,mBAAmB,EAAE,QAAQ,GAAG,UAAU,CAAC,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;;;;;;;OASG;IACH,UAAU,EAAE,4BAA4B,EAAE,CAAC;IAC3C;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAClD;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,4CAA4C;IAC5C,WAAW,CAAC,EAAE,uBAAuB,CAAC,YAAY,CAAC,CAAC;IACpD,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,wDAAwD;IACxD,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,8DAA8D;IAC9D,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,mDAAmD;IACnD,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,UAAU,EACV,qBAA0B,EAC1B,SAAS,EACT,SAAiB,EACjB,oBAA4B,EAC5B,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,OAAO,EACP,YAAsC,EACtC,SAAS,EACT,GAAG,IAAI,EACR,EAAE,2BAA2B,qBA8D7B"}
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn as e } from "../../../lib/utils.js";
|
|
4
|
-
import { t } from "
|
|
4
|
+
import { ClearButton as t } from "../atoms/clear-button.js";
|
|
5
5
|
import { McpReviewCountChip as n } from "../molecules/mcp-server-picker/review-count-chip.js";
|
|
6
6
|
import { McpToolkitChip as r } from "../molecules/mcp-server-picker/toolkit-chip.js";
|
|
7
7
|
import { McpRecommendedToolkitsChip as i } from "../molecules/mcp-server-picker/recommended-toolkits-chip.js";
|
|
8
8
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
|
-
import { X as c } from "lucide-react";
|
|
10
9
|
//#region lib/components/ui/organisms/mcp-selection-summary-bar.tsx
|
|
11
|
-
function
|
|
12
|
-
let
|
|
10
|
+
function c({ mcpServers: c, recommendedMcpServers: l = [], toolCount: u, reviewing: d = !1, reviewingRecommended: f = !1, reviewLabel: p, onReview: m, onReviewRecommended: h, onOpenMcpServer: g, onRemoveMcpServer: _, onRemoveRecommended: v, onClear: y, emptyMessage: b = "No tools selected yet", className: x, ...S }) {
|
|
11
|
+
let C = c.length + l.length, w = C > 0;
|
|
13
12
|
return /* @__PURE__ */ o("div", {
|
|
14
|
-
...
|
|
15
|
-
className: e("@container flex min-h-9 items-center gap-2 rounded-lg bg-muted/30 px-2.5 py-1.5",
|
|
13
|
+
...S,
|
|
14
|
+
className: e("@container flex min-h-9 items-center gap-2 rounded-lg bg-muted/30 px-2.5 py-1.5", x),
|
|
16
15
|
"data-slot": "mcp-selection-summary-bar",
|
|
17
|
-
"data-status":
|
|
18
|
-
children:
|
|
16
|
+
"data-status": w ? "filled" : "empty",
|
|
17
|
+
children: w ? /* @__PURE__ */ s(a, { children: [
|
|
19
18
|
/* @__PURE__ */ o(n, {
|
|
20
|
-
active:
|
|
21
|
-
"aria-label":
|
|
22
|
-
onClick:
|
|
23
|
-
serverCount:
|
|
24
|
-
toolCount:
|
|
19
|
+
active: d,
|
|
20
|
+
"aria-label": p,
|
|
21
|
+
onClick: m,
|
|
22
|
+
serverCount: C,
|
|
23
|
+
toolCount: u
|
|
25
24
|
}),
|
|
26
25
|
/* @__PURE__ */ o("span", {
|
|
27
26
|
"aria-hidden": !0,
|
|
@@ -29,30 +28,28 @@ function l({ mcpServers: l, recommendedMcpServers: u = [], toolCount: d, reviewi
|
|
|
29
28
|
}),
|
|
30
29
|
/* @__PURE__ */ s("div", {
|
|
31
30
|
className: "scroll-fade-x @md:flex hidden min-w-0 flex-1 gap-1.5 overflow-x-auto p-0.5 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
32
|
-
children: [
|
|
33
|
-
active:
|
|
34
|
-
mcpServers:
|
|
35
|
-
onOpenMcpServer:
|
|
36
|
-
onRemove:
|
|
37
|
-
onReview:
|
|
38
|
-
}) : null,
|
|
31
|
+
children: [l.length > 0 ? /* @__PURE__ */ o(i, {
|
|
32
|
+
active: f,
|
|
33
|
+
mcpServers: l,
|
|
34
|
+
onOpenMcpServer: g,
|
|
35
|
+
onRemove: v,
|
|
36
|
+
onReview: h
|
|
37
|
+
}) : null, c.map(({ id: e, ...t }) => /* @__PURE__ */ o(r, {
|
|
39
38
|
...t,
|
|
40
|
-
onOpen:
|
|
41
|
-
onRemove:
|
|
39
|
+
onOpen: g ? () => g(e) : void 0,
|
|
40
|
+
onRemove: _ ? () => _(e) : void 0
|
|
42
41
|
}, e))]
|
|
43
42
|
}),
|
|
44
|
-
|
|
45
|
-
className: "ml-auto
|
|
46
|
-
onClick:
|
|
47
|
-
size: "sm"
|
|
48
|
-
variant: "outline",
|
|
49
|
-
children: [/* @__PURE__ */ o(c, { "aria-hidden": !0 }), "Clear all"]
|
|
43
|
+
y ? /* @__PURE__ */ o(t, {
|
|
44
|
+
className: "ml-auto",
|
|
45
|
+
onClick: y,
|
|
46
|
+
size: "sm"
|
|
50
47
|
}) : null
|
|
51
48
|
] }) : /* @__PURE__ */ o("span", {
|
|
52
49
|
className: "flex shrink-0 items-center px-2 py-1 font-medium text-muted-foreground text-xs",
|
|
53
|
-
children:
|
|
50
|
+
children: b
|
|
54
51
|
})
|
|
55
52
|
});
|
|
56
53
|
}
|
|
57
54
|
//#endregion
|
|
58
|
-
export {
|
|
55
|
+
export { c as McpSelectionSummaryBar };
|
|
@@ -11,7 +11,7 @@ import type * as React from "react";
|
|
|
11
11
|
* <McpServerPicker>
|
|
12
12
|
* <McpServerPickerHeader>
|
|
13
13
|
* <Input ... />
|
|
14
|
-
* <
|
|
14
|
+
* <FilterChipGroup ... />
|
|
15
15
|
* <McpUnoptimizedToggle ... />
|
|
16
16
|
* </McpServerPickerHeader>
|
|
17
17
|
* <McpSelectionSummaryBar ... />
|
|
@@ -32,8 +32,11 @@ export declare function McpServerPicker({ className, ...props }: React.Component
|
|
|
32
32
|
*/
|
|
33
33
|
export declare function McpServerPickerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
34
34
|
/**
|
|
35
|
-
* Responsive grid of server cards
|
|
36
|
-
*
|
|
35
|
+
* Responsive grid of server cards that keeps a roomy card width as the
|
|
36
|
+
* container grows: one column when narrow, two at `@2xl` (~672px), three at
|
|
37
|
+
* `@7xl` (~1280px). Capped at three so cards never get cramped or overly wide,
|
|
38
|
+
* and the name + description always have room. The steps match the ui-kit
|
|
39
|
+
* picker's 672/1280px column breakpoints so the two stay in sync.
|
|
37
40
|
*/
|
|
38
41
|
export declare function McpServerPickerGrid({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
39
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server-picker.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-server-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ7B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAW7B;AAED
|
|
1
|
+
{"version":3,"file":"mcp-server-picker.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/organisms/mcp-server-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ7B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAW7B;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAW7B;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAa7B"}
|
|
@@ -6,28 +6,28 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
6
6
|
function n({ className: n, ...r }) {
|
|
7
7
|
return /* @__PURE__ */ t("div", {
|
|
8
8
|
...r,
|
|
9
|
-
className: e("@container space-y-3", n),
|
|
9
|
+
className: e("@container space-y-3.5", n),
|
|
10
10
|
"data-slot": "mcp-server-picker"
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
function r({ className: n, ...r }) {
|
|
14
14
|
return /* @__PURE__ */ t("div", {
|
|
15
15
|
...r,
|
|
16
|
-
className: e("flex @3xl:flex-row flex-col @3xl:items-center @3xl:gap-
|
|
16
|
+
className: e("flex @3xl:flex-row flex-col @3xl:items-center @3xl:gap-2 gap-2", n),
|
|
17
17
|
"data-slot": "mcp-server-picker-header"
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
function i({ className: n, ...r }) {
|
|
21
21
|
return /* @__PURE__ */ t("div", {
|
|
22
22
|
...r,
|
|
23
|
-
className: e("grid @
|
|
23
|
+
className: e("grid @2xl:grid-cols-2 @7xl:grid-cols-3 grid-cols-1 gap-2.5", n),
|
|
24
24
|
"data-slot": "mcp-server-picker-grid"
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
function a({ className: n, ...r }) {
|
|
28
28
|
return /* @__PURE__ */ t("div", {
|
|
29
29
|
...r,
|
|
30
|
-
className: e("grid @4xl:grid-cols-3 @xl:grid-cols-2 grid-cols-1 gap-2", n),
|
|
30
|
+
className: e("grid @4xl:grid-cols-3 @xl:grid-cols-2 grid-cols-1 gap-2.5", n),
|
|
31
31
|
"data-slot": "mcp-server-picker-tool-grid"
|
|
32
32
|
});
|
|
33
33
|
}
|