@bigbinary/neeto-molecules 3.7.9 → 3.7.11

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.
@@ -21,9 +21,9 @@ import { n } from './inject-css-c86de496.js';
21
21
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
22
22
  import Modal from '@bigbinary/neetoui/Modal';
23
23
  import Input$1 from '@bigbinary/neetoui/Input';
24
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
24
25
  import classnames from 'classnames';
25
26
  import { Link as Link$1 } from 'react-router-dom';
26
- import '@babel/runtime/helpers/defineProperty';
27
27
  import '@babel/runtime/helpers/objectWithoutProperties';
28
28
  import '@bigbinary/neeto-icons/Copy';
29
29
  import '@bigbinary/neeto-icons/Check';
@@ -1212,7 +1212,7 @@ var QRCode = function QRCode(_ref) {
1212
1212
  });
1213
1213
  };
1214
1214
  return /*#__PURE__*/jsxs("div", {
1215
- className: "neeto-ui-border-gray-200 flex flex-col justify-center space-y-2 border-t py-3 pl-8 sm:space-y-4 sm:border-l sm:py-2 sm:pl-6",
1215
+ className: "neeto-ui-border-gray-200 flex flex-col justify-start space-y-2 border-t py-3 pl-8 sm:space-y-4 sm:border-l sm:py-2 sm:pl-6",
1216
1216
  "data-cy": "qr-download-block",
1217
1217
  "data-testid": "qr-download-block",
1218
1218
  children: [/*#__PURE__*/jsx(Typography, {
@@ -1246,6 +1246,32 @@ var QRCode = function QRCode(_ref) {
1246
1246
  });
1247
1247
  };
1248
1248
 
1249
+ var Subtitle = function Subtitle(_ref) {
1250
+ var link = _ref.link,
1251
+ dataCy = _ref.dataCy,
1252
+ _onClick = _ref.onClick,
1253
+ subtitle = _ref.subtitle;
1254
+ var Component = isPresent(link) ? Link$1 : "div";
1255
+ return /*#__PURE__*/jsx(Component, {
1256
+ "data-cy": dataCy,
1257
+ to: link,
1258
+ onClick: function onClick(event) {
1259
+ event.stopPropagation();
1260
+ _onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
1261
+ },
1262
+ children: /*#__PURE__*/jsx(Typography, {
1263
+ style: "body3",
1264
+ weight: "medium",
1265
+ className: classnames("break-words", {
1266
+ "neeto-ui-text-accent-800": isPresent(_onClick) || isPresent(link)
1267
+ }),
1268
+ children: subtitle
1269
+ })
1270
+ });
1271
+ };
1272
+
1273
+ function ownKeys(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; }
1274
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1249
1275
  var ShareBlock = function ShareBlock(_ref) {
1250
1276
  var entity = _ref.entity,
1251
1277
  postTitle = _ref.postTitle,
@@ -1260,13 +1286,14 @@ var ShareBlock = function ShareBlock(_ref) {
1260
1286
  return /*#__PURE__*/jsxs("div", {
1261
1287
  className: "flex flex-col divide-y sm:flex-row sm:gap-6 sm:divide-x sm:divide-y-0",
1262
1288
  children: [hasMoreOptions && /*#__PURE__*/jsx("div", {
1263
- className: "divide-y",
1289
+ className: "max-w-md divide-y",
1264
1290
  children: moreOptions.map(function (_ref2, index) {
1265
1291
  var title = _ref2.title,
1266
1292
  link = _ref2.link,
1267
1293
  Icon = _ref2.icon,
1268
1294
  onClick = _ref2.onClick,
1269
- dataCy = _ref2.dataCy;
1295
+ dataCy = _ref2.dataCy,
1296
+ subtitleProps = _ref2.subtitleProps;
1270
1297
  var Component = isPresent(link) ? Link$1 : "div";
1271
1298
  return /*#__PURE__*/createElement(Component, {
1272
1299
  onClick: onClick,
@@ -1276,14 +1303,20 @@ var ShareBlock = function ShareBlock(_ref) {
1276
1303
  className: classnames("neeto-ui-border-gray-200 flex cursor-pointer items-center gap-x-2 border-t py-3", {
1277
1304
  "border-none": index === 0
1278
1305
  })
1279
- }, /*#__PURE__*/jsx(Icon, {
1280
- className: "neeto-ui-text-gray-500",
1281
- size: 24
1282
- }), /*#__PURE__*/jsx(Typography, {
1283
- className: "group-hover:underline",
1284
- style: "body2",
1285
- weight: "medium",
1286
- children: title
1306
+ }, /*#__PURE__*/jsxs("div", {
1307
+ className: "flex flex-row gap-2",
1308
+ children: [/*#__PURE__*/jsx(Icon, {
1309
+ className: "neeto-ui-text-gray-500 flex-shrink-0",
1310
+ size: 24
1311
+ }), /*#__PURE__*/jsxs("div", {
1312
+ className: "flex flex-col gap-1",
1313
+ children: [/*#__PURE__*/jsx(Typography, {
1314
+ className: "group-hover:underline",
1315
+ style: "body2",
1316
+ weight: "medium",
1317
+ children: title
1318
+ }), subtitleProps && /*#__PURE__*/jsx(Subtitle, _objectSpread({}, subtitleProps))]
1319
+ })]
1287
1320
  }));
1288
1321
  })
1289
1322
  }), !disableShareSocialMedia && /*#__PURE__*/jsxs("div", {