@arcadeai/design-system 3.46.0 → 3.48.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/README.md +1 -1
- package/dist/{toggle-C4ztdcN-.js → Toggle-CyMSF-Z7.js} +14 -46
- package/dist/ToolbarRootContext-DVNA8Vkb.js +13 -0
- package/dist/{alert-dialog-oB_cE8NP.js → alert-dialog-tBMDYzJ3.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/components/index.js +236 -215
- package/dist/components/ui/atoms/alert-dialog.js +1 -1
- package/dist/components/ui/atoms/avatar-notification-badge.d.ts +2 -2
- package/dist/components/ui/atoms/avatar-notification-badge.d.ts.map +1 -1
- package/dist/components/ui/atoms/avatar-notification-badge.js +21 -0
- package/dist/components/ui/atoms/dropdown-menu.js +1 -1
- package/dist/components/ui/atoms/filter-chip.d.ts +16 -0
- package/dist/components/ui/atoms/filter-chip.d.ts.map +1 -0
- package/dist/components/ui/atoms/filter-chip.js +37 -0
- package/dist/components/ui/atoms/index.d.ts +4 -0
- package/dist/components/ui/atoms/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/index.js +193 -189
- package/dist/components/ui/atoms/mobile-tooltip.js +1 -1
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/removable-chip.d.ts +38 -0
- package/dist/components/ui/atoms/removable-chip.d.ts.map +1 -0
- package/dist/components/ui/atoms/removable-chip.js +36 -0
- package/dist/components/ui/atoms/scroll-area.d.ts +7 -1
- package/dist/components/ui/atoms/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/atoms/scroll-area.js +1 -1
- package/dist/components/ui/atoms/select.js +1 -1
- package/dist/components/ui/atoms/toggle-group.d.ts +29 -0
- package/dist/components/ui/atoms/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/atoms/toggle-group.js +3 -0
- package/dist/components/ui/atoms/toggle.js +36 -2
- package/dist/components/ui/atoms/unoptimized-marker.d.ts +16 -0
- package/dist/components/ui/atoms/unoptimized-marker.d.ts.map +1 -0
- package/dist/components/ui/atoms/unoptimized-marker.js +20 -0
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +236 -215
- package/dist/components/ui/molecules/confirm-popover.js +1 -1
- package/dist/components/ui/molecules/date-time-picker.js +1 -1
- package/dist/components/ui/molecules/empty-state.d.ts +28 -3
- package/dist/components/ui/molecules/empty-state.d.ts.map +1 -1
- package/dist/components/ui/molecules/empty-state.js +25 -19
- package/dist/components/ui/molecules/index.d.ts +30 -0
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +25 -10
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts +31 -0
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.js +106 -0
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts +18 -0
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.js +34 -0
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.d.ts +53 -0
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.js +91 -0
- package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.d.ts +52 -0
- package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.js +103 -0
- package/dist/components/ui/molecules/mcp-server-picker/review-count-chip.d.ts +22 -0
- package/dist/components/ui/molecules/mcp-server-picker/review-count-chip.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/review-count-chip.js +42 -0
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.d.ts +18 -0
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.js +31 -0
- package/dist/components/ui/molecules/mcp-server-picker/section-callout.d.ts +21 -0
- package/dist/components/ui/molecules/mcp-server-picker/section-callout.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/section-callout.js +23 -0
- package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.d.ts +39 -0
- package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.js +43 -0
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts +16 -0
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.js +99 -0
- package/dist/components/ui/molecules/mcp-server-picker/server-card.d.ts +41 -0
- package/dist/components/ui/molecules/mcp-server-picker/server-card.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/server-card.js +124 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.d.ts +27 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +67 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts +8 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.js +41 -0
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts +16 -0
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.js +56 -0
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.d.ts +38 -0
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.js +42 -0
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-group-header.d.ts +33 -0
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-group-header.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-group-header.js +36 -0
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-callout.d.ts +10 -0
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-callout.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-callout.js +15 -0
- package/dist/components/ui/molecules/user-nav.js +1 -1
- package/dist/components/ui/organisms/index.d.ts +5 -0
- package/dist/components/ui/organisms/index.d.ts.map +1 -0
- package/dist/components/ui/organisms/index.js +3 -0
- package/dist/components/ui/organisms/mcp-selection-summary-bar.d.ts +71 -0
- package/dist/components/ui/organisms/mcp-selection-summary-bar.d.ts.map +1 -0
- package/dist/components/ui/organisms/mcp-selection-summary-bar.js +61 -0
- package/dist/components/ui/organisms/mcp-server-picker.d.ts +45 -0
- package/dist/components/ui/organisms/mcp-server-picker.d.ts.map +1 -0
- package/dist/components/ui/organisms/mcp-server-picker.js +35 -0
- package/dist/components/ui/pages/login-page.js +19 -19
- package/dist/components/ui/templates/gateway-diagram.js +10 -10
- package/dist/{dropdown-menu-DCFuLDwH.js → dropdown-menu-dsg43mOw.js} +2 -1
- package/dist/hooks/use-scroll-fade.d.ts +15 -0
- package/dist/hooks/use-scroll-fade.d.ts.map +1 -0
- package/dist/hooks/use-scroll-fade.js +38 -0
- package/dist/main.js +242 -221
- package/dist/metadata/index.js +6 -6
- package/dist/metadata/toolkit-icons.d.ts +15 -0
- package/dist/metadata/toolkit-icons.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.js +294 -292
- package/dist/{popover-Ck3ILBUA.js → popover-CXSOUeVQ.js} +2 -1
- package/dist/{scroll-area-BD6qsU_I.js → scroll-area-53KPfESS.js} +6 -3
- package/dist/{select-cAvbXH_n.js → select-CPTT__cT.js} +2 -1
- package/dist/toggle-group-CDYMBO0F.js +87 -0
- package/dist/useAnchoredPopupScrollLock-C8wRjuy0.js +24 -0
- package/package.json +1 -1
- package/dist/ToolbarRootContext-Dubw_915.js +0 -34
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { i as e, n as t, r as n, t as r } from "../../../tooltip-34vRSwJG.js";
|
|
4
|
-
import { n as i, o as a, t as o } from "../../../popover-
|
|
4
|
+
import { n as i, o as a, t as o } from "../../../popover-CXSOUeVQ.js";
|
|
5
5
|
import { createContext as s, useContext as c, useEffect as l, useState as u } from "react";
|
|
6
6
|
import { jsx as d } from "react/jsx-runtime";
|
|
7
7
|
//#region lib/components/ui/atoms/mobile-tooltip.tsx
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../popover-
|
|
2
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../popover-CXSOUeVQ.js";
|
|
3
3
|
export { a as Popover, n as PopoverContent, i as PopoverDescription, t as PopoverHeader, e as PopoverTitle, r as PopoverTrigger };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
declare const chipBodyButtonClass = "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";
|
|
3
|
+
export type RemovableChipProps = {
|
|
4
|
+
/** Accessible label for the trailing remove (×) button. */
|
|
5
|
+
removeLabel: string;
|
|
6
|
+
/** Remove handler for the trailing × button. */
|
|
7
|
+
onRemove?: () => void;
|
|
8
|
+
/**
|
|
9
|
+
* Pressed/open visual — adds a ring so the active state reads at a glance.
|
|
10
|
+
* The ring uses the default focus colour; override it (or add a fill) through
|
|
11
|
+
* `className` when a chip wants a branded active state.
|
|
12
|
+
*/
|
|
13
|
+
active?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Chip body — typically one or more `RemovableChipButton`s plus any middle
|
|
16
|
+
* affordances (e.g. a popover trigger). The faint divider and the trailing ×
|
|
17
|
+
* button are appended automatically.
|
|
18
|
+
*/
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
} & Omit<React.ComponentProps<"div">, "children">;
|
|
21
|
+
/**
|
|
22
|
+
* The shared shell for the picker's segmented chips: a rounded `bg-muted/40`
|
|
23
|
+
* pill hosting a body, then a faint divider, then a trailing × remove button.
|
|
24
|
+
* Centralising the shell, divider, and remove button keeps every chip's shape,
|
|
25
|
+
* focus ring, and press animation in sync — consumers supply only the body and
|
|
26
|
+
* the labels. Powers `McpToolkitChip` and `McpRecommendedToolkitsChip`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function RemovableChip({ removeLabel, onRemove, active, children, className, ...rest }: RemovableChipProps): React.JSX.Element;
|
|
29
|
+
export type RemovableChipButtonProps = Omit<React.ComponentProps<"button">, "type">;
|
|
30
|
+
/**
|
|
31
|
+
* A body affordance inside a `RemovableChip` (e.g. "open this server's tools"
|
|
32
|
+
* or "review this set"). Shares the chip's hover, focus, and press styling and
|
|
33
|
+
* rounds its left edge to meet the shell. Pass `className` to tune padding for
|
|
34
|
+
* its position in the chip.
|
|
35
|
+
*/
|
|
36
|
+
export declare function RemovableChipButton({ className, ...props }: RemovableChipButtonProps): React.JSX.Element;
|
|
37
|
+
export { chipBodyButtonClass as removableChipButtonClass };
|
|
38
|
+
//# sourceMappingURL=removable-chip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removable-chip.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../../lib/utils.js";
|
|
4
|
+
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
import { X as i } from "lucide-react";
|
|
6
|
+
//#region lib/components/ui/atoms/removable-chip.tsx
|
|
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
|
+
function o({ removeLabel: a, onRemove: o, active: s = !1, children: c, className: l, ...u }) {
|
|
9
|
+
return /* @__PURE__ */ r("div", {
|
|
10
|
+
className: e("ds-focus-in inline-flex shrink-0 items-center rounded-md bg-muted/40 text-xs", s ? "ring-2 ring-ring/60" : "hover:bg-muted/60", l),
|
|
11
|
+
...u,
|
|
12
|
+
children: [c, o ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("span", {
|
|
13
|
+
"aria-hidden": !0,
|
|
14
|
+
className: "h-4 w-px shrink-0 bg-foreground/10"
|
|
15
|
+
}), /* @__PURE__ */ n("button", {
|
|
16
|
+
"aria-label": a,
|
|
17
|
+
className: "inline-flex cursor-pointer items-center self-stretch rounded-r-md pr-2 pl-1.5 text-muted-foreground transition-[background-color,color,transform] duration-[var(--duration-fast)] ease-[var(--ease-smooth)] hover:bg-foreground/10 hover:text-foreground 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",
|
|
18
|
+
onClick: o,
|
|
19
|
+
title: a,
|
|
20
|
+
type: "button",
|
|
21
|
+
children: /* @__PURE__ */ n(i, {
|
|
22
|
+
"aria-hidden": !0,
|
|
23
|
+
className: "size-3"
|
|
24
|
+
})
|
|
25
|
+
})] }) : null]
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function s({ className: t, ...r }) {
|
|
29
|
+
return /* @__PURE__ */ n("button", {
|
|
30
|
+
className: e(a, "rounded-l-md py-1 pr-2 pl-1.5", t),
|
|
31
|
+
type: "button",
|
|
32
|
+
...r
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { o as RemovableChip, s as RemovableChipButton, a as removableChipButtonClass };
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { ScrollArea as ScrollAreaPrimitive } from '@base-ui/react/scroll-area';
|
|
2
2
|
type ScrollAreaType = "auto" | "always" | "hover" | "scroll";
|
|
3
|
-
declare function ScrollArea({ className, children, type, ...props }: ScrollAreaPrimitive.Root.Props & {
|
|
3
|
+
declare function ScrollArea({ className, children, type, orientation, ...props }: ScrollAreaPrimitive.Root.Props & {
|
|
4
4
|
type?: ScrollAreaType;
|
|
5
|
+
/**
|
|
6
|
+
* Which scrollbar(s) to render. Defaults to `vertical`; use `horizontal`
|
|
7
|
+
* for a single row that overflows sideways (e.g. a chip strip), or `both`
|
|
8
|
+
* for a 2-axis area.
|
|
9
|
+
*/
|
|
10
|
+
orientation?: "vertical" | "horizontal" | "both";
|
|
5
11
|
}): import("react").JSX.Element;
|
|
6
12
|
declare function ScrollBar({ className, orientation, ...props }: ScrollAreaPrimitive.Scrollbar.Props): import("react").JSX.Element;
|
|
7
13
|
export { ScrollArea, ScrollBar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/scroll-area.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAI/E,KAAK,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAW7D,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,IAAa,EACb,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,IAAI,CAAC,KAAK,GAAG;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/scroll-area.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAI/E,KAAK,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAW7D,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,IAAa,EACb,WAAwB,EACxB,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,IAAI,CAAC,KAAK,GAAG;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;CAClD,+BA0BA;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAAwB,EACxB,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,SAAS,CAAC,KAAK,+BAkBrC;AAED,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "../../../select-
|
|
2
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "../../../select-CPTT__cT.js";
|
|
3
3
|
export { c as Select, i as SelectContent, o as SelectGroup, n as SelectItem, e as SelectLabel, a as SelectScrollDownButton, s as SelectScrollUpButton, t as SelectSeparator, r as SelectTrigger, l as SelectValue };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Toggle as TogglePrimitive } from '@base-ui/react/toggle';
|
|
2
|
+
import { ToggleGroup as ToggleGroupPrimitive } from '@base-ui/react/toggle-group';
|
|
3
|
+
import { FilterChipProps } from './filter-chip';
|
|
4
|
+
import type * as React from "react";
|
|
5
|
+
export type ToggleGroupProps = ToggleGroupPrimitive.Props;
|
|
6
|
+
/**
|
|
7
|
+
* A set of related toggle buttons that share pressed state. Wraps Base UI's
|
|
8
|
+
* `ToggleGroup`, which manages the value array, roving keyboard focus, and
|
|
9
|
+
* single-vs-multi-select semantics (`multiple`). Render `ToggleGroupChip`
|
|
10
|
+
* children for the design system's pill styling.
|
|
11
|
+
*/
|
|
12
|
+
export declare function ToggleGroup({ className, ...props }: ToggleGroupProps): React.JSX.Element;
|
|
13
|
+
export type ToggleGroupChipProps = {
|
|
14
|
+
/** The value contributed to the group when this chip is pressed. */
|
|
15
|
+
value: string;
|
|
16
|
+
/** Extra classes merged after the chip variants. */
|
|
17
|
+
className?: string;
|
|
18
|
+
} & Pick<FilterChipProps, "size"> & Omit<React.ComponentProps<typeof TogglePrimitive>, "value" | "render" | "className">;
|
|
19
|
+
/**
|
|
20
|
+
* A `ToggleGroup` item styled as a filter chip. Reuses `filterChipVariants` so
|
|
21
|
+
* the chip's shape, focus ring, and selected fill stay identical to the
|
|
22
|
+
* standalone `FilterChip`. The selected fill is driven by Base UI's actual
|
|
23
|
+
* pressed state — derived from the group's value — so it can never drift from
|
|
24
|
+
* what the group considers selected; the consumer passes no `selected` prop.
|
|
25
|
+
* Base UI also supplies `aria-pressed`, `data-pressed`, and the group's
|
|
26
|
+
* keyboard navigation.
|
|
27
|
+
*/
|
|
28
|
+
export declare function ToggleGroupChip({ value, size, className, ...props }: ToggleGroupChipProps): React.JSX.Element;
|
|
29
|
+
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/toggle-group.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,eAAe,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,KAAK,CAAC;AAE1D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,qBAQpE;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,GAC/B,IAAI,CACF,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,EAC5C,OAAO,GAAG,QAAQ,GAAG,WAAW,CACjC,CAAC;AAEJ;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,qBAWtB"}
|
|
@@ -1,3 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../../lib/utils.js";
|
|
4
|
+
import { t } from "../../../dist-Ber_p4PA.js";
|
|
5
|
+
import { t as n } from "../../../Toggle-CyMSF-Z7.js";
|
|
6
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
7
|
+
//#region lib/components/ui/atoms/toggle.tsx
|
|
8
|
+
var i = t("group/toggle inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-[color,box-shadow] hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-pressed:bg-muted aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-transparent",
|
|
12
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-muted"
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
default: "h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
16
|
+
sm: "h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
|
|
17
|
+
lg: "h-10 min-w-10 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
variant: "default",
|
|
22
|
+
size: "default"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
function a({ className: t, variant: a = "default", size: o = "default", ...s }) {
|
|
26
|
+
return /* @__PURE__ */ r(n, {
|
|
27
|
+
className: e(i({
|
|
28
|
+
variant: a,
|
|
29
|
+
size: o,
|
|
30
|
+
className: t
|
|
31
|
+
})),
|
|
32
|
+
"data-slot": "toggle",
|
|
33
|
+
...s
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { a as Toggle, i as toggleVariants };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type UnoptimizedMarkerProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Show the `{}` marker. When false the slot collapses to zero width (and
|
|
5
|
+
* fades out) so the row it sits in doesn't shift between states.
|
|
6
|
+
*/
|
|
7
|
+
active: boolean;
|
|
8
|
+
} & React.ComponentProps<"span">;
|
|
9
|
+
/**
|
|
10
|
+
* The `{}` braces marker flagging an unoptimized (action-level) tool or server.
|
|
11
|
+
* Renders inside a fixed-height slot that animates its width and opacity, so it
|
|
12
|
+
* can appear and disappear in place without nudging the surrounding layout.
|
|
13
|
+
* Shared by `McpServerCard` and `McpToolCard` so the marker stays identical.
|
|
14
|
+
*/
|
|
15
|
+
export declare function UnoptimizedMarker({ active, className, ...props }: UnoptimizedMarkerProps): React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=unoptimized-marker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unoptimized-marker.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/unoptimized-marker.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB,GAAG,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AAEjC;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EAAE,sBAAsB,qBAexB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../../lib/utils.js";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
import { Braces as n } from "lucide-react";
|
|
6
|
+
//#region lib/components/ui/atoms/unoptimized-marker.tsx
|
|
7
|
+
function r({ active: r, className: i, ...a }) {
|
|
8
|
+
return /* @__PURE__ */ t("span", {
|
|
9
|
+
...a,
|
|
10
|
+
"aria-hidden": !0,
|
|
11
|
+
className: e("inline-flex h-4 shrink-0 items-center justify-center overflow-hidden text-muted-foreground transition-[width,opacity] duration-[var(--duration-fast)] ease-[var(--ease-smooth)] motion-reduce:transition-none", r ? "w-4 opacity-100" : "w-0 opacity-0", i),
|
|
12
|
+
"data-slot": "unoptimized-marker",
|
|
13
|
+
children: r ? /* @__PURE__ */ t(n, {
|
|
14
|
+
"aria-hidden": !0,
|
|
15
|
+
className: "ds-pop-in size-3.5"
|
|
16
|
+
}) : null
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as UnoptimizedMarker };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** biome-ignore-all lint/performance/noBarrelFile: Barrel files are acceptable for atomic component folders */
|
|
2
2
|
export * from './atoms';
|
|
3
3
|
export * from './molecules';
|
|
4
|
+
export * from './organisms';
|
|
4
5
|
export * from './pages';
|
|
5
6
|
export * from './templates';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/ui/index.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAC/G,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/ui/index.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAC/G,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|