pb-sxp-ui 1.0.3-alpha.3 → 1.0.3-alpha.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.
- package/dist/index.cjs +14 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +7 -3
- package/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +14 -13
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/ExpandableText.js +1 -1
- package/es/materials/sxp/popup/CommodityDetail/index.js +9 -8
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +3 -3
- package/lib/core/components/SxpPageRender/ExpandableText.js +1 -1
- package/lib/materials/sxp/popup/CommodityDetail/index.js +9 -8
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +3 -3
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -62,6 +62,7 @@
|
|
62
62
|
|
63
63
|
.pb-commondity {
|
64
64
|
position: relative;
|
65
|
+
height: 100%;
|
65
66
|
}
|
66
67
|
.pb-commondity-content {
|
67
68
|
padding: 21px 19px 80px;
|
@@ -162,14 +163,16 @@
|
|
162
163
|
-ms-flex: 1;
|
163
164
|
flex: 1;
|
164
165
|
}
|
165
|
-
.pb-commondityDiroNew-content-top-
|
166
|
-
font-size: 13px;
|
167
|
-
font-weight: bold;
|
166
|
+
.pb-commondityDiroNew-content-top-right {
|
168
167
|
-webkit-flex-shrink: 0;
|
169
168
|
-ms-flex-negative: 0;
|
170
169
|
flex-shrink: 0;
|
171
170
|
margin-left: 35px;
|
172
171
|
}
|
172
|
+
.pb-commondityDiroNew-content-top-right-price {
|
173
|
+
font-size: 13px;
|
174
|
+
font-weight: bold;
|
175
|
+
}
|
173
176
|
.pb-commondityDiroNew-content-collection {
|
174
177
|
font-size: 13px;
|
175
178
|
color: #757575;
|
@@ -1453,6 +1456,7 @@ button.swiper-pagination-bullet {
|
|
1453
1456
|
height: 100%;
|
1454
1457
|
-o-object-fit: contain;
|
1455
1458
|
object-fit: contain;
|
1459
|
+
display: block;
|
1456
1460
|
}
|
1457
1461
|
.flex {
|
1458
1462
|
display: -webkit-box;
|
package/dist/index.js
CHANGED
@@ -8209,7 +8209,7 @@ var Modal$1 = memo(Modal);
|
|
8209
8209
|
* @Author: binruan@chatlabs.com
|
8210
8210
|
* @Date: 2023-12-26 16:11:34
|
8211
8211
|
* @LastEditors: binruan@chatlabs.com
|
8212
|
-
* @LastEditTime: 2024-04-
|
8212
|
+
* @LastEditTime: 2024-04-09 11:00:07
|
8213
8213
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\ExpandableText.tsx
|
8214
8214
|
*
|
8215
8215
|
*/
|
@@ -8252,7 +8252,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
8252
8252
|
const cs = (_a = window === null || window === void 0 ? void 0 : window.getComputedStyle) === null || _a === void 0 ? void 0 : _a.call(window, multiRow.current);
|
8253
8253
|
const height = parseFloat(cs === null || cs === void 0 ? void 0 : cs.height);
|
8254
8254
|
const lh = parseFloat(cs === null || cs === void 0 ? void 0 : cs.lineHeight);
|
8255
|
-
const fs = parseFloat(cs === null || cs === void 0 ? void 0 : cs.fontSize) +
|
8255
|
+
const fs = parseFloat(cs === null || cs === void 0 ? void 0 : cs.fontSize) + 6;
|
8256
8256
|
const lineHeight = isNaN(lh) ? fs : lh;
|
8257
8257
|
if (text && height > lineHeight * lineClamp) {
|
8258
8258
|
setIsShowMore(false);
|
@@ -8320,15 +8320,16 @@ const CommodityDetail$1 = (_a) => {
|
|
8320
8320
|
const width = isPreview ? 375 : window.innerWidth;
|
8321
8321
|
const renderContent = ({ isPost }) => {
|
8322
8322
|
var _a, _b, _c;
|
8323
|
-
return (React.createElement("div",
|
8324
|
-
React.createElement("div", { className: 'pb-commondity-content-collection', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection }, (_a = product === null || product === void 0 ? void 0 : product.collection) !== null && _a !== void 0 ? _a : 'Tiffany Lock'),
|
8325
|
-
React.createElement("div", { className: 'pb-commondity-content-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title }, (_b = product === null || product === void 0 ? void 0 : product.title) !== null && _b !== void 0 ? _b : 'Pendant in Yellow Gold with Diamonds, Medium'),
|
8326
|
-
React.createElement("div", { className: 'pb-commondity-content-price', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price }, priceText),
|
8327
|
-
React.createElement(
|
8323
|
+
return (React.createElement("div", null,
|
8324
|
+
React.createElement("div", { className: 'pb-commondity-content-collection', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection, hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.collection) || (product === null || product === void 0 ? void 0 : product.collection) === '') }, (_a = product === null || product === void 0 ? void 0 : product.collection) !== null && _a !== void 0 ? _a : 'Tiffany Lock'),
|
8325
|
+
React.createElement("div", { className: 'pb-commondity-content-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title, hidden: !!product && !(product === null || product === void 0 ? void 0 : product.title) }, (_b = product === null || product === void 0 ? void 0 : product.title) !== null && _b !== void 0 ? _b : 'Pendant in Yellow Gold with Diamonds, Medium'),
|
8326
|
+
React.createElement("div", { className: 'pb-commondity-content-price', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price, hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price) }, priceText),
|
8327
|
+
React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
|
8328
|
+
React.createElement(ExpandableText$1, { foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, onClick: () => setShowModal(true), isPost: isPost, text: (_c = product === null || product === void 0 ? void 0 : product.info) !== null && _c !== void 0 ? _c : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
8328
8329
|
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
8329
8330
|
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
8330
8331
|
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
8331
|
-
18-karat gold, this necklace is embellished with hand-set diamonds.`, maxStr: 79, className: 'pb-commondity-content-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info })));
|
8332
|
+
18-karat gold, this necklace is embellished with hand-set diamonds.`, maxStr: 79, className: 'pb-commondity-content-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info }))));
|
8332
8333
|
};
|
8333
8334
|
const renderBtn = () => {
|
8334
8335
|
var _a;
|
@@ -8367,10 +8368,10 @@ const CommodityDetail$1 = (_a) => {
|
|
8367
8368
|
objectFit: 'cover',
|
8368
8369
|
width: '100%'
|
8369
8370
|
}), src: (_j = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _j !== void 0 ? _j : bottom_image, alt: '' }))),
|
8370
|
-
renderContent({ isPost })),
|
8371
|
+
React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
|
8371
8372
|
renderBtn(),
|
8372
8373
|
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
|
8373
|
-
renderContent({ isPost: false }),
|
8374
|
+
React.createElement("div", { style: { paddingBottom: '80px' } }, renderContent({ isPost: false })),
|
8374
8375
|
renderBtn())));
|
8375
8376
|
};
|
8376
8377
|
var CommodityDetailComponent = memo(CommodityDetail$1);
|
@@ -8816,9 +8817,9 @@ Made in Italy` })));
|
|
8816
8817
|
React.createElement("div", null,
|
8817
8818
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title }, (_k = product === null || product === void 0 ? void 0 : product.title) !== null && _k !== void 0 ? _k : 'Large Dior Toujours Bag'),
|
8818
8819
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-collection', hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.collection) || (product === null || product === void 0 ? void 0 : product.collection) === ''), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection }, (product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage Calfskin')),
|
8819
|
-
React.createElement("div",
|
8820
|
-
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price }, priceText),
|
8821
|
-
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.taxInfo), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo }, (_l = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _l !== void 0 ? _l : '税费'))),
|
8820
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right' },
|
8821
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price }, priceText),
|
8822
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.taxInfo), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo }, (_l = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _l !== void 0 ? _l : '税费'))),
|
8822
8823
|
(!product || (product === null || product === void 0 ? void 0 : product.link)) && (React.createElement("button", { onClick: handleLink, className: 'pb-commondityDiroNew-btn', style: buttonStyle }, (_m = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _m !== void 0 ? _m : 'Shop now')),
|
8823
8824
|
productInfoText({ isPost }))),
|
8824
8825
|
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false }))));
|