@alfalab/core-components-confirmation 9.0.7 → 10.0.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 (233) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/component.d.ts +4 -164
  3. package/dist/component.js +113 -101
  4. package/dist/components/countdown-loader/component.d.ts +1 -1
  5. package/dist/components/countdown-loader/component.js +1 -1
  6. package/dist/components/countdown-loader/index.css +2 -2
  7. package/dist/components/index.d.ts +1 -3
  8. package/dist/components/index.js +15 -14
  9. package/dist/components/screens/fatal-error/component.d.ts +3 -0
  10. package/dist/components/screens/fatal-error/component.js +25 -0
  11. package/dist/components/screens/fatal-error/index.css +61 -0
  12. package/dist/components/{code-input → screens/fatal-error}/index.d.ts +0 -0
  13. package/dist/components/screens/fatal-error/index.js +13 -0
  14. package/dist/components/screens/hint/component.d.ts +3 -0
  15. package/dist/components/screens/hint/component.js +45 -0
  16. package/dist/components/screens/hint/index.css +103 -0
  17. package/dist/components/{countdown → screens/hint}/index.d.ts +0 -0
  18. package/dist/components/screens/hint/index.js +15 -0
  19. package/dist/components/screens/index.d.ts +4 -0
  20. package/dist/components/screens/index.js +26 -0
  21. package/dist/components/screens/initial/component.d.ts +3 -0
  22. package/dist/components/screens/initial/component.js +95 -0
  23. package/dist/components/screens/initial/countdown-section.d.ts +0 -0
  24. package/dist/components/screens/initial/countdown-section.js +15 -0
  25. package/dist/components/screens/initial/index.css +98 -0
  26. package/dist/components/{overlimit → screens/initial}/index.d.ts +0 -0
  27. package/dist/components/screens/initial/index.js +19 -0
  28. package/dist/components/screens/temp-block/component.d.ts +3 -0
  29. package/dist/components/screens/temp-block/component.js +36 -0
  30. package/dist/components/{overlimit → screens/temp-block}/index.css +9 -31
  31. package/dist/components/{sign-confirmation → screens/temp-block}/index.d.ts +0 -0
  32. package/dist/components/screens/temp-block/index.js +13 -0
  33. package/dist/context.d.ts +4 -0
  34. package/dist/context.js +27 -0
  35. package/dist/countdown-section-2edac0a0.d.ts +9 -0
  36. package/dist/countdown-section-2edac0a0.js +41 -0
  37. package/dist/cssm/component.d.ts +4 -164
  38. package/dist/cssm/component.js +115 -103
  39. package/dist/cssm/components/countdown-loader/component.d.ts +1 -1
  40. package/dist/cssm/components/index.d.ts +1 -3
  41. package/dist/cssm/components/index.js +19 -18
  42. package/dist/cssm/components/screens/fatal-error/component.d.ts +3 -0
  43. package/dist/cssm/components/screens/fatal-error/component.js +24 -0
  44. package/dist/cssm/components/{code-input → screens/fatal-error}/index.d.ts +0 -0
  45. package/dist/cssm/components/screens/fatal-error/index.js +14 -0
  46. package/dist/cssm/components/screens/fatal-error/index.module.css +60 -0
  47. package/dist/cssm/components/screens/hint/component.d.ts +3 -0
  48. package/dist/cssm/components/screens/hint/component.js +44 -0
  49. package/dist/cssm/components/{countdown → screens/hint}/index.d.ts +0 -0
  50. package/dist/cssm/components/screens/hint/index.js +16 -0
  51. package/dist/cssm/components/screens/hint/index.module.css +102 -0
  52. package/dist/cssm/components/screens/index.d.ts +4 -0
  53. package/dist/cssm/components/screens/index.js +31 -0
  54. package/dist/cssm/components/screens/initial/component.d.ts +3 -0
  55. package/dist/cssm/components/screens/initial/component.js +97 -0
  56. package/dist/cssm/components/screens/initial/countdown-section.d.ts +9 -0
  57. package/dist/cssm/components/screens/initial/countdown-section.js +41 -0
  58. package/dist/cssm/components/{overlimit → screens/initial}/index.d.ts +0 -0
  59. package/dist/cssm/components/screens/initial/index.js +20 -0
  60. package/dist/cssm/components/{sign-confirmation → screens/initial}/index.module.css +40 -50
  61. package/dist/cssm/components/screens/temp-block/component.d.ts +3 -0
  62. package/dist/cssm/components/screens/temp-block/component.js +36 -0
  63. package/dist/cssm/components/{sign-confirmation → screens/temp-block}/index.d.ts +0 -0
  64. package/dist/cssm/components/screens/temp-block/index.js +15 -0
  65. package/dist/cssm/components/{overlimit → screens/temp-block}/index.module.css +6 -28
  66. package/dist/cssm/context.d.ts +4 -0
  67. package/dist/cssm/context.js +27 -0
  68. package/dist/cssm/index.d.ts +3 -0
  69. package/dist/cssm/index.js +29 -20
  70. package/dist/cssm/index.module.css +5 -77
  71. package/dist/cssm/types.d.ts +130 -0
  72. package/dist/cssm/types.js +23 -0
  73. package/dist/cssm/utils.d.ts +30 -0
  74. package/dist/cssm/utils.js +84 -0
  75. package/dist/esm/component.d.ts +4 -164
  76. package/dist/esm/component.js +114 -102
  77. package/dist/esm/components/countdown-loader/component.d.ts +1 -1
  78. package/dist/esm/components/countdown-loader/component.js +1 -1
  79. package/dist/esm/components/countdown-loader/index.css +2 -2
  80. package/dist/esm/components/index.d.ts +1 -3
  81. package/dist/esm/components/index.js +11 -10
  82. package/dist/esm/components/screens/fatal-error/component.d.ts +3 -0
  83. package/dist/esm/components/screens/fatal-error/component.js +17 -0
  84. package/dist/esm/components/screens/fatal-error/index.css +61 -0
  85. package/dist/esm/components/{code-input → screens/fatal-error}/index.d.ts +0 -0
  86. package/dist/esm/components/screens/fatal-error/index.js +5 -0
  87. package/dist/esm/components/screens/hint/component.d.ts +3 -0
  88. package/dist/esm/components/screens/hint/component.js +36 -0
  89. package/dist/esm/components/screens/hint/index.css +103 -0
  90. package/dist/esm/components/{countdown → screens/hint}/index.d.ts +0 -0
  91. package/dist/esm/components/screens/hint/index.js +7 -0
  92. package/dist/esm/components/screens/index.d.ts +4 -0
  93. package/dist/esm/components/screens/index.js +15 -0
  94. package/dist/esm/components/screens/initial/component.d.ts +3 -0
  95. package/dist/esm/components/screens/initial/component.js +86 -0
  96. package/dist/esm/components/screens/initial/countdown-section.d.ts +0 -0
  97. package/dist/esm/components/screens/initial/countdown-section.js +7 -0
  98. package/dist/esm/components/screens/initial/index.css +98 -0
  99. package/dist/esm/components/{overlimit → screens/initial}/index.d.ts +0 -0
  100. package/dist/esm/components/screens/initial/index.js +11 -0
  101. package/dist/esm/components/screens/temp-block/component.d.ts +3 -0
  102. package/dist/esm/components/screens/temp-block/component.js +28 -0
  103. package/dist/{modern/components/overlimit → esm/components/screens/temp-block}/index.css +9 -31
  104. package/dist/esm/components/{sign-confirmation → screens/temp-block}/index.d.ts +0 -0
  105. package/dist/esm/components/screens/temp-block/index.js +5 -0
  106. package/dist/esm/context.d.ts +4 -0
  107. package/dist/esm/context.js +23 -0
  108. package/dist/esm/countdown-section-ddb744a6.d.ts +9 -0
  109. package/dist/esm/countdown-section-ddb744a6.js +33 -0
  110. package/dist/esm/index.css +7 -79
  111. package/dist/esm/index.d.ts +3 -0
  112. package/dist/esm/index.js +13 -11
  113. package/dist/esm/types.d.ts +130 -0
  114. package/dist/esm/types.js +19 -0
  115. package/dist/esm/utils.d.ts +30 -0
  116. package/dist/esm/utils.js +76 -0
  117. package/dist/index.css +7 -79
  118. package/dist/index.d.ts +3 -0
  119. package/dist/index.js +25 -16
  120. package/dist/modern/component.d.ts +4 -164
  121. package/dist/modern/component.js +75 -102
  122. package/dist/modern/components/countdown-loader/component.d.ts +1 -1
  123. package/dist/modern/components/countdown-loader/component.js +1 -1
  124. package/dist/modern/components/countdown-loader/index.css +2 -2
  125. package/dist/modern/components/index.d.ts +1 -3
  126. package/dist/modern/components/index.js +11 -10
  127. package/dist/modern/components/screens/fatal-error/component.d.ts +3 -0
  128. package/dist/modern/components/screens/fatal-error/component.js +17 -0
  129. package/dist/modern/components/screens/fatal-error/index.css +61 -0
  130. package/dist/modern/components/{code-input → screens/fatal-error}/index.d.ts +0 -0
  131. package/dist/modern/components/screens/fatal-error/index.js +5 -0
  132. package/dist/modern/components/screens/hint/component.d.ts +3 -0
  133. package/dist/modern/components/screens/hint/component.js +36 -0
  134. package/dist/modern/components/screens/hint/index.css +103 -0
  135. package/dist/modern/components/{countdown → screens/hint}/index.d.ts +0 -0
  136. package/dist/modern/components/screens/hint/index.js +7 -0
  137. package/dist/modern/components/screens/index.d.ts +4 -0
  138. package/dist/modern/components/screens/index.js +15 -0
  139. package/dist/modern/components/screens/initial/component.d.ts +3 -0
  140. package/dist/modern/components/screens/initial/component.js +86 -0
  141. package/dist/modern/components/screens/initial/countdown-section.d.ts +0 -0
  142. package/dist/modern/components/screens/initial/countdown-section.js +7 -0
  143. package/dist/modern/components/screens/initial/index.css +98 -0
  144. package/dist/modern/components/{overlimit → screens/initial}/index.d.ts +0 -0
  145. package/dist/modern/components/screens/initial/index.js +11 -0
  146. package/dist/modern/components/screens/temp-block/component.d.ts +3 -0
  147. package/dist/modern/components/screens/temp-block/component.js +28 -0
  148. package/dist/{esm/components/overlimit → modern/components/screens/temp-block}/index.css +9 -31
  149. package/dist/modern/components/{sign-confirmation → screens/temp-block}/index.d.ts +0 -0
  150. package/dist/modern/components/screens/temp-block/index.js +5 -0
  151. package/dist/modern/context.d.ts +4 -0
  152. package/dist/modern/context.js +23 -0
  153. package/dist/modern/countdown-section-91f055c8.d.ts +9 -0
  154. package/dist/modern/countdown-section-91f055c8.js +32 -0
  155. package/dist/modern/index.css +7 -79
  156. package/dist/modern/index.d.ts +3 -0
  157. package/dist/modern/index.js +12 -10
  158. package/dist/modern/types.d.ts +130 -0
  159. package/dist/modern/types.js +19 -0
  160. package/dist/modern/utils.d.ts +30 -0
  161. package/dist/modern/utils.js +74 -0
  162. package/dist/types.d.ts +130 -0
  163. package/dist/types.js +23 -0
  164. package/dist/utils.d.ts +30 -0
  165. package/dist/utils.js +84 -0
  166. package/package.json +3 -2
  167. package/dist/components/code-input/component.d.ts +0 -16
  168. package/dist/components/code-input/component.js +0 -160
  169. package/dist/components/code-input/index.css +0 -99
  170. package/dist/components/code-input/index.js +0 -13
  171. package/dist/components/code-input/utils.d.ts +0 -10
  172. package/dist/components/code-input/utils.js +0 -21
  173. package/dist/components/countdown/component.d.ts +0 -23
  174. package/dist/components/countdown/component.js +0 -117
  175. package/dist/components/countdown/index.css +0 -85
  176. package/dist/components/countdown/index.js +0 -16
  177. package/dist/components/overlimit/component.d.ts +0 -12
  178. package/dist/components/overlimit/component.js +0 -73
  179. package/dist/components/overlimit/index.js +0 -17
  180. package/dist/components/sign-confirmation/component.d.ts +0 -37
  181. package/dist/components/sign-confirmation/component.js +0 -62
  182. package/dist/components/sign-confirmation/index.css +0 -108
  183. package/dist/components/sign-confirmation/index.js +0 -20
  184. package/dist/cssm/components/code-input/component.d.ts +0 -16
  185. package/dist/cssm/components/code-input/component.js +0 -159
  186. package/dist/cssm/components/code-input/index.js +0 -14
  187. package/dist/cssm/components/code-input/index.module.css +0 -98
  188. package/dist/cssm/components/code-input/utils.d.ts +0 -10
  189. package/dist/cssm/components/code-input/utils.js +0 -21
  190. package/dist/cssm/components/countdown/component.d.ts +0 -23
  191. package/dist/cssm/components/countdown/component.js +0 -117
  192. package/dist/cssm/components/countdown/index.js +0 -18
  193. package/dist/cssm/components/countdown/index.module.css +0 -84
  194. package/dist/cssm/components/overlimit/component.d.ts +0 -12
  195. package/dist/cssm/components/overlimit/component.js +0 -74
  196. package/dist/cssm/components/overlimit/index.js +0 -20
  197. package/dist/cssm/components/sign-confirmation/component.d.ts +0 -37
  198. package/dist/cssm/components/sign-confirmation/component.js +0 -64
  199. package/dist/cssm/components/sign-confirmation/index.js +0 -24
  200. package/dist/esm/components/code-input/component.d.ts +0 -16
  201. package/dist/esm/components/code-input/component.js +0 -151
  202. package/dist/esm/components/code-input/index.css +0 -99
  203. package/dist/esm/components/code-input/index.js +0 -5
  204. package/dist/esm/components/code-input/utils.d.ts +0 -10
  205. package/dist/esm/components/code-input/utils.js +0 -17
  206. package/dist/esm/components/countdown/component.d.ts +0 -23
  207. package/dist/esm/components/countdown/component.js +0 -107
  208. package/dist/esm/components/countdown/index.css +0 -85
  209. package/dist/esm/components/countdown/index.js +0 -7
  210. package/dist/esm/components/overlimit/component.d.ts +0 -12
  211. package/dist/esm/components/overlimit/component.js +0 -65
  212. package/dist/esm/components/overlimit/index.js +0 -9
  213. package/dist/esm/components/sign-confirmation/component.d.ts +0 -37
  214. package/dist/esm/components/sign-confirmation/component.js +0 -53
  215. package/dist/esm/components/sign-confirmation/index.css +0 -108
  216. package/dist/esm/components/sign-confirmation/index.js +0 -12
  217. package/dist/modern/components/code-input/component.d.ts +0 -16
  218. package/dist/modern/components/code-input/component.js +0 -123
  219. package/dist/modern/components/code-input/index.css +0 -99
  220. package/dist/modern/components/code-input/index.js +0 -5
  221. package/dist/modern/components/code-input/utils.d.ts +0 -10
  222. package/dist/modern/components/code-input/utils.js +0 -16
  223. package/dist/modern/components/countdown/component.d.ts +0 -23
  224. package/dist/modern/components/countdown/component.js +0 -102
  225. package/dist/modern/components/countdown/index.css +0 -85
  226. package/dist/modern/components/countdown/index.js +0 -7
  227. package/dist/modern/components/overlimit/component.d.ts +0 -12
  228. package/dist/modern/components/overlimit/component.js +0 -64
  229. package/dist/modern/components/overlimit/index.js +0 -9
  230. package/dist/modern/components/sign-confirmation/component.d.ts +0 -37
  231. package/dist/modern/components/sign-confirmation/component.js +0 -51
  232. package/dist/modern/components/sign-confirmation/index.css +0 -108
  233. package/dist/modern/components/sign-confirmation/index.js +0 -12
@@ -1,114 +1,126 @@
1
- import React, { forwardRef, useState, useRef, useCallback, useEffect } from 'react';
1
+ import React, { useEffect } from 'react';
2
2
  import cn from 'classnames';
3
- import { Button } from '@alfalab/core-components-button/dist/esm';
4
- import { Link } from '@alfalab/core-components-link/dist/esm';
5
- import '@alfalab/utils';
6
- import '@alfalab/hooks';
7
- import './components/countdown-loader/component.js';
8
- import './components/countdown/component.js';
3
+ import { usePrevious } from '@alfalab/hooks';
4
+ import { useCountdown, ONE_MINUTE, ONE_DAY } from './utils.js';
5
+ import { ConfirmationContext } from './context.js';
6
+ import { defaultTexts } from './types.js';
7
+ import '@alfalab/core-components-code-input/dist/esm';
8
+ import '@alfalab/core-components-link/dist/esm';
9
+ import './countdown-section-ddb744a6.js';
9
10
  import '@alfalab/core-components-loader/dist/esm';
10
- import './components/code-input/component.js';
11
- import './components/code-input/utils.js';
12
- import { SignConfirmation } from './components/sign-confirmation/component.js';
13
- import '@alfalab/icons-glyph';
14
- import { Overlimit } from './components/overlimit/component.js';
11
+ import '@alfalab/core-components-button/dist/esm';
12
+ import { Initial } from './components/screens/initial/component.js';
13
+ import { Hint } from './components/screens/hint/component.js';
14
+ import { FatalError } from './components/screens/fatal-error/component.js';
15
+ import './components/countdown-loader/component.js';
16
+ import { TempBlock } from './components/screens/temp-block/component.js';
15
17
 
16
- var styles = {"component":"confirmation__component_4crub","error":"confirmation__error_4crub","errorHeader":"confirmation__errorHeader_4crub","errorText":"confirmation__errorText_4crub","phoneHintWrap":"confirmation__phoneHintWrap_4crub","phoneHintText":"confirmation__phoneHintText_4crub","phonesWrap":"confirmation__phonesWrap_4crub","phoneWrap":"confirmation__phoneWrap_4crub","phoneDescription":"confirmation__phoneDescription_4crub","center":"confirmation__center_4crub"};
17
- require('./index.css')
18
+ /*! *****************************************************************************
19
+ Copyright (c) Microsoft Corporation.
18
20
 
19
- var Confirmation = forwardRef(function (_a, ref) {
20
- var additionalContent = _a.additionalContent, className = _a.className, _b = _a.countdownDuration, countdownDuration = _b === void 0 ? 60000 : _b, dataTestId = _a.dataTestId, errorIsFatal = _a.errorIsFatal, _c = _a.errorTitle, errorTitle = _c === void 0 ? 'Превышено количество попыток ввода кода' : _c, _d = _a.error, error = _d === void 0 ? false : _d, _e = _a.errorOverlimit, errorOverlimit = _e === void 0 ? false : _e, _f = _a.errorOverlimitIsFatal, errorOverlimitIsFatal = _f === void 0 ? false : _f, errorText = _a.errorText, _g = _a.hasPhoneMask, hasPhoneMask = _g === void 0 ? true : _g, _h = _a.hasSmsCountdown, hasSmsCountdown = _h === void 0 ? true : _h, phone = _a.phone, _j = _a.requiredCharAmount, requiredCharAmount = _j === void 0 ? 5 : _j, _k = _a.signTitle, signTitle = _k === void 0 ? 'Введите код из\xa0сообщения' : _k, _l = _a.overlimitTitle, overlimitTitle = _l === void 0 ? 'Превышено количество\n попыток ввода кода' : _l, _m = _a.overlimitText, overlimitText = _m === void 0 ? 'Повторное подтверждение кодом из SMS\n будет возможно через' : _m, overlimitCountdownDuration = _a.overlimitCountdownDuration, code = _a.code, _o = _a.codeSending, codeSending = _o === void 0 ? false : _o, _p = _a.codeChecking, codeChecking = _p === void 0 ? false : _p, _q = _a.codeCheckingText, codeCheckingText = _q === void 0 ? 'Проверка кода' : _q, _r = _a.codeSendingText, codeSendingText = _r === void 0 ? 'Отправляем код' : _r, _s = _a.buttonErrorText, buttonErrorText = _s === void 0 ? 'Понятно' : _s, _t = _a.buttonReturnText, buttonReturnText = _t === void 0 ? 'Вернуться назад' : _t, _u = _a.buttonRetryText, buttonRetryText = _u === void 0 ? 'Запросить новый код' : _u, _v = _a.alignContent, alignContent = _v === void 0 ? 'left' : _v, noAttemptsLeftMessage = _a.noAttemptsLeftMessage, countdownContent = _a.countdownContent, onInputFinished = _a.onInputFinished, onSmsRetryClick = _a.onSmsRetryClick, onOverlimitSmsRetryClick = _a.onOverlimitSmsRetryClick, onActionWithFatalError = _a.onActionWithFatalError, onCountdownFinished = _a.onCountdownFinished, onOverlimitCountdownFinished = _a.onOverlimitCountdownFinished, onInputChange = _a.onInputChange, onSmsHintLinkClick = _a.onSmsHintLinkClick;
21
- var _w = useState(false), showHint = _w[0], setShowHint = _w[1];
22
- var shouldShowFatalError = errorIsFatal && Boolean(errorText);
23
- var shouldShowOverlimitError = !errorIsFatal && !showHint && errorOverlimit;
24
- var shouldShowSignComponent = !showHint && !shouldShowFatalError && !shouldShowOverlimitError;
25
- var shouldShowHint = showHint && !shouldShowFatalError && !shouldShowOverlimitError;
26
- var nonFatalError = errorIsFatal ? '' : errorText;
27
- var inputRef = useRef(null);
28
- var handleSmsRetryClick = useCallback(function () {
29
- onSmsRetryClick();
30
- }, [onSmsRetryClick]);
31
- var handleOverlimitSmsRetryClick = useCallback(function () {
32
- if (onOverlimitSmsRetryClick) {
33
- onOverlimitSmsRetryClick();
34
- }
35
- }, [onOverlimitSmsRetryClick]);
36
- var handleSmsRetryFromHintClick = useCallback(function () {
37
- setShowHint(false);
38
- if (!noAttemptsLeftMessage) {
39
- onSmsRetryClick();
40
- }
41
- }, [onSmsRetryClick, noAttemptsLeftMessage]);
42
- var handleCountdownFinished = useCallback(function () {
43
- if (onCountdownFinished) {
44
- onCountdownFinished();
45
- }
46
- }, [onCountdownFinished]);
47
- var handleOverlimitCountdownFinished = useCallback(function () {
48
- if (onOverlimitCountdownFinished) {
49
- onOverlimitCountdownFinished();
50
- }
51
- }, [onOverlimitCountdownFinished]);
52
- var handleSmsHintLinkClick = useCallback(function () {
53
- setShowHint(true);
54
- if (onSmsHintLinkClick) {
55
- onSmsHintLinkClick();
21
+ Permission to use, copy, modify, and/or distribute this software for any
22
+ purpose with or without fee is hereby granted.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
25
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
26
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
27
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
28
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
29
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
30
+ PERFORMANCE OF THIS SOFTWARE.
31
+ ***************************************************************************** */
32
+ var __assign = function () {
33
+ __assign = Object.assign || function __assign(t) {
34
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
35
+ s = arguments[i];
36
+ for (var p in s)
37
+ if (Object.prototype.hasOwnProperty.call(s, p))
38
+ t[p] = s[p];
56
39
  }
57
- }, [onSmsHintLinkClick]);
58
- var handleErrorSmsRetryClick = useCallback(function () {
59
- if (onActionWithFatalError) {
60
- onActionWithFatalError();
40
+ return t;
41
+ };
42
+ return __assign.apply(this, arguments);
43
+ };
44
+ function __rest(s, e) {
45
+ var t = {};
46
+ for (var p in s)
47
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
48
+ t[p] = s[p];
49
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
50
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
52
+ t[p[i]] = s[p[i]];
61
53
  }
62
- else {
63
- onSmsRetryClick();
54
+ return t;
55
+ }
56
+
57
+ var styles = {"component":"confirmation__component_1lhb7","center":"confirmation__center_1lhb7"};
58
+ require('./index.css')
59
+
60
+ var confirmationScreens = {
61
+ INITIAL: Initial,
62
+ HINT: Hint,
63
+ FATAL_ERROR: FatalError,
64
+ TEMP_BLOCK: TempBlock,
65
+ };
66
+ var Confirmation = function (_a) {
67
+ var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b, children = _a.children, _c = _a.requiredCharAmount, requiredCharAmount = _c === void 0 ? 5 : _c, _d = _a.countdownDuration, countdownDuration = _d === void 0 ? ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? ONE_DAY : _e, phone = _a.phone, blockSmsRetry = _a.blockSmsRetry, dataTestId = _a.dataTestId, className = _a.className, getScreensMap = _a.getScreensMap, onInputFinished = _a.onInputFinished, onChangeState = _a.onChangeState, onSmsRetryClick = _a.onSmsRetryClick, onChangeScreen = _a.onChangeScreen, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick, onTempBlockFinished = _a.onTempBlockFinished, restProps = __rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished"]);
68
+ var _f = useCountdown(countdownDuration), timeLeft = _f[0], startTimer = _f[1], stopTimer = _f[2];
69
+ var prevState = usePrevious(state);
70
+ useEffect(function () {
71
+ startTimer();
72
+ }, [startTimer]);
73
+ useEffect(function () {
74
+ /**
75
+ * Перезапускаем таймер после повторного запроса кода
76
+ */
77
+ if (state === 'INITIAL' && prevState === 'CODE_SENDING') {
78
+ startTimer();
64
79
  }
65
- }, [onActionWithFatalError, onSmsRetryClick]);
80
+ }, [state, prevState, startTimer]);
66
81
  useEffect(function () {
67
- if (inputRef.current) {
68
- inputRef.current.focus();
82
+ /**
83
+ * Останавливаем таймер, если новый экран/состояние не содержит таймер
84
+ */
85
+ if (!['INITIAL', 'HINT'].includes(screen) || blockSmsRetry) {
86
+ stopTimer();
87
+ }
88
+ }, [state, screen, blockSmsRetry, stopTimer]);
89
+ var handleSmsRetry = function () {
90
+ onChangeState('CODE_SENDING');
91
+ onSmsRetryClick();
92
+ };
93
+ var handleInputFinished = function (code) {
94
+ onChangeState('CODE_CHECKING');
95
+ onInputFinished(code);
96
+ };
97
+ var handleFatalErrorOkButtonClick = function () {
98
+ if (onFatalErrorOkButtonClick) {
99
+ onFatalErrorOkButtonClick();
69
100
  }
70
- }, []);
71
- return (React.createElement("div", { className: cn(styles.component, styles[alignContent], className), ref: ref, "data-test-id": dataTestId },
72
- shouldShowSignComponent && (React.createElement(SignConfirmation, { codeChecking: codeChecking, codeSending: codeSending, smsHintVisible: !codeChecking, additionalContent: additionalContent, requiredCharAmount: requiredCharAmount, hasSmsCountdown: hasSmsCountdown, countdownDuration: countdownDuration, phone: phone, code: code, hasPhoneMask: hasPhoneMask, errorText: nonFatalError || '', error: error, title: signTitle, buttonRetryText: buttonRetryText, inputRef: inputRef, codeCheckingText: codeCheckingText, codeSendingText: codeSendingText, alignContent: alignContent, noAttemptsLeftMessage: noAttemptsLeftMessage, countdownContent: countdownContent, onInputFinished: onInputFinished, onInputChange: onInputChange, onSmsRetryClick: handleSmsRetryClick, onCountdownFinished: handleCountdownFinished, onSmsHintLinkClick: handleSmsHintLinkClick })),
73
- shouldShowOverlimitError && (React.createElement(Overlimit, { duration: overlimitCountdownDuration, title: overlimitTitle, text: overlimitText, hasFatalError: errorOverlimitIsFatal, buttonRetryText: buttonRetryText, onOverlimitRepeatSms: handleOverlimitSmsRetryClick, onOverlimitCountdownFinished: handleOverlimitCountdownFinished })),
74
- shouldShowFatalError && (React.createElement("div", { className: styles.error, role: 'alert' },
75
- React.createElement("span", { className: styles.errorHeader }, errorTitle),
76
- React.createElement("span", { className: styles.errorText }, errorText),
77
- React.createElement(Button, { size: 'xs', view: 'secondary', onClick: handleErrorSmsRetryClick }, buttonErrorText))),
78
- shouldShowHint && (React.createElement("div", { className: styles.phoneHintWrap },
79
- React.createElement("span", { className: styles.errorHeader }, "\u041D\u0435\u00A0\u043F\u0440\u0438\u0445\u043E\u0434\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435?"),
80
- React.createElement("span", { className: styles.phoneHintText }, "\u0415\u0441\u043B\u0438 \u0443\u00A0\u0432\u0430\u0441 \u0441\u043C\u0435\u043D\u0438\u043B\u0441\u044F \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432\u00A0\u043B\u044E\u0431\u043E\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430."),
81
- React.createElement("div", { className: styles.phonesWrap },
82
- React.createElement("div", { className: styles.phoneWrap },
83
- React.createElement(Link, { className: styles.phoneLink, href: 'tel:+78002000000' }, "8 800 200-00-00"),
84
- React.createElement("span", { className: styles.phoneDescription },
85
- ' ',
86
- "\u2014\u00A0\u0434\u043B\u044F \u0437\u0432\u043E\u043D\u043A\u043E\u0432 \u043F\u043E\u00A0\u0420\u043E\u0441\u0441\u0438\u0438")),
87
- React.createElement("div", { className: styles.phoneWrap },
88
- React.createElement(Link, { className: styles.phoneLink, href: 'tel:+74957888878' }, "+7 495 788-88-78"),
89
- React.createElement("span", { className: styles.phoneDescription },
90
- ' ',
91
- "\u2014\u00A0\u0432\u00A0\u041C\u043E\u0441\u043A\u0432\u0435 \u0438\u00A0\u0437\u0430\u00A0\u0433\u0440\u0430\u043D\u0438\u0446\u0435\u0439"))),
92
- React.createElement(Button, { className: styles.repeatButton, size: 'xs', view: 'secondary', onClick: handleSmsRetryFromHintClick }, buttonReturnText)))));
93
- });
94
- /**
95
- * Для отображения в сторибуке
96
- */
97
- Confirmation.defaultProps = {
98
- countdownDuration: 60000,
99
- errorTitle: 'Превышено количество попыток ввода кода',
100
- hasPhoneMask: true,
101
- hasSmsCountdown: true,
102
- requiredCharAmount: 5,
103
- signTitle: 'Введите код из\xa0сообщения',
104
- codeSending: false,
105
- codeChecking: false,
106
- codeCheckingText: 'Проверка кода',
107
- codeSendingText: 'Отправляем код',
108
- buttonErrorText: 'Понятно',
109
- buttonReturnText: 'Вернуться назад',
110
- buttonRetryText: 'Запросить новый код',
111
- alignContent: 'left',
101
+ };
102
+ var contextValue = {
103
+ alignContent: alignContent,
104
+ texts: __assign(__assign({}, defaultTexts), restProps.texts),
105
+ state: state,
106
+ screen: screen,
107
+ requiredCharAmount: requiredCharAmount,
108
+ countdownDuration: countdownDuration,
109
+ timeLeft: timeLeft,
110
+ tempBlockDuration: tempBlockDuration,
111
+ phone: phone,
112
+ blockSmsRetry: blockSmsRetry,
113
+ onTempBlockFinished: onTempBlockFinished,
114
+ onChangeState: onChangeState,
115
+ onChangeScreen: onChangeScreen,
116
+ onInputFinished: handleInputFinished,
117
+ onSmsRetryClick: handleSmsRetry,
118
+ onFatalErrorOkButtonClick: handleFatalErrorOkButtonClick,
119
+ };
120
+ var screensMap = getScreensMap ? getScreensMap(confirmationScreens) : confirmationScreens;
121
+ var CurrentScreen = screensMap[screen];
122
+ return (React.createElement(ConfirmationContext.Provider, { value: contextValue },
123
+ React.createElement("div", { className: cn(styles.component, styles[alignContent], className), "data-test-id": dataTestId }, CurrentScreen && React.createElement(CurrentScreen, null))));
112
124
  };
113
125
 
114
126
  export { Confirmation };
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  type Props = {
3
3
  progress: number;
4
- className: string;
4
+ className?: string;
5
5
  };
6
6
  declare const CountdownLoader: FC<Props>;
7
7
  export { CountdownLoader };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- var styles = {"circle":"confirmation__circle_1t7fa"};
3
+ var styles = {"circle":"confirmation__circle_c2vwh"};
4
4
  require('./index.css')
5
5
 
6
6
  var SIZE = 16;
@@ -1,4 +1,4 @@
1
- /* hash: ry20i */
1
+ /* hash: 1j9l0 */
2
2
  :root {
3
3
  --color-light-graphic-tertiary: #b6bcc3;
4
4
  }
@@ -19,7 +19,7 @@
19
19
 
20
20
  /* input */
21
21
  }
22
- .confirmation__circle_1t7fa {
22
+ .confirmation__circle_c2vwh {
23
23
  fill: transparent;
24
24
  stroke: var(--color-light-graphic-tertiary);
25
25
  stroke-width: 2px;
@@ -1,4 +1,2 @@
1
- export * from "./countdown/index";
2
- export * from "./sign-confirmation/index";
1
+ export * from "./screens/index";
3
2
  export * from "./countdown-loader/index";
4
- export * from "./overlimit/index";
@@ -1,14 +1,15 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
- import '@alfalab/core-components-button/dist/esm';
4
- import '@alfalab/core-components-link/dist/esm';
5
- import '@alfalab/utils';
6
3
  import '@alfalab/hooks';
7
- export { CountdownLoader } from './countdown-loader/component.js';
8
- export { Countdown, formatMsAsMinutes } from './countdown/component.js';
4
+ import '../utils.js';
5
+ import '../context.js';
6
+ import '@alfalab/core-components-code-input/dist/esm';
7
+ import '@alfalab/core-components-link/dist/esm';
8
+ import '../countdown-section-ddb744a6.js';
9
9
  import '@alfalab/core-components-loader/dist/esm';
10
- import './code-input/component.js';
11
- import './code-input/utils.js';
12
- export { SignConfirmation } from './sign-confirmation/component.js';
13
- import '@alfalab/icons-glyph';
14
- export { Overlimit } from './overlimit/component.js';
10
+ import '@alfalab/core-components-button/dist/esm';
11
+ export { Initial } from './screens/initial/component.js';
12
+ export { Hint } from './screens/hint/component.js';
13
+ export { FatalError } from './screens/fatal-error/component.js';
14
+ export { CountdownLoader } from './countdown-loader/component.js';
15
+ export { TempBlock } from './screens/temp-block/component.js';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const FatalError: () => JSX.Element;
3
+ export { FatalError };
@@ -0,0 +1,17 @@
1
+ import React, { useContext, Fragment } from 'react';
2
+ import '../../../utils.js';
3
+ import { ConfirmationContext } from '../../../context.js';
4
+ import { Button } from '@alfalab/core-components-button/dist/esm';
5
+
6
+ var styles = {"header":"confirmation__header_g9o34","description":"confirmation__description_g9o34"};
7
+ require('./index.css')
8
+
9
+ var FatalError = function () {
10
+ var _a = useContext(ConfirmationContext), texts = _a.texts, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick;
11
+ return (React.createElement(Fragment, null,
12
+ React.createElement("h3", { className: styles.header }, texts.fatalErrorTitle),
13
+ React.createElement("div", { className: styles.description }, texts.fatalErrorDescription),
14
+ React.createElement(Button, { size: 'xs', view: 'secondary', onClick: onFatalErrorOkButtonClick }, texts.fatalErrorButton)));
15
+ };
16
+
17
+ export { FatalError };
@@ -0,0 +1,61 @@
1
+ /* hash: 11nsd */
2
+ :root {
3
+ --color-light-text-primary: #0b1f35;
4
+ --color-light-text-secondary: #546272;
5
+ }
6
+ :root {
7
+
8
+ /* Hard */
9
+
10
+ /* Up */
11
+
12
+ /* Hard up */
13
+ }
14
+ :root {
15
+ --gap-xl: 24px;
16
+ --gap-2xl: 32px;
17
+ }
18
+ :root {
19
+ --font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
20
+ sans-serif;
21
+ }
22
+ :root {
23
+ /* title */
24
+ --confirmation-title-font-size: 22px;
25
+ --confirmation-title-line-height: 26px;
26
+ --confirmation-title-font-weight: 700;
27
+ --confirmation-title-font-family: var(--font-family-system);
28
+ --confirmation-title-color: var(--color-light-text-primary);
29
+ --confirmation-title-font-feature-settings: normal;
30
+
31
+ /* text */
32
+ --confirmation-text-font-size: 16px;
33
+ --confirmation-text-line-height: 24px;
34
+ --confirmation-text-font-weight: 400;
35
+ --confirmation-text-font-family: var(--font-family-system);
36
+ --confirmation-text-color: var(--color-light-text-secondary);
37
+
38
+ /* error */
39
+
40
+ /* input */
41
+ }
42
+ .confirmation__header_g9o34 {
43
+ margin: 0;
44
+ margin-bottom: var(--gap-xl);
45
+ font-size: var(--confirmation-title-font-size);
46
+ line-height: var(--confirmation-title-line-height);
47
+ font-weight: var(--confirmation-title-font-weight);
48
+ font-family: var(--confirmation-title-font-family);
49
+ color: var(--confirmation-title-color);
50
+ font-feature-settings: var(--confirmation-title-font-feature-settings);
51
+ }
52
+ .confirmation__description_g9o34 {
53
+ font-size: var(--confirmation-text-font-size);
54
+ line-height: var(--confirmation-text-line-height);
55
+ font-weight: var(--confirmation-text-font-weight);
56
+ font-family: var(--confirmation-text-font-family);
57
+ color: var(--confirmation-text-color);
58
+
59
+ margin-bottom: var(--gap-2xl);
60
+ color: var(--color-light-text-primary);
61
+ }
@@ -0,0 +1,5 @@
1
+ import 'react';
2
+ import '../../../utils.js';
3
+ import '../../../context.js';
4
+ import '@alfalab/core-components-button/dist/esm';
5
+ export { FatalError } from './component.js';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Hint: () => JSX.Element;
3
+ export { Hint };
@@ -0,0 +1,36 @@
1
+ import React, { useContext } from 'react';
2
+ import cn from 'classnames';
3
+ import '../../../utils.js';
4
+ import { ConfirmationContext } from '../../../context.js';
5
+ import { Link } from '@alfalab/core-components-link/dist/esm';
6
+ import { Button } from '@alfalab/core-components-button/dist/esm';
7
+
8
+ var styles = {"center":"confirmation__center_1td1k","phoneHintWrap":"confirmation__phoneHintWrap_1td1k","hintWrap":"confirmation__hintWrap_1td1k","title":"confirmation__title_1td1k","text":"confirmation__text_1td1k","phonesWrap":"confirmation__phonesWrap_1td1k","phoneWrap":"confirmation__phoneWrap_1td1k","phoneLink":"confirmation__phoneLink_1td1k","phoneDescription":"confirmation__phoneDescription_1td1k","hintButton":"confirmation__hintButton_1td1k"};
9
+ require('./index.css')
10
+
11
+ var Hint = function () {
12
+ var _a = useContext(ConfirmationContext), alignContent = _a.alignContent, texts = _a.texts, onChangeScreen = _a.onChangeScreen, onChangeState = _a.onChangeState;
13
+ var handleReturnButtonClick = function () {
14
+ onChangeScreen('INITIAL');
15
+ onChangeState('INITIAL');
16
+ };
17
+ return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
18
+ React.createElement("div", { className: styles.hintWrap },
19
+ React.createElement("h3", { className: styles.title }, "\u041D\u0435\u00A0\u043F\u0440\u0438\u0445\u043E\u0434\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435?"),
20
+ React.createElement("span", { className: styles.text }, "\u0415\u0441\u043B\u0438 \u0443\u00A0\u0432\u0430\u0441 \u0438\u0437\u043C\u0435\u043D\u0438\u043B\u0441\u044F \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430, \u043F\u043E\u0437\u0432\u043E\u043D\u0438\u0442\u0435 \u043D\u0430\u043C \u0438\u043B\u0438 \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432\u00A0\u043B\u044E\u0431\u043E\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430."),
21
+ React.createElement("div", { className: styles.phonesWrap },
22
+ React.createElement("div", { className: styles.phoneWrap },
23
+ React.createElement(Link, { href: 'tel:+78002000000', className: styles.phoneLink }, "8 800 200-00-00"),
24
+ React.createElement("span", { className: styles.phoneDescription },
25
+ ' ',
26
+ "\u2014\u00A0\u0434\u043B\u044F \u0437\u0432\u043E\u043D\u043A\u043E\u0432 \u043F\u043E\u00A0\u0420\u043E\u0441\u0441\u0438\u0438")),
27
+ React.createElement("div", { className: styles.phoneWrap },
28
+ React.createElement(Link, { href: 'tel:+74957888878', className: styles.phoneLink }, "+7 495 78-888-78"),
29
+ React.createElement("span", { className: styles.phoneDescription },
30
+ ' ',
31
+ "\u2014\u00A0\u0432\u00A0\u041C\u043E\u0441\u043A\u0432\u0435 \u0438\u00A0\u0437\u0430\u00A0\u0433\u0440\u0430\u043D\u0438\u0446\u0435\u0439"))),
32
+ React.createElement("span", { className: styles.text }, "\u0415\u0441\u043B\u0438 \u043D\u043E\u043C\u0435\u0440 \u043D\u0435\u00A0\u043C\u0435\u043D\u044F\u043B\u0441\u044F, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D \u0441\u0435\u0440\u0432\u0438\u0441 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0438\u043D\u0443\u0442."),
33
+ React.createElement(Button, { size: 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton }, texts.hintButton))));
34
+ };
35
+
36
+ export { Hint };
@@ -0,0 +1,103 @@
1
+ /* hash: 36cl4 */
2
+ :root {
3
+ --color-light-text-primary: #0b1f35;
4
+ --color-light-text-secondary: #546272;
5
+ }
6
+ :root {
7
+
8
+ /* Hard */
9
+
10
+ /* Up */
11
+
12
+ /* Hard up */
13
+ }
14
+ :root {
15
+ --gap-xs: 8px;
16
+ --gap-xl: 24px;
17
+ --gap-2xl: 32px;
18
+ }
19
+ :root {
20
+ --font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
21
+ sans-serif;
22
+ }
23
+ :root {
24
+ /* title */
25
+ --confirmation-title-font-size: 22px;
26
+ --confirmation-title-line-height: 26px;
27
+ --confirmation-title-font-weight: 700;
28
+ --confirmation-title-font-family: var(--font-family-system);
29
+ --confirmation-title-color: var(--color-light-text-primary);
30
+ --confirmation-title-font-feature-settings: normal;
31
+
32
+ /* text */
33
+ --confirmation-text-font-size: 16px;
34
+ --confirmation-text-line-height: 24px;
35
+ --confirmation-text-font-weight: 400;
36
+ --confirmation-text-font-family: var(--font-family-system);
37
+ --confirmation-text-color: var(--color-light-text-secondary);
38
+
39
+ /* error */
40
+
41
+ /* input */
42
+ }
43
+ .confirmation__center_1td1k .confirmation__phoneHintWrap_1td1k {
44
+ align-items: center;
45
+ }
46
+ .confirmation__center_1td1k .confirmation__hintWrap_1td1k {
47
+ align-items: center;
48
+ }
49
+ .confirmation__hintWrap_1td1k {
50
+ display: flex;
51
+ flex-direction: column;
52
+ align-items: flex-start;
53
+ }
54
+ .confirmation__title_1td1k {
55
+ margin: 0;
56
+ margin-bottom: var(--gap-xl);
57
+ font-size: var(--confirmation-title-font-size);
58
+ line-height: var(--confirmation-title-line-height);
59
+ font-weight: var(--confirmation-title-font-weight);
60
+ font-family: var(--confirmation-title-font-family);
61
+ color: var(--confirmation-title-color);
62
+ font-feature-settings: var(--confirmation-title-font-feature-settings);
63
+ }
64
+ .confirmation__text_1td1k {
65
+ font-size: var(--confirmation-text-font-size);
66
+ line-height: var(--confirmation-text-line-height);
67
+ font-weight: var(--confirmation-text-font-weight);
68
+ font-family: var(--confirmation-text-font-family);
69
+ color: var(--confirmation-text-color);
70
+
71
+ margin-bottom: var(--gap-xl);
72
+ }
73
+ .confirmation__phonesWrap_1td1k {
74
+ font-size: var(--confirmation-text-font-size);
75
+ line-height: var(--confirmation-text-line-height);
76
+ font-weight: var(--confirmation-text-font-weight);
77
+ font-family: var(--confirmation-text-font-family);
78
+ color: var(--confirmation-text-color);
79
+
80
+ display: flex;
81
+ flex-direction: column;
82
+ margin-bottom: var(--gap-xl);
83
+ }
84
+ .confirmation__phoneWrap_1td1k {
85
+ margin-bottom: var(--gap-xs)
86
+ }
87
+ .confirmation__phoneWrap_1td1k:last-child {
88
+ margin-bottom: 0;
89
+ }
90
+ .confirmation__phoneLink_1td1k {
91
+ font-size: 16px;
92
+ line-height: 24px;
93
+ font-weight: 500
94
+ }
95
+ .confirmation__phoneLink_1td1k > span {
96
+ border-bottom: none;
97
+ }
98
+ .confirmation__phoneDescription_1td1k {
99
+ color: var(--confirmation-text-color);
100
+ }
101
+ .confirmation__hintButton_1td1k {
102
+ margin-top: var(--gap-2xl);
103
+ }
@@ -0,0 +1,7 @@
1
+ import 'react';
2
+ import 'classnames';
3
+ import '../../../utils.js';
4
+ import '../../../context.js';
5
+ import '@alfalab/core-components-link/dist/esm';
6
+ import '@alfalab/core-components-button/dist/esm';
7
+ export { Hint } from './component.js';
@@ -0,0 +1,4 @@
1
+ export * from "./initial/index";
2
+ export * from "./hint/index";
3
+ export * from "./fatal-error/index";
4
+ export * from "./temp-block/index";
@@ -0,0 +1,15 @@
1
+ import 'react';
2
+ import 'classnames';
3
+ import '@alfalab/hooks';
4
+ import '../../utils.js';
5
+ import '../../context.js';
6
+ import '@alfalab/core-components-code-input/dist/esm';
7
+ import '@alfalab/core-components-link/dist/esm';
8
+ import '../../countdown-section-ddb744a6.js';
9
+ import '@alfalab/core-components-loader/dist/esm';
10
+ import '@alfalab/core-components-button/dist/esm';
11
+ export { Initial } from './initial/component.js';
12
+ export { Hint } from './hint/component.js';
13
+ export { FatalError } from './fatal-error/component.js';
14
+ import '../countdown-loader/component.js';
15
+ export { TempBlock } from './temp-block/component.js';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Initial: () => JSX.Element;
3
+ export { Initial };