@bigbinary/neeto-molecules 1.0.54 → 1.0.55-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.
@@ -1,9 +1,9 @@
1
1
  import React, { forwardRef, useRef, useState } from 'react';
2
2
  import { snakeToCamelCase, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
3
3
  import { useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
4
- import { Typography, Dropdown as Dropdown$1, Button, Input, Alert, Tag, Callout, Pane, Label, Table, NoData } from '@bigbinary/neetoui';
4
+ import { Typography, Dropdown as Dropdown$1, Input, Button, Alert, Tag, Callout, Pane, Label, Table, NoData } from '@bigbinary/neetoui';
5
5
  import { useTranslation, Trans } from 'react-i18next';
6
- import { Right, MenuVertical, HamburgerMenu, Search, Column, Download, Filter, MenuHorizontal, Info, Copy, Check } from '@bigbinary/neeto-icons';
6
+ import { MenuVertical, Search, Column, Download, Filter, MenuHorizontal, Info, Copy, Check } from '@bigbinary/neeto-icons';
7
7
  import { isEmpty } from 'ramda';
8
8
  import { Link } from 'react-router-dom';
9
9
  import { Neeto } from '@bigbinary/neeto-icons/logos';
@@ -1332,7 +1332,7 @@ if (process.env.NODE_ENV !== 'production') {
1332
1332
 
1333
1333
  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}}
1334
1334
 
1335
- 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 24px}.neeto-molecules-container--header-fixed{padding:0}.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:24px;padding-right:24px}";
1335
+ 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}";
1336
1336
  n(css$3,{});
1337
1337
 
1338
1338
  var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -1354,7 +1354,7 @@ Container.propTypes = {
1354
1354
  isHeaderFixed: propTypes.exports.bool
1355
1355
  };
1356
1356
 
1357
- var css$2 = ".neeto-molecules-header{align-items:center;background:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;min-height:var(--neeto-ui-main-header-height);padding:24px 0;width:100%}.neeto-molecules-header--has-breadcrumbs{min-height:var(--neeto-ui-main-header-with-breadcrumbs-height)}.neeto-molecules-header .neeto-molecules-header__toggle-menubar-btn{margin-right:8px}.neeto-molecules-header .neeto-molecules-header__left{align-items:center;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{display:flex;flex-direction:row;width:100%}.neeto-molecules-header .neeto-molecules-header__breadcrumbs-wrap{display:flex}.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{margin:0 4px}.neeto-molecules-header .neeto-molecules-header__right{align-items:center;display:flex;flex-direction:row;justify-content:flex-end}";
1357
+ var css$2 = ".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{display:flex;flex-direction:row;width:100%}.neeto-molecules-header .neeto-molecules-header__page-title h2{font-size:40px;line-height:48px}.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}";
1358
1358
  n(css$2,{});
1359
1359
 
1360
1360
  var Breadcrumbs = function Breadcrumbs(_ref) {
@@ -1370,16 +1370,15 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
1370
1370
  }, /*#__PURE__*/React.createElement(Link, {
1371
1371
  to: link
1372
1372
  }, /*#__PURE__*/React.createElement(Typography, {
1373
- className: "neeto-molecules-text-gray-700 hover:neeto-ui-text-gray-800 neeto-molecules-header__breadcrumb-link",
1373
+ className: "neeto-ui-text-gray-700 hover:neeto-ui-text-gray-800 neeto-molecules-header__breadcrumb-link",
1374
1374
  component: "span",
1375
1375
  "data-cy": text,
1376
1376
  "data-test-id": text,
1377
1377
  style: "body2",
1378
1378
  weight: "normal"
1379
- }, text)), /*#__PURE__*/React.createElement(Right, {
1380
- className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-gray-400",
1381
- size: 16
1382
- }));
1379
+ }, text)), index + 1 !== breadcrumbs.length && /*#__PURE__*/React.createElement("span", {
1380
+ className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-black"
1381
+ }, "/"));
1383
1382
  }));
1384
1383
  };
1385
1384
 
@@ -1430,7 +1429,6 @@ var Dropdown = function Dropdown(_ref) {
1430
1429
 
1431
1430
  var Header = function Header(_ref) {
1432
1431
  var title = _ref.title,
1433
- menuBarToggle = _ref.menuBarToggle,
1434
1432
  searchProps = _ref.searchProps,
1435
1433
  _ref$className = _ref.className,
1436
1434
  className = _ref$className === void 0 ? "" : _ref$className,
@@ -1447,14 +1445,7 @@ var Header = function Header(_ref) {
1447
1445
  }, className])
1448
1446
  }, /*#__PURE__*/React.createElement("div", {
1449
1447
  className: "neeto-molecules-header__left"
1450
- }, menuBarToggle && /*#__PURE__*/React.createElement(Button, {
1451
- "aria-label": "Toggle Menubar",
1452
- className: "neeto-molecules-header__toggle-menubar-btn",
1453
- "data-cy": "menubar-toggle-button",
1454
- icon: HamburgerMenu,
1455
- style: "text",
1456
- onClick: menuBarToggle
1457
- }), /*#__PURE__*/React.createElement("div", {
1448
+ }, /*#__PURE__*/React.createElement("div", {
1458
1449
  className: "neeto-molecules-header__left-data-wrap"
1459
1450
  }, breadcrumbs && /*#__PURE__*/React.createElement(Breadcrumbs, {
1460
1451
  breadcrumbs: breadcrumbs