nestiq-component-library 1.1.141 → 1.1.142

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.
Files changed (46) hide show
  1. package/dist/assets/images/{card-arrow-left.28090aba4b4f2006.svg → card-arrow-left.55343410142dad3f.svg} +4 -4
  2. package/dist/assets/images/{card-arrow-right.c60af4cbbd49f3aa.svg → card-arrow-right.60b3bf0e34c1800d.svg} +4 -4
  3. package/dist/assets/images/{imooly.890e3dd01ea33574.svg → imooly.b46514ac970e6052.svg} +7 -7
  4. package/dist/assets/images/{more.1e158adc48fbb406.svg → more.ce14789c8d37e327.svg} +12 -12
  5. package/dist/index.es.js +41 -51
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/index.js +41 -51
  8. package/dist/index.js.map +1 -1
  9. package/package.json +1 -1
  10. package/rollup.config.mjs +36 -36
  11. package/src/assets/images/card-arrow-left.svg +4 -4
  12. package/src/assets/images/card-arrow-right.svg +4 -4
  13. package/src/assets/images/imooly.svg +7 -7
  14. package/src/assets/images/more.svg +12 -12
  15. package/src/components/FloorPlanPopup/FloorPlanPopup.css +3 -3
  16. package/src/components/FloorPlanPopup/FloorPlanPopup.tsx +83 -83
  17. package/src/components/ImageListPopup/ImageListPopup.css +83 -83
  18. package/src/components/ImageListPopup/ImageListPopup.tsx +141 -141
  19. package/src/components/NewPropertyCard/NewPropertyCard.css +52 -43
  20. package/src/components/NewPropertyCard/NewPropertyCard.tsx +358 -359
  21. package/src/components/Popup/Popup.tsx +29 -29
  22. package/src/components/ToastWrapper/ToastWrapper.tsx +25 -25
  23. package/src/models/message.model.ts +7 -7
  24. package/dist/assets/images/Icon_rightArrow.svg +0 -3
  25. package/dist/assets/images/LayersIcon.svg +0 -5
  26. package/dist/assets/images/blackarrow-Right.svg +0 -3
  27. package/dist/assets/images/blckarrow-Left.svg +0 -3
  28. package/dist/assets/images/chevron-left.svg +0 -3
  29. package/dist/assets/images/default-property.jpg +0 -0
  30. package/dist/assets/images/heartIcon.svg +0 -3
  31. package/dist/assets/images/icon-close-white.webp +0 -0
  32. package/dist/assets/images/icon_close 2.e41bb9a4db48e048.png +0 -0
  33. package/dist/assets/images/icon_close_2.png +0 -0
  34. package/dist/assets/images/icon_gallery.svg +0 -4
  35. package/dist/assets/images/icon_map.svg +0 -10
  36. package/dist/assets/images/icon_share_1.svg +0 -3
  37. package/dist/assets/images/layer_icon.svg +0 -5
  38. package/dist/assets/images/locationIcon.0af399c78e0cdc20.svg +0 -4
  39. package/dist/assets/images/locationIcon.svg +0 -4
  40. package/dist/assets/images/locationIconBlack.svg +0 -4
  41. package/dist/assets/images/no-image-icon.png +0 -0
  42. package/dist/components/Button/Button.js +0 -6
  43. package/dist/components/ImageListPopup/ImageListPopup.js +0 -26
  44. package/dist/components/MessagePopup/ErrorPopup.d.ts +0 -7
  45. package/dist/components/Popup/Popup.js +0 -12
  46. package/dist/components/SharePopup/PopUp.d.ts +0 -7
@@ -1,141 +1,141 @@
1
- import "./ImageListPopup.css";
2
- import React, { useRef, useState } from "react";
3
- import blcIconArrowRight from "../../assets/images/blackarrow-Right.svg";
4
- import blcIconArrowLeft from "../../assets/images/blckarrow-Left.svg";
5
- import iconClose from "../../assets/images/close.png";
6
- import "../../styles/common.css";
7
-
8
- interface PopupProps {
9
- pictureUrls: { title: string; url: string }[];
10
- }
11
-
12
- export default function ImageListPopup(props: PopupProps) {
13
- const [showPopUp, setShowPopUp] = useState(true);
14
- const [currentImageIndex, setCurrentImageIndex] = useState(0);
15
- const imageListRef = useRef<HTMLDivElement | null>(null);
16
-
17
- const handleArrowClickInMainImage = (direction: any) => {
18
- if (props.pictureUrls.length === 0) return;
19
-
20
- let newIndex = currentImageIndex;
21
- if (direction === "left") {
22
- newIndex =
23
- (currentImageIndex - 1 + props.pictureUrls.length) %
24
- props.pictureUrls.length;
25
- } else if (direction === "right") {
26
- newIndex = (currentImageIndex + 1) % props.pictureUrls.length;
27
- }
28
-
29
- setCurrentImageIndex(newIndex);
30
-
31
- imageListRef.current!.scrollTo({
32
- left: newIndex * 150,
33
- behavior: "smooth",
34
- });
35
- };
36
-
37
- const handleClose = () => {
38
- setShowPopUp(false);
39
- };
40
-
41
- return (
42
- <div>
43
- {showPopUp && (
44
- <div className="popup-overlay">
45
- <div className=" d-flex w-50 flex-column col-6 ">
46
- <div className="d-flex align-self-end me-5 mt-5">
47
- <img
48
- src={iconClose}
49
- alt="close"
50
- className="closeIcon mt-5"
51
- onClick={handleClose}
52
- />
53
- </div>
54
- <span className="text-white align-self-center">
55
- {props.pictureUrls[currentImageIndex].title}
56
- </span>
57
- <div className="d-flex justify-content-center">
58
- <div className="p-2 bd-highlight align-self-center align-items-center me-5">
59
- <div
60
- className="rounded-circle border onImageArrow start-0 d-flex "
61
- role="button"
62
- onClick={() => handleArrowClickInMainImage("left")}
63
- >
64
- <img
65
- src={blcIconArrowLeft}
66
- className="blackArrow align-self-center"
67
- alt="Left Arrow"
68
- />
69
- </div>
70
- </div>
71
- <div className="p-2 bd-highlight">
72
- <div
73
- className=" rounded-5 mainImage "
74
- style={{
75
- backgroundImage: `url(${props.pictureUrls[currentImageIndex].url})`,
76
- height: "350px",
77
- width: "600px",
78
- backgroundSize: "cover",
79
- backgroundPosition: "center",
80
- }}
81
- ></div>
82
- </div>
83
- <div className="p-2 bd-highlight align-self-center ms-5">
84
- {" "}
85
- <div
86
- role="button"
87
- className="rounded-circle border onImageArrow d-flex justify-content-center"
88
- onClick={() => handleArrowClickInMainImage("right")}
89
- >
90
- <img
91
- src={blcIconArrowRight}
92
- className="blackArrow align-self-center"
93
- alt="Right Arrow"
94
- />
95
- </div>
96
- </div>
97
- </div>
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">
104
- <div
105
- className="col-lg-10 rounded-3 h-100 w-100 d-flex flex-row gap-2 overflow-auto "
106
- ref={imageListRef}
107
- >
108
- {props.pictureUrls.length > 0 && (
109
- <div className="col-lg-5 h-100 w-25 d-flex gap-4 flex-row rounded-3">
110
- {props.pictureUrls.map((picture, index) => (
111
- <div
112
- key={index}
113
- className="col-lg-12 h-100 d-flex"
114
- onClick={() => {
115
- setCurrentImageIndex(index);
116
- imageListRef.current!.scrollTo({
117
- left: index * 150,
118
- behavior: "smooth",
119
- });
120
- }}
121
- role="button"
122
- >
123
- <img
124
- src={picture.url}
125
- alt={`Image ${index + 1}`}
126
- className="col-12 h-100 rounded-3 object-fit-cover"
127
- />
128
- </div>
129
- ))}
130
- </div>
131
- )}
132
- </div>
133
- </div>
134
- </div>
135
- </div>
136
- </div>
137
- </div>
138
- )}
139
- </div>
140
- );
141
- }
1
+ import "./ImageListPopup.css";
2
+ import React, { useRef, useState } from "react";
3
+ import blcIconArrowRight from "../../assets/images/blackarrow-Right.svg";
4
+ import blcIconArrowLeft from "../../assets/images/blckarrow-Left.svg";
5
+ import iconClose from "../../assets/images/close.png";
6
+ import "../../styles/common.css";
7
+
8
+ interface PopupProps {
9
+ pictureUrls: { title: string; url: string }[];
10
+ }
11
+
12
+ export default function ImageListPopup(props: PopupProps) {
13
+ const [showPopUp, setShowPopUp] = useState(true);
14
+ const [currentImageIndex, setCurrentImageIndex] = useState(0);
15
+ const imageListRef = useRef<HTMLDivElement | null>(null);
16
+
17
+ const handleArrowClickInMainImage = (direction: any) => {
18
+ if (props.pictureUrls.length === 0) return;
19
+
20
+ let newIndex = currentImageIndex;
21
+ if (direction === "left") {
22
+ newIndex =
23
+ (currentImageIndex - 1 + props.pictureUrls.length) %
24
+ props.pictureUrls.length;
25
+ } else if (direction === "right") {
26
+ newIndex = (currentImageIndex + 1) % props.pictureUrls.length;
27
+ }
28
+
29
+ setCurrentImageIndex(newIndex);
30
+
31
+ imageListRef.current!.scrollTo({
32
+ left: newIndex * 150,
33
+ behavior: "smooth",
34
+ });
35
+ };
36
+
37
+ const handleClose = () => {
38
+ setShowPopUp(false);
39
+ };
40
+
41
+ return (
42
+ <div>
43
+ {showPopUp && (
44
+ <div className="popup-overlay">
45
+ <div className=" d-flex w-50 flex-column col-6 ">
46
+ <div className="d-flex align-self-end me-5 mt-5">
47
+ <img
48
+ src={iconClose}
49
+ alt="close"
50
+ className="closeIcon mt-5"
51
+ onClick={handleClose}
52
+ />
53
+ </div>
54
+ <span className="text-white align-self-center">
55
+ {props.pictureUrls[currentImageIndex].title}
56
+ </span>
57
+ <div className="d-flex justify-content-center">
58
+ <div className="p-2 bd-highlight align-self-center align-items-center me-5">
59
+ <div
60
+ className="rounded-circle border onImageArrow start-0 d-flex "
61
+ role="button"
62
+ onClick={() => handleArrowClickInMainImage("left")}
63
+ >
64
+ <img
65
+ src={blcIconArrowLeft}
66
+ className="blackArrow align-self-center"
67
+ alt="Left Arrow"
68
+ />
69
+ </div>
70
+ </div>
71
+ <div className="p-2 bd-highlight">
72
+ <div
73
+ className=" rounded-5 mainImage "
74
+ style={{
75
+ backgroundImage: `url(${props.pictureUrls[currentImageIndex].url})`,
76
+ height: "350px",
77
+ width: "600px",
78
+ backgroundSize: "cover",
79
+ backgroundPosition: "center",
80
+ }}
81
+ ></div>
82
+ </div>
83
+ <div className="p-2 bd-highlight align-self-center ms-5">
84
+ {" "}
85
+ <div
86
+ role="button"
87
+ className="rounded-circle border onImageArrow d-flex justify-content-center"
88
+ onClick={() => handleArrowClickInMainImage("right")}
89
+ >
90
+ <img
91
+ src={blcIconArrowRight}
92
+ className="blackArrow align-self-center"
93
+ alt="Right Arrow"
94
+ />
95
+ </div>
96
+ </div>
97
+ </div>
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">
104
+ <div
105
+ className="col-lg-10 rounded-3 h-100 w-100 d-flex flex-row gap-2 overflow-auto "
106
+ ref={imageListRef}
107
+ >
108
+ {props.pictureUrls.length > 0 && (
109
+ <div className="col-lg-5 h-100 w-25 d-flex gap-4 flex-row rounded-3">
110
+ {props.pictureUrls.map((picture, index) => (
111
+ <div
112
+ key={index}
113
+ className="col-lg-12 h-100 d-flex"
114
+ onClick={() => {
115
+ setCurrentImageIndex(index);
116
+ imageListRef.current!.scrollTo({
117
+ left: index * 150,
118
+ behavior: "smooth",
119
+ });
120
+ }}
121
+ role="button"
122
+ >
123
+ <img
124
+ src={picture.url}
125
+ alt={`Image ${index + 1}`}
126
+ className="col-12 h-100 rounded-3 object-fit-cover"
127
+ />
128
+ </div>
129
+ ))}
130
+ </div>
131
+ )}
132
+ </div>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </div>
138
+ )}
139
+ </div>
140
+ );
141
+ }
@@ -1,6 +1,8 @@
1
1
  .property-card {
2
2
  width: 100%;
3
3
  max-width: 1280px;
4
+ box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
5
+ border-radius: 32px;
4
6
 
5
7
  @media (min-width: 1500px) {
6
8
  max-width: 1280px;
@@ -12,12 +14,19 @@
12
14
  align-self: stretch;
13
15
  max-width: 750px;
14
16
  flex-direction: column;
15
- gap: 16px;
16
- border-radius: 0px 32px 32px 0px;
17
- /* box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25); */
17
+ gap: 32px;
18
+ border-radius: 0 32px 32px 0;
18
19
  background-color: rgba(58, 58, 58, 0.068);
20
+ }
21
+
22
+ .cc-height {
19
23
  height: 460px;
20
24
  }
25
+
26
+ .listing-height {
27
+ height: 422px;
28
+ }
29
+
21
30
  .cardStyles {
22
31
  width: 100%;
23
32
  display: flex;
@@ -55,7 +64,7 @@
55
64
  background: linear-gradient(to top, #000, #666);
56
65
  }
57
66
  .Frame-136 {
58
- height: 119px;
67
+ height: 85px;
59
68
  align-self: stretch;
60
69
  flex-grow: 0;
61
70
  display: flex;
@@ -69,7 +78,7 @@
69
78
  background-color: #fff;
70
79
  }
71
80
  .kontactbutton {
72
- width: 180px;
81
+ width: 198px;
73
82
  height: 43px;
74
83
  flex-grow: 0;
75
84
  display: flex;
@@ -105,31 +114,10 @@
105
114
  text-align: start;
106
115
  color: #313131;
107
116
  }
108
- .firstLabel {
109
- width: 100px;
110
- height: 25px;
111
- gap: 6px;
112
- border-radius: 16px;
113
- box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
114
- border: solid 1px #031012 !important;
115
- background-color: var(--main-yellow);
116
- }
117
117
 
118
- .secondLabel {
119
- width: 85px;
120
- height: 25px;
121
- padding: 0 7px;
122
- border-radius: 16px;
123
- box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
124
- border: solid 1px #000;
125
- background-color: #fff;
126
- display: flex;
127
- }
128
-
129
- .thirdLabels {
130
- width: 110px;
131
- padding: 0 7px;
132
- height: 25px;
118
+ .chipLabel {
119
+ height: 30px;
120
+ padding: 0 10px;
133
121
  border-radius: 16px;
134
122
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
135
123
  border: solid 1px #000;
@@ -137,25 +125,17 @@
137
125
  display: flex;
138
126
  }
139
127
 
140
- .fourthLabels {
141
- padding: 2px;
142
-
143
- width: 100px;
144
- height: 25px;
145
- border-radius: 16px;
146
- box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
147
- border: solid 1px #000;
148
- background-color: #fff;
149
- }
150
-
151
128
  .layersVector {
152
129
  width: 15.1px;
153
130
  height: 16px;
154
131
  }
155
132
 
156
133
  .layersText {
134
+ padding: 0 8px;
157
135
  font-size: 14px;
158
136
  color: #1b1b1b;
137
+ line-height: 2.14;
138
+ text-wrap: nowrap;
159
139
  }
160
140
 
161
141
  .style-img {
@@ -194,8 +174,22 @@
194
174
  .heartVector.liked {
195
175
  fill: rgb(255, 255, 255) !important;
196
176
  }
177
+
178
+ .location-wrapper {
179
+ display: flex;
180
+ align-items: center;
181
+ gap: 10px;
182
+ }
183
+
184
+ .location-icon {
185
+ width: 16px;
186
+ height: 21px;
187
+ flex-grow: 0;
188
+ object-fit: contain;
189
+ }
190
+
197
191
  .locationTexts {
198
- font-size: 14px;
192
+ font-size: 16px;
199
193
  color: #344041;
200
194
  text-align: center;
201
195
  }
@@ -219,21 +213,35 @@
219
213
  }
220
214
 
221
215
  .details {
222
- font-size: 14px;
216
+ font-size: 16px;
223
217
  text-align: center;
224
218
  color: #344041;
225
219
  }
220
+
221
+ .price_label {
222
+ font-size: 16px;
223
+ text-align: left;
224
+ color: #344041;
225
+ }
226
+
226
227
  .value {
227
228
  font-size: 20px;
228
229
  text-align: center;
229
230
  font-weight: 500;
231
+ display: flex;
232
+ flex-direction: column;
233
+ gap: 5px;
234
+ line-height: 1;
230
235
  }
231
236
  .priceValue {
232
237
  font-size: 20px;
233
238
  font-weight: 500;
239
+ display: flex;
240
+ flex-direction: column;
241
+ gap: 5px;
242
+ line-height: 1;
234
243
  }
235
244
 
236
-
237
245
  .class {
238
246
  background-color: #1b1b1b;
239
247
  }
@@ -310,6 +318,7 @@
310
318
  }
311
319
  .layersText {
312
320
  font-size: 9px;
321
+ padding: 0 2rem;
313
322
  }
314
323
  .firstLabel {
315
324
  gap: 2px;