@alfalab/core-components-confirmation 13.5.8 → 13.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/component.responsive.d.ts +4 -0
- package/component.responsive.js +2 -2
- package/components/base-confirmation/component.js +1 -1
- package/components/base-confirmation/index.css +2 -2
- 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 +6 -6
- package/components/screens/hint/component.js +1 -1
- package/components/screens/hint/index.css +12 -12
- package/components/screens/initial/component.js +1 -1
- package/components/screens/initial/countdown-section.js +1 -1
- package/components/screens/initial/index.css +18 -18
- package/components/screens/temp-block/component.js +1 -1
- package/components/screens/temp-block/index.css +7 -7
- package/{countdown-section-e051574d.js → countdown-section-917473e6.js} +1 -1
- package/cssm/component.responsive.d.ts +4 -0
- package/cssm/component.responsive.js +2 -2
- package/esm/component.responsive.d.ts +4 -0
- package/esm/component.responsive.js +2 -2
- package/esm/components/base-confirmation/component.js +1 -1
- package/esm/components/base-confirmation/index.css +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/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/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/temp-block/component.js +1 -1
- package/esm/components/screens/temp-block/index.css +7 -7
- package/esm/{countdown-section-56d3e06a.js → countdown-section-53c5fb8d.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/component.responsive.d.ts +4 -0
- package/modern/component.responsive.js +2 -2
- package/modern/components/base-confirmation/component.js +1 -1
- package/modern/components/base-confirmation/index.css +2 -2
- 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 +6 -6
- package/modern/components/screens/hint/component.js +1 -1
- package/modern/components/screens/hint/index.css +12 -12
- 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/temp-block/component.js +1 -1
- package/modern/components/screens/temp-block/index.css +7 -7
- package/modern/{countdown-section-3fbfd7fb.js → countdown-section-2725d6e5.js} +1 -1
- package/modern/mobile/component.mobile.js +1 -1
- package/modern/mobile/mobile.css +2 -2
- package/package.json +5 -5
- package/src/component.responsive.tsx +7 -1
- /package/{countdown-section-e051574d.d.ts → countdown-section-917473e6.d.ts} +0 -0
- /package/esm/{countdown-section-56d3e06a.d.ts → countdown-section-53c5fb8d.d.ts} +0 -0
- /package/modern/{countdown-section-3fbfd7fb.d.ts → countdown-section-2725d6e5.d.ts} +0 -0
|
@@ -6,7 +6,7 @@ import { Typography } 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_5puog","typographyTheme":"confirmation__typographyTheme_5puog","phone":"confirmation__phone_5puog","compact":"confirmation__compact_5puog","loaderWrap":"confirmation__loaderWrap_5puog","left":"confirmation__left_5puog","center":"confirmation__center_5puog","codeInput":"confirmation__codeInput_5puog","smsBtn":"confirmation__smsBtn_5puog","smsComeLink":"confirmation__smsComeLink_5puog","countdownContainer":"confirmation__countdownContainer_5puog","countdownMobile":"confirmation__countdownMobile_5puog","countdownLoaderMobile":"confirmation__countdownLoaderMobile_5puog","getCodeButton":"confirmation__getCodeButton_5puog","getCodeButtonMobile":"confirmation__getCodeButtonMobile_5puog","containerInput":"confirmation__containerInput_5puog"};
|
|
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_ixawe"};
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-confirmation",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.6.0",
|
|
4
4
|
"description": "Sms confirmation component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@alfalab/core-components-button": "^11.5.
|
|
15
|
-
"@alfalab/core-components-code-input": "^3.
|
|
14
|
+
"@alfalab/core-components-button": "^11.5.3",
|
|
15
|
+
"@alfalab/core-components-code-input": "^3.4.0",
|
|
16
16
|
"@alfalab/core-components-link": "^5.2.2",
|
|
17
17
|
"@alfalab/core-components-spinner": "^3.4.0",
|
|
18
|
-
"@alfalab/core-components-typography": "^4.
|
|
19
|
-
"@alfalab/core-components-mq": "^4.
|
|
18
|
+
"@alfalab/core-components-typography": "^4.7.0",
|
|
19
|
+
"@alfalab/core-components-mq": "^4.3.0",
|
|
20
20
|
"@alfalab/hooks": "^1.13.0",
|
|
21
21
|
"classnames": "^2.3.1",
|
|
22
22
|
"tslib": "^2.4.0"
|
|
@@ -15,13 +15,19 @@ export type ResponsiveConfirmationProps = Omit<
|
|
|
15
15
|
* @default 1024
|
|
16
16
|
*/
|
|
17
17
|
breakpoint?: number;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
21
|
+
*/
|
|
22
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
18
23
|
};
|
|
19
24
|
|
|
20
25
|
export const ConfirmationResponsive: FC<ResponsiveConfirmationProps> = ({
|
|
21
26
|
breakpoint = 1024,
|
|
27
|
+
defaultMatchMediaValue = true,
|
|
22
28
|
...restProps
|
|
23
29
|
}) => {
|
|
24
|
-
const [isDesktop] = useMatchMedia(`(min-width: ${breakpoint}px)`,
|
|
30
|
+
const [isDesktop] = useMatchMedia(`(min-width: ${breakpoint}px)`, defaultMatchMediaValue);
|
|
25
31
|
|
|
26
32
|
return isDesktop ? (
|
|
27
33
|
<ConfirmationDesktop {...restProps} />
|
|
File without changes
|
|
File without changes
|
|
File without changes
|