pb-sxp-ui 1.2.2 → 1.2.4

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.
Files changed (40) hide show
  1. package/dist/index.cjs +79 -49
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +36 -1
  4. package/dist/index.js +79 -49
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +3 -3
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +3 -3
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +79 -49
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +3 -3
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/Pagebuilder/type.d.ts +1 -0
  15. package/es/core/components/SxpPageCore/index.js +1 -1
  16. package/es/core/components/SxpPageRender/Hashtag/index.js +0 -1
  17. package/es/core/components/SxpPageRender/Modal/index.js +16 -8
  18. package/es/core/components/SxpPageRender/Popup/index.js +1 -1
  19. package/es/core/components/SxpPageRender/RenderCard.js +15 -2
  20. package/es/core/components/SxpPageRender/index.js +1 -1
  21. package/es/core/context/SxpDataSourceProvider.d.ts +1 -0
  22. package/es/core/context/SxpDataSourceProvider.js +3 -3
  23. package/es/materials/sxp/cta/AniLink/index.js +4 -1
  24. package/es/materials/sxp/cta/AniLinkPopup/index.js +9 -6
  25. package/es/materials/sxp/cta/AniLinkPopup/settingRender.js +1 -1
  26. package/es/materials/sxp/popup/CommodityList/index.js +13 -7
  27. package/lib/core/Pagebuilder/type.d.ts +1 -0
  28. package/lib/core/components/SxpPageCore/index.js +1 -1
  29. package/lib/core/components/SxpPageRender/Hashtag/index.js +0 -1
  30. package/lib/core/components/SxpPageRender/Modal/index.js +16 -8
  31. package/lib/core/components/SxpPageRender/Popup/index.js +1 -1
  32. package/lib/core/components/SxpPageRender/RenderCard.js +15 -2
  33. package/lib/core/components/SxpPageRender/index.js +1 -1
  34. package/lib/core/context/SxpDataSourceProvider.d.ts +1 -0
  35. package/lib/core/context/SxpDataSourceProvider.js +3 -3
  36. package/lib/materials/sxp/cta/AniLink/index.js +4 -1
  37. package/lib/materials/sxp/cta/AniLinkPopup/index.js +9 -6
  38. package/lib/materials/sxp/cta/AniLinkPopup/settingRender.js +1 -1
  39. package/lib/materials/sxp/popup/CommodityList/index.js +13 -7
  40. package/package.json +1 -1
@@ -27,18 +27,24 @@ const CommodityList = (_a) => {
27
27
  }
28
28
  }, []);
29
29
  return (react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign(Object.assign({}, style), { display: 'flex', flexDirection: 'column', gap: '10px', padding: '0 20px', marginTop: '50px' })) }, product === null || product === void 0 ? void 0 : product.map((item, index) => {
30
- var _a, _b, _c, _d, _e, _f, _g, _h;
30
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
31
31
  return (react_1.default.createElement(EventProvider_1.default, Object.assign({ key: index, isExternalLink: isExternalLink, rec: recData, index: index }, props, { className: (0, css_1.css)({
32
32
  display: 'flex'
33
33
  }) }),
34
34
  react_1.default.createElement(Img_1.default, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: commodityPicture }),
35
- react_1.default.createElement("div", { style: { flex: 1, display: 'flex', flexDirection: 'column', justifyContent: 'space-between' } },
35
+ react_1.default.createElement("div", { style: {
36
+ flex: 1,
37
+ width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.marginRight) !== null && _f !== void 0 ? _f : 0}px - ${(_g = style === null || style === void 0 ? void 0 : style.padding) !== null && _g !== void 0 ? _g : 0}px)`,
38
+ display: 'flex',
39
+ flexDirection: 'column',
40
+ justifyContent: 'space-between'
41
+ } },
36
42
  react_1.default.createElement("div", null,
37
- react_1.default.createElement("div", { style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title, hidden: !!item && !(item === null || item === void 0 ? void 0 : item.title), dangerouslySetInnerHTML: {
38
- __html: (0, tool_1.setFontForText)((_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Pendant in Yellow Gold with Diamonds, Medium', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title)
43
+ react_1.default.createElement("div", { className: 'one-line-ellipsis', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title, hidden: !!item && !(item === null || item === void 0 ? void 0 : item.title), dangerouslySetInnerHTML: {
44
+ __html: (0, tool_1.setFontForText)((_h = item === null || item === void 0 ? void 0 : item.title) !== null && _h !== void 0 ? _h : 'Pendant in Yellow Gold with Diamonds, Medium', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title)
39
45
  } }),
40
- react_1.default.createElement("div", { style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection, hidden: !!item && (!(item === null || item === void 0 ? void 0 : item.collection) || (item === null || item === void 0 ? void 0 : item.collection) === ''), dangerouslySetInnerHTML: {
41
- __html: (0, tool_1.setFontForText)((_f = item === null || item === void 0 ? void 0 : item.collection) !== null && _f !== void 0 ? _f : 'Tiffany Lock', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection)
46
+ react_1.default.createElement("div", { className: 'two-line-ellipsis', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection, hidden: !!item && (!(item === null || item === void 0 ? void 0 : item.collection) || (item === null || item === void 0 ? void 0 : item.collection) === ''), dangerouslySetInnerHTML: {
47
+ __html: (0, tool_1.setFontForText)((_j = item === null || item === void 0 ? void 0 : item.collection) !== null && _j !== void 0 ? _j : 'Tiffany Lock', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection)
42
48
  } })),
43
49
  react_1.default.createElement("div", { className: (0, css_1.css)({
44
50
  display: 'flex',
@@ -51,7 +57,7 @@ const CommodityList = (_a) => {
51
57
  __html: (0, tool_1.setFontForText)(priceText(item), commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price)
52
58
  } }),
53
59
  react_1.default.createElement("div", { className: 'one-line-ellipsis', style: Object.assign(Object.assign({}, buttonStyle), { padding: '0 15px', maxWidth: '100px' }), dangerouslySetInnerHTML: {
54
- __html: (0, tool_1.setFontForText)((_h = (_g = item === null || item === void 0 ? void 0 : item.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now', buttonStyle)
60
+ __html: (0, tool_1.setFontForText)((_l = (_k = item === null || item === void 0 ? void 0 : item.bindCta) === null || _k === void 0 ? void 0 : _k.enTitle) !== null && _l !== void 0 ? _l : 'Shop Now', buttonStyle)
55
61
  } })))));
56
62
  })));
57
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",