@arcadeai/design-system 4.1.0 → 5.0.1

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 (35) hide show
  1. package/dist/assets/icons/postman.js +99 -0
  2. package/dist/assets/index.css +1 -1
  3. package/dist/assets/tokens.css +1 -1
  4. package/dist/assets/variables.css +1 -1
  5. package/dist/components/index.js +96 -96
  6. package/dist/components/ui/atoms/icons/index.d.ts +1 -0
  7. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
  8. package/dist/components/ui/atoms/icons/index.js +42 -41
  9. package/dist/components/ui/atoms/icons/postman.d.ts +4 -0
  10. package/dist/components/ui/atoms/icons/postman.d.ts.map +1 -0
  11. package/dist/components/ui/atoms/icons/postman.js +91 -0
  12. package/dist/components/ui/atoms/index.js +69 -68
  13. package/dist/components/ui/index.js +96 -96
  14. package/dist/components/ui/molecules/index.d.ts +0 -2
  15. package/dist/components/ui/molecules/index.d.ts.map +1 -1
  16. package/dist/components/ui/molecules/index.js +8 -9
  17. package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts.map +1 -1
  18. package/dist/components/ui/molecules/mcp-server-picker/category-filter.js +13 -18
  19. package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts +5 -1
  20. package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts.map +1 -1
  21. package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.js +26 -32
  22. package/dist/components/ui/organisms/mcp-selection-summary-bar.d.ts.map +1 -1
  23. package/dist/components/ui/organisms/mcp-selection-summary-bar.js +19 -22
  24. package/dist/main.js +101 -101
  25. package/dist/metadata/toolkit-icons.d.ts.map +1 -1
  26. package/dist/metadata/toolkit-icons.js +67 -65
  27. package/dist/metadata/toolkits.d.ts.map +1 -1
  28. package/dist/metadata/toolkits.js +13 -0
  29. package/package.json +1 -1
  30. package/dist/components/ui/molecules/scroll-fade-area.d.ts +0 -32
  31. package/dist/components/ui/molecules/scroll-fade-area.d.ts.map +0 -1
  32. package/dist/components/ui/molecules/scroll-fade-area.js +0 -30
  33. package/dist/hooks/use-scroll-fade.d.ts +0 -22
  34. package/dist/hooks/use-scroll-fade.d.ts.map +0 -1
  35. package/dist/hooks/use-scroll-fade.js +0 -39
@@ -101,41 +101,42 @@ import { Pipedrive as nt } from "../components/ui/atoms/icons/pipedrive.js";
101
101
  import { Plaid as rt } from "../components/ui/atoms/icons/plaid.js";
102
102
  import { Postgres as it } from "../components/ui/atoms/icons/postgres.js";
103
103
  import { Posthog as U } from "../components/ui/atoms/icons/posthog.js";
104
+ import { Postman as at } from "../components/ui/atoms/icons/postman.js";
104
105
  import { Pylon as W } from "../components/ui/atoms/icons/pylon.js";
105
- import { Quickbooks as at } from "../components/ui/atoms/icons/quickbooks.js";
106
- import { Railway as ot } from "../components/ui/atoms/icons/railway.js";
107
- import { Reddit as st } from "../components/ui/atoms/icons/reddit.js";
108
- import { Resend as ct } from "../components/ui/atoms/icons/resend.js";
109
- import { Salesforce as lt } from "../components/ui/atoms/icons/salesforce.js";
110
- import { Shopify as ut } from "../components/ui/atoms/icons/shopify.js";
111
- import { Singlestore as dt } from "../components/ui/atoms/icons/singlestore.js";
106
+ import { Quickbooks as ot } from "../components/ui/atoms/icons/quickbooks.js";
107
+ import { Railway as st } from "../components/ui/atoms/icons/railway.js";
108
+ import { Reddit as ct } from "../components/ui/atoms/icons/reddit.js";
109
+ import { Resend as lt } from "../components/ui/atoms/icons/resend.js";
110
+ import { Salesforce as ut } from "../components/ui/atoms/icons/salesforce.js";
111
+ import { Shopify as dt } from "../components/ui/atoms/icons/shopify.js";
112
+ import { Singlestore as ft } from "../components/ui/atoms/icons/singlestore.js";
112
113
  import { Slack as G } from "../components/ui/atoms/icons/slack.js";
113
- import { Snowflake as ft } from "../components/ui/atoms/icons/snowflake.js";
114
- import { Splunk as pt } from "../components/ui/atoms/icons/splunk.js";
115
- import { Spotify as mt } from "../components/ui/atoms/icons/spotify.js";
114
+ import { Snowflake as pt } from "../components/ui/atoms/icons/snowflake.js";
115
+ import { Splunk as mt } from "../components/ui/atoms/icons/splunk.js";
116
+ import { Spotify as ht } from "../components/ui/atoms/icons/spotify.js";
116
117
  import { Square as K } from "../components/ui/atoms/icons/square.js";
117
- import { Squarespace as ht } from "../components/ui/atoms/icons/squarespace.js";
118
- import { Squareup as gt } from "../components/ui/atoms/icons/squareup.js";
118
+ import { Squarespace as gt } from "../components/ui/atoms/icons/squarespace.js";
119
+ import { Squareup as _t } from "../components/ui/atoms/icons/squareup.js";
119
120
  import { Stripe as q } from "../components/ui/atoms/icons/stripe.js";
120
- import { Telegram as _t } from "../components/ui/atoms/icons/telegram.js";
121
- import { Ticktick as vt } from "../components/ui/atoms/icons/ticktick.js";
122
- import { Tiktok as yt } from "../components/ui/atoms/icons/tiktok.js";
123
- import { Trello as bt } from "../components/ui/atoms/icons/trello.js";
124
- import { Twilio as xt } from "../components/ui/atoms/icons/twilio.js";
125
- import { Twitch as St } from "../components/ui/atoms/icons/twitch.js";
126
- import { Vercel as Ct } from "../components/ui/atoms/icons/vercel.js";
127
- import { Walmart as wt } from "../components/ui/atoms/icons/walmart.js";
128
- import { Weaviate as Tt } from "../components/ui/atoms/icons/weaviate.js";
129
- import { Workday as Et } from "../components/ui/atoms/icons/workday.js";
130
- import { Wrike as Dt } from "../components/ui/atoms/icons/wrike.js";
131
- import { X as Ot } from "../components/ui/atoms/icons/x.js";
121
+ import { Telegram as vt } from "../components/ui/atoms/icons/telegram.js";
122
+ import { Ticktick as yt } from "../components/ui/atoms/icons/ticktick.js";
123
+ import { Tiktok as bt } from "../components/ui/atoms/icons/tiktok.js";
124
+ import { Trello as xt } from "../components/ui/atoms/icons/trello.js";
125
+ import { Twilio as St } from "../components/ui/atoms/icons/twilio.js";
126
+ import { Twitch as Ct } from "../components/ui/atoms/icons/twitch.js";
127
+ import { Vercel as wt } from "../components/ui/atoms/icons/vercel.js";
128
+ import { Walmart as Tt } from "../components/ui/atoms/icons/walmart.js";
129
+ import { Weaviate as Et } from "../components/ui/atoms/icons/weaviate.js";
130
+ import { Workday as Dt } from "../components/ui/atoms/icons/workday.js";
131
+ import { Wrike as Ot } from "../components/ui/atoms/icons/wrike.js";
132
+ import { X as kt } from "../components/ui/atoms/icons/x.js";
132
133
  import { Xero as J } from "../components/ui/atoms/icons/xero.js";
133
- import { Youtube as kt } from "../components/ui/atoms/icons/youtube.js";
134
- import { Yugabytedb as At } from "../components/ui/atoms/icons/yugabytedb.js";
135
- import { Zendesk as jt } from "../components/ui/atoms/icons/zendesk.js";
136
- import { ZohoBooks as Mt } from "../components/ui/atoms/icons/zoho-books.js";
137
- import { ZohoCreator as Nt } from "../components/ui/atoms/icons/zoho-creator.js";
138
- import { Zoom as Pt } from "../components/ui/atoms/icons/zoom.js";
134
+ import { Youtube as At } from "../components/ui/atoms/icons/youtube.js";
135
+ import { Yugabytedb as jt } from "../components/ui/atoms/icons/yugabytedb.js";
136
+ import { Zendesk as Mt } from "../components/ui/atoms/icons/zendesk.js";
137
+ import { ZohoBooks as Nt } from "../components/ui/atoms/icons/zoho-books.js";
138
+ import { ZohoCreator as Pt } from "../components/ui/atoms/icons/zoho-creator.js";
139
+ import { Zoom as Ft } from "../components/ui/atoms/icons/zoom.js";
139
140
  import { findToolkitByName as Y } from "./utils.js";
140
141
  import { jsx as X } from "react/jsx-runtime";
141
142
  //#region lib/metadata/toolkit-icons.tsx
@@ -269,59 +270,60 @@ var Z = {
269
270
  Posthog: U,
270
271
  PosthogApi: U,
271
272
  Postgres: it,
273
+ Postman: at,
272
274
  Pylon: W,
273
275
  PylonApi: W,
274
- Quickbooks: at,
275
- Railway: ot,
276
- Reddit: st,
277
- Resend: ct,
278
- Salesforce: lt,
279
- Shopify: ut,
280
- Singlestore: dt,
276
+ Quickbooks: ot,
277
+ Railway: st,
278
+ Reddit: ct,
279
+ Resend: lt,
280
+ Salesforce: ut,
281
+ Shopify: dt,
282
+ Singlestore: ft,
281
283
  Slack: G,
282
284
  SlackApi: G,
283
- Snowflake: ft,
284
- Splunk: pt,
285
- Spotify: mt,
285
+ Snowflake: pt,
286
+ Splunk: mt,
287
+ Spotify: ht,
286
288
  Square: K,
287
- Squareup: gt,
289
+ Squareup: _t,
288
290
  SquareupApi: K,
289
291
  SquareUpApi: K,
290
- Squarespace: ht,
292
+ Squarespace: gt,
291
293
  Stripe: q,
292
294
  StripeApi: q,
293
- Telegram: _t,
294
- Tiktok: yt,
295
- TickTickApi: vt,
296
- TrelloApi: bt,
297
- Twilio: xt,
298
- Twitch: St,
299
- Vercel: Ct,
300
- Walmart: wt,
301
- WeaviateApi: Tt,
302
- Workday: Et,
303
- Wrike: Dt,
304
- X: Ot,
295
+ Telegram: vt,
296
+ Tiktok: bt,
297
+ TickTickApi: yt,
298
+ TrelloApi: xt,
299
+ Twilio: St,
300
+ Twitch: Ct,
301
+ Vercel: wt,
302
+ Walmart: Tt,
303
+ WeaviateApi: Et,
304
+ Workday: Dt,
305
+ Wrike: Ot,
306
+ X: kt,
305
307
  Xero: J,
306
308
  XeroApi: J,
307
- YugabyteDB: At,
308
- ZohoBooksApi: Mt,
309
- ZohoCreatorApi: Nt,
310
- Youtube: kt,
311
- Zendesk: jt,
312
- Zoom: Pt
313
- }, Ft = new Map(Object.entries(Z).map(([e, t]) => [e.toLowerCase(), t])), Q = (e) => {
314
- let t = e ? Ft.get(e.toLowerCase()) : void 0;
309
+ YugabyteDB: jt,
310
+ ZohoBooksApi: Nt,
311
+ ZohoCreatorApi: Pt,
312
+ Youtube: At,
313
+ Zendesk: Mt,
314
+ Zoom: Ft
315
+ }, It = new Map(Object.entries(Z).map(([e, t]) => [e.toLowerCase(), t])), Q = (e) => {
316
+ let t = e ? It.get(e.toLowerCase()) : void 0;
315
317
  return {
316
318
  Icon: t ?? T,
317
319
  hasBrandIcon: !!t
318
320
  };
319
- }, $ = (e) => Q(e).Icon, It = (e) => Q(e).hasBrandIcon, Lt = (e) => {
321
+ }, $ = (e) => Q(e).Icon, Lt = (e) => Q(e).hasBrandIcon, Rt = (e) => {
320
322
  let t = $(Y(e)?.id);
321
323
  return ({ className: e }) => /* @__PURE__ */ X(t, { className: e });
322
- }, Rt = (e) => {
324
+ }, zt = (e) => {
323
325
  let t = $(Y(e)?.id);
324
326
  return ({ className: e }) => /* @__PURE__ */ X(t, { className: e });
325
327
  };
326
328
  //#endregion
327
- export { Z as TOOLKIT_ICON_MAP, Rt as getToolIconByToolkitName, $ as getToolkitIcon, Lt as getToolkitIconByName, It as hasToolkitIcon, Q as resolveToolkitIcon };
329
+ export { Z as TOOLKIT_ICON_MAP, zt as getToolIconByToolkitName, $ as getToolkitIcon, Rt as getToolkitIconByName, Lt as hasToolkitIcon, Q as resolveToolkitIcon };
@@ -1 +1 @@
1
- {"version":3,"file":"toolkits.d.ts","sourceRoot":"","sources":["../../lib/metadata/toolkits.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,EAWhC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,OAAO,EA4wE7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAMrD,CAAC"}
1
+ {"version":3,"file":"toolkits.d.ts","sourceRoot":"","sources":["../../lib/metadata/toolkits.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,EAWhC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,OAAO,EA0xE7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAMrD,CAAC"}
@@ -1680,6 +1680,19 @@ var t = [
1680
1680
  isComingSoon: !1,
1681
1681
  isHidden: !1
1682
1682
  },
1683
+ {
1684
+ id: "Postman",
1685
+ label: "Postman",
1686
+ isBYOC: !1,
1687
+ isPro: !1,
1688
+ publicIconUrl: `${e}/postman.svg`,
1689
+ docsLink: "https://docs.arcade.dev/en/resources/integrations/development/postman",
1690
+ relativeDocsLink: "/en/resources/integrations/development/postman",
1691
+ category: "development",
1692
+ type: "arcade",
1693
+ isComingSoon: !1,
1694
+ isHidden: !1
1695
+ },
1683
1696
  {
1684
1697
  id: "Pylon",
1685
1698
  label: "Pylon",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcadeai/design-system",
3
3
  "private": false,
4
- "version": "4.1.0",
4
+ "version": "5.0.1",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",
@@ -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 };