@guillotinaweb/react-gmi 0.28.0 → 0.28.2

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.
@@ -13699,6 +13699,10 @@
13699
13699
  onLogout = _ref.onLogout,
13700
13700
  auth = _ref.auth;
13701
13701
 
13702
+ var _useState = React.useState(false),
13703
+ isMenuOpen = _useState[0],
13704
+ setIsMenuOpen = _useState[1];
13705
+
13702
13706
  var doLogout = function doLogout() {
13703
13707
  auth.logout();
13704
13708
  onLogout();
@@ -13712,6 +13716,9 @@
13712
13716
  "aria-label": "main navigation",
13713
13717
  children: [jsxRuntime.jsxs("div", {
13714
13718
  className: "navbar-brand",
13719
+ style: {
13720
+ alignItems: 'center'
13721
+ },
13715
13722
  children: [jsxRuntime.jsx("a", {
13716
13723
  className: "navbar-item",
13717
13724
  href: "/",
@@ -13720,13 +13727,16 @@
13720
13727
  alt: "Guillotina logo",
13721
13728
  height: "80"
13722
13729
  })
13723
- }), jsxRuntime.jsxs("a", {
13730
+ }), jsxRuntime.jsxs("div", {
13724
13731
  id: "burger",
13725
13732
  role: "button",
13726
- className: "navbar-burger burger",
13733
+ className: classnames(['navbar-burger', 'burger', isMenuOpen && 'is-active']),
13727
13734
  "aria-label": "menu",
13728
13735
  "aria-expanded": "false",
13729
13736
  "data-target": "navbarmenu",
13737
+ onClick: function onClick() {
13738
+ return setIsMenuOpen(!isMenuOpen);
13739
+ },
13730
13740
  children: [jsxRuntime.jsx("span", {
13731
13741
  "aria-hidden": "true"
13732
13742
  }), jsxRuntime.jsx("span", {
@@ -13737,7 +13747,7 @@
13737
13747
  })]
13738
13748
  }), jsxRuntime.jsxs("div", {
13739
13749
  id: "navbarmenu",
13740
- className: "navbar-menu",
13750
+ className: classnames(['navbar-menu', isMenuOpen && 'is-active']),
13741
13751
  children: [jsxRuntime.jsx("div", {
13742
13752
  className: "navbar-start"
13743
13753
  }), jsxRuntime.jsx("div", {