@bigbinary/neeto-molecules 1.0.72 → 1.0.73-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Container.cjs.js +1 -1
- package/dist/Container.js +1 -1
- package/dist/CustomDomainDashboard.cjs.js +12 -26
- package/dist/CustomDomainDashboard.cjs.js.map +1 -1
- package/dist/CustomDomainDashboard.js +14 -28
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/Header.cjs.js +12 -25
- package/dist/Header.cjs.js.map +1 -1
- package/dist/Header.js +14 -27
- package/dist/Header.js.map +1 -1
- package/dist/MenuBar.cjs.js +1 -1
- package/dist/MenuBar.js +1 -1
- package/dist/Sidebar.cjs.js +141 -95
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +143 -97
- package/dist/Sidebar.js.map +1 -1
- package/package.json +2 -2
- package/src/translations/en.json +6 -2
- package/types/Sidebar.d.ts +1 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { forwardRef, useRef, useState } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { isNotEmpty, snakeToCamelCase } from '@bigbinary/neeto-commons-frontend/pure';
|
|
4
4
|
import { useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
5
|
import { Typography, Button, Alert, Dropdown as Dropdown$1, Input, Tag, Callout, Pane, Label, Table, NoData } from '@bigbinary/neetoui';
|
|
6
6
|
import { useTranslation, Trans } from 'react-i18next';
|
|
7
|
-
import { Column, Download, Filter,
|
|
7
|
+
import { Column, Download, Filter, MenuVertical, Search, MenuHorizontal, Info, Copy, Check } from '@bigbinary/neeto-icons';
|
|
8
8
|
import ManageColumns from '@bigbinary/neeto-molecules/Columns';
|
|
9
9
|
import { Filters } from '@bigbinary/neeto-filters-frontend';
|
|
10
10
|
import { withEventTargetValue, joinHyphenCase, copyToClipboard, timeFormat } from '@bigbinary/neeto-commons-frontend/utils';
|
|
11
|
-
import { isEmpty } from 'ramda';
|
|
12
11
|
import { Link } from 'react-router-dom';
|
|
13
12
|
import { Formik, Form } from 'formik';
|
|
14
13
|
import { Input as Input$1 } from '@bigbinary/neetoui/formik';
|
|
@@ -1317,7 +1316,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1317
1316
|
|
|
1318
1317
|
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}}
|
|
1319
1318
|
|
|
1320
|
-
var css$3 = ".neeto-molecules-container{align-items:flex-start;display:flex;flex-direction:column;flex-grow:1;height:100vh;justify-content:flex-start;overflow-y:auto;padding:0
|
|
1319
|
+
var css$3 = ".neeto-molecules-container{align-items:flex-start;display:flex;flex-direction:column;flex-grow:1;height:100vh;justify-content:flex-start;overflow-y:auto;padding:0 40px!important}.neeto-molecules-container--header-fixed{padding:0!important}.neeto-molecules-container--header-fixed>.neeto-molecules-header,.neeto-molecules-container--header-fixed>.neeto-molecules-scrollable,.neeto-molecules-container--header-fixed>.neeto-molecules-subheader{padding-left:40px!important;padding-right:40px!important}";
|
|
1321
1320
|
n(css$3,{});
|
|
1322
1321
|
|
|
1323
1322
|
var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -1639,7 +1638,7 @@ var DeleteAlert = function DeleteAlert(_ref) {
|
|
|
1639
1638
|
});
|
|
1640
1639
|
};
|
|
1641
1640
|
|
|
1642
|
-
var css = ".neeto-molecules-header{align-items:
|
|
1641
|
+
var css = ".neeto-molecules-header{align-items:flex-start!important;background:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;min-height:auto!important;padding:40px 0 24px!important;width:100%}.neeto-molecules-header .neeto-molecules-header__toggle-menubar-btn{margin-right:8px}.neeto-molecules-header .neeto-molecules-header__left{align-items:flex-start!important;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:-16px;width:100%}.neeto-molecules-header .neeto-molecules-header__page-title h2{font-size:40px;line-height:48px}.neeto-molecules-header .neeto-molecules-header__page-title--has-breadcrumbs{margin-top:0}.neeto-molecules-header .neeto-molecules-header__breadcrumbs-wrap{display:flex;margin:0 0 40px}.neeto-molecules-header .neeto-molecules-header__breadcrumb{align-items:center;display:flex;flex-direction:row;justify-content:flex-start;line-height:1}.neeto-molecules-header .neeto-molecules-header__breadcrumb a{text-decoration:none;transition:all .3s ease-in-out}.neeto-molecules-header .neeto-molecules-header__breadcrumb a:focus-visible{border-radius:var(--neeto-ui-rounded-sm);outline:3px solid rgba(var(--neeto-ui-primary-500),50%)}.neeto-molecules-header .neeto-molecules-header__breadcrumb-separator{font-size:12px;line-height:16px;margin:0 12px!important}.neeto-molecules-header .neeto-molecules-header__right{align-items:center;display:flex;flex-direction:row;justify-content:flex-end}";
|
|
1643
1642
|
n(css,{});
|
|
1644
1643
|
|
|
1645
1644
|
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
@@ -1655,16 +1654,15 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
1655
1654
|
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
1656
1655
|
to: link
|
|
1657
1656
|
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1658
|
-
className: "neeto-
|
|
1657
|
+
className: "neeto-ui-text-gray-700 hover:neeto-ui-text-gray-800 neeto-molecules-header__breadcrumb-link",
|
|
1659
1658
|
component: "span",
|
|
1660
1659
|
"data-cy": text,
|
|
1661
1660
|
"data-test-id": text,
|
|
1662
1661
|
style: "body2",
|
|
1663
1662
|
weight: "normal"
|
|
1664
|
-
}, text)), /*#__PURE__*/React__default.createElement(
|
|
1665
|
-
className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-
|
|
1666
|
-
|
|
1667
|
-
}));
|
|
1663
|
+
}, text)), index + 1 !== breadcrumbs.length && /*#__PURE__*/React__default.createElement("span", {
|
|
1664
|
+
className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-black"
|
|
1665
|
+
}, "/"));
|
|
1668
1666
|
}));
|
|
1669
1667
|
};
|
|
1670
1668
|
var Breadcrumbs$1 = /*#__PURE__*/React__default.memo(Breadcrumbs);
|
|
@@ -1675,11 +1673,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1675
1673
|
children = _ref$dropdownProps.children,
|
|
1676
1674
|
otherProps = _objectWithoutProperties(_ref$dropdownProps, _excluded);
|
|
1677
1675
|
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
1678
|
-
buttonProps: {
|
|
1679
|
-
className: "ml-1.5"
|
|
1680
|
-
},
|
|
1681
1676
|
buttonStyle: "text",
|
|
1682
|
-
className: "ml-3",
|
|
1683
1677
|
icon: MenuVertical,
|
|
1684
1678
|
position: "bottom-end"
|
|
1685
1679
|
}, otherProps), children);
|
|
@@ -1687,7 +1681,6 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1687
1681
|
|
|
1688
1682
|
var Header$2 = function Header(_ref) {
|
|
1689
1683
|
var title = _ref.title,
|
|
1690
|
-
menuBarToggle = _ref.menuBarToggle,
|
|
1691
1684
|
searchProps = _ref.searchProps,
|
|
1692
1685
|
_ref$className = _ref.className,
|
|
1693
1686
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -1699,24 +1692,17 @@ var Header$2 = function Header(_ref) {
|
|
|
1699
1692
|
var _useTranslation = useTranslation(),
|
|
1700
1693
|
t = _useTranslation.t;
|
|
1701
1694
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1702
|
-
className: classnames(["neeto-molecules-header",
|
|
1703
|
-
"neeto-molecules-header--has-breadcrumbs": !isEmpty(breadcrumbs)
|
|
1704
|
-
}, className])
|
|
1695
|
+
className: classnames(["neeto-molecules-header", className])
|
|
1705
1696
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1706
1697
|
className: "neeto-molecules-header__left"
|
|
1707
|
-
},
|
|
1708
|
-
"aria-label": "Toggle Menubar",
|
|
1709
|
-
className: "neeto-molecules-header__toggle-menubar-btn",
|
|
1710
|
-
"data-cy": "menubar-toggle-button",
|
|
1711
|
-
icon: HamburgerMenu,
|
|
1712
|
-
style: "text",
|
|
1713
|
-
onClick: menuBarToggle
|
|
1714
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1698
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1715
1699
|
className: "neeto-molecules-header__left-data-wrap"
|
|
1716
|
-
}, breadcrumbs && /*#__PURE__*/React__default.createElement(Breadcrumbs$1, {
|
|
1700
|
+
}, isNotEmpty(breadcrumbs) && /*#__PURE__*/React__default.createElement(Breadcrumbs$1, {
|
|
1717
1701
|
breadcrumbs: breadcrumbs
|
|
1718
1702
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1719
|
-
className: "neeto-molecules-header__page-title"
|
|
1703
|
+
className: classnames("neeto-molecules-header__page-title", {
|
|
1704
|
+
"neeto-molecules-header__page-title--has-breadcrumbs": isNotEmpty(breadcrumbs)
|
|
1705
|
+
})
|
|
1720
1706
|
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1721
1707
|
"data-cy": "main-header",
|
|
1722
1708
|
"data-test-id": "main-header",
|