@purpurds/radio-card-group 5.20.0 → 5.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { jsx as y, jsxs as w, Fragment as De } from "react/jsx-runtime";
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 k, createContext as ne, useMemo as G, createElement as b, useContext as _e, forwardRef as I, Children as P, isValidElement as U, cloneElement as X, Fragment as Le, useEffect as T, useLayoutEffect as Ge, useRef as A, useState as M, useReducer as Ue } from "react";
4
- import { flushSync as qe } from "react-dom";
5
- function je(e) {
3
+ import N, { useCallback as w, createContext as ne, useMemo as G, createElement as b, useContext as _e, forwardRef as I, Children as P, isValidElement as U, cloneElement as X, Fragment as Ge, useEffect as T, useLayoutEffect as Ue, useRef as A, useState as M, useReducer as qe } from "react";
4
+ import { flushSync as je } from "react-dom";
5
+ function Be(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
8
  var me = { exports: {} };
@@ -41,8 +41,8 @@ var me = { exports: {} };
41
41
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
42
42
  })();
43
43
  })(me);
44
- var Be = me.exports;
45
- const ze = /* @__PURE__ */ je(Be), B = {
44
+ var ze = me.exports;
45
+ const Ve = /* @__PURE__ */ Be(ze), B = {
46
46
  "purpur-heading": "_purpur-heading_k9fhq_1",
47
47
  "purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
48
48
  "purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
@@ -58,7 +58,7 @@ const ze = /* @__PURE__ */ je(Be), B = {
58
58
  "purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
59
59
  "purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
60
60
  "purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
61
- }, Ve = {
61
+ }, He = {
62
62
  TITLE100: "title-100",
63
63
  TITLE200: "title-200",
64
64
  TITLE300: "title-300",
@@ -74,10 +74,10 @@ const ze = /* @__PURE__ */ je(Be), B = {
74
74
  enableHyphenation: n = !1,
75
75
  negative: i = !1,
76
76
  tag: r,
77
- variant: a = Ve.TITLE100,
77
+ variant: a = He.TITLE100,
78
78
  ...c
79
79
  }) => {
80
- const s = r, u = ze([
80
+ const s = r, u = Ve([
81
81
  t,
82
82
  B[z],
83
83
  B[`${z}--${a}`],
@@ -103,16 +103,16 @@ function x(e, o, { checkForDefaultPrevented: t = !0 } = {}) {
103
103
  if (e == null || e(i), t === !1 || !i.defaultPrevented) return o == null ? void 0 : o(i);
104
104
  };
105
105
  }
106
- function He(e, o) {
106
+ function Ke(e, o) {
107
107
  typeof e == "function" ? e(o) : e != null && (e.current = o);
108
108
  }
109
109
  function $e(...e) {
110
110
  return (o) => e.forEach(
111
- (t) => He(t, o)
111
+ (t) => Ke(t, o)
112
112
  );
113
113
  }
114
114
  function F(...e) {
115
- return k($e(...e), e);
115
+ return w($e(...e), e);
116
116
  }
117
117
  function Z(e, o = []) {
118
118
  let t = [];
@@ -162,10 +162,10 @@ function Z(e, o = []) {
162
162
  };
163
163
  return i.scopeName = e, [
164
164
  n,
165
- Ke(i, ...o)
165
+ Ye(i, ...o)
166
166
  ];
167
167
  }
168
- function Ke(...e) {
168
+ function Ye(...e) {
169
169
  const o = e[0];
170
170
  if (e.length === 1) return o;
171
171
  const t = () => {
@@ -196,7 +196,7 @@ function Ke(...e) {
196
196
  return t.scopeName = o.scopeName, t;
197
197
  }
198
198
  const Y = /* @__PURE__ */ I((e, o) => {
199
- const { children: t, ...n } = e, i = P.toArray(t), r = i.find(We);
199
+ const { children: t, ...n } = e, i = P.toArray(t), r = i.find(Xe);
200
200
  if (r) {
201
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
202
  return /* @__PURE__ */ b(ae, v({}, n, {
@@ -211,16 +211,16 @@ Y.displayName = "Slot";
211
211
  const ae = /* @__PURE__ */ I((e, o) => {
212
212
  const { children: t, ...n } = e;
213
213
  return /* @__PURE__ */ U(t) ? /* @__PURE__ */ X(t, {
214
- ...Xe(n, t.props),
214
+ ...Ze(n, t.props),
215
215
  ref: o ? $e(o, t.ref) : t.ref
216
216
  }) : P.count(t) > 1 ? P.only(null) : null;
217
217
  });
218
218
  ae.displayName = "SlotClone";
219
- const Ye = ({ children: e }) => /* @__PURE__ */ b(Le, null, e);
220
- function We(e) {
221
- return /* @__PURE__ */ U(e) && e.type === Ye;
219
+ const We = ({ children: e }) => /* @__PURE__ */ b(Ge, null, e);
220
+ function Xe(e) {
221
+ return /* @__PURE__ */ U(e) && e.type === We;
222
222
  }
223
- function Xe(e, o) {
223
+ function Ze(e, o) {
224
224
  const t = {
225
225
  ...o
226
226
  };
@@ -241,7 +241,7 @@ function Xe(e, o) {
241
241
  ...t
242
242
  };
243
243
  }
244
- const Ze = [
244
+ const Je = [
245
245
  "a",
246
246
  "button",
247
247
  "div",
@@ -258,7 +258,7 @@ const Ze = [
258
258
  "span",
259
259
  "svg",
260
260
  "ul"
261
- ], q = Ze.reduce((e, o) => {
261
+ ], q = Je.reduce((e, o) => {
262
262
  const t = /* @__PURE__ */ I((n, i) => {
263
263
  const { asChild: r, ...a } = n, c = r ? Y : o;
264
264
  return T(() => {
@@ -272,7 +272,7 @@ const Ze = [
272
272
  [o]: t
273
273
  };
274
274
  }, {});
275
- function Je(e) {
275
+ function Qe(e) {
276
276
  const o = e + "CollectionProvider", [t, n] = Z(o), [i, r] = t(o, {
277
277
  collectionRef: {
278
278
  current: null
@@ -324,15 +324,15 @@ function Je(e) {
324
324
  n
325
325
  ];
326
326
  }
327
- const W = globalThis != null && globalThis.document ? Ge : () => {
328
- }, Qe = fe.useId || (() => {
327
+ const W = globalThis != null && globalThis.document ? Ue : () => {
328
+ }, er = fe.useId || (() => {
329
329
  });
330
- let er = 0;
331
- function rr(e) {
332
- const [o, t] = fe.useState(Qe());
330
+ let rr = 0;
331
+ function tr(e) {
332
+ const [o, t] = fe.useState(er());
333
333
  return W(() => {
334
334
  t(
335
- (n) => n ?? String(er++)
335
+ (n) => n ?? String(rr++)
336
336
  );
337
337
  }, [
338
338
  e
@@ -352,10 +352,10 @@ function ue(e) {
352
352
  }
353
353
  function he({ prop: e, defaultProp: o, onChange: t = () => {
354
354
  } }) {
355
- const [n, i] = tr({
355
+ const [n, i] = or({
356
356
  defaultProp: o,
357
357
  onChange: t
358
- }), r = e !== void 0, a = r ? e : n, c = ue(t), s = k((u) => {
358
+ }), r = e !== void 0, a = r ? e : n, c = ue(t), s = w((u) => {
359
359
  if (r) {
360
360
  const p = typeof u == "function" ? u(e) : u;
361
361
  p !== e && c(p);
@@ -371,7 +371,7 @@ function he({ prop: e, defaultProp: o, onChange: t = () => {
371
371
  s
372
372
  ];
373
373
  }
374
- function tr({ defaultProp: e, onChange: o }) {
374
+ function or({ defaultProp: e, onChange: o }) {
375
375
  const t = M(e), [n] = t, i = A(n), r = ue(o);
376
376
  return T(() => {
377
377
  i.current !== n && (r(n), i.current = n);
@@ -381,23 +381,23 @@ function tr({ defaultProp: e, onChange: o }) {
381
381
  r
382
382
  ]), t;
383
383
  }
384
- const or = /* @__PURE__ */ ne(void 0);
384
+ const nr = /* @__PURE__ */ ne(void 0);
385
385
  function ge(e) {
386
- const o = _e(or);
386
+ const o = _e(nr);
387
387
  return e || o || "ltr";
388
388
  }
389
- const ee = "rovingFocusGroup.onEntryFocus", nr = {
389
+ const ee = "rovingFocusGroup.onEntryFocus", ar = {
390
390
  bubbles: !1,
391
391
  cancelable: !0
392
- }, se = "RovingFocusGroup", [ie, ve, ar] = Je(se), [ir, ye] = Z(se, [
393
- ar
394
- ]), [cr, ur] = ir(se), sr = /* @__PURE__ */ I((e, o) => /* @__PURE__ */ b(ie.Provider, {
392
+ }, se = "RovingFocusGroup", [ie, ve, ir] = Qe(se), [cr, ye] = Z(se, [
393
+ ir
394
+ ]), [ur, sr] = cr(se), dr = /* @__PURE__ */ I((e, o) => /* @__PURE__ */ b(ie.Provider, {
395
395
  scope: e.__scopeRovingFocusGroup
396
396
  }, /* @__PURE__ */ b(ie.Slot, {
397
397
  scope: e.__scopeRovingFocusGroup
398
- }, /* @__PURE__ */ b(dr, v({}, e, {
398
+ }, /* @__PURE__ */ b(pr, v({}, e, {
399
399
  ref: o
400
- }))))), dr = /* @__PURE__ */ I((e, o) => {
400
+ }))))), pr = /* @__PURE__ */ I((e, o) => {
401
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({
402
402
  prop: a,
403
403
  defaultProp: c,
@@ -409,29 +409,29 @@ const ee = "rovingFocusGroup.onEntryFocus", nr = {
409
409
  return R.addEventListener(ee, h), () => R.removeEventListener(ee, h);
410
410
  }, [
411
411
  h
412
- ]), /* @__PURE__ */ b(cr, {
412
+ ]), /* @__PURE__ */ b(ur, {
413
413
  scope: t,
414
414
  orientation: n,
415
415
  dir: l,
416
416
  loop: i,
417
417
  currentTabStopId: d,
418
- onItemFocus: k(
418
+ onItemFocus: w(
419
419
  (R) => m(R),
420
420
  [
421
421
  m
422
422
  ]
423
423
  ),
424
- onItemShiftTab: k(
424
+ onItemShiftTab: w(
425
425
  () => $(!0),
426
426
  []
427
427
  ),
428
- onFocusableItemAdd: k(
428
+ onFocusableItemAdd: w(
429
429
  () => pe(
430
430
  (R) => R + 1
431
431
  ),
432
432
  []
433
433
  ),
434
- onFocusableItemRemove: k(
434
+ onFocusableItemRemove: w(
435
435
  () => pe(
436
436
  (R) => R - 1
437
437
  ),
@@ -452,22 +452,22 @@ const ee = "rovingFocusGroup.onEntryFocus", nr = {
452
452
  onFocus: x(e.onFocus, (R) => {
453
453
  const we = !E.current;
454
454
  if (R.target === R.currentTarget && we && !g) {
455
- const le = new CustomEvent(ee, nr);
455
+ const le = new CustomEvent(ee, ar);
456
456
  if (R.currentTarget.dispatchEvent(le), !le.defaultPrevented) {
457
457
  const Q = j().filter(
458
458
  (O) => O.focusable
459
- ), ke = Q.find(
460
- (O) => O.active
461
459
  ), Me = Q.find(
460
+ (O) => O.active
461
+ ), Fe = Q.find(
462
462
  (O) => O.id === d
463
- ), Fe = [
464
- ke,
463
+ ), De = [
465
464
  Me,
465
+ Fe,
466
466
  ...Q
467
467
  ].filter(Boolean).map(
468
468
  (O) => O.ref.current
469
469
  );
470
- Re(Fe);
470
+ Re(De);
471
471
  }
472
472
  }
473
473
  E.current = !1;
@@ -477,8 +477,8 @@ const ee = "rovingFocusGroup.onEntryFocus", nr = {
477
477
  () => $(!1)
478
478
  )
479
479
  })));
480
- }), pr = "RovingFocusGroupItem", lr = /* @__PURE__ */ I((e, o) => {
481
- const { __scopeRovingFocusGroup: t, focusable: n = !0, active: i = !1, tabStopId: r, ...a } = e, c = rr(), s = r || c, u = ur(pr, t), _ = u.currentTabStopId === s, p = ve(t), { onFocusableItemAdd: f, onFocusableItemRemove: l } = u;
480
+ }), lr = "RovingFocusGroupItem", fr = /* @__PURE__ */ I((e, o) => {
481
+ const { __scopeRovingFocusGroup: t, focusable: n = !0, active: i = !1, tabStopId: r, ...a } = e, c = tr(), s = r || c, u = sr(lr, t), _ = u.currentTabStopId === s, p = ve(t), { onFocusableItemAdd: f, onFocusableItemRemove: l } = u;
482
482
  return T(() => {
483
483
  if (n)
484
484
  return f(), () => l();
@@ -509,7 +509,7 @@ const ee = "rovingFocusGroup.onEntryFocus", nr = {
509
509
  return;
510
510
  }
511
511
  if (d.target !== d.currentTarget) return;
512
- const m = mr(d, u.orientation, u.dir);
512
+ const m = br(d, u.orientation, u.dir);
513
513
  if (m !== void 0) {
514
514
  d.preventDefault();
515
515
  let $ = p().filter(
@@ -521,7 +521,7 @@ const ee = "rovingFocusGroup.onEntryFocus", nr = {
521
521
  else if (m === "prev" || m === "next") {
522
522
  m === "prev" && $.reverse();
523
523
  const h = $.indexOf(d.currentTarget);
524
- $ = u.loop ? br($, h + 1) : $.slice(h + 1);
524
+ $ = u.loop ? $r($, h + 1) : $.slice(h + 1);
525
525
  }
526
526
  setTimeout(
527
527
  () => Re($)
@@ -529,7 +529,7 @@ const ee = "rovingFocusGroup.onEntryFocus", nr = {
529
529
  }
530
530
  })
531
531
  })));
532
- }), fr = {
532
+ }), _r = {
533
533
  ArrowLeft: "prev",
534
534
  ArrowUp: "prev",
535
535
  ArrowRight: "next",
@@ -539,11 +539,11 @@ const ee = "rovingFocusGroup.onEntryFocus", nr = {
539
539
  PageDown: "last",
540
540
  End: "last"
541
541
  };
542
- function _r(e, o) {
542
+ function mr(e, o) {
543
543
  return o !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
544
544
  }
545
- function mr(e, o, t) {
546
- const n = _r(e.key, t);
545
+ function br(e, o, t) {
546
+ const n = mr(e.key, t);
547
547
  if (!(o === "vertical" && [
548
548
  "ArrowLeft",
549
549
  "ArrowRight"
@@ -551,20 +551,20 @@ function mr(e, o, t) {
551
551
  "ArrowUp",
552
552
  "ArrowDown"
553
553
  ].includes(n)))
554
- return fr[n];
554
+ return _r[n];
555
555
  }
556
556
  function Re(e) {
557
557
  const o = document.activeElement;
558
558
  for (const t of e)
559
559
  if (t === o || (t.focus(), document.activeElement !== o)) return;
560
560
  }
561
- function br(e, o) {
561
+ function $r(e, o) {
562
562
  return e.map(
563
563
  (t, n) => e[(o + n) % e.length]
564
564
  );
565
565
  }
566
- const $r = sr, hr = lr;
567
- function gr(e) {
566
+ const hr = dr, gr = fr;
567
+ function vr(e) {
568
568
  const [o, t] = M(void 0);
569
569
  return W(() => {
570
570
  if (e) {
@@ -595,7 +595,7 @@ function gr(e) {
595
595
  e
596
596
  ]), o;
597
597
  }
598
- function vr(e) {
598
+ function yr(e) {
599
599
  const o = A({
600
600
  value: e,
601
601
  previous: e
@@ -604,14 +604,14 @@ function vr(e) {
604
604
  e
605
605
  ]);
606
606
  }
607
- function yr(e, o) {
608
- return Ue((t, n) => {
607
+ function Rr(e, o) {
608
+ return qe((t, n) => {
609
609
  const i = o[t][n];
610
610
  return i ?? t;
611
611
  }, e);
612
612
  }
613
613
  const Ce = (e) => {
614
- const { present: o, children: t } = e, n = Rr(o), i = typeof t == "function" ? t({
614
+ const { present: o, children: t } = e, n = Cr(o), i = typeof t == "function" ? t({
615
615
  present: n.isPresent
616
616
  }) : P.only(t), r = F(n.ref, i.ref);
617
617
  return typeof t == "function" || n.isPresent ? /* @__PURE__ */ X(i, {
@@ -619,8 +619,8 @@ const Ce = (e) => {
619
619
  }) : null;
620
620
  };
621
621
  Ce.displayName = "Presence";
622
- function Rr(e) {
623
- const [o, t] = M(), n = A({}), i = A(e), r = A("none"), a = e ? "mounted" : "unmounted", [c, s] = yr(a, {
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, {
624
624
  mounted: {
625
625
  UNMOUNT: "unmounted",
626
626
  ANIMATION_OUT: "unmountSuspended"
@@ -651,7 +651,7 @@ function Rr(e) {
651
651
  if (o) {
652
652
  const u = (p) => {
653
653
  const l = V(n.current).includes(p.animationName);
654
- p.target === o && l && qe(
654
+ p.target === o && l && je(
655
655
  () => s("ANIMATION_END")
656
656
  );
657
657
  }, _ = (p) => {
@@ -670,7 +670,7 @@ function Rr(e) {
670
670
  "mounted",
671
671
  "unmountSuspended"
672
672
  ].includes(c),
673
- ref: k((u) => {
673
+ ref: w((u) => {
674
674
  u && (n.current = getComputedStyle(u)), t(u);
675
675
  }, [])
676
676
  };
@@ -678,12 +678,12 @@ function Rr(e) {
678
678
  function V(e) {
679
679
  return (e == null ? void 0 : e.animationName) || "none";
680
680
  }
681
- const Ie = "Radio", [Cr, Ae] = Z(Ie), [Ir, Ar] = Cr(Ie), Nr = /* @__PURE__ */ I((e, o) => {
681
+ const Ie = "Radio", [Ir, Ae] = Z(Ie), [Ar, Nr] = Ir(Ie), Sr = /* @__PURE__ */ I((e, o) => {
682
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
683
  o,
684
684
  (m) => p(m)
685
685
  ), l = A(!1), d = _ ? !!_.closest("form") : !0;
686
- return /* @__PURE__ */ b(Ir, {
686
+ return /* @__PURE__ */ b(Ar, {
687
687
  scope: t,
688
688
  checked: i,
689
689
  disabled: a
@@ -700,7 +700,7 @@ const Ie = "Radio", [Cr, Ae] = Z(Ie), [Ir, Ar] = Cr(Ie), Nr = /* @__PURE__ */ I(
700
700
  onClick: x(e.onClick, (m) => {
701
701
  i || s == null || s(), d && (l.current = m.isPropagationStopped(), l.current || m.stopPropagation());
702
702
  })
703
- })), d && /* @__PURE__ */ b(Er, {
703
+ })), d && /* @__PURE__ */ b(Pr, {
704
704
  control: _,
705
705
  bubbles: !l.current,
706
706
  name: n,
@@ -712,8 +712,8 @@ const Ie = "Radio", [Cr, Ae] = Z(Ie), [Ir, Ar] = Cr(Ie), Nr = /* @__PURE__ */ I(
712
712
  transform: "translateX(-100%)"
713
713
  }
714
714
  }));
715
- }), Sr = "RadioIndicator", xr = /* @__PURE__ */ I((e, o) => {
716
- const { __scopeRadio: t, forceMount: n, ...i } = e, r = Ar(Sr, t);
715
+ }), xr = "RadioIndicator", Er = /* @__PURE__ */ I((e, o) => {
716
+ const { __scopeRadio: t, forceMount: n, ...i } = e, r = Nr(xr, t);
717
717
  return /* @__PURE__ */ b(Ce, {
718
718
  present: n || r.checked
719
719
  }, /* @__PURE__ */ b(q.span, v({
@@ -722,8 +722,8 @@ const Ie = "Radio", [Cr, Ae] = Z(Ie), [Ir, Ar] = Cr(Ie), Nr = /* @__PURE__ */ I(
722
722
  }, i, {
723
723
  ref: o
724
724
  })));
725
- }), Er = (e) => {
726
- const { control: o, checked: t, bubbles: n = !0, ...i } = e, r = A(null), a = vr(t), c = gr(o);
725
+ }), Pr = (e) => {
726
+ const { control: o, checked: t, bubbles: n = !0, ...i } = e, r = A(null), a = yr(t), c = vr(o);
727
727
  return T(() => {
728
728
  const s = r.current, u = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(u, "checked").set;
729
729
  if (a !== t && p) {
@@ -756,28 +756,28 @@ const Ie = "Radio", [Cr, Ae] = Z(Ie), [Ir, Ar] = Cr(Ie), Nr = /* @__PURE__ */ I(
756
756
  function Ne(e) {
757
757
  return e ? "checked" : "unchecked";
758
758
  }
759
- const Pr = [
759
+ const Tr = [
760
760
  "ArrowUp",
761
761
  "ArrowDown",
762
762
  "ArrowLeft",
763
763
  "ArrowRight"
764
- ], Se = "RadioGroup", [Tr, dt] = Z(Se, [
764
+ ], Se = "RadioGroup", [Or, dt] = Z(Se, [
765
765
  ye,
766
766
  Ae
767
- ]), xe = ye(), Ee = Ae(), [Or, wr] = Tr(Se), kr = /* @__PURE__ */ I((e, o) => {
767
+ ]), xe = ye(), Ee = Ae(), [kr, wr] = Or(Se), Mr = /* @__PURE__ */ I((e, o) => {
768
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({
769
769
  prop: r,
770
770
  defaultProp: i,
771
771
  onChange: p
772
772
  });
773
- return /* @__PURE__ */ b(Or, {
773
+ return /* @__PURE__ */ b(kr, {
774
774
  scope: t,
775
775
  name: n,
776
776
  required: a,
777
777
  disabled: c,
778
778
  value: m,
779
779
  onValueChange: g
780
- }, /* @__PURE__ */ b($r, v({
780
+ }, /* @__PURE__ */ b(hr, v({
781
781
  asChild: !0
782
782
  }, l, {
783
783
  orientation: s,
@@ -792,21 +792,21 @@ const Pr = [
792
792
  }, f, {
793
793
  ref: o
794
794
  }))));
795
- }), Mr = "RadioGroupItem", Fr = /* @__PURE__ */ I((e, o) => {
796
- const { __scopeRadioGroup: t, disabled: n, ...i } = e, r = wr(Mr, t), a = r.disabled || n, c = xe(t), s = Ee(t), u = A(null), _ = F(o, u), p = r.value === i.value, f = A(!1);
795
+ }), Fr = "RadioGroupItem", Dr = /* @__PURE__ */ I((e, o) => {
796
+ const { __scopeRadioGroup: t, disabled: n, ...i } = e, r = wr(Fr, t), a = r.disabled || n, c = xe(t), s = Ee(t), u = A(null), _ = F(o, u), p = r.value === i.value, f = A(!1);
797
797
  return T(() => {
798
798
  const l = (m) => {
799
- Pr.includes(m.key) && (f.current = !0);
799
+ Tr.includes(m.key) && (f.current = !0);
800
800
  }, d = () => f.current = !1;
801
801
  return document.addEventListener("keydown", l), document.addEventListener("keyup", d), () => {
802
802
  document.removeEventListener("keydown", l), document.removeEventListener("keyup", d);
803
803
  };
804
- }, []), /* @__PURE__ */ b(hr, v({
804
+ }, []), /* @__PURE__ */ b(gr, v({
805
805
  asChild: !0
806
806
  }, c, {
807
807
  focusable: !a,
808
808
  active: p
809
- }), /* @__PURE__ */ b(Nr, v({
809
+ }), /* @__PURE__ */ b(Sr, v({
810
810
  disabled: a,
811
811
  required: r.required,
812
812
  checked: p
@@ -822,13 +822,13 @@ const Pr = [
822
822
  f.current && ((l = u.current) === null || l === void 0 || l.click());
823
823
  })
824
824
  })));
825
- }), Dr = /* @__PURE__ */ I((e, o) => {
825
+ }), Lr = /* @__PURE__ */ I((e, o) => {
826
826
  const { __scopeRadioGroup: t, ...n } = e, i = Ee(t);
827
- return /* @__PURE__ */ b(xr, v({}, i, n, {
827
+ return /* @__PURE__ */ b(Er, v({}, i, n, {
828
828
  ref: o
829
829
  }));
830
- }), Lr = kr, Gr = Fr, Ur = Dr;
831
- function qr(e) {
830
+ }), Gr = Mr, Ur = Dr, qr = Lr;
831
+ function jr(e) {
832
832
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
833
833
  }
834
834
  var Pe = { exports: {} };
@@ -867,8 +867,8 @@ var Pe = { exports: {} };
867
867
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
868
868
  })();
869
869
  })(Pe);
870
- var jr = Pe.exports;
871
- const Br = /* @__PURE__ */ qr(jr), zr = {
870
+ var Br = Pe.exports;
871
+ const zr = /* @__PURE__ */ jr(Br), Vr = {
872
872
  "purpur-radio-card-group": "_purpur-radio-card-group_19msf_1",
873
873
  "purpur-radio-card-group--vertical": "_purpur-radio-card-group--vertical_19msf_5",
874
874
  "purpur-radio-card-group--horizontal": "_purpur-radio-card-group--horizontal_19msf_9",
@@ -888,8 +888,8 @@ const Br = /* @__PURE__ */ qr(jr), zr = {
888
888
  "purpur-radio-card-group__item-image-placeholder": "_purpur-radio-card-group__item-image-placeholder_19msf_167",
889
889
  "purpur-radio-card-group__item-image-placeholder--loaded": "_purpur-radio-card-group__item-image-placeholder--loaded_19msf_172",
890
890
  "purpur-radio-card-group__item-children": "_purpur-radio-card-group__item-children_19msf_175"
891
- }, C = Br.bind(zr);
892
- function Vr(e) {
891
+ }, C = zr.bind(Vr);
892
+ function Hr(e) {
893
893
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
894
894
  }
895
895
  var Te = { exports: {} };
@@ -928,8 +928,8 @@ var Te = { exports: {} };
928
928
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
929
929
  })();
930
930
  })(Te);
931
- var Hr = Te.exports;
932
- const Kr = /* @__PURE__ */ Vr(Hr), D = {
931
+ var Kr = Te.exports;
932
+ const Yr = /* @__PURE__ */ Hr(Kr), D = {
933
933
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
934
934
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
935
935
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -944,7 +944,7 @@ const Kr = /* @__PURE__ */ Vr(Hr), D = {
944
944
  "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
945
945
  "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
946
946
  "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
947
- }, Yr = {
947
+ }, Wr = {
948
948
  PARAGRAPH100: "paragraph-100",
949
949
  PARAGRAPH100MEDIUM: "paragraph-100-medium",
950
950
  PARAGRAPH100BOLD: "paragraph-100-bold",
@@ -962,10 +962,10 @@ const Kr = /* @__PURE__ */ Vr(Hr), D = {
962
962
  disabled: n,
963
963
  enableHyphenation: i = !1,
964
964
  negative: r = !1,
965
- variant: a = Yr.PARAGRAPH100,
965
+ variant: a = Wr.PARAGRAPH100,
966
966
  ...c
967
967
  }) => {
968
- const s = Kr([
968
+ const s = Yr([
969
969
  t,
970
970
  D[L],
971
971
  D[`${L}--${a}`],
@@ -978,7 +978,7 @@ const Kr = /* @__PURE__ */ Vr(Hr), D = {
978
978
  return /* @__PURE__ */ y("p", { ...c, className: s, "data-testid": e, children: o });
979
979
  };
980
980
  ce.displayName = "Paragraph";
981
- function Wr(e) {
981
+ function Xr(e) {
982
982
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
983
983
  }
984
984
  var Oe = { exports: {} };
@@ -1017,10 +1017,10 @@ var Oe = { exports: {} };
1017
1017
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
1018
1018
  })();
1019
1019
  })(Oe);
1020
- var Xr = Oe.exports;
1021
- const Zr = /* @__PURE__ */ Wr(Xr), Jr = "_loading_cil8l_1", re = {
1020
+ var Zr = Oe.exports;
1021
+ const Jr = /* @__PURE__ */ Xr(Zr), Qr = "_loading_cil8l_1", re = {
1022
1022
  "purpur-skeleton": "_purpur-skeleton_cil8l_2",
1023
- loading: Jr,
1023
+ loading: Qr,
1024
1024
  "purpur-skeleton--default": "_purpur-skeleton--default_cil8l_25",
1025
1025
  "purpur-skeleton--negative": "_purpur-skeleton--negative_cil8l_31",
1026
1026
  "purpur-skeleton--xs": "_purpur-skeleton--xs_cil8l_37",
@@ -1028,7 +1028,7 @@ const Zr = /* @__PURE__ */ Wr(Xr), Jr = "_loading_cil8l_1", re = {
1028
1028
  "purpur-skeleton--md": "_purpur-skeleton--md_cil8l_43",
1029
1029
  "purpur-skeleton--lg": "_purpur-skeleton--lg_cil8l_46",
1030
1030
  "purpur-skeleton--full": "_purpur-skeleton--full_cil8l_49"
1031
- }, te = "purpur-skeleton", Qr = ({
1031
+ }, te = "purpur-skeleton", ke = ({
1032
1032
  className: e,
1033
1033
  ["data-testid"]: o,
1034
1034
  radius: t = "xs",
@@ -1036,14 +1036,16 @@ const Zr = /* @__PURE__ */ Wr(Xr), Jr = "_loading_cil8l_1", re = {
1036
1036
  negative: i = !1,
1037
1037
  ...r
1038
1038
  }) => {
1039
- const a = Zr([
1039
+ const a = Jr([
1040
1040
  e,
1041
1041
  re[te],
1042
1042
  re[`${te}--${i ? "negative" : "default"}`],
1043
1043
  re[`${te}--${t}`]
1044
1044
  ]);
1045
1045
  return /* @__PURE__ */ y("div", { className: a, style: n, "data-testid": o, ...r });
1046
- }, H = "purpur-radio-card-group__item-image", et = (e) => !!(e != null && e.src) && !!e.altText, rt = ({
1046
+ };
1047
+ ke.displayName = "Skeleton";
1048
+ const H = "purpur-radio-card-group__item-image", et = (e) => !!(e != null && e.src) && !!e.altText, rt = ({
1047
1049
  src: e,
1048
1050
  altText: o,
1049
1051
  noPlaceholder: t,
@@ -1055,7 +1057,7 @@ const Zr = /* @__PURE__ */ Wr(Xr), Jr = "_loading_cil8l_1", re = {
1055
1057
  }), u = C(`${H}-placeholder`, {
1056
1058
  [`${H}-placeholder--loaded`]: r
1057
1059
  });
1058
- return /* @__PURE__ */ w(De, { children: [
1060
+ return /* @__PURE__ */ k(Le, { children: [
1059
1061
  /* @__PURE__ */ y(
1060
1062
  "img",
1061
1063
  {
@@ -1067,7 +1069,7 @@ const Zr = /* @__PURE__ */ Wr(Xr), Jr = "_loading_cil8l_1", re = {
1067
1069
  onLoad: c
1068
1070
  }
1069
1071
  ),
1070
- !t && /* @__PURE__ */ y(Qr, { className: u })
1072
+ !t && /* @__PURE__ */ y(ke, { className: u })
1071
1073
  ] });
1072
1074
  }, S = "purpur-radio-card-group__item", oe = (e, { disabled: o }) => typeof e == "function" ? e({ disabled: o }) : e, tt = ({ title: e, ...o }, t) => {
1073
1075
  const {
@@ -1080,9 +1082,9 @@ const Zr = /* @__PURE__ */ Wr(Xr), Jr = "_loading_cil8l_1", re = {
1080
1082
  required: u,
1081
1083
  value: _
1082
1084
  } = o, p = { title: e, ...o };
1083
- return /* @__PURE__ */ w("div", { className: C(`${S}-container`), ref: t, children: [
1084
- /* @__PURE__ */ w(
1085
- Gr,
1085
+ return /* @__PURE__ */ k("div", { className: C(`${S}-container`), ref: t, children: [
1086
+ /* @__PURE__ */ k(
1087
+ Ur,
1086
1088
  {
1087
1089
  className: C(S),
1088
1090
  "data-testid": n,
@@ -1092,8 +1094,8 @@ const Zr = /* @__PURE__ */ Wr(Xr), Jr = "_loading_cil8l_1", re = {
1092
1094
  value: _,
1093
1095
  children: [
1094
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) }),
1095
- /* @__PURE__ */ w("span", { className: C(`${S}-content`), children: [
1096
- /* @__PURE__ */ w("span", { className: C(`${S}-top-container`), children: [
1097
+ /* @__PURE__ */ k("span", { className: C(`${S}-content`), children: [
1098
+ /* @__PURE__ */ k("span", { className: C(`${S}-top-container`), children: [
1097
1099
  typeof e == "string" ? /* @__PURE__ */ y(
1098
1100
  ce,
1099
1101
  {
@@ -1104,7 +1106,7 @@ const Zr = /* @__PURE__ */ Wr(Xr), Jr = "_loading_cil8l_1", re = {
1104
1106
  children: e
1105
1107
  }
1106
1108
  ) : oe(e, p),
1107
- /* @__PURE__ */ y("span", { className: C(`${S}-radio`), children: /* @__PURE__ */ y(Ur, { className: C(`${S}-indicator`) }) })
1109
+ /* @__PURE__ */ y("span", { className: C(`${S}-radio`), children: /* @__PURE__ */ y(qr, { className: C(`${S}-indicator`) }) })
1108
1110
  ] }),
1109
1111
  i && /* @__PURE__ */ y("span", { className: C(`${S}-bottom-container`), children: typeof i == "string" ? /* @__PURE__ */ y(
1110
1112
  ce,
@@ -1136,7 +1138,7 @@ const ot = (e) => U(e) && (e == null ? void 0 : e.type) === de, pt = ["horizonta
1136
1138
  ...u
1137
1139
  }, _) => {
1138
1140
  const p = P.toArray(t).filter(ot);
1139
- return /* @__PURE__ */ w("div", { className: C(n, `${K}__container`), ref: _, children: [
1141
+ return /* @__PURE__ */ k("div", { className: C(n, `${K}__container`), ref: _, children: [
1140
1142
  r && /* @__PURE__ */ y(
1141
1143
  be,
1142
1144
  {
@@ -1147,8 +1149,8 @@ const ot = (e) => U(e) && (e == null ? void 0 : e.type) === de, pt = ["horizonta
1147
1149
  children: `${u.required ? "* " : ""}${r}`
1148
1150
  }
1149
1151
  ),
1150
- (!!(i != null && i.length) || p.length) && /* @__PURE__ */ w(
1151
- Lr,
1152
+ (!!(i != null && i.length) || p.length) && /* @__PURE__ */ k(
1153
+ Gr,
1152
1154
  {
1153
1155
  ...u,
1154
1156
  "aria-labelledby": o || (r ? `${u.id}-label` : void 0),