@bigbinary/neeto-molecules 1.0.85 → 1.0.87-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/README.md +1 -0
- package/dist/Container.cjs.js +1 -1
- package/dist/Container.js +1 -1
- package/dist/CustomDomainDashboard.cjs.js +23 -28
- package/dist/CustomDomainDashboard.cjs.js.map +1 -1
- package/dist/CustomDomainDashboard.js +26 -31
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/DynamicVariables.cjs.js +54 -6
- package/dist/DynamicVariables.cjs.js.map +1 -1
- package/dist/DynamicVariables.js +54 -6
- package/dist/DynamicVariables.js.map +1 -1
- package/dist/Header.cjs.js +11 -23
- package/dist/Header.cjs.js.map +1 -1
- package/dist/Header.js +14 -26
- package/dist/Header.js.map +1 -1
- package/dist/ImageWithFallback.cjs.js +247 -0
- package/dist/ImageWithFallback.cjs.js.map +1 -0
- package/dist/ImageWithFallback.js +241 -0
- package/dist/ImageWithFallback.js.map +1 -0
- package/dist/MenuBar.cjs.js +30 -18
- package/dist/MenuBar.cjs.js.map +1 -1
- package/dist/MenuBar.js +30 -18
- package/dist/MenuBar.js.map +1 -1
- package/dist/Scrollable.cjs.js +5 -1
- package/dist/Scrollable.cjs.js.map +1 -1
- package/dist/Scrollable.js +5 -1
- package/dist/Scrollable.js.map +1 -1
- package/dist/Sidebar.cjs.js +214 -137
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +217 -140
- package/dist/Sidebar.js.map +1 -1
- package/dist/SubHeader.cjs.js +11 -5
- package/dist/SubHeader.cjs.js.map +1 -1
- package/dist/SubHeader.js +11 -5
- package/dist/SubHeader.js.map +1 -1
- package/package.json +2 -2
- package/src/translations/en.json +6 -2
- package/types/DateRangeFilter.d.ts +1 -1
- package/types/ImageWithFallback.d.ts +23 -0
- package/types/Sidebar.d.ts +1 -1
- package/types/SubHeader.d.ts +1 -0
package/README.md
CHANGED
|
@@ -46,6 +46,7 @@ https://neeto-molecules.neeto.com/
|
|
|
46
46
|
- [PhoneNumber](./docs/components.md#phonenumber)
|
|
47
47
|
- [Rename](./docs/components.md#rename)
|
|
48
48
|
- [ThemeSidebar](./docs/components.md#themesidebar)
|
|
49
|
+
- [ImageWIthFallback](./docs/components.md#ImageWIthFallback)
|
|
49
50
|
|
|
50
51
|
## Installation Instructions
|
|
51
52
|
|
package/dist/Container.cjs.js
CHANGED
|
@@ -1251,7 +1251,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1251
1251
|
|
|
1252
1252
|
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}}
|
|
1253
1253
|
|
|
1254
|
-
var css = ".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
|
|
1254
|
+
var css = ".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}";
|
|
1255
1255
|
n(css,{});
|
|
1256
1256
|
|
|
1257
1257
|
var Container = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
package/dist/Container.js
CHANGED
|
@@ -1245,7 +1245,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1245
1245
|
|
|
1246
1246
|
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}}
|
|
1247
1247
|
|
|
1248
|
-
var css = ".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
|
|
1248
|
+
var css = ".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}";
|
|
1249
1249
|
n(css,{});
|
|
1250
1250
|
|
|
1251
1251
|
var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -1345,7 +1345,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1345
1345
|
|
|
1346
1346
|
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}}
|
|
1347
1347
|
|
|
1348
|
-
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
|
|
1348
|
+
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}";
|
|
1349
1349
|
n(css$3,{});
|
|
1350
1350
|
|
|
1351
1351
|
var Container = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -1621,23 +1621,29 @@ var RightBlock = function RightBlock(_ref) {
|
|
|
1621
1621
|
}, downloadButtonProps && /*#__PURE__*/React__default["default"].createElement(DownloadButton, downloadButtonProps), columnsButtonProps && /*#__PURE__*/React__default["default"].createElement(Columns, columnsButtonProps), filterProps && /*#__PURE__*/React__default["default"].createElement(FilterButton, filterProps));
|
|
1622
1622
|
};
|
|
1623
1623
|
|
|
1624
|
-
var css$1 = ".neeto-molecules-subheader{align-items:center;background-color:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--neeto-
|
|
1624
|
+
var css$1 = ":root{--neeto-molecules-sub-header-height:37px;--neeto-molecules-sub-header-bottom-margin:20px}.neeto-molecules-subheader{align-items:center;background-color:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;margin-bottom:20px;margin-bottom:var(--neeto-molecules-sub-header-bottom-margin);min-height:37px;min-height:var(--neeto-molecules-sub-header-height);width:100%}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper{display:flex;flex-grow:1}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left{align-items:center;display:flex;flex-direction:row;justify-content:flex-start}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left .neeto-molecules-input__prefix{color:rgb(var(--neeto-ui-gray-400))}.neeto-molecules-subheader .neeto-molecules-subheader__right{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-end}.neeto-molecules-subheader .neeto-molecules-subheader__right-actions{align-items:center;display:flex;flex-direction:row;gap:8px;justify-content:flex-end}.neeto-molecules-subheader .neeto-molecules-subheader__right-actions>:not([hidden])~:not([hidden]){border-left:thin solid rgb(var(--neeto-ui-gray-300));padding-left:8px}.neeto-molecules-subheader__download{position:relative}.neeto-molecules-subheader__download-count{align-items:center;background-color:rgb(var(--neeto-ui-primary-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:inline-flex;font-size:10px;justify-content:center;min-height:16px;min-width:16px;position:absolute;right:-2px;text-align:center;top:-2px;z-index:1}";
|
|
1625
1625
|
n(css$1,{});
|
|
1626
1626
|
|
|
1627
1627
|
var SubHeader = function SubHeader(_ref) {
|
|
1628
1628
|
var _ref$className = _ref.className,
|
|
1629
1629
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
1630
1630
|
leftActionBlock = _ref.leftActionBlock,
|
|
1631
|
-
rightActionBlock = _ref.rightActionBlock
|
|
1631
|
+
rightActionBlock = _ref.rightActionBlock,
|
|
1632
|
+
_ref$dataCy = _ref["data-cy"],
|
|
1633
|
+
dataCy = _ref$dataCy === void 0 ? "subheader" : _ref$dataCy;
|
|
1632
1634
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1633
1635
|
className: classnames(["neeto-molecules-subheader", className]),
|
|
1636
|
+
"data-cy": dataCy,
|
|
1634
1637
|
"data-testid": "subheader"
|
|
1635
1638
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1636
|
-
className: "neeto-molecules-subheader__left-wrapper"
|
|
1639
|
+
className: "neeto-molecules-subheader__left-wrapper",
|
|
1640
|
+
"data-cy": "subheader-left-wrapper"
|
|
1637
1641
|
}, leftActionBlock && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1638
|
-
className: "neeto-molecules-subheader__left"
|
|
1642
|
+
className: "neeto-molecules-subheader__left",
|
|
1643
|
+
"data-cy": "subheader-left"
|
|
1639
1644
|
}, leftActionBlock)), rightActionBlock && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1640
|
-
className: "neeto-molecules-subheader__right"
|
|
1645
|
+
className: "neeto-molecules-subheader__right",
|
|
1646
|
+
"data-cy": "subheader-right"
|
|
1641
1647
|
}, rightActionBlock));
|
|
1642
1648
|
};
|
|
1643
1649
|
SubHeader.RightBlock = RightBlock;
|
|
@@ -1667,7 +1673,7 @@ var DeleteAlert = function DeleteAlert(_ref) {
|
|
|
1667
1673
|
});
|
|
1668
1674
|
};
|
|
1669
1675
|
|
|
1670
|
-
var css = ".neeto-molecules-header{align-items:
|
|
1676
|
+
var css = ":root{--neeto-molecules-main-header-height:96px;--neeto-molecules-main-header-with-breadcrumbs-height:168px}.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:96px;min-height:var(--neeto-molecules-main-header-height);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__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}.neeto-molecules-header--has-breadcrumbs{min-height:168px;min-height:var(--neeto-molecules-main-header-with-breadcrumbs-height)}.neeto-molecules-header--has-breadcrumbs .neeto-molecules-header__page-title{margin-top:0}";
|
|
1671
1677
|
n(css,{});
|
|
1672
1678
|
|
|
1673
1679
|
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
@@ -1676,34 +1682,31 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
1676
1682
|
className: "neeto-molecules-header__breadcrumbs-wrap"
|
|
1677
1683
|
}, breadcrumbs.map(function (_ref2, index) {
|
|
1678
1684
|
var text = _ref2.text,
|
|
1679
|
-
link = _ref2.link
|
|
1685
|
+
_ref2$link = _ref2.link,
|
|
1686
|
+
link = _ref2$link === void 0 ? "#" : _ref2$link;
|
|
1680
1687
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1681
1688
|
className: "neeto-molecules-header__breadcrumb",
|
|
1689
|
+
"data-cy": "header-breadcrumb",
|
|
1682
1690
|
key: index
|
|
1683
1691
|
}, /*#__PURE__*/React__default["default"].createElement(reactRouterDom.Link, {
|
|
1684
1692
|
to: link
|
|
1685
1693
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
1686
|
-
className: "neeto-
|
|
1694
|
+
className: "neeto-ui-text-gray-700 hover:neeto-ui-text-gray-800 neeto-molecules-header__breadcrumb-link",
|
|
1687
1695
|
component: "span",
|
|
1688
1696
|
"data-cy": text,
|
|
1689
1697
|
"data-test-id": text,
|
|
1690
1698
|
style: "body2",
|
|
1691
1699
|
weight: "normal"
|
|
1692
|
-
}, text)), /*#__PURE__*/React__default["default"].createElement(
|
|
1693
|
-
className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-
|
|
1694
|
-
|
|
1695
|
-
}));
|
|
1700
|
+
}, text)), index + 1 !== breadcrumbs.length && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1701
|
+
className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-black"
|
|
1702
|
+
}, "/"));
|
|
1696
1703
|
}));
|
|
1697
1704
|
};
|
|
1698
1705
|
var Breadcrumbs$1 = /*#__PURE__*/React__default["default"].memo(Breadcrumbs);
|
|
1699
1706
|
|
|
1700
1707
|
var Dropdown = function Dropdown(props) {
|
|
1701
1708
|
return /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, _extends$1({
|
|
1702
|
-
buttonProps: {
|
|
1703
|
-
className: "ml-1.5"
|
|
1704
|
-
},
|
|
1705
1709
|
buttonStyle: "text",
|
|
1706
|
-
className: "ml-3",
|
|
1707
1710
|
icon: neetoIcons.MenuVertical,
|
|
1708
1711
|
position: "bottom-end"
|
|
1709
1712
|
}, props));
|
|
@@ -1711,7 +1714,6 @@ var Dropdown = function Dropdown(props) {
|
|
|
1711
1714
|
|
|
1712
1715
|
var Header$2 = function Header(_ref) {
|
|
1713
1716
|
var title = _ref.title,
|
|
1714
|
-
menuBarToggle = _ref.menuBarToggle,
|
|
1715
1717
|
searchProps = _ref.searchProps,
|
|
1716
1718
|
_ref$className = _ref.className,
|
|
1717
1719
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -1725,20 +1727,13 @@ var Header$2 = function Header(_ref) {
|
|
|
1725
1727
|
t = _useTranslation.t;
|
|
1726
1728
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1727
1729
|
className: classnames(["neeto-molecules-header", {
|
|
1728
|
-
"neeto-molecules-header--has-breadcrumbs":
|
|
1730
|
+
"neeto-molecules-header--has-breadcrumbs": pure.isNotEmpty(breadcrumbs)
|
|
1729
1731
|
}, className])
|
|
1730
1732
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1731
1733
|
className: "neeto-molecules-header__left"
|
|
1732
|
-
},
|
|
1733
|
-
"aria-label": "Toggle Menubar",
|
|
1734
|
-
className: "neeto-molecules-header__toggle-menubar-btn",
|
|
1735
|
-
"data-cy": "menubar-toggle-button",
|
|
1736
|
-
icon: neetoIcons.HamburgerMenu,
|
|
1737
|
-
style: "text",
|
|
1738
|
-
onClick: menuBarToggle
|
|
1739
|
-
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1734
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1740
1735
|
className: "neeto-molecules-header__left-data-wrap"
|
|
1741
|
-
}, breadcrumbs && /*#__PURE__*/React__default["default"].createElement(Breadcrumbs$1, {
|
|
1736
|
+
}, pure.isNotEmpty(breadcrumbs) && /*#__PURE__*/React__default["default"].createElement(Breadcrumbs$1, {
|
|
1742
1737
|
breadcrumbs: breadcrumbs
|
|
1743
1738
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1744
1739
|
className: "neeto-molecules-header__page-title"
|