@alfalab/core-components-confirmation 8.2.2 → 8.3.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/CHANGELOG.md +11 -0
- package/dist/component.d.ts +28 -0
- package/dist/component.js +21 -7
- package/dist/components/code-input/component.js +1 -1
- package/dist/components/code-input/index.css +11 -8
- package/dist/components/countdown/component.js +1 -1
- package/dist/components/countdown/index.css +13 -13
- package/dist/components/countdown-loader/component.js +1 -1
- package/dist/components/countdown-loader/index.css +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +3 -0
- package/dist/components/overlimit/component.d.ts +12 -0
- package/dist/components/overlimit/component.js +73 -0
- package/dist/components/overlimit/index.css +90 -0
- package/dist/components/overlimit/index.d.ts +1 -0
- package/dist/components/overlimit/index.js +17 -0
- package/dist/components/sign-confirmation/component.js +1 -1
- package/dist/components/sign-confirmation/index.css +13 -13
- package/dist/cssm/component.d.ts +28 -0
- package/dist/cssm/component.js +21 -6
- package/dist/cssm/components/code-input/index.module.css +3 -0
- package/dist/cssm/components/index.d.ts +1 -0
- package/dist/cssm/components/index.js +4 -0
- package/dist/cssm/components/overlimit/component.d.ts +12 -0
- package/dist/cssm/components/overlimit/component.js +74 -0
- package/dist/cssm/components/overlimit/index.d.ts +1 -0
- package/dist/cssm/components/overlimit/index.js +20 -0
- package/dist/cssm/components/overlimit/index.module.css +89 -0
- package/dist/cssm/index.js +4 -0
- package/dist/esm/component.d.ts +28 -0
- package/dist/esm/component.js +21 -7
- package/dist/esm/components/code-input/component.js +1 -1
- package/dist/esm/components/code-input/index.css +11 -8
- package/dist/esm/components/countdown/component.js +1 -1
- package/dist/esm/components/countdown/index.css +13 -13
- package/dist/esm/components/countdown-loader/component.js +1 -1
- package/dist/esm/components/countdown-loader/index.css +2 -2
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/components/overlimit/component.d.ts +12 -0
- package/dist/esm/components/overlimit/component.js +65 -0
- package/dist/esm/components/overlimit/index.css +90 -0
- package/dist/esm/components/overlimit/index.d.ts +1 -0
- package/dist/esm/components/overlimit/index.js +9 -0
- package/dist/esm/components/sign-confirmation/component.js +1 -1
- package/dist/esm/components/sign-confirmation/index.css +13 -13
- package/dist/esm/index.css +14 -14
- package/dist/esm/index.js +2 -0
- package/dist/index.css +14 -14
- package/dist/index.js +3 -0
- package/dist/modern/component.d.ts +28 -0
- package/dist/modern/component.js +20 -6
- package/dist/modern/components/code-input/component.js +1 -1
- package/dist/modern/components/code-input/index.css +11 -8
- package/dist/modern/components/countdown/component.js +1 -1
- package/dist/modern/components/countdown/index.css +13 -13
- package/dist/modern/components/countdown-loader/component.js +1 -1
- package/dist/modern/components/countdown-loader/index.css +2 -2
- package/dist/modern/components/index.d.ts +1 -0
- package/dist/modern/components/index.js +2 -0
- package/dist/modern/components/overlimit/component.d.ts +12 -0
- package/dist/modern/components/overlimit/component.js +64 -0
- package/dist/modern/components/overlimit/index.css +90 -0
- package/dist/modern/components/overlimit/index.d.ts +1 -0
- package/dist/modern/components/overlimit/index.js +9 -0
- package/dist/modern/components/sign-confirmation/component.js +1 -1
- package/dist/modern/components/sign-confirmation/index.css +13 -13
- package/dist/modern/index.css +14 -14
- package/dist/modern/index.js +2 -0
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: b1i9a */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-negative-muted: #feebea;
|
|
4
4
|
--color-light-bg-secondary: #f3f4f5;
|
|
@@ -41,7 +41,10 @@
|
|
|
41
41
|
--confirmation-input-bg-color: var(--color-light-bg-secondary);
|
|
42
42
|
--confirmation-input-error-bg-color: var(--color-light-bg-negative-muted);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.confirmation__component_b1i9a {
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
|
47
|
+
.confirmation__input_b1i9a {
|
|
45
48
|
flex-shrink: 0;
|
|
46
49
|
width: 36px;
|
|
47
50
|
height: 48px;
|
|
@@ -58,19 +61,19 @@
|
|
|
58
61
|
font-weight: var(--confirmation-input-font-weight);
|
|
59
62
|
font-family: var(--confirmation-input-font-family)
|
|
60
63
|
}
|
|
61
|
-
.
|
|
64
|
+
.confirmation__input_b1i9a.confirmation__hasError_b1i9a {
|
|
62
65
|
color: var(--confirmation-error-color);
|
|
63
66
|
caret-color: var(--confirmation-input-text-color);
|
|
64
67
|
background-color: var(--confirmation-input-error-bg-color);
|
|
65
68
|
}
|
|
66
|
-
.
|
|
69
|
+
.confirmation__input_b1i9a.confirmation__center_b1i9a {
|
|
67
70
|
margin: 0 var(--gap-2xs);
|
|
68
71
|
}
|
|
69
|
-
.
|
|
72
|
+
.confirmation__input_b1i9a.confirmation__disabled_b1i9a {
|
|
70
73
|
color: var(--color-light-text-tertiary);
|
|
71
74
|
opacity: 1;
|
|
72
75
|
}
|
|
73
|
-
@keyframes
|
|
76
|
+
@keyframes confirmation__shake_b1i9a {
|
|
74
77
|
0% {
|
|
75
78
|
transform: translateX(0);
|
|
76
79
|
}
|
|
@@ -87,6 +90,6 @@
|
|
|
87
90
|
transform: translateX(0);
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
|
-
.
|
|
91
|
-
animation:
|
|
93
|
+
.confirmation__shake_b1i9a {
|
|
94
|
+
animation: confirmation__shake_b1i9a 0.15s linear 0s 3;
|
|
92
95
|
}
|
|
@@ -5,7 +5,7 @@ import { phoneNumber } from '@alfalab/utils';
|
|
|
5
5
|
import { usePrevious } from '@alfalab/hooks';
|
|
6
6
|
import { CountdownLoader } from '../countdown-loader/component.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"
|
|
8
|
+
var styles = {"component":"confirmation__component_6ndzw","hasError":"confirmation__hasError_6ndzw","getCodeButton":"confirmation__getCodeButton_6ndzw","info":"confirmation__info_6ndzw","customContent":"confirmation__customContent_6ndzw","loaderWrap":"confirmation__loaderWrap_6ndzw","loader":"confirmation__loader_6ndzw","center":"confirmation__center_6ndzw","timePassed":"confirmation__timePassed_6ndzw","noAttemptsLeftMessage":"confirmation__noAttemptsLeftMessage_6ndzw"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 6ndzw */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-secondary: #546272;
|
|
4
4
|
}
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
/* input */
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.confirmation__component_6ndzw {
|
|
38
38
|
font-size: var(--confirmation-text-font-size);
|
|
39
39
|
line-height: var(--confirmation-text-line-height);
|
|
40
40
|
font-weight: var(--confirmation-text-font-weight);
|
|
@@ -47,39 +47,39 @@
|
|
|
47
47
|
margin-top: var(--gap-3xl);
|
|
48
48
|
color: var(--confirmation-text-color);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.confirmation__hasError_6ndzw .confirmation__getCodeButton_6ndzw {
|
|
51
51
|
margin-top: 0;
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.confirmation__hasError_6ndzw .confirmation__info_6ndzw {
|
|
54
54
|
margin-top: 0;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.confirmation__hasError_6ndzw .confirmation__customContent_6ndzw {
|
|
57
57
|
margin-bottom: var(--gap-2xl);
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.confirmation__info_6ndzw {
|
|
60
60
|
margin: var(--gap-2xs) 0;
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.confirmation__loaderWrap_6ndzw {
|
|
63
63
|
display: flex;
|
|
64
64
|
align-items: center;
|
|
65
65
|
margin-bottom: var(--gap-xs);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.confirmation__loader_6ndzw {
|
|
68
68
|
margin-right: var(--gap-xs);
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.confirmation__center_6ndzw {
|
|
71
71
|
align-items: center
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.confirmation__center_6ndzw .confirmation__loaderWrap_6ndzw {
|
|
74
74
|
justify-content: center;
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.confirmation__timePassed_6ndzw {
|
|
77
77
|
display: flex;
|
|
78
78
|
min-width: 3em;
|
|
79
79
|
}
|
|
80
|
-
.
|
|
80
|
+
.confirmation__getCodeButton_6ndzw {
|
|
81
81
|
margin-top: var(--gap-2xl);
|
|
82
82
|
}
|
|
83
|
-
.
|
|
83
|
+
.confirmation__noAttemptsLeftMessage_6ndzw {
|
|
84
84
|
margin: var(--gap-2xs) 0 var(--gap-xs);
|
|
85
85
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4r9p5 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-tertiary: #b6bcc3;
|
|
4
4
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
/* input */
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
.confirmation__circle_4r9p5 {
|
|
23
23
|
fill: transparent;
|
|
24
24
|
stroke: var(--color-light-graphic-tertiary);
|
|
25
25
|
stroke-width: 2px;
|
|
@@ -10,3 +10,5 @@ import '@alfalab/core-components-loader/dist/modern';
|
|
|
10
10
|
import './code-input/utils.js';
|
|
11
11
|
import './code-input/component.js';
|
|
12
12
|
export { SignConfirmation } from './sign-confirmation/component.js';
|
|
13
|
+
import '@alfalab/icons-glyph';
|
|
14
|
+
export { Overlimit } from './overlimit/component.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MouseEvent, FC } from 'react';
|
|
2
|
+
type OverlimitProps = {
|
|
3
|
+
duration?: number;
|
|
4
|
+
buttonRetryText: string;
|
|
5
|
+
hasFatalError: boolean;
|
|
6
|
+
title: string;
|
|
7
|
+
text: string;
|
|
8
|
+
onOverlimitCountdownFinished: () => void;
|
|
9
|
+
onOverlimitRepeatSms: (event: MouseEvent) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const Overlimit: FC<OverlimitProps>;
|
|
12
|
+
export { OverlimitProps, Overlimit };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React, { useRef, useState, useCallback, useEffect } from 'react';
|
|
2
|
+
import 'classnames';
|
|
3
|
+
import { Button } from '@alfalab/core-components-button/dist/modern';
|
|
4
|
+
import '@alfalab/utils';
|
|
5
|
+
import '@alfalab/hooks';
|
|
6
|
+
import { CountdownLoader } from '../countdown-loader/component.js';
|
|
7
|
+
import { formatMsAsMinutes } from '../countdown/component.js';
|
|
8
|
+
import { CrossCircleMIcon } from '@alfalab/icons-glyph';
|
|
9
|
+
|
|
10
|
+
var styles = {"component":"confirmation__component_3dv1y","title":"confirmation__title_3dv1y","description":"confirmation__description_3dv1y","countdown":"confirmation__countdown_3dv1y","loader":"confirmation__loader_3dv1y","timePassed":"confirmation__timePassed_3dv1y","getCodeButton":"confirmation__getCodeButton_3dv1y","alertIcon":"confirmation__alertIcon_3dv1y"};
|
|
11
|
+
require('./index.css')
|
|
12
|
+
|
|
13
|
+
const Overlimit = ({ duration = 60000, buttonRetryText, hasFatalError, onOverlimitRepeatSms, onOverlimitCountdownFinished, text, title, }) => {
|
|
14
|
+
const timerId = useRef(0);
|
|
15
|
+
const start = useRef(0);
|
|
16
|
+
const [isBlockingOver, setIsBlockingOver] = useState(false);
|
|
17
|
+
const [timePassed, setTimePassed] = useState(0);
|
|
18
|
+
const stopTimer = useCallback(() => {
|
|
19
|
+
window.clearInterval(timerId.current);
|
|
20
|
+
}, []);
|
|
21
|
+
const updateProgress = useCallback(() => {
|
|
22
|
+
const passed = Date.now() - start.current;
|
|
23
|
+
if (passed >= duration) {
|
|
24
|
+
setIsBlockingOver(true);
|
|
25
|
+
if (onOverlimitCountdownFinished) {
|
|
26
|
+
onOverlimitCountdownFinished();
|
|
27
|
+
}
|
|
28
|
+
stopTimer();
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
setTimePassed(passed);
|
|
32
|
+
}
|
|
33
|
+
}, [duration, onOverlimitCountdownFinished, stopTimer]);
|
|
34
|
+
const startTimer = useCallback(() => {
|
|
35
|
+
start.current = Date.now();
|
|
36
|
+
updateProgress();
|
|
37
|
+
timerId.current = window.setInterval(updateProgress, 50);
|
|
38
|
+
}, [updateProgress]);
|
|
39
|
+
const handleRepeatSmsButtonClick = useCallback((event) => {
|
|
40
|
+
setIsBlockingOver(false);
|
|
41
|
+
if (onOverlimitRepeatSms) {
|
|
42
|
+
onOverlimitRepeatSms(event);
|
|
43
|
+
}
|
|
44
|
+
startTimer();
|
|
45
|
+
}, [onOverlimitRepeatSms, startTimer]);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
startTimer();
|
|
48
|
+
return () => {
|
|
49
|
+
stopTimer();
|
|
50
|
+
};
|
|
51
|
+
}, [startTimer, stopTimer]);
|
|
52
|
+
const progress = timePassed / duration;
|
|
53
|
+
return (React.createElement("div", { className: styles.component },
|
|
54
|
+
hasFatalError && (React.createElement("div", { className: styles.alertIcon },
|
|
55
|
+
React.createElement(CrossCircleMIcon, { "data-test-id": 'alert-icon', width: 64, height: 64 }))),
|
|
56
|
+
React.createElement("span", { className: styles.title }, title),
|
|
57
|
+
React.createElement("div", { className: styles.description },
|
|
58
|
+
React.createElement("div", null, text),
|
|
59
|
+
isBlockingOver ? (React.createElement(Button, { size: 'xs', view: 'secondary', onClick: handleRepeatSmsButtonClick, className: styles.getCodeButton }, buttonRetryText)) : (React.createElement("div", { className: styles.countdown },
|
|
60
|
+
React.createElement(CountdownLoader, { progress: progress, className: styles.loader }),
|
|
61
|
+
React.createElement("div", { className: styles.timePassed }, formatMsAsMinutes(duration - timePassed)))))));
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { Overlimit };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* hash: 3dv1y */
|
|
2
|
+
:root {
|
|
3
|
+
--color-static-status-red: #d91d0b;
|
|
4
|
+
}
|
|
5
|
+
:root {
|
|
6
|
+
--color-light-text-primary: #0b1f35;
|
|
7
|
+
--color-light-text-secondary: #546272;
|
|
8
|
+
}
|
|
9
|
+
:root {
|
|
10
|
+
|
|
11
|
+
/* Hard */
|
|
12
|
+
|
|
13
|
+
/* Up */
|
|
14
|
+
|
|
15
|
+
/* Hard up */
|
|
16
|
+
}
|
|
17
|
+
:root {
|
|
18
|
+
--gap-2xs: 4px;
|
|
19
|
+
--gap-xs: 8px;
|
|
20
|
+
--gap-xl: 24px;
|
|
21
|
+
--gap-2xl: 32px;
|
|
22
|
+
--gap-3xl: 40px;
|
|
23
|
+
}
|
|
24
|
+
:root {
|
|
25
|
+
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
26
|
+
sans-serif;
|
|
27
|
+
}
|
|
28
|
+
:root {
|
|
29
|
+
/* title */
|
|
30
|
+
--confirmation-title-font-size: 22px;
|
|
31
|
+
--confirmation-title-line-height: 26px;
|
|
32
|
+
--confirmation-title-font-weight: 700;
|
|
33
|
+
--confirmation-title-font-family: var(--font-family-system);
|
|
34
|
+
--confirmation-title-color: var(--color-light-text-primary);
|
|
35
|
+
--confirmation-title-font-feature-settings: normal;
|
|
36
|
+
|
|
37
|
+
/* text */
|
|
38
|
+
--confirmation-text-font-size: 16px;
|
|
39
|
+
--confirmation-text-line-height: 24px;
|
|
40
|
+
--confirmation-text-font-weight: 400;
|
|
41
|
+
--confirmation-text-font-family: var(--font-family-system);
|
|
42
|
+
--confirmation-text-color: var(--color-light-text-secondary);
|
|
43
|
+
|
|
44
|
+
/* error */
|
|
45
|
+
|
|
46
|
+
/* input */
|
|
47
|
+
}
|
|
48
|
+
.confirmation__component_3dv1y {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
align-items: center;
|
|
52
|
+
}
|
|
53
|
+
.confirmation__title_3dv1y {
|
|
54
|
+
font-size: var(--confirmation-title-font-size);
|
|
55
|
+
line-height: var(--confirmation-title-line-height);
|
|
56
|
+
font-weight: var(--confirmation-title-font-weight);
|
|
57
|
+
font-family: var(--confirmation-title-font-family);
|
|
58
|
+
color: var(--confirmation-title-color);
|
|
59
|
+
font-feature-settings: var(--confirmation-title-font-feature-settings);
|
|
60
|
+
|
|
61
|
+
margin-bottom: var(--gap-3xl);
|
|
62
|
+
}
|
|
63
|
+
.confirmation__description_3dv1y {
|
|
64
|
+
font-size: var(--confirmation-text-font-size);
|
|
65
|
+
line-height: var(--confirmation-text-line-height);
|
|
66
|
+
font-weight: var(--confirmation-text-font-weight);
|
|
67
|
+
font-family: var(--confirmation-text-font-family);
|
|
68
|
+
color: var(--confirmation-text-color);
|
|
69
|
+
}
|
|
70
|
+
.confirmation__countdown_3dv1y {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
margin-top: var(--gap-2xs);
|
|
75
|
+
}
|
|
76
|
+
.confirmation__loader_3dv1y {
|
|
77
|
+
margin-right: var(--gap-xs);
|
|
78
|
+
}
|
|
79
|
+
.confirmation__timePassed_3dv1y {
|
|
80
|
+
display: flex;
|
|
81
|
+
min-width: 3em;
|
|
82
|
+
}
|
|
83
|
+
.confirmation__getCodeButton_3dv1y {
|
|
84
|
+
margin-top: var(--gap-2xl);
|
|
85
|
+
}
|
|
86
|
+
.confirmation__alertIcon_3dv1y {
|
|
87
|
+
text-align: center;
|
|
88
|
+
margin-bottom: var(--gap-xl);
|
|
89
|
+
color: var(--color-static-status-red);
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./component";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import 'classnames';
|
|
3
|
+
import '@alfalab/core-components-button/dist/modern';
|
|
4
|
+
import '@alfalab/utils';
|
|
5
|
+
import '@alfalab/hooks';
|
|
6
|
+
import '../countdown-loader/component.js';
|
|
7
|
+
import '../countdown/component.js';
|
|
8
|
+
import '@alfalab/icons-glyph';
|
|
9
|
+
export { Overlimit } from './component.js';
|
|
@@ -10,7 +10,7 @@ import { Loader } from '@alfalab/core-components-loader/dist/modern';
|
|
|
10
10
|
import '../code-input/utils.js';
|
|
11
11
|
import { CodeInput } from '../code-input/component.js';
|
|
12
12
|
|
|
13
|
-
var styles = {"component":"
|
|
13
|
+
var styles = {"component":"confirmation__component_1nv3s","countdown":"confirmation__countdown_1nv3s","hidden":"confirmation__hidden_1nv3s","header":"confirmation__header_1nv3s","inputContainer":"confirmation__inputContainer_1nv3s","smsComeLinkWrap":"confirmation__smsComeLinkWrap_1nv3s","smsComeLink":"confirmation__smsComeLink_1nv3s","error":"confirmation__error_1nv3s","loaderWrap":"confirmation__loaderWrap_1nv3s","loaderText":"confirmation__loaderText_1nv3s","center":"confirmation__center_1nv3s","codeInput":"confirmation__codeInput_1nv3s"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
const SignConfirmation = ({ codeChecking, codeSending, smsHintVisible, requiredCharAmount, countdownDuration, additionalContent, hasPhoneMask, phone, code: inputValue, error, errorText, title, hasSmsCountdown, inputRef, codeCheckingText, codeSendingText, alignContent, noAttemptsLeftMessage, buttonRetryText, countdownContent, onInputFinished, onInputChange, onSmsRetryClick, onCountdownFinished, onSmsHintLinkClick, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1nv3s */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-negative: #d91d0b;
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
|
|
44
44
|
/* input */
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.confirmation__component_1nv3s {
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.confirmation__countdown_1nv3s {
|
|
51
51
|
max-height: 300px;
|
|
52
52
|
overflow: hidden;
|
|
53
53
|
transition: max-height 0.15s ease;
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.confirmation__hidden_1nv3s {
|
|
56
56
|
opacity: 0;
|
|
57
57
|
max-height: 0;
|
|
58
58
|
}
|
|
59
|
-
.
|
|
59
|
+
.confirmation__header_1nv3s {
|
|
60
60
|
font-size: var(--confirmation-title-font-size);
|
|
61
61
|
line-height: var(--confirmation-title-line-height);
|
|
62
62
|
font-weight: var(--confirmation-title-font-weight);
|
|
@@ -67,19 +67,19 @@
|
|
|
67
67
|
margin-bottom: var(--gap-3xl);
|
|
68
68
|
color: var(--confirmation-title-color);
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.confirmation__inputContainer_1nv3s {
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
74
|
+
.confirmation__smsComeLinkWrap_1nv3s {
|
|
75
75
|
margin-top: var(--gap-l);
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.confirmation__smsComeLink_1nv3s {
|
|
78
78
|
font-size: 14px;
|
|
79
79
|
line-height: 20px;
|
|
80
80
|
font-weight: 400;
|
|
81
81
|
}
|
|
82
|
-
.
|
|
82
|
+
.confirmation__error_1nv3s {
|
|
83
83
|
font-size: 14px;
|
|
84
84
|
line-height: 20px;
|
|
85
85
|
font-weight: 400;
|
|
@@ -87,12 +87,12 @@
|
|
|
87
87
|
margin-top: var(--gap-xs);
|
|
88
88
|
color: var(--confirmation-error-color);
|
|
89
89
|
}
|
|
90
|
-
.
|
|
90
|
+
.confirmation__loaderWrap_1nv3s {
|
|
91
91
|
display: flex;
|
|
92
92
|
align-items: center;
|
|
93
93
|
margin: var(--gap-3xl) 0 var(--gap-xs);
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
.confirmation__loaderText_1nv3s {
|
|
96
96
|
font-size: var(--confirmation-text-font-size);
|
|
97
97
|
line-height: var(--confirmation-text-line-height);
|
|
98
98
|
font-weight: var(--confirmation-text-font-weight);
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
margin-left: var(--gap-s);
|
|
103
103
|
color: var(--confirmation-text-color);
|
|
104
104
|
}
|
|
105
|
-
.
|
|
106
|
-
.
|
|
105
|
+
.confirmation__center_1nv3s .confirmation__codeInput_1nv3s,
|
|
106
|
+
.confirmation__center_1nv3s .confirmation__loaderWrap_1nv3s {
|
|
107
107
|
justify-content: center;
|
|
108
108
|
}
|
package/dist/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4oaka */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
--color-light-text-secondary: #546272;
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
|
|
42
42
|
/* input */
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.confirmation__component_4oaka {
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
width: 100%;
|
|
48
48
|
font-family: var(--confirmation-font-family);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.confirmation__error_4oaka {
|
|
51
51
|
display: flex;
|
|
52
52
|
flex-direction: column;
|
|
53
53
|
align-items: flex-start;
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.confirmation__errorHeader_4oaka {
|
|
56
56
|
font-size: var(--confirmation-title-font-size);
|
|
57
57
|
line-height: var(--confirmation-title-line-height);
|
|
58
58
|
font-weight: var(--confirmation-title-font-weight);
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
margin-bottom: var(--gap-2xl);
|
|
64
64
|
color: var(--confirmation-title-color);
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.confirmation__errorText_4oaka {
|
|
67
67
|
font-size: var(--confirmation-text-font-size);
|
|
68
68
|
line-height: var(--confirmation-text-line-height);
|
|
69
69
|
font-weight: var(--confirmation-text-font-weight);
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
margin-bottom: var(--gap-2xl);
|
|
74
74
|
color: var(--confirmation-text-color);
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.confirmation__phoneHintWrap_4oaka {
|
|
77
77
|
display: flex;
|
|
78
78
|
flex-direction: column;
|
|
79
79
|
align-items: flex-start;
|
|
80
80
|
}
|
|
81
|
-
.
|
|
81
|
+
.confirmation__phoneHintText_4oaka {
|
|
82
82
|
font-size: var(--confirmation-text-font-size);
|
|
83
83
|
line-height: var(--confirmation-text-line-height);
|
|
84
84
|
font-weight: var(--confirmation-text-font-weight);
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
margin-bottom: var(--gap-xl);
|
|
89
89
|
color: var(--confirmation-text-color);
|
|
90
90
|
}
|
|
91
|
-
.
|
|
91
|
+
.confirmation__phonesWrap_4oaka {
|
|
92
92
|
font-size: var(--confirmation-text-font-size);
|
|
93
93
|
line-height: var(--confirmation-text-line-height);
|
|
94
94
|
font-weight: var(--confirmation-text-font-weight);
|
|
@@ -99,21 +99,21 @@
|
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
margin-bottom: var(--gap-4xl);
|
|
101
101
|
}
|
|
102
|
-
.
|
|
102
|
+
.confirmation__phoneWrap_4oaka {
|
|
103
103
|
margin-bottom: var(--gap-xs)
|
|
104
104
|
}
|
|
105
|
-
.
|
|
105
|
+
.confirmation__phoneWrap_4oaka:last-child {
|
|
106
106
|
margin-bottom: 0;
|
|
107
107
|
}
|
|
108
|
-
.
|
|
108
|
+
.confirmation__phoneDescription_4oaka {
|
|
109
109
|
color: var(--confirmation-text-color);
|
|
110
110
|
}
|
|
111
|
-
.
|
|
111
|
+
.confirmation__component_4oaka.confirmation__center_4oaka {
|
|
112
112
|
text-align: center;
|
|
113
113
|
}
|
|
114
|
-
.
|
|
114
|
+
.confirmation__center_4oaka .confirmation__phoneHintWrap_4oaka {
|
|
115
115
|
align-items: center;
|
|
116
116
|
}
|
|
117
|
-
.
|
|
117
|
+
.confirmation__center_4oaka .confirmation__error_4oaka {
|
|
118
118
|
align-items: center;
|
|
119
119
|
}
|
package/dist/modern/index.js
CHANGED
|
@@ -10,4 +10,6 @@ import '@alfalab/core-components-loader/dist/modern';
|
|
|
10
10
|
import './components/code-input/utils.js';
|
|
11
11
|
import './components/code-input/component.js';
|
|
12
12
|
export { SignConfirmation } from './components/sign-confirmation/component.js';
|
|
13
|
+
import '@alfalab/icons-glyph';
|
|
14
|
+
export { Overlimit } from './components/overlimit/component.js';
|
|
13
15
|
export { Confirmation } from './component.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-confirmation",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"description": "Sms confirmation component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,11 +20,12 @@
|
|
|
20
20
|
"@alfalab/core-components-link": "^3.2.0",
|
|
21
21
|
"@alfalab/core-components-loader": "^2.0.1",
|
|
22
22
|
"@alfalab/hooks": "^1.0.0",
|
|
23
|
+
"@alfalab/icons-glyph": "^1.150.0",
|
|
23
24
|
"@alfalab/utils": "^1.3.0",
|
|
24
25
|
"classnames": "^2.2.6"
|
|
25
26
|
},
|
|
26
27
|
"peerDependencies": {
|
|
27
28
|
"react": "^16.9.0 || ^17.0.1"
|
|
28
29
|
},
|
|
29
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "06ce84bb0c1b831858968f9a5d0bface6a163dc0"
|
|
30
31
|
}
|