@mirai/core 0.3.166 → 0.3.167
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/Checkout/Checkout.js +17 -3
- package/build/components/Checkout/Checkout.js.map +1 -1
- package/build/components/Checkout/Checkout.module.css +5 -0
- package/build/components/Checkout/helpers/getFieldProps.js +1 -0
- package/build/components/Checkout/helpers/getFieldProps.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Confirmation.js +11 -7
- package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Form.js +6 -2
- package/build/components/Checkout/partials/Checkout.Form.js.map +1 -1
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +44 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js +50 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js.map +1 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js +51 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js.map +1 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.module.css +8 -0
- package/build/components/__shared__/NotificationRequiredFields/index.js +17 -0
- package/build/components/__shared__/NotificationRequiredFields/index.js.map +1 -0
- package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +12 -0
- package/build/components/__shared__/Payment/components/Card/Card.js +4 -0
- package/build/components/__shared__/Payment/components/Card/Card.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/__tests__/__snapshots__/Card.test.js.snap +23 -0
- 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/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap
CHANGED
|
@@ -39,6 +39,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
39
39
|
</span>
|
|
40
40
|
<input
|
|
41
41
|
class="input input withLabel"
|
|
42
|
+
id="checkout-firstName"
|
|
42
43
|
name="firstName"
|
|
43
44
|
required=""
|
|
44
45
|
type="text"
|
|
@@ -68,6 +69,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
68
69
|
</span>
|
|
69
70
|
<input
|
|
70
71
|
class="input input withLabel"
|
|
72
|
+
id="checkout-lastName"
|
|
71
73
|
name="lastName"
|
|
72
74
|
required=""
|
|
73
75
|
type="text"
|
|
@@ -97,6 +99,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
97
99
|
</span>
|
|
98
100
|
<input
|
|
99
101
|
class="input input withLabel"
|
|
102
|
+
id="checkout-email"
|
|
100
103
|
name="email"
|
|
101
104
|
required=""
|
|
102
105
|
type="email"
|
|
@@ -124,6 +127,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
124
127
|
</span>
|
|
125
128
|
<select
|
|
126
129
|
class="select empty input prefix withLabel empty"
|
|
130
|
+
id="checkout-phone"
|
|
127
131
|
name="phone-prefix"
|
|
128
132
|
required=""
|
|
129
133
|
>
|
|
@@ -1208,6 +1212,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
1208
1212
|
</span>
|
|
1209
1213
|
<input
|
|
1210
1214
|
class="input input withLabel"
|
|
1215
|
+
id="checkout-phone"
|
|
1211
1216
|
maxlength="12"
|
|
1212
1217
|
name="phone-phone"
|
|
1213
1218
|
required=""
|
|
@@ -1234,6 +1239,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
1234
1239
|
</span>
|
|
1235
1240
|
<input
|
|
1236
1241
|
class="input input withLabel"
|
|
1242
|
+
id="checkout-company"
|
|
1237
1243
|
name="company"
|
|
1238
1244
|
type="text"
|
|
1239
1245
|
value=""
|
|
@@ -1257,6 +1263,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
1257
1263
|
</span>
|
|
1258
1264
|
<textarea
|
|
1259
1265
|
class="input input withLabel multiLine"
|
|
1266
|
+
id="checkout-comments"
|
|
1260
1267
|
name="comments"
|
|
1261
1268
|
/>
|
|
1262
1269
|
</div>
|
|
@@ -1270,6 +1277,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
1270
1277
|
<span
|
|
1271
1278
|
class="text small"
|
|
1272
1279
|
hint=""
|
|
1280
|
+
id="checkout-undefined"
|
|
1273
1281
|
label="undefined"
|
|
1274
1282
|
name="undefined"
|
|
1275
1283
|
>
|
|
@@ -1278,6 +1286,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
1278
1286
|
<div
|
|
1279
1287
|
class="pressable inputOption"
|
|
1280
1288
|
hint=""
|
|
1289
|
+
id="checkout-hotel_future_offers"
|
|
1281
1290
|
>
|
|
1282
1291
|
<div
|
|
1283
1292
|
class="checkbox"
|
|
@@ -1298,6 +1307,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
1298
1307
|
<div
|
|
1299
1308
|
class="pressable inputOption"
|
|
1300
1309
|
hint=""
|
|
1310
|
+
id="checkout-joinClub"
|
|
1301
1311
|
>
|
|
1302
1312
|
<div
|
|
1303
1313
|
class="checkbox"
|
|
@@ -1318,6 +1328,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
1318
1328
|
<div
|
|
1319
1329
|
class="pressable inputOption"
|
|
1320
1330
|
hint=""
|
|
1331
|
+
id="checkout-privacyPolicy"
|
|
1321
1332
|
>
|
|
1322
1333
|
<div
|
|
1323
1334
|
class="checkbox"
|
|
@@ -1454,6 +1465,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
1454
1465
|
</span>
|
|
1455
1466
|
<input
|
|
1456
1467
|
class="input input withLabel"
|
|
1468
|
+
id="checkout-firstName"
|
|
1457
1469
|
name="firstName"
|
|
1458
1470
|
required=""
|
|
1459
1471
|
type="text"
|
|
@@ -1483,6 +1495,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
1483
1495
|
</span>
|
|
1484
1496
|
<input
|
|
1485
1497
|
class="input input withLabel"
|
|
1498
|
+
id="checkout-lastName"
|
|
1486
1499
|
name="lastName"
|
|
1487
1500
|
required=""
|
|
1488
1501
|
type="text"
|
|
@@ -1512,6 +1525,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
1512
1525
|
</span>
|
|
1513
1526
|
<input
|
|
1514
1527
|
class="input input withLabel"
|
|
1528
|
+
id="checkout-email"
|
|
1515
1529
|
name="email"
|
|
1516
1530
|
required=""
|
|
1517
1531
|
type="email"
|
|
@@ -1539,6 +1553,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
1539
1553
|
</span>
|
|
1540
1554
|
<select
|
|
1541
1555
|
class="select empty input prefix withLabel empty"
|
|
1556
|
+
id="checkout-phone"
|
|
1542
1557
|
name="phone-prefix"
|
|
1543
1558
|
required=""
|
|
1544
1559
|
>
|
|
@@ -2623,6 +2638,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
2623
2638
|
</span>
|
|
2624
2639
|
<input
|
|
2625
2640
|
class="input input withLabel"
|
|
2641
|
+
id="checkout-phone"
|
|
2626
2642
|
maxlength="12"
|
|
2627
2643
|
name="phone-phone"
|
|
2628
2644
|
required=""
|
|
@@ -2649,6 +2665,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
2649
2665
|
</span>
|
|
2650
2666
|
<input
|
|
2651
2667
|
class="input input withLabel"
|
|
2668
|
+
id="checkout-company"
|
|
2652
2669
|
name="company"
|
|
2653
2670
|
type="text"
|
|
2654
2671
|
value=""
|
|
@@ -2672,6 +2689,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
2672
2689
|
</span>
|
|
2673
2690
|
<textarea
|
|
2674
2691
|
class="input input withLabel multiLine"
|
|
2692
|
+
id="checkout-comments"
|
|
2675
2693
|
name="comments"
|
|
2676
2694
|
/>
|
|
2677
2695
|
</div>
|
|
@@ -2685,6 +2703,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
2685
2703
|
<span
|
|
2686
2704
|
class="text small"
|
|
2687
2705
|
hint=""
|
|
2706
|
+
id="checkout-undefined"
|
|
2688
2707
|
label="undefined"
|
|
2689
2708
|
name="undefined"
|
|
2690
2709
|
>
|
|
@@ -2693,6 +2712,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
2693
2712
|
<div
|
|
2694
2713
|
class="pressable inputOption"
|
|
2695
2714
|
hint=""
|
|
2715
|
+
id="checkout-hotel_future_offers"
|
|
2696
2716
|
>
|
|
2697
2717
|
<div
|
|
2698
2718
|
class="checkbox"
|
|
@@ -2713,6 +2733,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
2713
2733
|
<div
|
|
2714
2734
|
class="pressable inputOption"
|
|
2715
2735
|
hint=""
|
|
2736
|
+
id="checkout-joinClub"
|
|
2716
2737
|
>
|
|
2717
2738
|
<div
|
|
2718
2739
|
class="checkbox"
|
|
@@ -2733,6 +2754,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
2733
2754
|
<div
|
|
2734
2755
|
class="pressable inputOption"
|
|
2735
2756
|
hint=""
|
|
2757
|
+
id="checkout-privacyPolicy"
|
|
2736
2758
|
>
|
|
2737
2759
|
<div
|
|
2738
2760
|
class="checkbox"
|
|
@@ -2870,6 +2892,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
2870
2892
|
</span>
|
|
2871
2893
|
<input
|
|
2872
2894
|
class="input input withLabel"
|
|
2895
|
+
id="checkout-firstName"
|
|
2873
2896
|
name="firstName"
|
|
2874
2897
|
required=""
|
|
2875
2898
|
type="text"
|
|
@@ -2899,6 +2922,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
2899
2922
|
</span>
|
|
2900
2923
|
<input
|
|
2901
2924
|
class="input input withLabel"
|
|
2925
|
+
id="checkout-lastName"
|
|
2902
2926
|
name="lastName"
|
|
2903
2927
|
required=""
|
|
2904
2928
|
type="text"
|
|
@@ -2928,6 +2952,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
2928
2952
|
</span>
|
|
2929
2953
|
<input
|
|
2930
2954
|
class="input input withLabel"
|
|
2955
|
+
id="checkout-email"
|
|
2931
2956
|
name="email"
|
|
2932
2957
|
required=""
|
|
2933
2958
|
type="email"
|
|
@@ -2955,6 +2980,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
2955
2980
|
</span>
|
|
2956
2981
|
<select
|
|
2957
2982
|
class="select empty input prefix withLabel empty"
|
|
2983
|
+
id="checkout-phone"
|
|
2958
2984
|
name="phone-prefix"
|
|
2959
2985
|
required=""
|
|
2960
2986
|
>
|
|
@@ -4039,6 +4065,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
4039
4065
|
</span>
|
|
4040
4066
|
<input
|
|
4041
4067
|
class="input input withLabel"
|
|
4068
|
+
id="checkout-phone"
|
|
4042
4069
|
maxlength="12"
|
|
4043
4070
|
name="phone-phone"
|
|
4044
4071
|
required=""
|
|
@@ -4065,6 +4092,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
4065
4092
|
</span>
|
|
4066
4093
|
<input
|
|
4067
4094
|
class="input input withLabel"
|
|
4095
|
+
id="checkout-company"
|
|
4068
4096
|
name="company"
|
|
4069
4097
|
type="text"
|
|
4070
4098
|
value=""
|
|
@@ -4088,6 +4116,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
4088
4116
|
</span>
|
|
4089
4117
|
<textarea
|
|
4090
4118
|
class="input input withLabel multiLine"
|
|
4119
|
+
id="checkout-comments"
|
|
4091
4120
|
name="comments"
|
|
4092
4121
|
/>
|
|
4093
4122
|
</div>
|
|
@@ -4101,6 +4130,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
4101
4130
|
<span
|
|
4102
4131
|
class="text small"
|
|
4103
4132
|
hint=""
|
|
4133
|
+
id="checkout-undefined"
|
|
4104
4134
|
label="undefined"
|
|
4105
4135
|
name="undefined"
|
|
4106
4136
|
>
|
|
@@ -4109,6 +4139,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
4109
4139
|
<div
|
|
4110
4140
|
class="pressable inputOption"
|
|
4111
4141
|
hint=""
|
|
4142
|
+
id="checkout-hotel_future_offers"
|
|
4112
4143
|
>
|
|
4113
4144
|
<div
|
|
4114
4145
|
class="checkbox"
|
|
@@ -4129,6 +4160,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
4129
4160
|
<div
|
|
4130
4161
|
class="pressable inputOption"
|
|
4131
4162
|
hint=""
|
|
4163
|
+
id="checkout-joinClub"
|
|
4132
4164
|
>
|
|
4133
4165
|
<div
|
|
4134
4166
|
class="checkbox"
|
|
@@ -4149,6 +4181,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
4149
4181
|
<div
|
|
4150
4182
|
class="pressable inputOption"
|
|
4151
4183
|
hint=""
|
|
4184
|
+
id="checkout-privacyPolicy"
|
|
4152
4185
|
>
|
|
4153
4186
|
<div
|
|
4154
4187
|
class="checkbox"
|
|
@@ -4285,6 +4318,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
4285
4318
|
</span>
|
|
4286
4319
|
<input
|
|
4287
4320
|
class="input input withLabel"
|
|
4321
|
+
id="checkout-firstName"
|
|
4288
4322
|
name="firstName"
|
|
4289
4323
|
required=""
|
|
4290
4324
|
type="text"
|
|
@@ -4314,6 +4348,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
4314
4348
|
</span>
|
|
4315
4349
|
<input
|
|
4316
4350
|
class="input input withLabel"
|
|
4351
|
+
id="checkout-lastName"
|
|
4317
4352
|
name="lastName"
|
|
4318
4353
|
required=""
|
|
4319
4354
|
type="text"
|
|
@@ -4343,6 +4378,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
4343
4378
|
</span>
|
|
4344
4379
|
<input
|
|
4345
4380
|
class="input input withLabel"
|
|
4381
|
+
id="checkout-email"
|
|
4346
4382
|
name="email"
|
|
4347
4383
|
required=""
|
|
4348
4384
|
type="email"
|
|
@@ -4370,6 +4406,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
4370
4406
|
</span>
|
|
4371
4407
|
<select
|
|
4372
4408
|
class="select empty input prefix withLabel empty"
|
|
4409
|
+
id="checkout-phone"
|
|
4373
4410
|
name="phone-prefix"
|
|
4374
4411
|
required=""
|
|
4375
4412
|
>
|
|
@@ -5454,6 +5491,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
5454
5491
|
</span>
|
|
5455
5492
|
<input
|
|
5456
5493
|
class="input input withLabel"
|
|
5494
|
+
id="checkout-phone"
|
|
5457
5495
|
maxlength="12"
|
|
5458
5496
|
name="phone-phone"
|
|
5459
5497
|
required=""
|
|
@@ -5480,6 +5518,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
5480
5518
|
</span>
|
|
5481
5519
|
<input
|
|
5482
5520
|
class="input input withLabel"
|
|
5521
|
+
id="checkout-company"
|
|
5483
5522
|
name="company"
|
|
5484
5523
|
type="text"
|
|
5485
5524
|
value=""
|
|
@@ -5503,6 +5542,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
5503
5542
|
</span>
|
|
5504
5543
|
<textarea
|
|
5505
5544
|
class="input input withLabel multiLine"
|
|
5545
|
+
id="checkout-comments"
|
|
5506
5546
|
name="comments"
|
|
5507
5547
|
/>
|
|
5508
5548
|
</div>
|
|
@@ -5516,6 +5556,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
5516
5556
|
<span
|
|
5517
5557
|
class="text small"
|
|
5518
5558
|
hint=""
|
|
5559
|
+
id="checkout-undefined"
|
|
5519
5560
|
label="undefined"
|
|
5520
5561
|
name="undefined"
|
|
5521
5562
|
>
|
|
@@ -5524,6 +5565,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
5524
5565
|
<div
|
|
5525
5566
|
class="pressable inputOption"
|
|
5526
5567
|
hint=""
|
|
5568
|
+
id="checkout-hotel_future_offers"
|
|
5527
5569
|
>
|
|
5528
5570
|
<div
|
|
5529
5571
|
class="checkbox"
|
|
@@ -5544,6 +5586,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
5544
5586
|
<div
|
|
5545
5587
|
class="pressable inputOption"
|
|
5546
5588
|
hint=""
|
|
5589
|
+
id="checkout-joinClub"
|
|
5547
5590
|
>
|
|
5548
5591
|
<div
|
|
5549
5592
|
class="checkbox"
|
|
@@ -5564,6 +5607,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
5564
5607
|
<div
|
|
5565
5608
|
class="pressable inputOption"
|
|
5566
5609
|
hint=""
|
|
5610
|
+
id="checkout-privacyPolicy"
|
|
5567
5611
|
>
|
|
5568
5612
|
<div
|
|
5569
5613
|
class="checkbox"
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.NotificationRequiredFields = void 0;
|
|
7
|
+
var _locale = require("@mirai/locale");
|
|
8
|
+
var _ui = require("@mirai/ui");
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _NotificationRequiredFields = require("./NotificationRequiredFields.l10n");
|
|
12
|
+
var style = _interopRequireWildcard(require("./NotificationRequiredFields.module.css"));
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
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); }
|
|
17
|
+
const NotificationRequiredFields = _ref => {
|
|
18
|
+
let {
|
|
19
|
+
values = {},
|
|
20
|
+
...others
|
|
21
|
+
} = _ref;
|
|
22
|
+
const {
|
|
23
|
+
isMobile
|
|
24
|
+
} = (0, _ui.useDevice)();
|
|
25
|
+
const {
|
|
26
|
+
translate
|
|
27
|
+
} = (0, _locale.useLocale)();
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_ui.Notification, _extends({}, others, {
|
|
29
|
+
error: true,
|
|
30
|
+
small: isMobile,
|
|
31
|
+
wide: true
|
|
32
|
+
}), translate(_NotificationRequiredFields.L10N.NOTIFICATION_REQUIRED_FIELDS), /*#__PURE__*/_react.default.createElement(_ui.View, {
|
|
33
|
+
row: true,
|
|
34
|
+
wide: true,
|
|
35
|
+
className: style.fields
|
|
36
|
+
}, Object.keys(values).map(field => /*#__PURE__*/_react.default.createElement(_ui.Action, {
|
|
37
|
+
href: "#checkout-".concat(field),
|
|
38
|
+
inline: true,
|
|
39
|
+
key: field,
|
|
40
|
+
markdown: false,
|
|
41
|
+
underlined: true,
|
|
42
|
+
small: true
|
|
43
|
+
}, _NotificationRequiredFields.L10N["LABEL_".concat(field.toUpperCase())] ? translate(_NotificationRequiredFields.L10N["LABEL_".concat(field.toUpperCase())]) : field))));
|
|
44
|
+
};
|
|
45
|
+
exports.NotificationRequiredFields = NotificationRequiredFields;
|
|
46
|
+
NotificationRequiredFields.displayName = 'Mirai:Core:NotificationRequiredFields';
|
|
47
|
+
NotificationRequiredFields.propTypes = {
|
|
48
|
+
values: _propTypes.default.shape({})
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=NotificationRequiredFields.js.map
|
package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationRequiredFields.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_NotificationRequiredFields","style","_interopRequireWildcard","_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","NotificationRequiredFields","_ref","values","others","isMobile","useDevice","translate","useLocale","createElement","Notification","error","small","wide","L10N","NOTIFICATION_REQUIRED_FIELDS","View","row","className","fields","keys","map","field","Action","href","concat","inline","markdown","underlined","toUpperCase","exports","displayName","propTypes","PropTypes","shape"],"sources":["../../../../src/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Action, Notification, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { L10N } from './NotificationRequiredFields.l10n';\nimport * as style from './NotificationRequiredFields.module.css';\n\nconst NotificationRequiredFields = ({ values = {}, ...others }) => {\n const { isMobile } = useDevice();\n const { translate } = useLocale();\n\n return (\n <Notification {...others} error small={isMobile} wide>\n {translate(L10N.NOTIFICATION_REQUIRED_FIELDS)}\n <View row wide className={style.fields}>\n {Object.keys(values).map((field) => (\n <Action href={`#checkout-${field}`} inline key={field} markdown={false} underlined small>\n {L10N[`LABEL_${field.toUpperCase()}`] ? translate(L10N[`LABEL_${field.toUpperCase()}`]) : field}\n </Action>\n ))}\n </View>\n </Notification>\n );\n};\n\nNotificationRequiredFields.displayName = 'Mirai:Core:NotificationRequiredFields';\n\nNotificationRequiredFields.propTypes = {\n values: PropTypes.shape({}),\n};\n\nexport { NotificationRequiredFields };\n"],"mappings":"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"}
|
package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.L10N = void 0;
|
|
7
|
+
const L10N = exports.L10N = {
|
|
8
|
+
LABEL_CARD: {
|
|
9
|
+
id: 'payments.label.card_number'
|
|
10
|
+
},
|
|
11
|
+
LABEL_COUNTRY: {
|
|
12
|
+
id: 'common.label.country'
|
|
13
|
+
},
|
|
14
|
+
LABEL_CVV: {
|
|
15
|
+
id: 'payments.label.cvv'
|
|
16
|
+
},
|
|
17
|
+
LABEL_DNI: {
|
|
18
|
+
id: 'common.label.id_card'
|
|
19
|
+
},
|
|
20
|
+
LABEL_EMAIL: {
|
|
21
|
+
id: 'common.label.email'
|
|
22
|
+
},
|
|
23
|
+
LABEL_EXPIRE: {
|
|
24
|
+
id: 'payments.label.expiration'
|
|
25
|
+
},
|
|
26
|
+
LABEL_FIRSTNAME: {
|
|
27
|
+
id: 'common.label.firstname'
|
|
28
|
+
},
|
|
29
|
+
LABEL_JOINCLUB: {
|
|
30
|
+
id: 'common.label.member_conditions'
|
|
31
|
+
},
|
|
32
|
+
LABEL_LASTNAME: {
|
|
33
|
+
id: 'common.label.lastname'
|
|
34
|
+
},
|
|
35
|
+
LABEL_NAME: {
|
|
36
|
+
id: 'payments.label.card_name'
|
|
37
|
+
},
|
|
38
|
+
LABEL_PHONE: {
|
|
39
|
+
id: 'common.label.phone'
|
|
40
|
+
},
|
|
41
|
+
LABEL_PRIVACYPOLICY: {
|
|
42
|
+
id: 'common.label.privacy_policy'
|
|
43
|
+
},
|
|
44
|
+
LABEL_SECONDLASTNAME: {
|
|
45
|
+
id: 'common.label.second_lastname'
|
|
46
|
+
},
|
|
47
|
+
NOTIFICATION_REQUIRED_FIELDS: {
|
|
48
|
+
id: 'user.notification.required_fields'
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=NotificationRequiredFields.l10n.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationRequiredFields.l10n.js","names":["L10N","exports","LABEL_CARD","id","LABEL_COUNTRY","LABEL_CVV","LABEL_DNI","LABEL_EMAIL","LABEL_EXPIRE","LABEL_FIRSTNAME","LABEL_JOINCLUB","LABEL_LASTNAME","LABEL_NAME","LABEL_PHONE","LABEL_PRIVACYPOLICY","LABEL_SECONDLASTNAME","NOTIFICATION_REQUIRED_FIELDS"],"sources":["../../../../src/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js"],"sourcesContent":["export const L10N = {\n LABEL_CARD: { id: 'payments.label.card_number' },\n LABEL_COUNTRY: { id: 'common.label.country' },\n LABEL_CVV: { id: 'payments.label.cvv' },\n LABEL_DNI: { id: 'common.label.id_card' },\n LABEL_EMAIL: { id: 'common.label.email' },\n LABEL_EXPIRE: { id: 'payments.label.expiration' },\n LABEL_FIRSTNAME: { id: 'common.label.firstname' },\n LABEL_JOINCLUB: { id: 'common.label.member_conditions' },\n LABEL_LASTNAME: { id: 'common.label.lastname' },\n LABEL_NAME: { id: 'payments.label.card_name' },\n LABEL_PHONE: { id: 'common.label.phone' },\n LABEL_PRIVACYPOLICY: { id: 'common.label.privacy_policy' },\n LABEL_SECONDLASTNAME: { id: 'common.label.second_lastname' },\n\n NOTIFICATION_REQUIRED_FIELDS: { id: 'user.notification.required_fields' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,UAAU,EAAE;IAAEC,EAAE,EAAE;EAA6B,CAAC;EAChDC,aAAa,EAAE;IAAED,EAAE,EAAE;EAAuB,CAAC;EAC7CE,SAAS,EAAE;IAAEF,EAAE,EAAE;EAAqB,CAAC;EACvCG,SAAS,EAAE;IAAEH,EAAE,EAAE;EAAuB,CAAC;EACzCI,WAAW,EAAE;IAAEJ,EAAE,EAAE;EAAqB,CAAC;EACzCK,YAAY,EAAE;IAAEL,EAAE,EAAE;EAA4B,CAAC;EACjDM,eAAe,EAAE;IAAEN,EAAE,EAAE;EAAyB,CAAC;EACjDO,cAAc,EAAE;IAAEP,EAAE,EAAE;EAAiC,CAAC;EACxDQ,cAAc,EAAE;IAAER,EAAE,EAAE;EAAwB,CAAC;EAC/CS,UAAU,EAAE;IAAET,EAAE,EAAE;EAA2B,CAAC;EAC9CU,WAAW,EAAE;IAAEV,EAAE,EAAE;EAAqB,CAAC;EACzCW,mBAAmB,EAAE;IAAEX,EAAE,EAAE;EAA8B,CAAC;EAC1DY,oBAAoB,EAAE;IAAEZ,EAAE,EAAE;EAA+B,CAAC;EAE5Da,4BAA4B,EAAE;IAAEb,EAAE,EAAE;EAAoC;AAC1E,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _NotificationRequiredFields = require("./NotificationRequiredFields");
|
|
7
|
+
Object.keys(_NotificationRequiredFields).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _NotificationRequiredFields[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _NotificationRequiredFields[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_NotificationRequiredFields","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/__shared__/NotificationRequiredFields/index.js"],"sourcesContent":["export * from './NotificationRequiredFields';\n"],"mappings":";;;;;AAAA,IAAAA,2BAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,2BAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,2BAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,2BAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -55,6 +55,7 @@ exports[`component:<Payment> inherit:className 1`] = `
|
|
|
55
55
|
</span>
|
|
56
56
|
<input
|
|
57
57
|
class="input input withLabel"
|
|
58
|
+
id="checkout-card"
|
|
58
59
|
maxlength="19"
|
|
59
60
|
name="card"
|
|
60
61
|
placeholder="0000 0000 0000 0000"
|
|
@@ -86,6 +87,7 @@ exports[`component:<Payment> inherit:className 1`] = `
|
|
|
86
87
|
</span>
|
|
87
88
|
<input
|
|
88
89
|
class="input input withLabel"
|
|
90
|
+
id="checkout-name"
|
|
89
91
|
maxlength="100"
|
|
90
92
|
minlength="3"
|
|
91
93
|
name="name"
|
|
@@ -117,6 +119,7 @@ exports[`component:<Payment> inherit:className 1`] = `
|
|
|
117
119
|
</span>
|
|
118
120
|
<input
|
|
119
121
|
class="input input withLabel"
|
|
122
|
+
id="checkout-expire"
|
|
120
123
|
maxlength="5"
|
|
121
124
|
name="expire"
|
|
122
125
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -148,6 +151,7 @@ exports[`component:<Payment> inherit:className 1`] = `
|
|
|
148
151
|
</span>
|
|
149
152
|
<input
|
|
150
153
|
class="input input withLabel"
|
|
154
|
+
id="checkout-CVV"
|
|
151
155
|
maxlength="3"
|
|
152
156
|
name="CVV"
|
|
153
157
|
placeholder="000"
|
|
@@ -220,6 +224,7 @@ exports[`component:<Payment> renders 1`] = `
|
|
|
220
224
|
</span>
|
|
221
225
|
<input
|
|
222
226
|
class="input input withLabel"
|
|
227
|
+
id="checkout-card"
|
|
223
228
|
maxlength="19"
|
|
224
229
|
name="card"
|
|
225
230
|
placeholder="0000 0000 0000 0000"
|
|
@@ -251,6 +256,7 @@ exports[`component:<Payment> renders 1`] = `
|
|
|
251
256
|
</span>
|
|
252
257
|
<input
|
|
253
258
|
class="input input withLabel"
|
|
259
|
+
id="checkout-name"
|
|
254
260
|
maxlength="100"
|
|
255
261
|
minlength="3"
|
|
256
262
|
name="name"
|
|
@@ -282,6 +288,7 @@ exports[`component:<Payment> renders 1`] = `
|
|
|
282
288
|
</span>
|
|
283
289
|
<input
|
|
284
290
|
class="input input withLabel"
|
|
291
|
+
id="checkout-expire"
|
|
285
292
|
maxlength="5"
|
|
286
293
|
name="expire"
|
|
287
294
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -313,6 +320,7 @@ exports[`component:<Payment> renders 1`] = `
|
|
|
313
320
|
</span>
|
|
314
321
|
<input
|
|
315
322
|
class="input input withLabel"
|
|
323
|
+
id="checkout-CVV"
|
|
316
324
|
maxlength="3"
|
|
317
325
|
name="CVV"
|
|
318
326
|
placeholder="000"
|
|
@@ -509,6 +517,7 @@ exports[`component:<Payment> testID with one method 1`] = `
|
|
|
509
517
|
<input
|
|
510
518
|
class="input input withLabel"
|
|
511
519
|
data-testid="mirai-card"
|
|
520
|
+
id="checkout-card"
|
|
512
521
|
maxlength="19"
|
|
513
522
|
name="card"
|
|
514
523
|
placeholder="0000 0000 0000 0000"
|
|
@@ -541,6 +550,7 @@ exports[`component:<Payment> testID with one method 1`] = `
|
|
|
541
550
|
<input
|
|
542
551
|
class="input input withLabel"
|
|
543
552
|
data-testid="mirai-name"
|
|
553
|
+
id="checkout-name"
|
|
544
554
|
maxlength="100"
|
|
545
555
|
minlength="3"
|
|
546
556
|
name="name"
|
|
@@ -573,6 +583,7 @@ exports[`component:<Payment> testID with one method 1`] = `
|
|
|
573
583
|
<input
|
|
574
584
|
class="input input withLabel"
|
|
575
585
|
data-testid="mirai-expire"
|
|
586
|
+
id="checkout-expire"
|
|
576
587
|
maxlength="5"
|
|
577
588
|
name="expire"
|
|
578
589
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -605,6 +616,7 @@ exports[`component:<Payment> testID with one method 1`] = `
|
|
|
605
616
|
<input
|
|
606
617
|
class="input input withLabel"
|
|
607
618
|
data-testid="mirai-CVV"
|
|
619
|
+
id="checkout-CVV"
|
|
608
620
|
maxlength="3"
|
|
609
621
|
name="CVV"
|
|
610
622
|
placeholder="000"
|
|
@@ -62,6 +62,7 @@ const Card = _ref => {
|
|
|
62
62
|
}, /*#__PURE__*/_react.default.createElement(_ui.InputText, {
|
|
63
63
|
error: ((_form$card = form.card) === null || _form$card === void 0 ? void 0 : _form$card.length) > 0 && !!formError.card || cardError,
|
|
64
64
|
hint: cardError,
|
|
65
|
+
id: "checkout-card",
|
|
65
66
|
label: translate(_Card.L10N.LABEL_CARD_NUMBER),
|
|
66
67
|
maxLength: maxLength.card,
|
|
67
68
|
name: "card",
|
|
@@ -75,6 +76,7 @@ const Card = _ref => {
|
|
|
75
76
|
testId: testId ? "".concat(testId, "-card") : undefined
|
|
76
77
|
}), /*#__PURE__*/_react.default.createElement(_ui.InputText, {
|
|
77
78
|
error: ((_form$name = form.name) === null || _form$name === void 0 ? void 0 : _form$name.length) === 0 && !!formError.name && !formError.card,
|
|
79
|
+
id: "checkout-name",
|
|
78
80
|
label: translate(_Card.L10N.LABEL_CARD_NAME),
|
|
79
81
|
minLength: 3,
|
|
80
82
|
maxLength: 100,
|
|
@@ -88,6 +90,7 @@ const Card = _ref => {
|
|
|
88
90
|
}), /*#__PURE__*/_react.default.createElement(_ui.InputDate, {
|
|
89
91
|
error: ((_form$expire = form.expire) === null || _form$expire === void 0 ? void 0 : _form$expire.length) > 0 && !!formError.expire,
|
|
90
92
|
format: DATE_FORMAT,
|
|
93
|
+
id: "checkout-expire",
|
|
91
94
|
label: translate(_Card.L10N.LABEL_EXPIRATION),
|
|
92
95
|
name: "expire",
|
|
93
96
|
maxLength: 5,
|
|
@@ -102,6 +105,7 @@ const Card = _ref => {
|
|
|
102
105
|
testId: testId ? "".concat(testId, "-expire") : undefined
|
|
103
106
|
}), showCVV && /*#__PURE__*/_react.default.createElement(_ui.InputText, {
|
|
104
107
|
error: ((_form$CVV = form.CVV) === null || _form$CVV === void 0 ? void 0 : _form$CVV.length) > 0 && !!formError.CVV,
|
|
108
|
+
id: "checkout-CVV",
|
|
105
109
|
label: translate(_Card.L10N.LABEL_CVV),
|
|
106
110
|
maxLength: maxLength.CVV,
|
|
107
111
|
name: "CVV",
|