@meetelise/chat 1.75.0 → 1.77.0

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 (31) hide show
  1. package/dist/src/WebComponent/Scheduler/time-picker.d.ts +6 -0
  2. package/dist/src/WebComponent/Scheduler/tour-type-option.d.ts +1 -1
  3. package/dist/src/WebComponent/SchedulerV2/contact-form.d.ts +9 -3
  4. package/dist/src/WebComponent/SchedulerV2/itinerary-editor.d.ts +38 -3
  5. package/dist/src/WebComponent/SchedulerV2/itineraryStopStyles.d.ts +1 -2
  6. package/dist/src/WebComponent/SchedulerV2/scheduler-popover.d.ts +18 -1
  7. package/dist/src/WebComponent/SchedulerV2/schedulerIcons.d.ts +18 -0
  8. package/dist/src/WebComponent/SchedulerV2/schedulerV2Styles.d.ts +9 -0
  9. package/dist/src/WebComponent/SchedulerV2/tour-scheduler-v2.d.ts +13 -1
  10. package/dist/src/WebComponent/SchedulerV2/tourTimes.d.ts +1 -1
  11. package/dist/src/WebComponent/actions/international-phone-input.d.ts +7 -0
  12. package/dist/src/WebComponent/me-select.d.ts +2 -0
  13. package/package.json +1 -1
  14. package/public/dist/index.js +2449 -1336
  15. package/src/WebComponent/Scheduler/date-picker.ts +130 -51
  16. package/src/WebComponent/Scheduler/time-picker.ts +62 -0
  17. package/src/WebComponent/Scheduler/tour-type-option.ts +31 -10
  18. package/src/WebComponent/SchedulerV2/booking-confirmation.ts +42 -38
  19. package/src/WebComponent/SchedulerV2/community-picker.ts +222 -160
  20. package/src/WebComponent/SchedulerV2/contact-form.ts +100 -70
  21. package/src/WebComponent/SchedulerV2/itinerary-editor.ts +498 -168
  22. package/src/WebComponent/SchedulerV2/itineraryStopStyles.ts +44 -21
  23. package/src/WebComponent/SchedulerV2/scheduler-popover.ts +105 -9
  24. package/src/WebComponent/SchedulerV2/schedulerIcons.ts +143 -0
  25. package/src/WebComponent/SchedulerV2/schedulerV2Styles.ts +347 -0
  26. package/src/WebComponent/SchedulerV2/tour-scheduler-v2.ts +443 -175
  27. package/src/WebComponent/SchedulerV2/tourTimes.ts +4 -3
  28. package/src/WebComponent/actions/action-confirm-button.ts +4 -3
  29. package/src/WebComponent/actions/international-phone-input.ts +84 -1
  30. package/src/WebComponent/me-select.ts +74 -0
  31. package/src/tourSchedulerV2Booking.test.ts +145 -15
@@ -0,0 +1,347 @@
1
+ import { css } from "lit";
2
+
3
+ /**
4
+ * The v2 scheduler's design (the "select one" mockup), shared by its parts.
5
+ * Today's scheduler keeps `tourSchedulerStyles`; nothing here reaches it.
6
+ *
7
+ * The mockup's sample purple is the building's brand colour (`--primary-color`,
8
+ * set by `tour-scheduler-v2`); its lavender fill and ring are tints of it.
9
+ */
10
+ export const schedulerV2Tokens = css`
11
+ :host {
12
+ --tsv2-font: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
13
+ "Helvetica Neue", Arial, sans-serif;
14
+ --tsv2-text: #000000;
15
+ --tsv2-label: #212529;
16
+ --tsv2-chip-text: #3a3a3b;
17
+ --tsv2-muted: #6e6e70;
18
+ --tsv2-placeholder: #adb5bd;
19
+ --tsv2-line: #dee2e6;
20
+ --tsv2-leg: #ced4da;
21
+ --tsv2-fill: #f1f3f5;
22
+ --tsv2-hover: #f8f9fa;
23
+ --tsv2-required: #dc2626;
24
+ --tsv2-success: #059669;
25
+ --tsv2-accent: var(--primary-color, #646987);
26
+ --tsv2-tint: color-mix(in srgb, var(--tsv2-accent) 7%, #ffffff);
27
+ --tsv2-tint-line: color-mix(in srgb, var(--tsv2-accent) 22%, #ffffff);
28
+ --tsv2-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.13);
29
+ }
30
+ `;
31
+
32
+ export const schedulerV2Styles = css`
33
+ * {
34
+ box-sizing: border-box;
35
+ }
36
+
37
+ h1,
38
+ h2,
39
+ h3,
40
+ p {
41
+ margin: 0;
42
+ }
43
+
44
+ .sr-only {
45
+ border: 0;
46
+ clip: rect(0, 0, 0, 0);
47
+ height: 1px;
48
+ margin: -1px;
49
+ overflow: hidden;
50
+ padding: 0;
51
+ position: absolute;
52
+ white-space: nowrap;
53
+ width: 1px;
54
+ }
55
+
56
+ /* "Community", "Date", "Tour Type", "Time (CDT)", "Your Information". */
57
+ .section-heading {
58
+ align-items: center;
59
+ display: flex;
60
+ font-size: 14px;
61
+ font-weight: 400;
62
+ gap: 8px;
63
+ line-height: 20px;
64
+ margin: 0 0 8px;
65
+ }
66
+
67
+ /* A page's centred title: "Select a Community to Tour", "Your Tour Is Booked". */
68
+ .page-heading {
69
+ font-size: 20px;
70
+ font-weight: 400;
71
+ letter-spacing: -0.01em;
72
+ line-height: 28px;
73
+ }
74
+
75
+ .muted {
76
+ color: var(--tsv2-muted);
77
+ }
78
+
79
+ .explanation {
80
+ color: var(--tsv2-muted);
81
+ font-size: 12px;
82
+ line-height: 16px;
83
+ }
84
+
85
+ .error-message {
86
+ color: var(--tsv2-required);
87
+ font-size: 10px;
88
+ line-height: 14px;
89
+ margin: 4px 0 0;
90
+ }
91
+
92
+ /* A labelled form field: the label above, then the control. */
93
+ .field {
94
+ display: flex;
95
+ flex-direction: column;
96
+ min-width: 0;
97
+ }
98
+
99
+ .field-label {
100
+ color: var(--tsv2-label);
101
+ font-size: 12px;
102
+ font-weight: 400;
103
+ line-height: 16px;
104
+ margin: 0 0 8px;
105
+ }
106
+
107
+ .required {
108
+ color: var(--tsv2-required);
109
+ margin-left: 2px;
110
+ }
111
+
112
+ .input {
113
+ background: #ffffff;
114
+ border: 1px solid var(--tsv2-line);
115
+ border-radius: 4px;
116
+ color: var(--tsv2-text);
117
+ font: inherit;
118
+ font-size: 12px;
119
+ height: 36px;
120
+ line-height: 16px;
121
+ margin: 0;
122
+ outline: none;
123
+ padding: 0 12px;
124
+ width: 100%;
125
+ }
126
+
127
+ .input:focus,
128
+ .input:focus-within {
129
+ border-color: var(--tsv2-accent);
130
+ }
131
+
132
+ .input::placeholder {
133
+ color: var(--tsv2-placeholder);
134
+ opacity: 1;
135
+ }
136
+
137
+ .input.invalid {
138
+ border-color: var(--tsv2-required);
139
+ }
140
+
141
+ textarea.input {
142
+ height: auto;
143
+ line-height: 1.4;
144
+ padding: 11px;
145
+ resize: vertical;
146
+ }
147
+
148
+ /* Phones: 16px text, so focusing a field doesn't zoom the page. */
149
+ .phone .input {
150
+ font-size: 16px;
151
+ }
152
+
153
+ /* A field that opens a picker: its value, then a calendar icon. */
154
+ .picker-field {
155
+ align-items: center;
156
+ cursor: pointer;
157
+ display: flex;
158
+ gap: 10px;
159
+ text-align: left;
160
+ }
161
+
162
+ .picker-field .value {
163
+ flex: 1;
164
+ min-width: 0;
165
+ overflow: hidden;
166
+ text-overflow: ellipsis;
167
+ white-space: nowrap;
168
+ }
169
+
170
+ .picker-field .value.placeholder {
171
+ color: var(--tsv2-muted);
172
+ }
173
+
174
+ .picker-field svg {
175
+ color: var(--tsv2-muted);
176
+ flex: none;
177
+ }
178
+
179
+ /* The browser's date input under the design's placeholder and icon. */
180
+ .date-input {
181
+ align-items: center;
182
+ display: flex;
183
+ position: relative;
184
+ }
185
+
186
+ .date-input input {
187
+ cursor: pointer;
188
+ padding-right: 36px;
189
+ }
190
+
191
+ .date-input input::-webkit-calendar-picker-indicator {
192
+ cursor: pointer;
193
+ height: auto;
194
+ inset: 0;
195
+ opacity: 0;
196
+ position: absolute;
197
+ width: auto;
198
+ }
199
+
200
+ .date-input:not(.filled) input:not(:focus) {
201
+ color: transparent;
202
+ }
203
+
204
+ .date-input:not(.filled) input:not(:focus)::-webkit-datetime-edit {
205
+ color: transparent;
206
+ }
207
+
208
+ .date-placeholder {
209
+ color: var(--tsv2-muted);
210
+ font-size: 12px;
211
+ left: 13px;
212
+ line-height: 16px;
213
+ pointer-events: none;
214
+ position: absolute;
215
+ }
216
+
217
+ .phone .date-placeholder {
218
+ font-size: 16px;
219
+ }
220
+
221
+ .date-input.filled .date-placeholder,
222
+ .date-input input:focus ~ .date-placeholder {
223
+ display: none;
224
+ }
225
+
226
+ .date-input svg {
227
+ color: var(--tsv2-muted);
228
+ pointer-events: none;
229
+ position: absolute;
230
+ right: 12px;
231
+ }
232
+
233
+ /* Pill chips: the filters and the bedroom choices. */
234
+ .chips {
235
+ display: flex;
236
+ flex-wrap: wrap;
237
+ gap: 4px;
238
+ }
239
+
240
+ .chip {
241
+ align-items: center;
242
+ background: #ffffff;
243
+ border: none;
244
+ border-radius: 16px;
245
+ box-shadow: inset 0 0 0 1px var(--tsv2-line);
246
+ color: var(--tsv2-chip-text);
247
+ cursor: pointer;
248
+ display: inline-flex;
249
+ font: inherit;
250
+ font-size: 12px;
251
+ gap: 6px;
252
+ height: 32px;
253
+ line-height: 16px;
254
+ padding: 0 12px;
255
+ white-space: nowrap;
256
+ }
257
+
258
+ .chip:hover {
259
+ background: var(--tsv2-hover);
260
+ }
261
+
262
+ .chip.selected,
263
+ .chip[aria-pressed="true"] {
264
+ background: var(--tsv2-tint);
265
+ box-shadow: inset 0 0 0 1px var(--tsv2-tint-line);
266
+ color: var(--tsv2-text);
267
+ }
268
+
269
+ /* A small grey label on a card: "Best Match", "1 BR from $3,025". */
270
+ .tag {
271
+ align-items: center;
272
+ background: var(--tsv2-fill);
273
+ border-radius: 4px;
274
+ color: var(--tsv2-label);
275
+ display: inline-flex;
276
+ font-size: 10px;
277
+ gap: 4px;
278
+ height: 20px;
279
+ line-height: 14px;
280
+ padding: 0 6px;
281
+ white-space: nowrap;
282
+ }
283
+
284
+ .card {
285
+ background: #ffffff;
286
+ border: 1px solid var(--tsv2-line);
287
+ border-radius: 8px;
288
+ }
289
+
290
+ /* The 40px grey square behind a card's icon. */
291
+ .icon-tile {
292
+ align-items: center;
293
+ background: var(--tsv2-fill);
294
+ border-radius: 4px;
295
+ color: var(--tsv2-text);
296
+ display: flex;
297
+ flex: none;
298
+ height: 40px;
299
+ justify-content: center;
300
+ width: 40px;
301
+ }
302
+
303
+ .icon-button {
304
+ align-items: center;
305
+ background: none;
306
+ border: none;
307
+ border-radius: 4px;
308
+ color: var(--tsv2-muted);
309
+ cursor: pointer;
310
+ display: inline-flex;
311
+ flex: none;
312
+ justify-content: center;
313
+ padding: 4px;
314
+ }
315
+
316
+ .icon-button:hover {
317
+ color: var(--tsv2-text);
318
+ }
319
+
320
+ .title {
321
+ font-size: 12px;
322
+ font-weight: 400;
323
+ line-height: 16px;
324
+ }
325
+
326
+ .subtitle {
327
+ color: var(--tsv2-muted);
328
+ font-size: 10px;
329
+ line-height: 14px;
330
+ }
331
+
332
+ .link-button {
333
+ background: none;
334
+ border: none;
335
+ color: inherit;
336
+ cursor: pointer;
337
+ font: inherit;
338
+ padding: 0;
339
+ text-decoration: underline;
340
+ }
341
+
342
+ button:focus-visible,
343
+ [tabindex]:focus-visible {
344
+ outline: 2px solid var(--tsv2-accent);
345
+ outline-offset: 2px;
346
+ }
347
+ `;