@alfalab/core-components 47.18.0-beta.0 → 47.19.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 (607) hide show
  1. package/calendar-input/components/calendar-input/Component.d.ts +1 -1
  2. package/calendar-range/utils.js +3 -1
  3. package/confirmation/components/screens/initial/component.js +1 -1
  4. package/confirmation/components/screens/initial/countdown-section.js +1 -1
  5. package/confirmation/esm/component.responsive.js +1 -1
  6. package/confirmation/esm/components/base-confirmation/component.js +1 -1
  7. package/confirmation/esm/components/base-confirmation/index.js +1 -1
  8. package/confirmation/esm/components/index.js +1 -1
  9. package/confirmation/esm/components/screens/index.js +1 -1
  10. package/confirmation/esm/components/screens/initial/component.js +1 -1
  11. package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
  12. package/confirmation/esm/components/screens/initial/index.js +1 -1
  13. package/confirmation/esm/desktop/component.desktop.js +1 -1
  14. package/confirmation/esm/desktop/index.js +1 -1
  15. package/confirmation/esm/index.js +1 -1
  16. package/confirmation/esm/mobile/component.mobile.js +1 -1
  17. package/confirmation/esm/mobile/index.js +1 -1
  18. package/confirmation/esm/shared/index.js +1 -1
  19. package/confirmation/modern/component.responsive.js +1 -1
  20. package/confirmation/modern/components/base-confirmation/component.js +1 -1
  21. package/confirmation/modern/components/base-confirmation/index.js +1 -1
  22. package/confirmation/modern/components/index.js +1 -1
  23. package/confirmation/modern/components/screens/index.js +1 -1
  24. package/confirmation/modern/components/screens/initial/component.js +1 -1
  25. package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
  26. package/confirmation/modern/components/screens/initial/index.js +1 -1
  27. package/confirmation/modern/desktop/component.desktop.js +1 -1
  28. package/confirmation/modern/desktop/index.js +1 -1
  29. package/confirmation/modern/index.js +1 -1
  30. package/confirmation/modern/mobile/component.mobile.js +1 -1
  31. package/confirmation/modern/mobile/index.js +1 -1
  32. package/confirmation/modern/shared/index.js +1 -1
  33. package/date-time-input/components/date-time-input/Component.d.ts +1 -1
  34. package/gallery/Component.js +12 -47
  35. package/gallery/{components/buttons/index.d.ts → buttons-ec113bb4.d.ts} +2 -7
  36. package/gallery/buttons-ec113bb4.js +35 -0
  37. package/gallery/components/header/Component.js +12 -33
  38. package/gallery/components/header/buttons.d.ts +0 -0
  39. package/gallery/components/header/buttons.js +18 -0
  40. package/gallery/components/header/index.css +17 -3
  41. package/gallery/components/image-preview/Component.js +24 -67
  42. package/gallery/components/image-preview/index.css +18 -25
  43. package/gallery/components/image-preview/paths.d.ts +0 -2
  44. package/gallery/components/image-preview/paths.js +0 -2
  45. package/gallery/components/image-viewer/component.js +10 -30
  46. package/gallery/components/image-viewer/index.css +9 -21
  47. package/gallery/components/image-viewer/slide.js +1 -3
  48. package/gallery/components/index.d.ts +0 -2
  49. package/gallery/components/index.js +0 -4
  50. package/gallery/components/navigation-bar/Component.js +2 -3
  51. package/gallery/components/navigation-bar/index.css +1 -3
  52. package/gallery/context.d.ts +0 -7
  53. package/gallery/context.js +0 -7
  54. package/gallery/cssm/Component.js +11 -46
  55. package/gallery/cssm/components/header/Component.js +10 -28
  56. package/gallery/cssm/components/{buttons/index.d.ts → header/buttons.d.ts} +1 -6
  57. package/gallery/cssm/components/header/buttons.js +35 -0
  58. package/gallery/cssm/components/header/index.module.css +17 -3
  59. package/gallery/cssm/components/image-preview/Component.js +27 -66
  60. package/gallery/cssm/components/image-preview/index.module.css +18 -25
  61. package/gallery/cssm/components/image-preview/paths.d.ts +0 -2
  62. package/gallery/cssm/components/image-preview/paths.js +0 -2
  63. package/gallery/cssm/components/image-viewer/component.js +9 -29
  64. package/gallery/cssm/components/image-viewer/index.module.css +9 -21
  65. package/gallery/cssm/components/image-viewer/slide.js +2 -12
  66. package/gallery/cssm/components/index.d.ts +0 -2
  67. package/gallery/cssm/components/index.js +0 -4
  68. package/gallery/cssm/components/navigation-bar/Component.js +1 -2
  69. package/gallery/cssm/components/navigation-bar/index.module.css +1 -3
  70. package/gallery/cssm/context.d.ts +0 -7
  71. package/gallery/cssm/context.js +0 -7
  72. package/gallery/cssm/index.d.ts +1 -1
  73. package/gallery/cssm/index.js +8 -1
  74. package/gallery/cssm/index.module.css +2 -14
  75. package/gallery/cssm/types.d.ts +0 -7
  76. package/gallery/cssm/utils/constants.d.ts +1 -14
  77. package/gallery/cssm/utils/constants.js +0 -19
  78. package/gallery/cssm/utils/index.js +0 -7
  79. package/gallery/cssm/utils/utils.d.ts +1 -2
  80. package/gallery/cssm/utils/utils.js +3 -5
  81. package/gallery/esm/Component.js +16 -58
  82. package/gallery/{modern/components/buttons/index.d.ts → esm/buttons-791da71e.d.ts} +2 -7
  83. package/gallery/esm/buttons-791da71e.js +27 -0
  84. package/gallery/esm/components/header/Component.js +11 -38
  85. package/gallery/esm/components/header/buttons.d.ts +0 -0
  86. package/gallery/esm/components/header/buttons.js +9 -0
  87. package/gallery/esm/components/header/index.css +17 -3
  88. package/gallery/esm/components/header/index.js +4 -10
  89. package/gallery/esm/components/image-preview/Component.js +35 -69
  90. package/gallery/esm/components/image-preview/index.css +18 -25
  91. package/gallery/esm/components/image-preview/index.js +19 -1
  92. package/gallery/esm/components/image-preview/paths.d.ts +0 -2
  93. package/gallery/esm/components/image-preview/paths.js +0 -2
  94. package/gallery/esm/components/image-viewer/component.js +11 -35
  95. package/gallery/esm/components/image-viewer/index.css +9 -21
  96. package/gallery/esm/components/image-viewer/index.js +1 -5
  97. package/gallery/esm/components/image-viewer/slide.js +2 -7
  98. package/gallery/esm/components/index.d.ts +0 -2
  99. package/gallery/esm/components/index.js +8 -17
  100. package/gallery/esm/components/navigation-bar/Component.js +20 -3
  101. package/gallery/esm/components/navigation-bar/index.css +1 -3
  102. package/gallery/esm/components/navigation-bar/index.js +18 -0
  103. package/gallery/esm/context.d.ts +0 -7
  104. package/gallery/esm/context.js +0 -7
  105. package/gallery/esm/index.css +2 -14
  106. package/gallery/esm/index.d.ts +1 -1
  107. package/gallery/esm/index.js +11 -21
  108. package/gallery/esm/{slide-f2aac299.js → slide-7d5a41d1.js} +5 -18
  109. package/gallery/esm/types.d.ts +0 -7
  110. package/gallery/esm/utils/constants.d.ts +1 -14
  111. package/gallery/esm/utils/constants.js +1 -14
  112. package/gallery/esm/utils/index.js +2 -2
  113. package/gallery/esm/utils/utils.d.ts +1 -2
  114. package/gallery/esm/utils/utils.js +4 -5
  115. package/gallery/index.css +2 -14
  116. package/gallery/index.d.ts +1 -1
  117. package/gallery/index.js +8 -1
  118. package/gallery/modern/Component.js +11 -51
  119. package/gallery/modern/buttons-1859cb8e.d.ts +11 -0
  120. package/gallery/modern/buttons-1859cb8e.js +20 -0
  121. package/gallery/modern/components/header/Component.js +11 -35
  122. package/gallery/modern/components/header/buttons.d.ts +0 -0
  123. package/gallery/modern/components/header/buttons.js +8 -0
  124. package/gallery/modern/components/header/index.css +17 -3
  125. package/gallery/modern/components/header/index.js +4 -10
  126. package/gallery/modern/components/image-preview/Component.js +32 -65
  127. package/gallery/modern/components/image-preview/index.css +18 -25
  128. package/gallery/modern/components/image-preview/index.js +18 -1
  129. package/gallery/modern/components/image-preview/paths.d.ts +0 -2
  130. package/gallery/modern/components/image-preview/paths.js +0 -2
  131. package/gallery/modern/components/image-viewer/component.js +11 -35
  132. package/gallery/modern/components/image-viewer/index.css +9 -21
  133. package/gallery/modern/components/image-viewer/index.js +1 -5
  134. package/gallery/modern/components/image-viewer/slide.js +2 -7
  135. package/gallery/modern/components/index.d.ts +0 -2
  136. package/gallery/modern/components/index.js +8 -17
  137. package/gallery/modern/components/navigation-bar/Component.js +19 -3
  138. package/gallery/modern/components/navigation-bar/index.css +1 -3
  139. package/gallery/modern/components/navigation-bar/index.js +17 -0
  140. package/gallery/modern/context.d.ts +0 -7
  141. package/gallery/modern/context.js +0 -7
  142. package/gallery/modern/index.css +2 -14
  143. package/gallery/modern/index.d.ts +1 -1
  144. package/gallery/modern/index.js +11 -21
  145. package/gallery/modern/{slide-796216a4.js → slide-c47386c3.js} +5 -18
  146. package/gallery/modern/types.d.ts +0 -7
  147. package/gallery/modern/utils/constants.d.ts +1 -14
  148. package/gallery/modern/utils/constants.js +1 -14
  149. package/gallery/modern/utils/index.js +2 -2
  150. package/gallery/modern/utils/utils.d.ts +1 -2
  151. package/gallery/modern/utils/utils.js +4 -5
  152. package/gallery/moderncssm/Component.js +11 -55
  153. package/gallery/moderncssm/components/header/Component.js +12 -34
  154. package/gallery/{esm/components/buttons/index.d.ts → moderncssm/components/header/buttons.d.ts} +1 -6
  155. package/gallery/moderncssm/components/header/buttons.js +18 -0
  156. package/gallery/moderncssm/components/header/index.js +5 -12
  157. package/gallery/moderncssm/components/header/index.module.css +19 -0
  158. package/gallery/moderncssm/components/image-preview/Component.js +36 -64
  159. package/gallery/moderncssm/components/image-preview/index.js +23 -1
  160. package/gallery/moderncssm/components/image-preview/index.module.css +13 -30
  161. package/gallery/moderncssm/components/image-preview/paths.d.ts +0 -2
  162. package/gallery/moderncssm/components/image-preview/paths.js +0 -2
  163. package/gallery/moderncssm/components/image-viewer/component.js +10 -35
  164. package/gallery/moderncssm/components/image-viewer/index.js +0 -5
  165. package/gallery/moderncssm/components/image-viewer/index.module.css +6 -29
  166. package/gallery/moderncssm/components/image-viewer/slide.js +4 -18
  167. package/gallery/moderncssm/components/index.d.ts +0 -2
  168. package/gallery/moderncssm/components/index.js +10 -22
  169. package/gallery/moderncssm/components/navigation-bar/Component.js +22 -2
  170. package/gallery/moderncssm/components/navigation-bar/index.js +22 -1
  171. package/gallery/moderncssm/components/navigation-bar/index.module.css +0 -4
  172. package/gallery/moderncssm/context.d.ts +0 -7
  173. package/gallery/moderncssm/context.js +0 -7
  174. package/gallery/moderncssm/index.d.ts +1 -1
  175. package/gallery/moderncssm/index.js +12 -26
  176. package/gallery/moderncssm/index.module.css +2 -18
  177. package/gallery/moderncssm/types.d.ts +0 -7
  178. package/gallery/moderncssm/utils/constants.d.ts +1 -14
  179. package/gallery/moderncssm/utils/constants.js +1 -14
  180. package/gallery/moderncssm/utils/index.js +2 -2
  181. package/gallery/moderncssm/utils/utils.d.ts +1 -2
  182. package/gallery/moderncssm/utils/utils.js +4 -5
  183. package/gallery/{slide-3cbb1721.js → slide-12155967.js} +3 -13
  184. package/gallery/types.d.ts +0 -7
  185. package/gallery/utils/constants.d.ts +1 -14
  186. package/gallery/utils/constants.js +0 -19
  187. package/gallery/utils/index.js +0 -7
  188. package/gallery/utils/utils.d.ts +1 -2
  189. package/gallery/utils/utils.js +3 -5
  190. package/modal/components/controls/Component.js +1 -1
  191. package/modal/components/footer/Component.js +1 -1
  192. package/modal/esm/Component.responsive.js +1 -1
  193. package/modal/esm/components/controls/Component.js +1 -1
  194. package/modal/esm/components/controls/index.js +1 -1
  195. package/modal/esm/components/footer/Component.js +1 -1
  196. package/modal/esm/desktop/Component.desktop.js +1 -1
  197. package/modal/esm/desktop/index.js +1 -1
  198. package/modal/esm/index.js +1 -1
  199. package/modal/esm/mobile/Component.mobile.js +1 -1
  200. package/modal/esm/mobile/index.js +1 -1
  201. package/modal/modern/Component.responsive.js +1 -1
  202. package/modal/modern/components/controls/Component.js +1 -1
  203. package/modal/modern/components/controls/index.js +1 -1
  204. package/modal/modern/components/footer/Component.js +1 -1
  205. package/modal/modern/desktop/Component.desktop.js +1 -1
  206. package/modal/modern/desktop/index.js +1 -1
  207. package/modal/modern/index.js +1 -1
  208. package/modal/modern/mobile/Component.mobile.js +1 -1
  209. package/modal/modern/mobile/index.js +1 -1
  210. package/package.json +1 -1
  211. package/plate/Component.responsive.js +1 -1
  212. package/plate/components/base-plate/Component.js +1 -1
  213. package/plate/esm/Component.responsive.js +1 -1
  214. package/plate/esm/components/base-plate/Component.js +1 -1
  215. package/plate/esm/components/base-plate/index.js +1 -1
  216. package/plate/esm/desktop/Component.desktop.js +1 -1
  217. package/plate/esm/desktop/index.js +1 -1
  218. package/plate/esm/index-ba3cd492.d.ts +2 -2
  219. package/plate/esm/index.js +1 -1
  220. package/plate/esm/mobile/Component.mobile.js +1 -1
  221. package/plate/esm/mobile/index.js +1 -1
  222. package/plate/esm/shared/index.js +1 -1
  223. package/plate/esm/utils.js +1 -1
  224. package/plate/index-ba3cd492.d.ts +2 -2
  225. package/plate/modern/Component.responsive.js +1 -1
  226. package/plate/modern/components/base-plate/Component.js +1 -1
  227. package/plate/modern/components/base-plate/index.js +1 -1
  228. package/plate/modern/desktop/Component.desktop.js +1 -1
  229. package/plate/modern/desktop/index.js +1 -1
  230. package/plate/modern/index-ba3cd492.d.ts +2 -2
  231. package/plate/modern/index.js +1 -1
  232. package/plate/modern/mobile/Component.mobile.js +1 -1
  233. package/plate/modern/mobile/index.js +1 -1
  234. package/plate/modern/shared/index.js +1 -1
  235. package/plate/modern/utils.js +1 -1
  236. package/plate/utils.js +1 -1
  237. package/pure-cell/component.js +1 -1
  238. package/pure-cell/components/addon/component.js +1 -1
  239. package/pure-cell/components/addon/index.d.ts +1 -1
  240. package/pure-cell/components/addon/index.js +1 -1
  241. package/pure-cell/components/amount/component.js +1 -1
  242. package/pure-cell/components/amount/index.d.ts +1 -1
  243. package/pure-cell/components/amount/index.js +1 -1
  244. package/pure-cell/components/amount-title/component.js +1 -1
  245. package/pure-cell/components/amount-title/index.d.ts +1 -1
  246. package/pure-cell/components/amount-title/index.js +1 -1
  247. package/pure-cell/components/category/component.js +1 -1
  248. package/pure-cell/components/category/index.d.ts +1 -1
  249. package/pure-cell/components/category/index.js +1 -1
  250. package/pure-cell/components/content/component.js +1 -1
  251. package/pure-cell/components/content/index.d.ts +1 -1
  252. package/pure-cell/components/content/index.js +1 -1
  253. package/pure-cell/components/footer/component.js +1 -1
  254. package/pure-cell/components/footer/index.d.ts +1 -1
  255. package/pure-cell/components/footer/index.js +1 -1
  256. package/pure-cell/components/footer-button/component.js +1 -1
  257. package/pure-cell/components/footer-button/index.d.ts +1 -1
  258. package/pure-cell/components/footer-button/index.js +1 -1
  259. package/pure-cell/components/footer-text/component.js +1 -1
  260. package/pure-cell/components/footer-text/index.d.ts +1 -1
  261. package/pure-cell/components/footer-text/index.js +1 -1
  262. package/pure-cell/components/graphics/component.js +1 -1
  263. package/pure-cell/components/graphics/index.d.ts +1 -1
  264. package/pure-cell/components/graphics/index.js +1 -1
  265. package/pure-cell/components/main/component.js +1 -1
  266. package/pure-cell/components/main/index.d.ts +1 -1
  267. package/pure-cell/components/main/index.js +1 -1
  268. package/pure-cell/components/text/component.js +1 -1
  269. package/pure-cell/components/text/index.d.ts +1 -1
  270. package/pure-cell/components/text/index.js +1 -1
  271. package/pure-cell/esm/component.js +1 -1
  272. package/pure-cell/esm/components/addon/component.js +1 -1
  273. package/pure-cell/esm/components/addon/index.d.ts +1 -1
  274. package/pure-cell/esm/components/addon/index.js +1 -1
  275. package/pure-cell/esm/components/amount/component.js +1 -1
  276. package/pure-cell/esm/components/amount/index.d.ts +1 -1
  277. package/pure-cell/esm/components/amount/index.js +1 -1
  278. package/pure-cell/esm/components/amount-title/component.js +1 -1
  279. package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
  280. package/pure-cell/esm/components/amount-title/index.js +1 -1
  281. package/pure-cell/esm/components/category/component.js +1 -1
  282. package/pure-cell/esm/components/category/index.d.ts +1 -1
  283. package/pure-cell/esm/components/category/index.js +1 -1
  284. package/pure-cell/esm/components/content/component.js +1 -1
  285. package/pure-cell/esm/components/content/index.d.ts +1 -1
  286. package/pure-cell/esm/components/content/index.js +1 -1
  287. package/pure-cell/esm/components/footer/component.js +1 -1
  288. package/pure-cell/esm/components/footer/index.d.ts +1 -1
  289. package/pure-cell/esm/components/footer/index.js +1 -1
  290. package/pure-cell/esm/components/footer-button/component.js +1 -1
  291. package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
  292. package/pure-cell/esm/components/footer-button/index.js +1 -1
  293. package/pure-cell/esm/components/footer-text/component.js +1 -1
  294. package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
  295. package/pure-cell/esm/components/footer-text/index.js +1 -1
  296. package/pure-cell/esm/components/graphics/component.js +1 -1
  297. package/pure-cell/esm/components/graphics/index.d.ts +1 -1
  298. package/pure-cell/esm/components/graphics/index.js +1 -1
  299. package/pure-cell/esm/components/main/component.js +1 -1
  300. package/pure-cell/esm/components/main/index.d.ts +1 -1
  301. package/pure-cell/esm/components/main/index.js +1 -1
  302. package/pure-cell/esm/components/text/component.js +1 -1
  303. package/pure-cell/esm/components/text/index.d.ts +1 -1
  304. package/pure-cell/esm/components/text/index.js +1 -1
  305. package/pure-cell/esm/index.js +1 -1
  306. package/pure-cell/index.js +1 -1
  307. package/pure-cell/modern/component.js +1 -1
  308. package/pure-cell/modern/components/addon/component.js +1 -1
  309. package/pure-cell/modern/components/addon/index.d.ts +1 -1
  310. package/pure-cell/modern/components/addon/index.js +1 -1
  311. package/pure-cell/modern/components/amount/component.js +1 -1
  312. package/pure-cell/modern/components/amount/index.d.ts +1 -1
  313. package/pure-cell/modern/components/amount/index.js +1 -1
  314. package/pure-cell/modern/components/amount-title/component.js +1 -1
  315. package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
  316. package/pure-cell/modern/components/amount-title/index.js +1 -1
  317. package/pure-cell/modern/components/category/component.js +1 -1
  318. package/pure-cell/modern/components/category/index.d.ts +1 -1
  319. package/pure-cell/modern/components/category/index.js +1 -1
  320. package/pure-cell/modern/components/content/component.js +1 -1
  321. package/pure-cell/modern/components/content/index.d.ts +1 -1
  322. package/pure-cell/modern/components/content/index.js +1 -1
  323. package/pure-cell/modern/components/footer/component.js +1 -1
  324. package/pure-cell/modern/components/footer/index.d.ts +1 -1
  325. package/pure-cell/modern/components/footer/index.js +1 -1
  326. package/pure-cell/modern/components/footer-button/component.js +1 -1
  327. package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
  328. package/pure-cell/modern/components/footer-button/index.js +1 -1
  329. package/pure-cell/modern/components/footer-text/component.js +1 -1
  330. package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
  331. package/pure-cell/modern/components/footer-text/index.js +1 -1
  332. package/pure-cell/modern/components/graphics/component.js +1 -1
  333. package/pure-cell/modern/components/graphics/index.d.ts +1 -1
  334. package/pure-cell/modern/components/graphics/index.js +1 -1
  335. package/pure-cell/modern/components/main/component.js +1 -1
  336. package/pure-cell/modern/components/main/index.d.ts +1 -1
  337. package/pure-cell/modern/components/main/index.js +1 -1
  338. package/pure-cell/modern/components/text/component.js +1 -1
  339. package/pure-cell/modern/components/text/index.d.ts +1 -1
  340. package/pure-cell/modern/components/text/index.js +1 -1
  341. package/pure-cell/modern/index.js +1 -1
  342. package/select/components/base-select/Component.js +2 -2
  343. package/select/components/base-select/components/list-desktop/helpers/get-list-popover-desktop-props.d.ts +1 -1
  344. package/select/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  345. package/select/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  346. package/select/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  347. package/select/esm/Component.responsive.js +3 -3
  348. package/select/esm/components/base-select/Component.js +2 -2
  349. package/select/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  350. package/select/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  351. package/select/esm/components/base-select/components/list-mobile/list-mobile.js +1 -1
  352. package/select/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  353. package/select/esm/components/base-select/index.js +2 -2
  354. package/select/esm/components/index.js +2 -2
  355. package/select/esm/desktop/Component.desktop.js +2 -2
  356. package/select/esm/desktop/index.js +2 -2
  357. package/select/esm/index.js +3 -3
  358. package/select/esm/mobile/Component.mobile.js +3 -3
  359. package/select/esm/mobile/Component.modal.mobile.js +3 -3
  360. package/select/esm/mobile/index.js +3 -3
  361. package/select/esm/presets/index.js +1 -1
  362. package/select/esm/presets/useSelectWithApply/hook.js +1 -1
  363. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  364. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  365. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  366. package/select/esm/shared/index.js +3 -3
  367. package/select/mobile/Component.mobile.js +1 -1
  368. package/select/modern/Component.responsive.js +3 -3
  369. package/select/modern/components/base-select/Component.js +2 -2
  370. package/select/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
  371. package/select/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
  372. package/select/modern/components/base-select/components/list-mobile/list-mobile.js +1 -1
  373. package/select/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
  374. package/select/modern/components/base-select/index.js +2 -2
  375. package/select/modern/components/index.js +2 -2
  376. package/select/modern/desktop/Component.desktop.js +2 -2
  377. package/select/modern/desktop/index.js +2 -2
  378. package/select/modern/index.js +3 -3
  379. package/select/modern/mobile/Component.mobile.js +3 -3
  380. package/select/modern/mobile/Component.modal.mobile.js +3 -3
  381. package/select/modern/mobile/index.js +3 -3
  382. package/select/modern/presets/index.js +1 -1
  383. package/select/modern/presets/useSelectWithApply/hook.js +1 -1
  384. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  385. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  386. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  387. package/select/modern/shared/index.js +3 -3
  388. package/select/presets/index.js +1 -1
  389. package/select/presets/useSelectWithApply/hook.js +1 -1
  390. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  391. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  392. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  393. package/select/shared/index.js +1 -1
  394. package/side-panel/components/controls/Component.js +1 -1
  395. package/side-panel/components/footer/Component.js +1 -1
  396. package/side-panel/esm/Component.responsive.js +1 -1
  397. package/side-panel/esm/components/controls/Component.js +1 -1
  398. package/side-panel/esm/components/controls/index.js +1 -1
  399. package/side-panel/esm/components/footer/Component.desktop.js +1 -1
  400. package/side-panel/esm/components/footer/Component.js +1 -1
  401. package/side-panel/esm/components/footer/Component.mobile.js +1 -1
  402. package/side-panel/esm/desktop/Component.desktop.js +1 -1
  403. package/side-panel/esm/desktop/index.js +1 -1
  404. package/side-panel/esm/index.js +1 -1
  405. package/side-panel/esm/mobile/Component.mobile.js +1 -1
  406. package/side-panel/esm/mobile/index.js +1 -1
  407. package/side-panel/modern/Component.responsive.js +1 -1
  408. package/side-panel/modern/components/controls/Component.js +1 -1
  409. package/side-panel/modern/components/controls/index.js +1 -1
  410. package/side-panel/modern/components/footer/Component.desktop.js +1 -1
  411. package/side-panel/modern/components/footer/Component.js +1 -1
  412. package/side-panel/modern/components/footer/Component.mobile.js +1 -1
  413. package/side-panel/modern/desktop/Component.desktop.js +1 -1
  414. package/side-panel/modern/desktop/index.js +1 -1
  415. package/side-panel/modern/index.js +1 -1
  416. package/side-panel/modern/mobile/Component.mobile.js +1 -1
  417. package/side-panel/modern/mobile/index.js +1 -1
  418. package/tabs/components/primary-tablist/Component.collapsible.js +1 -1
  419. package/tabs/components/primary-tablist/Component.desktop.js +1 -1
  420. package/tabs/components/primary-tablist/Component.mobile.js +1 -1
  421. package/tabs/components/secondary-tablist/Component.desktop.js +1 -1
  422. package/tabs/components/secondary-tablist/Component.mobile.js +1 -1
  423. package/tabs/esm/collapsible/index.js +1 -1
  424. package/tabs/esm/components/primary-tablist/Component.collapsible.js +1 -1
  425. package/tabs/esm/components/primary-tablist/Component.desktop.js +1 -1
  426. package/tabs/esm/components/primary-tablist/Component.mobile.js +1 -1
  427. package/tabs/esm/components/primary-tablist/Component.responsive.js +1 -1
  428. package/tabs/esm/components/secondary-tablist/Component.desktop.js +1 -1
  429. package/tabs/esm/components/secondary-tablist/Component.mobile.js +1 -1
  430. package/tabs/esm/components/secondary-tablist/Component.responsive.js +1 -1
  431. package/tabs/esm/components/tabs/Component.collapsible.js +1 -1
  432. package/tabs/esm/components/tabs/Component.desktop.js +2 -2
  433. package/tabs/esm/components/tabs/Component.mobile.js +2 -2
  434. package/tabs/esm/components/tabs/Component.responsive.js +2 -2
  435. package/tabs/esm/desktop/index.js +2 -2
  436. package/tabs/esm/index.js +2 -2
  437. package/tabs/esm/mobile/index.js +2 -2
  438. package/tabs/modern/collapsible/index.js +1 -1
  439. package/tabs/modern/components/primary-tablist/Component.collapsible.js +1 -1
  440. package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
  441. package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
  442. package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
  443. package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
  444. package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
  445. package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
  446. package/tabs/modern/components/tabs/Component.collapsible.js +1 -1
  447. package/tabs/modern/components/tabs/Component.desktop.js +2 -2
  448. package/tabs/modern/components/tabs/Component.mobile.js +2 -2
  449. package/tabs/modern/components/tabs/Component.responsive.js +2 -2
  450. package/tabs/modern/desktop/index.js +2 -2
  451. package/tabs/modern/index.js +2 -2
  452. package/tabs/modern/mobile/index.js +2 -2
  453. package/themes/compiled/mobile-dark-bluetint.css +31 -31
  454. package/typography/esm/component.js +2 -2
  455. package/typography/esm/index.js +2 -2
  456. package/typography/esm/text/component.js +1 -1
  457. package/typography/esm/text/index.js +1 -1
  458. package/typography/esm/title/component.js +1 -1
  459. package/typography/esm/title/index.js +2 -2
  460. package/typography/esm/title-mobile/component.js +2 -2
  461. package/typography/esm/title-mobile/index.js +2 -2
  462. package/typography/esm/title-responsive/component.js +2 -2
  463. package/typography/esm/title-responsive/index.js +2 -2
  464. package/typography/modern/component.js +2 -2
  465. package/typography/modern/index.js +2 -2
  466. package/typography/modern/text/component.js +1 -1
  467. package/typography/modern/text/index.js +1 -1
  468. package/typography/modern/title/component.js +1 -1
  469. package/typography/modern/title/index.js +2 -2
  470. package/typography/modern/title-mobile/component.js +2 -2
  471. package/typography/modern/title-mobile/index.js +2 -2
  472. package/typography/modern/title-responsive/component.js +2 -2
  473. package/typography/modern/title-responsive/index.js +2 -2
  474. package/typography/text/component.js +1 -1
  475. package/typography/title/component.js +1 -1
  476. package/typography/title/index.js +1 -1
  477. package/typography/title-mobile/component.js +1 -1
  478. package/gallery/components/buttons/index.css +0 -35
  479. package/gallery/components/buttons/index.js +0 -70
  480. package/gallery/components/header-mobile/Component.d.ts +0 -4
  481. package/gallery/components/header-mobile/Component.js +0 -37
  482. package/gallery/components/header-mobile/index.css +0 -50
  483. package/gallery/components/header-mobile/index.d.ts +0 -1
  484. package/gallery/components/header-mobile/index.js +0 -7
  485. package/gallery/components/image-viewer/video/index.css +0 -48
  486. package/gallery/components/image-viewer/video/index.d.ts +0 -10
  487. package/gallery/components/image-viewer/video/index.js +0 -128
  488. package/gallery/components/info-bar/Component.d.ts +0 -4
  489. package/gallery/components/info-bar/Component.js +0 -45
  490. package/gallery/components/info-bar/index.css +0 -37
  491. package/gallery/components/info-bar/index.d.ts +0 -1
  492. package/gallery/components/info-bar/index.js +0 -7
  493. package/gallery/cssm/components/buttons/index.js +0 -69
  494. package/gallery/cssm/components/buttons/index.module.css +0 -34
  495. package/gallery/cssm/components/header-mobile/Component.d.ts +0 -4
  496. package/gallery/cssm/components/header-mobile/Component.js +0 -36
  497. package/gallery/cssm/components/header-mobile/index.d.ts +0 -1
  498. package/gallery/cssm/components/header-mobile/index.js +0 -7
  499. package/gallery/cssm/components/header-mobile/index.module.css +0 -49
  500. package/gallery/cssm/components/image-viewer/video/index.d.ts +0 -10
  501. package/gallery/cssm/components/image-viewer/video/index.js +0 -127
  502. package/gallery/cssm/components/image-viewer/video/index.module.css +0 -47
  503. package/gallery/cssm/components/info-bar/Component.d.ts +0 -4
  504. package/gallery/cssm/components/info-bar/Component.js +0 -44
  505. package/gallery/cssm/components/info-bar/index.d.ts +0 -1
  506. package/gallery/cssm/components/info-bar/index.js +0 -7
  507. package/gallery/cssm/components/info-bar/index.module.css +0 -36
  508. package/gallery/esm/components/buttons/index.css +0 -35
  509. package/gallery/esm/components/buttons/index.js +0 -55
  510. package/gallery/esm/components/header-mobile/Component.d.ts +0 -4
  511. package/gallery/esm/components/header-mobile/Component.js +0 -42
  512. package/gallery/esm/components/header-mobile/index.css +0 -50
  513. package/gallery/esm/components/header-mobile/index.d.ts +0 -1
  514. package/gallery/esm/components/header-mobile/index.js +0 -20
  515. package/gallery/esm/components/image-viewer/video/index.css +0 -48
  516. package/gallery/esm/components/image-viewer/video/index.d.ts +0 -10
  517. package/gallery/esm/components/image-viewer/video/index.js +0 -119
  518. package/gallery/esm/components/info-bar/Component.d.ts +0 -4
  519. package/gallery/esm/components/info-bar/Component.js +0 -52
  520. package/gallery/esm/components/info-bar/index.css +0 -37
  521. package/gallery/esm/components/info-bar/index.d.ts +0 -1
  522. package/gallery/esm/components/info-bar/index.js +0 -20
  523. package/gallery/modern/components/buttons/index.css +0 -35
  524. package/gallery/modern/components/buttons/index.js +0 -33
  525. package/gallery/modern/components/header-mobile/Component.d.ts +0 -4
  526. package/gallery/modern/components/header-mobile/Component.js +0 -39
  527. package/gallery/modern/components/header-mobile/index.css +0 -50
  528. package/gallery/modern/components/header-mobile/index.d.ts +0 -1
  529. package/gallery/modern/components/header-mobile/index.js +0 -19
  530. package/gallery/modern/components/image-viewer/video/index.css +0 -48
  531. package/gallery/modern/components/image-viewer/video/index.d.ts +0 -10
  532. package/gallery/modern/components/image-viewer/video/index.js +0 -117
  533. package/gallery/modern/components/info-bar/Component.d.ts +0 -4
  534. package/gallery/modern/components/info-bar/Component.js +0 -50
  535. package/gallery/modern/components/info-bar/index.css +0 -37
  536. package/gallery/modern/components/info-bar/index.d.ts +0 -1
  537. package/gallery/modern/components/info-bar/index.js +0 -19
  538. package/gallery/moderncssm/components/buttons/index.d.ts +0 -16
  539. package/gallery/moderncssm/components/buttons/index.js +0 -31
  540. package/gallery/moderncssm/components/buttons/index.module.css +0 -20
  541. package/gallery/moderncssm/components/header-mobile/Component.d.ts +0 -4
  542. package/gallery/moderncssm/components/header-mobile/Component.js +0 -38
  543. package/gallery/moderncssm/components/header-mobile/index.d.ts +0 -1
  544. package/gallery/moderncssm/components/header-mobile/index.js +0 -21
  545. package/gallery/moderncssm/components/header-mobile/index.module.css +0 -35
  546. package/gallery/moderncssm/components/image-viewer/video/index.d.ts +0 -10
  547. package/gallery/moderncssm/components/image-viewer/video/index.js +0 -115
  548. package/gallery/moderncssm/components/image-viewer/video/index.module.css +0 -36
  549. package/gallery/moderncssm/components/info-bar/Component.d.ts +0 -4
  550. package/gallery/moderncssm/components/info-bar/Component.js +0 -49
  551. package/gallery/moderncssm/components/info-bar/index.d.ts +0 -1
  552. package/gallery/moderncssm/components/info-bar/index.js +0 -21
  553. package/gallery/moderncssm/components/info-bar/index.module.css +0 -23
  554. /package/confirmation/{countdown-section-9e961bf7.d.ts → countdown-section-bec57be9.d.ts} +0 -0
  555. /package/confirmation/{countdown-section-9e961bf7.js → countdown-section-bec57be9.js} +0 -0
  556. /package/confirmation/esm/{countdown-section-369ef143.d.ts → countdown-section-fbae7d73.d.ts} +0 -0
  557. /package/confirmation/esm/{countdown-section-369ef143.js → countdown-section-fbae7d73.js} +0 -0
  558. /package/confirmation/modern/{countdown-section-a7d2a4b0.d.ts → countdown-section-9ee109fc.d.ts} +0 -0
  559. /package/confirmation/modern/{countdown-section-a7d2a4b0.js → countdown-section-9ee109fc.js} +0 -0
  560. /package/gallery/esm/{slide-f2aac299.d.ts → slide-7d5a41d1.d.ts} +0 -0
  561. /package/gallery/modern/{slide-796216a4.d.ts → slide-c47386c3.d.ts} +0 -0
  562. /package/gallery/{slide-3cbb1721.d.ts → slide-12155967.d.ts} +0 -0
  563. /package/modal/esm/{layout.module-bd39916a.js → layout.module-dabfd032.js} +0 -0
  564. /package/modal/{layout.module-c37200a9.js → layout.module-16074433.js} +0 -0
  565. /package/modal/modern/{layout.module-903aeee4.js → layout.module-bb24f394.js} +0 -0
  566. /package/plate/{PortalContext-c160e67e.d.ts → PortalContext-66c9fcca.d.ts} +0 -0
  567. /package/plate/{PortalContext-c160e67e.js → PortalContext-66c9fcca.js} +0 -0
  568. /package/plate/esm/{PortalContext-c897c950.d.ts → PortalContext-3fc97e99.d.ts} +0 -0
  569. /package/plate/esm/{PortalContext-c897c950.js → PortalContext-3fc97e99.js} +0 -0
  570. /package/plate/modern/{PortalContext-a9926b3f.d.ts → PortalContext-04fc7ecf.d.ts} +0 -0
  571. /package/plate/modern/{PortalContext-a9926b3f.js → PortalContext-04fc7ecf.js} +0 -0
  572. /package/pure-cell/{component-aa142e35.d.ts → component-3068b3cf.d.ts} +0 -0
  573. /package/pure-cell/{component-aa142e35.js → component-3068b3cf.js} +0 -0
  574. /package/pure-cell/esm/{component-e9fdd678.d.ts → component-6bec9013.d.ts} +0 -0
  575. /package/pure-cell/esm/{component-e9fdd678.js → component-6bec9013.js} +0 -0
  576. /package/pure-cell/modern/{component-c1796c97.d.ts → component-851cc791.d.ts} +0 -0
  577. /package/pure-cell/modern/{component-c1796c97.js → component-851cc791.js} +0 -0
  578. /package/select/esm/{hook-b70e8752.d.ts → hook-abcdce24.d.ts} +0 -0
  579. /package/select/esm/{hook-b70e8752.js → hook-abcdce24.js} +0 -0
  580. /package/select/esm/{list-popover-desktop-82abfef9.d.ts → list-popover-desktop-2b8c7de9.d.ts} +0 -0
  581. /package/select/esm/{list-popover-desktop-82abfef9.js → list-popover-desktop-2b8c7de9.js} +0 -0
  582. /package/select/esm/{mobile.module-047b5999.js → mobile.module-e0ef84c0.js} +0 -0
  583. /package/select/{hook-7652b5fd.d.ts → hook-15f009ec.d.ts} +0 -0
  584. /package/select/{hook-7652b5fd.js → hook-15f009ec.js} +0 -0
  585. /package/select/{list-popover-desktop-fc432c96.d.ts → list-popover-desktop-5be0267e.d.ts} +0 -0
  586. /package/select/{list-popover-desktop-fc432c96.js → list-popover-desktop-5be0267e.js} +0 -0
  587. /package/select/{mobile.module-168309b8.js → mobile.module-7c4bac8a.js} +0 -0
  588. /package/select/modern/{hook-c8901e38.d.ts → hook-3f889408.d.ts} +0 -0
  589. /package/select/modern/{hook-c8901e38.js → hook-3f889408.js} +0 -0
  590. /package/select/modern/{list-popover-desktop-9d9108a4.d.ts → list-popover-desktop-483aa9cb.d.ts} +0 -0
  591. /package/select/modern/{list-popover-desktop-9d9108a4.js → list-popover-desktop-483aa9cb.js} +0 -0
  592. /package/select/modern/{mobile.module-f289f853.js → mobile.module-cf121ed8.js} +0 -0
  593. /package/side-panel/esm/{layout.module-d2c76cf4.js → layout.module-5ef76e4a.js} +0 -0
  594. /package/side-panel/{layout.module-d3ed3b3c.js → layout.module-92877c57.js} +0 -0
  595. /package/side-panel/modern/{layout.module-e902c845.js → layout.module-e39f2d6e.js} +0 -0
  596. /package/tabs/esm/{index.module-75f706f7.js → index.module-458736bd.js} +0 -0
  597. /package/tabs/esm/{index.module-f0e3d47a.js → index.module-bb9b245f.js} +0 -0
  598. /package/tabs/{index.module-17fceaf3.js → index.module-e167e37a.js} +0 -0
  599. /package/tabs/{index.module-5920aa53.js → index.module-f46e920d.js} +0 -0
  600. /package/tabs/modern/{index.module-eea57689.js → index.module-3ad31a84.js} +0 -0
  601. /package/tabs/modern/{index.module-99da17e3.js → index.module-5424734d.js} +0 -0
  602. /package/typography/{colors.module-687856d0.js → colors.module-f631eb07.js} +0 -0
  603. /package/typography/{common.module-bc532819.js → common.module-b8c8555e.js} +0 -0
  604. /package/typography/esm/{colors.module-bf230a8b.js → colors.module-3937aaaf.js} +0 -0
  605. /package/typography/esm/{common.module-d4b7592b.js → common.module-4fc2f6be.js} +0 -0
  606. /package/typography/modern/{colors.module-9cf2fd66.js → colors.module-c4717a97.js} +0 -0
  607. /package/typography/modern/{common.module-d0775f3b.js → common.module-d78058da.js} +0 -0
@@ -1,12 +1,7 @@
1
1
  import 'react';
2
2
  import 'classnames';
3
3
  import '../../../../typography/modern';
4
- import '../../context.js';
5
- import './video/index.js';
6
- export { S as Slide } from '../../slide-796216a4.js';
7
- import 'hls.js';
8
- import '@alfalab/core-components/icon-view/circle';
9
- import '@alfalab/icons-glyph/PlayCompactMIcon';
10
- import '../../utils/constants.js';
4
+ export { S as Slide } from '../../slide-c47386c3.js';
11
5
  import '../../utils/utils.js';
6
+ import '../../utils/constants.js';
12
7
  import './paths.js';
@@ -2,5 +2,3 @@ export * from "./navigation-bar/index";
2
2
  export * from "./header/index";
3
3
  export * from "./image-preview/index";
4
4
  export * from "./image-viewer/index";
5
- export * from "./info-bar/index";
6
- export * from "./header-mobile/index";
@@ -2,38 +2,29 @@ export { NavigationBar } from './navigation-bar/Component.js';
2
2
  export { Header } from './header/Component.js';
3
3
  export { ImagePreview } from './image-preview/Component.js';
4
4
  export { ImageViewer } from './image-viewer/component.js';
5
- export { InfoBar } from './info-bar/Component.js';
6
- export { HeaderMobile } from './header-mobile/Component.js';
7
5
  import 'react';
8
6
  import '../context.js';
9
7
  import '../utils/utils.js';
10
8
  import '../utils/constants.js';
11
9
  import 'classnames';
12
- import '@alfalab/hooks';
13
- import './image-preview/paths.js';
14
- import './buttons/index.js';
10
+ import '../../../base-modal/modern';
11
+ import '../../../typography/modern';
15
12
  import '../../../icon-button/modern';
16
13
  import '../../../tooltip/modern/desktop';
17
- import '@alfalab/icons-glyph/ArrowLeftMIcon';
18
14
  import '@alfalab/icons-glyph/ArrowsInwardMIcon';
19
15
  import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
20
16
  import '@alfalab/icons-glyph/CrossMIcon';
21
- import '@alfalab/icons-glyph/PauseCompactMIcon';
22
- import '@alfalab/icons-glyph/PlayCompactMIcon';
23
17
  import '@alfalab/icons-glyph/PointerDownMIcon';
24
- import '@alfalab/icons-glyph/SoundCrossMIcon';
25
- import '@alfalab/icons-glyph/SoundMIcon';
26
- import './header-info-block/Component.js';
27
- import '../../../typography/modern';
28
- import '../utils/split-filename.js';
29
18
  import 'element-closest';
30
19
  import 'swiper';
31
20
  import 'swiper/react';
21
+ import '@alfalab/hooks';
32
22
  import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
33
23
  import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
34
- import '../slide-796216a4.js';
24
+ import '../slide-c47386c3.js';
35
25
  import './image-viewer/paths.js';
36
- import './image-viewer/video/index.js';
37
- import 'hls.js';
38
- import '@alfalab/core-components/icon-view/circle';
39
26
  import 'swiper/swiper.min.css';
27
+ import './image-preview/paths.js';
28
+ import './header-info-block/Component.js';
29
+ import '../utils/split-filename.js';
30
+ import '../buttons-1859cb8e.js';
@@ -4,21 +4,37 @@ import { getImageKey } from '../../utils/utils.js';
4
4
  import { TestIds } from '../../utils/constants.js';
5
5
  import { ImagePreview } from '../image-preview/Component.js';
6
6
  import 'classnames';
7
+ import '../../../../base-modal/modern';
8
+ import '../../../../typography/modern';
9
+ import '../../../../icon-button/modern';
10
+ import '../../../../tooltip/modern/desktop';
11
+ import '@alfalab/icons-glyph/ArrowsInwardMIcon';
12
+ import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
13
+ import '@alfalab/icons-glyph/CrossMIcon';
14
+ import '@alfalab/icons-glyph/PointerDownMIcon';
15
+ import '../image-viewer/component.js';
16
+ import 'element-closest';
17
+ import 'swiper';
18
+ import 'swiper/react';
7
19
  import '@alfalab/hooks';
20
+ import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
21
+ import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
22
+ import '../../slide-c47386c3.js';
23
+ import '../image-viewer/paths.js';
24
+ import 'swiper/swiper.min.css';
8
25
  import '../image-preview/paths.js';
9
26
 
10
- const styles = {"component":"gallery__component_1kepd","previews":"gallery__previews_1kepd","preview":"gallery__preview_1kepd"};
27
+ const styles = {"component":"gallery__component_1kepd","preview":"gallery__preview_1kepd"};
11
28
  require('./index.css');
12
29
 
13
30
  const MIN_SCROLL_STEP = 24;
14
31
  const NavigationBar = () => {
15
32
  const containerRef = useRef(null);
16
- const { images, currentSlideIndex, setCurrentSlideIndex, getSwiper, setPlayingVideo } = useContext(GalleryContext);
33
+ const { images, currentSlideIndex, setCurrentSlideIndex, getSwiper } = useContext(GalleryContext);
17
34
  const swiper = getSwiper();
18
35
  const handlePreviewSelect = (index) => {
19
36
  setCurrentSlideIndex?.(index);
20
37
  if (swiper) {
21
- setPlayingVideo(true);
22
38
  swiper.slideTo(index);
23
39
  }
24
40
  };
@@ -35,9 +35,7 @@
35
35
  scrollbar-width: none
36
36
  } .gallery__component_1kepd::-webkit-scrollbar {
37
37
  display: none;
38
- } .gallery__previews_1kepd {
39
- display: flex;
40
- } .gallery__preview_1kepd {
38
+ } .gallery__preview_1kepd {
41
39
  flex-shrink: 0;
42
40
  margin: var(--gap-0) var(--gap-2)
43
41
  } .gallery__preview_1kepd:first-child {
@@ -5,5 +5,22 @@ import '../../utils/utils.js';
5
5
  import '../../utils/constants.js';
6
6
  import '../image-preview/Component.js';
7
7
  import 'classnames';
8
+ import '../../../../base-modal/modern';
9
+ import '../../../../typography/modern';
10
+ import '../../../../icon-button/modern';
11
+ import '../../../../tooltip/modern/desktop';
12
+ import '@alfalab/icons-glyph/ArrowsInwardMIcon';
13
+ import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
14
+ import '@alfalab/icons-glyph/CrossMIcon';
15
+ import '@alfalab/icons-glyph/PointerDownMIcon';
16
+ import '../image-viewer/component.js';
17
+ import 'element-closest';
18
+ import 'swiper';
19
+ import 'swiper/react';
8
20
  import '@alfalab/hooks';
21
+ import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
22
+ import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
23
+ import '../../slide-c47386c3.js';
24
+ import '../image-viewer/paths.js';
25
+ import 'swiper/swiper.min.css';
9
26
  import '../image-preview/paths.js';
@@ -2,20 +2,13 @@
2
2
  import SwiperCore from 'swiper';
3
3
  import { GalleryImage, ImageMeta } from "./types";
4
4
  type GalleryContext = {
5
- view: 'desktop' | 'mobile';
6
5
  singleSlide: boolean;
7
6
  currentSlideIndex: number;
8
7
  images: GalleryImage[];
9
8
  imagesMeta: ImageMeta[];
10
9
  fullScreen: boolean;
11
- mutedVideo: boolean;
12
- playingVideo: boolean;
13
- hideNavigation: boolean;
14
- setHideNavigation: (hideNavigation: boolean) => void;
15
10
  initialSlide: number;
16
11
  setFullScreen: (fullScreen: boolean) => void;
17
- setMutedVideo: (muteVideo: boolean) => void;
18
- setPlayingVideo: (playingVideo: boolean) => void;
19
12
  setImageMeta: (meta: ImageMeta, index: number) => void;
20
13
  slideTo: (index: number) => void;
21
14
  slideNext: () => void;
@@ -3,18 +3,11 @@ import { createContext } from 'react';
3
3
  const mockFn = () => undefined;
4
4
  // eslint-disable-next-line @typescript-eslint/no-redeclare
5
5
  const GalleryContext = createContext({
6
- view: 'desktop',
7
6
  singleSlide: false,
8
7
  currentSlideIndex: 0,
9
8
  images: [],
10
9
  imagesMeta: [],
11
10
  fullScreen: false,
12
- mutedVideo: false,
13
- playingVideo: false,
14
- hideNavigation: false,
15
- setHideNavigation: mockFn,
16
- setMutedVideo: mockFn,
17
- setPlayingVideo: mockFn,
18
11
  initialSlide: 0,
19
12
  setFullScreen: mockFn,
20
13
  setImageMeta: mockFn,
@@ -20,8 +20,6 @@
20
20
  } :root {
21
21
  } :root {
22
22
  } /* сбрасывает синюю подсветку при нажатии */ .gallery__container_1s8yu {
23
- position: relative;
24
- overflow: hidden;
25
23
  display: flex;
26
24
  flex-direction: column;
27
25
  justify-content: space-between;
@@ -30,17 +28,7 @@
30
28
  background-color: var(--color-static-neutral-0-inverted);
31
29
  } .gallery__modal_1s8yu {
32
30
  flex-grow: 1;
33
- width: 100vw;
34
- height: 100vh;
35
- background: transparent;
36
- } .gallery__navigationVideo_1s8yu {
37
- background-color: var(--color-static-neutral-0-inverted);
38
- z-index: 3;
39
31
  width: 100%;
40
- position: absolute;
41
- bottom: 0;
42
- left: 0;
43
- transition: transform 0.3s ease-in-out;
44
- } .gallery__hideNavigation_1s8yu {
45
- transform: translateY(106px);
32
+ height: 100%;
33
+ background: transparent;
46
34
  }
@@ -1,2 +1,2 @@
1
1
  export * from "./Component";
2
- export { GALLERY_EVENTS, TestIds } from "./utils/index";
2
+ export * from "./utils/index";
@@ -1,41 +1,31 @@
1
1
  export { Gallery } from './Component.js';
2
- export { GALLERY_EVENTS, TestIds } from './utils/constants.js';
2
+ export { splitFilename } from './utils/split-filename.js';
3
+ export { PLACEHOLDER_HEIGHT, PLACEHOLDER_WIDTH, getImageAlt, getImageKey, isSmallImage } from './utils/utils.js';
4
+ export { TestIds } from './utils/constants.js';
3
5
  import 'react';
4
- import 'classnames';
5
6
  import '../../base-modal/modern';
6
- import '@alfalab/hooks';
7
7
  import './components/navigation-bar/Component.js';
8
8
  import './context.js';
9
- import './utils/utils.js';
10
9
  import './components/image-preview/Component.js';
11
- import './components/image-preview/paths.js';
12
- import './components/header/Component.js';
13
- import './components/buttons/index.js';
10
+ import 'classnames';
11
+ import '../../typography/modern';
14
12
  import '../../icon-button/modern';
15
13
  import '../../tooltip/modern/desktop';
16
- import '@alfalab/icons-glyph/ArrowLeftMIcon';
17
14
  import '@alfalab/icons-glyph/ArrowsInwardMIcon';
18
15
  import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
19
16
  import '@alfalab/icons-glyph/CrossMIcon';
20
- import '@alfalab/icons-glyph/PauseCompactMIcon';
21
- import '@alfalab/icons-glyph/PlayCompactMIcon';
22
17
  import '@alfalab/icons-glyph/PointerDownMIcon';
23
- import '@alfalab/icons-glyph/SoundCrossMIcon';
24
- import '@alfalab/icons-glyph/SoundMIcon';
25
- import './components/header-info-block/Component.js';
26
- import '../../typography/modern';
27
- import './utils/split-filename.js';
28
18
  import './components/image-viewer/component.js';
29
19
  import 'element-closest';
30
20
  import 'swiper';
31
21
  import 'swiper/react';
22
+ import '@alfalab/hooks';
32
23
  import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
33
24
  import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
34
- import './slide-796216a4.js';
25
+ import './slide-c47386c3.js';
35
26
  import './components/image-viewer/paths.js';
36
- import './components/image-viewer/video/index.js';
37
- import 'hls.js';
38
- import '@alfalab/core-components/icon-view/circle';
39
27
  import 'swiper/swiper.min.css';
40
- import './components/info-bar/Component.js';
41
- import './components/header-mobile/Component.js';
28
+ import './components/image-preview/paths.js';
29
+ import './components/header/Component.js';
30
+ import './components/header-info-block/Component.js';
31
+ import './buttons-1859cb8e.js';
@@ -1,45 +1,32 @@
1
- import React, { useContext } from 'react';
1
+ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Typography } from '../../typography/modern';
4
- import { GalleryContext } from './context.js';
5
- import { isSmallImage, isVideo, getImageAlt } from './utils/utils.js';
4
+ import { isSmallImage, getImageAlt } from './utils/utils.js';
6
5
  import { TestIds } from './utils/constants.js';
7
6
  import { NoImagePaths } from './components/image-viewer/paths.js';
8
- import { Video } from './components/image-viewer/video/index.js';
9
- import 'hls.js';
10
- import '@alfalab/core-components/icon-view/circle';
11
- import '@alfalab/icons-glyph/PlayCompactMIcon';
12
7
 
13
- const styles = {"component":"gallery__component_i28al","swiper":"gallery__swiper_i28al","mobile":"gallery__mobile_i28al","mobileVideo":"gallery__mobileVideo_i28al","singleSlide":"gallery__singleSlide_i28al","hidden":"gallery__hidden_i28al","slide":"gallery__slide_i28al","slideLoading":"gallery__slideLoading_i28al","image":"gallery__image_i28al","smallImage":"gallery__smallImage_i28al","verticalImageFit":"gallery__verticalImageFit_i28al","horizontalImageFit":"gallery__horizontalImageFit_i28al","arrow":"gallery__arrow_i28al","focused":"gallery__focused_i28al","placeholder":"gallery__placeholder_i28al","brokenImgWrapper":"gallery__brokenImgWrapper_i28al","brokenImgIcon":"gallery__brokenImgIcon_i28al","fullScreenImage":"gallery__fullScreenImage_i28al","fullScreenVideo":"gallery__fullScreenVideo_i28al"};
8
+ const styles = {"component":"gallery__component_i28al","swiper":"gallery__swiper_i28al","singleSlide":"gallery__singleSlide_i28al","hidden":"gallery__hidden_i28al","slide":"gallery__slide_i28al","slideLoading":"gallery__slideLoading_i28al","image":"gallery__image_i28al","smallImage":"gallery__smallImage_i28al","verticalImageFit":"gallery__verticalImageFit_i28al","horizontalImageFit":"gallery__horizontalImageFit_i28al","arrow":"gallery__arrow_i28al","focused":"gallery__focused_i28al","placeholder":"gallery__placeholder_i28al","brokenImgWrapper":"gallery__brokenImgWrapper_i28al","brokenImgIcon":"gallery__brokenImgIcon_i28al","fullScreenImage":"gallery__fullScreenImage_i28al"};
14
9
  require('./components/image-viewer/index.css');
15
10
 
16
- const SlideInner = ({ children, broken, loading, withPlaceholder, isVideoView, }) => {
11
+ const SlideInner = ({ children, broken, loading, withPlaceholder }) => {
17
12
  const content = broken ? (React.createElement("div", { className: styles.brokenImgWrapper },
18
13
  React.createElement("div", { className: styles.brokenImgIcon },
19
14
  React.createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '80', height: '80', viewBox: '0 0 80 80', fill: 'none' },
20
15
  React.createElement("rect", { width: '80', height: '80', fill: 'none' }),
21
16
  React.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: NoImagePaths.baseImage, fill: '#89898A' }),
22
17
  React.createElement("path", { d: NoImagePaths.triangleImage, fill: '#89898A' }))),
23
- React.createElement(Typography.Text, { view: 'primary-small', color: 'static-secondary-light' },
24
- "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C ",
25
- isVideoView ? 'видео' : 'изображение'))) : (children);
18
+ React.createElement(Typography.Text, { view: 'primary-small', color: 'static-secondary-light' }, "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435"))) : (children);
26
19
  return (React.createElement("div", { className: cn(styles.slide, { [styles.slideLoading]: loading }) }, withPlaceholder ? React.createElement("div", { className: styles.placeholder }, content) : content));
27
20
  };
28
21
  const Slide = ({ isActive, meta, swiperAspectRatio, imageAspectRatio, image, index, swiperHeight, slideVisible, handleLoad, handleLoadError, }) => {
29
- const { view } = useContext(GalleryContext);
30
22
  const broken = Boolean(meta?.broken);
31
23
  const small = isSmallImage(meta);
32
24
  const verticalImageFit = !small && swiperAspectRatio > imageAspectRatio;
33
25
  const horizontalImageFit = !small && swiperAspectRatio <= imageAspectRatio;
34
- if (isVideo(image.src)) {
35
- return (React.createElement(SlideInner, { isVideoView: true, active: isActive, broken: broken, withPlaceholder: broken, loading: !meta },
36
- React.createElement(Video, { url: image.src, index: index, isActive: isActive })));
37
- }
38
26
  return (React.createElement(SlideInner, { active: isActive, broken: broken, loading: !meta, withPlaceholder: small || broken },
39
27
  React.createElement("img", { src: image.src, alt: getImageAlt(image, index), className: cn({
40
28
  [styles.smallImage]: small,
41
29
  [styles.image]: !small && meta,
42
- [styles.mobile]: view === 'mobile',
43
30
  [styles.verticalImageFit]: verticalImageFit,
44
31
  [styles.horizontalImageFit]: horizontalImageFit,
45
32
  }), onLoad: (event) => handleLoad(event, index), onError: () => handleLoadError(index), style: {
@@ -1,4 +1,3 @@
1
- import { RefObject } from 'react';
2
1
  type GalleryImage = {
3
2
  src: string;
4
3
  name?: string;
@@ -10,11 +9,5 @@ type ImageMeta = {
10
9
  width: number;
11
10
  height: number;
12
11
  broken?: boolean;
13
- player?: never;
14
- } | {
15
- width?: never;
16
- height?: never;
17
- broken?: boolean;
18
- player: RefObject<HTMLVideoElement>;
19
12
  };
20
13
  export { GalleryImage, ImageMeta };
@@ -7,18 +7,5 @@ declare const TestIds: {
7
7
  EXIT_FULLSCREEN_BUTTON: string;
8
8
  DOWNLOAD_BUTTON: string;
9
9
  NAVIGATION_BAR: string;
10
- MUTE_BUTTON: string;
11
- UNMUTE_BUTTON: string;
12
10
  };
13
- declare const PREVIEW_WIDTH_MOBILE = 36;
14
- declare const PREVIEW_HEIGHT_MOBILE = 46;
15
- declare const PREVIEW_WIDTH_DESKTOP = 56;
16
- declare const PREVIEW_HEIGHT_DESKTOP = 56;
17
- declare const PREVIEW_VIDEO_MULTIPLIER = 12;
18
- declare const GALLERY_EVENTS: {
19
- ON_PLAY: string;
20
- ON_PAUSE: string;
21
- ON_MUTE: string;
22
- ON_UNMUTE: string;
23
- };
24
- export { TestIds, PREVIEW_WIDTH_MOBILE, PREVIEW_HEIGHT_MOBILE, PREVIEW_WIDTH_DESKTOP, PREVIEW_HEIGHT_DESKTOP, PREVIEW_VIDEO_MULTIPLIER, GALLERY_EVENTS };
11
+ export { TestIds };
@@ -7,19 +7,6 @@ const TestIds = {
7
7
  EXIT_FULLSCREEN_BUTTON: 'exit-fullscreen-button',
8
8
  DOWNLOAD_BUTTON: 'download-button',
9
9
  NAVIGATION_BAR: 'navigation-bar',
10
- MUTE_BUTTON: 'mute-button',
11
- UNMUTE_BUTTON: 'unmute-button',
12
- };
13
- const PREVIEW_WIDTH_MOBILE = 36;
14
- const PREVIEW_HEIGHT_MOBILE = 46;
15
- const PREVIEW_WIDTH_DESKTOP = 56;
16
- const PREVIEW_HEIGHT_DESKTOP = 56;
17
- const PREVIEW_VIDEO_MULTIPLIER = 12;
18
- const GALLERY_EVENTS = {
19
- ON_PLAY: 'Gallery:OnPlay',
20
- ON_PAUSE: 'Gallery:OnPause',
21
- ON_MUTE: 'Gallery:OnMute',
22
- ON_UNMUTE: 'Gallery:OnUnmute',
23
10
  };
24
11
 
25
- export { GALLERY_EVENTS, PREVIEW_HEIGHT_DESKTOP, PREVIEW_HEIGHT_MOBILE, PREVIEW_VIDEO_MULTIPLIER, PREVIEW_WIDTH_DESKTOP, PREVIEW_WIDTH_MOBILE, TestIds };
12
+ export { TestIds };
@@ -1,3 +1,3 @@
1
1
  export { splitFilename } from './split-filename.js';
2
- export { PLACEHOLDER_HEIGHT, PLACEHOLDER_WIDTH, getImageAlt, getImageKey, isSmallImage, isVideo } from './utils.js';
3
- export { GALLERY_EVENTS, PREVIEW_HEIGHT_DESKTOP, PREVIEW_HEIGHT_MOBILE, PREVIEW_VIDEO_MULTIPLIER, PREVIEW_WIDTH_DESKTOP, PREVIEW_WIDTH_MOBILE, TestIds } from './constants.js';
2
+ export { PLACEHOLDER_HEIGHT, PLACEHOLDER_WIDTH, getImageAlt, getImageKey, isSmallImage } from './utils.js';
3
+ export { TestIds } from './constants.js';
@@ -4,5 +4,4 @@ declare const PLACEHOLDER_HEIGHT = 300;
4
4
  declare const getImageKey: ({ name, src }: GalleryImage, index: number) => string;
5
5
  declare const getImageAlt: ({ alt, name }: GalleryImage, index: number) => string;
6
6
  declare const isSmallImage: (meta?: ImageMeta) => boolean;
7
- declare const isVideo: (url: string | undefined) => boolean;
8
- export { PLACEHOLDER_WIDTH, PLACEHOLDER_HEIGHT, getImageKey, getImageAlt, isSmallImage, isVideo };
7
+ export { PLACEHOLDER_WIDTH, PLACEHOLDER_HEIGHT, getImageKey, getImageAlt, isSmallImage };
@@ -3,11 +3,10 @@ const PLACEHOLDER_HEIGHT = 300;
3
3
  const getImageKey = ({ name = '', src }, index) => `${name}-${index}-${src}`;
4
4
  const getImageAlt = ({ alt, name }, index) => alt || name || `Изображение ${index + 1}`;
5
5
  const isSmallImage = (meta) => {
6
- if (meta && meta.width && meta.height) {
7
- return meta.width < PLACEHOLDER_WIDTH && meta.height < PLACEHOLDER_HEIGHT;
6
+ if (!meta) {
7
+ return false;
8
8
  }
9
- return false;
9
+ return meta.width < PLACEHOLDER_WIDTH && meta.height < PLACEHOLDER_HEIGHT;
10
10
  };
11
- const isVideo = (url) => /(.*?)(\.webm|\.mp4|\.m3u8)$/.test(url ?? '');
12
11
 
13
- export { PLACEHOLDER_HEIGHT, PLACEHOLDER_WIDTH, getImageAlt, getImageKey, isSmallImage, isVideo };
12
+ export { PLACEHOLDER_HEIGHT, PLACEHOLDER_WIDTH, getImageAlt, getImageKey, isSmallImage };
@@ -1,38 +1,30 @@
1
1
  import React, { useState, useCallback, useEffect } from 'react';
2
- import cn from 'classnames';
3
2
  import { BaseModal } from '../../base-modal/moderncssm';
4
- import { useMedia } from '@alfalab/hooks';
5
3
  import { NavigationBar } from './components/navigation-bar/Component.js';
6
4
  import { Header } from './components/header/Component.js';
5
+ import 'classnames';
6
+ import '@alfalab/hooks';
7
7
  import { GalleryContext } from './context.js';
8
8
  import './components/image-preview/index.module.css';
9
9
  import { ImageViewer } from './components/image-viewer/component.js';
10
- import { InfoBar } from './components/info-bar/Component.js';
11
- import { HeaderMobile } from './components/header-mobile/Component.js';
12
10
  import styles from './index.module.css';
13
11
  import './utils/utils.js';
14
12
  import './utils/constants.js';
15
13
  import './components/image-preview/Component.js';
16
- import './components/image-preview/paths.js';
17
14
  import './components/navigation-bar/index.module.css';
18
- import './components/buttons/index.js';
15
+ import '../../typography/moderncssm';
16
+ import './components/header-info-block/index.module.css';
19
17
  import '../../icon-button/moderncssm';
20
18
  import '../../tooltip/moderncssm/desktop';
21
- import '@alfalab/icons-glyph/ArrowLeftMIcon';
22
19
  import '@alfalab/icons-glyph/ArrowsInwardMIcon';
23
20
  import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
24
21
  import '@alfalab/icons-glyph/CrossMIcon';
25
- import '@alfalab/icons-glyph/PauseCompactMIcon';
26
- import '@alfalab/icons-glyph/PlayCompactMIcon';
27
22
  import '@alfalab/icons-glyph/PointerDownMIcon';
28
- import '@alfalab/icons-glyph/SoundCrossMIcon';
29
- import '@alfalab/icons-glyph/SoundMIcon';
30
- import './components/buttons/index.module.css';
23
+ import './components/header/index.module.css';
24
+ import './components/image-preview/paths.js';
31
25
  import './components/header-info-block/Component.js';
32
- import '../../typography/moderncssm';
33
26
  import './utils/split-filename.js';
34
- import './components/header-info-block/index.module.css';
35
- import './components/header/index.module.css';
27
+ import './components/header/buttons.js';
36
28
  import 'element-closest';
37
29
  import 'swiper';
38
30
  import 'swiper/react';
@@ -40,19 +32,9 @@ import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
40
32
  import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
41
33
  import './components/image-viewer/slide.js';
42
34
  import './components/image-viewer/paths.js';
43
- import './components/image-viewer/video/index.js';
44
- import 'hls.js';
45
- import '@alfalab/core-components/icon-view/circle';
46
- import './components/image-viewer/video/index.module.css';
47
35
  import './components/image-viewer/index.module.css';
48
36
  import 'swiper/swiper.min.css';
49
- import './components/info-bar/index.module.css';
50
- import './components/header-mobile/index.module.css';
51
37
 
52
- const DEFAULT_FULL_SCREEN = false;
53
- const DEFAULT_MUTED_VIDEO = true;
54
- const DEFAULT_PLAYING_VIDEO = true;
55
- const DEFAULT_HIDE_NAVIGATION = false;
56
38
  const Backdrop = () => null;
57
39
  const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onClose, onSlideIndexChange, }) => {
58
40
  const currentSlideIndexState = useState(initialSlide);
@@ -62,21 +44,11 @@ const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onCl
62
44
  : [slideIndex, onSlideIndexChange];
63
45
  const [swiper, setSwiper] = useState();
64
46
  const [imagesMeta, setImagesMeta] = useState([]);
65
- const [fullScreen, setFullScreen] = useState(DEFAULT_FULL_SCREEN);
66
- const [mutedVideo, setMutedVideo] = useState(DEFAULT_MUTED_VIDEO);
67
- const [playingVideo, setPlayingVideo] = useState(DEFAULT_PLAYING_VIDEO);
68
- const [hideNavigation, setHideNavigation] = useState(DEFAULT_HIDE_NAVIGATION);
69
- const [view] = useMedia([
70
- ['mobile', '(max-width: 1023px)'],
71
- ['desktop', '(min-width: 1024px)'],
72
- ], 'desktop');
73
- const isMobile = view === 'mobile';
74
- const isCurrentVideo = !!imagesMeta[currentSlideIndex]?.player?.current;
47
+ const [fullScreen, setFullScreen] = useState(false);
75
48
  const slideTo = useCallback((index) => {
76
49
  if (images[index]) {
77
50
  setCurrentSlideIndex?.(index);
78
51
  if (swiper) {
79
- setPlayingVideo(true);
80
52
  swiper.slideTo(index);
81
53
  }
82
54
  }
@@ -129,10 +101,6 @@ const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onCl
129
101
  break;
130
102
  }
131
103
  }, [fullScreen, open, slideNext, slidePrev]);
132
- const onUnmount = useCallback(() => {
133
- setPlayingVideo(DEFAULT_PLAYING_VIDEO);
134
- setMutedVideo(DEFAULT_MUTED_VIDEO);
135
- }, [setPlayingVideo]);
136
104
  useEffect(() => {
137
105
  if (!uncontrolled && !swiper?.destroyed) {
138
106
  swiper?.slideTo(currentSlideIndex);
@@ -148,7 +116,6 @@ const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onCl
148
116
  const showNavigationBar = !singleSlide && !fullScreen;
149
117
  // eslint-disable-next-line react/jsx-no-constructed-context-values
150
118
  const galleryContext = {
151
- view,
152
119
  singleSlide,
153
120
  currentSlideIndex,
154
121
  images,
@@ -156,12 +123,6 @@ const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onCl
156
123
  fullScreen,
157
124
  initialSlide: uncontrolled ? initialSlide : currentSlideIndex,
158
125
  setFullScreen,
159
- playingVideo,
160
- setPlayingVideo,
161
- mutedVideo,
162
- setMutedVideo,
163
- hideNavigation,
164
- setHideNavigation,
165
126
  setImageMeta,
166
127
  slideNext,
167
128
  slidePrev,
@@ -174,16 +135,11 @@ const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onCl
174
135
  getCurrentImageMeta: () => imagesMeta[currentSlideIndex],
175
136
  };
176
137
  return (React.createElement(GalleryContext.Provider, { value: galleryContext },
177
- React.createElement(BaseModal, { open: open, className: styles.modal, onEscapeKeyDown: handleEscapeKeyDown, Backdrop: Backdrop, onUnmount: onUnmount },
138
+ React.createElement(BaseModal, { open: open, className: styles.modal, onEscapeKeyDown: handleEscapeKeyDown, Backdrop: Backdrop },
178
139
  React.createElement("div", { className: styles.container },
179
- view === 'desktop' ? React.createElement(Header, null) : React.createElement(HeaderMobile, null),
140
+ React.createElement(Header, null),
180
141
  React.createElement(ImageViewer, null),
181
- React.createElement("nav", { className: cn({
182
- [styles.navigationVideo]: isCurrentVideo && isMobile,
183
- [styles.hideNavigation]: hideNavigation && isMobile,
184
- }) },
185
- showNavigationBar && React.createElement(NavigationBar, null),
186
- view === 'mobile' && React.createElement(InfoBar, null))))));
142
+ showNavigationBar && React.createElement(NavigationBar, null)))));
187
143
  };
188
144
 
189
145
  export { Gallery };
@@ -1,47 +1,23 @@
1
1
  import React, { useContext, useRef, useEffect } from 'react';
2
2
  import { GalleryContext } from '../../context.js';
3
- import { isSmallImage, isVideo } from '../../utils/utils.js';
4
- import { TestIds, GALLERY_EVENTS } from '../../utils/constants.js';
5
- import { Download, Exit, ExitFullscreen, Fullscreen, UnmuteVideo, MuteVideo } from '../buttons/index.js';
3
+ import { isSmallImage } from '../../utils/utils.js';
4
+ import { TestIds } from '../../utils/constants.js';
6
5
  import { HeaderInfoBlock } from '../header-info-block/Component.js';
6
+ import { Download, Exit, ExitFullscreen, Fullscreen } from './buttons.js';
7
7
  import styles from './index.module.css';
8
- import 'classnames';
8
+ import '../../../../typography/moderncssm';
9
+ import '../../utils/split-filename.js';
10
+ import '../header-info-block/index.module.css';
9
11
  import '../../../../icon-button/moderncssm';
10
12
  import '../../../../tooltip/moderncssm/desktop';
11
- import '@alfalab/icons-glyph/ArrowLeftMIcon';
12
13
  import '@alfalab/icons-glyph/ArrowsInwardMIcon';
13
14
  import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
14
15
  import '@alfalab/icons-glyph/CrossMIcon';
15
- import '@alfalab/icons-glyph/PauseCompactMIcon';
16
- import '@alfalab/icons-glyph/PlayCompactMIcon';
17
16
  import '@alfalab/icons-glyph/PointerDownMIcon';
18
- import '@alfalab/icons-glyph/SoundCrossMIcon';
19
- import '@alfalab/icons-glyph/SoundMIcon';
20
- import '../buttons/index.module.css';
21
- import '../../../../typography/moderncssm';
22
- import '../../utils/split-filename.js';
23
- import '../header-info-block/index.module.css';
24
17
 
25
18
  const Header = () => {
26
- const { currentSlideIndex, singleSlide, images, fullScreen, getCurrentImageMeta, getCurrentImage, setFullScreen, onClose, mutedVideo, setMutedVideo, } = useContext(GalleryContext);
27
- const currentImage = getCurrentImage();
28
- const meta = getCurrentImageMeta();
19
+ const { currentSlideIndex, singleSlide, images, fullScreen, getCurrentImageMeta, getCurrentImage, setFullScreen, onClose, } = useContext(GalleryContext);
29
20
  const toggleFullScreenButton = useRef(null);
30
- const onMuteButtonClick = () => {
31
- if (mutedVideo) {
32
- const customEvent = new CustomEvent(GALLERY_EVENTS.ON_UNMUTE, {
33
- detail: { player: meta?.player?.current },
34
- });
35
- dispatchEvent(customEvent);
36
- }
37
- else {
38
- const customEvent = new CustomEvent(GALLERY_EVENTS.ON_MUTE, {
39
- detail: { player: meta?.player?.current },
40
- });
41
- dispatchEvent(customEvent);
42
- }
43
- setMutedVideo(!mutedVideo);
44
- };
45
21
  const closeFullScreen = () => {
46
22
  setFullScreen(false);
47
23
  };
@@ -53,17 +29,19 @@ const Header = () => {
53
29
  toggleFullScreenButton.current.focus();
54
30
  }
55
31
  }, [fullScreen]);
32
+ const currentImage = getCurrentImage();
56
33
  const canDownload = currentImage?.canDownload ?? true;
57
34
  const filename = currentImage?.name || '';
58
- const description = singleSlide || !images.length ? '' : `${currentSlideIndex + 1} из ${images.length}`;
35
+ const description = singleSlide || !images.length
36
+ ? ''
37
+ : `Изображение ${currentSlideIndex + 1} из ${images.length}`;
38
+ const meta = getCurrentImageMeta();
59
39
  const showFullScreenButton = !isSmallImage(meta) && !meta?.broken;
60
40
  const showDownloadButton = !meta?.broken && canDownload;
61
41
  const renderToggleFullScreenButton = () => fullScreen ? (React.createElement(ExitFullscreen, { onClick: closeFullScreen, buttonRef: toggleFullScreenButton, dataTestId: TestIds.EXIT_FULLSCREEN_BUTTON })) : (React.createElement(Fullscreen, { onClick: openFullScreen, buttonRef: toggleFullScreenButton, dataTestId: TestIds.FULLSCREEN_BUTTON }));
62
- const renderToggleMuteVideo = () => mutedVideo ? (React.createElement(UnmuteVideo, { onClick: onMuteButtonClick, dataTestId: TestIds.UNMUTE_BUTTON })) : (React.createElement(MuteVideo, { onClick: onMuteButtonClick, dataTestId: TestIds.MUTE_BUTTON }));
63
42
  return (React.createElement("div", { className: styles.header },
64
43
  React.createElement(HeaderInfoBlock, { filename: filename, description: description }),
65
44
  React.createElement("div", { className: styles.buttons },
66
- isVideo(currentImage?.src) && renderToggleMuteVideo(),
67
45
  showFullScreenButton && renderToggleFullScreenButton(),
68
46
  showDownloadButton && (React.createElement(Download, { href: currentImage?.src, download: currentImage?.name, dataTestId: TestIds.DOWNLOAD_BUTTON })),
69
47
  React.createElement(Exit, { onClick: onClose, dataTestId: TestIds.CLOSE_BUTTON }))));