@purpurds/radio-card-group 5.25.0 → 5.25.1-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.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as y, jsxs as
|
|
1
|
+
import { jsx as y, jsxs as O, Fragment as Ge } from "react/jsx-runtime";
|
|
2
2
|
import * as fe from "react";
|
|
3
|
-
import
|
|
3
|
+
import x, { useCallback as T, useMemo as L, createElement as b, createContext as oe, useContext as _e, forwardRef as N, Children as P, isValidElement as q, Fragment as Le, cloneElement as X, useEffect as k, useLayoutEffect as qe, useRef as R, useState as F, useReducer as Ue } from "react";
|
|
4
4
|
import { flushSync as je } from "react-dom";
|
|
5
|
-
function
|
|
5
|
+
function ze(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
8
|
var me = { exports: {} };
|
|
@@ -13,15 +13,15 @@ var me = { exports: {} };
|
|
|
13
13
|
*/
|
|
14
14
|
(function(e) {
|
|
15
15
|
(function() {
|
|
16
|
-
var
|
|
16
|
+
var n = {}.hasOwnProperty;
|
|
17
17
|
function t() {
|
|
18
18
|
for (var r = "", a = 0; a < arguments.length; a++) {
|
|
19
|
-
var
|
|
20
|
-
|
|
19
|
+
var i = arguments[a];
|
|
20
|
+
i && (r = c(r, o(i)));
|
|
21
21
|
}
|
|
22
22
|
return r;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function o(r) {
|
|
25
25
|
if (typeof r == "string" || typeof r == "number")
|
|
26
26
|
return r;
|
|
27
27
|
if (typeof r != "object")
|
|
@@ -31,18 +31,18 @@ var me = { exports: {} };
|
|
|
31
31
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
32
32
|
return r.toString();
|
|
33
33
|
var a = "";
|
|
34
|
-
for (var
|
|
35
|
-
|
|
34
|
+
for (var i in r)
|
|
35
|
+
n.call(r, i) && r[i] && (a = c(a, i));
|
|
36
36
|
return a;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function c(r, a) {
|
|
39
39
|
return a ? r ? r + " " + a : r + a : r;
|
|
40
40
|
}
|
|
41
41
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
42
42
|
})();
|
|
43
43
|
})(me);
|
|
44
|
-
var
|
|
45
|
-
const Ve = /* @__PURE__ */ Be
|
|
44
|
+
var Be = me.exports;
|
|
45
|
+
const Ve = /* @__PURE__ */ ze(Be), z = {
|
|
46
46
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
47
47
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
48
48
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -58,72 +58,65 @@ const Ve = /* @__PURE__ */ Be(ze), B = {
|
|
|
58
58
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
59
59
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
60
60
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
61
|
-
},
|
|
62
|
-
TITLE100: "title-100"
|
|
63
|
-
|
|
64
|
-
TITLE300: "title-300",
|
|
65
|
-
TITLE400: "title-400",
|
|
66
|
-
TITLE500: "title-500",
|
|
67
|
-
TITLE600: "title-600",
|
|
68
|
-
TITLE700: "title-700",
|
|
69
|
-
SUBSECTION100: "subsection-100"
|
|
70
|
-
}, z = "purpur-heading", be = ({
|
|
61
|
+
}, Ke = {
|
|
62
|
+
TITLE100: "title-100"
|
|
63
|
+
}, B = "purpur-heading", be = ({
|
|
71
64
|
["data-testid"]: e,
|
|
72
|
-
children:
|
|
65
|
+
children: n,
|
|
73
66
|
className: t = "",
|
|
74
|
-
enableHyphenation:
|
|
75
|
-
negative:
|
|
67
|
+
enableHyphenation: o = !1,
|
|
68
|
+
negative: c = !1,
|
|
76
69
|
tag: r,
|
|
77
|
-
variant: a =
|
|
78
|
-
...
|
|
70
|
+
variant: a = Ke.TITLE100,
|
|
71
|
+
...i
|
|
79
72
|
}) => {
|
|
80
73
|
const s = r, u = Ve([
|
|
81
74
|
t,
|
|
82
|
-
B
|
|
83
|
-
|
|
75
|
+
z[B],
|
|
76
|
+
z[`${B}--${a}`],
|
|
84
77
|
{
|
|
85
|
-
[
|
|
86
|
-
[
|
|
78
|
+
[z[`${B}--hyphens`]]: o,
|
|
79
|
+
[z[`${B}--negative`]]: c
|
|
87
80
|
}
|
|
88
81
|
]);
|
|
89
|
-
return /* @__PURE__ */ y(s, { ...
|
|
82
|
+
return /* @__PURE__ */ y(s, { ...i, className: u, "data-testid": e, children: n });
|
|
90
83
|
};
|
|
91
84
|
be.displayName = "Heading";
|
|
92
85
|
function v() {
|
|
93
86
|
return v = Object.assign ? Object.assign.bind() : function(e) {
|
|
94
|
-
for (var
|
|
95
|
-
var t = arguments[
|
|
96
|
-
for (var
|
|
87
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
88
|
+
var t = arguments[n];
|
|
89
|
+
for (var o in t) ({}).hasOwnProperty.call(t, o) && (e[o] = t[o]);
|
|
97
90
|
}
|
|
98
91
|
return e;
|
|
99
92
|
}, v.apply(null, arguments);
|
|
100
93
|
}
|
|
101
|
-
function
|
|
102
|
-
return function(
|
|
103
|
-
if (e == null || e(
|
|
94
|
+
function A(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
95
|
+
return function(c) {
|
|
96
|
+
if (e == null || e(c), t === !1 || !c.defaultPrevented) return n == null ? void 0 : n(c);
|
|
104
97
|
};
|
|
105
98
|
}
|
|
106
|
-
function
|
|
107
|
-
typeof e == "function" ? e(
|
|
99
|
+
function He(e, n) {
|
|
100
|
+
typeof e == "function" ? e(n) : e != null && (e.current = n);
|
|
108
101
|
}
|
|
109
102
|
function $e(...e) {
|
|
110
|
-
return (
|
|
111
|
-
(t) =>
|
|
103
|
+
return (n) => e.forEach(
|
|
104
|
+
(t) => He(t, n)
|
|
112
105
|
);
|
|
113
106
|
}
|
|
114
|
-
function
|
|
115
|
-
return
|
|
107
|
+
function M(...e) {
|
|
108
|
+
return T($e(...e), e);
|
|
116
109
|
}
|
|
117
|
-
function Z(e,
|
|
110
|
+
function Z(e, n = []) {
|
|
118
111
|
let t = [];
|
|
119
|
-
function
|
|
120
|
-
const
|
|
112
|
+
function o(r, a) {
|
|
113
|
+
const i = /* @__PURE__ */ oe(a), s = t.length;
|
|
121
114
|
t = [
|
|
122
115
|
...t,
|
|
123
116
|
a
|
|
124
117
|
];
|
|
125
118
|
function u(p) {
|
|
126
|
-
const { scope: f, children: l, ...d } = p, m = (f == null ? void 0 : f[e][s]) ||
|
|
119
|
+
const { scope: f, children: l, ...d } = p, m = (f == null ? void 0 : f[e][s]) || i, g = L(
|
|
127
120
|
() => d,
|
|
128
121
|
Object.values(d)
|
|
129
122
|
);
|
|
@@ -132,7 +125,7 @@ function Z(e, o = []) {
|
|
|
132
125
|
}, l);
|
|
133
126
|
}
|
|
134
127
|
function _(p, f) {
|
|
135
|
-
const l = (f == null ? void 0 : f[e][s]) ||
|
|
128
|
+
const l = (f == null ? void 0 : f[e][s]) || i, d = _e(l);
|
|
136
129
|
if (d) return d;
|
|
137
130
|
if (a !== void 0) return a;
|
|
138
131
|
throw new Error(`\`${p}\` must be used within \`${r}\``);
|
|
@@ -142,50 +135,50 @@ function Z(e, o = []) {
|
|
|
142
135
|
_
|
|
143
136
|
];
|
|
144
137
|
}
|
|
145
|
-
const
|
|
146
|
-
const r = t.map((a) => /* @__PURE__ */
|
|
147
|
-
return function(
|
|
148
|
-
const s = (
|
|
149
|
-
return
|
|
138
|
+
const c = () => {
|
|
139
|
+
const r = t.map((a) => /* @__PURE__ */ oe(a));
|
|
140
|
+
return function(i) {
|
|
141
|
+
const s = (i == null ? void 0 : i[e]) || r;
|
|
142
|
+
return L(
|
|
150
143
|
() => ({
|
|
151
144
|
[`__scope${e}`]: {
|
|
152
|
-
...
|
|
145
|
+
...i,
|
|
153
146
|
[e]: s
|
|
154
147
|
}
|
|
155
148
|
}),
|
|
156
149
|
[
|
|
157
|
-
|
|
150
|
+
i,
|
|
158
151
|
s
|
|
159
152
|
]
|
|
160
153
|
);
|
|
161
154
|
};
|
|
162
155
|
};
|
|
163
|
-
return
|
|
164
|
-
|
|
165
|
-
Ye(
|
|
156
|
+
return c.scopeName = e, [
|
|
157
|
+
o,
|
|
158
|
+
Ye(c, ...n)
|
|
166
159
|
];
|
|
167
160
|
}
|
|
168
161
|
function Ye(...e) {
|
|
169
|
-
const
|
|
170
|
-
if (e.length === 1) return
|
|
162
|
+
const n = e[0];
|
|
163
|
+
if (e.length === 1) return n;
|
|
171
164
|
const t = () => {
|
|
172
|
-
const
|
|
173
|
-
(
|
|
174
|
-
useScope:
|
|
175
|
-
scopeName:
|
|
165
|
+
const o = e.map(
|
|
166
|
+
(c) => ({
|
|
167
|
+
useScope: c(),
|
|
168
|
+
scopeName: c.scopeName
|
|
176
169
|
})
|
|
177
170
|
);
|
|
178
171
|
return function(r) {
|
|
179
|
-
const a =
|
|
172
|
+
const a = o.reduce((i, { useScope: s, scopeName: u }) => {
|
|
180
173
|
const p = s(r)[`__scope${u}`];
|
|
181
174
|
return {
|
|
182
|
-
...
|
|
175
|
+
...i,
|
|
183
176
|
...p
|
|
184
177
|
};
|
|
185
178
|
}, {});
|
|
186
|
-
return
|
|
179
|
+
return L(
|
|
187
180
|
() => ({
|
|
188
|
-
[`__scope${
|
|
181
|
+
[`__scope${n.scopeName}`]: a
|
|
189
182
|
}),
|
|
190
183
|
[
|
|
191
184
|
a
|
|
@@ -193,46 +186,46 @@ function Ye(...e) {
|
|
|
193
186
|
);
|
|
194
187
|
};
|
|
195
188
|
};
|
|
196
|
-
return t.scopeName =
|
|
189
|
+
return t.scopeName = n.scopeName, t;
|
|
197
190
|
}
|
|
198
|
-
const Y = /* @__PURE__ */
|
|
199
|
-
const { children: t, ...
|
|
191
|
+
const Y = /* @__PURE__ */ N((e, n) => {
|
|
192
|
+
const { children: t, ...o } = e, c = P.toArray(t), r = c.find(Xe);
|
|
200
193
|
if (r) {
|
|
201
|
-
const a = r.props.children,
|
|
202
|
-
return /* @__PURE__ */ b(ae, v({},
|
|
203
|
-
ref:
|
|
204
|
-
}), /* @__PURE__ */
|
|
194
|
+
const a = r.props.children, i = c.map((s) => s === r ? P.count(a) > 1 ? P.only(null) : /* @__PURE__ */ q(a) ? a.props.children : null : s);
|
|
195
|
+
return /* @__PURE__ */ b(ae, v({}, o, {
|
|
196
|
+
ref: n
|
|
197
|
+
}), /* @__PURE__ */ q(a) ? /* @__PURE__ */ X(a, void 0, i) : null);
|
|
205
198
|
}
|
|
206
|
-
return /* @__PURE__ */ b(ae, v({},
|
|
207
|
-
ref:
|
|
199
|
+
return /* @__PURE__ */ b(ae, v({}, o, {
|
|
200
|
+
ref: n
|
|
208
201
|
}), t);
|
|
209
202
|
});
|
|
210
203
|
Y.displayName = "Slot";
|
|
211
|
-
const ae = /* @__PURE__ */
|
|
212
|
-
const { children: t, ...
|
|
213
|
-
return /* @__PURE__ */
|
|
214
|
-
...Ze(
|
|
215
|
-
ref:
|
|
204
|
+
const ae = /* @__PURE__ */ N((e, n) => {
|
|
205
|
+
const { children: t, ...o } = e;
|
|
206
|
+
return /* @__PURE__ */ q(t) ? /* @__PURE__ */ X(t, {
|
|
207
|
+
...Ze(o, t.props),
|
|
208
|
+
ref: n ? $e(n, t.ref) : t.ref
|
|
216
209
|
}) : P.count(t) > 1 ? P.only(null) : null;
|
|
217
210
|
});
|
|
218
211
|
ae.displayName = "SlotClone";
|
|
219
|
-
const We = ({ children: e }) => /* @__PURE__ */ b(
|
|
212
|
+
const We = ({ children: e }) => /* @__PURE__ */ b(Le, null, e);
|
|
220
213
|
function Xe(e) {
|
|
221
|
-
return /* @__PURE__ */
|
|
214
|
+
return /* @__PURE__ */ q(e) && e.type === We;
|
|
222
215
|
}
|
|
223
|
-
function Ze(e,
|
|
216
|
+
function Ze(e, n) {
|
|
224
217
|
const t = {
|
|
225
|
-
...
|
|
218
|
+
...n
|
|
226
219
|
};
|
|
227
|
-
for (const
|
|
228
|
-
const
|
|
229
|
-
/^on[A-Z]/.test(
|
|
230
|
-
r(...
|
|
231
|
-
} :
|
|
232
|
-
...
|
|
220
|
+
for (const o in n) {
|
|
221
|
+
const c = e[o], r = n[o];
|
|
222
|
+
/^on[A-Z]/.test(o) ? c && r ? t[o] = (...i) => {
|
|
223
|
+
r(...i), c(...i);
|
|
224
|
+
} : c && (t[o] = c) : o === "style" ? t[o] = {
|
|
225
|
+
...c,
|
|
233
226
|
...r
|
|
234
|
-
} :
|
|
235
|
-
|
|
227
|
+
} : o === "className" && (t[o] = [
|
|
228
|
+
c,
|
|
236
229
|
r
|
|
237
230
|
].filter(Boolean).join(" "));
|
|
238
231
|
}
|
|
@@ -258,51 +251,51 @@ const Je = [
|
|
|
258
251
|
"span",
|
|
259
252
|
"svg",
|
|
260
253
|
"ul"
|
|
261
|
-
],
|
|
262
|
-
const t = /* @__PURE__ */
|
|
263
|
-
const { asChild: r, ...a } =
|
|
264
|
-
return
|
|
254
|
+
], U = Je.reduce((e, n) => {
|
|
255
|
+
const t = /* @__PURE__ */ N((o, c) => {
|
|
256
|
+
const { asChild: r, ...a } = o, i = r ? Y : n;
|
|
257
|
+
return k(() => {
|
|
265
258
|
window[Symbol.for("radix-ui")] = !0;
|
|
266
|
-
}, []), /* @__PURE__ */ b(
|
|
267
|
-
ref:
|
|
259
|
+
}, []), /* @__PURE__ */ b(i, v({}, a, {
|
|
260
|
+
ref: c
|
|
268
261
|
}));
|
|
269
262
|
});
|
|
270
|
-
return t.displayName = `Primitive.${
|
|
263
|
+
return t.displayName = `Primitive.${n}`, {
|
|
271
264
|
...e,
|
|
272
|
-
[
|
|
265
|
+
[n]: t
|
|
273
266
|
};
|
|
274
267
|
}, {});
|
|
275
268
|
function Qe(e) {
|
|
276
|
-
const
|
|
269
|
+
const n = e + "CollectionProvider", [t, o] = Z(n), [c, r] = t(n, {
|
|
277
270
|
collectionRef: {
|
|
278
271
|
current: null
|
|
279
272
|
},
|
|
280
273
|
itemMap: /* @__PURE__ */ new Map()
|
|
281
274
|
}), a = (l) => {
|
|
282
|
-
const { scope: d, children: m } = l, g =
|
|
283
|
-
return /* @__PURE__ */
|
|
275
|
+
const { scope: d, children: m } = l, g = x.useRef(null), $ = x.useRef(/* @__PURE__ */ new Map()).current;
|
|
276
|
+
return /* @__PURE__ */ x.createElement(c, {
|
|
284
277
|
scope: d,
|
|
285
278
|
itemMap: $,
|
|
286
279
|
collectionRef: g
|
|
287
280
|
}, m);
|
|
288
|
-
},
|
|
289
|
-
const { scope: m, children: g } = l, $ = r(
|
|
290
|
-
return /* @__PURE__ */
|
|
281
|
+
}, i = e + "CollectionSlot", s = /* @__PURE__ */ x.forwardRef((l, d) => {
|
|
282
|
+
const { scope: m, children: g } = l, $ = r(i, m), h = M(d, $.collectionRef);
|
|
283
|
+
return /* @__PURE__ */ x.createElement(Y, {
|
|
291
284
|
ref: h
|
|
292
285
|
}, g);
|
|
293
|
-
}), u = e + "CollectionItemSlot", _ = "data-radix-collection-item", p = /* @__PURE__ */
|
|
294
|
-
const { scope: m, children: g, ...$ } = l, h =
|
|
295
|
-
return
|
|
286
|
+
}), u = e + "CollectionItemSlot", _ = "data-radix-collection-item", p = /* @__PURE__ */ x.forwardRef((l, d) => {
|
|
287
|
+
const { scope: m, children: g, ...$ } = l, h = x.useRef(null), j = M(d, h), E = r(u, m);
|
|
288
|
+
return x.useEffect(() => (E.itemMap.set(h, {
|
|
296
289
|
ref: h,
|
|
297
290
|
...$
|
|
298
|
-
}), () => void E.itemMap.delete(h))), /* @__PURE__ */
|
|
291
|
+
}), () => void E.itemMap.delete(h))), /* @__PURE__ */ x.createElement(Y, {
|
|
299
292
|
[_]: "",
|
|
300
293
|
ref: j
|
|
301
294
|
}, g);
|
|
302
295
|
});
|
|
303
296
|
function f(l) {
|
|
304
297
|
const d = r(e + "CollectionConsumer", l);
|
|
305
|
-
return
|
|
298
|
+
return x.useCallback(() => {
|
|
306
299
|
const g = d.collectionRef.current;
|
|
307
300
|
if (!g) return [];
|
|
308
301
|
const $ = Array.from(g.querySelectorAll(`[${_}]`));
|
|
@@ -321,189 +314,189 @@ function Qe(e) {
|
|
|
321
314
|
ItemSlot: p
|
|
322
315
|
},
|
|
323
316
|
f,
|
|
324
|
-
|
|
317
|
+
o
|
|
325
318
|
];
|
|
326
319
|
}
|
|
327
|
-
const W = globalThis != null && globalThis.document ?
|
|
320
|
+
const W = globalThis != null && globalThis.document ? qe : () => {
|
|
328
321
|
}, er = fe.useId || (() => {
|
|
329
322
|
});
|
|
330
323
|
let rr = 0;
|
|
331
324
|
function tr(e) {
|
|
332
|
-
const [
|
|
325
|
+
const [n, t] = fe.useState(er());
|
|
333
326
|
return W(() => {
|
|
334
327
|
t(
|
|
335
|
-
(
|
|
328
|
+
(o) => o ?? String(rr++)
|
|
336
329
|
);
|
|
337
330
|
}, [
|
|
338
331
|
e
|
|
339
|
-
]),
|
|
332
|
+
]), n ? `radix-${n}` : "";
|
|
340
333
|
}
|
|
341
334
|
function ue(e) {
|
|
342
|
-
const
|
|
343
|
-
return
|
|
344
|
-
|
|
345
|
-
}),
|
|
335
|
+
const n = R(e);
|
|
336
|
+
return k(() => {
|
|
337
|
+
n.current = e;
|
|
338
|
+
}), L(
|
|
346
339
|
() => (...t) => {
|
|
347
|
-
var
|
|
348
|
-
return (
|
|
340
|
+
var o;
|
|
341
|
+
return (o = n.current) === null || o === void 0 ? void 0 : o.call(n, ...t);
|
|
349
342
|
},
|
|
350
343
|
[]
|
|
351
344
|
);
|
|
352
345
|
}
|
|
353
|
-
function he({ prop: e, defaultProp:
|
|
346
|
+
function he({ prop: e, defaultProp: n, onChange: t = () => {
|
|
354
347
|
} }) {
|
|
355
|
-
const [
|
|
356
|
-
defaultProp:
|
|
348
|
+
const [o, c] = nr({
|
|
349
|
+
defaultProp: n,
|
|
357
350
|
onChange: t
|
|
358
|
-
}), r = e !== void 0, a = r ? e :
|
|
351
|
+
}), r = e !== void 0, a = r ? e : o, i = ue(t), s = T((u) => {
|
|
359
352
|
if (r) {
|
|
360
353
|
const p = typeof u == "function" ? u(e) : u;
|
|
361
|
-
p !== e &&
|
|
362
|
-
} else
|
|
354
|
+
p !== e && i(p);
|
|
355
|
+
} else c(u);
|
|
363
356
|
}, [
|
|
364
357
|
r,
|
|
365
358
|
e,
|
|
366
|
-
|
|
367
|
-
|
|
359
|
+
c,
|
|
360
|
+
i
|
|
368
361
|
]);
|
|
369
362
|
return [
|
|
370
363
|
a,
|
|
371
364
|
s
|
|
372
365
|
];
|
|
373
366
|
}
|
|
374
|
-
function
|
|
375
|
-
const t =
|
|
376
|
-
return
|
|
377
|
-
|
|
367
|
+
function nr({ defaultProp: e, onChange: n }) {
|
|
368
|
+
const t = F(e), [o] = t, c = R(o), r = ue(n);
|
|
369
|
+
return k(() => {
|
|
370
|
+
c.current !== o && (r(o), c.current = o);
|
|
378
371
|
}, [
|
|
379
|
-
|
|
380
|
-
|
|
372
|
+
o,
|
|
373
|
+
c,
|
|
381
374
|
r
|
|
382
375
|
]), t;
|
|
383
376
|
}
|
|
384
|
-
const
|
|
377
|
+
const or = /* @__PURE__ */ oe(void 0);
|
|
385
378
|
function ge(e) {
|
|
386
|
-
const
|
|
387
|
-
return e ||
|
|
379
|
+
const n = _e(or);
|
|
380
|
+
return e || n || "ltr";
|
|
388
381
|
}
|
|
389
382
|
const ee = "rovingFocusGroup.onEntryFocus", ar = {
|
|
390
383
|
bubbles: !1,
|
|
391
384
|
cancelable: !0
|
|
392
|
-
}, se = "RovingFocusGroup", [
|
|
393
|
-
|
|
394
|
-
]), [ur, sr] =
|
|
385
|
+
}, se = "RovingFocusGroup", [ce, ve, cr] = Qe(se), [ir, ye] = Z(se, [
|
|
386
|
+
cr
|
|
387
|
+
]), [ur, sr] = ir(se), dr = /* @__PURE__ */ N((e, n) => /* @__PURE__ */ b(ce.Provider, {
|
|
395
388
|
scope: e.__scopeRovingFocusGroup
|
|
396
|
-
}, /* @__PURE__ */ b(
|
|
389
|
+
}, /* @__PURE__ */ b(ce.Slot, {
|
|
397
390
|
scope: e.__scopeRovingFocusGroup
|
|
398
391
|
}, /* @__PURE__ */ b(pr, v({}, e, {
|
|
399
|
-
ref:
|
|
400
|
-
}))))), pr = /* @__PURE__ */
|
|
401
|
-
const { __scopeRovingFocusGroup: t, orientation:
|
|
392
|
+
ref: n
|
|
393
|
+
}))))), pr = /* @__PURE__ */ N((e, n) => {
|
|
394
|
+
const { __scopeRovingFocusGroup: t, orientation: o, loop: c = !1, dir: r, currentTabStopId: a, defaultCurrentTabStopId: i, onCurrentTabStopIdChange: s, onEntryFocus: u, ..._ } = e, p = R(null), f = M(n, p), l = ge(r), [d = null, m] = he({
|
|
402
395
|
prop: a,
|
|
403
|
-
defaultProp:
|
|
396
|
+
defaultProp: i,
|
|
404
397
|
onChange: s
|
|
405
|
-
}), [g, $] =
|
|
406
|
-
return
|
|
407
|
-
const
|
|
408
|
-
if (
|
|
409
|
-
return
|
|
398
|
+
}), [g, $] = F(!1), h = ue(u), j = ve(t), E = R(!1), [J, pe] = F(0);
|
|
399
|
+
return k(() => {
|
|
400
|
+
const C = p.current;
|
|
401
|
+
if (C)
|
|
402
|
+
return C.addEventListener(ee, h), () => C.removeEventListener(ee, h);
|
|
410
403
|
}, [
|
|
411
404
|
h
|
|
412
405
|
]), /* @__PURE__ */ b(ur, {
|
|
413
406
|
scope: t,
|
|
414
|
-
orientation:
|
|
407
|
+
orientation: o,
|
|
415
408
|
dir: l,
|
|
416
|
-
loop:
|
|
409
|
+
loop: c,
|
|
417
410
|
currentTabStopId: d,
|
|
418
|
-
onItemFocus:
|
|
419
|
-
(
|
|
411
|
+
onItemFocus: T(
|
|
412
|
+
(C) => m(C),
|
|
420
413
|
[
|
|
421
414
|
m
|
|
422
415
|
]
|
|
423
416
|
),
|
|
424
|
-
onItemShiftTab:
|
|
417
|
+
onItemShiftTab: T(
|
|
425
418
|
() => $(!0),
|
|
426
419
|
[]
|
|
427
420
|
),
|
|
428
|
-
onFocusableItemAdd:
|
|
421
|
+
onFocusableItemAdd: T(
|
|
429
422
|
() => pe(
|
|
430
|
-
(
|
|
423
|
+
(C) => C + 1
|
|
431
424
|
),
|
|
432
425
|
[]
|
|
433
426
|
),
|
|
434
|
-
onFocusableItemRemove:
|
|
427
|
+
onFocusableItemRemove: T(
|
|
435
428
|
() => pe(
|
|
436
|
-
(
|
|
429
|
+
(C) => C - 1
|
|
437
430
|
),
|
|
438
431
|
[]
|
|
439
432
|
)
|
|
440
|
-
}, /* @__PURE__ */ b(
|
|
433
|
+
}, /* @__PURE__ */ b(U.div, v({
|
|
441
434
|
tabIndex: g || J === 0 ? -1 : 0,
|
|
442
|
-
"data-orientation":
|
|
435
|
+
"data-orientation": o
|
|
443
436
|
}, _, {
|
|
444
437
|
ref: f,
|
|
445
438
|
style: {
|
|
446
439
|
outline: "none",
|
|
447
440
|
...e.style
|
|
448
441
|
},
|
|
449
|
-
onMouseDown:
|
|
442
|
+
onMouseDown: A(e.onMouseDown, () => {
|
|
450
443
|
E.current = !0;
|
|
451
444
|
}),
|
|
452
|
-
onFocus:
|
|
453
|
-
const
|
|
454
|
-
if (
|
|
445
|
+
onFocus: A(e.onFocus, (C) => {
|
|
446
|
+
const Te = !E.current;
|
|
447
|
+
if (C.target === C.currentTarget && Te && !g) {
|
|
455
448
|
const le = new CustomEvent(ee, ar);
|
|
456
|
-
if (
|
|
449
|
+
if (C.currentTarget.dispatchEvent(le), !le.defaultPrevented) {
|
|
457
450
|
const Q = j().filter(
|
|
458
|
-
(
|
|
459
|
-
), Me = Q.find(
|
|
460
|
-
(O) => O.active
|
|
451
|
+
(w) => w.focusable
|
|
461
452
|
), Fe = Q.find(
|
|
462
|
-
(
|
|
453
|
+
(w) => w.active
|
|
454
|
+
), Me = Q.find(
|
|
455
|
+
(w) => w.id === d
|
|
463
456
|
), De = [
|
|
464
|
-
Me,
|
|
465
457
|
Fe,
|
|
458
|
+
Me,
|
|
466
459
|
...Q
|
|
467
460
|
].filter(Boolean).map(
|
|
468
|
-
(
|
|
461
|
+
(w) => w.ref.current
|
|
469
462
|
);
|
|
470
|
-
|
|
463
|
+
Ce(De);
|
|
471
464
|
}
|
|
472
465
|
}
|
|
473
466
|
E.current = !1;
|
|
474
467
|
}),
|
|
475
|
-
onBlur:
|
|
468
|
+
onBlur: A(
|
|
476
469
|
e.onBlur,
|
|
477
470
|
() => $(!1)
|
|
478
471
|
)
|
|
479
472
|
})));
|
|
480
|
-
}), lr = "RovingFocusGroupItem", fr = /* @__PURE__ */
|
|
481
|
-
const { __scopeRovingFocusGroup: t, focusable:
|
|
482
|
-
return
|
|
483
|
-
if (
|
|
473
|
+
}), lr = "RovingFocusGroupItem", fr = /* @__PURE__ */ N((e, n) => {
|
|
474
|
+
const { __scopeRovingFocusGroup: t, focusable: o = !0, active: c = !1, tabStopId: r, ...a } = e, i = tr(), s = r || i, u = sr(lr, t), _ = u.currentTabStopId === s, p = ve(t), { onFocusableItemAdd: f, onFocusableItemRemove: l } = u;
|
|
475
|
+
return k(() => {
|
|
476
|
+
if (o)
|
|
484
477
|
return f(), () => l();
|
|
485
478
|
}, [
|
|
486
|
-
|
|
479
|
+
o,
|
|
487
480
|
f,
|
|
488
481
|
l
|
|
489
|
-
]), /* @__PURE__ */ b(
|
|
482
|
+
]), /* @__PURE__ */ b(ce.ItemSlot, {
|
|
490
483
|
scope: t,
|
|
491
484
|
id: s,
|
|
492
|
-
focusable:
|
|
493
|
-
active:
|
|
494
|
-
}, /* @__PURE__ */ b(
|
|
485
|
+
focusable: o,
|
|
486
|
+
active: c
|
|
487
|
+
}, /* @__PURE__ */ b(U.span, v({
|
|
495
488
|
tabIndex: _ ? 0 : -1,
|
|
496
489
|
"data-orientation": u.orientation
|
|
497
490
|
}, a, {
|
|
498
|
-
ref:
|
|
499
|
-
onMouseDown:
|
|
500
|
-
|
|
491
|
+
ref: n,
|
|
492
|
+
onMouseDown: A(e.onMouseDown, (d) => {
|
|
493
|
+
o ? u.onItemFocus(s) : d.preventDefault();
|
|
501
494
|
}),
|
|
502
|
-
onFocus:
|
|
495
|
+
onFocus: A(
|
|
503
496
|
e.onFocus,
|
|
504
497
|
() => u.onItemFocus(s)
|
|
505
498
|
),
|
|
506
|
-
onKeyDown:
|
|
499
|
+
onKeyDown: A(e.onKeyDown, (d) => {
|
|
507
500
|
if (d.key === "Tab" && d.shiftKey) {
|
|
508
501
|
u.onItemShiftTab();
|
|
509
502
|
return;
|
|
@@ -524,7 +517,7 @@ const ee = "rovingFocusGroup.onEntryFocus", ar = {
|
|
|
524
517
|
$ = u.loop ? $r($, h + 1) : $.slice(h + 1);
|
|
525
518
|
}
|
|
526
519
|
setTimeout(
|
|
527
|
-
() =>
|
|
520
|
+
() => Ce($)
|
|
528
521
|
);
|
|
529
522
|
}
|
|
530
523
|
})
|
|
@@ -539,88 +532,88 @@ const ee = "rovingFocusGroup.onEntryFocus", ar = {
|
|
|
539
532
|
PageDown: "last",
|
|
540
533
|
End: "last"
|
|
541
534
|
};
|
|
542
|
-
function mr(e,
|
|
543
|
-
return
|
|
535
|
+
function mr(e, n) {
|
|
536
|
+
return n !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
544
537
|
}
|
|
545
|
-
function br(e,
|
|
546
|
-
const
|
|
547
|
-
if (!(
|
|
538
|
+
function br(e, n, t) {
|
|
539
|
+
const o = mr(e.key, t);
|
|
540
|
+
if (!(n === "vertical" && [
|
|
548
541
|
"ArrowLeft",
|
|
549
542
|
"ArrowRight"
|
|
550
|
-
].includes(
|
|
543
|
+
].includes(o)) && !(n === "horizontal" && [
|
|
551
544
|
"ArrowUp",
|
|
552
545
|
"ArrowDown"
|
|
553
|
-
].includes(
|
|
554
|
-
return _r[
|
|
546
|
+
].includes(o)))
|
|
547
|
+
return _r[o];
|
|
555
548
|
}
|
|
556
|
-
function
|
|
557
|
-
const
|
|
549
|
+
function Ce(e) {
|
|
550
|
+
const n = document.activeElement;
|
|
558
551
|
for (const t of e)
|
|
559
|
-
if (t ===
|
|
552
|
+
if (t === n || (t.focus(), document.activeElement !== n)) return;
|
|
560
553
|
}
|
|
561
|
-
function $r(e,
|
|
554
|
+
function $r(e, n) {
|
|
562
555
|
return e.map(
|
|
563
|
-
(t,
|
|
556
|
+
(t, o) => e[(n + o) % e.length]
|
|
564
557
|
);
|
|
565
558
|
}
|
|
566
559
|
const hr = dr, gr = fr;
|
|
567
560
|
function vr(e) {
|
|
568
|
-
const [
|
|
561
|
+
const [n, t] = F(void 0);
|
|
569
562
|
return W(() => {
|
|
570
563
|
if (e) {
|
|
571
564
|
t({
|
|
572
565
|
width: e.offsetWidth,
|
|
573
566
|
height: e.offsetHeight
|
|
574
567
|
});
|
|
575
|
-
const
|
|
576
|
-
if (!Array.isArray(
|
|
577
|
-
const r =
|
|
578
|
-
let a,
|
|
568
|
+
const o = new ResizeObserver((c) => {
|
|
569
|
+
if (!Array.isArray(c) || !c.length) return;
|
|
570
|
+
const r = c[0];
|
|
571
|
+
let a, i;
|
|
579
572
|
if ("borderBoxSize" in r) {
|
|
580
573
|
const s = r.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
|
|
581
|
-
a = u.inlineSize,
|
|
574
|
+
a = u.inlineSize, i = u.blockSize;
|
|
582
575
|
} else
|
|
583
|
-
a = e.offsetWidth,
|
|
576
|
+
a = e.offsetWidth, i = e.offsetHeight;
|
|
584
577
|
t({
|
|
585
578
|
width: a,
|
|
586
|
-
height:
|
|
579
|
+
height: i
|
|
587
580
|
});
|
|
588
581
|
});
|
|
589
|
-
return
|
|
582
|
+
return o.observe(e, {
|
|
590
583
|
box: "border-box"
|
|
591
|
-
}), () =>
|
|
584
|
+
}), () => o.unobserve(e);
|
|
592
585
|
} else
|
|
593
586
|
t(void 0);
|
|
594
587
|
}, [
|
|
595
588
|
e
|
|
596
|
-
]),
|
|
589
|
+
]), n;
|
|
597
590
|
}
|
|
598
591
|
function yr(e) {
|
|
599
|
-
const
|
|
592
|
+
const n = R({
|
|
600
593
|
value: e,
|
|
601
594
|
previous: e
|
|
602
595
|
});
|
|
603
|
-
return
|
|
596
|
+
return L(() => (n.current.value !== e && (n.current.previous = n.current.value, n.current.value = e), n.current.previous), [
|
|
604
597
|
e
|
|
605
598
|
]);
|
|
606
599
|
}
|
|
607
|
-
function
|
|
608
|
-
return
|
|
609
|
-
const
|
|
610
|
-
return
|
|
600
|
+
function Cr(e, n) {
|
|
601
|
+
return Ue((t, o) => {
|
|
602
|
+
const c = n[t][o];
|
|
603
|
+
return c ?? t;
|
|
611
604
|
}, e);
|
|
612
605
|
}
|
|
613
|
-
const
|
|
614
|
-
const { present:
|
|
615
|
-
present:
|
|
616
|
-
}) : P.only(t), r =
|
|
617
|
-
return typeof t == "function" ||
|
|
606
|
+
const Se = (e) => {
|
|
607
|
+
const { present: n, children: t } = e, o = Sr(n), c = typeof t == "function" ? t({
|
|
608
|
+
present: o.isPresent
|
|
609
|
+
}) : P.only(t), r = M(o.ref, c.ref);
|
|
610
|
+
return typeof t == "function" || o.isPresent ? /* @__PURE__ */ X(c, {
|
|
618
611
|
ref: r
|
|
619
612
|
}) : null;
|
|
620
613
|
};
|
|
621
|
-
|
|
622
|
-
function
|
|
623
|
-
const [
|
|
614
|
+
Se.displayName = "Presence";
|
|
615
|
+
function Sr(e) {
|
|
616
|
+
const [n, t] = F(), o = R({}), c = R(e), r = R("none"), a = e ? "mounted" : "unmounted", [i, s] = Cr(a, {
|
|
624
617
|
mounted: {
|
|
625
618
|
UNMOUNT: "unmounted",
|
|
626
619
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -633,119 +626,119 @@ function Cr(e) {
|
|
|
633
626
|
MOUNT: "mounted"
|
|
634
627
|
}
|
|
635
628
|
});
|
|
636
|
-
return
|
|
637
|
-
const u = V(
|
|
638
|
-
r.current =
|
|
629
|
+
return k(() => {
|
|
630
|
+
const u = V(o.current);
|
|
631
|
+
r.current = i === "mounted" ? u : "none";
|
|
639
632
|
}, [
|
|
640
|
-
|
|
633
|
+
i
|
|
641
634
|
]), W(() => {
|
|
642
|
-
const u =
|
|
635
|
+
const u = o.current, _ = c.current;
|
|
643
636
|
if (_ !== e) {
|
|
644
637
|
const f = r.current, l = V(u);
|
|
645
|
-
e ? s("MOUNT") : l === "none" || (u == null ? void 0 : u.display) === "none" ? s("UNMOUNT") : s(_ && f !== l ? "ANIMATION_OUT" : "UNMOUNT"),
|
|
638
|
+
e ? s("MOUNT") : l === "none" || (u == null ? void 0 : u.display) === "none" ? s("UNMOUNT") : s(_ && f !== l ? "ANIMATION_OUT" : "UNMOUNT"), c.current = e;
|
|
646
639
|
}
|
|
647
640
|
}, [
|
|
648
641
|
e,
|
|
649
642
|
s
|
|
650
643
|
]), W(() => {
|
|
651
|
-
if (
|
|
644
|
+
if (n) {
|
|
652
645
|
const u = (p) => {
|
|
653
|
-
const l = V(
|
|
654
|
-
p.target ===
|
|
646
|
+
const l = V(o.current).includes(p.animationName);
|
|
647
|
+
p.target === n && l && je(
|
|
655
648
|
() => s("ANIMATION_END")
|
|
656
649
|
);
|
|
657
650
|
}, _ = (p) => {
|
|
658
|
-
p.target ===
|
|
651
|
+
p.target === n && (r.current = V(o.current));
|
|
659
652
|
};
|
|
660
|
-
return
|
|
661
|
-
|
|
653
|
+
return n.addEventListener("animationstart", _), n.addEventListener("animationcancel", u), n.addEventListener("animationend", u), () => {
|
|
654
|
+
n.removeEventListener("animationstart", _), n.removeEventListener("animationcancel", u), n.removeEventListener("animationend", u);
|
|
662
655
|
};
|
|
663
656
|
} else
|
|
664
657
|
s("ANIMATION_END");
|
|
665
658
|
}, [
|
|
666
|
-
|
|
659
|
+
n,
|
|
667
660
|
s
|
|
668
661
|
]), {
|
|
669
662
|
isPresent: [
|
|
670
663
|
"mounted",
|
|
671
664
|
"unmountSuspended"
|
|
672
|
-
].includes(
|
|
673
|
-
ref:
|
|
674
|
-
u && (
|
|
665
|
+
].includes(i),
|
|
666
|
+
ref: T((u) => {
|
|
667
|
+
u && (o.current = getComputedStyle(u)), t(u);
|
|
675
668
|
}, [])
|
|
676
669
|
};
|
|
677
670
|
}
|
|
678
671
|
function V(e) {
|
|
679
672
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
680
673
|
}
|
|
681
|
-
const
|
|
682
|
-
const { __scopeRadio: t, name:
|
|
683
|
-
|
|
674
|
+
const Ne = "Radio", [Nr, Re] = Z(Ne), [Rr, xr] = Nr(Ne), Ir = /* @__PURE__ */ N((e, n) => {
|
|
675
|
+
const { __scopeRadio: t, name: o, checked: c = !1, required: r, disabled: a, value: i = "on", onCheck: s, ...u } = e, [_, p] = F(null), f = M(
|
|
676
|
+
n,
|
|
684
677
|
(m) => p(m)
|
|
685
|
-
), l =
|
|
686
|
-
return /* @__PURE__ */ b(
|
|
678
|
+
), l = R(!1), d = _ ? !!_.closest("form") : !0;
|
|
679
|
+
return /* @__PURE__ */ b(Rr, {
|
|
687
680
|
scope: t,
|
|
688
|
-
checked:
|
|
681
|
+
checked: c,
|
|
689
682
|
disabled: a
|
|
690
|
-
}, /* @__PURE__ */ b(
|
|
683
|
+
}, /* @__PURE__ */ b(U.button, v({
|
|
691
684
|
type: "button",
|
|
692
685
|
role: "radio",
|
|
693
|
-
"aria-checked":
|
|
694
|
-
"data-state":
|
|
686
|
+
"aria-checked": c,
|
|
687
|
+
"data-state": xe(c),
|
|
695
688
|
"data-disabled": a ? "" : void 0,
|
|
696
689
|
disabled: a,
|
|
697
|
-
value:
|
|
690
|
+
value: i
|
|
698
691
|
}, u, {
|
|
699
692
|
ref: f,
|
|
700
|
-
onClick:
|
|
701
|
-
|
|
693
|
+
onClick: A(e.onClick, (m) => {
|
|
694
|
+
c || s == null || s(), d && (l.current = m.isPropagationStopped(), l.current || m.stopPropagation());
|
|
702
695
|
})
|
|
703
696
|
})), d && /* @__PURE__ */ b(Pr, {
|
|
704
697
|
control: _,
|
|
705
698
|
bubbles: !l.current,
|
|
706
|
-
name:
|
|
707
|
-
value:
|
|
708
|
-
checked:
|
|
699
|
+
name: o,
|
|
700
|
+
value: i,
|
|
701
|
+
checked: c,
|
|
709
702
|
required: r,
|
|
710
703
|
disabled: a,
|
|
711
704
|
style: {
|
|
712
705
|
transform: "translateX(-100%)"
|
|
713
706
|
}
|
|
714
707
|
}));
|
|
715
|
-
}),
|
|
716
|
-
const { __scopeRadio: t, forceMount:
|
|
717
|
-
return /* @__PURE__ */ b(
|
|
718
|
-
present:
|
|
719
|
-
}, /* @__PURE__ */ b(
|
|
720
|
-
"data-state":
|
|
708
|
+
}), Ar = "RadioIndicator", Er = /* @__PURE__ */ N((e, n) => {
|
|
709
|
+
const { __scopeRadio: t, forceMount: o, ...c } = e, r = xr(Ar, t);
|
|
710
|
+
return /* @__PURE__ */ b(Se, {
|
|
711
|
+
present: o || r.checked
|
|
712
|
+
}, /* @__PURE__ */ b(U.span, v({
|
|
713
|
+
"data-state": xe(r.checked),
|
|
721
714
|
"data-disabled": r.disabled ? "" : void 0
|
|
722
|
-
},
|
|
723
|
-
ref:
|
|
715
|
+
}, c, {
|
|
716
|
+
ref: n
|
|
724
717
|
})));
|
|
725
718
|
}), Pr = (e) => {
|
|
726
|
-
const { control:
|
|
727
|
-
return
|
|
719
|
+
const { control: n, checked: t, bubbles: o = !0, ...c } = e, r = R(null), a = yr(t), i = vr(n);
|
|
720
|
+
return k(() => {
|
|
728
721
|
const s = r.current, u = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(u, "checked").set;
|
|
729
722
|
if (a !== t && p) {
|
|
730
723
|
const f = new Event("click", {
|
|
731
|
-
bubbles:
|
|
724
|
+
bubbles: o
|
|
732
725
|
});
|
|
733
726
|
p.call(s, t), s.dispatchEvent(f);
|
|
734
727
|
}
|
|
735
728
|
}, [
|
|
736
729
|
a,
|
|
737
730
|
t,
|
|
738
|
-
|
|
731
|
+
o
|
|
739
732
|
]), /* @__PURE__ */ b("input", v({
|
|
740
733
|
type: "radio",
|
|
741
734
|
"aria-hidden": !0,
|
|
742
735
|
defaultChecked: t
|
|
743
|
-
},
|
|
736
|
+
}, c, {
|
|
744
737
|
tabIndex: -1,
|
|
745
738
|
ref: r,
|
|
746
739
|
style: {
|
|
747
740
|
...e.style,
|
|
748
|
-
...
|
|
741
|
+
...i,
|
|
749
742
|
position: "absolute",
|
|
750
743
|
pointerEvents: "none",
|
|
751
744
|
opacity: 0,
|
|
@@ -753,28 +746,28 @@ const Ie = "Radio", [Ir, Ae] = Z(Ie), [Ar, Nr] = Ir(Ie), Sr = /* @__PURE__ */ I(
|
|
|
753
746
|
}
|
|
754
747
|
}));
|
|
755
748
|
};
|
|
756
|
-
function
|
|
749
|
+
function xe(e) {
|
|
757
750
|
return e ? "checked" : "unchecked";
|
|
758
751
|
}
|
|
759
|
-
const
|
|
752
|
+
const kr = [
|
|
760
753
|
"ArrowUp",
|
|
761
754
|
"ArrowDown",
|
|
762
755
|
"ArrowLeft",
|
|
763
756
|
"ArrowRight"
|
|
764
|
-
],
|
|
757
|
+
], Ie = "RadioGroup", [wr, dt] = Z(Ie, [
|
|
765
758
|
ye,
|
|
766
|
-
|
|
767
|
-
]),
|
|
768
|
-
const { __scopeRadioGroup: t, name:
|
|
759
|
+
Re
|
|
760
|
+
]), Ae = ye(), Ee = Re(), [Or, Tr] = wr(Ie), Fr = /* @__PURE__ */ N((e, n) => {
|
|
761
|
+
const { __scopeRadioGroup: t, name: o, defaultValue: c, value: r, required: a = !1, disabled: i = !1, orientation: s, dir: u, loop: _ = !0, onValueChange: p, ...f } = e, l = Ae(t), d = ge(u), [m, g] = he({
|
|
769
762
|
prop: r,
|
|
770
|
-
defaultProp:
|
|
763
|
+
defaultProp: c,
|
|
771
764
|
onChange: p
|
|
772
765
|
});
|
|
773
|
-
return /* @__PURE__ */ b(
|
|
766
|
+
return /* @__PURE__ */ b(Or, {
|
|
774
767
|
scope: t,
|
|
775
|
-
name:
|
|
768
|
+
name: o,
|
|
776
769
|
required: a,
|
|
777
|
-
disabled:
|
|
770
|
+
disabled: i,
|
|
778
771
|
value: m,
|
|
779
772
|
onValueChange: g
|
|
780
773
|
}, /* @__PURE__ */ b(hr, v({
|
|
@@ -783,51 +776,51 @@ const Tr = [
|
|
|
783
776
|
orientation: s,
|
|
784
777
|
dir: d,
|
|
785
778
|
loop: _
|
|
786
|
-
}), /* @__PURE__ */ b(
|
|
779
|
+
}), /* @__PURE__ */ b(U.div, v({
|
|
787
780
|
role: "radiogroup",
|
|
788
781
|
"aria-required": a,
|
|
789
782
|
"aria-orientation": s,
|
|
790
|
-
"data-disabled":
|
|
783
|
+
"data-disabled": i ? "" : void 0,
|
|
791
784
|
dir: d
|
|
792
785
|
}, f, {
|
|
793
|
-
ref:
|
|
786
|
+
ref: n
|
|
794
787
|
}))));
|
|
795
|
-
}),
|
|
796
|
-
const { __scopeRadioGroup: t, disabled:
|
|
797
|
-
return
|
|
788
|
+
}), Mr = "RadioGroupItem", Dr = /* @__PURE__ */ N((e, n) => {
|
|
789
|
+
const { __scopeRadioGroup: t, disabled: o, ...c } = e, r = Tr(Mr, t), a = r.disabled || o, i = Ae(t), s = Ee(t), u = R(null), _ = M(n, u), p = r.value === c.value, f = R(!1);
|
|
790
|
+
return k(() => {
|
|
798
791
|
const l = (m) => {
|
|
799
|
-
|
|
792
|
+
kr.includes(m.key) && (f.current = !0);
|
|
800
793
|
}, d = () => f.current = !1;
|
|
801
794
|
return document.addEventListener("keydown", l), document.addEventListener("keyup", d), () => {
|
|
802
795
|
document.removeEventListener("keydown", l), document.removeEventListener("keyup", d);
|
|
803
796
|
};
|
|
804
797
|
}, []), /* @__PURE__ */ b(gr, v({
|
|
805
798
|
asChild: !0
|
|
806
|
-
},
|
|
799
|
+
}, i, {
|
|
807
800
|
focusable: !a,
|
|
808
801
|
active: p
|
|
809
|
-
}), /* @__PURE__ */ b(
|
|
802
|
+
}), /* @__PURE__ */ b(Ir, v({
|
|
810
803
|
disabled: a,
|
|
811
804
|
required: r.required,
|
|
812
805
|
checked: p
|
|
813
|
-
}, s,
|
|
806
|
+
}, s, c, {
|
|
814
807
|
name: r.name,
|
|
815
808
|
ref: _,
|
|
816
|
-
onCheck: () => r.onValueChange(
|
|
817
|
-
onKeyDown:
|
|
809
|
+
onCheck: () => r.onValueChange(c.value),
|
|
810
|
+
onKeyDown: A((l) => {
|
|
818
811
|
l.key === "Enter" && l.preventDefault();
|
|
819
812
|
}),
|
|
820
|
-
onFocus:
|
|
813
|
+
onFocus: A(c.onFocus, () => {
|
|
821
814
|
var l;
|
|
822
815
|
f.current && ((l = u.current) === null || l === void 0 || l.click());
|
|
823
816
|
})
|
|
824
817
|
})));
|
|
825
|
-
}),
|
|
826
|
-
const { __scopeRadioGroup: t, ...
|
|
827
|
-
return /* @__PURE__ */ b(Er, v({},
|
|
828
|
-
ref:
|
|
818
|
+
}), Gr = /* @__PURE__ */ N((e, n) => {
|
|
819
|
+
const { __scopeRadioGroup: t, ...o } = e, c = Ee(t);
|
|
820
|
+
return /* @__PURE__ */ b(Er, v({}, c, o, {
|
|
821
|
+
ref: n
|
|
829
822
|
}));
|
|
830
|
-
}),
|
|
823
|
+
}), Lr = Fr, qr = Dr, Ur = Gr;
|
|
831
824
|
function jr(e) {
|
|
832
825
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
833
826
|
}
|
|
@@ -839,15 +832,15 @@ var Pe = { exports: {} };
|
|
|
839
832
|
*/
|
|
840
833
|
(function(e) {
|
|
841
834
|
(function() {
|
|
842
|
-
var
|
|
835
|
+
var n = {}.hasOwnProperty;
|
|
843
836
|
function t() {
|
|
844
837
|
for (var r = "", a = 0; a < arguments.length; a++) {
|
|
845
|
-
var
|
|
846
|
-
|
|
838
|
+
var i = arguments[a];
|
|
839
|
+
i && (r = c(r, o.call(this, i)));
|
|
847
840
|
}
|
|
848
841
|
return r;
|
|
849
842
|
}
|
|
850
|
-
function
|
|
843
|
+
function o(r) {
|
|
851
844
|
if (typeof r == "string" || typeof r == "number")
|
|
852
845
|
return this && this[r] || r;
|
|
853
846
|
if (typeof r != "object")
|
|
@@ -857,18 +850,18 @@ var Pe = { exports: {} };
|
|
|
857
850
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
858
851
|
return r.toString();
|
|
859
852
|
var a = "";
|
|
860
|
-
for (var
|
|
861
|
-
|
|
853
|
+
for (var i in r)
|
|
854
|
+
n.call(r, i) && r[i] && (a = c(a, this && this[i] || i));
|
|
862
855
|
return a;
|
|
863
856
|
}
|
|
864
|
-
function
|
|
857
|
+
function c(r, a) {
|
|
865
858
|
return a ? r ? r + " " + a : r + a : r;
|
|
866
859
|
}
|
|
867
860
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
868
861
|
})();
|
|
869
862
|
})(Pe);
|
|
870
|
-
var
|
|
871
|
-
const
|
|
863
|
+
var zr = Pe.exports;
|
|
864
|
+
const Br = /* @__PURE__ */ jr(zr), Vr = {
|
|
872
865
|
"purpur-radio-card-group": "_purpur-radio-card-group_19msf_1",
|
|
873
866
|
"purpur-radio-card-group--vertical": "_purpur-radio-card-group--vertical_19msf_5",
|
|
874
867
|
"purpur-radio-card-group--horizontal": "_purpur-radio-card-group--horizontal_19msf_9",
|
|
@@ -888,11 +881,11 @@ const zr = /* @__PURE__ */ jr(Br), Vr = {
|
|
|
888
881
|
"purpur-radio-card-group__item-image-placeholder": "_purpur-radio-card-group__item-image-placeholder_19msf_167",
|
|
889
882
|
"purpur-radio-card-group__item-image-placeholder--loaded": "_purpur-radio-card-group__item-image-placeholder--loaded_19msf_172",
|
|
890
883
|
"purpur-radio-card-group__item-children": "_purpur-radio-card-group__item-children_19msf_175"
|
|
891
|
-
},
|
|
892
|
-
function
|
|
884
|
+
}, S = Br.bind(Vr);
|
|
885
|
+
function Kr(e) {
|
|
893
886
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
894
887
|
}
|
|
895
|
-
var
|
|
888
|
+
var ke = { exports: {} };
|
|
896
889
|
/*!
|
|
897
890
|
Copyright (c) 2018 Jed Watson.
|
|
898
891
|
Licensed under the MIT License (MIT), see
|
|
@@ -900,15 +893,15 @@ var Te = { exports: {} };
|
|
|
900
893
|
*/
|
|
901
894
|
(function(e) {
|
|
902
895
|
(function() {
|
|
903
|
-
var
|
|
896
|
+
var n = {}.hasOwnProperty;
|
|
904
897
|
function t() {
|
|
905
898
|
for (var r = "", a = 0; a < arguments.length; a++) {
|
|
906
|
-
var
|
|
907
|
-
|
|
899
|
+
var i = arguments[a];
|
|
900
|
+
i && (r = c(r, o(i)));
|
|
908
901
|
}
|
|
909
902
|
return r;
|
|
910
903
|
}
|
|
911
|
-
function
|
|
904
|
+
function o(r) {
|
|
912
905
|
if (typeof r == "string" || typeof r == "number")
|
|
913
906
|
return r;
|
|
914
907
|
if (typeof r != "object")
|
|
@@ -918,18 +911,18 @@ var Te = { exports: {} };
|
|
|
918
911
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
919
912
|
return r.toString();
|
|
920
913
|
var a = "";
|
|
921
|
-
for (var
|
|
922
|
-
|
|
914
|
+
for (var i in r)
|
|
915
|
+
n.call(r, i) && r[i] && (a = c(a, i));
|
|
923
916
|
return a;
|
|
924
917
|
}
|
|
925
|
-
function
|
|
918
|
+
function c(r, a) {
|
|
926
919
|
return a ? r ? r + " " + a : r + a : r;
|
|
927
920
|
}
|
|
928
921
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
929
922
|
})();
|
|
930
|
-
})(
|
|
931
|
-
var
|
|
932
|
-
const Yr = /* @__PURE__ */ Hr
|
|
923
|
+
})(ke);
|
|
924
|
+
var Hr = ke.exports;
|
|
925
|
+
const Yr = /* @__PURE__ */ Kr(Hr), D = {
|
|
933
926
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
934
927
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
935
928
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -945,43 +938,34 @@ const Yr = /* @__PURE__ */ Hr(Kr), D = {
|
|
|
945
938
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
946
939
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
947
940
|
}, Wr = {
|
|
948
|
-
PARAGRAPH100: "paragraph-100"
|
|
949
|
-
|
|
950
|
-
PARAGRAPH100BOLD: "paragraph-100-bold",
|
|
951
|
-
PARAGRAPH200: "paragraph-200",
|
|
952
|
-
PREAMBLE100: "preamble-100",
|
|
953
|
-
PREAMBLE200: "preamble-200",
|
|
954
|
-
ADDITIONAL100: "additional-100",
|
|
955
|
-
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
956
|
-
OVERLINE100: "overline-100",
|
|
957
|
-
OVERLINE200: "overline-200"
|
|
958
|
-
}, L = "purpur-paragraph", ce = ({
|
|
941
|
+
PARAGRAPH100: "paragraph-100"
|
|
942
|
+
}, G = "purpur-paragraph", ie = ({
|
|
959
943
|
["data-testid"]: e,
|
|
960
|
-
children:
|
|
944
|
+
children: n,
|
|
961
945
|
className: t,
|
|
962
|
-
disabled:
|
|
963
|
-
enableHyphenation:
|
|
946
|
+
disabled: o,
|
|
947
|
+
enableHyphenation: c = !1,
|
|
964
948
|
negative: r = !1,
|
|
965
949
|
variant: a = Wr.PARAGRAPH100,
|
|
966
|
-
...
|
|
950
|
+
...i
|
|
967
951
|
}) => {
|
|
968
952
|
const s = Yr([
|
|
969
953
|
t,
|
|
970
|
-
D[
|
|
971
|
-
D[`${
|
|
954
|
+
D[G],
|
|
955
|
+
D[`${G}--${a}`],
|
|
972
956
|
{
|
|
973
|
-
[D[`${
|
|
974
|
-
[D[`${
|
|
975
|
-
[D[`${
|
|
957
|
+
[D[`${G}--hyphens`]]: c,
|
|
958
|
+
[D[`${G}--disabled`]]: o,
|
|
959
|
+
[D[`${G}--negative`]]: r
|
|
976
960
|
}
|
|
977
961
|
]);
|
|
978
|
-
return /* @__PURE__ */ y("p", { ...
|
|
962
|
+
return /* @__PURE__ */ y("p", { ...i, className: s, "data-testid": e, children: n });
|
|
979
963
|
};
|
|
980
|
-
|
|
964
|
+
ie.displayName = "Paragraph";
|
|
981
965
|
function Xr(e) {
|
|
982
966
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
983
967
|
}
|
|
984
|
-
var
|
|
968
|
+
var we = { exports: {} };
|
|
985
969
|
/*!
|
|
986
970
|
Copyright (c) 2018 Jed Watson.
|
|
987
971
|
Licensed under the MIT License (MIT), see
|
|
@@ -989,15 +973,15 @@ var Oe = { exports: {} };
|
|
|
989
973
|
*/
|
|
990
974
|
(function(e) {
|
|
991
975
|
(function() {
|
|
992
|
-
var
|
|
976
|
+
var n = {}.hasOwnProperty;
|
|
993
977
|
function t() {
|
|
994
978
|
for (var r = "", a = 0; a < arguments.length; a++) {
|
|
995
|
-
var
|
|
996
|
-
|
|
979
|
+
var i = arguments[a];
|
|
980
|
+
i && (r = c(r, o(i)));
|
|
997
981
|
}
|
|
998
982
|
return r;
|
|
999
983
|
}
|
|
1000
|
-
function
|
|
984
|
+
function o(r) {
|
|
1001
985
|
if (typeof r == "string" || typeof r == "number")
|
|
1002
986
|
return r;
|
|
1003
987
|
if (typeof r != "object")
|
|
@@ -1007,17 +991,17 @@ var Oe = { exports: {} };
|
|
|
1007
991
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1008
992
|
return r.toString();
|
|
1009
993
|
var a = "";
|
|
1010
|
-
for (var
|
|
1011
|
-
|
|
994
|
+
for (var i in r)
|
|
995
|
+
n.call(r, i) && r[i] && (a = c(a, i));
|
|
1012
996
|
return a;
|
|
1013
997
|
}
|
|
1014
|
-
function
|
|
998
|
+
function c(r, a) {
|
|
1015
999
|
return a ? r ? r + " " + a : r + a : r;
|
|
1016
1000
|
}
|
|
1017
1001
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
1018
1002
|
})();
|
|
1019
|
-
})(
|
|
1020
|
-
var Zr =
|
|
1003
|
+
})(we);
|
|
1004
|
+
var Zr = we.exports;
|
|
1021
1005
|
const Jr = /* @__PURE__ */ Xr(Zr), Qr = "_loading_cil8l_1", re = {
|
|
1022
1006
|
"purpur-skeleton": "_purpur-skeleton_cil8l_2",
|
|
1023
1007
|
loading: Qr,
|
|
@@ -1028,117 +1012,117 @@ const Jr = /* @__PURE__ */ Xr(Zr), Qr = "_loading_cil8l_1", re = {
|
|
|
1028
1012
|
"purpur-skeleton--md": "_purpur-skeleton--md_cil8l_43",
|
|
1029
1013
|
"purpur-skeleton--lg": "_purpur-skeleton--lg_cil8l_46",
|
|
1030
1014
|
"purpur-skeleton--full": "_purpur-skeleton--full_cil8l_49"
|
|
1031
|
-
}, te = "purpur-skeleton",
|
|
1015
|
+
}, te = "purpur-skeleton", Oe = ({
|
|
1032
1016
|
className: e,
|
|
1033
|
-
["data-testid"]:
|
|
1017
|
+
["data-testid"]: n,
|
|
1034
1018
|
radius: t = "xs",
|
|
1035
|
-
style:
|
|
1036
|
-
negative:
|
|
1019
|
+
style: o,
|
|
1020
|
+
negative: c = !1,
|
|
1037
1021
|
...r
|
|
1038
1022
|
}) => {
|
|
1039
1023
|
const a = Jr([
|
|
1040
1024
|
e,
|
|
1041
1025
|
re[te],
|
|
1042
|
-
re[`${te}--${
|
|
1026
|
+
re[`${te}--${c ? "negative" : "default"}`],
|
|
1043
1027
|
re[`${te}--${t}`]
|
|
1044
1028
|
]);
|
|
1045
|
-
return /* @__PURE__ */ y("div", { className: a, style:
|
|
1029
|
+
return /* @__PURE__ */ y("div", { className: a, style: o, "data-testid": n, ...r });
|
|
1046
1030
|
};
|
|
1047
|
-
|
|
1048
|
-
const
|
|
1031
|
+
Oe.displayName = "Skeleton";
|
|
1032
|
+
const K = "purpur-radio-card-group__item-image", et = (e) => !!(e != null && e.src) && !!e.altText, rt = ({
|
|
1049
1033
|
src: e,
|
|
1050
|
-
altText:
|
|
1034
|
+
altText: n,
|
|
1051
1035
|
noPlaceholder: t,
|
|
1052
|
-
loading:
|
|
1053
|
-
["data-testid"]:
|
|
1036
|
+
loading: o = "lazy",
|
|
1037
|
+
["data-testid"]: c
|
|
1054
1038
|
}) => {
|
|
1055
|
-
const [r, a] =
|
|
1056
|
-
[`${
|
|
1057
|
-
}), u =
|
|
1058
|
-
[`${
|
|
1039
|
+
const [r, a] = F(!1), i = () => a(!0), s = S(K, {
|
|
1040
|
+
[`${K}--loaded`]: r
|
|
1041
|
+
}), u = S(`${K}-placeholder`, {
|
|
1042
|
+
[`${K}-placeholder--loaded`]: r
|
|
1059
1043
|
});
|
|
1060
|
-
return /* @__PURE__ */
|
|
1044
|
+
return /* @__PURE__ */ O(Ge, { children: [
|
|
1061
1045
|
/* @__PURE__ */ y(
|
|
1062
1046
|
"img",
|
|
1063
1047
|
{
|
|
1064
|
-
"data-testid":
|
|
1048
|
+
"data-testid": c,
|
|
1065
1049
|
className: s,
|
|
1066
1050
|
src: e,
|
|
1067
|
-
alt:
|
|
1068
|
-
loading:
|
|
1069
|
-
onLoad:
|
|
1051
|
+
alt: n,
|
|
1052
|
+
loading: o,
|
|
1053
|
+
onLoad: i
|
|
1070
1054
|
}
|
|
1071
1055
|
),
|
|
1072
|
-
!t && /* @__PURE__ */ y(
|
|
1056
|
+
!t && /* @__PURE__ */ y(Oe, { className: u })
|
|
1073
1057
|
] });
|
|
1074
|
-
},
|
|
1058
|
+
}, I = "purpur-radio-card-group__item", ne = (e, { disabled: n }) => typeof e == "function" ? e({ disabled: n }) : e, tt = ({ title: e, ...n }, t) => {
|
|
1075
1059
|
const {
|
|
1076
|
-
["data-testid"]:
|
|
1077
|
-
body:
|
|
1060
|
+
["data-testid"]: o,
|
|
1061
|
+
body: c,
|
|
1078
1062
|
children: r,
|
|
1079
1063
|
disabled: a,
|
|
1080
|
-
id:
|
|
1064
|
+
id: i,
|
|
1081
1065
|
image: s,
|
|
1082
1066
|
required: u,
|
|
1083
1067
|
value: _
|
|
1084
|
-
} =
|
|
1085
|
-
return /* @__PURE__ */
|
|
1086
|
-
/* @__PURE__ */
|
|
1087
|
-
|
|
1068
|
+
} = n, p = { ...n };
|
|
1069
|
+
return /* @__PURE__ */ O("div", { className: S(`${I}-container`), ref: t, children: [
|
|
1070
|
+
/* @__PURE__ */ O(
|
|
1071
|
+
qr,
|
|
1088
1072
|
{
|
|
1089
|
-
className:
|
|
1090
|
-
"data-testid":
|
|
1073
|
+
className: S(I),
|
|
1074
|
+
"data-testid": o,
|
|
1091
1075
|
disabled: a,
|
|
1092
|
-
id:
|
|
1076
|
+
id: i,
|
|
1093
1077
|
required: u,
|
|
1094
1078
|
value: _,
|
|
1095
1079
|
children: [
|
|
1096
|
-
s && /* @__PURE__ */ y("span", { className:
|
|
1097
|
-
/* @__PURE__ */
|
|
1098
|
-
/* @__PURE__ */
|
|
1080
|
+
s && /* @__PURE__ */ y("span", { className: S(`${I}-image-container`), children: et(s) ? /* @__PURE__ */ y(rt, { ...s, "data-testid": o && `${o}-image` }) : ne(s, p) }),
|
|
1081
|
+
/* @__PURE__ */ O("span", { className: S(`${I}-content`), children: [
|
|
1082
|
+
/* @__PURE__ */ O("span", { className: S(`${I}-top-container`), children: [
|
|
1099
1083
|
typeof e == "string" ? /* @__PURE__ */ y(
|
|
1100
|
-
|
|
1084
|
+
ie,
|
|
1101
1085
|
{
|
|
1102
|
-
className:
|
|
1103
|
-
"data-testid":
|
|
1086
|
+
className: S(`${I}-title`),
|
|
1087
|
+
"data-testid": o && `${o}-title`,
|
|
1104
1088
|
variant: "paragraph-100",
|
|
1105
1089
|
disabled: a,
|
|
1106
1090
|
children: e
|
|
1107
1091
|
}
|
|
1108
|
-
) :
|
|
1109
|
-
/* @__PURE__ */ y("span", { className:
|
|
1092
|
+
) : ne(e, p),
|
|
1093
|
+
/* @__PURE__ */ y("span", { className: S(`${I}-radio`), children: /* @__PURE__ */ y(Ur, { className: S(`${I}-indicator`) }) })
|
|
1110
1094
|
] }),
|
|
1111
|
-
|
|
1112
|
-
|
|
1095
|
+
c && /* @__PURE__ */ y("span", { className: S(`${I}-bottom-container`), children: typeof c == "string" ? /* @__PURE__ */ y(
|
|
1096
|
+
ie,
|
|
1113
1097
|
{
|
|
1114
|
-
"data-testid":
|
|
1098
|
+
"data-testid": o && `${o}-body`,
|
|
1115
1099
|
variant: "paragraph-100",
|
|
1116
1100
|
disabled: a,
|
|
1117
|
-
children:
|
|
1101
|
+
children: c
|
|
1118
1102
|
}
|
|
1119
|
-
) :
|
|
1103
|
+
) : ne(c, p) })
|
|
1120
1104
|
] })
|
|
1121
1105
|
]
|
|
1122
1106
|
}
|
|
1123
1107
|
),
|
|
1124
1108
|
r
|
|
1125
1109
|
] });
|
|
1126
|
-
}, de =
|
|
1110
|
+
}, de = N(tt);
|
|
1127
1111
|
de.displayName = "RadioCardItem";
|
|
1128
|
-
const
|
|
1112
|
+
const nt = (e) => q(e) && (e == null ? void 0 : e.type) === de, pt = ["horizontal", "vertical"], lt = ["right", "left"], H = "purpur-radio-card-group", ot = ({
|
|
1129
1113
|
"data-testid": e,
|
|
1130
|
-
"aria-labelledby":
|
|
1114
|
+
"aria-labelledby": n,
|
|
1131
1115
|
children: t,
|
|
1132
|
-
className:
|
|
1133
|
-
items:
|
|
1116
|
+
className: o,
|
|
1117
|
+
items: c,
|
|
1134
1118
|
label: r,
|
|
1135
1119
|
loop: a = !0,
|
|
1136
|
-
orientation:
|
|
1120
|
+
orientation: i = "vertical",
|
|
1137
1121
|
radioPosition: s = "right",
|
|
1138
1122
|
...u
|
|
1139
1123
|
}, _) => {
|
|
1140
|
-
const p = P.toArray(t).filter(
|
|
1141
|
-
return /* @__PURE__ */
|
|
1124
|
+
const p = P.toArray(t).filter(nt);
|
|
1125
|
+
return /* @__PURE__ */ O("div", { className: S(o, `${H}__container`), ref: _, children: [
|
|
1142
1126
|
r && /* @__PURE__ */ y(
|
|
1143
1127
|
be,
|
|
1144
1128
|
{
|
|
@@ -1149,20 +1133,20 @@ const ot = (e) => U(e) && (e == null ? void 0 : e.type) === de, pt = ["horizonta
|
|
|
1149
1133
|
children: `${u.required ? "* " : ""}${r}`
|
|
1150
1134
|
}
|
|
1151
1135
|
),
|
|
1152
|
-
(!!(
|
|
1153
|
-
|
|
1136
|
+
(!!(c != null && c.length) || p.length) && /* @__PURE__ */ O(
|
|
1137
|
+
Lr,
|
|
1154
1138
|
{
|
|
1155
1139
|
...u,
|
|
1156
|
-
"aria-labelledby":
|
|
1157
|
-
className:
|
|
1158
|
-
|
|
1159
|
-
`${
|
|
1160
|
-
`${
|
|
1140
|
+
"aria-labelledby": n || (r ? `${u.id}-label` : void 0),
|
|
1141
|
+
className: S(
|
|
1142
|
+
H,
|
|
1143
|
+
`${H}--${i}`,
|
|
1144
|
+
`${H}--radio-${s}`
|
|
1161
1145
|
),
|
|
1162
1146
|
"data-testid": e,
|
|
1163
1147
|
loop: a,
|
|
1164
1148
|
children: [
|
|
1165
|
-
|
|
1149
|
+
c == null ? void 0 : c.map((f) => /* @__PURE__ */ y(
|
|
1166
1150
|
de,
|
|
1167
1151
|
{
|
|
1168
1152
|
...f,
|
|
@@ -1179,7 +1163,7 @@ const ot = (e) => U(e) && (e == null ? void 0 : e.type) === de, pt = ["horizonta
|
|
|
1179
1163
|
}
|
|
1180
1164
|
)
|
|
1181
1165
|
] });
|
|
1182
|
-
}, at =
|
|
1166
|
+
}, at = N(ot);
|
|
1183
1167
|
at.displayName = "RadioCardGroup";
|
|
1184
1168
|
export {
|
|
1185
1169
|
pt as RADIO_CARD_GROUP_ORIENTATION,
|