@alfalab/core-components-confirmation 12.5.2 → 13.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 (181) hide show
  1. package/component.desktop.d.ts +1 -1
  2. package/component.desktop.js +5 -3
  3. package/component.mobile.js +6 -4
  4. package/component.responsive.d.ts +2 -3
  5. package/component.responsive.js +9 -9
  6. package/components/base-confirmation/component.js +9 -6
  7. package/components/base-confirmation/index.css +2 -2
  8. package/components/base-confirmation/index.js +5 -3
  9. package/components/countdown-loader/component.js +1 -1
  10. package/components/countdown-loader/index.css +2 -2
  11. package/components/header/component.js +1 -1
  12. package/components/header/index.css +4 -4
  13. package/components/index.js +5 -3
  14. package/components/screens/fatal-error/component.js +3 -3
  15. package/components/screens/fatal-error/index.css +6 -6
  16. package/components/screens/hint/component.js +3 -3
  17. package/components/screens/hint/index.css +12 -12
  18. package/components/screens/index.js +5 -3
  19. package/components/screens/initial/component.js +12 -9
  20. package/components/screens/initial/countdown-section.js +1 -1
  21. package/components/screens/initial/index.css +17 -20
  22. package/components/screens/initial/index.js +5 -3
  23. package/components/screens/temp-block/component.js +1 -1
  24. package/components/screens/temp-block/index.css +7 -7
  25. package/context.js +1 -0
  26. package/{countdown-section-41f47745.js → countdown-section-fb6524aa.js} +3 -3
  27. package/cssm/component.desktop.d.ts +1 -1
  28. package/cssm/component.desktop.js +4 -2
  29. package/cssm/component.mobile.js +4 -2
  30. package/cssm/component.responsive.d.ts +2 -3
  31. package/cssm/component.responsive.js +8 -8
  32. package/cssm/components/base-confirmation/component.js +7 -4
  33. package/cssm/components/base-confirmation/index.js +4 -2
  34. package/cssm/components/index.js +4 -2
  35. package/cssm/components/screens/fatal-error/component.js +2 -2
  36. package/cssm/components/screens/hint/component.js +2 -2
  37. package/cssm/components/screens/index.js +4 -2
  38. package/cssm/components/screens/initial/component.js +11 -8
  39. package/cssm/components/screens/initial/countdown-section.js +2 -2
  40. package/cssm/components/screens/initial/index.js +4 -2
  41. package/cssm/components/screens/initial/index.module.css +0 -3
  42. package/cssm/context.js +1 -0
  43. package/cssm/desktop.d.ts +1 -1
  44. package/cssm/desktop.js +7 -3
  45. package/cssm/index.d.ts +2 -6
  46. package/cssm/index.js +18 -26
  47. package/cssm/mobile.d.ts +1 -1
  48. package/cssm/mobile.js +7 -3
  49. package/cssm/shared.d.ts +4 -0
  50. package/cssm/shared.js +43 -0
  51. package/cssm/types.d.ts +11 -0
  52. package/desktop.d.ts +1 -1
  53. package/desktop.js +8 -4
  54. package/esm/component.desktop.d.ts +1 -1
  55. package/esm/component.desktop.js +5 -3
  56. package/esm/component.mobile.js +6 -4
  57. package/esm/component.responsive.d.ts +2 -3
  58. package/esm/component.responsive.js +9 -9
  59. package/esm/components/base-confirmation/component.js +9 -6
  60. package/esm/components/base-confirmation/index.css +2 -2
  61. package/esm/components/base-confirmation/index.js +5 -3
  62. package/esm/components/countdown-loader/component.js +1 -1
  63. package/esm/components/countdown-loader/index.css +2 -2
  64. package/esm/components/header/component.js +1 -1
  65. package/esm/components/header/index.css +4 -4
  66. package/esm/components/index.js +5 -3
  67. package/esm/components/screens/fatal-error/component.js +3 -3
  68. package/esm/components/screens/fatal-error/index.css +6 -6
  69. package/esm/components/screens/hint/component.js +3 -3
  70. package/esm/components/screens/hint/index.css +12 -12
  71. package/esm/components/screens/index.js +5 -3
  72. package/esm/components/screens/initial/component.js +8 -5
  73. package/esm/components/screens/initial/countdown-section.js +1 -1
  74. package/esm/components/screens/initial/index.css +17 -20
  75. package/esm/components/screens/initial/index.js +5 -3
  76. package/esm/components/screens/temp-block/component.js +1 -1
  77. package/esm/components/screens/temp-block/index.css +7 -7
  78. package/esm/context.js +1 -0
  79. package/esm/{countdown-section-83bf5f20.js → countdown-section-c65cff2d.js} +3 -3
  80. package/esm/desktop.d.ts +1 -1
  81. package/esm/desktop.js +6 -4
  82. package/esm/index.d.ts +2 -6
  83. package/esm/index.js +17 -14
  84. package/esm/mobile.css +2 -2
  85. package/esm/mobile.d.ts +1 -1
  86. package/esm/mobile.js +6 -4
  87. package/esm/shared.d.ts +4 -0
  88. package/esm/shared.js +20 -0
  89. package/esm/types.d.ts +11 -0
  90. package/index.d.ts +2 -6
  91. package/index.js +16 -24
  92. package/mobile.css +2 -2
  93. package/mobile.d.ts +1 -1
  94. package/mobile.js +8 -4
  95. package/modern/component.desktop.d.ts +1 -1
  96. package/modern/component.desktop.js +5 -3
  97. package/modern/component.mobile.js +6 -4
  98. package/modern/component.responsive.d.ts +2 -3
  99. package/modern/component.responsive.js +9 -9
  100. package/modern/components/base-confirmation/component.js +8 -5
  101. package/modern/components/base-confirmation/index.css +2 -2
  102. package/modern/components/base-confirmation/index.js +5 -3
  103. package/modern/components/countdown-loader/component.js +1 -1
  104. package/modern/components/countdown-loader/index.css +2 -2
  105. package/modern/components/header/component.js +1 -1
  106. package/modern/components/header/index.css +4 -4
  107. package/modern/components/index.js +5 -3
  108. package/modern/components/screens/fatal-error/component.js +3 -3
  109. package/modern/components/screens/fatal-error/index.css +6 -6
  110. package/modern/components/screens/hint/component.js +3 -3
  111. package/modern/components/screens/hint/index.css +12 -12
  112. package/modern/components/screens/index.js +5 -3
  113. package/modern/components/screens/initial/component.js +8 -5
  114. package/modern/components/screens/initial/countdown-section.js +1 -1
  115. package/modern/components/screens/initial/index.css +17 -20
  116. package/modern/components/screens/initial/index.js +5 -3
  117. package/modern/components/screens/temp-block/component.js +1 -1
  118. package/modern/components/screens/temp-block/index.css +7 -7
  119. package/modern/context.js +1 -0
  120. package/modern/{countdown-section-a28d693c.js → countdown-section-dd4e5fe3.js} +3 -3
  121. package/modern/desktop.d.ts +1 -1
  122. package/modern/desktop.js +6 -4
  123. package/modern/index.d.ts +2 -6
  124. package/modern/index.js +17 -14
  125. package/modern/mobile.css +2 -2
  126. package/modern/mobile.d.ts +1 -1
  127. package/modern/mobile.js +6 -4
  128. package/modern/shared.d.ts +4 -0
  129. package/modern/shared.js +20 -0
  130. package/modern/types.d.ts +11 -0
  131. package/package.json +31 -6
  132. package/shared.d.ts +4 -0
  133. package/shared.js +37 -0
  134. package/src/component.desktop.tsx +10 -0
  135. package/src/component.mobile.tsx +13 -0
  136. package/src/component.responsive.tsx +31 -0
  137. package/src/components/base-confirmation/component.tsx +123 -0
  138. package/src/components/base-confirmation/index.module.css +8 -0
  139. package/src/components/base-confirmation/index.ts +1 -0
  140. package/src/components/countdown-loader/component.tsx +37 -0
  141. package/src/components/countdown-loader/index.module.css +7 -0
  142. package/src/components/countdown-loader/index.ts +1 -0
  143. package/src/components/header/component.tsx +28 -0
  144. package/src/components/header/index.module.css +21 -0
  145. package/src/components/header/index.ts +1 -0
  146. package/src/components/index.ts +2 -0
  147. package/src/components/screens/fatal-error/component.tsx +46 -0
  148. package/src/components/screens/fatal-error/index.module.css +23 -0
  149. package/src/components/screens/fatal-error/index.ts +1 -0
  150. package/src/components/screens/hint/component.tsx +94 -0
  151. package/src/components/screens/hint/index.module.css +51 -0
  152. package/src/components/screens/hint/index.ts +1 -0
  153. package/src/components/screens/index.ts +4 -0
  154. package/src/components/screens/initial/component.tsx +190 -0
  155. package/src/components/screens/initial/countdown-section.tsx +79 -0
  156. package/src/components/screens/initial/index.module.css +71 -0
  157. package/src/components/screens/initial/index.ts +1 -0
  158. package/src/components/screens/temp-block/component.tsx +58 -0
  159. package/src/components/screens/temp-block/index.module.css +28 -0
  160. package/src/components/screens/temp-block/index.ts +1 -0
  161. package/src/context.ts +26 -0
  162. package/src/desktop.ts +3 -0
  163. package/src/index.ts +6 -0
  164. package/src/mobile.module.css +3 -0
  165. package/src/mobile.ts +3 -0
  166. package/src/shared.ts +4 -0
  167. package/src/types.ts +219 -0
  168. package/src/utils.ts +107 -0
  169. package/src/vars.css +33 -0
  170. package/types.d.ts +11 -0
  171. package/cssm/responsive.d.ts +0 -2
  172. package/cssm/responsive.js +0 -39
  173. package/esm/responsive.d.ts +0 -2
  174. package/esm/responsive.js +0 -23
  175. package/modern/responsive.d.ts +0 -2
  176. package/modern/responsive.js +0 -22
  177. package/responsive.d.ts +0 -2
  178. package/responsive.js +0 -31
  179. /package/{countdown-section-41f47745.d.ts → countdown-section-fb6524aa.d.ts} +0 -0
  180. /package/esm/{countdown-section-83bf5f20.d.ts → countdown-section-c65cff2d.d.ts} +0 -0
  181. /package/modern/{countdown-section-a28d693c.d.ts → countdown-section-dd4e5fe3.d.ts} +0 -0
package/src/types.ts ADDED
@@ -0,0 +1,219 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+
3
+ export type ConfirmationProps = {
4
+ /**
5
+ * Экран компонента
6
+ */
7
+ screen: ConfirmationScreen | string;
8
+
9
+ /**
10
+ * Состояние компонента
11
+ */
12
+ state: ConfirmationState | string;
13
+
14
+ /**
15
+ * Мобильная версия компонента для экрана
16
+ */
17
+ mobile?: boolean;
18
+
19
+ /**
20
+ * Позиционирование контента
21
+ */
22
+ alignContent?: 'left' | 'center';
23
+
24
+ /**
25
+ * Объект с текстами
26
+ */
27
+ texts?: ConfirmationTexts;
28
+
29
+ /**
30
+ * Количество символов, которое можно ввести в поле ввода подписания до того, как произойдет автоотправка
31
+ */
32
+ requiredCharAmount?: number;
33
+
34
+ /**
35
+ * Длительность обратного отсчета на кнопке повторного запроса сообщения, в милисекундах
36
+ */
37
+ countdownDuration?: number;
38
+
39
+ /**
40
+ * Продолжительность блокировки формы (ms)
41
+ */
42
+ tempBlockDuration?: number;
43
+
44
+ /**
45
+ * Номер телефона, на который отправлен код
46
+ */
47
+ phone?: string;
48
+
49
+ /**
50
+ * Не осталось попыток ввода кода
51
+ */
52
+ blockSmsRetry?: boolean;
53
+
54
+ /**
55
+ * Идентификатор для систем автоматизированного тестирования
56
+ */
57
+ dataTestId?: string;
58
+
59
+ /**
60
+ * Сss класс для стилизации общей обёртки
61
+ */
62
+ className?: string;
63
+
64
+ /**
65
+ * Флаг - нужно ли очищать код при возникновении ошибки
66
+ */
67
+ clearCodeOnError?: boolean;
68
+
69
+ /**
70
+ * Функция обновления состояния компонента
71
+ */
72
+ onChangeState: (state: ConfirmationState | string) => void;
73
+
74
+ /**
75
+ * Функция обновления состояния компонента
76
+ */
77
+ onChangeScreen: (state: ConfirmationScreen | string) => void;
78
+
79
+ /**
80
+ * Обработчик события завершения ввода кода подписания
81
+ */
82
+ onInputFinished: (code: string) => void;
83
+
84
+ /**
85
+ * Обработчик события нажатия на кнопку "Запросить код"
86
+ */
87
+ onSmsRetryClick: () => void;
88
+
89
+ /**
90
+ * Клик по кнопке "Понятно" на экране фатальной ошибки
91
+ */
92
+ onFatalErrorOkButtonClick?: () => void;
93
+
94
+ /**
95
+ * Временная блокировка формы закончилась
96
+ */
97
+ onTempBlockFinished?: () => void;
98
+
99
+ /**
100
+ * Возввращает объект, где ключ - название экрана (screen), значение - компонент для экрана
101
+ */
102
+ getScreensMap?: (defaulScreensMap: ScreensMap) => ScreensMap;
103
+
104
+ /**
105
+ * Дочерние элементы.
106
+ */
107
+ children?: ReactNode;
108
+
109
+ /**
110
+ * Скрыть секцию с повторной отправкой кода
111
+ * @default false
112
+ */
113
+ hideCountdownSection?: boolean;
114
+
115
+ /**
116
+ * Контрольная точка для кнопки, с нее начинается desktop версия
117
+ * @default 1024
118
+ */
119
+ breakpoint?: number;
120
+ };
121
+
122
+ export type TConfirmationContext = Required<
123
+ Pick<
124
+ ConfirmationProps,
125
+ | 'alignContent'
126
+ | 'texts'
127
+ | 'state'
128
+ | 'screen'
129
+ | 'requiredCharAmount'
130
+ | 'onInputFinished'
131
+ | 'countdownDuration'
132
+ | 'onChangeState'
133
+ | 'onSmsRetryClick'
134
+ | 'onChangeScreen'
135
+ | 'onFatalErrorOkButtonClick'
136
+ | 'tempBlockDuration'
137
+ | 'hideCountdownSection'
138
+ >
139
+ > &
140
+ Pick<
141
+ ConfirmationProps,
142
+ 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'
143
+ > & {
144
+ timeLeft: number;
145
+ } & {
146
+ /**
147
+ * Контрольная точка для кнопки, с нее начинается desktop версия
148
+ * @default 1024
149
+ */
150
+ breakpoint?: number;
151
+ };
152
+
153
+ export type ConfirmationTexts = {
154
+ /**
155
+ * Экран INITIAL
156
+ */
157
+ title?: ReactNode; // заголовок
158
+ codeError?: string; // ошибка проверки кода
159
+ codeChecking?: string; // код проверяется
160
+ codeSending?: string; // код отправляется
161
+ codeSended?: string; // код отправлен
162
+ buttonRetry?: string; // кнопка повторной отправки кода
163
+ linkToHint?: string; // ссылка на экран HINT
164
+ noAttemptsLeft?: string; // не осталось попыток запроса кода
165
+ countdown?: string; // 'запросить повторно можно через'
166
+
167
+ /**
168
+ * Экран HINT
169
+ */
170
+ hintButton?: string; // кнопка 'Вернуться'
171
+
172
+ /**
173
+ * Экран FATAL_ERROR
174
+ */
175
+ fatalErrorTitle?: ReactNode; // заголовок
176
+ fatalErrorDescription?: ReactNode; // описание
177
+ fatalErrorButton?: string; // кнопка
178
+
179
+ /**
180
+ * Экран TEMP_BLOCK
181
+ */
182
+ tempBlockTitle?: ReactNode; // заголовок
183
+ tempBlockDescription?: ReactNode; // описание
184
+ };
185
+
186
+ export type ConfirmationScreen =
187
+ | 'INITIAL' // начальный экран
188
+ | 'HINT' // экран "Не приходит смс?"
189
+ | 'FATAL_ERROR' // экран критической ошибки
190
+ | 'TEMP_BLOCK'; // экран временной блокировки
191
+
192
+ export type ConfirmationState =
193
+ | 'INITIAL' // начальное состояние
194
+ | 'CODE_CHECKING' // проверка кода
195
+ | 'CODE_SENDING' // повторная отправка кода
196
+ | 'CODE_ERROR'; // ошибка, когда ввели неверный код
197
+
198
+ export type ScreensMap = {
199
+ [key: string]: ComponentType;
200
+ };
201
+
202
+ export const defaultTexts = {
203
+ title: 'Введите код из\xa0сообщения',
204
+ codeError: 'Код введён неверно',
205
+ codeChecking: '',
206
+ codeSending: '',
207
+ buttonRetry: 'Запросить код повторно',
208
+ linkToHint: 'Не\xa0приходит сообщение?',
209
+ hintButton: 'Вернуться к\xa0вводу кода',
210
+ noAttemptsLeft: 'Не\xa0осталось попыток запроса кода',
211
+ fatalErrorTitle: 'Ввести код больше нельзя',
212
+ fatalErrorDescription:
213
+ 'Вы\xa0ввели код неверно более 5\xa0раз. В\xa0целях безопасности мы\xa0ограничили дальнейший ввод.',
214
+ fatalErrorButton: 'Понятно',
215
+ tempBlockTitle: 'Превышено количество попыток запроса кода',
216
+ tempBlockDescription: 'Повторное подтверждение кодом будет возможно через 24\xa0часа',
217
+ codeSended: 'Код выслан',
218
+ countdown: 'Запросить повторно можно через',
219
+ };
package/src/utils.ts ADDED
@@ -0,0 +1,107 @@
1
+ import { useCallback, useEffect, useRef, useState } from 'react';
2
+
3
+ import { ConfirmationProps } from './types';
4
+
5
+ /**
6
+ * Форматирование миллисекунд в hh:mm:ss.
7
+ *
8
+ * @param {Number} ms миллисекунды
9
+ * @returns {String} время в формате mm:ss
10
+ */
11
+ export function formatMsAsMinutes(ms: number) {
12
+ const totalSeconds = Math.ceil(ms / 1000);
13
+ const totalMinutes = Math.floor(totalSeconds / 60);
14
+ const totalHours = Math.floor(totalMinutes / 60);
15
+
16
+ const seconds = totalSeconds % 60;
17
+ const paddedSeconds = `00${seconds}`.slice(-2);
18
+
19
+ if (totalHours > 0) {
20
+ const minutes = totalMinutes % 60;
21
+
22
+ const paddedMinutes = `00${minutes}`.slice(-2);
23
+ const paddedHours = `00${totalHours}`.slice(-2);
24
+
25
+ return `${paddedHours}:${paddedMinutes}:${paddedSeconds}`;
26
+ }
27
+
28
+ const paddedMinutes = `00${totalMinutes}`.slice(-2);
29
+
30
+ return `${paddedMinutes}:${paddedSeconds}`;
31
+ }
32
+
33
+ type UseCountdown = (countdownDuration: number, tick?: number) => [number, () => void, () => void];
34
+
35
+ /**
36
+ * Возвращает время, которое осталось до истечения таймера в ms
37
+ */
38
+ export const useCountdown: UseCountdown = (countdownDuration, tick = 1000) => {
39
+ const timerId = useRef(0);
40
+
41
+ const start = useRef(0);
42
+
43
+ const [timePassed, setTimePassed] = useState(0);
44
+
45
+ const stopTimer = useCallback(() => {
46
+ window.clearInterval(timerId.current);
47
+ }, []);
48
+
49
+ const updateProgress = useCallback(() => {
50
+ const passed = Date.now() - start.current;
51
+
52
+ if (passed >= countdownDuration) {
53
+ stopTimer();
54
+
55
+ setTimePassed(countdownDuration);
56
+ } else {
57
+ setTimePassed(passed);
58
+ }
59
+ }, [countdownDuration, stopTimer]);
60
+
61
+ const startTimer = useCallback(() => {
62
+ stopTimer();
63
+
64
+ start.current = Date.now();
65
+
66
+ updateProgress();
67
+
68
+ timerId.current = window.setInterval(updateProgress, tick);
69
+ }, [stopTimer, updateProgress, tick]);
70
+
71
+ const timeLeft = countdownDuration - timePassed;
72
+
73
+ useEffect(
74
+ () => () => {
75
+ stopTimer();
76
+ },
77
+ [stopTimer],
78
+ );
79
+
80
+ return [timeLeft, startTimer, stopTimer];
81
+ };
82
+
83
+ export const ONE_DAY = 24 * 60 * 60 * 1000;
84
+ export const ONE_MINUTE = 60 * 1000;
85
+
86
+ type UseConfirmationParams = {
87
+ state?: ConfirmationProps['state'];
88
+ screen?: ConfirmationProps['screen'];
89
+ blockSmsRetry?: ConfirmationProps['blockSmsRetry'];
90
+ };
91
+
92
+ export const useConfirmation = ({ state, screen, blockSmsRetry }: UseConfirmationParams = {}) => {
93
+ const [confirmationState, setConfirmationState] = useState(state ?? 'INITIAL');
94
+ const [confirmationScreen, setConfirmationScreen] = useState(screen ?? 'INITIAL');
95
+ const [confirmationBlockSmsRetry, setConfirmationBlockSmsRetry] = useState(
96
+ blockSmsRetry ?? false,
97
+ );
98
+
99
+ return {
100
+ confirmationState,
101
+ confirmationScreen,
102
+ confirmationBlockSmsRetry,
103
+ setConfirmationState,
104
+ setConfirmationScreen,
105
+ setConfirmationBlockSmsRetry,
106
+ };
107
+ };
package/src/vars.css ADDED
@@ -0,0 +1,33 @@
1
+ @import '@alfalab/core-components-themes/src/default.css';
2
+
3
+ :root {
4
+ /* desktop */
5
+ --confirmation-header-desktop-font-size: 22px;
6
+ --confirmation-header-desktop-line-height: 26px;
7
+ --confirmation-header-desktop-font-weight: bold;
8
+ --confirmation-header-desktop-font-family: var(--font-family-system);
9
+
10
+ /* mobile */
11
+ --confirmation-header-mobile-font-size: 18px;
12
+ --confirmation-header-mobile-line-height: 22px;
13
+ --confirmation-header-mobile-font-weight: bold;
14
+ --confirmation-header-mobile-font-family: var(--font-family-system);
15
+
16
+ /* text */
17
+ --confirmation-text-font-size: 16px;
18
+ --confirmation-text-line-height: 24px;
19
+ --confirmation-text-font-weight: 400;
20
+ --confirmation-text-font-family: var(--font-family-system);
21
+ --confirmation-text-color: var(--color-light-text-primary);
22
+
23
+ /* header */
24
+ --confirmation-header-font-feature-settings: normal;
25
+
26
+ @define-mixin _confirmation-text {
27
+ font-size: var(--confirmation-text-font-size);
28
+ line-height: var(--confirmation-text-line-height);
29
+ font-weight: var(--confirmation-text-font-weight);
30
+ font-family: var(--confirmation-text-font-family);
31
+ color: var(--confirmation-text-color);
32
+ }
33
+ }
package/types.d.ts CHANGED
@@ -89,9 +89,20 @@ type ConfirmationProps = {
89
89
  * @default false
90
90
  */
91
91
  hideCountdownSection?: boolean;
92
+ /**
93
+ * Контрольная точка для кнопки, с нее начинается desktop версия
94
+ * @default 1024
95
+ */
96
+ breakpoint?: number;
92
97
  };
93
98
  type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration' | 'hideCountdownSection'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
94
99
  timeLeft: number;
100
+ } & {
101
+ /**
102
+ * Контрольная точка для кнопки, с нее начинается desktop версия
103
+ * @default 1024
104
+ */
105
+ breakpoint?: number;
95
106
  };
96
107
  type ConfirmationTexts = {
97
108
  /**
@@ -1,2 +0,0 @@
1
- export * from "./component.responsive";
2
- export {};
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var component_responsive = require('./component.responsive.js');
6
- require('tslib');
7
- require('react');
8
- require('@alfalab/hooks');
9
- require('./component.desktop.js');
10
- require('./components/base-confirmation/component.js');
11
- require('classnames');
12
- require('./context.js');
13
- require('./utils.js');
14
- require('./types.js');
15
- require('./components/screens/initial/component.js');
16
- require('@alfalab/core-components-button/cssm');
17
- require('@alfalab/core-components-code-input/cssm');
18
- require('@alfalab/core-components-link/cssm');
19
- require('@alfalab/core-components-typography/cssm');
20
- require('./components/header/component.js');
21
- require('./components/header/index.module.css');
22
- require('./components/screens/initial/countdown-section.js');
23
- require('@alfalab/core-components-loader/cssm');
24
- require('./components/screens/initial/index.module.css');
25
- require('./components/screens/hint/component.js');
26
- require('./components/screens/hint/index.module.css');
27
- require('./components/screens/fatal-error/component.js');
28
- require('./components/screens/fatal-error/index.module.css');
29
- require('./components/screens/temp-block/component.js');
30
- require('./components/countdown-loader/component.js');
31
- require('./components/countdown-loader/index.module.css');
32
- require('./components/screens/temp-block/index.module.css');
33
- require('./components/base-confirmation/index.module.css');
34
- require('./component.mobile.js');
35
- require('./mobile.module.css');
36
-
37
-
38
-
39
- exports.ConfirmationResponsive = component_responsive.ConfirmationResponsive;
@@ -1,2 +0,0 @@
1
- export * from "./component.responsive";
2
- export {};
package/esm/responsive.js DELETED
@@ -1,23 +0,0 @@
1
- export { ConfirmationResponsive } from './component.responsive.js';
2
- import 'tslib';
3
- import 'react';
4
- import '@alfalab/hooks';
5
- import './component.desktop.js';
6
- import './components/base-confirmation/component.js';
7
- import 'classnames';
8
- import './context.js';
9
- import './utils.js';
10
- import './types.js';
11
- import './components/screens/initial/component.js';
12
- import '@alfalab/core-components-button/esm';
13
- import '@alfalab/core-components-code-input/esm';
14
- import '@alfalab/core-components-link/esm';
15
- import '@alfalab/core-components-typography/esm';
16
- import './components/header/component.js';
17
- import './countdown-section-83bf5f20.js';
18
- import '@alfalab/core-components-loader/esm';
19
- import './components/screens/hint/component.js';
20
- import './components/screens/fatal-error/component.js';
21
- import './components/screens/temp-block/component.js';
22
- import './components/countdown-loader/component.js';
23
- import './component.mobile.js';
@@ -1,2 +0,0 @@
1
- export * from "./component.responsive";
2
- export {};
@@ -1,22 +0,0 @@
1
- export { ConfirmationResponsive } from './component.responsive.js';
2
- import 'react';
3
- import '@alfalab/hooks';
4
- import './component.desktop.js';
5
- import './components/base-confirmation/component.js';
6
- import 'classnames';
7
- import './context.js';
8
- import './utils.js';
9
- import './types.js';
10
- import './components/screens/initial/component.js';
11
- import '@alfalab/core-components-button/modern';
12
- import '@alfalab/core-components-code-input/modern';
13
- import '@alfalab/core-components-link/modern';
14
- import '@alfalab/core-components-typography/modern';
15
- import './components/header/component.js';
16
- import './countdown-section-a28d693c.js';
17
- import '@alfalab/core-components-loader/modern';
18
- import './components/screens/hint/component.js';
19
- import './components/screens/fatal-error/component.js';
20
- import './components/screens/temp-block/component.js';
21
- import './components/countdown-loader/component.js';
22
- import './component.mobile.js';
package/responsive.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./component.responsive";
2
- export {};
package/responsive.js DELETED
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var component_responsive = require('./component.responsive.js');
6
- require('tslib');
7
- require('react');
8
- require('@alfalab/hooks');
9
- require('./component.desktop.js');
10
- require('./components/base-confirmation/component.js');
11
- require('classnames');
12
- require('./context.js');
13
- require('./utils.js');
14
- require('./types.js');
15
- require('./components/screens/initial/component.js');
16
- require('@alfalab/core-components-button');
17
- require('@alfalab/core-components-code-input');
18
- require('@alfalab/core-components-link');
19
- require('@alfalab/core-components-typography');
20
- require('./components/header/component.js');
21
- require('./countdown-section-41f47745.js');
22
- require('@alfalab/core-components-loader');
23
- require('./components/screens/hint/component.js');
24
- require('./components/screens/fatal-error/component.js');
25
- require('./components/screens/temp-block/component.js');
26
- require('./components/countdown-loader/component.js');
27
- require('./component.mobile.js');
28
-
29
-
30
-
31
- exports.ConfirmationResponsive = component_responsive.ConfirmationResponsive;