nestiq-component-library 1.1.146 → 1.1.151
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 +18 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +18 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FloorPlanPopup/FloorPlanPopup.tsx +1 -1
- package/src/components/ImageListPopup/ImageListPopup.tsx +13 -9
- package/src/components/NewPropertyCard/NewPropertyCard.tsx +5 -6
|
@@ -42,7 +42,7 @@ export default function ImageListPopup(props: PopupProps) {
|
|
|
42
42
|
<div>
|
|
43
43
|
{showPopUp && (
|
|
44
44
|
<div className="popup-overlay">
|
|
45
|
-
<div className=" d-flex w-50 flex-column
|
|
45
|
+
<div className=" d-flex w-50 flex-column col-6 ">
|
|
46
46
|
<div className="d-flex align-self-end me-5 mt-5">
|
|
47
47
|
<img
|
|
48
48
|
src={iconClose}
|
|
@@ -54,7 +54,7 @@ export default function ImageListPopup(props: PopupProps) {
|
|
|
54
54
|
<span className="text-white align-self-center">
|
|
55
55
|
{props.pictureUrls[currentImageIndex].title}
|
|
56
56
|
</span>
|
|
57
|
-
<div className="d-flex
|
|
57
|
+
<div className="d-flex justify-content-center">
|
|
58
58
|
<div className="p-2 bd-highlight align-self-center align-items-center me-5">
|
|
59
59
|
<div
|
|
60
60
|
className="rounded-circle border onImageArrow start-0 d-flex "
|
|
@@ -95,15 +95,18 @@ export default function ImageListPopup(props: PopupProps) {
|
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
97
|
</div>
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
<div className="d-flex flex-row">
|
|
99
|
+
{/* Arrows on the main image */}
|
|
100
|
+
</div>
|
|
101
|
+
<div className="d-flex flex-row gap-4 w-100 secondList ">
|
|
102
|
+
<div className="col-lg-12 d-flex flex-row p-1 align-self-center mt-5">
|
|
103
|
+
<div className="col-12 position-relative d-flex justify-content-center">
|
|
101
104
|
<div
|
|
102
|
-
className="col-lg-10 rounded-3 h-100 w-100 d-flex flex-row gap-2 overflow-
|
|
105
|
+
className="col-lg-10 rounded-3 h-100 w-100 d-flex flex-row gap-2 overflow-auto "
|
|
103
106
|
ref={imageListRef}
|
|
104
107
|
>
|
|
105
108
|
{props.pictureUrls.length > 0 && (
|
|
106
|
-
<div className="col-lg-5 h-
|
|
109
|
+
<div className="col-lg-5 h-100 w-25 d-flex gap-4 flex-row rounded-3">
|
|
107
110
|
{props.pictureUrls.map((picture, index) => (
|
|
108
111
|
<div
|
|
109
112
|
key={index}
|
|
@@ -120,7 +123,7 @@ export default function ImageListPopup(props: PopupProps) {
|
|
|
120
123
|
<img
|
|
121
124
|
src={picture.url}
|
|
122
125
|
alt={`Image ${index + 1}`}
|
|
123
|
-
className="col-12 h-
|
|
126
|
+
className="col-12 h-100 rounded-3 object-fit-cover"
|
|
124
127
|
/>
|
|
125
128
|
</div>
|
|
126
129
|
))}
|
|
@@ -130,7 +133,8 @@ export default function ImageListPopup(props: PopupProps) {
|
|
|
130
133
|
</div>
|
|
131
134
|
</div>
|
|
132
135
|
</div>
|
|
133
|
-
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
134
138
|
)}
|
|
135
139
|
</div>
|
|
136
140
|
);
|
|
@@ -46,6 +46,7 @@ interface PopupProps {
|
|
|
46
46
|
messageOnClick: () => void;
|
|
47
47
|
onclickSuccess: () => void;
|
|
48
48
|
onClick: () => void;
|
|
49
|
+
onFloorPlanClick: () => void;
|
|
49
50
|
}
|
|
50
51
|
export default function PropertyCard(props: PopupProps) {
|
|
51
52
|
const [liked, setLiked] = useState(false);
|
|
@@ -59,7 +60,7 @@ export default function PropertyCard(props: PopupProps) {
|
|
|
59
60
|
const pictureUrls =
|
|
60
61
|
props.property?.pictures?.length > 0
|
|
61
62
|
? props.property.pictures.map(
|
|
62
|
-
(picture) => `${props.baseUrl}${picture.contentUrl}
|
|
63
|
+
(picture) => `${props.baseUrl}${picture.contentUrl}`
|
|
63
64
|
)
|
|
64
65
|
: [noImageIcon];
|
|
65
66
|
|
|
@@ -68,9 +69,7 @@ export default function PropertyCard(props: PopupProps) {
|
|
|
68
69
|
setLiked(!liked);
|
|
69
70
|
};
|
|
70
71
|
const floorPlanOnClick = () => {
|
|
71
|
-
|
|
72
|
-
setFloorPlan(true);
|
|
73
|
-
}
|
|
72
|
+
props.onFloorPlanClick();
|
|
74
73
|
};
|
|
75
74
|
const handleMessagPopUp = () => {
|
|
76
75
|
// setMessagPopUp(true);
|
|
@@ -337,12 +336,12 @@ export default function PropertyCard(props: PopupProps) {
|
|
|
337
336
|
</div>
|
|
338
337
|
)}
|
|
339
338
|
</div>
|
|
340
|
-
{floorPlan && (
|
|
339
|
+
{/* {floorPlan && (
|
|
341
340
|
<FloorPlanPopup
|
|
342
341
|
contentUrl={props.floorPlanUrl}
|
|
343
342
|
onCloseClick={() => setFloorPlan(false)}
|
|
344
343
|
/>
|
|
345
|
-
)}
|
|
344
|
+
)} */}
|
|
346
345
|
{/* {messagePopUp && (
|
|
347
346
|
<MessagePopUp
|
|
348
347
|
onCloseClick={() => setMessagPopUp(false)}
|