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