@mirai/core 0.3.18 → 0.3.20

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 (69) hide show
  1. package/build/components/Booking/Booking.skeleton.js +14 -18
  2. package/build/components/Booking/Booking.skeleton.js.map +1 -1
  3. package/build/components/Checkout/Checkout.skeleton.js +15 -23
  4. package/build/components/Checkout/Checkout.skeleton.js.map +1 -1
  5. package/build/components/Deals/Deals.skeleton.js +1 -2
  6. package/build/components/Deals/Deals.skeleton.js.map +1 -1
  7. package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +22 -22
  8. package/build/components/Finder/Finder.compact.js +131 -0
  9. package/build/components/Finder/Finder.compact.js.map +1 -0
  10. package/build/components/Finder/Finder.constants.js +6 -3
  11. package/build/components/Finder/Finder.constants.js.map +1 -1
  12. package/build/components/Finder/Finder.js +73 -43
  13. package/build/components/Finder/Finder.js.map +1 -1
  14. package/build/components/Finder/Finder.module.css +36 -0
  15. package/build/components/Finder/Finder.skeleton.js +48 -0
  16. package/build/components/Finder/Finder.skeleton.js.map +1 -0
  17. package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +6049 -931
  18. package/build/components/Finder/components/Calendar/Calendar.js +4 -7
  19. package/build/components/Finder/components/Calendar/Calendar.js.map +1 -1
  20. package/build/components/Finder/helpers/getForwarderUrl.js +62 -0
  21. package/build/components/Finder/helpers/getForwarderUrl.js.map +1 -0
  22. package/build/components/Finder/helpers/index.js +11 -0
  23. package/build/components/Finder/helpers/index.js.map +1 -1
  24. package/build/components/Rates/Rates.Footer.js +39 -10
  25. package/build/components/Rates/Rates.Footer.js.map +1 -1
  26. package/build/components/Rates/Rates.Skeleton.js +80 -0
  27. package/build/components/Rates/Rates.Skeleton.js.map +1 -0
  28. package/build/components/Rates/Rates.js +81 -50
  29. package/build/components/Rates/Rates.js.map +1 -1
  30. package/build/components/Rates/Rates.module.css +3 -6
  31. package/build/components/Rates/components/Item/Item.js +8 -6
  32. package/build/components/Rates/components/Item/Item.js.map +1 -1
  33. package/build/components/Rates/components/Item/Item.l10n.js +6 -0
  34. package/build/components/Rates/components/Item/Item.l10n.js.map +1 -1
  35. package/build/components/Rates/helpers/{getCheckoutParams.js → getForwarderUrl.js} +22 -15
  36. package/build/components/Rates/helpers/getForwarderUrl.js.map +1 -0
  37. package/build/components/Rates/helpers/index.js +4 -4
  38. package/build/components/Rates/helpers/index.js.map +1 -1
  39. package/build/components/State/State.js +2 -2
  40. package/build/components/State/State.js.map +1 -1
  41. package/build/components/State/State.module.css +1 -0
  42. package/build/components/__shared__/FieldOccupation/FieldOccupation.js +1 -1
  43. package/build/components/__shared__/FieldOccupation/FieldOccupation.js.map +1 -1
  44. package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +37 -37
  45. package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js +9 -9
  46. package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js.map +1 -1
  47. package/build/components/__shared__/Occupation/helpers/toParties.js.map +1 -1
  48. package/build/components/__shared__/Skeleton/Skeleton.js +8 -8
  49. package/build/components/__shared__/Skeleton/Skeleton.js.map +1 -1
  50. package/build/components/__shared__/Skeleton/Skeleton.module.css +22 -6
  51. package/build/components/helpers/ICON.js +1 -0
  52. package/build/components/helpers/ICON.js.map +1 -1
  53. package/build/components/helpers/index.js +11 -0
  54. package/build/components/helpers/index.js.map +1 -1
  55. package/build/components/helpers/parseToParties.js +18 -0
  56. package/build/components/helpers/parseToParties.js.map +1 -0
  57. package/build/components/index.js +2 -2
  58. package/build/components/index.js.map +1 -1
  59. package/build/services/Rates/get.js +10 -7
  60. package/build/services/Rates/get.js.map +1 -1
  61. package/build/services/Rates/helpers/parseDiscount.js +3 -3
  62. package/build/services/Rates/helpers/parseDiscount.js.map +1 -1
  63. package/package.json +1 -1
  64. package/public/App.Container.jsx +2 -2
  65. package/public/App.module.css +5 -0
  66. package/public/routes/Home.jsx +2 -2
  67. package/public/routes/routes.module.css +5 -0
  68. package/public/themes/monalisa.theme.css +6 -4
  69. package/build/components/Rates/helpers/getCheckoutParams.js.map +0 -1
@@ -9,6 +9,11 @@ body {
9
9
  padding: 0;
10
10
  }
11
11
 
12
+ .textBrand {
13
+ font-family: var(--mirai-ui-font-brand);
14
+ font-weight: var(--mirai-ui-font-brand-weight);
15
+ }
16
+
12
17
  /* -- App.container.jsx ----------------------------------------------------- */
13
18
  .wrapper {
14
19
  align-self: center;
@@ -9,7 +9,7 @@ export const Home = () => (
9
9
  <View tag="section" className={[style.section, style.highlight, style.home]}>
10
10
  <View className={[style.wrapper, style.centered]}>
11
11
  <Text className={style.pitch}>ENJOY YOUR WONDERFUL HOLIDAYS WITH A GREAT LUXURY EXPERIENCE!</Text>
12
- <Text bold className={style.slogan}>
12
+ <Text bold className={[style.slogan, style.textBrand]}>
13
13
  Most Relaxing Place
14
14
  </Text>
15
15
  <View row className={style.buttons}>
@@ -26,7 +26,7 @@ export const Home = () => (
26
26
  <View row tag="section" className={[style.section, style.highlight, style.centered]}>
27
27
  <View>
28
28
  <Text>FIND BEST HOTEL FOR LEAVING</Text>
29
- <Text bold headline level={1}>
29
+ <Text bold headline level={1} className={style.textBrand}>
30
30
  Find the Best Hotel in Your Next Vacation
31
31
  </Text>
32
32
  </View>
@@ -37,6 +37,11 @@
37
37
  align-items: center;
38
38
  }
39
39
 
40
+ .textBrand {
41
+ font-family: var(--mirai-ui-font-brand);
42
+ font-weight: var(--mirai-ui-font-brand-weight);
43
+ }
44
+
40
45
  /* -- home --------------------------------------------------------------- */
41
46
  .home .pitch {
42
47
  text-align: center;
@@ -1,18 +1,20 @@
1
1
  @import url('../../node_modules/@mirai/ui/build/theme/default.theme.css');
2
- @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;700&display=swap');
2
+ @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;600&display=swap');
3
3
 
4
4
  :root {
5
5
  --mirai-ui-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
6
6
  --mirai-ui-font-weight: 500;
7
- --mirai-ui-font-bold: 'Playfair Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
7
+ --mirai-ui-font-bold-weight: 600;
8
+
9
+ --mirai-ui-font-brand: 'Playfair Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
8
10
  sans-serif;
9
- --mirai-ui-font-bold-weight: 700;
11
+ --mirai-ui-font-brand-weight: 700;
10
12
 
11
13
  /* palette */
12
14
  --mirai-ui-accent: #c5a880;
13
15
 
14
16
  /* Button */
15
- --mirai-ui-button-font-weight: 700;
17
+ --mirai-ui-button-font-weight: 600;
16
18
  }
17
19
 
18
20
  body {
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCheckoutParams.js","names":["getCheckoutParams","exports","selected","arguments","length","undefined","urlParams","_Object$entries$reduc","Object","entries","reduce","result","_ref","_ref2","_slicedToArray","key","_ref2$","_ref2$2","amount","price","id","replace","ids","split","items","concat","deals","push","idRR","offersApplied","totalPrice","URLSearchParams","_objectSpread","extras","offersAppliedBySelectedRoom","JSON","stringify","roomNumberBySelectedRoom","rooms","toString"],"sources":["../../../../src/components/Rates/helpers/getCheckoutParams.js"],"sourcesContent":["export const getCheckoutParams = (selected = {}, urlParams = {}) => {\n const { deals, items, totalPrice } = Object.entries(selected).reduce(\n (result, [key, { amount, price } = {}] = []) => {\n const id = key.replace(/--/g, '|');\n const ids = key.split('--');\n\n result.items += `${result.items ? ',' : ''}${id}:${amount}`;\n result.deals.push({ idRR: id, offersApplied: ids[ids.length - 1] });\n result.totalPrice += price * amount * 100;\n\n return result;\n },\n { deals: [], items: '', totalPrice: 0 },\n );\n\n return new URLSearchParams(\n Object.entries({\n extras: [],\n offersAppliedBySelectedRoom: JSON.stringify(deals),\n roomNumberBySelectedRoom: [], //hotel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