@alfalab/core-components-confirmation 12.4.7 → 12.4.9
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.desktop.js +4 -3
- package/component.mobile.js +6 -5
- package/component.responsive.js +5 -4
- package/components/base-confirmation/component.d.ts +4 -0
- package/components/base-confirmation/component.js +87 -13
- package/components/base-confirmation/index.css +2 -2
- package/components/base-confirmation/index.d.ts +1 -1
- package/components/base-confirmation/index.js +3 -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 +6 -6
- 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 +1 -1
- 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 +7 -7
- package/{countdown-section-94a35216.d.ts → countdown-section-784df003.d.ts} +0 -0
- package/{countdown-section-94a35216.js → countdown-section-784df003.js} +1 -1
- package/cssm/component.desktop.js +3 -2
- package/cssm/component.mobile.js +4 -3
- package/cssm/component.responsive.js +4 -3
- package/cssm/components/base-confirmation/component.d.ts +4 -0
- package/cssm/components/base-confirmation/component.js +85 -13
- package/cssm/components/base-confirmation/index.d.ts +1 -1
- package/cssm/components/base-confirmation/index.js +2 -1
- package/cssm/desktop.js +2 -1
- package/cssm/index.js +2 -1
- package/cssm/mobile.js +2 -1
- package/cssm/responsive.js +4 -3
- package/desktop.js +3 -2
- package/esm/component.desktop.js +3 -2
- package/esm/component.mobile.js +4 -3
- package/esm/component.responsive.js +3 -2
- package/esm/components/base-confirmation/component.d.ts +4 -0
- package/esm/components/base-confirmation/component.js +85 -12
- package/esm/components/base-confirmation/index.css +2 -2
- package/esm/components/base-confirmation/index.d.ts +1 -1
- package/esm/components/base-confirmation/index.js +3 -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 +6 -6
- 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 +1 -1
- 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 +7 -7
- package/esm/{countdown-section-1560b6e0.d.ts → countdown-section-b5a76e1e.d.ts} +0 -0
- package/esm/{countdown-section-1560b6e0.js → countdown-section-b5a76e1e.js} +1 -1
- package/esm/desktop.js +3 -2
- package/esm/index.js +3 -2
- package/esm/mobile.css +2 -2
- package/esm/mobile.js +3 -2
- package/esm/responsive.js +5 -4
- package/index.js +3 -2
- package/mobile.css +2 -2
- package/mobile.js +3 -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 +2 -2
- package/modern/components/base-confirmation/index.css +2 -2
- 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 +6 -6
- 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 +1 -1
- 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 +7 -7
- package/modern/{countdown-section-b0b34939.d.ts → countdown-section-3ccbe0d1.d.ts} +0 -0
- package/modern/{countdown-section-b0b34939.js → countdown-section-3ccbe0d1.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/package.json +8 -7
- package/responsive.js +5 -4
- package/component-adbf9996.d.ts +0 -37
- package/component-adbf9996.js +0 -130
- package/cssm/component-3c591970.d.ts +0 -37
- package/cssm/component-3c591970.js +0 -129
- package/esm/component-8d44589b.d.ts +0 -37
- package/esm/component-8d44589b.js +0 -122
package/component.desktop.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
var components_baseConfirmation_component = require('./components/base-confirmation/component.js');
|
|
5
6
|
require('classnames');
|
|
6
7
|
require('@alfalab/hooks');
|
|
7
8
|
require('./context.js');
|
|
@@ -13,7 +14,7 @@ require('@alfalab/core-components-code-input');
|
|
|
13
14
|
require('@alfalab/core-components-link');
|
|
14
15
|
require('@alfalab/core-components-typography');
|
|
15
16
|
require('./components/header/component.js');
|
|
16
|
-
require('./countdown-section-
|
|
17
|
+
require('./countdown-section-784df003.js');
|
|
17
18
|
require('@alfalab/core-components-loader');
|
|
18
19
|
require('./components/screens/hint/component.js');
|
|
19
20
|
require('./components/screens/fatal-error/component.js');
|
|
@@ -24,6 +25,6 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
24
25
|
|
|
25
26
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
27
|
|
|
27
|
-
var ConfirmationDesktop = function (props) { return (React__default.default.createElement(components_baseConfirmation_component.BaseConfirmation,
|
|
28
|
+
var ConfirmationDesktop = function (props) { return (React__default.default.createElement(components_baseConfirmation_component.BaseConfirmation, tslib.__assign({}, props))); };
|
|
28
29
|
|
|
29
30
|
exports.ConfirmationDesktop = ConfirmationDesktop;
|
package/component.mobile.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
|
+
var components_baseConfirmation_component = require('./components/base-confirmation/component.js');
|
|
6
7
|
require('@alfalab/hooks');
|
|
7
8
|
require('./context.js');
|
|
8
9
|
require('./utils.js');
|
|
@@ -13,7 +14,7 @@ require('@alfalab/core-components-code-input');
|
|
|
13
14
|
require('@alfalab/core-components-link');
|
|
14
15
|
require('@alfalab/core-components-typography');
|
|
15
16
|
require('./components/header/component.js');
|
|
16
|
-
require('./countdown-section-
|
|
17
|
+
require('./countdown-section-784df003.js');
|
|
17
18
|
require('@alfalab/core-components-loader');
|
|
18
19
|
require('./components/screens/hint/component.js');
|
|
19
20
|
require('./components/screens/fatal-error/component.js');
|
|
@@ -25,12 +26,12 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
25
26
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
27
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
27
28
|
|
|
28
|
-
var styles = {"container":"
|
|
29
|
+
var styles = {"container":"confirmation__container_nn4ds"};
|
|
29
30
|
require('./mobile.css')
|
|
30
31
|
|
|
31
32
|
var ConfirmationMobile = function (_a) {
|
|
32
|
-
var className = _a.className, resProps =
|
|
33
|
-
return (React__default.default.createElement(components_baseConfirmation_component.BaseConfirmation,
|
|
33
|
+
var className = _a.className, resProps = tslib.__rest(_a, ["className"]);
|
|
34
|
+
return (React__default.default.createElement(components_baseConfirmation_component.BaseConfirmation, tslib.__assign({ mobile: true, className: cn__default.default(className, styles.container) }, resProps)));
|
|
34
35
|
};
|
|
35
36
|
|
|
36
37
|
exports.ConfirmationMobile = ConfirmationMobile;
|
package/component.responsive.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var hooks = require('@alfalab/hooks');
|
|
6
6
|
var component_desktop = require('./component.desktop.js');
|
|
7
7
|
var component_mobile = require('./component.mobile.js');
|
|
8
|
+
require('./components/base-confirmation/component.js');
|
|
8
9
|
require('classnames');
|
|
9
10
|
require('./context.js');
|
|
10
11
|
require('./utils.js');
|
|
@@ -15,7 +16,7 @@ require('@alfalab/core-components-code-input');
|
|
|
15
16
|
require('@alfalab/core-components-link');
|
|
16
17
|
require('@alfalab/core-components-typography');
|
|
17
18
|
require('./components/header/component.js');
|
|
18
|
-
require('./countdown-section-
|
|
19
|
+
require('./countdown-section-784df003.js');
|
|
19
20
|
require('@alfalab/core-components-loader');
|
|
20
21
|
require('./components/screens/hint/component.js');
|
|
21
22
|
require('./components/screens/fatal-error/component.js');
|
|
@@ -27,12 +28,12 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
27
28
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
28
29
|
|
|
29
30
|
var ConfirmationResponsive = function (_a) {
|
|
30
|
-
var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps =
|
|
31
|
+
var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib.__rest(_a, ["breakpoint"]);
|
|
31
32
|
var view = hooks.useMedia([
|
|
32
33
|
['mobile', "(max-width: ".concat(breakpoint - 1, "px)")],
|
|
33
34
|
['desktop', "(min-width: ".concat(breakpoint, "px)")],
|
|
34
35
|
], 'desktop')[0];
|
|
35
|
-
return view === 'desktop' ? (React__default.default.createElement(component_desktop.ConfirmationDesktop,
|
|
36
|
+
return view === 'desktop' ? (React__default.default.createElement(component_desktop.ConfirmationDesktop, tslib.__assign({}, restProps))) : (React__default.default.createElement(component_mobile.ConfirmationMobile, tslib.__assign({}, restProps)));
|
|
36
37
|
};
|
|
37
38
|
|
|
38
39
|
exports.ConfirmationResponsive = ConfirmationResponsive;
|
|
@@ -1,25 +1,99 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('react');
|
|
5
|
-
require('classnames');
|
|
6
|
-
require('@alfalab/hooks');
|
|
7
|
-
require('../../context.js');
|
|
8
|
-
require('../../types.js');
|
|
9
|
-
require('../../utils.js');
|
|
10
|
-
require('../screens/initial/component.js');
|
|
11
|
-
require('../screens/hint/component.js');
|
|
12
|
-
require('../screens/fatal-error/component.js');
|
|
13
|
-
require('../screens/temp-block/component.js');
|
|
3
|
+
var tslib = require('tslib');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var cn = require('classnames');
|
|
6
|
+
var hooks = require('@alfalab/hooks');
|
|
7
|
+
var context = require('../../context.js');
|
|
8
|
+
var types = require('../../types.js');
|
|
9
|
+
var utils = require('../../utils.js');
|
|
10
|
+
var components_screens_initial_component = require('../screens/initial/component.js');
|
|
11
|
+
var components_screens_hint_component = require('../screens/hint/component.js');
|
|
12
|
+
var components_screens_fatalError_component = require('../screens/fatal-error/component.js');
|
|
13
|
+
var components_screens_tempBlock_component = require('../screens/temp-block/component.js');
|
|
14
14
|
require('@alfalab/core-components-button');
|
|
15
15
|
require('@alfalab/core-components-code-input');
|
|
16
16
|
require('@alfalab/core-components-link');
|
|
17
17
|
require('@alfalab/core-components-typography');
|
|
18
18
|
require('../header/component.js');
|
|
19
|
-
require('../../countdown-section-
|
|
19
|
+
require('../../countdown-section-784df003.js');
|
|
20
20
|
require('@alfalab/core-components-loader');
|
|
21
21
|
require('../countdown-loader/component.js');
|
|
22
22
|
|
|
23
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
23
24
|
|
|
25
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
var styles = {"component":"confirmation__component_kzbhu"};
|
|
29
|
+
require('./index.css')
|
|
30
|
+
|
|
31
|
+
var confirmationScreens = {
|
|
32
|
+
INITIAL: components_screens_initial_component.Initial,
|
|
33
|
+
HINT: components_screens_hint_component.Hint,
|
|
34
|
+
FATAL_ERROR: components_screens_fatalError_component.FatalError,
|
|
35
|
+
TEMP_BLOCK: components_screens_tempBlock_component.TempBlock,
|
|
36
|
+
};
|
|
37
|
+
var BaseConfirmation = function (_a) {
|
|
38
|
+
var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b; _a.children; var _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, _f = _a.clearCodeOnError, clearCodeOnError = _f === void 0 ? true : _f, restProps = tslib.__rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished", "mobile", "clearCodeOnError"]);
|
|
39
|
+
var _g = utils.useCountdown(countdownDuration), timeLeft = _g[0], startTimer = _g[1], stopTimer = _g[2];
|
|
40
|
+
var prevState = hooks.usePrevious(state);
|
|
41
|
+
React.useEffect(function () {
|
|
42
|
+
startTimer();
|
|
43
|
+
}, [startTimer]);
|
|
44
|
+
React.useEffect(function () {
|
|
45
|
+
/**
|
|
46
|
+
* Перезапускаем таймер после повторного запроса кода
|
|
47
|
+
*/
|
|
48
|
+
if (state === 'INITIAL' && prevState === 'CODE_SENDING') {
|
|
49
|
+
startTimer();
|
|
50
|
+
}
|
|
51
|
+
}, [state, prevState, startTimer]);
|
|
52
|
+
React.useEffect(function () {
|
|
53
|
+
/**
|
|
54
|
+
* Останавливаем таймер, если новый экран/состояние не содержит таймер
|
|
55
|
+
*/
|
|
56
|
+
if (!['INITIAL', 'HINT', 'TEMP_BLOCK'].includes(screen) || blockSmsRetry) {
|
|
57
|
+
stopTimer();
|
|
58
|
+
}
|
|
59
|
+
}, [state, screen, blockSmsRetry, stopTimer]);
|
|
60
|
+
var handleSmsRetry = function () {
|
|
61
|
+
onChangeState('CODE_SENDING');
|
|
62
|
+
onSmsRetryClick();
|
|
63
|
+
};
|
|
64
|
+
var handleInputFinished = function (code) {
|
|
65
|
+
onChangeState('CODE_CHECKING');
|
|
66
|
+
onInputFinished(code);
|
|
67
|
+
};
|
|
68
|
+
var handleFatalErrorOkButtonClick = function () {
|
|
69
|
+
if (onFatalErrorOkButtonClick) {
|
|
70
|
+
onFatalErrorOkButtonClick();
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
|
74
|
+
var contextValue = {
|
|
75
|
+
alignContent: alignContent,
|
|
76
|
+
texts: tslib.__assign(tslib.__assign({}, types.defaultTexts), restProps.texts),
|
|
77
|
+
state: state,
|
|
78
|
+
screen: screen,
|
|
79
|
+
requiredCharAmount: requiredCharAmount,
|
|
80
|
+
countdownDuration: countdownDuration,
|
|
81
|
+
timeLeft: timeLeft,
|
|
82
|
+
tempBlockDuration: tempBlockDuration,
|
|
83
|
+
phone: phone,
|
|
84
|
+
blockSmsRetry: blockSmsRetry,
|
|
85
|
+
onTempBlockFinished: onTempBlockFinished,
|
|
86
|
+
onChangeState: onChangeState,
|
|
87
|
+
onChangeScreen: onChangeScreen,
|
|
88
|
+
clearCodeOnError: clearCodeOnError,
|
|
89
|
+
onInputFinished: handleInputFinished,
|
|
90
|
+
onSmsRetryClick: handleSmsRetry,
|
|
91
|
+
onFatalErrorOkButtonClick: handleFatalErrorOkButtonClick,
|
|
92
|
+
};
|
|
93
|
+
var screensMap = getScreensMap ? getScreensMap(confirmationScreens) : confirmationScreens;
|
|
94
|
+
var CurrentScreen = screensMap[screen];
|
|
95
|
+
return (React__default.default.createElement(context.ConfirmationContext.Provider, { value: contextValue },
|
|
96
|
+
React__default.default.createElement("div", { className: cn__default.default(styles.component, className), "data-test-id": dataTestId }, CurrentScreen && React__default.default.createElement(CurrentScreen, { mobile: mobile }))));
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
exports.BaseConfirmation = BaseConfirmation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1u90w */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .confirmation__component_kzbhu {
|
|
19
19
|
width: 100%;
|
|
20
20
|
max-width: 388px;
|
|
21
21
|
margin: 0 auto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "./component";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var components_baseConfirmation_component = require('
|
|
3
|
+
var components_baseConfirmation_component = require('./component.js');
|
|
4
|
+
require('tslib');
|
|
4
5
|
require('react');
|
|
5
6
|
require('classnames');
|
|
6
7
|
require('@alfalab/hooks');
|
|
@@ -13,7 +14,7 @@ require('@alfalab/core-components-code-input');
|
|
|
13
14
|
require('@alfalab/core-components-link');
|
|
14
15
|
require('@alfalab/core-components-typography');
|
|
15
16
|
require('../header/component.js');
|
|
16
|
-
require('../../countdown-section-
|
|
17
|
+
require('../../countdown-section-784df003.js');
|
|
17
18
|
require('@alfalab/core-components-loader');
|
|
18
19
|
require('../screens/hint/component.js');
|
|
19
20
|
require('../screens/fatal-error/component.js');
|
|
@@ -6,7 +6,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
6
6
|
|
|
7
7
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
8
|
|
|
9
|
-
var styles = {"circle":"
|
|
9
|
+
var styles = {"circle":"confirmation__circle_168oo"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var SIZE = 16;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: c4kcl */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-tertiary: #b6bcc3;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .confirmation__circle_168oo {
|
|
19
19
|
fill: transparent;
|
|
20
20
|
stroke: var(--color-light-graphic-tertiary);
|
|
21
21
|
stroke-width: 2px;
|
|
@@ -9,7 +9,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
10
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
11
11
|
|
|
12
|
-
var styles = {"header":"
|
|
12
|
+
var styles = {"header":"confirmation__header_qenrm","typography":"confirmation__typography_qenrm","typographyMobile":"confirmation__typographyMobile_qenrm"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
var Header = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: y6rl2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
|
|
35
35
|
/* header */
|
|
36
36
|
--confirmation-header-font-feature-settings: normal
|
|
37
|
-
} .
|
|
37
|
+
} .confirmation__header_qenrm.confirmation__header_qenrm {
|
|
38
38
|
margin-bottom: var(--gap-xl);
|
|
39
|
-
} .
|
|
39
|
+
} .confirmation__typography_qenrm.confirmation__typography_qenrm {
|
|
40
40
|
font-feature-settings: var(--confirmation-header-font-feature-settings);
|
|
41
41
|
font-size: var(--confirmation-header-desktop-font-size);
|
|
42
42
|
line-height: var(--confirmation-header-desktop-line-height);
|
|
43
43
|
font-weight: var(--confirmation-header-desktop-font-weight);
|
|
44
44
|
font-family: var(--confirmation-header-desktop-font-family);
|
|
45
|
-
} .
|
|
45
|
+
} .confirmation__typographyMobile_qenrm.confirmation__typographyMobile_qenrm {
|
|
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
|
@@ -15,7 +15,7 @@ require('@alfalab/hooks');
|
|
|
15
15
|
require('../context.js');
|
|
16
16
|
require('../utils.js');
|
|
17
17
|
require('./header/component.js');
|
|
18
|
-
require('../countdown-section-
|
|
18
|
+
require('../countdown-section-784df003.js');
|
|
19
19
|
require('@alfalab/core-components-loader');
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"
|
|
16
|
+
var styles = {"component":"confirmation__component_107nq","typographyTheme":"confirmation__typographyTheme_107nq","left":"confirmation__left_107nq","center":"confirmation__center_107nq","button":"confirmation__button_107nq"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var FatalError = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 17zrj */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
32
32
|
|
|
33
33
|
/* header */
|
|
34
|
-
} .
|
|
34
|
+
} .confirmation__component_107nq {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
} .
|
|
37
|
+
} .confirmation__typographyTheme_107nq.confirmation__typographyTheme_107nq {
|
|
38
38
|
font-size: var(--confirmation-text-font-size);
|
|
39
39
|
line-height: var(--confirmation-text-line-height);
|
|
40
40
|
font-weight: var(--confirmation-text-font-weight);
|
|
41
41
|
font-family: var(--confirmation-text-font-family);
|
|
42
42
|
color: var(--confirmation-text-color);
|
|
43
|
-
} .
|
|
43
|
+
} .confirmation__left_107nq {
|
|
44
44
|
align-items: flex-start;
|
|
45
|
-
} .
|
|
45
|
+
} .confirmation__center_107nq {
|
|
46
46
|
align-items: center;
|
|
47
47
|
text-align: center;
|
|
48
|
-
} .
|
|
48
|
+
} .confirmation__button_107nq {
|
|
49
49
|
margin-top: var(--gap-2xl);
|
|
50
50
|
}
|
|
@@ -14,7 +14,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
15
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
16
16
|
|
|
17
|
-
var styles = {"component":"
|
|
17
|
+
var styles = {"component":"confirmation__component_1g700","center":"confirmation__center_1g700","text":"confirmation__text_1g700","typographyTheme":"confirmation__typographyTheme_1g700","phonesWrap":"confirmation__phonesWrap_1g700","phoneWrap":"confirmation__phoneWrap_1g700","phoneLink":"confirmation__phoneLink_1g700","hintButton":"confirmation__hintButton_1g700","phoneContentMobile":"confirmation__phoneContentMobile_1g700"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var Hint = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1unc0 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -33,38 +33,38 @@
|
|
|
33
33
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
34
34
|
|
|
35
35
|
/* header */
|
|
36
|
-
} .
|
|
36
|
+
} .confirmation__component_1g700 {
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: column;
|
|
39
39
|
align-items: flex-start
|
|
40
|
-
} .
|
|
40
|
+
} .confirmation__component_1g700 span:last-of-type {
|
|
41
41
|
margin-bottom: 0;
|
|
42
|
-
} .
|
|
42
|
+
} .confirmation__center_1g700 {
|
|
43
43
|
align-items: center;
|
|
44
44
|
text-align: center;
|
|
45
|
-
} .
|
|
45
|
+
} .confirmation__text_1g700.confirmation__text_1g700 {
|
|
46
46
|
margin-bottom: var(--gap-xl);
|
|
47
|
-
} .
|
|
47
|
+
} .confirmation__typographyTheme_1g700.confirmation__typographyTheme_1g700 {
|
|
48
48
|
font-size: var(--confirmation-text-font-size);
|
|
49
49
|
line-height: var(--confirmation-text-line-height);
|
|
50
50
|
font-weight: var(--confirmation-text-font-weight);
|
|
51
51
|
font-family: var(--confirmation-text-font-family);
|
|
52
52
|
color: var(--confirmation-text-color);
|
|
53
|
-
} .
|
|
53
|
+
} .confirmation__phonesWrap_1g700 {
|
|
54
54
|
display: flex;
|
|
55
55
|
flex-direction: column;
|
|
56
56
|
margin-bottom: var(--gap-xl);
|
|
57
|
-
} .
|
|
57
|
+
} .confirmation__phoneWrap_1g700 {
|
|
58
58
|
margin-bottom: var(--gap-xs)
|
|
59
|
-
} .
|
|
59
|
+
} .confirmation__phoneWrap_1g700:last-child {
|
|
60
60
|
margin-bottom: 0;
|
|
61
|
-
} .
|
|
61
|
+
} .confirmation__phoneLink_1g700.confirmation__phoneLink_1g700 {
|
|
62
62
|
font-size: 16px;
|
|
63
63
|
line-height: 24px;
|
|
64
64
|
font-weight: 500;
|
|
65
|
-
} .
|
|
65
|
+
} .confirmation__hintButton_1g700 {
|
|
66
66
|
margin-top: var(--gap-2xl);
|
|
67
|
-
} .
|
|
67
|
+
} .confirmation__phoneContentMobile_1g700 {
|
|
68
68
|
display: flex;
|
|
69
69
|
flex-direction: column;
|
|
70
70
|
align-items: center;
|
|
@@ -14,7 +14,7 @@ require('@alfalab/hooks');
|
|
|
14
14
|
require('../../context.js');
|
|
15
15
|
require('../../utils.js');
|
|
16
16
|
require('../header/component.js');
|
|
17
|
-
require('../../countdown-section-
|
|
17
|
+
require('../../countdown-section-784df003.js');
|
|
18
18
|
require('@alfalab/core-components-loader');
|
|
19
19
|
require('../countdown-loader/component.js');
|
|
20
20
|
|
|
@@ -9,7 +9,7 @@ var coreComponentsTypography = require('@alfalab/core-components-typography');
|
|
|
9
9
|
var hooks = require('@alfalab/hooks');
|
|
10
10
|
var context = require('../../../context.js');
|
|
11
11
|
var components_header_component = require('../../header/component.js');
|
|
12
|
-
var components_screens_initial_countdownSection = require('../../../countdown-section-
|
|
12
|
+
var components_screens_initial_countdownSection = require('../../../countdown-section-784df003.js');
|
|
13
13
|
require('../../../utils.js');
|
|
14
14
|
require('@alfalab/core-components-loader');
|
|
15
15
|
|
|
@@ -7,7 +7,7 @@ require('@alfalab/core-components-loader');
|
|
|
7
7
|
require('@alfalab/core-components-typography');
|
|
8
8
|
require('../../../context.js');
|
|
9
9
|
require('../../../utils.js');
|
|
10
|
-
var components_screens_initial_countdownSection = require('../../../countdown-section-
|
|
10
|
+
var components_screens_initial_countdownSection = require('../../../countdown-section-784df003.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: fi51q */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -38,51 +38,51 @@
|
|
|
38
38
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
39
39
|
|
|
40
40
|
/* header */
|
|
41
|
-
} .
|
|
41
|
+
} .confirmation__component_gszlg {
|
|
42
42
|
display: flex;
|
|
43
43
|
flex-direction: column;
|
|
44
|
-
} .
|
|
44
|
+
} .confirmation__typographyTheme_gszlg.confirmation__typographyTheme_gszlg {
|
|
45
45
|
font-size: var(--confirmation-text-font-size);
|
|
46
46
|
line-height: var(--confirmation-text-line-height);
|
|
47
47
|
font-weight: var(--confirmation-text-font-weight);
|
|
48
48
|
font-family: var(--confirmation-text-font-family);
|
|
49
49
|
color: var(--confirmation-text-color);
|
|
50
|
-
} .
|
|
50
|
+
} .confirmation__phone_gszlg.confirmation__phone_gszlg {
|
|
51
51
|
color: var(--color-light-text-primary);
|
|
52
52
|
margin-bottom: var(--gap-2xl);
|
|
53
|
-
} .
|
|
53
|
+
} .confirmation__compact_gszlg {
|
|
54
54
|
margin-bottom: var(--gap-xl);
|
|
55
|
-
} .
|
|
55
|
+
} .confirmation__loaderWrap_gszlg {
|
|
56
56
|
display: flex;
|
|
57
57
|
align-items: center;
|
|
58
|
-
} .
|
|
58
|
+
} .confirmation__left_gszlg {
|
|
59
59
|
align-items: flex-start;
|
|
60
|
-
} .
|
|
60
|
+
} .confirmation__center_gszlg {
|
|
61
61
|
align-items: center;
|
|
62
62
|
text-align: center
|
|
63
|
-
} .
|
|
63
|
+
} .confirmation__center_gszlg .confirmation__loaderWrap_gszlg {
|
|
64
64
|
justify-content: center;
|
|
65
|
-
} .
|
|
65
|
+
} .confirmation__center_gszlg input {
|
|
66
66
|
margin: 0 var(--gap-2xs);
|
|
67
|
-
} .
|
|
67
|
+
} .confirmation__codeInput_gszlg {
|
|
68
68
|
margin-bottom: var(--gap-s);
|
|
69
|
-
} .
|
|
69
|
+
} .confirmation__smsComeLink_gszlg.confirmation__smsComeLink_gszlg {
|
|
70
70
|
font-size: 14px;
|
|
71
71
|
line-height: 20px;
|
|
72
72
|
font-weight: 500;
|
|
73
|
-
} .
|
|
73
|
+
} .confirmation__countdownContainer_gszlg.confirmation__countdownContainer_gszlg {
|
|
74
74
|
color: var(--color-light-text-secondary);
|
|
75
75
|
margin-bottom: var(--gap-xl);
|
|
76
|
-
} .
|
|
76
|
+
} .confirmation__countdownMobile_gszlg.confirmation__countdownMobile_gszlg {
|
|
77
77
|
margin-bottom: var(--gap-l);
|
|
78
|
-
} .
|
|
78
|
+
} .confirmation__countdownLoaderMobile_gszlg.confirmation__countdownLoaderMobile_gszlg {
|
|
79
79
|
margin-bottom: var(--gap-m);
|
|
80
|
-
} .
|
|
80
|
+
} .confirmation__getCodeButton_gszlg {
|
|
81
81
|
position: relative;
|
|
82
82
|
top: var(--gap-2xs-neg);
|
|
83
83
|
margin-bottom: var(--gap-m);
|
|
84
|
-
} .
|
|
84
|
+
} .confirmation__getCodeButtonMobile_gszlg {
|
|
85
85
|
margin-bottom: 0;
|
|
86
|
-
} .
|
|
86
|
+
} .confirmation__containerInput_gszlg {
|
|
87
87
|
min-height: 80px;
|
|
88
88
|
}
|
|
@@ -11,7 +11,7 @@ require('@alfalab/hooks');
|
|
|
11
11
|
require('../../../context.js');
|
|
12
12
|
require('../../../utils.js');
|
|
13
13
|
require('../../header/component.js');
|
|
14
|
-
require('../../../countdown-section-
|
|
14
|
+
require('../../../countdown-section-784df003.js');
|
|
15
15
|
require('@alfalab/core-components-loader');
|
|
16
16
|
|
|
17
17
|
|
|
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"
|
|
16
|
+
var styles = {"component":"confirmation__component_1sik8","center":"confirmation__center_1sik8","typographyTheme":"confirmation__typographyTheme_1sik8","description":"confirmation__description_1sik8","countdownWrap":"confirmation__countdownWrap_1sik8","loader":"confirmation__loader_1sik8"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var TempBlock = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: a2ax1 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -31,23 +31,23 @@
|
|
|
31
31
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
32
32
|
|
|
33
33
|
/* header */
|
|
34
|
-
} .
|
|
34
|
+
} .confirmation__component_1sik8 {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
} .
|
|
37
|
+
} .confirmation__center_1sik8 {
|
|
38
38
|
align-items: center;
|
|
39
39
|
text-align: center;
|
|
40
|
-
} .
|
|
40
|
+
} .confirmation__typographyTheme_1sik8.confirmation__typographyTheme_1sik8 {
|
|
41
41
|
font-size: var(--confirmation-text-font-size);
|
|
42
42
|
line-height: var(--confirmation-text-line-height);
|
|
43
43
|
font-weight: var(--confirmation-text-font-weight);
|
|
44
44
|
font-family: var(--confirmation-text-font-family);
|
|
45
45
|
color: var(--confirmation-text-color);
|
|
46
|
-
} .
|
|
46
|
+
} .confirmation__description_1sik8.confirmation__description_1sik8 {
|
|
47
47
|
margin-bottom: var(--gap-xs);
|
|
48
|
-
} .
|
|
48
|
+
} .confirmation__countdownWrap_1sik8 {
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
|
-
} .
|
|
51
|
+
} .confirmation__loader_1sik8 {
|
|
52
52
|
margin-right: var(--gap-xs);
|
|
53
53
|
}
|
|
File without changes
|
|
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"
|
|
16
|
+
var styles = {"component":"confirmation__component_gszlg","typographyTheme":"confirmation__typographyTheme_gszlg","phone":"confirmation__phone_gszlg","compact":"confirmation__compact_gszlg","loaderWrap":"confirmation__loaderWrap_gszlg","left":"confirmation__left_gszlg","center":"confirmation__center_gszlg","codeInput":"confirmation__codeInput_gszlg","smsComeLink":"confirmation__smsComeLink_gszlg","countdownContainer":"confirmation__countdownContainer_gszlg","countdownMobile":"confirmation__countdownMobile_gszlg","countdownLoaderMobile":"confirmation__countdownLoaderMobile_gszlg","getCodeButton":"confirmation__getCodeButton_gszlg","getCodeButtonMobile":"confirmation__getCodeButtonMobile_gszlg","containerInput":"confirmation__containerInput_gszlg"};
|
|
17
17
|
require('./components/screens/initial/index.css')
|
|
18
18
|
|
|
19
19
|
var CountdownSection = function (_a) {
|