@arcadeai/design-system 2.3.0 → 3.0.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/{arcade-DzMbb7xi.js → arcade-CHE48l2C.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/ui/atoms/accordion.js +16 -16
- package/dist/components/ui/atoms/alert-dialog.js +25 -25
- package/dist/components/ui/atoms/avatar.js +7 -7
- package/dist/components/ui/atoms/checkbox.js +34 -34
- package/dist/components/ui/atoms/dropdown-menu.js +31 -31
- package/dist/components/ui/atoms/hover-card.js +19 -19
- package/dist/components/ui/atoms/popover.js +9 -9
- package/dist/components/ui/atoms/progress.js +11 -11
- package/dist/components/ui/atoms/radio-group.js +29 -29
- package/dist/components/ui/atoms/resizable.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +40 -40
- package/dist/components/ui/atoms/select.js +17 -17
- package/dist/components/ui/atoms/sidebar.js +4 -1
- package/dist/components/ui/atoms/slider.js +35 -35
- package/dist/components/ui/atoms/switch.js +15 -15
- package/dist/components/ui/atoms/tabs.js +13 -13
- package/dist/components/ui/atoms/tooltip.js +22 -22
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +6 -5
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/toolkit-picker-trigger.js +20 -23
- package/dist/components/ui/molecules/toolkit-selection-summary.js +16 -19
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.js +6 -6
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.js +9 -12
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +12 -11
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +5 -4
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +4 -7
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +5 -4
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +21 -21
- 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/mocks/toolkit-collection.js +19 -23
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +1773 -1729
- package/dist/components/ui/utils/memo.test.js +1 -1
- package/dist/lib/arcade/arcade.js +1 -1
- package/dist/lib/arcade/arcade.test.js +2 -2
- package/dist/lib/utils.test.js +1 -1
- package/dist/main.js +195 -188
- package/dist/metadata/index.d.ts +1 -0
- package/dist/metadata/index.js +23 -16
- package/dist/metadata/toolkit-icons.d.ts +27 -0
- package/dist/metadata/toolkit-icons.js +227 -0
- package/dist/metadata/toolkits.js +341 -643
- package/dist/metadata/types.d.ts +1 -3
- package/dist/metadata/utils.d.ts +15 -0
- package/dist/metadata/utils.js +15 -8
- package/dist/{react-resizable-panels.browser-DggUboAp.js → react-resizable-panels.browser-31wAXhAV.js} +2 -1
- package/dist/{react.esm-DUaR5u-J.js → react.esm-I5_wjDW6.js} +17509 -15389
- package/dist/{toolkit-card-BWuG_NJi.js → toolkit-card-nuE_5OvN.js} +4 -3
- package/dist/{vi.bdSIJ99Y-Bs-viS39.js → vi.bdSIJ99Y-DBnM2VfT.js} +1296 -1315
- package/package.json +34 -34
- package/dist/components/ui/atoms/icons/utils.d.ts +0 -43
- package/dist/components/ui/atoms/icons/utils.js +0 -33
|
@@ -4,14 +4,14 @@ import { c as l } from "../../../index-B695uy69.js";
|
|
|
4
4
|
import { c as k } from "../../../index-DFZozV_h.js";
|
|
5
5
|
import { u as F } from "../../../index-437EL2iq.js";
|
|
6
6
|
import { u as I } from "../../../index-5Bhkapwi.js";
|
|
7
|
-
import { c as
|
|
7
|
+
import { c as T, R as U, A as $, C as W, a as z } from "../../../index-DH9yRdVk.js";
|
|
8
8
|
import { P as B, D as G } from "../../../index-DYHsXnnS.js";
|
|
9
|
-
import { P as
|
|
9
|
+
import { P as H } from "../../../index-BGfrl8IX.js";
|
|
10
10
|
import { P as K } from "../../../index-CpDnqHCm.js";
|
|
11
11
|
import { c as j } from "../../../utils-Db4QWi-E.js";
|
|
12
|
-
var x, S = "HoverCard", [O
|
|
13
|
-
|
|
14
|
-
]), b =
|
|
12
|
+
var x, S = "HoverCard", [O] = k(S, [
|
|
13
|
+
T
|
|
14
|
+
]), b = T(), [V, w] = O(S), _ = (e) => {
|
|
15
15
|
const {
|
|
16
16
|
__scopeHoverCard: o,
|
|
17
17
|
children: t,
|
|
@@ -20,7 +20,7 @@ var x, S = "HoverCard", [O, ve] = k(S, [
|
|
|
20
20
|
onOpenChange: c,
|
|
21
21
|
openDelay: f = 700,
|
|
22
22
|
closeDelay: v = 300
|
|
23
|
-
} = e, d = b(o), m = n.useRef(0), u = n.useRef(0),
|
|
23
|
+
} = e, d = b(o), m = n.useRef(0), u = n.useRef(0), h = n.useRef(!1), p = n.useRef(!1), [C, r] = F({
|
|
24
24
|
prop: s,
|
|
25
25
|
defaultProp: i ?? !1,
|
|
26
26
|
onChange: c,
|
|
@@ -28,7 +28,7 @@ var x, S = "HoverCard", [O, ve] = k(S, [
|
|
|
28
28
|
}), P = n.useCallback(() => {
|
|
29
29
|
clearTimeout(u.current), m.current = window.setTimeout(() => r(!0), f);
|
|
30
30
|
}, [f, r]), L = n.useCallback(() => {
|
|
31
|
-
clearTimeout(m.current), !
|
|
31
|
+
clearTimeout(m.current), !h.current && !p.current && (u.current = window.setTimeout(() => r(!1), v));
|
|
32
32
|
}, [v, r]), M = n.useCallback(() => r(!1), [r]);
|
|
33
33
|
return n.useEffect(() => () => {
|
|
34
34
|
clearTimeout(m.current), clearTimeout(u.current);
|
|
@@ -36,12 +36,12 @@ var x, S = "HoverCard", [O, ve] = k(S, [
|
|
|
36
36
|
V,
|
|
37
37
|
{
|
|
38
38
|
scope: o,
|
|
39
|
-
open:
|
|
39
|
+
open: C,
|
|
40
40
|
onOpenChange: r,
|
|
41
41
|
onOpen: P,
|
|
42
42
|
onClose: L,
|
|
43
43
|
onDismiss: M,
|
|
44
|
-
hasSelectionRef:
|
|
44
|
+
hasSelectionRef: h,
|
|
45
45
|
isPointerDownOnContentRef: p,
|
|
46
46
|
children: /* @__PURE__ */ a(U, { ...d, children: t })
|
|
47
47
|
}
|
|
@@ -71,13 +71,13 @@ var E = "HoverCardPortal", [q, J] = O(E, {
|
|
|
71
71
|
forceMount: void 0
|
|
72
72
|
}), D = (e) => {
|
|
73
73
|
const { __scopeHoverCard: o, forceMount: t, children: s, container: i } = e, c = w(E, o);
|
|
74
|
-
return /* @__PURE__ */ a(q, { scope: o, forceMount: t, children: /* @__PURE__ */ a(
|
|
74
|
+
return /* @__PURE__ */ a(q, { scope: o, forceMount: t, children: /* @__PURE__ */ a(H, { present: t || c.open, children: /* @__PURE__ */ a(B, { asChild: !0, container: i, children: s }) }) });
|
|
75
75
|
};
|
|
76
76
|
D.displayName = E;
|
|
77
77
|
var g = "HoverCardContent", A = n.forwardRef(
|
|
78
78
|
(e, o) => {
|
|
79
79
|
const t = J(g, e.__scopeHoverCard), { forceMount: s = t.forceMount, ...i } = e, c = w(g, e.__scopeHoverCard);
|
|
80
|
-
return /* @__PURE__ */ a(
|
|
80
|
+
return /* @__PURE__ */ a(H, { present: s || c.open, children: /* @__PURE__ */ a(
|
|
81
81
|
Q,
|
|
82
82
|
{
|
|
83
83
|
"data-state": c.open ? "open" : "closed",
|
|
@@ -98,7 +98,7 @@ var Q = n.forwardRef((e, o) => {
|
|
|
98
98
|
onFocusOutside: c,
|
|
99
99
|
onInteractOutside: f,
|
|
100
100
|
...v
|
|
101
|
-
} = e, d = w(g, t), m = b(t), u = n.useRef(null),
|
|
101
|
+
} = e, d = w(g, t), m = b(t), u = n.useRef(null), h = I(o, u), [p, C] = n.useState(!1);
|
|
102
102
|
return n.useEffect(() => {
|
|
103
103
|
if (p) {
|
|
104
104
|
const r = document.body;
|
|
@@ -109,7 +109,7 @@ var Q = n.forwardRef((e, o) => {
|
|
|
109
109
|
}, [p]), n.useEffect(() => {
|
|
110
110
|
if (u.current) {
|
|
111
111
|
const r = () => {
|
|
112
|
-
|
|
112
|
+
C(!1), d.isPointerDownOnContentRef.current = !1, setTimeout(() => {
|
|
113
113
|
document.getSelection()?.toString() !== "" && (d.hasSelectionRef.current = !0);
|
|
114
114
|
});
|
|
115
115
|
};
|
|
@@ -137,9 +137,9 @@ var Q = n.forwardRef((e, o) => {
|
|
|
137
137
|
...m,
|
|
138
138
|
...v,
|
|
139
139
|
onPointerDown: l(v.onPointerDown, (r) => {
|
|
140
|
-
r.currentTarget.contains(r.target) &&
|
|
140
|
+
r.currentTarget.contains(r.target) && C(!0), d.hasSelectionRef.current = !1, d.isPointerDownOnContentRef.current = !0;
|
|
141
141
|
}),
|
|
142
|
-
ref:
|
|
142
|
+
ref: h,
|
|
143
143
|
style: {
|
|
144
144
|
...v.style,
|
|
145
145
|
userSelect: p ? "text" : void 0,
|
|
@@ -173,12 +173,12 @@ function Z(e) {
|
|
|
173
173
|
return o;
|
|
174
174
|
}
|
|
175
175
|
var ee = _, re = N, oe = D, te = A;
|
|
176
|
-
function
|
|
176
|
+
function ve({
|
|
177
177
|
...e
|
|
178
178
|
}) {
|
|
179
179
|
return /* @__PURE__ */ a(ee, { "data-slot": "hover-card", ...e });
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function me({
|
|
182
182
|
...e
|
|
183
183
|
}) {
|
|
184
184
|
return /* @__PURE__ */ a(re, { "data-slot": "hover-card-trigger", ...e });
|
|
@@ -204,7 +204,7 @@ function he({
|
|
|
204
204
|
) });
|
|
205
205
|
}
|
|
206
206
|
export {
|
|
207
|
-
|
|
207
|
+
ve as HoverCard,
|
|
208
208
|
he as HoverCardContent,
|
|
209
|
-
|
|
209
|
+
me as HoverCardTrigger
|
|
210
210
|
};
|
|
@@ -11,7 +11,7 @@ import { P as w } from "../../../index-BGfrl8IX.js";
|
|
|
11
11
|
import { P as b } from "../../../index-CpDnqHCm.js";
|
|
12
12
|
import { u as J } from "../../../index-437EL2iq.js";
|
|
13
13
|
import { c as Q } from "../../../utils-Db4QWi-E.js";
|
|
14
|
-
var C = "Popover", [E
|
|
14
|
+
var C = "Popover", [E] = z(C, [
|
|
15
15
|
_
|
|
16
16
|
]), m = _(), [X, u] = E(C), F = (o) => {
|
|
17
17
|
const {
|
|
@@ -220,17 +220,17 @@ function $(o) {
|
|
|
220
220
|
return o ? "open" : "closed";
|
|
221
221
|
}
|
|
222
222
|
var co = F, io = S, po = D, uo = M, lo = T;
|
|
223
|
-
function
|
|
223
|
+
function wo({
|
|
224
224
|
...o
|
|
225
225
|
}) {
|
|
226
226
|
return /* @__PURE__ */ s(co, { "data-slot": "popover", ...o });
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function bo({
|
|
229
229
|
...o
|
|
230
230
|
}) {
|
|
231
231
|
return /* @__PURE__ */ s(po, { "data-slot": "popover-trigger", ...o });
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Eo({
|
|
234
234
|
className: o,
|
|
235
235
|
align: n = "center",
|
|
236
236
|
sideOffset: e = 4,
|
|
@@ -250,14 +250,14 @@ function Fo({
|
|
|
250
250
|
}
|
|
251
251
|
) });
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Fo({
|
|
254
254
|
...o
|
|
255
255
|
}) {
|
|
256
256
|
return /* @__PURE__ */ s(io, { "data-slot": "popover-anchor", ...o });
|
|
257
257
|
}
|
|
258
258
|
export {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
259
|
+
wo as Popover,
|
|
260
|
+
Fo as PopoverAnchor,
|
|
261
|
+
Eo as PopoverContent,
|
|
262
|
+
bo as PopoverTrigger
|
|
263
263
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as v from "react";
|
|
3
3
|
import { c as $ } from "../../../index-DFZozV_h.js";
|
|
4
|
-
import { P as
|
|
4
|
+
import { P as c } from "../../../index-CpDnqHCm.js";
|
|
5
5
|
import { c as I } from "../../../utils-Db4QWi-E.js";
|
|
6
|
-
var u = "Progress", d = 100, [E
|
|
6
|
+
var u = "Progress", d = 100, [E] = $(u), [R, _] = E(u), f = v.forwardRef(
|
|
7
7
|
(r, e) => {
|
|
8
8
|
const {
|
|
9
9
|
__scopeProgress: n,
|
|
@@ -12,12 +12,12 @@ var u = "Progress", d = 100, [E, O] = $(u), [R, _] = E(u), f = m.forwardRef(
|
|
|
12
12
|
getValueLabel: N = y,
|
|
13
13
|
...b
|
|
14
14
|
} = r;
|
|
15
|
-
(a || a === 0) && !
|
|
16
|
-
const t =
|
|
15
|
+
(a || a === 0) && !m(a) && console.error(M(`${a}`, "Progress"));
|
|
16
|
+
const t = m(a) ? a : d;
|
|
17
17
|
o !== null && !p(o, t) && console.error(w(`${o}`, "Progress"));
|
|
18
18
|
const s = p(o, t) ? o : null, h = l(s) ? N(s, t) : void 0;
|
|
19
19
|
return /* @__PURE__ */ i(R, { scope: n, value: s, max: t, children: /* @__PURE__ */ i(
|
|
20
|
-
|
|
20
|
+
c.div,
|
|
21
21
|
{
|
|
22
22
|
"aria-valuemax": t,
|
|
23
23
|
"aria-valuemin": 0,
|
|
@@ -34,11 +34,11 @@ var u = "Progress", d = 100, [E, O] = $(u), [R, _] = E(u), f = m.forwardRef(
|
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
f.displayName = u;
|
|
37
|
-
var g = "ProgressIndicator", P =
|
|
37
|
+
var g = "ProgressIndicator", P = v.forwardRef(
|
|
38
38
|
(r, e) => {
|
|
39
39
|
const { __scopeProgress: n, ...o } = r, a = _(g, n);
|
|
40
40
|
return /* @__PURE__ */ i(
|
|
41
|
-
|
|
41
|
+
c.div,
|
|
42
42
|
{
|
|
43
43
|
"data-state": x(a.value, a.max),
|
|
44
44
|
"data-value": a.value ?? void 0,
|
|
@@ -59,7 +59,7 @@ function x(r, e) {
|
|
|
59
59
|
function l(r) {
|
|
60
60
|
return typeof r == "number";
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function m(r) {
|
|
63
63
|
return l(r) && !isNaN(r) && r > 0;
|
|
64
64
|
}
|
|
65
65
|
function p(r, e) {
|
|
@@ -78,7 +78,7 @@ Defaulting to \`null\`.`;
|
|
|
78
78
|
}
|
|
79
79
|
var A = f, V = P;
|
|
80
80
|
const C = 100;
|
|
81
|
-
function
|
|
81
|
+
function O({
|
|
82
82
|
className: r,
|
|
83
83
|
value: e,
|
|
84
84
|
...n
|
|
@@ -104,5 +104,5 @@ function X({
|
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
106
|
export {
|
|
107
|
-
|
|
107
|
+
O as Progress
|
|
108
108
|
};
|
|
@@ -20,11 +20,11 @@ var w = "Radio", [W, _] = k(w), [X, Y] = W(w), G = s.forwardRef(
|
|
|
20
20
|
checked: e = !1,
|
|
21
21
|
required: a,
|
|
22
22
|
disabled: n,
|
|
23
|
-
value:
|
|
23
|
+
value: p = "on",
|
|
24
24
|
onCheck: f,
|
|
25
25
|
form: m,
|
|
26
26
|
...v
|
|
27
|
-
} = r, [
|
|
27
|
+
} = r, [l, R] = s.useState(null), c = I(t, (h) => R(h)), u = s.useRef(!1), b = l ? m || !!l.closest("form") : !0;
|
|
28
28
|
return /* @__PURE__ */ B(X, { scope: o, checked: e, disabled: n, children: [
|
|
29
29
|
/* @__PURE__ */ i(
|
|
30
30
|
g.button,
|
|
@@ -35,7 +35,7 @@ var w = "Radio", [W, _] = k(w), [X, Y] = W(w), G = s.forwardRef(
|
|
|
35
35
|
"data-state": A(e),
|
|
36
36
|
"data-disabled": n ? "" : void 0,
|
|
37
37
|
disabled: n,
|
|
38
|
-
value:
|
|
38
|
+
value: p,
|
|
39
39
|
...v,
|
|
40
40
|
ref: c,
|
|
41
41
|
onClick: C(r.onClick, (h) => {
|
|
@@ -44,12 +44,12 @@ var w = "Radio", [W, _] = k(w), [X, Y] = W(w), G = s.forwardRef(
|
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
46
|
b && /* @__PURE__ */ i(
|
|
47
|
-
|
|
47
|
+
S,
|
|
48
48
|
{
|
|
49
|
-
control:
|
|
49
|
+
control: l,
|
|
50
50
|
bubbles: !u.current,
|
|
51
51
|
name: d,
|
|
52
|
-
value:
|
|
52
|
+
value: p,
|
|
53
53
|
checked: e,
|
|
54
54
|
required: a,
|
|
55
55
|
disabled: n,
|
|
@@ -61,7 +61,7 @@ var w = "Radio", [W, _] = k(w), [X, Y] = W(w), G = s.forwardRef(
|
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
63
|
G.displayName = w;
|
|
64
|
-
var N = "RadioIndicator",
|
|
64
|
+
var N = "RadioIndicator", x = s.forwardRef(
|
|
65
65
|
(r, t) => {
|
|
66
66
|
const { __scopeRadio: o, forceMount: d, ...e } = r, a = Y(N, o);
|
|
67
67
|
return /* @__PURE__ */ i(H, { present: d || a.checked, children: /* @__PURE__ */ i(
|
|
@@ -75,8 +75,8 @@ var N = "RadioIndicator", S = s.forwardRef(
|
|
|
75
75
|
) });
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
|
-
|
|
79
|
-
var J = "RadioBubbleInput",
|
|
78
|
+
x.displayName = N;
|
|
79
|
+
var J = "RadioBubbleInput", S = s.forwardRef(
|
|
80
80
|
({
|
|
81
81
|
__scopeRadio: r,
|
|
82
82
|
control: t,
|
|
@@ -84,12 +84,12 @@ var J = "RadioBubbleInput", x = s.forwardRef(
|
|
|
84
84
|
bubbles: d = !0,
|
|
85
85
|
...e
|
|
86
86
|
}, a) => {
|
|
87
|
-
const n = s.useRef(null),
|
|
87
|
+
const n = s.useRef(null), p = I(n, a), f = z(o), m = j(t);
|
|
88
88
|
return s.useEffect(() => {
|
|
89
89
|
const v = n.current;
|
|
90
90
|
if (!v) return;
|
|
91
|
-
const
|
|
92
|
-
|
|
91
|
+
const l = window.HTMLInputElement.prototype, c = Object.getOwnPropertyDescriptor(
|
|
92
|
+
l,
|
|
93
93
|
"checked"
|
|
94
94
|
).set;
|
|
95
95
|
if (f !== o && c) {
|
|
@@ -104,7 +104,7 @@ var J = "RadioBubbleInput", x = s.forwardRef(
|
|
|
104
104
|
defaultChecked: o,
|
|
105
105
|
...e,
|
|
106
106
|
tabIndex: -1,
|
|
107
|
-
ref:
|
|
107
|
+
ref: p,
|
|
108
108
|
style: {
|
|
109
109
|
...e.style,
|
|
110
110
|
...m,
|
|
@@ -117,11 +117,11 @@ var J = "RadioBubbleInput", x = s.forwardRef(
|
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
|
-
|
|
120
|
+
S.displayName = J;
|
|
121
121
|
function A(r) {
|
|
122
122
|
return r ? "checked" : "unchecked";
|
|
123
123
|
}
|
|
124
|
-
var Q = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], y = "RadioGroup", [Z
|
|
124
|
+
var Q = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], y = "RadioGroup", [Z] = k(y, [
|
|
125
125
|
P,
|
|
126
126
|
_
|
|
127
127
|
]), D = P(), M = _(), [ee, oe] = Z(y), O = s.forwardRef(
|
|
@@ -132,16 +132,16 @@ var Q = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], y = "RadioGroup", [
|
|
|
132
132
|
defaultValue: e,
|
|
133
133
|
value: a,
|
|
134
134
|
required: n = !1,
|
|
135
|
-
disabled:
|
|
135
|
+
disabled: p = !1,
|
|
136
136
|
orientation: f,
|
|
137
137
|
dir: m,
|
|
138
138
|
loop: v = !0,
|
|
139
|
-
onValueChange:
|
|
139
|
+
onValueChange: l,
|
|
140
140
|
...R
|
|
141
141
|
} = r, c = D(o), u = V(m), [b, h] = U({
|
|
142
142
|
prop: a,
|
|
143
143
|
defaultProp: e ?? null,
|
|
144
|
-
onChange:
|
|
144
|
+
onChange: l,
|
|
145
145
|
caller: y
|
|
146
146
|
});
|
|
147
147
|
return /* @__PURE__ */ i(
|
|
@@ -150,7 +150,7 @@ var Q = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], y = "RadioGroup", [
|
|
|
150
150
|
scope: o,
|
|
151
151
|
name: d,
|
|
152
152
|
required: n,
|
|
153
|
-
disabled:
|
|
153
|
+
disabled: p,
|
|
154
154
|
value: b,
|
|
155
155
|
onValueChange: h,
|
|
156
156
|
children: /* @__PURE__ */ i(
|
|
@@ -167,7 +167,7 @@ var Q = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], y = "RadioGroup", [
|
|
|
167
167
|
role: "radiogroup",
|
|
168
168
|
"aria-required": n,
|
|
169
169
|
"aria-orientation": f,
|
|
170
|
-
"data-disabled":
|
|
170
|
+
"data-disabled": p ? "" : void 0,
|
|
171
171
|
dir: u,
|
|
172
172
|
...R,
|
|
173
173
|
ref: t
|
|
@@ -182,7 +182,7 @@ var Q = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], y = "RadioGroup", [
|
|
|
182
182
|
O.displayName = y;
|
|
183
183
|
var F = "RadioGroupItem", L = s.forwardRef(
|
|
184
184
|
(r, t) => {
|
|
185
|
-
const { __scopeRadioGroup: o, disabled: d, ...e } = r, a = oe(F, o), n = a.disabled || d,
|
|
185
|
+
const { __scopeRadioGroup: o, disabled: d, ...e } = r, a = oe(F, o), n = a.disabled || d, p = D(o), f = M(o), m = s.useRef(null), v = I(t, m), l = a.value === e.value, R = s.useRef(!1);
|
|
186
186
|
return s.useEffect(() => {
|
|
187
187
|
const c = (b) => {
|
|
188
188
|
Q.includes(b.key) && (R.current = !0);
|
|
@@ -194,15 +194,15 @@ var F = "RadioGroupItem", L = s.forwardRef(
|
|
|
194
194
|
T,
|
|
195
195
|
{
|
|
196
196
|
asChild: !0,
|
|
197
|
-
...
|
|
197
|
+
...p,
|
|
198
198
|
focusable: !n,
|
|
199
|
-
active:
|
|
199
|
+
active: l,
|
|
200
200
|
children: /* @__PURE__ */ i(
|
|
201
201
|
G,
|
|
202
202
|
{
|
|
203
203
|
disabled: n,
|
|
204
204
|
required: a.required,
|
|
205
|
-
checked:
|
|
205
|
+
checked: l,
|
|
206
206
|
...f,
|
|
207
207
|
...e,
|
|
208
208
|
name: a.name,
|
|
@@ -224,12 +224,12 @@ L.displayName = F;
|
|
|
224
224
|
var re = "RadioGroupIndicator", q = s.forwardRef(
|
|
225
225
|
(r, t) => {
|
|
226
226
|
const { __scopeRadioGroup: o, ...d } = r, e = M(o);
|
|
227
|
-
return /* @__PURE__ */ i(
|
|
227
|
+
return /* @__PURE__ */ i(x, { ...e, ...d, ref: t });
|
|
228
228
|
}
|
|
229
229
|
);
|
|
230
230
|
q.displayName = re;
|
|
231
231
|
var te = O, ae = L, ie = q;
|
|
232
|
-
function
|
|
232
|
+
function ge({
|
|
233
233
|
className: r,
|
|
234
234
|
...t
|
|
235
235
|
}) {
|
|
@@ -242,7 +242,7 @@ function ye({
|
|
|
242
242
|
}
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function ye({
|
|
246
246
|
className: r,
|
|
247
247
|
...t
|
|
248
248
|
}) {
|
|
@@ -267,6 +267,6 @@ function Ce({
|
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
269
|
export {
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
ge as RadioGroup,
|
|
271
|
+
ye as RadioGroupItem
|
|
272
272
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { GripVerticalIcon as i } from "lucide-react";
|
|
3
|
-
import { P as n, a as o, b as s } from "../../../react-resizable-panels.browser-
|
|
3
|
+
import { P as n, a as o, b as s } from "../../../react-resizable-panels.browser-31wAXhAV.js";
|
|
4
4
|
import { c as t } from "../../../utils-Db4QWi-E.js";
|
|
5
5
|
function u({
|
|
6
6
|
className: e,
|