@arcadeai/design-system 0.7.4 → 0.8.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.
- package/dist/components/index.js +134 -130
- package/dist/components/ui/atoms/accordion.js +1 -1
- package/dist/components/ui/atoms/avatar.js +200 -82
- package/dist/components/ui/atoms/breadcrumb.js +25 -37
- package/dist/components/ui/atoms/chart.js +115 -10398
- package/dist/components/ui/atoms/command.js +158 -168
- package/dist/components/ui/atoms/dialog.js +30 -29
- package/dist/components/ui/atoms/dropdown-menu.js +153 -162
- package/dist/components/ui/atoms/form.js +57 -250
- package/dist/components/ui/atoms/hover-card.js +1 -1
- package/dist/components/ui/atoms/index.d.ts +1 -0
- package/dist/components/ui/atoms/index.js +134 -130
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/radio-group.d.ts +5 -0
- package/dist/components/ui/atoms/radio-group.js +272 -0
- package/dist/components/ui/atoms/resizable.js +359 -372
- package/dist/components/ui/atoms/select.js +101 -110
- package/dist/components/ui/atoms/sheet.js +24 -23
- package/dist/components/ui/atoms/sidebar.js +80 -89
- package/dist/components/ui/atoms/tooltip.js +1 -1
- package/dist/components/ui/index.js +134 -130
- package/dist/{index-f0YS5Ufh.js → index-PlrlSrPo.js} +266 -259
- package/dist/{index-DLfXSskr.js → index-toVHZ337.js} +49 -61
- package/dist/main.js +134 -130
- package/package.json +13 -12
- package/dist/check-B5h1DvDs.js +0 -11
- package/dist/chevron-down-DmZMdOiC.js +0 -11
- package/dist/chevron-right-BYYHEJjK.js +0 -11
- package/dist/createLucideIcon-XRdN60yz.js +0 -94
- package/dist/index-CJFGOBPb.js +0 -122
|
@@ -1,130 +1,248 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { c as
|
|
9
|
-
var y =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import * as _ from "react";
|
|
3
|
+
import N from "react";
|
|
4
|
+
import { c as H } from "../../../index-DFZozV_h.js";
|
|
5
|
+
import { u as U } from "../../../index-0ioNhtNM.js";
|
|
6
|
+
import { u as O } from "../../../index-CCKe-Mpx.js";
|
|
7
|
+
import { P as w } from "../../../index-CpDnqHCm.js";
|
|
8
|
+
import { c as x } from "../../../utils-CRiPKpXj.js";
|
|
9
|
+
var h = { exports: {} }, y = {};
|
|
10
|
+
/**
|
|
11
|
+
* @license React
|
|
12
|
+
* use-sync-external-store-shim.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/
|
|
19
|
+
var I;
|
|
20
|
+
function q() {
|
|
21
|
+
if (I) return y;
|
|
22
|
+
I = 1;
|
|
23
|
+
var e = N;
|
|
24
|
+
function t(a, d) {
|
|
25
|
+
return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
|
|
26
|
+
}
|
|
27
|
+
var i = typeof Object.is == "function" ? Object.is : t, c = e.useState, o = e.useEffect, r = e.useLayoutEffect, S = e.useDebugValue;
|
|
28
|
+
function f(a, d) {
|
|
29
|
+
var n = d(), u = c({ inst: { value: n, getSnapshot: d } }), s = u[0].inst, p = u[1];
|
|
30
|
+
return r(
|
|
31
|
+
function() {
|
|
32
|
+
s.value = n, s.getSnapshot = d, l(s) && p({ inst: s });
|
|
33
|
+
},
|
|
34
|
+
[a, n, d]
|
|
35
|
+
), o(
|
|
36
|
+
function() {
|
|
37
|
+
return l(s) && p({ inst: s }), a(function() {
|
|
38
|
+
l(s) && p({ inst: s });
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
[a]
|
|
42
|
+
), S(n), n;
|
|
43
|
+
}
|
|
44
|
+
function l(a) {
|
|
45
|
+
var d = a.getSnapshot;
|
|
46
|
+
a = a.value;
|
|
47
|
+
try {
|
|
48
|
+
var n = d();
|
|
49
|
+
return !i(a, n);
|
|
50
|
+
} catch {
|
|
51
|
+
return !0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function v(a, d) {
|
|
55
|
+
return d();
|
|
56
|
+
}
|
|
57
|
+
var E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? v : f;
|
|
58
|
+
return y.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : E, y;
|
|
59
|
+
}
|
|
60
|
+
var A = {};
|
|
61
|
+
/**
|
|
62
|
+
* @license React
|
|
63
|
+
* use-sync-external-store-shim.development.js
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/
|
|
70
|
+
var C;
|
|
71
|
+
function B() {
|
|
72
|
+
return C || (C = 1, process.env.NODE_ENV !== "production" && function() {
|
|
73
|
+
function e(n, u) {
|
|
74
|
+
return n === u && (n !== 0 || 1 / n === 1 / u) || n !== n && u !== u;
|
|
75
|
+
}
|
|
76
|
+
function t(n, u) {
|
|
77
|
+
E || o.startTransition === void 0 || (E = !0, console.error(
|
|
78
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
79
|
+
));
|
|
80
|
+
var s = u();
|
|
81
|
+
if (!a) {
|
|
82
|
+
var p = u();
|
|
83
|
+
r(s, p) || (console.error(
|
|
84
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
85
|
+
), a = !0);
|
|
86
|
+
}
|
|
87
|
+
p = S({
|
|
88
|
+
inst: { value: s, getSnapshot: u }
|
|
89
|
+
});
|
|
90
|
+
var m = p[0].inst, L = p[1];
|
|
91
|
+
return l(
|
|
92
|
+
function() {
|
|
93
|
+
m.value = s, m.getSnapshot = u, i(m) && L({ inst: m });
|
|
94
|
+
},
|
|
95
|
+
[n, s, u]
|
|
96
|
+
), f(
|
|
97
|
+
function() {
|
|
98
|
+
return i(m) && L({ inst: m }), n(function() {
|
|
99
|
+
i(m) && L({ inst: m });
|
|
100
|
+
});
|
|
101
|
+
},
|
|
102
|
+
[n]
|
|
103
|
+
), v(s), s;
|
|
104
|
+
}
|
|
105
|
+
function i(n) {
|
|
106
|
+
var u = n.getSnapshot;
|
|
107
|
+
n = n.value;
|
|
108
|
+
try {
|
|
109
|
+
var s = u();
|
|
110
|
+
return !r(n, s);
|
|
111
|
+
} catch {
|
|
112
|
+
return !0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function c(n, u) {
|
|
116
|
+
return u();
|
|
117
|
+
}
|
|
118
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
119
|
+
var o = N, r = typeof Object.is == "function" ? Object.is : e, S = o.useState, f = o.useEffect, l = o.useLayoutEffect, v = o.useDebugValue, E = !1, a = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : t;
|
|
120
|
+
A.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
121
|
+
}()), A;
|
|
122
|
+
}
|
|
123
|
+
var T;
|
|
124
|
+
function K() {
|
|
125
|
+
return T || (T = 1, process.env.NODE_ENV === "production" ? h.exports = q() : h.exports = B()), h.exports;
|
|
126
|
+
}
|
|
127
|
+
var $ = K();
|
|
128
|
+
function F() {
|
|
129
|
+
return $.useSyncExternalStore(
|
|
130
|
+
P,
|
|
13
131
|
() => !0,
|
|
14
132
|
() => !1
|
|
15
133
|
);
|
|
16
134
|
}
|
|
17
|
-
function
|
|
135
|
+
function P() {
|
|
18
136
|
return () => {
|
|
19
137
|
};
|
|
20
138
|
}
|
|
21
|
-
var
|
|
22
|
-
(
|
|
23
|
-
const { __scopeAvatar:
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
139
|
+
var R = "Avatar", [z, ue] = H(R), [W, D] = z(R), k = _.forwardRef(
|
|
140
|
+
(e, t) => {
|
|
141
|
+
const { __scopeAvatar: i, ...c } = e, [o, r] = _.useState("idle");
|
|
142
|
+
return /* @__PURE__ */ g(
|
|
143
|
+
W,
|
|
26
144
|
{
|
|
27
|
-
scope:
|
|
145
|
+
scope: i,
|
|
28
146
|
imageLoadingStatus: o,
|
|
29
|
-
onImageLoadingStatusChange:
|
|
30
|
-
children: /* @__PURE__ */
|
|
147
|
+
onImageLoadingStatusChange: r,
|
|
148
|
+
children: /* @__PURE__ */ g(w.span, { ...c, ref: t })
|
|
31
149
|
}
|
|
32
150
|
);
|
|
33
151
|
}
|
|
34
152
|
);
|
|
35
|
-
|
|
36
|
-
var
|
|
37
|
-
(
|
|
38
|
-
const { __scopeAvatar:
|
|
39
|
-
}, ...
|
|
40
|
-
o(
|
|
153
|
+
k.displayName = R;
|
|
154
|
+
var G = "AvatarImage", V = _.forwardRef(
|
|
155
|
+
(e, t) => {
|
|
156
|
+
const { __scopeAvatar: i, src: c, onLoadingStatusChange: o = () => {
|
|
157
|
+
}, ...r } = e, S = D(G, i), f = Y(c, r), l = U((v) => {
|
|
158
|
+
o(v), S.onImageLoadingStatusChange(v);
|
|
41
159
|
});
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
}, [
|
|
160
|
+
return O(() => {
|
|
161
|
+
f !== "idle" && l(f);
|
|
162
|
+
}, [f, l]), f === "loaded" ? /* @__PURE__ */ g(w.img, { ...r, ref: t, src: c }) : null;
|
|
45
163
|
}
|
|
46
164
|
);
|
|
47
|
-
|
|
48
|
-
var
|
|
49
|
-
(
|
|
50
|
-
const { __scopeAvatar:
|
|
51
|
-
return
|
|
52
|
-
if (
|
|
53
|
-
const
|
|
54
|
-
return () => window.clearTimeout(
|
|
165
|
+
V.displayName = G;
|
|
166
|
+
var M = "AvatarFallback", j = _.forwardRef(
|
|
167
|
+
(e, t) => {
|
|
168
|
+
const { __scopeAvatar: i, delayMs: c, ...o } = e, r = D(M, i), [S, f] = _.useState(c === void 0);
|
|
169
|
+
return _.useEffect(() => {
|
|
170
|
+
if (c !== void 0) {
|
|
171
|
+
const l = window.setTimeout(() => f(!0), c);
|
|
172
|
+
return () => window.clearTimeout(l);
|
|
55
173
|
}
|
|
56
|
-
}, [
|
|
174
|
+
}, [c]), S && r.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ g(w.span, { ...o, ref: t }) : null;
|
|
57
175
|
}
|
|
58
176
|
);
|
|
59
|
-
|
|
60
|
-
function
|
|
61
|
-
return
|
|
177
|
+
j.displayName = M;
|
|
178
|
+
function b(e, t) {
|
|
179
|
+
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
62
180
|
}
|
|
63
|
-
function
|
|
64
|
-
const
|
|
65
|
-
() =>
|
|
181
|
+
function Y(e, { referrerPolicy: t, crossOrigin: i }) {
|
|
182
|
+
const c = F(), o = _.useRef(null), r = c ? (o.current || (o.current = new window.Image()), o.current) : null, [S, f] = _.useState(
|
|
183
|
+
() => b(r, e)
|
|
66
184
|
);
|
|
67
|
-
return
|
|
68
|
-
|
|
69
|
-
}, [
|
|
70
|
-
const
|
|
71
|
-
|
|
185
|
+
return O(() => {
|
|
186
|
+
f(b(r, e));
|
|
187
|
+
}, [r, e]), O(() => {
|
|
188
|
+
const l = (a) => () => {
|
|
189
|
+
f(a);
|
|
72
190
|
};
|
|
73
|
-
if (!
|
|
74
|
-
const
|
|
75
|
-
return
|
|
76
|
-
|
|
191
|
+
if (!r) return;
|
|
192
|
+
const v = l("loaded"), E = l("error");
|
|
193
|
+
return r.addEventListener("load", v), r.addEventListener("error", E), t && (r.referrerPolicy = t), typeof i == "string" && (r.crossOrigin = i), () => {
|
|
194
|
+
r.removeEventListener("load", v), r.removeEventListener("error", E);
|
|
77
195
|
};
|
|
78
|
-
}, [
|
|
196
|
+
}, [r, i, t]), S;
|
|
79
197
|
}
|
|
80
|
-
var
|
|
81
|
-
function
|
|
82
|
-
className:
|
|
83
|
-
...
|
|
198
|
+
var J = k, Q = V, X = j;
|
|
199
|
+
function se({
|
|
200
|
+
className: e,
|
|
201
|
+
...t
|
|
84
202
|
}) {
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
-
|
|
203
|
+
return /* @__PURE__ */ g(
|
|
204
|
+
J,
|
|
87
205
|
{
|
|
88
|
-
className:
|
|
206
|
+
className: x(
|
|
89
207
|
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
90
|
-
|
|
208
|
+
e
|
|
91
209
|
),
|
|
92
210
|
"data-slot": "avatar",
|
|
93
|
-
...
|
|
211
|
+
...t
|
|
94
212
|
}
|
|
95
213
|
);
|
|
96
214
|
}
|
|
97
|
-
function
|
|
98
|
-
className:
|
|
99
|
-
...
|
|
215
|
+
function ie({
|
|
216
|
+
className: e,
|
|
217
|
+
...t
|
|
100
218
|
}) {
|
|
101
|
-
return /* @__PURE__ */
|
|
102
|
-
|
|
219
|
+
return /* @__PURE__ */ g(
|
|
220
|
+
Q,
|
|
103
221
|
{
|
|
104
|
-
className:
|
|
222
|
+
className: x("aspect-square size-full", e),
|
|
105
223
|
"data-slot": "avatar-image",
|
|
106
|
-
...
|
|
224
|
+
...t
|
|
107
225
|
}
|
|
108
226
|
);
|
|
109
227
|
}
|
|
110
|
-
function
|
|
111
|
-
className:
|
|
112
|
-
...
|
|
228
|
+
function ce({
|
|
229
|
+
className: e,
|
|
230
|
+
...t
|
|
113
231
|
}) {
|
|
114
|
-
return /* @__PURE__ */
|
|
115
|
-
|
|
232
|
+
return /* @__PURE__ */ g(
|
|
233
|
+
X,
|
|
116
234
|
{
|
|
117
|
-
className:
|
|
235
|
+
className: x(
|
|
118
236
|
"flex size-full items-center justify-center rounded-full bg-muted",
|
|
119
|
-
|
|
237
|
+
e
|
|
120
238
|
),
|
|
121
239
|
"data-slot": "avatar-fallback",
|
|
122
|
-
...
|
|
240
|
+
...t
|
|
123
241
|
}
|
|
124
242
|
);
|
|
125
243
|
}
|
|
126
244
|
export {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
245
|
+
se as Avatar,
|
|
246
|
+
ce as AvatarFallback,
|
|
247
|
+
ie as AvatarImage
|
|
130
248
|
};
|
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { S as
|
|
1
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { S as o } from "../../../index-5Bhkapwi.js";
|
|
3
|
+
import { ChevronRight as i, MoreHorizontal as l } from "lucide-react";
|
|
3
4
|
import { c as t } from "../../../utils-CRiPKpXj.js";
|
|
4
|
-
|
|
5
|
-
import { c as o } from "../../../createLucideIcon-XRdN60yz.js";
|
|
6
|
-
/**
|
|
7
|
-
* @license lucide-react v0.525.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
const l = [
|
|
13
|
-
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
14
|
-
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
15
|
-
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
16
|
-
], m = o("ellipsis", l);
|
|
17
|
-
function g({ ...r }) {
|
|
5
|
+
function p({ ...r }) {
|
|
18
6
|
return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r });
|
|
19
7
|
}
|
|
20
|
-
function
|
|
8
|
+
function f({ className: r, ...e }) {
|
|
21
9
|
return /* @__PURE__ */ a(
|
|
22
10
|
"ol",
|
|
23
11
|
{
|
|
@@ -30,7 +18,7 @@ function h({ className: r, ...e }) {
|
|
|
30
18
|
}
|
|
31
19
|
);
|
|
32
20
|
}
|
|
33
|
-
function
|
|
21
|
+
function x({ className: r, ...e }) {
|
|
34
22
|
return /* @__PURE__ */ a(
|
|
35
23
|
"li",
|
|
36
24
|
{
|
|
@@ -40,21 +28,21 @@ function N({ className: r, ...e }) {
|
|
|
40
28
|
}
|
|
41
29
|
);
|
|
42
30
|
}
|
|
43
|
-
function
|
|
31
|
+
function g({
|
|
44
32
|
asChild: r,
|
|
45
33
|
className: e,
|
|
46
|
-
...
|
|
34
|
+
...n
|
|
47
35
|
}) {
|
|
48
36
|
return /* @__PURE__ */ a(
|
|
49
|
-
r ?
|
|
37
|
+
r ? o : "a",
|
|
50
38
|
{
|
|
51
39
|
className: t("transition-colors hover:text-foreground", e),
|
|
52
40
|
"data-slot": "breadcrumb-link",
|
|
53
|
-
...
|
|
41
|
+
...n
|
|
54
42
|
}
|
|
55
43
|
);
|
|
56
44
|
}
|
|
57
|
-
function
|
|
45
|
+
function h({ className: r, ...e }) {
|
|
58
46
|
return /* @__PURE__ */ a(
|
|
59
47
|
"span",
|
|
60
48
|
{
|
|
@@ -68,10 +56,10 @@ function k({ className: r, ...e }) {
|
|
|
68
56
|
}
|
|
69
57
|
);
|
|
70
58
|
}
|
|
71
|
-
function
|
|
59
|
+
function N({
|
|
72
60
|
children: r,
|
|
73
61
|
className: e,
|
|
74
|
-
...
|
|
62
|
+
...n
|
|
75
63
|
}) {
|
|
76
64
|
return /* @__PURE__ */ a(
|
|
77
65
|
"li",
|
|
@@ -80,16 +68,16 @@ function B({
|
|
|
80
68
|
className: t("[&>svg]:size-3.5", e),
|
|
81
69
|
"data-slot": "breadcrumb-separator",
|
|
82
70
|
role: "presentation",
|
|
83
|
-
...
|
|
84
|
-
children: r ?? /* @__PURE__ */ a(
|
|
71
|
+
...n,
|
|
72
|
+
children: r ?? /* @__PURE__ */ a(i, {})
|
|
85
73
|
}
|
|
86
74
|
);
|
|
87
75
|
}
|
|
88
|
-
function
|
|
76
|
+
function B({
|
|
89
77
|
className: r,
|
|
90
78
|
...e
|
|
91
79
|
}) {
|
|
92
|
-
return /* @__PURE__ */
|
|
80
|
+
return /* @__PURE__ */ s(
|
|
93
81
|
"span",
|
|
94
82
|
{
|
|
95
83
|
"aria-hidden": "true",
|
|
@@ -98,18 +86,18 @@ function j({
|
|
|
98
86
|
role: "presentation",
|
|
99
87
|
...e,
|
|
100
88
|
children: [
|
|
101
|
-
/* @__PURE__ */ a(
|
|
89
|
+
/* @__PURE__ */ a(l, { className: "size-4" }),
|
|
102
90
|
/* @__PURE__ */ a("span", { className: "sr-only", children: "More" })
|
|
103
91
|
]
|
|
104
92
|
}
|
|
105
93
|
);
|
|
106
94
|
}
|
|
107
95
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
96
|
+
p as Breadcrumb,
|
|
97
|
+
B as BreadcrumbEllipsis,
|
|
98
|
+
x as BreadcrumbItem,
|
|
99
|
+
g as BreadcrumbLink,
|
|
100
|
+
f as BreadcrumbList,
|
|
101
|
+
h as BreadcrumbPage,
|
|
102
|
+
N as BreadcrumbSeparator
|
|
115
103
|
};
|