@alfalab/core-components-confirmation 12.1.4 → 12.2.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-8a46eb16.d.ts +35 -0
- package/{component.js → component-8a46eb16.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-d2ec5a14.d.ts} +1 -0
- package/countdown-section-d2ec5a14.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-417f2884.d.ts +35 -0
- package/esm/{component.js → component-417f2884.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-9777131a.d.ts} +1 -0
- package/esm/countdown-section-9777131a.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-f68f4069.d.ts} +1 -0
- package/modern/countdown-section-f68f4069.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 +4 -3
- 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
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('react');
|
|
6
|
+
require('classnames');
|
|
6
7
|
require('../../../utils.js');
|
|
7
8
|
require('../../../context.js');
|
|
9
|
+
require('@alfalab/core-components-typography/cssm');
|
|
10
|
+
require('../../header/index.module.css');
|
|
11
|
+
require('../../header/component.js');
|
|
8
12
|
require('../../countdown-loader/index.module.css');
|
|
9
13
|
require('../../countdown-loader/component.js');
|
|
10
14
|
require('./index.module.css');
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--color-light-text-primary: #0b1f35;
|
|
3
|
-
--color-light-text-secondary: #546272;
|
|
4
3
|
}
|
|
5
4
|
:root {
|
|
6
5
|
|
|
@@ -12,51 +11,34 @@
|
|
|
12
11
|
}
|
|
13
12
|
:root {
|
|
14
13
|
--gap-xs: 8px;
|
|
15
|
-
--gap-xl: 24px;
|
|
16
|
-
--gap-2xl: 32px;
|
|
17
14
|
}
|
|
18
15
|
:root {
|
|
19
16
|
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
20
17
|
sans-serif;
|
|
21
18
|
}
|
|
22
19
|
: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;
|
|
20
|
+
/* desktop */
|
|
21
|
+
|
|
22
|
+
/* mobile */
|
|
30
23
|
|
|
31
24
|
/* text */
|
|
32
25
|
--confirmation-text-font-size: 16px;
|
|
33
26
|
--confirmation-text-line-height: 24px;
|
|
34
27
|
--confirmation-text-font-weight: 400;
|
|
35
28
|
--confirmation-text-font-family: var(--font-family-system);
|
|
36
|
-
--confirmation-text-color: var(--color-light-text-
|
|
37
|
-
|
|
38
|
-
/* error */
|
|
29
|
+
--confirmation-text-color: var(--color-light-text-primary)
|
|
39
30
|
|
|
40
|
-
/*
|
|
31
|
+
/* header */
|
|
41
32
|
}
|
|
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
|
-
.description {
|
|
33
|
+
.typographyTheme {
|
|
53
34
|
font-size: var(--confirmation-text-font-size);
|
|
54
35
|
line-height: var(--confirmation-text-line-height);
|
|
55
36
|
font-weight: var(--confirmation-text-font-weight);
|
|
56
37
|
font-family: var(--confirmation-text-font-family);
|
|
57
38
|
color: var(--confirmation-text-color);
|
|
58
|
-
|
|
59
|
-
|
|
39
|
+
}
|
|
40
|
+
.description {
|
|
41
|
+
margin-bottom: var(--gap-xs);
|
|
60
42
|
}
|
|
61
43
|
.countdownWrap {
|
|
62
44
|
display: flex;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component.desktop";
|
package/cssm/desktop.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('./component-5c5b24ae.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('@alfalab/hooks');
|
|
9
|
+
require('./utils.js');
|
|
10
|
+
require('./context.js');
|
|
11
|
+
require('./types.js');
|
|
12
|
+
require('@alfalab/core-components-code-input/cssm');
|
|
13
|
+
require('@alfalab/core-components-link/cssm');
|
|
14
|
+
require('@alfalab/core-components-typography/cssm');
|
|
15
|
+
require('@alfalab/core-components-button/cssm');
|
|
16
|
+
require('./components/header/index.module.css');
|
|
17
|
+
require('./components/header/component.js');
|
|
18
|
+
require('@alfalab/core-components-loader/cssm');
|
|
19
|
+
require('./components/screens/initial/index.module.css');
|
|
20
|
+
require('./components/screens/initial/countdown-section.js');
|
|
21
|
+
require('./components/screens/initial/component.js');
|
|
22
|
+
require('./components/screens/hint/index.module.css');
|
|
23
|
+
require('./components/screens/hint/component.js');
|
|
24
|
+
require('./components/screens/fatal-error/index.module.css');
|
|
25
|
+
require('./components/screens/fatal-error/component.js');
|
|
26
|
+
require('./components/countdown-loader/index.module.css');
|
|
27
|
+
require('./components/countdown-loader/component.js');
|
|
28
|
+
require('./components/screens/temp-block/index.module.css');
|
|
29
|
+
require('./components/screens/temp-block/component.js');
|
|
30
|
+
require('./components/base-confirmation/index.module.css');
|
|
31
|
+
var component_desktop = require('./component.desktop.js');
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
exports.ConfirmationDesktop = component_desktop.ConfirmationDesktop;
|
package/cssm/index.d.ts
CHANGED
package/cssm/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
require('./component-5c5b24ae.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/hooks');
|
|
@@ -11,9 +11,12 @@ var context = require('./context.js');
|
|
|
11
11
|
var types = require('./types.js');
|
|
12
12
|
require('@alfalab/core-components-code-input/cssm');
|
|
13
13
|
require('@alfalab/core-components-link/cssm');
|
|
14
|
-
require('
|
|
15
|
-
require('@alfalab/core-components-loader/cssm');
|
|
14
|
+
require('@alfalab/core-components-typography/cssm');
|
|
16
15
|
require('@alfalab/core-components-button/cssm');
|
|
16
|
+
require('./components/header/index.module.css');
|
|
17
|
+
require('./components/header/component.js');
|
|
18
|
+
require('@alfalab/core-components-loader/cssm');
|
|
19
|
+
require('./components/screens/initial/index.module.css');
|
|
17
20
|
require('./components/screens/initial/countdown-section.js');
|
|
18
21
|
var components_screens_initial_component = require('./components/screens/initial/component.js');
|
|
19
22
|
require('./components/screens/hint/index.module.css');
|
|
@@ -24,11 +27,14 @@ require('./components/countdown-loader/index.module.css');
|
|
|
24
27
|
var components_countdownLoader_component = require('./components/countdown-loader/component.js');
|
|
25
28
|
require('./components/screens/temp-block/index.module.css');
|
|
26
29
|
var components_screens_tempBlock_component = require('./components/screens/temp-block/component.js');
|
|
27
|
-
require('./index.module.css');
|
|
30
|
+
require('./components/base-confirmation/index.module.css');
|
|
31
|
+
var component_desktop = require('./component.desktop.js');
|
|
32
|
+
require('./mobile.module.css');
|
|
33
|
+
require('./component.mobile.js');
|
|
34
|
+
var component_responsive = require('./component.responsive.js');
|
|
28
35
|
|
|
29
36
|
|
|
30
37
|
|
|
31
|
-
exports.Confirmation = component.Confirmation;
|
|
32
38
|
exports.ONE_DAY = utils.ONE_DAY;
|
|
33
39
|
exports.ONE_MINUTE = utils.ONE_MINUTE;
|
|
34
40
|
exports.formatMsAsMinutes = utils.formatMsAsMinutes;
|
|
@@ -41,3 +47,5 @@ exports.Hint = components_screens_hint_component.Hint;
|
|
|
41
47
|
exports.FatalError = components_screens_fatalError_component.FatalError;
|
|
42
48
|
exports.CountdownLoader = components_countdownLoader_component.CountdownLoader;
|
|
43
49
|
exports.TempBlock = components_screens_tempBlock_component.TempBlock;
|
|
50
|
+
exports.Confirmation = component_desktop.ConfirmationDesktop;
|
|
51
|
+
exports.ConfirmationResponsive = component_responsive.ConfirmationResponsive;
|
package/cssm/mobile.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component.mobile";
|
package/cssm/mobile.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('./component-5c5b24ae.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('@alfalab/hooks');
|
|
9
|
+
require('./utils.js');
|
|
10
|
+
require('./context.js');
|
|
11
|
+
require('./types.js');
|
|
12
|
+
require('@alfalab/core-components-code-input/cssm');
|
|
13
|
+
require('@alfalab/core-components-link/cssm');
|
|
14
|
+
require('@alfalab/core-components-typography/cssm');
|
|
15
|
+
require('@alfalab/core-components-button/cssm');
|
|
16
|
+
require('./components/header/index.module.css');
|
|
17
|
+
require('./components/header/component.js');
|
|
18
|
+
require('@alfalab/core-components-loader/cssm');
|
|
19
|
+
require('./components/screens/initial/index.module.css');
|
|
20
|
+
require('./components/screens/initial/countdown-section.js');
|
|
21
|
+
require('./components/screens/initial/component.js');
|
|
22
|
+
require('./components/screens/hint/index.module.css');
|
|
23
|
+
require('./components/screens/hint/component.js');
|
|
24
|
+
require('./components/screens/fatal-error/index.module.css');
|
|
25
|
+
require('./components/screens/fatal-error/component.js');
|
|
26
|
+
require('./components/countdown-loader/index.module.css');
|
|
27
|
+
require('./components/countdown-loader/component.js');
|
|
28
|
+
require('./components/screens/temp-block/index.module.css');
|
|
29
|
+
require('./components/screens/temp-block/component.js');
|
|
30
|
+
require('./components/base-confirmation/index.module.css');
|
|
31
|
+
require('./mobile.module.css');
|
|
32
|
+
var component_mobile = require('./component.mobile.js');
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
exports.ConfirmationMobile = component_mobile.ConfirmationMobile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component.responsive";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('./component-5c5b24ae.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('@alfalab/hooks');
|
|
9
|
+
require('./utils.js');
|
|
10
|
+
require('./context.js');
|
|
11
|
+
require('./types.js');
|
|
12
|
+
require('@alfalab/core-components-code-input/cssm');
|
|
13
|
+
require('@alfalab/core-components-link/cssm');
|
|
14
|
+
require('@alfalab/core-components-typography/cssm');
|
|
15
|
+
require('@alfalab/core-components-button/cssm');
|
|
16
|
+
require('./components/header/index.module.css');
|
|
17
|
+
require('./components/header/component.js');
|
|
18
|
+
require('@alfalab/core-components-loader/cssm');
|
|
19
|
+
require('./components/screens/initial/index.module.css');
|
|
20
|
+
require('./components/screens/initial/countdown-section.js');
|
|
21
|
+
require('./components/screens/initial/component.js');
|
|
22
|
+
require('./components/screens/hint/index.module.css');
|
|
23
|
+
require('./components/screens/hint/component.js');
|
|
24
|
+
require('./components/screens/fatal-error/index.module.css');
|
|
25
|
+
require('./components/screens/fatal-error/component.js');
|
|
26
|
+
require('./components/countdown-loader/index.module.css');
|
|
27
|
+
require('./components/countdown-loader/component.js');
|
|
28
|
+
require('./components/screens/temp-block/index.module.css');
|
|
29
|
+
require('./components/screens/temp-block/component.js');
|
|
30
|
+
require('./components/base-confirmation/index.module.css');
|
|
31
|
+
require('./component.desktop.js');
|
|
32
|
+
require('./mobile.module.css');
|
|
33
|
+
require('./component.mobile.js');
|
|
34
|
+
var component_responsive = require('./component.responsive.js');
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
exports.ConfirmationResponsive = component_responsive.ConfirmationResponsive;
|
package/cssm/types.d.ts
CHANGED
package/cssm/vars.css
CHANGED
package/desktop.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component.desktop";
|
package/desktop.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('./component-8a46eb16.js');
|
|
6
|
+
require('react');
|
|
7
|
+
require('classnames');
|
|
8
|
+
require('@alfalab/hooks');
|
|
9
|
+
require('./utils.js');
|
|
10
|
+
require('./context.js');
|
|
11
|
+
require('./types.js');
|
|
12
|
+
require('@alfalab/core-components-code-input');
|
|
13
|
+
require('@alfalab/core-components-link');
|
|
14
|
+
require('@alfalab/core-components-typography');
|
|
15
|
+
require('@alfalab/core-components-button');
|
|
16
|
+
require('./components/header/component.js');
|
|
17
|
+
require('@alfalab/core-components-loader');
|
|
18
|
+
require('./countdown-section-d2ec5a14.js');
|
|
19
|
+
require('./components/screens/initial/component.js');
|
|
20
|
+
require('./components/screens/hint/component.js');
|
|
21
|
+
require('./components/screens/fatal-error/component.js');
|
|
22
|
+
require('./components/countdown-loader/component.js');
|
|
23
|
+
require('./components/screens/temp-block/component.js');
|
|
24
|
+
var component_desktop = require('./component.desktop.js');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.ConfirmationDesktop = component_desktop.ConfirmationDesktop;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ConfirmationProps } from "./types";
|
|
3
|
+
declare function __extends(d: any, b: any): void;
|
|
4
|
+
declare function __rest(s: any, e: any): {};
|
|
5
|
+
declare function __decorate(decorators: any, target: any, key: any, desc: any, ...args: any[]): any;
|
|
6
|
+
declare function __param(paramIndex: any, decorator: any): (target: any, key: any) => void;
|
|
7
|
+
declare function __metadata(metadataKey: any, metadataValue: any): any;
|
|
8
|
+
declare function __awaiter(thisArg: any, _arguments: any, P: any, generator: any): any;
|
|
9
|
+
declare function __generator(thisArg: any, body: any): {
|
|
10
|
+
next: (v: any) => any;
|
|
11
|
+
throw: (v: any) => any;
|
|
12
|
+
return: (v: any) => any;
|
|
13
|
+
};
|
|
14
|
+
declare function __exportStar(m: any, o: any): void;
|
|
15
|
+
declare function __values(o: any): any;
|
|
16
|
+
declare function __read(o: any, n: any): any;
|
|
17
|
+
declare function __spread(...args: any[]): any[];
|
|
18
|
+
declare function __spreadArrays(...args: any[]): any[];
|
|
19
|
+
declare function __await(v: any): any;
|
|
20
|
+
declare class __await {
|
|
21
|
+
constructor(v: any);
|
|
22
|
+
v: any;
|
|
23
|
+
}
|
|
24
|
+
declare function __asyncGenerator(thisArg: any, _arguments: any, generator: any): {};
|
|
25
|
+
declare function __asyncDelegator(o: any): {};
|
|
26
|
+
declare function __asyncValues(o: any): any;
|
|
27
|
+
declare function __makeTemplateObject(cooked: any, raw: any): any;
|
|
28
|
+
declare function __importStar(mod: any): any;
|
|
29
|
+
declare function __importDefault(mod: any): any;
|
|
30
|
+
declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
|
|
31
|
+
declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
|
|
32
|
+
declare function __assign(...args: any[]): any;
|
|
33
|
+
declare function __createBinding(o: any, m: any, k: any, k2: any): void;
|
|
34
|
+
declare const BaseConfirmation: FC<ConfirmationProps>;
|
|
35
|
+
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding, BaseConfirmation };
|
|
@@ -4,15 +4,9 @@ import { usePrevious } from '@alfalab/hooks';
|
|
|
4
4
|
import { useCountdown, ONE_MINUTE, ONE_DAY } from './utils.js';
|
|
5
5
|
import { ConfirmationContext } from './context.js';
|
|
6
6
|
import { defaultTexts } from './types.js';
|
|
7
|
-
import '@alfalab/core-components-code-input/esm';
|
|
8
|
-
import '@alfalab/core-components-link/esm';
|
|
9
|
-
import './countdown-section-694d1c59.js';
|
|
10
|
-
import '@alfalab/core-components-loader/esm';
|
|
11
|
-
import '@alfalab/core-components-button/esm';
|
|
12
7
|
import { Initial } from './components/screens/initial/component.js';
|
|
13
8
|
import { Hint } from './components/screens/hint/component.js';
|
|
14
9
|
import { FatalError } from './components/screens/fatal-error/component.js';
|
|
15
|
-
import './components/countdown-loader/component.js';
|
|
16
10
|
import { TempBlock } from './components/screens/temp-block/component.js';
|
|
17
11
|
|
|
18
12
|
/*! *****************************************************************************
|
|
@@ -54,8 +48,8 @@ function __rest(s, e) {
|
|
|
54
48
|
return t;
|
|
55
49
|
}
|
|
56
50
|
|
|
57
|
-
var styles = {"component":"
|
|
58
|
-
require('./index.css')
|
|
51
|
+
var styles = {"component":"confirmation__component_5z1ue","center":"confirmation__center_5z1ue"};
|
|
52
|
+
require('./components/base-confirmation/index.css')
|
|
59
53
|
|
|
60
54
|
var confirmationScreens = {
|
|
61
55
|
INITIAL: Initial,
|
|
@@ -63,8 +57,8 @@ var confirmationScreens = {
|
|
|
63
57
|
FATAL_ERROR: FatalError,
|
|
64
58
|
TEMP_BLOCK: TempBlock,
|
|
65
59
|
};
|
|
66
|
-
var
|
|
67
|
-
var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b, children = _a.children, _c = _a.requiredCharAmount, requiredCharAmount = _c === void 0 ? 5 : _c, _d = _a.countdownDuration, countdownDuration = _d === void 0 ? ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? ONE_DAY : _e, phone = _a.phone, blockSmsRetry = _a.blockSmsRetry, dataTestId = _a.dataTestId, className = _a.className, getScreensMap = _a.getScreensMap, onInputFinished = _a.onInputFinished, onChangeState = _a.onChangeState, onSmsRetryClick = _a.onSmsRetryClick, onChangeScreen = _a.onChangeScreen, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick, onTempBlockFinished = _a.onTempBlockFinished, restProps = __rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished"]);
|
|
60
|
+
var BaseConfirmation = function (_a) {
|
|
61
|
+
var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b, children = _a.children, _c = _a.requiredCharAmount, requiredCharAmount = _c === void 0 ? 5 : _c, _d = _a.countdownDuration, countdownDuration = _d === void 0 ? ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? ONE_DAY : _e, phone = _a.phone, blockSmsRetry = _a.blockSmsRetry, dataTestId = _a.dataTestId, className = _a.className, getScreensMap = _a.getScreensMap, onInputFinished = _a.onInputFinished, onChangeState = _a.onChangeState, onSmsRetryClick = _a.onSmsRetryClick, onChangeScreen = _a.onChangeScreen, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick, onTempBlockFinished = _a.onTempBlockFinished, mobile = _a.mobile, restProps = __rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished", "mobile"]);
|
|
68
62
|
var _f = useCountdown(countdownDuration), timeLeft = _f[0], startTimer = _f[1], stopTimer = _f[2];
|
|
69
63
|
var prevState = usePrevious(state);
|
|
70
64
|
useEffect(function () {
|
|
@@ -120,7 +114,7 @@ var Confirmation = function (_a) {
|
|
|
120
114
|
var screensMap = getScreensMap ? getScreensMap(confirmationScreens) : confirmationScreens;
|
|
121
115
|
var CurrentScreen = screensMap[screen];
|
|
122
116
|
return (React.createElement(ConfirmationContext.Provider, { value: contextValue },
|
|
123
|
-
React.createElement("div", { className: cn(styles.component, styles[alignContent], className), "data-test-id": dataTestId }, CurrentScreen && React.createElement(CurrentScreen,
|
|
117
|
+
React.createElement("div", { className: cn(styles.component, styles[alignContent], className), "data-test-id": dataTestId }, CurrentScreen && React.createElement(CurrentScreen, { mobile: mobile }))));
|
|
124
118
|
};
|
|
125
119
|
|
|
126
|
-
export {
|
|
120
|
+
export { BaseConfirmation as B, __assign as _, __rest as a };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { B as BaseConfirmation, _ as __assign } from './component-417f2884.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/hooks';
|
|
5
|
+
import './utils.js';
|
|
6
|
+
import './context.js';
|
|
7
|
+
import './types.js';
|
|
8
|
+
import '@alfalab/core-components-code-input/esm';
|
|
9
|
+
import '@alfalab/core-components-link/esm';
|
|
10
|
+
import '@alfalab/core-components-typography/esm';
|
|
11
|
+
import '@alfalab/core-components-button/esm';
|
|
12
|
+
import './components/header/component.js';
|
|
13
|
+
import '@alfalab/core-components-loader/esm';
|
|
14
|
+
import './countdown-section-9777131a.js';
|
|
15
|
+
import './components/screens/initial/component.js';
|
|
16
|
+
import './components/screens/hint/component.js';
|
|
17
|
+
import './components/screens/fatal-error/component.js';
|
|
18
|
+
import './components/countdown-loader/component.js';
|
|
19
|
+
import './components/screens/temp-block/component.js';
|
|
20
|
+
|
|
21
|
+
var ConfirmationDesktop = function (props) { return (React.createElement(BaseConfirmation, __assign({}, props))); };
|
|
22
|
+
|
|
23
|
+
export { ConfirmationDesktop };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { a as __rest, B as BaseConfirmation, _ as __assign } from './component-417f2884.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import cn from 'classnames';
|
|
4
|
+
import '@alfalab/hooks';
|
|
5
|
+
import './utils.js';
|
|
6
|
+
import './context.js';
|
|
7
|
+
import './types.js';
|
|
8
|
+
import '@alfalab/core-components-code-input/esm';
|
|
9
|
+
import '@alfalab/core-components-link/esm';
|
|
10
|
+
import '@alfalab/core-components-typography/esm';
|
|
11
|
+
import '@alfalab/core-components-button/esm';
|
|
12
|
+
import './components/header/component.js';
|
|
13
|
+
import '@alfalab/core-components-loader/esm';
|
|
14
|
+
import './countdown-section-9777131a.js';
|
|
15
|
+
import './components/screens/initial/component.js';
|
|
16
|
+
import './components/screens/hint/component.js';
|
|
17
|
+
import './components/screens/fatal-error/component.js';
|
|
18
|
+
import './components/countdown-loader/component.js';
|
|
19
|
+
import './components/screens/temp-block/component.js';
|
|
20
|
+
|
|
21
|
+
var styles = {"container":"confirmation__container_b0nsc"};
|
|
22
|
+
require('./mobile.css')
|
|
23
|
+
|
|
24
|
+
var ConfirmationMobile = function (_a) {
|
|
25
|
+
var className = _a.className, resProps = __rest(_a, ["className"]);
|
|
26
|
+
return (React.createElement(BaseConfirmation, __assign({ mobile: true, className: cn(className, styles.container) }, resProps)));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { ConfirmationMobile };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ConfirmationProps } from "./types";
|
|
3
|
+
type ResponsiveConfirmationProps = Omit<ConfirmationProps, 'confirmationScreens'>;
|
|
4
|
+
type ConfirmationMedia = 'desktop' | 'mobile';
|
|
5
|
+
declare const ConfirmationResponsive: FC<ResponsiveConfirmationProps>;
|
|
6
|
+
export { ResponsiveConfirmationProps, ConfirmationMedia, ConfirmationResponsive };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { _ as __assign } from './component-417f2884.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import { useMedia } from '@alfalab/hooks';
|
|
5
|
+
import './utils.js';
|
|
6
|
+
import './context.js';
|
|
7
|
+
import './types.js';
|
|
8
|
+
import '@alfalab/core-components-code-input/esm';
|
|
9
|
+
import '@alfalab/core-components-link/esm';
|
|
10
|
+
import '@alfalab/core-components-typography/esm';
|
|
11
|
+
import '@alfalab/core-components-button/esm';
|
|
12
|
+
import './components/header/component.js';
|
|
13
|
+
import '@alfalab/core-components-loader/esm';
|
|
14
|
+
import './countdown-section-9777131a.js';
|
|
15
|
+
import './components/screens/initial/component.js';
|
|
16
|
+
import './components/screens/hint/component.js';
|
|
17
|
+
import './components/screens/fatal-error/component.js';
|
|
18
|
+
import './components/countdown-loader/component.js';
|
|
19
|
+
import './components/screens/temp-block/component.js';
|
|
20
|
+
import { ConfirmationDesktop } from './component.desktop.js';
|
|
21
|
+
import { ConfirmationMobile } from './component.mobile.js';
|
|
22
|
+
|
|
23
|
+
var ConfirmationResponsive = function (props) {
|
|
24
|
+
var view = useMedia([
|
|
25
|
+
['mobile', '(max-width: 1023px)'],
|
|
26
|
+
['desktop', '(min-width: 1024px)'],
|
|
27
|
+
], 'desktop')[0];
|
|
28
|
+
return view === 'desktop' ? (React.createElement(ConfirmationDesktop, __assign({}, props))) : (React.createElement(ConfirmationMobile, __assign({}, props)));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { ConfirmationResponsive };
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { B as BaseConfirmation } from '../../component-417f2884.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/hooks';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
import '../../context.js';
|
|
7
|
+
import '../../types.js';
|
|
8
|
+
import '@alfalab/core-components-code-input/esm';
|
|
9
|
+
import '@alfalab/core-components-link/esm';
|
|
10
|
+
import '@alfalab/core-components-typography/esm';
|
|
11
|
+
import '@alfalab/core-components-button/esm';
|
|
12
|
+
import '../header/component.js';
|
|
13
|
+
import '@alfalab/core-components-loader/esm';
|
|
14
|
+
import '../../countdown-section-9777131a.js';
|
|
15
|
+
import '../screens/initial/component.js';
|
|
16
|
+
import '../screens/hint/component.js';
|
|
17
|
+
import '../screens/fatal-error/component.js';
|
|
18
|
+
import '../countdown-loader/component.js';
|
|
19
|
+
import '../screens/temp-block/component.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* hash: dr30q */
|
|
2
|
+
:root {
|
|
3
|
+
--color-light-text-secondary: rgba(11, 31, 53, 0.7);
|
|
4
|
+
}
|
|
5
|
+
:root {
|
|
6
|
+
|
|
7
|
+
/* Hard */
|
|
8
|
+
|
|
9
|
+
/* Up */
|
|
10
|
+
|
|
11
|
+
/* Hard up */
|
|
12
|
+
}
|
|
13
|
+
.confirmation__component_5z1ue {
|
|
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_5z1ue {
|
|
22
|
+
align-items: center;
|
|
23
|
+
text-align: center;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../component-417f2884";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { B as BaseConfirmation } from '../../component-417f2884.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'classnames';
|
|
4
|
+
import '@alfalab/hooks';
|
|
5
|
+
import '../../utils.js';
|
|
6
|
+
import '../../context.js';
|
|
7
|
+
import '../../types.js';
|
|
8
|
+
import '@alfalab/core-components-code-input/esm';
|
|
9
|
+
import '@alfalab/core-components-link/esm';
|
|
10
|
+
import '@alfalab/core-components-typography/esm';
|
|
11
|
+
import '@alfalab/core-components-button/esm';
|
|
12
|
+
import '../header/component.js';
|
|
13
|
+
import '@alfalab/core-components-loader/esm';
|
|
14
|
+
import '../../countdown-section-9777131a.js';
|
|
15
|
+
import '../screens/initial/component.js';
|
|
16
|
+
import '../screens/hint/component.js';
|
|
17
|
+
import '../screens/fatal-error/component.js';
|
|
18
|
+
import '../countdown-loader/component.js';
|
|
19
|
+
import '../screens/temp-block/component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: gowzd */
|
|
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_1u443 {
|
|
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 };
|