@alfalab/core-components 45.8.0-beta.1 → 45.8.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 (436) hide show
  1. package/bottom-sheet/component.js +12 -22
  2. package/bottom-sheet/cssm/component.js +12 -22
  3. package/bottom-sheet/esm/component.js +12 -23
  4. package/bottom-sheet/esm/index.js +0 -2
  5. package/bottom-sheet/modern/component.js +9 -23
  6. package/bottom-sheet/modern/index.js +0 -2
  7. package/calendar-range/esm/Component.js +1 -1
  8. package/calendar-range/esm/index.js +1 -1
  9. package/calendar-range/esm/views/popover.js +1 -1
  10. package/calendar-range/esm/views/static.js +1 -1
  11. package/calendar-range/modern/Component.js +1 -1
  12. package/calendar-range/modern/index.js +1 -1
  13. package/calendar-range/modern/views/popover.js +1 -1
  14. package/calendar-range/modern/views/static.js +1 -1
  15. package/calendar-range/utils.js +1 -3
  16. package/calendar-range/views/popover.js +1 -1
  17. package/calendar-range/views/static.js +1 -1
  18. package/dropzone/Component.d.ts +1 -1
  19. package/dropzone/Component.js +1 -1
  20. package/dropzone/cssm/Component.d.ts +1 -1
  21. package/dropzone/cssm/Component.js +1 -1
  22. package/dropzone/esm/Component.d.ts +1 -1
  23. package/dropzone/esm/Component.js +1 -1
  24. package/dropzone/modern/Component.d.ts +1 -1
  25. package/dropzone/modern/Component.js +1 -1
  26. package/gallery/components/header/Component.js +1 -1
  27. package/gallery/components/header/buttons.js +1 -1
  28. package/gallery/components/image-viewer/component.js +1 -1
  29. package/gallery/components/image-viewer/slide.js +1 -1
  30. package/gallery/esm/Component.js +2 -2
  31. package/gallery/esm/components/header/Component.js +1 -1
  32. package/gallery/esm/components/header/buttons.js +1 -1
  33. package/gallery/esm/components/header/index.js +1 -1
  34. package/gallery/esm/components/image-preview/Component.js +1 -1
  35. package/gallery/esm/components/image-preview/index.js +1 -1
  36. package/gallery/esm/components/image-viewer/component.js +1 -1
  37. package/gallery/esm/components/image-viewer/index.js +1 -1
  38. package/gallery/esm/components/image-viewer/slide.js +1 -1
  39. package/gallery/esm/components/index.js +2 -2
  40. package/gallery/esm/components/navigation-bar/Component.js +1 -1
  41. package/gallery/esm/components/navigation-bar/index.js +1 -1
  42. package/gallery/esm/index.js +2 -2
  43. package/gallery/modern/Component.js +2 -2
  44. package/gallery/modern/components/header/Component.js +1 -1
  45. package/gallery/modern/components/header/buttons.js +1 -1
  46. package/gallery/modern/components/header/index.js +1 -1
  47. package/gallery/modern/components/image-preview/Component.js +1 -1
  48. package/gallery/modern/components/image-preview/index.js +1 -1
  49. package/gallery/modern/components/image-viewer/component.js +1 -1
  50. package/gallery/modern/components/image-viewer/index.js +1 -1
  51. package/gallery/modern/components/image-viewer/slide.js +1 -1
  52. package/gallery/modern/components/index.js +2 -2
  53. package/gallery/modern/components/navigation-bar/Component.js +1 -1
  54. package/gallery/modern/components/navigation-bar/index.js +1 -1
  55. package/gallery/modern/index.js +2 -2
  56. package/international-phone-input/cssm/typings-57569e57.d.ts +2 -18
  57. package/international-phone-input/cssm/use-skeleton-1328ead9.d.ts +4 -0
  58. package/international-phone-input/esm/typings-57569e57.d.ts +2 -18
  59. package/international-phone-input/esm/use-skeleton-1328ead9.d.ts +4 -0
  60. package/international-phone-input/modern/typings-57569e57.d.ts +2 -18
  61. package/international-phone-input/modern/use-skeleton-1328ead9.d.ts +4 -0
  62. package/international-phone-input/typings-57569e57.d.ts +2 -18
  63. package/international-phone-input/use-skeleton-1328ead9.d.ts +4 -0
  64. package/modal/components/controls/Component.js +1 -1
  65. package/modal/components/footer/Component.js +1 -1
  66. package/modal/esm/Component.responsive.js +1 -1
  67. package/modal/esm/components/controls/Component.js +1 -1
  68. package/modal/esm/components/controls/index.js +1 -1
  69. package/modal/esm/components/footer/Component.js +1 -1
  70. package/modal/esm/desktop/Component.desktop.js +1 -1
  71. package/modal/esm/desktop/index.js +1 -1
  72. package/modal/esm/index.js +1 -1
  73. package/modal/esm/mobile/Component.mobile.js +1 -1
  74. package/modal/esm/mobile/index.js +1 -1
  75. package/modal/modern/Component.responsive.js +1 -1
  76. package/modal/modern/components/controls/Component.js +1 -1
  77. package/modal/modern/components/controls/index.js +1 -1
  78. package/modal/modern/components/footer/Component.js +1 -1
  79. package/modal/modern/desktop/Component.desktop.js +1 -1
  80. package/modal/modern/desktop/index.js +1 -1
  81. package/modal/modern/index.js +1 -1
  82. package/modal/modern/mobile/Component.mobile.js +1 -1
  83. package/modal/modern/mobile/index.js +1 -1
  84. package/notification/browser-a216f694.d.ts +6 -0
  85. package/notification/cssm/browser-a216f694.d.ts +6 -0
  86. package/notification/cssm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  87. package/notification/cssm/utils/getNotificationTestIds.d.ts +5 -0
  88. package/notification/cssm/utils/getNotificationTestIds.js +18 -0
  89. package/notification/esm/browser-a216f694.d.ts +6 -0
  90. package/notification/esm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  91. package/notification/esm/utils/getNotificationTestIds.d.ts +5 -0
  92. package/notification/esm/utils/getNotificationTestIds.js +16 -0
  93. package/notification/modern/browser-a216f694.d.ts +6 -0
  94. package/notification/modern/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  95. package/notification/modern/utils/getNotificationTestIds.d.ts +5 -0
  96. package/notification/modern/utils/getNotificationTestIds.js +16 -0
  97. package/notification/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  98. package/notification/utils/getNotificationTestIds.d.ts +5 -0
  99. package/notification/utils/getNotificationTestIds.js +18 -0
  100. package/package.json +1 -1
  101. package/picker-button/{esm/index-a5b021bd.d.ts → cssm/index-307da6d7.d.ts} +2 -1
  102. package/picker-button/cssm/typings-57569e57.d.ts +2 -18
  103. package/picker-button/cssm/use-skeleton-1328ead9.d.ts +4 -0
  104. package/picker-button/{modern/index-a5b021bd.d.ts → esm/index-307da6d7.d.ts} +2 -1
  105. package/picker-button/esm/typings-57569e57.d.ts +2 -18
  106. package/picker-button/esm/use-skeleton-1328ead9.d.ts +4 -0
  107. package/picker-button/{cssm/index-a5b021bd.d.ts → index-307da6d7.d.ts} +2 -1
  108. package/picker-button/{index-a5b021bd.d.ts → modern/index-307da6d7.d.ts} +2 -1
  109. package/picker-button/modern/typings-57569e57.d.ts +2 -18
  110. package/picker-button/modern/use-skeleton-1328ead9.d.ts +4 -0
  111. package/picker-button/typings-57569e57.d.ts +2 -18
  112. package/picker-button/use-skeleton-1328ead9.d.ts +4 -0
  113. package/select/esm/Component.responsive.js +1 -1
  114. package/select/esm/index.js +1 -1
  115. package/select/esm/mobile/Component.mobile.js +1 -1
  116. package/select/esm/mobile/Component.modal.mobile.js +1 -1
  117. package/select/esm/mobile/index.js +1 -1
  118. package/select/esm/presets/index.js +1 -1
  119. package/select/esm/presets/useSelectWithApply/hook.js +1 -1
  120. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  121. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  122. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  123. package/select/esm/shared/index.js +1 -1
  124. package/select/mobile/Component.mobile.js +1 -1
  125. package/select/modern/Component.responsive.js +1 -1
  126. package/select/modern/index.js +1 -1
  127. package/select/modern/mobile/Component.mobile.js +1 -1
  128. package/select/modern/mobile/Component.modal.mobile.js +1 -1
  129. package/select/modern/mobile/index.js +1 -1
  130. package/select/modern/presets/index.js +1 -1
  131. package/select/modern/presets/useSelectWithApply/hook.js +1 -1
  132. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  133. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  134. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  135. package/select/modern/shared/index.js +1 -1
  136. package/select/presets/index.js +1 -1
  137. package/select/presets/useSelectWithApply/hook.js +1 -1
  138. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  139. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  140. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  141. package/select/shared/index.js +1 -1
  142. package/shared/cssm/exhaustiveCheck.d.ts +2 -0
  143. package/shared/cssm/exhaustiveCheck.js +5 -0
  144. package/shared/cssm/index.d.ts +1 -0
  145. package/shared/cssm/index.js +2 -0
  146. package/shared/esm/exhaustiveCheck.d.ts +2 -0
  147. package/shared/esm/exhaustiveCheck.js +3 -0
  148. package/shared/esm/index.d.ts +1 -0
  149. package/shared/esm/index.js +1 -0
  150. package/shared/exhaustiveCheck.d.ts +2 -0
  151. package/shared/exhaustiveCheck.js +5 -0
  152. package/shared/index.d.ts +1 -0
  153. package/shared/index.js +2 -0
  154. package/shared/modern/exhaustiveCheck.d.ts +2 -0
  155. package/shared/modern/exhaustiveCheck.js +3 -0
  156. package/shared/modern/index.d.ts +1 -0
  157. package/shared/modern/index.js +1 -0
  158. package/side-panel/components/controls/Component.js +1 -1
  159. package/side-panel/components/footer/Component.js +1 -1
  160. package/side-panel/esm/Component.responsive.js +1 -1
  161. package/side-panel/esm/components/controls/Component.js +1 -1
  162. package/side-panel/esm/components/controls/index.js +1 -1
  163. package/side-panel/esm/components/footer/Component.desktop.js +1 -1
  164. package/side-panel/esm/components/footer/Component.js +1 -1
  165. package/side-panel/esm/components/footer/Component.mobile.js +1 -1
  166. package/side-panel/esm/desktop/Component.desktop.js +1 -1
  167. package/side-panel/esm/desktop/index.js +1 -1
  168. package/side-panel/esm/index.js +1 -1
  169. package/side-panel/esm/mobile/Component.mobile.js +1 -1
  170. package/side-panel/esm/mobile/index.js +1 -1
  171. package/side-panel/modern/Component.responsive.js +1 -1
  172. package/side-panel/modern/components/controls/Component.js +1 -1
  173. package/side-panel/modern/components/controls/index.js +1 -1
  174. package/side-panel/modern/components/footer/Component.desktop.js +1 -1
  175. package/side-panel/modern/components/footer/Component.js +1 -1
  176. package/side-panel/modern/components/footer/Component.mobile.js +1 -1
  177. package/side-panel/modern/desktop/Component.desktop.js +1 -1
  178. package/side-panel/modern/desktop/index.js +1 -1
  179. package/side-panel/modern/index.js +1 -1
  180. package/side-panel/modern/mobile/Component.mobile.js +1 -1
  181. package/side-panel/modern/mobile/index.js +1 -1
  182. package/skeleton/Component.d.ts +4 -0
  183. package/skeleton/Component.js +6 -3
  184. package/skeleton/cssm/Component.d.ts +4 -0
  185. package/skeleton/cssm/Component.js +5 -2
  186. package/skeleton/cssm/index.module.css +9 -42
  187. package/skeleton/esm/Component.d.ts +4 -0
  188. package/skeleton/esm/Component.js +6 -3
  189. package/skeleton/esm/index.css +9 -42
  190. package/skeleton/index.css +9 -42
  191. package/skeleton/modern/Component.d.ts +4 -0
  192. package/skeleton/modern/Component.js +6 -3
  193. package/skeleton/modern/index.css +9 -42
  194. package/status-badge/Component.d.ts +8 -3
  195. package/status-badge/Component.js +3 -73
  196. package/status-badge/consts/iconMap.d.ts +4 -0
  197. package/status-badge/consts/iconMap.js +76 -0
  198. package/status-badge/cssm/Component.d.ts +8 -3
  199. package/status-badge/cssm/Component.js +3 -73
  200. package/status-badge/cssm/consts/iconMap.d.ts +4 -0
  201. package/status-badge/cssm/consts/iconMap.js +76 -0
  202. package/status-badge/cssm/hooks/useStatusBadgeIcon.d.ts +5 -0
  203. package/status-badge/cssm/hooks/useStatusBadgeIcon.js +21 -0
  204. package/status-badge/cssm/index.d.ts +1 -0
  205. package/status-badge/cssm/types/statusBadgePropTypes.d.ts +7 -0
  206. package/status-badge/esm/Component.d.ts +8 -3
  207. package/status-badge/esm/Component.js +18 -73
  208. package/status-badge/esm/consts/iconMap.d.ts +4 -0
  209. package/status-badge/esm/consts/iconMap.js +74 -0
  210. package/status-badge/esm/hooks/useStatusBadgeIcon.d.ts +5 -0
  211. package/status-badge/esm/hooks/useStatusBadgeIcon.js +32 -0
  212. package/status-badge/esm/index.d.ts +1 -0
  213. package/status-badge/esm/index.js +3 -0
  214. package/status-badge/esm/types/statusBadgePropTypes.d.ts +7 -0
  215. package/status-badge/hooks/useStatusBadgeIcon.d.ts +5 -0
  216. package/status-badge/hooks/useStatusBadgeIcon.js +21 -0
  217. package/status-badge/index.d.ts +1 -0
  218. package/status-badge/modern/Component.d.ts +8 -3
  219. package/status-badge/modern/Component.js +17 -73
  220. package/status-badge/modern/consts/iconMap.d.ts +4 -0
  221. package/status-badge/modern/consts/iconMap.js +74 -0
  222. package/status-badge/modern/hooks/useStatusBadgeIcon.d.ts +5 -0
  223. package/status-badge/modern/hooks/useStatusBadgeIcon.js +34 -0
  224. package/status-badge/modern/index.d.ts +1 -0
  225. package/status-badge/modern/index.js +2 -0
  226. package/status-badge/modern/types/statusBadgePropTypes.d.ts +7 -0
  227. package/status-badge/types/statusBadgePropTypes.d.ts +7 -0
  228. package/tab-bar/Component.js +7 -3
  229. package/tab-bar/components/tab/Component.js +9 -5
  230. package/tab-bar/components/tab/index.css +5 -2
  231. package/tab-bar/consts.d.ts +9 -0
  232. package/tab-bar/consts.js +13 -0
  233. package/tab-bar/cssm/Component.js +6 -2
  234. package/tab-bar/cssm/components/tab/Component.js +8 -4
  235. package/tab-bar/cssm/components/tab/index.module.css +5 -2
  236. package/tab-bar/cssm/consts.d.ts +9 -0
  237. package/tab-bar/cssm/consts.js +13 -0
  238. package/tab-bar/cssm/index.module.css +9 -7
  239. package/tab-bar/cssm/types.d.ts +11 -3
  240. package/tab-bar/esm/Component.js +9 -4
  241. package/tab-bar/esm/components/tab/Component.js +9 -5
  242. package/tab-bar/esm/components/tab/index.css +5 -2
  243. package/tab-bar/esm/components/tab/index.js +2 -1
  244. package/tab-bar/esm/consts.d.ts +9 -0
  245. package/tab-bar/esm/consts.js +10 -0
  246. package/tab-bar/esm/index.css +9 -7
  247. package/tab-bar/esm/index.js +2 -1
  248. package/tab-bar/esm/types.d.ts +11 -3
  249. package/tab-bar/index.css +9 -7
  250. package/tab-bar/modern/Component.js +9 -4
  251. package/tab-bar/modern/components/tab/Component.js +9 -5
  252. package/tab-bar/modern/components/tab/index.css +5 -2
  253. package/tab-bar/modern/components/tab/index.js +2 -1
  254. package/tab-bar/modern/consts.d.ts +9 -0
  255. package/tab-bar/modern/consts.js +10 -0
  256. package/tab-bar/modern/index.css +9 -7
  257. package/tab-bar/modern/index.js +2 -1
  258. package/tab-bar/modern/types.d.ts +11 -3
  259. package/tab-bar/types.d.ts +11 -3
  260. package/themes/click.css +0 -6
  261. package/themes/compiled/mobile-dark-bluetint.css +17 -27
  262. package/themes/mixins/click.css +0 -2
  263. package/toast-plate/browser-a216f694.d.ts +6 -0
  264. package/toast-plate/components/base-toast-plate/component.d.ts +9 -12
  265. package/toast-plate/components/base-toast-plate/component.js +16 -14
  266. package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
  267. package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.js +13 -0
  268. package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
  269. package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.js +26 -0
  270. package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
  271. package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
  272. package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
  273. package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +14 -0
  274. package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
  275. package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.js +8 -0
  276. package/toast-plate/cssm/browser-a216f694.d.ts +6 -0
  277. package/toast-plate/cssm/components/base-toast-plate/component.d.ts +9 -12
  278. package/toast-plate/cssm/components/base-toast-plate/component.js +16 -14
  279. package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
  280. package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.js +13 -0
  281. package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
  282. package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.js +26 -0
  283. package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
  284. package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
  285. package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
  286. package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +14 -0
  287. package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
  288. package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.js +8 -0
  289. package/toast-plate/cssm/getDataTestId-73ea38f8.d.ts +3 -0
  290. package/toast-plate/cssm/getDataTestId-73ea38f8.js +6 -0
  291. package/toast-plate/cssm/index-307da6d7.d.ts +71 -0
  292. package/toast-plate/cssm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  293. package/toast-plate/esm/Component.responsive.js +6 -4
  294. package/toast-plate/esm/browser-a216f694.d.ts +6 -0
  295. package/toast-plate/esm/components/base-toast-plate/component.d.ts +9 -12
  296. package/toast-plate/esm/components/base-toast-plate/component.js +16 -14
  297. package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
  298. package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.js +11 -0
  299. package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
  300. package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.js +24 -0
  301. package/toast-plate/esm/components/base-toast-plate/index.js +6 -4
  302. package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
  303. package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
  304. package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
  305. package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +12 -0
  306. package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
  307. package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.js +6 -0
  308. package/toast-plate/esm/desktop/Component.desktop.js +6 -4
  309. package/toast-plate/esm/desktop/index.js +6 -4
  310. package/toast-plate/esm/getDataTestId-b3cf0f77.d.ts +3 -0
  311. package/toast-plate/esm/getDataTestId-b3cf0f77.js +6 -0
  312. package/toast-plate/esm/index-307da6d7.d.ts +71 -0
  313. package/toast-plate/esm/index.js +6 -4
  314. package/toast-plate/esm/mobile/Component.mobile.js +6 -4
  315. package/toast-plate/esm/mobile/index.js +6 -4
  316. package/toast-plate/esm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  317. package/toast-plate/getDataTestId-439ac98c.d.ts +3 -0
  318. package/toast-plate/getDataTestId-439ac98c.js +6 -0
  319. package/toast-plate/index-307da6d7.d.ts +71 -0
  320. package/toast-plate/modern/Component.responsive.js +6 -4
  321. package/toast-plate/modern/browser-a216f694.d.ts +6 -0
  322. package/toast-plate/modern/components/base-toast-plate/component.d.ts +9 -12
  323. package/toast-plate/modern/components/base-toast-plate/component.js +16 -14
  324. package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
  325. package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.js +11 -0
  326. package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
  327. package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.js +24 -0
  328. package/toast-plate/modern/components/base-toast-plate/index.js +6 -4
  329. package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
  330. package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
  331. package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
  332. package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +12 -0
  333. package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
  334. package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.js +4 -0
  335. package/toast-plate/modern/desktop/Component.desktop.js +6 -4
  336. package/toast-plate/modern/desktop/index.js +6 -4
  337. package/toast-plate/modern/getDataTestId-8aa8ef85.d.ts +3 -0
  338. package/toast-plate/modern/getDataTestId-8aa8ef85.js +6 -0
  339. package/toast-plate/modern/index-307da6d7.d.ts +71 -0
  340. package/toast-plate/modern/index.js +6 -4
  341. package/toast-plate/modern/mobile/Component.mobile.js +6 -4
  342. package/toast-plate/modern/mobile/index.js +6 -4
  343. package/toast-plate/modern/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  344. package/toast-plate/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  345. package/typography/esm/component.js +2 -2
  346. package/typography/esm/index.js +2 -2
  347. package/typography/esm/text/component.js +1 -1
  348. package/typography/esm/text/index.js +1 -1
  349. package/typography/esm/title/component.js +1 -1
  350. package/typography/esm/title/index.js +2 -2
  351. package/typography/esm/title-mobile/component.js +2 -2
  352. package/typography/esm/title-mobile/index.js +2 -2
  353. package/typography/esm/title-responsive/component.js +2 -2
  354. package/typography/esm/title-responsive/index.js +2 -2
  355. package/typography/modern/component.js +2 -2
  356. package/typography/modern/index.js +2 -2
  357. package/typography/modern/text/component.js +1 -1
  358. package/typography/modern/text/index.js +1 -1
  359. package/typography/modern/title/component.js +1 -1
  360. package/typography/modern/title/index.js +2 -2
  361. package/typography/modern/title-mobile/component.js +2 -2
  362. package/typography/modern/title-mobile/index.js +2 -2
  363. package/typography/modern/title-responsive/component.js +2 -2
  364. package/typography/modern/title-responsive/index.js +2 -2
  365. package/typography/text/component.js +1 -1
  366. package/typography/title/component.js +1 -1
  367. package/typography/title/index.js +1 -1
  368. package/typography/title-mobile/component.js +1 -1
  369. package/typography/title-responsive/component.js +1 -1
  370. package/universal-date-input/cssm/use-skeleton-1328ead9.d.ts +4 -0
  371. package/universal-date-input/esm/use-skeleton-1328ead9.d.ts +4 -0
  372. package/universal-date-input/modern/use-skeleton-1328ead9.d.ts +4 -0
  373. package/universal-date-input/use-skeleton-1328ead9.d.ts +4 -0
  374. package/bottom-sheet/consts/swipeConsts.d.ts +0 -2
  375. package/bottom-sheet/consts/swipeConsts.js +0 -7
  376. package/bottom-sheet/cssm/consts/swipeConsts.d.ts +0 -2
  377. package/bottom-sheet/cssm/consts/swipeConsts.js +0 -7
  378. package/bottom-sheet/cssm/enums/swipeEnums.d.ts +0 -7
  379. package/bottom-sheet/cssm/enums/swipeEnums.js +0 -9
  380. package/bottom-sheet/cssm/types/swipeTypes.d.ts +0 -9
  381. package/bottom-sheet/enums/swipeEnums.d.ts +0 -7
  382. package/bottom-sheet/enums/swipeEnums.js +0 -9
  383. package/bottom-sheet/esm/consts/swipeConsts.d.ts +0 -2
  384. package/bottom-sheet/esm/consts/swipeConsts.js +0 -5
  385. package/bottom-sheet/esm/enums/swipeEnums.d.ts +0 -7
  386. package/bottom-sheet/esm/enums/swipeEnums.js +0 -9
  387. package/bottom-sheet/esm/types/swipeTypes.d.ts +0 -9
  388. package/bottom-sheet/modern/consts/swipeConsts.d.ts +0 -2
  389. package/bottom-sheet/modern/consts/swipeConsts.js +0 -5
  390. package/bottom-sheet/modern/enums/swipeEnums.d.ts +0 -7
  391. package/bottom-sheet/modern/enums/swipeEnums.js +0 -9
  392. package/bottom-sheet/modern/types/swipeTypes.d.ts +0 -9
  393. package/bottom-sheet/types/swipeTypes.d.ts +0 -9
  394. package/themes/mixins/skeleton/click.css +0 -8
  395. package/themes/skeleton/click.css +0 -8
  396. /package/calendar-range/esm/{index.module-7ba85cb1.js → index.module-912e88cf.js} +0 -0
  397. /package/calendar-range/{index.module-c6ded4a2.js → index.module-bf0591f0.js} +0 -0
  398. /package/calendar-range/modern/{index.module-0604d154.js → index.module-636e08a2.js} +0 -0
  399. /package/gallery/{buttons-01e8353f.d.ts → buttons-19c30d23.d.ts} +0 -0
  400. /package/gallery/{buttons-01e8353f.js → buttons-19c30d23.js} +0 -0
  401. /package/gallery/esm/{buttons-85c1b9a3.d.ts → buttons-37ed3ab5.d.ts} +0 -0
  402. /package/gallery/esm/{buttons-85c1b9a3.js → buttons-37ed3ab5.js} +0 -0
  403. /package/gallery/esm/{slide-530dfb83.d.ts → slide-8d1299a5.d.ts} +0 -0
  404. /package/gallery/esm/{slide-530dfb83.js → slide-8d1299a5.js} +0 -0
  405. /package/gallery/modern/{buttons-5f86c790.d.ts → buttons-92efe05c.d.ts} +0 -0
  406. /package/gallery/modern/{buttons-5f86c790.js → buttons-92efe05c.js} +0 -0
  407. /package/gallery/modern/{slide-afec4d99.d.ts → slide-57aa7661.d.ts} +0 -0
  408. /package/gallery/modern/{slide-afec4d99.js → slide-57aa7661.js} +0 -0
  409. /package/gallery/{slide-18998644.d.ts → slide-45ca49f1.d.ts} +0 -0
  410. /package/gallery/{slide-18998644.js → slide-45ca49f1.js} +0 -0
  411. /package/modal/esm/{layout.module-1b8afca9.js → layout.module-b635b128.js} +0 -0
  412. /package/modal/{layout.module-3eb92921.js → layout.module-34149103.js} +0 -0
  413. /package/modal/modern/{layout.module-13b15398.js → layout.module-41e8947b.js} +0 -0
  414. /package/picker-button/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
  415. /package/picker-button/cssm/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
  416. /package/picker-button/esm/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
  417. /package/picker-button/modern/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
  418. /package/select/esm/{hook-aa7d4c07.d.ts → hook-c0758dcd.d.ts} +0 -0
  419. /package/select/esm/{hook-aa7d4c07.js → hook-c0758dcd.js} +0 -0
  420. /package/select/{hook-f0adfa6b.d.ts → hook-10a14b43.d.ts} +0 -0
  421. /package/select/{hook-f0adfa6b.js → hook-10a14b43.js} +0 -0
  422. /package/select/modern/{hook-d72e58c4.d.ts → hook-5ccdb908.d.ts} +0 -0
  423. /package/select/modern/{hook-d72e58c4.js → hook-5ccdb908.js} +0 -0
  424. /package/side-panel/esm/{layout.module-d6ca40a5.js → layout.module-0dc6a00f.js} +0 -0
  425. /package/side-panel/{layout.module-85234bb1.js → layout.module-5eeb8248.js} +0 -0
  426. /package/side-panel/modern/{layout.module-9f8549ee.js → layout.module-6f83e451.js} +0 -0
  427. /package/{bottom-sheet/cssm/types/swipeTypes.js → status-badge/cssm/types/statusBadgePropTypes.js} +0 -0
  428. /package/{bottom-sheet/esm/types/swipeTypes.js → status-badge/esm/types/statusBadgePropTypes.js} +0 -0
  429. /package/{bottom-sheet/modern/types/swipeTypes.js → status-badge/modern/types/statusBadgePropTypes.js} +0 -0
  430. /package/{bottom-sheet/types/swipeTypes.js → status-badge/types/statusBadgePropTypes.js} +0 -0
  431. /package/typography/{colors.module-a11b73e9.js → colors.module-5b90a9cc.js} +0 -0
  432. /package/typography/{common.module-25e7ce83.js → common.module-53a00318.js} +0 -0
  433. /package/typography/esm/{colors.module-e5414e42.js → colors.module-f2501c6f.js} +0 -0
  434. /package/typography/esm/{common.module-bd07cc74.js → common.module-04c7810e.js} +0 -0
  435. /package/typography/modern/{colors.module-9fa7fdee.js → colors.module-83a4b747.js} +0 -0
  436. /package/typography/modern/{common.module-e73684d9.js → common.module-278c339a.js} +0 -0
@@ -11,7 +11,6 @@ var coreComponentsShared = require('../shared');
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');
15
14
  var utils = require('./utils.js');
16
15
 
17
16
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -186,9 +185,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
186
185
  * Если контент внутри шторки скроллится - то шторка не должна свайпаться
187
186
  * Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
188
187
  */
189
- var shouldSkipSwiping = function (swipeParams) {
188
+ var shouldSkipSwiping = function (deltaY, startY, event) {
190
189
  var _a;
191
- var deltaY = swipeParams.deltaY, startY = swipeParams.startY, event = swipeParams.event, dir = swipeParams.dir;
192
190
  if (scrollLockedProp || swipingInProgress)
193
191
  return false;
194
192
  if (!swipeableContent && ((_a = contentRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {
@@ -213,24 +211,18 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
213
211
  if (!scrollOccurred.current && shouldScroll) {
214
212
  scrollOccurred.current = true;
215
213
  }
216
- // Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться
217
- if (consts_swipeConsts.horizontalDirections.includes(dir)) {
218
- return true;
219
- }
220
214
  return shouldScroll;
221
215
  };
222
- var handleSheetSwipeEnd = function (swipeParams) {
223
- var initial = swipeParams.initial, velocity = swipeParams.velocity, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
224
- var shouldPreventSwipe = scrollOccurred.current ||
225
- shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
226
- if (shouldPreventSwipe) {
216
+ var handleSheetSwipe = function (_a) {
217
+ var initial = _a.initial, velocity = _a.velocity, deltaY = _a.deltaY, event = _a.event;
218
+ if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
227
219
  return;
228
220
  }
229
221
  magnetize(velocity, deltaY);
230
222
  };
231
- var handleSheetSwipeStart = function (swipeParams) {
232
- var deltaY = swipeParams.deltaY, initial = swipeParams.initial, event = swipeParams.event, dir = swipeParams.dir;
233
- if (shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir })) {
223
+ var handleSheetSwipeStart = function (_a) {
224
+ var deltaY = _a.deltaY, initial = _a.initial, event = _a.event;
225
+ if (shouldSkipSwiping(deltaY, initial[1], event)) {
234
226
  return;
235
227
  }
236
228
  startSwiping(event);
@@ -239,11 +231,9 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
239
231
  var event = _a.event;
240
232
  return stopSwiping(event);
241
233
  };
242
- var handleSheetSwipeMove = function (swipeParams) {
243
- var initial = swipeParams.initial, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
244
- var shouldPreventSwipe = scrollOccurred.current ||
245
- shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
246
- if (shouldPreventSwipe) {
234
+ var handleSheetSwiping = function (_a) {
235
+ var initial = _a.initial, deltaY = _a.deltaY, event = _a.event;
236
+ if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
247
237
  return;
248
238
  }
249
239
  if (!swipingInProgress) {
@@ -256,8 +246,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
256
246
  };
257
247
  var sheetSwipeableHandlers = reactSwipeable.useSwipeable({
258
248
  onSwipeStart: handleSheetSwipeStart,
259
- onSwiping: handleSheetSwipeMove,
260
- onSwiped: handleSheetSwipeEnd,
249
+ onSwiping: handleSheetSwiping,
250
+ onSwiped: handleSheetSwipe,
261
251
  onTouchEndOrOnMouseUp: handleTouchEnd,
262
252
  trackMouse: swipeable,
263
253
  trackTouch: swipeable,
@@ -11,7 +11,6 @@ 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');
15
14
  var utils = require('./utils.js');
16
15
  var styles = require('./index.module.css');
17
16
 
@@ -185,9 +184,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
185
184
  * Если контент внутри шторки скроллится - то шторка не должна свайпаться
186
185
  * Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
187
186
  */
188
- var shouldSkipSwiping = function (swipeParams) {
187
+ var shouldSkipSwiping = function (deltaY, startY, event) {
189
188
  var _a;
190
- var deltaY = swipeParams.deltaY, startY = swipeParams.startY, event = swipeParams.event, dir = swipeParams.dir;
191
189
  if (scrollLockedProp || swipingInProgress)
192
190
  return false;
193
191
  if (!swipeableContent && ((_a = contentRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {
@@ -212,24 +210,18 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
212
210
  if (!scrollOccurred.current && shouldScroll) {
213
211
  scrollOccurred.current = true;
214
212
  }
215
- // Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться
216
- if (consts_swipeConsts.horizontalDirections.includes(dir)) {
217
- return true;
218
- }
219
213
  return shouldScroll;
220
214
  };
221
- var handleSheetSwipeEnd = function (swipeParams) {
222
- var initial = swipeParams.initial, velocity = swipeParams.velocity, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
223
- var shouldPreventSwipe = scrollOccurred.current ||
224
- shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
225
- if (shouldPreventSwipe) {
215
+ var handleSheetSwipe = function (_a) {
216
+ var initial = _a.initial, velocity = _a.velocity, deltaY = _a.deltaY, event = _a.event;
217
+ if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
226
218
  return;
227
219
  }
228
220
  magnetize(velocity, deltaY);
229
221
  };
230
- var handleSheetSwipeStart = function (swipeParams) {
231
- var deltaY = swipeParams.deltaY, initial = swipeParams.initial, event = swipeParams.event, dir = swipeParams.dir;
232
- if (shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir })) {
222
+ var handleSheetSwipeStart = function (_a) {
223
+ var deltaY = _a.deltaY, initial = _a.initial, event = _a.event;
224
+ if (shouldSkipSwiping(deltaY, initial[1], event)) {
233
225
  return;
234
226
  }
235
227
  startSwiping(event);
@@ -238,11 +230,9 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
238
230
  var event = _a.event;
239
231
  return stopSwiping(event);
240
232
  };
241
- var handleSheetSwipeMove = function (swipeParams) {
242
- var initial = swipeParams.initial, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
243
- var shouldPreventSwipe = scrollOccurred.current ||
244
- shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
245
- if (shouldPreventSwipe) {
233
+ var handleSheetSwiping = function (_a) {
234
+ var initial = _a.initial, deltaY = _a.deltaY, event = _a.event;
235
+ if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
246
236
  return;
247
237
  }
248
238
  if (!swipingInProgress) {
@@ -255,8 +245,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
255
245
  };
256
246
  var sheetSwipeableHandlers = reactSwipeable.useSwipeable({
257
247
  onSwipeStart: handleSheetSwipeStart,
258
- onSwiping: handleSheetSwipeMove,
259
- onSwiped: handleSheetSwipeEnd,
248
+ onSwiping: handleSheetSwiping,
249
+ onSwiped: handleSheetSwipe,
260
250
  onTouchEndOrOnMouseUp: handleTouchEnd,
261
251
  trackMouse: swipeable,
262
252
  trackTouch: swipeable,
@@ -9,11 +9,9 @@ import { fnUtils, 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';
13
12
  import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VELOCITY, CLOSE_OFFSET } from './utils.js';
14
13
  import '../../navigation-bar/esm';
15
14
  import '../../backdrop/esm';
16
- import './enums/swipeEnums.js';
17
15
 
18
16
  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","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"};
19
17
  require('./index.css');
@@ -181,9 +179,8 @@ var BottomSheet = forwardRef(function (_a, ref) {
181
179
  * Если контент внутри шторки скроллится - то шторка не должна свайпаться
182
180
  * Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
183
181
  */
184
- var shouldSkipSwiping = function (swipeParams) {
182
+ var shouldSkipSwiping = function (deltaY, startY, event) {
185
183
  var _a;
186
- var deltaY = swipeParams.deltaY, startY = swipeParams.startY, event = swipeParams.event, dir = swipeParams.dir;
187
184
  if (scrollLockedProp || swipingInProgress)
188
185
  return false;
189
186
  if (!swipeableContent && ((_a = contentRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {
@@ -208,24 +205,18 @@ var BottomSheet = forwardRef(function (_a, ref) {
208
205
  if (!scrollOccurred.current && shouldScroll) {
209
206
  scrollOccurred.current = true;
210
207
  }
211
- // Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться
212
- if (horizontalDirections.includes(dir)) {
213
- return true;
214
- }
215
208
  return shouldScroll;
216
209
  };
217
- var handleSheetSwipeEnd = function (swipeParams) {
218
- var initial = swipeParams.initial, velocity = swipeParams.velocity, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
219
- var shouldPreventSwipe = scrollOccurred.current ||
220
- shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
221
- if (shouldPreventSwipe) {
210
+ var handleSheetSwipe = function (_a) {
211
+ var initial = _a.initial, velocity = _a.velocity, deltaY = _a.deltaY, event = _a.event;
212
+ if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
222
213
  return;
223
214
  }
224
215
  magnetize(velocity, deltaY);
225
216
  };
226
- var handleSheetSwipeStart = function (swipeParams) {
227
- var deltaY = swipeParams.deltaY, initial = swipeParams.initial, event = swipeParams.event, dir = swipeParams.dir;
228
- if (shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir })) {
217
+ var handleSheetSwipeStart = function (_a) {
218
+ var deltaY = _a.deltaY, initial = _a.initial, event = _a.event;
219
+ if (shouldSkipSwiping(deltaY, initial[1], event)) {
229
220
  return;
230
221
  }
231
222
  startSwiping(event);
@@ -234,11 +225,9 @@ var BottomSheet = forwardRef(function (_a, ref) {
234
225
  var event = _a.event;
235
226
  return stopSwiping(event);
236
227
  };
237
- var handleSheetSwipeMove = function (swipeParams) {
238
- var initial = swipeParams.initial, deltaY = swipeParams.deltaY, event = swipeParams.event, dir = swipeParams.dir;
239
- var shouldPreventSwipe = scrollOccurred.current ||
240
- shouldSkipSwiping({ deltaY: deltaY, startY: initial[1], event: event, dir: dir });
241
- if (shouldPreventSwipe) {
228
+ var handleSheetSwiping = function (_a) {
229
+ var initial = _a.initial, deltaY = _a.deltaY, event = _a.event;
230
+ if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
242
231
  return;
243
232
  }
244
233
  if (!swipingInProgress) {
@@ -251,8 +240,8 @@ var BottomSheet = forwardRef(function (_a, ref) {
251
240
  };
252
241
  var sheetSwipeableHandlers = useSwipeable({
253
242
  onSwipeStart: handleSheetSwipeStart,
254
- onSwiping: handleSheetSwipeMove,
255
- onSwiped: handleSheetSwipeEnd,
243
+ onSwiping: handleSheetSwiping,
244
+ onSwiped: handleSheetSwipe,
256
245
  onTouchEndOrOnMouseUp: handleTouchEnd,
257
246
  trackMouse: swipeable,
258
247
  trackTouch: swipeable,
@@ -13,5 +13,3 @@ 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';
@@ -8,11 +8,9 @@ import { 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';
12
11
  import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VELOCITY, CLOSE_OFFSET } from './utils.js';
13
12
  import '../../navigation-bar/modern';
14
13
  import '../../backdrop/modern';
15
- import './enums/swipeEnums.js';
16
14
 
17
15
  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","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"};
18
16
  require('./index.css');
@@ -199,8 +197,7 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
199
197
  * Если контент внутри шторки скроллится - то шторка не должна свайпаться
200
198
  * Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки
201
199
  */
202
- const shouldSkipSwiping = (swipeParams) => {
203
- const { deltaY, startY, event, dir } = swipeParams;
200
+ const shouldSkipSwiping = (deltaY, startY, event) => {
204
201
  if (scrollLockedProp || swipingInProgress)
205
202
  return false;
206
203
  if (!swipeableContent && contentRef.current?.contains(event.target)) {
@@ -225,34 +222,23 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
225
222
  if (!scrollOccurred.current && shouldScroll) {
226
223
  scrollOccurred.current = true;
227
224
  }
228
- // Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться
229
- if (horizontalDirections.includes(dir)) {
230
- return true;
231
- }
232
225
  return shouldScroll;
233
226
  };
234
- const handleSheetSwipeEnd = (swipeParams) => {
235
- const { initial, velocity, deltaY, event, dir } = swipeParams;
236
- const shouldPreventSwipe = scrollOccurred.current ||
237
- shouldSkipSwiping({ deltaY, startY: initial[1], event, dir });
238
- if (shouldPreventSwipe) {
227
+ const handleSheetSwipe = ({ initial, velocity, deltaY, event }) => {
228
+ if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
239
229
  return;
240
230
  }
241
231
  magnetize(velocity, deltaY);
242
232
  };
243
- const handleSheetSwipeStart = (swipeParams) => {
244
- const { deltaY, initial, event, dir } = swipeParams;
245
- if (shouldSkipSwiping({ deltaY, startY: initial[1], event, dir })) {
233
+ const handleSheetSwipeStart = ({ deltaY, initial, event }) => {
234
+ if (shouldSkipSwiping(deltaY, initial[1], event)) {
246
235
  return;
247
236
  }
248
237
  startSwiping(event);
249
238
  };
250
239
  const handleTouchEnd = ({ event }) => stopSwiping(event);
251
- const handleSheetSwipeMove = (swipeParams) => {
252
- const { initial, deltaY, event, dir } = swipeParams;
253
- const shouldPreventSwipe = scrollOccurred.current ||
254
- shouldSkipSwiping({ deltaY, startY: initial[1], event, dir });
255
- if (shouldPreventSwipe) {
240
+ const handleSheetSwiping = ({ initial, deltaY, event }) => {
241
+ if (scrollOccurred.current || shouldSkipSwiping(deltaY, initial[1], event)) {
256
242
  return;
257
243
  }
258
244
  if (!swipingInProgress) {
@@ -265,8 +251,8 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
265
251
  };
266
252
  const sheetSwipeableHandlers = useSwipeable({
267
253
  onSwipeStart: handleSheetSwipeStart,
268
- onSwiping: handleSheetSwipeMove,
269
- onSwiped: handleSheetSwipeEnd,
254
+ onSwiping: handleSheetSwiping,
255
+ onSwiped: handleSheetSwipe,
270
256
  onTouchEndOrOnMouseUp: handleTouchEnd,
271
257
  trackMouse: swipeable,
272
258
  trackTouch: swipeable,
@@ -12,5 +12,3 @@ 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';
@@ -15,7 +15,7 @@ import 'date-fns/isEqual';
15
15
  import 'date-fns/max';
16
16
  import 'date-fns/min';
17
17
  import 'date-fns/subMonths';
18
- import './index.module-7ba85cb1.js';
18
+ import './index.module-912e88cf.js';
19
19
  import 'date-fns/endOfMonth';
20
20
  import 'date-fns/isSameMonth';
21
21
  import '../../calendar/esm/desktop';
@@ -15,7 +15,7 @@ import 'date-fns/isEqual';
15
15
  import 'date-fns/max';
16
16
  import 'date-fns/min';
17
17
  import 'date-fns/subMonths';
18
- import './index.module-7ba85cb1.js';
18
+ import './index.module-912e88cf.js';
19
19
  import './views/static.js';
20
20
  import 'date-fns/endOfMonth';
21
21
  import 'date-fns/isSameMonth';
@@ -8,7 +8,7 @@ import { isCompleteDateInput } from '../../../date-input/esm';
8
8
  import { useDidUpdateEffect } from '@alfalab/hooks';
9
9
  import { Divider } from '../components/divider/Component.js';
10
10
  import { usePopoverViewMonthes } from '../hooks.js';
11
- import { s as styles } from '../index.module-7ba85cb1.js';
11
+ import { s as styles } from '../index.module-912e88cf.js';
12
12
  import 'date-fns/addMonths';
13
13
  import 'date-fns/isEqual';
14
14
  import 'date-fns/max';
@@ -14,7 +14,7 @@ import { isCompleteDateInput, DateInput } from '../../../date-input/esm';
14
14
  import { Divider } from '../components/divider/Component.js';
15
15
  import { useStaticViewMonthes, useSelectionProps } from '../hooks.js';
16
16
  import { isDayButton } from '../utils.js';
17
- import { s as styles } from '../index.module-7ba85cb1.js';
17
+ import { s as styles } from '../index.module-912e88cf.js';
18
18
  import 'date-fns/isEqual';
19
19
  import 'date-fns/min';
20
20
 
@@ -14,7 +14,7 @@ import 'date-fns/isEqual';
14
14
  import 'date-fns/max';
15
15
  import 'date-fns/min';
16
16
  import 'date-fns/subMonths';
17
- import './index.module-0604d154.js';
17
+ import './index.module-636e08a2.js';
18
18
  import 'date-fns/endOfMonth';
19
19
  import 'date-fns/isSameMonth';
20
20
  import '../../calendar/modern/desktop';
@@ -14,7 +14,7 @@ import 'date-fns/isEqual';
14
14
  import 'date-fns/max';
15
15
  import 'date-fns/min';
16
16
  import 'date-fns/subMonths';
17
- import './index.module-0604d154.js';
17
+ import './index.module-636e08a2.js';
18
18
  import './views/static.js';
19
19
  import 'date-fns/endOfMonth';
20
20
  import 'date-fns/isSameMonth';
@@ -7,7 +7,7 @@ import { isCompleteDateInput } from '../../../date-input/modern';
7
7
  import { useDidUpdateEffect } from '@alfalab/hooks';
8
8
  import { Divider } from '../components/divider/Component.js';
9
9
  import { usePopoverViewMonthes } from '../hooks.js';
10
- import { s as styles } from '../index.module-0604d154.js';
10
+ import { s as styles } from '../index.module-636e08a2.js';
11
11
  import 'date-fns/addMonths';
12
12
  import 'date-fns/isEqual';
13
13
  import 'date-fns/max';
@@ -13,7 +13,7 @@ import { isCompleteDateInput, DateInput } from '../../../date-input/modern';
13
13
  import { Divider } from '../components/divider/Component.js';
14
14
  import { useStaticViewMonthes, useSelectionProps } from '../hooks.js';
15
15
  import { isDayButton } from '../utils.js';
16
- import { s as styles } from '../index.module-0604d154.js';
16
+ import { s as styles } from '../index.module-636e08a2.js';
17
17
  import 'date-fns/isEqual';
18
18
  import 'date-fns/min';
19
19
 
@@ -1,7 +1,5 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
- var isDayButton = function (node) {
4
- return node && node.tagName === 'BUTTON' && node.dataset.date;
5
- };
3
+ var isDayButton = function (node) { return node && node.tagName === 'BUTTON' && node.dataset.date; };
6
4
 
7
5
  exports.isDayButton = isDayButton;
@@ -10,7 +10,7 @@ var coreComponentsDateInput = require('../../date-input');
10
10
  var hooks$1 = require('@alfalab/hooks');
11
11
  var components_divider_Component = require('../components/divider/Component.js');
12
12
  var hooks = require('../hooks.js');
13
- var index_module = require('../index.module-c6ded4a2.js');
13
+ var index_module = require('../index.module-bf0591f0.js');
14
14
 
15
15
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
16
16
 
@@ -16,7 +16,7 @@ var coreComponentsDateInput = require('../../date-input');
16
16
  var components_divider_Component = require('../components/divider/Component.js');
17
17
  var hooks = require('../hooks.js');
18
18
  var utils = require('../utils.js');
19
- var index_module = require('../index.module-c6ded4a2.js');
19
+ var index_module = require('../index.module-bf0591f0.js');
20
20
 
21
21
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
22
22
 
@@ -39,7 +39,7 @@ type DropzoneProps = {
39
39
  /**
40
40
  * Обработчик события 'drop'
41
41
  */
42
- onDrop?: (files: FileList) => void;
42
+ onDrop?: (files: File[]) => void;
43
43
  /**
44
44
  * Обработчик события 'dragover'
45
45
  */
@@ -61,7 +61,7 @@ var Dropzone = function (_a) {
61
61
  dragCounter.current = 0;
62
62
  if (event.dataTransfer.files && event.dataTransfer.files.length > 0) {
63
63
  if (onDrop) {
64
- onDrop(event.dataTransfer.files);
64
+ onDrop(Array.from(event.dataTransfer.files));
65
65
  }
66
66
  event.dataTransfer.clearData();
67
67
  }
@@ -39,7 +39,7 @@ type DropzoneProps = {
39
39
  /**
40
40
  * Обработчик события 'drop'
41
41
  */
42
- onDrop?: (files: FileList) => void;
42
+ onDrop?: (files: File[]) => void;
43
43
  /**
44
44
  * Обработчик события 'dragover'
45
45
  */
@@ -60,7 +60,7 @@ var Dropzone = function (_a) {
60
60
  dragCounter.current = 0;
61
61
  if (event.dataTransfer.files && event.dataTransfer.files.length > 0) {
62
62
  if (onDrop) {
63
- onDrop(event.dataTransfer.files);
63
+ onDrop(Array.from(event.dataTransfer.files));
64
64
  }
65
65
  event.dataTransfer.clearData();
66
66
  }
@@ -39,7 +39,7 @@ type DropzoneProps = {
39
39
  /**
40
40
  * Обработчик события 'drop'
41
41
  */
42
- onDrop?: (files: FileList) => void;
42
+ onDrop?: (files: File[]) => void;
43
43
  /**
44
44
  * Обработчик события 'dragover'
45
45
  */
@@ -55,7 +55,7 @@ var Dropzone = function (_a) {
55
55
  dragCounter.current = 0;
56
56
  if (event.dataTransfer.files && event.dataTransfer.files.length > 0) {
57
57
  if (onDrop) {
58
- onDrop(event.dataTransfer.files);
58
+ onDrop(Array.from(event.dataTransfer.files));
59
59
  }
60
60
  event.dataTransfer.clearData();
61
61
  }
@@ -39,7 +39,7 @@ type DropzoneProps = {
39
39
  /**
40
40
  * Обработчик события 'drop'
41
41
  */
42
- onDrop?: (files: FileList) => void;
42
+ onDrop?: (files: File[]) => void;
43
43
  /**
44
44
  * Обработчик события 'dragover'
45
45
  */
@@ -53,7 +53,7 @@ const Dropzone = ({ className, contentClassName, children, text = 'Перета
53
53
  dragCounter.current = 0;
54
54
  if (event.dataTransfer.files && event.dataTransfer.files.length > 0) {
55
55
  if (onDrop) {
56
- onDrop(event.dataTransfer.files);
56
+ onDrop(Array.from(event.dataTransfer.files));
57
57
  }
58
58
  event.dataTransfer.clearData();
59
59
  }
@@ -5,7 +5,7 @@ var context = require('../../context.js');
5
5
  var utils_utils = require('../../utils/utils.js');
6
6
  var utils_constants = require('../../utils/constants.js');
7
7
  var components_headerInfoBlock_Component = require('../header-info-block/Component.js');
8
- var components_header_buttons = require('../../buttons-01e8353f.js');
8
+ var components_header_buttons = require('../../buttons-19c30d23.js');
9
9
 
10
10
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
11
 
@@ -8,7 +8,7 @@ require('@alfalab/icons-glyph/ArrowsInwardMIcon');
8
8
  require('@alfalab/icons-glyph/ArrowsOutwardMIcon');
9
9
  require('@alfalab/icons-glyph/CrossMIcon');
10
10
  require('@alfalab/icons-glyph/PointerDownMIcon');
11
- var components_header_buttons = require('../../buttons-01e8353f.js');
11
+ var components_header_buttons = require('../../buttons-19c30d23.js');
12
12
 
13
13
 
14
14
 
@@ -12,7 +12,7 @@ var ChevronForwardHeavyMIcon = require('@alfalab/icons-glyph/ChevronForwardHeavy
12
12
  var context = require('../../context.js');
13
13
  var utils_utils = require('../../utils/utils.js');
14
14
  var utils_constants = require('../../utils/constants.js');
15
- var components_imageViewer_slide = require('../../slide-18998644.js');
15
+ var components_imageViewer_slide = require('../../slide-45ca49f1.js');
16
16
  require('swiper/swiper.min.css');
17
17
 
18
18
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -6,7 +6,7 @@ require('../../../typography');
6
6
  require('../../utils/utils.js');
7
7
  require('../../utils/constants.js');
8
8
  require('./paths.js');
9
- var components_imageViewer_slide = require('../../slide-18998644.js');
9
+ var components_imageViewer_slide = require('../../slide-45ca49f1.js');
10
10
 
11
11
 
12
12
 
@@ -20,13 +20,13 @@ import '@alfalab/icons-glyph/PointerDownMIcon';
20
20
  import './components/image-preview/paths.js';
21
21
  import './components/header-info-block/Component.js';
22
22
  import './utils/split-filename.js';
23
- import './buttons-85c1b9a3.js';
23
+ import './buttons-37ed3ab5.js';
24
24
  import 'element-closest';
25
25
  import 'swiper';
26
26
  import 'swiper/react';
27
27
  import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
28
28
  import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
29
- import './slide-530dfb83.js';
29
+ import './slide-8d1299a5.js';
30
30
  import './components/image-viewer/paths.js';
31
31
  import 'swiper/swiper.min.css';
32
32
 
@@ -3,7 +3,7 @@ import { GalleryContext } from '../../context.js';
3
3
  import { isSmallImage } from '../../utils/utils.js';
4
4
  import { TestIds } from '../../utils/constants.js';
5
5
  import { HeaderInfoBlock } from '../header-info-block/Component.js';
6
- import { s as styles, D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-85c1b9a3.js';
6
+ import { s as styles, D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-37ed3ab5.js';
7
7
  import '../../../../typography/esm';
8
8
  import '../../utils/split-filename.js';
9
9
  import 'tslib';
@@ -6,4 +6,4 @@ import '@alfalab/icons-glyph/ArrowsInwardMIcon';
6
6
  import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
7
7
  import '@alfalab/icons-glyph/CrossMIcon';
8
8
  import '@alfalab/icons-glyph/PointerDownMIcon';
9
- export { D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-85c1b9a3.js';
9
+ export { D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-37ed3ab5.js';
@@ -6,7 +6,7 @@ import '../../utils/constants.js';
6
6
  import '../header-info-block/Component.js';
7
7
  import '../../../../typography/esm';
8
8
  import '../../utils/split-filename.js';
9
- import '../../buttons-85c1b9a3.js';
9
+ import '../../buttons-37ed3ab5.js';
10
10
  import 'tslib';
11
11
  import '../../../../icon-button/esm';
12
12
  import '../../../../tooltip/esm/desktop';
@@ -20,7 +20,7 @@ import 'swiper/react';
20
20
  import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
21
21
  import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
22
22
  import '../../utils/constants.js';
23
- import '../../slide-530dfb83.js';
23
+ import '../../slide-8d1299a5.js';
24
24
  import '../image-viewer/paths.js';
25
25
  import 'swiper/swiper.min.css';
26
26