@alfalab/core-components 45.8.0-beta.5 → 45.9.0

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 (404) hide show
  1. package/bank-card/Component.d.ts +6 -0
  2. package/bank-card/Component.js +14 -9
  3. package/bank-card/cssm/Component.d.ts +6 -0
  4. package/bank-card/cssm/Component.js +14 -9
  5. package/bank-card/cssm/enums.d.ts +6 -0
  6. package/bank-card/cssm/enums.js +8 -0
  7. package/bank-card/cssm/helpers/getDefaultInputLabel.d.ts +3 -0
  8. package/bank-card/cssm/helpers/getDefaultInputLabel.js +17 -0
  9. package/bank-card/cssm/types.d.ts +2 -0
  10. package/bank-card/cssm/types.js +1 -0
  11. package/bank-card/enums.d.ts +6 -0
  12. package/bank-card/enums.js +8 -0
  13. package/bank-card/esm/Component.d.ts +6 -0
  14. package/bank-card/esm/Component.js +14 -9
  15. package/bank-card/esm/enums.d.ts +6 -0
  16. package/bank-card/esm/enums.js +8 -0
  17. package/bank-card/esm/helpers/getDefaultInputLabel.d.ts +3 -0
  18. package/bank-card/esm/helpers/getDefaultInputLabel.js +15 -0
  19. package/bank-card/esm/index.js +2 -0
  20. package/bank-card/esm/types.d.ts +2 -0
  21. package/bank-card/esm/types.js +1 -0
  22. package/bank-card/helpers/getDefaultInputLabel.d.ts +3 -0
  23. package/bank-card/helpers/getDefaultInputLabel.js +17 -0
  24. package/bank-card/modern/Component.d.ts +6 -0
  25. package/bank-card/modern/Component.js +14 -7
  26. package/bank-card/modern/enums.d.ts +6 -0
  27. package/bank-card/modern/enums.js +8 -0
  28. package/bank-card/modern/helpers/getDefaultInputLabel.d.ts +3 -0
  29. package/bank-card/modern/helpers/getDefaultInputLabel.js +15 -0
  30. package/bank-card/modern/index.js +2 -0
  31. package/bank-card/modern/types.d.ts +2 -0
  32. package/bank-card/modern/types.js +1 -0
  33. package/bank-card/types.d.ts +2 -0
  34. package/bank-card/types.js +1 -0
  35. package/bottom-sheet/component.js +22 -12
  36. package/bottom-sheet/consts/swipeConsts.d.ts +2 -0
  37. package/bottom-sheet/consts/swipeConsts.js +7 -0
  38. package/bottom-sheet/cssm/component.js +22 -12
  39. package/bottom-sheet/cssm/consts/swipeConsts.d.ts +2 -0
  40. package/bottom-sheet/cssm/consts/swipeConsts.js +7 -0
  41. package/bottom-sheet/cssm/enums/swipeEnums.d.ts +7 -0
  42. package/bottom-sheet/cssm/enums/swipeEnums.js +9 -0
  43. package/bottom-sheet/cssm/types/swipeTypes.d.ts +9 -0
  44. package/bottom-sheet/cssm/types/swipeTypes.js +1 -0
  45. package/bottom-sheet/enums/swipeEnums.d.ts +7 -0
  46. package/bottom-sheet/enums/swipeEnums.js +9 -0
  47. package/bottom-sheet/esm/component.js +23 -12
  48. package/bottom-sheet/esm/consts/swipeConsts.d.ts +2 -0
  49. package/bottom-sheet/esm/consts/swipeConsts.js +5 -0
  50. package/bottom-sheet/esm/enums/swipeEnums.d.ts +7 -0
  51. package/bottom-sheet/esm/enums/swipeEnums.js +9 -0
  52. package/bottom-sheet/esm/index.js +2 -0
  53. package/bottom-sheet/esm/types/swipeTypes.d.ts +9 -0
  54. package/bottom-sheet/esm/types/swipeTypes.js +1 -0
  55. package/bottom-sheet/modern/component.js +23 -9
  56. package/bottom-sheet/modern/consts/swipeConsts.d.ts +2 -0
  57. package/bottom-sheet/modern/consts/swipeConsts.js +5 -0
  58. package/bottom-sheet/modern/enums/swipeEnums.d.ts +7 -0
  59. package/bottom-sheet/modern/enums/swipeEnums.js +9 -0
  60. package/bottom-sheet/modern/index.js +2 -0
  61. package/bottom-sheet/modern/types/swipeTypes.d.ts +9 -0
  62. package/bottom-sheet/modern/types/swipeTypes.js +1 -0
  63. package/bottom-sheet/types/swipeTypes.d.ts +9 -0
  64. package/bottom-sheet/types/swipeTypes.js +1 -0
  65. package/confirmation/components/screens/initial/component.js +1 -1
  66. package/confirmation/components/screens/initial/countdown-section.js +1 -1
  67. package/confirmation/esm/component.responsive.js +1 -1
  68. package/confirmation/esm/components/base-confirmation/component.js +1 -1
  69. package/confirmation/esm/components/base-confirmation/index.js +1 -1
  70. package/confirmation/esm/components/index.js +1 -1
  71. package/confirmation/esm/components/screens/index.js +1 -1
  72. package/confirmation/esm/components/screens/initial/component.js +1 -1
  73. package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
  74. package/confirmation/esm/components/screens/initial/index.js +1 -1
  75. package/confirmation/esm/desktop/component.desktop.js +1 -1
  76. package/confirmation/esm/desktop/index.js +1 -1
  77. package/confirmation/esm/index.js +1 -1
  78. package/confirmation/esm/mobile/component.mobile.js +1 -1
  79. package/confirmation/esm/mobile/index.js +1 -1
  80. package/confirmation/esm/shared/index.js +1 -1
  81. package/confirmation/modern/component.responsive.js +1 -1
  82. package/confirmation/modern/components/base-confirmation/component.js +1 -1
  83. package/confirmation/modern/components/base-confirmation/index.js +1 -1
  84. package/confirmation/modern/components/index.js +1 -1
  85. package/confirmation/modern/components/screens/index.js +1 -1
  86. package/confirmation/modern/components/screens/initial/component.js +1 -1
  87. package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
  88. package/confirmation/modern/components/screens/initial/index.js +1 -1
  89. package/confirmation/modern/desktop/component.desktop.js +1 -1
  90. package/confirmation/modern/desktop/index.js +1 -1
  91. package/confirmation/modern/index.js +1 -1
  92. package/confirmation/modern/mobile/component.mobile.js +1 -1
  93. package/confirmation/modern/mobile/index.js +1 -1
  94. package/confirmation/modern/shared/index.js +1 -1
  95. package/international-phone-input/cssm/typings-57569e57.d.ts +18 -2
  96. package/international-phone-input/esm/typings-57569e57.d.ts +18 -2
  97. package/international-phone-input/modern/typings-57569e57.d.ts +18 -2
  98. package/international-phone-input/typings-57569e57.d.ts +18 -2
  99. package/modal/components/controls/Component.js +1 -1
  100. package/modal/components/footer/Component.js +1 -1
  101. package/modal/esm/Component.responsive.js +1 -1
  102. package/modal/esm/components/controls/Component.js +1 -1
  103. package/modal/esm/components/controls/index.js +1 -1
  104. package/modal/esm/components/footer/Component.js +1 -1
  105. package/modal/esm/desktop/Component.desktop.js +1 -1
  106. package/modal/esm/desktop/index.js +1 -1
  107. package/modal/esm/index.js +1 -1
  108. package/modal/esm/mobile/Component.mobile.js +1 -1
  109. package/modal/esm/mobile/index.js +1 -1
  110. package/modal/modern/Component.responsive.js +1 -1
  111. package/modal/modern/components/controls/Component.js +1 -1
  112. package/modal/modern/components/controls/index.js +1 -1
  113. package/modal/modern/components/footer/Component.js +1 -1
  114. package/modal/modern/desktop/Component.desktop.js +1 -1
  115. package/modal/modern/desktop/index.js +1 -1
  116. package/modal/modern/index.js +1 -1
  117. package/modal/modern/mobile/Component.mobile.js +1 -1
  118. package/modal/modern/mobile/index.js +1 -1
  119. package/package.json +2 -2
  120. package/picker-button/cssm/typings-57569e57.d.ts +18 -2
  121. package/picker-button/esm/typings-57569e57.d.ts +18 -2
  122. package/picker-button/modern/typings-57569e57.d.ts +18 -2
  123. package/picker-button/typings-57569e57.d.ts +18 -2
  124. package/pure-cell/{component-911cc97f.js → component-1b03bea6.js} +1 -1
  125. package/pure-cell/component.js +1 -1
  126. package/pure-cell/components/addon/component.js +1 -1
  127. package/pure-cell/components/addon/index.d.ts +1 -1
  128. package/pure-cell/components/addon/index.js +1 -1
  129. package/pure-cell/components/amount/component.js +1 -1
  130. package/pure-cell/components/amount/index.d.ts +1 -1
  131. package/pure-cell/components/amount/index.js +1 -1
  132. package/pure-cell/components/amount-title/component.js +1 -1
  133. package/pure-cell/components/amount-title/index.d.ts +1 -1
  134. package/pure-cell/components/amount-title/index.js +1 -1
  135. package/pure-cell/components/category/component.js +1 -1
  136. package/pure-cell/components/category/index.d.ts +1 -1
  137. package/pure-cell/components/category/index.js +1 -1
  138. package/pure-cell/components/content/component.js +1 -1
  139. package/pure-cell/components/content/index.d.ts +1 -1
  140. package/pure-cell/components/content/index.js +1 -1
  141. package/pure-cell/components/footer/component.js +1 -1
  142. package/pure-cell/components/footer/index.d.ts +1 -1
  143. package/pure-cell/components/footer/index.js +1 -1
  144. package/pure-cell/components/footer-button/component.js +1 -1
  145. package/pure-cell/components/footer-button/index.d.ts +1 -1
  146. package/pure-cell/components/footer-button/index.js +1 -1
  147. package/pure-cell/components/footer-text/component.js +1 -1
  148. package/pure-cell/components/footer-text/index.d.ts +1 -1
  149. package/pure-cell/components/footer-text/index.js +1 -1
  150. package/pure-cell/components/graphics/component.js +1 -1
  151. package/pure-cell/components/graphics/index.d.ts +1 -1
  152. package/pure-cell/components/graphics/index.js +1 -1
  153. package/pure-cell/components/main/component.js +1 -1
  154. package/pure-cell/components/main/index.d.ts +1 -1
  155. package/pure-cell/components/main/index.js +1 -1
  156. package/pure-cell/components/text/component.js +1 -1
  157. package/pure-cell/components/text/index.d.ts +1 -1
  158. package/pure-cell/components/text/index.js +1 -1
  159. package/pure-cell/cssm/{component-719b272a.js → component-e3105fca.js} +1 -1
  160. package/pure-cell/cssm/component.js +1 -1
  161. package/pure-cell/cssm/components/addon/component.js +1 -1
  162. package/pure-cell/cssm/components/addon/index.d.ts +1 -1
  163. package/pure-cell/cssm/components/addon/index.js +1 -1
  164. package/pure-cell/cssm/components/amount/component.js +1 -1
  165. package/pure-cell/cssm/components/amount/index.d.ts +1 -1
  166. package/pure-cell/cssm/components/amount/index.js +1 -1
  167. package/pure-cell/cssm/components/amount-title/component.js +1 -1
  168. package/pure-cell/cssm/components/amount-title/index.d.ts +1 -1
  169. package/pure-cell/cssm/components/amount-title/index.js +1 -1
  170. package/pure-cell/cssm/components/category/component.js +1 -1
  171. package/pure-cell/cssm/components/category/index.d.ts +1 -1
  172. package/pure-cell/cssm/components/category/index.js +1 -1
  173. package/pure-cell/cssm/components/content/component.js +1 -1
  174. package/pure-cell/cssm/components/content/index.d.ts +1 -1
  175. package/pure-cell/cssm/components/content/index.js +1 -1
  176. package/pure-cell/cssm/components/footer/component.js +1 -1
  177. package/pure-cell/cssm/components/footer/index.d.ts +1 -1
  178. package/pure-cell/cssm/components/footer/index.js +1 -1
  179. package/pure-cell/cssm/components/footer-button/component.js +1 -1
  180. package/pure-cell/cssm/components/footer-button/index.d.ts +1 -1
  181. package/pure-cell/cssm/components/footer-button/index.js +1 -1
  182. package/pure-cell/cssm/components/footer-text/component.js +1 -1
  183. package/pure-cell/cssm/components/footer-text/index.d.ts +1 -1
  184. package/pure-cell/cssm/components/footer-text/index.js +1 -1
  185. package/pure-cell/cssm/components/graphics/component.js +1 -1
  186. package/pure-cell/cssm/components/graphics/index.d.ts +1 -1
  187. package/pure-cell/cssm/components/graphics/index.js +1 -1
  188. package/pure-cell/cssm/components/main/component.js +1 -1
  189. package/pure-cell/cssm/components/main/index.d.ts +1 -1
  190. package/pure-cell/cssm/components/main/index.js +1 -1
  191. package/pure-cell/cssm/components/text/component.js +1 -1
  192. package/pure-cell/cssm/components/text/index.d.ts +1 -1
  193. package/pure-cell/cssm/components/text/index.js +1 -1
  194. package/pure-cell/cssm/index.js +1 -1
  195. package/pure-cell/esm/{component-53618056.js → component-02d56ae7.js} +1 -1
  196. package/pure-cell/esm/component.js +1 -1
  197. package/pure-cell/esm/components/addon/component.js +1 -1
  198. package/pure-cell/esm/components/addon/index.d.ts +1 -1
  199. package/pure-cell/esm/components/addon/index.js +1 -1
  200. package/pure-cell/esm/components/amount/component.js +1 -1
  201. package/pure-cell/esm/components/amount/index.d.ts +1 -1
  202. package/pure-cell/esm/components/amount/index.js +1 -1
  203. package/pure-cell/esm/components/amount-title/component.js +1 -1
  204. package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
  205. package/pure-cell/esm/components/amount-title/index.js +1 -1
  206. package/pure-cell/esm/components/category/component.js +1 -1
  207. package/pure-cell/esm/components/category/index.d.ts +1 -1
  208. package/pure-cell/esm/components/category/index.js +1 -1
  209. package/pure-cell/esm/components/content/component.js +1 -1
  210. package/pure-cell/esm/components/content/index.d.ts +1 -1
  211. package/pure-cell/esm/components/content/index.js +1 -1
  212. package/pure-cell/esm/components/footer/component.js +1 -1
  213. package/pure-cell/esm/components/footer/index.d.ts +1 -1
  214. package/pure-cell/esm/components/footer/index.js +1 -1
  215. package/pure-cell/esm/components/footer-button/component.js +1 -1
  216. package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
  217. package/pure-cell/esm/components/footer-button/index.js +1 -1
  218. package/pure-cell/esm/components/footer-text/component.js +1 -1
  219. package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
  220. package/pure-cell/esm/components/footer-text/index.js +1 -1
  221. package/pure-cell/esm/components/graphics/component.js +1 -1
  222. package/pure-cell/esm/components/graphics/index.d.ts +1 -1
  223. package/pure-cell/esm/components/graphics/index.js +1 -1
  224. package/pure-cell/esm/components/main/component.js +1 -1
  225. package/pure-cell/esm/components/main/index.d.ts +1 -1
  226. package/pure-cell/esm/components/main/index.js +1 -1
  227. package/pure-cell/esm/components/text/component.js +1 -1
  228. package/pure-cell/esm/components/text/index.d.ts +1 -1
  229. package/pure-cell/esm/components/text/index.js +1 -1
  230. package/pure-cell/esm/index.js +1 -1
  231. package/pure-cell/index.js +1 -1
  232. package/pure-cell/modern/{component-254f4794.js → component-766c0ee4.js} +1 -1
  233. package/pure-cell/modern/component.js +1 -1
  234. package/pure-cell/modern/components/addon/component.js +1 -1
  235. package/pure-cell/modern/components/addon/index.d.ts +1 -1
  236. package/pure-cell/modern/components/addon/index.js +1 -1
  237. package/pure-cell/modern/components/amount/component.js +1 -1
  238. package/pure-cell/modern/components/amount/index.d.ts +1 -1
  239. package/pure-cell/modern/components/amount/index.js +1 -1
  240. package/pure-cell/modern/components/amount-title/component.js +1 -1
  241. package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
  242. package/pure-cell/modern/components/amount-title/index.js +1 -1
  243. package/pure-cell/modern/components/category/component.js +1 -1
  244. package/pure-cell/modern/components/category/index.d.ts +1 -1
  245. package/pure-cell/modern/components/category/index.js +1 -1
  246. package/pure-cell/modern/components/content/component.js +1 -1
  247. package/pure-cell/modern/components/content/index.d.ts +1 -1
  248. package/pure-cell/modern/components/content/index.js +1 -1
  249. package/pure-cell/modern/components/footer/component.js +1 -1
  250. package/pure-cell/modern/components/footer/index.d.ts +1 -1
  251. package/pure-cell/modern/components/footer/index.js +1 -1
  252. package/pure-cell/modern/components/footer-button/component.js +1 -1
  253. package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
  254. package/pure-cell/modern/components/footer-button/index.js +1 -1
  255. package/pure-cell/modern/components/footer-text/component.js +1 -1
  256. package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
  257. package/pure-cell/modern/components/footer-text/index.js +1 -1
  258. package/pure-cell/modern/components/graphics/component.js +1 -1
  259. package/pure-cell/modern/components/graphics/index.d.ts +1 -1
  260. package/pure-cell/modern/components/graphics/index.js +1 -1
  261. package/pure-cell/modern/components/main/component.js +1 -1
  262. package/pure-cell/modern/components/main/index.d.ts +1 -1
  263. package/pure-cell/modern/components/main/index.js +1 -1
  264. package/pure-cell/modern/components/text/component.js +1 -1
  265. package/pure-cell/modern/components/text/index.d.ts +1 -1
  266. package/pure-cell/modern/components/text/index.js +1 -1
  267. package/pure-cell/modern/index.js +1 -1
  268. package/select/components/base-option/Component.js +6 -2
  269. package/select/components/base-option/index.css +4 -3
  270. package/select/cssm/components/base-option/Component.js +5 -1
  271. package/select/cssm/components/base-option/index.module.css +4 -2
  272. package/select/esm/Component.responsive.js +1 -1
  273. package/select/esm/components/base-option/Component.js +6 -2
  274. package/select/esm/components/base-option/index.css +4 -3
  275. package/select/esm/index.js +1 -1
  276. package/select/esm/mobile/Component.mobile.js +1 -1
  277. package/select/esm/mobile/Component.modal.mobile.js +1 -1
  278. package/select/esm/mobile/index.js +1 -1
  279. package/select/esm/presets/index.js +1 -1
  280. package/select/esm/presets/useSelectWithApply/hook.js +1 -1
  281. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  282. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  283. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  284. package/select/esm/shared/index.js +1 -1
  285. package/select/mobile/Component.mobile.js +1 -1
  286. package/select/modern/Component.responsive.js +1 -1
  287. package/select/modern/components/base-option/Component.js +5 -2
  288. package/select/modern/components/base-option/index.css +4 -3
  289. package/select/modern/index.js +1 -1
  290. package/select/modern/mobile/Component.mobile.js +1 -1
  291. package/select/modern/mobile/Component.modal.mobile.js +1 -1
  292. package/select/modern/mobile/index.js +1 -1
  293. package/select/modern/presets/index.js +1 -1
  294. package/select/modern/presets/useSelectWithApply/hook.js +1 -1
  295. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  296. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  297. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  298. package/select/modern/shared/index.js +1 -1
  299. package/select/presets/index.js +1 -1
  300. package/select/presets/useSelectWithApply/hook.js +1 -1
  301. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  302. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  303. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  304. package/select/shared/index.js +1 -1
  305. package/tabs/components/primary-tablist/Component.collapsible.js +1 -1
  306. package/tabs/components/primary-tablist/Component.desktop.js +1 -1
  307. package/tabs/components/primary-tablist/Component.mobile.js +1 -1
  308. package/tabs/components/secondary-tablist/Component.desktop.js +1 -1
  309. package/tabs/components/secondary-tablist/Component.mobile.js +1 -1
  310. package/tabs/esm/collapsible/index.js +1 -1
  311. package/tabs/esm/components/primary-tablist/Component.collapsible.js +1 -1
  312. package/tabs/esm/components/primary-tablist/Component.desktop.js +1 -1
  313. package/tabs/esm/components/primary-tablist/Component.mobile.js +1 -1
  314. package/tabs/esm/components/primary-tablist/Component.responsive.js +1 -1
  315. package/tabs/esm/components/secondary-tablist/Component.desktop.js +1 -1
  316. package/tabs/esm/components/secondary-tablist/Component.mobile.js +1 -1
  317. package/tabs/esm/components/secondary-tablist/Component.responsive.js +1 -1
  318. package/tabs/esm/components/tabs/Component.collapsible.js +1 -1
  319. package/tabs/esm/components/tabs/Component.desktop.js +2 -2
  320. package/tabs/esm/components/tabs/Component.mobile.js +2 -2
  321. package/tabs/esm/components/tabs/Component.responsive.js +2 -2
  322. package/tabs/esm/desktop/index.js +2 -2
  323. package/tabs/esm/index.js +2 -2
  324. package/tabs/esm/mobile/index.js +2 -2
  325. package/tabs/modern/collapsible/index.js +1 -1
  326. package/tabs/modern/components/primary-tablist/Component.collapsible.js +1 -1
  327. package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
  328. package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
  329. package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
  330. package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
  331. package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
  332. package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
  333. package/tabs/modern/components/tabs/Component.collapsible.js +1 -1
  334. package/tabs/modern/components/tabs/Component.desktop.js +2 -2
  335. package/tabs/modern/components/tabs/Component.mobile.js +2 -2
  336. package/tabs/modern/components/tabs/Component.responsive.js +2 -2
  337. package/tabs/modern/desktop/index.js +2 -2
  338. package/tabs/modern/index.js +2 -2
  339. package/tabs/modern/mobile/index.js +2 -2
  340. package/textarea/Component.js +2 -2
  341. package/textarea/cssm/Component.js +2 -2
  342. package/textarea/cssm/typings.d.ts +5 -0
  343. package/textarea/esm/Component.js +2 -2
  344. package/textarea/esm/typings.d.ts +5 -0
  345. package/textarea/modern/Component.js +2 -2
  346. package/textarea/modern/typings.d.ts +5 -0
  347. package/textarea/typings.d.ts +5 -0
  348. package/themes/compiled/mobile-dark-bluetint.css +30 -169
  349. package/typography/esm/component.js +2 -2
  350. package/typography/esm/index.js +2 -2
  351. package/typography/esm/text/component.js +1 -1
  352. package/typography/esm/text/index.js +1 -1
  353. package/typography/esm/title/component.js +1 -1
  354. package/typography/esm/title/index.js +2 -2
  355. package/typography/esm/title-mobile/component.js +2 -2
  356. package/typography/esm/title-mobile/index.js +2 -2
  357. package/typography/esm/title-responsive/component.js +2 -2
  358. package/typography/esm/title-responsive/index.js +2 -2
  359. package/typography/modern/component.js +2 -2
  360. package/typography/modern/index.js +2 -2
  361. package/typography/modern/text/component.js +1 -1
  362. package/typography/modern/text/index.js +1 -1
  363. package/typography/modern/title/component.js +1 -1
  364. package/typography/modern/title/index.js +2 -2
  365. package/typography/modern/title-mobile/component.js +2 -2
  366. package/typography/modern/title-mobile/index.js +2 -2
  367. package/typography/modern/title-responsive/component.js +2 -2
  368. package/typography/modern/title-responsive/index.js +2 -2
  369. package/typography/text/component.js +1 -1
  370. package/typography/title/component.js +1 -1
  371. package/typography/title/index.js +1 -1
  372. package/typography/title-mobile/component.js +1 -1
  373. package/typography/title-responsive/component.js +1 -1
  374. /package/confirmation/{countdown-section-5581379b.d.ts → countdown-section-b30d5212.d.ts} +0 -0
  375. /package/confirmation/{countdown-section-5581379b.js → countdown-section-b30d5212.js} +0 -0
  376. /package/confirmation/esm/{countdown-section-2f02c020.d.ts → countdown-section-c4f73a77.d.ts} +0 -0
  377. /package/confirmation/esm/{countdown-section-2f02c020.js → countdown-section-c4f73a77.js} +0 -0
  378. /package/confirmation/modern/{countdown-section-27ad8a44.d.ts → countdown-section-f3215ad8.d.ts} +0 -0
  379. /package/confirmation/modern/{countdown-section-27ad8a44.js → countdown-section-f3215ad8.js} +0 -0
  380. /package/modal/esm/{layout.module-ec4a90b6.js → layout.module-95a81cec.js} +0 -0
  381. /package/modal/{layout.module-0786cc33.js → layout.module-7688fd0c.js} +0 -0
  382. /package/modal/modern/{layout.module-8379050e.js → layout.module-5b92887c.js} +0 -0
  383. /package/pure-cell/{component-911cc97f.d.ts → component-1b03bea6.d.ts} +0 -0
  384. /package/pure-cell/cssm/{component-719b272a.d.ts → component-e3105fca.d.ts} +0 -0
  385. /package/pure-cell/esm/{component-53618056.d.ts → component-02d56ae7.d.ts} +0 -0
  386. /package/pure-cell/modern/{component-254f4794.d.ts → component-766c0ee4.d.ts} +0 -0
  387. /package/select/esm/{hook-234f7a67.d.ts → hook-bff79f71.d.ts} +0 -0
  388. /package/select/esm/{hook-234f7a67.js → hook-bff79f71.js} +0 -0
  389. /package/select/{hook-5f6e7b13.d.ts → hook-54f25d8f.d.ts} +0 -0
  390. /package/select/{hook-5f6e7b13.js → hook-54f25d8f.js} +0 -0
  391. /package/select/modern/{hook-46a9009f.d.ts → hook-c270fa38.d.ts} +0 -0
  392. /package/select/modern/{hook-46a9009f.js → hook-c270fa38.js} +0 -0
  393. /package/tabs/esm/{index.module-a60afb2d.js → index.module-0655283c.js} +0 -0
  394. /package/tabs/esm/{index.module-e6c5bf7b.js → index.module-7ff70640.js} +0 -0
  395. /package/tabs/{index.module-2a9c83e8.js → index.module-5e2c2277.js} +0 -0
  396. /package/tabs/{index.module-a4d37ad2.js → index.module-c171ff65.js} +0 -0
  397. /package/tabs/modern/{index.module-7ddd604e.js → index.module-65b2af6e.js} +0 -0
  398. /package/tabs/modern/{index.module-f30fb0bd.js → index.module-d1b9db81.js} +0 -0
  399. /package/typography/{colors.module-a11b73e9.js → colors.module-1425c827.js} +0 -0
  400. /package/typography/{common.module-25e7ce83.js → common.module-7149df75.js} +0 -0
  401. /package/typography/esm/{colors.module-e5414e42.js → colors.module-2c5f7086.js} +0 -0
  402. /package/typography/esm/{common.module-bd07cc74.js → common.module-34c95dd1.js} +0 -0
  403. /package/typography/modern/{colors.module-9fa7fdee.js → colors.module-dfec17f2.js} +0 -0
  404. /package/typography/modern/{common.module-e73684d9.js → common.module-6efdb2ce.js} +0 -0
@@ -11,6 +11,7 @@ var coreComponentsShared = require('../../shared/cssm');
11
11
  var components_footer_Component = require('./components/footer/Component.js');
12
12
  var components_header_Component = require('./components/header/Component.js');
13
13
  var components_swipeableBackdrop_Component = require('./components/swipeable-backdrop/Component.js');
14
+ var consts_swipeConsts = require('./consts/swipeConsts.js');
14
15
  var utils = require('./utils.js');
15
16
  var styles = require('./index.module.css');
16
17
 
@@ -187,8 +188,9 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
187
188
  * Если контент внутри шторки скроллится - то шторка не должна свайпаться
188
189
  * Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
189
190
  */
190
- var shouldSkipSwiping = function (deltaY, startY, event) {
191
+ var shouldSkipSwiping = function (swipeParams) {
191
192
  var _a;
193
+ var deltaY = swipeParams.deltaY, startY = swipeParams.startY, event = swipeParams.event, dir = swipeParams.dir;
192
194
  if (scrollLockedProp || swipingInProgress)
193
195
  return false;
194
196
  if (!swipeableContent && ((_a = contentRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {
@@ -213,18 +215,24 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
213
215
  if (!scrollOccurred.current && shouldScroll) {
214
216
  scrollOccurred.current = true;
215
217
  }
218
+ // Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться
219
+ if (consts_swipeConsts.horizontalDirections.includes(dir)) {
220
+ return true;
221
+ }
216
222
  return shouldScroll;
217
223
  };
218
- var handleSheetSwipe = function (_a) {
219
- var initial = _a.initial, velocity = _a.velocity, deltaY = _a.deltaY, event = _a.event;
220
- if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
224
+ var handleSheetSwipeEnd = function (swipeParams) {
225
+ var initial = swipeParams.initial, velocity = swipeParams.velocity, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
226
+ var shouldPreventSwipe = scrollOccurred.current ||
227
+ shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
228
+ if (shouldPreventSwipe) {
221
229
  return;
222
230
  }
223
231
  magnetize(velocity, deltaY);
224
232
  };
225
- var handleSheetSwipeStart = function (_a) {
226
- var deltaY = _a.deltaY, initial = _a.initial, event = _a.event;
227
- if (shouldSkipSwiping(deltaY, initial[1], event)) {
233
+ var handleSheetSwipeStart = function (swipeParams) {
234
+ var deltaY = swipeParams.deltaY, initial = swipeParams.initial, event = swipeParams.event, dir = swipeParams.dir;
235
+ if (shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir })) {
228
236
  return;
229
237
  }
230
238
  startSwiping(event);
@@ -233,9 +241,11 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
233
241
  var event = _a.event;
234
242
  return stopSwiping(event);
235
243
  };
236
- var handleSheetSwiping = function (_a) {
237
- var initial = _a.initial, deltaY = _a.deltaY, event = _a.event;
238
- if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
244
+ var handleSheetSwipeMove = function (swipeParams) {
245
+ var initial = swipeParams.initial, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
246
+ var shouldPreventSwipe = scrollOccurred.current ||
247
+ shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
248
+ if (shouldPreventSwipe) {
239
249
  return;
240
250
  }
241
251
  if (!swipingInProgress) {
@@ -248,8 +258,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
248
258
  };
249
259
  var sheetSwipeableHandlers = reactSwipeable.useSwipeable({
250
260
  onSwipeStart: handleSheetSwipeStart,
251
- onSwiping: handleSheetSwiping,
252
- onSwiped: handleSheetSwipe,
261
+ onSwiping: handleSheetSwipeMove,
262
+ onSwiped: handleSheetSwipeEnd,
253
263
  onTouchEndOrOnMouseUp: handleTouchEnd,
254
264
  trackMouse: swipeable,
255
265
  trackTouch: swipeable,
@@ -0,0 +1,2 @@
1
+ declare const horizontalDirections: [string, string];
2
+ export { horizontalDirections };
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ var enums_swipeEnums = require('../enums/swipeEnums.js');
4
+
5
+ var horizontalDirections = [enums_swipeEnums.SwipeDirection.Left, enums_swipeEnums.SwipeDirection.Right];
6
+
7
+ exports.horizontalDirections = horizontalDirections;
@@ -0,0 +1,7 @@
1
+ declare enum SwipeDirection {
2
+ Left = "Left",
3
+ Right = "Right",
4
+ Up = "Up",
5
+ Down = "Down"
6
+ }
7
+ export { SwipeDirection };
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ exports.SwipeDirection = void 0;
4
+ (function (SwipeDirection) {
5
+ SwipeDirection["Left"] = "Left";
6
+ SwipeDirection["Right"] = "Right";
7
+ SwipeDirection["Up"] = "Up";
8
+ SwipeDirection["Down"] = "Down";
9
+ })(exports.SwipeDirection || (exports.SwipeDirection = {}));
@@ -0,0 +1,9 @@
1
+ import { SwipeDirections } from 'react-swipeable';
2
+ import { HandledEvents } from 'react-swipeable/es/types';
3
+ type ShouldSkipSwipingParams = {
4
+ deltaY: number;
5
+ startY: number;
6
+ event: HandledEvents;
7
+ dir: SwipeDirections;
8
+ };
9
+ export { ShouldSkipSwipingParams };
@@ -0,0 +1,7 @@
1
+ declare enum SwipeDirection {
2
+ Left = "Left",
3
+ Right = "Right",
4
+ Up = "Up",
5
+ Down = "Down"
6
+ }
7
+ export { SwipeDirection };
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ exports.SwipeDirection = void 0;
4
+ (function (SwipeDirection) {
5
+ SwipeDirection["Left"] = "Left";
6
+ SwipeDirection["Right"] = "Right";
7
+ SwipeDirection["Up"] = "Up";
8
+ SwipeDirection["Down"] = "Down";
9
+ })(exports.SwipeDirection || (exports.SwipeDirection = {}));
@@ -9,9 +9,11 @@ import { fnUtils, 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';
12
+ import { horizontalDirections } from './consts/swipeConsts.js';
12
13
  import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VELOCITY, CLOSE_OFFSET } from './utils.js';
13
14
  import '../../navigation-bar/esm';
14
15
  import '../../backdrop/esm';
16
+ import './enums/swipeEnums.js';
15
17
 
16
18
  var styles = {"modal":"bottom-sheet__modal_tmbtb","wrapper":"bottom-sheet__wrapper_tmbtb","fullscreen":"bottom-sheet__fullscreen_tmbtb","component":"bottom-sheet__component_tmbtb","withTransition":"bottom-sheet__withTransition_tmbtb","scrollableContainer":"bottom-sheet__scrollableContainer_tmbtb","marker":"bottom-sheet__marker_tmbtb","defaultMarker":"bottom-sheet__defaultMarker_tmbtb","content":"bottom-sheet__content_tmbtb","noHeader":"bottom-sheet__noHeader_tmbtb","noFooter":"bottom-sheet__noFooter_tmbtb","scrollLocked":"bottom-sheet__scrollLocked_tmbtb","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_tmbtb","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_tmbtb","appear":"bottom-sheet__appear_tmbtb","enter":"bottom-sheet__enter_tmbtb","appearActive":"bottom-sheet__appearActive_tmbtb","enterActive":"bottom-sheet__enterActive_tmbtb","enterDone":"bottom-sheet__enterDone_tmbtb","appearDone":"bottom-sheet__appearDone_tmbtb","exit":"bottom-sheet__exit_tmbtb","exitActive":"bottom-sheet__exitActive_tmbtb","safeAreaBottom":"bottom-sheet__safeAreaBottom_tmbtb","background-accent":"bottom-sheet__background-accent_tmbtb","background-info":"bottom-sheet__background-info_tmbtb","background-attention-muted":"bottom-sheet__background-attention-muted_tmbtb","background-positive-muted":"bottom-sheet__background-positive-muted_tmbtb","background-negative-muted":"bottom-sheet__background-negative-muted_tmbtb","background-primary":"bottom-sheet__background-primary_tmbtb","background-primary-inverted":"bottom-sheet__background-primary-inverted_tmbtb","background-secondary":"bottom-sheet__background-secondary_tmbtb","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_tmbtb","background-tertiary":"bottom-sheet__background-tertiary_tmbtb","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_tmbtb","background-quaternary":"bottom-sheet__background-quaternary_tmbtb","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_tmbtb","background-specialbg-component":"bottom-sheet__background-specialbg-component_tmbtb","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_tmbtb","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_tmbtb","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_tmbtb","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_tmbtb","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_tmbtb","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_tmbtb","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_tmbtb","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_tmbtb"};
17
19
  require('./index.css');
@@ -182,8 +184,9 @@ var BottomSheet = forwardRef(function (_a, ref) {
182
184
  * Если контент внутри шторки скроллится - то шторка не должна свайпаться
183
185
  * Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
184
186
  */
185
- var shouldSkipSwiping = function (deltaY, startY, event) {
187
+ var shouldSkipSwiping = function (swipeParams) {
186
188
  var _a;
189
+ var deltaY = swipeParams.deltaY, startY = swipeParams.startY, event = swipeParams.event, dir = swipeParams.dir;
187
190
  if (scrollLockedProp || swipingInProgress)
188
191
  return false;
189
192
  if (!swipeableContent && ((_a = contentRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {
@@ -208,18 +211,24 @@ var BottomSheet = forwardRef(function (_a, ref) {
208
211
  if (!scrollOccurred.current && shouldScroll) {
209
212
  scrollOccurred.current = true;
210
213
  }
214
+ // Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться
215
+ if (horizontalDirections.includes(dir)) {
216
+ return true;
217
+ }
211
218
  return shouldScroll;
212
219
  };
213
- var handleSheetSwipe = function (_a) {
214
- var initial = _a.initial, velocity = _a.velocity, deltaY = _a.deltaY, event = _a.event;
215
- if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
220
+ var handleSheetSwipeEnd = function (swipeParams) {
221
+ var initial = swipeParams.initial, velocity = swipeParams.velocity, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
222
+ var shouldPreventSwipe = scrollOccurred.current ||
223
+ shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
224
+ if (shouldPreventSwipe) {
216
225
  return;
217
226
  }
218
227
  magnetize(velocity, deltaY);
219
228
  };
220
- var handleSheetSwipeStart = function (_a) {
221
- var deltaY = _a.deltaY, initial = _a.initial, event = _a.event;
222
- if (shouldSkipSwiping(deltaY, initial[1], event)) {
229
+ var handleSheetSwipeStart = function (swipeParams) {
230
+ var deltaY = swipeParams.deltaY, initial = swipeParams.initial, event = swipeParams.event, dir = swipeParams.dir;
231
+ if (shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir })) {
223
232
  return;
224
233
  }
225
234
  startSwiping(event);
@@ -228,9 +237,11 @@ var BottomSheet = forwardRef(function (_a, ref) {
228
237
  var event = _a.event;
229
238
  return stopSwiping(event);
230
239
  };
231
- var handleSheetSwiping = function (_a) {
232
- var initial = _a.initial, deltaY = _a.deltaY, event = _a.event;
233
- if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
240
+ var handleSheetSwipeMove = function (swipeParams) {
241
+ var initial = swipeParams.initial, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
242
+ var shouldPreventSwipe = scrollOccurred.current ||
243
+ shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
244
+ if (shouldPreventSwipe) {
234
245
  return;
235
246
  }
236
247
  if (!swipingInProgress) {
@@ -243,8 +254,8 @@ var BottomSheet = forwardRef(function (_a, ref) {
243
254
  };
244
255
  var sheetSwipeableHandlers = useSwipeable({
245
256
  onSwipeStart: handleSheetSwipeStart,
246
- onSwiping: handleSheetSwiping,
247
- onSwiped: handleSheetSwipe,
257
+ onSwiping: handleSheetSwipeMove,
258
+ onSwiped: handleSheetSwipeEnd,
248
259
  onTouchEndOrOnMouseUp: handleTouchEnd,
249
260
  trackMouse: swipeable,
250
261
  trackTouch: swipeable,
@@ -0,0 +1,2 @@
1
+ declare const horizontalDirections: [string, string];
2
+ export { horizontalDirections };
@@ -0,0 +1,5 @@
1
+ import { SwipeDirection } from '../enums/swipeEnums.js';
2
+
3
+ var horizontalDirections = [SwipeDirection.Left, SwipeDirection.Right];
4
+
5
+ export { horizontalDirections };
@@ -0,0 +1,7 @@
1
+ declare enum SwipeDirection {
2
+ Left = "Left",
3
+ Right = "Right",
4
+ Up = "Up",
5
+ Down = "Down"
6
+ }
7
+ export { SwipeDirection };
@@ -0,0 +1,9 @@
1
+ var SwipeDirection;
2
+ (function (SwipeDirection) {
3
+ SwipeDirection["Left"] = "Left";
4
+ SwipeDirection["Right"] = "Right";
5
+ SwipeDirection["Up"] = "Up";
6
+ SwipeDirection["Down"] = "Down";
7
+ })(SwipeDirection || (SwipeDirection = {}));
8
+
9
+ export { SwipeDirection };
@@ -13,3 +13,5 @@ import './components/header/Component.js';
13
13
  import '../../navigation-bar/esm';
14
14
  import './components/swipeable-backdrop/Component.js';
15
15
  import '../../backdrop/esm';
16
+ import './consts/swipeConsts.js';
17
+ import './enums/swipeEnums.js';
@@ -0,0 +1,9 @@
1
+ import { SwipeDirections } from 'react-swipeable';
2
+ import { HandledEvents } from 'react-swipeable/es/types';
3
+ type ShouldSkipSwipingParams = {
4
+ deltaY: number;
5
+ startY: number;
6
+ event: HandledEvents;
7
+ dir: SwipeDirections;
8
+ };
9
+ export { ShouldSkipSwipingParams };
@@ -8,9 +8,11 @@ import { 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';
11
+ import { horizontalDirections } from './consts/swipeConsts.js';
11
12
  import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VELOCITY, CLOSE_OFFSET } from './utils.js';
12
13
  import '../../navigation-bar/modern';
13
14
  import '../../backdrop/modern';
15
+ import './enums/swipeEnums.js';
14
16
 
15
17
  const styles = {"modal":"bottom-sheet__modal_tmbtb","wrapper":"bottom-sheet__wrapper_tmbtb","fullscreen":"bottom-sheet__fullscreen_tmbtb","component":"bottom-sheet__component_tmbtb","withTransition":"bottom-sheet__withTransition_tmbtb","scrollableContainer":"bottom-sheet__scrollableContainer_tmbtb","marker":"bottom-sheet__marker_tmbtb","defaultMarker":"bottom-sheet__defaultMarker_tmbtb","content":"bottom-sheet__content_tmbtb","noHeader":"bottom-sheet__noHeader_tmbtb","noFooter":"bottom-sheet__noFooter_tmbtb","scrollLocked":"bottom-sheet__scrollLocked_tmbtb","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_tmbtb","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_tmbtb","appear":"bottom-sheet__appear_tmbtb","enter":"bottom-sheet__enter_tmbtb","appearActive":"bottom-sheet__appearActive_tmbtb","enterActive":"bottom-sheet__enterActive_tmbtb","enterDone":"bottom-sheet__enterDone_tmbtb","appearDone":"bottom-sheet__appearDone_tmbtb","exit":"bottom-sheet__exit_tmbtb","exitActive":"bottom-sheet__exitActive_tmbtb","safeAreaBottom":"bottom-sheet__safeAreaBottom_tmbtb","background-accent":"bottom-sheet__background-accent_tmbtb","background-info":"bottom-sheet__background-info_tmbtb","background-attention-muted":"bottom-sheet__background-attention-muted_tmbtb","background-positive-muted":"bottom-sheet__background-positive-muted_tmbtb","background-negative-muted":"bottom-sheet__background-negative-muted_tmbtb","background-primary":"bottom-sheet__background-primary_tmbtb","background-primary-inverted":"bottom-sheet__background-primary-inverted_tmbtb","background-secondary":"bottom-sheet__background-secondary_tmbtb","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_tmbtb","background-tertiary":"bottom-sheet__background-tertiary_tmbtb","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_tmbtb","background-quaternary":"bottom-sheet__background-quaternary_tmbtb","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_tmbtb","background-specialbg-component":"bottom-sheet__background-specialbg-component_tmbtb","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_tmbtb","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_tmbtb","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_tmbtb","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_tmbtb","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_tmbtb","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_tmbtb","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_tmbtb","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_tmbtb"};
16
18
  require('./index.css');
@@ -199,7 +201,8 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
199
201
  * Если контент внутри шторки скроллится - то шторка не должна свайпаться
200
202
  * Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
201
203
  */
202
- const shouldSkipSwiping = (deltaY, startY, event) => {
204
+ const shouldSkipSwiping = (swipeParams) => {
205
+ const { deltaY, startY, event, dir } = swipeParams;
203
206
  if (scrollLockedProp || swipingInProgress)
204
207
  return false;
205
208
  if (!swipeableContent && contentRef.current?.contains(event.target)) {
@@ -224,23 +227,34 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
224
227
  if (!scrollOccurred.current && shouldScroll) {
225
228
  scrollOccurred.current = true;
226
229
  }
230
+ // Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться
231
+ if (horizontalDirections.includes(dir)) {
232
+ return true;
233
+ }
227
234
  return shouldScroll;
228
235
  };
229
- const handleSheetSwipe = ({ initial, velocity, deltaY, event }) => {
230
- if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
236
+ const handleSheetSwipeEnd = (swipeParams) => {
237
+ const { initial, velocity, deltaY, event, dir } = swipeParams;
238
+ const shouldPreventSwipe = scrollOccurred.current ||
239
+ shouldSkipSwiping({ deltaY, startY: initial[1], event, dir });
240
+ if (shouldPreventSwipe) {
231
241
  return;
232
242
  }
233
243
  magnetize(velocity, deltaY);
234
244
  };
235
- const handleSheetSwipeStart = ({ deltaY, initial, event }) => {
236
- if (shouldSkipSwiping(deltaY, initial[1], event)) {
245
+ const handleSheetSwipeStart = (swipeParams) => {
246
+ const { deltaY, initial, event, dir } = swipeParams;
247
+ if (shouldSkipSwiping({ deltaY, startY: initial[1], event, dir })) {
237
248
  return;
238
249
  }
239
250
  startSwiping(event);
240
251
  };
241
252
  const handleTouchEnd = ({ event }) => stopSwiping(event);
242
- const handleSheetSwiping = ({ initial, deltaY, event }) => {
243
- if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
253
+ const handleSheetSwipeMove = (swipeParams) => {
254
+ const { initial, deltaY, event, dir } = swipeParams;
255
+ const shouldPreventSwipe = scrollOccurred.current ||
256
+ shouldSkipSwiping({ deltaY, startY: initial[1], event, dir });
257
+ if (shouldPreventSwipe) {
244
258
  return;
245
259
  }
246
260
  if (!swipingInProgress) {
@@ -253,8 +267,8 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
253
267
  };
254
268
  const sheetSwipeableHandlers = useSwipeable({
255
269
  onSwipeStart: handleSheetSwipeStart,
256
- onSwiping: handleSheetSwiping,
257
- onSwiped: handleSheetSwipe,
270
+ onSwiping: handleSheetSwipeMove,
271
+ onSwiped: handleSheetSwipeEnd,
258
272
  onTouchEndOrOnMouseUp: handleTouchEnd,
259
273
  trackMouse: swipeable,
260
274
  trackTouch: swipeable,
@@ -0,0 +1,2 @@
1
+ declare const horizontalDirections: [string, string];
2
+ export { horizontalDirections };
@@ -0,0 +1,5 @@
1
+ import { SwipeDirection } from '../enums/swipeEnums.js';
2
+
3
+ const horizontalDirections = [SwipeDirection.Left, SwipeDirection.Right];
4
+
5
+ export { horizontalDirections };
@@ -0,0 +1,7 @@
1
+ declare enum SwipeDirection {
2
+ Left = "Left",
3
+ Right = "Right",
4
+ Up = "Up",
5
+ Down = "Down"
6
+ }
7
+ export { SwipeDirection };
@@ -0,0 +1,9 @@
1
+ var SwipeDirection;
2
+ (function (SwipeDirection) {
3
+ SwipeDirection["Left"] = "Left";
4
+ SwipeDirection["Right"] = "Right";
5
+ SwipeDirection["Up"] = "Up";
6
+ SwipeDirection["Down"] = "Down";
7
+ })(SwipeDirection || (SwipeDirection = {}));
8
+
9
+ export { SwipeDirection };
@@ -12,3 +12,5 @@ import './components/header/Component.js';
12
12
  import '../../navigation-bar/modern';
13
13
  import './components/swipeable-backdrop/Component.js';
14
14
  import '../../backdrop/modern';
15
+ import './consts/swipeConsts.js';
16
+ import './enums/swipeEnums.js';
@@ -0,0 +1,9 @@
1
+ import { SwipeDirections } from 'react-swipeable';
2
+ import { HandledEvents } from 'react-swipeable/es/types';
3
+ type ShouldSkipSwipingParams = {
4
+ deltaY: number;
5
+ startY: number;
6
+ event: HandledEvents;
7
+ dir: SwipeDirections;
8
+ };
9
+ export { ShouldSkipSwipingParams };
@@ -0,0 +1,9 @@
1
+ import { SwipeDirections } from 'react-swipeable';
2
+ import { HandledEvents } from 'react-swipeable/es/types';
3
+ type ShouldSkipSwipingParams = {
4
+ deltaY: number;
5
+ startY: number;
6
+ event: HandledEvents;
7
+ dir: SwipeDirections;
8
+ };
9
+ export { ShouldSkipSwipingParams };
@@ -0,0 +1 @@
1
+
@@ -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-5581379b.js');
13
+ var components_screens_initial_countdownSection = require('../../../countdown-section-b30d5212.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-5581379b.js');
10
+ var components_screens_initial_countdownSection = require('../../../countdown-section-b30d5212.js');
11
11
 
12
12
 
13
13
 
@@ -16,7 +16,7 @@ import '../../code-input/esm/mobile';
16
16
  import '../../link/esm';
17
17
  import '../../typography/esm';
18
18
  import './components/header/component.js';
19
- import './countdown-section-2f02c020.js';
19
+ import './countdown-section-c4f73a77.js';
20
20
  import '../../button/esm';
21
21
  import '../../spinner/esm';
22
22
  import './components/screens/hint/component.js';
@@ -15,7 +15,7 @@ import '../../../../code-input/esm/mobile';
15
15
  import '../../../../link/esm';
16
16
  import '../../../../typography/esm';
17
17
  import '../header/component.js';
18
- import '../../countdown-section-2f02c020.js';
18
+ import '../../countdown-section-c4f73a77.js';
19
19
  import '../../../../button/esm';
20
20
  import '../../../../spinner/esm';
21
21
  import '../countdown-loader/component.js';
@@ -13,7 +13,7 @@ import '../../../../code-input/esm/mobile';
13
13
  import '../../../../link/esm';
14
14
  import '../../../../typography/esm';
15
15
  import '../header/component.js';
16
- import '../../countdown-section-2f02c020.js';
16
+ import '../../countdown-section-c4f73a77.js';
17
17
  import '../../../../button/esm';
18
18
  import '../../../../spinner/esm';
19
19
  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-2f02c020.js';
17
+ import '../countdown-section-c4f73a77.js';
18
18
  import '../../../button/esm';
19
19
  import '../../../spinner/esm';
@@ -13,7 +13,7 @@ import '@alfalab/hooks';
13
13
  import '../../context.js';
14
14
  import '../../utils.js';
15
15
  import '../header/component.js';
16
- import '../../countdown-section-2f02c020.js';
16
+ import '../../countdown-section-c4f73a77.js';
17
17
  import '../../../../button/esm';
18
18
  import '../../../../spinner/esm';
19
19
  import '../countdown-loader/component.js';
@@ -8,7 +8,7 @@ import { Typography } from '../../../../../typography/esm';
8
8
  import { usePrevious, useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
9
9
  import { ConfirmationContext } from '../../../context.js';
10
10
  import { Header } from '../../header/component.js';
11
- import { s as styles, C as CountdownSection } from '../../../countdown-section-2f02c020.js';
11
+ import { s as styles, C as CountdownSection } from '../../../countdown-section-c4f73a77.js';
12
12
  import '../../../utils.js';
13
13
  import '../../../../../button/esm';
14
14
  import '../../../../../spinner/esm';
@@ -4,5 +4,5 @@ import '../../../../../button/esm';
4
4
  import '../../../../../spinner/esm';
5
5
  import '../../../../../typography/esm';
6
6
  import '../../../context.js';
7
- export { C as CountdownSection } from '../../../countdown-section-2f02c020.js';
7
+ export { C as CountdownSection } from '../../../countdown-section-c4f73a77.js';
8
8
  import '../../../utils.js';
@@ -10,6 +10,6 @@ import '@alfalab/hooks';
10
10
  import '../../../context.js';
11
11
  import '../../../utils.js';
12
12
  import '../../header/component.js';
13
- import '../../../countdown-section-2f02c020.js';
13
+ import '../../../countdown-section-c4f73a77.js';
14
14
  import '../../../../../button/esm';
15
15
  import '../../../../../spinner/esm';
@@ -13,7 +13,7 @@ import '../../../code-input/esm/mobile';
13
13
  import '../../../link/esm';
14
14
  import '../../../typography/esm';
15
15
  import '../components/header/component.js';
16
- import '../countdown-section-2f02c020.js';
16
+ import '../countdown-section-c4f73a77.js';
17
17
  import '../../../button/esm';
18
18
  import '../../../spinner/esm';
19
19
  import '../components/screens/hint/component.js';
@@ -14,7 +14,7 @@ import '../../../code-input/esm/mobile';
14
14
  import '../../../link/esm';
15
15
  import '../../../typography/esm';
16
16
  import '../components/header/component.js';
17
- import '../countdown-section-2f02c020.js';
17
+ import '../countdown-section-c4f73a77.js';
18
18
  import '../../../button/esm';
19
19
  import '../../../spinner/esm';
20
20
  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 './components/header/component.js';
19
- import './countdown-section-2f02c020.js';
19
+ import './countdown-section-c4f73a77.js';
20
20
  import '../../button/esm';
21
21
  import '../../spinner/esm';
22
22
  import './components/screens/hint/component.js';
@@ -13,7 +13,7 @@ import '../../../code-input/esm/mobile';
13
13
  import '../../../link/esm';
14
14
  import '../../../typography/esm';
15
15
  import '../components/header/component.js';
16
- import '../countdown-section-2f02c020.js';
16
+ import '../countdown-section-c4f73a77.js';
17
17
  import '../../../button/esm';
18
18
  import '../../../spinner/esm';
19
19
  import '../components/screens/hint/component.js';
@@ -14,7 +14,7 @@ import '../../../code-input/esm/mobile';
14
14
  import '../../../link/esm';
15
15
  import '../../../typography/esm';
16
16
  import '../components/header/component.js';
17
- import '../countdown-section-2f02c020.js';
17
+ import '../countdown-section-c4f73a77.js';
18
18
  import '../../../button/esm';
19
19
  import '../../../spinner/esm';
20
20
  import '../components/screens/hint/component.js';
@@ -15,6 +15,6 @@ import '../../../link/esm';
15
15
  import '../../../typography/esm';
16
16
  import '@alfalab/hooks';
17
17
  import '../components/header/component.js';
18
- import '../countdown-section-2f02c020.js';
18
+ import '../countdown-section-c4f73a77.js';
19
19
  import '../../../button/esm';
20
20
  import '../../../spinner/esm';
@@ -15,7 +15,7 @@ import '../../code-input/modern/mobile';
15
15
  import '../../link/modern';
16
16
  import '../../typography/modern';
17
17
  import './components/header/component.js';
18
- import './countdown-section-27ad8a44.js';
18
+ import './countdown-section-f3215ad8.js';
19
19
  import '../../button/modern';
20
20
  import '../../spinner/modern';
21
21
  import './components/screens/hint/component.js';
@@ -14,7 +14,7 @@ import '../../../../code-input/modern/mobile';
14
14
  import '../../../../link/modern';
15
15
  import '../../../../typography/modern';
16
16
  import '../header/component.js';
17
- import '../../countdown-section-27ad8a44.js';
17
+ import '../../countdown-section-f3215ad8.js';
18
18
  import '../../../../button/modern';
19
19
  import '../../../../spinner/modern';
20
20
  import '../countdown-loader/component.js';
@@ -12,7 +12,7 @@ import '../../../../code-input/modern/mobile';
12
12
  import '../../../../link/modern';
13
13
  import '../../../../typography/modern';
14
14
  import '../header/component.js';
15
- import '../../countdown-section-27ad8a44.js';
15
+ import '../../countdown-section-f3215ad8.js';
16
16
  import '../../../../button/modern';
17
17
  import '../../../../spinner/modern';
18
18
  import '../screens/hint/component.js';