@bigbinary/neeto-molecules 1.0.63 → 1.0.65-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.
Files changed (61) hide show
  1. package/dist/Container.cjs.js +1 -1
  2. package/dist/Container.js +1 -1
  3. package/dist/CustomDomainDashboard.cjs.js +11 -18
  4. package/dist/CustomDomainDashboard.cjs.js.map +1 -1
  5. package/dist/CustomDomainDashboard.js +12 -19
  6. package/dist/CustomDomainDashboard.js.map +1 -1
  7. package/dist/EmailPreview.cjs.js +2 -1
  8. package/dist/EmailPreview.cjs.js.map +1 -1
  9. package/dist/EmailPreview.js +2 -1
  10. package/dist/EmailPreview.js.map +1 -1
  11. package/dist/Header.cjs.js +8 -16
  12. package/dist/Header.cjs.js.map +1 -1
  13. package/dist/Header.js +10 -18
  14. package/dist/Header.js.map +1 -1
  15. package/dist/IconPicker.cjs.js +2 -1
  16. package/dist/IconPicker.cjs.js.map +1 -1
  17. package/dist/IconPicker.js +2 -1
  18. package/dist/IconPicker.js.map +1 -1
  19. package/dist/IpRestriction.cjs.js +9 -4
  20. package/dist/IpRestriction.cjs.js.map +1 -1
  21. package/dist/IpRestriction.js +9 -4
  22. package/dist/IpRestriction.js.map +1 -1
  23. package/dist/KeyboardShortcuts.cjs.js +5 -3
  24. package/dist/KeyboardShortcuts.cjs.js.map +1 -1
  25. package/dist/KeyboardShortcuts.js +5 -3
  26. package/dist/KeyboardShortcuts.js.map +1 -1
  27. package/dist/MenuBar.cjs.js +1 -1
  28. package/dist/MenuBar.js +1 -1
  29. package/dist/NeetoWidget.cjs.js +6 -3
  30. package/dist/NeetoWidget.cjs.js.map +1 -1
  31. package/dist/NeetoWidget.js +6 -3
  32. package/dist/NeetoWidget.js.map +1 -1
  33. package/dist/PageLoader.cjs.js +2 -1
  34. package/dist/PageLoader.cjs.js.map +1 -1
  35. package/dist/PageLoader.js +2 -1
  36. package/dist/PageLoader.js.map +1 -1
  37. package/dist/PhoneNumber.cjs.js +8 -6
  38. package/dist/PhoneNumber.cjs.js.map +1 -1
  39. package/dist/PhoneNumber.js +9 -7
  40. package/dist/PhoneNumber.js.map +1 -1
  41. package/dist/Rename.cjs.js +8 -6
  42. package/dist/Rename.cjs.js.map +1 -1
  43. package/dist/Rename.js +8 -6
  44. package/dist/Rename.js.map +1 -1
  45. package/dist/ShareViaEmail.cjs.js +7 -5
  46. package/dist/ShareViaEmail.cjs.js.map +1 -1
  47. package/dist/ShareViaEmail.js +8 -6
  48. package/dist/ShareViaEmail.js.map +1 -1
  49. package/dist/Sidebar.cjs.js +123 -94
  50. package/dist/Sidebar.cjs.js.map +1 -1
  51. package/dist/Sidebar.js +126 -97
  52. package/dist/Sidebar.js.map +1 -1
  53. package/dist/ThemeSidebar.cjs.js +4 -3
  54. package/dist/ThemeSidebar.cjs.js.map +1 -1
  55. package/dist/ThemeSidebar.js +4 -3
  56. package/dist/ThemeSidebar.js.map +1 -1
  57. package/package.json +1 -1
  58. package/src/translations/en.json +4 -14
  59. package/types/DynamicVariables.d.ts +1 -1
  60. package/types/Rename.d.ts +1 -0
  61. package/types/Sidebar.d.ts +1 -1
@@ -4,7 +4,7 @@ import { snakeToCamelCase, isNotEmpty } from '@bigbinary/neeto-commons-frontend/
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, Right, MenuVertical, HamburgerMenu, Search, MenuHorizontal, Info, Copy, Check } from '@bigbinary/neeto-icons';
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';
@@ -1317,7 +1317,7 @@ if (process.env.NODE_ENV !== 'production') {
1317
1317
 
1318
1318
  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
1319
 
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 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}";
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 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
1321
  n(css$3,{});
1322
1322
 
1323
1323
  var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -1463,6 +1463,7 @@ var PageLoader = function PageLoader(_ref) {
1463
1463
  weight: "semibold"
1464
1464
  }, text)));
1465
1465
  };
1466
+ var PageLoader$1 = /*#__PURE__*/React__default.memo(PageLoader);
1466
1467
 
1467
1468
  function _typeof(obj) {
1468
1469
  "@babel/helpers - typeof";
@@ -1638,7 +1639,7 @@ var DeleteAlert = function DeleteAlert(_ref) {
1638
1639
  });
1639
1640
  };
1640
1641
 
1641
- var css = ".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}";
1642
+ 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{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}";
1642
1643
  n(css,{});
1643
1644
 
1644
1645
  var Breadcrumbs = function Breadcrumbs(_ref) {
@@ -1654,18 +1655,18 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
1654
1655
  }, /*#__PURE__*/React__default.createElement(Link, {
1655
1656
  to: link
1656
1657
  }, /*#__PURE__*/React__default.createElement(Typography, {
1657
- className: "neeto-molecules-text-gray-700 hover:neeto-ui-text-gray-800 neeto-molecules-header__breadcrumb-link",
1658
+ className: "neeto-ui-text-gray-700 hover:neeto-ui-text-gray-800 neeto-molecules-header__breadcrumb-link",
1658
1659
  component: "span",
1659
1660
  "data-cy": text,
1660
1661
  "data-test-id": text,
1661
1662
  style: "body2",
1662
1663
  weight: "normal"
1663
- }, text)), /*#__PURE__*/React__default.createElement(Right, {
1664
- className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-gray-400",
1665
- size: 16
1666
- }));
1664
+ }, text)), index + 1 !== breadcrumbs.length && /*#__PURE__*/React__default.createElement("span", {
1665
+ className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-black"
1666
+ }, "/"));
1667
1667
  }));
1668
1668
  };
1669
+ var Breadcrumbs$1 = /*#__PURE__*/React__default.memo(Breadcrumbs);
1669
1670
 
1670
1671
  var _excluded = ["children"];
1671
1672
  var Dropdown = function Dropdown(_ref) {
@@ -1685,7 +1686,6 @@ var Dropdown = function Dropdown(_ref) {
1685
1686
 
1686
1687
  var Header$2 = function Header(_ref) {
1687
1688
  var title = _ref.title,
1688
- menuBarToggle = _ref.menuBarToggle,
1689
1689
  searchProps = _ref.searchProps,
1690
1690
  _ref$className = _ref.className,
1691
1691
  className = _ref$className === void 0 ? "" : _ref$className,
@@ -1702,16 +1702,9 @@ var Header$2 = function Header(_ref) {
1702
1702
  }, className])
1703
1703
  }, /*#__PURE__*/React__default.createElement("div", {
1704
1704
  className: "neeto-molecules-header__left"
1705
- }, menuBarToggle && /*#__PURE__*/React__default.createElement(Button, {
1706
- "aria-label": "Toggle Menubar",
1707
- className: "neeto-molecules-header__toggle-menubar-btn",
1708
- "data-cy": "menubar-toggle-button",
1709
- icon: HamburgerMenu,
1710
- style: "text",
1711
- onClick: menuBarToggle
1712
- }), /*#__PURE__*/React__default.createElement("div", {
1705
+ }, /*#__PURE__*/React__default.createElement("div", {
1713
1706
  className: "neeto-molecules-header__left-data-wrap"
1714
- }, breadcrumbs && /*#__PURE__*/React__default.createElement(Breadcrumbs, {
1707
+ }, breadcrumbs && /*#__PURE__*/React__default.createElement(Breadcrumbs$1, {
1715
1708
  breadcrumbs: breadcrumbs
1716
1709
  }), /*#__PURE__*/React__default.createElement("div", {
1717
1710
  className: "neeto-molecules-header__page-title"
@@ -2231,7 +2224,7 @@ var CustomDomainDashboard = function CustomDomainDashboard(_ref) {
2231
2224
  setSearchTerm: setSearchTerm
2232
2225
  }), isLoading && /*#__PURE__*/React__default.createElement("div", {
2233
2226
  className: "h-screen w-full"
2234
- }, /*#__PURE__*/React__default.createElement(PageLoader, null)), !isLoading && (isNotEmpty(data === null || data === void 0 ? void 0 : data.customDomains) ? /*#__PURE__*/React__default.createElement("div", {
2227
+ }, /*#__PURE__*/React__default.createElement(PageLoader$1, null)), !isLoading && (isNotEmpty(data === null || data === void 0 ? void 0 : data.customDomains) ? /*#__PURE__*/React__default.createElement("div", {
2235
2228
  className: "w-full flex-grow"
2236
2229
  }, /*#__PURE__*/React__default.createElement(SubHeader, {
2237
2230
  leftActionBlock: /*#__PURE__*/React__default.createElement(Typography, {