@alfalab/core-components-confirmation 12.3.3 → 12.3.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 (118) hide show
  1. package/{component-c18159ad.d.ts → component-ad8387ce.d.ts} +0 -0
  2. package/{component-c18159ad.js → component-ad8387ce.js} +2 -2
  3. package/component.desktop.js +2 -2
  4. package/component.mobile.js +3 -3
  5. package/component.responsive.js +2 -2
  6. package/components/base-confirmation/component.js +2 -2
  7. package/components/base-confirmation/index.css +2 -8
  8. package/components/base-confirmation/index.d.ts +1 -1
  9. package/components/base-confirmation/index.js +2 -2
  10. package/components/countdown-loader/component.js +1 -1
  11. package/components/countdown-loader/index.css +2 -2
  12. package/components/header/component.js +1 -1
  13. package/components/header/index.css +4 -4
  14. package/components/index.js +1 -1
  15. package/components/screens/fatal-error/component.js +1 -1
  16. package/components/screens/fatal-error/index.css +10 -5
  17. package/components/screens/hint/component.js +16 -17
  18. package/components/screens/hint/index.css +15 -14
  19. package/components/screens/index.js +1 -1
  20. package/components/screens/initial/component.js +1 -1
  21. package/components/screens/initial/countdown-section.js +1 -1
  22. package/components/screens/initial/index.css +18 -18
  23. package/components/screens/initial/index.js +1 -1
  24. package/components/screens/temp-block/component.js +3 -3
  25. package/components/screens/temp-block/index.css +13 -5
  26. package/{countdown-section-fa5d99c6.d.ts → countdown-section-f4894842.d.ts} +0 -0
  27. package/countdown-section-f4894842.js +49 -0
  28. package/cssm/{component-cbe72bf1.d.ts → component-5a4af768.d.ts} +0 -0
  29. package/cssm/{component-cbe72bf1.js → component-5a4af768.js} +1 -1
  30. package/cssm/component.desktop.js +1 -1
  31. package/cssm/component.mobile.js +1 -1
  32. package/cssm/component.responsive.js +1 -1
  33. package/cssm/components/base-confirmation/component.js +1 -1
  34. package/cssm/components/base-confirmation/index.d.ts +1 -1
  35. package/cssm/components/base-confirmation/index.js +1 -1
  36. package/cssm/components/base-confirmation/index.module.css +0 -6
  37. package/cssm/components/header/index.module.css +3 -3
  38. package/cssm/components/screens/fatal-error/index.module.css +6 -1
  39. package/cssm/components/screens/hint/component.js +15 -16
  40. package/cssm/components/screens/hint/index.module.css +9 -8
  41. package/cssm/components/screens/initial/countdown-section.js +19 -26
  42. package/cssm/components/screens/initial/index.module.css +5 -5
  43. package/cssm/components/screens/temp-block/component.js +2 -2
  44. package/cssm/components/screens/temp-block/index.module.css +10 -2
  45. package/cssm/desktop.js +1 -1
  46. package/cssm/index.js +1 -1
  47. package/cssm/mobile.js +1 -1
  48. package/cssm/responsive.js +1 -1
  49. package/desktop.js +2 -2
  50. package/esm/{component-2c4a15b0.d.ts → component-b1ceb5d0.d.ts} +0 -0
  51. package/esm/{component-2c4a15b0.js → component-b1ceb5d0.js} +2 -2
  52. package/esm/component.desktop.js +2 -2
  53. package/esm/component.mobile.js +3 -3
  54. package/esm/component.responsive.js +2 -2
  55. package/esm/components/base-confirmation/component.js +2 -2
  56. package/esm/components/base-confirmation/index.css +2 -8
  57. package/esm/components/base-confirmation/index.d.ts +1 -1
  58. package/esm/components/base-confirmation/index.js +2 -2
  59. package/esm/components/countdown-loader/component.js +1 -1
  60. package/esm/components/countdown-loader/index.css +2 -2
  61. package/esm/components/header/component.js +1 -1
  62. package/esm/components/header/index.css +4 -4
  63. package/esm/components/index.js +1 -1
  64. package/esm/components/screens/fatal-error/component.js +1 -1
  65. package/esm/components/screens/fatal-error/index.css +10 -5
  66. package/esm/components/screens/hint/component.js +16 -17
  67. package/esm/components/screens/hint/index.css +15 -14
  68. package/esm/components/screens/index.js +1 -1
  69. package/esm/components/screens/initial/component.js +1 -1
  70. package/esm/components/screens/initial/countdown-section.js +1 -1
  71. package/esm/components/screens/initial/index.css +18 -18
  72. package/esm/components/screens/initial/index.js +1 -1
  73. package/esm/components/screens/temp-block/component.js +4 -4
  74. package/esm/components/screens/temp-block/index.css +13 -5
  75. package/esm/{countdown-section-a819b4f1.d.ts → countdown-section-608e4e3a.d.ts} +0 -0
  76. package/esm/countdown-section-608e4e3a.js +41 -0
  77. package/esm/desktop.js +2 -2
  78. package/esm/index.js +2 -2
  79. package/esm/mobile.css +2 -2
  80. package/esm/mobile.js +2 -2
  81. package/esm/responsive.js +2 -2
  82. package/index.js +2 -2
  83. package/mobile.css +2 -2
  84. package/mobile.js +2 -2
  85. package/modern/component.desktop.js +1 -1
  86. package/modern/component.mobile.js +2 -2
  87. package/modern/component.responsive.js +1 -1
  88. package/modern/components/base-confirmation/component.js +3 -3
  89. package/modern/components/base-confirmation/index.css +2 -8
  90. package/modern/components/base-confirmation/index.js +1 -1
  91. package/modern/components/countdown-loader/component.js +1 -1
  92. package/modern/components/countdown-loader/index.css +2 -2
  93. package/modern/components/header/component.js +1 -1
  94. package/modern/components/header/index.css +4 -4
  95. package/modern/components/index.js +1 -1
  96. package/modern/components/screens/fatal-error/component.js +1 -1
  97. package/modern/components/screens/fatal-error/index.css +10 -5
  98. package/modern/components/screens/hint/component.js +16 -17
  99. package/modern/components/screens/hint/index.css +15 -14
  100. package/modern/components/screens/index.js +1 -1
  101. package/modern/components/screens/initial/component.js +1 -1
  102. package/modern/components/screens/initial/countdown-section.js +1 -1
  103. package/modern/components/screens/initial/index.css +18 -18
  104. package/modern/components/screens/initial/index.js +1 -1
  105. package/modern/components/screens/temp-block/component.js +4 -4
  106. package/modern/components/screens/temp-block/index.css +13 -5
  107. package/modern/{countdown-section-5519e1b6.d.ts → countdown-section-cb87c8ea.d.ts} +0 -0
  108. package/modern/countdown-section-cb87c8ea.js +36 -0
  109. package/modern/desktop.js +1 -1
  110. package/modern/index.js +1 -1
  111. package/modern/mobile.css +2 -2
  112. package/modern/mobile.js +1 -1
  113. package/modern/responsive.js +1 -1
  114. package/package.json +1 -1
  115. package/responsive.js +2 -2
  116. package/countdown-section-fa5d99c6.js +0 -56
  117. package/esm/countdown-section-a819b4f1.js +0 -48
  118. package/modern/countdown-section-5519e1b6.js +0 -46
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-5519e1b6.js';
13
+ import './countdown-section-cb87c8ea.js';
14
14
  import './components/screens/initial/component.js';
15
15
  import './components/screens/hint/component.js';
16
16
  import './components/screens/fatal-error/component.js';
@@ -10,14 +10,14 @@ import '@alfalab/core-components-link/modern';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import '../header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import '../../countdown-section-5519e1b6.js';
13
+ import '../../countdown-section-cb87c8ea.js';
14
14
  import { Initial } from '../screens/initial/component.js';
15
15
  import { Hint } from '../screens/hint/component.js';
16
16
  import { FatalError } from '../screens/fatal-error/component.js';
17
17
  import '../countdown-loader/component.js';
18
18
  import { TempBlock } from '../screens/temp-block/component.js';
19
19
 
20
- var styles = {"component":"confirmation__component_1u8w9","center":"confirmation__center_1u8w9"};
20
+ var styles = {"component":"confirmation__component_jlzzz"};
21
21
  require('./index.css')
22
22
 
23
23
  const confirmationScreens = {
@@ -84,7 +84,7 @@ const BaseConfirmation = ({ state, screen, alignContent = 'left', children, requ
84
84
  const screensMap = getScreensMap ? getScreensMap(confirmationScreens) : confirmationScreens;
85
85
  const CurrentScreen = screensMap[screen];
86
86
  return (React.createElement(ConfirmationContext.Provider, { value: contextValue },
87
- React.createElement("div", { className: cn(styles.component, styles[alignContent], className), "data-test-id": dataTestId }, CurrentScreen && React.createElement(CurrentScreen, { mobile: mobile }))));
87
+ React.createElement("div", { className: cn(styles.component, className), "data-test-id": dataTestId }, CurrentScreen && React.createElement(CurrentScreen, { mobile: mobile }))));
88
88
  };
89
89
 
90
90
  export { BaseConfirmation };
@@ -1,4 +1,4 @@
1
- /* hash: 19z35 */
1
+ /* hash: 5tjjg */
2
2
  :root {
3
3
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
4
4
  }
@@ -10,15 +10,9 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .confirmation__component_1u8w9 {
14
- display: flex;
15
- flex-direction: column;
13
+ .confirmation__component_jlzzz {
16
14
  width: 100%;
17
15
  max-width: 388px;
18
16
  margin: 0 auto;
19
17
  color: var(--color-light-text-secondary);
20
18
  }
21
- .confirmation__center_1u8w9 {
22
- align-items: center;
23
- text-align: center;
24
- }
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import '../header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import '../../countdown-section-5519e1b6.js';
13
+ import '../../countdown-section-cb87c8ea.js';
14
14
  import '../screens/initial/component.js';
15
15
  import '../screens/hint/component.js';
16
16
  import '../screens/fatal-error/component.js';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- var styles = {"circle":"confirmation__circle_mqynb"};
3
+ var styles = {"circle":"confirmation__circle_8bmir"};
4
4
  require('./index.css')
5
5
 
6
6
  const SIZE = 16;
@@ -1,4 +1,4 @@
1
- /* hash: 1ebbi */
1
+ /* hash: 16dc1 */
2
2
  :root {
3
3
  --color-light-graphic-tertiary: #b6bcc3;
4
4
  }
@@ -10,7 +10,7 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .confirmation__circle_mqynb {
13
+ .confirmation__circle_8bmir {
14
14
  fill: transparent;
15
15
  stroke: var(--color-light-graphic-tertiary);
16
16
  stroke-width: 2px;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Typography } from '@alfalab/core-components-typography/modern';
4
4
 
5
- var styles = {"header":"confirmation__header_1jbf4","typography":"confirmation__typography_1jbf4","typographyMobile":"confirmation__typographyMobile_1jbf4"};
5
+ var styles = {"header":"confirmation__header_oznd3","typography":"confirmation__typography_oznd3","typographyMobile":"confirmation__typographyMobile_oznd3"};
6
6
  require('./index.css')
7
7
 
8
8
  const Header = ({ mobile, children }) => (React.createElement(Typography.Title, { className: cn(styles.header, styles.typography, { [styles.typographyMobile]: mobile }), tag: 'h3', color: 'primary' }, children));
@@ -1,4 +1,4 @@
1
- /* hash: 1nu3e */
1
+ /* hash: 1qs6c */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -32,17 +32,17 @@
32
32
  /* header */
33
33
  --confirmation-header-font-feature-settings: normal
34
34
  }
35
- .confirmation__header_1jbf4 {
35
+ .confirmation__header_oznd3.confirmation__header_oznd3 {
36
36
  margin-bottom: var(--gap-xl);
37
37
  }
38
- .confirmation__typography_1jbf4 {
38
+ .confirmation__typography_oznd3.confirmation__typography_oznd3 {
39
39
  font-feature-settings: var(--confirmation-header-font-feature-settings);
40
40
  font-size: var(--confirmation-header-desktop-font-size);
41
41
  line-height: var(--confirmation-header-desktop-line-height);
42
42
  font-weight: var(--confirmation-header-desktop-font-weight);
43
43
  font-family: var(--confirmation-header-desktop-font-family);
44
44
  }
45
- .confirmation__typographyMobile_1jbf4 {
45
+ .confirmation__typographyMobile_oznd3.confirmation__typographyMobile_oznd3 {
46
46
  font-feature-settings: var(--confirmation-header-font-feature-settings);
47
47
  font-size: var(--confirmation-header-mobile-font-size);
48
48
  line-height: var(--confirmation-header-mobile-line-height);
@@ -9,7 +9,7 @@ import '@alfalab/core-components-link/modern';
9
9
  import '@alfalab/core-components-typography/modern';
10
10
  import './header/component.js';
11
11
  import '@alfalab/core-components-loader/modern';
12
- import '../countdown-section-5519e1b6.js';
12
+ import '../countdown-section-cb87c8ea.js';
13
13
  export { Initial } from './screens/initial/component.js';
14
14
  export { Hint } from './screens/hint/component.js';
15
15
  export { FatalError } from './screens/fatal-error/component.js';
@@ -6,7 +6,7 @@ import { Button } from '@alfalab/core-components-button/modern';
6
6
  import { Typography } from '@alfalab/core-components-typography/modern';
7
7
  import { Header } from '../../header/component.js';
8
8
 
9
- var styles = {"typographyTheme":"confirmation__typographyTheme_13ckc","left":"confirmation__left_13ckc","center":"confirmation__center_13ckc","button":"confirmation__button_13ckc"};
9
+ var styles = {"component":"confirmation__component_90sl5","typographyTheme":"confirmation__typographyTheme_90sl5","left":"confirmation__left_90sl5","center":"confirmation__center_90sl5","button":"confirmation__button_90sl5"};
10
10
  require('./index.css')
11
11
 
12
12
  const FatalError = ({ mobile }) => {
@@ -1,4 +1,4 @@
1
- /* hash: vdzh3 */
1
+ /* hash: yc2fe */
2
2
  :root {
3
3
  --color-light-text-primary: #0b1f35;
4
4
  }
@@ -31,19 +31,24 @@
31
31
 
32
32
  /* header */
33
33
  }
34
- .confirmation__typographyTheme_13ckc {
34
+ .confirmation__component_90sl5 {
35
+ display: flex;
36
+ flex-direction: column;
37
+ }
38
+ .confirmation__typographyTheme_90sl5.confirmation__typographyTheme_90sl5 {
35
39
  font-size: var(--confirmation-text-font-size);
36
40
  line-height: var(--confirmation-text-line-height);
37
41
  font-weight: var(--confirmation-text-font-weight);
38
42
  font-family: var(--confirmation-text-font-family);
39
43
  color: var(--confirmation-text-color);
40
44
  }
41
- .confirmation__left_13ckc {
45
+ .confirmation__left_90sl5 {
42
46
  align-items: flex-start;
43
47
  }
44
- .confirmation__center_13ckc {
48
+ .confirmation__center_90sl5 {
45
49
  align-items: center;
50
+ text-align: center;
46
51
  }
47
- .confirmation__button_13ckc {
52
+ .confirmation__button_90sl5 {
48
53
  margin-top: var(--gap-2xl);
49
54
  }
@@ -7,7 +7,7 @@ import { Link } from '@alfalab/core-components-link/modern';
7
7
  import { Typography } from '@alfalab/core-components-typography/modern';
8
8
  import { Header } from '../../header/component.js';
9
9
 
10
- var styles = {"center":"confirmation__center_1jbwm","hintWrap":"confirmation__hintWrap_1jbwm","text":"confirmation__text_1jbwm","typographyTheme":"confirmation__typographyTheme_1jbwm","phonesWrap":"confirmation__phonesWrap_1jbwm","phoneWrap":"confirmation__phoneWrap_1jbwm","phoneLink":"confirmation__phoneLink_1jbwm","hintButton":"confirmation__hintButton_1jbwm","phoneContentMobile":"confirmation__phoneContentMobile_1jbwm"};
10
+ var styles = {"component":"confirmation__component_8p0cq","center":"confirmation__center_8p0cq","text":"confirmation__text_8p0cq","typographyTheme":"confirmation__typographyTheme_8p0cq","phonesWrap":"confirmation__phonesWrap_8p0cq","phoneWrap":"confirmation__phoneWrap_8p0cq","phoneLink":"confirmation__phoneLink_8p0cq","hintButton":"confirmation__hintButton_8p0cq","phoneContentMobile":"confirmation__phoneContentMobile_8p0cq"};
11
11
  require('./index.css')
12
12
 
13
13
  const Hint = ({ mobile }) => {
@@ -17,22 +17,21 @@ const Hint = ({ mobile }) => {
17
17
  onChangeState('INITIAL');
18
18
  };
19
19
  return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
20
- React.createElement("div", { className: styles.hintWrap },
21
- 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?"),
22
- React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, "\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."),
23
- React.createElement("div", { className: styles.phonesWrap },
24
- React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
25
- React.createElement(Link, { href: 'tel:+78002000000', underline: false, className: styles.phoneLink }, "8 800 200-00-00"),
26
- React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, mobile
27
- ? 'Для\u00A0 звонков по\u00A0России'
28
- : ' \u2014\u00A0для звонков по\u00A0России')),
29
- React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
30
- React.createElement(Link, { href: 'tel:+74957888878', underline: false, className: styles.phoneLink }, "+7 495 78-888-78"),
31
- React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, mobile
32
- ? 'В\u00A0Москве и\u00A0за\u00A0границей'
33
- : ' \u2014\u00A0в\u00A0Москве и\u00A0за\u00A0границей'))),
34
- React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, "\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."),
35
- React.createElement(Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton }, texts.hintButton))));
20
+ 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?"),
21
+ React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, "\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."),
22
+ React.createElement("div", { className: styles.phonesWrap },
23
+ React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
24
+ React.createElement(Link, { href: 'tel:+78002000000', underline: false, className: styles.phoneLink }, "8 800 200-00-00"),
25
+ React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, mobile
26
+ ? 'Для\u00A0 звонков по\u00A0России'
27
+ : ' \u2014\u00A0для звонков по\u00A0России')),
28
+ React.createElement("div", { className: cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile }) },
29
+ React.createElement(Link, { href: 'tel:+74957888878', underline: false, className: styles.phoneLink }, "+7 495 78-888-78"),
30
+ React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, mobile
31
+ ? 'В\u00A0Москве и\u00A0за\u00A0границей'
32
+ : ' \u2014\u00A0в\u00A0Москве и\u00A0за\u00A0границей'))),
33
+ React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.text, { [styles.typographyTheme]: !mobile }) }, "\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."),
34
+ React.createElement(Button, { size: mobile ? 'xs' : 's', view: 'secondary', onClick: handleReturnButtonClick, className: styles.hintButton }, texts.hintButton)));
36
35
  };
37
36
 
38
37
  export { Hint };
@@ -1,4 +1,4 @@
1
- /* hash: mkucv */
1
+ /* hash: 1hget */
2
2
  :root {
3
3
  --color-light-text-primary: #0b1f35;
4
4
  }
@@ -33,47 +33,48 @@
33
33
 
34
34
  /* header */
35
35
  }
36
- .confirmation__center_1jbwm .confirmation__hintWrap_1jbwm {
37
- align-items: center;
38
- }
39
- .confirmation__hintWrap_1jbwm {
36
+ .confirmation__component_8p0cq {
40
37
  display: flex;
41
38
  flex-direction: column;
42
39
  align-items: flex-start
43
40
  }
44
- .confirmation__hintWrap_1jbwm span:last-of-type {
41
+ .confirmation__component_8p0cq span:last-of-type {
45
42
  margin-bottom: 0;
46
43
  }
47
- .confirmation__text_1jbwm {
44
+ .confirmation__center_8p0cq {
45
+ align-items: center;
46
+ text-align: center;
47
+ }
48
+ .confirmation__text_8p0cq.confirmation__text_8p0cq {
48
49
  margin-bottom: var(--gap-xl);
49
50
  }
50
- .confirmation__typographyTheme_1jbwm {
51
+ .confirmation__typographyTheme_8p0cq.confirmation__typographyTheme_8p0cq {
51
52
  font-size: var(--confirmation-text-font-size);
52
53
  line-height: var(--confirmation-text-line-height);
53
54
  font-weight: var(--confirmation-text-font-weight);
54
55
  font-family: var(--confirmation-text-font-family);
55
56
  color: var(--confirmation-text-color);
56
57
  }
57
- .confirmation__phonesWrap_1jbwm {
58
+ .confirmation__phonesWrap_8p0cq {
58
59
  display: flex;
59
60
  flex-direction: column;
60
61
  margin-bottom: var(--gap-xl);
61
62
  }
62
- .confirmation__phoneWrap_1jbwm {
63
+ .confirmation__phoneWrap_8p0cq {
63
64
  margin-bottom: var(--gap-xs)
64
65
  }
65
- .confirmation__phoneWrap_1jbwm:last-child {
66
+ .confirmation__phoneWrap_8p0cq:last-child {
66
67
  margin-bottom: 0;
67
68
  }
68
- .confirmation__phoneLink_1jbwm {
69
+ .confirmation__phoneLink_8p0cq.confirmation__phoneLink_8p0cq {
69
70
  font-size: 16px;
70
71
  line-height: 24px;
71
72
  font-weight: 500;
72
73
  }
73
- .confirmation__hintButton_1jbwm {
74
+ .confirmation__hintButton_8p0cq {
74
75
  margin-top: var(--gap-2xl);
75
76
  }
76
- .confirmation__phoneContentMobile_1jbwm {
77
+ .confirmation__phoneContentMobile_8p0cq {
77
78
  display: flex;
78
79
  flex-direction: column;
79
80
  align-items: center;
@@ -9,7 +9,7 @@ import '@alfalab/core-components-link/modern';
9
9
  import '@alfalab/core-components-typography/modern';
10
10
  import '../header/component.js';
11
11
  import '@alfalab/core-components-loader/modern';
12
- import '../../countdown-section-5519e1b6.js';
12
+ import '../../countdown-section-cb87c8ea.js';
13
13
  export { Initial } from './initial/component.js';
14
14
  export { Hint } from './hint/component.js';
15
15
  export { FatalError } from './fatal-error/component.js';
@@ -9,7 +9,7 @@ import { Link } from '@alfalab/core-components-link/modern';
9
9
  import { Typography } from '@alfalab/core-components-typography/modern';
10
10
  import { Header } from '../../header/component.js';
11
11
  import '@alfalab/core-components-loader/modern';
12
- import { s as styles, C as CountdownSection } from '../../../countdown-section-5519e1b6.js';
12
+ import { s as styles, C as CountdownSection } from '../../../countdown-section-cb87c8ea.js';
13
13
 
14
14
  const CODE_SEND_HINT_VISIBLE_DURATION = 2000;
15
15
  const Initial = ({ mobile }) => {
@@ -5,4 +5,4 @@ import '../../../context.js';
5
5
  import '@alfalab/core-components-button/modern';
6
6
  import '@alfalab/core-components-typography/modern';
7
7
  import '@alfalab/core-components-loader/modern';
8
- export { C as CountdownSection } from '../../../countdown-section-5519e1b6.js';
8
+ export { C as CountdownSection } from '../../../countdown-section-cb87c8ea.js';
@@ -1,4 +1,4 @@
1
- /* hash: 1xlg8 */
1
+ /* hash: yft4p */
2
2
  :root {
3
3
  --color-light-text-primary: #0b1f35;
4
4
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
@@ -38,67 +38,67 @@
38
38
 
39
39
  /* header */
40
40
  }
41
- .confirmation__component_19pqy {
41
+ .confirmation__component_17tyk {
42
42
  display: flex;
43
43
  flex-direction: column;
44
44
  }
45
- .confirmation__typographyTheme_19pqy {
45
+ .confirmation__typographyTheme_17tyk.confirmation__typographyTheme_17tyk {
46
46
  font-size: var(--confirmation-text-font-size);
47
47
  line-height: var(--confirmation-text-line-height);
48
48
  font-weight: var(--confirmation-text-font-weight);
49
49
  font-family: var(--confirmation-text-font-family);
50
50
  color: var(--confirmation-text-color);
51
51
  }
52
- .confirmation__phone_19pqy {
52
+ .confirmation__phone_17tyk.confirmation__phone_17tyk {
53
53
  color: var(--color-light-text-primary);
54
54
  margin-bottom: var(--gap-2xl);
55
55
  }
56
- .confirmation__compact_19pqy {
56
+ .confirmation__compact_17tyk {
57
57
  margin-bottom: var(--gap-xl);
58
58
  }
59
- .confirmation__loaderWrap_19pqy {
59
+ .confirmation__loaderWrap_17tyk {
60
60
  display: flex;
61
61
  align-items: center;
62
62
  }
63
- .confirmation__left_19pqy {
63
+ .confirmation__left_17tyk {
64
64
  align-items: flex-start;
65
65
  }
66
- .confirmation__center_19pqy {
66
+ .confirmation__center_17tyk {
67
67
  align-items: center;
68
68
  text-align: center
69
69
  }
70
- .confirmation__center_19pqy .confirmation__loaderWrap_19pqy {
70
+ .confirmation__center_17tyk .confirmation__loaderWrap_17tyk {
71
71
  justify-content: center;
72
72
  }
73
- .confirmation__center_19pqy input {
73
+ .confirmation__center_17tyk input {
74
74
  margin: 0 var(--gap-2xs);
75
75
  }
76
- .confirmation__codeInput_19pqy {
76
+ .confirmation__codeInput_17tyk {
77
77
  margin-bottom: var(--gap-s);
78
78
  }
79
- .confirmation__smsComeLink_19pqy {
79
+ .confirmation__smsComeLink_17tyk.confirmation__smsComeLink_17tyk {
80
80
  font-size: 14px;
81
81
  line-height: 20px;
82
82
  font-weight: 500;
83
83
  }
84
- .confirmation__countdownContainer_19pqy {
84
+ .confirmation__countdownContainer_17tyk.confirmation__countdownContainer_17tyk {
85
85
  color: var(--color-light-text-secondary);
86
86
  margin-bottom: var(--gap-xl);
87
87
  }
88
- .confirmation__countdownMobile_19pqy {
88
+ .confirmation__countdownMobile_17tyk.confirmation__countdownMobile_17tyk {
89
89
  margin-bottom: var(--gap-l);
90
90
  }
91
- .confirmation__countdownLoaderMobile_19pqy {
91
+ .confirmation__countdownLoaderMobile_17tyk {
92
92
  margin-bottom: var(--gap-m);
93
93
  }
94
- .confirmation__getCodeButton_19pqy {
94
+ .confirmation__getCodeButton_17tyk {
95
95
  position: relative;
96
96
  top: var(--gap-2xs-neg);
97
97
  margin-bottom: var(--gap-m);
98
98
  }
99
- .confirmation__getCodeButtonMobile_19pqy {
99
+ .confirmation__getCodeButtonMobile_17tyk {
100
100
  margin-bottom: 0;
101
101
  }
102
- .confirmation__containerInput_19pqy {
102
+ .confirmation__containerInput_17tyk {
103
103
  min-height: 80px;
104
104
  }
@@ -9,5 +9,5 @@ import '@alfalab/core-components-link/modern';
9
9
  import '@alfalab/core-components-typography/modern';
10
10
  import '../../header/component.js';
11
11
  import '@alfalab/core-components-loader/modern';
12
- import '../../../countdown-section-5519e1b6.js';
12
+ import '../../../countdown-section-cb87c8ea.js';
13
13
  export { Initial } from './component.js';
@@ -1,4 +1,4 @@
1
- import React, { useContext, useEffect, Fragment } from 'react';
1
+ import React, { useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { useCountdown, formatMsAsMinutes } from '../../../utils.js';
4
4
  import { ConfirmationContext } from '../../../context.js';
@@ -6,11 +6,11 @@ import { Typography } from '@alfalab/core-components-typography/modern';
6
6
  import { Header } from '../../header/component.js';
7
7
  import { CountdownLoader } from '../../countdown-loader/component.js';
8
8
 
9
- var styles = {"typographyTheme":"confirmation__typographyTheme_j8zh5","description":"confirmation__description_j8zh5","countdownWrap":"confirmation__countdownWrap_j8zh5","loader":"confirmation__loader_j8zh5"};
9
+ var styles = {"component":"confirmation__component_hd738","center":"confirmation__center_hd738","typographyTheme":"confirmation__typographyTheme_hd738","description":"confirmation__description_hd738","countdownWrap":"confirmation__countdownWrap_hd738","loader":"confirmation__loader_hd738"};
10
10
  require('./index.css')
11
11
 
12
12
  const TempBlock = ({ mobile }) => {
13
- const { texts, tempBlockDuration, onChangeScreen, onTempBlockFinished } = useContext(ConfirmationContext);
13
+ const { alignContent, texts, tempBlockDuration, onChangeScreen, onTempBlockFinished } = useContext(ConfirmationContext);
14
14
  const [timeLeft, startTimer] = useCountdown(tempBlockDuration);
15
15
  useEffect(() => {
16
16
  startTimer();
@@ -20,7 +20,7 @@ const TempBlock = ({ mobile }) => {
20
20
  onTempBlockFinished();
21
21
  }
22
22
  }, [timeLeft, onChangeScreen, onTempBlockFinished]);
23
- return (React.createElement(Fragment, null,
23
+ return (React.createElement("div", { className: cn(styles.component, styles[alignContent]) },
24
24
  React.createElement(Header, { mobile: mobile }, texts.tempBlockTitle),
25
25
  React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.description, { [styles.typographyTheme]: !mobile }) }, texts.tempBlockDescription),
26
26
  React.createElement("div", { className: cn(styles.countdownWrap, { [styles.typographyTheme]: !mobile }) },
@@ -1,4 +1,4 @@
1
- /* hash: v338i */
1
+ /* hash: 1uyk7 */
2
2
  :root {
3
3
  --color-light-text-primary: #0b1f35;
4
4
  }
@@ -31,20 +31,28 @@
31
31
 
32
32
  /* header */
33
33
  }
34
- .confirmation__typographyTheme_j8zh5 {
34
+ .confirmation__component_hd738 {
35
+ display: flex;
36
+ flex-direction: column;
37
+ }
38
+ .confirmation__center_hd738 {
39
+ align-items: center;
40
+ text-align: center;
41
+ }
42
+ .confirmation__typographyTheme_hd738.confirmation__typographyTheme_hd738 {
35
43
  font-size: var(--confirmation-text-font-size);
36
44
  line-height: var(--confirmation-text-line-height);
37
45
  font-weight: var(--confirmation-text-font-weight);
38
46
  font-family: var(--confirmation-text-font-family);
39
47
  color: var(--confirmation-text-color);
40
48
  }
41
- .confirmation__description_j8zh5 {
49
+ .confirmation__description_hd738.confirmation__description_hd738 {
42
50
  margin-bottom: var(--gap-xs);
43
51
  }
44
- .confirmation__countdownWrap_j8zh5 {
52
+ .confirmation__countdownWrap_hd738 {
45
53
  display: flex;
46
54
  align-items: center;
47
55
  }
48
- .confirmation__loader_j8zh5 {
56
+ .confirmation__loader_hd738 {
49
57
  margin-right: var(--gap-xs);
50
58
  }
@@ -0,0 +1,36 @@
1
+ import React, { useContext } from 'react';
2
+ import cn from 'classnames';
3
+ import { formatMsAsMinutes } from './utils.js';
4
+ import { ConfirmationContext } from './context.js';
5
+ import { Button } from '@alfalab/core-components-button/modern';
6
+ import { Typography } from '@alfalab/core-components-typography/modern';
7
+ import { Loader } from '@alfalab/core-components-loader/modern';
8
+
9
+ var styles = {"component":"confirmation__component_17tyk","typographyTheme":"confirmation__typographyTheme_17tyk","phone":"confirmation__phone_17tyk","compact":"confirmation__compact_17tyk","loaderWrap":"confirmation__loaderWrap_17tyk","left":"confirmation__left_17tyk","center":"confirmation__center_17tyk","codeInput":"confirmation__codeInput_17tyk","smsComeLink":"confirmation__smsComeLink_17tyk","countdownContainer":"confirmation__countdownContainer_17tyk","countdownMobile":"confirmation__countdownMobile_17tyk","countdownLoaderMobile":"confirmation__countdownLoaderMobile_17tyk","getCodeButton":"confirmation__getCodeButton_17tyk","getCodeButtonMobile":"confirmation__getCodeButtonMobile_17tyk","containerInput":"confirmation__containerInput_17tyk"};
10
+ require('./components/screens/initial/index.css')
11
+
12
+ const CountdownSection = ({ codeSendHintVisible, timePassed, processing, mobile, handleSmsRetryClick, }) => {
13
+ const { state, texts, timeLeft, blockSmsRetry } = useContext(ConfirmationContext);
14
+ const renderText = (text) => (React.createElement(Typography.Text, { className: cn(styles.countdownContainer, {
15
+ [styles.countdownMobile]: mobile,
16
+ [styles.typographyTheme]: !mobile,
17
+ }), view: mobile ? 'primary-small' : 'primary-medium', tag: 'div' }, text));
18
+ if (codeSendHintVisible)
19
+ return renderText(texts.codeSended);
20
+ if (processing) {
21
+ return (React.createElement("div", { className: cn(styles.loaderWrap, styles.countdownContainer, {
22
+ [styles.countdownLoaderMobile]: mobile,
23
+ [styles.typographyTheme]: !mobile,
24
+ }) },
25
+ React.createElement(Loader, null),
26
+ React.createElement("span", { className: styles.loaderText }, state === 'CODE_CHECKING' ? texts.codeChecking : texts.codeSending)));
27
+ }
28
+ if (blockSmsRetry)
29
+ renderText(texts.noAttemptsLeft);
30
+ if (timePassed) {
31
+ return (React.createElement(Button, { size: mobile ? 'xs' : 'xxs', view: 'secondary', onClick: handleSmsRetryClick, className: cn(styles.getCodeButton, { [styles.getCodeButtonMobile]: mobile }) }, texts.buttonRetry));
32
+ }
33
+ return renderText(`${texts.countdown} ${formatMsAsMinutes(timeLeft)}`);
34
+ };
35
+
36
+ export { CountdownSection as C, styles as s };
package/modern/desktop.js CHANGED
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-5519e1b6.js';
13
+ import './countdown-section-cb87c8ea.js';
14
14
  import './components/screens/initial/component.js';
15
15
  import './components/screens/hint/component.js';
16
16
  import './components/screens/fatal-error/component.js';
package/modern/index.js CHANGED
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-5519e1b6.js';
13
+ import './countdown-section-cb87c8ea.js';
14
14
  export { Initial } from './components/screens/initial/component.js';
15
15
  export { Hint } from './components/screens/hint/component.js';
16
16
  export { FatalError } from './components/screens/fatal-error/component.js';
package/modern/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1ijak */
2
- .confirmation__container_174uf {
1
+ /* hash: jdngr */
2
+ .confirmation__container_15921 {
3
3
  max-width: 288px;
4
4
  }
package/modern/mobile.js CHANGED
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-5519e1b6.js';
13
+ import './countdown-section-cb87c8ea.js';
14
14
  import './components/screens/initial/component.js';
15
15
  import './components/screens/hint/component.js';
16
16
  import './components/screens/fatal-error/component.js';
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-5519e1b6.js';
13
+ import './countdown-section-cb87c8ea.js';
14
14
  import './components/screens/initial/component.js';
15
15
  import './components/screens/hint/component.js';
16
16
  import './components/screens/fatal-error/component.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-confirmation",
3
- "version": "12.3.3",
3
+ "version": "12.3.4",
4
4
  "description": "Sms confirmation component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
package/responsive.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./component-c18159ad.js');
5
+ require('./component-ad8387ce.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/hooks');
@@ -15,7 +15,7 @@ require('@alfalab/core-components-link');
15
15
  require('@alfalab/core-components-typography');
16
16
  require('./components/header/component.js');
17
17
  require('@alfalab/core-components-loader');
18
- require('./countdown-section-fa5d99c6.js');
18
+ require('./countdown-section-f4894842.js');
19
19
  require('./components/screens/initial/component.js');
20
20
  require('./components/screens/hint/component.js');
21
21
  require('./components/screens/fatal-error/component.js');