@apolitical/component-library 4.8.7-jc.5 → 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
@@ -1645,7 +1645,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1645
1645
  const Ae = ({
1646
1646
  variant: e = "primary",
1647
1647
  size: t = "medium",
1648
- styling: n = { muted: !1, fullWidth: !1, new: !1 },
1648
+ styling: n = { muted: !1, fullWidth: !1 },
1649
1649
  icon: r = !1,
1650
1650
  href: i = !1,
1651
1651
  element: a = "button",
@@ -1664,16 +1664,13 @@ const Ae = ({
1664
1664
  }
1665
1665
  !l && u && (u = "");
1666
1666
  const v = [];
1667
- typeof t == "string" && v.push(t), r && (v.push("icon"), typeof r == "object" ? (v.push(r.icon), r.position ? v.push(r.position) : v.push("left"), r.hover && v.push(`hover_${r.hover}`), r.animate && (v.push("animate"), typeof r.animate == "string" && v.push(r.animate))) : (v.push(r), !r.includes("right") && !r.includes("left") && v.push("left")));
1667
+ typeof t == "string" && v.push(t), r && (v.push("icon"), typeof r == "object" ? (v.push(r.icon), r.position ? v.push(r.position) : v.push("left"), r.hover && v.push(`hover_${r.hover}`), r.animate && (v.push("animate"), typeof r.animate == "string" && v.push(r.animate))) : (v.push(r), !r.includes("right") && !r.includes("left") && v.push("left"))), n.muted && v.push("muted"), n.fullWidth && v.push("full-width");
1668
1668
  const C = {
1669
1669
  ...p,
1670
1670
  className: Z(e, o, v, {
1671
1671
  "no-text": !h,
1672
1672
  disabled: l,
1673
- button: i,
1674
- new: n.new,
1675
- muted: n.muted,
1676
- "full-width": n.fullWidth
1673
+ button: i
1677
1674
  }),
1678
1675
  onClick: (E) => {
1679
1676
  (!i || i[0] === "#") && s && (E.preventDefault(), E.stopPropagation()), s && s(E);
@@ -20739,8 +20736,7 @@ const _C = ({
20739
20736
  ],
20740
20737
  intlPath: "contactForm",
20741
20738
  gtm: { context: r, event: i },
20742
- functions: { onSuccess: t, onFailure: n },
20743
- button: { styling: { new: !0 } }
20739
+ functions: { onSuccess: t, onFailure: n }
20744
20740
  }
20745
20741
  );
20746
20742
  };
@@ -21513,13 +21509,12 @@ const qn = ({
21513
21509
  styling: n = {},
21514
21510
  ...r
21515
21511
  }) => {
21516
- const { background: i = "default", padding: a = "none" } = n;
21512
+ const { background: i = "default" } = n;
21517
21513
  return /* @__PURE__ */ c.jsx(
21518
21514
  "section",
21519
21515
  {
21520
21516
  className: Z("full-width-section", t, {
21521
- [i]: i !== "default",
21522
- [a]: a !== "none"
21517
+ [i]: i !== "default"
21523
21518
  }),
21524
21519
  ...r,
21525
21520
  children: e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "4.8.7-jc.5",
3
+ "version": "4.8.7",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -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;