@arcadeai/design-system 0.7.2 → 0.7.4
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/{check-CxcShTlQ.js → check-B5h1DvDs.js} +2 -2
- package/dist/{chevron-down-D_a-ccxi.js → chevron-down-DmZMdOiC.js} +2 -2
- package/dist/{chevron-right-DriXIqe5.js → chevron-right-BYYHEJjK.js} +2 -2
- package/dist/components/ui/atoms/accordion.js +70 -74
- package/dist/components/ui/atoms/alert.js +2 -2
- package/dist/components/ui/atoms/avatar.js +5 -5
- package/dist/components/ui/atoms/badge.js +3 -3
- package/dist/components/ui/atoms/breadcrumb.js +5 -5
- package/dist/components/ui/atoms/button.js +3 -3
- package/dist/components/ui/atoms/card.js +1 -1
- package/dist/components/ui/atoms/chart.js +3247 -3228
- package/dist/components/ui/atoms/collapsible.js +1 -1
- package/dist/components/ui/atoms/command.js +15 -15
- package/dist/components/ui/atoms/dialog.js +2 -2
- package/dist/components/ui/atoms/dropdown-menu.js +367 -384
- package/dist/components/ui/atoms/form.d.ts +1 -1
- package/dist/components/ui/atoms/form.js +182 -199
- package/dist/components/ui/atoms/hover-card.js +40 -41
- package/dist/components/ui/atoms/input.js +1 -1
- package/dist/components/ui/atoms/label.js +18 -19
- package/dist/components/ui/atoms/popover.js +107 -110
- package/dist/components/ui/atoms/progress.js +3 -3
- package/dist/components/ui/atoms/resizable.js +8 -8
- package/dist/components/ui/atoms/scroll-area.js +82 -84
- package/dist/components/ui/atoms/select.js +393 -407
- package/dist/components/ui/atoms/separator.js +2 -2
- package/dist/components/ui/atoms/sheet.js +2 -2
- package/dist/components/ui/atoms/sidebar.js +17 -17
- package/dist/components/ui/atoms/skeleton.js +1 -1
- package/dist/components/ui/atoms/slider.js +213 -214
- package/dist/components/ui/atoms/sonner.js +28 -28
- package/dist/components/ui/atoms/switch.js +7 -7
- package/dist/components/ui/atoms/table.js +1 -1
- package/dist/components/ui/atoms/tabs.js +8 -8
- package/dist/components/ui/atoms/textarea.js +1 -1
- package/dist/components/ui/atoms/toggle.js +5 -5
- package/dist/components/ui/atoms/tooltip.js +103 -104
- package/dist/{createLucideIcon-B6fy1GTR.js → createLucideIcon-XRdN60yz.js} +4 -4
- package/dist/index-0ioNhtNM.js +10 -0
- package/dist/index-437EL2iq.js +52 -0
- package/dist/{index-CB1Wkg0G.js → index-5Bhkapwi.js} +2 -3
- package/dist/index-B695uy69.js +9 -0
- package/dist/{index-CHDs-SiB.js → index-BGQepRFJ.js} +1 -1
- package/dist/{index-BAhNQL1u.js → index-BvWMjxZ5.js} +22 -23
- package/dist/index-C8_QusYl.js +70 -0
- package/dist/index-CCKe-Mpx.js +6 -0
- package/dist/{index-DdnpnyX2.js → index-CQhYMnjT.js} +4 -4
- package/dist/{index-C9KW2H79.js → index-CpDnqHCm.js} +1 -1
- package/dist/{index-CxK6rt_N.js → index-CtSXVDca.js} +8 -8
- package/dist/{index-umR1UobZ.js → index-Cv867SGx.js} +1 -1
- package/dist/{index-CuMpq4Un.js → index-CxO14pcK.js} +2 -2
- package/dist/index-DFZozV_h.js +68 -0
- package/dist/index-DLfXSskr.js +255 -0
- package/dist/{index-D2uXV4lz.js → index-DMCYNwtg.js} +8 -8
- package/dist/index-DYHsXnnS.js +144 -0
- package/dist/{index-nluJZSbA.js → index-DfNPZZ8M.js} +1 -1
- package/dist/{index-Dy7YuPrV.js → index-f0YS5Ufh.js} +319 -321
- package/dist/lib/utils.js +1 -1
- package/dist/{utils-Dy2WjYNJ.js → utils-CRiPKpXj.js} +41 -42
- package/package.json +33 -26
- package/dist/index-CL4N9wMT.js +0 -259
- package/dist/index-DLeNytVF.js +0 -9
- package/dist/index-DYfkNB0n.js +0 -54
- package/dist/index-DuekHEmj.js +0 -6
- package/dist/index-DwYXX2sM.js +0 -13
- package/dist/index-QMp1pYFl.js +0 -145
- package/dist/index-UFb2E87s.js +0 -70
- package/dist/index-p7nYL7BU.js +0 -71
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as C, jsxs as ne } from "react/jsx-runtime";
|
|
2
|
-
import { R as Se, P as Ie, O as Re, a as _e } from "../../../index-
|
|
2
|
+
import { R as Se, P as Ie, O as Re, a as _e } from "../../../index-DLfXSskr.js";
|
|
3
3
|
import * as l from "react";
|
|
4
|
-
import { P as _ } from "../../../index-
|
|
5
|
-
import { u as K } from "../../../index-
|
|
6
|
-
import { b as V } from "../../../index-
|
|
4
|
+
import { P as _ } from "../../../index-CpDnqHCm.js";
|
|
5
|
+
import { u as K } from "../../../index-Cv867SGx.js";
|
|
6
|
+
import { b as V } from "../../../index-5Bhkapwi.js";
|
|
7
7
|
import { Dialog as Ae, DialogHeader as De, DialogTitle as Me, DialogDescription as Ne, DialogContent as $e } from "./dialog.js";
|
|
8
|
-
import { c as A } from "../../../utils-
|
|
9
|
-
import { c as je } from "../../../createLucideIcon-
|
|
8
|
+
import { c as A } from "../../../utils-CRiPKpXj.js";
|
|
9
|
+
import { c as je } from "../../../createLucideIcon-XRdN60yz.js";
|
|
10
10
|
/**
|
|
11
|
-
* @license lucide-react v0.
|
|
11
|
+
* @license lucide-react v0.525.0 - ISC
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the ISC license.
|
|
14
14
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -77,7 +77,7 @@ var q = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
77
77
|
i.current.delete(t), s.current.delete(t), r.current.filtered.items.delete(t);
|
|
78
78
|
let m = j();
|
|
79
79
|
x(4, () => {
|
|
80
|
-
Y(),
|
|
80
|
+
Y(), m?.getAttribute("id") === t && X(), w.emit();
|
|
81
81
|
});
|
|
82
82
|
}), group: (t) => (o.current.has(t) || o.current.set(t, /* @__PURE__ */ new Set()), () => {
|
|
83
83
|
i.current.delete(t), o.current.delete(t);
|
|
@@ -108,11 +108,11 @@ var q = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
108
108
|
}), c.sort((a, p) => p[1] - a[1]).forEach((a) => {
|
|
109
109
|
var p;
|
|
110
110
|
let h = (p = M.current) == null ? void 0 : p.querySelector(`${q}[${P}="${encodeURIComponent(a[0])}"]`);
|
|
111
|
-
h
|
|
111
|
+
h?.parentElement.appendChild(h);
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
function X() {
|
|
115
|
-
let t = L().find((m) => m.getAttribute("aria-disabled") !== "true"), c = t
|
|
115
|
+
let t = L().find((m) => m.getAttribute("aria-disabled") !== "true"), c = t?.getAttribute(P);
|
|
116
116
|
w.setState("value", c || void 0);
|
|
117
117
|
}
|
|
118
118
|
function Y() {
|
|
@@ -156,8 +156,8 @@ var q = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
156
156
|
(c = f.current) != null && c.loop && (h = p + t < 0 ? a[a.length - 1] : p + t === a.length ? a[0] : a[p + t]), h && w.setState("value", h.getAttribute(P));
|
|
157
157
|
}
|
|
158
158
|
function de(t) {
|
|
159
|
-
let c = j(), m = c
|
|
160
|
-
for (; m && !a; ) m = t > 0 ? rt(m, q) : nt(m, q), a = m
|
|
159
|
+
let c = j(), m = c?.closest(q), a;
|
|
160
|
+
for (; m && !a; ) m = t > 0 ? rt(m, q) : nt(m, q), a = m?.querySelector(ge);
|
|
161
161
|
a ? w.setState("value", a.getAttribute(P)) : Z(t);
|
|
162
162
|
}
|
|
163
163
|
let se = () => Q(L().length - 1), me = (t) => {
|
|
@@ -208,9 +208,9 @@ var q = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
208
208
|
} }, l.createElement("label", { "cmdk-label": "", htmlFor: W.inputId, id: W.labelId, style: ot }, b), G(e, (t) => l.createElement(ke.Provider, { value: w }, l.createElement(xe.Provider, { value: W }, t))));
|
|
209
209
|
}), We = l.forwardRef((e, n) => {
|
|
210
210
|
var r, s;
|
|
211
|
-
let o = K(), i = l.useRef(null), d = l.useContext(ye), f = z(), b = Ee(e), u = (s = (r = b.current) == null ? void 0 : r.forceMount) != null ? s : d
|
|
211
|
+
let o = K(), i = l.useRef(null), d = l.useContext(ye), f = z(), b = Ee(e), u = (s = (r = b.current) == null ? void 0 : r.forceMount) != null ? s : d?.forceMount;
|
|
212
212
|
N(() => {
|
|
213
|
-
if (!u) return f.item(o, d
|
|
213
|
+
if (!u) return f.item(o, d?.id);
|
|
214
214
|
}, [u]);
|
|
215
215
|
let v = Ce(o, i, [e.value, e.children, i], e.keywords), g = oe(), S = R((x) => x.value && x.value === v.current), y = R((x) => u || f.filter() === !1 ? !0 : x.search ? x.filtered.items.get(o) > 0 : !0);
|
|
216
216
|
l.useEffect(() => {
|
|
@@ -240,7 +240,7 @@ var q = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Te = '[cmdk-group-headi
|
|
|
240
240
|
return l.useEffect(() => {
|
|
241
241
|
e.value != null && i.setState("search", e.value);
|
|
242
242
|
}, [e.value]), l.createElement(_.input, { ref: n, ...s, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": f, id: b.inputId, type: "text", value: o ? e.value : d, onChange: (u) => {
|
|
243
|
-
o || i.setState("search", u.target.value), r
|
|
243
|
+
o || i.setState("search", u.target.value), r?.(u.target.value);
|
|
244
244
|
} });
|
|
245
245
|
}), Qe = l.forwardRef((e, n) => {
|
|
246
246
|
let { children: r, label: s = "Suggestions", ...o } = e, i = l.useRef(null), d = l.useRef(null), f = R((u) => u.selectedItemId), b = z();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { R as r, C as n, a as d, X as c, D as g, O as u, P as f, b as m, T as p } from "../../../index-
|
|
3
|
-
import { c as o } from "../../../utils-
|
|
2
|
+
import { R as r, C as n, a as d, X as c, D as g, O as u, P as f, b as m, T as p } from "../../../index-DLfXSskr.js";
|
|
3
|
+
import { c as o } from "../../../utils-CRiPKpXj.js";
|
|
4
4
|
function y({
|
|
5
5
|
...t
|
|
6
6
|
}) {
|