bukazu-portal-react 3.3.3 → 3.3.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/index.css +1 -1
- package/build/portal.es.js +19931 -20259
- package/build/portal.umd.js +80 -82
- package/package.json +9 -7
- package/.env.development +0 -1
- package/.eslintrc +0 -25
- package/.github/dependabot.yml +0 -11
- package/.github/workflows/node.js.yml +0 -31
- package/.github/workflows/npm-publish.yml +0 -33
- package/.nvmrc +0 -1
- package/.prettierrc +0 -6
- package/.vscode/settings.json +0 -24
- package/CHANGELOG.MD +0 -93
- package/babel.config.json +0 -6
- package/calendar.html +0 -16
- package/coverage/clover.xml +0 -28
- package/coverage/coverage-final.json +0 -2
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/helper.ts.html +0 -142
- package/coverage/lcov-report/index.html +0 -116
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -36
- package/cypress/e2e/.examples/actions.spec.js +0 -299
- package/cypress/e2e/.examples/aliasing.spec.js +0 -39
- package/cypress/e2e/.examples/assertions.spec.js +0 -177
- package/cypress/e2e/.examples/connectors.spec.js +0 -97
- package/cypress/e2e/.examples/cookies.spec.js +0 -77
- package/cypress/e2e/.examples/cypress_api.spec.js +0 -202
- package/cypress/e2e/.examples/files.spec.js +0 -89
- package/cypress/e2e/.examples/local_storage.spec.js +0 -52
- package/cypress/e2e/.examples/location.spec.js +0 -32
- package/cypress/e2e/.examples/misc.spec.js +0 -104
- package/cypress/e2e/.examples/navigation.spec.js +0 -56
- package/cypress/e2e/.examples/network_requests.spec.js +0 -163
- package/cypress/e2e/.examples/querying.spec.js +0 -114
- package/cypress/e2e/.examples/spies_stubs_clocks.spec.js +0 -205
- package/cypress/e2e/.examples/traversal.spec.js +0 -121
- package/cypress/e2e/.examples/utilities.spec.js +0 -110
- package/cypress/e2e/.examples/viewport.spec.js +0 -59
- package/cypress/e2e/.examples/waiting.spec.js +0 -31
- package/cypress/e2e/.examples/window.spec.js +0 -22
- package/cypress/e2e/booking.spec.js +0 -81
- package/cypress/e2e/calendar.spec.js +0 -21
- package/cypress/e2e/search.spec.js +0 -25
- package/cypress/fixtures/example.json +0 -5
- package/cypress/plugins/index.js +0 -16
- package/cypress/support/commands.js +0 -25
- package/cypress/support/commands.ts +0 -37
- package/cypress/support/component-index.html +0 -12
- package/cypress/support/component.ts +0 -39
- package/cypress/support/e2e.js +0 -20
- package/cypress.config.ts +0 -15
- package/dev.tsx +0 -44
- package/index.html +0 -15
- package/invalid-calendar.html +0 -16
- package/jest.config.js +0 -195
- package/postcss.config.js +0 -17
- package/reviews.html +0 -16
- package/src/_lib/SearchQueries.ts +0 -145
- package/src/_lib/Tracking.ts +0 -51
- package/src/_lib/countries/de.json +0 -998
- package/src/_lib/countries/en.json +0 -998
- package/src/_lib/countries/es.json +0 -998
- package/src/_lib/countries/fr.json +0 -998
- package/src/_lib/countries/it.json +0 -998
- package/src/_lib/countries/nl.json +0 -998
- package/src/_lib/countries.ts +0 -15
- package/src/_lib/date_helper.ts +0 -27
- package/src/_lib/queries.ts +0 -244
- package/src/components/App.tsx +0 -108
- package/src/components/AppContext.ts +0 -14
- package/src/components/CalendarPage/BookingForm.tsx +0 -49
- package/src/components/CalendarPage/Calendar.tsx +0 -49
- package/src/components/CalendarPage/CalendarPage.tsx +0 -43
- package/src/components/CalendarPage/CalendarParts/CalendarContext.tsx +0 -89
- package/src/components/CalendarPage/CalendarParts/CalendarHeader.tsx +0 -72
- package/src/components/CalendarPage/CalendarParts/DayClasses.ts +0 -113
- package/src/components/CalendarPage/CalendarParts/GenerateCalendar.tsx +0 -72
- package/src/components/CalendarPage/CalendarParts/Legend.tsx +0 -33
- package/src/components/CalendarPage/CalendarParts/MonthHeader.tsx +0 -15
- package/src/components/CalendarPage/CalendarParts/Months.tsx +0 -37
- package/src/components/CalendarPage/CalendarParts/RenderCells.tsx +0 -97
- package/src/components/CalendarPage/CalendarParts/SingleMonth.tsx +0 -72
- package/src/components/CalendarPage/CalendarParts/StartBooking.tsx +0 -17
- package/src/components/CalendarPage/CalendarParts/WeekDays.tsx +0 -27
- package/src/components/CalendarPage/FormCreator.tsx +0 -230
- package/src/components/CalendarPage/FormItems/Date.tsx +0 -61
- package/src/components/CalendarPage/FormItems/NumberSelect.tsx +0 -39
- package/src/components/CalendarPage/FormItems/Select.tsx +0 -38
- package/src/components/CalendarPage/FormItems/index.ts +0 -4
- package/src/components/CalendarPage/PriceField/Price.tsx +0 -58
- package/src/components/CalendarPage/PriceField/Queries.ts +0 -23
- package/src/components/CalendarPage/PriceField/index.tsx +0 -129
- package/src/components/CalendarPage/Summary/CostRow.tsx +0 -58
- package/src/components/CalendarPage/Summary/CostSection.tsx +0 -15
- package/src/components/CalendarPage/Summary/CostSummary.tsx +0 -61
- package/src/components/CalendarPage/Summary/Description.tsx +0 -27
- package/src/components/CalendarPage/Summary/InsurancesAndRequired.tsx +0 -68
- package/src/components/CalendarPage/Summary/Object.tsx +0 -59
- package/src/components/CalendarPage/Summary/OnSite.tsx +0 -36
- package/src/components/CalendarPage/Summary/OptionalNotOnSite.tsx +0 -43
- package/src/components/CalendarPage/Summary/OptionalOnSite.tsx +0 -39
- package/src/components/CalendarPage/Summary/Queries.ts +0 -31
- package/src/components/CalendarPage/Summary/RentAndDiscount.tsx +0 -30
- package/src/components/CalendarPage/Summary/Totals.tsx +0 -89
- package/src/components/CalendarPage/Summary/cost_types.d.ts +0 -31
- package/src/components/CalendarPage/Summary/index.tsx +0 -24
- package/src/components/CalendarPage/calender_types.d.ts +0 -16
- package/src/components/CalendarPage/formParts/AssistanceMessage.tsx +0 -60
- package/src/components/CalendarPage/formParts/BookingHelpers.tsx +0 -47
- package/src/components/CalendarPage/formParts/BookingOrOption.tsx +0 -35
- package/src/components/CalendarPage/formParts/CancelInsuranceText.tsx +0 -69
- package/src/components/CalendarPage/formParts/DefaultBookingFields.ts +0 -105
- package/src/components/CalendarPage/formParts/DiscountCode.tsx +0 -62
- package/src/components/CalendarPage/formParts/Guests.tsx +0 -77
- package/src/components/CalendarPage/formParts/OptionalBookingFields.tsx +0 -148
- package/src/components/CalendarPage/formParts/OptionalCosts.tsx +0 -103
- package/src/components/CalendarPage/formParts/SuccessMessage.tsx +0 -31
- package/src/components/CalendarPage/formParts/Validations.tsx +0 -64
- package/src/components/CalendarPage/formParts/discount.tsx +0 -69
- package/src/components/CalendarPage/formParts/form_types.d.ts +0 -38
- package/src/components/CalendarPage/formParts/insurances.tsx +0 -62
- package/src/components/CalendarPage/formParts/radioButtons.tsx +0 -66
- package/src/components/Error/ApiError.tsx +0 -33
- package/src/components/Error/IntegrationError.tsx +0 -62
- package/src/components/Error/index.ts +0 -4
- package/src/components/ErrorBoundary.tsx +0 -34
- package/src/components/Modal/index.tsx +0 -46
- package/src/components/ReviewsPage/Queries.ts +0 -26
- package/src/components/ReviewsPage/ReviewsPage.tsx +0 -45
- package/src/components/ReviewsPage/Score.tsx +0 -29
- package/src/components/ReviewsPage/SingleReview.tsx +0 -38
- package/src/components/ReviewsPage/note.tsx +0 -17
- package/src/components/SafeBooking.tsx +0 -96
- package/src/components/SearchPage/Field.tsx +0 -75
- package/src/components/SearchPage/Filters.tsx +0 -91
- package/src/components/SearchPage/Paginator.tsx +0 -63
- package/src/components/SearchPage/Results.tsx +0 -129
- package/src/components/SearchPage/SearchPage.tsx +0 -115
- package/src/components/SearchPage/SingleResult.tsx +0 -93
- package/src/components/SearchPage/filters/Categories.tsx +0 -57
- package/src/components/SearchPage/filters/DateFilter.tsx +0 -34
- package/src/components/SearchPage/filters/List.tsx +0 -80
- package/src/components/SearchPage/filters/NumberFilter.tsx +0 -37
- package/src/components/SearchPage/filters/Radio.tsx +0 -46
- package/src/components/SearchPage/filters/Select.tsx +0 -85
- package/src/components/SearchPage/filters/__tests__/helper.spec.js +0 -13
- package/src/components/SearchPage/filters/filter_types.d.ts +0 -25
- package/src/components/SearchPage/filters/helper.ts +0 -19
- package/src/components/icons/ArrowLeft.svg.tsx +0 -20
- package/src/components/icons/ArrowRight.svg.tsx +0 -16
- package/src/components/icons/Reload.svg.tsx +0 -23
- package/src/components/icons/info.svg.tsx +0 -24
- package/src/components/icons/loading.svg.tsx +0 -98
- package/src/custom.d.ts +0 -10
- package/src/index.tsx +0 -104
- package/src/locales/de.json +0 -137
- package/src/locales/en.json +0 -137
- package/src/locales/es.json +0 -132
- package/src/locales/fr.json +0 -132
- package/src/locales/it.json +0 -128
- package/src/locales/nl.json +0 -138
- package/src/styles/calendar.css +0 -317
- package/src/styles/datepicker.css +0 -6
- package/src/styles/field.css +0 -105
- package/src/styles/filters.css +0 -92
- package/src/styles/form.css +0 -219
- package/src/styles/main.css +0 -80
- package/src/styles/modal.css +0 -79
- package/src/styles/pagination.css +0 -92
- package/src/styles/price-overview.css +0 -111
- package/src/styles/result.css +0 -142
- package/src/styles/results.css +0 -50
- package/src/styles/reviews.css +0 -90
- package/src/styles/success.css +0 -9
- package/src/types.d.ts +0 -91
- package/tmp/cache/vite/last-build-production.json +0 -7
- package/tsconfig.json +0 -17
- package/vite.config.ts +0 -31
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
.price-overview {
|
|
2
|
-
padding: 16px;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
background-color: #fff;
|
|
6
|
-
@media screen and (max-width: 992px) {
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
}
|
|
9
|
-
table {
|
|
10
|
-
width: 100%;
|
|
11
|
-
}
|
|
12
|
-
th {
|
|
13
|
-
text-align: left;
|
|
14
|
-
}
|
|
15
|
-
tr {
|
|
16
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.25);
|
|
17
|
-
&.hidden {
|
|
18
|
-
display: none;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
td {
|
|
22
|
-
padding: 4px;
|
|
23
|
-
width: 50%;
|
|
24
|
-
&.price {
|
|
25
|
-
text-align: right;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
td.column {
|
|
29
|
-
width: 30%;
|
|
30
|
-
}
|
|
31
|
-
.price-list {
|
|
32
|
-
list-style: none;
|
|
33
|
-
padding: 0;
|
|
34
|
-
text-align: right;
|
|
35
|
-
}
|
|
36
|
-
ul {
|
|
37
|
-
padding: 0;
|
|
38
|
-
list-style: none;
|
|
39
|
-
li {
|
|
40
|
-
padding: 4px 0;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
&--build {
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-direction: row;
|
|
46
|
-
/* width: 30%; */
|
|
47
|
-
/* min-height: 200px; */
|
|
48
|
-
flex: 1 1 auto;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
flex-wrap: wrap;
|
|
51
|
-
align-items: flex-start;
|
|
52
|
-
padding: 16px;
|
|
53
|
-
@media screen and (max-width: 992px) {
|
|
54
|
-
padding: 16px 0;
|
|
55
|
-
min-height: 0px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
&--extra {
|
|
59
|
-
display: flex;
|
|
60
|
-
padding: 16px;
|
|
61
|
-
flex-direction: column;
|
|
62
|
-
flex: 1 1 auto;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
align-items: center;
|
|
65
|
-
/* width: 30%; */
|
|
66
|
-
.data-label {
|
|
67
|
-
font-size: 18px;
|
|
68
|
-
}
|
|
69
|
-
.data {
|
|
70
|
-
padding: 16px;
|
|
71
|
-
font-size: 20px;
|
|
72
|
-
font-weight: bold;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
&--book {
|
|
76
|
-
flex: 1 1 auto;
|
|
77
|
-
/* width: 30%; */
|
|
78
|
-
padding: 4px;
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-direction: column;
|
|
81
|
-
justify-content: center;
|
|
82
|
-
align-items: center;
|
|
83
|
-
@media screen and (max-width: 992px) {
|
|
84
|
-
padding: 16px 0;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
& > div {
|
|
88
|
-
padding: 4px 0;
|
|
89
|
-
}
|
|
90
|
-
.price {
|
|
91
|
-
font-size: 28px;
|
|
92
|
-
@media screen and (min-width: 1200px) {
|
|
93
|
-
font-size: 32px;
|
|
94
|
-
}
|
|
95
|
-
font-weight: bold;
|
|
96
|
-
}
|
|
97
|
-
i {
|
|
98
|
-
font-size: 14px;
|
|
99
|
-
@media screen and (min-width: 1200px) {
|
|
100
|
-
font-size: 16px;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
#bukazu-app > .bu-smaller > .price-overview {
|
|
108
|
-
width: 100%;
|
|
109
|
-
flex-direction: column;
|
|
110
|
-
}
|
|
111
|
-
|
package/src/styles/result.css
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
.bukazu-result {
|
|
2
|
-
width: 300px;
|
|
3
|
-
margin: 8px;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
appearance: none;
|
|
6
|
-
text-decoration: none;
|
|
7
|
-
display: block;
|
|
8
|
-
/* box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.25); */
|
|
9
|
-
/* border-radius: 16px; */
|
|
10
|
-
transition: all 0.5s ease;
|
|
11
|
-
&:hover {
|
|
12
|
-
/* box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.25); */
|
|
13
|
-
text-decoration: none;
|
|
14
|
-
}
|
|
15
|
-
&-inner {
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
color: rgba(26, 25, 25, 1);
|
|
18
|
-
border: 1px solid rgba(69, 74, 83, 0.2);
|
|
19
|
-
height: 100%;
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
.image-holder {
|
|
23
|
-
padding-top: 75%;
|
|
24
|
-
position: relative;
|
|
25
|
-
width: 100%;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
img {
|
|
28
|
-
position: absolute;
|
|
29
|
-
top: 0;
|
|
30
|
-
left: 0;
|
|
31
|
-
bottom: 0;
|
|
32
|
-
right: 0;
|
|
33
|
-
height: 100%;
|
|
34
|
-
min-height: 100%;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.result {
|
|
39
|
-
position: relative;
|
|
40
|
-
flex: 1 1 auto;
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
font-size: 14px;
|
|
44
|
-
background: #fff;
|
|
45
|
-
text-decoration: none;
|
|
46
|
-
&-title {
|
|
47
|
-
padding: 8px;
|
|
48
|
-
font-weight: bold;
|
|
49
|
-
}
|
|
50
|
-
&-place {
|
|
51
|
-
padding: 4px 8px;
|
|
52
|
-
}
|
|
53
|
-
&-description {
|
|
54
|
-
padding: 8px;
|
|
55
|
-
flex: 1 1 auto;
|
|
56
|
-
}
|
|
57
|
-
&-details {
|
|
58
|
-
padding: 8px;
|
|
59
|
-
display: flex;
|
|
60
|
-
justify-content: space-evenly;
|
|
61
|
-
border-bottom: 1px solid rgba(69, 74, 83, 0.2);
|
|
62
|
-
}
|
|
63
|
-
&-rating {
|
|
64
|
-
position: absolute;
|
|
65
|
-
right: 8px;
|
|
66
|
-
top: 8px;
|
|
67
|
-
&-inner {
|
|
68
|
-
background: var(--bukazu-button);
|
|
69
|
-
position: relative;
|
|
70
|
-
color: #000;
|
|
71
|
-
font-weight: bold;
|
|
72
|
-
padding: 6px 10px;
|
|
73
|
-
font-size: 14px;
|
|
74
|
-
line-height: 14px;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
&-price {
|
|
78
|
-
display: flex;
|
|
79
|
-
flex-direction: column;
|
|
80
|
-
justify-content: center;
|
|
81
|
-
align-items: center;
|
|
82
|
-
padding: 12px 8px;
|
|
83
|
-
|
|
84
|
-
span.price {
|
|
85
|
-
padding: 8px 0 0;
|
|
86
|
-
font-size: 18px;
|
|
87
|
-
font-weight: bold;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
&-button {
|
|
91
|
-
background: var(--bukazu-button_cta);
|
|
92
|
-
text-align: center;
|
|
93
|
-
padding: 8px;
|
|
94
|
-
position: relative;
|
|
95
|
-
display:flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
justify-content: center;
|
|
98
|
-
font-weight: bold;
|
|
99
|
-
&:before {
|
|
100
|
-
position: absolute;
|
|
101
|
-
height: 100%;
|
|
102
|
-
content: "";
|
|
103
|
-
background-color: var(--bukazu-button_cta);
|
|
104
|
-
mix-blend-mode: multiply;
|
|
105
|
-
width: 0px;
|
|
106
|
-
left: 0;
|
|
107
|
-
top: 0;
|
|
108
|
-
bottom: 0;
|
|
109
|
-
transition: all 0.8s ease;
|
|
110
|
-
}
|
|
111
|
-
&:hover {
|
|
112
|
-
mix-blend-mode: multiply;
|
|
113
|
-
&:before {
|
|
114
|
-
width: 100%;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
.list .bukazu-result {
|
|
122
|
-
@media screen and (min-width: 992px) {
|
|
123
|
-
width: 100%;
|
|
124
|
-
.bukazu-result-inner {
|
|
125
|
-
flex-direction: row;
|
|
126
|
-
.image-holder {
|
|
127
|
-
width: 400px;
|
|
128
|
-
height: 300px;
|
|
129
|
-
padding: 0;
|
|
130
|
-
img {
|
|
131
|
-
width: 100%;
|
|
132
|
-
height: auto;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
.result {
|
|
136
|
-
&-description {
|
|
137
|
-
max-width: 90ch;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
package/src/styles/results.css
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#bukazu-app .bu-smaller #results {
|
|
2
|
-
padding: 8px;
|
|
3
|
-
}
|
|
4
|
-
#bukazu-app #results {
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
flex-direction: row;
|
|
7
|
-
flex-wrap: wrap;
|
|
8
|
-
padding: 16px;
|
|
9
|
-
align-items: stretch;
|
|
10
|
-
align-content: flex-start;
|
|
11
|
-
@media screen and (max-width: 992px) {
|
|
12
|
-
justify-content: space-around;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.bu-paginator {
|
|
16
|
-
display: flex;
|
|
17
|
-
justify-content: space-between;
|
|
18
|
-
align-items: center;
|
|
19
|
-
width: 100%;
|
|
20
|
-
padding: 8px 16px 0;
|
|
21
|
-
.pagination {
|
|
22
|
-
display: flex;
|
|
23
|
-
list-style: none;
|
|
24
|
-
li {
|
|
25
|
-
padding: 8px;
|
|
26
|
-
a {
|
|
27
|
-
text-decoration: none;
|
|
28
|
-
color: #000;
|
|
29
|
-
}
|
|
30
|
-
&.disabled {
|
|
31
|
-
a {
|
|
32
|
-
color: rgba(0, 0, 0, 0.5);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
&.active {
|
|
36
|
-
border: 1px solid var(--bukazu-button);
|
|
37
|
-
a {
|
|
38
|
-
color: #000 !important;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
#bukazu-app #results .object-inner {
|
|
47
|
-
color: rgba(26, 25, 25, 1);
|
|
48
|
-
border: 1px solid rgba(69, 74, 83, 0.2);
|
|
49
|
-
border-radius: 5px;
|
|
50
|
-
}
|
package/src/styles/reviews.css
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
.bu_single_review {
|
|
2
|
-
padding: 16px;
|
|
3
|
-
margin: 0 0 16px;
|
|
4
|
-
& .bu_review_summary {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
&__date_name {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
color: #212121;
|
|
11
|
-
}
|
|
12
|
-
&__name {
|
|
13
|
-
font-weight: bold;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
& .bu_review {
|
|
17
|
-
padding: 16px 0;
|
|
18
|
-
font-style: italic;
|
|
19
|
-
margin: 0;
|
|
20
|
-
}
|
|
21
|
-
& .bu_criteria {
|
|
22
|
-
columns: 2;
|
|
23
|
-
& .bu-smaller {
|
|
24
|
-
columns: 1
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
.bu_score {
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
padding: 0 0 4px;
|
|
33
|
-
&__rating {
|
|
34
|
-
display: inline-block;
|
|
35
|
-
padding: 6px 8px;
|
|
36
|
-
/* border: 1px solid #cecece; */
|
|
37
|
-
color: #fff;
|
|
38
|
-
font-weight: bold;
|
|
39
|
-
margin: 0 8px 0 0;
|
|
40
|
-
letter-spacing: 2px;
|
|
41
|
-
&.low {
|
|
42
|
-
background-color: #006B3D !important;
|
|
43
|
-
}
|
|
44
|
-
&.best {
|
|
45
|
-
background-color: #135200 !important;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&__rating.medium {
|
|
50
|
-
background-color: #069c56 !important;
|
|
51
|
-
}
|
|
52
|
-
&__rating.good {
|
|
53
|
-
background-color: #389e0d !important;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
.bu_reviews {
|
|
57
|
-
/* background-color: rgba(0, 0, 0, 0.02); */
|
|
58
|
-
padding: 16px;
|
|
59
|
-
&__overview {
|
|
60
|
-
padding: 16px;
|
|
61
|
-
background: linear-gradient(to right, #ece9e6, #ffffff) !important;
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
font-size: 20px;
|
|
65
|
-
margin: 0 0 16px;
|
|
66
|
-
&__number {
|
|
67
|
-
font-size: 22px;
|
|
68
|
-
padding: 0 16px;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
.bu_reviews__note {
|
|
72
|
-
font-size: 14px;
|
|
73
|
-
color: #666;
|
|
74
|
-
margin: 0 0 16px;
|
|
75
|
-
width: 100%;
|
|
76
|
-
text-align: center;
|
|
77
|
-
a {
|
|
78
|
-
color: #808080;
|
|
79
|
-
text-decoration: none;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.bu-smaller {
|
|
85
|
-
& .bu_single_review {
|
|
86
|
-
& .bu_criteria {
|
|
87
|
-
columns: 1;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
package/src/styles/success.css
DELETED
package/src/types.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { PricesType } from './components/CalendarPage/Summary/cost_types';
|
|
2
|
-
|
|
3
|
-
export type FiltersFormType = {
|
|
4
|
-
showCity: boolean;
|
|
5
|
-
showRegion: boolean;
|
|
6
|
-
showCountry: boolean;
|
|
7
|
-
showPersons: boolean;
|
|
8
|
-
showBathrooms: boolean;
|
|
9
|
-
showBedrooms: boolean;
|
|
10
|
-
showPrice: boolean;
|
|
11
|
-
categories: number[];
|
|
12
|
-
no_results: number;
|
|
13
|
-
location: string;
|
|
14
|
-
mode: 'grid' | 'list';
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
type BookingFormType = {
|
|
18
|
-
adults_from: number;
|
|
19
|
-
children: boolean;
|
|
20
|
-
children_from: number;
|
|
21
|
-
children_til: number;
|
|
22
|
-
babies: boolean;
|
|
23
|
-
babies_til: number;
|
|
24
|
-
showDiscountCode: boolean;
|
|
25
|
-
redirectUrl: string | null;
|
|
26
|
-
redirectUrl_en: string | null;
|
|
27
|
-
redirectUrl_nl: string | null;
|
|
28
|
-
redirectUrl_de: string | null;
|
|
29
|
-
redirectUrl_fr: string | null;
|
|
30
|
-
redirectUrl_es: string | null;
|
|
31
|
-
redirectUrl_it: string | null;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
type name_id_type = {
|
|
35
|
-
id: number;
|
|
36
|
-
name: string;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
type PortalOptions = {
|
|
40
|
-
filtersForm: FiltersFormType;
|
|
41
|
-
bookingFields: object[];
|
|
42
|
-
bookingForm: BookingFormType;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export type PortalSiteType = {
|
|
46
|
-
categories: { id: number; name: string; properties: name_id_type[] }[];
|
|
47
|
-
options: PortalOptions;
|
|
48
|
-
max_persons: number;
|
|
49
|
-
name: string;
|
|
50
|
-
max_bedrooms: number;
|
|
51
|
-
max_bathrooms: number;
|
|
52
|
-
max_weekprice: number;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export type LocaleType = 'nl' | 'en' | 'de' | 'es' | 'fr' | 'it';
|
|
56
|
-
|
|
57
|
-
export type BuDate = {
|
|
58
|
-
arrival: Boolean;
|
|
59
|
-
departure: Boolean;
|
|
60
|
-
min_nights: Number;
|
|
61
|
-
max_nights: Number;
|
|
62
|
-
date: string;
|
|
63
|
-
special_offer: Number;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export type HouseType = {
|
|
67
|
-
id: number;
|
|
68
|
-
code: string;
|
|
69
|
-
name: string;
|
|
70
|
-
image_url?: string;
|
|
71
|
-
house_url?: string;
|
|
72
|
-
house_type: string;
|
|
73
|
-
persons: number;
|
|
74
|
-
bedrooms: number;
|
|
75
|
-
bathrooms: number;
|
|
76
|
-
minimum_week_price: number;
|
|
77
|
-
max_nights: number;
|
|
78
|
-
allow_option?: boolean;
|
|
79
|
-
cancel_insurance?: boolean;
|
|
80
|
-
discounts?: string;
|
|
81
|
-
discounts_info?: string;
|
|
82
|
-
babies_extra: number;
|
|
83
|
-
city: string;
|
|
84
|
-
province: string;
|
|
85
|
-
province: string;
|
|
86
|
-
country_name: string;
|
|
87
|
-
description: string;
|
|
88
|
-
booking_price?: {
|
|
89
|
-
total_price: number;
|
|
90
|
-
};
|
|
91
|
-
};
|
package/tsconfig.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
{
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"target": "es6",
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"jsx": "react",
|
|
8
|
-
"moduleResolution": "node",
|
|
9
|
-
"strict": true,
|
|
10
|
-
"noEmit": true,
|
|
11
|
-
"allowJs": true,
|
|
12
|
-
"skipLibCheck": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"esModuleInterop": true
|
|
15
|
-
},
|
|
16
|
-
"include": ["src"]
|
|
17
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { resolve } from 'path';
|
|
2
|
-
import { defineConfig } from 'vite';
|
|
3
|
-
import react from '@vitejs/plugin-react';
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [react()],
|
|
7
|
-
build: {
|
|
8
|
-
outDir: 'build',
|
|
9
|
-
lib: {
|
|
10
|
-
// Could also be a dictionary or array of multiple entry points
|
|
11
|
-
entry: resolve(__dirname, 'src/index.tsx'),
|
|
12
|
-
name: 'BukazuPortal',
|
|
13
|
-
// the proper extensions will be added
|
|
14
|
-
formats: ['es', 'umd'],
|
|
15
|
-
fileName: (format) => `portal.${format}.js`
|
|
16
|
-
},
|
|
17
|
-
rollupOptions: {
|
|
18
|
-
external: ['react', 'react-dom'],
|
|
19
|
-
output: {
|
|
20
|
-
globals: {
|
|
21
|
-
react: 'React',
|
|
22
|
-
'react-dom': 'ReactDOM'
|
|
23
|
-
},
|
|
24
|
-
assetFileNames: (assetInfo) => {
|
|
25
|
-
if (assetInfo.name == 'style.css') return 'index.css';
|
|
26
|
-
return assetInfo.name;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|