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