pb-sxp-ui 1.20.16 → 1.20.18
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 +7 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +2 -2
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +7 -6
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +2 -2
- package/dist/pb-ui.min.js.map +1 -1
- package/es/materials/sxp/popup/CommodityDetail/index.js +5 -4
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
- package/lib/materials/sxp/popup/CommodityDetail/index.js +5 -4
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
- package/package.json +1 -1
|
@@ -161,10 +161,11 @@ const CommodityDetail = (_a) => {
|
|
|
161
161
|
};
|
|
162
162
|
const renderBtn = () => {
|
|
163
163
|
var _a, _b;
|
|
164
|
-
return (React.createElement(React.Fragment, null,
|
|
165
|
-
React.createElement("
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
return (React.createElement(React.Fragment, null,
|
|
165
|
+
React.createElement("a", { "aria-label": (_a = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _a !== void 0 ? _a : 'Purchase on Website', role: 'button', tabIndex: 0, onClick: handleLink, className: 'pb-commondity-btn', style: buttonStyle },
|
|
166
|
+
React.createElement("span", { dangerouslySetInnerHTML: {
|
|
167
|
+
__html: setFontForText((_b = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _b !== void 0 ? _b : 'Purchase on Website', buttonStyle)
|
|
168
|
+
} }))));
|
|
168
169
|
};
|
|
169
170
|
const getStyle = useCallback((style) => {
|
|
170
171
|
if (style === null || style === void 0 ? void 0 : style.lineClamp) {
|
|
@@ -281,10 +281,10 @@ Made in Italy` })));
|
|
|
281
281
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.taxInfo), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo), dangerouslySetInnerHTML: {
|
|
282
282
|
__html: setFontForText((_2 = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _2 !== void 0 ? _2 : '税费', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo)
|
|
283
283
|
} }))),
|
|
284
|
-
|
|
284
|
+
React.createElement("a", { "aria-label": (_3 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _3 !== void 0 ? _3 : 'Shop now', role: 'button', tabIndex: 0, onClick: handleLink, className: 'pb-commondityDiroNew-btn', style: buttonStyle },
|
|
285
285
|
React.createElement("span", { dangerouslySetInnerHTML: {
|
|
286
286
|
__html: setFontForText((_4 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _4 !== void 0 ? _4 : 'Shop now', buttonStyle)
|
|
287
|
-
} }))
|
|
287
|
+
} })),
|
|
288
288
|
productInfoText({ isPost }))),
|
|
289
289
|
React.createElement(Modal, { visible: showModal, onClose: () => setShowModal(false) },
|
|
290
290
|
React.createElement("div", { style: { paddingTop: '34px' } }, productInfoText({ isPost: false }))),
|
|
@@ -163,10 +163,11 @@ const CommodityDetail = (_a) => {
|
|
|
163
163
|
};
|
|
164
164
|
const renderBtn = () => {
|
|
165
165
|
var _a, _b;
|
|
166
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
167
|
-
react_1.default.createElement("
|
|
168
|
-
|
|
169
|
-
|
|
166
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
167
|
+
react_1.default.createElement("a", { "aria-label": (_a = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _a !== void 0 ? _a : 'Purchase on Website', role: 'button', tabIndex: 0, onClick: handleLink, className: 'pb-commondity-btn', style: buttonStyle },
|
|
168
|
+
react_1.default.createElement("span", { dangerouslySetInnerHTML: {
|
|
169
|
+
__html: (0, tool_1.setFontForText)((_b = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _b !== void 0 ? _b : 'Purchase on Website', buttonStyle)
|
|
170
|
+
} }))));
|
|
170
171
|
};
|
|
171
172
|
const getStyle = (0, react_1.useCallback)((style) => {
|
|
172
173
|
if (style === null || style === void 0 ? void 0 : style.lineClamp) {
|
|
@@ -283,10 +283,10 @@ Made in Italy` })));
|
|
|
283
283
|
react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.taxInfo), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo), dangerouslySetInnerHTML: {
|
|
284
284
|
__html: (0, tool_1.setFontForText)((_2 = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _2 !== void 0 ? _2 : '税费', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo)
|
|
285
285
|
} }))),
|
|
286
|
-
|
|
286
|
+
react_1.default.createElement("a", { "aria-label": (_3 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _3 !== void 0 ? _3 : 'Shop now', role: 'button', tabIndex: 0, onClick: handleLink, className: 'pb-commondityDiroNew-btn', style: buttonStyle },
|
|
287
287
|
react_1.default.createElement("span", { dangerouslySetInnerHTML: {
|
|
288
288
|
__html: (0, tool_1.setFontForText)((_4 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _4 !== void 0 ? _4 : 'Shop now', buttonStyle)
|
|
289
|
-
} }))
|
|
289
|
+
} })),
|
|
290
290
|
productInfoText({ isPost }))),
|
|
291
291
|
react_1.default.createElement(Modal_1.default, { visible: showModal, onClose: () => setShowModal(false) },
|
|
292
292
|
react_1.default.createElement("div", { style: { paddingTop: '34px' } }, productInfoText({ isPost: false }))),
|