@purpurds/card 5.27.2 → 5.27.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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, Fragment as ur, cloneElement as F, useEffect as pr } from "react";
2
+ import { forwardRef as x, Children as $, isValidElement as N, createElement as b, cloneElement as D, useEffect as ur, Fragment 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 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;
@@ -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), 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 = [
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 = [
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>`;
138
- }, Cr = (a) => a.replace(/<(\/?)svg([^>]*)>/g, "").trim(), D = ({
137
+ return `<svg ${xr(e)}>${p}${a}</svg>`;
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
149
- }), u = $r(p, Z, `${Z}--${i}`);
148
+ title: e
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
  );
160
160
  };
161
- D.displayName = "Icon";
162
- function kr(a) {
161
+ F.displayName = "Icon";
162
+ function Ar(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 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,22 +184,22 @@ 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
- var Sr = G.exports;
202
- const jr = /* @__PURE__ */ kr(Sr), z = {
201
+ var kr = G.exports;
202
+ const Sr = /* @__PURE__ */ Ar(kr), 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 jr = /* @__PURE__ */ kr(Sr), 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
- }, M = "purpur-badge", l = {
212
+ }, z = "purpur-badge", l = {
213
213
  ATTENTION: "attention",
214
214
  SPECIAL: "special",
215
215
  NEUTRAL: "neutral",
@@ -218,7 +218,7 @@ const jr = /* @__PURE__ */ kr(Sr), z = {
218
218
  WARNING: "warning",
219
219
  ERROR: "error",
220
220
  BLACK_FRIDAY: "black-friday"
221
- }, Ar = (a) => {
221
+ }, Or = (a) => {
222
222
  switch (a) {
223
223
  case l.ATTENTION:
224
224
  case l.SPECIAL:
@@ -238,61 +238,61 @@ const jr = /* @__PURE__ */ kr(Sr), z = {
238
238
  default:
239
239
  return;
240
240
  }
241
- }, Or = ({
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 = 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 }),
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 }),
253
253
  a
254
254
  ] });
255
- }, Zr = {
255
+ }, Mr = {
256
256
  "purpur-card-badge": "_purpur-card-badge_r7moe_1"
257
- }, zr = s.bind(Zr), Mr = "purpur-card-badge", qr = ({
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(
262
- Or,
260
+ text: e
261
+ }) => n && e ? /* @__PURE__ */ o(
262
+ jr,
263
263
  {
264
- className: zr(Mr),
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
- ) : null, Pr = {
270
+ ) : null, Er = {
271
271
  "purpur-card-content": "_purpur-card-content_2uc00_1"
272
- }, Rr = s.bind(Pr), Er = "purpur-card-content", Br = ({
272
+ }, Pr = s.bind(Er), Lr = "purpur-card-content", qr = ({
273
273
  ["data-testid"]: a = "purpur-card-content",
274
274
  children: n
275
- }) => /* @__PURE__ */ o("div", { className: Rr(Er), "data-testid": a, children: n }), Lr = {
275
+ }) => /* @__PURE__ */ o("div", { className: Pr(Lr), "data-testid": a, children: n }), Ir = {
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
- }, Hr = s.bind(Lr), q = "purpur-card-content-container", Ir = ({
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
- className: Hr([
286
- q,
285
+ className: Br([
286
+ R,
287
287
  {
288
- [`${q}--footer`]: t
288
+ [`${R}--footer`]: e
289
289
  }
290
290
  ]),
291
291
  "data-testid": a,
292
292
  children: n
293
293
  }
294
294
  );
295
- function Fr(a) {
295
+ function Dr(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 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,22 +317,22 @@ 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;
335
- const P = /* @__PURE__ */ Fr(Tr), Vr = "_rotate_1xozj_1", Dr = "_dash_1xozj_1", h = {
335
+ const E = /* @__PURE__ */ Dr(Tr), Vr = "_rotate_1xozj_1", Fr = "_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,29 +341,33 @@ const P = /* @__PURE__ */ Fr(Tr), Vr = "_rotate_1xozj_1", Dr = "_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: Dr,
344
+ dash: Fr,
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
- SM: "sm"
349
- }, K = ({
348
+ XXS: "xxs",
349
+ XS: "xs",
350
+ SM: "sm",
351
+ MD: "md",
352
+ LG: "lg"
353
+ }, X = ({
350
354
  ["data-testid"]: a,
351
355
  disabled: n = !1,
352
- negative: t = !1,
356
+ negative: e = !1,
353
357
  size: p = Gr.SM,
354
358
  ...i
355
359
  }) => /* @__PURE__ */ o(
356
360
  "div",
357
361
  {
358
- className: P([h[v], h[`${v}--${p}`]]),
362
+ className: E([h[v], h[`${v}--${p}`]]),
359
363
  "data-testid": a,
360
364
  ...i,
361
365
  children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
362
366
  "circle",
363
367
  {
364
- className: P(h[`${v}__circle`], {
368
+ className: E(h[`${v}__circle`], {
365
369
  [h[`${v}__circle--disabled`]]: n,
366
- [h[`${v}__circle--negative`]]: t
370
+ [h[`${v}__circle--negative`]]: e
367
371
  }),
368
372
  cx: "25",
369
373
  cy: "25",
@@ -386,42 +390,42 @@ const P = /* @__PURE__ */ Fr(Tr), Vr = "_rotate_1xozj_1", Dr = "_dash_1xozj_1",
386
390
  "purpur-card-cta--expressive": "_purpur-card-cta--expressive_1fd16_98",
387
391
  "purpur-card-cta--expressive-negative": "_purpur-card-cta--expressive-negative_1fd16_108",
388
392
  "purpur-card-cta--text": "_purpur-card-cta--text_1fd16_128"
389
- }, Kr = s.bind(Ur), _ = "purpur-card-cta", Wr = ({
393
+ }, Xr = s.bind(Ur), _ = "purpur-card-cta", Kr = ({
390
394
  ["data-testid"]: a = "purpur-card-cta",
391
395
  className: n,
392
- children: t,
396
+ children: e,
393
397
  disabled: p = !1,
394
398
  iconPosition: i = "right",
395
399
  loading: r = !1,
396
- text: e,
400
+ text: t,
397
401
  ...u
398
402
  }) => /* @__PURE__ */ o(
399
403
  "div",
400
404
  {
401
- className: `${Kr([
405
+ className: `${Xr([
402
406
  _,
403
407
  n,
404
408
  `${_}--md`,
405
409
  `${_}--secondary`,
406
410
  {
407
411
  [`${_}--disabled`]: p,
408
- [`${_}--icon-only`]: !e,
409
- [`${_}--text`]: !!e
412
+ [`${_}--icon-only`]: !t,
413
+ [`${_}--text`]: !!t
410
414
  }
411
415
  ])} ${_}`,
412
416
  "data-testid": a,
413
417
  ...u,
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
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
418
422
  ] })
419
423
  }
420
424
  );
421
- function Yr(a) {
425
+ function Wr(a) {
422
426
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
423
427
  }
424
- var W = { exports: {} };
428
+ var K = { exports: {} };
425
429
  /*!
426
430
  Copyright (c) 2018 Jed Watson.
427
431
  Licensed under the MIT License (MIT), see
@@ -430,9 +434,9 @@ var W = { exports: {} };
430
434
  (function(a) {
431
435
  (function() {
432
436
  var n = {}.hasOwnProperty;
433
- function t() {
434
- for (var r = "", e = 0; e < arguments.length; e++) {
435
- var u = arguments[e];
437
+ function e() {
438
+ for (var r = "", t = 0; t < arguments.length; t++) {
439
+ var u = arguments[t];
436
440
  u && (r = i(r, p.call(this, u)));
437
441
  }
438
442
  return r;
@@ -443,22 +447,22 @@ var W = { exports: {} };
443
447
  if (typeof r != "object")
444
448
  return "";
445
449
  if (Array.isArray(r))
446
- return t.apply(this, r);
450
+ return e.apply(this, r);
447
451
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
448
452
  return r.toString();
449
- var e = "";
453
+ var t = "";
450
454
  for (var u in r)
451
- n.call(r, u) && r[u] && (e = i(e, this && this[u] || u));
452
- return e;
455
+ n.call(r, u) && r[u] && (t = i(t, this && this[u] || u));
456
+ return t;
453
457
  }
454
- function i(r, e) {
455
- return e ? r ? r + " " + e : r + e : r;
458
+ function i(r, t) {
459
+ return t ? r ? r + " " + t : r + t : r;
456
460
  }
457
- a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
461
+ a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
458
462
  })();
459
- })(W);
460
- var Jr = W.exports;
461
- const Xr = /* @__PURE__ */ Yr(Jr), Qr = {
463
+ })(K);
464
+ var Yr = K.exports;
465
+ const Jr = /* @__PURE__ */ Wr(Yr), Qr = {
462
466
  "purpur-icon": "_purpur-icon_8u1lq_1",
463
467
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
464
468
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -476,58 +480,58 @@ const Xr = /* @__PURE__ */ Yr(Jr), Qr = {
476
480
  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>',
477
481
  keywords: ["checkmark"],
478
482
  category: "utility"
479
- }, Y = (a) => /* @__PURE__ */ o(
480
- A,
483
+ }, W = (a) => /* @__PURE__ */ o(
484
+ O,
481
485
  {
482
486
  ...a,
483
487
  svg: ra
484
488
  }
485
489
  );
486
- Y.displayName = "IconArrowRight";
487
- const J = (a) => /* @__PURE__ */ o(
488
- A,
490
+ W.displayName = "IconArrowRight";
491
+ const Y = (a) => /* @__PURE__ */ o(
492
+ O,
489
493
  {
490
494
  ...a,
491
495
  svg: aa
492
496
  }
493
497
  );
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 = [
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 = [
497
501
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
498
502
  { name: "fill", value: "currentColor" },
499
503
  { name: "viewBox", value: "0 0 24 24" },
500
504
  n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
501
505
  ], p = n ? `<title>${n}</title>` : "";
502
- return `<svg ${na(t)}>${p}${a}</svg>`;
503
- }, pa = (a) => a.replace(/<(\/?)svg([^>]*)>/g, "").trim(), A = ({
506
+ return `<svg ${na(e)}>${p}${a}</svg>`;
507
+ }, pa = (a) => a.replace(/<(\/?)svg([^>]*)>/g, "").trim(), O = ({
504
508
  ["data-testid"]: a,
505
509
  svg: n,
506
- allyTitle: t,
510
+ allyTitle: e,
507
511
  className: p,
508
- size: i = ea,
512
+ size: i = ta,
509
513
  ...r
510
514
  }) => {
511
- const e = ua({
515
+ const t = ua({
512
516
  content: pa(n.svg),
513
- title: t
514
- }), u = ta(p, R, `${R}--${i}`);
517
+ title: e
518
+ }), u = ea(p, P, `${P}--${i}`);
515
519
  return /* @__PURE__ */ o(
516
520
  "span",
517
521
  {
518
- "aria-label": t,
522
+ "aria-label": e,
519
523
  className: u,
520
524
  "data-testid": a,
521
- dangerouslySetInnerHTML: { __html: e },
525
+ dangerouslySetInnerHTML: { __html: t },
522
526
  ...r
523
527
  }
524
528
  );
525
529
  };
526
- A.displayName = "Icon";
530
+ O.displayName = "Icon";
527
531
  function ia(a) {
528
532
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
529
533
  }
530
- var X = { exports: {} };
534
+ var J = { exports: {} };
531
535
  /*!
532
536
  Copyright (c) 2018 Jed Watson.
533
537
  Licensed under the MIT License (MIT), see
@@ -536,9 +540,9 @@ var X = { exports: {} };
536
540
  (function(a) {
537
541
  (function() {
538
542
  var n = {}.hasOwnProperty;
539
- function t() {
540
- for (var r = "", e = 0; e < arguments.length; e++) {
541
- var u = arguments[e];
543
+ function e() {
544
+ for (var r = "", t = 0; t < arguments.length; t++) {
545
+ var u = arguments[t];
542
546
  u && (r = i(r, p(u)));
543
547
  }
544
548
  return r;
@@ -549,21 +553,21 @@ var X = { exports: {} };
549
553
  if (typeof r != "object")
550
554
  return "";
551
555
  if (Array.isArray(r))
552
- return t.apply(null, r);
556
+ return e.apply(null, r);
553
557
  if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
554
558
  return r.toString();
555
- var e = "";
559
+ var t = "";
556
560
  for (var u in r)
557
- n.call(r, u) && r[u] && (e = i(e, u));
558
- return e;
561
+ n.call(r, u) && r[u] && (t = i(t, u));
562
+ return t;
559
563
  }
560
- function i(r, e) {
561
- return e ? r ? r + " " + e : r + e : r;
564
+ function i(r, t) {
565
+ return t ? r ? r + " " + t : r + t : r;
562
566
  }
563
- a.exports ? (t.default = t, a.exports = t) : window.classNames = t;
567
+ a.exports ? (e.default = e, a.exports = e) : window.classNames = e;
564
568
  })();
565
- })(X);
566
- var oa = X.exports;
569
+ })(J);
570
+ var oa = J.exports;
567
571
  const sa = /* @__PURE__ */ ia(oa), y = {
568
572
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
569
573
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
@@ -580,21 +584,30 @@ const sa = /* @__PURE__ */ ia(oa), y = {
580
584
  "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
581
585
  "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
582
586
  }, ca = {
583
- PARAGRAPH100: "paragraph-100"
584
- }, w = "purpur-paragraph", O = ({
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 = ({
585
598
  ["data-testid"]: a,
586
599
  children: n,
587
- className: t,
600
+ className: e,
588
601
  disabled: p,
589
602
  enableHyphenation: i = !1,
590
603
  negative: r = !1,
591
- variant: e = ca.PARAGRAPH100,
604
+ variant: t = ca.PARAGRAPH100,
592
605
  ...u
593
606
  }) => {
594
607
  const c = sa([
595
- t,
608
+ e,
596
609
  y[w],
597
- y[`${w}--${e}`],
610
+ y[`${w}--${t}`],
598
611
  {
599
612
  [y[`${w}--hyphens`]]: i,
600
613
  [y[`${w}--disabled`]]: p,
@@ -603,24 +616,24 @@ const sa = /* @__PURE__ */ ia(oa), y = {
603
616
  ]);
604
617
  return /* @__PURE__ */ o("p", { ...u, className: c, "data-testid": a, children: n });
605
618
  };
606
- O.displayName = "Paragraph";
619
+ j.displayName = "Paragraph";
607
620
  const la = {
608
621
  "purpur-card-feature-list": "_purpur-card-feature-list_ej4qm_1",
609
622
  "purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_ej4qm_6"
610
- }, E = s.bind(la), B = "purpur-card-feature-list", da = ({
623
+ }, L = s.bind(la), q = "purpur-card-feature-list", da = ({
611
624
  ["data-testid"]: a = "purpur-card-feature-list",
612
625
  listItems: n
613
- }) => n && n.length > 0 ? /* @__PURE__ */ o("ul", { className: E(B), "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(
614
627
  "li",
615
628
  {
616
- className: E(`${B}__list-item`),
629
+ className: L(`${q}__list-item`),
617
630
  "data-testid": `${a}-item`,
618
631
  children: [
619
- /* @__PURE__ */ o(J, { size: "xs" }),
620
- /* @__PURE__ */ o(O, { children: t })
632
+ /* @__PURE__ */ o(Y, { size: "xs" }),
633
+ /* @__PURE__ */ o(j, { children: e })
621
634
  ]
622
635
  },
623
- t
636
+ e
624
637
  )) }) : null, _a = {
625
638
  "purpur-card-link-arrow": "_purpur-card-link-arrow_1r4zu_1",
626
639
  "purpur-card-link-arrow--sm": "_purpur-card-link-arrow--sm_1r4zu_33",
@@ -638,7 +651,7 @@ const la = {
638
651
  }, ga = s.bind(_a), m = "purpur-card-link-arrow", ma = ({
639
652
  ["data-testid"]: a = "purpur-card-link-arrow",
640
653
  className: n,
641
- disabled: t = !1,
654
+ disabled: e = !1,
642
655
  loading: p = !1,
643
656
  ...i
644
657
  }) => /* @__PURE__ */ o(
@@ -651,19 +664,19 @@ const la = {
651
664
  `${m}--icon-only`,
652
665
  `${m}--secondary`,
653
666
  {
654
- [`${m}--disabled`]: t
667
+ [`${m}--disabled`]: e
655
668
  }
656
669
  ])} ${m}`,
657
670
  "data-testid": a,
658
671
  ...i,
659
- children: p ? /* @__PURE__ */ o(K, { "data-testid": `${a}-spinner`, size: "xs", disabled: t }) : /* @__PURE__ */ o(Y, { "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" })
660
673
  }
661
674
  ), fa = {
662
675
  "purpur-card-overline": "_purpur-card-overline_192fe_1"
663
676
  }, ha = s.bind(fa), va = "purpur-card-overline", ya = ({
664
677
  ["data-testid"]: a = "purpur-card-overline",
665
678
  overline: n
666
- }) => n ? /* @__PURE__ */ o(O, { className: ha(va), "data-testid": a, children: n }) : null, wa = {
679
+ }) => n ? /* @__PURE__ */ o(j, { className: ha(va), "data-testid": a, children: n }) : null, wa = {
667
680
  "purpur-card-root": "_purpur-card-root_bqk1d_1",
668
681
  "purpur-card-root--primary": "_purpur-card-root--primary_bqk1d_8",
669
682
  "purpur-card-root--secondary": "_purpur-card-root--secondary_bqk1d_11",
@@ -676,8 +689,8 @@ const la = {
676
689
  function f() {
677
690
  return f = Object.assign ? Object.assign.bind() : function(a) {
678
691
  for (var n = 1; n < arguments.length; n++) {
679
- var t = arguments[n];
680
- 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]);
681
694
  }
682
695
  return a;
683
696
  }, f.apply(null, arguments);
@@ -687,56 +700,56 @@ function ba(a, n) {
687
700
  }
688
701
  function xa(...a) {
689
702
  return (n) => a.forEach(
690
- (t) => ba(t, n)
703
+ (e) => ba(e, n)
691
704
  );
692
705
  }
693
706
  const Q = /* @__PURE__ */ x((a, n) => {
694
- 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);
695
708
  if (r) {
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, {
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, {
698
711
  ref: n
699
- }), /* @__PURE__ */ N(e) ? /* @__PURE__ */ F(e, void 0, u) : null);
712
+ }), /* @__PURE__ */ N(t) ? /* @__PURE__ */ D(t, void 0, u) : null);
700
713
  }
701
- return /* @__PURE__ */ b(j, f({}, p, {
714
+ return /* @__PURE__ */ b(S, f({}, p, {
702
715
  ref: n
703
- }), t);
716
+ }), e);
704
717
  });
705
718
  Q.displayName = "Slot";
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;
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;
712
725
  });
713
- j.displayName = "SlotClone";
714
- const Na = ({ children: a }) => /* @__PURE__ */ b(ur, null, a);
726
+ S.displayName = "SlotClone";
727
+ const Na = ({ children: a }) => /* @__PURE__ */ b(pr, null, a);
715
728
  function Ca(a) {
716
729
  return /* @__PURE__ */ N(a) && a.type === Na;
717
730
  }
718
- function ka(a, n) {
719
- const t = {
731
+ function Aa(a, n) {
732
+ const e = {
720
733
  ...n
721
734
  };
722
735
  for (const p in n) {
723
736
  const i = a[p], r = n[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] = {
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] = {
727
740
  ...i,
728
741
  ...r
729
- } : p === "className" && (t[p] = [
742
+ } : p === "className" && (e[p] = [
730
743
  i,
731
744
  r
732
745
  ].filter(Boolean).join(" "));
733
746
  }
734
747
  return {
735
748
  ...a,
736
- ...t
749
+ ...e
737
750
  };
738
751
  }
739
- const Sa = [
752
+ const ka = [
740
753
  "a",
741
754
  "button",
742
755
  "div",
@@ -753,20 +766,20 @@ const Sa = [
753
766
  "span",
754
767
  "svg",
755
768
  "ul"
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(() => {
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(() => {
760
773
  window[Symbol.for("radix-ui")] = !0;
761
- }, []), /* @__PURE__ */ b(u, f({}, e, {
774
+ }, []), /* @__PURE__ */ b(u, f({}, t, {
762
775
  ref: i
763
776
  }));
764
777
  });
765
- return t.displayName = `Primitive.${n}`, {
778
+ return e.displayName = `Primitive.${n}`, {
766
779
  ...a,
767
- [n]: t
780
+ [n]: e
768
781
  };
769
- }, {}), Aa = /* @__PURE__ */ x((a, n) => /* @__PURE__ */ b(ja.span, f({}, a, {
782
+ }, {}), Oa = /* @__PURE__ */ x((a, n) => /* @__PURE__ */ b(Sa.span, f({}, a, {
770
783
  ref: n,
771
784
  style: {
772
785
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -782,85 +795,85 @@ const Sa = [
782
795
  wordWrap: "normal",
783
796
  ...a.style
784
797
  }
785
- }))), Oa = Aa, L = ({
798
+ }))), ja = Oa, I = ({
786
799
  asChild: a,
787
800
  children: n,
788
- className: t = "",
801
+ className: e = "",
789
802
  ["data-testid"]: p
790
- }) => /* @__PURE__ */ o(Oa, { asChild: a, "data-testid": p, className: t, children: n }), H = s.bind($a), g = "purpur-card-trigger-item", Za = ({
803
+ }) => /* @__PURE__ */ o(ja, { asChild: a, "data-testid": p, className: e, children: n }), B = s.bind($a), g = "purpur-card-trigger-item", Ma = ({
791
804
  ["data-testid"]: a = "purpur-card-trigger-item",
792
805
  disabled: n = !1,
793
- href: t,
806
+ href: e,
794
807
  onClick: p,
795
808
  screenReaderText: i
796
809
  }) => {
797
810
  const r = (u) => {
798
811
  n ? u.preventDefault() : p && p();
799
- }, e = `${g} ${n ? `${g}--disabled` : ""}`;
800
- return t ? (
812
+ }, t = `${g} ${n ? `${g}--disabled` : ""}`;
813
+ return e ? (
801
814
  // eslint-disable-next-line jsx-a11y/anchor-is-valid
802
815
  /* @__PURE__ */ o(
803
816
  "a",
804
817
  {
805
818
  "aria-disabled": n,
806
- className: `${H([
819
+ className: `${B([
807
820
  g,
808
821
  {
809
822
  [`${g}--disabled`]: n
810
823
  }
811
- ])} ${e}`,
824
+ ])} ${t}`,
812
825
  "data-testid": a,
813
- href: n ? void 0 : t,
826
+ href: n ? void 0 : e,
814
827
  tabIndex: n ? 0 : void 0,
815
- children: /* @__PURE__ */ o(L, { children: i })
828
+ children: /* @__PURE__ */ o(I, { children: i })
816
829
  }
817
830
  )
818
831
  ) : /* @__PURE__ */ o(
819
832
  "button",
820
833
  {
821
834
  "aria-disabled": n,
822
- className: `${H([
835
+ className: `${B([
823
836
  g,
824
837
  `${g}--button`,
825
838
  {
826
839
  [`${g}--disabled`]: n
827
840
  }
828
- ])} ${e}`,
841
+ ])} ${t}`,
829
842
  "data-testid": a,
830
843
  type: "button",
831
844
  onClick: r,
832
- children: /* @__PURE__ */ o(L, { children: i })
845
+ children: /* @__PURE__ */ o(I, { children: i })
833
846
  }
834
847
  );
835
- }, za = s.bind(wa), k = "purpur-card-root", rr = x(
848
+ }, Za = s.bind(wa), A = "purpur-card-root", rr = x(
836
849
  ({
837
850
  ["data-testid"]: a = "purpur-card-root",
838
851
  children: n,
839
- className: t,
852
+ className: e,
840
853
  disabled: p,
841
854
  fullHeight: i,
842
855
  href: r,
843
- onClick: e,
856
+ onClick: t,
844
857
  screenReaderText: u,
845
858
  variant: c,
846
859
  ...ar
847
- }, tr) => {
848
- const er = za([
849
- k,
850
- t,
860
+ }, er) => {
861
+ const tr = Za([
862
+ A,
863
+ e,
851
864
  {
852
- [`${k}--${c}`]: c,
853
- [`${k}--full-height`]: i
865
+ [`${A}--${c}`]: c,
866
+ [`${A}--full-height`]: i
854
867
  }
855
868
  ]);
856
- 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: [
857
870
  n,
858
- (e || r) && u && /* @__PURE__ */ o(
859
- Za,
871
+ (t || r) && u && /* @__PURE__ */ o(
872
+ Ma,
860
873
  {
861
874
  disabled: p,
862
875
  href: r,
863
- onClick: e,
876
+ onClick: t,
864
877
  screenReaderText: u
865
878
  }
866
879
  )
@@ -868,22 +881,22 @@ const Sa = [
868
881
  }
869
882
  );
870
883
  rr.displayName = "CardRoot";
871
- const I = s.bind(sr), S = "purpur-card", d = ({ children: a, className: n, ...t }) => {
872
- const p = I([
873
- S,
884
+ const H = s.bind(sr), k = "purpur-card", d = ({ children: a, className: n, ...e }) => {
885
+ const p = H([
886
+ k,
874
887
  n,
875
888
  {
876
- [`${S}--is-interactive`]: t.onClick || t.href,
877
- [`${S}--disabled`]: t.disabled
889
+ [`${k}--is-interactive`]: e.onClick || e.href,
890
+ [`${k}--disabled`]: e.disabled
878
891
  }
879
892
  ]);
880
- return /* @__PURE__ */ o(rr, { className: I(p), ...t, children: a });
893
+ return /* @__PURE__ */ o(rr, { className: H(p), ...e, children: a });
881
894
  };
882
- d.Badge = qr;
895
+ d.Badge = Rr;
883
896
  d.LinkArrow = ma;
884
- d.Content = Br;
885
- d.ContentContainer = Ir;
886
- d.Cta = Wr;
897
+ d.Content = qr;
898
+ d.ContentContainer = Hr;
899
+ d.Cta = Kr;
887
900
  d.FeatureList = da;
888
901
  d.Overline = ya;
889
902
  d.displayName = "Card";