@meetelise/chat 1.74.0 → 1.76.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 (35) 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/booking-confirmation.d.ts +2 -0
  4. package/dist/src/WebComponent/SchedulerV2/contact-form.d.ts +9 -3
  5. package/dist/src/WebComponent/SchedulerV2/itinerary-editor.d.ts +18 -1
  6. package/dist/src/WebComponent/SchedulerV2/itineraryStopStyles.d.ts +1 -2
  7. package/dist/src/WebComponent/SchedulerV2/schedulerIcons.d.ts +18 -0
  8. package/dist/src/WebComponent/SchedulerV2/schedulerRequests.d.ts +2 -0
  9. package/dist/src/WebComponent/SchedulerV2/schedulerV2Styles.d.ts +9 -0
  10. package/dist/src/WebComponent/SchedulerV2/tour-scheduler-v2.d.ts +17 -1
  11. package/dist/src/WebComponent/SchedulerV2/tourItineraryApi.d.ts +12 -0
  12. package/dist/src/WebComponent/SchedulerV2/tourTimes.d.ts +3 -1
  13. package/dist/src/WebComponent/actions/international-phone-input.d.ts +7 -0
  14. package/dist/src/WebComponent/me-select.d.ts +2 -0
  15. package/package.json +1 -1
  16. package/public/dist/index.js +2411 -1446
  17. package/src/WebComponent/Scheduler/date-picker.ts +130 -51
  18. package/src/WebComponent/Scheduler/time-picker.ts +62 -0
  19. package/src/WebComponent/Scheduler/tour-type-option.ts +31 -10
  20. package/src/WebComponent/SchedulerV2/booking-confirmation.ts +54 -45
  21. package/src/WebComponent/SchedulerV2/community-picker.ts +222 -160
  22. package/src/WebComponent/SchedulerV2/contact-form.ts +100 -70
  23. package/src/WebComponent/SchedulerV2/itinerary-editor.ts +316 -151
  24. package/src/WebComponent/SchedulerV2/itineraryStopStyles.ts +44 -21
  25. package/src/WebComponent/SchedulerV2/scheduler-popover.ts +6 -6
  26. package/src/WebComponent/SchedulerV2/schedulerIcons.ts +143 -0
  27. package/src/WebComponent/SchedulerV2/schedulerRequests.ts +10 -0
  28. package/src/WebComponent/SchedulerV2/schedulerV2Styles.ts +347 -0
  29. package/src/WebComponent/SchedulerV2/tour-scheduler-v2.ts +493 -172
  30. package/src/WebComponent/SchedulerV2/tourItineraryApi.ts +12 -0
  31. package/src/WebComponent/SchedulerV2/tourTimes.ts +16 -3
  32. package/src/WebComponent/actions/action-confirm-button.ts +4 -3
  33. package/src/WebComponent/actions/international-phone-input.ts +84 -1
  34. package/src/WebComponent/me-select.ts +74 -0
  35. package/src/tourSchedulerV2Booking.test.ts +129 -7
@@ -2,44 +2,67 @@ import { css } from "lit";
2
2
 
3
3
  /**
4
4
  * The list of stops in an itinerary, shared by the schedule step and the
5
- * confirmation. Each stop is a fee calculator card (`.floorplan-image-card`);
6
- * this adds only the numbering and the distance between stops.
5
+ * confirmation: the design's numbered cards, joined by the leg between them.
7
6
  */
8
7
  export const itineraryStopStyles = css`
8
+ /* The itinerary: numbered stop cards joined by the leg between them. */
9
9
  .stops {
10
10
  list-style: none;
11
- margin: 0 0 12px;
11
+ margin: 0;
12
12
  padding: 0;
13
13
  width: 100%;
14
14
  }
15
15
 
16
- .stops .floorplan-image-card {
17
- background: #ffffff;
18
- border: 1px solid #e7e7e7;
19
- border-radius: 8px;
20
- min-width: 0;
21
- }
22
-
23
- .leg {
24
- border-left: 1px dashed #ddd;
25
- margin: 0 0 0 24px;
26
- min-height: 12px;
27
- padding: 4px 0 4px 12px;
16
+ .stop-card {
17
+ align-items: center;
18
+ display: flex;
19
+ gap: 12px;
20
+ margin: 0;
21
+ padding: 12px;
28
22
  }
29
23
 
30
24
  .stop-number {
31
25
  align-items: center;
32
- border: 1px solid #ddd;
26
+ background: var(--tsv2-fill);
33
27
  border-radius: 50%;
34
28
  display: inline-flex;
35
- flex: 0 0 24px;
36
- font-size: 0.8rem;
37
- height: 24px;
29
+ flex: none;
30
+ font-size: 10px;
31
+ height: 28px;
38
32
  justify-content: center;
33
+ line-height: 14px;
34
+ width: 28px;
35
+ }
36
+
37
+ .stop-name {
38
+ font-size: 14px;
39
+ line-height: 20px;
39
40
  }
40
41
 
41
42
  .stop-time {
42
- font-size: 0.9rem;
43
- margin: 4px 0;
43
+ align-items: center;
44
+ display: inline-flex;
45
+ font-size: 12px;
46
+ gap: 6px;
47
+ line-height: 16px;
48
+ margin-top: 8px;
49
+ }
50
+
51
+ .leg {
52
+ align-items: center;
53
+ color: var(--tsv2-muted);
54
+ display: flex;
55
+ font-size: 10px;
56
+ gap: 12px;
57
+ line-height: 14px;
58
+ min-height: 32px;
59
+ padding: 6px 0 6px 25px;
60
+ }
61
+
62
+ .leg::before {
63
+ align-self: stretch;
64
+ border-left: 1px dashed var(--tsv2-leg);
65
+ content: "";
66
+ min-height: 20px;
44
67
  }
45
68
  `;
@@ -74,7 +74,6 @@ export class SchedulerPopover extends LitElement {
74
74
  }
75
75
 
76
76
  static styles = css`
77
- /* New element, from me-select's list surface and the picker's card border. */
78
77
  :host {
79
78
  display: inline-block;
80
79
  position: relative;
@@ -84,15 +83,16 @@ export class SchedulerPopover extends LitElement {
84
83
  display: contents;
85
84
  }
86
85
 
86
+ /* The design's floating panel; a holder may set its padding. */
87
87
  .panel {
88
88
  background-color: #ffffff;
89
- border: 1px solid #e7e7e7;
90
- border-radius: 10px;
91
- box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.15);
89
+ border: 1px solid #dee2e6;
90
+ border-radius: 8px;
91
+ box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.13);
92
92
  box-sizing: border-box;
93
93
  left: 0;
94
- margin-top: 4px;
95
- padding: 12px 16px;
94
+ margin-top: 8px;
95
+ padding: var(--scheduler-popover-padding, 11px);
96
96
  position: absolute;
97
97
  top: 100%;
98
98
  width: max-content;
@@ -0,0 +1,143 @@
1
+ import { svg, SVGTemplateResult } from "lit";
2
+
3
+ /**
4
+ * The v2 scheduler's icons: the design's 24px outline set, drawn with a 1px
5
+ * stroke at any size. Each takes its colour from `currentColor` unless given one.
6
+ */
7
+ const lineIcon = (
8
+ size: number,
9
+ paths: string[],
10
+ { stroke = "currentColor", strokeWidth = 1 } = {}
11
+ ): SVGTemplateResult => svg`<svg
12
+ aria-hidden="true"
13
+ focusable="false"
14
+ width=${size}
15
+ height=${size}
16
+ viewBox="0 0 24 24"
17
+ fill="none"
18
+ stroke=${stroke}
19
+ stroke-width=${strokeWidth}
20
+ stroke-linecap="round"
21
+ stroke-linejoin="round"
22
+ >
23
+ ${paths.map(
24
+ (d) => svg`<path vector-effect="non-scaling-stroke" d=${d}></path>`
25
+ )}
26
+ </svg>`;
27
+
28
+ const filledIcon = (size: number, d: string): SVGTemplateResult => svg`<svg
29
+ aria-hidden="true"
30
+ focusable="false"
31
+ width=${size}
32
+ height=${size}
33
+ viewBox="0 0 24 24"
34
+ fill="currentColor"
35
+ ><path d=${d}></path></svg>`;
36
+
37
+ export const BuildingLineIcon = (
38
+ size = 20,
39
+ strokeWidth = 1
40
+ ): SVGTemplateResult =>
41
+ lineIcon(
42
+ size,
43
+ [
44
+ "M8 9l5 5v7h-5v-4m0 4h-5v-7l5 -5m1 1v-6a1 1 0 0 1 1 -1h10a1 1 0 0 1 1 1v17h-8",
45
+ "M13 7l0 .01",
46
+ "M17 7l0 .01",
47
+ "M17 11l0 .01",
48
+ "M17 15l0 .01",
49
+ ],
50
+ { strokeWidth }
51
+ );
52
+
53
+ export const CalendarLineIcon = (size = 14): SVGTemplateResult =>
54
+ lineIcon(size, [
55
+ "M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z",
56
+ "M16 3v4M8 3v4M4 11h16",
57
+ ]);
58
+
59
+ export const ChevronLeftLineIcon = (size = 14): SVGTemplateResult =>
60
+ lineIcon(size, ["M15 6l-6 6l6 6"]);
61
+
62
+ export const ChevronRightLineIcon = (size = 14): SVGTemplateResult =>
63
+ lineIcon(size, ["M9 6l6 6l-6 6"]);
64
+
65
+ export const CloseLineIcon = (size = 16): SVGTemplateResult =>
66
+ lineIcon(size, ["M5 5l14 14M19 5L5 19"]);
67
+
68
+ export const PencilLineIcon = (size = 14): SVGTemplateResult =>
69
+ lineIcon(size, [
70
+ "M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",
71
+ "M13.5 6.5l4 4",
72
+ ]);
73
+
74
+ export const TrashLineIcon = (size = 16): SVGTemplateResult =>
75
+ lineIcon(size, [
76
+ "M4 7l16 0",
77
+ "M10 11l0 6",
78
+ "M14 11l0 6",
79
+ "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",
80
+ "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",
81
+ ]);
82
+
83
+ export const GripLineIcon = (size = 14): SVGTemplateResult =>
84
+ lineIcon(
85
+ size,
86
+ [5, 12, 19].flatMap((y) =>
87
+ [9, 15].map((x) => `M${x} ${y}m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`)
88
+ )
89
+ );
90
+
91
+ export const PlusLineIcon = (size = 18): SVGTemplateResult =>
92
+ lineIcon(size, ["M12 5v14M5 12h14"]);
93
+
94
+ export const MapLineIcon = (size = 32): SVGTemplateResult =>
95
+ lineIcon(
96
+ size,
97
+ ["M3 7l6 -3l6 3l6 -3v13l-6 3l-6 -3l-6 3v-13", "M9 4v13", "M15 7v13"],
98
+ {
99
+ strokeWidth: 1.5,
100
+ }
101
+ );
102
+
103
+ /** The design's booked mark: a check in a circle, in green. */
104
+ export const CheckCircleLineIcon = (
105
+ size = 32,
106
+ strokeWidth = 1.5
107
+ ): SVGTemplateResult =>
108
+ lineIcon(size, ["M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", "M9 12l2 2l4 -4"], {
109
+ stroke: "#10B981",
110
+ strokeWidth,
111
+ });
112
+
113
+ export const PersonPlusLineIcon = (size = 20): SVGTemplateResult =>
114
+ lineIcon(size, [
115
+ "M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",
116
+ "M16 19h6",
117
+ "M19 16v6",
118
+ "M6 21v-2a4 4 0 0 1 4 -4h4",
119
+ ]);
120
+
121
+ export const VideoLineIcon = (size = 20): SVGTemplateResult =>
122
+ lineIcon(size, [
123
+ "M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4z",
124
+ "M3 8a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -8",
125
+ ]);
126
+
127
+ export const MapPinLineIcon = (size = 20): SVGTemplateResult =>
128
+ lineIcon(size, [
129
+ "M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",
130
+ "M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z",
131
+ ]);
132
+
133
+ export const StarFilledIcon = (size = 12): SVGTemplateResult =>
134
+ filledIcon(
135
+ size,
136
+ "M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z"
137
+ );
138
+
139
+ export const BadgeCheckFilledIcon = (size = 14): SVGTemplateResult =>
140
+ filledIcon(
141
+ size,
142
+ "M12.01 2.011a3.2 3.2 0 0 1 2.113 .797l.154 .145l.698 .698a1.2 1.2 0 0 0 .71 .341l.135 .008h1a3.2 3.2 0 0 1 3.195 3.018l.005 .182v1c0 .27 .092 .533 .258 .743l.09 .1l.697 .698a3.2 3.2 0 0 1 .147 4.382l-.145 .154l-.698 .698a1.2 1.2 0 0 0 -.341 .71l-.008 .135v1a3.2 3.2 0 0 1 -3.018 3.195l-.182 .005h-1a1.2 1.2 0 0 0 -.743 .258l-.1 .09l-.698 .697a3.2 3.2 0 0 1 -4.382 .147l-.154 -.145l-.698 -.698a1.2 1.2 0 0 0 -.71 -.341l-.135 -.008h-1a3.2 3.2 0 0 1 -3.195 -3.018l-.005 -.182v-1a1.2 1.2 0 0 0 -.258 -.743l-.09 -.1l-.697 -.698a3.2 3.2 0 0 1 -.147 -4.382l.145 -.154l.698 -.698a1.2 1.2 0 0 0 .341 -.71l.008 -.135v-1l.005 -.182a3.2 3.2 0 0 1 3.013 -3.013l.182 -.005h1a1.2 1.2 0 0 0 .743 -.258l.1 -.09l.698 -.697a3.2 3.2 0 0 1 2.269 -.944zm3.697 7.282a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z"
143
+ );
@@ -20,6 +20,8 @@ export interface ItineraryChoice {
20
20
  firstStart: string | null;
21
21
  /** ISO starts picked for later new stops, by building id. */
22
22
  laterStarts: Record<number, string>;
23
+ /** "YYYY-MM-DD" days new stops moved to on their own, away from `date`, by building id. */
24
+ stopDates: Record<number, string>;
23
25
  /** Booked events this itinerary extends, in order; the last one is fixed first. */
24
26
  existingEventIds: number[];
25
27
  }
@@ -31,6 +33,13 @@ export const buildPlanRequest = (choice: ItineraryChoice): PlanRequest => {
31
33
  .filter((id) => choice.laterStarts[id])
32
34
  .map((id) => [String(id), choice.laterStarts[id]])
33
35
  );
36
+ const stopDates = Object.fromEntries(
37
+ choice.buildingIds
38
+ .filter(
39
+ (id) => choice.stopDates[id] && choice.stopDates[id] !== choice.date
40
+ )
41
+ .map((id) => [String(id), choice.stopDates[id]])
42
+ );
34
43
  const fixedEventId =
35
44
  choice.existingEventIds[choice.existingEventIds.length - 1];
36
45
  return {
@@ -39,6 +48,7 @@ export const buildPlanRequest = (choice: ItineraryChoice): PlanRequest => {
39
48
  date: choice.date,
40
49
  start_time: choice.firstStart,
41
50
  stop_starts: laterStarts,
51
+ stop_dates: stopDates,
42
52
  fixed_first:
43
53
  fixedEventId === undefined ? null : { calendar_event_id: fixedEventId },
44
54
  };
@@ -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
+ `;