@alfalab/core-components-confirmation 12.1.4 → 12.2.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-40c9adb0.d.ts +35 -0
- package/{component.js → component-40c9adb0.js} +11 -18
- package/component.desktop.d.ts +5 -0
- package/component.desktop.js +31 -0
- package/component.mobile.d.ts +5 -0
- package/component.mobile.js +38 -0
- package/component.responsive.d.ts +6 -0
- package/component.responsive.js +39 -0
- package/components/base-confirmation/component.d.ts +0 -0
- package/components/base-confirmation/component.js +27 -0
- package/components/base-confirmation/index.css +24 -0
- package/components/base-confirmation/index.d.ts +1 -0
- package/components/base-confirmation/index.js +27 -0
- package/components/countdown-loader/component.js +1 -1
- package/components/countdown-loader/index.css +2 -11
- package/components/header/component.d.ts +13 -0
- package/components/header/component.js +23 -0
- package/components/header/index.css +51 -0
- package/components/header/index.d.ts +1 -0
- package/components/header/index.js +12 -0
- package/components/index.js +4 -2
- package/components/screens/fatal-error/component.d.ts +9 -3
- package/components/screens/fatal-error/component.js +13 -7
- package/components/screens/fatal-error/index.css +17 -29
- package/components/screens/fatal-error/index.js +3 -0
- package/components/screens/hint/component.d.ts +9 -3
- package/components/screens/hint/component.js +17 -17
- package/components/screens/hint/index.css +25 -48
- package/components/screens/hint/index.js +2 -0
- package/components/screens/index.js +4 -2
- package/components/screens/initial/component.d.ts +9 -3
- package/components/screens/initial/component.js +14 -11
- package/components/screens/initial/countdown-section.js +3 -2
- package/components/screens/initial/index.css +48 -45
- package/components/screens/initial/index.js +4 -2
- package/components/screens/temp-block/component.d.ts +9 -3
- package/components/screens/temp-block/component.js +13 -7
- package/components/screens/temp-block/index.css +12 -30
- package/components/screens/temp-block/index.js +3 -0
- package/{esm/countdown-section-694d1c59.d.ts → countdown-section-d04caa75.d.ts} +1 -0
- package/countdown-section-d04caa75.js +56 -0
- package/cssm/component-5c5b24ae.d.ts +35 -0
- package/cssm/{component.js → component-5c5b24ae.js} +10 -22
- package/cssm/component.desktop.d.ts +5 -0
- package/cssm/component.desktop.js +38 -0
- package/cssm/component.mobile.d.ts +5 -0
- package/cssm/component.mobile.js +44 -0
- package/cssm/component.responsive.d.ts +6 -0
- package/cssm/component.responsive.js +47 -0
- package/cssm/components/base-confirmation/component.d.ts +0 -0
- package/cssm/components/base-confirmation/component.js +34 -0
- package/cssm/components/base-confirmation/index.d.ts +1 -0
- package/cssm/components/base-confirmation/index.js +34 -0
- package/cssm/components/base-confirmation/index.module.css +23 -0
- package/cssm/components/countdown-loader/index.module.css +0 -9
- package/cssm/components/header/component.d.ts +13 -0
- package/cssm/components/header/component.js +22 -0
- package/cssm/components/header/index.d.ts +1 -0
- package/cssm/components/header/index.js +13 -0
- package/cssm/components/header/index.module.css +50 -0
- package/cssm/components/index.js +5 -2
- package/cssm/components/screens/fatal-error/component.d.ts +9 -3
- package/cssm/components/screens/fatal-error/component.js +13 -6
- package/cssm/components/screens/fatal-error/index.js +4 -0
- package/cssm/components/screens/fatal-error/index.module.css +16 -28
- package/cssm/components/screens/hint/component.d.ts +9 -3
- package/cssm/components/screens/hint/component.js +17 -16
- package/cssm/components/screens/hint/index.js +3 -0
- package/cssm/components/screens/hint/index.module.css +17 -40
- package/cssm/components/screens/index.js +5 -2
- package/cssm/components/screens/initial/component.d.ts +9 -3
- package/cssm/components/screens/initial/component.js +15 -11
- package/cssm/components/screens/initial/countdown-section.d.ts +1 -0
- package/cssm/components/screens/initial/countdown-section.js +25 -10
- package/cssm/components/screens/initial/index.js +5 -2
- package/cssm/components/screens/initial/index.module.css +37 -34
- package/cssm/components/screens/temp-block/component.d.ts +9 -3
- package/cssm/components/screens/temp-block/component.js +13 -6
- package/cssm/components/screens/temp-block/index.js +4 -0
- package/cssm/components/screens/temp-block/index.module.css +9 -27
- package/cssm/desktop.d.ts +1 -0
- package/cssm/desktop.js +35 -0
- package/cssm/index.d.ts +2 -1
- package/cssm/index.js +13 -5
- package/cssm/mobile.d.ts +1 -0
- package/cssm/mobile.js +36 -0
- package/cssm/mobile.module.css +3 -0
- package/cssm/responsive.d.ts +1 -0
- package/cssm/responsive.js +38 -0
- package/cssm/types.d.ts +4 -0
- package/cssm/vars.css +4 -4
- package/desktop.d.ts +1 -0
- package/desktop.js +28 -0
- package/esm/component-1f28492d.d.ts +35 -0
- package/esm/{component.js → component-1f28492d.js} +6 -12
- package/esm/component.desktop.d.ts +5 -0
- package/esm/component.desktop.js +23 -0
- package/esm/component.mobile.d.ts +5 -0
- package/esm/component.mobile.js +29 -0
- package/esm/component.responsive.d.ts +6 -0
- package/esm/component.responsive.js +31 -0
- package/esm/components/base-confirmation/component.d.ts +0 -0
- package/esm/components/base-confirmation/component.js +19 -0
- package/esm/components/base-confirmation/index.css +24 -0
- package/esm/components/base-confirmation/index.d.ts +1 -0
- package/esm/components/base-confirmation/index.js +19 -0
- package/esm/components/countdown-loader/component.js +1 -1
- package/esm/components/countdown-loader/index.css +2 -11
- package/esm/components/header/component.d.ts +13 -0
- package/esm/components/header/component.js +14 -0
- package/esm/components/header/index.css +51 -0
- package/esm/components/header/index.d.ts +1 -0
- package/esm/components/header/index.js +4 -0
- package/esm/components/index.js +4 -2
- package/esm/components/screens/fatal-error/component.d.ts +9 -3
- package/esm/components/screens/fatal-error/component.js +13 -8
- package/esm/components/screens/fatal-error/index.css +17 -29
- package/esm/components/screens/fatal-error/index.js +3 -0
- package/esm/components/screens/hint/component.d.ts +9 -3
- package/esm/components/screens/hint/component.js +17 -17
- package/esm/components/screens/hint/index.css +25 -48
- package/esm/components/screens/hint/index.js +2 -0
- package/esm/components/screens/index.js +4 -2
- package/esm/components/screens/initial/component.d.ts +9 -3
- package/esm/components/screens/initial/component.js +14 -11
- package/esm/components/screens/initial/countdown-section.js +3 -2
- package/esm/components/screens/initial/index.css +48 -45
- package/esm/components/screens/initial/index.js +4 -2
- package/esm/components/screens/temp-block/component.d.ts +9 -3
- package/esm/components/screens/temp-block/component.js +12 -7
- package/esm/components/screens/temp-block/index.css +12 -30
- package/esm/components/screens/temp-block/index.js +3 -0
- package/{modern/countdown-section-d8a9a733.d.ts → esm/countdown-section-b47c61ca.d.ts} +1 -0
- package/esm/countdown-section-b47c61ca.js +48 -0
- package/esm/desktop.d.ts +1 -0
- package/esm/desktop.js +20 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +8 -3
- package/esm/mobile.css +4 -0
- package/esm/mobile.d.ts +1 -0
- package/esm/mobile.js +20 -0
- package/esm/responsive.d.ts +1 -0
- package/esm/responsive.js +22 -0
- package/esm/types.d.ts +4 -0
- package/index.d.ts +2 -1
- package/index.js +10 -4
- package/mobile.css +4 -0
- package/mobile.d.ts +1 -0
- package/mobile.js +28 -0
- package/modern/component.desktop.d.ts +5 -0
- package/modern/component.desktop.js +23 -0
- package/modern/component.mobile.d.ts +5 -0
- package/modern/component.mobile.js +26 -0
- package/modern/component.responsive.d.ts +6 -0
- package/modern/component.responsive.js +31 -0
- package/modern/components/base-confirmation/component.d.ts +4 -0
- package/modern/{component.js → components/base-confirmation/component.js} +16 -14
- package/modern/components/base-confirmation/index.css +24 -0
- package/modern/components/base-confirmation/index.d.ts +1 -0
- package/modern/components/base-confirmation/index.js +19 -0
- package/modern/components/countdown-loader/component.js +1 -1
- package/modern/components/countdown-loader/index.css +2 -11
- package/modern/components/header/component.d.ts +13 -0
- package/modern/components/header/component.js +10 -0
- package/modern/components/header/index.css +51 -0
- package/modern/components/header/index.d.ts +1 -0
- package/modern/components/header/index.js +4 -0
- package/modern/components/index.js +4 -2
- package/modern/components/screens/fatal-error/component.d.ts +9 -3
- package/modern/components/screens/fatal-error/component.js +11 -8
- package/modern/components/screens/fatal-error/index.css +17 -29
- package/modern/components/screens/fatal-error/index.js +3 -0
- package/modern/components/screens/hint/component.d.ts +9 -3
- package/modern/components/screens/hint/component.js +14 -16
- package/modern/components/screens/hint/index.css +25 -48
- package/modern/components/screens/hint/index.js +2 -0
- package/modern/components/screens/index.js +4 -2
- package/modern/components/screens/initial/component.d.ts +9 -3
- package/modern/components/screens/initial/component.js +10 -9
- package/modern/components/screens/initial/countdown-section.js +3 -2
- package/modern/components/screens/initial/index.css +48 -45
- package/modern/components/screens/initial/index.js +4 -2
- package/modern/components/screens/temp-block/component.d.ts +9 -3
- package/modern/components/screens/temp-block/component.js +8 -5
- package/modern/components/screens/temp-block/index.css +12 -30
- package/modern/components/screens/temp-block/index.js +3 -0
- package/{countdown-section-c2901a7e.d.ts → modern/countdown-section-2212ec31.d.ts} +1 -0
- package/modern/countdown-section-2212ec31.js +46 -0
- package/modern/desktop.d.ts +1 -0
- package/modern/desktop.js +20 -0
- package/modern/index.d.ts +2 -1
- package/modern/index.js +8 -3
- package/modern/mobile.css +4 -0
- package/modern/mobile.d.ts +1 -0
- package/modern/mobile.js +20 -0
- package/modern/responsive.d.ts +1 -0
- package/modern/responsive.js +22 -0
- package/modern/types.d.ts +4 -0
- package/package.json +3 -2
- package/responsive.d.ts +1 -0
- package/responsive.js +30 -0
- package/types.d.ts +4 -0
- package/component.d.ts +0 -4
- package/countdown-section-c2901a7e.js +0 -41
- package/cssm/component.d.ts +0 -4
- package/cssm/index.module.css +0 -46
- package/esm/component.d.ts +0 -4
- package/esm/countdown-section-694d1c59.js +0 -33
- package/esm/index.css +0 -47
- package/index.css +0 -47
- package/modern/component.d.ts +0 -4
- package/modern/countdown-section-d8a9a733.js +0 -32
- package/modern/index.css +0 -47
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'classnames';
|
|
3
|
+
import { useMedia } from '@alfalab/hooks';
|
|
4
|
+
import './utils.js';
|
|
5
|
+
import './context.js';
|
|
6
|
+
import './types.js';
|
|
7
|
+
import '@alfalab/core-components-code-input/modern';
|
|
8
|
+
import '@alfalab/core-components-link/modern';
|
|
9
|
+
import '@alfalab/core-components-typography/modern';
|
|
10
|
+
import '@alfalab/core-components-button/modern';
|
|
11
|
+
import './components/header/component.js';
|
|
12
|
+
import '@alfalab/core-components-loader/modern';
|
|
13
|
+
import './countdown-section-2212ec31.js';
|
|
14
|
+
import './components/screens/initial/component.js';
|
|
15
|
+
import './components/screens/hint/component.js';
|
|
16
|
+
import './components/screens/fatal-error/component.js';
|
|
17
|
+
import './components/countdown-loader/component.js';
|
|
18
|
+
import './components/screens/temp-block/component.js';
|
|
19
|
+
import './components/base-confirmation/component.js';
|
|
20
|
+
import { ConfirmationDesktop } from './component.desktop.js';
|
|
21
|
+
import { ConfirmationMobile } from './component.mobile.js';
|
|
22
|
+
|
|
23
|
+
const ConfirmationResponsive = props => {
|
|
24
|
+
const [view] = useMedia([
|
|
25
|
+
['mobile', '(max-width: 1023px)'],
|
|
26
|
+
['desktop', '(min-width: 1024px)'],
|
|
27
|
+
], 'desktop');
|
|
28
|
+
return view === 'desktop' ? (React.createElement(ConfirmationDesktop, Object.assign({}, props))) : (React.createElement(ConfirmationMobile, Object.assign({}, props)));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { ConfirmationResponsive };
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { usePrevious } from '@alfalab/hooks';
|
|
4
|
-
import { ONE_MINUTE, ONE_DAY, useCountdown } from '
|
|
5
|
-
import { ConfirmationContext } from '
|
|
6
|
-
import { defaultTexts } from '
|
|
4
|
+
import { ONE_MINUTE, ONE_DAY, useCountdown } from '../../utils.js';
|
|
5
|
+
import { ConfirmationContext } from '../../context.js';
|
|
6
|
+
import { defaultTexts } from '../../types.js';
|
|
7
7
|
import '@alfalab/core-components-code-input/modern';
|
|
8
8
|
import '@alfalab/core-components-link/modern';
|
|
9
|
-
import '
|
|
10
|
-
import '@alfalab/core-components-loader/modern';
|
|
9
|
+
import '@alfalab/core-components-typography/modern';
|
|
11
10
|
import '@alfalab/core-components-button/modern';
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import '
|
|
16
|
-
import {
|
|
11
|
+
import '../header/component.js';
|
|
12
|
+
import '@alfalab/core-components-loader/modern';
|
|
13
|
+
import '../../countdown-section-2212ec31.js';
|
|
14
|
+
import { Initial } from '../screens/initial/component.js';
|
|
15
|
+
import { Hint } from '../screens/hint/component.js';
|
|
16
|
+
import { FatalError } from '../screens/fatal-error/component.js';
|
|
17
|
+
import '../countdown-loader/component.js';
|
|
18
|
+
import { TempBlock } from '../screens/temp-block/component.js';
|
|
17
19
|
|
|
18
|
-
var styles = {"component":"
|
|
20
|
+
var styles = {"component":"confirmation__component_n9c29","center":"confirmation__center_n9c29"};
|
|
19
21
|
require('./index.css')
|
|
20
22
|
|
|
21
23
|
const confirmationScreens = {
|
|
@@ -24,7 +26,7 @@ const confirmationScreens = {
|
|
|
24
26
|
FATAL_ERROR: FatalError,
|
|
25
27
|
TEMP_BLOCK: TempBlock,
|
|
26
28
|
};
|
|
27
|
-
const
|
|
29
|
+
const BaseConfirmation = ({ state, screen, alignContent = 'left', children, requiredCharAmount = 5, countdownDuration = ONE_MINUTE, tempBlockDuration = ONE_DAY, phone, blockSmsRetry, dataTestId, className, getScreensMap, onInputFinished, onChangeState, onSmsRetryClick, onChangeScreen, onFatalErrorOkButtonClick, onTempBlockFinished, mobile, ...restProps }) => {
|
|
28
30
|
const [timeLeft, startTimer, stopTimer] = useCountdown(countdownDuration);
|
|
29
31
|
const prevState = usePrevious(state);
|
|
30
32
|
useEffect(() => {
|
|
@@ -80,7 +82,7 @@ const Confirmation = ({ state, screen, alignContent = 'left', children, required
|
|
|
80
82
|
const screensMap = getScreensMap ? getScreensMap(confirmationScreens) : confirmationScreens;
|
|
81
83
|
const CurrentScreen = screensMap[screen];
|
|
82
84
|
return (React.createElement(ConfirmationContext.Provider, { value: contextValue },
|
|
83
|
-
React.createElement("div", { className: cn(styles.component, styles[alignContent], className), "data-test-id": dataTestId }, CurrentScreen && React.createElement(CurrentScreen,
|
|
85
|
+
React.createElement("div", { className: cn(styles.component, styles[alignContent], className), "data-test-id": dataTestId }, CurrentScreen && React.createElement(CurrentScreen, { mobile: mobile }))));
|
|
84
86
|
};
|
|
85
87
|
|
|
86
|
-
export {
|
|
88
|
+
export { BaseConfirmation };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* hash: 1y4yr */
|
|
2
|
+
:root {
|
|
3
|
+
--color-light-text-secondary: #546272;
|
|
4
|
+
}
|
|
5
|
+
:root {
|
|
6
|
+
|
|
7
|
+
/* Hard */
|
|
8
|
+
|
|
9
|
+
/* Up */
|
|
10
|
+
|
|
11
|
+
/* Hard up */
|
|
12
|
+
}
|
|
13
|
+
.confirmation__component_n9c29 {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-width: 388px;
|
|
18
|
+
margin: 0 auto;
|
|
19
|
+
color: var(--color-light-text-secondary);
|
|
20
|
+
}
|
|
21
|
+
.confirmation__center_n9c29 {
|
|
22
|
+
align-items: center;
|
|
23
|
+
text-align: center;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import 'classnames';
|
|
3
|
+
import '@alfalab/hooks';
|
|
4
|
+
import '../../utils.js';
|
|
5
|
+
import '../../context.js';
|
|
6
|
+
import '../../types.js';
|
|
7
|
+
import '@alfalab/core-components-code-input/modern';
|
|
8
|
+
import '@alfalab/core-components-link/modern';
|
|
9
|
+
import '@alfalab/core-components-typography/modern';
|
|
10
|
+
import '@alfalab/core-components-button/modern';
|
|
11
|
+
import '../header/component.js';
|
|
12
|
+
import '@alfalab/core-components-loader/modern';
|
|
13
|
+
import '../../countdown-section-2212ec31.js';
|
|
14
|
+
import '../screens/initial/component.js';
|
|
15
|
+
import '../screens/hint/component.js';
|
|
16
|
+
import '../screens/fatal-error/component.js';
|
|
17
|
+
import '../countdown-loader/component.js';
|
|
18
|
+
import '../screens/temp-block/component.js';
|
|
19
|
+
export { BaseConfirmation } from './component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1xam3 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-tertiary: #b6bcc3;
|
|
4
4
|
}
|
|
@@ -10,16 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
/* title */
|
|
15
|
-
|
|
16
|
-
/* text */
|
|
17
|
-
|
|
18
|
-
/* error */
|
|
19
|
-
|
|
20
|
-
/* input */
|
|
21
|
-
}
|
|
22
|
-
.confirmation__circle_2jmtl {
|
|
13
|
+
.confirmation__circle_h5jlk {
|
|
23
14
|
fill: transparent;
|
|
24
15
|
stroke: var(--color-light-graphic-tertiary);
|
|
25
16
|
stroke-width: 2px;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
type HeaderProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Контент шапки
|
|
5
|
+
*/
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Отображать в мобильной версии экран компонента
|
|
9
|
+
*/
|
|
10
|
+
mobile?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const Header: FC<HeaderProps>;
|
|
13
|
+
export { HeaderProps, Header };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
4
|
+
|
|
5
|
+
var styles = {"header":"confirmation__header_smzfd","typography":"confirmation__typography_smzfd","typographyMobile":"confirmation__typographyMobile_smzfd"};
|
|
6
|
+
require('./index.css')
|
|
7
|
+
|
|
8
|
+
const Header = ({ mobile, children }) => (React.createElement(Typography.Title, { className: cn(styles.header, styles.typography, { [styles.typographyMobile]: mobile }), tag: 'h3', color: 'primary' }, children));
|
|
9
|
+
|
|
10
|
+
export { Header };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* hash: cyuy8 */
|
|
2
|
+
:root {
|
|
3
|
+
|
|
4
|
+
/* Hard */
|
|
5
|
+
|
|
6
|
+
/* Up */
|
|
7
|
+
|
|
8
|
+
/* Hard up */
|
|
9
|
+
}
|
|
10
|
+
:root {
|
|
11
|
+
--gap-xl: 24px;
|
|
12
|
+
}
|
|
13
|
+
:root {
|
|
14
|
+
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
15
|
+
sans-serif;
|
|
16
|
+
}
|
|
17
|
+
:root {
|
|
18
|
+
/* desktop */
|
|
19
|
+
--confirmation-header-desktop-font-size: 22px;
|
|
20
|
+
--confirmation-header-desktop-line-height: 26px;
|
|
21
|
+
--confirmation-header-desktop-font-weight: bold;
|
|
22
|
+
--confirmation-header-desktop-font-family: var(--font-family-system);
|
|
23
|
+
|
|
24
|
+
/* mobile */
|
|
25
|
+
--confirmation-header-mobile-font-size: 18px;
|
|
26
|
+
--confirmation-header-mobile-line-height: 22px;
|
|
27
|
+
--confirmation-header-mobile-font-weight: bold;
|
|
28
|
+
--confirmation-header-mobile-font-family: var(--font-family-system);
|
|
29
|
+
|
|
30
|
+
/* text */
|
|
31
|
+
|
|
32
|
+
/* header */
|
|
33
|
+
--confirmation-header-font-feature-settings: normal
|
|
34
|
+
}
|
|
35
|
+
.confirmation__header_smzfd {
|
|
36
|
+
margin-bottom: var(--gap-xl);
|
|
37
|
+
}
|
|
38
|
+
.confirmation__typography_smzfd {
|
|
39
|
+
font-feature-settings: var(--confirmation-header-font-feature-settings);
|
|
40
|
+
font-size: var(--confirmation-header-desktop-font-size);
|
|
41
|
+
line-height: var(--confirmation-header-desktop-line-height);
|
|
42
|
+
font-weight: var(--confirmation-header-desktop-font-weight);
|
|
43
|
+
font-family: var(--confirmation-header-desktop-font-family);
|
|
44
|
+
}
|
|
45
|
+
.confirmation__typographyMobile_smzfd {
|
|
46
|
+
font-feature-settings: var(--confirmation-header-font-feature-settings);
|
|
47
|
+
font-size: var(--confirmation-header-mobile-font-size);
|
|
48
|
+
line-height: var(--confirmation-header-mobile-line-height);
|
|
49
|
+
font-weight: var(--confirmation-header-mobile-font-weight);
|
|
50
|
+
font-family: var(--confirmation-header-mobile-font-family);
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -5,9 +5,11 @@ import '../utils.js';
|
|
|
5
5
|
import '../context.js';
|
|
6
6
|
import '@alfalab/core-components-code-input/modern';
|
|
7
7
|
import '@alfalab/core-components-link/modern';
|
|
8
|
-
import '
|
|
9
|
-
import '@alfalab/core-components-loader/modern';
|
|
8
|
+
import '@alfalab/core-components-typography/modern';
|
|
10
9
|
import '@alfalab/core-components-button/modern';
|
|
10
|
+
import './header/component.js';
|
|
11
|
+
import '@alfalab/core-components-loader/modern';
|
|
12
|
+
import '../countdown-section-2212ec31.js';
|
|
11
13
|
export { Initial } from './screens/initial/component.js';
|
|
12
14
|
export { Hint } from './screens/hint/component.js';
|
|
13
15
|
export { FatalError } from './screens/fatal-error/component.js';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type FatalErrorProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Отображать в мобильной версии экран компонента
|
|
5
|
+
*/
|
|
6
|
+
mobile?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const FatalError: FC<FatalErrorProps>;
|
|
9
|
+
export { FatalErrorProps, FatalError };
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import React, { useContext
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
2
3
|
import '../../../utils.js';
|
|
3
4
|
import { ConfirmationContext } from '../../../context.js';
|
|
5
|
+
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
4
6
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
7
|
+
import { Header } from '../../header/component.js';
|
|
5
8
|
|
|
6
|
-
var styles = {"
|
|
9
|
+
var styles = {"typographyTheme":"confirmation__typographyTheme_6vibs","left":"confirmation__left_6vibs","center":"confirmation__center_6vibs","button":"confirmation__button_6vibs"};
|
|
7
10
|
require('./index.css')
|
|
8
11
|
|
|
9
|
-
const FatalError = () => {
|
|
10
|
-
const { texts, onFatalErrorOkButtonClick } = useContext(ConfirmationContext);
|
|
11
|
-
return (React.createElement(
|
|
12
|
-
React.createElement(
|
|
13
|
-
React.createElement(
|
|
14
|
-
React.createElement(Button, { size: 'xs', view: 'secondary', onClick: onFatalErrorOkButtonClick }, texts.fatalErrorButton)));
|
|
12
|
+
const FatalError = ({ mobile }) => {
|
|
13
|
+
const { alignContent, texts, onFatalErrorOkButtonClick } = useContext(ConfirmationContext);
|
|
14
|
+
return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
|
|
15
|
+
React.createElement(Header, { mobile: mobile }, texts.fatalErrorTitle),
|
|
16
|
+
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn({ [styles.typographyTheme]: !mobile }) }, texts.fatalErrorDescription),
|
|
17
|
+
React.createElement(Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: onFatalErrorOkButtonClick, className: styles.button }, texts.fatalErrorButton)));
|
|
15
18
|
};
|
|
16
19
|
|
|
17
20
|
export { FatalError };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ceovk */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
|
-
--color-light-text-secondary: #546272;
|
|
5
4
|
}
|
|
6
5
|
:root {
|
|
7
6
|
|
|
@@ -12,7 +11,6 @@
|
|
|
12
11
|
/* Hard up */
|
|
13
12
|
}
|
|
14
13
|
:root {
|
|
15
|
-
--gap-xl: 24px;
|
|
16
14
|
--gap-2xl: 32px;
|
|
17
15
|
}
|
|
18
16
|
:root {
|
|
@@ -20,42 +18,32 @@
|
|
|
20
18
|
sans-serif;
|
|
21
19
|
}
|
|
22
20
|
:root {
|
|
23
|
-
/*
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
--confirmation-title-font-weight: 700;
|
|
27
|
-
--confirmation-title-font-family: var(--font-family-system);
|
|
28
|
-
--confirmation-title-color: var(--color-light-text-primary);
|
|
29
|
-
--confirmation-title-font-feature-settings: normal;
|
|
21
|
+
/* desktop */
|
|
22
|
+
|
|
23
|
+
/* mobile */
|
|
30
24
|
|
|
31
25
|
/* text */
|
|
32
26
|
--confirmation-text-font-size: 16px;
|
|
33
27
|
--confirmation-text-line-height: 24px;
|
|
34
28
|
--confirmation-text-font-weight: 400;
|
|
35
29
|
--confirmation-text-font-family: var(--font-family-system);
|
|
36
|
-
--confirmation-text-color: var(--color-light-text-
|
|
37
|
-
|
|
38
|
-
/* error */
|
|
30
|
+
--confirmation-text-color: var(--color-light-text-primary)
|
|
39
31
|
|
|
40
|
-
/*
|
|
41
|
-
}
|
|
42
|
-
.
|
|
43
|
-
margin: 0;
|
|
44
|
-
margin-bottom: var(--gap-xl);
|
|
45
|
-
font-size: var(--confirmation-title-font-size);
|
|
46
|
-
line-height: var(--confirmation-title-line-height);
|
|
47
|
-
font-weight: var(--confirmation-title-font-weight);
|
|
48
|
-
font-family: var(--confirmation-title-font-family);
|
|
49
|
-
color: var(--confirmation-title-color);
|
|
50
|
-
font-feature-settings: var(--confirmation-title-font-feature-settings);
|
|
51
|
-
}
|
|
52
|
-
.confirmation__description_aeh9b {
|
|
32
|
+
/* header */
|
|
33
|
+
}
|
|
34
|
+
.confirmation__typographyTheme_6vibs {
|
|
53
35
|
font-size: var(--confirmation-text-font-size);
|
|
54
36
|
line-height: var(--confirmation-text-line-height);
|
|
55
37
|
font-weight: var(--confirmation-text-font-weight);
|
|
56
38
|
font-family: var(--confirmation-text-font-family);
|
|
57
39
|
color: var(--confirmation-text-color);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
40
|
+
}
|
|
41
|
+
.confirmation__left_6vibs {
|
|
42
|
+
align-items: flex-start;
|
|
43
|
+
}
|
|
44
|
+
.confirmation__center_6vibs {
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
47
|
+
.confirmation__button_6vibs {
|
|
48
|
+
margin-top: var(--gap-2xl);
|
|
61
49
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
+
import 'classnames';
|
|
2
3
|
import '../../../utils.js';
|
|
3
4
|
import '../../../context.js';
|
|
5
|
+
import '@alfalab/core-components-typography/modern';
|
|
4
6
|
import '@alfalab/core-components-button/modern';
|
|
7
|
+
import '../../header/component.js';
|
|
5
8
|
export { FatalError } from './component.js';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type HintProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Отображать в мобильной версии экран компонента
|
|
5
|
+
*/
|
|
6
|
+
mobile?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const Hint: FC<HintProps>;
|
|
9
|
+
export { HintProps, Hint };
|
|
@@ -3,12 +3,14 @@ import cn from 'classnames';
|
|
|
3
3
|
import '../../../utils.js';
|
|
4
4
|
import { ConfirmationContext } from '../../../context.js';
|
|
5
5
|
import { Link } from '@alfalab/core-components-link/modern';
|
|
6
|
+
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
6
7
|
import { Button } from '@alfalab/core-components-button/modern';
|
|
8
|
+
import { Header } from '../../header/component.js';
|
|
7
9
|
|
|
8
|
-
var styles = {"center":"
|
|
10
|
+
var styles = {"center":"confirmation__center_1yw7b","hintWrap":"confirmation__hintWrap_1yw7b","text":"confirmation__text_1yw7b","typographyTheme":"confirmation__typographyTheme_1yw7b","phonesWrap":"confirmation__phonesWrap_1yw7b","phoneWrap":"confirmation__phoneWrap_1yw7b","phoneLink":"confirmation__phoneLink_1yw7b","hintButton":"confirmation__hintButton_1yw7b","phoneContentMobile":"confirmation__phoneContentMobile_1yw7b"};
|
|
9
11
|
require('./index.css')
|
|
10
12
|
|
|
11
|
-
const Hint = () => {
|
|
13
|
+
const Hint = ({ mobile }) => {
|
|
12
14
|
const { alignContent, texts, onChangeScreen, onChangeState } = useContext(ConfirmationContext);
|
|
13
15
|
const handleReturnButtonClick = () => {
|
|
14
16
|
onChangeScreen('INITIAL');
|
|
@@ -16,21 +18,17 @@ const Hint = () => {
|
|
|
16
18
|
};
|
|
17
19
|
return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
|
|
18
20
|
React.createElement("div", { className: styles.hintWrap },
|
|
19
|
-
React.createElement(
|
|
20
|
-
React.createElement(
|
|
21
|
+
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?"),
|
|
22
|
+
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, "\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."),
|
|
21
23
|
React.createElement("div", { className: styles.phonesWrap },
|
|
22
|
-
React.createElement("div", { className: styles.phoneWrap },
|
|
23
|
-
React.createElement(Link, { href: 'tel:+78002000000', className: styles.phoneLink }, "8 800 200-00-00"),
|
|
24
|
-
React.createElement(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
' ',
|
|
31
|
-
"\u2014\u00A0\u0432\u00A0\u041C\u043E\u0441\u043A\u0432\u0435 \u0438\u00A0\u0437\u0430\u00A0\u0433\u0440\u0430\u043D\u0438\u0446\u0435\u0439"))),
|
|
32
|
-
React.createElement("span", { className: styles.text }, "\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."),
|
|
33
|
-
React.createElement(Button, { size: 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton }, texts.hintButton))));
|
|
24
|
+
React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
|
|
25
|
+
React.createElement(Link, { href: 'tel:+78002000000', underline: false, className: styles.phoneLink }, "8 800 200-00-00"),
|
|
26
|
+
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, mobile ? (React.createElement(React.Fragment, null, "\u0414\u043B\u044F\u00A0 \u0437\u0432\u043E\u043D\u043A\u043E\u0432 \u043F\u043E\u00A0\u0420\u043E\u0441\u0441\u0438\u0438")) : (React.createElement(React.Fragment, null, " \u2014\u00A0\u0434\u043B\u044F \u0437\u0432\u043E\u043D\u043A\u043E\u0432 \u043F\u043E\u00A0\u0420\u043E\u0441\u0441\u0438\u0438")))),
|
|
27
|
+
React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
|
|
28
|
+
React.createElement(Link, { href: 'tel:+74957888878', underline: false, className: styles.phoneLink }, "+7 495 78-888-78"),
|
|
29
|
+
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, mobile ? (React.createElement(React.Fragment, null, "\u0412\u00A0\u041C\u043E\u0441\u043A\u0432\u0435 \u0438\u00A0\u0437\u0430\u00A0\u0433\u0440\u0430\u043D\u0438\u0446\u0435\u0439")) : (React.createElement(React.Fragment, null, " \u2014\u00A0\u0432\u00A0\u041C\u043E\u0441\u043A\u0432\u0435 \u0438\u00A0\u0437\u0430\u00A0\u0433\u0440\u0430\u043D\u0438\u0446\u0435\u0439"))))),
|
|
30
|
+
React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, "\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
|
+
React.createElement(Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton }, texts.hintButton))));
|
|
34
32
|
};
|
|
35
33
|
|
|
36
34
|
export { Hint };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3ljrc */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
|
-
--color-light-text-secondary: #546272;
|
|
5
4
|
}
|
|
6
5
|
:root {
|
|
7
6
|
|
|
@@ -21,83 +20,61 @@
|
|
|
21
20
|
sans-serif;
|
|
22
21
|
}
|
|
23
22
|
:root {
|
|
24
|
-
/*
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
--confirmation-title-font-weight: 700;
|
|
28
|
-
--confirmation-title-font-family: var(--font-family-system);
|
|
29
|
-
--confirmation-title-color: var(--color-light-text-primary);
|
|
30
|
-
--confirmation-title-font-feature-settings: normal;
|
|
23
|
+
/* desktop */
|
|
24
|
+
|
|
25
|
+
/* mobile */
|
|
31
26
|
|
|
32
27
|
/* text */
|
|
33
28
|
--confirmation-text-font-size: 16px;
|
|
34
29
|
--confirmation-text-line-height: 24px;
|
|
35
30
|
--confirmation-text-font-weight: 400;
|
|
36
31
|
--confirmation-text-font-family: var(--font-family-system);
|
|
37
|
-
--confirmation-text-color: var(--color-light-text-
|
|
38
|
-
|
|
39
|
-
/* error */
|
|
32
|
+
--confirmation-text-color: var(--color-light-text-primary)
|
|
40
33
|
|
|
41
|
-
/*
|
|
34
|
+
/* header */
|
|
42
35
|
}
|
|
43
|
-
.
|
|
36
|
+
.confirmation__center_1yw7b .confirmation__hintWrap_1yw7b {
|
|
44
37
|
align-items: center;
|
|
45
38
|
}
|
|
46
|
-
.
|
|
47
|
-
align-items: center;
|
|
48
|
-
}
|
|
49
|
-
.confirmation__hintWrap_m8zyz {
|
|
39
|
+
.confirmation__hintWrap_1yw7b {
|
|
50
40
|
display: flex;
|
|
51
41
|
flex-direction: column;
|
|
52
|
-
align-items: flex-start
|
|
42
|
+
align-items: flex-start
|
|
53
43
|
}
|
|
54
|
-
.
|
|
55
|
-
|
|
44
|
+
.confirmation__hintWrap_1yw7b span:last-of-type {
|
|
45
|
+
margin-bottom: 0;
|
|
46
|
+
}
|
|
47
|
+
.confirmation__text_1yw7b {
|
|
56
48
|
margin-bottom: var(--gap-xl);
|
|
57
|
-
font-size: var(--confirmation-title-font-size);
|
|
58
|
-
line-height: var(--confirmation-title-line-height);
|
|
59
|
-
font-weight: var(--confirmation-title-font-weight);
|
|
60
|
-
font-family: var(--confirmation-title-font-family);
|
|
61
|
-
color: var(--confirmation-title-color);
|
|
62
|
-
font-feature-settings: var(--confirmation-title-font-feature-settings);
|
|
63
49
|
}
|
|
64
|
-
.
|
|
50
|
+
.confirmation__typographyTheme_1yw7b {
|
|
65
51
|
font-size: var(--confirmation-text-font-size);
|
|
66
52
|
line-height: var(--confirmation-text-line-height);
|
|
67
53
|
font-weight: var(--confirmation-text-font-weight);
|
|
68
54
|
font-family: var(--confirmation-text-font-family);
|
|
69
55
|
color: var(--confirmation-text-color);
|
|
70
|
-
|
|
71
|
-
margin-bottom: var(--gap-xl);
|
|
72
56
|
}
|
|
73
|
-
.
|
|
74
|
-
font-size: var(--confirmation-text-font-size);
|
|
75
|
-
line-height: var(--confirmation-text-line-height);
|
|
76
|
-
font-weight: var(--confirmation-text-font-weight);
|
|
77
|
-
font-family: var(--confirmation-text-font-family);
|
|
78
|
-
color: var(--confirmation-text-color);
|
|
79
|
-
|
|
57
|
+
.confirmation__phonesWrap_1yw7b {
|
|
80
58
|
display: flex;
|
|
81
59
|
flex-direction: column;
|
|
82
60
|
margin-bottom: var(--gap-xl);
|
|
83
61
|
}
|
|
84
|
-
.
|
|
62
|
+
.confirmation__phoneWrap_1yw7b {
|
|
85
63
|
margin-bottom: var(--gap-xs)
|
|
86
64
|
}
|
|
87
|
-
.
|
|
65
|
+
.confirmation__phoneWrap_1yw7b:last-child {
|
|
88
66
|
margin-bottom: 0;
|
|
89
67
|
}
|
|
90
|
-
.
|
|
68
|
+
.confirmation__phoneLink_1yw7b {
|
|
91
69
|
font-size: 16px;
|
|
92
70
|
line-height: 24px;
|
|
93
|
-
font-weight: 500
|
|
94
|
-
}
|
|
95
|
-
.confirmation__phoneLink_m8zyz > span {
|
|
96
|
-
border-bottom: none;
|
|
97
|
-
}
|
|
98
|
-
.confirmation__phoneDescription_m8zyz {
|
|
99
|
-
color: var(--confirmation-text-color);
|
|
71
|
+
font-weight: 500;
|
|
100
72
|
}
|
|
101
|
-
.
|
|
73
|
+
.confirmation__hintButton_1yw7b {
|
|
102
74
|
margin-top: var(--gap-2xl);
|
|
103
75
|
}
|
|
76
|
+
.confirmation__phoneContentMobile_1yw7b {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
align-items: center;
|
|
80
|
+
}
|
|
@@ -3,5 +3,7 @@ import 'classnames';
|
|
|
3
3
|
import '../../../utils.js';
|
|
4
4
|
import '../../../context.js';
|
|
5
5
|
import '@alfalab/core-components-link/modern';
|
|
6
|
+
import '@alfalab/core-components-typography/modern';
|
|
6
7
|
import '@alfalab/core-components-button/modern';
|
|
8
|
+
import '../../header/component.js';
|
|
7
9
|
export { Hint } from './component.js';
|
|
@@ -5,9 +5,11 @@ import '../../utils.js';
|
|
|
5
5
|
import '../../context.js';
|
|
6
6
|
import '@alfalab/core-components-code-input/modern';
|
|
7
7
|
import '@alfalab/core-components-link/modern';
|
|
8
|
-
import '
|
|
9
|
-
import '@alfalab/core-components-loader/modern';
|
|
8
|
+
import '@alfalab/core-components-typography/modern';
|
|
10
9
|
import '@alfalab/core-components-button/modern';
|
|
10
|
+
import '../header/component.js';
|
|
11
|
+
import '@alfalab/core-components-loader/modern';
|
|
12
|
+
import '../../countdown-section-2212ec31.js';
|
|
11
13
|
export { Initial } from './initial/component.js';
|
|
12
14
|
export { Hint } from './hint/component.js';
|
|
13
15
|
export { FatalError } from './fatal-error/component.js';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type InitialProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Отображать в мобильной версии экран компонента
|
|
5
|
+
*/
|
|
6
|
+
mobile?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const Initial: FC<InitialProps>;
|
|
9
|
+
export { InitialProps, Initial };
|