@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,6 +1,6 @@
|
|
|
1
1
|
import { forwardRef as l, createElement as n } from "react";
|
|
2
2
|
/**
|
|
3
|
-
* @license lucide-react v0.
|
|
3
|
+
* @license lucide-react v0.525.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -17,7 +17,7 @@ const w = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), h = (t)
|
|
|
17
17
|
return !0;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
|
-
* @license lucide-react v0.
|
|
20
|
+
* @license lucide-react v0.525.0 - ISC
|
|
21
21
|
*
|
|
22
22
|
* This source code is licensed under the ISC license.
|
|
23
23
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -34,7 +34,7 @@ var g = {
|
|
|
34
34
|
strokeLinejoin: "round"
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
|
-
* @license lucide-react v0.
|
|
37
|
+
* @license lucide-react v0.525.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -69,7 +69,7 @@ const A = l(
|
|
|
69
69
|
)
|
|
70
70
|
);
|
|
71
71
|
/**
|
|
72
|
-
* @license lucide-react v0.
|
|
72
|
+
* @license lucide-react v0.525.0 - ISC
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { u as m } from "./index-CCKe-Mpx.js";
|
|
3
|
+
var v = t[" useInsertionEffect ".trim().toString()] || m;
|
|
4
|
+
function w({
|
|
5
|
+
prop: e,
|
|
6
|
+
defaultProp: s,
|
|
7
|
+
onChange: o = () => {
|
|
8
|
+
},
|
|
9
|
+
caller: f
|
|
10
|
+
}) {
|
|
11
|
+
const [u, c, i] = R({
|
|
12
|
+
defaultProp: s,
|
|
13
|
+
onChange: o
|
|
14
|
+
}), n = e !== void 0, a = n ? e : u;
|
|
15
|
+
{
|
|
16
|
+
const r = t.useRef(e !== void 0);
|
|
17
|
+
t.useEffect(() => {
|
|
18
|
+
const l = r.current;
|
|
19
|
+
l !== n && console.warn(
|
|
20
|
+
`${f} is changing from ${l ? "controlled" : "uncontrolled"} to ${n ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
21
|
+
), r.current = n;
|
|
22
|
+
}, [n, f]);
|
|
23
|
+
}
|
|
24
|
+
const d = t.useCallback(
|
|
25
|
+
(r) => {
|
|
26
|
+
if (n) {
|
|
27
|
+
const l = C(r) ? r(e) : r;
|
|
28
|
+
l !== e && i.current?.(l);
|
|
29
|
+
} else
|
|
30
|
+
c(r);
|
|
31
|
+
},
|
|
32
|
+
[n, e, c, i]
|
|
33
|
+
);
|
|
34
|
+
return [a, d];
|
|
35
|
+
}
|
|
36
|
+
function R({
|
|
37
|
+
defaultProp: e,
|
|
38
|
+
onChange: s
|
|
39
|
+
}) {
|
|
40
|
+
const [o, f] = t.useState(e), u = t.useRef(o), c = t.useRef(s);
|
|
41
|
+
return v(() => {
|
|
42
|
+
c.current = s;
|
|
43
|
+
}, [s]), t.useEffect(() => {
|
|
44
|
+
u.current !== o && (c.current?.(o), u.current = o);
|
|
45
|
+
}, [o, u]), [o, f, c];
|
|
46
|
+
}
|
|
47
|
+
function C(e) {
|
|
48
|
+
return typeof e == "function";
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
w as u
|
|
52
|
+
};
|
|
@@ -70,9 +70,8 @@ function R(e, n) {
|
|
|
70
70
|
return { ...e, ...r };
|
|
71
71
|
}
|
|
72
72
|
function h(e) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return r ? e.ref : (n = (t = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : t.get, r = n && "isReactWarning" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
73
|
+
let n = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = n && "isReactWarning" in n && n.isReactWarning;
|
|
74
|
+
return r ? e.ref : (n = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = n && "isReactWarning" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
76
75
|
}
|
|
77
76
|
export {
|
|
78
77
|
I as S,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
2
|
import { useState as he } from "react";
|
|
3
|
-
import { u as me } from "./index-
|
|
4
|
-
import { P as pe } from "./index-
|
|
5
|
-
import { u as z } from "./index-
|
|
3
|
+
import { u as me } from "./index-5Bhkapwi.js";
|
|
4
|
+
import { P as pe } from "./index-CpDnqHCm.js";
|
|
5
|
+
import { u as z } from "./index-0ioNhtNM.js";
|
|
6
6
|
import { jsx as ge } from "react/jsx-runtime";
|
|
7
7
|
var U = "focusScope.autoFocusOnMount", _ = "focusScope.autoFocusOnUnmount", Z = { bubbles: !1, cancelable: !0 }, ye = "FocusScope", be = u.forwardRef((e, t) => {
|
|
8
8
|
const {
|
|
@@ -118,11 +118,10 @@ function Re() {
|
|
|
118
118
|
return {
|
|
119
119
|
add(t) {
|
|
120
120
|
const n = e[0];
|
|
121
|
-
t !== n &&
|
|
121
|
+
t !== n && n?.pause(), e = $(e, t), e.unshift(t);
|
|
122
122
|
},
|
|
123
123
|
remove(t) {
|
|
124
|
-
|
|
125
|
-
e = $(e, t), (n = e[0]) == null || n.resume();
|
|
124
|
+
e = $(e, t), e[0]?.resume();
|
|
126
125
|
}
|
|
127
126
|
};
|
|
128
127
|
}
|
|
@@ -193,14 +192,14 @@ function Me(e, t) {
|
|
|
193
192
|
})[0];
|
|
194
193
|
return n.callback = t, n.facade;
|
|
195
194
|
}
|
|
196
|
-
var
|
|
197
|
-
function
|
|
195
|
+
var Fe = typeof window < "u" ? u.useLayoutEffect : u.useEffect, ee = /* @__PURE__ */ new WeakMap();
|
|
196
|
+
function Pe(e, t) {
|
|
198
197
|
var n = Me(null, function(r) {
|
|
199
198
|
return e.forEach(function(c) {
|
|
200
199
|
return K(c, r);
|
|
201
200
|
});
|
|
202
201
|
});
|
|
203
|
-
return
|
|
202
|
+
return Fe(function() {
|
|
204
203
|
var r = ee.get(n);
|
|
205
204
|
if (r) {
|
|
206
205
|
var c = new Set(r), i = new Set(e), s = n.current;
|
|
@@ -213,11 +212,11 @@ function Oe(e, t) {
|
|
|
213
212
|
ee.set(n, e);
|
|
214
213
|
}, [e]), n;
|
|
215
214
|
}
|
|
216
|
-
function
|
|
215
|
+
function Oe(e) {
|
|
217
216
|
return e;
|
|
218
217
|
}
|
|
219
218
|
function Le(e, t) {
|
|
220
|
-
t === void 0 && (t =
|
|
219
|
+
t === void 0 && (t = Oe);
|
|
221
220
|
var n = [], r = !1, c = {
|
|
222
221
|
read: function() {
|
|
223
222
|
if (r)
|
|
@@ -295,7 +294,7 @@ var ie = Ie(), H = function() {
|
|
|
295
294
|
onScrollCapture: H,
|
|
296
295
|
onWheelCapture: H,
|
|
297
296
|
onTouchMoveCapture: H
|
|
298
|
-
}), c = r[0], i = r[1], s = e.forwardProps, a = e.children, S = e.className, b = e.removeScrollBar, g = e.enabled, f = e.shards, v = e.sideCar, h = e.noRelative, w = e.noIsolation, o = e.inert, l = e.allowPinchZoom, d = e.as, m = d === void 0 ? "div" : d, p = e.gapMode, y = ce(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = v, A =
|
|
297
|
+
}), c = r[0], i = r[1], s = e.forwardProps, a = e.children, S = e.className, b = e.removeScrollBar, g = e.enabled, f = e.shards, v = e.sideCar, h = e.noRelative, w = e.noIsolation, o = e.inert, l = e.allowPinchZoom, d = e.as, m = d === void 0 ? "div" : d, p = e.gapMode, y = ce(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = v, A = Pe([n, t]), R = C(C({}, y), c);
|
|
299
298
|
return u.createElement(
|
|
300
299
|
u.Fragment,
|
|
301
300
|
null,
|
|
@@ -376,14 +375,14 @@ var _e = function() {
|
|
|
376
375
|
right: t[2],
|
|
377
376
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
378
377
|
};
|
|
379
|
-
}, Xe = le(),
|
|
378
|
+
}, Xe = le(), F = "data-scroll-locked", Ye = function(e, t, n, r) {
|
|
380
379
|
var c = e.left, i = e.top, s = e.right, a = e.gap;
|
|
381
380
|
return n === void 0 && (n = "margin"), `
|
|
382
381
|
.`.concat(Te, ` {
|
|
383
382
|
overflow: hidden `).concat(r, `;
|
|
384
383
|
padding-right: `).concat(a, "px ").concat(r, `;
|
|
385
384
|
}
|
|
386
|
-
body[`).concat(
|
|
385
|
+
body[`).concat(F, `] {
|
|
387
386
|
overflow: hidden `).concat(r, `;
|
|
388
387
|
overscroll-behavior: contain;
|
|
389
388
|
`).concat([
|
|
@@ -416,18 +415,18 @@ var _e = function() {
|
|
|
416
415
|
margin-right: 0 `).concat(r, `;
|
|
417
416
|
}
|
|
418
417
|
|
|
419
|
-
body[`).concat(
|
|
418
|
+
body[`).concat(F, `] {
|
|
420
419
|
`).concat(Ne, ": ").concat(a, `px;
|
|
421
420
|
}
|
|
422
421
|
`);
|
|
423
422
|
}, te = function() {
|
|
424
|
-
var e = parseInt(document.body.getAttribute(
|
|
423
|
+
var e = parseInt(document.body.getAttribute(F) || "0", 10);
|
|
425
424
|
return isFinite(e) ? e : 0;
|
|
426
425
|
}, Ge = function() {
|
|
427
426
|
u.useEffect(function() {
|
|
428
|
-
return document.body.setAttribute(
|
|
427
|
+
return document.body.setAttribute(F, (te() + 1).toString()), function() {
|
|
429
428
|
var e = te() - 1;
|
|
430
|
-
e <= 0 ? document.body.removeAttribute(
|
|
429
|
+
e <= 0 ? document.body.removeAttribute(F) : document.body.setAttribute(F, e.toString());
|
|
431
430
|
};
|
|
432
431
|
}, []);
|
|
433
432
|
}, ze = function(e) {
|
|
@@ -440,12 +439,12 @@ var _e = function() {
|
|
|
440
439
|
}, Y = !1;
|
|
441
440
|
if (typeof window < "u")
|
|
442
441
|
try {
|
|
443
|
-
var
|
|
442
|
+
var O = Object.defineProperty({}, "passive", {
|
|
444
443
|
get: function() {
|
|
445
444
|
return Y = !0, !0;
|
|
446
445
|
}
|
|
447
446
|
});
|
|
448
|
-
window.addEventListener("test",
|
|
447
|
+
window.addEventListener("test", O, O), window.removeEventListener("test", O, O);
|
|
449
448
|
} catch {
|
|
450
449
|
Y = !1;
|
|
451
450
|
}
|
|
@@ -549,10 +548,10 @@ function ot(e) {
|
|
|
549
548
|
var d = L(o), m = n.current, p = "deltaX" in o ? o.deltaX : m[0] - d[0], y = "deltaY" in o ? o.deltaY : m[1] - d[1], E, A = o.target, R = Math.abs(p) > Math.abs(y) ? "h" : "v";
|
|
550
549
|
if ("touches" in o && R === "h" && A.type === "range")
|
|
551
550
|
return !1;
|
|
552
|
-
var
|
|
553
|
-
if (!
|
|
551
|
+
var P = ne(R, A);
|
|
552
|
+
if (!P)
|
|
554
553
|
return !0;
|
|
555
|
-
if (
|
|
554
|
+
if (P ? E = R : (E = R === "v" ? "h" : "v", P = ne(R, A)), !P)
|
|
556
555
|
return !1;
|
|
557
556
|
if (!r.current && "changedTouches" in o && (p || y) && (r.current = E), !E)
|
|
558
557
|
return !0;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { u as y } from "./index-5Bhkapwi.js";
|
|
3
|
+
import { u as A } from "./index-CCKe-Mpx.js";
|
|
4
|
+
function T(n, e) {
|
|
5
|
+
return i.useReducer((t, r) => e[t][r] ?? t, n);
|
|
6
|
+
}
|
|
7
|
+
var E = (n) => {
|
|
8
|
+
const { present: e, children: t } = n, r = R(e), a = typeof t == "function" ? t({ present: r.isPresent }) : i.Children.only(t), c = y(r.ref, P(a));
|
|
9
|
+
return typeof t == "function" || r.isPresent ? i.cloneElement(a, { ref: c }) : null;
|
|
10
|
+
};
|
|
11
|
+
E.displayName = "Presence";
|
|
12
|
+
function R(n) {
|
|
13
|
+
const [e, t] = i.useState(), r = i.useRef(null), a = i.useRef(n), c = i.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = T(p, {
|
|
14
|
+
mounted: {
|
|
15
|
+
UNMOUNT: "unmounted",
|
|
16
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
17
|
+
},
|
|
18
|
+
unmountSuspended: {
|
|
19
|
+
MOUNT: "mounted",
|
|
20
|
+
ANIMATION_END: "unmounted"
|
|
21
|
+
},
|
|
22
|
+
unmounted: {
|
|
23
|
+
MOUNT: "mounted"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
return i.useEffect(() => {
|
|
27
|
+
const o = l(r.current);
|
|
28
|
+
c.current = N === "mounted" ? o : "none";
|
|
29
|
+
}, [N]), A(() => {
|
|
30
|
+
const o = r.current, m = a.current;
|
|
31
|
+
if (m !== n) {
|
|
32
|
+
const f = c.current, u = l(o);
|
|
33
|
+
n ? s("MOUNT") : u === "none" || o?.display === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), a.current = n;
|
|
34
|
+
}
|
|
35
|
+
}, [n, s]), A(() => {
|
|
36
|
+
if (e) {
|
|
37
|
+
let o;
|
|
38
|
+
const m = e.ownerDocument.defaultView ?? window, d = (u) => {
|
|
39
|
+
const g = l(r.current).includes(u.animationName);
|
|
40
|
+
if (u.target === e && g && (s("ANIMATION_END"), !a.current)) {
|
|
41
|
+
const O = e.style.animationFillMode;
|
|
42
|
+
e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
|
|
43
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}, f = (u) => {
|
|
47
|
+
u.target === e && (c.current = l(r.current));
|
|
48
|
+
};
|
|
49
|
+
return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
|
|
50
|
+
m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
|
|
51
|
+
};
|
|
52
|
+
} else
|
|
53
|
+
s("ANIMATION_END");
|
|
54
|
+
}, [e, s]), {
|
|
55
|
+
isPresent: ["mounted", "unmountSuspended"].includes(N),
|
|
56
|
+
ref: i.useCallback((o) => {
|
|
57
|
+
r.current = o ? getComputedStyle(o) : null, t(o);
|
|
58
|
+
}, [])
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function l(n) {
|
|
62
|
+
return n?.animationName || "none";
|
|
63
|
+
}
|
|
64
|
+
function P(n) {
|
|
65
|
+
let e = Object.getOwnPropertyDescriptor(n.props, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning;
|
|
66
|
+
return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
E as P
|
|
70
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as O } from "./utils-
|
|
1
|
+
import { a as O } from "./utils-CRiPKpXj.js";
|
|
2
2
|
const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
|
|
3
3
|
var u;
|
|
4
|
-
if (
|
|
4
|
+
if (l?.variants == null) return y(e, n?.class, n?.className);
|
|
5
5
|
const { variants: r, defaultVariants: d } = l, V = Object.keys(r).map((t) => {
|
|
6
|
-
const a = n
|
|
6
|
+
const a = n?.[t], s = d?.[t];
|
|
7
7
|
if (a === null) return null;
|
|
8
8
|
const i = m(a) || m(s);
|
|
9
9
|
return r[t][i];
|
|
@@ -27,7 +27,7 @@ const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j =
|
|
|
27
27
|
i
|
|
28
28
|
] : t;
|
|
29
29
|
}, []);
|
|
30
|
-
return y(e, V, N, n
|
|
30
|
+
return y(e, V, N, n?.class, n?.className);
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
33
|
j as c
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
import { c as O } from "./index-
|
|
3
|
-
import { c as S } from "./index-
|
|
4
|
-
import { u as D } from "./index-
|
|
5
|
-
import { u as M } from "./index-
|
|
6
|
-
import { u as L } from "./index-
|
|
7
|
-
import { P as v } from "./index-
|
|
8
|
-
import { P as k } from "./index-
|
|
9
|
-
import { u as F } from "./index-
|
|
2
|
+
import { c as O } from "./index-B695uy69.js";
|
|
3
|
+
import { c as S } from "./index-DFZozV_h.js";
|
|
4
|
+
import { u as D } from "./index-437EL2iq.js";
|
|
5
|
+
import { u as M } from "./index-CCKe-Mpx.js";
|
|
6
|
+
import { u as L } from "./index-5Bhkapwi.js";
|
|
7
|
+
import { P as v } from "./index-CpDnqHCm.js";
|
|
8
|
+
import { P as k } from "./index-C8_QusYl.js";
|
|
9
|
+
import { u as F } from "./index-Cv867SGx.js";
|
|
10
10
|
import { jsx as c } from "react/jsx-runtime";
|
|
11
11
|
var f = "Collapsible", [B, W] = S(f), [G, g] = B(f), T = o.forwardRef(
|
|
12
12
|
(e, r) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { c as y } from "./index-
|
|
3
|
-
import { u as M, c as x } from "./index-
|
|
2
|
+
import { c as y } from "./index-DFZozV_h.js";
|
|
3
|
+
import { u as M, c as x } from "./index-5Bhkapwi.js";
|
|
4
4
|
import { jsx as d } from "react/jsx-runtime";
|
|
5
5
|
function D(s) {
|
|
6
6
|
const f = s + "CollectionProvider", [A, N] = y(f), [_, m] = A(
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
3
|
+
function $(t, c) {
|
|
4
|
+
const n = u.createContext(c), p = (r) => {
|
|
5
|
+
const { children: e, ...o } = r, s = u.useMemo(() => o, Object.values(o));
|
|
6
|
+
return /* @__PURE__ */ C(n.Provider, { value: s, children: e });
|
|
7
|
+
};
|
|
8
|
+
p.displayName = t + "Provider";
|
|
9
|
+
function i(r) {
|
|
10
|
+
const e = u.useContext(n);
|
|
11
|
+
if (e) return e;
|
|
12
|
+
if (c !== void 0) return c;
|
|
13
|
+
throw new Error(`\`${r}\` must be used within \`${t}\``);
|
|
14
|
+
}
|
|
15
|
+
return [p, i];
|
|
16
|
+
}
|
|
17
|
+
function w(t, c = []) {
|
|
18
|
+
let n = [];
|
|
19
|
+
function p(r, e) {
|
|
20
|
+
const o = u.createContext(e), s = n.length;
|
|
21
|
+
n = [...n, e];
|
|
22
|
+
const d = (x) => {
|
|
23
|
+
const { scope: m, children: v, ...a } = x, S = m?.[t]?.[s] || o, h = u.useMemo(() => a, Object.values(a));
|
|
24
|
+
return /* @__PURE__ */ C(S.Provider, { value: h, children: v });
|
|
25
|
+
};
|
|
26
|
+
d.displayName = r + "Provider";
|
|
27
|
+
function f(x, m) {
|
|
28
|
+
const v = m?.[t]?.[s] || o, a = u.useContext(v);
|
|
29
|
+
if (a) return a;
|
|
30
|
+
if (e !== void 0) return e;
|
|
31
|
+
throw new Error(`\`${x}\` must be used within \`${r}\``);
|
|
32
|
+
}
|
|
33
|
+
return [d, f];
|
|
34
|
+
}
|
|
35
|
+
const i = () => {
|
|
36
|
+
const r = n.map((e) => u.createContext(e));
|
|
37
|
+
return function(o) {
|
|
38
|
+
const s = o?.[t] || r;
|
|
39
|
+
return u.useMemo(
|
|
40
|
+
() => ({ [`__scope${t}`]: { ...o, [t]: s } }),
|
|
41
|
+
[o, s]
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return i.scopeName = t, [p, P(i, ...c)];
|
|
46
|
+
}
|
|
47
|
+
function P(...t) {
|
|
48
|
+
const c = t[0];
|
|
49
|
+
if (t.length === 1) return c;
|
|
50
|
+
const n = () => {
|
|
51
|
+
const p = t.map((i) => ({
|
|
52
|
+
useScope: i(),
|
|
53
|
+
scopeName: i.scopeName
|
|
54
|
+
}));
|
|
55
|
+
return function(r) {
|
|
56
|
+
const e = p.reduce((o, { useScope: s, scopeName: d }) => {
|
|
57
|
+
const x = s(r)[`__scope${d}`];
|
|
58
|
+
return { ...o, ...x };
|
|
59
|
+
}, {});
|
|
60
|
+
return u.useMemo(() => ({ [`__scope${c.scopeName}`]: e }), [e]);
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
return n.scopeName = c.scopeName, n;
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
$ as a,
|
|
67
|
+
w as c
|
|
68
|
+
};
|