@apolitical/component-library 5.0.4-jc.0 → 5.0.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
@@ -1662,7 +1662,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1662
1662
  const Ae = ({
1663
1663
  variant: e = "primary",
1664
1664
  size: t = "medium",
1665
- styling: n = { muted: !1, fullWidth: !1, new: !1 },
1665
+ styling: n = { muted: !1, fullWidth: !1 },
1666
1666
  icon: r = !1,
1667
1667
  href: i = !1,
1668
1668
  element: a = "button",
@@ -1681,16 +1681,13 @@ const Ae = ({
1681
1681
  }
1682
1682
  !l && u && (u = "");
1683
1683
  const v = [];
1684
- 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")));
1684
+ 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");
1685
1685
  const w = {
1686
1686
  ...p,
1687
1687
  className: Z(e, o, v, {
1688
1688
  "no-text": !h,
1689
1689
  disabled: l,
1690
- button: i,
1691
- new: n.new,
1692
- muted: n.muted,
1693
- "full-width": n.fullWidth
1690
+ button: i
1694
1691
  }),
1695
1692
  onClick: (E) => {
1696
1693
  (!i || i[0] === "#") && s && (E.preventDefault(), E.stopPropagation()), s && s(E);
@@ -20794,8 +20791,7 @@ const kC = ({
20794
20791
  ],
20795
20792
  intlPath: "contactForm",
20796
20793
  gtm: { context: r, event: i },
20797
- functions: { onSuccess: t, onFailure: n },
20798
- button: { styling: { new: !0 } }
20794
+ functions: { onSuccess: t, onFailure: n }
20799
20795
  }
20800
20796
  );
20801
20797
  };
@@ -21568,13 +21564,12 @@ const qn = ({
21568
21564
  styling: n = {},
21569
21565
  ...r
21570
21566
  }) => {
21571
- const { background: i = "default", padding: a = "none" } = n;
21567
+ const { background: i = "default" } = n;
21572
21568
  return /* @__PURE__ */ c.jsx(
21573
21569
  "section",
21574
21570
  {
21575
21571
  className: Z("full-width-section", t, {
21576
- [i]: i !== "default",
21577
- [a]: a !== "none"
21572
+ [i]: i !== "default"
21578
21573
  }),
21579
21574
  ...r,
21580
21575
  children: e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "5.0.4-jc.0",
3
+ "version": "5.0.4",
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 `none` */
8
- padding?: 'none' | 'medium' | 'large';
9
7
  };
10
8
  /** Additional classes */
11
9
  className?: string;