@alfalab/core-components 41.13.0-beta.1 → 41.13.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (528) hide show
  1. package/bottom-sheet/component.js +41 -32
  2. package/bottom-sheet/components/header/Component.d.ts +1 -0
  3. package/bottom-sheet/components/header/Component.js +3 -4
  4. package/bottom-sheet/cssm/component.js +40 -31
  5. package/bottom-sheet/cssm/components/header/Component.d.ts +1 -0
  6. package/bottom-sheet/cssm/components/header/Component.js +3 -4
  7. package/bottom-sheet/cssm/index.module.css +3 -0
  8. package/bottom-sheet/cssm/types.d.ts +13 -1
  9. package/bottom-sheet/cssm/utils.d.ts +3 -3
  10. package/bottom-sheet/cssm/utils.js +4 -4
  11. package/bottom-sheet/esm/component.js +42 -33
  12. package/bottom-sheet/esm/components/header/Component.d.ts +1 -0
  13. package/bottom-sheet/esm/components/header/Component.js +3 -4
  14. package/bottom-sheet/esm/index.css +3 -0
  15. package/bottom-sheet/esm/types.d.ts +13 -1
  16. package/bottom-sheet/esm/utils.d.ts +3 -3
  17. package/bottom-sheet/esm/utils.js +4 -4
  18. package/bottom-sheet/index.css +3 -0
  19. package/bottom-sheet/modern/component.js +25 -18
  20. package/bottom-sheet/modern/components/header/Component.d.ts +1 -0
  21. package/bottom-sheet/modern/components/header/Component.js +3 -4
  22. package/bottom-sheet/modern/index.css +3 -0
  23. package/bottom-sheet/modern/types.d.ts +13 -1
  24. package/bottom-sheet/modern/utils.d.ts +3 -3
  25. package/bottom-sheet/modern/utils.js +3 -4
  26. package/bottom-sheet/types.d.ts +13 -1
  27. package/bottom-sheet/utils.d.ts +3 -3
  28. package/bottom-sheet/utils.js +4 -4
  29. package/calendar/Component.responsive.js +1 -1
  30. package/calendar/components/calendar-mobile/Component.js +1 -1
  31. package/calendar/components/calendar-mobile/index.d.ts +1 -1
  32. package/calendar/components/calendar-mobile/index.js +1 -1
  33. package/calendar/esm/Component.responsive.js +1 -1
  34. package/calendar/esm/components/calendar-mobile/Component.js +1 -1
  35. package/calendar/esm/components/calendar-mobile/index.d.ts +1 -1
  36. package/calendar/esm/components/calendar-mobile/index.js +1 -1
  37. package/calendar/esm/index.js +1 -1
  38. package/calendar/esm/mobile.js +1 -1
  39. package/calendar/esm/responsive.d.ts +1 -1
  40. package/calendar/esm/responsive.js +1 -1
  41. package/calendar/index.js +1 -1
  42. package/calendar/mobile.js +1 -1
  43. package/calendar/modern/Component.responsive.js +1 -1
  44. package/calendar/modern/components/calendar-mobile/Component.js +1 -1
  45. package/calendar/modern/components/calendar-mobile/index.d.ts +1 -1
  46. package/calendar/modern/components/calendar-mobile/index.js +1 -1
  47. package/calendar/modern/index.js +1 -1
  48. package/calendar/modern/mobile.js +1 -1
  49. package/calendar/modern/responsive.d.ts +1 -1
  50. package/calendar/modern/responsive.js +1 -1
  51. package/calendar/responsive.d.ts +1 -1
  52. package/calendar/responsive.js +1 -1
  53. package/confirmation/component.desktop.js +1 -1
  54. package/confirmation/component.mobile.js +1 -1
  55. package/confirmation/component.responsive.js +1 -1
  56. package/confirmation/components/base-confirmation/component.js +1 -1
  57. package/confirmation/components/base-confirmation/index.js +1 -1
  58. package/confirmation/components/index.js +1 -1
  59. package/confirmation/components/screens/index.js +1 -1
  60. package/confirmation/components/screens/initial/component.js +1 -1
  61. package/confirmation/components/screens/initial/countdown-section.js +1 -1
  62. package/confirmation/components/screens/initial/index.js +1 -1
  63. package/confirmation/desktop.js +1 -1
  64. package/confirmation/esm/component.desktop.js +1 -1
  65. package/confirmation/esm/component.mobile.js +1 -1
  66. package/confirmation/esm/component.responsive.js +1 -1
  67. package/confirmation/esm/components/base-confirmation/component.js +1 -1
  68. package/confirmation/esm/components/base-confirmation/index.js +1 -1
  69. package/confirmation/esm/components/index.js +1 -1
  70. package/confirmation/esm/components/screens/index.js +1 -1
  71. package/confirmation/esm/components/screens/initial/component.js +1 -1
  72. package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
  73. package/confirmation/esm/components/screens/initial/index.js +1 -1
  74. package/confirmation/esm/desktop.js +1 -1
  75. package/confirmation/esm/index.js +1 -1
  76. package/confirmation/esm/mobile.js +1 -1
  77. package/confirmation/esm/responsive.js +1 -1
  78. package/confirmation/index.js +1 -1
  79. package/confirmation/mobile.js +1 -1
  80. package/confirmation/modern/component.desktop.js +1 -1
  81. package/confirmation/modern/component.mobile.js +1 -1
  82. package/confirmation/modern/component.responsive.js +1 -1
  83. package/confirmation/modern/components/base-confirmation/component.js +1 -1
  84. package/confirmation/modern/components/base-confirmation/index.js +1 -1
  85. package/confirmation/modern/components/index.js +1 -1
  86. package/confirmation/modern/components/screens/index.js +1 -1
  87. package/confirmation/modern/components/screens/initial/component.js +1 -1
  88. package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
  89. package/confirmation/modern/components/screens/initial/index.js +1 -1
  90. package/confirmation/modern/desktop.js +1 -1
  91. package/confirmation/modern/index.js +1 -1
  92. package/confirmation/modern/mobile.js +1 -1
  93. package/confirmation/modern/responsive.js +1 -1
  94. package/confirmation/responsive.js +1 -1
  95. package/custom-picker-button/Component-2aef4eba.d.ts +46 -7
  96. package/custom-picker-button/Component-3885b0d7.d.ts +69 -4
  97. package/custom-picker-button/Component.mobile-ae13210f.d.ts +1 -1
  98. package/custom-picker-button/{Component.responsive-ae13210f.d.ts → Component.responsive-2aef4eba.d.ts} +3 -3
  99. package/custom-picker-button/component-3885b0d7.d.ts +8 -7
  100. package/custom-picker-button/cssm/component-3885b0d7.d.ts +8 -7
  101. package/custom-picker-button/cssm/index-f12ee135.d.ts +2 -2
  102. package/custom-picker-button/{types-425c8522.d.ts → cssm/types-0ae5fd84.d.ts} +13 -1
  103. package/custom-picker-button/cssm/{utils-b64479aa.d.ts → utils-49cc3c24.d.ts} +3 -3
  104. package/custom-picker-button/esm/component-3885b0d7.d.ts +8 -7
  105. package/custom-picker-button/esm/index-f12ee135.d.ts +2 -2
  106. package/custom-picker-button/esm/{types-eecf6ec5.d.ts → types-0ae5fd84.d.ts} +13 -1
  107. package/custom-picker-button/esm/{utils-b64479aa.d.ts → utils-49cc3c24.d.ts} +3 -3
  108. package/custom-picker-button/hook-3e68f8db.d.ts +1 -1
  109. package/custom-picker-button/index-2aef4eba.d.ts +2 -2
  110. package/custom-picker-button/index-3e68f8db.d.ts +1 -0
  111. package/custom-picker-button/index-3ebe4754.d.ts +1 -0
  112. package/custom-picker-button/index-f12ee135.d.ts +2 -2
  113. package/custom-picker-button/modern/component-3885b0d7.d.ts +8 -7
  114. package/custom-picker-button/modern/index-f12ee135.d.ts +2 -2
  115. package/custom-picker-button/{cssm/types-eecf6ec5.d.ts → modern/types-0ae5fd84.d.ts} +13 -1
  116. package/custom-picker-button/modern/{utils-b64479aa.d.ts → utils-49cc3c24.d.ts} +3 -3
  117. package/custom-picker-button/{modern/types-eecf6ec5.d.ts → types-0ae5fd84.d.ts} +13 -1
  118. package/custom-picker-button/{utils-b64479aa.d.ts → utils-49cc3c24.d.ts} +3 -3
  119. package/gallery/Component.js +2 -2
  120. package/gallery/components/header/Component.js +1 -1
  121. package/gallery/components/header/buttons.js +1 -1
  122. package/gallery/components/header/index.js +1 -1
  123. package/gallery/components/image-viewer/component.js +1 -1
  124. package/gallery/components/image-viewer/index.js +1 -1
  125. package/gallery/components/image-viewer/slide.js +1 -1
  126. package/gallery/components/index.js +2 -2
  127. package/gallery/esm/Component.js +2 -2
  128. package/gallery/esm/components/header/Component.js +1 -1
  129. package/gallery/esm/components/header/buttons.js +1 -1
  130. package/gallery/esm/components/header/index.js +1 -1
  131. package/gallery/esm/components/image-viewer/component.js +1 -1
  132. package/gallery/esm/components/image-viewer/index.js +1 -1
  133. package/gallery/esm/components/image-viewer/slide.js +1 -1
  134. package/gallery/esm/components/index.js +2 -2
  135. package/gallery/esm/index.js +2 -2
  136. package/gallery/index.js +2 -2
  137. package/gallery/modern/Component.js +2 -2
  138. package/gallery/modern/components/header/Component.js +1 -1
  139. package/gallery/modern/components/header/buttons.js +1 -1
  140. package/gallery/modern/components/header/index.js +1 -1
  141. package/gallery/modern/components/image-viewer/component.js +1 -1
  142. package/gallery/modern/components/image-viewer/index.js +1 -1
  143. package/gallery/modern/components/image-viewer/slide.js +1 -1
  144. package/gallery/modern/components/index.js +2 -2
  145. package/gallery/modern/index.js +2 -2
  146. package/input-autocomplete/Component-bdb4c6b9.d.ts +7 -11
  147. package/input-autocomplete/Component-f12ee135.d.ts +3 -3
  148. package/input-autocomplete/{Component.mobile-b2c0420d.d.ts → Component.mobile-e81c389f.d.ts} +5 -2
  149. package/input-autocomplete/Component.modal.mobile.d.ts +1 -1
  150. package/input-autocomplete/cssm/index-f12ee135.d.ts +21 -9
  151. package/input-autocomplete/esm/index-f12ee135.d.ts +21 -9
  152. package/input-autocomplete/index-f12ee135.d.ts +21 -9
  153. package/input-autocomplete/modern/index-f12ee135.d.ts +21 -9
  154. package/package.json +1 -1
  155. package/picker-button/Component.d.ts +1 -1
  156. package/picker-button/Component.responsive.d.ts +1 -1
  157. package/picker-button/typings-5e1b8383.d.ts +1 -1
  158. package/pure-cell/{component-50fc8a83.js → component-8a063b41.js} +1 -1
  159. package/pure-cell/component-c49f24a8.d.ts +9 -9
  160. package/pure-cell/component.js +2 -2
  161. package/pure-cell/components/addon/component.js +1 -1
  162. package/pure-cell/components/addon/index.js +1 -1
  163. package/pure-cell/components/amount/component.js +1 -1
  164. package/pure-cell/components/amount/index.js +1 -1
  165. package/pure-cell/components/amount-title/component.js +1 -1
  166. package/pure-cell/components/amount-title/index.js +1 -1
  167. package/pure-cell/components/category/component.js +1 -1
  168. package/pure-cell/components/category/index.js +1 -1
  169. package/pure-cell/components/content/component.js +2 -2
  170. package/pure-cell/components/content/index.d.ts +1 -1
  171. package/pure-cell/components/content/index.js +2 -2
  172. package/pure-cell/components/footer/component.js +1 -1
  173. package/pure-cell/components/footer/index.js +1 -1
  174. package/pure-cell/components/footer-button/component.js +1 -1
  175. package/pure-cell/components/footer-button/index.js +1 -1
  176. package/pure-cell/components/footer-text/component.js +1 -1
  177. package/pure-cell/components/footer-text/index.js +1 -1
  178. package/pure-cell/components/graphics/component.js +1 -1
  179. package/pure-cell/components/graphics/index.js +1 -1
  180. package/pure-cell/components/main/component.js +2 -2
  181. package/pure-cell/components/main/index.d.ts +1 -1
  182. package/pure-cell/components/main/index.js +2 -2
  183. package/pure-cell/components/text/component.js +2 -2
  184. package/pure-cell/components/text/index.d.ts +1 -1
  185. package/pure-cell/components/text/index.js +2 -2
  186. package/pure-cell/esm/{component-3419a8da.js → component-179b3174.js} +1 -1
  187. package/pure-cell/esm/component.js +2 -2
  188. package/pure-cell/esm/components/addon/component.js +1 -1
  189. package/pure-cell/esm/components/addon/index.js +1 -1
  190. package/pure-cell/esm/components/amount/component.js +1 -1
  191. package/pure-cell/esm/components/amount/index.js +1 -1
  192. package/pure-cell/esm/components/amount-title/component.js +1 -1
  193. package/pure-cell/esm/components/amount-title/index.js +1 -1
  194. package/pure-cell/esm/components/category/component.js +1 -1
  195. package/pure-cell/esm/components/category/index.js +1 -1
  196. package/pure-cell/esm/components/content/component.js +2 -2
  197. package/pure-cell/esm/components/content/index.d.ts +1 -1
  198. package/pure-cell/esm/components/content/index.js +2 -2
  199. package/pure-cell/esm/components/footer/component.js +1 -1
  200. package/pure-cell/esm/components/footer/index.js +1 -1
  201. package/pure-cell/esm/components/footer-button/component.js +1 -1
  202. package/pure-cell/esm/components/footer-button/index.js +1 -1
  203. package/pure-cell/esm/components/footer-text/component.js +1 -1
  204. package/pure-cell/esm/components/footer-text/index.js +1 -1
  205. package/pure-cell/esm/components/graphics/component.js +1 -1
  206. package/pure-cell/esm/components/graphics/index.js +1 -1
  207. package/pure-cell/esm/components/main/component.js +2 -2
  208. package/pure-cell/esm/components/main/index.d.ts +1 -1
  209. package/pure-cell/esm/components/main/index.js +2 -2
  210. package/pure-cell/esm/components/text/component.js +2 -2
  211. package/pure-cell/esm/components/text/index.d.ts +1 -1
  212. package/pure-cell/esm/components/text/index.js +2 -2
  213. package/pure-cell/esm/index.js +2 -2
  214. package/pure-cell/index.js +2 -2
  215. package/pure-cell/modern/{component-1b015707.js → component-0fb13d67.js} +1 -1
  216. package/pure-cell/modern/component.js +2 -2
  217. package/pure-cell/modern/components/addon/component.js +1 -1
  218. package/pure-cell/modern/components/addon/index.js +1 -1
  219. package/pure-cell/modern/components/amount/component.js +1 -1
  220. package/pure-cell/modern/components/amount/index.js +1 -1
  221. package/pure-cell/modern/components/amount-title/component.js +1 -1
  222. package/pure-cell/modern/components/amount-title/index.js +1 -1
  223. package/pure-cell/modern/components/category/component.js +1 -1
  224. package/pure-cell/modern/components/category/index.js +1 -1
  225. package/pure-cell/modern/components/content/component.js +2 -2
  226. package/pure-cell/modern/components/content/index.d.ts +1 -1
  227. package/pure-cell/modern/components/content/index.js +2 -2
  228. package/pure-cell/modern/components/footer/component.js +1 -1
  229. package/pure-cell/modern/components/footer/index.js +1 -1
  230. package/pure-cell/modern/components/footer-button/component.js +1 -1
  231. package/pure-cell/modern/components/footer-button/index.js +1 -1
  232. package/pure-cell/modern/components/footer-text/component.js +1 -1
  233. package/pure-cell/modern/components/footer-text/index.js +1 -1
  234. package/pure-cell/modern/components/graphics/component.js +1 -1
  235. package/pure-cell/modern/components/graphics/index.js +1 -1
  236. package/pure-cell/modern/components/main/component.js +2 -2
  237. package/pure-cell/modern/components/main/index.d.ts +1 -1
  238. package/pure-cell/modern/components/main/index.js +2 -2
  239. package/pure-cell/modern/components/text/component.js +2 -2
  240. package/pure-cell/modern/components/text/index.d.ts +1 -1
  241. package/pure-cell/modern/components/text/index.js +2 -2
  242. package/pure-cell/modern/index.js +2 -2
  243. package/select/{Component-cc818c41.js → Component-d6b903c9.js} +1 -1
  244. package/select/Component.js +1 -1
  245. package/select/Component.responsive.js +3 -3
  246. package/select/components/base-select/Component.js +1 -1
  247. package/select/components/base-select/index.js +1 -1
  248. package/select/components/base-select-mobile/Component.js +1 -1
  249. package/select/components/base-select-mobile/index.js +1 -1
  250. package/select/components/index.js +3 -3
  251. package/select/components/select-mobile/Component.js +3 -3
  252. package/select/components/select-mobile/index.d.ts +1 -1
  253. package/select/components/select-mobile/index.js +3 -3
  254. package/select/components/select-modal-mobile/Component.js +3 -3
  255. package/select/components/select-modal-mobile/index.d.ts +1 -1
  256. package/select/components/select-modal-mobile/index.js +3 -3
  257. package/select/esm/{Component-20d94904.js → Component-c82a2eae.js} +2 -2
  258. package/select/esm/Component.js +1 -1
  259. package/select/esm/Component.responsive.js +3 -3
  260. package/select/esm/components/base-select/Component.js +1 -1
  261. package/select/esm/components/base-select/index.js +1 -1
  262. package/select/esm/components/base-select-mobile/Component.js +1 -1
  263. package/select/esm/components/base-select-mobile/index.js +1 -1
  264. package/select/esm/components/index.js +3 -3
  265. package/select/esm/components/select-mobile/Component.js +3 -3
  266. package/select/esm/components/select-mobile/index.d.ts +1 -1
  267. package/select/esm/components/select-mobile/index.js +3 -3
  268. package/select/esm/components/select-modal-mobile/Component.js +3 -3
  269. package/select/esm/components/select-modal-mobile/index.d.ts +1 -1
  270. package/select/esm/components/select-modal-mobile/index.js +3 -3
  271. package/select/esm/index-3885b0d7.d.ts +1 -1
  272. package/select/esm/index.js +3 -3
  273. package/select/esm/mobile.js +3 -3
  274. package/select/esm/presets/index.js +3 -3
  275. package/select/esm/presets/useLazyLoading/hook.js +1 -1
  276. package/select/esm/presets/useSelectWithApply/hook.js +3 -3
  277. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  278. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  279. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  280. package/select/esm/responsive.js +3 -3
  281. package/select/index-3885b0d7.d.ts +1 -1
  282. package/select/index.js +3 -3
  283. package/select/mobile.js +3 -3
  284. package/select/modern/{Component-0578ce0b.js → Component-ff712db2.js} +2 -2
  285. package/select/modern/Component.js +1 -1
  286. package/select/modern/Component.responsive.js +3 -3
  287. package/select/modern/components/base-select/Component.js +1 -1
  288. package/select/modern/components/base-select/index.js +1 -1
  289. package/select/modern/components/base-select-mobile/Component.js +1 -1
  290. package/select/modern/components/base-select-mobile/index.js +1 -1
  291. package/select/modern/components/index.js +3 -3
  292. package/select/modern/components/select-mobile/Component.js +3 -3
  293. package/select/modern/components/select-mobile/index.d.ts +1 -1
  294. package/select/modern/components/select-mobile/index.js +3 -3
  295. package/select/modern/components/select-modal-mobile/Component.js +3 -3
  296. package/select/modern/components/select-modal-mobile/index.d.ts +1 -1
  297. package/select/modern/components/select-modal-mobile/index.js +3 -3
  298. package/select/modern/index-3885b0d7.d.ts +1 -1
  299. package/select/modern/index.js +3 -3
  300. package/select/modern/mobile.js +3 -3
  301. package/select/modern/presets/index.js +3 -3
  302. package/select/modern/presets/useLazyLoading/hook.js +1 -1
  303. package/select/modern/presets/useSelectWithApply/hook.js +3 -3
  304. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  305. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  306. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  307. package/select/modern/responsive.js +3 -3
  308. package/select/presets/index.js +3 -3
  309. package/select/presets/useLazyLoading/hook.js +1 -1
  310. package/select/presets/useSelectWithApply/hook.js +3 -3
  311. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  312. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  313. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  314. package/select/responsive.js +3 -3
  315. package/system-message/Component.desktop.js +1 -1
  316. package/system-message/Component.mobile.js +1 -1
  317. package/system-message/Components.responsive.js +1 -1
  318. package/system-message/components/caption/Component.js +1 -1
  319. package/system-message/components/caption/index.js +1 -1
  320. package/system-message/components/controls/Component.js +1 -1
  321. package/system-message/components/controls/index.js +1 -1
  322. package/system-message/components/graphic/Component.js +1 -1
  323. package/system-message/components/graphic/index.js +1 -1
  324. package/system-message/components/subtitle/Component.js +1 -1
  325. package/system-message/components/subtitle/index.js +1 -1
  326. package/system-message/components/title/Component.js +1 -1
  327. package/system-message/components/title/index.js +1 -1
  328. package/system-message/desktop.js +1 -1
  329. package/system-message/esm/Component.desktop.js +1 -1
  330. package/system-message/esm/Component.mobile.js +1 -1
  331. package/system-message/esm/Components.responsive.js +1 -1
  332. package/system-message/esm/components/caption/Component.js +1 -1
  333. package/system-message/esm/components/caption/index.js +1 -1
  334. package/system-message/esm/components/controls/Component.js +1 -1
  335. package/system-message/esm/components/controls/index.js +1 -1
  336. package/system-message/esm/components/graphic/Component.js +1 -1
  337. package/system-message/esm/components/graphic/index.js +1 -1
  338. package/system-message/esm/components/subtitle/Component.js +1 -1
  339. package/system-message/esm/components/subtitle/index.js +1 -1
  340. package/system-message/esm/components/title/Component.js +1 -1
  341. package/system-message/esm/components/title/index.js +1 -1
  342. package/system-message/esm/desktop.js +1 -1
  343. package/system-message/esm/index-3885b0d7.d.ts +1 -1
  344. package/system-message/esm/index.js +1 -1
  345. package/system-message/esm/mobile.js +1 -1
  346. package/system-message/esm/responsive.js +1 -1
  347. package/system-message/esm/utils.js +1 -1
  348. package/system-message/index-3885b0d7.d.ts +1 -1
  349. package/system-message/index.js +1 -1
  350. package/system-message/mobile.js +1 -1
  351. package/system-message/modern/Component.desktop.js +1 -1
  352. package/system-message/modern/Component.mobile.js +1 -1
  353. package/system-message/modern/Components.responsive.js +1 -1
  354. package/system-message/modern/components/caption/Component.js +1 -1
  355. package/system-message/modern/components/caption/index.js +1 -1
  356. package/system-message/modern/components/controls/Component.js +1 -1
  357. package/system-message/modern/components/controls/index.js +1 -1
  358. package/system-message/modern/components/graphic/Component.js +1 -1
  359. package/system-message/modern/components/graphic/index.js +1 -1
  360. package/system-message/modern/components/subtitle/Component.js +1 -1
  361. package/system-message/modern/components/subtitle/index.js +1 -1
  362. package/system-message/modern/components/title/Component.js +1 -1
  363. package/system-message/modern/components/title/index.js +1 -1
  364. package/system-message/modern/desktop.js +1 -1
  365. package/system-message/modern/index-3885b0d7.d.ts +1 -1
  366. package/system-message/modern/index.js +1 -1
  367. package/system-message/modern/mobile.js +1 -1
  368. package/system-message/modern/responsive.js +1 -1
  369. package/system-message/modern/utils.js +1 -1
  370. package/system-message/responsive.js +1 -1
  371. package/system-message/utils.js +1 -1
  372. package/tabs/component-3885b0d7.d.ts +8 -7
  373. package/tabs/components/primary-tablist/Component.desktop.js +1 -1
  374. package/tabs/components/primary-tablist/Component.mobile.js +1 -1
  375. package/tabs/components/primary-tablist/Component.responsive.js +1 -1
  376. package/tabs/components/secondary-tablist/Component.desktop.js +1 -1
  377. package/tabs/components/secondary-tablist/Component.mobile.js +1 -1
  378. package/tabs/components/secondary-tablist/Component.responsive.js +1 -1
  379. package/tabs/components/tabs/Component.desktop.js +2 -2
  380. package/tabs/components/tabs/Component.mobile.js +2 -2
  381. package/tabs/components/tabs/Component.responsive.js +2 -2
  382. package/tabs/cssm/component-3885b0d7.d.ts +8 -7
  383. package/tabs/cssm/index-f12ee135.d.ts +2 -2
  384. package/tabs/cssm/{types-eecf6ec5.d.ts → types-0ae5fd84.d.ts} +13 -1
  385. package/tabs/cssm/utils-49cc3c24.d.ts +8 -0
  386. package/tabs/desktop.js +2 -2
  387. package/tabs/esm/component-3885b0d7.d.ts +8 -7
  388. package/tabs/esm/components/primary-tablist/Component.desktop.js +1 -1
  389. package/tabs/esm/components/primary-tablist/Component.mobile.js +1 -1
  390. package/tabs/esm/components/primary-tablist/Component.responsive.js +1 -1
  391. package/tabs/esm/components/secondary-tablist/Component.desktop.js +1 -1
  392. package/tabs/esm/components/secondary-tablist/Component.mobile.js +1 -1
  393. package/tabs/esm/components/secondary-tablist/Component.responsive.js +1 -1
  394. package/tabs/esm/components/tabs/Component.desktop.js +2 -2
  395. package/tabs/esm/components/tabs/Component.mobile.js +2 -2
  396. package/tabs/esm/components/tabs/Component.responsive.js +2 -2
  397. package/tabs/esm/desktop.js +2 -2
  398. package/tabs/esm/index-f12ee135.d.ts +2 -2
  399. package/tabs/esm/index.js +2 -2
  400. package/tabs/esm/mobile.js +2 -2
  401. package/tabs/esm/responsive.js +2 -2
  402. package/tabs/esm/{types-eecf6ec5.d.ts → types-0ae5fd84.d.ts} +13 -1
  403. package/tabs/esm/utils-49cc3c24.d.ts +8 -0
  404. package/tabs/index-f12ee135.d.ts +2 -2
  405. package/tabs/index.js +2 -2
  406. package/tabs/mobile.js +2 -2
  407. package/tabs/modern/component-3885b0d7.d.ts +8 -7
  408. package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
  409. package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
  410. package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
  411. package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
  412. package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
  413. package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
  414. package/tabs/modern/components/tabs/Component.desktop.js +2 -2
  415. package/tabs/modern/components/tabs/Component.mobile.js +2 -2
  416. package/tabs/modern/components/tabs/Component.responsive.js +2 -2
  417. package/tabs/modern/desktop.js +2 -2
  418. package/tabs/modern/index-f12ee135.d.ts +2 -2
  419. package/tabs/modern/index.js +2 -2
  420. package/tabs/modern/mobile.js +2 -2
  421. package/tabs/modern/responsive.js +2 -2
  422. package/tabs/modern/{types-eecf6ec5.d.ts → types-0ae5fd84.d.ts} +13 -1
  423. package/tabs/modern/utils-49cc3c24.d.ts +8 -0
  424. package/tabs/responsive.js +2 -2
  425. package/tabs/{types-eecf6ec5.d.ts → types-0ae5fd84.d.ts} +13 -1
  426. package/tabs/utils-49cc3c24.d.ts +8 -0
  427. package/themes/compiled/mobile-dark-bluetint.css +18 -18
  428. package/themes/dist/compiled/mobile-dark-bluetint.css +197 -197
  429. package/typography/component.js +2 -2
  430. package/typography/esm/component.js +2 -2
  431. package/typography/esm/index.js +2 -2
  432. package/typography/esm/text/component.js +1 -1
  433. package/typography/esm/text/index.js +1 -1
  434. package/typography/esm/title/component.js +1 -1
  435. package/typography/esm/title/index.js +2 -2
  436. package/typography/esm/title-mobile/component.js +2 -2
  437. package/typography/esm/title-mobile/index.js +2 -2
  438. package/typography/esm/title-responsive/component.js +2 -2
  439. package/typography/esm/title-responsive/index.js +2 -2
  440. package/typography/index.js +2 -2
  441. package/typography/modern/component.js +2 -2
  442. package/typography/modern/index.js +2 -2
  443. package/typography/modern/text/component.js +1 -1
  444. package/typography/modern/text/index.js +1 -1
  445. package/typography/modern/title/component.js +1 -1
  446. package/typography/modern/title/index.js +2 -2
  447. package/typography/modern/title-mobile/component.js +2 -2
  448. package/typography/modern/title-mobile/index.js +2 -2
  449. package/typography/modern/title-responsive/component.js +2 -2
  450. package/typography/modern/title-responsive/index.js +2 -2
  451. package/typography/text/component.js +1 -1
  452. package/typography/text/index.js +1 -1
  453. package/typography/title/component.js +1 -1
  454. package/typography/title/index.js +2 -2
  455. package/typography/title-mobile/component.js +2 -2
  456. package/typography/title-mobile/index.js +2 -2
  457. package/typography/title-responsive/component.js +2 -2
  458. package/typography/title-responsive/index.js +2 -2
  459. package/tabs/cssm/utils-b64479aa.d.ts +0 -8
  460. package/tabs/esm/utils-b64479aa.d.ts +0 -8
  461. package/tabs/modern/utils-b64479aa.d.ts +0 -8
  462. package/tabs/utils-b64479aa.d.ts +0 -8
  463. /package/calendar/{Component.responsive-727697c4.d.ts → Component.responsive-ff2bd154.d.ts} +0 -0
  464. /package/calendar/{Component.responsive-727697c4.js → Component.responsive-ff2bd154.js} +0 -0
  465. /package/calendar/esm/{Component.responsive-89d16238.d.ts → Component.responsive-1a81dc52.d.ts} +0 -0
  466. /package/calendar/esm/{Component.responsive-89d16238.js → Component.responsive-1a81dc52.js} +0 -0
  467. /package/calendar/modern/{Component.responsive-e838de34.d.ts → Component.responsive-cf2295d5.d.ts} +0 -0
  468. /package/calendar/modern/{Component.responsive-e838de34.js → Component.responsive-cf2295d5.js} +0 -0
  469. /package/confirmation/{countdown-section-c3c54075.d.ts → countdown-section-0b5d4ee1.d.ts} +0 -0
  470. /package/confirmation/{countdown-section-c3c54075.js → countdown-section-0b5d4ee1.js} +0 -0
  471. /package/confirmation/esm/{countdown-section-45c9eed6.d.ts → countdown-section-696fa4ea.d.ts} +0 -0
  472. /package/confirmation/esm/{countdown-section-45c9eed6.js → countdown-section-696fa4ea.js} +0 -0
  473. /package/confirmation/modern/{countdown-section-3d302d6f.d.ts → countdown-section-6aeca8d7.d.ts} +0 -0
  474. /package/confirmation/modern/{countdown-section-3d302d6f.js → countdown-section-6aeca8d7.js} +0 -0
  475. /package/gallery/{buttons-6e5797dd.d.ts → buttons-c7c4d121.d.ts} +0 -0
  476. /package/gallery/{buttons-6e5797dd.js → buttons-c7c4d121.js} +0 -0
  477. /package/gallery/esm/{buttons-f7700537.d.ts → buttons-3c9abf81.d.ts} +0 -0
  478. /package/gallery/esm/{buttons-f7700537.js → buttons-3c9abf81.js} +0 -0
  479. /package/gallery/esm/{slide-783a6b8c.d.ts → slide-a1b2a476.d.ts} +0 -0
  480. /package/gallery/esm/{slide-783a6b8c.js → slide-a1b2a476.js} +0 -0
  481. /package/gallery/modern/{buttons-293f8d3e.d.ts → buttons-49ef9b8e.d.ts} +0 -0
  482. /package/gallery/modern/{buttons-293f8d3e.js → buttons-49ef9b8e.js} +0 -0
  483. /package/gallery/modern/{slide-61b5f090.d.ts → slide-76021082.d.ts} +0 -0
  484. /package/gallery/modern/{slide-61b5f090.js → slide-76021082.js} +0 -0
  485. /package/gallery/{slide-260da79f.d.ts → slide-477f55aa.d.ts} +0 -0
  486. /package/gallery/{slide-260da79f.js → slide-477f55aa.js} +0 -0
  487. /package/pure-cell/{component-50fc8a83.d.ts → component-8a063b41.d.ts} +0 -0
  488. /package/pure-cell/esm/{component-3419a8da.d.ts → component-179b3174.d.ts} +0 -0
  489. /package/pure-cell/esm/{getDataTestId-824da103.d.ts → getDataTestId-953919b9.d.ts} +0 -0
  490. /package/pure-cell/esm/{getDataTestId-824da103.js → getDataTestId-953919b9.js} +0 -0
  491. /package/pure-cell/{getDataTestId-62b0ebe2.d.ts → getDataTestId-036a5e6a.d.ts} +0 -0
  492. /package/pure-cell/{getDataTestId-62b0ebe2.js → getDataTestId-036a5e6a.js} +0 -0
  493. /package/pure-cell/modern/{component-1b015707.d.ts → component-0fb13d67.d.ts} +0 -0
  494. /package/pure-cell/modern/{getDataTestId-eba05869.d.ts → getDataTestId-8649a8c6.d.ts} +0 -0
  495. /package/pure-cell/modern/{getDataTestId-eba05869.js → getDataTestId-8649a8c6.js} +0 -0
  496. /package/select/{Component-cc818c41.d.ts → Component-d6b903c9.d.ts} +0 -0
  497. /package/select/esm/{Component-20d94904.d.ts → Component-c82a2eae.d.ts} +0 -0
  498. /package/select/esm/{getDataTestId-ee315b1a.d.ts → getDataTestId-a02ac433.d.ts} +0 -0
  499. /package/select/esm/{getDataTestId-ee315b1a.js → getDataTestId-a02ac433.js} +0 -0
  500. /package/select/esm/{intersection-observer-ab4a020d.d.ts → intersection-observer-001290bb.d.ts} +0 -0
  501. /package/select/esm/{intersection-observer-ab4a020d.js → intersection-observer-001290bb.js} +0 -0
  502. /package/select/{getDataTestId-1b233814.d.ts → getDataTestId-e0ce79d0.d.ts} +0 -0
  503. /package/select/{getDataTestId-1b233814.js → getDataTestId-e0ce79d0.js} +0 -0
  504. /package/select/{intersection-observer-ada1e06d.d.ts → intersection-observer-79462acf.d.ts} +0 -0
  505. /package/select/{intersection-observer-ada1e06d.js → intersection-observer-79462acf.js} +0 -0
  506. /package/select/modern/{Component-0578ce0b.d.ts → Component-ff712db2.d.ts} +0 -0
  507. /package/select/modern/{getDataTestId-cf7389c1.d.ts → getDataTestId-6d46e4ef.d.ts} +0 -0
  508. /package/select/modern/{getDataTestId-cf7389c1.js → getDataTestId-6d46e4ef.js} +0 -0
  509. /package/select/modern/{intersection-observer-ab4a020d.d.ts → intersection-observer-001290bb.d.ts} +0 -0
  510. /package/select/modern/{intersection-observer-ab4a020d.js → intersection-observer-001290bb.js} +0 -0
  511. /package/system-message/esm/{getDataTestId-298f6f5c.d.ts → getDataTestId-566e5eb6.d.ts} +0 -0
  512. /package/system-message/esm/{getDataTestId-298f6f5c.js → getDataTestId-566e5eb6.js} +0 -0
  513. /package/system-message/{getDataTestId-d74bc177.d.ts → getDataTestId-3ad16864.d.ts} +0 -0
  514. /package/system-message/{getDataTestId-d74bc177.js → getDataTestId-3ad16864.js} +0 -0
  515. /package/system-message/modern/{getDataTestId-a13b39d6.d.ts → getDataTestId-76ec1e76.d.ts} +0 -0
  516. /package/system-message/modern/{getDataTestId-a13b39d6.js → getDataTestId-76ec1e76.js} +0 -0
  517. /package/tabs/esm/{index.module-63f70a84.js → index.module-36c6ca63.js} +0 -0
  518. /package/tabs/esm/{index.module-66bb3b43.js → index.module-4b2bc93c.js} +0 -0
  519. /package/tabs/{index.module-96682063.js → index.module-628b8971.js} +0 -0
  520. /package/tabs/{index.module-df9fbf26.js → index.module-f38cc40e.js} +0 -0
  521. /package/tabs/modern/{index.module-45cd1375.js → index.module-3f3165db.js} +0 -0
  522. /package/tabs/modern/{index.module-e38827a4.js → index.module-f35ded9e.js} +0 -0
  523. /package/typography/{colors.module-806ca161.js → colors.module-eb482bb6.js} +0 -0
  524. /package/typography/{common.module-97b12db3.js → common.module-a2f1ba21.js} +0 -0
  525. /package/typography/esm/{colors.module-bcde0d90.js → colors.module-8f4f2cfa.js} +0 -0
  526. /package/typography/esm/{common.module-d4263fdf.js → common.module-acf4ce4d.js} +0 -0
  527. /package/typography/modern/{colors.module-354bcf8c.js → colors.module-f64b3c7e.js} +0 -0
  528. /package/typography/modern/{common.module-beba3656.js → common.module-6bdfb86a.js} +0 -0
@@ -25,28 +25,31 @@ var getDataTestId = function (dataTestId, element) {
25
25
  return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
26
26
  };
27
27
 
28
- var styles = {"modal":"bottom-sheet__modal_epvla","wrapper":"bottom-sheet__wrapper_epvla","component":"bottom-sheet__component_epvla","withTransition":"bottom-sheet__withTransition_epvla","scrollableContainer":"bottom-sheet__scrollableContainer_epvla","marker":"bottom-sheet__marker_epvla","content":"bottom-sheet__content_epvla","noHeader":"bottom-sheet__noHeader_epvla","noFooter":"bottom-sheet__noFooter_epvla","scrollLocked":"bottom-sheet__scrollLocked_epvla","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_epvla","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_epvla","appear":"bottom-sheet__appear_epvla","enter":"bottom-sheet__enter_epvla","appearActive":"bottom-sheet__appearActive_epvla","enterActive":"bottom-sheet__enterActive_epvla","enterDone":"bottom-sheet__enterDone_epvla","appearDone":"bottom-sheet__appearDone_epvla","exit":"bottom-sheet__exit_epvla","exitActive":"bottom-sheet__exitActive_epvla","background-accent":"bottom-sheet__background-accent_epvla","background-info":"bottom-sheet__background-info_epvla","background-attention-muted":"bottom-sheet__background-attention-muted_epvla","background-positive-muted":"bottom-sheet__background-positive-muted_epvla","background-negative-muted":"bottom-sheet__background-negative-muted_epvla","background-primary":"bottom-sheet__background-primary_epvla","background-primary-inverted":"bottom-sheet__background-primary-inverted_epvla","background-secondary":"bottom-sheet__background-secondary_epvla","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_epvla","background-tertiary":"bottom-sheet__background-tertiary_epvla","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_epvla","background-quaternary":"bottom-sheet__background-quaternary_epvla","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_epvla","background-specialbg-component":"bottom-sheet__background-specialbg-component_epvla","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_epvla","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_epvla","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_epvla","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_epvla","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_epvla","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_epvla","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_epvla","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_epvla"};
28
+ var styles = {"modal":"bottom-sheet__modal_epvla","wrapper":"bottom-sheet__wrapper_epvla","fullscreen":"bottom-sheet__fullscreen_epvla","component":"bottom-sheet__component_epvla","withTransition":"bottom-sheet__withTransition_epvla","scrollableContainer":"bottom-sheet__scrollableContainer_epvla","marker":"bottom-sheet__marker_epvla","content":"bottom-sheet__content_epvla","noHeader":"bottom-sheet__noHeader_epvla","noFooter":"bottom-sheet__noFooter_epvla","scrollLocked":"bottom-sheet__scrollLocked_epvla","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_epvla","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_epvla","appear":"bottom-sheet__appear_epvla","enter":"bottom-sheet__enter_epvla","appearActive":"bottom-sheet__appearActive_epvla","enterActive":"bottom-sheet__enterActive_epvla","enterDone":"bottom-sheet__enterDone_epvla","appearDone":"bottom-sheet__appearDone_epvla","exit":"bottom-sheet__exit_epvla","exitActive":"bottom-sheet__exitActive_epvla","background-accent":"bottom-sheet__background-accent_epvla","background-info":"bottom-sheet__background-info_epvla","background-attention-muted":"bottom-sheet__background-attention-muted_epvla","background-positive-muted":"bottom-sheet__background-positive-muted_epvla","background-negative-muted":"bottom-sheet__background-negative-muted_epvla","background-primary":"bottom-sheet__background-primary_epvla","background-primary-inverted":"bottom-sheet__background-primary-inverted_epvla","background-secondary":"bottom-sheet__background-secondary_epvla","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_epvla","background-tertiary":"bottom-sheet__background-tertiary_epvla","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_epvla","background-quaternary":"bottom-sheet__background-quaternary_epvla","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_epvla","background-specialbg-component":"bottom-sheet__background-specialbg-component_epvla","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_epvla","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_epvla","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_epvla","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_epvla","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_epvla","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_epvla","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_epvla","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_epvla"};
29
29
  require('./index.css');
30
30
 
31
31
  var BottomSheet = React.forwardRef(function (_a, ref) {
32
- var _b, _c, _d, _e;
33
- var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f, 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, _g = _a.titleAlign, titleAlign = _g === void 0 ? 'left' : _g, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _h = _a.stickyFooter, stickyFooter = _h === void 0 ? true : _h, _j = _a.initialHeight, initialHeight = _j === void 0 ? 'default' : _j, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _k = _a.transitionProps, transitionProps = _k === void 0 ? {} : _k, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _l = _a.swipeable, swipeable = _l === void 0 ? true : _l, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _m = _a.scrollableContainerRef, scrollableContainerRef = _m === void 0 ? function () { return null; } : _m, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _o = _a.sheetContainerRef, sheetContainerRef = _o === void 0 ? function () { return null; } : _o, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onOffsetChange = _a.onOffsetChange;
32
+ var _b, _c, _d, _e, _f;
33
+ var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, 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, _h = _a.titleAlign, titleAlign = _h === void 0 ? 'left' : _h, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _j = _a.stickyFooter, stickyFooter = _j === void 0 ? true : _j, _k = _a.initialHeight, initialHeight = _k === void 0 ? 'default' : _k, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _l = _a.transitionProps, transitionProps = _l === void 0 ? {} : _l, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _m = _a.swipeable, swipeable = _m === void 0 ? true : _m, _o = _a.swipeableContent, swipeableContent = _o === void 0 ? true : _o, _p = _a.swipeThreshold, swipeThreshold = _p === void 0 ? 5 : _p, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _q = _a.scrollableContainerRef, scrollableContainerRef = _q === void 0 ? function () { return null; } : _q, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _r = _a.sheetContainerRef, sheetContainerRef = _r === void 0 ? function () { return null; } : _r, _s = _a.headerOffset, headerOffset = _s === void 0 ? 24 : _s, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onOffsetChange = _a.onOffsetChange;
34
34
  var hasInitialIdx = initialActiveAreaIndex !== undefined;
35
35
  var fullHeight = reactDiv100vh.use100vh() || 0;
36
36
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
37
37
  var isFirstRender = fullHeight === 0;
38
38
  var magneticAreas = React.useMemo(function () {
39
39
  if (magneticAreasProp) {
40
- return magneticAreasProp.map(function (area) { return utils.convertPercentToNumber(area, fullHeight); });
40
+ return magneticAreasProp.map(function (area) {
41
+ return utils.convertPercentToNumber(area, fullHeight, headerOffset);
42
+ });
41
43
  }
42
- return [0, fullHeight - utils.HEADER_OFFSET];
43
- }, [fullHeight, magneticAreasProp]);
44
+ return [0, fullHeight - headerOffset];
45
+ }, [fullHeight, headerOffset, magneticAreasProp]);
44
46
  var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
45
- var _p = React.useState(0), sheetOffset = _p[0], setSheetOffset = _p[1];
46
- var _q = React.useState(1), backdropOpacity = _q[0], setBackdropOpacity = _q[1];
47
- var _r = React.useState(0), activeArea = _r[0], setActiveArea = _r[1];
47
+ var _t = React.useState(0), sheetOffset = _t[0], setSheetOffset = _t[1];
48
+ var _u = React.useState(1), backdropOpacity = _u[0], setBackdropOpacity = _u[1];
49
+ var _v = React.useState(0), activeArea = _v[0], setActiveArea = _v[1];
48
50
  var swipingInProgress = React.useRef(null);
49
51
  var headerRef = React.useRef(null);
52
+ var contentRef = React.useRef(null);
50
53
  var sheetHeight = React.useRef(0);
51
54
  var sheetRef = React.useRef(null);
52
55
  var scrollableContainer = React.useRef(null);
@@ -54,7 +57,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
54
57
  var titleIsReactElement = React__default.default.isValidElement(title);
55
58
  var headerProps = tslib.__assign(tslib.__assign({}, (titleIsReactElement
56
59
  ? { children: title }
57
- : { title: title ? title === null || title === void 0 ? void 0 : title.toString() : undefined })), { scrollableParentRef: scrollableContainer, headerRef: headerRef, className: headerClassName, addonClassName: addonClassName, closerClassName: closerClassName, backButtonClassName: backerClassName, leftAddons: leftAddons, rightAddons: rightAddons, bottomAddons: bottomAddons, hasCloser: hasCloser, hasBackButton: hasBacker, align: titleAlign, trim: trimTitle, sticky: stickyHeader, dataTestId: getDataTestId(dataTestId, 'header'), onBack: onBack, titleSize: titleSize, subtitle: subtitle, onClose: onClose });
60
+ : { title: title ? title === null || title === void 0 ? void 0 : title.toString() : undefined })), { scrollableParentRef: scrollableContainer, headerRef: headerRef, headerOffset: headerOffset, className: headerClassName, addonClassName: addonClassName, closerClassName: closerClassName, backButtonClassName: backerClassName, leftAddons: leftAddons, rightAddons: rightAddons, bottomAddons: bottomAddons, hasCloser: hasCloser, hasBackButton: hasBacker, align: titleAlign, trim: trimTitle, sticky: stickyHeader, dataTestId: getDataTestId(dataTestId, 'header'), onBack: onBack, titleSize: titleSize, subtitle: subtitle, onClose: onClose });
58
61
  var getBackdropOpacity = function (offset) {
59
62
  var canClose = magneticAreas[0] === 0;
60
63
  var secondArea = magneticAreas[1];
@@ -150,9 +153,13 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
150
153
  * Если контент внутри шторки скроллится - то шторка не должна свайпаться
151
154
  * Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
152
155
  */
153
- var shouldSkipSwiping = function (dir, startY) {
156
+ var shouldSkipSwiping = function (dir, startY, event) {
157
+ var _a;
154
158
  if (!swipeable)
155
159
  return true;
160
+ if (!swipeableContent && ((_a = contentRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {
161
+ return true;
162
+ }
156
163
  if (scrollLockedProp || swipingInProgress.current)
157
164
  return false;
158
165
  var scrollableNode = scrollableContainer.current;
@@ -173,15 +180,15 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
173
180
  utils.SCROLL_OFFSET;
174
181
  };
175
182
  var handleSheetSwipe = function (_a) {
176
- var dir = _a.dir, initial = _a.initial, velocity = _a.velocity, deltaY = _a.deltaY;
177
- if (shouldSkipSwiping(dir, initial[1])) {
183
+ var dir = _a.dir, initial = _a.initial, velocity = _a.velocity, deltaY = _a.deltaY, event = _a.event;
184
+ if (shouldSkipSwiping(dir, initial[1], event)) {
178
185
  return;
179
186
  }
180
187
  magnetize(dir, velocity, deltaY);
181
188
  };
182
189
  var handleSheetSwipeStart = function (_a) {
183
- var dir = _a.dir, initial = _a.initial;
184
- if (shouldSkipSwiping(dir, initial[1])) {
190
+ var dir = _a.dir, initial = _a.initial, event = _a.event;
191
+ if (shouldSkipSwiping(dir, initial[1], event)) {
185
192
  return;
186
193
  }
187
194
  swipingInProgress.current = true;
@@ -190,8 +197,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
190
197
  swipingInProgress.current = false;
191
198
  };
192
199
  var handleSheetSwiping = function (_a) {
193
- var initial = _a.initial, deltaY = _a.deltaY, dir = _a.dir;
194
- if (shouldSkipSwiping(dir, initial[1])) {
200
+ var initial = _a.initial, deltaY = _a.deltaY, dir = _a.dir, event = _a.event;
201
+ if (shouldSkipSwiping(dir, initial[1], event)) {
195
202
  return;
196
203
  }
197
204
  var offset = getSheetOffset(deltaY);
@@ -206,7 +213,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
206
213
  onSwipedUp: handleSheetSwipe,
207
214
  onSwiped: handleSheetSwiped,
208
215
  trackMouse: swipeable,
209
- delta: 5,
216
+ delta: swipeThreshold,
210
217
  });
211
218
  var handleExited = function (node) {
212
219
  var idx = initialActiveAreaIndex;
@@ -241,11 +248,11 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
241
248
  React.useEffect(function () {
242
249
  if (!sheetRef.current)
243
250
  return;
244
- var maxOffset = fullHeight - utils.HEADER_OFFSET;
251
+ var maxOffset = fullHeight - headerOffset;
245
252
  var offset = open ? sheetOffset : maxOffset;
246
253
  var percent = (offset / maxOffset) * 100;
247
254
  onOffsetChange === null || onOffsetChange === void 0 ? void 0 : onOffsetChange(offset, percent);
248
- }, [fullHeight, onOffsetChange, open, sheetOffset]);
255
+ }, [fullHeight, headerOffset, onOffsetChange, open, sheetOffset]);
249
256
  React.useImperativeHandle(bottomSheetInstanceRef, function () { return ({
250
257
  scrollToArea: scrollToArea,
251
258
  }); });
@@ -260,20 +267,22 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
260
267
  return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib.__assign(tslib.__assign({}, backdropProps), { className: styles.disabledPointerEvents, opacity: backdropOpacity, opacityTimeout: utils.TIMEOUT, invisible: hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default.default(styles.modal, modalClassName), wrapperClassName: cn__default.default(modalWrapperClassName, (_b = {},
261
268
  _b[styles.disabledPointerEvents] = hideOverlay,
262
269
  _b)), disableBlockingScroll: disableBlockingScroll, disableFocusLock: disableFocusLock, transitionProps: tslib.__assign(tslib.__assign({ appear: true, timeout: utils.TIMEOUT, classNames: styles }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
263
- React__default.default.createElement("div", { style: tslib.__assign({}, getHeightStyles()), className: styles.wrapper, onTransitionEnd: setSheetHeight },
264
- React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles.component, bgClassName, className, (_c = {},
265
- _c[styles.withTransition] = swipingInProgress.current === false,
266
- _c)), style: tslib.__assign(tslib.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeableHandlers, { ref: mergeRefs__default.default([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref]), onTransitionEnd: setSheetHeight }),
267
- React__default.default.createElement("div", tslib.__assign({}, containerProps, { className: cn__default.default(styles.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_d = {},
268
- _d[styles.scrollLocked] = scrollLockedProp || swipingInProgress.current,
269
- _d[styles.hiddenScrollbar] = hideScrollbar,
270
- _d)), ref: mergeRefs__default.default([scrollableContainer, scrollableContainerRef]) }),
270
+ React__default.default.createElement("div", { style: tslib.__assign({}, getHeightStyles()), className: cn__default.default(styles.wrapper, (_c = {},
271
+ _c[styles.fullscreen] = headerOffset === 0 && sheetOffset === 0,
272
+ _c)), onTransitionEnd: setSheetHeight },
273
+ React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles.component, bgClassName, className, (_d = {},
274
+ _d[styles.withTransition] = swipingInProgress.current === false,
275
+ _d)), style: tslib.__assign(tslib.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeableHandlers, { ref: mergeRefs__default.default([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref]), onTransitionEnd: setSheetHeight }),
276
+ React__default.default.createElement("div", tslib.__assign({}, containerProps, { className: cn__default.default(styles.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_e = {},
277
+ _e[styles.scrollLocked] = scrollLockedProp || swipingInProgress.current,
278
+ _e[styles.hiddenScrollbar] = hideScrollbar,
279
+ _e)), ref: mergeRefs__default.default([scrollableContainer, scrollableContainerRef]) }),
271
280
  swipeable && React__default.default.createElement("div", { className: cn__default.default(styles.marker) }),
272
281
  !hideHeader && !emptyHeader && React__default.default.createElement(components_header_Component.Header, tslib.__assign({}, headerProps)),
273
- React__default.default.createElement("div", { className: cn__default.default(styles.content, contentClassName, (_e = {},
274
- _e[styles.noHeader] = hideHeader || emptyHeader,
275
- _e[styles.noFooter] = !actionButton,
276
- _e)) }, children),
282
+ React__default.default.createElement("div", { ref: contentRef, className: cn__default.default(styles.content, contentClassName, (_f = {},
283
+ _f[styles.noHeader] = hideHeader || emptyHeader,
284
+ _f[styles.noFooter] = !actionButton,
285
+ _f)) }, children),
277
286
  actionButton && (React__default.default.createElement(components_footer_Component.Footer, { sticky: stickyFooter, className: cn__default.default(bgClassName, footerClassName) }, actionButton)))))));
278
287
  });
279
288
 
@@ -2,6 +2,7 @@ import { FC, RefObject } from 'react';
2
2
  import { NavigationBarProps } from "../../../navigation-bar";
3
3
  type HeaderProps = Omit<NavigationBarProps, 'view' | 'size'> & {
4
4
  headerRef: RefObject<HTMLDivElement>;
5
+ headerOffset: number;
5
6
  };
6
7
  declare const Header: FC<HeaderProps>;
7
8
  export { HeaderProps, Header };
@@ -5,7 +5,6 @@ var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var coreComponentsBaseModal = require('../../../base-modal');
7
7
  var coreComponentsNavigationBar = require('../../../navigation-bar');
8
- var utils = require('../../utils.js');
9
8
 
10
9
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
10
 
@@ -17,11 +16,11 @@ require('./index.css');
17
16
 
18
17
  var Header = function (_a) {
19
18
  var _b;
20
- var className = _a.className, sticky = _a.sticky, headerRef = _a.headerRef, title = _a.title, children = _a.children, restProps = tslib.__rest(_a, ["className", "sticky", "headerRef", "title", "children"]);
19
+ var className = _a.className, sticky = _a.sticky, headerRef = _a.headerRef, headerOffset = _a.headerOffset, title = _a.title, children = _a.children, restProps = tslib.__rest(_a, ["className", "sticky", "headerRef", "headerOffset", "title", "children"]);
21
20
  var _c = React.useContext(coreComponentsBaseModal.BaseModalContext), setHeaderOffset = _c.setHeaderOffset, setHasHeader = _c.setHasHeader, headerHighlighted = _c.headerHighlighted, onClose = _c.onClose;
22
21
  React.useEffect(function () {
23
- setHeaderOffset(utils.HEADER_OFFSET);
24
- }, [setHeaderOffset]);
22
+ setHeaderOffset(headerOffset);
23
+ }, [headerOffset, setHeaderOffset]);
25
24
  React.useEffect(function () {
26
25
  setHasHeader(true);
27
26
  }, [setHasHeader]);
@@ -30,24 +30,27 @@ var getDataTestId = function (dataTestId, element) {
30
30
  };
31
31
 
32
32
  var BottomSheet = React.forwardRef(function (_a, ref) {
33
- var _b, _c, _d, _e;
34
- var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f, 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, _g = _a.titleAlign, titleAlign = _g === void 0 ? 'left' : _g, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _h = _a.stickyFooter, stickyFooter = _h === void 0 ? true : _h, _j = _a.initialHeight, initialHeight = _j === void 0 ? 'default' : _j, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _k = _a.transitionProps, transitionProps = _k === void 0 ? {} : _k, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _l = _a.swipeable, swipeable = _l === void 0 ? true : _l, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _m = _a.scrollableContainerRef, scrollableContainerRef = _m === void 0 ? function () { return null; } : _m, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _o = _a.sheetContainerRef, sheetContainerRef = _o === void 0 ? function () { return null; } : _o, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onOffsetChange = _a.onOffsetChange;
33
+ var _b, _c, _d, _e, _f;
34
+ var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, 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, _h = _a.titleAlign, titleAlign = _h === void 0 ? 'left' : _h, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _j = _a.stickyFooter, stickyFooter = _j === void 0 ? true : _j, _k = _a.initialHeight, initialHeight = _k === void 0 ? 'default' : _k, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _l = _a.transitionProps, transitionProps = _l === void 0 ? {} : _l, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _m = _a.swipeable, swipeable = _m === void 0 ? true : _m, _o = _a.swipeableContent, swipeableContent = _o === void 0 ? true : _o, _p = _a.swipeThreshold, swipeThreshold = _p === void 0 ? 5 : _p, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _q = _a.scrollableContainerRef, scrollableContainerRef = _q === void 0 ? function () { return null; } : _q, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _r = _a.sheetContainerRef, sheetContainerRef = _r === void 0 ? function () { return null; } : _r, _s = _a.headerOffset, headerOffset = _s === void 0 ? 24 : _s, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, onOffsetChange = _a.onOffsetChange;
35
35
  var hasInitialIdx = initialActiveAreaIndex !== undefined;
36
36
  var fullHeight = reactDiv100vh.use100vh() || 0;
37
37
  // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
38
38
  var isFirstRender = fullHeight === 0;
39
39
  var magneticAreas = React.useMemo(function () {
40
40
  if (magneticAreasProp) {
41
- return magneticAreasProp.map(function (area) { return utils.convertPercentToNumber(area, fullHeight); });
41
+ return magneticAreasProp.map(function (area) {
42
+ return utils.convertPercentToNumber(area, fullHeight, headerOffset);
43
+ });
42
44
  }
43
- return [0, fullHeight - utils.HEADER_OFFSET];
44
- }, [fullHeight, magneticAreasProp]);
45
+ return [0, fullHeight - headerOffset];
46
+ }, [fullHeight, headerOffset, magneticAreasProp]);
45
47
  var lastMagneticArea = magneticAreas[magneticAreas.length - 1];
46
- var _p = React.useState(0), sheetOffset = _p[0], setSheetOffset = _p[1];
47
- var _q = React.useState(1), backdropOpacity = _q[0], setBackdropOpacity = _q[1];
48
- var _r = React.useState(0), activeArea = _r[0], setActiveArea = _r[1];
48
+ var _t = React.useState(0), sheetOffset = _t[0], setSheetOffset = _t[1];
49
+ var _u = React.useState(1), backdropOpacity = _u[0], setBackdropOpacity = _u[1];
50
+ var _v = React.useState(0), activeArea = _v[0], setActiveArea = _v[1];
49
51
  var swipingInProgress = React.useRef(null);
50
52
  var headerRef = React.useRef(null);
53
+ var contentRef = React.useRef(null);
51
54
  var sheetHeight = React.useRef(0);
52
55
  var sheetRef = React.useRef(null);
53
56
  var scrollableContainer = React.useRef(null);
@@ -55,7 +58,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
55
58
  var titleIsReactElement = React__default.default.isValidElement(title);
56
59
  var headerProps = tslib.__assign(tslib.__assign({}, (titleIsReactElement
57
60
  ? { children: title }
58
- : { title: title ? title === null || title === void 0 ? void 0 : title.toString() : undefined })), { scrollableParentRef: scrollableContainer, headerRef: headerRef, className: headerClassName, addonClassName: addonClassName, closerClassName: closerClassName, backButtonClassName: backerClassName, leftAddons: leftAddons, rightAddons: rightAddons, bottomAddons: bottomAddons, hasCloser: hasCloser, hasBackButton: hasBacker, align: titleAlign, trim: trimTitle, sticky: stickyHeader, dataTestId: getDataTestId(dataTestId, 'header'), onBack: onBack, titleSize: titleSize, subtitle: subtitle, onClose: onClose });
61
+ : { title: title ? title === null || title === void 0 ? void 0 : title.toString() : undefined })), { scrollableParentRef: scrollableContainer, headerRef: headerRef, headerOffset: headerOffset, className: headerClassName, addonClassName: addonClassName, closerClassName: closerClassName, backButtonClassName: backerClassName, leftAddons: leftAddons, rightAddons: rightAddons, bottomAddons: bottomAddons, hasCloser: hasCloser, hasBackButton: hasBacker, align: titleAlign, trim: trimTitle, sticky: stickyHeader, dataTestId: getDataTestId(dataTestId, 'header'), onBack: onBack, titleSize: titleSize, subtitle: subtitle, onClose: onClose });
59
62
  var getBackdropOpacity = function (offset) {
60
63
  var canClose = magneticAreas[0] === 0;
61
64
  var secondArea = magneticAreas[1];
@@ -151,9 +154,13 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
151
154
  * Если контент внутри шторки скроллится - то шторка не должна свайпаться
152
155
  * Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
153
156
  */
154
- var shouldSkipSwiping = function (dir, startY) {
157
+ var shouldSkipSwiping = function (dir, startY, event) {
158
+ var _a;
155
159
  if (!swipeable)
156
160
  return true;
161
+ if (!swipeableContent && ((_a = contentRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {
162
+ return true;
163
+ }
157
164
  if (scrollLockedProp || swipingInProgress.current)
158
165
  return false;
159
166
  var scrollableNode = scrollableContainer.current;
@@ -174,15 +181,15 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
174
181
  utils.SCROLL_OFFSET;
175
182
  };
176
183
  var handleSheetSwipe = function (_a) {
177
- var dir = _a.dir, initial = _a.initial, velocity = _a.velocity, deltaY = _a.deltaY;
178
- if (shouldSkipSwiping(dir, initial[1])) {
184
+ var dir = _a.dir, initial = _a.initial, velocity = _a.velocity, deltaY = _a.deltaY, event = _a.event;
185
+ if (shouldSkipSwiping(dir, initial[1], event)) {
179
186
  return;
180
187
  }
181
188
  magnetize(dir, velocity, deltaY);
182
189
  };
183
190
  var handleSheetSwipeStart = function (_a) {
184
- var dir = _a.dir, initial = _a.initial;
185
- if (shouldSkipSwiping(dir, initial[1])) {
191
+ var dir = _a.dir, initial = _a.initial, event = _a.event;
192
+ if (shouldSkipSwiping(dir, initial[1], event)) {
186
193
  return;
187
194
  }
188
195
  swipingInProgress.current = true;
@@ -191,8 +198,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
191
198
  swipingInProgress.current = false;
192
199
  };
193
200
  var handleSheetSwiping = function (_a) {
194
- var initial = _a.initial, deltaY = _a.deltaY, dir = _a.dir;
195
- if (shouldSkipSwiping(dir, initial[1])) {
201
+ var initial = _a.initial, deltaY = _a.deltaY, dir = _a.dir, event = _a.event;
202
+ if (shouldSkipSwiping(dir, initial[1], event)) {
196
203
  return;
197
204
  }
198
205
  var offset = getSheetOffset(deltaY);
@@ -207,7 +214,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
207
214
  onSwipedUp: handleSheetSwipe,
208
215
  onSwiped: handleSheetSwiped,
209
216
  trackMouse: swipeable,
210
- delta: 5,
217
+ delta: swipeThreshold,
211
218
  });
212
219
  var handleExited = function (node) {
213
220
  var idx = initialActiveAreaIndex;
@@ -242,11 +249,11 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
242
249
  React.useEffect(function () {
243
250
  if (!sheetRef.current)
244
251
  return;
245
- var maxOffset = fullHeight - utils.HEADER_OFFSET;
252
+ var maxOffset = fullHeight - headerOffset;
246
253
  var offset = open ? sheetOffset : maxOffset;
247
254
  var percent = (offset / maxOffset) * 100;
248
255
  onOffsetChange === null || onOffsetChange === void 0 ? void 0 : onOffsetChange(offset, percent);
249
- }, [fullHeight, onOffsetChange, open, sheetOffset]);
256
+ }, [fullHeight, headerOffset, onOffsetChange, open, sheetOffset]);
250
257
  React.useImperativeHandle(bottomSheetInstanceRef, function () { return ({
251
258
  scrollToArea: scrollToArea,
252
259
  }); });
@@ -261,20 +268,22 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
261
268
  return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib.__assign(tslib.__assign({}, backdropProps), { className: styles__default.default.disabledPointerEvents, opacity: backdropOpacity, opacityTimeout: utils.TIMEOUT, invisible: hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default.default(styles__default.default.modal, modalClassName), wrapperClassName: cn__default.default(modalWrapperClassName, (_b = {},
262
269
  _b[styles__default.default.disabledPointerEvents] = hideOverlay,
263
270
  _b)), disableBlockingScroll: disableBlockingScroll, disableFocusLock: disableFocusLock, transitionProps: tslib.__assign(tslib.__assign({ appear: true, timeout: utils.TIMEOUT, classNames: styles__default.default }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
264
- React__default.default.createElement("div", { style: tslib.__assign({}, getHeightStyles()), className: styles__default.default.wrapper, onTransitionEnd: setSheetHeight },
265
- React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles__default.default.component, bgClassName, className, (_c = {},
266
- _c[styles__default.default.withTransition] = swipingInProgress.current === false,
267
- _c)), style: tslib.__assign(tslib.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeableHandlers, { ref: mergeRefs__default.default([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref]), onTransitionEnd: setSheetHeight }),
268
- React__default.default.createElement("div", tslib.__assign({}, containerProps, { className: cn__default.default(styles__default.default.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_d = {},
269
- _d[styles__default.default.scrollLocked] = scrollLockedProp || swipingInProgress.current,
270
- _d[styles__default.default.hiddenScrollbar] = hideScrollbar,
271
- _d)), ref: mergeRefs__default.default([scrollableContainer, scrollableContainerRef]) }),
271
+ React__default.default.createElement("div", { style: tslib.__assign({}, getHeightStyles()), className: cn__default.default(styles__default.default.wrapper, (_c = {},
272
+ _c[styles__default.default.fullscreen] = headerOffset === 0 && sheetOffset === 0,
273
+ _c)), onTransitionEnd: setSheetHeight },
274
+ React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles__default.default.component, bgClassName, className, (_d = {},
275
+ _d[styles__default.default.withTransition] = swipingInProgress.current === false,
276
+ _d)), style: tslib.__assign(tslib.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeableHandlers, { ref: mergeRefs__default.default([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref]), onTransitionEnd: setSheetHeight }),
277
+ React__default.default.createElement("div", tslib.__assign({}, containerProps, { className: cn__default.default(styles__default.default.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_e = {},
278
+ _e[styles__default.default.scrollLocked] = scrollLockedProp || swipingInProgress.current,
279
+ _e[styles__default.default.hiddenScrollbar] = hideScrollbar,
280
+ _e)), ref: mergeRefs__default.default([scrollableContainer, scrollableContainerRef]) }),
272
281
  swipeable && React__default.default.createElement("div", { className: cn__default.default(styles__default.default.marker) }),
273
282
  !hideHeader && !emptyHeader && React__default.default.createElement(components_header_Component.Header, tslib.__assign({}, headerProps)),
274
- React__default.default.createElement("div", { className: cn__default.default(styles__default.default.content, contentClassName, (_e = {},
275
- _e[styles__default.default.noHeader] = hideHeader || emptyHeader,
276
- _e[styles__default.default.noFooter] = !actionButton,
277
- _e)) }, children),
283
+ React__default.default.createElement("div", { ref: contentRef, className: cn__default.default(styles__default.default.content, contentClassName, (_f = {},
284
+ _f[styles__default.default.noHeader] = hideHeader || emptyHeader,
285
+ _f[styles__default.default.noFooter] = !actionButton,
286
+ _f)) }, children),
278
287
  actionButton && (React__default.default.createElement(components_footer_Component.Footer, { sticky: stickyFooter, className: cn__default.default(bgClassName, footerClassName) }, actionButton)))))));
279
288
  });
280
289
 
@@ -2,6 +2,7 @@ import { FC, RefObject } from 'react';
2
2
  import { NavigationBarProps } from "../../../../navigation-bar";
3
3
  type HeaderProps = Omit<NavigationBarProps, 'view' | 'size'> & {
4
4
  headerRef: RefObject<HTMLDivElement>;
5
+ headerOffset: number;
5
6
  };
6
7
  declare const Header: FC<HeaderProps>;
7
8
  export { HeaderProps, Header };
@@ -5,7 +5,6 @@ var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var coreComponentsBaseModal = require('../../../../base-modal/cssm');
7
7
  var coreComponentsNavigationBar = require('../../../../navigation-bar/cssm');
8
- var utils = require('../../utils.js');
9
8
  var styles = require('./index.module.css');
10
9
 
11
10
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -16,11 +15,11 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
16
15
 
17
16
  var Header = function (_a) {
18
17
  var _b;
19
- var className = _a.className, sticky = _a.sticky, headerRef = _a.headerRef, title = _a.title, children = _a.children, restProps = tslib.__rest(_a, ["className", "sticky", "headerRef", "title", "children"]);
18
+ var className = _a.className, sticky = _a.sticky, headerRef = _a.headerRef, headerOffset = _a.headerOffset, title = _a.title, children = _a.children, restProps = tslib.__rest(_a, ["className", "sticky", "headerRef", "headerOffset", "title", "children"]);
20
19
  var _c = React.useContext(coreComponentsBaseModal.BaseModalContext), setHeaderOffset = _c.setHeaderOffset, setHasHeader = _c.setHasHeader, headerHighlighted = _c.headerHighlighted, onClose = _c.onClose;
21
20
  React.useEffect(function () {
22
- setHeaderOffset(utils.HEADER_OFFSET);
23
- }, [setHeaderOffset]);
21
+ setHeaderOffset(headerOffset);
22
+ }, [headerOffset, setHeaderOffset]);
24
23
  React.useEffect(function () {
25
24
  setHasHeader(true);
26
25
  }, [setHasHeader]);
@@ -57,6 +57,9 @@
57
57
  pointer-events: none;
58
58
  border-top-right-radius: var(--border-radius-xl);
59
59
  border-top-left-radius: var(--border-radius-xl);
60
+ transition: border-radius 0.3s ease;
61
+ } .fullscreen {
62
+ border-radius: 0;
60
63
  } .component {
61
64
  overflow: hidden;
62
65
  position: relative;
@@ -105,6 +105,14 @@ type BottomSheetProps = {
105
105
  * @default true
106
106
  */
107
107
  swipeable?: boolean;
108
+ /**
109
+ * Будет ли свайпаться контент
110
+ */
111
+ swipeableContent?: boolean;
112
+ /**
113
+ * Порог свайпа
114
+ */
115
+ swipeThreshold?: number;
108
116
  /**
109
117
  * Слот слева
110
118
  */
@@ -207,6 +215,10 @@ type BottomSheetProps = {
207
215
  * Скрыть скроллбар внутри шторки
208
216
  */
209
217
  hideScrollbar?: boolean;
218
+ /**
219
+ * Верхний отступ шторки, если она открыта на максимальную высоту
220
+ */
221
+ headerOffset?: number;
210
222
  /**
211
223
  * Обработчик закрытия
212
224
  */
@@ -220,7 +232,7 @@ type BottomSheetProps = {
220
232
  */
221
233
  onMagnetize?: (index: number) => void;
222
234
  /**
223
- * Вызывается при изменеии положения шторки
235
+ * Вызывается при изменении положения шторки
224
236
  */
225
237
  onOffsetChange?: (offset: number, percent: number) => void;
226
238
  };
@@ -1,8 +1,8 @@
1
1
  declare const TIMEOUT = 500;
2
2
  declare const SWIPE_VELOCITY = 0.4;
3
3
  declare const MARKER_HEIGHT = 24;
4
- declare const HEADER_OFFSET = 24;
5
4
  declare const CLOSE_OFFSET = 0.2;
6
5
  declare const SCROLL_OFFSET = 1;
7
- declare const convertPercentToNumber: (value: string | number, fullHeight: number) => number;
8
- export { TIMEOUT, SWIPE_VELOCITY, MARKER_HEIGHT, HEADER_OFFSET, CLOSE_OFFSET, SCROLL_OFFSET, convertPercentToNumber };
6
+ declare const HEADER_OFFSET = 24;
7
+ declare const convertPercentToNumber: (value: string | number, fullHeight: number, headerOffset?: number) => number;
8
+ export { TIMEOUT, SWIPE_VELOCITY, MARKER_HEIGHT, CLOSE_OFFSET, SCROLL_OFFSET, HEADER_OFFSET, convertPercentToNumber };
@@ -3,12 +3,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  var TIMEOUT = 500;
4
4
  var SWIPE_VELOCITY = 0.4;
5
5
  var MARKER_HEIGHT = 24;
6
- /* Верхний отступ шторки, если она открыта на максимальную высоту */
7
- var HEADER_OFFSET = 24;
8
6
  var CLOSE_OFFSET = 0.2;
9
7
  var SCROLL_OFFSET = 1;
10
- var convertPercentToNumber = function (value, fullHeight) {
11
- var maxHeight = fullHeight - HEADER_OFFSET;
8
+ var HEADER_OFFSET = 24;
9
+ var convertPercentToNumber = function (value, fullHeight, headerOffset) {
10
+ if (headerOffset === void 0) { headerOffset = HEADER_OFFSET; }
11
+ var maxHeight = fullHeight - headerOffset;
12
12
  if (typeof value === 'string') {
13
13
  var percent = parseFloat(value) / 100;
14
14
  if (percent < 0) {