@purpurds/radio-card-group 5.27.2 → 5.27.4

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