@alfalab/core-components-universal-modal 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (684) hide show
  1. package/Component.responsive.d.ts +3 -12
  2. package/Component.responsive.js.map +1 -1
  3. package/Context.js.map +1 -1
  4. package/components/content/base-content/base-content.d.ts +3 -3
  5. package/components/content/base-content/base-content.js.map +1 -1
  6. package/components/content/base-content/index.css +1 -1
  7. package/components/content/base-content/index.module.css.js +1 -1
  8. package/components/content/desktop/Component.desktop.d.ts +4 -4
  9. package/components/content/desktop/Component.desktop.js.map +1 -1
  10. package/components/content/desktop/desktop.css +2 -2
  11. package/components/content/desktop/desktop.module.css.js +1 -1
  12. package/components/content/mobile/Component.mobile.d.ts +2 -2
  13. package/components/content/mobile/Component.mobile.js.map +1 -1
  14. package/components/content/mobile/mobile.css +4 -4
  15. package/components/content/mobile/mobile.module.css.js +1 -1
  16. package/components/content/responsive/Component.responsive.d.ts +5 -4
  17. package/components/content/responsive/Component.responsive.js.map +1 -1
  18. package/components/footer/base-footer/base-footer.d.ts +3 -3
  19. package/components/footer/base-footer/base-footer.js.map +1 -1
  20. package/components/footer/base-footer/index.css +6 -4
  21. package/components/footer/base-footer/index.module.css.js +1 -1
  22. package/components/footer/base-footer/index.module.css.js.map +1 -1
  23. package/components/footer/desktop/Component.desktop.d.ts +4 -9
  24. package/components/footer/desktop/Component.desktop.js.map +1 -1
  25. package/components/footer/desktop/desktop.css +1 -1
  26. package/components/footer/desktop/desktop.module.css.js +1 -1
  27. package/components/footer/desktop/layout.css +11 -14
  28. package/components/footer/desktop/layout.module.css.js +1 -1
  29. package/components/footer/mobile/Component.mobile.d.ts +2 -2
  30. package/components/footer/mobile/Component.mobile.js.map +1 -1
  31. package/components/footer/mobile/layout.mobile.css +9 -11
  32. package/components/footer/mobile/layout.mobile.module.css.js +1 -1
  33. package/components/footer/mobile/mobile.css +2 -2
  34. package/components/footer/mobile/mobile.module.css.js +1 -1
  35. package/components/footer/responsive/Component.responsive.d.ts +4 -3
  36. package/components/footer/responsive/Component.responsive.js.map +1 -1
  37. package/components/header/base-header/index.css +17 -15
  38. package/components/header/base-header/index.module.css.js +1 -1
  39. package/components/header/base-header/index.module.css.js.map +1 -1
  40. package/components/header/desktop/Component.desktop.d.ts +4 -10
  41. package/components/header/desktop/Component.desktop.js.map +1 -1
  42. package/components/header/desktop/desktop.css +12 -12
  43. package/components/header/desktop/desktop.module.css.js +1 -1
  44. package/components/header/mobile/Component.mobile.d.ts +2 -2
  45. package/components/header/mobile/Component.mobile.js.map +1 -1
  46. package/components/header/mobile/mobile.css +6 -6
  47. package/components/header/mobile/mobile.module.css.js +1 -1
  48. package/components/header/mobile/mobile.module.css.js.map +1 -1
  49. package/components/header/responsive/Component.responsive.d.ts +4 -3
  50. package/components/header/responsive/Component.responsive.js.map +1 -1
  51. package/context/universal-modal-context.d.ts +1 -1
  52. package/context/universal-modal-context.js.map +1 -1
  53. package/cssm/Component.responsive.d.ts +3 -12
  54. package/cssm/Component.responsive.js.map +1 -1
  55. package/cssm/Context.js.map +1 -1
  56. package/cssm/components/content/base-content/base-content.d.ts +3 -3
  57. package/cssm/components/content/base-content/base-content.js.map +1 -1
  58. package/cssm/components/content/desktop/Component.desktop.d.ts +4 -4
  59. package/cssm/components/content/desktop/Component.desktop.js.map +1 -1
  60. package/cssm/components/content/mobile/Component.mobile.d.ts +2 -2
  61. package/cssm/components/content/mobile/Component.mobile.js.map +1 -1
  62. package/cssm/components/content/mobile/mobile.module.css +1 -1
  63. package/cssm/components/content/responsive/Component.responsive.d.ts +5 -4
  64. package/cssm/components/content/responsive/Component.responsive.js.map +1 -1
  65. package/cssm/components/footer/base-footer/base-footer.d.ts +3 -3
  66. package/cssm/components/footer/base-footer/base-footer.js.map +1 -1
  67. package/cssm/components/footer/base-footer/index.module.css +3 -1
  68. package/cssm/components/footer/desktop/Component.desktop.d.ts +4 -9
  69. package/cssm/components/footer/desktop/Component.desktop.js.map +1 -1
  70. package/cssm/components/footer/desktop/layout.module.css +2 -5
  71. package/cssm/components/footer/mobile/Component.mobile.d.ts +2 -2
  72. package/cssm/components/footer/mobile/Component.mobile.js.map +1 -1
  73. package/cssm/components/footer/mobile/layout.mobile.module.css +1 -3
  74. package/cssm/components/footer/responsive/Component.responsive.d.ts +4 -3
  75. package/cssm/components/footer/responsive/Component.responsive.js.map +1 -1
  76. package/cssm/components/header/base-header/index.module.css +5 -3
  77. package/cssm/components/header/desktop/Component.desktop.d.ts +4 -10
  78. package/cssm/components/header/desktop/Component.desktop.js.map +1 -1
  79. package/cssm/components/header/desktop/desktop.module.css +4 -4
  80. package/cssm/components/header/mobile/Component.mobile.d.ts +2 -2
  81. package/cssm/components/header/mobile/Component.mobile.js.map +1 -1
  82. package/cssm/components/header/mobile/mobile.module.css +2 -2
  83. package/cssm/components/header/responsive/Component.responsive.d.ts +4 -3
  84. package/cssm/components/header/responsive/Component.responsive.js.map +1 -1
  85. package/cssm/context/universal-modal-context.d.ts +1 -1
  86. package/cssm/context/universal-modal-context.js.map +1 -1
  87. package/cssm/desktop/Component.desktop.d.ts +5 -12
  88. package/cssm/desktop/Component.desktop.js.map +1 -1
  89. package/cssm/desktop/components/buttons/arrow-button/arrow-button.d.ts +3 -3
  90. package/cssm/desktop/components/buttons/arrow-button/arrow-button.js.map +1 -1
  91. package/cssm/desktop/components/buttons/cross-button/cross-button.d.ts +3 -3
  92. package/cssm/desktop/components/buttons/cross-button/cross-button.js.map +1 -1
  93. package/cssm/desktop/components/center-modal/center-modal.d.ts +2 -3
  94. package/cssm/desktop/components/center-modal/center-modal.js.map +1 -1
  95. package/cssm/desktop/components/center-modal/index.module.css +5 -3
  96. package/cssm/desktop/components/center-modal/transitions/safari-transitions.module.css +6 -2
  97. package/cssm/desktop/components/center-modal/transitions/transitions.module.css +6 -2
  98. package/cssm/desktop/components/modal-content/modal-content.d.ts +5 -5
  99. package/cssm/desktop/components/modal-content/modal-content.js.map +1 -1
  100. package/cssm/desktop/components/modal-content/modal-content.module.css +3 -3
  101. package/cssm/desktop/components/side-modal/get-default-transition-props.d.ts +3 -3
  102. package/cssm/desktop/components/side-modal/get-default-transition-props.js.map +1 -1
  103. package/cssm/desktop/components/side-modal/index.module.css +5 -3
  104. package/cssm/desktop/components/side-modal/side-modal.d.ts +2 -3
  105. package/cssm/desktop/components/side-modal/side-modal.js.map +1 -1
  106. package/cssm/desktop/hooks/use-modal-highlighted.d.ts +3 -3
  107. package/cssm/desktop/hooks/use-modal-highlighted.js.map +1 -1
  108. package/cssm/desktop/hooks/use-outside-scroll.d.ts +3 -3
  109. package/cssm/desktop/hooks/use-outside-scroll.js.map +1 -1
  110. package/cssm/desktop/hooks/use-set-scrollbar-height.d.ts +3 -3
  111. package/cssm/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
  112. package/cssm/desktop/hooks/useModalWheel.d.ts +1 -1
  113. package/cssm/desktop/hooks/useModalWheel.js.map +1 -1
  114. package/cssm/desktop/styles/transitions/full-size-backdrop-transitions.module.css +2 -1
  115. package/cssm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css +6 -2
  116. package/cssm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css +6 -2
  117. package/cssm/desktop/types/props.d.ts +7 -7
  118. package/cssm/desktop/utils/check-header-and-footer.d.ts +1 -1
  119. package/cssm/desktop/utils/check-header-and-footer.js.map +1 -1
  120. package/cssm/desktop/utils/get-full-size-modal-transitions.d.ts +7 -7
  121. package/cssm/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
  122. package/cssm/desktop/utils/get-height-style.d.ts +1 -1
  123. package/cssm/desktop/utils/get-height-style.js.map +1 -1
  124. package/cssm/desktop/utils/get-margin-styles.d.ts +3 -3
  125. package/cssm/desktop/utils/get-margin-styles.js.map +1 -1
  126. package/cssm/desktop/utils/get-max-height-style.d.ts +1 -1
  127. package/cssm/desktop/utils/get-max-height-style.js.map +1 -1
  128. package/cssm/desktop/utils/get-width-style.d.ts +1 -1
  129. package/cssm/desktop/utils/get-width-style.js.map +1 -1
  130. package/cssm/desktop/utils/set-footer-and-header-refs.d.ts +3 -3
  131. package/cssm/desktop/utils/set-footer-and-header-refs.js.map +1 -1
  132. package/cssm/mobile/Component.mobile.d.ts +3 -2
  133. package/cssm/mobile/Component.mobile.js.map +1 -1
  134. package/cssm/mobile/components/buttons/arrow-button/arrow-button.d.ts +3 -3
  135. package/cssm/mobile/components/buttons/arrow-button/arrow-button.js.map +1 -1
  136. package/cssm/mobile/components/buttons/cross-button/cross-button.d.ts +3 -3
  137. package/cssm/mobile/components/buttons/cross-button/cross-button.js.map +1 -1
  138. package/cssm/mobile/mobile.module.css +1 -1
  139. package/cssm/mobile/transitions/transitions.mobile.module.css +6 -2
  140. package/cssm/mobile/types/props.d.ts +5 -4
  141. package/cssm/typings/index.d.ts +6 -6
  142. package/cssm/typings/margin-type.d.ts +2 -2
  143. package/desktop/Component.desktop.d.ts +5 -12
  144. package/desktop/Component.desktop.js.map +1 -1
  145. package/desktop/components/buttons/arrow-button/arrow-button.css +1 -1
  146. package/desktop/components/buttons/arrow-button/arrow-button.d.ts +3 -3
  147. package/desktop/components/buttons/arrow-button/arrow-button.js.map +1 -1
  148. package/desktop/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
  149. package/desktop/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
  150. package/desktop/components/buttons/cross-button/cross-button.css +1 -1
  151. package/desktop/components/buttons/cross-button/cross-button.d.ts +3 -3
  152. package/desktop/components/buttons/cross-button/cross-button.js.map +1 -1
  153. package/desktop/components/buttons/cross-button/cross-button.module.css.js +1 -1
  154. package/desktop/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
  155. package/desktop/components/center-modal/center-modal.d.ts +2 -3
  156. package/desktop/components/center-modal/center-modal.js.map +1 -1
  157. package/desktop/components/center-modal/index.css +526 -524
  158. package/desktop/components/center-modal/index.module.css.js +1 -1
  159. package/desktop/components/center-modal/transitions/safari-transitions.css +13 -9
  160. package/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  161. package/desktop/components/center-modal/transitions/safari-transitions.module.css.js.map +1 -1
  162. package/desktop/components/center-modal/transitions/transitions.css +13 -9
  163. package/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  164. package/desktop/components/center-modal/transitions/transitions.module.css.js.map +1 -1
  165. package/desktop/components/modal-content/modal-content.css +7 -7
  166. package/desktop/components/modal-content/modal-content.d.ts +5 -5
  167. package/desktop/components/modal-content/modal-content.js.map +1 -1
  168. package/desktop/components/modal-content/modal-content.module.css.js +1 -1
  169. package/desktop/components/modal-content/modal-content.module.css.js.map +1 -1
  170. package/desktop/components/side-modal/get-default-transition-props.d.ts +3 -3
  171. package/desktop/components/side-modal/get-default-transition-props.js.map +1 -1
  172. package/desktop/components/side-modal/index.css +528 -526
  173. package/desktop/components/side-modal/index.module.css.js +1 -1
  174. package/desktop/components/side-modal/side-modal.d.ts +2 -3
  175. package/desktop/components/side-modal/side-modal.js.map +1 -1
  176. package/desktop/components/side-modal/transitions/transitions.css +71 -71
  177. package/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  178. package/desktop/hooks/use-modal-highlighted.d.ts +3 -3
  179. package/desktop/hooks/use-modal-highlighted.js.map +1 -1
  180. package/desktop/hooks/use-outside-scroll.d.ts +3 -3
  181. package/desktop/hooks/use-outside-scroll.js.map +1 -1
  182. package/desktop/hooks/use-set-scrollbar-height.d.ts +3 -3
  183. package/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
  184. package/desktop/hooks/useModalWheel.d.ts +1 -1
  185. package/desktop/hooks/useModalWheel.js.map +1 -1
  186. package/desktop/styles/transitions/full-size-backdrop-transitions.css +14 -13
  187. package/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  188. package/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js.map +1 -1
  189. package/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +13 -9
  190. package/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  191. package/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js.map +1 -1
  192. package/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  193. package/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  194. package/desktop/styles/transitions/full-size-vertical-top-transitions.css +13 -9
  195. package/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  196. package/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js.map +1 -1
  197. package/desktop/types/props.d.ts +7 -7
  198. package/desktop/utils/check-header-and-footer.d.ts +1 -1
  199. package/desktop/utils/check-header-and-footer.js.map +1 -1
  200. package/desktop/utils/get-full-size-modal-transitions.d.ts +7 -7
  201. package/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
  202. package/desktop/utils/get-height-style.d.ts +1 -1
  203. package/desktop/utils/get-height-style.js.map +1 -1
  204. package/desktop/utils/get-margin-styles.d.ts +3 -3
  205. package/desktop/utils/get-margin-styles.js.map +1 -1
  206. package/desktop/utils/get-max-height-style.d.ts +1 -1
  207. package/desktop/utils/get-max-height-style.js.map +1 -1
  208. package/desktop/utils/get-width-style.d.ts +1 -1
  209. package/desktop/utils/get-width-style.js.map +1 -1
  210. package/desktop/utils/set-footer-and-header-refs.d.ts +3 -3
  211. package/desktop/utils/set-footer-and-header-refs.js.map +1 -1
  212. package/esm/Component.responsive.d.ts +3 -12
  213. package/esm/Component.responsive.js.map +1 -1
  214. package/esm/Context.js.map +1 -1
  215. package/esm/components/content/base-content/base-content.d.ts +3 -3
  216. package/esm/components/content/base-content/base-content.js.map +1 -1
  217. package/esm/components/content/base-content/index.css +1 -1
  218. package/esm/components/content/base-content/index.module.css.js +1 -1
  219. package/esm/components/content/desktop/Component.desktop.d.ts +4 -4
  220. package/esm/components/content/desktop/Component.desktop.js.map +1 -1
  221. package/esm/components/content/desktop/desktop.css +2 -2
  222. package/esm/components/content/desktop/desktop.module.css.js +1 -1
  223. package/esm/components/content/mobile/Component.mobile.d.ts +2 -2
  224. package/esm/components/content/mobile/Component.mobile.js.map +1 -1
  225. package/esm/components/content/mobile/mobile.css +4 -4
  226. package/esm/components/content/mobile/mobile.module.css.js +1 -1
  227. package/esm/components/content/responsive/Component.responsive.d.ts +5 -4
  228. package/esm/components/content/responsive/Component.responsive.js.map +1 -1
  229. package/esm/components/footer/base-footer/base-footer.d.ts +3 -3
  230. package/esm/components/footer/base-footer/base-footer.js.map +1 -1
  231. package/esm/components/footer/base-footer/index.css +6 -4
  232. package/esm/components/footer/base-footer/index.module.css.js +1 -1
  233. package/esm/components/footer/base-footer/index.module.css.js.map +1 -1
  234. package/esm/components/footer/desktop/Component.desktop.d.ts +4 -9
  235. package/esm/components/footer/desktop/Component.desktop.js.map +1 -1
  236. package/esm/components/footer/desktop/desktop.css +1 -1
  237. package/esm/components/footer/desktop/desktop.module.css.js +1 -1
  238. package/esm/components/footer/desktop/layout.css +11 -14
  239. package/esm/components/footer/desktop/layout.module.css.js +1 -1
  240. package/esm/components/footer/mobile/Component.mobile.d.ts +2 -2
  241. package/esm/components/footer/mobile/Component.mobile.js.map +1 -1
  242. package/esm/components/footer/mobile/layout.mobile.css +9 -11
  243. package/esm/components/footer/mobile/layout.mobile.module.css.js +1 -1
  244. package/esm/components/footer/mobile/mobile.css +2 -2
  245. package/esm/components/footer/mobile/mobile.module.css.js +1 -1
  246. package/esm/components/footer/responsive/Component.responsive.d.ts +4 -3
  247. package/esm/components/footer/responsive/Component.responsive.js.map +1 -1
  248. package/esm/components/header/base-header/index.css +17 -15
  249. package/esm/components/header/base-header/index.module.css.js +1 -1
  250. package/esm/components/header/base-header/index.module.css.js.map +1 -1
  251. package/esm/components/header/desktop/Component.desktop.d.ts +4 -10
  252. package/esm/components/header/desktop/Component.desktop.js.map +1 -1
  253. package/esm/components/header/desktop/desktop.css +12 -12
  254. package/esm/components/header/desktop/desktop.module.css.js +1 -1
  255. package/esm/components/header/mobile/Component.mobile.d.ts +2 -2
  256. package/esm/components/header/mobile/Component.mobile.js.map +1 -1
  257. package/esm/components/header/mobile/mobile.css +6 -6
  258. package/esm/components/header/mobile/mobile.module.css.js +1 -1
  259. package/esm/components/header/mobile/mobile.module.css.js.map +1 -1
  260. package/esm/components/header/responsive/Component.responsive.d.ts +4 -3
  261. package/esm/components/header/responsive/Component.responsive.js.map +1 -1
  262. package/esm/context/universal-modal-context.d.ts +1 -1
  263. package/esm/context/universal-modal-context.js.map +1 -1
  264. package/esm/desktop/Component.desktop.d.ts +5 -12
  265. package/esm/desktop/Component.desktop.js.map +1 -1
  266. package/esm/desktop/components/buttons/arrow-button/arrow-button.css +1 -1
  267. package/esm/desktop/components/buttons/arrow-button/arrow-button.d.ts +3 -3
  268. package/esm/desktop/components/buttons/arrow-button/arrow-button.js.map +1 -1
  269. package/esm/desktop/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
  270. package/esm/desktop/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
  271. package/esm/desktop/components/buttons/cross-button/cross-button.css +1 -1
  272. package/esm/desktop/components/buttons/cross-button/cross-button.d.ts +3 -3
  273. package/esm/desktop/components/buttons/cross-button/cross-button.js.map +1 -1
  274. package/esm/desktop/components/buttons/cross-button/cross-button.module.css.js +1 -1
  275. package/esm/desktop/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
  276. package/esm/desktop/components/center-modal/center-modal.d.ts +2 -3
  277. package/esm/desktop/components/center-modal/center-modal.js.map +1 -1
  278. package/esm/desktop/components/center-modal/index.css +526 -524
  279. package/esm/desktop/components/center-modal/index.module.css.js +1 -1
  280. package/esm/desktop/components/center-modal/transitions/safari-transitions.css +13 -9
  281. package/esm/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  282. package/esm/desktop/components/center-modal/transitions/safari-transitions.module.css.js.map +1 -1
  283. package/esm/desktop/components/center-modal/transitions/transitions.css +13 -9
  284. package/esm/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  285. package/esm/desktop/components/center-modal/transitions/transitions.module.css.js.map +1 -1
  286. package/esm/desktop/components/modal-content/modal-content.css +7 -7
  287. package/esm/desktop/components/modal-content/modal-content.d.ts +5 -5
  288. package/esm/desktop/components/modal-content/modal-content.js.map +1 -1
  289. package/esm/desktop/components/modal-content/modal-content.module.css.js +1 -1
  290. package/esm/desktop/components/modal-content/modal-content.module.css.js.map +1 -1
  291. package/esm/desktop/components/side-modal/get-default-transition-props.d.ts +3 -3
  292. package/esm/desktop/components/side-modal/get-default-transition-props.js.map +1 -1
  293. package/esm/desktop/components/side-modal/index.css +528 -526
  294. package/esm/desktop/components/side-modal/index.module.css.js +1 -1
  295. package/esm/desktop/components/side-modal/side-modal.d.ts +2 -3
  296. package/esm/desktop/components/side-modal/side-modal.js.map +1 -1
  297. package/esm/desktop/components/side-modal/transitions/transitions.css +71 -71
  298. package/esm/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  299. package/esm/desktop/hooks/use-modal-highlighted.d.ts +3 -3
  300. package/esm/desktop/hooks/use-modal-highlighted.js.map +1 -1
  301. package/esm/desktop/hooks/use-outside-scroll.d.ts +3 -3
  302. package/esm/desktop/hooks/use-outside-scroll.js.map +1 -1
  303. package/esm/desktop/hooks/use-set-scrollbar-height.d.ts +3 -3
  304. package/esm/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
  305. package/esm/desktop/hooks/useModalWheel.d.ts +1 -1
  306. package/esm/desktop/hooks/useModalWheel.js.map +1 -1
  307. package/esm/desktop/styles/transitions/full-size-backdrop-transitions.css +14 -13
  308. package/esm/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  309. package/esm/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js.map +1 -1
  310. package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +13 -9
  311. package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  312. package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js.map +1 -1
  313. package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  314. package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  315. package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.css +13 -9
  316. package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  317. package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js.map +1 -1
  318. package/esm/desktop/types/props.d.ts +7 -7
  319. package/esm/desktop/utils/check-header-and-footer.d.ts +1 -1
  320. package/esm/desktop/utils/check-header-and-footer.js.map +1 -1
  321. package/esm/desktop/utils/get-full-size-modal-transitions.d.ts +7 -7
  322. package/esm/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
  323. package/esm/desktop/utils/get-height-style.d.ts +1 -1
  324. package/esm/desktop/utils/get-height-style.js.map +1 -1
  325. package/esm/desktop/utils/get-margin-styles.d.ts +3 -3
  326. package/esm/desktop/utils/get-margin-styles.js.map +1 -1
  327. package/esm/desktop/utils/get-max-height-style.d.ts +1 -1
  328. package/esm/desktop/utils/get-max-height-style.js.map +1 -1
  329. package/esm/desktop/utils/get-width-style.d.ts +1 -1
  330. package/esm/desktop/utils/get-width-style.js.map +1 -1
  331. package/esm/desktop/utils/set-footer-and-header-refs.d.ts +3 -3
  332. package/esm/desktop/utils/set-footer-and-header-refs.js.map +1 -1
  333. package/esm/mobile/Component.mobile.d.ts +3 -2
  334. package/esm/mobile/Component.mobile.js.map +1 -1
  335. package/esm/mobile/components/buttons/arrow-button/arrow-button.css +2 -2
  336. package/esm/mobile/components/buttons/arrow-button/arrow-button.d.ts +3 -3
  337. package/esm/mobile/components/buttons/arrow-button/arrow-button.js.map +1 -1
  338. package/esm/mobile/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
  339. package/esm/mobile/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
  340. package/esm/mobile/components/buttons/cross-button/cross-button.css +2 -2
  341. package/esm/mobile/components/buttons/cross-button/cross-button.d.ts +3 -3
  342. package/esm/mobile/components/buttons/cross-button/cross-button.js.map +1 -1
  343. package/esm/mobile/components/buttons/cross-button/cross-button.module.css.js +1 -1
  344. package/esm/mobile/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
  345. package/esm/mobile/mobile.css +4 -4
  346. package/esm/mobile/mobile.module.css.js +1 -1
  347. package/esm/mobile/mobile.module.css.js.map +1 -1
  348. package/esm/mobile/transitions/right-side-transitions.mobile.css +7 -7
  349. package/esm/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  350. package/esm/mobile/transitions/right-side-transitions.mobile.module.css.js.map +1 -1
  351. package/esm/mobile/transitions/transitions.mobile.css +13 -9
  352. package/esm/mobile/transitions/transitions.mobile.module.css.js +1 -1
  353. package/esm/mobile/transitions/transitions.mobile.module.css.js.map +1 -1
  354. package/esm/mobile/types/props.d.ts +5 -4
  355. package/esm/typings/index.d.ts +6 -6
  356. package/esm/typings/margin-type.d.ts +2 -2
  357. package/mobile/Component.mobile.d.ts +3 -2
  358. package/mobile/Component.mobile.js.map +1 -1
  359. package/mobile/components/buttons/arrow-button/arrow-button.css +2 -2
  360. package/mobile/components/buttons/arrow-button/arrow-button.d.ts +3 -3
  361. package/mobile/components/buttons/arrow-button/arrow-button.js.map +1 -1
  362. package/mobile/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
  363. package/mobile/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
  364. package/mobile/components/buttons/cross-button/cross-button.css +2 -2
  365. package/mobile/components/buttons/cross-button/cross-button.d.ts +3 -3
  366. package/mobile/components/buttons/cross-button/cross-button.js.map +1 -1
  367. package/mobile/components/buttons/cross-button/cross-button.module.css.js +1 -1
  368. package/mobile/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
  369. package/mobile/mobile.css +4 -4
  370. package/mobile/mobile.module.css.js +1 -1
  371. package/mobile/mobile.module.css.js.map +1 -1
  372. package/mobile/transitions/right-side-transitions.mobile.css +7 -7
  373. package/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  374. package/mobile/transitions/right-side-transitions.mobile.module.css.js.map +1 -1
  375. package/mobile/transitions/transitions.mobile.css +13 -9
  376. package/mobile/transitions/transitions.mobile.module.css.js +1 -1
  377. package/mobile/transitions/transitions.mobile.module.css.js.map +1 -1
  378. package/mobile/types/props.d.ts +5 -4
  379. package/modern/Component.responsive.d.ts +3 -12
  380. package/modern/Component.responsive.js.map +1 -1
  381. package/modern/Context.js.map +1 -1
  382. package/modern/components/content/base-content/base-content.d.ts +3 -3
  383. package/modern/components/content/base-content/base-content.js.map +1 -1
  384. package/modern/components/content/base-content/index.css +1 -1
  385. package/modern/components/content/base-content/index.module.css.js +1 -1
  386. package/modern/components/content/desktop/Component.desktop.d.ts +4 -4
  387. package/modern/components/content/desktop/Component.desktop.js.map +1 -1
  388. package/modern/components/content/desktop/desktop.css +2 -2
  389. package/modern/components/content/desktop/desktop.module.css.js +1 -1
  390. package/modern/components/content/mobile/Component.mobile.d.ts +2 -2
  391. package/modern/components/content/mobile/Component.mobile.js.map +1 -1
  392. package/modern/components/content/mobile/mobile.css +4 -4
  393. package/modern/components/content/mobile/mobile.module.css.js +1 -1
  394. package/modern/components/content/responsive/Component.responsive.d.ts +5 -4
  395. package/modern/components/content/responsive/Component.responsive.js.map +1 -1
  396. package/modern/components/footer/base-footer/base-footer.d.ts +3 -3
  397. package/modern/components/footer/base-footer/base-footer.js.map +1 -1
  398. package/modern/components/footer/base-footer/index.css +6 -4
  399. package/modern/components/footer/base-footer/index.module.css.js +1 -1
  400. package/modern/components/footer/base-footer/index.module.css.js.map +1 -1
  401. package/modern/components/footer/desktop/Component.desktop.d.ts +4 -9
  402. package/modern/components/footer/desktop/Component.desktop.js.map +1 -1
  403. package/modern/components/footer/desktop/desktop.css +1 -1
  404. package/modern/components/footer/desktop/desktop.module.css.js +1 -1
  405. package/modern/components/footer/desktop/layout.css +11 -14
  406. package/modern/components/footer/desktop/layout.module.css.js +1 -1
  407. package/modern/components/footer/mobile/Component.mobile.d.ts +2 -2
  408. package/modern/components/footer/mobile/Component.mobile.js.map +1 -1
  409. package/modern/components/footer/mobile/layout.mobile.css +9 -11
  410. package/modern/components/footer/mobile/layout.mobile.module.css.js +1 -1
  411. package/modern/components/footer/mobile/mobile.css +2 -2
  412. package/modern/components/footer/mobile/mobile.module.css.js +1 -1
  413. package/modern/components/footer/responsive/Component.responsive.d.ts +4 -3
  414. package/modern/components/footer/responsive/Component.responsive.js.map +1 -1
  415. package/modern/components/header/base-header/index.css +17 -15
  416. package/modern/components/header/base-header/index.module.css.js +1 -1
  417. package/modern/components/header/base-header/index.module.css.js.map +1 -1
  418. package/modern/components/header/desktop/Component.desktop.d.ts +4 -10
  419. package/modern/components/header/desktop/Component.desktop.js.map +1 -1
  420. package/modern/components/header/desktop/desktop.css +12 -12
  421. package/modern/components/header/desktop/desktop.module.css.js +1 -1
  422. package/modern/components/header/mobile/Component.mobile.d.ts +2 -2
  423. package/modern/components/header/mobile/Component.mobile.js.map +1 -1
  424. package/modern/components/header/mobile/mobile.css +6 -6
  425. package/modern/components/header/mobile/mobile.module.css.js +1 -1
  426. package/modern/components/header/mobile/mobile.module.css.js.map +1 -1
  427. package/modern/components/header/responsive/Component.responsive.d.ts +4 -3
  428. package/modern/components/header/responsive/Component.responsive.js.map +1 -1
  429. package/modern/context/universal-modal-context.d.ts +1 -1
  430. package/modern/context/universal-modal-context.js.map +1 -1
  431. package/modern/desktop/Component.desktop.d.ts +5 -12
  432. package/modern/desktop/Component.desktop.js.map +1 -1
  433. package/modern/desktop/components/buttons/arrow-button/arrow-button.css +1 -1
  434. package/modern/desktop/components/buttons/arrow-button/arrow-button.d.ts +3 -3
  435. package/modern/desktop/components/buttons/arrow-button/arrow-button.js.map +1 -1
  436. package/modern/desktop/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
  437. package/modern/desktop/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
  438. package/modern/desktop/components/buttons/cross-button/cross-button.css +1 -1
  439. package/modern/desktop/components/buttons/cross-button/cross-button.d.ts +3 -3
  440. package/modern/desktop/components/buttons/cross-button/cross-button.js.map +1 -1
  441. package/modern/desktop/components/buttons/cross-button/cross-button.module.css.js +1 -1
  442. package/modern/desktop/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
  443. package/modern/desktop/components/center-modal/center-modal.d.ts +2 -3
  444. package/modern/desktop/components/center-modal/center-modal.js.map +1 -1
  445. package/modern/desktop/components/center-modal/index.css +526 -524
  446. package/modern/desktop/components/center-modal/index.module.css.js +1 -1
  447. package/modern/desktop/components/center-modal/transitions/safari-transitions.css +13 -9
  448. package/modern/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  449. package/modern/desktop/components/center-modal/transitions/safari-transitions.module.css.js.map +1 -1
  450. package/modern/desktop/components/center-modal/transitions/transitions.css +13 -9
  451. package/modern/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  452. package/modern/desktop/components/center-modal/transitions/transitions.module.css.js.map +1 -1
  453. package/modern/desktop/components/modal-content/modal-content.css +7 -7
  454. package/modern/desktop/components/modal-content/modal-content.d.ts +5 -5
  455. package/modern/desktop/components/modal-content/modal-content.js.map +1 -1
  456. package/modern/desktop/components/modal-content/modal-content.module.css.js +1 -1
  457. package/modern/desktop/components/modal-content/modal-content.module.css.js.map +1 -1
  458. package/modern/desktop/components/side-modal/get-default-transition-props.d.ts +3 -3
  459. package/modern/desktop/components/side-modal/get-default-transition-props.js.map +1 -1
  460. package/modern/desktop/components/side-modal/index.css +528 -526
  461. package/modern/desktop/components/side-modal/index.module.css.js +1 -1
  462. package/modern/desktop/components/side-modal/side-modal.d.ts +2 -3
  463. package/modern/desktop/components/side-modal/side-modal.js.map +1 -1
  464. package/modern/desktop/components/side-modal/transitions/transitions.css +71 -71
  465. package/modern/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  466. package/modern/desktop/hooks/use-modal-highlighted.d.ts +3 -3
  467. package/modern/desktop/hooks/use-modal-highlighted.js.map +1 -1
  468. package/modern/desktop/hooks/use-outside-scroll.d.ts +3 -3
  469. package/modern/desktop/hooks/use-outside-scroll.js.map +1 -1
  470. package/modern/desktop/hooks/use-set-scrollbar-height.d.ts +3 -3
  471. package/modern/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
  472. package/modern/desktop/hooks/useModalWheel.d.ts +1 -1
  473. package/modern/desktop/hooks/useModalWheel.js.map +1 -1
  474. package/modern/desktop/styles/transitions/full-size-backdrop-transitions.css +14 -13
  475. package/modern/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  476. package/modern/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js.map +1 -1
  477. package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +13 -9
  478. package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  479. package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js.map +1 -1
  480. package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  481. package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  482. package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.css +13 -9
  483. package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  484. package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js.map +1 -1
  485. package/modern/desktop/types/props.d.ts +7 -7
  486. package/modern/desktop/utils/check-header-and-footer.d.ts +1 -1
  487. package/modern/desktop/utils/check-header-and-footer.js.map +1 -1
  488. package/modern/desktop/utils/get-full-size-modal-transitions.d.ts +7 -7
  489. package/modern/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
  490. package/modern/desktop/utils/get-height-style.d.ts +1 -1
  491. package/modern/desktop/utils/get-height-style.js.map +1 -1
  492. package/modern/desktop/utils/get-margin-styles.d.ts +3 -3
  493. package/modern/desktop/utils/get-margin-styles.js.map +1 -1
  494. package/modern/desktop/utils/get-max-height-style.d.ts +1 -1
  495. package/modern/desktop/utils/get-max-height-style.js.map +1 -1
  496. package/modern/desktop/utils/get-width-style.d.ts +1 -1
  497. package/modern/desktop/utils/get-width-style.js.map +1 -1
  498. package/modern/desktop/utils/set-footer-and-header-refs.d.ts +3 -3
  499. package/modern/desktop/utils/set-footer-and-header-refs.js.map +1 -1
  500. package/modern/mobile/Component.mobile.d.ts +3 -2
  501. package/modern/mobile/Component.mobile.js.map +1 -1
  502. package/modern/mobile/components/buttons/arrow-button/arrow-button.css +2 -2
  503. package/modern/mobile/components/buttons/arrow-button/arrow-button.d.ts +3 -3
  504. package/modern/mobile/components/buttons/arrow-button/arrow-button.js.map +1 -1
  505. package/modern/mobile/components/buttons/arrow-button/arrow-button.module.css.js +1 -1
  506. package/modern/mobile/components/buttons/arrow-button/arrow-button.module.css.js.map +1 -1
  507. package/modern/mobile/components/buttons/cross-button/cross-button.css +2 -2
  508. package/modern/mobile/components/buttons/cross-button/cross-button.d.ts +3 -3
  509. package/modern/mobile/components/buttons/cross-button/cross-button.js.map +1 -1
  510. package/modern/mobile/components/buttons/cross-button/cross-button.module.css.js +1 -1
  511. package/modern/mobile/components/buttons/cross-button/cross-button.module.css.js.map +1 -1
  512. package/modern/mobile/mobile.css +4 -4
  513. package/modern/mobile/mobile.module.css.js +1 -1
  514. package/modern/mobile/mobile.module.css.js.map +1 -1
  515. package/modern/mobile/transitions/right-side-transitions.mobile.css +7 -7
  516. package/modern/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  517. package/modern/mobile/transitions/right-side-transitions.mobile.module.css.js.map +1 -1
  518. package/modern/mobile/transitions/transitions.mobile.css +13 -9
  519. package/modern/mobile/transitions/transitions.mobile.module.css.js +1 -1
  520. package/modern/mobile/transitions/transitions.mobile.module.css.js.map +1 -1
  521. package/modern/mobile/types/props.d.ts +5 -4
  522. package/modern/typings/index.d.ts +6 -6
  523. package/modern/typings/margin-type.d.ts +2 -2
  524. package/moderncssm/Component.responsive.d.ts +3 -12
  525. package/moderncssm/Component.responsive.js.map +1 -1
  526. package/moderncssm/Context.js.map +1 -1
  527. package/moderncssm/components/content/base-content/base-content.d.ts +3 -3
  528. package/moderncssm/components/content/base-content/base-content.js.map +1 -1
  529. package/moderncssm/components/content/base-content/index.module.css +2 -0
  530. package/moderncssm/components/content/desktop/Component.desktop.d.ts +4 -4
  531. package/moderncssm/components/content/desktop/Component.desktop.js.map +1 -1
  532. package/moderncssm/components/content/desktop/desktop.module.css +2 -0
  533. package/moderncssm/components/content/mobile/Component.mobile.d.ts +2 -2
  534. package/moderncssm/components/content/mobile/Component.mobile.js.map +1 -1
  535. package/moderncssm/components/content/mobile/mobile.module.css +3 -1
  536. package/moderncssm/components/content/responsive/Component.responsive.d.ts +5 -4
  537. package/moderncssm/components/content/responsive/Component.responsive.js.map +1 -1
  538. package/moderncssm/components/footer/base-footer/base-footer.d.ts +3 -3
  539. package/moderncssm/components/footer/base-footer/base-footer.js.map +1 -1
  540. package/moderncssm/components/footer/base-footer/index.module.css +8 -1
  541. package/moderncssm/components/footer/desktop/Component.desktop.d.ts +4 -9
  542. package/moderncssm/components/footer/desktop/Component.desktop.js.map +1 -1
  543. package/moderncssm/components/footer/desktop/desktop.module.css +2 -0
  544. package/moderncssm/components/footer/desktop/layout.module.css +4 -5
  545. package/moderncssm/components/footer/mobile/Component.mobile.d.ts +2 -2
  546. package/moderncssm/components/footer/mobile/Component.mobile.js.map +1 -1
  547. package/moderncssm/components/footer/mobile/layout.mobile.module.css +3 -3
  548. package/moderncssm/components/footer/mobile/mobile.module.css +2 -0
  549. package/moderncssm/components/footer/responsive/Component.responsive.d.ts +4 -3
  550. package/moderncssm/components/footer/responsive/Component.responsive.js.map +1 -1
  551. package/moderncssm/components/header/base-header/index.module.css +7 -3
  552. package/moderncssm/components/header/desktop/Component.desktop.d.ts +4 -10
  553. package/moderncssm/components/header/desktop/Component.desktop.js.map +1 -1
  554. package/moderncssm/components/header/desktop/desktop.module.css +4 -9
  555. package/moderncssm/components/header/mobile/Component.mobile.d.ts +2 -2
  556. package/moderncssm/components/header/mobile/Component.mobile.js.map +1 -1
  557. package/moderncssm/components/header/mobile/mobile.module.css +6 -0
  558. package/moderncssm/components/header/responsive/Component.responsive.d.ts +4 -3
  559. package/moderncssm/components/header/responsive/Component.responsive.js.map +1 -1
  560. package/moderncssm/context/universal-modal-context.d.ts +1 -1
  561. package/moderncssm/context/universal-modal-context.js.map +1 -1
  562. package/moderncssm/desktop/Component.desktop.d.ts +5 -12
  563. package/moderncssm/desktop/Component.desktop.js.map +1 -1
  564. package/moderncssm/desktop/components/buttons/arrow-button/arrow-button.d.ts +3 -3
  565. package/moderncssm/desktop/components/buttons/arrow-button/arrow-button.js.map +1 -1
  566. package/moderncssm/desktop/components/buttons/arrow-button/arrow-button.module.css +2 -0
  567. package/moderncssm/desktop/components/buttons/cross-button/cross-button.d.ts +3 -3
  568. package/moderncssm/desktop/components/buttons/cross-button/cross-button.js.map +1 -1
  569. package/moderncssm/desktop/components/buttons/cross-button/cross-button.module.css +1 -0
  570. package/moderncssm/desktop/components/center-modal/center-modal.d.ts +2 -3
  571. package/moderncssm/desktop/components/center-modal/center-modal.js.map +1 -1
  572. package/moderncssm/desktop/components/center-modal/index.module.css +5 -2
  573. package/moderncssm/desktop/components/center-modal/transitions/safari-transitions.module.css +6 -2
  574. package/moderncssm/desktop/components/center-modal/transitions/transitions.module.css +6 -2
  575. package/moderncssm/desktop/components/modal-content/modal-content.d.ts +5 -5
  576. package/moderncssm/desktop/components/modal-content/modal-content.js.map +1 -1
  577. package/moderncssm/desktop/components/modal-content/modal-content.module.css +5 -6
  578. package/moderncssm/desktop/components/side-modal/get-default-transition-props.d.ts +3 -3
  579. package/moderncssm/desktop/components/side-modal/get-default-transition-props.js.map +1 -1
  580. package/moderncssm/desktop/components/side-modal/index.module.css +5 -2
  581. package/moderncssm/desktop/components/side-modal/side-modal.d.ts +2 -3
  582. package/moderncssm/desktop/components/side-modal/side-modal.js.map +1 -1
  583. package/moderncssm/desktop/hooks/use-modal-highlighted.d.ts +3 -3
  584. package/moderncssm/desktop/hooks/use-modal-highlighted.js.map +1 -1
  585. package/moderncssm/desktop/hooks/use-outside-scroll.d.ts +3 -3
  586. package/moderncssm/desktop/hooks/use-outside-scroll.js.map +1 -1
  587. package/moderncssm/desktop/hooks/use-set-scrollbar-height.d.ts +3 -3
  588. package/moderncssm/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
  589. package/moderncssm/desktop/hooks/useModalWheel.d.ts +1 -1
  590. package/moderncssm/desktop/hooks/useModalWheel.js.map +1 -1
  591. package/moderncssm/desktop/styles/transitions/full-size-backdrop-transitions.module.css +4 -1
  592. package/moderncssm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css +6 -2
  593. package/moderncssm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css +6 -2
  594. package/moderncssm/desktop/types/props.d.ts +7 -7
  595. package/moderncssm/desktop/utils/check-header-and-footer.d.ts +1 -1
  596. package/moderncssm/desktop/utils/check-header-and-footer.js.map +1 -1
  597. package/moderncssm/desktop/utils/get-full-size-modal-transitions.d.ts +7 -7
  598. package/moderncssm/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
  599. package/moderncssm/desktop/utils/get-height-style.d.ts +1 -1
  600. package/moderncssm/desktop/utils/get-height-style.js.map +1 -1
  601. package/moderncssm/desktop/utils/get-margin-styles.d.ts +3 -3
  602. package/moderncssm/desktop/utils/get-margin-styles.js.map +1 -1
  603. package/moderncssm/desktop/utils/get-max-height-style.d.ts +1 -1
  604. package/moderncssm/desktop/utils/get-max-height-style.js.map +1 -1
  605. package/moderncssm/desktop/utils/get-width-style.d.ts +1 -1
  606. package/moderncssm/desktop/utils/get-width-style.js.map +1 -1
  607. package/moderncssm/desktop/utils/set-footer-and-header-refs.d.ts +3 -3
  608. package/moderncssm/desktop/utils/set-footer-and-header-refs.js.map +1 -1
  609. package/moderncssm/mobile/Component.mobile.d.ts +3 -2
  610. package/moderncssm/mobile/Component.mobile.js.map +1 -1
  611. package/moderncssm/mobile/components/buttons/arrow-button/arrow-button.d.ts +3 -3
  612. package/moderncssm/mobile/components/buttons/arrow-button/arrow-button.js.map +1 -1
  613. package/moderncssm/mobile/components/buttons/arrow-button/arrow-button.module.css +2 -0
  614. package/moderncssm/mobile/components/buttons/cross-button/cross-button.d.ts +3 -3
  615. package/moderncssm/mobile/components/buttons/cross-button/cross-button.js.map +1 -1
  616. package/moderncssm/mobile/components/buttons/cross-button/cross-button.module.css +2 -0
  617. package/moderncssm/mobile/mobile.module.css +3 -1
  618. package/moderncssm/mobile/transitions/right-side-transitions.mobile.module.css +2 -0
  619. package/moderncssm/mobile/transitions/transitions.mobile.module.css +6 -2
  620. package/moderncssm/mobile/types/props.d.ts +5 -4
  621. package/moderncssm/typings/index.d.ts +6 -6
  622. package/moderncssm/typings/margin-type.d.ts +2 -2
  623. package/package.json +4 -4
  624. package/src/Component.responsive.tsx +1 -1
  625. package/src/components/content/base-content/base-content.tsx +3 -3
  626. package/src/components/content/desktop/Component.desktop.tsx +4 -4
  627. package/src/components/content/mobile/Component.mobile.tsx +2 -2
  628. package/src/components/content/responsive/Component.responsive.tsx +4 -4
  629. package/src/components/footer/base-footer/base-footer.tsx +3 -3
  630. package/src/components/footer/base-footer/index.module.css +4 -2
  631. package/src/components/footer/desktop/Component.desktop.tsx +3 -3
  632. package/src/components/footer/mobile/Component.mobile.tsx +2 -2
  633. package/src/components/footer/responsive/Component.responsive.tsx +3 -3
  634. package/src/components/header/base-header/index.module.css +4 -2
  635. package/src/components/header/desktop/Component.desktop.tsx +7 -6
  636. package/src/components/header/mobile/Component.mobile.tsx +2 -2
  637. package/src/components/header/mobile/mobile.module.css +1 -1
  638. package/src/components/header/responsive/Component.responsive.tsx +3 -3
  639. package/src/context/universal-modal-context.ts +1 -1
  640. package/src/desktop/Component.desktop.tsx +2 -2
  641. package/src/desktop/components/buttons/arrow-button/arrow-button.module.css +1 -1
  642. package/src/desktop/components/buttons/arrow-button/arrow-button.tsx +3 -3
  643. package/src/desktop/components/buttons/cross-button/cross-button.module.css +1 -1
  644. package/src/desktop/components/buttons/cross-button/cross-button.tsx +3 -3
  645. package/src/desktop/components/center-modal/center-modal.tsx +1 -1
  646. package/src/desktop/components/center-modal/transitions/safari-transitions.module.css +6 -2
  647. package/src/desktop/components/center-modal/transitions/transitions.module.css +6 -2
  648. package/src/desktop/components/modal-content/modal-content.module.css +1 -1
  649. package/src/desktop/components/modal-content/modal-content.tsx +8 -7
  650. package/src/desktop/components/side-modal/get-default-transition-props.ts +3 -3
  651. package/src/desktop/components/side-modal/side-modal.module.css +1 -1
  652. package/src/desktop/components/side-modal/side-modal.tsx +1 -1
  653. package/src/desktop/hooks/{use-modal-highlighted.tsx → use-modal-highlighted.ts} +4 -4
  654. package/src/desktop/hooks/{use-outside-scroll.tsx → use-outside-scroll.ts} +3 -3
  655. package/src/desktop/hooks/{use-set-scrollbar-height.tsx → use-set-scrollbar-height.ts} +3 -3
  656. package/src/desktop/hooks/{useModalWheel.tsx → useModalWheel.ts} +1 -1
  657. package/src/desktop/styles/transitions/full-size-backdrop-transitions.module.css +3 -2
  658. package/src/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css +6 -2
  659. package/src/desktop/styles/transitions/full-size-vertical-top-transitions.module.css +6 -2
  660. package/src/desktop/types/props.ts +27 -26
  661. package/src/desktop/utils/{check-header-and-footer.tsx → check-header-and-footer.ts} +3 -3
  662. package/src/desktop/utils/get-full-size-modal-transitions.ts +7 -7
  663. package/src/desktop/utils/get-height-style.ts +1 -1
  664. package/src/desktop/utils/get-margin-styles.ts +3 -3
  665. package/src/desktop/utils/get-max-height-style.ts +1 -1
  666. package/src/desktop/utils/get-width-style.ts +1 -1
  667. package/src/desktop/utils/{set-footer-and-header-refs.tsx → set-footer-and-header-refs.ts} +8 -8
  668. package/src/desktop/vars.css +1 -1
  669. package/src/mobile/Component.mobile.tsx +1 -1
  670. package/src/mobile/components/buttons/arrow-button/arrow-button.module.css +1 -1
  671. package/src/mobile/components/buttons/arrow-button/arrow-button.tsx +3 -3
  672. package/src/mobile/components/buttons/cross-button/cross-button.module.css +1 -1
  673. package/src/mobile/components/buttons/cross-button/cross-button.tsx +3 -3
  674. package/src/mobile/mobile.module.css +1 -1
  675. package/src/mobile/transitions/right-side-transitions.mobile.module.css +1 -1
  676. package/src/mobile/transitions/transitions.mobile.module.css +6 -2
  677. package/src/mobile/types/props.ts +18 -17
  678. package/src/mobile/vars.css +1 -1
  679. package/src/typings/index.ts +17 -16
  680. package/src/typings/margin-type.ts +2 -2
  681. package/src/vars.css +1 -1
  682. package/typings/index.d.ts +6 -6
  683. package/typings/margin-type.d.ts +2 -2
  684. /package/src/{Context.tsx → Context.ts} +0 -0
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
- export declare const SideModal: React.ForwardRefExoticComponent<import("../../types/props").BaseUniversalModalProps & Pick<import("@alfalab/core-components-base-modal").BaseModalProps, "open"> & Partial<Pick<import("@alfalab/core-components-base-modal").BaseModalProps, "children" | "className" | "dataTestId" | "wrapperClassName" | "onUnmount" | "transitionProps" | "backdropProps" | "disableBackdropClick" | "onClose">> & {
3
- scrollableContainerRef?: React.RefObject<HTMLDivElement> | undefined;
4
- } & React.RefAttributes<HTMLDivElement>>;
2
+ import { type UniversalModalDesktopProps } from '../../types/props';
3
+ export declare const SideModal: React.ForwardRefExoticComponent<UniversalModalDesktopProps & React.RefAttributes<HTMLDivElement>>;
@@ -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 { useModalWheel } from '../../hooks/useModalWheel';\nimport { UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightStyle } from '../../utils/get-height-style';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getMaxHeightStyle } from '../../utils/get-max-height-style';\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,\n onClose,\n ...restProps\n } = props;\n const componentRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n\n const { wheelDeltaY, handleWheel } = useModalWheel(overlay);\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\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={!overlay}\n wrapperClassName={cn(styles.wrapper, {\n [styles.wrapperAlignStart]: horizontalAlign === 'start',\n [styles.wrapperAlignEnd]: horizontalAlign === 'end',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n })}\n className={cn(styles.component, className, {\n [styles.overlayHidden]: !overlay,\n ...getMarginStyles({ 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 transparent: !overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: getWidthStyle(width, margin),\n height: getHeightStyle(height, margin),\n ...(height === 'hugContent' && {\n maxHeight: getMaxHeightStyle(margin),\n }),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent\n height={height}\n wheelDeltaY={wheelDeltaY}\n scrollableContainerRef={scrollableContainerRef}\n >\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,EACtB,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;IAE/C,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC;IAE3D,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,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,OACF,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,OAAO,EAC/B,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE;AACjC,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,eAAe,KAAK,OAAO;AACvD,YAAA,CAAC,MAAM,CAAC,eAAe,GAAG,eAAe,KAAK,KAAK;AACnD,YAAA,CAAC,MAAM,CAAC,oBAAoB,GAAG,aAAa,KAAK,QAAQ;AACzD,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,aAAa,KAAK,QAAQ;SACzD,CAAC,EACF,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE;AACvC,YAAA,CAAC,MAAM,CAAC,aAAa,GAAG,CAAC,OAAO;AAChC,YAAA,GAAG,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;SACzC,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;YACX,WAAW,EAAE,CAAC,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,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;AACtC,gBAAA,IAAI,MAAM,KAAK,YAAY,IAAI;AAC3B,oBAAA,SAAS,EAAE,iBAAiB,CAAC,MAAM,CAAC;iBACvC,CAAC;AACL,aAAA;AACJ,SAAA,EACD,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,OAAO,EAAA;AAEhB,QAAA,KAAA,CAAA,aAAA,CAAC,YAAY,EACT,EAAA,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,sBAAsB,EAAE,sBAAsB,EAAA,EAE7C,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 { useModalWheel } from '../../hooks/useModalWheel';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightStyle } from '../../utils/get-height-style';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getMaxHeightStyle } from '../../utils/get-max-height-style';\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,\n onClose,\n ...restProps\n } = props;\n const componentRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n\n const { wheelDeltaY, handleWheel } = useModalWheel(overlay);\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\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={!overlay}\n wrapperClassName={cn(styles.wrapper, {\n [styles.wrapperAlignStart]: horizontalAlign === 'start',\n [styles.wrapperAlignEnd]: horizontalAlign === 'end',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n })}\n className={cn(styles.component, className, {\n [styles.overlayHidden]: !overlay,\n ...getMarginStyles({ 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 transparent: !overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: getWidthStyle(width, margin),\n height: getHeightStyle(height, margin),\n ...(height === 'hugContent' && {\n maxHeight: getMaxHeightStyle(margin),\n }),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent\n height={height}\n wheelDeltaY={wheelDeltaY}\n scrollableContainerRef={scrollableContainerRef}\n >\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,EACtB,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;IAE/C,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC;IAE3D,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,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,OACF,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,OAAO,EAC/B,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE;AACjC,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,eAAe,KAAK,OAAO;AACvD,YAAA,CAAC,MAAM,CAAC,eAAe,GAAG,eAAe,KAAK,KAAK;AACnD,YAAA,CAAC,MAAM,CAAC,oBAAoB,GAAG,aAAa,KAAK,QAAQ;AACzD,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,aAAa,KAAK,QAAQ;SACzD,CAAC,EACF,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE;AACvC,YAAA,CAAC,MAAM,CAAC,aAAa,GAAG,CAAC,OAAO;AAChC,YAAA,GAAG,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;SACzC,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;YACX,WAAW,EAAE,CAAC,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,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;AACtC,gBAAA,IAAI,MAAM,KAAK,YAAY,IAAI;AAC3B,oBAAA,SAAS,EAAE,iBAAiB,CAAC,MAAM,CAAC;iBACvC,CAAC;AACL,aAAA;AACJ,SAAA,EACD,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,OAAO,EAAA;AAEhB,QAAA,KAAA,CAAA,aAAA,CAAC,YAAY,EACT,EAAA,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,sBAAsB,EAAE,sBAAsB,EAAA,EAE7C,QAAQ,CACE,CACP;AAEpB,CAAC;;;;"}
@@ -1,8 +1,8 @@
1
- import { RefObject } from 'react';
2
- declare type Params = {
1
+ import { type RefObject } from 'react';
2
+ interface Params {
3
3
  scrollbarContentNodeRef: RefObject<HTMLDivElement>;
4
4
  scrollableNodeRef: RefObject<HTMLDivElement>;
5
- };
5
+ }
6
6
  /**
7
7
  * Расчет overlap состояния
8
8
  * Этот функционал есть в base-modal, но так как в desktop версии используется кастомный scroll необходимо обрабатывать это в ручную
@@ -1 +1 @@
1
- {"version":3,"file":"use-modal-highlighted.js","sources":["../../../src/desktop/hooks/use-modal-highlighted.tsx"],"sourcesContent":["import { RefObject, useContext, useEffect } from 'react';\n\nimport { ScrollbarProps } from '@alfalab/core-components-scrollbar';\n\nimport { UniversalModalContext } from '../../context/universal-modal-context';\n\ntype Params = {\n scrollbarContentNodeRef: RefObject<HTMLDivElement>;\n scrollableNodeRef: RefObject<HTMLDivElement>;\n};\n\n/**\n * Расчет overlap состояния\n * Этот функционал есть в base-modal, но так как в desktop версии используется кастомный scroll необходимо обрабатывать это в ручную\n */\nexport const useModalHighlighted = (params: Params) => {\n const { scrollbarContentNodeRef, scrollableNodeRef } = params;\n\n const { setModalHeaderHighlighted, setModalFooterHighlighted } =\n useContext(UniversalModalContext);\n\n const handleScroll: ScrollbarProps['onContentScroll'] = (e) => {\n const target = e.target as HTMLDivElement;\n const { scrollTop, scrollHeight, clientHeight } = target;\n\n const isElementFullScrolled = scrollHeight - scrollTop === clientHeight;\n\n if (setModalHeaderHighlighted) {\n setModalHeaderHighlighted(scrollTop > 0);\n }\n\n if (setModalFooterHighlighted) {\n setModalFooterHighlighted(!isElementFullScrolled);\n }\n };\n\n // Очищаем overlap значения в контексте\n useEffect(\n () => () => {\n if (setModalHeaderHighlighted) {\n setModalHeaderHighlighted(false);\n }\n\n if (setModalFooterHighlighted) {\n setModalFooterHighlighted(false);\n }\n },\n [setModalHeaderHighlighted, setModalFooterHighlighted],\n );\n\n // Расчет overlap футера при resize событии\n useEffect(() => {\n const resizeObserver = new ResizeObserver(() => {\n const contentHeight = scrollbarContentNodeRef.current?.clientHeight || 0;\n const wrapperHeight = scrollableNodeRef.current?.clientHeight || 0;\n\n if (setModalFooterHighlighted) {\n setModalFooterHighlighted(contentHeight > wrapperHeight);\n }\n });\n\n if (scrollbarContentNodeRef.current) {\n resizeObserver.observe(scrollbarContentNodeRef.current);\n }\n\n return () => {\n resizeObserver.disconnect();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [setModalFooterHighlighted]);\n\n return { handleScroll };\n};\n"],"names":[],"mappings":";;;AAWA;;;AAGG;AACU,MAAA,mBAAmB,GAAG,CAAC,MAAc,KAAI;AAClD,IAAA,MAAM,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,GAAG,MAAM;IAE7D,MAAM,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,GAC1D,UAAU,CAAC,qBAAqB,CAAC;AAErC,IAAA,MAAM,YAAY,GAAsC,CAAC,CAAC,KAAI;AAC1D,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,MAAwB;QACzC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,MAAM;AAExD,QAAA,MAAM,qBAAqB,GAAG,YAAY,GAAG,SAAS,KAAK,YAAY;AAEvE,QAAA,IAAI,yBAAyB,EAAE;AAC3B,YAAA,yBAAyB,CAAC,SAAS,GAAG,CAAC,CAAC;AAC3C;AAED,QAAA,IAAI,yBAAyB,EAAE;AAC3B,YAAA,yBAAyB,CAAC,CAAC,qBAAqB,CAAC;AACpD;AACL,KAAC;;AAGD,IAAA,SAAS,CACL,MAAM,MAAK;AACP,QAAA,IAAI,yBAAyB,EAAE;YAC3B,yBAAyB,CAAC,KAAK,CAAC;AACnC;AAED,QAAA,IAAI,yBAAyB,EAAE;YAC3B,yBAAyB,CAAC,KAAK,CAAC;AACnC;AACL,KAAC,EACD,CAAC,yBAAyB,EAAE,yBAAyB,CAAC,CACzD;;IAGD,SAAS,CAAC,MAAK;AACX,QAAA,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,MAAK;YAC3C,MAAM,aAAa,GAAG,uBAAuB,CAAC,OAAO,EAAE,YAAY,IAAI,CAAC;YACxE,MAAM,aAAa,GAAG,iBAAiB,CAAC,OAAO,EAAE,YAAY,IAAI,CAAC;AAElE,YAAA,IAAI,yBAAyB,EAAE;AAC3B,gBAAA,yBAAyB,CAAC,aAAa,GAAG,aAAa,CAAC;AAC3D;AACL,SAAC,CAAC;QAEF,IAAI,uBAAuB,CAAC,OAAO,EAAE;AACjC,YAAA,cAAc,CAAC,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC;AAC1D;AAED,QAAA,OAAO,MAAK;YACR,cAAc,CAAC,UAAU,EAAE;AAC/B,SAAC;;AAEL,KAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC;IAE/B,OAAO,EAAE,YAAY,EAAE;AAC3B;;;;"}
1
+ {"version":3,"file":"use-modal-highlighted.js","sources":["../../../src/desktop/hooks/use-modal-highlighted.ts"],"sourcesContent":["import { type RefObject, useContext, useEffect } from 'react';\n\nimport { type ScrollbarProps } from '@alfalab/core-components-scrollbar';\n\nimport { UniversalModalContext } from '../../context/universal-modal-context';\n\ninterface Params {\n scrollbarContentNodeRef: RefObject<HTMLDivElement>;\n scrollableNodeRef: RefObject<HTMLDivElement>;\n}\n\n/**\n * Расчет overlap состояния\n * Этот функционал есть в base-modal, но так как в desktop версии используется кастомный scroll необходимо обрабатывать это в ручную\n */\nexport const useModalHighlighted = (params: Params) => {\n const { scrollbarContentNodeRef, scrollableNodeRef } = params;\n\n const { setModalHeaderHighlighted, setModalFooterHighlighted } =\n useContext(UniversalModalContext);\n\n const handleScroll: ScrollbarProps['onContentScroll'] = (e) => {\n const target = e.target as HTMLDivElement;\n const { scrollTop, scrollHeight, clientHeight } = target;\n\n const isElementFullScrolled = scrollHeight - scrollTop === clientHeight;\n\n if (setModalHeaderHighlighted) {\n setModalHeaderHighlighted(scrollTop > 0);\n }\n\n if (setModalFooterHighlighted) {\n setModalFooterHighlighted(!isElementFullScrolled);\n }\n };\n\n // Очищаем overlap значения в контексте\n useEffect(\n () => () => {\n if (setModalHeaderHighlighted) {\n setModalHeaderHighlighted(false);\n }\n\n if (setModalFooterHighlighted) {\n setModalFooterHighlighted(false);\n }\n },\n [setModalHeaderHighlighted, setModalFooterHighlighted],\n );\n\n // Расчет overlap футера при resize событии\n useEffect(() => {\n const resizeObserver = new ResizeObserver(() => {\n const contentHeight = scrollbarContentNodeRef.current?.clientHeight || 0;\n const wrapperHeight = scrollableNodeRef.current?.clientHeight || 0;\n\n if (setModalFooterHighlighted) {\n setModalFooterHighlighted(contentHeight > wrapperHeight);\n }\n });\n\n if (scrollbarContentNodeRef.current) {\n resizeObserver.observe(scrollbarContentNodeRef.current);\n }\n\n return () => {\n resizeObserver.disconnect();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [setModalFooterHighlighted]);\n\n return { handleScroll };\n};\n"],"names":[],"mappings":";;;AAWA;;;AAGG;AACU,MAAA,mBAAmB,GAAG,CAAC,MAAc,KAAI;AAClD,IAAA,MAAM,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,GAAG,MAAM;IAE7D,MAAM,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,GAC1D,UAAU,CAAC,qBAAqB,CAAC;AAErC,IAAA,MAAM,YAAY,GAAsC,CAAC,CAAC,KAAI;AAC1D,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,MAAwB;QACzC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,MAAM;AAExD,QAAA,MAAM,qBAAqB,GAAG,YAAY,GAAG,SAAS,KAAK,YAAY;AAEvE,QAAA,IAAI,yBAAyB,EAAE;AAC3B,YAAA,yBAAyB,CAAC,SAAS,GAAG,CAAC,CAAC;AAC3C;AAED,QAAA,IAAI,yBAAyB,EAAE;AAC3B,YAAA,yBAAyB,CAAC,CAAC,qBAAqB,CAAC;AACpD;AACL,KAAC;;AAGD,IAAA,SAAS,CACL,MAAM,MAAK;AACP,QAAA,IAAI,yBAAyB,EAAE;YAC3B,yBAAyB,CAAC,KAAK,CAAC;AACnC;AAED,QAAA,IAAI,yBAAyB,EAAE;YAC3B,yBAAyB,CAAC,KAAK,CAAC;AACnC;AACL,KAAC,EACD,CAAC,yBAAyB,EAAE,yBAAyB,CAAC,CACzD;;IAGD,SAAS,CAAC,MAAK;AACX,QAAA,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,MAAK;YAC3C,MAAM,aAAa,GAAG,uBAAuB,CAAC,OAAO,EAAE,YAAY,IAAI,CAAC;YACxE,MAAM,aAAa,GAAG,iBAAiB,CAAC,OAAO,EAAE,YAAY,IAAI,CAAC;AAElE,YAAA,IAAI,yBAAyB,EAAE;AAC3B,gBAAA,yBAAyB,CAAC,aAAa,GAAG,aAAa,CAAC;AAC3D;AACL,SAAC,CAAC;QAEF,IAAI,uBAAuB,CAAC,OAAO,EAAE;AACjC,YAAA,cAAc,CAAC,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC;AAC1D;AAED,QAAA,OAAO,MAAK;YACR,cAAc,CAAC,UAAU,EAAE;AAC/B,SAAC;;AAEL,KAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC;IAE/B,OAAO,EAAE,YAAY,EAAE;AAC3B;;;;"}
@@ -1,8 +1,8 @@
1
- import { RefObject } from 'react';
2
- declare type Params = {
1
+ import { type RefObject } from 'react';
2
+ interface Params {
3
3
  scrollableNodeRef: RefObject<HTMLDivElement>;
4
4
  wheelDeltaY: number;
5
- };
5
+ }
6
6
  /** Изменение позиции скролла */
7
7
  export declare const useOutsideScroll: (params: Params) => void;
8
8
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"use-outside-scroll.js","sources":["../../../src/desktop/hooks/use-outside-scroll.tsx"],"sourcesContent":["import { RefObject, useEffect } from 'react';\n\ntype Params = {\n scrollableNodeRef: RefObject<HTMLDivElement>;\n wheelDeltaY: number;\n};\n\n/** Изменение позиции скролла */\nexport const useOutsideScroll = (params: Params) => {\n const { scrollableNodeRef, wheelDeltaY } = params;\n\n useEffect(() => {\n if (scrollableNodeRef.current) {\n scrollableNodeRef.current.scrollBy({\n top: wheelDeltaY,\n });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [wheelDeltaY]);\n};\n"],"names":[],"mappings":";;AAOA;AACa,MAAA,gBAAgB,GAAG,CAAC,MAAc,KAAI;AAC/C,IAAA,MAAM,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,MAAM;IAEjD,SAAS,CAAC,MAAK;QACX,IAAI,iBAAiB,CAAC,OAAO,EAAE;AAC3B,YAAA,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC;AAC/B,gBAAA,GAAG,EAAE,WAAW;AACnB,aAAA,CAAC;AACL;;AAEL,KAAC,EAAE,CAAC,WAAW,CAAC,CAAC;AACrB;;;;"}
1
+ {"version":3,"file":"use-outside-scroll.js","sources":["../../../src/desktop/hooks/use-outside-scroll.ts"],"sourcesContent":["import { type RefObject, useEffect } from 'react';\n\ninterface Params {\n scrollableNodeRef: RefObject<HTMLDivElement>;\n wheelDeltaY: number;\n}\n\n/** Изменение позиции скролла */\nexport const useOutsideScroll = (params: Params) => {\n const { scrollableNodeRef, wheelDeltaY } = params;\n\n useEffect(() => {\n if (scrollableNodeRef.current) {\n scrollableNodeRef.current.scrollBy({\n top: wheelDeltaY,\n });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [wheelDeltaY]);\n};\n"],"names":[],"mappings":";;AAOA;AACa,MAAA,gBAAgB,GAAG,CAAC,MAAc,KAAI;AAC/C,IAAA,MAAM,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,MAAM;IAEjD,SAAS,CAAC,MAAK;QACX,IAAI,iBAAiB,CAAC,OAAO,EAAE;AAC3B,YAAA,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC;AAC/B,gBAAA,GAAG,EAAE,WAAW;AACnB,aAAA,CAAC;AACL;;AAEL,KAAC,EAAE,CAAC,WAAW,CAAC,CAAC;AACrB;;;;"}
@@ -1,10 +1,10 @@
1
- import { RefObject } from 'react';
2
- declare type Params = {
1
+ import { type RefObject } from 'react';
2
+ interface Params {
3
3
  scrollbarRef: RefObject<HTMLDivElement>;
4
4
  verticalBarRef: RefObject<HTMLDivElement>;
5
5
  headerElementRef: RefObject<HTMLDivElement>;
6
6
  footerElementRef: RefObject<HTMLDivElement>;
7
- };
7
+ }
8
8
  /** Устанавливает размер полосы прокрутки в зависимости от наличия хедера и футера */
9
9
  export declare const useSetScrollbarHeight: (params: Params) => void;
10
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"use-set-scrollbar-height.js","sources":["../../../src/desktop/hooks/use-set-scrollbar-height.tsx"],"sourcesContent":["import { RefObject, useEffect } from 'react';\n\nimport { SCROLLBAR_DEFAULT_GAP } from '../constants';\n\ntype Params = {\n scrollbarRef: RefObject<HTMLDivElement>;\n verticalBarRef: RefObject<HTMLDivElement>;\n headerElementRef: RefObject<HTMLDivElement>;\n footerElementRef: RefObject<HTMLDivElement>;\n};\n\n/** Устанавливает размер полосы прокрутки в зависимости от наличия хедера и футера */\nexport const useSetScrollbarHeight = (params: Params) => {\n const { scrollbarRef, verticalBarRef, headerElementRef, footerElementRef } = params;\n\n useEffect(() => {\n if (scrollbarRef.current) {\n const verticalBar = verticalBarRef.current;\n\n if (verticalBar) {\n const headerHeight = headerElementRef?.current?.offsetHeight || 0;\n const footerHeight = footerElementRef?.current?.offsetHeight || 0;\n\n let topGap;\n let topOffset;\n let bottomGap;\n\n if (headerHeight) {\n // если есть header уменьшаем размер скролла на величину хедера и добавляем отступ сверху\n topGap = headerHeight;\n topOffset = headerHeight;\n } else {\n // иначе уменьшаем размер скролла и увеличиваем отступ на величину скругления\n topGap = SCROLLBAR_DEFAULT_GAP;\n topOffset = SCROLLBAR_DEFAULT_GAP;\n }\n\n if (footerHeight) {\n // если есть footer уменьшаем размер скролла на величину футера\n bottomGap = footerHeight;\n } else {\n // иначе уменьшаем размер на величину скругления\n bottomGap = SCROLLBAR_DEFAULT_GAP;\n }\n\n verticalBar.style.height = `calc(100% - ${topGap}px - ${bottomGap}px)`;\n verticalBar.style.top = `${topOffset}px`;\n }\n }\n });\n};\n"],"names":[],"mappings":";;;AAWA;AACa,MAAA,qBAAqB,GAAG,CAAC,MAAc,KAAI;IACpD,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,MAAM;IAEnF,SAAS,CAAC,MAAK;QACX,IAAI,YAAY,CAAC,OAAO,EAAE;AACtB,YAAA,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO;AAE1C,YAAA,IAAI,WAAW,EAAE;gBACb,MAAM,YAAY,GAAG,gBAAgB,EAAE,OAAO,EAAE,YAAY,IAAI,CAAC;gBACjE,MAAM,YAAY,GAAG,gBAAgB,EAAE,OAAO,EAAE,YAAY,IAAI,CAAC;AAEjE,gBAAA,IAAI,MAAM;AACV,gBAAA,IAAI,SAAS;AACb,gBAAA,IAAI,SAAS;AAEb,gBAAA,IAAI,YAAY,EAAE;;oBAEd,MAAM,GAAG,YAAY;oBACrB,SAAS,GAAG,YAAY;AAC3B;AAAM,qBAAA;;oBAEH,MAAM,GAAG,qBAAqB;oBAC9B,SAAS,GAAG,qBAAqB;AACpC;AAED,gBAAA,IAAI,YAAY,EAAE;;oBAEd,SAAS,GAAG,YAAY;AAC3B;AAAM,qBAAA;;oBAEH,SAAS,GAAG,qBAAqB;AACpC;gBAED,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,eAAe,MAAM,CAAA,KAAA,EAAQ,SAAS,CAAA,GAAA,CAAK;gBACtE,WAAW,CAAC,KAAK,CAAC,GAAG,GAAG,CAAG,EAAA,SAAS,IAAI;AAC3C;AACJ;AACL,KAAC,CAAC;AACN;;;;"}
1
+ {"version":3,"file":"use-set-scrollbar-height.js","sources":["../../../src/desktop/hooks/use-set-scrollbar-height.ts"],"sourcesContent":["import { type RefObject, useEffect } from 'react';\n\nimport { SCROLLBAR_DEFAULT_GAP } from '../constants';\n\ninterface Params {\n scrollbarRef: RefObject<HTMLDivElement>;\n verticalBarRef: RefObject<HTMLDivElement>;\n headerElementRef: RefObject<HTMLDivElement>;\n footerElementRef: RefObject<HTMLDivElement>;\n}\n\n/** Устанавливает размер полосы прокрутки в зависимости от наличия хедера и футера */\nexport const useSetScrollbarHeight = (params: Params) => {\n const { scrollbarRef, verticalBarRef, headerElementRef, footerElementRef } = params;\n\n useEffect(() => {\n if (scrollbarRef.current) {\n const verticalBar = verticalBarRef.current;\n\n if (verticalBar) {\n const headerHeight = headerElementRef?.current?.offsetHeight || 0;\n const footerHeight = footerElementRef?.current?.offsetHeight || 0;\n\n let topGap;\n let topOffset;\n let bottomGap;\n\n if (headerHeight) {\n // если есть header уменьшаем размер скролла на величину хедера и добавляем отступ сверху\n topGap = headerHeight;\n topOffset = headerHeight;\n } else {\n // иначе уменьшаем размер скролла и увеличиваем отступ на величину скругления\n topGap = SCROLLBAR_DEFAULT_GAP;\n topOffset = SCROLLBAR_DEFAULT_GAP;\n }\n\n if (footerHeight) {\n // если есть footer уменьшаем размер скролла на величину футера\n bottomGap = footerHeight;\n } else {\n // иначе уменьшаем размер на величину скругления\n bottomGap = SCROLLBAR_DEFAULT_GAP;\n }\n\n verticalBar.style.height = `calc(100% - ${topGap}px - ${bottomGap}px)`;\n verticalBar.style.top = `${topOffset}px`;\n }\n }\n });\n};\n"],"names":[],"mappings":";;;AAWA;AACa,MAAA,qBAAqB,GAAG,CAAC,MAAc,KAAI;IACpD,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,MAAM;IAEnF,SAAS,CAAC,MAAK;QACX,IAAI,YAAY,CAAC,OAAO,EAAE;AACtB,YAAA,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO;AAE1C,YAAA,IAAI,WAAW,EAAE;gBACb,MAAM,YAAY,GAAG,gBAAgB,EAAE,OAAO,EAAE,YAAY,IAAI,CAAC;gBACjE,MAAM,YAAY,GAAG,gBAAgB,EAAE,OAAO,EAAE,YAAY,IAAI,CAAC;AAEjE,gBAAA,IAAI,MAAM;AACV,gBAAA,IAAI,SAAS;AACb,gBAAA,IAAI,SAAS;AAEb,gBAAA,IAAI,YAAY,EAAE;;oBAEd,MAAM,GAAG,YAAY;oBACrB,SAAS,GAAG,YAAY;AAC3B;AAAM,qBAAA;;oBAEH,MAAM,GAAG,qBAAqB;oBAC9B,SAAS,GAAG,qBAAqB;AACpC;AAED,gBAAA,IAAI,YAAY,EAAE;;oBAEd,SAAS,GAAG,YAAY;AAC3B;AAAM,qBAAA;;oBAEH,SAAS,GAAG,qBAAqB;AACpC;gBAED,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,eAAe,MAAM,CAAA,KAAA,EAAQ,SAAS,CAAA,GAAA,CAAK;gBACtE,WAAW,CAAC,KAAK,CAAC,GAAG,GAAG,CAAG,EAAA,SAAS,IAAI;AAC3C;AACJ;AACL,KAAC,CAAC;AACN;;;;"}
@@ -1,4 +1,4 @@
1
- import { WheelEvent } from 'react';
1
+ import { type WheelEvent } from 'react';
2
2
  export declare const useModalWheel: (overlay: boolean) => {
3
3
  wheelDeltaY: number;
4
4
  handleWheel: (e: WheelEvent<HTMLElement>) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useModalWheel.js","sources":["../../../src/desktop/hooks/useModalWheel.tsx"],"sourcesContent":["import { useState, WheelEvent } from 'react';\n\nexport const useModalWheel = (overlay: boolean) => {\n const [wheelDeltaY, setWheelDeltaY] = useState<number>(0);\n\n // передаем e.deltaY от события на элементе dialog компонента base-modal\n const handleWheel = (e: WheelEvent<HTMLElement>) => {\n const target = e.target as HTMLDivElement;\n\n if (target.getAttribute('role') === 'dialog' && overlay) {\n setWheelDeltaY(e.deltaY);\n }\n };\n\n return { wheelDeltaY, handleWheel };\n};\n"],"names":[],"mappings":";;AAEa,MAAA,aAAa,GAAG,CAAC,OAAgB,KAAI;IAC9C,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;;AAGzD,IAAA,MAAM,WAAW,GAAG,CAAC,CAA0B,KAAI;AAC/C,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,MAAwB;QAEzC,IAAI,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,QAAQ,IAAI,OAAO,EAAE;AACrD,YAAA,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC;AAC3B;AACL,KAAC;AAED,IAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE;AACvC;;;;"}
1
+ {"version":3,"file":"useModalWheel.js","sources":["../../../src/desktop/hooks/useModalWheel.ts"],"sourcesContent":["import { useState, type WheelEvent } from 'react';\n\nexport const useModalWheel = (overlay: boolean) => {\n const [wheelDeltaY, setWheelDeltaY] = useState<number>(0);\n\n // передаем e.deltaY от события на элементе dialog компонента base-modal\n const handleWheel = (e: WheelEvent<HTMLElement>) => {\n const target = e.target as HTMLDivElement;\n\n if (target.getAttribute('role') === 'dialog' && overlay) {\n setWheelDeltaY(e.deltaY);\n }\n };\n\n return { wheelDeltaY, handleWheel };\n};\n"],"names":[],"mappings":";;AAEa,MAAA,aAAa,GAAG,CAAC,OAAgB,KAAI;IAC9C,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;;AAGzD,IAAA,MAAM,WAAW,GAAG,CAAC,CAA0B,KAAI;AAC/C,QAAA,MAAM,MAAM,GAAG,CAAC,CAAC,MAAwB;QAEzC,IAAI,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,QAAQ,IAAI,OAAO,EAAE;AACrD,YAAA,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC;AAC3B;AACL,KAAC;AAED,IAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE;AACvC;;;;"}
@@ -1,3 +1,5 @@
1
+
2
+
1
3
  :root {
2
4
  --universal-modal-backdrop-visible-background: var(--color-light-overlay-default);
3
5
  --universal-modal-backdrop-hidden-background: transparent;
@@ -40,7 +42,8 @@
40
42
 
41
43
  .exitActive {
42
44
  opacity: 1;
43
- animation: step_1 200ms cubic-bezier(0, 0, 1, 0),
45
+ animation:
46
+ step_1 200ms cubic-bezier(0, 0, 1, 0),
44
47
  step_2 200ms cubic-bezier(0, 0, 0, 1) 200ms forwards;
45
48
  }
46
49
 
@@ -8,7 +8,9 @@
8
8
  .enterActive {
9
9
  opacity: 1;
10
10
  transform: translateY(0);
11
- transition: opacity 200ms cubic-bezier(0, 0, 0, 1), transform 200ms cubic-bezier(0, 0, 0, 1);
11
+ transition:
12
+ opacity 200ms cubic-bezier(0, 0, 0, 1),
13
+ transform 200ms cubic-bezier(0, 0, 0, 1);
12
14
  }
13
15
 
14
16
  .exit {
@@ -20,5 +22,7 @@
20
22
  .exitDone {
21
23
  opacity: 0;
22
24
  transform: translateY(40px);
23
- transition: opacity 200ms cubic-bezier(0, 0, 1, 0), transform 200ms cubic-bezier(0, 0, 1, 0);
25
+ transition:
26
+ opacity 200ms cubic-bezier(0, 0, 1, 0),
27
+ transform 200ms cubic-bezier(0, 0, 1, 0);
24
28
  }
@@ -8,7 +8,9 @@
8
8
  .enterActive {
9
9
  opacity: 1;
10
10
  transform: translateY(0);
11
- transition: opacity 200ms cubic-bezier(0, 0, 0, 1), transform 200ms cubic-bezier(0, 0, 0, 1);
11
+ transition:
12
+ opacity 200ms cubic-bezier(0, 0, 0, 1),
13
+ transform 200ms cubic-bezier(0, 0, 0, 1);
12
14
  }
13
15
 
14
16
  .exit {
@@ -20,5 +22,7 @@
20
22
  .exitDone {
21
23
  opacity: 0;
22
24
  transform: translateY(-40px);
23
- transition: opacity 200ms cubic-bezier(0, 0, 1, 0), transform 200ms cubic-bezier(0, 0, 1, 0);
25
+ transition:
26
+ opacity 200ms cubic-bezier(0, 0, 1, 0),
27
+ transform 200ms cubic-bezier(0, 0, 1, 0);
24
28
  }
@@ -1,7 +1,7 @@
1
- import type { RefObject } from 'react';
2
- import { BaseModalProps } from '@alfalab/core-components-base-modal/moderncssm';
3
- import { TMargin } from '../../typings/margin-type';
4
- export declare type BaseUniversalModalProps = {
1
+ import { type RefObject } from 'react';
2
+ import { type BaseModalProps } from '@alfalab/core-components-base-modal/moderncssm';
3
+ import { type TMargin } from '../../typings/margin-type';
4
+ export interface BaseUniversalModalProps {
5
5
  /**
6
6
  * Расположение по горизонтали и сторона с которой модал “выезжает” при открытии
7
7
  * @default center
@@ -36,10 +36,10 @@ export declare type BaseUniversalModalProps = {
36
36
  * Устанавливает отступы модального окна
37
37
  */
38
38
  margin?: TMargin;
39
- };
40
- export declare type UniversalModalDesktopProps = BaseUniversalModalProps & Pick<BaseModalProps, 'open'> & Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'disableBackdropClick' | 'onClose'>> & {
39
+ }
40
+ export interface UniversalModalDesktopProps extends BaseUniversalModalProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'disableBackdropClick' | 'onClose'>> {
41
41
  /**
42
42
  * Реф контейнера на котором происходит scroll
43
43
  */
44
44
  scrollableContainerRef?: RefObject<HTMLDivElement>;
45
- };
45
+ }
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  export declare const checkHeaderAndFooter: (children: ReactNode) => {
3
3
  hasHeader: boolean;
4
4
  hasFooter: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"check-header-and-footer.js","sources":["../../../src/desktop/utils/check-header-and-footer.tsx"],"sourcesContent":["import { Children, isValidElement, ReactNode } from 'react';\n\nimport { FooterDesktop } from '../../components/footer';\nimport { HeaderDesktop } from '../../components/header';\n\nimport { isFooterNode } from './isFooterNode';\nimport { isHeaderNode } from './isHeaderNode';\n\ntype ChildType = typeof HeaderDesktop | typeof FooterDesktop;\n\nexport const checkHeaderAndFooter = (children: ReactNode) => {\n let hasHeader = false;\n let hasFooter = false;\n\n Children.forEach(children, (child) => {\n if (isValidElement(child)) {\n const { displayName } = child.type as ChildType;\n\n if (displayName && isHeaderNode(displayName)) {\n hasHeader = true;\n }\n\n if (displayName && isFooterNode(displayName)) {\n hasFooter = true;\n }\n }\n });\n\n return { hasHeader, hasFooter };\n};\n"],"names":[],"mappings":";;;;AAUa,MAAA,oBAAoB,GAAG,CAAC,QAAmB,KAAI;IACxD,IAAI,SAAS,GAAG,KAAK;IACrB,IAAI,SAAS,GAAG,KAAK;IAErB,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAI;AACjC,QAAA,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE;AACvB,YAAA,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,IAAiB;AAE/C,YAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;gBAC1C,SAAS,GAAG,IAAI;AACnB;AAED,YAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;gBAC1C,SAAS,GAAG,IAAI;AACnB;AACJ;AACL,KAAC,CAAC;AAEF,IAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE;AACnC;;;;"}
1
+ {"version":3,"file":"check-header-and-footer.js","sources":["../../../src/desktop/utils/check-header-and-footer.ts"],"sourcesContent":["import { Children, isValidElement, type ReactNode } from 'react';\n\nimport { type FooterDesktop } from '../../components/footer';\nimport { type HeaderDesktop } from '../../components/header';\n\nimport { isFooterNode } from './isFooterNode';\nimport { isHeaderNode } from './isHeaderNode';\n\ntype ChildType = typeof HeaderDesktop | typeof FooterDesktop;\n\nexport const checkHeaderAndFooter = (children: ReactNode) => {\n let hasHeader = false;\n let hasFooter = false;\n\n Children.forEach(children, (child) => {\n if (isValidElement(child)) {\n const { displayName } = child.type as ChildType;\n\n if (displayName && isHeaderNode(displayName)) {\n hasHeader = true;\n }\n\n if (displayName && isFooterNode(displayName)) {\n hasFooter = true;\n }\n }\n });\n\n return { hasHeader, hasFooter };\n};\n"],"names":[],"mappings":";;;;AAUa,MAAA,oBAAoB,GAAG,CAAC,QAAmB,KAAI;IACxD,IAAI,SAAS,GAAG,KAAK;IACrB,IAAI,SAAS,GAAG,KAAK;IAErB,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAI;AACjC,QAAA,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE;AACvB,YAAA,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,IAAiB;AAE/C,YAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;gBAC1C,SAAS,GAAG,IAAI;AACnB;AAED,YAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;gBAC1C,SAAS,GAAG,IAAI;AACnB;AACJ;AACL,KAAC,CAAC;AAEF,IAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE;AACnC;;;;"}
@@ -1,15 +1,15 @@
1
- import { TransitionProps } from 'react-transition-group/Transition';
2
- import { BackdropProps } from '@alfalab/core-components-backdrop/moderncssm';
3
- import { UniversalModalDesktopProps } from '../types/props';
4
- declare type Params = {
1
+ import { type TransitionProps } from 'react-transition-group/Transition';
2
+ import { type BackdropProps } from '@alfalab/core-components-backdrop/moderncssm';
3
+ import { type UniversalModalDesktopProps } from '../types/props';
4
+ interface Params {
5
5
  verticalAlign: Exclude<UniversalModalDesktopProps['verticalAlign'], undefined>;
6
6
  width: UniversalModalDesktopProps['width'];
7
7
  height: UniversalModalDesktopProps['height'];
8
- };
9
- declare type ReturnType = {
8
+ }
9
+ interface ReturnType {
10
10
  isFullSizeModal: boolean;
11
11
  backdropTransitions: Partial<BackdropProps>;
12
12
  componentTransitions: Partial<TransitionProps>;
13
- };
13
+ }
14
14
  export declare const getFullSizeModalTransitions: (params: Params) => ReturnType;
15
15
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"get-full-size-modal-transitions.js","sources":["../../../src/desktop/utils/get-full-size-modal-transitions.ts"],"sourcesContent":["import { TransitionProps } from 'react-transition-group/Transition';\n\nimport { BackdropProps } from '@alfalab/core-components-backdrop';\nimport { exhaustiveCheck } from '@alfalab/core-components-shared';\n\nimport { UniversalModalDesktopProps } from '../types/props';\n\nimport fullSizeBackdropTransitions from '../styles/transitions/full-size-backdrop-transitions.module.css';\nimport fullSizeVerticalBottomTransitions from '../styles/transitions/full-size-vertical-bottom-transitions.module.css';\nimport fullSizeVerticalCenterTransitions from '../styles/transitions/full-size-vertical-center-transitions.module.css';\nimport fullSizeVerticalTopTransitions from '../styles/transitions/full-size-vertical-top-transitions.module.css';\n\ntype Params = {\n verticalAlign: Exclude<UniversalModalDesktopProps['verticalAlign'], undefined>;\n width: UniversalModalDesktopProps['width'];\n height: UniversalModalDesktopProps['height'];\n};\n\ntype ReturnType = {\n isFullSizeModal: boolean;\n backdropTransitions: Partial<BackdropProps>;\n componentTransitions: Partial<TransitionProps>;\n};\n\nexport const getFullSizeModalTransitions = (params: Params): ReturnType => {\n const { verticalAlign, width, height } = params;\n\n const isFullSizeModal = width === 'fullWidth' && height === 'fullHeight';\n\n const backdropTransitions = {\n timeout: {\n enter: 0,\n exit: 400,\n },\n transitionClassNames: fullSizeBackdropTransitions,\n };\n\n const getContentTransitionsClassNames = () => {\n switch (verticalAlign) {\n case 'top':\n return fullSizeVerticalTopTransitions;\n case 'bottom':\n return fullSizeVerticalBottomTransitions;\n case 'center':\n return fullSizeVerticalCenterTransitions;\n default:\n return exhaustiveCheck(verticalAlign);\n }\n };\n\n const componentTransitions = {\n timeout: {\n enter: 200,\n exit: 400,\n },\n classNames: getContentTransitionsClassNames(),\n };\n\n return {\n isFullSizeModal,\n backdropTransitions,\n componentTransitions,\n };\n};\n"],"names":[],"mappings":";;;;;;AAwBa,MAAA,2BAA2B,GAAG,CAAC,MAAc,KAAgB;IACtE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;IAE/C,MAAM,eAAe,GAAG,KAAK,KAAK,WAAW,IAAI,MAAM,KAAK,YAAY;AAExE,IAAA,MAAM,mBAAmB,GAAG;AACxB,QAAA,OAAO,EAAE;AACL,YAAA,KAAK,EAAE,CAAC;AACR,YAAA,IAAI,EAAE,GAAG;AACZ,SAAA;AACD,QAAA,oBAAoB,EAAE,2BAA2B;KACpD;IAED,MAAM,+BAA+B,GAAG,MAAK;AACzC,QAAA,QAAQ,aAAa;AACjB,YAAA,KAAK,KAAK;AACN,gBAAA,OAAO,8BAA8B;AACzC,YAAA,KAAK,QAAQ;AACT,gBAAA,OAAO,iCAAiC;AAC5C,YAAA,KAAK,QAAQ;AACT,gBAAA,OAAO,iCAAiC;AAC5C,YAAA;AACI,gBAAA,OAAO,eAAe,CAAC,aAAa,CAAC;AAC5C;AACL,KAAC;AAED,IAAA,MAAM,oBAAoB,GAAG;AACzB,QAAA,OAAO,EAAE;AACL,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,IAAI,EAAE,GAAG;AACZ,SAAA;QACD,UAAU,EAAE,+BAA+B,EAAE;KAChD;IAED,OAAO;QACH,eAAe;QACf,mBAAmB;QACnB,oBAAoB;KACvB;AACL;;;;"}
1
+ {"version":3,"file":"get-full-size-modal-transitions.js","sources":["../../../src/desktop/utils/get-full-size-modal-transitions.ts"],"sourcesContent":["import { type TransitionProps } from 'react-transition-group/Transition';\n\nimport { type BackdropProps } from '@alfalab/core-components-backdrop';\nimport { exhaustiveCheck } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\nimport fullSizeBackdropTransitions from '../styles/transitions/full-size-backdrop-transitions.module.css';\nimport fullSizeVerticalBottomTransitions from '../styles/transitions/full-size-vertical-bottom-transitions.module.css';\nimport fullSizeVerticalCenterTransitions from '../styles/transitions/full-size-vertical-center-transitions.module.css';\nimport fullSizeVerticalTopTransitions from '../styles/transitions/full-size-vertical-top-transitions.module.css';\n\ninterface Params {\n verticalAlign: Exclude<UniversalModalDesktopProps['verticalAlign'], undefined>;\n width: UniversalModalDesktopProps['width'];\n height: UniversalModalDesktopProps['height'];\n}\n\ninterface ReturnType {\n isFullSizeModal: boolean;\n backdropTransitions: Partial<BackdropProps>;\n componentTransitions: Partial<TransitionProps>;\n}\n\nexport const getFullSizeModalTransitions = (params: Params): ReturnType => {\n const { verticalAlign, width, height } = params;\n\n const isFullSizeModal = width === 'fullWidth' && height === 'fullHeight';\n\n const backdropTransitions = {\n timeout: {\n enter: 0,\n exit: 400,\n },\n transitionClassNames: fullSizeBackdropTransitions,\n };\n\n const getContentTransitionsClassNames = () => {\n switch (verticalAlign) {\n case 'top':\n return fullSizeVerticalTopTransitions;\n case 'bottom':\n return fullSizeVerticalBottomTransitions;\n case 'center':\n return fullSizeVerticalCenterTransitions;\n default:\n return exhaustiveCheck(verticalAlign);\n }\n };\n\n const componentTransitions = {\n timeout: {\n enter: 200,\n exit: 400,\n },\n classNames: getContentTransitionsClassNames(),\n };\n\n return {\n isFullSizeModal,\n backdropTransitions,\n componentTransitions,\n };\n};\n"],"names":[],"mappings":";;;;;;AAwBa,MAAA,2BAA2B,GAAG,CAAC,MAAc,KAAgB;IACtE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;IAE/C,MAAM,eAAe,GAAG,KAAK,KAAK,WAAW,IAAI,MAAM,KAAK,YAAY;AAExE,IAAA,MAAM,mBAAmB,GAAG;AACxB,QAAA,OAAO,EAAE;AACL,YAAA,KAAK,EAAE,CAAC;AACR,YAAA,IAAI,EAAE,GAAG;AACZ,SAAA;AACD,QAAA,oBAAoB,EAAE,2BAA2B;KACpD;IAED,MAAM,+BAA+B,GAAG,MAAK;AACzC,QAAA,QAAQ,aAAa;AACjB,YAAA,KAAK,KAAK;AACN,gBAAA,OAAO,8BAA8B;AACzC,YAAA,KAAK,QAAQ;AACT,gBAAA,OAAO,iCAAiC;AAC5C,YAAA,KAAK,QAAQ;AACT,gBAAA,OAAO,iCAAiC;AAC5C,YAAA;AACI,gBAAA,OAAO,eAAe,CAAC,aAAa,CAAC;AAC5C;AACL,KAAC;AAED,IAAA,MAAM,oBAAoB,GAAG;AACzB,QAAA,OAAO,EAAE;AACL,YAAA,KAAK,EAAE,GAAG;AACV,YAAA,IAAI,EAAE,GAAG;AACZ,SAAA;QACD,UAAU,EAAE,+BAA+B,EAAE;KAChD;IAED,OAAO;QACH,eAAe;QACf,mBAAmB;QACnB,oBAAoB;KACvB;AACL;;;;"}
@@ -1,2 +1,2 @@
1
- import { UniversalModalDesktopProps } from '../types/props';
1
+ import { type UniversalModalDesktopProps } from '../types/props';
2
2
  export declare const getHeightStyle: (height: Exclude<UniversalModalDesktopProps['height'], undefined>, margin: UniversalModalDesktopProps['margin']) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"get-height-style.js","sources":["../../../src/desktop/utils/get-height-style.ts"],"sourcesContent":["import { hasOwnProperty, isClient } from '@alfalab/core-components-shared';\n\nimport { UniversalModalDesktopProps } from '../types/props';\n\nexport const getHeightStyle = (\n height: Exclude<UniversalModalDesktopProps['height'], undefined>,\n margin: UniversalModalDesktopProps['margin'],\n) => {\n let viewportHeight = 0;\n\n if (isClient()) {\n viewportHeight = Math.max(\n document.documentElement.clientHeight || 0,\n window.innerHeight || 0,\n );\n }\n\n if (height > viewportHeight || height === 'fullHeight') {\n const marginTop = (margin && hasOwnProperty(margin, 'top') && margin.top) || 0;\n const marginBottom = (margin && hasOwnProperty(margin, 'bottom') && margin.bottom) || 0;\n\n return `calc(100% - ${marginTop}px - ${marginBottom}px)`;\n }\n\n return `${height}px`;\n};\n"],"names":[],"mappings":";;MAIa,cAAc,GAAG,CAC1B,MAAgE,EAChE,MAA4C,KAC5C;IACA,IAAI,cAAc,GAAG,CAAC;IAEtB,IAAI,QAAQ,EAAE,EAAE;AACZ,QAAA,cAAc,GAAG,IAAI,CAAC,GAAG,CACrB,QAAQ,CAAC,eAAe,CAAC,YAAY,IAAI,CAAC,EAC1C,MAAM,CAAC,WAAW,IAAI,CAAC,CAC1B;AACJ;AAED,IAAA,IAAI,MAAM,GAAG,cAAc,IAAI,MAAM,KAAK,YAAY,EAAE;AACpD,QAAA,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC;AAC9E,QAAA,MAAM,YAAY,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAEvF,QAAA,OAAO,CAAe,YAAA,EAAA,SAAS,CAAQ,KAAA,EAAA,YAAY,KAAK;AAC3D;IAED,OAAO,CAAA,EAAG,MAAM,CAAA,EAAA,CAAI;AACxB;;;;"}
1
+ {"version":3,"file":"get-height-style.js","sources":["../../../src/desktop/utils/get-height-style.ts"],"sourcesContent":["import { hasOwnProperty, isClient } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\nexport const getHeightStyle = (\n height: Exclude<UniversalModalDesktopProps['height'], undefined>,\n margin: UniversalModalDesktopProps['margin'],\n) => {\n let viewportHeight = 0;\n\n if (isClient()) {\n viewportHeight = Math.max(\n document.documentElement.clientHeight || 0,\n window.innerHeight || 0,\n );\n }\n\n if (height > viewportHeight || height === 'fullHeight') {\n const marginTop = (margin && hasOwnProperty(margin, 'top') && margin.top) || 0;\n const marginBottom = (margin && hasOwnProperty(margin, 'bottom') && margin.bottom) || 0;\n\n return `calc(100% - ${marginTop}px - ${marginBottom}px)`;\n }\n\n return `${height}px`;\n};\n"],"names":[],"mappings":";;MAIa,cAAc,GAAG,CAC1B,MAAgE,EAChE,MAA4C,KAC5C;IACA,IAAI,cAAc,GAAG,CAAC;IAEtB,IAAI,QAAQ,EAAE,EAAE;AACZ,QAAA,cAAc,GAAG,IAAI,CAAC,GAAG,CACrB,QAAQ,CAAC,eAAe,CAAC,YAAY,IAAI,CAAC,EAC1C,MAAM,CAAC,WAAW,IAAI,CAAC,CAC1B;AACJ;AAED,IAAA,IAAI,MAAM,GAAG,cAAc,IAAI,MAAM,KAAK,YAAY,EAAE;AACpD,QAAA,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC;AAC9E,QAAA,MAAM,YAAY,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAEvF,QAAA,OAAO,CAAe,YAAA,EAAA,SAAS,CAAQ,KAAA,EAAA,YAAY,KAAK;AAC3D;IAED,OAAO,CAAA,EAAG,MAAM,CAAA,EAAA,CAAI;AACxB;;;;"}
@@ -1,7 +1,7 @@
1
- import { UniversalModalDesktopProps } from '../types/props';
2
- declare type Params = {
1
+ import { type UniversalModalDesktopProps } from '../types/props';
2
+ interface Params {
3
3
  styles: Record<string, string>;
4
4
  margin: UniversalModalDesktopProps['margin'];
5
- };
5
+ }
6
6
  export declare const getMarginStyles: (params: Params) => Record<string, boolean>;
7
7
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"get-margin-styles.js","sources":["../../../src/desktop/utils/get-margin-styles.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { UniversalModalDesktopProps } from '../types/props';\n\ntype Params = {\n styles: Record<string, string>;\n margin: UniversalModalDesktopProps['margin'];\n};\n\nexport const getMarginStyles = (params: Params): Record<string, boolean> => {\n const { margin, styles } = params;\n\n if (margin) {\n return {\n [styles[`marginTop-${margin.top}`]]: hasOwnProperty(margin, 'top'),\n [styles[`marginRight-${margin.right}`]]: hasOwnProperty(margin, 'right'),\n [styles[`marginBottom-${margin.bottom}`]]: hasOwnProperty(margin, 'bottom'),\n [styles[`marginLeft-${margin.left}`]]: hasOwnProperty(margin, 'left'),\n };\n }\n\n return {};\n};\n"],"names":[],"mappings":";;AASa,MAAA,eAAe,GAAG,CAAC,MAAc,KAA6B;AACvE,IAAA,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM;AAEjC,IAAA,IAAI,MAAM,EAAE;QACR,OAAO;AACH,YAAA,CAAC,MAAM,CAAC,CAAa,UAAA,EAAA,MAAM,CAAC,GAAG,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC;AAClE,YAAA,CAAC,MAAM,CAAC,CAAe,YAAA,EAAA,MAAM,CAAC,KAAK,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC;AACxE,YAAA,CAAC,MAAM,CAAC,CAAgB,aAAA,EAAA,MAAM,CAAC,MAAM,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC;AAC3E,YAAA,CAAC,MAAM,CAAC,CAAc,WAAA,EAAA,MAAM,CAAC,IAAI,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;SACxE;AACJ;AAED,IAAA,OAAO,EAAE;AACb;;;;"}
1
+ {"version":3,"file":"get-margin-styles.js","sources":["../../../src/desktop/utils/get-margin-styles.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\ninterface Params {\n styles: Record<string, string>;\n margin: UniversalModalDesktopProps['margin'];\n}\n\nexport const getMarginStyles = (params: Params): Record<string, boolean> => {\n const { margin, styles } = params;\n\n if (margin) {\n return {\n [styles[`marginTop-${margin.top}`]]: hasOwnProperty(margin, 'top'),\n [styles[`marginRight-${margin.right}`]]: hasOwnProperty(margin, 'right'),\n [styles[`marginBottom-${margin.bottom}`]]: hasOwnProperty(margin, 'bottom'),\n [styles[`marginLeft-${margin.left}`]]: hasOwnProperty(margin, 'left'),\n };\n }\n\n return {};\n};\n"],"names":[],"mappings":";;AASa,MAAA,eAAe,GAAG,CAAC,MAAc,KAA6B;AACvE,IAAA,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM;AAEjC,IAAA,IAAI,MAAM,EAAE;QACR,OAAO;AACH,YAAA,CAAC,MAAM,CAAC,CAAa,UAAA,EAAA,MAAM,CAAC,GAAG,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC;AAClE,YAAA,CAAC,MAAM,CAAC,CAAe,YAAA,EAAA,MAAM,CAAC,KAAK,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC;AACxE,YAAA,CAAC,MAAM,CAAC,CAAgB,aAAA,EAAA,MAAM,CAAC,MAAM,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC;AAC3E,YAAA,CAAC,MAAM,CAAC,CAAc,WAAA,EAAA,MAAM,CAAC,IAAI,CAAA,CAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;SACxE;AACJ;AAED,IAAA,OAAO,EAAE;AACb;;;;"}
@@ -1,2 +1,2 @@
1
- import { UniversalModalDesktopProps } from '../types/props';
1
+ import { type UniversalModalDesktopProps } from '../types/props';
2
2
  export declare const getMaxHeightStyle: (margin: UniversalModalDesktopProps['margin']) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"get-max-height-style.js","sources":["../../../src/desktop/utils/get-max-height-style.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { UniversalModalDesktopProps } from '../types/props';\n\nexport const getMaxHeightStyle = (margin: UniversalModalDesktopProps['margin']) => {\n const marginTop = (margin && hasOwnProperty(margin, 'top') && margin.top) || 0;\n const marginBottom = (margin && hasOwnProperty(margin, 'bottom') && margin.bottom) || 0;\n\n return `calc(100% - ${marginTop}px - ${marginBottom}px)`;\n};\n"],"names":[],"mappings":";;AAIa,MAAA,iBAAiB,GAAG,CAAC,MAA4C,KAAI;AAC9E,IAAA,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC;AAC9E,IAAA,MAAM,YAAY,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAEvF,IAAA,OAAO,CAAe,YAAA,EAAA,SAAS,CAAQ,KAAA,EAAA,YAAY,KAAK;AAC5D;;;;"}
1
+ {"version":3,"file":"get-max-height-style.js","sources":["../../../src/desktop/utils/get-max-height-style.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\nexport const getMaxHeightStyle = (margin: UniversalModalDesktopProps['margin']) => {\n const marginTop = (margin && hasOwnProperty(margin, 'top') && margin.top) || 0;\n const marginBottom = (margin && hasOwnProperty(margin, 'bottom') && margin.bottom) || 0;\n\n return `calc(100% - ${marginTop}px - ${marginBottom}px)`;\n};\n"],"names":[],"mappings":";;AAIa,MAAA,iBAAiB,GAAG,CAAC,MAA4C,KAAI;AAC9E,IAAA,MAAM,SAAS,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC;AAC9E,IAAA,MAAM,YAAY,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAEvF,IAAA,OAAO,CAAe,YAAA,EAAA,SAAS,CAAQ,KAAA,EAAA,YAAY,KAAK;AAC5D;;;;"}
@@ -1,2 +1,2 @@
1
- import { UniversalModalDesktopProps } from '../types/props';
1
+ import { type UniversalModalDesktopProps } from '../types/props';
2
2
  export declare const getWidthStyle: (width: Exclude<UniversalModalDesktopProps['width'], undefined>, margin: UniversalModalDesktopProps['margin']) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"get-width-style.js","sources":["../../../src/desktop/utils/get-width-style.ts"],"sourcesContent":["import { hasOwnProperty, isClient } from '@alfalab/core-components-shared';\n\nimport { UniversalModalDesktopProps } from '../types/props';\n\nexport const getWidthStyle = (\n width: Exclude<UniversalModalDesktopProps['width'], undefined>,\n margin: UniversalModalDesktopProps['margin'],\n) => {\n let viewportWidth = 0;\n\n if (isClient()) {\n viewportWidth = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);\n }\n\n if (width > viewportWidth || width === 'fullWidth') {\n const marginLeft = (margin && hasOwnProperty(margin, 'left') && margin.left) || 0;\n const marginRight = (margin && hasOwnProperty(margin, 'right') && margin.right) || 0;\n\n return `calc(100% - ${marginLeft}px - ${marginRight}px)`;\n }\n\n return `${width}px`;\n};\n"],"names":[],"mappings":";;MAIa,aAAa,GAAG,CACzB,KAA8D,EAC9D,MAA4C,KAC5C;IACA,IAAI,aAAa,GAAG,CAAC;IAErB,IAAI,QAAQ,EAAE,EAAE;AACZ,QAAA,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,WAAW,IAAI,CAAC,EAAE,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC;AAC9F;AAED,IAAA,IAAI,KAAK,GAAG,aAAa,IAAI,KAAK,KAAK,WAAW,EAAE;AAChD,QAAA,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC;AACjF,QAAA,MAAM,WAAW,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,KAAK,KAAK,CAAC;AAEpF,QAAA,OAAO,CAAe,YAAA,EAAA,UAAU,CAAQ,KAAA,EAAA,WAAW,KAAK;AAC3D;IAED,OAAO,CAAA,EAAG,KAAK,CAAA,EAAA,CAAI;AACvB;;;;"}
1
+ {"version":3,"file":"get-width-style.js","sources":["../../../src/desktop/utils/get-width-style.ts"],"sourcesContent":["import { hasOwnProperty, isClient } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\nexport const getWidthStyle = (\n width: Exclude<UniversalModalDesktopProps['width'], undefined>,\n margin: UniversalModalDesktopProps['margin'],\n) => {\n let viewportWidth = 0;\n\n if (isClient()) {\n viewportWidth = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);\n }\n\n if (width > viewportWidth || width === 'fullWidth') {\n const marginLeft = (margin && hasOwnProperty(margin, 'left') && margin.left) || 0;\n const marginRight = (margin && hasOwnProperty(margin, 'right') && margin.right) || 0;\n\n return `calc(100% - ${marginLeft}px - ${marginRight}px)`;\n }\n\n return `${width}px`;\n};\n"],"names":[],"mappings":";;MAIa,aAAa,GAAG,CACzB,KAA8D,EAC9D,MAA4C,KAC5C;IACA,IAAI,aAAa,GAAG,CAAC;IAErB,IAAI,QAAQ,EAAE,EAAE;AACZ,QAAA,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,WAAW,IAAI,CAAC,EAAE,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC;AAC9F;AAED,IAAA,IAAI,KAAK,GAAG,aAAa,IAAI,KAAK,KAAK,WAAW,EAAE;AAChD,QAAA,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC;AACjF,QAAA,MAAM,WAAW,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,KAAK,KAAK,CAAC;AAEpF,QAAA,OAAO,CAAe,YAAA,EAAA,UAAU,CAAQ,KAAA,EAAA,WAAW,KAAK;AAC3D;IAED,OAAO,CAAA,EAAG,KAAK,CAAA,EAAA,CAAI;AACvB;;;;"}
@@ -1,9 +1,9 @@
1
- import { ReactElement, ReactNode, RefObject } from 'react';
2
- declare type Params = {
1
+ import { type ReactElement, type ReactNode, type RefObject } from 'react';
2
+ interface Params {
3
3
  children: ReactNode;
4
4
  headerElementRef: RefObject<HTMLDivElement>;
5
5
  footerElementRef: RefObject<HTMLDivElement>;
6
- };
6
+ }
7
7
  /** Устанавливает рефы в хедер и футер если они переданы в модалку (необходимы для дальнейшего расчета высоты кастомного скроллбара) */
8
8
  export declare const setFooterAndHeaderRefs: (params: Params) => {
9
9
  enhancedChildren: (string | number | ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment)[] | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"set-footer-and-header-refs.js","sources":["../../../src/desktop/utils/set-footer-and-header-refs.tsx"],"sourcesContent":["import {\n Children,\n cloneElement,\n isValidElement,\n MutableRefObject,\n ReactElement,\n ReactNode,\n RefObject,\n} from 'react';\nimport mergeRefs from 'react-merge-refs';\n\nimport { FooterDesktop } from '../../components/footer';\nimport { HeaderDesktop } from '../../components/header';\n\nimport { isFooterNode } from './isFooterNode';\nimport { isHeaderNode } from './isHeaderNode';\n\ntype Params = {\n children: ReactNode;\n headerElementRef: RefObject<HTMLDivElement>;\n footerElementRef: RefObject<HTMLDivElement>;\n};\n\n/** Устанавливает рефы в хедер и футер если они переданы в модалку (необходимы для дальнейшего расчета высоты кастомного скроллбара) */\nexport const setFooterAndHeaderRefs = (params: Params) => {\n const { children, headerElementRef, footerElementRef } = params;\n\n const enhancedChildren = Children.map(children, (child) => {\n if (!isValidElement(child)) {\n return child;\n }\n\n const { displayName } = child.type as typeof HeaderDesktop | typeof FooterDesktop;\n\n if (displayName && isHeaderNode(displayName)) {\n const existingRef = child as ReactElement & { ref: MutableRefObject<HTMLDivElement> };\n\n return cloneElement(child, { ref: mergeRefs([existingRef.ref, headerElementRef]) });\n }\n\n if (displayName && isFooterNode(displayName)) {\n const existingRef = child as ReactElement & { ref: MutableRefObject<HTMLDivElement> };\n\n return cloneElement(child, { ref: mergeRefs([existingRef.ref, footerElementRef]) });\n }\n\n return child;\n });\n\n return { enhancedChildren };\n};\n"],"names":[],"mappings":";;;;;AAuBA;AACa,MAAA,sBAAsB,GAAG,CAAC,MAAc,KAAI;IACrD,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,MAAM;IAE/D,MAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAI;AACtD,QAAA,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;AACxB,YAAA,OAAO,KAAK;AACf;AAED,QAAA,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,IAAmD;AAEjF,QAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;YAC1C,MAAM,WAAW,GAAG,KAAiE;AAErF,YAAA,OAAO,YAAY,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC;AACtF;AAED,QAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;YAC1C,MAAM,WAAW,GAAG,KAAiE;AAErF,YAAA,OAAO,YAAY,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC;AACtF;AAED,QAAA,OAAO,KAAK;AAChB,KAAC,CAAC;IAEF,OAAO,EAAE,gBAAgB,EAAE;AAC/B;;;;"}
1
+ {"version":3,"file":"set-footer-and-header-refs.js","sources":["../../../src/desktop/utils/set-footer-and-header-refs.ts"],"sourcesContent":["import {\n Children,\n cloneElement,\n isValidElement,\n type MutableRefObject,\n type ReactElement,\n type ReactNode,\n type RefObject,\n} from 'react';\nimport mergeRefs from 'react-merge-refs';\n\nimport { type FooterDesktop } from '../../components/footer';\nimport { type HeaderDesktop } from '../../components/header';\n\nimport { isFooterNode } from './isFooterNode';\nimport { isHeaderNode } from './isHeaderNode';\n\ninterface Params {\n children: ReactNode;\n headerElementRef: RefObject<HTMLDivElement>;\n footerElementRef: RefObject<HTMLDivElement>;\n}\n\n/** Устанавливает рефы в хедер и футер если они переданы в модалку (необходимы для дальнейшего расчета высоты кастомного скроллбара) */\nexport const setFooterAndHeaderRefs = (params: Params) => {\n const { children, headerElementRef, footerElementRef } = params;\n\n const enhancedChildren = Children.map(children, (child) => {\n if (!isValidElement(child)) {\n return child;\n }\n\n const { displayName } = child.type as typeof HeaderDesktop | typeof FooterDesktop;\n\n if (displayName && isHeaderNode(displayName)) {\n const existingRef = child as ReactElement & { ref: MutableRefObject<HTMLDivElement> };\n\n return cloneElement(child, { ref: mergeRefs([existingRef.ref, headerElementRef]) });\n }\n\n if (displayName && isFooterNode(displayName)) {\n const existingRef = child as ReactElement & { ref: MutableRefObject<HTMLDivElement> };\n\n return cloneElement(child, { ref: mergeRefs([existingRef.ref, footerElementRef]) });\n }\n\n return child;\n });\n\n return { enhancedChildren };\n};\n"],"names":[],"mappings":";;;;;AAuBA;AACa,MAAA,sBAAsB,GAAG,CAAC,MAAc,KAAI;IACrD,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,MAAM;IAE/D,MAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAI;AACtD,QAAA,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;AACxB,YAAA,OAAO,KAAK;AACf;AAED,QAAA,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,IAAmD;AAEjF,QAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;YAC1C,MAAM,WAAW,GAAG,KAAiE;AAErF,YAAA,OAAO,YAAY,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC;AACtF;AAED,QAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;YAC1C,MAAM,WAAW,GAAG,KAAiE;AAErF,YAAA,OAAO,YAAY,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC;AACtF;AAED,QAAA,OAAO,KAAK;AAChB,KAAC,CAAC;IAEF,OAAO,EAAE,gBAAgB,EAAE;AAC/B;;;;"}
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- export declare const UniversalModalMobileComponent: React.ForwardRefExoticComponent<import("./types/props").BaseUniversalModalMobileProps & Pick<import("@alfalab/core-components-base-modal").BaseModalProps, "open"> & Partial<Pick<import("@alfalab/core-components-base-modal").BaseModalProps, "children" | "className" | "dataTestId" | "wrapperClassName" | "onUnmount" | "transitionProps" | "onClose">> & React.RefAttributes<HTMLDivElement>>;
3
- export declare const UniversalModalMobile: React.ForwardRefExoticComponent<import("./types/props").BaseUniversalModalMobileProps & Pick<import("@alfalab/core-components-base-modal").BaseModalProps, "open"> & Partial<Pick<import("@alfalab/core-components-base-modal").BaseModalProps, "children" | "className" | "dataTestId" | "wrapperClassName" | "onUnmount" | "transitionProps" | "onClose">> & React.RefAttributes<HTMLDivElement>> & {
2
+ import { type UniversalModalMobileProps } from './types/props';
3
+ export declare const UniversalModalMobileComponent: React.ForwardRefExoticComponent<UniversalModalMobileProps & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const UniversalModalMobile: React.ForwardRefExoticComponent<UniversalModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
4
5
  Header: React.FC<import("../components/header").HeaderMobileProps>;
5
6
  Content: React.FC<import("../components/content/base-content/base-content").ContentProps>;
6
7
  Footer: React.FC<import("../components/footer/base-footer/base-footer").FooterProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"Component.mobile.js","sources":["../../src/mobile/Component.mobile.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\n\nimport { ContentMobile } from '../components/content';\nimport { FooterMobile } from '../components/footer';\nimport { HeaderMobile } from '../components/header';\n\nimport { UniversalModalMobileProps } from './types/props';\n\nimport styles from './mobile.module.css';\nimport rightSideTransitions from './transitions/right-side-transitions.mobile.module.css';\nimport transitions from './transitions/transitions.mobile.module.css';\n\nexport const UniversalModalMobileComponent = forwardRef<HTMLDivElement, UniversalModalMobileProps>(\n (props, ref) => {\n const { children, className, dataTestId, appearance = 'bottom', ...restProps } = props;\n\n return (\n <BaseModal\n {...restProps}\n dataTestId={dataTestId}\n ref={ref}\n transitionProps={{\n timeout: appearance === 'right' ? 360 : 200,\n classNames: appearance === 'right' ? rightSideTransitions : transitions,\n ...restProps.transitionProps,\n }}\n className={cn(className, styles.component)}\n scrollHandler='content'\n contentClassName={styles.content}\n >\n {children}\n </BaseModal>\n );\n },\n);\n\nexport const UniversalModalMobile = Object.assign(UniversalModalMobileComponent, {\n Header: HeaderMobile,\n Content: ContentMobile,\n Footer: FooterMobile,\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAea,MAAA,6BAA6B,GAAG,UAAU,CACnD,CAAC,KAAK,EAAE,GAAG,KAAI;AACX,IAAA,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,GAAG,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;AAEtF,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,GACF,SAAS,EACb,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,eAAe,EAAE;YACb,OAAO,EAAE,UAAU,KAAK,OAAO,GAAG,GAAG,GAAG,GAAG;YAC3C,UAAU,EAAE,UAAU,KAAK,OAAO,GAAG,oBAAoB,GAAG,WAAW;YACvE,GAAG,SAAS,CAAC,eAAe;SAC/B,EACD,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,EAC1C,aAAa,EAAC,SAAS,EACvB,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAE/B,EAAA,QAAQ,CACD;AAEpB,CAAC;MAGQ,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,6BAA6B,EAAE;AAC7E,IAAA,MAAM,EAAE,YAAY;AACpB,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,MAAM,EAAE,YAAY;AACvB,CAAA;;;;"}
1
+ {"version":3,"file":"Component.mobile.js","sources":["../../src/mobile/Component.mobile.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\n\nimport { ContentMobile } from '../components/content';\nimport { FooterMobile } from '../components/footer';\nimport { HeaderMobile } from '../components/header';\n\nimport { type UniversalModalMobileProps } from './types/props';\n\nimport styles from './mobile.module.css';\nimport rightSideTransitions from './transitions/right-side-transitions.mobile.module.css';\nimport transitions from './transitions/transitions.mobile.module.css';\n\nexport const UniversalModalMobileComponent = forwardRef<HTMLDivElement, UniversalModalMobileProps>(\n (props, ref) => {\n const { children, className, dataTestId, appearance = 'bottom', ...restProps } = props;\n\n return (\n <BaseModal\n {...restProps}\n dataTestId={dataTestId}\n ref={ref}\n transitionProps={{\n timeout: appearance === 'right' ? 360 : 200,\n classNames: appearance === 'right' ? rightSideTransitions : transitions,\n ...restProps.transitionProps,\n }}\n className={cn(className, styles.component)}\n scrollHandler='content'\n contentClassName={styles.content}\n >\n {children}\n </BaseModal>\n );\n },\n);\n\nexport const UniversalModalMobile = Object.assign(UniversalModalMobileComponent, {\n Header: HeaderMobile,\n Content: ContentMobile,\n Footer: FooterMobile,\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAea,MAAA,6BAA6B,GAAG,UAAU,CACnD,CAAC,KAAK,EAAE,GAAG,KAAI;AACX,IAAA,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,GAAG,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;AAEtF,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,GACF,SAAS,EACb,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,eAAe,EAAE;YACb,OAAO,EAAE,UAAU,KAAK,OAAO,GAAG,GAAG,GAAG,GAAG;YAC3C,UAAU,EAAE,UAAU,KAAK,OAAO,GAAG,oBAAoB,GAAG,WAAW;YACvE,GAAG,SAAS,CAAC,eAAe;SAC/B,EACD,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,EAC1C,aAAa,EAAC,SAAS,EACvB,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAE/B,EAAA,QAAQ,CACD;AAEpB,CAAC;MAGQ,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,6BAA6B,EAAE;AAC7E,IAAA,MAAM,EAAE,YAAY;AACpB,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,MAAM,EAAE,YAAY;AACvB,CAAA;;;;"}
@@ -1,6 +1,6 @@
1
- import { FC, MouseEvent } from 'react';
2
- declare type ArrowButtonDesktopProps = {
1
+ import { type FC, type MouseEvent } from 'react';
2
+ interface ArrowButtonDesktopProps {
3
3
  onClick?: (e: MouseEvent) => void;
4
- };
4
+ }
5
5
  export declare const ArrowButtonMobile: FC<ArrowButtonDesktopProps>;
6
6
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"arrow-button.js","sources":["../../../../../src/mobile/components/buttons/arrow-button/arrow-button.tsx"],"sourcesContent":["import React, { FC, MouseEvent } from 'react';\n\nimport { ButtonMobile } from '@alfalab/core-components-button/mobile';\nimport { ChevronLeftMIcon } from '@alfalab/icons-glyph/ChevronLeftMIcon';\n\nimport styles from './arrow-button.module.css';\n\ntype ArrowButtonDesktopProps = {\n onClick?: (e: MouseEvent) => void;\n};\n\nexport const ArrowButtonMobile: FC<ArrowButtonDesktopProps> = (props) => {\n const { onClick } = props;\n\n return (\n <ButtonMobile\n shape='rounded'\n size={32}\n leftAddons={<ChevronLeftMIcon className={styles.icon} />}\n className={styles.button}\n onClick={onClick}\n />\n );\n};\n"],"names":[],"mappings":";;;;;AAWa,MAAA,iBAAiB,GAAgC,CAAC,KAAK,KAAI;AACpE,IAAA,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK;AAEzB,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EACT,KAAK,EAAC,SAAS,EACf,IAAI,EAAE,EAAE,EACR,UAAU,EAAE,oBAAC,gBAAgB,EAAA,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAI,CAAA,EACxD,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,OAAO,EAAE,OAAO,EAAA,CAClB;AAEV;;;;"}
1
+ {"version":3,"file":"arrow-button.js","sources":["../../../../../src/mobile/components/buttons/arrow-button/arrow-button.tsx"],"sourcesContent":["import React, { type FC, type MouseEvent } from 'react';\n\nimport { ButtonMobile } from '@alfalab/core-components-button/mobile';\nimport { ChevronLeftMIcon } from '@alfalab/icons-glyph/ChevronLeftMIcon';\n\nimport styles from './arrow-button.module.css';\n\ninterface ArrowButtonDesktopProps {\n onClick?: (e: MouseEvent) => void;\n}\n\nexport const ArrowButtonMobile: FC<ArrowButtonDesktopProps> = (props) => {\n const { onClick } = props;\n\n return (\n <ButtonMobile\n shape='rounded'\n size={32}\n leftAddons={<ChevronLeftMIcon className={styles.icon} />}\n className={styles.button}\n onClick={onClick}\n />\n );\n};\n"],"names":[],"mappings":";;;;;AAWa,MAAA,iBAAiB,GAAgC,CAAC,KAAK,KAAI;AACpE,IAAA,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK;AAEzB,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EACT,KAAK,EAAC,SAAS,EACf,IAAI,EAAE,EAAE,EACR,UAAU,EAAE,oBAAC,gBAAgB,EAAA,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAI,CAAA,EACxD,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,OAAO,EAAE,OAAO,EAAA,CAClB;AAEV;;;;"}
@@ -1,3 +1,5 @@
1
+
2
+
1
3
  .button.button {
2
4
  padding: 0 7px;
3
5
  width: 24px;
@@ -1,6 +1,6 @@
1
- import { FC } from 'react';
2
- declare type CrossButtonProps = {
1
+ import { type FC } from 'react';
2
+ interface CrossButtonProps {
3
3
  onClick?: () => void;
4
- };
4
+ }
5
5
  export declare const CrossButtonMobile: FC<CrossButtonProps>;
6
6
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"cross-button.js","sources":["../../../../../src/mobile/components/buttons/cross-button/cross-button.tsx"],"sourcesContent":["import React, { FC } from 'react';\n\nimport { ButtonMobile } from '@alfalab/core-components-button/mobile';\nimport { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';\n\nimport styles from './cross-button.module.css';\n\ntype CrossButtonProps = {\n onClick?: () => void;\n};\n\nexport const CrossButtonMobile: FC<CrossButtonProps> = (props) => {\n const { onClick } = props;\n\n return (\n <ButtonMobile\n leftAddons={<CrossMIcon className={styles.icon} />}\n size={32}\n shape='rounded'\n className={styles.button}\n onClick={onClick}\n />\n );\n};\n"],"names":[],"mappings":";;;;;AAWa,MAAA,iBAAiB,GAAyB,CAAC,KAAK,KAAI;AAC7D,IAAA,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK;AAEzB,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EACT,UAAU,EAAE,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAClD,IAAI,EAAE,EAAE,EACR,KAAK,EAAC,SAAS,EACf,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,OAAO,EAAE,OAAO,EAAA,CAClB;AAEV;;;;"}
1
+ {"version":3,"file":"cross-button.js","sources":["../../../../../src/mobile/components/buttons/cross-button/cross-button.tsx"],"sourcesContent":["import React, { type FC } from 'react';\n\nimport { ButtonMobile } from '@alfalab/core-components-button/mobile';\nimport { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';\n\nimport styles from './cross-button.module.css';\n\ninterface CrossButtonProps {\n onClick?: () => void;\n}\n\nexport const CrossButtonMobile: FC<CrossButtonProps> = (props) => {\n const { onClick } = props;\n\n return (\n <ButtonMobile\n leftAddons={<CrossMIcon className={styles.icon} />}\n size={32}\n shape='rounded'\n className={styles.button}\n onClick={onClick}\n />\n );\n};\n"],"names":[],"mappings":";;;;;AAWa,MAAA,iBAAiB,GAAyB,CAAC,KAAK,KAAI;AAC7D,IAAA,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK;AAEzB,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EACT,UAAU,EAAE,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAClD,IAAI,EAAE,EAAE,EACR,KAAK,EAAC,SAAS,EACf,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,OAAO,EAAE,OAAO,EAAA,CAClB;AAEV;;;;"}
@@ -1,3 +1,5 @@
1
+
2
+
1
3
  .button.button {
2
4
  padding: 0 7px;
3
5
  width: 24px;
@@ -1,3 +1,5 @@
1
+
2
+
1
3
  .component {
2
4
  top: var(--gap-0);
3
5
  height: 100%;
@@ -6,7 +8,7 @@
6
8
  overflow-y: auto;
7
9
  max-width: 600px;
8
10
  display: flex;
9
- flex-direction: column
11
+ flex-direction: column;
10
12
  }
11
13
 
12
14
  .component .content {
@@ -1,3 +1,5 @@
1
+
2
+
1
3
  .appear,
2
4
  .enter {
3
5
  transform: translateX(100%);
@@ -8,7 +8,9 @@
8
8
  .enterActive {
9
9
  opacity: 1;
10
10
  transform: translateY(0);
11
- transition: opacity 200ms ease-in, transform 200ms ease-in;
11
+ transition:
12
+ opacity 200ms ease-in,
13
+ transform 200ms ease-in;
12
14
  }
13
15
 
14
16
  .exit {
@@ -20,5 +22,7 @@
20
22
  .exitDone {
21
23
  opacity: 0;
22
24
  transform: translateY(15px);
23
- transition: opacity 200ms ease-out, transform 200ms ease-out;
25
+ transition:
26
+ opacity 200ms ease-out,
27
+ transform 200ms ease-out;
24
28
  }
@@ -1,6 +1,7 @@
1
- import { BaseModalProps } from '@alfalab/core-components-base-modal/moderncssm';
2
- export declare type BaseUniversalModalMobileProps = {
1
+ import { type BaseModalProps } from '@alfalab/core-components-base-modal/moderncssm';
2
+ export interface BaseUniversalModalMobileProps {
3
3
  /** Сторона с которой будет появляться модальное окно */
4
4
  appearance?: 'bottom' | 'right';
5
- };
6
- export declare type UniversalModalMobileProps = BaseUniversalModalMobileProps & Pick<BaseModalProps, 'open'> & Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onUnmount' | 'transitionProps' | 'onClose'>>;
5
+ }
6
+ export interface UniversalModalMobileProps extends BaseUniversalModalMobileProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onUnmount' | 'transitionProps' | 'onClose'>> {
7
+ }
@@ -1,6 +1,6 @@
1
- import { UniversalModalDesktopProps } from '../desktop';
2
- import { UniversalModalMobileProps } from '../mobile';
3
- export declare type UniversalModalContextType = {
1
+ import { type UniversalModalDesktopProps } from '../desktop';
2
+ import { type UniversalModalMobileProps } from '../mobile';
3
+ export interface UniversalModalContextType {
4
4
  modalWidth: UniversalModalDesktopProps['width'];
5
5
  modalHeaderHighlighted?: boolean;
6
6
  modalFooterHighlighted?: boolean;
@@ -8,8 +8,8 @@ export declare type UniversalModalContextType = {
8
8
  hasFooter: boolean;
9
9
  setModalHeaderHighlighted?: (value: boolean) => void;
10
10
  setModalFooterHighlighted?: (value: boolean) => void;
11
- };
12
- export declare type UniversalModalResponsiveProps = UniversalModalDesktopProps & UniversalModalMobileProps & {
11
+ }
12
+ export interface UniversalModalResponsiveProps extends UniversalModalDesktopProps, UniversalModalMobileProps {
13
13
  /**
14
14
  * Контрольная точка, с нее начинается desktop версия
15
15
  * @default 1024
@@ -19,4 +19,4 @@ export declare type UniversalModalResponsiveProps = UniversalModalDesktopProps &
19
19
  * Значение по-умолчанию для хука useMatchMedia
20
20
  */
21
21
  defaultMatchMediaValue?: boolean | (() => boolean);
22
- };
22
+ }
@@ -1,8 +1,8 @@
1
1
  declare type TMarginSize = 0 | 2 | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96 | 128;
2
- export declare type TMargin = {
2
+ export interface TMargin {
3
3
  top?: TMarginSize;
4
4
  right?: TMarginSize;
5
5
  bottom?: TMarginSize;
6
6
  left?: TMarginSize;
7
- };
7
+ }
8
8
  export {};