pb-sxp-ui 1.16.1 → 1.16.3
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.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -4
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +4 -2
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/materials/sxp/template/NineCommodity/index.js +4 -2
- package/lib/materials/sxp/template/NineCommodity/index.js +4 -2
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -991,7 +991,7 @@ a:active {
|
|
991
991
|
color: white;
|
992
992
|
border-radius: 10px;
|
993
993
|
overflow: hidden;
|
994
|
-
margin:
|
994
|
+
margin: 1.5px;
|
995
995
|
-webkit-box-sizing: border-box;
|
996
996
|
box-sizing: border-box;
|
997
997
|
width: 100%;
|
@@ -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
|
1002
|
+
padding: 3px 1px;
|
1003
1003
|
color: #000;
|
1004
1004
|
font-size: 12px;
|
1005
1005
|
text-decoration: underline;
|
@@ -1021,8 +1021,8 @@ a:active {
|
|
1021
1021
|
.index-module_gridItem__KrJP6::after {
|
1022
1022
|
content: '';
|
1023
1023
|
position: absolute;
|
1024
|
-
inset:
|
1025
|
-
border-radius:
|
1024
|
+
inset: 1.5px;
|
1025
|
+
border-radius: 10px;
|
1026
1026
|
background-color: transparent;
|
1027
1027
|
}
|
1028
1028
|
@-webkit-keyframes index-module_rotate__5zJec {
|
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(
|
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 {
|