pb-sxp-ui 1.16.1 → 1.16.2

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
@@ -999,7 +999,7 @@ a:active {
999
999
  .index-module_buttonWrapper__jGJE7 {
1000
1000
  background-color: white;
1001
1001
  text-align: center;
1002
- padding: 3px 0;
1002
+ padding: 3px 1px;
1003
1003
  color: #000;
1004
1004
  font-size: 12px;
1005
1005
  text-decoration: underline;
package/dist/index.js CHANGED
@@ -13461,9 +13461,11 @@ const NineCommodity$1 = (_a) => {
13461
13461
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive", "index"]);
13462
13462
  const { sxpParameter } = useSxpDataSource();
13463
13463
  const [products] = useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [{}, {}, {}, {}, {}, {}, {}, {}, {}]);
13464
+ if (!(products === null || products === void 0 ? void 0 : products.length) || (products === null || products === void 0 ? void 0 : products.length) < 1)
13465
+ return null;
13464
13466
  return (React.createElement("div", { className: styles$2.nineProduct },
13465
13467
  React.createElement("div", { className: styles$2.gridContainer }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13466
- var _a, _b, _c, _d, _e, _f;
13468
+ var _a, _b, _c, _d, _e, _f, _g, _h;
13467
13469
  if (itemIndex < 9) {
13468
13470
  return (React.createElement(React.Fragment, { key: itemIndex }, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement("div", { className: styles$2.gridItem, role: 'listitem' },
13469
13471
  React.createElement("div", { className: styles$2.gridBox },
@@ -13479,7 +13481,7 @@ const NineCommodity$1 = (_a) => {
13479
13481
  display: 'block'
13480
13482
  }, isActive: isActive }),
13481
13483
  React.createElement("div", { className: styles$2.buttonWrapper, "aria-label": (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop Now', dangerouslySetInnerHTML: {
13482
- __html: setFontForText("item?.bindCta?.enTitle ?? 'Shop Now', ctaTempStyles?.ctaTitle")
13484
+ __html: 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', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
13483
13485
  } })))))));
13484
13486
  }
13485
13487
  else {