@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,131 +0,0 @@
1
- /* eslint-disable react/no-unescaped-entities */
2
- /* eslint-disable react/prop-types */
3
- import { Event } from '@mirai/data-sources';
4
- import { InputOption, ScrollView, Text, useDevice, View } from '@mirai/ui';
5
- import React, { useEffect, useState } from 'react';
6
-
7
- import { TESTIMONIALS } from './Home.constants';
8
- import * as style from './routes.module.css';
9
-
10
- const EVENT_INTENT_ENVIRONMENT = 'intentEnvironment';
11
-
12
- export const Home = () => {
13
- const { isMobile } = useDevice();
14
-
15
- const [locale, setLocale] = useState();
16
- const [resident, setResident] = useState();
17
-
18
- useEffect(() => {
19
- const handleIntentEnvironment = ({ locale: value } = {}) => setLocale(value);
20
-
21
- Event.subscribe(EVENT_INTENT_ENVIRONMENT, handleIntentEnvironment);
22
-
23
- return () => Event.unsubscribe(EVENT_INTENT_ENVIRONMENT, handleIntentEnvironment);
24
- }, []);
25
-
26
- useEffect(() => {
27
- Event.publish('setStore', { promocode: resident ? 'RESIDENT' : '' });
28
- }, [resident]);
29
-
30
- const showResident = locale === 'es-ES';
31
- const testId = window.IS_PLAYWRIGHT ? 'finder' : undefined;
32
-
33
- return (
34
- <>
35
- <View tag="section" className={[style.section, style.content, style.home]}>
36
- <View className={[style.wrapper, style.centered]}>
37
- <Text bold brand className={[style.slogan, style.text]}>
38
- Discover the Serenity of a Perfect Stay
39
- </Text>
40
- <Text headline={!isMobile} level={3} className={[style.pitch, style.text]}>
41
- Experience the calming atmosphere of our serene guest rooms, each designed with your comfort in mind.
42
- </Text>
43
- </View>
44
- <View className={style.backgroundImage} />
45
- </View>
46
-
47
- <View className={[style.finder, style.centered, showResident && style.resident]}>
48
- {showResident && (
49
- <View>
50
- <InputOption
51
- checked={resident}
52
- name="resident"
53
- label="I am resident"
54
- onChange={setResident}
55
- className={style.resident}
56
- />
57
- </View>
58
- )}
59
-
60
- <View data-mirai-component="finder" data-test-id={testId} />
61
- </View>
62
-
63
- <View row={!isMobile} tag="section" className={[style.section, style.spaceBetween, style.wrapper]}>
64
- <View className={style.texts}>
65
- <Text brand headline level={1}>
66
- Welcome to Monalisa
67
- </Text>
68
-
69
- <Text lighten headline={!isMobile}>
70
- Welcome to Monalisa, where Monalisa and convenience converge in the heart of the city. Our hotel is located
71
- in the bustling city center, just steps away from the best shopping, dining, and entertainment that the city
72
- has to offer.
73
- </Text>
74
- <Text lighten headline={!isMobile}>
75
- One of our greatest strengths is our location. We are situated in the middle of the city center, which means
76
- that our guests can easily explore all the sights and sounds of this vibrant metropolis. Plus, we are just a
77
- stone's throw away from the train station, making it incredibly easy for our guests to arrive and depart
78
- from our hotel.
79
- </Text>
80
- <Text lighten headline={!isMobile}>
81
- So why wait? Book your stay at Monalisa today and experience the perfect blend of Monalisa, convenience, and
82
- comfort in the heart of the city.
83
- </Text>
84
- </View>
85
- </View>
86
-
87
- <View row={!isMobile} tag="section" className={[style.section, style.accent, style.testimonials]}>
88
- <View>
89
- <Text brand headline level={1}>
90
- Testimonials
91
- </Text>
92
- <Text>See what our guests are saying about their serene and tranquil experiences at Monalisa.</Text>
93
- </View>
94
-
95
- <ScrollView horizontal snap={!isMobile} className={style.cards}>
96
- {TESTIMONIALS.map(({ text, rating, name, jobPosition } = {}, index) => (
97
- <View key={index} className={style.card}>
98
- <Text action>{text}</Text>
99
- <Text accent action>
100
- {'★'.repeat(rating)}
101
- </Text>
102
-
103
- <View row>
104
- <View
105
- className={style.avatar}
106
- style={{ backgroundImage: `url(https://i.pravatar.cc/96?u=${index})` }}
107
- />
108
- <View>
109
- <Text action>{name}</Text>
110
- <Text lighten small>
111
- {jobPosition}
112
- </Text>
113
- </View>
114
- </View>
115
- </View>
116
- ))}
117
- </ScrollView>
118
- </View>
119
-
120
- <View row tag="section" className={[style.section, style.border, style.centered]}>
121
- <View>
122
- <Text>FIND BEST HOTEL FOR LEAVING</Text>
123
- <Text bold brand headline level={1}>
124
- Find the Best Hotel in Your Next Vacation
125
- </Text>
126
- </View>
127
- <View data-mirai-component="buttonFinder" />
128
- </View>
129
- </>
130
- );
131
- };
@@ -1,23 +0,0 @@
1
- import { Button, Text, View } from '@mirai/ui';
2
- import React from 'react';
3
- import { useLocation } from 'wouter';
4
-
5
- import * as style from './routes.module.css';
6
-
7
- export const NotFound = () => {
8
- const [, setLocation] = useLocation();
9
-
10
- return (
11
- <View tag="section" className={[style.section, style.border, style.home]}>
12
- <View className={[style.wrapper, style.centered]}>
13
- <Text bold className={style.slogan}>
14
- Oops! Something went wrong.
15
- </Text>
16
- <Text headline>Url {window.location.href} is not a valid.</Text>
17
- <Button preventDefault={false} onPress={() => setLocation('/')}>
18
- RETURN TO HOME →
19
- </Button>
20
- </View>
21
- </View>
22
- );
23
- };
@@ -1,21 +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 Profile = () => (
7
- <>
8
- <View tag="section" className={[style.section, style.box, style.accent]}>
9
- <View className={style.wrapper}>
10
- <Text bold brand headline level={1}>
11
- Your profile
12
- </Text>
13
- <Text>Explore and manage your personal profile settings here.</Text>
14
- </View>
15
- </View>
16
-
17
- <View className={[style.wrapper, style.box]}>
18
- <View data-mirai-component="profile" />
19
- </View>
20
- </>
21
- );
@@ -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 Signup = () => (
7
- <>
8
- <View tag="section" className={[style.section, style.box, style.accent]}>
9
- <View className={style.wrapper}>
10
- <Text bold brand headline level={1}>
11
- Signup
12
- </Text>
13
- <Text>Join Club Monalisa for free and enjoy exclusive benefits</Text>
14
- </View>
15
- </View>
16
- <View className={[style.wrapper, style.box]}>
17
- <View data-mirai-component="signup" />
18
- </View>
19
- </>
20
- );
@@ -1,4 +0,0 @@
1
- import { View } from '@mirai/ui';
2
- import React from 'react';
3
-
4
- export const Step0 = () => <View data-mirai-component="accommodations" />;
@@ -1,12 +0,0 @@
1
- import { View } from '@mirai/ui';
2
- import React from 'react';
3
-
4
- export const Step1 = () => (
5
- <View data-mirai-component="rates" data-test-id={window.IS_PLAYWRIGHT ? 'rates' : undefined}>
6
- {/* <span data-content-error>
7
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Ad itaque odio inventore eos et consequuntur molestias
8
- doloremque temporibus accusantium laborum rem nobis nostrum, voluptatum dolorum, repellendus quasi esse eveniet
9
- maxime?
10
- </span> */}
11
- </View>
12
- );
@@ -1,4 +0,0 @@
1
- import { View } from '@mirai/ui';
2
- import React from 'react';
3
-
4
- export const Step2 = () => <View data-mirai-component="checkout" data-session="true" />;
@@ -1,4 +0,0 @@
1
- import { View } from '@mirai/ui';
2
- import React from 'react';
3
-
4
- export const Step3 = () => <View data-mirai-component="booking" />;
@@ -1,18 +0,0 @@
1
- import { Action, Text, View } from '@mirai/ui';
2
- import React from 'react';
3
- import { useLocation } from 'wouter';
4
-
5
- export const Logo = ({ ...others }) => {
6
- const [, setLocation] = useLocation();
7
-
8
- return (
9
- <Action inline href="/" onPress={() => setLocation('/')}>
10
- <View {...others}>
11
- <Text bold brand headline level={2}>
12
- Monalisa
13
- </Text>
14
- <Text tiny>HOTEL & RESORT</Text>
15
- </View>
16
- </Action>
17
- );
18
- };
@@ -1 +0,0 @@
1
- export * from './Logo';
@@ -1,10 +0,0 @@
1
- export * from './Deals';
2
- export * from './Finder';
3
- export * from './Home';
4
- export * from './NotFound';
5
- export * from './Profile';
6
- // export * from './step0-accommodations';
7
- export * from './Step1-Rates';
8
- export * from './Step2-Checkout';
9
- export * from './Step3-Booking';
10
- export * from './Signup';
@@ -1,259 +0,0 @@
1
- .section {
2
- gap: var(--mirai-ui-space-M);
3
- }
4
-
5
- /* colors */
6
- .section.border {
7
- background-color: var(--mirai-ui-content-border);
8
- }
9
-
10
- .section.content {
11
- background-color: var(--mirai-ui-content);
12
- }
13
-
14
- .section.accent {
15
- background-color: var(--mirai-ui-accent);
16
- }
17
-
18
- .section.accent > * > ui-text {
19
- color: var(--mirai-ui-base);
20
- }
21
-
22
- /* layout */
23
- .section.centered {
24
- justify-content: center;
25
- gap: var(--mirai-ui-space-L);
26
- }
27
-
28
- .section.box {
29
- padding-bottom: calc(var(--mirai-ui-space-XXL) + var(--mirai-ui-space-L));
30
- }
31
-
32
- .section.spaceBetween {
33
- justify-content: space-between;
34
- }
35
-
36
- .texts {
37
- align-self: flex-start;
38
- }
39
-
40
- .image {
41
- background-color: var(--mirai-ui-content-background);
42
- }
43
-
44
- .image.square {
45
- min-height: var(--mirai-ui-breakpoint-S);
46
- min-width: var(--mirai-ui-breakpoint-S);
47
- }
48
-
49
- .wrapper {
50
- align-self: center;
51
- max-width: var(--mirai-ui-breakpoint-content);
52
- width: 100%;
53
- gap: var(--mirai-ui-space-S);
54
- }
55
-
56
- .wrapper.box {
57
- margin-top: calc(var(--mirai-ui-space-XXL) * -1);
58
- background-color: var(--mirai-ui-base);
59
- box-shadow: var(--mirai-ui-shadow);
60
- border-radius: var(--mirai-ui-border-radius);
61
- margin-bottom: var(--mirai-ui-space-XL);
62
- }
63
-
64
- .wrapper.centered {
65
- align-items: center;
66
- }
67
-
68
- /* -- home --------------------------------------------------------------- */
69
- .home {
70
- position: relative;
71
- justify-content: center;
72
- }
73
-
74
- .home .wrapper {
75
- z-index: 1;
76
- }
77
-
78
- .home .backgroundImage {
79
- background-position: center;
80
- background-size: cover;
81
- bottom: 0;
82
- left: 0;
83
- opacity: 0.66;
84
- position: absolute;
85
- right: 0;
86
- top: 0;
87
- }
88
-
89
- .home .text {
90
- color: var(--mirai-ui-base);
91
- text-align: center;
92
- text-shadow: 0 0 var(--mirai-ui-space-M) rgba(0, 0, 0, 0.33);
93
- }
94
-
95
- .testimonials > :first-child {
96
- max-width: var(--mirai-ui-breakpoint-S);
97
- }
98
-
99
- .cards {
100
- gap: var(--mirai-ui-space-L);
101
- width: 100%;
102
- flex: 1;
103
- }
104
-
105
- .card {
106
- background-color: var(--mirai-ui-base);
107
- border-radius: var(--mirai-ui-border-radius);
108
- gap: var(--mirai-ui-space-S);
109
- height: 320px;
110
- min-width: 256px;
111
- padding: var(--mirai-ui-space-L) var(--mirai-ui-space-L);
112
- }
113
-
114
- .card .avatar {
115
- background-color: var(--mirai-ui-content-border);
116
- background-size: cover;
117
- border-radius: 50%;
118
- height: var(--mirai-ui-space-XL);
119
- width: var(--mirai-ui-space-XL);
120
- }
121
-
122
- .card .avatar + * {
123
- margin-bottom: calc(var(--mirai-ui-space-XS) / 2);
124
- }
125
-
126
- .card > :last-child {
127
- align-items: flex-end;
128
- flex: 1;
129
- gap: var(--mirai-ui-space-S);
130
- }
131
-
132
- .finder.centered {
133
- margin: 0 auto;
134
- position: sticky;
135
- top: var(--mirai-ui-space-M);
136
- }
137
-
138
- .finder .resident > [data-role='text'] {
139
- color: var(--mirai-ui-base);
140
- }
141
-
142
- [data-mirai-component='finder'].column {
143
- background-color: var(--mirai-ui-content-background);
144
- max-width: calc(var(--mirai-ui-breakpoint-S) - var(--mirai-ui-space-M));
145
- margin: var(--mirai-ui-space-M);
146
- padding: var(--mirai-ui-space-M);
147
- align-self: center;
148
- }
149
-
150
- @media only screen and (max-width: 480px) {
151
- .section {
152
- padding: var(--mirai-ui-space-XL) var(--mirai-ui-space-M);
153
- }
154
-
155
- .section.accent.testimonials {
156
- gap: var(--mirai-ui-space-L);
157
- padding: var(--mirai-ui-space-XL) 0;
158
- }
159
-
160
- .testimonials > :first-child {
161
- padding: 0 var(--mirai-ui-space-M);
162
- }
163
-
164
- .cards > :first-child {
165
- margin-left: var(--mirai-ui-space-M);
166
- }
167
-
168
- .home {
169
- padding: var(--mirai-ui-space-XXL) var(--mirai-ui-space-M) calc(var(--mirai-ui-space-XXL) * 2)
170
- var(--mirai-ui-space-M);
171
- }
172
-
173
- .home .wrapper {
174
- gap: var(--mirai-ui-space-L);
175
- }
176
-
177
- .home .slogan {
178
- font-size: calc(var(--mirai-ui-font-size-headline-1) * 1.66);
179
- line-height: calc(var(--mirai-ui-line-height-headline-1) * 1.66);
180
- }
181
-
182
- .home .backgroundImage {
183
- background-image: url('https://framerusercontent.com/images/wMnYXmJb2xSPIDf60AukEywhD8A.jpg?scale-down-to=960');
184
- }
185
-
186
- .texts {
187
- gap: var(--mirai-ui-space-M);
188
- }
189
-
190
- .image.square {
191
- min-height: 90svw;
192
- min-width: 90svw;
193
- }
194
-
195
- .finder {
196
- margin-top: calc(var(--mirai-ui-space-L) * -1) !important;
197
- width: 90svw;
198
- }
199
- }
200
-
201
- @media only screen and (min-width: 481px) {
202
- .section {
203
- padding: var(--mirai-ui-space-XXL) var(--mirai-ui-space-M);
204
- }
205
-
206
- .section.accent.testimonials {
207
- gap: var(--mirai-ui-space-XXL);
208
- padding: var(--mirai-ui-space-XXL) 0 var(--mirai-ui-space-XXL) var(--mirai-ui-space-XXL);
209
- }
210
-
211
- .home {
212
- min-height: 66svh;
213
- }
214
-
215
- .home .wrapper {
216
- gap: var(--mirai-ui-space-XL);
217
- margin-bottom: var(--mirai-ui-space-M);
218
- }
219
-
220
- .home .slogan {
221
- font-size: calc(var(--mirai-ui-font-size-headline-1) * 3);
222
- line-height: calc(var(--mirai-ui-line-height-headline-1) * 3);
223
- max-width: calc(var(--mirai-ui-breakpoint-content) * 0.8);
224
- }
225
-
226
- .home .backgroundImage {
227
- background-image: url('https://framerusercontent.com/images/wMnYXmJb2xSPIDf60AukEywhD8A.jpg?scale-down-to=1920');
228
- }
229
-
230
- .home .pitch {
231
- max-width: 50%;
232
- }
233
-
234
- body:not([data-mirai-modal='true']) .finder.centered {
235
- z-index: 1;
236
- }
237
-
238
- .texts {
239
- gap: var(--mirai-ui-space-L);
240
- max-width: 50%;
241
- }
242
-
243
- .image.square {
244
- min-height: var(--mirai-ui-breakpoint-S);
245
- min-width: var(--mirai-ui-breakpoint-S);
246
- }
247
-
248
- .finder.centered {
249
- margin-top: calc(var(--mirai-ui-space-XXS) * 8.75 * -1);
250
- }
251
-
252
- .finder.centered.resident {
253
- margin-top: calc(var(--mirai-ui-space-S) * 5.75 * -1);
254
- }
255
-
256
- [data-mirai-component='finder'].column {
257
- min-width: calc(var(--mirai-ui-breakpoint-S) - var(--mirai-ui-space-M));
258
- }
259
- }
@@ -1,45 +0,0 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=MuseoModerno:wght@600&display=swap');
2
-
3
- :root {
4
- /* == legacy ====================================================================================================== */
5
- /* booking */
6
- /* --corporative-color: #003580; */
7
- /* pinterest */
8
- /* --corporative-color: #bd081c; */
9
-
10
- /* == @mirai/ui =================================================================================================== */
11
- /* typography */
12
- --mirai-ui-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
13
- --mirai-ui-font-weight: 400;
14
- --mirai-ui-font-medium-weight: 500;
15
- --mirai-ui-font-bold-weight: 600;
16
-
17
- /* palette */
18
- --mirai-ui-accent: #f7931a;
19
- --mirai-ui-accent-background: #fff5e6;
20
- --mirai-ui-accent-light: #ffb84d;
21
- --mirai-ui-accent-border: #ffcd94;
22
- --mirai-ui-accent-dark: #c66e0e;
23
-
24
- /* text */
25
- --mirai-ui-text-brand-font: 'MuseoModerno', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
26
- --mirai-ui-text-brand-font-weight: 600
27
- --mirai-ui-text-brand-font-medium: var(--mirai-ui-text-brand-font);
28
- --mirai-ui-text-brand-font-medium-weight: var(--mirai-ui-text-brand-font-weight);
29
- --mirai-ui-text-brand-font-bold: var(--mirai-ui-text-brand-font);
30
- --mirai-ui-text-brand-font-bold-weight: var(--mirai-ui-text-brand-font-weight);
31
-
32
- /* button */
33
- /* --mirai-ui-button-font-weight: var(--mirai-ui-font-bold-weight); */
34
-
35
-
36
- /* == @mirai/core ================================================================================================= */
37
- /* Finder */
38
- --mirai-finder-button-font-family: var(--mirai-ui-text-brand-font);
39
- --mirai-finder-button-font-weight: var(--mirai-ui-text-brand-font-weight);
40
- }
41
-
42
- body {
43
- margin: 0;
44
- padding: 0;
45
- }