nestiq-component-library 1.1.146 → 1.1.150
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/components/NewPropertyCard/NewPropertyCard.d.ts +1 -0
- package/dist/index.es.js +16 -16
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ImageListPopup/ImageListPopup.tsx +13 -9
- package/src/components/NewPropertyCard/NewPropertyCard.tsx +5 -6
package/dist/index.js
CHANGED
|
@@ -214,11 +214,11 @@ function ImageListPopup(props) {
|
|
|
214
214
|
setShowPopUp(false);
|
|
215
215
|
};
|
|
216
216
|
return (React.createElement("div", null, showPopUp && (React.createElement("div", { className: "popup-overlay" },
|
|
217
|
-
React.createElement("div", { className: " d-flex w-50 flex-column
|
|
217
|
+
React.createElement("div", { className: " d-flex w-50 flex-column col-6 " },
|
|
218
218
|
React.createElement("div", { className: "d-flex align-self-end me-5 mt-5" },
|
|
219
219
|
React.createElement("img", { src: iconClose, alt: "close", className: "closeIcon mt-5", onClick: handleClose })),
|
|
220
220
|
React.createElement("span", { className: "text-white align-self-center" }, props.pictureUrls[currentImageIndex].title),
|
|
221
|
-
React.createElement("div", { className: "d-flex
|
|
221
|
+
React.createElement("div", { className: "d-flex justify-content-center" },
|
|
222
222
|
React.createElement("div", { className: "p-2 bd-highlight align-self-center align-items-center me-5" },
|
|
223
223
|
React.createElement("div", { className: "rounded-circle border onImageArrow start-0 d-flex ", role: "button", onClick: function () { return handleArrowClickInMainImage("left"); } },
|
|
224
224
|
React.createElement("img", { src: blcIconArrowLeft, className: "blackArrow align-self-center", alt: "Left Arrow" }))),
|
|
@@ -234,15 +234,18 @@ function ImageListPopup(props) {
|
|
|
234
234
|
" ",
|
|
235
235
|
React.createElement("div", { role: "button", className: "rounded-circle border onImageArrow d-flex justify-content-center", onClick: function () { return handleArrowClickInMainImage("right"); } },
|
|
236
236
|
React.createElement("img", { src: blcIconArrowRight, className: "blackArrow align-self-center", alt: "Right Arrow" })))),
|
|
237
|
-
React.createElement("div", { className: "d-flex flex-row
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
237
|
+
React.createElement("div", { className: "d-flex flex-row" }),
|
|
238
|
+
React.createElement("div", { className: "d-flex flex-row gap-4 w-100 secondList " },
|
|
239
|
+
React.createElement("div", { className: "col-lg-12 d-flex flex-row p-1 align-self-center mt-5" },
|
|
240
|
+
React.createElement("div", { className: "col-12 position-relative d-flex justify-content-center" },
|
|
241
|
+
React.createElement("div", { className: "col-lg-10 rounded-3 h-100 w-100 d-flex flex-row gap-2 overflow-auto ", ref: imageListRef }, props.pictureUrls.length > 0 && (React.createElement("div", { className: "col-lg-5 h-100 w-25 d-flex gap-4 flex-row rounded-3" }, props.pictureUrls.map(function (picture, index) { return (React.createElement("div", { key: index, className: "col-lg-12 h-100 d-flex", onClick: function () {
|
|
242
|
+
setCurrentImageIndex(index);
|
|
243
|
+
imageListRef.current.scrollTo({
|
|
244
|
+
left: index * 150,
|
|
245
|
+
behavior: "smooth",
|
|
246
|
+
});
|
|
247
|
+
}, role: "button" },
|
|
248
|
+
React.createElement("img", { src: picture.url, alt: "Image ".concat(index + 1), className: "col-12 h-100 rounded-3 object-fit-cover" }))); }))))))))))));
|
|
246
249
|
}
|
|
247
250
|
|
|
248
251
|
var FloorPlanPopup = function (_a) {
|
|
@@ -465,16 +468,14 @@ function PropertyCard(props) {
|
|
|
465
468
|
var _j = React.useState(null), mainImage = _j[0], setMainImage = _j[1];
|
|
466
469
|
var _k = React.useState(0), currentImageIndex = _k[0], setCurrentImageIndex = _k[1];
|
|
467
470
|
var imageListRef = React.useRef(null);
|
|
468
|
-
var _l = React.useState(false)
|
|
471
|
+
var _l = React.useState(false); _l[0]; _l[1];
|
|
469
472
|
var _m = React.useState(false); _m[0]; _m[1];
|
|
470
473
|
var _o = React.useState(false), sharePopUp = _o[0], setSharePopUp = _o[1];
|
|
471
474
|
var pictureUrls = ((_b = (_a = props.property) === null || _a === void 0 ? void 0 : _a.pictures) === null || _b === void 0 ? void 0 : _b.length) > 0
|
|
472
475
|
? props.property.pictures.map(function (picture) { return "".concat(props.baseUrl).concat(picture.contentUrl); })
|
|
473
476
|
: [noImageIcon];
|
|
474
477
|
var floorPlanOnClick = function () {
|
|
475
|
-
|
|
476
|
-
setFloorPlan(true);
|
|
477
|
-
}
|
|
478
|
+
props.onFloorPlanClick();
|
|
478
479
|
};
|
|
479
480
|
var handleMessagPopUp = function () {
|
|
480
481
|
// setMessagPopUp(true);
|
|
@@ -606,7 +607,6 @@ function PropertyCard(props) {
|
|
|
606
607
|
React.createElement("span", { className: "kontact-button-text" },
|
|
607
608
|
"Kontakt aufnehmen",
|
|
608
609
|
" "))))))),
|
|
609
|
-
floorPlan && (React.createElement(FloorPlanPopup, { contentUrl: props.floorPlanUrl, onCloseClick: function () { return setFloorPlan(false); } })),
|
|
610
610
|
sharePopUp && React.createElement(SharePopup, { onClick: function () { return setSharePopUp(false); } })));
|
|
611
611
|
}
|
|
612
612
|
|