@purpurds/card 5.24.0 → 5.24.2

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.
package/dist/card.es.js CHANGED
@@ -13,9 +13,9 @@ var T = { exports: {} };
13
13
  (function(a) {
14
14
  (function() {
15
15
  var n = {}.hasOwnProperty;
16
- function t() {
17
- for (var r = "", e = 0; e < arguments.length; e++) {
18
- var u = arguments[e];
16
+ function e() {
17
+ for (var r = "", t = 0; t < arguments.length; t++) {
18
+ var u = arguments[t];
19
19
  u && (r = i(r, p.call(this, u)));
20
20
  }
21
21
  return r;
@@ -26,18 +26,18 @@ var T = { exports: {} };
26
26
  if (typeof r != "object")
27
27
  return "";
28
28
  if (Array.isArray(r))
29
- return t.apply(this, r);
29
+ return e.apply(this, r);
30
30
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
31
31
  return r.toString();
32
- var e = "";
32
+ var t = "";
33
33
  for (var u in r)
34
- n.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
35
- return e;
34
+ n.call(r, u) && r[u] && (t = i(t, this && this[u] || u));
35
+ return t;
36
36
  }
37
- function i(r, e) {
38
- return e ? r ? r + " " + e : r + e : r;
37
+ function i(r, t) {
38
+ return t ? r ? r + " " + t : r + t : r;
39
39
  }
40
- a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
40
+ a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
41
41
  })();
42
42
  })(T);
43
43
  var or = T.exports;
@@ -56,9 +56,9 @@ var V = { exports: {} };
56
56
  (function(a) {
57
57
  (function() {
58
58
  var n = {}.hasOwnProperty;
59
- function t() {
60
- for (var r = "", e = 0; e < arguments.length; e++) {
61
- var u = arguments[e];
59
+ function e() {
60
+ for (var r = "", t = 0; t < arguments.length; t++) {
61
+ var u = arguments[t];
62
62
  u && (r = i(r, p.call(this, u)));
63
63
  }
64
64
  return r;
@@ -69,18 +69,18 @@ var V = { exports: {} };
69
69
  if (typeof r != "object")
70
70
  return "";
71
71
  if (Array.isArray(r))
72
- return t.apply(this, r);
72
+ return e.apply(this, r);
73
73
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
74
74
  return r.toString();
75
- var e = "";
75
+ var t = "";
76
76
  for (var u in r)
77
- n.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
78
- return e;
77
+ n.call(r, u) && r[u] && (t = i(t, this && this[u] || u));
78
+ return t;
79
79
  }
80
- function i(r, e) {
81
- return e ? r ? r + " " + e : r + e : r;
80
+ function i(r, t) {
81
+ return t ? r ? r + " " + t : r + t : r;
82
82
  }
83
- a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
83
+ a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
84
84
  })();
85
85
  })(V);
86
86
  var lr = V.exports;
@@ -128,32 +128,32 @@ const dr = /* @__PURE__ */ cr(lr), _r = {
128
128
  keywords: ["tag"],
129
129
  category: "other"
130
130
  }, $r = dr.bind(_r), M = "purpur-icon", br = "md", xr = (a) => a.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Nr = ({ content: a = "", title: n } = {}) => {
131
- const t = [
131
+ const e = [
132
132
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
133
133
  { name: "fill", value: "currentColor" },
134
134
  { name: "viewBox", value: "0 0 24 24" },
135
135
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
136
136
  ], p = n ? `<title>${n}</title>` : "";
137
- return `<svg ${xr(t)}>${p}${a}</svg>`;
137
+ return `<svg ${xr(e)}>${p}${a}</svg>`;
138
138
  }, Cr = (a) => a.replace(/<(\/?)svg([^>]*)>/g, "").trim(), F = ({
139
139
  ["data-testid"]: a,
140
140
  svg: n,
141
- allyTitle: t,
141
+ allyTitle: e,
142
142
  className: p,
143
143
  size: i = br,
144
144
  ...r
145
145
  }) => {
146
- const e = Nr({
146
+ const t = Nr({
147
147
  content: Cr(n.svg),
148
- title: t
148
+ title: e
149
149
  }), u = $r(p, M, `${M}--${i}`);
150
150
  return /* @__PURE__ */ o(
151
151
  "span",
152
152
  {
153
- "aria-label": t,
153
+ "aria-label": e,
154
154
  className: u,
155
155
  "data-testid": a,
156
- dangerouslySetInnerHTML: { __html: e },
156
+ dangerouslySetInnerHTML: { __html: t },
157
157
  ...r
158
158
  }
159
159
  );
@@ -171,9 +171,9 @@ var G = { exports: {} };
171
171
  (function(a) {
172
172
  (function() {
173
173
  var n = {}.hasOwnProperty;
174
- function t() {
175
- for (var r = "", e = 0; e < arguments.length; e++) {
176
- var u = arguments[e];
174
+ function e() {
175
+ for (var r = "", t = 0; t < arguments.length; t++) {
176
+ var u = arguments[t];
177
177
  u && (r = i(r, p(u)));
178
178
  }
179
179
  return r;
@@ -184,18 +184,18 @@ var G = { exports: {} };
184
184
  if (typeof r != "object")
185
185
  return "";
186
186
  if (Array.isArray(r))
187
- return t.apply(null, r);
187
+ return e.apply(null, r);
188
188
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
189
189
  return r.toString();
190
- var e = "";
190
+ var t = "";
191
191
  for (var u in r)
192
- n.call(r, u) && r[u] && (e = i(e, u));
193
- return e;
192
+ n.call(r, u) && r[u] && (t = i(t, u));
193
+ return t;
194
194
  }
195
- function i(r, e) {
196
- return e ? r ? r + " " + e : r + e : r;
195
+ function i(r, t) {
196
+ return t ? r ? r + " " + t : r + t : r;
197
197
  }
198
- a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
198
+ a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
199
199
  })();
200
200
  })(G);
201
201
  var kr = G.exports;
@@ -241,14 +241,14 @@ const Sr = /* @__PURE__ */ Ar(kr), Z = {
241
241
  }, jr = ({
242
242
  children: a,
243
243
  showIcon: n = !0,
244
- variant: t,
244
+ variant: e,
245
245
  ["data-testid"]: p,
246
246
  allyLabel: i,
247
247
  className: r = "",
248
- ...e
248
+ ...t
249
249
  }) => {
250
- const u = Or(t), c = Sr([r, Z[z], Z[`${z}--${t}`]]);
251
- return /* @__PURE__ */ C("span", { "aria-label": i, className: c, "data-testid": p, ...e, children: [
250
+ const u = Or(e), c = Sr([r, Z[z], Z[`${z}--${e}`]]);
251
+ return /* @__PURE__ */ C("span", { "aria-label": i, className: c, "data-testid": p, ...t, children: [
252
252
  n && u && /* @__PURE__ */ o(F, { "data-testid": `${p}-icon`, allyTitle: i, size: "xs", svg: u }),
253
253
  a
254
254
  ] });
@@ -257,15 +257,15 @@ const Sr = /* @__PURE__ */ Ar(kr), Z = {
257
257
  }, Zr = s.bind(Mr), zr = "purpur-card-badge", Rr = ({
258
258
  ["data-testid"]: a = "purpur-card-badge",
259
259
  variant: n,
260
- text: t
261
- }) => n && t ? /* @__PURE__ */ o(
260
+ text: e
261
+ }) => n && e ? /* @__PURE__ */ o(
262
262
  jr,
263
263
  {
264
264
  className: Zr(zr),
265
265
  variant: n,
266
266
  showIcon: !1,
267
267
  "data-testid": a,
268
- children: t
268
+ children: e
269
269
  }
270
270
  ) : null, Er = {
271
271
  "purpur-card-content": "_purpur-card-content_2uc00_1"
@@ -273,19 +273,19 @@ const Sr = /* @__PURE__ */ Ar(kr), Z = {
273
273
  ["data-testid"]: a = "purpur-card-content",
274
274
  children: n
275
275
  }) => /* @__PURE__ */ o("div", { className: Pr(Lr), "data-testid": a, children: n }), Ir = {
276
- "purpur-card-content-container": "_purpur-card-content-container_1oawn_1",
277
- "purpur-card-content-container--footer": "_purpur-card-content-container--footer_1oawn_12"
276
+ "purpur-card-content-container": "_purpur-card-content-container_ueryq_1",
277
+ "purpur-card-content-container--footer": "_purpur-card-content-container--footer_ueryq_12"
278
278
  }, Br = s.bind(Ir), R = "purpur-card-content-container", Hr = ({
279
279
  ["data-testid"]: a = "purpur-card-content-container",
280
280
  children: n,
281
- isFooter: t = !1
281
+ isFooter: e = !1
282
282
  }) => /* @__PURE__ */ o(
283
283
  "div",
284
284
  {
285
285
  className: Br([
286
286
  R,
287
287
  {
288
- [`${R}--footer`]: t
288
+ [`${R}--footer`]: e
289
289
  }
290
290
  ]),
291
291
  "data-testid": a,
@@ -304,9 +304,9 @@ var U = { exports: {} };
304
304
  (function(a) {
305
305
  (function() {
306
306
  var n = {}.hasOwnProperty;
307
- function t() {
308
- for (var r = "", e = 0; e < arguments.length; e++) {
309
- var u = arguments[e];
307
+ function e() {
308
+ for (var r = "", t = 0; t < arguments.length; t++) {
309
+ var u = arguments[t];
310
310
  u && (r = i(r, p(u)));
311
311
  }
312
312
  return r;
@@ -317,18 +317,18 @@ var U = { exports: {} };
317
317
  if (typeof r != "object")
318
318
  return "";
319
319
  if (Array.isArray(r))
320
- return t.apply(null, r);
320
+ return e.apply(null, r);
321
321
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
322
322
  return r.toString();
323
- var e = "";
323
+ var t = "";
324
324
  for (var u in r)
325
- n.call(r, u) && r[u] && (e = i(e, u));
326
- return e;
325
+ n.call(r, u) && r[u] && (t = i(t, u));
326
+ return t;
327
327
  }
328
- function i(r, e) {
329
- return e ? r ? r + " " + e : r + e : r;
328
+ function i(r, t) {
329
+ return t ? r ? r + " " + t : r + t : r;
330
330
  }
331
- a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
331
+ a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
332
332
  })();
333
333
  })(U);
334
334
  var Tr = U.exports;
@@ -353,7 +353,7 @@ const E = /* @__PURE__ */ Dr(Tr), Vr = "_rotate_1xozj_1", Fr = "_dash_1xozj_1",
353
353
  }, X = ({
354
354
  ["data-testid"]: a,
355
355
  disabled: n = !1,
356
- negative: t = !1,
356
+ negative: e = !1,
357
357
  size: p = Gr.SM,
358
358
  ...i
359
359
  }) => /* @__PURE__ */ o(
@@ -367,7 +367,7 @@ const E = /* @__PURE__ */ Dr(Tr), Vr = "_rotate_1xozj_1", Fr = "_dash_1xozj_1",
367
367
  {
368
368
  className: E(h[`${v}__circle`], {
369
369
  [h[`${v}__circle--disabled`]]: n,
370
- [h[`${v}__circle--negative`]]: t
370
+ [h[`${v}__circle--negative`]]: e
371
371
  }),
372
372
  cx: "25",
373
373
  cy: "25",
@@ -393,11 +393,11 @@ const E = /* @__PURE__ */ Dr(Tr), Vr = "_rotate_1xozj_1", Fr = "_dash_1xozj_1",
393
393
  }, Xr = s.bind(Ur), _ = "purpur-card-cta", Kr = ({
394
394
  ["data-testid"]: a = "purpur-card-cta",
395
395
  className: n,
396
- children: t,
396
+ children: e,
397
397
  disabled: p = !1,
398
398
  iconPosition: i = "right",
399
399
  loading: r = !1,
400
- text: e,
400
+ text: t,
401
401
  ...u
402
402
  }) => /* @__PURE__ */ o(
403
403
  "div",
@@ -409,16 +409,16 @@ const E = /* @__PURE__ */ Dr(Tr), Vr = "_rotate_1xozj_1", Fr = "_dash_1xozj_1",
409
409
  `${_}--secondary`,
410
410
  {
411
411
  [`${_}--disabled`]: p,
412
- [`${_}--icon-only`]: !e,
413
- [`${_}--text`]: !!e
412
+ [`${_}--icon-only`]: !t,
413
+ [`${_}--text`]: !!t
414
414
  }
415
415
  ])} ${_}`,
416
416
  "data-testid": a,
417
417
  ...u,
418
418
  children: r ? /* @__PURE__ */ o(X, { "data-testid": `${a}-spinner`, size: "xs", disabled: p }) : /* @__PURE__ */ C(nr, { children: [
419
- i === "left" && t,
420
- e,
421
- i === "right" && t
419
+ i === "left" && e,
420
+ t,
421
+ i === "right" && e
422
422
  ] })
423
423
  }
424
424
  );
@@ -434,9 +434,9 @@ var K = { exports: {} };
434
434
  (function(a) {
435
435
  (function() {
436
436
  var n = {}.hasOwnProperty;
437
- function t() {
438
- for (var r = "", e = 0; e < arguments.length; e++) {
439
- var u = arguments[e];
437
+ function e() {
438
+ for (var r = "", t = 0; t < arguments.length; t++) {
439
+ var u = arguments[t];
440
440
  u && (r = i(r, p.call(this, u)));
441
441
  }
442
442
  return r;
@@ -447,18 +447,18 @@ var K = { exports: {} };
447
447
  if (typeof r != "object")
448
448
  return "";
449
449
  if (Array.isArray(r))
450
- return t.apply(this, r);
450
+ return e.apply(this, r);
451
451
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
452
452
  return r.toString();
453
- var e = "";
453
+ var t = "";
454
454
  for (var u in r)
455
- n.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
456
- return e;
455
+ n.call(r, u) && r[u] && (t = i(t, this && this[u] || u));
456
+ return t;
457
457
  }
458
- function i(r, e) {
459
- return e ? r ? r + " " + e : r + e : r;
458
+ function i(r, t) {
459
+ return t ? r ? r + " " + t : r + t : r;
460
460
  }
461
- a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
461
+ a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
462
462
  })();
463
463
  })(K);
464
464
  var Yr = K.exports;
@@ -496,33 +496,33 @@ const Y = (a) => /* @__PURE__ */ o(
496
496
  }
497
497
  );
498
498
  Y.displayName = "IconCheckmark";
499
- const ta = Jr.bind(Qr), P = "purpur-icon", ea = "md", na = (a) => a.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), ua = ({ content: a = "", title: n } = {}) => {
500
- const t = [
499
+ const ea = Jr.bind(Qr), P = "purpur-icon", ta = "md", na = (a) => a.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), ua = ({ content: a = "", title: n } = {}) => {
500
+ const e = [
501
501
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
502
502
  { name: "fill", value: "currentColor" },
503
503
  { name: "viewBox", value: "0 0 24 24" },
504
504
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
505
505
  ], p = n ? `<title>${n}</title>` : "";
506
- return `<svg ${na(t)}>${p}${a}</svg>`;
506
+ return `<svg ${na(e)}>${p}${a}</svg>`;
507
507
  }, pa = (a) => a.replace(/<(\/?)svg([^>]*)>/g, "").trim(), O = ({
508
508
  ["data-testid"]: a,
509
509
  svg: n,
510
- allyTitle: t,
510
+ allyTitle: e,
511
511
  className: p,
512
- size: i = ea,
512
+ size: i = ta,
513
513
  ...r
514
514
  }) => {
515
- const e = ua({
515
+ const t = ua({
516
516
  content: pa(n.svg),
517
- title: t
518
- }), u = ta(p, P, `${P}--${i}`);
517
+ title: e
518
+ }), u = ea(p, P, `${P}--${i}`);
519
519
  return /* @__PURE__ */ o(
520
520
  "span",
521
521
  {
522
- "aria-label": t,
522
+ "aria-label": e,
523
523
  className: u,
524
524
  "data-testid": a,
525
- dangerouslySetInnerHTML: { __html: e },
525
+ dangerouslySetInnerHTML: { __html: t },
526
526
  ...r
527
527
  }
528
528
  );
@@ -540,9 +540,9 @@ var J = { exports: {} };
540
540
  (function(a) {
541
541
  (function() {
542
542
  var n = {}.hasOwnProperty;
543
- function t() {
544
- for (var r = "", e = 0; e < arguments.length; e++) {
545
- var u = arguments[e];
543
+ function e() {
544
+ for (var r = "", t = 0; t < arguments.length; t++) {
545
+ var u = arguments[t];
546
546
  u && (r = i(r, p(u)));
547
547
  }
548
548
  return r;
@@ -553,18 +553,18 @@ var J = { exports: {} };
553
553
  if (typeof r != "object")
554
554
  return "";
555
555
  if (Array.isArray(r))
556
- return t.apply(null, r);
556
+ return e.apply(null, r);
557
557
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
558
558
  return r.toString();
559
- var e = "";
559
+ var t = "";
560
560
  for (var u in r)
561
- n.call(r, u) && r[u] && (e = i(e, u));
562
- return e;
561
+ n.call(r, u) && r[u] && (t = i(t, u));
562
+ return t;
563
563
  }
564
- function i(r, e) {
565
- return e ? r ? r + " " + e : r + e : r;
564
+ function i(r, t) {
565
+ return t ? r ? r + " " + t : r + t : r;
566
566
  }
567
- a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
567
+ a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
568
568
  })();
569
569
  })(J);
570
570
  var oa = J.exports;
@@ -597,17 +597,17 @@ const sa = /* @__PURE__ */ ia(oa), y = {
597
597
  }, w = "purpur-paragraph", j = ({
598
598
  ["data-testid"]: a,
599
599
  children: n,
600
- className: t,
600
+ className: e,
601
601
  disabled: p,
602
602
  enableHyphenation: i = !1,
603
603
  negative: r = !1,
604
- variant: e = ca.PARAGRAPH100,
604
+ variant: t = ca.PARAGRAPH100,
605
605
  ...u
606
606
  }) => {
607
607
  const c = sa([
608
- t,
608
+ e,
609
609
  y[w],
610
- y[`${w}--${e}`],
610
+ y[`${w}--${t}`],
611
611
  {
612
612
  [y[`${w}--hyphens`]]: i,
613
613
  [y[`${w}--disabled`]]: p,
@@ -623,17 +623,17 @@ const la = {
623
623
  }, L = s.bind(la), q = "purpur-card-feature-list", da = ({
624
624
  ["data-testid"]: a = "purpur-card-feature-list",
625
625
  listItems: n
626
- }) => n && n.length > 0 ? /* @__PURE__ */ o("ul", { className: L(q), "data-testid": a, children: n.map((t) => /* @__PURE__ */ C(
626
+ }) => n && n.length > 0 ? /* @__PURE__ */ o("ul", { className: L(q), "data-testid": a, children: n.map((e) => /* @__PURE__ */ C(
627
627
  "li",
628
628
  {
629
629
  className: L(`${q}__list-item`),
630
630
  "data-testid": `${a}-item`,
631
631
  children: [
632
632
  /* @__PURE__ */ o(Y, { size: "xs" }),
633
- /* @__PURE__ */ o(j, { children: t })
633
+ /* @__PURE__ */ o(j, { children: e })
634
634
  ]
635
635
  },
636
- t
636
+ e
637
637
  )) }) : null, _a = {
638
638
  "purpur-card-link-arrow": "_purpur-card-link-arrow_1r4zu_1",
639
639
  "purpur-card-link-arrow--sm": "_purpur-card-link-arrow--sm_1r4zu_33",
@@ -651,7 +651,7 @@ const la = {
651
651
  }, ga = s.bind(_a), m = "purpur-card-link-arrow", ma = ({
652
652
  ["data-testid"]: a = "purpur-card-link-arrow",
653
653
  className: n,
654
- disabled: t = !1,
654
+ disabled: e = !1,
655
655
  loading: p = !1,
656
656
  ...i
657
657
  }) => /* @__PURE__ */ o(
@@ -664,12 +664,12 @@ const la = {
664
664
  `${m}--icon-only`,
665
665
  `${m}--secondary`,
666
666
  {
667
- [`${m}--disabled`]: t
667
+ [`${m}--disabled`]: e
668
668
  }
669
669
  ])} ${m}`,
670
670
  "data-testid": a,
671
671
  ...i,
672
- children: p ? /* @__PURE__ */ o(X, { "data-testid": `${a}-spinner`, size: "xs", disabled: t }) : /* @__PURE__ */ o(W, { "data-testid": `${a}-arrow`, size: "md" })
672
+ children: p ? /* @__PURE__ */ o(X, { "data-testid": `${a}-spinner`, size: "xs", disabled: e }) : /* @__PURE__ */ o(W, { "data-testid": `${a}-arrow`, size: "md" })
673
673
  }
674
674
  ), fa = {
675
675
  "purpur-card-overline": "_purpur-card-overline_192fe_1"
@@ -689,8 +689,8 @@ const la = {
689
689
  function f() {
690
690
  return f = Object.assign ? Object.assign.bind() : function(a) {
691
691
  for (var n = 1; n < arguments.length; n++) {
692
- var t = arguments[n];
693
- for (var p in t) ({}).hasOwnProperty.call(t, p) && (a[p] = t[p]);
692
+ var e = arguments[n];
693
+ for (var p in e) ({}).hasOwnProperty.call(e, p) && (a[p] = e[p]);
694
694
  }
695
695
  return a;
696
696
  }, f.apply(null, arguments);
@@ -700,28 +700,28 @@ function ba(a, n) {
700
700
  }
701
701
  function xa(...a) {
702
702
  return (n) => a.forEach(
703
- (t) => ba(t, n)
703
+ (e) => ba(e, n)
704
704
  );
705
705
  }
706
706
  const Q = /* @__PURE__ */ x((a, n) => {
707
- const { children: t, ...p } = a, i = $.toArray(t), r = i.find(Ca);
707
+ const { children: e, ...p } = a, i = $.toArray(e), r = i.find(Ca);
708
708
  if (r) {
709
- const e = r.props.children, u = i.map((c) => c === r ? $.count(e) > 1 ? $.only(null) : /* @__PURE__ */ N(e) ? e.props.children : null : c);
709
+ const t = r.props.children, u = i.map((c) => c === r ? $.count(t) > 1 ? $.only(null) : /* @__PURE__ */ N(t) ? t.props.children : null : c);
710
710
  return /* @__PURE__ */ b(S, f({}, p, {
711
711
  ref: n
712
- }), /* @__PURE__ */ N(e) ? /* @__PURE__ */ D(e, void 0, u) : null);
712
+ }), /* @__PURE__ */ N(t) ? /* @__PURE__ */ D(t, void 0, u) : null);
713
713
  }
714
714
  return /* @__PURE__ */ b(S, f({}, p, {
715
715
  ref: n
716
- }), t);
716
+ }), e);
717
717
  });
718
718
  Q.displayName = "Slot";
719
719
  const S = /* @__PURE__ */ x((a, n) => {
720
- const { children: t, ...p } = a;
721
- return /* @__PURE__ */ N(t) ? /* @__PURE__ */ D(t, {
722
- ...Aa(p, t.props),
723
- ref: n ? xa(n, t.ref) : t.ref
724
- }) : $.count(t) > 1 ? $.only(null) : null;
720
+ const { children: e, ...p } = a;
721
+ return /* @__PURE__ */ N(e) ? /* @__PURE__ */ D(e, {
722
+ ...Aa(p, e.props),
723
+ ref: n ? xa(n, e.ref) : e.ref
724
+ }) : $.count(e) > 1 ? $.only(null) : null;
725
725
  });
726
726
  S.displayName = "SlotClone";
727
727
  const Na = ({ children: a }) => /* @__PURE__ */ b(pr, null, a);
@@ -729,24 +729,24 @@ function Ca(a) {
729
729
  return /* @__PURE__ */ N(a) && a.type === Na;
730
730
  }
731
731
  function Aa(a, n) {
732
- const t = {
732
+ const e = {
733
733
  ...n
734
734
  };
735
735
  for (const p in n) {
736
736
  const i = a[p], r = n[p];
737
- /^on[A-Z]/.test(p) ? i && r ? t[p] = (...e) => {
738
- r(...e), i(...e);
739
- } : i && (t[p] = i) : p === "style" ? t[p] = {
737
+ /^on[A-Z]/.test(p) ? i && r ? e[p] = (...t) => {
738
+ r(...t), i(...t);
739
+ } : i && (e[p] = i) : p === "style" ? e[p] = {
740
740
  ...i,
741
741
  ...r
742
- } : p === "className" && (t[p] = [
742
+ } : p === "className" && (e[p] = [
743
743
  i,
744
744
  r
745
745
  ].filter(Boolean).join(" "));
746
746
  }
747
747
  return {
748
748
  ...a,
749
- ...t
749
+ ...e
750
750
  };
751
751
  }
752
752
  const ka = [
@@ -767,17 +767,17 @@ const ka = [
767
767
  "svg",
768
768
  "ul"
769
769
  ], Sa = ka.reduce((a, n) => {
770
- const t = /* @__PURE__ */ x((p, i) => {
771
- const { asChild: r, ...e } = p, u = r ? Q : n;
770
+ const e = /* @__PURE__ */ x((p, i) => {
771
+ const { asChild: r, ...t } = p, u = r ? Q : n;
772
772
  return ur(() => {
773
773
  window[Symbol.for("radix-ui")] = !0;
774
- }, []), /* @__PURE__ */ b(u, f({}, e, {
774
+ }, []), /* @__PURE__ */ b(u, f({}, t, {
775
775
  ref: i
776
776
  }));
777
777
  });
778
- return t.displayName = `Primitive.${n}`, {
778
+ return e.displayName = `Primitive.${n}`, {
779
779
  ...a,
780
- [n]: t
780
+ [n]: e
781
781
  };
782
782
  }, {}), Oa = /* @__PURE__ */ x((a, n) => /* @__PURE__ */ b(Sa.span, f({}, a, {
783
783
  ref: n,
@@ -798,19 +798,19 @@ const ka = [
798
798
  }))), ja = Oa, I = ({
799
799
  asChild: a,
800
800
  children: n,
801
- className: t = "",
801
+ className: e = "",
802
802
  ["data-testid"]: p
803
- }) => /* @__PURE__ */ o(ja, { asChild: a, "data-testid": p, className: t, children: n }), B = s.bind($a), g = "purpur-card-trigger-item", Ma = ({
803
+ }) => /* @__PURE__ */ o(ja, { asChild: a, "data-testid": p, className: e, children: n }), B = s.bind($a), g = "purpur-card-trigger-item", Ma = ({
804
804
  ["data-testid"]: a = "purpur-card-trigger-item",
805
805
  disabled: n = !1,
806
- href: t,
806
+ href: e,
807
807
  onClick: p,
808
808
  screenReaderText: i
809
809
  }) => {
810
810
  const r = (u) => {
811
811
  n ? u.preventDefault() : p && p();
812
- }, e = `${g} ${n ? `${g}--disabled` : ""}`;
813
- return t ? (
812
+ }, t = `${g} ${n ? `${g}--disabled` : ""}`;
813
+ return e ? (
814
814
  // eslint-disable-next-line jsx-a11y/anchor-is-valid
815
815
  /* @__PURE__ */ o(
816
816
  "a",
@@ -821,9 +821,9 @@ const ka = [
821
821
  {
822
822
  [`${g}--disabled`]: n
823
823
  }
824
- ])} ${e}`,
824
+ ])} ${t}`,
825
825
  "data-testid": a,
826
- href: n ? void 0 : t,
826
+ href: n ? void 0 : e,
827
827
  tabIndex: n ? 0 : void 0,
828
828
  children: /* @__PURE__ */ o(I, { children: i })
829
829
  }
@@ -838,7 +838,7 @@ const ka = [
838
838
  {
839
839
  [`${g}--disabled`]: n
840
840
  }
841
- ])} ${e}`,
841
+ ])} ${t}`,
842
842
  "data-testid": a,
843
843
  type: "button",
844
844
  onClick: r,
@@ -849,31 +849,31 @@ const ka = [
849
849
  ({
850
850
  ["data-testid"]: a = "purpur-card-root",
851
851
  children: n,
852
- className: t,
852
+ className: e,
853
853
  disabled: p,
854
854
  fullHeight: i,
855
855
  href: r,
856
- onClick: e,
856
+ onClick: t,
857
857
  screenReaderText: u,
858
858
  variant: c,
859
859
  ...ar
860
- }, tr) => {
861
- const er = Za([
860
+ }, er) => {
861
+ const tr = Za([
862
862
  A,
863
- t,
863
+ e,
864
864
  {
865
865
  [`${A}--${c}`]: c,
866
866
  [`${A}--full-height`]: i
867
867
  }
868
868
  ]);
869
- return /* @__PURE__ */ C("div", { className: er, "data-testid": a, ref: tr, ...ar, children: [
869
+ return /* @__PURE__ */ C("div", { className: tr, "data-testid": a, ref: er, ...ar, children: [
870
870
  n,
871
- (e || r) && u && /* @__PURE__ */ o(
871
+ (t || r) && u && /* @__PURE__ */ o(
872
872
  Ma,
873
873
  {
874
874
  disabled: p,
875
875
  href: r,
876
- onClick: e,
876
+ onClick: t,
877
877
  screenReaderText: u
878
878
  }
879
879
  )
@@ -881,16 +881,16 @@ const ka = [
881
881
  }
882
882
  );
883
883
  rr.displayName = "CardRoot";
884
- const H = s.bind(sr), k = "purpur-card", d = ({ children: a, className: n, ...t }) => {
884
+ const H = s.bind(sr), k = "purpur-card", d = ({ children: a, className: n, ...e }) => {
885
885
  const p = H([
886
886
  k,
887
887
  n,
888
888
  {
889
- [`${k}--is-interactive`]: t.onClick || t.href,
890
- [`${k}--disabled`]: t.disabled
889
+ [`${k}--is-interactive`]: e.onClick || e.href,
890
+ [`${k}--disabled`]: e.disabled
891
891
  }
892
892
  ]);
893
- return /* @__PURE__ */ o(rr, { className: H(p), ...t, children: a });
893
+ return /* @__PURE__ */ o(rr, { className: H(p), ...e, children: a });
894
894
  };
895
895
  d.Badge = Rr;
896
896
  d.LinkArrow = ma;