@alfalab/core-components-confirmation 15.1.1 → 15.2.0-alfasans

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 (163) hide show
  1. package/components/base-confirmation/index.css +2 -2
  2. package/components/base-confirmation/index.module.css.js +1 -1
  3. package/components/countdown-loader/index.css +1 -1
  4. package/components/countdown-loader/index.module.css.js +1 -1
  5. package/components/header/component.js +3 -1
  6. package/components/header/component.js.map +1 -1
  7. package/components/header/index.css +41 -2
  8. package/components/header/index.module.css.js +1 -1
  9. package/components/header/index.module.css.js.map +1 -1
  10. package/components/screens/fatal-error/component.js +3 -3
  11. package/components/screens/fatal-error/component.js.map +1 -1
  12. package/components/screens/fatal-error/index.css +36 -16
  13. package/components/screens/fatal-error/index.module.css.js +1 -1
  14. package/components/screens/fatal-error/index.module.css.js.map +1 -1
  15. package/components/screens/hint/component.js +28 -10
  16. package/components/screens/hint/component.js.map +1 -1
  17. package/components/screens/hint/index.css +77 -25
  18. package/components/screens/hint/index.module.css.js +1 -1
  19. package/components/screens/hint/index.module.css.js.map +1 -1
  20. package/components/screens/initial/component.js +15 -6
  21. package/components/screens/initial/component.js.map +1 -1
  22. package/components/screens/initial/countdown-section.js +3 -3
  23. package/components/screens/initial/countdown-section.js.map +1 -1
  24. package/components/screens/initial/index.css +111 -37
  25. package/components/screens/initial/index.module.css.js +1 -1
  26. package/components/screens/initial/index.module.css.js.map +1 -1
  27. package/components/screens/temp-block/component.js +5 -1
  28. package/components/screens/temp-block/component.js.map +1 -1
  29. package/components/screens/temp-block/index.css +42 -17
  30. package/components/screens/temp-block/index.module.css.js +1 -1
  31. package/components/screens/temp-block/index.module.css.js.map +1 -1
  32. package/components/screens/temp-block-over/component.js +3 -3
  33. package/components/screens/temp-block-over/component.js.map +1 -1
  34. package/components/screens/temp-block-over/index.css +31 -14
  35. package/components/screens/temp-block-over/index.module.css.js +1 -1
  36. package/components/screens/temp-block-over/index.module.css.js.map +1 -1
  37. package/cssm/components/header/component.js +3 -1
  38. package/cssm/components/header/component.js.map +1 -1
  39. package/cssm/components/header/index.module.css +41 -2
  40. package/cssm/components/screens/fatal-error/component.js +3 -3
  41. package/cssm/components/screens/fatal-error/component.js.map +1 -1
  42. package/cssm/components/screens/fatal-error/index.module.css +29 -9
  43. package/cssm/components/screens/hint/component.js +28 -10
  44. package/cssm/components/screens/hint/component.js.map +1 -1
  45. package/cssm/components/screens/hint/index.module.css +65 -13
  46. package/cssm/components/screens/initial/component.js +15 -6
  47. package/cssm/components/screens/initial/component.js.map +1 -1
  48. package/cssm/components/screens/initial/countdown-section.js +3 -3
  49. package/cssm/components/screens/initial/countdown-section.js.map +1 -1
  50. package/cssm/components/screens/initial/index.module.css +91 -17
  51. package/cssm/components/screens/temp-block/component.js +5 -1
  52. package/cssm/components/screens/temp-block/component.js.map +1 -1
  53. package/cssm/components/screens/temp-block/index.module.css +34 -9
  54. package/cssm/components/screens/temp-block-over/component.js +3 -3
  55. package/cssm/components/screens/temp-block-over/component.js.map +1 -1
  56. package/cssm/components/screens/temp-block-over/index.module.css +25 -8
  57. package/esm/components/base-confirmation/index.css +2 -2
  58. package/esm/components/base-confirmation/index.module.css.js +1 -1
  59. package/esm/components/countdown-loader/index.css +1 -1
  60. package/esm/components/countdown-loader/index.module.css.js +1 -1
  61. package/esm/components/header/component.js +2 -1
  62. package/esm/components/header/component.js.map +1 -1
  63. package/esm/components/header/index.css +41 -2
  64. package/esm/components/header/index.module.css.js +1 -1
  65. package/esm/components/header/index.module.css.js.map +1 -1
  66. package/esm/components/screens/fatal-error/component.js +3 -3
  67. package/esm/components/screens/fatal-error/component.js.map +1 -1
  68. package/esm/components/screens/fatal-error/index.css +36 -16
  69. package/esm/components/screens/fatal-error/index.module.css.js +1 -1
  70. package/esm/components/screens/fatal-error/index.module.css.js.map +1 -1
  71. package/esm/components/screens/hint/component.js +28 -10
  72. package/esm/components/screens/hint/component.js.map +1 -1
  73. package/esm/components/screens/hint/index.css +77 -25
  74. package/esm/components/screens/hint/index.module.css.js +1 -1
  75. package/esm/components/screens/hint/index.module.css.js.map +1 -1
  76. package/esm/components/screens/initial/component.js +15 -6
  77. package/esm/components/screens/initial/component.js.map +1 -1
  78. package/esm/components/screens/initial/countdown-section.js +3 -3
  79. package/esm/components/screens/initial/countdown-section.js.map +1 -1
  80. package/esm/components/screens/initial/index.css +111 -37
  81. package/esm/components/screens/initial/index.module.css.js +1 -1
  82. package/esm/components/screens/initial/index.module.css.js.map +1 -1
  83. package/esm/components/screens/temp-block/component.js +5 -1
  84. package/esm/components/screens/temp-block/component.js.map +1 -1
  85. package/esm/components/screens/temp-block/index.css +42 -17
  86. package/esm/components/screens/temp-block/index.module.css.js +1 -1
  87. package/esm/components/screens/temp-block/index.module.css.js.map +1 -1
  88. package/esm/components/screens/temp-block-over/component.js +3 -3
  89. package/esm/components/screens/temp-block-over/component.js.map +1 -1
  90. package/esm/components/screens/temp-block-over/index.css +31 -14
  91. package/esm/components/screens/temp-block-over/index.module.css.js +1 -1
  92. package/esm/components/screens/temp-block-over/index.module.css.js.map +1 -1
  93. package/modern/components/base-confirmation/index.css +2 -2
  94. package/modern/components/base-confirmation/index.module.css.js +1 -1
  95. package/modern/components/countdown-loader/index.css +1 -1
  96. package/modern/components/countdown-loader/index.module.css.js +1 -1
  97. package/modern/components/header/component.js +2 -1
  98. package/modern/components/header/component.js.map +1 -1
  99. package/modern/components/header/index.css +41 -2
  100. package/modern/components/header/index.module.css.js +1 -1
  101. package/modern/components/header/index.module.css.js.map +1 -1
  102. package/modern/components/screens/fatal-error/component.js +1 -1
  103. package/modern/components/screens/fatal-error/component.js.map +1 -1
  104. package/modern/components/screens/fatal-error/index.css +36 -16
  105. package/modern/components/screens/fatal-error/index.module.css.js +1 -1
  106. package/modern/components/screens/fatal-error/index.module.css.js.map +1 -1
  107. package/modern/components/screens/hint/component.js +25 -7
  108. package/modern/components/screens/hint/component.js.map +1 -1
  109. package/modern/components/screens/hint/index.css +77 -25
  110. package/modern/components/screens/hint/index.module.css.js +1 -1
  111. package/modern/components/screens/hint/index.module.css.js.map +1 -1
  112. package/modern/components/screens/initial/component.js +12 -3
  113. package/modern/components/screens/initial/component.js.map +1 -1
  114. package/modern/components/screens/initial/countdown-section.js +1 -1
  115. package/modern/components/screens/initial/countdown-section.js.map +1 -1
  116. package/modern/components/screens/initial/index.css +111 -37
  117. package/modern/components/screens/initial/index.module.css.js +1 -1
  118. package/modern/components/screens/initial/index.module.css.js.map +1 -1
  119. package/modern/components/screens/temp-block/component.js +5 -1
  120. package/modern/components/screens/temp-block/component.js.map +1 -1
  121. package/modern/components/screens/temp-block/index.css +42 -17
  122. package/modern/components/screens/temp-block/index.module.css.js +1 -1
  123. package/modern/components/screens/temp-block/index.module.css.js.map +1 -1
  124. package/modern/components/screens/temp-block-over/component.js +1 -1
  125. package/modern/components/screens/temp-block-over/component.js.map +1 -1
  126. package/modern/components/screens/temp-block-over/index.css +31 -14
  127. package/modern/components/screens/temp-block-over/index.module.css.js +1 -1
  128. package/modern/components/screens/temp-block-over/index.module.css.js.map +1 -1
  129. package/moderncssm/components/header/component.js +2 -1
  130. package/moderncssm/components/header/component.js.map +1 -1
  131. package/moderncssm/components/header/index.module.css +35 -2
  132. package/moderncssm/components/screens/fatal-error/component.js +1 -1
  133. package/moderncssm/components/screens/fatal-error/component.js.map +1 -1
  134. package/moderncssm/components/screens/fatal-error/index.module.css +27 -7
  135. package/moderncssm/components/screens/hint/component.js +25 -7
  136. package/moderncssm/components/screens/hint/component.js.map +1 -1
  137. package/moderncssm/components/screens/hint/index.module.css +70 -11
  138. package/moderncssm/components/screens/initial/component.js +12 -3
  139. package/moderncssm/components/screens/initial/component.js.map +1 -1
  140. package/moderncssm/components/screens/initial/countdown-section.js +1 -1
  141. package/moderncssm/components/screens/initial/countdown-section.js.map +1 -1
  142. package/moderncssm/components/screens/initial/index.module.css +99 -15
  143. package/moderncssm/components/screens/temp-block/component.js +5 -1
  144. package/moderncssm/components/screens/temp-block/component.js.map +1 -1
  145. package/moderncssm/components/screens/temp-block/index.module.css +33 -7
  146. package/moderncssm/components/screens/temp-block-over/component.js +1 -1
  147. package/moderncssm/components/screens/temp-block-over/component.js.map +1 -1
  148. package/moderncssm/components/screens/temp-block-over/index.module.css +23 -6
  149. package/package.json +9 -9
  150. package/src/components/header/component.tsx +2 -1
  151. package/src/components/header/index.module.css +22 -2
  152. package/src/components/screens/fatal-error/component.tsx +1 -1
  153. package/src/components/screens/fatal-error/index.module.css +10 -2
  154. package/src/components/screens/hint/component.tsx +29 -7
  155. package/src/components/screens/hint/index.module.css +43 -5
  156. package/src/components/screens/initial/component.tsx +18 -2
  157. package/src/components/screens/initial/countdown-section.tsx +3 -1
  158. package/src/components/screens/initial/index.module.css +66 -9
  159. package/src/components/screens/temp-block/component.tsx +7 -1
  160. package/src/components/screens/temp-block/index.module.css +16 -2
  161. package/src/components/screens/temp-block-over/component.tsx +1 -1
  162. package/src/components/screens/temp-block-over/index.module.css +8 -1
  163. package/src/vars.css +95 -1
@@ -4,11 +4,11 @@
4
4
  :root {
5
5
  --gap-0: 0px;
6
6
  }
7
- .confirmation__component_1smkm {
7
+ .confirmation__component_qx2rg {
8
8
  width: 100%;
9
9
  max-width: 388px;
10
10
  color: var(--color-light-text-secondary);
11
11
  }
12
- .confirmation__component_1smkm.confirmation__center_1smkm {
12
+ .confirmation__component_qx2rg.confirmation__center_qx2rg {
13
13
  margin: var(--gap-0) auto;
14
14
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"component":"confirmation__component_1smkm","center":"confirmation__center_1smkm"};
5
+ var styles = {"component":"confirmation__component_qx2rg","center":"confirmation__center_qx2rg"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -1,7 +1,7 @@
1
1
  :root {
2
2
  --color-light-neutral-500: #babbc2;
3
3
  }
4
- .confirmation__circle_cq7rs {
4
+ .confirmation__circle_1946z {
5
5
  fill: transparent;
6
6
  stroke: var(--color-light-neutral-500);
7
7
  stroke-width: 2px;
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"circle":"confirmation__circle_cq7rs"};
5
+ var styles = {"circle":"confirmation__circle_1946z"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -3,17 +3,19 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
+ var cn = require('classnames');
6
7
  var coreComponentsTypography = require('@alfalab/core-components-typography');
7
8
  var index_module = require('./index.module.css.js');
8
9
 
9
10
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
10
11
 
11
12
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
+ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
12
14
 
13
15
  var Header = function (_a) {
14
16
  var mobile = _a.mobile, children = _a.children, _b = _a.titleTag, titleTag = _b === void 0 ? 'h3' : _b;
15
17
  var Tag = mobile ? coreComponentsTypography.TitleMobile : coreComponentsTypography.TitleDesktop;
16
- return (React__default.default.createElement(Tag, { font: 'system', view: 'small', className: index_module.header, tag: titleTag, color: 'primary', defaultMargins: false }, children));
18
+ return (React__default.default.createElement(Tag, { font: 'system', view: 'small', className: cn__default.default(mobile ? index_module.headerMobile : index_module.header), tag: titleTag, color: 'primary', defaultMargins: false }, children));
17
19
  };
18
20
 
19
21
  exports.Header = Header;
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../src/components/header/component.tsx"],"sourcesContent":["import React, { type FC, type ReactNode } from 'react';\n\nimport { TitleDesktop, TitleMobile } from '@alfalab/core-components-typography';\n\nimport styles from './index.module.css';\n\nexport type HeaderProps = {\n /**\n * Контент шапки\n */\n children?: ReactNode;\n\n /**\n * Отображать в мобильной версии экран компонента\n */\n mobile?: boolean;\n\n /**\n * HTML тег для заголовка\n * @default 'h3'\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n};\n\nexport const Header: FC<HeaderProps> = ({ mobile, children, titleTag = 'h3' }) => {\n const Tag = mobile ? TitleMobile : TitleDesktop;\n\n return (\n <Tag\n font='system'\n view='small'\n className={styles.header}\n tag={titleTag}\n color='primary'\n defaultMargins={false}\n >\n {children}\n </Tag>\n );\n};\n"],"names":["TitleMobile","TitleDesktop","React","styles"],"mappings":";;;;;;;;;;;;AAwBO,IAAM,MAAM,GAAoB,UAAC,EAAqC,EAAA;QAAnC,MAAM,GAAA,EAAA,CAAA,MAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,gBAAe,EAAf,QAAQ,GAAG,EAAA,KAAA,MAAA,GAAA,IAAI,GAAA,EAAA;IACvE,IAAM,GAAG,GAAG,MAAM,GAAGA,oCAAW,GAAGC,qCAAY;AAE/C,IAAA,QACIC,sBAAA,CAAA,aAAA,CAAC,GAAG,EAAA,EACA,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,OAAO,EACZ,SAAS,EAAEC,YAAM,CAAC,MAAM,EACxB,GAAG,EAAE,QAAQ,EACb,KAAK,EAAC,SAAS,EACf,cAAc,EAAE,KAAK,EAAA,EAEpB,QAAQ,CACP;AAEd;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../src/components/header/component.tsx"],"sourcesContent":["import React, { type FC, type ReactNode } from 'react';\nimport cn from 'classnames';\n\nimport { TitleDesktop, TitleMobile } from '@alfalab/core-components-typography';\n\nimport styles from './index.module.css';\n\nexport type HeaderProps = {\n /**\n * Контент шапки\n */\n children?: ReactNode;\n\n /**\n * Отображать в мобильной версии экран компонента\n */\n mobile?: boolean;\n\n /**\n * HTML тег для заголовка\n * @default 'h3'\n */\n titleTag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n};\n\nexport const Header: FC<HeaderProps> = ({ mobile, children, titleTag = 'h3' }) => {\n const Tag = mobile ? TitleMobile : TitleDesktop;\n\n return (\n <Tag\n font='system'\n view='small'\n className={cn(mobile ? styles.headerMobile : styles.header)}\n tag={titleTag}\n color='primary'\n defaultMargins={false}\n >\n {children}\n </Tag>\n );\n};\n"],"names":["TitleMobile","TitleDesktop","React","cn","styles"],"mappings":";;;;;;;;;;;;;;AAyBO,IAAM,MAAM,GAAoB,UAAC,EAAqC,EAAA;QAAnC,MAAM,GAAA,EAAA,CAAA,MAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,gBAAe,EAAf,QAAQ,GAAG,EAAA,KAAA,MAAA,GAAA,IAAI,GAAA,EAAA;IACvE,IAAM,GAAG,GAAG,MAAM,GAAGA,oCAAW,GAAGC,qCAAY;IAE/C,QACIC,qCAAC,GAAG,EAAA,EACA,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,OAAO,EACZ,SAAS,EAAEC,mBAAE,CAAC,MAAM,GAAGC,YAAM,CAAC,YAAY,GAAGA,YAAM,CAAC,MAAM,CAAC,EAC3D,GAAG,EAAE,QAAQ,EACb,KAAK,EAAC,SAAS,EACf,cAAc,EAAE,KAAK,EAEpB,EAAA,QAAQ,CACP;AAEd;;;;"}
@@ -1,6 +1,45 @@
1
+ :root {
2
+ --color-light-text-primary: rgba(3, 3, 6, 0.88);
3
+ }
1
4
  :root {
2
5
  --gap-24: 24px;
3
6
  }
4
- .confirmation__header_mycid.confirmation__header_mycid {
5
- margin-bottom: var(--gap-24);
7
+ :root {
8
+ --font-family-alfasans:
9
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
10
+ Helvetica, sans-serif;
11
+ }
12
+ :root {
13
+ --confirmation-header-font-family: var(--font-family-alfasans);
14
+ --confirmation-header-font-size: 22px;
15
+ --confirmation-header-font-weight: 700;
16
+ --confirmation-header-line-height: 26px;
17
+ --confirmation-header-letter-spacing: 0.2px;
18
+ --confirmation-header-color: var(--color-light-text-primary);
19
+ --confirmation-header-margin-bottom: var(--gap-24);
20
+ --confirmation-header-font-family-mobile: var(--font-family-alfasans);
21
+ --confirmation-header-font-size-mobile: 20px;
22
+ --confirmation-header-font-weight-mobile: 600;
23
+ --confirmation-header-line-height-mobile: 28px;
24
+ --confirmation-header-line-letter-spacing-mobile: -0.15px;
25
+ --confirmation-header-color-mobile: var(--color-light-text-primary);
26
+ --confirmation-header-margin-bottom-mobile: var(--gap-24);
6
27
  }
28
+ .confirmation__header_yqoq5.confirmation__header_yqoq5 {
29
+ margin-bottom: var(--confirmation-header-margin-bottom);
30
+ font-family: var(--confirmation-header-font-family);
31
+ font-size: var(--confirmation-header-font-size);
32
+ font-weight: var(--confirmation-header-font-weight);
33
+ line-height: var(--confirmation-header-line-height);
34
+ letter-spacing: var(--confirmation-header-letter-spacing);
35
+ color: var(--confirmation-header-color);
36
+ }
37
+ .confirmation__headerMobile_yqoq5.confirmation__headerMobile_yqoq5 {
38
+ margin-bottom: var(--confirmation-header-margin-bottom-mobile);
39
+ font-family: var(--confirmation-header-font-family-mobile);
40
+ font-size: var(--confirmation-header-font-size-mobile);
41
+ font-weight: var(--confirmation-header-font-weight-mobile);
42
+ line-height: var(--confirmation-header-line-height-mobile);
43
+ letter-spacing: var(--confirmation-header-line-letter-spacing-mobile);
44
+ color: var(--confirmation-header-color-mobile);
45
+ }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"header":"confirmation__header_mycid"};
5
+ var styles = {"header":"confirmation__header_yqoq5","headerMobile":"confirmation__headerMobile_yqoq5"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../src/components/header/index.module.css"],"sourcesContent":["@import '../../vars.css';\n\n.header.header {\n margin-bottom: var(--gap-24);\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,4BAA4B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/header/index.module.css"],"sourcesContent":["@import '../../vars.css';\n\n.header {\n && {\n margin-bottom: var(--confirmation-header-margin-bottom);\n font-family: var(--confirmation-header-font-family);\n font-size: var(--confirmation-header-font-size);\n font-weight: var(--confirmation-header-font-weight);\n line-height: var(--confirmation-header-line-height);\n letter-spacing: var(--confirmation-header-letter-spacing);\n color: var(--confirmation-header-color);\n }\n}\n\n.headerMobile {\n && {\n margin-bottom: var(--confirmation-header-margin-bottom-mobile);\n font-family: var(--confirmation-header-font-family-mobile);\n font-size: var(--confirmation-header-font-size-mobile);\n font-weight: var(--confirmation-header-font-weight-mobile);\n line-height: var(--confirmation-header-line-height-mobile);\n letter-spacing: var(--confirmation-header-line-letter-spacing-mobile);\n color: var(--confirmation-header-color-mobile);\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,4BAA4B,CAAC,cAAc,CAAC,kCAAkC,CAAC;;;;"}
@@ -16,16 +16,16 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
17
 
18
18
  var FatalError = function (_a) {
19
- var _b;
19
+ var _b, _c;
20
20
  var mobile = _a.mobile;
21
- var _c = React.useContext(context.ConfirmationContext), alignContent = _c.alignContent, titleTag = _c.titleTag, texts = _c.texts, onFatalErrorOkButtonClick = _c.onFatalErrorOkButtonClick, breakpoint = _c.breakpoint, client = _c.client;
21
+ var _d = React.useContext(context.ConfirmationContext), alignContent = _d.alignContent, titleTag = _d.titleTag, texts = _d.texts, onFatalErrorOkButtonClick = _d.onFatalErrorOkButtonClick, breakpoint = _d.breakpoint, client = _d.client;
22
22
  return (React__default.default.createElement("div", { className: cn__default.default(index_module.component, index_module[alignContent]) },
23
23
  React__default.default.createElement(component.Header, { mobile: mobile, titleTag: titleTag }, texts.fatalErrorTitle),
24
24
  React__default.default.createElement(coreComponentsTypography.TypographyText, { view: 'primary-medium', color: 'primary', className: cn__default.default((_b = {},
25
25
  _b[index_module.typographyTheme] = !mobile,
26
26
  _b[index_module.typographyThemeMobile] = mobile,
27
27
  _b)) }, texts.fatalErrorDescription),
28
- React__default.default.createElement(coreComponentsButton.Button, { size: mobile ? 40 : 48, view: 'secondary', onClick: onFatalErrorOkButtonClick, className: index_module.button, breakpoint: breakpoint, client: client }, texts.fatalErrorButton)));
28
+ React__default.default.createElement(coreComponentsButton.Button, { size: mobile ? 40 : 48, view: 'secondary', onClick: onFatalErrorOkButtonClick, className: cn__default.default(index_module.button, (_c = {}, _c[index_module.buttonMobile] = mobile, _c)), breakpoint: breakpoint, client: client }, texts.fatalErrorButton)));
29
29
  };
30
30
 
31
31
  exports.FatalError = FatalError;
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/screens/fatal-error/component.tsx"],"sourcesContent":["import React, { type FC, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { Button } from '@alfalab/core-components-button';\nimport { TypographyText } from '@alfalab/core-components-typography';\n\nimport { ConfirmationContext } from '../../../context';\nimport { Header } from '../../header';\n\nimport styles from './index.module.css';\n\nexport type FatalErrorProps = {\n /**\n * Отображать в мобильной версии экран компонента\n */\n mobile?: boolean;\n};\n\nexport const FatalError: FC<FatalErrorProps> = ({ mobile }) => {\n const { alignContent, titleTag, texts, onFatalErrorOkButtonClick, breakpoint, client } =\n useContext(ConfirmationContext);\n\n return (\n <div className={cn(styles.component, styles[alignContent])}>\n <Header mobile={mobile} titleTag={titleTag}>\n {texts.fatalErrorTitle}\n </Header>\n\n <TypographyText\n view='primary-medium'\n color='primary'\n className={cn({\n [styles.typographyTheme]: !mobile,\n [styles.typographyThemeMobile]: mobile,\n })}\n >\n {texts.fatalErrorDescription}\n </TypographyText>\n\n <Button\n size={mobile ? 40 : 48}\n view='secondary'\n onClick={onFatalErrorOkButtonClick}\n className={styles.button}\n breakpoint={breakpoint}\n client={client}\n >\n {texts.fatalErrorButton}\n </Button>\n </div>\n );\n};\n"],"names":["useContext","ConfirmationContext","React","cn","styles","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U,EACtB,MAAM,EAAE,MAAM,IAEb,KAAK,CAAC,gBAAgB,CAClB,CACP;AAEd;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/screens/fatal-error/component.tsx"],"sourcesContent":["import React, { type FC, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { Button } from '@alfalab/core-components-button';\nimport { TypographyText } from '@alfalab/core-components-typography';\n\nimport { ConfirmationContext } from '../../../context';\nimport { Header } from '../../header';\n\nimport styles from './index.module.css';\n\nexport type FatalErrorProps = {\n /**\n * Отображать в мобильной версии экран компонента\n */\n mobile?: boolean;\n};\n\nexport const FatalError: FC<FatalErrorProps> = ({ mobile }) => {\n const { alignContent, titleTag, texts, onFatalErrorOkButtonClick, breakpoint, client } =\n useContext(ConfirmationContext);\n\n return (\n <div className={cn(styles.component, styles[alignContent])}>\n <Header mobile={mobile} titleTag={titleTag}>\n {texts.fatalErrorTitle}\n </Header>\n\n <TypographyText\n view='primary-medium'\n color='primary'\n className={cn({\n [styles.typographyTheme]: !mobile,\n [styles.typographyThemeMobile]: mobile,\n })}\n >\n {texts.fatalErrorDescription}\n </TypographyText>\n\n <Button\n size={mobile ? 40 : 48}\n view='secondary'\n onClick={onFatalErrorOkButtonClick}\n className={cn(styles.button, { [styles.buttonMobile]: mobile })}\n breakpoint={breakpoint}\n client={client}\n >\n {texts.fatalErrorButton}\n </Button>\n </div>\n );\n};\n"],"names":["useContext","ConfirmationContext","React","cn","styles","Header","TypographyText","Button"],"mappings":";;;;;;;;;;;;;;;;;AAkBO,IAAM,UAAU,GAAwB,UAAC,EAAU,EAAA;;AAAR,IAAA,IAAA,MAAM,GAAA,EAAA,CAAA,MAAA;IAC9C,IAAA,EAAA,GACFA,gBAAU,CAACC,2BAAmB,CAAC,EAD3B,YAAY,GAAA,EAAA,CAAA,YAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,yBAAyB,GAAA,EAAA,CAAA,yBAAA,EAAE,UAAU,GAAA,EAAA,CAAA,UAAA,EAAE,MAAM,GAAA,EAAA,CAAA,MACjD;AAEnC,IAAA,QACIC,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,mBAAE,CAACC,YAAM,CAAC,SAAS,EAAEA,YAAM,CAAC,YAAY,CAAC,CAAC,EAAA;AACtD,QAAAF,sBAAA,CAAA,aAAA,CAACG,gBAAM,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAA,EACrC,KAAK,CAAC,eAAe,CACjB;AAET,QAAAH,sBAAA,CAAA,aAAA,CAACI,uCAAc,EAAA,EACX,IAAI,EAAC,gBAAgB,EACrB,KAAK,EAAC,SAAS,EACf,SAAS,EAAEH,mBAAE,EAAA,EAAA,GAAA,EAAA;AACT,gBAAA,EAAA,CAACC,YAAM,CAAC,eAAe,CAAA,GAAG,CAAC,MAAM;AACjC,gBAAA,EAAA,CAACA,YAAM,CAAC,qBAAqB,CAAA,GAAG,MAAM;oBACxC,EAED,EAAA,KAAK,CAAC,qBAAqB,CACf;QAEjBF,sBAAC,CAAA,aAAA,CAAAK,2BAAM,EACH,EAAA,IAAI,EAAE,MAAM,GAAG,EAAE,GAAG,EAAE,EACtB,IAAI,EAAC,WAAW,EAChB,OAAO,EAAE,yBAAyB,EAClC,SAAS,EAAEJ,mBAAE,CAACC,YAAM,CAAC,MAAM,GAAI,EAAA,GAAA,EAAA,EAAA,EAAA,CAACA,YAAM,CAAC,YAAY,CAAG,GAAA,MAAM,EAAG,EAAA,EAAA,EAC/D,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EAEb,EAAA,KAAK,CAAC,gBAAgB,CAClB,CACP;AAEd;;;;"}
@@ -6,33 +6,53 @@
6
6
  --gap-32: 32px;
7
7
  }
8
8
  :root {
9
- --font-family-system:
10
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
9
+ --font-family-alfasans:
10
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
11
+ Helvetica, sans-serif;
11
12
  }
12
13
  :root {
13
- --confirmation-text-color: var(--color-light-text-primary)
14
- }
15
- .confirmation__component_6zhqf {
14
+ --confirmation-text-color: var(--color-light-text-primary);
15
+ --confirmation-text-font-size: 16px;
16
+ --confirmation-text-font-weight: 400;
17
+ --confirmation-text-line-height: 24px;
18
+ --confirmation-text-letter-spacing: -0.24px;
19
+ --confirmation-text-font-size-mobile: 16px;
20
+ --confirmation-text-line-height-mobile: 24px;
21
+ --confirmation-text-letter-spacing-mobile: -0.24px;
22
+ --confirmation-fatal-error-description-color: var(--color-light-text-primary);
23
+ --confirmation-fatal-error-button-margin-top: var(--gap-32);
24
+ --confirmation-fatal-error-description-color-mobile: var(--color-light-text-secondary);
25
+ --confirmation-fatal-error-button-margin-top-mobile: var(--gap-32);
26
+ }
27
+ .confirmation__component_18fga {
16
28
  display: flex;
17
29
  flex-direction: column;
18
30
  }
19
- .confirmation__typographyTheme_6zhqf.confirmation__typographyTheme_6zhqf {
20
- font-size: 16px;
21
- line-height: 24px;
22
- font-weight: 400;
23
- font-family: var(--font-family-system);
31
+ .confirmation__typographyTheme_18fga.confirmation__typographyTheme_18fga {
32
+ font-size: var(--confirmation-text-font-size);
33
+ line-height: var(--confirmation-text-line-height);
34
+ letter-spacing: var(--confirmation-text-letter-spacing);
35
+ font-weight: var(--confirmation-text-font-weight);
36
+ font-family: var(--font-family-alfasans);
24
37
  color: var(--confirmation-text-color);
38
+ color: var(--confirmation-fatal-error-description-color);
25
39
  }
26
- .confirmation__typographyThemeMobile_6zhqf.confirmation__typographyThemeMobile_6zhqf {
27
- color: var(--color-light-text-secondary);
40
+ .confirmation__typographyThemeMobile_18fga.confirmation__typographyThemeMobile_18fga {
41
+ font-size: var(--confirmation-text-font-size-mobile);
42
+ line-height: var(--confirmation-text-line-height-mobile);
43
+ letter-spacing: var(--confirmation-text-letter-spacing-mobile);
44
+ color: var(--confirmation-fatal-error-description-color-mobile);
28
45
  }
29
- .confirmation__left_6zhqf {
46
+ .confirmation__left_18fga {
30
47
  align-items: flex-start;
31
48
  }
32
- .confirmation__center_6zhqf {
49
+ .confirmation__center_18fga {
33
50
  align-items: center;
34
51
  text-align: center;
35
52
  }
36
- .confirmation__button_6zhqf.confirmation__button_6zhqf {
37
- margin-top: var(--gap-32);
53
+ .confirmation__button_18fga.confirmation__button_18fga {
54
+ margin-top: var(--confirmation-fatal-error-button-margin-top);
55
+ }
56
+ .confirmation__button_18fga.confirmation__buttonMobile_18fga {
57
+ margin-top: var(--confirmation-fatal-error-button-margin-top-mobile);
38
58
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"component":"confirmation__component_6zhqf","typographyTheme":"confirmation__typographyTheme_6zhqf","typographyThemeMobile":"confirmation__typographyThemeMobile_6zhqf","left":"confirmation__left_6zhqf","center":"confirmation__center_6zhqf","button":"confirmation__button_6zhqf"};
5
+ var styles = {"component":"confirmation__component_18fga","typographyTheme":"confirmation__typographyTheme_18fga","typographyThemeMobile":"confirmation__typographyThemeMobile_18fga","left":"confirmation__left_18fga","center":"confirmation__center_18fga","button":"confirmation__button_18fga","buttonMobile":"confirmation__buttonMobile_18fga"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../../src/components/screens/fatal-error/index.module.css"],"sourcesContent":["@import '../../../vars.css';\n\n.component {\n display: flex;\n flex-direction: column;\n}\n\n.typographyTheme.typographyTheme {\n @mixin _confirmation-text;\n}\n\n.typographyThemeMobile.typographyThemeMobile {\n color: var(--color-light-text-secondary);\n}\n\n.left {\n align-items: flex-start;\n}\n\n.center {\n align-items: center;\n text-align: center;\n}\n\n.button.button {\n margin-top: var(--gap-32);\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,WAAW,CAAC,+BAA+B,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,uBAAuB,CAAC,2CAA2C,CAAC,MAAM,CAAC,0BAA0B,CAAC,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC,4BAA4B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../../src/components/screens/fatal-error/index.module.css"],"sourcesContent":["@import '../../../vars.css';\n\n.component {\n display: flex;\n flex-direction: column;\n}\n\n.typographyTheme.typographyTheme {\n @mixin _confirmation-text;\n color: var(--confirmation-fatal-error-description-color);\n}\n\n.typographyThemeMobile.typographyThemeMobile {\n font-size: var(--confirmation-text-font-size-mobile);\n line-height: var(--confirmation-text-line-height-mobile);\n letter-spacing: var(--confirmation-text-letter-spacing-mobile);\n color: var(--confirmation-fatal-error-description-color-mobile);\n}\n\n.left {\n align-items: flex-start;\n}\n\n.center {\n align-items: center;\n text-align: center;\n}\n\n.button.button {\n margin-top: var(--confirmation-fatal-error-button-margin-top);\n}\n\n.button.buttonMobile {\n margin-top: var(--confirmation-fatal-error-button-margin-top-mobile);\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,WAAW,CAAC,+BAA+B,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,uBAAuB,CAAC,2CAA2C,CAAC,MAAM,CAAC,0BAA0B,CAAC,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC,4BAA4B,CAAC,cAAc,CAAC,kCAAkC,CAAC;;;;"}
@@ -18,10 +18,10 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
19
 
20
20
  var Hint = function (_a) {
21
- var _b, _c, _d, _e, _f, _g, _h, _j, _k;
21
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
22
22
  var mobile = _a.mobile;
23
- var _l = React.useContext(context.ConfirmationContext), alignContent = _l.alignContent, titleTag = _l.titleTag, texts = _l.texts, onChangeScreen = _l.onChangeScreen, onChangeState = _l.onChangeState, breakpoint = _l.breakpoint, client = _l.client;
24
- var _m = texts.domesticPhone, domesticPhone = _m === void 0 ? '' : _m, _o = texts.internationalPhone, internationalPhone = _o === void 0 ? '' : _o, hintButton = texts.hintButton;
23
+ var _m = React.useContext(context.ConfirmationContext), alignContent = _m.alignContent, titleTag = _m.titleTag, texts = _m.texts, onChangeScreen = _m.onChangeScreen, onChangeState = _m.onChangeState, breakpoint = _m.breakpoint, client = _m.client;
24
+ var _o = texts.domesticPhone, domesticPhone = _o === void 0 ? '' : _o, _p = texts.internationalPhone, internationalPhone = _p === void 0 ? '' : _p, hintButton = texts.hintButton;
25
25
  var handleReturnButtonClick = function () {
26
26
  onChangeScreen('INITIAL');
27
27
  onChangeState('INITIAL');
@@ -31,31 +31,49 @@ var Hint = function (_a) {
31
31
  React__default.default.createElement(coreComponentsTypography.TypographyText, { view: 'primary-medium', color: 'primary', className: cn__default.default(index_module.text, (_b = {},
32
32
  _b[index_module.typographyTheme] = !mobile,
33
33
  _b[index_module.typographyThemeMobile] = mobile,
34
+ _b[index_module.textMobile] = mobile,
34
35
  _b)) }, texts.hintDescription),
35
36
  React__default.default.createElement("div", { className: cn__default.default(index_module.phonesWrap, (_c = {},
36
37
  _c[index_module.phonesWrapMobile] = mobile,
37
38
  _c)) },
38
- React__default.default.createElement("div", { className: cn__default.default(index_module.phoneWrap, (_d = {}, _d[index_module.phoneContentMobile] = mobile, _d)) },
39
- React__default.default.createElement(coreComponentsLink.Link, { href: utils.getPhoneHref(internationalPhone), underline: false, className: cn__default.default(index_module.phoneLink, (_e = {}, _e[index_module.typographyThemeMobile] = mobile, _e)) }, internationalPhone),
40
- React__default.default.createElement(coreComponentsTypography.TypographyText, { view: 'primary-medium', color: 'primary', className: cn__default.default(index_module.text, (_f = {},
39
+ React__default.default.createElement("div", { className: cn__default.default(index_module.phoneWrap, (_d = {},
40
+ _d[index_module.phoneContentMobile] = mobile,
41
+ _d[index_module.phoneWrapMobile] = mobile,
42
+ _d)) },
43
+ React__default.default.createElement(coreComponentsLink.Link, { href: utils.getPhoneHref(internationalPhone), underline: false, className: cn__default.default(index_module.phoneLink, (_e = {},
44
+ _e[index_module.phoneLinkMobile] = mobile,
45
+ _e[index_module.typographyThemeMobile] = mobile,
46
+ _e)) }, internationalPhone),
47
+ React__default.default.createElement(coreComponentsTypography.TypographyText, { view: 'primary-medium', color: 'primary', className: cn__default.default(index_module.text, index_module.phoneDescription, (_f = {},
41
48
  _f[index_module.typographyTheme] = !mobile,
42
49
  _f[index_module.typographyThemeMobile] = mobile,
50
+ _f[index_module.phoneDescriptionMobile] = mobile,
51
+ _f[index_module.textMobile] = mobile,
43
52
  _f)) }, mobile
44
53
  ? 'В\u00A0Москве и\u00A0за\u00A0границей'
45
54
  : ' \u2014\u00A0в\u00A0Москве и\u00A0за\u00A0границей')),
46
- React__default.default.createElement("div", { className: cn__default.default(index_module.phoneWrap, (_g = {}, _g[index_module.phoneContentMobile] = mobile, _g)) },
47
- React__default.default.createElement(coreComponentsLink.Link, { href: utils.getPhoneHref(domesticPhone), underline: false, className: cn__default.default(index_module.phoneLink, (_h = {}, _h[index_module.typographyThemeMobile] = mobile, _h)) }, domesticPhone),
48
- React__default.default.createElement(coreComponentsTypography.TypographyText, { view: 'primary-medium', color: 'primary', className: cn__default.default(index_module.text, (_j = {},
55
+ React__default.default.createElement("div", { className: cn__default.default(index_module.phoneWrap, (_g = {},
56
+ _g[index_module.phoneContentMobile] = mobile,
57
+ _g[index_module.phoneWrapMobile] = mobile,
58
+ _g)) },
59
+ React__default.default.createElement(coreComponentsLink.Link, { href: utils.getPhoneHref(domesticPhone), underline: false, className: cn__default.default(index_module.phoneLink, (_h = {},
60
+ _h[index_module.phoneLinkMobile] = mobile,
61
+ _h[index_module.typographyThemeMobile] = mobile,
62
+ _h)) }, domesticPhone),
63
+ React__default.default.createElement(coreComponentsTypography.TypographyText, { view: 'primary-medium', color: 'primary', className: cn__default.default(index_module.text, index_module.phoneDescription, (_j = {},
49
64
  _j[index_module.typographyTheme] = !mobile,
50
65
  _j[index_module.typographyThemeMobile] = mobile,
66
+ _j[index_module.phoneDescriptionMobile] = mobile,
67
+ _j[index_module.textMobile] = mobile,
51
68
  _j)) }, mobile
52
69
  ? 'Для\u00A0звонков по\u00A0России'
53
70
  : ' \u2014\u00A0для звонков по\u00A0России'))),
54
71
  React__default.default.createElement(coreComponentsTypography.TypographyText, { view: 'primary-medium', color: 'primary', className: cn__default.default(index_module.text, (_k = {},
55
72
  _k[index_module.typographyTheme] = !mobile,
56
73
  _k[index_module.typographyThemeMobile] = mobile,
74
+ _k[index_module.textMobile] = mobile,
57
75
  _k)) }, texts.hintNotification),
58
- React__default.default.createElement(coreComponentsButton.Button, { size: mobile ? 40 : 48, view: 'secondary', onClick: handleReturnButtonClick, className: index_module.hintButton, breakpoint: breakpoint, client: client }, hintButton)));
76
+ React__default.default.createElement(coreComponentsButton.Button, { size: mobile ? 40 : 48, view: 'secondary', onClick: handleReturnButtonClick, className: cn__default.default(index_module.hintButton, (_l = {}, _l[index_module.hintButtonMobile] = mobile, _l)), breakpoint: breakpoint, client: client }, hintButton)));
59
77
  };
60
78
 
61
79
  exports.Hint = Hint;
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/screens/hint/component.tsx"],"sourcesContent":["import React, { type FC, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { Button } from '@alfalab/core-components-button';\nimport { Link } from '@alfalab/core-components-link';\nimport { TypographyText } from '@alfalab/core-components-typography';\n\nimport { ConfirmationContext } from '../../../context';\nimport { getPhoneHref } from '../../../utils';\nimport { Header } from '../../header';\n\nimport styles from './index.module.css';\n\nexport type HintProps = {\n /**\n * Отображать в мобильной версии экран компонента\n */\n mobile?: boolean;\n};\n\nexport const Hint: FC<HintProps> = ({ mobile }) => {\n const { alignContent, titleTag, texts, onChangeScreen, onChangeState, breakpoint, client } =\n useContext(ConfirmationContext);\n\n const { domesticPhone = '', internationalPhone = '', hintButton } = texts;\n\n const handleReturnButtonClick = () => {\n onChangeScreen('INITIAL');\n onChangeState('INITIAL');\n };\n\n return (\n <div className={cn(styles.component, styles[alignContent])}>\n <Header mobile={mobile} titleTag={titleTag}>\n {texts.hintTitle}\n </Header>\n\n <TypographyText\n view='primary-medium'\n color='primary'\n className={cn(styles.text, {\n [styles.typographyTheme]: !mobile,\n [styles.typographyThemeMobile]: mobile,\n })}\n >\n {texts.hintDescription}\n </TypographyText>\n\n <div\n className={cn(styles.phonesWrap, {\n [styles.phonesWrapMobile]: mobile,\n })}\n >\n <div className={cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile })}>\n <Link\n href={getPhoneHref(internationalPhone)}\n underline={false}\n className={cn(styles.phoneLink, { [styles.typographyThemeMobile]: mobile })}\n >\n {internationalPhone}\n </Link>\n <TypographyText\n view='primary-medium'\n color='primary'\n className={cn(styles.text, {\n [styles.typographyTheme]: !mobile,\n [styles.typographyThemeMobile]: mobile,\n })}\n >\n {mobile\n ? 'В\\u00A0Москве и\\u00A0за\\u00A0границей'\n : ' \\u2014\\u00A0в\\u00A0Москве и\\u00A0за\\u00A0границей'}\n </TypographyText>\n </div>\n\n <div className={cn(styles.phoneWrap, { [styles.phoneContentMobile]: mobile })}>\n <Link\n href={getPhoneHref(domesticPhone)}\n underline={false}\n className={cn(styles.phoneLink, { [styles.typographyThemeMobile]: mobile })}\n >\n {domesticPhone}\n </Link>\n <TypographyText\n view='primary-medium'\n color='primary'\n className={cn(styles.text, {\n [styles.typographyTheme]: !mobile,\n [styles.typographyThemeMobile]: mobile,\n })}\n >\n {mobile\n ? 'Для\\u00A0звонков по\\u00A0России'\n : ' \\u2014\\u00A0для звонков по\\u00A0России'}\n </TypographyText>\n </div>\n </div>\n\n <TypographyText\n view='primary-medium'\n color='primary'\n className={cn(styles.text, {\n [styles.typographyTheme]: !mobile,\n [styles.typographyThemeMobile]: mobile,\n })}\n >\n {texts.hintNotification}\n </TypographyText>\n <Button\n size={mobile ? 40 : 48}\n view='secondary'\n onClick={handleReturnButtonClick}\n className={styles.hintButton}\n breakpoint={breakpoint}\n client={client}\n >\n {hintButton}\n </Button>\n </div>\n );\n};\n"],"names":["useContext","ConfirmationContext","React","cn","styles","Header","TypographyText","Link","getPhoneHref","Button"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBO,IAAM,IAAI,GAAkB,UAAC,EAAU,EAAA;;AAAR,IAAA,IAAA,MAAM,GAAA,EAAA,CAAA,MAAA;IAClC,IAAA,EAAA,GACFA,gBAAU,CAACC,2BAAmB,CAAC,EAD3B,YAAY,GAAA,EAAA,CAAA,YAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,KAAK,WAAA,EAAE,cAAc,GAAA,EAAA,CAAA,cAAA,EAAE,aAAa,GAAA,EAAA,CAAA,aAAA,EAAE,UAAU,GAAA,EAAA,CAAA,UAAA,EAAE,MAAM,GAAA,EAAA,CAAA,MACrD;IAE3B,IAAA,EAAA,GAA4D,KAAK,CAA/C,aAAA,EAAlB,aAAa,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA,EAAE,EAAwC,GAAA,KAAK,mBAAtB,EAAvB,kBAAkB,mBAAG,EAAE,GAAA,EAAA,EAAE,UAAU,GAAK,KAAK,CAAA,UAAV;AAE/D,IAAA,IAAM,uBAAuB,GAAG,YAAA;QAC5B,cAAc,CAAC,SAAS,CAAC;QACzB,aAAa,CAAC,SAAS,CAAC;AAC5B,KAAC;AAED,IAAA,QACIC,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,mBAAE,CAACC,YAAM,CAAC,SAAS,EAAEA,YAAM,CAAC,YAAY,CAAC,CAAC,EAAA;AACtD,QAAAF,sBAAA,CAAA,aAAA,CAACG,gBAAM,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAA,EACrC,KAAK,CAAC,SAAS,CACX;AAET,QAAAH,sBAAA,CAAA,aAAA,CAACI,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EAAA,GAAA,EAAA;AACrB,gBAAA,EAAA,CAACA,YAAM,CAAC,eAAe,CAAA,GAAG,CAAC,MAAM;AACjC,gBAAA,EAAA,CAACA,YAAM,CAAC,qBAAqB,CAAA,GAAG,MAAM;oBACxC,EAED,EAAA,KAAK,CAAC,gBAAgB,CACV;AACjB,QAAAF,sBAAA,CAAA,aAAA,CAACO,2BAAM,EACH,EAAA,IAAI,EAAE,MAAM,GAAG,EAAE,GAAG,EAAE,EACtB,IAAI,EAAC,WAAW,EAChB,OAAO,EAAE,uBAAuB,EAChC,SAAS,EAAEL,YAAM,CAAC,UAAU,EAC5B,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EAAA,EAEb,UAAU,CACN,CACP;AAEd;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/screens/hint/component.tsx"],"sourcesContent":["import React, { type FC, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { Button } from '@alfalab/core-components-button';\nimport { Link } from '@alfalab/core-components-link';\nimport { TypographyText } from '@alfalab/core-components-typography';\n\nimport { ConfirmationContext } from '../../../context';\nimport { getPhoneHref } from '../../../utils';\nimport { Header } from '../../header';\n\nimport styles from './index.module.css';\n\nexport type HintProps = {\n /**\n * Отображать в мобильной версии экран компонента\n */\n mobile?: boolean;\n};\n\nexport const Hint: FC<HintProps> = ({ mobile }) => {\n const { alignContent, titleTag, texts, onChangeScreen, onChangeState, breakpoint, client } =\n useContext(ConfirmationContext);\n\n const { domesticPhone = '', internationalPhone = '', hintButton } = texts;\n\n const handleReturnButtonClick = () => {\n onChangeScreen('INITIAL');\n onChangeState('INITIAL');\n };\n\n return (\n <div className={cn(styles.component, styles[alignContent])}>\n <Header mobile={mobile} titleTag={titleTag}>\n {texts.hintTitle}\n </Header>\n\n <TypographyText\n view='primary-medium'\n color='primary'\n className={cn(styles.text, {\n [styles.typographyTheme]: !mobile,\n [styles.typographyThemeMobile]: mobile,\n [styles.textMobile]: mobile,\n })}\n >\n {texts.hintDescription}\n </TypographyText>\n\n <div\n className={cn(styles.phonesWrap, {\n [styles.phonesWrapMobile]: mobile,\n })}\n >\n <div\n className={cn(styles.phoneWrap, {\n [styles.phoneContentMobile]: mobile,\n [styles.phoneWrapMobile]: mobile,\n })}\n >\n <Link\n href={getPhoneHref(internationalPhone)}\n underline={false}\n className={cn(styles.phoneLink, {\n [styles.phoneLinkMobile]: mobile,\n [styles.typographyThemeMobile]: mobile,\n })}\n >\n {internationalPhone}\n </Link>\n <TypographyText\n view='primary-medium'\n color='primary'\n className={cn(styles.text, styles.phoneDescription, {\n [styles.typographyTheme]: !mobile,\n [styles.typographyThemeMobile]: mobile,\n [styles.phoneDescriptionMobile]: mobile,\n [styles.textMobile]: mobile,\n })}\n >\n {mobile\n ? 'В\\u00A0Москве и\\u00A0за\\u00A0границей'\n : ' \\u2014\\u00A0в\\u00A0Москве и\\u00A0за\\u00A0границей'}\n </TypographyText>\n </div>\n\n <div\n className={cn(styles.phoneWrap, {\n [styles.phoneContentMobile]: mobile,\n [styles.phoneWrapMobile]: mobile,\n })}\n >\n <Link\n href={getPhoneHref(domesticPhone)}\n underline={false}\n className={cn(styles.phoneLink, {\n [styles.phoneLinkMobile]: mobile,\n [styles.typographyThemeMobile]: mobile,\n })}\n >\n {domesticPhone}\n </Link>\n <TypographyText\n view='primary-medium'\n color='primary'\n className={cn(styles.text, styles.phoneDescription, {\n [styles.typographyTheme]: !mobile,\n [styles.typographyThemeMobile]: mobile,\n [styles.phoneDescriptionMobile]: mobile,\n [styles.textMobile]: mobile,\n })}\n >\n {mobile\n ? 'Для\\u00A0звонков по\\u00A0России'\n : ' \\u2014\\u00A0для звонков по\\u00A0России'}\n </TypographyText>\n </div>\n </div>\n\n <TypographyText\n view='primary-medium'\n color='primary'\n className={cn(styles.text, {\n [styles.typographyTheme]: !mobile,\n [styles.typographyThemeMobile]: mobile,\n [styles.textMobile]: mobile,\n })}\n >\n {texts.hintNotification}\n </TypographyText>\n <Button\n size={mobile ? 40 : 48}\n view='secondary'\n onClick={handleReturnButtonClick}\n className={cn(styles.hintButton, { [styles.hintButtonMobile]: mobile })}\n breakpoint={breakpoint}\n client={client}\n >\n {hintButton}\n </Button>\n </div>\n );\n};\n"],"names":["useContext","ConfirmationContext","React","cn","styles","Header","TypographyText","Link","getPhoneHref","Button"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBO,IAAM,IAAI,GAAkB,UAAC,EAAU,EAAA;;AAAR,IAAA,IAAA,MAAM,GAAA,EAAA,CAAA,MAAA;IAClC,IAAA,EAAA,GACFA,gBAAU,CAACC,2BAAmB,CAAC,EAD3B,YAAY,GAAA,EAAA,CAAA,YAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,KAAK,WAAA,EAAE,cAAc,GAAA,EAAA,CAAA,cAAA,EAAE,aAAa,GAAA,EAAA,CAAA,aAAA,EAAE,UAAU,GAAA,EAAA,CAAA,UAAA,EAAE,MAAM,GAAA,EAAA,CAAA,MACrD;IAE3B,IAAA,EAAA,GAA4D,KAAK,CAA/C,aAAA,EAAlB,aAAa,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA,EAAE,EAAwC,GAAA,KAAK,mBAAtB,EAAvB,kBAAkB,mBAAG,EAAE,GAAA,EAAA,EAAE,UAAU,GAAK,KAAK,CAAA,UAAV;AAE/D,IAAA,IAAM,uBAAuB,GAAG,YAAA;QAC5B,cAAc,CAAC,SAAS,CAAC;QACzB,aAAa,CAAC,SAAS,CAAC;AAC5B,KAAC;AAED,IAAA,QACIC,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,mBAAE,CAACC,YAAM,CAAC,SAAS,EAAEA,YAAM,CAAC,YAAY,CAAC,CAAC,EAAA;AACtD,QAAAF,sBAAA,CAAA,aAAA,CAACG,gBAAM,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAA,EACrC,KAAK,CAAC,SAAS,CACX;AAET,QAA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,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,IAEb,UAAU,CACN,CACP;AAEd;;;;"}
@@ -9,58 +9,110 @@
9
9
  --gap-32: 32px;
10
10
  }
11
11
  :root {
12
- --font-family-system:
13
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
12
+ --font-family-alfasans:
13
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
14
+ Helvetica, sans-serif;
14
15
  }
15
16
  :root {
16
- --confirmation-text-color: var(--color-light-text-primary)
17
+ --confirmation-text-color: var(--color-light-text-primary);
18
+ --confirmation-text-font-size: 16px;
19
+ --confirmation-text-font-weight: 400;
20
+ --confirmation-text-line-height: 24px;
21
+ --confirmation-text-letter-spacing: -0.24px;
22
+ --confirmation-text-font-size-mobile: 16px;
23
+ --confirmation-text-line-height-mobile: 24px;
24
+ --confirmation-text-letter-spacing-mobile: -0.24px;
25
+ --confirmation-hint-text-color: var(--color-light-text-primary);
26
+ --confirmation-hint-phone-description-color: var(--color-light-text-primary);
27
+ --confirmation-hint-text-margin-bottom: var(--gap-24);
28
+ --confirmation-hint-phones-margin-bottom: var(--gap-24);
29
+ --confirmation-hint-phone-item-margin-bottom: var(--gap-8);
30
+ --confirmation-hint-button-margin-top: var(--gap-32);
31
+ --confirmation-hint-text-color-mobile: var(--color-light-text-secondary);
32
+ --confirmation-hint-phone-description-color-mobile: var(--color-light-text-secondary);
33
+ --confirmation-hint-text-margin-bottom-mobile: var(--gap-24);
34
+ --confirmation-hint-phones-margin-bottom-mobile: var(--gap-24);
35
+ --confirmation-hint-phone-item-margin-bottom-mobile: var(--gap-8);
36
+ --confirmation-hint-button-margin-top-mobile: var(--gap-32);
17
37
  }
18
- .confirmation__component_1hpky {
38
+ .confirmation__component_14n4o {
19
39
  display: flex;
20
40
  flex-direction: column;
21
41
  align-items: flex-start;
22
42
  }
23
- .confirmation__component_1hpky span:last-of-type {
43
+ .confirmation__component_14n4o span:last-of-type {
24
44
  margin-bottom: var(--gap-0);
25
45
  }
26
- .confirmation__center_1hpky {
46
+ .confirmation__center_14n4o {
27
47
  align-items: center;
28
48
  text-align: center;
29
49
  }
30
- .confirmation__text_1hpky.confirmation__text_1hpky {
31
- margin-bottom: var(--gap-24);
50
+ .confirmation__text_14n4o.confirmation__text_14n4o {
51
+ margin-bottom: var(--confirmation-hint-text-margin-bottom);
32
52
  }
33
- .confirmation__typographyTheme_1hpky.confirmation__typographyTheme_1hpky {
34
- font-size: 16px;
35
- line-height: 24px;
36
- font-weight: 400;
37
- font-family: var(--font-family-system);
53
+ .confirmation__text_14n4o.confirmation__textMobile_14n4o {
54
+ margin-bottom: var(--confirmation-hint-text-margin-bottom-mobile);
55
+ }
56
+ .confirmation__typographyTheme_14n4o.confirmation__typographyTheme_14n4o {
57
+ font-size: var(--confirmation-text-font-size);
58
+ line-height: var(--confirmation-text-line-height);
59
+ letter-spacing: var(--confirmation-text-letter-spacing);
60
+ font-weight: var(--confirmation-text-font-weight);
61
+ font-family: var(--font-family-alfasans);
38
62
  color: var(--confirmation-text-color);
63
+ color: var(--confirmation-hint-text-color);
39
64
  }
40
- .confirmation__typographyThemeMobile_1hpky.confirmation__typographyThemeMobile_1hpky {
41
- color: var(--color-light-text-secondary);
65
+ .confirmation__typographyThemeMobile_14n4o.confirmation__typographyThemeMobile_14n4o {
66
+ font-size: var(--confirmation-text-font-size-mobile);
67
+ line-height: var(--confirmation-text-line-height-mobile);
68
+ letter-spacing: var(--confirmation-text-letter-spacing-mobile);
69
+ color: var(--confirmation-hint-text-color-mobile);
42
70
  }
43
- .confirmation__phonesWrap_1hpky {
71
+ .confirmation__phoneDescription_14n4o.confirmation__phoneDescription_14n4o {
72
+ color: var(--confirmation-hint-phone-description-color);
73
+ }
74
+ .confirmation__phoneDescriptionMobile_14n4o.confirmation__phoneDescriptionMobile_14n4o {
75
+ color: var(--confirmation-hint-phone-description-color-mobile);
76
+ }
77
+ .confirmation__phonesWrap_14n4o {
44
78
  display: flex;
45
79
  flex-direction: column;
46
- margin-bottom: var(--gap-24);
80
+ margin-bottom: var(--confirmation-hint-phones-margin-bottom);
81
+ }
82
+ .confirmation__phonesWrap_14n4o.confirmation__phonesWrapMobile_14n4o {
83
+ margin-bottom: var(--confirmation-hint-phones-margin-bottom-mobile);
47
84
  }
48
- .confirmation__phoneWrap_1hpky {
49
- margin-bottom: var(--gap-8);
85
+ .confirmation__phoneWrap_14n4o {
86
+ margin-bottom: var(--confirmation-hint-phone-item-margin-bottom);
50
87
  }
51
- .confirmation__phoneWrap_1hpky:last-child {
88
+ .confirmation__phoneWrap_14n4o:last-child {
52
89
  margin-bottom: var(--gap-0);
53
90
  }
54
- .confirmation__phoneLink_1hpky.confirmation__phoneLink_1hpky {
91
+ .confirmation__phoneWrap_14n4o.confirmation__phoneWrapMobile_14n4o {
92
+ margin-bottom: var(--confirmation-hint-phone-item-margin-bottom-mobile);
93
+ }
94
+ .confirmation__phoneWrap_14n4o.confirmation__phoneWrapMobile_14n4o:last-child {
95
+ margin-bottom: var(--gap-0);
96
+ }
97
+ .confirmation__phoneLink_14n4o.confirmation__phoneLink_14n4o {
55
98
  font-size: 16px;
56
99
  line-height: 24px;
57
100
  font-weight: 500;
58
- font-family: var(--font-family-system);
101
+ letter-spacing: -0.05px;
102
+ font-family: var(--font-family-alfasans);
103
+ }
104
+ .confirmation__phoneLink_14n4o.confirmation__phoneLinkMobile_14n4o {
105
+ font-size: var(--confirmation-text-font-size-mobile);
106
+ line-height: var(--confirmation-text-line-height-mobile);
107
+ letter-spacing: var(--confirmation-text-letter-spacing-mobile);
108
+ }
109
+ .confirmation__hintButton_14n4o {
110
+ margin-top: var(--confirmation-hint-button-margin-top);
59
111
  }
60
- .confirmation__hintButton_1hpky {
61
- margin-top: var(--gap-32);
112
+ .confirmation__hintButton_14n4o.confirmation__hintButtonMobile_14n4o {
113
+ margin-top: var(--confirmation-hint-button-margin-top-mobile);
62
114
  }
63
- .confirmation__phoneContentMobile_1hpky {
115
+ .confirmation__phoneContentMobile_14n4o {
64
116
  display: flex;
65
117
  flex-direction: column;
66
118
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"component":"confirmation__component_1hpky","center":"confirmation__center_1hpky","text":"confirmation__text_1hpky","typographyTheme":"confirmation__typographyTheme_1hpky","typographyThemeMobile":"confirmation__typographyThemeMobile_1hpky","phonesWrap":"confirmation__phonesWrap_1hpky","phoneWrap":"confirmation__phoneWrap_1hpky","phoneLink":"confirmation__phoneLink_1hpky","hintButton":"confirmation__hintButton_1hpky","phoneContentMobile":"confirmation__phoneContentMobile_1hpky"};
5
+ var styles = {"component":"confirmation__component_14n4o","center":"confirmation__center_14n4o","text":"confirmation__text_14n4o","textMobile":"confirmation__textMobile_14n4o","typographyTheme":"confirmation__typographyTheme_14n4o","typographyThemeMobile":"confirmation__typographyThemeMobile_14n4o","phoneDescription":"confirmation__phoneDescription_14n4o","phoneDescriptionMobile":"confirmation__phoneDescriptionMobile_14n4o","phonesWrap":"confirmation__phonesWrap_14n4o","phonesWrapMobile":"confirmation__phonesWrapMobile_14n4o","phoneWrap":"confirmation__phoneWrap_14n4o","phoneWrapMobile":"confirmation__phoneWrapMobile_14n4o","phoneLink":"confirmation__phoneLink_14n4o","phoneLinkMobile":"confirmation__phoneLinkMobile_14n4o","hintButton":"confirmation__hintButton_14n4o","hintButtonMobile":"confirmation__hintButtonMobile_14n4o","phoneContentMobile":"confirmation__phoneContentMobile_14n4o"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../../src/components/screens/hint/index.module.css"],"sourcesContent":["@import '../../../vars.css';\n\n.component {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n & span:last-of-type {\n margin-bottom: var(--gap-0);\n }\n}\n\n.center {\n align-items: center;\n text-align: center;\n}\n\n.text.text {\n margin-bottom: var(--gap-24);\n}\n\n.typographyTheme.typographyTheme {\n @mixin _confirmation-text;\n}\n\n.typographyThemeMobile.typographyThemeMobile {\n color: var(--color-light-text-secondary);\n}\n\n.phonesWrap {\n display: flex;\n flex-direction: column;\n margin-bottom: var(--gap-24);\n}\n\n.phoneWrap {\n margin-bottom: var(--gap-8);\n\n &:last-child {\n margin-bottom: var(--gap-0);\n }\n}\n\n.phoneLink.phoneLink {\n @mixin action_primary_medium;\n}\n\n.hintButton {\n margin-top: var(--gap-32);\n}\n\n.phoneContentMobile {\n display: flex;\n flex-direction: column;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,WAAW,CAAC,+BAA+B,CAAC,QAAQ,CAAC,4BAA4B,CAAC,MAAM,CAAC,0BAA0B,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,uBAAuB,CAAC,2CAA2C,CAAC,YAAY,CAAC,gCAAgC,CAAC,WAAW,CAAC,+BAA+B,CAAC,WAAW,CAAC,+BAA+B,CAAC,YAAY,CAAC,gCAAgC,CAAC,oBAAoB,CAAC,wCAAwC,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../../src/components/screens/hint/index.module.css"],"sourcesContent":["@import '../../../vars.css';\n\n.component {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n & span:last-of-type {\n margin-bottom: var(--gap-0);\n }\n}\n\n.center {\n align-items: center;\n text-align: center;\n}\n\n.text.text {\n margin-bottom: var(--confirmation-hint-text-margin-bottom);\n}\n\n.text.textMobile {\n margin-bottom: var(--confirmation-hint-text-margin-bottom-mobile);\n}\n\n.typographyTheme.typographyTheme {\n @mixin _confirmation-text;\n color: var(--confirmation-hint-text-color);\n}\n\n.typographyThemeMobile.typographyThemeMobile {\n font-size: var(--confirmation-text-font-size-mobile);\n line-height: var(--confirmation-text-line-height-mobile);\n letter-spacing: var(--confirmation-text-letter-spacing-mobile);\n color: var(--confirmation-hint-text-color-mobile);\n}\n\n.phoneDescription.phoneDescription {\n color: var(--confirmation-hint-phone-description-color);\n}\n\n.phoneDescriptionMobile.phoneDescriptionMobile {\n color: var(--confirmation-hint-phone-description-color-mobile);\n}\n\n.phonesWrap {\n display: flex;\n flex-direction: column;\n margin-bottom: var(--confirmation-hint-phones-margin-bottom);\n}\n\n.phonesWrap.phonesWrapMobile {\n margin-bottom: var(--confirmation-hint-phones-margin-bottom-mobile);\n}\n\n.phoneWrap {\n margin-bottom: var(--confirmation-hint-phone-item-margin-bottom);\n\n &:last-child {\n margin-bottom: var(--gap-0);\n }\n}\n\n.phoneWrap.phoneWrapMobile {\n margin-bottom: var(--confirmation-hint-phone-item-margin-bottom-mobile);\n\n &:last-child {\n margin-bottom: var(--gap-0);\n }\n}\n\n.phoneLink.phoneLink {\n @mixin action_primary_medium;\n}\n\n.phoneLink.phoneLinkMobile {\n font-size: var(--confirmation-text-font-size-mobile);\n line-height: var(--confirmation-text-line-height-mobile);\n letter-spacing: var(--confirmation-text-letter-spacing-mobile);\n}\n\n.hintButton {\n margin-top: var(--confirmation-hint-button-margin-top);\n}\n\n.hintButton.hintButtonMobile {\n margin-top: var(--confirmation-hint-button-margin-top-mobile);\n}\n\n.phoneContentMobile {\n display: flex;\n flex-direction: column;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,WAAW,CAAC,+BAA+B,CAAC,QAAQ,CAAC,4BAA4B,CAAC,MAAM,CAAC,0BAA0B,CAAC,YAAY,CAAC,gCAAgC,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,uBAAuB,CAAC,2CAA2C,CAAC,kBAAkB,CAAC,sCAAsC,CAAC,wBAAwB,CAAC,4CAA4C,CAAC,YAAY,CAAC,gCAAgC,CAAC,kBAAkB,CAAC,sCAAsC,CAAC,WAAW,CAAC,+BAA+B,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,WAAW,CAAC,+BAA+B,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,YAAY,CAAC,gCAAgC,CAAC,kBAAkB,CAAC,sCAAsC,CAAC,oBAAoB,CAAC,wCAAwC,CAAC;;;;"}
@@ -22,12 +22,12 @@ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
22
22
 
23
23
  var CODE_SEND_HINT_VISIBLE_DURATION = 2000;
24
24
  var Initial = function (_a) {
25
- var _b;
25
+ var _b, _c, _d, _e;
26
26
  var mobile$2 = _a.mobile;
27
- var _c = React.useContext(context.ConfirmationContext), state = _c.state, alignContent = _c.alignContent, titleTag = _c.titleTag, texts = _c.texts, requiredCharAmount = _c.requiredCharAmount, timeLeft = _c.timeLeft, phone = _c.phone, clearCodeOnError = _c.clearCodeOnError, hideCountdownSection = _c.hideCountdownSection, initialScreenHintSlot = _c.initialScreenHintSlot, errorVisibleDuration = _c.errorVisibleDuration, strictFocus = _c.strictFocus, onChangeState = _c.onChangeState, onInputFinished = _c.onInputFinished, onChangeScreen = _c.onChangeScreen, onSmsRetryClick = _c.onSmsRetryClick;
27
+ var _f = React.useContext(context.ConfirmationContext), state = _f.state, alignContent = _f.alignContent, titleTag = _f.titleTag, texts = _f.texts, requiredCharAmount = _f.requiredCharAmount, timeLeft = _f.timeLeft, phone = _f.phone, clearCodeOnError = _f.clearCodeOnError, hideCountdownSection = _f.hideCountdownSection, initialScreenHintSlot = _f.initialScreenHintSlot, errorVisibleDuration = _f.errorVisibleDuration, strictFocus = _f.strictFocus, onChangeState = _f.onChangeState, onInputFinished = _f.onInputFinished, onChangeScreen = _f.onChangeScreen, onSmsRetryClick = _f.onSmsRetryClick;
28
28
  var prevState = hooks.usePrevious(state);
29
29
  var inputRef = React.useRef(null);
30
- var _d = React.useState(false), codeSendHintVisible = _d[0], setCodeSendHintVisible = _d[1];
30
+ var _g = React.useState(false), codeSendHintVisible = _g[0], setCodeSendHintVisible = _g[1];
31
31
  var timerId = React.useRef(0);
32
32
  var handleInputComplete = function (code) {
33
33
  onInputFinished(code);
@@ -108,10 +108,19 @@ var Initial = function (_a) {
108
108
  phone ? (React__default.default.createElement(coreComponentsTypography.TypographyText, { view: 'primary-medium', color: 'primary', className: cn__default.default(index_module.phone, (_b = {},
109
109
  _b[index_module.typographyTheme] = !mobile$2,
110
110
  _b[index_module.typographyThemeMobile] = mobile$2,
111
+ _b[index_module.phoneMobile] = mobile$2,
111
112
  _b)) },
112
- "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u043D\u0430 ",
113
- phone)) : null,
114
- React__default.default.createElement(ComponentCodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, strictFocus: strictFocus, className: cn__default.default(index_module.containerInput, index_module.codeInput), onComplete: handleInputComplete, onChange: handleInputChange, clearCodeOnError: clearCodeOnError, errorVisibleDuration: errorVisibleDuration, onErrorAnimationEnd: handleErrorAnimationEnd }),
113
+ React__default.default.createElement("span", { className: cn__default.default(index_module.phoneLabel, (_c = {},
114
+ _c[index_module.phoneLabelMobile] = mobile$2,
115
+ _c)) },
116
+ "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u043B\u0438 \u043D\u0430",
117
+ '\u00A0'),
118
+ React__default.default.createElement("span", { className: cn__default.default(index_module.phoneNumber, (_d = {},
119
+ _d[index_module.phoneNumberMobile] = mobile$2,
120
+ _d)) }, phone))) : null,
121
+ React__default.default.createElement(ComponentCodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, strictFocus: strictFocus, className: cn__default.default(index_module.containerInput, index_module.codeInput, (_e = {},
122
+ _e[index_module.codeInputMobile] = mobile$2,
123
+ _e)), onComplete: handleInputComplete, onChange: handleInputChange, clearCodeOnError: clearCodeOnError, errorVisibleDuration: errorVisibleDuration, onErrorAnimationEnd: handleErrorAnimationEnd }),
115
124
  !hideCountdownSection && (React__default.default.createElement(countdownSection.CountdownSection, { processing: processing, timePassed: timePassed, codeSendHintVisible: codeSendHintVisible, handleSmsRetryClick: handleSmsRetryClick, mobile: mobile$2 })),
116
125
  renderHintButton()));
117
126
  };