@alfalab/core-components-confirmation 13.8.2 → 13.9.0
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.d.ts +5 -0
- package/component.responsive.js +2 -3
- package/components/base-confirmation/component.js +4 -4
- 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 +3 -3
- package/components/screens/fatal-error/index.css +7 -7
- package/components/screens/hint/component.js +7 -5
- package/components/screens/hint/index.css +13 -13
- package/components/screens/initial/component.js +1 -1
- package/components/screens/initial/countdown-section.js +1 -1
- package/components/screens/initial/index.css +19 -19
- package/components/screens/temp-block/component.js +1 -1
- package/components/screens/temp-block/index.css +8 -8
- package/context.js +1 -0
- package/{countdown-section-b633717a.js → countdown-section-d7a44cd1.js} +4 -4
- package/cssm/component.responsive.d.ts +5 -0
- package/cssm/component.responsive.js +2 -3
- package/cssm/components/base-confirmation/component.js +3 -3
- package/cssm/components/screens/fatal-error/component.js +2 -2
- package/cssm/components/screens/hint/component.js +6 -4
- package/cssm/components/screens/initial/countdown-section.js +3 -3
- package/cssm/context.js +1 -0
- package/cssm/types.d.ts +11 -27
- package/cssm/types.js +2 -0
- package/cssm/utils.d.ts +5 -1
- package/cssm/utils.js +8 -0
- package/esm/component.responsive.d.ts +5 -0
- package/esm/component.responsive.js +3 -4
- package/esm/components/base-confirmation/component.js +4 -4
- 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 +3 -3
- package/esm/components/screens/fatal-error/index.css +7 -7
- package/esm/components/screens/hint/component.js +7 -5
- package/esm/components/screens/hint/index.css +13 -13
- package/esm/components/screens/initial/component.js +1 -1
- package/esm/components/screens/initial/countdown-section.js +1 -1
- package/esm/components/screens/initial/index.css +19 -19
- package/esm/components/screens/temp-block/component.js +1 -1
- package/esm/components/screens/temp-block/index.css +8 -8
- package/esm/context.js +1 -0
- package/esm/{countdown-section-88d8eded.js → countdown-section-25714e1f.js} +4 -4
- package/esm/mobile/component.mobile.js +1 -1
- package/esm/mobile/mobile.css +2 -2
- package/esm/types.d.ts +11 -27
- package/esm/types.js +2 -0
- package/esm/utils.d.ts +5 -1
- package/esm/utils.js +8 -1
- package/mobile/component.mobile.js +1 -1
- package/mobile/mobile.css +2 -2
- package/modern/component.responsive.d.ts +5 -0
- package/modern/component.responsive.js +3 -4
- package/modern/components/base-confirmation/component.js +3 -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 +3 -3
- package/modern/components/screens/fatal-error/index.css +7 -7
- package/modern/components/screens/hint/component.js +7 -5
- package/modern/components/screens/hint/index.css +13 -13
- package/modern/components/screens/initial/component.js +1 -1
- package/modern/components/screens/initial/countdown-section.js +1 -1
- package/modern/components/screens/initial/index.css +19 -19
- package/modern/components/screens/temp-block/component.js +1 -1
- package/modern/components/screens/temp-block/index.css +8 -8
- package/modern/context.js +1 -0
- package/modern/{countdown-section-9cd2a918.js → countdown-section-cdcdc727.js} +4 -4
- package/modern/mobile/component.mobile.js +1 -1
- package/modern/mobile/mobile.css +2 -2
- package/modern/types.d.ts +11 -27
- package/modern/types.js +2 -0
- package/modern/utils.d.ts +5 -1
- package/modern/utils.js +8 -1
- package/moderncssm/component.responsive.d.ts +5 -0
- package/moderncssm/component.responsive.js +3 -4
- package/moderncssm/components/base-confirmation/component.js +2 -2
- package/moderncssm/components/screens/fatal-error/component.js +2 -2
- package/moderncssm/components/screens/hint/component.js +6 -4
- package/moderncssm/components/screens/initial/countdown-section.js +3 -3
- package/moderncssm/context.js +1 -0
- package/moderncssm/types.d.ts +11 -27
- package/moderncssm/types.js +2 -0
- package/moderncssm/utils.d.ts +5 -1
- package/moderncssm/utils.js +8 -1
- package/package.json +5 -5
- package/src/component.responsive.tsx +11 -5
- package/src/components/base-confirmation/component.tsx +3 -2
- package/src/components/screens/fatal-error/component.tsx +2 -1
- package/src/components/screens/hint/component.tsx +10 -6
- package/src/components/screens/initial/countdown-section.tsx +4 -2
- package/src/context.ts +1 -0
- package/src/types.ts +15 -11
- package/src/utils.ts +9 -0
- package/types.d.ts +11 -27
- package/types.js +2 -0
- package/utils.d.ts +5 -1
- package/utils.js +8 -0
- /package/{countdown-section-b633717a.d.ts → countdown-section-d7a44cd1.d.ts} +0 -0
- /package/esm/{countdown-section-88d8eded.d.ts → countdown-section-25714e1f.d.ts} +0 -0
- /package/modern/{countdown-section-9cd2a918.d.ts → countdown-section-cdcdc727.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: f312j */
|
|
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-neutral-500: #babbc2; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* новые значения, используйте их */
|
|
20
20
|
} :root {
|
|
21
21
|
} :root {
|
|
22
|
-
} /* сбрасывает синюю подсветку при нажатии */ .
|
|
22
|
+
} /* сбрасывает синюю подсветку при нажатии */ .confirmation__circle_19cn6 {
|
|
23
23
|
fill: transparent;
|
|
24
24
|
stroke: var(--color-light-neutral-500);
|
|
25
25
|
stroke-width: 2px;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
4
4
|
|
|
5
|
-
const styles = {"header":"
|
|
5
|
+
const styles = {"header":"confirmation__header_dqqbv","typography":"confirmation__typography_dqqbv","typographyMobile":"confirmation__typographyMobile_dqqbv"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Header = ({ mobile, children }) => (React.createElement(Typography.Title, { className: cn(styles.header, styles.typography, { [styles.typographyMobile]: mobile }), tag: 'h3', color: 'primary' }, children));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: zlt8v */
|
|
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :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 */
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
|
|
40
40
|
/* header */
|
|
41
41
|
--confirmation-header-font-feature-settings: normal
|
|
42
|
-
} .
|
|
42
|
+
} .confirmation__header_dqqbv.confirmation__header_dqqbv {
|
|
43
43
|
margin-bottom: var(--gap-24);
|
|
44
|
-
} .
|
|
44
|
+
} .confirmation__typography_dqqbv.confirmation__typography_dqqbv.confirmation__typography_dqqbv {
|
|
45
45
|
font-feature-settings: var(--confirmation-header-font-feature-settings);
|
|
46
46
|
font-size: var(--confirmation-header-desktop-font-size);
|
|
47
47
|
line-height: var(--confirmation-header-desktop-line-height);
|
|
48
48
|
font-weight: var(--confirmation-header-desktop-font-weight);
|
|
49
49
|
font-family: var(--confirmation-header-desktop-font-family);
|
|
50
|
-
} .
|
|
50
|
+
} .confirmation__typographyMobile_dqqbv.confirmation__typographyMobile_dqqbv.confirmation__typographyMobile_dqqbv {
|
|
51
51
|
font-feature-settings: var(--confirmation-header-font-feature-settings);
|
|
52
52
|
font-size: var(--confirmation-header-mobile-font-size);
|
|
53
53
|
line-height: var(--confirmation-header-mobile-line-height);
|
|
@@ -5,18 +5,18 @@ import { Typography } from '@alfalab/core-components-typography/modern';
|
|
|
5
5
|
import { ConfirmationContext } from '../../../context.js';
|
|
6
6
|
import { Header } from '../../header/component.js';
|
|
7
7
|
|
|
8
|
-
const styles = {"component":"
|
|
8
|
+
const styles = {"component":"confirmation__component_tq10m","typographyTheme":"confirmation__typographyTheme_tq10m","typographyThemeMobile":"confirmation__typographyThemeMobile_tq10m","left":"confirmation__left_tq10m","center":"confirmation__center_tq10m","button":"confirmation__button_tq10m"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const FatalError = ({ mobile }) => {
|
|
12
|
-
const { alignContent, texts, onFatalErrorOkButtonClick, breakpoint } = useContext(ConfirmationContext);
|
|
12
|
+
const { alignContent, texts, onFatalErrorOkButtonClick, breakpoint, client } = useContext(ConfirmationContext);
|
|
13
13
|
return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
|
|
14
14
|
React.createElement(Header, { mobile: mobile }, texts.fatalErrorTitle),
|
|
15
15
|
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn({
|
|
16
16
|
[styles.typographyTheme]: !mobile,
|
|
17
17
|
[styles.typographyThemeMobile]: mobile,
|
|
18
18
|
}) }, texts.fatalErrorDescription),
|
|
19
|
-
React.createElement(Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: onFatalErrorOkButtonClick, className: styles.button, breakpoint: breakpoint }, texts.fatalErrorButton)));
|
|
19
|
+
React.createElement(Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: onFatalErrorOkButtonClick, className: styles.button, breakpoint: breakpoint, client: client }, texts.fatalErrorButton)));
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export { FatalError };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 75pbt */
|
|
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: rgba(3, 3, 6, 0.88);
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
38
38
|
|
|
39
39
|
/* header */
|
|
40
|
-
} .
|
|
40
|
+
} .confirmation__component_tq10m {
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: column;
|
|
43
|
-
} .
|
|
43
|
+
} .confirmation__typographyTheme_tq10m.confirmation__typographyTheme_tq10m {
|
|
44
44
|
font-size: var(--confirmation-text-font-size);
|
|
45
45
|
line-height: var(--confirmation-text-line-height);
|
|
46
46
|
font-weight: var(--confirmation-text-font-weight);
|
|
47
47
|
font-family: var(--confirmation-text-font-family);
|
|
48
48
|
color: var(--confirmation-text-color);
|
|
49
|
-
} .
|
|
49
|
+
} .confirmation__typographyThemeMobile_tq10m.confirmation__typographyThemeMobile_tq10m {
|
|
50
50
|
color: var(--color-light-text-secondary);
|
|
51
|
-
} .
|
|
51
|
+
} .confirmation__left_tq10m {
|
|
52
52
|
align-items: flex-start;
|
|
53
|
-
} .
|
|
53
|
+
} .confirmation__center_tq10m {
|
|
54
54
|
align-items: center;
|
|
55
55
|
text-align: center;
|
|
56
|
-
} .
|
|
56
|
+
} .confirmation__button_tq10m.confirmation__button_tq10m {
|
|
57
57
|
margin-top: var(--gap-32);
|
|
58
58
|
}
|
|
@@ -4,13 +4,15 @@ import { Button } from '@alfalab/core-components-button/modern';
|
|
|
4
4
|
import { Link } from '@alfalab/core-components-link/modern';
|
|
5
5
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
6
6
|
import { ConfirmationContext } from '../../../context.js';
|
|
7
|
+
import { getPhoneHref } from '../../../utils.js';
|
|
7
8
|
import { Header } from '../../header/component.js';
|
|
8
9
|
|
|
9
|
-
const styles = {"component":"
|
|
10
|
+
const styles = {"component":"confirmation__component_b2x4l","center":"confirmation__center_b2x4l","text":"confirmation__text_b2x4l","typographyTheme":"confirmation__typographyTheme_b2x4l","typographyThemeMobile":"confirmation__typographyThemeMobile_b2x4l","phonesWrap":"confirmation__phonesWrap_b2x4l","phoneWrap":"confirmation__phoneWrap_b2x4l","phoneLink":"confirmation__phoneLink_b2x4l","hintButton":"confirmation__hintButton_b2x4l","phoneContentMobile":"confirmation__phoneContentMobile_b2x4l"};
|
|
10
11
|
require('./index.css')
|
|
11
12
|
|
|
12
13
|
const Hint = ({ mobile }) => {
|
|
13
|
-
const { alignContent, texts, onChangeScreen, onChangeState, breakpoint } = useContext(ConfirmationContext);
|
|
14
|
+
const { alignContent, texts, onChangeScreen, onChangeState, breakpoint, client } = useContext(ConfirmationContext);
|
|
15
|
+
const { domesticPhone = '', internationalPhone = '', hintButton } = texts;
|
|
14
16
|
const handleReturnButtonClick = () => {
|
|
15
17
|
onChangeScreen('INITIAL');
|
|
16
18
|
onChangeState('INITIAL');
|
|
@@ -25,7 +27,7 @@ const Hint = ({ mobile }) => {
|
|
|
25
27
|
[styles.phonesWrapMobile]: mobile,
|
|
26
28
|
}) },
|
|
27
29
|
React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
|
|
28
|
-
React.createElement(Link, { href:
|
|
30
|
+
React.createElement(Link, { href: getPhoneHref(domesticPhone), underline: false, className: cn(styles.phoneLink, { [styles.typographyThemeMobile]: mobile }) }, domesticPhone),
|
|
29
31
|
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
|
|
30
32
|
[styles.typographyTheme]: !mobile,
|
|
31
33
|
[styles.typographyThemeMobile]: mobile,
|
|
@@ -33,7 +35,7 @@ const Hint = ({ mobile }) => {
|
|
|
33
35
|
? 'Для\u00A0звонков по\u00A0России'
|
|
34
36
|
: ' \u2014\u00A0для звонков по\u00A0России')),
|
|
35
37
|
React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
|
|
36
|
-
React.createElement(Link, { href:
|
|
38
|
+
React.createElement(Link, { href: getPhoneHref(internationalPhone), underline: false, className: cn(styles.phoneLink, { [styles.typographyThemeMobile]: mobile }) }, internationalPhone),
|
|
37
39
|
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
|
|
38
40
|
[styles.typographyTheme]: !mobile,
|
|
39
41
|
[styles.typographyThemeMobile]: mobile,
|
|
@@ -44,7 +46,7 @@ const Hint = ({ mobile }) => {
|
|
|
44
46
|
[styles.typographyTheme]: !mobile,
|
|
45
47
|
[styles.typographyThemeMobile]: mobile,
|
|
46
48
|
}) }, "\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."),
|
|
47
|
-
React.createElement(Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton, breakpoint: breakpoint },
|
|
49
|
+
React.createElement(Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton, breakpoint: breakpoint, client: client }, hintButton)));
|
|
48
50
|
};
|
|
49
51
|
|
|
50
52
|
export { Hint };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ilhd */
|
|
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: rgba(3, 3, 6, 0.88);
|
|
@@ -42,40 +42,40 @@
|
|
|
42
42
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
43
43
|
|
|
44
44
|
/* header */
|
|
45
|
-
} .
|
|
45
|
+
} .confirmation__component_b2x4l {
|
|
46
46
|
display: flex;
|
|
47
47
|
flex-direction: column;
|
|
48
48
|
align-items: flex-start
|
|
49
|
-
} .
|
|
49
|
+
} .confirmation__component_b2x4l span:last-of-type {
|
|
50
50
|
margin-bottom: var(--gap-0);
|
|
51
|
-
} .
|
|
51
|
+
} .confirmation__center_b2x4l {
|
|
52
52
|
align-items: center;
|
|
53
53
|
text-align: center;
|
|
54
|
-
} .
|
|
54
|
+
} .confirmation__text_b2x4l.confirmation__text_b2x4l {
|
|
55
55
|
margin-bottom: var(--gap-24);
|
|
56
|
-
} .
|
|
56
|
+
} .confirmation__typographyTheme_b2x4l.confirmation__typographyTheme_b2x4l {
|
|
57
57
|
font-size: var(--confirmation-text-font-size);
|
|
58
58
|
line-height: var(--confirmation-text-line-height);
|
|
59
59
|
font-weight: var(--confirmation-text-font-weight);
|
|
60
60
|
font-family: var(--confirmation-text-font-family);
|
|
61
61
|
color: var(--confirmation-text-color);
|
|
62
|
-
} .
|
|
62
|
+
} .confirmation__typographyThemeMobile_b2x4l.confirmation__typographyThemeMobile_b2x4l {
|
|
63
63
|
color: var(--color-light-text-secondary);
|
|
64
|
-
} .
|
|
64
|
+
} .confirmation__phonesWrap_b2x4l {
|
|
65
65
|
display: flex;
|
|
66
66
|
flex-direction: column;
|
|
67
67
|
margin-bottom: var(--gap-24);
|
|
68
|
-
} .
|
|
68
|
+
} .confirmation__phoneWrap_b2x4l {
|
|
69
69
|
margin-bottom: var(--gap-8)
|
|
70
|
-
} .
|
|
70
|
+
} .confirmation__phoneWrap_b2x4l:last-child {
|
|
71
71
|
margin-bottom: var(--gap-0);
|
|
72
|
-
} .
|
|
72
|
+
} .confirmation__phoneLink_b2x4l.confirmation__phoneLink_b2x4l {
|
|
73
73
|
font-size: 16px;
|
|
74
74
|
line-height: 24px;
|
|
75
75
|
font-weight: 500;
|
|
76
|
-
} .
|
|
76
|
+
} .confirmation__hintButton_b2x4l {
|
|
77
77
|
margin-top: var(--gap-32);
|
|
78
|
-
} .
|
|
78
|
+
} .confirmation__phoneContentMobile_b2x4l {
|
|
79
79
|
display: flex;
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
}
|
|
@@ -8,7 +8,7 @@ import { Typography } from '@alfalab/core-components-typography/modern';
|
|
|
8
8
|
import { usePrevious, useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
9
9
|
import { ConfirmationContext } from '../../../context.js';
|
|
10
10
|
import { Header } from '../../header/component.js';
|
|
11
|
-
import { s as styles, C as CountdownSection } from '../../../countdown-section-
|
|
11
|
+
import { s as styles, C as CountdownSection } from '../../../countdown-section-cdcdc727.js';
|
|
12
12
|
|
|
13
13
|
const CODE_SEND_HINT_VISIBLE_DURATION = 2000;
|
|
14
14
|
const Initial = ({ mobile }) => {
|
|
@@ -5,4 +5,4 @@ import '@alfalab/core-components-spinner/modern';
|
|
|
5
5
|
import '@alfalab/core-components-typography/modern';
|
|
6
6
|
import '../../../context.js';
|
|
7
7
|
import '../../../utils.js';
|
|
8
|
-
export { C as CountdownSection } from '../../../countdown-section-
|
|
8
|
+
export { C as CountdownSection } from '../../../countdown-section-cdcdc727.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1iunp */
|
|
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: rgba(3, 3, 6, 0.88);
|
|
@@ -49,53 +49,53 @@
|
|
|
49
49
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
50
50
|
|
|
51
51
|
/* header */
|
|
52
|
-
} .
|
|
52
|
+
} .confirmation__component_ztfvp {
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
55
|
-
} .
|
|
55
|
+
} .confirmation__phone_ztfvp.confirmation__phone_ztfvp {
|
|
56
56
|
color: var(--color-light-text-primary);
|
|
57
57
|
margin-bottom: var(--gap-32);
|
|
58
|
-
} .
|
|
58
|
+
} .confirmation__typographyTheme_ztfvp.confirmation__typographyTheme_ztfvp {
|
|
59
59
|
font-size: var(--confirmation-text-font-size);
|
|
60
60
|
line-height: var(--confirmation-text-line-height);
|
|
61
61
|
font-weight: var(--confirmation-text-font-weight);
|
|
62
62
|
font-family: var(--confirmation-text-font-family);
|
|
63
63
|
color: var(--confirmation-text-color);
|
|
64
|
-
} .
|
|
64
|
+
} .confirmation__typographyThemeMobile_ztfvp.confirmation__typographyThemeMobile_ztfvp {
|
|
65
65
|
color: var(--color-light-text-secondary);
|
|
66
|
-
} .
|
|
66
|
+
} .confirmation__compact_ztfvp {
|
|
67
67
|
margin-bottom: var(--gap-24);
|
|
68
|
-
} .
|
|
68
|
+
} .confirmation__loaderWrap_ztfvp {
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
|
-
} .
|
|
71
|
+
} .confirmation__left_ztfvp {
|
|
72
72
|
align-items: flex-start;
|
|
73
|
-
} .
|
|
73
|
+
} .confirmation__center_ztfvp {
|
|
74
74
|
align-items: center;
|
|
75
75
|
text-align: center
|
|
76
|
-
} .
|
|
76
|
+
} .confirmation__center_ztfvp .confirmation__loaderWrap_ztfvp {
|
|
77
77
|
justify-content: center;
|
|
78
|
-
} .
|
|
78
|
+
} .confirmation__codeInput_ztfvp {
|
|
79
79
|
margin-bottom: var(--gap-12);
|
|
80
|
-
} .
|
|
80
|
+
} .confirmation__smsBtn_ztfvp.confirmation__smsBtn_ztfvp {
|
|
81
81
|
min-height: var(--size-xs-height);
|
|
82
|
-
} .
|
|
82
|
+
} .confirmation__smsComeLink_ztfvp.confirmation__smsComeLink_ztfvp {
|
|
83
83
|
font-size: 14px;
|
|
84
84
|
line-height: 20px;
|
|
85
85
|
font-weight: 500;
|
|
86
|
-
} .
|
|
86
|
+
} .confirmation__countdownContainer_ztfvp.confirmation__countdownContainer_ztfvp {
|
|
87
87
|
color: var(--color-light-text-secondary);
|
|
88
88
|
margin-bottom: var(--gap-24);
|
|
89
|
-
} .
|
|
89
|
+
} .confirmation__countdownMobile_ztfvp.confirmation__countdownMobile_ztfvp {
|
|
90
90
|
margin-bottom: var(--gap-20);
|
|
91
|
-
} .
|
|
91
|
+
} .confirmation__countdownLoaderMobile_ztfvp.confirmation__countdownLoaderMobile_ztfvp {
|
|
92
92
|
margin-bottom: var(--gap-16);
|
|
93
|
-
} .
|
|
93
|
+
} .confirmation__getCodeButton_ztfvp {
|
|
94
94
|
position: relative;
|
|
95
95
|
top: var(--gap-4-neg);
|
|
96
96
|
margin-bottom: var(--gap-16);
|
|
97
|
-
} .
|
|
97
|
+
} .confirmation__getCodeButtonMobile_ztfvp {
|
|
98
98
|
margin-bottom: var(--gap-0);
|
|
99
|
-
} .
|
|
99
|
+
} .confirmation__containerInput_ztfvp {
|
|
100
100
|
min-height: 80px;
|
|
101
101
|
}
|
|
@@ -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_bvit8","center":"confirmation__center_bvit8","typographyTheme":"confirmation__typographyTheme_bvit8","typographyThemeMobile":"confirmation__typographyThemeMobile_bvit8","description":"confirmation__description_bvit8","countdownWrap":"confirmation__countdownWrap_bvit8","loader":"confirmation__loader_bvit8"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const TempBlock = ({ mobile }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 16l97 */
|
|
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: rgba(3, 3, 6, 0.88);
|
|
@@ -37,25 +37,25 @@
|
|
|
37
37
|
--confirmation-text-color: var(--color-light-text-primary)
|
|
38
38
|
|
|
39
39
|
/* header */
|
|
40
|
-
} .
|
|
40
|
+
} .confirmation__component_bvit8 {
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: column;
|
|
43
|
-
} .
|
|
43
|
+
} .confirmation__center_bvit8 {
|
|
44
44
|
align-items: center;
|
|
45
45
|
text-align: center;
|
|
46
|
-
} .
|
|
46
|
+
} .confirmation__typographyTheme_bvit8.confirmation__typographyTheme_bvit8 {
|
|
47
47
|
font-size: var(--confirmation-text-font-size);
|
|
48
48
|
line-height: var(--confirmation-text-line-height);
|
|
49
49
|
font-weight: var(--confirmation-text-font-weight);
|
|
50
50
|
font-family: var(--confirmation-text-font-family);
|
|
51
51
|
color: var(--confirmation-text-color);
|
|
52
|
-
} .
|
|
52
|
+
} .confirmation__typographyThemeMobile_bvit8.confirmation__typographyThemeMobile_bvit8 {
|
|
53
53
|
color: var(--color-light-text-secondary);
|
|
54
|
-
} .
|
|
54
|
+
} .confirmation__description_bvit8.confirmation__description_bvit8 {
|
|
55
55
|
margin-bottom: var(--gap-8);
|
|
56
|
-
} .
|
|
56
|
+
} .confirmation__countdownWrap_bvit8 {
|
|
57
57
|
display: flex;
|
|
58
58
|
align-items: center;
|
|
59
|
-
} .
|
|
59
|
+
} .confirmation__loader_bvit8 {
|
|
60
60
|
margin-right: var(--gap-8);
|
|
61
61
|
}
|
package/modern/context.js
CHANGED
|
@@ -6,11 +6,11 @@ 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_ztfvp","phone":"confirmation__phone_ztfvp","typographyTheme":"confirmation__typographyTheme_ztfvp","typographyThemeMobile":"confirmation__typographyThemeMobile_ztfvp","compact":"confirmation__compact_ztfvp","loaderWrap":"confirmation__loaderWrap_ztfvp","left":"confirmation__left_ztfvp","center":"confirmation__center_ztfvp","codeInput":"confirmation__codeInput_ztfvp","smsBtn":"confirmation__smsBtn_ztfvp","smsComeLink":"confirmation__smsComeLink_ztfvp","countdownContainer":"confirmation__countdownContainer_ztfvp","countdownMobile":"confirmation__countdownMobile_ztfvp","countdownLoaderMobile":"confirmation__countdownLoaderMobile_ztfvp","getCodeButton":"confirmation__getCodeButton_ztfvp","getCodeButtonMobile":"confirmation__getCodeButtonMobile_ztfvp","containerInput":"confirmation__containerInput_ztfvp"};
|
|
10
10
|
require('./components/screens/initial/index.css')
|
|
11
11
|
|
|
12
12
|
const CountdownSection = ({ codeSendHintVisible, timePassed, processing, mobile, handleSmsRetryClick, }) => {
|
|
13
|
-
const { state, texts, timeLeft, blockSmsRetry, breakpoint } = useContext(ConfirmationContext);
|
|
13
|
+
const { state, texts, timeLeft, blockSmsRetry, breakpoint, client } = useContext(ConfirmationContext);
|
|
14
14
|
const renderText = (text) => (React.createElement(Typography.Text, { className: cn(styles.countdownContainer, {
|
|
15
15
|
[styles.countdownMobile]: mobile,
|
|
16
16
|
[styles.typographyTheme]: !mobile,
|
|
@@ -22,13 +22,13 @@ const CountdownSection = ({ codeSendHintVisible, timePassed, processing, mobile,
|
|
|
22
22
|
[styles.countdownLoaderMobile]: mobile,
|
|
23
23
|
[styles.typographyTheme]: !mobile,
|
|
24
24
|
}) },
|
|
25
|
-
React.createElement(Spinner, { visible: true }),
|
|
25
|
+
React.createElement(Spinner, { preset: 24, visible: true }),
|
|
26
26
|
React.createElement("span", { className: styles.loaderText }, state === 'CODE_CHECKING' ? texts.codeChecking : texts.codeSending)));
|
|
27
27
|
}
|
|
28
28
|
if (blockSmsRetry)
|
|
29
29
|
return renderText(texts.noAttemptsLeft);
|
|
30
30
|
if (timePassed) {
|
|
31
|
-
return (React.createElement(Button, { size: mobile ? 'xs' : 'xxs', view: 'secondary', onClick: handleSmsRetryClick, className: cn(styles.getCodeButton, { [styles.getCodeButtonMobile]: mobile }), breakpoint: breakpoint }, texts.buttonRetry));
|
|
31
|
+
return (React.createElement(Button, { size: mobile ? 'xs' : 'xxs', view: 'secondary', onClick: handleSmsRetryClick, className: cn(styles.getCodeButton, { [styles.getCodeButtonMobile]: mobile }), breakpoint: breakpoint, client: client }, texts.buttonRetry));
|
|
32
32
|
}
|
|
33
33
|
return renderText(`${texts.countdown} ${formatMsAsMinutes(timeLeft)}`);
|
|
34
34
|
};
|
|
@@ -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_1lmp3"};
|
|
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/modern/types.d.ts
CHANGED
|
@@ -77,11 +77,11 @@ type ConfirmationProps = {
|
|
|
77
77
|
*/
|
|
78
78
|
onTempBlockFinished?: () => void;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Возвращает объект, где ключ - название экрана (screen), значение - компонент для экрана
|
|
81
81
|
*/
|
|
82
|
-
getScreensMap?: (
|
|
82
|
+
getScreensMap?: (defaultScreensMap: ScreensMap) => ScreensMap;
|
|
83
83
|
/**
|
|
84
|
-
* Дочерние
|
|
84
|
+
* Дочерние элементы
|
|
85
85
|
*/
|
|
86
86
|
children?: ReactNode;
|
|
87
87
|
/**
|
|
@@ -98,20 +98,18 @@ type ConfirmationProps = {
|
|
|
98
98
|
* @default 1024
|
|
99
99
|
*/
|
|
100
100
|
breakpoint?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Версия, которая будет использоваться при серверном рендеринге
|
|
103
|
+
*/
|
|
104
|
+
client?: 'desktop' | 'mobile';
|
|
101
105
|
/**
|
|
102
106
|
* Продолжительность отображения ошибки
|
|
103
107
|
* @default 1300
|
|
104
108
|
*/
|
|
105
109
|
errorVisibleDuration?: number;
|
|
106
110
|
};
|
|
107
|
-
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration' | 'hideCountdownSection'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError' | 'initialScreenHintSlot' | 'errorVisibleDuration'> & {
|
|
111
|
+
type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration' | 'hideCountdownSection'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError' | 'initialScreenHintSlot' | 'errorVisibleDuration' | 'breakpoint' | 'client'> & {
|
|
108
112
|
timeLeft: number;
|
|
109
|
-
} & {
|
|
110
|
-
/**
|
|
111
|
-
* Контрольная точка для кнопки, с нее начинается desktop версия
|
|
112
|
-
* @default 1024
|
|
113
|
-
*/
|
|
114
|
-
breakpoint?: number;
|
|
115
113
|
};
|
|
116
114
|
type ConfirmationTexts = {
|
|
117
115
|
/**
|
|
@@ -130,6 +128,8 @@ type ConfirmationTexts = {
|
|
|
130
128
|
* Экран HINT
|
|
131
129
|
*/
|
|
132
130
|
hintButton?: string;
|
|
131
|
+
domesticPhone?: string;
|
|
132
|
+
internationalPhone?: string;
|
|
133
133
|
/**
|
|
134
134
|
* Экран FATAL_ERROR
|
|
135
135
|
*/
|
|
@@ -147,21 +147,5 @@ type ConfirmationState = 'INITIAL' | 'CODE_CHECKING' | 'CODE_SENDING' | 'CODE_ER
|
|
|
147
147
|
type ScreensMap = {
|
|
148
148
|
[key: string]: ComponentType;
|
|
149
149
|
};
|
|
150
|
-
declare const defaultTexts:
|
|
151
|
-
title: string;
|
|
152
|
-
codeError: string;
|
|
153
|
-
codeChecking: string;
|
|
154
|
-
codeSending: string;
|
|
155
|
-
buttonRetry: string;
|
|
156
|
-
linkToHint: string;
|
|
157
|
-
hintButton: string;
|
|
158
|
-
noAttemptsLeft: string;
|
|
159
|
-
fatalErrorTitle: string;
|
|
160
|
-
fatalErrorDescription: string;
|
|
161
|
-
fatalErrorButton: string;
|
|
162
|
-
tempBlockTitle: string;
|
|
163
|
-
tempBlockDescription: string;
|
|
164
|
-
codeSended: string;
|
|
165
|
-
countdown: string;
|
|
166
|
-
};
|
|
150
|
+
declare const defaultTexts: ConfirmationTexts;
|
|
167
151
|
export { ConfirmationProps, TConfirmationContext, ConfirmationTexts, ConfirmationScreen, ConfirmationState, ScreensMap, defaultTexts };
|
package/modern/types.js
CHANGED
|
@@ -14,6 +14,8 @@ const defaultTexts = {
|
|
|
14
14
|
tempBlockDescription: 'Повторное подтверждение кодом будет возможно через 24\xa0часа',
|
|
15
15
|
codeSended: 'Код выслан',
|
|
16
16
|
countdown: 'Запросить повторно можно через',
|
|
17
|
+
domesticPhone: '8 800 200 00 00',
|
|
18
|
+
internationalPhone: '+7 495 78 888 78',
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
export { defaultTexts };
|
package/modern/utils.d.ts
CHANGED
|
@@ -27,4 +27,8 @@ declare const useConfirmation: ({ state, screen, blockSmsRetry }?: UseConfirmati
|
|
|
27
27
|
setConfirmationScreen: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
28
28
|
setConfirmationBlockSmsRetry: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* @returns ссылку для набора номера
|
|
32
|
+
*/
|
|
33
|
+
declare function getPhoneHref(phone: string): string;
|
|
34
|
+
export { formatMsAsMinutes, useCountdown, ONE_DAY, ONE_MINUTE, useConfirmation, getPhoneHref };
|