@bigbinary/neeto-molecules 1.11.3 → 1.11.5
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 +7 -8
- package/dist/Breadcrumbs.js.map +1 -1
- package/dist/BrowserSupport.js +41 -138
- package/dist/BrowserSupport.js.map +1 -1
- package/dist/Builder.js +65 -319
- package/dist/Builder.js.map +1 -1
- package/dist/CalendarView.js +38 -321
- package/dist/CalendarView.js.map +1 -1
- package/dist/Codeblock.js +14 -207
- package/dist/Codeblock.js.map +1 -1
- package/dist/Columns-702d539a.js +206 -0
- package/dist/Columns-702d539a.js.map +1 -0
- package/dist/Columns.js +16 -342
- package/dist/Columns.js.map +1 -1
- package/dist/ConfirmationModal.js +10 -10
- package/dist/ConfirmationModal.js.map +1 -1
- package/dist/Container.js +4 -1186
- package/dist/Container.js.map +1 -1
- package/dist/CopyToClipboardButton.js +7 -144
- package/dist/CopyToClipboardButton.js.map +1 -1
- package/dist/Currency.js +4 -46
- package/dist/Currency.js.map +1 -1
- package/dist/CustomDomain.js +30 -635
- package/dist/CustomDomain.js.map +1 -1
- package/dist/CustomDomainDashboard.js +41 -2198
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/DateFormat.js +4 -18
- package/dist/DateFormat.js.map +1 -1
- package/dist/DateRangeFilter.js +7 -61
- package/dist/DateRangeFilter.js.map +1 -1
- package/dist/DocumentEditor.js +12 -121
- package/dist/DocumentEditor.js.map +1 -1
- package/dist/DownloadMobileAppCallout.js +4 -4
- package/dist/DownloadMobileAppCallout.js.map +1 -1
- package/dist/DynamicVariables.js +11 -94
- package/dist/DynamicVariables.js.map +1 -1
- package/dist/EmailForm.js +46 -1711
- package/dist/EmailForm.js.map +1 -1
- package/dist/EmailPreview.js +28 -1209
- package/dist/EmailPreview.js.map +1 -1
- package/dist/EmojiPicker.js +5 -73
- package/dist/EmojiPicker.js.map +1 -1
- package/dist/EmojiReactions.js +13 -67
- package/dist/EmojiReactions.js.map +1 -1
- package/dist/ErrorPage.js +1 -15
- package/dist/ErrorPage.js.map +1 -1
- package/dist/FloatingActionMenu.js +72 -1399
- package/dist/FloatingActionMenu.js.map +1 -1
- package/dist/Header.js +26 -72
- package/dist/Header.js.map +1 -1
- package/dist/HelpPopover.js +14 -96
- package/dist/HelpPopover.js.map +1 -1
- package/dist/IconPicker.js +26 -123
- package/dist/IconPicker.js.map +1 -1
- package/dist/ImageWithFallback.js +8 -144
- package/dist/ImageWithFallback.js.map +1 -1
- package/dist/InlineInput.js +16 -522
- package/dist/InlineInput.js.map +1 -1
- package/dist/IntegrationCard.js +30 -229
- package/dist/IntegrationCard.js.map +1 -1
- package/dist/IntegrationDisconnectAlert.js +4 -46
- package/dist/IntegrationDisconnectAlert.js.map +1 -1
- package/dist/IntegrationWalkthroughModal.js +7 -7
- package/dist/IntegrationWalkthroughModal.js.map +1 -1
- package/dist/IpRestriction.js +16 -196
- package/dist/IpRestriction.js.map +1 -1
- package/dist/KeyboardShortcuts.js +24 -119
- package/dist/KeyboardShortcuts.js.map +1 -1
- package/dist/LoginPage.js +22 -445
- package/dist/LoginPage.js.map +1 -1
- package/dist/MenuBar.js +29 -1293
- package/dist/MenuBar.js.map +1 -1
- package/dist/Metadata.js +27 -82
- package/dist/Metadata.js.map +1 -1
- package/dist/MoreDropdown.js +15 -97
- package/dist/MoreDropdown.js.map +1 -1
- package/dist/NavigationHeader.js +39 -709
- package/dist/NavigationHeader.js.map +1 -1
- package/dist/NeetoWidget.js +15 -234
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/Onboarding.js +16 -1212
- package/dist/Onboarding.js.map +1 -1
- package/dist/PageLoader.js +5 -48
- package/dist/PageLoader.js.map +1 -1
- package/dist/PhoneNumber.js +22 -156
- package/dist/PhoneNumber.js.map +1 -1
- package/dist/ProductEmbed.js +83 -172
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/PublishBlock.js +15 -58
- package/dist/PublishBlock.js.map +1 -1
- package/dist/PublishYourItem.js +9 -1190
- package/dist/PublishYourItem.js.map +1 -1
- package/dist/Rename.js +30 -330
- package/dist/Rename.js.map +1 -1
- package/dist/ResponsiveDevicePicker.js +7 -143
- package/dist/ResponsiveDevicePicker.js.map +1 -1
- package/dist/Schedule.js +62 -331
- package/dist/Schedule.js.map +1 -1
- package/dist/Scrollable.js +6 -89
- package/dist/Scrollable.js.map +1 -1
- package/dist/Search.js +7 -143
- package/dist/Search.js.map +1 -1
- package/dist/Security.js +37 -1573
- package/dist/Security.js.map +1 -1
- package/dist/SendToFields.js +41 -124
- package/dist/SendToFields.js.map +1 -1
- package/dist/Settings.js +32 -488
- package/dist/Settings.js.map +1 -1
- package/dist/ShareViaEmail.js +51 -1746
- package/dist/ShareViaEmail.js.map +1 -1
- package/dist/ShareViaLink.js +83 -331
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/Sidebar.js +143 -406
- package/dist/Sidebar.js.map +1 -1
- package/dist/SubHeader.js +27 -105
- package/dist/SubHeader.js.map +1 -1
- package/dist/SuffixedInput.js +15 -120
- package/dist/SuffixedInput.js.map +1 -1
- package/dist/TableWrapper.js +7 -8
- package/dist/TableWrapper.js.map +1 -1
- package/dist/Taxonomy.js +74 -1780
- package/dist/Taxonomy.js.map +1 -1
- package/dist/ThemeSidebar.js +144 -767
- package/dist/ThemeSidebar.js.map +1 -1
- package/dist/TimeFormat.js +8 -44
- package/dist/TimeFormat.js.map +1 -1
- package/dist/TimezoneMismatchModal.js +11 -65
- package/dist/TimezoneMismatchModal.js.map +1 -1
- package/dist/ToggleFeatureCard.js +20 -157
- package/dist/ToggleFeatureCard.js.map +1 -1
- package/dist/cjs/Breadcrumbs.js +2 -3
- package/dist/cjs/Breadcrumbs.js.map +1 -1
- package/dist/cjs/BrowserSupport.js +8 -105
- package/dist/cjs/BrowserSupport.js.map +1 -1
- package/dist/cjs/Builder.js +16 -270
- package/dist/cjs/Builder.js.map +1 -1
- package/dist/cjs/CalendarView.js +23 -308
- package/dist/cjs/CalendarView.js.map +1 -1
- package/dist/cjs/Codeblock.js +12 -206
- package/dist/cjs/Codeblock.js.map +1 -1
- package/dist/cjs/Columns-069368e2.js +216 -0
- package/dist/cjs/Columns-069368e2.js.map +1 -0
- package/dist/cjs/Columns.js +23 -350
- package/dist/cjs/Columns.js.map +1 -1
- package/dist/cjs/Container.js +4 -1186
- package/dist/cjs/Container.js.map +1 -1
- package/dist/cjs/CopyToClipboardButton.js +10 -147
- package/dist/cjs/CopyToClipboardButton.js.map +1 -1
- package/dist/cjs/Currency.js +4 -46
- package/dist/cjs/Currency.js.map +1 -1
- package/dist/cjs/CustomDomain.js +23 -651
- package/dist/cjs/CustomDomain.js.map +1 -1
- package/dist/cjs/CustomDomainDashboard.js +44 -2227
- package/dist/cjs/CustomDomainDashboard.js.map +1 -1
- package/dist/cjs/DateFormat.js +3 -17
- package/dist/cjs/DateFormat.js.map +1 -1
- package/dist/cjs/DateRangeFilter.js +2 -56
- package/dist/cjs/DateRangeFilter.js.map +1 -1
- package/dist/cjs/DocumentEditor.js +14 -123
- package/dist/cjs/DocumentEditor.js.map +1 -1
- package/dist/cjs/DynamicVariables.js +8 -91
- package/dist/cjs/DynamicVariables.js.map +1 -1
- package/dist/cjs/EmailForm.js +23 -1689
- package/dist/cjs/EmailForm.js.map +1 -1
- package/dist/cjs/EmailPreview.js +8 -1189
- package/dist/cjs/EmailPreview.js.map +1 -1
- package/dist/cjs/EmojiPicker.js +4 -72
- package/dist/cjs/EmojiPicker.js.map +1 -1
- package/dist/cjs/EmojiReactions.js +5 -59
- package/dist/cjs/EmojiReactions.js.map +1 -1
- package/dist/cjs/ErrorPage.js +2 -16
- package/dist/cjs/ErrorPage.js.map +1 -1
- package/dist/cjs/FloatingActionMenu.js +48 -1376
- package/dist/cjs/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/Header.js +19 -67
- package/dist/cjs/Header.js.map +1 -1
- package/dist/cjs/HelpPopover.js +11 -93
- package/dist/cjs/HelpPopover.js.map +1 -1
- package/dist/cjs/IconPicker.js +10 -107
- package/dist/cjs/IconPicker.js.map +1 -1
- package/dist/cjs/ImageWithFallback.js +11 -147
- package/dist/cjs/ImageWithFallback.js.map +1 -1
- package/dist/cjs/InlineInput.js +20 -526
- package/dist/cjs/InlineInput.js.map +1 -1
- package/dist/cjs/IntegrationCard.js +8 -207
- package/dist/cjs/IntegrationCard.js.map +1 -1
- package/dist/cjs/IntegrationDisconnectAlert.js +4 -46
- package/dist/cjs/IntegrationDisconnectAlert.js.map +1 -1
- package/dist/cjs/IpRestriction.js +7 -187
- package/dist/cjs/IpRestriction.js.map +1 -1
- package/dist/cjs/KeyboardShortcuts.js +9 -104
- package/dist/cjs/KeyboardShortcuts.js.map +1 -1
- package/dist/cjs/LoginPage.js +12 -435
- package/dist/cjs/LoginPage.js.map +1 -1
- package/dist/cjs/MenuBar.js +24 -1288
- package/dist/cjs/MenuBar.js.map +1 -1
- package/dist/cjs/Metadata.js +6 -61
- package/dist/cjs/Metadata.js.map +1 -1
- package/dist/cjs/MoreDropdown.js +14 -96
- package/dist/cjs/MoreDropdown.js.map +1 -1
- package/dist/cjs/NavigationHeader.js +21 -695
- package/dist/cjs/NavigationHeader.js.map +1 -1
- package/dist/cjs/NeetoWidget.js +18 -238
- package/dist/cjs/NeetoWidget.js.map +1 -1
- package/dist/cjs/Onboarding.js +15 -1211
- package/dist/cjs/Onboarding.js.map +1 -1
- package/dist/cjs/PageLoader.js +8 -51
- package/dist/cjs/PageLoader.js.map +1 -1
- package/dist/cjs/PhoneNumber.js +22 -156
- package/dist/cjs/PhoneNumber.js.map +1 -1
- package/dist/cjs/ProductEmbed.js +28 -118
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/dist/cjs/PublishBlock.js +13 -56
- package/dist/cjs/PublishBlock.js.map +1 -1
- package/dist/cjs/PublishYourItem.js +3 -1184
- package/dist/cjs/PublishYourItem.js.map +1 -1
- package/dist/cjs/Rename.js +23 -323
- package/dist/cjs/Rename.js.map +1 -1
- package/dist/cjs/ResponsiveDevicePicker.js +8 -144
- package/dist/cjs/ResponsiveDevicePicker.js.map +1 -1
- package/dist/cjs/Schedule.js +18 -287
- package/dist/cjs/Schedule.js.map +1 -1
- package/dist/cjs/Scrollable.js +8 -91
- package/dist/cjs/Scrollable.js.map +1 -1
- package/dist/cjs/Search.js +8 -144
- package/dist/cjs/Search.js.map +1 -1
- package/dist/cjs/Security.js +27 -1565
- package/dist/cjs/Security.js.map +1 -1
- package/dist/cjs/SendToFields.js +12 -95
- package/dist/cjs/SendToFields.js.map +1 -1
- package/dist/cjs/Settings.js +18 -476
- package/dist/cjs/Settings.js.map +1 -1
- package/dist/cjs/ShareViaEmail.js +20 -1716
- package/dist/cjs/ShareViaEmail.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +36 -285
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/dist/cjs/Sidebar.js +52 -316
- package/dist/cjs/Sidebar.js.map +1 -1
- package/dist/cjs/SubHeader.js +18 -97
- package/dist/cjs/SubHeader.js.map +1 -1
- package/dist/cjs/SuffixedInput.js +14 -120
- package/dist/cjs/SuffixedInput.js.map +1 -1
- package/dist/cjs/TableWrapper.js +6 -7
- package/dist/cjs/TableWrapper.js.map +1 -1
- package/dist/cjs/Taxonomy.js +36 -1746
- package/dist/cjs/Taxonomy.js.map +1 -1
- package/dist/cjs/ThemeSidebar.js +34 -657
- package/dist/cjs/ThemeSidebar.js.map +1 -1
- package/dist/cjs/TimeFormat.js +8 -49
- package/dist/cjs/TimeFormat.js.map +1 -1
- package/dist/cjs/TimezoneMismatchModal.js +2 -56
- package/dist/cjs/TimezoneMismatchModal.js.map +1 -1
- package/dist/cjs/ToggleFeatureCard.js +15 -152
- package/dist/cjs/ToggleFeatureCard.js.map +1 -1
- package/dist/cjs/defineProperty-886ed289.js +47 -0
- package/dist/cjs/defineProperty-886ed289.js.map +1 -0
- package/dist/cjs/extends-1b35a664.js +19 -0
- package/dist/cjs/extends-1b35a664.js.map +1 -0
- package/dist/cjs/index-248c4f4c.js +1186 -0
- package/dist/cjs/index-248c4f4c.js.map +1 -0
- package/dist/cjs/index-73f9c602.js +454 -0
- package/dist/cjs/index-73f9c602.js.map +1 -0
- package/dist/cjs/index-c55ad2bc.js +375 -0
- package/dist/cjs/index-c55ad2bc.js.map +1 -0
- package/dist/cjs/inject-css-80a5faa3.js +6 -0
- package/dist/cjs/inject-css-80a5faa3.js.map +1 -0
- package/dist/cjs/objectWithoutProperties-2fed2d7d.js +33 -0
- package/dist/cjs/objectWithoutProperties-2fed2d7d.js.map +1 -0
- package/dist/cjs/slicedToArray-f320d9e7.js +61 -0
- package/dist/cjs/slicedToArray-f320d9e7.js.map +1 -0
- package/dist/cjs/toConsumableArray-9abb3858.js +22 -0
- package/dist/cjs/toConsumableArray-9abb3858.js.map +1 -0
- package/dist/defineProperty-549061a7.js +43 -0
- package/dist/defineProperty-549061a7.js.map +1 -0
- package/dist/extends-093996c9.js +17 -0
- package/dist/extends-093996c9.js.map +1 -0
- package/dist/index-372a8b29.js +422 -0
- package/dist/index-372a8b29.js.map +1 -0
- package/dist/index-9720867c.js +372 -0
- package/dist/index-9720867c.js.map +1 -0
- package/dist/index-e5588516.js +1184 -0
- package/dist/index-e5588516.js.map +1 -0
- package/dist/inject-css-c86de496.js +4 -0
- package/dist/inject-css-c86de496.js.map +1 -0
- package/dist/objectWithoutProperties-a0edb288.js +31 -0
- package/dist/objectWithoutProperties-a0edb288.js.map +1 -0
- package/dist/slicedToArray-b4278ecd.js +57 -0
- package/dist/slicedToArray-b4278ecd.js.map +1 -0
- package/dist/toConsumableArray-1cc38429.js +20 -0
- package/dist/toConsumableArray-1cc38429.js.map +1 -0
- package/package.json +1 -3
package/dist/Header.js
CHANGED
|
@@ -1,66 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { _ as _extends } from './extends-093996c9.js';
|
|
2
|
+
import { _ as _defineProperty } from './defineProperty-549061a7.js';
|
|
3
|
+
import React__default from 'react';
|
|
2
4
|
import classnames from 'classnames';
|
|
3
5
|
import { isNotEmpty, noop } from '@bigbinary/neeto-cist';
|
|
4
|
-
import Breadcrumbs from '@bigbinary/neeto-molecules/Breadcrumbs';
|
|
5
|
-
import Search from '@bigbinary/neeto-molecules/Search';
|
|
6
6
|
import { Dropdown as Dropdown$1, Typography } from '@bigbinary/neetoui';
|
|
7
|
+
import Breadcrumbs from './Breadcrumbs.js';
|
|
8
|
+
import Search from './Search.js';
|
|
7
9
|
import { MenuHorizontal } from '@bigbinary/neeto-icons';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
return _extends.apply(this, arguments);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function _typeof(o) {
|
|
25
|
-
"@babel/helpers - typeof";
|
|
26
|
-
|
|
27
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
28
|
-
return typeof o;
|
|
29
|
-
} : function (o) {
|
|
30
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
31
|
-
}, _typeof(o);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function _toPrimitive(input, hint) {
|
|
35
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
36
|
-
var prim = input[Symbol.toPrimitive];
|
|
37
|
-
if (prim !== undefined) {
|
|
38
|
-
var res = prim.call(input, hint || "default");
|
|
39
|
-
if (_typeof(res) !== "object") return res;
|
|
40
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
41
|
-
}
|
|
42
|
-
return (hint === "string" ? String : Number)(input);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function _toPropertyKey(arg) {
|
|
46
|
-
var key = _toPrimitive(arg, "string");
|
|
47
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function _defineProperty(obj, key, value) {
|
|
51
|
-
key = _toPropertyKey(key);
|
|
52
|
-
if (key in obj) {
|
|
53
|
-
Object.defineProperty(obj, key, {
|
|
54
|
-
value: value,
|
|
55
|
-
enumerable: true,
|
|
56
|
-
configurable: true,
|
|
57
|
-
writable: true
|
|
58
|
-
});
|
|
59
|
-
} else {
|
|
60
|
-
obj[key] = value;
|
|
61
|
-
}
|
|
62
|
-
return obj;
|
|
63
|
-
}
|
|
10
|
+
import { n } from './inject-css-c86de496.js';
|
|
11
|
+
import 'react-router-dom';
|
|
12
|
+
import './slicedToArray-b4278ecd.js';
|
|
13
|
+
import './objectWithoutProperties-a0edb288.js';
|
|
14
|
+
import '@bigbinary/neeto-commons-frontend/react-utils/useFuncDebounce';
|
|
15
|
+
import '@bigbinary/neeto-commons-frontend/react-utils/useQueryParams';
|
|
16
|
+
import '@bigbinary/neeto-commons-frontend/react-utils/useUpdateEffect';
|
|
17
|
+
import '@bigbinary/neeto-commons-frontend/utils/general';
|
|
18
|
+
import 'ramda';
|
|
19
|
+
import 'react-i18next';
|
|
64
20
|
|
|
65
21
|
var SIZES = {
|
|
66
22
|
nano: "nano",
|
|
@@ -74,7 +30,7 @@ var DROPDOWN_BUTTON_SIZES = {
|
|
|
74
30
|
};
|
|
75
31
|
|
|
76
32
|
var Dropdown = function Dropdown(props) {
|
|
77
|
-
return /*#__PURE__*/
|
|
33
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends({
|
|
78
34
|
buttonSize: DROPDOWN_BUTTON_SIZES[props.size],
|
|
79
35
|
buttonStyle: "secondary",
|
|
80
36
|
icon: MenuHorizontal,
|
|
@@ -83,8 +39,6 @@ var Dropdown = function Dropdown(props) {
|
|
|
83
39
|
}, props));
|
|
84
40
|
};
|
|
85
41
|
|
|
86
|
-
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}}
|
|
87
|
-
|
|
88
42
|
var css = ":root{--neeto-molecules-main-header-height:98px;--neeto-molecules-main-header-with-breadcrumbs-height:170px}.neeto-molecules-header{align-items:flex-start;background:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;flex-shrink:0;gap:16px;justify-content:space-between;min-height:98px;min-height:var(--neeto-molecules-main-header-height);padding:40px 0 24px;width:100%}@media screen and (max-width:1024px){.neeto-molecules-header{flex-wrap:wrap}}.neeto-molecules-header .neeto-molecules-header__toggle-menubar-btn{margin-right:8px}.neeto-molecules-header .neeto-molecules-header__left{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.neeto-molecules-header .neeto-molecules-header__left-data-wrap{display:flex;flex-wrap:wrap}.neeto-molecules-header .neeto-molecules-header__page-title{align-items:center;display:flex;flex-direction:row;gap:12px;margin-top:-12px;width:100%}@media screen and (max-width:1024px){.neeto-molecules-header .neeto-molecules-header__page-title{margin-top:-10px}}@media screen and (max-width:768px){.neeto-molecules-header .neeto-molecules-header__page-title{margin-top:-8px}}@media screen and (max-width:576px){.neeto-molecules-header .neeto-molecules-header__page-title{margin-top:-4px}}.neeto-molecules-header .neeto-molecules-header__page-title h2{font-size:calc(1.375rem + 1.5vw);line-height:var(--neeto-ui-leading-tight)}@media (min-width:1200px){.neeto-molecules-header .neeto-molecules-header__page-title h2{font-size:2.5rem}}.neeto-molecules-header .neeto-molecules-header__right{align-items:center;display:flex;gap:12px;justify-content:flex-end}@media screen and (max-width:768px){.neeto-molecules-header .neeto-molecules-header__right{flex-wrap:wrap;justify-content:flex-start}}.neeto-molecules-header .neeto-molecules-header__right .neeto-ui-btn{flex-shrink:0}.neeto-molecules-header .neeto-molecules-header__right .neeto-molecules-header__search-input{flex-grow:0;min-width:104px}.neeto-molecules-header .neeto-molecules-header__right .neeto-molecules-header__action-block{align-items:center;display:flex;flex-shrink:0;gap:12px;justify-content:flex-end}@media screen and (max-width:360px){.neeto-molecules-header .neeto-molecules-header__right .neeto-molecules-header__action-block{flex-shrink:1;flex-wrap:wrap;justify-content:flex-start}}.neeto-molecules-header--has-breadcrumbs{min-height:170px;min-height:var(--neeto-molecules-main-header-with-breadcrumbs-height)}.neeto-molecules-header--has-breadcrumbs .neeto-molecules-header__page-title{margin-top:0}.neeto-molecules-header--nano,.neeto-molecules-header--small{flex-shrink:0;min-height:0}.neeto-molecules-header--nano .neeto-molecules-breadcrumbs-wrap,.neeto-molecules-header--small .neeto-molecules-breadcrumbs-wrap{margin:0 0 16px}.neeto-molecules-header--small .neeto-molecules-header__page-title{margin-top:-4px}.neeto-molecules-header--small .neeto-molecules-header__page-title h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.neeto-molecules-header--small .neeto-molecules-header__page-title h2{font-size:2rem}}.neeto-molecules-header--nano .neeto-molecules-header__page-title{margin-top:0}.neeto-molecules-header--nano .neeto-molecules-header__page-title h2{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.neeto-molecules-header--nano .neeto-molecules-header__page-title h2{font-size:1.5rem}}";
|
|
89
43
|
n(css,{});
|
|
90
44
|
|
|
@@ -104,7 +58,7 @@ var Header = function Header(_ref) {
|
|
|
104
58
|
size = _ref$size === void 0 ? "large" : _ref$size,
|
|
105
59
|
_ref$dataTestid = _ref["data-testid"],
|
|
106
60
|
dataTestId = _ref$dataTestid === void 0 ? "neeto-molecules-header" : _ref$dataTestid;
|
|
107
|
-
return /*#__PURE__*/
|
|
61
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
108
62
|
"data-cy": "neeto-molecules-header",
|
|
109
63
|
"data-testid": dataTestId,
|
|
110
64
|
className: classnames(["neeto-molecules-header", {
|
|
@@ -113,29 +67,29 @@ var Header = function Header(_ref) {
|
|
|
113
67
|
"neeto-molecules-header--small": size === SIZES.small,
|
|
114
68
|
"neeto-molecules-header--nano": size === SIZES.nano
|
|
115
69
|
}, className])
|
|
116
|
-
}, /*#__PURE__*/
|
|
70
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
117
71
|
className: "neeto-molecules-header__left"
|
|
118
|
-
}, /*#__PURE__*/
|
|
72
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
119
73
|
className: "neeto-molecules-header__left-data-wrap"
|
|
120
|
-
}, isNotEmpty(breadcrumbs) && /*#__PURE__*/
|
|
74
|
+
}, isNotEmpty(breadcrumbs) && /*#__PURE__*/React__default.createElement(Breadcrumbs, {
|
|
121
75
|
breadcrumbs: breadcrumbs
|
|
122
|
-
}), /*#__PURE__*/
|
|
76
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
123
77
|
className: "neeto-molecules-header__page-title"
|
|
124
|
-
}, /*#__PURE__*/
|
|
78
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
125
79
|
"data-cy": "main-header",
|
|
126
80
|
"data-test-id": "main-header",
|
|
127
81
|
lineHeight: "tight",
|
|
128
82
|
style: "h2",
|
|
129
83
|
weight: "semibold"
|
|
130
84
|
}, title), renderDropdown(function (props) {
|
|
131
|
-
return /*#__PURE__*/
|
|
85
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _objectSpread({
|
|
132
86
|
size: size
|
|
133
87
|
}, props));
|
|
134
|
-
})))), /*#__PURE__*/
|
|
88
|
+
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
135
89
|
className: "neeto-molecules-header__right"
|
|
136
|
-
}, searchProps && /*#__PURE__*/
|
|
90
|
+
}, searchProps && /*#__PURE__*/React__default.createElement(Search, _extends({
|
|
137
91
|
className: classnames(["neeto-molecules-header__search-input", searchProps.className])
|
|
138
|
-
}, searchProps)), actionBlock && /*#__PURE__*/
|
|
92
|
+
}, searchProps)), actionBlock && /*#__PURE__*/React__default.createElement("div", {
|
|
139
93
|
className: "neeto-molecules-header__action-block"
|
|
140
94
|
}, actionBlock)));
|
|
141
95
|
};
|
package/dist/Header.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../src/components/Header/constants.js","../src/components/Header/Dropdown.jsx","../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../src/components/Header/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","const SIZES = { nano: \"nano\", small: \"small\", large: \"large\" };\n\nconst DROPDOWN_BUTTON_SIZES = {\n nano: \"small\",\n small: \"medium\",\n large: \"large\",\n};\n\nexport { SIZES, DROPDOWN_BUTTON_SIZES };\n","import React from \"react\";\n\nimport { MenuHorizontal } from \"neetoicons\";\nimport { Dropdown as NeetoUIDropdown } from \"neetoui\";\n\nimport { DROPDOWN_BUTTON_SIZES } from \"./constants\";\n\nconst Dropdown = props => (\n <NeetoUIDropdown\n buttonSize={DROPDOWN_BUTTON_SIZES[props.size]}\n buttonStyle=\"secondary\"\n icon={MenuHorizontal}\n position=\"bottom-start\"\n strategy=\"fixed\"\n {...props}\n />\n);\n\nexport default Dropdown;\n","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}}export{n as default};\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport { noop, isNotEmpty } from \"neetocist\";\nimport Breadcrumbs from \"neetomolecules/Breadcrumbs\";\nimport Search from \"neetomolecules/Search\";\nimport { Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport { SIZES } from \"./constants\";\nimport Dropdown from \"./Dropdown\";\nimport \"./header.scss\";\n\nconst Header = ({\n title,\n searchProps,\n className = \"\",\n actionBlock,\n breadcrumbs = [],\n renderDropdown = noop,\n size = \"large\",\n \"data-testid\": dataTestId = \"neeto-molecules-header\",\n}) => (\n <div\n data-cy=\"neeto-molecules-header\"\n data-testid={dataTestId}\n className={classnames([\n \"neeto-molecules-header\",\n {\n \"neeto-molecules-header--has-breadcrumbs\": isNotEmpty(breadcrumbs),\n \"neeto-molecules-header--large\": size === SIZES.large,\n \"neeto-molecules-header--small\": size === SIZES.small,\n \"neeto-molecules-header--nano\": size === SIZES.nano,\n },\n className,\n ])}\n >\n <div className=\"neeto-molecules-header__left\">\n <div className=\"neeto-molecules-header__left-data-wrap\">\n {isNotEmpty(breadcrumbs) && <Breadcrumbs {...{ breadcrumbs }} />}\n <div className=\"neeto-molecules-header__page-title\">\n <Typography\n data-cy=\"main-header\"\n data-test-id=\"main-header\"\n lineHeight=\"tight\"\n style=\"h2\"\n weight=\"semibold\"\n >\n {title}\n </Typography>\n {renderDropdown(props => (\n <Dropdown {...{ size, ...props }} />\n ))}\n </div>\n </div>\n </div>\n <div className=\"neeto-molecules-header__right\">\n {searchProps && (\n <Search\n className={classnames([\n \"neeto-molecules-header__search-input\",\n searchProps.className,\n ])}\n {...searchProps}\n />\n )}\n {actionBlock && (\n <div className=\"neeto-molecules-header__action-block\">\n {actionBlock}\n </div>\n )}\n </div>\n </div>\n);\n\nHeader.propTypes = {\n /**\n * To set a title in the Header section.\n */\n title: PropTypes.node,\n /**\n * To specify additional class names.\n */\n className: PropTypes.string,\n /**\n * To specify the content to be rendered in the right side of the Header section.\n */\n\n actionBlock: PropTypes.node,\n /**\n * To add **Search** molecule to the subheader section.\n */\n searchProps: PropTypes.object,\n /**\n * To show breadcrumbs in the Header section. `text` accepts a text string to be shown as the breadcrumb and `link` accepts relative URL path for the breadcrumb.\n */\n breadcrumbs: PropTypes.arrayOf(\n PropTypes.shape({\n text: PropTypes.string,\n link: PropTypes.string,\n })\n ),\n /**\n * A function to render the Dropdown next to the title. It provides the Dropdown component as argument.\n */\n renderDropdown: PropTypes.func,\n /**\n * To specify size of the Header.\n *\n * `large` - Default size. To be used in index pages.\n *\n * `small` - To be used in inner pages.\n *\n * `nano` - To be used in inner pages with menubar.\n */\n size: PropTypes.oneOf([\"nano\", \"small\", \"large\"]),\n};\n\nexport default Header;\n"],"names":["toPrimitive","toPropertyKey","SIZES","nano","small","large","DROPDOWN_BUTTON_SIZES","Dropdown","props","React","createElement","NeetoUIDropdown","_extends","buttonSize","size","buttonStyle","icon","MenuHorizontal","position","strategy","Header","_ref","title","searchProps","_ref$className","className","actionBlock","_ref$breadcrumbs","breadcrumbs","_ref$renderDropdown","renderDropdown","noop","_ref$size","_ref$dataTestid","dataTestId","classnames","isNotEmpty","Breadcrumbs","Typography","lineHeight","style","weight","_objectSpread","Search"],"mappings":";;;;;;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAA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AKe,IAAAA,SAAS,EAAC,oCAAA;AAAoC,GAAA,eACjDhB,KAAA,CAAAC,aAAA,CAAC4B,UAAU,EAAA;AACT,IAAA,SAAA,EAAQ,aAAa;AACrB,IAAA,cAAA,EAAa,aAAa;AAC1BC,IAAAA,UAAU,EAAC,OAAO;AAClBC,IAAAA,KAAK,EAAC,IAAI;AACVC,IAAAA,MAAM,EAAC,UAAA;AAAU,GAAA,EAEhBnB,KACS,CAAC,EACZQ,cAAc,CAAC,UAAAtB,KAAK,EAAA;AAAA,IAAA,oBACnBC,KAAA,CAAAC,aAAA,CAACH,QAAQ,EAAAmC,aAAA,CAAA;AAAO5B,MAAAA,IAAI,EAAJA,IAAAA;KAASN,EAAAA,KAAK,CAAK,CAAC,CAAA;AAAA,GACrC,CACE,CACF,CACF,CAAC,eACNC,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKe,IAAAA,SAAS,EAAC,+BAAA;GACZF,EAAAA,WAAW,iBACVd,KAAA,CAAAC,aAAA,CAACiC,MAAM,EAAA/B,QAAA,CAAA;IACLa,SAAS,EAAEU,UAAU,CAAC,CACpB,sCAAsC,EACtCZ,WAAW,CAACE,SAAS,CACtB,CAAA;GACGF,EAAAA,WAAW,CAChB,CACF,EACAG,WAAW,iBACVjB,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKe,IAAAA,SAAS,EAAC,sCAAA;GACZC,EAAAA,WACE,CAEJ,CACF,CAAC,CAAA;AAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"Header.js","sources":["../src/components/Header/constants.js","../src/components/Header/Dropdown.jsx","../src/components/Header/index.jsx"],"sourcesContent":["const SIZES = { nano: \"nano\", small: \"small\", large: \"large\" };\n\nconst DROPDOWN_BUTTON_SIZES = {\n nano: \"small\",\n small: \"medium\",\n large: \"large\",\n};\n\nexport { SIZES, DROPDOWN_BUTTON_SIZES };\n","import React from \"react\";\n\nimport { MenuHorizontal } from \"neetoicons\";\nimport { Dropdown as NeetoUIDropdown } from \"neetoui\";\n\nimport { DROPDOWN_BUTTON_SIZES } from \"./constants\";\n\nconst Dropdown = props => (\n <NeetoUIDropdown\n buttonSize={DROPDOWN_BUTTON_SIZES[props.size]}\n buttonStyle=\"secondary\"\n icon={MenuHorizontal}\n position=\"bottom-start\"\n strategy=\"fixed\"\n {...props}\n />\n);\n\nexport default Dropdown;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport { noop, isNotEmpty } from \"neetocist\";\nimport { Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport Breadcrumbs from \"components/Breadcrumbs\";\nimport Search from \"components/Search\";\n\nimport { SIZES } from \"./constants\";\nimport Dropdown from \"./Dropdown\";\nimport \"./header.scss\";\n\nconst Header = ({\n title,\n searchProps,\n className = \"\",\n actionBlock,\n breadcrumbs = [],\n renderDropdown = noop,\n size = \"large\",\n \"data-testid\": dataTestId = \"neeto-molecules-header\",\n}) => (\n <div\n data-cy=\"neeto-molecules-header\"\n data-testid={dataTestId}\n className={classnames([\n \"neeto-molecules-header\",\n {\n \"neeto-molecules-header--has-breadcrumbs\": isNotEmpty(breadcrumbs),\n \"neeto-molecules-header--large\": size === SIZES.large,\n \"neeto-molecules-header--small\": size === SIZES.small,\n \"neeto-molecules-header--nano\": size === SIZES.nano,\n },\n className,\n ])}\n >\n <div className=\"neeto-molecules-header__left\">\n <div className=\"neeto-molecules-header__left-data-wrap\">\n {isNotEmpty(breadcrumbs) && <Breadcrumbs {...{ breadcrumbs }} />}\n <div className=\"neeto-molecules-header__page-title\">\n <Typography\n data-cy=\"main-header\"\n data-test-id=\"main-header\"\n lineHeight=\"tight\"\n style=\"h2\"\n weight=\"semibold\"\n >\n {title}\n </Typography>\n {renderDropdown(props => (\n <Dropdown {...{ size, ...props }} />\n ))}\n </div>\n </div>\n </div>\n <div className=\"neeto-molecules-header__right\">\n {searchProps && (\n <Search\n className={classnames([\n \"neeto-molecules-header__search-input\",\n searchProps.className,\n ])}\n {...searchProps}\n />\n )}\n {actionBlock && (\n <div className=\"neeto-molecules-header__action-block\">\n {actionBlock}\n </div>\n )}\n </div>\n </div>\n);\n\nHeader.propTypes = {\n /**\n * To set a title in the Header section.\n */\n title: PropTypes.node,\n /**\n * To specify additional class names.\n */\n className: PropTypes.string,\n /**\n * To specify the content to be rendered in the right side of the Header section.\n */\n\n actionBlock: PropTypes.node,\n /**\n * To add **Search** molecule to the subheader section.\n */\n searchProps: PropTypes.object,\n /**\n * To show breadcrumbs in the Header section. `text` accepts a text string to be shown as the breadcrumb and `link` accepts relative URL path for the breadcrumb.\n */\n breadcrumbs: PropTypes.arrayOf(\n PropTypes.shape({\n text: PropTypes.string,\n link: PropTypes.string,\n })\n ),\n /**\n * A function to render the Dropdown next to the title. It provides the Dropdown component as argument.\n */\n renderDropdown: PropTypes.func,\n /**\n * To specify size of the Header.\n *\n * `large` - Default size. To be used in index pages.\n *\n * `small` - To be used in inner pages.\n *\n * `nano` - To be used in inner pages with menubar.\n */\n size: PropTypes.oneOf([\"nano\", \"small\", \"large\"]),\n};\n\nexport default Header;\n"],"names":["SIZES","nano","small","large","DROPDOWN_BUTTON_SIZES","Dropdown","props","React","createElement","NeetoUIDropdown","_extends","buttonSize","size","buttonStyle","icon","MenuHorizontal","position","strategy","Header","_ref","title","searchProps","_ref$className","className","actionBlock","_ref$breadcrumbs","breadcrumbs","_ref$renderDropdown","renderDropdown","noop","_ref$size","_ref$dataTestid","dataTestId","classnames","isNotEmpty","Breadcrumbs","Typography","lineHeight","style","weight","_objectSpread","Search"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAMA,KAAK,GAAG;AAAEC,EAAAA,IAAI,EAAE,MAAM;AAAEC,EAAAA,KAAK,EAAE,OAAO;AAAEC,EAAAA,KAAK,EAAE,OAAA;AAAQ,CAAC,CAAA;AAE9D,IAAMC,qBAAqB,GAAG;AAC5BH,EAAAA,IAAI,EAAE,OAAO;AACbC,EAAAA,KAAK,EAAE,QAAQ;AACfC,EAAAA,KAAK,E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AAAA,GACrC,CACE,CACF,CACF,CAAC,eACNC,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKe,IAAAA,SAAS,EAAC,+BAAA;GACZF,EAAAA,WAAW,iBACVd,cAAA,CAAAC,aAAA,CAACiC,MAAM,EAAA/B,QAAA,CAAA;IACLa,SAAS,EAAEU,UAAU,CAAC,CACpB,sCAAsC,EACtCZ,WAAW,CAACE,SAAS,CACtB,CAAA;GACGF,EAAAA,WAAW,CAChB,CACF,EACAG,WAAW,iBACVjB,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKe,IAAAA,SAAS,EAAC,sCAAA;GACZC,EAAAA,WACE,CAEJ,CACF,CAAC,CAAA;AAAA;;;;"}
|
package/dist/HelpPopover.js
CHANGED
|
@@ -1,94 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { _ as _defineProperty } from './defineProperty-549061a7.js';
|
|
2
|
+
import { _ as _extends } from './extends-093996c9.js';
|
|
3
|
+
import { _ as _objectWithoutProperties } from './objectWithoutProperties-a0edb288.js';
|
|
4
|
+
import React__default, { useRef } from 'react';
|
|
5
|
+
import classnames from 'classnames';
|
|
3
6
|
import { isNotPresent } from '@bigbinary/neeto-cist';
|
|
4
7
|
import { Help } from '@bigbinary/neeto-icons';
|
|
5
8
|
import { Popover, Button, Tooltip, Typography } from '@bigbinary/neetoui';
|
|
6
9
|
|
|
7
|
-
function _typeof(o) {
|
|
8
|
-
"@babel/helpers - typeof";
|
|
9
|
-
|
|
10
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
11
|
-
return typeof o;
|
|
12
|
-
} : function (o) {
|
|
13
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
14
|
-
}, _typeof(o);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function _toPrimitive(input, hint) {
|
|
18
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
19
|
-
var prim = input[Symbol.toPrimitive];
|
|
20
|
-
if (prim !== undefined) {
|
|
21
|
-
var res = prim.call(input, hint || "default");
|
|
22
|
-
if (_typeof(res) !== "object") return res;
|
|
23
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
24
|
-
}
|
|
25
|
-
return (hint === "string" ? String : Number)(input);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function _toPropertyKey(arg) {
|
|
29
|
-
var key = _toPrimitive(arg, "string");
|
|
30
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function _defineProperty(obj, key, value) {
|
|
34
|
-
key = _toPropertyKey(key);
|
|
35
|
-
if (key in obj) {
|
|
36
|
-
Object.defineProperty(obj, key, {
|
|
37
|
-
value: value,
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true,
|
|
40
|
-
writable: true
|
|
41
|
-
});
|
|
42
|
-
} else {
|
|
43
|
-
obj[key] = value;
|
|
44
|
-
}
|
|
45
|
-
return obj;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _extends() {
|
|
49
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
50
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
51
|
-
var source = arguments[i];
|
|
52
|
-
for (var key in source) {
|
|
53
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
54
|
-
target[key] = source[key];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return target;
|
|
59
|
-
};
|
|
60
|
-
return _extends.apply(this, arguments);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
64
|
-
if (source == null) return {};
|
|
65
|
-
var target = {};
|
|
66
|
-
var sourceKeys = Object.keys(source);
|
|
67
|
-
var key, i;
|
|
68
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
69
|
-
key = sourceKeys[i];
|
|
70
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
71
|
-
target[key] = source[key];
|
|
72
|
-
}
|
|
73
|
-
return target;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function _objectWithoutProperties(source, excluded) {
|
|
77
|
-
if (source == null) return {};
|
|
78
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
79
|
-
var key, i;
|
|
80
|
-
if (Object.getOwnPropertySymbols) {
|
|
81
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
82
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
83
|
-
key = sourceSymbolKeys[i];
|
|
84
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
85
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
86
|
-
target[key] = source[key];
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return target;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
10
|
var SIZE = {
|
|
93
11
|
"default": 16,
|
|
94
12
|
large: 20
|
|
@@ -107,39 +25,39 @@ var HelpPopover = function HelpPopover(_ref) {
|
|
|
107
25
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
108
26
|
var helpIconRef = useRef();
|
|
109
27
|
var isCompact = isNotPresent(title) && isNotPresent(helpLinkProps);
|
|
110
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button, _extends({}, otherProps, {
|
|
111
29
|
"data-cy": "help-popover-button",
|
|
112
30
|
"data-testid": "help-popover-button",
|
|
113
31
|
icon: function icon() {
|
|
114
|
-
return /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/React__default.createElement(Help, {
|
|
115
33
|
size: SIZE[size]
|
|
116
34
|
});
|
|
117
35
|
},
|
|
118
36
|
ref: helpIconRef,
|
|
119
37
|
style: "text",
|
|
120
|
-
className:
|
|
121
|
-
})), /*#__PURE__*/
|
|
38
|
+
className: classnames("neeto-molecule-help-popover-trigger neeto-ui-rounded-full bg-transparent p-0", className)
|
|
39
|
+
})), /*#__PURE__*/React__default.createElement(Tooltip, _extends({
|
|
122
40
|
appendTo: function appendTo() {
|
|
123
41
|
return document.body;
|
|
124
42
|
}
|
|
125
43
|
}, popoverProps, {
|
|
126
44
|
interactive: true,
|
|
127
45
|
arrow: isCompact ? undefined : true,
|
|
128
|
-
className:
|
|
46
|
+
className: classnames(_defineProperty({}, "neeto-ui-popover", !isCompact)),
|
|
129
47
|
reference: helpIconRef,
|
|
130
48
|
role: "tooltip",
|
|
131
49
|
theme: isCompact ? "dark" : "light",
|
|
132
|
-
content: /*#__PURE__*/
|
|
50
|
+
content: /*#__PURE__*/React__default.createElement("div", {
|
|
133
51
|
className: "flex flex-col"
|
|
134
|
-
}, title && /*#__PURE__*/
|
|
52
|
+
}, title && /*#__PURE__*/React__default.createElement(Title, {
|
|
135
53
|
"data-cy": "help-popover-title",
|
|
136
54
|
"data-testid": "help-popover-title"
|
|
137
|
-
}, title), typeof description === "string" && !isCompact ? /*#__PURE__*/
|
|
55
|
+
}, title), typeof description === "string" && !isCompact ? /*#__PURE__*/React__default.createElement(Typography, {
|
|
138
56
|
"data-cy": "help-popover-description",
|
|
139
57
|
"data-testid": "help-popover-description",
|
|
140
58
|
lineHeight: "normal",
|
|
141
59
|
style: "body2"
|
|
142
|
-
}, description) : description, helpLinkProps && /*#__PURE__*/
|
|
60
|
+
}, description) : description, helpLinkProps && /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
143
61
|
className: "neeto-ui-mt-3",
|
|
144
62
|
"data-cy": "help-popover-link-button",
|
|
145
63
|
label: "View help article",
|
package/dist/HelpPopover.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpPopover.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../src/components/HelpPopover/constants.js","../src/components/HelpPopover/index.jsx"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export const SIZE = { default: 16, large: 20 };\n","import React, { useRef } from \"react\";\n\nimport classNames from \"classnames\";\nimport { isNotPresent } from \"neetocist\";\nimport { Help } from \"neetoicons\";\nimport { Button, Popover, Tooltip, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport { SIZE } from \"./constants\";\n\nconst { Title } = Popover;\n\nconst HelpPopover = ({\n title,\n size = \"default\",\n description,\n helpLinkProps,\n popoverProps,\n className,\n ...otherProps\n}) => {\n const helpIconRef = useRef();\n\n const isCompact = isNotPresent(title) && isNotPresent(helpLinkProps);\n\n return (\n <>\n <Button\n {...otherProps}\n data-cy=\"help-popover-button\"\n data-testid=\"help-popover-button\"\n icon={() => <Help size={SIZE[size]} />}\n ref={helpIconRef}\n style=\"text\"\n className={classNames(\n \"neeto-molecule-help-popover-trigger neeto-ui-rounded-full bg-transparent p-0\",\n className\n )}\n />\n <Tooltip\n appendTo={() => document.body}\n {...popoverProps}\n interactive\n arrow={isCompact ? undefined : true}\n className={classNames({ [\"neeto-ui-popover\"]: !isCompact })}\n reference={helpIconRef}\n role=\"tooltip\"\n theme={isCompact ? \"dark\" : \"light\"}\n content={\n <div className=\"flex flex-col\">\n {title && (\n <Title\n data-cy=\"help-popover-title\"\n data-testid=\"help-popover-title\"\n >\n {title}\n </Title>\n )}\n {typeof description === \"string\" && !isCompact ? (\n <Typography\n data-cy=\"help-popover-description\"\n data-testid=\"help-popover-description\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {description}\n </Typography>\n ) : (\n description\n )}\n {helpLinkProps && (\n <Button\n className=\"neeto-ui-mt-3\"\n data-cy=\"help-popover-link-button\"\n label=\"View help article\"\n size=\"small\"\n {...helpLinkProps}\n data-testid=\"help-popover-link-button\"\n style=\"link\"\n target=\"_blank\"\n />\n )}\n </div>\n }\n />\n </>\n );\n};\n\nHelpPopover.propTypes = {\n /**\n * To set the title of the help popover.\n */\n title: PropTypes.string,\n /**\n * To set the size of the popover help icon.\n */\n size: PropTypes.oneOf([\"default\", \"large\"]),\n /**\n * To set the description of the popover, this can be a string or a custom component.\n */\n description: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n /**\n * To set the props of the help link which is displayed below the description.\n */\n helpLinkProps: PropTypes.object,\n /**\n * To set the props of the popover to customize it further.\n */\n popoverProps: PropTypes.object,\n /**\n * Additional classes passed on to the help button element.\n */\n className: PropTypes.string,\n};\n\nexport default HelpPopover;\n"],"names":["toPrimitive","toPropertyKey","objectWithoutPropertiesLoose","SIZE","large","Title","Popover","HelpPopover","_ref","title","_ref$size","size","description","helpLinkProps","popoverProps","className","otherProps","_objectWithoutProperties","_excluded","helpIconRef","useRef","isCompact","isNotPresent","React","createElement","Fragment","Button","_extends","icon","Help","ref","style","classNames","Tooltip","appendTo","document","body","interactive","arrow","undefined","_defineProperty","reference","role","theme","content","Typography","lineHeight","label","target"],"mappings":";;;;;;AAAe,SAAS,OAAO,CAAC,CAAC,EAAE;AACnC,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,EAAE;AACpG,IAAI,OAAO,OAAO,CAAC,CAAC;AACpB,GAAG,GAAG,UA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AACzBpC,MAAAA,IAAI,EAAC,OAAA;AAAO,KAAA,EACRE,aAAa,EAAA;AACjB,MAAA,aAAA,EAAY,0BAA0B;AACtCkB,MAAAA,KAAK,EAAC,MAAM;AACZiB,MAAAA,MAAM,EAAC,QAAA;AAAQ,KAAA,CAChB,CAEA,CAAA;AACN,GAAA,CACF,CACD,CAAC,CAAA;AAEP;;;;"}
|
|
1
|
+
{"version":3,"file":"HelpPopover.js","sources":["../src/components/HelpPopover/constants.js","../src/components/HelpPopover/index.jsx"],"sourcesContent":["export const SIZE = { default: 16, large: 20 };\n","import React, { useRef } from \"react\";\n\nimport classNames from \"classnames\";\nimport { isNotPresent } from \"neetocist\";\nimport { Help } from \"neetoicons\";\nimport { Button, Popover, Tooltip, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport { SIZE } from \"./constants\";\n\nconst { Title } = Popover;\n\nconst HelpPopover = ({\n title,\n size = \"default\",\n description,\n helpLinkProps,\n popoverProps,\n className,\n ...otherProps\n}) => {\n const helpIconRef = useRef();\n\n const isCompact = isNotPresent(title) && isNotPresent(helpLinkProps);\n\n return (\n <>\n <Button\n {...otherProps}\n data-cy=\"help-popover-button\"\n data-testid=\"help-popover-button\"\n icon={() => <Help size={SIZE[size]} />}\n ref={helpIconRef}\n style=\"text\"\n className={classNames(\n \"neeto-molecule-help-popover-trigger neeto-ui-rounded-full bg-transparent p-0\",\n className\n )}\n />\n <Tooltip\n appendTo={() => document.body}\n {...popoverProps}\n interactive\n arrow={isCompact ? undefined : true}\n className={classNames({ [\"neeto-ui-popover\"]: !isCompact })}\n reference={helpIconRef}\n role=\"tooltip\"\n theme={isCompact ? \"dark\" : \"light\"}\n content={\n <div className=\"flex flex-col\">\n {title && (\n <Title\n data-cy=\"help-popover-title\"\n data-testid=\"help-popover-title\"\n >\n {title}\n </Title>\n )}\n {typeof description === \"string\" && !isCompact ? (\n <Typography\n data-cy=\"help-popover-description\"\n data-testid=\"help-popover-description\"\n lineHeight=\"normal\"\n style=\"body2\"\n >\n {description}\n </Typography>\n ) : (\n description\n )}\n {helpLinkProps && (\n <Button\n className=\"neeto-ui-mt-3\"\n data-cy=\"help-popover-link-button\"\n label=\"View help article\"\n size=\"small\"\n {...helpLinkProps}\n data-testid=\"help-popover-link-button\"\n style=\"link\"\n target=\"_blank\"\n />\n )}\n </div>\n }\n />\n </>\n );\n};\n\nHelpPopover.propTypes = {\n /**\n * To set the title of the help popover.\n */\n title: PropTypes.string,\n /**\n * To set the size of the popover help icon.\n */\n size: PropTypes.oneOf([\"default\", \"large\"]),\n /**\n * To set the description of the popover, this can be a string or a custom component.\n */\n description: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n /**\n * To set the props of the help link which is displayed below the description.\n */\n helpLinkProps: PropTypes.object,\n /**\n * To set the props of the popover to customize it further.\n */\n popoverProps: PropTypes.object,\n /**\n * Additional classes passed on to the help button element.\n */\n className: PropTypes.string,\n};\n\nexport default HelpPopover;\n"],"names":["SIZE","large","Title","Popover","HelpPopover","_ref","title","_ref$size","size","description","helpLinkProps","popoverProps","className","otherProps","_objectWithoutProperties","_excluded","helpIconRef","useRef","isCompact","isNotPresent","React","createElement","Fragment","Button","_extends","icon","Help","ref","style","classNames","Tooltip","appendTo","document","body","interactive","arrow","undefined","_defineProperty","reference","role","theme","content","Typography","lineHeight","label","target"],"mappings":";;;;;;;;;AAAO,IAAMA,IAAI,GAAG;AAAE,EAAA,SAAA,EAAS,EAAE;AAAEC,EAAAA,KAAK,EAAE,EAAA;AAAG,CAAC;;;ACU9C,IAAQC,KAAK,GAAKC,OAAO,CAAjBD,KAAK,CAAA;AAEb,IAAME,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAQX;AAAA,EAAA,IAPJC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAAC,SAAA,GAAAF,IAAA,CACLG,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAG,KAAA,CAAA,GAAA,SAAS,GAAAA,SAAA;IAChBE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