@mirai/core 0.1.62 → 0.1.64

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.
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.SKELETONS = exports.COMPONENTS = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _Deals = _interopRequireDefault(require("./finder/Deals.skeleton"));
9
+ var _Booking = _interopRequireDefault(require("./user/Booking.skeleton"));
9
10
  var _BookingQuery = _interopRequireDefault(require("./user/BookingQuery.skeleton"));
10
11
  var _Profile = _interopRequireDefault(require("./user/Profile.skeleton"));
11
12
  var _Session = _interopRequireDefault(require("./user/Session.skeleton"));
@@ -18,6 +19,7 @@ const COMPONENTS = {
18
19
  // finder: React.lazy(() => import('./finder/Finder')),
19
20
  deals: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./finder/Deals')))),
20
21
  // @mirai/user
22
+ booking: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/Booking')))),
21
23
  bookingQuery: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/BookingQuery')))),
22
24
  profile: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/Profile')))),
23
25
  session: /*#__PURE__*/_react.default.lazy(() => Promise.resolve().then(() => _interopRequireWildcard(require('./user/Session')))),
@@ -31,6 +33,7 @@ const SKELETONS = {
31
33
  // @mirai/finder
32
34
  deals: _Deals.default,
33
35
  // @mirai/user
36
+ booking: _Booking.default,
34
37
  bookingQuery: _BookingQuery.default,
35
38
  profile: _Profile.default,
36
39
  session: _Session.default,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["COMPONENTS","deals","React","lazy","bookingQuery","profile","session","signup","environment","state","SKELETONS"],"sources":["../../src/components/index.js"],"sourcesContent":["import React from 'react';\n\nimport deals from './finder/Deals.skeleton';\nimport bookingQuery from './user/BookingQuery.skeleton';\nimport profile from './user/Profile.skeleton';\nimport session from './user/Session.skeleton';\nimport signup from './user/Signup.skeleton';\n\nconst COMPONENTS = {\n // @mirai/finder\n // finder: React.lazy(() => import('./finder/Finder')),\n deals: React.lazy(() => import('./finder/Deals')),\n\n // @mirai/user\n bookingQuery: React.lazy(() => import('./user/BookingQuery')),\n profile: React.lazy(() => import('./user/Profile')),\n session: React.lazy(() => import('./user/Session')),\n signup: React.lazy(() => import('./user/Signup')),\n\n // Internal\n environment: React.lazy(() => import('./__internal__/Environment')),\n state: React.lazy(() => import('./__internal__/State')),\n};\n\nconst SKELETONS = {\n // @mirai/finder\n deals,\n\n // @mirai/user\n bookingQuery,\n profile,\n session,\n signup,\n\n // Internal\n};\n\nexport { COMPONENTS, SKELETONS };\n"],"mappings":";;;;;;AAAA;AAEA;AACA;AACA;AACA;AACA;AAA4C;AAAA;AAAA;AAE5C,MAAMA,UAAU,GAAG;EACjB;EACA;EACAC,KAAK,eAAEC,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EAEjD;EACAC,YAAY,eAAEF,cAAK,CAACC,IAAI,CAAC,mEAAa,qBAAqB,GAAC,CAAC;EAC7DE,OAAO,eAAEH,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDG,OAAO,eAAEJ,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDI,MAAM,eAAEL,cAAK,CAACC,IAAI,CAAC,mEAAa,eAAe,GAAC,CAAC;EAEjD;EACAK,WAAW,eAAEN,cAAK,CAACC,IAAI,CAAC,mEAAa,4BAA4B,GAAC,CAAC;EACnEM,KAAK,eAAEP,cAAK,CAACC,IAAI,CAAC,mEAAa,sBAAsB,GAAC;AACxD,CAAC;AAAC;AAEF,MAAMO,SAAS,GAAG;EAChB;EACAT,KAAK,EAALA,cAAK;EAEL;EACAG,YAAY,EAAZA,qBAAY;EACZC,OAAO,EAAPA,gBAAO;EACPC,OAAO,EAAPA,gBAAO;EACPC,MAAM,EAANA;;EAEA;AACF,CAAC;AAAC"}
1
+ {"version":3,"file":"index.js","names":["COMPONENTS","deals","React","lazy","booking","bookingQuery","profile","session","signup","environment","state","SKELETONS"],"sources":["../../src/components/index.js"],"sourcesContent":["import React from 'react';\n\nimport deals from './finder/Deals.skeleton';\nimport booking from './user/Booking.skeleton';\nimport bookingQuery from './user/BookingQuery.skeleton';\nimport profile from './user/Profile.skeleton';\nimport session from './user/Session.skeleton';\nimport signup from './user/Signup.skeleton';\n\nconst COMPONENTS = {\n // @mirai/finder\n // finder: React.lazy(() => import('./finder/Finder')),\n deals: React.lazy(() => import('./finder/Deals')),\n\n // @mirai/user\n booking: React.lazy(() => import('./user/Booking')),\n bookingQuery: React.lazy(() => import('./user/BookingQuery')),\n profile: React.lazy(() => import('./user/Profile')),\n session: React.lazy(() => import('./user/Session')),\n signup: React.lazy(() => import('./user/Signup')),\n\n // Internal\n environment: React.lazy(() => import('./__internal__/Environment')),\n state: React.lazy(() => import('./__internal__/State')),\n};\n\nconst SKELETONS = {\n // @mirai/finder\n deals,\n\n // @mirai/user\n booking,\n bookingQuery,\n profile,\n session,\n signup,\n\n // Internal\n};\n\nexport { COMPONENTS, SKELETONS };\n"],"mappings":";;;;;;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AAA4C;AAAA;AAAA;AAE5C,MAAMA,UAAU,GAAG;EACjB;EACA;EACAC,KAAK,eAAEC,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EAEjD;EACAC,OAAO,eAAEF,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDE,YAAY,eAAEH,cAAK,CAACC,IAAI,CAAC,mEAAa,qBAAqB,GAAC,CAAC;EAC7DG,OAAO,eAAEJ,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDI,OAAO,eAAEL,cAAK,CAACC,IAAI,CAAC,mEAAa,gBAAgB,GAAC,CAAC;EACnDK,MAAM,eAAEN,cAAK,CAACC,IAAI,CAAC,mEAAa,eAAe,GAAC,CAAC;EAEjD;EACAM,WAAW,eAAEP,cAAK,CAACC,IAAI,CAAC,mEAAa,4BAA4B,GAAC,CAAC;EACnEO,KAAK,eAAER,cAAK,CAACC,IAAI,CAAC,mEAAa,sBAAsB,GAAC;AACxD,CAAC;AAAC;AAEF,MAAMQ,SAAS,GAAG;EAChB;EACAV,KAAK,EAALA,cAAK;EAEL;EACAG,OAAO,EAAPA,gBAAO;EACPC,YAAY,EAAZA,qBAAY;EACZC,OAAO,EAAPA,gBAAO;EACPC,OAAO,EAAPA,gBAAO;EACPC,MAAM,EAANA;;EAEA;AACF,CAAC;AAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _user = require("@mirai/user");
8
+ var _default = _user.Booking;
9
+ exports.default = _default;
10
+ //# sourceMappingURL=Booking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Booking.js","names":["Booking"],"sources":["../../../src/components/user/Booking.jsx"],"sourcesContent":["import { Booking } from '@mirai/user';\n\nexport default Booking;\n"],"mappings":";;;;;;AAAA;AAAsC,eAEvBA,aAAO;AAAA"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ui = require("@mirai/ui");
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _Skeleton = require("../__internal__/Skeleton");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ var _default = () => {
12
+ const {
13
+ isDesktop
14
+ } = (0, _ui.useDevice)();
15
+ return /*#__PURE__*/_react.default.createElement(_ui.View, {
16
+ row: true,
17
+ style: {
18
+ alignItems: 'start'
19
+ }
20
+ }, /*#__PURE__*/_react.default.createElement(_ui.View, {
21
+ style: {
22
+ gap: '0.5rem',
23
+ marginTop: '2rem',
24
+ minWidth: '100%'
25
+ }
26
+ }, /*#__PURE__*/_react.default.createElement(_Skeleton.Skeleton, {
27
+ style: {
28
+ alignSelf: 'center',
29
+ height: '5rem',
30
+ width: '8rem'
31
+ }
32
+ }), /*#__PURE__*/_react.default.createElement(_Skeleton.Skeleton, {
33
+ style: {
34
+ height: '3.5rem'
35
+ }
36
+ }), /*#__PURE__*/_react.default.createElement(_Skeleton.Skeleton, {
37
+ style: {
38
+ height: '4.5rem'
39
+ }
40
+ }), /*#__PURE__*/_react.default.createElement(_Skeleton.Skeleton, {
41
+ style: {
42
+ height: '11rem'
43
+ }
44
+ }), /*#__PURE__*/_react.default.createElement(_Skeleton.Skeleton, {
45
+ style: {
46
+ height: '7.5rem'
47
+ }
48
+ }), /*#__PURE__*/_react.default.createElement(_Skeleton.Skeleton, {
49
+ style: {
50
+ height: '30rem'
51
+ }
52
+ }), /*#__PURE__*/_react.default.createElement(_Skeleton.Skeleton, {
53
+ style: {
54
+ height: '5.5rem'
55
+ }
56
+ })), isDesktop && /*#__PURE__*/_react.default.createElement(_ui.View, {
57
+ style: {
58
+ marginTop: '7.5rem',
59
+ marginLeft: '1rem'
60
+ }
61
+ }, /*#__PURE__*/_react.default.createElement(_Skeleton.Skeleton, {
62
+ style: {
63
+ height: '9.5rem',
64
+ width: '8rem'
65
+ }
66
+ })));
67
+ };
68
+ exports.default = _default;
69
+ //# sourceMappingURL=Booking.skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Booking.skeleton.js","names":["isDesktop","useDevice","alignItems","gap","marginTop","minWidth","alignSelf","height","width","marginLeft"],"sources":["../../../src/components/user/Booking.skeleton.jsx"],"sourcesContent":["import { useDevice } from '@mirai/ui';\nimport { View } from '@mirai/ui';\nimport React from 'react';\n\nimport { Skeleton } from '../__internal__/Skeleton';\n\nexport default () => {\n const { isDesktop } = useDevice();\n\n return (\n <View row style={{ alignItems: 'start' }}>\n <View style={{ gap: '0.5rem', marginTop: '2rem', minWidth: '100%' }}>\n <Skeleton style={{ alignSelf: 'center', height: '5rem', width: '8rem' }} />\n <Skeleton style={{ height: '3.5rem' }} />\n <Skeleton style={{ height: '4.5rem' }} />\n <Skeleton style={{ height: '11rem' }} />\n <Skeleton style={{ height: '7.5rem' }} />\n <Skeleton style={{ height: '30rem' }} />\n <Skeleton style={{ height: '5.5rem' }} />\n </View>\n {isDesktop && (\n <View style={{ marginTop: '7.5rem', marginLeft: '1rem' }}>\n <Skeleton style={{ height: '9.5rem', width: '8rem' }} />\n </View>\n )}\n </View>\n );\n};\n"],"mappings":";;;;;;AAAA;AAEA;AAEA;AAAoD;AAAA,eAErC,MAAM;EACnB,MAAM;IAAEA;EAAU,CAAC,GAAG,IAAAC,aAAS,GAAE;EAEjC,oBACE,6BAAC,QAAI;IAAC,GAAG;IAAC,KAAK,EAAE;MAAEC,UAAU,EAAE;IAAQ;EAAE,gBACvC,6BAAC,QAAI;IAAC,KAAK,EAAE;MAAEC,GAAG,EAAE,QAAQ;MAAEC,SAAS,EAAE,MAAM;MAAEC,QAAQ,EAAE;IAAO;EAAE,gBAClE,6BAAC,kBAAQ;IAAC,KAAK,EAAE;MAAEC,SAAS,EAAE,QAAQ;MAAEC,MAAM,EAAE,MAAM;MAAEC,KAAK,EAAE;IAAO;EAAE,EAAG,eAC3E,6BAAC,kBAAQ;IAAC,KAAK,EAAE;MAAED,MAAM,EAAE;IAAS;EAAE,EAAG,eACzC,6BAAC,kBAAQ;IAAC,KAAK,EAAE;MAAEA,MAAM,EAAE;IAAS;EAAE,EAAG,eACzC,6BAAC,kBAAQ;IAAC,KAAK,EAAE;MAAEA,MAAM,EAAE;IAAQ;EAAE,EAAG,eACxC,6BAAC,kBAAQ;IAAC,KAAK,EAAE;MAAEA,MAAM,EAAE;IAAS;EAAE,EAAG,eACzC,6BAAC,kBAAQ;IAAC,KAAK,EAAE;MAAEA,MAAM,EAAE;IAAQ;EAAE,EAAG,eACxC,6BAAC,kBAAQ;IAAC,KAAK,EAAE;MAAEA,MAAM,EAAE;IAAS;EAAE,EAAG,CACpC,EACNP,SAAS,iBACR,6BAAC,QAAI;IAAC,KAAK,EAAE;MAAEI,SAAS,EAAE,QAAQ;MAAEK,UAAU,EAAE;IAAO;EAAE,gBACvD,6BAAC,kBAAQ;IAAC,KAAK,EAAE;MAAEF,MAAM,EAAE,QAAQ;MAAEC,KAAK,EAAE;IAAO;EAAE,EAAG,CAE3D,CACI;AAEX,CAAC;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirai/core",
3
- "version": "0.1.62",
3
+ "version": "0.1.64",
4
4
  "source": "src/index.js",
5
5
  "repository": "https://gitlab.com/miraicorp/dev/frontend/core",
6
6
  "author": "JΛVI <hello@soyjavi.com>",
@@ -7,6 +7,10 @@
7
7
  --header-height: calc(var(--mirai-ui-space-XL) * 2);
8
8
  }
9
9
 
10
+ html {
11
+ font-size: 16px;
12
+ }
13
+
10
14
  body {
11
15
  color: var(--mirai-ui-content);
12
16
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
@@ -63,22 +67,25 @@ section {
63
67
  width: calc(100% - calc(var(--mirai-ui-space-M) * 2));
64
68
  }
65
69
 
66
- section.finder {
67
- background-color: var(--mirai-ui-content-border);
68
- padding-bottom: var(--mirai-ui-space-XL);
69
- padding-top: var(--mirai-ui-space-XL);
70
+ section.booking {
70
71
  }
71
72
 
72
73
  section.deals {
73
74
  }
74
75
 
75
- section.signup {
76
+ section.finder {
77
+ background-color: var(--mirai-ui-content-border);
78
+ padding-bottom: var(--mirai-ui-space-XL);
79
+ padding-top: var(--mirai-ui-space-XL);
76
80
  }
77
81
 
78
82
  section.profile > * {
79
83
  width: 100%;
80
84
  }
81
85
 
86
+ section.signup {
87
+ }
88
+
82
89
  footer {
83
90
  background-color: var(--mirai-ui-content-border);
84
91
  color: var(--mirai-ui-content-light);
@@ -89,10 +96,14 @@ footer {
89
96
  }
90
97
 
91
98
  @media only screen and (max-width: 430px) {
99
+ section.booking > * {
100
+ min-width: 100vw;
101
+ }
102
+
92
103
  section.deals {
93
104
  display: block;
94
105
  }
95
-
106
+
96
107
  section.deals > * {
97
108
  }
98
109
 
@@ -104,6 +115,9 @@ footer {
104
115
  }
105
116
 
106
117
  @media only screen and (min-width: 431px) {
118
+ section.booking > * {
119
+ min-width: 960px;
120
+ }
107
121
  section.signup > * {
108
122
  width: 50%;
109
123
  }
@@ -0,0 +1,19 @@
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>@mirai/core</title>
7
+ <link rel="stylesheet" href="{url}/index.css" rel="preload" defer />
8
+ <link rel="stylesheet" href="{url}/site/customer.css" />
9
+ </head>
10
+ <body>
11
+ <div data-mirai-id="501404" data-hotel="100376545" data-type="chain" data-locale="en-GB" hidden></div>
12
+
13
+ <section class="booking">
14
+ <div data-mirai-component="booking"></div>
15
+ </section>
16
+
17
+ <script type="module" defer src="{url}/index.js"></script>
18
+ </body>
19
+ </html>
@@ -0,0 +1,31 @@
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>@mirai/core</title>
7
+ <link rel="stylesheet" href="{url}/index.css" rel="preload" defer />
8
+ <link rel="stylesheet" href="{url}/site/customer.css" />
9
+ </head>
10
+ <body>
11
+ <div data-mirai-id="501404" data-hotel="100376545" data-type="chain" data-locale="en-GB" hidden></div>
12
+
13
+ <header>
14
+ <h1>@mirai/core</h1>
15
+ <nav>
16
+ <div data-mirai-component="session"></div>
17
+ <div data-mirai-component="bookingQuery"></div>
18
+ <div data-mirai-component="environment" data-mobile="false"></div>
19
+ <div data-mirai-component="state"></div>
20
+ </nav>
21
+ </header>
22
+
23
+ <section class="deals">
24
+ <div data-mirai-component="deals"></div>
25
+ </section>
26
+
27
+ <footer>Mirai Tech - Copyright, 2023</footer>
28
+
29
+ <script type="module" defer src="{url}/index.js"></script>
30
+ </body>
31
+ </html>
@@ -24,10 +24,6 @@
24
24
  <div data-mirai-component="profile"></div>
25
25
  </section>
26
26
 
27
- <section class="signup">
28
- <div data-mirai-component="signup"></div>
29
- </section>
30
-
31
27
  <footer>Mirai Tech - Copyright, 2023</footer>
32
28
 
33
29
  <script type="module" defer src="{url}/index.js"></script>