nestiq-component-library 1.0.24 → 1.0.26
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/ImageListPopup/ImageListPopup.d.ts +4 -11
- package/dist/components/PropertyDetailsHeader/PropertyDetailsHeader.d.ts +1 -1
- package/dist/components/PropertyImageList/PropertyImageList.d.ts +4 -11
- package/dist/index.es.js +40 -71
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +39 -70
- package/dist/index.js.map +1 -1
- package/package.json +3 -7
- package/rollup.config.mjs +35 -40
- package/src/components/ImageListPopup/ImageListPopup.css +107 -107
- package/src/components/ImageListPopup/ImageListPopup.tsx +141 -212
- package/src/components/Popup/Popup.tsx +28 -28
- package/src/components/PropertyDetailsHeader/PropertyDetailsHeader.tsx +83 -82
- package/src/components/PropertyImageList/PropertyImageList.tsx +11 -46
- package/tsconfig.json +2 -0
- package/dist/assets/images/heartIcon.svg +0 -3
- package/dist/assets/images/icon-close-white.webp +0 -0
- package/dist/assets/images/no-image-icon.png +0 -0
- package/dist/components/Button/Button.js +0 -6
- package/dist/components/ImageListPopup/ImageListPopup.js +0 -26
- package/dist/components/Popup/Popup.js +0 -12
- package/nestiq-component-library-1.0.22.tgz +0 -0
- /package/dist/assets/images/{Icon_rightArrow.svg → Icon_rightArrow.bced4a705c07148d.svg} +0 -0
- /package/dist/assets/images/{LayersIcon.svg → LayersIcon.34c085c352a2c9c8.svg} +0 -0
- /package/dist/assets/images/{blackarrow-Right.svg → blackarrow-Right.e585ae62dd55abae.svg} +0 -0
- /package/dist/assets/images/{blckarrow-Left.svg → blckarrow-Left.e2134741aa368d30.svg} +0 -0
- /package/dist/assets/images/{chevron-left.svg → chevron-left.04f0a7f16b745c1a.svg} +0 -0
- /package/dist/assets/images/{default-property.jpg → default-property.9987f19670be82b6.jpg} +0 -0
- /package/dist/assets/images/{icon_close_2.png → icon_close_2.e41bb9a4db48e048.png} +0 -0
- /package/dist/assets/images/{icon_gallery.svg → icon_gallery.269b721daf2ca907.svg} +0 -0
- /package/dist/assets/images/{icon_map.svg → icon_map.2318ec664c3e615e.svg} +0 -0
- /package/dist/assets/images/{icon_share_1.svg → icon_share_1.b9ec05630dc1087e.svg} +0 -0
- /package/dist/assets/images/{layer_icon.svg → layer_icon.9b56c187199c44b5.svg} +0 -0
- /package/dist/assets/images/{locationIcon.svg → locationIcon.0af399c78e0cdc20.svg} +0 -0
- /package/dist/assets/images/{locationIconBlack.svg → locationIconBlack.eb8e9e9226b43573.svg} +0 -0
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var Button = function (_a) {
|
|
|
7
7
|
return React.createElement("button", null, label);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
var iconClose = "icon_close_2.png";
|
|
10
|
+
var iconClose = "/static/media/icon_close_2.e41bb9a4db48e048.png";
|
|
11
11
|
|
|
12
12
|
function styleInject(css, ref) {
|
|
13
13
|
if ( ref === void 0 ) ref = {};
|
|
@@ -48,26 +48,27 @@ var Popup = function (_a) {
|
|
|
48
48
|
children)));
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
var ShareIcon = "icon_share_1.svg";
|
|
51
|
+
var ShareIcon = "/static/media/icon_share_1.b9ec05630dc1087e.svg";
|
|
52
52
|
|
|
53
|
-
var locationIcon$1 = "locationIconBlack.svg";
|
|
53
|
+
var locationIcon$1 = "/static/media/locationIconBlack.eb8e9e9226b43573.svg";
|
|
54
54
|
|
|
55
55
|
var css_248z$3 = ".compact {\r\n height: 194px;\r\n border-radius: 32px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n background-color: #f2f2f2;\r\n}\r\n\r\n.header_Text {\r\n margin-top: 140px;\r\n font-size: 32px;\r\n line-height: normal;\r\n color: #1b1b1b;\r\n}\r\n\r\n.vector svg {\r\n width: 16px;\r\n height: 21.5px;\r\n flex-grow: 0;\r\n margin: 4.2px 10px 4.2px 0;\r\n fill: #344041;\r\n cursor: pointer;\r\n}\r\n\r\n.propText {\r\n height: 30px;\r\n font-size: 16px;\r\n letter-spacing: normal;\r\n text-align: center;\r\n color: #344041;\r\n}\r\n\r\n.v_share {\r\n cursor: pointer;\r\n}\r\n\r\n.fetch_section {\r\n margin-top: 90px;\r\n height: 60px;\r\n}\r\n@media (min-width: 800px) {\r\n .Pheader {\r\n max-width: 1750px;\r\n margin: 0 auto;\r\n \r\n }\r\n}\r\n";
|
|
56
56
|
styleInject(css_248z$3);
|
|
57
57
|
|
|
58
58
|
function PropertyDetailsHeader(props) {
|
|
59
|
-
var _a
|
|
59
|
+
var _a;
|
|
60
|
+
var _b = React.useState(false), showPopUp = _b[0], setShowPopUp = _b[1];
|
|
60
61
|
var handlePopUp = function () {
|
|
61
62
|
setShowPopUp(!showPopUp);
|
|
62
63
|
};
|
|
63
64
|
return (React.createElement("div", { className: "Pheader compact d-flex col-12 col-lg-12 position-relative mt-5 " },
|
|
64
65
|
React.createElement("div", { className: "header_Text d-flex col-lg-7 col-md-9 mt-4 ms-4 " },
|
|
65
|
-
React.createElement("strong", null,
|
|
66
|
+
React.createElement("strong", null, (_a = props.title) !== null && _a !== void 0 ? _a : "-")),
|
|
66
67
|
React.createElement("div", { className: "header_Text text-truncate col-lg-6 col-md-7 d-flex flex-row position-absolute ms-4" },
|
|
67
|
-
React.createElement("img", { src: locationIcon$1, className: "vector me-2" }),
|
|
68
|
+
React.createElement("img", { src: locationIcon$1, className: "vector me-2", alt: "location Icon" }),
|
|
68
69
|
React.createElement("div", { className: "propText text-truncate col-lg-6 col-md-6 d-flex align-items-center" }, props.property.city)),
|
|
69
70
|
React.createElement("div", { className: "d-flex col-lg-5 col-md-6 col-sm-5 justify-content-end position-absolute end-0 mt-4" },
|
|
70
|
-
React.createElement("img", { src: ShareIcon, className: "v_share me-3", onClick: handlePopUp })),
|
|
71
|
+
React.createElement("img", { src: ShareIcon, alt: "share icon", className: "v_share me-3", onClick: handlePopUp })),
|
|
71
72
|
React.createElement("div", { className: "fetch_section d-flex align-items-center flex-row col-lg-5 col-md-6 col-sm-5 justify-content-end position-absolute end-0" },
|
|
72
73
|
props && (React.createElement("div", { className: " propText col-lg-3 col-md-3 h-100 d-flex align-items-center justify-content-center " },
|
|
73
74
|
props.property.askingPrice,
|
|
@@ -78,12 +79,12 @@ function PropertyDetailsHeader(props) {
|
|
|
78
79
|
props.property.constructedArea,
|
|
79
80
|
" m\u00B2 ",
|
|
80
81
|
React.createElement("br", null),
|
|
81
|
-
"
|
|
82
|
+
"Wohnfl\u00E4che")),
|
|
82
83
|
props && (React.createElement("div", { className: "propText col-lg-3 col-md-3 d-flex h-100 align-items-center justify-content-center" },
|
|
83
84
|
props.property.rooms,
|
|
84
85
|
" ",
|
|
85
86
|
React.createElement("br", null),
|
|
86
|
-
"
|
|
87
|
+
"Zimmer")),
|
|
87
88
|
props && (React.createElement("div", { className: "propText col-lg-3 col-md-3 d-flex h-100 align-items-center justify-content-center" },
|
|
88
89
|
props.property.propertyArea,
|
|
89
90
|
" m\u00B2",
|
|
@@ -91,50 +92,32 @@ function PropertyDetailsHeader(props) {
|
|
|
91
92
|
"Grundst\u00FCck")))));
|
|
92
93
|
}
|
|
93
94
|
|
|
94
|
-
var iconArrowRight = "Icon_rightArrow.svg";
|
|
95
|
+
var iconArrowRight = "/static/media/Icon_rightArrow.bced4a705c07148d.svg";
|
|
95
96
|
|
|
96
|
-
var blcIconArrowRight = "blackarrow-Right.svg";
|
|
97
|
+
var blcIconArrowRight = "/static/media/blackarrow-Right.e585ae62dd55abae.svg";
|
|
97
98
|
|
|
98
|
-
var blcIconArrowLeft = "blckarrow-Left.svg";
|
|
99
|
+
var blcIconArrowLeft = "/static/media/blckarrow-Left.e2134741aa368d30.svg";
|
|
99
100
|
|
|
100
|
-
var iconArrowLeft = "chevron-left.svg";
|
|
101
|
+
var iconArrowLeft = "/static/media/chevron-left.04f0a7f16b745c1a.svg";
|
|
101
102
|
|
|
102
|
-
var iconGallery = "icon_gallery.svg";
|
|
103
|
+
var iconGallery = "/static/media/icon_gallery.269b721daf2ca907.svg";
|
|
103
104
|
|
|
104
|
-
var iconMap = "icon_map.svg";
|
|
105
|
+
var iconMap = "/static/media/icon_map.2318ec664c3e615e.svg";
|
|
105
106
|
|
|
106
|
-
var iconLayers = "layer_icon.svg";
|
|
107
|
+
var iconLayers = "/static/media/layer_icon.9b56c187199c44b5.svg";
|
|
107
108
|
|
|
108
109
|
var css_248z$2 = ".mainImage {\r\n\theight: 80%;\r\n\t\r\n}\r\n\r\n.secondList {\r\n\theight: 20%;\r\n\t\t\r\n\r\n}\r\n\r\n.listImageButton {\r\n\tbackground-color: black;\r\n\talign-items: center !important;\r\n\tjustify-content: center !important;\r\n}\r\n\r\n.listImgText {\r\n\theight: 30px;\r\n\tfont-size: 14px;\r\n\tline-height: 2.14;\r\n\tcolor: #fff;\r\n}\r\n\r\n.arroIconColour {\r\n\theight: 30px;\r\n\tfill: #fff !important;\r\n}\r\n\r\n.onImageArrow {\r\n\twidth: 50px;\r\n\theight: 50px;\r\n\tpadding: 23px 8px;\r\n\tbackground-color: rgba(255, 255, 255, 0.8);\r\n}\r\n\r\n.blackArrow {\r\n\twidth: 20px;\r\n\theight: 20px;\r\n}\r\n\r\n.imagesArray {\r\n\tbackground-size: 'cover' !important;\r\n}\r\n@media (min-width: 800px) {\r\n .Pimagelist {\r\n max-width: 1800px;\r\n \r\n \r\n }\r\n}\r\n\r\n\r\n\r\n\r\n";
|
|
109
110
|
styleInject(css_248z$2);
|
|
110
111
|
|
|
111
|
-
var css_248z$1 = ".popup-overlay {\
|
|
112
|
+
var css_248z$1 = ".popup-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.7);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 10000;\n}\n\n.popup-container {\n background-color: transparent;\n border-radius: 8px;\n max-width: 90%;\n max-height: 90%;\n display: flex;\n flex-direction: column;\n align-items: center;\n position: relative;\n}\n\n.popup-header {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n padding: 1rem;\n position: absolute;\n top: 0;\n}\n\n.popup-title {\n color: white;\n font-size: 24px;\n font-weight: bold;\n}\n\n.btn-close {\n position: absolute;\n right: 1rem;\n top: 1rem;\n background: none;\n border: none;\n color: white;\n font-size: 24px;\n cursor: pointer;\n}\n\n.popup-body {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 1rem;\n position: relative;\n flex: 1;\n}\n\n.main-image {\n max-width: 100%;\n max-height: 80vh;\n border-radius: 8px;\n}\n\n.btn-prev,\n.btn-next {\n background: none;\n border: none;\n color: white;\n font-size: 48px;\n cursor: pointer;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.btn-prev {\n left: 10px;\n}\n\n.btn-next {\n right: 10px;\n}\n\n.popup-thumbnails {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n padding: 1rem;\n}\n\n.thumbnail {\n width: 60px;\n height: 60px;\n object-fit: cover;\n border-radius: 8px;\n cursor: pointer;\n opacity: 0.6;\n}\n\n.thumbnail.active {\n border: 2px solid white;\n opacity: 1;\n}\n";
|
|
112
113
|
styleInject(css_248z$1);
|
|
113
114
|
|
|
114
115
|
function ImageListPopup(props) {
|
|
115
116
|
var _a = React.useState(true), showPopUp = _a[0], setShowPopUp = _a[1];
|
|
116
|
-
|
|
117
|
-
var
|
|
118
|
-
var _c = React.useState(0), currentImageIndex = _c[0], setCurrentImageIndex = _c[1];
|
|
119
|
-
// const [isImagePopupOpen, setIsImagePopupOpen] = useState(false);
|
|
120
|
-
React.useRef(null);
|
|
121
|
-
// const baseUrl = "https://api-dev.nestiq.de";
|
|
122
|
-
// const pictureUrls = props.property.pictures.map(
|
|
123
|
-
// (picture) => `${baseUrl}${picture.contentUrl}`
|
|
124
|
-
// );
|
|
125
|
-
props.pictureUrls.map(function (pic) {
|
|
126
|
-
return {
|
|
127
|
-
src: pic,
|
|
128
|
-
title: "Not Specified",
|
|
129
|
-
};
|
|
130
|
-
});
|
|
131
|
-
React.useEffect(function () {
|
|
132
|
-
if (props.pictureUrls.length > 0) {
|
|
133
|
-
setMainImage(props.pictureUrls[0]);
|
|
134
|
-
}
|
|
135
|
-
}, [props.pictureUrls]);
|
|
117
|
+
var _b = React.useState(0), currentImageIndex = _b[0], setCurrentImageIndex = _b[1];
|
|
118
|
+
var imageListRef = React.useRef(null);
|
|
136
119
|
var handleArrowClickInMainImage = function (direction) {
|
|
137
|
-
if (
|
|
120
|
+
if (props.pictureUrls.length === 0)
|
|
138
121
|
return;
|
|
139
122
|
var newIndex = currentImageIndex;
|
|
140
123
|
if (direction === "left") {
|
|
@@ -146,8 +129,7 @@ function ImageListPopup(props) {
|
|
|
146
129
|
newIndex = (currentImageIndex + 1) % props.pictureUrls.length;
|
|
147
130
|
}
|
|
148
131
|
setCurrentImageIndex(newIndex);
|
|
149
|
-
|
|
150
|
-
props.imageListRef.current.scrollTo({
|
|
132
|
+
imageListRef.current.scrollTo({
|
|
151
133
|
left: newIndex * 150,
|
|
152
134
|
behavior: "smooth",
|
|
153
135
|
});
|
|
@@ -157,15 +139,16 @@ function ImageListPopup(props) {
|
|
|
157
139
|
};
|
|
158
140
|
return (React.createElement("div", null, showPopUp && (React.createElement("div", { className: "popup-overlay" },
|
|
159
141
|
React.createElement("div", { className: " d-flex flex-column col-6 " },
|
|
142
|
+
React.createElement("span", { className: "txt-white" }, props.pictureUrls[currentImageIndex].title),
|
|
160
143
|
React.createElement("div", { className: "d-flex align-self-end me-0 ms-5" },
|
|
161
|
-
React.createElement("img", { src: iconClose, alt: "close", className: "closeIcon
|
|
144
|
+
React.createElement("img", { src: iconClose, alt: "close", className: "closeIcon", onClick: handleClose })),
|
|
162
145
|
React.createElement("div", { className: "d-flex justify-content-center" },
|
|
163
146
|
React.createElement("div", { className: "p-2 bd-highlight align-self-center align-items-center me-5" },
|
|
164
147
|
React.createElement("div", { className: "rounded-circle border onImageArrow start-0 d-flex ", role: "button", onClick: function () { return handleArrowClickInMainImage("left"); } },
|
|
165
148
|
React.createElement("img", { src: blcIconArrowLeft, className: "blackArrow align-self-center", alt: "Left Arrow" }))),
|
|
166
149
|
React.createElement("div", { className: "p-2 bd-highlight" },
|
|
167
150
|
React.createElement("div", { className: " rounded-5 mainImage ", style: {
|
|
168
|
-
backgroundImage: "url(".concat(props.pictureUrls[currentImageIndex], ")"),
|
|
151
|
+
backgroundImage: "url(".concat(props.pictureUrls[currentImageIndex].url, ")"),
|
|
169
152
|
height: "350px",
|
|
170
153
|
width: "600px",
|
|
171
154
|
backgroundSize: "cover",
|
|
@@ -179,35 +162,23 @@ function ImageListPopup(props) {
|
|
|
179
162
|
React.createElement("div", { className: "d-flex flex-row gap-4 w-100 secondList " },
|
|
180
163
|
React.createElement("div", { className: "col-lg-12 d-flex flex-row p-1 align-self-center mt-5" },
|
|
181
164
|
React.createElement("div", { className: "col-12 position-relative d-flex justify-content-center" },
|
|
182
|
-
React.createElement("div", { className: "col-lg-10 rounded-3 h-100 w-100 d-flex flex-row gap-2 overflow-auto ", ref:
|
|
183
|
-
setMainImage(imageUrl);
|
|
165
|
+
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 () {
|
|
184
166
|
setCurrentImageIndex(index);
|
|
185
|
-
|
|
167
|
+
imageListRef.current.scrollTo({
|
|
186
168
|
left: index * 150,
|
|
187
169
|
behavior: "smooth",
|
|
188
170
|
});
|
|
189
171
|
}, role: "button" },
|
|
190
|
-
React.createElement("img", { src:
|
|
172
|
+
React.createElement("img", { src: picture.url, alt: "Image ".concat(index + 1), className: "col-12 h-100 rounded-3 object-fit-cover" }))); }))))))))))));
|
|
191
173
|
}
|
|
192
174
|
|
|
193
175
|
function PropertyImageList(prop) {
|
|
194
|
-
var _a
|
|
176
|
+
var _a;
|
|
195
177
|
var _b = React.useState(0), currentImageIndex = _b[0], setCurrentImageIndex = _b[1];
|
|
196
178
|
var _c = React.useState(false), isImagePopupOpen = _c[0], setIsImagePopupOpen = _c[1];
|
|
197
179
|
var imageListRef = React.useRef(null);
|
|
198
|
-
var _d = React.useState(false); _d[0]; _d[1];
|
|
199
|
-
// const [pictureUrls, setPictureUrls] = useState([]);
|
|
200
|
-
// const baseUrl = "https://api-dev.nestiq.de";
|
|
201
|
-
// const pictureUrls = prop.property.pictures.map(
|
|
202
|
-
// (picture) => `${baseUrl}${picture.contentUrl}`
|
|
203
|
-
// );
|
|
204
|
-
React.useEffect(function () {
|
|
205
|
-
if (prop.pictureUrls.length > 0) {
|
|
206
|
-
setMainImage(prop.pictureUrls[0]);
|
|
207
|
-
}
|
|
208
|
-
}, [prop.pictureUrls]);
|
|
209
180
|
var handleArrowClickInMainImage = function (direction) {
|
|
210
|
-
if (
|
|
181
|
+
if (prop.pictureUrls.length === 0)
|
|
211
182
|
return;
|
|
212
183
|
var newIndex = currentImageIndex;
|
|
213
184
|
if (direction === "left") {
|
|
@@ -219,8 +190,7 @@ function PropertyImageList(prop) {
|
|
|
219
190
|
newIndex = (currentImageIndex + 1) % prop.pictureUrls.length;
|
|
220
191
|
}
|
|
221
192
|
setCurrentImageIndex(newIndex);
|
|
222
|
-
|
|
223
|
-
prop.imageListRef.current.scrollTo({
|
|
193
|
+
imageListRef.current.scrollTo({
|
|
224
194
|
left: newIndex * 150,
|
|
225
195
|
behavior: "smooth",
|
|
226
196
|
});
|
|
@@ -230,7 +200,7 @@ function PropertyImageList(prop) {
|
|
|
230
200
|
};
|
|
231
201
|
return (React.createElement("div", { className: "col-8 me-2 Pimagelist" },
|
|
232
202
|
React.createElement("div", { className: "col-12 rounded-5 mainImage d-flex position-relative align-items-center", style: {
|
|
233
|
-
backgroundImage: "url(".concat(prop.pictureUrls[currentImageIndex], ")"),
|
|
203
|
+
backgroundImage: "url(".concat((_a = prop.pictureUrls[currentImageIndex]) === null || _a === void 0 ? void 0 : _a.url, ")"),
|
|
234
204
|
backgroundSize: "cover",
|
|
235
205
|
backgroundPosition: "center",
|
|
236
206
|
} },
|
|
@@ -244,15 +214,14 @@ function PropertyImageList(prop) {
|
|
|
244
214
|
React.createElement("div", { className: "col-1 h-100 d-flex position-absolute start-0", onClick: function () { return handleArrowClickInMainImage("left"); }, role: "button" },
|
|
245
215
|
React.createElement("div", { className: "col-lg-12 h-100 d-flex flex-column listImageButton border-0 rounded-3" },
|
|
246
216
|
React.createElement("img", { src: iconArrowLeft, className: "arroIconColour", alt: "Left Arrow" }))),
|
|
247
|
-
React.createElement("div", { className: "col-lg-10 rounded-3 h-100 d-flex flex-row gap-2 overflow-auto ms-1", ref: imageListRef }, prop.
|
|
248
|
-
setMainImage(imageUrl);
|
|
217
|
+
React.createElement("div", { className: "col-lg-10 rounded-3 h-100 d-flex flex-row gap-2 overflow-auto ms-1", ref: imageListRef }, prop.pictureUrls.length > 0 && (React.createElement("div", { className: "col-lg-5 h-100 d-flex gap-2 flex-row rounded-3" }, prop.pictureUrls.map(function (picture, index) { return (React.createElement("div", { key: index, className: "col-lg-12 h-100 d-flex", onClick: function () {
|
|
249
218
|
setCurrentImageIndex(index);
|
|
250
|
-
|
|
219
|
+
imageListRef.current.scrollTo({
|
|
251
220
|
left: index * 150,
|
|
252
221
|
behavior: "smooth",
|
|
253
222
|
});
|
|
254
223
|
}, role: "button" },
|
|
255
|
-
React.createElement("img", { src:
|
|
224
|
+
React.createElement("img", { src: picture.url, alt: "Image ".concat(index + 1), className: "col-12 h-100 rounded-3 object-fit-cover" }))); })))),
|
|
256
225
|
React.createElement("div", { className: "col-1 h-100 d-flex position-absolute end-0 top-0", onClick: function () { return handleArrowClickInMainImage("right"); }, role: "button" },
|
|
257
226
|
React.createElement("div", { className: "col-lg-12 h-100 d-flex flex-column listImageButton border-0 rounded-3 ms-1" },
|
|
258
227
|
React.createElement("img", { src: iconArrowRight, className: "arroIconColour", alt: "Right Arrow" }))))),
|
|
@@ -273,17 +242,17 @@ function PropertyImageList(prop) {
|
|
|
273
242
|
React.createElement("div", { className: "border col-lg-12 h-100 d-flex flex-column listImageButton border-0 rounded-3" },
|
|
274
243
|
React.createElement("img", { src: iconMap, alt: "Map Icon" }),
|
|
275
244
|
React.createElement("span", { className: "listImgText" }, "Karte"))))),
|
|
276
|
-
isImagePopupOpen &&
|
|
245
|
+
isImagePopupOpen && React.createElement(ImageListPopup, { pictureUrls: prop.pictureUrls })));
|
|
277
246
|
}
|
|
278
247
|
|
|
279
|
-
var layerIcon = "LayersIcon.svg";
|
|
248
|
+
var layerIcon = "/static/media/LayersIcon.34c085c352a2c9c8.svg";
|
|
280
249
|
|
|
281
|
-
var locationIcon = "locationIcon.svg";
|
|
250
|
+
var locationIcon = "/static/media/locationIcon.0af399c78e0cdc20.svg";
|
|
282
251
|
|
|
283
252
|
var css_248z = ".padding-global {\r\n height: 737px !important;\r\n padding: 0 40px;\r\n}\r\n.header {\r\n font-size: 48px;\r\n font-weight: 600;\r\n color: #1b1b1b;\r\n}\r\n\r\n.firstLabel {\r\n width: 100px;\r\n height: 25px;\r\n gap: 6px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n border: solid 1px #031012 !important;\r\n background-color: #ffb525;\r\n}\r\n\r\n.secondLabel {\r\n width: 85px;\r\n height: 25px;\r\n padding: 0 7px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n border: solid 1px #000;\r\n background-color: #fff;\r\n}\r\n\r\n.thirdLabel {\r\n width: 90px;\r\n height: 25px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n border: solid 1px #000;\r\n background-color: #fff;\r\n}\r\n\r\n.fourthLabel {\r\n width: 100px;\r\n height: 25px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n border: solid 1px #000;\r\n background-color: #fff;\r\n}\r\n\r\n.layersVector {\r\n width: 15.1px;\r\n height: 16px;\r\n}\r\n\r\n.layersText {\r\n font-size: 14px;\r\n color: #1b1b1b;\r\n}\r\n\r\n.style-img {\r\n object-fit: cover;\r\n border-radius: 30px !important;\r\n}\r\n\r\n.Vector {\r\n width: 12px;\r\n height: 16.1px;\r\n flex-grow: 0;\r\n margin: 0.4px 6px 0.4px 0;\r\n}\r\n\r\n.customButton {\r\n width: 262px;\r\n height: 43px;\r\n color: #000;\r\n cursor: pointer;\r\n border-color: #ffb525;\r\n background-color: #ffb525;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n}\r\n.button_text {\r\n font-size: 16px;\r\n font-weight: 500;\r\n color: #1b1b1b;\r\n}\r\n\r\n.heartVector {\r\n width: 23px;\r\n height: 26.7px;\r\n cursor: pointer;\r\n}\r\n\r\n.heartVector.liked {\r\n fill: rgb(255, 255, 255) !important;\r\n}\r\n.locationText {\r\n font-size: 14px;\r\n color: white;\r\n text-align: center;\r\n}\r\n\r\n.arrowVector {\r\n width: 23px;\r\n height: 23px;\r\n flex-grow: 0;\r\n object-fit: contain;\r\n}\r\n\r\n.Price {\r\n font-size: 26px;\r\n font-weight: 500;\r\n font-stretch: normal;\r\n font-style: normal;\r\n line-height: normal;\r\n letter-spacing: normal;\r\n text-align: center;\r\n color: #fff;\r\n}\r\n\r\n.detail {\r\n font-size: 12px;\r\n text-align: center;\r\n color: #fff;\r\n}\r\n\r\n.class {\r\n background-color: #1b1b1b;\r\n}\r\n\r\n.header {\r\n height: 64px;\r\n justify-content: center;\r\n}\r\n\r\n.cardStyle {\r\n width: 405px;\r\n max-width: 2405px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 350px;\r\n border-radius: 30px !important;\r\n}\r\n\r\n.rightConer {\r\n width: 200px;\r\n}\r\n@media all and (min-width: 2560px) {\r\n .header {\r\n font-size: 38px;\r\n\r\n display: flex;\r\n }\r\n .cardStyle {\r\n gap: 0px;\r\n width: 350px;\r\n height: 300px;\r\n /* margin-left: 250px; */\r\n }\r\n}\r\n@media (max-width: 1399px) {\r\n .header {\r\n font-size: 38px;\r\n align-self: center;\r\n margin-left: 150px;\r\n }\r\n .cardStyle {\r\n gap: 0px;\r\n width: 350px;\r\n height: 300px;\r\n }\r\n}\r\n\r\n@media (max-width: 1199px) {\r\n .header {\r\n font-size: 38px;\r\n }\r\n .cardStyle {\r\n width: 300px;\r\n height: 250px;\r\n }\r\n}\r\n\r\n@media (max-width: 575px) {\r\n .detail {\r\n font-size: 11px;\r\n padding: 2px;\r\n }\r\n .Price {\r\n font-size: 19px;\r\n }\r\n .header {\r\n font-size: 28px;\r\n }\r\n .locationText {\r\n font-size: 12px;\r\n }\r\n .customButton {\r\n width: 200px !important;\r\n }\r\n .button_text {\r\n font-size: 13px;\r\n }\r\n}\r\n\r\n@media (max-width: 375px) {\r\n .labelTopClass {\r\n width: 105px !important;\r\n }\r\n .layersText {\r\n font-size: 9px;\r\n }\r\n .firstLabel {\r\n gap: 2px;\r\n }\r\n .layersVector {\r\n width: 9px;\r\n height: 10px;\r\n gap: 0px;\r\n }\r\n .cardStyle {\r\n width: 320px !important;\r\n height: 220px !important;\r\n }\r\n .header {\r\n font-size: 24px;\r\n }\r\n .detail {\r\n font-size: 10px;\r\n padding: 2px;\r\n }\r\n .Price {\r\n font-size: 18px;\r\n }\r\n .locationText {\r\n font-size: 10px;\r\n }\r\n .Vector {\r\n width: 8px;\r\n height: 16px;\r\n margin: 0px 2px 0.4px;\r\n }\r\n}\r\n\r\n@media (max-width: 280px) {\r\n .cardStyle {\r\n width: 260px !important;\r\n height: 160px !important;\r\n }\r\n .detail {\r\n margin-bottom: 5px;\r\n font-size: 0.6ch;\r\n }\r\n .Price {\r\n font-size: 9px;\r\n }\r\n .locationText {\r\n font-size: 6px;\r\n }\r\n .Vector {\r\n width: 7px;\r\n height: 10px;\r\n margin: 0px 2px 4px;\r\n }\r\n .heartVector {\r\n width: 15px;\r\n height: 20px;\r\n }\r\n}\r\n";
|
|
284
253
|
styleInject(css_248z);
|
|
285
254
|
|
|
286
|
-
var noImageIcon = "default-property.jpg";
|
|
255
|
+
var noImageIcon = "/static/media/default-property.9987f19670be82b6.jpg";
|
|
287
256
|
|
|
288
257
|
function PropertyCard(props) {
|
|
289
258
|
var _a, _b;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/assets/images/icon_close_2.png","../node_modules/style-inject/dist/style-inject.es.js","../src/assets/images/icon_share_1.svg","../src/assets/images/locationIconBlack.svg","../src/assets/Images/Icon_rightArrow.svg","../src/assets/Images/blackarrow-Right.svg","../src/assets/Images/blckarrow-Left.svg","../src/assets/Images/chevron-left.svg","../src/assets/Images/icon_gallery.svg","../src/assets/Images/icon_map.svg","../src/assets/Images/layer_icon.svg","../src/assets/Images/LayersIcon.svg","../src/assets/images/locationIcon.svg","../src/assets/Images/default-property.jpg"],"sourcesContent":["export default \"icon_close_2.png\"","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","export default \"icon_share_1.svg\"","export default \"locationIconBlack.svg\"","export default \"Icon_rightArrow.svg\"","export default \"blackarrow-Right.svg\"","export default \"blckarrow-Left.svg\"","export default \"chevron-left.svg\"","export default \"icon_gallery.svg\"","export default \"icon_map.svg\"","export default \"layer_icon.svg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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAf,qBAAe;;ACAf,wBAAe;;ACAf,uBAAe;;ACAf,oBAAe;;ACAf,kBAAe;;ACAf,cAAe;;ACAf,iBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAf,gBAAe;;ACAf,mBAAe;;;;;ACAf,kBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/components/Button/Button.tsx","../src/assets/images/icon_close_2.png","../node_modules/style-inject/dist/style-inject.es.js","../src/components/Popup/Popup.tsx","../src/assets/images/icon_share_1.svg","../src/assets/images/locationIconBlack.svg","../src/components/PropertyDetailsHeader/PropertyDetailsHeader.tsx","../src/assets/Images/Icon_rightArrow.svg","../src/assets/Images/blackarrow-Right.svg","../src/assets/Images/blckarrow-Left.svg","../src/assets/Images/chevron-left.svg","../src/assets/Images/icon_gallery.svg","../src/assets/Images/icon_map.svg","../src/assets/Images/layer_icon.svg","../src/components/ImageListPopup/ImageListPopup.tsx","../src/components/PropertyImageList/PropertyImageList.tsx","../src/assets/Images/LayersIcon.svg","../src/assets/images/locationIcon.svg","../src/assets/Images/default-property.jpg","../src/components/PropertyCard/PropertyCard.tsx"],"sourcesContent":["import React from 'react';\r\n\r\ninterface ButtonProps {\r\n label: string;\r\n}\r\n\r\nconst Button: React.FC<ButtonProps> = ({ label }) => {\r\n return <button>{label}</button>;\r\n};\r\n\r\nexport default Button;\r\n","export default \"/static/media/icon_close_2.e41bb9a4db48e048.png\"","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React from \"react\";\nimport closeIcon from \"../../assets/images/icon_close_2.png\";\nimport \"./Popup.css\";\n\ninterface PopupProps {\n children: React.ReactNode;\n onCloseClick: () => void;\n}\n\nconst Popup: React.FC<PopupProps> = ({ onCloseClick, children }) => {\n return (\n <div className=\"popup-overlay\">\n <div className=\"shareSection col-12 d-flex position-relative flex-column mx-auto justify-content-center col-5 col-lg-6 d-flex gap-4\">\n <div className=\"end-0 top-0 position-absolute \">\n <img\n src={closeIcon}\n alt=\"close\"\n className=\"closeIcon me-2\"\n onClick={onCloseClick}\n />\n </div>\n {children}\n </div>\n </div>\n );\n};\n\nexport default Popup;\n","export default \"/static/media/icon_share_1.b9ec05630dc1087e.svg\"","export default \"/static/media/locationIconBlack.eb8e9e9226b43573.svg\"","import React, { useState } from \"react\";\n// import { FormattedMessage } from \"react-intl\";\nimport ShareIcon from \"../../assets/images/icon_share_1.svg\";\nimport locationIcon from \"../../assets/images/locationIconBlack.svg\";\nimport \"./PropertyDetailsHeader.css\";\n\nexport interface PopupProps {\n property: {\n city: string;\n constructedArea: string;\n rooms: string;\n propertyArea: string;\n askingPrice: string;\n };\n title: string;\n}\n\nexport default function PropertyDetailsHeader(props: PopupProps) {\n const [showPopUp, setShowPopUp] = useState(false);\n\n const handlePopUp = () => {\n setShowPopUp(!showPopUp);\n };\n\n return (\n <div className=\"Pheader compact d-flex col-12 col-lg-12 position-relative mt-5 \">\n <div className=\"header_Text d-flex col-lg-7 col-md-9 mt-4 ms-4 \">\n <strong>{props.title ?? \"-\"}</strong>\n </div>\n <div className=\"header_Text text-truncate col-lg-6 col-md-7 d-flex flex-row position-absolute ms-4\">\n <img src={locationIcon} className=\"vector me-2\" alt=\"location Icon\" />\n\n <div className=\"propText text-truncate col-lg-6 col-md-6 d-flex align-items-center\">\n {props.property.city}\n </div>\n </div>\n <div className=\"d-flex col-lg-5 col-md-6 col-sm-5 justify-content-end position-absolute end-0 mt-4\">\n {/* <img src={Hearticon} alt=\"Location Icon\" className=\"v_share me-3\" /> */}\n <img\n src={ShareIcon}\n alt=\"share icon\"\n className=\"v_share me-3\"\n onClick={handlePopUp}\n />\n </div>\n <div className=\"fetch_section d-flex align-items-center flex-row col-lg-5 col-md-6 col-sm-5 justify-content-end position-absolute end-0\">\n {props && (\n <div className=\" propText col-lg-3 col-md-3 h-100 d-flex align-items-center justify-content-center \">\n {props.property.askingPrice} <br />\n Kaufpreis\n </div>\n )}\n {props && (\n <div className=\"propText col-lg-3 col-md-3 d-flex h-100 align-items-center justify-content-center\">\n {props.property.constructedArea} m² <br />\n Wohnfläche\n {/* <FormattedMessage id=\"LIVING_SPACE\" /> */}\n </div>\n )}\n {props && (\n <div className=\"propText col-lg-3 col-md-3 d-flex h-100 align-items-center justify-content-center\">\n {props.property.rooms} <br />\n Zimmer\n {/* <FormattedMessage id=\"ROOMS\" /> */}\n </div>\n )}\n {props && (\n <div className=\"propText col-lg-3 col-md-3 d-flex h-100 align-items-center justify-content-center\">\n {props.property.propertyArea} m²\n <br />\n Grundstück\n {/* <FormattedMessage id=\"Grundstück\" /> */}\n </div>\n )}\n </div>\n {/* {showPopUp && (\n <PopUp\n \n />\n )} */}\n </div>\n );\n}\n","export default \"/static/media/Icon_rightArrow.bced4a705c07148d.svg\"","export default \"/static/media/blackarrow-Right.e585ae62dd55abae.svg\"","export default \"/static/media/blckarrow-Left.e2134741aa368d30.svg\"","export default \"/static/media/chevron-left.04f0a7f16b745c1a.svg\"","export default \"/static/media/icon_gallery.269b721daf2ca907.svg\"","export default \"/static/media/icon_map.2318ec664c3e615e.svg\"","export default \"/static/media/layer_icon.9b56c187199c44b5.svg\"","import \"./ImageListPopup.css\";\nimport React, { useRef, useState } from \"react\";\nimport blcIconArrowRight from \"../../assets/Images/blackarrow-Right.svg\";\nimport blcIconArrowLeft from \"../../assets/Images/blckarrow-Left.svg\";\nimport iconClose from \"../../assets/images/icon_close_2.png\";\n\ninterface PopupProps {\n pictureUrls: { title: string; url: string }[];\n}\n\nexport default function ImageListPopup(props: PopupProps) {\n const [showPopUp, setShowPopUp] = useState(true);\n const [currentImageIndex, setCurrentImageIndex] = useState(0);\n const imageListRef = useRef<HTMLDivElement | null>(null);\n\n const handleArrowClickInMainImage = (direction: any) => {\n if (props.pictureUrls.length === 0) return;\n\n let newIndex = currentImageIndex;\n if (direction === \"left\") {\n newIndex =\n (currentImageIndex - 1 + props.pictureUrls.length) %\n props.pictureUrls.length;\n } else if (direction === \"right\") {\n newIndex = (currentImageIndex + 1) % props.pictureUrls.length;\n }\n\n setCurrentImageIndex(newIndex);\n\n imageListRef.current!.scrollTo({\n left: newIndex * 150,\n behavior: \"smooth\",\n });\n };\n\n const handleClose = () => {\n setShowPopUp(false);\n };\n\n return (\n <div>\n {showPopUp && (\n <div className=\"popup-overlay\">\n <div className=\" d-flex flex-column col-6 \">\n <span className=\"txt-white\">\n {props.pictureUrls[currentImageIndex].title}\n </span>\n <div className=\"d-flex align-self-end me-0 ms-5\">\n <img\n src={iconClose}\n alt=\"close\"\n className=\"closeIcon\"\n onClick={handleClose}\n />\n </div>\n\n <div className=\"d-flex justify-content-center\">\n <div className=\"p-2 bd-highlight align-self-center align-items-center me-5\">\n <div\n className=\"rounded-circle border onImageArrow start-0 d-flex \"\n role=\"button\"\n onClick={() => handleArrowClickInMainImage(\"left\")}\n >\n <img\n src={blcIconArrowLeft}\n className=\"blackArrow align-self-center\"\n alt=\"Left Arrow\"\n />\n </div>\n </div>\n <div className=\"p-2 bd-highlight\">\n <div\n className=\" rounded-5 mainImage \"\n style={{\n backgroundImage: `url(${props.pictureUrls[currentImageIndex].url})`,\n height: \"350px\",\n width: \"600px\",\n backgroundSize: \"cover\",\n backgroundPosition: \"center\",\n }}\n ></div>\n </div>\n <div className=\"p-2 bd-highlight align-self-center ms-5\">\n {\" \"}\n <div\n role=\"button\"\n className=\"rounded-circle border onImageArrow d-flex justify-content-center\"\n onClick={() => handleArrowClickInMainImage(\"right\")}\n >\n <img\n src={blcIconArrowRight}\n className=\"blackArrow align-self-center\"\n alt=\"Right Arrow\"\n />\n </div>\n </div>\n </div>\n <div className=\"d-flex flex-row\">\n {/* Arrows on the main image */}\n </div>\n <div className=\"d-flex flex-row gap-4 w-100 secondList \">\n <div className=\"col-lg-12 d-flex flex-row p-1 align-self-center mt-5\">\n <div className=\"col-12 position-relative d-flex justify-content-center\">\n <div\n className=\"col-lg-10 rounded-3 h-100 w-100 d-flex flex-row gap-2 overflow-auto \"\n ref={imageListRef}\n >\n {props.pictureUrls.length > 0 && (\n <div className=\"col-lg-5 h-100 w-25 d-flex gap-4 flex-row rounded-3\">\n {props.pictureUrls.map((picture, index) => (\n <div\n key={index}\n className=\"col-lg-12 h-100 d-flex\"\n onClick={() => {\n setCurrentImageIndex(index);\n imageListRef.current!.scrollTo({\n left: index * 150,\n behavior: \"smooth\",\n });\n }}\n role=\"button\"\n >\n <img\n src={picture.url}\n alt={`Image ${index + 1}`}\n className=\"col-12 h-100 rounded-3 object-fit-cover\"\n />\n </div>\n ))}\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n )}\n </div>\n );\n}\n","import React, { useRef, useState } from \"react\";\r\nimport iconArrowRight from \"../../assets/Images/Icon_rightArrow.svg\";\r\nimport blcIconArrowRight from \"../../assets/Images/blackarrow-Right.svg\";\r\nimport blcIconArrowLeft from \"../../assets/Images/blckarrow-Left.svg\";\r\nimport iconArrowLeft from \"../../assets/Images/chevron-left.svg\";\r\nimport iconGallery from \"../../assets/Images/icon_gallery.svg\";\r\nimport iconMap from \"../../assets/Images/icon_map.svg\";\r\nimport iconLayers from \"../../assets/Images/layer_icon.svg\";\r\nimport \"./PropertyImageList.css\";\r\nimport ImageListPopup from \"../ImageListPopup/ImageListPopup\";\r\nimport PopupProps from \"../ImageListPopup/ImageListPopup\";\r\n\r\ninterface PopupProps {\r\n pictureUrls: { title: string; url: string }[];\r\n}\r\nexport default function PropertyImageList(prop: PopupProps) {\r\n const [currentImageIndex, setCurrentImageIndex] = useState(0);\r\n const [isImagePopupOpen, setIsImagePopupOpen] = useState(false);\r\n const imageListRef = useRef<HTMLDivElement | null>(null);\r\n\r\n const handleArrowClickInMainImage = (direction: any) => {\r\n if (prop.pictureUrls.length === 0) return;\r\n\r\n let newIndex = currentImageIndex;\r\n if (direction === \"left\") {\r\n newIndex =\r\n (currentImageIndex - 1 + prop.pictureUrls.length) %\r\n prop.pictureUrls.length;\r\n } else if (direction === \"right\") {\r\n newIndex = (currentImageIndex + 1) % prop.pictureUrls.length;\r\n }\r\n\r\n setCurrentImageIndex(newIndex);\r\n\r\n imageListRef.current!.scrollTo({\r\n left: newIndex * 150,\r\n behavior: \"smooth\",\r\n });\r\n };\r\n\r\n const toggleAllPhotos = () => {\r\n setIsImagePopupOpen(!isImagePopupOpen);\r\n };\r\n\r\n return (\r\n <div className=\"col-8 me-2 Pimagelist\">\r\n <div\r\n className=\"col-12 rounded-5 mainImage d-flex position-relative align-items-center\"\r\n style={{\r\n backgroundImage: `url(${prop.pictureUrls[currentImageIndex]?.url})`,\r\n backgroundSize: \"cover\",\r\n backgroundPosition: \"center\",\r\n }}\r\n >\r\n {/* Arrows on the main image */}\r\n <div\r\n className=\"rounded-circle border onImageArrow d-flex position-absolute start-0 ms-2 align-items-center justify-content-center\"\r\n role=\"button\"\r\n onClick={() => handleArrowClickInMainImage(\"left\")}\r\n >\r\n <img src={blcIconArrowLeft} className=\"blackArrow\" alt=\"Left Arrow\" />\r\n </div>\r\n <div\r\n role=\"button\"\r\n className=\"rounded-circle border onImageArrow d-flex position-absolute end-0 me-2 align-items-center justify-content-center\"\r\n onClick={() => handleArrowClickInMainImage(\"right\")}\r\n >\r\n <img\r\n src={blcIconArrowRight}\r\n className=\"blackArrow\"\r\n alt=\"Right Arrow\"\r\n />\r\n </div>\r\n </div>\r\n\r\n {/* Image Thumbnails */}\r\n <div className=\"d-flex flex-row gap-1 col-12 secondList\">\r\n <div className=\"col-lg-6 d-flex flex-row p-1\">\r\n <div className=\"col-12 position-relative d-flex justify-content-center\">\r\n <div\r\n className=\"col-1 h-100 d-flex position-absolute start-0\"\r\n onClick={() => handleArrowClickInMainImage(\"left\")}\r\n role=\"button\"\r\n >\r\n <div className=\"col-lg-12 h-100 d-flex flex-column listImageButton border-0 rounded-3\">\r\n <img\r\n src={iconArrowLeft}\r\n className=\"arroIconColour\"\r\n alt=\"Left Arrow\"\r\n />\r\n </div>\r\n </div>\r\n <div\r\n className=\"col-lg-10 rounded-3 h-100 d-flex flex-row gap-2 overflow-auto ms-1\"\r\n ref={imageListRef}\r\n >\r\n {prop.pictureUrls.length > 0 && (\r\n <div className=\"col-lg-5 h-100 d-flex gap-2 flex-row rounded-3\">\r\n {prop.pictureUrls.map((picture, index) => (\r\n <div\r\n key={index}\r\n className=\"col-lg-12 h-100 d-flex\"\r\n onClick={() => {\r\n setCurrentImageIndex(index);\r\n imageListRef.current!.scrollTo({\r\n left: index * 150,\r\n behavior: \"smooth\",\r\n });\r\n }}\r\n role=\"button\"\r\n >\r\n <img\r\n src={picture.url}\r\n alt={`Image ${index + 1}`}\r\n className=\"col-12 h-100 rounded-3 object-fit-cover\"\r\n />\r\n </div>\r\n ))}\r\n </div>\r\n )}\r\n </div>\r\n <div\r\n className=\"col-1 h-100 d-flex position-absolute end-0 top-0\"\r\n onClick={() => handleArrowClickInMainImage(\"right\")}\r\n role=\"button\"\r\n >\r\n <div className=\"col-lg-12 h-100 d-flex flex-column listImageButton border-0 rounded-3 ms-1\">\r\n <img\r\n src={iconArrowRight}\r\n className=\"arroIconColour\"\r\n alt=\"Right Arrow\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n {/* Buttons for \"Alle Fotos\", \"Grundriss\", \"Karte\" */}\r\n <div className=\"col-6 d-flex flex-row\">\r\n <div className=\"col-lg-4 p-1\" role=\"button\" onClick={toggleAllPhotos}>\r\n <div className=\"border col-lg-12 h-100 d-flex flex-column listImageButton border-0 rounded-3\">\r\n <img src={iconGallery} alt=\"Gallery Icon\" />\r\n <span className=\"listImgText\">Alle Fotos</span>\r\n </div>\r\n </div>\r\n <div className=\"col-lg-4 p-1\" role=\"button\">\r\n <div className=\"border col-lg-12 h-100 d-flex flex-column listImageButton border-0 rounded-3\">\r\n <img src={iconLayers} alt=\"Layers Icon\" />\r\n <span className=\"listImgText\">Grundriss</span>\r\n </div>\r\n </div>\r\n <div\r\n className=\"col-lg-4 p-1\"\r\n role=\"button\"\r\n onClick={() =>\r\n window.scrollTo({\r\n top: document.documentElement.scrollHeight,\r\n })\r\n }\r\n >\r\n <div className=\"border col-lg-12 h-100 d-flex flex-column listImageButton border-0 rounded-3\">\r\n <img src={iconMap} alt=\"Map Icon\" />\r\n <span className=\"listImgText\">Karte</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n {/* Popup for all photos */}\r\n {isImagePopupOpen && <ImageListPopup pictureUrls={prop.pictureUrls} />}\r\n </div>\r\n );\r\n}\r\n","export default \"/static/media/LayersIcon.34c085c352a2c9c8.svg\"","export default \"/static/media/locationIcon.0af399c78e0cdc20.svg\"","export default \"/static/media/default-property.9987f19670be82b6.jpg\"","import React, { useState } from \"react\";\r\n// import { FormattedMessage } from \"react-intl\";\r\nimport layerIcon from \"../../assets/Images/LayersIcon.svg\";\r\nimport heart from \"../../assets/Images/heart.svg\";\r\nimport locationIcon from \"../../assets/images/locationIcon.svg\";\r\nimport \"../PropertyCard/PropertyCard.css\";\r\nimport noImageIcon from \"../../assets/Images/default-property.jpg\";\r\n// import { formatPrice } from \"../../functions/util\";\r\n\r\ninterface PopupProps {\r\n property: {\r\n city: string;\r\n historicalProtection: boolean;\r\n basement: boolean;\r\n balcony: boolean;\r\n terrace: boolean;\r\n guestBathroom: boolean;\r\n bathrooms: string;\r\n usableArea: string;\r\n id: string;\r\n rooms: string;\r\n askingPrice: string;\r\n };\r\n onClick: any;\r\n pictureUrl: any[];\r\n}\r\n\r\nexport default function PropertyCard(props: PopupProps) {\r\n const [liked, setLiked] = useState(false);\r\n\r\n const handleLike = () => {\r\n setLiked(!liked);\r\n };\r\n\r\n return (\r\n <div\r\n key={props.property.id}\r\n className=\"card-body me-4 mb-4 position-relative cardStyle\"\r\n style={{\r\n backgroundImage: `url(${props.pictureUrl}) ?? ${noImageIcon}`,\r\n backgroundSize: \"cover\",\r\n backgroundPosition: \"center\",\r\n }}\r\n onClick={props.onClick}\r\n role=\"button\"\r\n >\r\n <div className=\"labelTopClass position-absolute top-0 start-0 col-sm-5 col-lg-8\">\r\n <div className=\"d-flex align-items-center ms-2 mb-1 mt-2 gap-2\">\r\n <label className=\"firstLabel d-flex flex-row justify-content-center align-items-center\">\r\n <img src={layerIcon} alt=\"Location Icon\" className=\"layersVector\" />\r\n <span className=\"layersText\">{\"Grundriss\"}</span>\r\n </label>\r\n {props.property.historicalProtection && (\r\n <label className=\"thirdLabel d-flex flex-row justify-content-center align-items-center\">\r\n <span className=\"layersText\">{\"Denkmalschutz\"}</span>\r\n </label>\r\n )}\r\n\r\n {props.property.basement && (\r\n <label className=\"secondLabel d-flex flex-row justify-content-center align-items-center\">\r\n <span className=\"layersText \">{\"Keller\"}</span>\r\n </label>\r\n )}\r\n {props.property.balcony && (\r\n <label className=\"secondLabel d-flex flex-row justify-content-center align-items-center\">\r\n <span className=\"layersText \">{\"Balkon\"}</span>\r\n </label>\r\n )}\r\n </div>\r\n <div className=\"d-flex align-items-center ms-2 start-0 gap-2\">\r\n {props.property.terrace && (\r\n <label className=\"thirdLabel d-flex flex-row justify-content-center align-items-center \">\r\n <span className=\"layersText\">{\"Terrace\"}</span>\r\n </label>\r\n )}\r\n\r\n {props.property.guestBathroom && (\r\n <label className=\"fourthLabel d-flex flex-row justify-content-center align-items-center \">\r\n <span className=\"layersText\">{\"Gäste-WC\"}</span>\r\n </label>\r\n )}\r\n </div>\r\n </div>\r\n <div className=\"d-flex align-items-center position-absolute top-0 end-0 p-3\">\r\n {/*<img*/}\r\n {/* src={heart}*/}\r\n {/* alt=\" Heart Icon\"*/}\r\n {/* className={`heartVector ${liked ? \"liked\" : \"\"}`}*/}\r\n {/* onClick={handleLike}*/}\r\n {/*/>*/}\r\n </div>\r\n <div className=\"d-flex align-items-center mb-3 position-absolute bottom-0 start-0 p-2\">\r\n <span className=\"Price col-lg-12 col-md-12 col-sm-12 text-truncate\">\r\n {props.property?.askingPrice ?? 0} €\r\n </span>\r\n </div>\r\n <div className=\"d-flex align-items-center position-absolute bottom-0 start-0 p-2\">\r\n <img src={locationIcon} alt=\"Location Icon\" className=\"Vector\" />\r\n <span className=\"locationText \">{props.property.city || \"N/A\"}</span>\r\n </div>\r\n <div className=\"d-flex col-lg-6 col-md-6 col-sm-5 me-lg-0 me-md-0 me-sm-3 justify-content-center mb-2 position-absolute bottom-0 end-0\">\r\n <span className=\"detail col-lg-4 col-md-4 col-sm-6 text-truncate border-end \">\r\n {+props.property.rooms}\r\n <br />\r\n {/* <FormattedMessage id=\"ROOMS\" /> */}\r\n <span>Zimmer</span>\r\n </span>\r\n <span className=\"detail col-lg-3 col-md-3 col-sm-4 text-truncate \">\r\n {+props.property.bathrooms}\r\n <br />\r\n {/* <FormattedMessage\r\n id=\"BATHROOM\"\r\n values={{ itemCount: +props.property.bathrooms }}\r\n /> */}\r\n {+props.property.bathrooms}\r\n <br></br>\r\n <span>Bäd</span>\r\n </span>\r\n <span className=\"detail col-lg-5 col-md-5 col-sm-7 text-truncate border-start me-3\">\r\n {props.property.usableArea} m²\r\n <br />\r\n {/* <FormattedMessage id=\"LIVING_SPACE\" /> */}\r\n <span>Wohnfläche</span>\r\n </span>\r\n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AA,SAAS,EAAC,6DAA6D,EAAA;AAC1E,gBAAA,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK;gBACtB,KAAM,CAAA,aAAA,CAAA,IAAA,EAAA,IAAA,CAAA;AAEN,gBAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA,EAAA,QAAA,CAAmB,CACd;YACP,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAC,kDAAkD,EAAA;AAC/D,gBAAA,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS;gBAC1B,KAAM,CAAA,aAAA,CAAA,IAAA,EAAA,IAAA,CAAA;AAKL,gBAAA,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS;gBAC1B,KAAS,CAAA,aAAA,CAAA,IAAA,EAAA,IAAA,CAAA;AACT,gBAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA,EAAA,UAAA,CAAgB,CACX;YACP,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAC,mEAAmE,EAAA;gBAChF,KAAK,CAAC,QAAQ,CAAC,UAAU;;gBAC1B,KAAM,CAAA,aAAA,CAAA,IAAA,EAAA,IAAA,CAAA;AAEN,gBAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA,EAAA,iBAAA,CAAuB,CAClB,CACH,CACF,EACN;AACJ;;;;;;;;","x_google_ignoreList":[2]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nestiq-component-library",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,10 +12,6 @@
|
|
|
12
12
|
"keywords": [],
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"react": "^18.3.1",
|
|
17
|
-
"react-dom": "^18.3.1"
|
|
18
|
-
},
|
|
19
15
|
"devDependencies": {
|
|
20
16
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
21
17
|
"@rollup/plugin-image": "^3.0.3",
|
|
@@ -30,7 +26,7 @@
|
|
|
30
26
|
"typescript": "^5.4.5"
|
|
31
27
|
},
|
|
32
28
|
"peerDependencies": {
|
|
33
|
-
"react": "
|
|
34
|
-
"react-dom": "
|
|
29
|
+
"react": "18.2.0",
|
|
30
|
+
"react-dom": "18.2.0"
|
|
35
31
|
}
|
|
36
32
|
}
|
package/rollup.config.mjs
CHANGED
|
@@ -1,40 +1,35 @@
|
|
|
1
|
-
import typescript from "rollup-plugin-typescript2";
|
|
2
|
-
import url from "@rollup/plugin-url";
|
|
3
|
-
import postcss from "rollup-plugin-postcss";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
],
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
{ src: 'src/assets/images/*', dest: 'dist/assets/images' }
|
|
37
|
-
]
|
|
38
|
-
})
|
|
39
|
-
],
|
|
40
|
-
};
|
|
1
|
+
import typescript from "rollup-plugin-typescript2";
|
|
2
|
+
import url from "@rollup/plugin-url";
|
|
3
|
+
import postcss from "rollup-plugin-postcss";
|
|
4
|
+
import pkg from "./package.json" assert { type: "json" };
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
input: "src/index.tsx",
|
|
8
|
+
output: [
|
|
9
|
+
{
|
|
10
|
+
file: pkg.main,
|
|
11
|
+
format: "cjs",
|
|
12
|
+
sourcemap: true,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
file: pkg.module,
|
|
16
|
+
format: "es",
|
|
17
|
+
sourcemap: true,
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
external: ["react", "react-dom"],
|
|
21
|
+
plugins: [
|
|
22
|
+
typescript(),
|
|
23
|
+
postcss({
|
|
24
|
+
extensions: [".css"],
|
|
25
|
+
}),
|
|
26
|
+
url({
|
|
27
|
+
include: ['**/*.svg', '**/*.png', '**/*.jpg', '**/*.jpeg', '**/*.gif'],
|
|
28
|
+
limit: 0,
|
|
29
|
+
emitFiles: true,
|
|
30
|
+
fileName: '[name].[hash][extname]',
|
|
31
|
+
destDir: 'dist/assets/images',
|
|
32
|
+
publicPath: `/static/media/`
|
|
33
|
+
})
|
|
34
|
+
],
|
|
35
|
+
};
|