@purpurds/radio-card-group 5.30.1 → 5.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { jsx as y, jsxs as k, Fragment as Le } from "react/jsx-runtime";
2
2
  import * as fe from "react";
3
- import N, { useCallback as w, createContext as ne, useMemo as G, createElement as b, useContext as _e, forwardRef as I, Children as P, isValidElement as U, cloneElement as X, Fragment as Ge, useEffect as T, useLayoutEffect as Ue, useRef as A, useState as M, useReducer as qe } from "react";
3
+ import N, { useCallback as w, createContext as oe, useMemo as G, createElement as b, useContext as _e, forwardRef as I, Children as P, isValidElement as U, cloneElement as X, Fragment as Ge, useEffect as T, useLayoutEffect as Ue, useRef as A, useState as M, useReducer as qe } from "react";
4
4
  import { flushSync as je } from "react-dom";
5
5
  function Be(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -13,15 +13,15 @@ var me = { exports: {} };
13
13
  */
14
14
  (function(e) {
15
15
  (function() {
16
- var o = {}.hasOwnProperty;
16
+ var n = {}.hasOwnProperty;
17
17
  function t() {
18
18
  for (var r = "", a = 0; a < arguments.length; a++) {
19
- var c = arguments[a];
20
- c && (r = i(r, n(c)));
19
+ var u = arguments[a];
20
+ u && (r = i(r, o(u)));
21
21
  }
22
22
  return r;
23
23
  }
24
- function n(r) {
24
+ function o(r) {
25
25
  if (typeof r == "string" || typeof r == "number")
26
26
  return r;
27
27
  if (typeof r != "object")
@@ -31,8 +31,8 @@ var me = { exports: {} };
31
31
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
32
32
  return r.toString();
33
33
  var a = "";
34
- for (var c in r)
35
- o.call(r, c) && r[c] && (a = i(a, c));
34
+ for (var u in r)
35
+ n.call(r, u) && r[u] && (a = i(a, u));
36
36
  return a;
37
37
  }
38
38
  function i(r, a) {
@@ -69,61 +69,61 @@ const Ve = /* @__PURE__ */ Be(ze), B = {
69
69
  SUBSECTION100: "subsection-100"
70
70
  }, z = "purpur-heading", be = ({
71
71
  ["data-testid"]: e,
72
- children: o,
72
+ children: n,
73
73
  className: t = "",
74
- enableHyphenation: n = !1,
74
+ enableHyphenation: o = !1,
75
75
  negative: i = !1,
76
76
  tag: r,
77
77
  variant: a = He.TITLE100,
78
- ...c
78
+ ...u
79
79
  }) => {
80
- const s = r, u = Ve([
80
+ const s = r, c = Ve([
81
81
  t,
82
82
  B[z],
83
83
  B[`${z}--${a}`],
84
84
  {
85
- [B[`${z}--hyphens`]]: n,
85
+ [B[`${z}--hyphens`]]: o,
86
86
  [B[`${z}--negative`]]: i
87
87
  }
88
88
  ]);
89
- return /* @__PURE__ */ y(s, { ...c, className: u, "data-testid": e, children: o });
89
+ return /* @__PURE__ */ y(s, { ...u, className: c, "data-testid": e, children: n });
90
90
  };
91
91
  be.displayName = "Heading";
92
92
  function v() {
93
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]);
94
+ for (var n = 1; n < arguments.length; n++) {
95
+ var t = arguments[n];
96
+ for (var o in t) ({}).hasOwnProperty.call(t, o) && (e[o] = t[o]);
97
97
  }
98
98
  return e;
99
99
  }, v.apply(null, arguments);
100
100
  }
101
- function x(e, o, { checkForDefaultPrevented: t = !0 } = {}) {
101
+ function x(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
102
102
  return function(i) {
103
- if (e == null || e(i), t === !1 || !i.defaultPrevented) return o == null ? void 0 : o(i);
103
+ if (e == null || e(i), t === !1 || !i.defaultPrevented) return n == null ? void 0 : n(i);
104
104
  };
105
105
  }
106
- function Ke(e, o) {
107
- typeof e == "function" ? e(o) : e != null && (e.current = o);
106
+ function Ke(e, n) {
107
+ typeof e == "function" ? e(n) : e != null && (e.current = n);
108
108
  }
109
109
  function $e(...e) {
110
- return (o) => e.forEach(
111
- (t) => Ke(t, o)
110
+ return (n) => e.forEach(
111
+ (t) => Ke(t, n)
112
112
  );
113
113
  }
114
114
  function F(...e) {
115
115
  return w($e(...e), e);
116
116
  }
117
- function Z(e, o = []) {
117
+ function Z(e, n = []) {
118
118
  let t = [];
119
- function n(r, a) {
120
- const c = /* @__PURE__ */ ne(a), s = t.length;
119
+ function o(r, a) {
120
+ const u = /* @__PURE__ */ oe(a), s = t.length;
121
121
  t = [
122
122
  ...t,
123
123
  a
124
124
  ];
125
- function u(p) {
126
- const { scope: f, children: l, ...d } = p, m = (f == null ? void 0 : f[e][s]) || c, g = G(
125
+ function c(p) {
126
+ const { scope: f, children: l, ...d } = p, m = (f == null ? void 0 : f[e][s]) || u, g = G(
127
127
  () => d,
128
128
  Object.values(d)
129
129
  );
@@ -132,60 +132,60 @@ function Z(e, o = []) {
132
132
  }, l);
133
133
  }
134
134
  function _(p, f) {
135
- const l = (f == null ? void 0 : f[e][s]) || c, d = _e(l);
135
+ const l = (f == null ? void 0 : f[e][s]) || u, d = _e(l);
136
136
  if (d) return d;
137
137
  if (a !== void 0) return a;
138
138
  throw new Error(`\`${p}\` must be used within \`${r}\``);
139
139
  }
140
- return u.displayName = r + "Provider", [
141
- u,
140
+ return c.displayName = r + "Provider", [
141
+ c,
142
142
  _
143
143
  ];
144
144
  }
145
145
  const i = () => {
146
- const r = t.map((a) => /* @__PURE__ */ ne(a));
147
- return function(c) {
148
- const s = (c == null ? void 0 : c[e]) || r;
146
+ const r = t.map((a) => /* @__PURE__ */ oe(a));
147
+ return function(u) {
148
+ const s = (u == null ? void 0 : u[e]) || r;
149
149
  return G(
150
150
  () => ({
151
151
  [`__scope${e}`]: {
152
- ...c,
152
+ ...u,
153
153
  [e]: s
154
154
  }
155
155
  }),
156
156
  [
157
- c,
157
+ u,
158
158
  s
159
159
  ]
160
160
  );
161
161
  };
162
162
  };
163
163
  return i.scopeName = e, [
164
- n,
165
- Ye(i, ...o)
164
+ o,
165
+ Ye(i, ...n)
166
166
  ];
167
167
  }
168
168
  function Ye(...e) {
169
- const o = e[0];
170
- if (e.length === 1) return o;
169
+ const n = e[0];
170
+ if (e.length === 1) return n;
171
171
  const t = () => {
172
- const n = e.map(
172
+ const o = e.map(
173
173
  (i) => ({
174
174
  useScope: i(),
175
175
  scopeName: i.scopeName
176
176
  })
177
177
  );
178
178
  return function(r) {
179
- const a = n.reduce((c, { useScope: s, scopeName: u }) => {
180
- const p = s(r)[`__scope${u}`];
179
+ const a = o.reduce((u, { useScope: s, scopeName: c }) => {
180
+ const p = s(r)[`__scope${c}`];
181
181
  return {
182
- ...c,
182
+ ...u,
183
183
  ...p
184
184
  };
185
185
  }, {});
186
186
  return G(
187
187
  () => ({
188
- [`__scope${o.scopeName}`]: a
188
+ [`__scope${n.scopeName}`]: a
189
189
  }),
190
190
  [
191
191
  a
@@ -193,26 +193,26 @@ function Ye(...e) {
193
193
  );
194
194
  };
195
195
  };
196
- return t.scopeName = o.scopeName, t;
196
+ return t.scopeName = n.scopeName, t;
197
197
  }
198
- const Y = /* @__PURE__ */ I((e, o) => {
199
- const { children: t, ...n } = e, i = P.toArray(t), r = i.find(Xe);
198
+ const Y = /* @__PURE__ */ I((e, n) => {
199
+ const { children: t, ...o } = e, i = P.toArray(t), r = i.find(Xe);
200
200
  if (r) {
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);
201
+ const a = r.props.children, u = 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({}, o, {
203
+ ref: n
204
+ }), /* @__PURE__ */ U(a) ? /* @__PURE__ */ X(a, void 0, u) : null);
205
205
  }
206
- return /* @__PURE__ */ b(ae, v({}, n, {
207
- ref: o
206
+ return /* @__PURE__ */ b(ae, v({}, o, {
207
+ ref: n
208
208
  }), t);
209
209
  });
210
210
  Y.displayName = "Slot";
211
- const ae = /* @__PURE__ */ I((e, o) => {
212
- const { children: t, ...n } = e;
211
+ const ae = /* @__PURE__ */ I((e, n) => {
212
+ const { children: t, ...o } = e;
213
213
  return /* @__PURE__ */ U(t) ? /* @__PURE__ */ X(t, {
214
- ...Ze(n, t.props),
215
- ref: o ? $e(o, t.ref) : t.ref
214
+ ...Ze(o, t.props),
215
+ ref: n ? $e(n, t.ref) : t.ref
216
216
  }) : P.count(t) > 1 ? P.only(null) : null;
217
217
  });
218
218
  ae.displayName = "SlotClone";
@@ -220,18 +220,18 @@ const We = ({ children: e }) => /* @__PURE__ */ b(Ge, null, e);
220
220
  function Xe(e) {
221
221
  return /* @__PURE__ */ U(e) && e.type === We;
222
222
  }
223
- function Ze(e, o) {
223
+ function Ze(e, n) {
224
224
  const t = {
225
- ...o
225
+ ...n
226
226
  };
227
- for (const n in o) {
228
- const i = e[n], r = o[n];
229
- /^on[A-Z]/.test(n) ? i && r ? t[n] = (...c) => {
230
- r(...c), i(...c);
231
- } : i && (t[n] = i) : n === "style" ? t[n] = {
227
+ for (const o in n) {
228
+ const i = e[o], r = n[o];
229
+ /^on[A-Z]/.test(o) ? i && r ? t[o] = (...u) => {
230
+ r(...u), i(...u);
231
+ } : i && (t[o] = i) : o === "style" ? t[o] = {
232
232
  ...i,
233
233
  ...r
234
- } : n === "className" && (t[n] = [
234
+ } : o === "className" && (t[o] = [
235
235
  i,
236
236
  r
237
237
  ].filter(Boolean).join(" "));
@@ -258,22 +258,22 @@ const Je = [
258
258
  "span",
259
259
  "svg",
260
260
  "ul"
261
- ], q = Je.reduce((e, o) => {
262
- const t = /* @__PURE__ */ I((n, i) => {
263
- const { asChild: r, ...a } = n, c = r ? Y : o;
261
+ ], q = Je.reduce((e, n) => {
262
+ const t = /* @__PURE__ */ I((o, i) => {
263
+ const { asChild: r, ...a } = o, u = r ? Y : n;
264
264
  return T(() => {
265
265
  window[Symbol.for("radix-ui")] = !0;
266
- }, []), /* @__PURE__ */ b(c, v({}, a, {
266
+ }, []), /* @__PURE__ */ b(u, v({}, a, {
267
267
  ref: i
268
268
  }));
269
269
  });
270
- return t.displayName = `Primitive.${o}`, {
270
+ return t.displayName = `Primitive.${n}`, {
271
271
  ...e,
272
- [o]: t
272
+ [n]: t
273
273
  };
274
274
  }, {});
275
275
  function Qe(e) {
276
- const o = e + "CollectionProvider", [t, n] = Z(o), [i, r] = t(o, {
276
+ const n = e + "CollectionProvider", [t, o] = Z(n), [i, r] = t(n, {
277
277
  collectionRef: {
278
278
  current: null
279
279
  },
@@ -285,13 +285,13 @@ function Qe(e) {
285
285
  itemMap: $,
286
286
  collectionRef: g
287
287
  }, m);
288
- }, c = e + "CollectionSlot", s = /* @__PURE__ */ N.forwardRef((l, d) => {
289
- const { scope: m, children: g } = l, $ = r(c, m), h = F(d, $.collectionRef);
288
+ }, u = e + "CollectionSlot", s = /* @__PURE__ */ N.forwardRef((l, d) => {
289
+ const { scope: m, children: g } = l, $ = r(u, m), h = F(d, $.collectionRef);
290
290
  return /* @__PURE__ */ N.createElement(Y, {
291
291
  ref: h
292
292
  }, g);
293
- }), u = e + "CollectionItemSlot", _ = "data-radix-collection-item", p = /* @__PURE__ */ N.forwardRef((l, d) => {
294
- const { scope: m, children: g, ...$ } = l, h = N.useRef(null), j = F(d, h), E = r(u, m);
293
+ }), c = e + "CollectionItemSlot", _ = "data-radix-collection-item", p = /* @__PURE__ */ N.forwardRef((l, d) => {
294
+ const { scope: m, children: g, ...$ } = l, h = N.useRef(null), j = F(d, h), E = r(c, m);
295
295
  return N.useEffect(() => (E.itemMap.set(h, {
296
296
  ref: h,
297
297
  ...$
@@ -321,7 +321,7 @@ function Qe(e) {
321
321
  ItemSlot: p
322
322
  },
323
323
  f,
324
- n
324
+ o
325
325
  ];
326
326
  }
327
327
  const W = globalThis != null && globalThis.document ? Ue : () => {
@@ -329,89 +329,89 @@ const W = globalThis != null && globalThis.document ? Ue : () => {
329
329
  });
330
330
  let rr = 0;
331
331
  function tr(e) {
332
- const [o, t] = fe.useState(er());
332
+ const [n, t] = fe.useState(er());
333
333
  return W(() => {
334
334
  t(
335
- (n) => n ?? String(rr++)
335
+ (o) => o ?? String(rr++)
336
336
  );
337
337
  }, [
338
338
  e
339
- ]), o ? `radix-${o}` : "";
339
+ ]), n ? `radix-${n}` : "";
340
340
  }
341
- function ue(e) {
342
- const o = A(e);
341
+ function ce(e) {
342
+ const n = A(e);
343
343
  return T(() => {
344
- o.current = e;
344
+ n.current = e;
345
345
  }), G(
346
346
  () => (...t) => {
347
- var n;
348
- return (n = o.current) === null || n === void 0 ? void 0 : n.call(o, ...t);
347
+ var o;
348
+ return (o = n.current) === null || o === void 0 ? void 0 : o.call(n, ...t);
349
349
  },
350
350
  []
351
351
  );
352
352
  }
353
- function he({ prop: e, defaultProp: o, onChange: t = () => {
353
+ function he({ prop: e, defaultProp: n, onChange: t = () => {
354
354
  } }) {
355
- const [n, i] = or({
356
- defaultProp: o,
355
+ const [o, i] = nr({
356
+ defaultProp: n,
357
357
  onChange: t
358
- }), r = e !== void 0, a = r ? e : n, c = ue(t), s = w((u) => {
358
+ }), r = e !== void 0, a = r ? e : o, u = ce(t), s = w((c) => {
359
359
  if (r) {
360
- const p = typeof u == "function" ? u(e) : u;
361
- p !== e && c(p);
362
- } else i(u);
360
+ const p = typeof c == "function" ? c(e) : c;
361
+ p !== e && u(p);
362
+ } else i(c);
363
363
  }, [
364
364
  r,
365
365
  e,
366
366
  i,
367
- c
367
+ u
368
368
  ]);
369
369
  return [
370
370
  a,
371
371
  s
372
372
  ];
373
373
  }
374
- function or({ defaultProp: e, onChange: o }) {
375
- const t = M(e), [n] = t, i = A(n), r = ue(o);
374
+ function nr({ defaultProp: e, onChange: n }) {
375
+ const t = M(e), [o] = t, i = A(o), r = ce(n);
376
376
  return T(() => {
377
- i.current !== n && (r(n), i.current = n);
377
+ i.current !== o && (r(o), i.current = o);
378
378
  }, [
379
- n,
379
+ o,
380
380
  i,
381
381
  r
382
382
  ]), t;
383
383
  }
384
- const nr = /* @__PURE__ */ ne(void 0);
384
+ const or = /* @__PURE__ */ oe(void 0);
385
385
  function ge(e) {
386
- const o = _e(nr);
387
- return e || o || "ltr";
386
+ const n = _e(or);
387
+ return e || n || "ltr";
388
388
  }
389
389
  const ee = "rovingFocusGroup.onEntryFocus", ar = {
390
390
  bubbles: !1,
391
391
  cancelable: !0
392
- }, se = "RovingFocusGroup", [ie, ve, ir] = Qe(se), [cr, ye] = Z(se, [
392
+ }, se = "RovingFocusGroup", [ie, ve, ir] = Qe(se), [ur, ye] = Z(se, [
393
393
  ir
394
- ]), [ur, sr] = cr(se), dr = /* @__PURE__ */ I((e, o) => /* @__PURE__ */ b(ie.Provider, {
394
+ ]), [cr, sr] = ur(se), dr = /* @__PURE__ */ I((e, n) => /* @__PURE__ */ b(ie.Provider, {
395
395
  scope: e.__scopeRovingFocusGroup
396
396
  }, /* @__PURE__ */ b(ie.Slot, {
397
397
  scope: e.__scopeRovingFocusGroup
398
398
  }, /* @__PURE__ */ b(pr, v({}, e, {
399
- ref: o
400
- }))))), pr = /* @__PURE__ */ I((e, o) => {
401
- const { __scopeRovingFocusGroup: t, orientation: n, loop: i = !1, dir: r, currentTabStopId: a, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: s, onEntryFocus: u, ..._ } = e, p = A(null), f = F(o, p), l = ge(r), [d = null, m] = he({
399
+ ref: n
400
+ }))))), pr = /* @__PURE__ */ I((e, n) => {
401
+ const { __scopeRovingFocusGroup: t, orientation: o, loop: i = !1, dir: r, currentTabStopId: a, defaultCurrentTabStopId: u, onCurrentTabStopIdChange: s, onEntryFocus: c, ..._ } = e, p = A(null), f = F(n, p), l = ge(r), [d = null, m] = he({
402
402
  prop: a,
403
- defaultProp: c,
403
+ defaultProp: u,
404
404
  onChange: s
405
- }), [g, $] = M(!1), h = ue(u), j = ve(t), E = A(!1), [J, pe] = M(0);
405
+ }), [g, $] = M(!1), h = ce(c), j = ve(t), E = A(!1), [J, pe] = M(0);
406
406
  return T(() => {
407
407
  const R = p.current;
408
408
  if (R)
409
409
  return R.addEventListener(ee, h), () => R.removeEventListener(ee, h);
410
410
  }, [
411
411
  h
412
- ]), /* @__PURE__ */ b(ur, {
412
+ ]), /* @__PURE__ */ b(cr, {
413
413
  scope: t,
414
- orientation: n,
414
+ orientation: o,
415
415
  dir: l,
416
416
  loop: i,
417
417
  currentTabStopId: d,
@@ -439,7 +439,7 @@ const ee = "rovingFocusGroup.onEntryFocus", ar = {
439
439
  )
440
440
  }, /* @__PURE__ */ b(q.div, v({
441
441
  tabIndex: g || J === 0 ? -1 : 0,
442
- "data-orientation": n
442
+ "data-orientation": o
443
443
  }, _, {
444
444
  ref: f,
445
445
  style: {
@@ -477,39 +477,39 @@ const ee = "rovingFocusGroup.onEntryFocus", ar = {
477
477
  () => $(!1)
478
478
  )
479
479
  })));
480
- }), lr = "RovingFocusGroupItem", fr = /* @__PURE__ */ I((e, o) => {
481
- const { __scopeRovingFocusGroup: t, focusable: n = !0, active: i = !1, tabStopId: r, ...a } = e, c = tr(), s = r || c, u = sr(lr, t), _ = u.currentTabStopId === s, p = ve(t), { onFocusableItemAdd: f, onFocusableItemRemove: l } = u;
480
+ }), lr = "RovingFocusGroupItem", fr = /* @__PURE__ */ I((e, n) => {
481
+ const { __scopeRovingFocusGroup: t, focusable: o = !0, active: i = !1, tabStopId: r, ...a } = e, u = tr(), s = r || u, c = sr(lr, t), _ = c.currentTabStopId === s, p = ve(t), { onFocusableItemAdd: f, onFocusableItemRemove: l } = c;
482
482
  return T(() => {
483
- if (n)
483
+ if (o)
484
484
  return f(), () => l();
485
485
  }, [
486
- n,
486
+ o,
487
487
  f,
488
488
  l
489
489
  ]), /* @__PURE__ */ b(ie.ItemSlot, {
490
490
  scope: t,
491
491
  id: s,
492
- focusable: n,
492
+ focusable: o,
493
493
  active: i
494
494
  }, /* @__PURE__ */ b(q.span, v({
495
495
  tabIndex: _ ? 0 : -1,
496
- "data-orientation": u.orientation
496
+ "data-orientation": c.orientation
497
497
  }, a, {
498
- ref: o,
498
+ ref: n,
499
499
  onMouseDown: x(e.onMouseDown, (d) => {
500
- n ? u.onItemFocus(s) : d.preventDefault();
500
+ o ? c.onItemFocus(s) : d.preventDefault();
501
501
  }),
502
502
  onFocus: x(
503
503
  e.onFocus,
504
- () => u.onItemFocus(s)
504
+ () => c.onItemFocus(s)
505
505
  ),
506
506
  onKeyDown: x(e.onKeyDown, (d) => {
507
507
  if (d.key === "Tab" && d.shiftKey) {
508
- u.onItemShiftTab();
508
+ c.onItemShiftTab();
509
509
  return;
510
510
  }
511
511
  if (d.target !== d.currentTarget) return;
512
- const m = br(d, u.orientation, u.dir);
512
+ const m = br(d, c.orientation, c.dir);
513
513
  if (m !== void 0) {
514
514
  d.preventDefault();
515
515
  let $ = p().filter(
@@ -521,7 +521,7 @@ const ee = "rovingFocusGroup.onEntryFocus", ar = {
521
521
  else if (m === "prev" || m === "next") {
522
522
  m === "prev" && $.reverse();
523
523
  const h = $.indexOf(d.currentTarget);
524
- $ = u.loop ? $r($, h + 1) : $.slice(h + 1);
524
+ $ = c.loop ? $r($, h + 1) : $.slice(h + 1);
525
525
  }
526
526
  setTimeout(
527
527
  () => Re($)
@@ -539,88 +539,88 @@ const ee = "rovingFocusGroup.onEntryFocus", ar = {
539
539
  PageDown: "last",
540
540
  End: "last"
541
541
  };
542
- function mr(e, o) {
543
- return o !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
542
+ function mr(e, n) {
543
+ return n !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
544
544
  }
545
- function br(e, o, t) {
546
- const n = mr(e.key, t);
547
- if (!(o === "vertical" && [
545
+ function br(e, n, t) {
546
+ const o = mr(e.key, t);
547
+ if (!(n === "vertical" && [
548
548
  "ArrowLeft",
549
549
  "ArrowRight"
550
- ].includes(n)) && !(o === "horizontal" && [
550
+ ].includes(o)) && !(n === "horizontal" && [
551
551
  "ArrowUp",
552
552
  "ArrowDown"
553
- ].includes(n)))
554
- return _r[n];
553
+ ].includes(o)))
554
+ return _r[o];
555
555
  }
556
556
  function Re(e) {
557
- const o = document.activeElement;
557
+ const n = document.activeElement;
558
558
  for (const t of e)
559
- if (t === o || (t.focus(), document.activeElement !== o)) return;
559
+ if (t === n || (t.focus(), document.activeElement !== n)) return;
560
560
  }
561
- function $r(e, o) {
561
+ function $r(e, n) {
562
562
  return e.map(
563
- (t, n) => e[(o + n) % e.length]
563
+ (t, o) => e[(n + o) % e.length]
564
564
  );
565
565
  }
566
566
  const hr = dr, gr = fr;
567
567
  function vr(e) {
568
- const [o, t] = M(void 0);
568
+ const [n, t] = M(void 0);
569
569
  return W(() => {
570
570
  if (e) {
571
571
  t({
572
572
  width: e.offsetWidth,
573
573
  height: e.offsetHeight
574
574
  });
575
- const n = new ResizeObserver((i) => {
575
+ const o = new ResizeObserver((i) => {
576
576
  if (!Array.isArray(i) || !i.length) return;
577
577
  const r = i[0];
578
- let a, c;
578
+ let a, u;
579
579
  if ("borderBoxSize" in r) {
580
- const s = r.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
581
- a = u.inlineSize, c = u.blockSize;
580
+ const s = r.borderBoxSize, c = Array.isArray(s) ? s[0] : s;
581
+ a = c.inlineSize, u = c.blockSize;
582
582
  } else
583
- a = e.offsetWidth, c = e.offsetHeight;
583
+ a = e.offsetWidth, u = e.offsetHeight;
584
584
  t({
585
585
  width: a,
586
- height: c
586
+ height: u
587
587
  });
588
588
  });
589
- return n.observe(e, {
589
+ return o.observe(e, {
590
590
  box: "border-box"
591
- }), () => n.unobserve(e);
591
+ }), () => o.unobserve(e);
592
592
  } else
593
593
  t(void 0);
594
594
  }, [
595
595
  e
596
- ]), o;
596
+ ]), n;
597
597
  }
598
598
  function yr(e) {
599
- const o = A({
599
+ const n = A({
600
600
  value: e,
601
601
  previous: e
602
602
  });
603
- return G(() => (o.current.value !== e && (o.current.previous = o.current.value, o.current.value = e), o.current.previous), [
603
+ return G(() => (n.current.value !== e && (n.current.previous = n.current.value, n.current.value = e), n.current.previous), [
604
604
  e
605
605
  ]);
606
606
  }
607
- function Rr(e, o) {
608
- return qe((t, n) => {
609
- const i = o[t][n];
607
+ function Rr(e, n) {
608
+ return qe((t, o) => {
609
+ const i = n[t][o];
610
610
  return i ?? t;
611
611
  }, e);
612
612
  }
613
613
  const Ce = (e) => {
614
- const { present: o, children: t } = e, n = Cr(o), i = typeof t == "function" ? t({
615
- present: n.isPresent
616
- }) : P.only(t), r = F(n.ref, i.ref);
617
- return typeof t == "function" || n.isPresent ? /* @__PURE__ */ X(i, {
614
+ const { present: n, children: t } = e, o = Cr(n), i = typeof t == "function" ? t({
615
+ present: o.isPresent
616
+ }) : P.only(t), r = F(o.ref, i.ref);
617
+ return typeof t == "function" || o.isPresent ? /* @__PURE__ */ X(i, {
618
618
  ref: r
619
619
  }) : null;
620
620
  };
621
621
  Ce.displayName = "Presence";
622
622
  function Cr(e) {
623
- const [o, t] = M(), n = A({}), i = A(e), r = A("none"), a = e ? "mounted" : "unmounted", [c, s] = Rr(a, {
623
+ const [n, t] = M(), o = A({}), i = A(e), r = A("none"), a = e ? "mounted" : "unmounted", [u, s] = Rr(a, {
624
624
  mounted: {
625
625
  UNMOUNT: "unmounted",
626
626
  ANIMATION_OUT: "unmountSuspended"
@@ -634,53 +634,53 @@ function Cr(e) {
634
634
  }
635
635
  });
636
636
  return T(() => {
637
- const u = V(n.current);
638
- r.current = c === "mounted" ? u : "none";
637
+ const c = V(o.current);
638
+ r.current = u === "mounted" ? c : "none";
639
639
  }, [
640
- c
640
+ u
641
641
  ]), W(() => {
642
- const u = n.current, _ = i.current;
642
+ const c = o.current, _ = i.current;
643
643
  if (_ !== e) {
644
- const f = r.current, l = V(u);
645
- e ? s("MOUNT") : l === "none" || (u == null ? void 0 : u.display) === "none" ? s("UNMOUNT") : s(_ && f !== l ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
644
+ const f = r.current, l = V(c);
645
+ e ? s("MOUNT") : l === "none" || (c == null ? void 0 : c.display) === "none" ? s("UNMOUNT") : s(_ && f !== l ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
646
646
  }
647
647
  }, [
648
648
  e,
649
649
  s
650
650
  ]), W(() => {
651
- if (o) {
652
- const u = (p) => {
653
- const l = V(n.current).includes(p.animationName);
654
- p.target === o && l && je(
651
+ if (n) {
652
+ const c = (p) => {
653
+ const l = V(o.current).includes(p.animationName);
654
+ p.target === n && l && je(
655
655
  () => s("ANIMATION_END")
656
656
  );
657
657
  }, _ = (p) => {
658
- p.target === o && (r.current = V(n.current));
658
+ p.target === n && (r.current = V(o.current));
659
659
  };
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);
660
+ return n.addEventListener("animationstart", _), n.addEventListener("animationcancel", c), n.addEventListener("animationend", c), () => {
661
+ n.removeEventListener("animationstart", _), n.removeEventListener("animationcancel", c), n.removeEventListener("animationend", c);
662
662
  };
663
663
  } else
664
664
  s("ANIMATION_END");
665
665
  }, [
666
- o,
666
+ n,
667
667
  s
668
668
  ]), {
669
669
  isPresent: [
670
670
  "mounted",
671
671
  "unmountSuspended"
672
- ].includes(c),
673
- ref: w((u) => {
674
- u && (n.current = getComputedStyle(u)), t(u);
672
+ ].includes(u),
673
+ ref: w((c) => {
674
+ c && (o.current = getComputedStyle(c)), t(c);
675
675
  }, [])
676
676
  };
677
677
  }
678
678
  function V(e) {
679
679
  return (e == null ? void 0 : e.animationName) || "none";
680
680
  }
681
- const Ie = "Radio", [Ir, Ae] = Z(Ie), [Ar, Nr] = Ir(Ie), Sr = /* @__PURE__ */ I((e, o) => {
682
- const { __scopeRadio: t, name: n, checked: i = !1, required: r, disabled: a, value: c = "on", onCheck: s, ...u } = e, [_, p] = M(null), f = F(
683
- o,
681
+ const Ie = "Radio", [Ir, Ae] = Z(Ie), [Ar, Nr] = Ir(Ie), Sr = /* @__PURE__ */ I((e, n) => {
682
+ const { __scopeRadio: t, name: o, checked: i = !1, required: r, disabled: a, value: u = "on", onCheck: s, ...c } = e, [_, p] = M(null), f = F(
683
+ n,
684
684
  (m) => p(m)
685
685
  ), l = A(!1), d = _ ? !!_.closest("form") : !0;
686
686
  return /* @__PURE__ */ b(Ar, {
@@ -694,8 +694,8 @@ const Ie = "Radio", [Ir, Ae] = Z(Ie), [Ar, Nr] = Ir(Ie), Sr = /* @__PURE__ */ I(
694
694
  "data-state": Ne(i),
695
695
  "data-disabled": a ? "" : void 0,
696
696
  disabled: a,
697
- value: c
698
- }, u, {
697
+ value: u
698
+ }, c, {
699
699
  ref: f,
700
700
  onClick: x(e.onClick, (m) => {
701
701
  i || s == null || s(), d && (l.current = m.isPropagationStopped(), l.current || m.stopPropagation());
@@ -703,8 +703,8 @@ const Ie = "Radio", [Ir, Ae] = Z(Ie), [Ar, Nr] = Ir(Ie), Sr = /* @__PURE__ */ I(
703
703
  })), d && /* @__PURE__ */ b(Pr, {
704
704
  control: _,
705
705
  bubbles: !l.current,
706
- name: n,
707
- value: c,
706
+ name: o,
707
+ value: u,
708
708
  checked: i,
709
709
  required: r,
710
710
  disabled: a,
@@ -712,30 +712,30 @@ const Ie = "Radio", [Ir, Ae] = Z(Ie), [Ar, Nr] = Ir(Ie), Sr = /* @__PURE__ */ I(
712
712
  transform: "translateX(-100%)"
713
713
  }
714
714
  }));
715
- }), xr = "RadioIndicator", Er = /* @__PURE__ */ I((e, o) => {
716
- const { __scopeRadio: t, forceMount: n, ...i } = e, r = Nr(xr, t);
715
+ }), xr = "RadioIndicator", Er = /* @__PURE__ */ I((e, n) => {
716
+ const { __scopeRadio: t, forceMount: o, ...i } = e, r = Nr(xr, t);
717
717
  return /* @__PURE__ */ b(Ce, {
718
- present: n || r.checked
718
+ present: o || r.checked
719
719
  }, /* @__PURE__ */ b(q.span, v({
720
720
  "data-state": Ne(r.checked),
721
721
  "data-disabled": r.disabled ? "" : void 0
722
722
  }, i, {
723
- ref: o
723
+ ref: n
724
724
  })));
725
725
  }), Pr = (e) => {
726
- const { control: o, checked: t, bubbles: n = !0, ...i } = e, r = A(null), a = yr(t), c = vr(o);
726
+ const { control: n, checked: t, bubbles: o = !0, ...i } = e, r = A(null), a = yr(t), u = vr(n);
727
727
  return T(() => {
728
- const s = r.current, u = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(u, "checked").set;
728
+ const s = r.current, c = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(c, "checked").set;
729
729
  if (a !== t && p) {
730
730
  const f = new Event("click", {
731
- bubbles: n
731
+ bubbles: o
732
732
  });
733
733
  p.call(s, t), s.dispatchEvent(f);
734
734
  }
735
735
  }, [
736
736
  a,
737
737
  t,
738
- n
738
+ o
739
739
  ]), /* @__PURE__ */ b("input", v({
740
740
  type: "radio",
741
741
  "aria-hidden": !0,
@@ -745,7 +745,7 @@ const Ie = "Radio", [Ir, Ae] = Z(Ie), [Ar, Nr] = Ir(Ie), Sr = /* @__PURE__ */ I(
745
745
  ref: r,
746
746
  style: {
747
747
  ...e.style,
748
- ...c,
748
+ ...u,
749
749
  position: "absolute",
750
750
  pointerEvents: "none",
751
751
  opacity: 0,
@@ -764,17 +764,17 @@ const Tr = [
764
764
  ], Se = "RadioGroup", [Or, dt] = Z(Se, [
765
765
  ye,
766
766
  Ae
767
- ]), xe = ye(), Ee = Ae(), [kr, wr] = Or(Se), Mr = /* @__PURE__ */ I((e, o) => {
768
- const { __scopeRadioGroup: t, name: n, defaultValue: i, value: r, required: a = !1, disabled: c = !1, orientation: s, dir: u, loop: _ = !0, onValueChange: p, ...f } = e, l = xe(t), d = ge(u), [m, g] = he({
767
+ ]), xe = ye(), Ee = Ae(), [kr, wr] = Or(Se), Mr = /* @__PURE__ */ I((e, n) => {
768
+ const { __scopeRadioGroup: t, name: o, defaultValue: i, value: r, required: a = !1, disabled: u = !1, orientation: s, dir: c, loop: _ = !0, onValueChange: p, ...f } = e, l = xe(t), d = ge(c), [m, g] = he({
769
769
  prop: r,
770
770
  defaultProp: i,
771
771
  onChange: p
772
772
  });
773
773
  return /* @__PURE__ */ b(kr, {
774
774
  scope: t,
775
- name: n,
775
+ name: o,
776
776
  required: a,
777
- disabled: c,
777
+ disabled: u,
778
778
  value: m,
779
779
  onValueChange: g
780
780
  }, /* @__PURE__ */ b(hr, v({
@@ -787,13 +787,13 @@ const Tr = [
787
787
  role: "radiogroup",
788
788
  "aria-required": a,
789
789
  "aria-orientation": s,
790
- "data-disabled": c ? "" : void 0,
790
+ "data-disabled": u ? "" : void 0,
791
791
  dir: d
792
792
  }, f, {
793
- ref: o
793
+ ref: n
794
794
  }))));
795
- }), Fr = "RadioGroupItem", Dr = /* @__PURE__ */ I((e, o) => {
796
- const { __scopeRadioGroup: t, disabled: n, ...i } = e, r = wr(Fr, t), a = r.disabled || n, c = xe(t), s = Ee(t), u = A(null), _ = F(o, u), p = r.value === i.value, f = A(!1);
795
+ }), Fr = "RadioGroupItem", Dr = /* @__PURE__ */ I((e, n) => {
796
+ const { __scopeRadioGroup: t, disabled: o, ...i } = e, r = wr(Fr, t), a = r.disabled || o, u = xe(t), s = Ee(t), c = A(null), _ = F(n, c), p = r.value === i.value, f = A(!1);
797
797
  return T(() => {
798
798
  const l = (m) => {
799
799
  Tr.includes(m.key) && (f.current = !0);
@@ -803,7 +803,7 @@ const Tr = [
803
803
  };
804
804
  }, []), /* @__PURE__ */ b(gr, v({
805
805
  asChild: !0
806
- }, c, {
806
+ }, u, {
807
807
  focusable: !a,
808
808
  active: p
809
809
  }), /* @__PURE__ */ b(Sr, v({
@@ -819,13 +819,13 @@ const Tr = [
819
819
  }),
820
820
  onFocus: x(i.onFocus, () => {
821
821
  var l;
822
- f.current && ((l = u.current) === null || l === void 0 || l.click());
822
+ f.current && ((l = c.current) === null || l === void 0 || l.click());
823
823
  })
824
824
  })));
825
- }), Lr = /* @__PURE__ */ I((e, o) => {
826
- const { __scopeRadioGroup: t, ...n } = e, i = Ee(t);
827
- return /* @__PURE__ */ b(Er, v({}, i, n, {
828
- ref: o
825
+ }), Lr = /* @__PURE__ */ I((e, n) => {
826
+ const { __scopeRadioGroup: t, ...o } = e, i = Ee(t);
827
+ return /* @__PURE__ */ b(Er, v({}, i, o, {
828
+ ref: n
829
829
  }));
830
830
  }), Gr = Mr, Ur = Dr, qr = Lr;
831
831
  function jr(e) {
@@ -839,15 +839,15 @@ var Pe = { exports: {} };
839
839
  */
840
840
  (function(e) {
841
841
  (function() {
842
- var o = {}.hasOwnProperty;
842
+ var n = {}.hasOwnProperty;
843
843
  function t() {
844
844
  for (var r = "", a = 0; a < arguments.length; a++) {
845
- var c = arguments[a];
846
- c && (r = i(r, n.call(this, c)));
845
+ var u = arguments[a];
846
+ u && (r = i(r, o.call(this, u)));
847
847
  }
848
848
  return r;
849
849
  }
850
- function n(r) {
850
+ function o(r) {
851
851
  if (typeof r == "string" || typeof r == "number")
852
852
  return this && this[r] || r;
853
853
  if (typeof r != "object")
@@ -857,8 +857,8 @@ var Pe = { exports: {} };
857
857
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
858
858
  return r.toString();
859
859
  var a = "";
860
- for (var c in r)
861
- o.call(r, c) && r[c] && (a = i(a, this && this[c] || c));
860
+ for (var u in r)
861
+ n.call(r, u) && r[u] && (a = i(a, this && this[u] || u));
862
862
  return a;
863
863
  }
864
864
  function i(r, a) {
@@ -900,15 +900,15 @@ var Te = { exports: {} };
900
900
  */
901
901
  (function(e) {
902
902
  (function() {
903
- var o = {}.hasOwnProperty;
903
+ var n = {}.hasOwnProperty;
904
904
  function t() {
905
905
  for (var r = "", a = 0; a < arguments.length; a++) {
906
- var c = arguments[a];
907
- c && (r = i(r, n(c)));
906
+ var u = arguments[a];
907
+ u && (r = i(r, o(u)));
908
908
  }
909
909
  return r;
910
910
  }
911
- function n(r) {
911
+ function o(r) {
912
912
  if (typeof r == "string" || typeof r == "number")
913
913
  return r;
914
914
  if (typeof r != "object")
@@ -918,8 +918,8 @@ var Te = { exports: {} };
918
918
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
919
919
  return r.toString();
920
920
  var a = "";
921
- for (var c in r)
922
- o.call(r, c) && r[c] && (a = i(a, c));
921
+ for (var u in r)
922
+ n.call(r, u) && r[u] && (a = i(a, u));
923
923
  return a;
924
924
  }
925
925
  function i(r, a) {
@@ -955,15 +955,15 @@ const Yr = /* @__PURE__ */ Hr(Kr), D = {
955
955
  ADDITIONAL100MEDIUM: "additional-100-medium",
956
956
  OVERLINE100: "overline-100",
957
957
  OVERLINE200: "overline-200"
958
- }, L = "purpur-paragraph", ce = ({
958
+ }, L = "purpur-paragraph", ue = ({
959
959
  ["data-testid"]: e,
960
- children: o,
960
+ children: n,
961
961
  className: t,
962
- disabled: n,
962
+ disabled: o,
963
963
  enableHyphenation: i = !1,
964
964
  negative: r = !1,
965
965
  variant: a = Wr.PARAGRAPH100,
966
- ...c
966
+ ...u
967
967
  }) => {
968
968
  const s = Yr([
969
969
  t,
@@ -971,13 +971,13 @@ const Yr = /* @__PURE__ */ Hr(Kr), D = {
971
971
  D[`${L}--${a}`],
972
972
  {
973
973
  [D[`${L}--hyphens`]]: i,
974
- [D[`${L}--disabled`]]: n,
974
+ [D[`${L}--disabled`]]: o,
975
975
  [D[`${L}--negative`]]: r
976
976
  }
977
977
  ]);
978
- return /* @__PURE__ */ y("p", { ...c, className: s, "data-testid": e, children: o });
978
+ return /* @__PURE__ */ y("p", { ...u, className: s, "data-testid": e, children: n });
979
979
  };
980
- ce.displayName = "Paragraph";
980
+ ue.displayName = "Paragraph";
981
981
  function Xr(e) {
982
982
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
983
983
  }
@@ -989,15 +989,15 @@ var Oe = { exports: {} };
989
989
  */
990
990
  (function(e) {
991
991
  (function() {
992
- var o = {}.hasOwnProperty;
992
+ var n = {}.hasOwnProperty;
993
993
  function t() {
994
994
  for (var r = "", a = 0; a < arguments.length; a++) {
995
- var c = arguments[a];
996
- c && (r = i(r, n(c)));
995
+ var u = arguments[a];
996
+ u && (r = i(r, o(u)));
997
997
  }
998
998
  return r;
999
999
  }
1000
- function n(r) {
1000
+ function o(r) {
1001
1001
  if (typeof r == "string" || typeof r == "number")
1002
1002
  return r;
1003
1003
  if (typeof r != "object")
@@ -1007,8 +1007,8 @@ var Oe = { exports: {} };
1007
1007
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
1008
1008
  return r.toString();
1009
1009
  var a = "";
1010
- for (var c in r)
1011
- o.call(r, c) && r[c] && (a = i(a, c));
1010
+ for (var u in r)
1011
+ n.call(r, u) && r[u] && (a = i(a, u));
1012
1012
  return a;
1013
1013
  }
1014
1014
  function i(r, a) {
@@ -1030,9 +1030,9 @@ const Jr = /* @__PURE__ */ Xr(Zr), Qr = "_loading_93tal_1", re = {
1030
1030
  "purpur-skeleton--full": "_purpur-skeleton--full_93tal_48"
1031
1031
  }, te = "purpur-skeleton", ke = ({
1032
1032
  className: e,
1033
- ["data-testid"]: o,
1033
+ ["data-testid"]: n,
1034
1034
  radius: t = "xs",
1035
- style: n,
1035
+ style: o,
1036
1036
  negative: i = !1,
1037
1037
  ...r
1038
1038
  }) => {
@@ -1042,19 +1042,19 @@ const Jr = /* @__PURE__ */ Xr(Zr), Qr = "_loading_93tal_1", re = {
1042
1042
  re[`${te}--${i ? "negative" : "default"}`],
1043
1043
  re[`${te}--${t}`]
1044
1044
  ]);
1045
- return /* @__PURE__ */ y("div", { className: a, style: n, "data-testid": o, ...r });
1045
+ return /* @__PURE__ */ y("div", { className: a, style: o, "data-testid": n, ...r });
1046
1046
  };
1047
1047
  ke.displayName = "Skeleton";
1048
1048
  const H = "purpur-radio-card-group__item-image", et = (e) => !!(e != null && e.src) && !!e.altText, rt = ({
1049
1049
  src: e,
1050
- altText: o,
1050
+ altText: n,
1051
1051
  noPlaceholder: t,
1052
- loading: n = "lazy",
1052
+ loading: o = "lazy",
1053
1053
  ["data-testid"]: i
1054
1054
  }) => {
1055
- const [r, a] = M(!1), c = () => a(!0), s = C(H, {
1055
+ const [r, a] = M(!1), u = () => a(!0), s = C(H, {
1056
1056
  [`${H}--loaded`]: r
1057
- }), u = C(`${H}-placeholder`, {
1057
+ }), c = C(`${H}-placeholder`, {
1058
1058
  [`${H}-placeholder--loaded`]: r
1059
1059
  });
1060
1060
  return /* @__PURE__ */ k(Le, { children: [
@@ -1064,59 +1064,59 @@ const H = "purpur-radio-card-group__item-image", et = (e) => !!(e != null && e.s
1064
1064
  "data-testid": i,
1065
1065
  className: s,
1066
1066
  src: e,
1067
- alt: o,
1068
- loading: n,
1069
- onLoad: c
1067
+ alt: n,
1068
+ loading: o,
1069
+ onLoad: u
1070
1070
  }
1071
1071
  ),
1072
- !t && /* @__PURE__ */ y(ke, { className: u })
1072
+ !t && /* @__PURE__ */ y(ke, { className: c })
1073
1073
  ] });
1074
- }, S = "purpur-radio-card-group__item", oe = (e, { disabled: o }) => typeof e == "function" ? e({ disabled: o }) : e, tt = ({ title: e, ...o }, t) => {
1074
+ }, S = "purpur-radio-card-group__item", ne = (e, { disabled: n }) => typeof e == "function" ? e({ disabled: n }) : e, tt = ({ title: e, ...n }, t) => {
1075
1075
  const {
1076
- ["data-testid"]: n,
1076
+ ["data-testid"]: o,
1077
1077
  body: i,
1078
1078
  children: r,
1079
1079
  disabled: a,
1080
- id: c,
1080
+ id: u,
1081
1081
  image: s,
1082
- required: u,
1082
+ required: c,
1083
1083
  value: _
1084
- } = o, p = { title: e, ...o };
1084
+ } = n, p = { title: e, ...n };
1085
1085
  return /* @__PURE__ */ k("div", { className: C(`${S}-container`), ref: t, children: [
1086
1086
  /* @__PURE__ */ k(
1087
1087
  Ur,
1088
1088
  {
1089
1089
  className: C(S),
1090
- "data-testid": n,
1090
+ "data-testid": o,
1091
1091
  disabled: a,
1092
- id: c,
1093
- required: u,
1092
+ id: u,
1093
+ required: c,
1094
1094
  value: _,
1095
1095
  children: [
1096
- s && /* @__PURE__ */ y("span", { className: C(`${S}-image-container`), children: et(s) ? /* @__PURE__ */ y(rt, { ...s, "data-testid": n && `${n}-image` }) : oe(s, p) }),
1096
+ s && /* @__PURE__ */ y("span", { className: C(`${S}-image-container`), children: et(s) ? /* @__PURE__ */ y(rt, { ...s, "data-testid": o && `${o}-image` }) : ne(s, p) }),
1097
1097
  /* @__PURE__ */ k("span", { className: C(`${S}-content`), children: [
1098
1098
  /* @__PURE__ */ k("span", { className: C(`${S}-top-container`), children: [
1099
1099
  typeof e == "string" ? /* @__PURE__ */ y(
1100
- ce,
1100
+ ue,
1101
1101
  {
1102
1102
  className: C(`${S}-title`),
1103
- "data-testid": n && `${n}-title`,
1103
+ "data-testid": o && `${o}-title`,
1104
1104
  variant: "paragraph-100",
1105
1105
  disabled: a,
1106
1106
  children: e
1107
1107
  }
1108
- ) : oe(e, p),
1108
+ ) : ne(e, p),
1109
1109
  /* @__PURE__ */ y("span", { className: C(`${S}-radio`), children: /* @__PURE__ */ y(qr, { className: C(`${S}-indicator`) }) })
1110
1110
  ] }),
1111
1111
  i && /* @__PURE__ */ y("span", { className: C(`${S}-bottom-container`), children: typeof i == "string" ? /* @__PURE__ */ y(
1112
- ce,
1112
+ ue,
1113
1113
  {
1114
- "data-testid": n && `${n}-body`,
1114
+ "data-testid": o && `${o}-body`,
1115
1115
  variant: "paragraph-100",
1116
1116
  disabled: a,
1117
1117
  children: i
1118
1118
  }
1119
- ) : oe(i, p) })
1119
+ ) : ne(i, p) })
1120
1120
  ] })
1121
1121
  ]
1122
1122
  }
@@ -1125,38 +1125,38 @@ const H = "purpur-radio-card-group__item-image", et = (e) => !!(e != null && e.s
1125
1125
  ] });
1126
1126
  }, de = I(tt);
1127
1127
  de.displayName = "RadioCardItem";
1128
- const ot = (e) => U(e) && (e == null ? void 0 : e.type) === de, pt = ["horizontal", "vertical"], lt = ["right", "left"], K = "purpur-radio-card-group", nt = ({
1128
+ const nt = (e) => U(e) && (e == null ? void 0 : e.type) === de, pt = ["horizontal", "vertical"], lt = ["right", "left"], K = "purpur-radio-card-group", ot = ({
1129
1129
  "data-testid": e,
1130
- "aria-labelledby": o,
1130
+ "aria-labelledby": n,
1131
1131
  children: t,
1132
- className: n,
1132
+ className: o,
1133
1133
  items: i,
1134
1134
  label: r,
1135
1135
  loop: a = !0,
1136
- orientation: c = "vertical",
1136
+ orientation: u = "vertical",
1137
1137
  radioPosition: s = "right",
1138
- ...u
1138
+ ...c
1139
1139
  }, _) => {
1140
- const p = P.toArray(t).filter(ot);
1141
- return /* @__PURE__ */ k("div", { className: C(n, `${K}__container`), ref: _, children: [
1140
+ const p = P.toArray(t).filter(nt);
1141
+ return /* @__PURE__ */ k("div", { className: C(o, `${K}__container`), ref: _, children: [
1142
1142
  r && /* @__PURE__ */ y(
1143
1143
  be,
1144
1144
  {
1145
1145
  "data-testid": e ? `${e}-label` : void 0,
1146
- id: `${u.id}-label`,
1146
+ id: `${c.id}-label`,
1147
1147
  tag: "h2",
1148
1148
  variant: "subsection-100",
1149
- children: `${u.required ? "* " : ""}${r}`
1149
+ children: `${c.required ? "* " : ""}${r}`
1150
1150
  }
1151
1151
  ),
1152
1152
  (!!(i != null && i.length) || p.length) && /* @__PURE__ */ k(
1153
1153
  Gr,
1154
1154
  {
1155
- ...u,
1156
- "aria-labelledby": o || (r ? `${u.id}-label` : void 0),
1155
+ ...c,
1156
+ "aria-labelledby": n || (r ? `${c.id}-label` : void 0),
1157
1157
  className: C(
1158
1158
  K,
1159
- `${K}--${c}`,
1159
+ `${K}--${u}`,
1160
1160
  `${K}--radio-${s}`
1161
1161
  ),
1162
1162
  "data-testid": e,
@@ -1166,20 +1166,20 @@ const ot = (e) => U(e) && (e == null ? void 0 : e.type) === de, pt = ["horizonta
1166
1166
  de,
1167
1167
  {
1168
1168
  ...f,
1169
- disabled: f.disabled || u.disabled,
1169
+ disabled: f.disabled || c.disabled,
1170
1170
  "data-testid": e ? `${e}-item` : void 0
1171
1171
  },
1172
1172
  f.id
1173
1173
  )),
1174
1174
  P.map(
1175
1175
  p,
1176
- (f) => X(f, { disabled: f.props.disabled || u.disabled })
1176
+ (f) => X(f, { disabled: f.props.disabled || c.disabled })
1177
1177
  )
1178
1178
  ]
1179
1179
  }
1180
1180
  )
1181
1181
  ] });
1182
- }, at = I(nt);
1182
+ }, at = I(ot);
1183
1183
  at.displayName = "RadioCardGroup";
1184
1184
  export {
1185
1185
  pt as RADIO_CARD_GROUP_ORIENTATION,