@alfalab/core-components-confirmation 10.3.1 → 10.4.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/CHANGELOG.md +31 -0
- package/component.js +2 -2
- package/components/countdown-loader/component.js +1 -1
- package/components/countdown-loader/index.css +2 -2
- package/components/index.js +1 -1
- package/components/screens/fatal-error/component.js +1 -1
- package/components/screens/fatal-error/index.css +3 -3
- package/components/screens/hint/component.js +1 -1
- package/components/screens/hint/index.css +13 -13
- package/components/screens/index.js +1 -1
- package/components/screens/initial/component.js +1 -1
- package/components/screens/initial/countdown-section.js +1 -1
- package/components/screens/initial/index.css +18 -15
- package/components/screens/initial/index.js +1 -1
- package/components/screens/temp-block/component.js +1 -1
- package/components/screens/temp-block/index.css +5 -5
- package/{countdown-section-8d2ab7dc.d.ts → countdown-section-7c7d6f72.d.ts} +0 -0
- package/{countdown-section-8d2ab7dc.js → countdown-section-7c7d6f72.js} +1 -1
- package/cssm/component.js +4 -4
- package/cssm/components/index.js +4 -4
- package/cssm/components/screens/fatal-error/component.js +1 -1
- package/cssm/components/screens/fatal-error/index.js +1 -1
- package/cssm/components/screens/hint/component.js +2 -2
- package/cssm/components/screens/hint/index.js +2 -2
- package/cssm/components/screens/index.js +4 -4
- package/cssm/components/screens/initial/component.js +4 -4
- package/cssm/components/screens/initial/countdown-section.js +2 -2
- package/cssm/components/screens/initial/index.js +4 -4
- package/cssm/components/screens/initial/index.module.css +3 -0
- package/cssm/index.js +4 -4
- package/cssm/types.d.ts +4 -0
- package/esm/component.js +6 -6
- package/esm/components/countdown-loader/component.js +1 -1
- package/esm/components/countdown-loader/index.css +2 -2
- package/esm/components/index.js +5 -5
- package/esm/components/screens/fatal-error/component.js +2 -2
- package/esm/components/screens/fatal-error/index.css +3 -3
- package/esm/components/screens/fatal-error/index.js +1 -1
- package/esm/components/screens/hint/component.js +3 -3
- package/esm/components/screens/hint/index.css +13 -13
- package/esm/components/screens/hint/index.js +2 -2
- package/esm/components/screens/index.js +5 -5
- package/esm/components/screens/initial/component.js +5 -5
- package/esm/components/screens/initial/countdown-section.js +3 -3
- package/esm/components/screens/initial/index.css +18 -15
- package/esm/components/screens/initial/index.js +5 -5
- package/esm/components/screens/temp-block/component.js +1 -1
- package/esm/components/screens/temp-block/index.css +5 -5
- package/esm/{countdown-section-5af6ca6c.d.ts → countdown-section-9d037a03.d.ts} +0 -0
- package/esm/{countdown-section-5af6ca6c.js → countdown-section-9d037a03.js} +3 -3
- package/esm/index.css +3 -3
- package/esm/index.js +5 -5
- package/esm/types.d.ts +4 -0
- package/index.css +3 -3
- package/index.js +1 -1
- package/modern/component.js +6 -6
- package/modern/components/countdown-loader/component.js +1 -1
- package/modern/components/countdown-loader/index.css +2 -2
- package/modern/components/index.js +5 -5
- package/modern/components/screens/fatal-error/component.js +2 -2
- package/modern/components/screens/fatal-error/index.css +3 -3
- package/modern/components/screens/fatal-error/index.js +1 -1
- package/modern/components/screens/hint/component.js +3 -3
- package/modern/components/screens/hint/index.css +13 -13
- package/modern/components/screens/hint/index.js +2 -2
- package/modern/components/screens/index.js +5 -5
- package/modern/components/screens/initial/component.js +5 -5
- package/modern/components/screens/initial/countdown-section.js +3 -3
- package/modern/components/screens/initial/index.css +18 -15
- package/modern/components/screens/initial/index.js +5 -5
- package/modern/components/screens/temp-block/component.js +1 -1
- package/modern/components/screens/temp-block/index.css +5 -5
- package/modern/{countdown-section-2b5dbe74.d.ts → countdown-section-184fc0e5.d.ts} +0 -0
- package/modern/{countdown-section-2b5dbe74.js → countdown-section-184fc0e5.js} +3 -3
- package/modern/index.css +3 -3
- package/modern/index.js +5 -5
- package/modern/types.d.ts +4 -0
- package/package.json +8 -8
- package/types.d.ts +4 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: kspi1 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
--color-light-text-secondary: #546272;
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
|
|
41
41
|
/* input */
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.confirmation__center_dp4zg .confirmation__phoneHintWrap_dp4zg {
|
|
44
44
|
align-items: center;
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.confirmation__center_dp4zg .confirmation__hintWrap_dp4zg {
|
|
47
47
|
align-items: center;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.confirmation__hintWrap_dp4zg {
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
align-items: flex-start;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.confirmation__title_dp4zg {
|
|
55
55
|
margin: 0;
|
|
56
56
|
margin-bottom: var(--gap-xl);
|
|
57
57
|
font-size: var(--confirmation-title-font-size);
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
color: var(--confirmation-title-color);
|
|
62
62
|
font-feature-settings: var(--confirmation-title-font-feature-settings);
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.confirmation__text_dp4zg {
|
|
65
65
|
font-size: var(--confirmation-text-font-size);
|
|
66
66
|
line-height: var(--confirmation-text-line-height);
|
|
67
67
|
font-weight: var(--confirmation-text-font-weight);
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
margin-bottom: var(--gap-xl);
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.confirmation__phonesWrap_dp4zg {
|
|
74
74
|
font-size: var(--confirmation-text-font-size);
|
|
75
75
|
line-height: var(--confirmation-text-line-height);
|
|
76
76
|
font-weight: var(--confirmation-text-font-weight);
|
|
@@ -81,23 +81,23 @@
|
|
|
81
81
|
flex-direction: column;
|
|
82
82
|
margin-bottom: var(--gap-xl);
|
|
83
83
|
}
|
|
84
|
-
.
|
|
84
|
+
.confirmation__phoneWrap_dp4zg {
|
|
85
85
|
margin-bottom: var(--gap-xs)
|
|
86
86
|
}
|
|
87
|
-
.
|
|
87
|
+
.confirmation__phoneWrap_dp4zg:last-child {
|
|
88
88
|
margin-bottom: 0;
|
|
89
89
|
}
|
|
90
|
-
.
|
|
90
|
+
.confirmation__phoneLink_dp4zg {
|
|
91
91
|
font-size: 16px;
|
|
92
92
|
line-height: 24px;
|
|
93
93
|
font-weight: 500
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
.confirmation__phoneLink_dp4zg > span {
|
|
96
96
|
border-bottom: none;
|
|
97
97
|
}
|
|
98
|
-
.
|
|
98
|
+
.confirmation__phoneDescription_dp4zg {
|
|
99
99
|
color: var(--confirmation-text-color);
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
.confirmation__hintButton_dp4zg {
|
|
102
102
|
margin-top: var(--gap-2xl);
|
|
103
103
|
}
|
|
@@ -2,6 +2,6 @@ import 'react';
|
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import '../../../utils.js';
|
|
4
4
|
import '../../../context.js';
|
|
5
|
-
import '@alfalab/core-components-link/
|
|
6
|
-
import '@alfalab/core-components-button/
|
|
5
|
+
import '@alfalab/core-components-link/modern';
|
|
6
|
+
import '@alfalab/core-components-button/modern';
|
|
7
7
|
export { Hint } from './component.js';
|
|
@@ -3,11 +3,11 @@ import 'classnames';
|
|
|
3
3
|
import '@alfalab/hooks';
|
|
4
4
|
import '../../utils.js';
|
|
5
5
|
import '../../context.js';
|
|
6
|
-
import '@alfalab/core-components-code-input/
|
|
7
|
-
import '@alfalab/core-components-link/
|
|
8
|
-
import '../../countdown-section-
|
|
9
|
-
import '@alfalab/core-components-loader/
|
|
10
|
-
import '@alfalab/core-components-button/
|
|
6
|
+
import '@alfalab/core-components-code-input/modern';
|
|
7
|
+
import '@alfalab/core-components-link/modern';
|
|
8
|
+
import '../../countdown-section-184fc0e5.js';
|
|
9
|
+
import '@alfalab/core-components-loader/modern';
|
|
10
|
+
import '@alfalab/core-components-button/modern';
|
|
11
11
|
export { Initial } from './initial/component.js';
|
|
12
12
|
export { Hint } from './hint/component.js';
|
|
13
13
|
export { FatalError } from './fatal-error/component.js';
|
|
@@ -3,11 +3,11 @@ import cn from 'classnames';
|
|
|
3
3
|
import { usePrevious } from '@alfalab/hooks';
|
|
4
4
|
import '../../../utils.js';
|
|
5
5
|
import { ConfirmationContext } from '../../../context.js';
|
|
6
|
-
import { CodeInput } from '@alfalab/core-components-code-input/
|
|
7
|
-
import { Link } from '@alfalab/core-components-link/
|
|
8
|
-
import { s as styles, C as CountdownSection } from '../../../countdown-section-
|
|
9
|
-
import '@alfalab/core-components-loader/
|
|
10
|
-
import '@alfalab/core-components-button/
|
|
6
|
+
import { CodeInput } from '@alfalab/core-components-code-input/modern';
|
|
7
|
+
import { Link } from '@alfalab/core-components-link/modern';
|
|
8
|
+
import { s as styles, C as CountdownSection } from '../../../countdown-section-184fc0e5.js';
|
|
9
|
+
import '@alfalab/core-components-loader/modern';
|
|
10
|
+
import '@alfalab/core-components-button/modern';
|
|
11
11
|
|
|
12
12
|
const CODE_SEND_HINT_VISIBLE_DURATION = 2000;
|
|
13
13
|
const Initial = () => {
|
|
@@ -2,6 +2,6 @@ import 'react';
|
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import '../../../utils.js';
|
|
4
4
|
import '../../../context.js';
|
|
5
|
-
export { C as CountdownSection } from '../../../countdown-section-
|
|
6
|
-
import '@alfalab/core-components-loader/
|
|
7
|
-
import '@alfalab/core-components-button/
|
|
5
|
+
export { C as CountdownSection } from '../../../countdown-section-184fc0e5.js';
|
|
6
|
+
import '@alfalab/core-components-loader/modern';
|
|
7
|
+
import '@alfalab/core-components-button/modern';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1kft5 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
|
|
37
37
|
/* input */
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.confirmation__component_1lhct {
|
|
40
40
|
display: flex;
|
|
41
41
|
flex-direction: column;
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.confirmation__header_1lhct {
|
|
44
44
|
margin: 0;
|
|
45
45
|
margin-bottom: var(--gap-xl);
|
|
46
46
|
font-size: var(--confirmation-title-font-size);
|
|
@@ -50,47 +50,50 @@
|
|
|
50
50
|
color: var(--confirmation-title-color);
|
|
51
51
|
font-feature-settings: var(--confirmation-title-font-feature-settings);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.confirmation__phone_1lhct {
|
|
54
54
|
margin-bottom: var(--gap-2xl);
|
|
55
55
|
color: var(--color-light-text-primary);
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.confirmation__inputContainer_1lhct {
|
|
58
58
|
display: flex;
|
|
59
59
|
flex-direction: column;
|
|
60
60
|
margin-bottom: var(--gap-2xl);
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.confirmation__compact_1lhct {
|
|
63
63
|
margin-bottom: var(--gap-xl);
|
|
64
64
|
}
|
|
65
|
-
.
|
|
65
|
+
.confirmation__loaderWrap_1lhct {
|
|
66
66
|
display: flex;
|
|
67
67
|
align-items: center;
|
|
68
68
|
}
|
|
69
|
-
.
|
|
69
|
+
.confirmation__center_1lhct {
|
|
70
70
|
align-items: center;
|
|
71
71
|
text-align: center
|
|
72
72
|
}
|
|
73
|
-
.
|
|
74
|
-
.
|
|
73
|
+
.confirmation__center_1lhct .confirmation__codeInput_1lhct,
|
|
74
|
+
.confirmation__center_1lhct .confirmation__loaderWrap_1lhct {
|
|
75
75
|
justify-content: center;
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.confirmation__center_1lhct input {
|
|
78
|
+
margin: 0 var(--gap-2xs);
|
|
79
|
+
}
|
|
80
|
+
.confirmation__smsComeLink_1lhct {
|
|
78
81
|
font-size: 14px;
|
|
79
82
|
line-height: 20px;
|
|
80
83
|
font-weight: 400;
|
|
81
84
|
}
|
|
82
|
-
.
|
|
85
|
+
.confirmation__countdownContainer_1lhct {
|
|
83
86
|
margin-bottom: var(--gap-xl);
|
|
84
87
|
}
|
|
85
|
-
.
|
|
88
|
+
.confirmation__getCodeButton_1lhct {
|
|
86
89
|
position: relative;
|
|
87
90
|
top: var(--gap-2xs-neg);
|
|
88
91
|
margin-bottom: var(--gap-m);
|
|
89
92
|
}
|
|
90
|
-
.
|
|
93
|
+
.confirmation__countdown_1lhct {
|
|
91
94
|
display: flex;
|
|
92
95
|
}
|
|
93
|
-
.
|
|
96
|
+
.confirmation__countdownTimer_1lhct {
|
|
94
97
|
display: flex;
|
|
95
98
|
justify-content: flex-start;
|
|
96
99
|
min-width: 45px;
|
|
@@ -3,9 +3,9 @@ import 'classnames';
|
|
|
3
3
|
import '@alfalab/hooks';
|
|
4
4
|
import '../../../utils.js';
|
|
5
5
|
import '../../../context.js';
|
|
6
|
-
import '@alfalab/core-components-code-input/
|
|
7
|
-
import '@alfalab/core-components-link/
|
|
8
|
-
import '../../../countdown-section-
|
|
9
|
-
import '@alfalab/core-components-loader/
|
|
10
|
-
import '@alfalab/core-components-button/
|
|
6
|
+
import '@alfalab/core-components-code-input/modern';
|
|
7
|
+
import '@alfalab/core-components-link/modern';
|
|
8
|
+
import '../../../countdown-section-184fc0e5.js';
|
|
9
|
+
import '@alfalab/core-components-loader/modern';
|
|
10
|
+
import '@alfalab/core-components-button/modern';
|
|
11
11
|
export { Initial } from './component.js';
|
|
@@ -3,7 +3,7 @@ import { useCountdown, formatMsAsMinutes } from '../../../utils.js';
|
|
|
3
3
|
import { ConfirmationContext } from '../../../context.js';
|
|
4
4
|
import { CountdownLoader } from '../../countdown-loader/component.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"header":"
|
|
6
|
+
var styles = {"header":"confirmation__header_1vjf3","description":"confirmation__description_1vjf3","countdownWrap":"confirmation__countdownWrap_1vjf3","loader":"confirmation__loader_1vjf3"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const TempBlock = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1imau */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
--color-light-text-secondary: #546272;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
/* input */
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.confirmation__header_1vjf3 {
|
|
44
44
|
margin: 0;
|
|
45
45
|
margin-bottom: var(--gap-xl);
|
|
46
46
|
font-size: var(--confirmation-title-font-size);
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
color: var(--confirmation-title-color);
|
|
51
51
|
font-feature-settings: var(--confirmation-title-font-feature-settings);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.confirmation__description_1vjf3 {
|
|
54
54
|
font-size: var(--confirmation-text-font-size);
|
|
55
55
|
line-height: var(--confirmation-text-line-height);
|
|
56
56
|
font-weight: var(--confirmation-text-font-weight);
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
|
|
60
60
|
margin-bottom: var(--gap-2xl);
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.confirmation__countdownWrap_1vjf3 {
|
|
63
63
|
display: flex;
|
|
64
64
|
align-items: center;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.confirmation__loader_1vjf3 {
|
|
67
67
|
margin-right: var(--gap-xs);
|
|
68
68
|
}
|
|
File without changes
|
|
@@ -2,10 +2,10 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { formatMsAsMinutes } from './utils.js';
|
|
4
4
|
import { ConfirmationContext } from './context.js';
|
|
5
|
-
import { Loader } from '@alfalab/core-components-loader/
|
|
6
|
-
import { Button } from '@alfalab/core-components-button/
|
|
5
|
+
import { Loader } from '@alfalab/core-components-loader/modern';
|
|
6
|
+
import { Button } from '@alfalab/core-components-button/modern';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"
|
|
8
|
+
var styles = {"component":"confirmation__component_1lhct","header":"confirmation__header_1lhct","phone":"confirmation__phone_1lhct","inputContainer":"confirmation__inputContainer_1lhct","compact":"confirmation__compact_1lhct","loaderWrap":"confirmation__loaderWrap_1lhct","center":"confirmation__center_1lhct","codeInput":"confirmation__codeInput_1lhct","smsComeLink":"confirmation__smsComeLink_1lhct","countdownContainer":"confirmation__countdownContainer_1lhct","getCodeButton":"confirmation__getCodeButton_1lhct","countdown":"confirmation__countdown_1lhct","countdownTimer":"confirmation__countdownTimer_1lhct"};
|
|
9
9
|
require('./components/screens/initial/index.css')
|
|
10
10
|
|
|
11
11
|
const CountdownSection = ({ codeSendHintVisible, timePassed, processing, handleSmsRetryClick, }) => {
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3czbs */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-secondary: #546272;
|
|
4
4
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
/* input */
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.confirmation__component_lotkd {
|
|
32
32
|
font-size: var(--confirmation-text-font-size);
|
|
33
33
|
line-height: var(--confirmation-text-line-height);
|
|
34
34
|
font-weight: var(--confirmation-text-font-weight);
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
max-width: 400px;
|
|
42
42
|
margin: 0 auto;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.confirmation__center_lotkd {
|
|
45
45
|
align-items: center;
|
|
46
46
|
text-align: center;
|
|
47
47
|
}
|
package/modern/index.js
CHANGED
|
@@ -4,11 +4,11 @@ import '@alfalab/hooks';
|
|
|
4
4
|
export { ONE_DAY, ONE_MINUTE, formatMsAsMinutes, useConfirmation, useCountdown } from './utils.js';
|
|
5
5
|
export { ConfirmationContext } from './context.js';
|
|
6
6
|
export { defaultTexts } from './types.js';
|
|
7
|
-
import '@alfalab/core-components-code-input/
|
|
8
|
-
import '@alfalab/core-components-link/
|
|
9
|
-
import './countdown-section-
|
|
10
|
-
import '@alfalab/core-components-loader/
|
|
11
|
-
import '@alfalab/core-components-button/
|
|
7
|
+
import '@alfalab/core-components-code-input/modern';
|
|
8
|
+
import '@alfalab/core-components-link/modern';
|
|
9
|
+
import './countdown-section-184fc0e5.js';
|
|
10
|
+
import '@alfalab/core-components-loader/modern';
|
|
11
|
+
import '@alfalab/core-components-button/modern';
|
|
12
12
|
export { Initial } from './components/screens/initial/component.js';
|
|
13
13
|
export { Hint } from './components/screens/hint/component.js';
|
|
14
14
|
export { FatalError } from './components/screens/fatal-error/component.js';
|
package/modern/types.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ type ConfirmationProps = {
|
|
|
72
72
|
* Возввращает объект, где ключ - название экрана (screen), значение - компонент для экрана
|
|
73
73
|
*/
|
|
74
74
|
getScreensMap?: (defaulScreensMap: ScreensMap) => ScreensMap;
|
|
75
|
+
/**
|
|
76
|
+
* Дочерние элементы.
|
|
77
|
+
*/
|
|
78
|
+
children?: ReactNode;
|
|
75
79
|
};
|
|
76
80
|
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished'> & {
|
|
77
81
|
timeLeft: number;
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-confirmation",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.0",
|
|
4
4
|
"description": "Sms confirmation component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "./esm/index.js",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"postinstall": "node ./send-stats.js
|
|
10
|
+
"postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
|
|
11
11
|
},
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public",
|
|
14
14
|
"directory": "dist"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@alfalab/core-components-button": "^5.
|
|
18
|
-
"@alfalab/core-components-code-input": "^1.
|
|
19
|
-
"@alfalab/core-components-link": "^3.
|
|
20
|
-
"@alfalab/core-components-loader": "^2.
|
|
17
|
+
"@alfalab/core-components-button": "^5.3.0",
|
|
18
|
+
"@alfalab/core-components-code-input": "^1.5.0",
|
|
19
|
+
"@alfalab/core-components-link": "^3.4.0",
|
|
20
|
+
"@alfalab/core-components-loader": "^2.2.0",
|
|
21
21
|
"@alfalab/hooks": "^1.4.1",
|
|
22
22
|
"@alfalab/icons-glyph": "^2.16.0",
|
|
23
23
|
"@alfalab/utils": "^1.11.0",
|
|
24
|
-
"classnames": "^2.
|
|
24
|
+
"classnames": "^2.3.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"react": "^16.9.0 || ^17.0.1"
|
|
27
|
+
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/types.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ type ConfirmationProps = {
|
|
|
72
72
|
* Возввращает объект, где ключ - название экрана (screen), значение - компонент для экрана
|
|
73
73
|
*/
|
|
74
74
|
getScreensMap?: (defaulScreensMap: ScreensMap) => ScreensMap;
|
|
75
|
+
/**
|
|
76
|
+
* Дочерние элементы.
|
|
77
|
+
*/
|
|
78
|
+
children?: ReactNode;
|
|
75
79
|
};
|
|
76
80
|
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished'> & {
|
|
77
81
|
timeLeft: number;
|