@apolitical/component-library 5.3.4-SW.0 → 5.3.4-SW.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.
- package/cards/cards.types.d.ts +2 -3
- package/cards/mocks/narrow-card.d.ts +1 -0
- package/cards/narrow-card/narrow-card.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +30 -18
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -28024,24 +28024,36 @@ const p_ = ({
|
|
|
28024
28024
|
] }, `carousel-${d}`);
|
|
28025
28025
|
}
|
|
28026
28026
|
);
|
|
28027
|
-
const bk = ({ className: e = "", card: t
|
|
28028
|
-
const { banner:
|
|
28029
|
-
|
|
28030
|
-
|
|
28031
|
-
|
|
28032
|
-
|
|
28033
|
-
|
|
28034
|
-
|
|
28035
|
-
|
|
28036
|
-
|
|
28037
|
-
|
|
28038
|
-
|
|
28039
|
-
|
|
28040
|
-
|
|
28041
|
-
|
|
28042
|
-
|
|
28043
|
-
|
|
28044
|
-
|
|
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
|
+
);
|
|
28045
28057
|
};
|
|
28046
28058
|
const yk = ({
|
|
28047
28059
|
element: e = "p",
|