@arcadeai/design-system 4.1.0 → 5.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/assets/icons/postman.js +99 -0
- 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 +96 -96
- package/dist/components/ui/atoms/icons/index.d.ts +1 -0
- package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/index.js +42 -41
- package/dist/components/ui/atoms/icons/postman.d.ts +4 -0
- package/dist/components/ui/atoms/icons/postman.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/postman.js +91 -0
- package/dist/components/ui/atoms/index.js +69 -68
- package/dist/components/ui/index.js +96 -96
- package/dist/components/ui/molecules/index.d.ts +0 -2
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +8 -9
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.js +13 -18
- package/dist/components/ui/organisms/mcp-selection-summary-bar.d.ts.map +1 -1
- package/dist/components/ui/organisms/mcp-selection-summary-bar.js +34 -38
- package/dist/main.js +101 -101
- package/dist/metadata/toolkit-icons.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.js +67 -65
- package/dist/metadata/toolkits.d.ts.map +1 -1
- package/dist/metadata/toolkits.js +13 -0
- package/package.json +1 -1
- package/dist/components/ui/molecules/scroll-fade-area.d.ts +0 -32
- package/dist/components/ui/molecules/scroll-fade-area.d.ts.map +0 -1
- package/dist/components/ui/molecules/scroll-fade-area.js +0 -30
- package/dist/hooks/use-scroll-fade.d.ts +0 -22
- package/dist/hooks/use-scroll-fade.d.ts.map +0 -1
- package/dist/hooks/use-scroll-fade.js +0 -39
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type ScrollFadeAreaProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
/** Classes for the outer sizing context. Defaults fill a flex column. */
|
|
5
|
-
className?: string;
|
|
6
|
-
/** Classes for the inner scroll viewport (padding, child spacing). */
|
|
7
|
-
viewportClassName?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Receives the scroll viewport element (or `null` on unmount). Use when a
|
|
10
|
-
* child needs the scroll container itself — e.g. a virtualizer that reads
|
|
11
|
-
* scroll position from it.
|
|
12
|
-
*/
|
|
13
|
-
viewportRef?: (el: HTMLDivElement | null) => void;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Vertical scroll area with "there's more" affordances on whichever edge still
|
|
17
|
-
* has hidden content: a fade-to-background gradient plus a soft inset shadow.
|
|
18
|
-
* Both appear per edge and only when that edge can actually scroll.
|
|
19
|
-
*
|
|
20
|
-
* This draws gradient overlays from `useScrollFade`'s `edges` rather than
|
|
21
|
-
* spreading the hook's `maskImage` style. A mask fades content to fully
|
|
22
|
-
* transparent, which reads too strongly in dark mode; gradient overlays fade to
|
|
23
|
-
* the surface color and let us dial the intensity per theme (see the
|
|
24
|
-
* `dark:from-background/40` stops below). Horizontal scrollers that want the
|
|
25
|
-
* lighter mask treatment should consume `useScrollFade("x").style` directly.
|
|
26
|
-
*
|
|
27
|
-
* The overlays fade to the `background` token, so place this on a
|
|
28
|
-
* background-colored surface; on a `card`/`muted` surface the gradient seams.
|
|
29
|
-
* Such callers want the mask treatment instead.
|
|
30
|
-
*/
|
|
31
|
-
export declare function ScrollFadeArea({ children, className, viewportClassName, viewportRef, }: ScrollFadeAreaProps): import("react").JSX.Element;
|
|
32
|
-
//# sourceMappingURL=scroll-fade-area.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-fade-area.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/molecules/scroll-fade-area.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAI5D,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,WAAW,GACZ,EAAE,mBAAmB,+BAkDrB"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
import { cn as e } from "../../../lib/utils.js";
|
|
4
|
-
import { useScrollFade as t } from "../../../hooks/use-scroll-fade.js";
|
|
5
|
-
import { useCallback as n, useRef as r } from "react";
|
|
6
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
-
//#region lib/components/ui/molecules/scroll-fade-area.tsx
|
|
8
|
-
function o({ children: o, className: s, viewportClassName: c, viewportRef: l }) {
|
|
9
|
-
let u = t("y"), d = r(l);
|
|
10
|
-
d.current = l;
|
|
11
|
-
let f = n((e) => {
|
|
12
|
-
u.ref(e), d.current?.(e);
|
|
13
|
-
}, [u.ref]), p = [u.edges.start && "inset 0 8px 12px -10px color-mix(in oklch, var(--shadow-color) 3%, transparent)", u.edges.end && "inset 0 -12px 16px -10px color-mix(in oklch, var(--shadow-color) 6%, transparent)"].filter(Boolean).join(", ") || void 0;
|
|
14
|
-
return /* @__PURE__ */ a("div", {
|
|
15
|
-
className: e("relative min-h-0 flex-1", s),
|
|
16
|
-
children: [
|
|
17
|
-
u.edges.start ? /* @__PURE__ */ i("div", { className: "pointer-events-none absolute inset-x-0 top-0 z-10 h-8 bg-gradient-to-b from-background to-transparent dark:from-background/40" }) : null,
|
|
18
|
-
u.edges.end ? /* @__PURE__ */ i("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 z-10 h-10 bg-gradient-to-t from-background to-transparent dark:from-background/40" }) : null,
|
|
19
|
-
/* @__PURE__ */ i("div", {
|
|
20
|
-
className: e("h-full overflow-y-auto transition-shadow duration-200", c),
|
|
21
|
-
onScroll: u.onScroll,
|
|
22
|
-
ref: f,
|
|
23
|
-
style: { boxShadow: p },
|
|
24
|
-
children: o
|
|
25
|
-
})
|
|
26
|
-
]
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
export { o as ScrollFadeArea };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fades the edge(s) of a scroll container that still have hidden content, via a
|
|
3
|
-
* dynamic mask-image — a lightweight "there's more" hint with no extra DOM.
|
|
4
|
-
* Works on either axis and only fades an edge you can actually scroll toward.
|
|
5
|
-
* Attach `ref` + `onScroll` to the scrollable element and spread `style`.
|
|
6
|
-
*
|
|
7
|
-
* Also returns `edges` ({ start, end }) for callers that want to draw their own
|
|
8
|
-
* edge affordance (e.g. a shadow) only when there is hidden content.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useScrollFade(axis: "x" | "y"): {
|
|
11
|
-
ref: (el: HTMLDivElement | null) => void;
|
|
12
|
-
onScroll: () => void;
|
|
13
|
-
edges: {
|
|
14
|
-
start: boolean;
|
|
15
|
-
end: boolean;
|
|
16
|
-
};
|
|
17
|
-
style: {
|
|
18
|
-
maskImage: string;
|
|
19
|
-
WebkitMaskImage: string;
|
|
20
|
-
} | undefined;
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=use-scroll-fade.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-scroll-fade.d.ts","sourceRoot":"","sources":["../../lib/hooks/use-scroll-fade.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG;cA+CpC,cAAc,GAAG,IAAI;;;;;;;;;;EAuC7B"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
import { useCallback as e, useRef as t, useState as n } from "react";
|
|
4
|
-
//#region lib/hooks/use-scroll-fade.ts
|
|
5
|
-
var r = 24;
|
|
6
|
-
function i(i) {
|
|
7
|
-
let [a, o] = n({
|
|
8
|
-
start: !1,
|
|
9
|
-
end: !1
|
|
10
|
-
}), s = t(null), c = t(null), l = t(null), u = e(() => {
|
|
11
|
-
let e = s.current;
|
|
12
|
-
if (!e) return;
|
|
13
|
-
let t = i === "x" ? e.scrollLeft : e.scrollTop, n = i === "x" ? e.clientWidth : e.clientHeight, r = i === "x" ? e.scrollWidth : e.scrollHeight, a = t > 1, c = t + n < r - 1;
|
|
14
|
-
o((e) => e.start === a && e.end === c ? e : {
|
|
15
|
-
start: a,
|
|
16
|
-
end: c
|
|
17
|
-
});
|
|
18
|
-
}, [i]), d = e(() => {
|
|
19
|
-
let e = s.current, t = c.current;
|
|
20
|
-
if (e && t) {
|
|
21
|
-
t.disconnect(), t.observe(e);
|
|
22
|
-
for (let n of Array.from(e.children)) t.observe(n);
|
|
23
|
-
u();
|
|
24
|
-
}
|
|
25
|
-
}, [u]), f = e((e) => {
|
|
26
|
-
c.current?.disconnect(), l.current?.disconnect(), c.current = null, l.current = null, s.current = e, e && (c.current = new ResizeObserver(() => u()), l.current = new MutationObserver(() => d()), l.current.observe(e, { childList: !0 }), d());
|
|
27
|
-
}, [u, d]), p;
|
|
28
|
-
return (a.start || a.end) && (p = `linear-gradient(${i === "x" ? "to right" : "to bottom"}, ${a.start ? `transparent 0, black ${r}px` : "black 0"}, ${a.end ? `black calc(100% - ${r}px), transparent 100%` : "black 100%"})`), {
|
|
29
|
-
ref: f,
|
|
30
|
-
onScroll: u,
|
|
31
|
-
edges: a,
|
|
32
|
-
style: p ? {
|
|
33
|
-
maskImage: p,
|
|
34
|
-
WebkitMaskImage: p
|
|
35
|
-
} : void 0
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
export { i as useScrollFade };
|