@alfalab/core-components-modal 6.1.1 → 6.1.3

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 (124) hide show
  1. package/Component.desktop.d.ts +2 -1
  2. package/Component.desktop.js +8 -14
  3. package/Component.js +12 -20
  4. package/Component.mobile.js +8 -14
  5. package/Component.responsive.d.ts +2 -1
  6. package/Component.responsive.js +11 -17
  7. package/Context.js +0 -2
  8. package/ResponsiveContext.js +1 -7
  9. package/components/closer/Component.js +5 -12
  10. package/components/closer/index.css +4 -4
  11. package/components/content/Component.js +5 -12
  12. package/components/content/desktop.css +8 -8
  13. package/components/content/index.css +3 -3
  14. package/components/content/mobile.css +3 -3
  15. package/components/footer/Component.js +6 -13
  16. package/components/footer/desktop.css +9 -9
  17. package/components/footer/index.css +4 -4
  18. package/components/footer/layout.css +25 -25
  19. package/components/footer/mobile.css +3 -3
  20. package/components/header/Component.js +16 -23
  21. package/components/header/desktop.css +17 -17
  22. package/components/header/index.css +15 -15
  23. package/components/header/mobile.css +3 -3
  24. package/cssm/Component.desktop.d.ts +2 -1
  25. package/cssm/Component.desktop.js +8 -14
  26. package/cssm/Component.js +12 -23
  27. package/cssm/Component.mobile.js +8 -14
  28. package/cssm/Component.responsive.d.ts +2 -1
  29. package/cssm/Component.responsive.js +11 -17
  30. package/cssm/Context.js +0 -2
  31. package/cssm/ResponsiveContext.js +1 -7
  32. package/cssm/components/closer/Component.js +5 -13
  33. package/cssm/components/content/Component.js +5 -15
  34. package/cssm/components/footer/Component.js +9 -20
  35. package/cssm/components/header/Component.js +25 -35
  36. package/cssm/desktop.d.ts +1 -0
  37. package/cssm/desktop.js +8 -10
  38. package/cssm/index.js +11 -13
  39. package/cssm/mobile.d.ts +1 -0
  40. package/cssm/mobile.js +8 -10
  41. package/cssm/responsive.d.ts +1 -0
  42. package/cssm/responsive.js +9 -11
  43. package/cssm/{tslib.es6-9682e485.d.ts → tslib.es6-bbd6cd2a.d.ts} +0 -0
  44. package/cssm/{tslib.es6-9682e485.js → tslib.es6-bbd6cd2a.js} +0 -0
  45. package/cssm/utils.js +1 -3
  46. package/desktop.css +9 -9
  47. package/desktop.d.ts +1 -0
  48. package/desktop.js +7 -9
  49. package/esm/Component.desktop.d.ts +2 -1
  50. package/esm/Component.desktop.js +7 -7
  51. package/esm/Component.js +6 -6
  52. package/esm/Component.mobile.js +7 -7
  53. package/esm/Component.responsive.d.ts +2 -1
  54. package/esm/Component.responsive.js +10 -10
  55. package/esm/components/closer/Component.js +3 -3
  56. package/esm/components/closer/index.css +4 -4
  57. package/esm/components/content/Component.js +4 -4
  58. package/esm/components/content/desktop.css +8 -8
  59. package/esm/components/content/index.css +3 -3
  60. package/esm/components/content/mobile.css +3 -3
  61. package/esm/components/footer/Component.js +6 -6
  62. package/esm/components/footer/desktop.css +9 -9
  63. package/esm/components/footer/index.css +4 -4
  64. package/esm/components/footer/layout.css +25 -25
  65. package/esm/components/footer/mobile.css +3 -3
  66. package/esm/components/header/Component.js +11 -11
  67. package/esm/components/header/desktop.css +17 -17
  68. package/esm/components/header/index.css +15 -15
  69. package/esm/components/header/mobile.css +3 -3
  70. package/esm/desktop.css +9 -9
  71. package/esm/desktop.d.ts +1 -0
  72. package/esm/desktop.js +7 -7
  73. package/esm/index.js +8 -8
  74. package/esm/mobile.css +2 -2
  75. package/esm/mobile.d.ts +1 -0
  76. package/esm/mobile.js +7 -7
  77. package/esm/responsive.d.ts +1 -0
  78. package/esm/responsive.js +8 -8
  79. package/esm/transitions.css +8 -8
  80. package/esm/{tslib.es6-ecd4b8f6.d.ts → tslib.es6-3363beeb.d.ts} +0 -0
  81. package/esm/{tslib.es6-ecd4b8f6.js → tslib.es6-3363beeb.js} +0 -0
  82. package/esm/utils.js +1 -1
  83. package/index.js +9 -11
  84. package/mobile.css +2 -2
  85. package/mobile.d.ts +1 -0
  86. package/mobile.js +7 -9
  87. package/modern/Component.desktop.d.ts +2 -1
  88. package/modern/Component.desktop.js +6 -6
  89. package/modern/Component.js +4 -4
  90. package/modern/Component.mobile.js +6 -6
  91. package/modern/Component.responsive.d.ts +2 -1
  92. package/modern/Component.responsive.js +7 -7
  93. package/modern/components/closer/Component.js +2 -2
  94. package/modern/components/closer/index.css +4 -4
  95. package/modern/components/content/Component.js +4 -4
  96. package/modern/components/content/desktop.css +8 -8
  97. package/modern/components/content/index.css +3 -3
  98. package/modern/components/content/mobile.css +3 -3
  99. package/modern/components/footer/Component.js +5 -5
  100. package/modern/components/footer/desktop.css +9 -9
  101. package/modern/components/footer/index.css +4 -4
  102. package/modern/components/footer/layout.css +25 -25
  103. package/modern/components/footer/mobile.css +3 -3
  104. package/modern/components/header/Component.js +8 -8
  105. package/modern/components/header/desktop.css +17 -17
  106. package/modern/components/header/index.css +15 -15
  107. package/modern/components/header/mobile.css +3 -3
  108. package/modern/desktop.css +9 -9
  109. package/modern/desktop.d.ts +1 -0
  110. package/modern/desktop.js +6 -6
  111. package/modern/index.js +7 -7
  112. package/modern/mobile.css +2 -2
  113. package/modern/mobile.d.ts +1 -0
  114. package/modern/mobile.js +6 -6
  115. package/modern/responsive.d.ts +1 -0
  116. package/modern/responsive.js +7 -7
  117. package/modern/transitions.css +8 -8
  118. package/package.json +2 -2
  119. package/responsive.d.ts +1 -0
  120. package/responsive.js +8 -10
  121. package/transitions.css +8 -8
  122. package/{tslib.es6-c81beafb.d.ts → tslib.es6-ac47d707.d.ts} +0 -0
  123. package/{tslib.es6-c81beafb.js → tslib.es6-ac47d707.js} +0 -0
  124. package/utils.js +1 -3
@@ -1,4 +1,4 @@
1
- /* hash: 19szg */
1
+ /* hash: 1o10d */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -25,60 +25,60 @@
25
25
 
26
26
  /* mobile */
27
27
  }
28
- .modal__column_1jooq {
28
+ .modal__column_c3fe1 {
29
29
  display: flex;
30
30
  flex-direction: column
31
31
  }
32
- .modal__column_1jooq > * {
32
+ .modal__column_c3fe1 > * {
33
33
  margin-bottom: var(--modal-footer-default-gap);
34
34
  }
35
- .modal__column_1jooq > *:last-child,
36
- .modal__column_1jooq > *:only-child {
35
+ .modal__column_c3fe1 > *:last-child,
36
+ .modal__column_c3fe1 > *:only-child {
37
37
  margin-bottom: 0;
38
38
  }
39
- .modal__column_1jooq.modal__gap-16_1jooq > * {
39
+ .modal__column_c3fe1.modal__gap-16_c3fe1 > * {
40
40
  margin-bottom: var(--gap-m);
41
41
  }
42
- .modal__column_1jooq.modal__gap-24_1jooq > * {
42
+ .modal__column_c3fe1.modal__gap-24_c3fe1 > * {
43
43
  margin-bottom: var(--gap-xl);
44
44
  }
45
- .modal__column_1jooq.modal__gap-32_1jooq > * {
45
+ .modal__column_c3fe1.modal__gap-32_c3fe1 > * {
46
46
  margin-bottom: var(--gap-2xl);
47
47
  }
48
- .modal__start_1jooq {
48
+ .modal__start_c3fe1 {
49
49
  justify-content: flex-start;
50
50
  }
51
- .modal__center_1jooq {
51
+ .modal__center_c3fe1 {
52
52
  justify-content: center;
53
53
  }
54
- .modal__space-between_1jooq {
54
+ .modal__space-between_c3fe1 {
55
55
  justify-content: space-between
56
56
  }
57
- .modal__space-between_1jooq > * {
57
+ .modal__space-between_c3fe1 > * {
58
58
  flex: 1;
59
59
  }
60
- .modal__start_1jooq,
61
- .modal__center_1jooq,
62
- .modal__space-between_1jooq {
60
+ .modal__start_c3fe1,
61
+ .modal__center_c3fe1,
62
+ .modal__space-between_c3fe1 {
63
63
  display: flex
64
64
  }
65
- .modal__start_1jooq > *, .modal__center_1jooq > *, .modal__space-between_1jooq > * {
65
+ .modal__start_c3fe1 > *, .modal__center_c3fe1 > *, .modal__space-between_c3fe1 > * {
66
66
  margin-right: var(--modal-footer-default-gap);
67
67
  }
68
- .modal__start_1jooq > *:last-child,
69
- .modal__start_1jooq > *:only-child,
70
- .modal__center_1jooq > *:last-child,
71
- .modal__center_1jooq > *:only-child,
72
- .modal__space-between_1jooq > *:last-child,
73
- .modal__space-between_1jooq > *:only-child {
68
+ .modal__start_c3fe1 > *:last-child,
69
+ .modal__start_c3fe1 > *:only-child,
70
+ .modal__center_c3fe1 > *:last-child,
71
+ .modal__center_c3fe1 > *:only-child,
72
+ .modal__space-between_c3fe1 > *:last-child,
73
+ .modal__space-between_c3fe1 > *:only-child {
74
74
  margin-right: 0;
75
75
  }
76
- .modal__start_1jooq.modal__gap-16_1jooq > *, .modal__center_1jooq.modal__gap-16_1jooq > *, .modal__space-between_1jooq.modal__gap-16_1jooq > * {
76
+ .modal__start_c3fe1.modal__gap-16_c3fe1 > *, .modal__center_c3fe1.modal__gap-16_c3fe1 > *, .modal__space-between_c3fe1.modal__gap-16_c3fe1 > * {
77
77
  margin-right: var(--gap-m);
78
78
  }
79
- .modal__start_1jooq.modal__gap-24_1jooq > *, .modal__center_1jooq.modal__gap-24_1jooq > *, .modal__space-between_1jooq.modal__gap-24_1jooq > * {
79
+ .modal__start_c3fe1.modal__gap-24_c3fe1 > *, .modal__center_c3fe1.modal__gap-24_c3fe1 > *, .modal__space-between_c3fe1.modal__gap-24_c3fe1 > * {
80
80
  margin-right: var(--gap-xl);
81
81
  }
82
- .modal__start_1jooq.modal__gap-32_1jooq > *, .modal__center_1jooq.modal__gap-32_1jooq > *, .modal__space-between_1jooq.modal__gap-32_1jooq > * {
82
+ .modal__start_c3fe1.modal__gap-32_c3fe1 > *, .modal__center_c3fe1.modal__gap-32_c3fe1 > *, .modal__space-between_c3fe1.modal__gap-32_c3fe1 > * {
83
83
  margin-right: var(--gap-2xl);
84
84
  }
@@ -1,4 +1,4 @@
1
- /* hash: 124zn */
1
+ /* hash: 1nn8i */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -22,9 +22,9 @@
22
22
 
23
23
  /* mobile */
24
24
  }
25
- .modal__footer_166os {
25
+ .modal__footer_1fccb {
26
26
  padding: var(--gap-m);
27
27
  }
28
- .modal__sticky_166os {
28
+ .modal__sticky_1fccb {
29
29
  bottom: 0;
30
30
  }
@@ -1,25 +1,25 @@
1
1
  import React, { useContext, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
- import '@alfalab/core-components-icon-button/modern';
4
- import '@alfalab/icons-glyph/CrossHeavyMIcon';
5
- import '@alfalab/core-components-base-modal/modern';
3
+ import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
6
4
  import { ModalContext } from '../../Context.js';
7
- import { Closer } from '../closer/Component.js';
8
5
  import { ResponsiveContext } from '../../ResponsiveContext.js';
9
- import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
6
+ import { Closer } from '../closer/Component.js';
7
+ import '@alfalab/core-components-base-modal/modern';
8
+ import '@alfalab/core-components-icon-button/modern';
9
+ import '@alfalab/icons-glyph/CrossHeavyMIcon';
10
10
 
11
11
  const getDataTestId = (dataTestId, element) => {
12
12
  const elementPart = element ? `-${element.toLowerCase()}` : '';
13
13
  return dataTestId ? `${dataTestId}${elementPart}` : undefined;
14
14
  };
15
15
 
16
- var desktopStyles = {"header":"modal__header_1x3lq","content":"modal__content_1x3lq","s":"modal__s_1x3lq","m":"modal__m_1x3lq","l":"modal__l_1x3lq","xl":"modal__xl_1x3lq","fullscreen":"modal__fullscreen_1x3lq","hasContent":"modal__hasContent_1x3lq","sticky":"modal__sticky_1x3lq"};
16
+ const desktopStyles = {"header":"modal__header_15nr1","content":"modal__content_15nr1","s":"modal__s_15nr1","m":"modal__m_15nr1","l":"modal__l_15nr1","xl":"modal__xl_15nr1","fullscreen":"modal__fullscreen_15nr1","hasContent":"modal__hasContent_15nr1","sticky":"modal__sticky_15nr1"};
17
17
  require('./desktop.css')
18
18
 
19
- var styles = {"header":"modal__header_1es3j","hasContent":"modal__hasContent_1es3j","highlighted":"modal__highlighted_1es3j","sticky":"modal__sticky_1es3j","content":"modal__content_1es3j","title":"modal__title_1es3j","addon":"modal__addon_1es3j","closer":"modal__closer_1es3j","left":"modal__left_1es3j","center":"modal__center_1es3j","right":"modal__right_1es3j","trim":"modal__trim_1es3j"};
19
+ const styles = {"header":"modal__header_nc8uo","hasContent":"modal__hasContent_nc8uo","highlighted":"modal__highlighted_nc8uo","sticky":"modal__sticky_nc8uo","content":"modal__content_nc8uo","title":"modal__title_nc8uo","addon":"modal__addon_nc8uo","closer":"modal__closer_nc8uo","left":"modal__left_nc8uo","center":"modal__center_nc8uo","right":"modal__right_nc8uo","trim":"modal__trim_nc8uo"};
20
20
  require('./index.css')
21
21
 
22
- var mobileStyles = {"sticky":"modal__sticky_11rp3","content":"modal__content_11rp3"};
22
+ const mobileStyles = {"sticky":"modal__sticky_sm1k8","content":"modal__content_sm1k8"};
23
23
  require('./mobile.css')
24
24
 
25
25
  const Header = ({ className, addonClassName, contentClassName, leftAddons, children, align = 'left', trim = true, title, hasCloser = true, sticky, dataTestId, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: eoqwt */
1
+ /* hash: gpzw3 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -43,45 +43,45 @@
43
43
 
44
44
  /* mobile */
45
45
  }
46
- .modal__header_1x3lq {
46
+ .modal__header_15nr1 {
47
47
  border-top-left-radius: var(--modal-border-radius);
48
48
  border-top-right-radius: var(--modal-border-radius);
49
49
  }
50
- .modal__content_1x3lq {
50
+ .modal__content_15nr1 {
51
51
  font-weight: var(--modal-header-desktop-font-weight);
52
52
  font-family: var(--modal-header-desktop-font-family);
53
53
  }
54
- .modal__s_1x3lq .modal__content_1x3lq,
55
- .modal__m_1x3lq .modal__content_1x3lq {
54
+ .modal__s_15nr1 .modal__content_15nr1,
55
+ .modal__m_15nr1 .modal__content_15nr1 {
56
56
  padding: var(--modal-s-header-desktop-content-paddings);
57
57
  font-size: var(--modal-s-header-desktop-font-size);
58
58
  line-height: var(--modal-s-header-desktop-line-height);
59
59
  }
60
- .modal__l_1x3lq .modal__content_1x3lq,
61
- .modal__xl_1x3lq .modal__content_1x3lq,
62
- .modal__fullscreen_1x3lq .modal__content_1x3lq {
60
+ .modal__l_15nr1 .modal__content_15nr1,
61
+ .modal__xl_15nr1 .modal__content_15nr1,
62
+ .modal__fullscreen_15nr1 .modal__content_15nr1 {
63
63
  padding: var(--modal-l-header-desktop-content-paddings);
64
64
  font-size: var(--modal-l-header-desktop-font-size);
65
65
  line-height: var(--modal-l-header-desktop-line-height);
66
66
  }
67
- .modal__s_1x3lq,
68
- .modal__m_1x3lq {
67
+ .modal__s_15nr1,
68
+ .modal__m_15nr1 {
69
69
  padding: var(--modal-s-header-paddings)
70
70
  }
71
- .modal__s_1x3lq:not(.modal__hasContent_1x3lq), .modal__m_1x3lq:not(.modal__hasContent_1x3lq) {
71
+ .modal__s_15nr1:not(.modal__hasContent_15nr1), .modal__m_15nr1:not(.modal__hasContent_15nr1) {
72
72
  padding-bottom: 0;
73
73
  }
74
- .modal__l_1x3lq,
75
- .modal__xl_1x3lq,
76
- .modal__fullscreen_1x3lq {
74
+ .modal__l_15nr1,
75
+ .modal__xl_15nr1,
76
+ .modal__fullscreen_15nr1 {
77
77
  padding: var(--gap-xl) var(--gap-xl) var(--gap-m)
78
78
  }
79
- .modal__l_1x3lq:not(.modal__hasContent_1x3lq), .modal__xl_1x3lq:not(.modal__hasContent_1x3lq), .modal__fullscreen_1x3lq:not(.modal__hasContent_1x3lq) {
79
+ .modal__l_15nr1:not(.modal__hasContent_15nr1), .modal__xl_15nr1:not(.modal__hasContent_15nr1), .modal__fullscreen_15nr1:not(.modal__hasContent_15nr1) {
80
80
  padding-bottom: var(--gap-m);
81
81
  }
82
- .modal__sticky_1x3lq {
82
+ .modal__sticky_15nr1 {
83
83
  top: calc(var(--modal-vertical-padding) * -1)
84
84
  }
85
- .modal__sticky_1x3lq.modal__fullscreen_1x3lq {
85
+ .modal__sticky_15nr1.modal__fullscreen_15nr1 {
86
86
  top: 0;
87
87
  }
@@ -1,4 +1,4 @@
1
- /* hash: 16g9m */
1
+ /* hash: s88ph */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -25,7 +25,7 @@
25
25
 
26
26
  /* mobile */
27
27
  }
28
- .modal__header_1es3j {
28
+ .modal__header_nc8uo {
29
29
  width: 100%;
30
30
  box-sizing: border-box;
31
31
  display: flex;
@@ -33,27 +33,27 @@
33
33
  justify-content: space-between;
34
34
  transition: box-shadow 0.2s ease, background 0.2s ease
35
35
  }
36
- .modal__header_1es3j:not(.modal__hasContent_1es3j) {
36
+ .modal__header_nc8uo:not(.modal__hasContent_nc8uo) {
37
37
  pointer-events: none;
38
38
  }
39
- .modal__highlighted_1es3j {
39
+ .modal__highlighted_nc8uo {
40
40
  background: var(--modal-header-highlight-background);
41
41
  box-shadow: var(--modal-header-highlight-box-shadow);
42
42
  }
43
- .modal__sticky_1es3j {
43
+ .modal__sticky_nc8uo {
44
44
  position: sticky;
45
45
  z-index: 1
46
46
  }
47
- .modal__sticky_1es3j.modal__hasContent_1es3j {
47
+ .modal__sticky_nc8uo.modal__hasContent_nc8uo {
48
48
  background: var(--modal-header-background);
49
49
  }
50
- .modal__content_1es3j {
50
+ .modal__content_nc8uo {
51
51
  flex-grow: 1;
52
52
  }
53
- .modal__title_1es3j {
53
+ .modal__title_nc8uo {
54
54
  word-break: break-word;
55
55
  }
56
- .modal__addon_1es3j {
56
+ .modal__addon_nc8uo {
57
57
  min-width: 48px;
58
58
  height: 48px;
59
59
  display: flex;
@@ -61,25 +61,25 @@
61
61
  align-items: center;
62
62
  pointer-events: all;
63
63
  }
64
- .modal__closer_1es3j {
64
+ .modal__closer_nc8uo {
65
65
  margin-left: auto;
66
66
  }
67
- .modal__left_1es3j {
67
+ .modal__left_nc8uo {
68
68
  justify-content: flex-start;
69
69
  text-align: left;
70
70
  }
71
- .modal__center_1es3j {
71
+ .modal__center_nc8uo {
72
72
  justify-content: center;
73
73
  text-align: center;
74
74
  }
75
- .modal__right_1es3j {
75
+ .modal__right_nc8uo {
76
76
  justify-content: flex-end;
77
77
  text-align: right;
78
78
  }
79
- .modal__trim_1es3j {
79
+ .modal__trim_nc8uo {
80
80
  overflow: hidden
81
81
  }
82
- .modal__trim_1es3j .modal__title_1es3j {
82
+ .modal__trim_nc8uo .modal__title_nc8uo {
83
83
  overflow: hidden;
84
84
  white-space: nowrap;
85
85
  text-overflow: ellipsis;
@@ -1,4 +1,4 @@
1
- /* hash: lq72i */
1
+ /* hash: 7y729 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -33,10 +33,10 @@
33
33
  --modal-header-mobile-font-family: var(--font-family-system);
34
34
  --modal-header-mobile-font-weight: bold;
35
35
  }
36
- .modal__sticky_11rp3 {
36
+ .modal__sticky_sm1k8 {
37
37
  top: 0;
38
38
  }
39
- .modal__content_11rp3 {
39
+ .modal__content_sm1k8 {
40
40
  font-size: var(--modal-header-mobile-font-size);
41
41
  line-height: var(--modal-header-mobile-line-height);
42
42
  font-family: var(--modal-header-mobile-font-family);
@@ -1,4 +1,4 @@
1
- /* hash: 1vg9d */
1
+ /* hash: 19y0h */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -31,32 +31,32 @@
31
31
 
32
32
  /* mobile */
33
33
  }
34
- .modal__wrapper_pnenh {
34
+ .modal__wrapper_v7cn3 {
35
35
  padding-top: var(--modal-vertical-padding);
36
36
  padding-bottom: var(--modal-vertical-padding);
37
37
  }
38
- .modal__component_pnenh {
38
+ .modal__component_v7cn3 {
39
39
  width: 100%;
40
40
  max-width: 100%;
41
41
  border-radius: var(--modal-border-radius);
42
42
  }
43
- .modal__fullscreen_pnenh {
43
+ .modal__fullscreen_v7cn3 {
44
44
  padding-top: 0;
45
45
  padding-bottom: 0
46
46
  }
47
- .modal__fullscreen_pnenh .modal__component_pnenh {
47
+ .modal__fullscreen_v7cn3 .modal__component_v7cn3 {
48
48
  flex: 1;
49
49
  border-radius: 0;
50
50
  }
51
- .modal__s_pnenh {
51
+ .modal__s_v7cn3 {
52
52
  width: var(--modal-s-width);
53
53
  }
54
- .modal__m_pnenh {
54
+ .modal__m_v7cn3 {
55
55
  width: var(--modal-m-width);
56
56
  }
57
- .modal__l_pnenh {
57
+ .modal__l_v7cn3 {
58
58
  width: var(--modal-l-width);
59
59
  }
60
- .modal__xl_pnenh {
60
+ .modal__xl_v7cn3 {
61
61
  width: var(--modal-xl-width);
62
62
  }
@@ -1 +1,2 @@
1
1
  export * from "./Component.desktop";
2
+ export {};
package/modern/desktop.js CHANGED
@@ -1,15 +1,15 @@
1
+ export { ModalDesktop } from './Component.desktop.js';
1
2
  import 'react';
3
+ import './components/closer/Component.js';
2
4
  import 'classnames';
3
5
  import '@alfalab/core-components-icon-button/modern';
4
6
  import '@alfalab/icons-glyph/CrossHeavyMIcon';
5
- import '@alfalab/core-components-base-modal/modern';
6
7
  import './Context.js';
7
- import './components/closer/Component.js';
8
- import './ResponsiveContext.js';
8
+ import '@alfalab/core-components-base-modal/modern';
9
9
  import './components/content/Component.js';
10
+ import './ResponsiveContext.js';
10
11
  import './components/footer/Component.js';
11
- import '@alfalab/icons-glyph/CrossMIcon';
12
12
  import './components/header/Component.js';
13
- import 'react-merge-refs';
13
+ import '@alfalab/icons-glyph/CrossMIcon';
14
14
  import './Component.js';
15
- export { ModalDesktop } from './Component.desktop.js';
15
+ import 'react-merge-refs';
package/modern/index.js CHANGED
@@ -1,16 +1,16 @@
1
+ export { ModalResponsive } from './Component.responsive.js';
2
+ export { ModalContext } from './Context.js';
1
3
  import 'react';
4
+ import '@alfalab/hooks';
5
+ import './components/closer/Component.js';
2
6
  import 'classnames';
3
7
  import '@alfalab/core-components-icon-button/modern';
4
8
  import '@alfalab/icons-glyph/CrossHeavyMIcon';
5
9
  import '@alfalab/core-components-base-modal/modern';
6
- export { ModalContext } from './Context.js';
7
- import './components/closer/Component.js';
8
- import './ResponsiveContext.js';
9
10
  import './components/content/Component.js';
11
+ import './ResponsiveContext.js';
10
12
  import './components/footer/Component.js';
11
- import '@alfalab/icons-glyph/CrossMIcon';
12
13
  import './components/header/Component.js';
13
- import 'react-merge-refs';
14
+ import '@alfalab/icons-glyph/CrossMIcon';
14
15
  import './Component.js';
15
- import '@alfalab/hooks';
16
- export { ModalResponsive } from './Component.responsive.js';
16
+ import 'react-merge-refs';
package/modern/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1pehs */
1
+ /* hash: 1b6gv */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -19,7 +19,7 @@
19
19
 
20
20
  /* mobile */
21
21
  }
22
- .modal__component_os6es {
22
+ .modal__component_1jtqn {
23
23
  flex: 1;
24
24
  width: 100%;
25
25
  }
@@ -1 +1,2 @@
1
1
  export * from "./Component.mobile";
2
+ export {};
package/modern/mobile.js CHANGED
@@ -1,15 +1,15 @@
1
+ export { ModalMobile } from './Component.mobile.js';
1
2
  import 'react';
3
+ import './components/closer/Component.js';
2
4
  import 'classnames';
3
5
  import '@alfalab/core-components-icon-button/modern';
4
6
  import '@alfalab/icons-glyph/CrossHeavyMIcon';
5
- import '@alfalab/core-components-base-modal/modern';
6
7
  import './Context.js';
7
- import './components/closer/Component.js';
8
- import './ResponsiveContext.js';
8
+ import '@alfalab/core-components-base-modal/modern';
9
9
  import './components/content/Component.js';
10
+ import './ResponsiveContext.js';
10
11
  import './components/footer/Component.js';
11
- import '@alfalab/icons-glyph/CrossMIcon';
12
12
  import './components/header/Component.js';
13
- import 'react-merge-refs';
13
+ import '@alfalab/icons-glyph/CrossMIcon';
14
14
  import './Component.js';
15
- export { ModalMobile } from './Component.mobile.js';
15
+ import 'react-merge-refs';
@@ -1 +1,2 @@
1
1
  export * from "./Component.responsive";
2
+ export {};
@@ -1,16 +1,16 @@
1
+ export { ModalResponsive } from './Component.responsive.js';
1
2
  import 'react';
3
+ import '@alfalab/hooks';
4
+ import './components/closer/Component.js';
2
5
  import 'classnames';
3
6
  import '@alfalab/core-components-icon-button/modern';
4
7
  import '@alfalab/icons-glyph/CrossHeavyMIcon';
5
- import '@alfalab/core-components-base-modal/modern';
6
8
  import './Context.js';
7
- import './components/closer/Component.js';
8
- import './ResponsiveContext.js';
9
+ import '@alfalab/core-components-base-modal/modern';
9
10
  import './components/content/Component.js';
11
+ import './ResponsiveContext.js';
10
12
  import './components/footer/Component.js';
11
- import '@alfalab/icons-glyph/CrossMIcon';
12
13
  import './components/header/Component.js';
13
- import 'react-merge-refs';
14
+ import '@alfalab/icons-glyph/CrossMIcon';
14
15
  import './Component.js';
15
- import '@alfalab/hooks';
16
- export { ModalResponsive } from './Component.responsive.js';
16
+ import 'react-merge-refs';
@@ -1,24 +1,24 @@
1
- /* hash: 1qyeb */
2
- .modal__appear_13ff3,
3
- .modal__enter_13ff3 {
1
+ /* hash: 1cqdf */
2
+ .modal__appear_1ygzc,
3
+ .modal__enter_1ygzc {
4
4
  opacity: 0;
5
5
  transform: translateY(15px);
6
6
  }
7
7
 
8
- .modal__appearActive_13ff3,
9
- .modal__enterActive_13ff3 {
8
+ .modal__appearActive_1ygzc,
9
+ .modal__enterActive_1ygzc {
10
10
  opacity: 1;
11
11
  transform: translateY(0);
12
12
  transition: opacity 200ms ease-in, transform 200ms ease-in;
13
13
  }
14
14
 
15
- .modal__exit_13ff3 {
15
+ .modal__exit_1ygzc {
16
16
  opacity: 1;
17
17
  transform: translateY(0);
18
18
  }
19
19
 
20
- .modal__exitActive_13ff3,
21
- .modal__exitDone_13ff3 {
20
+ .modal__exitActive_1ygzc,
21
+ .modal__exitDone_1ygzc {
22
22
  opacity: 0;
23
23
  transform: translateY(15px);
24
24
  transition: opacity 200ms ease-out, transform 200ms ease-out;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-modal",
3
- "version": "6.1.1",
3
+ "version": "6.1.3",
4
4
  "description": "Modal component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -16,7 +16,7 @@
16
16
  "@alfalab/core-components-base-modal": "^5.0.6",
17
17
  "@alfalab/core-components-button": "^7.0.1",
18
18
  "@alfalab/core-components-icon-button": "^6.0.1",
19
- "@alfalab/core-components-mq": "^4.0.1",
19
+ "@alfalab/core-components-mq": "^4.1.0",
20
20
  "@alfalab/icons-glyph": "^2.71.0",
21
21
  "classnames": "^2.3.1",
22
22
  "react-transition-group": "^4.4.1"
package/responsive.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./Component.responsive";
2
+ export {};
package/responsive.js CHANGED
@@ -1,24 +1,22 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- require('./tslib.es6-c81beafb.js');
3
+ var Component_responsive = require('./Component.responsive.js');
4
+ require('./tslib.es6-ac47d707.js');
6
5
  require('react');
6
+ require('@alfalab/hooks');
7
+ require('./components/closer/Component.js');
7
8
  require('classnames');
8
9
  require('@alfalab/core-components-icon-button');
9
10
  require('@alfalab/icons-glyph/CrossHeavyMIcon');
10
- require('@alfalab/core-components-base-modal');
11
11
  require('./Context.js');
12
- require('./components/closer/Component.js');
13
- require('./ResponsiveContext.js');
12
+ require('@alfalab/core-components-base-modal');
14
13
  require('./components/content/Component.js');
14
+ require('./ResponsiveContext.js');
15
15
  require('./components/footer/Component.js');
16
- require('@alfalab/icons-glyph/CrossMIcon');
17
16
  require('./components/header/Component.js');
18
- require('react-merge-refs');
17
+ require('@alfalab/icons-glyph/CrossMIcon');
19
18
  require('./Component.js');
20
- require('@alfalab/hooks');
21
- var Component_responsive = require('./Component.responsive.js');
19
+ require('react-merge-refs');
22
20
 
23
21
 
24
22
 
package/transitions.css CHANGED
@@ -1,24 +1,24 @@
1
- /* hash: 1qyeb */
2
- .modal__appear_13ff3,
3
- .modal__enter_13ff3 {
1
+ /* hash: 1cqdf */
2
+ .modal__appear_1ygzc,
3
+ .modal__enter_1ygzc {
4
4
  opacity: 0;
5
5
  transform: translateY(15px);
6
6
  }
7
7
 
8
- .modal__appearActive_13ff3,
9
- .modal__enterActive_13ff3 {
8
+ .modal__appearActive_1ygzc,
9
+ .modal__enterActive_1ygzc {
10
10
  opacity: 1;
11
11
  transform: translateY(0);
12
12
  transition: opacity 200ms ease-in, transform 200ms ease-in;
13
13
  }
14
14
 
15
- .modal__exit_13ff3 {
15
+ .modal__exit_1ygzc {
16
16
  opacity: 1;
17
17
  transform: translateY(0);
18
18
  }
19
19
 
20
- .modal__exitActive_13ff3,
21
- .modal__exitDone_13ff3 {
20
+ .modal__exitActive_1ygzc,
21
+ .modal__exitDone_1ygzc {
22
22
  opacity: 0;
23
23
  transform: translateY(15px);
24
24
  transition: opacity 200ms ease-out, transform 200ms ease-out;
File without changes
package/utils.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  function isScrolledToTop(target) {
6
4
  return target.scrollTop === 0;
7
5
  }
@@ -42,7 +40,7 @@ var handleContainer = function (container) {
42
40
  });
43
41
  // Вычисляем стили, чтобы получить реальный `padding` c шириной сколлбара
44
42
  // eslint-disable-next-line no-param-reassign
45
- container.style.paddingRight = getPaddingRight(container) + scrollbarSize + "px";
43
+ container.style.paddingRight = "".concat(getPaddingRight(container) + scrollbarSize, "px");
46
44
  }
47
45
  var parent = container.parentElement;
48
46
  var scrollContainer =