@purpurds/promotion-card 5.21.0 → 5.21.1

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,7 +1,7 @@
1
1
  import { jsxs as g, jsx as l, Fragment as gr } from "react/jsx-runtime";
2
- import { forwardRef as O, Children as L, isValidElement as z, createElement as R, cloneElement as hr, useEffect as Lr, Fragment as Rr } from "react";
2
+ import { forwardRef as O, Children as R, isValidElement as z, createElement as D, cloneElement as hr, useEffect as Rr, Fragment as Dr } from "react";
3
3
  import "react-dom";
4
- function Dr(e) {
4
+ function qr(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
7
7
  var mr = { exports: {} };
@@ -41,7 +41,7 @@ var mr = { exports: {} };
41
41
  })();
42
42
  })(mr);
43
43
  var Pr = mr.exports;
44
- const Tr = /* @__PURE__ */ Dr(Pr), zr = {
44
+ const Tr = /* @__PURE__ */ qr(Pr), zr = {
45
45
  "purpur-icon": "_purpur-icon_8u1lq_1",
46
46
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
47
47
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -391,7 +391,7 @@ const ve = /* @__PURE__ */ he(me), ye = {
391
391
  i
392
392
  ), B = (f) => {
393
393
  n || t ? f.preventDefault() : u && u(f);
394
- }, D = !!d["aria-disabled"] || n || t;
394
+ }, q = !!d["aria-disabled"] || n || t;
395
395
  return /* @__PURE__ */ g(
396
396
  "button",
397
397
  {
@@ -399,11 +399,11 @@ const ve = /* @__PURE__ */ he(me), ye = {
399
399
  "data-testid": a,
400
400
  type: S,
401
401
  ref: y,
402
- "aria-disabled": D,
402
+ "aria-disabled": q,
403
403
  onClick: B,
404
404
  ...d,
405
405
  children: [
406
- t && /* @__PURE__ */ l(ge, { size: c === ue.LG ? "xs" : "xxs", negative: o, disabled: D }),
406
+ t && /* @__PURE__ */ l(ge, { size: c === ue.LG ? "xs" : "xxs", negative: o, disabled: q }),
407
407
  " ",
408
408
  e
409
409
  ]
@@ -537,7 +537,7 @@ const Ae = /* @__PURE__ */ Ce(ke), Oe = {
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
- }, Ie = Ae.bind(Oe), ar = "purpur-icon", je = "md", Ue = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), qe = ({ content: e = "", title: i } = {}) => {
540
+ }, Ie = Ae.bind(Oe), ar = "purpur-icon", je = "md", Ue = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), Le = ({ 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" },
@@ -545,7 +545,7 @@ const Ae = /* @__PURE__ */ Ce(ke), Oe = {
545
545
  i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
546
546
  ], n = i ? `<title>${i}</title>` : "";
547
547
  return `<svg ${Ue(a)}>${n}${e}</svg>`;
548
- }, Le = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Cr = ({
548
+ }, Re = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Cr = ({
549
549
  ["data-testid"]: e,
550
550
  svg: i,
551
551
  allyTitle: a,
@@ -553,8 +553,8 @@ const Ae = /* @__PURE__ */ Ce(ke), Oe = {
553
553
  size: p = je,
554
554
  ...r
555
555
  }) => {
556
- const t = qe({
557
- content: Le(i.svg),
556
+ const t = Le({
557
+ content: Re(i.svg),
558
558
  title: a
559
559
  }), o = Ie(n, ar, `${ar}--${p}`);
560
560
  return /* @__PURE__ */ l(
@@ -569,7 +569,7 @@ const Ae = /* @__PURE__ */ Ce(ke), Oe = {
569
569
  );
570
570
  };
571
571
  Cr.displayName = "Icon";
572
- function Re(e) {
572
+ function De(e) {
573
573
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
574
574
  }
575
575
  var kr = { exports: {} };
@@ -608,8 +608,8 @@ var kr = { exports: {} };
608
608
  e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
609
609
  })();
610
610
  })(kr);
611
- var De = kr.exports;
612
- const Pe = /* @__PURE__ */ Re(De), ir = {
611
+ var qe = kr.exports;
612
+ const Pe = /* @__PURE__ */ De(qe), ir = {
613
613
  "purpur-badge": "_purpur-badge_1r1mu_1",
614
614
  "purpur-badge--attention": "_purpur-badge--attention_1r1mu_13",
615
615
  "purpur-badge--special": "_purpur-badge--special_1r1mu_17",
@@ -1004,7 +1004,7 @@ const St = /* @__PURE__ */ bt($t), U = {
1004
1004
  ADDITIONAL100MEDIUM: "additional-100-medium",
1005
1005
  OVERLINE100: "overline-100",
1006
1006
  OVERLINE200: "overline-200"
1007
- }, q = "purpur-paragraph", Y = ({
1007
+ }, L = "purpur-paragraph", Y = ({
1008
1008
  ["data-testid"]: e,
1009
1009
  children: i,
1010
1010
  className: a,
@@ -1016,12 +1016,12 @@ const St = /* @__PURE__ */ bt($t), U = {
1016
1016
  }) => {
1017
1017
  const u = St([
1018
1018
  a,
1019
- U[q],
1020
- U[`${q}--${t}`],
1019
+ U[L],
1020
+ U[`${L}--${t}`],
1021
1021
  {
1022
- [U[`${q}--hyphens`]]: p,
1023
- [U[`${q}--disabled`]]: n,
1024
- [U[`${q}--negative`]]: r
1022
+ [U[`${L}--hyphens`]]: p,
1023
+ [U[`${L}--disabled`]]: n,
1024
+ [U[`${L}--negative`]]: r
1025
1025
  }
1026
1026
  ]);
1027
1027
  return /* @__PURE__ */ l("p", { ...o, className: u, "data-testid": e, children: i });
@@ -1114,14 +1114,14 @@ function Ut(...e) {
1114
1114
  );
1115
1115
  }
1116
1116
  const Er = /* @__PURE__ */ O((e, i) => {
1117
- const { children: a, ...n } = e, p = L.toArray(a), r = p.find(Lt);
1117
+ const { children: a, ...n } = e, p = R.toArray(a), r = p.find(Rt);
1118
1118
  if (r) {
1119
- const t = r.props.children, o = p.map((u) => u === r ? L.count(t) > 1 ? L.only(null) : /* @__PURE__ */ z(t) ? t.props.children : null : u);
1120
- return /* @__PURE__ */ R(W, N({}, n, {
1119
+ const t = r.props.children, o = p.map((u) => u === r ? R.count(t) > 1 ? R.only(null) : /* @__PURE__ */ z(t) ? t.props.children : null : u);
1120
+ return /* @__PURE__ */ D(W, N({}, n, {
1121
1121
  ref: i
1122
1122
  }), /* @__PURE__ */ z(t) ? /* @__PURE__ */ hr(t, void 0, o) : null);
1123
1123
  }
1124
- return /* @__PURE__ */ R(W, N({}, n, {
1124
+ return /* @__PURE__ */ D(W, N({}, n, {
1125
1125
  ref: i
1126
1126
  }), a);
1127
1127
  });
@@ -1129,16 +1129,16 @@ Er.displayName = "Slot";
1129
1129
  const W = /* @__PURE__ */ O((e, i) => {
1130
1130
  const { children: a, ...n } = e;
1131
1131
  return /* @__PURE__ */ z(a) ? /* @__PURE__ */ hr(a, {
1132
- ...Rt(n, a.props),
1132
+ ...Dt(n, a.props),
1133
1133
  ref: i ? Ut(i, a.ref) : a.ref
1134
- }) : L.count(a) > 1 ? L.only(null) : null;
1134
+ }) : R.count(a) > 1 ? R.only(null) : null;
1135
1135
  });
1136
1136
  W.displayName = "SlotClone";
1137
- const qt = ({ children: e }) => /* @__PURE__ */ R(Rr, null, e);
1138
- function Lt(e) {
1139
- return /* @__PURE__ */ z(e) && e.type === qt;
1137
+ const Lt = ({ children: e }) => /* @__PURE__ */ D(Dr, null, e);
1138
+ function Rt(e) {
1139
+ return /* @__PURE__ */ z(e) && e.type === Lt;
1140
1140
  }
1141
- function Rt(e, i) {
1141
+ function Dt(e, i) {
1142
1142
  const a = {
1143
1143
  ...i
1144
1144
  };
@@ -1159,7 +1159,7 @@ function Rt(e, i) {
1159
1159
  ...a
1160
1160
  };
1161
1161
  }
1162
- const Dt = [
1162
+ const qt = [
1163
1163
  "a",
1164
1164
  "button",
1165
1165
  "div",
@@ -1176,12 +1176,12 @@ const Dt = [
1176
1176
  "span",
1177
1177
  "svg",
1178
1178
  "ul"
1179
- ], Pt = Dt.reduce((e, i) => {
1179
+ ], Pt = qt.reduce((e, i) => {
1180
1180
  const a = /* @__PURE__ */ O((n, p) => {
1181
1181
  const { asChild: r, ...t } = n, o = r ? Er : i;
1182
- return Lr(() => {
1182
+ return Rr(() => {
1183
1183
  window[Symbol.for("radix-ui")] = !0;
1184
- }, []), /* @__PURE__ */ R(o, N({}, t, {
1184
+ }, []), /* @__PURE__ */ D(o, N({}, t, {
1185
1185
  ref: p
1186
1186
  }));
1187
1187
  });
@@ -1189,7 +1189,7 @@ const Dt = [
1189
1189
  ...e,
1190
1190
  [i]: a
1191
1191
  };
1192
- }, {}), Tt = /* @__PURE__ */ O((e, i) => /* @__PURE__ */ R(Pt.span, N({}, e, {
1192
+ }, {}), Tt = /* @__PURE__ */ O((e, i) => /* @__PURE__ */ D(Pt.span, N({}, e, {
1193
1193
  ref: i,
1194
1194
  style: {
1195
1195
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -1596,7 +1596,7 @@ Ur.displayName = "Heading";
1596
1596
  function va(e) {
1597
1597
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1598
1598
  }
1599
- var qr = { exports: {} };
1599
+ var Lr = { exports: {} };
1600
1600
  /*!
1601
1601
  Copyright (c) 2018 Jed Watson.
1602
1602
  Licensed under the MIT License (MIT), see
@@ -1631,26 +1631,26 @@ var qr = { exports: {} };
1631
1631
  }
1632
1632
  e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
1633
1633
  })();
1634
- })(qr);
1635
- var ya = qr.exports;
1634
+ })(Lr);
1635
+ var ya = Lr.exports;
1636
1636
  const xa = /* @__PURE__ */ va(ya), wa = {
1637
- "purpur-promotion-card": "_purpur-promotion-card_qosug_1",
1638
- "purpur-promotion-card--without-image": "_purpur-promotion-card--without-image_qosug_8",
1639
- "purpur-promotion-card__content": "_purpur-promotion-card__content_qosug_8",
1640
- "purpur-promotion-card--with-image": "_purpur-promotion-card--with-image_qosug_33",
1641
- "purpur-promotion-card__card": "_purpur-promotion-card__card_qosug_45",
1642
- "purpur-promotion-card__image-gradient": "_purpur-promotion-card__image-gradient_qosug_49",
1643
- "purpur-promotion-card__actions": "_purpur-promotion-card__actions_qosug_65",
1644
- "purpur-promotion-card__content--without-image": "_purpur-promotion-card__content--without-image_qosug_81",
1645
- "purpur-promotion-card__main-content": "_purpur-promotion-card__main-content_qosug_84",
1646
- "purpur-promotion-card__heading": "_purpur-promotion-card__heading_qosug_88",
1647
- "purpur-promotion-card__content--with-image": "_purpur-promotion-card__content--with-image_qosug_93",
1648
- "purpur-promotion-card__badge-wrapper": "_purpur-promotion-card__badge-wrapper_qosug_104",
1649
- "purpur-promotion-card__body": "_purpur-promotion-card__body_qosug_108",
1650
- "purpur-promotion-card__child-content": "_purpur-promotion-card__child-content_qosug_137",
1651
- "purpur-promotion-card__image-wrapper": "_purpur-promotion-card__image-wrapper_qosug_140",
1652
- "purpur-promotion-card__image-wrapper--decorative": "_purpur-promotion-card__image-wrapper--decorative_qosug_143",
1653
- "purpur-promotion-card__image-wrapper--product": "_purpur-promotion-card__image-wrapper--product_qosug_144"
1637
+ "purpur-promotion-card": "_purpur-promotion-card_12rh3_1",
1638
+ "purpur-promotion-card--without-image": "_purpur-promotion-card--without-image_12rh3_8",
1639
+ "purpur-promotion-card__content": "_purpur-promotion-card__content_12rh3_8",
1640
+ "purpur-promotion-card--with-image": "_purpur-promotion-card--with-image_12rh3_33",
1641
+ "purpur-promotion-card__card": "_purpur-promotion-card__card_12rh3_45",
1642
+ "purpur-promotion-card__image-gradient": "_purpur-promotion-card__image-gradient_12rh3_49",
1643
+ "purpur-promotion-card__actions": "_purpur-promotion-card__actions_12rh3_65",
1644
+ "purpur-promotion-card__content--without-image": "_purpur-promotion-card__content--without-image_12rh3_81",
1645
+ "purpur-promotion-card__main-content": "_purpur-promotion-card__main-content_12rh3_84",
1646
+ "purpur-promotion-card__heading": "_purpur-promotion-card__heading_12rh3_88",
1647
+ "purpur-promotion-card__content--with-image": "_purpur-promotion-card__content--with-image_12rh3_93",
1648
+ "purpur-promotion-card__badge-wrapper": "_purpur-promotion-card__badge-wrapper_12rh3_104",
1649
+ "purpur-promotion-card__body": "_purpur-promotion-card__body_12rh3_108",
1650
+ "purpur-promotion-card__child-content": "_purpur-promotion-card__child-content_12rh3_137",
1651
+ "purpur-promotion-card__image-wrapper": "_purpur-promotion-card__image-wrapper_12rh3_140",
1652
+ "purpur-promotion-card__image-wrapper--decorative": "_purpur-promotion-card__image-wrapper--decorative_12rh3_143",
1653
+ "purpur-promotion-card__image-wrapper--product": "_purpur-promotion-card__image-wrapper--product_12rh3_144"
1654
1654
  }, Ba = ["primary", "secondary", "quaternary"], ba = {
1655
1655
  primary: "var(--purpur-color-background-tone-on-tone-primary)",
1656
1656
  secondary: "var(--purpur-color-background-tone-on-tone-secondary)",
@@ -1689,7 +1689,7 @@ const xa = /* @__PURE__ */ va(ya), wa = {
1689
1689
  const { hasGradient: f, ...w } = d;
1690
1690
  B = f, y = w;
1691
1691
  }
1692
- const D = {
1692
+ const q = {
1693
1693
  "--promotion-card-background": ba[i],
1694
1694
  "--promotion-card-color": Sa[i],
1695
1695
  "--promotion-card-background-image": $a[i]
@@ -1699,7 +1699,7 @@ const xa = /* @__PURE__ */ va(ya), wa = {
1699
1699
  {
1700
1700
  "data-testid": e,
1701
1701
  style: {
1702
- ...D,
1702
+ ...q,
1703
1703
  ...S
1704
1704
  },
1705
1705
  className: h([
package/dist/styles.css CHANGED
@@ -1 +1 @@
1
- ._purpur-promotion-card_qosug_1{position:relative;width:100%;height:100%;color:var(--promotion-card-color);box-sizing:border-box}._purpur-promotion-card--without-image_qosug_8 ._purpur-promotion-card__content_qosug_8{position:relative;z-index:1}._purpur-promotion-card--without-image_qosug_8:before{content:"";position:absolute;width:100%;height:100%;background-color:var(--promotion-card-background);background-image:var(--promotion-card-background-image);background-position:right 50% center;background-size:cover;transform:rotateY(180deg)}@container promotion-card (min-width: 600px){._purpur-promotion-card--without-image_qosug_8:before{background-position:center center}}@container promotion-card (min-width: 1024px){._purpur-promotion-card--without-image_qosug_8:before{transform:rotateY(0)}}._purpur-promotion-card--with-image_qosug_33{display:grid;grid-template-areas:"image" "body";grid-template-rows:auto 1fr;background:var(--promotion-card-background)}@container promotion-card (min-width: 600px){._purpur-promotion-card--with-image_qosug_33{grid-template-areas:"body image";grid-template-columns:repeat(2,1fr)}}._purpur-promotion-card__card_qosug_45{container:promotion-card/inline-size;height:100%}._purpur-promotion-card__image-gradient_qosug_49{position:absolute;bottom:0;width:100%;height:100%;background:linear-gradient(0,var(--promotion-card-background),transparent 75%)}@container promotion-card (min-width: 600px){._purpur-promotion-card__image-gradient_qosug_49{left:0;top:0;width:100%;height:100%;background:linear-gradient(90deg,var(--promotion-card-background),transparent 75%)}}._purpur-promotion-card__actions_qosug_65{display:flex;flex-wrap:wrap;gap:var(--purpur-spacing-200);padding-top:var(--purpur-spacing-400)}._purpur-promotion-card__content_qosug_8{grid-area:body;display:flex;flex-direction:column;justify-content:flex-end;height:100%;padding:var(--purpur-spacing-400);box-sizing:border-box}@container promotion-card (min-width: 1024px){._purpur-promotion-card__content--without-image_qosug_81{padding:var(--purpur-spacing-600)}._purpur-promotion-card__content--without-image_qosug_81 ._purpur-promotion-card__main-content_qosug_84{display:flex;gap:var(--purpur-spacing-300)}._purpur-promotion-card__content--without-image_qosug_81 ._purpur-promotion-card__heading_qosug_88{width:100%}}@container promotion-card (min-width: 600px){._purpur-promotion-card__content--with-image_qosug_93{flex-direction:column;justify-content:center;padding:var(--purpur-spacing-600) var(--purpur-spacing-400)}}@container promotion-card (min-width: 1024px){._purpur-promotion-card__content--with-image_qosug_93{padding:var(--purpur-spacing-1200) var(--purpur-spacing-600)}}._purpur-promotion-card__badge-wrapper_qosug_104{width:100%;padding-bottom:var(--purpur-spacing-200)}._purpur-promotion-card__heading_qosug_88,._purpur-promotion-card__body_qosug_108{width:100%}._purpur-promotion-card__heading_qosug_88{margin-bottom:var(--purpur-spacing-150);color:var(--promotion-card-color)}._purpur-promotion-card__main-content_qosug_84,._purpur-promotion-card__body_qosug_108{display:flex;flex-direction:column;flex-grow:1}._purpur-promotion-card__body_qosug_108,._purpur-promotion-card__body_qosug_108 p,._purpur-promotion-card__body_qosug_108 h1,._purpur-promotion-card__body_qosug_108 h2,._purpur-promotion-card__body_qosug_108 h3,._purpur-promotion-card__body_qosug_108 h4,._purpur-promotion-card__body_qosug_108 h5,._purpur-promotion-card__body_qosug_108 h6,._purpur-promotion-card__body_qosug_108 ul,._purpur-promotion-card__body_qosug_108 ol{color:var(--promotion-card-color)}._purpur-promotion-card__child-content_qosug_137{flex-grow:1}._purpur-promotion-card__image-wrapper_qosug_140{grid-area:image}._purpur-promotion-card__image-wrapper--decorative_qosug_143 picture,._purpur-promotion-card__image-wrapper--decorative_qosug_143 img,._purpur-promotion-card__image-wrapper--product_qosug_144 picture,._purpur-promotion-card__image-wrapper--product_qosug_144 img{display:block;width:100%;height:auto}._purpur-promotion-card__image-wrapper--decorative_qosug_143 img,._purpur-promotion-card__image-wrapper--product_qosug_144 img{object-fit:cover}._purpur-promotion-card__image-wrapper--decorative_qosug_143{position:relative;width:100%;aspect-ratio:3/2}@container promotion-card (min-width: 600px){._purpur-promotion-card__image-wrapper--decorative_qosug_143{aspect-ratio:unset}._purpur-promotion-card__image-wrapper--decorative_qosug_143 img{height:100%}}._purpur-promotion-card__image-wrapper--product_qosug_144{display:flex;justify-content:center;align-items:center;padding:var(--purpur-spacing-400)}._purpur-promotion-card_qosug_1 [class*=_purpur-cta-link_],._purpur-promotion-card_qosug_1 [class*=_purpur-button_]{width:100%}@container promotion-card (min-width: 600px){._purpur-promotion-card_qosug_1 [class*=_purpur-cta-link_],._purpur-promotion-card_qosug_1 [class*=_purpur-button_]{width:auto}}
1
+ ._purpur-promotion-card_12rh3_1{position:relative;width:100%;height:100%;color:var(--promotion-card-color);box-sizing:border-box}._purpur-promotion-card--without-image_12rh3_8 ._purpur-promotion-card__content_12rh3_8{position:relative;z-index:1}._purpur-promotion-card--without-image_12rh3_8:before{content:"";position:absolute;width:100%;height:100%;background-color:var(--promotion-card-background);background-image:var(--promotion-card-background-image);background-position:right 50% center;background-size:cover;transform:rotateY(180deg)}@container promotion-card (min-width: 600px){._purpur-promotion-card--without-image_12rh3_8:before{background-position:center center}}@container promotion-card (min-width: 1024px){._purpur-promotion-card--without-image_12rh3_8:before{transform:rotateY(0)}}._purpur-promotion-card--with-image_12rh3_33{display:grid;grid-template-areas:"image" "body";grid-template-rows:auto 1fr;background:var(--promotion-card-background)}@container promotion-card (min-width: 600px){._purpur-promotion-card--with-image_12rh3_33{grid-template-areas:"body image";grid-template-columns:repeat(2,1fr)}}._purpur-promotion-card__card_12rh3_45{container:promotion-card/inline-size;height:100%}._purpur-promotion-card__image-gradient_12rh3_49{position:absolute;bottom:0;width:100%;height:100%;background:linear-gradient(0,var(--promotion-card-background),transparent 75%)}@container promotion-card (min-width: 600px){._purpur-promotion-card__image-gradient_12rh3_49{left:0;top:0;width:100%;height:100%;background:linear-gradient(90deg,var(--promotion-card-background),transparent 75%)}}._purpur-promotion-card__actions_12rh3_65{display:flex;flex-wrap:wrap;gap:var(--purpur-spacing-200);padding-top:var(--purpur-spacing-400)}._purpur-promotion-card__content_12rh3_8{grid-area:body;display:flex;flex-direction:column;justify-content:flex-end;height:100%;padding:var(--purpur-spacing-400);box-sizing:border-box}@container promotion-card (min-width: 1024px){._purpur-promotion-card__content--without-image_12rh3_81{padding:var(--purpur-spacing-600)}._purpur-promotion-card__content--without-image_12rh3_81 ._purpur-promotion-card__main-content_12rh3_84{display:flex;gap:var(--purpur-spacing-300)}._purpur-promotion-card__content--without-image_12rh3_81 ._purpur-promotion-card__heading_12rh3_88{width:100%}}@container promotion-card (min-width: 600px){._purpur-promotion-card__content--with-image_12rh3_93{flex-direction:column;justify-content:center;padding:var(--purpur-spacing-600) var(--purpur-spacing-400)}}@container promotion-card (min-width: 1024px){._purpur-promotion-card__content--with-image_12rh3_93{padding:var(--purpur-spacing-1200) var(--purpur-spacing-600)}}._purpur-promotion-card__badge-wrapper_12rh3_104{width:100%;padding-bottom:var(--purpur-spacing-200)}._purpur-promotion-card__heading_12rh3_88,._purpur-promotion-card__body_12rh3_108{width:100%}._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__heading_12rh3_88{margin-bottom:var(--purpur-spacing-150);color:var(--promotion-card-color)}._purpur-promotion-card__main-content_12rh3_84,._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__body_12rh3_108{display:flex;flex-direction:column;flex-grow:1}._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__body_12rh3_108,._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__body_12rh3_108 p,._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__body_12rh3_108 h1,._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__body_12rh3_108 h2,._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__body_12rh3_108 h3,._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__body_12rh3_108 h4,._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__body_12rh3_108 h5,._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__body_12rh3_108 h6,._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__body_12rh3_108 ul,._purpur-promotion-card_12rh3_1 ._purpur-promotion-card__body_12rh3_108 ol{color:var(--promotion-card-color)}._purpur-promotion-card__child-content_12rh3_137{flex-grow:1}._purpur-promotion-card__image-wrapper_12rh3_140{grid-area:image}._purpur-promotion-card__image-wrapper--decorative_12rh3_143 picture,._purpur-promotion-card__image-wrapper--decorative_12rh3_143 img,._purpur-promotion-card__image-wrapper--product_12rh3_144 picture,._purpur-promotion-card__image-wrapper--product_12rh3_144 img{display:block;width:100%;height:auto}._purpur-promotion-card__image-wrapper--decorative_12rh3_143 img,._purpur-promotion-card__image-wrapper--product_12rh3_144 img{object-fit:cover}._purpur-promotion-card__image-wrapper--decorative_12rh3_143{position:relative;width:100%;aspect-ratio:3/2}@container promotion-card (min-width: 600px){._purpur-promotion-card__image-wrapper--decorative_12rh3_143{aspect-ratio:unset}._purpur-promotion-card__image-wrapper--decorative_12rh3_143 img{height:100%}}._purpur-promotion-card__image-wrapper--product_12rh3_144{display:flex;justify-content:center;align-items:center;padding:var(--purpur-spacing-400)}._purpur-promotion-card_12rh3_1 [class*=_purpur-cta-link_],._purpur-promotion-card_12rh3_1 [class*=_purpur-button_]{width:100%}@container promotion-card (min-width: 600px){._purpur-promotion-card_12rh3_1 [class*=_purpur-cta-link_],._purpur-promotion-card_12rh3_1 [class*=_purpur-button_]{width:auto}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpurds/promotion-card",
3
- "version": "5.21.0",
3
+ "version": "5.21.1",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "./dist/promotion-card.cjs.js",
6
6
  "types": "./dist/promotion-card.d.ts",
@@ -16,13 +16,13 @@
16
16
  "source": "src/promotion-card.tsx",
17
17
  "dependencies": {
18
18
  "classnames": "~2.5.0",
19
- "@purpurds/badge": "5.21.0",
20
- "@purpurds/cta-link": "5.21.0",
21
- "@purpurds/button": "5.21.0",
22
- "@purpurds/heading": "5.21.0",
23
- "@purpurds/icon": "5.21.0",
24
- "@purpurds/card": "5.21.0",
25
- "@purpurds/tokens": "5.21.0"
19
+ "@purpurds/badge": "5.21.1",
20
+ "@purpurds/card": "5.21.1",
21
+ "@purpurds/cta-link": "5.21.1",
22
+ "@purpurds/heading": "5.21.1",
23
+ "@purpurds/button": "5.21.1",
24
+ "@purpurds/icon": "5.21.1",
25
+ "@purpurds/tokens": "5.21.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@rushstack/eslint-patch": "~1.10.0",
@@ -47,9 +47,9 @@
47
47
  "vite": "5.4.8",
48
48
  "vitest": "^2.1.2",
49
49
  "@purpurds/component-rig": "1.0.0",
50
- "@purpurds/paragraph": "5.21.0",
51
- "@purpurds/text-spacing": "5.21.0",
52
- "@purpurds/grid": "5.21.0"
50
+ "@purpurds/text-spacing": "5.21.1",
51
+ "@purpurds/grid": "5.21.1",
52
+ "@purpurds/paragraph": "5.21.1"
53
53
  },
54
54
  "scripts": {
55
55
  "build:dev": "vite",
@@ -122,7 +122,7 @@
122
122
  width: 100%;
123
123
  }
124
124
 
125
- &__heading {
125
+ & &__heading {
126
126
  margin-bottom: var(--purpur-spacing-150);
127
127
  color: var(--promotion-card-color);
128
128
  }
@@ -133,7 +133,7 @@
133
133
  flex-grow: 1;
134
134
  }
135
135
 
136
- &__body {
136
+ & &__body {
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  flex-grow: 1;