@bigbinary/neeto-molecules 4.1.55 → 4.1.57
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/{Columns-cUgR6NTO.js → Columns-BVXRaORo.js} +8 -11
- package/dist/Columns-BVXRaORo.js.map +1 -0
- package/dist/{ConfigureView-C84AmCMq.js → ConfigureView-DAZrBZPv.js} +3 -2
- package/dist/{ConfigureView-C84AmCMq.js.map → ConfigureView-DAZrBZPv.js.map} +1 -1
- package/dist/cjs/{Columns-D3eocaeY.js → Columns-ZySdkGqV.js} +12 -15
- package/dist/cjs/Columns-ZySdkGqV.js.map +1 -0
- package/dist/cjs/{ConfigureView-DGf7cRMQ.js → ConfigureView-CAWRNNYI.js} +12 -11
- package/dist/cjs/{ConfigureView-DGf7cRMQ.js.map → ConfigureView-CAWRNNYI.js.map} +1 -1
- package/dist/cjs/useKeyboardShortcutsPaneState-BG_xVteC.js +39 -0
- package/dist/cjs/useKeyboardShortcutsPaneState-BG_xVteC.js.map +1 -0
- package/dist/cjs/v2/AuditLogs.js +19 -80
- package/dist/cjs/v2/AuditLogs.js.map +1 -1
- package/dist/cjs/v2/Breadcrumbs.js +7 -7
- package/dist/cjs/v2/Breadcrumbs.js.map +1 -1
- package/dist/cjs/v2/Columns.js +2 -1
- package/dist/cjs/v2/Columns.js.map +1 -1
- package/dist/cjs/v2/ConfigurePageSidebar.js +7 -6
- package/dist/cjs/v2/ConfigurePageSidebar.js.map +1 -1
- package/dist/cjs/v2/CopyToClipboardButton.js +11 -17
- package/dist/cjs/v2/CopyToClipboardButton.js.map +1 -1
- package/dist/cjs/v2/FloatingActionMenu.js +58 -81
- package/dist/cjs/v2/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/v2/Header.js +2 -1
- package/dist/cjs/v2/Header.js.map +1 -1
- package/dist/cjs/v2/HelpPopover.js +51 -54
- package/dist/cjs/v2/HelpPopover.js.map +1 -1
- package/dist/cjs/v2/KeyboardShortcuts.js +13 -51
- package/dist/cjs/v2/KeyboardShortcuts.js.map +1 -1
- package/dist/cjs/v2/MoreDropdown.js +59 -78
- package/dist/cjs/v2/MoreDropdown.js.map +1 -1
- package/dist/cjs/v2/Settings.js +1 -0
- package/dist/cjs/v2/Settings.js.map +1 -1
- package/dist/cjs/v2/Sidebar.js +102 -117
- package/dist/cjs/v2/Sidebar.js.map +1 -1
- package/dist/cjs/v2/SubHeader.js +31 -43
- package/dist/cjs/v2/SubHeader.js.map +1 -1
- package/dist/useKeyboardShortcutsPaneState-dNIbb_PI.js +37 -0
- package/dist/useKeyboardShortcutsPaneState-dNIbb_PI.js.map +1 -0
- package/dist/v2/AuditLogs.js +20 -81
- package/dist/v2/AuditLogs.js.map +1 -1
- package/dist/v2/Breadcrumbs.js +1 -1
- package/dist/v2/Breadcrumbs.js.map +1 -1
- package/dist/v2/Columns.js +2 -1
- package/dist/v2/Columns.js.map +1 -1
- package/dist/v2/ConfigurePageSidebar.js +3 -2
- package/dist/v2/ConfigurePageSidebar.js.map +1 -1
- package/dist/v2/CopyToClipboardButton.js +13 -19
- package/dist/v2/CopyToClipboardButton.js.map +1 -1
- package/dist/v2/FloatingActionMenu.js +33 -56
- package/dist/v2/FloatingActionMenu.js.map +1 -1
- package/dist/v2/Header.js +2 -1
- package/dist/v2/Header.js.map +1 -1
- package/dist/v2/HelpPopover.js +53 -56
- package/dist/v2/HelpPopover.js.map +1 -1
- package/dist/v2/KeyboardShortcuts.js +12 -50
- package/dist/v2/KeyboardShortcuts.js.map +1 -1
- package/dist/v2/MoreDropdown.js +61 -80
- package/dist/v2/MoreDropdown.js.map +1 -1
- package/dist/v2/Settings.js +1 -0
- package/dist/v2/Settings.js.map +1 -1
- package/dist/v2/Sidebar.js +88 -103
- package/dist/v2/Sidebar.js.map +1 -1
- package/dist/v2/SubHeader.js +32 -44
- package/dist/v2/SubHeader.js.map +1 -1
- package/package.json +5 -3
- package/dist/Columns-cUgR6NTO.js.map +0 -1
- package/dist/cjs/Columns-D3eocaeY.js.map +0 -1
|
@@ -4,12 +4,13 @@ import { memo, useState, useRef, useEffect, useMemo, forwardRef, useCallback } f
|
|
|
4
4
|
import { globalProps as globalProps$1 } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
5
5
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
6
6
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
7
|
-
import { Spinner, Input, Dialog,
|
|
7
|
+
import { Spinner, Input, Dialog, Badge, Avatar } from '@bigbinary/neeto-atoms';
|
|
8
|
+
import { Popover, PopoverAnchor, PopoverContent, Separator } from '@bigbinary/neeto-atoms/primitives';
|
|
8
9
|
import { isNotEmpty, isNotPresent, isPresent, truncate, humanize } from '@bigbinary/neeto-cist';
|
|
9
10
|
import useHotkeys from '@bigbinary/neeto-hotkeys';
|
|
10
11
|
import Profile from '@bigbinary/neeto-team-members-frontend/Profile';
|
|
11
12
|
import { isEmpty, toLower, mergeDeepLeft, not } from 'ramda';
|
|
12
|
-
import KeyboardShortcuts from '
|
|
13
|
+
import KeyboardShortcuts from './KeyboardShortcuts.js';
|
|
13
14
|
import SubscriptionUpgradeRequestModal from '../SubscriptionUpgradeRequestModal.js';
|
|
14
15
|
import classnames from 'classnames';
|
|
15
16
|
import { useTranslation } from 'react-i18next';
|
|
@@ -30,22 +31,18 @@ import useLocalStorage from '@bigbinary/neeto-commons-frontend/react-utils/useLo
|
|
|
30
31
|
import { getFromLocalStorage } from '@bigbinary/neeto-commons-frontend/utils';
|
|
31
32
|
import { resetAuthTokens } from '@bigbinary/neeto-commons-frontend/utils/axios';
|
|
32
33
|
import { removeFromLocalStorage } from '@bigbinary/neeto-commons-frontend/utils/general';
|
|
33
|
-
import CopyToClipboardButton from '
|
|
34
|
-
import '../useKeyboardShortcutsPaneState-
|
|
34
|
+
import CopyToClipboardButton from './CopyToClipboardButton.js';
|
|
35
|
+
import '../useKeyboardShortcutsPaneState-dNIbb_PI.js';
|
|
35
36
|
import 'zustand/shallow';
|
|
36
37
|
import '@bigbinary/neeto-commons-frontend/react-utils/withImmutableActions';
|
|
37
38
|
import 'zustand';
|
|
38
|
-
import '@bigbinary/neeto-icons/Close';
|
|
39
|
-
import '@bigbinary/neetoui/Typography';
|
|
40
|
-
import '@bigbinary/neetoui/Button';
|
|
41
39
|
import '@bigbinary/neetoui/managers';
|
|
42
40
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
43
|
-
import '@bigbinary/neetoui/Kbd';
|
|
44
41
|
import '../ua-parser-OzUiuIwt.js';
|
|
45
|
-
import '../
|
|
42
|
+
import '../x-B1Er0oV4.js';
|
|
43
|
+
import '@bigbinary/neetoui/Button';
|
|
46
44
|
import '@bigbinary/neetoui/Modal';
|
|
47
|
-
import '@bigbinary/
|
|
48
|
-
import '@bigbinary/neeto-icons/Check';
|
|
45
|
+
import '@bigbinary/neetoui/Typography';
|
|
49
46
|
|
|
50
47
|
/**
|
|
51
48
|
* @license lucide-react v1.7.0 - ISC
|
|
@@ -490,23 +487,19 @@ var Menu = function Menu(_ref) {
|
|
|
490
487
|
var Modal = function Modal(_ref) {
|
|
491
488
|
var isOpen = _ref.isOpen,
|
|
492
489
|
onClose = _ref.onClose;
|
|
493
|
-
return /*#__PURE__*/
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
className: "
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
"data-testid": "product-switcher-modal",
|
|
507
|
-
children: /*#__PURE__*/jsx(Menu, {})
|
|
508
|
-
})]
|
|
509
|
-
})
|
|
490
|
+
return /*#__PURE__*/jsxs(Dialog, {
|
|
491
|
+
isOpen: isOpen,
|
|
492
|
+
onClose: onClose,
|
|
493
|
+
"aria-describedby": undefined,
|
|
494
|
+
className: "sm:max-w-4xl",
|
|
495
|
+
closeButton: false,
|
|
496
|
+
children: [/*#__PURE__*/jsx(Dialog.Title, {
|
|
497
|
+
className: "sr-only",
|
|
498
|
+
children: "Product Switcher"
|
|
499
|
+
}), /*#__PURE__*/jsx("div", {
|
|
500
|
+
"data-testid": "product-switcher-modal",
|
|
501
|
+
children: /*#__PURE__*/jsx(Menu, {})
|
|
502
|
+
})]
|
|
510
503
|
});
|
|
511
504
|
};
|
|
512
505
|
|
|
@@ -863,11 +856,6 @@ var ProductSwitcher = function ProductSwitcher(_ref) {
|
|
|
863
856
|
|
|
864
857
|
var MENU_ITEM_CLASS = "flex h-9 w-full items-center gap-2 neeto-ui-rounded-md px-2.5 text-sm font-medium hover:bg-accent";
|
|
865
858
|
|
|
866
|
-
var getInitials$1 = function getInitials(name) {
|
|
867
|
-
return (name || "").split(" ").filter(Boolean).map(function (n) {
|
|
868
|
-
return n[0];
|
|
869
|
-
}).join("").toUpperCase().slice(0, 2);
|
|
870
|
-
};
|
|
871
859
|
var ProfileHeader = function ProfileHeader(_ref) {
|
|
872
860
|
var profileInfo = _ref.profileInfo;
|
|
873
861
|
var name = profileInfo.name,
|
|
@@ -876,15 +864,13 @@ var ProfileHeader = function ProfileHeader(_ref) {
|
|
|
876
864
|
return /*#__PURE__*/jsxs("span", {
|
|
877
865
|
className: "flex w-full min-w-0 items-center gap-2 text-start",
|
|
878
866
|
"data-testid": "floating-action-menu-profile-header",
|
|
879
|
-
children: [/*#__PURE__*/
|
|
867
|
+
children: [/*#__PURE__*/jsx(Avatar, {
|
|
880
868
|
className: "size-8 shrink-0",
|
|
881
869
|
"data-testid": "floating-action-menu-header-profile-icon",
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
}
|
|
886
|
-
children: getInitials$1(name)
|
|
887
|
-
})]
|
|
870
|
+
user: {
|
|
871
|
+
name: name,
|
|
872
|
+
imageUrl: imageUrl
|
|
873
|
+
}
|
|
888
874
|
}), /*#__PURE__*/jsxs("span", {
|
|
889
875
|
className: "flex min-w-0 flex-grow flex-col gap-1",
|
|
890
876
|
children: [/*#__PURE__*/jsx("span", {
|
|
@@ -1212,9 +1198,8 @@ var WorkspaceMenu = function WorkspaceMenu() {
|
|
|
1212
1198
|
children: globalProps$1.organization.subdomain
|
|
1213
1199
|
}), /*#__PURE__*/jsx(CopyToClipboardButton, {
|
|
1214
1200
|
className: "flex-shrink-0",
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
value: globalProps$1.organization.subdomain
|
|
1201
|
+
value: globalProps$1.organization.subdomain,
|
|
1202
|
+
variant: "ghost"
|
|
1218
1203
|
})]
|
|
1219
1204
|
})]
|
|
1220
1205
|
})
|
|
@@ -1319,11 +1304,6 @@ var ProfileMenu = function ProfileMenu(_ref) {
|
|
|
1319
1304
|
|
|
1320
1305
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1321
1306
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1322
|
-
var getInitials = function getInitials(name) {
|
|
1323
|
-
return (name || "").split(" ").filter(Boolean).map(function (n) {
|
|
1324
|
-
return n[0];
|
|
1325
|
-
}).join("").toUpperCase().slice(0, 2);
|
|
1326
|
-
};
|
|
1327
1307
|
var ProfileButton = function ProfileButton(_ref) {
|
|
1328
1308
|
var profileInfoOverrides = _ref.profileInfoOverrides,
|
|
1329
1309
|
showProductSwitcher = _ref.showProductSwitcher,
|
|
@@ -1417,16 +1397,13 @@ var ProfileButton = function ProfileButton(_ref) {
|
|
|
1417
1397
|
type: "button",
|
|
1418
1398
|
onMouseEnter: handleMouseEnter,
|
|
1419
1399
|
onMouseLeave: handleMouseLeave,
|
|
1420
|
-
children: [/*#__PURE__*/
|
|
1400
|
+
children: [/*#__PURE__*/jsx(Avatar, {
|
|
1421
1401
|
className: "size-[1.625rem] shrink-0 rounded-full border-2 border-white",
|
|
1422
1402
|
"data-testid": "profile-avatar",
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
}
|
|
1427
|
-
className: "text-[10px]",
|
|
1428
|
-
children: getInitials(profileInfo.name)
|
|
1429
|
-
})]
|
|
1403
|
+
user: {
|
|
1404
|
+
name: profileInfo.name,
|
|
1405
|
+
imageUrl: profileInfo.imageUrl
|
|
1406
|
+
}
|
|
1430
1407
|
}), /*#__PURE__*/jsx("span", {
|
|
1431
1408
|
className: "flex size-[1.625rem] items-center justify-center rounded-full bg-white",
|
|
1432
1409
|
children: /*#__PURE__*/jsx(CircleQuestionMark, {
|