@apolitical/component-library 4.8.7-jc.4 → 4.8.7
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
|
@@ -6365,23 +6365,23 @@ const Dn = ({
|
|
|
6365
6365
|
}
|
|
6366
6366
|
});
|
|
6367
6367
|
}
|
|
6368
|
-
}, G = (k) => {
|
|
6369
|
-
var q;
|
|
6370
|
-
if (k.preventDefault(), k.stopPropagation(), $)
|
|
6371
|
-
return;
|
|
6372
|
-
let R = 0;
|
|
6373
|
-
if ((q = re == null ? void 0 : re.current) != null && q.id) {
|
|
6374
|
-
const ne = document.getElementById(re.current.id);
|
|
6375
|
-
ne && (R = ne.getBoundingClientRect().top + window.scrollY);
|
|
6376
|
-
}
|
|
6377
|
-
const M = document.getElementById("header");
|
|
6378
|
-
M && (R = R - M.offsetHeight - b), R < 0 && (R = 0), window.scrollTo({ top: R, behavior: "smooth" }), L();
|
|
6379
6368
|
}, _ = [
|
|
6380
6369
|
{
|
|
6381
6370
|
...f,
|
|
6382
6371
|
icon: W ? { icon: "tick", position: "left" } : !1,
|
|
6383
|
-
className:
|
|
6384
|
-
onClick:
|
|
6372
|
+
className: "gtm-trackable",
|
|
6373
|
+
onClick: (k) => {
|
|
6374
|
+
var q;
|
|
6375
|
+
if (k.preventDefault(), k.stopPropagation(), $)
|
|
6376
|
+
return;
|
|
6377
|
+
let R = 0;
|
|
6378
|
+
if ((q = re == null ? void 0 : re.current) != null && q.id) {
|
|
6379
|
+
const ne = document.getElementById(re.current.id);
|
|
6380
|
+
ne && (R = ne.getBoundingClientRect().top + window.scrollY);
|
|
6381
|
+
}
|
|
6382
|
+
const M = document.getElementById("header");
|
|
6383
|
+
M && (R = R - M.offsetHeight - b), R < 0 && (R = 0), window.scrollTo({ top: R, behavior: "smooth" }), L();
|
|
6384
|
+
},
|
|
6385
6385
|
disabled: $ || W || s.disabled,
|
|
6386
6386
|
"data-gtm-event-context": d.context,
|
|
6387
6387
|
"data-gtm-event-type": d.event,
|
|
@@ -6390,7 +6390,7 @@ const Dn = ({
|
|
|
6390
6390
|
];
|
|
6391
6391
|
return v && _.unshift({
|
|
6392
6392
|
...o,
|
|
6393
|
-
className:
|
|
6393
|
+
className: "gtm-trackable",
|
|
6394
6394
|
"data-gtm-event-context": d.context,
|
|
6395
6395
|
"data-gtm-event-type": d.event,
|
|
6396
6396
|
disabled: $ || W,
|
|
@@ -20736,8 +20736,7 @@ const _C = ({
|
|
|
20736
20736
|
],
|
|
20737
20737
|
intlPath: "contactForm",
|
|
20738
20738
|
gtm: { context: r, event: i },
|
|
20739
|
-
functions: { onSuccess: t, onFailure: n }
|
|
20740
|
-
button: { className: "new" }
|
|
20739
|
+
functions: { onSuccess: t, onFailure: n }
|
|
20741
20740
|
}
|
|
20742
20741
|
);
|
|
20743
20742
|
};
|
|
@@ -21510,13 +21509,12 @@ const qn = ({
|
|
|
21510
21509
|
styling: n = {},
|
|
21511
21510
|
...r
|
|
21512
21511
|
}) => {
|
|
21513
|
-
const { background: i = "default"
|
|
21512
|
+
const { background: i = "default" } = n;
|
|
21514
21513
|
return /* @__PURE__ */ c.jsx(
|
|
21515
21514
|
"section",
|
|
21516
21515
|
{
|
|
21517
21516
|
className: Z("full-width-section", t, {
|
|
21518
|
-
[i]: i !== "default"
|
|
21519
|
-
[a]: a !== "none"
|
|
21517
|
+
[i]: i !== "default"
|
|
21520
21518
|
}),
|
|
21521
21519
|
...r,
|
|
21522
21520
|
children: e
|
package/package.json
CHANGED
|
@@ -4,8 +4,6 @@ interface Props {
|
|
|
4
4
|
styling?: {
|
|
5
5
|
/** The background of the section. Defaults to `default` */
|
|
6
6
|
background?: 'default' | 'light' | 'dark';
|
|
7
|
-
/** The size of the padding. Defaults to `default` */
|
|
8
|
-
padding?: 'none' | 'medium' | 'large';
|
|
9
7
|
};
|
|
10
8
|
/** Additional classes */
|
|
11
9
|
className?: string;
|