nestiq-component-library 1.0.16 → 1.0.19
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/PropertyCard/PropertyCard.d.ts +24 -0
- package/dist/components/PropertyDetailsHeader/PropertyDetailsHeader.d.ts +1 -2
- package/dist/components/PropertyImageList/PropertyImageList.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +143 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +143 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ImageListPopup/ImageListPopup.tsx +2 -2
- package/src/components/PropertyCard/PropertyCard.css +268 -0
- package/src/components/PropertyCard/PropertyCard.tsx +141 -0
- package/src/components/PropertyCard/PropertyDaet.json +1210 -0
- package/src/components/PropertyDetailsHeader/PropertyDetailsHeader.tsx +6 -2
- package/src/components/PropertyImageList/PropertyImageList.tsx +8 -2
- package/src/index.tsx +2 -0
|
@@ -5,7 +5,7 @@ import locationIcon from "../../assets/images/locationIconBlack.svg";
|
|
|
5
5
|
import PopUp from "../ImageListPopup/ImageListPopup";
|
|
6
6
|
import "./PropertyDetailsHeader.css";
|
|
7
7
|
|
|
8
|
-
interface PopupProps {
|
|
8
|
+
export interface PopupProps {
|
|
9
9
|
property: {
|
|
10
10
|
city: string;
|
|
11
11
|
constructedArea: string;
|
|
@@ -72,7 +72,11 @@ export default function PropertyDetailsHeader(props: PopupProps) {
|
|
|
72
72
|
</div>
|
|
73
73
|
)}
|
|
74
74
|
</div>
|
|
75
|
-
{/* {showPopUp &&
|
|
75
|
+
{/* {showPopUp && (
|
|
76
|
+
<PopUp
|
|
77
|
+
|
|
78
|
+
/>
|
|
79
|
+
)} */}
|
|
76
80
|
</div>
|
|
77
81
|
);
|
|
78
82
|
}
|
|
@@ -9,6 +9,7 @@ import iconMap from "../../assets/Images/icon_map.svg";
|
|
|
9
9
|
import iconLayers from "../../assets/Images/layer_icon.svg";
|
|
10
10
|
import "./PropertyImageList.css";
|
|
11
11
|
import ImageListPopup from "../ImageListPopup/ImageListPopup";
|
|
12
|
+
import PopupProps from "../ImageListPopup/ImageListPopup";
|
|
12
13
|
|
|
13
14
|
interface PopupProps {
|
|
14
15
|
property: {
|
|
@@ -194,10 +195,15 @@ export default function PropertyImageList(prop: PopupProps) {
|
|
|
194
195
|
</div>
|
|
195
196
|
|
|
196
197
|
{/* Popup for all photos */}
|
|
197
|
-
{
|
|
198
|
+
{isImagePopupOpen && (
|
|
198
199
|
<ImageListPopup
|
|
200
|
+
currentImageIndex={currentImageIndex}
|
|
201
|
+
handleArrowClickInMainImage={handleArrowClickInMainImage}
|
|
202
|
+
imageListRef={imageListRef}
|
|
203
|
+
pictureUrls={prop.pictureUrls}
|
|
204
|
+
property={prop.property}
|
|
199
205
|
/>
|
|
200
|
-
)}
|
|
206
|
+
)}
|
|
201
207
|
</div>
|
|
202
208
|
);
|
|
203
209
|
}
|
package/src/index.tsx
CHANGED
|
@@ -3,3 +3,5 @@ export { default as Popup } from "./components/Popup/Popup";
|
|
|
3
3
|
// export { default as ImageListPopup } from "./components/ImageListPopup/ImageListPopup";
|
|
4
4
|
export { default as PropertyDetailsHeader } from "./components/PropertyDetailsHeader/PropertyDetailsHeader";
|
|
5
5
|
export { default as PropertyImageList } from "./components/PropertyImageList//PropertyImageList";
|
|
6
|
+
export { default as PropertyCard } from "./components/PropertyCard//PropertyCard";
|
|
7
|
+
|