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