@mirai/core 0.4.36 → 0.4.37

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 (209) hide show
  1. package/package.json +1 -1
  2. package/.env +0 -22
  3. package/.gitlab-ci.yml +0 -4
  4. package/.nvmrc +0 -1
  5. package/__tests__/Booking/__mocks__/booking-delete.json +0 -1
  6. package/__tests__/Booking/__mocks__/booking-get.json +0 -105
  7. package/__tests__/Booking/booking.constants.js +0 -8
  8. package/__tests__/Booking/workflows/cancel.workflow.js +0 -20
  9. package/__tests__/Booking/workflows/index.js +0 -5
  10. package/__tests__/Booking/workflows/openMobileMenu.workflow.js +0 -4
  11. package/__tests__/Booking/workflows/print.workflow.js +0 -13
  12. package/__tests__/Booking/workflows/resend.workflow.js +0 -18
  13. package/__tests__/Booking/workflows/review.workflow.js +0 -17
  14. package/__tests__/BookingQuery/__mocks__/user-booking-get.json +0 -9
  15. package/__tests__/BookingQuery/workflows/index.js +0 -1
  16. package/__tests__/BookingQuery/workflows/login.workflow.js +0 -22
  17. package/__tests__/Checkout/__mocks__/checkout-get.json +0 -935
  18. package/__tests__/Checkout/__mocks__/checkout-post-PAYLATER.json +0 -10
  19. package/__tests__/Checkout/__mocks__/checkout-post-TPV.json +0 -7
  20. package/__tests__/Checkout/__mocks__/checkout-post-TRANSFER.json +0 -10
  21. package/__tests__/Checkout/checkout.constants.js +0 -8
  22. package/__tests__/Checkout/workflows/form.workflow.js +0 -17
  23. package/__tests__/Checkout/workflows/index.js +0 -4
  24. package/__tests__/Checkout/workflows/payment.workflow.js +0 -10
  25. package/__tests__/Checkout/workflows/review.workflow.js +0 -19
  26. package/__tests__/Checkout/workflows/submit.workflow.js +0 -9
  27. package/__tests__/Deals/__mocks__/deals-success.json +0 -739
  28. package/__tests__/Deals/workflows/calendar.workflow.js +0 -14
  29. package/__tests__/Deals/workflows/clear.workflow.js +0 -7
  30. package/__tests__/Deals/workflows/index.js +0 -5
  31. package/__tests__/Deals/workflows/occupation.workflow.js +0 -6
  32. package/__tests__/Deals/workflows/promocode.workflow.js +0 -3
  33. package/__tests__/Deals/workflows/submit.workflow.js +0 -6
  34. package/__tests__/Finder/workflows/calendar.workflow.js +0 -10
  35. package/__tests__/Finder/workflows/index.js +0 -3
  36. package/__tests__/Finder/workflows/occupation.workflow.js +0 -27
  37. package/__tests__/Finder/workflows/promocode.workflow.js +0 -8
  38. package/__tests__/Rates/__mocks__/extras-one-success.json +0 -138
  39. package/__tests__/Rates/__mocks__/extras-success.json +0 -397
  40. package/__tests__/Rates/__mocks__/rates-success.json +0 -731
  41. package/__tests__/Rates/workflows/extras.js +0 -9
  42. package/__tests__/Rates/workflows/extrasExpect.js +0 -11
  43. package/__tests__/Rates/workflows/index.js +0 -4
  44. package/__tests__/Rates/workflows/multiroom.js +0 -26
  45. package/__tests__/Rates/workflows/rates.js +0 -9
  46. package/__tests__/Session/workflows/bookings.workflow.js +0 -18
  47. package/__tests__/Session/workflows/forgotPassword.workflow.js +0 -20
  48. package/__tests__/Session/workflows/index.js +0 -5
  49. package/__tests__/Session/workflows/login.workflow.js +0 -29
  50. package/__tests__/Session/workflows/logout.workflow.js +0 -8
  51. package/__tests__/Session/workflows/profile.workflow.js +0 -49
  52. package/__tests__/Signup/workflows/index.js +0 -2
  53. package/__tests__/Signup/workflows/signup.workflow.js +0 -26
  54. package/__tests__/Signup/workflows/signupError.workflow.js +0 -22
  55. package/__tests__/__screenshots__/rates.spec.jsx/Desktop/Search-multiroom-with-one-extras-1.png +0 -0
  56. package/__tests__/__screenshots__/rates.spec.jsx/Desktop/Search-multiroom-with-some-extras-1.png +0 -0
  57. package/__tests__/__screenshots__/rates.spec.jsx/iPhone-12/Search-multiroom-with-one-extras-1.png +0 -0
  58. package/__tests__/__screenshots__/rates.spec.jsx/iPhone-12/Search-multiroom-with-some-extras-1.png +0 -0
  59. package/__tests__/booking.spec.jsx +0 -34
  60. package/__tests__/bookingQuey.spec.js +0 -43
  61. package/__tests__/buttonFinder.spec.js +0 -16
  62. package/__tests__/checkout.spec.jsx +0 -52
  63. package/__tests__/constants.js +0 -20
  64. package/__tests__/deals.spec.js +0 -30
  65. package/__tests__/finder.spec.js +0 -75
  66. package/__tests__/helpers/closeNotification.js +0 -7
  67. package/__tests__/helpers/getWeekNumber.js +0 -8
  68. package/__tests__/helpers/index.js +0 -2
  69. package/__tests__/rates.spec.jsx +0 -39
  70. package/__tests__/session.spec.js +0 -32
  71. package/__tests__/signup.spec.js +0 -17
  72. package/build/components/BannerLoyalty/__tests__/__snapshots__/BannerLoyalty.skeleton.test.js.snap +0 -287
  73. package/build/components/BannerLoyalty/__tests__/__snapshots__/BannerLoyalty.test.js.snap +0 -102
  74. package/build/components/Booking/__tests__/__snapshots__/Booking.test.js.snap +0 -1302
  75. package/build/components/Booking/components/Field/__tests__/__snapshots__/Field.test.js.snap +0 -139
  76. package/build/components/Booking/components/Hotelverse/__tests__/__snapshots__/Hotelverse.test.js.snap +0 -108
  77. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormCancel.test.js.snap +0 -546
  78. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormEdit.test.js.snap +0 -46
  79. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormResend.test.js.snap +0 -166
  80. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Information.test.js.snap +0 -110
  81. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +0 -82
  82. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Modal.test.js.snap +0 -432
  83. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.ModalAgency.test.js.snap +0 -319
  84. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Payment.test.js.snap +0 -178
  85. package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +0 -1048
  86. package/build/components/ButtonFinder/__tests__/__snapshots__/ButtonFinder.test.js.snap +0 -8210
  87. package/build/components/Chat/__tests__/__snapshots__/Chat.constants.test.js.snap +0 -30
  88. package/build/components/Chat/__tests__/__snapshots__/Chat.test.js.snap +0 -634
  89. package/build/components/Chat/components/Avatar/__tests__/__snapshots__/Avatar.test.jsx.snap +0 -97
  90. package/build/components/Chat/components/Input/__tests__/__snapshots__/Input.test.jsx.snap +0 -178
  91. package/build/components/Chat/components/InputRich/__tests__/__snapshots__/InputRich.test.jsx.snap +0 -282
  92. package/build/components/Chat/components/Message/__tests__/__snapshots__/Message.test.jsx.snap +0 -211
  93. package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Booking.test.js.snap +0 -65
  94. package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Card.test.js.snap +0 -29
  95. package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Environment.test.js.snap +0 -44
  96. package/build/components/Chat/components/Offline/__tests__/__snapshots__/Offline.test.js.snap +0 -162
  97. package/build/components/Chat/helpers/__tests__/__snapshots__/getVerboseDate.test.js.snap +0 -9
  98. package/build/components/Checkout/__tests__/__snapshots__/Checkout.test.js.snap +0 -2018
  99. package/build/components/Checkout/components/InputRadio/__tests__/__snapshots__/InputRadio.test.js.snap +0 -347
  100. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +0 -418
  101. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +0 -6754
  102. package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +0 -4449
  103. package/build/components/Deals/__tests__/__snapshots__/Deals.constants.js.snap +0 -15
  104. package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +0 -7828
  105. package/build/components/Deals/helpers/__tests__/__mocks__/deal.json +0 -25
  106. package/build/components/Environment/__tests__/__snapshots__/Environment.State.test.js.snap +0 -120
  107. package/build/components/Environment/__tests__/__snapshots__/Environment.test.js.snap +0 -988
  108. package/build/components/Finder/__tests__/__snapshots__/Finder.constants.test.js.snap +0 -39
  109. package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +0 -22237
  110. package/build/components/Finder/components/Calendar/__tests__/__mocks__/prices.json +0 -11
  111. package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +0 -11108
  112. package/build/components/Finder/components/Places/__tests__/__mocks__/places.json +0 -44
  113. package/build/components/Finder/components/Places/__tests__/__snapshots__/Places.test.js.snap +0 -324
  114. package/build/components/Finder/helpers/__tests__/__mocks__/dataSource.json +0 -1382
  115. package/build/components/Finder/helpers/__tests__/__snapshots__/getForwarderUrl.test.js.snap +0 -7
  116. package/build/components/Header/__tests__/__snapshots__/Header.test.js.snap +0 -1187
  117. package/build/components/Profile/components/Bookings/__tests__/__snapshots__/Bookings.test.js.snap +0 -19
  118. package/build/components/Rates/__tests__/__snapshots__/Rates.Content.test.js.snap +0 -41
  119. package/build/components/Rates/__tests__/__snapshots__/Rates.Footer.test.js.snap +0 -50
  120. package/build/components/Rates/__tests__/__snapshots__/Rates.Header.test.js.snap +0 -3
  121. package/build/components/Rates/__tests__/__snapshots__/Rates.RoomSelector.test.js.snap +0 -3
  122. package/build/components/Rates/__tests__/__snapshots__/Rates.Unavailability.test.js.snap +0 -53
  123. package/build/components/Rates/__tests__/__snapshots__/Rates.test.js.snap +0 -11760
  124. package/build/components/Rates/components/CardHotel/__tests__/__snapshots__/CardHotel.test.js.snap +0 -113
  125. package/build/components/Rates/components/Filters/__tests__/__snapshots__/FIlters.Button.test.js.snap +0 -32
  126. package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.Amenity.test.js.snap +0 -21
  127. package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.BookingOption.test.js.snap +0 -32
  128. package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.test.js.snap +0 -167
  129. package/build/components/Rates/components/Hotelverse/__tests__/__snapshots__/Hotelverse.test.js.snap +0 -3
  130. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Preview.test.js.snap +0 -96
  131. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Rates.test.js.snap +0 -9
  132. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Summary.test.js.snap +0 -53
  133. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.test.js.snap +0 -154
  134. package/build/components/Rates/components/Item/components/Amenities/__tests__/__snapshots__/Amenities.test.js.snap +0 -3
  135. package/build/components/Rates/components/Item/components/Countdown/__tests__/__snapshots__/Countdown.test.js.snap +0 -3
  136. package/build/components/Rates/components/Item/components/Features/__tests__/__snapshots__/Features.test.js.snap +0 -40
  137. package/build/components/Rates/components/Item/components/ModalCancellationInfo/__tests__/__snapshots__/ModalCancellationInfo.test.js.snap +0 -35
  138. package/build/components/Rates/components/Item/components/ModalInfo/__tests__/__snapshots__/ModalInfo.test.js.snap +0 -72
  139. package/build/components/Rates/components/Item/components/ModalOfferInfo/__tests__/__snapshots__/ModalOfferInfo.test.js.snap +0 -49
  140. package/build/components/Rates/components/Item/components/ModalUrl/__tests__/__snapshots__/ModalUrl.test.js.snap +0 -50
  141. package/build/components/Rates/components/Item/components/Option/__tests__/__snapshots__/Option.test.js.snap +0 -18
  142. package/build/components/Rates/components/Item/components/PriceDetails/__tests__/__snapshots__/PriceDetails.test.js.snap +0 -23
  143. package/build/components/Rates/components/Item/components/RateDetails/__tests__/__snapshots__/RateDetails.test.js.snap +0 -3
  144. package/build/components/Rates/components/Item/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +0 -27
  145. package/build/components/Rates/components/Item/components/TooltipDates/__tests__/__snapshots__/TooltipDates.test.js.snap +0 -3
  146. package/build/components/Rates/components/ModalClubRate/__tests__/__snapshots__/ModalClubRate.test.js.snap +0 -257
  147. package/build/components/Rates/components/ModalExtras/__tests__/__snapshots__/ModalExtras.test.js.snap +0 -68
  148. package/build/components/Rates/components/ModalMapView/__tests__/__snapshots__/ModalMapView.test.js.snap +0 -78
  149. package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +0 -260
  150. package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +0 -1091
  151. package/build/components/__shared__/BookingDates/__tests__/__snapshots__/BookingDates.test.js.snap +0 -208
  152. package/build/components/__shared__/BookingDetails/__tests__/__snapshots__/BookingDetails.test.js.snap +0 -2190
  153. package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.Row.test.js.snap +0 -500
  154. package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.test.js.snap +0 -745
  155. package/build/components/__shared__/BookingTerms/__tests__/__snapshots__/BookingTerms.test.js.snap +0 -450
  156. package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +0 -115
  157. package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +0 -206
  158. package/build/components/__shared__/ButtonPayment/components/Form/__tests__/__snapshots__/Form.test.js.snap +0 -65
  159. package/build/components/__shared__/ButtonPayment/components/FormAddon/__tests__/__snapshots__/FormAddon.test.js.snap +0 -68
  160. package/build/components/__shared__/ButtonPayment/components/FormCheckout/__tests__/__snapshots__/FormCheckout.test.js.snap +0 -356
  161. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/__tests__/__snapshots__/getStyle.test.js.snap +0 -23
  162. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/__tests__/__snapshots__/FormPaycomet.test.js.snap +0 -165
  163. package/build/components/__shared__/ButtonPayment/components/FormSipay/__tests__/__snapshots__/FormSipay.test.js.snap +0 -161
  164. package/build/components/__shared__/ButtonPayment/components/InputField/__tests__/__snapshots__/InputField.test.js.snap +0 -190
  165. package/build/components/__shared__/Card/__tests__/__snapshots__/Card.test.js.snap +0 -34
  166. package/build/components/__shared__/Countdown/__tests__/__snapshots__/Countdown.test.js.snap +0 -42
  167. package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +0 -1018
  168. package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +0 -2243
  169. package/build/components/__shared__/FieldPromocode/__tests__/__snapshots__/FieldPromocode.test.jsx.snap +0 -373
  170. package/build/components/__shared__/Footer/__tests__/__snapshots__/Footer.test.js.snap +0 -178
  171. package/build/components/__shared__/NotificationRequiredFields/__tests__/__snapshots__/NotificationRequiredFields.test.js.snap +0 -118
  172. package/build/components/__shared__/Occupation/__tests__/__mocks__/occupation.json +0 -17
  173. package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +0 -3754
  174. package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +0 -1109
  175. package/build/components/__shared__/Payment/components/AmazonPay/__tests__/__snapshots__/AmazonPay.test.js.snap +0 -23
  176. package/build/components/__shared__/Payment/components/Aplazame/__tests__/__snapshots__/Aplazame.test.js.snap +0 -33
  177. package/build/components/__shared__/Payment/components/Card/__tests__/__snapshots__/Card.test.js.snap +0 -933
  178. package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap +0 -474
  179. package/build/components/__shared__/Payment/components/Tpv/__tests__/__snapshots__/Tpv.test.js.snap +0 -98
  180. package/build/components/__shared__/PriceBreakdown/__tests__/__snapshots__/PriceBreakdown.Line.test.js.snap +0 -49
  181. package/build/components/__shared__/PriceBreakdown/__tests__/__snapshots__/PriceBreakdown.test.js.snap +0 -337
  182. package/build/components/__shared__/SelectEnvironment/__tests__/__snapshots__/SelectEnvironment.test.js.snap +0 -1192
  183. package/build/components/__shared__/Skeleton/__tests__/__snapshots__/Skeleton.test.js.snap +0 -66
  184. package/build/components/__shared__/TextRequiredFields/__tests__/__snapshots__/TextRequiredFields.test.js.snap +0 -41
  185. package/build/components/helpers/__tests__/__mocks__/hotels.json +0 -87
  186. package/build/components/helpers/__tests__/__snapshots__/parseHtml.test.js.snap +0 -317
  187. package/playwright.config.js +0 -50
  188. package/public/App.Container.jsx +0 -147
  189. package/public/App.jsx +0 -34
  190. package/public/App.module.css +0 -153
  191. package/public/index.html +0 -32
  192. package/public/index.template.html +0 -19
  193. package/public/performance/index.html +0 -159
  194. package/public/routes/Deals.jsx +0 -20
  195. package/public/routes/Finder.jsx +0 -19
  196. package/public/routes/Home.constants.js +0 -52
  197. package/public/routes/Home.jsx +0 -131
  198. package/public/routes/NotFound.jsx +0 -23
  199. package/public/routes/Profile.jsx +0 -21
  200. package/public/routes/Signup.jsx +0 -20
  201. package/public/routes/Step0-Accommodations.jsx +0 -4
  202. package/public/routes/Step1-Rates.jsx +0 -12
  203. package/public/routes/Step2-Checkout.jsx +0 -4
  204. package/public/routes/Step3-Booking.jsx +0 -4
  205. package/public/routes/components/Logo.jsx +0 -18
  206. package/public/routes/components/index.js +0 -1
  207. package/public/routes/index.js +0 -10
  208. package/public/routes/routes.module.css +0 -259
  209. package/public/themes/monalisa.theme.css +0 -45
@@ -1,147 +0,0 @@
1
- /* eslint-disable react/prop-types */
2
- import { useStore } from '@mirai/data-sources';
3
- import { Action, Input, Text, View } from '@mirai/ui';
4
- import React from 'react';
5
- import { useLocation } from 'wouter';
6
-
7
- import * as style from './App.module.css';
8
-
9
- export const Container = ({ children }) => {
10
- const [location, setLocation] = useLocation();
11
-
12
- const {
13
- value: { session },
14
- } = useStore();
15
-
16
- const richTemplate = !location.includes('/step');
17
-
18
- return (
19
- <>
20
- {richTemplate && (
21
- <View tag="header" className={style.header}>
22
- <View row className={[style.wrapper, style.environment]}>
23
- <Text small className={[style.contact, style.hideMobile]}>
24
- Contact us directly at +34 (0) 129 039 193
25
- </Text>
26
- <View data-mirai-component="environment" data-locale="true" data-currencies="true" data-state="true" />
27
- </View>
28
-
29
- <View row className={[style.wrapper, style.main]}>
30
- <View row>
31
- <Action onPress={() => setLocation('/')}>
32
- <Text>Home</Text>
33
- </Action>
34
-
35
- <Action className={style.hideMobile} onPress={() => setLocation('/about-us')}>
36
- <Text>About Us</Text>
37
- </Action>
38
-
39
- <Action className={style.hideMobile} onPress={() => setLocation('/rooms')}>
40
- <Text>Our Rooms</Text>
41
- </Action>
42
- </View>
43
-
44
- <View>
45
- <Action inline onPress={() => setLocation('/')}>
46
- <Text bold brand headline level={1}>
47
- Monalisa
48
- </Text>
49
- </Action>
50
- <Text small>HOTEL & RESORT</Text>
51
- </View>
52
-
53
- <View row>
54
- <View data-mirai-component="session" />
55
-
56
- {!session && (
57
- <Action className={style.hideMobile} onPress={() => setLocation('/signup')}>
58
- <Text medium>Signup</Text>
59
- </Action>
60
- )}
61
- </View>
62
- </View>
63
- </View>
64
- )}
65
-
66
- <View tag="main" className={style.children}>
67
- {children}
68
- </View>
69
-
70
- {/* <View data-mirai-component="chat" /> */}
71
-
72
- {richTemplate && (
73
- <View tag="footer" className={style.footer}>
74
- <View row className={[style.wrapper, style.links]}>
75
- <View>
76
- <Text bold>Site map</Text>
77
- <Action inline small onPress={() => setLocation('/')}>
78
- Home
79
- </Action>
80
- <Action inline small onPress={() => setLocation('/signup')}>
81
- Signup
82
- </Action>
83
- <Action inline small onPress={() => setLocation('/profile')}>
84
- Profile
85
- </Action>
86
- <Action inline small onPress={() => setLocation('/deals')}>
87
- Deals
88
- </Action>
89
- <Action inline small onPress={() => setLocation('/finder')}>
90
- Finder
91
- </Action>
92
- </View>
93
-
94
- <View>
95
- <Text bold>Reservation</Text>
96
- <Action inline small onPress={() => setLocation('/step1-rates')}>
97
- 1. rates
98
- </Action>
99
- <Action inline small onPress={() => setLocation('/step2-checkout')}>
100
- 2. checkout
101
- </Action>
102
- <Action inline small onPress={() => setLocation('/step3-booking')}>
103
- 3. booking
104
- </Action>
105
- </View>
106
-
107
- <View>
108
- <Text bold>More</Text>
109
- <View
110
- data-mirai-component="bookingQuery"
111
- data-test-id={window.IS_PLAYWRIGHT ? 'bookingQuery' : undefined}
112
- >
113
- <Action inline small data-ghost>
114
- My Booking
115
- </Action>
116
- </View>
117
- <Action inline small onPress={() => setLocation('/legal-advice')}>
118
- Legal Advice
119
- </Action>
120
- <Action inline small onPress={() => setLocation('/cookie-policy')}>
121
- Cookie Policy
122
- </Action>
123
- <Action inline small onPress={() => setLocation('/privacy-policy')}>
124
- Privacy Policy
125
- </Action>
126
- <Action inline small onPress={() => setLocation('/complaints-channel')}>
127
- Complaints Channel
128
- </Action>
129
- </View>
130
-
131
- <View className={[style.newsletter, style.hideMobile]}>
132
- <Text bold>Sign up for get our newsletter</Text>
133
- <Input name="newsletter" placeholder="Your email..." />
134
- </View>
135
- </View>
136
-
137
- <Text small className={[style.wrapper, style.copyright]}>
138
- <Text bold brand headline level={2}>
139
- Monalisa
140
- </Text>{' '}
141
- © 1980-2024 Monalisa Hotel Group Santa Engracia 120. 28003 Madrid, Spain
142
- </Text>
143
- </View>
144
- )}
145
- </>
146
- );
147
- };
package/public/App.jsx DELETED
@@ -1,34 +0,0 @@
1
- import React, { useEffect } from 'react';
2
- import ReactDOM from 'react-dom';
3
- import { useLocation, Route, Switch } from 'wouter';
4
-
5
- import { Container } from './App.Container';
6
- import { Deals, Finder, Home, NotFound, Profile, Signup, Step1, Step2, Step3 } from './routes';
7
-
8
- const App = () => {
9
- const [location] = useLocation();
10
-
11
- useEffect(() => {
12
- window.Mirai?.core?.();
13
- window.scrollTo({ behavior: 'smooth', top: 0 });
14
- }, [location]);
15
-
16
- return (
17
- <Container>
18
- <Switch>
19
- <Route path={'/'} component={Home} />
20
- <Route path={'/signup'} component={Signup} />
21
- <Route path={'/profile'} component={Profile} />
22
- <Route path={'/deals'} component={Deals} />
23
- <Route path={'/finder'} component={Finder} />
24
- <Route path={'/step0-accommodations'} component={undefined} />
25
- <Route path={'/step1-rates'} component={Step1} />
26
- <Route path={'/step2-checkout'} component={Step2} />
27
- <Route path={'/step3-booking'} component={Step3} />
28
- <Route path="/:location*">{(params) => <NotFound {...params} />}</Route>
29
- </Switch>
30
- </Container>
31
- );
32
- };
33
-
34
- ReactDOM.render(<App />, document.getElementById('app'));
@@ -1,153 +0,0 @@
1
- :root {
2
- --header-height: calc(var(--mirai-ui-space-XL) * 2);
3
- }
4
-
5
- /* -- defaults -------------------------------------------------------------- */
6
- body {
7
- color: var(--mirai-ui-content);
8
- margin: 0;
9
- padding: 0;
10
- }
11
-
12
- /* -- App.container.jsx ----------------------------------------------------- */
13
- .wrapper {
14
- align-self: center;
15
- max-width: var(--mirai-ui-breakpoint-content);
16
- width: 100%;
17
- }
18
-
19
- .wrapper.centered {
20
- justify-content: center;
21
- justify-content: space-between;
22
- }
23
-
24
- .header,
25
- .footer {
26
- width: 100vw;
27
- z-index: 0;
28
- }
29
-
30
- .header {
31
- background-color: var(--mirai-ui-base);
32
- padding: var(--mirai-ui-space-S);
33
- }
34
-
35
- .header [data-role='action'] {
36
- text-decoration: none;
37
- }
38
-
39
- .header .environment {
40
- align-items: right;
41
- border-bottom: solid 1px var(--mirai-ui-content-border);
42
- margin-bottom: var(--mirai-ui-space-XS);
43
- padding-bottom: var(--mirai-ui-space-XS);
44
- }
45
-
46
- .header .environment .contact {
47
- flex: 1;
48
- color: var(--mirai-ui-content-light);
49
- }
50
-
51
- .header > .main > * {
52
- flex: 1;
53
- align-items: center;
54
- }
55
-
56
- .header > .main > *:first-child {
57
- justify-content: flex-start;
58
- }
59
-
60
- .header > .main > *:last-child {
61
- justify-content: flex-end;
62
- }
63
-
64
- .header > .main > *:first-child,
65
- .header > .main > *:last-child {
66
- gap: var(--mirai-ui-space-L);
67
- }
68
-
69
- .footer {
70
- background-color: var(--mirai-ui-content);
71
- }
72
-
73
- .footer [data-role='text'] {
74
- color: var(--mirai-ui-base);
75
- }
76
-
77
- .footer ui-modal [data-role='text'] {
78
- color: var(--mirai-ui-content);
79
- }
80
-
81
- .footer .links {
82
- align-items: flex-start;
83
- justify-content: space-between;
84
- }
85
-
86
- .footer .links [data-role='action'] {
87
- color: var(--mirai-ui-content-light);
88
- }
89
-
90
- .footer .links [data-role='action']:hover {
91
- color: var(--mirai-ui-base);
92
- }
93
-
94
- .footer .links > * {
95
- gap: var(--mirai-ui-space-XS);
96
- }
97
-
98
- .footer .links .newsletter {
99
- width: 33%;
100
- }
101
-
102
- .footer .links .newsletter [data-role='input'] {
103
- background-color: transparent;
104
- border-bottom: solid 1px var(--mirai-ui-content-light);
105
- padding-bottom: var(--mirai-ui-space-XS);
106
- }
107
-
108
- .footer .copyright {
109
- border-top: solid 1px var(--mirai-ui-content-light);
110
- }
111
-
112
- /* S */
113
- @media only screen and (max-width: 480px) {
114
- .hideMobile {
115
- display: none;
116
- }
117
-
118
- .header .environment {
119
- justify-content: flex-end;
120
- }
121
-
122
- .children {
123
- min-height: 61vh;
124
- }
125
-
126
- .footer {
127
- padding: var(--mirai-ui-space-L) var(--mirai-ui-space-M);
128
- }
129
-
130
- .footer .copyright {
131
- border-top: solid 1px var(--mirai-ui-content-light);
132
- margin-top: var(--mirai-ui-space-L);
133
- padding-top: var(--mirai-ui-space-M);
134
- }
135
- }
136
-
137
- /* M & L */
138
- @media only screen and (min-width: 431px) {
139
- .footer {
140
- padding: var(--mirai-ui-space-XL) var(--mirai-ui-space-M);
141
- }
142
-
143
- .footer .copyright {
144
- margin-top: var(--mirai-ui-space-XL);
145
- padding-top: var(--mirai-ui-space-L);
146
- }
147
- }
148
-
149
- @media print {
150
- .footer {
151
- display: none;
152
- }
153
- }
package/public/index.html DELETED
@@ -1,32 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <title>Monalisa - Hotel & Resort</title>
7
- <link rel="preconnect" href="https://dictionary.mirai.com" />
8
- <link rel="preconnect" href="https://fonts.googleapis.com" />
9
- <link rel="preconnect" href="https://fonts.gstatic.com" />
10
- <link rel="preconnect" href="https://reservation.mirai.com" />
11
- <link rel="preconnect" href="https://i.pravatar.cc" />
12
- <!-- /site -->
13
- <link rel="preload" as="style" href="./themes/monalisa.theme.css" onload="this.onload=null;this.rel='stylesheet'" />
14
- <script src="./scripts/script.js"></script>
15
- </head>
16
- <body>
17
- <div data-mirai-engine="mirai_tr" data-init="false"></div>
18
- <noscript>You need to enable JavaScript to run this app.</noscript>
19
- <!-- hotel example -->
20
- <div id="mirai" data-mirai-id="100379008"></div>
21
- <!-- chain example -->
22
- <!-- <div data-mirai-id="501404" data-hotel="88737419" data-type="chain" data-locale="en-GB" _hidden></div> -->
23
-
24
- <!-- /site -->
25
- <div id="app"></div>
26
- <script async type="module" defer src="./App.jsx"></script>
27
- <!-- <script type="text/javascript" src="https://js-pre.mirai.com/mirai-tracking/mirai.tracking.js"></script> -->
28
-
29
- <!-- @mirai/core -->
30
- <script async type="module" defer src="../src/index.js"></script>
31
- </body>
32
- </html>
@@ -1,19 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <title>Monalisa - Hotel & Resort</title>
7
- <link rel="stylesheet" href="{url}/index.css" />
8
- <link rel="stylesheet" defer href="./themes/monalisa.theme.css" />
9
- </head>
10
-
11
- <body>
12
- <div data-mirai-id="100379008" data-locale="en-GB" data-currency="GBP"></div>
13
-
14
- <div id="app"></div>
15
-
16
- <script type="module" defer src="{url}/index.js"></script>
17
- <script type="module" src="./App.jsx"></script>
18
- </body>
19
- </html>
@@ -1,159 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <style>
5
- * {
6
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
7
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
8
- font-size: 16px;
9
- line-height: 20px;
10
- }
11
-
12
- header *,
13
- main strong,
14
- main small {
15
- color: #484848;
16
- }
17
-
18
- header > * {
19
- align-items: center;
20
- border-bottom: solid 1px #dedede;
21
- display: flex;
22
- flex-direction: row;
23
- justify-content: space-between;
24
- }
25
-
26
- header small {
27
- font-size: 12px;
28
- line-height: 16px;
29
- }
30
-
31
- header a {
32
- margin-left: 12px;
33
- text-decoration: none;
34
- }
35
-
36
- header h1 {
37
- font-size: 24px;
38
- line-height: 24px;
39
- margin: 0;
40
- padding: 0;
41
- }
42
-
43
- header > :first-child {
44
- padding: 12px 16px;
45
- }
46
-
47
- header > :first-child * {
48
- color: #6e6e6e;
49
- }
50
-
51
- header > :first-child a {
52
- font-size: 14px;
53
- }
54
-
55
- header > :last-child {
56
- padding: 16px;
57
- }
58
-
59
- header > :last-child a {
60
- font-weight: 500;
61
- }
62
-
63
- main {
64
- background-color: #f6f6f6;
65
- padding: 0 16px;
66
- display: flex;
67
- flex-direction: column;
68
- align-items: center;
69
- height: 80svh;
70
- }
71
-
72
- main > strong,
73
- main > small {
74
- text-align: center;
75
- }
76
-
77
- main > * {
78
- margin: 0 auto;
79
- width: fit-content;
80
- }
81
-
82
- @media only screen and (width <= 820px) {
83
- main {
84
- padding-top: 64px;
85
- }
86
-
87
- main > strong {
88
- font-size: 44px;
89
- line-height: 56px;
90
- }
91
-
92
- main > small {
93
- font-size: 16px;
94
- line-height: 20px;
95
- padding-top: 24px;
96
- padding-bottom: 48px;
97
- }
98
- }
99
-
100
- @media only screen and (width > 820px) {
101
- main {
102
- padding-top: 96px;
103
- }
104
-
105
- main > strong {
106
- font-size: 96px;
107
- line-height: 120px;
108
- max-width: 75%;
109
- }
110
-
111
- main > small {
112
- font-size: 24px;
113
- line-height: 32px;
114
- max-width: 50%;
115
- padding-top: 24px;
116
- padding-bottom: 64px;
117
- }
118
- }
119
- </style>
120
- <meta charset="utf-8" />
121
- <meta name="viewport" content="width=device-width, initial-scale=1" />
122
- <title>Monalisa - Hotel & Resort</title>
123
- <link rel="preconnect" href="https://dictionary.mirai.com" />
124
- <link rel="preconnect" href="https://reservation.mirai.com" />
125
- </head>
126
- <body>
127
- <div id="mirai" data-mirai-id="100379008"></div>
128
-
129
- <header>
130
- <div>
131
- <small>Contact us directly at +34 (0) 129 039 193</small>
132
- <nav>
133
- <a href="#">EUR</a>
134
- <a href="#">English</a>
135
- </nav>
136
- </div>
137
- <div>
138
- <div>
139
- <h1>monalisa</h1>
140
- <small>Hotel & Resort</small>
141
- </div>
142
- <nav>
143
- <a href="#">■ Login</a>
144
- <a href="#">Signup</a>
145
- </nav>
146
- </div>
147
- </header>
148
-
149
- <main>
150
- <strong>Discover the Serenity of a Perfect Stay</strong>
151
- <small>
152
- Experience the calming atmosphere of our serene guest rooms, each designed with your comfort in mind.
153
- </small>
154
- <div data-mirai-component="finder"></div>
155
- </main>
156
-
157
- <script async type="module" defer src="../../src/index.js"></script>
158
- </body>
159
- </html>
@@ -1,20 +0,0 @@
1
- import { Text, View } from '@mirai/ui';
2
- import React from 'react';
3
-
4
- import * as style from './routes.module.css';
5
-
6
- export const Deals = () => (
7
- <>
8
- <View tag="section" className={[style.section, style.box, style.accent]}>
9
- <View className={style.wrapper}>
10
- <Text bold headline level={1}>
11
- Deals
12
- </Text>
13
- <Text>Discover exclusive hotel offers tailored just for you.</Text>
14
- </View>
15
- </View>
16
- <View className={[style.wrapper, style.box]}>
17
- <View data-mirai-component="deals" data-id="350807" />
18
- </View>
19
- </>
20
- );
@@ -1,19 +0,0 @@
1
- import { Text, View } from '@mirai/ui';
2
- import React from 'react';
3
-
4
- import * as style from './routes.module.css';
5
-
6
- export const Finder = () => (
7
- <>
8
- <View tag="section" className={[style.section, style.box, style.accent]}>
9
- <View className={(style.wrapper, style.centered)}>
10
- <Text bold headline level={1}>
11
- Finder
12
- </Text>
13
- </View>
14
- </View>
15
- <View className={[style.wrapper, style.box]}>
16
- <View data-mirai-component="finder" data-layout="column" className={style.column} />
17
- </View>
18
- </>
19
- );
@@ -1,52 +0,0 @@
1
- const TESTIMONIALS = [
2
- {
3
- text: 'My stay at Monalisa was spectacular. From the moment I entered, I was struck by the elegance and welcoming atmosphere. The staff was always friendly and helpful, making our visit even more special. We will definitely be back soon.',
4
- rating: 5,
5
- name: 'Hal Finney',
6
- jobPosition: 'Marketing Manager',
7
- },
8
- {
9
- text: 'The Monalisa Resort is simply incredible. The facilities are top-notch, and the views from my room were breathtaking. The customer service exceeded all my expectations. A perfect place to relax and unwind.',
10
- rating: 5,
11
- name: 'Gavin Andresen',
12
- jobPosition: 'Financial Consultant',
13
- },
14
- {
15
- text: 'I have never experienced such a level of luxury and comfort as at Monalisa. The attention to detail in every corner of the hotel was astonishing. The restaurant offered an exquisite variety of dishes, all delicious. Highly recommended!',
16
- rating: 5,
17
- name: 'Martti Malmi',
18
- jobPosition: 'Real Estate Agent',
19
- },
20
- {
21
- text: 'I had a wonderful weekend at the Monalisa Resort. The location is perfect, and the quality of service is unmatched. The spa was a rejuvenating experience that left me completely relaxed. I can’t wait to return!',
22
- rating: 4,
23
- name: 'Jeff Garzik',
24
- jobPosition: 'Event Planner',
25
- },
26
- {
27
- text: 'From the moment we arrived, we were treated like royalty. The staff is exceptionally attentive and kind. The rooms are spacious and comfortable, and the decor is modern and sophisticated. An unforgettable experience.',
28
- rating: 5,
29
- name: 'Laszlo Hanyecz',
30
- jobPosition: 'Software Engineer',
31
- },
32
- {
33
- text: 'Monalisa - Hotel & Resort is a true paradise. The leisure areas and the surrounding landscape create a serene and peaceful environment. The breakfast buffet had a great variety and everything was delicious. We will definitely be back.',
34
- rating: 4,
35
- name: 'Nick Szabo',
36
- jobPosition: 'Architect',
37
- },
38
- {
39
- text: 'This is the best hotel I have ever stayed in. Everything, from check-in to check-out, was impeccable. The gardens are beautiful and the staff always made sure we had everything we needed. Highly recommended.',
40
- rating: 5,
41
- name: 'Adam Back',
42
- jobPosition: 'Business Consultant',
43
- },
44
- {
45
- text: 'Monalisa offers a perfect combination of luxury and comfort. The views from the pool are stunning, and the quality of service is outstanding. An ideal place for a family vacation or a romantic getaway.',
46
- rating: 5,
47
- name: 'Charlie Lee',
48
- jobPosition: 'Graphic Designer',
49
- },
50
- ];
51
-
52
- export { TESTIMONIALS };