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