@reachfive/identity-ui 1.20.2 → 1.21.0
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/CHANGELOG.md +15 -2
- package/cjs/identity-ui.js +32 -18
- package/es/identity-ui.js +32 -17
- package/package.json +1 -1
- package/umd/identity-ui.js +35 -20
- package/umd/identity-ui.min.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.21.0] - 2023-10-12
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add Ping provider
|
|
15
|
+
|
|
16
|
+
### Fixes
|
|
17
|
+
|
|
18
|
+
- Fix dateField validation import
|
|
19
|
+
- Fix identifierField error when initilized with an empty value
|
|
20
|
+
|
|
10
21
|
## [1.20.2] - 2023-10-02
|
|
11
22
|
|
|
12
23
|
### Fixes
|
|
@@ -354,9 +365,11 @@ The eye icon is now correctly displayed in the Auth widget.
|
|
|
354
365
|
|
|
355
366
|
First version of the SDK Web UI.
|
|
356
367
|
|
|
357
|
-
[Unreleased]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.
|
|
368
|
+
[Unreleased]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.21.0...HEAD
|
|
369
|
+
|
|
370
|
+
[1.21.0]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.20.2...v1.21.0
|
|
358
371
|
|
|
359
|
-
[1.20.
|
|
372
|
+
[1.20.2]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.20.1...v1.20.2
|
|
360
373
|
|
|
361
374
|
[1.20.1]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.20.0...v1.20.1
|
|
362
375
|
|
package/cjs/identity-ui.js
CHANGED
|
@@ -16,8 +16,7 @@ var styled__default = _interopDefault(styled);
|
|
|
16
16
|
var reactTransitionGroup = require('react-transition-group');
|
|
17
17
|
var classes = _interopDefault(require('classnames'));
|
|
18
18
|
var remarkable = require('remarkable');
|
|
19
|
-
var validator = require('validator');
|
|
20
|
-
var validator__default = _interopDefault(validator);
|
|
19
|
+
var validator = _interopDefault(require('validator'));
|
|
21
20
|
var libphonenumber = require('libphonenumber-js');
|
|
22
21
|
var lodashEs = require('lodash-es');
|
|
23
22
|
var luxon = require('luxon');
|
|
@@ -6286,75 +6285,88 @@ var paypal = {
|
|
|
6286
6285
|
icon: icon$e
|
|
6287
6286
|
};
|
|
6288
6287
|
|
|
6289
|
-
var icon$f = "data:image/svg+xml,%3Csvg%20width%3D%
|
|
6288
|
+
var icon$f = "data:image/svg+xml,%3Csvg%20width%3D%22800px%22%20height%3D%22800px%22%20viewBox%3D%220%200%20128%20128%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-hidden%3D%22true%22%20role%3D%22img%22%20class%3D%22iconify%20iconify--noto%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%3E%3Cpath%20d%3D%22M72.51%2015.42H34.65c-.15%200-.28.06-.42.08h-6.47c-1.24%200-2.24%201-2.24%202.24v100.97c0%201.24%201%202.24%202.24%202.24h21.9c1.24%200%202.24-1%202.24-2.24V86.63h20.61c19.83%200%2035.96-15.97%2035.96-35.6c.01-19.63-16.13-35.61-35.96-35.61zm-1.72%2050.22c-.35.03-.7.06-1.06.06H52.28c-.05%200-.09-.04-.14-.06a.513.513%200%200%201-.24-.1a.577.577%200%200%201-.21-.43V36.94c0-.18.09-.32.21-.43c.06-.06.14-.07.22-.09c.06-.02.09-.06.15-.06h17.45c.4%200%20.8.03%201.19.06c7.25.63%2012.97%206.94%2012.97%2014.61c.01%207.71-5.77%2014.05-13.09%2014.61z%22%20fill%3D%22%23fff%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
6289
|
+
|
|
6290
|
+
var ping = {
|
|
6291
|
+
key: 'ping',
|
|
6292
|
+
name: 'Ping',
|
|
6293
|
+
color: '#c90917',
|
|
6294
|
+
icon: icon$f,
|
|
6295
|
+
windowSize: {
|
|
6296
|
+
width: 450,
|
|
6297
|
+
height: 400
|
|
6298
|
+
}
|
|
6299
|
+
};
|
|
6300
|
+
|
|
6301
|
+
var icon$g = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M270%20806q-8-19-8-52%200-20%2011-49t24-45q-1-22%207.5-53t22.5-43q0-139%2092.5-288.5t217.5-209.5q139-66%20324-66%20133%200%20266%2055%2049%2021%2090%2048t71%2056%2055%2068%2042%2074%2032.5%2084.5%2025.5%2089.5%2022%2098l1%205q55%2083%2055%20150%200%2014-9%2040t-9%2038q0%201%201.5%203.5t3.5%205%202%203.5q77%20114%20120.5%20214.5t43.5%20208.5q0%2043-19.5%20100t-55.5%2057q-9%200-19.5-7.5t-19-17.5-19-26-16-26.5-13.5-26-9-17.5q-1-1-3-1l-5%204q-59%20154-132%20223%2020%2020%2061.5%2038.5t69%2041.5%2035.5%2065q-2%204-4%2016t-7%2018q-64%2097-302%2097-53%200-110.5-9t-98-20-104.5-30q-15-5-23-7-14-4-46-4.5t-40-1.5q-41%2045-127.5%2065t-168.5%2020q-35%200-69-1.5t-93-9-101-20.5-74.5-40-32.5-64q0-40%2010-59.5t41-48.5q11-2%2040.5-13t49.5-12q4%200%2014-2%202-2%202-4l-2-3q-48-11-108-105.5t-73-156.5l-5-3q-4%200-12%2020-18%2041-54.5%2074.5t-77.5%2037.5h-1q-4%200-6-4.5t-5-5.5q-23-54-23-100%200-275%20252-466z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6290
6302
|
|
|
6291
6303
|
var qq = {
|
|
6292
6304
|
key: 'qq',
|
|
6293
6305
|
name: 'QQ',
|
|
6294
6306
|
color: '#0071c3',
|
|
6295
|
-
icon: icon$
|
|
6307
|
+
icon: icon$g,
|
|
6296
6308
|
windowSize: {
|
|
6297
6309
|
width: 450,
|
|
6298
6310
|
height: 400
|
|
6299
6311
|
}
|
|
6300
6312
|
};
|
|
6301
6313
|
|
|
6302
|
-
var icon$
|
|
6314
|
+
var icon$h = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1684%20408q-67%2098-162%20167%201%2014%201%2042%200%20130-38%20259.5t-115.5%20248.5-184.5%20210.5-258%20146-323%2054.5q-271%200-496-145%2035%204%2078%204%20225%200%20401-138-105-2-188-64.5t-114-159.5q33%205%2061%205%2043%200%2085-11-112-23-185.5-111.5t-73.5-205.5v-4q68%2038%20146%2041-66-44-105-115t-39-154q0-88%2044-163%20121%20149%20294.5%20238.5t371.5%2099.5q-8-38-8-74%200-134%2094.5-228.5t228.5-94.5q140%200%20236%20102%20109-21%20205-78-37%20115-142%20178%2093-10%20186-50z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6303
6315
|
|
|
6304
6316
|
var twitter = {
|
|
6305
6317
|
key: 'twitter',
|
|
6306
6318
|
name: 'Twitter',
|
|
6307
6319
|
color: '#55acee',
|
|
6308
|
-
icon: icon$
|
|
6320
|
+
icon: icon$h,
|
|
6309
6321
|
windowSize: {
|
|
6310
6322
|
width: 800,
|
|
6311
6323
|
height: 440
|
|
6312
6324
|
}
|
|
6313
6325
|
};
|
|
6314
6326
|
|
|
6315
|
-
var icon$
|
|
6327
|
+
var icon$i = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1853%20520q23%2064-150%20294-24%2032-65%2085-78%20100-90%20131-17%2041%2014%2081%2017%2021%2081%2082h1l1%201%201%201%202%202q141%20131%20191%20221%203%205%206.5%2012.5t7%2026.5-.5%2034-25%2027.5-59%2012.5l-256%204q-24%205-56-5t-52-22l-20-12q-30-21-70-64t-68.5-77.5-61-58-56.5-15.5q-3%201-8%203.5t-17%2014.5-21.5%2029.5-17%2052-6.5%2077.5q0%2015-3.5%2027.5t-7.5%2018.5l-4%205q-18%2019-53%2022h-115q-71%204-146-16.5t-131.5-53-103-66-70.5-57.5l-25-24q-10-10-27.5-30t-71.5-91-106-151-122.5-211-130.5-272q-6-16-6-27t3-16l4-6q15-19%2057-19l274-2q12%202%2023%206.5t16%208.5l5%203q16%2011%2024%2032%2020%2050%2046%20103.5t41%2081.5l16%2029q29%2060%2056%20104t48.5%2068.5%2041.5%2038.5%2034%2014%2027-5q2-1%205-5t12-22%2013.5-47%209.5-81%200-125q-2-40-9-73t-14-46l-6-12q-25-34-85-43-13-2%205-24%2017-19%2038-30%2053-26%20239-24%2082%201%20135%2013%2020%205%2033.5%2013.5t20.5%2024%2010.5%2032%203.5%2045.5-1%2055-2.5%2070.5-1.5%2082.5q0%2011-1%2042t-.5%2048%203.5%2040.5%2011.5%2039%2022.5%2024.5q8%202%2017%204t26-11%2038-34.5%2052-67%2068-107.5q60-104%20107-225%204-10%2010-17.5t11-10.5l4-3%205-2.5%2013-3%2020-.5%20288-2q39-5%2064%202.5t31%2016.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6316
6328
|
|
|
6317
6329
|
var vkontakte = {
|
|
6318
6330
|
key: 'vkontakte',
|
|
6319
6331
|
fontKey: 'vk',
|
|
6320
6332
|
name: 'VKontakte',
|
|
6321
6333
|
color: '#45668e',
|
|
6322
|
-
icon: icon$
|
|
6334
|
+
icon: icon$i,
|
|
6323
6335
|
windowSize: {
|
|
6324
6336
|
width: 655,
|
|
6325
6337
|
height: 430
|
|
6326
6338
|
}
|
|
6327
6339
|
};
|
|
6328
6340
|
|
|
6329
|
-
var icon$
|
|
6341
|
+
var icon$j = "data:image/svg+xml,%3Csvg%20width%3D%222048%22%20height%3D%221792%22%20viewBox%3D%220%200%202048%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M580%20461q0-41-25-66t-66-25q-43%200-76%2025.5t-33%2065.5q0%2039%2033%2064.5t76%2025.5q41%200%2066-24.5t25-65.5zm743%20507q0-28-25.5-50t-65.5-22q-27%200-49.5%2022.5t-22.5%2049.5q0%2028%2022.5%2050.5t49.5%2022.5q40%200%2065.5-22t25.5-51zm-236-507q0-41-24.5-66t-65.5-25q-43%200-76%2025.5t-33%2065.5q0%2039%2033%2064.5t76%2025.5q41%200%2065.5-24.5t24.5-65.5zm635%20507q0-28-26-50t-65-22q-27%200-49.5%2022.5t-22.5%2049.5q0%2028%2022.5%2050.5t49.5%2022.5q39%200%2065-22t26-51zm-266-397q-31-4-70-4-169%200-311%2077t-223.5%20208.5-81.5%20287.5q0%2078%2023%20152-35%203-68%203-26%200-50-1.5t-55-6.5-44.5-7-54.5-10.5-50-10.5l-253%20127%2072-218q-290-203-290-490%200-169%2097.5-311t264-223.5%20363.5-81.5q176%200%20332.5%2066t262%20182.5%20136.5%20260.5zm592%20561q0%20117-68.5%20223.5t-185.5%20193.5l55%20181-199-109q-150%2037-218%2037-169%200-311-70.5t-223.5-191.5-81.5-264%2081.5-264%20223.5-191.5%20311-70.5q161%200%20303%2070.5t227.5%20192%2085.5%20263.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6330
6342
|
|
|
6331
6343
|
var wechat = {
|
|
6332
6344
|
key: 'wechat',
|
|
6333
6345
|
name: 'WeChat',
|
|
6334
6346
|
color: '#44b549',
|
|
6335
|
-
icon: icon$
|
|
6347
|
+
icon: icon$j,
|
|
6336
6348
|
windowSize: {
|
|
6337
6349
|
width: 450,
|
|
6338
6350
|
height: 400
|
|
6339
6351
|
}
|
|
6340
6352
|
};
|
|
6341
6353
|
|
|
6342
|
-
var icon$
|
|
6354
|
+
var icon$k = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M675%201284q21-34%2011-69t-45-50q-34-14-73-1t-60%2046q-22%2034-13%2068.5t43%2050.5%2074.5%202.5%2062.5-47.5zm94-121q8-13%203.5-26.5t-17.5-18.5q-14-5-28.5.5t-21.5%2018.5q-17%2031%2013%2045%2014%205%2029-.5t22-18.5zm174%20107q-45%20102-158%20150t-224%2012q-107-34-147.5-126.5t6.5-187.5q47-93%20151.5-139t210.5-19q111%2029%20158.5%20119.5t2.5%20190.5zm312-160q-9-96-89-170t-208.5-109-274.5-21q-223%2023-369.5%20141.5t-132.5%20264.5q9%2096%2089%20170t208.5%20109%20274.5%2021q223-23%20369.5-141.5t132.5-264.5zm308%204q0%2068-37%20139.5t-109%20137-168.5%20117.5-226%2083-270.5%2031-275-33.5-240.5-93-171.5-151-65-199.5q0-115%2069.5-245t197.5-258q169-169%20341.5-236t246.5%207q65%2064%2020%20209-4%2014-1%2020t10%207%2014.5-.5%2013.5-3.5l6-2q139-59%20246-59t153%2061q45%2063%200%20178-2%2013-4.5%2020t4.5%2012.5%2012%207.5%2017%206q57%2018%20103%2047t80%2081.5%2034%20116.5zm-74-624q42%2047%2054.5%20108.5t-6.5%20117.5q-8%2023-29.5%2034t-44.5%204q-23-8-34-29.5t-4-44.5q20-63-24-111t-107-35q-24%205-45-8t-25-37q-5-24%208-44.5t37-25.5q60-13%20119%205.5t101%2065.5zm181-163q87%2096%20112.5%20222.5t-13.5%20241.5q-9%2027-34%2040t-52%204-40-34-5-52q28-82%2010-172t-80-158q-62-69-148-95.5t-173-8.5q-28%206-52-9.5t-30-43.5%209.5-51.5%2043.5-29.5q123-26%20244%2011.5t208%20134.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6343
6355
|
|
|
6344
6356
|
var weibo = {
|
|
6345
6357
|
key: 'weibo',
|
|
6346
6358
|
name: 'Weibo',
|
|
6347
6359
|
color: '#e71d34',
|
|
6348
|
-
icon: icon$
|
|
6360
|
+
icon: icon$k
|
|
6349
6361
|
};
|
|
6350
6362
|
|
|
6351
|
-
var icon$
|
|
6363
|
+
var icon$l = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M937%201004l266-499h-112l-157%20312q-24%2048-44%2092l-42-92-155-312h-120l263%20493v324h101v-318zm727-588v960q0%20119-84.5%20203.5t-203.5%2084.5h-960q-119%200-203.5-84.5t-84.5-203.5v-960q0-119%2084.5-203.5t203.5-84.5h960q119%200%20203.5%2084.5t84.5%20203.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6352
6364
|
|
|
6353
6365
|
var yandex = {
|
|
6354
6366
|
key: 'yandex',
|
|
6355
6367
|
name: 'Yandex',
|
|
6356
6368
|
color: '#d43b2f',
|
|
6357
|
-
icon: icon$
|
|
6369
|
+
icon: icon$l,
|
|
6358
6370
|
windowSize: {
|
|
6359
6371
|
width: 655,
|
|
6360
6372
|
height: 700
|
|
@@ -6378,6 +6390,7 @@ var providers = /*#__PURE__*/Object.freeze({
|
|
|
6378
6390
|
oney: oney,
|
|
6379
6391
|
orange: orange,
|
|
6380
6392
|
paypal: paypal,
|
|
6393
|
+
ping: ping,
|
|
6381
6394
|
qq: qq,
|
|
6382
6395
|
twitter: twitter,
|
|
6383
6396
|
vkontakte: vkontakte,
|
|
@@ -7412,15 +7425,15 @@ var checked = new Validator({
|
|
|
7412
7425
|
hint: 'checked'
|
|
7413
7426
|
});
|
|
7414
7427
|
var email = new Validator({
|
|
7415
|
-
rule:
|
|
7428
|
+
rule: validator.isEmail,
|
|
7416
7429
|
hint: 'email'
|
|
7417
7430
|
});
|
|
7418
7431
|
var integer = new Validator({
|
|
7419
|
-
rule:
|
|
7432
|
+
rule: validator.isInt,
|
|
7420
7433
|
hint: 'integer'
|
|
7421
7434
|
});
|
|
7422
7435
|
var _float = new Validator({
|
|
7423
|
-
rule:
|
|
7436
|
+
rule: validator.isFloat,
|
|
7424
7437
|
hint: 'float'
|
|
7425
7438
|
});
|
|
7426
7439
|
|
|
@@ -8702,6 +8715,7 @@ var IdentifierField = /*#__PURE__*/function (_React$Component) {
|
|
|
8702
8715
|
var _this$props$value = this.props.value,
|
|
8703
8716
|
userInput = _this$props$value.userInput,
|
|
8704
8717
|
country = _this$props$value.country;
|
|
8718
|
+
if (!userInput) return;
|
|
8705
8719
|
try {
|
|
8706
8720
|
var parsed = libphonenumber.parse(userInput, country);
|
|
8707
8721
|
var phoneValue = country === parsed.country ? libphonenumber.format(parsed, 'National') : userInput;
|
|
@@ -9647,7 +9661,7 @@ function dateField(config) {
|
|
|
9647
9661
|
validator: new Validator({
|
|
9648
9662
|
rule: function rule(value) {
|
|
9649
9663
|
var date = formatDate(value);
|
|
9650
|
-
return !date ||
|
|
9664
|
+
return !date || validator.isISO8601(date);
|
|
9651
9665
|
},
|
|
9652
9666
|
hint: 'date'
|
|
9653
9667
|
})
|
package/es/identity-ui.js
CHANGED
|
@@ -8,7 +8,7 @@ import styled, { keyframes, css } from 'styled-components';
|
|
|
8
8
|
import { Transition } from 'react-transition-group';
|
|
9
9
|
import classes from 'classnames';
|
|
10
10
|
import { Remarkable } from 'remarkable';
|
|
11
|
-
import validator
|
|
11
|
+
import validator from 'validator';
|
|
12
12
|
import { isValidNumber, AsYouType, format as format$1, parse } from 'libphonenumber-js';
|
|
13
13
|
import { isEqual } from 'lodash-es';
|
|
14
14
|
import { DateTime } from 'luxon';
|
|
@@ -6277,75 +6277,88 @@ var paypal = {
|
|
|
6277
6277
|
icon: icon$e
|
|
6278
6278
|
};
|
|
6279
6279
|
|
|
6280
|
-
var icon$f = "data:image/svg+xml,%3Csvg%20width%3D%
|
|
6280
|
+
var icon$f = "data:image/svg+xml,%3Csvg%20width%3D%22800px%22%20height%3D%22800px%22%20viewBox%3D%220%200%20128%20128%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-hidden%3D%22true%22%20role%3D%22img%22%20class%3D%22iconify%20iconify--noto%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%3E%3Cpath%20d%3D%22M72.51%2015.42H34.65c-.15%200-.28.06-.42.08h-6.47c-1.24%200-2.24%201-2.24%202.24v100.97c0%201.24%201%202.24%202.24%202.24h21.9c1.24%200%202.24-1%202.24-2.24V86.63h20.61c19.83%200%2035.96-15.97%2035.96-35.6c.01-19.63-16.13-35.61-35.96-35.61zm-1.72%2050.22c-.35.03-.7.06-1.06.06H52.28c-.05%200-.09-.04-.14-.06a.513.513%200%200%201-.24-.1a.577.577%200%200%201-.21-.43V36.94c0-.18.09-.32.21-.43c.06-.06.14-.07.22-.09c.06-.02.09-.06.15-.06h17.45c.4%200%20.8.03%201.19.06c7.25.63%2012.97%206.94%2012.97%2014.61c.01%207.71-5.77%2014.05-13.09%2014.61z%22%20fill%3D%22%23fff%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
6281
|
+
|
|
6282
|
+
var ping = {
|
|
6283
|
+
key: 'ping',
|
|
6284
|
+
name: 'Ping',
|
|
6285
|
+
color: '#c90917',
|
|
6286
|
+
icon: icon$f,
|
|
6287
|
+
windowSize: {
|
|
6288
|
+
width: 450,
|
|
6289
|
+
height: 400
|
|
6290
|
+
}
|
|
6291
|
+
};
|
|
6292
|
+
|
|
6293
|
+
var icon$g = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M270%20806q-8-19-8-52%200-20%2011-49t24-45q-1-22%207.5-53t22.5-43q0-139%2092.5-288.5t217.5-209.5q139-66%20324-66%20133%200%20266%2055%2049%2021%2090%2048t71%2056%2055%2068%2042%2074%2032.5%2084.5%2025.5%2089.5%2022%2098l1%205q55%2083%2055%20150%200%2014-9%2040t-9%2038q0%201%201.5%203.5t3.5%205%202%203.5q77%20114%20120.5%20214.5t43.5%20208.5q0%2043-19.5%20100t-55.5%2057q-9%200-19.5-7.5t-19-17.5-19-26-16-26.5-13.5-26-9-17.5q-1-1-3-1l-5%204q-59%20154-132%20223%2020%2020%2061.5%2038.5t69%2041.5%2035.5%2065q-2%204-4%2016t-7%2018q-64%2097-302%2097-53%200-110.5-9t-98-20-104.5-30q-15-5-23-7-14-4-46-4.5t-40-1.5q-41%2045-127.5%2065t-168.5%2020q-35%200-69-1.5t-93-9-101-20.5-74.5-40-32.5-64q0-40%2010-59.5t41-48.5q11-2%2040.5-13t49.5-12q4%200%2014-2%202-2%202-4l-2-3q-48-11-108-105.5t-73-156.5l-5-3q-4%200-12%2020-18%2041-54.5%2074.5t-77.5%2037.5h-1q-4%200-6-4.5t-5-5.5q-23-54-23-100%200-275%20252-466z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6281
6294
|
|
|
6282
6295
|
var qq = {
|
|
6283
6296
|
key: 'qq',
|
|
6284
6297
|
name: 'QQ',
|
|
6285
6298
|
color: '#0071c3',
|
|
6286
|
-
icon: icon$
|
|
6299
|
+
icon: icon$g,
|
|
6287
6300
|
windowSize: {
|
|
6288
6301
|
width: 450,
|
|
6289
6302
|
height: 400
|
|
6290
6303
|
}
|
|
6291
6304
|
};
|
|
6292
6305
|
|
|
6293
|
-
var icon$
|
|
6306
|
+
var icon$h = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1684%20408q-67%2098-162%20167%201%2014%201%2042%200%20130-38%20259.5t-115.5%20248.5-184.5%20210.5-258%20146-323%2054.5q-271%200-496-145%2035%204%2078%204%20225%200%20401-138-105-2-188-64.5t-114-159.5q33%205%2061%205%2043%200%2085-11-112-23-185.5-111.5t-73.5-205.5v-4q68%2038%20146%2041-66-44-105-115t-39-154q0-88%2044-163%20121%20149%20294.5%20238.5t371.5%2099.5q-8-38-8-74%200-134%2094.5-228.5t228.5-94.5q140%200%20236%20102%20109-21%20205-78-37%20115-142%20178%2093-10%20186-50z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6294
6307
|
|
|
6295
6308
|
var twitter = {
|
|
6296
6309
|
key: 'twitter',
|
|
6297
6310
|
name: 'Twitter',
|
|
6298
6311
|
color: '#55acee',
|
|
6299
|
-
icon: icon$
|
|
6312
|
+
icon: icon$h,
|
|
6300
6313
|
windowSize: {
|
|
6301
6314
|
width: 800,
|
|
6302
6315
|
height: 440
|
|
6303
6316
|
}
|
|
6304
6317
|
};
|
|
6305
6318
|
|
|
6306
|
-
var icon$
|
|
6319
|
+
var icon$i = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1853%20520q23%2064-150%20294-24%2032-65%2085-78%20100-90%20131-17%2041%2014%2081%2017%2021%2081%2082h1l1%201%201%201%202%202q141%20131%20191%20221%203%205%206.5%2012.5t7%2026.5-.5%2034-25%2027.5-59%2012.5l-256%204q-24%205-56-5t-52-22l-20-12q-30-21-70-64t-68.5-77.5-61-58-56.5-15.5q-3%201-8%203.5t-17%2014.5-21.5%2029.5-17%2052-6.5%2077.5q0%2015-3.5%2027.5t-7.5%2018.5l-4%205q-18%2019-53%2022h-115q-71%204-146-16.5t-131.5-53-103-66-70.5-57.5l-25-24q-10-10-27.5-30t-71.5-91-106-151-122.5-211-130.5-272q-6-16-6-27t3-16l4-6q15-19%2057-19l274-2q12%202%2023%206.5t16%208.5l5%203q16%2011%2024%2032%2020%2050%2046%20103.5t41%2081.5l16%2029q29%2060%2056%20104t48.5%2068.5%2041.5%2038.5%2034%2014%2027-5q2-1%205-5t12-22%2013.5-47%209.5-81%200-125q-2-40-9-73t-14-46l-6-12q-25-34-85-43-13-2%205-24%2017-19%2038-30%2053-26%20239-24%2082%201%20135%2013%2020%205%2033.5%2013.5t20.5%2024%2010.5%2032%203.5%2045.5-1%2055-2.5%2070.5-1.5%2082.5q0%2011-1%2042t-.5%2048%203.5%2040.5%2011.5%2039%2022.5%2024.5q8%202%2017%204t26-11%2038-34.5%2052-67%2068-107.5q60-104%20107-225%204-10%2010-17.5t11-10.5l4-3%205-2.5%2013-3%2020-.5%20288-2q39-5%2064%202.5t31%2016.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6307
6320
|
|
|
6308
6321
|
var vkontakte = {
|
|
6309
6322
|
key: 'vkontakte',
|
|
6310
6323
|
fontKey: 'vk',
|
|
6311
6324
|
name: 'VKontakte',
|
|
6312
6325
|
color: '#45668e',
|
|
6313
|
-
icon: icon$
|
|
6326
|
+
icon: icon$i,
|
|
6314
6327
|
windowSize: {
|
|
6315
6328
|
width: 655,
|
|
6316
6329
|
height: 430
|
|
6317
6330
|
}
|
|
6318
6331
|
};
|
|
6319
6332
|
|
|
6320
|
-
var icon$
|
|
6333
|
+
var icon$j = "data:image/svg+xml,%3Csvg%20width%3D%222048%22%20height%3D%221792%22%20viewBox%3D%220%200%202048%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M580%20461q0-41-25-66t-66-25q-43%200-76%2025.5t-33%2065.5q0%2039%2033%2064.5t76%2025.5q41%200%2066-24.5t25-65.5zm743%20507q0-28-25.5-50t-65.5-22q-27%200-49.5%2022.5t-22.5%2049.5q0%2028%2022.5%2050.5t49.5%2022.5q40%200%2065.5-22t25.5-51zm-236-507q0-41-24.5-66t-65.5-25q-43%200-76%2025.5t-33%2065.5q0%2039%2033%2064.5t76%2025.5q41%200%2065.5-24.5t24.5-65.5zm635%20507q0-28-26-50t-65-22q-27%200-49.5%2022.5t-22.5%2049.5q0%2028%2022.5%2050.5t49.5%2022.5q39%200%2065-22t26-51zm-266-397q-31-4-70-4-169%200-311%2077t-223.5%20208.5-81.5%20287.5q0%2078%2023%20152-35%203-68%203-26%200-50-1.5t-55-6.5-44.5-7-54.5-10.5-50-10.5l-253%20127%2072-218q-290-203-290-490%200-169%2097.5-311t264-223.5%20363.5-81.5q176%200%20332.5%2066t262%20182.5%20136.5%20260.5zm592%20561q0%20117-68.5%20223.5t-185.5%20193.5l55%20181-199-109q-150%2037-218%2037-169%200-311-70.5t-223.5-191.5-81.5-264%2081.5-264%20223.5-191.5%20311-70.5q161%200%20303%2070.5t227.5%20192%2085.5%20263.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6321
6334
|
|
|
6322
6335
|
var wechat = {
|
|
6323
6336
|
key: 'wechat',
|
|
6324
6337
|
name: 'WeChat',
|
|
6325
6338
|
color: '#44b549',
|
|
6326
|
-
icon: icon$
|
|
6339
|
+
icon: icon$j,
|
|
6327
6340
|
windowSize: {
|
|
6328
6341
|
width: 450,
|
|
6329
6342
|
height: 400
|
|
6330
6343
|
}
|
|
6331
6344
|
};
|
|
6332
6345
|
|
|
6333
|
-
var icon$
|
|
6346
|
+
var icon$k = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M675%201284q21-34%2011-69t-45-50q-34-14-73-1t-60%2046q-22%2034-13%2068.5t43%2050.5%2074.5%202.5%2062.5-47.5zm94-121q8-13%203.5-26.5t-17.5-18.5q-14-5-28.5.5t-21.5%2018.5q-17%2031%2013%2045%2014%205%2029-.5t22-18.5zm174%20107q-45%20102-158%20150t-224%2012q-107-34-147.5-126.5t6.5-187.5q47-93%20151.5-139t210.5-19q111%2029%20158.5%20119.5t2.5%20190.5zm312-160q-9-96-89-170t-208.5-109-274.5-21q-223%2023-369.5%20141.5t-132.5%20264.5q9%2096%2089%20170t208.5%20109%20274.5%2021q223-23%20369.5-141.5t132.5-264.5zm308%204q0%2068-37%20139.5t-109%20137-168.5%20117.5-226%2083-270.5%2031-275-33.5-240.5-93-171.5-151-65-199.5q0-115%2069.5-245t197.5-258q169-169%20341.5-236t246.5%207q65%2064%2020%20209-4%2014-1%2020t10%207%2014.5-.5%2013.5-3.5l6-2q139-59%20246-59t153%2061q45%2063%200%20178-2%2013-4.5%2020t4.5%2012.5%2012%207.5%2017%206q57%2018%20103%2047t80%2081.5%2034%20116.5zm-74-624q42%2047%2054.5%20108.5t-6.5%20117.5q-8%2023-29.5%2034t-44.5%204q-23-8-34-29.5t-4-44.5q20-63-24-111t-107-35q-24%205-45-8t-25-37q-5-24%208-44.5t37-25.5q60-13%20119%205.5t101%2065.5zm181-163q87%2096%20112.5%20222.5t-13.5%20241.5q-9%2027-34%2040t-52%204-40-34-5-52q28-82%2010-172t-80-158q-62-69-148-95.5t-173-8.5q-28%206-52-9.5t-30-43.5%209.5-51.5%2043.5-29.5q123-26%20244%2011.5t208%20134.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6334
6347
|
|
|
6335
6348
|
var weibo = {
|
|
6336
6349
|
key: 'weibo',
|
|
6337
6350
|
name: 'Weibo',
|
|
6338
6351
|
color: '#e71d34',
|
|
6339
|
-
icon: icon$
|
|
6352
|
+
icon: icon$k
|
|
6340
6353
|
};
|
|
6341
6354
|
|
|
6342
|
-
var icon$
|
|
6355
|
+
var icon$l = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M937%201004l266-499h-112l-157%20312q-24%2048-44%2092l-42-92-155-312h-120l263%20493v324h101v-318zm727-588v960q0%20119-84.5%20203.5t-203.5%2084.5h-960q-119%200-203.5-84.5t-84.5-203.5v-960q0-119%2084.5-203.5t203.5-84.5h960q119%200%20203.5%2084.5t84.5%20203.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
6343
6356
|
|
|
6344
6357
|
var yandex = {
|
|
6345
6358
|
key: 'yandex',
|
|
6346
6359
|
name: 'Yandex',
|
|
6347
6360
|
color: '#d43b2f',
|
|
6348
|
-
icon: icon$
|
|
6361
|
+
icon: icon$l,
|
|
6349
6362
|
windowSize: {
|
|
6350
6363
|
width: 655,
|
|
6351
6364
|
height: 700
|
|
@@ -6369,6 +6382,7 @@ var providers = /*#__PURE__*/Object.freeze({
|
|
|
6369
6382
|
oney: oney,
|
|
6370
6383
|
orange: orange,
|
|
6371
6384
|
paypal: paypal,
|
|
6385
|
+
ping: ping,
|
|
6372
6386
|
qq: qq,
|
|
6373
6387
|
twitter: twitter,
|
|
6374
6388
|
vkontakte: vkontakte,
|
|
@@ -8693,6 +8707,7 @@ var IdentifierField = /*#__PURE__*/function (_React$Component) {
|
|
|
8693
8707
|
var _this$props$value = this.props.value,
|
|
8694
8708
|
userInput = _this$props$value.userInput,
|
|
8695
8709
|
country = _this$props$value.country;
|
|
8710
|
+
if (!userInput) return;
|
|
8696
8711
|
try {
|
|
8697
8712
|
var parsed = parse(userInput, country);
|
|
8698
8713
|
var phoneValue = country === parsed.country ? format$1(parsed, 'National') : userInput;
|
|
@@ -9638,7 +9653,7 @@ function dateField(config) {
|
|
|
9638
9653
|
validator: new Validator({
|
|
9639
9654
|
rule: function rule(value) {
|
|
9640
9655
|
var date = formatDate(value);
|
|
9641
|
-
return !date || validator(date);
|
|
9656
|
+
return !date || validator.isISO8601(date);
|
|
9642
9657
|
},
|
|
9643
9658
|
hint: 'date'
|
|
9644
9659
|
})
|
|
@@ -9833,7 +9848,7 @@ function birthdateField(_ref4) {
|
|
|
9833
9848
|
}, {})) : {};
|
|
9834
9849
|
}
|
|
9835
9850
|
if (isSubmitted || day.isDirty || month.isDirty || year.isDirty) {
|
|
9836
|
-
if (!isNumeric(year.value.toString()) || !DateTime.fromObject({
|
|
9851
|
+
if (!validator.isNumeric(year.value.toString()) || !DateTime.fromObject({
|
|
9837
9852
|
year: parseInt(year.value, 10)
|
|
9838
9853
|
}).isValid) {
|
|
9839
9854
|
return {
|
|
@@ -9842,13 +9857,13 @@ function birthdateField(_ref4) {
|
|
|
9842
9857
|
};
|
|
9843
9858
|
}
|
|
9844
9859
|
var birthdate = format(state);
|
|
9845
|
-
if (!birthdate || !isISO8601(birthdate)) {
|
|
9860
|
+
if (!birthdate || !validator.isISO8601(birthdate)) {
|
|
9846
9861
|
return {
|
|
9847
9862
|
error: i18n('validation.birthdate.dayOfMonth'),
|
|
9848
9863
|
day: true
|
|
9849
9864
|
};
|
|
9850
9865
|
}
|
|
9851
|
-
if (!(isNumeric(month.value.toString()) && isNumeric(day.value.toString())) || !DateTime.fromObject({
|
|
9866
|
+
if (!(validator.isNumeric(month.value.toString()) && validator.isNumeric(day.value.toString())) || !DateTime.fromObject({
|
|
9852
9867
|
year: year.value,
|
|
9853
9868
|
month: month.value,
|
|
9854
9869
|
day: day.value
|
package/package.json
CHANGED
package/umd/identity-ui.js
CHANGED
|
@@ -30993,75 +30993,88 @@
|
|
|
30993
30993
|
icon: icon$e
|
|
30994
30994
|
};
|
|
30995
30995
|
|
|
30996
|
-
var icon$f = "data:image/svg+xml,%3Csvg%20width%3D%
|
|
30996
|
+
var icon$f = "data:image/svg+xml,%3Csvg%20width%3D%22800px%22%20height%3D%22800px%22%20viewBox%3D%220%200%20128%20128%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-hidden%3D%22true%22%20role%3D%22img%22%20class%3D%22iconify%20iconify--noto%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%3E%3Cpath%20d%3D%22M72.51%2015.42H34.65c-.15%200-.28.06-.42.08h-6.47c-1.24%200-2.24%201-2.24%202.24v100.97c0%201.24%201%202.24%202.24%202.24h21.9c1.24%200%202.24-1%202.24-2.24V86.63h20.61c19.83%200%2035.96-15.97%2035.96-35.6c.01-19.63-16.13-35.61-35.96-35.61zm-1.72%2050.22c-.35.03-.7.06-1.06.06H52.28c-.05%200-.09-.04-.14-.06a.513.513%200%200%201-.24-.1a.577.577%200%200%201-.21-.43V36.94c0-.18.09-.32.21-.43c.06-.06.14-.07.22-.09c.06-.02.09-.06.15-.06h17.45c.4%200%20.8.03%201.19.06c7.25.63%2012.97%206.94%2012.97%2014.61c.01%207.71-5.77%2014.05-13.09%2014.61z%22%20fill%3D%22%23fff%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
30997
|
+
|
|
30998
|
+
var ping = {
|
|
30999
|
+
key: 'ping',
|
|
31000
|
+
name: 'Ping',
|
|
31001
|
+
color: '#c90917',
|
|
31002
|
+
icon: icon$f,
|
|
31003
|
+
windowSize: {
|
|
31004
|
+
width: 450,
|
|
31005
|
+
height: 400
|
|
31006
|
+
}
|
|
31007
|
+
};
|
|
31008
|
+
|
|
31009
|
+
var icon$g = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M270%20806q-8-19-8-52%200-20%2011-49t24-45q-1-22%207.5-53t22.5-43q0-139%2092.5-288.5t217.5-209.5q139-66%20324-66%20133%200%20266%2055%2049%2021%2090%2048t71%2056%2055%2068%2042%2074%2032.5%2084.5%2025.5%2089.5%2022%2098l1%205q55%2083%2055%20150%200%2014-9%2040t-9%2038q0%201%201.5%203.5t3.5%205%202%203.5q77%20114%20120.5%20214.5t43.5%20208.5q0%2043-19.5%20100t-55.5%2057q-9%200-19.5-7.5t-19-17.5-19-26-16-26.5-13.5-26-9-17.5q-1-1-3-1l-5%204q-59%20154-132%20223%2020%2020%2061.5%2038.5t69%2041.5%2035.5%2065q-2%204-4%2016t-7%2018q-64%2097-302%2097-53%200-110.5-9t-98-20-104.5-30q-15-5-23-7-14-4-46-4.5t-40-1.5q-41%2045-127.5%2065t-168.5%2020q-35%200-69-1.5t-93-9-101-20.5-74.5-40-32.5-64q0-40%2010-59.5t41-48.5q11-2%2040.5-13t49.5-12q4%200%2014-2%202-2%202-4l-2-3q-48-11-108-105.5t-73-156.5l-5-3q-4%200-12%2020-18%2041-54.5%2074.5t-77.5%2037.5h-1q-4%200-6-4.5t-5-5.5q-23-54-23-100%200-275%20252-466z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
30997
31010
|
|
|
30998
31011
|
var qq = {
|
|
30999
31012
|
key: 'qq',
|
|
31000
31013
|
name: 'QQ',
|
|
31001
31014
|
color: '#0071c3',
|
|
31002
|
-
icon: icon$
|
|
31015
|
+
icon: icon$g,
|
|
31003
31016
|
windowSize: {
|
|
31004
31017
|
width: 450,
|
|
31005
31018
|
height: 400
|
|
31006
31019
|
}
|
|
31007
31020
|
};
|
|
31008
31021
|
|
|
31009
|
-
var icon$
|
|
31022
|
+
var icon$h = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1684%20408q-67%2098-162%20167%201%2014%201%2042%200%20130-38%20259.5t-115.5%20248.5-184.5%20210.5-258%20146-323%2054.5q-271%200-496-145%2035%204%2078%204%20225%200%20401-138-105-2-188-64.5t-114-159.5q33%205%2061%205%2043%200%2085-11-112-23-185.5-111.5t-73.5-205.5v-4q68%2038%20146%2041-66-44-105-115t-39-154q0-88%2044-163%20121%20149%20294.5%20238.5t371.5%2099.5q-8-38-8-74%200-134%2094.5-228.5t228.5-94.5q140%200%20236%20102%20109-21%20205-78-37%20115-142%20178%2093-10%20186-50z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
31010
31023
|
|
|
31011
31024
|
var twitter = {
|
|
31012
31025
|
key: 'twitter',
|
|
31013
31026
|
name: 'Twitter',
|
|
31014
31027
|
color: '#55acee',
|
|
31015
|
-
icon: icon$
|
|
31028
|
+
icon: icon$h,
|
|
31016
31029
|
windowSize: {
|
|
31017
31030
|
width: 800,
|
|
31018
31031
|
height: 440
|
|
31019
31032
|
}
|
|
31020
31033
|
};
|
|
31021
31034
|
|
|
31022
|
-
var icon$
|
|
31035
|
+
var icon$i = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1853%20520q23%2064-150%20294-24%2032-65%2085-78%20100-90%20131-17%2041%2014%2081%2017%2021%2081%2082h1l1%201%201%201%202%202q141%20131%20191%20221%203%205%206.5%2012.5t7%2026.5-.5%2034-25%2027.5-59%2012.5l-256%204q-24%205-56-5t-52-22l-20-12q-30-21-70-64t-68.5-77.5-61-58-56.5-15.5q-3%201-8%203.5t-17%2014.5-21.5%2029.5-17%2052-6.5%2077.5q0%2015-3.5%2027.5t-7.5%2018.5l-4%205q-18%2019-53%2022h-115q-71%204-146-16.5t-131.5-53-103-66-70.5-57.5l-25-24q-10-10-27.5-30t-71.5-91-106-151-122.5-211-130.5-272q-6-16-6-27t3-16l4-6q15-19%2057-19l274-2q12%202%2023%206.5t16%208.5l5%203q16%2011%2024%2032%2020%2050%2046%20103.5t41%2081.5l16%2029q29%2060%2056%20104t48.5%2068.5%2041.5%2038.5%2034%2014%2027-5q2-1%205-5t12-22%2013.5-47%209.5-81%200-125q-2-40-9-73t-14-46l-6-12q-25-34-85-43-13-2%205-24%2017-19%2038-30%2053-26%20239-24%2082%201%20135%2013%2020%205%2033.5%2013.5t20.5%2024%2010.5%2032%203.5%2045.5-1%2055-2.5%2070.5-1.5%2082.5q0%2011-1%2042t-.5%2048%203.5%2040.5%2011.5%2039%2022.5%2024.5q8%202%2017%204t26-11%2038-34.5%2052-67%2068-107.5q60-104%20107-225%204-10%2010-17.5t11-10.5l4-3%205-2.5%2013-3%2020-.5%20288-2q39-5%2064%202.5t31%2016.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
31023
31036
|
|
|
31024
31037
|
var vkontakte = {
|
|
31025
31038
|
key: 'vkontakte',
|
|
31026
31039
|
fontKey: 'vk',
|
|
31027
31040
|
name: 'VKontakte',
|
|
31028
31041
|
color: '#45668e',
|
|
31029
|
-
icon: icon$
|
|
31042
|
+
icon: icon$i,
|
|
31030
31043
|
windowSize: {
|
|
31031
31044
|
width: 655,
|
|
31032
31045
|
height: 430
|
|
31033
31046
|
}
|
|
31034
31047
|
};
|
|
31035
31048
|
|
|
31036
|
-
var icon$
|
|
31049
|
+
var icon$j = "data:image/svg+xml,%3Csvg%20width%3D%222048%22%20height%3D%221792%22%20viewBox%3D%220%200%202048%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M580%20461q0-41-25-66t-66-25q-43%200-76%2025.5t-33%2065.5q0%2039%2033%2064.5t76%2025.5q41%200%2066-24.5t25-65.5zm743%20507q0-28-25.5-50t-65.5-22q-27%200-49.5%2022.5t-22.5%2049.5q0%2028%2022.5%2050.5t49.5%2022.5q40%200%2065.5-22t25.5-51zm-236-507q0-41-24.5-66t-65.5-25q-43%200-76%2025.5t-33%2065.5q0%2039%2033%2064.5t76%2025.5q41%200%2065.5-24.5t24.5-65.5zm635%20507q0-28-26-50t-65-22q-27%200-49.5%2022.5t-22.5%2049.5q0%2028%2022.5%2050.5t49.5%2022.5q39%200%2065-22t26-51zm-266-397q-31-4-70-4-169%200-311%2077t-223.5%20208.5-81.5%20287.5q0%2078%2023%20152-35%203-68%203-26%200-50-1.5t-55-6.5-44.5-7-54.5-10.5-50-10.5l-253%20127%2072-218q-290-203-290-490%200-169%2097.5-311t264-223.5%20363.5-81.5q176%200%20332.5%2066t262%20182.5%20136.5%20260.5zm592%20561q0%20117-68.5%20223.5t-185.5%20193.5l55%20181-199-109q-150%2037-218%2037-169%200-311-70.5t-223.5-191.5-81.5-264%2081.5-264%20223.5-191.5%20311-70.5q161%200%20303%2070.5t227.5%20192%2085.5%20263.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
31037
31050
|
|
|
31038
31051
|
var wechat = {
|
|
31039
31052
|
key: 'wechat',
|
|
31040
31053
|
name: 'WeChat',
|
|
31041
31054
|
color: '#44b549',
|
|
31042
|
-
icon: icon$
|
|
31055
|
+
icon: icon$j,
|
|
31043
31056
|
windowSize: {
|
|
31044
31057
|
width: 450,
|
|
31045
31058
|
height: 400
|
|
31046
31059
|
}
|
|
31047
31060
|
};
|
|
31048
31061
|
|
|
31049
|
-
var icon$
|
|
31062
|
+
var icon$k = "data:image/svg+xml,%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M675%201284q21-34%2011-69t-45-50q-34-14-73-1t-60%2046q-22%2034-13%2068.5t43%2050.5%2074.5%202.5%2062.5-47.5zm94-121q8-13%203.5-26.5t-17.5-18.5q-14-5-28.5.5t-21.5%2018.5q-17%2031%2013%2045%2014%205%2029-.5t22-18.5zm174%20107q-45%20102-158%20150t-224%2012q-107-34-147.5-126.5t6.5-187.5q47-93%20151.5-139t210.5-19q111%2029%20158.5%20119.5t2.5%20190.5zm312-160q-9-96-89-170t-208.5-109-274.5-21q-223%2023-369.5%20141.5t-132.5%20264.5q9%2096%2089%20170t208.5%20109%20274.5%2021q223-23%20369.5-141.5t132.5-264.5zm308%204q0%2068-37%20139.5t-109%20137-168.5%20117.5-226%2083-270.5%2031-275-33.5-240.5-93-171.5-151-65-199.5q0-115%2069.5-245t197.5-258q169-169%20341.5-236t246.5%207q65%2064%2020%20209-4%2014-1%2020t10%207%2014.5-.5%2013.5-3.5l6-2q139-59%20246-59t153%2061q45%2063%200%20178-2%2013-4.5%2020t4.5%2012.5%2012%207.5%2017%206q57%2018%20103%2047t80%2081.5%2034%20116.5zm-74-624q42%2047%2054.5%20108.5t-6.5%20117.5q-8%2023-29.5%2034t-44.5%204q-23-8-34-29.5t-4-44.5q20-63-24-111t-107-35q-24%205-45-8t-25-37q-5-24%208-44.5t37-25.5q60-13%20119%205.5t101%2065.5zm181-163q87%2096%20112.5%20222.5t-13.5%20241.5q-9%2027-34%2040t-52%204-40-34-5-52q28-82%2010-172t-80-158q-62-69-148-95.5t-173-8.5q-28%206-52-9.5t-30-43.5%209.5-51.5%2043.5-29.5q123-26%20244%2011.5t208%20134.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
31050
31063
|
|
|
31051
31064
|
var weibo = {
|
|
31052
31065
|
key: 'weibo',
|
|
31053
31066
|
name: 'Weibo',
|
|
31054
31067
|
color: '#e71d34',
|
|
31055
|
-
icon: icon$
|
|
31068
|
+
icon: icon$k
|
|
31056
31069
|
};
|
|
31057
31070
|
|
|
31058
|
-
var icon$
|
|
31071
|
+
var icon$l = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csvg%20width%3D%221792%22%20height%3D%221792%22%20viewBox%3D%220%200%201792%201792%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M937%201004l266-499h-112l-157%20312q-24%2048-44%2092l-42-92-155-312h-120l263%20493v324h101v-318zm727-588v960q0%20119-84.5%20203.5t-203.5%2084.5h-960q-119%200-203.5-84.5t-84.5-203.5v-960q0-119%2084.5-203.5t203.5-84.5h960q119%200%20203.5%2084.5t84.5%20203.5z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E";
|
|
31059
31072
|
|
|
31060
31073
|
var yandex = {
|
|
31061
31074
|
key: 'yandex',
|
|
31062
31075
|
name: 'Yandex',
|
|
31063
31076
|
color: '#d43b2f',
|
|
31064
|
-
icon: icon$
|
|
31077
|
+
icon: icon$l,
|
|
31065
31078
|
windowSize: {
|
|
31066
31079
|
width: 655,
|
|
31067
31080
|
height: 700
|
|
@@ -31085,6 +31098,7 @@
|
|
|
31085
31098
|
oney: oney,
|
|
31086
31099
|
orange: orange,
|
|
31087
31100
|
paypal: paypal,
|
|
31101
|
+
ping: ping,
|
|
31088
31102
|
qq: qq,
|
|
31089
31103
|
twitter: twitter,
|
|
31090
31104
|
vkontakte: vkontakte,
|
|
@@ -38402,7 +38416,7 @@
|
|
|
38402
38416
|
module.exports = exports["default"];
|
|
38403
38417
|
module.exports["default"] = exports["default"];
|
|
38404
38418
|
});
|
|
38405
|
-
var
|
|
38419
|
+
var validator = /*@__PURE__*/unwrapExports(validator_1);
|
|
38406
38420
|
|
|
38407
38421
|
// This file is a workaround for a bug in web browsers' "native"
|
|
38408
38422
|
// ES6 importing system which is uncapable of importing "*.json" files.
|
|
@@ -45122,15 +45136,15 @@
|
|
|
45122
45136
|
hint: 'checked'
|
|
45123
45137
|
});
|
|
45124
45138
|
var email = new Validator({
|
|
45125
|
-
rule:
|
|
45139
|
+
rule: validator.isEmail,
|
|
45126
45140
|
hint: 'email'
|
|
45127
45141
|
});
|
|
45128
45142
|
var integer = new Validator({
|
|
45129
|
-
rule:
|
|
45143
|
+
rule: validator.isInt,
|
|
45130
45144
|
hint: 'integer'
|
|
45131
45145
|
});
|
|
45132
45146
|
var _float = new Validator({
|
|
45133
|
-
rule:
|
|
45147
|
+
rule: validator.isFloat,
|
|
45134
45148
|
hint: 'float'
|
|
45135
45149
|
});
|
|
45136
45150
|
|
|
@@ -46412,6 +46426,7 @@
|
|
|
46412
46426
|
var _this$props$value = this.props.value,
|
|
46413
46427
|
userInput = _this$props$value.userInput,
|
|
46414
46428
|
country = _this$props$value.country;
|
|
46429
|
+
if (!userInput) return;
|
|
46415
46430
|
try {
|
|
46416
46431
|
var parsed = parse$1(userInput, country);
|
|
46417
46432
|
var phoneValue = country === parsed.country ? format(parsed, 'National') : userInput;
|
|
@@ -47666,7 +47681,7 @@
|
|
|
47666
47681
|
validator: new Validator({
|
|
47667
47682
|
rule: function rule(value) {
|
|
47668
47683
|
var date = formatDate(value);
|
|
47669
|
-
return !date || isISO8601(date);
|
|
47684
|
+
return !date || validator.isISO8601(date);
|
|
47670
47685
|
},
|
|
47671
47686
|
hint: 'date'
|
|
47672
47687
|
})
|
|
@@ -56014,7 +56029,7 @@
|
|
|
56014
56029
|
}, {})) : {};
|
|
56015
56030
|
}
|
|
56016
56031
|
if (isSubmitted || day.isDirty || month.isDirty || year.isDirty) {
|
|
56017
|
-
if (!
|
|
56032
|
+
if (!validator.isNumeric(year.value.toString()) || !DateTime.fromObject({
|
|
56018
56033
|
year: parseInt(year.value, 10)
|
|
56019
56034
|
}).isValid) {
|
|
56020
56035
|
return {
|
|
@@ -56023,13 +56038,13 @@
|
|
|
56023
56038
|
};
|
|
56024
56039
|
}
|
|
56025
56040
|
var birthdate = format$1(state);
|
|
56026
|
-
if (!birthdate || !
|
|
56041
|
+
if (!birthdate || !validator.isISO8601(birthdate)) {
|
|
56027
56042
|
return {
|
|
56028
56043
|
error: i18n('validation.birthdate.dayOfMonth'),
|
|
56029
56044
|
day: true
|
|
56030
56045
|
};
|
|
56031
56046
|
}
|
|
56032
|
-
if (!(
|
|
56047
|
+
if (!(validator.isNumeric(month.value.toString()) && validator.isNumeric(day.value.toString())) || !DateTime.fromObject({
|
|
56033
56048
|
year: year.value,
|
|
56034
56049
|
month: month.value,
|
|
56035
56050
|
day: day.value
|