@arcadeai/design-system 2.3.0 → 3.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.
Files changed (58) hide show
  1. package/dist/{arcade-DzMbb7xi.js → arcade-CHE48l2C.js} +1 -1
  2. package/dist/assets/index.css +1 -1
  3. package/dist/components/index.js +1 -1
  4. package/dist/components/ui/atoms/accordion.js +16 -16
  5. package/dist/components/ui/atoms/alert-dialog.js +25 -25
  6. package/dist/components/ui/atoms/avatar.js +7 -7
  7. package/dist/components/ui/atoms/checkbox.js +34 -34
  8. package/dist/components/ui/atoms/dropdown-menu.js +31 -31
  9. package/dist/components/ui/atoms/hover-card.js +19 -19
  10. package/dist/components/ui/atoms/popover.js +9 -9
  11. package/dist/components/ui/atoms/progress.js +11 -11
  12. package/dist/components/ui/atoms/radio-group.js +29 -29
  13. package/dist/components/ui/atoms/resizable.js +1 -1
  14. package/dist/components/ui/atoms/scroll-area.js +40 -40
  15. package/dist/components/ui/atoms/select.js +17 -17
  16. package/dist/components/ui/atoms/sidebar.js +4 -1
  17. package/dist/components/ui/atoms/slider.js +35 -35
  18. package/dist/components/ui/atoms/switch.js +15 -15
  19. package/dist/components/ui/atoms/tabs.js +13 -13
  20. package/dist/components/ui/atoms/tooltip.js +22 -22
  21. package/dist/components/ui/index.js +1 -1
  22. package/dist/components/ui/molecules/index.js +1 -1
  23. package/dist/components/ui/molecules/requirement-badges.js +6 -5
  24. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  25. package/dist/components/ui/molecules/toolkit-picker-trigger.js +20 -23
  26. package/dist/components/ui/molecules/toolkit-selection-summary.js +16 -19
  27. package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.js +6 -6
  28. package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.js +9 -12
  29. package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +12 -11
  30. package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +5 -4
  31. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +4 -7
  32. package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +5 -4
  33. package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +21 -21
  34. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +2 -2
  35. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +2 -2
  36. package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +2 -2
  37. package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +19 -23
  38. package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +1773 -1729
  39. package/dist/components/ui/utils/memo.test.js +1 -1
  40. package/dist/lib/arcade/arcade.js +1 -1
  41. package/dist/lib/arcade/arcade.test.js +2 -2
  42. package/dist/lib/utils.test.js +1 -1
  43. package/dist/main.js +195 -188
  44. package/dist/metadata/index.d.ts +1 -0
  45. package/dist/metadata/index.js +23 -16
  46. package/dist/metadata/toolkit-icons.d.ts +27 -0
  47. package/dist/metadata/toolkit-icons.js +227 -0
  48. package/dist/metadata/toolkits.js +341 -643
  49. package/dist/metadata/types.d.ts +1 -3
  50. package/dist/metadata/utils.d.ts +15 -0
  51. package/dist/metadata/utils.js +15 -8
  52. package/dist/{react-resizable-panels.browser-DggUboAp.js → react-resizable-panels.browser-31wAXhAV.js} +2 -1
  53. package/dist/{react.esm-DUaR5u-J.js → react.esm-I5_wjDW6.js} +17509 -15389
  54. package/dist/{toolkit-card-BWuG_NJi.js → toolkit-card-nuE_5OvN.js} +4 -3
  55. package/dist/{vi.bdSIJ99Y-Bs-viS39.js → vi.bdSIJ99Y-DBnM2VfT.js} +1296 -1315
  56. package/package.json +34 -34
  57. package/dist/components/ui/atoms/icons/utils.d.ts +0 -43
  58. package/dist/components/ui/atoms/icons/utils.js +0 -33
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcadeai/design-system",
3
3
  "private": false,
4
- "version": "2.3.0",
4
+ "version": "3.0.0",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -92,53 +92,53 @@
92
92
  "tailwindcss": "^4.1.13"
93
93
  },
94
94
  "devDependencies": {
95
- "@biomejs/biome": "2.2.4",
96
- "@commitlint/cli": "19.8.1",
97
- "@commitlint/config-conventional": "19.8.1",
98
- "@hookform/resolvers": "5.2.1",
95
+ "@biomejs/biome": "2.2.5",
96
+ "@commitlint/cli": "20.1.0",
97
+ "@commitlint/config-conventional": "20.0.0",
98
+ "@hookform/resolvers": "5.2.2",
99
99
  "@semantic-release/changelog": "6.0.3",
100
100
  "@semantic-release/git": "10.0.1",
101
- "@storybook/addon-a11y": "9.1.5",
102
- "@storybook/addon-docs": "9.1.5",
103
- "@storybook/addon-themes": "9.1.5",
104
- "@storybook/addon-vitest": "9.1.5",
105
- "@storybook/react-vite": "9.1.5",
101
+ "@storybook/addon-a11y": "9.1.10",
102
+ "@storybook/addon-docs": "9.1.10",
103
+ "@storybook/addon-themes": "9.1.10",
104
+ "@storybook/addon-vitest": "9.1.10",
105
+ "@storybook/react-vite": "9.1.10",
106
106
  "@testing-library/dom": "^10.4.1",
107
- "@testing-library/jest-dom": "6.8.0",
107
+ "@testing-library/jest-dom": "6.9.1",
108
108
  "@testing-library/react": "^16.3.0",
109
109
  "@testing-library/user-event": "^14.6.1",
110
- "@types/node": "24.3.1",
111
- "@types/react": "19.1.12",
112
- "@types/react-dom": "19.1.9",
113
- "@vitejs/plugin-react-swc": "4.0.1",
110
+ "@types/node": "24.6.2",
111
+ "@types/react": "19.2.0",
112
+ "@types/react-dom": "19.2.0",
113
+ "@vitejs/plugin-react-swc": "4.1.0",
114
114
  "@vitest/browser": "3.2.4",
115
115
  "@vitest/coverage-v8": "3.2.4",
116
- "chromatic": "13.1.4",
116
+ "chromatic": "13.3.0",
117
117
  "glob": "11.0.3",
118
118
  "globals": "16.4.0",
119
- "happy-dom": "^18.0.1",
119
+ "happy-dom": "^19.0.2",
120
120
  "husky": "9.1.7",
121
- "lint-staged": "16.1.6",
121
+ "lint-staged": "16.2.3",
122
122
  "lucide-react": "0.544.0",
123
- "playwright": "1.55.0",
124
- "react": "19.1.1",
125
- "react-dom": "19.1.1",
126
- "react-hook-form": "7.62.0",
127
- "recharts": "3.2.0",
128
- "semantic-release": "24.2.8",
129
- "storybook": "9.1.5",
123
+ "playwright": "1.55.1",
124
+ "react": "19.2.0",
125
+ "react-dom": "19.2.0",
126
+ "react-hook-form": "7.63.0",
127
+ "recharts": "3.2.1",
128
+ "semantic-release": "24.2.9",
129
+ "storybook": "9.1.10",
130
130
  "storybook-addon-test-codegen": "2.0.1",
131
- "tailwindcss": "4.1.13",
132
- "tw-animate-css": "1.3.8",
133
- "typescript": "~5.9.2",
134
- "ultracite": "5.3.4",
135
- "vite": "7.1.5",
131
+ "tailwindcss": "4.1.14",
132
+ "tw-animate-css": "1.4.0",
133
+ "typescript": "~5.9.3",
134
+ "ultracite": "5.5.0",
135
+ "vite": "7.1.8",
136
136
  "vite-plugin-dts": "4.5.4",
137
137
  "vitest": "3.2.4",
138
- "zod": "4.1.8"
138
+ "zod": "4.1.11"
139
139
  },
140
140
  "dependencies": {
141
- "@arcadeai/arcadejs": "^1.9.1",
141
+ "@arcadeai/arcadejs": "^1.10.0",
142
142
  "@radix-ui/react-accordion": "1.2.12",
143
143
  "@radix-ui/react-alert-dialog": "^1.1.15",
144
144
  "@radix-ui/react-avatar": "1.1.10",
@@ -160,11 +160,11 @@
160
160
  "@radix-ui/react-tabs": "1.1.13",
161
161
  "@radix-ui/react-toggle": "1.1.10",
162
162
  "@radix-ui/react-tooltip": "1.2.8",
163
- "@tailwindcss/vite": "4.1.13",
163
+ "@tailwindcss/vite": "4.1.14",
164
164
  "class-variance-authority": "0.7.1",
165
165
  "clsx": "2.1.1",
166
166
  "cmdk": "1.1.1",
167
- "react-resizable-panels": "3.0.5",
167
+ "react-resizable-panels": "3.0.6",
168
168
  "tailwind-merge": "3.3.1"
169
169
  },
170
170
  "engines": {
@@ -1,43 +0,0 @@
1
- export type ToolkitCatalogueEntry = {
2
- icon: React.ComponentType<{
3
- className?: string;
4
- }>;
5
- label: string;
6
- };
7
- /**
8
- * Find a toolkit by its name, with case-insensitive matching
9
- */
10
- export declare const findToolkitByName: (toolkitName: string) => ToolkitCatalogueEntry | undefined;
11
- /**
12
- * Check if a toolkit name exists in the catalogue
13
- */
14
- export declare const isKnownToolkit: (toolkitName: string) => boolean;
15
- /**
16
- * Get a toolkit icon component by toolkit name, with fallback to Package icon
17
- */
18
- export declare const getToolkitIconByName: (toolkitName: string) => ((props: {
19
- className?: string;
20
- }) => React.ReactElement);
21
- /**
22
- * Get a tool icon component by toolkit name, with fallback to Wrench icon
23
- */
24
- export declare const getToolIconByToolkitName: (toolkitName: string) => ((props: {
25
- className?: string;
26
- }) => React.ReactElement);
27
- type GetToolkitIconParams = {
28
- metadataIcon: React.ComponentType<{
29
- className?: string;
30
- }>;
31
- toolkitName?: string;
32
- } | {
33
- metadataIcon?: undefined;
34
- toolkitName: string;
35
- };
36
- /**
37
- * Get the most appropriate icon for a toolkit, preferring metadata icon for performance
38
- * Requires either metadataIcon or toolkitName to be provided
39
- */
40
- export declare const getToolkitIcon: ({ metadataIcon, toolkitName, }: GetToolkitIconParams) => ((props: {
41
- className?: string;
42
- }) => React.ReactElement);
43
- export {};
@@ -1,33 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { Package as i, Wrench as a } from "lucide-react";
3
- import { TOOLKIT_CATALOGUE as e } from "../../../../metadata/toolkits.js";
4
- const c = (n) => {
5
- const o = Object.keys(e).find(
6
- (t) => t.toLowerCase() === n.toLowerCase()
7
- );
8
- return o ? e[o] : void 0;
9
- }, T = (n) => Object.keys(e).some(
10
- (o) => o.toLowerCase() === n.toLowerCase()
11
- ), f = (n) => {
12
- const o = c(n);
13
- return o?.icon ? ({ className: t }) => /* @__PURE__ */ r(o.icon, { className: t }) : ({ className: t }) => /* @__PURE__ */ r(i, { className: t });
14
- }, y = (n) => {
15
- const o = c(n);
16
- return o?.icon ? ({ className: t }) => /* @__PURE__ */ r(o.icon, { className: t }) : ({ className: t }) => /* @__PURE__ */ r(a, { className: t });
17
- }, l = ({
18
- metadataIcon: n,
19
- toolkitName: o
20
- }) => {
21
- if (n) {
22
- const t = n;
23
- return ({ className: s }) => /* @__PURE__ */ r(t, { className: s });
24
- }
25
- return o ? f(o) : ({ className: t }) => /* @__PURE__ */ r(i, { className: t });
26
- };
27
- export {
28
- c as findToolkitByName,
29
- y as getToolIconByToolkitName,
30
- l as getToolkitIcon,
31
- f as getToolkitIconByName,
32
- T as isKnownToolkit
33
- };