@arcadeai/design-system 2.0.0 → 2.1.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.
- 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 +235 -231
- package/dist/components/ui/atoms/icons/imgflip.d.ts +3 -0
- package/dist/components/ui/atoms/icons/imgflip.js +35 -0
- package/dist/components/ui/atoms/icons/index.d.ts +2 -0
- package/dist/components/ui/atoms/icons/index.js +126 -122
- package/dist/components/ui/atoms/icons/mongodb.d.ts +3 -0
- package/dist/components/ui/atoms/icons/mongodb.js +39 -0
- package/dist/components/ui/atoms/index.js +213 -209
- package/dist/components/ui/atoms/resizable.js +1 -1
- package/dist/components/ui/atoms/switch.d.ts +5 -1
- package/dist/components/ui/atoms/switch.js +98 -73
- package/dist/components/ui/index.js +235 -231
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +2 -2
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/toolkit-selection-summary.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +1 -1
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +2 -2
- package/dist/components/ui/utils/memo.test.js +1 -1
- package/dist/lib/arcade/arcade.test.js +1 -1
- package/dist/lib/utils.test.js +1 -1
- package/dist/{magic-string.es-QnVUNas7.js → magic-string.es-uPKorP4O.js} +7 -4
- package/dist/main.js +263 -259
- package/dist/metadata/toolkits.js +138 -106
- package/dist/{react-resizable-panels.browser-ZHjTH32c.js → react-resizable-panels.browser-DggUboAp.js} +2 -2
- package/dist/{react.esm-CAxz4dXo.js → react.esm-DUaR5u-J.js} +1 -1
- package/dist/{toolkit-card-fWmjBnBQ.js → toolkit-card-DgjPGtsJ.js} +1 -1
- package/dist/{vi.bdSIJ99Y-hyudrc3R.js → vi.bdSIJ99Y-Bs-viS39.js} +1 -1
- package/package.json +35 -34
package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { getToolkitIcon as c } from "../../../atoms/icons/utils.js";
|
|
3
|
-
import { T as d } from "../../../../../toolkit-card-
|
|
3
|
+
import { T as d } from "../../../../../toolkit-card-DgjPGtsJ.js";
|
|
4
4
|
function g({
|
|
5
5
|
toolkit: e,
|
|
6
6
|
selectedTools: o,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { r as c, a as i } from "../../../../../react.esm-
|
|
2
|
+
import { r as c, a as i } from "../../../../../react.esm-DUaR5u-J.js";
|
|
3
3
|
import { mockToolkitCollection as a } from "../mocks/toolkit-collection.js";
|
|
4
4
|
import { useToolkitPicker as n, ToolkitPickerProvider as k } from "./use-toolkit-picker.js";
|
|
5
|
-
import { d as T, b as d, i as u, g as e, v as p } from "../../../../../vi.bdSIJ99Y-
|
|
5
|
+
import { d as T, b as d, i as u, g as e, v as p } from "../../../../../vi.bdSIJ99Y-Bs-viS39.js";
|
|
6
6
|
T("useToolkitPicker - Filter Tests", () => {
|
|
7
7
|
d(() => {
|
|
8
8
|
p.clearAllMocks();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { r as c, a as l } from "../../../../../react.esm-
|
|
2
|
+
import { r as c, a as l } from "../../../../../react.esm-DUaR5u-J.js";
|
|
3
3
|
import { mockToolkitCollection as a } from "../mocks/toolkit-collection.js";
|
|
4
4
|
import { useToolkitPicker as n, ToolkitPickerProvider as u } from "./use-toolkit-picker.js";
|
|
5
|
-
import { d as k, b as h, i as d, g as o, v as m } from "../../../../../vi.bdSIJ99Y-
|
|
5
|
+
import { d as k, b as h, i as d, g as o, v as m } from "../../../../../vi.bdSIJ99Y-Bs-viS39.js";
|
|
6
6
|
k("useToolkitPicker - Search Tests", () => {
|
|
7
7
|
h(() => {
|
|
8
8
|
m.clearAllMocks();
|
package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { r as i, a as t } from "../../../../../react.esm-
|
|
2
|
+
import { r as i, a as t } from "../../../../../react.esm-DUaR5u-J.js";
|
|
3
3
|
import { simpleMockToolkitCollection as c } from "../mocks/toolkit-collection.js";
|
|
4
4
|
import { useToolkitPicker as a, ToolkitPickerProvider as n } from "./use-toolkit-picker.js";
|
|
5
|
-
import { d as u, b as k, i as d, g as o, v as m } from "../../../../../vi.bdSIJ99Y-
|
|
5
|
+
import { d as u, b as k, i as d, g as o, v as m } from "../../../../../vi.bdSIJ99Y-Bs-viS39.js";
|
|
6
6
|
u("useToolkitPicker - Selection Tests", () => {
|
|
7
7
|
k(() => {
|
|
8
8
|
m.clearAllMocks();
|
|
@@ -8,11 +8,11 @@ import { getToolkitIcon as G, getToolIconByToolkitName as J } from "../../atoms/
|
|
|
8
8
|
import { MobileTooltipProvider as K } from "../../atoms/mobile-tooltip.js";
|
|
9
9
|
import { Tabs as R, TabsList as U, TabsTrigger as y, TabsContent as w } from "../../atoms/tabs.js";
|
|
10
10
|
import { EmptyState as _ } from "../../molecules/empty-state.js";
|
|
11
|
-
import "../../../../toolkit-card-
|
|
11
|
+
import "../../../../toolkit-card-DgjPGtsJ.js";
|
|
12
12
|
import { ToolCard as Z } from "../../molecules/tool-card.js";
|
|
13
13
|
import { useToolkitPicker as ee } from "./hooks/use-toolkit-picker.js";
|
|
14
14
|
import "../../atoms/chart.js";
|
|
15
|
-
import "../../../../react-resizable-panels.browser-
|
|
15
|
+
import "../../../../react-resizable-panels.browser-DggUboAp.js";
|
|
16
16
|
import "../../atoms/sidebar.js";
|
|
17
17
|
import "react";
|
|
18
18
|
import "../../atoms/table.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
2
|
import { ToolkitPickerTrigger as N } from "../../molecules/toolkit-picker-trigger.js";
|
|
3
|
-
import { c as Mo, e as Ko, g as v, d as Sc, a as Mc, i as D, v as pe } from "../../../../vi.bdSIJ99Y-
|
|
4
|
-
import { g as _e, b as $, s as u, c as V, w as fe, d as Ac } from "../../../../react.esm-
|
|
3
|
+
import { c as Mo, e as Ko, g as v, d as Sc, a as Mc, i as D, v as pe } from "../../../../vi.bdSIJ99Y-Bs-viS39.js";
|
|
4
|
+
import { g as _e, b as $, s as u, c as V, w as fe, d as Ac } from "../../../../react.esm-DUaR5u-J.js";
|
|
5
5
|
import { ToolkitPicker as H } from "./index.js";
|
|
6
6
|
import { createMockToolkitCollection as Nc, mockToolkitCollection as j } from "./mocks/toolkit-collection.js";
|
|
7
7
|
var fo, zo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createPropsComparator as s, areStringArraysEqual as a } from "./memo.js";
|
|
2
|
-
import { d as i, i as t, g as e } from "../../../vi.bdSIJ99Y-
|
|
2
|
+
import { d as i, i as t, g as e } from "../../../vi.bdSIJ99Y-Bs-viS39.js";
|
|
3
3
|
i("createPropsComparator", () => {
|
|
4
4
|
t("returns true when selected keys are strictly equal", () => {
|
|
5
5
|
const r = s(["id", "name"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as i, a as c } from "../../arcade-DzMbb7xi.js";
|
|
2
2
|
import { allTools as m } from "./mocks.js";
|
|
3
|
-
import { v as l, d as u, b as p, i as s, g as e } from "../../vi.bdSIJ99Y-
|
|
3
|
+
import { v as l, d as u, b as p, i as s, g as e } from "../../vi.bdSIJ99Y-Bs-viS39.js";
|
|
4
4
|
const d = {
|
|
5
5
|
tools: {
|
|
6
6
|
list: l.fn().mockImplementation((o) => {
|
package/dist/lib/utils.test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as o, r as s } from "../utils-Db4QWi-E.js";
|
|
2
|
-
import { d as r, i as n, g as e, b as v, a as i, v as t } from "../vi.bdSIJ99Y-
|
|
2
|
+
import { d as r, i as n, g as e, b as v, a as i, v as t } from "../vi.bdSIJ99Y-Bs-viS39.js";
|
|
3
3
|
r("cn", () => {
|
|
4
4
|
n("joins simple class names", () => {
|
|
5
5
|
e(o("a", "b", "c")).toBe("a b c");
|
|
@@ -303,7 +303,7 @@ class v {
|
|
|
303
303
|
h,
|
|
304
304
|
s.storeName ? i.indexOf(s.original) : -1
|
|
305
305
|
) : n.addUneditedChunk(e, s, this.original, h, this.sourcemapLocations), s.outro.length && n.advance(s.outro);
|
|
306
|
-
}), {
|
|
306
|
+
}), this.outro && n.advance(this.outro), {
|
|
307
307
|
file: t.file ? t.file.split(/[/\\]/).pop() : void 0,
|
|
308
308
|
sources: [
|
|
309
309
|
t.source ? A(t.file || "", t.source) : t.file || ""
|
|
@@ -633,15 +633,18 @@ class v {
|
|
|
633
633
|
}
|
|
634
634
|
_replaceString(t, e) {
|
|
635
635
|
const { original: i } = this, n = i.indexOf(t);
|
|
636
|
-
return n !== -1 && this.overwrite(n, n + t.length, e), this;
|
|
636
|
+
return n !== -1 && (typeof e == "function" && (e = e(t, n, i)), t !== e && this.overwrite(n, n + t.length, e)), this;
|
|
637
637
|
}
|
|
638
638
|
replace(t, e) {
|
|
639
639
|
return typeof t == "string" ? this._replaceString(t, e) : this._replaceRegexp(t, e);
|
|
640
640
|
}
|
|
641
641
|
_replaceAllString(t, e) {
|
|
642
642
|
const { original: i } = this, n = t.length;
|
|
643
|
-
for (let r = i.indexOf(t); r !== -1; r = i.indexOf(t, r + n))
|
|
644
|
-
|
|
643
|
+
for (let r = i.indexOf(t); r !== -1; r = i.indexOf(t, r + n)) {
|
|
644
|
+
const s = i.slice(r, r + n);
|
|
645
|
+
let h = e;
|
|
646
|
+
typeof e == "function" && (h = e(s, r, i)), s !== h && this.overwrite(r, r + n, h);
|
|
647
|
+
}
|
|
645
648
|
return this;
|
|
646
649
|
}
|
|
647
650
|
replaceAll(t, e) {
|