@apolitical/component-library 5.3.4-SW.1 → 5.3.4-SW.3

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/index.mjs CHANGED
@@ -28024,36 +28024,45 @@ const p_ = ({
28024
28024
  ] }, `carousel-${d}`);
28025
28025
  }
28026
28026
  );
28027
- const bk = ({ className: e = "", card: t }) => {
28028
- const { banner: n, title: r, text: i, isPrivate: a, slug: s } = t, o = {}, l = (u) => {
28029
- s && (u.preventDefault(), u.stopPropagation(), window.location.href = s);
28030
- };
28031
- return s && (o.onClick = l), /* @__PURE__ */ c.jsxs(
28032
- "div",
28033
- {
28034
- className: V("narrow-card", e, {
28035
- "has-link": s,
28036
- "no-link": !s
28037
- }),
28038
- ...o,
28039
- children: [
28040
- /* @__PURE__ */ c.jsx(
28041
- "div",
28042
- {
28043
- className: V("img", {
28044
- private: a,
28045
- "no-image": !n
28046
- }),
28047
- children: n && /* @__PURE__ */ c.jsx(vr, { image: n })
28048
- }
28049
- ),
28050
- /* @__PURE__ */ c.jsxs("div", { className: "content", children: [
28051
- r && /* @__PURE__ */ c.jsx("p", { className: "title", children: r }),
28052
- i && /* @__PURE__ */ c.jsx("p", { className: "text", children: i })
28053
- ] })
28054
- ]
28055
- }
28056
- );
28027
+ const bk = ({
28028
+ element: e = "div",
28029
+ className: t = "",
28030
+ card: n,
28031
+ gtmContext: r = "NarrowCard"
28032
+ }) => {
28033
+ const { banner: i, title: a, text: s, isPrivate: o, slug: l } = n;
28034
+ let u = {};
28035
+ return l && (u = {
28036
+ onClick: (h) => {
28037
+ l && (h.preventDefault(), h.stopPropagation(), window.location.href = l);
28038
+ },
28039
+ tabIndex: "0",
28040
+ "data-gtm-event-context": `${r}-NarrowCard`,
28041
+ "data-gtm-event-type": `${r}-click`
28042
+ }), te.createElement(e, {
28043
+ className: V("narrow-card", t, {
28044
+ "has-link": l,
28045
+ "gtm-trackable": l,
28046
+ "no-link": !l
28047
+ }),
28048
+ ...u,
28049
+ children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
28050
+ /* @__PURE__ */ c.jsx(
28051
+ "div",
28052
+ {
28053
+ className: V("img", {
28054
+ private: o,
28055
+ "no-image": !i
28056
+ }),
28057
+ children: i && /* @__PURE__ */ c.jsx(vr, { image: i })
28058
+ }
28059
+ ),
28060
+ /* @__PURE__ */ c.jsxs("div", { className: "content", children: [
28061
+ a && /* @__PURE__ */ c.jsx("p", { className: "title text-medium", children: a }),
28062
+ s && /* @__PURE__ */ c.jsx("p", { className: "text text-medium", children: s })
28063
+ ] })
28064
+ ] })
28065
+ });
28057
28066
  };
28058
28067
  const yk = ({
28059
28068
  element: e = "p",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "5.3.4-SW.1",
3
+ "version": "5.3.4-SW.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {