tg-core-components 6.1.13-reset-limits.0 → 6.1.15
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/es/misc/countryEmojiFlags.js +5 -0
- package/es/widgets/AccountDetail/index.js +0 -8
- package/es/widgets/ResponsibleGamingWidget/Timespan.js +3 -1
- package/lib/misc/countryEmojiFlags.js +5 -0
- package/lib/widgets/AccountDetail/index.js +0 -8
- package/lib/widgets/ResponsibleGamingWidget/Timespan.js +3 -1
- package/package.json +2 -2
|
@@ -9,6 +9,7 @@ export default {
|
|
|
9
9
|
AG: '🇦🇬',
|
|
10
10
|
AU: '🇦🇺',
|
|
11
11
|
AT: '🇦🇹',
|
|
12
|
+
AW: '🇦🇼',
|
|
12
13
|
AZ: '🇦🇿',
|
|
13
14
|
BI: '🇧🇮',
|
|
14
15
|
BE: '🇧🇪',
|
|
@@ -24,6 +25,7 @@ export default {
|
|
|
24
25
|
BO: '🇧🇴',
|
|
25
26
|
BR: '🇧🇷',
|
|
26
27
|
BB: '🇧🇧',
|
|
28
|
+
BM: '🇧🇲',
|
|
27
29
|
BN: '🇧🇳',
|
|
28
30
|
BT: '🇧🇹',
|
|
29
31
|
BW: '🇧🇼',
|
|
@@ -33,6 +35,7 @@ export default {
|
|
|
33
35
|
CL: '🇨🇱',
|
|
34
36
|
CN: '🇨🇳',
|
|
35
37
|
CI: '🇨🇮',
|
|
38
|
+
CK: '🇨🇰',
|
|
36
39
|
CM: '🇨🇲',
|
|
37
40
|
CD: '🇨🇩',
|
|
38
41
|
CG: '🇨🇬',
|
|
@@ -167,6 +170,7 @@ export default {
|
|
|
167
170
|
SZ: '🇸🇿',
|
|
168
171
|
SC: '🇸🇨',
|
|
169
172
|
SY: '🇸🇾',
|
|
173
|
+
TC: '🇹🇨',
|
|
170
174
|
TD: '🇹🇩',
|
|
171
175
|
TG: '🇹🇬',
|
|
172
176
|
TH: '🇹🇭',
|
|
@@ -178,6 +182,7 @@ export default {
|
|
|
178
182
|
TN: '🇹🇳',
|
|
179
183
|
TR: '🇹🇷',
|
|
180
184
|
TV: '🇹🇻',
|
|
185
|
+
TW: '🇹🇼',
|
|
181
186
|
TZ: '🇹🇿',
|
|
182
187
|
UG: '🇺🇬',
|
|
183
188
|
UA: '🇺🇦',
|
|
@@ -148,14 +148,6 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
148
148
|
id: 'title.mobile_number',
|
|
149
149
|
defaultMessage: 'Mobile number'
|
|
150
150
|
}, intl),
|
|
151
|
-
callingCodes: countries ? countries.value.sort(function (a, b) {
|
|
152
|
-
return Number(a.callingCode) - Number(b.callingCode);
|
|
153
|
-
}).map(function (i) {
|
|
154
|
-
return {
|
|
155
|
-
value: '00' + i.callingCode,
|
|
156
|
-
label: '+' + i.callingCode + ' ' + (countryEmojiFlags[i.value] || '')
|
|
157
|
-
};
|
|
158
|
-
}) : [],
|
|
159
151
|
name: 'MobilePhoneNumber',
|
|
160
152
|
autoComplete: 'off',
|
|
161
153
|
status: errors.MobilePhoneNumber && 'failure' || 'idle',
|
|
@@ -319,6 +319,8 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
+
var isIphone = typeof window !== 'undefined' && navigator.platform === 'iPhone';
|
|
323
|
+
|
|
322
324
|
return React.createElement(
|
|
323
325
|
Fragment,
|
|
324
326
|
null,
|
|
@@ -352,7 +354,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
352
354
|
setValue(parseInt(value));
|
|
353
355
|
if (value > 0) _onChange(value);
|
|
354
356
|
},
|
|
355
|
-
autoFocus:
|
|
357
|
+
autoFocus: !isIphone,
|
|
356
358
|
min: validationState['limit-remove-blocked'] ? '1' : '0',
|
|
357
359
|
max: validationState['limit-increase-blocked'] ? getByPath(currentLimit, 'Amount') : Infinity
|
|
358
360
|
}),
|
|
@@ -14,6 +14,7 @@ exports.default = {
|
|
|
14
14
|
AG: '🇦🇬',
|
|
15
15
|
AU: '🇦🇺',
|
|
16
16
|
AT: '🇦🇹',
|
|
17
|
+
AW: '🇦🇼',
|
|
17
18
|
AZ: '🇦🇿',
|
|
18
19
|
BI: '🇧🇮',
|
|
19
20
|
BE: '🇧🇪',
|
|
@@ -29,6 +30,7 @@ exports.default = {
|
|
|
29
30
|
BO: '🇧🇴',
|
|
30
31
|
BR: '🇧🇷',
|
|
31
32
|
BB: '🇧🇧',
|
|
33
|
+
BM: '🇧🇲',
|
|
32
34
|
BN: '🇧🇳',
|
|
33
35
|
BT: '🇧🇹',
|
|
34
36
|
BW: '🇧🇼',
|
|
@@ -38,6 +40,7 @@ exports.default = {
|
|
|
38
40
|
CL: '🇨🇱',
|
|
39
41
|
CN: '🇨🇳',
|
|
40
42
|
CI: '🇨🇮',
|
|
43
|
+
CK: '🇨🇰',
|
|
41
44
|
CM: '🇨🇲',
|
|
42
45
|
CD: '🇨🇩',
|
|
43
46
|
CG: '🇨🇬',
|
|
@@ -172,6 +175,7 @@ exports.default = {
|
|
|
172
175
|
SZ: '🇸🇿',
|
|
173
176
|
SC: '🇸🇨',
|
|
174
177
|
SY: '🇸🇾',
|
|
178
|
+
TC: '🇹🇨',
|
|
175
179
|
TD: '🇹🇩',
|
|
176
180
|
TG: '🇹🇬',
|
|
177
181
|
TH: '🇹🇭',
|
|
@@ -183,6 +187,7 @@ exports.default = {
|
|
|
183
187
|
TN: '🇹🇳',
|
|
184
188
|
TR: '🇹🇷',
|
|
185
189
|
TV: '🇹🇻',
|
|
190
|
+
TW: '🇹🇼',
|
|
186
191
|
TZ: '🇹🇿',
|
|
187
192
|
UG: '🇺🇬',
|
|
188
193
|
UA: '🇺🇦',
|
|
@@ -189,14 +189,6 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
189
189
|
id: 'title.mobile_number',
|
|
190
190
|
defaultMessage: 'Mobile number'
|
|
191
191
|
}, intl),
|
|
192
|
-
callingCodes: countries ? countries.value.sort(function (a, b) {
|
|
193
|
-
return Number(a.callingCode) - Number(b.callingCode);
|
|
194
|
-
}).map(function (i) {
|
|
195
|
-
return {
|
|
196
|
-
value: '00' + i.callingCode,
|
|
197
|
-
label: '+' + i.callingCode + ' ' + (_countryEmojiFlags2.default[i.value] || '')
|
|
198
|
-
};
|
|
199
|
-
}) : [],
|
|
200
192
|
name: 'MobilePhoneNumber',
|
|
201
193
|
autoComplete: 'off',
|
|
202
194
|
status: errors.MobilePhoneNumber && 'failure' || 'idle',
|
|
@@ -350,6 +350,8 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
+
var isIphone = typeof window !== 'undefined' && navigator.platform === 'iPhone';
|
|
354
|
+
|
|
353
355
|
return _react2.default.createElement(
|
|
354
356
|
_react.Fragment,
|
|
355
357
|
null,
|
|
@@ -383,7 +385,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
383
385
|
setValue(parseInt(value));
|
|
384
386
|
if (value > 0) _onChange(value);
|
|
385
387
|
},
|
|
386
|
-
autoFocus:
|
|
388
|
+
autoFocus: !isIphone,
|
|
387
389
|
min: validationState['limit-remove-blocked'] ? '1' : '0',
|
|
388
390
|
max: validationState['limit-increase-blocked'] ? (0, _get2.default)(currentLimit, 'Amount') : Infinity
|
|
389
391
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.15",
|
|
4
4
|
"description": "tg-core-components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"webpack": "^3.0.0",
|
|
77
77
|
"webpack-blocks": "^1.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "d4913bbd3e1569174d38b3f1cf59478ef103b684"
|
|
80
80
|
}
|