@apolitical/component-library 8.2.1-ac.8 → 8.2.1

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
@@ -26512,12 +26512,12 @@ const Rm = ({
26512
26512
  showNavigation: e = !0,
26513
26513
  showLanguageUnavailableMessage: t = !0,
26514
26514
  showLanguageSwitcher: n = !0,
26515
- functions: { onLanguageSwitcherClick: r } = {}
26515
+ onLanguageSwitcherClick: r
26516
26516
  }) => {
26517
26517
  const i = ce(), a = Oe(ut), s = Vn(!0, !0), o = a && typeof a.id == "string", l = en(
26518
26518
  () => Ke.getIsDesktopVersion(o, s),
26519
26519
  [o, s]
26520
- ), u = np("language-switcher") || !0, [d, m] = se(
26520
+ ), u = np("language-switcher") && n, [d, m] = se(
26521
26521
  u && t ? a.locale !== "en" : !1
26522
26522
  ), [h, p] = Un(si, {
26523
26523
  headerIsVisible: !0,
@@ -26635,7 +26635,6 @@ const Rm = ({
26635
26635
  "button",
26636
26636
  {
26637
26637
  className: "earth icon language-switcher-button",
26638
- "aria-hidden": d,
26639
26638
  "aria-label": "Language switcher",
26640
26639
  onClick: (j) => {
26641
26640
  j.preventDefault(), j.stopPropagation(), r ? r() : m(!d);
@@ -26739,10 +26738,10 @@ const Rm = ({
26739
26738
  l.navigation ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
26740
26739
  T,
26741
26740
  C,
26742
- u && n && _
26741
+ u && _
26743
26742
  ] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
26744
26743
  C,
26745
- u && n && _,
26744
+ u && _,
26746
26745
  T
26747
26746
  ] }),
26748
26747
  o ? /* @__PURE__ */ c.jsxs(
@@ -26788,7 +26787,7 @@ const Rm = ({
26788
26787
  ]
26789
26788
  }
26790
26789
  ) : /* @__PURE__ */ c.jsx("ul", { className: "sign-in-buttons", children: ma.buttons.order.map((j) => /* @__PURE__ */ c.jsx(ha, { id: `buttons.${j}` }, j)) })
26791
- ] }) : u && n && _
26790
+ ] }) : u && _
26792
26791
  ]
26793
26792
  }
26794
26793
  ),
@@ -1,5 +1,5 @@
1
1
  interface Props {
2
2
  headerIsVisible: boolean;
3
3
  }
4
- declare const LanguageUnableMessage: ({ headerIsVisible }: Props) => import("react/jsx-runtime").JSX.Element;
5
- export default LanguageUnableMessage;
4
+ declare const LanguageUnavailableMessage: ({ headerIsVisible }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export default LanguageUnavailableMessage;
@@ -5,10 +5,8 @@ interface Props {
5
5
  showLanguageUnavailableMessage?: boolean;
6
6
  /** If the language switcher should be shown */
7
7
  showLanguageSwitcher?: boolean;
8
- /** Functions to handle the header */
9
- functions?: {
10
- onLanguageSwitcherClick?: () => void;
11
- };
8
+ /** Function to handle the language switcher click */
9
+ onLanguageSwitcherClick?: () => void;
12
10
  }
13
11
  export declare enum NAVIGATION_MENUS {
14
12
  NAVIGATION = "navigation",
@@ -16,5 +14,5 @@ export declare enum NAVIGATION_MENUS {
16
14
  ACCOUNT = "account-navigation",
17
15
  SITE = "site-navigation"
18
16
  }
19
- declare const Header: ({ showNavigation, showLanguageUnavailableMessage, showLanguageSwitcher, functions: { onLanguageSwitcherClick }, }: Props) => import("react/jsx-runtime").JSX.Element | null;
17
+ declare const Header: ({ showNavigation, showLanguageUnavailableMessage, showLanguageSwitcher, onLanguageSwitcherClick, }: Props) => import("react/jsx-runtime").JSX.Element | null;
20
18
  export default Header;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "8.2.1-ac.8",
3
+ "version": "8.2.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {