@alfalab/core-components-confirmation 12.3.5 → 12.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{component-5a9a6986.d.ts → component-c264f662.d.ts} +0 -0
- package/{component-5a9a6986.js → component-c264f662.js} +8 -3
- package/component.desktop.js +7 -3
- package/component.mobile.js +9 -4
- package/component.responsive.d.ts +7 -1
- package/component.responsive.js +11 -6
- package/components/base-confirmation/component.js +2 -2
- package/components/base-confirmation/index.css +2 -2
- package/components/base-confirmation/index.d.ts +1 -1
- package/components/base-confirmation/index.js +2 -2
- package/components/countdown-loader/component.js +7 -3
- package/components/countdown-loader/index.css +2 -2
- package/components/header/component.js +7 -2
- package/components/header/index.css +4 -4
- package/components/index.js +1 -1
- package/components/screens/fatal-error/component.js +10 -5
- package/components/screens/fatal-error/index.css +6 -6
- package/components/screens/hint/component.js +18 -13
- package/components/screens/hint/index.css +12 -12
- package/components/screens/index.js +1 -1
- package/components/screens/initial/component.js +12 -7
- package/components/screens/initial/countdown-section.js +1 -1
- package/components/screens/initial/index.css +18 -18
- package/components/screens/initial/index.js +1 -1
- package/components/screens/temp-block/component.js +11 -6
- package/components/screens/temp-block/index.css +7 -7
- package/{countdown-section-b356354f.d.ts → countdown-section-b5d05328.d.ts} +0 -0
- package/countdown-section-b5d05328.js +49 -0
- package/cssm/{component-895f6f86.d.ts → component-3c591970.d.ts} +0 -0
- package/cssm/{component-895f6f86.js → component-3c591970.js} +8 -2
- package/cssm/component.desktop.js +6 -2
- package/cssm/component.mobile.js +8 -2
- package/cssm/component.responsive.d.ts +7 -1
- package/cssm/component.responsive.js +10 -5
- package/cssm/components/base-confirmation/component.js +1 -1
- package/cssm/components/base-confirmation/index.d.ts +1 -1
- package/cssm/components/base-confirmation/index.js +1 -1
- package/cssm/components/countdown-loader/component.js +7 -2
- package/cssm/components/header/component.js +7 -1
- package/cssm/components/screens/fatal-error/component.js +10 -4
- package/cssm/components/screens/hint/component.js +18 -12
- package/cssm/components/screens/initial/component.js +12 -6
- package/cssm/components/screens/initial/countdown-section.js +15 -9
- package/cssm/components/screens/initial/index.module.css +1 -1
- package/cssm/components/screens/temp-block/component.js +11 -5
- package/cssm/desktop.js +1 -1
- package/cssm/index.js +1 -1
- package/cssm/mobile.js +1 -1
- package/cssm/responsive.js +1 -1
- package/desktop.js +2 -2
- package/esm/{component-3212dc9c.d.ts → component-00575dc2.d.ts} +0 -0
- package/esm/{component-3212dc9c.js → component-00575dc2.js} +1 -1
- package/esm/component.desktop.js +2 -2
- package/esm/component.mobile.js +3 -3
- package/esm/component.responsive.d.ts +7 -1
- package/esm/component.responsive.js +7 -6
- package/esm/components/base-confirmation/component.js +2 -2
- package/esm/components/base-confirmation/index.css +2 -2
- package/esm/components/base-confirmation/index.d.ts +1 -1
- package/esm/components/base-confirmation/index.js +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/index.js +1 -1
- package/esm/components/screens/fatal-error/component.js +1 -1
- package/esm/components/screens/fatal-error/index.css +6 -6
- package/esm/components/screens/hint/component.js +1 -1
- package/esm/components/screens/hint/index.css +12 -12
- package/esm/components/screens/index.js +1 -1
- 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 +18 -18
- package/esm/components/screens/initial/index.js +1 -1
- package/esm/components/screens/temp-block/component.js +1 -1
- package/esm/components/screens/temp-block/index.css +7 -7
- package/esm/{countdown-section-5a8d74ee.d.ts → countdown-section-562d90f1.d.ts} +0 -0
- package/esm/{countdown-section-5a8d74ee.js → countdown-section-562d90f1.js} +1 -1
- package/esm/desktop.js +2 -2
- package/esm/index.js +2 -2
- package/esm/mobile.css +2 -2
- package/esm/mobile.js +2 -2
- package/esm/responsive.js +2 -2
- package/index.js +2 -2
- package/mobile.css +2 -2
- package/mobile.js +2 -2
- package/modern/component.desktop.js +1 -1
- package/modern/component.mobile.js +2 -2
- package/modern/component.responsive.d.ts +7 -1
- package/modern/component.responsive.js +5 -5
- package/modern/components/base-confirmation/component.js +2 -2
- package/modern/components/base-confirmation/index.css +2 -2
- package/modern/components/base-confirmation/index.js +1 -1
- 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/index.js +1 -1
- package/modern/components/screens/fatal-error/component.js +1 -1
- package/modern/components/screens/fatal-error/index.css +6 -6
- package/modern/components/screens/hint/component.js +1 -1
- package/modern/components/screens/hint/index.css +12 -12
- package/modern/components/screens/index.js +1 -1
- 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 +18 -18
- package/modern/components/screens/initial/index.js +1 -1
- package/modern/components/screens/temp-block/component.js +1 -1
- package/modern/components/screens/temp-block/index.css +7 -7
- package/modern/{countdown-section-b8b393a2.d.ts → countdown-section-311c1fac.d.ts} +0 -0
- package/modern/{countdown-section-b8b393a2.js → countdown-section-311c1fac.js} +1 -1
- package/modern/desktop.js +1 -1
- package/modern/index.js +1 -1
- package/modern/mobile.css +2 -2
- package/modern/mobile.js +1 -1
- package/modern/responsive.js +1 -1
- package/package.json +6 -6
- package/responsive.js +2 -2
- package/countdown-section-b356354f.js +0 -44
|
File without changes
|
|
@@ -11,6 +11,11 @@ var components_screens_hint_component = require('./components/screens/hint/compo
|
|
|
11
11
|
var components_screens_fatalError_component = require('./components/screens/fatal-error/component.js');
|
|
12
12
|
var components_screens_tempBlock_component = require('./components/screens/temp-block/component.js');
|
|
13
13
|
|
|
14
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
15
|
+
|
|
16
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
17
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
18
|
+
|
|
14
19
|
/******************************************************************************
|
|
15
20
|
Copyright (c) Microsoft Corporation.
|
|
16
21
|
|
|
@@ -50,7 +55,7 @@ function __rest(s, e) {
|
|
|
50
55
|
return t;
|
|
51
56
|
}
|
|
52
57
|
|
|
53
|
-
var styles = {"component":"
|
|
58
|
+
var styles = {"component":"confirmation__component_56qtr"};
|
|
54
59
|
require('./components/base-confirmation/index.css')
|
|
55
60
|
|
|
56
61
|
var confirmationScreens = {
|
|
@@ -117,8 +122,8 @@ var BaseConfirmation = function (_a) {
|
|
|
117
122
|
};
|
|
118
123
|
var screensMap = getScreensMap ? getScreensMap(confirmationScreens) : confirmationScreens;
|
|
119
124
|
var CurrentScreen = screensMap[screen];
|
|
120
|
-
return (
|
|
121
|
-
|
|
125
|
+
return (React__default.default.createElement(context.ConfirmationContext.Provider, { value: contextValue },
|
|
126
|
+
React__default.default.createElement("div", { className: cn__default.default(styles.component, className), "data-test-id": dataTestId }, CurrentScreen && React__default.default.createElement(CurrentScreen, { mobile: mobile }))));
|
|
122
127
|
};
|
|
123
128
|
|
|
124
129
|
exports.BaseConfirmation = BaseConfirmation;
|
package/component.desktop.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var components_baseConfirmation_component = require('./component-
|
|
3
|
+
var components_baseConfirmation_component = require('./component-c264f662.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('@alfalab/hooks');
|
|
@@ -13,13 +13,17 @@ require('@alfalab/core-components-code-input');
|
|
|
13
13
|
require('@alfalab/core-components-link');
|
|
14
14
|
require('@alfalab/core-components-typography');
|
|
15
15
|
require('./components/header/component.js');
|
|
16
|
-
require('./countdown-section-
|
|
16
|
+
require('./countdown-section-b5d05328.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
18
|
require('./components/screens/hint/component.js');
|
|
19
19
|
require('./components/screens/fatal-error/component.js');
|
|
20
20
|
require('./components/screens/temp-block/component.js');
|
|
21
21
|
require('./components/countdown-loader/component.js');
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
24
|
+
|
|
25
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
|
+
|
|
27
|
+
var ConfirmationDesktop = function (props) { return (React__default.default.createElement(components_baseConfirmation_component.BaseConfirmation, components_baseConfirmation_component.__assign({}, props))); };
|
|
24
28
|
|
|
25
29
|
exports.ConfirmationDesktop = ConfirmationDesktop;
|
package/component.mobile.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var components_baseConfirmation_component = require('./component-
|
|
3
|
+
var components_baseConfirmation_component = require('./component-c264f662.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
require('@alfalab/hooks');
|
|
@@ -13,19 +13,24 @@ require('@alfalab/core-components-code-input');
|
|
|
13
13
|
require('@alfalab/core-components-link');
|
|
14
14
|
require('@alfalab/core-components-typography');
|
|
15
15
|
require('./components/header/component.js');
|
|
16
|
-
require('./countdown-section-
|
|
16
|
+
require('./countdown-section-b5d05328.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
18
|
require('./components/screens/hint/component.js');
|
|
19
19
|
require('./components/screens/fatal-error/component.js');
|
|
20
20
|
require('./components/screens/temp-block/component.js');
|
|
21
21
|
require('./components/countdown-loader/component.js');
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
24
|
+
|
|
25
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
27
|
+
|
|
28
|
+
var styles = {"container":"confirmation__container_13isz"};
|
|
24
29
|
require('./mobile.css')
|
|
25
30
|
|
|
26
31
|
var ConfirmationMobile = function (_a) {
|
|
27
32
|
var className = _a.className, resProps = components_baseConfirmation_component.__rest(_a, ["className"]);
|
|
28
|
-
return (
|
|
33
|
+
return (React__default.default.createElement(components_baseConfirmation_component.BaseConfirmation, components_baseConfirmation_component.__assign({ mobile: true, className: cn__default.default(className, styles.container) }, resProps)));
|
|
29
34
|
};
|
|
30
35
|
|
|
31
36
|
exports.ConfirmationMobile = ConfirmationMobile;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ConfirmationProps } from "./types";
|
|
3
|
-
type ResponsiveConfirmationProps = Omit<ConfirmationProps, 'confirmationScreens'
|
|
3
|
+
type ResponsiveConfirmationProps = Omit<ConfirmationProps, 'confirmationScreens'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
6
|
+
* @default 1024
|
|
7
|
+
*/
|
|
8
|
+
breakpoint?: number;
|
|
9
|
+
};
|
|
4
10
|
type ConfirmationMedia = 'desktop' | 'mobile';
|
|
5
11
|
declare const ConfirmationResponsive: FC<ResponsiveConfirmationProps>;
|
|
6
12
|
export { ResponsiveConfirmationProps, ConfirmationMedia, ConfirmationResponsive };
|
package/component.responsive.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var components_baseConfirmation_component = require('./component-
|
|
3
|
+
var components_baseConfirmation_component = require('./component-c264f662.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var hooks = require('@alfalab/hooks');
|
|
6
6
|
var component_desktop = require('./component.desktop.js');
|
|
@@ -15,19 +15,24 @@ require('@alfalab/core-components-code-input');
|
|
|
15
15
|
require('@alfalab/core-components-link');
|
|
16
16
|
require('@alfalab/core-components-typography');
|
|
17
17
|
require('./components/header/component.js');
|
|
18
|
-
require('./countdown-section-
|
|
18
|
+
require('./countdown-section-b5d05328.js');
|
|
19
19
|
require('@alfalab/core-components-loader');
|
|
20
20
|
require('./components/screens/hint/component.js');
|
|
21
21
|
require('./components/screens/fatal-error/component.js');
|
|
22
22
|
require('./components/screens/temp-block/component.js');
|
|
23
23
|
require('./components/countdown-loader/component.js');
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
26
|
+
|
|
27
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
28
|
+
|
|
29
|
+
var ConfirmationResponsive = function (_a) {
|
|
30
|
+
var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = components_baseConfirmation_component.__rest(_a, ["breakpoint"]);
|
|
26
31
|
var view = hooks.useMedia([
|
|
27
|
-
['mobile',
|
|
28
|
-
['desktop',
|
|
32
|
+
['mobile', "(max-width: ".concat(breakpoint - 1, "px)")],
|
|
33
|
+
['desktop', "(min-width: ".concat(breakpoint, "px)")],
|
|
29
34
|
], 'desktop')[0];
|
|
30
|
-
return view === 'desktop' ? (
|
|
35
|
+
return view === 'desktop' ? (React__default.default.createElement(component_desktop.ConfirmationDesktop, components_baseConfirmation_component.__assign({}, restProps))) : (React__default.default.createElement(component_mobile.ConfirmationMobile, components_baseConfirmation_component.__assign({}, restProps)));
|
|
31
36
|
};
|
|
32
37
|
|
|
33
38
|
exports.ConfirmationResponsive = ConfirmationResponsive;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var components_baseConfirmation_component = require('../../component-
|
|
3
|
+
var components_baseConfirmation_component = require('../../component-c264f662.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('@alfalab/hooks');
|
|
@@ -16,7 +16,7 @@ require('@alfalab/core-components-code-input');
|
|
|
16
16
|
require('@alfalab/core-components-link');
|
|
17
17
|
require('@alfalab/core-components-typography');
|
|
18
18
|
require('../header/component.js');
|
|
19
|
-
require('../../countdown-section-
|
|
19
|
+
require('../../countdown-section-b5d05328.js');
|
|
20
20
|
require('@alfalab/core-components-loader');
|
|
21
21
|
require('../countdown-loader/component.js');
|
|
22
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ni6vu */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.confirmation__component_56qtr {
|
|
14
14
|
width: 100%;
|
|
15
15
|
max-width: 388px;
|
|
16
16
|
margin: 0 auto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-c264f662";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var components_baseConfirmation_component = require('../../component-
|
|
3
|
+
var components_baseConfirmation_component = require('../../component-c264f662.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('@alfalab/hooks');
|
|
@@ -13,7 +13,7 @@ require('@alfalab/core-components-code-input');
|
|
|
13
13
|
require('@alfalab/core-components-link');
|
|
14
14
|
require('@alfalab/core-components-typography');
|
|
15
15
|
require('../header/component.js');
|
|
16
|
-
require('../../countdown-section-
|
|
16
|
+
require('../../countdown-section-b5d05328.js');
|
|
17
17
|
require('@alfalab/core-components-loader');
|
|
18
18
|
require('../screens/hint/component.js');
|
|
19
19
|
require('../screens/fatal-error/component.js');
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
+
|
|
7
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
|
+
|
|
9
|
+
var styles = {"circle":"confirmation__circle_1tbt3"};
|
|
6
10
|
require('./index.css')
|
|
7
11
|
|
|
8
12
|
var SIZE = 16;
|
|
@@ -16,8 +20,8 @@ var CountdownLoader = function (_a) {
|
|
|
16
20
|
var value = Math.min(progress, 1);
|
|
17
21
|
var strokeDasharray = CIRCUMFERENCE.toFixed(2);
|
|
18
22
|
var strokeDashoffset = (value * CIRCUMFERENCE).toFixed(2);
|
|
19
|
-
return (
|
|
20
|
-
|
|
23
|
+
return (React__default.default.createElement("svg", { width: SIZE, height: SIZE, viewBox: "0 0 ".concat(SIZE, " ").concat(SIZE), className: className },
|
|
24
|
+
React__default.default.createElement("circle", { cx: CENTER, cy: CENTER, r: RADIUS, strokeDasharray: strokeDasharray, strokeDashoffset: strokeDashoffset, transform: "rotate(-90 ".concat(CENTER, " ").concat(CENTER, ")"), className: styles.circle })));
|
|
21
25
|
};
|
|
22
26
|
|
|
23
27
|
exports.CountdownLoader = CountdownLoader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ived */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-tertiary: #b6bcc3;
|
|
4
4
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
/* Hard up */
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.confirmation__circle_1tbt3 {
|
|
14
14
|
fill: transparent;
|
|
15
15
|
stroke: var(--color-light-graphic-tertiary);
|
|
16
16
|
stroke-width: 2px;
|
|
@@ -4,13 +4,18 @@ var React = require('react');
|
|
|
4
4
|
var cn = require('classnames');
|
|
5
5
|
var coreComponentsTypography = require('@alfalab/core-components-typography');
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
11
|
+
|
|
12
|
+
var styles = {"header":"confirmation__header_qbkqq","typography":"confirmation__typography_qbkqq","typographyMobile":"confirmation__typographyMobile_qbkqq"};
|
|
8
13
|
require('./index.css')
|
|
9
14
|
|
|
10
15
|
var Header = function (_a) {
|
|
11
16
|
var _b;
|
|
12
17
|
var mobile = _a.mobile, children = _a.children;
|
|
13
|
-
return (
|
|
18
|
+
return (React__default.default.createElement(coreComponentsTypography.Typography.Title, { className: cn__default.default(styles.header, styles.typography, (_b = {}, _b[styles.typographyMobile] = mobile, _b)), tag: 'h3', color: 'primary' }, children));
|
|
14
19
|
};
|
|
15
20
|
|
|
16
21
|
exports.Header = Header;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 5whjs */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
/* header */
|
|
33
33
|
--confirmation-header-font-feature-settings: normal
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.confirmation__header_qbkqq.confirmation__header_qbkqq {
|
|
36
36
|
margin-bottom: var(--gap-xl);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.confirmation__typography_qbkqq.confirmation__typography_qbkqq {
|
|
39
39
|
font-feature-settings: var(--confirmation-header-font-feature-settings);
|
|
40
40
|
font-size: var(--confirmation-header-desktop-font-size);
|
|
41
41
|
line-height: var(--confirmation-header-desktop-line-height);
|
|
42
42
|
font-weight: var(--confirmation-header-desktop-font-weight);
|
|
43
43
|
font-family: var(--confirmation-header-desktop-font-family);
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.confirmation__typographyMobile_qbkqq.confirmation__typographyMobile_qbkqq {
|
|
46
46
|
font-feature-settings: var(--confirmation-header-font-feature-settings);
|
|
47
47
|
font-size: var(--confirmation-header-mobile-font-size);
|
|
48
48
|
line-height: var(--confirmation-header-mobile-line-height);
|
package/components/index.js
CHANGED
|
@@ -15,7 +15,7 @@ require('@alfalab/hooks');
|
|
|
15
15
|
require('../context.js');
|
|
16
16
|
require('../utils.js');
|
|
17
17
|
require('./header/component.js');
|
|
18
|
-
require('../countdown-section-
|
|
18
|
+
require('../countdown-section-b5d05328.js');
|
|
19
19
|
require('@alfalab/core-components-loader');
|
|
20
20
|
|
|
21
21
|
|
|
@@ -8,17 +8,22 @@ var context = require('../../../context.js');
|
|
|
8
8
|
var components_header_component = require('../../header/component.js');
|
|
9
9
|
require('../../../utils.js');
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
|
+
|
|
16
|
+
var styles = {"component":"confirmation__component_nnbk2","typographyTheme":"confirmation__typographyTheme_nnbk2","left":"confirmation__left_nnbk2","center":"confirmation__center_nnbk2","button":"confirmation__button_nnbk2"};
|
|
12
17
|
require('./index.css')
|
|
13
18
|
|
|
14
19
|
var FatalError = function (_a) {
|
|
15
20
|
var _b;
|
|
16
21
|
var mobile = _a.mobile;
|
|
17
22
|
var _c = React.useContext(context.ConfirmationContext), alignContent = _c.alignContent, texts = _c.texts, onFatalErrorOkButtonClick = _c.onFatalErrorOkButtonClick;
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
return (React__default.default.createElement("div", { className: cn__default.default(styles.component, styles[alignContent]) },
|
|
24
|
+
React__default.default.createElement(components_header_component.Header, { mobile: mobile }, texts.fatalErrorTitle),
|
|
25
|
+
React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn__default.default((_b = {}, _b[styles.typographyTheme] = !mobile, _b)) }, texts.fatalErrorDescription),
|
|
26
|
+
React__default.default.createElement(coreComponentsButton.Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: onFatalErrorOkButtonClick, className: styles.button }, texts.fatalErrorButton)));
|
|
22
27
|
};
|
|
23
28
|
|
|
24
29
|
exports.FatalError = FatalError;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: fphi7 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
|
|
32
32
|
/* header */
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.confirmation__component_nnbk2 {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.confirmation__typographyTheme_nnbk2.confirmation__typographyTheme_nnbk2 {
|
|
39
39
|
font-size: var(--confirmation-text-font-size);
|
|
40
40
|
line-height: var(--confirmation-text-line-height);
|
|
41
41
|
font-weight: var(--confirmation-text-font-weight);
|
|
42
42
|
font-family: var(--confirmation-text-font-family);
|
|
43
43
|
color: var(--confirmation-text-color);
|
|
44
44
|
}
|
|
45
|
-
.
|
|
45
|
+
.confirmation__left_nnbk2 {
|
|
46
46
|
align-items: flex-start;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.confirmation__center_nnbk2 {
|
|
49
49
|
align-items: center;
|
|
50
50
|
text-align: center;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.confirmation__button_nnbk2 {
|
|
53
53
|
margin-top: var(--gap-2xl);
|
|
54
54
|
}
|
|
@@ -9,7 +9,12 @@ var context = require('../../../context.js');
|
|
|
9
9
|
var components_header_component = require('../../header/component.js');
|
|
10
10
|
require('../../../utils.js');
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
13
|
+
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
16
|
+
|
|
17
|
+
var styles = {"component":"confirmation__component_7kcrs","center":"confirmation__center_7kcrs","text":"confirmation__text_7kcrs","typographyTheme":"confirmation__typographyTheme_7kcrs","phonesWrap":"confirmation__phonesWrap_7kcrs","phoneWrap":"confirmation__phoneWrap_7kcrs","phoneLink":"confirmation__phoneLink_7kcrs","hintButton":"confirmation__hintButton_7kcrs","phoneContentMobile":"confirmation__phoneContentMobile_7kcrs"};
|
|
13
18
|
require('./index.css')
|
|
14
19
|
|
|
15
20
|
var Hint = function (_a) {
|
|
@@ -20,22 +25,22 @@ var Hint = function (_a) {
|
|
|
20
25
|
onChangeScreen('INITIAL');
|
|
21
26
|
onChangeState('INITIAL');
|
|
22
27
|
};
|
|
23
|
-
return (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
return (React__default.default.createElement("div", { className: cn__default.default(styles.component, styles[alignContent]) },
|
|
29
|
+
React__default.default.createElement(components_header_component.Header, { mobile: mobile }, "\u041D\u0435\u00A0\u043F\u0440\u0438\u0445\u043E\u0434\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435?"),
|
|
30
|
+
React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn__default.default(styles.text, (_b = {}, _b[styles.typographyTheme] = !mobile, _b)) }, "\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."),
|
|
31
|
+
React__default.default.createElement("div", { className: styles.phonesWrap },
|
|
32
|
+
React__default.default.createElement("div", { className: cn__default.default(styles.phoneWrap, (_c = {}, _c[styles.phoneContentMobile] = mobile, _c)) },
|
|
33
|
+
React__default.default.createElement(coreComponentsLink.Link, { href: 'tel:+78002000000', underline: false, className: styles.phoneLink }, "8 800 200-00-00"),
|
|
34
|
+
React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn__default.default(styles.text, (_d = {}, _d[styles.typographyTheme] = !mobile, _d)) }, mobile
|
|
30
35
|
? 'Для\u00A0 звонков по\u00A0России'
|
|
31
36
|
: ' \u2014\u00A0для звонков по\u00A0России')),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
React__default.default.createElement("div", { className: cn__default.default(styles.phoneWrap, (_e = {}, _e[styles.phoneContentMobile] = mobile, _e)) },
|
|
38
|
+
React__default.default.createElement(coreComponentsLink.Link, { href: 'tel:+74957888878', underline: false, className: styles.phoneLink }, "+7 495 78-888-78"),
|
|
39
|
+
React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn__default.default(styles.text, (_f = {}, _f[styles.typographyTheme] = !mobile, _f)) }, mobile
|
|
35
40
|
? 'В\u00A0Москве и\u00A0за\u00A0границей'
|
|
36
41
|
: ' \u2014\u00A0в\u00A0Москве и\u00A0за\u00A0границей'))),
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn__default.default(styles.text, (_g = {}, _g[styles.typographyTheme] = !mobile, _g)) }, "\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."),
|
|
43
|
+
React__default.default.createElement(coreComponentsButton.Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton }, texts.hintButton)));
|
|
39
44
|
};
|
|
40
45
|
|
|
41
46
|
exports.Hint = Hint;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 12d1y */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -33,48 +33,48 @@
|
|
|
33
33
|
|
|
34
34
|
/* header */
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.confirmation__component_7kcrs {
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: column;
|
|
39
39
|
align-items: flex-start
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.confirmation__component_7kcrs span:last-of-type {
|
|
42
42
|
margin-bottom: 0;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.confirmation__center_7kcrs {
|
|
45
45
|
align-items: center;
|
|
46
46
|
text-align: center;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.confirmation__text_7kcrs.confirmation__text_7kcrs {
|
|
49
49
|
margin-bottom: var(--gap-xl);
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.confirmation__typographyTheme_7kcrs.confirmation__typographyTheme_7kcrs {
|
|
52
52
|
font-size: var(--confirmation-text-font-size);
|
|
53
53
|
line-height: var(--confirmation-text-line-height);
|
|
54
54
|
font-weight: var(--confirmation-text-font-weight);
|
|
55
55
|
font-family: var(--confirmation-text-font-family);
|
|
56
56
|
color: var(--confirmation-text-color);
|
|
57
57
|
}
|
|
58
|
-
.
|
|
58
|
+
.confirmation__phonesWrap_7kcrs {
|
|
59
59
|
display: flex;
|
|
60
60
|
flex-direction: column;
|
|
61
61
|
margin-bottom: var(--gap-xl);
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.confirmation__phoneWrap_7kcrs {
|
|
64
64
|
margin-bottom: var(--gap-xs)
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.confirmation__phoneWrap_7kcrs:last-child {
|
|
67
67
|
margin-bottom: 0;
|
|
68
68
|
}
|
|
69
|
-
.
|
|
69
|
+
.confirmation__phoneLink_7kcrs.confirmation__phoneLink_7kcrs {
|
|
70
70
|
font-size: 16px;
|
|
71
71
|
line-height: 24px;
|
|
72
72
|
font-weight: 500;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
74
|
+
.confirmation__hintButton_7kcrs {
|
|
75
75
|
margin-top: var(--gap-2xl);
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.confirmation__phoneContentMobile_7kcrs {
|
|
78
78
|
display: flex;
|
|
79
79
|
flex-direction: column;
|
|
80
80
|
align-items: center;
|
|
@@ -14,7 +14,7 @@ require('@alfalab/hooks');
|
|
|
14
14
|
require('../../context.js');
|
|
15
15
|
require('../../utils.js');
|
|
16
16
|
require('../header/component.js');
|
|
17
|
-
require('../../countdown-section-
|
|
17
|
+
require('../../countdown-section-b5d05328.js');
|
|
18
18
|
require('@alfalab/core-components-loader');
|
|
19
19
|
require('../countdown-loader/component.js');
|
|
20
20
|
|
|
@@ -9,10 +9,15 @@ var coreComponentsTypography = require('@alfalab/core-components-typography');
|
|
|
9
9
|
var hooks = require('@alfalab/hooks');
|
|
10
10
|
var context = require('../../../context.js');
|
|
11
11
|
var components_header_component = require('../../header/component.js');
|
|
12
|
-
var components_screens_initial_countdownSection = require('../../../countdown-section-
|
|
12
|
+
var components_screens_initial_countdownSection = require('../../../countdown-section-b5d05328.js');
|
|
13
13
|
require('../../../utils.js');
|
|
14
14
|
require('@alfalab/core-components-loader');
|
|
15
15
|
|
|
16
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
|
+
|
|
18
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
19
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
20
|
+
|
|
16
21
|
var CODE_SEND_HINT_VISIBLE_DURATION = 2000;
|
|
17
22
|
var Initial = function (_a) {
|
|
18
23
|
var _b;
|
|
@@ -83,14 +88,14 @@ var Initial = function (_a) {
|
|
|
83
88
|
};
|
|
84
89
|
var processing = ['CODE_CHECKING', 'CODE_SENDING'].includes(state);
|
|
85
90
|
var timePassed = timeLeft === 0;
|
|
86
|
-
return (
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
return (React__default.default.createElement("div", { className: cn__default.default(components_screens_initial_countdownSection.styles.component, components_screens_initial_countdownSection.styles[alignContent]) },
|
|
92
|
+
React__default.default.createElement(components_header_component.Header, { mobile: mobile }, texts.title),
|
|
93
|
+
React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-medium', color: 'primary', className: cn__default.default(components_screens_initial_countdownSection.styles.phone, (_b = {}, _b[components_screens_initial_countdownSection.styles.typographyTheme] = !mobile, _b)) },
|
|
89
94
|
"\u041A\u043E\u0434 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D \u043D\u0430 ",
|
|
90
95
|
phone),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
mobile ? (
|
|
96
|
+
React__default.default.createElement(coreComponentsCodeInput.CodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, className: cn__default.default(components_screens_initial_countdownSection.styles.containerInput, components_screens_initial_countdownSection.styles.codeInput), onComplete: handleInputComplete, onChange: handleInputChange, clearCodeOnError: clearCodeOnError, onErrorAnimationEnd: handleErrorAnimationEnd }),
|
|
97
|
+
React__default.default.createElement(components_screens_initial_countdownSection.CountdownSection, { processing: processing, timePassed: timePassed, codeSendHintVisible: codeSendHintVisible, handleSmsRetryClick: handleSmsRetryClick, mobile: mobile }),
|
|
98
|
+
mobile ? (React__default.default.createElement(coreComponentsButton.Button, { onClick: handleSmsHintLinkClick, view: 'link', size: 'xs' }, texts.linkToHint)) : (React__default.default.createElement(coreComponentsLink.Link, { onClick: handleSmsHintLinkClick, className: components_screens_initial_countdownSection.styles.smsComeLink, view: mobile ? 'primary' : 'secondary', pseudo: true }, texts.linkToHint))));
|
|
94
99
|
};
|
|
95
100
|
|
|
96
101
|
exports.Initial = Initial;
|
|
@@ -7,7 +7,7 @@ require('@alfalab/core-components-loader');
|
|
|
7
7
|
require('@alfalab/core-components-typography');
|
|
8
8
|
require('../../../context.js');
|
|
9
9
|
require('../../../utils.js');
|
|
10
|
-
var components_screens_initial_countdownSection = require('../../../countdown-section-
|
|
10
|
+
var components_screens_initial_countdownSection = require('../../../countdown-section-b5d05328.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|