@mirai/core 0.3.330 → 0.3.331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/Booking/Booking.constants.js +1 -2
- package/build/components/Booking/Booking.constants.js.map +1 -1
- package/build/components/Booking/Booking.js +4 -3
- package/build/components/Booking/Booking.js.map +1 -1
- package/build/components/Booking/Booking.module.css +1 -18
- package/build/components/Booking/partials/index.js +3 -14
- package/build/components/Booking/partials/index.js.map +1 -1
- package/build/components/Checkout/Checkout.constants.js +1 -2
- package/build/components/Checkout/Checkout.constants.js.map +1 -1
- package/build/components/Checkout/Checkout.js +4 -3
- package/build/components/Checkout/Checkout.js.map +1 -1
- package/build/components/Checkout/Checkout.module.css +0 -49
- package/build/components/Checkout/partials/index.js +1 -12
- package/build/components/Checkout/partials/index.js.map +1 -1
- package/build/components/Rates/Rates.module.css +0 -1
- package/build/components/Rates/components/Filters/components/InputRange/InputRange.js +6 -6
- package/build/components/Rates/components/Filters/components/InputRange/InputRange.js.map +1 -1
- package/build/components/__shared__/BookingDetails/BookingDetails.constants.js +10 -0
- package/build/components/__shared__/BookingDetails/BookingDetails.constants.js.map +1 -0
- package/build/components/{Checkout/partials/Checkout.Details.js → __shared__/BookingDetails/BookingDetails.js} +36 -38
- package/build/components/__shared__/BookingDetails/BookingDetails.js.map +1 -0
- package/build/components/__shared__/BookingDetails/BookingDetails.l10n.js +27 -0
- package/build/components/__shared__/BookingDetails/BookingDetails.l10n.js.map +1 -0
- package/build/components/__shared__/BookingDetails/BookingDetails.module.css +60 -0
- package/build/components/{Booking/partials/__tests__/__snapshots__/Booking.Details.test.js.snap → __shared__/BookingDetails/__tests__/__snapshots__/BookingDetails.test.js.snap} +862 -403
- package/build/components/__shared__/BookingDetails/index.js +17 -0
- package/build/components/__shared__/BookingDetails/index.js.map +1 -0
- package/build/components/__shared__/BookingDetails/mocks/booking.json +176 -0
- package/build/components/__shared__/BookingDetails/mocks/checkout.json +518 -0
- package/build/components/__shared__/BookingTable/BookingTable.Row.js +9 -5
- package/build/components/__shared__/BookingTable/BookingTable.Row.js.map +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.js +18 -3
- package/build/components/__shared__/BookingTable/BookingTable.js.map +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.l10n.js +5 -2
- package/build/components/__shared__/BookingTable/BookingTable.l10n.js.map +1 -1
- package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.Row.test.js.snap +56 -0
- package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.test.js.snap +126 -0
- package/build/components/__shared__/Footer/Footer.module.css +3 -4
- package/build/components/__shared__/index.js +11 -0
- package/build/components/__shared__/index.js.map +1 -1
- package/package.json +1 -1
- package/build/components/Booking/partials/Booking.Details.js +0 -154
- package/build/components/Booking/partials/Booking.Details.js.map +0 -1
- package/build/components/Checkout/partials/Checkout.Details.js.map +0 -1
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Details.test.js.snap +0 -1312
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookingTable.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_BookingTable","style","
|
|
1
|
+
{"version":3,"file":"BookingTable.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_BookingTable","_BookingTable2","style","_BookingTable3","_ButtonMore","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","UNEXPANDED_ITEMS","BookingTable","_ref","currency","expanded","dataSource","label","showTotal","tracking","others","isDesktop","useDevice","dateFormat","translate","useLocale","track","useMetrics","expand","setExpand","useState","useEffect","handlePress","concat","createElement","View","className","styles","table","collapsed","Text","headline","bold","slice","map","_ref2","index","date","title","item","Row","parseDate","FORMAT_DATE","ButtonMore","onPress","buttonMore","L10N","LABEL_TOTAL","summary","price","reduce","total","_ref3","exports","displayName","propTypes","PropTypes","string","arrayOf","shape","bool"],"sources":["../../../../src/components/__shared__/BookingTable/BookingTable.jsx"],"sourcesContent":["import { useMetrics } from '@mirai/data-sources';\nimport { parseDate, useLocale } from '@mirai/locale';\nimport { styles, Text, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport { FORMAT_DATE } from './BookingTable.constants';\nimport { L10N } from './BookingTable.l10n';\nimport * as style from './BookingTable.module.css';\nimport { Row } from './BookingTable.Row';\nimport { ButtonMore } from '../ButtonMore';\n\nconst UNEXPANDED_ITEMS = 3;\n\nconst BookingTable = ({\n currency,\n expanded = true,\n dataSource = [],\n label,\n showTotal = false,\n tracking,\n ...others\n}) => {\n const { isDesktop } = useDevice();\n const { dateFormat, translate } = useLocale();\n const { track } = useMetrics();\n\n const [expand, setExpand] = useState(dataSource.length <= UNEXPANDED_ITEMS);\n\n useEffect(() => setExpand(dataSource.length <= UNEXPANDED_ITEMS), [dataSource]);\n\n const handlePress = () => {\n track(`${tracking}:ACTION:DETAIL_EXPAND`);\n setExpand(true);\n };\n\n return dataSource.length > 0 ? (\n <View {...others} className={styles(style.table, !expand && style.collapsed, others.className)}>\n {label && (\n <Text headline={isDesktop} bold>\n {label}\n </Text>\n )}\n {dataSource\n .slice(0, expanded || expand ? dataSource.length : UNEXPANDED_ITEMS)\n .map(({ date, title = '', ...item }, index) => (\n <Row\n {...{ ...item, currency, tracking }}\n title={date ? dateFormat(parseDate(date), FORMAT_DATE) : title}\n key={index}\n >\n {!expanded && !expand && index === UNEXPANDED_ITEMS - 1 && (\n <ButtonMore onPress={handlePress} className={style.buttonMore} />\n )}\n </Row>\n ))}\n\n {showTotal && (expanded || expand) && (\n <Row\n bold\n title={translate(L10N.LABEL_TOTAL)}\n summary=\" \"\n price={dataSource.reduce((total, { price = 0 }) => total + price, 0)}\n currency={currency}\n />\n )}\n </View>\n ) : null;\n};\n\nBookingTable.displayName = 'Mirai:Core:BookingTable';\n\nBookingTable.propTypes = {\n currency: PropTypes.string,\n dataSource: PropTypes.arrayOf(PropTypes.shape({})),\n expanded: PropTypes.bool,\n label: PropTypes.string,\n showTotal: PropTypes.bool,\n tracking: PropTypes.string,\n};\n\nexport { BookingTable };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,GAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,KAAA,GAAAH,uBAAA,CAAAN,OAAA;AACA,IAAAU,cAAA,GAAAV,OAAA;AACA,IAAAW,WAAA,GAAAX,OAAA;AAA2C,SAAAY,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CA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UAAU,EAAEkD,kBAAS,CAACE,OAAO,CAACF,kBAAS,CAACG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;EAClDtD,QAAQ,EAAEmD,kBAAS,CAACI,IAAI;EACxBrD,KAAK,EAAEiD,kBAAS,CAACC,MAAM;EACvBjD,SAAS,EAAEgD,kBAAS,CAACI,IAAI;EACzBnD,QAAQ,EAAE+C,kBAAS,CAACC;AACtB,CAAC"}
|
|
@@ -5,11 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.L10N = void 0;
|
|
7
7
|
const L10N = exports.L10N = {
|
|
8
|
+
ACTION_MORE_INFO: {
|
|
9
|
+
id: 'common.action.more_info'
|
|
10
|
+
},
|
|
8
11
|
LABEL_FREE: {
|
|
9
12
|
id: 'common.label.free'
|
|
10
13
|
},
|
|
11
|
-
|
|
12
|
-
id: 'common.
|
|
14
|
+
LABEL_TOTAL: {
|
|
15
|
+
id: 'common.label.total'
|
|
13
16
|
}
|
|
14
17
|
};
|
|
15
18
|
//# sourceMappingURL=BookingTable.l10n.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookingTable.l10n.js","names":["L10N","exports","
|
|
1
|
+
{"version":3,"file":"BookingTable.l10n.js","names":["L10N","exports","ACTION_MORE_INFO","id","LABEL_FREE","LABEL_TOTAL"],"sources":["../../../../src/components/__shared__/BookingTable/BookingTable.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_MORE_INFO: { id: 'common.action.more_info' },\n\n LABEL_FREE: { id: 'common.label.free' },\n LABEL_TOTAL: { id: 'common.label.total' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,gBAAgB,EAAE;IAAEC,EAAE,EAAE;EAA0B,CAAC;EAEnDC,UAAU,EAAE;IAAED,EAAE,EAAE;EAAoB,CAAC;EACvCE,WAAW,EAAE;IAAEF,EAAE,EAAE;EAAqB;AAC1C,CAAC"}
|
|
@@ -97,6 +97,13 @@ exports[`component:<BookingTable.Row> inherit:className 1`] = `
|
|
|
97
97
|
/>
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
|
+
<div
|
|
101
|
+
class="view"
|
|
102
|
+
>
|
|
103
|
+
<span
|
|
104
|
+
class="text action"
|
|
105
|
+
/>
|
|
106
|
+
</div>
|
|
100
107
|
<div
|
|
101
108
|
class="view"
|
|
102
109
|
>
|
|
@@ -135,6 +142,13 @@ exports[`component:<BookingTable.Row> prop:children 1`] = `
|
|
|
135
142
|
/>
|
|
136
143
|
</div>
|
|
137
144
|
</div>
|
|
145
|
+
<div
|
|
146
|
+
class="view"
|
|
147
|
+
>
|
|
148
|
+
<span
|
|
149
|
+
class="text action"
|
|
150
|
+
/>
|
|
151
|
+
</div>
|
|
138
152
|
<div
|
|
139
153
|
class="view"
|
|
140
154
|
>
|
|
@@ -190,6 +204,13 @@ exports[`component:<BookingTable.Row> prop:description 1`] = `
|
|
|
190
204
|
</div>
|
|
191
205
|
</div>
|
|
192
206
|
</div>
|
|
207
|
+
<div
|
|
208
|
+
class="view"
|
|
209
|
+
>
|
|
210
|
+
<span
|
|
211
|
+
class="text action"
|
|
212
|
+
/>
|
|
213
|
+
</div>
|
|
193
214
|
<div
|
|
194
215
|
class="view"
|
|
195
216
|
>
|
|
@@ -235,6 +256,13 @@ exports[`component:<BookingTable.Row> prop:price & prop:currency 1`] = `
|
|
|
235
256
|
class="text action"
|
|
236
257
|
/>
|
|
237
258
|
</div>
|
|
259
|
+
<div
|
|
260
|
+
class="view"
|
|
261
|
+
>
|
|
262
|
+
<span
|
|
263
|
+
class="text action"
|
|
264
|
+
/>
|
|
265
|
+
</div>
|
|
238
266
|
</div>
|
|
239
267
|
</DocumentFragment>
|
|
240
268
|
`;
|
|
@@ -271,6 +299,13 @@ exports[`component:<BookingTable.Row> prop:price 1`] = `
|
|
|
271
299
|
class="text action"
|
|
272
300
|
/>
|
|
273
301
|
</div>
|
|
302
|
+
<div
|
|
303
|
+
class="view"
|
|
304
|
+
>
|
|
305
|
+
<span
|
|
306
|
+
class="text action"
|
|
307
|
+
/>
|
|
308
|
+
</div>
|
|
274
309
|
</div>
|
|
275
310
|
</DocumentFragment>
|
|
276
311
|
`;
|
|
@@ -306,6 +341,13 @@ exports[`component:<BookingTable.Row> prop:subtitle 1`] = `
|
|
|
306
341
|
</div>
|
|
307
342
|
</div>
|
|
308
343
|
</div>
|
|
344
|
+
<div
|
|
345
|
+
class="view"
|
|
346
|
+
>
|
|
347
|
+
<span
|
|
348
|
+
class="text action"
|
|
349
|
+
/>
|
|
350
|
+
</div>
|
|
309
351
|
<div
|
|
310
352
|
class="view"
|
|
311
353
|
>
|
|
@@ -391,6 +433,13 @@ exports[`component:<BookingTable.Row> renders 1`] = `
|
|
|
391
433
|
/>
|
|
392
434
|
</div>
|
|
393
435
|
</div>
|
|
436
|
+
<div
|
|
437
|
+
class="view"
|
|
438
|
+
>
|
|
439
|
+
<span
|
|
440
|
+
class="text action"
|
|
441
|
+
/>
|
|
442
|
+
</div>
|
|
394
443
|
<div
|
|
395
444
|
class="view"
|
|
396
445
|
>
|
|
@@ -430,6 +479,13 @@ exports[`component:<BookingTable.Row> testID 1`] = `
|
|
|
430
479
|
/>
|
|
431
480
|
</div>
|
|
432
481
|
</div>
|
|
482
|
+
<div
|
|
483
|
+
class="view"
|
|
484
|
+
>
|
|
485
|
+
<span
|
|
486
|
+
class="text action"
|
|
487
|
+
/>
|
|
488
|
+
</div>
|
|
433
489
|
<div
|
|
434
490
|
class="view"
|
|
435
491
|
>
|
package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.test.js.snap
CHANGED
|
@@ -26,6 +26,13 @@ exports[`component:<BookingTable> inherit:className 1`] = `
|
|
|
26
26
|
/>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
|
+
<div
|
|
30
|
+
class="view"
|
|
31
|
+
>
|
|
32
|
+
<span
|
|
33
|
+
class="text action"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
29
36
|
<div
|
|
30
37
|
class="view"
|
|
31
38
|
>
|
|
@@ -57,6 +64,13 @@ exports[`component:<BookingTable> inherit:className 1`] = `
|
|
|
57
64
|
/>
|
|
58
65
|
</div>
|
|
59
66
|
</div>
|
|
67
|
+
<div
|
|
68
|
+
class="view"
|
|
69
|
+
>
|
|
70
|
+
<span
|
|
71
|
+
class="text action"
|
|
72
|
+
/>
|
|
73
|
+
</div>
|
|
60
74
|
<div
|
|
61
75
|
class="view"
|
|
62
76
|
>
|
|
@@ -88,6 +102,13 @@ exports[`component:<BookingTable> inherit:className 1`] = `
|
|
|
88
102
|
/>
|
|
89
103
|
</div>
|
|
90
104
|
</div>
|
|
105
|
+
<div
|
|
106
|
+
class="view"
|
|
107
|
+
>
|
|
108
|
+
<span
|
|
109
|
+
class="text action"
|
|
110
|
+
/>
|
|
111
|
+
</div>
|
|
91
112
|
<div
|
|
92
113
|
class="view"
|
|
93
114
|
>
|
|
@@ -128,6 +149,13 @@ exports[`component:<BookingTable> prop:currency 1`] = `
|
|
|
128
149
|
/>
|
|
129
150
|
</div>
|
|
130
151
|
</div>
|
|
152
|
+
<div
|
|
153
|
+
class="view"
|
|
154
|
+
>
|
|
155
|
+
<span
|
|
156
|
+
class="text action"
|
|
157
|
+
/>
|
|
158
|
+
</div>
|
|
131
159
|
<div
|
|
132
160
|
class="view"
|
|
133
161
|
>
|
|
@@ -159,6 +187,13 @@ exports[`component:<BookingTable> prop:currency 1`] = `
|
|
|
159
187
|
/>
|
|
160
188
|
</div>
|
|
161
189
|
</div>
|
|
190
|
+
<div
|
|
191
|
+
class="view"
|
|
192
|
+
>
|
|
193
|
+
<span
|
|
194
|
+
class="text action"
|
|
195
|
+
/>
|
|
196
|
+
</div>
|
|
162
197
|
<div
|
|
163
198
|
class="view"
|
|
164
199
|
>
|
|
@@ -190,6 +225,13 @@ exports[`component:<BookingTable> prop:currency 1`] = `
|
|
|
190
225
|
/>
|
|
191
226
|
</div>
|
|
192
227
|
</div>
|
|
228
|
+
<div
|
|
229
|
+
class="view"
|
|
230
|
+
>
|
|
231
|
+
<span
|
|
232
|
+
class="text action"
|
|
233
|
+
/>
|
|
234
|
+
</div>
|
|
193
235
|
<div
|
|
194
236
|
class="view"
|
|
195
237
|
>
|
|
@@ -230,6 +272,13 @@ exports[`component:<BookingTable> prop:expanded 1`] = `
|
|
|
230
272
|
/>
|
|
231
273
|
</div>
|
|
232
274
|
</div>
|
|
275
|
+
<div
|
|
276
|
+
class="view"
|
|
277
|
+
>
|
|
278
|
+
<span
|
|
279
|
+
class="text action"
|
|
280
|
+
/>
|
|
281
|
+
</div>
|
|
233
282
|
<div
|
|
234
283
|
class="view"
|
|
235
284
|
>
|
|
@@ -261,6 +310,13 @@ exports[`component:<BookingTable> prop:expanded 1`] = `
|
|
|
261
310
|
/>
|
|
262
311
|
</div>
|
|
263
312
|
</div>
|
|
313
|
+
<div
|
|
314
|
+
class="view"
|
|
315
|
+
>
|
|
316
|
+
<span
|
|
317
|
+
class="text action"
|
|
318
|
+
/>
|
|
319
|
+
</div>
|
|
264
320
|
<div
|
|
265
321
|
class="view"
|
|
266
322
|
>
|
|
@@ -292,6 +348,13 @@ exports[`component:<BookingTable> prop:expanded 1`] = `
|
|
|
292
348
|
/>
|
|
293
349
|
</div>
|
|
294
350
|
</div>
|
|
351
|
+
<div
|
|
352
|
+
class="view"
|
|
353
|
+
>
|
|
354
|
+
<span
|
|
355
|
+
class="text action"
|
|
356
|
+
/>
|
|
357
|
+
</div>
|
|
295
358
|
<div
|
|
296
359
|
class="view"
|
|
297
360
|
>
|
|
@@ -337,6 +400,13 @@ exports[`component:<BookingTable> prop:label 1`] = `
|
|
|
337
400
|
/>
|
|
338
401
|
</div>
|
|
339
402
|
</div>
|
|
403
|
+
<div
|
|
404
|
+
class="view"
|
|
405
|
+
>
|
|
406
|
+
<span
|
|
407
|
+
class="text action"
|
|
408
|
+
/>
|
|
409
|
+
</div>
|
|
340
410
|
<div
|
|
341
411
|
class="view"
|
|
342
412
|
>
|
|
@@ -368,6 +438,13 @@ exports[`component:<BookingTable> prop:label 1`] = `
|
|
|
368
438
|
/>
|
|
369
439
|
</div>
|
|
370
440
|
</div>
|
|
441
|
+
<div
|
|
442
|
+
class="view"
|
|
443
|
+
>
|
|
444
|
+
<span
|
|
445
|
+
class="text action"
|
|
446
|
+
/>
|
|
447
|
+
</div>
|
|
371
448
|
<div
|
|
372
449
|
class="view"
|
|
373
450
|
>
|
|
@@ -399,6 +476,13 @@ exports[`component:<BookingTable> prop:label 1`] = `
|
|
|
399
476
|
/>
|
|
400
477
|
</div>
|
|
401
478
|
</div>
|
|
479
|
+
<div
|
|
480
|
+
class="view"
|
|
481
|
+
>
|
|
482
|
+
<span
|
|
483
|
+
class="text action"
|
|
484
|
+
/>
|
|
485
|
+
</div>
|
|
402
486
|
<div
|
|
403
487
|
class="view"
|
|
404
488
|
>
|
|
@@ -439,6 +523,13 @@ exports[`component:<BookingTable> renders 1`] = `
|
|
|
439
523
|
/>
|
|
440
524
|
</div>
|
|
441
525
|
</div>
|
|
526
|
+
<div
|
|
527
|
+
class="view"
|
|
528
|
+
>
|
|
529
|
+
<span
|
|
530
|
+
class="text action"
|
|
531
|
+
/>
|
|
532
|
+
</div>
|
|
442
533
|
<div
|
|
443
534
|
class="view"
|
|
444
535
|
>
|
|
@@ -470,6 +561,13 @@ exports[`component:<BookingTable> renders 1`] = `
|
|
|
470
561
|
/>
|
|
471
562
|
</div>
|
|
472
563
|
</div>
|
|
564
|
+
<div
|
|
565
|
+
class="view"
|
|
566
|
+
>
|
|
567
|
+
<span
|
|
568
|
+
class="text action"
|
|
569
|
+
/>
|
|
570
|
+
</div>
|
|
473
571
|
<div
|
|
474
572
|
class="view"
|
|
475
573
|
>
|
|
@@ -501,6 +599,13 @@ exports[`component:<BookingTable> renders 1`] = `
|
|
|
501
599
|
/>
|
|
502
600
|
</div>
|
|
503
601
|
</div>
|
|
602
|
+
<div
|
|
603
|
+
class="view"
|
|
604
|
+
>
|
|
605
|
+
<span
|
|
606
|
+
class="text action"
|
|
607
|
+
/>
|
|
608
|
+
</div>
|
|
504
609
|
<div
|
|
505
610
|
class="view"
|
|
506
611
|
>
|
|
@@ -542,6 +647,13 @@ exports[`component:<BookingTable> testID 1`] = `
|
|
|
542
647
|
/>
|
|
543
648
|
</div>
|
|
544
649
|
</div>
|
|
650
|
+
<div
|
|
651
|
+
class="view"
|
|
652
|
+
>
|
|
653
|
+
<span
|
|
654
|
+
class="text action"
|
|
655
|
+
/>
|
|
656
|
+
</div>
|
|
545
657
|
<div
|
|
546
658
|
class="view"
|
|
547
659
|
>
|
|
@@ -573,6 +685,13 @@ exports[`component:<BookingTable> testID 1`] = `
|
|
|
573
685
|
/>
|
|
574
686
|
</div>
|
|
575
687
|
</div>
|
|
688
|
+
<div
|
|
689
|
+
class="view"
|
|
690
|
+
>
|
|
691
|
+
<span
|
|
692
|
+
class="text action"
|
|
693
|
+
/>
|
|
694
|
+
</div>
|
|
576
695
|
<div
|
|
577
696
|
class="view"
|
|
578
697
|
>
|
|
@@ -604,6 +723,13 @@ exports[`component:<BookingTable> testID 1`] = `
|
|
|
604
723
|
/>
|
|
605
724
|
</div>
|
|
606
725
|
</div>
|
|
726
|
+
<div
|
|
727
|
+
class="view"
|
|
728
|
+
>
|
|
729
|
+
<span
|
|
730
|
+
class="text action"
|
|
731
|
+
/>
|
|
732
|
+
</div>
|
|
607
733
|
<div
|
|
608
734
|
class="view"
|
|
609
735
|
>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
/* S */
|
|
71
71
|
@media only screen and (max-width: 480px) {
|
|
72
72
|
.content {
|
|
73
|
-
gap: var(--mirai-ui-space-
|
|
73
|
+
gap: var(--mirai-ui-space-S);
|
|
74
74
|
padding: var(--mirai-ui-space-M);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -78,10 +78,9 @@
|
|
|
78
78
|
/* M & L */
|
|
79
79
|
@media only screen and (min-width: 481px) {
|
|
80
80
|
.container {
|
|
81
|
-
padding
|
|
81
|
+
padding: 0 var(--mirai-ui-space-M);
|
|
82
82
|
}
|
|
83
|
-
|
|
84
83
|
.content {
|
|
85
|
-
padding: var(--mirai-ui-space-
|
|
84
|
+
padding: var(--mirai-ui-space-L) 0;
|
|
86
85
|
}
|
|
87
86
|
}
|
|
@@ -14,6 +14,17 @@ Object.keys(_BookingDates).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
+
var _BookingDetails = require("./BookingDetails");
|
|
18
|
+
Object.keys(_BookingDetails).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _BookingDetails[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _BookingDetails[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
17
28
|
var _BookingSummary = require("./BookingSummary");
|
|
18
29
|
Object.keys(_BookingSummary).forEach(function (key) {
|
|
19
30
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_BookingDates","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_BookingSummary","_BookingTable","_BookingTerms","_ButtonMore","_ButtonPayment","_Card","_Countdown","_Field","_FieldOccupation","_FieldPromocode","_Footer","_NotificationRequiredFields","_Occupation","_Payment","_PriceBreakdown","_SelectEnvironment","_Skeleton","_TextRequiredFields"],"sources":["../../../src/components/__shared__/index.js"],"sourcesContent":["export * from './BookingDates';\nexport * from './BookingSummary';\nexport * from './BookingTable';\nexport * from './BookingTerms';\nexport * from './ButtonMore';\nexport * from './ButtonPayment';\nexport * from './Card';\nexport * from './Countdown';\nexport * from './Field';\nexport * from './FieldOccupation';\nexport * from './FieldPromocode';\nexport * from './Footer';\nexport * from './NotificationRequiredFields';\nexport * from './Occupation';\nexport * from './Payment';\nexport * from './PriceBreakdown';\nexport * from './SelectEnvironment';\nexport * from './Skeleton';\nexport * from './TextRequiredFields';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,eAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,eAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,eAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,eAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_BookingDates","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_BookingDetails","_BookingSummary","_BookingTable","_BookingTerms","_ButtonMore","_ButtonPayment","_Card","_Countdown","_Field","_FieldOccupation","_FieldPromocode","_Footer","_NotificationRequiredFields","_Occupation","_Payment","_PriceBreakdown","_SelectEnvironment","_Skeleton","_TextRequiredFields"],"sources":["../../../src/components/__shared__/index.js"],"sourcesContent":["export * from './BookingDates';\nexport * from './BookingDetails';\nexport * from './BookingSummary';\nexport * from './BookingTable';\nexport * from './BookingTerms';\nexport * from './ButtonMore';\nexport * from './ButtonPayment';\nexport * from './Card';\nexport * from './Countdown';\nexport * from './Field';\nexport * from './FieldOccupation';\nexport * from './FieldPromocode';\nexport * from './Footer';\nexport * from './NotificationRequiredFields';\nexport * from './Occupation';\nexport * from './Payment';\nexport * from './PriceBreakdown';\nexport * from './SelectEnvironment';\nexport * from './Skeleton';\nexport * from './TextRequiredFields';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,eAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,eAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,eAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,eAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,eAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,eAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,eAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAA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BAAA,CAAAvB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAmB,mBAAA,CAAAvB,GAAA;IAAA;EAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Details = void 0;
|
|
7
|
-
var _dataSources = require("@mirai/data-sources");
|
|
8
|
-
var _locale = require("@mirai/locale");
|
|
9
|
-
var _ui = require("@mirai/ui");
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _shared__ = require("../../__shared__");
|
|
13
|
-
var _helpers = require("../../helpers");
|
|
14
|
-
var _Booking = require("../Booking.constants");
|
|
15
|
-
var _Booking2 = require("../Booking.l10n");
|
|
16
|
-
var style = _interopRequireWildcard(require("../Booking.module.css"));
|
|
17
|
-
var _components = require("../components");
|
|
18
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
22
|
-
const Details = _ref => {
|
|
23
|
-
var _variants$find;
|
|
24
|
-
let {
|
|
25
|
-
dataSource: {
|
|
26
|
-
currency,
|
|
27
|
-
details = [],
|
|
28
|
-
extras = [],
|
|
29
|
-
preferences
|
|
30
|
-
} = {},
|
|
31
|
-
expanded: propExpanded,
|
|
32
|
-
...others
|
|
33
|
-
} = _ref;
|
|
34
|
-
const {
|
|
35
|
-
isDesktop
|
|
36
|
-
} = (0, _ui.useDevice)();
|
|
37
|
-
const {
|
|
38
|
-
translate
|
|
39
|
-
} = (0, _locale.useLocale)();
|
|
40
|
-
const {
|
|
41
|
-
value: {
|
|
42
|
-
config: {
|
|
43
|
-
accomodation: {
|
|
44
|
-
occupation = [],
|
|
45
|
-
variants = []
|
|
46
|
-
} = {}
|
|
47
|
-
} = {},
|
|
48
|
-
urlParams: {
|
|
49
|
-
idHotel
|
|
50
|
-
} = {}
|
|
51
|
-
}
|
|
52
|
-
} = (0, _dataSources.useStore)();
|
|
53
|
-
const [expanded, setExpanded] = (0, _react.useState)(false);
|
|
54
|
-
(0, _react.useEffect)(() => {
|
|
55
|
-
const [{
|
|
56
|
-
items = []
|
|
57
|
-
} = {}] = details;
|
|
58
|
-
setExpanded(propExpanded || items.length <= _Booking.MAX_VISIBLE_DETAILS && extras.length === 0);
|
|
59
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
60
|
-
}, [propExpanded]);
|
|
61
|
-
const handlePress = () => {
|
|
62
|
-
setExpanded(true);
|
|
63
|
-
};
|
|
64
|
-
const dataSource = ((_variants$find = variants.find(_ref2 => {
|
|
65
|
-
let {
|
|
66
|
-
id
|
|
67
|
-
} = _ref2;
|
|
68
|
-
return id === Number(idHotel);
|
|
69
|
-
})) === null || _variants$find === void 0 ? void 0 : _variants$find.occupation) || occupation;
|
|
70
|
-
const propsTable = {
|
|
71
|
-
currency
|
|
72
|
-
};
|
|
73
|
-
return /*#__PURE__*/_react.default.createElement(_ui.View, _extends({}, others, {
|
|
74
|
-
className: (0, _ui.styles)(style.box, style.details, others.className)
|
|
75
|
-
}), details.slice(0, expanded ? undefined : 1).map(function () {
|
|
76
|
-
let {
|
|
77
|
-
amount,
|
|
78
|
-
extras = [],
|
|
79
|
-
items = [],
|
|
80
|
-
occupation: {
|
|
81
|
-
adults,
|
|
82
|
-
babies,
|
|
83
|
-
children
|
|
84
|
-
} = {},
|
|
85
|
-
rate,
|
|
86
|
-
roomNumber,
|
|
87
|
-
type
|
|
88
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
89
|
-
let key = arguments.length > 1 ? arguments[1] : undefined;
|
|
90
|
-
return /*#__PURE__*/_react.default.createElement(_ui.View, {
|
|
91
|
-
key: key,
|
|
92
|
-
wide: true,
|
|
93
|
-
className: style.item
|
|
94
|
-
}, /*#__PURE__*/_react.default.createElement(_ui.Text, {
|
|
95
|
-
bold: true,
|
|
96
|
-
headline: isDesktop,
|
|
97
|
-
className: style.title
|
|
98
|
-
}, "".concat(type).concat(amount > 1 ? " (x".concat(amount, ")") : '')), /*#__PURE__*/_react.default.createElement(_components.Field, {
|
|
99
|
-
label: translate(_Booking2.L10N.LABEL_GUEST),
|
|
100
|
-
value: (0, _helpers.getRoomOccupationLabel)({
|
|
101
|
-
adults,
|
|
102
|
-
babies,
|
|
103
|
-
children,
|
|
104
|
-
dataSource,
|
|
105
|
-
translate
|
|
106
|
-
})
|
|
107
|
-
}), roomNumber && /*#__PURE__*/_react.default.createElement(_components.Field, {
|
|
108
|
-
inlineValue: true,
|
|
109
|
-
label: translate(_Booking2.L10N.LABEL_ROOM_NUMBER),
|
|
110
|
-
tooltip: translate(_Booking2.L10N.LABEL_SUBJECT_TO_AVAILABILITY),
|
|
111
|
-
value: roomNumber
|
|
112
|
-
}), /*#__PURE__*/_react.default.createElement(_components.Field, {
|
|
113
|
-
label: translate(_Booking2.L10N.LABEL_RATE),
|
|
114
|
-
value: rate
|
|
115
|
-
}), /*#__PURE__*/_react.default.createElement(_shared__.BookingTable, _extends({}, propsTable, {
|
|
116
|
-
dataSource: items.slice(0, expanded ? undefined : _Booking.MAX_VISIBLE_DETAILS)
|
|
117
|
-
})), expanded && /*#__PURE__*/_react.default.createElement(_shared__.BookingTable, _extends({}, propsTable, {
|
|
118
|
-
dataSource: extras,
|
|
119
|
-
label: translate(_Booking2.L10N.LABEL_EXTRAS)
|
|
120
|
-
})));
|
|
121
|
-
}), expanded && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_shared__.BookingTable, _extends({}, propsTable, {
|
|
122
|
-
dataSource: extras,
|
|
123
|
-
label: translate(_Booking2.L10N.LABEL_BOOKING_EXTRAS),
|
|
124
|
-
className: style.item
|
|
125
|
-
})), preferences && /*#__PURE__*/_react.default.createElement(_components.Field, {
|
|
126
|
-
label: translate(_Booking2.L10N.LABEL_PREFERENCES),
|
|
127
|
-
row: false,
|
|
128
|
-
tooltip: translate(_Booking2.L10N.LABEL_COMMENTS_HINT),
|
|
129
|
-
value: preferences
|
|
130
|
-
})), !expanded && /*#__PURE__*/_react.default.createElement(_shared__.ButtonMore, {
|
|
131
|
-
onPress: handlePress,
|
|
132
|
-
className: [style.buttonMore, style.noPrint]
|
|
133
|
-
}));
|
|
134
|
-
};
|
|
135
|
-
exports.Details = Details;
|
|
136
|
-
Details.displayName = 'Mirai:Core:Booking:Details';
|
|
137
|
-
Details.propTypes = {
|
|
138
|
-
dataSource: _propTypes.default.shape({
|
|
139
|
-
currency: _propTypes.default.string,
|
|
140
|
-
details: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
141
|
-
type: _propTypes.default.string,
|
|
142
|
-
guest: _propTypes.default.string,
|
|
143
|
-
items: _propTypes.default.any,
|
|
144
|
-
extras: _propTypes.default.any
|
|
145
|
-
})),
|
|
146
|
-
preferences: _propTypes.default.string,
|
|
147
|
-
price: _propTypes.default.shape({
|
|
148
|
-
description: _propTypes.default.string,
|
|
149
|
-
value: _propTypes.default.number
|
|
150
|
-
})
|
|
151
|
-
}),
|
|
152
|
-
expanded: _propTypes.default.bool
|
|
153
|
-
};
|
|
154
|
-
//# sourceMappingURL=Booking.Details.js.map
|