@purpurds/radio-card-group 4.4.0 → 4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- import { jsx as v, jsxs as M, Fragment as Le } from "react/jsx-runtime";
1
+ import { jsx as v, jsxs as k, Fragment as Le } from "react/jsx-runtime";
2
2
  import * as _e from "react";
3
- import A, { useCallback as k, createContext as ae, useMemo as z, createElement as b, useContext as me, forwardRef as R, Children as P, isValidElement as U, cloneElement as Z, Fragment as De, useEffect as T, useLayoutEffect as Ge, useRef as S, useState as F, useReducer as ze } from "react";
4
- import { flushSync as Ue } from "react-dom";
3
+ import S, { useCallback as M, createContext as ae, useMemo as U, createElement as m, useContext as be, forwardRef as R, Children as P, isValidElement as q, cloneElement as Z, Fragment as De, useEffect as T, useLayoutEffect as Ge, useRef as A, useState as F, useReducer as Ue } from "react";
4
+ import { flushSync as qe } from "react-dom";
5
5
  function je(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
- var be = { exports: {} };
8
+ var me = { exports: {} };
9
9
  /*!
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
@@ -40,25 +40,25 @@ var be = { exports: {} };
40
40
  }
41
41
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
42
42
  })();
43
- })(be);
44
- var Be = be.exports;
45
- const Ve = /* @__PURE__ */ je(Be), V = {
46
- "purpur-heading": "_purpur-heading_1g237_1",
47
- "purpur-heading--hyphens": "_purpur-heading--hyphens_1g237_8",
48
- "purpur-heading--negative": "_purpur-heading--negative_1g237_11",
49
- "purpur-heading--subsection-100": "_purpur-heading--subsection-100_1g237_14",
50
- "purpur-heading--title-100": "_purpur-heading--title-100_1g237_20",
51
- "purpur-heading--title-200": "_purpur-heading--title-200_1g237_26",
52
- "purpur-heading--title-300": "_purpur-heading--title-300_1g237_32",
53
- "purpur-heading--title-400": "_purpur-heading--title-400_1g237_38",
54
- "purpur-heading--title-500": "_purpur-heading--title-500_1g237_44",
55
- "purpur-heading--title-600": "_purpur-heading--title-600_1g237_50",
56
- "purpur-heading--title-700": "_purpur-heading--title-700_1g237_56",
57
- "purpur-heading--display-25": "_purpur-heading--display-25_1g237_62",
58
- "purpur-heading--display-50": "_purpur-heading--display-50_1g237_68",
59
- "purpur-heading--display-100": "_purpur-heading--display-100_1g237_74",
60
- "purpur-heading--display-200": "_purpur-heading--display-200_1g237_80"
61
- }, qe = {
43
+ })(me);
44
+ var Be = me.exports;
45
+ const ze = /* @__PURE__ */ je(Be), z = {
46
+ "purpur-heading": "_purpur-heading_k9fhq_1",
47
+ "purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
48
+ "purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
49
+ "purpur-heading--subsection-100": "_purpur-heading--subsection-100_k9fhq_14",
50
+ "purpur-heading--title-100": "_purpur-heading--title-100_k9fhq_20",
51
+ "purpur-heading--title-200": "_purpur-heading--title-200_k9fhq_26",
52
+ "purpur-heading--title-300": "_purpur-heading--title-300_k9fhq_32",
53
+ "purpur-heading--title-400": "_purpur-heading--title-400_k9fhq_38",
54
+ "purpur-heading--title-500": "_purpur-heading--title-500_k9fhq_44",
55
+ "purpur-heading--title-600": "_purpur-heading--title-600_k9fhq_50",
56
+ "purpur-heading--title-700": "_purpur-heading--title-700_k9fhq_56",
57
+ "purpur-heading--display-25": "_purpur-heading--display-25_k9fhq_62",
58
+ "purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
59
+ "purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
60
+ "purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
61
+ }, Ve = {
62
62
  TITLE100: "title-100",
63
63
  TITLE200: "title-200",
64
64
  TITLE300: "title-300",
@@ -67,23 +67,23 @@ const Ve = /* @__PURE__ */ je(Be), V = {
67
67
  TITLE600: "title-600",
68
68
  TITLE700: "title-700",
69
69
  SUBSECTION100: "subsection-100"
70
- }, q = "purpur-heading", Ke = ({
70
+ }, V = "purpur-heading", Ke = ({
71
71
  ["data-testid"]: e,
72
72
  children: n,
73
73
  className: t = "",
74
74
  enableHyphenation: o = !1,
75
75
  negative: i = !1,
76
76
  tag: r,
77
- variant: a = qe.TITLE100,
77
+ variant: a = Ve.TITLE100,
78
78
  ...c
79
79
  }) => {
80
- const s = r, u = Ve([
80
+ const s = r, u = ze([
81
81
  t,
82
- V[q],
83
- V[`${q}--${a}`],
82
+ z[V],
83
+ z[`${V}--${a}`],
84
84
  {
85
- [V[`${q}--hyphens`]]: o,
86
- [V[`${q}--negative`]]: i
85
+ [z[`${V}--hyphens`]]: o,
86
+ [z[`${V}--negative`]]: i
87
87
  }
88
88
  ]);
89
89
  return /* @__PURE__ */ v(s, { ...c, className: u, "data-testid": e, children: n });
@@ -113,7 +113,7 @@ function $e(...e) {
113
113
  );
114
114
  }
115
115
  function L(...e) {
116
- return k($e(...e), e);
116
+ return M($e(...e), e);
117
117
  }
118
118
  function J(e, n = []) {
119
119
  let t = [];
@@ -124,16 +124,16 @@ function J(e, n = []) {
124
124
  a
125
125
  ];
126
126
  function u(l) {
127
- const { scope: f, children: p, ...d } = l, m = (f == null ? void 0 : f[e][s]) || c, h = z(
127
+ const { scope: f, children: p, ...d } = l, b = (f == null ? void 0 : f[e][s]) || c, g = U(
128
128
  () => d,
129
129
  Object.values(d)
130
130
  );
131
- return /* @__PURE__ */ b(m.Provider, {
132
- value: h
131
+ return /* @__PURE__ */ m(b.Provider, {
132
+ value: g
133
133
  }, p);
134
134
  }
135
135
  function _(l, f) {
136
- const p = (f == null ? void 0 : f[e][s]) || c, d = me(p);
136
+ const p = (f == null ? void 0 : f[e][s]) || c, d = be(p);
137
137
  if (d)
138
138
  return d;
139
139
  if (a !== void 0)
@@ -149,7 +149,7 @@ function J(e, n = []) {
149
149
  const r = t.map((a) => /* @__PURE__ */ ae(a));
150
150
  return function(c) {
151
151
  const s = (c == null ? void 0 : c[e]) || r;
152
- return z(
152
+ return U(
153
153
  () => ({
154
154
  [`__scope${e}`]: {
155
155
  ...c,
@@ -187,7 +187,7 @@ function Ye(...e) {
187
187
  ...l
188
188
  };
189
189
  }, {});
190
- return z(
190
+ return U(
191
191
  () => ({
192
192
  [`__scope${n.scopeName}`]: a
193
193
  }),
@@ -212,27 +212,27 @@ function O() {
212
212
  const W = /* @__PURE__ */ R((e, n) => {
213
213
  const { children: t, ...o } = e, i = P.toArray(t), r = i.find(Xe);
214
214
  if (r) {
215
- 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);
216
- return /* @__PURE__ */ b(ie, O({}, o, {
215
+ const a = r.props.children, c = i.map((s) => s === r ? P.count(a) > 1 ? P.only(null) : /* @__PURE__ */ q(a) ? a.props.children : null : s);
216
+ return /* @__PURE__ */ m(ie, O({}, o, {
217
217
  ref: n
218
- }), /* @__PURE__ */ U(a) ? /* @__PURE__ */ Z(a, void 0, c) : null);
218
+ }), /* @__PURE__ */ q(a) ? /* @__PURE__ */ Z(a, void 0, c) : null);
219
219
  }
220
- return /* @__PURE__ */ b(ie, O({}, o, {
220
+ return /* @__PURE__ */ m(ie, O({}, o, {
221
221
  ref: n
222
222
  }), t);
223
223
  });
224
224
  W.displayName = "Slot";
225
225
  const ie = /* @__PURE__ */ R((e, n) => {
226
226
  const { children: t, ...o } = e;
227
- return /* @__PURE__ */ U(t) ? /* @__PURE__ */ Z(t, {
227
+ return /* @__PURE__ */ q(t) ? /* @__PURE__ */ Z(t, {
228
228
  ...Ze(o, t.props),
229
229
  ref: n ? $e(n, t.ref) : t.ref
230
230
  }) : P.count(t) > 1 ? P.only(null) : null;
231
231
  });
232
232
  ie.displayName = "SlotClone";
233
- const We = ({ children: e }) => /* @__PURE__ */ b(De, null, e);
233
+ const We = ({ children: e }) => /* @__PURE__ */ m(De, null, e);
234
234
  function Xe(e) {
235
- return /* @__PURE__ */ U(e) && e.type === We;
235
+ return /* @__PURE__ */ q(e) && e.type === We;
236
236
  }
237
237
  function Ze(e, n) {
238
238
  const t = {
@@ -277,7 +277,7 @@ const Je = [
277
277
  const { asChild: r, ...a } = o, c = r ? W : n;
278
278
  return T(() => {
279
279
  window[Symbol.for("radix-ui")] = !0;
280
- }, []), /* @__PURE__ */ b(c, O({}, a, {
280
+ }, []), /* @__PURE__ */ m(c, O({}, a, {
281
281
  ref: i
282
282
  }));
283
283
  });
@@ -293,34 +293,34 @@ function Qe(e) {
293
293
  },
294
294
  itemMap: /* @__PURE__ */ new Map()
295
295
  }), a = (p) => {
296
- const { scope: d, children: m } = p, h = A.useRef(null), $ = A.useRef(/* @__PURE__ */ new Map()).current;
297
- return /* @__PURE__ */ A.createElement(i, {
296
+ const { scope: d, children: b } = p, g = S.useRef(null), $ = S.useRef(/* @__PURE__ */ new Map()).current;
297
+ return /* @__PURE__ */ S.createElement(i, {
298
298
  scope: d,
299
299
  itemMap: $,
300
- collectionRef: h
301
- }, m);
302
- }, c = e + "CollectionSlot", s = /* @__PURE__ */ A.forwardRef((p, d) => {
303
- const { scope: m, children: h } = p, $ = r(c, m), g = L(d, $.collectionRef);
304
- return /* @__PURE__ */ A.createElement(W, {
305
- ref: g
306
- }, h);
307
- }), u = e + "CollectionItemSlot", _ = "data-radix-collection-item", l = /* @__PURE__ */ A.forwardRef((p, d) => {
308
- const { scope: m, children: h, ...$ } = p, g = A.useRef(null), B = L(d, g), E = r(u, m);
309
- return A.useEffect(() => (E.itemMap.set(g, {
310
- ref: g,
300
+ collectionRef: g
301
+ }, b);
302
+ }, c = e + "CollectionSlot", s = /* @__PURE__ */ S.forwardRef((p, d) => {
303
+ const { scope: b, children: g } = p, $ = r(c, b), h = L(d, $.collectionRef);
304
+ return /* @__PURE__ */ S.createElement(W, {
305
+ ref: h
306
+ }, g);
307
+ }), u = e + "CollectionItemSlot", _ = "data-radix-collection-item", l = /* @__PURE__ */ S.forwardRef((p, d) => {
308
+ const { scope: b, children: g, ...$ } = p, h = S.useRef(null), B = L(d, h), E = r(u, b);
309
+ return S.useEffect(() => (E.itemMap.set(h, {
310
+ ref: h,
311
311
  ...$
312
- }), () => void E.itemMap.delete(g))), /* @__PURE__ */ A.createElement(W, {
312
+ }), () => void E.itemMap.delete(h))), /* @__PURE__ */ S.createElement(W, {
313
313
  [_]: "",
314
314
  ref: B
315
- }, h);
315
+ }, g);
316
316
  });
317
317
  function f(p) {
318
318
  const d = r(e + "CollectionConsumer", p);
319
- return A.useCallback(() => {
320
- const h = d.collectionRef.current;
321
- if (!h)
319
+ return S.useCallback(() => {
320
+ const g = d.collectionRef.current;
321
+ if (!g)
322
322
  return [];
323
- const $ = Array.from(h.querySelectorAll(`[${_}]`));
323
+ const $ = Array.from(g.querySelectorAll(`[${_}]`));
324
324
  return Array.from(d.itemMap.values()).sort(
325
325
  (E, Q) => $.indexOf(E.ref.current) - $.indexOf(Q.ref.current)
326
326
  );
@@ -354,10 +354,10 @@ function tr(e) {
354
354
  ]), n ? `radix-${n}` : "";
355
355
  }
356
356
  function ue(e) {
357
- const n = S(e);
357
+ const n = A(e);
358
358
  return T(() => {
359
359
  n.current = e;
360
- }), z(
360
+ }), U(
361
361
  () => (...t) => {
362
362
  var o;
363
363
  return (o = n.current) === null || o === void 0 ? void 0 : o.call(n, ...t);
@@ -365,12 +365,12 @@ function ue(e) {
365
365
  []
366
366
  );
367
367
  }
368
- function ge({ prop: e, defaultProp: n, onChange: t = () => {
368
+ function he({ prop: e, defaultProp: n, onChange: t = () => {
369
369
  } }) {
370
370
  const [o, i] = nr({
371
371
  defaultProp: n,
372
372
  onChange: t
373
- }), r = e !== void 0, a = r ? e : o, c = ue(t), s = k((u) => {
373
+ }), r = e !== void 0, a = r ? e : o, c = ue(t), s = M((u) => {
374
374
  if (r) {
375
375
  const l = typeof u == "function" ? u(e) : u;
376
376
  l !== e && c(l);
@@ -388,7 +388,7 @@ function ge({ prop: e, defaultProp: n, onChange: t = () => {
388
388
  ];
389
389
  }
390
390
  function nr({ defaultProp: e, onChange: n }) {
391
- const t = F(e), [o] = t, i = S(o), r = ue(n);
391
+ const t = F(e), [o] = t, i = A(o), r = ue(n);
392
392
  return T(() => {
393
393
  i.current !== o && (r(o), i.current = o);
394
394
  }, [
@@ -398,8 +398,8 @@ function nr({ defaultProp: e, onChange: n }) {
398
398
  ]), t;
399
399
  }
400
400
  const or = /* @__PURE__ */ ae(void 0);
401
- function he(e) {
402
- const n = me(or);
401
+ function ge(e) {
402
+ const n = be(or);
403
403
  return e || n || "ltr";
404
404
  }
405
405
  const re = "rovingFocusGroup.onEntryFocus", ar = {
@@ -407,54 +407,54 @@ const re = "rovingFocusGroup.onEntryFocus", ar = {
407
407
  cancelable: !0
408
408
  }, se = "RovingFocusGroup", [ce, ve, ir] = Qe(se), [cr, ye] = J(se, [
409
409
  ir
410
- ]), [ur, sr] = cr(se), dr = /* @__PURE__ */ R((e, n) => /* @__PURE__ */ b(ce.Provider, {
410
+ ]), [ur, sr] = cr(se), dr = /* @__PURE__ */ R((e, n) => /* @__PURE__ */ m(ce.Provider, {
411
411
  scope: e.__scopeRovingFocusGroup
412
- }, /* @__PURE__ */ b(ce.Slot, {
412
+ }, /* @__PURE__ */ m(ce.Slot, {
413
413
  scope: e.__scopeRovingFocusGroup
414
- }, /* @__PURE__ */ b(pr, O({}, e, {
414
+ }, /* @__PURE__ */ m(pr, O({}, e, {
415
415
  ref: n
416
416
  }))))), pr = /* @__PURE__ */ R((e, n) => {
417
- const { __scopeRovingFocusGroup: t, orientation: o, loop: i = !1, dir: r, currentTabStopId: a, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: s, onEntryFocus: u, ..._ } = e, l = S(null), f = L(n, l), p = he(r), [d = null, m] = ge({
417
+ const { __scopeRovingFocusGroup: t, orientation: o, loop: i = !1, dir: r, currentTabStopId: a, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: s, onEntryFocus: u, ..._ } = e, l = A(null), f = L(n, l), p = ge(r), [d = null, b] = he({
418
418
  prop: a,
419
419
  defaultProp: c,
420
420
  onChange: s
421
- }), [h, $] = F(!1), g = ue(u), B = ve(t), E = S(!1), [Q, pe] = F(0);
421
+ }), [g, $] = F(!1), h = ue(u), B = ve(t), E = A(!1), [Q, pe] = F(0);
422
422
  return T(() => {
423
423
  const y = l.current;
424
424
  if (y)
425
- return y.addEventListener(re, g), () => y.removeEventListener(re, g);
425
+ return y.addEventListener(re, h), () => y.removeEventListener(re, h);
426
426
  }, [
427
- g
428
- ]), /* @__PURE__ */ b(ur, {
427
+ h
428
+ ]), /* @__PURE__ */ m(ur, {
429
429
  scope: t,
430
430
  orientation: o,
431
431
  dir: p,
432
432
  loop: i,
433
433
  currentTabStopId: d,
434
- onItemFocus: k(
435
- (y) => m(y),
434
+ onItemFocus: M(
435
+ (y) => b(y),
436
436
  [
437
- m
437
+ b
438
438
  ]
439
439
  ),
440
- onItemShiftTab: k(
440
+ onItemShiftTab: M(
441
441
  () => $(!0),
442
442
  []
443
443
  ),
444
- onFocusableItemAdd: k(
444
+ onFocusableItemAdd: M(
445
445
  () => pe(
446
446
  (y) => y + 1
447
447
  ),
448
448
  []
449
449
  ),
450
- onFocusableItemRemove: k(
450
+ onFocusableItemRemove: M(
451
451
  () => pe(
452
452
  (y) => y - 1
453
453
  ),
454
454
  []
455
455
  )
456
- }, /* @__PURE__ */ b(j.div, O({
457
- tabIndex: h || Q === 0 ? -1 : 0,
456
+ }, /* @__PURE__ */ m(j.div, O({
457
+ tabIndex: g || Q === 0 ? -1 : 0,
458
458
  "data-orientation": o
459
459
  }, _, {
460
460
  ref: f,
@@ -467,18 +467,18 @@ const re = "rovingFocusGroup.onEntryFocus", ar = {
467
467
  }),
468
468
  onFocus: x(e.onFocus, (y) => {
469
469
  const we = !E.current;
470
- if (y.target === y.currentTarget && we && !h) {
470
+ if (y.target === y.currentTarget && we && !g) {
471
471
  const le = new CustomEvent(re, ar);
472
472
  if (y.currentTarget.dispatchEvent(le), !le.defaultPrevented) {
473
473
  const ee = B().filter(
474
474
  (w) => w.focusable
475
- ), Me = ee.find(
476
- (w) => w.active
477
475
  ), ke = ee.find(
476
+ (w) => w.active
477
+ ), Me = ee.find(
478
478
  (w) => w.id === d
479
479
  ), Fe = [
480
- Me,
481
480
  ke,
481
+ Me,
482
482
  ...ee
483
483
  ].filter(Boolean).map(
484
484
  (w) => w.ref.current
@@ -502,12 +502,12 @@ const re = "rovingFocusGroup.onEntryFocus", ar = {
502
502
  o,
503
503
  f,
504
504
  p
505
- ]), /* @__PURE__ */ b(ce.ItemSlot, {
505
+ ]), /* @__PURE__ */ m(ce.ItemSlot, {
506
506
  scope: t,
507
507
  id: s,
508
508
  focusable: o,
509
509
  active: i
510
- }, /* @__PURE__ */ b(j.span, O({
510
+ }, /* @__PURE__ */ m(j.span, O({
511
511
  tabIndex: _ ? 0 : -1,
512
512
  "data-orientation": u.orientation
513
513
  }, a, {
@@ -526,20 +526,20 @@ const re = "rovingFocusGroup.onEntryFocus", ar = {
526
526
  }
527
527
  if (d.target !== d.currentTarget)
528
528
  return;
529
- const m = br(d, u.orientation, u.dir);
530
- if (m !== void 0) {
529
+ const b = mr(d, u.orientation, u.dir);
530
+ if (b !== void 0) {
531
531
  d.preventDefault();
532
532
  let $ = l().filter(
533
- (g) => g.focusable
533
+ (h) => h.focusable
534
534
  ).map(
535
- (g) => g.ref.current
535
+ (h) => h.ref.current
536
536
  );
537
- if (m === "last")
537
+ if (b === "last")
538
538
  $.reverse();
539
- else if (m === "prev" || m === "next") {
540
- m === "prev" && $.reverse();
541
- const g = $.indexOf(d.currentTarget);
542
- $ = u.loop ? $r($, g + 1) : $.slice(g + 1);
539
+ else if (b === "prev" || b === "next") {
540
+ b === "prev" && $.reverse();
541
+ const h = $.indexOf(d.currentTarget);
542
+ $ = u.loop ? $r($, h + 1) : $.slice(h + 1);
543
543
  }
544
544
  setTimeout(
545
545
  () => Ce($)
@@ -557,11 +557,11 @@ const re = "rovingFocusGroup.onEntryFocus", ar = {
557
557
  PageDown: "last",
558
558
  End: "last"
559
559
  };
560
- function mr(e, n) {
560
+ function br(e, n) {
561
561
  return n !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
562
562
  }
563
- function br(e, n, t) {
564
- const o = mr(e.key, t);
563
+ function mr(e, n, t) {
564
+ const o = br(e.key, t);
565
565
  if (!(n === "vertical" && [
566
566
  "ArrowLeft",
567
567
  "ArrowRight"
@@ -582,7 +582,7 @@ function $r(e, n) {
582
582
  (t, o) => e[(n + o) % e.length]
583
583
  );
584
584
  }
585
- const gr = dr, hr = fr;
585
+ const hr = dr, gr = fr;
586
586
  function vr(e) {
587
587
  const [n, t] = F(void 0);
588
588
  return X(() => {
@@ -616,16 +616,16 @@ function vr(e) {
616
616
  ]), n;
617
617
  }
618
618
  function yr(e) {
619
- const n = S({
619
+ const n = A({
620
620
  value: e,
621
621
  previous: e
622
622
  });
623
- return z(() => (n.current.value !== e && (n.current.previous = n.current.value, n.current.value = e), n.current.previous), [
623
+ return U(() => (n.current.value !== e && (n.current.previous = n.current.value, n.current.value = e), n.current.previous), [
624
624
  e
625
625
  ]);
626
626
  }
627
627
  function Cr(e, n) {
628
- return ze((t, o) => {
628
+ return Ue((t, o) => {
629
629
  const i = n[t][o];
630
630
  return i ?? t;
631
631
  }, e);
@@ -640,7 +640,7 @@ const Re = (e) => {
640
640
  };
641
641
  Re.displayName = "Presence";
642
642
  function Rr(e) {
643
- const [n, t] = F(), o = S({}), i = S(e), r = S("none"), a = e ? "mounted" : "unmounted", [c, s] = Cr(a, {
643
+ const [n, t] = F(), o = A({}), i = A(e), r = A("none"), a = e ? "mounted" : "unmounted", [c, s] = Cr(a, {
644
644
  mounted: {
645
645
  UNMOUNT: "unmounted",
646
646
  ANIMATION_OUT: "unmountSuspended"
@@ -671,7 +671,7 @@ function Rr(e) {
671
671
  if (n) {
672
672
  const u = (l) => {
673
673
  const p = K(o.current).includes(l.animationName);
674
- l.target === n && p && Ue(
674
+ l.target === n && p && qe(
675
675
  () => s("ANIMATION_END")
676
676
  );
677
677
  }, _ = (l) => {
@@ -690,7 +690,7 @@ function Rr(e) {
690
690
  "mounted",
691
691
  "unmountSuspended"
692
692
  ].includes(c),
693
- ref: k((u) => {
693
+ ref: M((u) => {
694
694
  u && (o.current = getComputedStyle(u)), t(u);
695
695
  }, [])
696
696
  };
@@ -698,16 +698,16 @@ function Rr(e) {
698
698
  function K(e) {
699
699
  return (e == null ? void 0 : e.animationName) || "none";
700
700
  }
701
- const Se = "Radio", [Sr, Ae] = J(Se), [Ar, Ir] = Sr(Se), Nr = /* @__PURE__ */ R((e, n) => {
701
+ const Ae = "Radio", [Ar, Se] = J(Ae), [Sr, Ir] = Ar(Ae), Nr = /* @__PURE__ */ R((e, n) => {
702
702
  const { __scopeRadio: t, name: o, checked: i = !1, required: r, disabled: a, value: c = "on", onCheck: s, ...u } = e, [_, l] = F(null), f = L(
703
703
  n,
704
- (m) => l(m)
705
- ), p = S(!1), d = _ ? !!_.closest("form") : !0;
706
- return /* @__PURE__ */ b(Ar, {
704
+ (b) => l(b)
705
+ ), p = A(!1), d = _ ? !!_.closest("form") : !0;
706
+ return /* @__PURE__ */ m(Sr, {
707
707
  scope: t,
708
708
  checked: i,
709
709
  disabled: a
710
- }, /* @__PURE__ */ b(j.button, I({
710
+ }, /* @__PURE__ */ m(j.button, I({
711
711
  type: "button",
712
712
  role: "radio",
713
713
  "aria-checked": i,
@@ -717,10 +717,10 @@ const Se = "Radio", [Sr, Ae] = J(Se), [Ar, Ir] = Sr(Se), Nr = /* @__PURE__ */ R(
717
717
  value: c
718
718
  }, u, {
719
719
  ref: f,
720
- onClick: x(e.onClick, (m) => {
721
- i || s == null || s(), d && (p.current = m.isPropagationStopped(), p.current || m.stopPropagation());
720
+ onClick: x(e.onClick, (b) => {
721
+ i || s == null || s(), d && (p.current = b.isPropagationStopped(), p.current || b.stopPropagation());
722
722
  })
723
- })), d && /* @__PURE__ */ b(Pr, {
723
+ })), d && /* @__PURE__ */ m(Pr, {
724
724
  control: _,
725
725
  bubbles: !p.current,
726
726
  name: o,
@@ -734,16 +734,16 @@ const Se = "Radio", [Sr, Ae] = J(Se), [Ar, Ir] = Sr(Se), Nr = /* @__PURE__ */ R(
734
734
  }));
735
735
  }), xr = "RadioIndicator", Er = /* @__PURE__ */ R((e, n) => {
736
736
  const { __scopeRadio: t, forceMount: o, ...i } = e, r = Ir(xr, t);
737
- return /* @__PURE__ */ b(Re, {
737
+ return /* @__PURE__ */ m(Re, {
738
738
  present: o || r.checked
739
- }, /* @__PURE__ */ b(j.span, I({
739
+ }, /* @__PURE__ */ m(j.span, I({
740
740
  "data-state": Ie(r.checked),
741
741
  "data-disabled": r.disabled ? "" : void 0
742
742
  }, i, {
743
743
  ref: n
744
744
  })));
745
745
  }), Pr = (e) => {
746
- const { control: n, checked: t, bubbles: o = !0, ...i } = e, r = S(null), a = yr(t), c = vr(n);
746
+ const { control: n, checked: t, bubbles: o = !0, ...i } = e, r = A(null), a = yr(t), c = vr(n);
747
747
  return T(() => {
748
748
  const s = r.current, u = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(u, "checked").set;
749
749
  if (a !== t && l) {
@@ -756,7 +756,7 @@ const Se = "Radio", [Sr, Ae] = J(Se), [Ar, Ir] = Sr(Se), Nr = /* @__PURE__ */ R(
756
756
  a,
757
757
  t,
758
758
  o
759
- ]), /* @__PURE__ */ b("input", I({
759
+ ]), /* @__PURE__ */ m("input", I({
760
760
  type: "radio",
761
761
  "aria-hidden": !0,
762
762
  defaultChecked: t
@@ -783,27 +783,27 @@ const Or = [
783
783
  "ArrowRight"
784
784
  ], Ne = "RadioGroup", [Tr, pt] = J(Ne, [
785
785
  ye,
786
- Ae
787
- ]), xe = ye(), Ee = Ae(), [wr, Mr] = Tr(Ne), kr = /* @__PURE__ */ R((e, n) => {
788
- const { __scopeRadioGroup: t, name: o, defaultValue: i, value: r, required: a = !1, disabled: c = !1, orientation: s, dir: u, loop: _ = !0, onValueChange: l, ...f } = e, p = xe(t), d = he(u), [m, h] = ge({
786
+ Se
787
+ ]), xe = ye(), Ee = Se(), [wr, kr] = Tr(Ne), Mr = /* @__PURE__ */ R((e, n) => {
788
+ const { __scopeRadioGroup: t, name: o, defaultValue: i, value: r, required: a = !1, disabled: c = !1, orientation: s, dir: u, loop: _ = !0, onValueChange: l, ...f } = e, p = xe(t), d = ge(u), [b, g] = he({
789
789
  prop: r,
790
790
  defaultProp: i,
791
791
  onChange: l
792
792
  });
793
- return /* @__PURE__ */ b(wr, {
793
+ return /* @__PURE__ */ m(wr, {
794
794
  scope: t,
795
795
  name: o,
796
796
  required: a,
797
797
  disabled: c,
798
- value: m,
799
- onValueChange: h
800
- }, /* @__PURE__ */ b(gr, I({
798
+ value: b,
799
+ onValueChange: g
800
+ }, /* @__PURE__ */ m(hr, I({
801
801
  asChild: !0
802
802
  }, p, {
803
803
  orientation: s,
804
804
  dir: d,
805
805
  loop: _
806
- }), /* @__PURE__ */ b(j.div, I({
806
+ }), /* @__PURE__ */ m(j.div, I({
807
807
  role: "radiogroup",
808
808
  "aria-required": a,
809
809
  "aria-orientation": s,
@@ -813,20 +813,20 @@ const Or = [
813
813
  ref: n
814
814
  }))));
815
815
  }), Fr = "RadioGroupItem", Lr = /* @__PURE__ */ R((e, n) => {
816
- const { __scopeRadioGroup: t, disabled: o, ...i } = e, r = Mr(Fr, t), a = r.disabled || o, c = xe(t), s = Ee(t), u = S(null), _ = L(n, u), l = r.value === i.value, f = S(!1);
816
+ const { __scopeRadioGroup: t, disabled: o, ...i } = e, r = kr(Fr, t), a = r.disabled || o, c = xe(t), s = Ee(t), u = A(null), _ = L(n, u), l = r.value === i.value, f = A(!1);
817
817
  return T(() => {
818
- const p = (m) => {
819
- Or.includes(m.key) && (f.current = !0);
818
+ const p = (b) => {
819
+ Or.includes(b.key) && (f.current = !0);
820
820
  }, d = () => f.current = !1;
821
821
  return document.addEventListener("keydown", p), document.addEventListener("keyup", d), () => {
822
822
  document.removeEventListener("keydown", p), document.removeEventListener("keyup", d);
823
823
  };
824
- }, []), /* @__PURE__ */ b(hr, I({
824
+ }, []), /* @__PURE__ */ m(gr, I({
825
825
  asChild: !0
826
826
  }, c, {
827
827
  focusable: !a,
828
828
  active: l
829
- }), /* @__PURE__ */ b(Nr, I({
829
+ }), /* @__PURE__ */ m(Nr, I({
830
830
  disabled: a,
831
831
  required: r.required,
832
832
  checked: l
@@ -844,10 +844,10 @@ const Or = [
844
844
  })));
845
845
  }), Dr = /* @__PURE__ */ R((e, n) => {
846
846
  const { __scopeRadioGroup: t, ...o } = e, i = Ee(t);
847
- return /* @__PURE__ */ b(Er, I({}, i, o, {
847
+ return /* @__PURE__ */ m(Er, I({}, i, o, {
848
848
  ref: n
849
849
  }));
850
- }), Gr = kr, zr = Lr, Ur = Dr;
850
+ }), Gr = Mr, Ur = Lr, qr = Dr;
851
851
  function jr(e) {
852
852
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
853
853
  }
@@ -888,7 +888,7 @@ var Pe = { exports: {} };
888
888
  })();
889
889
  })(Pe);
890
890
  var Br = Pe.exports;
891
- const Vr = /* @__PURE__ */ jr(Br), qr = {
891
+ const zr = /* @__PURE__ */ jr(Br), Vr = {
892
892
  "purpur-radio-card-group": "_purpur-radio-card-group_19msf_1",
893
893
  "purpur-radio-card-group--vertical": "_purpur-radio-card-group--vertical_19msf_5",
894
894
  "purpur-radio-card-group--horizontal": "_purpur-radio-card-group--horizontal_19msf_9",
@@ -908,7 +908,7 @@ const Vr = /* @__PURE__ */ jr(Br), qr = {
908
908
  "purpur-radio-card-group__item-image-placeholder": "_purpur-radio-card-group__item-image-placeholder_19msf_167",
909
909
  "purpur-radio-card-group__item-image-placeholder--loaded": "_purpur-radio-card-group__item-image-placeholder--loaded_19msf_172",
910
910
  "purpur-radio-card-group__item-children": "_purpur-radio-card-group__item-children_19msf_175"
911
- }, C = Vr.bind(qr);
911
+ }, C = zr.bind(Vr);
912
912
  function Kr(e) {
913
913
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
914
914
  }
@@ -950,20 +950,20 @@ var Oe = { exports: {} };
950
950
  })(Oe);
951
951
  var Hr = Oe.exports;
952
952
  const Yr = /* @__PURE__ */ Kr(Hr), D = {
953
- "purpur-paragraph": "_purpur-paragraph_15yuz_1",
954
- "purpur-paragraph--disabled": "_purpur-paragraph--disabled_15yuz_7",
955
- "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_15yuz_10",
956
- "purpur-paragraph--negative": "_purpur-paragraph--negative_15yuz_13",
957
- "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_15yuz_16",
958
- "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_15yuz_22",
959
- "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_15yuz_29",
960
- "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_15yuz_36",
961
- "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_15yuz_42",
962
- "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_15yuz_48",
963
- "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_15yuz_54",
964
- "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_15yuz_60",
965
- "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_15yuz_67",
966
- "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_15yuz_75"
953
+ "purpur-paragraph": "_purpur-paragraph_1rh57_1",
954
+ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
955
+ "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
956
+ "purpur-paragraph--negative": "_purpur-paragraph--negative_1rh57_13",
957
+ "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1rh57_16",
958
+ "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1rh57_22",
959
+ "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1rh57_29",
960
+ "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1rh57_36",
961
+ "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1rh57_42",
962
+ "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1rh57_48",
963
+ "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1rh57_54",
964
+ "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
965
+ "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
966
+ "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
967
967
  }, Wr = {
968
968
  PARAGRAPH100: "paragraph-100",
969
969
  PARAGRAPH100MEDIUM: "paragraph-100-medium",
@@ -1074,7 +1074,7 @@ const Jr = /* @__PURE__ */ Xr(Zr), Qr = "_loading_93tal_1", te = {
1074
1074
  }), u = C(`${H}-placeholder`, {
1075
1075
  [`${H}-placeholder--loaded`]: r
1076
1076
  });
1077
- return /* @__PURE__ */ M(Le, { children: [
1077
+ return /* @__PURE__ */ k(Le, { children: [
1078
1078
  /* @__PURE__ */ v(
1079
1079
  "img",
1080
1080
  {
@@ -1100,9 +1100,9 @@ const Jr = /* @__PURE__ */ Xr(Zr), Qr = "_loading_93tal_1", te = {
1100
1100
  title: u,
1101
1101
  value: _
1102
1102
  } = e;
1103
- return /* @__PURE__ */ M("div", { className: C(`${N}-container`), ref: n, children: [
1104
- /* @__PURE__ */ M(
1105
- zr,
1103
+ return /* @__PURE__ */ k("div", { className: C(`${N}-container`), ref: n, children: [
1104
+ /* @__PURE__ */ k(
1105
+ Ur,
1106
1106
  {
1107
1107
  className: C(N),
1108
1108
  "data-testid": t,
@@ -1112,8 +1112,8 @@ const Jr = /* @__PURE__ */ Xr(Zr), Qr = "_loading_93tal_1", te = {
1112
1112
  value: _,
1113
1113
  children: [
1114
1114
  c && /* @__PURE__ */ v("span", { className: C(`${N}-image-container`), children: rt(c) ? /* @__PURE__ */ v(tt, { ...c, "data-testid": t && `${t}-image` }) : oe(c, e) }),
1115
- /* @__PURE__ */ M("span", { className: C(`${N}-content`), children: [
1116
- /* @__PURE__ */ M("span", { className: C(`${N}-top-container`), children: [
1115
+ /* @__PURE__ */ k("span", { className: C(`${N}-content`), children: [
1116
+ /* @__PURE__ */ k("span", { className: C(`${N}-top-container`), children: [
1117
1117
  typeof u == "string" ? /* @__PURE__ */ v(
1118
1118
  fe,
1119
1119
  {
@@ -1124,7 +1124,7 @@ const Jr = /* @__PURE__ */ Xr(Zr), Qr = "_loading_93tal_1", te = {
1124
1124
  children: u
1125
1125
  }
1126
1126
  ) : oe(u, e),
1127
- /* @__PURE__ */ v("span", { className: C(`${N}-radio`), children: /* @__PURE__ */ v(Ur, { className: C(`${N}-indicator`) }) })
1127
+ /* @__PURE__ */ v("span", { className: C(`${N}-radio`), children: /* @__PURE__ */ v(qr, { className: C(`${N}-indicator`) }) })
1128
1128
  ] }),
1129
1129
  o && /* @__PURE__ */ v("span", { className: C(`${N}-bottom-container`), children: typeof o == "string" ? /* @__PURE__ */ v(
1130
1130
  fe,
@@ -1143,7 +1143,7 @@ const Jr = /* @__PURE__ */ Xr(Zr), Qr = "_loading_93tal_1", te = {
1143
1143
  ] });
1144
1144
  }, de = R(nt);
1145
1145
  de.displayName = "RadioCardItem";
1146
- const ot = (e) => U(e) && (e == null ? void 0 : e.type) === de, Y = "purpur-radio-card-group", at = ({
1146
+ const ot = (e) => q(e) && (e == null ? void 0 : e.type) === de, Y = "purpur-radio-card-group", at = ({
1147
1147
  "data-testid": e,
1148
1148
  "aria-labelledby": n,
1149
1149
  children: t,
@@ -1156,7 +1156,7 @@ const ot = (e) => U(e) && (e == null ? void 0 : e.type) === de, Y = "purpur-radi
1156
1156
  ...u
1157
1157
  }, _) => {
1158
1158
  const l = P.toArray(t).filter(ot);
1159
- return /* @__PURE__ */ M("div", { className: C(o, `${Y}__container`), ref: _, children: [
1159
+ return /* @__PURE__ */ k("div", { className: C(o, `${Y}__container`), ref: _, children: [
1160
1160
  r && /* @__PURE__ */ v(
1161
1161
  Ke,
1162
1162
  {
@@ -1167,7 +1167,7 @@ const ot = (e) => U(e) && (e == null ? void 0 : e.type) === de, Y = "purpur-radi
1167
1167
  children: `${u.required ? "* " : ""}${r}`
1168
1168
  }
1169
1169
  ),
1170
- (!!(i != null && i.length) || l.length) && /* @__PURE__ */ M(
1170
+ (!!(i != null && i.length) || l.length) && /* @__PURE__ */ k(
1171
1171
  Gr,
1172
1172
  {
1173
1173
  ...u,