@alfalab/core-components-confirmation 13.3.2 → 13.3.4
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.responsive.js +0 -20
- package/components/base-confirmation/component.js +1 -11
- package/components/base-confirmation/index.css +2 -2
- package/components/base-confirmation/index.js +0 -21
- package/components/countdown-loader/component.js +1 -1
- package/components/countdown-loader/index.css +2 -2
- package/components/countdown-loader/index.js +0 -1
- package/components/header/component.js +1 -1
- package/components/header/index.css +4 -4
- package/components/header/index.js +0 -3
- package/components/index.js +0 -14
- package/components/screens/fatal-error/component.js +1 -2
- package/components/screens/fatal-error/index.css +6 -6
- package/components/screens/fatal-error/index.js +0 -7
- package/components/screens/hint/component.js +1 -2
- package/components/screens/hint/index.css +12 -12
- package/components/screens/hint/index.js +0 -8
- package/components/screens/index.js +0 -15
- package/components/screens/initial/component.js +3 -6
- package/components/screens/initial/countdown-section.js +1 -1
- package/components/screens/initial/index.css +17 -17
- package/components/screens/initial/index.js +0 -14
- package/components/screens/temp-block/component.js +1 -1
- package/components/screens/temp-block/index.css +7 -7
- package/components/screens/temp-block/index.js +0 -7
- package/{countdown-section-bfcf66d3.js → countdown-section-2c4aa56c.js} +1 -1
- package/cssm/component.responsive.js +0 -28
- package/cssm/components/base-confirmation/component.js +0 -16
- package/cssm/components/base-confirmation/index.js +0 -28
- package/cssm/components/countdown-loader/index.js +0 -2
- package/cssm/components/header/index.js +0 -4
- package/cssm/components/index.js +0 -20
- package/cssm/components/screens/fatal-error/component.js +0 -2
- package/cssm/components/screens/fatal-error/index.js +0 -9
- package/cssm/components/screens/hint/component.js +0 -2
- package/cssm/components/screens/hint/index.js +0 -10
- package/cssm/components/screens/index.js +0 -21
- package/cssm/components/screens/initial/component.js +2 -6
- package/cssm/components/screens/initial/index.js +0 -16
- package/cssm/components/screens/temp-block/component.js +0 -2
- package/cssm/components/screens/temp-block/index.js +0 -10
- package/cssm/desktop/component.desktop.js +0 -26
- package/cssm/desktop/index.js +0 -28
- package/cssm/index.js +0 -32
- package/cssm/mobile/component.mobile.js +0 -25
- package/cssm/mobile/index.js +0 -29
- package/cssm/shared/index.js +0 -18
- package/desktop/component.desktop.js +0 -19
- package/desktop/index.js +0 -21
- package/esm/component.responsive.js +0 -20
- package/esm/components/base-confirmation/component.js +1 -11
- package/esm/components/base-confirmation/index.css +2 -2
- package/esm/components/base-confirmation/index.js +0 -21
- package/esm/components/countdown-loader/component.js +1 -1
- package/esm/components/countdown-loader/index.css +2 -2
- package/esm/components/countdown-loader/index.js +0 -1
- package/esm/components/header/component.js +1 -1
- package/esm/components/header/index.css +4 -4
- package/esm/components/header/index.js +0 -3
- package/esm/components/index.js +0 -14
- package/esm/components/screens/fatal-error/component.js +1 -2
- package/esm/components/screens/fatal-error/index.css +6 -6
- package/esm/components/screens/fatal-error/index.js +0 -7
- package/esm/components/screens/hint/component.js +1 -2
- package/esm/components/screens/hint/index.css +12 -12
- package/esm/components/screens/hint/index.js +0 -8
- package/esm/components/screens/index.js +0 -15
- package/esm/components/screens/initial/component.js +3 -6
- package/esm/components/screens/initial/countdown-section.js +1 -1
- package/esm/components/screens/initial/index.css +17 -17
- package/esm/components/screens/initial/index.js +0 -14
- package/esm/components/screens/temp-block/component.js +1 -1
- package/esm/components/screens/temp-block/index.css +7 -7
- package/esm/components/screens/temp-block/index.js +0 -7
- package/esm/{countdown-section-6a4bb252.js → countdown-section-b6b1777c.js} +1 -1
- package/esm/desktop/component.desktop.js +0 -19
- package/esm/desktop/index.js +0 -21
- package/esm/index.js +0 -24
- package/esm/mobile/component.mobile.js +1 -19
- package/esm/mobile/index.js +0 -21
- package/esm/mobile/mobile.css +2 -2
- package/esm/shared/index.js +0 -12
- package/index.js +0 -24
- package/mobile/component.mobile.js +1 -19
- package/mobile/index.js +0 -21
- package/mobile/mobile.css +2 -2
- package/modern/component.responsive.js +0 -20
- package/modern/components/base-confirmation/component.js +1 -11
- package/modern/components/base-confirmation/index.css +2 -2
- package/modern/components/base-confirmation/index.js +0 -20
- 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 +0 -1
- package/modern/components/header/component.js +1 -1
- package/modern/components/header/index.css +4 -4
- package/modern/components/header/index.js +0 -3
- package/modern/components/index.js +0 -14
- package/modern/components/screens/fatal-error/component.js +1 -2
- package/modern/components/screens/fatal-error/index.css +6 -6
- package/modern/components/screens/fatal-error/index.js +0 -7
- package/modern/components/screens/hint/component.js +1 -2
- package/modern/components/screens/hint/index.css +12 -12
- package/modern/components/screens/hint/index.js +0 -8
- package/modern/components/screens/index.js +0 -15
- package/modern/components/screens/initial/component.js +3 -6
- package/modern/components/screens/initial/countdown-section.js +1 -1
- package/modern/components/screens/initial/index.css +17 -17
- package/modern/components/screens/initial/index.js +0 -14
- package/modern/components/screens/temp-block/component.js +1 -1
- package/modern/components/screens/temp-block/index.css +7 -7
- package/modern/components/screens/temp-block/index.js +0 -7
- package/modern/{countdown-section-7331d9e5.js → countdown-section-dbc9c917.js} +1 -1
- package/modern/desktop/component.desktop.js +0 -19
- package/modern/desktop/index.js +0 -20
- package/modern/index.js +0 -23
- package/modern/mobile/component.mobile.js +1 -19
- package/modern/mobile/index.js +0 -20
- package/modern/mobile/mobile.css +2 -2
- package/modern/shared/index.js +0 -12
- package/package.json +3 -3
- package/shared/index.js +0 -12
- package/src/components/screens/initial/component.tsx +9 -7
- /package/{countdown-section-bfcf66d3.d.ts → countdown-section-2c4aa56c.d.ts} +0 -0
- /package/esm/{countdown-section-6a4bb252.d.ts → countdown-section-b6b1777c.d.ts} +0 -0
- /package/modern/{countdown-section-7331d9e5.d.ts → countdown-section-dbc9c917.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1a5k3 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -31,23 +31,23 @@
|
|
|
31
31
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
32
32
|
|
|
33
33
|
/* header */
|
|
34
|
-
} .
|
|
34
|
+
} .confirmation__component_1p05f {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
} .
|
|
37
|
+
} .confirmation__center_1p05f {
|
|
38
38
|
align-items: center;
|
|
39
39
|
text-align: center;
|
|
40
|
-
} .
|
|
40
|
+
} .confirmation__typographyTheme_1p05f.confirmation__typographyTheme_1p05f {
|
|
41
41
|
font-size: var(--confirmation-text-font-size);
|
|
42
42
|
line-height: var(--confirmation-text-line-height);
|
|
43
43
|
font-weight: var(--confirmation-text-font-weight);
|
|
44
44
|
font-family: var(--confirmation-text-font-family);
|
|
45
45
|
color: var(--confirmation-text-color);
|
|
46
|
-
} .
|
|
46
|
+
} .confirmation__description_1p05f.confirmation__description_1p05f {
|
|
47
47
|
margin-bottom: var(--gap-xs);
|
|
48
|
-
} .
|
|
48
|
+
} .confirmation__countdownWrap_1p05f {
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
|
-
} .
|
|
51
|
+
} .confirmation__loader_1p05f {
|
|
52
52
|
margin-right: var(--gap-xs);
|
|
53
53
|
}
|
|
@@ -1,8 +1 @@
|
|
|
1
1
|
export { TempBlock } from './component.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components-typography/modern';
|
|
5
|
-
import '../../../context.js';
|
|
6
|
-
import '../../../utils.js';
|
|
7
|
-
import '../../countdown-loader/component.js';
|
|
8
|
-
import '../../header/component.js';
|
|
@@ -6,7 +6,7 @@ import { Typography } from '@alfalab/core-components-typography/modern';
|
|
|
6
6
|
import { ConfirmationContext } from './context.js';
|
|
7
7
|
import { formatMsAsMinutes } from './utils.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"component":"
|
|
9
|
+
const styles = {"component":"confirmation__component_15d3w","typographyTheme":"confirmation__typographyTheme_15d3w","phone":"confirmation__phone_15d3w","compact":"confirmation__compact_15d3w","loaderWrap":"confirmation__loaderWrap_15d3w","left":"confirmation__left_15d3w","center":"confirmation__center_15d3w","codeInput":"confirmation__codeInput_15d3w","smsComeLink":"confirmation__smsComeLink_15d3w","countdownContainer":"confirmation__countdownContainer_15d3w","countdownMobile":"confirmation__countdownMobile_15d3w","countdownLoaderMobile":"confirmation__countdownLoaderMobile_15d3w","getCodeButton":"confirmation__getCodeButton_15d3w","getCodeButtonMobile":"confirmation__getCodeButtonMobile_15d3w","containerInput":"confirmation__containerInput_15d3w"};
|
|
10
10
|
require('./components/screens/initial/index.css')
|
|
11
11
|
|
|
12
12
|
const CountdownSection = ({ codeSendHintVisible, timePassed, processing, mobile, handleSmsRetryClick, }) => {
|
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseConfirmation } from '../components/base-confirmation/component.js';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import '@alfalab/hooks';
|
|
5
|
-
import '../context.js';
|
|
6
|
-
import '../utils.js';
|
|
7
|
-
import '../types.js';
|
|
8
|
-
import '../components/screens/initial/component.js';
|
|
9
|
-
import '@alfalab/core-components-button/modern/mobile';
|
|
10
|
-
import '@alfalab/core-components-code-input/modern/desktop';
|
|
11
|
-
import '@alfalab/core-components-code-input/modern/mobile';
|
|
12
|
-
import '@alfalab/core-components-link/modern';
|
|
13
|
-
import '@alfalab/core-components-typography/modern';
|
|
14
|
-
import '../components/header/component.js';
|
|
15
|
-
import '../countdown-section-7331d9e5.js';
|
|
16
|
-
import '@alfalab/core-components-button/modern';
|
|
17
|
-
import '@alfalab/core-components-spinner/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
3
|
|
|
23
4
|
const ConfirmationDesktop = (props) => (React.createElement(BaseConfirmation, { ...props }));
|
|
24
5
|
|
package/modern/desktop/index.js
CHANGED
|
@@ -1,22 +1,2 @@
|
|
|
1
1
|
export { ConfirmationDesktop } from './component.desktop.js';
|
|
2
2
|
export { useConfirmation, useCountdown } from '../utils.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../components/base-confirmation/component.js';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '@alfalab/hooks';
|
|
7
|
-
import '../context.js';
|
|
8
|
-
import '../types.js';
|
|
9
|
-
import '../components/screens/initial/component.js';
|
|
10
|
-
import '@alfalab/core-components-button/modern/mobile';
|
|
11
|
-
import '@alfalab/core-components-code-input/modern/desktop';
|
|
12
|
-
import '@alfalab/core-components-code-input/modern/mobile';
|
|
13
|
-
import '@alfalab/core-components-link/modern';
|
|
14
|
-
import '@alfalab/core-components-typography/modern';
|
|
15
|
-
import '../components/header/component.js';
|
|
16
|
-
import '../countdown-section-7331d9e5.js';
|
|
17
|
-
import '@alfalab/core-components-button/modern';
|
|
18
|
-
import '@alfalab/core-components-spinner/modern';
|
|
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';
|
package/modern/index.js
CHANGED
|
@@ -1,25 +1,2 @@
|
|
|
1
1
|
export { ConfirmationResponsive as Confirmation } from './component.responsive.js';
|
|
2
2
|
export { useConfirmation, useCountdown } from './utils.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '@alfalab/core-components-mq/modern';
|
|
5
|
-
import './desktop/component.desktop.js';
|
|
6
|
-
import './components/base-confirmation/component.js';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import '@alfalab/hooks';
|
|
9
|
-
import './context.js';
|
|
10
|
-
import './types.js';
|
|
11
|
-
import './components/screens/initial/component.js';
|
|
12
|
-
import '@alfalab/core-components-button/modern/mobile';
|
|
13
|
-
import '@alfalab/core-components-code-input/modern/desktop';
|
|
14
|
-
import '@alfalab/core-components-code-input/modern/mobile';
|
|
15
|
-
import '@alfalab/core-components-link/modern';
|
|
16
|
-
import '@alfalab/core-components-typography/modern';
|
|
17
|
-
import './components/header/component.js';
|
|
18
|
-
import './countdown-section-7331d9e5.js';
|
|
19
|
-
import '@alfalab/core-components-button/modern';
|
|
20
|
-
import '@alfalab/core-components-spinner/modern';
|
|
21
|
-
import './components/screens/hint/component.js';
|
|
22
|
-
import './components/screens/fatal-error/component.js';
|
|
23
|
-
import './components/screens/temp-block/component.js';
|
|
24
|
-
import './components/countdown-loader/component.js';
|
|
25
|
-
import './mobile/component.mobile.js';
|
|
@@ -1,26 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { BaseConfirmation } from '../components/base-confirmation/component.js';
|
|
4
|
-
import '@alfalab/hooks';
|
|
5
|
-
import '../context.js';
|
|
6
|
-
import '../utils.js';
|
|
7
|
-
import '../types.js';
|
|
8
|
-
import '../components/screens/initial/component.js';
|
|
9
|
-
import '@alfalab/core-components-button/modern/mobile';
|
|
10
|
-
import '@alfalab/core-components-code-input/modern/desktop';
|
|
11
|
-
import '@alfalab/core-components-code-input/modern/mobile';
|
|
12
|
-
import '@alfalab/core-components-link/modern';
|
|
13
|
-
import '@alfalab/core-components-typography/modern';
|
|
14
|
-
import '../components/header/component.js';
|
|
15
|
-
import '../countdown-section-7331d9e5.js';
|
|
16
|
-
import '@alfalab/core-components-button/modern';
|
|
17
|
-
import '@alfalab/core-components-spinner/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
4
|
|
|
23
|
-
const styles = {"container":"
|
|
5
|
+
const styles = {"container":"confirmation__container_1ttvw"};
|
|
24
6
|
require('./mobile.css')
|
|
25
7
|
|
|
26
8
|
const ConfirmationMobile = ({ className, ...resProps }) => (React.createElement(BaseConfirmation, { mobile: true, className: cn(className, styles.container), ...resProps }));
|
package/modern/mobile/index.js
CHANGED
|
@@ -1,22 +1,2 @@
|
|
|
1
1
|
export { ConfirmationMobile } from './component.mobile.js';
|
|
2
2
|
export { useConfirmation, useCountdown } from '../utils.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '../components/base-confirmation/component.js';
|
|
6
|
-
import '@alfalab/hooks';
|
|
7
|
-
import '../context.js';
|
|
8
|
-
import '../types.js';
|
|
9
|
-
import '../components/screens/initial/component.js';
|
|
10
|
-
import '@alfalab/core-components-button/modern/mobile';
|
|
11
|
-
import '@alfalab/core-components-code-input/modern/desktop';
|
|
12
|
-
import '@alfalab/core-components-code-input/modern/mobile';
|
|
13
|
-
import '@alfalab/core-components-link/modern';
|
|
14
|
-
import '@alfalab/core-components-typography/modern';
|
|
15
|
-
import '../components/header/component.js';
|
|
16
|
-
import '../countdown-section-7331d9e5.js';
|
|
17
|
-
import '@alfalab/core-components-button/modern';
|
|
18
|
-
import '@alfalab/core-components-spinner/modern';
|
|
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';
|
package/modern/mobile/mobile.css
CHANGED
package/modern/shared/index.js
CHANGED
|
@@ -6,15 +6,3 @@ export { CountdownLoader } from '../components/countdown-loader/component.js';
|
|
|
6
6
|
export { ConfirmationContext } from '../context.js';
|
|
7
7
|
export { defaultTexts } from '../types.js';
|
|
8
8
|
export { ONE_DAY, ONE_MINUTE, formatMsAsMinutes } from '../utils.js';
|
|
9
|
-
import 'react';
|
|
10
|
-
import 'classnames';
|
|
11
|
-
import '@alfalab/core-components-button/modern/mobile';
|
|
12
|
-
import '@alfalab/core-components-code-input/modern/desktop';
|
|
13
|
-
import '@alfalab/core-components-code-input/modern/mobile';
|
|
14
|
-
import '@alfalab/core-components-link/modern';
|
|
15
|
-
import '@alfalab/core-components-typography/modern';
|
|
16
|
-
import '@alfalab/hooks';
|
|
17
|
-
import '../components/header/component.js';
|
|
18
|
-
import '../countdown-section-7331d9e5.js';
|
|
19
|
-
import '@alfalab/core-components-button/modern';
|
|
20
|
-
import '@alfalab/core-components-spinner/modern';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-confirmation",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.4",
|
|
4
4
|
"description": "Sms confirmation component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@alfalab/core-components-button": "^11.
|
|
14
|
+
"@alfalab/core-components-button": "^11.2.0",
|
|
15
15
|
"@alfalab/core-components-code-input": "^3.2.0",
|
|
16
16
|
"@alfalab/core-components-link": "^5.2.0",
|
|
17
17
|
"@alfalab/core-components-spinner": "^3.2.0",
|
|
18
|
-
"@alfalab/core-components-typography": "^4.
|
|
18
|
+
"@alfalab/core-components-typography": "^4.5.0",
|
|
19
19
|
"@alfalab/core-components-mq": "^4.2.0",
|
|
20
20
|
"@alfalab/hooks": "^1.13.0",
|
|
21
21
|
"classnames": "^2.3.1",
|
package/shared/index.js
CHANGED
|
@@ -10,18 +10,6 @@ var components_countdownLoader_component = require('../components/countdown-load
|
|
|
10
10
|
var context = require('../context.js');
|
|
11
11
|
var types = require('../types.js');
|
|
12
12
|
var utils = require('../utils.js');
|
|
13
|
-
require('react');
|
|
14
|
-
require('classnames');
|
|
15
|
-
require('@alfalab/core-components-button/mobile');
|
|
16
|
-
require('@alfalab/core-components-code-input/desktop');
|
|
17
|
-
require('@alfalab/core-components-code-input/mobile');
|
|
18
|
-
require('@alfalab/core-components-link');
|
|
19
|
-
require('@alfalab/core-components-typography');
|
|
20
|
-
require('@alfalab/hooks');
|
|
21
|
-
require('../components/header/component.js');
|
|
22
|
-
require('../countdown-section-bfcf66d3.js');
|
|
23
|
-
require('@alfalab/core-components-button');
|
|
24
|
-
require('@alfalab/core-components-spinner');
|
|
25
13
|
|
|
26
14
|
|
|
27
15
|
|
|
@@ -161,13 +161,15 @@ export const Initial: FC<InitialProps> = ({ mobile }) => {
|
|
|
161
161
|
<div className={cn(styles.component, styles[alignContent])}>
|
|
162
162
|
<Header mobile={mobile}>{texts.title}</Header>
|
|
163
163
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
{phone ? (
|
|
165
|
+
<Typography.Text
|
|
166
|
+
view='primary-medium'
|
|
167
|
+
color='primary'
|
|
168
|
+
className={cn(styles.phone, { [styles.typographyTheme]: !mobile })}
|
|
169
|
+
>
|
|
170
|
+
Код отправлен на {phone}
|
|
171
|
+
</Typography.Text>
|
|
172
|
+
) : null}
|
|
171
173
|
<ComponentCodeInput
|
|
172
174
|
disabled={processing}
|
|
173
175
|
error={getCodeInputError()}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|