@alfalab/core-components-confirmation 12.2.4 → 12.3.1
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-31d94208.d.ts → component-fdb34282.d.ts} +0 -0
- package/{component-31d94208.js → component-fdb34282.js} +3 -2
- package/component.desktop.js +2 -2
- package/component.mobile.js +3 -3
- package/component.responsive.js +2 -2
- package/components/base-confirmation/component.js +2 -2
- package/components/base-confirmation/index.css +3 -3
- package/components/base-confirmation/index.d.ts +1 -1
- package/components/base-confirmation/index.js +2 -2
- package/components/countdown-loader/component.js +1 -1
- package/components/countdown-loader/index.css +2 -2
- package/components/header/component.js +1 -1
- package/components/header/index.css +4 -4
- package/components/index.js +1 -1
- package/components/screens/fatal-error/component.js +1 -1
- package/components/screens/fatal-error/index.css +5 -5
- package/components/screens/hint/component.js +1 -1
- package/components/screens/hint/index.css +12 -12
- package/components/screens/index.js +1 -1
- package/components/screens/initial/component.js +3 -3
- package/components/screens/initial/countdown-section.js +1 -1
- package/components/screens/initial/index.css +18 -18
- package/components/screens/initial/index.js +1 -1
- package/components/screens/temp-block/component.js +1 -1
- package/components/screens/temp-block/index.css +5 -5
- package/{countdown-section-b9df86d5.d.ts → countdown-section-0b438545.d.ts} +0 -0
- package/{countdown-section-b9df86d5.js → countdown-section-0b438545.js} +1 -1
- package/cssm/{component-c0d561b6.d.ts → component-cbe72bf1.d.ts} +0 -0
- package/cssm/{component-c0d561b6.js → component-cbe72bf1.js} +2 -1
- package/cssm/component.desktop.js +1 -1
- package/cssm/component.mobile.js +1 -1
- package/cssm/component.responsive.js +1 -1
- package/cssm/components/base-confirmation/component.js +1 -1
- package/cssm/components/base-confirmation/index.d.ts +1 -1
- package/cssm/components/base-confirmation/index.js +1 -1
- package/cssm/components/screens/initial/component.js +2 -2
- package/cssm/desktop.js +1 -1
- package/cssm/index.js +1 -1
- package/cssm/mobile.js +1 -1
- package/cssm/responsive.js +1 -1
- package/cssm/types.d.ts +5 -1
- package/desktop.js +2 -2
- package/esm/{component-079a15ec.d.ts → component-01ef70cf.d.ts} +0 -0
- package/esm/{component-079a15ec.js → component-01ef70cf.js} +3 -2
- package/esm/component.desktop.js +2 -2
- package/esm/component.mobile.js +3 -3
- package/esm/component.responsive.js +2 -2
- package/esm/components/base-confirmation/component.js +2 -2
- package/esm/components/base-confirmation/index.css +3 -3
- package/esm/components/base-confirmation/index.d.ts +1 -1
- package/esm/components/base-confirmation/index.js +2 -2
- package/esm/components/countdown-loader/component.js +1 -1
- package/esm/components/countdown-loader/index.css +2 -2
- package/esm/components/header/component.js +1 -1
- package/esm/components/header/index.css +4 -4
- package/esm/components/index.js +1 -1
- package/esm/components/screens/fatal-error/component.js +1 -1
- package/esm/components/screens/fatal-error/index.css +5 -5
- package/esm/components/screens/hint/component.js +1 -1
- package/esm/components/screens/hint/index.css +12 -12
- package/esm/components/screens/index.js +1 -1
- package/esm/components/screens/initial/component.js +3 -3
- package/esm/components/screens/initial/countdown-section.js +1 -1
- package/esm/components/screens/initial/index.css +18 -18
- package/esm/components/screens/initial/index.js +1 -1
- package/esm/components/screens/temp-block/component.js +1 -1
- package/esm/components/screens/temp-block/index.css +5 -5
- package/esm/{countdown-section-2d096a10.d.ts → countdown-section-c6451bca.d.ts} +0 -0
- package/esm/{countdown-section-2d096a10.js → countdown-section-c6451bca.js} +1 -1
- package/esm/desktop.js +2 -2
- package/esm/index.js +2 -2
- package/esm/mobile.css +2 -2
- package/esm/mobile.js +2 -2
- package/esm/responsive.js +2 -2
- package/esm/types.d.ts +5 -1
- package/index.js +2 -2
- package/mobile.css +2 -2
- package/mobile.js +2 -2
- package/modern/component.desktop.js +1 -1
- package/modern/component.mobile.js +2 -2
- package/modern/component.responsive.js +1 -1
- package/modern/components/base-confirmation/component.js +4 -3
- package/modern/components/base-confirmation/index.css +3 -3
- package/modern/components/base-confirmation/index.js +1 -1
- package/modern/components/countdown-loader/component.js +1 -1
- package/modern/components/countdown-loader/index.css +2 -2
- package/modern/components/header/component.js +1 -1
- package/modern/components/header/index.css +4 -4
- package/modern/components/index.js +1 -1
- package/modern/components/screens/fatal-error/component.js +1 -1
- package/modern/components/screens/fatal-error/index.css +5 -5
- package/modern/components/screens/hint/component.js +1 -1
- package/modern/components/screens/hint/index.css +12 -12
- package/modern/components/screens/index.js +1 -1
- package/modern/components/screens/initial/component.js +3 -3
- package/modern/components/screens/initial/countdown-section.js +1 -1
- package/modern/components/screens/initial/index.css +18 -18
- package/modern/components/screens/initial/index.js +1 -1
- package/modern/components/screens/temp-block/component.js +1 -1
- package/modern/components/screens/temp-block/index.css +5 -5
- package/modern/{countdown-section-f8b16386.d.ts → countdown-section-080d449f.d.ts} +0 -0
- package/modern/{countdown-section-f8b16386.js → countdown-section-080d449f.js} +1 -1
- package/modern/desktop.js +1 -1
- package/modern/index.js +1 -1
- package/modern/mobile.css +2 -2
- package/modern/mobile.js +1 -1
- package/modern/responsive.js +1 -1
- package/modern/types.d.ts +5 -1
- package/package.json +4 -4
- package/responsive.js +2 -2
- package/types.d.ts +5 -1
|
File without changes
|
|
@@ -6,7 +6,7 @@ import { Button } from '@alfalab/core-components-button/modern';
|
|
|
6
6
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
7
7
|
import { Loader } from '@alfalab/core-components-loader/modern';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"confirmation__component_1yyyq","typographyTheme":"confirmation__typographyTheme_1yyyq","phone":"confirmation__phone_1yyyq","compact":"confirmation__compact_1yyyq","loaderWrap":"confirmation__loaderWrap_1yyyq","left":"confirmation__left_1yyyq","center":"confirmation__center_1yyyq","codeInput":"confirmation__codeInput_1yyyq","smsComeLink":"confirmation__smsComeLink_1yyyq","countdownContainer":"confirmation__countdownContainer_1yyyq","countdownMobile":"confirmation__countdownMobile_1yyyq","countdownLoaderMobile":"confirmation__countdownLoaderMobile_1yyyq","getCodeButton":"confirmation__getCodeButton_1yyyq","getCodeButtonMobile":"confirmation__getCodeButtonMobile_1yyyq","containerInput":"confirmation__containerInput_1yyyq"};
|
|
10
10
|
require('./components/screens/initial/index.css')
|
|
11
11
|
|
|
12
12
|
const CountdownSection = ({ codeSendHintVisible, timePassed, processing, mobile, handleSmsRetryClick, }) => {
|
package/modern/desktop.js
CHANGED
|
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
|
|
|
10
10
|
import '@alfalab/core-components-typography/modern';
|
|
11
11
|
import './components/header/component.js';
|
|
12
12
|
import '@alfalab/core-components-loader/modern';
|
|
13
|
-
import './countdown-section-
|
|
13
|
+
import './countdown-section-080d449f.js';
|
|
14
14
|
import './components/screens/initial/component.js';
|
|
15
15
|
import './components/screens/hint/component.js';
|
|
16
16
|
import './components/screens/fatal-error/component.js';
|
package/modern/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
|
|
|
10
10
|
import '@alfalab/core-components-typography/modern';
|
|
11
11
|
import './components/header/component.js';
|
|
12
12
|
import '@alfalab/core-components-loader/modern';
|
|
13
|
-
import './countdown-section-
|
|
13
|
+
import './countdown-section-080d449f.js';
|
|
14
14
|
export { Initial } from './components/screens/initial/component.js';
|
|
15
15
|
export { Hint } from './components/screens/hint/component.js';
|
|
16
16
|
export { FatalError } from './components/screens/fatal-error/component.js';
|
package/modern/mobile.css
CHANGED
package/modern/mobile.js
CHANGED
|
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
|
|
|
10
10
|
import '@alfalab/core-components-typography/modern';
|
|
11
11
|
import './components/header/component.js';
|
|
12
12
|
import '@alfalab/core-components-loader/modern';
|
|
13
|
-
import './countdown-section-
|
|
13
|
+
import './countdown-section-080d449f.js';
|
|
14
14
|
import './components/screens/initial/component.js';
|
|
15
15
|
import './components/screens/hint/component.js';
|
|
16
16
|
import './components/screens/fatal-error/component.js';
|
package/modern/responsive.js
CHANGED
|
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
|
|
|
10
10
|
import '@alfalab/core-components-typography/modern';
|
|
11
11
|
import './components/header/component.js';
|
|
12
12
|
import '@alfalab/core-components-loader/modern';
|
|
13
|
-
import './countdown-section-
|
|
13
|
+
import './countdown-section-080d449f.js';
|
|
14
14
|
import './components/screens/initial/component.js';
|
|
15
15
|
import './components/screens/hint/component.js';
|
|
16
16
|
import './components/screens/fatal-error/component.js';
|
package/modern/types.d.ts
CHANGED
|
@@ -48,6 +48,10 @@ type ConfirmationProps = {
|
|
|
48
48
|
* Сss класс для стилизации общей обёртки
|
|
49
49
|
*/
|
|
50
50
|
className?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Флаг - нужно ли очищать код при возникновении ошибки
|
|
53
|
+
*/
|
|
54
|
+
clearCodeOnError?: boolean;
|
|
51
55
|
/**
|
|
52
56
|
* Функция обновления состояния компонента
|
|
53
57
|
*/
|
|
@@ -81,7 +85,7 @@ type ConfirmationProps = {
|
|
|
81
85
|
*/
|
|
82
86
|
children?: ReactNode;
|
|
83
87
|
};
|
|
84
|
-
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished'> & {
|
|
88
|
+
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
|
|
85
89
|
timeLeft: number;
|
|
86
90
|
};
|
|
87
91
|
type ConfirmationTexts = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-confirmation",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.3.1",
|
|
4
4
|
"description": "Sms confirmation component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"directory": "dist"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@alfalab/core-components-button": "^7.0.
|
|
18
|
-
"@alfalab/core-components-code-input": "^2.
|
|
17
|
+
"@alfalab/core-components-button": "^7.0.1",
|
|
18
|
+
"@alfalab/core-components-code-input": "^2.2.0",
|
|
19
19
|
"@alfalab/core-components-link": "^5.0.1",
|
|
20
20
|
"@alfalab/core-components-loader": "^3.0.3",
|
|
21
|
-
"@alfalab/core-components-typography": "^3.0.
|
|
21
|
+
"@alfalab/core-components-typography": "^3.0.4",
|
|
22
22
|
"@alfalab/hooks": "^1.4.1",
|
|
23
23
|
"@alfalab/icons-glyph": "^2.71.0",
|
|
24
24
|
"@alfalab/utils": "^1.13.3",
|
package/responsive.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./component-
|
|
5
|
+
require('./component-fdb34282.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/hooks');
|
|
@@ -15,7 +15,7 @@ require('@alfalab/core-components-link');
|
|
|
15
15
|
require('@alfalab/core-components-typography');
|
|
16
16
|
require('./components/header/component.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
|
-
require('./countdown-section-
|
|
18
|
+
require('./countdown-section-0b438545.js');
|
|
19
19
|
require('./components/screens/initial/component.js');
|
|
20
20
|
require('./components/screens/hint/component.js');
|
|
21
21
|
require('./components/screens/fatal-error/component.js');
|
package/types.d.ts
CHANGED
|
@@ -48,6 +48,10 @@ type ConfirmationProps = {
|
|
|
48
48
|
* Сss класс для стилизации общей обёртки
|
|
49
49
|
*/
|
|
50
50
|
className?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Флаг - нужно ли очищать код при возникновении ошибки
|
|
53
|
+
*/
|
|
54
|
+
clearCodeOnError?: boolean;
|
|
51
55
|
/**
|
|
52
56
|
* Функция обновления состояния компонента
|
|
53
57
|
*/
|
|
@@ -81,7 +85,7 @@ type ConfirmationProps = {
|
|
|
81
85
|
*/
|
|
82
86
|
children?: ReactNode;
|
|
83
87
|
};
|
|
84
|
-
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished'> & {
|
|
88
|
+
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
|
|
85
89
|
timeLeft: number;
|
|
86
90
|
};
|
|
87
91
|
type ConfirmationTexts = {
|