@alfalab/core-components-confirmation 12.3.4 → 12.3.5
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.
- package/{component-ad8387ce.d.ts → component-5a9a6986.d.ts} +0 -0
- package/{component-ad8387ce.js → component-5a9a6986.js} +6 -11
- package/component.desktop.js +6 -12
- package/component.mobile.js +7 -14
- package/component.responsive.js +9 -15
- package/components/base-confirmation/component.js +7 -9
- package/components/base-confirmation/index.css +2 -2
- package/components/base-confirmation/index.d.ts +1 -1
- package/components/base-confirmation/index.js +5 -7
- package/components/countdown-loader/component.js +3 -9
- package/components/countdown-loader/index.css +2 -2
- package/components/countdown-loader/index.js +1 -3
- package/components/header/component.js +2 -9
- package/components/header/index.css +4 -4
- package/components/header/index.js +1 -3
- package/components/index.js +10 -12
- package/components/screens/fatal-error/component.js +7 -14
- package/components/screens/fatal-error/index.css +6 -6
- package/components/screens/fatal-error/index.js +3 -5
- package/components/screens/hint/component.js +15 -22
- package/components/screens/hint/index.css +12 -12
- package/components/screens/hint/index.js +3 -5
- package/components/screens/index.js +8 -10
- package/components/screens/initial/component.js +15 -17
- package/components/screens/initial/countdown-section.js +4 -6
- package/components/screens/initial/index.css +18 -18
- package/components/screens/initial/index.js +5 -7
- package/components/screens/temp-block/component.js +9 -16
- package/components/screens/temp-block/index.css +7 -7
- package/components/screens/temp-block/index.js +4 -6
- package/context.js +0 -2
- package/{countdown-section-f4894842.d.ts → countdown-section-b356354f.d.ts} +0 -0
- package/countdown-section-b356354f.js +44 -0
- package/cssm/{component-5a4af768.d.ts → component-895f6f86.d.ts} +0 -0
- package/cssm/{component-5a4af768.js → component-895f6f86.js} +5 -11
- package/cssm/component.desktop.js +10 -16
- package/cssm/component.mobile.js +11 -19
- package/cssm/component.responsive.js +13 -19
- package/cssm/components/base-confirmation/component.js +10 -12
- package/cssm/components/base-confirmation/index.d.ts +1 -1
- package/cssm/components/base-confirmation/index.js +9 -11
- package/cssm/components/countdown-loader/component.js +2 -9
- package/cssm/components/countdown-loader/index.js +1 -3
- package/cssm/components/header/component.js +1 -9
- package/cssm/components/header/index.js +1 -3
- package/cssm/components/index.js +12 -14
- package/cssm/components/screens/fatal-error/component.js +7 -15
- package/cssm/components/screens/fatal-error/index.js +4 -6
- package/cssm/components/screens/hint/component.js +15 -23
- package/cssm/components/screens/hint/index.js +4 -6
- package/cssm/components/screens/index.js +10 -12
- package/cssm/components/screens/initial/component.js +17 -20
- package/cssm/components/screens/initial/countdown-section.js +14 -22
- package/cssm/components/screens/initial/index.js +6 -8
- package/cssm/components/screens/temp-block/component.js +10 -18
- package/cssm/components/screens/temp-block/index.js +6 -8
- package/cssm/context.js +0 -2
- package/cssm/desktop.d.ts +1 -0
- package/cssm/desktop.js +10 -12
- package/cssm/index.js +24 -26
- package/cssm/mobile.d.ts +1 -0
- package/cssm/mobile.js +10 -12
- package/cssm/responsive.d.ts +1 -0
- package/cssm/responsive.js +11 -13
- package/cssm/types.js +0 -2
- package/cssm/utils.js +6 -8
- package/desktop.d.ts +1 -0
- package/desktop.js +6 -8
- package/esm/{component-b1ceb5d0.d.ts → component-3212dc9c.d.ts} +0 -0
- package/esm/{component-b1ceb5d0.js → component-3212dc9c.js} +4 -4
- package/esm/component.desktop.js +5 -5
- package/esm/component.mobile.js +6 -6
- package/esm/component.responsive.js +8 -8
- package/esm/components/base-confirmation/component.js +7 -7
- package/esm/components/base-confirmation/index.css +2 -2
- package/esm/components/base-confirmation/index.d.ts +1 -1
- package/esm/components/base-confirmation/index.js +5 -5
- package/esm/components/countdown-loader/component.js +3 -3
- package/esm/components/countdown-loader/index.css +2 -2
- package/esm/components/countdown-loader/index.js +1 -1
- package/esm/components/header/component.js +1 -1
- package/esm/components/header/index.css +4 -4
- package/esm/components/header/index.js +1 -1
- package/esm/components/index.js +9 -9
- package/esm/components/screens/fatal-error/component.js +3 -3
- package/esm/components/screens/fatal-error/index.css +6 -6
- package/esm/components/screens/fatal-error/index.js +3 -3
- package/esm/components/screens/hint/component.js +3 -3
- package/esm/components/screens/hint/index.css +12 -12
- package/esm/components/screens/hint/index.js +3 -3
- package/esm/components/screens/index.js +8 -8
- package/esm/components/screens/initial/component.js +10 -5
- package/esm/components/screens/initial/countdown-section.js +4 -4
- package/esm/components/screens/initial/index.css +18 -18
- package/esm/components/screens/initial/index.js +5 -5
- package/esm/components/screens/temp-block/component.js +4 -4
- package/esm/components/screens/temp-block/index.css +7 -7
- package/esm/components/screens/temp-block/index.js +4 -4
- package/esm/{countdown-section-608e4e3a.d.ts → countdown-section-5a8d74ee.d.ts} +0 -0
- package/esm/{countdown-section-608e4e3a.js → countdown-section-5a8d74ee.js} +6 -6
- package/esm/desktop.d.ts +1 -0
- package/esm/desktop.js +6 -6
- package/esm/index.js +12 -12
- package/esm/mobile.css +2 -2
- package/esm/mobile.d.ts +1 -0
- package/esm/mobile.js +6 -6
- package/esm/responsive.d.ts +1 -0
- package/esm/responsive.js +6 -6
- package/esm/utils.js +6 -6
- package/index.js +21 -23
- package/mobile.css +2 -2
- package/mobile.d.ts +1 -0
- package/mobile.js +6 -8
- package/modern/component.desktop.js +5 -5
- package/modern/component.mobile.js +6 -6
- package/modern/component.responsive.js +8 -8
- package/modern/components/base-confirmation/component.js +8 -8
- package/modern/components/base-confirmation/index.css +2 -2
- package/modern/components/base-confirmation/index.js +5 -5
- package/modern/components/countdown-loader/component.js +1 -1
- package/modern/components/countdown-loader/index.css +2 -2
- package/modern/components/countdown-loader/index.js +1 -1
- package/modern/components/header/component.js +1 -1
- package/modern/components/header/index.css +4 -4
- package/modern/components/header/index.js +1 -1
- package/modern/components/index.js +9 -9
- package/modern/components/screens/fatal-error/component.js +3 -3
- package/modern/components/screens/fatal-error/index.css +6 -6
- package/modern/components/screens/fatal-error/index.js +3 -3
- package/modern/components/screens/hint/component.js +3 -3
- package/modern/components/screens/hint/index.css +12 -12
- package/modern/components/screens/hint/index.js +3 -3
- package/modern/components/screens/index.js +8 -8
- package/modern/components/screens/initial/component.js +10 -5
- package/modern/components/screens/initial/countdown-section.js +4 -4
- package/modern/components/screens/initial/index.css +18 -18
- package/modern/components/screens/initial/index.js +5 -5
- package/modern/components/screens/temp-block/component.js +4 -4
- package/modern/components/screens/temp-block/index.css +7 -7
- package/modern/components/screens/temp-block/index.js +4 -4
- package/modern/{countdown-section-cb87c8ea.d.ts → countdown-section-b8b393a2.d.ts} +0 -0
- package/modern/{countdown-section-cb87c8ea.js → countdown-section-b8b393a2.js} +5 -5
- package/modern/desktop.d.ts +1 -0
- package/modern/desktop.js +6 -6
- package/modern/index.js +12 -12
- package/modern/mobile.css +2 -2
- package/modern/mobile.d.ts +1 -0
- package/modern/mobile.js +6 -6
- package/modern/responsive.d.ts +1 -0
- package/modern/responsive.js +8 -8
- package/package.json +2 -2
- package/responsive.d.ts +1 -0
- package/responsive.js +6 -8
- package/types.js +0 -2
- package/utils.js +6 -8
- package/countdown-section-f4894842.js +0 -49
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { formatMsAsMinutes } from './utils.js';
|
|
4
|
-
import { ConfirmationContext } from './context.js';
|
|
5
3
|
import { Button } from '@alfalab/core-components-button/esm';
|
|
6
|
-
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
7
4
|
import { Loader } from '@alfalab/core-components-loader/esm';
|
|
5
|
+
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
6
|
+
import { ConfirmationContext } from './context.js';
|
|
7
|
+
import { formatMsAsMinutes } from './utils.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"confirmation__component_14vvl","typographyTheme":"confirmation__typographyTheme_14vvl","phone":"confirmation__phone_14vvl","compact":"confirmation__compact_14vvl","loaderWrap":"confirmation__loaderWrap_14vvl","left":"confirmation__left_14vvl","center":"confirmation__center_14vvl","codeInput":"confirmation__codeInput_14vvl","smsComeLink":"confirmation__smsComeLink_14vvl","countdownContainer":"confirmation__countdownContainer_14vvl","countdownMobile":"confirmation__countdownMobile_14vvl","countdownLoaderMobile":"confirmation__countdownLoaderMobile_14vvl","getCodeButton":"confirmation__getCodeButton_14vvl","getCodeButtonMobile":"confirmation__getCodeButtonMobile_14vvl","containerInput":"confirmation__containerInput_14vvl"};
|
|
10
10
|
require('./components/screens/initial/index.css')
|
|
11
11
|
|
|
12
12
|
var CountdownSection = function (_a) {
|
|
@@ -31,11 +31,11 @@ var CountdownSection = function (_a) {
|
|
|
31
31
|
React.createElement("span", { className: styles.loaderText }, state === 'CODE_CHECKING' ? texts.codeChecking : texts.codeSending)));
|
|
32
32
|
}
|
|
33
33
|
if (blockSmsRetry)
|
|
34
|
-
renderText(texts.noAttemptsLeft);
|
|
34
|
+
return renderText(texts.noAttemptsLeft);
|
|
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)) }, texts.buttonRetry));
|
|
37
37
|
}
|
|
38
|
-
return renderText(texts.countdown
|
|
38
|
+
return renderText("".concat(texts.countdown, " ").concat(formatMsAsMinutes(timeLeft)));
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export { CountdownSection as C, styles as s };
|
package/esm/desktop.d.ts
CHANGED
package/esm/desktop.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
export { ConfirmationDesktop } from './component.desktop.js';
|
|
2
|
+
import './component-3212dc9c.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import 'classnames';
|
|
4
5
|
import '@alfalab/hooks';
|
|
5
|
-
import './utils.js';
|
|
6
6
|
import './context.js';
|
|
7
|
+
import './utils.js';
|
|
7
8
|
import './types.js';
|
|
9
|
+
import './components/screens/initial/component.js';
|
|
8
10
|
import '@alfalab/core-components-button/esm';
|
|
9
11
|
import '@alfalab/core-components-code-input/esm';
|
|
10
12
|
import '@alfalab/core-components-link/esm';
|
|
11
13
|
import '@alfalab/core-components-typography/esm';
|
|
12
14
|
import './components/header/component.js';
|
|
15
|
+
import './countdown-section-5a8d74ee.js';
|
|
13
16
|
import '@alfalab/core-components-loader/esm';
|
|
14
|
-
import './countdown-section-608e4e3a.js';
|
|
15
|
-
import './components/screens/initial/component.js';
|
|
16
17
|
import './components/screens/hint/component.js';
|
|
17
18
|
import './components/screens/fatal-error/component.js';
|
|
18
|
-
import './components/countdown-loader/component.js';
|
|
19
19
|
import './components/screens/temp-block/component.js';
|
|
20
|
-
|
|
20
|
+
import './components/countdown-loader/component.js';
|
package/esm/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
export { ConfirmationDesktop as Confirmation } from './component.desktop.js';
|
|
2
|
+
export { ConfirmationResponsive } from './component.responsive.js';
|
|
3
|
+
export { Initial } from './components/screens/initial/component.js';
|
|
4
|
+
export { Hint } from './components/screens/hint/component.js';
|
|
5
|
+
export { FatalError } from './components/screens/fatal-error/component.js';
|
|
6
|
+
export { TempBlock } from './components/screens/temp-block/component.js';
|
|
7
|
+
export { CountdownLoader } from './components/countdown-loader/component.js';
|
|
8
|
+
export { ConfirmationContext } from './context.js';
|
|
9
|
+
export { defaultTexts } from './types.js';
|
|
10
|
+
export { ONE_DAY, ONE_MINUTE, formatMsAsMinutes, useConfirmation, useCountdown } from './utils.js';
|
|
11
|
+
import './component-3212dc9c.js';
|
|
2
12
|
import 'react';
|
|
3
13
|
import 'classnames';
|
|
4
14
|
import '@alfalab/hooks';
|
|
5
|
-
export { ONE_DAY, ONE_MINUTE, formatMsAsMinutes, useConfirmation, useCountdown } from './utils.js';
|
|
6
|
-
export { ConfirmationContext } from './context.js';
|
|
7
|
-
export { defaultTexts } from './types.js';
|
|
8
15
|
import '@alfalab/core-components-button/esm';
|
|
9
16
|
import '@alfalab/core-components-code-input/esm';
|
|
10
17
|
import '@alfalab/core-components-link/esm';
|
|
11
18
|
import '@alfalab/core-components-typography/esm';
|
|
12
19
|
import './components/header/component.js';
|
|
20
|
+
import './countdown-section-5a8d74ee.js';
|
|
13
21
|
import '@alfalab/core-components-loader/esm';
|
|
14
|
-
import './countdown-section-608e4e3a.js';
|
|
15
|
-
export { Initial } from './components/screens/initial/component.js';
|
|
16
|
-
export { Hint } from './components/screens/hint/component.js';
|
|
17
|
-
export { FatalError } from './components/screens/fatal-error/component.js';
|
|
18
|
-
export { CountdownLoader } from './components/countdown-loader/component.js';
|
|
19
|
-
export { TempBlock } from './components/screens/temp-block/component.js';
|
|
20
|
-
export { ConfirmationDesktop as Confirmation } from './component.desktop.js';
|
|
21
22
|
import './component.mobile.js';
|
|
22
|
-
export { ConfirmationResponsive } from './component.responsive.js';
|
package/esm/mobile.css
CHANGED
package/esm/mobile.d.ts
CHANGED
package/esm/mobile.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
export { ConfirmationMobile } from './component.mobile.js';
|
|
2
|
+
import './component-3212dc9c.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import 'classnames';
|
|
4
5
|
import '@alfalab/hooks';
|
|
5
|
-
import './utils.js';
|
|
6
6
|
import './context.js';
|
|
7
|
+
import './utils.js';
|
|
7
8
|
import './types.js';
|
|
9
|
+
import './components/screens/initial/component.js';
|
|
8
10
|
import '@alfalab/core-components-button/esm';
|
|
9
11
|
import '@alfalab/core-components-code-input/esm';
|
|
10
12
|
import '@alfalab/core-components-link/esm';
|
|
11
13
|
import '@alfalab/core-components-typography/esm';
|
|
12
14
|
import './components/header/component.js';
|
|
15
|
+
import './countdown-section-5a8d74ee.js';
|
|
13
16
|
import '@alfalab/core-components-loader/esm';
|
|
14
|
-
import './countdown-section-608e4e3a.js';
|
|
15
|
-
import './components/screens/initial/component.js';
|
|
16
17
|
import './components/screens/hint/component.js';
|
|
17
18
|
import './components/screens/fatal-error/component.js';
|
|
18
|
-
import './components/countdown-loader/component.js';
|
|
19
19
|
import './components/screens/temp-block/component.js';
|
|
20
|
-
|
|
20
|
+
import './components/countdown-loader/component.js';
|
package/esm/responsive.d.ts
CHANGED
package/esm/responsive.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
export { ConfirmationResponsive } from './component.responsive.js';
|
|
2
|
+
import './component-3212dc9c.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
import 'classnames';
|
|
4
5
|
import '@alfalab/hooks';
|
|
5
|
-
import './utils.js';
|
|
6
6
|
import './context.js';
|
|
7
|
+
import './utils.js';
|
|
7
8
|
import './types.js';
|
|
9
|
+
import './components/screens/initial/component.js';
|
|
8
10
|
import '@alfalab/core-components-button/esm';
|
|
9
11
|
import '@alfalab/core-components-code-input/esm';
|
|
10
12
|
import '@alfalab/core-components-link/esm';
|
|
11
13
|
import '@alfalab/core-components-typography/esm';
|
|
12
14
|
import './components/header/component.js';
|
|
15
|
+
import './countdown-section-5a8d74ee.js';
|
|
13
16
|
import '@alfalab/core-components-loader/esm';
|
|
14
|
-
import './countdown-section-608e4e3a.js';
|
|
15
|
-
import './components/screens/initial/component.js';
|
|
16
17
|
import './components/screens/hint/component.js';
|
|
17
18
|
import './components/screens/fatal-error/component.js';
|
|
18
|
-
import './components/countdown-loader/component.js';
|
|
19
19
|
import './components/screens/temp-block/component.js';
|
|
20
|
+
import './components/countdown-loader/component.js';
|
|
20
21
|
import './component.desktop.js';
|
|
21
22
|
import './component.mobile.js';
|
|
22
|
-
export { ConfirmationResponsive } from './component.responsive.js';
|
package/esm/utils.js
CHANGED
|
@@ -11,15 +11,15 @@ function formatMsAsMinutes(ms) {
|
|
|
11
11
|
var totalMinutes = Math.floor(totalSeconds / 60);
|
|
12
12
|
var totalHours = Math.floor(totalMinutes / 60);
|
|
13
13
|
var seconds = totalSeconds % 60;
|
|
14
|
-
var paddedSeconds =
|
|
14
|
+
var paddedSeconds = "00".concat(seconds).slice(-2);
|
|
15
15
|
if (totalHours > 0) {
|
|
16
16
|
var minutes = totalMinutes % 60;
|
|
17
|
-
var paddedMinutes_1 =
|
|
18
|
-
var paddedHours =
|
|
19
|
-
return paddedHours
|
|
17
|
+
var paddedMinutes_1 = "00".concat(minutes).slice(-2);
|
|
18
|
+
var paddedHours = "00".concat(totalHours).slice(-2);
|
|
19
|
+
return "".concat(paddedHours, ":").concat(paddedMinutes_1, ":").concat(paddedSeconds);
|
|
20
20
|
}
|
|
21
|
-
var paddedMinutes =
|
|
22
|
-
return paddedMinutes
|
|
21
|
+
var paddedMinutes = "00".concat(totalMinutes).slice(-2);
|
|
22
|
+
return "".concat(paddedMinutes, ":").concat(paddedSeconds);
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Возвращает время, которое осталось до истечения таймера в ms
|
package/index.js
CHANGED
|
@@ -1,43 +1,41 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('./component
|
|
3
|
+
var component_desktop = require('./component.desktop.js');
|
|
4
|
+
var component_responsive = require('./component.responsive.js');
|
|
5
|
+
var components_screens_initial_component = require('./components/screens/initial/component.js');
|
|
6
|
+
var components_screens_hint_component = require('./components/screens/hint/component.js');
|
|
7
|
+
var components_screens_fatalError_component = require('./components/screens/fatal-error/component.js');
|
|
8
|
+
var components_screens_tempBlock_component = require('./components/screens/temp-block/component.js');
|
|
9
|
+
var components_countdownLoader_component = require('./components/countdown-loader/component.js');
|
|
10
|
+
var context = require('./context.js');
|
|
11
|
+
var types = require('./types.js');
|
|
12
|
+
var utils = require('./utils.js');
|
|
13
|
+
require('./component-5a9a6986.js');
|
|
6
14
|
require('react');
|
|
7
15
|
require('classnames');
|
|
8
16
|
require('@alfalab/hooks');
|
|
9
|
-
var utils = require('./utils.js');
|
|
10
|
-
var context = require('./context.js');
|
|
11
|
-
var types = require('./types.js');
|
|
12
17
|
require('@alfalab/core-components-button');
|
|
13
18
|
require('@alfalab/core-components-code-input');
|
|
14
19
|
require('@alfalab/core-components-link');
|
|
15
20
|
require('@alfalab/core-components-typography');
|
|
16
21
|
require('./components/header/component.js');
|
|
22
|
+
require('./countdown-section-b356354f.js');
|
|
17
23
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('./countdown-section-f4894842.js');
|
|
19
|
-
var components_screens_initial_component = require('./components/screens/initial/component.js');
|
|
20
|
-
var components_screens_hint_component = require('./components/screens/hint/component.js');
|
|
21
|
-
var components_screens_fatalError_component = require('./components/screens/fatal-error/component.js');
|
|
22
|
-
var components_countdownLoader_component = require('./components/countdown-loader/component.js');
|
|
23
|
-
var components_screens_tempBlock_component = require('./components/screens/temp-block/component.js');
|
|
24
|
-
var component_desktop = require('./component.desktop.js');
|
|
25
24
|
require('./component.mobile.js');
|
|
26
|
-
var component_responsive = require('./component.responsive.js');
|
|
27
25
|
|
|
28
26
|
|
|
29
27
|
|
|
28
|
+
exports.Confirmation = component_desktop.ConfirmationDesktop;
|
|
29
|
+
exports.ConfirmationResponsive = component_responsive.ConfirmationResponsive;
|
|
30
|
+
exports.Initial = components_screens_initial_component.Initial;
|
|
31
|
+
exports.Hint = components_screens_hint_component.Hint;
|
|
32
|
+
exports.FatalError = components_screens_fatalError_component.FatalError;
|
|
33
|
+
exports.TempBlock = components_screens_tempBlock_component.TempBlock;
|
|
34
|
+
exports.CountdownLoader = components_countdownLoader_component.CountdownLoader;
|
|
35
|
+
exports.ConfirmationContext = context.ConfirmationContext;
|
|
36
|
+
exports.defaultTexts = types.defaultTexts;
|
|
30
37
|
exports.ONE_DAY = utils.ONE_DAY;
|
|
31
38
|
exports.ONE_MINUTE = utils.ONE_MINUTE;
|
|
32
39
|
exports.formatMsAsMinutes = utils.formatMsAsMinutes;
|
|
33
40
|
exports.useConfirmation = utils.useConfirmation;
|
|
34
41
|
exports.useCountdown = utils.useCountdown;
|
|
35
|
-
exports.ConfirmationContext = context.ConfirmationContext;
|
|
36
|
-
exports.defaultTexts = types.defaultTexts;
|
|
37
|
-
exports.Initial = components_screens_initial_component.Initial;
|
|
38
|
-
exports.Hint = components_screens_hint_component.Hint;
|
|
39
|
-
exports.FatalError = components_screens_fatalError_component.FatalError;
|
|
40
|
-
exports.CountdownLoader = components_countdownLoader_component.CountdownLoader;
|
|
41
|
-
exports.TempBlock = components_screens_tempBlock_component.TempBlock;
|
|
42
|
-
exports.Confirmation = component_desktop.ConfirmationDesktop;
|
|
43
|
-
exports.ConfirmationResponsive = component_responsive.ConfirmationResponsive;
|
package/mobile.css
CHANGED
package/mobile.d.ts
CHANGED
package/mobile.js
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('./component-ad8387ce.js');
|
|
3
|
+
var component_mobile = require('./component.mobile.js');
|
|
4
|
+
require('./component-5a9a6986.js');
|
|
6
5
|
require('react');
|
|
7
6
|
require('classnames');
|
|
8
7
|
require('@alfalab/hooks');
|
|
9
|
-
require('./utils.js');
|
|
10
8
|
require('./context.js');
|
|
9
|
+
require('./utils.js');
|
|
11
10
|
require('./types.js');
|
|
11
|
+
require('./components/screens/initial/component.js');
|
|
12
12
|
require('@alfalab/core-components-button');
|
|
13
13
|
require('@alfalab/core-components-code-input');
|
|
14
14
|
require('@alfalab/core-components-link');
|
|
15
15
|
require('@alfalab/core-components-typography');
|
|
16
16
|
require('./components/header/component.js');
|
|
17
|
+
require('./countdown-section-b356354f.js');
|
|
17
18
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('./countdown-section-f4894842.js');
|
|
19
|
-
require('./components/screens/initial/component.js');
|
|
20
19
|
require('./components/screens/hint/component.js');
|
|
21
20
|
require('./components/screens/fatal-error/component.js');
|
|
22
|
-
require('./components/countdown-loader/component.js');
|
|
23
21
|
require('./components/screens/temp-block/component.js');
|
|
24
|
-
|
|
22
|
+
require('./components/countdown-loader/component.js');
|
|
25
23
|
|
|
26
24
|
|
|
27
25
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { BaseConfirmation } from './components/base-confirmation/component.js';
|
|
2
3
|
import 'classnames';
|
|
3
4
|
import '@alfalab/hooks';
|
|
4
|
-
import './utils.js';
|
|
5
5
|
import './context.js';
|
|
6
|
+
import './utils.js';
|
|
6
7
|
import './types.js';
|
|
8
|
+
import './components/screens/initial/component.js';
|
|
7
9
|
import '@alfalab/core-components-button/modern';
|
|
8
10
|
import '@alfalab/core-components-code-input/modern';
|
|
9
11
|
import '@alfalab/core-components-link/modern';
|
|
10
12
|
import '@alfalab/core-components-typography/modern';
|
|
11
13
|
import './components/header/component.js';
|
|
14
|
+
import './countdown-section-b8b393a2.js';
|
|
12
15
|
import '@alfalab/core-components-loader/modern';
|
|
13
|
-
import './countdown-section-cb87c8ea.js';
|
|
14
|
-
import './components/screens/initial/component.js';
|
|
15
16
|
import './components/screens/hint/component.js';
|
|
16
17
|
import './components/screens/fatal-error/component.js';
|
|
17
|
-
import './components/countdown-loader/component.js';
|
|
18
18
|
import './components/screens/temp-block/component.js';
|
|
19
|
-
import
|
|
19
|
+
import './components/countdown-loader/component.js';
|
|
20
20
|
|
|
21
21
|
const ConfirmationDesktop = (props) => (React.createElement(BaseConfirmation, { ...props }));
|
|
22
22
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
+
import { BaseConfirmation } from './components/base-confirmation/component.js';
|
|
3
4
|
import '@alfalab/hooks';
|
|
4
|
-
import './utils.js';
|
|
5
5
|
import './context.js';
|
|
6
|
+
import './utils.js';
|
|
6
7
|
import './types.js';
|
|
8
|
+
import './components/screens/initial/component.js';
|
|
7
9
|
import '@alfalab/core-components-button/modern';
|
|
8
10
|
import '@alfalab/core-components-code-input/modern';
|
|
9
11
|
import '@alfalab/core-components-link/modern';
|
|
10
12
|
import '@alfalab/core-components-typography/modern';
|
|
11
13
|
import './components/header/component.js';
|
|
14
|
+
import './countdown-section-b8b393a2.js';
|
|
12
15
|
import '@alfalab/core-components-loader/modern';
|
|
13
|
-
import './countdown-section-cb87c8ea.js';
|
|
14
|
-
import './components/screens/initial/component.js';
|
|
15
16
|
import './components/screens/hint/component.js';
|
|
16
17
|
import './components/screens/fatal-error/component.js';
|
|
17
|
-
import './components/countdown-loader/component.js';
|
|
18
18
|
import './components/screens/temp-block/component.js';
|
|
19
|
-
import
|
|
19
|
+
import './components/countdown-loader/component.js';
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
const styles = {"container":"confirmation__container_12az3"};
|
|
22
22
|
require('./mobile.css')
|
|
23
23
|
|
|
24
24
|
const ConfirmationMobile = ({ className, ...resProps }) => (React.createElement(BaseConfirmation, { mobile: true, className: cn(className, styles.container), ...resProps }));
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import 'classnames';
|
|
3
2
|
import { useMedia } from '@alfalab/hooks';
|
|
4
|
-
import './
|
|
3
|
+
import { ConfirmationDesktop } from './component.desktop.js';
|
|
4
|
+
import { ConfirmationMobile } from './component.mobile.js';
|
|
5
|
+
import './components/base-confirmation/component.js';
|
|
6
|
+
import 'classnames';
|
|
5
7
|
import './context.js';
|
|
8
|
+
import './utils.js';
|
|
6
9
|
import './types.js';
|
|
10
|
+
import './components/screens/initial/component.js';
|
|
7
11
|
import '@alfalab/core-components-button/modern';
|
|
8
12
|
import '@alfalab/core-components-code-input/modern';
|
|
9
13
|
import '@alfalab/core-components-link/modern';
|
|
10
14
|
import '@alfalab/core-components-typography/modern';
|
|
11
15
|
import './components/header/component.js';
|
|
16
|
+
import './countdown-section-b8b393a2.js';
|
|
12
17
|
import '@alfalab/core-components-loader/modern';
|
|
13
|
-
import './countdown-section-cb87c8ea.js';
|
|
14
|
-
import './components/screens/initial/component.js';
|
|
15
18
|
import './components/screens/hint/component.js';
|
|
16
19
|
import './components/screens/fatal-error/component.js';
|
|
17
|
-
import './components/countdown-loader/component.js';
|
|
18
20
|
import './components/screens/temp-block/component.js';
|
|
19
|
-
import './components/
|
|
20
|
-
import { ConfirmationDesktop } from './component.desktop.js';
|
|
21
|
-
import { ConfirmationMobile } from './component.mobile.js';
|
|
21
|
+
import './components/countdown-loader/component.js';
|
|
22
22
|
|
|
23
23
|
const ConfirmationResponsive = (props) => {
|
|
24
24
|
const [view] = useMedia([
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { usePrevious } from '@alfalab/hooks';
|
|
4
|
-
import { ONE_MINUTE, ONE_DAY, useCountdown } from '../../utils.js';
|
|
5
4
|
import { ConfirmationContext } from '../../context.js';
|
|
6
5
|
import { defaultTexts } from '../../types.js';
|
|
6
|
+
import { useCountdown, ONE_MINUTE, ONE_DAY } from '../../utils.js';
|
|
7
|
+
import { Initial } from '../screens/initial/component.js';
|
|
8
|
+
import { Hint } from '../screens/hint/component.js';
|
|
9
|
+
import { FatalError } from '../screens/fatal-error/component.js';
|
|
10
|
+
import { TempBlock } from '../screens/temp-block/component.js';
|
|
7
11
|
import '@alfalab/core-components-button/modern';
|
|
8
12
|
import '@alfalab/core-components-code-input/modern';
|
|
9
13
|
import '@alfalab/core-components-link/modern';
|
|
10
14
|
import '@alfalab/core-components-typography/modern';
|
|
11
15
|
import '../header/component.js';
|
|
16
|
+
import '../../countdown-section-b8b393a2.js';
|
|
12
17
|
import '@alfalab/core-components-loader/modern';
|
|
13
|
-
import '../../countdown-section-cb87c8ea.js';
|
|
14
|
-
import { Initial } from '../screens/initial/component.js';
|
|
15
|
-
import { Hint } from '../screens/hint/component.js';
|
|
16
|
-
import { FatalError } from '../screens/fatal-error/component.js';
|
|
17
18
|
import '../countdown-loader/component.js';
|
|
18
|
-
import { TempBlock } from '../screens/temp-block/component.js';
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
const styles = {"component":"confirmation__component_1vjji"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
const confirmationScreens = {
|
|
@@ -26,7 +26,7 @@ const confirmationScreens = {
|
|
|
26
26
|
FATAL_ERROR: FatalError,
|
|
27
27
|
TEMP_BLOCK: TempBlock,
|
|
28
28
|
};
|
|
29
|
-
const BaseConfirmation = ({ state, screen, alignContent = 'left', children, requiredCharAmount = 5, countdownDuration = ONE_MINUTE, tempBlockDuration = ONE_DAY, phone, blockSmsRetry, dataTestId, className, getScreensMap, onInputFinished, onChangeState, onSmsRetryClick, onChangeScreen, onFatalErrorOkButtonClick, onTempBlockFinished, mobile, clearCodeOnError, ...restProps }) => {
|
|
29
|
+
const BaseConfirmation = ({ state, screen, alignContent = 'left', children, requiredCharAmount = 5, countdownDuration = ONE_MINUTE, tempBlockDuration = ONE_DAY, phone, blockSmsRetry, dataTestId, className, getScreensMap, onInputFinished, onChangeState, onSmsRetryClick, onChangeScreen, onFatalErrorOkButtonClick, onTempBlockFinished, mobile, clearCodeOnError = true, ...restProps }) => {
|
|
30
30
|
const [timeLeft, startTimer, stopTimer] = useCountdown(countdownDuration);
|
|
31
31
|
const prevState = usePrevious(state);
|
|
32
32
|
useEffect(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: kwbzz */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.confirmation__component_1vjji {
|
|
14
14
|
width: 100%;
|
|
15
15
|
max-width: 388px;
|
|
16
16
|
margin: 0 auto;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
+
export { BaseConfirmation } from './component.js';
|
|
1
2
|
import 'react';
|
|
2
3
|
import 'classnames';
|
|
3
4
|
import '@alfalab/hooks';
|
|
4
|
-
import '../../utils.js';
|
|
5
5
|
import '../../context.js';
|
|
6
|
+
import '../../utils.js';
|
|
6
7
|
import '../../types.js';
|
|
8
|
+
import '../screens/initial/component.js';
|
|
7
9
|
import '@alfalab/core-components-button/modern';
|
|
8
10
|
import '@alfalab/core-components-code-input/modern';
|
|
9
11
|
import '@alfalab/core-components-link/modern';
|
|
10
12
|
import '@alfalab/core-components-typography/modern';
|
|
11
13
|
import '../header/component.js';
|
|
14
|
+
import '../../countdown-section-b8b393a2.js';
|
|
12
15
|
import '@alfalab/core-components-loader/modern';
|
|
13
|
-
import '../../countdown-section-cb87c8ea.js';
|
|
14
|
-
import '../screens/initial/component.js';
|
|
15
16
|
import '../screens/hint/component.js';
|
|
16
17
|
import '../screens/fatal-error/component.js';
|
|
17
|
-
import '../countdown-loader/component.js';
|
|
18
18
|
import '../screens/temp-block/component.js';
|
|
19
|
-
|
|
19
|
+
import '../countdown-loader/component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qnpv */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-tertiary: #b6bcc3;
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.confirmation__circle_o1lwg {
|
|
14
14
|
fill: transparent;
|
|
15
15
|
stroke: var(--color-light-graphic-tertiary);
|
|
16
16
|
stroke-width: 2px;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const styles = {"header":"confirmation__header_1o5ag","typography":"confirmation__typography_1o5ag","typographyMobile":"confirmation__typographyMobile_1o5ag"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Header = ({ mobile, children }) => (React.createElement(Typography.Title, { className: cn(styles.header, styles.typography, { [styles.typographyMobile]: mobile }), tag: 'h3', color: 'primary' }, children));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: j05p1 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
/* header */
|
|
33
33
|
--confirmation-header-font-feature-settings: normal
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.confirmation__header_1o5ag.confirmation__header_1o5ag {
|
|
36
36
|
margin-bottom: var(--gap-xl);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.confirmation__typography_1o5ag.confirmation__typography_1o5ag {
|
|
39
39
|
font-feature-settings: var(--confirmation-header-font-feature-settings);
|
|
40
40
|
font-size: var(--confirmation-header-desktop-font-size);
|
|
41
41
|
line-height: var(--confirmation-header-desktop-line-height);
|
|
42
42
|
font-weight: var(--confirmation-header-desktop-font-weight);
|
|
43
43
|
font-family: var(--confirmation-header-desktop-font-family);
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.confirmation__typographyMobile_1o5ag.confirmation__typographyMobile_1o5ag {
|
|
46
46
|
font-feature-settings: var(--confirmation-header-font-feature-settings);
|
|
47
47
|
font-size: var(--confirmation-header-mobile-font-size);
|
|
48
48
|
line-height: var(--confirmation-header-mobile-line-height);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
export { Initial } from './screens/initial/component.js';
|
|
2
|
+
export { Hint } from './screens/hint/component.js';
|
|
3
|
+
export { FatalError } from './screens/fatal-error/component.js';
|
|
4
|
+
export { TempBlock } from './screens/temp-block/component.js';
|
|
5
|
+
export { CountdownLoader } from './countdown-loader/component.js';
|
|
1
6
|
import 'react';
|
|
2
7
|
import 'classnames';
|
|
3
|
-
import '@alfalab/hooks';
|
|
4
|
-
import '../utils.js';
|
|
5
|
-
import '../context.js';
|
|
6
8
|
import '@alfalab/core-components-button/modern';
|
|
7
9
|
import '@alfalab/core-components-code-input/modern';
|
|
8
10
|
import '@alfalab/core-components-link/modern';
|
|
9
11
|
import '@alfalab/core-components-typography/modern';
|
|
12
|
+
import '@alfalab/hooks';
|
|
13
|
+
import '../context.js';
|
|
14
|
+
import '../utils.js';
|
|
10
15
|
import './header/component.js';
|
|
16
|
+
import '../countdown-section-b8b393a2.js';
|
|
11
17
|
import '@alfalab/core-components-loader/modern';
|
|
12
|
-
import '../countdown-section-cb87c8ea.js';
|
|
13
|
-
export { Initial } from './screens/initial/component.js';
|
|
14
|
-
export { Hint } from './screens/hint/component.js';
|
|
15
|
-
export { FatalError } from './screens/fatal-error/component.js';
|
|
16
|
-
export { CountdownLoader } from './countdown-loader/component.js';
|
|
17
|
-
export { TempBlock } from './screens/temp-block/component.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import '../../../utils.js';
|
|
4
|
-
import { ConfirmationContext } from '../../../context.js';
|
|
5
3
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
6
4
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
5
|
+
import { ConfirmationContext } from '../../../context.js';
|
|
7
6
|
import { Header } from '../../header/component.js';
|
|
7
|
+
import '../../../utils.js';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const styles = {"component":"confirmation__component_186fo","typographyTheme":"confirmation__typographyTheme_186fo","left":"confirmation__left_186fo","center":"confirmation__center_186fo","button":"confirmation__button_186fo"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const FatalError = ({ mobile }) => {
|