@bigbinary/neeto-molecules 3.16.93 → 3.16.95
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/dist/ShareViaLink.js +23 -14
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +22 -13
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/de.json +2 -1
- package/src/translations/es.json +2 -1
- package/src/translations/fr.json +2 -1
- package/src/translations/nl.json +2 -1
- package/src/translations/pl.json +2 -1
- package/src/translations/pt.json +2 -1
package/dist/cjs/ShareViaLink.js
CHANGED
|
@@ -586,13 +586,15 @@ var Card = function Card(_ref) {
|
|
|
586
586
|
children: [Icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
587
587
|
className: "neeto-ui-text-gray-500 flex-shrink-0",
|
|
588
588
|
size: 24
|
|
589
|
-
}), /*#__PURE__*/jsxRuntime.
|
|
590
|
-
className: "min-w-0 flex-grow break-words",
|
|
589
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(Typography, {
|
|
590
|
+
className: "neeto-molecules-share-landing__card-title min-w-0 flex-grow break-words",
|
|
591
591
|
style: "h4",
|
|
592
|
-
children: title
|
|
593
|
-
|
|
592
|
+
children: [title, helpPopoverProps && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
593
|
+
children: [" ", /*#__PURE__*/jsxRuntime.jsx(HelpPopover, _objectSpread({}, helpPopoverProps))]
|
|
594
|
+
})]
|
|
595
|
+
})]
|
|
594
596
|
}), description && /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
595
|
-
className: "break-words",
|
|
597
|
+
className: "neeto-molecules-share-landing__card-desc break-words",
|
|
596
598
|
lineHeight: "normal",
|
|
597
599
|
style: "body2",
|
|
598
600
|
children: description
|
|
@@ -606,7 +608,8 @@ var ShareBlock = function ShareBlock(_ref) {
|
|
|
606
608
|
disableQRDownload = _ref.disableQRDownload,
|
|
607
609
|
socialMediaProps = _ref.socialMediaProps,
|
|
608
610
|
qrCodeProps = _ref.qrCodeProps,
|
|
609
|
-
entity = _ref.entity
|
|
611
|
+
entity = _ref.entity,
|
|
612
|
+
urls = _ref.urls;
|
|
610
613
|
var location = reactRouterDom.useLocation();
|
|
611
614
|
var history = reactRouterDom.useHistory();
|
|
612
615
|
var _useTranslation = reactI18next.useTranslation(),
|
|
@@ -617,7 +620,9 @@ var ShareBlock = function ShareBlock(_ref) {
|
|
|
617
620
|
};
|
|
618
621
|
var hasMoreOptions = neetoCist.isPresent(moreOptions);
|
|
619
622
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
620
|
-
className: "
|
|
623
|
+
className: classnames("grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3", {
|
|
624
|
+
"neeto-ui-border-gray-200 mt-8 border-t pt-8": neetoCist.isNotEmpty(urls)
|
|
625
|
+
}),
|
|
621
626
|
children: [hasMoreOptions && moreOptions.filter(function (_ref2) {
|
|
622
627
|
var permissions = _ref2.permissions;
|
|
623
628
|
return neetoCist.isNotPresent(permissions) || globalProps.permissions.some(ramda.includes(ramda.__, permissions));
|
|
@@ -663,6 +668,7 @@ var ShareBlock = function ShareBlock(_ref) {
|
|
|
663
668
|
};
|
|
664
669
|
|
|
665
670
|
var MainPanel = function MainPanel(_ref) {
|
|
671
|
+
var _urls$;
|
|
666
672
|
var title = _ref.title,
|
|
667
673
|
description = _ref.description,
|
|
668
674
|
qrCodeProps = _ref.qrCodeProps,
|
|
@@ -718,11 +724,11 @@ var MainPanel = function MainPanel(_ref) {
|
|
|
718
724
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
719
725
|
className: "neeto-ui-rounded-lg neeto-ui-bg-white p-6 sm:p-8",
|
|
720
726
|
"data-testid": "share-via-link",
|
|
721
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
727
|
+
children: [neetoCist.isNotEmpty(urls) && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
722
728
|
className: "space-y-1",
|
|
723
729
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
724
730
|
className: "inline-flex max-w-full flex-col space-y-4",
|
|
725
|
-
children: urls.map(function (urlOption) {
|
|
731
|
+
children: urls === null || urls === void 0 ? void 0 : urls.map(function (urlOption) {
|
|
726
732
|
return /*#__PURE__*/React.createElement(Link, {
|
|
727
733
|
enabledOptions: enabledOptions,
|
|
728
734
|
entityName: entityName,
|
|
@@ -745,7 +751,8 @@ var MainPanel = function MainPanel(_ref) {
|
|
|
745
751
|
moreOptions: moreOptions,
|
|
746
752
|
qrCodeProps: qrCodeProps,
|
|
747
753
|
socialMediaProps: socialMediaProps,
|
|
748
|
-
|
|
754
|
+
urls: urls,
|
|
755
|
+
url: (_urls$ = urls[0]) === null || _urls$ === void 0 ? void 0 : _urls$.url
|
|
749
756
|
})]
|
|
750
757
|
}), customBottomContent]
|
|
751
758
|
})
|
|
@@ -1685,7 +1692,7 @@ var QRCode = function QRCode(_ref) {
|
|
|
1685
1692
|
});
|
|
1686
1693
|
};
|
|
1687
1694
|
|
|
1688
|
-
var css = ".neeto-molecules-share-landing__card{outline:1px solid rgb(var(--neeto-ui-white))!important;transition:all .3s!important}.neeto-molecules-share-landing__card:hover{border-color:rgb(var(--neeto-ui-primary-500))!important;outline:1px solid rgb(var(--neeto-ui-primary-500))!important}";
|
|
1695
|
+
var css = ".neeto-molecules-share-landing__card{outline:1px solid rgb(var(--neeto-ui-white))!important;transition:all .3s!important}.neeto-molecules-share-landing__card:hover{border-color:rgb(var(--neeto-ui-primary-500))!important;outline:1px solid rgb(var(--neeto-ui-primary-500))!important}.neeto-molecules-share-landing__card-title .neeto-molecule-help-popover-trigger{display:inline-block!important;vertical-align:middle}";
|
|
1689
1696
|
injectCss.n(css,{});
|
|
1690
1697
|
|
|
1691
1698
|
var SocialMedia = function SocialMedia(_ref) {
|
|
@@ -1808,21 +1815,23 @@ var ShareViaLink = function ShareViaLink(_ref) {
|
|
|
1808
1815
|
exact: true,
|
|
1809
1816
|
path: "".concat(sharePath, "/qrcode"),
|
|
1810
1817
|
render: function render() {
|
|
1818
|
+
var _urls$;
|
|
1811
1819
|
return /*#__PURE__*/jsxRuntime.jsx(QRCode, {
|
|
1812
1820
|
entity: entity,
|
|
1813
1821
|
qrCodeProps: qrCodeProps,
|
|
1814
1822
|
shareUrl: shareUrl,
|
|
1815
|
-
url: urls[0]
|
|
1823
|
+
url: (_urls$ = urls[0]) === null || _urls$ === void 0 ? void 0 : _urls$.url
|
|
1816
1824
|
});
|
|
1817
1825
|
}
|
|
1818
1826
|
}), /*#__PURE__*/jsxRuntime.jsx(reactRouterDom.Route, {
|
|
1819
1827
|
exact: true,
|
|
1820
1828
|
path: "".concat(sharePath, "/social-media"),
|
|
1821
1829
|
render: function render() {
|
|
1830
|
+
var _urls$2;
|
|
1822
1831
|
return /*#__PURE__*/jsxRuntime.jsx(SocialMedia, {
|
|
1823
1832
|
shareUrl: shareUrl,
|
|
1824
1833
|
socialMediaProps: socialMediaProps,
|
|
1825
|
-
url: urls[0].url
|
|
1834
|
+
url: (_urls$2 = urls[0]) === null || _urls$2 === void 0 ? void 0 : _urls$2.url
|
|
1826
1835
|
});
|
|
1827
1836
|
}
|
|
1828
1837
|
}), neetoCist.isPresent(moreOptions) && moreOptions.map(function (_ref2) {
|