@bigbinary/neeto-molecules 3.3.11 → 3.3.13
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/Breadcrumbs.js +28 -24
- package/dist/Breadcrumbs.js.map +1 -1
- package/dist/BrowserSupport.js +95 -69
- package/dist/BrowserSupport.js.map +1 -1
- package/dist/Builder.js +337 -285
- package/dist/Builder.js.map +1 -1
- package/dist/CalendarView.js +121 -110
- package/dist/CalendarView.js.map +1 -1
- package/dist/{Chevron-dee43d2f.js → Chevron-6564bcdc.js} +81 -67
- package/dist/Chevron-6564bcdc.js.map +1 -0
- package/dist/Codeblock.js +30 -25
- package/dist/Codeblock.js.map +1 -1
- package/dist/Columns.js +3 -3
- package/dist/ConfigurePageSidebar.js +39 -37
- package/dist/ConfigurePageSidebar.js.map +1 -1
- package/dist/ConfirmationModal.js +54 -42
- package/dist/ConfirmationModal.js.map +1 -1
- package/dist/Container.js +6 -4
- package/dist/Container.js.map +1 -1
- package/dist/CopyToClipboardButton.js +5 -3
- package/dist/CopyToClipboardButton.js.map +1 -1
- package/dist/Currency.js +9 -4
- package/dist/Currency.js.map +1 -1
- package/dist/CustomDomain.js +56 -53
- package/dist/CustomDomain.js.map +1 -1
- package/dist/CustomDomainDashboard.js +131 -113
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/DateFormat.js +13 -7
- package/dist/DateFormat.js.map +1 -1
- package/dist/DateRangeFilter.js +43 -38
- package/dist/DateRangeFilter.js.map +1 -1
- package/dist/DeleteArchiveModal.js +47 -38
- package/dist/DeleteArchiveModal.js.map +1 -1
- package/dist/DeviceIncompatibilityMessage.js +96 -0
- package/dist/DeviceIncompatibilityMessage.js.map +1 -0
- package/dist/DocumentEditor.js +43 -39
- package/dist/DocumentEditor.js.map +1 -1
- package/dist/DownloadMobileAppCallout.js +15 -14
- package/dist/DownloadMobileAppCallout.js.map +1 -1
- package/dist/DynamicVariables.js +33 -26
- package/dist/DynamicVariables.js.map +1 -1
- package/dist/EmailForm.js +144 -131
- package/dist/EmailForm.js.map +1 -1
- package/dist/EmailPreview.js +83 -68
- package/dist/EmailPreview.js.map +1 -1
- package/dist/EmojiPicker.js +11 -6
- package/dist/EmojiPicker.js.map +1 -1
- package/dist/EmojiReactions.js +48 -37
- package/dist/EmojiReactions.js.map +1 -1
- package/dist/ErrorPage.js +51 -38
- package/dist/ErrorPage.js.map +1 -1
- package/dist/FileUpload.js +180 -149
- package/dist/FileUpload.js.map +1 -1
- package/dist/FloatingActionMenu.js +288 -230
- package/dist/FloatingActionMenu.js.map +1 -1
- package/dist/Header.js +42 -35
- package/dist/Header.js.map +1 -1
- package/dist/HelpPopover.js +50 -42
- package/dist/HelpPopover.js.map +1 -1
- package/dist/IconPicker.js +121 -100
- package/dist/IconPicker.js.map +1 -1
- package/dist/ImageWithFallback.js +9 -5
- package/dist/ImageWithFallback.js.map +1 -1
- package/dist/InlineInput.js +59 -52
- package/dist/InlineInput.js.map +1 -1
- package/dist/Insights.js +185 -153
- package/dist/Insights.js.map +1 -1
- package/dist/IntegrationCard.js +109 -91
- package/dist/IntegrationCard.js.map +1 -1
- package/dist/IntegrationDisconnectAlert.js +5 -3
- package/dist/IntegrationDisconnectAlert.js.map +1 -1
- package/dist/IntegrationWalkthroughModal.js +30 -20
- package/dist/IntegrationWalkthroughModal.js.map +1 -1
- package/dist/IpRestriction.js +209 -177
- package/dist/IpRestriction.js.map +1 -1
- package/dist/KeyboardShortcuts.js +83 -73
- package/dist/KeyboardShortcuts.js.map +1 -1
- package/dist/LoginPage.js +70 -63
- package/dist/LoginPage.js.map +1 -1
- package/dist/MadeWith.js +14 -9
- package/dist/MadeWith.js.map +1 -1
- package/dist/MenuBar.js +107 -77
- package/dist/MenuBar.js.map +1 -1
- package/dist/Metadata.js +124 -100
- package/dist/Metadata.js.map +1 -1
- package/dist/MoreDropdown.js +55 -43
- package/dist/MoreDropdown.js.map +1 -1
- package/dist/NavigationHeader.js +104 -81
- package/dist/NavigationHeader.js.map +1 -1
- package/dist/NeetoWidget.js +383 -330
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/Onboarding.js +125 -107
- package/dist/Onboarding.js.map +1 -1
- package/dist/OptionFields.js +261 -227
- package/dist/OptionFields.js.map +1 -1
- package/dist/PageLoader.js +23 -19
- package/dist/PageLoader.js.map +1 -1
- package/dist/PhoneNumber.js +85 -69
- package/dist/PhoneNumber.js.map +1 -1
- package/dist/ProductEmbed.js +384 -341
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/PublishBlock.js +185 -154
- package/dist/PublishBlock.js.map +1 -1
- package/dist/PublishYourItem.js +35 -30
- package/dist/PublishYourItem.js.map +1 -1
- package/dist/Rename.js +102 -83
- package/dist/Rename.js.map +1 -1
- package/dist/ResponsiveDevicePicker.js +25 -21
- package/dist/ResponsiveDevicePicker.js.map +1 -1
- package/dist/Schedule.js +340 -301
- package/dist/Schedule.js.map +1 -1
- package/dist/Scrollable.js +7 -4
- package/dist/Scrollable.js.map +1 -1
- package/dist/Search.js +6 -4
- package/dist/Search.js.map +1 -1
- package/dist/SendToFields.js +154 -125
- package/dist/SendToFields.js.map +1 -1
- package/dist/Settings.js +94 -78
- package/dist/Settings.js.map +1 -1
- package/dist/ShareRecordingPane.js +60 -49
- package/dist/ShareRecordingPane.js.map +1 -1
- package/dist/ShareViaEmail.js +167 -146
- package/dist/ShareViaEmail.js.map +1 -1
- package/dist/ShareViaLink.js +289 -255
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/Sidebar.js +122 -111
- package/dist/Sidebar.js.map +1 -1
- package/dist/StickyRibbonsContainer.js +20 -18
- package/dist/StickyRibbonsContainer.js.map +1 -1
- package/dist/SubHeader.js +111 -100
- package/dist/SubHeader.js.map +1 -1
- package/dist/SuffixedInput.js +52 -47
- package/dist/SuffixedInput.js.map +1 -1
- package/dist/TableWrapper.js +9 -7
- package/dist/TableWrapper.js.map +1 -1
- package/dist/Taxonomy.js +179 -151
- package/dist/Taxonomy.js.map +1 -1
- package/dist/TimeFormat.js +2 -2
- package/dist/TimezoneMismatchModal.js +55 -43
- package/dist/TimezoneMismatchModal.js.map +1 -1
- package/dist/ToggleFeatureCard.js +74 -65
- package/dist/ToggleFeatureCard.js.map +1 -1
- package/dist/cjs/Breadcrumbs.js +28 -25
- package/dist/cjs/Breadcrumbs.js.map +1 -1
- package/dist/cjs/BrowserSupport.js +96 -71
- package/dist/cjs/BrowserSupport.js.map +1 -1
- package/dist/cjs/Builder.js +336 -286
- package/dist/cjs/Builder.js.map +1 -1
- package/dist/cjs/CalendarView.js +120 -111
- package/dist/cjs/CalendarView.js.map +1 -1
- package/dist/cjs/{Chevron-c10b4e16.js → Chevron-6368e586.js} +81 -69
- package/dist/cjs/Chevron-6368e586.js.map +1 -0
- package/dist/cjs/Codeblock.js +31 -27
- package/dist/cjs/Codeblock.js.map +1 -1
- package/dist/cjs/Columns.js +3 -3
- package/dist/cjs/ConfigurePageSidebar.js +38 -37
- package/dist/cjs/ConfigurePageSidebar.js.map +1 -1
- package/dist/cjs/ConfirmationModal.js +53 -42
- package/dist/cjs/ConfirmationModal.js.map +1 -1
- package/dist/cjs/Container.js +5 -4
- package/dist/cjs/Container.js.map +1 -1
- package/dist/cjs/CopyToClipboardButton.js +4 -4
- package/dist/cjs/CopyToClipboardButton.js.map +1 -1
- package/dist/cjs/Currency.js +9 -5
- package/dist/cjs/Currency.js.map +1 -1
- package/dist/cjs/CustomDomain.js +55 -53
- package/dist/cjs/CustomDomain.js.map +1 -1
- package/dist/cjs/CustomDomainDashboard.js +131 -114
- package/dist/cjs/CustomDomainDashboard.js.map +1 -1
- package/dist/cjs/DateFormat.js +14 -9
- package/dist/cjs/DateFormat.js.map +1 -1
- package/dist/cjs/DateRangeFilter.js +44 -40
- package/dist/cjs/DateRangeFilter.js.map +1 -1
- package/dist/cjs/DeleteArchiveModal.js +46 -38
- package/dist/cjs/DeleteArchiveModal.js.map +1 -1
- package/dist/cjs/DeviceIncompatibilityMessage.js +123 -0
- package/dist/cjs/DeviceIncompatibilityMessage.js.map +1 -0
- package/dist/cjs/DocumentEditor.js +42 -40
- package/dist/cjs/DocumentEditor.js.map +1 -1
- package/dist/cjs/DownloadMobileAppCallout.js +15 -15
- package/dist/cjs/DownloadMobileAppCallout.js.map +1 -1
- package/dist/cjs/DynamicVariables.js +32 -27
- package/dist/cjs/DynamicVariables.js.map +1 -1
- package/dist/cjs/EmailForm.js +143 -131
- package/dist/cjs/EmailForm.js.map +1 -1
- package/dist/cjs/EmailPreview.js +82 -68
- package/dist/cjs/EmailPreview.js.map +1 -1
- package/dist/cjs/EmojiPicker.js +11 -7
- package/dist/cjs/EmojiPicker.js.map +1 -1
- package/dist/cjs/EmojiReactions.js +47 -37
- package/dist/cjs/EmojiReactions.js.map +1 -1
- package/dist/cjs/ErrorPage.js +51 -39
- package/dist/cjs/ErrorPage.js.map +1 -1
- package/dist/cjs/FileUpload.js +181 -152
- package/dist/cjs/FileUpload.js.map +1 -1
- package/dist/cjs/FloatingActionMenu.js +288 -232
- package/dist/cjs/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/Header.js +41 -36
- package/dist/cjs/Header.js.map +1 -1
- package/dist/cjs/HelpPopover.js +50 -43
- package/dist/cjs/HelpPopover.js.map +1 -1
- package/dist/cjs/IconPicker.js +121 -101
- package/dist/cjs/IconPicker.js.map +1 -1
- package/dist/cjs/ImageWithFallback.js +8 -6
- package/dist/cjs/ImageWithFallback.js.map +1 -1
- package/dist/cjs/InlineInput.js +59 -54
- package/dist/cjs/InlineInput.js.map +1 -1
- package/dist/cjs/Insights.js +185 -154
- package/dist/cjs/Insights.js.map +1 -1
- package/dist/cjs/IntegrationCard.js +110 -93
- package/dist/cjs/IntegrationCard.js.map +1 -1
- package/dist/cjs/IntegrationDisconnectAlert.js +6 -5
- package/dist/cjs/IntegrationDisconnectAlert.js.map +1 -1
- package/dist/cjs/IntegrationWalkthroughModal.js +30 -21
- package/dist/cjs/IntegrationWalkthroughModal.js.map +1 -1
- package/dist/cjs/IpRestriction.js +208 -177
- package/dist/cjs/IpRestriction.js.map +1 -1
- package/dist/cjs/KeyboardShortcuts.js +83 -74
- package/dist/cjs/KeyboardShortcuts.js.map +1 -1
- package/dist/cjs/LoginPage.js +69 -63
- package/dist/cjs/LoginPage.js.map +1 -1
- package/dist/cjs/MadeWith.js +14 -10
- package/dist/cjs/MadeWith.js.map +1 -1
- package/dist/cjs/MenuBar.js +108 -79
- package/dist/cjs/MenuBar.js.map +1 -1
- package/dist/cjs/Metadata.js +123 -100
- package/dist/cjs/Metadata.js.map +1 -1
- package/dist/cjs/MoreDropdown.js +55 -45
- package/dist/cjs/MoreDropdown.js.map +1 -1
- package/dist/cjs/NavigationHeader.js +105 -83
- package/dist/cjs/NavigationHeader.js.map +1 -1
- package/dist/cjs/NeetoWidget.js +383 -332
- package/dist/cjs/NeetoWidget.js.map +1 -1
- package/dist/cjs/Onboarding.js +125 -109
- package/dist/cjs/Onboarding.js.map +1 -1
- package/dist/cjs/OptionFields.js +261 -229
- package/dist/cjs/OptionFields.js.map +1 -1
- package/dist/cjs/PageLoader.js +23 -20
- package/dist/cjs/PageLoader.js.map +1 -1
- package/dist/cjs/PhoneNumber.js +86 -72
- package/dist/cjs/PhoneNumber.js.map +1 -1
- package/dist/cjs/ProductEmbed.js +383 -341
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/dist/cjs/PublishBlock.js +185 -156
- package/dist/cjs/PublishBlock.js.map +1 -1
- package/dist/cjs/PublishYourItem.js +35 -31
- package/dist/cjs/PublishYourItem.js.map +1 -1
- package/dist/cjs/Rename.js +102 -85
- package/dist/cjs/Rename.js.map +1 -1
- package/dist/cjs/ResponsiveDevicePicker.js +26 -24
- package/dist/cjs/ResponsiveDevicePicker.js.map +1 -1
- package/dist/cjs/Schedule.js +339 -301
- package/dist/cjs/Schedule.js.map +1 -1
- package/dist/cjs/Scrollable.js +7 -6
- package/dist/cjs/Scrollable.js.map +1 -1
- package/dist/cjs/Search.js +5 -5
- package/dist/cjs/Search.js.map +1 -1
- package/dist/cjs/SendToFields.js +154 -126
- package/dist/cjs/SendToFields.js.map +1 -1
- package/dist/cjs/Settings.js +94 -80
- package/dist/cjs/Settings.js.map +1 -1
- package/dist/cjs/ShareRecordingPane.js +60 -51
- package/dist/cjs/ShareRecordingPane.js.map +1 -1
- package/dist/cjs/ShareViaEmail.js +167 -148
- package/dist/cjs/ShareViaEmail.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +290 -256
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/dist/cjs/Sidebar.js +120 -111
- package/dist/cjs/Sidebar.js.map +1 -1
- package/dist/cjs/StickyRibbonsContainer.js +20 -19
- package/dist/cjs/StickyRibbonsContainer.js.map +1 -1
- package/dist/cjs/SubHeader.js +110 -101
- package/dist/cjs/SubHeader.js.map +1 -1
- package/dist/cjs/SuffixedInput.js +51 -48
- package/dist/cjs/SuffixedInput.js.map +1 -1
- package/dist/cjs/TableWrapper.js +9 -8
- package/dist/cjs/TableWrapper.js.map +1 -1
- package/dist/cjs/Taxonomy.js +178 -151
- package/dist/cjs/Taxonomy.js.map +1 -1
- package/dist/cjs/TimeFormat.js +2 -2
- package/dist/cjs/TimezoneMismatchModal.js +54 -43
- package/dist/cjs/TimezoneMismatchModal.js.map +1 -1
- package/dist/cjs/ToggleFeatureCard.js +73 -66
- package/dist/cjs/ToggleFeatureCard.js.map +1 -1
- package/dist/cjs/{index-4ee3f585.js → index-c925b4b1.js} +296 -239
- package/dist/cjs/index-c925b4b1.js.map +1 -0
- package/dist/cjs/{useColumns-5ce3cf1e.js → useColumns-8894f767.js} +52 -42
- package/dist/cjs/useColumns-8894f767.js.map +1 -0
- package/dist/{index-0063079e.js → index-e123ffe8.js} +296 -238
- package/dist/index-e123ffe8.js.map +1 -0
- package/dist/{useColumns-e0b5dfb7.js → useColumns-13263cd8.js} +52 -40
- package/dist/useColumns-13263cd8.js.map +1 -0
- package/package.json +5 -3
- package/src/translations/en.json +3 -0
- package/types/Breadcrumbs.d.ts +0 -1
- package/types/Builder.d.ts +0 -1
- package/types/Codeblock.d.ts +0 -1
- package/types/Columns.d.ts +10 -4
- package/types/ConfirmationModal.d.ts +0 -1
- package/types/DeleteArchiveModal.d.ts +9 -6
- package/types/DeviceIncompatibilityMessage.d.ts +17 -0
- package/types/DocumentEditor.d.ts +0 -1
- package/types/EmailForm.d.ts +0 -1
- package/types/EmailFormProvider.d.ts +0 -1
- package/types/EmailPreview.d.ts +0 -1
- package/types/FileUpload.d.ts +8 -4
- package/types/IntegrationWalkthroughModal.d.ts +1 -1
- package/types/Metadata.d.ts +0 -1
- package/types/MoreDropdown.d.ts +0 -1
- package/types/NavigationHeader.d.ts +0 -4
- package/types/PhoneNumber.d.ts +1 -1
- package/types/ProductEmbed.d.ts +0 -1
- package/types/Schedule.d.ts +1 -1
- package/types/Search.d.ts +0 -1
- package/types/SendToFields.d.ts +0 -1
- package/types/Settings.d.ts +1 -1
- package/types/ShareRecordingPane.d.ts +1 -1
- package/types/ShareViaEmail.d.ts +1 -2
- package/types/Taxonomy.d.ts +0 -1
- package/dist/Chevron-dee43d2f.js.map +0 -1
- package/dist/cjs/Chevron-c10b4e16.js.map +0 -1
- package/dist/cjs/index-4ee3f585.js.map +0 -1
- package/dist/cjs/useColumns-5ce3cf1e.js.map +0 -1
- package/dist/index-0063079e.js.map +0 -1
- package/dist/useColumns-e0b5dfb7.js.map +0 -1
package/dist/NavigationHeader.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
1
|
import { isPresent } from '@bigbinary/neeto-cist';
|
|
3
2
|
import useBreakpoints from '@bigbinary/neeto-commons-frontend/react-utils/useBreakpoints';
|
|
4
3
|
import { mergeDeepRight, length, filter } from 'ramda';
|
|
5
|
-
import
|
|
4
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
5
|
import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
7
6
|
import { Link, NavLink } from 'react-router-dom';
|
|
8
7
|
import Rename from './Rename.js';
|
|
9
8
|
import { t } from 'i18next';
|
|
10
9
|
import Home from '@bigbinary/neeto-icons/Home';
|
|
10
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
11
|
import { joinHyphenCase } from '@bigbinary/neeto-commons-frontend/utils/general';
|
|
12
12
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
13
13
|
import classnames from 'classnames';
|
|
@@ -15,6 +15,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
15
15
|
import PublishBlock from './PublishBlock.js';
|
|
16
16
|
import { n } from './inject-css-c86de496.js';
|
|
17
17
|
import '@babel/runtime/helpers/slicedToArray';
|
|
18
|
+
import 'react';
|
|
18
19
|
import '@bigbinary/neeto-commons-frontend/react-utils/useOnClickOutside';
|
|
19
20
|
import '@bigbinary/neeto-commons-frontend/react-utils/useStateWithDependency';
|
|
20
21
|
import './Breadcrumbs.js';
|
|
@@ -24,7 +25,6 @@ import '@bigbinary/neeto-icons/Close';
|
|
|
24
25
|
import '@bigbinary/neetoui/Button';
|
|
25
26
|
import '@bigbinary/neetoui/Input';
|
|
26
27
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
27
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
28
28
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
29
29
|
import './MoreDropdown.js';
|
|
30
30
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -52,57 +52,70 @@ var DEFAULT_HOME_BUTTON_PROPS = {
|
|
|
52
52
|
position: "bottom"
|
|
53
53
|
},
|
|
54
54
|
homeUrl: "/",
|
|
55
|
-
icon: /*#__PURE__*/
|
|
55
|
+
icon: /*#__PURE__*/jsx(Home, {})
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
59
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
58
60
|
var LeftBlock = function LeftBlock(_ref) {
|
|
59
61
|
var customHomeButtonProps = _ref.homeButtonProps,
|
|
60
62
|
homeUrl = _ref.homeUrl,
|
|
61
63
|
renameProps = _ref.renameProps,
|
|
62
64
|
children = _ref.children;
|
|
63
65
|
var homeButtonProps = mergeDeepRight(DEFAULT_HOME_BUTTON_PROPS, customHomeButtonProps);
|
|
64
|
-
return /*#__PURE__*/
|
|
66
|
+
return /*#__PURE__*/jsxs("div", {
|
|
65
67
|
className: "flex items-center gap-1 md:gap-2",
|
|
66
68
|
"data-cy": "navigation-header-left-block",
|
|
67
|
-
"data-testid": "navigation-header-left-block"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
69
|
+
"data-testid": "navigation-header-left-block",
|
|
70
|
+
children: [/*#__PURE__*/jsx(Tooltip, {
|
|
71
|
+
content: homeButtonProps.tooltip.content,
|
|
72
|
+
position: homeButtonProps.tooltip.position,
|
|
73
|
+
children: /*#__PURE__*/jsx(Link, {
|
|
74
|
+
"data-cy": "home-button",
|
|
75
|
+
"data-testid": "home-button",
|
|
76
|
+
to: homeUrl,
|
|
77
|
+
children: /*#__PURE__*/jsx("div", {
|
|
78
|
+
className: "neeto-ui-rounded hover:neeto-ui-bg-gray-200 p-1",
|
|
79
|
+
children: homeButtonProps.icon
|
|
80
|
+
})
|
|
81
|
+
})
|
|
82
|
+
}), isPresent(renameProps) && /*#__PURE__*/jsx(Rename, _objectSpread$2({
|
|
83
|
+
dropdownItems: renameProps.dropdownItems,
|
|
84
|
+
value: renameProps.value
|
|
85
|
+
}, renameProps)), children]
|
|
86
|
+
});
|
|
81
87
|
};
|
|
82
88
|
|
|
89
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
90
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
83
91
|
var NavigationLinks = function NavigationLinks(_ref) {
|
|
84
92
|
var headerLinks = _ref.headerLinks;
|
|
85
|
-
return /*#__PURE__*/
|
|
93
|
+
return /*#__PURE__*/jsx("div", {
|
|
86
94
|
className: "flex w-full items-center justify-between gap-4 md:justify-center md:gap-3 lg:gap-6",
|
|
87
95
|
"data-cy": "navigation-header-navigation-links",
|
|
88
|
-
"data-testid": "navigation-header-navigation-links"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
"data-testid": "navigation-header-navigation-links",
|
|
97
|
+
children: headerLinks.map(function (headerLink) {
|
|
98
|
+
return /*#__PURE__*/jsx(NavLink, _objectSpread$1(_objectSpread$1({
|
|
99
|
+
activeClassName: "active",
|
|
100
|
+
className: "neeto-molecules-navigation-header__link px-2 capitalize no-underline md:px-0",
|
|
101
|
+
"data-cy": "".concat(joinHyphenCase(headerLink.key), "-tab")
|
|
102
|
+
}, headerLink), {}, {
|
|
103
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
104
|
+
lineHeight: "normal",
|
|
105
|
+
style: "h4",
|
|
106
|
+
weight: "semibold",
|
|
107
|
+
children: headerLink.label
|
|
108
|
+
})
|
|
109
|
+
}), headerLink.key);
|
|
110
|
+
})
|
|
111
|
+
});
|
|
101
112
|
};
|
|
102
113
|
|
|
103
114
|
var css = ".standalone-publish-preview-button{border-radius:var(--neeto-ui-rounded)!important}.neeto-molecules-navigation-header .neeto-ui-text-h4{color:inherit}@media screen and (max-width:1024px){.neeto-molecules-navigation-header .neeto-ui-text-h4{font-size:14px;font-weight:var(--neeto-ui-font-medium)}}.neeto-molecules-navigation-header .neeto-molecules-navigation-header__link{color:rgb(var(--neeto-ui-gray-500))}.neeto-molecules-navigation-header .neeto-molecules-navigation-header__link.active{color:rgb(var(--neeto-ui-black))}.neeto-molecules-navigation-header .neeto-molecules-navigation-header__link:hover:not(.active){color:rgb(var(--neeto-ui-gray-600))}.neeto-molecules-navigation-header .neeto-molecules-navigation-header__link.disabled{color:rgb(var(--neeto-ui-gray-300));cursor:not-allowed}.neeto-molecules-navigation-header .neeto-molecules-navigation-header__link.disabled:hover{color:rgb(var(--neeto-ui-gray-300))}";
|
|
104
115
|
n(css,{});
|
|
105
116
|
|
|
117
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
118
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
106
119
|
var RightBlock = function RightBlock(_ref) {
|
|
107
120
|
var isDraftBlockHidden = _ref.isDraftBlockHidden,
|
|
108
121
|
previewDraftUrl = _ref.previewDraftUrl,
|
|
@@ -127,45 +140,51 @@ var RightBlock = function RightBlock(_ref) {
|
|
|
127
140
|
var renderDraftButtons = function renderDraftButtons(_ref2) {
|
|
128
141
|
var ViewDraftButton = _ref2.ViewDraftButton,
|
|
129
142
|
ResetDraftButton = _ref2.ResetDraftButton;
|
|
130
|
-
return !isDraftBlockHidden && /*#__PURE__*/
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
143
|
+
return !isDraftBlockHidden && /*#__PURE__*/jsxs(Fragment, {
|
|
144
|
+
children: [/*#__PURE__*/jsx(ViewDraftButton, {
|
|
145
|
+
to: previewDraftUrl
|
|
146
|
+
}), isResetDraftButtonVisible && /*#__PURE__*/jsx(ResetDraftButton, {
|
|
147
|
+
loading: isResetting,
|
|
148
|
+
onClick: function onClick() {
|
|
149
|
+
return onResetClick();
|
|
150
|
+
}
|
|
151
|
+
})]
|
|
152
|
+
});
|
|
138
153
|
};
|
|
139
154
|
var renderPublishButtons = function renderPublishButtons(_ref3) {
|
|
140
155
|
var PublishButton = _ref3.PublishButton,
|
|
141
156
|
PublishPreviewButton = _ref3.PublishPreviewButton;
|
|
142
|
-
return /*#__PURE__*/
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
157
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
158
|
+
children: [isPublishButtonVisible && /*#__PURE__*/jsx(PublishButton, _objectSpread({
|
|
159
|
+
disabled: isPublishDisabled,
|
|
160
|
+
loading: isPublishing,
|
|
161
|
+
onClick: function onClick() {
|
|
162
|
+
return handlePublish();
|
|
163
|
+
}
|
|
164
|
+
}, publishButtonProps)), /*#__PURE__*/jsx(PublishPreviewButton, {
|
|
165
|
+
disabled: isPublishPreviewDisabled,
|
|
166
|
+
to: previewPublishedUrl,
|
|
167
|
+
className: classnames({
|
|
168
|
+
"standalone-publish-preview-button": !isPublishButtonVisible
|
|
169
|
+
})
|
|
170
|
+
})]
|
|
171
|
+
});
|
|
155
172
|
};
|
|
156
|
-
return /*#__PURE__*/
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
173
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
174
|
+
children: [/*#__PURE__*/jsx(PublishBlock, {
|
|
175
|
+
renderDraftButtons: renderDraftButtons,
|
|
176
|
+
renderPublishButtons: renderPublishButtons
|
|
177
|
+
}), /*#__PURE__*/jsx(PublishBlock.Alert, {
|
|
178
|
+
isOpen: isResetAlertOpen,
|
|
179
|
+
isSubmitting: isResetting,
|
|
180
|
+
message: publishAlertDescription || t("neetoMolecules.navigationHeader.resetDescription"),
|
|
181
|
+
title: publishAlertTitle || t("neetoMolecules.navigationHeader.resetTitle"),
|
|
182
|
+
onClose: function onClose() {
|
|
183
|
+
return setIsResetAlertOpen(false);
|
|
184
|
+
},
|
|
185
|
+
onSubmit: handleReset
|
|
186
|
+
})]
|
|
187
|
+
});
|
|
169
188
|
};
|
|
170
189
|
|
|
171
190
|
var NavigationHeader = function NavigationHeader(_ref) {
|
|
@@ -176,20 +195,24 @@ var NavigationHeader = function NavigationHeader(_ref) {
|
|
|
176
195
|
isSize = _useBreakpoints.isSize;
|
|
177
196
|
var isMobile = isSize("mobile");
|
|
178
197
|
var numberOfChildren = length(filter(isPresent, [leftActionBlock, navigationLinks, rightActionBlock]));
|
|
179
|
-
return /*#__PURE__*/
|
|
180
|
-
className: "w-full"
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
198
|
+
return /*#__PURE__*/jsxs("div", {
|
|
199
|
+
className: "w-full",
|
|
200
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
201
|
+
className: "neeto-molecules-navigation-header neeto-ui-border-gray-200 neeto-ui-bg-white flex h-16 w-full flex-shrink-0 items-center overflow-x-auto border-b px-2 py-2 md:px-4 lg:px-6",
|
|
202
|
+
"data-cy": "navigation-header",
|
|
203
|
+
"data-testid": "navigation-header",
|
|
204
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
205
|
+
className: "grid w-full gap-4",
|
|
206
|
+
style: {
|
|
207
|
+
gridTemplateColumns: isMobile ? "repeat(".concat(numberOfChildren - 1, ", 1fr)") : "repeat(".concat(numberOfChildren, ", 1fr)")
|
|
208
|
+
},
|
|
209
|
+
children: [leftActionBlock, !isMobile && navigationLinks, rightActionBlock]
|
|
210
|
+
})
|
|
211
|
+
}), isMobile && /*#__PURE__*/jsx("div", {
|
|
212
|
+
className: "neeto-molecules-navigation-header neeto-ui-border-gray-200 neeto-ui-bg-white \xDFflex-shrink-0 flex items-center overflow-x-auto border-b px-4 py-2 lg:px-6",
|
|
213
|
+
children: navigationLinks
|
|
214
|
+
})]
|
|
215
|
+
});
|
|
193
216
|
};
|
|
194
217
|
NavigationHeader.LeftActionBlock = LeftBlock;
|
|
195
218
|
NavigationHeader.NavigationLinks = NavigationLinks;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationHeader.js","sources":["../src/components/NavigationHeader/constants.jsx","../src/components/NavigationHeader/LeftBlock.jsx","../src/components/NavigationHeader/Navigation.jsx","../src/components/NavigationHeader/RightBlock.jsx","../src/components/NavigationHeader/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { t } from \"i18next\";\nimport { Home } from \"neetoicons\";\n\nexport const DEFAULT_HOME_BUTTON_PROPS = {\n tooltip: {\n content: t(\"neetoMolecules.navigationHeader.home\"),\n position: \"bottom\",\n },\n homeUrl: \"/\",\n icon: <Home />,\n};\n","import React from \"react\";\n\nimport { isPresent } from \"neetocist\";\nimport { Tooltip } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { mergeDeepRight } from \"ramda\";\nimport { Link } from \"react-router-dom\";\n\nimport Rename from \"components/Rename\";\n\nimport { DEFAULT_HOME_BUTTON_PROPS } from \"./constants\";\n\nconst LeftBlock = ({\n homeButtonProps: customHomeButtonProps,\n homeUrl,\n renameProps,\n children,\n}) => {\n const homeButtonProps = mergeDeepRight(\n DEFAULT_HOME_BUTTON_PROPS,\n customHomeButtonProps\n );\n\n return (\n <div\n className=\"flex items-center gap-1 md:gap-2\"\n data-cy=\"navigation-header-left-block\"\n data-testid=\"navigation-header-left-block\"\n >\n <Tooltip\n content={homeButtonProps.tooltip.content}\n position={homeButtonProps.tooltip.position}\n >\n <Link data-cy=\"home-button\" data-testid=\"home-button\" to={homeUrl}>\n <div className=\"neeto-ui-rounded hover:neeto-ui-bg-gray-200 p-1\">\n {homeButtonProps.icon}\n </div>\n </Link>\n </Tooltip>\n {isPresent(renameProps) && (\n <Rename\n dropdownItems={renameProps.dropdownItems}\n value={renameProps.value}\n {...renameProps}\n />\n )}\n {children}\n </div>\n );\n};\n\nLeftBlock.propTypes = {\n /**\n * Object containing the home button icon and the props to be passed to the tooltip of the home button.\n */\n homeButtonProps: PropTypes.shape({\n tooltip: PropTypes.shape({\n content: PropTypes.string,\n postition: PropTypes.string,\n }),\n icon: PropTypes.node,\n }),\n /**\n * URL to navigate when the home button is clicked.\n */\n homeUrl: PropTypes.string.isRequired,\n /**\n * Props to be passed to the `Rename` component. Please check the `Rename` component props for more details\n */\n renameProps: PropTypes.object,\n /**\n * To render extra content in the block.\n */\n children: PropTypes.node,\n};\n\nexport default LeftBlock;\n","import React from \"react\";\n\nimport { joinHyphenCase } from \"neetocommons/utils/general\";\nimport { Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { NavLink } from \"react-router-dom\";\n\nconst NavigationLinks = ({ headerLinks }) => (\n <div\n className=\"flex w-full items-center justify-between gap-4 md:justify-center md:gap-3 lg:gap-6\"\n data-cy=\"navigation-header-navigation-links\"\n data-testid=\"navigation-header-navigation-links\"\n >\n {headerLinks.map(headerLink => (\n <NavLink\n activeClassName=\"active\"\n className=\"neeto-molecules-navigation-header__link px-2 capitalize no-underline md:px-0\"\n data-cy={`${joinHyphenCase(headerLink.key)}-tab`}\n key={headerLink.key}\n {...headerLink}\n >\n <Typography lineHeight=\"normal\" style=\"h4\" weight=\"semibold\">\n {headerLink.label}\n </Typography>\n </NavLink>\n ))}\n </div>\n);\n\nNavigationLinks.propTypes = {\n /**\n * Links to be rendered in the center of the navigation header. It is an array of objects.\n * Each object should have the properties `key`, `to` and `label`. Other props will be passed on to the `Navlink` component from\n `react-router-dom`.\n */\n headerLinks: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n to: PropTypes.string,\n label: PropTypes.string,\n })\n ),\n};\n\nexport default NavigationLinks;\n","import React from \"react\";\n\nimport classNames from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport PublishBlock from \"components/PublishBlock\";\n\nimport \"./navigation-header.scss\";\n\nconst RightBlock = ({\n isDraftBlockHidden,\n previewDraftUrl,\n isResetDraftButtonVisible,\n onResetClick,\n isResetting,\n isPublishDisabled,\n isPublishing,\n handlePublish,\n isPublishPreviewDisabled,\n previewPublishedUrl,\n isPublishButtonVisible,\n isResetAlertOpen,\n setIsResetAlertOpen,\n handleReset,\n publishAlertTitle,\n publishAlertDescription,\n publishButtonProps = {},\n}) => {\n const { t } = useTranslation();\n\n const renderDraftButtons = ({ ViewDraftButton, ResetDraftButton }) =>\n !isDraftBlockHidden && (\n <>\n <ViewDraftButton to={previewDraftUrl} />\n {isResetDraftButtonVisible && (\n <ResetDraftButton\n loading={isResetting}\n onClick={() => onResetClick()}\n />\n )}\n </>\n );\n\n const renderPublishButtons = ({ PublishButton, PublishPreviewButton }) => (\n <>\n {isPublishButtonVisible && (\n <PublishButton\n disabled={isPublishDisabled}\n loading={isPublishing}\n onClick={() => handlePublish()}\n {...publishButtonProps}\n />\n )}\n <PublishPreviewButton\n disabled={isPublishPreviewDisabled}\n to={previewPublishedUrl}\n className={classNames({\n \"standalone-publish-preview-button\": !isPublishButtonVisible,\n })}\n />\n </>\n );\n\n return (\n <>\n <PublishBlock {...{ renderDraftButtons, renderPublishButtons }} />\n <PublishBlock.Alert\n isOpen={isResetAlertOpen}\n isSubmitting={isResetting}\n message={\n publishAlertDescription ||\n t(\"neetoMolecules.navigationHeader.resetDescription\")\n }\n title={\n publishAlertTitle || t(\"neetoMolecules.navigationHeader.resetTitle\")\n }\n onClose={() => setIsResetAlertOpen(false)}\n onSubmit={handleReset}\n />\n </>\n );\n};\n\nRightBlock.propTypes = {\n /**\n * To show/hide the draft block.\n */\n isDraftBlockHidden: PropTypes.bool,\n /**\n * Draft preview URL, when the draft button is clicked user will be redirected to this URL.\n */\n previewDraftUrl: PropTypes.string,\n /**\n * Boolean to control the visibility of reset draft button.\n */\n isResetDraftButtonVisible: PropTypes.bool,\n /**\n * Callback function that will be called when the reset button is clicked.\n */\n onResetClick: PropTypes.func,\n /**\n * Setting this to `true` will show a spinner on the reset button. Use when the reset process is in progress.\n */\n isResetting: PropTypes.bool,\n /**\n * To disable the publish button.\n */\n isPublishDisabled: PropTypes.bool,\n /**\n * Setting this to `true` will show a spinner on the publish button. Use when the publish process is in progress.\n */\n isPublishing: PropTypes.bool,\n /**\n * Callback function that will be called when the publish button is clicked.\n */\n handlePublish: PropTypes.func,\n /**\n * To disable the publish preview button.\n */\n isPublishPreviewDisabled: PropTypes.bool,\n /**\n * Publish preview URL, when the preview publish button is clicked user will be redirected to this URL.\n */\n previewPublishedUrl: PropTypes.string,\n /**\n * Boolean to control whether the user have the ability to publish.\n */\n isPublishButtonVisible: PropTypes.bool,\n /**\n * Boolean to control whether the reset alert is open.\n */\n isResetAlertOpen: PropTypes.bool,\n /**\n * Handler to control the `isResetAlert` state variable.\n */\n setIsResetAlertOpen: PropTypes.func,\n /**\n * Callback function that will be called when the reset button is clicked.\n */\n handleReset: PropTypes.func,\n /**\n * Description to be shown in the publish alert\n */\n publishAlertDescription: PropTypes.string,\n /**\n * Title of the publish alert\n */\n publishAlertTitle: PropTypes.string,\n /**\n * Props to be passed to the publish button\n */\n publishButtonProps: PropTypes.object,\n};\n\nexport default RightBlock;\n","import React from \"react\";\n\nimport { isPresent } from \"neetocist\";\nimport useBreakpoints from \"neetocommons/react-utils/useBreakpoints\";\nimport PropTypes from \"prop-types\";\nimport { filter, length } from \"ramda\";\n\nimport LeftBlock from \"./LeftBlock\";\nimport NavigationLinks from \"./Navigation\";\nimport RightBlock from \"./RightBlock\";\n\nconst NavigationHeader = ({\n leftActionBlock,\n navigationLinks,\n rightActionBlock,\n}) => {\n const { isSize } = useBreakpoints();\n const isMobile = isSize(\"mobile\");\n\n const numberOfChildren = length(\n filter(isPresent, [leftActionBlock, navigationLinks, rightActionBlock])\n );\n\n return (\n <div className=\"w-full\">\n <div\n className=\"neeto-molecules-navigation-header neeto-ui-border-gray-200 neeto-ui-bg-white flex h-16 w-full flex-shrink-0 items-center overflow-x-auto border-b px-2 py-2 md:px-4 lg:px-6\"\n data-cy=\"navigation-header\"\n data-testid=\"navigation-header\"\n >\n <div\n className=\"grid w-full gap-4\"\n style={{\n gridTemplateColumns: isMobile\n ? `repeat(${numberOfChildren - 1}, 1fr)`\n : `repeat(${numberOfChildren}, 1fr)`,\n }}\n >\n {leftActionBlock}\n {!isMobile && navigationLinks}\n {rightActionBlock}\n </div>\n </div>\n {isMobile && (\n <div className=\"neeto-molecules-navigation-header neeto-ui-border-gray-200 neeto-ui-bg-white ßflex-shrink-0 flex items-center overflow-x-auto border-b px-4 py-2 lg:px-6\">\n {navigationLinks}\n </div>\n )}\n </div>\n );\n};\n\nNavigationHeader.LeftActionBlock = LeftBlock;\nNavigationHeader.NavigationLinks = NavigationLinks;\nNavigationHeader.RightActionBlock = RightBlock;\n\nNavigationHeader.propTypes = {\n /**\n * To specify the content to be rendered in the left side of the `NavigationHeader`.\n */\n leftActionBlock: PropTypes.node,\n /**\n * To specify the content to be rendered at the center of the `NavigationHeader`.\n */\n navigationLinks: PropTypes.node,\n /**\n * To specify the content to be rendered in the right side of the `NavigationHeader`.\n */\n rightActionBlock: PropTypes.node,\n};\n\nexport default NavigationHeader;\n"],"names":["DEFAULT_HOME_BUTTON_PROPS","tooltip","content","t","position","homeUrl","icon","React","createElement","Home","LeftBlock","_ref","customHomeButtonProps","homeButtonProps","renameProps","children","mergeDeepRight","className","Tooltip","Link","to","isPresent","Rename","_extends","dropdownItems","value","NavigationLinks","headerLinks","map","headerLink","NavLink","activeClassName","concat","joinHyphenCase","key","Typography","lineHeight","style","weight","label","RightBlock","isDraftBlockHidden","previewDraftUrl","isResetDraftButtonVisible","onResetClick","isResetting","isPublishDisabled","isPublishing","handlePublish","isPublishPreviewDisabled","previewPublishedUrl","isPublishButtonVisible","isResetAlertOpen","setIsResetAlertOpen","handleReset","publishAlertTitle","publishAlertDescription","_ref$publishButtonPro","publishButtonProps","_useTranslation","useTranslation","renderDraftButtons","_ref2","ViewDraftButton","ResetDraftButton","Fragment","loading","onClick","renderPublishButtons","_ref3","PublishButton","PublishPreviewButton","disabled","classNames","PublishBlock","Alert","isOpen","isSubmitting","message","title","onClose","onSubmit","NavigationHeader","leftActionBlock","navigationLinks","rightActionBlock","_useBreakpoints","useBreakpoints","isSize","isMobile","numberOfChildren","length","filter","gridTemplateColumns","LeftActionBlock","RightActionBl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ACvL,IAAA,SAAA,EAAQ,mBAAmB;IAC3B,aAAY,EAAA,mBAAA;GAEZV,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACES,IAAAA,SAAS,EAAC,mBAAmB;AAC7BoB,IAAAA,KAAK,EAAE;MACLwD,mBAAmB,EAAEJ,QAAQ,GAAA,SAAA,CAAAzD,MAAA,CACf0D,gBAAgB,GAAG,CAAC,EAAA,QAAA,CAAA,GAAA,SAAA,CAAA1D,MAAA,CACpB0D,gBAAgB,EAAA,QAAA,CAAA;AAChC,KAAA;AAAE,GAAA,EAEDP,eAAe,EACf,CAACM,QAAQ,IAAIL,eAAe,EAC5BC,gBACE,CACF,CAAC,EACLI,QAAQ,iBACPlF,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKS,IAAAA,SAAS,EAAC,6JAAA;GACZmE,EAAAA,eACE,CAEJ,CAAC,CAAA;AAEV,EAAC;AAEDF,gBAAgB,CAACY,eAAe,GAAGpF,SAAS,CAAA;AAC5CwE,gBAAgB,CAACxD,eAAe,GAAGA,eAAe,CAAA;AAClDwD,gBAAgB,CAACa,gBAAgB,GAAGvD,UAAU;;;;"}
|
|
1
|
+
{"version":3,"file":"NavigationHeader.js","sources":["../src/components/NavigationHeader/constants.jsx","../src/components/NavigationHeader/LeftBlock.jsx","../src/components/NavigationHeader/Navigation.jsx","../src/components/NavigationHeader/RightBlock.jsx","../src/components/NavigationHeader/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\nimport { Home } from \"neetoicons\";\n\nexport const DEFAULT_HOME_BUTTON_PROPS = {\n tooltip: {\n content: t(\"neetoMolecules.navigationHeader.home\"),\n position: \"bottom\",\n },\n homeUrl: \"/\",\n icon: <Home />,\n};\n","import { isPresent } from \"neetocist\";\nimport { Tooltip } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { mergeDeepRight } from \"ramda\";\nimport { Link } from \"react-router-dom\";\n\nimport Rename from \"components/Rename\";\n\nimport { DEFAULT_HOME_BUTTON_PROPS } from \"./constants\";\n\nconst LeftBlock = ({\n homeButtonProps: customHomeButtonProps,\n homeUrl,\n renameProps,\n children,\n}) => {\n const homeButtonProps = mergeDeepRight(\n DEFAULT_HOME_BUTTON_PROPS,\n customHomeButtonProps\n );\n\n return (\n <div\n className=\"flex items-center gap-1 md:gap-2\"\n data-cy=\"navigation-header-left-block\"\n data-testid=\"navigation-header-left-block\"\n >\n <Tooltip\n content={homeButtonProps.tooltip.content}\n position={homeButtonProps.tooltip.position}\n >\n <Link data-cy=\"home-button\" data-testid=\"home-button\" to={homeUrl}>\n <div className=\"neeto-ui-rounded hover:neeto-ui-bg-gray-200 p-1\">\n {homeButtonProps.icon}\n </div>\n </Link>\n </Tooltip>\n {isPresent(renameProps) && (\n <Rename\n dropdownItems={renameProps.dropdownItems}\n value={renameProps.value}\n {...renameProps}\n />\n )}\n {children}\n </div>\n );\n};\n\nLeftBlock.propTypes = {\n /**\n * Object containing the home button icon and the props to be passed to the tooltip of the home button.\n */\n homeButtonProps: PropTypes.shape({\n tooltip: PropTypes.shape({\n content: PropTypes.string,\n postition: PropTypes.string,\n }),\n icon: PropTypes.node,\n }),\n /**\n * URL to navigate when the home button is clicked.\n */\n homeUrl: PropTypes.string.isRequired,\n /**\n * Props to be passed to the `Rename` component. Please check the `Rename` component props for more details\n */\n renameProps: PropTypes.object,\n /**\n * To render extra content in the block.\n */\n children: PropTypes.node,\n};\n\nexport default LeftBlock;\n","import { joinHyphenCase } from \"neetocommons/utils/general\";\nimport { Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { NavLink } from \"react-router-dom\";\n\nconst NavigationLinks = ({ headerLinks }) => (\n <div\n className=\"flex w-full items-center justify-between gap-4 md:justify-center md:gap-3 lg:gap-6\"\n data-cy=\"navigation-header-navigation-links\"\n data-testid=\"navigation-header-navigation-links\"\n >\n {headerLinks.map(headerLink => (\n <NavLink\n activeClassName=\"active\"\n className=\"neeto-molecules-navigation-header__link px-2 capitalize no-underline md:px-0\"\n data-cy={`${joinHyphenCase(headerLink.key)}-tab`}\n key={headerLink.key}\n {...headerLink}\n >\n <Typography lineHeight=\"normal\" style=\"h4\" weight=\"semibold\">\n {headerLink.label}\n </Typography>\n </NavLink>\n ))}\n </div>\n);\n\nNavigationLinks.propTypes = {\n /**\n * Links to be rendered in the center of the navigation header. It is an array of objects.\n * Each object should have the properties `key`, `to` and `label`. Other props will be passed on to the `Navlink` component from\n `react-router-dom`.\n */\n headerLinks: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n to: PropTypes.string,\n label: PropTypes.string,\n })\n ),\n};\n\nexport default NavigationLinks;\n","import classNames from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport PublishBlock from \"components/PublishBlock\";\n\nimport \"./navigation-header.scss\";\n\nconst RightBlock = ({\n isDraftBlockHidden,\n previewDraftUrl,\n isResetDraftButtonVisible,\n onResetClick,\n isResetting,\n isPublishDisabled,\n isPublishing,\n handlePublish,\n isPublishPreviewDisabled,\n previewPublishedUrl,\n isPublishButtonVisible,\n isResetAlertOpen,\n setIsResetAlertOpen,\n handleReset,\n publishAlertTitle,\n publishAlertDescription,\n publishButtonProps = {},\n}) => {\n const { t } = useTranslation();\n\n const renderDraftButtons = ({ ViewDraftButton, ResetDraftButton }) =>\n !isDraftBlockHidden && (\n <>\n <ViewDraftButton to={previewDraftUrl} />\n {isResetDraftButtonVisible && (\n <ResetDraftButton\n loading={isResetting}\n onClick={() => onResetClick()}\n />\n )}\n </>\n );\n\n const renderPublishButtons = ({ PublishButton, PublishPreviewButton }) => (\n <>\n {isPublishButtonVisible && (\n <PublishButton\n disabled={isPublishDisabled}\n loading={isPublishing}\n onClick={() => handlePublish()}\n {...publishButtonProps}\n />\n )}\n <PublishPreviewButton\n disabled={isPublishPreviewDisabled}\n to={previewPublishedUrl}\n className={classNames({\n \"standalone-publish-preview-button\": !isPublishButtonVisible,\n })}\n />\n </>\n );\n\n return (\n <>\n <PublishBlock {...{ renderDraftButtons, renderPublishButtons }} />\n <PublishBlock.Alert\n isOpen={isResetAlertOpen}\n isSubmitting={isResetting}\n message={\n publishAlertDescription ||\n t(\"neetoMolecules.navigationHeader.resetDescription\")\n }\n title={\n publishAlertTitle || t(\"neetoMolecules.navigationHeader.resetTitle\")\n }\n onClose={() => setIsResetAlertOpen(false)}\n onSubmit={handleReset}\n />\n </>\n );\n};\n\nRightBlock.propTypes = {\n /**\n * To show/hide the draft block.\n */\n isDraftBlockHidden: PropTypes.bool,\n /**\n * Draft preview URL, when the draft button is clicked user will be redirected to this URL.\n */\n previewDraftUrl: PropTypes.string,\n /**\n * Boolean to control the visibility of reset draft button.\n */\n isResetDraftButtonVisible: PropTypes.bool,\n /**\n * Callback function that will be called when the reset button is clicked.\n */\n onResetClick: PropTypes.func,\n /**\n * Setting this to `true` will show a spinner on the reset button. Use when the reset process is in progress.\n */\n isResetting: PropTypes.bool,\n /**\n * To disable the publish button.\n */\n isPublishDisabled: PropTypes.bool,\n /**\n * Setting this to `true` will show a spinner on the publish button. Use when the publish process is in progress.\n */\n isPublishing: PropTypes.bool,\n /**\n * Callback function that will be called when the publish button is clicked.\n */\n handlePublish: PropTypes.func,\n /**\n * To disable the publish preview button.\n */\n isPublishPreviewDisabled: PropTypes.bool,\n /**\n * Publish preview URL, when the preview publish button is clicked user will be redirected to this URL.\n */\n previewPublishedUrl: PropTypes.string,\n /**\n * Boolean to control whether the user have the ability to publish.\n */\n isPublishButtonVisible: PropTypes.bool,\n /**\n * Boolean to control whether the reset alert is open.\n */\n isResetAlertOpen: PropTypes.bool,\n /**\n * Handler to control the `isResetAlert` state variable.\n */\n setIsResetAlertOpen: PropTypes.func,\n /**\n * Callback function that will be called when the reset button is clicked.\n */\n handleReset: PropTypes.func,\n /**\n * Description to be shown in the publish alert\n */\n publishAlertDescription: PropTypes.string,\n /**\n * Title of the publish alert\n */\n publishAlertTitle: PropTypes.string,\n /**\n * Props to be passed to the publish button\n */\n publishButtonProps: PropTypes.object,\n};\n\nexport default RightBlock;\n","import { isPresent } from \"neetocist\";\nimport useBreakpoints from \"neetocommons/react-utils/useBreakpoints\";\nimport PropTypes from \"prop-types\";\nimport { filter, length } from \"ramda\";\n\nimport LeftBlock from \"./LeftBlock\";\nimport NavigationLinks from \"./Navigation\";\nimport RightBlock from \"./RightBlock\";\n\nconst NavigationHeader = ({\n leftActionBlock,\n navigationLinks,\n rightActionBlock,\n}) => {\n const { isSize } = useBreakpoints();\n const isMobile = isSize(\"mobile\");\n\n const numberOfChildren = length(\n filter(isPresent, [leftActionBlock, navigationLinks, rightActionBlock])\n );\n\n return (\n <div className=\"w-full\">\n <div\n className=\"neeto-molecules-navigation-header neeto-ui-border-gray-200 neeto-ui-bg-white flex h-16 w-full flex-shrink-0 items-center overflow-x-auto border-b px-2 py-2 md:px-4 lg:px-6\"\n data-cy=\"navigation-header\"\n data-testid=\"navigation-header\"\n >\n <div\n className=\"grid w-full gap-4\"\n style={{\n gridTemplateColumns: isMobile\n ? `repeat(${numberOfChildren - 1}, 1fr)`\n : `repeat(${numberOfChildren}, 1fr)`,\n }}\n >\n {leftActionBlock}\n {!isMobile && navigationLinks}\n {rightActionBlock}\n </div>\n </div>\n {isMobile && (\n <div className=\"neeto-molecules-navigation-header neeto-ui-border-gray-200 neeto-ui-bg-white ßflex-shrink-0 flex items-center overflow-x-auto border-b px-4 py-2 lg:px-6\">\n {navigationLinks}\n </div>\n )}\n </div>\n );\n};\n\nNavigationHeader.LeftActionBlock = LeftBlock;\nNavigationHeader.NavigationLinks = NavigationLinks;\nNavigationHeader.RightActionBlock = RightBlock;\n\nNavigationHeader.propTypes = {\n /**\n * To specify the content to be rendered in the left side of the `NavigationHeader`.\n */\n leftActionBlock: PropTypes.node,\n /**\n * To specify the content to be rendered at the center of the `NavigationHeader`.\n */\n navigationLinks: PropTypes.node,\n /**\n * To specify the content to be rendered in the right side of the `NavigationHeader`.\n */\n rightActionBlock: PropTypes.node,\n};\n\nexport default NavigationHeader;\n"],"names":["DEFAULT_HOME_BUTTON_PROPS","tooltip","content","t","position","homeUrl","icon","_jsx","Home","LeftBlock","_ref","customHomeButtonProps","homeButtonProps","renameProps","children","mergeDeepRight","_jsxs","className","Tooltip","Link","to","isPresent","Rename","_objectSpread","dropdownItems","value","NavigationLinks","headerLinks","map","headerLink","NavLink","activeClassName","concat","joinHyphenCase","key","Typography","lineHeight","style","weight","label","RightBlock","isDraftBlockHidden","previewDraftUrl","isResetDraftButtonVisible","onResetClick","isResetting","isPublishDisabled","isPublishing","handlePublish","isPublishPreviewDisabled","previewPublishedUrl","isPublishButtonVisible","isResetAlertOpen","setIsResetAlertOpen","handleReset","publishAlertTitle","publishAlertDescription","_ref$publishButtonPro","publishButtonProps","_useTranslation","useTranslation","renderDraftButtons","_ref2","ViewDraftButton","ResetDraftButton","_Fragment","loading","onClick","renderPublishButtons","_ref3","PublishButton","PublishPreviewButton","disabled","classNames","PublishBlock","Alert","isOpen","isSubmitting","message","title","onClose","onSubmit","NavigationHeader","leftActionBlock","navigationLinks","rightActionBlock","_useBreakpoints","useBreakpoints","isSize","isMobile","numberOfChildren","length","filter","gridTemplateColumns","LeftActionBlock","RightActionBlock"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAMA,yBAAyB,GAAG;AACvCC,EAAAA,OAAO,EAAE;AACPC,IAAAA,OAAO,EAAEC,CAAC,CAAC,sCAAsC,CAAC;AAClDC,IAAAA,QAAQ,EAAE,QAAA;GACX;AACDC,EAAAA,OAAO,EAAE,GAAG;AACZC,EAAAA,IAAI,eAAEC,GAAA,CAACC,IAAI,EAAE,EAAA,CAAA;AACf,CAAC;;;;ACAD,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAKT;AAAA,EAAA,IAJaC,qBAAqB,GAAAD,IAAA,CAAtCE,eAAe;IACfP,OAAO,GAAAK,IAAA,CAAPL,OAAO;IACPQ,WAAW,GAAA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