@alfalab/core-components-universal-modal 3.2.3 → 3.2.4-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 (165) hide show
  1. package/components/base-content/index.css +1 -1
  2. package/components/base-content/index.module.css.js +1 -1
  3. package/components/base-footer/index.css +3 -3
  4. package/components/base-footer/index.module.css.js +1 -1
  5. package/components/base-header/index.css +4 -4
  6. package/components/base-header/index.module.css.js +1 -1
  7. package/cssm/desktop/components/center-modal/center-modal.js +1 -1
  8. package/cssm/desktop/components/center-modal/center-modal.js.map +1 -1
  9. package/cssm/desktop/components/header/desktop.module.css +11 -6
  10. package/cssm/desktop/components/side-modal/side-modal.js +1 -1
  11. package/cssm/desktop/components/side-modal/side-modal.js.map +1 -1
  12. package/cssm/mobile/components/header/index.module.css +9 -6
  13. package/desktop/components/center-modal/center-modal.js +1 -1
  14. package/desktop/components/center-modal/center-modal.js.map +1 -1
  15. package/desktop/components/center-modal/index.css +814 -814
  16. package/desktop/components/center-modal/index.module.css.js +1 -1
  17. package/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
  18. package/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  19. package/desktop/components/center-modal/transitions/transitions.css +7 -7
  20. package/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  21. package/desktop/components/footer/desktop.css +1 -1
  22. package/desktop/components/footer/desktop.module.css.js +1 -1
  23. package/desktop/components/footer/layout.css +9 -9
  24. package/desktop/components/footer/layout.module.css.js +1 -1
  25. package/desktop/components/header/desktop.css +16 -11
  26. package/desktop/components/header/desktop.module.css.js +1 -1
  27. package/desktop/components/modal-content/modal-content.css +4 -4
  28. package/desktop/components/modal-content/modal-content.module.css.js +1 -1
  29. package/desktop/components/side-modal/index.css +816 -816
  30. package/desktop/components/side-modal/index.module.css.js +1 -1
  31. package/desktop/components/side-modal/side-modal.js +1 -1
  32. package/desktop/components/side-modal/side-modal.js.map +1 -1
  33. package/desktop/components/side-modal/transitions/transitions.css +71 -71
  34. package/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  35. package/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
  36. package/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  37. package/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
  38. package/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  39. package/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  40. package/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  41. package/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
  42. package/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  43. package/esm/components/base-content/index.css +1 -1
  44. package/esm/components/base-content/index.module.css.js +1 -1
  45. package/esm/components/base-footer/index.css +3 -3
  46. package/esm/components/base-footer/index.module.css.js +1 -1
  47. package/esm/components/base-header/index.css +4 -4
  48. package/esm/components/base-header/index.module.css.js +1 -1
  49. package/esm/desktop/components/center-modal/center-modal.js +1 -1
  50. package/esm/desktop/components/center-modal/center-modal.js.map +1 -1
  51. package/esm/desktop/components/center-modal/index.css +814 -814
  52. package/esm/desktop/components/center-modal/index.module.css.js +1 -1
  53. package/esm/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
  54. package/esm/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  55. package/esm/desktop/components/center-modal/transitions/transitions.css +7 -7
  56. package/esm/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  57. package/esm/desktop/components/footer/desktop.css +1 -1
  58. package/esm/desktop/components/footer/desktop.module.css.js +1 -1
  59. package/esm/desktop/components/footer/layout.css +9 -9
  60. package/esm/desktop/components/footer/layout.module.css.js +1 -1
  61. package/esm/desktop/components/header/desktop.css +16 -11
  62. package/esm/desktop/components/header/desktop.module.css.js +1 -1
  63. package/esm/desktop/components/modal-content/modal-content.css +4 -4
  64. package/esm/desktop/components/modal-content/modal-content.module.css.js +1 -1
  65. package/esm/desktop/components/side-modal/index.css +816 -816
  66. package/esm/desktop/components/side-modal/index.module.css.js +1 -1
  67. package/esm/desktop/components/side-modal/side-modal.js +1 -1
  68. package/esm/desktop/components/side-modal/side-modal.js.map +1 -1
  69. package/esm/desktop/components/side-modal/transitions/transitions.css +71 -71
  70. package/esm/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  71. package/esm/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
  72. package/esm/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  73. package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
  74. package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  75. package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  76. package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  77. package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
  78. package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  79. package/esm/mobile/components/content/index.css +3 -3
  80. package/esm/mobile/components/content/index.module.css.js +1 -1
  81. package/esm/mobile/components/footer/index.css +2 -2
  82. package/esm/mobile/components/footer/index.module.css.js +1 -1
  83. package/esm/mobile/components/footer/layout.mobile.css +9 -9
  84. package/esm/mobile/components/footer/layout.mobile.module.css.js +1 -1
  85. package/esm/mobile/components/header/index.css +12 -9
  86. package/esm/mobile/components/header/index.module.css.js +1 -1
  87. package/esm/mobile/mobile.css +3 -3
  88. package/esm/mobile/mobile.module.css.js +1 -1
  89. package/esm/mobile/transitions/right-side-transitions.mobile.css +7 -7
  90. package/esm/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  91. package/esm/mobile/transitions/transitions.mobile.css +7 -7
  92. package/esm/mobile/transitions/transitions.mobile.module.css.js +1 -1
  93. package/mobile/components/content/index.css +3 -3
  94. package/mobile/components/content/index.module.css.js +1 -1
  95. package/mobile/components/footer/index.css +2 -2
  96. package/mobile/components/footer/index.module.css.js +1 -1
  97. package/mobile/components/footer/layout.mobile.css +9 -9
  98. package/mobile/components/footer/layout.mobile.module.css.js +1 -1
  99. package/mobile/components/header/index.css +12 -9
  100. package/mobile/components/header/index.module.css.js +1 -1
  101. package/mobile/mobile.css +3 -3
  102. package/mobile/mobile.module.css.js +1 -1
  103. package/mobile/transitions/right-side-transitions.mobile.css +7 -7
  104. package/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  105. package/mobile/transitions/transitions.mobile.css +7 -7
  106. package/mobile/transitions/transitions.mobile.module.css.js +1 -1
  107. package/modern/components/base-content/index.css +1 -1
  108. package/modern/components/base-content/index.module.css.js +1 -1
  109. package/modern/components/base-footer/index.css +3 -3
  110. package/modern/components/base-footer/index.module.css.js +1 -1
  111. package/modern/components/base-header/index.css +4 -4
  112. package/modern/components/base-header/index.module.css.js +1 -1
  113. package/modern/desktop/components/center-modal/center-modal.js +1 -1
  114. package/modern/desktop/components/center-modal/center-modal.js.map +1 -1
  115. package/modern/desktop/components/center-modal/index.css +814 -814
  116. package/modern/desktop/components/center-modal/index.module.css.js +1 -1
  117. package/modern/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
  118. package/modern/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  119. package/modern/desktop/components/center-modal/transitions/transitions.css +7 -7
  120. package/modern/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  121. package/modern/desktop/components/footer/desktop.css +1 -1
  122. package/modern/desktop/components/footer/desktop.module.css.js +1 -1
  123. package/modern/desktop/components/footer/layout.css +9 -9
  124. package/modern/desktop/components/footer/layout.module.css.js +1 -1
  125. package/modern/desktop/components/header/desktop.css +16 -11
  126. package/modern/desktop/components/header/desktop.module.css.js +1 -1
  127. package/modern/desktop/components/modal-content/modal-content.css +4 -4
  128. package/modern/desktop/components/modal-content/modal-content.module.css.js +1 -1
  129. package/modern/desktop/components/side-modal/index.css +816 -816
  130. package/modern/desktop/components/side-modal/index.module.css.js +1 -1
  131. package/modern/desktop/components/side-modal/side-modal.js +1 -1
  132. package/modern/desktop/components/side-modal/side-modal.js.map +1 -1
  133. package/modern/desktop/components/side-modal/transitions/transitions.css +71 -71
  134. package/modern/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  135. package/modern/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
  136. package/modern/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  137. package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
  138. package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  139. package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  140. package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  141. package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
  142. package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  143. package/modern/mobile/components/content/index.css +3 -3
  144. package/modern/mobile/components/content/index.module.css.js +1 -1
  145. package/modern/mobile/components/footer/index.css +2 -2
  146. package/modern/mobile/components/footer/index.module.css.js +1 -1
  147. package/modern/mobile/components/footer/layout.mobile.css +9 -9
  148. package/modern/mobile/components/footer/layout.mobile.module.css.js +1 -1
  149. package/modern/mobile/components/header/index.css +12 -9
  150. package/modern/mobile/components/header/index.module.css.js +1 -1
  151. package/modern/mobile/mobile.css +3 -3
  152. package/modern/mobile/mobile.module.css.js +1 -1
  153. package/modern/mobile/transitions/right-side-transitions.mobile.css +7 -7
  154. package/modern/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  155. package/modern/mobile/transitions/transitions.mobile.css +7 -7
  156. package/modern/mobile/transitions/transitions.mobile.module.css.js +1 -1
  157. package/moderncssm/desktop/components/center-modal/center-modal.js +1 -1
  158. package/moderncssm/desktop/components/center-modal/center-modal.js.map +1 -1
  159. package/moderncssm/desktop/components/header/desktop.module.css +8 -4
  160. package/moderncssm/desktop/components/side-modal/side-modal.js +1 -1
  161. package/moderncssm/desktop/components/side-modal/side-modal.js.map +1 -1
  162. package/moderncssm/mobile/components/header/index.module.css +6 -4
  163. package/package.json +9 -9
  164. package/src/desktop/components/center-modal/center-modal.tsx +1 -1
  165. package/src/desktop/components/side-modal/side-modal.tsx +1 -1
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"footer":"universal-modal__footer_8mmqm","sticky":"universal-modal__sticky_8mmqm"};
3
+ var styles = {"footer":"universal-modal__footer_19e2o","sticky":"universal-modal__sticky_19e2o"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,25 +1,25 @@
1
1
  :root {
2
2
  --gap-8: 8px;
3
3
  }
4
- .universal-modal__column_1dpe5 {
4
+ .universal-modal__column_13kgf {
5
5
  flex-direction: column;
6
6
  }
7
- .universal-modal__start_1dpe5 {
7
+ .universal-modal__start_13kgf {
8
8
  justify-content: flex-start;
9
9
  }
10
- .universal-modal__center_1dpe5 {
10
+ .universal-modal__center_13kgf {
11
11
  justify-content: center;
12
12
  }
13
- .universal-modal__space-between_1dpe5 {
13
+ .universal-modal__space-between_13kgf {
14
14
  justify-content: space-between;
15
15
  }
16
- .universal-modal__space-between_1dpe5 > * {
16
+ .universal-modal__space-between_13kgf > * {
17
17
  flex: 1;
18
18
  }
19
- .universal-modal__start_1dpe5,
20
- .universal-modal__center_1dpe5,
21
- .universal-modal__space-between_1dpe5,
22
- .universal-modal__column_1dpe5 {
19
+ .universal-modal__start_13kgf,
20
+ .universal-modal__center_13kgf,
21
+ .universal-modal__space-between_13kgf,
22
+ .universal-modal__column_13kgf {
23
23
  display: flex;
24
24
  gap: var(--gap-8);
25
25
  }
@@ -1,6 +1,6 @@
1
1
  import './layout.mobile.css';
2
2
 
3
- var layoutStylesMobile = {"column":"universal-modal__column_1dpe5","start":"universal-modal__start_1dpe5","center":"universal-modal__center_1dpe5","space-between":"universal-modal__space-between_1dpe5"};
3
+ var layoutStylesMobile = {"column":"universal-modal__column_13kgf","start":"universal-modal__start_13kgf","center":"universal-modal__center_13kgf","space-between":"universal-modal__space-between_13kgf"};
4
4
 
5
5
  export { layoutStylesMobile as default };
6
6
  //# sourceMappingURL=layout.mobile.module.css.js.map
@@ -6,25 +6,28 @@
6
6
  --gap-16: 16px;
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
- .universal-modal__header_wynw4 {
13
+ .universal-modal__header_w3y7l {
13
14
  padding: var(--gap-8) var(--gap-4);
14
15
  }
15
- .universal-modal__content_wynw4 {
16
+ .universal-modal__content_w3y7l {
16
17
  font-size: 20px;
17
18
  line-height: 28px;
18
- font-weight: 600;
19
- font-family: var(--font-family-system);
19
+ font-weight: 500;
20
+ letter-spacing: -0.15px;
21
+ font-family: var(--font-family-alfasans);
20
22
  padding: 0 var(--gap-12);
21
23
  min-height: 40px;
22
24
  justify-content: center;
23
25
  }
24
- .universal-modal__bottomAddons_wynw4 {
26
+ .universal-modal__bottomAddons_w3y7l {
25
27
  font-size: 20px;
26
28
  line-height: 28px;
27
- font-weight: 600;
28
- font-family: var(--font-family-system);
29
+ font-weight: 500;
30
+ letter-spacing: -0.15px;
31
+ font-family: var(--font-family-alfasans);
29
32
  padding: var(--gap-6) var(--gap-16);
30
33
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var mobileStyles = {"header":"universal-modal__header_wynw4","content":"universal-modal__content_wynw4","bottomAddons":"universal-modal__bottomAddons_wynw4"};
3
+ var mobileStyles = {"header":"universal-modal__header_w3y7l","content":"universal-modal__content_w3y7l","bottomAddons":"universal-modal__bottomAddons_w3y7l"};
4
4
 
5
5
  export { mobileStyles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,7 +1,7 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
3
  }
4
- .universal-modal__component_1cjtb {
4
+ .universal-modal__component_zapyi {
5
5
  top: var(--gap-0);
6
6
  height: 100%;
7
7
  width: 100%;
@@ -11,10 +11,10 @@
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  }
14
- .universal-modal__component_1cjtb .universal-modal__content_1cjtb {
14
+ .universal-modal__component_zapyi .universal-modal__content_zapyi {
15
15
  height: auto;
16
16
  }
17
- .universal-modal__component_1cjtb.universal-modal__component_1cjtb {
17
+ .universal-modal__component_zapyi.universal-modal__component_zapyi {
18
18
  position: fixed;
19
19
  flex: 1;
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import './mobile.css';
2
2
 
3
- var styles = {"component":"universal-modal__component_1cjtb","content":"universal-modal__content_1cjtb"};
3
+ var styles = {"component":"universal-modal__component_zapyi","content":"universal-modal__content_zapyi"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=mobile.module.css.js.map
@@ -1,18 +1,18 @@
1
- .universal-modal__appear_17rcc,
2
- .universal-modal__enter_17rcc {
1
+ .universal-modal__appear_3drbj,
2
+ .universal-modal__enter_3drbj {
3
3
  transform: translateX(100%);
4
4
  }
5
- .universal-modal__appearActive_17rcc,
6
- .universal-modal__enterActive_17rcc {
5
+ .universal-modal__appearActive_3drbj,
6
+ .universal-modal__enterActive_3drbj {
7
7
  transform: translateX(0);
8
8
  transition: transform 280ms ease-in-out;
9
9
  transition-delay: 80ms;
10
10
  }
11
- .universal-modal__exit_17rcc {
11
+ .universal-modal__exit_3drbj {
12
12
  transform: translateX(0);
13
13
  }
14
- .universal-modal__exitActive_17rcc,
15
- .universal-modal__exitDone_17rcc {
14
+ .universal-modal__exitActive_3drbj,
15
+ .universal-modal__exitDone_3drbj {
16
16
  transform: translateX(100%);
17
17
  transition: transform 280ms ease-in-out;
18
18
  }
@@ -1,6 +1,6 @@
1
1
  import './right-side-transitions.mobile.css';
2
2
 
3
- var rightSideTransitions = {"appear":"universal-modal__appear_17rcc","enter":"universal-modal__enter_17rcc","appearActive":"universal-modal__appearActive_17rcc","enterActive":"universal-modal__enterActive_17rcc","exit":"universal-modal__exit_17rcc","exitActive":"universal-modal__exitActive_17rcc","exitDone":"universal-modal__exitDone_17rcc"};
3
+ var rightSideTransitions = {"appear":"universal-modal__appear_3drbj","enter":"universal-modal__enter_3drbj","appearActive":"universal-modal__appearActive_3drbj","enterActive":"universal-modal__enterActive_3drbj","exit":"universal-modal__exit_3drbj","exitActive":"universal-modal__exitActive_3drbj","exitDone":"universal-modal__exitDone_3drbj"};
4
4
 
5
5
  export { rightSideTransitions as default };
6
6
  //# sourceMappingURL=right-side-transitions.mobile.module.css.js.map
@@ -1,11 +1,11 @@
1
- .universal-modal__appear_1qtjm,
2
- .universal-modal__enter_1qtjm {
1
+ .universal-modal__appear_1dft7,
2
+ .universal-modal__enter_1dft7 {
3
3
  opacity: 0;
4
4
  transform: translateY(15px);
5
5
  }
6
6
 
7
- .universal-modal__appearActive_1qtjm,
8
- .universal-modal__enterActive_1qtjm {
7
+ .universal-modal__appearActive_1dft7,
8
+ .universal-modal__enterActive_1dft7 {
9
9
  opacity: 1;
10
10
  transform: translateY(0);
11
11
  transition:
@@ -13,13 +13,13 @@
13
13
  transform 200ms ease-in;
14
14
  }
15
15
 
16
- .universal-modal__exit_1qtjm {
16
+ .universal-modal__exit_1dft7 {
17
17
  opacity: 1;
18
18
  transform: translateY(0);
19
19
  }
20
20
 
21
- .universal-modal__exitActive_1qtjm,
22
- .universal-modal__exitDone_1qtjm {
21
+ .universal-modal__exitActive_1dft7,
22
+ .universal-modal__exitDone_1dft7 {
23
23
  opacity: 0;
24
24
  transform: translateY(15px);
25
25
  transition:
@@ -1,6 +1,6 @@
1
1
  import './transitions.mobile.css';
2
2
 
3
- var transitions = {"appear":"universal-modal__appear_1qtjm","enter":"universal-modal__enter_1qtjm","appearActive":"universal-modal__appearActive_1qtjm","enterActive":"universal-modal__enterActive_1qtjm","exit":"universal-modal__exit_1qtjm","exitActive":"universal-modal__exitActive_1qtjm","exitDone":"universal-modal__exitDone_1qtjm"};
3
+ var transitions = {"appear":"universal-modal__appear_1dft7","enter":"universal-modal__enter_1dft7","appearActive":"universal-modal__appearActive_1dft7","enterActive":"universal-modal__enterActive_1dft7","exit":"universal-modal__exit_1dft7","exitActive":"universal-modal__exitActive_1dft7","exitDone":"universal-modal__exitDone_1dft7"};
4
4
 
5
5
  export { transitions as default };
6
6
  //# sourceMappingURL=transitions.mobile.module.css.js.map
@@ -2,12 +2,12 @@
2
2
  --gap-0: 0px;
3
3
  --gap-20: 20px;
4
4
  }
5
- .universal-modal__content_e6fu9 {
5
+ .universal-modal__content_1218c {
6
6
  padding: var(--gap-20);
7
7
  }
8
- .universal-modal__content_e6fu9.universal-modal__withHeader_e6fu9 {
8
+ .universal-modal__content_1218c.universal-modal__withHeader_1218c {
9
9
  padding-top: var(--gap-0);
10
10
  }
11
- .universal-modal__content_e6fu9.universal-modal__withFooter_e6fu9 {
11
+ .universal-modal__content_1218c.universal-modal__withFooter_1218c {
12
12
  padding-bottom: var(--gap-0);
13
13
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"content":"universal-modal__content_e6fu9","withHeader":"universal-modal__withHeader_e6fu9","withFooter":"universal-modal__withFooter_e6fu9"};
5
+ var styles = {"content":"universal-modal__content_1218c","withHeader":"universal-modal__withHeader_1218c","withFooter":"universal-modal__withFooter_1218c"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -2,9 +2,9 @@
2
2
  --gap-0: 0px;
3
3
  --gap-20: 20px;
4
4
  }
5
- .universal-modal__footer_8mmqm {
5
+ .universal-modal__footer_19e2o {
6
6
  padding: var(--gap-20);
7
7
  }
8
- .universal-modal__sticky_8mmqm {
8
+ .universal-modal__sticky_19e2o {
9
9
  bottom: var(--gap-0);
10
10
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"footer":"universal-modal__footer_8mmqm","sticky":"universal-modal__sticky_8mmqm"};
5
+ var styles = {"footer":"universal-modal__footer_19e2o","sticky":"universal-modal__sticky_19e2o"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -1,25 +1,25 @@
1
1
  :root {
2
2
  --gap-8: 8px;
3
3
  }
4
- .universal-modal__column_1dpe5 {
4
+ .universal-modal__column_13kgf {
5
5
  flex-direction: column;
6
6
  }
7
- .universal-modal__start_1dpe5 {
7
+ .universal-modal__start_13kgf {
8
8
  justify-content: flex-start;
9
9
  }
10
- .universal-modal__center_1dpe5 {
10
+ .universal-modal__center_13kgf {
11
11
  justify-content: center;
12
12
  }
13
- .universal-modal__space-between_1dpe5 {
13
+ .universal-modal__space-between_13kgf {
14
14
  justify-content: space-between;
15
15
  }
16
- .universal-modal__space-between_1dpe5 > * {
16
+ .universal-modal__space-between_13kgf > * {
17
17
  flex: 1;
18
18
  }
19
- .universal-modal__start_1dpe5,
20
- .universal-modal__center_1dpe5,
21
- .universal-modal__space-between_1dpe5,
22
- .universal-modal__column_1dpe5 {
19
+ .universal-modal__start_13kgf,
20
+ .universal-modal__center_13kgf,
21
+ .universal-modal__space-between_13kgf,
22
+ .universal-modal__column_13kgf {
23
23
  display: flex;
24
24
  gap: var(--gap-8);
25
25
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./layout.mobile.css');
4
4
 
5
- var layoutStylesMobile = {"column":"universal-modal__column_1dpe5","start":"universal-modal__start_1dpe5","center":"universal-modal__center_1dpe5","space-between":"universal-modal__space-between_1dpe5"};
5
+ var layoutStylesMobile = {"column":"universal-modal__column_13kgf","start":"universal-modal__start_13kgf","center":"universal-modal__center_13kgf","space-between":"universal-modal__space-between_13kgf"};
6
6
 
7
7
  module.exports = layoutStylesMobile;
8
8
  //# sourceMappingURL=layout.mobile.module.css.js.map
@@ -6,25 +6,28 @@
6
6
  --gap-16: 16px;
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
- .universal-modal__header_wynw4 {
13
+ .universal-modal__header_w3y7l {
13
14
  padding: var(--gap-8) var(--gap-4);
14
15
  }
15
- .universal-modal__content_wynw4 {
16
+ .universal-modal__content_w3y7l {
16
17
  font-size: 20px;
17
18
  line-height: 28px;
18
- font-weight: 600;
19
- font-family: var(--font-family-system);
19
+ font-weight: 500;
20
+ letter-spacing: -0.15px;
21
+ font-family: var(--font-family-alfasans);
20
22
  padding: 0 var(--gap-12);
21
23
  min-height: 40px;
22
24
  justify-content: center;
23
25
  }
24
- .universal-modal__bottomAddons_wynw4 {
26
+ .universal-modal__bottomAddons_w3y7l {
25
27
  font-size: 20px;
26
28
  line-height: 28px;
27
- font-weight: 600;
28
- font-family: var(--font-family-system);
29
+ font-weight: 500;
30
+ letter-spacing: -0.15px;
31
+ font-family: var(--font-family-alfasans);
29
32
  padding: var(--gap-6) var(--gap-16);
30
33
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var mobileStyles = {"header":"universal-modal__header_wynw4","content":"universal-modal__content_wynw4","bottomAddons":"universal-modal__bottomAddons_wynw4"};
5
+ var mobileStyles = {"header":"universal-modal__header_w3y7l","content":"universal-modal__content_w3y7l","bottomAddons":"universal-modal__bottomAddons_w3y7l"};
6
6
 
7
7
  module.exports = mobileStyles;
8
8
  //# sourceMappingURL=index.module.css.js.map
package/mobile/mobile.css CHANGED
@@ -1,7 +1,7 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
3
  }
4
- .universal-modal__component_1cjtb {
4
+ .universal-modal__component_zapyi {
5
5
  top: var(--gap-0);
6
6
  height: 100%;
7
7
  width: 100%;
@@ -11,10 +11,10 @@
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  }
14
- .universal-modal__component_1cjtb .universal-modal__content_1cjtb {
14
+ .universal-modal__component_zapyi .universal-modal__content_zapyi {
15
15
  height: auto;
16
16
  }
17
- .universal-modal__component_1cjtb.universal-modal__component_1cjtb {
17
+ .universal-modal__component_zapyi.universal-modal__component_zapyi {
18
18
  position: fixed;
19
19
  flex: 1;
20
20
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./mobile.css');
4
4
 
5
- var styles = {"component":"universal-modal__component_1cjtb","content":"universal-modal__content_1cjtb"};
5
+ var styles = {"component":"universal-modal__component_zapyi","content":"universal-modal__content_zapyi"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=mobile.module.css.js.map
@@ -1,18 +1,18 @@
1
- .universal-modal__appear_17rcc,
2
- .universal-modal__enter_17rcc {
1
+ .universal-modal__appear_3drbj,
2
+ .universal-modal__enter_3drbj {
3
3
  transform: translateX(100%);
4
4
  }
5
- .universal-modal__appearActive_17rcc,
6
- .universal-modal__enterActive_17rcc {
5
+ .universal-modal__appearActive_3drbj,
6
+ .universal-modal__enterActive_3drbj {
7
7
  transform: translateX(0);
8
8
  transition: transform 280ms ease-in-out;
9
9
  transition-delay: 80ms;
10
10
  }
11
- .universal-modal__exit_17rcc {
11
+ .universal-modal__exit_3drbj {
12
12
  transform: translateX(0);
13
13
  }
14
- .universal-modal__exitActive_17rcc,
15
- .universal-modal__exitDone_17rcc {
14
+ .universal-modal__exitActive_3drbj,
15
+ .universal-modal__exitDone_3drbj {
16
16
  transform: translateX(100%);
17
17
  transition: transform 280ms ease-in-out;
18
18
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./right-side-transitions.mobile.css');
4
4
 
5
- var rightSideTransitions = {"appear":"universal-modal__appear_17rcc","enter":"universal-modal__enter_17rcc","appearActive":"universal-modal__appearActive_17rcc","enterActive":"universal-modal__enterActive_17rcc","exit":"universal-modal__exit_17rcc","exitActive":"universal-modal__exitActive_17rcc","exitDone":"universal-modal__exitDone_17rcc"};
5
+ var rightSideTransitions = {"appear":"universal-modal__appear_3drbj","enter":"universal-modal__enter_3drbj","appearActive":"universal-modal__appearActive_3drbj","enterActive":"universal-modal__enterActive_3drbj","exit":"universal-modal__exit_3drbj","exitActive":"universal-modal__exitActive_3drbj","exitDone":"universal-modal__exitDone_3drbj"};
6
6
 
7
7
  module.exports = rightSideTransitions;
8
8
  //# sourceMappingURL=right-side-transitions.mobile.module.css.js.map
@@ -1,11 +1,11 @@
1
- .universal-modal__appear_1qtjm,
2
- .universal-modal__enter_1qtjm {
1
+ .universal-modal__appear_1dft7,
2
+ .universal-modal__enter_1dft7 {
3
3
  opacity: 0;
4
4
  transform: translateY(15px);
5
5
  }
6
6
 
7
- .universal-modal__appearActive_1qtjm,
8
- .universal-modal__enterActive_1qtjm {
7
+ .universal-modal__appearActive_1dft7,
8
+ .universal-modal__enterActive_1dft7 {
9
9
  opacity: 1;
10
10
  transform: translateY(0);
11
11
  transition:
@@ -13,13 +13,13 @@
13
13
  transform 200ms ease-in;
14
14
  }
15
15
 
16
- .universal-modal__exit_1qtjm {
16
+ .universal-modal__exit_1dft7 {
17
17
  opacity: 1;
18
18
  transform: translateY(0);
19
19
  }
20
20
 
21
- .universal-modal__exitActive_1qtjm,
22
- .universal-modal__exitDone_1qtjm {
21
+ .universal-modal__exitActive_1dft7,
22
+ .universal-modal__exitDone_1dft7 {
23
23
  opacity: 0;
24
24
  transform: translateY(15px);
25
25
  transition:
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./transitions.mobile.css');
4
4
 
5
- var transitions = {"appear":"universal-modal__appear_1qtjm","enter":"universal-modal__enter_1qtjm","appearActive":"universal-modal__appearActive_1qtjm","enterActive":"universal-modal__enterActive_1qtjm","exit":"universal-modal__exit_1qtjm","exitActive":"universal-modal__exitActive_1qtjm","exitDone":"universal-modal__exitDone_1qtjm"};
5
+ var transitions = {"appear":"universal-modal__appear_1dft7","enter":"universal-modal__enter_1dft7","appearActive":"universal-modal__appearActive_1dft7","enterActive":"universal-modal__enterActive_1dft7","exit":"universal-modal__exit_1dft7","exitActive":"universal-modal__exitActive_1dft7","exitDone":"universal-modal__exitDone_1dft7"};
6
6
 
7
7
  module.exports = transitions;
8
8
  //# sourceMappingURL=transitions.mobile.module.css.js.map
@@ -1,7 +1,7 @@
1
1
  :root {
2
2
  --gap-32: 32px;
3
3
  }
4
- .universal-modal__content_18edp {
4
+ .universal-modal__content_13mjn {
5
5
  position: relative;
6
6
  box-sizing: border-box;
7
7
  width: 100%;
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"content":"universal-modal__content_18edp"};
3
+ const styles = {"content":"universal-modal__content_13mjn"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -11,7 +11,7 @@
11
11
  --universal-modal-footer-highlight-background: var(--color-light-modal-bg-primary);
12
12
  --universal-modal-footer-highlight-box-shadow: 0 -1px 0 0 var(--color-light-neutral-300);
13
13
  }
14
- .universal-modal__footer_gxgdh {
14
+ .universal-modal__footer_6e330 {
15
15
  width: 100%;
16
16
  box-sizing: border-box;
17
17
  transition:
@@ -19,12 +19,12 @@
19
19
  background 0.2s ease;
20
20
  padding: var(--gap-16) var(--gap-32) var(--gap-32);
21
21
  }
22
- .universal-modal__sticky_gxgdh {
22
+ .universal-modal__sticky_6e330 {
23
23
  background: var(--universal-modal-footer-background);
24
24
  position: sticky;
25
25
  z-index: 1;
26
26
  }
27
- .universal-modal__highlighted_gxgdh {
27
+ .universal-modal__highlighted_6e330 {
28
28
  background: var(--universal-modal-footer-highlight-background);
29
29
  box-shadow: var(--universal-modal-footer-highlight-box-shadow);
30
30
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"footer":"universal-modal__footer_gxgdh","sticky":"universal-modal__sticky_gxgdh","highlighted":"universal-modal__highlighted_gxgdh"};
3
+ const styles = {"footer":"universal-modal__footer_6e330","sticky":"universal-modal__sticky_6e330","highlighted":"universal-modal__highlighted_6e330"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -10,22 +10,22 @@
10
10
  --universal-modal-header-highlight-background: var(--color-light-modal-bg-primary);
11
11
  --universal-modal-header-highlight-box-shadow: 0 1px 0 0 var(--color-light-neutral-300);
12
12
  }
13
- .universal-modal__header_11hsa {
13
+ .universal-modal__header_vy5tw {
14
14
  width: 100%;
15
15
  box-sizing: border-box;
16
16
  transition:
17
17
  box-shadow 0.2s ease,
18
18
  background 0.2s ease;
19
19
  }
20
- .universal-modal__header_11hsa.universal-modal__highlighted_11hsa {
20
+ .universal-modal__header_vy5tw.universal-modal__highlighted_vy5tw {
21
21
  background: var(--universal-modal-header-highlight-background);
22
22
  box-shadow: var(--universal-modal-header-highlight-box-shadow);
23
23
  }
24
- .universal-modal__header_11hsa.universal-modal__sticky_11hsa {
24
+ .universal-modal__header_vy5tw.universal-modal__sticky_vy5tw {
25
25
  position: sticky;
26
26
  top: var(--gap-0);
27
27
  z-index: 1;
28
28
  }
29
- .universal-modal__header_11hsa.universal-modal__sticky_11hsa.universal-modal__hasContent_11hsa {
29
+ .universal-modal__header_vy5tw.universal-modal__sticky_vy5tw.universal-modal__hasContent_vy5tw {
30
30
  background: var(--universal-modal-header-background);
31
31
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"header":"universal-modal__header_11hsa","highlighted":"universal-modal__highlighted_11hsa","sticky":"universal-modal__sticky_11hsa","hasContent":"universal-modal__hasContent_11hsa"};
3
+ const styles = {"header":"universal-modal__header_vy5tw","highlighted":"universal-modal__highlighted_vy5tw","sticky":"universal-modal__sticky_vy5tw","hasContent":"universal-modal__hasContent_vy5tw"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -24,7 +24,7 @@ const CenterModal = forwardRef((props, ref) => {
24
24
  });
25
25
  const { isFullSizeModal, componentTransitions: fullSizeModalContentTransitions, backdropTransitions: fullSizeModalBackdropTransitions, } = getFullSizeModalTransitions({ verticalAlign, width, height });
26
26
  const withoutOverlay = !overlay;
27
- return (React.createElement(BaseModal, { ...restProps, open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, scrollHandler: 'content', scrollLock: overlay, wrapperClassName: cn(styles.baseModalContainer, {
27
+ return (React.createElement(BaseModal, { ...restProps, open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, scrollHandler: 'content', disableBlockingScroll: withoutOverlay, wrapperClassName: cn(styles.baseModalContainer, {
28
28
  [styles.wrapperJustifyStart]: verticalAlign === 'top',
29
29
  [styles.wrapperJustifyCenter]: verticalAlign === 'center',
30
30
  [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',
@@ -1 +1 @@
1
- {"version":3,"file":"center-modal.js","sources":["../../../../src/desktop/components/center-modal/center-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\nimport { isMacOS, isSafari } from '@alfalab/core-components-shared';\n\nimport { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightStyle } from '../../utils/get-height-style';\nimport { getHugContentStyles } from '../../utils/get-hug-content-styles';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthStyle } from '../../utils/get-width-style';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport styles from './index.module.css';\nimport safariTransitions from './transitions/safari-transitions.module.css';\nimport transitions from './transitions/transitions.module.css';\n\n// в safari некорректно отрабатывает transform:scale (???), поэтому применяем немного другую анимацию\nconst transitionProps = isMacOS() && isSafari() ? safariTransitions : transitions;\n\nexport const CenterModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n dataTestId,\n className,\n open,\n children,\n width = 500,\n height = 'hugContent',\n verticalAlign = 'center',\n overlay = true,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n ...restProps\n } = props;\n\n const componentRef = useRef<HTMLDivElement>(null);\n const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({\n overlay,\n refObject: scrollableContainerRefProp,\n });\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n const withoutOverlay = !overlay;\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n scrollHandler='content'\n scrollLock={overlay}\n wrapperClassName={cn(styles.baseModalContainer, {\n [styles.wrapperJustifyStart]: verticalAlign === 'top',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n [styles.withoutOverlay]: withoutOverlay,\n })}\n className={cn(styles.component, className, styles.baseModalComponent, {\n ...getMarginStyles({ styles, margin }),\n ...getHugContentStyles({ styles, margin, height }),\n })}\n transitionProps={{\n classNames: transitionProps,\n ...(isFullSizeModal && fullSizeModalContentTransitions),\n ...restProps.transitionProps,\n }}\n backdropProps={{\n shouldRender: overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: getWidthStyle(width, margin),\n ...getHeightStyle(height, margin),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent height={height} scrollableContainerRef={scrollableContainerRef}>\n {children}\n </ModalContent>\n </BaseModal>\n );\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBA;AACA,MAAM,eAAe,GAAG,OAAO,EAAE,IAAI,QAAQ,EAAE,GAAG,iBAAiB,GAAG,WAAW;AAEpE,MAAA,WAAW,GAAG,UAAU,CAA6C,CAAC,KAAK,EAAE,GAAG,KAAI;AAC7F,IAAA,MAAM,EACF,UAAU,EACV,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,YAAY,EACrB,aAAa,GAAG,QAAQ,EACxB,OAAO,GAAG,IAAI,EACd,MAAM,EACN,sBAAsB,EAAE,0BAA0B,EAClD,OAAO,EACP,GAAG,SAAS,EACf,GAAG,KAAK;AAET,IAAA,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC;AACjD,IAAA,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,yBAAyB,CAAC;QACtE,OAAO;AACP,QAAA,SAAS,EAAE,0BAA0B;AACxC,KAAA,CAAC;IAEF,MAAM,EACF,eAAe,EACf,oBAAoB,EAAE,+BAA+B,EACrD,mBAAmB,EAAE,gCAAgC,GACxD,GAAG,2BAA2B,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAEjE,IAAA,MAAM,cAAc,GAAG,CAAC,OAAO;AAE/B,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,EACF,EAAA,GAAA,SAAS,EACb,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAC,SAAS,EACvB,UAAU,EAAE,OAAO,EACnB,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,kBAAkB,EAAE;AAC5C,YAAA,CAAC,MAAM,CAAC,mBAAmB,GAAG,aAAa,KAAK,KAAK;AACrD,YAAA,CAAC,MAAM,CAAC,oBAAoB,GAAG,aAAa,KAAK,QAAQ;AACzD,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,aAAa,KAAK,QAAQ;AACtD,YAAA,CAAC,MAAM,CAAC,cAAc,GAAG,cAAc;AAC1C,SAAA,CAAC,EACF,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,kBAAkB,EAAE;AAClE,YAAA,GAAG,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;YACtC,GAAG,mBAAmB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;SACrD,CAAC,EACF,eAAe,EAAE;AACb,YAAA,UAAU,EAAE,eAAe;AAC3B,YAAA,IAAI,eAAe,IAAI,+BAA+B,CAAC;YACvD,GAAG,SAAS,CAAC,eAAe;AAC/B,SAAA,EACD,aAAa,EAAE;AACX,YAAA,YAAY,EAAE,OAAO;AACrB,YAAA,IAAI,eAAe,IAAI,gCAAgC,CAAC;YACxD,GAAG,SAAS,CAAC,aAAa;AAC7B,SAAA,EACD,iBAAiB,EAAE;AACf,YAAA,KAAK,EAAE;AACH,gBAAA,KAAK,EAAE,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC;AACnC,gBAAA,GAAG,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;AACpC,aAAA;AACJ,SAAA,EACD,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,OAAO,EAAA;AAEhB,QAAA,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,sBAAsB,EACvE,EAAA,QAAQ,CACE,CACP;AAEpB,CAAC;;;;"}
1
+ {"version":3,"file":"center-modal.js","sources":["../../../../src/desktop/components/center-modal/center-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\nimport { isMacOS, isSafari } from '@alfalab/core-components-shared';\n\nimport { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightStyle } from '../../utils/get-height-style';\nimport { getHugContentStyles } from '../../utils/get-hug-content-styles';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthStyle } from '../../utils/get-width-style';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport styles from './index.module.css';\nimport safariTransitions from './transitions/safari-transitions.module.css';\nimport transitions from './transitions/transitions.module.css';\n\n// в safari некорректно отрабатывает transform:scale (???), поэтому применяем немного другую анимацию\nconst transitionProps = isMacOS() && isSafari() ? safariTransitions : transitions;\n\nexport const CenterModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n dataTestId,\n className,\n open,\n children,\n width = 500,\n height = 'hugContent',\n verticalAlign = 'center',\n overlay = true,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n ...restProps\n } = props;\n\n const componentRef = useRef<HTMLDivElement>(null);\n const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({\n overlay,\n refObject: scrollableContainerRefProp,\n });\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n const withoutOverlay = !overlay;\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n scrollHandler='content'\n disableBlockingScroll={withoutOverlay}\n wrapperClassName={cn(styles.baseModalContainer, {\n [styles.wrapperJustifyStart]: verticalAlign === 'top',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n [styles.withoutOverlay]: withoutOverlay,\n })}\n className={cn(styles.component, className, styles.baseModalComponent, {\n ...getMarginStyles({ styles, margin }),\n ...getHugContentStyles({ styles, margin, height }),\n })}\n transitionProps={{\n classNames: transitionProps,\n ...(isFullSizeModal && fullSizeModalContentTransitions),\n ...restProps.transitionProps,\n }}\n backdropProps={{\n shouldRender: overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: getWidthStyle(width, margin),\n ...getHeightStyle(height, margin),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent height={height} scrollableContainerRef={scrollableContainerRef}>\n {children}\n </ModalContent>\n </BaseModal>\n );\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBA;AACA,MAAM,eAAe,GAAG,OAAO,EAAE,IAAI,QAAQ,EAAE,GAAG,iBAAiB,GAAG,WAAW;AAEpE,MAAA,WAAW,GAAG,UAAU,CAA6C,CAAC,KAAK,EAAE,GAAG,KAAI;AAC7F,IAAA,MAAM,EACF,UAAU,EACV,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,YAAY,EACrB,aAAa,GAAG,QAAQ,EACxB,OAAO,GAAG,IAAI,EACd,MAAM,EACN,sBAAsB,EAAE,0BAA0B,EAClD,OAAO,EACP,GAAG,SAAS,EACf,GAAG,KAAK;AAET,IAAA,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC;AACjD,IAAA,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,yBAAyB,CAAC;QACtE,OAAO;AACP,QAAA,SAAS,EAAE,0BAA0B;AACxC,KAAA,CAAC;IAEF,MAAM,EACF,eAAe,EACf,oBAAoB,EAAE,+BAA+B,EACrD,mBAAmB,EAAE,gCAAgC,GACxD,GAAG,2BAA2B,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAEjE,IAAA,MAAM,cAAc,GAAG,CAAC,OAAO;AAE/B,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,EACF,EAAA,GAAA,SAAS,EACb,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAC,SAAS,EACvB,qBAAqB,EAAE,cAAc,EACrC,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,kBAAkB,EAAE;AAC5C,YAAA,CAAC,MAAM,CAAC,mBAAmB,GAAG,aAAa,KAAK,KAAK;AACrD,YAAA,CAAC,MAAM,CAAC,oBAAoB,GAAG,aAAa,KAAK,QAAQ;AACzD,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,aAAa,KAAK,QAAQ;AACtD,YAAA,CAAC,MAAM,CAAC,cAAc,GAAG,cAAc;AAC1C,SAAA,CAAC,EACF,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,kBAAkB,EAAE;AAClE,YAAA,GAAG,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;YACtC,GAAG,mBAAmB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;SACrD,CAAC,EACF,eAAe,EAAE;AACb,YAAA,UAAU,EAAE,eAAe;AAC3B,YAAA,IAAI,eAAe,IAAI,+BAA+B,CAAC;YACvD,GAAG,SAAS,CAAC,eAAe;AAC/B,SAAA,EACD,aAAa,EAAE;AACX,YAAA,YAAY,EAAE,OAAO;AACrB,YAAA,IAAI,eAAe,IAAI,gCAAgC,CAAC;YACxD,GAAG,SAAS,CAAC,aAAa;AAC7B,SAAA,EACD,iBAAiB,EAAE;AACf,YAAA,KAAK,EAAE;AACH,gBAAA,KAAK,EAAE,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC;AACnC,gBAAA,GAAG,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;AACpC,aAAA;AACJ,SAAA,EACD,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,OAAO,EAAA;AAEhB,QAAA,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,sBAAsB,EACvE,EAAA,QAAQ,CACE,CACP;AAEpB,CAAC;;;;"}