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