@alfalab/core-components-confirmation 13.9.12 → 13.10.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 (139) hide show
  1. package/components/base-confirmation/component.js +5 -2
  2. package/components/base-confirmation/index.css +2 -2
  3. package/components/countdown-loader/component.js +1 -1
  4. package/components/countdown-loader/index.css +2 -2
  5. package/components/header/component.js +1 -1
  6. package/components/header/index.css +4 -4
  7. package/components/index.js +2 -0
  8. package/components/screens/fatal-error/component.js +1 -1
  9. package/components/screens/fatal-error/index.css +7 -7
  10. package/components/screens/hint/component.js +10 -10
  11. package/components/screens/hint/index.css +13 -13
  12. package/components/screens/index.d.ts +1 -0
  13. package/components/screens/index.js +2 -0
  14. package/components/screens/initial/component.js +8 -5
  15. package/components/screens/initial/countdown-section.js +1 -1
  16. package/components/screens/initial/index.css +25 -19
  17. package/components/screens/temp-block/component.js +2 -2
  18. package/components/screens/temp-block/index.css +14 -8
  19. package/components/screens/temp-block-over/component.d.ts +9 -0
  20. package/components/screens/temp-block-over/component.js +37 -0
  21. package/components/screens/temp-block-over/index.css +59 -0
  22. package/components/screens/temp-block-over/index.d.ts +1 -0
  23. package/components/screens/temp-block-over/index.js +9 -0
  24. package/{countdown-section-b7271098.js → countdown-section-66246bfb.js} +7 -4
  25. package/cssm/components/base-confirmation/component.js +4 -1
  26. package/cssm/components/index.js +2 -0
  27. package/cssm/components/screens/hint/component.js +9 -9
  28. package/cssm/components/screens/index.d.ts +1 -0
  29. package/cssm/components/screens/index.js +2 -0
  30. package/cssm/components/screens/initial/component.js +7 -4
  31. package/cssm/components/screens/initial/countdown-section.js +6 -3
  32. package/cssm/components/screens/initial/index.module.css +7 -0
  33. package/cssm/components/screens/temp-block/component.js +1 -1
  34. package/cssm/components/screens/temp-block/index.module.css +7 -0
  35. package/cssm/components/screens/temp-block-over/component.d.ts +9 -0
  36. package/cssm/components/screens/temp-block-over/component.js +36 -0
  37. package/cssm/components/screens/temp-block-over/index.d.ts +1 -0
  38. package/cssm/components/screens/temp-block-over/index.js +9 -0
  39. package/cssm/components/screens/temp-block-over/index.module.css +58 -0
  40. package/cssm/shared/index.js +2 -0
  41. package/cssm/types.d.ts +13 -2
  42. package/cssm/types.js +17 -9
  43. package/esm/components/base-confirmation/component.js +5 -2
  44. package/esm/components/base-confirmation/index.css +2 -2
  45. package/esm/components/countdown-loader/component.js +1 -1
  46. package/esm/components/countdown-loader/index.css +2 -2
  47. package/esm/components/header/component.js +1 -1
  48. package/esm/components/header/index.css +4 -4
  49. package/esm/components/index.js +1 -0
  50. package/esm/components/screens/fatal-error/component.js +1 -1
  51. package/esm/components/screens/fatal-error/index.css +7 -7
  52. package/esm/components/screens/hint/component.js +10 -10
  53. package/esm/components/screens/hint/index.css +13 -13
  54. package/esm/components/screens/index.d.ts +1 -0
  55. package/esm/components/screens/index.js +1 -0
  56. package/esm/components/screens/initial/component.js +8 -5
  57. package/esm/components/screens/initial/countdown-section.js +1 -1
  58. package/esm/components/screens/initial/index.css +25 -19
  59. package/esm/components/screens/temp-block/component.js +2 -2
  60. package/esm/components/screens/temp-block/index.css +14 -8
  61. package/esm/components/screens/temp-block-over/component.d.ts +9 -0
  62. package/esm/components/screens/temp-block-over/component.js +28 -0
  63. package/esm/components/screens/temp-block-over/index.css +59 -0
  64. package/esm/components/screens/temp-block-over/index.d.ts +1 -0
  65. package/esm/components/screens/temp-block-over/index.js +1 -0
  66. package/esm/{countdown-section-a99ec7db.js → countdown-section-b11f4c6f.js} +8 -5
  67. package/esm/mobile/component.mobile.js +1 -1
  68. package/esm/mobile/mobile.css +2 -2
  69. package/esm/shared/index.js +1 -0
  70. package/esm/types.d.ts +13 -2
  71. package/esm/types.js +17 -9
  72. package/mobile/component.mobile.js +1 -1
  73. package/mobile/mobile.css +2 -2
  74. package/modern/components/base-confirmation/component.js +5 -2
  75. package/modern/components/base-confirmation/index.css +2 -2
  76. package/modern/components/countdown-loader/component.js +1 -1
  77. package/modern/components/countdown-loader/index.css +2 -2
  78. package/modern/components/header/component.js +1 -1
  79. package/modern/components/header/index.css +4 -4
  80. package/modern/components/index.js +1 -0
  81. package/modern/components/screens/fatal-error/component.js +1 -1
  82. package/modern/components/screens/fatal-error/index.css +7 -7
  83. package/modern/components/screens/hint/component.js +10 -10
  84. package/modern/components/screens/hint/index.css +13 -13
  85. package/modern/components/screens/index.d.ts +1 -0
  86. package/modern/components/screens/index.js +1 -0
  87. package/modern/components/screens/initial/component.js +8 -5
  88. package/modern/components/screens/initial/countdown-section.js +1 -1
  89. package/modern/components/screens/initial/index.css +25 -19
  90. package/modern/components/screens/temp-block/component.js +2 -2
  91. package/modern/components/screens/temp-block/index.css +14 -8
  92. package/modern/components/screens/temp-block-over/component.d.ts +9 -0
  93. package/modern/components/screens/temp-block-over/component.js +26 -0
  94. package/modern/components/screens/temp-block-over/index.css +59 -0
  95. package/modern/components/screens/temp-block-over/index.d.ts +1 -0
  96. package/modern/components/screens/temp-block-over/index.js +1 -0
  97. package/modern/{countdown-section-7113cf49.js → countdown-section-5721eff6.js} +8 -5
  98. package/modern/mobile/component.mobile.js +1 -1
  99. package/modern/mobile/mobile.css +2 -2
  100. package/modern/shared/index.js +1 -0
  101. package/modern/types.d.ts +13 -2
  102. package/modern/types.js +17 -9
  103. package/moderncssm/components/base-confirmation/component.js +4 -1
  104. package/moderncssm/components/index.js +1 -0
  105. package/moderncssm/components/screens/hint/component.js +9 -9
  106. package/moderncssm/components/screens/index.d.ts +1 -0
  107. package/moderncssm/components/screens/index.js +1 -0
  108. package/moderncssm/components/screens/initial/component.js +7 -4
  109. package/moderncssm/components/screens/initial/countdown-section.js +7 -4
  110. package/moderncssm/components/screens/initial/index.module.css +9 -0
  111. package/moderncssm/components/screens/temp-block/component.js +1 -1
  112. package/moderncssm/components/screens/temp-block/index.module.css +9 -0
  113. package/moderncssm/components/screens/temp-block-over/component.d.ts +9 -0
  114. package/moderncssm/components/screens/temp-block-over/component.js +24 -0
  115. package/moderncssm/components/screens/temp-block-over/index.d.ts +1 -0
  116. package/moderncssm/components/screens/temp-block-over/index.js +1 -0
  117. package/moderncssm/components/screens/temp-block-over/index.module.css +42 -0
  118. package/moderncssm/shared/index.js +1 -0
  119. package/moderncssm/types.d.ts +13 -2
  120. package/moderncssm/types.js +17 -9
  121. package/package.json +1 -1
  122. package/shared/index.js +2 -0
  123. package/src/components/base-confirmation/component.tsx +6 -2
  124. package/src/components/screens/hint/component.tsx +11 -14
  125. package/src/components/screens/index.ts +1 -0
  126. package/src/components/screens/initial/component.tsx +9 -5
  127. package/src/components/screens/initial/countdown-section.tsx +9 -4
  128. package/src/components/screens/initial/index.module.css +8 -0
  129. package/src/components/screens/temp-block/component.tsx +1 -2
  130. package/src/components/screens/temp-block/index.module.css +8 -0
  131. package/src/components/screens/temp-block-over/component.tsx +55 -0
  132. package/src/components/screens/temp-block-over/index.module.css +23 -0
  133. package/src/components/screens/temp-block-over/index.ts +1 -0
  134. package/src/types.ts +36 -11
  135. package/types.d.ts +13 -2
  136. package/types.js +17 -9
  137. /package/{countdown-section-b7271098.d.ts → countdown-section-66246bfb.d.ts} +0 -0
  138. /package/esm/{countdown-section-a99ec7db.d.ts → countdown-section-b11f4c6f.d.ts} +0 -0
  139. /package/modern/{countdown-section-7113cf49.d.ts → countdown-section-5721eff6.d.ts} +0 -0
@@ -8,7 +8,7 @@ import { Text } from '@alfalab/core-components-typography/esm';
8
8
  import { usePrevious, useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
9
9
  import { ConfirmationContext } from '../../../context.js';
10
10
  import { Header } from '../../header/component.js';
11
- import { s as styles, C as CountdownSection } from '../../../countdown-section-a99ec7db.js';
11
+ import { s as styles, C as CountdownSection } from '../../../countdown-section-b11f4c6f.js';
12
12
 
13
13
  var CODE_SEND_HINT_VISIBLE_DURATION = 2000;
14
14
  var Initial = function (_a) {
@@ -56,9 +56,6 @@ var Initial = function (_a) {
56
56
  if (!inputRef.current) {
57
57
  return;
58
58
  }
59
- if (state === 'CODE_ERROR' && prevState !== 'CODE_ERROR') {
60
- inputRef.current.focus(requiredCharAmount - 1);
61
- }
62
59
  if (prevState === 'CODE_SENDING' && state !== 'CODE_SENDING') {
63
60
  inputRef.current.focus();
64
61
  }
@@ -73,6 +70,12 @@ var Initial = function (_a) {
73
70
  }
74
71
  }, [prevState, state, clearTimer]);
75
72
  var getCodeInputError = function () {
73
+ if (state === 'CODE_EXPIRED') {
74
+ return texts.codeErrorExpired || true;
75
+ }
76
+ if (state === 'CODE_EXPIRED_ENDED') {
77
+ return texts.codeErrorExpiredEnded || true;
78
+ }
76
79
  if (state === 'CODE_ERROR') {
77
80
  return texts.codeError || true;
78
81
  }
@@ -96,7 +99,7 @@ var Initial = function (_a) {
96
99
  _b[styles.typographyTheme] = !mobile,
97
100
  _b[styles.typographyThemeMobile] = mobile,
98
101
  _b)) },
99
- "\u041A\u043E\u0434 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D \u043D\u0430 ",
102
+ "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u043D\u0430 ",
100
103
  phone)) : null,
101
104
  React.createElement(ComponentCodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, className: cn(styles.containerInput, styles.codeInput), onComplete: handleInputComplete, onChange: handleInputChange, clearCodeOnError: clearCodeOnError, errorVisibleDuration: errorVisibleDuration, onErrorAnimationEnd: handleErrorAnimationEnd }),
102
105
  !hideCountdownSection && (React.createElement(CountdownSection, { processing: processing, timePassed: timePassed, codeSendHintVisible: codeSendHintVisible, handleSmsRetryClick: handleSmsRetryClick, mobile: mobile })),
@@ -5,4 +5,4 @@ import '@alfalab/core-components-spinner/esm';
5
5
  import '@alfalab/core-components-typography/esm';
6
6
  import '../../../context.js';
7
7
  import '../../../utils.js';
8
- export { C as CountdownSection } from '../../../countdown-section-a99ec7db.js';
8
+ export { C as CountdownSection } from '../../../countdown-section-b11f4c6f.js';
@@ -1,4 +1,4 @@
1
- /* hash: 10ebr */
1
+ /* hash: s6yyj */
2
2
  :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-primary: rgba(3, 3, 6, 0.88);
@@ -52,53 +52,59 @@
52
52
  --confirmation-text-color: var(--color-light-text-primary)
53
53
 
54
54
  /* header */
55
- } .confirmation__component_1smyt {
55
+ } .confirmation__component_1v2a0 {
56
56
  display: flex;
57
57
  flex-direction: column;
58
- } .confirmation__phone_1smyt.confirmation__phone_1smyt {
58
+ } .confirmation__phone_1v2a0.confirmation__phone_1v2a0 {
59
59
  color: var(--color-light-text-primary);
60
60
  margin-bottom: var(--gap-32);
61
- } .confirmation__typographyTheme_1smyt.confirmation__typographyTheme_1smyt {
61
+ } .confirmation__typographyTheme_1v2a0.confirmation__typographyTheme_1v2a0 {
62
62
  font-size: var(--confirmation-text-font-size);
63
63
  line-height: var(--confirmation-text-line-height);
64
64
  font-weight: var(--confirmation-text-font-weight);
65
65
  font-family: var(--confirmation-text-font-family);
66
66
  color: var(--confirmation-text-color);
67
- } .confirmation__typographyThemeMobile_1smyt.confirmation__typographyThemeMobile_1smyt {
67
+ } .confirmation__typographyThemeMobile_1v2a0.confirmation__typographyThemeMobile_1v2a0 {
68
68
  color: var(--color-light-text-secondary);
69
- } .confirmation__compact_1smyt {
69
+ } .confirmation__compact_1v2a0 {
70
70
  margin-bottom: var(--gap-24);
71
- } .confirmation__loaderWrap_1smyt {
71
+ } .confirmation__loaderWrap_1v2a0 {
72
72
  display: flex;
73
73
  align-items: center;
74
- } .confirmation__left_1smyt {
74
+ } .confirmation__left_1v2a0 {
75
75
  align-items: flex-start;
76
- } .confirmation__center_1smyt {
76
+ } .confirmation__center_1v2a0 {
77
77
  align-items: center;
78
78
  text-align: center
79
- } .confirmation__center_1smyt .confirmation__loaderWrap_1smyt {
79
+ } .confirmation__center_1v2a0 .confirmation__loaderWrap_1v2a0 {
80
80
  justify-content: center;
81
- } .confirmation__codeInput_1smyt {
81
+ } .confirmation__codeInput_1v2a0 {
82
82
  margin-bottom: var(--gap-12);
83
- } .confirmation__smsBtn_1smyt.confirmation__smsBtn_1smyt {
83
+ } .confirmation__smsBtn_1v2a0.confirmation__smsBtn_1v2a0 {
84
84
  min-height: var(--size-xs-height);
85
- } .confirmation__smsComeLink_1smyt.confirmation__smsComeLink_1smyt {
85
+ } .confirmation__smsComeLink_1v2a0.confirmation__smsComeLink_1v2a0 {
86
86
  font-size: 14px;
87
87
  line-height: 20px;
88
88
  font-weight: 500;
89
- } .confirmation__countdownContainer_1smyt.confirmation__countdownContainer_1smyt {
89
+ } .confirmation__countdownContainer_1v2a0.confirmation__countdownContainer_1v2a0 {
90
90
  color: var(--color-light-text-secondary);
91
91
  margin-bottom: var(--gap-24);
92
- } .confirmation__countdownMobile_1smyt.confirmation__countdownMobile_1smyt {
92
+ } .confirmation__countdownMobile_1v2a0.confirmation__countdownMobile_1v2a0 {
93
93
  margin-bottom: var(--gap-20);
94
- } .confirmation__countdownLoaderMobile_1smyt.confirmation__countdownLoaderMobile_1smyt {
94
+ } .confirmation__countdownLoaderMobile_1v2a0.confirmation__countdownLoaderMobile_1v2a0 {
95
95
  margin-bottom: var(--gap-16);
96
- } .confirmation__getCodeButton_1smyt {
96
+ } .confirmation__timeCounter_1v2a0 {
97
+ display: inline-block;
98
+ min-width: 47px;
99
+ color: var(--color-light-text-secondary);
100
+ text-align: left;
101
+ font-variant-numeric: lining-nums tabular-nums;
102
+ } .confirmation__getCodeButton_1v2a0 {
97
103
  position: relative;
98
104
  top: var(--gap-4-neg);
99
105
  margin-bottom: var(--gap-16);
100
- } .confirmation__getCodeButtonMobile_1smyt {
106
+ } .confirmation__getCodeButtonMobile_1v2a0 {
101
107
  margin-bottom: var(--gap-0);
102
- } .confirmation__containerInput_1smyt {
108
+ } .confirmation__containerInput_1v2a0 {
103
109
  min-height: 80px;
104
110
  }
@@ -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_1ax4q","center":"confirmation__center_1ax4q","typographyTheme":"confirmation__typographyTheme_1ax4q","typographyThemeMobile":"confirmation__typographyThemeMobile_1ax4q","description":"confirmation__description_1ax4q","countdownWrap":"confirmation__countdownWrap_1ax4q","loader":"confirmation__loader_1ax4q"};
9
+ var styles = {"component":"confirmation__component_83plh","center":"confirmation__center_83plh","typographyTheme":"confirmation__typographyTheme_83plh","typographyThemeMobile":"confirmation__typographyThemeMobile_83plh","description":"confirmation__description_83plh","countdownWrap":"confirmation__countdownWrap_83plh","timeCounter":"confirmation__timeCounter_83plh","loader":"confirmation__loader_83plh"};
10
10
  require('./index.css')
11
11
 
12
12
  var TempBlock = function (_a) {
@@ -30,7 +30,7 @@ var TempBlock = function (_a) {
30
30
  _b)) }, texts.tempBlockDescription),
31
31
  React.createElement("div", { className: cn(styles.countdownWrap, (_c = {}, _c[styles.typographyTheme] = !mobile, _c)) },
32
32
  React.createElement(CountdownLoader, { progress: 1 - timeLeft / tempBlockDuration, className: styles.loader }),
33
- formatMsAsMinutes(timeLeft))));
33
+ React.createElement("time", { className: styles.timeCounter }, formatMsAsMinutes(timeLeft)))));
34
34
  };
35
35
 
36
36
  export { TempBlock };
@@ -1,4 +1,4 @@
1
- /* hash: 1gi4b */
1
+ /* hash: 1ahsa */
2
2
  :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-primary: rgba(3, 3, 6, 0.88);
@@ -40,25 +40,31 @@
40
40
  --confirmation-text-color: var(--color-light-text-primary)
41
41
 
42
42
  /* header */
43
- } .confirmation__component_1ax4q {
43
+ } .confirmation__component_83plh {
44
44
  display: flex;
45
45
  flex-direction: column;
46
- } .confirmation__center_1ax4q {
46
+ } .confirmation__center_83plh {
47
47
  align-items: center;
48
48
  text-align: center;
49
- } .confirmation__typographyTheme_1ax4q.confirmation__typographyTheme_1ax4q {
49
+ } .confirmation__typographyTheme_83plh.confirmation__typographyTheme_83plh {
50
50
  font-size: var(--confirmation-text-font-size);
51
51
  line-height: var(--confirmation-text-line-height);
52
52
  font-weight: var(--confirmation-text-font-weight);
53
53
  font-family: var(--confirmation-text-font-family);
54
54
  color: var(--confirmation-text-color);
55
- } .confirmation__typographyThemeMobile_1ax4q.confirmation__typographyThemeMobile_1ax4q {
55
+ } .confirmation__typographyThemeMobile_83plh.confirmation__typographyThemeMobile_83plh {
56
56
  color: var(--color-light-text-secondary);
57
- } .confirmation__description_1ax4q.confirmation__description_1ax4q {
57
+ } .confirmation__description_83plh.confirmation__description_83plh {
58
58
  margin-bottom: var(--gap-8);
59
- } .confirmation__countdownWrap_1ax4q {
59
+ } .confirmation__countdownWrap_83plh {
60
60
  display: flex;
61
61
  align-items: center;
62
- } .confirmation__loader_1ax4q {
62
+ } .confirmation__timeCounter_83plh {
63
+ display: inline-block;
64
+ min-width: 47px;
65
+ color: var(--color-light-text-secondary);
66
+ text-align: left;
67
+ font-variant-numeric: lining-nums tabular-nums;
68
+ } .confirmation__loader_83plh {
63
69
  margin-right: var(--gap-8);
64
70
  }
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ type TempBlockOverProps = {
3
+ /**
4
+ * Отображать в мобильной версии экран компонента
5
+ */
6
+ mobile?: boolean;
7
+ };
8
+ declare const TempBlockOver: FC<TempBlockOverProps>;
9
+ export { TempBlockOverProps, TempBlockOver };
@@ -0,0 +1,28 @@
1
+ import React, { useContext } from 'react';
2
+ import cn from 'classnames';
3
+ import { Button } from '@alfalab/core-components-button/esm';
4
+ import { Text } from '@alfalab/core-components-typography/esm';
5
+ import { ConfirmationContext } from '../../../context.js';
6
+ import { Header } from '../../header/component.js';
7
+
8
+ var styles = {"component":"confirmation__component_1fn9p","center":"confirmation__center_1fn9p","typographyTheme":"confirmation__typographyTheme_1fn9p","typographyThemeMobile":"confirmation__typographyThemeMobile_1fn9p","button":"confirmation__button_1fn9p"};
9
+ require('./index.css')
10
+
11
+ var TempBlockOver = function (_a) {
12
+ var _b;
13
+ var mobile = _a.mobile;
14
+ var _c = useContext(ConfirmationContext), alignContent = _c.alignContent, texts = _c.texts, breakpoint = _c.breakpoint, client = _c.client, onChangeScreen = _c.onChangeScreen, onChangeState = _c.onChangeState;
15
+ var handleReturnButtonClick = function () {
16
+ onChangeScreen('INITIAL');
17
+ onChangeState('INITIAL');
18
+ };
19
+ return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
20
+ React.createElement(Header, { mobile: mobile }, texts.tempBlockOverTitle),
21
+ React.createElement(Text, { view: 'primary-medium', color: 'primary', className: cn(styles.description, (_b = {},
22
+ _b[styles.typographyTheme] = !mobile,
23
+ _b[styles.typographyThemeMobile] = mobile,
24
+ _b)) }, texts.tempBlockOverDescription),
25
+ React.createElement(Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.button, breakpoint: breakpoint, client: client }, texts.tempBlockOverButton)));
26
+ };
27
+
28
+ export { TempBlockOver };
@@ -0,0 +1,59 @@
1
+ /* hash: 1cf84 */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
+ } /* deprecated */ :root {
4
+ --color-light-text-primary: rgba(3, 3, 6, 0.88);
5
+ --color-light-text-secondary: rgba(4, 4, 19, 0.55); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
6
+ } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
7
+ } :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 */
8
+ } :root {
9
+
10
+ /* Hard */
11
+
12
+ /* Up */
13
+
14
+ /* Hard up */
15
+ } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
16
+
17
+ /* новые значения, используйте их */
18
+ } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
19
+ --gap-2xl: 32px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
20
+
21
+ /* новые значения, используйте их */
22
+
23
+ /* no-unit может приводить к проблемам в calc (#1559) */
24
+ /* stylelint-disable-next-line length-zero-no-unit */
25
+ --gap-32: var(--gap-2xl);
26
+ } :root {
27
+ --font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
28
+ sans-serif;
29
+ } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
30
+ } /* сбрасывает синюю подсветку при нажатии */ :root {
31
+ /* desktop */
32
+
33
+ /* mobile */
34
+
35
+ /* text */
36
+ --confirmation-text-font-size: 16px;
37
+ --confirmation-text-line-height: 24px;
38
+ --confirmation-text-font-weight: 400;
39
+ --confirmation-text-font-family: var(--font-family-system);
40
+ --confirmation-text-color: var(--color-light-text-primary)
41
+
42
+ /* header */
43
+ } .confirmation__component_1fn9p {
44
+ display: flex;
45
+ flex-direction: column;
46
+ } .confirmation__center_1fn9p {
47
+ align-items: center;
48
+ text-align: center;
49
+ } .confirmation__typographyTheme_1fn9p.confirmation__typographyTheme_1fn9p {
50
+ font-size: var(--confirmation-text-font-size);
51
+ line-height: var(--confirmation-text-line-height);
52
+ font-weight: var(--confirmation-text-font-weight);
53
+ font-family: var(--confirmation-text-font-family);
54
+ color: var(--confirmation-text-color);
55
+ } .confirmation__typographyThemeMobile_1fn9p.confirmation__typographyThemeMobile_1fn9p {
56
+ color: var(--color-light-text-secondary);
57
+ } .confirmation__button_1fn9p.confirmation__button_1fn9p {
58
+ margin-top: var(--gap-32);
59
+ }
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export { TempBlockOver } from './component.js';
@@ -1,4 +1,4 @@
1
- import React, { useContext } from 'react';
1
+ import React, { useContext, Fragment } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Button } from '@alfalab/core-components-button/esm';
4
4
  import { Spinner } from '@alfalab/core-components-spinner/esm';
@@ -6,19 +6,19 @@ import { Text } 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_1smyt","phone":"confirmation__phone_1smyt","typographyTheme":"confirmation__typographyTheme_1smyt","typographyThemeMobile":"confirmation__typographyThemeMobile_1smyt","compact":"confirmation__compact_1smyt","loaderWrap":"confirmation__loaderWrap_1smyt","left":"confirmation__left_1smyt","center":"confirmation__center_1smyt","codeInput":"confirmation__codeInput_1smyt","smsBtn":"confirmation__smsBtn_1smyt","smsComeLink":"confirmation__smsComeLink_1smyt","countdownContainer":"confirmation__countdownContainer_1smyt","countdownMobile":"confirmation__countdownMobile_1smyt","countdownLoaderMobile":"confirmation__countdownLoaderMobile_1smyt","getCodeButton":"confirmation__getCodeButton_1smyt","getCodeButtonMobile":"confirmation__getCodeButtonMobile_1smyt","containerInput":"confirmation__containerInput_1smyt"};
9
+ var styles = {"component":"confirmation__component_1v2a0","phone":"confirmation__phone_1v2a0","typographyTheme":"confirmation__typographyTheme_1v2a0","typographyThemeMobile":"confirmation__typographyThemeMobile_1v2a0","compact":"confirmation__compact_1v2a0","loaderWrap":"confirmation__loaderWrap_1v2a0","left":"confirmation__left_1v2a0","center":"confirmation__center_1v2a0","codeInput":"confirmation__codeInput_1v2a0","smsBtn":"confirmation__smsBtn_1v2a0","smsComeLink":"confirmation__smsComeLink_1v2a0","countdownContainer":"confirmation__countdownContainer_1v2a0","countdownMobile":"confirmation__countdownMobile_1v2a0","countdownLoaderMobile":"confirmation__countdownLoaderMobile_1v2a0","timeCounter":"confirmation__timeCounter_1v2a0","getCodeButton":"confirmation__getCodeButton_1v2a0","getCodeButtonMobile":"confirmation__getCodeButtonMobile_1v2a0","containerInput":"confirmation__containerInput_1v2a0"};
10
10
  require('./components/screens/initial/index.css')
11
11
 
12
12
  var CountdownSection = function (_a) {
13
13
  var _b, _c;
14
14
  var codeSendHintVisible = _a.codeSendHintVisible, timePassed = _a.timePassed, processing = _a.processing, mobile = _a.mobile, handleSmsRetryClick = _a.handleSmsRetryClick;
15
15
  var _d = useContext(ConfirmationContext), state = _d.state, texts = _d.texts, timeLeft = _d.timeLeft, blockSmsRetry = _d.blockSmsRetry, breakpoint = _d.breakpoint, client = _d.client;
16
- var renderText = function (text) {
16
+ var renderText = function (content) {
17
17
  var _a;
18
18
  return (React.createElement(Text, { className: cn(styles.countdownContainer, (_a = {},
19
19
  _a[styles.countdownMobile] = mobile,
20
20
  _a[styles.typographyTheme] = !mobile,
21
- _a)), view: mobile ? 'primary-small' : 'primary-medium', tag: 'div' }, text));
21
+ _a)), view: mobile ? 'primary-small' : 'primary-medium', tag: 'div' }, content));
22
22
  };
23
23
  if (codeSendHintVisible)
24
24
  return renderText(texts.codeSended);
@@ -35,7 +35,10 @@ var CountdownSection = function (_a) {
35
35
  if (timePassed) {
36
36
  return (React.createElement(Button, { size: mobile ? 'xs' : 'xxs', view: 'secondary', onClick: handleSmsRetryClick, className: cn(styles.getCodeButton, (_c = {}, _c[styles.getCodeButtonMobile] = mobile, _c)), breakpoint: breakpoint, client: client }, texts.buttonRetry));
37
37
  }
38
- return renderText("".concat(texts.countdown, " ").concat(formatMsAsMinutes(timeLeft)));
38
+ return renderText(React.createElement(Fragment, null,
39
+ texts.countdown,
40
+ '\u00A0',
41
+ React.createElement("time", { className: styles.timeCounter }, formatMsAsMinutes(timeLeft))));
39
42
  };
40
43
 
41
44
  export { CountdownSection as C, styles as s };
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import { BaseConfirmation } from '../components/base-confirmation/component.js';
5
5
 
6
- var styles = {"container":"confirmation__container_1e2n4"};
6
+ var styles = {"container":"confirmation__container_1lw1g"};
7
7
  require('./mobile.css')
8
8
 
9
9
  var ConfirmationMobile = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: sgg61 */
2
- .confirmation__container_1e2n4 {
1
+ /* hash: 1gezj */
2
+ .confirmation__container_1lw1g {
3
3
  max-width: 288px;
4
4
  }
@@ -2,6 +2,7 @@ export { Initial } from '../components/screens/initial/component.js';
2
2
  export { Hint } from '../components/screens/hint/component.js';
3
3
  export { FatalError } from '../components/screens/fatal-error/component.js';
4
4
  export { TempBlock } from '../components/screens/temp-block/component.js';
5
+ export { TempBlockOver } from '../components/screens/temp-block-over/component.js';
5
6
  export { CountdownLoader } from '../components/countdown-loader/component.js';
6
7
  export { ConfirmationContext } from '../context.js';
7
8
  export { defaultTexts } from '../types.js';
package/esm/types.d.ts CHANGED
@@ -117,6 +117,8 @@ type ConfirmationTexts = {
117
117
  */
118
118
  title?: ReactNode;
119
119
  codeError?: string;
120
+ codeErrorExpired?: string;
121
+ codeErrorExpiredEnded?: string;
120
122
  codeChecking?: string;
121
123
  codeSending?: string;
122
124
  codeSended?: string;
@@ -127,6 +129,9 @@ type ConfirmationTexts = {
127
129
  /**
128
130
  * Экран HINT
129
131
  */
132
+ hintTitle?: string;
133
+ hintDescription?: string;
134
+ hintNotification?: string;
130
135
  hintButton?: string;
131
136
  domesticPhone?: string;
132
137
  internationalPhone?: string;
@@ -141,9 +146,15 @@ type ConfirmationTexts = {
141
146
  */
142
147
  tempBlockTitle?: ReactNode;
143
148
  tempBlockDescription?: ReactNode;
149
+ /**
150
+ * Экран TEMP_BLOCK_OVER
151
+ */
152
+ tempBlockOverTitle?: ReactNode;
153
+ tempBlockOverDescription?: ReactNode;
154
+ tempBlockOverButton?: string;
144
155
  };
145
- type ConfirmationScreen = 'INITIAL' | 'HINT' | 'FATAL_ERROR' | 'TEMP_BLOCK';
146
- type ConfirmationState = 'INITIAL' | 'CODE_CHECKING' | 'CODE_SENDING' | 'CODE_ERROR';
156
+ type ConfirmationScreen = 'INITIAL' | 'HINT' | 'FATAL_ERROR' | 'TEMP_BLOCK' | 'TEMP_BLOCK_OVER';
157
+ type ConfirmationState = 'INITIAL' | 'CODE_CHECKING' | 'CODE_SENDING' | 'CODE_ERROR' | 'CODE_EXPIRED' | 'CODE_EXPIRED_ENDED';
147
158
  type ScreensMap = {
148
159
  [key: string]: ComponentType;
149
160
  };
package/esm/types.js CHANGED
@@ -1,19 +1,27 @@
1
1
  var defaultTexts = {
2
- title: 'Введите код из\xa0сообщения',
3
- codeError: 'Код введён неверно',
2
+ title: 'Введите код из\xa0уведомления',
3
+ codeError: 'Код не подходит, проверьте его',
4
+ codeErrorExpired: 'Код устарел, запросите новый',
5
+ codeErrorExpiredEnded: 'Код устарел',
4
6
  codeChecking: '',
5
7
  codeSending: '',
6
- buttonRetry: 'Запросить код повторно',
7
- linkToHint: 'Не\xa0приходит сообщение?',
8
+ buttonRetry: 'Запросить код',
9
+ hintTitle: 'Не\xa0приходит код?',
10
+ hintDescription: 'Если\xa0сменили номер, позвоните нам или обратитесь в\xa0любой офис банка.',
11
+ hintNotification: 'Если номер не\xa0меняли, попробуйте запросить код позже — возможно, перегружен сервис отправки уведомлений.',
12
+ linkToHint: 'Не\xa0приходит код?',
8
13
  hintButton: 'Вернуться к\xa0вводу кода',
9
14
  noAttemptsLeft: 'Не\xa0осталось попыток запроса кода',
10
15
  fatalErrorTitle: 'Ввести код больше нельзя',
11
- fatalErrorDescription: 'Вы\xa0ввели код неверно более 5\xa0раз. В\xa0целях безопасности мы\xa0ограничили дальнейший ввод.',
16
+ fatalErrorDescription: 'Мы ограничили следующие попытки ввода, потому\xa0что код был введён неверно больше 5 раз.',
12
17
  fatalErrorButton: 'Понятно',
13
- tempBlockTitle: 'Превышено количество попыток запроса кода',
14
- tempBlockDescription: 'Повторное подтверждение кодом будет возможно через 24\xa0часа',
15
- codeSended: 'Код выслан',
16
- countdown: 'Запросить повторно можно через',
18
+ tempBlockTitle: 'Ввести код пока нельзя',
19
+ tempBlockDescription: 'Слишком много неверных попыток. Запросите новый позже',
20
+ tempBlockOverTitle: 'Ввод разблокирован',
21
+ tempBlockOverDescription: 'Теперь можно запросить новый код',
22
+ tempBlockOverButton: 'Запросить новый код',
23
+ codeSended: 'Код отправлен',
24
+ countdown: 'Запросить новый можно через',
17
25
  domesticPhone: '8 800 200 00 00',
18
26
  internationalPhone: '+7 495 78 888 78',
19
27
  };
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
12
12
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
13
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
14
14
 
15
- var styles = {"container":"confirmation__container_1e2n4"};
15
+ var styles = {"container":"confirmation__container_1lw1g"};
16
16
  require('./mobile.css')
17
17
 
18
18
  var ConfirmationMobile = function (_a) {
package/mobile/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: sgg61 */
2
- .confirmation__container_1e2n4 {
1
+ /* hash: 1gezj */
2
+ .confirmation__container_1lw1g {
3
3
  max-width: 288px;
4
4
  }
@@ -8,8 +8,9 @@ import { Initial } from '../screens/initial/component.js';
8
8
  import { Hint } from '../screens/hint/component.js';
9
9
  import { FatalError } from '../screens/fatal-error/component.js';
10
10
  import { TempBlock } from '../screens/temp-block/component.js';
11
+ import { TempBlockOver } from '../screens/temp-block-over/component.js';
11
12
 
12
- const styles = {"component":"confirmation__component_8mcdx"};
13
+ const styles = {"component":"confirmation__component_1oti4"};
13
14
  require('./index.css')
14
15
 
15
16
  const confirmationScreens = {
@@ -17,6 +18,7 @@ const confirmationScreens = {
17
18
  HINT: Hint,
18
19
  FATAL_ERROR: FatalError,
19
20
  TEMP_BLOCK: TempBlock,
21
+ TEMP_BLOCK_OVER: TempBlockOver,
20
22
  };
21
23
  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, client, initialScreenHintSlot, errorVisibleDuration, ...restProps }) => {
22
24
  const [timeLeft, startTimer, stopTimer] = useCountdown(countdownDuration);
@@ -36,7 +38,8 @@ const BaseConfirmation = ({ state, screen, alignContent = 'left', children, requ
36
38
  /**
37
39
  * Останавливаем таймер, если новый экран/состояние не содержит таймер
38
40
  */
39
- if (!['INITIAL', 'HINT', 'TEMP_BLOCK'].includes(screen) || blockSmsRetry) {
41
+ if (!['INITIAL', 'HINT', 'TEMP_BLOCK', 'TEMP_BLOCK_OVER'].includes(screen) ||
42
+ blockSmsRetry) {
40
43
  stopTimer();
41
44
  }
42
45
  }, [state, screen, blockSmsRetry, stopTimer]);
@@ -1,4 +1,4 @@
1
- /* hash: 1j7rr */
1
+ /* hash: 1gsdf */
2
2
  :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-secondary: rgba(4, 4, 19, 0.55); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -23,7 +23,7 @@
23
23
  --gap-0: 0px;
24
24
  } :root {
25
25
  } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
26
- } /* сбрасывает синюю подсветку при нажатии */ .confirmation__component_8mcdx {
26
+ } /* сбрасывает синюю подсветку при нажатии */ .confirmation__component_1oti4 {
27
27
  width: 100%;
28
28
  max-width: 388px;
29
29
  margin: var(--gap-0) auto;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const styles = {"circle":"confirmation__circle_13zee"};
3
+ const styles = {"circle":"confirmation__circle_1b8ut"};
4
4
  require('./index.css')
5
5
 
6
6
  const SIZE = 16;