@meetelise/chat 1.20.48 → 1.20.50

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.
@@ -3,20 +3,22 @@ import { css } from "lit";
3
3
  export const InputStyles = css`
4
4
  .webchat-input {
5
5
  outline: none;
6
+
6
7
  color: #202020;
8
+ font-family: "Helvetica Neue";
9
+ font-style: normal;
7
10
  font-weight: 400;
8
- font-size: 16px;
9
- line-height: 16px;
10
- font-family: "Poppins";
11
+ font-size: 14px;
12
+ line-height: 22px;
11
13
 
12
- background: #ffffff;
13
- border-radius: 20px;
14
- border: none;
15
- padding: 0px 20px;
16
- border: 1px solid #83818e;
14
+ background: #d9d9d9;
15
+ border: 1px solid #efefef;
16
+ border-radius: 100px;
17
+ padding: 10px 16px;
17
18
  }
18
19
  .webchat-textarea {
19
- padding: 20px 20px;
20
+ border-radius: 8px;
21
+ padding: 8px 16px;
20
22
  }
21
23
 
22
24
  .webchat-input:active {
@@ -29,7 +31,7 @@ export const InputStyles = css`
29
31
 
30
32
  .webchat-input::placeholder {
31
33
  color: rgba(32, 32, 32, 0.5);
32
- font-family: "Poppins";
33
- font-size: 16px;
34
+ font-family: "Helvetica Neue";
35
+ font-size: 14px;
34
36
  }
35
37
  `;
@@ -10,16 +10,17 @@ export class ActionConfirmButton extends LitElement {
10
10
  display: flex;
11
11
  justify-content: center;
12
12
  align-items: center;
13
- background: #1e1e1e;
14
- border: 2px solid #ffffff;
15
- box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
13
+
14
+ background: #000000;
15
+ border: none;
16
+
16
17
  border-radius: 20px;
17
18
 
18
- font-family: "Poppins";
19
+ font-family: "Helvetica Neue";
19
20
  font-style: normal;
20
21
  font-weight: 400;
21
- font-size: 14px;
22
- line-height: 22px;
22
+ font-size: 12px;
23
+ line-height: 20px;
23
24
 
24
25
  color: #ffffff;
25
26
  padding: 5px 15px;
@@ -1,6 +1,6 @@
1
1
  import { css, html, LitElement, TemplateResult } from "lit";
2
2
  import { customElement, property } from "lit/decorators.js";
3
- import { SimplePhoneIcon } from "../../svgIcons";
3
+ import { PhoneBlackStrokeIcon } from "../../svgIcons";
4
4
 
5
5
  import { getOfficeHourText } from "../OfficeHours";
6
6
 
@@ -8,18 +8,23 @@ import { getOfficeHourText } from "../OfficeHours";
8
8
  export class CallUsWindow extends LitElement {
9
9
  static styles = [
10
10
  css`
11
- .call-us-window__content-wrapper {
12
- font-family: Poppins;
11
+ #call-us-window__content-wrapper {
12
+ font-family: "Helvetica Neue";
13
+ font-style: normal;
13
14
  color: 11ee1e;
15
+ font-size: 14px;
14
16
  }
15
-
16
- .call-us-window__call-us-text {
17
- font-family: "Helvetica";
17
+ .call-us-window__header {
18
+ font-family: "Helvetica Neue";
18
19
  font-style: normal;
19
20
  font-weight: 700;
20
- font-size: 16px;
21
- line-height: 24px;
22
- color: #202020;
21
+ line-height: 140%;
22
+ font-size: 14px;
23
+ margin: 0;
24
+ }
25
+
26
+ .call-us-window__call-us-text {
27
+ margin: 0 0 10px;
23
28
  }
24
29
 
25
30
  .call-us-window__phone-redirect {
@@ -27,26 +32,33 @@ export class CallUsWindow extends LitElement {
27
32
  justify-content: flex-start;
28
33
  align-items: center;
29
34
  margin-bottom: 28px;
30
- gap: 5px;
35
+ gap: 8px;
36
+
37
+ color: #202020;
38
+ font-size: 18px;
39
+ line-height: 24px;
31
40
  }
32
41
  .call-us-window__phone-redirect > a {
33
42
  color: unset;
34
43
  text-decoration: underline;
35
44
  }
36
45
 
37
- .call-us-window__office-hours-header,
38
- .call-us-window__day-of-week,
46
+ .call-us-window__office-hours-wrapper {
47
+ margin: 0 0 16px;
48
+ }
49
+
50
+ .call-us-window__oh-header {
51
+ line-height: 32px;
52
+ font-weight: 400;
53
+ }
39
54
  .call-us-window__day-of-week-wrapper {
40
- font-family: "Helvetica";
41
- font-style: normal;
42
55
  font-weight: 400;
43
- font-size: 14px;
44
56
  line-height: 22px;
45
57
  color: #202020;
46
58
  }
47
59
 
48
60
  .call-us-window__day-of-week {
49
- width: 112px;
61
+ width: 100px;
50
62
  text-transform: Capitalize;
51
63
  }
52
64
 
@@ -57,7 +69,9 @@ export class CallUsWindow extends LitElement {
57
69
  }
58
70
 
59
71
  .call-us-window__open-times {
72
+ width: 123px;
60
73
  text-transform: lowercase;
74
+ text-align: right;
61
75
  }
62
76
  `,
63
77
  ];
@@ -111,36 +125,37 @@ export class CallUsWindow extends LitElement {
111
125
  height=${this.hasTextUsEnabled ? "600px" : "443px"}
112
126
  headerText="${this.chatCallUsHeader}"
113
127
  .onCloseClick=${this.onCloseClicked}
114
- useGradientDesign="true"
115
128
  >
116
- <div class="call-us-window__content-wrapper">
117
- <div class="call-us-window__call-us-text">
118
- Contact our leasing team
119
- </div>
129
+ <div id="call-us-window__content-wrapper">
130
+ <h1 class="call-us-window__call-us-text call-us-window__header">
131
+ Contact Our Leasing Team
132
+ </h1>
120
133
  <div class="call-us-window__phone-redirect">
121
- ${SimplePhoneIcon} ${this.getCallLink(this.phoneNumber)}
134
+ ${PhoneBlackStrokeIcon} ${this.getCallLink(this.phoneNumber)}
122
135
  </div>
123
136
  <div class="call-us-window__office-hours-wrapper">
124
- <div class="call-us-window__office-hours-header">Office hours</div>
125
- </div>
126
- ${this.officeHoursTextInfo.map((oh) => {
127
- if (typeof oh === "string") {
137
+ <h1 class="call-us-window__oh-header call-us-window__header">
138
+ Office Hours
139
+ </h1>
140
+ ${this.officeHoursTextInfo.map((oh) => {
141
+ if (typeof oh === "string") {
142
+ return html`
143
+ <div class="call-us-window__day-of-week-wrapper">
144
+ <div class="call-us-window__day-of-week">${oh}</div>
145
+ <div class="call-us-window__closed">Closed</div>
146
+ </div>
147
+ `;
148
+ }
128
149
  return html`
129
150
  <div class="call-us-window__day-of-week-wrapper">
130
- <div class="call-us-window__day-of-week">${oh}</div>
131
- <div class="call-us-window__closed">Closed</div>
151
+ <div class="call-us-window__day-of-week">${oh.dayOfWeek}</div>
152
+ <div class="call-us-window__open-times">
153
+ ${oh.startTime}&nbsp;&ndash;&nbsp;${oh.endTime}
154
+ </div>
132
155
  </div>
133
156
  `;
134
- }
135
- return html`
136
- <div class="call-us-window__day-of-week-wrapper">
137
- <div class="call-us-window__day-of-week">${oh.dayOfWeek}</div>
138
- <div class="call-us-window__open-times">
139
- ${oh.startTime}&nbsp;&ndash;&nbsp;${oh.endTime}
140
- </div>
141
- </div>
142
- `;
143
- })}
157
+ })}
158
+ </div>
144
159
  </div>
145
160
  ${this.hasTextUsEnabled
146
161
  ? html` <text-us-window
@@ -1,6 +1,5 @@
1
1
  import { css, html, LitElement, TemplateResult } from "lit";
2
2
  import { customElement, property, state } from "lit/decorators.js";
3
- import { classMap } from "lit/directives/class-map.js";
4
3
  import { styleMap } from "lit/directives/style-map.js";
5
4
  import { isMobile } from "../../utils";
6
5
 
@@ -8,13 +7,25 @@ import { isMobile } from "../../utils";
8
7
  export class DetailsWindow extends LitElement {
9
8
  static styles = css`
10
9
  .details-window-wrapper {
11
- background: rgba(255, 255, 255, 0.75);
10
+ background: rgba(255, 255, 255, 0.9);
12
11
  box-shadow: 0px 0px 14px 5px rgba(0, 0, 0, 0.25);
13
- backdrop-filter: blur(10px);
14
- font-family: "Poppins";
15
- color: #202020;
16
- padding: 20px;
12
+ backdrop-filter: blur(5px);
13
+ /* Note: backdrop-filter has minimal browser support */
14
+
17
15
  border-radius: 10px 0px 0px 10px;
16
+ padding: 49px 18px 24px;
17
+ }
18
+
19
+ .close-window-button {
20
+ position: absolute;
21
+ top: 22px;
22
+ right: 20px;
23
+ cursor: pointer;
24
+ width: 20px;
25
+ height: 20px;
26
+ }
27
+ .close-window-button:hover {
28
+ filter: brightness(90%);
18
29
  }
19
30
 
20
31
  .gradient-window-wrapper {
@@ -37,14 +48,17 @@ export class DetailsWindow extends LitElement {
37
48
  justify-content: space-between;
38
49
  }
39
50
  .header-text {
51
+ font-weight: 700;
52
+ font-size: 14px;
53
+ line-height: 22px;
54
+
40
55
  font-family: "Helvetica";
41
56
  font-style: normal;
42
57
  font-weight: 700;
43
- font-size: 16px;
44
- line-height: 24px;
58
+ font-size: 14px;
59
+ line-height: 140%;
45
60
 
46
61
  color: #202020;
47
- margin-top: 20px;
48
62
  margin-bottom: 14px;
49
63
  }
50
64
 
@@ -87,18 +101,17 @@ export class DetailsWindow extends LitElement {
87
101
  render(): TemplateResult {
88
102
  return html`
89
103
  <div
90
- class=${classMap({
91
- ["gradient-window-wrapper"]: this.useGradientDesign,
92
- ["details-window-wrapper"]: !this.useGradientDesign,
93
- })}
104
+ class="details-window-wrapper"
94
105
  style=${styleMap({
95
106
  width: this.isMobileSized ? "-webkit-fill-available" : this.width,
96
107
  })}
97
108
  >
98
109
  <div class="details-window-header">
99
- <div class="header-text">${this.headerText}</div>
110
+ ${this.headerText
111
+ ? html` <div class="header-text">${this.headerText}</div>`
112
+ : ""}
100
113
  ${this.onCloseClick
101
- ? html`<div @click=${this.onCloseClick}>
114
+ ? html`<div @click=${this.onCloseClick} class="close-window-button">
102
115
  <svg
103
116
  width="19"
104
117
  height="19"
@@ -26,31 +26,23 @@ export class EmailUsWindow extends LitElement {
26
26
  overflow: hidden;
27
27
  text-overflow: ellipsis;
28
28
  }
29
- .email-us__name-input {
30
- width: 134px;
31
- height: 49px;
32
- }
33
29
 
34
30
  .email-us__name-wrapper {
35
31
  display: flex;
36
- }
37
-
38
- .email-us__horizontal-spacer {
39
- margin-left: 6px;
40
- margin-right: 6px;
32
+ gap: 4px;
41
33
  }
42
34
 
43
35
  .email-us__contact-input {
44
36
  width: -webkit-fill-available;
45
- height: 49px;
46
37
  }
47
38
 
48
39
  .email-us__vertical-spacer {
49
- margin-top: 15px;
50
- margin-bottom: 15px;
40
+ margin-top: 8px;
41
+ margin-bottom: 8px;
51
42
  }
52
43
 
53
44
  .action-bttn-container {
45
+ margin-top: 19px;
54
46
  display: flex;
55
47
  justify-content: flex-end;
56
48
  }
@@ -59,7 +51,6 @@ export class EmailUsWindow extends LitElement {
59
51
  resize: none;
60
52
  width: -webkit-fill-available;
61
53
  height: 159px;
62
- padding: 8px;
63
54
  }
64
55
 
65
56
  .email-us__submitted-info {
@@ -323,9 +314,9 @@ export class EmailUsWindow extends LitElement {
323
314
 
324
315
  return html`
325
316
  <details-window
326
- headerText="Email our leasing team"
317
+ headerText="Email Our Leasing Team"
327
318
  .onCloseClick=${this.onCloseClicked}
328
- useGradientDesign="true"
319
+ height="${this.windowHeight}px"
329
320
  >
330
321
  <div class="email-us-wrapper">
331
322
  <div class="email-us__name-wrapper">
@@ -378,7 +369,7 @@ export class EmailUsWindow extends LitElement {
378
369
  <input
379
370
  ${ref(this.phoneNumberInputRef)}
380
371
  type="text"
381
- placeholder="Phone number"
372
+ placeholder="Phone"
382
373
  inputmode="tel"
383
374
  class=${classMap({
384
375
  ["webchat-input"]: true,
@@ -416,7 +407,7 @@ export class EmailUsWindow extends LitElement {
416
407
  : ""}
417
408
  <div class="email-us__vertical-spacer"></div>
418
409
  <textarea
419
- placeholder="Message"
410
+ placeholder="Your message..."
420
411
  .value=${this.message}
421
412
  class=${classMap({
422
413
  ["email-us__message-input"]: true,
@@ -428,7 +419,6 @@ export class EmailUsWindow extends LitElement {
428
419
  ${this.hasMessageError
429
420
  ? html` <div class="email-us__error-text">Include a message</div> `
430
421
  : ""}
431
- <div class="email-us__vertical-spacer"></div>
432
422
  <div class="action-bttn-container">
433
423
  <action-confirm-button
434
424
  .onClick=${this.onClick}
@@ -441,7 +431,6 @@ export class EmailUsWindow extends LitElement {
441
431
  <div class="email-us__error-text">Error submitting message</div>
442
432
  `
443
433
  : ""}
444
- <div class="email-us__vertical-spacer"></div>
445
434
  </div>
446
435
  </details-window>
447
436
  `;
@@ -1,6 +1,5 @@
1
1
  import { css, html, LitElement, TemplateResult } from "lit";
2
2
  import { customElement, property, state } from "lit/decorators.js";
3
- import { classMap } from "lit/directives/class-map.js";
4
3
  import { createRef, ref, Ref } from "lit/directives/ref.js";
5
4
  import { installActionConfirmButton } from "./action-confirm-button";
6
5
  import { installDetailsWindow } from "./details-window";
@@ -17,50 +16,43 @@ export class TextUsWindow extends LitElement {
17
16
  static styles = [
18
17
  css`
19
18
  .text-us-wrapper {
20
- font-family: "Poppins";
19
+ margin-top: 33px;
21
20
  color: #202020;
22
21
  }
23
-
24
- .text-us-window__description {
25
- font-family: "Helvetica";
22
+ .text-us-window__header {
23
+ font-family: "Helvetica Neue";
26
24
  font-style: normal;
27
25
  font-weight: 700;
28
- font-size: 16px;
29
- line-height: 24px;
30
- color: #202020;
31
-
32
- margin-top: 32px;
26
+ line-height: 140%;
27
+ font-size: 14px;
28
+ margin: 0;
33
29
  }
34
30
 
35
31
  .text-us-window__input-container {
32
+ margin-top: 8px;
33
+ margin-bottom: 8px;
36
34
  width: -webkit-fill-available;
37
- height: 49px;
38
35
  position: relative;
39
36
  }
40
-
41
- .text-us-window__phone-input {
42
- width: -webkit-fill-available;
43
- height: 49px;
44
- }
45
-
46
37
  .text-us-window__submit-text {
47
38
  position: absolute;
48
- top: 6px;
39
+ top: 14px;
49
40
  right: 6px;
50
41
  }
51
42
  .text-us-window__vertical-spacer {
52
43
  height: 20px;
53
44
  }
54
-
55
- .text-us-window__subtext {
56
- font-size: 12px;
57
- line-height: 22px;
45
+ .text-us-window__description,
46
+ .text-us-window__error {
47
+ font-family: "Helvetica";
48
+ font-style: normal;
49
+ font-weight: 400;
50
+ font-size: 10px;
51
+ line-height: 14px;
58
52
  }
59
53
 
60
54
  .text-us-window__error {
61
- font-size: 10px;
62
- line-height: 22px;
63
- margin-top: 8px;
55
+ color: rgb(255, 49, 3);
64
56
  }
65
57
  `,
66
58
  InputStyles,
@@ -148,19 +140,15 @@ export class TextUsWindow extends LitElement {
148
140
 
149
141
  renderTextUs = (): TemplateResult => {
150
142
  return html` <div class="text-us-wrapper">
151
- <div class="text-us-window__description">Send us a text</div>
152
- <div class="text-us-window__vertical-spacer"></div>
143
+ <h1 class="text-us-window__header">Send Us a Text</h1>
153
144
  <div class="text-us-window__input-container">
154
145
  <input
155
146
  ${ref(this.phoneNumberInputRef)}
156
147
  maxlength="14"
157
148
  type="text"
158
- placeholder="Phone number"
149
+ placeholder="Enter phone"
159
150
  inputmode="tel"
160
- class=${classMap({
161
- ["webchat-input"]: true,
162
- ["text-us-window__phone-input"]: true,
163
- })}
151
+ class="webchat-input text-us-window__input-container"
164
152
  .value=${this.phoneNumber}
165
153
  @keydown=${this.enforceFormat}
166
154
  @keyup=${this.onChangePhoneNumber}
@@ -172,18 +160,22 @@ export class TextUsWindow extends LitElement {
172
160
  text="SEND"
173
161
  ></action-confirm-button>
174
162
  </div>
163
+ ${this.hasPhoneNumberError
164
+ ? html`
165
+ <div class="text-us-window__error">
166
+ Enter a valid phone number
167
+ </div>
168
+ `
169
+ : ""}
175
170
  </div>
176
- ${this.hasPhoneNumberError
177
- ? html`
178
- <div class="text-us-window__error">Enter a valid phone number</div>
179
- `
180
- : ""}
181
171
 
182
- <div class="text-us-window__vertical-spacer"></div>
183
- <div class="text-us-window__subtext">
184
- By entering your number, you consent to be contacted by our AI Leasing
185
- Assistant. Your consent to this process is not a requirement for leasing
186
- at our property. Message and data rates may apply.
172
+ <div class="text-us-window__description">
173
+ By entering your number and selecting Send, you consent to be contacted
174
+ by our AI Leasing Assistant. Your consent to this process is not a
175
+ requirement for leasing at our property.
176
+ <div class="text-us-window__description">
177
+ Message and data rates may apply.
178
+ </div>
187
179
  </div>
188
180
  </div>`;
189
181
  };
@@ -208,8 +200,7 @@ export class TextUsWindow extends LitElement {
208
200
  Thank you!<br />Look for a text message from our team. We can answer
209
201
  questions and help you book a tour through text.
210
202
  </div>
211
- <div class="text-us-window__vertical-spacer"></div>
212
- <div class="text-us-window__subtext">
203
+ <div class="text-us-window__description">
213
204
  Opt out at anytime by texting “Stop”
214
205
  </div>
215
206
  </div>