@alfalab/core-components-confirmation 12.4.10 → 12.4.12
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 +3 -1
- package/component.mobile.js +4 -2
- package/component.responsive.js +3 -1
- package/components/base-confirmation/component.js +7 -4
- package/components/base-confirmation/index.css +4 -4
- package/components/base-confirmation/index.js +3 -1
- package/components/countdown-loader/component.js +3 -1
- package/components/countdown-loader/index.css +4 -4
- package/components/countdown-loader/index.js +2 -0
- package/components/header/component.js +3 -1
- package/components/header/index.css +6 -6
- package/components/header/index.js +2 -0
- package/components/index.js +3 -1
- package/components/screens/fatal-error/component.js +3 -1
- package/components/screens/fatal-error/index.css +8 -8
- package/components/screens/fatal-error/index.js +2 -0
- package/components/screens/hint/component.js +3 -1
- package/components/screens/hint/index.css +14 -14
- package/components/screens/hint/index.js +2 -0
- package/components/screens/index.js +3 -1
- package/components/screens/initial/component.js +5 -3
- package/components/screens/initial/countdown-section.js +3 -1
- package/components/screens/initial/index.css +21 -21
- package/components/screens/initial/index.js +3 -1
- package/components/screens/temp-block/component.js +3 -1
- package/components/screens/temp-block/index.css +9 -9
- package/components/screens/temp-block/index.js +2 -0
- package/context.js +3 -0
- package/{countdown-section-5babd6c6.js → countdown-section-eeb2aaea.js} +1 -1
- package/cssm/component.desktop.js +2 -0
- package/cssm/component.mobile.js +2 -0
- package/cssm/component.responsive.js +2 -0
- package/cssm/components/base-confirmation/component.js +5 -2
- package/cssm/components/base-confirmation/index.js +2 -0
- package/cssm/components/base-confirmation/index.module.css +2 -2
- package/cssm/components/countdown-loader/component.js +2 -0
- package/cssm/components/countdown-loader/index.js +2 -0
- package/cssm/components/countdown-loader/index.module.css +2 -2
- package/cssm/components/header/component.js +2 -0
- package/cssm/components/header/index.js +2 -0
- package/cssm/components/header/index.module.css +2 -2
- package/cssm/components/index.js +2 -0
- package/cssm/components/screens/fatal-error/component.js +2 -0
- package/cssm/components/screens/fatal-error/index.js +2 -0
- package/cssm/components/screens/fatal-error/index.module.css +2 -2
- package/cssm/components/screens/hint/component.js +2 -0
- package/cssm/components/screens/hint/index.js +2 -0
- package/cssm/components/screens/hint/index.module.css +2 -2
- package/cssm/components/screens/index.js +2 -0
- package/cssm/components/screens/initial/component.js +4 -2
- package/cssm/components/screens/initial/countdown-section.js +2 -0
- package/cssm/components/screens/initial/index.js +2 -0
- package/cssm/components/screens/initial/index.module.css +3 -3
- package/cssm/components/screens/temp-block/component.js +2 -0
- package/cssm/components/screens/temp-block/index.js +2 -0
- package/cssm/components/screens/temp-block/index.module.css +2 -2
- package/cssm/context.js +3 -0
- package/cssm/desktop.js +2 -0
- package/cssm/index.js +5 -3
- package/cssm/mobile.js +2 -0
- package/cssm/responsive.js +2 -0
- package/cssm/types.d.ts +6 -1
- package/cssm/types.js +2 -0
- package/cssm/utils.js +2 -0
- package/cssm/vars.css +2 -2
- package/desktop.js +3 -1
- package/esm/component.desktop.js +1 -1
- package/esm/component.mobile.js +2 -2
- package/esm/component.responsive.js +1 -1
- package/esm/components/base-confirmation/component.js +5 -4
- package/esm/components/base-confirmation/index.css +4 -4
- package/esm/components/base-confirmation/index.js +1 -1
- package/esm/components/countdown-loader/component.js +1 -1
- package/esm/components/countdown-loader/index.css +4 -4
- package/esm/components/header/component.js +1 -1
- package/esm/components/header/index.css +6 -6
- 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 +8 -8
- package/esm/components/screens/hint/component.js +1 -1
- package/esm/components/screens/hint/index.css +14 -14
- 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 +21 -21
- 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 +9 -9
- package/esm/context.js +1 -0
- package/esm/{countdown-section-b2e6a96e.js → countdown-section-11874006.js} +1 -1
- package/esm/desktop.js +1 -1
- package/esm/index.js +2 -2
- package/esm/mobile.css +2 -2
- package/esm/mobile.js +1 -1
- package/esm/responsive.js +1 -1
- package/esm/types.d.ts +6 -1
- package/index.js +4 -2
- package/mobile.css +2 -2
- package/mobile.js +3 -1
- 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 +4 -4
- 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 +4 -4
- package/modern/components/header/component.js +1 -1
- package/modern/components/header/index.css +6 -6
- 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 +8 -8
- package/modern/components/screens/hint/component.js +1 -1
- package/modern/components/screens/hint/index.css +14 -14
- 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 +21 -21
- 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 +9 -9
- package/modern/context.js +1 -0
- package/modern/{countdown-section-55d78e2b.js → countdown-section-a44bf760.js} +1 -1
- package/modern/desktop.js +1 -1
- package/modern/index.js +2 -2
- package/modern/mobile.css +2 -2
- package/modern/mobile.js +1 -1
- package/modern/responsive.js +1 -1
- package/modern/types.d.ts +6 -1
- package/package.json +6 -6
- package/responsive.js +3 -1
- package/types.d.ts +6 -1
- package/types.js +2 -0
- package/utils.js +2 -0
- /package/{countdown-section-5babd6c6.d.ts → countdown-section-eeb2aaea.d.ts} +0 -0
- /package/esm/{countdown-section-b2e6a96e.d.ts → countdown-section-11874006.d.ts} +0 -0
- /package/modern/{countdown-section-55d78e2b.d.ts → countdown-section-a44bf760.d.ts} +0 -0
|
@@ -14,11 +14,11 @@ import '@alfalab/core-components-code-input/esm';
|
|
|
14
14
|
import '@alfalab/core-components-link/esm';
|
|
15
15
|
import '@alfalab/core-components-typography/esm';
|
|
16
16
|
import '../header/component.js';
|
|
17
|
-
import '../../countdown-section-
|
|
17
|
+
import '../../countdown-section-11874006.js';
|
|
18
18
|
import '@alfalab/core-components-loader/esm';
|
|
19
19
|
import '../countdown-loader/component.js';
|
|
20
20
|
|
|
21
|
-
var styles = {"component":"
|
|
21
|
+
var styles = {"component":"confirmation__component_1wsgy"};
|
|
22
22
|
require('./index.css')
|
|
23
23
|
|
|
24
24
|
var confirmationScreens = {
|
|
@@ -28,8 +28,8 @@ var confirmationScreens = {
|
|
|
28
28
|
TEMP_BLOCK: TempBlock,
|
|
29
29
|
};
|
|
30
30
|
var BaseConfirmation = function (_a) {
|
|
31
|
-
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 ? ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? 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"]);
|
|
32
|
-
var
|
|
31
|
+
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 ? ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? 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, _g = _a.hideCountdownSection, hideCountdownSection = _g === void 0 ? false : _g, restProps = __rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished", "mobile", "clearCodeOnError", "hideCountdownSection"]);
|
|
32
|
+
var _h = useCountdown(countdownDuration), timeLeft = _h[0], startTimer = _h[1], stopTimer = _h[2];
|
|
33
33
|
var prevState = usePrevious(state);
|
|
34
34
|
useEffect(function () {
|
|
35
35
|
startTimer();
|
|
@@ -65,6 +65,7 @@ var BaseConfirmation = function (_a) {
|
|
|
65
65
|
};
|
|
66
66
|
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
|
67
67
|
var contextValue = {
|
|
68
|
+
hideCountdownSection: hideCountdownSection,
|
|
68
69
|
alignContent: alignContent,
|
|
69
70
|
texts: __assign(__assign({}, defaultTexts), restProps.texts),
|
|
70
71
|
state: state,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 15wph */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-secondary: rgba(
|
|
5
|
-
} :root {
|
|
4
|
+
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .confirmation__component_1wsgy {
|
|
19
19
|
width: 100%;
|
|
20
20
|
max-width: 388px;
|
|
21
21
|
margin: 0 auto;
|
|
@@ -12,7 +12,7 @@ import '@alfalab/core-components-code-input/esm';
|
|
|
12
12
|
import '@alfalab/core-components-link/esm';
|
|
13
13
|
import '@alfalab/core-components-typography/esm';
|
|
14
14
|
import '../header/component.js';
|
|
15
|
-
import '../../countdown-section-
|
|
15
|
+
import '../../countdown-section-11874006.js';
|
|
16
16
|
import '@alfalab/core-components-loader/esm';
|
|
17
17
|
import '../screens/hint/component.js';
|
|
18
18
|
import '../screens/fatal-error/component.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: zaj7r */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-graphic-tertiary: #
|
|
5
|
-
} :root {
|
|
4
|
+
--color-light-graphic-tertiary: #c1c1c3; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .confirmation__circle_1f8a8 {
|
|
19
19
|
fill: transparent;
|
|
20
20
|
stroke: var(--color-light-graphic-tertiary);
|
|
21
21
|
stroke-width: 2px;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
4
4
|
|
|
5
|
-
var styles = {"header":"
|
|
5
|
+
var styles = {"header":"confirmation__header_1b7nu","typography":"confirmation__typography_1b7nu","typographyMobile":"confirmation__typographyMobile_1b7nu"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Header = function (_a) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 158z7 */
|
|
2
2
|
:root {
|
|
3
|
-
} /* deprecated */ :root {
|
|
4
|
-
} :root {
|
|
3
|
+
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root {
|
|
6
6
|
} :root {
|
|
7
7
|
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
|
|
35
35
|
/* header */
|
|
36
36
|
--confirmation-header-font-feature-settings: normal
|
|
37
|
-
} .
|
|
37
|
+
} .confirmation__header_1b7nu.confirmation__header_1b7nu {
|
|
38
38
|
margin-bottom: var(--gap-xl);
|
|
39
|
-
} .
|
|
39
|
+
} .confirmation__typography_1b7nu.confirmation__typography_1b7nu {
|
|
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_1b7nu.confirmation__typographyMobile_1b7nu {
|
|
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/esm/components/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ConfirmationContext } from '../../../context.js';
|
|
|
6
6
|
import { Header } from '../../header/component.js';
|
|
7
7
|
import '../../../utils.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"confirmation__component_1l0nt","typographyTheme":"confirmation__typographyTheme_1l0nt","left":"confirmation__left_1l0nt","center":"confirmation__center_1l0nt","button":"confirmation__button_1l0nt"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var FatalError = function (_a) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 12k0x */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-primary: #
|
|
5
|
-
} :root {
|
|
4
|
+
--color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
8
8
|
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
32
32
|
|
|
33
33
|
/* header */
|
|
34
|
-
} .
|
|
34
|
+
} .confirmation__component_1l0nt {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
} .
|
|
37
|
+
} .confirmation__typographyTheme_1l0nt.confirmation__typographyTheme_1l0nt {
|
|
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_1l0nt {
|
|
44
44
|
align-items: flex-start;
|
|
45
|
-
} .
|
|
45
|
+
} .confirmation__center_1l0nt {
|
|
46
46
|
align-items: center;
|
|
47
47
|
text-align: center;
|
|
48
|
-
} .
|
|
48
|
+
} .confirmation__button_1l0nt {
|
|
49
49
|
margin-top: var(--gap-2xl);
|
|
50
50
|
}
|
|
@@ -7,7 +7,7 @@ import { ConfirmationContext } from '../../../context.js';
|
|
|
7
7
|
import { Header } from '../../header/component.js';
|
|
8
8
|
import '../../../utils.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"confirmation__component_sz1eu","center":"confirmation__center_sz1eu","text":"confirmation__text_sz1eu","typographyTheme":"confirmation__typographyTheme_sz1eu","phonesWrap":"confirmation__phonesWrap_sz1eu","phoneWrap":"confirmation__phoneWrap_sz1eu","phoneLink":"confirmation__phoneLink_sz1eu","hintButton":"confirmation__hintButton_sz1eu","phoneContentMobile":"confirmation__phoneContentMobile_sz1eu"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var Hint = function (_a) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3dtf7 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-primary: #
|
|
5
|
-
} :root {
|
|
4
|
+
--color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
8
8
|
|
|
@@ -33,38 +33,38 @@
|
|
|
33
33
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
34
34
|
|
|
35
35
|
/* header */
|
|
36
|
-
} .
|
|
36
|
+
} .confirmation__component_sz1eu {
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: column;
|
|
39
39
|
align-items: flex-start
|
|
40
|
-
} .
|
|
40
|
+
} .confirmation__component_sz1eu span:last-of-type {
|
|
41
41
|
margin-bottom: 0;
|
|
42
|
-
} .
|
|
42
|
+
} .confirmation__center_sz1eu {
|
|
43
43
|
align-items: center;
|
|
44
44
|
text-align: center;
|
|
45
|
-
} .
|
|
45
|
+
} .confirmation__text_sz1eu.confirmation__text_sz1eu {
|
|
46
46
|
margin-bottom: var(--gap-xl);
|
|
47
|
-
} .
|
|
47
|
+
} .confirmation__typographyTheme_sz1eu.confirmation__typographyTheme_sz1eu {
|
|
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_sz1eu {
|
|
54
54
|
display: flex;
|
|
55
55
|
flex-direction: column;
|
|
56
56
|
margin-bottom: var(--gap-xl);
|
|
57
|
-
} .
|
|
57
|
+
} .confirmation__phoneWrap_sz1eu {
|
|
58
58
|
margin-bottom: var(--gap-xs)
|
|
59
|
-
} .
|
|
59
|
+
} .confirmation__phoneWrap_sz1eu:last-child {
|
|
60
60
|
margin-bottom: 0;
|
|
61
|
-
} .
|
|
61
|
+
} .confirmation__phoneLink_sz1eu.confirmation__phoneLink_sz1eu {
|
|
62
62
|
font-size: 16px;
|
|
63
63
|
line-height: 24px;
|
|
64
64
|
font-weight: 500;
|
|
65
|
-
} .
|
|
65
|
+
} .confirmation__hintButton_sz1eu {
|
|
66
66
|
margin-top: var(--gap-2xl);
|
|
67
|
-
} .
|
|
67
|
+
} .confirmation__phoneContentMobile_sz1eu {
|
|
68
68
|
display: flex;
|
|
69
69
|
flex-direction: column;
|
|
70
70
|
align-items: center;
|
|
@@ -12,6 +12,6 @@ import '@alfalab/hooks';
|
|
|
12
12
|
import '../../context.js';
|
|
13
13
|
import '../../utils.js';
|
|
14
14
|
import '../header/component.js';
|
|
15
|
-
import '../../countdown-section-
|
|
15
|
+
import '../../countdown-section-11874006.js';
|
|
16
16
|
import '@alfalab/core-components-loader/esm';
|
|
17
17
|
import '../countdown-loader/component.js';
|
|
@@ -7,7 +7,7 @@ import { Typography } from '@alfalab/core-components-typography/esm';
|
|
|
7
7
|
import { usePrevious } from '@alfalab/hooks';
|
|
8
8
|
import { ConfirmationContext } from '../../../context.js';
|
|
9
9
|
import { Header } from '../../header/component.js';
|
|
10
|
-
import { s as styles, C as CountdownSection } from '../../../countdown-section-
|
|
10
|
+
import { s as styles, C as CountdownSection } from '../../../countdown-section-11874006.js';
|
|
11
11
|
import '../../../utils.js';
|
|
12
12
|
import '@alfalab/core-components-loader/esm';
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ var CODE_SEND_HINT_VISIBLE_DURATION = 2000;
|
|
|
15
15
|
var Initial = function (_a) {
|
|
16
16
|
var _b;
|
|
17
17
|
var mobile = _a.mobile;
|
|
18
|
-
var _c = useContext(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;
|
|
18
|
+
var _c = useContext(ConfirmationContext), state = _c.state, alignContent = _c.alignContent, texts = _c.texts, requiredCharAmount = _c.requiredCharAmount, timeLeft = _c.timeLeft, phone = _c.phone, clearCodeOnError = _c.clearCodeOnError, hideCountdownSection = _c.hideCountdownSection, onChangeState = _c.onChangeState, onInputFinished = _c.onInputFinished, onChangeScreen = _c.onChangeScreen, onSmsRetryClick = _c.onSmsRetryClick;
|
|
19
19
|
var prevState = usePrevious(state);
|
|
20
20
|
var inputRef = useRef(null);
|
|
21
21
|
var _d = useState(false), codeSendHintVisible = _d[0], setCodeSendHintVisible = _d[1];
|
|
@@ -87,7 +87,7 @@ var Initial = function (_a) {
|
|
|
87
87
|
"\u041A\u043E\u0434 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D \u043D\u0430 ",
|
|
88
88
|
phone),
|
|
89
89
|
React.createElement(CodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, className: cn(styles.containerInput, styles.codeInput), onComplete: handleInputComplete, onChange: handleInputChange, clearCodeOnError: clearCodeOnError, onErrorAnimationEnd: handleErrorAnimationEnd }),
|
|
90
|
-
React.createElement(CountdownSection, { processing: processing, timePassed: timePassed, codeSendHintVisible: codeSendHintVisible, handleSmsRetryClick: handleSmsRetryClick, mobile: mobile }),
|
|
90
|
+
!hideCountdownSection && (React.createElement(CountdownSection, { processing: processing, timePassed: timePassed, codeSendHintVisible: codeSendHintVisible, handleSmsRetryClick: handleSmsRetryClick, mobile: mobile })),
|
|
91
91
|
mobile ? (React.createElement(Button, { onClick: handleSmsHintLinkClick, view: 'link', size: 'xs' }, texts.linkToHint)) : (React.createElement(Link, { onClick: handleSmsHintLinkClick, className: styles.smsComeLink, view: mobile ? 'primary' : 'secondary', pseudo: true }, texts.linkToHint))));
|
|
92
92
|
};
|
|
93
93
|
|
|
@@ -5,4 +5,4 @@ import '@alfalab/core-components-loader/esm';
|
|
|
5
5
|
import '@alfalab/core-components-typography/esm';
|
|
6
6
|
import '../../../context.js';
|
|
7
7
|
import '../../../utils.js';
|
|
8
|
-
export { C as CountdownSection } from '../../../countdown-section-
|
|
8
|
+
export { C as CountdownSection } from '../../../countdown-section-11874006.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bga6g */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-primary: #
|
|
5
|
-
--color-light-text-secondary: rgba(
|
|
6
|
-
} :root {
|
|
4
|
+
--color-light-text-primary: #0e0e0e;
|
|
5
|
+
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
7
7
|
} :root {
|
|
8
8
|
} :root {
|
|
9
9
|
|
|
@@ -38,51 +38,51 @@
|
|
|
38
38
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
39
39
|
|
|
40
40
|
/* header */
|
|
41
|
-
} .
|
|
41
|
+
} .confirmation__component_ytjey {
|
|
42
42
|
display: flex;
|
|
43
43
|
flex-direction: column;
|
|
44
|
-
} .
|
|
44
|
+
} .confirmation__typographyTheme_ytjey.confirmation__typographyTheme_ytjey {
|
|
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_ytjey.confirmation__phone_ytjey {
|
|
51
51
|
color: var(--color-light-text-primary);
|
|
52
52
|
margin-bottom: var(--gap-2xl);
|
|
53
|
-
} .
|
|
53
|
+
} .confirmation__compact_ytjey {
|
|
54
54
|
margin-bottom: var(--gap-xl);
|
|
55
|
-
} .
|
|
55
|
+
} .confirmation__loaderWrap_ytjey {
|
|
56
56
|
display: flex;
|
|
57
57
|
align-items: center;
|
|
58
|
-
} .
|
|
58
|
+
} .confirmation__left_ytjey {
|
|
59
59
|
align-items: flex-start;
|
|
60
|
-
} .
|
|
60
|
+
} .confirmation__center_ytjey {
|
|
61
61
|
align-items: center;
|
|
62
62
|
text-align: center
|
|
63
|
-
} .
|
|
63
|
+
} .confirmation__center_ytjey .confirmation__loaderWrap_ytjey {
|
|
64
64
|
justify-content: center;
|
|
65
|
-
} .
|
|
65
|
+
} .confirmation__center_ytjey input {
|
|
66
66
|
margin: 0 var(--gap-2xs);
|
|
67
|
-
} .
|
|
67
|
+
} .confirmation__codeInput_ytjey {
|
|
68
68
|
margin-bottom: var(--gap-s);
|
|
69
|
-
} .
|
|
69
|
+
} .confirmation__smsComeLink_ytjey.confirmation__smsComeLink_ytjey {
|
|
70
70
|
font-size: 14px;
|
|
71
71
|
line-height: 20px;
|
|
72
72
|
font-weight: 500;
|
|
73
|
-
} .
|
|
73
|
+
} .confirmation__countdownContainer_ytjey.confirmation__countdownContainer_ytjey {
|
|
74
74
|
color: var(--color-light-text-secondary);
|
|
75
75
|
margin-bottom: var(--gap-xl);
|
|
76
|
-
} .
|
|
76
|
+
} .confirmation__countdownMobile_ytjey.confirmation__countdownMobile_ytjey {
|
|
77
77
|
margin-bottom: var(--gap-l);
|
|
78
|
-
} .
|
|
78
|
+
} .confirmation__countdownLoaderMobile_ytjey.confirmation__countdownLoaderMobile_ytjey {
|
|
79
79
|
margin-bottom: var(--gap-m);
|
|
80
|
-
} .
|
|
80
|
+
} .confirmation__getCodeButton_ytjey {
|
|
81
81
|
position: relative;
|
|
82
82
|
top: var(--gap-2xs-neg);
|
|
83
83
|
margin-bottom: var(--gap-m);
|
|
84
|
-
} .
|
|
84
|
+
} .confirmation__getCodeButtonMobile_ytjey {
|
|
85
85
|
margin-bottom: 0;
|
|
86
|
-
} .
|
|
86
|
+
} .confirmation__containerInput_ytjey {
|
|
87
87
|
min-height: 80px;
|
|
88
88
|
}
|
|
@@ -9,5 +9,5 @@ import '@alfalab/hooks';
|
|
|
9
9
|
import '../../../context.js';
|
|
10
10
|
import '../../../utils.js';
|
|
11
11
|
import '../../header/component.js';
|
|
12
|
-
import '../../../countdown-section-
|
|
12
|
+
import '../../../countdown-section-11874006.js';
|
|
13
13
|
import '@alfalab/core-components-loader/esm';
|
|
@@ -6,7 +6,7 @@ import { useCountdown, formatMsAsMinutes } from '../../../utils.js';
|
|
|
6
6
|
import { CountdownLoader } from '../../countdown-loader/component.js';
|
|
7
7
|
import { Header } from '../../header/component.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"confirmation__component_bi00i","center":"confirmation__center_bi00i","typographyTheme":"confirmation__typographyTheme_bi00i","description":"confirmation__description_bi00i","countdownWrap":"confirmation__countdownWrap_bi00i","loader":"confirmation__loader_bi00i"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var TempBlock = function (_a) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tt6l */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-primary: #
|
|
5
|
-
} :root {
|
|
4
|
+
--color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
8
8
|
|
|
@@ -31,23 +31,23 @@
|
|
|
31
31
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
32
32
|
|
|
33
33
|
/* header */
|
|
34
|
-
} .
|
|
34
|
+
} .confirmation__component_bi00i {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
} .
|
|
37
|
+
} .confirmation__center_bi00i {
|
|
38
38
|
align-items: center;
|
|
39
39
|
text-align: center;
|
|
40
|
-
} .
|
|
40
|
+
} .confirmation__typographyTheme_bi00i.confirmation__typographyTheme_bi00i {
|
|
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_bi00i.confirmation__description_bi00i {
|
|
47
47
|
margin-bottom: var(--gap-xs);
|
|
48
|
-
} .
|
|
48
|
+
} .confirmation__countdownWrap_bi00i {
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
|
-
} .
|
|
51
|
+
} .confirmation__loader_bi00i {
|
|
52
52
|
margin-right: var(--gap-xs);
|
|
53
53
|
}
|
package/esm/context.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Typography } from '@alfalab/core-components-typography/esm';
|
|
|
6
6
|
import { ConfirmationContext } from './context.js';
|
|
7
7
|
import { formatMsAsMinutes } from './utils.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"confirmation__component_ytjey","typographyTheme":"confirmation__typographyTheme_ytjey","phone":"confirmation__phone_ytjey","compact":"confirmation__compact_ytjey","loaderWrap":"confirmation__loaderWrap_ytjey","left":"confirmation__left_ytjey","center":"confirmation__center_ytjey","codeInput":"confirmation__codeInput_ytjey","smsComeLink":"confirmation__smsComeLink_ytjey","countdownContainer":"confirmation__countdownContainer_ytjey","countdownMobile":"confirmation__countdownMobile_ytjey","countdownLoaderMobile":"confirmation__countdownLoaderMobile_ytjey","getCodeButton":"confirmation__getCodeButton_ytjey","getCodeButtonMobile":"confirmation__getCodeButtonMobile_ytjey","containerInput":"confirmation__containerInput_ytjey"};
|
|
10
10
|
require('./components/screens/initial/index.css')
|
|
11
11
|
|
|
12
12
|
var CountdownSection = function (_a) {
|
package/esm/desktop.js
CHANGED
|
@@ -13,7 +13,7 @@ import '@alfalab/core-components-code-input/esm';
|
|
|
13
13
|
import '@alfalab/core-components-link/esm';
|
|
14
14
|
import '@alfalab/core-components-typography/esm';
|
|
15
15
|
import './components/header/component.js';
|
|
16
|
-
import './countdown-section-
|
|
16
|
+
import './countdown-section-11874006.js';
|
|
17
17
|
import '@alfalab/core-components-loader/esm';
|
|
18
18
|
import './components/screens/hint/component.js';
|
|
19
19
|
import './components/screens/fatal-error/component.js';
|
package/esm/index.js
CHANGED
|
@@ -13,11 +13,11 @@ import 'react';
|
|
|
13
13
|
import './components/base-confirmation/component.js';
|
|
14
14
|
import 'classnames';
|
|
15
15
|
import '@alfalab/hooks';
|
|
16
|
+
import './component.mobile.js';
|
|
16
17
|
import '@alfalab/core-components-button/esm';
|
|
17
18
|
import '@alfalab/core-components-code-input/esm';
|
|
18
19
|
import '@alfalab/core-components-link/esm';
|
|
19
20
|
import '@alfalab/core-components-typography/esm';
|
|
20
21
|
import './components/header/component.js';
|
|
21
|
-
import './countdown-section-
|
|
22
|
+
import './countdown-section-11874006.js';
|
|
22
23
|
import '@alfalab/core-components-loader/esm';
|
|
23
|
-
import './component.mobile.js';
|
package/esm/mobile.css
CHANGED
package/esm/mobile.js
CHANGED
|
@@ -13,7 +13,7 @@ import '@alfalab/core-components-code-input/esm';
|
|
|
13
13
|
import '@alfalab/core-components-link/esm';
|
|
14
14
|
import '@alfalab/core-components-typography/esm';
|
|
15
15
|
import './components/header/component.js';
|
|
16
|
-
import './countdown-section-
|
|
16
|
+
import './countdown-section-11874006.js';
|
|
17
17
|
import '@alfalab/core-components-loader/esm';
|
|
18
18
|
import './components/screens/hint/component.js';
|
|
19
19
|
import './components/screens/fatal-error/component.js';
|
package/esm/responsive.js
CHANGED
|
@@ -14,7 +14,7 @@ import '@alfalab/core-components-code-input/esm';
|
|
|
14
14
|
import '@alfalab/core-components-link/esm';
|
|
15
15
|
import '@alfalab/core-components-typography/esm';
|
|
16
16
|
import './components/header/component.js';
|
|
17
|
-
import './countdown-section-
|
|
17
|
+
import './countdown-section-11874006.js';
|
|
18
18
|
import '@alfalab/core-components-loader/esm';
|
|
19
19
|
import './components/screens/hint/component.js';
|
|
20
20
|
import './components/screens/fatal-error/component.js';
|
package/esm/types.d.ts
CHANGED
|
@@ -84,8 +84,13 @@ type ConfirmationProps = {
|
|
|
84
84
|
* Дочерние элементы.
|
|
85
85
|
*/
|
|
86
86
|
children?: ReactNode;
|
|
87
|
+
/**
|
|
88
|
+
* Скрыть секцию с повторной отправкой кода
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
91
|
+
hideCountdownSection?: boolean;
|
|
87
92
|
};
|
|
88
|
-
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
|
|
93
|
+
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration' | 'hideCountdownSection'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
|
|
89
94
|
timeLeft: number;
|
|
90
95
|
};
|
|
91
96
|
type ConfirmationTexts = {
|
package/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var component_desktop = require('./component.desktop.js');
|
|
4
6
|
var component_responsive = require('./component.responsive.js');
|
|
5
7
|
var components_screens_initial_component = require('./components/screens/initial/component.js');
|
|
@@ -15,14 +17,14 @@ require('react');
|
|
|
15
17
|
require('./components/base-confirmation/component.js');
|
|
16
18
|
require('classnames');
|
|
17
19
|
require('@alfalab/hooks');
|
|
20
|
+
require('./component.mobile.js');
|
|
18
21
|
require('@alfalab/core-components-button');
|
|
19
22
|
require('@alfalab/core-components-code-input');
|
|
20
23
|
require('@alfalab/core-components-link');
|
|
21
24
|
require('@alfalab/core-components-typography');
|
|
22
25
|
require('./components/header/component.js');
|
|
23
|
-
require('./countdown-section-
|
|
26
|
+
require('./countdown-section-eeb2aaea.js');
|
|
24
27
|
require('@alfalab/core-components-loader');
|
|
25
|
-
require('./component.mobile.js');
|
|
26
28
|
|
|
27
29
|
|
|
28
30
|
|
package/mobile.css
CHANGED