@canonical/react-components 0.37.3 → 0.37.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.
@@ -231,13 +231,13 @@ var Navigation = function Navigation(_ref) {
231
231
  }
232
232
  }, /*#__PURE__*/_react.default.createElement("span", {
233
233
  className: "p-navigation__search-label"
234
- }, "Search"))) : null, /*#__PURE__*/_react.default.createElement("li", {
234
+ }, "Search"))) : null, (items === null || items === void 0 ? void 0 : items.length) > 0 || (itemsRight === null || itemsRight === void 0 ? void 0 : itemsRight.length) > 0 ? /*#__PURE__*/_react.default.createElement("li", {
235
235
  className: "p-navigation__item"
236
236
  }, /*#__PURE__*/_react.default.createElement("button", {
237
237
  "aria-pressed": mobileMenuOpen,
238
238
  className: "p-navigation__link",
239
239
  onClick: toggleMobileMenu
240
- }, mobileMenuOpen ? "Close menu" : "Menu")))), /*#__PURE__*/_react.default.createElement("nav", _extends({
240
+ }, mobileMenuOpen ? "Close menu" : "Menu")) : null)), /*#__PURE__*/_react.default.createElement("nav", _extends({
241
241
  className: "p-navigation__nav"
242
242
  }, navProps), /*#__PURE__*/_react.default.createElement("ul", _extends({
243
243
  className: "p-navigation__items"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonical/react-components",
3
- "version": "0.37.3",
3
+ "version": "0.37.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "Huw Wilkins <huw.wilkins@canonical.com>",