pb-sxp-ui 1.0.104 → 1.0.105

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.css CHANGED
@@ -238,6 +238,21 @@
238
238
  word-wrap: break-word;
239
239
  }
240
240
 
241
+ .index-module_tow-line-ellipsis__nkBlU {
242
+ display: -webkit-box;
243
+ -webkit-box-orient: vertical;
244
+ -webkit-line-clamp: 2;
245
+ text-overflow: ellipsis;
246
+ overflow: hidden;
247
+ word-wrap: break-word;
248
+ }
249
+ .index-module_one-line-ellipsis__buFw1 {
250
+ text-overflow: ellipsis;
251
+ overflow: hidden;
252
+ word-break: break-all;
253
+ white-space: nowrap;
254
+ }
255
+
241
256
  .index-module_tow-line-ellipsis__yyHVb {
242
257
  display: -webkit-box;
243
258
  -webkit-box-orient: vertical;
package/dist/index.js CHANGED
@@ -9812,7 +9812,7 @@ const EventProvider = (_a) => {
9812
9812
  };
9813
9813
  var EventProvider$1 = memo(EventProvider);
9814
9814
 
9815
- var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9815
+ var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9816
9816
 
9817
9817
  /*
9818
9818
  * @Author: binruan@chatlabs.com
@@ -9886,7 +9886,7 @@ const Commodity$1 = (_a) => {
9886
9886
  width: '100%',
9887
9887
  overflow: 'hidden'
9888
9888
  }) },
9889
- React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
9889
+ React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
9890
9890
  __html: setFontForText((_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
9891
9891
  } }),
9892
9892
  React.createElement("div", { className: css(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', lineHeight: ((_k = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _k === void 0 ? void 0 : _k.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
@@ -10138,6 +10138,8 @@ var linkSettingRender = [
10138
10138
  }
10139
10139
  ];
10140
10140
 
10141
+ var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
10142
+
10141
10143
  const Link$1 = (_a) => {
10142
10144
  var _b, _c, _d, _e, _f, _g, _h, _j;
10143
10145
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle"]);
@@ -10161,10 +10163,10 @@ const Link$1 = (_a) => {
10161
10163
  overflow: 'hidden'
10162
10164
  }) },
10163
10165
  React.createElement("div", null,
10164
- React.createElement("div", { className: 'tow-line-ellipsis', style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10166
+ React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10165
10167
  __html: setFontForText((_h = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _h !== void 0 ? _h : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
10166
10168
  } }),
10167
- (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) && (React.createElement("div", { style: Object.assign(Object.assign({}, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style), { lineHeight: ((_j = customTitle === null || customTitle === void 0 ? void 0 : customTitle.style) === null || _j === void 0 ? void 0 : _j.height) + 'px' }), className: 'one-line-ellipsis', dangerouslySetInnerHTML: {
10169
+ (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) && (React.createElement("div", { style: Object.assign(Object.assign({}, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style), { lineHeight: ((_j = customTitle === null || customTitle === void 0 ? void 0 : customTitle.style) === null || _j === void 0 ? void 0 : _j.height) + 'px' }), className: styles$5['one-line-ellipsis'], dangerouslySetInnerHTML: {
10168
10170
  __html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
10169
10171
  } }))))));
10170
10172
  };