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