@apolitical/component-library 8.3.12 → 8.3.13
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/card-block/card-block.d.ts +1 -1
- package/index.js +3 -3
- package/index.mjs +9 -21
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -2243,7 +2243,6 @@ const Nv = ({
|
|
|
2243
2243
|
const m5 = {
|
|
2244
2244
|
customCard: "custom",
|
|
2245
2245
|
microcourse: "course",
|
|
2246
|
-
courseJourney: "course",
|
|
2247
2246
|
solutionArticle: "article",
|
|
2248
2247
|
qaQuestion: "question",
|
|
2249
2248
|
listPage: "list",
|
|
@@ -25310,7 +25309,8 @@ const pU = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
|
|
|
25310
25309
|
}
|
|
25311
25310
|
)
|
|
25312
25311
|
] });
|
|
25313
|
-
}, ym = (e) => e.map((t) => ({ condition: t }))
|
|
25312
|
+
}, ym = (e) => e.map((t) => ({ condition: t }));
|
|
25313
|
+
const Rr = {
|
|
25314
25314
|
FORM_ID: "manage-account-password-change",
|
|
25315
25315
|
NEW_PASSWORD: "newPassword",
|
|
25316
25316
|
CONFIRMED_PASSWORD: "confirmedPassword",
|
|
@@ -61059,12 +61059,6 @@ const H9e = ({
|
|
|
61059
61059
|
gtmEvent: "microcourse-overview"
|
|
61060
61060
|
// 'overview' is needed for legacy reasons
|
|
61061
61061
|
},
|
|
61062
|
-
courseJourney: {
|
|
61063
|
-
basePath: "/courses/",
|
|
61064
|
-
className: "course",
|
|
61065
|
-
gtmEvent: "microcourse-overview"
|
|
61066
|
-
// 'overview' is needed for legacy reasons
|
|
61067
|
-
},
|
|
61068
61062
|
solutionArticle: {
|
|
61069
61063
|
basePath: "/solution-articles/en/",
|
|
61070
61064
|
className: "article",
|
|
@@ -61382,23 +61376,17 @@ const IS = ({
|
|
|
61382
61376
|
}
|
|
61383
61377
|
);
|
|
61384
61378
|
};
|
|
61385
|
-
const ave = ({
|
|
61386
|
-
|
|
61387
|
-
cardTypes: t,
|
|
61388
|
-
className: n = "",
|
|
61389
|
-
gtmContext: r = "",
|
|
61390
|
-
...i
|
|
61391
|
-
}) => /* @__PURE__ */ g.jsx("ul", { className: ee("card-block", n), children: e.map((a, o) => {
|
|
61392
|
-
const s = a.slug ? `${a.slug}-${t[o]}` : `${t[o]}-${o}`;
|
|
61379
|
+
const ave = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ g.jsx("ul", { className: ee("card-block", n), children: e.map((i, a) => {
|
|
61380
|
+
const o = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
|
|
61393
61381
|
return /* @__PURE__ */ g.jsx(
|
|
61394
61382
|
IS,
|
|
61395
61383
|
{
|
|
61396
|
-
id:
|
|
61397
|
-
card: { ...
|
|
61398
|
-
meta: { setFocus:
|
|
61399
|
-
...
|
|
61384
|
+
id: o,
|
|
61385
|
+
card: { ...i, contentType: t[a] },
|
|
61386
|
+
meta: { setFocus: a === (r == null ? void 0 : r.focusCardIndex) },
|
|
61387
|
+
...r
|
|
61400
61388
|
},
|
|
61401
|
-
|
|
61389
|
+
o
|
|
61402
61390
|
);
|
|
61403
61391
|
}) }), ove = (e, t, n, r) => {
|
|
61404
61392
|
const i = t * n <= e, a = e < t * (n + 1), o = r.includes(Math.floor(e / t));
|