@qite/tide-booking-component 1.2.3 → 1.2.5

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 (137) hide show
  1. package/.vs/ProjectSettings.json +3 -3
  2. package/.vs/VSWorkspaceState.json +5 -5
  3. package/README.md +8 -8
  4. package/build/build-cjs/booking-product/components/footer.d.ts +1 -0
  5. package/build/build-cjs/booking-product/components/rooms.d.ts +2 -0
  6. package/build/build-cjs/booking-wizard/features/booking/selectors.d.ts +1 -1
  7. package/build/build-cjs/booking-wizard/features/flight-options/flight-option-flight.d.ts +1 -1
  8. package/build/build-cjs/booking-wizard/features/flight-options/flight-option.d.ts +1 -1
  9. package/build/build-cjs/booking-wizard/types.d.ts +5 -0
  10. package/build/build-cjs/index.js +1453 -735
  11. package/build/build-cjs/shared/utils/localization-util.d.ts +4 -0
  12. package/build/build-esm/booking-product/components/footer.d.ts +1 -0
  13. package/build/build-esm/booking-product/components/rooms.d.ts +2 -0
  14. package/build/build-esm/booking-wizard/features/booking/selectors.d.ts +1 -1
  15. package/build/build-esm/booking-wizard/features/flight-options/flight-option-flight.d.ts +1 -1
  16. package/build/build-esm/booking-wizard/features/flight-options/flight-option.d.ts +1 -1
  17. package/build/build-esm/booking-wizard/types.d.ts +5 -0
  18. package/build/build-esm/index.js +1455 -737
  19. package/build/build-esm/shared/utils/localization-util.d.ts +4 -0
  20. package/package.json +75 -77
  21. package/src/booking-product/components/age-select.tsx +35 -41
  22. package/src/booking-product/components/amount-input.tsx +78 -64
  23. package/src/booking-product/components/date-range-picker/calendar-day.tsx +58 -54
  24. package/src/booking-product/components/date-range-picker/calendar.tsx +178 -176
  25. package/src/booking-product/components/date-range-picker/index.tsx +196 -181
  26. package/src/booking-product/components/dates.tsx +136 -132
  27. package/src/booking-product/components/footer.tsx +69 -64
  28. package/src/booking-product/components/header.tsx +79 -68
  29. package/src/booking-product/components/icon.tsx +251 -208
  30. package/src/booking-product/components/product.tsx +314 -277
  31. package/src/booking-product/components/rooms.tsx +195 -177
  32. package/src/booking-product/index.tsx +30 -30
  33. package/src/booking-product/settings-context.ts +14 -14
  34. package/src/booking-product/types.ts +28 -28
  35. package/src/booking-product/utils/api.ts +25 -25
  36. package/src/booking-product/utils/price.ts +29 -27
  37. package/src/booking-wizard/api-settings-slice.ts +24 -24
  38. package/src/booking-wizard/components/icon.tsx +508 -60
  39. package/src/booking-wizard/components/message.tsx +34 -34
  40. package/src/booking-wizard/components/multi-range-filter.tsx +113 -113
  41. package/src/booking-wizard/components/product-card.tsx +37 -37
  42. package/src/booking-wizard/components/step-indicator.tsx +51 -51
  43. package/src/booking-wizard/components/step-route.tsx +27 -27
  44. package/src/booking-wizard/declarations.d.ts +4 -4
  45. package/src/booking-wizard/features/booking/api.ts +49 -45
  46. package/src/booking-wizard/features/booking/booking-self-contained.tsx +384 -357
  47. package/src/booking-wizard/features/booking/booking-slice.ts +662 -603
  48. package/src/booking-wizard/features/booking/booking.tsx +356 -349
  49. package/src/booking-wizard/features/booking/constants.ts +16 -16
  50. package/src/booking-wizard/features/booking/selectors.ts +441 -408
  51. package/src/booking-wizard/features/confirmation/confirmation.tsx +97 -94
  52. package/src/booking-wizard/features/error/error.tsx +78 -75
  53. package/src/booking-wizard/features/flight-options/flight-filter.tsx +432 -344
  54. package/src/booking-wizard/features/flight-options/flight-option-flight.tsx +385 -351
  55. package/src/booking-wizard/features/flight-options/flight-option-modal.tsx +229 -214
  56. package/src/booking-wizard/features/flight-options/flight-option.tsx +81 -66
  57. package/src/booking-wizard/features/flight-options/flight-utils.ts +516 -401
  58. package/src/booking-wizard/features/flight-options/index.tsx +196 -177
  59. package/src/booking-wizard/features/price-details/price-details-api.ts +24 -24
  60. package/src/booking-wizard/features/price-details/price-details-slice.ts +178 -171
  61. package/src/booking-wizard/features/price-details/util.ts +155 -155
  62. package/src/booking-wizard/features/product-options/no-options.tsx +21 -21
  63. package/src/booking-wizard/features/product-options/none-option.tsx +120 -120
  64. package/src/booking-wizard/features/product-options/option-booking-airline-group.tsx +64 -66
  65. package/src/booking-wizard/features/product-options/option-booking-group.tsx +216 -210
  66. package/src/booking-wizard/features/product-options/option-item.tsx +317 -318
  67. package/src/booking-wizard/features/product-options/option-pax-card.tsx +201 -117
  68. package/src/booking-wizard/features/product-options/option-pax-group.tsx +175 -169
  69. package/src/booking-wizard/features/product-options/option-room.tsx +321 -314
  70. package/src/booking-wizard/features/product-options/option-unit-group.tsx +198 -192
  71. package/src/booking-wizard/features/product-options/option-units-card.tsx +185 -102
  72. package/src/booking-wizard/features/product-options/options-form.tsx +459 -437
  73. package/src/booking-wizard/features/room-options/index.tsx +187 -172
  74. package/src/booking-wizard/features/room-options/room-utils.ts +190 -143
  75. package/src/booking-wizard/features/room-options/room.tsx +160 -124
  76. package/src/booking-wizard/features/room-options/traveler-rooms.tsx +75 -63
  77. package/src/booking-wizard/features/sidebar/index.tsx +76 -76
  78. package/src/booking-wizard/features/sidebar/sidebar-flight.tsx +68 -68
  79. package/src/booking-wizard/features/sidebar/sidebar-util.ts +177 -177
  80. package/src/booking-wizard/features/sidebar/sidebar.tsx +364 -346
  81. package/src/booking-wizard/features/summary/summary-booking-option-pax.tsx +25 -25
  82. package/src/booking-wizard/features/summary/summary-booking-option-unit.tsx +25 -25
  83. package/src/booking-wizard/features/summary/summary-flight.tsx +39 -39
  84. package/src/booking-wizard/features/summary/summary-per-booking-option-group.tsx +69 -57
  85. package/src/booking-wizard/features/summary/summary-per-pax-option-group.tsx +63 -51
  86. package/src/booking-wizard/features/summary/summary-per-unit-option-group.tsx +66 -54
  87. package/src/booking-wizard/features/summary/summary-slice.ts +28 -28
  88. package/src/booking-wizard/features/summary/summary.tsx +674 -641
  89. package/src/booking-wizard/features/travelers-form/travelers-form-slice.ts +164 -164
  90. package/src/booking-wizard/features/travelers-form/travelers-form.tsx +754 -755
  91. package/src/booking-wizard/features/travelers-form/type-ahead-input.tsx +101 -101
  92. package/src/booking-wizard/features/travelers-form/validate-form.ts +245 -245
  93. package/src/booking-wizard/index.tsx +36 -36
  94. package/src/booking-wizard/settings-context.ts +60 -60
  95. package/src/booking-wizard/store.ts +31 -31
  96. package/src/booking-wizard/types.ts +276 -271
  97. package/src/index.ts +4 -5
  98. package/src/shared/components/loader.tsx +16 -16
  99. package/src/shared/translations/en-GB.json +232 -0
  100. package/src/shared/translations/fr-BE.json +233 -233
  101. package/src/shared/translations/nl-BE.json +232 -232
  102. package/src/shared/types.ts +4 -4
  103. package/src/shared/utils/localization-util.ts +62 -56
  104. package/src/shared/utils/query-string-util.ts +119 -116
  105. package/src/shared/utils/tide-api-utils.ts +36 -36
  106. package/styles/booking-product-variables.scss +394 -288
  107. package/styles/booking-product.scss +446 -440
  108. package/styles/booking-wizard-variables.scss +871 -0
  109. package/styles/booking-wizard.scss +59 -4
  110. package/styles/components/_animations.scss +39 -39
  111. package/styles/components/_base.scss +107 -106
  112. package/styles/components/_booking.scss +879 -0
  113. package/styles/components/_button.scss +238 -185
  114. package/styles/components/_checkbox.scss +219 -0
  115. package/styles/components/_cta.scss +208 -67
  116. package/styles/components/_date-list.scss +41 -0
  117. package/styles/components/_date-range-picker.scss +225 -224
  118. package/styles/components/_decrement-increment.scss +35 -37
  119. package/styles/components/_dropdown.scss +72 -74
  120. package/styles/components/_flight-option.scss +1429 -0
  121. package/styles/components/_form.scss +1583 -136
  122. package/styles/components/_info-message.scss +71 -0
  123. package/styles/components/_input.scss +25 -0
  124. package/styles/components/_list.scss +187 -0
  125. package/styles/components/_loader.scss +72 -71
  126. package/styles/components/_mixins.scss +550 -518
  127. package/styles/components/_placeholders.scss +166 -166
  128. package/styles/components/_pricing-summary.scss +155 -0
  129. package/styles/components/_qsm.scss +17 -20
  130. package/styles/components/_radiobutton.scss +170 -0
  131. package/styles/components/_select-wrapper.scss +80 -0
  132. package/styles/components/_spinner.scss +29 -0
  133. package/styles/components/_step-indicators.scss +168 -0
  134. package/styles/components/_table.scss +81 -0
  135. package/styles/components/_tree.scss +530 -0
  136. package/styles/components/_typeahead.scss +281 -0
  137. package/styles/components/_variables.scss +89 -89
@@ -1,518 +1,550 @@
1
- // RESET
2
- @mixin reset {
3
- padding: 0;
4
- margin: 0;
5
- box-sizing: border-box;
6
- }
7
-
8
- // MEDIA QUERIES
9
- @mixin media-xs {
10
- @media only screen and (min-width: 576px) {
11
- @content;
12
- }
13
- }
14
-
15
- @mixin media-sm {
16
- @media only screen and (min-width: 768px) {
17
- @content;
18
- }
19
- }
20
-
21
- @mixin media-md {
22
- @media only screen and (min-width: 992px) {
23
- @content;
24
- }
25
- }
26
-
27
- @mixin media-lg {
28
- @media only screen and (min-width: 1200px) {
29
- @content;
30
- }
31
- }
32
-
33
- @mixin media-xl {
34
- @media only screen and (min-width: 1650px) {
35
- @content;
36
- }
37
- }
38
-
39
- @mixin media-xxl {
40
- @media only screen and (min-width: 1920px) {
41
- @content;
42
- }
43
- }
44
-
45
- @mixin orientation--landscape {
46
- @media only screen and (orientation: landscape) {
47
- @content;
48
- }
49
- }
50
-
51
- // GRID
52
-
53
-
54
- @mixin container-wide() {
55
- @include container();
56
- max-width: $container-wide;
57
- }
58
-
59
- @mixin container-medium() {
60
- @include container();
61
- max-width: $container-medium;
62
- }
63
-
64
- @mixin container-small() {
65
- @include container();
66
- max-width: $container-small;
67
- }
68
-
69
- @mixin container-article() {
70
- @include container();
71
- max-width: $container-article;
72
- }
73
-
74
- @mixin row() {
75
- display: flex;
76
- justify-content: center;
77
- //flex-wrap: wrap;
78
- }
79
-
80
- @mixin row--xs() {
81
- display: flex;
82
- flex-direction: column;
83
-
84
- @include media-xs {
85
- flex-direction: row;
86
- }
87
- }
88
-
89
- @mixin row--sm() {
90
- display: flex;
91
- flex-direction: column;
92
-
93
- @include media-sm {
94
- flex-direction: row;
95
- }
96
- }
97
-
98
- @mixin row--md() {
99
- display: flex;
100
- flex-direction: column;
101
-
102
- @include media-md {
103
- flex-direction: row;
104
- }
105
- }
106
-
107
- @mixin row--lg() {
108
- display: flex;
109
- flex-direction: column;
110
-
111
- @include media-lg {
112
- flex-direction: row;
113
- }
114
- }
115
-
116
- @mixin row--xl() {
117
- display: flex;
118
- flex-direction: column;
119
-
120
- @include media-xl {
121
- flex-direction: row;
122
- }
123
- }
124
-
125
- @mixin row--xxl() {
126
- display: flex;
127
- flex-direction: column;
128
-
129
- @include media-xxl {
130
- flex-direction: row;
131
- }
132
- }
133
-
134
- @mixin column() {
135
- display: flex;
136
- flex-direction: column;
137
- }
138
-
139
- @mixin column--xs() {
140
- display: flex;
141
-
142
- @include media-xs {
143
- flex-direction: column;
144
- }
145
- }
146
-
147
- @mixin column--sm() {
148
- display: flex;
149
-
150
- @include media-sm {
151
- flex-direction: column;
152
- }
153
- }
154
-
155
- @mixin column--md() {
156
- display: flex;
157
-
158
- @include media-md {
159
- flex-direction: column;
160
- }
161
- }
162
-
163
- @mixin column--lg() {
164
- display: flex;
165
-
166
- @include media-lg {
167
- flex-direction: column;
168
- }
169
- }
170
-
171
- @mixin column--xl() {
172
- display: flex;
173
-
174
- @include media-xl {
175
- flex-direction: column;
176
- }
177
- }
178
-
179
- @mixin column--xxl() {
180
- display: flex;
181
-
182
- @include media-xxl {
183
- flex-direction: column;
184
- }
185
- }
186
-
187
- @mixin gutter() {
188
- padding: 10px;
189
-
190
- @include media-sm {
191
- padding: 20px;
192
- }
193
-
194
- @include media-lg {
195
- padding: 30px;
196
- }
197
- }
198
-
199
- @mixin gutter--compact() {
200
- padding: 10px;
201
-
202
- @include media-sm {
203
- padding: 15px;
204
- }
205
-
206
- @include media-lg {
207
- padding: 20px;
208
- }
209
- }
210
-
211
- @mixin flex--centerXY() {
212
- display: inline-flex;
213
- justify-content: center;
214
- align-items: center;
215
- }
216
-
217
- @mixin flex--centerX() {
218
- display: inline-flex;
219
- justify-content: center;
220
- }
221
-
222
- @mixin flex--centerY() {
223
- display: inline-flex;
224
- align-items: center;
225
- }
226
-
227
- @mixin object-fit--cover() {
228
- object-fit: cover;
229
- }
230
-
231
- @mixin object-fit--contain() {
232
- object-fit: contain;
233
- }
234
-
235
- @mixin object-position--center() {
236
- object-position: center;
237
- }
238
-
239
- @mixin overflow--x {
240
- overflow-x: auto;
241
- overflow-y: hidden;
242
- }
243
-
244
- @mixin overflow--y {
245
- overflow-x: hidden;
246
- overflow-y: auto;
247
- }
248
-
249
- @mixin overflow--xy {
250
- overflow: auto;
251
- }
252
-
253
- // UI
254
-
255
- @mixin body {
256
- font-family: var(--tide-booking-font-body);
257
- font-size: var(--tide-booking-font-size-body);
258
- line-height: var(--tide-booking-line-height-body);
259
- color: var(--tide-booking-gray-dark);
260
- -webkit-font-smoothing: antialiased;
261
- -moz-osx-font-smoothing: grayscale;
262
-
263
- @include media-lg {
264
- font-size: var(--tide-booking-font-size-body-lg);
265
- }
266
-
267
- &.has-overlay,
268
- &.has-itinerary-schedule-active {
269
- overflow: hidden;
270
- }
271
- }
272
-
273
- @mixin input {
274
- min-height: var(--tide-booking-datepicker-input-height);
275
- padding: 0 15px;
276
- border: var(--tide-booking-datepicker-input-border);
277
- border-radius: var(--tide-booking-datepicker-input-border-radius);
278
- font-family: var(--tide-booking-font-body);
279
- //font-size: 1.6rem;
280
- font-size: var(--tide-booking-font-size-body);
281
- font-weight: 400;
282
- outline: none;
283
- color: var(--tide-booking-datepicker-input-color);
284
- background-color: var(--tide-booking-datepicker-input-background);
285
-
286
- @include media-lg {
287
- //font-size: 1.8rem;
288
- font-size: var(--tide-booking-font-size-body-lg);
289
- min-height: var(--tide-booking-datepicker-input-height-lg);
290
- }
291
-
292
- &:hover,
293
- &:focus,
294
- &:focus-within,
295
- &:active {
296
- outline: none;
297
- }
298
- }
299
-
300
- @mixin textarea {
301
- min-height: 25px;
302
- max-height: 60vh;
303
- padding: 12px 15px;
304
- font-family: var(--tide-booking-font-body);
305
- //font-size: 1.6rem;
306
- font-size: var(--input-font-size--mobile);
307
- border-radius: 5px;
308
- resize: vertical;
309
- outline: none;
310
-
311
- @include media-xs {
312
- //font-size: 1.8rem;
313
- font-size: var(--input-font-size--desktop);
314
- }
315
-
316
- &:focus,
317
- &:active {
318
- border-color: var(--tide-booking-color-secondary);
319
- }
320
- }
321
-
322
- @mixin button {
323
- cursor: pointer;
324
- outline: none;
325
-
326
- &:hover,
327
- &:focus,
328
- &:active {
329
- outline: none;
330
- }
331
- }
332
-
333
- @mixin strong {
334
- font-weight: 400;
335
- color: var(--tide-booking-black);
336
- }
337
-
338
- @mixin small {
339
- font-size: var(--tide-booking-small-font-size--mobile);
340
-
341
- @include media-xs {
342
- font-size: var(--tide-booking-small-font-size--desktop);
343
- }
344
- }
345
-
346
- @mixin border-radius {
347
- border-radius: 5px;
348
- }
349
-
350
- @mixin lineclamp($lineclamp-amount: 1) {
351
- display: block;
352
- display: -webkit-box;
353
- -webkit-line-clamp: $lineclamp-amount;
354
- overflow: hidden;
355
- text-overflow: ellipsis;
356
- -webkit-box-orient: vertical;
357
- /* autoprefixer: off */
358
- }
359
-
360
- @mixin placeholder {
361
- font-style: italic;
362
- color: var(--tide-booking-gray-dark);
363
- }
364
-
365
-
366
- @mixin hover-to-color {
367
- &:hover {
368
- color: var(--tide-booking-black);
369
- }
370
- }
371
-
372
- @mixin focus-to-color {
373
- &:focus,
374
- &:active {
375
- color: var(--tide-booking-black);
376
- }
377
- }
378
-
379
- // TYPOGRAPHY
380
- @mixin heading {
381
- margin: 0;
382
- display: inline-flex;
383
- flex-flow: row wrap;
384
- font-family: var(--tide-booking-font-heading);
385
- font-weight: normal;
386
- line-height: 1.35;
387
- word-break: break-word;
388
- color: var(--tide-booking-black);
389
-
390
- &:empty {
391
- display: none;
392
- }
393
-
394
- em {
395
- width: 100%;
396
- font-family: var(--tide-booking-font-handwritten);
397
- font-style: normal;
398
- }
399
- }
400
-
401
- @mixin h1 {
402
- font-size: var(--tide-booking-h1);
403
-
404
- @include media-sm {
405
- font-size: var(--tide-booking-h1-sm);
406
- }
407
-
408
- @include media-xl {
409
- font-size: var(--tide-booking-h1-xl);
410
- }
411
- }
412
-
413
- @mixin h2 {
414
- font-size: var(--tide-booking-h2);
415
-
416
- @include media-sm {
417
- font-size: var(--tide-booking-h2-sm);
418
- }
419
-
420
- @include media-xl {
421
- font-size: var(--tide-booking-h2-xl);
422
- }
423
- }
424
-
425
- @mixin h3 {
426
- font-size: var(--tide-booking-h3);
427
-
428
- @include media-sm {
429
- font-size: var(--tide-booking-h3-sm);
430
- }
431
-
432
- @include media-xl {
433
- font-size: var(--tide-booking-h3-xl);
434
- }
435
- }
436
-
437
- @mixin h4 {
438
- font-size: var(--tide-booking-h4);
439
-
440
- @include media-sm {
441
- font-size: var(--tide-booking-h4-sm);
442
- }
443
-
444
- @include media-xl {
445
- font-size: var(--tide-booking-h4-xl);
446
- }
447
- }
448
-
449
- @mixin h5 {
450
- font-size: var(--tide-booking-h5);
451
-
452
- @include media-xl {
453
- font-size: var(--tide-booking-h5-xl);
454
- }
455
- }
456
-
457
- @mixin h6 {
458
- font-size: var(--h6);
459
-
460
- @include media-md {
461
- font-size: var(--h6-md);
462
- }
463
- }
464
-
465
-
466
-
467
- // ANIMATIONS
468
- @mixin transitionEasing($duration: 0.35s) {
469
- transition-duration: $duration;
470
- transition-property: width, height, transform, border, fill, color, background,
471
- box-shadow, opacity;
472
- transition-timing-function: ease-out;
473
- }
474
-
475
- // INTERACTIONS
476
- @mixin hoverToColor() {
477
- &:hover {
478
- opacity: 1;
479
- outline: none;
480
- fill: var(--tide-booking-color-primary);
481
- color: var(--tide-booking-color-primary);
482
- background-color: var(--tide-booking-transparent);
483
- }
484
- }
485
-
486
- @mixin activeToColor () {
487
- &:active {
488
- opacity: 1;
489
- outline: none;
490
- fill: var(--tide-booking-color-primary-dark);
491
- color: var(--tide-booking-color-primary-dark);
492
- background-color: var(--tide-booking-transparent);
493
- }
494
- }
495
-
496
- @mixin slideDown($duration: 0.35s) {
497
- @keyframes in {
498
- 0% {
499
- transform: translate3D(0, -100%, 0);
500
- }
501
-
502
- 100% {
503
- transform: translate3D(0, 0, 0);
504
- }
505
- }
506
-
507
- @keyframes out {
508
- 0% {
509
- transform: translate3D(0, 0, 0);
510
- }
511
-
512
- 100% {
513
- transform: translate3D(0, -100%, 0);
514
- }
515
- }
516
- }
517
-
518
-
1
+ // RESET
2
+ @mixin reset {
3
+ padding: 0;
4
+ margin: 0;
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ // MEDIA QUERIES
9
+ @mixin media-xs {
10
+ @media only screen and (min-width: 576px) {
11
+ @content;
12
+ }
13
+ }
14
+
15
+ @mixin media-sm {
16
+ @media only screen and (min-width: 768px) {
17
+ @content;
18
+ }
19
+ }
20
+
21
+ @mixin media-md {
22
+ @media only screen and (min-width: 992px) {
23
+ @content;
24
+ }
25
+ }
26
+
27
+ @mixin media-lg {
28
+ @media only screen and (min-width: 1200px) {
29
+ @content;
30
+ }
31
+ }
32
+
33
+ @mixin media-xl {
34
+ @media only screen and (min-width: 1650px) {
35
+ @content;
36
+ }
37
+ }
38
+
39
+ @mixin media-xxl {
40
+ @media only screen and (min-width: 1920px) {
41
+ @content;
42
+ }
43
+ }
44
+
45
+ @mixin orientation--landscape {
46
+ @media only screen and (orientation: landscape) {
47
+ @content;
48
+ }
49
+ }
50
+
51
+ // GRID
52
+ @mixin container() {
53
+ width: 100%;
54
+ padding: 0 15px;
55
+ margin: 0 auto;
56
+
57
+ @include media-sm {
58
+ padding: 0 30px;
59
+ }
60
+
61
+ @include media-lg {
62
+ padding: 0 45px;
63
+ }
64
+ }
65
+
66
+ @mixin container-wide() {
67
+ @include container();
68
+ max-width: var(--tide-booking-container-wide);
69
+ }
70
+
71
+ @mixin container-medium() {
72
+ @include container();
73
+ max-width: var(--tide-booking-container-medium);
74
+ }
75
+
76
+ @mixin container-small() {
77
+ @include container();
78
+ max-width: var(--tide-booking-container-small);
79
+ }
80
+
81
+ @mixin container-article() {
82
+ @include container();
83
+ max-width: var(--tide-booking-container-article);
84
+ }
85
+
86
+ @mixin row() {
87
+ display: flex;
88
+ justify-content: center;
89
+ //flex-wrap: wrap;
90
+ }
91
+
92
+ @mixin row--xs() {
93
+ display: flex;
94
+ flex-direction: column;
95
+
96
+ @include media-xs {
97
+ flex-direction: row;
98
+ }
99
+ }
100
+
101
+ @mixin row--sm() {
102
+ display: flex;
103
+ flex-direction: column;
104
+
105
+ @include media-sm {
106
+ flex-direction: row;
107
+ }
108
+ }
109
+
110
+ @mixin row--md() {
111
+ display: flex;
112
+ flex-direction: column;
113
+
114
+ @include media-md {
115
+ flex-direction: row;
116
+ }
117
+ }
118
+
119
+ @mixin row--lg() {
120
+ display: flex;
121
+ flex-direction: column;
122
+
123
+ @include media-lg {
124
+ flex-direction: row;
125
+ }
126
+ }
127
+
128
+ @mixin row--xl() {
129
+ display: flex;
130
+ flex-direction: column;
131
+
132
+ @include media-xl {
133
+ flex-direction: row;
134
+ }
135
+ }
136
+
137
+ @mixin row--xxl() {
138
+ display: flex;
139
+ flex-direction: column;
140
+
141
+ @include media-xxl {
142
+ flex-direction: row;
143
+ }
144
+ }
145
+
146
+ @mixin column() {
147
+ display: flex;
148
+ flex-direction: column;
149
+ }
150
+
151
+ @mixin column--xs() {
152
+ display: flex;
153
+
154
+ @include media-xs {
155
+ flex-direction: column;
156
+ }
157
+ }
158
+
159
+ @mixin column--sm() {
160
+ display: flex;
161
+
162
+ @include media-sm {
163
+ flex-direction: column;
164
+ }
165
+ }
166
+
167
+ @mixin column--md() {
168
+ display: flex;
169
+
170
+ @include media-md {
171
+ flex-direction: column;
172
+ }
173
+ }
174
+
175
+ @mixin column--lg() {
176
+ display: flex;
177
+
178
+ @include media-lg {
179
+ flex-direction: column;
180
+ }
181
+ }
182
+
183
+ @mixin column--xl() {
184
+ display: flex;
185
+
186
+ @include media-xl {
187
+ flex-direction: column;
188
+ }
189
+ }
190
+
191
+ @mixin column--xxl() {
192
+ display: flex;
193
+
194
+ @include media-xxl {
195
+ flex-direction: column;
196
+ }
197
+ }
198
+
199
+ @mixin gutter() {
200
+ padding: 10px;
201
+
202
+ @include media-sm {
203
+ padding: 20px;
204
+ }
205
+
206
+ @include media-lg {
207
+ padding: 30px;
208
+ }
209
+ }
210
+
211
+ @mixin gutter--compact() {
212
+ padding: 10px;
213
+
214
+ @include media-sm {
215
+ padding: 15px;
216
+ }
217
+
218
+ @include media-lg {
219
+ padding: 20px;
220
+ }
221
+ }
222
+
223
+ @mixin flex--centerXY() {
224
+ display: inline-flex;
225
+ justify-content: center;
226
+ align-items: center;
227
+ }
228
+
229
+ @mixin flex--centerX() {
230
+ display: inline-flex;
231
+ justify-content: center;
232
+ }
233
+
234
+ @mixin flex--centerY() {
235
+ display: inline-flex;
236
+ align-items: center;
237
+ }
238
+
239
+ @mixin object-fit--cover() {
240
+ object-fit: cover;
241
+ }
242
+
243
+ @mixin object-fit--contain() {
244
+ object-fit: contain;
245
+ }
246
+
247
+ @mixin object-position--center() {
248
+ object-position: center;
249
+ }
250
+
251
+ @mixin overflow--x {
252
+ overflow-x: auto;
253
+ overflow-y: hidden;
254
+ }
255
+
256
+ @mixin overflow--y {
257
+ overflow-x: hidden;
258
+ overflow-y: auto;
259
+ }
260
+
261
+ @mixin overflow--xy {
262
+ overflow: auto;
263
+ }
264
+
265
+ // UI
266
+
267
+ @mixin body {
268
+ font-family: var(--tide-booking-font-body);
269
+ font-size: var(--tide-booking-font-size-body);
270
+ line-height: var(--tide-booking-line-height-body);
271
+ color: var(--tide-booking-gray-dark);
272
+ -webkit-font-smoothing: antialiased;
273
+ -moz-osx-font-smoothing: grayscale;
274
+
275
+ @include media-lg {
276
+ font-size: var(--tide-booking-font-size-body-lg);
277
+ }
278
+
279
+ &.has-overlay,
280
+ &.has-itinerary-schedule-active {
281
+ overflow: hidden;
282
+ }
283
+ }
284
+
285
+ @mixin input {
286
+ min-height: var(--tide-booking-datepicker-input-height);
287
+ padding: 0 15px;
288
+ border: var(--tide-booking-datepicker-input-border);
289
+ border-radius: var(--tide-booking-datepicker-input-border-radius);
290
+ font-family: var(--tide-booking-font-body);
291
+ //font-size: 1.6rem;
292
+ font-size: var(--tide-booking-font-size-body);
293
+ font-weight: 400;
294
+ outline: none;
295
+ color: var(--tide-booking-datepicker-input-color);
296
+ background-color: var(--tide-booking-datepicker-input-background);
297
+
298
+ @include media-lg {
299
+ //font-size: 1.8rem;
300
+ font-size: var(--tide-booking-font-size-body-lg);
301
+ min-height: var(--tide-booking-datepicker-input-height-lg);
302
+ }
303
+
304
+ &:hover,
305
+ &:focus,
306
+ &:focus-within,
307
+ &:active {
308
+ outline: none;
309
+ }
310
+ }
311
+
312
+ @mixin textarea {
313
+ min-height: 250px;
314
+ max-height: 60vh;
315
+ padding: 12px 15px;
316
+ font-family: var(--tide-booking-font-body);
317
+ //font-size: 1.6rem;
318
+ font-size: var(--input-font-size--mobile);
319
+ border-radius: 5px;
320
+ resize: vertical;
321
+ outline: none;
322
+
323
+ @include media-xs {
324
+ //font-size: 1.8rem;
325
+ font-size: var(--input-font-size--desktop);
326
+ }
327
+
328
+ &:focus,
329
+ &:active {
330
+ border: var(--tide-booking-form-input-border-focus);
331
+ }
332
+ }
333
+
334
+ @mixin button {
335
+ cursor: pointer;
336
+ outline: none;
337
+
338
+ &:hover,
339
+ &:focus,
340
+ &:active {
341
+ outline: none;
342
+ }
343
+ }
344
+
345
+ @mixin strong {
346
+ font-weight: 400;
347
+ color: var(--tide-booking-black);
348
+ }
349
+
350
+ @mixin small {
351
+ font-size: var(--tide-booking-small-font-size--mobile);
352
+
353
+ @include media-xs {
354
+ font-size: var(--tide-booking-small-font-size--desktop);
355
+ }
356
+ }
357
+
358
+ @mixin border-radius {
359
+ border-radius: 5px;
360
+ }
361
+
362
+ @mixin lineclamp($lineclamp-amount: 1) {
363
+ display: block;
364
+ display: -webkit-box;
365
+ -webkit-line-clamp: $lineclamp-amount;
366
+ overflow: hidden;
367
+ text-overflow: ellipsis;
368
+ -webkit-box-orient: vertical;
369
+ /* autoprefixer: off */
370
+ }
371
+
372
+ @mixin placeholder {
373
+ font-style: var(--tide-booking-form-input-placeholder-font-style);
374
+ color: var(--tide-booking-form-input-placeholder-color);
375
+ }
376
+
377
+ @mixin hover-to-color {
378
+ &:hover {
379
+ color: var(--tide-booking-black);
380
+ }
381
+ }
382
+
383
+ @mixin focus-to-color {
384
+ &:focus,
385
+ &:active {
386
+ color: var(--tide-booking-black);
387
+ }
388
+ }
389
+
390
+ // TYPOGRAPHY
391
+ @mixin heading {
392
+ margin: 0;
393
+ display: inline-flex;
394
+ flex-flow: row wrap;
395
+ font-family: var(--tide-booking-font-heading);
396
+ font-weight: normal;
397
+ line-height: 1.35;
398
+ word-break: break-word;
399
+ color: var(--tide-booking-heading-color);
400
+
401
+ &:empty {
402
+ display: none;
403
+ }
404
+
405
+ em {
406
+ width: 100%;
407
+ font-family: var(--tide-booking-font-handwritten);
408
+ font-style: normal;
409
+ }
410
+ }
411
+
412
+ @mixin h1 {
413
+ font-size: var(--tide-booking-h1);
414
+
415
+ @include media-sm {
416
+ font-size: var(--tide-booking-h1-sm);
417
+ }
418
+
419
+ @include media-xl {
420
+ font-size: var(--tide-booking-h1-xl);
421
+ }
422
+ }
423
+
424
+ @mixin h2 {
425
+ font-size: var(--tide-booking-h2);
426
+
427
+ @include media-sm {
428
+ font-size: var(--tide-booking-h2-sm);
429
+ }
430
+
431
+ @include media-xl {
432
+ font-size: var(--tide-booking-h2-xl);
433
+ }
434
+ }
435
+
436
+ @mixin h3 {
437
+ font-size: var(--tide-booking-h3);
438
+
439
+ @include media-sm {
440
+ font-size: var(--tide-booking-h3-sm);
441
+ }
442
+
443
+ @include media-xl {
444
+ font-size: var(--tide-booking-h3-xl);
445
+ }
446
+ }
447
+
448
+ @mixin h4 {
449
+ font-size: var(--tide-booking-h4);
450
+
451
+ @include media-sm {
452
+ font-size: var(--tide-booking-h4-sm);
453
+ }
454
+
455
+ @include media-xl {
456
+ font-size: var(--tide-booking-h4-xl);
457
+ }
458
+ }
459
+
460
+ @mixin h5 {
461
+ font-size: var(--tide-booking-h5);
462
+
463
+ @include media-xl {
464
+ font-size: var(--tide-booking-h5-xl);
465
+ }
466
+ }
467
+
468
+ @mixin h6 {
469
+ font-size: var(--tide-booking-h6);
470
+
471
+ @include media-md {
472
+ font-size: var(--tide-booking-h6-md);
473
+ }
474
+ }
475
+
476
+ @mixin a {
477
+ color: var(--tide-booking-a-color);
478
+ cursor: pointer;
479
+ outline: none;
480
+ text-decoration: var(--tide-booking-a-text-decoration);
481
+ @extend %transition-easing;
482
+
483
+ &:hover,
484
+ &:focus,
485
+ &:active {
486
+ outline: none;
487
+ }
488
+
489
+ &:hover {
490
+ color: var(--tide-booking-a-color-hover);
491
+ text-decoration: var(--tide-booking-a-text-decoration-hover);
492
+ }
493
+
494
+ &:focus,
495
+ &:active {
496
+ color: var(--tide-booking-a-color-focus);
497
+ text-decoration: var(--tide-booking-a-text-decoration-focus);
498
+ }
499
+ }
500
+
501
+ // ANIMATIONS
502
+ @mixin transitionEasing($duration: 0.35s) {
503
+ transition-duration: $duration;
504
+ transition-property: width, height, transform, border, fill, color, background,
505
+ box-shadow, opacity;
506
+ transition-timing-function: ease-out;
507
+ }
508
+
509
+ // INTERACTIONS
510
+ @mixin hoverToColor() {
511
+ &:hover {
512
+ opacity: 1;
513
+ outline: none;
514
+ fill: var(--tide-booking-color-primary);
515
+ color: var(--tide-booking-color-primary);
516
+ background-color: var(--tide-booking-transparent);
517
+ }
518
+ }
519
+
520
+ @mixin activeToColor() {
521
+ &:active {
522
+ opacity: 1;
523
+ outline: none;
524
+ fill: var(--tide-booking-color-primary-dark);
525
+ color: var(--tide-booking-color-primary-dark);
526
+ background-color: var(--tide-booking-transparent);
527
+ }
528
+ }
529
+
530
+ @mixin slideDown($duration: 0.35s) {
531
+ @keyframes in {
532
+ 0% {
533
+ transform: translate3D(0, -100%, 0);
534
+ }
535
+
536
+ 100% {
537
+ transform: translate3D(0, 0, 0);
538
+ }
539
+ }
540
+
541
+ @keyframes out {
542
+ 0% {
543
+ transform: translate3D(0, 0, 0);
544
+ }
545
+
546
+ 100% {
547
+ transform: translate3D(0, -100%, 0);
548
+ }
549
+ }
550
+ }