@purpurds/promotion-card 5.24.3 → 5.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { jsxs as _, jsx as l, Fragment as hr } from "react/jsx-runtime";
2
- import { forwardRef as $, Children as q, isValidElement as V, createElement as D, cloneElement as mr, useEffect as Dr, Fragment as Pr } from "react";
1
+ import { jsxs as f, jsx as l, Fragment as hr } from "react/jsx-runtime";
2
+ import { forwardRef as $, Children as R, isValidElement as V, createElement as D, cloneElement as mr, useEffect as Dr, Fragment as Pr } from "react";
3
3
  import "react-dom";
4
4
  function Tr(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -166,7 +166,7 @@ const le = /* @__PURE__ */ ne(pe), er = {
166
166
  "purpur-badge--warning": "_purpur-badge--warning_1r1mu_33",
167
167
  "purpur-badge--error": "_purpur-badge--error_1r1mu_37",
168
168
  "purpur-badge--black-friday": "_purpur-badge--black-friday_1r1mu_41"
169
- }, tr = "purpur-badge", w = {
169
+ }, tr = "purpur-badge", b = {
170
170
  ATTENTION: "attention",
171
171
  SPECIAL: "special",
172
172
  NEUTRAL: "neutral",
@@ -177,20 +177,20 @@ const le = /* @__PURE__ */ ne(pe), er = {
177
177
  BLACK_FRIDAY: "black-friday"
178
178
  }, ue = (e) => {
179
179
  switch (e) {
180
- case w.ATTENTION:
181
- case w.SPECIAL:
180
+ case b.ATTENTION:
181
+ case b.SPECIAL:
182
182
  return Jr;
183
- case w.INFORMATION:
183
+ case b.INFORMATION:
184
184
  return Yr;
185
- case w.SUCCESS:
185
+ case b.SUCCESS:
186
186
  return Xr;
187
- case w.WARNING:
187
+ case b.WARNING:
188
188
  return Wr;
189
- case w.ERROR:
189
+ case b.ERROR:
190
190
  return Kr;
191
- case w.NEUTRAL:
191
+ case b.NEUTRAL:
192
192
  return Qr;
193
- case w.BLACK_FRIDAY:
193
+ case b.BLACK_FRIDAY:
194
194
  return re;
195
195
  default:
196
196
  return;
@@ -205,7 +205,7 @@ const le = /* @__PURE__ */ ne(pe), er = {
205
205
  ...t
206
206
  }) => {
207
207
  const o = ue(a), u = le([r, er[tr], er[`${tr}--${a}`]]);
208
- return /* @__PURE__ */ _("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
208
+ return /* @__PURE__ */ f("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
209
209
  i && o && /* @__PURE__ */ l(yr, { "data-testid": `${n}-icon`, allyTitle: p, size: "xs", svg: o }),
210
210
  e
211
211
  ] });
@@ -359,7 +359,7 @@ const xe = /* @__PURE__ */ ve(ye), we = {
359
359
  "purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1acxn_160",
360
360
  "purpur-button--text-negative": "_purpur-button--text-negative_1acxn_175",
361
361
  "purpur-button--text": "_purpur-button--text_1acxn_175"
362
- }, be = xe.bind(we), A = "purpur-button", $e = ({
362
+ }, be = xe.bind(we), A = "purpur-button", Se = ({
363
363
  children: e,
364
364
  className: i,
365
365
  ["data-testid"]: a,
@@ -369,10 +369,10 @@ const xe = /* @__PURE__ */ ve(ye), we = {
369
369
  loading: t = !1,
370
370
  negative: o = !1,
371
371
  onClick: u,
372
- size: c = "md",
372
+ size: d = "md",
373
373
  variant: g,
374
- type: S = "button",
375
- ...d
374
+ type: w = "button",
375
+ ...c
376
376
  }, F) => {
377
377
  if (r && g === "destructive")
378
378
  return null;
@@ -380,7 +380,7 @@ const xe = /* @__PURE__ */ ve(ye), we = {
380
380
  [
381
381
  A,
382
382
  `${A}--${o ? `${g}-negative` : g}`,
383
- `${A}--${c}`
383
+ `${A}--${d}`
384
384
  ],
385
385
  {
386
386
  [`${A}--icon-only`]: r,
@@ -389,32 +389,32 @@ const xe = /* @__PURE__ */ ve(ye), we = {
389
389
  [`${A}--disabled`]: n || t
390
390
  },
391
391
  i
392
- ), h = (P) => {
392
+ ), _ = (P) => {
393
393
  n || t ? P.preventDefault() : u && u(P);
394
- }, C = !!d["aria-disabled"] || n || t;
395
- return /* @__PURE__ */ _(
394
+ }, C = !!c["aria-disabled"] || n || t;
395
+ return /* @__PURE__ */ f(
396
396
  "button",
397
397
  {
398
398
  className: v,
399
399
  "data-testid": a,
400
- type: S,
400
+ type: w,
401
401
  ref: F,
402
402
  "aria-disabled": C,
403
- onClick: h,
404
- ...d,
403
+ onClick: _,
404
+ ...c,
405
405
  children: [
406
- t && /* @__PURE__ */ l(me, { size: c === de.LG ? "xs" : "xxs", negative: o, disabled: C }),
406
+ t && /* @__PURE__ */ l(me, { size: d === de.LG ? "xs" : "xxs", negative: o, disabled: C }),
407
407
  " ",
408
408
  e
409
409
  ]
410
410
  }
411
411
  );
412
- }, $r = $($e);
413
- $r.displayName = "Button";
414
- function Se(e) {
412
+ }, Sr = $(Se);
413
+ Sr.displayName = "Button";
414
+ function $e(e) {
415
415
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
416
416
  }
417
- var Sr = { exports: {} };
417
+ var $r = { exports: {} };
418
418
  /*!
419
419
  Copyright (c) 2018 Jed Watson.
420
420
  Licensed under the MIT License (MIT), see
@@ -449,9 +449,9 @@ var Sr = { exports: {} };
449
449
  }
450
450
  e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
451
451
  })();
452
- })(Sr);
453
- var Ce = Sr.exports;
454
- const m = /* @__PURE__ */ Se(Ce), ke = {
452
+ })($r);
453
+ var Ce = $r.exports;
454
+ const m = /* @__PURE__ */ $e(Ce), ke = {
455
455
  "purpur-card": "_purpur-card_1owb4_1"
456
456
  };
457
457
  function Ae(e) {
@@ -537,14 +537,14 @@ const Be = /* @__PURE__ */ Ae(Oe), Fe = {
537
537
  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>',
538
538
  keywords: ["tag"],
539
539
  category: "other"
540
- }, Ue = Be.bind(Fe), ir = "purpur-icon", Le = "md", Re = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), qe = ({ content: e = "", title: i } = {}) => {
540
+ }, Ue = Be.bind(Fe), ir = "purpur-icon", Le = "md", qe = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), Re = ({ content: e = "", title: i } = {}) => {
541
541
  const a = [
542
542
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
543
543
  { name: "fill", value: "currentColor" },
544
544
  { name: "viewBox", value: "0 0 24 24" },
545
545
  i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
546
546
  ], n = i ? `<title>${i}</title>` : "";
547
- return `<svg ${Re(a)}>${n}${e}</svg>`;
547
+ return `<svg ${qe(a)}>${n}${e}</svg>`;
548
548
  }, De = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), kr = ({
549
549
  ["data-testid"]: e,
550
550
  svg: i,
@@ -553,7 +553,7 @@ const Be = /* @__PURE__ */ Ae(Oe), Fe = {
553
553
  size: p = Le,
554
554
  ...r
555
555
  }) => {
556
- const t = qe({
556
+ const t = Re({
557
557
  content: De(i.svg),
558
558
  title: a
559
559
  }), o = Ue(n, ir, `${ir}--${p}`);
@@ -619,7 +619,7 @@ const ze = /* @__PURE__ */ Pe(Te), or = {
619
619
  "purpur-badge--warning": "_purpur-badge--warning_1r1mu_33",
620
620
  "purpur-badge--error": "_purpur-badge--error_1r1mu_37",
621
621
  "purpur-badge--black-friday": "_purpur-badge--black-friday_1r1mu_41"
622
- }, nr = "purpur-badge", b = {
622
+ }, nr = "purpur-badge", S = {
623
623
  ATTENTION: "attention",
624
624
  SPECIAL: "special",
625
625
  NEUTRAL: "neutral",
@@ -630,20 +630,20 @@ const ze = /* @__PURE__ */ Pe(Te), or = {
630
630
  BLACK_FRIDAY: "black-friday"
631
631
  }, He = (e) => {
632
632
  switch (e) {
633
- case b.ATTENTION:
634
- case b.SPECIAL:
633
+ case S.ATTENTION:
634
+ case S.SPECIAL:
635
635
  return Ze;
636
- case b.INFORMATION:
636
+ case S.INFORMATION:
637
637
  return Ge;
638
- case b.SUCCESS:
638
+ case S.SUCCESS:
639
639
  return Ne;
640
- case b.WARNING:
640
+ case S.WARNING:
641
641
  return Me;
642
- case b.ERROR:
642
+ case S.ERROR:
643
643
  return Ee;
644
- case b.NEUTRAL:
644
+ case S.NEUTRAL:
645
645
  return Ie;
646
- case b.BLACK_FRIDAY:
646
+ case S.BLACK_FRIDAY:
647
647
  return je;
648
648
  default:
649
649
  return;
@@ -658,7 +658,7 @@ const ze = /* @__PURE__ */ Pe(Te), or = {
658
658
  ...t
659
659
  }) => {
660
660
  const o = He(a), u = ze([r, or[nr], or[`${nr}--${a}`]]);
661
- return /* @__PURE__ */ _("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
661
+ return /* @__PURE__ */ f("span", { "aria-label": p, className: u, "data-testid": n, ...t, children: [
662
662
  i && o && /* @__PURE__ */ l(kr, { "data-testid": `${n}-icon`, allyTitle: p, size: "xs", svg: o }),
663
663
  e
664
664
  ] });
@@ -825,7 +825,7 @@ const lr = /* @__PURE__ */ ot(nt), pt = "_rotate_1xozj_1", lt = "_dash_1xozj_1",
825
825
  ])} ${O}`,
826
826
  "data-testid": e,
827
827
  ...o,
828
- children: r ? /* @__PURE__ */ l(Br, { "data-testid": `${e}-spinner`, size: "xs", disabled: n }) : /* @__PURE__ */ _(hr, { children: [
828
+ children: r ? /* @__PURE__ */ l(Br, { "data-testid": `${e}-spinner`, size: "xs", disabled: n }) : /* @__PURE__ */ f(hr, { children: [
829
829
  p === "left" && a,
830
830
  t,
831
831
  p === "right" && a
@@ -914,7 +914,7 @@ const yt = gt.bind(ht), ur = "purpur-icon", xt = "md", wt = (e) => e.filter((i)
914
914
  i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
915
915
  ], n = i ? `<title>${i}</title>` : "";
916
916
  return `<svg ${wt(a)}>${n}${e}</svg>`;
917
- }, $t = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), J = ({
917
+ }, St = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), J = ({
918
918
  ["data-testid"]: e,
919
919
  svg: i,
920
920
  allyTitle: a,
@@ -923,7 +923,7 @@ const yt = gt.bind(ht), ur = "purpur-icon", xt = "md", wt = (e) => e.filter((i)
923
923
  ...r
924
924
  }) => {
925
925
  const t = bt({
926
- content: $t(i.svg),
926
+ content: St(i.svg),
927
927
  title: a
928
928
  }), o = yt(n, ur, `${ur}--${p}`);
929
929
  return /* @__PURE__ */ l(
@@ -938,7 +938,7 @@ const yt = gt.bind(ht), ur = "purpur-icon", xt = "md", wt = (e) => e.filter((i)
938
938
  );
939
939
  };
940
940
  J.displayName = "Icon";
941
- function St(e) {
941
+ function $t(e) {
942
942
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
943
943
  }
944
944
  var Er = { exports: {} };
@@ -978,7 +978,7 @@ var Er = { exports: {} };
978
978
  })();
979
979
  })(Er);
980
980
  var Ct = Er.exports;
981
- const kt = /* @__PURE__ */ St(Ct), L = {
981
+ const kt = /* @__PURE__ */ $t(Ct), L = {
982
982
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
983
983
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
984
984
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -1004,7 +1004,7 @@ const kt = /* @__PURE__ */ St(Ct), L = {
1004
1004
  ADDITIONAL100MEDIUM: "additional-100-medium",
1005
1005
  OVERLINE100: "overline-100",
1006
1006
  OVERLINE200: "overline-200"
1007
- }, R = "purpur-paragraph", Q = ({
1007
+ }, q = "purpur-paragraph", Q = ({
1008
1008
  ["data-testid"]: e,
1009
1009
  children: i,
1010
1010
  className: a,
@@ -1016,12 +1016,12 @@ const kt = /* @__PURE__ */ St(Ct), L = {
1016
1016
  }) => {
1017
1017
  const u = kt([
1018
1018
  a,
1019
- L[R],
1020
- L[`${R}--${t}`],
1019
+ L[q],
1020
+ L[`${q}--${t}`],
1021
1021
  {
1022
- [L[`${R}--hyphens`]]: p,
1023
- [L[`${R}--disabled`]]: n,
1024
- [L[`${R}--negative`]]: r
1022
+ [L[`${q}--hyphens`]]: p,
1023
+ [L[`${q}--disabled`]]: n,
1024
+ [L[`${q}--negative`]]: r
1025
1025
  }
1026
1026
  ]);
1027
1027
  return /* @__PURE__ */ l("p", { ...o, className: u, "data-testid": e, children: i });
@@ -1033,7 +1033,7 @@ const Ot = {
1033
1033
  }, sr = m.bind(Ot), dr = "purpur-card-feature-list", Bt = ({
1034
1034
  ["data-testid"]: e = "purpur-card-feature-list",
1035
1035
  listItems: i
1036
- }) => i && i.length > 0 ? /* @__PURE__ */ l("ul", { className: sr(dr), "data-testid": e, children: i.map((a) => /* @__PURE__ */ _(
1036
+ }) => i && i.length > 0 ? /* @__PURE__ */ l("ul", { className: sr(dr), "data-testid": e, children: i.map((a) => /* @__PURE__ */ f(
1037
1037
  "li",
1038
1038
  {
1039
1039
  className: sr(`${dr}__list-item`),
@@ -1108,15 +1108,15 @@ function E() {
1108
1108
  function Lt(e, i) {
1109
1109
  typeof e == "function" ? e(i) : e != null && (e.current = i);
1110
1110
  }
1111
- function Rt(...e) {
1111
+ function qt(...e) {
1112
1112
  return (i) => e.forEach(
1113
1113
  (a) => Lt(a, i)
1114
1114
  );
1115
1115
  }
1116
1116
  const Gr = /* @__PURE__ */ $((e, i) => {
1117
- const { children: a, ...n } = e, p = q.toArray(a), r = p.find(Dt);
1117
+ const { children: a, ...n } = e, p = R.toArray(a), r = p.find(Dt);
1118
1118
  if (r) {
1119
- const t = r.props.children, o = p.map((u) => u === r ? q.count(t) > 1 ? q.only(null) : /* @__PURE__ */ V(t) ? t.props.children : null : u);
1119
+ const t = r.props.children, o = p.map((u) => u === r ? R.count(t) > 1 ? R.only(null) : /* @__PURE__ */ V(t) ? t.props.children : null : u);
1120
1120
  return /* @__PURE__ */ D(K, E({}, n, {
1121
1121
  ref: i
1122
1122
  }), /* @__PURE__ */ V(t) ? /* @__PURE__ */ mr(t, void 0, o) : null);
@@ -1130,13 +1130,13 @@ const K = /* @__PURE__ */ $((e, i) => {
1130
1130
  const { children: a, ...n } = e;
1131
1131
  return /* @__PURE__ */ V(a) ? /* @__PURE__ */ mr(a, {
1132
1132
  ...Pt(n, a.props),
1133
- ref: i ? Rt(i, a.ref) : a.ref
1134
- }) : q.count(a) > 1 ? q.only(null) : null;
1133
+ ref: i ? qt(i, a.ref) : a.ref
1134
+ }) : R.count(a) > 1 ? R.only(null) : null;
1135
1135
  });
1136
1136
  K.displayName = "SlotClone";
1137
- const qt = ({ children: e }) => /* @__PURE__ */ D(Pr, null, e);
1137
+ const Rt = ({ children: e }) => /* @__PURE__ */ D(Pr, null, e);
1138
1138
  function Dt(e) {
1139
- return /* @__PURE__ */ V(e) && e.type === qt;
1139
+ return /* @__PURE__ */ V(e) && e.type === Rt;
1140
1140
  }
1141
1141
  function Pt(e, i) {
1142
1142
  const a = {
@@ -1266,9 +1266,9 @@ const Tt = [
1266
1266
  onClick: t,
1267
1267
  screenReaderText: o,
1268
1268
  variant: u,
1269
- ...c
1269
+ ...d
1270
1270
  }, g) => {
1271
- const S = Xt([
1271
+ const w = Xt([
1272
1272
  W,
1273
1273
  a,
1274
1274
  {
@@ -1276,7 +1276,7 @@ const Tt = [
1276
1276
  [`${W}--full-height`]: p
1277
1277
  }
1278
1278
  ]);
1279
- return /* @__PURE__ */ _("div", { className: S, "data-testid": e, ref: g, ...c, children: [
1279
+ return /* @__PURE__ */ f("div", { className: w, "data-testid": e, ref: g, ...d, children: [
1280
1280
  i,
1281
1281
  (t || r) && o && /* @__PURE__ */ l(
1282
1282
  Wt,
@@ -1476,34 +1476,35 @@ const da = /* @__PURE__ */ ua(sa), ca = {
1476
1476
  ["data-testid"]: a,
1477
1477
  fullWidth: n = !1,
1478
1478
  iconOnly: p = !1,
1479
- negative: r = !1,
1480
- size: t = "md",
1481
- variant: o,
1482
- icon: u = "forward",
1483
- ...c
1484
- }, g) => {
1485
- const S = _a(
1479
+ showIcon: r = !0,
1480
+ negative: t = !1,
1481
+ size: o = "md",
1482
+ variant: u,
1483
+ icon: d = "forward",
1484
+ ...g
1485
+ }, w) => {
1486
+ const c = _a(
1486
1487
  [
1487
1488
  i,
1488
1489
  N,
1489
- `${N}--${r ? `${o}-negative` : o}`,
1490
- `${N}--${t}`
1490
+ `${N}--${t ? `${u}-negative` : u}`,
1491
+ `${N}--${o}`
1491
1492
  ],
1492
1493
  {
1493
1494
  [`${N}--icon-only`]: p,
1494
- [`${N}--negative`]: r,
1495
+ [`${N}--negative`]: t,
1495
1496
  [`${N}--full-width`]: n
1496
1497
  }
1497
- ), d = fa[u], F = /* @__PURE__ */ _(hr, { children: [
1498
- (u === "back" || u === "phone") && /* @__PURE__ */ l(Y, { svg: d, size: t === "lg" ? "sm" : "xs" }),
1499
- !p && e,
1500
- (u === "forward" || u === "external") && /* @__PURE__ */ l(Y, { svg: d, size: t === "lg" ? "sm" : "xs" })
1501
- ] }), v = {
1502
- ...c,
1503
- className: S,
1498
+ ), F = fa[d], v = /* @__PURE__ */ f(hr, { children: [
1499
+ r && (d === "back" || d === "phone") && /* @__PURE__ */ l(Y, { svg: F, size: o === "lg" ? "sm" : "xs" }),
1500
+ (!p || p && !r) && e,
1501
+ r && (d === "forward" || d === "external") && /* @__PURE__ */ l(Y, { svg: F, size: o === "lg" ? "sm" : "xs" })
1502
+ ] }), _ = {
1503
+ ...g,
1504
+ className: c,
1504
1505
  "data-testid": a
1505
1506
  };
1506
- return "href" in c && c.href ? /* @__PURE__ */ l("a", { ...v, ref: g, children: F }) : /* @__PURE__ */ l("span", { ...v, ref: g, children: F });
1507
+ return "href" in g && g.href ? /* @__PURE__ */ l("a", { ..._, ref: w, children: v }) : /* @__PURE__ */ l("span", { ..._, ref: w, children: v });
1507
1508
  }
1508
1509
  );
1509
1510
  function ha(e) {
@@ -1581,7 +1582,7 @@ const va = /* @__PURE__ */ ha(ma), z = {
1581
1582
  variant: t = ya.TITLE100,
1582
1583
  ...o
1583
1584
  }) => {
1584
- const u = r, c = va([
1585
+ const u = r, d = va([
1585
1586
  a,
1586
1587
  z[H],
1587
1588
  z[`${H}--${t}`],
@@ -1590,13 +1591,13 @@ const va = /* @__PURE__ */ ha(ma), z = {
1590
1591
  [z[`${H}--negative`]]: p
1591
1592
  }
1592
1593
  ]);
1593
- return /* @__PURE__ */ l(u, { ...o, className: c, "data-testid": e, children: i });
1594
+ return /* @__PURE__ */ l(u, { ...o, className: d, "data-testid": e, children: i });
1594
1595
  };
1595
1596
  Lr.displayName = "Heading";
1596
1597
  function xa(e) {
1597
1598
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1598
1599
  }
1599
- var Rr = { exports: {} };
1600
+ var qr = { exports: {} };
1600
1601
  /*!
1601
1602
  Copyright (c) 2018 Jed Watson.
1602
1603
  Licensed under the MIT License (MIT), see
@@ -1631,9 +1632,9 @@ var Rr = { exports: {} };
1631
1632
  }
1632
1633
  e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
1633
1634
  })();
1634
- })(Rr);
1635
- var wa = Rr.exports;
1636
- const ba = /* @__PURE__ */ xa(wa), $a = {
1635
+ })(qr);
1636
+ var wa = qr.exports;
1637
+ const ba = /* @__PURE__ */ xa(wa), Sa = {
1637
1638
  "purpur-promotion-card": "_purpur-promotion-card_12rh3_1",
1638
1639
  "purpur-promotion-card--without-image": "_purpur-promotion-card--without-image_12rh3_8",
1639
1640
  "purpur-promotion-card__content": "_purpur-promotion-card__content_12rh3_8",
@@ -1651,7 +1652,7 @@ const ba = /* @__PURE__ */ xa(wa), $a = {
1651
1652
  "purpur-promotion-card__image-wrapper": "_purpur-promotion-card__image-wrapper_12rh3_140",
1652
1653
  "purpur-promotion-card__image-wrapper--decorative": "_purpur-promotion-card__image-wrapper--decorative_12rh3_143",
1653
1654
  "purpur-promotion-card__image-wrapper--product": "_purpur-promotion-card__image-wrapper--product_12rh3_144"
1654
- }, Za = ["primary", "secondary", "quaternary"], Sa = {
1655
+ }, Za = ["primary", "secondary", "quaternary"], $a = {
1655
1656
  primary: "var(--purpur-color-background-tone-on-tone-primary)",
1656
1657
  secondary: "var(--purpur-color-background-tone-on-tone-secondary)",
1657
1658
  quaternary: "var(--purpur-color-background-tone-on-tone-quaternary)"
@@ -1663,7 +1664,7 @@ const ba = /* @__PURE__ */ xa(wa), $a = {
1663
1664
  primary: "var(--purpur-color-text-tone-on-tone-primary)",
1664
1665
  secondary: "var(--purpur-color-text-tone-on-tone-secondary)",
1665
1666
  quaternary: "var(--purpur-color-text-tone-on-tone-tertiary)"
1666
- }, f = ba.bind($a), s = "purpur-promotion-card", Aa = ({
1667
+ }, h = ba.bind(Sa), s = "purpur-promotion-card", Aa = ({
1667
1668
  ["data-testid"]: e,
1668
1669
  variant: i = "primary",
1669
1670
  badgeText: a,
@@ -1673,104 +1674,104 @@ const ba = /* @__PURE__ */ xa(wa), $a = {
1673
1674
  titleVariant: t = "title-300",
1674
1675
  enableTitleHyphenation: o = !0,
1675
1676
  className: u,
1676
- actions: c,
1677
+ actions: d,
1677
1678
  children: g,
1678
- style: S,
1679
- ...d
1679
+ style: w,
1680
+ ...c
1680
1681
  }, F) => {
1681
- let v = d, h, C;
1682
- if ("decorativeImage" in d) {
1683
- const { hasGradient: y, decorativeImage: k, ...G } = d;
1684
- h = k, C = y, v = G;
1685
- } else if ("productImage" in d) {
1686
- const { hasGradient: y, productImage: k, ...G } = d;
1687
- h = k, C = y, v = G;
1688
- } else if ("hasGradient" in d) {
1689
- const { hasGradient: y, ...k } = d;
1682
+ let v = c, _, C;
1683
+ if ("decorativeImage" in c) {
1684
+ const { hasGradient: y, decorativeImage: k, ...G } = c;
1685
+ _ = k, C = y, v = G;
1686
+ } else if ("productImage" in c) {
1687
+ const { hasGradient: y, productImage: k, ...G } = c;
1688
+ _ = k, C = y, v = G;
1689
+ } else if ("hasGradient" in c) {
1690
+ const { hasGradient: y, ...k } = c;
1690
1691
  C = y, v = k;
1691
1692
  }
1692
1693
  const P = {
1693
- "--promotion-card-background": Sa[i],
1694
+ "--promotion-card-background": $a[i],
1694
1695
  "--promotion-card-color": ka[i],
1695
1696
  "--promotion-card-background-image": Ca[i]
1696
1697
  };
1697
- return /* @__PURE__ */ l(x, { ref: F, className: f(`${s}__card`), children: /* @__PURE__ */ _(
1698
+ return /* @__PURE__ */ l(x, { ref: F, className: h(`${s}__card`), children: /* @__PURE__ */ f(
1698
1699
  "div",
1699
1700
  {
1700
1701
  "data-testid": e,
1701
1702
  style: {
1702
1703
  ...P,
1703
- ...S
1704
+ ...w
1704
1705
  },
1705
- className: f([
1706
+ className: h([
1706
1707
  u,
1707
1708
  s,
1708
1709
  `${s}--${i}`,
1709
1710
  {
1710
- [`${s}--with-image`]: h,
1711
- [`${s}--without-image`]: !h
1711
+ [`${s}--with-image`]: _,
1712
+ [`${s}--without-image`]: !_
1712
1713
  }
1713
1714
  ]),
1714
1715
  ...v,
1715
1716
  children: [
1716
- /* @__PURE__ */ _(
1717
+ /* @__PURE__ */ f(
1717
1718
  "div",
1718
1719
  {
1719
- className: f([
1720
+ className: h([
1720
1721
  `${s}__content`,
1721
1722
  {
1722
- [`${s}__content--with-image`]: h,
1723
- [`${s}__content--without-image`]: !h
1723
+ [`${s}__content--with-image`]: _,
1724
+ [`${s}__content--without-image`]: !_
1724
1725
  }
1725
1726
  ]),
1726
1727
  children: [
1727
- a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: f(`${s}__badge-wrapper`), children: /* @__PURE__ */ _(se, { variant: i === "primary" ? "special" : "attention", showIcon: !1, children: [
1728
+ a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: h(`${s}__badge-wrapper`), children: /* @__PURE__ */ f(se, { variant: i === "primary" ? "special" : "attention", showIcon: !1, children: [
1728
1729
  n && n,
1729
1730
  a
1730
1731
  ] }) }),
1731
- /* @__PURE__ */ _("div", { className: f(`${s}__main-content`), children: [
1732
+ /* @__PURE__ */ f("div", { className: h(`${s}__main-content`), children: [
1732
1733
  /* @__PURE__ */ l(
1733
1734
  Lr,
1734
1735
  {
1735
1736
  tag: r,
1736
1737
  variant: t,
1737
1738
  enableHyphenation: o,
1738
- className: f(`${s}__heading`),
1739
+ className: h(`${s}__heading`),
1739
1740
  children: p
1740
1741
  }
1741
1742
  ),
1742
- /* @__PURE__ */ _("div", { className: f(`${s}__body`), children: [
1743
- /* @__PURE__ */ l("div", { className: f(`${s}__child-content`), children: g }),
1744
- c && c.length > 0 && /* @__PURE__ */ l("div", { className: f(`${s}__actions`), children: c.map(({ label: y, variant: k, ...G }, qr) => {
1743
+ /* @__PURE__ */ f("div", { className: h(`${s}__body`), children: [
1744
+ /* @__PURE__ */ l("div", { className: h(`${s}__child-content`), children: g }),
1745
+ d && d.length > 0 && /* @__PURE__ */ l("div", { className: h(`${s}__actions`), children: d.map(({ label: y, variant: k, ...G }, Rr) => {
1745
1746
  const T = {
1746
- variant: k ?? qr === 0 ? "primary" : "secondary",
1747
+ variant: k ?? Rr === 0 ? "primary" : "secondary",
1747
1748
  negative: i === "primary",
1748
1749
  ...G,
1749
1750
  children: y
1750
1751
  };
1751
- return Oa(T) ? /* @__PURE__ */ l(ga, { ...T }, y) : Ba(T) ? /* @__PURE__ */ l($r, { ...T }, y) : null;
1752
+ return Oa(T) ? /* @__PURE__ */ l(ga, { ...T }, y) : Ba(T) ? /* @__PURE__ */ l(Sr, { ...T }, y) : null;
1752
1753
  }) })
1753
1754
  ] })
1754
1755
  ] })
1755
1756
  ]
1756
1757
  }
1757
1758
  ),
1758
- h && /* @__PURE__ */ _(
1759
+ _ && /* @__PURE__ */ f(
1759
1760
  "div",
1760
1761
  {
1761
- className: f([
1762
+ className: h([
1762
1763
  `${s}__image-wrapper`,
1763
1764
  {
1764
- [`${s}__image-wrapper--product`]: "productImage" in d,
1765
- [`${s}__image-wrapper--decorative`]: "decorativeImage" in d
1765
+ [`${s}__image-wrapper--product`]: "productImage" in c,
1766
+ [`${s}__image-wrapper--decorative`]: "decorativeImage" in c
1766
1767
  }
1767
1768
  ]),
1768
1769
  children: [
1769
- h,
1770
+ _,
1770
1771
  C && /* @__PURE__ */ l(
1771
1772
  "div",
1772
1773
  {
1773
- className: f(`${s}__image-gradient`),
1774
+ className: h(`${s}__image-gradient`),
1774
1775
  "data-testid": "promotion-card-gradient"
1775
1776
  }
1776
1777
  )