@purpurds/card 5.25.0 → 5.26.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.
package/dist/card.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as C, jsx as o, Fragment as nr } from "react/jsx-runtime";
2
- import { forwardRef as x, Children as $, isValidElement as N, createElement as b, cloneElement as D, useEffect as ur, Fragment as pr } from "react";
2
+ import { forwardRef as x, Children as $, isValidElement as N, createElement as b, Fragment as ur, cloneElement as F, useEffect as pr } from "react";
3
3
  import "react-dom";
4
4
  function ir(a) {
5
5
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
@@ -13,9 +13,9 @@ var T = { exports: {} };
13
13
  (function(a) {
14
14
  (function() {
15
15
  var n = {}.hasOwnProperty;
16
- function e() {
17
- for (var r = "", t = 0; t < arguments.length; t++) {
18
- var u = arguments[t];
16
+ function t() {
17
+ for (var r = "", e = 0; e < arguments.length; e++) {
18
+ var u = arguments[e];
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 e.apply(this, r);
29
+ return t.apply(this, r);
30
30
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
31
31
  return r.toString();
32
- var t = "";
32
+ var e = "";
33
33
  for (var u in r)
34
- n.call(r, u) && r[u] && (t = i(t, this && this[u] || u));
35
- return t;
34
+ n.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
35
+ return e;
36
36
  }
37
- function i(r, t) {
38
- return t ? r ? r + " " + t : r + t : r;
37
+ function i(r, e) {
38
+ return e ? r ? r + " " + e : r + e : r;
39
39
  }
40
- a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
40
+ a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
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 e() {
60
- for (var r = "", t = 0; t < arguments.length; t++) {
61
- var u = arguments[t];
59
+ function t() {
60
+ for (var r = "", e = 0; e < arguments.length; e++) {
61
+ var u = arguments[e];
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 e.apply(this, r);
72
+ return t.apply(this, r);
73
73
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
74
74
  return r.toString();
75
- var t = "";
75
+ var e = "";
76
76
  for (var u in r)
77
- n.call(r, u) && r[u] && (t = i(t, this && this[u] || u));
78
- return t;
77
+ n.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
78
+ return e;
79
79
  }
80
- function i(r, t) {
81
- return t ? r ? r + " " + t : r + t : r;
80
+ function i(r, e) {
81
+ return e ? r ? r + " " + e : r + e : r;
82
82
  }
83
- a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
83
+ a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
84
84
  })();
85
85
  })(V);
86
86
  var lr = V.exports;
@@ -127,39 +127,39 @@ const dr = /* @__PURE__ */ cr(lr), _r = {
127
127
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 4a.9.9 0 0 1 .9-.9h6.5a.9.9 0 0 1 .636.264l10 10a.9.9 0 0 1 0 1.272l-4.5 4.5a.9.9 0 1 1-1.272-1.272L19.227 14l-9.1-9.1H4.9v5.227l9.736 9.737a.9.9 0 1 1-1.272 1.272l-10-10A.9.9 0 0 1 3.1 10.5V4ZM8 7.4a.6.6 0 1 0 0 1.2.6.6 0 0 0 0-1.2ZM5.6 8a2.4 2.4 0 1 1 4.8 0 2.4 2.4 0 0 1-4.8 0Z" clip-rule="evenodd"/></svg>',
128
128
  keywords: ["tag"],
129
129
  category: "other"
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 e = [
130
+ }, $r = dr.bind(_r), Z = "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 = [
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(e)}>${p}${a}</svg>`;
138
- }, Cr = (a) => a.replace(/<(\/?)svg([^>]*)>/g, "").trim(), F = ({
137
+ return `<svg ${xr(t)}>${p}${a}</svg>`;
138
+ }, Cr = (a) => a.replace(/<(\/?)svg([^>]*)>/g, "").trim(), D = ({
139
139
  ["data-testid"]: a,
140
140
  svg: n,
141
- allyTitle: e,
141
+ allyTitle: t,
142
142
  className: p,
143
143
  size: i = br,
144
144
  ...r
145
145
  }) => {
146
- const t = Nr({
146
+ const e = Nr({
147
147
  content: Cr(n.svg),
148
- title: e
149
- }), u = $r(p, M, `${M}--${i}`);
148
+ title: t
149
+ }), u = $r(p, Z, `${Z}--${i}`);
150
150
  return /* @__PURE__ */ o(
151
151
  "span",
152
152
  {
153
- "aria-label": e,
153
+ "aria-label": t,
154
154
  className: u,
155
155
  "data-testid": a,
156
- dangerouslySetInnerHTML: { __html: t },
156
+ dangerouslySetInnerHTML: { __html: e },
157
157
  ...r
158
158
  }
159
159
  );
160
160
  };
161
- F.displayName = "Icon";
162
- function Ar(a) {
161
+ D.displayName = "Icon";
162
+ function kr(a) {
163
163
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
164
164
  }
165
165
  var G = { exports: {} };
@@ -171,9 +171,9 @@ var G = { exports: {} };
171
171
  (function(a) {
172
172
  (function() {
173
173
  var n = {}.hasOwnProperty;
174
- function e() {
175
- for (var r = "", t = 0; t < arguments.length; t++) {
176
- var u = arguments[t];
174
+ function t() {
175
+ for (var r = "", e = 0; e < arguments.length; e++) {
176
+ var u = arguments[e];
177
177
  u && (r = i(r, p(u)));
178
178
  }
179
179
  return r;
@@ -184,22 +184,22 @@ var G = { exports: {} };
184
184
  if (typeof r != "object")
185
185
  return "";
186
186
  if (Array.isArray(r))
187
- return e.apply(null, r);
187
+ return t.apply(null, r);
188
188
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
189
189
  return r.toString();
190
- var t = "";
190
+ var e = "";
191
191
  for (var u in r)
192
- n.call(r, u) && r[u] && (t = i(t, u));
193
- return t;
192
+ n.call(r, u) && r[u] && (e = i(e, u));
193
+ return e;
194
194
  }
195
- function i(r, t) {
196
- return t ? r ? r + " " + t : r + t : r;
195
+ function i(r, e) {
196
+ return e ? r ? r + " " + e : r + e : r;
197
197
  }
198
- a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
198
+ a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
199
199
  })();
200
200
  })(G);
201
- var kr = G.exports;
202
- const Sr = /* @__PURE__ */ Ar(kr), Z = {
201
+ var Sr = G.exports;
202
+ const jr = /* @__PURE__ */ kr(Sr), z = {
203
203
  "purpur-badge": "_purpur-badge_1r1mu_1",
204
204
  "purpur-badge--attention": "_purpur-badge--attention_1r1mu_13",
205
205
  "purpur-badge--special": "_purpur-badge--special_1r1mu_17",
@@ -209,7 +209,7 @@ const Sr = /* @__PURE__ */ Ar(kr), Z = {
209
209
  "purpur-badge--warning": "_purpur-badge--warning_1r1mu_33",
210
210
  "purpur-badge--error": "_purpur-badge--error_1r1mu_37",
211
211
  "purpur-badge--black-friday": "_purpur-badge--black-friday_1r1mu_41"
212
- }, z = "purpur-badge", l = {
212
+ }, M = "purpur-badge", l = {
213
213
  ATTENTION: "attention",
214
214
  SPECIAL: "special",
215
215
  NEUTRAL: "neutral",
@@ -218,7 +218,7 @@ const Sr = /* @__PURE__ */ Ar(kr), Z = {
218
218
  WARNING: "warning",
219
219
  ERROR: "error",
220
220
  BLACK_FRIDAY: "black-friday"
221
- }, Or = (a) => {
221
+ }, Ar = (a) => {
222
222
  switch (a) {
223
223
  case l.ATTENTION:
224
224
  case l.SPECIAL:
@@ -238,61 +238,61 @@ const Sr = /* @__PURE__ */ Ar(kr), Z = {
238
238
  default:
239
239
  return;
240
240
  }
241
- }, jr = ({
241
+ }, Or = ({
242
242
  children: a,
243
243
  showIcon: n = !0,
244
- variant: e,
244
+ variant: t,
245
245
  ["data-testid"]: p,
246
246
  allyLabel: i,
247
247
  className: r = "",
248
- ...t
248
+ ...e
249
249
  }) => {
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
- n && u && /* @__PURE__ */ o(F, { "data-testid": `${p}-icon`, allyTitle: i, size: "xs", svg: u }),
250
+ const u = Ar(t), c = jr([r, z[M], z[`${M}--${t}`]]);
251
+ return /* @__PURE__ */ C("span", { "aria-label": i, className: c, "data-testid": p, ...e, children: [
252
+ n && u && /* @__PURE__ */ o(D, { "data-testid": `${p}-icon`, allyTitle: i, size: "xs", svg: u }),
253
253
  a
254
254
  ] });
255
- }, Mr = {
255
+ }, Zr = {
256
256
  "purpur-card-badge": "_purpur-card-badge_r7moe_1"
257
- }, Zr = s.bind(Mr), zr = "purpur-card-badge", Rr = ({
257
+ }, zr = s.bind(Zr), Mr = "purpur-card-badge", qr = ({
258
258
  ["data-testid"]: a = "purpur-card-badge",
259
259
  variant: n,
260
- text: e
261
- }) => n && e ? /* @__PURE__ */ o(
262
- jr,
260
+ text: t
261
+ }) => n && t ? /* @__PURE__ */ o(
262
+ Or,
263
263
  {
264
- className: Zr(zr),
264
+ className: zr(Mr),
265
265
  variant: n,
266
266
  showIcon: !1,
267
267
  "data-testid": a,
268
- children: e
268
+ children: t
269
269
  }
270
- ) : null, Er = {
270
+ ) : null, Pr = {
271
271
  "purpur-card-content": "_purpur-card-content_2uc00_1"
272
- }, Pr = s.bind(Er), Lr = "purpur-card-content", qr = ({
272
+ }, Rr = s.bind(Pr), Er = "purpur-card-content", Br = ({
273
273
  ["data-testid"]: a = "purpur-card-content",
274
274
  children: n
275
- }) => /* @__PURE__ */ o("div", { className: Pr(Lr), "data-testid": a, children: n }), Ir = {
275
+ }) => /* @__PURE__ */ o("div", { className: Rr(Er), "data-testid": a, children: n }), Lr = {
276
276
  "purpur-card-content-container": "_purpur-card-content-container_ueryq_1",
277
277
  "purpur-card-content-container--footer": "_purpur-card-content-container--footer_ueryq_12"
278
- }, Br = s.bind(Ir), R = "purpur-card-content-container", Hr = ({
278
+ }, Hr = s.bind(Lr), q = "purpur-card-content-container", Ir = ({
279
279
  ["data-testid"]: a = "purpur-card-content-container",
280
280
  children: n,
281
- isFooter: e = !1
281
+ isFooter: t = !1
282
282
  }) => /* @__PURE__ */ o(
283
283
  "div",
284
284
  {
285
- className: Br([
286
- R,
285
+ className: Hr([
286
+ q,
287
287
  {
288
- [`${R}--footer`]: e
288
+ [`${q}--footer`]: t
289
289
  }
290
290
  ]),
291
291
  "data-testid": a,
292
292
  children: n
293
293
  }
294
294
  );
295
- function Dr(a) {
295
+ function Fr(a) {
296
296
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
297
297
  }
298
298
  var U = { exports: {} };
@@ -304,9 +304,9 @@ var U = { exports: {} };
304
304
  (function(a) {
305
305
  (function() {
306
306
  var n = {}.hasOwnProperty;
307
- function e() {
308
- for (var r = "", t = 0; t < arguments.length; t++) {
309
- var u = arguments[t];
307
+ function t() {
308
+ for (var r = "", e = 0; e < arguments.length; e++) {
309
+ var u = arguments[e];
310
310
  u && (r = i(r, p(u)));
311
311
  }
312
312
  return r;
@@ -317,22 +317,22 @@ var U = { exports: {} };
317
317
  if (typeof r != "object")
318
318
  return "";
319
319
  if (Array.isArray(r))
320
- return e.apply(null, r);
320
+ return t.apply(null, r);
321
321
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
322
322
  return r.toString();
323
- var t = "";
323
+ var e = "";
324
324
  for (var u in r)
325
- n.call(r, u) && r[u] && (t = i(t, u));
326
- return t;
325
+ n.call(r, u) && r[u] && (e = i(e, u));
326
+ return e;
327
327
  }
328
- function i(r, t) {
329
- return t ? r ? r + " " + t : r + t : r;
328
+ function i(r, e) {
329
+ return e ? r ? r + " " + e : r + e : r;
330
330
  }
331
- a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
331
+ a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
332
332
  })();
333
333
  })(U);
334
334
  var Tr = U.exports;
335
- const E = /* @__PURE__ */ Dr(Tr), Vr = "_rotate_1xozj_1", Fr = "_dash_1xozj_1", h = {
335
+ const P = /* @__PURE__ */ Fr(Tr), Vr = "_rotate_1xozj_1", Dr = "_dash_1xozj_1", h = {
336
336
  "purpur-spinner": "_purpur-spinner_1xozj_1",
337
337
  rotate: Vr,
338
338
  "purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
@@ -341,33 +341,29 @@ const E = /* @__PURE__ */ Dr(Tr), Vr = "_rotate_1xozj_1", Fr = "_dash_1xozj_1",
341
341
  "purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
342
342
  "purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
343
343
  "purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
344
- dash: Fr,
344
+ dash: Dr,
345
345
  "purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
346
346
  "purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
347
347
  }, v = "purpur-spinner", Gr = {
348
- XXS: "xxs",
349
- XS: "xs",
350
- SM: "sm",
351
- MD: "md",
352
- LG: "lg"
353
- }, X = ({
348
+ SM: "sm"
349
+ }, K = ({
354
350
  ["data-testid"]: a,
355
351
  disabled: n = !1,
356
- negative: e = !1,
352
+ negative: t = !1,
357
353
  size: p = Gr.SM,
358
354
  ...i
359
355
  }) => /* @__PURE__ */ o(
360
356
  "div",
361
357
  {
362
- className: E([h[v], h[`${v}--${p}`]]),
358
+ className: P([h[v], h[`${v}--${p}`]]),
363
359
  "data-testid": a,
364
360
  ...i,
365
361
  children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
366
362
  "circle",
367
363
  {
368
- className: E(h[`${v}__circle`], {
364
+ className: P(h[`${v}__circle`], {
369
365
  [h[`${v}__circle--disabled`]]: n,
370
- [h[`${v}__circle--negative`]]: e
366
+ [h[`${v}__circle--negative`]]: t
371
367
  }),
372
368
  cx: "25",
373
369
  cy: "25",
@@ -390,42 +386,42 @@ const E = /* @__PURE__ */ Dr(Tr), Vr = "_rotate_1xozj_1", Fr = "_dash_1xozj_1",
390
386
  "purpur-card-cta--expressive": "_purpur-card-cta--expressive_1fd16_98",
391
387
  "purpur-card-cta--expressive-negative": "_purpur-card-cta--expressive-negative_1fd16_108",
392
388
  "purpur-card-cta--text": "_purpur-card-cta--text_1fd16_128"
393
- }, Xr = s.bind(Ur), _ = "purpur-card-cta", Kr = ({
389
+ }, Kr = s.bind(Ur), _ = "purpur-card-cta", Wr = ({
394
390
  ["data-testid"]: a = "purpur-card-cta",
395
391
  className: n,
396
- children: e,
392
+ children: t,
397
393
  disabled: p = !1,
398
394
  iconPosition: i = "right",
399
395
  loading: r = !1,
400
- text: t,
396
+ text: e,
401
397
  ...u
402
398
  }) => /* @__PURE__ */ o(
403
399
  "div",
404
400
  {
405
- className: `${Xr([
401
+ className: `${Kr([
406
402
  _,
407
403
  n,
408
404
  `${_}--md`,
409
405
  `${_}--secondary`,
410
406
  {
411
407
  [`${_}--disabled`]: p,
412
- [`${_}--icon-only`]: !t,
413
- [`${_}--text`]: !!t
408
+ [`${_}--icon-only`]: !e,
409
+ [`${_}--text`]: !!e
414
410
  }
415
411
  ])} ${_}`,
416
412
  "data-testid": a,
417
413
  ...u,
418
- children: r ? /* @__PURE__ */ o(X, { "data-testid": `${a}-spinner`, size: "xs", disabled: p }) : /* @__PURE__ */ C(nr, { children: [
419
- i === "left" && e,
420
- t,
421
- i === "right" && e
414
+ children: r ? /* @__PURE__ */ o(K, { "data-testid": `${a}-spinner`, size: "xs", disabled: p }) : /* @__PURE__ */ C(nr, { children: [
415
+ i === "left" && t,
416
+ e,
417
+ i === "right" && t
422
418
  ] })
423
419
  }
424
420
  );
425
- function Wr(a) {
421
+ function Yr(a) {
426
422
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
427
423
  }
428
- var K = { exports: {} };
424
+ var W = { exports: {} };
429
425
  /*!
430
426
  Copyright (c) 2018 Jed Watson.
431
427
  Licensed under the MIT License (MIT), see
@@ -434,9 +430,9 @@ var K = { exports: {} };
434
430
  (function(a) {
435
431
  (function() {
436
432
  var n = {}.hasOwnProperty;
437
- function e() {
438
- for (var r = "", t = 0; t < arguments.length; t++) {
439
- var u = arguments[t];
433
+ function t() {
434
+ for (var r = "", e = 0; e < arguments.length; e++) {
435
+ var u = arguments[e];
440
436
  u && (r = i(r, p.call(this, u)));
441
437
  }
442
438
  return r;
@@ -447,22 +443,22 @@ var K = { exports: {} };
447
443
  if (typeof r != "object")
448
444
  return "";
449
445
  if (Array.isArray(r))
450
- return e.apply(this, r);
446
+ return t.apply(this, r);
451
447
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
452
448
  return r.toString();
453
- var t = "";
449
+ var e = "";
454
450
  for (var u in r)
455
- n.call(r, u) && r[u] && (t = i(t, this && this[u] || u));
456
- return t;
451
+ n.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
452
+ return e;
457
453
  }
458
- function i(r, t) {
459
- return t ? r ? r + " " + t : r + t : r;
454
+ function i(r, e) {
455
+ return e ? r ? r + " " + e : r + e : r;
460
456
  }
461
- a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
457
+ a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
462
458
  })();
463
- })(K);
464
- var Yr = K.exports;
465
- const Jr = /* @__PURE__ */ Wr(Yr), Qr = {
459
+ })(W);
460
+ var Jr = W.exports;
461
+ const Xr = /* @__PURE__ */ Yr(Jr), Qr = {
466
462
  "purpur-icon": "_purpur-icon_8u1lq_1",
467
463
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
468
464
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -480,58 +476,58 @@ const Jr = /* @__PURE__ */ Wr(Yr), Qr = {
480
476
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',
481
477
  keywords: ["checkmark"],
482
478
  category: "utility"
483
- }, W = (a) => /* @__PURE__ */ o(
484
- O,
479
+ }, Y = (a) => /* @__PURE__ */ o(
480
+ A,
485
481
  {
486
482
  ...a,
487
483
  svg: ra
488
484
  }
489
485
  );
490
- W.displayName = "IconArrowRight";
491
- const Y = (a) => /* @__PURE__ */ o(
492
- O,
486
+ Y.displayName = "IconArrowRight";
487
+ const J = (a) => /* @__PURE__ */ o(
488
+ A,
493
489
  {
494
490
  ...a,
495
491
  svg: aa
496
492
  }
497
493
  );
498
- Y.displayName = "IconCheckmark";
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 = [
494
+ J.displayName = "IconCheckmark";
495
+ const ta = Xr.bind(Qr), R = "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 } = {}) => {
496
+ const t = [
501
497
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
502
498
  { name: "fill", value: "currentColor" },
503
499
  { name: "viewBox", value: "0 0 24 24" },
504
500
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
505
501
  ], p = n ? `<title>${n}</title>` : "";
506
- return `<svg ${na(e)}>${p}${a}</svg>`;
507
- }, pa = (a) => a.replace(/<(\/?)svg([^>]*)>/g, "").trim(), O = ({
502
+ return `<svg ${na(t)}>${p}${a}</svg>`;
503
+ }, pa = (a) => a.replace(/<(\/?)svg([^>]*)>/g, "").trim(), A = ({
508
504
  ["data-testid"]: a,
509
505
  svg: n,
510
- allyTitle: e,
506
+ allyTitle: t,
511
507
  className: p,
512
- size: i = ta,
508
+ size: i = ea,
513
509
  ...r
514
510
  }) => {
515
- const t = ua({
511
+ const e = ua({
516
512
  content: pa(n.svg),
517
- title: e
518
- }), u = ea(p, P, `${P}--${i}`);
513
+ title: t
514
+ }), u = ta(p, R, `${R}--${i}`);
519
515
  return /* @__PURE__ */ o(
520
516
  "span",
521
517
  {
522
- "aria-label": e,
518
+ "aria-label": t,
523
519
  className: u,
524
520
  "data-testid": a,
525
- dangerouslySetInnerHTML: { __html: t },
521
+ dangerouslySetInnerHTML: { __html: e },
526
522
  ...r
527
523
  }
528
524
  );
529
525
  };
530
- O.displayName = "Icon";
526
+ A.displayName = "Icon";
531
527
  function ia(a) {
532
528
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
533
529
  }
534
- var J = { exports: {} };
530
+ var X = { exports: {} };
535
531
  /*!
536
532
  Copyright (c) 2018 Jed Watson.
537
533
  Licensed under the MIT License (MIT), see
@@ -540,9 +536,9 @@ var J = { exports: {} };
540
536
  (function(a) {
541
537
  (function() {
542
538
  var n = {}.hasOwnProperty;
543
- function e() {
544
- for (var r = "", t = 0; t < arguments.length; t++) {
545
- var u = arguments[t];
539
+ function t() {
540
+ for (var r = "", e = 0; e < arguments.length; e++) {
541
+ var u = arguments[e];
546
542
  u && (r = i(r, p(u)));
547
543
  }
548
544
  return r;
@@ -553,21 +549,21 @@ var J = { exports: {} };
553
549
  if (typeof r != "object")
554
550
  return "";
555
551
  if (Array.isArray(r))
556
- return e.apply(null, r);
552
+ return t.apply(null, r);
557
553
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
558
554
  return r.toString();
559
- var t = "";
555
+ var e = "";
560
556
  for (var u in r)
561
- n.call(r, u) && r[u] && (t = i(t, u));
562
- return t;
557
+ n.call(r, u) && r[u] && (e = i(e, u));
558
+ return e;
563
559
  }
564
- function i(r, t) {
565
- return t ? r ? r + " " + t : r + t : r;
560
+ function i(r, e) {
561
+ return e ? r ? r + " " + e : r + e : r;
566
562
  }
567
- a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
563
+ a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
568
564
  })();
569
- })(J);
570
- var oa = J.exports;
565
+ })(X);
566
+ var oa = X.exports;
571
567
  const sa = /* @__PURE__ */ ia(oa), y = {
572
568
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
573
569
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
@@ -584,30 +580,21 @@ const sa = /* @__PURE__ */ ia(oa), y = {
584
580
  "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
585
581
  "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
586
582
  }, ca = {
587
- PARAGRAPH100: "paragraph-100",
588
- PARAGRAPH100MEDIUM: "paragraph-100-medium",
589
- PARAGRAPH100BOLD: "paragraph-100-bold",
590
- PARAGRAPH200: "paragraph-200",
591
- PREAMBLE100: "preamble-100",
592
- PREAMBLE200: "preamble-200",
593
- ADDITIONAL100: "additional-100",
594
- ADDITIONAL100MEDIUM: "additional-100-medium",
595
- OVERLINE100: "overline-100",
596
- OVERLINE200: "overline-200"
597
- }, w = "purpur-paragraph", j = ({
583
+ PARAGRAPH100: "paragraph-100"
584
+ }, w = "purpur-paragraph", O = ({
598
585
  ["data-testid"]: a,
599
586
  children: n,
600
- className: e,
587
+ className: t,
601
588
  disabled: p,
602
589
  enableHyphenation: i = !1,
603
590
  negative: r = !1,
604
- variant: t = ca.PARAGRAPH100,
591
+ variant: e = ca.PARAGRAPH100,
605
592
  ...u
606
593
  }) => {
607
594
  const c = sa([
608
- e,
595
+ t,
609
596
  y[w],
610
- y[`${w}--${t}`],
597
+ y[`${w}--${e}`],
611
598
  {
612
599
  [y[`${w}--hyphens`]]: i,
613
600
  [y[`${w}--disabled`]]: p,
@@ -616,24 +603,24 @@ const sa = /* @__PURE__ */ ia(oa), y = {
616
603
  ]);
617
604
  return /* @__PURE__ */ o("p", { ...u, className: c, "data-testid": a, children: n });
618
605
  };
619
- j.displayName = "Paragraph";
606
+ O.displayName = "Paragraph";
620
607
  const la = {
621
608
  "purpur-card-feature-list": "_purpur-card-feature-list_ej4qm_1",
622
609
  "purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_ej4qm_6"
623
- }, L = s.bind(la), q = "purpur-card-feature-list", da = ({
610
+ }, E = s.bind(la), B = "purpur-card-feature-list", da = ({
624
611
  ["data-testid"]: a = "purpur-card-feature-list",
625
612
  listItems: n
626
- }) => n && n.length > 0 ? /* @__PURE__ */ o("ul", { className: L(q), "data-testid": a, children: n.map((e) => /* @__PURE__ */ C(
613
+ }) => n && n.length > 0 ? /* @__PURE__ */ o("ul", { className: E(B), "data-testid": a, children: n.map((t) => /* @__PURE__ */ C(
627
614
  "li",
628
615
  {
629
- className: L(`${q}__list-item`),
616
+ className: E(`${B}__list-item`),
630
617
  "data-testid": `${a}-item`,
631
618
  children: [
632
- /* @__PURE__ */ o(Y, { size: "xs" }),
633
- /* @__PURE__ */ o(j, { children: e })
619
+ /* @__PURE__ */ o(J, { size: "xs" }),
620
+ /* @__PURE__ */ o(O, { children: t })
634
621
  ]
635
622
  },
636
- e
623
+ t
637
624
  )) }) : null, _a = {
638
625
  "purpur-card-link-arrow": "_purpur-card-link-arrow_1r4zu_1",
639
626
  "purpur-card-link-arrow--sm": "_purpur-card-link-arrow--sm_1r4zu_33",
@@ -651,7 +638,7 @@ const la = {
651
638
  }, ga = s.bind(_a), m = "purpur-card-link-arrow", ma = ({
652
639
  ["data-testid"]: a = "purpur-card-link-arrow",
653
640
  className: n,
654
- disabled: e = !1,
641
+ disabled: t = !1,
655
642
  loading: p = !1,
656
643
  ...i
657
644
  }) => /* @__PURE__ */ o(
@@ -664,19 +651,19 @@ const la = {
664
651
  `${m}--icon-only`,
665
652
  `${m}--secondary`,
666
653
  {
667
- [`${m}--disabled`]: e
654
+ [`${m}--disabled`]: t
668
655
  }
669
656
  ])} ${m}`,
670
657
  "data-testid": a,
671
658
  ...i,
672
- children: p ? /* @__PURE__ */ o(X, { "data-testid": `${a}-spinner`, size: "xs", disabled: e }) : /* @__PURE__ */ o(W, { "data-testid": `${a}-arrow`, size: "md" })
659
+ children: p ? /* @__PURE__ */ o(K, { "data-testid": `${a}-spinner`, size: "xs", disabled: t }) : /* @__PURE__ */ o(Y, { "data-testid": `${a}-arrow`, size: "md" })
673
660
  }
674
661
  ), fa = {
675
662
  "purpur-card-overline": "_purpur-card-overline_192fe_1"
676
663
  }, ha = s.bind(fa), va = "purpur-card-overline", ya = ({
677
664
  ["data-testid"]: a = "purpur-card-overline",
678
665
  overline: n
679
- }) => n ? /* @__PURE__ */ o(j, { className: ha(va), "data-testid": a, children: n }) : null, wa = {
666
+ }) => n ? /* @__PURE__ */ o(O, { className: ha(va), "data-testid": a, children: n }) : null, wa = {
680
667
  "purpur-card-root": "_purpur-card-root_bqk1d_1",
681
668
  "purpur-card-root--primary": "_purpur-card-root--primary_bqk1d_8",
682
669
  "purpur-card-root--secondary": "_purpur-card-root--secondary_bqk1d_11",
@@ -689,8 +676,8 @@ const la = {
689
676
  function f() {
690
677
  return f = Object.assign ? Object.assign.bind() : function(a) {
691
678
  for (var n = 1; n < arguments.length; n++) {
692
- var e = arguments[n];
693
- for (var p in e) ({}).hasOwnProperty.call(e, p) && (a[p] = e[p]);
679
+ var t = arguments[n];
680
+ for (var p in t) ({}).hasOwnProperty.call(t, p) && (a[p] = t[p]);
694
681
  }
695
682
  return a;
696
683
  }, f.apply(null, arguments);
@@ -700,56 +687,56 @@ function ba(a, n) {
700
687
  }
701
688
  function xa(...a) {
702
689
  return (n) => a.forEach(
703
- (e) => ba(e, n)
690
+ (t) => ba(t, n)
704
691
  );
705
692
  }
706
693
  const Q = /* @__PURE__ */ x((a, n) => {
707
- const { children: e, ...p } = a, i = $.toArray(e), r = i.find(Ca);
694
+ const { children: t, ...p } = a, i = $.toArray(t), r = i.find(Ca);
708
695
  if (r) {
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
- return /* @__PURE__ */ b(S, f({}, p, {
696
+ const e = r.props.children, u = i.map((c) => c === r ? $.count(e) > 1 ? $.only(null) : /* @__PURE__ */ N(e) ? e.props.children : null : c);
697
+ return /* @__PURE__ */ b(j, f({}, p, {
711
698
  ref: n
712
- }), /* @__PURE__ */ N(t) ? /* @__PURE__ */ D(t, void 0, u) : null);
699
+ }), /* @__PURE__ */ N(e) ? /* @__PURE__ */ F(e, void 0, u) : null);
713
700
  }
714
- return /* @__PURE__ */ b(S, f({}, p, {
701
+ return /* @__PURE__ */ b(j, f({}, p, {
715
702
  ref: n
716
- }), e);
703
+ }), t);
717
704
  });
718
705
  Q.displayName = "Slot";
719
- const S = /* @__PURE__ */ x((a, n) => {
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;
706
+ const j = /* @__PURE__ */ x((a, n) => {
707
+ const { children: t, ...p } = a;
708
+ return /* @__PURE__ */ N(t) ? /* @__PURE__ */ F(t, {
709
+ ...ka(p, t.props),
710
+ ref: n ? xa(n, t.ref) : t.ref
711
+ }) : $.count(t) > 1 ? $.only(null) : null;
725
712
  });
726
- S.displayName = "SlotClone";
727
- const Na = ({ children: a }) => /* @__PURE__ */ b(pr, null, a);
713
+ j.displayName = "SlotClone";
714
+ const Na = ({ children: a }) => /* @__PURE__ */ b(ur, null, a);
728
715
  function Ca(a) {
729
716
  return /* @__PURE__ */ N(a) && a.type === Na;
730
717
  }
731
- function Aa(a, n) {
732
- const e = {
718
+ function ka(a, n) {
719
+ const t = {
733
720
  ...n
734
721
  };
735
722
  for (const p in n) {
736
723
  const i = a[p], r = n[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] = {
724
+ /^on[A-Z]/.test(p) ? i && r ? t[p] = (...e) => {
725
+ r(...e), i(...e);
726
+ } : i && (t[p] = i) : p === "style" ? t[p] = {
740
727
  ...i,
741
728
  ...r
742
- } : p === "className" && (e[p] = [
729
+ } : p === "className" && (t[p] = [
743
730
  i,
744
731
  r
745
732
  ].filter(Boolean).join(" "));
746
733
  }
747
734
  return {
748
735
  ...a,
749
- ...e
736
+ ...t
750
737
  };
751
738
  }
752
- const ka = [
739
+ const Sa = [
753
740
  "a",
754
741
  "button",
755
742
  "div",
@@ -766,20 +753,20 @@ const ka = [
766
753
  "span",
767
754
  "svg",
768
755
  "ul"
769
- ], Sa = ka.reduce((a, n) => {
770
- const e = /* @__PURE__ */ x((p, i) => {
771
- const { asChild: r, ...t } = p, u = r ? Q : n;
772
- return ur(() => {
756
+ ], ja = Sa.reduce((a, n) => {
757
+ const t = /* @__PURE__ */ x((p, i) => {
758
+ const { asChild: r, ...e } = p, u = r ? Q : n;
759
+ return pr(() => {
773
760
  window[Symbol.for("radix-ui")] = !0;
774
- }, []), /* @__PURE__ */ b(u, f({}, t, {
761
+ }, []), /* @__PURE__ */ b(u, f({}, e, {
775
762
  ref: i
776
763
  }));
777
764
  });
778
- return e.displayName = `Primitive.${n}`, {
765
+ return t.displayName = `Primitive.${n}`, {
779
766
  ...a,
780
- [n]: e
767
+ [n]: t
781
768
  };
782
- }, {}), Oa = /* @__PURE__ */ x((a, n) => /* @__PURE__ */ b(Sa.span, f({}, a, {
769
+ }, {}), Aa = /* @__PURE__ */ x((a, n) => /* @__PURE__ */ b(ja.span, f({}, a, {
783
770
  ref: n,
784
771
  style: {
785
772
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -795,85 +782,85 @@ const ka = [
795
782
  wordWrap: "normal",
796
783
  ...a.style
797
784
  }
798
- }))), ja = Oa, I = ({
785
+ }))), Oa = Aa, L = ({
799
786
  asChild: a,
800
787
  children: n,
801
- className: e = "",
788
+ className: t = "",
802
789
  ["data-testid"]: p
803
- }) => /* @__PURE__ */ o(ja, { asChild: a, "data-testid": p, className: e, children: n }), B = s.bind($a), g = "purpur-card-trigger-item", Ma = ({
790
+ }) => /* @__PURE__ */ o(Oa, { asChild: a, "data-testid": p, className: t, children: n }), H = s.bind($a), g = "purpur-card-trigger-item", Za = ({
804
791
  ["data-testid"]: a = "purpur-card-trigger-item",
805
792
  disabled: n = !1,
806
- href: e,
793
+ href: t,
807
794
  onClick: p,
808
795
  screenReaderText: i
809
796
  }) => {
810
797
  const r = (u) => {
811
798
  n ? u.preventDefault() : p && p();
812
- }, t = `${g} ${n ? `${g}--disabled` : ""}`;
813
- return e ? (
799
+ }, e = `${g} ${n ? `${g}--disabled` : ""}`;
800
+ return t ? (
814
801
  // eslint-disable-next-line jsx-a11y/anchor-is-valid
815
802
  /* @__PURE__ */ o(
816
803
  "a",
817
804
  {
818
805
  "aria-disabled": n,
819
- className: `${B([
806
+ className: `${H([
820
807
  g,
821
808
  {
822
809
  [`${g}--disabled`]: n
823
810
  }
824
- ])} ${t}`,
811
+ ])} ${e}`,
825
812
  "data-testid": a,
826
- href: n ? void 0 : e,
813
+ href: n ? void 0 : t,
827
814
  tabIndex: n ? 0 : void 0,
828
- children: /* @__PURE__ */ o(I, { children: i })
815
+ children: /* @__PURE__ */ o(L, { children: i })
829
816
  }
830
817
  )
831
818
  ) : /* @__PURE__ */ o(
832
819
  "button",
833
820
  {
834
821
  "aria-disabled": n,
835
- className: `${B([
822
+ className: `${H([
836
823
  g,
837
824
  `${g}--button`,
838
825
  {
839
826
  [`${g}--disabled`]: n
840
827
  }
841
- ])} ${t}`,
828
+ ])} ${e}`,
842
829
  "data-testid": a,
843
830
  type: "button",
844
831
  onClick: r,
845
- children: /* @__PURE__ */ o(I, { children: i })
832
+ children: /* @__PURE__ */ o(L, { children: i })
846
833
  }
847
834
  );
848
- }, Za = s.bind(wa), A = "purpur-card-root", rr = x(
835
+ }, za = s.bind(wa), k = "purpur-card-root", rr = x(
849
836
  ({
850
837
  ["data-testid"]: a = "purpur-card-root",
851
838
  children: n,
852
- className: e,
839
+ className: t,
853
840
  disabled: p,
854
841
  fullHeight: i,
855
842
  href: r,
856
- onClick: t,
843
+ onClick: e,
857
844
  screenReaderText: u,
858
845
  variant: c,
859
846
  ...ar
860
- }, er) => {
861
- const tr = Za([
862
- A,
863
- e,
847
+ }, tr) => {
848
+ const er = za([
849
+ k,
850
+ t,
864
851
  {
865
- [`${A}--${c}`]: c,
866
- [`${A}--full-height`]: i
852
+ [`${k}--${c}`]: c,
853
+ [`${k}--full-height`]: i
867
854
  }
868
855
  ]);
869
- return /* @__PURE__ */ C("div", { className: tr, "data-testid": a, ref: er, ...ar, children: [
856
+ return /* @__PURE__ */ C("div", { className: er, "data-testid": a, ref: tr, ...ar, children: [
870
857
  n,
871
- (t || r) && u && /* @__PURE__ */ o(
872
- Ma,
858
+ (e || r) && u && /* @__PURE__ */ o(
859
+ Za,
873
860
  {
874
861
  disabled: p,
875
862
  href: r,
876
- onClick: t,
863
+ onClick: e,
877
864
  screenReaderText: u
878
865
  }
879
866
  )
@@ -881,22 +868,22 @@ const ka = [
881
868
  }
882
869
  );
883
870
  rr.displayName = "CardRoot";
884
- const H = s.bind(sr), k = "purpur-card", d = ({ children: a, className: n, ...e }) => {
885
- const p = H([
886
- k,
871
+ const I = s.bind(sr), S = "purpur-card", d = ({ children: a, className: n, ...t }) => {
872
+ const p = I([
873
+ S,
887
874
  n,
888
875
  {
889
- [`${k}--is-interactive`]: e.onClick || e.href,
890
- [`${k}--disabled`]: e.disabled
876
+ [`${S}--is-interactive`]: t.onClick || t.href,
877
+ [`${S}--disabled`]: t.disabled
891
878
  }
892
879
  ]);
893
- return /* @__PURE__ */ o(rr, { className: H(p), ...e, children: a });
880
+ return /* @__PURE__ */ o(rr, { className: I(p), ...t, children: a });
894
881
  };
895
- d.Badge = Rr;
882
+ d.Badge = qr;
896
883
  d.LinkArrow = ma;
897
- d.Content = qr;
898
- d.ContentContainer = Hr;
899
- d.Cta = Kr;
884
+ d.Content = Br;
885
+ d.ContentContainer = Ir;
886
+ d.Cta = Wr;
900
887
  d.FeatureList = da;
901
888
  d.Overline = ya;
902
889
  d.displayName = "Card";