@alfalab/core-components-confirmation 13.9.3 → 13.9.4

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.
Files changed (76) hide show
  1. package/components/base-confirmation/component.js +1 -1
  2. package/components/base-confirmation/index.css +2 -2
  3. package/components/countdown-loader/component.js +1 -1
  4. package/components/countdown-loader/index.css +2 -2
  5. package/components/header/component.js +2 -2
  6. package/components/header/index.css +4 -4
  7. package/components/screens/fatal-error/component.js +2 -2
  8. package/components/screens/fatal-error/index.css +7 -7
  9. package/components/screens/hint/component.js +5 -5
  10. package/components/screens/hint/index.css +13 -13
  11. package/components/screens/initial/component.js +2 -2
  12. package/components/screens/initial/countdown-section.js +1 -1
  13. package/components/screens/initial/index.css +19 -19
  14. package/components/screens/temp-block/component.js +2 -2
  15. package/components/screens/temp-block/index.css +8 -8
  16. package/{countdown-section-89b1f542.js → countdown-section-cff5a1bf.js} +2 -2
  17. package/cssm/components/header/component.js +1 -1
  18. package/cssm/components/screens/fatal-error/component.js +1 -1
  19. package/cssm/components/screens/hint/component.js +4 -4
  20. package/cssm/components/screens/initial/component.js +1 -1
  21. package/cssm/components/screens/initial/countdown-section.js +1 -1
  22. package/cssm/components/screens/temp-block/component.js +1 -1
  23. package/esm/components/base-confirmation/component.js +1 -1
  24. package/esm/components/base-confirmation/index.css +2 -2
  25. package/esm/components/countdown-loader/component.js +1 -1
  26. package/esm/components/countdown-loader/index.css +2 -2
  27. package/esm/components/header/component.js +3 -3
  28. package/esm/components/header/index.css +4 -4
  29. package/esm/components/screens/fatal-error/component.js +3 -3
  30. package/esm/components/screens/fatal-error/index.css +7 -7
  31. package/esm/components/screens/hint/component.js +6 -6
  32. package/esm/components/screens/hint/index.css +13 -13
  33. package/esm/components/screens/initial/component.js +3 -3
  34. package/esm/components/screens/initial/countdown-section.js +1 -1
  35. package/esm/components/screens/initial/index.css +19 -19
  36. package/esm/components/screens/temp-block/component.js +3 -3
  37. package/esm/components/screens/temp-block/index.css +8 -8
  38. package/esm/{countdown-section-25ea173d.js → countdown-section-b3a3b677.js} +3 -3
  39. package/esm/mobile/component.mobile.js +1 -1
  40. package/esm/mobile/mobile.css +2 -2
  41. package/mobile/component.mobile.js +1 -1
  42. package/mobile/mobile.css +2 -2
  43. package/modern/components/base-confirmation/component.js +1 -1
  44. package/modern/components/base-confirmation/index.css +2 -2
  45. package/modern/components/countdown-loader/component.js +1 -1
  46. package/modern/components/countdown-loader/index.css +2 -2
  47. package/modern/components/header/component.js +3 -3
  48. package/modern/components/header/index.css +4 -4
  49. package/modern/components/screens/fatal-error/component.js +3 -3
  50. package/modern/components/screens/fatal-error/index.css +7 -7
  51. package/modern/components/screens/hint/component.js +6 -6
  52. package/modern/components/screens/hint/index.css +13 -13
  53. package/modern/components/screens/initial/component.js +3 -3
  54. package/modern/components/screens/initial/countdown-section.js +1 -1
  55. package/modern/components/screens/initial/index.css +19 -19
  56. package/modern/components/screens/temp-block/component.js +3 -3
  57. package/modern/components/screens/temp-block/index.css +8 -8
  58. package/modern/{countdown-section-b5274538.js → countdown-section-9c4f8600.js} +3 -3
  59. package/modern/mobile/component.mobile.js +1 -1
  60. package/modern/mobile/mobile.css +2 -2
  61. package/moderncssm/components/header/component.js +2 -2
  62. package/moderncssm/components/screens/fatal-error/component.js +2 -2
  63. package/moderncssm/components/screens/hint/component.js +5 -5
  64. package/moderncssm/components/screens/initial/component.js +2 -2
  65. package/moderncssm/components/screens/initial/countdown-section.js +2 -2
  66. package/moderncssm/components/screens/temp-block/component.js +2 -2
  67. package/package.json +8 -7
  68. package/src/components/header/component.tsx +3 -3
  69. package/src/components/screens/fatal-error/component.tsx +3 -3
  70. package/src/components/screens/hint/component.tsx +9 -9
  71. package/src/components/screens/initial/component.tsx +3 -3
  72. package/src/components/screens/initial/countdown-section.tsx +3 -3
  73. package/src/components/screens/temp-block/component.tsx +3 -3
  74. /package/{countdown-section-89b1f542.d.ts → countdown-section-cff5a1bf.d.ts} +0 -0
  75. /package/esm/{countdown-section-25ea173d.d.ts → countdown-section-b3a3b677.d.ts} +0 -0
  76. /package/modern/{countdown-section-b5274538.d.ts → countdown-section-9c4f8600.d.ts} +0 -0
@@ -1,12 +1,12 @@
1
1
  import React, { useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
- import { Typography } from '@alfalab/core-components-typography/modern';
3
+ import { Text } from '@alfalab/core-components-typography/modern';
4
4
  import { ConfirmationContext } from '../../../context.js';
5
5
  import { useCountdown, formatMsAsMinutes } from '../../../utils.js';
6
6
  import { CountdownLoader } from '../../countdown-loader/component.js';
7
7
  import { Header } from '../../header/component.js';
8
8
 
9
- const styles = {"component":"confirmation__component_1ezj5","center":"confirmation__center_1ezj5","typographyTheme":"confirmation__typographyTheme_1ezj5","typographyThemeMobile":"confirmation__typographyThemeMobile_1ezj5","description":"confirmation__description_1ezj5","countdownWrap":"confirmation__countdownWrap_1ezj5","loader":"confirmation__loader_1ezj5"};
9
+ const styles = {"component":"confirmation__component_1kb5d","center":"confirmation__center_1kb5d","typographyTheme":"confirmation__typographyTheme_1kb5d","typographyThemeMobile":"confirmation__typographyThemeMobile_1kb5d","description":"confirmation__description_1kb5d","countdownWrap":"confirmation__countdownWrap_1kb5d","loader":"confirmation__loader_1kb5d"};
10
10
  require('./index.css')
11
11
 
12
12
  const TempBlock = ({ mobile }) => {
@@ -22,7 +22,7 @@ const TempBlock = ({ mobile }) => {
22
22
  }, [timeLeft, onChangeScreen, onTempBlockFinished]);
23
23
  return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
24
24
  React.createElement(Header, { mobile: mobile }, texts.tempBlockTitle),
25
- React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.description, {
25
+ React.createElement(Text, { view: 'primary-medium', color: 'primary', className: cn(styles.description, {
26
26
  [styles.typographyTheme]: !mobile,
27
27
  [styles.typographyThemeMobile]: mobile,
28
28
  }) }, texts.tempBlockDescription),
@@ -1,4 +1,4 @@
1
- /* hash: 1bf4k */
1
+ /* hash: 15olb */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-primary: rgba(3, 3, 6, 0.88);
@@ -37,25 +37,25 @@
37
37
  --confirmation-text-color: var(--color-light-text-primary)
38
38
 
39
39
  /* header */
40
- } .confirmation__component_1ezj5 {
40
+ } .confirmation__component_1kb5d {
41
41
  display: flex;
42
42
  flex-direction: column;
43
- } .confirmation__center_1ezj5 {
43
+ } .confirmation__center_1kb5d {
44
44
  align-items: center;
45
45
  text-align: center;
46
- } .confirmation__typographyTheme_1ezj5.confirmation__typographyTheme_1ezj5 {
46
+ } .confirmation__typographyTheme_1kb5d.confirmation__typographyTheme_1kb5d {
47
47
  font-size: var(--confirmation-text-font-size);
48
48
  line-height: var(--confirmation-text-line-height);
49
49
  font-weight: var(--confirmation-text-font-weight);
50
50
  font-family: var(--confirmation-text-font-family);
51
51
  color: var(--confirmation-text-color);
52
- } .confirmation__typographyThemeMobile_1ezj5.confirmation__typographyThemeMobile_1ezj5 {
52
+ } .confirmation__typographyThemeMobile_1kb5d.confirmation__typographyThemeMobile_1kb5d {
53
53
  color: var(--color-light-text-secondary);
54
- } .confirmation__description_1ezj5.confirmation__description_1ezj5 {
54
+ } .confirmation__description_1kb5d.confirmation__description_1kb5d {
55
55
  margin-bottom: var(--gap-8);
56
- } .confirmation__countdownWrap_1ezj5 {
56
+ } .confirmation__countdownWrap_1kb5d {
57
57
  display: flex;
58
58
  align-items: center;
59
- } .confirmation__loader_1ezj5 {
59
+ } .confirmation__loader_1kb5d {
60
60
  margin-right: var(--gap-8);
61
61
  }
@@ -2,16 +2,16 @@ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Button } from '@alfalab/core-components-button/modern';
4
4
  import { Spinner } from '@alfalab/core-components-spinner/modern';
5
- import { Typography } from '@alfalab/core-components-typography/modern';
5
+ 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":"confirmation__component_1vqjl","phone":"confirmation__phone_1vqjl","typographyTheme":"confirmation__typographyTheme_1vqjl","typographyThemeMobile":"confirmation__typographyThemeMobile_1vqjl","compact":"confirmation__compact_1vqjl","loaderWrap":"confirmation__loaderWrap_1vqjl","left":"confirmation__left_1vqjl","center":"confirmation__center_1vqjl","codeInput":"confirmation__codeInput_1vqjl","smsBtn":"confirmation__smsBtn_1vqjl","smsComeLink":"confirmation__smsComeLink_1vqjl","countdownContainer":"confirmation__countdownContainer_1vqjl","countdownMobile":"confirmation__countdownMobile_1vqjl","countdownLoaderMobile":"confirmation__countdownLoaderMobile_1vqjl","getCodeButton":"confirmation__getCodeButton_1vqjl","getCodeButtonMobile":"confirmation__getCodeButtonMobile_1vqjl","containerInput":"confirmation__containerInput_1vqjl"};
9
+ const styles = {"component":"confirmation__component_211r3","phone":"confirmation__phone_211r3","typographyTheme":"confirmation__typographyTheme_211r3","typographyThemeMobile":"confirmation__typographyThemeMobile_211r3","compact":"confirmation__compact_211r3","loaderWrap":"confirmation__loaderWrap_211r3","left":"confirmation__left_211r3","center":"confirmation__center_211r3","codeInput":"confirmation__codeInput_211r3","smsBtn":"confirmation__smsBtn_211r3","smsComeLink":"confirmation__smsComeLink_211r3","countdownContainer":"confirmation__countdownContainer_211r3","countdownMobile":"confirmation__countdownMobile_211r3","countdownLoaderMobile":"confirmation__countdownLoaderMobile_211r3","getCodeButton":"confirmation__getCodeButton_211r3","getCodeButtonMobile":"confirmation__getCodeButtonMobile_211r3","containerInput":"confirmation__containerInput_211r3"};
10
10
  require('./components/screens/initial/index.css')
11
11
 
12
12
  const CountdownSection = ({ codeSendHintVisible, timePassed, processing, mobile, handleSmsRetryClick, }) => {
13
13
  const { state, texts, timeLeft, blockSmsRetry, breakpoint, client } = useContext(ConfirmationContext);
14
- const renderText = (text) => (React.createElement(Typography.Text, { className: cn(styles.countdownContainer, {
14
+ const renderText = (text) => (React.createElement(Text, { className: cn(styles.countdownContainer, {
15
15
  [styles.countdownMobile]: mobile,
16
16
  [styles.typographyTheme]: !mobile,
17
17
  }), view: mobile ? 'primary-small' : 'primary-medium', tag: 'div' }, text));
@@ -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":"confirmation__container_iioqg"};
5
+ const styles = {"container":"confirmation__container_kgw6l"};
6
6
  require('./mobile.css')
7
7
 
8
8
  const ConfirmationMobile = ({ className, ...resProps }) => (React.createElement(BaseConfirmation, { mobile: true, className: cn(className, styles.container), ...resProps }));
@@ -1,4 +1,4 @@
1
- /* hash: w1lrh */
2
- .confirmation__container_iioqg {
1
+ /* hash: 1xzp4 */
2
+ .confirmation__container_kgw6l {
3
3
  max-width: 288px;
4
4
  }
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import { Typography } from '@alfalab/core-components-typography/moderncssm';
3
+ import { TitleDesktop } from '@alfalab/core-components-typography/moderncssm';
4
4
  import styles from './index.module.css';
5
5
 
6
- const Header = ({ mobile, children }) => (React.createElement(Typography.Title, { className: cn(styles.header, styles.typography, { [styles.typographyMobile]: mobile }), tag: 'h3', color: 'primary' }, children));
6
+ const Header = ({ mobile, children }) => (React.createElement(TitleDesktop, { className: cn(styles.header, styles.typography, { [styles.typographyMobile]: mobile }), tag: 'h3', color: 'primary' }, children));
7
7
 
8
8
  export { Header };
@@ -1,7 +1,7 @@
1
1
  import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Button } from '@alfalab/core-components-button/moderncssm';
4
- import { Typography } from '@alfalab/core-components-typography/moderncssm';
4
+ import { Text } from '@alfalab/core-components-typography/moderncssm';
5
5
  import { ConfirmationContext } from '../../../context.js';
6
6
  import { Header } from '../../header/component.js';
7
7
  import styles from './index.module.css';
@@ -10,7 +10,7 @@ const FatalError = ({ mobile }) => {
10
10
  const { alignContent, texts, onFatalErrorOkButtonClick, breakpoint, client } = useContext(ConfirmationContext);
11
11
  return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
12
12
  React.createElement(Header, { mobile: mobile }, texts.fatalErrorTitle),
13
- React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn({
13
+ React.createElement(Text, { view: 'primary-medium', color: 'primary', className: cn({
14
14
  [styles.typographyTheme]: !mobile,
15
15
  [styles.typographyThemeMobile]: mobile,
16
16
  }) }, texts.fatalErrorDescription),
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Button } from '@alfalab/core-components-button/moderncssm';
4
4
  import { Link } from '@alfalab/core-components-link/moderncssm';
5
- import { Typography } from '@alfalab/core-components-typography/moderncssm';
5
+ import { Text } from '@alfalab/core-components-typography/moderncssm';
6
6
  import { ConfirmationContext } from '../../../context.js';
7
7
  import { getPhoneHref } from '../../../utils.js';
8
8
  import { Header } from '../../header/component.js';
@@ -17,7 +17,7 @@ const Hint = ({ mobile }) => {
17
17
  };
18
18
  return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
19
19
  React.createElement(Header, { mobile: mobile }, "\u041D\u0435\u00A0\u043F\u0440\u0438\u0445\u043E\u0434\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435?"),
20
- React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
20
+ React.createElement(Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
21
21
  [styles.typographyTheme]: !mobile,
22
22
  [styles.typographyThemeMobile]: mobile,
23
23
  }) }, "\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."),
@@ -26,7 +26,7 @@ const Hint = ({ mobile }) => {
26
26
  }) },
27
27
  React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
28
28
  React.createElement(Link, { href: getPhoneHref(domesticPhone), underline: false, className: cn(styles.phoneLink, { [styles.typographyThemeMobile]: mobile }) }, domesticPhone),
29
- React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
29
+ React.createElement(Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
30
30
  [styles.typographyTheme]: !mobile,
31
31
  [styles.typographyThemeMobile]: mobile,
32
32
  }) }, mobile
@@ -34,13 +34,13 @@ const Hint = ({ mobile }) => {
34
34
  : ' \u2014\u00A0для звонков по\u00A0России')),
35
35
  React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
36
36
  React.createElement(Link, { href: getPhoneHref(internationalPhone), underline: false, className: cn(styles.phoneLink, { [styles.typographyThemeMobile]: mobile }) }, internationalPhone),
37
- React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
37
+ React.createElement(Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
38
38
  [styles.typographyTheme]: !mobile,
39
39
  [styles.typographyThemeMobile]: mobile,
40
40
  }) }, mobile
41
41
  ? 'В\u00A0Москве и\u00A0за\u00A0границей'
42
42
  : ' \u2014\u00A0в\u00A0Москве и\u00A0за\u00A0границей'))),
43
- React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
43
+ React.createElement(Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, {
44
44
  [styles.typographyTheme]: !mobile,
45
45
  [styles.typographyThemeMobile]: mobile,
46
46
  }) }, "\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."),
@@ -4,7 +4,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/moderncssm/mobile'
4
4
  import { CodeInputDesktop } from '@alfalab/core-components-code-input/moderncssm/desktop';
5
5
  import { CodeInputMobile } from '@alfalab/core-components-code-input/moderncssm/mobile';
6
6
  import { Link } from '@alfalab/core-components-link/moderncssm';
7
- import { Typography } from '@alfalab/core-components-typography/moderncssm';
7
+ import { Text } from '@alfalab/core-components-typography/moderncssm';
8
8
  import { usePrevious, useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
9
9
  import { ConfirmationContext } from '../../../context.js';
10
10
  import { Header } from '../../header/component.js';
@@ -91,7 +91,7 @@ const Initial = ({ mobile }) => {
91
91
  const ComponentCodeInput = mobile ? CodeInputMobile : CodeInputDesktop;
92
92
  return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
93
93
  React.createElement(Header, { mobile: mobile }, texts.title),
94
- phone ? (React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.phone, {
94
+ phone ? (React.createElement(Text, { view: 'primary-medium', color: 'primary', className: cn(styles.phone, {
95
95
  [styles.typographyTheme]: !mobile,
96
96
  [styles.typographyThemeMobile]: mobile,
97
97
  }) },
@@ -2,14 +2,14 @@ import React, { useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Button } from '@alfalab/core-components-button/moderncssm';
4
4
  import { Spinner } from '@alfalab/core-components-spinner/moderncssm';
5
- import { Typography } from '@alfalab/core-components-typography/moderncssm';
5
+ import { Text } from '@alfalab/core-components-typography/moderncssm';
6
6
  import { ConfirmationContext } from '../../../context.js';
7
7
  import { formatMsAsMinutes } from '../../../utils.js';
8
8
  import styles from './index.module.css';
9
9
 
10
10
  const CountdownSection = ({ codeSendHintVisible, timePassed, processing, mobile, handleSmsRetryClick, }) => {
11
11
  const { state, texts, timeLeft, blockSmsRetry, breakpoint, client } = useContext(ConfirmationContext);
12
- const renderText = (text) => (React.createElement(Typography.Text, { className: cn(styles.countdownContainer, {
12
+ const renderText = (text) => (React.createElement(Text, { className: cn(styles.countdownContainer, {
13
13
  [styles.countdownMobile]: mobile,
14
14
  [styles.typographyTheme]: !mobile,
15
15
  }), view: mobile ? 'primary-small' : 'primary-medium', tag: 'div' }, text));
@@ -1,6 +1,6 @@
1
1
  import React, { useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
- import { Typography } from '@alfalab/core-components-typography/moderncssm';
3
+ import { Text } from '@alfalab/core-components-typography/moderncssm';
4
4
  import { ConfirmationContext } from '../../../context.js';
5
5
  import { useCountdown, formatMsAsMinutes } from '../../../utils.js';
6
6
  import { CountdownLoader } from '../../countdown-loader/component.js';
@@ -20,7 +20,7 @@ const TempBlock = ({ mobile }) => {
20
20
  }, [timeLeft, onChangeScreen, onTempBlockFinished]);
21
21
  return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
22
22
  React.createElement(Header, { mobile: mobile }, texts.tempBlockTitle),
23
- React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.description, {
23
+ React.createElement(Text, { view: 'primary-medium', color: 'primary', className: cn(styles.description, {
24
24
  [styles.typographyTheme]: !mobile,
25
25
  [styles.typographyThemeMobile]: mobile,
26
26
  }) }, texts.tempBlockDescription),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-confirmation",
3
- "version": "13.9.3",
3
+ "version": "13.9.4",
4
4
  "description": "Sms confirmation component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,15 +10,16 @@
10
10
  "access": "public",
11
11
  "directory": "dist"
12
12
  },
13
+ "sideEffects": false,
13
14
  "dependencies": {
14
- "@alfalab/core-components-button": "^11.11.0",
15
- "@alfalab/core-components-code-input": "^3.9.2",
16
- "@alfalab/core-components-link": "^5.3.1",
17
- "@alfalab/core-components-spinner": "^4.0.0",
18
- "@alfalab/core-components-typography": "^4.11.0",
15
+ "@alfalab/core-components-button": "^11.11.1",
16
+ "@alfalab/core-components-code-input": "^3.9.3",
17
+ "@alfalab/core-components-link": "^5.3.2",
18
+ "@alfalab/core-components-spinner": "^4.0.1",
19
+ "@alfalab/core-components-typography": "^4.11.1",
19
20
  "@alfalab/core-components-mq": "^4.4.0",
20
21
  "@alfalab/hooks": "^1.13.0",
21
- "classnames": "^2.3.1",
22
+ "classnames": "^2.5.1",
22
23
  "tslib": "^2.4.0",
23
24
  "@alfalab/core-components-shared": "^0.14.0"
24
25
  },
@@ -1,7 +1,7 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- import { Typography } from '@alfalab/core-components-typography';
4
+ import { TitleDesktop } from '@alfalab/core-components-typography';
5
5
 
6
6
  import styles from './index.module.css';
7
7
 
@@ -18,11 +18,11 @@ export type HeaderProps = {
18
18
  };
19
19
 
20
20
  export const Header: FC<HeaderProps> = ({ mobile, children }) => (
21
- <Typography.Title
21
+ <TitleDesktop
22
22
  className={cn(styles.header, styles.typography, { [styles.typographyMobile]: mobile })}
23
23
  tag='h3'
24
24
  color='primary'
25
25
  >
26
26
  {children}
27
- </Typography.Title>
27
+ </TitleDesktop>
28
28
  );
@@ -2,7 +2,7 @@ import React, { FC, useContext } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
4
  import { Button } from '@alfalab/core-components-button';
5
- import { Typography } from '@alfalab/core-components-typography';
5
+ import { Text } from '@alfalab/core-components-typography';
6
6
 
7
7
  import { ConfirmationContext } from '../../../context';
8
8
  import { Header } from '../../header';
@@ -24,7 +24,7 @@ export const FatalError: FC<FatalErrorProps> = ({ mobile }) => {
24
24
  <div className={cn(styles.component, styles[alignContent])}>
25
25
  <Header mobile={mobile}>{texts.fatalErrorTitle}</Header>
26
26
 
27
- <Typography.Text
27
+ <Text
28
28
  view='primary-medium'
29
29
  color='primary'
30
30
  className={cn({
@@ -33,7 +33,7 @@ export const FatalError: FC<FatalErrorProps> = ({ mobile }) => {
33
33
  })}
34
34
  >
35
35
  {texts.fatalErrorDescription}
36
- </Typography.Text>
36
+ </Text>
37
37
 
38
38
  <Button
39
39
  size={mobile ? 'xs' : 's'}
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
 
4
4
  import { Button } from '@alfalab/core-components-button';
5
5
  import { Link } from '@alfalab/core-components-link';
6
- import { Typography } from '@alfalab/core-components-typography';
6
+ import { Text } from '@alfalab/core-components-typography';
7
7
 
8
8
  import { ConfirmationContext } from '../../../context';
9
9
  import { getPhoneHref } from '../../../utils';
@@ -33,7 +33,7 @@ export const Hint: FC<HintProps> = ({ mobile }) => {
33
33
  <div className={cn(styles.component, styles[alignContent])}>
34
34
  <Header mobile={mobile}>Не&nbsp;приходит сообщение?</Header>
35
35
 
36
- <Typography.Text
36
+ <Text
37
37
  view='primary-medium'
38
38
  color='primary'
39
39
  className={cn(styles.text, {
@@ -43,7 +43,7 @@ export const Hint: FC<HintProps> = ({ mobile }) => {
43
43
  >
44
44
  Если у&nbsp;вас изменился номер телефона, позвоните нам или обратитесь в&nbsp;любое
45
45
  отделение банка.
46
- </Typography.Text>
46
+ </Text>
47
47
 
48
48
  <div
49
49
  className={cn(styles.phonesWrap, {
@@ -58,7 +58,7 @@ export const Hint: FC<HintProps> = ({ mobile }) => {
58
58
  >
59
59
  {domesticPhone}
60
60
  </Link>
61
- <Typography.Text
61
+ <Text
62
62
  view='primary-medium'
63
63
  color='primary'
64
64
  className={cn(styles.text, {
@@ -69,7 +69,7 @@ export const Hint: FC<HintProps> = ({ mobile }) => {
69
69
  {mobile
70
70
  ? 'Для\u00A0звонков по\u00A0России'
71
71
  : ' \u2014\u00A0для звонков по\u00A0России'}
72
- </Typography.Text>
72
+ </Text>
73
73
  </div>
74
74
 
75
75
  <div className={cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile })}>
@@ -80,7 +80,7 @@ export const Hint: FC<HintProps> = ({ mobile }) => {
80
80
  >
81
81
  {internationalPhone}
82
82
  </Link>
83
- <Typography.Text
83
+ <Text
84
84
  view='primary-medium'
85
85
  color='primary'
86
86
  className={cn(styles.text, {
@@ -91,11 +91,11 @@ export const Hint: FC<HintProps> = ({ mobile }) => {
91
91
  {mobile
92
92
  ? 'В\u00A0Москве и\u00A0за\u00A0границей'
93
93
  : ' \u2014\u00A0в\u00A0Москве и\u00A0за\u00A0границей'}
94
- </Typography.Text>
94
+ </Text>
95
95
  </div>
96
96
  </div>
97
97
 
98
- <Typography.Text
98
+ <Text
99
99
  view='primary-medium'
100
100
  color='primary'
101
101
  className={cn(styles.text, {
@@ -105,7 +105,7 @@ export const Hint: FC<HintProps> = ({ mobile }) => {
105
105
  >
106
106
  Если номер не&nbsp;менялся, возможно, перегружен сервис отправки сообщений.
107
107
  Попробуйте повторить действие через несколько минут.
108
- </Typography.Text>
108
+ </Text>
109
109
 
110
110
  <Button
111
111
  size={mobile ? 'xs' : 's'}
@@ -6,7 +6,7 @@ import { CodeInputDesktop } from '@alfalab/core-components-code-input/desktop';
6
6
  import { CodeInputMobile } from '@alfalab/core-components-code-input/mobile';
7
7
  import { BaseCodeInputProps, CustomInputRef } from '@alfalab/core-components-code-input/shared';
8
8
  import { Link } from '@alfalab/core-components-link';
9
- import { Typography } from '@alfalab/core-components-typography';
9
+ import { Text } from '@alfalab/core-components-typography';
10
10
  import { useLayoutEffect_SAFE_FOR_SSR, usePrevious } from '@alfalab/hooks';
11
11
 
12
12
  import { ConfirmationContext } from '../../../context';
@@ -168,7 +168,7 @@ export const Initial: FC<InitialProps> = ({ mobile }) => {
168
168
  <Header mobile={mobile}>{texts.title}</Header>
169
169
 
170
170
  {phone ? (
171
- <Typography.Text
171
+ <Text
172
172
  view='primary-medium'
173
173
  color='primary'
174
174
  className={cn(styles.phone, {
@@ -177,7 +177,7 @@ export const Initial: FC<InitialProps> = ({ mobile }) => {
177
177
  })}
178
178
  >
179
179
  Код отправлен на {phone}
180
- </Typography.Text>
180
+ </Text>
181
181
  ) : null}
182
182
  <ComponentCodeInput
183
183
  disabled={processing}
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
 
4
4
  import { Button } from '@alfalab/core-components-button';
5
5
  import { Spinner } from '@alfalab/core-components-spinner';
6
- import { Typography } from '@alfalab/core-components-typography';
6
+ import { Text } from '@alfalab/core-components-typography';
7
7
 
8
8
  import { ConfirmationContext } from '../../../context';
9
9
  import { formatMsAsMinutes } from '../../../utils';
@@ -29,7 +29,7 @@ export const CountdownSection: FC<CountdownSectionProps> = ({
29
29
  useContext(ConfirmationContext);
30
30
 
31
31
  const renderText = (text?: string) => (
32
- <Typography.Text
32
+ <Text
33
33
  className={cn(styles.countdownContainer, {
34
34
  [styles.countdownMobile]: mobile,
35
35
  [styles.typographyTheme]: !mobile,
@@ -38,7 +38,7 @@ export const CountdownSection: FC<CountdownSectionProps> = ({
38
38
  tag='div'
39
39
  >
40
40
  {text}
41
- </Typography.Text>
41
+ </Text>
42
42
  );
43
43
 
44
44
  if (codeSendHintVisible) return renderText(texts.codeSended);
@@ -1,7 +1,7 @@
1
1
  import React, { FC, useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- import { Typography } from '@alfalab/core-components-typography';
4
+ import { Text } from '@alfalab/core-components-typography';
5
5
 
6
6
  import { ConfirmationContext } from '../../../context';
7
7
  import { formatMsAsMinutes, useCountdown } from '../../../utils';
@@ -37,7 +37,7 @@ export const TempBlock: FC<TempBlockProps> = ({ mobile }) => {
37
37
  <div className={cn(styles.component, styles[alignContent])}>
38
38
  <Header mobile={mobile}>{texts.tempBlockTitle}</Header>
39
39
 
40
- <Typography.Text
40
+ <Text
41
41
  view='primary-medium'
42
42
  color='primary'
43
43
  className={cn(styles.description, {
@@ -46,7 +46,7 @@ export const TempBlock: FC<TempBlockProps> = ({ mobile }) => {
46
46
  })}
47
47
  >
48
48
  {texts.tempBlockDescription}
49
- </Typography.Text>
49
+ </Text>
50
50
 
51
51
  <div className={cn(styles.countdownWrap, { [styles.typographyTheme]: !mobile })}>
52
52
  <CountdownLoader