@alfalab/core-components-confirmation 13.9.11 → 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 (145) hide show
  1. package/components/base-confirmation/component.js +5 -2
  2. package/components/base-confirmation/index.css +3 -3
  3. package/components/countdown-loader/component.js +1 -1
  4. package/components/countdown-loader/index.css +3 -3
  5. package/components/header/component.js +1 -1
  6. package/components/header/index.css +5 -5
  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 +8 -8
  10. package/components/screens/hint/component.js +10 -10
  11. package/components/screens/hint/index.css +14 -14
  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 +26 -20
  17. package/components/screens/temp-block/component.js +2 -2
  18. package/components/screens/temp-block/index.css +15 -9
  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-4b769e3d.js → countdown-section-66246bfb.js} +7 -4
  25. package/cssm/components/base-confirmation/component.js +4 -1
  26. package/cssm/components/base-confirmation/index.module.css +1 -1
  27. package/cssm/components/countdown-loader/index.module.css +1 -1
  28. package/cssm/components/header/index.module.css +1 -1
  29. package/cssm/components/index.js +2 -0
  30. package/cssm/components/screens/fatal-error/index.module.css +1 -1
  31. package/cssm/components/screens/hint/component.js +9 -9
  32. package/cssm/components/screens/hint/index.module.css +1 -1
  33. package/cssm/components/screens/index.d.ts +1 -0
  34. package/cssm/components/screens/index.js +2 -0
  35. package/cssm/components/screens/initial/component.js +7 -4
  36. package/cssm/components/screens/initial/countdown-section.js +6 -3
  37. package/cssm/components/screens/initial/index.module.css +8 -1
  38. package/cssm/components/screens/temp-block/component.js +1 -1
  39. package/cssm/components/screens/temp-block/index.module.css +8 -1
  40. package/cssm/components/screens/temp-block-over/component.d.ts +9 -0
  41. package/cssm/components/screens/temp-block-over/component.js +36 -0
  42. package/cssm/components/screens/temp-block-over/index.d.ts +1 -0
  43. package/cssm/components/screens/temp-block-over/index.js +9 -0
  44. package/cssm/components/screens/temp-block-over/index.module.css +58 -0
  45. package/cssm/shared/index.js +2 -0
  46. package/cssm/types.d.ts +13 -2
  47. package/cssm/types.js +17 -9
  48. package/cssm/vars.css +1 -1
  49. package/esm/components/base-confirmation/component.js +5 -2
  50. package/esm/components/base-confirmation/index.css +3 -3
  51. package/esm/components/countdown-loader/component.js +1 -1
  52. package/esm/components/countdown-loader/index.css +3 -3
  53. package/esm/components/header/component.js +1 -1
  54. package/esm/components/header/index.css +5 -5
  55. package/esm/components/index.js +1 -0
  56. package/esm/components/screens/fatal-error/component.js +1 -1
  57. package/esm/components/screens/fatal-error/index.css +8 -8
  58. package/esm/components/screens/hint/component.js +10 -10
  59. package/esm/components/screens/hint/index.css +14 -14
  60. package/esm/components/screens/index.d.ts +1 -0
  61. package/esm/components/screens/index.js +1 -0
  62. package/esm/components/screens/initial/component.js +8 -5
  63. package/esm/components/screens/initial/countdown-section.js +1 -1
  64. package/esm/components/screens/initial/index.css +26 -20
  65. package/esm/components/screens/temp-block/component.js +2 -2
  66. package/esm/components/screens/temp-block/index.css +15 -9
  67. package/esm/components/screens/temp-block-over/component.d.ts +9 -0
  68. package/esm/components/screens/temp-block-over/component.js +28 -0
  69. package/esm/components/screens/temp-block-over/index.css +59 -0
  70. package/esm/components/screens/temp-block-over/index.d.ts +1 -0
  71. package/esm/components/screens/temp-block-over/index.js +1 -0
  72. package/esm/{countdown-section-8cccd867.js → countdown-section-b11f4c6f.js} +8 -5
  73. package/esm/mobile/component.mobile.js +1 -1
  74. package/esm/mobile/mobile.css +2 -2
  75. package/esm/shared/index.js +1 -0
  76. package/esm/types.d.ts +13 -2
  77. package/esm/types.js +17 -9
  78. package/mobile/component.mobile.js +1 -1
  79. package/mobile/mobile.css +2 -2
  80. package/modern/components/base-confirmation/component.js +5 -2
  81. package/modern/components/base-confirmation/index.css +3 -3
  82. package/modern/components/countdown-loader/component.js +1 -1
  83. package/modern/components/countdown-loader/index.css +3 -3
  84. package/modern/components/header/component.js +1 -1
  85. package/modern/components/header/index.css +5 -5
  86. package/modern/components/index.js +1 -0
  87. package/modern/components/screens/fatal-error/component.js +1 -1
  88. package/modern/components/screens/fatal-error/index.css +8 -8
  89. package/modern/components/screens/hint/component.js +10 -10
  90. package/modern/components/screens/hint/index.css +14 -14
  91. package/modern/components/screens/index.d.ts +1 -0
  92. package/modern/components/screens/index.js +1 -0
  93. package/modern/components/screens/initial/component.js +8 -5
  94. package/modern/components/screens/initial/countdown-section.js +1 -1
  95. package/modern/components/screens/initial/index.css +26 -20
  96. package/modern/components/screens/temp-block/component.js +2 -2
  97. package/modern/components/screens/temp-block/index.css +15 -9
  98. package/modern/components/screens/temp-block-over/component.d.ts +9 -0
  99. package/modern/components/screens/temp-block-over/component.js +26 -0
  100. package/modern/components/screens/temp-block-over/index.css +59 -0
  101. package/modern/components/screens/temp-block-over/index.d.ts +1 -0
  102. package/modern/components/screens/temp-block-over/index.js +1 -0
  103. package/modern/{countdown-section-b6f5538b.js → countdown-section-5721eff6.js} +8 -5
  104. package/modern/mobile/component.mobile.js +1 -1
  105. package/modern/mobile/mobile.css +2 -2
  106. package/modern/shared/index.js +1 -0
  107. package/modern/types.d.ts +13 -2
  108. package/modern/types.js +17 -9
  109. package/moderncssm/components/base-confirmation/component.js +4 -1
  110. package/moderncssm/components/index.js +1 -0
  111. package/moderncssm/components/screens/hint/component.js +9 -9
  112. package/moderncssm/components/screens/index.d.ts +1 -0
  113. package/moderncssm/components/screens/index.js +1 -0
  114. package/moderncssm/components/screens/initial/component.js +7 -4
  115. package/moderncssm/components/screens/initial/countdown-section.js +7 -4
  116. package/moderncssm/components/screens/initial/index.module.css +9 -0
  117. package/moderncssm/components/screens/temp-block/component.js +1 -1
  118. package/moderncssm/components/screens/temp-block/index.module.css +9 -0
  119. package/moderncssm/components/screens/temp-block-over/component.d.ts +9 -0
  120. package/moderncssm/components/screens/temp-block-over/component.js +24 -0
  121. package/moderncssm/components/screens/temp-block-over/index.d.ts +1 -0
  122. package/moderncssm/components/screens/temp-block-over/index.js +1 -0
  123. package/moderncssm/components/screens/temp-block-over/index.module.css +42 -0
  124. package/moderncssm/shared/index.js +1 -0
  125. package/moderncssm/types.d.ts +13 -2
  126. package/moderncssm/types.js +17 -9
  127. package/package.json +3 -3
  128. package/shared/index.js +2 -0
  129. package/src/components/base-confirmation/component.tsx +6 -2
  130. package/src/components/screens/hint/component.tsx +11 -14
  131. package/src/components/screens/index.ts +1 -0
  132. package/src/components/screens/initial/component.tsx +9 -5
  133. package/src/components/screens/initial/countdown-section.tsx +9 -4
  134. package/src/components/screens/initial/index.module.css +8 -0
  135. package/src/components/screens/temp-block/component.tsx +1 -2
  136. package/src/components/screens/temp-block/index.module.css +8 -0
  137. package/src/components/screens/temp-block-over/component.tsx +55 -0
  138. package/src/components/screens/temp-block-over/index.module.css +23 -0
  139. package/src/components/screens/temp-block-over/index.ts +1 -0
  140. package/src/types.ts +36 -11
  141. package/types.d.ts +13 -2
  142. package/types.js +17 -9
  143. /package/{countdown-section-4b769e3d.d.ts → countdown-section-66246bfb.d.ts} +0 -0
  144. /package/esm/{countdown-section-8cccd867.d.ts → countdown-section-b11f4c6f.d.ts} +0 -0
  145. /package/modern/{countdown-section-b6f5538b.d.ts → countdown-section-5721eff6.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- /* hash: zzsp6 */
1
+ /* hash: bulif */
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);
@@ -31,7 +31,7 @@
31
31
  } :root {
32
32
  --font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
33
33
  sans-serif;
34
- } :root {
34
+ } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
35
35
  } /* сбрасывает синюю подсветку при нажатии */ :root {
36
36
  /* desktop */
37
37
 
@@ -45,40 +45,40 @@
45
45
  --confirmation-text-color: var(--color-light-text-primary)
46
46
 
47
47
  /* header */
48
- } .confirmation__component_eepdd {
48
+ } .confirmation__component_15dkv {
49
49
  display: flex;
50
50
  flex-direction: column;
51
51
  align-items: flex-start
52
- } .confirmation__component_eepdd span:last-of-type {
52
+ } .confirmation__component_15dkv span:last-of-type {
53
53
  margin-bottom: var(--gap-0);
54
- } .confirmation__center_eepdd {
54
+ } .confirmation__center_15dkv {
55
55
  align-items: center;
56
56
  text-align: center;
57
- } .confirmation__text_eepdd.confirmation__text_eepdd {
57
+ } .confirmation__text_15dkv.confirmation__text_15dkv {
58
58
  margin-bottom: var(--gap-24);
59
- } .confirmation__typographyTheme_eepdd.confirmation__typographyTheme_eepdd {
59
+ } .confirmation__typographyTheme_15dkv.confirmation__typographyTheme_15dkv {
60
60
  font-size: var(--confirmation-text-font-size);
61
61
  line-height: var(--confirmation-text-line-height);
62
62
  font-weight: var(--confirmation-text-font-weight);
63
63
  font-family: var(--confirmation-text-font-family);
64
64
  color: var(--confirmation-text-color);
65
- } .confirmation__typographyThemeMobile_eepdd.confirmation__typographyThemeMobile_eepdd {
65
+ } .confirmation__typographyThemeMobile_15dkv.confirmation__typographyThemeMobile_15dkv {
66
66
  color: var(--color-light-text-secondary);
67
- } .confirmation__phonesWrap_eepdd {
67
+ } .confirmation__phonesWrap_15dkv {
68
68
  display: flex;
69
69
  flex-direction: column;
70
70
  margin-bottom: var(--gap-24);
71
- } .confirmation__phoneWrap_eepdd {
71
+ } .confirmation__phoneWrap_15dkv {
72
72
  margin-bottom: var(--gap-8)
73
- } .confirmation__phoneWrap_eepdd:last-child {
73
+ } .confirmation__phoneWrap_15dkv:last-child {
74
74
  margin-bottom: var(--gap-0);
75
- } .confirmation__phoneLink_eepdd.confirmation__phoneLink_eepdd {
75
+ } .confirmation__phoneLink_15dkv.confirmation__phoneLink_15dkv {
76
76
  font-size: 16px;
77
77
  line-height: 24px;
78
78
  font-weight: 500;
79
- } .confirmation__hintButton_eepdd {
79
+ } .confirmation__hintButton_15dkv {
80
80
  margin-top: var(--gap-32);
81
- } .confirmation__phoneContentMobile_eepdd {
81
+ } .confirmation__phoneContentMobile_15dkv {
82
82
  display: flex;
83
83
  flex-direction: column;
84
84
  }
@@ -2,3 +2,4 @@ export * from "./initial/index";
2
2
  export * from "./hint/index";
3
3
  export * from "./fatal-error/index";
4
4
  export * from "./temp-block/index";
5
+ export * from "./temp-block-over/index";
@@ -2,3 +2,4 @@ export { Initial } from './initial/component.js';
2
2
  export { Hint } from './hint/component.js';
3
3
  export { FatalError } from './fatal-error/component.js';
4
4
  export { TempBlock } from './temp-block/component.js';
5
+ export { TempBlockOver } from './temp-block-over/component.js';
@@ -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-8cccd867.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-8cccd867.js';
8
+ export { C as CountdownSection } from '../../../countdown-section-b11f4c6f.js';
@@ -1,4 +1,4 @@
1
- /* hash: 192ch */
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);
@@ -37,7 +37,7 @@
37
37
  } :root {
38
38
  --font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
39
39
  sans-serif;
40
- } :root {
40
+ } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
41
41
  --size-xs-height: 40px;
42
42
  } /* сбрасывает синюю подсветку при нажатии */ :root {
43
43
  /* desktop */
@@ -52,53 +52,59 @@
52
52
  --confirmation-text-color: var(--color-light-text-primary)
53
53
 
54
54
  /* header */
55
- } .confirmation__component_7ukfl {
55
+ } .confirmation__component_1v2a0 {
56
56
  display: flex;
57
57
  flex-direction: column;
58
- } .confirmation__phone_7ukfl.confirmation__phone_7ukfl {
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_7ukfl.confirmation__typographyTheme_7ukfl {
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_7ukfl.confirmation__typographyThemeMobile_7ukfl {
67
+ } .confirmation__typographyThemeMobile_1v2a0.confirmation__typographyThemeMobile_1v2a0 {
68
68
  color: var(--color-light-text-secondary);
69
- } .confirmation__compact_7ukfl {
69
+ } .confirmation__compact_1v2a0 {
70
70
  margin-bottom: var(--gap-24);
71
- } .confirmation__loaderWrap_7ukfl {
71
+ } .confirmation__loaderWrap_1v2a0 {
72
72
  display: flex;
73
73
  align-items: center;
74
- } .confirmation__left_7ukfl {
74
+ } .confirmation__left_1v2a0 {
75
75
  align-items: flex-start;
76
- } .confirmation__center_7ukfl {
76
+ } .confirmation__center_1v2a0 {
77
77
  align-items: center;
78
78
  text-align: center
79
- } .confirmation__center_7ukfl .confirmation__loaderWrap_7ukfl {
79
+ } .confirmation__center_1v2a0 .confirmation__loaderWrap_1v2a0 {
80
80
  justify-content: center;
81
- } .confirmation__codeInput_7ukfl {
81
+ } .confirmation__codeInput_1v2a0 {
82
82
  margin-bottom: var(--gap-12);
83
- } .confirmation__smsBtn_7ukfl.confirmation__smsBtn_7ukfl {
83
+ } .confirmation__smsBtn_1v2a0.confirmation__smsBtn_1v2a0 {
84
84
  min-height: var(--size-xs-height);
85
- } .confirmation__smsComeLink_7ukfl.confirmation__smsComeLink_7ukfl {
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_7ukfl.confirmation__countdownContainer_7ukfl {
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_7ukfl.confirmation__countdownMobile_7ukfl {
92
+ } .confirmation__countdownMobile_1v2a0.confirmation__countdownMobile_1v2a0 {
93
93
  margin-bottom: var(--gap-20);
94
- } .confirmation__countdownLoaderMobile_7ukfl.confirmation__countdownLoaderMobile_7ukfl {
94
+ } .confirmation__countdownLoaderMobile_1v2a0.confirmation__countdownLoaderMobile_1v2a0 {
95
95
  margin-bottom: var(--gap-16);
96
- } .confirmation__getCodeButton_7ukfl {
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_7ukfl {
106
+ } .confirmation__getCodeButtonMobile_1v2a0 {
101
107
  margin-bottom: var(--gap-0);
102
- } .confirmation__containerInput_7ukfl {
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_1083x","center":"confirmation__center_1083x","typographyTheme":"confirmation__typographyTheme_1083x","typographyThemeMobile":"confirmation__typographyThemeMobile_1083x","description":"confirmation__description_1083x","countdownWrap":"confirmation__countdownWrap_1083x","loader":"confirmation__loader_1083x"};
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: tmern */
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);
@@ -26,7 +26,7 @@
26
26
  } :root {
27
27
  --font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
28
28
  sans-serif;
29
- } :root {
29
+ } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
30
30
  } /* сбрасывает синюю подсветку при нажатии */ :root {
31
31
  /* desktop */
32
32
 
@@ -40,25 +40,31 @@
40
40
  --confirmation-text-color: var(--color-light-text-primary)
41
41
 
42
42
  /* header */
43
- } .confirmation__component_1083x {
43
+ } .confirmation__component_83plh {
44
44
  display: flex;
45
45
  flex-direction: column;
46
- } .confirmation__center_1083x {
46
+ } .confirmation__center_83plh {
47
47
  align-items: center;
48
48
  text-align: center;
49
- } .confirmation__typographyTheme_1083x.confirmation__typographyTheme_1083x {
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_1083x.confirmation__typographyThemeMobile_1083x {
55
+ } .confirmation__typographyThemeMobile_83plh.confirmation__typographyThemeMobile_83plh {
56
56
  color: var(--color-light-text-secondary);
57
- } .confirmation__description_1083x.confirmation__description_1083x {
57
+ } .confirmation__description_83plh.confirmation__description_83plh {
58
58
  margin-bottom: var(--gap-8);
59
- } .confirmation__countdownWrap_1083x {
59
+ } .confirmation__countdownWrap_83plh {
60
60
  display: flex;
61
61
  align-items: center;
62
- } .confirmation__loader_1083x {
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_7ukfl","phone":"confirmation__phone_7ukfl","typographyTheme":"confirmation__typographyTheme_7ukfl","typographyThemeMobile":"confirmation__typographyThemeMobile_7ukfl","compact":"confirmation__compact_7ukfl","loaderWrap":"confirmation__loaderWrap_7ukfl","left":"confirmation__left_7ukfl","center":"confirmation__center_7ukfl","codeInput":"confirmation__codeInput_7ukfl","smsBtn":"confirmation__smsBtn_7ukfl","smsComeLink":"confirmation__smsComeLink_7ukfl","countdownContainer":"confirmation__countdownContainer_7ukfl","countdownMobile":"confirmation__countdownMobile_7ukfl","countdownLoaderMobile":"confirmation__countdownLoaderMobile_7ukfl","getCodeButton":"confirmation__getCodeButton_7ukfl","getCodeButtonMobile":"confirmation__getCodeButtonMobile_7ukfl","containerInput":"confirmation__containerInput_7ukfl"};
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_z8by6"};
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: zjm0h */
2
- .confirmation__container_z8by6 {
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_z8by6"};
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: zjm0h */
2
- .confirmation__container_z8by6 {
1
+ /* hash: 1gezj */
2
+ .confirmation__container_1lw1g {
3
3
  max-width: 288px;
4
4
  }