@bigbinary/neeto-molecules 1.7.0-beta.1 → 1.7.0-beta.2
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 +63 -54
- package/dist/Breadcrumbs.js +4 -9
- package/dist/Breadcrumbs.js.map +1 -1
- package/dist/Builder.js +70 -149
- package/dist/Builder.js.map +1 -1
- package/dist/CalendarView.js +39 -6
- package/dist/CalendarView.js.map +1 -1
- package/dist/Columns.js +27 -16
- package/dist/Columns.js.map +1 -1
- package/dist/Currency.js +937 -0
- package/dist/Currency.js.map +1 -0
- package/dist/CustomDomainDashboard.js +45 -39
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/EmojiPicker.js +134 -0
- package/dist/EmojiPicker.js.map +1 -0
- package/dist/EmojiReactions.js +123 -0
- package/dist/EmojiReactions.js.map +1 -0
- package/dist/ErrorPage.js +4 -2
- package/dist/ErrorPage.js.map +1 -1
- package/dist/FloatingActionMenu.js +7 -6
- package/dist/FloatingActionMenu.js.map +1 -1
- package/dist/Header.js +9 -36
- package/dist/Header.js.map +1 -1
- package/dist/HelpPopover.js +109 -27
- package/dist/HelpPopover.js.map +1 -1
- package/dist/IntegrationCard.js +1 -1
- package/dist/IntegrationCard.js.map +1 -1
- package/dist/IpRestriction.js +1 -3
- package/dist/IpRestriction.js.map +1 -1
- package/dist/LoginPage.js +5 -4
- package/dist/LoginPage.js.map +1 -1
- package/dist/MenuBar.js +1 -1
- package/dist/NavigationHeader.js +9 -9
- package/dist/NavigationHeader.js.map +1 -1
- package/dist/ProductEmbed.js +72 -23
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/PublishBlock.js +2 -0
- package/dist/PublishBlock.js.map +1 -1
- package/dist/Rename.js +4 -9
- package/dist/Rename.js.map +1 -1
- package/dist/Schedule.js +8 -4
- package/dist/Schedule.js.map +1 -1
- package/dist/Search.js +3 -1
- package/dist/Search.js.map +1 -1
- package/dist/Security.js +7 -34
- package/dist/Security.js.map +1 -1
- package/dist/Settings.js +12 -38
- package/dist/Settings.js.map +1 -1
- package/dist/ShareViaLink.js +30 -25
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/Sidebar.js +449 -50
- package/dist/Sidebar.js.map +1 -1
- package/dist/SubHeader.js +40 -7
- package/dist/SubHeader.js.map +1 -1
- package/dist/Taxonomy.js +46 -40
- package/dist/Taxonomy.js.map +1 -1
- package/dist/cjs/Breadcrumbs.js +4 -9
- package/dist/cjs/Breadcrumbs.js.map +1 -1
- package/dist/cjs/Builder.js +70 -149
- package/dist/cjs/Builder.js.map +1 -1
- package/dist/cjs/CalendarView.js +36 -3
- package/dist/cjs/CalendarView.js.map +1 -1
- package/dist/cjs/Columns.js +25 -14
- package/dist/cjs/Columns.js.map +1 -1
- package/dist/cjs/Currency.js +943 -0
- package/dist/cjs/Currency.js.map +1 -0
- package/dist/cjs/CustomDomainDashboard.js +43 -36
- package/dist/cjs/CustomDomainDashboard.js.map +1 -1
- package/dist/cjs/EmojiPicker.js +142 -0
- package/dist/cjs/EmojiPicker.js.map +1 -0
- package/dist/cjs/EmojiReactions.js +130 -0
- package/dist/cjs/EmojiReactions.js.map +1 -0
- package/dist/cjs/ErrorPage.js +4 -2
- package/dist/cjs/ErrorPage.js.map +1 -1
- package/dist/cjs/FloatingActionMenu.js +7 -6
- package/dist/cjs/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/Header.js +9 -35
- package/dist/cjs/Header.js.map +1 -1
- package/dist/cjs/HelpPopover.js +109 -26
- package/dist/cjs/HelpPopover.js.map +1 -1
- package/dist/cjs/IntegrationCard.js +1 -1
- package/dist/cjs/IntegrationCard.js.map +1 -1
- package/dist/cjs/IpRestriction.js +1 -3
- package/dist/cjs/IpRestriction.js.map +1 -1
- package/dist/cjs/LoginPage.js +5 -4
- package/dist/cjs/LoginPage.js.map +1 -1
- package/dist/cjs/MenuBar.js +1 -1
- package/dist/cjs/NavigationHeader.js +9 -9
- package/dist/cjs/NavigationHeader.js.map +1 -1
- package/dist/cjs/ProductEmbed.js +71 -22
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/dist/cjs/PublishBlock.js +2 -0
- package/dist/cjs/PublishBlock.js.map +1 -1
- package/dist/cjs/Rename.js +4 -9
- package/dist/cjs/Rename.js.map +1 -1
- package/dist/cjs/Schedule.js +8 -4
- package/dist/cjs/Schedule.js.map +1 -1
- package/dist/cjs/Search.js +3 -1
- package/dist/cjs/Search.js.map +1 -1
- package/dist/cjs/Security.js +7 -33
- package/dist/cjs/Security.js.map +1 -1
- package/dist/cjs/Settings.js +12 -37
- package/dist/cjs/Settings.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +30 -25
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/dist/cjs/Sidebar.js +442 -42
- package/dist/cjs/Sidebar.js.map +1 -1
- package/dist/cjs/SubHeader.js +37 -4
- package/dist/cjs/SubHeader.js.map +1 -1
- package/dist/cjs/Taxonomy.js +43 -36
- package/dist/cjs/Taxonomy.js.map +1 -1
- package/package.json +9 -2
- package/src/translations/en.json +20 -4
- package/types/Builder.d.ts +53 -14
- package/types/Columns.d.ts +2 -3
- package/types/Currency.d.ts +35 -0
- package/types/EmojiPicker.d.ts +33 -0
- package/types/EmojiReactions.d.ts +60 -0
- package/types/ErrorPage.d.ts +1 -0
- package/types/HelpPopover.d.ts +1 -0
- package/types/ProductEmbed.d.ts +3 -0
- package/types/Schedule.d.ts +1 -0
- package/types/Sidebar.d.ts +10 -2
- package/types/SubHeader.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Currency.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../src/components/Currency/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","import React, { useMemo } from \"react\";\n\nimport { isPresent, isNotEmpty } from \"neetocist\";\nimport { Select } from \"neetoui\";\nimport { Select as FormSelect } from \"neetoui/formik\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport currencyData from \"./currencyData.json\";\n\nconst Currency = ({\n label,\n name = \"currency\",\n standalone = false,\n allowedCurrencies,\n ...otherSelectProps\n}) => {\n const { t } = useTranslation();\n\n const data = useMemo(() => {\n if (isPresent(allowedCurrencies) && isNotEmpty(allowedCurrencies)) {\n return currencyData.filter(item =>\n allowedCurrencies.includes(item.value)\n );\n }\n\n return currencyData;\n }, [allowedCurrencies]);\n\n const Component = standalone ? Select : FormSelect;\n\n return (\n <Component\n {...{ name }}\n label={label || t(\"neetoMolecules.common.currency\")}\n options={data}\n {...otherSelectProps}\n />\n );\n};\n\nCurrency.propTypes = {\n /**\n * Label for the currency input.\n */\n label: PropTypes.string,\n /**\n * Name for the currency input.\n */\n name: PropTypes.string,\n /**\n * To specify whether Currency can be used outside of formik.\n */\n standalone: PropTypes.bool,\n /**\n * To specify only a selected list of currencies to be used.\n */\n allowedCurrencies: PropTypes.arrayOf(PropTypes.string),\n};\n\nexport default Currency;\n"],"names":["objectWithoutPropertiesLoose","Currency","_ref","label","_ref$name","name","_ref$standalone","standalone","allowedCurrencies","otherSelectProps","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","t","data","useMemo","isPresent","isNotEmpty","currencyData","filter","item","includes","value","Component","Select","FormSelect","React","createElement","_extends","options"],"mappings":";;;;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;AAC/D,UAAU,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACpC,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG,CAAC;AACJ,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACzC;;ACbe,SAAS,6BAA6B,CAAC,MAAM,EAAE,QAAQ,EAAE;AACxE,EAAE,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AAChC,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC;AAClB,EAAE,IAAI,UAAU,GAAG,MAAM,CAAC,IAAI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A,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,SAAA;IAAAE,eAAA,GAAAJ,IAAA,CACjBK,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,eAAA;IAClBE,iBAAiB,GAAAN,IAAA,CAAjBM,iBAAiB;AACdC,IAAAA,gBAAgB,GAAAC,wBAAA,CAAAR,IAAA,EAAAS,SAAA,CAAA,CAAA;AAEnB,EAAA,IAAAC,eAAA,GAAcC,cAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC,CAAA;AAET,EAAA,IAAMC,IAAI,GAAGC,OAAO,CAAC,YAAM;IACzB,IAAIC,SAAS,CAACT,iBAAiB,CAAC,IAAIU,UAAU,CAACV,iBAAiB,CAAC,EAAE;AACjE,MAAA,OAAOW,YAAY,CAACC,MAAM,CAAC,UAAAC,IAAI,EAAA;AAAA,QAAA,OAC7Bb,iBAAiB,CAACc,QAAQ,CAACD,IAAI,CAACE,KAAK,CAAC,CAAA;AAAA,OACxC,CAAC,CAAA;AACH,KAAA;AAEA,IAAA,OAAOJ,YAAY,CAAA;AACrB,GAAC,EAAE,CAACX,iBAAiB,CAAC,CAAC,CAAA;AAEvB,EAAA,IAAMgB,SAAS,GAAGjB,UAAU,GAAGkB,MAAM,GAAGC,QAAU,CAAA;AAElD,EAAA,oBACEC,KAAA,CAAAC,aAAA,CAACJ,SAAS,EAAAK,QAAA,CAAA;AACFxB,IAAAA,IAAI,EAAJA,IAAI;AACVF,IAAAA,KAAK,EAAEA,KAAK,IAAIW,CAAC,CAAC,gCAAgC,CAAE;AACpDgB,IAAAA,OAAO,EAAEf,IAAAA;GACLN,EAAAA,gBAAgB,CACrB,CAAC,CAAA;AAEN;;;;"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { forwardRef, useRef, useState } from 'react';
|
|
2
|
+
import React__default, { forwardRef, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import { isNotPresent, isNotEmpty, noop, snakeToCamelCase } from '@bigbinary/neeto-cist';
|
|
4
4
|
import useDebounce from '@bigbinary/neeto-commons-frontend/react-utils/useDebounce';
|
|
5
5
|
import { Typography, Button, Alert, Dropdown as Dropdown$1, Tooltip, Tag, Callout, Input, Pane, Label, Table, NoData } from '@bigbinary/neetoui';
|
|
6
6
|
import { useTranslation, Trans } from 'react-i18next';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
|
-
import { not, mergeRight } from 'ramda';
|
|
8
|
+
import { pluck, not, mergeRight } from 'ramda';
|
|
9
9
|
import { Column, Download, Filter, MenuHorizontal, MenuVertical, Info, Check } from '@bigbinary/neeto-icons';
|
|
10
|
-
import ManageColumns from '@bigbinary/neeto-molecules/Columns';
|
|
10
|
+
import ManageColumns, { useHiddenColumns } from '@bigbinary/neeto-molecules/Columns';
|
|
11
11
|
import { Filters } from '@bigbinary/neeto-filters-frontend';
|
|
12
12
|
import { PLURAL, SINGULAR } from '@bigbinary/neeto-commons-frontend/constants';
|
|
13
13
|
import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
|
|
14
14
|
import { withEventTargetValue, hyphenize, joinHyphenCase } from '@bigbinary/neeto-commons-frontend/utils/general';
|
|
15
|
+
import Breadcrumbs from '@bigbinary/neeto-molecules/Breadcrumbs';
|
|
15
16
|
import Search from '@bigbinary/neeto-molecules/Search';
|
|
16
|
-
import { Link } from 'react-router-dom';
|
|
17
17
|
import { Formik, Form } from 'formik';
|
|
18
18
|
import { Input as Input$1 } from '@bigbinary/neetoui/formik';
|
|
19
19
|
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
@@ -1452,18 +1452,48 @@ function _defineProperty(obj, key, value) {
|
|
|
1452
1452
|
return obj;
|
|
1453
1453
|
}
|
|
1454
1454
|
|
|
1455
|
-
var _excluded$4 = ["buttonProps"];
|
|
1455
|
+
var _excluded$4 = ["buttonProps", "columnData", "localStorageKey", "fixedColumns"];
|
|
1456
1456
|
function ownKeys$5(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; }
|
|
1457
1457
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1458
1458
|
var Columns = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1459
1459
|
var _ref$buttonProps = _ref.buttonProps,
|
|
1460
1460
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
1461
|
+
columnData = _ref.columnData,
|
|
1462
|
+
localStorageKey = _ref.localStorageKey,
|
|
1463
|
+
fixedColumns = _ref.fixedColumns,
|
|
1461
1464
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
1462
1465
|
var _useTranslation = useTranslation(),
|
|
1463
1466
|
t = _useTranslation.t;
|
|
1467
|
+
var columnDataIndex = useMemo(function () {
|
|
1468
|
+
return pluck("dataIndex", (columnData || []).filter(function (column) {
|
|
1469
|
+
return !(fixedColumns !== null && fixedColumns !== void 0 && fixedColumns.includes(column.dataIndex));
|
|
1470
|
+
}));
|
|
1471
|
+
}, [columnData, fixedColumns]);
|
|
1472
|
+
var _useHiddenColumns = useHiddenColumns(localStorageKey),
|
|
1473
|
+
hideColumn = _useHiddenColumns.hideColumn,
|
|
1474
|
+
showColumn = _useHiddenColumns.showColumn;
|
|
1464
1475
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1465
1476
|
className: "neeto-molecules-subheader__columns"
|
|
1466
1477
|
}, /*#__PURE__*/React__default.createElement(ManageColumns, _extends$1({
|
|
1478
|
+
isSearchable: true,
|
|
1479
|
+
className: "neeto-ui-dropdown--manage-columns",
|
|
1480
|
+
actionBlock: /*#__PURE__*/React__default.createElement("div", {
|
|
1481
|
+
className: "grid grid-cols-2 gap-2 px-4 py-3"
|
|
1482
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
1483
|
+
className: "col-span-1 justify-center",
|
|
1484
|
+
label: "Hide all",
|
|
1485
|
+
style: "secondary",
|
|
1486
|
+
onClick: function onClick() {
|
|
1487
|
+
return hideColumn(columnDataIndex);
|
|
1488
|
+
}
|
|
1489
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
1490
|
+
className: "col-span-1 justify-center",
|
|
1491
|
+
label: "Show all",
|
|
1492
|
+
style: "secondary",
|
|
1493
|
+
onClick: function onClick() {
|
|
1494
|
+
return showColumn(columnDataIndex);
|
|
1495
|
+
}
|
|
1496
|
+
})),
|
|
1467
1497
|
buttonProps: _objectSpread$5({
|
|
1468
1498
|
icon: Column,
|
|
1469
1499
|
label: null,
|
|
@@ -1474,7 +1504,10 @@ var Columns = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1474
1504
|
"data-testid": "columns-button",
|
|
1475
1505
|
"data-cy": "columns-dropdown-button"
|
|
1476
1506
|
}, buttonProps)
|
|
1477
|
-
}, _objectSpread$5(_objectSpread$5({
|
|
1507
|
+
}, _objectSpread$5(_objectSpread$5({
|
|
1508
|
+
columnData: columnData,
|
|
1509
|
+
localStorageKey: localStorageKey
|
|
1510
|
+
}, props), {}, {
|
|
1478
1511
|
ref: ref
|
|
1479
1512
|
}))));
|
|
1480
1513
|
});
|
|
@@ -1542,7 +1575,7 @@ var RightBlock = function RightBlock(_ref) {
|
|
|
1542
1575
|
}, downloadButtonProps && /*#__PURE__*/React__default.createElement(DownloadButton, downloadButtonProps), columnsButtonProps && /*#__PURE__*/React__default.createElement(Columns, columnsButtonProps), filterProps && /*#__PURE__*/React__default.createElement(FilterButton, filterProps));
|
|
1543
1576
|
};
|
|
1544
1577
|
|
|
1545
|
-
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;flex-shrink:0;gap:16px;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%}@media screen and (max-width:768px){.neeto-molecules-subheader{flex-wrap:wrap}}.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))}@media screen and (max-width:360px){.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left h4{font-size:14px}}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-ui-btn{flex-shrink:0}.neeto-molecules-subheader .neeto-molecules-subheader__right{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-end}@media screen and (max-width:768px){.neeto-molecules-subheader .neeto-molecules-subheader__right{margin-left:auto}}.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}.neeto-molecules-subheader__columns .neeto-ui-dropdown__popup{max-height:calc(100vh - var(--neeto-molecules-main-header-with-breadcrumbs-height) - 57px);max-height:calc(100vh - var(--neeto-molecules-main-header-with-breadcrumbs-height) - var(--neeto-molecules-sub-header-height) - var(--neeto-molecules-sub-header-bottom-margin))}";
|
|
1578
|
+
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;flex-shrink:0;gap:16px;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%}@media screen and (max-width:768px){.neeto-molecules-subheader{flex-wrap:wrap}}.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))}@media screen and (max-width:360px){.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left h4{font-size:14px}}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-ui-btn{flex-shrink:0}.neeto-molecules-subheader .neeto-molecules-subheader__right{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-end}@media screen and (max-width:768px){.neeto-molecules-subheader .neeto-molecules-subheader__right{margin-left:auto}}.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}.neeto-molecules-subheader__columns .neeto-ui-dropdown__popup{max-height:calc(100vh - var(--neeto-molecules-main-header-with-breadcrumbs-height) - 57px);max-height:calc(100vh - var(--neeto-molecules-main-header-with-breadcrumbs-height) - var(--neeto-molecules-sub-header-height) - var(--neeto-molecules-sub-header-bottom-margin));min-width:320px}";
|
|
1546
1579
|
n(css$1,{});
|
|
1547
1580
|
|
|
1548
1581
|
var SubHeader = function SubHeader(_ref) {
|
|
@@ -1594,37 +1627,6 @@ var DeleteAlert = function DeleteAlert(_ref) {
|
|
|
1594
1627
|
});
|
|
1595
1628
|
};
|
|
1596
1629
|
|
|
1597
|
-
var css = ":root{--neeto-molecules-main-header-height:98px;--neeto-molecules-main-header-with-breadcrumbs-height:170px}.neeto-molecules-header{align-items:flex-start;background:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;flex-shrink:0;gap:16px;justify-content:space-between;min-height:98px;min-height:var(--neeto-molecules-main-header-height);padding:40px 0 24px;width:100%}@media screen and (max-width:1024px){.neeto-molecules-header{flex-wrap:wrap}}.neeto-molecules-header .neeto-molecules-header__toggle-menubar-btn{margin-right:8px}.neeto-molecules-header .neeto-molecules-header__left{align-items:flex-start;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:-12px;width:100%}@media screen and (max-width:1024px){.neeto-molecules-header .neeto-molecules-header__page-title{margin-top:-10px}}@media screen and (max-width:768px){.neeto-molecules-header .neeto-molecules-header__page-title{margin-top:-8px}}@media screen and (max-width:576px){.neeto-molecules-header .neeto-molecules-header__page-title{margin-top:-4px}}.neeto-molecules-header .neeto-molecules-header__page-title h2{font-size:calc(1.375rem + 1.5vw);line-height:var(--neeto-ui-leading-tight)}@media (min-width:1200px){.neeto-molecules-header .neeto-molecules-header__page-title h2{font-size:2.5rem}}.neeto-molecules-header .neeto-molecules-header__breadcrumbs-wrap{display:flex;margin:0 0 40px}@media screen and (max-width:768px){.neeto-molecules-header .neeto-molecules-header__breadcrumbs-wrap{margin:0 0 16px}}.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}.neeto-molecules-header .neeto-molecules-header__right{align-items:center;display:flex;gap:12px;justify-content:flex-end}@media screen and (max-width:768px){.neeto-molecules-header .neeto-molecules-header__right{flex-wrap:wrap;justify-content:flex-start}}.neeto-molecules-header .neeto-molecules-header__right .neeto-ui-btn{flex-shrink:0}.neeto-molecules-header .neeto-molecules-header__right .neeto-molecules-header__search-input{flex-grow:0;min-width:104px}.neeto-molecules-header .neeto-molecules-header__right .neeto-molecules-header__action-block{align-items:center;display:flex;flex-shrink:0;gap:12px;justify-content:flex-end}@media screen and (max-width:360px){.neeto-molecules-header .neeto-molecules-header__right .neeto-molecules-header__action-block{flex-shrink:1;flex-wrap:wrap;justify-content:flex-start}}.neeto-molecules-header--has-breadcrumbs{min-height:170px;min-height:var(--neeto-molecules-main-header-with-breadcrumbs-height)}.neeto-molecules-header--has-breadcrumbs .neeto-molecules-header__page-title{margin-top:0}.neeto-molecules-header--nano,.neeto-molecules-header--small{flex-shrink:0;min-height:0}.neeto-molecules-header--nano .neeto-molecules-header__breadcrumbs-wrap,.neeto-molecules-header--small .neeto-molecules-header__breadcrumbs-wrap{margin:0 0 16px}.neeto-molecules-header--small .neeto-molecules-header__page-title{margin-top:-4px}.neeto-molecules-header--small .neeto-molecules-header__page-title h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.neeto-molecules-header--small .neeto-molecules-header__page-title h2{font-size:2rem}}.neeto-molecules-header--nano .neeto-molecules-header__page-title{margin-top:0}.neeto-molecules-header--nano .neeto-molecules-header__page-title h2{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.neeto-molecules-header--nano .neeto-molecules-header__page-title h2{font-size:1.5rem}}";
|
|
1598
|
-
n(css,{});
|
|
1599
|
-
|
|
1600
|
-
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
1601
|
-
var breadcrumbs = _ref.breadcrumbs;
|
|
1602
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
1603
|
-
className: "neeto-molecules-header__breadcrumbs-wrap"
|
|
1604
|
-
}, breadcrumbs.map(function (_ref2, index) {
|
|
1605
|
-
var text = _ref2.text,
|
|
1606
|
-
_ref2$link = _ref2.link,
|
|
1607
|
-
link = _ref2$link === void 0 ? "#" : _ref2$link;
|
|
1608
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
1609
|
-
className: "neeto-molecules-header__breadcrumb",
|
|
1610
|
-
"data-cy": "header-breadcrumb",
|
|
1611
|
-
key: index
|
|
1612
|
-
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
1613
|
-
to: link
|
|
1614
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1615
|
-
className: "neeto-ui-text-gray-700 hover:neeto-ui-text-gray-800 neeto-molecules-header__breadcrumb-link",
|
|
1616
|
-
component: "span",
|
|
1617
|
-
"data-cy": text,
|
|
1618
|
-
"data-test-id": text,
|
|
1619
|
-
style: "body2",
|
|
1620
|
-
weight: "normal"
|
|
1621
|
-
}, text)), index !== breadcrumbs.length - 1 && /*#__PURE__*/React__default.createElement("span", {
|
|
1622
|
-
className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-black"
|
|
1623
|
-
}, "/"));
|
|
1624
|
-
}));
|
|
1625
|
-
};
|
|
1626
|
-
var Breadcrumbs$1 = /*#__PURE__*/React__default.memo(Breadcrumbs);
|
|
1627
|
-
|
|
1628
1630
|
var SIZES = {
|
|
1629
1631
|
nano: "nano",
|
|
1630
1632
|
small: "small",
|
|
@@ -1646,6 +1648,9 @@ var Dropdown = function Dropdown(props) {
|
|
|
1646
1648
|
}, props));
|
|
1647
1649
|
};
|
|
1648
1650
|
|
|
1651
|
+
var css = ":root{--neeto-molecules-main-header-height:98px;--neeto-molecules-main-header-with-breadcrumbs-height:170px}.neeto-molecules-header{align-items:flex-start;background:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;flex-shrink:0;gap:16px;justify-content:space-between;min-height:98px;min-height:var(--neeto-molecules-main-header-height);padding:40px 0 24px;width:100%}@media screen and (max-width:1024px){.neeto-molecules-header{flex-wrap:wrap}}.neeto-molecules-header .neeto-molecules-header__toggle-menubar-btn{margin-right:8px}.neeto-molecules-header .neeto-molecules-header__left{align-items:flex-start;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:-12px;width:100%}@media screen and (max-width:1024px){.neeto-molecules-header .neeto-molecules-header__page-title{margin-top:-10px}}@media screen and (max-width:768px){.neeto-molecules-header .neeto-molecules-header__page-title{margin-top:-8px}}@media screen and (max-width:576px){.neeto-molecules-header .neeto-molecules-header__page-title{margin-top:-4px}}.neeto-molecules-header .neeto-molecules-header__page-title h2{font-size:calc(1.375rem + 1.5vw);line-height:var(--neeto-ui-leading-tight)}@media (min-width:1200px){.neeto-molecules-header .neeto-molecules-header__page-title h2{font-size:2.5rem}}.neeto-molecules-header .neeto-molecules-header__right{align-items:center;display:flex;gap:12px;justify-content:flex-end}@media screen and (max-width:768px){.neeto-molecules-header .neeto-molecules-header__right{flex-wrap:wrap;justify-content:flex-start}}.neeto-molecules-header .neeto-molecules-header__right .neeto-ui-btn{flex-shrink:0}.neeto-molecules-header .neeto-molecules-header__right .neeto-molecules-header__search-input{flex-grow:0;min-width:104px}.neeto-molecules-header .neeto-molecules-header__right .neeto-molecules-header__action-block{align-items:center;display:flex;flex-shrink:0;gap:12px;justify-content:flex-end}@media screen and (max-width:360px){.neeto-molecules-header .neeto-molecules-header__right .neeto-molecules-header__action-block{flex-shrink:1;flex-wrap:wrap;justify-content:flex-start}}.neeto-molecules-header--has-breadcrumbs{min-height:170px;min-height:var(--neeto-molecules-main-header-with-breadcrumbs-height)}.neeto-molecules-header--has-breadcrumbs .neeto-molecules-header__page-title{margin-top:0}.neeto-molecules-header--nano,.neeto-molecules-header--small{flex-shrink:0;min-height:0}.neeto-molecules-header--nano .neeto-molecules-breadcrumbs-wrap,.neeto-molecules-header--small .neeto-molecules-breadcrumbs-wrap{margin:0 0 16px}.neeto-molecules-header--small .neeto-molecules-header__page-title{margin-top:-4px}.neeto-molecules-header--small .neeto-molecules-header__page-title h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.neeto-molecules-header--small .neeto-molecules-header__page-title h2{font-size:2rem}}.neeto-molecules-header--nano .neeto-molecules-header__page-title{margin-top:0}.neeto-molecules-header--nano .neeto-molecules-header__page-title h2{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.neeto-molecules-header--nano .neeto-molecules-header__page-title h2{font-size:1.5rem}}";
|
|
1652
|
+
n(css,{});
|
|
1653
|
+
|
|
1649
1654
|
function ownKeys$3(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; }
|
|
1650
1655
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1651
1656
|
var Header$2 = function Header(_ref) {
|
|
@@ -1663,6 +1668,7 @@ var Header$2 = function Header(_ref) {
|
|
|
1663
1668
|
_ref$dataTestid = _ref["data-testid"],
|
|
1664
1669
|
dataTestId = _ref$dataTestid === void 0 ? "neeto-molecules-header" : _ref$dataTestid;
|
|
1665
1670
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1671
|
+
"data-cy": "neeto-molecules-header",
|
|
1666
1672
|
"data-testid": dataTestId,
|
|
1667
1673
|
className: classnames(["neeto-molecules-header", {
|
|
1668
1674
|
"neeto-molecules-header--has-breadcrumbs": isNotEmpty(breadcrumbs),
|
|
@@ -1674,7 +1680,7 @@ var Header$2 = function Header(_ref) {
|
|
|
1674
1680
|
className: "neeto-molecules-header__left"
|
|
1675
1681
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1676
1682
|
className: "neeto-molecules-header__left-data-wrap"
|
|
1677
|
-
}, isNotEmpty(breadcrumbs) && /*#__PURE__*/React__default.createElement(Breadcrumbs
|
|
1683
|
+
}, isNotEmpty(breadcrumbs) && /*#__PURE__*/React__default.createElement(Breadcrumbs, {
|
|
1678
1684
|
breadcrumbs: breadcrumbs
|
|
1679
1685
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1680
1686
|
className: "neeto-molecules-header__page-title"
|