@qite/tide-booking-component 1.2.0 → 1.2.1

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 (70) hide show
  1. package/build/build-cjs/booking-product/components/footer.d.ts +1 -0
  2. package/build/build-cjs/booking-product/components/icon.d.ts +2 -0
  3. package/build/build-cjs/booking-product/types.d.ts +2 -1
  4. package/build/build-cjs/booking-wizard/components/icon.d.ts +2 -0
  5. package/build/build-cjs/{booking-product → booking-wizard}/components/multi-range-filter.d.ts +0 -1
  6. package/build/build-cjs/booking-wizard/features/flight-options/flight-option-flight.d.ts +1 -1
  7. package/build/build-cjs/booking-wizard/features/flight-options/flight-option.d.ts +1 -1
  8. package/build/build-cjs/booking-wizard/types.d.ts +1 -0
  9. package/build/build-cjs/index.js +703 -451
  10. package/build/build-cjs/shared/utils/localization-util.d.ts +238 -3
  11. package/build/build-esm/booking-product/components/footer.d.ts +1 -0
  12. package/build/build-esm/booking-product/components/icon.d.ts +2 -0
  13. package/build/build-esm/booking-product/types.d.ts +2 -1
  14. package/build/build-esm/booking-wizard/components/icon.d.ts +2 -0
  15. package/build/build-esm/{booking-product → booking-wizard}/components/multi-range-filter.d.ts +0 -1
  16. package/build/build-esm/booking-wizard/features/flight-options/flight-option-flight.d.ts +1 -1
  17. package/build/build-esm/booking-wizard/features/flight-options/flight-option.d.ts +1 -1
  18. package/build/build-esm/booking-wizard/types.d.ts +1 -0
  19. package/build/build-esm/index.js +704 -452
  20. package/build/build-esm/shared/utils/localization-util.d.ts +238 -3
  21. package/package.json +1 -1
  22. package/src/booking-product/components/amount-input.tsx +8 -20
  23. package/src/booking-product/components/date-range-picker/calendar.tsx +3 -3
  24. package/src/booking-product/components/dates.tsx +26 -20
  25. package/src/booking-product/components/footer.tsx +4 -2
  26. package/src/booking-product/components/header.tsx +4 -4
  27. package/src/booking-product/components/icon.tsx +176 -11
  28. package/src/booking-product/components/product.tsx +31 -16
  29. package/src/{shared → booking-product}/components/rating.tsx +3 -3
  30. package/src/booking-product/components/rooms.tsx +116 -113
  31. package/src/booking-product/settings-context.ts +0 -1
  32. package/src/booking-product/types.ts +2 -1
  33. package/src/booking-wizard/components/icon.tsx +42 -15
  34. package/src/{booking-product → booking-wizard}/components/multi-range-filter.tsx +0 -1
  35. package/src/booking-wizard/declarations.d.ts +4 -0
  36. package/src/booking-wizard/features/booking/booking-self-contained.tsx +3 -2
  37. package/src/booking-wizard/features/booking/booking.tsx +3 -2
  38. package/src/booking-wizard/features/confirmation/confirmation.tsx +8 -4
  39. package/src/booking-wizard/features/flight-options/flight-filter.tsx +7 -6
  40. package/src/booking-wizard/features/flight-options/flight-option-flight.tsx +29 -28
  41. package/src/booking-wizard/features/flight-options/flight-option-modal.tsx +193 -192
  42. package/src/booking-wizard/features/room-options/index.tsx +1 -5
  43. package/src/booking-wizard/features/summary/summary.tsx +23 -26
  44. package/src/booking-wizard/features/travelers-form/travelers-form.tsx +0 -2
  45. package/src/booking-wizard/features/travelers-form/validate-form.ts +1 -1
  46. package/src/booking-wizard/index.tsx +2 -2
  47. package/src/booking-wizard/types.ts +1 -0
  48. package/src/shared/tide-sprites.svg +117 -0
  49. package/src/shared/translations/fr-BE.json +229 -222
  50. package/src/shared/translations/nl-BE.json +229 -222
  51. package/styles/booking-product-variables.scss +288 -0
  52. package/styles/booking-product.scss +440 -0
  53. package/styles/booking-wizard-variables.scss +0 -0
  54. package/styles/booking-wizard.scss +4 -0
  55. package/styles/components/_animations.scss +39 -0
  56. package/styles/components/_base.scss +106 -0
  57. package/styles/components/_button.scss +185 -0
  58. package/styles/components/_cta.scss +67 -0
  59. package/styles/components/_date-range-picker.scss +224 -0
  60. package/styles/components/_decrement-increment.scss +37 -0
  61. package/styles/components/_dropdown.scss +74 -0
  62. package/styles/components/_form.scss +136 -0
  63. package/styles/components/_loader.scss +71 -0
  64. package/styles/components/_mixins.scss +518 -0
  65. package/styles/components/_placeholders.scss +166 -0
  66. package/styles/components/_qsm.scss +20 -0
  67. package/styles/components/_variables.scss +89 -0
  68. package/src/booking-product/components/multi-range-filter.css +0 -115
  69. /package/build/build-cjs/{shared → booking-product}/components/rating.d.ts +0 -0
  70. /package/build/build-esm/{shared → booking-product}/components/rating.d.ts +0 -0
@@ -0,0 +1,166 @@
1
+ // RESET
2
+ %reset {
3
+ padding: 0;
4
+ margin: 0;
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ // UI
9
+ %cta {
10
+ height: var(--tide-booking-cta-height);
11
+ width: var(--tide-booking-cta-width);
12
+ padding: var(--tide-booking-cta-padding);
13
+ display: inline-flex;
14
+ align-items: center;
15
+ justify-content: center;
16
+ align-self: center;
17
+ gap: 5px;
18
+ outline: none;
19
+ border-radius: var(--tide-booking-cta-border-radius);
20
+ border: var(--tide-booking-cta-border);
21
+ line-height: 1.2;
22
+ font-family: var(--tide-booking-cta-font-family-secondary);
23
+ font-size: var(--tide-booking-cta-font-size);
24
+ font-weight: var(--tide-booking-cta-font-weight);
25
+ text-decoration: var(--tide-booking-cta-text-decoration);
26
+ color: var(--tide-booking-cta-color);
27
+ background: var(--tide-booking-cta-background);
28
+ box-sizing: border-box;
29
+ transition: all .3s ease;
30
+
31
+ @include media-xs {
32
+ width: var(--tide-booking-cta-width-xs);
33
+ height: var(--tide-booking-cta-height-xs);
34
+ font-size: var(--tide-booking-cta-font-size-xs);
35
+ }
36
+
37
+ .icon{
38
+ width: var(--tide-booking-cta-icon-size);
39
+ height: var(--tide-booking-cta-icon-size);
40
+ }
41
+
42
+ &:hover{
43
+ background: var(--tide-booking-cta-background-hover);
44
+ text-decoration: var(--tide-booking-cta-text-decoration-hover);
45
+ color: var(--tide-booking-cta-color-hover);
46
+ fill: var(--tide-booking-cta-icon-color-hover);
47
+ border: var(--tide-booking-cta-border-hover);
48
+
49
+ }
50
+
51
+ &:focus,
52
+ &:active {
53
+ text-decoration: var(--tide-booking-cta-text-decoration-focus);
54
+ background: var(--tide-booking-cta-background-focus);
55
+ color: var(--tide-booking-cta-color-focus);
56
+ fill: var(--tide-booking-cta-icon-color-focus);
57
+ border: var(--tide-booking-cta-border-focus);
58
+ }
59
+
60
+ span {
61
+ display: flex;
62
+ align-items: center;
63
+ gap: 5px;
64
+ }
65
+ }
66
+
67
+ %cta--secondary {
68
+ height: var(--tide-booking-cta-height-secondary);
69
+ width: var(--tide-booking-cta-width-secondary);
70
+ padding: var(--tide-booking-cta-padding-secondary);
71
+ display: inline-flex;
72
+ align-items: center;
73
+ justify-content: center;
74
+ gap: 5px;
75
+ align-self: center;
76
+ outline: none;
77
+ border-radius: var(--tide-booking-cta-border-radius-secondary);
78
+ border: var(--tide-booking-cta-border-secondary);
79
+ line-height: 1.2;
80
+ font-family: var(--tide-booking-cta-font-family-secondary);
81
+ font-size: var(--tide-booking-cta-font-size-secondary);
82
+ font-weight: var(--tide-booking-cta-font-weight-secondary);
83
+ text-decoration: var(--tide-booking-cta-text-decoration-secondary);
84
+ color: var(--tide-booking-cta-color-secondary);
85
+ background: var(--tide-booking-cta-background-secondary-secondary);
86
+ box-sizing: border-box;
87
+ transition: all .3s ease;
88
+
89
+ @include media-xs {
90
+ height: var(--tide-booking-cta-height-xs-secondary);
91
+ font-size: var(--tide-booking-cta-font-size-xs-secondary);
92
+ }
93
+
94
+ .icon{
95
+ width: var(--tide-booking-cta-icon-size-secondary);
96
+ height: var(--tide-booking-cta-icon-size-secondary);
97
+ }
98
+
99
+ &:hover{
100
+ background: var(--tide-booking-cta-background-secondary-hover);
101
+ color: var(--tide-booking-cta-color-secondary-hover);
102
+ fill: var(--tide-booking-cta-icon-color-secondary-hover);
103
+ border: var(--tide-booking-cta-border-secondary-hover);
104
+ text-decoration: var(--tide-booking-cta-text-decoration-secondary-hover);
105
+ }
106
+
107
+ &:focus,
108
+ &:active {
109
+ text-decoration: none;
110
+ background: var(--tide-booking-cta-background-secondary-focus);
111
+ color: var(--tide-booking-cta-color-secondary-focus);
112
+ fill: var(--tide-booking-cta-icon-color-secondary-focus);
113
+ border: var(--tide-booking-cta-border-secondary-focus);
114
+ text-decoration: var(--tide-booking-cta-text-decoration-secondary-hover);
115
+ }
116
+
117
+ span {
118
+ display: flex;
119
+ align-items: center;
120
+ gap: 5px;
121
+ }
122
+ }
123
+
124
+ %scrollbar-thin {
125
+ &::-webkit-scrollbar {
126
+ width: 8px;
127
+ height: 8px;
128
+ }
129
+
130
+ &::-webkit-scrollbar-track {
131
+ padding: 2px;
132
+ background: transparent;
133
+ }
134
+
135
+ &::-webkit-scrollbar-thumb {
136
+ border-radius: 4px;
137
+ background-color: rgba(0, 0, 0, 0.75);
138
+ }
139
+ }
140
+
141
+ %scrollbar-transparent {
142
+ -ms-overflow-style: none;
143
+ scrollbar-width: none;
144
+
145
+ &::-webkit-scrollbar {
146
+ width: 0 !important;
147
+ }
148
+ }
149
+
150
+ %text-decoration-none {
151
+ text-decoration: none;
152
+
153
+ &:hover,
154
+ &:focus,
155
+ &:active {
156
+ text-decoration: none;
157
+ }
158
+ }
159
+
160
+ // ANIMATIONS
161
+ %transition-easing {
162
+ transition-duration: 0.2s;
163
+ transition-property: width, height, transform, border, fill, color,
164
+ background-color, box-shadow, opacity;
165
+ transition-timing-function: ease-out;
166
+ }
@@ -0,0 +1,20 @@
1
+ .qsm {
2
+ @extend %reset;
3
+ &__panel {
4
+ @extend %reset;
5
+ position: absolute;
6
+ border-radius: 0.5rem;
7
+ border: var(--tide-booking-datepicker-container-border);
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ &__close{
12
+ position: absolute;
13
+ right: 15px;
14
+ top: 15px;
15
+ fill: var(--tide-booking-datepicker-close-color);
16
+ }
17
+ }
18
+
19
+
20
+
@@ -0,0 +1,89 @@
1
+ // COLOR DEFINITIONS
2
+ $jelly-bean: #26809b;
3
+ $cerulean: #12aad8;
4
+ $limed-oak: #8f8345;
5
+
6
+ // COLOR ASSIGNMENTS
7
+ $color-primary: $cerulean;
8
+ $color-secondary: $limed-oak;
9
+ $color-star: #9e914f;
10
+ $invalid: #e74c3c;
11
+ $price-increase: #e81212;
12
+ $price-decrease: #19a364;
13
+
14
+ $white: #ffffff;
15
+ $gray-light: #f5f5f5;
16
+ $gray-xlight: #fbfbfb;
17
+ $gray--medium-light: #efefef;
18
+ $gray-background-light: #e2e2e2;
19
+ $gray-border-light: #f3f3f3;
20
+ $gray-border-medium: #e5e5e5;
21
+ $gray-border-tree: #b9b9b9;
22
+ $gray-checkbox-bg: #bdbdbd;
23
+ $gray-medium: #cbcbcb;
24
+ $gray-timeline: #808080;
25
+ $gray-dark: #666666;
26
+ $tree-border-selected: #e0ecff;
27
+ $tree-background-selected: #edfbff;
28
+ $black: #0A0A0A;
29
+ $transparent: transparent;
30
+
31
+ $economy: #334eac;
32
+ $economy-background: #ebedf7;
33
+ $premium: #85204b;
34
+ $premium-background: #f1e6eb;
35
+ $business: #8e8347;
36
+ $business-background: #f5f4ed;
37
+
38
+ // BACKGROUNDS
39
+ $bg-secondary: lighten(#f1efe5, 3%);
40
+ $btn-hover: darken($color-primary, 3%);
41
+
42
+ // TYPOGRAPHY
43
+ $font-heading: "Prata", serif;
44
+ $font-body: "proxima-nova", sans-serif;
45
+ $font-handwritten: "caliban-std", sans-serif;
46
+
47
+ // GRID
48
+ $container-wide: 169rem;
49
+ $container-medium: 120rem;
50
+ $container-small: 90rem;
51
+ $container-article: 65rem;
52
+ $gutter: 1.5rem;
53
+
54
+ // MEDIA QUERIES
55
+ $screen-xs: 576px;
56
+ $screen-sm: 768px;
57
+ $screen-md: 992px;
58
+ $screen-lg: 1200px;
59
+ $screen-xl: 1650px;
60
+ $screen-xxl: 1920px;
61
+
62
+ %scrollbar-none {
63
+ &::-webkit-scrollbar {
64
+ width: 0px;
65
+ height: 0px;
66
+ }
67
+
68
+ &::-webkit-scrollbar-track {
69
+ padding: 0;
70
+ background: transparent;
71
+ }
72
+ }
73
+
74
+ %scrollbar-thin {
75
+ &::-webkit-scrollbar {
76
+ width: 8px;
77
+ height: 8px;
78
+ }
79
+
80
+ &::-webkit-scrollbar-track {
81
+ padding: 2px;
82
+ background: transparent;
83
+ }
84
+
85
+ &::-webkit-scrollbar-thumb {
86
+ border-radius: 4px;
87
+ background-color: fade-out($black, 0.75);
88
+ }
89
+ }
@@ -1,115 +0,0 @@
1
- /* .double-slider-box {
2
- background-color: #fff;
3
- border-radius: 10px;
4
- padding: 20px;
5
- width: 100%;
6
- max-width: 300px;
7
- margin: auto;
8
- }
9
-
10
- .range-slider {
11
- position: relative;
12
- width: 100%;
13
- height: 5px;
14
- margin: 30px 0;
15
- background-color: #8a8a8a;
16
- border-radius: 5px;
17
- }
18
-
19
- .slider-track {
20
- height: 100%;
21
- position: absolute;
22
- background-color: #fe696a;
23
- left: 0;
24
- right: 100%;
25
- border-radius: 5px;
26
- }
27
-
28
- .range-slider input[type="range"] {
29
- position: absolute;
30
- width: 100%;
31
- top: 0;
32
- transform: translateY(-50%);
33
- background: none;
34
- pointer-events: none;
35
- appearance: none;
36
- height: 5px;
37
- }
38
-
39
- input[type="range"]::-webkit-slider-thumb {
40
- height: 25px;
41
- width: 25px;
42
- border-radius: 50%;
43
- border: 3px solid #fff;
44
- background: #fe696a;
45
- pointer-events: auto;
46
- appearance: none;
47
- cursor: pointer;
48
- box-shadow: 0 0.125rem 0.5625rem -0.125rem rgba(0, 0, 0, 0.25);
49
- position: relative;
50
- z-index: 2;
51
- }
52
-
53
- input[type="range"]::-moz-range-thumb {
54
- height: 25px;
55
- width: 25px;
56
- border-radius: 50%;
57
- border: 3px solid #fff;
58
- background: #fe696a;
59
- pointer-events: auto;
60
- cursor: pointer;
61
- box-shadow: 0 0.125rem 0.5625rem -0.125rem rgba(0, 0, 0, 0.25);
62
- position: relative;
63
- z-index: 2;
64
- }
65
-
66
- .input-box {
67
- display: flex;
68
- justify-content: space-between;
69
- width: 100%;
70
- }
71
-
72
- .min-box,
73
- .max-box {
74
- width: 50%;
75
- }
76
-
77
- .min-box {
78
- margin-right: 10px;
79
- }
80
-
81
- .max-box {
82
- text-align: right;
83
- }
84
-
85
- input[type="number"] {
86
- width: 40px;
87
- padding: 10px;
88
- border: 1px solid #ccc;
89
- border-radius: 5px;
90
- text-align: center;
91
- }
92
-
93
- .min-tooltip,
94
- .max-tooltip {
95
- position: absolute;
96
- top: -35px;
97
- font-size: 12px;
98
- color: #555;
99
- background-color: #fff;
100
- padding: 5px;
101
- border: 1px solid #ddd;
102
- border-radius: 5px;
103
- white-space: nowrap;
104
- z-index: 1;
105
- }
106
-
107
- .min-tooltip {
108
- left: 0;
109
- transform: translateX(-50%);
110
- }
111
-
112
- .max-tooltip {
113
- right: 0;
114
- transform: translateX(50%);
115
- } */