@bigbinary/neeto-molecules 1.0.78 → 1.0.79-beta

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/Sidebar.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import React, { useRef, useCallback, useEffect, Children, isValidElement, cloneElement, forwardRef, useState } from 'react';
2
- import { toLower, mergeDeepLeft, curry, is, includes, __, not } from 'ramda';
2
+ import { Typography, Button, Input, Spinner, Avatar, Tooltip } from '@bigbinary/neetoui';
3
+ import { toLower, mergeDeepLeft, all, curry, is, includes, __, not } from 'ramda';
4
+ import { useTranslation } from 'react-i18next';
3
5
  import { Link, useLocation, NavLink } from 'react-router-dom';
4
6
  import { useFetchNeetoApps } from '@bigbinary/neeto-commons-frontend/react-utils';
5
- import { NeetoIcon, Close, Search, AppSwitcher as AppSwitcher$1, ChatEmpty, Book, Gift, Keyboard, User, Settings, LeftArrow, Help } from '@bigbinary/neeto-icons';
6
- import { Typography, Button, Input, Tooltip, Spinner, Avatar } from '@bigbinary/neetoui';
7
- import { useTranslation } from 'react-i18next';
8
- import { capitalize, truncate, isPresent, findBy } from '@bigbinary/neeto-commons-frontend/pure';
7
+ import { NeetoIcon, Close, Search, AppSwitcher as AppSwitcher$1, ChatEmpty, Book, Gift, Keyboard, User, Settings, LeftArrow, Help, Down } from '@bigbinary/neeto-icons';
8
+ import { capitalize, truncate, findBy, isNotPresent } from '@bigbinary/neeto-commons-frontend/pure';
9
9
  import * as AppIcons from '@bigbinary/neeto-icons/app-icons';
10
10
  import { t as t$1 } from 'i18next';
11
11
  import { resetAuthTokens } from '@bigbinary/neeto-commons-frontend/utils';
12
12
  import KeyboardShortcuts from '@bigbinary/neeto-molecules/KeyboardShortcuts';
13
- import * as ProductLogos from '@bigbinary/neeto-icons/logos';
14
- import { Neeto } from '@bigbinary/neeto-icons/logos';
13
+ import * as ProductTypefaceLogos from '@bigbinary/neeto-icons/typeface-logos';
14
+ import { Neeto } from '@bigbinary/neeto-icons/typeface-logos';
15
15
  import { globalProps as globalProps$1 } from '@bigbinary/neeto-commons-frontend/initializers';
16
16
 
17
17
  function _arrayWithHoles(arr) {
@@ -31486,7 +31486,7 @@ SwitchTransition.defaultProps = {
31486
31486
 
31487
31487
  var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
31488
31488
 
31489
- var css$1 = ".neeto-molecules-app-switcher__backdrop{align-items:center;background-color:rgba(27,31,35,.867);flex-direction:row;left:var(--neeto-ui-sidebar-width);overflow:hidden;position:fixed;top:0;width:100vw;z-index:99996}.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher__wrapper{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;height:100vh;justify-content:flex-start;transition:all .3s}.neeto-molecules-app-switcher__wrapper{align-items:flex-start;animation:nuifadeIn .3s ease-in;background-color:rgb(var(--neeto-ui-white));flex-direction:column;max-width:100%;overflow-y:auto;padding:72px;position:relative;width:calc(100vw - var(--neeto-ui-sidebar-width))}.neeto-molecules-app-switcher__grid{grid-gap:24px;display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(288px,1fr))}.neeto-molecules-app-switcher__header{align-items:center;display:flex;gap:16px;justify-content:space-between;margin-bottom:32px;position:relative;width:100%}.neeto-molecules-app-switcher__close-btn{position:absolute;right:24px;top:24px}.neeto-molecules-app-switcher__search-wrapper{width:316px}.neeto-molecules-app-switcher__body{display:flex;flex-direction:column;font-size:var(--neeto-ui-text-sm);gap:12px;margin-bottom:24px;width:100%}.neeto-molecules-app-switcher-link{align-items:center;background-color:rgb(var(--neeto-ui-gray-100));border-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-lg);border-style:solid;border-width:2px;cursor:pointer;display:flex;gap:12px;max-width:100%;padding:12px 16px;text-decoration:none;transition:background-color .3s ease-in-out;width:100%}.neeto-molecules-app-switcher-link:focus,.neeto-molecules-app-switcher-link:focus-visible{outline:none}.neeto-molecules-app-switcher-link:focus-visible{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link:not(.neeto-molecules-app-switcher-link--active):hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link--active{background:rgb(var(--neeto-ui-primary-100));border-color:rgb(var(--neeto-ui-primary-600))}.neeto-molecules-app-switcher-link__icon-holder{align-items:center;border-radius:var(--neeto-ui-rounded-lg);display:flex;flex-shrink:0;height:42px;justify-content:center;width:42px}.neeto-molecules-app-switcher-link__content{flex-grow:1}.neeto-molecules-app-switcher-link__content span{display:block}.neeto-molecules-app-switcher-enter.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0}.neeto-molecules-app-switcher-enter-active.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher-enter-done.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher-exit.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:1}.neeto-molecules-app-switcher-exit-active.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0}";
31489
+ var css$1 = ".neeto-molecules-app-switcher__backdrop{align-items:center;background-color:rgba(27,31,35,.867);flex-direction:row;left:240px;overflow:hidden;position:fixed;top:0;width:100vw;z-index:99996}.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher__wrapper{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;height:100vh;justify-content:flex-start;transition:all .3s}.neeto-molecules-app-switcher__wrapper{align-items:flex-start;animation:nuifadeIn .3s ease-in;background-color:rgb(var(--neeto-ui-white));flex-direction:column;max-width:100%;overflow-y:auto;padding:72px;position:relative;width:calc(100% - 240px)}.neeto-molecules-app-switcher__grid{grid-gap:24px;display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(288px,1fr))}.neeto-molecules-app-switcher__header{align-items:center;display:flex;gap:16px;justify-content:space-between;margin-bottom:32px;position:relative;width:100%}.neeto-molecules-app-switcher__close-btn{position:absolute;right:24px;top:24px}.neeto-molecules-app-switcher__search-wrapper{width:316px}.neeto-molecules-app-switcher__body{display:flex;flex-direction:column;font-size:var(--neeto-ui-text-sm);gap:12px;margin-bottom:24px;width:100%}.neeto-molecules-app-switcher-link{align-items:center;background-color:rgb(var(--neeto-ui-gray-100));border-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-lg);border-style:solid;border-width:2px;cursor:pointer;display:flex;gap:12px;max-width:100%;padding:12px 16px;text-decoration:none;transition:background-color .3s ease-in-out;width:100%}.neeto-molecules-app-switcher-link:focus,.neeto-molecules-app-switcher-link:focus-visible{outline:none}.neeto-molecules-app-switcher-link:focus-visible{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link:not(.neeto-molecules-app-switcher-link--active):hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link--active{background:rgb(var(--neeto-ui-primary-100));border-color:rgb(var(--neeto-ui-primary-600))}.neeto-molecules-app-switcher-link__icon-holder{align-items:center;border-radius:var(--neeto-ui-rounded-lg);display:flex;flex-shrink:0;height:42px;justify-content:center;width:42px}.neeto-molecules-app-switcher-link__content{flex-grow:1}.neeto-molecules-app-switcher-link__content span{display:block}.neeto-molecules-app-switcher-enter.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0}.neeto-molecules-app-switcher-enter-active.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher-enter-done.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher-exit.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:1}.neeto-molecules-app-switcher-exit-active.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0}";
31490
31490
  n(css$1,{});
31491
31491
 
31492
31492
  function _extends() {
@@ -31717,42 +31717,18 @@ var AppSwitcher = function AppSwitcher(_ref) {
31717
31717
  })))));
31718
31718
  };
31719
31719
 
31720
- var FeaturedTooltip = function FeaturedTooltip(_ref) {
31721
- var label = _ref.label,
31722
- description = _ref.description;
31723
- return /*#__PURE__*/React.createElement("div", {
31724
- className: "neeto-ui-flex neeto-ui-flex-col sidebar-featured-tooltip"
31725
- }, /*#__PURE__*/React.createElement(Typography, {
31726
- className: "neeto-ui-text-center sidebar-featured-tooltip__title",
31727
- lineHeight: "tight",
31728
- style: "h5",
31729
- weight: "semibold"
31730
- }, label), description && /*#__PURE__*/React.createElement(Typography, {
31731
- className: "neeto-ui-text-center neeto-ui-text-gray-400 sidebar-featured-tooltip__description",
31732
- lineHeight: "normal",
31733
- style: "body3"
31734
- }, description));
31735
- };
31736
- var FeaturedTooltip$1 = /*#__PURE__*/React.memo(FeaturedTooltip);
31737
-
31738
- var NavIconWrapper = function NavIconWrapper(_ref) {
31739
- var description = _ref.description,
31740
- label = _ref.label,
31741
- children = _ref.children;
31742
- return /*#__PURE__*/React.createElement(Tooltip, {
31743
- className: "sidebar-featured-tooltip__content",
31744
- content: /*#__PURE__*/React.createElement(FeaturedTooltip$1, {
31745
- description: description,
31746
- label: label
31747
- }),
31748
- delay: [400, 40],
31749
- distance: "20rem",
31750
- duration: [200, 200],
31751
- position: "right"
31752
- }, children);
31720
+ var Chevron = function Chevron() {
31721
+ return /*#__PURE__*/React.createElement("svg", {
31722
+ height: "16",
31723
+ viewBox: "0 0 16 16",
31724
+ width: "16"
31725
+ }, /*#__PURE__*/React.createElement("path", {
31726
+ d: "M7.07031 13.8887C7.2207 14.0391 7.40527 14.1211 7.62402 14.1211C8.06836 14.1211 8.41699 13.7725 8.41699 13.3281C8.41699 13.1094 8.32812 12.9043 8.17773 12.7539L3.37207 8.05762L8.17773 3.375C8.32812 3.21777 8.41699 3.0127 8.41699 2.80078C8.41699 2.35645 8.06836 2.00781 7.62402 2.00781C7.40527 2.00781 7.2207 2.08984 7.07031 2.24023L1.73828 7.44922C1.56055 7.62012 1.46484 7.8252 1.46484 8.06445C1.46484 8.29688 1.55371 8.49512 1.73828 8.67969L7.07031 13.8887ZM13.1748 13.8887C13.3252 14.0391 13.5098 14.1211 13.7354 14.1211C14.1797 14.1211 14.5283 13.7725 14.5283 13.3281C14.5283 13.1094 14.4395 12.9043 14.2891 12.7539L9.4834 8.05762L14.2891 3.375C14.4395 3.21777 14.5283 3.0127 14.5283 2.80078C14.5283 2.35645 14.1797 2.00781 13.7354 2.00781C13.5098 2.00781 13.3252 2.08984 13.1748 2.24023L7.84961 7.44922C7.66504 7.62012 7.57617 7.8252 7.56934 8.06445C7.56934 8.29688 7.66504 8.49512 7.84961 8.67969L13.1748 13.8887Z",
31727
+ fill: "currentColor"
31728
+ }));
31753
31729
  };
31754
31730
 
31755
- var css = ".neeto-molecules-sidebar{background-color:rgb(var(--neeto-ui-white));border-right:1px solid rgb(var(--neeto-ui-gray-200));height:100vh;max-width:300px;padding:40px 0;transition:all .3s;width:300px;z-index:99997}.neeto-molecules-sidebar::-webkit-scrollbar{height:0;width:0}.neeto-molecules-sidebar::-webkit-scrollbar-thumb{background:rgb(var(--neeto-ui-gray-300));border-radius:50px}.neeto-molecules-sidebar::-webkit-scrollbar-track{background:\"transparent\"}@media (min-width:1440px){.neeto-molecules-sidebar{max-width:320px;width:320px}}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed{max-width:var(--neeto-ui-sidebar-width);width:var(--neeto-ui-sidebar-width)}.neeto-molecules-sidebar__header{margin-bottom:40px;padding:0 20px;width:100%}.neeto-molecules-sidebar__logo,.neeto-molecules-sidebar__logo svg{height:40px;width:40px}.neeto-molecules-sidebar__info{padding-left:10px;width:calc(100% - 40px)}.neeto-molecules-sidebar__info .neeto-molecules-typography{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.neeto-molecules-sidebar__links{margin-bottom:20px;padding-left:12px;padding-right:12px;width:100%}.neeto-molecules-sidebar__link{border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-gray-600));cursor:pointer;margin:8px 0;padding:8px;position:relative;text-decoration:none;transition:all .3s}.neeto-molecules-sidebar__link.mb-0{margin-bottom:0}.neeto-molecules-sidebar__link-icon{flex-shrink:0;width:40px}.neeto-molecules-sidebar__link-label{overflow:hidden;padding-left:10px;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 40px)}.neeto-molecules-sidebar__link-sub-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 56px)}.neeto-molecules-sidebar__link:hover{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800));text-decoration:none}.neeto-molecules-sidebar__link:focus,.neeto-molecules-sidebar__link:focus-visible{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800));outline:none;text-decoration:none}.neeto-molecules-sidebar__link.active{background-color:rgb(var(--neeto-ui-primary-100));color:rgb(var(--neeto-ui-primary-600));text-decoration:none}.neeto-molecules-sidebar__link--button:focus{background-color:transparent}.neeto-molecules-sidebar__link--button:focus-visible{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-sidebar__link--change-log{outline:none!important}.neeto-molecules-sidebar__sublink{border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-gray-600));cursor:pointer;margin:4px 0;padding:8px 8px 8px 58px;text-decoration:none;transition:all .3s}.neeto-molecules-sidebar__sublink:hover{color:rgb(var(--neeto-ui-gray-700));text-decoration:none}.neeto-molecules-sidebar__sublink:focus,.neeto-molecules-sidebar__sublink:focus-visible{background-color:rgb(var(--neeto-ui-gray-300));color:rgb(var(--neeto-ui-gray-700));outline:none;text-decoration:none}.neeto-molecules-sidebar__sublink.active,.neeto-molecules-sidebar__sublink:active{color:rgb(var(--neeto-ui-gray-800));text-decoration:none}.neeto-molecules-sidebar__footer{margin-top:auto;padding:0 12px;width:100%}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-wrapper{outline:none!important}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile{background-color:rgb(var(--neeto-ui-white));border-radius:var(--neeto-ui-rounded);box-shadow:var(--neeto-ui-shadow-sm);cursor:pointer;padding:8px;transition:var(--neeto-ui-transition);width:100%}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-content{padding-left:10px;padding-right:30px;position:relative;width:calc(100% - 40px)}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-content .neeto-molecules-typography{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-drop-icon{color:rgb(var(--neeto-ui-gray-500));position:absolute;right:8px;top:50%;transform:translateY(-50%)}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed{padding:24px 0}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__profile{background-color:transparent;box-shadow:none;padding:0}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__header,.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__links{padding-left:16px;padding-right:16px}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__link-icon{width:24px}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__footer{padding-left:16px;padding-right:16px}.sidebar-featured-tooltip__content{border-radius:8px!important;box-shadow:var(--neeto-ui-shadow-sm)!important}.sidebar-featured-tooltip__content .tippy-content{padding:0}.sidebar-featured-tooltip{padding:12px;width:150px}.sidebar-featured-tooltip__icon-wrap{background-color:rgb(var(--neeto-ui-gray-100));border-radius:8px;height:40px;margin-bottom:8px;margin-left:auto;margin-right:auto;width:40px}.sidebar-featured-tooltip__title{margin-bottom:4px}.neeto-molecules-help-popup-wrapper,.neeto-molecules-profile-popup-wrapper{border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:var(--neeto-ui-rounded)!important;box-shadow:var(--neeto-ui-shadow-xs)!important}.neeto-molecules-help-popup-wrapper .tippy-content,.neeto-molecules-profile-popup-wrapper .tippy-content{padding:0}.neeto-molecules-help-popup-wrapper .tippy-svg-arrow,.neeto-molecules-profile-popup-wrapper .tippy-svg-arrow{display:none!important}.neeto-molecules-profile-sublist{border-top:1px solid rgb(var(--neeto-ui-gray-400));list-style:none;margin:0;padding:4px 0}.neeto-molecules-help-sublist__item,.neeto-molecules-profile-sublist__item{width:100%}.neeto-molecules-profile-sublist__item-btn{align-items:center;border-radius:0;color:rgb(var(--neeto-ui-gray-800));cursor:pointer;display:flex;font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-normal);gap:8px;line-height:1.143;min-height:32px;outline-color:transparent;padding:6px 40px 6px 12px;position:relative;text-decoration:none;transition:var(--neeto-ui-transition);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}.neeto-molecules-profile-sublist__item-btn.disabled{color:rgb(var(--neeto-ui-gray-500));cursor:not-allowed}.neeto-molecules-profile-sublist__item-btn:focus,.neeto-molecules-profile-sublist__item-btn:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-profile-sublist__item-btn.active{background-color:rgb(var(--neeto-ui-gray-800));color:rgb(var(--neeto-ui-white))}.neeto-molecules-profile-sublist__item-btn--style-danger{color:rgb(var(--neeto-ui-error-800))}.neeto-molecules-profile-sublist__item-btn-icon{color:rgb(var(--neeto-ui-gray-600))}.neeto-molecules-profile-sublist__item-btn-icon svg{height:20px;width:20px}.neeto-molecules-help-sublist__item-btn{border-radius:0;color:rgb(var(--neeto-ui-gray-800));cursor:pointer;display:flex;font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-normal);gap:8px;justify-content:flex-end;line-height:1.143;min-height:32px;outline-color:transparent;padding:6px 40px 6px 12px;position:relative;text-decoration:none;transition:var(--neeto-ui-transition);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}.neeto-molecules-help-sublist__item-btn.disabled{color:rgb(var(--neeto-ui-gray-500));cursor:not-allowed}.neeto-molecules-help-sublist__item-btn:focus,.neeto-molecules-help-sublist__item-btn:hover{background-color:rgb(var(--neeto-ui-gray-200));box-shadow:none}.neeto-molecules-help-sublist__item-btn.active{background-color:rgb(var(--neeto-ui-gray-800));color:rgb(var(--neeto-ui-white))}.neeto-molecules-help-sublist__item-btn--style-danger{color:rgb(var(--neeto-ui-error-800))}.neeto-molecules-help-sublist__item-btn-icon{color:rgb(var(--neeto-ui-gray-600))}.neeto-molecules-help-sublist__item-btn-icon svg{height:20px;width:20px}.neeto-molecules-help-sublist__item-btn-count,.neeto-molecules-sidebar__notif-count{align-items:center;background-color:rgb(var(--neeto-ui-primary-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:inline-flex;font-size:10px;justify-content:center;min-height:16px;min-width:16px;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.neeto-molecules-help-sublist__item-btn-count{position:absolute;right:10px;top:50%;transform:translateY(-50%)}.neeto-molecules-sidebar__notif-count{position:absolute;right:-2px;top:-2px}";
31731
+ var css = ":root{--neeto-molecules-sidebar-width:240px;--neeto-molecules-sidebar-z-index:99998}.neeto-molecules-sidebar__wrapper{display:flex;max-width:240px;max-width:var(--neeto-molecules-sidebar-width);position:relative;transition:all .15s;width:240px;width:var(--neeto-molecules-sidebar-width)}.neeto-molecules-sidebar__wrapper--collapsed{max-width:0;width:0}.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{transform:scale(-1)}.neeto-molecules-sidebar__wrapper:hover .neeto-molecules-sidebar__toggler{opacity:1}.neeto-molecules-sidebar{background-color:rgb(var(--neeto-ui-gray-100));border-right:1px solid rgb(var(--neeto-ui-gray-100));height:100vh;padding:24px 0;width:100%;z-index:99998;z-index:var(--neeto-molecules-sidebar-z-index)}.neeto-molecules-sidebar__no-shrinkable{max-width:240px;max-width:var(--neeto-molecules-sidebar-width);width:240px;width:var(--neeto-molecules-sidebar-width)}.neeto-molecules-sidebar::-webkit-scrollbar{height:0;width:0}.neeto-molecules-sidebar::-webkit-scrollbar-thumb{background:rgb(var(--neeto-ui-gray-300));border-radius:50px}.neeto-molecules-sidebar::-webkit-scrollbar-track{background:\"transparent\"}.neeto-molecules-sidebar__toggler-wrapper{bottom:0;left:100%;top:0;width:40px}.neeto-molecules-sidebar__toggler,.neeto-molecules-sidebar__toggler-wrapper{position:absolute;z-index:99996;z-index:calc(var(--neeto-molecules-sidebar-z-index) - 2)}.neeto-molecules-sidebar__toggler{left:4px;opacity:0;top:34px}.neeto-molecules-sidebar__toggler:focus{opacity:1}.neeto-molecules-sidebar__header{margin:14px 0 28px;padding:0 24px}.neeto-molecules-sidebar__logo svg{height:20px;max-width:100%;width:auto}.neeto-molecules-sidebar__links{margin-bottom:40px}.neeto-molecules-sidebar__link{color:rgb(var(--neeto-ui-gray-800));gap:10px;padding:8px 24px;position:relative;text-decoration:none!important;transition:var(--neeto-ui-transition);width:100%}.neeto-molecules-sidebar__link:not(:first-child){margin-top:10px}.neeto-molecules-sidebar__link-icon{flex-shrink:0;transition:var(--neeto-ui-transition)}.neeto-molecules-sidebar__link-icon svg path{vector-effect:non-scaling-stroke}.neeto-molecules-sidebar__link-icon--rotate{transform:scale(-1)}.neeto-molecules-sidebar__link-icon--caret{opacity:0;transition:none}.neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__link-sub-label{flex-grow:1;text-align:left}.neeto-molecules-sidebar__link:hover{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__link:focus,.neeto-molecules-sidebar__link:focus-visible,.neeto-molecules-sidebar__link[aria-expanded=true]{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black));outline:none}.neeto-molecules-sidebar__link.active{background-color:rgb(var(--neeto-ui-white));color:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__link.active .neeto-molecules-sidebar__link-label{font-weight:var(--neeto-ui-font-medium)}.neeto-molecules-sidebar__link.active .neeto-molecules-sidebar__link-icon--caret{opacity:1}.neeto-molecules-sidebar__link--button:focus{background-color:transparent}.neeto-molecules-sidebar__link--button:focus-visible{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-sidebar__link--change-log{outline:none!important}.neeto-molecules-sidebar__sublink-wrapper{background-color:rgb(var(--neeto-ui-white));padding:4px 0}.neeto-molecules-sidebar__sublink{background-color:rgb(var(--neeto-ui-white));color:rgb(var(--neeto-ui-gray-700));cursor:pointer;gap:8px;padding:8px 24px 8px 58px;text-decoration:none;transition:all .3s}.neeto-molecules-sidebar__sublink:not(:last-child){margin-bottom:4px}.neeto-molecules-sidebar__sublink .neeto-molecules-sidebar__link-sub-count{opacity:.75}.neeto-molecules-sidebar__sublink:hover{color:rgb(var(--neeto-ui-gray-800));text-decoration:none}.neeto-molecules-sidebar__sublink:hover .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__sublink:focus,.neeto-molecules-sidebar__sublink:focus-visible{color:rgb(var(--neeto-ui-gray-800));outline:none;text-decoration:none}.neeto-molecules-sidebar__sublink:focus .neeto-molecules-sidebar__link-sub-count,.neeto-molecules-sidebar__sublink:focus-visible .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__sublink.active,.neeto-molecules-sidebar__sublink:active{color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-medium);text-decoration:none}.neeto-molecules-sidebar__sublink.active .neeto-molecules-sidebar__link-sub-count,.neeto-molecules-sidebar__sublink:active .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__footer{margin-top:auto}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-name{flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile:hover{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black));text-decoration:none}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile:focus,.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile:focus-visible,.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile[aria-expanded=true]{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black));outline:none;text-decoration:none}.sidebar-featured-tooltip__content{border-radius:8px!important;box-shadow:var(--neeto-ui-shadow-sm)!important}.sidebar-featured-tooltip__content .tippy-content{padding:0}.sidebar-featured-tooltip{padding:12px;width:150px}.sidebar-featured-tooltip__icon-wrap{background-color:rgb(var(--neeto-ui-gray-100));border-radius:8px;height:40px;margin-bottom:8px;margin-left:auto;margin-right:auto;width:40px}.sidebar-featured-tooltip__title{margin-bottom:4px}.neeto-molecules-help-popup-wrapper,.neeto-molecules-profile-popup-wrapper{border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:var(--neeto-ui-rounded)!important;box-shadow:var(--neeto-ui-shadow-xs)!important}.neeto-molecules-help-popup-wrapper .tippy-content,.neeto-molecules-profile-popup-wrapper .tippy-content{padding:0}.neeto-molecules-help-popup-wrapper .tippy-svg-arrow,.neeto-molecules-profile-popup-wrapper .tippy-svg-arrow{display:none!important}.neeto-molecules-profile-sublist{border-top:1px solid rgb(var(--neeto-ui-gray-400))}.neeto-molecules-help-sublist,.neeto-molecules-profile-sublist{list-style:none;margin:0;padding:4px 0}.neeto-molecules-help-sublist__item,.neeto-molecules-profile-sublist__item{width:100%}.neeto-molecules-help-sublist__item-btn,.neeto-molecules-profile-sublist__item-btn{border-radius:0;justify-content:flex-end!important}.neeto-molecules-help-sublist__item-btn.active,.neeto-molecules-profile-sublist__item-btn.active{background-color:rgb(var(--neeto-ui-gray-800));color:rgb(var(--neeto-ui-white))}.neeto-molecules-help-sublist__item-btn-icon svg path,.neeto-molecules-profile-sublist__item-btn-icon svg path{vector-effect:non-scaling-stroke}";
31756
31732
  n(css,{});
31757
31733
 
31758
31734
  var AppSwitcherButton = function AppSwitcherButton(_ref) {
@@ -31768,9 +31744,7 @@ var AppSwitcherButton = function AppSwitcherButton(_ref) {
31768
31744
  var handleAppSwitcherToggle = function handleAppSwitcherToggle(event) {
31769
31745
  if (isFreshLoading) event.stopPropagation();else onAppSwitcherToggle();
31770
31746
  };
31771
- return /*#__PURE__*/React.createElement(NavIconWrapper, {
31772
- label: t("neetoMolecules.sidebar.productSwitcher")
31773
- }, /*#__PURE__*/React.createElement("button", {
31747
+ return /*#__PURE__*/React.createElement("button", {
31774
31748
  className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--app-switcher neeto-molecules-sidebar__link--button neeto-ui-flex neeto-ui-w-full neeto-ui-select-none neeto-ui-items-center neeto-ui-justify-start neeto-ui-shadow-none",
31775
31749
  "data-cy": "app-switcher-button",
31776
31750
  onClick: handleAppSwitcherToggle,
@@ -31781,7 +31755,12 @@ var AppSwitcherButton = function AppSwitcherButton(_ref) {
31781
31755
  className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center h-6 w-6"
31782
31756
  }, hasHovered && isFreshLoading ? /*#__PURE__*/React.createElement(Spinner, null) : /*#__PURE__*/React.createElement(AppSwitcher$1, {
31783
31757
  size: 24
31784
- }))));
31758
+ })), /*#__PURE__*/React.createElement(Typography, {
31759
+ className: "neeto-molecules-sidebar__link-label",
31760
+ component: "span",
31761
+ style: "body2",
31762
+ weight: "normal"
31763
+ }, t("neetoMolecules.sidebar.productSwitcher")));
31785
31764
  };
31786
31765
 
31787
31766
  var MY_PROFILE_URL = "/auth/profile/edit";
@@ -31799,7 +31778,7 @@ var DEFAULT_HELP_LINK_PROPS = {
31799
31778
  }
31800
31779
  },
31801
31780
  helpCenterProps: {
31802
- label: t$1("neetoMolecules.sidebar.helpLinks.helpCenter"),
31781
+ label: t$1("neetoMolecules.sidebar.helpLinks.helpArticles"),
31803
31782
  icon: Book,
31804
31783
  "data-cy": "help-link-help-center-button",
31805
31784
  href: "https://help.".concat(toLower(globalProps.appName), ".com/"),
@@ -31860,21 +31839,26 @@ var ProfileSection = function ProfileSection(_ref, ref) {
31860
31839
  var _useFetchNeetoApps = useFetchNeetoApps(),
31861
31840
  isFreshLoading = _useFetchNeetoApps.isFreshLoading;
31862
31841
  return /*#__PURE__*/React.createElement("button", {
31863
- className: "neeto-molecules-sidebar__profile-wrapper neeto-ui-w-full neeto-ui-text-left",
31842
+ className: "neeto-molecules-sidebar__profile-wrapper neeto-ui-w-full neeto-ui-text-lef",
31864
31843
  "data-cy": "profile-section",
31865
31844
  ref: ref,
31866
31845
  onMouseEnter: function onMouseEnter() {
31867
31846
  return setHasHovered(true);
31868
31847
  }
31869
31848
  }, /*#__PURE__*/React.createElement("span", {
31870
- className: "neeto-molecules-sidebar__profile neeto-ui-flex neeto-ui-w-full neeto-ui-flex-shrink-0 neeto-ui-items-center"
31849
+ className: "neeto-molecules-sidebar__profile neeto-ui-flex neeto-ui-w-full neeto-ui-flex-shrink-0 neeto-ui-items-center neeto-molecules-sidebar__link"
31871
31850
  }, isFreshLoading && hasHovered ? /*#__PURE__*/React.createElement("span", {
31872
31851
  className: "flex h-11 w-10 items-center justify-center"
31873
- }, /*#__PURE__*/React.createElement(Spinner, null)) : /*#__PURE__*/React.createElement(Avatar, {
31874
- className: "neeto-ui-flex-shrink-0",
31875
- size: "large",
31852
+ }, /*#__PURE__*/React.createElement(Spinner, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Avatar, {
31853
+ className: "neeto-ui-flex-shrink-0 neeto-molecules-sidebar__profile-avatar",
31854
+ size: "small",
31876
31855
  user: profileInfo
31877
- })));
31856
+ }), /*#__PURE__*/React.createElement(Typography, {
31857
+ className: "neeto-molecules-sidebar__link-label",
31858
+ component: "span",
31859
+ style: "body2",
31860
+ weight: "normal"
31861
+ }, truncate(profileInfo.name, 18)))));
31878
31862
  };
31879
31863
  var ProfileSection$1 = /*#__PURE__*/forwardRef(ProfileSection);
31880
31864
 
@@ -31894,7 +31878,50 @@ function _toConsumableArray(arr) {
31894
31878
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
31895
31879
  }
31896
31880
 
31881
+ function _typeof(obj) {
31882
+ "@babel/helpers - typeof";
31883
+
31884
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
31885
+ return typeof obj;
31886
+ } : function (obj) {
31887
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
31888
+ }, _typeof(obj);
31889
+ }
31890
+
31891
+ function _toPrimitive(input, hint) {
31892
+ if (_typeof(input) !== "object" || input === null) return input;
31893
+ var prim = input[Symbol.toPrimitive];
31894
+ if (prim !== undefined) {
31895
+ var res = prim.call(input, hint || "default");
31896
+ if (_typeof(res) !== "object") return res;
31897
+ throw new TypeError("@@toPrimitive must return a primitive value.");
31898
+ }
31899
+ return (hint === "string" ? String : Number)(input);
31900
+ }
31901
+
31902
+ function _toPropertyKey(arg) {
31903
+ var key = _toPrimitive(arg, "string");
31904
+ return _typeof(key) === "symbol" ? key : String(key);
31905
+ }
31906
+
31907
+ function _defineProperty(obj, key, value) {
31908
+ key = _toPropertyKey(key);
31909
+ if (key in obj) {
31910
+ Object.defineProperty(obj, key, {
31911
+ value: value,
31912
+ enumerable: true,
31913
+ configurable: true,
31914
+ writable: true
31915
+ });
31916
+ } else {
31917
+ obj[key] = value;
31918
+ }
31919
+ return obj;
31920
+ }
31921
+
31897
31922
  var _excluded$2 = ["onClick", "label", "icon"];
31923
+ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
31924
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31898
31925
  var LinkSection = function LinkSection(_ref) {
31899
31926
  var links = _ref.links;
31900
31927
  return /*#__PURE__*/React.createElement("ul", {
@@ -31905,22 +31932,20 @@ var LinkSection = function LinkSection(_ref) {
31905
31932
  _ref2$icon = _ref2.icon,
31906
31933
  icon = _ref2$icon === void 0 ? null : _ref2$icon,
31907
31934
  otherProps = _objectWithoutProperties(_ref2, _excluded$2);
31908
- var IconSVG = icon;
31909
31935
  return /*#__PURE__*/React.createElement("li", {
31910
31936
  className: "neeto-molecules-profile-sublist__item",
31911
31937
  key: idx
31912
- }, /*#__PURE__*/React.createElement("button", _extends({
31938
+ }, /*#__PURE__*/React.createElement(Button, _extends({
31939
+ fullWidth: true,
31940
+ className: "neeto-molecules-profile-sublist__item-btn",
31941
+ iconPosition: "left",
31942
+ iconSize: 18,
31943
+ style: "text"
31944
+ }, _objectSpread$2({
31945
+ icon: icon,
31946
+ label: label,
31913
31947
  onClick: onClick
31914
- }, otherProps, {
31915
- className: "neeto-molecules-profile-sublist__item-btn"
31916
- }), icon && /*#__PURE__*/React.createElement("span", {
31917
- className: "neeto-molecules-profile-sublist__item-btn-icon"
31918
- }, /*#__PURE__*/React.createElement(IconSVG, null)), /*#__PURE__*/React.createElement(Typography, {
31919
- className: "neeto-molecules-profile-sublist__item-btn-label",
31920
- component: "span",
31921
- style: "body2",
31922
- weight: "normal"
31923
- }, label)));
31948
+ }, otherProps))));
31924
31949
  }));
31925
31950
  };
31926
31951
 
@@ -31988,63 +32013,27 @@ var ProfileButton = function ProfileButton(_ref) {
31988
32013
  };
31989
32014
 
31990
32015
  var HelpSection = function HelpSection(_ref, ref) {
31991
- var changesCount = _ref.changesCount;
32016
+ _ref.changesCount;
32017
+ var _useTranslation = useTranslation(),
32018
+ t = _useTranslation.t;
32019
+ var showChangesCount = false;
31992
32020
  return /*#__PURE__*/React.createElement("button", {
31993
- className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none",
32021
+ className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none",
31994
32022
  "data-cy": "help-button",
31995
32023
  ref: ref
31996
32024
  }, /*#__PURE__*/React.createElement("span", {
31997
32025
  className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
31998
32026
  }, /*#__PURE__*/React.createElement(Help, {
31999
32027
  size: 24
32000
- }), isPresent(changesCount) && /*#__PURE__*/React.createElement("span", {
32001
- className: "neeto-molecules-sidebar__notif-count",
32002
- "data-testid": "help-icon-changes-count"
32003
- }, changesCount)));
32028
+ }), showChangesCount ), /*#__PURE__*/React.createElement(Typography, {
32029
+ className: "neeto-molecules-sidebar__link-label",
32030
+ component: "span",
32031
+ style: "body2",
32032
+ weight: "normal"
32033
+ }, t("neetoMolecules.sidebar.helpLinks.helpCenter")));
32004
32034
  };
32005
32035
  var HelpSection$1 = /*#__PURE__*/forwardRef(HelpSection);
32006
32036
 
32007
- function _typeof(obj) {
32008
- "@babel/helpers - typeof";
32009
-
32010
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
32011
- return typeof obj;
32012
- } : function (obj) {
32013
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
32014
- }, _typeof(obj);
32015
- }
32016
-
32017
- function _toPrimitive(input, hint) {
32018
- if (_typeof(input) !== "object" || input === null) return input;
32019
- var prim = input[Symbol.toPrimitive];
32020
- if (prim !== undefined) {
32021
- var res = prim.call(input, hint || "default");
32022
- if (_typeof(res) !== "object") return res;
32023
- throw new TypeError("@@toPrimitive must return a primitive value.");
32024
- }
32025
- return (hint === "string" ? String : Number)(input);
32026
- }
32027
-
32028
- function _toPropertyKey(arg) {
32029
- var key = _toPrimitive(arg, "string");
32030
- return _typeof(key) === "symbol" ? key : String(key);
32031
- }
32032
-
32033
- function _defineProperty(obj, key, value) {
32034
- key = _toPropertyKey(key);
32035
- if (key in obj) {
32036
- Object.defineProperty(obj, key, {
32037
- value: value,
32038
- enumerable: true,
32039
- configurable: true,
32040
- writable: true
32041
- });
32042
- } else {
32043
- obj[key] = value;
32044
- }
32045
- return obj;
32046
- }
32047
-
32048
32037
  var _excluded$1 = ["label"];
32049
32038
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32050
32039
  function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -32054,6 +32043,7 @@ var HelpSectionMenu = function HelpSectionMenu(_ref) {
32054
32043
  var _KeyboardShortcuts$us = KeyboardShortcuts.usePaneState(),
32055
32044
  _KeyboardShortcuts$us2 = _slicedToArray(_KeyboardShortcuts$us, 2),
32056
32045
  setIsOpen = _KeyboardShortcuts$us2[1];
32046
+ var showChangesCount = false;
32057
32047
  var helpLinks = Object.keys(DEFAULT_HELP_LINK_PROPS).map(function (key) {
32058
32048
  return _objectSpread$1(_objectSpread$1(_objectSpread$1(_objectSpread$1({}, DEFAULT_HELP_LINK_PROPS[key]), helpLinkOverrides[key]), key === "keyboardShortcutProps" && {
32059
32049
  onClick: function onClick() {
@@ -32066,21 +32056,21 @@ var HelpSectionMenu = function HelpSectionMenu(_ref) {
32066
32056
  var hide = _ref2.hide;
32067
32057
  return !hide;
32068
32058
  });
32069
- return /*#__PURE__*/React.createElement("ul", null, helpLinks.map(function (_ref3, idx) {
32059
+ return /*#__PURE__*/React.createElement("ul", {
32060
+ className: "neeto-molecules-help-sublist"
32061
+ }, helpLinks.map(function (_ref3, idx) {
32070
32062
  var label = _ref3.label,
32071
32063
  buttonProps = _objectWithoutProperties(_ref3, _excluded$1);
32072
32064
  return /*#__PURE__*/React.createElement("li", {
32073
32065
  className: "neeto-molecules-help-sublist__item",
32074
32066
  key: idx
32075
32067
  }, /*#__PURE__*/React.createElement(Button, _extends({
32068
+ fullWidth: true,
32076
32069
  className: "neeto-molecules-help-sublist__item-btn",
32077
32070
  iconPosition: "left",
32078
32071
  iconSize: 18,
32079
32072
  style: "text"
32080
- }, buttonProps), label, isPresent(buttonProps.changesCount) && /*#__PURE__*/React.createElement("span", {
32081
- className: "neeto-molecules-help-sublist__item-btn-count",
32082
- "data-testid": "help-section-menu-changes-count"
32083
- }, buttonProps.changesCount)));
32073
+ }, buttonProps), label, showChangesCount ));
32084
32074
  }));
32085
32075
  };
32086
32076
 
@@ -32109,7 +32099,7 @@ var Footer = function Footer(_ref) {
32109
32099
  window.Nv = window.Nv ? Object.assign(window.Nv, Nv) : Nv;
32110
32100
  }, []);
32111
32101
  return /*#__PURE__*/React.createElement("div", {
32112
- className: "neeto-molecules-sidebar__footer"
32102
+ className: "neeto-molecules-sidebar__footer neeto-molecules-sidebar__no-shrinkable"
32113
32103
  }, /*#__PURE__*/React.createElement(Tooltip, {
32114
32104
  interactive: true,
32115
32105
  className: "neeto-molecules-help-popup-wrapper",
@@ -32118,6 +32108,8 @@ var Footer = function Footer(_ref) {
32118
32108
  helpLinkOverrides: helpLinkOverrides
32119
32109
  }),
32120
32110
  hideOnClick: false,
32111
+ interactiveDebounce: 30,
32112
+ offset: 0,
32121
32113
  position: "right",
32122
32114
  theme: "light"
32123
32115
  }, /*#__PURE__*/React.createElement(HelpSection$1, {
@@ -32131,10 +32123,10 @@ var Footer = function Footer(_ref) {
32131
32123
  };
32132
32124
 
32133
32125
  var Header = function Header() {
32134
- var _ProductLogos$logoNam;
32126
+ var _ProductTypefaceLogos;
32135
32127
  var productName = globalProps.appName.substr(5);
32136
32128
  var logoName = "Neeto".concat(capitalize(productName.toLowerCase()));
32137
- var ProductLogo = (_ProductLogos$logoNam = ProductLogos[logoName]) !== null && _ProductLogos$logoNam !== void 0 ? _ProductLogos$logoNam : Neeto;
32129
+ var ProductTypefaceLogo = (_ProductTypefaceLogos = ProductTypefaceLogos[logoName]) !== null && _ProductTypefaceLogos !== void 0 ? _ProductTypefaceLogos : Neeto;
32138
32130
  var _useFetchNeetoApps = useFetchNeetoApps(),
32139
32131
  data = _useFetchNeetoApps.data;
32140
32132
  var homePath = "/";
@@ -32147,22 +32139,39 @@ var Header = function Header() {
32147
32139
  }
32148
32140
  }
32149
32141
  return /*#__PURE__*/React.createElement("div", {
32150
- className: "neeto-ui-flex neeto-ui-items-center neeto-molecules-sidebar__header",
32142
+ className: "neeto-molecules-sidebar__header neeto-molecules-sidebar__no-shrinkable",
32151
32143
  "data-cy": "sidebar-info"
32152
- }, /*#__PURE__*/React.createElement("div", {
32153
- className: "neeto-molecules-sidebar__logo flex flex-shrink-0 items-center justify-center"
32154
32144
  }, /*#__PURE__*/React.createElement(Link, {
32145
+ className: "neeto-molecules-sidebar__logo neeto-ui-w-full",
32155
32146
  to: homePath
32156
- }, /*#__PURE__*/React.createElement(ProductLogo, null))));
32147
+ }, /*#__PURE__*/React.createElement(ProductTypefaceLogo, null)));
32157
32148
  };
32158
32149
  var Header$1 = /*#__PURE__*/React.memo(Header);
32159
32150
 
32160
- var _excluded = ["label", "to", "icon", "description"];
32151
+ var isSubRouteActive = function isSubRouteActive(subRoute, location) {
32152
+ var currentBrowserUrl = new URL(location.pathname + location.search, window.location.origin);
32153
+ var targetUrl = new URL(subRoute, window.location.origin);
32154
+ if (!currentBrowserUrl.pathname.startsWith(targetUrl.pathname)) {
32155
+ return false;
32156
+ }
32157
+ var targetSearchParams = targetUrl.searchParams;
32158
+ var targetSearchKeys = Array.from(targetSearchParams.keys());
32159
+ return all(function (key) {
32160
+ return currentBrowserUrl.searchParams.get(key) === targetSearchParams.get(key);
32161
+ }, targetSearchKeys);
32162
+ };
32163
+
32164
+ var _excluded = ["label", "to", "icon", "items"],
32165
+ _excluded2 = ["label", "to", "count"];
32161
32166
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32162
32167
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32163
32168
  var Links = function Links(_ref) {
32164
32169
  var navLinks = _ref.navLinks;
32165
32170
  var location = useLocation();
32171
+ var _useState = useState(true),
32172
+ _useState2 = _slicedToArray(_useState, 2),
32173
+ isActiveLinkExpanded = _useState2[0],
32174
+ setIsActiveLinkExpanded = _useState2[1];
32166
32175
  var filterByPermissions = curry(function (_ref2) {
32167
32176
  var permissions = _ref2.permissions;
32168
32177
  if (permissions) {
@@ -32170,33 +32179,79 @@ var Links = function Links(_ref) {
32170
32179
  }
32171
32180
  return true;
32172
32181
  });
32182
+ var handleNavLinkClick = function handleNavLinkClick(event, isActive, items) {
32183
+ if (isNotPresent(items)) return;
32184
+ if (isActive()) {
32185
+ setIsActiveLinkExpanded(not);
32186
+ event.preventDefault();
32187
+ return;
32188
+ }
32189
+ setIsActiveLinkExpanded(true);
32190
+ };
32173
32191
  return /*#__PURE__*/React.createElement("div", {
32174
- className: "neeto-molecules-sidebar__links"
32192
+ className: "neeto-molecules-sidebar__links neeto-molecules-sidebar__no-shrinkable"
32175
32193
  }, navLinks.filter(filterByPermissions).map(function (_ref3, mainIndex) {
32176
32194
  var label = _ref3.label,
32177
32195
  to = _ref3.to,
32178
32196
  icon = _ref3.icon,
32179
- description = _ref3.description,
32197
+ items = _ref3.items,
32180
32198
  otherProps = _objectWithoutProperties(_ref3, _excluded);
32181
32199
  var IconSVG = icon;
32182
32200
  var url = new URL(to, window.location.href);
32183
32201
  var isActive = function isActive() {
32184
- return location.pathname.startsWith(url.pathname);
32202
+ return is(Function, otherProps.isActive) ? otherProps.isActive() : location.pathname.startsWith(url.pathname);
32185
32203
  };
32186
- return /*#__PURE__*/React.createElement(NavIconWrapper, {
32187
- description: description,
32188
- label: label,
32204
+ var isMenuExpanded = isActive() && isActiveLinkExpanded;
32205
+ return /*#__PURE__*/React.createElement(React.Fragment, {
32189
32206
  key: mainIndex
32190
32207
  }, /*#__PURE__*/React.createElement(NavLink, _extends({
32191
32208
  activeClassName: "active",
32192
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-molecules-sidebar__link"
32209
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-molecules-sidebar__link",
32210
+ onClick: function onClick(event) {
32211
+ return handleNavLinkClick(event, isActive, items);
32212
+ }
32193
32213
  }, _objectSpread({
32194
32214
  isActive: isActive,
32195
32215
  to: to
32196
- }, otherProps)), icon && /*#__PURE__*/React.createElement("div", {
32197
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-molecules-sidebar__link-icon",
32216
+ }, otherProps)), icon && /*#__PURE__*/React.createElement("span", {
32217
+ className: "neeto-molecules-sidebar__link-icon",
32198
32218
  "data-testid": label
32199
- }, /*#__PURE__*/React.createElement(IconSVG, null))));
32219
+ }, /*#__PURE__*/React.createElement(IconSVG, null)), /*#__PURE__*/React.createElement(Typography, {
32220
+ className: "neeto-molecules-sidebar__link-label",
32221
+ component: "span",
32222
+ style: "body2",
32223
+ weight: "normal"
32224
+ }, label), items && /*#__PURE__*/React.createElement("span", {
32225
+ className: classnames("neeto-molecules-sidebar__link-icon neeto-molecules-sidebar__link-icon--caret", {
32226
+ "neeto-molecules-sidebar__link-icon--rotate": isMenuExpanded
32227
+ })
32228
+ }, /*#__PURE__*/React.createElement(Down, {
32229
+ size: 16
32230
+ }))), items && isMenuExpanded && /*#__PURE__*/React.createElement("div", {
32231
+ className: "neeto-molecules-sidebar__sublink-wrapper"
32232
+ }, items.filter(filterByPermissions).map(function (_ref4, subIndex) {
32233
+ var subLabel = _ref4.label,
32234
+ subRoute = _ref4.to,
32235
+ count = _ref4.count,
32236
+ otherProps = _objectWithoutProperties(_ref4, _excluded2);
32237
+ return /*#__PURE__*/React.createElement(NavLink, _extends({
32238
+ activeClassName: "active",
32239
+ className: "neeto-molecules-sidebar__sublink neeto-ui-flex neeto-ui-items-center neeto-ui-select-none",
32240
+ isActive: function isActive() {
32241
+ return isSubRouteActive(subRoute, location);
32242
+ },
32243
+ key: subIndex,
32244
+ to: subRoute
32245
+ }, otherProps), /*#__PURE__*/React.createElement(Typography, {
32246
+ className: "neeto-molecules-sidebar__link-sub-label neeto-ui-flex-grow",
32247
+ component: "span",
32248
+ style: "body2"
32249
+ }, subLabel), /*#__PURE__*/React.createElement(Typography, {
32250
+ className: "neeto-molecules-sidebar__link-sub-count neeto-ui-flex-shrink-0",
32251
+ component: "span",
32252
+ style: "body2"
32253
+ }, count > 999 ? "999+" : count));
32254
+ })));
32200
32255
  }));
32201
32256
  };
32202
32257
 
@@ -32214,15 +32269,25 @@ var Sidebar = function Sidebar(_ref) {
32214
32269
  _useState2 = _slicedToArray(_useState, 2),
32215
32270
  isAppSwitcherOpen = _useState2[0],
32216
32271
  setIsAppSwitcherOpen = _useState2[1];
32272
+ var _useState3 = useState(false),
32273
+ _useState4 = _slicedToArray(_useState3, 2),
32274
+ isSidebarCollapsed = _useState4[0],
32275
+ setIsSidebarCollapsed = _useState4[1];
32217
32276
  var location = useLocation();
32277
+ var _useTranslation = useTranslation(),
32278
+ t = _useTranslation.t;
32218
32279
  useEffect(function () {
32219
32280
  isAppSwitcherOpen && setIsAppSwitcherOpen(false);
32220
32281
  // eslint-disable-next-line react-hooks/exhaustive-deps
32221
32282
  }, [location]);
32222
32283
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
32284
+ className: classnames("neeto-molecules-sidebar__wrapper", {
32285
+ "neeto-molecules-sidebar__wrapper--collapsed": isSidebarCollapsed
32286
+ })
32287
+ }, /*#__PURE__*/React.createElement("div", {
32288
+ className: "neeto-molecules-sidebar neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-shrink-0 neeto-ui-overflow-y-auto neeto-ui-overflow-x-hidden",
32223
32289
  "data-cy": "sidebar-wrapper",
32224
- "data-testid": "sidebar",
32225
- className: classnames("neeto-molecules-sidebar neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-shrink-0 neeto-ui-overflow-y-auto neeto-ui-overflow-x-hidden", "neeto-molecules-sidebar--collapsed")
32290
+ "data-testid": "sidebar"
32226
32291
  }, /*#__PURE__*/React.createElement(Header$1, null), /*#__PURE__*/React.createElement(Links, {
32227
32292
  navLinks: navLinks
32228
32293
  }), /*#__PURE__*/React.createElement(Footer, {
@@ -32233,7 +32298,20 @@ var Sidebar = function Sidebar(_ref) {
32233
32298
  onAppSwitcherToggle: function onAppSwitcherToggle() {
32234
32299
  return setIsAppSwitcherOpen(not);
32235
32300
  }
32236
- })), showAppSwitcher && /*#__PURE__*/React.createElement(AppSwitcher, {
32301
+ })), /*#__PURE__*/React.createElement("div", {
32302
+ className: "neeto-molecules-sidebar__toggler-wrapper"
32303
+ }, /*#__PURE__*/React.createElement(Button, {
32304
+ className: "neeto-molecules-sidebar__toggler",
32305
+ icon: Chevron,
32306
+ style: "text",
32307
+ tooltipProps: {
32308
+ content: isSidebarCollapsed ? t("neetoMolecules.sidebar.showMenu") : t("neetoMolecules.sidebar.hideMenu"),
32309
+ position: "bottom"
32310
+ },
32311
+ onClick: function onClick() {
32312
+ return setIsSidebarCollapsed(!isSidebarCollapsed);
32313
+ }
32314
+ }))), showAppSwitcher && /*#__PURE__*/React.createElement(AppSwitcher, {
32237
32315
  isOpen: isAppSwitcherOpen,
32238
32316
  onClose: function onClose() {
32239
32317
  return setIsAppSwitcherOpen(false);