@apolitical/component-library 4.8.7-jc.3 → 4.8.7-jc.5

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 },
1648
+ styling: n = { muted: !1, fullWidth: !1, new: !1 },
1649
1649
  icon: r = !1,
1650
1650
  href: i = !1,
1651
1651
  element: a = "button",
@@ -1664,13 +1664,16 @@ 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"))), n.muted && v.push("muted"), n.fullWidth && v.push("full-width");
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")));
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
1673
+ button: i,
1674
+ new: n.new,
1675
+ muted: n.muted,
1676
+ "full-width": n.fullWidth
1674
1677
  }),
1675
1678
  onClick: (E) => {
1676
1679
  (!i || i[0] === "#") && s && (E.preventDefault(), E.stopPropagation()), s && s(E);
@@ -20736,7 +20739,8 @@ const _C = ({
20736
20739
  ],
20737
20740
  intlPath: "contactForm",
20738
20741
  gtm: { context: r, event: i },
20739
- functions: { onSuccess: t, onFailure: n }
20742
+ functions: { onSuccess: t, onFailure: n },
20743
+ button: { styling: { new: !0 } }
20740
20744
  }
20741
20745
  );
20742
20746
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "4.8.7-jc.3",
3
+ "version": "4.8.7-jc.5",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {