@bigbinary/neeto-molecules 1.0.65-beta → 1.0.65
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/Container.cjs.js +1 -1
- package/dist/Container.js +1 -1
- package/dist/CustomDomainDashboard.cjs.js +16 -7
- package/dist/CustomDomainDashboard.cjs.js.map +1 -1
- package/dist/CustomDomainDashboard.js +17 -8
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/Header.cjs.js +15 -6
- package/dist/Header.cjs.js.map +1 -1
- package/dist/Header.js +17 -8
- package/dist/Header.js.map +1 -1
- package/dist/MenuBar.cjs.js +1 -1
- package/dist/MenuBar.js +1 -1
- package/dist/Sidebar.cjs.js +93 -119
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +96 -122
- package/dist/Sidebar.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +1 -4
- package/types/Sidebar.d.ts +1 -1
package/dist/Sidebar.cjs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var ramda = require('ramda');
|
|
5
|
+
var reactRouterDom = require('react-router-dom');
|
|
4
6
|
var neetoIcons = require('@bigbinary/neeto-icons');
|
|
5
7
|
var neetoui = require('@bigbinary/neetoui');
|
|
6
|
-
var ramda = require('ramda');
|
|
7
8
|
var reactI18next = require('react-i18next');
|
|
8
|
-
var reactRouterDom = require('react-router-dom');
|
|
9
9
|
var pure = require('@bigbinary/neeto-commons-frontend/pure');
|
|
10
10
|
var AppIcons = require('@bigbinary/neeto-icons/app-icons');
|
|
11
11
|
var i18next = require('i18next');
|
|
12
12
|
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
13
13
|
var KeyboardShortcuts = require('@bigbinary/neeto-molecules/KeyboardShortcuts');
|
|
14
|
-
var ProductLogos = require('@bigbinary/neeto-icons/
|
|
14
|
+
var ProductLogos = require('@bigbinary/neeto-icons/logos');
|
|
15
15
|
var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
|
|
16
16
|
|
|
17
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -31511,7 +31511,7 @@ SwitchTransition.defaultProps = {
|
|
|
31511
31511
|
|
|
31512
31512
|
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}}
|
|
31513
31513
|
|
|
31514
|
-
var css$1 = ".neeto-molecules-app-switcher__backdrop{align-items:center;background-color:rgba(27,31,35,.867);flex-direction:row;left:
|
|
31514
|
+
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}";
|
|
31515
31515
|
n(css$1,{});
|
|
31516
31516
|
|
|
31517
31517
|
function _extends() {
|
|
@@ -31740,14 +31740,51 @@ var AppSwitcher = function AppSwitcher(_ref) {
|
|
|
31740
31740
|
})))));
|
|
31741
31741
|
};
|
|
31742
31742
|
|
|
31743
|
-
var css = "
|
|
31743
|
+
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}";
|
|
31744
31744
|
n(css,{});
|
|
31745
31745
|
|
|
31746
|
+
var FeaturedTooltip = function FeaturedTooltip(_ref) {
|
|
31747
|
+
var label = _ref.label,
|
|
31748
|
+
description = _ref.description;
|
|
31749
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31750
|
+
className: "neeto-ui-flex neeto-ui-flex-col sidebar-featured-tooltip"
|
|
31751
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
31752
|
+
className: "neeto-ui-text-center sidebar-featured-tooltip__title",
|
|
31753
|
+
lineHeight: "tight",
|
|
31754
|
+
style: "h5",
|
|
31755
|
+
weight: "semibold"
|
|
31756
|
+
}, label), description && /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
31757
|
+
className: "neeto-ui-text-center neeto-ui-text-gray-400 sidebar-featured-tooltip__description",
|
|
31758
|
+
lineHeight: "normal",
|
|
31759
|
+
style: "body3"
|
|
31760
|
+
}, description));
|
|
31761
|
+
};
|
|
31762
|
+
var FeaturedTooltip$1 = /*#__PURE__*/React__default["default"].memo(FeaturedTooltip);
|
|
31763
|
+
|
|
31764
|
+
var NavIconWrapper = function NavIconWrapper(_ref) {
|
|
31765
|
+
var description = _ref.description,
|
|
31766
|
+
label = _ref.label,
|
|
31767
|
+
children = _ref.children;
|
|
31768
|
+
return /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
|
|
31769
|
+
className: "sidebar-featured-tooltip__content",
|
|
31770
|
+
content: /*#__PURE__*/React__default["default"].createElement(FeaturedTooltip$1, {
|
|
31771
|
+
description: description,
|
|
31772
|
+
label: label
|
|
31773
|
+
}),
|
|
31774
|
+
delay: [400, 40],
|
|
31775
|
+
distance: "20rem",
|
|
31776
|
+
duration: [200, 200],
|
|
31777
|
+
position: "right"
|
|
31778
|
+
}, children);
|
|
31779
|
+
};
|
|
31780
|
+
|
|
31746
31781
|
var AppSwitcherButton = function AppSwitcherButton(_ref) {
|
|
31747
31782
|
var onAppSwitcherToggle = _ref.onAppSwitcherToggle;
|
|
31748
31783
|
var _useTranslation = reactI18next.useTranslation(),
|
|
31749
31784
|
t = _useTranslation.t;
|
|
31750
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
31785
|
+
return /*#__PURE__*/React__default["default"].createElement(NavIconWrapper, {
|
|
31786
|
+
label: t("neetoMolecules.sidebar.productSwitcher")
|
|
31787
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
31751
31788
|
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",
|
|
31752
31789
|
"data-cy": "app-switcher-button",
|
|
31753
31790
|
onClick: onAppSwitcherToggle
|
|
@@ -31755,12 +31792,7 @@ var AppSwitcherButton = function AppSwitcherButton(_ref) {
|
|
|
31755
31792
|
className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
|
|
31756
31793
|
}, /*#__PURE__*/React__default["default"].createElement(neetoIcons.AppSwitcher, {
|
|
31757
31794
|
size: 24
|
|
31758
|
-
}))
|
|
31759
|
-
className: "neeto-molecules-sidebar__link-label",
|
|
31760
|
-
component: "span",
|
|
31761
|
-
style: "body2",
|
|
31762
|
-
weight: "normal"
|
|
31763
|
-
}, t("neetoMolecules.sidebar.productSwitcher")));
|
|
31795
|
+
}))));
|
|
31764
31796
|
};
|
|
31765
31797
|
|
|
31766
31798
|
var MY_PROFILE_URL = "/auth/profile/edit";
|
|
@@ -31831,26 +31863,24 @@ var getProfileInfo = function getProfileInfo(profileInfoOverrides) {
|
|
|
31831
31863
|
};
|
|
31832
31864
|
|
|
31833
31865
|
var HelpSection = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
31834
|
-
_ref.changesCount;
|
|
31835
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
31836
|
-
t = _useTranslation.t;
|
|
31837
|
-
var showChangesCount = false;
|
|
31866
|
+
var changesCount = _ref.changesCount;
|
|
31838
31867
|
return /*#__PURE__*/React__default["default"].createElement("button", {
|
|
31839
|
-
className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none
|
|
31868
|
+
className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none",
|
|
31840
31869
|
"data-cy": "help-button",
|
|
31841
31870
|
ref: ref
|
|
31842
31871
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
31843
31872
|
className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
|
|
31844
31873
|
}, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Help, {
|
|
31845
31874
|
size: 24
|
|
31846
|
-
}),
|
|
31847
|
-
className: "neeto-molecules-
|
|
31848
|
-
|
|
31849
|
-
|
|
31850
|
-
weight: "normal"
|
|
31851
|
-
}, t("neetoMolecules.sidebar.helpLinks.helpCenter")));
|
|
31875
|
+
}), pure.isPresent(changesCount) && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
31876
|
+
className: "neeto-molecules-sidebar__notif-count",
|
|
31877
|
+
"data-testid": "help-icon-changes-count"
|
|
31878
|
+
}, changesCount)));
|
|
31852
31879
|
});
|
|
31853
31880
|
HelpSection.displayName = "HelpSection";
|
|
31881
|
+
HelpSection.propTypes = {
|
|
31882
|
+
changesCount: propTypes.exports.number
|
|
31883
|
+
};
|
|
31854
31884
|
|
|
31855
31885
|
function _typeof(obj) {
|
|
31856
31886
|
"@babel/helpers - typeof";
|
|
@@ -31901,7 +31931,6 @@ var HelpSectionMenu = function HelpSectionMenu(_ref) {
|
|
|
31901
31931
|
var _KeyboardShortcuts$us = KeyboardShortcuts__default["default"].usePaneState(),
|
|
31902
31932
|
_KeyboardShortcuts$us2 = _slicedToArray(_KeyboardShortcuts$us, 2),
|
|
31903
31933
|
setIsOpen = _KeyboardShortcuts$us2[1];
|
|
31904
|
-
var showChangesCount = false;
|
|
31905
31934
|
var helpLinks = Object.keys(DEFAULT_HELP_LINK_PROPS).map(function (key) {
|
|
31906
31935
|
return _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_HELP_LINK_PROPS[key]), helpLinkOverrides[key]), key === "keyboardShortcutProps" && {
|
|
31907
31936
|
onClick: function onClick() {
|
|
@@ -31912,40 +31941,37 @@ var HelpSectionMenu = function HelpSectionMenu(_ref) {
|
|
|
31912
31941
|
var hide = _ref2.hide;
|
|
31913
31942
|
return !hide;
|
|
31914
31943
|
});
|
|
31915
|
-
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
31916
|
-
className: "neeto-molecules-help-sublist"
|
|
31917
|
-
}, helpLinks.map(function (_ref3, idx) {
|
|
31944
|
+
return /*#__PURE__*/React__default["default"].createElement("ul", null, helpLinks.map(function (_ref3, idx) {
|
|
31918
31945
|
var label = _ref3.label,
|
|
31919
31946
|
buttonProps = _objectWithoutProperties(_ref3, _excluded$2);
|
|
31920
31947
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
31921
31948
|
className: "neeto-molecules-help-sublist__item",
|
|
31922
31949
|
key: idx
|
|
31923
31950
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends({
|
|
31924
|
-
fullWidth: true,
|
|
31925
31951
|
className: "neeto-molecules-help-sublist__item-btn",
|
|
31926
31952
|
iconPosition: "left",
|
|
31927
31953
|
iconSize: 18,
|
|
31928
31954
|
style: "text"
|
|
31929
|
-
}, buttonProps), label,
|
|
31955
|
+
}, buttonProps), label, pure.isPresent(buttonProps.changesCount) && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
31956
|
+
className: "neeto-molecules-help-sublist__item-btn-count",
|
|
31957
|
+
"data-testid": "help-section-menu-changes-count"
|
|
31958
|
+
}, buttonProps.changesCount)));
|
|
31930
31959
|
}));
|
|
31931
31960
|
};
|
|
31932
31961
|
|
|
31933
31962
|
var ProfileSection = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
31934
31963
|
var profileInfo = _ref.profileInfo;
|
|
31935
31964
|
return /*#__PURE__*/React__default["default"].createElement("button", {
|
|
31936
|
-
className: "neeto-molecules-sidebar__profile
|
|
31965
|
+
className: "neeto-molecules-sidebar__profile-wrapper neeto-ui-w-full neeto-ui-text-left",
|
|
31937
31966
|
"data-cy": "profile-section",
|
|
31938
31967
|
ref: ref
|
|
31968
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
31969
|
+
className: "neeto-molecules-sidebar__profile neeto-ui-flex neeto-ui-w-full neeto-ui-flex-shrink-0 neeto-ui-items-center"
|
|
31939
31970
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Avatar, {
|
|
31940
|
-
className: "neeto-ui-flex-shrink-0
|
|
31941
|
-
size: "
|
|
31971
|
+
className: "neeto-ui-flex-shrink-0",
|
|
31972
|
+
size: "large",
|
|
31942
31973
|
user: profileInfo
|
|
31943
|
-
})
|
|
31944
|
-
className: "neeto-molecules-sidebar__link-label",
|
|
31945
|
-
component: "span",
|
|
31946
|
-
style: "body2",
|
|
31947
|
-
weight: "normal"
|
|
31948
|
-
}, pure.truncate(profileInfo.name, 18)));
|
|
31974
|
+
})));
|
|
31949
31975
|
});
|
|
31950
31976
|
ProfileSection.displayName = "ProfileSection";
|
|
31951
31977
|
|
|
@@ -31976,19 +32002,22 @@ var LinkSection = function LinkSection(_ref) {
|
|
|
31976
32002
|
_ref2$icon = _ref2.icon,
|
|
31977
32003
|
icon = _ref2$icon === void 0 ? null : _ref2$icon,
|
|
31978
32004
|
otherProps = _objectWithoutProperties(_ref2, _excluded$1);
|
|
32005
|
+
var IconSVG = icon;
|
|
31979
32006
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
31980
32007
|
className: "neeto-molecules-profile-sublist__item",
|
|
31981
32008
|
key: idx
|
|
31982
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
31983
|
-
fullWidth: true,
|
|
31984
|
-
className: "neeto-molecules-profile-sublist__item-btn",
|
|
31985
|
-
icon: icon,
|
|
31986
|
-
iconPosition: "left",
|
|
31987
|
-
iconSize: 18,
|
|
31988
|
-
label: label,
|
|
31989
|
-
style: "text",
|
|
32009
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", _extends({
|
|
31990
32010
|
onClick: onClick
|
|
31991
|
-
}, otherProps
|
|
32011
|
+
}, otherProps, {
|
|
32012
|
+
className: "neeto-molecules-profile-sublist__item-btn"
|
|
32013
|
+
}), icon && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
32014
|
+
className: "neeto-molecules-profile-sublist__item-btn-icon"
|
|
32015
|
+
}, /*#__PURE__*/React__default["default"].createElement(IconSVG, null)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
32016
|
+
className: "neeto-molecules-profile-sublist__item-btn-label",
|
|
32017
|
+
component: "span",
|
|
32018
|
+
style: "body2",
|
|
32019
|
+
weight: "normal"
|
|
32020
|
+
}, label)));
|
|
31992
32021
|
}));
|
|
31993
32022
|
};
|
|
31994
32023
|
|
|
@@ -32042,7 +32071,7 @@ var Footer = function Footer(_ref) {
|
|
|
32042
32071
|
var profileInfo = getProfileInfo(profileInfoOverrides);
|
|
32043
32072
|
var changesCount = (_helpLinkOverrides$ch = helpLinkOverrides.changelogProps) === null || _helpLinkOverrides$ch === void 0 ? void 0 : _helpLinkOverrides$ch.changesCount;
|
|
32044
32073
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32045
|
-
className: "neeto-molecules-sidebar__footer
|
|
32074
|
+
className: "neeto-molecules-sidebar__footer"
|
|
32046
32075
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
|
|
32047
32076
|
interactive: true,
|
|
32048
32077
|
className: "neeto-molecules-help-popup-wrapper",
|
|
@@ -32050,8 +32079,6 @@ var Footer = function Footer(_ref) {
|
|
|
32050
32079
|
helpLinkOverrides: helpLinkOverrides
|
|
32051
32080
|
}),
|
|
32052
32081
|
hideOnClick: false,
|
|
32053
|
-
interactiveDebounce: 30,
|
|
32054
|
-
offset: 0,
|
|
32055
32082
|
position: "right",
|
|
32056
32083
|
theme: "light"
|
|
32057
32084
|
}, /*#__PURE__*/React__default["default"].createElement(HelpSection, {
|
|
@@ -32062,8 +32089,6 @@ var Footer = function Footer(_ref) {
|
|
|
32062
32089
|
interactive: true,
|
|
32063
32090
|
className: "neeto-molecules-profile-popup-wrapper",
|
|
32064
32091
|
hideOnClick: false,
|
|
32065
|
-
interactiveDebounce: 30,
|
|
32066
|
-
offset: 0,
|
|
32067
32092
|
position: "right",
|
|
32068
32093
|
theme: "light",
|
|
32069
32094
|
content: /*#__PURE__*/React__default["default"].createElement(ProfileMenu, {
|
|
@@ -32083,17 +32108,17 @@ var Header = function Header() {
|
|
|
32083
32108
|
name: globalProps.appName.split("neeto")[1]
|
|
32084
32109
|
}, globalProps.neetoApps)) === null || _findBy2 === void 0 ? void 0 : _findBy2.url) !== null && _findBy$url !== void 0 ? _findBy$url : window.location.origin);
|
|
32085
32110
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32086
|
-
className: "neeto-
|
|
32111
|
+
className: "neeto-ui-flex neeto-ui-items-center neeto-molecules-sidebar__header",
|
|
32087
32112
|
"data-cy": "sidebar-info"
|
|
32113
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32114
|
+
className: "neeto-molecules-sidebar__logo flex flex-shrink-0 items-center justify-center"
|
|
32088
32115
|
}, /*#__PURE__*/React__default["default"].createElement(reactRouterDom.Link, {
|
|
32089
|
-
className: "neeto-molecules-sidebar__logo neeto-ui-w-full",
|
|
32090
32116
|
to: homeUrl.pathname
|
|
32091
|
-
}, ProductLogo ? /*#__PURE__*/React__default["default"].createElement(ProductLogo, null) : /*#__PURE__*/React__default["default"].createElement(ProductLogos.Neeto, null)));
|
|
32117
|
+
}, ProductLogo ? /*#__PURE__*/React__default["default"].createElement(ProductLogo, null) : /*#__PURE__*/React__default["default"].createElement(ProductLogos.Neeto, null))));
|
|
32092
32118
|
};
|
|
32093
32119
|
var Header$1 = /*#__PURE__*/React__default["default"].memo(Header);
|
|
32094
32120
|
|
|
32095
|
-
var _excluded = ["label", "to", "icon", "
|
|
32096
|
-
_excluded2 = ["label", "to", "count"];
|
|
32121
|
+
var _excluded = ["label", "to", "icon", "description"];
|
|
32097
32122
|
var Links = function Links(_ref) {
|
|
32098
32123
|
var navLinks = _ref.navLinks;
|
|
32099
32124
|
var location = reactRouterDom.useLocation();
|
|
@@ -32105,61 +32130,31 @@ var Links = function Links(_ref) {
|
|
|
32105
32130
|
return true;
|
|
32106
32131
|
});
|
|
32107
32132
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32108
|
-
className: "neeto-molecules-sidebar__links
|
|
32133
|
+
className: "neeto-molecules-sidebar__links"
|
|
32109
32134
|
}, navLinks.filter(filterByPermissions).map(function (_ref3, mainIndex) {
|
|
32110
32135
|
var label = _ref3.label,
|
|
32111
32136
|
to = _ref3.to,
|
|
32112
32137
|
icon = _ref3.icon,
|
|
32113
|
-
|
|
32138
|
+
description = _ref3.description,
|
|
32114
32139
|
otherProps = _objectWithoutProperties(_ref3, _excluded);
|
|
32115
32140
|
var IconSVG = icon;
|
|
32116
32141
|
var url = new URL(to, window.location.href);
|
|
32117
32142
|
var isActive = function isActive() {
|
|
32118
32143
|
return location.pathname.startsWith(url.pathname);
|
|
32119
32144
|
};
|
|
32120
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
32121
|
-
|
|
32145
|
+
return /*#__PURE__*/React__default["default"].createElement(NavIconWrapper, {
|
|
32146
|
+
description: description,
|
|
32147
|
+
key: mainIndex,
|
|
32148
|
+
label: label
|
|
32122
32149
|
}, /*#__PURE__*/React__default["default"].createElement(reactRouterDom.NavLink, _extends({
|
|
32123
32150
|
activeClassName: "active",
|
|
32124
32151
|
className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-molecules-sidebar__link",
|
|
32125
32152
|
isActive: isActive,
|
|
32126
32153
|
to: to
|
|
32127
|
-
}, otherProps), icon && /*#__PURE__*/React__default["default"].createElement("
|
|
32128
|
-
className: "neeto-molecules-sidebar__link-icon",
|
|
32154
|
+
}, otherProps), icon && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32155
|
+
className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-molecules-sidebar__link-icon",
|
|
32129
32156
|
"data-testid": label
|
|
32130
|
-
}, /*#__PURE__*/React__default["default"].createElement(IconSVG, null))
|
|
32131
|
-
className: "neeto-molecules-sidebar__link-label",
|
|
32132
|
-
component: "span",
|
|
32133
|
-
style: "body2",
|
|
32134
|
-
weight: "normal"
|
|
32135
|
-
}, label), items && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
32136
|
-
className: classnames("neeto-molecules-sidebar__link-icon", {
|
|
32137
|
-
"neeto-molecules-sidebar__link-icon--rotate": isActive()
|
|
32138
|
-
})
|
|
32139
|
-
}, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Down, {
|
|
32140
|
-
size: 16
|
|
32141
|
-
}))), items && isActive() && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32142
|
-
className: "neeto-molecules-sidebar__sublink-wrapper"
|
|
32143
|
-
}, items.map(function (_ref4, subIndex) {
|
|
32144
|
-
var subLabel = _ref4.label,
|
|
32145
|
-
subRoute = _ref4.to,
|
|
32146
|
-
count = _ref4.count,
|
|
32147
|
-
otherProps = _objectWithoutProperties(_ref4, _excluded2);
|
|
32148
|
-
return /*#__PURE__*/React__default["default"].createElement(reactRouterDom.NavLink, _extends({
|
|
32149
|
-
activeClassName: "active",
|
|
32150
|
-
className: "neeto-molecules-sidebar__sublink neeto-ui-flex neeto-ui-items-center neeto-ui-select-none",
|
|
32151
|
-
key: subIndex,
|
|
32152
|
-
to: subRoute
|
|
32153
|
-
}, otherProps), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
32154
|
-
className: "neeto-molecules-sidebar__link-sub-label neeto-ui-flex-grow",
|
|
32155
|
-
component: "span",
|
|
32156
|
-
style: "body2"
|
|
32157
|
-
}, subLabel), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
32158
|
-
className: "neeto-molecules-sidebar__link-sub-count neeto-ui-flex-shrink-0",
|
|
32159
|
-
component: "span",
|
|
32160
|
-
style: "body2"
|
|
32161
|
-
}, count));
|
|
32162
|
-
})));
|
|
32157
|
+
}, /*#__PURE__*/React__default["default"].createElement(IconSVG, null))));
|
|
32163
32158
|
}));
|
|
32164
32159
|
};
|
|
32165
32160
|
|
|
@@ -32177,25 +32172,15 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
32177
32172
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32178
32173
|
isAppSwitcherOpen = _useState2[0],
|
|
32179
32174
|
setIsAppSwitcherOpen = _useState2[1];
|
|
32180
|
-
var _useState3 = React.useState(false),
|
|
32181
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
32182
|
-
isSidebarCollapsed = _useState4[0],
|
|
32183
|
-
setIsSidebarCollapsed = _useState4[1];
|
|
32184
32175
|
var location = reactRouterDom.useLocation();
|
|
32185
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
32186
|
-
t = _useTranslation.t;
|
|
32187
32176
|
React.useEffect(function () {
|
|
32188
32177
|
isAppSwitcherOpen && setIsAppSwitcherOpen(false);
|
|
32189
32178
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32190
32179
|
}, [location]);
|
|
32191
32180
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32192
|
-
className: classnames("neeto-molecules-sidebar__wrapper", {
|
|
32193
|
-
"neeto-molecules-sidebar__wrapper--collapsed": isSidebarCollapsed
|
|
32194
|
-
})
|
|
32195
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32196
|
-
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",
|
|
32197
32181
|
"data-cy": "sidebar-wrapper",
|
|
32198
|
-
"data-testid": "sidebar"
|
|
32182
|
+
"data-testid": "sidebar",
|
|
32183
|
+
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")
|
|
32199
32184
|
}, /*#__PURE__*/React__default["default"].createElement(Header$1, null), /*#__PURE__*/React__default["default"].createElement(Links, {
|
|
32200
32185
|
navLinks: navLinks
|
|
32201
32186
|
}), /*#__PURE__*/React__default["default"].createElement(Footer, {
|
|
@@ -32206,17 +32191,6 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
32206
32191
|
onAppSwitcherToggle: function onAppSwitcherToggle() {
|
|
32207
32192
|
return setIsAppSwitcherOpen(ramda.not);
|
|
32208
32193
|
}
|
|
32209
|
-
})), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
32210
|
-
className: "neeto-molecules-sidebar__toggler",
|
|
32211
|
-
icon: neetoIcons.Expand,
|
|
32212
|
-
style: "text",
|
|
32213
|
-
tooltipProps: {
|
|
32214
|
-
content: isSidebarCollapsed ? t("neetoMolecules.sidebar.showMenu") : t("neetoMolecules.sidebar.hideMenu"),
|
|
32215
|
-
position: "bottom"
|
|
32216
|
-
},
|
|
32217
|
-
onClick: function onClick() {
|
|
32218
|
-
return setIsSidebarCollapsed(!isSidebarCollapsed);
|
|
32219
|
-
}
|
|
32220
32194
|
})), showAppSwitcher && /*#__PURE__*/React__default["default"].createElement(AppSwitcher, {
|
|
32221
32195
|
isOpen: isAppSwitcherOpen,
|
|
32222
32196
|
onClose: function onClose() {
|