@alfalab/core-components-confirmation 13.10.4 → 13.10.5
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/components/base-confirmation/component.js +7 -4
- package/components/base-confirmation/index.css +6 -5
- package/components/countdown-loader/component.js +1 -1
- package/components/countdown-loader/index.css +2 -2
- package/components/header/component.js +1 -1
- package/components/header/index.css +4 -4
- package/components/screens/fatal-error/component.js +1 -1
- package/components/screens/fatal-error/index.css +7 -7
- package/components/screens/hint/component.js +1 -1
- package/components/screens/hint/index.css +13 -13
- package/components/screens/initial/component.js +1 -1
- package/components/screens/initial/countdown-section.js +1 -1
- package/components/screens/initial/index.css +20 -20
- package/components/screens/temp-block/component.js +1 -1
- package/components/screens/temp-block/index.css +9 -9
- package/components/screens/temp-block-over/component.js +1 -1
- package/components/screens/temp-block-over/index.css +6 -6
- package/{countdown-section-1b73699c.js → countdown-section-258f2fb9.js} +1 -1
- package/cssm/components/base-confirmation/component.js +6 -3
- package/cssm/components/base-confirmation/index.module.css +4 -3
- package/esm/components/base-confirmation/component.js +7 -4
- package/esm/components/base-confirmation/index.css +6 -5
- package/esm/components/countdown-loader/component.js +1 -1
- package/esm/components/countdown-loader/index.css +2 -2
- package/esm/components/header/component.js +1 -1
- package/esm/components/header/index.css +4 -4
- package/esm/components/screens/fatal-error/component.js +1 -1
- package/esm/components/screens/fatal-error/index.css +7 -7
- package/esm/components/screens/hint/component.js +1 -1
- package/esm/components/screens/hint/index.css +13 -13
- package/esm/components/screens/initial/component.js +1 -1
- package/esm/components/screens/initial/countdown-section.js +1 -1
- package/esm/components/screens/initial/index.css +20 -20
- package/esm/components/screens/temp-block/component.js +1 -1
- package/esm/components/screens/temp-block/index.css +9 -9
- package/esm/components/screens/temp-block-over/component.js +1 -1
- package/esm/components/screens/temp-block-over/index.css +6 -6
- package/esm/{countdown-section-9901d246.js → countdown-section-214fffb8.js} +1 -1
- package/esm/mobile/component.mobile.js +1 -1
- package/esm/mobile/mobile.css +2 -2
- package/mobile/component.mobile.js +1 -1
- package/mobile/mobile.css +2 -2
- package/modern/components/base-confirmation/component.js +4 -2
- package/modern/components/base-confirmation/index.css +6 -5
- package/modern/components/countdown-loader/component.js +1 -1
- package/modern/components/countdown-loader/index.css +2 -2
- package/modern/components/header/component.js +1 -1
- package/modern/components/header/index.css +4 -4
- package/modern/components/screens/fatal-error/component.js +1 -1
- package/modern/components/screens/fatal-error/index.css +7 -7
- package/modern/components/screens/hint/component.js +1 -1
- package/modern/components/screens/hint/index.css +13 -13
- package/modern/components/screens/initial/component.js +1 -1
- package/modern/components/screens/initial/countdown-section.js +1 -1
- package/modern/components/screens/initial/index.css +20 -20
- package/modern/components/screens/temp-block/component.js +1 -1
- package/modern/components/screens/temp-block/index.css +9 -9
- package/modern/components/screens/temp-block-over/component.js +1 -1
- package/modern/components/screens/temp-block-over/index.css +6 -6
- package/modern/{countdown-section-113af7c0.js → countdown-section-4580d2ec.js} +1 -1
- package/modern/mobile/component.mobile.js +1 -1
- package/modern/mobile/mobile.css +2 -2
- package/moderncssm/components/base-confirmation/component.js +3 -1
- package/moderncssm/components/base-confirmation/index.module.css +5 -2
- package/package.json +8 -8
- package/src/components/base-confirmation/component.tsx +6 -1
- package/src/components/base-confirmation/index.module.css +4 -1
- /package/{countdown-section-1b73699c.d.ts → countdown-section-258f2fb9.d.ts} +0 -0
- /package/esm/{countdown-section-9901d246.d.ts → countdown-section-214fffb8.d.ts} +0 -0
- /package/modern/{countdown-section-113af7c0.d.ts → countdown-section-4580d2ec.d.ts} +0 -0
|
@@ -6,7 +6,7 @@ import { Text } from '@alfalab/core-components-typography/modern';
|
|
|
6
6
|
import { ConfirmationContext } from './context.js';
|
|
7
7
|
import { formatMsAsMinutes } from './utils.js';
|
|
8
8
|
|
|
9
|
-
const styles = {"component":"
|
|
9
|
+
const styles = {"component":"confirmation__component_mkw51","phone":"confirmation__phone_mkw51","typographyTheme":"confirmation__typographyTheme_mkw51","typographyThemeMobile":"confirmation__typographyThemeMobile_mkw51","compact":"confirmation__compact_mkw51","loaderWrap":"confirmation__loaderWrap_mkw51","left":"confirmation__left_mkw51","center":"confirmation__center_mkw51","codeInput":"confirmation__codeInput_mkw51","smsBtn":"confirmation__smsBtn_mkw51","smsComeLink":"confirmation__smsComeLink_mkw51","countdownContainer":"confirmation__countdownContainer_mkw51","countdownMobile":"confirmation__countdownMobile_mkw51","countdownLoaderMobile":"confirmation__countdownLoaderMobile_mkw51","timeCounter":"confirmation__timeCounter_mkw51","getCodeButton":"confirmation__getCodeButton_mkw51","getCodeButtonMobile":"confirmation__getCodeButtonMobile_mkw51","containerInput":"confirmation__containerInput_mkw51"};
|
|
10
10
|
require('./components/screens/initial/index.css')
|
|
11
11
|
|
|
12
12
|
const CountdownSection = ({ codeSendHintVisible, timePassed, processing, mobile, handleSmsRetryClick, }) => {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { BaseConfirmation } from '../components/base-confirmation/component.js';
|
|
4
4
|
|
|
5
|
-
const styles = {"container":"
|
|
5
|
+
const styles = {"container":"confirmation__container_80kg1"};
|
|
6
6
|
require('./mobile.css')
|
|
7
7
|
|
|
8
8
|
const ConfirmationMobile = ({ className, ...resProps }) => (React.createElement(BaseConfirmation, { mobile: true, className: cn(className, styles.container), ...resProps }));
|
package/modern/mobile/mobile.css
CHANGED
|
@@ -83,7 +83,9 @@ const BaseConfirmation = ({ state, screen, alignContent = 'left', children, requ
|
|
|
83
83
|
const screensMap = customScreen || confirmationScreens;
|
|
84
84
|
const CurrentScreen = screensMap[screen];
|
|
85
85
|
return (React.createElement(ConfirmationContext.Provider, { value: contextValue },
|
|
86
|
-
React.createElement("div", { className: cn(styles.component, className
|
|
86
|
+
React.createElement("div", { className: cn(styles.component, className, {
|
|
87
|
+
[styles.center]: alignContent === 'center',
|
|
88
|
+
}), "data-test-id": dataTestId }, CurrentScreen && React.createElement(CurrentScreen, { mobile: mobile }))));
|
|
87
89
|
};
|
|
88
90
|
|
|
89
91
|
export { BaseConfirmation };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-confirmation",
|
|
3
|
-
"version": "13.10.
|
|
3
|
+
"version": "13.10.5",
|
|
4
4
|
"description": "Sms confirmation component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
},
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@alfalab/core-components-button": "^11.11.
|
|
16
|
-
"@alfalab/core-components-code-input": "^3.9.
|
|
15
|
+
"@alfalab/core-components-button": "^11.11.10",
|
|
16
|
+
"@alfalab/core-components-code-input": "^3.9.10",
|
|
17
17
|
"@alfalab/core-components-link": "^5.3.4",
|
|
18
|
-
"@alfalab/core-components-spinner": "^4.0.
|
|
19
|
-
"@alfalab/core-components-typography": "^4.14.
|
|
18
|
+
"@alfalab/core-components-spinner": "^4.0.9",
|
|
19
|
+
"@alfalab/core-components-typography": "^4.14.3",
|
|
20
20
|
"@alfalab/core-components-mq": "^4.4.1",
|
|
21
21
|
"@alfalab/hooks": "^1.13.1",
|
|
22
22
|
"classnames": "^2.5.1",
|
|
23
23
|
"tslib": "^2.4.0",
|
|
24
|
-
"@alfalab/core-components-shared": "^0.
|
|
24
|
+
"@alfalab/core-components-shared": "^0.18.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
28
28
|
},
|
|
29
|
-
"themesVersion": "13.7.
|
|
30
|
-
"varsVersion": "9.20.
|
|
29
|
+
"themesVersion": "13.7.4",
|
|
30
|
+
"varsVersion": "9.20.1"
|
|
31
31
|
}
|
|
@@ -130,7 +130,12 @@ export const BaseConfirmation: FC<ConfirmationProps> = ({
|
|
|
130
130
|
|
|
131
131
|
return (
|
|
132
132
|
<ConfirmationContext.Provider value={contextValue}>
|
|
133
|
-
<div
|
|
133
|
+
<div
|
|
134
|
+
className={cn(styles.component, className, {
|
|
135
|
+
[styles.center]: alignContent === 'center',
|
|
136
|
+
})}
|
|
137
|
+
data-test-id={dataTestId}
|
|
138
|
+
>
|
|
134
139
|
{CurrentScreen && <CurrentScreen mobile={mobile} />}
|
|
135
140
|
</div>
|
|
136
141
|
</ConfirmationContext.Provider>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|