@alfalab/core-components-modal 4.0.6 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/Component.desktop.js +6 -5
  3. package/dist/Component.mobile.d.ts +1 -1
  4. package/dist/Component.mobile.js +7 -5
  5. package/dist/Component.responsive.d.ts +1 -1
  6. package/dist/Component.responsive.js +6 -4
  7. package/dist/components/closer/Component.d.ts +10 -1
  8. package/dist/components/closer/Component.js +6 -5
  9. package/dist/components/closer/index.css +13 -21
  10. package/dist/components/content/Component.desktop.js +2 -2
  11. package/dist/components/content/Component.mobile.js +2 -2
  12. package/dist/components/content/desktop.css +24 -19
  13. package/dist/components/content/mobile.css +19 -14
  14. package/dist/components/footer/Component.desktop.js +2 -2
  15. package/dist/components/footer/Component.js +1 -1
  16. package/dist/components/footer/Component.mobile.js +2 -2
  17. package/dist/components/footer/desktop.css +25 -21
  18. package/dist/components/footer/layout.css +27 -27
  19. package/dist/components/footer/mobile.css +20 -16
  20. package/dist/components/header/Component.d.ts +20 -5
  21. package/dist/components/header/Component.desktop.d.ts +5 -1
  22. package/dist/components/header/Component.desktop.js +11 -6
  23. package/dist/components/header/Component.js +13 -9
  24. package/dist/components/header/Component.mobile.d.ts +6 -1
  25. package/dist/components/header/Component.mobile.js +16 -6
  26. package/dist/components/header/desktop.css +19 -602
  27. package/dist/components/header/index.css +78 -0
  28. package/dist/components/header/mobile.css +16 -603
  29. package/dist/cssm/Component.desktop.js +4 -2
  30. package/dist/cssm/Component.mobile.d.ts +1 -1
  31. package/dist/cssm/Component.mobile.js +5 -2
  32. package/dist/cssm/Component.responsive.d.ts +1 -1
  33. package/dist/cssm/Component.responsive.js +5 -2
  34. package/dist/cssm/components/closer/Component.d.ts +10 -1
  35. package/dist/cssm/components/closer/Component.js +4 -3
  36. package/dist/cssm/components/closer/index.module.css +7 -15
  37. package/dist/cssm/components/content/desktop.module.css +2 -2
  38. package/dist/cssm/components/content/index.module.css +2 -2
  39. package/dist/cssm/components/content/mobile.module.css +2 -2
  40. package/dist/cssm/components/footer/desktop.module.css +2 -2
  41. package/dist/cssm/components/footer/index.module.css +3 -4
  42. package/dist/cssm/components/footer/layout.module.css +2 -2
  43. package/dist/cssm/components/footer/mobile.module.css +2 -2
  44. package/dist/cssm/components/header/Component.d.ts +20 -5
  45. package/dist/cssm/components/header/Component.desktop.d.ts +5 -1
  46. package/dist/cssm/components/header/Component.desktop.js +11 -5
  47. package/dist/cssm/components/header/Component.js +15 -13
  48. package/dist/cssm/components/header/Component.mobile.d.ts +6 -1
  49. package/dist/cssm/components/header/Component.mobile.js +16 -5
  50. package/dist/cssm/components/header/desktop.module.css +17 -15
  51. package/dist/cssm/components/header/index.module.css +34 -20
  52. package/dist/cssm/components/header/mobile.module.css +21 -21
  53. package/dist/cssm/desktop.js +4 -2
  54. package/dist/cssm/desktop.module.css +2 -2
  55. package/dist/cssm/index.js +5 -2
  56. package/dist/cssm/mobile.js +5 -2
  57. package/dist/cssm/mobile.module.css +2 -2
  58. package/dist/cssm/responsive.js +5 -2
  59. package/dist/cssm/vars.css +2 -2
  60. package/dist/desktop.css +10 -10
  61. package/dist/desktop.js +5 -4
  62. package/dist/esm/Component.desktop.js +6 -5
  63. package/dist/esm/Component.mobile.d.ts +1 -1
  64. package/dist/esm/Component.mobile.js +7 -5
  65. package/dist/esm/Component.responsive.d.ts +1 -1
  66. package/dist/esm/Component.responsive.js +6 -4
  67. package/dist/esm/components/closer/Component.d.ts +10 -1
  68. package/dist/esm/components/closer/Component.js +6 -5
  69. package/dist/esm/components/closer/index.css +13 -21
  70. package/dist/esm/components/content/Component.desktop.js +2 -2
  71. package/dist/esm/components/content/Component.mobile.js +2 -2
  72. package/dist/esm/components/content/desktop.css +24 -19
  73. package/dist/esm/components/content/mobile.css +19 -14
  74. package/dist/esm/components/footer/Component.desktop.js +2 -2
  75. package/dist/esm/components/footer/Component.js +1 -1
  76. package/dist/esm/components/footer/Component.mobile.js +2 -2
  77. package/dist/esm/components/footer/desktop.css +25 -21
  78. package/dist/esm/components/footer/layout.css +27 -27
  79. package/dist/esm/components/footer/mobile.css +20 -16
  80. package/dist/esm/components/header/Component.d.ts +20 -5
  81. package/dist/esm/components/header/Component.desktop.d.ts +5 -1
  82. package/dist/esm/components/header/Component.desktop.js +11 -6
  83. package/dist/esm/components/header/Component.js +13 -9
  84. package/dist/esm/components/header/Component.mobile.d.ts +6 -1
  85. package/dist/esm/components/header/Component.mobile.js +14 -6
  86. package/dist/esm/components/header/desktop.css +19 -602
  87. package/dist/esm/components/header/index.css +78 -0
  88. package/dist/esm/components/header/mobile.css +16 -603
  89. package/dist/esm/desktop.css +10 -10
  90. package/dist/esm/desktop.js +5 -4
  91. package/dist/esm/index.js +6 -4
  92. package/dist/esm/mobile.css +4 -4
  93. package/dist/esm/mobile.js +6 -4
  94. package/dist/esm/responsive.js +6 -4
  95. package/dist/esm/transitions.css +8 -8
  96. package/dist/esm/transitions.module-04d7a935.js +4 -0
  97. package/dist/esm/{tslib.es6-980e4c5b.d.ts → tslib.es6-38b70e5e.d.ts} +0 -0
  98. package/dist/esm/{tslib.es6-980e4c5b.js → tslib.es6-38b70e5e.js} +0 -0
  99. package/dist/index.js +6 -4
  100. package/dist/mobile.css +4 -4
  101. package/dist/mobile.js +6 -4
  102. package/dist/modern/Component.desktop.js +5 -4
  103. package/dist/modern/Component.mobile.d.ts +1 -1
  104. package/dist/modern/Component.mobile.js +6 -4
  105. package/dist/modern/Component.responsive.d.ts +1 -1
  106. package/dist/modern/Component.responsive.js +5 -3
  107. package/dist/modern/components/closer/Component.d.ts +10 -1
  108. package/dist/modern/components/closer/Component.js +5 -4
  109. package/dist/modern/components/closer/index.css +13 -21
  110. package/dist/modern/components/content/Component.desktop.js +1 -1
  111. package/dist/modern/components/content/Component.mobile.js +1 -1
  112. package/dist/modern/components/content/desktop.css +24 -19
  113. package/dist/modern/components/content/mobile.css +19 -14
  114. package/dist/modern/components/footer/Component.desktop.js +1 -1
  115. package/dist/modern/components/footer/Component.js +1 -1
  116. package/dist/modern/components/footer/Component.mobile.js +1 -1
  117. package/dist/modern/components/footer/desktop.css +25 -21
  118. package/dist/modern/components/footer/layout.css +27 -27
  119. package/dist/modern/components/footer/mobile.css +20 -16
  120. package/dist/modern/components/header/Component.d.ts +20 -5
  121. package/dist/modern/components/header/Component.desktop.d.ts +5 -1
  122. package/dist/modern/components/header/Component.desktop.js +8 -4
  123. package/dist/modern/components/header/Component.js +11 -6
  124. package/dist/modern/components/header/Component.mobile.d.ts +6 -1
  125. package/dist/modern/components/header/Component.mobile.js +9 -5
  126. package/dist/modern/components/header/desktop.css +19 -602
  127. package/dist/modern/components/header/index.css +78 -0
  128. package/dist/modern/components/header/mobile.css +16 -603
  129. package/dist/modern/desktop.css +10 -10
  130. package/dist/modern/desktop.js +4 -3
  131. package/dist/modern/index.js +5 -3
  132. package/dist/modern/mobile.css +4 -4
  133. package/dist/modern/mobile.js +5 -3
  134. package/dist/modern/responsive.js +5 -3
  135. package/dist/modern/transitions.css +8 -8
  136. package/dist/modern/transitions.module-04d7a935.js +4 -0
  137. package/dist/responsive.js +6 -4
  138. package/dist/transitions.css +8 -8
  139. package/dist/transitions.module-b2682a08.js +6 -0
  140. package/dist/{tslib.es6-4580f410.d.ts → tslib.es6-7f8fab53.d.ts} +0 -0
  141. package/dist/{tslib.es6-4580f410.js → tslib.es6-7f8fab53.js} +0 -0
  142. package/package.json +5 -4
  143. package/dist/esm/transitions.module-57d58ab1.js +0 -4
  144. package/dist/modern/transitions.module-57d58ab1.js +0 -4
  145. package/dist/transitions.module-c3a97687.js +0 -6
@@ -1,4 +1,4 @@
1
- /* hash: 7ir00 */
1
+ /* hash: uchoi */
2
2
  :root {
3
3
  }:root {
4
4
  }:root {
@@ -25,19 +25,19 @@
25
25
  --modal-content-no-footer-bottom-padding: var(--gap-4xl);
26
26
  --modal-content-no-header-top-padding: var(--gap-2xl);
27
27
 
28
- /* closer */
29
-
30
28
  /* sticky */
31
29
 
32
30
  /* scroll */
33
- }.modal__content_ufzbz {
31
+
32
+ /* mobile */
33
+ }.modal__content_km6k3 {
34
34
  box-sizing: border-box;
35
35
  width: 100%
36
- }.modal__content_ufzbz:first-child {
36
+ }.modal__content_km6k3:first-child {
37
37
  padding-top: var(--modal-content-no-header-top-padding);
38
- }.modal__content_ufzbz:last-child {
38
+ }.modal__content_km6k3:last-child {
39
39
  padding-bottom: var(--modal-content-no-footer-bottom-padding);
40
- }.modal__flex_ufzbz {
40
+ }.modal__flex_km6k3 {
41
41
  flex: 1 1 auto;
42
42
  }
43
43
  :root {
@@ -339,6 +339,7 @@
339
339
  --color-dark-graphic-primary-alpha-30: rgba(255, 255, 255, 0.3);
340
340
  --color-dark-graphic-primary-alpha-40: rgba(255, 255, 255, 0.4);
341
341
  --color-dark-graphic-primary-alpha-50: rgba(255, 255, 255, 0.5);
342
+ --color-dark-graphic-primary-shade-15: rgb(217, 217, 217);
342
343
  --color-dark-graphic-primary-shade-30: rgb(179, 179, 179);
343
344
  --color-dark-graphic-primary-shade-50: rgb(128, 128, 128);
344
345
  --color-dark-graphic-primary-tint-10: rgb(255, 255, 255);
@@ -402,6 +403,7 @@
402
403
  --color-light-graphic-primary-alpha-30: rgba(11, 31, 53, 0.3);
403
404
  --color-light-graphic-primary-alpha-40: rgba(11, 31, 53, 0.4);
404
405
  --color-light-graphic-primary-alpha-50: rgba(11, 31, 53, 0.5);
406
+ --color-light-graphic-primary-tint-15: rgb(48, 65, 83);
405
407
  --color-light-graphic-primary-tint-30: rgb(84, 98, 114);
406
408
  --color-light-graphic-primary-tint-50: rgb(133, 143, 154);
407
409
  --color-light-graphic-primary-shade-10: rgb(10, 28, 48);
@@ -582,22 +584,25 @@
582
584
  --modal-l-content-no-footer-bottom-padding: var(--gap-6xl);
583
585
  --modal-content-no-header-top-padding: var(--gap-2xl);
584
586
 
585
- /* closer */
586
- --modal-closer-icon: url('https://alfabank.gcdn.co/icons/glyph_cross_m.svg');
587
-
588
587
  /* sticky */
589
588
  --modal-footer-sticky-box-shadow: none;
590
589
  --modal-footer-sticky-background: var(--modal-header-background);
591
590
 
592
591
  /* scroll */
593
- --modal-header-highlight-box-shadow: var(--shadow-s);
592
+ --modal-header-highlight-box-shadow: none;
594
593
  --modal-header-highlight-background: var(--color-light-bg-primary);
595
- --modal-footer-highlight-box-shadow: var(--shadow-s-up);
594
+ --modal-footer-highlight-box-shadow: none;
596
595
  --modal-footer-highlight-background: var(--color-light-bg-primary);
596
+
597
+ /* mobile */
598
+ --modal-header-mobile-top-padding: var(--gap-s);
599
+ --modal-header-mobile-font-size: 18px;
600
+ --modal-header-mobile-line-height: 24px;
601
+ --modal-header-mobile-font-family: var(--font-family-system);
597
602
  }
598
- .modal__content_y6uri {
603
+ .modal__content_1ulr5 {
599
604
 
600
605
  padding: 0 var(--gap-m) 0;
601
606
  }
602
- .modal__flex_y6uri {
607
+ .modal__flex_1ulr5 {
603
608
  }
@@ -1,11 +1,11 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-980e4c5b.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-38b70e5e.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/dist/esm';
5
5
  import '../../Context.js';
6
6
  import { Footer } from './Component.js';
7
7
 
8
- var styles = {"footer":"modal__footer_vue3z modal__footer_1ydvs","highlighted":"modal__highlighted_vue3z modal__highlighted_1ydvs","sticky":"modal__sticky_vue3z modal__sticky_1ydvs","fullscreen":"modal__fullscreen_vue3z","s":"modal__s_vue3z","m":"modal__m_vue3z","l":"modal__l_vue3z"};
8
+ var styles = {"footer":"modal__footer_1ud1n modal__footer_wjhpf","highlighted":"modal__highlighted_1ud1n modal__highlighted_wjhpf","sticky":"modal__sticky_1ud1n modal__sticky_wjhpf","fullscreen":"modal__fullscreen_1ud1n","s":"modal__s_1ud1n","m":"modal__m_1ud1n","l":"modal__l_1ud1n"};
9
9
  require('./desktop.css')
10
10
 
11
11
  var FooterDesktop = function (_a) {
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import '@alfalab/core-components-base-modal/dist/esm';
4
4
  import { ModalContext } from '../../Context.js';
5
5
 
6
- var layoutStyles = {"column":"modal__column_2k8js","gap-16":"modal__gap-16_2k8js","gap-24":"modal__gap-24_2k8js","gap-32":"modal__gap-32_2k8js","start":"modal__start_2k8js","center":"modal__center_2k8js","space-between":"modal__space-between_2k8js"};
6
+ var layoutStyles = {"column":"modal__column_rfxw4","gap-16":"modal__gap-16_rfxw4","gap-24":"modal__gap-24_rfxw4","gap-32":"modal__gap-32_rfxw4","start":"modal__start_rfxw4","center":"modal__center_rfxw4","space-between":"modal__space-between_rfxw4"};
7
7
  require('./layout.css')
8
8
 
9
9
  var Footer = function (_a) {
@@ -1,11 +1,11 @@
1
- import { a as __assign } from '../../tslib.es6-980e4c5b.js';
1
+ import { a as __assign } from '../../tslib.es6-38b70e5e.js';
2
2
  import React from 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-base-modal/dist/esm';
5
5
  import '../../Context.js';
6
6
  import { Footer } from './Component.js';
7
7
 
8
- var styles = {"footer":"modal__footer_1sge0 modal__footer_1ydvs","highlighted":"modal__highlighted_1sge0 modal__highlighted_1ydvs","sticky":"modal__sticky_1sge0 modal__sticky_1ydvs"};
8
+ var styles = {"footer":"modal__footer_1a25a modal__footer_wjhpf","highlighted":"modal__highlighted_1a25a modal__highlighted_wjhpf","sticky":"modal__sticky_1a25a modal__sticky_wjhpf"};
9
9
  require('./mobile.css')
10
10
 
11
11
  var FooterMobile = function (props) { return React.createElement(Footer, __assign({ styles: styles }, props)); };
@@ -1,4 +1,4 @@
1
- /* hash: hrah7 */
1
+ /* hash: n5s4v */
2
2
  :root {
3
3
  }:root {
4
4
  }:root {
@@ -9,7 +9,6 @@
9
9
  /* Hard */
10
10
 
11
11
  /* Up */
12
- --shadow-s-up: 0 0 8px rgba(11, 31, 53, 0.04), 0 -4px 8px rgba(11, 31, 53, 0.08);
13
12
 
14
13
  /* Hard up */
15
14
  }:root {
@@ -33,25 +32,25 @@
33
32
  --modal-m-footer-paddings: var(--gap-xl) var(--gap-4xl) var(--gap-4xl);
34
33
  --modal-l-footer-paddings: var(--gap-xl) var(--gap-6xl) var(--gap-6xl);
35
34
 
36
- /* closer */
37
-
38
35
  /* sticky */
39
36
  --modal-footer-sticky-box-shadow: none;
40
37
  --modal-footer-sticky-background: var(--modal-header-background);
41
38
 
42
39
  /* scroll */
43
- --modal-footer-highlight-box-shadow: var(--shadow-s-up);
40
+ --modal-footer-highlight-box-shadow: none;
44
41
  --modal-footer-highlight-background: var(--color-light-bg-primary);
45
- }.modal__footer_1ydvs {
42
+
43
+ /* mobile */
44
+ }.modal__footer_wjhpf {
46
45
  width: 100%;
47
46
  box-sizing: border-box;
48
47
  transition: box-shadow 0.2s ease, background 0.2s ease;
49
48
  background: var(--modal-header-background);
50
- }.modal__sticky_1ydvs {
49
+ }.modal__sticky_wjhpf {
51
50
  background: var(--modal-footer-sticky-background);
52
51
  box-shadow: var(--modal-footer-sticky-box-shadow);
53
52
  position: sticky;
54
- }.modal__highlighted_1ydvs {
53
+ }.modal__highlighted_wjhpf {
55
54
  background: var(--modal-footer-highlight-background);
56
55
  box-shadow: var(--modal-footer-highlight-box-shadow);
57
56
  }
@@ -354,6 +353,7 @@
354
353
  --color-dark-graphic-primary-alpha-30: rgba(255, 255, 255, 0.3);
355
354
  --color-dark-graphic-primary-alpha-40: rgba(255, 255, 255, 0.4);
356
355
  --color-dark-graphic-primary-alpha-50: rgba(255, 255, 255, 0.5);
356
+ --color-dark-graphic-primary-shade-15: rgb(217, 217, 217);
357
357
  --color-dark-graphic-primary-shade-30: rgb(179, 179, 179);
358
358
  --color-dark-graphic-primary-shade-50: rgb(128, 128, 128);
359
359
  --color-dark-graphic-primary-tint-10: rgb(255, 255, 255);
@@ -417,6 +417,7 @@
417
417
  --color-light-graphic-primary-alpha-30: rgba(11, 31, 53, 0.3);
418
418
  --color-light-graphic-primary-alpha-40: rgba(11, 31, 53, 0.4);
419
419
  --color-light-graphic-primary-alpha-50: rgba(11, 31, 53, 0.5);
420
+ --color-light-graphic-primary-tint-15: rgb(48, 65, 83);
420
421
  --color-light-graphic-primary-tint-30: rgb(84, 98, 114);
421
422
  --color-light-graphic-primary-tint-50: rgb(133, 143, 154);
422
423
  --color-light-graphic-primary-shade-10: rgb(10, 28, 48);
@@ -597,40 +598,43 @@
597
598
  --modal-l-content-no-footer-bottom-padding: var(--gap-6xl);
598
599
  --modal-content-no-header-top-padding: var(--gap-2xl);
599
600
 
600
- /* closer */
601
- --modal-closer-icon: url('https://alfabank.gcdn.co/icons/glyph_cross_m.svg');
602
-
603
601
  /* sticky */
604
602
  --modal-footer-sticky-box-shadow: none;
605
603
  --modal-footer-sticky-background: var(--modal-header-background);
606
604
 
607
605
  /* scroll */
608
- --modal-header-highlight-box-shadow: var(--shadow-s);
606
+ --modal-header-highlight-box-shadow: none;
609
607
  --modal-header-highlight-background: var(--color-light-bg-primary);
610
- --modal-footer-highlight-box-shadow: var(--shadow-s-up);
608
+ --modal-footer-highlight-box-shadow: none;
611
609
  --modal-footer-highlight-background: var(--color-light-bg-primary);
610
+
611
+ /* mobile */
612
+ --modal-header-mobile-top-padding: var(--gap-s);
613
+ --modal-header-mobile-font-size: 18px;
614
+ --modal-header-mobile-line-height: 24px;
615
+ --modal-header-mobile-font-family: var(--font-family-system);
612
616
  }
613
- .modal__footer_vue3z {
617
+ .modal__footer_1ud1n {
614
618
 
615
619
  border-bottom-left-radius: var(--modal-border-radius);
616
620
  border-bottom-right-radius: var(--modal-border-radius);
617
621
  }
618
- .modal__highlighted_vue3z {
622
+ .modal__highlighted_1ud1n {
619
623
  }
620
- .modal__sticky_vue3z {
624
+ .modal__sticky_1ud1n {
621
625
 
622
626
  bottom: calc(var(--modal-vertical-padding) * -1);
623
627
  }
624
- .modal__fullscreen_vue3z {
628
+ .modal__fullscreen_1ud1n {
625
629
  bottom: 0;
626
630
  }
627
- .modal__s_vue3z {
631
+ .modal__s_1ud1n {
628
632
  padding: var(--modal-s-footer-paddings);
629
633
  }
630
- .modal__m_vue3z {
634
+ .modal__m_1ud1n {
631
635
  padding: var(--modal-m-footer-paddings);
632
636
  }
633
- .modal__l_vue3z,
634
- .modal__fullscreen_vue3z {
637
+ .modal__l_1ud1n,
638
+ .modal__fullscreen_1ud1n {
635
639
  padding: var(--modal-l-footer-paddings);
636
640
  }
@@ -1,4 +1,4 @@
1
- /* hash: menod */
1
+ /* hash: rt5c0 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -19,66 +19,66 @@
19
19
 
20
20
  /* paddings */
21
21
 
22
- /* closer */
23
-
24
22
  /* sticky */
25
23
 
26
24
  /* scroll */
25
+
26
+ /* mobile */
27
27
  }
28
- .modal__column_2k8js {
28
+ .modal__column_rfxw4 {
29
29
  display: flex;
30
30
  flex-direction: column
31
31
  }
32
- .modal__column_2k8js > * {
32
+ .modal__column_rfxw4 > * {
33
33
  margin-bottom: var(--modal-footer-default-gap);
34
34
  }
35
- .modal__column_2k8js > *:last-child,
36
- .modal__column_2k8js > *:only-child {
35
+ .modal__column_rfxw4 > *:last-child,
36
+ .modal__column_rfxw4 > *:only-child {
37
37
  margin-bottom: 0;
38
38
  }
39
- .modal__column_2k8js.modal__gap-16_2k8js > * {
39
+ .modal__column_rfxw4.modal__gap-16_rfxw4 > * {
40
40
  margin-bottom: var(--gap-m);
41
41
  }
42
- .modal__column_2k8js.modal__gap-24_2k8js > * {
42
+ .modal__column_rfxw4.modal__gap-24_rfxw4 > * {
43
43
  margin-bottom: var(--gap-xl);
44
44
  }
45
- .modal__column_2k8js.modal__gap-32_2k8js > * {
45
+ .modal__column_rfxw4.modal__gap-32_rfxw4 > * {
46
46
  margin-bottom: var(--gap-2xl);
47
47
  }
48
- .modal__start_2k8js {
48
+ .modal__start_rfxw4 {
49
49
  justify-content: flex-start;
50
50
  }
51
- .modal__center_2k8js {
51
+ .modal__center_rfxw4 {
52
52
  justify-content: center;
53
53
  }
54
- .modal__space-between_2k8js {
54
+ .modal__space-between_rfxw4 {
55
55
  justify-content: space-between
56
56
  }
57
- .modal__space-between_2k8js > * {
57
+ .modal__space-between_rfxw4 > * {
58
58
  flex: 1;
59
59
  }
60
- .modal__start_2k8js,
61
- .modal__center_2k8js,
62
- .modal__space-between_2k8js {
60
+ .modal__start_rfxw4,
61
+ .modal__center_rfxw4,
62
+ .modal__space-between_rfxw4 {
63
63
  display: flex
64
64
  }
65
- .modal__start_2k8js > *, .modal__center_2k8js > *, .modal__space-between_2k8js > * {
65
+ .modal__start_rfxw4 > *, .modal__center_rfxw4 > *, .modal__space-between_rfxw4 > * {
66
66
  margin-right: var(--modal-footer-default-gap);
67
67
  }
68
- .modal__start_2k8js > *:last-child,
69
- .modal__start_2k8js > *:only-child,
70
- .modal__center_2k8js > *:last-child,
71
- .modal__center_2k8js > *:only-child,
72
- .modal__space-between_2k8js > *:last-child,
73
- .modal__space-between_2k8js > *:only-child {
68
+ .modal__start_rfxw4 > *:last-child,
69
+ .modal__start_rfxw4 > *:only-child,
70
+ .modal__center_rfxw4 > *:last-child,
71
+ .modal__center_rfxw4 > *:only-child,
72
+ .modal__space-between_rfxw4 > *:last-child,
73
+ .modal__space-between_rfxw4 > *:only-child {
74
74
  margin-right: 0;
75
75
  }
76
- .modal__start_2k8js.modal__gap-16_2k8js > *, .modal__center_2k8js.modal__gap-16_2k8js > *, .modal__space-between_2k8js.modal__gap-16_2k8js > * {
76
+ .modal__start_rfxw4.modal__gap-16_rfxw4 > *, .modal__center_rfxw4.modal__gap-16_rfxw4 > *, .modal__space-between_rfxw4.modal__gap-16_rfxw4 > * {
77
77
  margin-right: var(--gap-m);
78
78
  }
79
- .modal__start_2k8js.modal__gap-24_2k8js > *, .modal__center_2k8js.modal__gap-24_2k8js > *, .modal__space-between_2k8js.modal__gap-24_2k8js > * {
79
+ .modal__start_rfxw4.modal__gap-24_rfxw4 > *, .modal__center_rfxw4.modal__gap-24_rfxw4 > *, .modal__space-between_rfxw4.modal__gap-24_rfxw4 > * {
80
80
  margin-right: var(--gap-xl);
81
81
  }
82
- .modal__start_2k8js.modal__gap-32_2k8js > *, .modal__center_2k8js.modal__gap-32_2k8js > *, .modal__space-between_2k8js.modal__gap-32_2k8js > * {
82
+ .modal__start_rfxw4.modal__gap-32_rfxw4 > *, .modal__center_rfxw4.modal__gap-32_rfxw4 > *, .modal__space-between_rfxw4.modal__gap-32_rfxw4 > * {
83
83
  margin-right: var(--gap-2xl);
84
84
  }
@@ -1,4 +1,4 @@
1
- /* hash: 7jwkd */
1
+ /* hash: ktzhy */
2
2
  :root {
3
3
  }:root {
4
4
  }:root {
@@ -9,7 +9,6 @@
9
9
  /* Hard */
10
10
 
11
11
  /* Up */
12
- --shadow-s-up: 0 0 8px rgba(11, 31, 53, 0.04), 0 -4px 8px rgba(11, 31, 53, 0.08);
13
12
 
14
13
  /* Hard up */
15
14
  }:root {
@@ -25,25 +24,25 @@
25
24
 
26
25
  /* paddings */
27
26
 
28
- /* closer */
29
-
30
27
  /* sticky */
31
28
  --modal-footer-sticky-box-shadow: none;
32
29
  --modal-footer-sticky-background: var(--modal-header-background);
33
30
 
34
31
  /* scroll */
35
- --modal-footer-highlight-box-shadow: var(--shadow-s-up);
32
+ --modal-footer-highlight-box-shadow: none;
36
33
  --modal-footer-highlight-background: var(--color-light-bg-primary);
37
- }.modal__footer_1ydvs {
34
+
35
+ /* mobile */
36
+ }.modal__footer_wjhpf {
38
37
  width: 100%;
39
38
  box-sizing: border-box;
40
39
  transition: box-shadow 0.2s ease, background 0.2s ease;
41
40
  background: var(--modal-header-background);
42
- }.modal__sticky_1ydvs {
41
+ }.modal__sticky_wjhpf {
43
42
  background: var(--modal-footer-sticky-background);
44
43
  box-shadow: var(--modal-footer-sticky-box-shadow);
45
44
  position: sticky;
46
- }.modal__highlighted_1ydvs {
45
+ }.modal__highlighted_wjhpf {
47
46
  background: var(--modal-footer-highlight-background);
48
47
  box-shadow: var(--modal-footer-highlight-box-shadow);
49
48
  }
@@ -346,6 +345,7 @@
346
345
  --color-dark-graphic-primary-alpha-30: rgba(255, 255, 255, 0.3);
347
346
  --color-dark-graphic-primary-alpha-40: rgba(255, 255, 255, 0.4);
348
347
  --color-dark-graphic-primary-alpha-50: rgba(255, 255, 255, 0.5);
348
+ --color-dark-graphic-primary-shade-15: rgb(217, 217, 217);
349
349
  --color-dark-graphic-primary-shade-30: rgb(179, 179, 179);
350
350
  --color-dark-graphic-primary-shade-50: rgb(128, 128, 128);
351
351
  --color-dark-graphic-primary-tint-10: rgb(255, 255, 255);
@@ -409,6 +409,7 @@
409
409
  --color-light-graphic-primary-alpha-30: rgba(11, 31, 53, 0.3);
410
410
  --color-light-graphic-primary-alpha-40: rgba(11, 31, 53, 0.4);
411
411
  --color-light-graphic-primary-alpha-50: rgba(11, 31, 53, 0.5);
412
+ --color-light-graphic-primary-tint-15: rgb(48, 65, 83);
412
413
  --color-light-graphic-primary-tint-30: rgb(84, 98, 114);
413
414
  --color-light-graphic-primary-tint-50: rgb(133, 143, 154);
414
415
  --color-light-graphic-primary-shade-10: rgb(10, 28, 48);
@@ -589,26 +590,29 @@
589
590
  --modal-l-content-no-footer-bottom-padding: var(--gap-6xl);
590
591
  --modal-content-no-header-top-padding: var(--gap-2xl);
591
592
 
592
- /* closer */
593
- --modal-closer-icon: url('https://alfabank.gcdn.co/icons/glyph_cross_m.svg');
594
-
595
593
  /* sticky */
596
594
  --modal-footer-sticky-box-shadow: none;
597
595
  --modal-footer-sticky-background: var(--modal-header-background);
598
596
 
599
597
  /* scroll */
600
- --modal-header-highlight-box-shadow: var(--shadow-s);
598
+ --modal-header-highlight-box-shadow: none;
601
599
  --modal-header-highlight-background: var(--color-light-bg-primary);
602
- --modal-footer-highlight-box-shadow: var(--shadow-s-up);
600
+ --modal-footer-highlight-box-shadow: none;
603
601
  --modal-footer-highlight-background: var(--color-light-bg-primary);
602
+
603
+ /* mobile */
604
+ --modal-header-mobile-top-padding: var(--gap-s);
605
+ --modal-header-mobile-font-size: 18px;
606
+ --modal-header-mobile-line-height: 24px;
607
+ --modal-header-mobile-font-family: var(--font-family-system);
604
608
  }
605
- .modal__footer_1sge0 {
609
+ .modal__footer_1a25a {
606
610
 
607
611
  padding: var(--gap-xl) var(--gap-m);
608
612
  }
609
- .modal__highlighted_1sge0 {
613
+ .modal__highlighted_1a25a {
610
614
  }
611
- .modal__sticky_1sge0 {
615
+ .modal__sticky_1a25a {
612
616
 
613
617
  bottom: 0;
614
618
  }
@@ -5,23 +5,38 @@ type HeaderProps = {
5
5
  */
6
6
  children?: ReactNode;
7
7
  /**
8
- * Наличие крестика
8
+ * Слот слева
9
9
  */
10
- hasCloser?: boolean;
10
+ leftAddons?: ReactNode;
11
+ /**
12
+ * Компонент крестика
13
+ */
14
+ closer?: ReactNode;
11
15
  /**
12
16
  * Дополнительный класс
13
17
  */
14
18
  className?: string;
19
+ /**
20
+ * Дополнительный класс для аддонов
21
+ */
22
+ addonClassName?: string;
23
+ /**
24
+ * Дополнительный класс для контента
25
+ */
26
+ contentClassName?: string;
15
27
  /**
16
28
  * Заголовок шапки
17
29
  */
18
30
  title?: string;
31
+ /**
32
+ * Выравнивание заголовка
33
+ */
34
+ align?: 'left' | 'right' | 'center';
35
+ trim?: boolean;
19
36
  /**
20
37
  * Фиксирует шапку
21
38
  */
22
39
  sticky?: boolean;
23
40
  };
24
- declare const Header: FC<HeaderProps & {
25
- styles: Record<string, string>;
26
- }>;
41
+ declare const Header: FC<HeaderProps>;
27
42
  export { HeaderProps, Header };
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { HeaderProps } from "./Component";
3
- type HeaderDesktopProps = HeaderProps & {
3
+ type HeaderDesktopProps = Omit<HeaderProps, 'closer'> & {
4
4
  /**
5
5
  * Размер
6
6
  */
@@ -9,6 +9,10 @@ type HeaderDesktopProps = HeaderProps & {
9
9
  * Флаг, что модальное окно открыто на весь экран
10
10
  */
11
11
  fullscreen?: boolean;
12
+ /**
13
+ * Наличие крестика
14
+ */
15
+ hasCloser?: boolean;
12
16
  };
13
17
  declare const HeaderDesktop: FC<HeaderDesktopProps>;
14
18
  export { HeaderDesktopProps, HeaderDesktop };
@@ -1,18 +1,23 @@
1
- import { _ as __rest, a as __assign } from '../../tslib.es6-980e4c5b.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-38b70e5e.js';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/dist/esm';
5
5
  import '../../Context.js';
6
- import '@alfalab/core-components-button/dist/esm';
7
- import '../closer/Component.js';
8
6
  import { Header } from './Component.js';
7
+ import '@alfalab/core-components-icon-button/dist/esm';
8
+ import '@alfalab/icons-glyph/CrossHeavyMIcon';
9
+ import { Closer } from '../closer/Component.js';
9
10
 
10
- var styles = {"header":"modal__header_11dwz modal__header_1u7ld","s":"modal__s_11dwz","m":"modal__m_11dwz","l":"modal__l_11dwz","fullscreen":"modal__fullscreen_11dwz","sticky":"modal__sticky_11dwz modal__sticky_1u7ld","highlighted":"modal__highlighted_11dwz modal__highlighted_1u7ld","content":"modal__content_11dwz modal__content_1u7ld","title":"modal__title_11dwz modal__title_1u7ld"};
11
+ var styles = {"header":"modal__header_1jiyl","content":"modal__content_1jiyl","s":"modal__s_1jiyl","m":"modal__m_1jiyl","l":"modal__l_1jiyl","fullscreen":"modal__fullscreen_1jiyl","sticky":"modal__sticky_1jiyl"};
11
12
  require('./desktop.css')
12
13
 
13
14
  var HeaderDesktop = function (_a) {
14
- var size = _a.size, className = _a.className, fullscreen = _a.fullscreen, restProps = __rest(_a, ["size", "className", "fullscreen"]);
15
- return (React.createElement(Header, __assign({ className: cn(className, size && styles[size], fullscreen && styles.fullscreen), styles: styles }, restProps)));
15
+ var _b;
16
+ var size = _a.size, className = _a.className, contentClassName = _a.contentClassName, fullscreen = _a.fullscreen, hasCloser = _a.hasCloser, sticky = _a.sticky, restProps = __rest(_a, ["size", "className", "contentClassName", "fullscreen", "hasCloser", "sticky"]);
17
+ return (React.createElement(Header, __assign({ className: cn(className, styles.header, size && styles[size], (_b = {},
18
+ _b[styles.fullscreen] = fullscreen,
19
+ _b[styles.sticky] = sticky,
20
+ _b)), contentClassName: cn(styles.content, contentClassName), closer: hasCloser ? React.createElement(Closer, null) : null, sticky: sticky }, restProps)));
16
21
  };
17
22
 
18
23
  export { HeaderDesktop };
@@ -1,27 +1,31 @@
1
- import '../../tslib.es6-980e4c5b.js';
2
1
  import React, { useContext, useEffect } from 'react';
3
2
  import cn from 'classnames';
4
3
  import '@alfalab/core-components-base-modal/dist/esm';
5
4
  import { ModalContext } from '../../Context.js';
6
- import '@alfalab/core-components-button/dist/esm';
7
- import { Closer } from '../closer/Component.js';
5
+
6
+ var styles = {"header":"modal__header_117ge","highlighted":"modal__highlighted_117ge","sticky":"modal__sticky_117ge","hasContent":"modal__hasContent_117ge","content":"modal__content_117ge","title":"modal__title_117ge","addon":"modal__addon_117ge","left":"modal__left_117ge","center":"modal__center_117ge","right":"modal__right_117ge","trim":"modal__trim_117ge"};
7
+ require('./index.css')
8
8
 
9
9
  var Header = function (_a) {
10
- var _b;
11
- var className = _a.className, children = _a.children, title = _a.title, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, sticky = _a.sticky, styles = _a.styles;
12
- var _d = useContext(ModalContext), headerHighlighted = _d.headerHighlighted, setHasHeader = _d.setHasHeader;
10
+ var _b, _c;
11
+ var className = _a.className, addonClassName = _a.addonClassName, contentClassName = _a.contentClassName, leftAddons = _a.leftAddons, children = _a.children, _d = _a.align, align = _d === void 0 ? 'left' : _d, _e = _a.trim, trim = _e === void 0 ? true : _e, title = _a.title, closer = _a.closer, sticky = _a.sticky;
12
+ var _f = useContext(ModalContext), headerHighlighted = _f.headerHighlighted, setHasHeader = _f.setHasHeader;
13
13
  var hasContent = title || Boolean(children);
14
14
  useEffect(function () {
15
15
  setHasHeader(true);
16
16
  }, [setHasHeader]);
17
17
  return (React.createElement("div", { className: cn(styles.header, className, (_b = {},
18
- _b[styles.highlighted] = sticky && headerHighlighted,
18
+ _b[styles.highlighted] = hasContent && sticky && headerHighlighted,
19
19
  _b[styles.sticky] = sticky,
20
+ _b[styles.hasContent] = hasContent,
20
21
  _b)) },
21
- hasContent && (React.createElement("div", { className: styles.content },
22
+ leftAddons && React.createElement("div", { className: cn(styles.addon, addonClassName) }, leftAddons),
23
+ hasContent && (React.createElement("div", { className: cn(styles.content, contentClassName, styles[align], (_c = {},
24
+ _c[styles.trim] = trim,
25
+ _c)) },
22
26
  children,
23
27
  title && React.createElement("div", { className: styles.title }, title))),
24
- hasCloser && React.createElement(Closer, null)));
28
+ closer && React.createElement("div", { className: cn(styles.addon, addonClassName) }, closer)));
25
29
  };
26
30
 
27
31
  export { Header };
@@ -1,5 +1,10 @@
1
1
  import { FC } from 'react';
2
2
  import { HeaderProps } from "./Component";
3
- type HeaderMobileProps = HeaderProps;
3
+ type HeaderMobileProps = Omit<HeaderProps, 'closer'> & {
4
+ /**
5
+ * Наличие крестика
6
+ */
7
+ hasCloser?: boolean;
8
+ };
4
9
  declare const HeaderMobile: FC<HeaderMobileProps>;
5
10
  export { HeaderMobileProps, HeaderMobile };
@@ -1,15 +1,23 @@
1
- import { a as __assign } from '../../tslib.es6-980e4c5b.js';
1
+ import { _ as __rest, a as __assign } from '../../tslib.es6-38b70e5e.js';
2
2
  import React from 'react';
3
- import 'classnames';
3
+ import cn from 'classnames';
4
4
  import '@alfalab/core-components-base-modal/dist/esm';
5
5
  import '../../Context.js';
6
- import '@alfalab/core-components-button/dist/esm';
7
- import '../closer/Component.js';
8
6
  import { Header } from './Component.js';
7
+ import '@alfalab/core-components-icon-button/dist/esm';
8
+ import '@alfalab/icons-glyph/CrossHeavyMIcon';
9
+ import { Closer } from '../closer/Component.js';
10
+ import CrossMIcon from '@alfalab/icons-glyph/CrossMIcon';
9
11
 
10
- var styles = {"header":"modal__header_1i22q modal__header_1u7ld","sticky":"modal__sticky_1i22q modal__sticky_1u7ld","highlighted":"modal__highlighted_1i22q modal__highlighted_1u7ld","content":"modal__content_1i22q modal__content_1u7ld","title":"modal__title_1i22q modal__title_1u7ld"};
12
+ var styles = {"sticky":"modal__sticky_1h82s","content":"modal__content_1h82s"};
11
13
  require('./mobile.css')
12
14
 
13
- var HeaderMobile = function (props) { return React.createElement(Header, __assign({ styles: styles }, props)); };
15
+ var HeaderMobile = function (_a) {
16
+ var _b;
17
+ var className = _a.className, hasCloser = _a.hasCloser, sticky = _a.sticky, contentClassName = _a.contentClassName, restProps = __rest(_a, ["className", "hasCloser", "sticky", "contentClassName"]);
18
+ return (React.createElement(Header, __assign({ className: cn(className, (_b = {},
19
+ _b[styles.sticky] = sticky,
20
+ _b)), contentClassName: cn(styles.content, contentClassName), closer: hasCloser ? React.createElement(Closer, { icon: CrossMIcon, size: 'xs' }) : null, sticky: sticky }, restProps)));
21
+ };
14
22
 
15
23
  export { HeaderMobile };