@alfalab/core-components-universal-modal 3.2.5 → 3.2.6-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 (236) hide show
  1. package/Context.d.ts +1 -1
  2. package/Context.js +1 -1
  3. package/Context.js.map +1 -1
  4. package/components/base-content/index.css +1 -1
  5. package/components/base-content/index.module.css.js +1 -1
  6. package/components/base-footer/index.css +3 -3
  7. package/components/base-footer/index.module.css.js +1 -1
  8. package/components/base-header/index.css +4 -4
  9. package/components/base-header/index.module.css.js +1 -1
  10. package/cssm/Context.d.ts +1 -1
  11. package/cssm/Context.js +1 -1
  12. package/cssm/Context.js.map +1 -1
  13. package/cssm/desktop/Component.desktop.d.ts +1 -1
  14. package/cssm/desktop/components/center-modal/center-modal.js +2 -2
  15. package/cssm/desktop/components/center-modal/center-modal.js.map +1 -1
  16. package/cssm/desktop/components/footer/index.d.ts +2 -7
  17. package/cssm/desktop/components/footer/index.js.map +1 -1
  18. package/cssm/desktop/components/header/desktop.module.css +11 -6
  19. package/cssm/desktop/components/modal-content/modal-content.js +2 -9
  20. package/cssm/desktop/components/modal-content/modal-content.js.map +1 -1
  21. package/cssm/desktop/components/side-modal/side-modal.js +2 -2
  22. package/cssm/desktop/components/side-modal/side-modal.js.map +1 -1
  23. package/cssm/desktop/types/props.d.ts +1 -1
  24. package/cssm/mobile/components/header/index.module.css +9 -6
  25. package/cssm/mobile/types/props.d.ts +1 -1
  26. package/desktop/Component.desktop.d.ts +1 -1
  27. package/desktop/components/center-modal/center-modal.js +2 -2
  28. package/desktop/components/center-modal/center-modal.js.map +1 -1
  29. package/desktop/components/center-modal/index.css +1104 -1104
  30. package/desktop/components/center-modal/index.module.css.js +1 -1
  31. package/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
  32. package/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  33. package/desktop/components/center-modal/transitions/transitions.css +7 -7
  34. package/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  35. package/desktop/components/footer/desktop.css +1 -1
  36. package/desktop/components/footer/desktop.module.css.js +1 -1
  37. package/desktop/components/footer/index.d.ts +2 -7
  38. package/desktop/components/footer/index.js.map +1 -1
  39. package/desktop/components/footer/layout.css +9 -9
  40. package/desktop/components/footer/layout.module.css.js +1 -1
  41. package/desktop/components/header/desktop.css +16 -11
  42. package/desktop/components/header/desktop.module.css.js +1 -1
  43. package/desktop/components/modal-content/modal-content.css +4 -4
  44. package/desktop/components/modal-content/modal-content.js +2 -9
  45. package/desktop/components/modal-content/modal-content.js.map +1 -1
  46. package/desktop/components/modal-content/modal-content.module.css.js +1 -1
  47. package/desktop/components/side-modal/index.css +1106 -1106
  48. package/desktop/components/side-modal/index.module.css.js +1 -1
  49. package/desktop/components/side-modal/side-modal.js +2 -2
  50. package/desktop/components/side-modal/side-modal.js.map +1 -1
  51. package/desktop/components/side-modal/transitions/transitions.css +71 -71
  52. package/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  53. package/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
  54. package/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  55. package/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
  56. package/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  57. package/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  58. package/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  59. package/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
  60. package/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  61. package/desktop/types/props.d.ts +1 -1
  62. package/esm/Context.d.ts +1 -1
  63. package/esm/Context.js +1 -1
  64. package/esm/Context.js.map +1 -1
  65. package/esm/components/base-content/index.css +1 -1
  66. package/esm/components/base-content/index.module.css.js +1 -1
  67. package/esm/components/base-footer/index.css +3 -3
  68. package/esm/components/base-footer/index.module.css.js +1 -1
  69. package/esm/components/base-header/index.css +4 -4
  70. package/esm/components/base-header/index.module.css.js +1 -1
  71. package/esm/desktop/Component.desktop.d.ts +1 -1
  72. package/esm/desktop/components/center-modal/center-modal.js +2 -2
  73. package/esm/desktop/components/center-modal/center-modal.js.map +1 -1
  74. package/esm/desktop/components/center-modal/index.css +1104 -1104
  75. package/esm/desktop/components/center-modal/index.module.css.js +1 -1
  76. package/esm/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
  77. package/esm/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  78. package/esm/desktop/components/center-modal/transitions/transitions.css +7 -7
  79. package/esm/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  80. package/esm/desktop/components/footer/desktop.css +1 -1
  81. package/esm/desktop/components/footer/desktop.module.css.js +1 -1
  82. package/esm/desktop/components/footer/index.d.ts +2 -7
  83. package/esm/desktop/components/footer/index.js.map +1 -1
  84. package/esm/desktop/components/footer/layout.css +9 -9
  85. package/esm/desktop/components/footer/layout.module.css.js +1 -1
  86. package/esm/desktop/components/header/desktop.css +16 -11
  87. package/esm/desktop/components/header/desktop.module.css.js +1 -1
  88. package/esm/desktop/components/modal-content/modal-content.css +4 -4
  89. package/esm/desktop/components/modal-content/modal-content.js +2 -8
  90. package/esm/desktop/components/modal-content/modal-content.js.map +1 -1
  91. package/esm/desktop/components/modal-content/modal-content.module.css.js +1 -1
  92. package/esm/desktop/components/side-modal/index.css +1106 -1106
  93. package/esm/desktop/components/side-modal/index.module.css.js +1 -1
  94. package/esm/desktop/components/side-modal/side-modal.js +2 -2
  95. package/esm/desktop/components/side-modal/side-modal.js.map +1 -1
  96. package/esm/desktop/components/side-modal/transitions/transitions.css +71 -71
  97. package/esm/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  98. package/esm/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
  99. package/esm/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  100. package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
  101. package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  102. package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  103. package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  104. package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
  105. package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  106. package/esm/desktop/types/props.d.ts +1 -1
  107. package/esm/mobile/components/content/index.css +3 -3
  108. package/esm/mobile/components/content/index.module.css.js +1 -1
  109. package/esm/mobile/components/footer/index.css +2 -2
  110. package/esm/mobile/components/footer/index.module.css.js +1 -1
  111. package/esm/mobile/components/footer/layout.mobile.css +9 -9
  112. package/esm/mobile/components/footer/layout.mobile.module.css.js +1 -1
  113. package/esm/mobile/components/header/index.css +12 -9
  114. package/esm/mobile/components/header/index.module.css.js +1 -1
  115. package/esm/mobile/mobile.css +3 -3
  116. package/esm/mobile/mobile.module.css.js +1 -1
  117. package/esm/mobile/transitions/right-side-transitions.mobile.css +7 -7
  118. package/esm/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  119. package/esm/mobile/transitions/transitions.mobile.css +7 -7
  120. package/esm/mobile/transitions/transitions.mobile.module.css.js +1 -1
  121. package/esm/mobile/types/props.d.ts +1 -1
  122. package/mobile/components/content/index.css +3 -3
  123. package/mobile/components/content/index.module.css.js +1 -1
  124. package/mobile/components/footer/index.css +2 -2
  125. package/mobile/components/footer/index.module.css.js +1 -1
  126. package/mobile/components/footer/layout.mobile.css +9 -9
  127. package/mobile/components/footer/layout.mobile.module.css.js +1 -1
  128. package/mobile/components/header/index.css +12 -9
  129. package/mobile/components/header/index.module.css.js +1 -1
  130. package/mobile/mobile.css +3 -3
  131. package/mobile/mobile.module.css.js +1 -1
  132. package/mobile/transitions/right-side-transitions.mobile.css +7 -7
  133. package/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  134. package/mobile/transitions/transitions.mobile.css +7 -7
  135. package/mobile/transitions/transitions.mobile.module.css.js +1 -1
  136. package/mobile/types/props.d.ts +1 -1
  137. package/modern/Context.d.ts +1 -1
  138. package/modern/Context.js +1 -1
  139. package/modern/Context.js.map +1 -1
  140. package/modern/components/base-content/index.css +1 -1
  141. package/modern/components/base-content/index.module.css.js +1 -1
  142. package/modern/components/base-footer/index.css +3 -3
  143. package/modern/components/base-footer/index.module.css.js +1 -1
  144. package/modern/components/base-header/index.css +4 -4
  145. package/modern/components/base-header/index.module.css.js +1 -1
  146. package/modern/desktop/Component.desktop.d.ts +1 -1
  147. package/modern/desktop/components/center-modal/center-modal.js +2 -2
  148. package/modern/desktop/components/center-modal/center-modal.js.map +1 -1
  149. package/modern/desktop/components/center-modal/index.css +1104 -1104
  150. package/modern/desktop/components/center-modal/index.module.css.js +1 -1
  151. package/modern/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
  152. package/modern/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  153. package/modern/desktop/components/center-modal/transitions/transitions.css +7 -7
  154. package/modern/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  155. package/modern/desktop/components/footer/desktop.css +1 -1
  156. package/modern/desktop/components/footer/desktop.module.css.js +1 -1
  157. package/modern/desktop/components/footer/index.d.ts +2 -7
  158. package/modern/desktop/components/footer/index.js.map +1 -1
  159. package/modern/desktop/components/footer/layout.css +9 -9
  160. package/modern/desktop/components/footer/layout.module.css.js +1 -1
  161. package/modern/desktop/components/header/desktop.css +16 -11
  162. package/modern/desktop/components/header/desktop.module.css.js +1 -1
  163. package/modern/desktop/components/modal-content/modal-content.css +4 -4
  164. package/modern/desktop/components/modal-content/modal-content.js +2 -8
  165. package/modern/desktop/components/modal-content/modal-content.js.map +1 -1
  166. package/modern/desktop/components/modal-content/modal-content.module.css.js +1 -1
  167. package/modern/desktop/components/side-modal/index.css +1106 -1106
  168. package/modern/desktop/components/side-modal/index.module.css.js +1 -1
  169. package/modern/desktop/components/side-modal/side-modal.js +2 -2
  170. package/modern/desktop/components/side-modal/side-modal.js.map +1 -1
  171. package/modern/desktop/components/side-modal/transitions/transitions.css +71 -71
  172. package/modern/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  173. package/modern/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
  174. package/modern/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  175. package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
  176. package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  177. package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  178. package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  179. package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
  180. package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  181. package/modern/desktop/types/props.d.ts +1 -1
  182. package/modern/mobile/components/content/index.css +3 -3
  183. package/modern/mobile/components/content/index.module.css.js +1 -1
  184. package/modern/mobile/components/footer/index.css +2 -2
  185. package/modern/mobile/components/footer/index.module.css.js +1 -1
  186. package/modern/mobile/components/footer/layout.mobile.css +9 -9
  187. package/modern/mobile/components/footer/layout.mobile.module.css.js +1 -1
  188. package/modern/mobile/components/header/index.css +12 -9
  189. package/modern/mobile/components/header/index.module.css.js +1 -1
  190. package/modern/mobile/mobile.css +3 -3
  191. package/modern/mobile/mobile.module.css.js +1 -1
  192. package/modern/mobile/transitions/right-side-transitions.mobile.css +7 -7
  193. package/modern/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  194. package/modern/mobile/transitions/transitions.mobile.css +7 -7
  195. package/modern/mobile/transitions/transitions.mobile.module.css.js +1 -1
  196. package/modern/mobile/types/props.d.ts +1 -1
  197. package/moderncssm/Context.d.ts +1 -1
  198. package/moderncssm/Context.js +1 -1
  199. package/moderncssm/Context.js.map +1 -1
  200. package/moderncssm/desktop/Component.desktop.d.ts +1 -1
  201. package/moderncssm/desktop/components/center-modal/center-modal.js +2 -2
  202. package/moderncssm/desktop/components/center-modal/center-modal.js.map +1 -1
  203. package/moderncssm/desktop/components/footer/index.d.ts +2 -7
  204. package/moderncssm/desktop/components/footer/index.js.map +1 -1
  205. package/moderncssm/desktop/components/header/desktop.module.css +8 -4
  206. package/moderncssm/desktop/components/modal-content/modal-content.js +2 -8
  207. package/moderncssm/desktop/components/modal-content/modal-content.js.map +1 -1
  208. package/moderncssm/desktop/components/side-modal/side-modal.js +2 -2
  209. package/moderncssm/desktop/components/side-modal/side-modal.js.map +1 -1
  210. package/moderncssm/desktop/types/props.d.ts +1 -1
  211. package/moderncssm/mobile/components/header/index.module.css +6 -4
  212. package/moderncssm/mobile/types/props.d.ts +1 -1
  213. package/package.json +9 -9
  214. package/src/Context.ts +1 -1
  215. package/src/desktop/components/center-modal/center-modal.tsx +5 -3
  216. package/src/desktop/components/footer/index.tsx +1 -6
  217. package/src/desktop/components/modal-content/modal-content.tsx +1 -9
  218. package/src/desktop/components/side-modal/side-modal.tsx +5 -3
  219. package/src/desktop/types/props.ts +1 -0
  220. package/src/mobile/types/props.ts +2 -0
  221. package/cssm/desktop/hooks/use-modal-highlighted.d.ts +0 -13
  222. package/cssm/desktop/hooks/use-modal-highlighted.js +0 -57
  223. package/cssm/desktop/hooks/use-modal-highlighted.js.map +0 -1
  224. package/desktop/hooks/use-modal-highlighted.d.ts +0 -13
  225. package/desktop/hooks/use-modal-highlighted.js +0 -57
  226. package/desktop/hooks/use-modal-highlighted.js.map +0 -1
  227. package/esm/desktop/hooks/use-modal-highlighted.d.ts +0 -13
  228. package/esm/desktop/hooks/use-modal-highlighted.js +0 -53
  229. package/esm/desktop/hooks/use-modal-highlighted.js.map +0 -1
  230. package/modern/desktop/hooks/use-modal-highlighted.d.ts +0 -13
  231. package/modern/desktop/hooks/use-modal-highlighted.js +0 -52
  232. package/modern/desktop/hooks/use-modal-highlighted.js.map +0 -1
  233. package/moderncssm/desktop/hooks/use-modal-highlighted.d.ts +0 -13
  234. package/moderncssm/desktop/hooks/use-modal-highlighted.js +0 -52
  235. package/moderncssm/desktop/hooks/use-modal-highlighted.js.map +0 -1
  236. package/src/desktop/hooks/use-modal-highlighted.ts +0 -75
@@ -2,9 +2,9 @@
2
2
  --gap-0: 0px;
3
3
  --gap-20: 20px;
4
4
  }
5
- .universal-modal__footer_f3rpc {
5
+ .universal-modal__footer_91cl4 {
6
6
  padding: var(--gap-20);
7
7
  }
8
- .universal-modal__sticky_f3rpc {
8
+ .universal-modal__sticky_91cl4 {
9
9
  bottom: var(--gap-0);
10
10
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"footer":"universal-modal__footer_f3rpc","sticky":"universal-modal__sticky_f3rpc"};
3
+ const styles = {"footer":"universal-modal__footer_91cl4","sticky":"universal-modal__sticky_91cl4"};
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_1jb1d {
4
+ .universal-modal__column_4w2gm {
5
5
  flex-direction: column;
6
6
  }
7
- .universal-modal__start_1jb1d {
7
+ .universal-modal__start_4w2gm {
8
8
  justify-content: flex-start;
9
9
  }
10
- .universal-modal__center_1jb1d {
10
+ .universal-modal__center_4w2gm {
11
11
  justify-content: center;
12
12
  }
13
- .universal-modal__space-between_1jb1d {
13
+ .universal-modal__space-between_4w2gm {
14
14
  justify-content: space-between;
15
15
  }
16
- .universal-modal__space-between_1jb1d > * {
16
+ .universal-modal__space-between_4w2gm > * {
17
17
  flex: 1;
18
18
  }
19
- .universal-modal__start_1jb1d,
20
- .universal-modal__center_1jb1d,
21
- .universal-modal__space-between_1jb1d,
22
- .universal-modal__column_1jb1d {
19
+ .universal-modal__start_4w2gm,
20
+ .universal-modal__center_4w2gm,
21
+ .universal-modal__space-between_4w2gm,
22
+ .universal-modal__column_4w2gm {
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_1jb1d","start":"universal-modal__start_1jb1d","center":"universal-modal__center_1jb1d","space-between":"universal-modal__space-between_1jb1d"};
3
+ const layoutStylesMobile = {"column":"universal-modal__column_4w2gm","start":"universal-modal__start_4w2gm","center":"universal-modal__center_4w2gm","space-between":"universal-modal__space-between_4w2gm"};
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_12kb3 {
13
+ .universal-modal__header_1wgoa {
13
14
  padding: var(--gap-8) var(--gap-4);
14
15
  }
15
- .universal-modal__content_12kb3 {
16
+ .universal-modal__content_1wgoa {
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_12kb3 {
26
+ .universal-modal__bottomAddons_1wgoa {
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_12kb3","content":"universal-modal__content_12kb3","bottomAddons":"universal-modal__bottomAddons_12kb3"};
3
+ const mobileStyles = {"header":"universal-modal__header_1wgoa","content":"universal-modal__content_1wgoa","bottomAddons":"universal-modal__bottomAddons_1wgoa"};
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_1eqzm {
4
+ .universal-modal__component_1yulo {
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_1eqzm .universal-modal__content_1eqzm {
14
+ .universal-modal__component_1yulo .universal-modal__content_1yulo {
15
15
  height: auto;
16
16
  }
17
- .universal-modal__component_1eqzm.universal-modal__component_1eqzm {
17
+ .universal-modal__component_1yulo.universal-modal__component_1yulo {
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_1eqzm","content":"universal-modal__content_1eqzm"};
3
+ const styles = {"component":"universal-modal__component_1yulo","content":"universal-modal__content_1yulo"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=mobile.module.css.js.map
@@ -1,18 +1,18 @@
1
- .universal-modal__appear_ua87x,
2
- .universal-modal__enter_ua87x {
1
+ .universal-modal__appear_1225a,
2
+ .universal-modal__enter_1225a {
3
3
  transform: translateX(100%);
4
4
  }
5
- .universal-modal__appearActive_ua87x,
6
- .universal-modal__enterActive_ua87x {
5
+ .universal-modal__appearActive_1225a,
6
+ .universal-modal__enterActive_1225a {
7
7
  transform: translateX(0);
8
8
  transition: transform 280ms ease-in-out;
9
9
  transition-delay: 80ms;
10
10
  }
11
- .universal-modal__exit_ua87x {
11
+ .universal-modal__exit_1225a {
12
12
  transform: translateX(0);
13
13
  }
14
- .universal-modal__exitActive_ua87x,
15
- .universal-modal__exitDone_ua87x {
14
+ .universal-modal__exitActive_1225a,
15
+ .universal-modal__exitDone_1225a {
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_ua87x","enter":"universal-modal__enter_ua87x","appearActive":"universal-modal__appearActive_ua87x","enterActive":"universal-modal__enterActive_ua87x","exit":"universal-modal__exit_ua87x","exitActive":"universal-modal__exitActive_ua87x","exitDone":"universal-modal__exitDone_ua87x"};
3
+ const rightSideTransitions = {"appear":"universal-modal__appear_1225a","enter":"universal-modal__enter_1225a","appearActive":"universal-modal__appearActive_1225a","enterActive":"universal-modal__enterActive_1225a","exit":"universal-modal__exit_1225a","exitActive":"universal-modal__exitActive_1225a","exitDone":"universal-modal__exitDone_1225a"};
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_1t0py,
2
- .universal-modal__enter_1t0py {
1
+ .universal-modal__appear_mmw5o,
2
+ .universal-modal__enter_mmw5o {
3
3
  opacity: 0;
4
4
  transform: translateY(15px);
5
5
  }
6
6
 
7
- .universal-modal__appearActive_1t0py,
8
- .universal-modal__enterActive_1t0py {
7
+ .universal-modal__appearActive_mmw5o,
8
+ .universal-modal__enterActive_mmw5o {
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_1t0py {
16
+ .universal-modal__exit_mmw5o {
17
17
  opacity: 1;
18
18
  transform: translateY(0);
19
19
  }
20
20
 
21
- .universal-modal__exitActive_1t0py,
22
- .universal-modal__exitDone_1t0py {
21
+ .universal-modal__exitActive_mmw5o,
22
+ .universal-modal__exitDone_mmw5o {
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_1t0py","enter":"universal-modal__enter_1t0py","appearActive":"universal-modal__appearActive_1t0py","enterActive":"universal-modal__enterActive_1t0py","exit":"universal-modal__exit_1t0py","exitActive":"universal-modal__exitActive_1t0py","exitDone":"universal-modal__exitDone_1t0py"};
3
+ const transitions = {"appear":"universal-modal__appear_mmw5o","enter":"universal-modal__enter_mmw5o","appearActive":"universal-modal__appearActive_mmw5o","enterActive":"universal-modal__enterActive_mmw5o","exit":"universal-modal__exit_mmw5o","exitActive":"universal-modal__exitActive_mmw5o","exitDone":"universal-modal__exitDone_mmw5o"};
4
4
 
5
5
  export { transitions as default };
6
6
  //# sourceMappingURL=transitions.mobile.module.css.js.map
@@ -3,5 +3,5 @@ export interface BaseUniversalModalMobileProps {
3
3
  /** Сторона с которой будет появляться модальное окно */
4
4
  appearance?: 'bottom' | 'right';
5
5
  }
6
- export interface UniversalModalMobileProps extends BaseUniversalModalMobileProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'onClose' | 'disableFocusLock' | 'container' | 'disableAutoFocus'>> {
6
+ export interface UniversalModalMobileProps extends BaseUniversalModalMobileProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'onClose' | 'disableFocusLock' | 'container' | 'disableAutoFocus' | 'zIndex' | 'scrollLock'>> {
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import { BaseModalContext } from '@alfalab/core-components-base-modal/moderncssm';
2
2
  /**
3
- * @deprecated Некоторые параметры могут не соответствовать реальным состояниям компонента
3
+ * @deprecated В будущем контекст будет удалён. Обрабатывайте состояния компонента самостоятельно.
4
4
  */
5
5
  export declare const ModalContext: import("react").Context<BaseModalContext>;
@@ -1,7 +1,7 @@
1
1
  import { BaseModalContext } from '@alfalab/core-components-base-modal/moderncssm';
2
2
 
3
3
  /**
4
- * @deprecated Некоторые параметры могут не соответствовать реальным состояниям компонента
4
+ * @deprecated В будущем контекст будет удалён. Обрабатывайте состояния компонента самостоятельно.
5
5
  */
6
6
  const ModalContext = BaseModalContext;
7
7
 
@@ -1 +1 @@
1
- {"version":3,"file":"Context.js","sources":["../src/Context.ts"],"sourcesContent":["import { BaseModalContext } from '@alfalab/core-components-base-modal';\n\n/**\n * @deprecated Некоторые параметры могут не соответствовать реальным состояниям компонента\n */\nexport const ModalContext = BaseModalContext;\n"],"names":[],"mappings":";;AAEA;;AAEG;AACI,MAAM,YAAY,GAAG;;;;"}
1
+ {"version":3,"file":"Context.js","sources":["../src/Context.ts"],"sourcesContent":["import { BaseModalContext } from '@alfalab/core-components-base-modal';\n\n/**\n * @deprecated В будущем контекст будет удалён. Обрабатывайте состояния компонента самостоятельно.\n */\nexport const ModalContext = BaseModalContext;\n"],"names":[],"mappings":";;AAEA;;AAEG;AACI,MAAM,YAAY,GAAG;;;;"}
@@ -4,5 +4,5 @@ export declare const UniversalModalDesktopComponent: React.ForwardRefExoticCompo
4
4
  export declare const UniversalModalDesktop: React.ForwardRefExoticComponent<UniversalModalDesktopProps & React.RefAttributes<HTMLDivElement>> & {
5
5
  Header: React.ForwardRefExoticComponent<import("./components/header").HeaderDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
6
  Content: React.FC<import("../components/base-content").ContentProps>;
7
- Footer: React.ForwardRefExoticComponent<import("./components/footer").FooterDesktopProps & React.RefAttributes<HTMLDivElement>>;
7
+ Footer: React.ForwardRefExoticComponent<import("../components/base-footer").FooterProps & React.RefAttributes<HTMLDivElement>>;
8
8
  };
@@ -19,7 +19,7 @@ import transitions from './transitions/transitions.module.css';
19
19
  */
20
20
  const transitionProps = isMacOS() && isSafari() ? safariTransitions : transitions;
21
21
  const CenterModal = forwardRef((props, ref) => {
22
- const { dataTestId, className, open, children, width = 500, height = 'hugContent', verticalAlign = 'center', overlay = true, margin, scrollableContainerRef: scrollableContainerRefProp, onClose, ...restProps } = props;
22
+ const { dataTestId, className, open, children, width = 500, height = 'hugContent', verticalAlign = 'center', overlay = true, margin, scrollableContainerRef: scrollableContainerRefProp, onClose, wrapperClassName, ...restProps } = props;
23
23
  const componentRef = useRef(null);
24
24
  const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({
25
25
  overlay,
@@ -27,7 +27,7 @@ const CenterModal = forwardRef((props, ref) => {
27
27
  });
28
28
  const { isFullSizeModal, componentTransitions: fullSizeModalContentTransitions, backdropTransitions: fullSizeModalBackdropTransitions, } = getFullSizeModalTransitions({ verticalAlign, width, height });
29
29
  const withoutOverlay = !overlay;
30
- return (React.createElement(BaseModal, { ...restProps, open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, scrollHandler: 'content', disableBlockingScroll: withoutOverlay, wrapperClassName: cn(styles.baseModalContainer, {
30
+ return (React.createElement(BaseModal, { ...restProps, open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, scrollHandler: scrollableContainerRef, scrollContainerFillsViewport: false, disableBlockingScroll: withoutOverlay, wrapperClassName: cn(styles.baseModalContainer, wrapperClassName, {
31
31
  [styles.wrapperJustifyStart]: verticalAlign === 'top',
32
32
  [styles.wrapperJustifyCenter]: verticalAlign === 'center',
33
33
  [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 { getHeightCapStyles } from '../../utils/get-height-cap-styles';\nimport { getHeightValue } from '../../utils/get-height-value';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthCapStyles } from '../../utils/get-width-cap-styles';\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/*\n * в safari position:sticky некорректно синхронизируется с transform:scale на предке —\n * sticky-футер \"доезжает\" при анимации, поэтому применяем немного другую анимацию\n */\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(\n styles.component,\n className,\n styles.baseModalComponent,\n getMarginStyles({ styles, margin }),\n getHeightCapStyles({ styles, margin }),\n getWidthCapStyles({ styles, margin }),\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: width === 'fullWidth' ? '100%' : width,\n height: getHeightValue(height),\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;;;AAGG;AACH,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,KA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ACpB,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, type MutableRefObject, 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 { getHeightCapStyles } from '../../utils/get-height-cap-styles';\nimport { getHeightValue } from '../../utils/get-height-value';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthCapStyles } from '../../utils/get-width-cap-styles';\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/*\n * в safari position:sticky некорректно синхронизируется с transform:scale на предке —\n * sticky-футер \"доезжает\" при анимации, поэтому применяем немного другую анимацию\n */\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 wrapperClassName,\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={scrollableContainerRef as MutableRefObject<HTMLDivElement | null>}\n scrollContainerFillsViewport={false}\n disableBlockingScroll={withoutOverlay}\n wrapperClassName={cn(styles.baseModalContainer, wrapperClassName, {\n [styles.wrapperJustifyStart]: verticalAlign === 'top',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n [styles.withoutOverlay]: withoutOverlay,\n })}\n className={cn(\n styles.component,\n className,\n styles.baseModalComponent,\n getMarginStyles({ styles, margin }),\n getHeightCapStyles({ styles, margin }),\n getWidthCapStyles({ styles, margin }),\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: width === 'fullWidth' ? '100%' : width,\n height: getHeightValue(height),\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;;;AAGG;AACH,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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AE,MAAM,EAAE,CAAC,EACtC,iBAAiB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CACxC,EACD,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;gBACH,KAAK,EAAE,KAAK,KAAK,WAAW,GAAG,MAAM,GAAG,KAAK;AAC7C,gBAAA,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC;AACjC,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,9 +1,4 @@
1
1
  import React from 'react';
2
2
  import { type FooterProps } from '../../../components/base-footer';
3
- export interface FooterDesktopProps extends FooterProps {
4
- /**
5
- * Размер (только для desktop версии компонента)
6
- */
7
- size?: 's' | 500;
8
- }
9
- export declare const FooterDesktop: React.ForwardRefExoticComponent<FooterDesktopProps & React.RefAttributes<HTMLDivElement>>;
3
+ export type FooterDesktopProps = FooterProps;
4
+ export declare const FooterDesktop: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/desktop/components/footer/index.tsx"],"sourcesContent":["import React, { forwardRef, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { BaseFooter, type FooterProps } from '../../../components/base-footer';\nimport { ModalContext } from '../../../Context';\nimport { UniversalModalContext } from '../../context';\n\nimport styles from './desktop.module.css';\nimport layoutStyles from './layout.module.css';\n\nconst FOOTER_MEDIUM_BREAKPOINT = 800;\n\nexport interface FooterDesktopProps extends FooterProps {\n /**\n * Размер (только для desktop версии компонента)\n */\n size?: 's' | 500;\n}\n\nexport const FooterDesktop = forwardRef<HTMLDivElement, FooterDesktopProps>((props, ref) => {\n const { className, sticky, layout = 'start', ...restProps } = props;\n const { width: modalWidth } = useContext(UniversalModalContext);\n const { footerHighlighted: modalFooterHighlighted } = useContext(ModalContext);\n\n const isMiddle = modalWidth === 'fullWidth' || modalWidth >= FOOTER_MEDIUM_BREAKPOINT;\n\n return (\n <BaseFooter\n ref={ref}\n className={cn(layoutStyles[layout], className, {\n [styles.sticky]: sticky,\n [layoutStyles.middle]: isMiddle,\n })}\n sticky={sticky}\n layout={layout}\n isHighlighted={modalFooterHighlighted}\n {...restProps}\n />\n );\n});\n\nFooterDesktop.displayName = 'FooterDesktop';\n"],"names":[],"mappings":";;;;;;;;AAUA,MAAM,wBAAwB,GAAG,GAAG;AASvB,MAAA,aAAa,GAAG,UAAU,CAAqC,CAAC,KAAK,EAAE,GAAG,KAAI;AACvF,IAAA,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;IACnE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAC/D,MAAM,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC;IAE9E,MAAM,QAAQ,GAAG,UAAU,KAAK,WAAW,IAAI,UAAU,IAAI,wBAAwB;AAErF,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,UAAU,IACP,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE;AAC3C,YAAA,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM;AACvB,YAAA,CAAC,YAAY,CAAC,MAAM,GAAG,QAAQ;AAClC,SAAA,CAAC,EACF,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,sBAAsB,EAAA,GACjC,SAAS,EAAA,CACf;AAEV,CAAC;AAED,aAAa,CAAC,WAAW,GAAG,eAAe;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/desktop/components/footer/index.tsx"],"sourcesContent":["import React, { forwardRef, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { BaseFooter, type FooterProps } from '../../../components/base-footer';\nimport { ModalContext } from '../../../Context';\nimport { UniversalModalContext } from '../../context';\n\nimport styles from './desktop.module.css';\nimport layoutStyles from './layout.module.css';\n\nconst FOOTER_MEDIUM_BREAKPOINT = 800;\n\nexport type FooterDesktopProps = FooterProps;\n\nexport const FooterDesktop = forwardRef<HTMLDivElement, FooterDesktopProps>((props, ref) => {\n const { className, sticky, layout = 'start', ...restProps } = props;\n const { width: modalWidth } = useContext(UniversalModalContext);\n const { footerHighlighted: modalFooterHighlighted } = useContext(ModalContext);\n\n const isMiddle = modalWidth === 'fullWidth' || modalWidth >= FOOTER_MEDIUM_BREAKPOINT;\n\n return (\n <BaseFooter\n ref={ref}\n className={cn(layoutStyles[layout], className, {\n [styles.sticky]: sticky,\n [layoutStyles.middle]: isMiddle,\n })}\n sticky={sticky}\n layout={layout}\n isHighlighted={modalFooterHighlighted}\n {...restProps}\n />\n );\n});\n\nFooterDesktop.displayName = 'FooterDesktop';\n"],"names":[],"mappings":";;;;;;;;AAUA,MAAM,wBAAwB,GAAG,GAAG;AAIvB,MAAA,aAAa,GAAG,UAAU,CAAqC,CAAC,KAAK,EAAE,GAAG,KAAI;AACvF,IAAA,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;IACnE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAC/D,MAAM,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC;IAE9E,MAAM,QAAQ,GAAG,UAAU,KAAK,WAAW,IAAI,UAAU,IAAI,wBAAwB;AAErF,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,UAAU,IACP,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE;AAC3C,YAAA,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM;AACvB,YAAA,CAAC,YAAY,CAAC,MAAM,GAAG,QAAQ;AAClC,SAAA,CAAC,EACF,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,sBAAsB,EAAA,GACjC,SAAS,EAAA,CACf;AAEV,CAAC;AAED,aAAa,CAAC,WAAW,GAAG,eAAe;;;;"}
@@ -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
  }
@@ -1,21 +1,16 @@
1
1
  import React, { useRef } from 'react';
2
- import mergeRefs from 'react-merge-refs';
3
2
  import cn from 'classnames';
4
3
  import { Scrollbar } from '@alfalab/core-components-scrollbar/moderncssm';
5
- import { useModalHighlighted } from '../../hooks/use-modal-highlighted.js';
6
4
  import { useSetScrollbarHeight } from '../../hooks/use-set-scrollbar-height.js';
7
5
  import { setFooterAndHeaderRefs } from '../../utils/set-footer-and-header-refs.js';
8
6
  import styles from './modal-content.module.css';
9
7
 
10
8
  const ModalContent = (props) => {
11
9
  const { children, height, scrollableContainerRef = null } = props;
12
- const scrollableNodeRef = useRef(null);
13
- const scrollbarContentNodeRef = useRef(null);
14
10
  const scrollbarRef = useRef(null);
15
11
  const verticalBarRef = useRef(null);
16
12
  const headerElementRef = useRef(null);
17
13
  const footerElementRef = useRef(null);
18
- const { handleScroll } = useModalHighlighted({ scrollbarContentNodeRef, scrollableNodeRef });
19
14
  const { enhancedChildren } = setFooterAndHeaderRefs({
20
15
  children,
21
16
  headerElementRef,
@@ -23,14 +18,13 @@ const ModalContent = (props) => {
23
18
  });
24
19
  useSetScrollbarHeight({ scrollbarRef, verticalBarRef, headerElementRef, footerElementRef });
25
20
  return (React.createElement(Scrollbar, { className: styles.scrollable, ref: scrollbarRef, verticalBarRef: verticalBarRef, scrollableNodeProps: {
26
- ref: mergeRefs([scrollableNodeRef, scrollableContainerRef]),
21
+ ref: scrollableContainerRef,
27
22
  className: styles.scrollableNode,
28
23
  }, contentNodeProps: {
29
- ref: scrollbarContentNodeRef,
30
24
  className: cn(styles.contentNode, {
31
25
  [styles.hugContent]: height === 'hugContent',
32
26
  }),
33
- }, onContentScroll: handleScroll }, enhancedChildren));
27
+ } }, enhancedChildren));
34
28
  };
35
29
 
36
30
  export { ModalContent };
@@ -1 +1 @@
1
- {"version":3,"file":"modal-content.js","sources":["../../../../src/desktop/components/modal-content/modal-content.tsx"],"sourcesContent":["import React, { type FC, useRef } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { type BaseModalProps } from '@alfalab/core-components-base-modal';\nimport { Scrollbar } from '@alfalab/core-components-scrollbar';\n\nimport { useModalHighlighted } from '../../hooks/use-modal-highlighted';\nimport { useSetScrollbarHeight } from '../../hooks/use-set-scrollbar-height';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { setFooterAndHeaderRefs } from '../../utils/set-footer-and-header-refs';\n\nimport styles from './modal-content.module.css';\n\ntype PickedBaseModalProps = Pick<BaseModalProps, 'children'>;\ntype PickedUniversalModalDesktopProps = Pick<\n UniversalModalDesktopProps,\n 'height' | 'scrollableContainerRef'\n>;\n\ntype Props = PickedBaseModalProps & PickedUniversalModalDesktopProps;\n\nexport const ModalContent: FC<Props> = (props) => {\n const { children, height, scrollableContainerRef = null } = props;\n\n const scrollableNodeRef = useRef<HTMLDivElement>(null);\n const scrollbarContentNodeRef = useRef<HTMLDivElement>(null);\n const scrollbarRef = useRef<HTMLDivElement | null>(null);\n const verticalBarRef = useRef<HTMLDivElement>(null);\n const headerElementRef = useRef<HTMLDivElement>(null);\n const footerElementRef = useRef<HTMLDivElement | null>(null);\n\n const { handleScroll } = useModalHighlighted({ scrollbarContentNodeRef, scrollableNodeRef });\n\n const { enhancedChildren } = setFooterAndHeaderRefs({\n children,\n headerElementRef,\n footerElementRef,\n });\n\n useSetScrollbarHeight({ scrollbarRef, verticalBarRef, headerElementRef, footerElementRef });\n\n return (\n <Scrollbar\n className={styles.scrollable}\n ref={scrollbarRef}\n verticalBarRef={verticalBarRef}\n scrollableNodeProps={{\n ref: mergeRefs([scrollableNodeRef, scrollableContainerRef]),\n className: styles.scrollableNode,\n }}\n contentNodeProps={{\n ref: scrollbarContentNodeRef,\n className: cn(styles.contentNode, {\n [styles.hugContent]: height === 'hugContent',\n }),\n }}\n onContentScroll={handleScroll}\n >\n {enhancedChildren}\n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AAC,UAAU,GAAG,MAAM,KAAK,YAAY;aAC/C,CAAC;AACL,SAAA,EACD,eAAe,EAAE,YAAY,IAE5B,gBAAgB,CACT;AAEpB;;;;"}
1
+ {"version":3,"file":"modal-content.js","sources":["../../../../src/desktop/components/modal-content/modal-content.tsx"],"sourcesContent":["import React, { type FC, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { type BaseModalProps } from '@alfalab/core-components-base-modal';\nimport { Scrollbar } from '@alfalab/core-components-scrollbar';\n\nimport { useSetScrollbarHeight } from '../../hooks/use-set-scrollbar-height';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { setFooterAndHeaderRefs } from '../../utils/set-footer-and-header-refs';\n\nimport styles from './modal-content.module.css';\n\ntype PickedBaseModalProps = Pick<BaseModalProps, 'children'>;\ntype PickedUniversalModalDesktopProps = Pick<\n UniversalModalDesktopProps,\n 'height' | 'scrollableContainerRef'\n>;\n\ntype Props = PickedBaseModalProps & PickedUniversalModalDesktopProps;\n\nexport const ModalContent: FC<Props> = (props) => {\n const { children, height, scrollableContainerRef = null } = props;\n\n const scrollbarRef = useRef<HTMLDivElement | null>(null);\n const verticalBarRef = useRef<HTMLDivElement>(null);\n const headerElementRef = useRef<HTMLDivElement>(null);\n const footerElementRef = useRef<HTMLDivElement | null>(null);\n\n const { enhancedChildren } = setFooterAndHeaderRefs({\n children,\n headerElementRef,\n footerElementRef,\n });\n\n useSetScrollbarHeight({ scrollbarRef, verticalBarRef, headerElementRef, footerElementRef });\n\n return (\n <Scrollbar\n className={styles.scrollable}\n ref={scrollbarRef}\n verticalBarRef={verticalBarRef}\n scrollableNodeProps={{\n ref: scrollableContainerRef,\n className: styles.scrollableNode,\n }}\n contentNodeProps={{\n className: cn(styles.contentNode, {\n [styles.hugContent]: height === 'hugContent',\n }),\n }}\n >\n {enhancedChildren}\n </Scrollbar>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAoBa,MAAA,YAAY,GAAc,CAAC,KAAK,KAAI;IAC7C,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,sBAAsB,GAAG,IAAI,EAAE,GAAG,KAAK;AAEjE,IAAA,MAAM,YAAY,GAAG,MAAM,CAAwB,IAAI,CAAC;AACxD,IAAA,MAAM,cAAc,GAAG,MAAM,CAAiB,IAAI,CAAC;AACnD,IAAA,MAAM,gBAAgB,GAAG,MAAM,CAAiB,IAAI,CAAC;AACrD,IAAA,MAAM,gBAAgB,GAAG,MAAM,CAAwB,IAAI,CAAC;AAE5D,IAAA,MAAM,EAAE,gBAAgB,EAAE,GAAG,sBAAsB,CAAC;QAChD,QAAQ;QACR,gBAAgB;QAChB,gBAAgB;AACnB,KAAA,CAAC;IAEF,qBAAqB,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;AAE3F,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,IACN,SAAS,EAAE,MAAM,CAAC,UAAU,EAC5B,GAAG,EAAE,YAAY,EACjB,cAAc,EAAE,cAAc,EAC9B,mBAAmB,EAAE;AACjB,YAAA,GAAG,EAAE,sBAAsB;YAC3B,SAAS,EAAE,MAAM,CAAC,cAAc;AACnC,SAAA,EACD,gBAAgB,EAAE;AACd,YAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE;AAC9B,gBAAA,CAAC,MAAM,CAAC,UAAU,GAAG,MAAM,KAAK,YAAY;aAC/C,CAAC;SACL,EAEA,EAAA,gBAAgB,CACT;AAEpB;;;;"}
@@ -12,7 +12,7 @@ import { getDefaultTransitionProps } from './get-default-transition-props.js';
12
12
  import styles from './index.module.css';
13
13
 
14
14
  const SideModal = forwardRef((props, ref) => {
15
- const { width = 500, height = 'fullHeight', horizontalAlign = 'center', verticalAlign = 'center', overlay = true, open, dataTestId, className, children, margin, scrollableContainerRef: scrollableContainerRefProp, onClose, ...restProps } = props;
15
+ const { width = 500, height = 'fullHeight', horizontalAlign = 'center', verticalAlign = 'center', overlay = true, open, dataTestId, className, children, margin, scrollableContainerRef: scrollableContainerRefProp, onClose, wrapperClassName, ...restProps } = props;
16
16
  const componentRef = useRef(null);
17
17
  const contentRef = useRef(null);
18
18
  const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({
@@ -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', disableBlockingScroll: withoutOverlay, wrapperClassName: cn(styles.wrapper, styles.baseModalContainer, {
24
+ return (React.createElement(BaseModal, { ...restProps, open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, contentElementRef: contentRef, scrollHandler: scrollableContainerRef, scrollContainerFillsViewport: false, disableBlockingScroll: withoutOverlay, wrapperClassName: cn(styles.wrapper, styles.baseModalContainer, wrapperClassName, {
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 { getHeightCapStyles } from '../../utils/get-height-cap-styles';\nimport { getHeightValue } from '../../utils/get-height-value';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthCapStyles } from '../../utils/get-width-cap-styles';\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(\n styles.component,\n className,\n styles.baseModalComponent,\n getMarginStyles({ styles, margin }),\n getHeightCapStyles({ styles, margin }),\n getWidthCapStyles({ styles, margin }),\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: width === 'fullWidth' ? '100%' : width,\n height: getHeightValue(height),\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,EAC1B,iBAAiB,EAAE,UAAU,EAC7B,aAAa,EAAC,SAAS,EACvB,qBAAqB,EAAE,cAAc,EACrC,gBAAgB,EAAE,EAAE,CAAC,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AY,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, type MutableRefObject, 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 { getHeightCapStyles } from '../../utils/get-height-cap-styles';\nimport { getHeightValue } from '../../utils/get-height-value';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthCapStyles } from '../../utils/get-width-cap-styles';\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 wrapperClassName,\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={scrollableContainerRef as MutableRefObject<HTMLDivElement | null>}\n scrollContainerFillsViewport={false}\n disableBlockingScroll={withoutOverlay}\n wrapperClassName={cn(styles.wrapper, styles.baseModalContainer, wrapperClassName, {\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(\n styles.component,\n className,\n styles.baseModalComponent,\n getMarginStyles({ styles, margin }),\n getHeightCapStyles({ styles, margin }),\n getWidthCapStyles({ styles, margin }),\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: width === 'fullWidth' ? '100%' : width,\n height: getHeightValue(height),\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;IAC3F,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,gBAAgB,EAChB,GAAG,SAAS,EACf,GAAG,KAAK;AACT,IAAA,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC;AACjD,IAAA,MAAM,U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B,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CACxC,EACD,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;gBACH,KAAK,EAAE,KAAK,KAAK,WAAW,GAAG,MAAM,GAAG,KAAK;AAC7C,gBAAA,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC;AACjC,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;;;;"}
@@ -36,7 +36,7 @@ export interface BaseUniversalModalProps {
36
36
  */
37
37
  margin?: Margin;
38
38
  }
39
- export interface UniversalModalDesktopProps extends BaseUniversalModalProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'disableBackdropClick' | 'onClose' | 'disableFocusLock' | 'container' | 'disableRestoreFocus' | 'disableAutoFocus'>> {
39
+ export interface UniversalModalDesktopProps extends BaseUniversalModalProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'disableBackdropClick' | 'onClose' | 'disableFocusLock' | 'container' | 'disableRestoreFocus' | 'disableAutoFocus' | 'zIndex'>> {
40
40
  /**
41
41
  * Реф контейнера на котором происходит scroll
42
42
  */
@@ -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
  }
@@ -3,5 +3,5 @@ export interface BaseUniversalModalMobileProps {
3
3
  /** Сторона с которой будет появляться модальное окно */
4
4
  appearance?: 'bottom' | 'right';
5
5
  }
6
- export interface UniversalModalMobileProps extends BaseUniversalModalMobileProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'onClose' | 'disableFocusLock' | 'container' | 'disableAutoFocus'>> {
6
+ export interface UniversalModalMobileProps extends BaseUniversalModalMobileProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'onClose' | 'disableFocusLock' | 'container' | 'disableAutoFocus' | 'zIndex' | 'scrollLock'>> {
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-universal-modal",
3
- "version": "3.2.5",
3
+ "version": "3.2.6-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.14",
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.2.0-alfasans",
18
+ "@alfalab/core-components-mq": "6.0.7-alfasans",
19
+ "@alfalab/core-components-navigation-bar-private": "2.0.14-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.3.0-alfasans"
38
38
  }
package/src/Context.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BaseModalContext } from '@alfalab/core-components-base-modal';
2
2
 
3
3
  /**
4
- * @deprecated Некоторые параметры могут не соответствовать реальным состояниям компонента
4
+ * @deprecated В будущем контекст будет удалён. Обрабатывайте состояния компонента самостоятельно.
5
5
  */
6
6
  export const ModalContext = BaseModalContext;