@qite/tide-booking-component 1.2.2 → 1.2.4
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/build/build-cjs/booking-product/components/footer.d.ts +1 -0
- package/build/build-cjs/booking-product/components/rooms.d.ts +2 -0
- package/build/build-cjs/booking-wizard/features/booking/selectors.d.ts +1 -1
- package/build/build-cjs/booking-wizard/types.d.ts +0 -1
- package/build/build-cjs/index.js +292 -52
- package/build/build-cjs/shared/utils/localization-util.d.ts +3 -0
- package/build/build-esm/booking-product/components/footer.d.ts +1 -0
- package/build/build-esm/booking-product/components/rooms.d.ts +2 -0
- package/build/build-esm/booking-wizard/features/booking/selectors.d.ts +1 -1
- package/build/build-esm/booking-wizard/types.d.ts +0 -1
- package/build/build-esm/index.js +293 -53
- package/build/build-esm/shared/utils/localization-util.d.ts +3 -0
- package/package.json +1 -1
- package/rollup.config.js +23 -23
- package/src/booking-product/components/footer.tsx +7 -1
- package/src/booking-product/components/product.tsx +5 -1
- package/src/booking-product/components/rating.tsx +21 -21
- package/src/booking-product/components/rooms.tsx +5 -2
- package/src/booking-wizard/components/icon.tsx +250 -1
- package/src/booking-wizard/components/labeled-input.tsx +64 -64
- package/src/booking-wizard/components/labeled-select.tsx +69 -69
- package/src/booking-wizard/features/booking/selectors.ts +12 -2
- package/src/booking-wizard/features/flight-options/flight-filter.tsx +18 -5
- package/src/booking-wizard/features/flight-options/flight-option-flight.tsx +8 -6
- package/src/booking-wizard/features/flight-options/flight-option.tsx +1 -1
- package/src/booking-wizard/features/flight-options/flight-utils.ts +1 -1
- package/src/booking-wizard/features/product-options/option-pax-card.tsx +93 -22
- package/src/booking-wizard/features/product-options/option-units-card.tsx +93 -21
- package/src/booking-wizard/features/sidebar/sidebar-flight.tsx +2 -2
- package/src/booking-wizard/features/summary/summary.tsx +3 -1
- package/src/shared/translations/fr-BE.json +4 -1
- package/src/shared/translations/nl-BE.json +4 -1
- package/src/shared/utils/class-util.ts +9 -9
- package/styles/booking-wizard-variables.scss +530 -0
- package/styles/booking-wizard.scss +23 -1
- package/styles/components/_booking.scss +1409 -0
- package/styles/components/_checkbox.scss +215 -0
- package/styles/components/_cta.scss +80 -14
- package/styles/components/_date-range-picker.scss +1 -0
- package/styles/components/_flight-option.scss +1389 -0
- package/styles/components/_form.scss +258 -0
- package/styles/components/_list.scss +82 -0
- package/styles/components/_mixins.scss +17 -5
- package/styles/components/_placeholders.scss +2 -2
- package/styles/components/_pricing-summary.scss +117 -0
- package/styles/components/_select-wrapper.scss +66 -0
- package/styles/components/_step-indicators.scss +160 -0
- package/styles/components/_table.scss +81 -0
- package/styles/components/_tree.scss +540 -0
- package/tsconfig.json +24 -24
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
.step-indicators {
|
|
2
|
+
@extend %reset;
|
|
3
|
+
width: 100%;
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
padding-bottom: 15px;
|
|
7
|
+
margin-bottom: 20px;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
|
|
10
|
+
&__items {
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 100%;
|
|
13
|
+
max-width: 100vw;
|
|
14
|
+
padding-bottom: 15px;
|
|
15
|
+
margin-bottom: 22.5px;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-grow: 0;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
align-items: flex-start;
|
|
20
|
+
|
|
21
|
+
&:before {
|
|
22
|
+
content: "";
|
|
23
|
+
position: absolute;
|
|
24
|
+
width: 95%;
|
|
25
|
+
height: 0;
|
|
26
|
+
left: 2.5%;
|
|
27
|
+
top: 20px;
|
|
28
|
+
border-bottom: var(--tide-booking-step-indicators-line-trough);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__item {
|
|
33
|
+
position: relative;
|
|
34
|
+
padding-bottom: 1.05rem;
|
|
35
|
+
@include column;
|
|
36
|
+
align-items: center;
|
|
37
|
+
text-align: center;
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
color: inherit !important;
|
|
40
|
+
|
|
41
|
+
&:first-child {
|
|
42
|
+
align-items: flex-start;
|
|
43
|
+
text-align: left;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:last-child {
|
|
47
|
+
align-items: flex-end;
|
|
48
|
+
text-align: right;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__item--active {
|
|
53
|
+
&:before {
|
|
54
|
+
content: "";
|
|
55
|
+
position: absolute;
|
|
56
|
+
width: 200%;
|
|
57
|
+
height: 1.5px;
|
|
58
|
+
margin-top: .75px;
|
|
59
|
+
top: 15px;
|
|
60
|
+
left: 35px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.step-indicators {
|
|
64
|
+
&__icon {
|
|
65
|
+
border: var(--tide-booking-step-indicators-icon-border-active);
|
|
66
|
+
color: transparent;
|
|
67
|
+
background-color: var(--tide-booking-step-indicators-icon-background-active);
|
|
68
|
+
animation: pulse 7s infinite;
|
|
69
|
+
|
|
70
|
+
&:before {
|
|
71
|
+
content: "";
|
|
72
|
+
position: absolute;
|
|
73
|
+
width: 17px;
|
|
74
|
+
height: 6px;
|
|
75
|
+
margin-top: -5px;
|
|
76
|
+
margin-left: -2px;
|
|
77
|
+
border-left: 2px solid;
|
|
78
|
+
border-bottom: 2px solid;
|
|
79
|
+
border-color: var(--tide-booking-step-indicators-icon-check-color-active);
|
|
80
|
+
transform: rotate(-45deg);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&__text {
|
|
85
|
+
color: var(--tide-booking-step-indicators-icon-color-text-active);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&__item--completed {
|
|
91
|
+
&:before {
|
|
92
|
+
content: "";
|
|
93
|
+
position: absolute;
|
|
94
|
+
width: 200%;
|
|
95
|
+
height: 1.5px;
|
|
96
|
+
margin-top: .75px;
|
|
97
|
+
top: 15px;
|
|
98
|
+
left: 35px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.step-indicators__icon {
|
|
102
|
+
border: var(--tide-booking-step-indicators-icon-color-completed);
|
|
103
|
+
color: transparent;
|
|
104
|
+
background-color: var(--tide-booking-step-indicators-icon-background-completed);
|
|
105
|
+
|
|
106
|
+
&:before {
|
|
107
|
+
content: "";
|
|
108
|
+
position: absolute;
|
|
109
|
+
width: 17px;
|
|
110
|
+
height: 6px;
|
|
111
|
+
margin-top: -5px;
|
|
112
|
+
margin-left: -2px;
|
|
113
|
+
border-left: 2px solid;
|
|
114
|
+
border-bottom: 2px solid;
|
|
115
|
+
border-color: var(--tide-booking-step-indicators-icon-check-color-completed);
|
|
116
|
+
transform: rotate(-45deg);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&__icon {
|
|
122
|
+
@extend %reset;
|
|
123
|
+
position: relative;
|
|
124
|
+
width: 40px;
|
|
125
|
+
height: 40px;
|
|
126
|
+
padding-top: 2px;
|
|
127
|
+
@include flex--centerXY;
|
|
128
|
+
flex: 0 0 40px;
|
|
129
|
+
border-radius: var(--tide-booking-step-indicators-icon-border-radius);
|
|
130
|
+
font-family: var(--tide-booking-step-indicators-icon-font-family);
|
|
131
|
+
color: var(--tide-booking-step-indicators-icon-color);
|
|
132
|
+
background-color: var(--tide-booking-step-indicators-icon-background);
|
|
133
|
+
@extend %transition-easing;
|
|
134
|
+
z-index: 1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&__text {
|
|
138
|
+
position: absolute;
|
|
139
|
+
max-width: 20vw;
|
|
140
|
+
top: 50px;
|
|
141
|
+
font-family: var(--tide-booking-step-indicators-icon-font-family);
|
|
142
|
+
font-size: 10px;
|
|
143
|
+
line-height: 1.2;
|
|
144
|
+
text-overflow: ellipsis;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
|
|
147
|
+
@include media-xs {
|
|
148
|
+
font-size: 12px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@include media-sm {
|
|
152
|
+
font-size: 14px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@include media-md {
|
|
156
|
+
//font-size: 1.8rem;
|
|
157
|
+
font-size: 16px;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
.table--striped {
|
|
2
|
+
width: 100%;
|
|
3
|
+
table-layout: fixed;
|
|
4
|
+
border-collapse: collapse;
|
|
5
|
+
border-radius: 5px;
|
|
6
|
+
font-size: 13px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
@include media-lg {
|
|
10
|
+
font-size: 16px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
tr {
|
|
14
|
+
& + tr {
|
|
15
|
+
transform: translateY(-10px);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
th,
|
|
20
|
+
td {
|
|
21
|
+
text-align: left;
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
td {
|
|
26
|
+
padding: 15px * 0.7;
|
|
27
|
+
|
|
28
|
+
&:first-child {
|
|
29
|
+
border-radius: 15px * 0.3 15px * 0.3 0 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:last-child {
|
|
33
|
+
border-radius: 0 0 15px * 0.3 15px * 0.3;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
tbody {
|
|
38
|
+
tr {
|
|
39
|
+
border-radius: 15px * 0.3;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
tr:nth-of-type(odd) {
|
|
43
|
+
background: fade-out($color-primary, 0.95);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.tree .tree__level .tree__level .table--striped tbody tr:last-child td {
|
|
49
|
+
border-bottom: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tree__body .table--striped {
|
|
53
|
+
margin-top: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.tree__body .tree__level td {
|
|
57
|
+
padding: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.tree__body .tree__level tbody tr + tr td {
|
|
61
|
+
border-top: 10px solid fade-out($black, 0.95);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.tree__level .tree__level .table--striped tr:nth-of-type(odd) {
|
|
65
|
+
background: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tree__level .tree__level .table--striped tbody tr:nth-of-type(odd) tbody {
|
|
69
|
+
th,
|
|
70
|
+
td {
|
|
71
|
+
border-bottom: 10px solid fade-out($black, 0.95);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.booking .table--striped td {
|
|
76
|
+
padding: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.booking .table--striped tbody tr:nth-of-type(odd) {
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
}
|