@alfalab/core-components-universal-modal 3.0.5 → 3.0.6-alfasans

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/Context.d.ts +0 -1
  2. package/components/content/base-content/index.css +1 -1
  3. package/components/content/base-content/index.module.css.js +1 -1
  4. package/components/content/desktop/desktop.css +2 -2
  5. package/components/content/desktop/desktop.module.css.js +1 -1
  6. package/components/content/mobile/Component.mobile.d.ts +1 -1
  7. package/components/content/mobile/mobile.css +3 -3
  8. package/components/content/mobile/mobile.module.css.js +1 -1
  9. package/components/content/responsive/Component.responsive.js.map +1 -1
  10. package/components/footer/base-footer/index.css +3 -3
  11. package/components/footer/base-footer/index.module.css.js +1 -1
  12. package/components/footer/base-footer/index.module.css.js.map +1 -1
  13. package/components/footer/desktop/desktop.css +1 -1
  14. package/components/footer/desktop/desktop.module.css.js +1 -1
  15. package/components/footer/desktop/layout.css +9 -9
  16. package/components/footer/desktop/layout.module.css.js +1 -1
  17. package/components/footer/mobile/Component.mobile.d.ts +1 -1
  18. package/components/footer/mobile/layout.mobile.css +8 -8
  19. package/components/footer/mobile/layout.mobile.module.css.js +1 -1
  20. package/components/footer/mobile/mobile.css +2 -2
  21. package/components/footer/mobile/mobile.module.css.js +1 -1
  22. package/components/footer/responsive/Component.responsive.js.map +1 -1
  23. package/components/header/base-header/index.css +4 -4
  24. package/components/header/base-header/index.module.css.js +1 -1
  25. package/components/header/base-header/index.module.css.js.map +1 -1
  26. package/components/header/base-header/useBaseHeader.d.ts +2 -2
  27. package/components/header/base-header/useBaseHeader.js.map +1 -1
  28. package/components/header/desktop/desktop.css +16 -11
  29. package/components/header/desktop/desktop.module.css.js +1 -1
  30. package/components/header/mobile/Component.mobile.d.ts +1 -1
  31. package/components/header/mobile/mobile.css +12 -9
  32. package/components/header/mobile/mobile.module.css.js +1 -1
  33. package/components/header/mobile/mobile.module.css.js.map +1 -1
  34. package/components/header/responsive/Component.responsive.js.map +1 -1
  35. package/cssm/Context.d.ts +0 -1
  36. package/cssm/components/content/mobile/Component.mobile.d.ts +1 -1
  37. package/cssm/components/content/responsive/Component.responsive.js.map +1 -1
  38. package/cssm/components/footer/mobile/Component.mobile.d.ts +1 -1
  39. package/cssm/components/footer/responsive/Component.responsive.js.map +1 -1
  40. package/cssm/components/header/base-header/useBaseHeader.d.ts +2 -3
  41. package/cssm/components/header/base-header/useBaseHeader.js.map +1 -1
  42. package/cssm/components/header/desktop/desktop.module.css +11 -6
  43. package/cssm/components/header/mobile/Component.mobile.d.ts +1 -1
  44. package/cssm/components/header/mobile/mobile.module.css +9 -6
  45. package/cssm/components/header/responsive/Component.responsive.js.map +1 -1
  46. package/cssm/desktop/Component.desktop.js.map +1 -1
  47. package/cssm/desktop/context/index.d.ts +0 -1
  48. package/cssm/desktop/hooks/use-modal-highlighted.js.map +1 -1
  49. package/cssm/desktop/hooks/use-outside-scroll.js.map +1 -1
  50. package/cssm/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
  51. package/cssm/desktop/hooks/useModalWheel.js.map +1 -1
  52. package/cssm/desktop/types/context.d.ts +1 -1
  53. package/cssm/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
  54. package/cssm/desktop/utils/get-height-style.d.ts +1 -1
  55. package/cssm/desktop/utils/get-height-style.js +1 -1
  56. package/cssm/desktop/utils/get-height-style.js.map +1 -1
  57. package/cssm/desktop/utils/get-margin-styles.js.map +1 -1
  58. package/cssm/desktop/utils/get-max-height-style.d.ts +1 -1
  59. package/cssm/desktop/utils/get-width-style.d.ts +1 -1
  60. package/cssm/desktop/utils/get-width-style.js +1 -1
  61. package/cssm/desktop/utils/get-width-style.js.map +1 -1
  62. package/cssm/desktop/utils/set-footer-and-header-refs.js +11 -2
  63. package/cssm/desktop/utils/set-footer-and-header-refs.js.map +1 -1
  64. package/cssm/typings/margin-type.d.ts +1 -1
  65. package/desktop/Component.desktop.js.map +1 -1
  66. package/desktop/components/center-modal/index.css +521 -521
  67. package/desktop/components/center-modal/index.module.css.js +1 -1
  68. package/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
  69. package/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  70. package/desktop/components/center-modal/transitions/transitions.css +7 -7
  71. package/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  72. package/desktop/components/modal-content/modal-content.css +4 -4
  73. package/desktop/components/modal-content/modal-content.module.css.js +1 -1
  74. package/desktop/components/modal-content/modal-content.module.css.js.map +1 -1
  75. package/desktop/components/side-modal/index.css +523 -523
  76. package/desktop/components/side-modal/index.module.css.js +1 -1
  77. package/desktop/components/side-modal/transitions/transitions.css +71 -71
  78. package/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  79. package/desktop/context/index.d.ts +0 -1
  80. package/desktop/hooks/use-modal-highlighted.js.map +1 -1
  81. package/desktop/hooks/use-outside-scroll.js.map +1 -1
  82. package/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
  83. package/desktop/hooks/useModalWheel.js.map +1 -1
  84. package/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
  85. package/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  86. package/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js.map +1 -1
  87. package/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
  88. package/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  89. package/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  90. package/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  91. package/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
  92. package/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  93. package/desktop/types/context.d.ts +1 -1
  94. package/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
  95. package/desktop/utils/get-height-style.d.ts +1 -1
  96. package/desktop/utils/get-height-style.js +1 -1
  97. package/desktop/utils/get-height-style.js.map +1 -1
  98. package/desktop/utils/get-margin-styles.js.map +1 -1
  99. package/desktop/utils/get-max-height-style.d.ts +1 -1
  100. package/desktop/utils/get-width-style.d.ts +1 -1
  101. package/desktop/utils/get-width-style.js +1 -1
  102. package/desktop/utils/get-width-style.js.map +1 -1
  103. package/desktop/utils/set-footer-and-header-refs.js +11 -2
  104. package/desktop/utils/set-footer-and-header-refs.js.map +1 -1
  105. package/esm/Context.d.ts +0 -1
  106. package/esm/components/content/base-content/index.css +1 -1
  107. package/esm/components/content/base-content/index.module.css.js +1 -1
  108. package/esm/components/content/desktop/desktop.css +2 -2
  109. package/esm/components/content/desktop/desktop.module.css.js +1 -1
  110. package/esm/components/content/mobile/Component.mobile.d.ts +1 -1
  111. package/esm/components/content/mobile/mobile.css +3 -3
  112. package/esm/components/content/mobile/mobile.module.css.js +1 -1
  113. package/esm/components/content/responsive/Component.responsive.js.map +1 -1
  114. package/esm/components/footer/base-footer/index.css +3 -3
  115. package/esm/components/footer/base-footer/index.module.css.js +1 -1
  116. package/esm/components/footer/base-footer/index.module.css.js.map +1 -1
  117. package/esm/components/footer/desktop/desktop.css +1 -1
  118. package/esm/components/footer/desktop/desktop.module.css.js +1 -1
  119. package/esm/components/footer/desktop/layout.css +9 -9
  120. package/esm/components/footer/desktop/layout.module.css.js +1 -1
  121. package/esm/components/footer/mobile/Component.mobile.d.ts +1 -1
  122. package/esm/components/footer/mobile/layout.mobile.css +8 -8
  123. package/esm/components/footer/mobile/layout.mobile.module.css.js +1 -1
  124. package/esm/components/footer/mobile/mobile.css +2 -2
  125. package/esm/components/footer/mobile/mobile.module.css.js +1 -1
  126. package/esm/components/footer/responsive/Component.responsive.js.map +1 -1
  127. package/esm/components/header/base-header/index.css +4 -4
  128. package/esm/components/header/base-header/index.module.css.js +1 -1
  129. package/esm/components/header/base-header/index.module.css.js.map +1 -1
  130. package/esm/components/header/base-header/useBaseHeader.d.ts +2 -3
  131. package/esm/components/header/base-header/useBaseHeader.js.map +1 -1
  132. package/esm/components/header/desktop/desktop.css +16 -11
  133. package/esm/components/header/desktop/desktop.module.css.js +1 -1
  134. package/esm/components/header/mobile/Component.mobile.d.ts +1 -1
  135. package/esm/components/header/mobile/mobile.css +12 -9
  136. package/esm/components/header/mobile/mobile.module.css.js +1 -1
  137. package/esm/components/header/mobile/mobile.module.css.js.map +1 -1
  138. package/esm/components/header/responsive/Component.responsive.js.map +1 -1
  139. package/esm/desktop/Component.desktop.js.map +1 -1
  140. package/esm/desktop/components/center-modal/index.css +521 -521
  141. package/esm/desktop/components/center-modal/index.module.css.js +1 -1
  142. package/esm/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
  143. package/esm/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  144. package/esm/desktop/components/center-modal/transitions/transitions.css +7 -7
  145. package/esm/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  146. package/esm/desktop/components/modal-content/modal-content.css +4 -4
  147. package/esm/desktop/components/modal-content/modal-content.module.css.js +1 -1
  148. package/esm/desktop/components/modal-content/modal-content.module.css.js.map +1 -1
  149. package/esm/desktop/components/side-modal/index.css +523 -523
  150. package/esm/desktop/components/side-modal/index.module.css.js +1 -1
  151. package/esm/desktop/components/side-modal/transitions/transitions.css +71 -71
  152. package/esm/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  153. package/esm/desktop/context/index.d.ts +0 -1
  154. package/esm/desktop/hooks/use-modal-highlighted.js.map +1 -1
  155. package/esm/desktop/hooks/use-outside-scroll.js.map +1 -1
  156. package/esm/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
  157. package/esm/desktop/hooks/useModalWheel.js.map +1 -1
  158. package/esm/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
  159. package/esm/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  160. package/esm/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js.map +1 -1
  161. package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
  162. package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  163. package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  164. package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  165. package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
  166. package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  167. package/esm/desktop/types/context.d.ts +1 -1
  168. package/esm/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
  169. package/esm/desktop/utils/get-height-style.d.ts +1 -1
  170. package/esm/desktop/utils/get-height-style.js +1 -1
  171. package/esm/desktop/utils/get-height-style.js.map +1 -1
  172. package/esm/desktop/utils/get-margin-styles.js.map +1 -1
  173. package/esm/desktop/utils/get-max-height-style.d.ts +1 -1
  174. package/esm/desktop/utils/get-width-style.d.ts +1 -1
  175. package/esm/desktop/utils/get-width-style.js +1 -1
  176. package/esm/desktop/utils/get-width-style.js.map +1 -1
  177. package/esm/desktop/utils/set-footer-and-header-refs.js +11 -2
  178. package/esm/desktop/utils/set-footer-and-header-refs.js.map +1 -1
  179. package/esm/mobile/mobile.css +3 -3
  180. package/esm/mobile/mobile.module.css.js +1 -1
  181. package/esm/mobile/mobile.module.css.js.map +1 -1
  182. package/esm/mobile/transitions/right-side-transitions.mobile.css +7 -7
  183. package/esm/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  184. package/esm/mobile/transitions/right-side-transitions.mobile.module.css.js.map +1 -1
  185. package/esm/mobile/transitions/transitions.mobile.css +7 -7
  186. package/esm/mobile/transitions/transitions.mobile.module.css.js +1 -1
  187. package/esm/typings/margin-type.d.ts +1 -1
  188. package/mobile/mobile.css +3 -3
  189. package/mobile/mobile.module.css.js +1 -1
  190. package/mobile/mobile.module.css.js.map +1 -1
  191. package/mobile/transitions/right-side-transitions.mobile.css +7 -7
  192. package/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  193. package/mobile/transitions/right-side-transitions.mobile.module.css.js.map +1 -1
  194. package/mobile/transitions/transitions.mobile.css +7 -7
  195. package/mobile/transitions/transitions.mobile.module.css.js +1 -1
  196. package/modern/Context.d.ts +0 -1
  197. package/modern/components/content/base-content/index.css +1 -1
  198. package/modern/components/content/base-content/index.module.css.js +1 -1
  199. package/modern/components/content/desktop/desktop.css +2 -2
  200. package/modern/components/content/desktop/desktop.module.css.js +1 -1
  201. package/modern/components/content/mobile/Component.mobile.d.ts +1 -1
  202. package/modern/components/content/mobile/mobile.css +3 -3
  203. package/modern/components/content/mobile/mobile.module.css.js +1 -1
  204. package/modern/components/content/responsive/Component.responsive.js.map +1 -1
  205. package/modern/components/footer/base-footer/index.css +3 -3
  206. package/modern/components/footer/base-footer/index.module.css.js +1 -1
  207. package/modern/components/footer/base-footer/index.module.css.js.map +1 -1
  208. package/modern/components/footer/desktop/desktop.css +1 -1
  209. package/modern/components/footer/desktop/desktop.module.css.js +1 -1
  210. package/modern/components/footer/desktop/layout.css +9 -9
  211. package/modern/components/footer/desktop/layout.module.css.js +1 -1
  212. package/modern/components/footer/mobile/Component.mobile.d.ts +1 -1
  213. package/modern/components/footer/mobile/layout.mobile.css +8 -8
  214. package/modern/components/footer/mobile/layout.mobile.module.css.js +1 -1
  215. package/modern/components/footer/mobile/mobile.css +2 -2
  216. package/modern/components/footer/mobile/mobile.module.css.js +1 -1
  217. package/modern/components/footer/responsive/Component.responsive.js.map +1 -1
  218. package/modern/components/header/base-header/index.css +4 -4
  219. package/modern/components/header/base-header/index.module.css.js +1 -1
  220. package/modern/components/header/base-header/index.module.css.js.map +1 -1
  221. package/modern/components/header/base-header/useBaseHeader.d.ts +2 -3
  222. package/modern/components/header/base-header/useBaseHeader.js.map +1 -1
  223. package/modern/components/header/desktop/desktop.css +16 -11
  224. package/modern/components/header/desktop/desktop.module.css.js +1 -1
  225. package/modern/components/header/mobile/Component.mobile.d.ts +1 -1
  226. package/modern/components/header/mobile/mobile.css +12 -9
  227. package/modern/components/header/mobile/mobile.module.css.js +1 -1
  228. package/modern/components/header/mobile/mobile.module.css.js.map +1 -1
  229. package/modern/components/header/responsive/Component.responsive.js.map +1 -1
  230. package/modern/desktop/Component.desktop.js.map +1 -1
  231. package/modern/desktop/components/center-modal/index.css +521 -521
  232. package/modern/desktop/components/center-modal/index.module.css.js +1 -1
  233. package/modern/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
  234. package/modern/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
  235. package/modern/desktop/components/center-modal/transitions/transitions.css +7 -7
  236. package/modern/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
  237. package/modern/desktop/components/modal-content/modal-content.css +4 -4
  238. package/modern/desktop/components/modal-content/modal-content.module.css.js +1 -1
  239. package/modern/desktop/components/modal-content/modal-content.module.css.js.map +1 -1
  240. package/modern/desktop/components/side-modal/index.css +523 -523
  241. package/modern/desktop/components/side-modal/index.module.css.js +1 -1
  242. package/modern/desktop/components/side-modal/transitions/transitions.css +71 -71
  243. package/modern/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
  244. package/modern/desktop/context/index.d.ts +0 -1
  245. package/modern/desktop/hooks/use-modal-highlighted.js.map +1 -1
  246. package/modern/desktop/hooks/use-outside-scroll.js.map +1 -1
  247. package/modern/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
  248. package/modern/desktop/hooks/useModalWheel.js.map +1 -1
  249. package/modern/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
  250. package/modern/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
  251. package/modern/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js.map +1 -1
  252. package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
  253. package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
  254. package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
  255. package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
  256. package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
  257. package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
  258. package/modern/desktop/types/context.d.ts +1 -1
  259. package/modern/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
  260. package/modern/desktop/utils/get-height-style.d.ts +1 -1
  261. package/modern/desktop/utils/get-height-style.js +1 -1
  262. package/modern/desktop/utils/get-height-style.js.map +1 -1
  263. package/modern/desktop/utils/get-margin-styles.js.map +1 -1
  264. package/modern/desktop/utils/get-max-height-style.d.ts +1 -1
  265. package/modern/desktop/utils/get-width-style.d.ts +1 -1
  266. package/modern/desktop/utils/get-width-style.js +1 -1
  267. package/modern/desktop/utils/get-width-style.js.map +1 -1
  268. package/modern/desktop/utils/set-footer-and-header-refs.js +10 -2
  269. package/modern/desktop/utils/set-footer-and-header-refs.js.map +1 -1
  270. package/modern/mobile/mobile.css +3 -3
  271. package/modern/mobile/mobile.module.css.js +1 -1
  272. package/modern/mobile/mobile.module.css.js.map +1 -1
  273. package/modern/mobile/transitions/right-side-transitions.mobile.css +7 -7
  274. package/modern/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
  275. package/modern/mobile/transitions/right-side-transitions.mobile.module.css.js.map +1 -1
  276. package/modern/mobile/transitions/transitions.mobile.css +7 -7
  277. package/modern/mobile/transitions/transitions.mobile.module.css.js +1 -1
  278. package/modern/typings/margin-type.d.ts +1 -1
  279. package/moderncssm/Context.d.ts +0 -1
  280. package/moderncssm/components/content/mobile/Component.mobile.d.ts +1 -1
  281. package/moderncssm/components/content/responsive/Component.responsive.js.map +1 -1
  282. package/moderncssm/components/footer/mobile/Component.mobile.d.ts +1 -1
  283. package/moderncssm/components/footer/responsive/Component.responsive.js.map +1 -1
  284. package/moderncssm/components/header/base-header/useBaseHeader.d.ts +2 -3
  285. package/moderncssm/components/header/base-header/useBaseHeader.js.map +1 -1
  286. package/moderncssm/components/header/desktop/desktop.module.css +8 -4
  287. package/moderncssm/components/header/mobile/Component.mobile.d.ts +1 -1
  288. package/moderncssm/components/header/mobile/mobile.module.css +6 -4
  289. package/moderncssm/components/header/responsive/Component.responsive.js.map +1 -1
  290. package/moderncssm/desktop/Component.desktop.js.map +1 -1
  291. package/moderncssm/desktop/context/index.d.ts +0 -1
  292. package/moderncssm/desktop/hooks/use-modal-highlighted.js.map +1 -1
  293. package/moderncssm/desktop/hooks/use-outside-scroll.js.map +1 -1
  294. package/moderncssm/desktop/hooks/use-set-scrollbar-height.js.map +1 -1
  295. package/moderncssm/desktop/hooks/useModalWheel.js.map +1 -1
  296. package/moderncssm/desktop/types/context.d.ts +1 -1
  297. package/moderncssm/desktop/utils/get-full-size-modal-transitions.js.map +1 -1
  298. package/moderncssm/desktop/utils/get-height-style.d.ts +1 -1
  299. package/moderncssm/desktop/utils/get-height-style.js +1 -1
  300. package/moderncssm/desktop/utils/get-height-style.js.map +1 -1
  301. package/moderncssm/desktop/utils/get-margin-styles.js.map +1 -1
  302. package/moderncssm/desktop/utils/get-max-height-style.d.ts +1 -1
  303. package/moderncssm/desktop/utils/get-width-style.d.ts +1 -1
  304. package/moderncssm/desktop/utils/get-width-style.js +1 -1
  305. package/moderncssm/desktop/utils/get-width-style.js.map +1 -1
  306. package/moderncssm/desktop/utils/set-footer-and-header-refs.js +10 -2
  307. package/moderncssm/desktop/utils/set-footer-and-header-refs.js.map +1 -1
  308. package/moderncssm/typings/margin-type.d.ts +1 -1
  309. package/package.json +9 -9
  310. package/src/components/footer/base-footer/index.module.css +1 -1
  311. package/src/components/header/base-header/index.module.css +1 -1
  312. package/src/components/header/mobile/mobile.module.css +1 -1
  313. package/src/desktop/components/modal-content/modal-content.module.css +1 -1
  314. package/src/desktop/components/side-modal/side-modal.module.css +1 -1
  315. package/src/desktop/styles/transitions/full-size-backdrop-transitions.module.css +1 -1
  316. package/src/desktop/utils/get-height-style.ts +1 -1
  317. package/src/desktop/utils/get-width-style.ts +1 -1
  318. package/src/desktop/utils/set-footer-and-header-refs.ts +13 -5
  319. package/src/mobile/mobile.module.css +1 -1
  320. package/src/mobile/transitions/right-side-transitions.mobile.module.css +1 -1
  321. package/src/vars.css +1 -1
  322. package/typings/margin-type.d.ts +1 -1
@@ -1 +1 @@
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 { ModalContext } from '../../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 {\n setHeaderHighlighted: setModalHeaderHighlighted,\n setFooterHighlighted: setModalFooterHighlighted,\n } = useContext(ModalContext);\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;AACI,IAAM,mBAAmB,GAAG,UAAC,MAAc,EAAA;IACtC,IAAA,uBAAuB,GAAwB,MAAM,CAAA,uBAA9B,EAAE,iBAAiB,GAAK,MAAM,CAAA,iBAAX;IAE5C,IAAA,EAAA,GAGF,UAAU,CAAC,YAAY,CAAC,EAFF,yBAAyB,GAAA,EAAA,CAAA,oBAAA,EACzB,yBAAyB,GAAA,EAAA,CAAA,oBACvB;IAE5B,IAAM,YAAY,GAAsC,UAAC,CAAC,EAAA;AACtD,QAAA,IAAM,MAAM,GAAG,CAAC,CAAC,MAAwB;AACjC,QAAA,IAAA,SAAS,GAAiC,MAAM,CAAA,SAAvC,EAAE,YAAY,GAAmB,MAAM,CAAA,YAAzB,EAAE,YAAY,GAAK,MAAM,aAAX;AAE7C,QAAA,IAAM,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;;IAGD,SAAS,CACL,cAAM,OAAA,YAAA;AACF,QAAA,IAAI,yBAAyB,EAAE;YAC3B,yBAAyB,CAAC,KAAK,CAAC;AACnC;AAED,QAAA,IAAI,yBAAyB,EAAE;YAC3B,yBAAyB,CAAC,KAAK,CAAC;AACnC;KACJ,CAAA,EAAA,EACD,CAAC,yBAAyB,EAAE,yBAAyB,CAAC,CACzD;;AAGD,IAAA,SAAS,CAAC,YAAA;AACN,QAAA,IAAM,cAAc,GAAG,IAAI,cAAc,CAAC,YAAA;;YACtC,IAAM,aAAa,GAAG,CAAA,CAAA,EAAA,GAAA,uBAAuB,CAAC,OAAO,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,YAAY,KAAI,CAAC;YACxE,IAAM,aAAa,GAAG,CAAA,CAAA,EAAA,GAAA,iBAAiB,CAAC,OAAO,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,YAAY,KAAI,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;QAED,OAAO,YAAA;YACH,cAAc,CAAC,UAAU,EAAE;AAC/B,SAAC;;AAEL,KAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC;AAE/B,IAAA,OAAO,EAAE,YAAY,EAAA,YAAA,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 { ModalContext } from '../../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 {\n setHeaderHighlighted: setModalHeaderHighlighted,\n setFooterHighlighted: setModalFooterHighlighted,\n } = useContext(ModalContext);\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;AACI,IAAM,mBAAmB,GAAG,UAAC,MAAc,EAAA;IACtC,IAAA,uBAAuB,GAAwB,MAAM,CAAA,uBAA9B,EAAE,iBAAiB,GAAK,MAAM,CAAA,iBAAX;IAE5C,IAAA,EAAA,GAGF,UAAU,CAAC,YAAY,CAAC,EAFF,yBAAyB,GAAA,EAAA,CAAA,oBAAA,EACzB,yBAAyB,GAAA,EAAA,CAAA,oBACvB;IAE5B,IAAM,YAAY,GAAsC,UAAC,CAAC,EAAA;AACtD,QAAA,IAAM,MAAM,GAAG,CAAC,CAAC,MAAwB;AACjC,QAAA,IAAA,SAAS,GAAiC,MAAM,CAAA,SAAvC,EAAE,YAAY,GAAmB,MAAM,CAAA,YAAzB,EAAE,YAAY,GAAK,MAAM,aAAX;AAE7C,QAAA,IAAM,qBAAqB,GAAG,YAAY,GAAG,SAAS,KAAK,YAAY;QAEvE,IAAI,yBAAyB,EAAE;AAC3B,YAAA,yBAAyB,CAAC,SAAS,GAAG,CAAC,CAAC;;QAG5C,IAAI,yBAAyB,EAAE;AAC3B,YAAA,yBAAyB,CAAC,CAAC,qBAAqB,CAAC;;AAEzD,KAAC;;IAGD,SAAS,CACL,cAAM,OAAA,YAAA;QACF,IAAI,yBAAyB,EAAE;YAC3B,yBAAyB,CAAC,KAAK,CAAC;;QAGpC,IAAI,yBAAyB,EAAE;YAC3B,yBAAyB,CAAC,KAAK,CAAC;;KAEvC,CAAA,EAAA,EACD,CAAC,yBAAyB,EAAE,yBAAyB,CAAC,CACzD;;AAGD,IAAA,SAAS,CAAC,YAAA;AACN,QAAA,IAAM,cAAc,GAAG,IAAI,cAAc,CAAC,YAAA;;YACtC,IAAM,aAAa,GAAG,CAAA,CAAA,EAAA,GAAA,uBAAuB,CAAC,OAAO,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,YAAY,KAAI,CAAC;YACxE,IAAM,aAAa,GAAG,CAAA,CAAA,EAAA,GAAA,iBAAiB,CAAC,OAAO,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,YAAY,KAAI,CAAC;YAElE,IAAI,yBAAyB,EAAE;AAC3B,gBAAA,yBAAyB,CAAC,aAAa,GAAG,aAAa,CAAC;;AAEhE,SAAC,CAAC;AAEF,QAAA,IAAI,uBAAuB,CAAC,OAAO,EAAE;AACjC,YAAA,cAAc,CAAC,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC;;QAG3D,OAAO,YAAA;YACH,cAAc,CAAC,UAAU,EAAE;AAC/B,SAAC;;AAEL,KAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC;AAE/B,IAAA,OAAO,EAAE,YAAY,EAAA,YAAA,EAAE;AAC3B;;;;"}
@@ -1 +1 @@
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;AACO,IAAM,gBAAgB,GAAG,UAAC,MAAc,EAAA;IACnC,IAAA,iBAAiB,GAAkB,MAAM,CAAA,iBAAxB,EAAE,WAAW,GAAK,MAAM,CAAA,WAAX;AAEtC,IAAA,SAAS,CAAC,YAAA;QACN,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;AACO,IAAM,gBAAgB,GAAG,UAAC,MAAc,EAAA;IACnC,IAAA,iBAAiB,GAAkB,MAAM,CAAA,iBAAxB,EAAE,WAAW,GAAK,MAAM,CAAA,WAAX;AAEtC,IAAA,SAAS,CAAC,YAAA;AACN,QAAA,IAAI,iBAAiB,CAAC,OAAO,EAAE;AAC3B,YAAA,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC;AAC/B,gBAAA,GAAG,EAAE,WAAW;AACnB,aAAA,CAAC;;;AAGV,KAAC,EAAE,CAAC,WAAW,CAAC,CAAC;AACrB;;;;"}
@@ -1 +1 @@
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;AACO,IAAM,qBAAqB,GAAG,UAAC,MAAc,EAAA;AACxC,IAAA,IAAA,YAAY,GAAyD,MAAM,aAA/D,EAAE,cAAc,GAAyC,MAAM,CAAA,cAA/C,EAAE,gBAAgB,GAAuB,MAAM,CAA7B,gBAAA,EAAE,gBAAgB,GAAK,MAAM,iBAAX;AAExE,IAAA,SAAS,CAAC,YAAA;;QACN,IAAI,YAAY,CAAC,OAAO,EAAE;AACtB,YAAA,IAAM,WAAW,GAAG,cAAc,CAAC,OAAO;AAE1C,YAAA,IAAI,WAAW,EAAE;AACb,gBAAA,IAAM,YAAY,GAAG,CAAA,CAAA,EAAA,GAAA,gBAAgB,KAAhB,IAAA,IAAA,gBAAgB,KAAhB,MAAA,GAAA,MAAA,GAAA,gBAAgB,CAAE,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,YAAY,KAAI,CAAC;AACjE,gBAAA,IAAM,YAAY,GAAG,CAAA,CAAA,EAAA,GAAA,gBAAgB,KAAhB,IAAA,IAAA,gBAAgB,KAAhB,MAAA,GAAA,MAAA,GAAA,gBAAgB,CAAE,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,YAAY,KAAI,CAAC;gBAEjE,IAAI,MAAM,SAAA;gBACV,IAAI,SAAS,SAAA;gBACb,IAAI,SAAS,SAAA;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,sBAAe,MAAM,EAAA,OAAA,CAAA,CAAA,MAAA,CAAQ,SAAS,EAAA,KAAA,CAAK;gBACtE,WAAW,CAAC,KAAK,CAAC,GAAG,GAAG,EAAG,CAAA,MAAA,CAAA,SAAS,OAAI;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;AACO,IAAM,qBAAqB,GAAG,UAAC,MAAc,EAAA;AACxC,IAAA,IAAA,YAAY,GAAyD,MAAM,aAA/D,EAAE,cAAc,GAAyC,MAAM,CAAA,cAA/C,EAAE,gBAAgB,GAAuB,MAAM,CAA7B,gBAAA,EAAE,gBAAgB,GAAK,MAAM,iBAAX;AAExE,IAAA,SAAS,CAAC,YAAA;;AACN,QAAA,IAAI,YAAY,CAAC,OAAO,EAAE;AACtB,YAAA,IAAM,WAAW,GAAG,cAAc,CAAC,OAAO;YAE1C,IAAI,WAAW,EAAE;AACb,gBAAA,IAAM,YAAY,GAAG,CAAA,CAAA,EAAA,GAAA,gBAAgB,KAAhB,IAAA,IAAA,gBAAgB,KAAhB,MAAA,GAAA,MAAA,GAAA,gBAAgB,CAAE,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,YAAY,KAAI,CAAC;AACjE,gBAAA,IAAM,YAAY,GAAG,CAAA,CAAA,EAAA,GAAA,gBAAgB,KAAhB,IAAA,IAAA,gBAAgB,KAAhB,MAAA,GAAA,MAAA,GAAA,gBAAgB,CAAE,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,YAAY,KAAI,CAAC;gBAEjE,IAAI,MAAM,SAAA;gBACV,IAAI,SAAS,SAAA;gBACb,IAAI,SAAS,SAAA;gBAEb,IAAI,YAAY,EAAE;;oBAEd,MAAM,GAAG,YAAY;oBACrB,SAAS,GAAG,YAAY;;qBACrB;;oBAEH,MAAM,GAAG,qBAAqB;oBAC9B,SAAS,GAAG,qBAAqB;;gBAGrC,IAAI,YAAY,EAAE;;oBAEd,SAAS,GAAG,YAAY;;qBACrB;;oBAEH,SAAS,GAAG,qBAAqB;;gBAGrC,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,sBAAe,MAAM,EAAA,OAAA,CAAA,CAAA,MAAA,CAAQ,SAAS,EAAA,KAAA,CAAK;gBACtE,WAAW,CAAC,KAAK,CAAC,GAAG,GAAG,EAAG,CAAA,MAAA,CAAA,SAAS,OAAI;;;AAGpD,KAAC,CAAC;AACN;;;;"}
@@ -1 +1 @@
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":";;AAEO,IAAM,aAAa,GAAG,UAAC,OAAgB,EAAA;IACpC,IAAA,EAAA,GAAgC,QAAQ,CAAS,CAAC,CAAC,EAAlD,WAAW,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,cAAc,GAAA,EAAA,CAAA,CAAA,CAAuB;;IAGzD,IAAM,WAAW,GAAG,UAAC,CAA0B,EAAA;AAC3C,QAAA,IAAM,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,EAAA,WAAA,EAAE,WAAW,EAAA,WAAA,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":";;AAEO,IAAM,aAAa,GAAG,UAAC,OAAgB,EAAA;IACpC,IAAA,EAAA,GAAgC,QAAQ,CAAS,CAAC,CAAC,EAAlD,WAAW,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,cAAc,GAAA,EAAA,CAAA,CAAA,CAAuB;;IAGzD,IAAM,WAAW,GAAG,UAAC,CAA0B,EAAA;AAC3C,QAAA,IAAM,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;;AAEhC,KAAC;AAED,IAAA,OAAO,EAAE,WAAW,EAAA,WAAA,EAAE,WAAW,EAAA,WAAA,EAAE;AACvC;;;;"}
@@ -5,7 +5,7 @@
5
5
  --universal-modal-backdrop-visible-background: var(--color-light-overlay-default);
6
6
  --universal-modal-backdrop-hidden-background: transparent;
7
7
  }
8
- @keyframes universal-modal__step_1_1vka4 {
8
+ @keyframes universal-modal__step_1_snxei {
9
9
  0% {
10
10
  opacity: 1;
11
11
  }
@@ -13,7 +13,7 @@
13
13
  opacity: 0.5;
14
14
  }
15
15
  }
16
- @keyframes universal-modal__step_2_1vka4 {
16
+ @keyframes universal-modal__step_2_snxei {
17
17
  0% {
18
18
  opacity: 0.5;
19
19
  }
@@ -22,26 +22,26 @@
22
22
  background-color: var(--universal-modal-backdrop-hidden-background);
23
23
  }
24
24
  }
25
- .universal-modal__appear_1vka4,
26
- .universal-modal__enter_1vka4 {
25
+ .universal-modal__appear_snxei,
26
+ .universal-modal__enter_snxei {
27
27
  background-color: var(--universal-modal-backdrop-hidden-background);
28
28
  }
29
- .universal-modal__appearActive_1vka4,
30
- .universal-modal__enterActive_1vka4,
31
- .universal-modal__appearDone_1vka4,
32
- .universal-modal__enterDone_1vka4 {
29
+ .universal-modal__appearActive_snxei,
30
+ .universal-modal__enterActive_snxei,
31
+ .universal-modal__appearDone_snxei,
32
+ .universal-modal__enterDone_snxei {
33
33
  background-color: var(--universal-modal-backdrop-visible-background);
34
34
  }
35
- .universal-modal__exit_1vka4 {
35
+ .universal-modal__exit_snxei {
36
36
  background-color: var(--universal-modal-backdrop-visible-background);
37
37
  }
38
- .universal-modal__exitActive_1vka4 {
38
+ .universal-modal__exitActive_snxei {
39
39
  opacity: 1;
40
40
  animation:
41
- universal-modal__step_1_1vka4 200ms cubic-bezier(0, 0, 1, 0),
42
- universal-modal__step_2_1vka4 200ms cubic-bezier(0, 0, 0, 1) 200ms forwards;
41
+ universal-modal__step_1_snxei 200ms cubic-bezier(0, 0, 1, 0),
42
+ universal-modal__step_2_snxei 200ms cubic-bezier(0, 0, 0, 1) 200ms forwards;
43
43
  }
44
- .universal-modal__exitDone_1vka4 {
44
+ .universal-modal__exitDone_snxei {
45
45
  opacity: 0;
46
46
  background-color: var(--universal-modal-backdrop-hidden-background);
47
47
  }
@@ -1,6 +1,6 @@
1
1
  import './full-size-backdrop-transitions.css';
2
2
 
3
- var fullSizeBackdropTransitions = {"appear":"universal-modal__appear_1vka4","enter":"universal-modal__enter_1vka4","appearActive":"universal-modal__appearActive_1vka4","enterActive":"universal-modal__enterActive_1vka4","appearDone":"universal-modal__appearDone_1vka4","enterDone":"universal-modal__enterDone_1vka4","exit":"universal-modal__exit_1vka4","exitActive":"universal-modal__exitActive_1vka4","step_1":"universal-modal__step_1_1vka4","step_2":"universal-modal__step_2_1vka4","exitDone":"universal-modal__exitDone_1vka4"};
3
+ var fullSizeBackdropTransitions = {"appear":"universal-modal__appear_snxei","enter":"universal-modal__enter_snxei","appearActive":"universal-modal__appearActive_snxei","enterActive":"universal-modal__enterActive_snxei","appearDone":"universal-modal__appearDone_snxei","enterDone":"universal-modal__enterDone_snxei","exit":"universal-modal__exit_snxei","exitActive":"universal-modal__exitActive_snxei","step_1":"universal-modal__step_1_snxei","step_2":"universal-modal__step_2_snxei","exitDone":"universal-modal__exitDone_snxei"};
4
4
 
5
5
  export { fullSizeBackdropTransitions as default };
6
6
  //# sourceMappingURL=full-size-backdrop-transitions.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"full-size-backdrop-transitions.module.css.js","sources":["../../../src/desktop/styles/transitions/full-size-backdrop-transitions.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n:root {\n --universal-modal-backdrop-visible-background: var(--color-light-overlay-default);\n --universal-modal-backdrop-hidden-background: transparent;\n}\n\n@keyframes step_1 {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0.5;\n }\n}\n\n@keyframes step_2 {\n 0% {\n opacity: 0.5;\n }\n 100% {\n opacity: 0;\n background-color: var(--universal-modal-backdrop-hidden-background);\n }\n}\n\n.appear,\n.enter {\n background-color: var(--universal-modal-backdrop-hidden-background);\n}\n\n.appearActive,\n.enterActive,\n.appearDone,\n.enterDone {\n background-color: var(--universal-modal-backdrop-visible-background);\n}\n\n.exit {\n background-color: var(--universal-modal-backdrop-visible-background);\n}\n\n.exitActive {\n opacity: 1;\n animation:\n step_1 200ms cubic-bezier(0, 0, 1, 0),\n step_2 200ms cubic-bezier(0, 0, 0, 1) 200ms forwards;\n}\n\n.exitDone {\n opacity: 0;\n background-color: var(--universal-modal-backdrop-hidden-background);\n}\n"],"names":[],"mappings":";;AAEgB,kCAAe,CAAC,QAAQ,CAAC,+BAA+B,CAAC,OAAO,CAAC,8BAA8B,CAAC,cAAc,CAAC,qCAAqC,CAAC,aAAa,CAAC,oCAAoC,CAAC,YAAY,CAAC,mCAAmC,CAAC,WAAW,CAAC,kCAAkC,CAAC,MAAM,CAAC,6BAA6B,CAAC,YAAY,CAAC,mCAAmC,CAAC,QAAQ,CAAC,+BAA+B,CAAC,QAAQ,CAAC,+BAA+B,CAAC,UAAU,CAAC,iCAAiC,CAAC;;;;"}
1
+ {"version":3,"file":"full-size-backdrop-transitions.module.css.js","sources":["../../../src/desktop/styles/transitions/full-size-backdrop-transitions.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n:root {\n --universal-modal-backdrop-visible-background: var(--color-light-overlay-default);\n --universal-modal-backdrop-hidden-background: transparent;\n}\n\n@keyframes step_1 {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0.5;\n }\n}\n\n@keyframes step_2 {\n 0% {\n opacity: 0.5;\n }\n 100% {\n opacity: 0;\n background-color: var(--universal-modal-backdrop-hidden-background);\n }\n}\n\n.appear,\n.enter {\n background-color: var(--universal-modal-backdrop-hidden-background);\n}\n\n.appearActive,\n.enterActive,\n.appearDone,\n.enterDone {\n background-color: var(--universal-modal-backdrop-visible-background);\n}\n\n.exit {\n background-color: var(--universal-modal-backdrop-visible-background);\n}\n\n.exitActive {\n opacity: 1;\n animation:\n step_1 200ms cubic-bezier(0, 0, 1, 0),\n step_2 200ms cubic-bezier(0, 0, 0, 1) 200ms forwards;\n}\n\n.exitDone {\n opacity: 0;\n background-color: var(--universal-modal-backdrop-hidden-background);\n}\n"],"names":[],"mappings":";;AAEgB,kCAAe,CAAC,QAAQ,CAAC,+BAA+B,CAAC,OAAO,CAAC,8BAA8B,CAAC,cAAc,CAAC,qCAAqC,CAAC,aAAa,CAAC,oCAAoC,CAAC,YAAY,CAAC,mCAAmC,CAAC,WAAW,CAAC,kCAAkC,CAAC,MAAM,CAAC,6BAA6B,CAAC,YAAY,CAAC,mCAAmC,CAAC,QAAQ,CAAC,+BAA+B,CAAC,QAAQ,CAAC,+BAA+B,CAAC,UAAU,CAAC,iCAAiC,CAAC;;;;"}
@@ -1,11 +1,11 @@
1
- .universal-modal__appear_1ruao,
2
- .universal-modal__enter_1ruao {
1
+ .universal-modal__appear_1yg03,
2
+ .universal-modal__enter_1yg03 {
3
3
  opacity: 0;
4
4
  transform: translateY(40px);
5
5
  }
6
6
 
7
- .universal-modal__appearActive_1ruao,
8
- .universal-modal__enterActive_1ruao {
7
+ .universal-modal__appearActive_1yg03,
8
+ .universal-modal__enterActive_1yg03 {
9
9
  opacity: 1;
10
10
  transform: translateY(0);
11
11
  transition:
@@ -13,13 +13,13 @@
13
13
  transform 200ms cubic-bezier(0, 0, 0, 1);
14
14
  }
15
15
 
16
- .universal-modal__exit_1ruao {
16
+ .universal-modal__exit_1yg03 {
17
17
  opacity: 1;
18
18
  transform: translateY(0);
19
19
  }
20
20
 
21
- .universal-modal__exitActive_1ruao,
22
- .universal-modal__exitDone_1ruao {
21
+ .universal-modal__exitActive_1yg03,
22
+ .universal-modal__exitDone_1yg03 {
23
23
  opacity: 0;
24
24
  transform: translateY(40px);
25
25
  transition:
@@ -1,6 +1,6 @@
1
1
  import './full-size-vertical-bottom-transitions.css';
2
2
 
3
- var fullSizeVerticalBottomTransitions = {"appear":"universal-modal__appear_1ruao","enter":"universal-modal__enter_1ruao","appearActive":"universal-modal__appearActive_1ruao","enterActive":"universal-modal__enterActive_1ruao","exit":"universal-modal__exit_1ruao","exitActive":"universal-modal__exitActive_1ruao","exitDone":"universal-modal__exitDone_1ruao"};
3
+ var fullSizeVerticalBottomTransitions = {"appear":"universal-modal__appear_1yg03","enter":"universal-modal__enter_1yg03","appearActive":"universal-modal__appearActive_1yg03","enterActive":"universal-modal__enterActive_1yg03","exit":"universal-modal__exit_1yg03","exitActive":"universal-modal__exitActive_1yg03","exitDone":"universal-modal__exitDone_1yg03"};
4
4
 
5
5
  export { fullSizeVerticalBottomTransitions as default };
6
6
  //# sourceMappingURL=full-size-vertical-bottom-transitions.module.css.js.map
@@ -1,20 +1,20 @@
1
- .universal-modal__appear_1c5ua,
2
- .universal-modal__enter_1c5ua {
1
+ .universal-modal__appear_b1il8,
2
+ .universal-modal__enter_b1il8 {
3
3
  opacity: 0;
4
4
  }
5
5
 
6
- .universal-modal__appearActive_1c5ua,
7
- .universal-modal__enterActive_1c5ua {
6
+ .universal-modal__appearActive_b1il8,
7
+ .universal-modal__enterActive_b1il8 {
8
8
  opacity: 1;
9
9
  transition: opacity 200ms cubic-bezier(0, 0, 0, 1);
10
10
  }
11
11
 
12
- .universal-modal__exit_1c5ua {
12
+ .universal-modal__exit_b1il8 {
13
13
  opacity: 1;
14
14
  }
15
15
 
16
- .universal-modal__exitActive_1c5ua,
17
- .universal-modal__exitDone_1c5ua {
16
+ .universal-modal__exitActive_b1il8,
17
+ .universal-modal__exitDone_b1il8 {
18
18
  opacity: 0;
19
19
  transition: opacity 200ms cubic-bezier(0, 0, 1, 0);
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import './full-size-vertical-center-transitions.css';
2
2
 
3
- var fullSizeVerticalCenterTransitions = {"appear":"universal-modal__appear_1c5ua","enter":"universal-modal__enter_1c5ua","appearActive":"universal-modal__appearActive_1c5ua","enterActive":"universal-modal__enterActive_1c5ua","exit":"universal-modal__exit_1c5ua","exitActive":"universal-modal__exitActive_1c5ua","exitDone":"universal-modal__exitDone_1c5ua"};
3
+ var fullSizeVerticalCenterTransitions = {"appear":"universal-modal__appear_b1il8","enter":"universal-modal__enter_b1il8","appearActive":"universal-modal__appearActive_b1il8","enterActive":"universal-modal__enterActive_b1il8","exit":"universal-modal__exit_b1il8","exitActive":"universal-modal__exitActive_b1il8","exitDone":"universal-modal__exitDone_b1il8"};
4
4
 
5
5
  export { fullSizeVerticalCenterTransitions as default };
6
6
  //# sourceMappingURL=full-size-vertical-center-transitions.module.css.js.map
@@ -1,11 +1,11 @@
1
- .universal-modal__appear_1txy9,
2
- .universal-modal__enter_1txy9 {
1
+ .universal-modal__appear_1m6jk,
2
+ .universal-modal__enter_1m6jk {
3
3
  opacity: 0;
4
4
  transform: translateY(-40px);
5
5
  }
6
6
 
7
- .universal-modal__appearActive_1txy9,
8
- .universal-modal__enterActive_1txy9 {
7
+ .universal-modal__appearActive_1m6jk,
8
+ .universal-modal__enterActive_1m6jk {
9
9
  opacity: 1;
10
10
  transform: translateY(0);
11
11
  transition:
@@ -13,13 +13,13 @@
13
13
  transform 200ms cubic-bezier(0, 0, 0, 1);
14
14
  }
15
15
 
16
- .universal-modal__exit_1txy9 {
16
+ .universal-modal__exit_1m6jk {
17
17
  opacity: 1;
18
18
  transform: translateY(0);
19
19
  }
20
20
 
21
- .universal-modal__exitActive_1txy9,
22
- .universal-modal__exitDone_1txy9 {
21
+ .universal-modal__exitActive_1m6jk,
22
+ .universal-modal__exitDone_1m6jk {
23
23
  opacity: 0;
24
24
  transform: translateY(-40px);
25
25
  transition:
@@ -1,6 +1,6 @@
1
1
  import './full-size-vertical-top-transitions.css';
2
2
 
3
- var fullSizeVerticalTopTransitions = {"appear":"universal-modal__appear_1txy9","enter":"universal-modal__enter_1txy9","appearActive":"universal-modal__appearActive_1txy9","enterActive":"universal-modal__enterActive_1txy9","exit":"universal-modal__exit_1txy9","exitActive":"universal-modal__exitActive_1txy9","exitDone":"universal-modal__exitDone_1txy9"};
3
+ var fullSizeVerticalTopTransitions = {"appear":"universal-modal__appear_1m6jk","enter":"universal-modal__enter_1m6jk","appearActive":"universal-modal__appearActive_1m6jk","enterActive":"universal-modal__enterActive_1m6jk","exit":"universal-modal__exit_1m6jk","exitActive":"universal-modal__exitActive_1m6jk","exitDone":"universal-modal__exitDone_1m6jk"};
4
4
 
5
5
  export { fullSizeVerticalTopTransitions as default };
6
6
  //# sourceMappingURL=full-size-vertical-top-transitions.module.css.js.map
@@ -1,2 +1,2 @@
1
1
  import { type UniversalModalDesktopProps } from './props';
2
- export declare type UniversalModalContextType = Required<Pick<UniversalModalDesktopProps, 'width'>>;
2
+ export type UniversalModalContextType = Required<Pick<UniversalModalDesktopProps, 'width'>>;
@@ -1 +1 @@
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":";;;;;;AAwBO,IAAM,2BAA2B,GAAG,UAAC,MAAc,EAAA;AAC9C,IAAA,IAAA,aAAa,GAAoB,MAAM,CAAA,aAA1B,EAAE,KAAK,GAAa,MAAM,CAAA,KAAnB,EAAE,MAAM,GAAK,MAAM,OAAX;IAEpC,IAAM,eAAe,GAAG,KAAK,KAAK,WAAW,IAAI,MAAM,KAAK,YAAY;AAExE,IAAA,IAAM,mBAAmB,GAAG;AACxB,QAAA,OAAO,EAAE;AACL,YAAA,KAAK,EAAE,CAAC;AACR,YAAA,IAAI,EAAE,GAAG;AACZ,SAAA;AACD,QAAA,oBAAoB,EAAE,2BAA2B;KACpD;AAED,IAAA,IAAM,+BAA+B,GAAG,YAAA;AACpC,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,IAAM,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;AACH,QAAA,eAAe,EAAA,eAAA;AACf,QAAA,mBAAmB,EAAA,mBAAA;AACnB,QAAA,oBAAoB,EAAA,oBAAA;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":";;;;;;AAwBO,IAAM,2BAA2B,GAAG,UAAC,MAAc,EAAA;AAC9C,IAAA,IAAA,aAAa,GAAoB,MAAM,CAAA,aAA1B,EAAE,KAAK,GAAa,MAAM,CAAA,KAAnB,EAAE,MAAM,GAAK,MAAM,OAAX;IAEpC,IAAM,eAAe,GAAG,KAAK,KAAK,WAAW,IAAI,MAAM,KAAK,YAAY;AAExE,IAAA,IAAM,mBAAmB,GAAG;AACxB,QAAA,OAAO,EAAE;AACL,YAAA,KAAK,EAAE,CAAC;AACR,YAAA,IAAI,EAAE,GAAG;AACZ,SAAA;AACD,QAAA,oBAAoB,EAAE,2BAA2B;KACpD;AAED,IAAA,IAAM,+BAA+B,GAAG,YAAA;QACpC,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;;AAEjD,KAAC;AAED,IAAA,IAAM,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;AACH,QAAA,eAAe,EAAA,eAAA;AACf,QAAA,mBAAmB,EAAA,mBAAA;AACnB,QAAA,oBAAoB,EAAA,oBAAA;KACvB;AACL;;;;"}
@@ -6,4 +6,4 @@ import { type UniversalModalDesktopProps } from '../types/props';
6
6
  * 2. Высота строится по размеру viewport;
7
7
  * 3. Высота строится по переданному параметру.
8
8
  */
9
- export declare const getHeightStyle: (height: Exclude<UniversalModalDesktopProps['height'], undefined>, margin: UniversalModalDesktopProps['margin']) => Pick<CSSProperties, 'height' | 'maxHeight'>;
9
+ export declare const getHeightStyle: (height: Exclude<UniversalModalDesktopProps["height"], undefined>, margin: UniversalModalDesktopProps["margin"]) => Pick<CSSProperties, "height" | "maxHeight">;
@@ -15,7 +15,7 @@ var getHeightStyle = function (height, margin) {
15
15
  if (isClient()) {
16
16
  viewportHeight = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0);
17
17
  }
18
- if (height > viewportHeight || height === 'fullHeight') {
18
+ if (height === 'fullHeight' || height > viewportHeight) {
19
19
  var marginTop = (margin && hasOwnProperty(margin, 'top') && margin.top) || 0;
20
20
  var marginBottom = (margin && hasOwnProperty(margin, 'bottom') && margin.bottom) || 0;
21
21
  return { height: "calc(100% - ".concat(marginTop, "px - ").concat(marginBottom, "px)") };
@@ -1 +1 @@
1
- {"version":3,"file":"get-height-style.js","sources":["../../../src/desktop/utils/get-height-style.ts"],"sourcesContent":["import { type CSSProperties } from 'react';\n\nimport { hasOwnProperty, isClient } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\nimport { getMaxHeightStyle } from './get-max-height-style';\n\n/**\n * Передает высоту компонента для нескольких кейсов\n * 1. Высота строится по контенту;\n * 2. Высота строится по размеру viewport;\n * 3. Высота строится по переданному параметру.\n */\nexport const getHeightStyle = (\n height: Exclude<UniversalModalDesktopProps['height'], undefined>,\n margin: UniversalModalDesktopProps['margin'],\n): Pick<CSSProperties, 'height' | 'maxHeight'> => {\n if (height === 'hugContent') {\n return { maxHeight: getMaxHeightStyle(margin) };\n }\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 { height: `calc(100% - ${marginTop}px - ${marginBottom}px)` };\n }\n\n return { height };\n};\n"],"names":[],"mappings":";;;AAQA;;;;;AAKG;AACU,IAAA,cAAc,GAAG,UAC1B,MAAgE,EAChE,MAA4C,EAAA;IAE5C,IAAI,MAAM,KAAK,YAAY,EAAE;QACzB,OAAO,EAAE,SAAS,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAAE;AAClD;IAED,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,IAAM,SAAS,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC;AAC9E,QAAA,IAAM,YAAY,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAEvF,OAAO,EAAE,MAAM,EAAE,cAAA,CAAA,MAAA,CAAe,SAAS,EAAQ,OAAA,CAAA,CAAA,MAAA,CAAA,YAAY,EAAK,KAAA,CAAA,EAAE;AACvE;AAED,IAAA,OAAO,EAAE,MAAM,EAAA,MAAA,EAAE;AACrB;;;;"}
1
+ {"version":3,"file":"get-height-style.js","sources":["../../../src/desktop/utils/get-height-style.ts"],"sourcesContent":["import { type CSSProperties } from 'react';\n\nimport { hasOwnProperty, isClient } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\nimport { getMaxHeightStyle } from './get-max-height-style';\n\n/**\n * Передает высоту компонента для нескольких кейсов\n * 1. Высота строится по контенту;\n * 2. Высота строится по размеру viewport;\n * 3. Высота строится по переданному параметру.\n */\nexport const getHeightStyle = (\n height: Exclude<UniversalModalDesktopProps['height'], undefined>,\n margin: UniversalModalDesktopProps['margin'],\n): Pick<CSSProperties, 'height' | 'maxHeight'> => {\n if (height === 'hugContent') {\n return { maxHeight: getMaxHeightStyle(margin) };\n }\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 === 'fullHeight' || height > viewportHeight) {\n const marginTop = (margin && hasOwnProperty(margin, 'top') && margin.top) || 0;\n const marginBottom = (margin && hasOwnProperty(margin, 'bottom') && margin.bottom) || 0;\n\n return { height: `calc(100% - ${marginTop}px - ${marginBottom}px)` };\n }\n\n return { height };\n};\n"],"names":[],"mappings":";;;AAQA;;;;;AAKG;AACU,IAAA,cAAc,GAAG,UAC1B,MAAgE,EAChE,MAA4C,EAAA;AAE5C,IAAA,IAAI,MAAM,KAAK,YAAY,EAAE;QACzB,OAAO,EAAE,SAAS,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAAE;;IAGnD,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;;IAGL,IAAI,MAAM,KAAK,YAAY,IAAI,MAAM,GAAG,cAAc,EAAE;AACpD,QAAA,IAAM,SAAS,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC;AAC9E,QAAA,IAAM,YAAY,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAEvF,OAAO,EAAE,MAAM,EAAE,cAAA,CAAA,MAAA,CAAe,SAAS,EAAQ,OAAA,CAAA,CAAA,MAAA,CAAA,YAAY,EAAK,KAAA,CAAA,EAAE;;AAGxE,IAAA,OAAO,EAAE,MAAM,EAAA,MAAA,EAAE;AACrB;;;;"}
@@ -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 { 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":";;AASO,IAAM,eAAe,GAAG,UAAC,MAAc,EAAA;;IAClC,IAAA,MAAM,GAAa,MAAM,CAAA,MAAnB,EAAE,MAAM,GAAK,MAAM,CAAA,MAAX;AAEtB,IAAA,IAAI,MAAM,EAAE;AACR,QAAA,OAAA,EAAA,GAAA,EAAA;AACI,YAAA,EAAA,CAAC,MAAM,CAAC,YAAa,CAAA,MAAA,CAAA,MAAM,CAAC,GAAG,CAAE,CAAC,CAAA,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC;AAClE,YAAA,EAAA,CAAC,MAAM,CAAC,cAAe,CAAA,MAAA,CAAA,MAAM,CAAC,KAAK,CAAE,CAAC,CAAA,GAAG,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC;AACxE,YAAA,EAAA,CAAC,MAAM,CAAC,eAAgB,CAAA,MAAA,CAAA,MAAM,CAAC,MAAM,CAAE,CAAC,CAAA,GAAG,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC;AAC3E,YAAA,EAAA,CAAC,MAAM,CAAC,aAAc,CAAA,MAAA,CAAA,MAAM,CAAC,IAAI,CAAE,CAAC,CAAA,GAAG,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;AACvE,YAAA,EAAA;AACL;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":";;AASO,IAAM,eAAe,GAAG,UAAC,MAAc,EAAA;;IAClC,IAAA,MAAM,GAAa,MAAM,CAAA,MAAnB,EAAE,MAAM,GAAK,MAAM,CAAA,MAAX;IAEtB,IAAI,MAAM,EAAE;AACR,QAAA,OAAA,EAAA,GAAA,EAAA;AACI,YAAA,EAAA,CAAC,MAAM,CAAC,YAAa,CAAA,MAAA,CAAA,MAAM,CAAC,GAAG,CAAE,CAAC,CAAA,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC;AAClE,YAAA,EAAA,CAAC,MAAM,CAAC,cAAe,CAAA,MAAA,CAAA,MAAM,CAAC,KAAK,CAAE,CAAC,CAAA,GAAG,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC;AACxE,YAAA,EAAA,CAAC,MAAM,CAAC,eAAgB,CAAA,MAAA,CAAA,MAAM,CAAC,MAAM,CAAE,CAAC,CAAA,GAAG,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC;AAC3E,YAAA,EAAA,CAAC,MAAM,CAAC,aAAc,CAAA,MAAA,CAAA,MAAM,CAAC,IAAI,CAAE,CAAC,CAAA,GAAG,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;AACvE,YAAA,EAAA;;AAGN,IAAA,OAAO,EAAE;AACb;;;;"}
@@ -1,2 +1,2 @@
1
1
  import { type UniversalModalDesktopProps } from '../types/props';
2
- export declare const getMaxHeightStyle: (margin: UniversalModalDesktopProps['margin']) => string;
2
+ export declare const getMaxHeightStyle: (margin: UniversalModalDesktopProps["margin"]) => string;
@@ -1,2 +1,2 @@
1
1
  import { type UniversalModalDesktopProps } from '../types/props';
2
- export declare const getWidthStyle: (width: Exclude<UniversalModalDesktopProps['width'], undefined>, margin: UniversalModalDesktopProps['margin']) => string;
2
+ export declare const getWidthStyle: (width: Exclude<UniversalModalDesktopProps["width"], undefined>, margin: UniversalModalDesktopProps["margin"]) => string;
@@ -5,7 +5,7 @@ var getWidthStyle = function (width, margin) {
5
5
  if (isClient()) {
6
6
  viewportWidth = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);
7
7
  }
8
- if (width > viewportWidth || width === 'fullWidth') {
8
+ if (width === 'fullWidth' || width > viewportWidth) {
9
9
  var marginLeft = (margin && hasOwnProperty(margin, 'left') && margin.left) || 0;
10
10
  var marginRight = (margin && hasOwnProperty(margin, 'right') && margin.right) || 0;
11
11
  return "calc(100% - ".concat(marginLeft, "px - ").concat(marginRight, "px)");
@@ -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 { 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":";;AAIa,IAAA,aAAa,GAAG,UACzB,KAA8D,EAC9D,MAA4C,EAAA;IAE5C,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,IAAM,UAAU,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC;AACjF,QAAA,IAAM,WAAW,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,KAAK,KAAK,CAAC;AAEpF,QAAA,OAAO,cAAe,CAAA,MAAA,CAAA,UAAU,EAAQ,OAAA,CAAA,CAAA,MAAA,CAAA,WAAW,QAAK;AAC3D;IAED,OAAO,EAAA,CAAA,MAAA,CAAG,KAAK,EAAA,IAAA,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 === 'fullWidth' || width > viewportWidth) {\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":";;AAIa,IAAA,aAAa,GAAG,UACzB,KAA8D,EAC9D,MAA4C,EAAA;IAE5C,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;;IAG/F,IAAI,KAAK,KAAK,WAAW,IAAI,KAAK,GAAG,aAAa,EAAE;AAChD,QAAA,IAAM,UAAU,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC;AACjF,QAAA,IAAM,WAAW,GAAG,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,KAAK,KAAK,CAAC;AAEpF,QAAA,OAAO,cAAe,CAAA,MAAA,CAAA,UAAU,EAAQ,OAAA,CAAA,CAAA,MAAA,CAAA,WAAW,QAAK;;IAG5D,OAAO,EAAA,CAAA,MAAA,CAAG,KAAK,EAAA,IAAA,CAAI;AACvB;;;;"}
@@ -7,17 +7,26 @@ import { isHeaderNode } from './isHeaderNode.js';
7
7
  var setFooterAndHeaderRefs = function (params) {
8
8
  var children = params.children, headerElementRef = params.headerElementRef, footerElementRef = params.footerElementRef;
9
9
  var enhancedChildren = Children.map(children, function (child) {
10
+ var _a;
10
11
  if (!isValidElement(child)) {
11
12
  return child;
12
13
  }
13
14
  var displayName = child.type.displayName;
14
15
  if (displayName && isHeaderNode(displayName)) {
15
16
  var existingRef = child;
16
- return cloneElement(child, { ref: mergeRefs([existingRef.ref, headerElementRef]) });
17
+ return cloneElement(child, {
18
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19
+ // @ts-expect-error
20
+ ref: mergeRefs([(_a = existingRef.ref) !== null && _a !== void 0 ? _a : null, headerElementRef]),
21
+ });
17
22
  }
18
23
  if (displayName && isFooterNode(displayName)) {
19
24
  var existingRef = child;
20
- return cloneElement(child, { ref: mergeRefs([existingRef.ref, footerElementRef]) });
25
+ return cloneElement(child, {
26
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
27
+ // @ts-expect-error
28
+ ref: mergeRefs([existingRef.ref, footerElementRef]),
29
+ });
21
30
  }
22
31
  return child;
23
32
  });
@@ -1 +1 @@
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;AACO,IAAM,sBAAsB,GAAG,UAAC,MAAc,EAAA;AACzC,IAAA,IAAA,QAAQ,GAAyC,MAAM,CAAA,QAA/C,EAAE,gBAAgB,GAAuB,MAAM,CAAA,gBAA7B,EAAE,gBAAgB,GAAK,MAAM,iBAAX;IAEpD,IAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAC,KAAK,EAAA;AAClD,QAAA,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;AACxB,YAAA,OAAO,KAAK;AACf;AAEO,QAAA,IAAA,WAAW,GAAK,KAAK,CAAC,IAAmD,YAA9D;AAEnB,QAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;YAC1C,IAAM,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,IAAM,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;AAEF,IAAA,OAAO,EAAE,gBAAgB,EAAA,gBAAA,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 ReactElement,\n type ReactNode,\n type RefAttributes,\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 & RefAttributes<HTMLDivElement>;\n\n return cloneElement(child, {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n ref: mergeRefs([existingRef.ref ?? null, headerElementRef]),\n });\n }\n\n if (displayName && isFooterNode(displayName)) {\n const existingRef = child as ReactElement & RefAttributes<HTMLDivElement>;\n\n return cloneElement(child, {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n ref: mergeRefs([existingRef.ref, footerElementRef]),\n });\n }\n\n return child;\n });\n\n return { enhancedChildren };\n};\n"],"names":[],"mappings":";;;;;AAuBA;AACO,IAAM,sBAAsB,GAAG,UAAC,MAAc,EAAA;AACzC,IAAA,IAAA,QAAQ,GAAyC,MAAM,CAAA,QAA/C,EAAE,gBAAgB,GAAuB,MAAM,CAAA,gBAA7B,EAAE,gBAAgB,GAAK,MAAM,iBAAX;IAEpD,IAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAC,KAAK,EAAA;;AAClD,QAAA,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;AACxB,YAAA,OAAO,KAAK;;AAGR,QAAA,IAAA,WAAW,GAAK,KAAK,CAAC,IAAmD,YAA9D;AAEnB,QAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;YAC1C,IAAM,WAAW,GAAG,KAAqD;YAEzE,OAAO,YAAY,CAAC,KAAK,EAAE;;;AAGvB,gBAAA,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA,EAAA,GAAA,WAAW,CAAC,GAAG,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI,EAAE,gBAAgB,CAAC,CAAC;AAC9D,aAAA,CAAC;;AAGN,QAAA,IAAI,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE;YAC1C,IAAM,WAAW,GAAG,KAAqD;YAEzE,OAAO,YAAY,CAAC,KAAK,EAAE;;;gBAGvB,GAAG,EAAE,SAAS,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;AACtD,aAAA,CAAC;;AAGN,QAAA,OAAO,KAAK;AAChB,KAAC,CAAC;AAEF,IAAA,OAAO,EAAE,gBAAgB,EAAA,gBAAA,EAAE;AAC/B;;;;"}
@@ -1,7 +1,7 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
3
  }
4
- .universal-modal__component_qjxuz {
4
+ .universal-modal__component_g52ha {
5
5
  top: var(--gap-0);
6
6
  height: 100%;
7
7
  width: 100%;
@@ -11,10 +11,10 @@
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  }
14
- .universal-modal__component_qjxuz .universal-modal__content_qjxuz {
14
+ .universal-modal__component_g52ha .universal-modal__content_g52ha {
15
15
  height: auto;
16
16
  }
17
- .universal-modal__component_qjxuz.universal-modal__component_qjxuz {
17
+ .universal-modal__component_g52ha.universal-modal__component_g52ha {
18
18
  position: fixed;
19
19
  flex: 1;
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import './mobile.css';
2
2
 
3
- var styles = {"component":"universal-modal__component_qjxuz","content":"universal-modal__content_qjxuz"};
3
+ var styles = {"component":"universal-modal__component_g52ha","content":"universal-modal__content_g52ha"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=mobile.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mobile.module.css.js","sources":["../src/mobile/mobile.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.component {\n top: var(--gap-0);\n height: 100%;\n width: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n max-width: 600px;\n display: flex;\n flex-direction: column;\n\n & .content {\n height: auto;\n }\n}\n\n.component.component {\n position: fixed;\n flex: 1;\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,WAAW,CAAC,kCAAkC,CAAC,SAAS,CAAC,gCAAgC,CAAC;;;;"}
1
+ {"version":3,"file":"mobile.module.css.js","sources":["../src/mobile/mobile.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n top: var(--gap-0);\n height: 100%;\n width: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n max-width: 600px;\n display: flex;\n flex-direction: column;\n\n & .content {\n height: auto;\n }\n}\n\n.component.component {\n position: fixed;\n flex: 1;\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,WAAW,CAAC,kCAAkC,CAAC,SAAS,CAAC,gCAAgC,CAAC;;;;"}
@@ -1,18 +1,18 @@
1
- .universal-modal__appear_1ih9z,
2
- .universal-modal__enter_1ih9z {
1
+ .universal-modal__appear_mjesr,
2
+ .universal-modal__enter_mjesr {
3
3
  transform: translateX(100%);
4
4
  }
5
- .universal-modal__appearActive_1ih9z,
6
- .universal-modal__enterActive_1ih9z {
5
+ .universal-modal__appearActive_mjesr,
6
+ .universal-modal__enterActive_mjesr {
7
7
  transform: translateX(0);
8
8
  transition: transform 280ms ease-in-out;
9
9
  transition-delay: 80ms;
10
10
  }
11
- .universal-modal__exit_1ih9z {
11
+ .universal-modal__exit_mjesr {
12
12
  transform: translateX(0);
13
13
  }
14
- .universal-modal__exitActive_1ih9z,
15
- .universal-modal__exitDone_1ih9z {
14
+ .universal-modal__exitActive_mjesr,
15
+ .universal-modal__exitDone_mjesr {
16
16
  transform: translateX(100%);
17
17
  transition: transform 280ms ease-in-out;
18
18
  }
@@ -1,6 +1,6 @@
1
1
  import './right-side-transitions.mobile.css';
2
2
 
3
- var rightSideTransitions = {"appear":"universal-modal__appear_1ih9z","enter":"universal-modal__enter_1ih9z","appearActive":"universal-modal__appearActive_1ih9z","enterActive":"universal-modal__enterActive_1ih9z","exit":"universal-modal__exit_1ih9z","exitActive":"universal-modal__exitActive_1ih9z","exitDone":"universal-modal__exitDone_1ih9z"};
3
+ var rightSideTransitions = {"appear":"universal-modal__appear_mjesr","enter":"universal-modal__enter_mjesr","appearActive":"universal-modal__appearActive_mjesr","enterActive":"universal-modal__enterActive_mjesr","exit":"universal-modal__exit_mjesr","exitActive":"universal-modal__exitActive_mjesr","exitDone":"universal-modal__exitDone_mjesr"};
4
4
 
5
5
  export { rightSideTransitions as default };
6
6
  //# sourceMappingURL=right-side-transitions.mobile.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"right-side-transitions.mobile.module.css.js","sources":["../../src/mobile/transitions/right-side-transitions.mobile.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.appear,\n.enter {\n transform: translateX(100%);\n}\n\n.appearActive,\n.enterActive {\n transform: translateX(0);\n transition: transform 280ms ease-in-out;\n transition-delay: 80ms;\n}\n\n.exit {\n transform: translateX(0);\n}\n\n.exitActive,\n.exitDone {\n transform: translateX(100%);\n transition: transform 280ms ease-in-out;\n}\n"],"names":[],"mappings":";;AAEgB,2BAAe,CAAC,QAAQ,CAAC,+BAA+B,CAAC,OAAO,CAAC,8BAA8B,CAAC,cAAc,CAAC,qCAAqC,CAAC,aAAa,CAAC,oCAAoC,CAAC,MAAM,CAAC,6BAA6B,CAAC,YAAY,CAAC,mCAAmC,CAAC,UAAU,CAAC,iCAAiC,CAAC;;;;"}
1
+ {"version":3,"file":"right-side-transitions.mobile.module.css.js","sources":["../../src/mobile/transitions/right-side-transitions.mobile.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.appear,\n.enter {\n transform: translateX(100%);\n}\n\n.appearActive,\n.enterActive {\n transform: translateX(0);\n transition: transform 280ms ease-in-out;\n transition-delay: 80ms;\n}\n\n.exit {\n transform: translateX(0);\n}\n\n.exitActive,\n.exitDone {\n transform: translateX(100%);\n transition: transform 280ms ease-in-out;\n}\n"],"names":[],"mappings":";;AAEgB,2BAAe,CAAC,QAAQ,CAAC,+BAA+B,CAAC,OAAO,CAAC,8BAA8B,CAAC,cAAc,CAAC,qCAAqC,CAAC,aAAa,CAAC,oCAAoC,CAAC,MAAM,CAAC,6BAA6B,CAAC,YAAY,CAAC,mCAAmC,CAAC,UAAU,CAAC,iCAAiC,CAAC;;;;"}
@@ -1,11 +1,11 @@
1
- .universal-modal__appear_14to6,
2
- .universal-modal__enter_14to6 {
1
+ .universal-modal__appear_ua5qi,
2
+ .universal-modal__enter_ua5qi {
3
3
  opacity: 0;
4
4
  transform: translateY(15px);
5
5
  }
6
6
 
7
- .universal-modal__appearActive_14to6,
8
- .universal-modal__enterActive_14to6 {
7
+ .universal-modal__appearActive_ua5qi,
8
+ .universal-modal__enterActive_ua5qi {
9
9
  opacity: 1;
10
10
  transform: translateY(0);
11
11
  transition:
@@ -13,13 +13,13 @@
13
13
  transform 200ms ease-in;
14
14
  }
15
15
 
16
- .universal-modal__exit_14to6 {
16
+ .universal-modal__exit_ua5qi {
17
17
  opacity: 1;
18
18
  transform: translateY(0);
19
19
  }
20
20
 
21
- .universal-modal__exitActive_14to6,
22
- .universal-modal__exitDone_14to6 {
21
+ .universal-modal__exitActive_ua5qi,
22
+ .universal-modal__exitDone_ua5qi {
23
23
  opacity: 0;
24
24
  transform: translateY(15px);
25
25
  transition:
@@ -1,6 +1,6 @@
1
1
  import './transitions.mobile.css';
2
2
 
3
- var transitions = {"appear":"universal-modal__appear_14to6","enter":"universal-modal__enter_14to6","appearActive":"universal-modal__appearActive_14to6","enterActive":"universal-modal__enterActive_14to6","exit":"universal-modal__exit_14to6","exitActive":"universal-modal__exitActive_14to6","exitDone":"universal-modal__exitDone_14to6"};
3
+ var transitions = {"appear":"universal-modal__appear_ua5qi","enter":"universal-modal__enter_ua5qi","appearActive":"universal-modal__appearActive_ua5qi","enterActive":"universal-modal__enterActive_ua5qi","exit":"universal-modal__exit_ua5qi","exitActive":"universal-modal__exitActive_ua5qi","exitDone":"universal-modal__exitDone_ua5qi"};
4
4
 
5
5
  export { transitions as default };
6
6
  //# sourceMappingURL=transitions.mobile.module.css.js.map
@@ -1,4 +1,4 @@
1
- declare type MarginSize = 0 | 2 | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96 | 128;
1
+ type MarginSize = 0 | 2 | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96 | 128;
2
2
  export interface Margin {
3
3
  top?: MarginSize;
4
4
  right?: MarginSize;
package/mobile/mobile.css CHANGED
@@ -1,7 +1,7 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
3
  }
4
- .universal-modal__component_qjxuz {
4
+ .universal-modal__component_g52ha {
5
5
  top: var(--gap-0);
6
6
  height: 100%;
7
7
  width: 100%;
@@ -11,10 +11,10 @@
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  }
14
- .universal-modal__component_qjxuz .universal-modal__content_qjxuz {
14
+ .universal-modal__component_g52ha .universal-modal__content_g52ha {
15
15
  height: auto;
16
16
  }
17
- .universal-modal__component_qjxuz.universal-modal__component_qjxuz {
17
+ .universal-modal__component_g52ha.universal-modal__component_g52ha {
18
18
  position: fixed;
19
19
  flex: 1;
20
20
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./mobile.css');
4
4
 
5
- var styles = {"component":"universal-modal__component_qjxuz","content":"universal-modal__content_qjxuz"};
5
+ var styles = {"component":"universal-modal__component_g52ha","content":"universal-modal__content_g52ha"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=mobile.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mobile.module.css.js","sources":["../src/mobile/mobile.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.component {\n top: var(--gap-0);\n height: 100%;\n width: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n max-width: 600px;\n display: flex;\n flex-direction: column;\n\n & .content {\n height: auto;\n }\n}\n\n.component.component {\n position: fixed;\n flex: 1;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,WAAW,CAAC,kCAAkC,CAAC,SAAS,CAAC,gCAAgC,CAAC;;;;"}
1
+ {"version":3,"file":"mobile.module.css.js","sources":["../src/mobile/mobile.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n top: var(--gap-0);\n height: 100%;\n width: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n max-width: 600px;\n display: flex;\n flex-direction: column;\n\n & .content {\n height: auto;\n }\n}\n\n.component.component {\n position: fixed;\n flex: 1;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,WAAW,CAAC,kCAAkC,CAAC,SAAS,CAAC,gCAAgC,CAAC;;;;"}