@alfalab/core-components-confirmation 12.4.10 → 12.4.12
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.desktop.js +3 -1
- package/component.mobile.js +4 -2
- package/component.responsive.js +3 -1
- package/components/base-confirmation/component.js +7 -4
- package/components/base-confirmation/index.css +4 -4
- package/components/base-confirmation/index.js +3 -1
- package/components/countdown-loader/component.js +3 -1
- package/components/countdown-loader/index.css +4 -4
- package/components/countdown-loader/index.js +2 -0
- package/components/header/component.js +3 -1
- package/components/header/index.css +6 -6
- package/components/header/index.js +2 -0
- package/components/index.js +3 -1
- package/components/screens/fatal-error/component.js +3 -1
- package/components/screens/fatal-error/index.css +8 -8
- package/components/screens/fatal-error/index.js +2 -0
- package/components/screens/hint/component.js +3 -1
- package/components/screens/hint/index.css +14 -14
- package/components/screens/hint/index.js +2 -0
- package/components/screens/index.js +3 -1
- package/components/screens/initial/component.js +5 -3
- package/components/screens/initial/countdown-section.js +3 -1
- package/components/screens/initial/index.css +21 -21
- package/components/screens/initial/index.js +3 -1
- package/components/screens/temp-block/component.js +3 -1
- package/components/screens/temp-block/index.css +9 -9
- package/components/screens/temp-block/index.js +2 -0
- package/context.js +3 -0
- package/{countdown-section-5babd6c6.js → countdown-section-eeb2aaea.js} +1 -1
- package/cssm/component.desktop.js +2 -0
- package/cssm/component.mobile.js +2 -0
- package/cssm/component.responsive.js +2 -0
- package/cssm/components/base-confirmation/component.js +5 -2
- package/cssm/components/base-confirmation/index.js +2 -0
- package/cssm/components/base-confirmation/index.module.css +2 -2
- package/cssm/components/countdown-loader/component.js +2 -0
- package/cssm/components/countdown-loader/index.js +2 -0
- package/cssm/components/countdown-loader/index.module.css +2 -2
- package/cssm/components/header/component.js +2 -0
- package/cssm/components/header/index.js +2 -0
- package/cssm/components/header/index.module.css +2 -2
- package/cssm/components/index.js +2 -0
- package/cssm/components/screens/fatal-error/component.js +2 -0
- package/cssm/components/screens/fatal-error/index.js +2 -0
- package/cssm/components/screens/fatal-error/index.module.css +2 -2
- package/cssm/components/screens/hint/component.js +2 -0
- package/cssm/components/screens/hint/index.js +2 -0
- package/cssm/components/screens/hint/index.module.css +2 -2
- package/cssm/components/screens/index.js +2 -0
- package/cssm/components/screens/initial/component.js +4 -2
- package/cssm/components/screens/initial/countdown-section.js +2 -0
- package/cssm/components/screens/initial/index.js +2 -0
- package/cssm/components/screens/initial/index.module.css +3 -3
- package/cssm/components/screens/temp-block/component.js +2 -0
- package/cssm/components/screens/temp-block/index.js +2 -0
- package/cssm/components/screens/temp-block/index.module.css +2 -2
- package/cssm/context.js +3 -0
- package/cssm/desktop.js +2 -0
- package/cssm/index.js +5 -3
- package/cssm/mobile.js +2 -0
- package/cssm/responsive.js +2 -0
- package/cssm/types.d.ts +6 -1
- package/cssm/types.js +2 -0
- package/cssm/utils.js +2 -0
- package/cssm/vars.css +2 -2
- package/desktop.js +3 -1
- package/esm/component.desktop.js +1 -1
- package/esm/component.mobile.js +2 -2
- package/esm/component.responsive.js +1 -1
- package/esm/components/base-confirmation/component.js +5 -4
- package/esm/components/base-confirmation/index.css +4 -4
- package/esm/components/base-confirmation/index.js +1 -1
- package/esm/components/countdown-loader/component.js +1 -1
- package/esm/components/countdown-loader/index.css +4 -4
- package/esm/components/header/component.js +1 -1
- package/esm/components/header/index.css +6 -6
- 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 +8 -8
- package/esm/components/screens/hint/component.js +1 -1
- package/esm/components/screens/hint/index.css +14 -14
- 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 +21 -21
- 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 +9 -9
- package/esm/context.js +1 -0
- package/esm/{countdown-section-b2e6a96e.js → countdown-section-11874006.js} +1 -1
- package/esm/desktop.js +1 -1
- package/esm/index.js +2 -2
- package/esm/mobile.css +2 -2
- package/esm/mobile.js +1 -1
- package/esm/responsive.js +1 -1
- package/esm/types.d.ts +6 -1
- package/index.js +4 -2
- package/mobile.css +2 -2
- package/mobile.js +3 -1
- 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 +4 -4
- 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 +4 -4
- package/modern/components/header/component.js +1 -1
- package/modern/components/header/index.css +6 -6
- 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 +8 -8
- package/modern/components/screens/hint/component.js +1 -1
- package/modern/components/screens/hint/index.css +14 -14
- 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 +21 -21
- 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 +9 -9
- package/modern/context.js +1 -0
- package/modern/{countdown-section-55d78e2b.js → countdown-section-a44bf760.js} +1 -1
- package/modern/desktop.js +1 -1
- package/modern/index.js +2 -2
- package/modern/mobile.css +2 -2
- package/modern/mobile.js +1 -1
- package/modern/responsive.js +1 -1
- package/modern/types.d.ts +6 -1
- package/package.json +6 -6
- package/responsive.js +3 -1
- package/types.d.ts +6 -1
- package/types.js +2 -0
- package/utils.js +2 -0
- /package/{countdown-section-5babd6c6.d.ts → countdown-section-eeb2aaea.d.ts} +0 -0
- /package/esm/{countdown-section-b2e6a96e.d.ts → countdown-section-11874006.d.ts} +0 -0
- /package/modern/{countdown-section-55d78e2b.d.ts → countdown-section-a44bf760.d.ts} +0 -0
package/modern/types.d.ts
CHANGED
|
@@ -84,8 +84,13 @@ type ConfirmationProps = {
|
|
|
84
84
|
* Дочерние элементы.
|
|
85
85
|
*/
|
|
86
86
|
children?: ReactNode;
|
|
87
|
+
/**
|
|
88
|
+
* Скрыть секцию с повторной отправкой кода
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
91
|
+
hideCountdownSection?: boolean;
|
|
87
92
|
};
|
|
88
|
-
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
|
|
93
|
+
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration' | 'hideCountdownSection'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
|
|
89
94
|
timeLeft: number;
|
|
90
95
|
};
|
|
91
96
|
type ConfirmationTexts = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-confirmation",
|
|
3
|
-
"version": "12.4.
|
|
3
|
+
"version": "12.4.12",
|
|
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": "^
|
|
18
|
-
"@alfalab/core-components-code-input": "^2.3.
|
|
19
|
-
"@alfalab/core-components-link": "^5.0.
|
|
20
|
-
"@alfalab/core-components-loader": "^3.0.
|
|
21
|
-
"@alfalab/core-components-typography": "^3.2.
|
|
17
|
+
"@alfalab/core-components-button": "^8.0.0",
|
|
18
|
+
"@alfalab/core-components-code-input": "^2.3.3",
|
|
19
|
+
"@alfalab/core-components-link": "^5.0.4",
|
|
20
|
+
"@alfalab/core-components-loader": "^3.0.6",
|
|
21
|
+
"@alfalab/core-components-typography": "^3.2.1",
|
|
22
22
|
"@alfalab/hooks": "^1.4.1",
|
|
23
23
|
"@alfalab/icons-glyph": "^2.89.0",
|
|
24
24
|
"@alfalab/utils": "^1.13.3",
|
package/responsive.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var component_responsive = require('./component.responsive.js');
|
|
4
6
|
require('tslib');
|
|
5
7
|
require('react');
|
|
@@ -16,7 +18,7 @@ require('@alfalab/core-components-code-input');
|
|
|
16
18
|
require('@alfalab/core-components-link');
|
|
17
19
|
require('@alfalab/core-components-typography');
|
|
18
20
|
require('./components/header/component.js');
|
|
19
|
-
require('./countdown-section-
|
|
21
|
+
require('./countdown-section-eeb2aaea.js');
|
|
20
22
|
require('@alfalab/core-components-loader');
|
|
21
23
|
require('./components/screens/hint/component.js');
|
|
22
24
|
require('./components/screens/fatal-error/component.js');
|
package/types.d.ts
CHANGED
|
@@ -84,8 +84,13 @@ type ConfirmationProps = {
|
|
|
84
84
|
* Дочерние элементы.
|
|
85
85
|
*/
|
|
86
86
|
children?: ReactNode;
|
|
87
|
+
/**
|
|
88
|
+
* Скрыть секцию с повторной отправкой кода
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
91
|
+
hideCountdownSection?: boolean;
|
|
87
92
|
};
|
|
88
|
-
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
|
|
93
|
+
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration' | 'hideCountdownSection'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
|
|
89
94
|
timeLeft: number;
|
|
90
95
|
};
|
|
91
96
|
type ConfirmationTexts = {
|
package/types.js
CHANGED
package/utils.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|