@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.
Files changed (79) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/component.js +2 -2
  3. package/components/countdown-loader/component.js +1 -1
  4. package/components/countdown-loader/index.css +2 -2
  5. package/components/index.js +1 -1
  6. package/components/screens/fatal-error/component.js +1 -1
  7. package/components/screens/fatal-error/index.css +3 -3
  8. package/components/screens/hint/component.js +1 -1
  9. package/components/screens/hint/index.css +13 -13
  10. package/components/screens/index.js +1 -1
  11. package/components/screens/initial/component.js +1 -1
  12. package/components/screens/initial/countdown-section.js +1 -1
  13. package/components/screens/initial/index.css +18 -15
  14. package/components/screens/initial/index.js +1 -1
  15. package/components/screens/temp-block/component.js +1 -1
  16. package/components/screens/temp-block/index.css +5 -5
  17. package/{countdown-section-8d2ab7dc.d.ts → countdown-section-7c7d6f72.d.ts} +0 -0
  18. package/{countdown-section-8d2ab7dc.js → countdown-section-7c7d6f72.js} +1 -1
  19. package/cssm/component.js +4 -4
  20. package/cssm/components/index.js +4 -4
  21. package/cssm/components/screens/fatal-error/component.js +1 -1
  22. package/cssm/components/screens/fatal-error/index.js +1 -1
  23. package/cssm/components/screens/hint/component.js +2 -2
  24. package/cssm/components/screens/hint/index.js +2 -2
  25. package/cssm/components/screens/index.js +4 -4
  26. package/cssm/components/screens/initial/component.js +4 -4
  27. package/cssm/components/screens/initial/countdown-section.js +2 -2
  28. package/cssm/components/screens/initial/index.js +4 -4
  29. package/cssm/components/screens/initial/index.module.css +3 -0
  30. package/cssm/index.js +4 -4
  31. package/cssm/types.d.ts +4 -0
  32. package/esm/component.js +6 -6
  33. package/esm/components/countdown-loader/component.js +1 -1
  34. package/esm/components/countdown-loader/index.css +2 -2
  35. package/esm/components/index.js +5 -5
  36. package/esm/components/screens/fatal-error/component.js +2 -2
  37. package/esm/components/screens/fatal-error/index.css +3 -3
  38. package/esm/components/screens/fatal-error/index.js +1 -1
  39. package/esm/components/screens/hint/component.js +3 -3
  40. package/esm/components/screens/hint/index.css +13 -13
  41. package/esm/components/screens/hint/index.js +2 -2
  42. package/esm/components/screens/index.js +5 -5
  43. package/esm/components/screens/initial/component.js +5 -5
  44. package/esm/components/screens/initial/countdown-section.js +3 -3
  45. package/esm/components/screens/initial/index.css +18 -15
  46. package/esm/components/screens/initial/index.js +5 -5
  47. package/esm/components/screens/temp-block/component.js +1 -1
  48. package/esm/components/screens/temp-block/index.css +5 -5
  49. package/esm/{countdown-section-5af6ca6c.d.ts → countdown-section-9d037a03.d.ts} +0 -0
  50. package/esm/{countdown-section-5af6ca6c.js → countdown-section-9d037a03.js} +3 -3
  51. package/esm/index.css +3 -3
  52. package/esm/index.js +5 -5
  53. package/esm/types.d.ts +4 -0
  54. package/index.css +3 -3
  55. package/index.js +1 -1
  56. package/modern/component.js +6 -6
  57. package/modern/components/countdown-loader/component.js +1 -1
  58. package/modern/components/countdown-loader/index.css +2 -2
  59. package/modern/components/index.js +5 -5
  60. package/modern/components/screens/fatal-error/component.js +2 -2
  61. package/modern/components/screens/fatal-error/index.css +3 -3
  62. package/modern/components/screens/fatal-error/index.js +1 -1
  63. package/modern/components/screens/hint/component.js +3 -3
  64. package/modern/components/screens/hint/index.css +13 -13
  65. package/modern/components/screens/hint/index.js +2 -2
  66. package/modern/components/screens/index.js +5 -5
  67. package/modern/components/screens/initial/component.js +5 -5
  68. package/modern/components/screens/initial/countdown-section.js +3 -3
  69. package/modern/components/screens/initial/index.css +18 -15
  70. package/modern/components/screens/initial/index.js +5 -5
  71. package/modern/components/screens/temp-block/component.js +1 -1
  72. package/modern/components/screens/temp-block/index.css +5 -5
  73. package/modern/{countdown-section-2b5dbe74.d.ts → countdown-section-184fc0e5.d.ts} +0 -0
  74. package/modern/{countdown-section-2b5dbe74.js → countdown-section-184fc0e5.js} +3 -3
  75. package/modern/index.css +3 -3
  76. package/modern/index.js +5 -5
  77. package/modern/types.d.ts +4 -0
  78. package/package.json +8 -8
  79. package/types.d.ts +4 -0
@@ -1,4 +1,4 @@
1
- /* hash: 97tyh */
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
- .confirmation__center_10en3 .confirmation__phoneHintWrap_10en3 {
43
+ .confirmation__center_dp4zg .confirmation__phoneHintWrap_dp4zg {
44
44
  align-items: center;
45
45
  }
46
- .confirmation__center_10en3 .confirmation__hintWrap_10en3 {
46
+ .confirmation__center_dp4zg .confirmation__hintWrap_dp4zg {
47
47
  align-items: center;
48
48
  }
49
- .confirmation__hintWrap_10en3 {
49
+ .confirmation__hintWrap_dp4zg {
50
50
  display: flex;
51
51
  flex-direction: column;
52
52
  align-items: flex-start;
53
53
  }
54
- .confirmation__title_10en3 {
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
- .confirmation__text_10en3 {
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
- .confirmation__phonesWrap_10en3 {
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
- .confirmation__phoneWrap_10en3 {
84
+ .confirmation__phoneWrap_dp4zg {
85
85
  margin-bottom: var(--gap-xs)
86
86
  }
87
- .confirmation__phoneWrap_10en3:last-child {
87
+ .confirmation__phoneWrap_dp4zg:last-child {
88
88
  margin-bottom: 0;
89
89
  }
90
- .confirmation__phoneLink_10en3 {
90
+ .confirmation__phoneLink_dp4zg {
91
91
  font-size: 16px;
92
92
  line-height: 24px;
93
93
  font-weight: 500
94
94
  }
95
- .confirmation__phoneLink_10en3 > span {
95
+ .confirmation__phoneLink_dp4zg > span {
96
96
  border-bottom: none;
97
97
  }
98
- .confirmation__phoneDescription_10en3 {
98
+ .confirmation__phoneDescription_dp4zg {
99
99
  color: var(--confirmation-text-color);
100
100
  }
101
- .confirmation__hintButton_10en3 {
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/dist/modern';
6
- import '@alfalab/core-components-button/dist/modern';
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/dist/modern';
7
- import '@alfalab/core-components-link/dist/modern';
8
- import '../../countdown-section-2b5dbe74.js';
9
- import '@alfalab/core-components-loader/dist/modern';
10
- import '@alfalab/core-components-button/dist/modern';
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/dist/modern';
7
- import { Link } from '@alfalab/core-components-link/dist/modern';
8
- import { s as styles, C as CountdownSection } from '../../../countdown-section-2b5dbe74.js';
9
- import '@alfalab/core-components-loader/dist/modern';
10
- import '@alfalab/core-components-button/dist/modern';
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-2b5dbe74.js';
6
- import '@alfalab/core-components-loader/dist/modern';
7
- import '@alfalab/core-components-button/dist/modern';
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: 1p8cc */
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
- .confirmation__component_x152m {
39
+ .confirmation__component_1lhct {
40
40
  display: flex;
41
41
  flex-direction: column;
42
42
  }
43
- .confirmation__header_x152m {
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
- .confirmation__phone_x152m {
53
+ .confirmation__phone_1lhct {
54
54
  margin-bottom: var(--gap-2xl);
55
55
  color: var(--color-light-text-primary);
56
56
  }
57
- .confirmation__inputContainer_x152m {
57
+ .confirmation__inputContainer_1lhct {
58
58
  display: flex;
59
59
  flex-direction: column;
60
60
  margin-bottom: var(--gap-2xl);
61
61
  }
62
- .confirmation__compact_x152m {
62
+ .confirmation__compact_1lhct {
63
63
  margin-bottom: var(--gap-xl);
64
64
  }
65
- .confirmation__loaderWrap_x152m {
65
+ .confirmation__loaderWrap_1lhct {
66
66
  display: flex;
67
67
  align-items: center;
68
68
  }
69
- .confirmation__center_x152m {
69
+ .confirmation__center_1lhct {
70
70
  align-items: center;
71
71
  text-align: center
72
72
  }
73
- .confirmation__center_x152m .confirmation__codeInput_x152m,
74
- .confirmation__center_x152m .confirmation__loaderWrap_x152m {
73
+ .confirmation__center_1lhct .confirmation__codeInput_1lhct,
74
+ .confirmation__center_1lhct .confirmation__loaderWrap_1lhct {
75
75
  justify-content: center;
76
76
  }
77
- .confirmation__smsComeLink_x152m {
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
- .confirmation__countdownContainer_x152m {
85
+ .confirmation__countdownContainer_1lhct {
83
86
  margin-bottom: var(--gap-xl);
84
87
  }
85
- .confirmation__getCodeButton_x152m {
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
- .confirmation__countdown_x152m {
93
+ .confirmation__countdown_1lhct {
91
94
  display: flex;
92
95
  }
93
- .confirmation__countdownTimer_x152m {
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/dist/modern';
7
- import '@alfalab/core-components-link/dist/modern';
8
- import '../../../countdown-section-2b5dbe74.js';
9
- import '@alfalab/core-components-loader/dist/modern';
10
- import '@alfalab/core-components-button/dist/modern';
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":"confirmation__header_1or77","description":"confirmation__description_1or77","countdownWrap":"confirmation__countdownWrap_1or77","loader":"confirmation__loader_1or77"};
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: 1460z */
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
- .confirmation__header_1or77 {
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
- .confirmation__description_1or77 {
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
- .confirmation__countdownWrap_1or77 {
62
+ .confirmation__countdownWrap_1vjf3 {
63
63
  display: flex;
64
64
  align-items: center;
65
65
  }
66
- .confirmation__loader_1or77 {
66
+ .confirmation__loader_1vjf3 {
67
67
  margin-right: var(--gap-xs);
68
68
  }
@@ -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/dist/modern';
6
- import { Button } from '@alfalab/core-components-button/dist/modern';
5
+ import { Loader } from '@alfalab/core-components-loader/modern';
6
+ import { Button } from '@alfalab/core-components-button/modern';
7
7
 
8
- var styles = {"component":"confirmation__component_x152m","header":"confirmation__header_x152m","phone":"confirmation__phone_x152m","inputContainer":"confirmation__inputContainer_x152m","compact":"confirmation__compact_x152m","loaderWrap":"confirmation__loaderWrap_x152m","center":"confirmation__center_x152m","codeInput":"confirmation__codeInput_x152m","smsComeLink":"confirmation__smsComeLink_x152m","countdownContainer":"confirmation__countdownContainer_x152m","getCodeButton":"confirmation__getCodeButton_x152m","countdown":"confirmation__countdown_x152m","countdownTimer":"confirmation__countdownTimer_x152m"};
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: exuvc */
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
- .confirmation__component_1y0fi {
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
- .confirmation__center_1y0fi {
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/dist/modern';
8
- import '@alfalab/core-components-link/dist/modern';
9
- import './countdown-section-2b5dbe74.js';
10
- import '@alfalab/core-components-loader/dist/modern';
11
- import '@alfalab/core-components-button/dist/modern';
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.1",
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 > /dev/null 2>&1 || exit 0"
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.2.1",
18
- "@alfalab/core-components-code-input": "^1.4.1",
19
- "@alfalab/core-components-link": "^3.3.1",
20
- "@alfalab/core-components-loader": "^2.1.1",
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.2.6"
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;