@alfalab/core-components-confirmation 13.7.0 → 13.7.2
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 +1 -1
- package/components/base-confirmation/index.css +4 -3
- 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 +5 -5
- package/components/screens/fatal-error/component.js +5 -2
- package/components/screens/fatal-error/index.css +11 -8
- package/components/screens/hint/component.js +26 -12
- package/components/screens/hint/index.css +20 -16
- package/components/screens/initial/component.js +5 -2
- package/components/screens/initial/countdown-section.js +1 -1
- package/components/screens/initial/index.css +25 -22
- package/components/screens/temp-block/component.js +5 -2
- package/components/screens/temp-block/index.css +12 -9
- package/{countdown-section-17d446a6.js → countdown-section-a5f6bb10.js} +1 -1
- package/cssm/components/base-confirmation/index.module.css +3 -2
- package/cssm/components/countdown-loader/index.module.css +1 -1
- package/cssm/components/header/index.module.css +1 -1
- package/cssm/components/screens/fatal-error/component.js +4 -1
- package/cssm/components/screens/fatal-error/index.module.css +5 -2
- package/cssm/components/screens/hint/component.js +25 -11
- package/cssm/components/screens/hint/index.module.css +8 -4
- package/cssm/components/screens/initial/component.js +4 -1
- package/cssm/components/screens/initial/index.module.css +8 -5
- package/cssm/components/screens/temp-block/component.js +4 -1
- package/cssm/components/screens/temp-block/index.module.css +5 -2
- package/cssm/vars.css +1 -1
- package/esm/components/base-confirmation/component.js +1 -1
- package/esm/components/base-confirmation/index.css +4 -3
- 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 +5 -5
- package/esm/components/screens/fatal-error/component.js +5 -2
- package/esm/components/screens/fatal-error/index.css +11 -8
- package/esm/components/screens/hint/component.js +26 -12
- package/esm/components/screens/hint/index.css +20 -16
- package/esm/components/screens/initial/component.js +5 -2
- package/esm/components/screens/initial/countdown-section.js +1 -1
- package/esm/components/screens/initial/index.css +25 -22
- package/esm/components/screens/temp-block/component.js +5 -2
- package/esm/components/screens/temp-block/index.css +12 -9
- package/esm/{countdown-section-c5b45e8c.js → countdown-section-b8f38cc5.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 +1 -1
- package/modern/components/base-confirmation/index.css +4 -3
- 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 +5 -5
- package/modern/components/screens/fatal-error/component.js +5 -2
- package/modern/components/screens/fatal-error/index.css +11 -8
- package/modern/components/screens/hint/component.js +22 -8
- package/modern/components/screens/hint/index.css +20 -16
- package/modern/components/screens/initial/component.js +5 -2
- package/modern/components/screens/initial/countdown-section.js +1 -1
- package/modern/components/screens/initial/index.css +25 -22
- package/modern/components/screens/temp-block/component.js +5 -2
- package/modern/components/screens/temp-block/index.css +12 -9
- package/modern/{countdown-section-b9145aea.js → countdown-section-6a5a1fb2.js} +1 -1
- package/modern/mobile/component.mobile.js +1 -1
- package/modern/mobile/mobile.css +2 -2
- package/moderncssm/components/base-confirmation/index.module.css +1 -1
- package/moderncssm/components/screens/fatal-error/component.js +4 -1
- package/moderncssm/components/screens/fatal-error/index.module.css +4 -0
- package/moderncssm/components/screens/hint/component.js +21 -7
- package/moderncssm/components/screens/hint/index.module.css +6 -2
- package/moderncssm/components/screens/initial/component.js +4 -1
- package/moderncssm/components/screens/initial/index.module.css +8 -4
- package/moderncssm/components/screens/temp-block/component.js +4 -1
- package/moderncssm/components/screens/temp-block/index.module.css +4 -0
- package/package.json +7 -7
- package/src/components/base-confirmation/index.module.css +1 -1
- package/src/components/screens/fatal-error/component.tsx +4 -1
- package/src/components/screens/fatal-error/index.module.css +4 -0
- package/src/components/screens/hint/component.tsx +31 -7
- package/src/components/screens/hint/index.module.css +6 -2
- package/src/components/screens/initial/component.tsx +4 -1
- package/src/components/screens/initial/index.module.css +8 -4
- package/src/components/screens/temp-block/component.tsx +4 -1
- package/src/components/screens/temp-block/index.module.css +4 -0
- /package/{countdown-section-17d446a6.d.ts → countdown-section-a5f6bb10.d.ts} +0 -0
- /package/esm/{countdown-section-c5b45e8c.d.ts → countdown-section-b8f38cc5.d.ts} +0 -0
- /package/modern/{countdown-section-b9145aea.d.ts → countdown-section-6a5a1fb2.d.ts} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4s6q7 */
|
|
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
|
-
--color-light-text-primary: rgba(3, 3, 6, 0.88);
|
|
4
|
+
--color-light-text-primary: rgba(3, 3, 6, 0.88);
|
|
5
|
+
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
6
|
} :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 */ /* 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 */
|
|
6
7
|
} :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 */
|
|
7
8
|
} :root {
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
24
25
|
sans-serif;
|
|
25
26
|
} :root {
|
|
26
|
-
} :root {
|
|
27
|
+
} /* сбрасывает синюю подсветку при нажатии */ :root {
|
|
27
28
|
/* desktop */
|
|
28
29
|
|
|
29
30
|
/* mobile */
|
|
@@ -36,23 +37,25 @@
|
|
|
36
37
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
37
38
|
|
|
38
39
|
/* header */
|
|
39
|
-
} .
|
|
40
|
+
} .confirmation__component_g4rg6 {
|
|
40
41
|
display: flex;
|
|
41
42
|
flex-direction: column;
|
|
42
|
-
} .
|
|
43
|
+
} .confirmation__center_g4rg6 {
|
|
43
44
|
align-items: center;
|
|
44
45
|
text-align: center;
|
|
45
|
-
} .
|
|
46
|
+
} .confirmation__typographyTheme_g4rg6.confirmation__typographyTheme_g4rg6 {
|
|
46
47
|
font-size: var(--confirmation-text-font-size);
|
|
47
48
|
line-height: var(--confirmation-text-line-height);
|
|
48
49
|
font-weight: var(--confirmation-text-font-weight);
|
|
49
50
|
font-family: var(--confirmation-text-font-family);
|
|
50
51
|
color: var(--confirmation-text-color);
|
|
51
|
-
} .
|
|
52
|
+
} .confirmation__typographyThemeMobile_g4rg6.confirmation__typographyThemeMobile_g4rg6 {
|
|
53
|
+
color: var(--color-light-text-secondary);
|
|
54
|
+
} .confirmation__description_g4rg6.confirmation__description_g4rg6 {
|
|
52
55
|
margin-bottom: var(--gap-8);
|
|
53
|
-
} .
|
|
56
|
+
} .confirmation__countdownWrap_g4rg6 {
|
|
54
57
|
display: flex;
|
|
55
58
|
align-items: center;
|
|
56
|
-
} .
|
|
59
|
+
} .confirmation__loader_g4rg6 {
|
|
57
60
|
margin-right: var(--gap-8);
|
|
58
61
|
}
|
|
@@ -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_2vqc5","phone":"confirmation__phone_2vqc5","typographyTheme":"confirmation__typographyTheme_2vqc5","typographyThemeMobile":"confirmation__typographyThemeMobile_2vqc5","compact":"confirmation__compact_2vqc5","loaderWrap":"confirmation__loaderWrap_2vqc5","left":"confirmation__left_2vqc5","center":"confirmation__center_2vqc5","codeInput":"confirmation__codeInput_2vqc5","smsBtn":"confirmation__smsBtn_2vqc5","smsComeLink":"confirmation__smsComeLink_2vqc5","countdownContainer":"confirmation__countdownContainer_2vqc5","countdownMobile":"confirmation__countdownMobile_2vqc5","countdownLoaderMobile":"confirmation__countdownLoaderMobile_2vqc5","getCodeButton":"confirmation__getCodeButton_2vqc5","getCodeButtonMobile":"confirmation__getCodeButtonMobile_2vqc5","containerInput":"confirmation__containerInput_2vqc5"};
|
|
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_17tjq"};
|
|
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
|
@@ -10,7 +10,10 @@ const FatalError = ({ mobile }) => {
|
|
|
10
10
|
const { alignContent, texts, onFatalErrorOkButtonClick, breakpoint } = useContext(ConfirmationContext);
|
|
11
11
|
return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
|
|
12
12
|
React.createElement(Header, { mobile: mobile }, texts.fatalErrorTitle),
|
|
13
|
-
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn({
|
|
13
|
+
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn({
|
|
14
|
+
[styles.typographyTheme]: !mobile,
|
|
15
|
+
[styles.typographyThemeMobile]: mobile,
|
|
16
|
+
}) }, texts.fatalErrorDescription),
|
|
14
17
|
React.createElement(Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: onFatalErrorOkButtonClick, className: styles.button, breakpoint: breakpoint }, texts.fatalErrorButton)));
|
|
15
18
|
};
|
|
16
19
|
|
|
@@ -15,19 +15,33 @@ const Hint = ({ mobile }) => {
|
|
|
15
15
|
};
|
|
16
16
|
return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
|
|
17
17
|
React.createElement(Header, { mobile: mobile }, "\u041D\u0435\u00A0\u043F\u0440\u0438\u0445\u043E\u0434\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435?"),
|
|
18
|
-
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
|
|
19
|
-
|
|
18
|
+
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
|
|
19
|
+
[styles.typographyTheme]: !mobile,
|
|
20
|
+
[styles.typographyThemeMobile]: mobile,
|
|
21
|
+
}) }, "\u0415\u0441\u043B\u0438 \u0443\u00A0\u0432\u0430\u0441 \u0438\u0437\u043C\u0435\u043D\u0438\u043B\u0441\u044F \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430, \u043F\u043E\u0437\u0432\u043E\u043D\u0438\u0442\u0435 \u043D\u0430\u043C \u0438\u043B\u0438 \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432\u00A0\u043B\u044E\u0431\u043E\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430."),
|
|
22
|
+
React.createElement("div", { className: cn(styles.phonesWrap, {
|
|
23
|
+
[styles.phonesWrapMobile]: mobile,
|
|
24
|
+
}) },
|
|
20
25
|
React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
|
|
21
|
-
React.createElement(Link, { href: 'tel:+78002000000', underline: false, className: styles.phoneLink }, "8 800 200 00 00"),
|
|
22
|
-
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
|
|
26
|
+
React.createElement(Link, { href: 'tel:+78002000000', underline: false, className: cn(styles.phoneLink, { [styles.typographyThemeMobile]: mobile }) }, "8 800 200 00 00"),
|
|
27
|
+
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
|
|
28
|
+
[styles.typographyTheme]: !mobile,
|
|
29
|
+
[styles.typographyThemeMobile]: mobile,
|
|
30
|
+
}) }, mobile
|
|
23
31
|
? 'Для\u00A0звонков по\u00A0России'
|
|
24
32
|
: ' \u2014\u00A0для звонков по\u00A0России')),
|
|
25
33
|
React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
|
|
26
|
-
React.createElement(Link, { href: 'tel:+74957888878', underline: false, className: styles.phoneLink }, "+7 495 78 888 78"),
|
|
27
|
-
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
|
|
34
|
+
React.createElement(Link, { href: 'tel:+74957888878', underline: false, className: cn(styles.phoneLink, { [styles.typographyThemeMobile]: mobile }) }, "+7 495 78 888 78"),
|
|
35
|
+
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
|
|
36
|
+
[styles.typographyTheme]: !mobile,
|
|
37
|
+
[styles.typographyThemeMobile]: mobile,
|
|
38
|
+
}) }, mobile
|
|
28
39
|
? 'В\u00A0Москве и\u00A0за\u00A0границей'
|
|
29
40
|
: ' \u2014\u00A0в\u00A0Москве и\u00A0за\u00A0границей'))),
|
|
30
|
-
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
|
|
41
|
+
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
|
|
42
|
+
[styles.typographyTheme]: !mobile,
|
|
43
|
+
[styles.typographyThemeMobile]: mobile,
|
|
44
|
+
}) }, "\u0415\u0441\u043B\u0438 \u043D\u043E\u043C\u0435\u0440 \u043D\u0435\u00A0\u043C\u0435\u043D\u044F\u043B\u0441\u044F, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D \u0441\u0435\u0440\u0432\u0438\u0441 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0438\u043D\u0443\u0442."),
|
|
31
45
|
React.createElement(Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton, breakpoint: breakpoint }, texts.hintButton)));
|
|
32
46
|
};
|
|
33
47
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.component span:last-of-type {
|
|
25
|
-
margin-bottom: 0;
|
|
25
|
+
margin-bottom: var(--gap-0);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.center {
|
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
color: var(--confirmation-text-color);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
.typographyThemeMobile.typographyThemeMobile {
|
|
46
|
+
color: var(--color-light-text-secondary);
|
|
47
|
+
}
|
|
48
|
+
|
|
45
49
|
.phonesWrap {
|
|
46
50
|
display: flex;
|
|
47
51
|
flex-direction: column;
|
|
@@ -53,7 +57,7 @@
|
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
.phoneWrap:last-child {
|
|
56
|
-
margin-bottom: 0;
|
|
60
|
+
margin-bottom: var(--gap-0);
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
.phoneLink.phoneLink {
|
|
@@ -91,7 +91,10 @@ const Initial = ({ mobile }) => {
|
|
|
91
91
|
const ComponentCodeInput = mobile ? CodeInputMobile : CodeInputDesktop;
|
|
92
92
|
return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
|
|
93
93
|
React.createElement(Header, { mobile: mobile }, texts.title),
|
|
94
|
-
phone ? (React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.phone, {
|
|
94
|
+
phone ? (React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.phone, {
|
|
95
|
+
[styles.typographyTheme]: !mobile,
|
|
96
|
+
[styles.typographyThemeMobile]: mobile,
|
|
97
|
+
}) },
|
|
95
98
|
"\u041A\u043E\u0434 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D \u043D\u0430 ",
|
|
96
99
|
phone)) : null,
|
|
97
100
|
React.createElement(ComponentCodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, className: cn(styles.containerInput, styles.codeInput), onComplete: handleInputComplete, onChange: handleInputChange, clearCodeOnError: clearCodeOnError, errorVisibleDuration: errorVisibleDuration, onErrorAnimationEnd: handleErrorAnimationEnd }),
|
|
@@ -20,6 +20,11 @@
|
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.phone.phone {
|
|
24
|
+
color: var(--color-light-text-primary);
|
|
25
|
+
margin-bottom: var(--gap-32);
|
|
26
|
+
}
|
|
27
|
+
|
|
23
28
|
.typographyTheme.typographyTheme {
|
|
24
29
|
font-size: var(--confirmation-text-font-size);
|
|
25
30
|
line-height: var(--confirmation-text-line-height);
|
|
@@ -28,9 +33,8 @@
|
|
|
28
33
|
color: var(--confirmation-text-color);
|
|
29
34
|
}
|
|
30
35
|
|
|
31
|
-
.
|
|
32
|
-
color: var(--color-light-text-
|
|
33
|
-
margin-bottom: var(--gap-32);
|
|
36
|
+
.typographyThemeMobile.typographyThemeMobile {
|
|
37
|
+
color: var(--color-light-text-secondary);
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
.compact {
|
|
@@ -89,7 +93,7 @@
|
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
.getCodeButtonMobile {
|
|
92
|
-
margin-bottom: 0;
|
|
96
|
+
margin-bottom: var(--gap-0);
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
.containerInput {
|
|
@@ -20,7 +20,10 @@ const TempBlock = ({ mobile }) => {
|
|
|
20
20
|
}, [timeLeft, onChangeScreen, onTempBlockFinished]);
|
|
21
21
|
return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
|
|
22
22
|
React.createElement(Header, { mobile: mobile }, texts.tempBlockTitle),
|
|
23
|
-
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.description, {
|
|
23
|
+
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.description, {
|
|
24
|
+
[styles.typographyTheme]: !mobile,
|
|
25
|
+
[styles.typographyThemeMobile]: mobile,
|
|
26
|
+
}) }, texts.tempBlockDescription),
|
|
24
27
|
React.createElement("div", { className: cn(styles.countdownWrap, { [styles.typographyTheme]: !mobile }) },
|
|
25
28
|
React.createElement(CountdownLoader, { progress: 1 - timeLeft / tempBlockDuration, className: styles.loader }),
|
|
26
29
|
formatMsAsMinutes(timeLeft))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-confirmation",
|
|
3
|
-
"version": "13.7.
|
|
3
|
+
"version": "13.7.2",
|
|
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.
|
|
15
|
-
"@alfalab/core-components-code-input": "^3.
|
|
16
|
-
"@alfalab/core-components-link": "^5.3.
|
|
14
|
+
"@alfalab/core-components-button": "^11.7.1",
|
|
15
|
+
"@alfalab/core-components-code-input": "^3.6.0",
|
|
16
|
+
"@alfalab/core-components-link": "^5.3.1",
|
|
17
17
|
"@alfalab/core-components-spinner": "^3.5.0",
|
|
18
|
-
"@alfalab/core-components-typography": "^4.10.
|
|
18
|
+
"@alfalab/core-components-typography": "^4.10.1",
|
|
19
19
|
"@alfalab/core-components-mq": "^4.3.0",
|
|
20
20
|
"@alfalab/hooks": "^1.13.0",
|
|
21
21
|
"classnames": "^2.3.1",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
26
26
|
},
|
|
27
|
-
"themesVersion": "13.
|
|
28
|
-
"varsVersion": "9.
|
|
27
|
+
"themesVersion": "13.2.0",
|
|
28
|
+
"varsVersion": "9.13.1"
|
|
29
29
|
}
|
|
@@ -27,7 +27,10 @@ export const FatalError: FC<FatalErrorProps> = ({ mobile }) => {
|
|
|
27
27
|
<Typography.Text
|
|
28
28
|
view='primary-medium'
|
|
29
29
|
color='primary'
|
|
30
|
-
className={cn({
|
|
30
|
+
className={cn({
|
|
31
|
+
[styles.typographyTheme]: !mobile,
|
|
32
|
+
[styles.typographyThemeMobile]: mobile,
|
|
33
|
+
})}
|
|
31
34
|
>
|
|
32
35
|
{texts.fatalErrorDescription}
|
|
33
36
|
</Typography.Text>
|
|
@@ -33,21 +33,35 @@ export const Hint: FC<HintProps> = ({ mobile }) => {
|
|
|
33
33
|
<Typography.Text
|
|
34
34
|
view='primary-medium'
|
|
35
35
|
color='primary'
|
|
36
|
-
className={cn(styles.text, {
|
|
36
|
+
className={cn(styles.text, {
|
|
37
|
+
[styles.typographyTheme]: !mobile,
|
|
38
|
+
[styles.typographyThemeMobile]: mobile,
|
|
39
|
+
})}
|
|
37
40
|
>
|
|
38
41
|
Если у вас изменился номер телефона, позвоните нам или обратитесь в любое
|
|
39
42
|
отделение банка.
|
|
40
43
|
</Typography.Text>
|
|
41
44
|
|
|
42
|
-
<div
|
|
45
|
+
<div
|
|
46
|
+
className={cn(styles.phonesWrap, {
|
|
47
|
+
[styles.phonesWrapMobile]: mobile,
|
|
48
|
+
})}
|
|
49
|
+
>
|
|
43
50
|
<div className={cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile })}>
|
|
44
|
-
<Link
|
|
51
|
+
<Link
|
|
52
|
+
href='tel:+78002000000'
|
|
53
|
+
underline={false}
|
|
54
|
+
className={cn(styles.phoneLink, { [styles.typographyThemeMobile]: mobile })}
|
|
55
|
+
>
|
|
45
56
|
8 800 200 00 00
|
|
46
57
|
</Link>
|
|
47
58
|
<Typography.Text
|
|
48
59
|
view='primary-medium'
|
|
49
60
|
color='primary'
|
|
50
|
-
className={cn(styles.text, {
|
|
61
|
+
className={cn(styles.text, {
|
|
62
|
+
[styles.typographyTheme]: !mobile,
|
|
63
|
+
[styles.typographyThemeMobile]: mobile,
|
|
64
|
+
})}
|
|
51
65
|
>
|
|
52
66
|
{mobile
|
|
53
67
|
? 'Для\u00A0звонков по\u00A0России'
|
|
@@ -56,13 +70,20 @@ export const Hint: FC<HintProps> = ({ mobile }) => {
|
|
|
56
70
|
</div>
|
|
57
71
|
|
|
58
72
|
<div className={cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile })}>
|
|
59
|
-
<Link
|
|
73
|
+
<Link
|
|
74
|
+
href='tel:+74957888878'
|
|
75
|
+
underline={false}
|
|
76
|
+
className={cn(styles.phoneLink, { [styles.typographyThemeMobile]: mobile })}
|
|
77
|
+
>
|
|
60
78
|
+7 495 78 888 78
|
|
61
79
|
</Link>
|
|
62
80
|
<Typography.Text
|
|
63
81
|
view='primary-medium'
|
|
64
82
|
color='primary'
|
|
65
|
-
className={cn(styles.text, {
|
|
83
|
+
className={cn(styles.text, {
|
|
84
|
+
[styles.typographyTheme]: !mobile,
|
|
85
|
+
[styles.typographyThemeMobile]: mobile,
|
|
86
|
+
})}
|
|
66
87
|
>
|
|
67
88
|
{mobile
|
|
68
89
|
? 'В\u00A0Москве и\u00A0за\u00A0границей'
|
|
@@ -74,7 +95,10 @@ export const Hint: FC<HintProps> = ({ mobile }) => {
|
|
|
74
95
|
<Typography.Text
|
|
75
96
|
view='primary-medium'
|
|
76
97
|
color='primary'
|
|
77
|
-
className={cn(styles.text, {
|
|
98
|
+
className={cn(styles.text, {
|
|
99
|
+
[styles.typographyTheme]: !mobile,
|
|
100
|
+
[styles.typographyThemeMobile]: mobile,
|
|
101
|
+
})}
|
|
78
102
|
>
|
|
79
103
|
Если номер не менялся, возможно, перегружен сервис отправки сообщений.
|
|
80
104
|
Попробуйте повторить действие через несколько минут.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
align-items: flex-start;
|
|
7
7
|
& span:last-of-type {
|
|
8
|
-
margin-bottom: 0;
|
|
8
|
+
margin-bottom: var(--gap-0);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
@mixin _confirmation-text;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
.typographyThemeMobile.typographyThemeMobile {
|
|
26
|
+
color: var(--color-light-text-secondary);
|
|
27
|
+
}
|
|
28
|
+
|
|
25
29
|
.phonesWrap {
|
|
26
30
|
display: flex;
|
|
27
31
|
flex-direction: column;
|
|
@@ -32,7 +36,7 @@
|
|
|
32
36
|
margin-bottom: var(--gap-8);
|
|
33
37
|
|
|
34
38
|
&:last-child {
|
|
35
|
-
margin-bottom: 0;
|
|
39
|
+
margin-bottom: var(--gap-0);
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
|
|
@@ -171,7 +171,10 @@ export const Initial: FC<InitialProps> = ({ mobile }) => {
|
|
|
171
171
|
<Typography.Text
|
|
172
172
|
view='primary-medium'
|
|
173
173
|
color='primary'
|
|
174
|
-
className={cn(styles.phone, {
|
|
174
|
+
className={cn(styles.phone, {
|
|
175
|
+
[styles.typographyTheme]: !mobile,
|
|
176
|
+
[styles.typographyThemeMobile]: mobile,
|
|
177
|
+
})}
|
|
175
178
|
>
|
|
176
179
|
Код отправлен на {phone}
|
|
177
180
|
</Typography.Text>
|
|
@@ -5,13 +5,17 @@
|
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
.phone.phone {
|
|
9
|
+
color: var(--color-light-text-primary);
|
|
10
|
+
margin-bottom: var(--gap-32);
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
.typographyTheme.typographyTheme {
|
|
9
14
|
@mixin _confirmation-text;
|
|
10
15
|
}
|
|
11
16
|
|
|
12
|
-
.
|
|
13
|
-
color: var(--color-light-text-
|
|
14
|
-
margin-bottom: var(--gap-32);
|
|
17
|
+
.typographyThemeMobile.typographyThemeMobile {
|
|
18
|
+
color: var(--color-light-text-secondary);
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
.compact {
|
|
@@ -67,7 +71,7 @@
|
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
.getCodeButtonMobile {
|
|
70
|
-
margin-bottom: 0;
|
|
74
|
+
margin-bottom: var(--gap-0);
|
|
71
75
|
}
|
|
72
76
|
|
|
73
77
|
.containerInput {
|
|
@@ -40,7 +40,10 @@ export const TempBlock: FC<TempBlockProps> = ({ mobile }) => {
|
|
|
40
40
|
<Typography.Text
|
|
41
41
|
view='primary-medium'
|
|
42
42
|
color='primary'
|
|
43
|
-
className={cn(styles.description, {
|
|
43
|
+
className={cn(styles.description, {
|
|
44
|
+
[styles.typographyTheme]: !mobile,
|
|
45
|
+
[styles.typographyThemeMobile]: mobile,
|
|
46
|
+
})}
|
|
44
47
|
>
|
|
45
48
|
{texts.tempBlockDescription}
|
|
46
49
|
</Typography.Text>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|