@alfalab/core-components-confirmation 13.0.0 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/component.desktop.js +2 -2
- package/component.mobile.js +3 -3
- package/component.responsive.js +2 -2
- package/components/base-confirmation/component.js +5 -4
- package/components/base-confirmation/index.css +2 -2
- package/components/base-confirmation/index.js +2 -2
- package/components/countdown-loader/component.js +1 -1
- package/components/countdown-loader/index.css +2 -2
- package/components/header/component.js +1 -1
- package/components/header/index.css +4 -4
- package/components/index.js +2 -2
- 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 +2 -2
- package/components/screens/initial/component.js +13 -4
- package/components/screens/initial/countdown-section.js +2 -2
- package/components/screens/initial/index.css +17 -17
- package/components/screens/initial/index.js +2 -2
- package/components/screens/temp-block/component.js +1 -1
- package/components/screens/temp-block/index.css +7 -7
- package/context.js +1 -0
- package/{countdown-section-fb6524aa.js → countdown-section-b212c5b4.js} +3 -3
- package/cssm/component.desktop.js +1 -1
- package/cssm/component.mobile.js +1 -1
- package/cssm/component.responsive.js +1 -1
- package/cssm/components/base-confirmation/component.js +3 -2
- package/cssm/components/base-confirmation/index.js +1 -1
- package/cssm/components/index.js +1 -1
- package/cssm/components/screens/index.js +1 -1
- package/cssm/components/screens/initial/component.js +12 -3
- package/cssm/components/screens/initial/countdown-section.js +2 -2
- package/cssm/components/screens/initial/index.js +1 -1
- package/cssm/context.js +1 -0
- package/cssm/desktop.js +1 -1
- package/cssm/index.js +1 -1
- package/cssm/mobile.js +1 -1
- package/cssm/shared.js +1 -1
- package/cssm/types.d.ts +5 -1
- package/desktop.js +2 -2
- package/esm/component.desktop.js +2 -2
- package/esm/component.mobile.js +3 -3
- package/esm/component.responsive.js +2 -2
- package/esm/components/base-confirmation/component.js +5 -4
- package/esm/components/base-confirmation/index.css +2 -2
- package/esm/components/base-confirmation/index.js +2 -2
- package/esm/components/countdown-loader/component.js +1 -1
- package/esm/components/countdown-loader/index.css +2 -2
- package/esm/components/header/component.js +1 -1
- package/esm/components/header/index.css +4 -4
- package/esm/components/index.js +2 -2
- 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 +2 -2
- package/esm/components/screens/initial/component.js +13 -4
- package/esm/components/screens/initial/countdown-section.js +2 -2
- package/esm/components/screens/initial/index.css +17 -17
- package/esm/components/screens/initial/index.js +2 -2
- package/esm/components/screens/temp-block/component.js +1 -1
- package/esm/components/screens/temp-block/index.css +7 -7
- package/esm/context.js +1 -0
- package/esm/{countdown-section-c65cff2d.js → countdown-section-83d922ef.js} +3 -3
- package/esm/desktop.js +2 -2
- package/esm/index.js +2 -2
- package/esm/mobile.css +2 -2
- package/esm/mobile.js +2 -2
- package/esm/shared.js +2 -2
- package/esm/types.d.ts +5 -1
- package/index.js +2 -2
- package/mobile.css +2 -2
- package/mobile.js +2 -2
- package/modern/component.desktop.js +2 -2
- package/modern/component.mobile.js +3 -3
- package/modern/component.responsive.js +2 -2
- package/modern/components/base-confirmation/component.js +5 -4
- package/modern/components/base-confirmation/index.css +2 -2
- package/modern/components/base-confirmation/index.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/modern/components/screens/initial/component.js +13 -4
- package/modern/components/screens/initial/countdown-section.js +2 -2
- package/modern/components/screens/initial/index.css +17 -17
- package/modern/components/screens/initial/index.js +2 -2
- package/modern/components/screens/temp-block/component.js +1 -1
- package/modern/components/screens/temp-block/index.css +7 -7
- package/modern/context.js +1 -0
- package/modern/{countdown-section-dd4e5fe3.js → countdown-section-ea7af879.js} +3 -3
- package/modern/desktop.js +2 -2
- package/modern/index.js +2 -2
- package/modern/mobile.css +2 -2
- package/modern/mobile.js +2 -2
- package/modern/shared.js +2 -2
- package/modern/types.d.ts +5 -1
- package/package.json +3 -3
- package/shared.js +2 -2
- package/src/components/base-confirmation/component.tsx +2 -0
- package/src/components/screens/initial/component.tsx +27 -14
- package/src/components/screens/initial/countdown-section.tsx +2 -2
- package/src/context.ts +1 -0
- package/src/types.ts +10 -1
- package/types.d.ts +5 -1
- /package/{countdown-section-fb6524aa.d.ts → countdown-section-b212c5b4.d.ts} +0 -0
- /package/esm/{countdown-section-c65cff2d.d.ts → countdown-section-83d922ef.d.ts} +0 -0
- /package/modern/{countdown-section-dd4e5fe3.d.ts → countdown-section-ea7af879.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: l1yvu */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e;
|
|
@@ -37,49 +37,49 @@
|
|
|
37
37
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
38
38
|
|
|
39
39
|
/* header */
|
|
40
|
-
} .
|
|
40
|
+
} .confirmation__component_1yvyt {
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: column;
|
|
43
|
-
} .
|
|
43
|
+
} .confirmation__typographyTheme_1yvyt.confirmation__typographyTheme_1yvyt {
|
|
44
44
|
font-size: var(--confirmation-text-font-size);
|
|
45
45
|
line-height: var(--confirmation-text-line-height);
|
|
46
46
|
font-weight: var(--confirmation-text-font-weight);
|
|
47
47
|
font-family: var(--confirmation-text-font-family);
|
|
48
48
|
color: var(--confirmation-text-color);
|
|
49
|
-
} .
|
|
49
|
+
} .confirmation__phone_1yvyt.confirmation__phone_1yvyt {
|
|
50
50
|
color: var(--color-light-text-primary);
|
|
51
51
|
margin-bottom: var(--gap-2xl);
|
|
52
|
-
} .
|
|
52
|
+
} .confirmation__compact_1yvyt {
|
|
53
53
|
margin-bottom: var(--gap-xl);
|
|
54
|
-
} .
|
|
54
|
+
} .confirmation__loaderWrap_1yvyt {
|
|
55
55
|
display: flex;
|
|
56
56
|
align-items: center;
|
|
57
|
-
} .
|
|
57
|
+
} .confirmation__left_1yvyt {
|
|
58
58
|
align-items: flex-start;
|
|
59
|
-
} .
|
|
59
|
+
} .confirmation__center_1yvyt {
|
|
60
60
|
align-items: center;
|
|
61
61
|
text-align: center
|
|
62
|
-
} .
|
|
62
|
+
} .confirmation__center_1yvyt .confirmation__loaderWrap_1yvyt {
|
|
63
63
|
justify-content: center;
|
|
64
|
-
} .
|
|
64
|
+
} .confirmation__codeInput_1yvyt {
|
|
65
65
|
margin-bottom: var(--gap-s);
|
|
66
|
-
} .
|
|
66
|
+
} .confirmation__smsComeLink_1yvyt.confirmation__smsComeLink_1yvyt {
|
|
67
67
|
font-size: 14px;
|
|
68
68
|
line-height: 20px;
|
|
69
69
|
font-weight: 500;
|
|
70
|
-
} .
|
|
70
|
+
} .confirmation__countdownContainer_1yvyt.confirmation__countdownContainer_1yvyt {
|
|
71
71
|
color: var(--color-light-text-secondary);
|
|
72
72
|
margin-bottom: var(--gap-xl);
|
|
73
|
-
} .
|
|
73
|
+
} .confirmation__countdownMobile_1yvyt.confirmation__countdownMobile_1yvyt {
|
|
74
74
|
margin-bottom: var(--gap-l);
|
|
75
|
-
} .
|
|
75
|
+
} .confirmation__countdownLoaderMobile_1yvyt.confirmation__countdownLoaderMobile_1yvyt {
|
|
76
76
|
margin-bottom: var(--gap-m);
|
|
77
|
-
} .
|
|
77
|
+
} .confirmation__getCodeButton_1yvyt {
|
|
78
78
|
position: relative;
|
|
79
79
|
top: var(--gap-2xs-neg);
|
|
80
80
|
margin-bottom: var(--gap-m);
|
|
81
|
-
} .
|
|
81
|
+
} .confirmation__getCodeButtonMobile_1yvyt {
|
|
82
82
|
margin-bottom: 0;
|
|
83
|
-
} .
|
|
83
|
+
} .confirmation__containerInput_1yvyt {
|
|
84
84
|
min-height: 80px;
|
|
85
85
|
}
|
|
@@ -10,6 +10,6 @@ import '@alfalab/hooks';
|
|
|
10
10
|
import '../../../context.js';
|
|
11
11
|
import '../../../utils.js';
|
|
12
12
|
import '../../header/component.js';
|
|
13
|
-
import '../../../countdown-section-
|
|
13
|
+
import '../../../countdown-section-83d922ef.js';
|
|
14
14
|
import '@alfalab/core-components-button/esm';
|
|
15
|
-
import '@alfalab/core-components-
|
|
15
|
+
import '@alfalab/core-components-spinner/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_164iy","center":"confirmation__center_164iy","typographyTheme":"confirmation__typographyTheme_164iy","description":"confirmation__description_164iy","countdownWrap":"confirmation__countdownWrap_164iy","loader":"confirmation__loader_164iy"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var TempBlock = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ce4x */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
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 */
|
|
@@ -31,23 +31,23 @@
|
|
|
31
31
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
32
32
|
|
|
33
33
|
/* header */
|
|
34
|
-
} .
|
|
34
|
+
} .confirmation__component_164iy {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
} .
|
|
37
|
+
} .confirmation__center_164iy {
|
|
38
38
|
align-items: center;
|
|
39
39
|
text-align: center;
|
|
40
|
-
} .
|
|
40
|
+
} .confirmation__typographyTheme_164iy.confirmation__typographyTheme_164iy {
|
|
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_164iy.confirmation__description_164iy {
|
|
47
47
|
margin-bottom: var(--gap-xs);
|
|
48
|
-
} .
|
|
48
|
+
} .confirmation__countdownWrap_164iy {
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
|
-
} .
|
|
51
|
+
} .confirmation__loader_164iy {
|
|
52
52
|
margin-right: var(--gap-xs);
|
|
53
53
|
}
|
package/esm/context.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Button } from '@alfalab/core-components-button/esm';
|
|
4
|
-
import {
|
|
4
|
+
import { Spinner } from '@alfalab/core-components-spinner/esm';
|
|
5
5
|
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_1yvyt","typographyTheme":"confirmation__typographyTheme_1yvyt","phone":"confirmation__phone_1yvyt","compact":"confirmation__compact_1yvyt","loaderWrap":"confirmation__loaderWrap_1yvyt","left":"confirmation__left_1yvyt","center":"confirmation__center_1yvyt","codeInput":"confirmation__codeInput_1yvyt","smsComeLink":"confirmation__smsComeLink_1yvyt","countdownContainer":"confirmation__countdownContainer_1yvyt","countdownMobile":"confirmation__countdownMobile_1yvyt","countdownLoaderMobile":"confirmation__countdownLoaderMobile_1yvyt","getCodeButton":"confirmation__getCodeButton_1yvyt","getCodeButtonMobile":"confirmation__getCodeButtonMobile_1yvyt","containerInput":"confirmation__containerInput_1yvyt"};
|
|
10
10
|
require('./components/screens/initial/index.css')
|
|
11
11
|
|
|
12
12
|
var CountdownSection = function (_a) {
|
|
@@ -27,7 +27,7 @@ var CountdownSection = function (_a) {
|
|
|
27
27
|
_b[styles.countdownLoaderMobile] = mobile,
|
|
28
28
|
_b[styles.typographyTheme] = !mobile,
|
|
29
29
|
_b)) },
|
|
30
|
-
React.createElement(
|
|
30
|
+
React.createElement(Spinner, { visible: true }),
|
|
31
31
|
React.createElement("span", { className: styles.loaderText }, state === 'CODE_CHECKING' ? texts.codeChecking : texts.codeSending)));
|
|
32
32
|
}
|
|
33
33
|
if (blockSmsRetry)
|
package/esm/desktop.js
CHANGED
|
@@ -14,9 +14,9 @@ import '@alfalab/core-components-code-input/esm/mobile';
|
|
|
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-83d922ef.js';
|
|
18
18
|
import '@alfalab/core-components-button/esm';
|
|
19
|
-
import '@alfalab/core-components-
|
|
19
|
+
import '@alfalab/core-components-spinner/esm';
|
|
20
20
|
import './components/screens/hint/component.js';
|
|
21
21
|
import './components/screens/fatal-error/component.js';
|
|
22
22
|
import './components/screens/temp-block/component.js';
|
package/esm/index.js
CHANGED
|
@@ -16,9 +16,9 @@ import '@alfalab/core-components-code-input/esm/mobile';
|
|
|
16
16
|
import '@alfalab/core-components-link/esm';
|
|
17
17
|
import '@alfalab/core-components-typography/esm';
|
|
18
18
|
import './components/header/component.js';
|
|
19
|
-
import './countdown-section-
|
|
19
|
+
import './countdown-section-83d922ef.js';
|
|
20
20
|
import '@alfalab/core-components-button/esm';
|
|
21
|
-
import '@alfalab/core-components-
|
|
21
|
+
import '@alfalab/core-components-spinner/esm';
|
|
22
22
|
import './components/screens/hint/component.js';
|
|
23
23
|
import './components/screens/fatal-error/component.js';
|
|
24
24
|
import './components/screens/temp-block/component.js';
|
package/esm/mobile.css
CHANGED
package/esm/mobile.js
CHANGED
|
@@ -14,9 +14,9 @@ import '@alfalab/core-components-code-input/esm/mobile';
|
|
|
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-83d922ef.js';
|
|
18
18
|
import '@alfalab/core-components-button/esm';
|
|
19
|
-
import '@alfalab/core-components-
|
|
19
|
+
import '@alfalab/core-components-spinner/esm';
|
|
20
20
|
import './components/screens/hint/component.js';
|
|
21
21
|
import './components/screens/fatal-error/component.js';
|
|
22
22
|
import './components/screens/temp-block/component.js';
|
package/esm/shared.js
CHANGED
|
@@ -15,6 +15,6 @@ import '@alfalab/core-components-link/esm';
|
|
|
15
15
|
import '@alfalab/core-components-typography/esm';
|
|
16
16
|
import '@alfalab/hooks';
|
|
17
17
|
import './components/header/component.js';
|
|
18
|
-
import './countdown-section-
|
|
18
|
+
import './countdown-section-83d922ef.js';
|
|
19
19
|
import '@alfalab/core-components-button/esm';
|
|
20
|
-
import '@alfalab/core-components-
|
|
20
|
+
import '@alfalab/core-components-spinner/esm';
|
package/esm/types.d.ts
CHANGED
|
@@ -89,13 +89,17 @@ type ConfirmationProps = {
|
|
|
89
89
|
* @default false
|
|
90
90
|
*/
|
|
91
91
|
hideCountdownSection?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Слот для контента с подсказкой на главном экране
|
|
94
|
+
*/
|
|
95
|
+
initialScreenHintSlot?: ReactNode;
|
|
92
96
|
/**
|
|
93
97
|
* Контрольная точка для кнопки, с нее начинается desktop версия
|
|
94
98
|
* @default 1024
|
|
95
99
|
*/
|
|
96
100
|
breakpoint?: number;
|
|
97
101
|
};
|
|
98
|
-
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration' | 'hideCountdownSection'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
|
|
102
|
+
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration' | 'hideCountdownSection'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError' | 'initialScreenHintSlot'> & {
|
|
99
103
|
timeLeft: number;
|
|
100
104
|
} & {
|
|
101
105
|
/**
|
package/index.js
CHANGED
|
@@ -20,9 +20,9 @@ require('@alfalab/core-components-code-input/mobile');
|
|
|
20
20
|
require('@alfalab/core-components-link');
|
|
21
21
|
require('@alfalab/core-components-typography');
|
|
22
22
|
require('./components/header/component.js');
|
|
23
|
-
require('./countdown-section-
|
|
23
|
+
require('./countdown-section-b212c5b4.js');
|
|
24
24
|
require('@alfalab/core-components-button');
|
|
25
|
-
require('@alfalab/core-components-
|
|
25
|
+
require('@alfalab/core-components-spinner');
|
|
26
26
|
require('./components/screens/hint/component.js');
|
|
27
27
|
require('./components/screens/fatal-error/component.js');
|
|
28
28
|
require('./components/screens/temp-block/component.js');
|
package/mobile.css
CHANGED
package/mobile.js
CHANGED
|
@@ -18,9 +18,9 @@ require('@alfalab/core-components-code-input/mobile');
|
|
|
18
18
|
require('@alfalab/core-components-link');
|
|
19
19
|
require('@alfalab/core-components-typography');
|
|
20
20
|
require('./components/header/component.js');
|
|
21
|
-
require('./countdown-section-
|
|
21
|
+
require('./countdown-section-b212c5b4.js');
|
|
22
22
|
require('@alfalab/core-components-button');
|
|
23
|
-
require('@alfalab/core-components-
|
|
23
|
+
require('@alfalab/core-components-spinner');
|
|
24
24
|
require('./components/screens/hint/component.js');
|
|
25
25
|
require('./components/screens/fatal-error/component.js');
|
|
26
26
|
require('./components/screens/temp-block/component.js');
|
|
@@ -12,9 +12,9 @@ import '@alfalab/core-components-code-input/modern/mobile';
|
|
|
12
12
|
import '@alfalab/core-components-link/modern';
|
|
13
13
|
import '@alfalab/core-components-typography/modern';
|
|
14
14
|
import './components/header/component.js';
|
|
15
|
-
import './countdown-section-
|
|
15
|
+
import './countdown-section-ea7af879.js';
|
|
16
16
|
import '@alfalab/core-components-button/modern';
|
|
17
|
-
import '@alfalab/core-components-
|
|
17
|
+
import '@alfalab/core-components-spinner/modern';
|
|
18
18
|
import './components/screens/hint/component.js';
|
|
19
19
|
import './components/screens/fatal-error/component.js';
|
|
20
20
|
import './components/screens/temp-block/component.js';
|
|
@@ -12,15 +12,15 @@ import '@alfalab/core-components-code-input/modern/mobile';
|
|
|
12
12
|
import '@alfalab/core-components-link/modern';
|
|
13
13
|
import '@alfalab/core-components-typography/modern';
|
|
14
14
|
import './components/header/component.js';
|
|
15
|
-
import './countdown-section-
|
|
15
|
+
import './countdown-section-ea7af879.js';
|
|
16
16
|
import '@alfalab/core-components-button/modern';
|
|
17
|
-
import '@alfalab/core-components-
|
|
17
|
+
import '@alfalab/core-components-spinner/modern';
|
|
18
18
|
import './components/screens/hint/component.js';
|
|
19
19
|
import './components/screens/fatal-error/component.js';
|
|
20
20
|
import './components/screens/temp-block/component.js';
|
|
21
21
|
import './components/countdown-loader/component.js';
|
|
22
22
|
|
|
23
|
-
const styles = {"container":"
|
|
23
|
+
const styles = {"container":"confirmation__container_bsppw"};
|
|
24
24
|
require('./mobile.css')
|
|
25
25
|
|
|
26
26
|
const ConfirmationMobile = ({ className, ...resProps }) => (React.createElement(BaseConfirmation, { mobile: true, className: cn(className, styles.container), ...resProps }));
|
|
@@ -15,9 +15,9 @@ import '@alfalab/core-components-code-input/modern/mobile';
|
|
|
15
15
|
import '@alfalab/core-components-link/modern';
|
|
16
16
|
import '@alfalab/core-components-typography/modern';
|
|
17
17
|
import './components/header/component.js';
|
|
18
|
-
import './countdown-section-
|
|
18
|
+
import './countdown-section-ea7af879.js';
|
|
19
19
|
import '@alfalab/core-components-button/modern';
|
|
20
|
-
import '@alfalab/core-components-
|
|
20
|
+
import '@alfalab/core-components-spinner/modern';
|
|
21
21
|
import './components/screens/hint/component.js';
|
|
22
22
|
import './components/screens/fatal-error/component.js';
|
|
23
23
|
import './components/screens/temp-block/component.js';
|
|
@@ -14,12 +14,12 @@ import '@alfalab/core-components-code-input/modern/mobile';
|
|
|
14
14
|
import '@alfalab/core-components-link/modern';
|
|
15
15
|
import '@alfalab/core-components-typography/modern';
|
|
16
16
|
import '../header/component.js';
|
|
17
|
-
import '../../countdown-section-
|
|
17
|
+
import '../../countdown-section-ea7af879.js';
|
|
18
18
|
import '@alfalab/core-components-button/modern';
|
|
19
|
-
import '@alfalab/core-components-
|
|
19
|
+
import '@alfalab/core-components-spinner/modern';
|
|
20
20
|
import '../countdown-loader/component.js';
|
|
21
21
|
|
|
22
|
-
const styles = {"component":"
|
|
22
|
+
const styles = {"component":"confirmation__component_yc1y8"};
|
|
23
23
|
require('./index.css')
|
|
24
24
|
|
|
25
25
|
const confirmationScreens = {
|
|
@@ -28,7 +28,7 @@ const confirmationScreens = {
|
|
|
28
28
|
FATAL_ERROR: FatalError,
|
|
29
29
|
TEMP_BLOCK: TempBlock,
|
|
30
30
|
};
|
|
31
|
-
const BaseConfirmation = ({ state, screen, alignContent = 'left', children, requiredCharAmount = 5, countdownDuration = ONE_MINUTE, tempBlockDuration = ONE_DAY, phone, blockSmsRetry, dataTestId, className, getScreensMap, onInputFinished, onChangeState, onSmsRetryClick, onChangeScreen, onFatalErrorOkButtonClick, onTempBlockFinished, mobile, clearCodeOnError = true, hideCountdownSection = false, breakpoint = 1024, ...restProps }) => {
|
|
31
|
+
const BaseConfirmation = ({ state, screen, alignContent = 'left', children, requiredCharAmount = 5, countdownDuration = ONE_MINUTE, tempBlockDuration = ONE_DAY, phone, blockSmsRetry, dataTestId, className, getScreensMap, onInputFinished, onChangeState, onSmsRetryClick, onChangeScreen, onFatalErrorOkButtonClick, onTempBlockFinished, mobile, clearCodeOnError = true, hideCountdownSection = false, breakpoint = 1024, initialScreenHintSlot, ...restProps }) => {
|
|
32
32
|
const [timeLeft, startTimer, stopTimer] = useCountdown(countdownDuration);
|
|
33
33
|
const prevState = usePrevious(state);
|
|
34
34
|
useEffect(() => {
|
|
@@ -81,6 +81,7 @@ const BaseConfirmation = ({ state, screen, alignContent = 'left', children, requ
|
|
|
81
81
|
onChangeState,
|
|
82
82
|
onChangeScreen,
|
|
83
83
|
clearCodeOnError,
|
|
84
|
+
initialScreenHintSlot,
|
|
84
85
|
onInputFinished: handleInputFinished,
|
|
85
86
|
onSmsRetryClick: handleSmsRetry,
|
|
86
87
|
onFatalErrorOkButtonClick: handleFatalErrorOkButtonClick,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: y79yc */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
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 */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .confirmation__component_yc1y8 {
|
|
19
19
|
width: 100%;
|
|
20
20
|
max-width: 388px;
|
|
21
21
|
margin: 0 auto;
|
|
@@ -12,9 +12,9 @@ import '@alfalab/core-components-code-input/modern/mobile';
|
|
|
12
12
|
import '@alfalab/core-components-link/modern';
|
|
13
13
|
import '@alfalab/core-components-typography/modern';
|
|
14
14
|
import '../header/component.js';
|
|
15
|
-
import '../../countdown-section-
|
|
15
|
+
import '../../countdown-section-ea7af879.js';
|
|
16
16
|
import '@alfalab/core-components-button/modern';
|
|
17
|
-
import '@alfalab/core-components-
|
|
17
|
+
import '@alfalab/core-components-spinner/modern';
|
|
18
18
|
import '../screens/hint/component.js';
|
|
19
19
|
import '../screens/fatal-error/component.js';
|
|
20
20
|
import '../screens/temp-block/component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3um9q */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
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 */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .confirmation__circle_xhpak {
|
|
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/modern';
|
|
4
4
|
|
|
5
|
-
const styles = {"header":"
|
|
5
|
+
const styles = {"header":"confirmation__header_1olfk","typography":"confirmation__typography_1olfk","typographyMobile":"confirmation__typographyMobile_1olfk"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Header = ({ mobile, children }) => (React.createElement(Typography.Title, { className: cn(styles.header, styles.typography, { [styles.typographyMobile]: mobile }), tag: 'h3', color: 'primary' }, children));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 16j1o */
|
|
2
2
|
:root {
|
|
3
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
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 */
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
|
|
35
35
|
/* header */
|
|
36
36
|
--confirmation-header-font-feature-settings: normal
|
|
37
|
-
} .
|
|
37
|
+
} .confirmation__header_1olfk.confirmation__header_1olfk {
|
|
38
38
|
margin-bottom: var(--gap-xl);
|
|
39
|
-
} .
|
|
39
|
+
} .confirmation__typography_1olfk.confirmation__typography_1olfk.confirmation__typography_1olfk {
|
|
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_1olfk.confirmation__typographyMobile_1olfk.confirmation__typographyMobile_1olfk {
|
|
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);
|
|
@@ -14,6 +14,6 @@ import '@alfalab/hooks';
|
|
|
14
14
|
import '../context.js';
|
|
15
15
|
import '../utils.js';
|
|
16
16
|
import './header/component.js';
|
|
17
|
-
import '../countdown-section-
|
|
17
|
+
import '../countdown-section-ea7af879.js';
|
|
18
18
|
import '@alfalab/core-components-button/modern';
|
|
19
|
-
import '@alfalab/core-components-
|
|
19
|
+
import '@alfalab/core-components-spinner/modern';
|
|
@@ -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
|
-
const styles = {"component":"
|
|
9
|
+
const styles = {"component":"confirmation__component_1bof9","typographyTheme":"confirmation__typographyTheme_1bof9","left":"confirmation__left_1bof9","center":"confirmation__center_1bof9","button":"confirmation__button_1bof9"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const FatalError = ({ mobile }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: e2xry */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
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 */
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
32
32
|
|
|
33
33
|
/* header */
|
|
34
|
-
} .
|
|
34
|
+
} .confirmation__component_1bof9 {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
} .
|
|
37
|
+
} .confirmation__typographyTheme_1bof9.confirmation__typographyTheme_1bof9 {
|
|
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_1bof9 {
|
|
44
44
|
align-items: flex-start;
|
|
45
|
-
} .
|
|
45
|
+
} .confirmation__center_1bof9 {
|
|
46
46
|
align-items: center;
|
|
47
47
|
text-align: center;
|
|
48
|
-
} .
|
|
48
|
+
} .confirmation__button_1bof9 {
|
|
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
|
-
const styles = {"component":"
|
|
10
|
+
const styles = {"component":"confirmation__component_qgws3","center":"confirmation__center_qgws3","text":"confirmation__text_qgws3","typographyTheme":"confirmation__typographyTheme_qgws3","phonesWrap":"confirmation__phonesWrap_qgws3","phoneWrap":"confirmation__phoneWrap_qgws3","phoneLink":"confirmation__phoneLink_qgws3","hintButton":"confirmation__hintButton_qgws3","phoneContentMobile":"confirmation__phoneContentMobile_qgws3"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
const Hint = ({ mobile }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1cl2j */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
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 */
|
|
@@ -33,38 +33,38 @@
|
|
|
33
33
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
34
34
|
|
|
35
35
|
/* header */
|
|
36
|
-
} .
|
|
36
|
+
} .confirmation__component_qgws3 {
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: column;
|
|
39
39
|
align-items: flex-start
|
|
40
|
-
} .
|
|
40
|
+
} .confirmation__component_qgws3 span:last-of-type {
|
|
41
41
|
margin-bottom: 0;
|
|
42
|
-
} .
|
|
42
|
+
} .confirmation__center_qgws3 {
|
|
43
43
|
align-items: center;
|
|
44
44
|
text-align: center;
|
|
45
|
-
} .
|
|
45
|
+
} .confirmation__text_qgws3.confirmation__text_qgws3 {
|
|
46
46
|
margin-bottom: var(--gap-xl);
|
|
47
|
-
} .
|
|
47
|
+
} .confirmation__typographyTheme_qgws3.confirmation__typographyTheme_qgws3 {
|
|
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_qgws3 {
|
|
54
54
|
display: flex;
|
|
55
55
|
flex-direction: column;
|
|
56
56
|
margin-bottom: var(--gap-xl);
|
|
57
|
-
} .
|
|
57
|
+
} .confirmation__phoneWrap_qgws3 {
|
|
58
58
|
margin-bottom: var(--gap-xs)
|
|
59
|
-
} .
|
|
59
|
+
} .confirmation__phoneWrap_qgws3:last-child {
|
|
60
60
|
margin-bottom: 0;
|
|
61
|
-
} .
|
|
61
|
+
} .confirmation__phoneLink_qgws3.confirmation__phoneLink_qgws3 {
|
|
62
62
|
font-size: 16px;
|
|
63
63
|
line-height: 24px;
|
|
64
64
|
font-weight: 500;
|
|
65
|
-
} .
|
|
65
|
+
} .confirmation__hintButton_qgws3 {
|
|
66
66
|
margin-top: var(--gap-2xl);
|
|
67
|
-
} .
|
|
67
|
+
} .confirmation__phoneContentMobile_qgws3 {
|
|
68
68
|
display: flex;
|
|
69
69
|
flex-direction: column;
|
|
70
70
|
align-items: center;
|
|
@@ -13,7 +13,7 @@ import '@alfalab/hooks';
|
|
|
13
13
|
import '../../context.js';
|
|
14
14
|
import '../../utils.js';
|
|
15
15
|
import '../header/component.js';
|
|
16
|
-
import '../../countdown-section-
|
|
16
|
+
import '../../countdown-section-ea7af879.js';
|
|
17
17
|
import '@alfalab/core-components-button/modern';
|
|
18
|
-
import '@alfalab/core-components-
|
|
18
|
+
import '@alfalab/core-components-spinner/modern';
|
|
19
19
|
import '../countdown-loader/component.js';
|