@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
- const styles = {"footer":"universal-modal__footer_8mmqm","sticky":"universal-modal__sticky_8mmqm"};
3
+ const 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
- const layoutStylesMobile = {"column":"universal-modal__column_1dpe5","start":"universal-modal__start_1dpe5","center":"universal-modal__center_1dpe5","space-between":"universal-modal__space-between_1dpe5"};
3
+ const 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
- const mobileStyles = {"header":"universal-modal__header_wynw4","content":"universal-modal__content_wynw4","bottomAddons":"universal-modal__bottomAddons_wynw4"};
3
+ const 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
- const styles = {"component":"universal-modal__component_1cjtb","content":"universal-modal__content_1cjtb"};
3
+ const 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
- const 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
+ const 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
- const 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
+ const 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
@@ -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,EAC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AsB,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,MA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A,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;;;;"}
@@ -8,7 +8,8 @@
8
8
  font-size: 22px;
9
9
  line-height: 26px;
10
10
  font-weight: 700;
11
- font-family: var(--font-family-system);
11
+ letter-spacing: 0.2px;
12
+ font-family: var(--font-family-alfasans);
12
13
  padding: 11px var(--gap-12);
13
14
  }
14
15
 
@@ -16,7 +17,8 @@
16
17
  font-size: 22px;
17
18
  line-height: 26px;
18
19
  font-weight: 700;
19
- font-family: var(--font-family-system);
20
+ letter-spacing: 0.2px;
21
+ font-family: var(--font-family-alfasans);
20
22
  padding: var(--gap-6) var(--gap-12) var(--gap-16);
21
23
  }
22
24
 
@@ -24,7 +26,8 @@
24
26
  font-size: 30px;
25
27
  line-height: 36px;
26
28
  font-weight: 700;
27
- font-family: var(--font-family-system);
29
+ letter-spacing: 0.1px;
30
+ font-family: var(--font-family-alfasans);
28
31
  padding: var(--gap-6) var(--gap-12) var(--gap-16);
29
32
  }
30
33
 
@@ -32,5 +35,6 @@
32
35
  font-size: 30px;
33
36
  line-height: 36px;
34
37
  font-weight: 700;
35
- font-family: var(--font-family-system);
38
+ letter-spacing: 0.1px;
39
+ font-family: var(--font-family-alfasans);
36
40
  }
@@ -21,7 +21,7 @@ const SideModal = forwardRef((props, ref) => {
21
21
  });
22
22
  const { isFullSizeModal, componentTransitions: fullSizeModalContentTransitions, backdropTransitions: fullSizeModalBackdropTransitions, } = getFullSizeModalTransitions({ verticalAlign, width, height });
23
23
  const withoutOverlay = !overlay;
24
- return (React.createElement(BaseModal, { ...restProps, open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, contentElementRef: contentRef, scrollHandler: 'content', scrollLock: overlay, wrapperClassName: cn(styles.wrapper, styles.baseModalContainer, {
24
+ return (React.createElement(BaseModal, { ...restProps, open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, contentElementRef: contentRef, scrollHandler: 'content', disableBlockingScroll: withoutOverlay, wrapperClassName: cn(styles.wrapper, styles.baseModalContainer, {
25
25
  [styles.wrapperAlignStart]: horizontalAlign === 'start',
26
26
  [styles.wrapperAlignEnd]: horizontalAlign === 'end',
27
27
  [styles.wrapperJustifyCenter]: verticalAlign === 'center',
@@ -1 +1 @@
1
- {"version":3,"file":"side-modal.js","sources":["../../../../src/desktop/components/side-modal/side-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\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 { getDefaultTransitionProps } from './get-default-transition-props';\n\nimport styles from './index.module.css';\n\nexport const SideModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n width = 500,\n height = 'fullHeight',\n horizontalAlign = 'center',\n verticalAlign = 'center',\n overlay = true,\n open,\n dataTestId,\n className,\n children,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n ...restProps\n } = props;\n const componentRef = useRef<HTMLDivElement>(null);\n const contentRef = 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 contentElementRef={contentRef}\n scrollHandler='content'\n scrollLock={overlay}\n wrapperClassName={cn(styles.wrapper, styles.baseModalContainer, {\n [styles.wrapperAlignStart]: horizontalAlign === 'start',\n [styles.wrapperAlignEnd]: horizontalAlign === 'end',\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 contentClassName={styles.content}\n transitionProps={{\n ...getDefaultTransitionProps({\n horizontalAlign,\n margin,\n }),\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":";;;;;;;;;;;;;AAkBa,MAAA,SAAS,GAAG,UAAU,CAA6C,CAAC,KAAK,EAAE,GAAG,KAAI;AAC3F,IAAA,MAAM,EACF,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,YAAY,EACrB,eAAe,GAAG,QAAQ,EAC1B,aAAa,GAAG,Q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AAE,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,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAChC,eAAe,EAAE;AACb,YAAA,GAAG,yBAAyB,CAAC;gBACzB,eAAe;gBACf,MAAM;aACT,CAAC;AACF,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":"side-modal.js","sources":["../../../../src/desktop/components/side-modal/side-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\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 { getDefaultTransitionProps } from './get-default-transition-props';\n\nimport styles from './index.module.css';\n\nexport const SideModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n width = 500,\n height = 'fullHeight',\n horizontalAlign = 'center',\n verticalAlign = 'center',\n overlay = true,\n open,\n dataTestId,\n className,\n children,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n ...restProps\n } = props;\n const componentRef = useRef<HTMLDivElement>(null);\n const contentRef = 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 contentElementRef={contentRef}\n scrollHandler='content'\n disableBlockingScroll={withoutOverlay}\n wrapperClassName={cn(styles.wrapper, styles.baseModalContainer, {\n [styles.wrapperAlignStart]: horizontalAlign === 'start',\n [styles.wrapperAlignEnd]: horizontalAlign === 'end',\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 contentClassName={styles.content}\n transitionProps={{\n ...getDefaultTransitionProps({\n horizontalAlign,\n margin,\n }),\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":";;;;;;;;;;;;;AAkBa,MAAA,SAAS,GAAG,UAAU,CAA6C,CAAC,KAAK,EAAE,GAAG,KAAI;AAC3F,IAAA,MAAM,EACF,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,YAAY,EACrB,eAAe,GAAG,QAAQ,EAC1B,aAAa,GAAG,QAAQ,EACxB,OAAO,GAAG,IAAI,EACd,IAAI,EACJ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,MAAM,EACN,sBAAsB,EAAE,0BAA0B,EAClD,OAAO,EACP,GAAG,SAAS,EACf,GAAG,KAAK;AACT,IAAA,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC;AACjD,IAAA,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC;AAC/C,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;IAE/B,QACI,oBAAC,SAAS,EAAA,EAAA,GACF,SAAS,EACb,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,YAAY,EAC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A;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;;;;"}
@@ -7,8 +7,9 @@
7
7
  .content {
8
8
  font-size: 20px;
9
9
  line-height: 28px;
10
- font-weight: 600;
11
- font-family: var(--font-family-system);
10
+ font-weight: 500;
11
+ letter-spacing: -0.15px;
12
+ font-family: var(--font-family-alfasans);
12
13
  padding: 0 var(--gap-12);
13
14
  min-height: 40px;
14
15
  justify-content: center;
@@ -17,7 +18,8 @@
17
18
  .bottomAddons {
18
19
  font-size: 20px;
19
20
  line-height: 28px;
20
- font-weight: 600;
21
- font-family: var(--font-family-system);
21
+ font-weight: 500;
22
+ letter-spacing: -0.15px;
23
+ font-family: var(--font-family-alfasans);
22
24
  padding: var(--gap-6) var(--gap-16);
23
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-universal-modal",
3
- "version": "3.2.3",
3
+ "version": "3.2.4-alfasans",
4
4
  "description": "UniversalModal component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -13,12 +13,12 @@
13
13
  "build": "rollup -c ../../tools/rollup/rollup.config.mjs --silent"
14
14
  },
15
15
  "dependencies": {
16
- "@alfalab/core-components-backdrop": "^5.0.2",
17
- "@alfalab/core-components-base-modal": "^7.1.8",
18
- "@alfalab/core-components-mq": "^6.0.7",
19
- "@alfalab/core-components-navigation-bar-private": "^2.0.13",
20
- "@alfalab/core-components-scrollbar": "^5.0.6",
21
- "@alfalab/core-components-shared": "^2.2.3",
16
+ "@alfalab/core-components-backdrop": "5.0.2-alfasans",
17
+ "@alfalab/core-components-base-modal": "7.1.8-alfasans",
18
+ "@alfalab/core-components-mq": "6.0.7-alfasans",
19
+ "@alfalab/core-components-navigation-bar-private": "2.0.13-alfasans",
20
+ "@alfalab/core-components-scrollbar": "5.0.6-alfasans",
21
+ "@alfalab/core-components-shared": "2.2.3-alfasans",
22
22
  "@types/react-transition-group": "^4.4.12",
23
23
  "classnames": "^2.5.1",
24
24
  "react-merge-refs": "^1.1.0",
@@ -33,6 +33,6 @@
33
33
  "access": "public",
34
34
  "directory": "dist"
35
35
  },
36
- "themesVersion": "15.2.1",
37
- "varsVersion": "11.2.1"
36
+ "themesVersion": "15.2.1-alfasans",
37
+ "varsVersion": "11.2.1-alfasans"
38
38
  }
@@ -58,7 +58,7 @@ export const CenterModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps
58
58
  ref={ref}
59
59
  componentRef={componentRef}
60
60
  scrollHandler='content'
61
- scrollLock={overlay}
61
+ disableBlockingScroll={withoutOverlay}
62
62
  wrapperClassName={cn(styles.baseModalContainer, {
63
63
  [styles.wrapperJustifyStart]: verticalAlign === 'top',
64
64
  [styles.wrapperJustifyCenter]: verticalAlign === 'center',
@@ -56,7 +56,7 @@ export const SideModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>(
56
56
  componentRef={componentRef}
57
57
  contentElementRef={contentRef}
58
58
  scrollHandler='content'
59
- scrollLock={overlay}
59
+ disableBlockingScroll={withoutOverlay}
60
60
  wrapperClassName={cn(styles.wrapper, styles.baseModalContainer, {
61
61
  [styles.wrapperAlignStart]: horizontalAlign === 'start',
62
62
  [styles.wrapperAlignEnd]: horizontalAlign === 'end',