@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/cards/cards.types.d.ts +4 -0
- package/cards/narrow-card/narrow-card.d.ts +5 -1
- package/index.js +1 -1
- package/index.mjs +39 -30
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -28024,36 +28024,45 @@ const p_ = ({
|
|
|
28024
28024
|
] }, `carousel-${d}`);
|
|
28025
28025
|
}
|
|
28026
28026
|
);
|
|
28027
|
-
const bk = ({
|
|
28028
|
-
|
|
28029
|
-
|
|
28030
|
-
|
|
28031
|
-
|
|
28032
|
-
|
|
28033
|
-
|
|
28034
|
-
|
|
28035
|
-
|
|
28036
|
-
|
|
28037
|
-
|
|
28038
|
-
|
|
28039
|
-
|
|
28040
|
-
|
|
28041
|
-
|
|
28042
|
-
|
|
28043
|
-
|
|
28044
|
-
|
|
28045
|
-
|
|
28046
|
-
|
|
28047
|
-
|
|
28048
|
-
|
|
28049
|
-
|
|
28050
|
-
|
|
28051
|
-
|
|
28052
|
-
|
|
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",
|