@bigbinary/neeto-molecules 1.0.81 → 1.0.83
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/CustomDomainDashboard.cjs.js +8 -3
- package/dist/CustomDomainDashboard.cjs.js.map +1 -1
- package/dist/CustomDomainDashboard.js +9 -4
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/EmailForm.cjs.js +119 -56
- package/dist/EmailForm.cjs.js.map +1 -1
- package/dist/EmailForm.js +119 -56
- package/dist/EmailForm.js.map +1 -1
- package/dist/EmailPreview.cjs.js +107 -3
- package/dist/EmailPreview.cjs.js.map +1 -1
- package/dist/EmailPreview.js +107 -3
- package/dist/EmailPreview.js.map +1 -1
- package/dist/ShareViaEmail.cjs.js +113 -111
- package/dist/ShareViaEmail.cjs.js.map +1 -1
- package/dist/ShareViaEmail.js +113 -111
- package/dist/ShareViaEmail.js.map +1 -1
- package/dist/SubHeader.cjs.js +9 -2
- package/dist/SubHeader.cjs.js.map +1 -1
- package/dist/SubHeader.js +9 -2
- package/dist/SubHeader.js.map +1 -1
- package/package.json +1 -1
- package/types/EmailForm.d.ts +1 -0
- package/types/EmailPreview.d.ts +1 -0
- package/types/SubHeader.d.ts +7 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { forwardRef, useRef, useState } from 'react';
|
|
3
|
-
import { noop, snakeToCamelCase, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
|
|
3
|
+
import { isNotPresent, noop, snakeToCamelCase, isNotEmpty } 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 { not, isEmpty } from 'ramda';
|
|
7
8
|
import { Column, Download, Filter, Right, MenuVertical, HamburgerMenu, Search, MenuHorizontal, Info, Copy, Check } from '@bigbinary/neeto-icons';
|
|
8
9
|
import ManageColumns from '@bigbinary/neeto-molecules/Columns';
|
|
9
10
|
import { Filters } from '@bigbinary/neeto-filters-frontend';
|
|
10
11
|
import { withEventTargetValue, joinHyphenCase, copyToClipboard } from '@bigbinary/neeto-commons-frontend/utils';
|
|
11
|
-
import { isEmpty } from 'ramda';
|
|
12
12
|
import { Link } from 'react-router-dom';
|
|
13
13
|
import { Formik, Form } from 'formik';
|
|
14
14
|
import { Input as Input$1 } from '@bigbinary/neetoui/formik';
|
|
@@ -1582,9 +1582,14 @@ var FilterButton = function FilterButton(_ref) {
|
|
|
1582
1582
|
var RightBlock = function RightBlock(_ref) {
|
|
1583
1583
|
var downloadButtonProps = _ref.downloadButtonProps,
|
|
1584
1584
|
columnsButtonProps = _ref.columnsButtonProps,
|
|
1585
|
-
filterProps = _ref.filterProps
|
|
1585
|
+
filterProps = _ref.filterProps,
|
|
1586
|
+
dataProps = _ref.dataProps;
|
|
1587
|
+
var showIcons = isNotPresent(dataProps === null || dataProps === void 0 ? void 0 : dataProps.totalCount) ? true : (dataProps === null || dataProps === void 0 ? void 0 : dataProps.totalCount) > 0;
|
|
1586
1588
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1587
|
-
|
|
1589
|
+
"data-testid": "subheader-rightblock-buttons-container",
|
|
1590
|
+
className: classnames("neeto-molecules-subheader__right-actions", {
|
|
1591
|
+
hidden: not(showIcons)
|
|
1592
|
+
})
|
|
1588
1593
|
}, downloadButtonProps && /*#__PURE__*/React__default.createElement(DownloadButton, downloadButtonProps), columnsButtonProps && /*#__PURE__*/React__default.createElement(Columns, columnsButtonProps), filterProps && /*#__PURE__*/React__default.createElement(FilterButton, filterProps));
|
|
1589
1594
|
};
|
|
1590
1595
|
|