nestiq-component-library 1.1.58 → 1.1.60

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 (49) hide show
  1. package/dist/assets/images/Icon_rightArrow.svg +3 -0
  2. package/dist/assets/images/LayersIcon.svg +5 -0
  3. package/dist/assets/images/blackarrow-Right.svg +3 -0
  4. package/dist/assets/images/blckarrow-Left.svg +3 -0
  5. package/dist/assets/images/{card-arrow-left.55343410142dad3f.svg → card-arrow-left.28090aba4b4f2006.svg} +4 -4
  6. package/dist/assets/images/{card-arrow-right.60b3bf0e34c1800d.svg → card-arrow-right.c60af4cbbd49f3aa.svg} +4 -4
  7. package/dist/assets/images/chevron-left.svg +3 -0
  8. package/dist/assets/images/default-property.jpg +0 -0
  9. package/dist/assets/images/heartIcon.svg +3 -0
  10. package/dist/assets/images/icon-close-white.webp +0 -0
  11. package/dist/assets/images/icon_checkmark.9b48c4a4bc651b08.svg +10 -0
  12. package/dist/assets/images/icon_close 2.e41bb9a4db48e048.png +0 -0
  13. package/dist/assets/images/icon_close_2.png +0 -0
  14. package/dist/assets/images/icon_gallery.svg +4 -0
  15. package/dist/assets/images/icon_map.svg +10 -0
  16. package/dist/assets/images/icon_share_1.svg +3 -0
  17. package/dist/assets/images/layer_icon.svg +5 -0
  18. package/dist/assets/images/locationIcon.0af399c78e0cdc20.svg +4 -0
  19. package/dist/assets/images/locationIcon.svg +4 -0
  20. package/dist/assets/images/locationIconBlack.svg +4 -0
  21. package/dist/assets/images/{more.ce14789c8d37e327.svg → more.1e158adc48fbb406.svg} +12 -12
  22. package/dist/assets/images/no-image-icon.png +0 -0
  23. package/dist/assets/images/warning.6f99cb4c6a048b47.svg +11 -0
  24. package/dist/components/Button/Button.js +6 -0
  25. package/dist/components/ImageListPopup/ImageListPopup.js +26 -0
  26. package/dist/components/NewPropertyCard/NewPropertyCard.d.ts +1 -0
  27. package/dist/components/Popup/Popup.js +12 -0
  28. package/dist/components/SharePopup/PopUp.d.ts +7 -0
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.es.js +131 -101
  31. package/dist/index.es.js.map +1 -1
  32. package/dist/index.js +131 -100
  33. package/dist/index.js.map +1 -1
  34. package/package.json +1 -1
  35. package/rollup.config.mjs +36 -36
  36. package/src/assets/images/card-arrow-left.svg +4 -4
  37. package/src/assets/images/card-arrow-right.svg +4 -4
  38. package/src/assets/images/more.svg +12 -12
  39. package/src/components/FloorPlanPopup/FloorPlanPopup.css +3 -3
  40. package/src/components/FloorPlanPopup/FloorPlanPopup.tsx +83 -83
  41. package/src/components/ImageListPopup/ImageListPopup.css +83 -83
  42. package/src/components/ImageListPopup/ImageListPopup.tsx +141 -141
  43. package/src/components/MessagePopup/MessagePopUp.tsx +156 -156
  44. package/src/components/NewPropertyCard/NewPropertyCard.tsx +285 -283
  45. package/src/components/Popup/Popup.tsx +29 -29
  46. package/src/components/ToastWrapper/ToastWrapper.tsx +25 -25
  47. package/src/index.tsx +1 -1
  48. package/src/models/message.model.ts +7 -7
  49. package/nestiq-component-library-1.1.58.tgz +0 -0
@@ -1,156 +1,156 @@
1
- import React, { useEffect, useState } from "react";
2
- import x from "../../assets/Images/icon_close_2.png";
3
- import mail_icon from "../../assets/Images/mail-icon.png";
4
- import "../MessagePopup/MessagePopUp.css";
5
- import { MessageModel } from "../../models/message.model";
6
-
7
- interface PopupProps {
8
- sellerFirstName: string;
9
- sellerLastName: string;
10
- onCloseClick: () => void;
11
- themesList: any;
12
- onSubmit: (formValues: MessageModel) => void;
13
- }
14
-
15
- export default function MessagePopUp(props: PopupProps) {
16
- const [themeId, setThemeId] = useState("");
17
- const [subject, setSubject] = useState("");
18
- const [messageText, setMessageText] = useState("");
19
- const [firstName, setFirstName] = useState("");
20
- const [lastName, setLastName] = useState("");
21
-
22
- const handleClose = () => {
23
- props.onCloseClick();
24
- };
25
- function handleSendMessage() {
26
- props.onSubmit({ themeId, subject, messageText, firstName, lastName });
27
- }
28
-
29
- useEffect(() => {
30
- const user = JSON.parse(localStorage.getItem("user") || "{}");
31
- if (user) {
32
- setFirstName(user.firstname || "");
33
- setLastName(user.lastname || "");
34
- }
35
- }, []);
36
- return (
37
- <div>
38
- <div className="popup-overlay">
39
- <div className="MessageShareSections d-flex flex-column col-10 col-lg-7">
40
- <img
41
- src={x}
42
- alt="close"
43
- className="closeIcon d-flex flex-column align-self-end"
44
- onClick={handleClose}
45
- />
46
- <div className="">
47
- <div className="d-flex ms-md-5 mb-4">
48
- <div className="circle align-self-center ms-md-2 me-4">
49
- <img
50
- src={mail_icon}
51
- alt="email"
52
- className="align-self-center"
53
- style={{
54
- alignSelf: "center",
55
- justifyContent: "center",
56
- margin: "14px",
57
- width: "25px",
58
- height: "20px",
59
- }}
60
- />
61
- </div>
62
- <div className="popUpHeader d-flex flex-column text-wrap mb-md-1 ">
63
- Nachricht senden {props.sellerFirstName} {props.sellerLastName}
64
- </div>
65
- </div>
66
-
67
- <div className="d-flex flex-md-row flex-column ms-md-5 mt-md-0 ">
68
- <div className="d-flex flex-column mt-md-0 mt-4 col me-4 w-100 align-self-start justify-content-start">
69
- <span className="popup-tags mb-2">Betreff:*</span>
70
- <div>
71
- <select
72
- name="theme"
73
- id="theme"
74
- className="mb-md-4 col-md-11 col-12"
75
- style={{ height: "42px" }}
76
- value={themeId}
77
- onChange={(e) => setThemeId(e.target.value)}
78
- >
79
- <option value="">Select a theme</option>
80
- {props.themesList.map(
81
- (theme: { id: string; name: string }) => (
82
- <option key={theme.id} value={theme.id}>
83
- {theme.name}
84
- </option>
85
- ),
86
- )}
87
- </select>
88
- </div>
89
- </div>
90
- <div className="d-flex flex-column mt-md-4 col me-4 w-100">
91
- <div></div>
92
- <textarea
93
- className="popup_textarea col-12 col-md-10 mb-md-0 mt-2 "
94
- placeholder="Betreff deiner Nachricht"
95
- style={{ height: "42px" }}
96
- value={subject}
97
- onChange={(e) => setSubject(e.target.value)}
98
- />
99
- </div>
100
- </div>
101
- <div className="d-flex flex-column col ms-md-5 me-md-4">
102
- <span className="popup-tags mb-2 ">Deine Nachricht:*</span>
103
- <textarea
104
- className="popup_textarea mb-md-4 col-md-11 col-12 "
105
- placeholder="Deine Nachricht hier..."
106
- value={messageText}
107
- onChange={(e) => setMessageText(e.target.value)}
108
- />
109
- </div>
110
- {/* <div className="d-flex flex-column ms-5 me-5">
111
- <span className="popup-tags mb-2">Thema auswählen:*</span>
112
-
113
- </div> */}
114
- <div className="d-flex flex-md-row flex-column ms-md-5 ">
115
- <div className="d-flex flex-column col me-4 w-100">
116
- <span className="popup-tags mb-2">Vorname:</span>
117
- <input
118
- className="popup_textarea mb-md-4 col-12 col-md-11"
119
- placeholder="Dein Vorname"
120
- type="text"
121
- value={firstName}
122
- onChange={(e) => setFirstName(e.target.value)}
123
- style={{ height: "42px" }}
124
- />
125
- </div>
126
- <div className="d-flex flex-column me-4 w-100 col ">
127
- <span className="popup-tags mb-2">Nachname:</span>
128
- <input
129
- className="popup_textarea col-12 mb-4 col-md-10"
130
- placeholder="Dein Nachname"
131
- type="text"
132
- value={lastName}
133
- onChange={(e) => setLastName(e.target.value)}
134
- style={{ height: "42px" }}
135
- />
136
- </div>
137
- </div>
138
- <div className="d-flex gap-md-3 gap-3 flex-md-row flex-column align-self-center justify-content-center mb-4 mt-md-2">
139
- <button
140
- className="main_button border-0 rounded-4 align-self-center "
141
- type="button"
142
- id="button"
143
- onClick={handleSendMessage}
144
- >
145
- <strong>Nachricht senden</strong>
146
- </button>
147
- <button className="button_icon-right border-1 col-sm-3 align-self-center">
148
- <strong>Abbrechen</strong>
149
- </button>
150
- </div>
151
- </div>
152
- </div>
153
- </div>
154
- </div>
155
- );
156
- }
1
+ import React, { useEffect, useState } from "react";
2
+ import x from "../../assets/Images/icon_close_2.png";
3
+ import mail_icon from "../../assets/Images/mail-icon.png";
4
+ import "../MessagePopup/MessagePopUp.css";
5
+ import { MessageModel } from "../../models/message.model";
6
+
7
+ interface PopupProps {
8
+ sellerFirstName: string;
9
+ sellerLastName: string;
10
+ onCloseClick: () => void;
11
+ themesList: any;
12
+ onSubmit: (formValues: MessageModel) => void;
13
+ }
14
+
15
+ export default function MessagePopUp(props: PopupProps) {
16
+ const [themeId, setThemeId] = useState("");
17
+ const [subject, setSubject] = useState("");
18
+ const [messageText, setMessageText] = useState("");
19
+ const [firstName, setFirstName] = useState("");
20
+ const [lastName, setLastName] = useState("");
21
+
22
+ const handleClose = () => {
23
+ props.onCloseClick();
24
+ };
25
+ function handleSendMessage() {
26
+ props.onSubmit({ themeId, subject, messageText, firstName, lastName });
27
+ }
28
+
29
+ useEffect(() => {
30
+ const user = JSON.parse(localStorage.getItem("user") || "{}");
31
+ if (user) {
32
+ setFirstName(user.firstname || "");
33
+ setLastName(user.lastname || "");
34
+ }
35
+ }, []);
36
+ return (
37
+ <div>
38
+ <div className="popup-overlay">
39
+ <div className="MessageShareSections d-flex flex-column col-10 col-lg-7">
40
+ <img
41
+ src={x}
42
+ alt="close"
43
+ className="closeIcon d-flex flex-column align-self-end"
44
+ onClick={handleClose}
45
+ />
46
+ <div className="">
47
+ <div className="d-flex ms-md-5 mb-4">
48
+ <div className="circle align-self-center ms-md-2 me-4">
49
+ <img
50
+ src={mail_icon}
51
+ alt="email"
52
+ className="align-self-center"
53
+ style={{
54
+ alignSelf: "center",
55
+ justifyContent: "center",
56
+ margin: "14px",
57
+ width: "25px",
58
+ height: "20px",
59
+ }}
60
+ />
61
+ </div>
62
+ <div className="popUpHeader d-flex flex-column text-wrap mb-md-1 ">
63
+ Nachricht senden {props.sellerFirstName} {props.sellerLastName}
64
+ </div>
65
+ </div>
66
+
67
+ <div className="d-flex flex-md-row flex-column ms-md-5 mt-md-0 ">
68
+ <div className="d-flex flex-column mt-md-0 mt-4 col me-4 w-100 align-self-start justify-content-start">
69
+ <span className="popup-tags mb-2">Betreff:*</span>
70
+ <div>
71
+ <select
72
+ name="theme"
73
+ id="theme"
74
+ className="mb-md-4 col-md-11 col-12"
75
+ style={{ height: "42px" }}
76
+ value={themeId}
77
+ onChange={(e) => setThemeId(e.target.value)}
78
+ >
79
+ <option value="">Select a theme</option>
80
+ {props.themesList.map(
81
+ (theme: { id: string; name: string }) => (
82
+ <option key={theme.id} value={theme.id}>
83
+ {theme.name}
84
+ </option>
85
+ ),
86
+ )}
87
+ </select>
88
+ </div>
89
+ </div>
90
+ <div className="d-flex flex-column mt-md-4 col me-4 w-100">
91
+ <div></div>
92
+ <textarea
93
+ className="popup_textarea col-12 col-md-10 mb-md-0 mt-2 "
94
+ placeholder="Betreff deiner Nachricht"
95
+ style={{ height: "42px" }}
96
+ value={subject}
97
+ onChange={(e) => setSubject(e.target.value)}
98
+ />
99
+ </div>
100
+ </div>
101
+ <div className="d-flex flex-column col ms-md-5 me-md-4">
102
+ <span className="popup-tags mb-2 ">Deine Nachricht:*</span>
103
+ <textarea
104
+ className="popup_textarea mb-md-4 col-md-11 col-12 "
105
+ placeholder="Deine Nachricht hier..."
106
+ value={messageText}
107
+ onChange={(e) => setMessageText(e.target.value)}
108
+ />
109
+ </div>
110
+ {/* <div className="d-flex flex-column ms-5 me-5">
111
+ <span className="popup-tags mb-2">Thema auswählen:*</span>
112
+
113
+ </div> */}
114
+ <div className="d-flex flex-md-row flex-column ms-md-5 ">
115
+ <div className="d-flex flex-column col me-4 w-100">
116
+ <span className="popup-tags mb-2">Vorname:</span>
117
+ <input
118
+ className="popup_textarea mb-md-4 col-12 col-md-11"
119
+ placeholder="Dein Vorname"
120
+ type="text"
121
+ value={firstName}
122
+ onChange={(e) => setFirstName(e.target.value)}
123
+ style={{ height: "42px" }}
124
+ />
125
+ </div>
126
+ <div className="d-flex flex-column me-4 w-100 col ">
127
+ <span className="popup-tags mb-2">Nachname:</span>
128
+ <input
129
+ className="popup_textarea col-12 mb-4 col-md-10"
130
+ placeholder="Dein Nachname"
131
+ type="text"
132
+ value={lastName}
133
+ onChange={(e) => setLastName(e.target.value)}
134
+ style={{ height: "42px" }}
135
+ />
136
+ </div>
137
+ </div>
138
+ <div className="d-flex gap-md-3 gap-3 flex-md-row flex-column align-self-center justify-content-center mb-4 mt-md-2">
139
+ <button
140
+ className="main_button border-0 rounded-4 align-self-center "
141
+ type="button"
142
+ id="button"
143
+ onClick={handleSendMessage}
144
+ >
145
+ <strong>Nachricht senden</strong>
146
+ </button>
147
+ <button className="button_icon-right border-1 col-sm-3 align-self-center">
148
+ <strong>Abbrechen</strong>
149
+ </button>
150
+ </div>
151
+ </div>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ );
156
+ }