@dreamtree-org/twreact-ui 1.0.82 → 1.0.83

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/dist/index.js CHANGED
@@ -15850,7 +15850,7 @@ var Dropdown = function Dropdown(_ref) {
15850
15850
  };
15851
15851
 
15852
15852
  var _excluded$b = ["emitter", "content", "notifications"],
15853
- _excluded2$2 = ["emitter", "logo", "items", "user", "notifications", "searchable", "onSearch", "leftIcon", "rightMenuContent", "onLeftIconClick", "onLoginClick", "className"];
15853
+ _excluded2$2 = ["emitter", "logo", "items", "user", "notifications", "searchable", "onSearch", "leftIcon", "rightMenuContent", "onLeftIconClick", "onLoginClick", "onLogoutClick", "className"];
15854
15854
 
15855
15855
  // Simplified Notifications, uses notifications from props and a single effect for fetch/update
15856
15856
  var NotificationsDropdown = function NotificationsDropdown(_ref) {
@@ -16002,6 +16002,10 @@ var Navbar = function Navbar(_ref3) {
16002
16002
  onLoginClick = _ref3$onLoginClick === void 0 ? function () {
16003
16003
  return console.log("invoked onLoginClick");
16004
16004
  } : _ref3$onLoginClick,
16005
+ _ref3$onLogoutClick = _ref3.onLogoutClick,
16006
+ onLogoutClick = _ref3$onLogoutClick === void 0 ? function () {
16007
+ return console.log("invoked onLogoutClick");
16008
+ } : _ref3$onLogoutClick,
16005
16009
  className = _ref3.className,
16006
16010
  props = _objectWithoutProperties$1(_ref3, _excluded2$2);
16007
16011
  var _useState3 = React.useState(false),
@@ -16038,8 +16042,7 @@ var Navbar = function Navbar(_ref3) {
16038
16042
  onLoginClick === null || onLoginClick === void 0 || onLoginClick();
16039
16043
  };
16040
16044
  var handleLogoutClick = function handleLogoutClick() {
16041
- var _onLogoutClick;
16042
- (_onLogoutClick = onLogoutClick) === null || _onLogoutClick === void 0 || _onLogoutClick();
16045
+ onLogoutClick === null || onLogoutClick === void 0 || onLogoutClick();
16043
16046
  };
16044
16047
 
16045
16048
  // Render navigation items as either <a> or <button>