utopia-ui 3.0.18 → 3.0.19
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -4917,7 +4917,7 @@ var SocialShareButton = function (_a) {
|
|
4917
4917
|
return (jsx("a", __assign({ href: finalShareUrl, target: '_blank', rel: 'noopener noreferrer', className: 'tw-w-8 tw-h-8 tw-mt-2 tw-rounded-full tw-flex tw-items-center tw-justify-center tw-text-white', style: {
|
4918
4918
|
color: 'white',
|
4919
4919
|
backgroundColor: bgColor,
|
4920
|
-
}, title: "share link ".concat(platform
|
4920
|
+
}, title: "share link on ".concat(platform) }, { children: React.cloneElement(icon, { className: 'tw-w-4 tw-h-4 tw-fill-current' }) })));
|
4921
4921
|
};
|
4922
4922
|
|
4923
4923
|
var SocialShareBar = function (_a) {
|
@@ -4943,7 +4943,7 @@ var SocialShareBar = function (_a) {
|
|
4943
4943
|
return (jsxs("div", __assign({ className: 'tw-flex tw-place-content-end tw-justify-end tw-space-x-2 tw-grow tw-min-w-fit tw-pl-2' }, { children: [platforms.map(function (platform) { return (jsx(SocialShareButton, { platform: platform, url: url, title: title }, platform)); }), platforms.includes('email') && (jsx("a", __assign({ href: "mailto:?subject=".concat(title, "&body=").concat(url), target: '_blank', rel: 'noopener noreferrer', className: 'tw-w-8 tw-h-8 tw-mt-2 tw-rounded-full tw-flex tw-items-center tw-justify-center tw-text-white hover:tw-cursor-pointer', style: {
|
4944
4944
|
color: 'white',
|
4945
4945
|
backgroundColor: '#444',
|
4946
|
-
}, onClick: function () { return copyLink(); }, title: '
|
4946
|
+
}, onClick: function () { return copyLink(); }, title: 'share link via email' }, { children: jsx("svg", __assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 24 24', fill: 'white', className: 'tw-h-4 tw-w-4' }, { children: jsx("path", { d: 'M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z' }) })) }))), platforms.includes('clipboard') && (jsx("div", __assign({ rel: 'noopener noreferrer', className: 'tw-w-8 tw-h-8 tw-mt-2 tw-rounded-full tw-flex tw-items-center tw-justify-center tw-text-white hover:tw-cursor-pointer', style: {
|
4947
4947
|
color: 'white',
|
4948
4948
|
backgroundColor: '#888',
|
4949
4949
|
}, onClick: function () { return copyLink(); }, title: 'copy Link' }, { children: jsx("svg", __assign({ stroke: 'currentColor', fill: 'currentColor', strokeWidth: '0', viewBox: '0 0 256 256', height: '1.5em', width: '1.5em', xmlns: 'http://www.w3.org/2000/svg' }, { children: jsx("path", { d: 'M180,64H40A12,12,0,0,0,28,76V216a12,12,0,0,0,12,12H180a12,12,0,0,0,12-12V76A12,12,0,0,0,180,64ZM168,204H52V88H168ZM228,40V180a12,12,0,0,1-24,0V52H76a12,12,0,0,1,0-24H216A12,12,0,0,1,228,40Z' }) })) })))] })));
|