@bigbinary/neetoui 6.5.7 → 6.5.8

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.
Files changed (49) hide show
  1. package/{formik.js → dist/TreeSelect-54c59138.js} +336 -5933
  2. package/dist/TreeSelect-54c59138.js.map +1 -0
  3. package/{layouts.js → dist/Typography-6b2170d4.js} +1883 -730
  4. package/dist/Typography-6b2170d4.js.map +1 -0
  5. package/{formik.cjs.js → dist/cjs/TreeSelect-40898804.js} +555 -6139
  6. package/dist/cjs/TreeSelect-40898804.js.map +1 -0
  7. package/{layouts.cjs.js → dist/cjs/Typography-3f90f925.js} +1905 -727
  8. package/dist/cjs/Typography-3f90f925.js.map +1 -0
  9. package/dist/cjs/createClass-ca103cfb.js +57 -0
  10. package/dist/cjs/createClass-ca103cfb.js.map +1 -0
  11. package/dist/cjs/formik.js +624 -0
  12. package/dist/cjs/formik.js.map +1 -0
  13. package/dist/cjs/index-099304bb.js +104 -0
  14. package/dist/cjs/index-099304bb.js.map +1 -0
  15. package/dist/cjs/index.js +13748 -0
  16. package/dist/cjs/index.js.map +1 -0
  17. package/dist/cjs/layouts.js +375 -0
  18. package/dist/cjs/layouts.js.map +1 -0
  19. package/dist/cjs/managers.js +11 -0
  20. package/dist/cjs/managers.js.map +1 -0
  21. package/{managers.cjs.js → dist/cjs/overlayManager-a0827ae7.js} +4 -54
  22. package/dist/cjs/overlayManager-a0827ae7.js.map +1 -0
  23. package/dist/createClass-27bd48bc.js +52 -0
  24. package/dist/createClass-27bd48bc.js.map +1 -0
  25. package/dist/formik.js +604 -0
  26. package/dist/formik.js.map +1 -0
  27. package/dist/index-ed90c85d.js +98 -0
  28. package/dist/index-ed90c85d.js.map +1 -0
  29. package/dist/index.css +4 -0
  30. package/dist/index.js +13683 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/layouts.js +367 -0
  33. package/dist/layouts.js.map +1 -0
  34. package/dist/managers.js +3 -0
  35. package/dist/managers.js.map +1 -0
  36. package/{managers.js → dist/overlayManager-4d5be56b.js} +3 -51
  37. package/dist/overlayManager-4d5be56b.js.map +1 -0
  38. package/package.json +13 -17
  39. package/formik.cjs.js.map +0 -1
  40. package/formik.js.map +0 -1
  41. package/index.cjs.js +0 -42484
  42. package/index.cjs.js.map +0 -1
  43. package/index.js +0 -42414
  44. package/index.js.map +0 -1
  45. package/layouts.cjs.js.map +0 -1
  46. package/layouts.js.map +0 -1
  47. package/managers.cjs.js.map +0 -1
  48. package/managers.js.map +0 -1
  49. /package/{index.css → dist/cjs/index.css} +0 -0
@@ -0,0 +1,367 @@
1
+ import React__default, { forwardRef, useState } from 'react';
2
+ import { j as Typography, T as Tooltip, c as classnames, _ as _objectWithoutProperties, a as _extends, n as noop, b as _defineProperty, d as _slicedToArray } from './Typography-6b2170d4.js';
3
+ import { AppSwitcher as AppSwitcher$1, Help, Book, Keyboard, ChatEmpty, Gift } from '@bigbinary/neeto-icons';
4
+ import { values } from 'ramda';
5
+ import { A as Avatar } from './index-ed90c85d.js';
6
+ import { Neeto } from '@bigbinary/neeto-icons/logos';
7
+ import { useLocation, NavLink } from 'react-router-dom';
8
+ import './createClass-27bd48bc.js';
9
+ import '@bigbinary/neeto-cist';
10
+ import 'util';
11
+ import 'react-dom';
12
+
13
+ var FeaturedTooltip = function FeaturedTooltip(_ref) {
14
+ var label = _ref.label,
15
+ description = _ref.description;
16
+ return /*#__PURE__*/React__default.createElement("div", {
17
+ className: "neeto-ui-flex neeto-ui-flex-col sidebar-featured-tooltip"
18
+ }, /*#__PURE__*/React__default.createElement(Typography, {
19
+ className: "neeto-ui-text-center sidebar-featured-tooltip__title",
20
+ lineHeight: "tight",
21
+ style: "h5",
22
+ weight: "semibold"
23
+ }, label), description && /*#__PURE__*/React__default.createElement(Typography, {
24
+ className: "neeto-ui-text-center neeto-ui-text-gray-400 sidebar-featured-tooltip__description",
25
+ lineHeight: "normal",
26
+ style: "body3"
27
+ }, description));
28
+ };
29
+
30
+ var TOOLTIP_STYLES$1 = {
31
+ "default": "default",
32
+ featured: "featured"
33
+ };
34
+ var NavIconWrapper = function NavIconWrapper(_ref) {
35
+ var tooltipStyle = _ref.tooltipStyle,
36
+ description = _ref.description,
37
+ icon = _ref.icon,
38
+ label = _ref.label,
39
+ children = _ref.children;
40
+ var tooltipContent = tooltipStyle === TOOLTIP_STYLES$1.featured ? /*#__PURE__*/React__default.createElement(FeaturedTooltip, {
41
+ description: description,
42
+ icon: icon,
43
+ label: label
44
+ }) : label;
45
+ var content = /*#__PURE__*/React__default.createElement(Tooltip, {
46
+ content: tooltipContent,
47
+ delay: [400, 40],
48
+ duration: [200, 200],
49
+ position: "right",
50
+ className: classnames({
51
+ "sidebar-featured-tooltip__content": tooltipStyle === TOOLTIP_STYLES$1.featured
52
+ })
53
+ }, children);
54
+ return content;
55
+ };
56
+
57
+ var AppSwitcher = function AppSwitcher(_ref) {
58
+ var tooltipStyle = _ref.tooltipStyle,
59
+ onAppSwitcherToggle = _ref.onAppSwitcherToggle;
60
+ return /*#__PURE__*/React__default.createElement(NavIconWrapper, {
61
+ icon: /*#__PURE__*/React__default.createElement(AppSwitcher$1, null),
62
+ label: "Product switcher",
63
+ tooltipStyle: tooltipStyle
64
+ }, /*#__PURE__*/React__default.createElement("button", {
65
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-start neeto-ui-w-full neeto-ui-select-none neeto-ui-sidebar__link neeto-ui-sidebar__link--app-switcher neeto-ui-sidebar__link--button shadow-none",
66
+ "data-cy": "app-switcher-button",
67
+ onClick: onAppSwitcherToggle
68
+ }, /*#__PURE__*/React__default.createElement("span", {
69
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-sidebar__link-icon"
70
+ }, /*#__PURE__*/React__default.createElement(AppSwitcher$1, {
71
+ size: 24
72
+ }))));
73
+ };
74
+
75
+ /* eslint-disable react/display-name */
76
+ var HelpSection = /*#__PURE__*/forwardRef(function (_, ref) {
77
+ return /*#__PURE__*/React__default.createElement("button", {
78
+ className: "neeto-ui-sidebar__link neeto-ui-sidebar__link--button shadow-none",
79
+ "data-cy": "help-button",
80
+ ref: ref
81
+ }, /*#__PURE__*/React__default.createElement("span", {
82
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-sidebar__link-icon"
83
+ }, /*#__PURE__*/React__default.createElement(Help, {
84
+ size: 24
85
+ })));
86
+ });
87
+ HelpSection.displayName = "HelpSection";
88
+
89
+ var _excluded$2 = ["onClick", "label", "icon"];
90
+ var HelpLinkSection = function HelpLinkSection(_ref) {
91
+ var links = _ref.links;
92
+ return /*#__PURE__*/React__default.createElement("ul", null, links === null || links === void 0 ? void 0 : links.map(function (_ref2, idx) {
93
+ var _ref2$onClick = _ref2.onClick,
94
+ onClick = _ref2$onClick === void 0 ? noop : _ref2$onClick,
95
+ _ref2$label = _ref2.label,
96
+ label = _ref2$label === void 0 ? "" : _ref2$label,
97
+ _ref2$icon = _ref2.icon,
98
+ icon = _ref2$icon === void 0 ? null : _ref2$icon,
99
+ otherProps = _objectWithoutProperties(_ref2, _excluded$2);
100
+ var IconSVG = icon;
101
+ return /*#__PURE__*/React__default.createElement("li", {
102
+ className: "neeto-ui-help-sublist__item",
103
+ key: idx
104
+ }, /*#__PURE__*/React__default.createElement("button", _extends({
105
+ className: "neeto-ui-help-sublist__item-btn",
106
+ onClick: onClick
107
+ }, otherProps), icon && /*#__PURE__*/React__default.createElement("span", {
108
+ className: "neeto-ui-help-sublist__item-btn-icon"
109
+ }, /*#__PURE__*/React__default.createElement(IconSVG, null)), /*#__PURE__*/React__default.createElement(Typography, {
110
+ className: "neeto-ui-help-sublist__item-btn-label",
111
+ component: "span",
112
+ style: "body2",
113
+ weight: "normal"
114
+ }, label)));
115
+ }));
116
+ };
117
+
118
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
119
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
120
+ var HelpSectionTooltip = function HelpSectionTooltip(_ref) {
121
+ var helpSectionProps = _ref.helpSectionProps;
122
+ var documentationProps = helpSectionProps.documentationProps,
123
+ keyboardShortcutProps = helpSectionProps.keyboardShortcutProps,
124
+ liveChatProps = helpSectionProps.liveChatProps,
125
+ changelogProps = helpSectionProps.changelogProps;
126
+ var helpLinks = [documentationProps && _objectSpread(_objectSpread({}, documentationProps), {}, {
127
+ label: "Documentation",
128
+ icon: Book,
129
+ "data-cy": "help-link-documentation-button"
130
+ }), keyboardShortcutProps && _objectSpread(_objectSpread({}, keyboardShortcutProps), {}, {
131
+ label: "Keyboard shortcuts",
132
+ icon: Keyboard,
133
+ "data-cy": "help-link-keyboard-shortcut-button"
134
+ }), liveChatProps && _objectSpread(_objectSpread({}, liveChatProps), {}, {
135
+ label: "Chat with us",
136
+ icon: ChatEmpty,
137
+ "data-cy": "help-link-live-chat-button"
138
+ }), changelogProps && _objectSpread(_objectSpread({}, changelogProps), {}, {
139
+ label: "What's new?",
140
+ icon: Gift,
141
+ "data-cy": "help-link-changelog-button"
142
+ })].filter(Boolean);
143
+ return /*#__PURE__*/React__default.createElement(HelpLinkSection, {
144
+ links: values(helpLinks)
145
+ });
146
+ };
147
+
148
+ /* eslint-disable react/display-name */
149
+ var ProfileSection = /*#__PURE__*/forwardRef(function (_ref, ref) {
150
+ var profileInfo = _ref.profileInfo,
151
+ onClick = _ref.onClick;
152
+ var dataCy = profileInfo["data-cy"] || "profile-section";
153
+ return /*#__PURE__*/React__default.createElement("button", {
154
+ className: "neeto-ui-w-full neeto-ui-text-left neeto-ui-sidebar__profile-wrapper",
155
+ "data-cy": dataCy,
156
+ ref: ref,
157
+ onClick: onClick
158
+ }, /*#__PURE__*/React__default.createElement("span", {
159
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-flex-shrink-0 neeto-ui-w-full neeto-ui-sidebar__profile"
160
+ }, /*#__PURE__*/React__default.createElement(Avatar, {
161
+ className: "neeto-ui-flex-shrink-0",
162
+ size: "large",
163
+ user: profileInfo
164
+ })));
165
+ });
166
+ ProfileSection.displayName = "ProfileSection";
167
+
168
+ var _excluded$1 = ["onClick", "label", "icon"];
169
+ var LinkSection = function LinkSection(_ref) {
170
+ var links = _ref.links;
171
+ return /*#__PURE__*/React__default.createElement("ul", {
172
+ className: "neeto-ui-profile-sublist"
173
+ }, links === null || links === void 0 ? void 0 : links.map(function (_ref2, idx) {
174
+ var onClick = _ref2.onClick,
175
+ label = _ref2.label,
176
+ _ref2$icon = _ref2.icon,
177
+ icon = _ref2$icon === void 0 ? null : _ref2$icon,
178
+ otherProps = _objectWithoutProperties(_ref2, _excluded$1);
179
+ var IconSVG = icon;
180
+ return /*#__PURE__*/React__default.createElement("li", {
181
+ className: "neeto-ui-profile-sublist__item",
182
+ key: idx
183
+ }, /*#__PURE__*/React__default.createElement("button", _extends({
184
+ onClick: onClick
185
+ }, otherProps, {
186
+ className: "neeto-ui-profile-sublist__item-btn"
187
+ }), icon && /*#__PURE__*/React__default.createElement("span", {
188
+ className: "neeto-ui-profile-sublist__item-btn-icon"
189
+ }, /*#__PURE__*/React__default.createElement(IconSVG, null)), /*#__PURE__*/React__default.createElement(Typography, {
190
+ className: "neeto-ui-profile-sublist__item-btn-label",
191
+ component: "span",
192
+ style: "body2",
193
+ weight: "normal"
194
+ }, label)));
195
+ }));
196
+ };
197
+
198
+ var truncate = function truncate(str, length) {
199
+ return str && str.length > length ? "".concat(str.substring(0, length - 3), "...") : str;
200
+ };
201
+
202
+ var ProfileSectionTooltip = function ProfileSectionTooltip(_ref) {
203
+ var profileInfo = _ref.profileInfo;
204
+ var name = profileInfo.name,
205
+ email = profileInfo.email,
206
+ topLinks = profileInfo.topLinks,
207
+ bottomLinks = profileInfo.bottomLinks,
208
+ customContent = profileInfo.customContent;
209
+ return /*#__PURE__*/React__default.createElement("div", {
210
+ className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-profile-popup"
211
+ }, /*#__PURE__*/React__default.createElement("div", {
212
+ className: classnames("neeto-ui-relative neeto-ui-flex neeto-ui-items-center neeto-ui-p-3")
213
+ }, /*#__PURE__*/React__default.createElement("div", {
214
+ className: "top-0 left-0"
215
+ }, /*#__PURE__*/React__default.createElement(Avatar, {
216
+ size: "large",
217
+ user: profileInfo
218
+ })), /*#__PURE__*/React__default.createElement("div", {
219
+ className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-grow neeto-ui-min-w-0 neeto-ui-pl-3"
220
+ }, /*#__PURE__*/React__default.createElement(Typography, {
221
+ className: "neeto-ui-m-0",
222
+ component: "h2",
223
+ lineHeight: "tight",
224
+ style: "h5",
225
+ title: name,
226
+ weight: "semibold"
227
+ }, truncate(name, 18)), email && /*#__PURE__*/React__default.createElement(Typography, {
228
+ className: "neeto-ui-w-full neeto-ui-truncate neeto-ui-text-gray-600",
229
+ lineHeight: "tight",
230
+ style: "body3"
231
+ }, email))), /*#__PURE__*/React__default.createElement("div", {
232
+ className: "neeto-ui-sidebar__profile-wrapper-custom-content"
233
+ }, customContent), topLinks && /*#__PURE__*/React__default.createElement(LinkSection, {
234
+ links: topLinks
235
+ }), bottomLinks && /*#__PURE__*/React__default.createElement(LinkSection, {
236
+ links: bottomLinks
237
+ }));
238
+ };
239
+
240
+ var Footer = function Footer(_ref) {
241
+ var profileInfo = _ref.profileInfo,
242
+ tooltipStyle = _ref.tooltipStyle,
243
+ _ref$showAppSwitcher = _ref.showAppSwitcher,
244
+ showAppSwitcher = _ref$showAppSwitcher === void 0 ? false : _ref$showAppSwitcher,
245
+ onAppSwitcherToggle = _ref.onAppSwitcherToggle,
246
+ helpLinks = _ref.helpLinks;
247
+ var _useState = useState(false),
248
+ _useState2 = _slicedToArray(_useState, 2),
249
+ isProfileDropdownOpen = _useState2[0],
250
+ setIsProfileDropdownOpen = _useState2[1];
251
+ return /*#__PURE__*/React__default.createElement("div", {
252
+ className: "neeto-ui-sidebar__footer"
253
+ }, helpLinks && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Tooltip, {
254
+ interactive: true,
255
+ className: "neeto-ui-help-popup-wrapper",
256
+ content: /*#__PURE__*/React__default.createElement(HelpSectionTooltip, {
257
+ helpSectionProps: helpLinks
258
+ }),
259
+ hideOnClick: false,
260
+ position: "right",
261
+ theme: "light"
262
+ }, /*#__PURE__*/React__default.createElement(HelpSection, null))), showAppSwitcher && /*#__PURE__*/React__default.createElement(AppSwitcher, {
263
+ tooltipStyle: tooltipStyle,
264
+ onAppSwitcherToggle: onAppSwitcherToggle
265
+ }), profileInfo && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Tooltip, {
266
+ interactive: true,
267
+ className: "neeto-ui-profile-popup-wrapper",
268
+ content: /*#__PURE__*/React__default.createElement(ProfileSectionTooltip, {
269
+ profileInfo: profileInfo
270
+ }),
271
+ hideOnClick: false,
272
+ position: "right",
273
+ theme: "light"
274
+ }, /*#__PURE__*/React__default.createElement(ProfileSection, {
275
+ profileInfo: profileInfo,
276
+ onClick: function onClick() {
277
+ setIsProfileDropdownOpen(!isProfileDropdownOpen);
278
+ }
279
+ }))));
280
+ };
281
+
282
+ var Header = function Header(_ref) {
283
+ var organizationInfo = _ref.organizationInfo;
284
+ var LogoSVG = organizationInfo === null || organizationInfo === void 0 ? void 0 : organizationInfo.logo;
285
+ return /*#__PURE__*/React__default.createElement("div", {
286
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-sidebar__header",
287
+ "data-cy": "sidebar-info"
288
+ }, /*#__PURE__*/React__default.createElement("div", {
289
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-flex-shrink-0 neeto-ui-sidebar__logo"
290
+ }, LogoSVG || /*#__PURE__*/React__default.createElement(Neeto, null)));
291
+ };
292
+
293
+ var _excluded = ["label", "to", "icon", "description"];
294
+ var Links = function Links(_ref) {
295
+ var _ref$navLinks = _ref.navLinks,
296
+ navLinks = _ref$navLinks === void 0 ? [] : _ref$navLinks,
297
+ tooltipStyle = _ref.tooltipStyle;
298
+ var location = useLocation();
299
+ return /*#__PURE__*/React__default.createElement("div", {
300
+ className: "neeto-ui-sidebar__links"
301
+ }, navLinks.map(function (_ref2, mainIndex) {
302
+ var label = _ref2.label,
303
+ to = _ref2.to,
304
+ icon = _ref2.icon,
305
+ description = _ref2.description,
306
+ otherProps = _objectWithoutProperties(_ref2, _excluded);
307
+ var IconSVG = icon;
308
+ var url = new URL(to, window.location.href);
309
+ var _isActive = location.pathname.startsWith(url.pathname);
310
+ return /*#__PURE__*/React__default.createElement(NavIconWrapper, {
311
+ description: description,
312
+ icon: /*#__PURE__*/React__default.createElement(IconSVG, {
313
+ color: "#68737D"
314
+ }),
315
+ key: mainIndex,
316
+ label: label,
317
+ tooltipStyle: tooltipStyle
318
+ }, /*#__PURE__*/React__default.createElement(NavLink, _extends({
319
+ activeClassName: "active",
320
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-ui-sidebar__link",
321
+ isActive: function isActive() {
322
+ return _isActive;
323
+ },
324
+ to: to
325
+ }, otherProps), icon && /*#__PURE__*/React__default.createElement("div", {
326
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-sidebar__link-icon",
327
+ "data-testid": label
328
+ }, /*#__PURE__*/React__default.createElement(IconSVG, null))));
329
+ }));
330
+ };
331
+
332
+ var TOOLTIP_STYLES = {
333
+ "default": "default",
334
+ featured: "featured"
335
+ };
336
+ var Sidebar = function Sidebar(_ref) {
337
+ var organizationInfo = _ref.organizationInfo,
338
+ _ref$navLinks = _ref.navLinks,
339
+ navLinks = _ref$navLinks === void 0 ? [] : _ref$navLinks,
340
+ _ref$tooltipStyle = _ref.tooltipStyle,
341
+ tooltipStyle = _ref$tooltipStyle === void 0 ? TOOLTIP_STYLES.featured : _ref$tooltipStyle,
342
+ profileInfo = _ref.profileInfo,
343
+ helpLinks = _ref.helpLinks,
344
+ _ref$showAppSwitcher = _ref.showAppSwitcher,
345
+ showAppSwitcher = _ref$showAppSwitcher === void 0 ? false : _ref$showAppSwitcher,
346
+ _ref$onAppSwitcherTog = _ref.onAppSwitcherToggle,
347
+ onAppSwitcherToggle = _ref$onAppSwitcherTog === void 0 ? noop : _ref$onAppSwitcherTog;
348
+ return /*#__PURE__*/React__default.createElement("div", {
349
+ "data-cy": "sidebar-wrapper",
350
+ "data-testid": "sidebar",
351
+ className: classnames("neeto-ui-sidebar neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-shrink-0 neeto-ui-overflow-y-auto neeto-ui-overflow-x-hidden", "neeto-ui-sidebar--collapsed")
352
+ }, /*#__PURE__*/React__default.createElement(Header, {
353
+ organizationInfo: organizationInfo
354
+ }), /*#__PURE__*/React__default.createElement(Links, {
355
+ navLinks: navLinks,
356
+ tooltipStyle: tooltipStyle
357
+ }), /*#__PURE__*/React__default.createElement(Footer, {
358
+ helpLinks: helpLinks,
359
+ profileInfo: profileInfo,
360
+ showAppSwitcher: showAppSwitcher,
361
+ tooltipStyle: tooltipStyle,
362
+ onAppSwitcherToggle: onAppSwitcherToggle
363
+ }));
364
+ };
365
+
366
+ export { Sidebar };
367
+ //# sourceMappingURL=layouts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layouts.js","sources":["../src/components/layouts/Sidebar/FeaturedTooltip.jsx","../src/components/layouts/Sidebar/NavIconWrapper.jsx","../src/components/layouts/Sidebar/Footer/AppSwitcher.jsx","../src/components/layouts/Sidebar/HelpSection/index.jsx","../src/components/layouts/Sidebar/HelpSection/LinkSection.jsx","../src/components/layouts/Sidebar/HelpSection/Tooltip.jsx","../src/components/layouts/Sidebar/ProfileSection/index.jsx","../src/components/layouts/Sidebar/ProfileSection/LinkSection.jsx","../src/components/layouts/Sidebar/ProfileSection/utils.js","../src/components/layouts/Sidebar/ProfileSection/Tooltip.jsx","../src/components/layouts/Sidebar/Footer/index.jsx","../src/components/layouts/Sidebar/Header.jsx","../src/components/layouts/Sidebar/Links.jsx","../src/components/layouts/Sidebar/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport Typography from \"../../Typography\";\n\nconst FeaturedTooltip = ({ label, description }) => (\n <div className=\"neeto-ui-flex neeto-ui-flex-col sidebar-featured-tooltip\">\n <Typography\n className=\"neeto-ui-text-center sidebar-featured-tooltip__title\"\n lineHeight=\"tight\"\n style=\"h5\"\n weight=\"semibold\"\n >\n {label}\n </Typography>\n {description && (\n <Typography\n className=\"neeto-ui-text-center neeto-ui-text-gray-400 sidebar-featured-tooltip__description\"\n lineHeight=\"normal\"\n style=\"body3\"\n >\n {description}\n </Typography>\n )}\n </div>\n);\n\nexport default FeaturedTooltip;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\n\nimport Tooltip from \"components/Tooltip\";\n\nimport FeaturedTooltip from \"./FeaturedTooltip\";\n\nconst TOOLTIP_STYLES = { default: \"default\", featured: \"featured\" };\n\nconst NavIconWrapper = ({\n tooltipStyle,\n description,\n icon,\n label,\n children,\n}) => {\n const tooltipContent =\n tooltipStyle === TOOLTIP_STYLES.featured ? (\n <FeaturedTooltip description={description} icon={icon} label={label} />\n ) : (\n label\n );\n\n const content = (\n <Tooltip\n content={tooltipContent}\n delay={[400, 40]}\n duration={[200, 200]}\n position=\"right\"\n className={classnames({\n \"sidebar-featured-tooltip__content\":\n tooltipStyle === TOOLTIP_STYLES.featured,\n })}\n >\n {children}\n </Tooltip>\n );\n\n return content;\n};\n\nexport default NavIconWrapper;\n","import React from \"react\";\n\nimport { AppSwitcher as AppSwitcherIcon } from \"neetoicons\";\n\nimport NavIconWrapper from \"../NavIconWrapper\";\n\nconst AppSwitcher = ({ tooltipStyle, onAppSwitcherToggle }) => (\n <NavIconWrapper\n icon={<AppSwitcherIcon />}\n label=\"Product switcher\"\n tooltipStyle={tooltipStyle}\n >\n <button\n className=\"neeto-ui-flex neeto-ui-items-center neeto-ui-justify-start neeto-ui-w-full neeto-ui-select-none neeto-ui-sidebar__link neeto-ui-sidebar__link--app-switcher neeto-ui-sidebar__link--button shadow-none\"\n data-cy=\"app-switcher-button\"\n onClick={onAppSwitcherToggle}\n >\n <span className=\"neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-sidebar__link-icon\">\n <AppSwitcherIcon size={24} />\n </span>\n </button>\n </NavIconWrapper>\n);\n\nexport default AppSwitcher;\n","/* eslint-disable react/display-name */\n\nimport React, { forwardRef } from \"react\";\n\nimport { Help } from \"neetoicons\";\n\nconst HelpSection = forwardRef((_, ref) => (\n <button\n className=\"neeto-ui-sidebar__link neeto-ui-sidebar__link--button shadow-none\"\n data-cy=\"help-button\"\n ref={ref}\n >\n <span className=\"neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-sidebar__link-icon\">\n <Help size={24} />\n </span>\n </button>\n));\n\nHelpSection.displayName = \"HelpSection\";\n\nexport default HelpSection;\n","import React from \"react\";\n\nimport { noop } from \"utils\";\n\nimport Typography from \"../../../Typography\";\n\nconst HelpLinkSection = ({ links }) => (\n <ul>\n {links?.map(\n ({ onClick = noop, label = \"\", icon = null, ...otherProps }, idx) => {\n const IconSVG = icon;\n\n return (\n <li className=\"neeto-ui-help-sublist__item\" key={idx}>\n <button\n className=\"neeto-ui-help-sublist__item-btn\"\n onClick={onClick}\n {...otherProps}\n >\n {icon && (\n <span className=\"neeto-ui-help-sublist__item-btn-icon\">\n <IconSVG />\n </span>\n )}\n <Typography\n className=\"neeto-ui-help-sublist__item-btn-label\"\n component=\"span\"\n style=\"body2\"\n weight=\"normal\"\n >\n {label}\n </Typography>\n </button>\n </li>\n );\n }\n )}\n </ul>\n);\nexport default HelpLinkSection;\n","import React from \"react\";\n\nimport { Book, Keyboard, Gift, ChatEmpty } from \"neetoicons\";\nimport { values } from \"ramda\";\n\nimport HelpLinkSection from \"./LinkSection\";\n\nconst HelpSectionTooltip = ({ helpSectionProps }) => {\n const {\n documentationProps,\n keyboardShortcutProps,\n liveChatProps,\n changelogProps,\n } = helpSectionProps;\n\n const helpLinks = [\n documentationProps && {\n ...documentationProps,\n label: \"Documentation\",\n icon: Book,\n \"data-cy\": \"help-link-documentation-button\",\n },\n keyboardShortcutProps && {\n ...keyboardShortcutProps,\n label: \"Keyboard shortcuts\",\n icon: Keyboard,\n \"data-cy\": \"help-link-keyboard-shortcut-button\",\n },\n liveChatProps && {\n ...liveChatProps,\n label: \"Chat with us\",\n icon: ChatEmpty,\n \"data-cy\": \"help-link-live-chat-button\",\n },\n changelogProps && {\n ...changelogProps,\n label: \"What's new?\",\n icon: Gift,\n \"data-cy\": \"help-link-changelog-button\",\n },\n ].filter(Boolean);\n\n return <HelpLinkSection links={values(helpLinks)} />;\n};\n\nexport default HelpSectionTooltip;\n","/* eslint-disable react/display-name */\nimport React, { forwardRef } from \"react\";\n\nimport Avatar from \"components/Avatar\";\n\nconst ProfileSection = forwardRef(({ profileInfo, onClick }, ref) => {\n const dataCy = profileInfo[\"data-cy\"] || \"profile-section\";\n\n return (\n <button\n className=\"neeto-ui-w-full neeto-ui-text-left neeto-ui-sidebar__profile-wrapper\"\n data-cy={dataCy}\n ref={ref}\n onClick={onClick}\n >\n <span className=\"neeto-ui-flex neeto-ui-items-center neeto-ui-flex-shrink-0 neeto-ui-w-full neeto-ui-sidebar__profile\">\n <Avatar\n className=\"neeto-ui-flex-shrink-0\"\n size=\"large\"\n user={profileInfo}\n />\n </span>\n </button>\n );\n});\n\nProfileSection.displayName = \"ProfileSection\";\n\nexport default ProfileSection;\n","import React from \"react\";\n\nimport Typography from \"components/Typography\";\n\nconst LinkSection = ({ links }) => (\n <ul className=\"neeto-ui-profile-sublist\">\n {links?.map(({ onClick, label, icon = null, ...otherProps }, idx) => {\n const IconSVG = icon;\n\n return (\n <li className=\"neeto-ui-profile-sublist__item\" key={idx}>\n <button\n onClick={onClick}\n {...otherProps}\n className=\"neeto-ui-profile-sublist__item-btn\"\n >\n {icon && (\n <span className=\"neeto-ui-profile-sublist__item-btn-icon\">\n <IconSVG />\n </span>\n )}\n <Typography\n className=\"neeto-ui-profile-sublist__item-btn-label\"\n component=\"span\"\n style=\"body2\"\n weight=\"normal\"\n >\n {label}\n </Typography>\n </button>\n </li>\n );\n })}\n </ul>\n);\n\nexport default LinkSection;\n","export const truncate = (str, length) =>\n str && str.length > length ? `${str.substring(0, length - 3)}...` : str;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\n\nimport Avatar from \"components/Avatar\";\nimport Typography from \"components/Typography\";\n\nimport LinkSection from \"./LinkSection\";\nimport { truncate } from \"./utils\";\n\nconst ProfileSectionTooltip = ({ profileInfo }) => {\n const { name, email, topLinks, bottomLinks, customContent } = profileInfo;\n\n return (\n <div className=\"neeto-ui-flex neeto-ui-flex-col neeto-ui-profile-popup\">\n <div\n className={classnames(\n \"neeto-ui-relative neeto-ui-flex neeto-ui-items-center neeto-ui-p-3\"\n )}\n >\n <div className=\"top-0 left-0\">\n <Avatar size=\"large\" user={profileInfo} />\n </div>\n <div className=\"neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-grow neeto-ui-min-w-0 neeto-ui-pl-3\">\n <Typography\n className=\"neeto-ui-m-0\"\n component=\"h2\"\n lineHeight=\"tight\"\n style=\"h5\"\n title={name}\n weight=\"semibold\"\n >\n {truncate(name, 18)}\n </Typography>\n {email && (\n <Typography\n className=\"neeto-ui-w-full neeto-ui-truncate neeto-ui-text-gray-600\"\n lineHeight=\"tight\"\n style=\"body3\"\n >\n {email}\n </Typography>\n )}\n </div>\n </div>\n <div className=\"neeto-ui-sidebar__profile-wrapper-custom-content\">\n {customContent}\n </div>\n {topLinks && <LinkSection links={topLinks} />}\n {bottomLinks && <LinkSection links={bottomLinks} />}\n </div>\n );\n};\n\nexport default ProfileSectionTooltip;\n","import React, { useState } from \"react\";\n\nimport Tooltip from \"components/Tooltip\";\n\nimport AppSwitcher from \"./AppSwitcher\";\n\nimport HelpSection from \"../HelpSection\";\nimport HelpSectionTooltip from \"../HelpSection/Tooltip\";\nimport ProfileSection from \"../ProfileSection\";\nimport ProfileSectionTooltip from \"../ProfileSection/Tooltip\";\n\nconst Footer = ({\n profileInfo,\n tooltipStyle,\n showAppSwitcher = false,\n onAppSwitcherToggle,\n helpLinks,\n}) => {\n const [isProfileDropdownOpen, setIsProfileDropdownOpen] = useState(false);\n\n return (\n <div className=\"neeto-ui-sidebar__footer\">\n {helpLinks && (\n <div>\n <Tooltip\n interactive\n className=\"neeto-ui-help-popup-wrapper\"\n content={<HelpSectionTooltip helpSectionProps={helpLinks} />}\n hideOnClick={false}\n position=\"right\"\n theme=\"light\"\n >\n <HelpSection />\n </Tooltip>\n </div>\n )}\n {showAppSwitcher && (\n <AppSwitcher\n tooltipStyle={tooltipStyle}\n onAppSwitcherToggle={onAppSwitcherToggle}\n />\n )}\n {profileInfo && (\n <div>\n <Tooltip\n interactive\n className=\"neeto-ui-profile-popup-wrapper\"\n content={<ProfileSectionTooltip profileInfo={profileInfo} />}\n hideOnClick={false}\n position=\"right\"\n theme=\"light\"\n >\n <ProfileSection\n profileInfo={profileInfo}\n onClick={() => {\n setIsProfileDropdownOpen(!isProfileDropdownOpen);\n }}\n />\n </Tooltip>\n </div>\n )}\n </div>\n );\n};\n\nexport default Footer;\n","import React from \"react\";\n\nimport { Neeto } from \"neetoicons/logos\";\n\nconst Header = ({ organizationInfo }) => {\n const LogoSVG = organizationInfo?.logo;\n\n return (\n <div\n className=\"neeto-ui-flex neeto-ui-items-center neeto-ui-sidebar__header\"\n data-cy=\"sidebar-info\"\n >\n <div className=\"neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-flex-shrink-0 neeto-ui-sidebar__logo\">\n {LogoSVG || <Neeto />}\n </div>\n </div>\n );\n};\n\nexport default Header;\n","import React from \"react\";\n\nimport { NavLink, useLocation } from \"react-router-dom\";\n\nimport NavIconWrapper from \"./NavIconWrapper\";\n\nconst Links = ({ navLinks = [], tooltipStyle }) => {\n const location = useLocation();\n\n return (\n <div className=\"neeto-ui-sidebar__links\">\n {navLinks.map(\n ({ label, to, icon, description, ...otherProps }, mainIndex) => {\n const IconSVG = icon;\n const url = new URL(to, window.location.href);\n const isActive = location.pathname.startsWith(url.pathname);\n\n return (\n <NavIconWrapper\n description={description}\n icon={<IconSVG color=\"#68737D\" />}\n key={mainIndex}\n label={label}\n tooltipStyle={tooltipStyle}\n >\n <NavLink\n activeClassName=\"active\"\n className=\"neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-ui-sidebar__link\"\n isActive={() => isActive}\n to={to}\n {...otherProps}\n >\n {icon && (\n <div\n className=\"neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-sidebar__link-icon\"\n data-testid={label}\n >\n <IconSVG />\n </div>\n )}\n </NavLink>\n </NavIconWrapper>\n );\n }\n )}\n </div>\n );\n};\n\nexport default Links;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport { noop } from \"utils\";\n\nimport Footer from \"./Footer\";\nimport Header from \"./Header\";\nimport Links from \"./Links\";\n\nconst TOOLTIP_STYLES = {\n default: \"default\",\n featured: \"featured\",\n};\n\nconst Sidebar = ({\n organizationInfo,\n navLinks = [],\n tooltipStyle = TOOLTIP_STYLES.featured,\n profileInfo,\n helpLinks,\n showAppSwitcher = false,\n onAppSwitcherToggle = noop,\n}) => (\n <div\n data-cy=\"sidebar-wrapper\"\n data-testid=\"sidebar\"\n className={classnames(\n \"neeto-ui-sidebar neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-shrink-0 neeto-ui-overflow-y-auto neeto-ui-overflow-x-hidden\",\n \"neeto-ui-sidebar--collapsed\"\n )}\n >\n <Header organizationInfo={organizationInfo} />\n <Links navLinks={navLinks} tooltipStyle={tooltipStyle} />\n <Footer\n helpLinks={helpLinks}\n profileInfo={profileInfo}\n showAppSwitcher={showAppSwitcher}\n tooltipStyle={tooltipStyle}\n onAppSwitcherToggle={onAppSwitcherToggle}\n />\n </div>\n);\n\nSidebar.propTypes = {\n /**\n * To specify the organization info to be rendered in the Sidebar\n */\n organizationInfo: PropTypes.shape({\n logo: PropTypes.element,\n name: PropTypes.string,\n subdomain: PropTypes.string,\n }),\n /**\n * To specify the tooltip styles\n */\n tooltipStyle: PropTypes.oneOf(Object.keys(TOOLTIP_STYLES)),\n /**\n * To provide the nav links to be rendered in the Sidebar\n */\n navLinks: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n description: PropTypes.string,\n to: PropTypes.string,\n icon: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n })\n ).isRequired,\n\n /**\n * To specify the profile info to be rendered in the Sidebar\n */\n profileInfo: PropTypes.shape({\n name: PropTypes.string,\n email: PropTypes.string,\n customContent: PropTypes.element,\n topLinks: PropTypes.arrayOf(\n PropTypes.shape({\n onClick: PropTypes.func,\n label: PropTypes.string,\n icon: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n })\n ),\n bottomLinks: PropTypes.arrayOf(\n PropTypes.shape({\n onClick: PropTypes.func,\n label: PropTypes.string,\n icon: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n })\n ),\n }),\n\n /**\n * To specify the is app switcher visible\n */\n showAppSwitcher: PropTypes.bool,\n /**\n * To provide the function to toggle app switcher\n */\n onAppSwitcherToggle: PropTypes.func,\n /**\n * To provide the help links to be rendered in the Sidebar\n */\n helpLinks: PropTypes.shape({\n documentationProps: PropTypes.shape({\n onClick: PropTypes.func,\n label: PropTypes.string,\n icon: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n }),\n keyboardShortcutProps: PropTypes.shape({\n onClick: PropTypes.func,\n label: PropTypes.string,\n icon: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n }),\n liveChatProps: PropTypes.shape({\n onClick: PropTypes.func,\n label: PropTypes.string,\n icon: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n }),\n changelogProps: PropTypes.shape({\n onClick: PropTypes.func,\n label: PropTypes.string,\n icon: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),\n }),\n }),\n};\n\nexport default Sidebar;\n"],"names":["FeaturedTooltip","_ref","label","description","React","createElement","className","Typography","lineHeight","style","weight","TOOLTIP_STYLES","featured","NavIconWrapper","tooltipStyle","icon","children","tooltipContent","content","Tooltip","delay","duration","position","classnames","AppSwitcher","onAppSwitcherToggle","AppSwitcherIcon","onClick","size","HelpSection","forwardRef","_","ref","Help","displayName","HelpLinkSection","links","map","_ref2","idx","_ref2$onClick","noop","_ref2$label","_ref2$icon","otherProps","_objectWithoutProperties","_excluded","IconSVG","key","_extends","component","HelpSectionTooltip","helpSectionProps","documentationProps","keyboardShortcutProps","liveChatProps","changelogProps","helpLinks","_objectSpread","Book","Keyboard","ChatEmpty","Gift","filter","Boolean","values","ProfileSection","profileInfo","dataCy","Avatar","user","LinkSection","truncate","str","length","concat","substring","ProfileSectionTooltip","name","email","topLinks","bottomLinks","customContent","title","Footer","_ref$showAppSwitcher","showAppSwitcher","_useState","useState","_useState2","_slicedToArray","isProfileDropdownOpen","setIsProfileDropdownOpen","interactive","hideOnClick","theme","Header","organizationInfo","LogoSVG","logo","Neeto","Links","_ref$navLinks","navLinks","location","useLocation","mainIndex","to","url","URL","window","href","isActive","pathname","startsWith","color","NavLink","activeClassName","Sidebar","_ref$tooltipStyle","_ref$onAppSwitcherTog"],"mappings":";;;;;;;;;;;;AAIA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,KAAK,GAAAD,IAAA,CAALC,KAAK;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,GAAA2G,iBAAA;IACtCpD,WAAW,GAAAlE,IAAA,CAAXkE,WAAW;IACXV,SAAS,GAAAxD,IAAA,CAATwD,SAAS;IAAA4B,oBAAA,GAAApF,IAAA,CACTqF,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,oBAAA;IAAAmC,qBAAA,GAAAvH,IAAA,CACvBwB,mBAAmB;AAAnBA,IAAAA,mBAAmB,GAAA+F,qBAAA,KAAG/E,KAAAA,CAAAA,GAAAA,IAAI,GAAA+E,qBAAA,CAAA;EAAA,oBAE1BpH,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACE,IAAA,SAAA,EAAQ,iBAAiB;AACzB,IAAA,aAAA,EAAY,SAAS;AACrBC,IAAAA,SAAS,EAAEiB,UAAU,CACnB,6HAA6H,EAC7H,6BAA6B,CAAA;AAC7B,GAAA,eAEFnB,cAAA,CAAAC,aAAA,CAAC2F,MAAM,EAAA;AAACC,IAAAA,gBAAgB,EAAEA,gBAAAA;AAAiB,GAAA,CAAG,eAC9C7F,cAAA,CAAAC,aAAA,CAACgG,KAAK,EAAA;AAACE,IAAAA,QAAQ,EAAEA,QAAS;AAACzF,IAAAA,YAAY,EAAEA,YAAAA;AAAa,GAAA,CAAG,eACzDV,cAAA,CAAAC,aAAA,CAAC+E,MAAM,EAAA;AACL3B,IAAAA,SAAS,EAAEA,SAAU;AACrBU,IAAAA,WAAW,EAAEA,WAAY;AACzBmB,IAAAA,eAAe,EAAEA,eAAgB;AACjCxE,IAAAA,YAAY,EAAEA,YAAa;AAC3BW,IAAAA,mBAAmB,EAAEA,mBAAAA;AAAoB,GAAA,CACzC,CACE,CAAA;AAAA;;;;"}
@@ -0,0 +1,3 @@
1
+ export { m as manager } from './overlayManager-4d5be56b.js';
2
+ import './createClass-27bd48bc.js';
3
+ //# sourceMappingURL=managers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,52 +1,4 @@
1
- function _classCallCheck(instance, Constructor) {
2
- if (!(instance instanceof Constructor)) {
3
- throw new TypeError("Cannot call a class as a function");
4
- }
5
- }
6
-
7
- function _typeof(obj) {
8
- "@babel/helpers - typeof";
9
-
10
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11
- return typeof obj;
12
- } : function (obj) {
13
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14
- }, _typeof(obj);
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 _defineProperties(target, props) {
34
- for (var i = 0; i < props.length; i++) {
35
- var descriptor = props[i];
36
- descriptor.enumerable = descriptor.enumerable || false;
37
- descriptor.configurable = true;
38
- if ("value" in descriptor) descriptor.writable = true;
39
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
40
- }
41
- }
42
- function _createClass(Constructor, protoProps, staticProps) {
43
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
44
- if (staticProps) _defineProperties(Constructor, staticProps);
45
- Object.defineProperty(Constructor, "prototype", {
46
- writable: false
47
- });
48
- return Constructor;
49
- }
1
+ import { b as _createClass, c as _classCallCheck } from './createClass-27bd48bc.js';
50
2
 
51
3
  var OverlayManager = /*#__PURE__*/function () {
52
4
  function OverlayManager() {
@@ -123,5 +75,5 @@ var OverlayManager = /*#__PURE__*/function () {
123
75
  }();
124
76
  var manager = new OverlayManager();
125
77
 
126
- export { manager };
127
- //# sourceMappingURL=managers.js.map
78
+ export { manager as m };
79
+ //# sourceMappingURL=overlayManager-4d5be56b.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlayManager-4d5be56b.js","sources":["../src/managers/overlayManager.js"],"sourcesContent":["class OverlayManager {\n constructor() {\n this.overlays = [];\n this.previouslyFocusedElements = [];\n this.subscribers = new Set();\n this.add = this.add.bind(this);\n this.remove = this.remove.bind(this);\n this.isTopOverlay = this.isTopOverlay.bind(this);\n this.hasOverlays = this.hasOverlays.bind(this);\n this.getFinalFocusInOverlay = this.getFinalFocusInOverlay.bind(this);\n this.getTopMostOverlay = this.getTopMostOverlay.bind(this);\n this.subscribe = this.subscribe.bind(this);\n }\n\n subscribe(callback) {\n this.subscribers.add(callback);\n\n return () => this.subscribers.delete(callback);\n }\n\n add(overlay, elementToFocus) {\n this.overlays.push(overlay);\n this.previouslyFocusedElements.push(elementToFocus);\n\n this.subscribers.forEach(subscriber => subscriber());\n }\n\n remove(overlay, elementToFocus) {\n this.overlays = this.overlays.filter(_overlay => _overlay !== overlay);\n this.previouslyFocusedElements = this.previouslyFocusedElements.filter(\n _elementToFocus => _elementToFocus !== elementToFocus\n );\n\n this.subscribers.forEach(subscriber => subscriber());\n }\n\n isTopOverlay(overlay) {\n const topMostOverlay = this.overlays[this.overlays.length - 1];\n\n return topMostOverlay === overlay;\n }\n\n hasOverlays() {\n return this.overlays.length > 0;\n }\n\n getFinalFocusInOverlay() {\n const finalFocus = this.previouslyFocusedElements.pop();\n this.subscribers.forEach(subscriber => subscriber());\n\n return finalFocus;\n }\n\n getTopMostOverlay() {\n return this.overlays[this.overlays.length - 1];\n }\n}\n\nexport const manager = new OverlayManager();\n"],"names":["OverlayManager","_classCallCheck","overlays","previouslyFocusedElements","subscribers","Set","add","bind","remove","isTopOverlay","hasOverlays","getFinalFocusInOverlay","getTopMostOverlay","subscribe","_createClass","key","value","callback","_this","overlay","elementToFocus","push","forEach","subscriber","filter","_overlay","_element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c,KAAKR,OAAO,CAAA;AACnC,KAAA;AAAC,GAAA,EAAA;IAAAJ,GAAA,EAAA,aAAA;IAAAC,KAAA,EAED,SAAAN,WAAAA,GAAc;AACZ,MAAA,OAAO,IAAI,CAACR,QAAQ,CAAC0B,MAAM,GAAG,CAAC,CAAA;AACjC,KAAA;AAAC,GAAA,EAAA;IAAAb,GAAA,EAAA,wBAAA;IAAAC,KAAA,EAED,SAAAL,sBAAAA,GAAyB;AACvB,MAAA,IAAMkB,UAAU,GAAG,IAAI,CAAC1B,yBAAyB,CAAC2B,GAAG,EAAE,CAAA;AACvD,MAAA,IAAI,CAAC1B,WAAW,CAACkB,OAAO,CAAC,UAAAC,UAAU,EAAA;AAAA,QAAA,OAAIA,UAAU,EAAE,CAAA;OAAC,CAAA,CAAA;AAEpD,MAAA,OAAOM,UAAU,CAAA;AACnB,KAAA;AAAC,GAAA,EAAA;IAAAd,GAAA,EAAA,mBAAA;IAAAC,KAAA,EAED,SAAAJ,iBAAAA,GAAoB;MAClB,OAAO,IAAI,CAACV,QAAQ,CAAC,IAAI,CAACA,QAAQ,CAAC0B,MAAM,GAAG,CAAC,CAAC,CAAA;AAChD,KAAA;AAAC,GAAA,CAAA,CAAA,CAAA;AAAA,EAAA,OAAA5B,cAAA,CAAA;AAAA,CAAA,EAAA,CAAA;AAGU+B,IAAAA,OAAO,GAAG,IAAI/B,cAAc;;;;"}
package/package.json CHANGED
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neetoui",
3
- "version": "6.5.7",
4
- "main": "./index.cjs.js",
5
- "module": "./index.js",
6
- "types": "./index.d.ts",
3
+ "version": "6.5.8",
7
4
  "author": "BigBinary",
8
5
  "license": "MIT",
9
6
  "description": "neetoUI drives the experience at all neeto products",
@@ -17,10 +14,8 @@
17
14
  "test": "jest"
18
15
  },
19
16
  "files": [
20
- "index.*",
21
- "formik.*",
22
- "layouts.*",
23
- "managers.*"
17
+ "dist",
18
+ "*.d.ts"
24
19
  ],
25
20
  "lint-staged": {
26
21
  "**/*.{html,md,js,jsx,json}": [
@@ -34,24 +29,24 @@
34
29
  },
35
30
  "exports": {
36
31
  ".": {
37
- "import": "./index.js",
38
- "require": "./index.cjs.js",
39
- "style": "./index.css",
32
+ "import": "./dist/index.js",
33
+ "require": "./dist/cjs/index.js",
34
+ "style": "./dist/index.css",
40
35
  "types": "./index.d.ts"
41
36
  },
42
37
  "./layouts": {
43
- "import": "./layouts.js",
44
- "require": "./layouts.cjs.js",
38
+ "import": "./dist/layouts.js",
39
+ "require": "./dist/cjs/layouts.js",
45
40
  "types": "./layouts.d.ts"
46
41
  },
47
42
  "./formik": {
48
- "import": "./formik.js",
49
- "require": "./formik.cjs.js",
43
+ "import": "./dist/formik.js",
44
+ "require": "./dist/cjs/formik.js",
50
45
  "types": "./formik.d.ts"
51
46
  },
52
47
  "./managers": {
53
- "import": "./managers.js",
54
- "require": "./managers.cjs.js",
48
+ "import": "./dist/managers.js",
49
+ "require": "./dist/cjs/managers.js",
55
50
  "types": "./managers.d.ts"
56
51
  }
57
52
  },
@@ -155,6 +150,7 @@
155
150
  "react-toastify": "9.0.1",
156
151
  "rfs": "^10.0.0",
157
152
  "rollup": "^2.73.0",
153
+ "rollup-plugin-cleaner": "^1.0.0",
158
154
  "rollup-plugin-copy": "^3.5.0",
159
155
  "rollup-plugin-peer-deps-external": "^2.2.4",
160
156
  "rollup-plugin-styles": "^4.0.0",