@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.
Files changed (69) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/{check-CxcShTlQ.js → check-B5h1DvDs.js} +2 -2
  3. package/dist/{chevron-down-D_a-ccxi.js → chevron-down-DmZMdOiC.js} +2 -2
  4. package/dist/{chevron-right-DriXIqe5.js → chevron-right-BYYHEJjK.js} +2 -2
  5. package/dist/components/ui/atoms/accordion.js +70 -74
  6. package/dist/components/ui/atoms/alert.js +2 -2
  7. package/dist/components/ui/atoms/avatar.js +5 -5
  8. package/dist/components/ui/atoms/badge.js +3 -3
  9. package/dist/components/ui/atoms/breadcrumb.js +5 -5
  10. package/dist/components/ui/atoms/button.js +3 -3
  11. package/dist/components/ui/atoms/card.js +1 -1
  12. package/dist/components/ui/atoms/chart.js +3247 -3228
  13. package/dist/components/ui/atoms/collapsible.js +1 -1
  14. package/dist/components/ui/atoms/command.js +15 -15
  15. package/dist/components/ui/atoms/dialog.js +2 -2
  16. package/dist/components/ui/atoms/dropdown-menu.js +367 -384
  17. package/dist/components/ui/atoms/form.d.ts +1 -1
  18. package/dist/components/ui/atoms/form.js +182 -199
  19. package/dist/components/ui/atoms/hover-card.js +40 -41
  20. package/dist/components/ui/atoms/input.js +1 -1
  21. package/dist/components/ui/atoms/label.js +18 -19
  22. package/dist/components/ui/atoms/popover.js +107 -110
  23. package/dist/components/ui/atoms/progress.js +3 -3
  24. package/dist/components/ui/atoms/resizable.js +8 -8
  25. package/dist/components/ui/atoms/scroll-area.js +82 -84
  26. package/dist/components/ui/atoms/select.js +393 -407
  27. package/dist/components/ui/atoms/separator.js +2 -2
  28. package/dist/components/ui/atoms/sheet.js +2 -2
  29. package/dist/components/ui/atoms/sidebar.js +17 -17
  30. package/dist/components/ui/atoms/skeleton.js +1 -1
  31. package/dist/components/ui/atoms/slider.js +213 -214
  32. package/dist/components/ui/atoms/sonner.js +28 -28
  33. package/dist/components/ui/atoms/switch.js +7 -7
  34. package/dist/components/ui/atoms/table.js +1 -1
  35. package/dist/components/ui/atoms/tabs.js +8 -8
  36. package/dist/components/ui/atoms/textarea.js +1 -1
  37. package/dist/components/ui/atoms/toggle.js +5 -5
  38. package/dist/components/ui/atoms/tooltip.js +103 -104
  39. package/dist/{createLucideIcon-B6fy1GTR.js → createLucideIcon-XRdN60yz.js} +4 -4
  40. package/dist/index-0ioNhtNM.js +10 -0
  41. package/dist/index-437EL2iq.js +52 -0
  42. package/dist/{index-CB1Wkg0G.js → index-5Bhkapwi.js} +2 -3
  43. package/dist/index-B695uy69.js +9 -0
  44. package/dist/{index-CHDs-SiB.js → index-BGQepRFJ.js} +1 -1
  45. package/dist/{index-BAhNQL1u.js → index-BvWMjxZ5.js} +22 -23
  46. package/dist/index-C8_QusYl.js +70 -0
  47. package/dist/index-CCKe-Mpx.js +6 -0
  48. package/dist/{index-DdnpnyX2.js → index-CQhYMnjT.js} +4 -4
  49. package/dist/{index-C9KW2H79.js → index-CpDnqHCm.js} +1 -1
  50. package/dist/{index-CxK6rt_N.js → index-CtSXVDca.js} +8 -8
  51. package/dist/{index-umR1UobZ.js → index-Cv867SGx.js} +1 -1
  52. package/dist/{index-CuMpq4Un.js → index-CxO14pcK.js} +2 -2
  53. package/dist/index-DFZozV_h.js +68 -0
  54. package/dist/index-DLfXSskr.js +255 -0
  55. package/dist/{index-D2uXV4lz.js → index-DMCYNwtg.js} +8 -8
  56. package/dist/index-DYHsXnnS.js +144 -0
  57. package/dist/{index-nluJZSbA.js → index-DfNPZZ8M.js} +1 -1
  58. package/dist/{index-Dy7YuPrV.js → index-f0YS5Ufh.js} +319 -321
  59. package/dist/lib/utils.js +1 -1
  60. package/dist/{utils-Dy2WjYNJ.js → utils-CRiPKpXj.js} +41 -42
  61. package/package.json +33 -26
  62. package/dist/index-CL4N9wMT.js +0 -259
  63. package/dist/index-DLeNytVF.js +0 -9
  64. package/dist/index-DYfkNB0n.js +0 -54
  65. package/dist/index-DuekHEmj.js +0 -6
  66. package/dist/index-DwYXX2sM.js +0 -13
  67. package/dist/index-QMp1pYFl.js +0 -145
  68. package/dist/index-UFb2E87s.js +0 -70
  69. package/dist/index-p7nYL7BU.js +0 -71
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { R as t, C as a, a as e } from "../../../index-CxK6rt_N.js";
2
+ import { R as t, C as a, a as e } from "../../../index-CtSXVDca.js";
3
3
  function n({
4
4
  ...l
5
5
  }) {
@@ -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-CL4N9wMT.js";
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-C9KW2H79.js";
5
- import { u as K } from "../../../index-umR1UobZ.js";
6
- import { b as V } from "../../../index-CB1Wkg0G.js";
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-Dy2WjYNJ.js";
9
- import { c as je } from "../../../createLucideIcon-B6fy1GTR.js";
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.522.0 - ISC
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(), (m == null ? void 0 : m.getAttribute("id")) === t && X(), w.emit();
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 == null || h.parentElement.appendChild(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 == null ? void 0 : t.getAttribute(P);
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 == null ? void 0 : c.closest(q), a;
160
- for (; m && !a; ) m = t > 0 ? rt(m, q) : nt(m, q), a = m == null ? void 0 : m.querySelector(ge);
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 == null ? void 0 : d.forceMount;
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 == null ? void 0 : d.id);
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 == null || r(u.target.value);
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-CL4N9wMT.js";
3
- import { c as o } from "../../../utils-Dy2WjYNJ.js";
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
  }) {