@alfalab/core-components 47.26.8-beta.0 → 47.26.9-beta.1

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 (497) hide show
  1. package/bottom-sheet/component.js +13 -14
  2. package/bottom-sheet/cssm/component.js +13 -14
  3. package/bottom-sheet/cssm/types.d.ts +4 -5
  4. package/bottom-sheet/esm/component.js +14 -15
  5. package/bottom-sheet/esm/types.d.ts +4 -5
  6. package/bottom-sheet/modern/component.js +11 -10
  7. package/bottom-sheet/modern/types.d.ts +4 -5
  8. package/bottom-sheet/moderncssm/component.js +11 -10
  9. package/bottom-sheet/moderncssm/types.d.ts +4 -5
  10. package/bottom-sheet/types.d.ts +4 -5
  11. package/calendar-range/esm/Component.js +1 -1
  12. package/calendar-range/esm/index.js +1 -1
  13. package/calendar-range/esm/views/popover.js +1 -1
  14. package/calendar-range/esm/views/static.js +1 -1
  15. package/calendar-range/modern/Component.js +1 -1
  16. package/calendar-range/modern/index.js +1 -1
  17. package/calendar-range/modern/views/popover.js +1 -1
  18. package/calendar-range/modern/views/static.js +1 -1
  19. package/calendar-range/views/popover.js +1 -1
  20. package/calendar-range/views/static.js +1 -1
  21. package/confirmation/components/screens/initial/component.js +1 -1
  22. package/confirmation/components/screens/initial/countdown-section.js +1 -1
  23. package/confirmation/esm/component.responsive.js +1 -1
  24. package/confirmation/esm/components/base-confirmation/component.js +1 -1
  25. package/confirmation/esm/components/base-confirmation/index.js +1 -1
  26. package/confirmation/esm/components/index.js +1 -1
  27. package/confirmation/esm/components/screens/index.js +1 -1
  28. package/confirmation/esm/components/screens/initial/component.js +1 -1
  29. package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
  30. package/confirmation/esm/components/screens/initial/index.js +1 -1
  31. package/confirmation/esm/desktop/component.desktop.js +1 -1
  32. package/confirmation/esm/desktop/index.js +1 -1
  33. package/confirmation/esm/index.js +1 -1
  34. package/confirmation/esm/mobile/component.mobile.js +1 -1
  35. package/confirmation/esm/mobile/index.js +1 -1
  36. package/confirmation/esm/shared/index.js +1 -1
  37. package/confirmation/modern/component.responsive.js +1 -1
  38. package/confirmation/modern/components/base-confirmation/component.js +1 -1
  39. package/confirmation/modern/components/base-confirmation/index.js +1 -1
  40. package/confirmation/modern/components/index.js +1 -1
  41. package/confirmation/modern/components/screens/index.js +1 -1
  42. package/confirmation/modern/components/screens/initial/component.js +1 -1
  43. package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
  44. package/confirmation/modern/components/screens/initial/index.js +1 -1
  45. package/confirmation/modern/desktop/component.desktop.js +1 -1
  46. package/confirmation/modern/desktop/index.js +1 -1
  47. package/confirmation/modern/index.js +1 -1
  48. package/confirmation/modern/mobile/component.mobile.js +1 -1
  49. package/confirmation/modern/mobile/index.js +1 -1
  50. package/confirmation/modern/shared/index.js +1 -1
  51. package/gallery/components/image-viewer/component.js +1 -1
  52. package/gallery/components/image-viewer/hooks.js +1 -1
  53. package/gallery/components/image-viewer/single.js +1 -1
  54. package/gallery/components/image-viewer/slide.js +1 -1
  55. package/gallery/esm/Component.js +1 -1
  56. package/gallery/esm/components/image-viewer/component.js +1 -1
  57. package/gallery/esm/components/image-viewer/hooks.js +1 -1
  58. package/gallery/esm/components/image-viewer/index.js +1 -1
  59. package/gallery/esm/components/image-viewer/single.js +1 -1
  60. package/gallery/esm/components/image-viewer/slide.js +1 -1
  61. package/gallery/esm/components/index.js +1 -1
  62. package/gallery/esm/index.js +1 -1
  63. package/gallery/modern/Component.js +1 -1
  64. package/gallery/modern/components/image-viewer/component.js +1 -1
  65. package/gallery/modern/components/image-viewer/hooks.js +1 -1
  66. package/gallery/modern/components/image-viewer/index.js +1 -1
  67. package/gallery/modern/components/image-viewer/single.js +1 -1
  68. package/gallery/modern/components/image-viewer/slide.js +1 -1
  69. package/gallery/modern/components/index.js +1 -1
  70. package/gallery/modern/index.js +1 -1
  71. package/international-phone-input/cssm/typings-4bf4de6f.d.ts +4 -5
  72. package/international-phone-input/esm/typings-4bf4de6f.d.ts +4 -5
  73. package/international-phone-input/modern/typings-4bf4de6f.d.ts +4 -5
  74. package/international-phone-input/moderncssm/typings-4bf4de6f.d.ts +4 -5
  75. package/international-phone-input/typings-4bf4de6f.d.ts +4 -5
  76. package/list/Component.js +1 -1
  77. package/list/components/item/Component.js +1 -1
  78. package/list/components/item/index.d.ts +1 -1
  79. package/list/components/item/index.js +1 -1
  80. package/list/esm/Component.js +1 -1
  81. package/list/esm/components/item/Component.js +1 -1
  82. package/list/esm/components/item/index.d.ts +1 -1
  83. package/list/esm/components/item/index.js +1 -1
  84. package/list/esm/index.js +1 -1
  85. package/list/index.js +1 -1
  86. package/list/modern/Component.js +1 -1
  87. package/list/modern/components/item/Component.js +1 -1
  88. package/list/modern/components/item/index.d.ts +1 -1
  89. package/list/modern/components/item/index.js +1 -1
  90. package/list/modern/index.js +1 -1
  91. package/modal/components/controls/Component.js +1 -1
  92. package/modal/components/footer/Component.js +1 -1
  93. package/modal/esm/Component.responsive.js +1 -1
  94. package/modal/esm/components/controls/Component.js +1 -1
  95. package/modal/esm/components/controls/index.js +1 -1
  96. package/modal/esm/components/footer/Component.js +1 -1
  97. package/modal/esm/desktop/Component.desktop.js +1 -1
  98. package/modal/esm/desktop/index.js +1 -1
  99. package/modal/esm/index.js +1 -1
  100. package/modal/esm/mobile/Component.mobile.js +1 -1
  101. package/modal/esm/mobile/index.js +1 -1
  102. package/modal/modern/Component.responsive.js +1 -1
  103. package/modal/modern/components/controls/Component.js +1 -1
  104. package/modal/modern/components/controls/index.js +1 -1
  105. package/modal/modern/components/footer/Component.js +1 -1
  106. package/modal/modern/desktop/Component.desktop.js +1 -1
  107. package/modal/modern/desktop/index.js +1 -1
  108. package/modal/modern/index.js +1 -1
  109. package/modal/modern/mobile/Component.mobile.js +1 -1
  110. package/modal/modern/mobile/index.js +1 -1
  111. package/package.json +1 -1
  112. package/picker-button/Component-c44170fe.d.ts +1 -1
  113. package/picker-button/component-03d088c4.d.ts +2 -2
  114. package/picker-button/component-8bdd19d3.d.ts +2 -2
  115. package/picker-button/cssm/typings-4bf4de6f.d.ts +4 -5
  116. package/picker-button/esm/typings-4bf4de6f.d.ts +4 -5
  117. package/picker-button/index-03d088c4.d.ts +2 -2
  118. package/picker-button/index-281accb7.d.ts +2 -2
  119. package/picker-button/modern/typings-4bf4de6f.d.ts +4 -5
  120. package/picker-button/moderncssm/typings-4bf4de6f.d.ts +4 -5
  121. package/picker-button/typings-4bf4de6f.d.ts +4 -5
  122. package/plate/Component.responsive.js +1 -1
  123. package/plate/components/base-plate/Component.js +1 -1
  124. package/plate/cssm/{index-4024dd7a.d.ts → index-ba3cd492.d.ts} +1 -9
  125. package/plate/esm/Component.responsive.js +1 -1
  126. package/plate/esm/components/base-plate/Component.js +1 -1
  127. package/plate/esm/components/base-plate/index.js +1 -1
  128. package/plate/esm/desktop/Component.desktop.js +1 -1
  129. package/plate/esm/desktop/index.js +1 -1
  130. package/plate/{index-4024dd7a.d.ts → esm/index-ba3cd492.d.ts} +3 -11
  131. package/plate/esm/index.js +1 -1
  132. package/plate/esm/mobile/Component.mobile.js +1 -1
  133. package/plate/esm/mobile/index.js +1 -1
  134. package/plate/esm/shared/index.js +1 -1
  135. package/plate/esm/utils.js +1 -1
  136. package/plate/{modern/index-4024dd7a.d.ts → index-ba3cd492.d.ts} +3 -11
  137. package/plate/modern/Component.responsive.js +1 -1
  138. package/plate/modern/components/base-plate/Component.js +1 -1
  139. package/plate/modern/components/base-plate/index.js +1 -1
  140. package/plate/modern/desktop/Component.desktop.js +1 -1
  141. package/plate/modern/desktop/index.js +1 -1
  142. package/plate/{esm/index-4024dd7a.d.ts → modern/index-ba3cd492.d.ts} +3 -11
  143. package/plate/modern/index.js +1 -1
  144. package/plate/modern/mobile/Component.mobile.js +1 -1
  145. package/plate/modern/mobile/index.js +1 -1
  146. package/plate/modern/shared/index.js +1 -1
  147. package/plate/modern/utils.js +1 -1
  148. package/plate/moderncssm/{index-4024dd7a.d.ts → index-ba3cd492.d.ts} +1 -9
  149. package/plate/utils.js +1 -1
  150. package/pure-cell/component-8c83a9ca.d.ts +1 -1
  151. package/pure-cell/component.js +1 -1
  152. package/pure-cell/components/addon/component.js +1 -1
  153. package/pure-cell/components/addon/index.d.ts +1 -1
  154. package/pure-cell/components/addon/index.js +1 -1
  155. package/pure-cell/components/amount/component.js +1 -1
  156. package/pure-cell/components/amount/index.d.ts +1 -1
  157. package/pure-cell/components/amount/index.js +1 -1
  158. package/pure-cell/components/amount-title/component.js +1 -1
  159. package/pure-cell/components/amount-title/index.d.ts +1 -1
  160. package/pure-cell/components/amount-title/index.js +1 -1
  161. package/pure-cell/components/category/component.js +1 -1
  162. package/pure-cell/components/category/index.d.ts +1 -1
  163. package/pure-cell/components/category/index.js +1 -1
  164. package/pure-cell/components/content/component.js +1 -1
  165. package/pure-cell/components/content/index.d.ts +1 -1
  166. package/pure-cell/components/content/index.js +1 -1
  167. package/pure-cell/components/footer/component.js +1 -1
  168. package/pure-cell/components/footer/index.d.ts +1 -1
  169. package/pure-cell/components/footer/index.js +1 -1
  170. package/pure-cell/components/footer-button/component.js +1 -1
  171. package/pure-cell/components/footer-button/index.d.ts +1 -1
  172. package/pure-cell/components/footer-button/index.js +1 -1
  173. package/pure-cell/components/footer-text/component.js +1 -1
  174. package/pure-cell/components/footer-text/index.d.ts +1 -1
  175. package/pure-cell/components/footer-text/index.js +1 -1
  176. package/pure-cell/components/graphics/component.js +1 -1
  177. package/pure-cell/components/graphics/index.d.ts +1 -1
  178. package/pure-cell/components/graphics/index.js +1 -1
  179. package/pure-cell/components/main/component.js +1 -1
  180. package/pure-cell/components/main/index.d.ts +1 -1
  181. package/pure-cell/components/main/index.js +1 -1
  182. package/pure-cell/components/text/component.js +1 -1
  183. package/pure-cell/components/text/index.d.ts +1 -1
  184. package/pure-cell/components/text/index.js +1 -1
  185. package/pure-cell/cssm/component-8c83a9ca.d.ts +1 -1
  186. package/pure-cell/esm/component-8c83a9ca.d.ts +6 -6
  187. package/pure-cell/esm/component.js +1 -1
  188. package/pure-cell/esm/components/addon/component.js +1 -1
  189. package/pure-cell/esm/components/addon/index.d.ts +1 -1
  190. package/pure-cell/esm/components/addon/index.js +1 -1
  191. package/pure-cell/esm/components/amount/component.js +1 -1
  192. package/pure-cell/esm/components/amount/index.d.ts +1 -1
  193. package/pure-cell/esm/components/amount/index.js +1 -1
  194. package/pure-cell/esm/components/amount-title/component.js +1 -1
  195. package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
  196. package/pure-cell/esm/components/amount-title/index.js +1 -1
  197. package/pure-cell/esm/components/category/component.js +1 -1
  198. package/pure-cell/esm/components/category/index.d.ts +1 -1
  199. package/pure-cell/esm/components/category/index.js +1 -1
  200. package/pure-cell/esm/components/content/component.js +1 -1
  201. package/pure-cell/esm/components/content/index.d.ts +1 -1
  202. package/pure-cell/esm/components/content/index.js +1 -1
  203. package/pure-cell/esm/components/footer/component.js +1 -1
  204. package/pure-cell/esm/components/footer/index.d.ts +1 -1
  205. package/pure-cell/esm/components/footer/index.js +1 -1
  206. package/pure-cell/esm/components/footer-button/component.js +1 -1
  207. package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
  208. package/pure-cell/esm/components/footer-button/index.js +1 -1
  209. package/pure-cell/esm/components/footer-text/component.js +1 -1
  210. package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
  211. package/pure-cell/esm/components/footer-text/index.js +1 -1
  212. package/pure-cell/esm/components/graphics/component.js +1 -1
  213. package/pure-cell/esm/components/graphics/index.d.ts +1 -1
  214. package/pure-cell/esm/components/graphics/index.js +1 -1
  215. package/pure-cell/esm/components/main/component.js +1 -1
  216. package/pure-cell/esm/components/main/index.d.ts +1 -1
  217. package/pure-cell/esm/components/main/index.js +1 -1
  218. package/pure-cell/esm/components/text/component.js +1 -1
  219. package/pure-cell/esm/components/text/index.d.ts +1 -1
  220. package/pure-cell/esm/components/text/index.js +1 -1
  221. package/pure-cell/esm/index.js +1 -1
  222. package/pure-cell/index.js +1 -1
  223. package/pure-cell/modern/component-8c83a9ca.d.ts +1 -1
  224. package/pure-cell/modern/component.js +1 -1
  225. package/pure-cell/modern/components/addon/component.js +1 -1
  226. package/pure-cell/modern/components/addon/index.d.ts +1 -1
  227. package/pure-cell/modern/components/addon/index.js +1 -1
  228. package/pure-cell/modern/components/amount/component.js +1 -1
  229. package/pure-cell/modern/components/amount/index.d.ts +1 -1
  230. package/pure-cell/modern/components/amount/index.js +1 -1
  231. package/pure-cell/modern/components/amount-title/component.js +1 -1
  232. package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
  233. package/pure-cell/modern/components/amount-title/index.js +1 -1
  234. package/pure-cell/modern/components/category/component.js +1 -1
  235. package/pure-cell/modern/components/category/index.d.ts +1 -1
  236. package/pure-cell/modern/components/category/index.js +1 -1
  237. package/pure-cell/modern/components/content/component.js +1 -1
  238. package/pure-cell/modern/components/content/index.d.ts +1 -1
  239. package/pure-cell/modern/components/content/index.js +1 -1
  240. package/pure-cell/modern/components/footer/component.js +1 -1
  241. package/pure-cell/modern/components/footer/index.d.ts +1 -1
  242. package/pure-cell/modern/components/footer/index.js +1 -1
  243. package/pure-cell/modern/components/footer-button/component.js +1 -1
  244. package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
  245. package/pure-cell/modern/components/footer-button/index.js +1 -1
  246. package/pure-cell/modern/components/footer-text/component.js +1 -1
  247. package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
  248. package/pure-cell/modern/components/footer-text/index.js +1 -1
  249. package/pure-cell/modern/components/graphics/component.js +1 -1
  250. package/pure-cell/modern/components/graphics/index.d.ts +1 -1
  251. package/pure-cell/modern/components/graphics/index.js +1 -1
  252. package/pure-cell/modern/components/main/component.js +1 -1
  253. package/pure-cell/modern/components/main/index.d.ts +1 -1
  254. package/pure-cell/modern/components/main/index.js +1 -1
  255. package/pure-cell/modern/components/text/component.js +1 -1
  256. package/pure-cell/modern/components/text/index.d.ts +1 -1
  257. package/pure-cell/modern/components/text/index.js +1 -1
  258. package/pure-cell/modern/index.js +1 -1
  259. package/pure-cell/moderncssm/component-8c83a9ca.d.ts +1 -1
  260. package/select/components/base-select/Component.js +2 -2
  261. package/select/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  262. package/select/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  263. package/select/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  264. package/select/esm/Component.responsive.js +3 -3
  265. package/select/esm/components/base-select/Component.js +2 -2
  266. package/select/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  267. package/select/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  268. package/select/esm/components/base-select/components/list-mobile/list-mobile.js +1 -1
  269. package/select/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  270. package/select/esm/components/base-select/index.js +2 -2
  271. package/select/esm/components/index.js +2 -2
  272. package/select/esm/desktop/Component.desktop.js +2 -2
  273. package/select/esm/desktop/index.js +2 -2
  274. package/select/esm/index.js +3 -3
  275. package/select/esm/mobile/Component.mobile.js +3 -3
  276. package/select/esm/mobile/Component.modal.mobile.js +3 -3
  277. package/select/esm/mobile/index.js +3 -3
  278. package/select/esm/presets/index.js +1 -1
  279. package/select/esm/presets/useSelectWithApply/hook.js +1 -1
  280. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  281. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  282. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  283. package/select/esm/shared/index.js +3 -3
  284. package/select/mobile/Component.mobile.js +1 -1
  285. package/select/modern/Component.responsive.js +3 -3
  286. package/select/modern/components/base-select/Component.js +2 -2
  287. package/select/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  288. package/select/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  289. package/select/modern/components/base-select/components/list-mobile/list-mobile.js +1 -1
  290. package/select/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  291. package/select/modern/components/base-select/index.js +2 -2
  292. package/select/modern/components/index.js +2 -2
  293. package/select/modern/desktop/Component.desktop.js +2 -2
  294. package/select/modern/desktop/index.js +2 -2
  295. package/select/modern/index.js +3 -3
  296. package/select/modern/mobile/Component.mobile.js +3 -3
  297. package/select/modern/mobile/Component.modal.mobile.js +3 -3
  298. package/select/modern/mobile/index.js +3 -3
  299. package/select/modern/presets/index.js +1 -1
  300. package/select/modern/presets/useSelectWithApply/hook.js +1 -1
  301. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  302. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  303. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  304. package/select/modern/shared/index.js +3 -3
  305. package/select/presets/index.js +1 -1
  306. package/select/presets/useSelectWithApply/hook.js +1 -1
  307. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  308. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  309. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  310. package/select/shared/index.js +1 -1
  311. package/shared/cssm/index.d.ts +0 -1
  312. package/shared/cssm/index.js +0 -2
  313. package/shared/esm/index.d.ts +0 -1
  314. package/shared/esm/index.js +0 -1
  315. package/shared/index.d.ts +0 -1
  316. package/shared/index.js +0 -2
  317. package/shared/modern/index.d.ts +0 -1
  318. package/shared/modern/index.js +0 -1
  319. package/shared/moderncssm/index.d.ts +0 -1
  320. package/shared/moderncssm/index.js +0 -1
  321. package/side-panel/components/controls/Component.js +1 -1
  322. package/side-panel/components/footer/Component.js +1 -1
  323. package/side-panel/esm/Component.responsive.js +1 -1
  324. package/side-panel/esm/components/controls/Component.js +1 -1
  325. package/side-panel/esm/components/controls/index.js +1 -1
  326. package/side-panel/esm/components/footer/Component.desktop.js +1 -1
  327. package/side-panel/esm/components/footer/Component.js +1 -1
  328. package/side-panel/esm/components/footer/Component.mobile.js +1 -1
  329. package/side-panel/esm/desktop/Component.desktop.js +1 -1
  330. package/side-panel/esm/desktop/index.js +1 -1
  331. package/side-panel/esm/index.js +1 -1
  332. package/side-panel/esm/mobile/Component.mobile.js +1 -1
  333. package/side-panel/esm/mobile/index.js +1 -1
  334. package/side-panel/modern/Component.responsive.js +1 -1
  335. package/side-panel/modern/components/controls/Component.js +1 -1
  336. package/side-panel/modern/components/controls/index.js +1 -1
  337. package/side-panel/modern/components/footer/Component.desktop.js +1 -1
  338. package/side-panel/modern/components/footer/Component.js +1 -1
  339. package/side-panel/modern/components/footer/Component.mobile.js +1 -1
  340. package/side-panel/modern/desktop/Component.desktop.js +1 -1
  341. package/side-panel/modern/desktop/index.js +1 -1
  342. package/side-panel/modern/index.js +1 -1
  343. package/side-panel/modern/mobile/Component.mobile.js +1 -1
  344. package/side-panel/modern/mobile/index.js +1 -1
  345. package/tabs/components/primary-tablist/Component.collapsible.js +1 -1
  346. package/tabs/components/primary-tablist/Component.desktop.js +1 -1
  347. package/tabs/components/primary-tablist/Component.mobile.js +1 -1
  348. package/tabs/components/secondary-tablist/Component.desktop.js +1 -1
  349. package/tabs/components/secondary-tablist/Component.mobile.js +1 -1
  350. package/tabs/esm/collapsible/index.js +1 -1
  351. package/tabs/esm/components/primary-tablist/Component.collapsible.js +1 -1
  352. package/tabs/esm/components/primary-tablist/Component.desktop.js +1 -1
  353. package/tabs/esm/components/primary-tablist/Component.mobile.js +1 -1
  354. package/tabs/esm/components/primary-tablist/Component.responsive.js +1 -1
  355. package/tabs/esm/components/secondary-tablist/Component.desktop.js +1 -1
  356. package/tabs/esm/components/secondary-tablist/Component.mobile.js +1 -1
  357. package/tabs/esm/components/secondary-tablist/Component.responsive.js +1 -1
  358. package/tabs/esm/components/tabs/Component.collapsible.js +1 -1
  359. package/tabs/esm/components/tabs/Component.desktop.js +2 -2
  360. package/tabs/esm/components/tabs/Component.mobile.js +2 -2
  361. package/tabs/esm/components/tabs/Component.responsive.js +2 -2
  362. package/tabs/esm/desktop/index.js +2 -2
  363. package/tabs/esm/index.js +2 -2
  364. package/tabs/esm/mobile/index.js +2 -2
  365. package/tabs/modern/collapsible/index.js +1 -1
  366. package/tabs/modern/components/primary-tablist/Component.collapsible.js +1 -1
  367. package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
  368. package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
  369. package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
  370. package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
  371. package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
  372. package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
  373. package/tabs/modern/components/tabs/Component.collapsible.js +1 -1
  374. package/tabs/modern/components/tabs/Component.desktop.js +2 -2
  375. package/tabs/modern/components/tabs/Component.mobile.js +2 -2
  376. package/tabs/modern/components/tabs/Component.responsive.js +2 -2
  377. package/tabs/modern/desktop/index.js +2 -2
  378. package/tabs/modern/index.js +2 -2
  379. package/tabs/modern/mobile/index.js +2 -2
  380. package/textarea/Component.js +1 -1
  381. package/textarea/components/PseudoTextArea.js +1 -1
  382. package/textarea/components/index.d.ts +1 -1
  383. package/textarea/components/index.js +1 -1
  384. package/textarea/esm/Component.js +1 -1
  385. package/textarea/esm/components/PseudoTextArea.js +1 -1
  386. package/textarea/esm/components/index.d.ts +1 -1
  387. package/textarea/esm/components/index.js +1 -1
  388. package/textarea/esm/index.js +1 -1
  389. package/textarea/modern/Component.js +1 -1
  390. package/textarea/modern/components/PseudoTextArea.js +1 -1
  391. package/textarea/modern/components/index.d.ts +1 -1
  392. package/textarea/modern/components/index.js +1 -1
  393. package/textarea/modern/index.js +1 -1
  394. package/themes/compiled/mobile-dark-bluetint.css +13 -13
  395. package/typography/esm/component.js +2 -2
  396. package/typography/esm/index.js +2 -2
  397. package/typography/esm/text/component.js +1 -1
  398. package/typography/esm/text/index.js +1 -1
  399. package/typography/esm/title/component.js +1 -1
  400. package/typography/esm/title/index.js +2 -2
  401. package/typography/esm/title-mobile/component.js +2 -2
  402. package/typography/esm/title-mobile/index.js +2 -2
  403. package/typography/esm/title-responsive/component.js +2 -2
  404. package/typography/esm/title-responsive/index.js +2 -2
  405. package/typography/modern/component.js +2 -2
  406. package/typography/modern/index.js +2 -2
  407. package/typography/modern/text/component.js +1 -1
  408. package/typography/modern/text/index.js +1 -1
  409. package/typography/modern/title/component.js +1 -1
  410. package/typography/modern/title/index.js +2 -2
  411. package/typography/modern/title-mobile/component.js +2 -2
  412. package/typography/modern/title-mobile/index.js +2 -2
  413. package/typography/modern/title-responsive/component.js +2 -2
  414. package/typography/modern/title-responsive/index.js +2 -2
  415. package/typography/text/component.js +1 -1
  416. package/typography/title/component.js +1 -1
  417. package/typography/title/index.js +1 -1
  418. package/typography/title-mobile/component.js +1 -1
  419. package/shared/cssm/safe-area.d.ts +0 -9
  420. package/shared/cssm/safe-area.js +0 -26
  421. package/shared/esm/safe-area.d.ts +0 -9
  422. package/shared/esm/safe-area.js +0 -24
  423. package/shared/modern/safe-area.d.ts +0 -9
  424. package/shared/modern/safe-area.js +0 -24
  425. package/shared/moderncssm/safe-area.d.ts +0 -9
  426. package/shared/moderncssm/safe-area.js +0 -24
  427. package/shared/safe-area.d.ts +0 -9
  428. package/shared/safe-area.js +0 -26
  429. /package/calendar-range/esm/{index.module-50007371.js → index.module-3bd8f2aa.js} +0 -0
  430. /package/calendar-range/{index.module-16b924be.js → index.module-93fe2d00.js} +0 -0
  431. /package/calendar-range/modern/{index.module-dad605ea.js → index.module-675a70db.js} +0 -0
  432. /package/confirmation/{countdown-section-d34c1af5.d.ts → countdown-section-dd00dd2a.d.ts} +0 -0
  433. /package/confirmation/{countdown-section-d34c1af5.js → countdown-section-dd00dd2a.js} +0 -0
  434. /package/confirmation/esm/{countdown-section-4d3cc9e0.d.ts → countdown-section-c258b74a.d.ts} +0 -0
  435. /package/confirmation/esm/{countdown-section-4d3cc9e0.js → countdown-section-c258b74a.js} +0 -0
  436. /package/confirmation/modern/{countdown-section-f2e5a02a.d.ts → countdown-section-32bb6712.d.ts} +0 -0
  437. /package/confirmation/modern/{countdown-section-f2e5a02a.js → countdown-section-32bb6712.js} +0 -0
  438. /package/gallery/esm/{index.module-330013eb.js → index.module-3ec18dd1.js} +0 -0
  439. /package/gallery/{index.module-17abae88.js → index.module-27487695.js} +0 -0
  440. /package/gallery/modern/{index.module-759b97ea.js → index.module-c1afad9c.js} +0 -0
  441. /package/list/{Component-5c6313d8.d.ts → Component-6c03dffd.d.ts} +0 -0
  442. /package/list/{Component-5c6313d8.js → Component-6c03dffd.js} +0 -0
  443. /package/list/esm/{Component-9471c0fc.d.ts → Component-3e54bc5d.d.ts} +0 -0
  444. /package/list/esm/{Component-9471c0fc.js → Component-3e54bc5d.js} +0 -0
  445. /package/list/modern/{Component-cd11d82c.d.ts → Component-a80cb74d.d.ts} +0 -0
  446. /package/list/modern/{Component-cd11d82c.js → Component-a80cb74d.js} +0 -0
  447. /package/modal/esm/{layout.module-707ca0ae.js → layout.module-58de58af.js} +0 -0
  448. /package/modal/{layout.module-47ca0f18.js → layout.module-dc00713d.js} +0 -0
  449. /package/modal/modern/{layout.module-c708d000.js → layout.module-cd5f5a81.js} +0 -0
  450. /package/plate/{PortalContext-6d5eb7e5.d.ts → PortalContext-a31b7744.d.ts} +0 -0
  451. /package/plate/{PortalContext-6d5eb7e5.js → PortalContext-a31b7744.js} +0 -0
  452. /package/plate/esm/{PortalContext-bbdf3af1.d.ts → PortalContext-6f3b2044.d.ts} +0 -0
  453. /package/plate/esm/{PortalContext-bbdf3af1.js → PortalContext-6f3b2044.js} +0 -0
  454. /package/plate/modern/{PortalContext-a3423f8c.d.ts → PortalContext-0c576347.d.ts} +0 -0
  455. /package/plate/modern/{PortalContext-a3423f8c.js → PortalContext-0c576347.js} +0 -0
  456. /package/pure-cell/{component-ef5b84b6.d.ts → component-25613e28.d.ts} +0 -0
  457. /package/pure-cell/{component-ef5b84b6.js → component-25613e28.js} +0 -0
  458. /package/pure-cell/esm/{component-716eb01a.d.ts → component-57131738.d.ts} +0 -0
  459. /package/pure-cell/esm/{component-716eb01a.js → component-57131738.js} +0 -0
  460. /package/pure-cell/modern/{component-5a957007.d.ts → component-519b8122.d.ts} +0 -0
  461. /package/pure-cell/modern/{component-5a957007.js → component-519b8122.js} +0 -0
  462. /package/select/esm/{hook-a96e4796.d.ts → hook-edc73832.d.ts} +0 -0
  463. /package/select/esm/{hook-a96e4796.js → hook-edc73832.js} +0 -0
  464. /package/select/esm/{list-popover-desktop-64d6e86a.d.ts → list-popover-desktop-ab345a1d.d.ts} +0 -0
  465. /package/select/esm/{list-popover-desktop-64d6e86a.js → list-popover-desktop-ab345a1d.js} +0 -0
  466. /package/select/esm/{mobile.module-1a1b5a36.js → mobile.module-f339d579.js} +0 -0
  467. /package/select/{hook-cce85ba4.d.ts → hook-509ac90c.d.ts} +0 -0
  468. /package/select/{hook-cce85ba4.js → hook-509ac90c.js} +0 -0
  469. /package/select/{list-popover-desktop-867defab.d.ts → list-popover-desktop-59e49e6c.d.ts} +0 -0
  470. /package/select/{list-popover-desktop-867defab.js → list-popover-desktop-59e49e6c.js} +0 -0
  471. /package/select/{mobile.module-138a1289.js → mobile.module-7934b06c.js} +0 -0
  472. /package/select/modern/{hook-c5c9b484.d.ts → hook-d7fcefb5.d.ts} +0 -0
  473. /package/select/modern/{hook-c5c9b484.js → hook-d7fcefb5.js} +0 -0
  474. /package/select/modern/{list-popover-desktop-2fa474c5.d.ts → list-popover-desktop-9f601758.d.ts} +0 -0
  475. /package/select/modern/{list-popover-desktop-2fa474c5.js → list-popover-desktop-9f601758.js} +0 -0
  476. /package/select/modern/{mobile.module-f3b18a7b.js → mobile.module-a162a3eb.js} +0 -0
  477. /package/side-panel/esm/{layout.module-cc648101.js → layout.module-dbb44e00.js} +0 -0
  478. /package/side-panel/{layout.module-e963bd8c.js → layout.module-04c604a9.js} +0 -0
  479. /package/side-panel/modern/{layout.module-ce4bd36f.js → layout.module-950d1df1.js} +0 -0
  480. /package/tabs/esm/{index.module-3a4d11f9.js → index.module-18ef2507.js} +0 -0
  481. /package/tabs/esm/{index.module-560f4d57.js → index.module-b726698b.js} +0 -0
  482. /package/tabs/{index.module-5bf62a87.js → index.module-3cc9c72b.js} +0 -0
  483. /package/tabs/{index.module-275e67bc.js → index.module-f0ccce61.js} +0 -0
  484. /package/tabs/modern/{index.module-85b0710f.js → index.module-70e33922.js} +0 -0
  485. /package/tabs/modern/{index.module-cd7bccfa.js → index.module-97338019.js} +0 -0
  486. /package/textarea/{PseudoTextArea-eac1211c.d.ts → PseudoTextArea-26647f32.d.ts} +0 -0
  487. /package/textarea/{PseudoTextArea-eac1211c.js → PseudoTextArea-26647f32.js} +0 -0
  488. /package/textarea/esm/{PseudoTextArea-3a6c0f31.d.ts → PseudoTextArea-92485ce4.d.ts} +0 -0
  489. /package/textarea/esm/{PseudoTextArea-3a6c0f31.js → PseudoTextArea-92485ce4.js} +0 -0
  490. /package/textarea/modern/{PseudoTextArea-09b9db16.d.ts → PseudoTextArea-703b6134.d.ts} +0 -0
  491. /package/textarea/modern/{PseudoTextArea-09b9db16.js → PseudoTextArea-703b6134.js} +0 -0
  492. /package/typography/{colors.module-32ec21e0.js → colors.module-b6e7e39c.js} +0 -0
  493. /package/typography/{common.module-37502c38.js → common.module-d87950bc.js} +0 -0
  494. /package/typography/esm/{colors.module-4e3e8138.js → colors.module-47fc4603.js} +0 -0
  495. /package/typography/esm/{common.module-3ed6f966.js → common.module-b3bbb32c.js} +0 -0
  496. /package/typography/modern/{colors.module-451d0113.js → colors.module-8b4683d7.js} +0 -0
  497. /package/typography/modern/{common.module-df2c176f.js → common.module-09715d09.js} +0 -0
@@ -28,20 +28,16 @@ var isNil = coreComponentsShared.fnUtils.isNil;
28
28
  var BottomSheet = React.forwardRef(function (_a, ref) {
29
29
  var _b, _c, _d, _e, _f;
30
30
  var _g, _h;
31
- var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, _v = _a.useSafeArea, useSafeArea = _v === void 0 ? [] : _v, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _w = _a.iOSLock, iOSLock = _w === void 0 ? false : _w, _x = _a.virtualKeyboard, virtualKeyboard = _x === void 0 ? false : _x;
31
+ var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, adjustContainerHeight = _a.adjustContainerHeight, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _v = _a.iOSLock, iOSLock = _v === void 0 ? false : _v, _w = _a.virtualKeyboard, virtualKeyboard = _w === void 0 ? false : _w;
32
32
  var windowHeight = (_g = reactDiv100vh.use100vh()) !== null && _g !== void 0 ? _g : 0;
33
33
  var visibleViewportSize = hooks_useVisualviewportSize.useVisibleViewportSize(virtualKeyboard);
34
34
  var fullHeight = virtualKeyboard ? (_h = visibleViewportSize === null || visibleViewportSize === void 0 ? void 0 : visibleViewportSize.height) !== null && _h !== void 0 ? _h : 0 : windowHeight;
35
35
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
36
36
  var isFirstRender = fullHeight === 0;
37
+ if (typeof adjustContainerHeight === 'function') {
38
+ fullHeight = adjustContainerHeight(fullHeight);
39
+ }
37
40
  var initialIndexRef = React.useRef(initialActiveAreaIndex);
38
- var safeAreaOffset = React.useMemo(function () {
39
- return useSafeArea.reduce(function (sum, nextDirection) {
40
- // eslint-disable-next-line no-param-reassign
41
- sum += coreComponentsShared.getSafeAreaValue(nextDirection) || 0;
42
- return sum;
43
- }, 0);
44
- }, [useSafeArea]);
45
41
  var magneticAreas = React.useMemo(function () {
46
42
  var _a;
47
43
  if (magneticAreasProp) {
@@ -52,7 +48,10 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
52
48
  var iOSViewHeight = 0;
53
49
  if (coreComponentsShared.isClient()) {
54
50
  if ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) {
55
- iOSViewHeight = document.documentElement.clientHeight + safeAreaOffset;
51
+ iOSViewHeight =
52
+ typeof adjustContainerHeight === 'function'
53
+ ? adjustContainerHeight(document.documentElement.clientHeight)
54
+ : document.documentElement.clientHeight;
56
55
  }
57
56
  else {
58
57
  iOSViewHeight = window === null || window === void 0 ? void 0 : window.innerHeight;
@@ -60,12 +59,12 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
60
59
  }
61
60
  var viewHeight = coreComponentsShared.os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
62
61
  return [0, viewHeight - headerOffset];
63
- }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, safeAreaOffset]);
62
+ }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
64
63
  var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
65
- var _y = React.useState(0), sheetOffset = _y[0], setSheetOffset = _y[1];
66
- var _z = React.useState(1), backdropOpacity = _z[0], setBackdropOpacity = _z[1];
67
- var _0 = React.useState(-1), activeAreaIdx = _0[0], setActiveAreaIdx = _0[1];
68
- var _1 = React.useState(null), swipingInProgress = _1[0], setSwipingInProgress = _1[1];
64
+ var _x = React.useState(0), sheetOffset = _x[0], setSheetOffset = _x[1];
65
+ var _y = React.useState(1), backdropOpacity = _y[0], setBackdropOpacity = _y[1];
66
+ var _z = React.useState(-1), activeAreaIdx = _z[0], setActiveAreaIdx = _z[1];
67
+ var _0 = React.useState(null), swipingInProgress = _0[0], setSwipingInProgress = _0[1];
69
68
  var scrollOccurred = React.useRef(false);
70
69
  var headerRef = React.useRef(null);
71
70
  var contentRef = React.useRef(null);
@@ -27,20 +27,16 @@ var isNil = coreComponentsShared.fnUtils.isNil;
27
27
  var BottomSheet = React.forwardRef(function (_a, ref) {
28
28
  var _b, _c, _d, _e, _f;
29
29
  var _g, _h;
30
- var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, _v = _a.useSafeArea, useSafeArea = _v === void 0 ? [] : _v, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _w = _a.iOSLock, iOSLock = _w === void 0 ? false : _w, _x = _a.virtualKeyboard, virtualKeyboard = _x === void 0 ? false : _x;
30
+ var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, adjustContainerHeight = _a.adjustContainerHeight, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _v = _a.iOSLock, iOSLock = _v === void 0 ? false : _v, _w = _a.virtualKeyboard, virtualKeyboard = _w === void 0 ? false : _w;
31
31
  var windowHeight = (_g = reactDiv100vh.use100vh()) !== null && _g !== void 0 ? _g : 0;
32
32
  var visibleViewportSize = hooks_useVisualviewportSize.useVisibleViewportSize(virtualKeyboard);
33
33
  var fullHeight = virtualKeyboard ? (_h = visibleViewportSize === null || visibleViewportSize === void 0 ? void 0 : visibleViewportSize.height) !== null && _h !== void 0 ? _h : 0 : windowHeight;
34
34
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
35
35
  var isFirstRender = fullHeight === 0;
36
+ if (typeof adjustContainerHeight === 'function') {
37
+ fullHeight = adjustContainerHeight(fullHeight);
38
+ }
36
39
  var initialIndexRef = React.useRef(initialActiveAreaIndex);
37
- var safeAreaOffset = React.useMemo(function () {
38
- return useSafeArea.reduce(function (sum, nextDirection) {
39
- // eslint-disable-next-line no-param-reassign
40
- sum += coreComponentsShared.getSafeAreaValue(nextDirection) || 0;
41
- return sum;
42
- }, 0);
43
- }, [useSafeArea]);
44
40
  var magneticAreas = React.useMemo(function () {
45
41
  var _a;
46
42
  if (magneticAreasProp) {
@@ -51,7 +47,10 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
51
47
  var iOSViewHeight = 0;
52
48
  if (coreComponentsShared.isClient()) {
53
49
  if ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) {
54
- iOSViewHeight = document.documentElement.clientHeight + safeAreaOffset;
50
+ iOSViewHeight =
51
+ typeof adjustContainerHeight === 'function'
52
+ ? adjustContainerHeight(document.documentElement.clientHeight)
53
+ : document.documentElement.clientHeight;
55
54
  }
56
55
  else {
57
56
  iOSViewHeight = window === null || window === void 0 ? void 0 : window.innerHeight;
@@ -59,12 +58,12 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
59
58
  }
60
59
  var viewHeight = coreComponentsShared.os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
61
60
  return [0, viewHeight - headerOffset];
62
- }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, safeAreaOffset]);
61
+ }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
63
62
  var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
64
- var _y = React.useState(0), sheetOffset = _y[0], setSheetOffset = _y[1];
65
- var _z = React.useState(1), backdropOpacity = _z[0], setBackdropOpacity = _z[1];
66
- var _0 = React.useState(-1), activeAreaIdx = _0[0], setActiveAreaIdx = _0[1];
67
- var _1 = React.useState(null), swipingInProgress = _1[0], setSwipingInProgress = _1[1];
63
+ var _x = React.useState(0), sheetOffset = _x[0], setSheetOffset = _x[1];
64
+ var _y = React.useState(1), backdropOpacity = _y[0], setBackdropOpacity = _y[1];
65
+ var _z = React.useState(-1), activeAreaIdx = _z[0], setActiveAreaIdx = _z[1];
66
+ var _0 = React.useState(null), swipingInProgress = _0[0], setSwipingInProgress = _0[1];
68
67
  var scrollOccurred = React.useRef(false);
69
68
  var headerRef = React.useRef(null);
70
69
  var contentRef = React.useRef(null);
@@ -4,10 +4,13 @@ import { HandledEvents } from 'react-swipeable/es/types';
4
4
  import { TransitionProps } from 'react-transition-group/Transition';
5
5
  import { BaseModalProps } from "../../base-modal";
6
6
  import { NavigationBarPrivateProps as NavigationBarProps } from "../../navigation-bar-private";
7
- import { Directions } from "../../shared";
8
7
  type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
9
8
  type BottomSheetTitleAlign = 'center' | 'left';
10
9
  type BottomSheetProps = {
10
+ /**
11
+ *
12
+ */
13
+ adjustContainerHeight?(height: number): number;
11
14
  /**
12
15
  * Контент
13
16
  */
@@ -286,9 +289,5 @@ type BottomSheetProps = {
286
289
  * Учитывать высоту виртуальной клавиатуры
287
290
  */
288
291
  virtualKeyboard?: boolean;
289
- /**
290
- * Учитывать safe area: ['top', 'bottom']
291
- */
292
- useSafeArea?: Directions[];
293
292
  };
294
293
  export { BottomSheetTitleAlign, BottomSheetProps };
@@ -5,7 +5,7 @@ import mergeRefs from 'react-merge-refs';
5
5
  import { useSwipeable } from 'react-swipeable';
6
6
  import cn from 'classnames';
7
7
  import { BaseModal, unlockScroll } from '../../base-modal/esm';
8
- import { fnUtils, getSafeAreaValue, isClient, os, getDataTestId } from '../../shared/esm';
8
+ import { fnUtils, isClient, os, getDataTestId } from '../../shared/esm';
9
9
  import { Footer } from './components/footer/Component.js';
10
10
  import { Header } from './components/header/Component.js';
11
11
  import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js';
@@ -23,20 +23,16 @@ var isNil = fnUtils.isNil;
23
23
  var BottomSheet = forwardRef(function (_a, ref) {
24
24
  var _b, _c, _d, _e, _f;
25
25
  var _g, _h;
26
- var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, _v = _a.useSafeArea, useSafeArea = _v === void 0 ? [] : _v, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _w = _a.iOSLock, iOSLock = _w === void 0 ? false : _w, _x = _a.virtualKeyboard, virtualKeyboard = _x === void 0 ? false : _x;
26
+ var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _j = _a.titleSize, titleSize = _j === void 0 ? 'default' : _j, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _k = _a.titleAlign, titleAlign = _k === void 0 ? 'left' : _k, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _l = _a.stickyFooter, stickyFooter = _l === void 0 ? true : _l, _m = _a.initialHeight, initialHeight = _m === void 0 ? 'default' : _m, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _o = _a.transitionProps, transitionProps = _o === void 0 ? {} : _o, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _p = _a.swipeable, swipeable = _p === void 0 ? true : _p, _q = _a.swipeableContent, swipeableContent = _q === void 0 ? true : _q, _r = _a.swipeThreshold, swipeThreshold = _r === void 0 ? 5 : _r, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _s = _a.scrollableContainerRef, scrollableContainerRef = _s === void 0 ? function () { return null; } : _s, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _t = _a.sheetContainerRef, sheetContainerRef = _t === void 0 ? function () { return null; } : _t, _u = _a.headerOffset, headerOffset = _u === void 0 ? 24 : _u, adjustContainerHeight = _a.adjustContainerHeight, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onSwipeStart = _a.onSwipeStart, onSwipeEnd = _a.onSwipeEnd, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName, backButtonProps = _a.backButtonProps, _v = _a.iOSLock, iOSLock = _v === void 0 ? false : _v, _w = _a.virtualKeyboard, virtualKeyboard = _w === void 0 ? false : _w;
27
27
  var windowHeight = (_g = use100vh()) !== null && _g !== void 0 ? _g : 0;
28
28
  var visibleViewportSize = useVisibleViewportSize(virtualKeyboard);
29
29
  var fullHeight = virtualKeyboard ? (_h = visibleViewportSize === null || visibleViewportSize === void 0 ? void 0 : visibleViewportSize.height) !== null && _h !== void 0 ? _h : 0 : windowHeight;
30
30
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
31
31
  var isFirstRender = fullHeight === 0;
32
+ if (typeof adjustContainerHeight === 'function') {
33
+ fullHeight = adjustContainerHeight(fullHeight);
34
+ }
32
35
  var initialIndexRef = useRef(initialActiveAreaIndex);
33
- var safeAreaOffset = useMemo(function () {
34
- return useSafeArea.reduce(function (sum, nextDirection) {
35
- // eslint-disable-next-line no-param-reassign
36
- sum += getSafeAreaValue(nextDirection) || 0;
37
- return sum;
38
- }, 0);
39
- }, [useSafeArea]);
40
36
  var magneticAreas = useMemo(function () {
41
37
  var _a;
42
38
  if (magneticAreasProp) {
@@ -47,7 +43,10 @@ var BottomSheet = forwardRef(function (_a, ref) {
47
43
  var iOSViewHeight = 0;
48
44
  if (isClient()) {
49
45
  if ((_a = document === null || document === void 0 ? void 0 : document.documentElement) === null || _a === void 0 ? void 0 : _a.clientHeight) {
50
- iOSViewHeight = document.documentElement.clientHeight + safeAreaOffset;
46
+ iOSViewHeight =
47
+ typeof adjustContainerHeight === 'function'
48
+ ? adjustContainerHeight(document.documentElement.clientHeight)
49
+ : document.documentElement.clientHeight;
51
50
  }
52
51
  else {
53
52
  iOSViewHeight = window === null || window === void 0 ? void 0 : window.innerHeight;
@@ -55,12 +54,12 @@ var BottomSheet = forwardRef(function (_a, ref) {
55
54
  }
56
55
  var viewHeight = os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
57
56
  return [0, viewHeight - headerOffset];
58
- }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, safeAreaOffset]);
57
+ }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
59
58
  var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
60
- var _y = useState(0), sheetOffset = _y[0], setSheetOffset = _y[1];
61
- var _z = useState(1), backdropOpacity = _z[0], setBackdropOpacity = _z[1];
62
- var _0 = useState(-1), activeAreaIdx = _0[0], setActiveAreaIdx = _0[1];
63
- var _1 = useState(null), swipingInProgress = _1[0], setSwipingInProgress = _1[1];
59
+ var _x = useState(0), sheetOffset = _x[0], setSheetOffset = _x[1];
60
+ var _y = useState(1), backdropOpacity = _y[0], setBackdropOpacity = _y[1];
61
+ var _z = useState(-1), activeAreaIdx = _z[0], setActiveAreaIdx = _z[1];
62
+ var _0 = useState(null), swipingInProgress = _0[0], setSwipingInProgress = _0[1];
64
63
  var scrollOccurred = useRef(false);
65
64
  var headerRef = useRef(null);
66
65
  var contentRef = useRef(null);
@@ -4,10 +4,13 @@ import { HandledEvents } from 'react-swipeable/es/types';
4
4
  import { TransitionProps } from 'react-transition-group/Transition';
5
5
  import { BaseModalProps } from "../../base-modal";
6
6
  import { NavigationBarPrivateProps as NavigationBarProps } from "../../navigation-bar-private";
7
- import { Directions } from "../../shared";
8
7
  type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
9
8
  type BottomSheetTitleAlign = 'center' | 'left';
10
9
  type BottomSheetProps = {
10
+ /**
11
+ *
12
+ */
13
+ adjustContainerHeight?(height: number): number;
11
14
  /**
12
15
  * Контент
13
16
  */
@@ -286,9 +289,5 @@ type BottomSheetProps = {
286
289
  * Учитывать высоту виртуальной клавиатуры
287
290
  */
288
291
  virtualKeyboard?: boolean;
289
- /**
290
- * Учитывать safe area: ['top', 'bottom']
291
- */
292
- useSafeArea?: Directions[];
293
292
  };
294
293
  export { BottomSheetTitleAlign, BottomSheetProps };
@@ -4,7 +4,7 @@ import mergeRefs from 'react-merge-refs';
4
4
  import { useSwipeable } from 'react-swipeable';
5
5
  import cn from 'classnames';
6
6
  import { BaseModal, unlockScroll } from '../../base-modal/modern';
7
- import { getSafeAreaValue, isClient, os, getDataTestId, fnUtils } from '../../shared/modern';
7
+ import { isClient, os, getDataTestId, fnUtils } from '../../shared/modern';
8
8
  import { Footer } from './components/footer/Component.js';
9
9
  import { Header } from './components/header/Component.js';
10
10
  import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js';
@@ -19,18 +19,16 @@ const styles = {"modal":"bottom-sheet__modal_n8xmp","wrapper":"bottom-sheet__wra
19
19
  require('./index.css');
20
20
 
21
21
  const { isNil } = fnUtils;
22
- const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, swipeableContent = true, swipeThreshold = 5, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, headerOffset = 24, onClose, onBack, onMagnetize, onSwipeStart, onSwipeEnd, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, onMagnetizeEnd, onOffsetChange, useSafeArea = [], swipeableMarker, swipeableMarkerClassName, backButtonProps, iOSLock = false, virtualKeyboard = false, }, ref) => {
22
+ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, swipeableContent = true, swipeThreshold = 5, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, headerOffset = 24, adjustContainerHeight, onClose, onBack, onMagnetize, onSwipeStart, onSwipeEnd, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, onMagnetizeEnd, onOffsetChange, swipeableMarker, swipeableMarkerClassName, backButtonProps, iOSLock = false, virtualKeyboard = false, }, ref) => {
23
23
  const windowHeight = use100vh() ?? 0;
24
24
  const visibleViewportSize = useVisibleViewportSize(virtualKeyboard);
25
- const fullHeight = virtualKeyboard ? visibleViewportSize?.height ?? 0 : windowHeight;
25
+ let fullHeight = virtualKeyboard ? visibleViewportSize?.height ?? 0 : windowHeight;
26
26
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
27
27
  const isFirstRender = fullHeight === 0;
28
+ if (typeof adjustContainerHeight === 'function') {
29
+ fullHeight = adjustContainerHeight(fullHeight);
30
+ }
28
31
  const initialIndexRef = useRef(initialActiveAreaIndex);
29
- const safeAreaOffset = useMemo(() => useSafeArea.reduce((sum, nextDirection) => {
30
- // eslint-disable-next-line no-param-reassign
31
- sum += getSafeAreaValue(nextDirection) || 0;
32
- return sum;
33
- }, 0), [useSafeArea]);
34
32
  const magneticAreas = useMemo(() => {
35
33
  if (magneticAreasProp) {
36
34
  return magneticAreasProp.map((area) => convertPercentToNumber(area, fullHeight, headerOffset));
@@ -38,7 +36,10 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
38
36
  let iOSViewHeight = 0;
39
37
  if (isClient()) {
40
38
  if (document?.documentElement?.clientHeight) {
41
- iOSViewHeight = document.documentElement.clientHeight + safeAreaOffset;
39
+ iOSViewHeight =
40
+ typeof adjustContainerHeight === 'function'
41
+ ? adjustContainerHeight(document.documentElement.clientHeight)
42
+ : document.documentElement.clientHeight;
42
43
  }
43
44
  else {
44
45
  iOSViewHeight = window?.innerHeight;
@@ -46,7 +47,7 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
46
47
  }
47
48
  const viewHeight = os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
48
49
  return [0, viewHeight - headerOffset];
49
- }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, safeAreaOffset]);
50
+ }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
50
51
  const lastMagneticArea = magneticAreas[magneticAreas.length - 1];
51
52
  const [sheetOffset, setSheetOffset] = useState(0);
52
53
  const [backdropOpacity, setBackdropOpacity] = useState(1);
@@ -4,10 +4,13 @@ import { HandledEvents } from 'react-swipeable/es/types';
4
4
  import { TransitionProps } from 'react-transition-group/Transition';
5
5
  import { BaseModalProps } from "../../base-modal";
6
6
  import { NavigationBarPrivateProps as NavigationBarProps } from "../../navigation-bar-private";
7
- import { Directions } from "../../shared";
8
7
  type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
9
8
  type BottomSheetTitleAlign = 'center' | 'left';
10
9
  type BottomSheetProps = {
10
+ /**
11
+ *
12
+ */
13
+ adjustContainerHeight?(height: number): number;
11
14
  /**
12
15
  * Контент
13
16
  */
@@ -286,9 +289,5 @@ type BottomSheetProps = {
286
289
  * Учитывать высоту виртуальной клавиатуры
287
290
  */
288
291
  virtualKeyboard?: boolean;
289
- /**
290
- * Учитывать safe area: ['top', 'bottom']
291
- */
292
- useSafeArea?: Directions[];
293
292
  };
294
293
  export { BottomSheetTitleAlign, BottomSheetProps };
@@ -4,7 +4,7 @@ import mergeRefs from 'react-merge-refs';
4
4
  import { useSwipeable } from 'react-swipeable';
5
5
  import cn from 'classnames';
6
6
  import { BaseModal, unlockScroll } from '../../base-modal/moderncssm';
7
- import { getSafeAreaValue, isClient, os, getDataTestId, fnUtils } from '../../shared/moderncssm';
7
+ import { isClient, os, getDataTestId, fnUtils } from '../../shared/moderncssm';
8
8
  import { Footer } from './components/footer/Component.js';
9
9
  import { Header } from './components/header/Component.js';
10
10
  import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js';
@@ -19,18 +19,16 @@ import '../../backdrop/moderncssm';
19
19
  import './enums/swipeEnums.js';
20
20
 
21
21
  const { isNil } = fnUtils;
22
- const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, swipeableContent = true, swipeThreshold = 5, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, headerOffset = 24, onClose, onBack, onMagnetize, onSwipeStart, onSwipeEnd, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, onMagnetizeEnd, onOffsetChange, useSafeArea = [], swipeableMarker, swipeableMarkerClassName, backButtonProps, iOSLock = false, virtualKeyboard = false, }, ref) => {
22
+ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, swipeableContent = true, swipeThreshold = 5, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, headerOffset = 24, adjustContainerHeight, onClose, onBack, onMagnetize, onSwipeStart, onSwipeEnd, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, onMagnetizeEnd, onOffsetChange, swipeableMarker, swipeableMarkerClassName, backButtonProps, iOSLock = false, virtualKeyboard = false, }, ref) => {
23
23
  const windowHeight = use100vh() ?? 0;
24
24
  const visibleViewportSize = useVisibleViewportSize(virtualKeyboard);
25
- const fullHeight = virtualKeyboard ? visibleViewportSize?.height ?? 0 : windowHeight;
25
+ let fullHeight = virtualKeyboard ? visibleViewportSize?.height ?? 0 : windowHeight;
26
26
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
27
27
  const isFirstRender = fullHeight === 0;
28
+ if (typeof adjustContainerHeight === 'function') {
29
+ fullHeight = adjustContainerHeight(fullHeight);
30
+ }
28
31
  const initialIndexRef = useRef(initialActiveAreaIndex);
29
- const safeAreaOffset = useMemo(() => useSafeArea.reduce((sum, nextDirection) => {
30
- // eslint-disable-next-line no-param-reassign
31
- sum += getSafeAreaValue(nextDirection) || 0;
32
- return sum;
33
- }, 0), [useSafeArea]);
34
32
  const magneticAreas = useMemo(() => {
35
33
  if (magneticAreasProp) {
36
34
  return magneticAreasProp.map((area) => convertPercentToNumber(area, fullHeight, headerOffset));
@@ -38,7 +36,10 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
38
36
  let iOSViewHeight = 0;
39
37
  if (isClient()) {
40
38
  if (document?.documentElement?.clientHeight) {
41
- iOSViewHeight = document.documentElement.clientHeight + safeAreaOffset;
39
+ iOSViewHeight =
40
+ typeof adjustContainerHeight === 'function'
41
+ ? adjustContainerHeight(document.documentElement.clientHeight)
42
+ : document.documentElement.clientHeight;
42
43
  }
43
44
  else {
44
45
  iOSViewHeight = window?.innerHeight;
@@ -46,7 +47,7 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
46
47
  }
47
48
  const viewHeight = os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;
48
49
  return [0, viewHeight - headerOffset];
49
- }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, safeAreaOffset]);
50
+ }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);
50
51
  const lastMagneticArea = magneticAreas[magneticAreas.length - 1];
51
52
  const [sheetOffset, setSheetOffset] = useState(0);
52
53
  const [backdropOpacity, setBackdropOpacity] = useState(1);
@@ -4,10 +4,13 @@ import { HandledEvents } from 'react-swipeable/es/types';
4
4
  import { TransitionProps } from 'react-transition-group/Transition';
5
5
  import { BaseModalProps } from "../../base-modal";
6
6
  import { NavigationBarPrivateProps as NavigationBarProps } from "../../navigation-bar-private";
7
- import { Directions } from "../../shared";
8
7
  type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
9
8
  type BottomSheetTitleAlign = 'center' | 'left';
10
9
  type BottomSheetProps = {
10
+ /**
11
+ *
12
+ */
13
+ adjustContainerHeight?(height: number): number;
11
14
  /**
12
15
  * Контент
13
16
  */
@@ -286,9 +289,5 @@ type BottomSheetProps = {
286
289
  * Учитывать высоту виртуальной клавиатуры
287
290
  */
288
291
  virtualKeyboard?: boolean;
289
- /**
290
- * Учитывать safe area: ['top', 'bottom']
291
- */
292
- useSafeArea?: Directions[];
293
292
  };
294
293
  export { BottomSheetTitleAlign, BottomSheetProps };
@@ -4,10 +4,13 @@ import { HandledEvents } from 'react-swipeable/es/types';
4
4
  import { TransitionProps } from 'react-transition-group/Transition';
5
5
  import { BaseModalProps } from "../base-modal";
6
6
  import { NavigationBarPrivateProps as NavigationBarProps } from "../navigation-bar-private";
7
- import { Directions } from "../shared";
8
7
  type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
9
8
  type BottomSheetTitleAlign = 'center' | 'left';
10
9
  type BottomSheetProps = {
10
+ /**
11
+ *
12
+ */
13
+ adjustContainerHeight?(height: number): number;
11
14
  /**
12
15
  * Контент
13
16
  */
@@ -286,9 +289,5 @@ type BottomSheetProps = {
286
289
  * Учитывать высоту виртуальной клавиатуры
287
290
  */
288
291
  virtualKeyboard?: boolean;
289
- /**
290
- * Учитывать safe area: ['top', 'bottom']
291
- */
292
- useSafeArea?: Directions[];
293
292
  };
294
293
  export { BottomSheetTitleAlign, BottomSheetProps };
@@ -15,7 +15,7 @@ import 'date-fns/isEqual';
15
15
  import 'date-fns/max';
16
16
  import 'date-fns/min';
17
17
  import 'date-fns/subMonths';
18
- import './index.module-50007371.js';
18
+ import './index.module-3bd8f2aa.js';
19
19
  import 'date-fns/endOfMonth';
20
20
  import 'date-fns/isSameMonth';
21
21
  import '../../calendar/esm/desktop';
@@ -15,7 +15,7 @@ import 'date-fns/isEqual';
15
15
  import 'date-fns/max';
16
16
  import 'date-fns/min';
17
17
  import 'date-fns/subMonths';
18
- import './index.module-50007371.js';
18
+ import './index.module-3bd8f2aa.js';
19
19
  import './views/static.js';
20
20
  import 'date-fns/endOfMonth';
21
21
  import 'date-fns/isSameMonth';
@@ -8,7 +8,7 @@ import { isCompleteDateInput } from '../../../date-input/esm';
8
8
  import { useDidUpdateEffect } from '@alfalab/hooks';
9
9
  import { Divider } from '../components/divider/Component.js';
10
10
  import { usePopoverViewMonthes } from '../hooks.js';
11
- import { s as styles } from '../index.module-50007371.js';
11
+ import { s as styles } from '../index.module-3bd8f2aa.js';
12
12
  import 'date-fns/addMonths';
13
13
  import 'date-fns/isEqual';
14
14
  import 'date-fns/max';
@@ -14,7 +14,7 @@ import { isCompleteDateInput, DateInput } from '../../../date-input/esm';
14
14
  import { Divider } from '../components/divider/Component.js';
15
15
  import { useStaticViewMonthes, useSelectionProps } from '../hooks.js';
16
16
  import { isDayButton } from '../utils.js';
17
- import { s as styles } from '../index.module-50007371.js';
17
+ import { s as styles } from '../index.module-3bd8f2aa.js';
18
18
  import 'date-fns/isEqual';
19
19
  import 'date-fns/min';
20
20
 
@@ -14,7 +14,7 @@ import 'date-fns/isEqual';
14
14
  import 'date-fns/max';
15
15
  import 'date-fns/min';
16
16
  import 'date-fns/subMonths';
17
- import './index.module-dad605ea.js';
17
+ import './index.module-675a70db.js';
18
18
  import 'date-fns/endOfMonth';
19
19
  import 'date-fns/isSameMonth';
20
20
  import '../../calendar/modern/desktop';
@@ -14,7 +14,7 @@ import 'date-fns/isEqual';
14
14
  import 'date-fns/max';
15
15
  import 'date-fns/min';
16
16
  import 'date-fns/subMonths';
17
- import './index.module-dad605ea.js';
17
+ import './index.module-675a70db.js';
18
18
  import './views/static.js';
19
19
  import 'date-fns/endOfMonth';
20
20
  import 'date-fns/isSameMonth';
@@ -7,7 +7,7 @@ import { isCompleteDateInput } from '../../../date-input/modern';
7
7
  import { useDidUpdateEffect } from '@alfalab/hooks';
8
8
  import { Divider } from '../components/divider/Component.js';
9
9
  import { usePopoverViewMonthes } from '../hooks.js';
10
- import { s as styles } from '../index.module-dad605ea.js';
10
+ import { s as styles } from '../index.module-675a70db.js';
11
11
  import 'date-fns/addMonths';
12
12
  import 'date-fns/isEqual';
13
13
  import 'date-fns/max';
@@ -13,7 +13,7 @@ import { isCompleteDateInput, DateInput } from '../../../date-input/modern';
13
13
  import { Divider } from '../components/divider/Component.js';
14
14
  import { useStaticViewMonthes, useSelectionProps } from '../hooks.js';
15
15
  import { isDayButton } from '../utils.js';
16
- import { s as styles } from '../index.module-dad605ea.js';
16
+ import { s as styles } from '../index.module-675a70db.js';
17
17
  import 'date-fns/isEqual';
18
18
  import 'date-fns/min';
19
19
 
@@ -10,7 +10,7 @@ var coreComponentsDateInput = require('../../date-input');
10
10
  var hooks$1 = require('@alfalab/hooks');
11
11
  var components_divider_Component = require('../components/divider/Component.js');
12
12
  var hooks = require('../hooks.js');
13
- var index_module = require('../index.module-16b924be.js');
13
+ var index_module = require('../index.module-93fe2d00.js');
14
14
 
15
15
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
16
16
 
@@ -16,7 +16,7 @@ var coreComponentsDateInput = require('../../date-input');
16
16
  var components_divider_Component = require('../components/divider/Component.js');
17
17
  var hooks = require('../hooks.js');
18
18
  var utils = require('../utils.js');
19
- var index_module = require('../index.module-16b924be.js');
19
+ var index_module = require('../index.module-93fe2d00.js');
20
20
 
21
21
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
22
22
 
@@ -10,7 +10,7 @@ var coreComponentsTypography = require('../../../../typography');
10
10
  var hooks = require('@alfalab/hooks');
11
11
  var context = require('../../../context.js');
12
12
  var components_header_component = require('../../header/component.js');
13
- var components_screens_initial_countdownSection = require('../../../countdown-section-d34c1af5.js');
13
+ var components_screens_initial_countdownSection = require('../../../countdown-section-dd00dd2a.js');
14
14
 
15
15
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
16
16
 
@@ -7,7 +7,7 @@ require('../../../../spinner');
7
7
  require('../../../../typography');
8
8
  require('../../../context.js');
9
9
  require('../../../utils.js');
10
- var components_screens_initial_countdownSection = require('../../../countdown-section-d34c1af5.js');
10
+ var components_screens_initial_countdownSection = require('../../../countdown-section-dd00dd2a.js');
11
11
 
12
12
 
13
13
 
@@ -17,7 +17,7 @@ import '../../code-input/esm/mobile';
17
17
  import '../../link/esm';
18
18
  import '../../typography/esm';
19
19
  import './components/header/component.js';
20
- import './countdown-section-4d3cc9e0.js';
20
+ import './countdown-section-c258b74a.js';
21
21
  import '../../button/esm';
22
22
  import '../../spinner/esm';
23
23
  import './components/screens/hint/component.js';
@@ -16,7 +16,7 @@ import '../../../../code-input/esm/mobile';
16
16
  import '../../../../link/esm';
17
17
  import '../../../../typography/esm';
18
18
  import '../header/component.js';
19
- import '../../countdown-section-4d3cc9e0.js';
19
+ import '../../countdown-section-c258b74a.js';
20
20
  import '../../../../button/esm';
21
21
  import '../../../../spinner/esm';
22
22
  import '../countdown-loader/component.js';
@@ -14,7 +14,7 @@ import '../../../../code-input/esm/mobile';
14
14
  import '../../../../link/esm';
15
15
  import '../../../../typography/esm';
16
16
  import '../header/component.js';
17
- import '../../countdown-section-4d3cc9e0.js';
17
+ import '../../countdown-section-c258b74a.js';
18
18
  import '../../../../button/esm';
19
19
  import '../../../../spinner/esm';
20
20
  import '../screens/hint/component.js';
@@ -14,6 +14,6 @@ import '@alfalab/hooks';
14
14
  import '../context.js';
15
15
  import '../utils.js';
16
16
  import './header/component.js';
17
- import '../countdown-section-4d3cc9e0.js';
17
+ import '../countdown-section-c258b74a.js';
18
18
  import '../../../button/esm';
19
19
  import '../../../spinner/esm';