@alfalab/core-components-confirmation 13.4.1 → 13.5.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/components/base-confirmation/component.js +3 -2
- package/components/base-confirmation/index.css +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/screens/fatal-error/component.js +1 -1
- package/components/screens/fatal-error/index.css +6 -6
- package/components/screens/hint/component.js +1 -1
- package/components/screens/hint/index.css +12 -13
- package/components/screens/initial/component.js +2 -2
- package/components/screens/initial/countdown-section.js +1 -1
- package/components/screens/initial/index.css +20 -17
- package/components/screens/temp-block/component.js +1 -1
- package/components/screens/temp-block/index.css +7 -7
- package/{countdown-section-c7b95621.js → countdown-section-7f7c287b.js} +1 -1
- package/cssm/components/base-confirmation/component.js +2 -1
- package/cssm/components/screens/hint/index.module.css +0 -1
- package/cssm/components/screens/initial/component.js +1 -1
- package/cssm/components/screens/initial/index.module.css +3 -0
- package/esm/components/base-confirmation/component.js +4 -3
- package/esm/components/base-confirmation/index.css +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/screens/fatal-error/component.js +1 -1
- package/esm/components/screens/fatal-error/index.css +6 -6
- package/esm/components/screens/hint/component.js +1 -1
- package/esm/components/screens/hint/index.css +12 -13
- package/esm/components/screens/initial/component.js +2 -2
- package/esm/components/screens/initial/countdown-section.js +1 -1
- package/esm/components/screens/initial/index.css +20 -17
- package/esm/components/screens/temp-block/component.js +1 -1
- package/esm/components/screens/temp-block/index.css +7 -7
- package/esm/{countdown-section-b0eafcff.js → countdown-section-9d180970.js} +1 -1
- package/esm/mobile/component.mobile.js +1 -1
- package/esm/mobile/mobile.css +2 -2
- package/mobile/component.mobile.js +1 -1
- package/mobile/mobile.css +2 -2
- package/modern/components/base-confirmation/component.js +4 -3
- package/modern/components/base-confirmation/index.css +2 -2
- 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/screens/fatal-error/component.js +1 -1
- package/modern/components/screens/fatal-error/index.css +6 -6
- package/modern/components/screens/hint/component.js +1 -1
- package/modern/components/screens/hint/index.css +12 -13
- package/modern/components/screens/initial/component.js +2 -2
- package/modern/components/screens/initial/countdown-section.js +1 -1
- package/modern/components/screens/initial/index.css +20 -17
- package/modern/components/screens/temp-block/component.js +1 -1
- package/modern/components/screens/temp-block/index.css +7 -7
- package/modern/{countdown-section-0eefd440.js → countdown-section-c4e32e68.js} +1 -1
- package/modern/mobile/component.mobile.js +1 -1
- package/modern/mobile/mobile.css +2 -2
- package/package.json +2 -2
- package/src/components/base-confirmation/component.tsx +7 -2
- package/src/components/screens/hint/index.module.css +0 -1
- package/src/components/screens/initial/component.tsx +6 -1
- package/src/components/screens/initial/index.module.css +4 -0
- /package/{countdown-section-c7b95621.d.ts → countdown-section-7f7c287b.d.ts} +0 -0
- /package/esm/{countdown-section-b0eafcff.d.ts → countdown-section-9d180970.d.ts} +0 -0
- /package/modern/{countdown-section-0eefd440.d.ts → countdown-section-c4e32e68.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 12cmv */
|
|
2
2
|
:root { /* 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 */ /* 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 */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e;
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
25
25
|
sans-serif;
|
|
26
26
|
} :root {
|
|
27
|
+
--size-xs-height: 40px;
|
|
27
28
|
} :root {
|
|
28
29
|
/* desktop */
|
|
29
30
|
|
|
@@ -37,49 +38,51 @@
|
|
|
37
38
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
38
39
|
|
|
39
40
|
/* header */
|
|
40
|
-
} .
|
|
41
|
+
} .confirmation__component_1ul2b {
|
|
41
42
|
display: flex;
|
|
42
43
|
flex-direction: column;
|
|
43
|
-
} .
|
|
44
|
+
} .confirmation__typographyTheme_1ul2b.confirmation__typographyTheme_1ul2b {
|
|
44
45
|
font-size: var(--confirmation-text-font-size);
|
|
45
46
|
line-height: var(--confirmation-text-line-height);
|
|
46
47
|
font-weight: var(--confirmation-text-font-weight);
|
|
47
48
|
font-family: var(--confirmation-text-font-family);
|
|
48
49
|
color: var(--confirmation-text-color);
|
|
49
|
-
} .
|
|
50
|
+
} .confirmation__phone_1ul2b.confirmation__phone_1ul2b {
|
|
50
51
|
color: var(--color-light-text-primary);
|
|
51
52
|
margin-bottom: var(--gap-2xl);
|
|
52
|
-
} .
|
|
53
|
+
} .confirmation__compact_1ul2b {
|
|
53
54
|
margin-bottom: var(--gap-xl);
|
|
54
|
-
} .
|
|
55
|
+
} .confirmation__loaderWrap_1ul2b {
|
|
55
56
|
display: flex;
|
|
56
57
|
align-items: center;
|
|
57
|
-
} .
|
|
58
|
+
} .confirmation__left_1ul2b {
|
|
58
59
|
align-items: flex-start;
|
|
59
|
-
} .
|
|
60
|
+
} .confirmation__center_1ul2b {
|
|
60
61
|
align-items: center;
|
|
61
62
|
text-align: center
|
|
62
|
-
} .
|
|
63
|
+
} .confirmation__center_1ul2b .confirmation__loaderWrap_1ul2b {
|
|
63
64
|
justify-content: center;
|
|
64
|
-
} .
|
|
65
|
+
} .confirmation__codeInput_1ul2b {
|
|
65
66
|
margin-bottom: var(--gap-s);
|
|
66
|
-
} .
|
|
67
|
+
} .confirmation__smsBtn_1ul2b.confirmation__smsBtn_1ul2b {
|
|
68
|
+
min-height: var(--size-xs-height);
|
|
69
|
+
} .confirmation__smsComeLink_1ul2b.confirmation__smsComeLink_1ul2b {
|
|
67
70
|
font-size: 14px;
|
|
68
71
|
line-height: 20px;
|
|
69
72
|
font-weight: 500;
|
|
70
|
-
} .
|
|
73
|
+
} .confirmation__countdownContainer_1ul2b.confirmation__countdownContainer_1ul2b {
|
|
71
74
|
color: var(--color-light-text-secondary);
|
|
72
75
|
margin-bottom: var(--gap-xl);
|
|
73
|
-
} .
|
|
76
|
+
} .confirmation__countdownMobile_1ul2b.confirmation__countdownMobile_1ul2b {
|
|
74
77
|
margin-bottom: var(--gap-l);
|
|
75
|
-
} .
|
|
78
|
+
} .confirmation__countdownLoaderMobile_1ul2b.confirmation__countdownLoaderMobile_1ul2b {
|
|
76
79
|
margin-bottom: var(--gap-m);
|
|
77
|
-
} .
|
|
80
|
+
} .confirmation__getCodeButton_1ul2b {
|
|
78
81
|
position: relative;
|
|
79
82
|
top: var(--gap-2xs-neg);
|
|
80
83
|
margin-bottom: var(--gap-m);
|
|
81
|
-
} .
|
|
84
|
+
} .confirmation__getCodeButtonMobile_1ul2b {
|
|
82
85
|
margin-bottom: 0;
|
|
83
|
-
} .
|
|
86
|
+
} .confirmation__containerInput_1ul2b {
|
|
84
87
|
min-height: 80px;
|
|
85
88
|
}
|
|
@@ -6,7 +6,7 @@ import { useCountdown, formatMsAsMinutes } from '../../../utils.js';
|
|
|
6
6
|
import { CountdownLoader } from '../../countdown-loader/component.js';
|
|
7
7
|
import { Header } from '../../header/component.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"component":"
|
|
9
|
+
const styles = {"component":"confirmation__component_f6zso","center":"confirmation__center_f6zso","typographyTheme":"confirmation__typographyTheme_f6zso","description":"confirmation__description_f6zso","countdownWrap":"confirmation__countdownWrap_f6zso","loader":"confirmation__loader_f6zso"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const TempBlock = ({ mobile }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wwsqb */
|
|
2
2
|
:root { /* 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 */ /* 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 */
|
|
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_f6zso {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
|
-
} .
|
|
37
|
+
} .confirmation__center_f6zso {
|
|
38
38
|
align-items: center;
|
|
39
39
|
text-align: center;
|
|
40
|
-
} .
|
|
40
|
+
} .confirmation__typographyTheme_f6zso.confirmation__typographyTheme_f6zso {
|
|
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_f6zso.confirmation__description_f6zso {
|
|
47
47
|
margin-bottom: var(--gap-xs);
|
|
48
|
-
} .
|
|
48
|
+
} .confirmation__countdownWrap_f6zso {
|
|
49
49
|
display: flex;
|
|
50
50
|
align-items: center;
|
|
51
|
-
} .
|
|
51
|
+
} .confirmation__loader_f6zso {
|
|
52
52
|
margin-right: var(--gap-xs);
|
|
53
53
|
}
|
|
@@ -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_1ul2b","typographyTheme":"confirmation__typographyTheme_1ul2b","phone":"confirmation__phone_1ul2b","compact":"confirmation__compact_1ul2b","loaderWrap":"confirmation__loaderWrap_1ul2b","left":"confirmation__left_1ul2b","center":"confirmation__center_1ul2b","codeInput":"confirmation__codeInput_1ul2b","smsBtn":"confirmation__smsBtn_1ul2b","smsComeLink":"confirmation__smsComeLink_1ul2b","countdownContainer":"confirmation__countdownContainer_1ul2b","countdownMobile":"confirmation__countdownMobile_1ul2b","countdownLoaderMobile":"confirmation__countdownLoaderMobile_1ul2b","getCodeButton":"confirmation__getCodeButton_1ul2b","getCodeButtonMobile":"confirmation__getCodeButtonMobile_1ul2b","containerInput":"confirmation__containerInput_1ul2b"};
|
|
10
10
|
require('./components/screens/initial/index.css')
|
|
11
11
|
|
|
12
12
|
const CountdownSection = ({ codeSendHintVisible, timePassed, processing, mobile, handleSmsRetryClick, }) => {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { BaseConfirmation } from '../components/base-confirmation/component.js';
|
|
4
4
|
|
|
5
|
-
const styles = {"container":"
|
|
5
|
+
const styles = {"container":"confirmation__container_1bvr4"};
|
|
6
6
|
require('./mobile.css')
|
|
7
7
|
|
|
8
8
|
const ConfirmationMobile = ({ className, ...resProps }) => (React.createElement(BaseConfirmation, { mobile: true, className: cn(className, styles.container), ...resProps }));
|
package/modern/mobile/mobile.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-confirmation",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.1",
|
|
4
4
|
"description": "Sms confirmation component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@alfalab/core-components-button": "^11.4.
|
|
14
|
+
"@alfalab/core-components-button": "^11.4.1",
|
|
15
15
|
"@alfalab/core-components-code-input": "^3.3.0",
|
|
16
16
|
"@alfalab/core-components-link": "^5.2.1",
|
|
17
17
|
"@alfalab/core-components-spinner": "^3.3.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ComponentType, FC, useEffect } from 'react';
|
|
1
|
+
import React, { ComponentType, FC, useEffect, useMemo } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
4
|
import { usePrevious } from '@alfalab/hooks';
|
|
@@ -113,7 +113,12 @@ export const BaseConfirmation: FC<ConfirmationProps> = ({
|
|
|
113
113
|
onFatalErrorOkButtonClick: handleFatalErrorOkButtonClick,
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
const
|
|
116
|
+
const customScreen = useMemo(
|
|
117
|
+
() => getScreensMap && getScreensMap(confirmationScreens),
|
|
118
|
+
[getScreensMap],
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
const screensMap = customScreen || confirmationScreens;
|
|
117
122
|
|
|
118
123
|
const CurrentScreen = screensMap[screen];
|
|
119
124
|
|
|
@@ -134,7 +134,12 @@ export const Initial: FC<InitialProps> = ({ mobile }) => {
|
|
|
134
134
|
|
|
135
135
|
if (mobile) {
|
|
136
136
|
return (
|
|
137
|
-
<ButtonMobile
|
|
137
|
+
<ButtonMobile
|
|
138
|
+
onClick={handleSmsHintLinkClick}
|
|
139
|
+
className={styles.smsBtn}
|
|
140
|
+
view='text'
|
|
141
|
+
size='xs'
|
|
142
|
+
>
|
|
138
143
|
{texts.linkToHint}
|
|
139
144
|
</ButtonMobile>
|
|
140
145
|
);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|