@ticketboothapp/booking 1.2.72 → 1.2.75
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/CHANGE_BOOKING_BE_HANDOFF.md +16 -0
- package/README.md +9 -0
- package/docs/local-ticketbooth-provider-dashboard.md +60 -0
- package/package.json +1 -1
- package/src/components/booking/AdminChangeBookingFlow.tsx +271 -76
- package/src/components/booking/PickupLocationDialog.module.css +390 -0
- package/src/components/booking/PickupLocationDialog.tsx +397 -0
- package/src/components/booking/PriceSummary.tsx +15 -1
- package/src/components/booking/booking-flow.css +36 -0
- package/src/components/booking/provider-dashboard-change-booking.ts +1 -0
- package/src/index.ts +7 -0
- package/src/lib/booking-api.ts +6 -0
- package/src/lib/format-booking-ref.ts +12 -0
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
/* Root class for scoping - nested selectors override Tailwind */
|
|
2
|
+
.overlay {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
background: rgba(0, 0, 0, 0.5);
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
z-index: 1000;
|
|
10
|
+
padding: 1rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.modal {
|
|
14
|
+
background: var(--primary-background, #fff);
|
|
15
|
+
border-radius: 24px;
|
|
16
|
+
max-width: 900px;
|
|
17
|
+
width: 100%;
|
|
18
|
+
max-height: 90vh;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pickupDialogRoot .header {
|
|
26
|
+
display: grid !important;
|
|
27
|
+
grid-template-columns: auto 1fr auto !important;
|
|
28
|
+
align-items: center !important;
|
|
29
|
+
gap: 0.75rem !important;
|
|
30
|
+
padding: 1rem 0.75rem !important;
|
|
31
|
+
border-bottom: 1px solid #e5e7eb !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pickupDialogRoot .headerSpacer {
|
|
35
|
+
display: block;
|
|
36
|
+
width: 2.5rem;
|
|
37
|
+
height: 2.5rem;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pickupDialogRoot .title {
|
|
42
|
+
font-family: 'Poppins', sans-serif !important;
|
|
43
|
+
font-weight: 800 !important;
|
|
44
|
+
font-size: 1.5rem !important;
|
|
45
|
+
color: var(--accent-orange, #e85a2e) !important;
|
|
46
|
+
margin: 0 !important;
|
|
47
|
+
justify-self: center !important;
|
|
48
|
+
text-align: center !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.pickupDialogRoot .closeBtn {
|
|
52
|
+
background: none !important;
|
|
53
|
+
border: none !important;
|
|
54
|
+
padding: 0.5rem !important;
|
|
55
|
+
cursor: pointer !important;
|
|
56
|
+
color: var(--grey-text, #6b7280) !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.pickupDialogRoot .closeBtn:hover {
|
|
60
|
+
color: var(--primary-text, #1f2937) !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.pickupDialogRoot .content {
|
|
64
|
+
padding: var(--spacing-large);
|
|
65
|
+
overflow-y: auto;
|
|
66
|
+
overflow-x: hidden;
|
|
67
|
+
flex: 1;
|
|
68
|
+
min-width: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.pickupDialogRoot .loading,
|
|
72
|
+
.pickupDialogRoot .error,
|
|
73
|
+
.pickupDialogRoot .empty {
|
|
74
|
+
text-align: center;
|
|
75
|
+
padding: 2rem;
|
|
76
|
+
color: var(--grey-text, #6b7280);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.pickupDialogRoot .error {
|
|
80
|
+
color: #dc2626;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Current pickup section - shown when dialog opens */
|
|
84
|
+
.pickupDialogRoot .currentPickupSection {
|
|
85
|
+
margin-bottom: 1.25rem;
|
|
86
|
+
padding: 1rem;
|
|
87
|
+
background: var(--accent-orange-10, rgba(0, 0, 0, 0.04));
|
|
88
|
+
border-radius: 12px;
|
|
89
|
+
border: 1px solid var(--accent-orange-10, rgba(0, 0, 0, 0.08));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.pickupDialogRoot .currentPickupLabel {
|
|
93
|
+
font-size: 0.75rem;
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
text-transform: uppercase;
|
|
96
|
+
letter-spacing: 0.05em;
|
|
97
|
+
color: var(--grey-text, #6b7280);
|
|
98
|
+
margin: 0 0 0.25rem 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.pickupDialogRoot .currentPickupName {
|
|
102
|
+
font-size: 1rem;
|
|
103
|
+
font-weight: 600;
|
|
104
|
+
color: var(--primary-text, #1f2937);
|
|
105
|
+
margin: 0 0 0.25rem 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.pickupDialogRoot .currentPickupTimes {
|
|
109
|
+
font-size: 0.875rem;
|
|
110
|
+
color: var(--grey-text, #6b7280);
|
|
111
|
+
margin: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.pickupDialogRoot .selectorWrapper {
|
|
115
|
+
margin-bottom: 1.5rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Prevent input overflow - constrain width in flex/grid layouts */
|
|
119
|
+
.pickupDialogRoot .selectorWrapperConstrained {
|
|
120
|
+
min-width: 0;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.pickupDialogRoot .selectorWrapperConstrained > div {
|
|
125
|
+
min-width: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Override Tailwind resets for input and filter pills when inside dialog */
|
|
129
|
+
.pickupDialogRoot .selectorWrapper input[data-pickup-search],
|
|
130
|
+
.pickupDialogRoot .selectorWrapper input[type="text"] {
|
|
131
|
+
width: 100% !important;
|
|
132
|
+
max-width: 100% !important;
|
|
133
|
+
box-sizing: border-box !important;
|
|
134
|
+
padding: 0.5rem 1rem 0.5rem 2.5rem !important;
|
|
135
|
+
font-family: 'Figtree', sans-serif !important;
|
|
136
|
+
font-size: 1rem !important;
|
|
137
|
+
line-height: 1.5 !important;
|
|
138
|
+
color: #1c1917 !important;
|
|
139
|
+
background-color: #fff !important;
|
|
140
|
+
border: 1px solid #d6d3d1 !important;
|
|
141
|
+
border-radius: 0.5rem !important;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.pickupDialogRoot .selectorWrapper input::placeholder {
|
|
145
|
+
color: #a8a29e !important;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.pickupDialogRoot .selectorWrapper input:focus {
|
|
149
|
+
outline: none !important;
|
|
150
|
+
border-color: #78716c !important;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Filter pills - match booking flow (PrivateShuttleBookingFlow / CheckoutForm) */
|
|
154
|
+
.pickupDialogRoot .selectorWrapper [class*="filterPillsScroll"] {
|
|
155
|
+
display: flex !important;
|
|
156
|
+
flex-wrap: nowrap !important;
|
|
157
|
+
align-items: center !important;
|
|
158
|
+
gap: 0.5rem !important;
|
|
159
|
+
margin-bottom: 1rem !important;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.pickupDialogRoot .selectorWrapper [class*="filterPillsScroll"] > div:first-child {
|
|
163
|
+
display: flex !important;
|
|
164
|
+
flex-wrap: wrap !important;
|
|
165
|
+
gap: 0.5rem !important;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.pickupDialogRoot .selectorWrapper [class*="filterPillsScroll"] button {
|
|
169
|
+
padding: 0.875rem 1.25rem !important;
|
|
170
|
+
font-family: 'Figtree', sans-serif !important;
|
|
171
|
+
font-size: 0.875rem !important;
|
|
172
|
+
font-weight: 500 !important;
|
|
173
|
+
border-radius: 9999px !important;
|
|
174
|
+
transition: background-color 0.15s, color 0.15s !important;
|
|
175
|
+
flex-shrink: 0 !important;
|
|
176
|
+
border: none !important;
|
|
177
|
+
cursor: pointer !important;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Unselected - stone/grey to match booking flow */
|
|
181
|
+
.pickupDialogRoot .selectorWrapper [class*="filterPillsScroll"] button:not([class*="bg-emerald"]) {
|
|
182
|
+
background-color: #f5f5f4 !important;
|
|
183
|
+
color: #44403c !important;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.pickupDialogRoot .selectorWrapper [class*="filterPillsScroll"] button:hover:not([class*="bg-emerald"]) {
|
|
187
|
+
background-color: #e7e5e4 !important;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Selected - emerald green to match booking flow */
|
|
191
|
+
.pickupDialogRoot .selectorWrapper [class*="filterPillsScroll"] button[class*="bg-emerald"] {
|
|
192
|
+
background-color: #059669 !important;
|
|
193
|
+
color: #fff !important;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.pickupDialogRoot .selectorWrapper [class*="filterPillsScroll"] button[class*="bg-emerald"]:hover {
|
|
197
|
+
background-color: #047857 !important;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.pickupDialogRoot .mapContainer {
|
|
201
|
+
margin-bottom: var(--spacing-medium);
|
|
202
|
+
border-radius: 12px;
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
border: 1px solid var(--accent-orange-10, rgba(0, 0, 0, 0.08));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.map {
|
|
208
|
+
width: 100%;
|
|
209
|
+
height: 320px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.mapFallback {
|
|
213
|
+
font-size: 0.875rem;
|
|
214
|
+
color: var(--grey-text);
|
|
215
|
+
margin-bottom: var(--spacing-medium);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.infoWindow {
|
|
219
|
+
padding: 0.25rem;
|
|
220
|
+
min-width: 200px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.infoTitle {
|
|
224
|
+
font-weight: 600;
|
|
225
|
+
margin: 0 0 0.25rem 0;
|
|
226
|
+
font-size: 1rem;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.infoAddress {
|
|
230
|
+
font-size: 0.875rem;
|
|
231
|
+
color: var(--grey-text);
|
|
232
|
+
margin: 0 0 0.5rem 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.selectBtn {
|
|
236
|
+
width: 100%;
|
|
237
|
+
padding: 0.5rem 0.75rem;
|
|
238
|
+
background: var(--accent-orange, #e85a2e);
|
|
239
|
+
color: white;
|
|
240
|
+
border: none;
|
|
241
|
+
border-radius: 8px;
|
|
242
|
+
font-weight: 600;
|
|
243
|
+
font-size: 0.875rem;
|
|
244
|
+
cursor: pointer;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.selectBtn:hover:not(:disabled) {
|
|
248
|
+
background: #e85a2e;
|
|
249
|
+
opacity: 0.9;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.selectBtn:disabled {
|
|
253
|
+
opacity: 0.7;
|
|
254
|
+
cursor: not-allowed;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.list {
|
|
258
|
+
display: flex;
|
|
259
|
+
flex-direction: column;
|
|
260
|
+
gap: 0.5rem;
|
|
261
|
+
margin-bottom: var(--spacing-large);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.listItem {
|
|
265
|
+
display: flex;
|
|
266
|
+
flex-direction: column;
|
|
267
|
+
align-items: flex-start;
|
|
268
|
+
padding: 1rem;
|
|
269
|
+
border: 2px solid var(--accent-orange-10, rgba(0, 0, 0, 0.08));
|
|
270
|
+
border-radius: 12px;
|
|
271
|
+
background: transparent;
|
|
272
|
+
cursor: pointer;
|
|
273
|
+
text-align: left;
|
|
274
|
+
transition: border-color 0.15s, background 0.15s;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.listItem:hover {
|
|
278
|
+
border-color: var(--accent-orange, #e85a2e);
|
|
279
|
+
background: rgba(232, 90, 46, 0.05);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.listItemSelected {
|
|
283
|
+
border-color: var(--accent-orange, #e85a2e);
|
|
284
|
+
background: rgba(232, 90, 46, 0.08);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.listName {
|
|
288
|
+
font-weight: 600;
|
|
289
|
+
color: var(--primary-text, #1f2937);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.listAddress {
|
|
293
|
+
font-size: 0.875rem;
|
|
294
|
+
color: var(--grey-text);
|
|
295
|
+
margin-top: 0.25rem;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.pickupDialogRoot .footer {
|
|
299
|
+
display: flex;
|
|
300
|
+
justify-content: flex-end;
|
|
301
|
+
gap: 0.75rem;
|
|
302
|
+
padding-top: var(--spacing-medium);
|
|
303
|
+
border-top: 1px solid #e5e7eb !important;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.pickupDialogRoot .footerBtn {
|
|
307
|
+
font-family: 'Figtree', sans-serif;
|
|
308
|
+
font-size: 0.875rem;
|
|
309
|
+
font-weight: 600;
|
|
310
|
+
padding: 0.625rem 1.25rem;
|
|
311
|
+
border-radius: 9999px;
|
|
312
|
+
cursor: pointer;
|
|
313
|
+
transition: opacity 0.15s, filter 0.15s;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.pickupDialogRoot .footerBtnOutline {
|
|
317
|
+
border: 2px solid var(--grey-text, #6b7280);
|
|
318
|
+
color: var(--grey-text, #6b7280);
|
|
319
|
+
background: transparent;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.pickupDialogRoot .footerBtnOutline:hover {
|
|
323
|
+
opacity: 0.88;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.pickupDialogRoot .footerBtnPrimary {
|
|
327
|
+
border: 2px solid var(--accent-orange, #e85a2e);
|
|
328
|
+
background: var(--accent-orange, #e85a2e);
|
|
329
|
+
color: #fff;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.pickupDialogRoot .footerBtnPrimary:hover:not(:disabled) {
|
|
333
|
+
filter: brightness(1.05);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.pickupDialogRoot .footerBtnPrimary:disabled {
|
|
337
|
+
opacity: 0.45;
|
|
338
|
+
cursor: not-allowed;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/* Itinerary preview before save */
|
|
342
|
+
.pickupDialogRoot .itineraryPreview {
|
|
343
|
+
margin-top: 1rem;
|
|
344
|
+
padding: 1rem;
|
|
345
|
+
background: var(--accent-orange-10, rgba(0, 0, 0, 0.04));
|
|
346
|
+
border-radius: 12px;
|
|
347
|
+
border: 1px solid var(--accent-orange-10, rgba(0, 0, 0, 0.08));
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.pickupDialogRoot .previewTitle {
|
|
351
|
+
font-size: 0.875rem;
|
|
352
|
+
font-weight: 600;
|
|
353
|
+
margin: 0 0 0.5rem 0;
|
|
354
|
+
color: var(--primary-text, #1f2937);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.pickupDialogRoot .previewIntro {
|
|
358
|
+
font-size: 0.8125rem;
|
|
359
|
+
color: var(--grey-text, #6b7280);
|
|
360
|
+
margin: 0 0 0.75rem 0;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.pickupDialogRoot .previewList {
|
|
364
|
+
margin: 0;
|
|
365
|
+
padding-left: 1.25rem;
|
|
366
|
+
font-size: 0.8125rem;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.pickupDialogRoot .previewItem {
|
|
370
|
+
margin-bottom: 0.5rem;
|
|
371
|
+
display: flex;
|
|
372
|
+
flex-wrap: wrap;
|
|
373
|
+
align-items: baseline;
|
|
374
|
+
gap: 0.5rem;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.pickupDialogRoot .previewOld {
|
|
378
|
+
color: var(--grey-text, #6b7280);
|
|
379
|
+
text-decoration: line-through;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.pickupDialogRoot .previewArrow {
|
|
383
|
+
color: var(--accent-orange, #e85a2e);
|
|
384
|
+
font-weight: 600;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.pickupDialogRoot .previewNew {
|
|
388
|
+
color: var(--primary-text, #1f2937);
|
|
389
|
+
font-weight: 500;
|
|
390
|
+
}
|