@alfalab/core-components-confirmation 13.0.0 → 13.1.1

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 (115) hide show
  1. package/component.desktop.js +2 -2
  2. package/component.mobile.js +3 -3
  3. package/component.responsive.js +2 -2
  4. package/components/base-confirmation/component.js +5 -4
  5. package/components/base-confirmation/index.css +2 -2
  6. package/components/base-confirmation/index.js +2 -2
  7. package/components/countdown-loader/component.js +1 -1
  8. package/components/countdown-loader/index.css +2 -2
  9. package/components/header/component.js +1 -1
  10. package/components/header/index.css +4 -4
  11. package/components/index.js +2 -2
  12. package/components/screens/fatal-error/component.js +1 -1
  13. package/components/screens/fatal-error/index.css +6 -6
  14. package/components/screens/hint/component.js +1 -1
  15. package/components/screens/hint/index.css +12 -12
  16. package/components/screens/index.js +2 -2
  17. package/components/screens/initial/component.js +13 -4
  18. package/components/screens/initial/countdown-section.js +2 -2
  19. package/components/screens/initial/index.css +17 -17
  20. package/components/screens/initial/index.js +2 -2
  21. package/components/screens/temp-block/component.js +1 -1
  22. package/components/screens/temp-block/index.css +7 -7
  23. package/context.js +1 -0
  24. package/{countdown-section-fb6524aa.js → countdown-section-9a6d1d6b.js} +3 -3
  25. package/cssm/component.desktop.js +1 -1
  26. package/cssm/component.mobile.js +1 -1
  27. package/cssm/component.responsive.js +1 -1
  28. package/cssm/components/base-confirmation/component.js +3 -2
  29. package/cssm/components/base-confirmation/index.js +1 -1
  30. package/cssm/components/index.js +1 -1
  31. package/cssm/components/screens/index.js +1 -1
  32. package/cssm/components/screens/initial/component.js +12 -3
  33. package/cssm/components/screens/initial/countdown-section.js +2 -2
  34. package/cssm/components/screens/initial/index.js +1 -1
  35. package/cssm/context.js +1 -0
  36. package/cssm/desktop.js +1 -1
  37. package/cssm/index.js +1 -1
  38. package/cssm/mobile.js +1 -1
  39. package/cssm/shared.js +1 -1
  40. package/cssm/types.d.ts +5 -1
  41. package/desktop.js +2 -2
  42. package/esm/component.desktop.js +2 -2
  43. package/esm/component.mobile.js +3 -3
  44. package/esm/component.responsive.js +2 -2
  45. package/esm/components/base-confirmation/component.js +5 -4
  46. package/esm/components/base-confirmation/index.css +2 -2
  47. package/esm/components/base-confirmation/index.js +2 -2
  48. package/esm/components/countdown-loader/component.js +1 -1
  49. package/esm/components/countdown-loader/index.css +2 -2
  50. package/esm/components/header/component.js +1 -1
  51. package/esm/components/header/index.css +4 -4
  52. package/esm/components/index.js +2 -2
  53. package/esm/components/screens/fatal-error/component.js +1 -1
  54. package/esm/components/screens/fatal-error/index.css +6 -6
  55. package/esm/components/screens/hint/component.js +1 -1
  56. package/esm/components/screens/hint/index.css +12 -12
  57. package/esm/components/screens/index.js +2 -2
  58. package/esm/components/screens/initial/component.js +13 -4
  59. package/esm/components/screens/initial/countdown-section.js +2 -2
  60. package/esm/components/screens/initial/index.css +17 -17
  61. package/esm/components/screens/initial/index.js +2 -2
  62. package/esm/components/screens/temp-block/component.js +1 -1
  63. package/esm/components/screens/temp-block/index.css +7 -7
  64. package/esm/context.js +1 -0
  65. package/esm/{countdown-section-c65cff2d.js → countdown-section-281fb6b0.js} +3 -3
  66. package/esm/desktop.js +2 -2
  67. package/esm/index.js +2 -2
  68. package/esm/mobile.css +2 -2
  69. package/esm/mobile.js +2 -2
  70. package/esm/shared.js +2 -2
  71. package/esm/types.d.ts +5 -1
  72. package/index.js +2 -2
  73. package/mobile.css +2 -2
  74. package/mobile.js +2 -2
  75. package/modern/component.desktop.js +2 -2
  76. package/modern/component.mobile.js +3 -3
  77. package/modern/component.responsive.js +2 -2
  78. package/modern/components/base-confirmation/component.js +5 -4
  79. package/modern/components/base-confirmation/index.css +2 -2
  80. package/modern/components/base-confirmation/index.js +2 -2
  81. package/modern/components/countdown-loader/component.js +1 -1
  82. package/modern/components/countdown-loader/index.css +2 -2
  83. package/modern/components/header/component.js +1 -1
  84. package/modern/components/header/index.css +4 -4
  85. package/modern/components/index.js +2 -2
  86. package/modern/components/screens/fatal-error/component.js +1 -1
  87. package/modern/components/screens/fatal-error/index.css +6 -6
  88. package/modern/components/screens/hint/component.js +1 -1
  89. package/modern/components/screens/hint/index.css +12 -12
  90. package/modern/components/screens/index.js +2 -2
  91. package/modern/components/screens/initial/component.js +13 -4
  92. package/modern/components/screens/initial/countdown-section.js +2 -2
  93. package/modern/components/screens/initial/index.css +17 -17
  94. package/modern/components/screens/initial/index.js +2 -2
  95. package/modern/components/screens/temp-block/component.js +1 -1
  96. package/modern/components/screens/temp-block/index.css +7 -7
  97. package/modern/context.js +1 -0
  98. package/modern/{countdown-section-dd4e5fe3.js → countdown-section-baf81c17.js} +3 -3
  99. package/modern/desktop.js +2 -2
  100. package/modern/index.js +2 -2
  101. package/modern/mobile.css +2 -2
  102. package/modern/mobile.js +2 -2
  103. package/modern/shared.js +2 -2
  104. package/modern/types.d.ts +5 -1
  105. package/package.json +3 -3
  106. package/shared.js +2 -2
  107. package/src/components/base-confirmation/component.tsx +2 -0
  108. package/src/components/screens/initial/component.tsx +27 -14
  109. package/src/components/screens/initial/countdown-section.tsx +2 -2
  110. package/src/context.ts +1 -0
  111. package/src/types.ts +10 -1
  112. package/types.d.ts +5 -1
  113. /package/{countdown-section-fb6524aa.d.ts → countdown-section-9a6d1d6b.d.ts} +0 -0
  114. /package/esm/{countdown-section-c65cff2d.d.ts → countdown-section-281fb6b0.d.ts} +0 -0
  115. /package/modern/{countdown-section-dd4e5fe3.d.ts → countdown-section-baf81c17.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- /* hash: 26rxz */
1
+ /* hash: lymrr */
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
- } .confirmation__component_7ycwi {
40
+ } .confirmation__component_gbpu8 {
41
41
  display: flex;
42
42
  flex-direction: column;
43
- } .confirmation__typographyTheme_7ycwi.confirmation__typographyTheme_7ycwi {
43
+ } .confirmation__typographyTheme_gbpu8.confirmation__typographyTheme_gbpu8 {
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
- } .confirmation__phone_7ycwi.confirmation__phone_7ycwi {
49
+ } .confirmation__phone_gbpu8.confirmation__phone_gbpu8 {
50
50
  color: var(--color-light-text-primary);
51
51
  margin-bottom: var(--gap-2xl);
52
- } .confirmation__compact_7ycwi {
52
+ } .confirmation__compact_gbpu8 {
53
53
  margin-bottom: var(--gap-xl);
54
- } .confirmation__loaderWrap_7ycwi {
54
+ } .confirmation__loaderWrap_gbpu8 {
55
55
  display: flex;
56
56
  align-items: center;
57
- } .confirmation__left_7ycwi {
57
+ } .confirmation__left_gbpu8 {
58
58
  align-items: flex-start;
59
- } .confirmation__center_7ycwi {
59
+ } .confirmation__center_gbpu8 {
60
60
  align-items: center;
61
61
  text-align: center
62
- } .confirmation__center_7ycwi .confirmation__loaderWrap_7ycwi {
62
+ } .confirmation__center_gbpu8 .confirmation__loaderWrap_gbpu8 {
63
63
  justify-content: center;
64
- } .confirmation__codeInput_7ycwi {
64
+ } .confirmation__codeInput_gbpu8 {
65
65
  margin-bottom: var(--gap-s);
66
- } .confirmation__smsComeLink_7ycwi.confirmation__smsComeLink_7ycwi {
66
+ } .confirmation__smsComeLink_gbpu8.confirmation__smsComeLink_gbpu8 {
67
67
  font-size: 14px;
68
68
  line-height: 20px;
69
69
  font-weight: 500;
70
- } .confirmation__countdownContainer_7ycwi.confirmation__countdownContainer_7ycwi {
70
+ } .confirmation__countdownContainer_gbpu8.confirmation__countdownContainer_gbpu8 {
71
71
  color: var(--color-light-text-secondary);
72
72
  margin-bottom: var(--gap-xl);
73
- } .confirmation__countdownMobile_7ycwi.confirmation__countdownMobile_7ycwi {
73
+ } .confirmation__countdownMobile_gbpu8.confirmation__countdownMobile_gbpu8 {
74
74
  margin-bottom: var(--gap-l);
75
- } .confirmation__countdownLoaderMobile_7ycwi.confirmation__countdownLoaderMobile_7ycwi {
75
+ } .confirmation__countdownLoaderMobile_gbpu8.confirmation__countdownLoaderMobile_gbpu8 {
76
76
  margin-bottom: var(--gap-m);
77
- } .confirmation__getCodeButton_7ycwi {
77
+ } .confirmation__getCodeButton_gbpu8 {
78
78
  position: relative;
79
79
  top: var(--gap-2xs-neg);
80
80
  margin-bottom: var(--gap-m);
81
- } .confirmation__getCodeButtonMobile_7ycwi {
81
+ } .confirmation__getCodeButtonMobile_gbpu8 {
82
82
  margin-bottom: 0;
83
- } .confirmation__containerInput_7ycwi {
83
+ } .confirmation__containerInput_gbpu8 {
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-c65cff2d.js';
13
+ import '../../../countdown-section-281fb6b0.js';
14
14
  import '@alfalab/core-components-button/esm';
15
- import '@alfalab/core-components-loader/esm';
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":"confirmation__component_mzsf9","center":"confirmation__center_mzsf9","typographyTheme":"confirmation__typographyTheme_mzsf9","description":"confirmation__description_mzsf9","countdownWrap":"confirmation__countdownWrap_mzsf9","loader":"confirmation__loader_mzsf9"};
9
+ var styles = {"component":"confirmation__component_f0ffk","center":"confirmation__center_f0ffk","typographyTheme":"confirmation__typographyTheme_f0ffk","description":"confirmation__description_f0ffk","countdownWrap":"confirmation__countdownWrap_f0ffk","loader":"confirmation__loader_f0ffk"};
10
10
  require('./index.css')
11
11
 
12
12
  var TempBlock = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: s6hbt */
1
+ /* hash: 1dast */
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
- } .confirmation__component_mzsf9 {
34
+ } .confirmation__component_f0ffk {
35
35
  display: flex;
36
36
  flex-direction: column;
37
- } .confirmation__center_mzsf9 {
37
+ } .confirmation__center_f0ffk {
38
38
  align-items: center;
39
39
  text-align: center;
40
- } .confirmation__typographyTheme_mzsf9.confirmation__typographyTheme_mzsf9 {
40
+ } .confirmation__typographyTheme_f0ffk.confirmation__typographyTheme_f0ffk {
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
- } .confirmation__description_mzsf9.confirmation__description_mzsf9 {
46
+ } .confirmation__description_f0ffk.confirmation__description_f0ffk {
47
47
  margin-bottom: var(--gap-xs);
48
- } .confirmation__countdownWrap_mzsf9 {
48
+ } .confirmation__countdownWrap_f0ffk {
49
49
  display: flex;
50
50
  align-items: center;
51
- } .confirmation__loader_mzsf9 {
51
+ } .confirmation__loader_f0ffk {
52
52
  margin-right: var(--gap-xs);
53
53
  }
package/esm/context.js CHANGED
@@ -14,6 +14,7 @@ var ConfirmationContext = createContext({
14
14
  phone: '',
15
15
  hideCountdownSection: false,
16
16
  breakpoint: 1024,
17
+ initialScreenHintSlot: null,
17
18
  onTempBlockFinished: mockFn,
18
19
  onInputFinished: mockFn,
19
20
  onChangeState: mockFn,
@@ -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 { Loader } from '@alfalab/core-components-loader/esm';
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":"confirmation__component_7ycwi","typographyTheme":"confirmation__typographyTheme_7ycwi","phone":"confirmation__phone_7ycwi","compact":"confirmation__compact_7ycwi","loaderWrap":"confirmation__loaderWrap_7ycwi","left":"confirmation__left_7ycwi","center":"confirmation__center_7ycwi","codeInput":"confirmation__codeInput_7ycwi","smsComeLink":"confirmation__smsComeLink_7ycwi","countdownContainer":"confirmation__countdownContainer_7ycwi","countdownMobile":"confirmation__countdownMobile_7ycwi","countdownLoaderMobile":"confirmation__countdownLoaderMobile_7ycwi","getCodeButton":"confirmation__getCodeButton_7ycwi","getCodeButtonMobile":"confirmation__getCodeButtonMobile_7ycwi","containerInput":"confirmation__containerInput_7ycwi"};
9
+ var styles = {"component":"confirmation__component_gbpu8","typographyTheme":"confirmation__typographyTheme_gbpu8","phone":"confirmation__phone_gbpu8","compact":"confirmation__compact_gbpu8","loaderWrap":"confirmation__loaderWrap_gbpu8","left":"confirmation__left_gbpu8","center":"confirmation__center_gbpu8","codeInput":"confirmation__codeInput_gbpu8","smsComeLink":"confirmation__smsComeLink_gbpu8","countdownContainer":"confirmation__countdownContainer_gbpu8","countdownMobile":"confirmation__countdownMobile_gbpu8","countdownLoaderMobile":"confirmation__countdownLoaderMobile_gbpu8","getCodeButton":"confirmation__getCodeButton_gbpu8","getCodeButtonMobile":"confirmation__getCodeButtonMobile_gbpu8","containerInput":"confirmation__containerInput_gbpu8"};
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(Loader, null),
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-c65cff2d.js';
17
+ import './countdown-section-281fb6b0.js';
18
18
  import '@alfalab/core-components-button/esm';
19
- import '@alfalab/core-components-loader/esm';
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-c65cff2d.js';
19
+ import './countdown-section-281fb6b0.js';
20
20
  import '@alfalab/core-components-button/esm';
21
- import '@alfalab/core-components-loader/esm';
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
@@ -1,4 +1,4 @@
1
- /* hash: pdq5h */
2
- .confirmation__container_hgizz {
1
+ /* hash: 6wh3t */
2
+ .confirmation__container_gsnsg {
3
3
  max-width: 288px;
4
4
  }
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-c65cff2d.js';
17
+ import './countdown-section-281fb6b0.js';
18
18
  import '@alfalab/core-components-button/esm';
19
- import '@alfalab/core-components-loader/esm';
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-c65cff2d.js';
18
+ import './countdown-section-281fb6b0.js';
19
19
  import '@alfalab/core-components-button/esm';
20
- import '@alfalab/core-components-loader/esm';
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-fb6524aa.js');
23
+ require('./countdown-section-9a6d1d6b.js');
24
24
  require('@alfalab/core-components-button');
25
- require('@alfalab/core-components-loader');
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
@@ -1,4 +1,4 @@
1
- /* hash: pdq5h */
2
- .confirmation__container_hgizz {
1
+ /* hash: 6wh3t */
2
+ .confirmation__container_gsnsg {
3
3
  max-width: 288px;
4
4
  }
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-fb6524aa.js');
21
+ require('./countdown-section-9a6d1d6b.js');
22
22
  require('@alfalab/core-components-button');
23
- require('@alfalab/core-components-loader');
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-dd4e5fe3.js';
15
+ import './countdown-section-baf81c17.js';
16
16
  import '@alfalab/core-components-button/modern';
17
- import '@alfalab/core-components-loader/modern';
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-dd4e5fe3.js';
15
+ import './countdown-section-baf81c17.js';
16
16
  import '@alfalab/core-components-button/modern';
17
- import '@alfalab/core-components-loader/modern';
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":"confirmation__container_hgizz"};
23
+ const styles = {"container":"confirmation__container_gsnsg"};
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-dd4e5fe3.js';
18
+ import './countdown-section-baf81c17.js';
19
19
  import '@alfalab/core-components-button/modern';
20
- import '@alfalab/core-components-loader/modern';
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-dd4e5fe3.js';
17
+ import '../../countdown-section-baf81c17.js';
18
18
  import '@alfalab/core-components-button/modern';
19
- import '@alfalab/core-components-loader/modern';
19
+ import '@alfalab/core-components-spinner/modern';
20
20
  import '../countdown-loader/component.js';
21
21
 
22
- const styles = {"component":"confirmation__component_19xfa"};
22
+ const styles = {"component":"confirmation__component_1yhgb"};
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: sufuv */
1
+ /* hash: 1iqd6 */
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
- } .confirmation__component_19xfa {
18
+ } .confirmation__component_1yhgb {
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-dd4e5fe3.js';
15
+ import '../../countdown-section-baf81c17.js';
16
16
  import '@alfalab/core-components-button/modern';
17
- import '@alfalab/core-components-loader/modern';
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,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const styles = {"circle":"confirmation__circle_fzyku"};
3
+ const styles = {"circle":"confirmation__circle_1chjs"};
4
4
  require('./index.css')
5
5
 
6
6
  const SIZE = 16;
@@ -1,4 +1,4 @@
1
- /* hash: 10yuu */
1
+ /* hash: f2gll */
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
- } .confirmation__circle_fzyku {
18
+ } .confirmation__circle_1chjs {
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":"confirmation__header_2zjkj","typography":"confirmation__typography_2zjkj","typographyMobile":"confirmation__typographyMobile_2zjkj"};
5
+ const styles = {"header":"confirmation__header_1ta4c","typography":"confirmation__typography_1ta4c","typographyMobile":"confirmation__typographyMobile_1ta4c"};
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: e6d4i */
1
+ /* hash: 9etnx */
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
- } .confirmation__header_2zjkj.confirmation__header_2zjkj {
37
+ } .confirmation__header_1ta4c.confirmation__header_1ta4c {
38
38
  margin-bottom: var(--gap-xl);
39
- } .confirmation__typography_2zjkj.confirmation__typography_2zjkj.confirmation__typography_2zjkj {
39
+ } .confirmation__typography_1ta4c.confirmation__typography_1ta4c.confirmation__typography_1ta4c {
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
- } .confirmation__typographyMobile_2zjkj.confirmation__typographyMobile_2zjkj.confirmation__typographyMobile_2zjkj {
45
+ } .confirmation__typographyMobile_1ta4c.confirmation__typographyMobile_1ta4c.confirmation__typographyMobile_1ta4c {
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-dd4e5fe3.js';
17
+ import '../countdown-section-baf81c17.js';
18
18
  import '@alfalab/core-components-button/modern';
19
- import '@alfalab/core-components-loader/modern';
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":"confirmation__component_1jo59","typographyTheme":"confirmation__typographyTheme_1jo59","left":"confirmation__left_1jo59","center":"confirmation__center_1jo59","button":"confirmation__button_1jo59"};
9
+ const styles = {"component":"confirmation__component_1gd41","typographyTheme":"confirmation__typographyTheme_1gd41","left":"confirmation__left_1gd41","center":"confirmation__center_1gd41","button":"confirmation__button_1gd41"};
10
10
  require('./index.css')
11
11
 
12
12
  const FatalError = ({ mobile }) => {
@@ -1,4 +1,4 @@
1
- /* hash: nzd2y */
1
+ /* hash: 1fzts */
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
- } .confirmation__component_1jo59 {
34
+ } .confirmation__component_1gd41 {
35
35
  display: flex;
36
36
  flex-direction: column;
37
- } .confirmation__typographyTheme_1jo59.confirmation__typographyTheme_1jo59 {
37
+ } .confirmation__typographyTheme_1gd41.confirmation__typographyTheme_1gd41 {
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
- } .confirmation__left_1jo59 {
43
+ } .confirmation__left_1gd41 {
44
44
  align-items: flex-start;
45
- } .confirmation__center_1jo59 {
45
+ } .confirmation__center_1gd41 {
46
46
  align-items: center;
47
47
  text-align: center;
48
- } .confirmation__button_1jo59 {
48
+ } .confirmation__button_1gd41 {
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":"confirmation__component_kde6d","center":"confirmation__center_kde6d","text":"confirmation__text_kde6d","typographyTheme":"confirmation__typographyTheme_kde6d","phonesWrap":"confirmation__phonesWrap_kde6d","phoneWrap":"confirmation__phoneWrap_kde6d","phoneLink":"confirmation__phoneLink_kde6d","hintButton":"confirmation__hintButton_kde6d","phoneContentMobile":"confirmation__phoneContentMobile_kde6d"};
10
+ const styles = {"component":"confirmation__component_1qmb5","center":"confirmation__center_1qmb5","text":"confirmation__text_1qmb5","typographyTheme":"confirmation__typographyTheme_1qmb5","phonesWrap":"confirmation__phonesWrap_1qmb5","phoneWrap":"confirmation__phoneWrap_1qmb5","phoneLink":"confirmation__phoneLink_1qmb5","hintButton":"confirmation__hintButton_1qmb5","phoneContentMobile":"confirmation__phoneContentMobile_1qmb5"};
11
11
  require('./index.css')
12
12
 
13
13
  const Hint = ({ mobile }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 17pax */
1
+ /* hash: vc4ds */
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
- } .confirmation__component_kde6d {
36
+ } .confirmation__component_1qmb5 {
37
37
  display: flex;
38
38
  flex-direction: column;
39
39
  align-items: flex-start
40
- } .confirmation__component_kde6d span:last-of-type {
40
+ } .confirmation__component_1qmb5 span:last-of-type {
41
41
  margin-bottom: 0;
42
- } .confirmation__center_kde6d {
42
+ } .confirmation__center_1qmb5 {
43
43
  align-items: center;
44
44
  text-align: center;
45
- } .confirmation__text_kde6d.confirmation__text_kde6d {
45
+ } .confirmation__text_1qmb5.confirmation__text_1qmb5 {
46
46
  margin-bottom: var(--gap-xl);
47
- } .confirmation__typographyTheme_kde6d.confirmation__typographyTheme_kde6d {
47
+ } .confirmation__typographyTheme_1qmb5.confirmation__typographyTheme_1qmb5 {
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
- } .confirmation__phonesWrap_kde6d {
53
+ } .confirmation__phonesWrap_1qmb5 {
54
54
  display: flex;
55
55
  flex-direction: column;
56
56
  margin-bottom: var(--gap-xl);
57
- } .confirmation__phoneWrap_kde6d {
57
+ } .confirmation__phoneWrap_1qmb5 {
58
58
  margin-bottom: var(--gap-xs)
59
- } .confirmation__phoneWrap_kde6d:last-child {
59
+ } .confirmation__phoneWrap_1qmb5:last-child {
60
60
  margin-bottom: 0;
61
- } .confirmation__phoneLink_kde6d.confirmation__phoneLink_kde6d {
61
+ } .confirmation__phoneLink_1qmb5.confirmation__phoneLink_1qmb5 {
62
62
  font-size: 16px;
63
63
  line-height: 24px;
64
64
  font-weight: 500;
65
- } .confirmation__hintButton_kde6d {
65
+ } .confirmation__hintButton_1qmb5 {
66
66
  margin-top: var(--gap-2xl);
67
- } .confirmation__phoneContentMobile_kde6d {
67
+ } .confirmation__phoneContentMobile_1qmb5 {
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-dd4e5fe3.js';
16
+ import '../../countdown-section-baf81c17.js';
17
17
  import '@alfalab/core-components-button/modern';
18
- import '@alfalab/core-components-loader/modern';
18
+ import '@alfalab/core-components-spinner/modern';
19
19
  import '../countdown-loader/component.js';