@alfalab/core-components-confirmation 12.2.4 → 12.3.1
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/{component-31d94208.d.ts → component-fdb34282.d.ts} +0 -0
- package/{component-31d94208.js → component-fdb34282.js} +3 -2
- package/component.desktop.js +2 -2
- package/component.mobile.js +3 -3
- package/component.responsive.js +2 -2
- package/components/base-confirmation/component.js +2 -2
- package/components/base-confirmation/index.css +3 -3
- package/components/base-confirmation/index.d.ts +1 -1
- package/components/base-confirmation/index.js +2 -2
- package/components/countdown-loader/component.js +1 -1
- package/components/countdown-loader/index.css +2 -2
- package/components/header/component.js +1 -1
- package/components/header/index.css +4 -4
- package/components/index.js +1 -1
- package/components/screens/fatal-error/component.js +1 -1
- package/components/screens/fatal-error/index.css +5 -5
- package/components/screens/hint/component.js +1 -1
- package/components/screens/hint/index.css +12 -12
- package/components/screens/index.js +1 -1
- package/components/screens/initial/component.js +3 -3
- package/components/screens/initial/countdown-section.js +1 -1
- package/components/screens/initial/index.css +18 -18
- package/components/screens/initial/index.js +1 -1
- package/components/screens/temp-block/component.js +1 -1
- package/components/screens/temp-block/index.css +5 -5
- package/{countdown-section-b9df86d5.d.ts → countdown-section-0b438545.d.ts} +0 -0
- package/{countdown-section-b9df86d5.js → countdown-section-0b438545.js} +1 -1
- package/cssm/{component-c0d561b6.d.ts → component-cbe72bf1.d.ts} +0 -0
- package/cssm/{component-c0d561b6.js → component-cbe72bf1.js} +2 -1
- package/cssm/component.desktop.js +1 -1
- package/cssm/component.mobile.js +1 -1
- package/cssm/component.responsive.js +1 -1
- package/cssm/components/base-confirmation/component.js +1 -1
- package/cssm/components/base-confirmation/index.d.ts +1 -1
- package/cssm/components/base-confirmation/index.js +1 -1
- package/cssm/components/screens/initial/component.js +2 -2
- package/cssm/desktop.js +1 -1
- package/cssm/index.js +1 -1
- package/cssm/mobile.js +1 -1
- package/cssm/responsive.js +1 -1
- package/cssm/types.d.ts +5 -1
- package/desktop.js +2 -2
- package/esm/{component-079a15ec.d.ts → component-01ef70cf.d.ts} +0 -0
- package/esm/{component-079a15ec.js → component-01ef70cf.js} +3 -2
- package/esm/component.desktop.js +2 -2
- package/esm/component.mobile.js +3 -3
- package/esm/component.responsive.js +2 -2
- package/esm/components/base-confirmation/component.js +2 -2
- package/esm/components/base-confirmation/index.css +3 -3
- package/esm/components/base-confirmation/index.d.ts +1 -1
- package/esm/components/base-confirmation/index.js +2 -2
- package/esm/components/countdown-loader/component.js +1 -1
- package/esm/components/countdown-loader/index.css +2 -2
- package/esm/components/header/component.js +1 -1
- package/esm/components/header/index.css +4 -4
- package/esm/components/index.js +1 -1
- package/esm/components/screens/fatal-error/component.js +1 -1
- package/esm/components/screens/fatal-error/index.css +5 -5
- package/esm/components/screens/hint/component.js +1 -1
- package/esm/components/screens/hint/index.css +12 -12
- package/esm/components/screens/index.js +1 -1
- package/esm/components/screens/initial/component.js +3 -3
- package/esm/components/screens/initial/countdown-section.js +1 -1
- package/esm/components/screens/initial/index.css +18 -18
- package/esm/components/screens/initial/index.js +1 -1
- package/esm/components/screens/temp-block/component.js +1 -1
- package/esm/components/screens/temp-block/index.css +5 -5
- package/esm/{countdown-section-2d096a10.d.ts → countdown-section-c6451bca.d.ts} +0 -0
- package/esm/{countdown-section-2d096a10.js → countdown-section-c6451bca.js} +1 -1
- package/esm/desktop.js +2 -2
- package/esm/index.js +2 -2
- package/esm/mobile.css +2 -2
- package/esm/mobile.js +2 -2
- package/esm/responsive.js +2 -2
- package/esm/types.d.ts +5 -1
- package/index.js +2 -2
- package/mobile.css +2 -2
- package/mobile.js +2 -2
- package/modern/component.desktop.js +1 -1
- package/modern/component.mobile.js +2 -2
- package/modern/component.responsive.js +1 -1
- package/modern/components/base-confirmation/component.js +4 -3
- package/modern/components/base-confirmation/index.css +3 -3
- package/modern/components/base-confirmation/index.js +1 -1
- package/modern/components/countdown-loader/component.js +1 -1
- package/modern/components/countdown-loader/index.css +2 -2
- package/modern/components/header/component.js +1 -1
- package/modern/components/header/index.css +4 -4
- package/modern/components/index.js +1 -1
- package/modern/components/screens/fatal-error/component.js +1 -1
- package/modern/components/screens/fatal-error/index.css +5 -5
- package/modern/components/screens/hint/component.js +1 -1
- package/modern/components/screens/hint/index.css +12 -12
- package/modern/components/screens/index.js +1 -1
- package/modern/components/screens/initial/component.js +3 -3
- package/modern/components/screens/initial/countdown-section.js +1 -1
- package/modern/components/screens/initial/index.css +18 -18
- package/modern/components/screens/initial/index.js +1 -1
- package/modern/components/screens/temp-block/component.js +1 -1
- package/modern/components/screens/temp-block/index.css +5 -5
- package/modern/{countdown-section-f8b16386.d.ts → countdown-section-080d449f.d.ts} +0 -0
- package/modern/{countdown-section-f8b16386.js → countdown-section-080d449f.js} +1 -1
- package/modern/desktop.js +1 -1
- package/modern/index.js +1 -1
- package/modern/mobile.css +2 -2
- package/modern/mobile.js +1 -1
- package/modern/responsive.js +1 -1
- package/modern/types.d.ts +5 -1
- package/package.json +4 -4
- package/responsive.js +2 -2
- package/types.d.ts +5 -1
|
File without changes
|
|
@@ -55,7 +55,7 @@ function __rest(s, e) {
|
|
|
55
55
|
return t;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
var styles = {"component":"
|
|
58
|
+
var styles = {"component":"confirmation__component_1bcln","center":"confirmation__center_1bcln"};
|
|
59
59
|
require('./components/base-confirmation/index.css')
|
|
60
60
|
|
|
61
61
|
var confirmationScreens = {
|
|
@@ -65,7 +65,7 @@ var confirmationScreens = {
|
|
|
65
65
|
TEMP_BLOCK: components_screens_tempBlock_component.TempBlock,
|
|
66
66
|
};
|
|
67
67
|
var BaseConfirmation = function (_a) {
|
|
68
|
-
var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b, children = _a.children, _c = _a.requiredCharAmount, requiredCharAmount = _c === void 0 ? 5 : _c, _d = _a.countdownDuration, countdownDuration = _d === void 0 ? utils.ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? utils.ONE_DAY : _e, phone = _a.phone, blockSmsRetry = _a.blockSmsRetry, dataTestId = _a.dataTestId, className = _a.className, getScreensMap = _a.getScreensMap, onInputFinished = _a.onInputFinished, onChangeState = _a.onChangeState, onSmsRetryClick = _a.onSmsRetryClick, onChangeScreen = _a.onChangeScreen, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick, onTempBlockFinished = _a.onTempBlockFinished, mobile = _a.mobile, restProps = __rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished", "mobile"]);
|
|
68
|
+
var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b, children = _a.children, _c = _a.requiredCharAmount, requiredCharAmount = _c === void 0 ? 5 : _c, _d = _a.countdownDuration, countdownDuration = _d === void 0 ? utils.ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? utils.ONE_DAY : _e, phone = _a.phone, blockSmsRetry = _a.blockSmsRetry, dataTestId = _a.dataTestId, className = _a.className, getScreensMap = _a.getScreensMap, onInputFinished = _a.onInputFinished, onChangeState = _a.onChangeState, onSmsRetryClick = _a.onSmsRetryClick, onChangeScreen = _a.onChangeScreen, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick, onTempBlockFinished = _a.onTempBlockFinished, mobile = _a.mobile, clearCodeOnError = _a.clearCodeOnError, restProps = __rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished", "mobile", "clearCodeOnError"]);
|
|
69
69
|
var _f = utils.useCountdown(countdownDuration), timeLeft = _f[0], startTimer = _f[1], stopTimer = _f[2];
|
|
70
70
|
var prevState = hooks.usePrevious(state);
|
|
71
71
|
React.useEffect(function () {
|
|
@@ -115,6 +115,7 @@ var BaseConfirmation = function (_a) {
|
|
|
115
115
|
onTempBlockFinished: onTempBlockFinished,
|
|
116
116
|
onChangeState: onChangeState,
|
|
117
117
|
onChangeScreen: onChangeScreen,
|
|
118
|
+
clearCodeOnError: clearCodeOnError,
|
|
118
119
|
onInputFinished: handleInputFinished,
|
|
119
120
|
onSmsRetryClick: handleSmsRetry,
|
|
120
121
|
onFatalErrorOkButtonClick: handleFatalErrorOkButtonClick,
|
package/component.desktop.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_baseConfirmation_component = require('./component-
|
|
5
|
+
var components_baseConfirmation_component = require('./component-fdb34282.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/hooks');
|
|
@@ -15,7 +15,7 @@ require('@alfalab/core-components-link');
|
|
|
15
15
|
require('@alfalab/core-components-typography');
|
|
16
16
|
require('./components/header/component.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('./countdown-section-
|
|
18
|
+
require('./countdown-section-0b438545.js');
|
|
19
19
|
require('./components/screens/initial/component.js');
|
|
20
20
|
require('./components/screens/hint/component.js');
|
|
21
21
|
require('./components/screens/fatal-error/component.js');
|
package/component.mobile.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_baseConfirmation_component = require('./component-
|
|
5
|
+
var components_baseConfirmation_component = require('./component-fdb34282.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
require('@alfalab/hooks');
|
|
@@ -15,7 +15,7 @@ require('@alfalab/core-components-link');
|
|
|
15
15
|
require('@alfalab/core-components-typography');
|
|
16
16
|
require('./components/header/component.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('./countdown-section-
|
|
18
|
+
require('./countdown-section-0b438545.js');
|
|
19
19
|
require('./components/screens/initial/component.js');
|
|
20
20
|
require('./components/screens/hint/component.js');
|
|
21
21
|
require('./components/screens/fatal-error/component.js');
|
|
@@ -27,7 +27,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
27
27
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
28
28
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
29
29
|
|
|
30
|
-
var styles = {"container":"
|
|
30
|
+
var styles = {"container":"confirmation__container_1we27"};
|
|
31
31
|
require('./mobile.css')
|
|
32
32
|
|
|
33
33
|
var ConfirmationMobile = function (_a) {
|
package/component.responsive.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_baseConfirmation_component = require('./component-
|
|
5
|
+
var components_baseConfirmation_component = require('./component-fdb34282.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
var hooks = require('@alfalab/hooks');
|
|
@@ -15,7 +15,7 @@ require('@alfalab/core-components-link');
|
|
|
15
15
|
require('@alfalab/core-components-typography');
|
|
16
16
|
require('./components/header/component.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('./countdown-section-
|
|
18
|
+
require('./countdown-section-0b438545.js');
|
|
19
19
|
require('./components/screens/initial/component.js');
|
|
20
20
|
require('./components/screens/hint/component.js');
|
|
21
21
|
require('./components/screens/fatal-error/component.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_baseConfirmation_component = require('../../component-
|
|
5
|
+
var components_baseConfirmation_component = require('../../component-fdb34282.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/hooks');
|
|
@@ -15,7 +15,7 @@ require('@alfalab/core-components-link');
|
|
|
15
15
|
require('@alfalab/core-components-typography');
|
|
16
16
|
require('../header/component.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('../../countdown-section-
|
|
18
|
+
require('../../countdown-section-0b438545.js');
|
|
19
19
|
require('../screens/initial/component.js');
|
|
20
20
|
require('../screens/hint/component.js');
|
|
21
21
|
require('../screens/fatal-error/component.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ycuy */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.confirmation__component_1bcln {
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
width: 100%;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
margin: 0 auto;
|
|
19
19
|
color: var(--color-light-text-secondary);
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.confirmation__center_1bcln {
|
|
22
22
|
align-items: center;
|
|
23
23
|
text-align: center;
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-fdb34282";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_baseConfirmation_component = require('../../component-
|
|
5
|
+
var components_baseConfirmation_component = require('../../component-fdb34282.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/hooks');
|
|
@@ -15,7 +15,7 @@ require('@alfalab/core-components-link');
|
|
|
15
15
|
require('@alfalab/core-components-typography');
|
|
16
16
|
require('../header/component.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('../../countdown-section-
|
|
18
|
+
require('../../countdown-section-0b438545.js');
|
|
19
19
|
require('../screens/initial/component.js');
|
|
20
20
|
require('../screens/hint/component.js');
|
|
21
21
|
require('../screens/fatal-error/component.js');
|
|
@@ -8,7 +8,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
|
|
9
9
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
10
|
|
|
11
|
-
var styles = {"circle":"
|
|
11
|
+
var styles = {"circle":"confirmation__circle_10gju"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var SIZE = 16;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1534r */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-tertiary: #b6bcc3;
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.confirmation__circle_10gju {
|
|
14
14
|
fill: transparent;
|
|
15
15
|
stroke: var(--color-light-graphic-tertiary);
|
|
16
16
|
stroke-width: 2px;
|
|
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"header":"
|
|
14
|
+
var styles = {"header":"confirmation__header_1whfk","typography":"confirmation__typography_1whfk","typographyMobile":"confirmation__typographyMobile_1whfk"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var Header = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1wgon */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
/* header */
|
|
33
33
|
--confirmation-header-font-feature-settings: normal
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.confirmation__header_1whfk {
|
|
36
36
|
margin-bottom: var(--gap-xl);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.confirmation__typography_1whfk {
|
|
39
39
|
font-feature-settings: var(--confirmation-header-font-feature-settings);
|
|
40
40
|
font-size: var(--confirmation-header-desktop-font-size);
|
|
41
41
|
line-height: var(--confirmation-header-desktop-line-height);
|
|
42
42
|
font-weight: var(--confirmation-header-desktop-font-weight);
|
|
43
43
|
font-family: var(--confirmation-header-desktop-font-family);
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.confirmation__typographyMobile_1whfk {
|
|
46
46
|
font-feature-settings: var(--confirmation-header-font-feature-settings);
|
|
47
47
|
font-size: var(--confirmation-header-mobile-font-size);
|
|
48
48
|
line-height: var(--confirmation-header-mobile-line-height);
|
package/components/index.js
CHANGED
|
@@ -13,7 +13,7 @@ require('@alfalab/core-components-link');
|
|
|
13
13
|
require('@alfalab/core-components-typography');
|
|
14
14
|
require('./header/component.js');
|
|
15
15
|
require('@alfalab/core-components-loader');
|
|
16
|
-
require('../countdown-section-
|
|
16
|
+
require('../countdown-section-0b438545.js');
|
|
17
17
|
var components_screens_initial_component = require('./screens/initial/component.js');
|
|
18
18
|
var components_screens_hint_component = require('./screens/hint/component.js');
|
|
19
19
|
var components_screens_fatalError_component = require('./screens/fatal-error/component.js');
|
|
@@ -15,7 +15,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
16
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
17
17
|
|
|
18
|
-
var styles = {"typographyTheme":"
|
|
18
|
+
var styles = {"typographyTheme":"confirmation__typographyTheme_1giks","left":"confirmation__left_1giks","center":"confirmation__center_1giks","button":"confirmation__button_1giks"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
var FatalError = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 140kq */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
|
|
32
32
|
/* header */
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.confirmation__typographyTheme_1giks {
|
|
35
35
|
font-size: var(--confirmation-text-font-size);
|
|
36
36
|
line-height: var(--confirmation-text-line-height);
|
|
37
37
|
font-weight: var(--confirmation-text-font-weight);
|
|
38
38
|
font-family: var(--confirmation-text-font-family);
|
|
39
39
|
color: var(--confirmation-text-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.confirmation__left_1giks {
|
|
42
42
|
align-items: flex-start;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.confirmation__center_1giks {
|
|
45
45
|
align-items: center;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.confirmation__button_1giks {
|
|
48
48
|
margin-top: var(--gap-2xl);
|
|
49
49
|
}
|
|
@@ -16,7 +16,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
17
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
18
18
|
|
|
19
|
-
var styles = {"center":"
|
|
19
|
+
var styles = {"center":"confirmation__center_10fm0","hintWrap":"confirmation__hintWrap_10fm0","text":"confirmation__text_10fm0","typographyTheme":"confirmation__typographyTheme_10fm0","phonesWrap":"confirmation__phonesWrap_10fm0","phoneWrap":"confirmation__phoneWrap_10fm0","phoneLink":"confirmation__phoneLink_10fm0","hintButton":"confirmation__hintButton_10fm0","phoneContentMobile":"confirmation__phoneContentMobile_10fm0"};
|
|
20
20
|
require('./index.css')
|
|
21
21
|
|
|
22
22
|
var Hint = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1aym5 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -33,47 +33,47 @@
|
|
|
33
33
|
|
|
34
34
|
/* header */
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.confirmation__center_10fm0 .confirmation__hintWrap_10fm0 {
|
|
37
37
|
align-items: center;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.confirmation__hintWrap_10fm0 {
|
|
40
40
|
display: flex;
|
|
41
41
|
flex-direction: column;
|
|
42
42
|
align-items: flex-start
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.confirmation__hintWrap_10fm0 span:last-of-type {
|
|
45
45
|
margin-bottom: 0;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.confirmation__text_10fm0 {
|
|
48
48
|
margin-bottom: var(--gap-xl);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.confirmation__typographyTheme_10fm0 {
|
|
51
51
|
font-size: var(--confirmation-text-font-size);
|
|
52
52
|
line-height: var(--confirmation-text-line-height);
|
|
53
53
|
font-weight: var(--confirmation-text-font-weight);
|
|
54
54
|
font-family: var(--confirmation-text-font-family);
|
|
55
55
|
color: var(--confirmation-text-color);
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.confirmation__phonesWrap_10fm0 {
|
|
58
58
|
display: flex;
|
|
59
59
|
flex-direction: column;
|
|
60
60
|
margin-bottom: var(--gap-xl);
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.confirmation__phoneWrap_10fm0 {
|
|
63
63
|
margin-bottom: var(--gap-xs)
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
.confirmation__phoneWrap_10fm0:last-child {
|
|
66
66
|
margin-bottom: 0;
|
|
67
67
|
}
|
|
68
|
-
.
|
|
68
|
+
.confirmation__phoneLink_10fm0 {
|
|
69
69
|
font-size: 16px;
|
|
70
70
|
line-height: 24px;
|
|
71
71
|
font-weight: 500;
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.confirmation__hintButton_10fm0 {
|
|
74
74
|
margin-top: var(--gap-2xl);
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.confirmation__phoneContentMobile_10fm0 {
|
|
77
77
|
display: flex;
|
|
78
78
|
flex-direction: column;
|
|
79
79
|
align-items: center;
|
|
@@ -13,7 +13,7 @@ require('@alfalab/core-components-link');
|
|
|
13
13
|
require('@alfalab/core-components-typography');
|
|
14
14
|
require('../header/component.js');
|
|
15
15
|
require('@alfalab/core-components-loader');
|
|
16
|
-
require('../../countdown-section-
|
|
16
|
+
require('../../countdown-section-0b438545.js');
|
|
17
17
|
var components_screens_initial_component = require('./initial/component.js');
|
|
18
18
|
var components_screens_hint_component = require('./hint/component.js');
|
|
19
19
|
var components_screens_fatalError_component = require('./fatal-error/component.js');
|
|
@@ -13,7 +13,7 @@ var coreComponentsLink = require('@alfalab/core-components-link');
|
|
|
13
13
|
var coreComponentsTypography = require('@alfalab/core-components-typography');
|
|
14
14
|
var components_header_component = require('../../header/component.js');
|
|
15
15
|
require('@alfalab/core-components-loader');
|
|
16
|
-
var components_screens_initial_countdownSection = require('../../../countdown-section-
|
|
16
|
+
var components_screens_initial_countdownSection = require('../../../countdown-section-0b438545.js');
|
|
17
17
|
|
|
18
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
19
|
|
|
@@ -24,7 +24,7 @@ var CODE_SEND_HINT_VISIBLE_DURATION = 2000;
|
|
|
24
24
|
var Initial = function (_a) {
|
|
25
25
|
var _b;
|
|
26
26
|
var mobile = _a.mobile;
|
|
27
|
-
var _c = React.useContext(context.ConfirmationContext), state = _c.state, alignContent = _c.alignContent, texts = _c.texts, requiredCharAmount = _c.requiredCharAmount, timeLeft = _c.timeLeft, phone = _c.phone, onChangeState = _c.onChangeState, onInputFinished = _c.onInputFinished, onChangeScreen = _c.onChangeScreen, onSmsRetryClick = _c.onSmsRetryClick;
|
|
27
|
+
var _c = React.useContext(context.ConfirmationContext), state = _c.state, alignContent = _c.alignContent, texts = _c.texts, requiredCharAmount = _c.requiredCharAmount, timeLeft = _c.timeLeft, phone = _c.phone, clearCodeOnError = _c.clearCodeOnError, onChangeState = _c.onChangeState, onInputFinished = _c.onInputFinished, onChangeScreen = _c.onChangeScreen, onSmsRetryClick = _c.onSmsRetryClick;
|
|
28
28
|
var prevState = hooks.usePrevious(state);
|
|
29
29
|
var inputRef = React.useRef(null);
|
|
30
30
|
var _d = React.useState(false), codeSendHintVisible = _d[0], setCodeSendHintVisible = _d[1];
|
|
@@ -90,7 +90,7 @@ var Initial = function (_a) {
|
|
|
90
90
|
React__default['default'].createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn__default['default'](components_screens_initial_countdownSection.styles.phone, (_b = {}, _b[components_screens_initial_countdownSection.styles.typographyTheme] = !mobile, _b)) },
|
|
91
91
|
"\u041A\u043E\u0434 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D \u043D\u0430 ",
|
|
92
92
|
phone),
|
|
93
|
-
React__default['default'].createElement(coreComponentsCodeInput.CodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, className: cn__default['default'](components_screens_initial_countdownSection.styles.containerInput, components_screens_initial_countdownSection.styles.codeInput), onComplete: handleInputComplete, onChange: handleInputChange }),
|
|
93
|
+
React__default['default'].createElement(coreComponentsCodeInput.CodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, className: cn__default['default'](components_screens_initial_countdownSection.styles.containerInput, components_screens_initial_countdownSection.styles.codeInput), onComplete: handleInputComplete, onChange: handleInputChange, clearCodeOnError: clearCodeOnError }),
|
|
94
94
|
React__default['default'].createElement(components_screens_initial_countdownSection.CountdownSection, { processing: processing, timePassed: timePassed, codeSendHintVisible: codeSendHintVisible, handleSmsRetryClick: handleSmsRetryClick, mobile: mobile }),
|
|
95
95
|
mobile ? (React__default['default'].createElement(coreComponentsButton.Button, { onClick: handleSmsHintLinkClick, view: 'link', size: 'xs' }, texts.linkToHint)) : (React__default['default'].createElement(coreComponentsLink.Link, { onClick: handleSmsHintLinkClick, className: components_screens_initial_countdownSection.styles.smsComeLink, view: mobile ? 'primary' : 'secondary', pseudo: true }, texts.linkToHint))));
|
|
96
96
|
};
|
|
@@ -9,7 +9,7 @@ require('../../../context.js');
|
|
|
9
9
|
require('@alfalab/core-components-button');
|
|
10
10
|
require('@alfalab/core-components-typography');
|
|
11
11
|
require('@alfalab/core-components-loader');
|
|
12
|
-
var components_screens_initial_countdownSection = require('../../../countdown-section-
|
|
12
|
+
var components_screens_initial_countdownSection = require('../../../countdown-section-0b438545.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: njpgf */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
@@ -38,67 +38,67 @@
|
|
|
38
38
|
|
|
39
39
|
/* header */
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.confirmation__component_1yyyq {
|
|
42
42
|
display: flex;
|
|
43
43
|
flex-direction: column;
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.confirmation__typographyTheme_1yyyq {
|
|
46
46
|
font-size: var(--confirmation-text-font-size);
|
|
47
47
|
line-height: var(--confirmation-text-line-height);
|
|
48
48
|
font-weight: var(--confirmation-text-font-weight);
|
|
49
49
|
font-family: var(--confirmation-text-font-family);
|
|
50
50
|
color: var(--confirmation-text-color);
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.confirmation__phone_1yyyq {
|
|
53
53
|
color: var(--color-light-text-primary);
|
|
54
54
|
margin-bottom: var(--gap-2xl);
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.confirmation__compact_1yyyq {
|
|
57
57
|
margin-bottom: var(--gap-xl);
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.confirmation__loaderWrap_1yyyq {
|
|
60
60
|
display: flex;
|
|
61
61
|
align-items: center;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.confirmation__left_1yyyq {
|
|
64
64
|
align-items: flex-start;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.confirmation__center_1yyyq {
|
|
67
67
|
align-items: center;
|
|
68
68
|
text-align: center
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.confirmation__center_1yyyq .confirmation__loaderWrap_1yyyq {
|
|
71
71
|
justify-content: center;
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.confirmation__center_1yyyq input {
|
|
74
74
|
margin: 0 var(--gap-2xs);
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.confirmation__codeInput_1yyyq {
|
|
77
77
|
margin-bottom: var(--gap-s);
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.confirmation__smsComeLink_1yyyq {
|
|
80
80
|
font-size: 14px;
|
|
81
81
|
line-height: 20px;
|
|
82
82
|
font-weight: 500;
|
|
83
83
|
}
|
|
84
|
-
.
|
|
84
|
+
.confirmation__countdownContainer_1yyyq {
|
|
85
85
|
color: var(--color-light-text-secondary);
|
|
86
86
|
margin-bottom: var(--gap-xl);
|
|
87
87
|
}
|
|
88
|
-
.
|
|
88
|
+
.confirmation__countdownMobile_1yyyq {
|
|
89
89
|
margin-bottom: var(--gap-l);
|
|
90
90
|
}
|
|
91
|
-
.
|
|
91
|
+
.confirmation__countdownLoaderMobile_1yyyq {
|
|
92
92
|
margin-bottom: var(--gap-m);
|
|
93
93
|
}
|
|
94
|
-
.
|
|
94
|
+
.confirmation__getCodeButton_1yyyq {
|
|
95
95
|
position: relative;
|
|
96
96
|
top: var(--gap-2xs-neg);
|
|
97
97
|
margin-bottom: var(--gap-m);
|
|
98
98
|
}
|
|
99
|
-
.
|
|
99
|
+
.confirmation__getCodeButtonMobile_1yyyq {
|
|
100
100
|
margin-bottom: 0;
|
|
101
101
|
}
|
|
102
|
-
.
|
|
102
|
+
.confirmation__containerInput_1yyyq {
|
|
103
103
|
min-height: 80px;
|
|
104
104
|
}
|
|
@@ -13,7 +13,7 @@ require('@alfalab/core-components-link');
|
|
|
13
13
|
require('@alfalab/core-components-typography');
|
|
14
14
|
require('../../header/component.js');
|
|
15
15
|
require('@alfalab/core-components-loader');
|
|
16
|
-
require('../../../countdown-section-
|
|
16
|
+
require('../../../countdown-section-0b438545.js');
|
|
17
17
|
var components_screens_initial_component = require('./component.js');
|
|
18
18
|
|
|
19
19
|
|
|
@@ -15,7 +15,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
16
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
17
17
|
|
|
18
|
-
var styles = {"typographyTheme":"
|
|
18
|
+
var styles = {"typographyTheme":"confirmation__typographyTheme_1p9az","description":"confirmation__description_1p9az","countdownWrap":"confirmation__countdownWrap_1p9az","loader":"confirmation__loader_1p9az"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
var TempBlock = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 63py9 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
|
|
32
32
|
/* header */
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.confirmation__typographyTheme_1p9az {
|
|
35
35
|
font-size: var(--confirmation-text-font-size);
|
|
36
36
|
line-height: var(--confirmation-text-line-height);
|
|
37
37
|
font-weight: var(--confirmation-text-font-weight);
|
|
38
38
|
font-family: var(--confirmation-text-font-family);
|
|
39
39
|
color: var(--confirmation-text-color);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.confirmation__description_1p9az {
|
|
42
42
|
margin-bottom: var(--gap-xs);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.confirmation__countdownWrap_1p9az {
|
|
45
45
|
display: flex;
|
|
46
46
|
align-items: center;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.confirmation__loader_1p9az {
|
|
49
49
|
margin-right: var(--gap-xs);
|
|
50
50
|
}
|
|
File without changes
|
|
@@ -13,7 +13,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"
|
|
16
|
+
var styles = {"component":"confirmation__component_1yyyq","typographyTheme":"confirmation__typographyTheme_1yyyq","phone":"confirmation__phone_1yyyq","compact":"confirmation__compact_1yyyq","loaderWrap":"confirmation__loaderWrap_1yyyq","left":"confirmation__left_1yyyq","center":"confirmation__center_1yyyq","codeInput":"confirmation__codeInput_1yyyq","smsComeLink":"confirmation__smsComeLink_1yyyq","countdownContainer":"confirmation__countdownContainer_1yyyq","countdownMobile":"confirmation__countdownMobile_1yyyq","countdownLoaderMobile":"confirmation__countdownLoaderMobile_1yyyq","getCodeButton":"confirmation__getCodeButton_1yyyq","getCodeButtonMobile":"confirmation__getCodeButtonMobile_1yyyq","containerInput":"confirmation__containerInput_1yyyq"};
|
|
17
17
|
require('./components/screens/initial/index.css')
|
|
18
18
|
|
|
19
19
|
var CountdownSection = function (_a) {
|
|
File without changes
|
|
@@ -64,7 +64,7 @@ var confirmationScreens = {
|
|
|
64
64
|
TEMP_BLOCK: components_screens_tempBlock_component.TempBlock,
|
|
65
65
|
};
|
|
66
66
|
var BaseConfirmation = function (_a) {
|
|
67
|
-
var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b, children = _a.children, _c = _a.requiredCharAmount, requiredCharAmount = _c === void 0 ? 5 : _c, _d = _a.countdownDuration, countdownDuration = _d === void 0 ? utils.ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? utils.ONE_DAY : _e, phone = _a.phone, blockSmsRetry = _a.blockSmsRetry, dataTestId = _a.dataTestId, className = _a.className, getScreensMap = _a.getScreensMap, onInputFinished = _a.onInputFinished, onChangeState = _a.onChangeState, onSmsRetryClick = _a.onSmsRetryClick, onChangeScreen = _a.onChangeScreen, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick, onTempBlockFinished = _a.onTempBlockFinished, mobile = _a.mobile, restProps = __rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished", "mobile"]);
|
|
67
|
+
var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b, children = _a.children, _c = _a.requiredCharAmount, requiredCharAmount = _c === void 0 ? 5 : _c, _d = _a.countdownDuration, countdownDuration = _d === void 0 ? utils.ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? utils.ONE_DAY : _e, phone = _a.phone, blockSmsRetry = _a.blockSmsRetry, dataTestId = _a.dataTestId, className = _a.className, getScreensMap = _a.getScreensMap, onInputFinished = _a.onInputFinished, onChangeState = _a.onChangeState, onSmsRetryClick = _a.onSmsRetryClick, onChangeScreen = _a.onChangeScreen, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick, onTempBlockFinished = _a.onTempBlockFinished, mobile = _a.mobile, clearCodeOnError = _a.clearCodeOnError, restProps = __rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished", "mobile", "clearCodeOnError"]);
|
|
68
68
|
var _f = utils.useCountdown(countdownDuration), timeLeft = _f[0], startTimer = _f[1], stopTimer = _f[2];
|
|
69
69
|
var prevState = hooks.usePrevious(state);
|
|
70
70
|
React.useEffect(function () {
|
|
@@ -114,6 +114,7 @@ var BaseConfirmation = function (_a) {
|
|
|
114
114
|
onTempBlockFinished: onTempBlockFinished,
|
|
115
115
|
onChangeState: onChangeState,
|
|
116
116
|
onChangeScreen: onChangeScreen,
|
|
117
|
+
clearCodeOnError: clearCodeOnError,
|
|
117
118
|
onInputFinished: handleInputFinished,
|
|
118
119
|
onSmsRetryClick: handleSmsRetry,
|
|
119
120
|
onFatalErrorOkButtonClick: handleFatalErrorOkButtonClick,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_baseConfirmation_component = require('./component-
|
|
5
|
+
var components_baseConfirmation_component = require('./component-cbe72bf1.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/hooks');
|
package/cssm/component.mobile.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_baseConfirmation_component = require('./component-
|
|
5
|
+
var components_baseConfirmation_component = require('./component-cbe72bf1.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
require('@alfalab/hooks');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_baseConfirmation_component = require('./component-
|
|
5
|
+
var components_baseConfirmation_component = require('./component-cbe72bf1.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
var hooks = require('@alfalab/hooks');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_baseConfirmation_component = require('../../component-
|
|
5
|
+
var components_baseConfirmation_component = require('../../component-cbe72bf1.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/hooks');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-cbe72bf1";
|