@apolitical/component-library 4.8.7-jc.1 → 4.8.7-jc.4

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();
6368
6379
  }, _ = [
6369
6380
  {
6370
6381
  ...f,
6371
6382
  icon: W ? { icon: "tick", position: "left" } : !1,
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
- },
6383
+ className: `gtm-trackable ${f.className ?? ""}`,
6384
+ onClick: G,
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: "gtm-trackable",
6393
+ className: `gtm-trackable ${f.className ?? ""}`,
6394
6394
  "data-gtm-event-context": d.context,
6395
6395
  "data-gtm-event-type": d.event,
6396
6396
  disabled: $ || W,
@@ -20736,7 +20736,8 @@ const _C = ({
20736
20736
  ],
20737
20737
  intlPath: "contactForm",
20738
20738
  gtm: { context: r, event: i },
20739
- functions: { onSuccess: t, onFailure: n }
20739
+ functions: { onSuccess: t, onFailure: n },
20740
+ button: { className: "new" }
20740
20741
  }
20741
20742
  );
20742
20743
  };
@@ -21509,12 +21510,13 @@ const qn = ({
21509
21510
  styling: n = {},
21510
21511
  ...r
21511
21512
  }) => {
21512
- const { background: i = "default" } = n;
21513
+ const { background: i = "default", padding: a = "none" } = n;
21513
21514
  return /* @__PURE__ */ c.jsx(
21514
21515
  "section",
21515
21516
  {
21516
21517
  className: Z("full-width-section", t, {
21517
- [i]: i !== "default"
21518
+ [i]: i !== "default",
21519
+ [a]: a !== "none"
21518
21520
  }),
21519
21521
  ...r,
21520
21522
  children: e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "4.8.7-jc.1",
3
+ "version": "4.8.7-jc.4",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -4,6 +4,8 @@ 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';
7
9
  };
8
10
  /** Additional classes */
9
11
  className?: string;