@alfalab/core-components-confirmation 12.3.4 → 12.3.5
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-ad8387ce.d.ts → component-5a9a6986.d.ts} +0 -0
- package/{component-ad8387ce.js → component-5a9a6986.js} +6 -11
- package/component.desktop.js +6 -12
- package/component.mobile.js +7 -14
- package/component.responsive.js +9 -15
- package/components/base-confirmation/component.js +7 -9
- package/components/base-confirmation/index.css +2 -2
- package/components/base-confirmation/index.d.ts +1 -1
- package/components/base-confirmation/index.js +5 -7
- package/components/countdown-loader/component.js +3 -9
- package/components/countdown-loader/index.css +2 -2
- package/components/countdown-loader/index.js +1 -3
- package/components/header/component.js +2 -9
- package/components/header/index.css +4 -4
- package/components/header/index.js +1 -3
- package/components/index.js +10 -12
- package/components/screens/fatal-error/component.js +7 -14
- package/components/screens/fatal-error/index.css +6 -6
- package/components/screens/fatal-error/index.js +3 -5
- package/components/screens/hint/component.js +15 -22
- package/components/screens/hint/index.css +12 -12
- package/components/screens/hint/index.js +3 -5
- package/components/screens/index.js +8 -10
- package/components/screens/initial/component.js +15 -17
- package/components/screens/initial/countdown-section.js +4 -6
- package/components/screens/initial/index.css +18 -18
- package/components/screens/initial/index.js +5 -7
- package/components/screens/temp-block/component.js +9 -16
- package/components/screens/temp-block/index.css +7 -7
- package/components/screens/temp-block/index.js +4 -6
- package/context.js +0 -2
- package/{countdown-section-f4894842.d.ts → countdown-section-b356354f.d.ts} +0 -0
- package/countdown-section-b356354f.js +44 -0
- package/cssm/{component-5a4af768.d.ts → component-895f6f86.d.ts} +0 -0
- package/cssm/{component-5a4af768.js → component-895f6f86.js} +5 -11
- package/cssm/component.desktop.js +10 -16
- package/cssm/component.mobile.js +11 -19
- package/cssm/component.responsive.js +13 -19
- package/cssm/components/base-confirmation/component.js +10 -12
- package/cssm/components/base-confirmation/index.d.ts +1 -1
- package/cssm/components/base-confirmation/index.js +9 -11
- package/cssm/components/countdown-loader/component.js +2 -9
- package/cssm/components/countdown-loader/index.js +1 -3
- package/cssm/components/header/component.js +1 -9
- package/cssm/components/header/index.js +1 -3
- package/cssm/components/index.js +12 -14
- package/cssm/components/screens/fatal-error/component.js +7 -15
- package/cssm/components/screens/fatal-error/index.js +4 -6
- package/cssm/components/screens/hint/component.js +15 -23
- package/cssm/components/screens/hint/index.js +4 -6
- package/cssm/components/screens/index.js +10 -12
- package/cssm/components/screens/initial/component.js +17 -20
- package/cssm/components/screens/initial/countdown-section.js +14 -22
- package/cssm/components/screens/initial/index.js +6 -8
- package/cssm/components/screens/temp-block/component.js +10 -18
- package/cssm/components/screens/temp-block/index.js +6 -8
- package/cssm/context.js +0 -2
- package/cssm/desktop.d.ts +1 -0
- package/cssm/desktop.js +10 -12
- package/cssm/index.js +24 -26
- package/cssm/mobile.d.ts +1 -0
- package/cssm/mobile.js +10 -12
- package/cssm/responsive.d.ts +1 -0
- package/cssm/responsive.js +11 -13
- package/cssm/types.js +0 -2
- package/cssm/utils.js +6 -8
- package/desktop.d.ts +1 -0
- package/desktop.js +6 -8
- package/esm/{component-b1ceb5d0.d.ts → component-3212dc9c.d.ts} +0 -0
- package/esm/{component-b1ceb5d0.js → component-3212dc9c.js} +4 -4
- package/esm/component.desktop.js +5 -5
- package/esm/component.mobile.js +6 -6
- package/esm/component.responsive.js +8 -8
- package/esm/components/base-confirmation/component.js +7 -7
- 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 +5 -5
- package/esm/components/countdown-loader/component.js +3 -3
- package/esm/components/countdown-loader/index.css +2 -2
- package/esm/components/countdown-loader/index.js +1 -1
- package/esm/components/header/component.js +1 -1
- package/esm/components/header/index.css +4 -4
- package/esm/components/header/index.js +1 -1
- package/esm/components/index.js +9 -9
- package/esm/components/screens/fatal-error/component.js +3 -3
- package/esm/components/screens/fatal-error/index.css +6 -6
- package/esm/components/screens/fatal-error/index.js +3 -3
- package/esm/components/screens/hint/component.js +3 -3
- package/esm/components/screens/hint/index.css +12 -12
- package/esm/components/screens/hint/index.js +3 -3
- package/esm/components/screens/index.js +8 -8
- package/esm/components/screens/initial/component.js +10 -5
- package/esm/components/screens/initial/countdown-section.js +4 -4
- package/esm/components/screens/initial/index.css +18 -18
- package/esm/components/screens/initial/index.js +5 -5
- package/esm/components/screens/temp-block/component.js +4 -4
- package/esm/components/screens/temp-block/index.css +7 -7
- package/esm/components/screens/temp-block/index.js +4 -4
- package/esm/{countdown-section-608e4e3a.d.ts → countdown-section-5a8d74ee.d.ts} +0 -0
- package/esm/{countdown-section-608e4e3a.js → countdown-section-5a8d74ee.js} +6 -6
- package/esm/desktop.d.ts +1 -0
- package/esm/desktop.js +6 -6
- package/esm/index.js +12 -12
- package/esm/mobile.css +2 -2
- package/esm/mobile.d.ts +1 -0
- package/esm/mobile.js +6 -6
- package/esm/responsive.d.ts +1 -0
- package/esm/responsive.js +6 -6
- package/esm/utils.js +6 -6
- package/index.js +21 -23
- package/mobile.css +2 -2
- package/mobile.d.ts +1 -0
- package/mobile.js +6 -8
- package/modern/component.desktop.js +5 -5
- package/modern/component.mobile.js +6 -6
- package/modern/component.responsive.js +8 -8
- package/modern/components/base-confirmation/component.js +8 -8
- package/modern/components/base-confirmation/index.css +2 -2
- package/modern/components/base-confirmation/index.js +5 -5
- package/modern/components/countdown-loader/component.js +1 -1
- package/modern/components/countdown-loader/index.css +2 -2
- package/modern/components/countdown-loader/index.js +1 -1
- package/modern/components/header/component.js +1 -1
- package/modern/components/header/index.css +4 -4
- package/modern/components/header/index.js +1 -1
- package/modern/components/index.js +9 -9
- package/modern/components/screens/fatal-error/component.js +3 -3
- package/modern/components/screens/fatal-error/index.css +6 -6
- package/modern/components/screens/fatal-error/index.js +3 -3
- package/modern/components/screens/hint/component.js +3 -3
- package/modern/components/screens/hint/index.css +12 -12
- package/modern/components/screens/hint/index.js +3 -3
- package/modern/components/screens/index.js +8 -8
- package/modern/components/screens/initial/component.js +10 -5
- package/modern/components/screens/initial/countdown-section.js +4 -4
- package/modern/components/screens/initial/index.css +18 -18
- package/modern/components/screens/initial/index.js +5 -5
- package/modern/components/screens/temp-block/component.js +4 -4
- package/modern/components/screens/temp-block/index.css +7 -7
- package/modern/components/screens/temp-block/index.js +4 -4
- package/modern/{countdown-section-cb87c8ea.d.ts → countdown-section-b8b393a2.d.ts} +0 -0
- package/modern/{countdown-section-cb87c8ea.js → countdown-section-b8b393a2.js} +5 -5
- package/modern/desktop.d.ts +1 -0
- package/modern/desktop.js +6 -6
- package/modern/index.js +12 -12
- package/modern/mobile.css +2 -2
- package/modern/mobile.d.ts +1 -0
- package/modern/mobile.js +6 -6
- package/modern/responsive.d.ts +1 -0
- package/modern/responsive.js +8 -8
- package/package.json +2 -2
- package/responsive.d.ts +1 -0
- package/responsive.js +6 -8
- package/types.js +0 -2
- package/utils.js +6 -8
- package/countdown-section-f4894842.js +0 -49
|
File without changes
|
|
@@ -3,19 +3,14 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var cn = require('classnames');
|
|
5
5
|
var hooks = require('@alfalab/hooks');
|
|
6
|
-
var utils = require('./utils.js');
|
|
7
6
|
var context = require('./context.js');
|
|
8
7
|
var types = require('./types.js');
|
|
8
|
+
var utils = require('./utils.js');
|
|
9
9
|
var components_screens_initial_component = require('./components/screens/initial/component.js');
|
|
10
10
|
var components_screens_hint_component = require('./components/screens/hint/component.js');
|
|
11
11
|
var components_screens_fatalError_component = require('./components/screens/fatal-error/component.js');
|
|
12
12
|
var components_screens_tempBlock_component = require('./components/screens/temp-block/component.js');
|
|
13
13
|
|
|
14
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
|
-
|
|
16
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
|
-
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
18
|
-
|
|
19
14
|
/******************************************************************************
|
|
20
15
|
Copyright (c) Microsoft Corporation.
|
|
21
16
|
|
|
@@ -55,7 +50,7 @@ function __rest(s, e) {
|
|
|
55
50
|
return t;
|
|
56
51
|
}
|
|
57
52
|
|
|
58
|
-
var styles = {"component":"
|
|
53
|
+
var styles = {"component":"confirmation__component_1vjji"};
|
|
59
54
|
require('./components/base-confirmation/index.css')
|
|
60
55
|
|
|
61
56
|
var confirmationScreens = {
|
|
@@ -65,8 +60,8 @@ var confirmationScreens = {
|
|
|
65
60
|
TEMP_BLOCK: components_screens_tempBlock_component.TempBlock,
|
|
66
61
|
};
|
|
67
62
|
var BaseConfirmation = function (_a) {
|
|
68
|
-
var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b
|
|
69
|
-
var
|
|
63
|
+
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 = __rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished", "mobile", "clearCodeOnError"]);
|
|
64
|
+
var _g = utils.useCountdown(countdownDuration), timeLeft = _g[0], startTimer = _g[1], stopTimer = _g[2];
|
|
70
65
|
var prevState = hooks.usePrevious(state);
|
|
71
66
|
React.useEffect(function () {
|
|
72
67
|
startTimer();
|
|
@@ -122,8 +117,8 @@ var BaseConfirmation = function (_a) {
|
|
|
122
117
|
};
|
|
123
118
|
var screensMap = getScreensMap ? getScreensMap(confirmationScreens) : confirmationScreens;
|
|
124
119
|
var CurrentScreen = screensMap[screen];
|
|
125
|
-
return (
|
|
126
|
-
|
|
120
|
+
return (React.createElement(context.ConfirmationContext.Provider, { value: contextValue },
|
|
121
|
+
React.createElement("div", { className: cn(styles.component, className), "data-test-id": dataTestId }, CurrentScreen && React.createElement(CurrentScreen, { mobile: mobile }))));
|
|
127
122
|
};
|
|
128
123
|
|
|
129
124
|
exports.BaseConfirmation = BaseConfirmation;
|
package/component.desktop.js
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var components_baseConfirmation_component = require('./component-ad8387ce.js');
|
|
3
|
+
var components_baseConfirmation_component = require('./component-5a9a6986.js');
|
|
6
4
|
var React = require('react');
|
|
7
5
|
require('classnames');
|
|
8
6
|
require('@alfalab/hooks');
|
|
9
|
-
require('./utils.js');
|
|
10
7
|
require('./context.js');
|
|
8
|
+
require('./utils.js');
|
|
11
9
|
require('./types.js');
|
|
10
|
+
require('./components/screens/initial/component.js');
|
|
12
11
|
require('@alfalab/core-components-button');
|
|
13
12
|
require('@alfalab/core-components-code-input');
|
|
14
13
|
require('@alfalab/core-components-link');
|
|
15
14
|
require('@alfalab/core-components-typography');
|
|
16
15
|
require('./components/header/component.js');
|
|
16
|
+
require('./countdown-section-b356354f.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('./countdown-section-f4894842.js');
|
|
19
|
-
require('./components/screens/initial/component.js');
|
|
20
18
|
require('./components/screens/hint/component.js');
|
|
21
19
|
require('./components/screens/fatal-error/component.js');
|
|
22
|
-
require('./components/countdown-loader/component.js');
|
|
23
20
|
require('./components/screens/temp-block/component.js');
|
|
21
|
+
require('./components/countdown-loader/component.js');
|
|
24
22
|
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
28
|
-
|
|
29
|
-
var ConfirmationDesktop = function (props) { return (React__default['default'].createElement(components_baseConfirmation_component.BaseConfirmation, components_baseConfirmation_component.__assign({}, props))); };
|
|
23
|
+
var ConfirmationDesktop = function (props) { return (React.createElement(components_baseConfirmation_component.BaseConfirmation, components_baseConfirmation_component.__assign({}, props))); };
|
|
30
24
|
|
|
31
25
|
exports.ConfirmationDesktop = ConfirmationDesktop;
|
package/component.mobile.js
CHANGED
|
@@ -1,38 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var components_baseConfirmation_component = require('./component-ad8387ce.js');
|
|
3
|
+
var components_baseConfirmation_component = require('./component-5a9a6986.js');
|
|
6
4
|
var React = require('react');
|
|
7
5
|
var cn = require('classnames');
|
|
8
6
|
require('@alfalab/hooks');
|
|
9
|
-
require('./utils.js');
|
|
10
7
|
require('./context.js');
|
|
8
|
+
require('./utils.js');
|
|
11
9
|
require('./types.js');
|
|
10
|
+
require('./components/screens/initial/component.js');
|
|
12
11
|
require('@alfalab/core-components-button');
|
|
13
12
|
require('@alfalab/core-components-code-input');
|
|
14
13
|
require('@alfalab/core-components-link');
|
|
15
14
|
require('@alfalab/core-components-typography');
|
|
16
15
|
require('./components/header/component.js');
|
|
16
|
+
require('./countdown-section-b356354f.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('./countdown-section-f4894842.js');
|
|
19
|
-
require('./components/screens/initial/component.js');
|
|
20
18
|
require('./components/screens/hint/component.js');
|
|
21
19
|
require('./components/screens/fatal-error/component.js');
|
|
22
|
-
require('./components/countdown-loader/component.js');
|
|
23
20
|
require('./components/screens/temp-block/component.js');
|
|
21
|
+
require('./components/countdown-loader/component.js');
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
28
|
-
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
29
|
-
|
|
30
|
-
var styles = {"container":"confirmation__container_15921"};
|
|
23
|
+
var styles = {"container":"confirmation__container_12az3"};
|
|
31
24
|
require('./mobile.css')
|
|
32
25
|
|
|
33
26
|
var ConfirmationMobile = function (_a) {
|
|
34
27
|
var className = _a.className, resProps = components_baseConfirmation_component.__rest(_a, ["className"]);
|
|
35
|
-
return (
|
|
28
|
+
return (React.createElement(components_baseConfirmation_component.BaseConfirmation, components_baseConfirmation_component.__assign({ mobile: true, className: cn(className, styles.container) }, resProps)));
|
|
36
29
|
};
|
|
37
30
|
|
|
38
31
|
exports.ConfirmationMobile = ConfirmationMobile;
|
package/component.responsive.js
CHANGED
|
@@ -1,39 +1,33 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var components_baseConfirmation_component = require('./component-ad8387ce.js');
|
|
3
|
+
var components_baseConfirmation_component = require('./component-5a9a6986.js');
|
|
6
4
|
var React = require('react');
|
|
7
|
-
require('classnames');
|
|
8
5
|
var hooks = require('@alfalab/hooks');
|
|
9
|
-
require('./
|
|
6
|
+
var component_desktop = require('./component.desktop.js');
|
|
7
|
+
var component_mobile = require('./component.mobile.js');
|
|
8
|
+
require('classnames');
|
|
10
9
|
require('./context.js');
|
|
10
|
+
require('./utils.js');
|
|
11
11
|
require('./types.js');
|
|
12
|
+
require('./components/screens/initial/component.js');
|
|
12
13
|
require('@alfalab/core-components-button');
|
|
13
14
|
require('@alfalab/core-components-code-input');
|
|
14
15
|
require('@alfalab/core-components-link');
|
|
15
16
|
require('@alfalab/core-components-typography');
|
|
16
17
|
require('./components/header/component.js');
|
|
18
|
+
require('./countdown-section-b356354f.js');
|
|
17
19
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('./countdown-section-f4894842.js');
|
|
19
|
-
require('./components/screens/initial/component.js');
|
|
20
20
|
require('./components/screens/hint/component.js');
|
|
21
21
|
require('./components/screens/fatal-error/component.js');
|
|
22
|
-
require('./components/countdown-loader/component.js');
|
|
23
22
|
require('./components/screens/temp-block/component.js');
|
|
24
|
-
|
|
25
|
-
var component_mobile = require('./component.mobile.js');
|
|
26
|
-
|
|
27
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
28
|
-
|
|
29
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
|
+
require('./components/countdown-loader/component.js');
|
|
30
24
|
|
|
31
25
|
var ConfirmationResponsive = function (props) {
|
|
32
26
|
var view = hooks.useMedia([
|
|
33
27
|
['mobile', '(max-width: 1023px)'],
|
|
34
28
|
['desktop', '(min-width: 1024px)'],
|
|
35
29
|
], 'desktop')[0];
|
|
36
|
-
return view === 'desktop' ? (
|
|
30
|
+
return view === 'desktop' ? (React.createElement(component_desktop.ConfirmationDesktop, components_baseConfirmation_component.__assign({}, props))) : (React.createElement(component_mobile.ConfirmationMobile, components_baseConfirmation_component.__assign({}, props)));
|
|
37
31
|
};
|
|
38
32
|
|
|
39
33
|
exports.ConfirmationResponsive = ConfirmationResponsive;
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var components_baseConfirmation_component = require('../../component-ad8387ce.js');
|
|
3
|
+
var components_baseConfirmation_component = require('../../component-5a9a6986.js');
|
|
6
4
|
require('react');
|
|
7
5
|
require('classnames');
|
|
8
6
|
require('@alfalab/hooks');
|
|
9
|
-
require('../../utils.js');
|
|
10
7
|
require('../../context.js');
|
|
11
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');
|
|
12
14
|
require('@alfalab/core-components-button');
|
|
13
15
|
require('@alfalab/core-components-code-input');
|
|
14
16
|
require('@alfalab/core-components-link');
|
|
15
17
|
require('@alfalab/core-components-typography');
|
|
16
18
|
require('../header/component.js');
|
|
19
|
+
require('../../countdown-section-b356354f.js');
|
|
17
20
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('../../countdown-section-f4894842.js');
|
|
19
|
-
require('../screens/initial/component.js');
|
|
20
|
-
require('../screens/hint/component.js');
|
|
21
|
-
require('../screens/fatal-error/component.js');
|
|
22
21
|
require('../countdown-loader/component.js');
|
|
23
|
-
require('../screens/temp-block/component.js');
|
|
24
22
|
|
|
25
23
|
|
|
26
24
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: kwbzz */
|
|
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_1vjji {
|
|
14
14
|
width: 100%;
|
|
15
15
|
max-width: 388px;
|
|
16
16
|
margin: 0 auto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-5a9a6986";
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var components_baseConfirmation_component = require('../../component-ad8387ce.js');
|
|
3
|
+
var components_baseConfirmation_component = require('../../component-5a9a6986.js');
|
|
6
4
|
require('react');
|
|
7
5
|
require('classnames');
|
|
8
6
|
require('@alfalab/hooks');
|
|
9
|
-
require('../../utils.js');
|
|
10
7
|
require('../../context.js');
|
|
8
|
+
require('../../utils.js');
|
|
11
9
|
require('../../types.js');
|
|
10
|
+
require('../screens/initial/component.js');
|
|
12
11
|
require('@alfalab/core-components-button');
|
|
13
12
|
require('@alfalab/core-components-code-input');
|
|
14
13
|
require('@alfalab/core-components-link');
|
|
15
14
|
require('@alfalab/core-components-typography');
|
|
16
15
|
require('../header/component.js');
|
|
16
|
+
require('../../countdown-section-b356354f.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('../../countdown-section-f4894842.js');
|
|
19
|
-
require('../screens/initial/component.js');
|
|
20
18
|
require('../screens/hint/component.js');
|
|
21
19
|
require('../screens/fatal-error/component.js');
|
|
22
|
-
require('../countdown-loader/component.js');
|
|
23
20
|
require('../screens/temp-block/component.js');
|
|
21
|
+
require('../countdown-loader/component.js');
|
|
24
22
|
|
|
25
23
|
|
|
26
24
|
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
-
|
|
11
|
-
var styles = {"circle":"confirmation__circle_8bmir"};
|
|
5
|
+
var styles = {"circle":"confirmation__circle_o1lwg"};
|
|
12
6
|
require('./index.css')
|
|
13
7
|
|
|
14
8
|
var SIZE = 16;
|
|
@@ -22,8 +16,8 @@ var CountdownLoader = function (_a) {
|
|
|
22
16
|
var value = Math.min(progress, 1);
|
|
23
17
|
var strokeDasharray = CIRCUMFERENCE.toFixed(2);
|
|
24
18
|
var strokeDashoffset = (value * CIRCUMFERENCE).toFixed(2);
|
|
25
|
-
return (
|
|
26
|
-
|
|
19
|
+
return (React.createElement("svg", { width: SIZE, height: SIZE, viewBox: "0 0 ".concat(SIZE, " ").concat(SIZE), className: className },
|
|
20
|
+
React.createElement("circle", { cx: CENTER, cy: CENTER, r: RADIUS, strokeDasharray: strokeDasharray, strokeDashoffset: strokeDashoffset, transform: "rotate(-90 ".concat(CENTER, " ").concat(CENTER, ")"), className: styles.circle })));
|
|
27
21
|
};
|
|
28
22
|
|
|
29
23
|
exports.CountdownLoader = CountdownLoader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qnpv */
|
|
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_o1lwg {
|
|
14
14
|
fill: transparent;
|
|
15
15
|
stroke: var(--color-light-graphic-tertiary);
|
|
16
16
|
stroke-width: 2px;
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
4
|
var cn = require('classnames');
|
|
7
5
|
var coreComponentsTypography = require('@alfalab/core-components-typography');
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
-
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
13
|
-
|
|
14
|
-
var styles = {"header":"confirmation__header_oznd3","typography":"confirmation__typography_oznd3","typographyMobile":"confirmation__typographyMobile_oznd3"};
|
|
7
|
+
var styles = {"header":"confirmation__header_1o5ag","typography":"confirmation__typography_1o5ag","typographyMobile":"confirmation__typographyMobile_1o5ag"};
|
|
15
8
|
require('./index.css')
|
|
16
9
|
|
|
17
10
|
var Header = function (_a) {
|
|
18
11
|
var _b;
|
|
19
12
|
var mobile = _a.mobile, children = _a.children;
|
|
20
|
-
return (
|
|
13
|
+
return (React.createElement(coreComponentsTypography.Typography.Title, { className: cn(styles.header, styles.typography, (_b = {}, _b[styles.typographyMobile] = mobile, _b)), tag: 'h3', color: 'primary' }, children));
|
|
21
14
|
};
|
|
22
15
|
|
|
23
16
|
exports.Header = Header;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: j05p1 */
|
|
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_1o5ag.confirmation__header_1o5ag {
|
|
36
36
|
margin-bottom: var(--gap-xl);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.confirmation__typography_1o5ag.confirmation__typography_1o5ag {
|
|
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_1o5ag.confirmation__typographyMobile_1o5ag {
|
|
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);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
var components_header_component = require('./component.js');
|
|
5
4
|
require('react');
|
|
6
5
|
require('classnames');
|
|
7
6
|
require('@alfalab/core-components-typography');
|
|
8
|
-
var components_header_component = require('./component.js');
|
|
9
7
|
|
|
10
8
|
|
|
11
9
|
|
package/components/index.js
CHANGED
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
var components_screens_initial_component = require('./screens/initial/component.js');
|
|
4
|
+
var components_screens_hint_component = require('./screens/hint/component.js');
|
|
5
|
+
var components_screens_fatalError_component = require('./screens/fatal-error/component.js');
|
|
6
|
+
var components_screens_tempBlock_component = require('./screens/temp-block/component.js');
|
|
7
|
+
var components_countdownLoader_component = require('./countdown-loader/component.js');
|
|
5
8
|
require('react');
|
|
6
9
|
require('classnames');
|
|
7
|
-
require('@alfalab/hooks');
|
|
8
|
-
require('../utils.js');
|
|
9
|
-
require('../context.js');
|
|
10
10
|
require('@alfalab/core-components-button');
|
|
11
11
|
require('@alfalab/core-components-code-input');
|
|
12
12
|
require('@alfalab/core-components-link');
|
|
13
13
|
require('@alfalab/core-components-typography');
|
|
14
|
+
require('@alfalab/hooks');
|
|
15
|
+
require('../context.js');
|
|
16
|
+
require('../utils.js');
|
|
14
17
|
require('./header/component.js');
|
|
18
|
+
require('../countdown-section-b356354f.js');
|
|
15
19
|
require('@alfalab/core-components-loader');
|
|
16
|
-
require('../countdown-section-f4894842.js');
|
|
17
|
-
var components_screens_initial_component = require('./screens/initial/component.js');
|
|
18
|
-
var components_screens_hint_component = require('./screens/hint/component.js');
|
|
19
|
-
var components_screens_fatalError_component = require('./screens/fatal-error/component.js');
|
|
20
|
-
var components_countdownLoader_component = require('./countdown-loader/component.js');
|
|
21
|
-
var components_screens_tempBlock_component = require('./screens/temp-block/component.js');
|
|
22
20
|
|
|
23
21
|
|
|
24
22
|
|
|
25
23
|
exports.Initial = components_screens_initial_component.Initial;
|
|
26
24
|
exports.Hint = components_screens_hint_component.Hint;
|
|
27
25
|
exports.FatalError = components_screens_fatalError_component.FatalError;
|
|
28
|
-
exports.CountdownLoader = components_countdownLoader_component.CountdownLoader;
|
|
29
26
|
exports.TempBlock = components_screens_tempBlock_component.TempBlock;
|
|
27
|
+
exports.CountdownLoader = components_countdownLoader_component.CountdownLoader;
|
|
@@ -1,31 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
4
|
var cn = require('classnames');
|
|
7
|
-
require('../../../utils.js');
|
|
8
|
-
var context = require('../../../context.js');
|
|
9
5
|
var coreComponentsButton = require('@alfalab/core-components-button');
|
|
10
6
|
var coreComponentsTypography = require('@alfalab/core-components-typography');
|
|
7
|
+
var context = require('../../../context.js');
|
|
11
8
|
var components_header_component = require('../../header/component.js');
|
|
9
|
+
require('../../../utils.js');
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
|
-
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
17
|
-
|
|
18
|
-
var styles = {"component":"confirmation__component_90sl5","typographyTheme":"confirmation__typographyTheme_90sl5","left":"confirmation__left_90sl5","center":"confirmation__center_90sl5","button":"confirmation__button_90sl5"};
|
|
11
|
+
var styles = {"component":"confirmation__component_186fo","typographyTheme":"confirmation__typographyTheme_186fo","left":"confirmation__left_186fo","center":"confirmation__center_186fo","button":"confirmation__button_186fo"};
|
|
19
12
|
require('./index.css')
|
|
20
13
|
|
|
21
14
|
var FatalError = function (_a) {
|
|
22
15
|
var _b;
|
|
23
16
|
var mobile = _a.mobile;
|
|
24
17
|
var _c = React.useContext(context.ConfirmationContext), alignContent = _c.alignContent, texts = _c.texts, onFatalErrorOkButtonClick = _c.onFatalErrorOkButtonClick;
|
|
25
|
-
return (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
|
|
19
|
+
React.createElement(components_header_component.Header, { mobile: mobile }, texts.fatalErrorTitle),
|
|
20
|
+
React.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn((_b = {}, _b[styles.typographyTheme] = !mobile, _b)) }, texts.fatalErrorDescription),
|
|
21
|
+
React.createElement(coreComponentsButton.Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: onFatalErrorOkButtonClick, className: styles.button }, texts.fatalErrorButton)));
|
|
29
22
|
};
|
|
30
23
|
|
|
31
24
|
exports.FatalError = FatalError;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ifzmd */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
|
|
32
32
|
/* header */
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.confirmation__component_186fo {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.confirmation__typographyTheme_186fo.confirmation__typographyTheme_186fo {
|
|
39
39
|
font-size: var(--confirmation-text-font-size);
|
|
40
40
|
line-height: var(--confirmation-text-line-height);
|
|
41
41
|
font-weight: var(--confirmation-text-font-weight);
|
|
42
42
|
font-family: var(--confirmation-text-font-family);
|
|
43
43
|
color: var(--confirmation-text-color);
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.confirmation__left_186fo {
|
|
46
46
|
align-items: flex-start;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.confirmation__center_186fo {
|
|
49
49
|
align-items: center;
|
|
50
50
|
text-align: center;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.confirmation__button_186fo {
|
|
53
53
|
margin-top: var(--gap-2xl);
|
|
54
54
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
var components_screens_fatalError_component = require('./component.js');
|
|
5
4
|
require('react');
|
|
6
5
|
require('classnames');
|
|
7
|
-
require('../../../utils.js');
|
|
8
|
-
require('../../../context.js');
|
|
9
6
|
require('@alfalab/core-components-button');
|
|
10
7
|
require('@alfalab/core-components-typography');
|
|
8
|
+
require('../../../context.js');
|
|
9
|
+
require('../../../utils.js');
|
|
11
10
|
require('../../header/component.js');
|
|
12
|
-
var components_screens_fatalError_component = require('./component.js');
|
|
13
11
|
|
|
14
12
|
|
|
15
13
|
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
4
|
var cn = require('classnames');
|
|
7
|
-
require('../../../utils.js');
|
|
8
|
-
var context = require('../../../context.js');
|
|
9
5
|
var coreComponentsButton = require('@alfalab/core-components-button');
|
|
10
6
|
var coreComponentsLink = require('@alfalab/core-components-link');
|
|
11
7
|
var coreComponentsTypography = require('@alfalab/core-components-typography');
|
|
8
|
+
var context = require('../../../context.js');
|
|
12
9
|
var components_header_component = require('../../header/component.js');
|
|
10
|
+
require('../../../utils.js');
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
|
-
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
18
|
-
|
|
19
|
-
var styles = {"component":"confirmation__component_8p0cq","center":"confirmation__center_8p0cq","text":"confirmation__text_8p0cq","typographyTheme":"confirmation__typographyTheme_8p0cq","phonesWrap":"confirmation__phonesWrap_8p0cq","phoneWrap":"confirmation__phoneWrap_8p0cq","phoneLink":"confirmation__phoneLink_8p0cq","hintButton":"confirmation__hintButton_8p0cq","phoneContentMobile":"confirmation__phoneContentMobile_8p0cq"};
|
|
12
|
+
var styles = {"component":"confirmation__component_1kmjv","center":"confirmation__center_1kmjv","text":"confirmation__text_1kmjv","typographyTheme":"confirmation__typographyTheme_1kmjv","phonesWrap":"confirmation__phonesWrap_1kmjv","phoneWrap":"confirmation__phoneWrap_1kmjv","phoneLink":"confirmation__phoneLink_1kmjv","hintButton":"confirmation__hintButton_1kmjv","phoneContentMobile":"confirmation__phoneContentMobile_1kmjv"};
|
|
20
13
|
require('./index.css')
|
|
21
14
|
|
|
22
15
|
var Hint = function (_a) {
|
|
@@ -27,22 +20,22 @@ var Hint = function (_a) {
|
|
|
27
20
|
onChangeScreen('INITIAL');
|
|
28
21
|
onChangeState('INITIAL');
|
|
29
22
|
};
|
|
30
|
-
return (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
|
|
24
|
+
React.createElement(components_header_component.Header, { mobile: mobile }, "\u041D\u0435\u00A0\u043F\u0440\u0438\u0445\u043E\u0434\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435?"),
|
|
25
|
+
React.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, (_b = {}, _b[styles.typographyTheme] = !mobile, _b)) }, "\u0415\u0441\u043B\u0438 \u0443\u00A0\u0432\u0430\u0441 \u0438\u0437\u043C\u0435\u043D\u0438\u043B\u0441\u044F \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430, \u043F\u043E\u0437\u0432\u043E\u043D\u0438\u0442\u0435 \u043D\u0430\u043C \u0438\u043B\u0438 \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432\u00A0\u043B\u044E\u0431\u043E\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430."),
|
|
26
|
+
React.createElement("div", { className: styles.phonesWrap },
|
|
27
|
+
React.createElement("div", { className: cn(styles.phoneWrap, (_c = {}, _c[styles.phoneContentMobile] = mobile, _c)) },
|
|
28
|
+
React.createElement(coreComponentsLink.Link, { href: 'tel:+78002000000', underline: false, className: styles.phoneLink }, "8 800 200-00-00"),
|
|
29
|
+
React.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, (_d = {}, _d[styles.typographyTheme] = !mobile, _d)) }, mobile
|
|
37
30
|
? 'Для\u00A0 звонков по\u00A0России'
|
|
38
31
|
: ' \u2014\u00A0для звонков по\u00A0России')),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
React.createElement("div", { className: cn(styles.phoneWrap, (_e = {}, _e[styles.phoneContentMobile] = mobile, _e)) },
|
|
33
|
+
React.createElement(coreComponentsLink.Link, { href: 'tel:+74957888878', underline: false, className: styles.phoneLink }, "+7 495 78-888-78"),
|
|
34
|
+
React.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, (_f = {}, _f[styles.typographyTheme] = !mobile, _f)) }, mobile
|
|
42
35
|
? 'В\u00A0Москве и\u00A0за\u00A0границей'
|
|
43
36
|
: ' \u2014\u00A0в\u00A0Москве и\u00A0за\u00A0границей'))),
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
React.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, (_g = {}, _g[styles.typographyTheme] = !mobile, _g)) }, "\u0415\u0441\u043B\u0438 \u043D\u043E\u043C\u0435\u0440 \u043D\u0435\u00A0\u043C\u0435\u043D\u044F\u043B\u0441\u044F, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D \u0441\u0435\u0440\u0432\u0438\u0441 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0438\u043D\u0443\u0442."),
|
|
38
|
+
React.createElement(coreComponentsButton.Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton }, texts.hintButton)));
|
|
46
39
|
};
|
|
47
40
|
|
|
48
41
|
exports.Hint = Hint;
|