@alfalab/core-components-gallery 5.12.8 → 6.0.0-snapshot-6a9d3fc

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 (680) hide show
  1. package/Component.d.ts +3 -4
  2. package/Component.js +23 -23
  3. package/Component.js.map +1 -0
  4. package/components/bottom-button/Component.d.ts +5 -7
  5. package/components/bottom-button/Component.js +3 -4
  6. package/components/bottom-button/Component.js.map +1 -0
  7. package/components/bottom-button/index.css +7 -29
  8. package/components/bottom-button/index.d.ts +1 -1
  9. package/components/bottom-button/index.js +3 -2
  10. package/components/bottom-button/index.js.map +1 -0
  11. package/components/bottom-button/index.module.css.js +8 -0
  12. package/components/bottom-button/index.module.css.js.map +1 -0
  13. package/components/buttons/index.css +8 -29
  14. package/components/buttons/index.d.ts +13 -13
  15. package/components/buttons/index.js +12 -13
  16. package/components/buttons/index.js.map +1 -0
  17. package/components/buttons/index.module.css.js +8 -0
  18. package/components/buttons/index.module.css.js.map +1 -0
  19. package/components/header/Component.d.ts +1 -2
  20. package/components/header/Component.js +15 -16
  21. package/components/header/Component.js.map +1 -0
  22. package/components/header/index.css +4 -26
  23. package/components/header/index.d.ts +1 -1
  24. package/components/header/index.js +3 -2
  25. package/components/header/index.js.map +1 -0
  26. package/components/header/index.module.css.js +8 -0
  27. package/components/header/index.module.css.js.map +1 -0
  28. package/components/header-info-block/Component.d.ts +2 -3
  29. package/components/header-info-block/Component.js +8 -9
  30. package/components/header-info-block/Component.js.map +1 -0
  31. package/components/header-info-block/index.css +6 -28
  32. package/components/header-info-block/index.d.ts +1 -1
  33. package/components/header-info-block/index.js +3 -2
  34. package/components/header-info-block/index.js.map +1 -0
  35. package/components/header-info-block/index.module.css.js +8 -0
  36. package/components/header-info-block/index.module.css.js.map +1 -0
  37. package/components/header-mobile/Component.d.ts +1 -3
  38. package/components/header-mobile/Component.js +14 -15
  39. package/components/header-mobile/Component.js.map +1 -0
  40. package/components/header-mobile/index.css +8 -30
  41. package/components/header-mobile/index.d.ts +1 -1
  42. package/components/header-mobile/index.js +3 -2
  43. package/components/header-mobile/index.js.map +1 -0
  44. package/components/header-mobile/index.module.css.js +8 -0
  45. package/components/header-mobile/index.module.css.js.map +1 -0
  46. package/components/image-preview/Component.d.ts +4 -4
  47. package/components/image-preview/Component.js +28 -29
  48. package/components/image-preview/Component.js.map +1 -0
  49. package/components/image-preview/index.css +24 -42
  50. package/components/image-preview/index.d.ts +1 -1
  51. package/components/image-preview/index.js +3 -2
  52. package/components/image-preview/index.js.map +1 -0
  53. package/components/image-preview/index.module.css.js +8 -0
  54. package/components/image-preview/index.module.css.js.map +1 -0
  55. package/components/image-preview/paths.d.ts +1 -2
  56. package/components/image-preview/paths.js +1 -0
  57. package/components/image-preview/paths.js.map +1 -0
  58. package/components/image-viewer/component.d.ts +2 -2
  59. package/components/image-viewer/component.js +27 -25
  60. package/components/image-viewer/component.js.map +1 -0
  61. package/components/image-viewer/hooks.d.ts +9 -0
  62. package/components/image-viewer/hooks.js +45 -5
  63. package/components/image-viewer/hooks.js.map +1 -0
  64. package/components/image-viewer/index.css +34 -53
  65. package/components/image-viewer/index.d.ts +1 -1
  66. package/components/image-viewer/index.js +3 -2
  67. package/components/image-viewer/index.js.map +1 -0
  68. package/components/image-viewer/index.module.css.js +8 -0
  69. package/components/image-viewer/index.module.css.js.map +1 -0
  70. package/components/image-viewer/paths.d.ts +1 -2
  71. package/components/image-viewer/paths.js +1 -0
  72. package/components/image-viewer/paths.js.map +1 -0
  73. package/components/image-viewer/single.d.ts +1 -2
  74. package/components/image-viewer/single.js +10 -8
  75. package/components/image-viewer/single.js.map +1 -0
  76. package/components/image-viewer/slide.d.ts +4 -4
  77. package/components/image-viewer/slide.js +27 -25
  78. package/components/image-viewer/slide.js.map +1 -0
  79. package/components/image-viewer/video/index.css +10 -31
  80. package/components/image-viewer/video/index.d.ts +3 -4
  81. package/components/image-viewer/video/index.js +16 -17
  82. package/components/image-viewer/video/index.js.map +1 -0
  83. package/components/image-viewer/video/index.module.css.js +8 -0
  84. package/components/image-viewer/video/index.module.css.js.map +1 -0
  85. package/components/index.d.ts +6 -6
  86. package/components/index.js +13 -12
  87. package/components/index.js.map +1 -0
  88. package/components/info-bar/Component.d.ts +1 -3
  89. package/components/info-bar/Component.js +9 -10
  90. package/components/info-bar/Component.js.map +1 -0
  91. package/components/info-bar/index.css +7 -28
  92. package/components/info-bar/index.d.ts +1 -1
  93. package/components/info-bar/index.js +3 -2
  94. package/components/info-bar/index.js.map +1 -0
  95. package/components/info-bar/index.module.css.js +8 -0
  96. package/components/info-bar/index.module.css.js.map +1 -0
  97. package/components/navigation-bar/Component.d.ts +1 -2
  98. package/components/navigation-bar/Component.js +7 -8
  99. package/components/navigation-bar/Component.js.map +1 -0
  100. package/components/navigation-bar/index.css +15 -36
  101. package/components/navigation-bar/index.d.ts +1 -1
  102. package/components/navigation-bar/index.js +3 -2
  103. package/components/navigation-bar/index.js.map +1 -0
  104. package/components/navigation-bar/index.module.css.js +8 -0
  105. package/components/navigation-bar/index.module.css.js.map +1 -0
  106. package/components/subtitles/index.css +6 -28
  107. package/components/subtitles/index.d.ts +1 -3
  108. package/components/subtitles/index.js +7 -8
  109. package/components/subtitles/index.js.map +1 -0
  110. package/components/subtitles/index.module.css.js +8 -0
  111. package/components/subtitles/index.module.css.js.map +1 -0
  112. package/constants.d.ts +6 -7
  113. package/constants.js +1 -0
  114. package/constants.js.map +1 -0
  115. package/context.d.ts +3 -4
  116. package/context.js +1 -0
  117. package/context.js.map +1 -0
  118. package/cssm/Component.d.ts +3 -4
  119. package/cssm/Component.js +19 -18
  120. package/cssm/Component.js.map +1 -0
  121. package/cssm/components/bottom-button/Component.d.ts +5 -7
  122. package/cssm/components/bottom-button/Component.js +5 -4
  123. package/cssm/components/bottom-button/Component.js.map +1 -0
  124. package/cssm/components/bottom-button/index.d.ts +1 -1
  125. package/cssm/components/bottom-button/index.js +3 -2
  126. package/cssm/components/bottom-button/index.js.map +1 -0
  127. package/cssm/components/bottom-button/index.module.css +3 -24
  128. package/cssm/components/buttons/index.d.ts +13 -13
  129. package/cssm/components/buttons/index.js +12 -11
  130. package/cssm/components/buttons/index.js.map +1 -0
  131. package/cssm/components/buttons/index.module.css +4 -24
  132. package/cssm/components/header/Component.d.ts +1 -2
  133. package/cssm/components/header/Component.js +12 -11
  134. package/cssm/components/header/Component.js.map +1 -0
  135. package/cssm/components/header/index.d.ts +1 -1
  136. package/cssm/components/header/index.js +3 -2
  137. package/cssm/components/header/index.js.map +1 -0
  138. package/cssm/components/header/index.module.css +4 -25
  139. package/cssm/components/header-info-block/Component.d.ts +2 -3
  140. package/cssm/components/header-info-block/Component.js +7 -6
  141. package/cssm/components/header-info-block/Component.js.map +1 -0
  142. package/cssm/components/header-info-block/index.d.ts +1 -1
  143. package/cssm/components/header-info-block/index.js +3 -2
  144. package/cssm/components/header-info-block/index.js.map +1 -0
  145. package/cssm/components/header-info-block/index.module.css +3 -24
  146. package/cssm/components/header-mobile/Component.d.ts +1 -3
  147. package/cssm/components/header-mobile/Component.js +11 -10
  148. package/cssm/components/header-mobile/Component.js.map +1 -0
  149. package/cssm/components/header-mobile/index.d.ts +1 -1
  150. package/cssm/components/header-mobile/index.js +3 -2
  151. package/cssm/components/header-mobile/index.js.map +1 -0
  152. package/cssm/components/header-mobile/index.module.css +3 -24
  153. package/cssm/components/image-preview/Component.d.ts +4 -4
  154. package/cssm/components/image-preview/Component.js +11 -10
  155. package/cssm/components/image-preview/Component.js.map +1 -0
  156. package/cssm/components/image-preview/index.d.ts +1 -1
  157. package/cssm/components/image-preview/index.js +3 -2
  158. package/cssm/components/image-preview/index.js.map +1 -0
  159. package/cssm/components/image-preview/index.module.css +8 -25
  160. package/cssm/components/image-preview/paths.d.ts +1 -2
  161. package/cssm/components/image-preview/paths.js +1 -0
  162. package/cssm/components/image-preview/paths.js.map +1 -0
  163. package/cssm/components/image-viewer/component.d.ts +2 -2
  164. package/cssm/components/image-viewer/component.js +18 -17
  165. package/cssm/components/image-viewer/component.js.map +1 -0
  166. package/cssm/components/image-viewer/hooks.d.ts +1 -3
  167. package/cssm/components/image-viewer/hooks.js +1 -0
  168. package/cssm/components/image-viewer/hooks.js.map +1 -0
  169. package/cssm/components/image-viewer/index.d.ts +1 -1
  170. package/cssm/components/image-viewer/index.js +3 -2
  171. package/cssm/components/image-viewer/index.js.map +1 -0
  172. package/cssm/components/image-viewer/index.module.css +10 -28
  173. package/cssm/components/image-viewer/paths.d.ts +1 -2
  174. package/cssm/components/image-viewer/paths.js +1 -0
  175. package/cssm/components/image-viewer/paths.js.map +1 -0
  176. package/cssm/components/image-viewer/single.d.ts +1 -2
  177. package/cssm/components/image-viewer/single.js +8 -7
  178. package/cssm/components/image-viewer/single.js.map +1 -0
  179. package/cssm/components/image-viewer/slide.d.ts +4 -4
  180. package/cssm/components/image-viewer/slide.js +20 -19
  181. package/cssm/components/image-viewer/slide.js.map +1 -0
  182. package/cssm/components/image-viewer/video/index.d.ts +3 -4
  183. package/cssm/components/image-viewer/video/index.js +10 -9
  184. package/cssm/components/image-viewer/video/index.js.map +1 -0
  185. package/cssm/components/image-viewer/video/index.module.css +4 -24
  186. package/cssm/components/index.d.ts +6 -6
  187. package/cssm/components/index.js +13 -12
  188. package/cssm/components/index.js.map +1 -0
  189. package/cssm/components/info-bar/Component.d.ts +1 -3
  190. package/cssm/components/info-bar/Component.js +9 -8
  191. package/cssm/components/info-bar/Component.js.map +1 -0
  192. package/cssm/components/info-bar/index.d.ts +1 -1
  193. package/cssm/components/info-bar/index.js +3 -2
  194. package/cssm/components/info-bar/index.js.map +1 -0
  195. package/cssm/components/info-bar/index.module.css +5 -25
  196. package/cssm/components/navigation-bar/Component.d.ts +1 -2
  197. package/cssm/components/navigation-bar/Component.js +6 -5
  198. package/cssm/components/navigation-bar/Component.js.map +1 -0
  199. package/cssm/components/navigation-bar/index.d.ts +1 -1
  200. package/cssm/components/navigation-bar/index.js +3 -2
  201. package/cssm/components/navigation-bar/index.js.map +1 -0
  202. package/cssm/components/navigation-bar/index.module.css +8 -28
  203. package/cssm/components/subtitles/index.d.ts +1 -3
  204. package/cssm/components/subtitles/index.js +5 -4
  205. package/cssm/components/subtitles/index.js.map +1 -0
  206. package/cssm/components/subtitles/index.module.css +4 -25
  207. package/cssm/constants.d.ts +6 -7
  208. package/cssm/constants.js +1 -0
  209. package/cssm/constants.js.map +1 -0
  210. package/cssm/context.d.ts +3 -4
  211. package/cssm/context.js +1 -0
  212. package/cssm/context.js.map +1 -0
  213. package/cssm/hooks/index.d.ts +1 -1
  214. package/cssm/hooks/index.js +3 -2
  215. package/cssm/hooks/index.js.map +1 -0
  216. package/cssm/hooks/use-custom-subtitles.d.ts +1 -2
  217. package/cssm/hooks/use-custom-subtitles.js +1 -0
  218. package/cssm/hooks/use-custom-subtitles.js.map +1 -0
  219. package/cssm/index.d.ts +2 -2
  220. package/cssm/index.js +3 -2
  221. package/cssm/index.js.map +1 -0
  222. package/cssm/index.module.css +7 -30
  223. package/cssm/types.d.ts +3 -4
  224. package/cssm/types.js +1 -0
  225. package/cssm/types.js.map +1 -0
  226. package/cssm/utils/constants.d.ts +1 -2
  227. package/cssm/utils/constants.js +1 -0
  228. package/cssm/utils/constants.js.map +1 -0
  229. package/cssm/utils/index.d.ts +3 -3
  230. package/cssm/utils/index.js +12 -11
  231. package/cssm/utils/index.js.map +1 -0
  232. package/cssm/utils/split-filename.d.ts +1 -2
  233. package/cssm/utils/split-filename.js +1 -0
  234. package/cssm/utils/split-filename.js.map +1 -0
  235. package/cssm/utils/utils.d.ts +7 -8
  236. package/cssm/utils/utils.js +1 -0
  237. package/cssm/utils/utils.js.map +1 -0
  238. package/esm/Component.d.ts +3 -4
  239. package/esm/Component.js +3 -3
  240. package/esm/Component.js.map +1 -0
  241. package/esm/components/bottom-button/Component.d.ts +5 -7
  242. package/esm/components/bottom-button/Component.js +2 -3
  243. package/esm/components/bottom-button/Component.js.map +1 -0
  244. package/esm/components/bottom-button/index.css +7 -29
  245. package/esm/components/bottom-button/index.d.ts +1 -1
  246. package/esm/components/bottom-button/index.js +1 -0
  247. package/esm/components/bottom-button/index.js.map +1 -0
  248. package/esm/components/bottom-button/index.module.css.js +6 -0
  249. package/esm/components/bottom-button/index.module.css.js.map +1 -0
  250. package/esm/components/buttons/index.css +8 -29
  251. package/esm/components/buttons/index.d.ts +13 -13
  252. package/esm/components/buttons/index.js +2 -3
  253. package/esm/components/buttons/index.js.map +1 -0
  254. package/esm/components/buttons/index.module.css.js +6 -0
  255. package/esm/components/buttons/index.module.css.js.map +1 -0
  256. package/esm/components/header/Component.d.ts +1 -2
  257. package/esm/components/header/Component.js +3 -4
  258. package/esm/components/header/Component.js.map +1 -0
  259. package/esm/components/header/index.css +4 -26
  260. package/esm/components/header/index.d.ts +1 -1
  261. package/esm/components/header/index.js +1 -0
  262. package/esm/components/header/index.js.map +1 -0
  263. package/esm/components/header/index.module.css.js +6 -0
  264. package/esm/components/header/index.module.css.js.map +1 -0
  265. package/esm/components/header-info-block/Component.d.ts +2 -3
  266. package/esm/components/header-info-block/Component.js +2 -3
  267. package/esm/components/header-info-block/Component.js.map +1 -0
  268. package/esm/components/header-info-block/index.css +6 -28
  269. package/esm/components/header-info-block/index.d.ts +1 -1
  270. package/esm/components/header-info-block/index.js +1 -0
  271. package/esm/components/header-info-block/index.js.map +1 -0
  272. package/esm/components/header-info-block/index.module.css.js +6 -0
  273. package/esm/components/header-info-block/index.module.css.js.map +1 -0
  274. package/esm/components/header-mobile/Component.d.ts +1 -3
  275. package/esm/components/header-mobile/Component.js +2 -3
  276. package/esm/components/header-mobile/Component.js.map +1 -0
  277. package/esm/components/header-mobile/index.css +8 -30
  278. package/esm/components/header-mobile/index.d.ts +1 -1
  279. package/esm/components/header-mobile/index.js +1 -0
  280. package/esm/components/header-mobile/index.js.map +1 -0
  281. package/esm/components/header-mobile/index.module.css.js +6 -0
  282. package/esm/components/header-mobile/index.module.css.js.map +1 -0
  283. package/esm/components/image-preview/Component.d.ts +4 -4
  284. package/esm/components/image-preview/Component.js +3 -4
  285. package/esm/components/image-preview/Component.js.map +1 -0
  286. package/esm/components/image-preview/index.css +24 -42
  287. package/esm/components/image-preview/index.d.ts +1 -1
  288. package/esm/components/image-preview/index.js +1 -0
  289. package/esm/components/image-preview/index.js.map +1 -0
  290. package/esm/components/image-preview/index.module.css.js +6 -0
  291. package/esm/components/image-preview/index.module.css.js.map +1 -0
  292. package/esm/components/image-preview/paths.d.ts +1 -2
  293. package/esm/components/image-preview/paths.js +1 -0
  294. package/esm/components/image-preview/paths.js.map +1 -0
  295. package/esm/components/image-viewer/component.d.ts +2 -2
  296. package/esm/components/image-viewer/component.js +3 -1
  297. package/esm/components/image-viewer/component.js.map +1 -0
  298. package/esm/components/image-viewer/hooks.d.ts +9 -0
  299. package/esm/components/image-viewer/hooks.js +44 -4
  300. package/esm/components/image-viewer/hooks.js.map +1 -0
  301. package/esm/components/image-viewer/index.css +34 -53
  302. package/esm/components/image-viewer/index.d.ts +1 -1
  303. package/esm/components/image-viewer/index.js +1 -0
  304. package/esm/components/image-viewer/index.js.map +1 -0
  305. package/esm/components/image-viewer/index.module.css.js +6 -0
  306. package/esm/components/image-viewer/index.module.css.js.map +1 -0
  307. package/esm/components/image-viewer/paths.d.ts +1 -2
  308. package/esm/components/image-viewer/paths.js +1 -0
  309. package/esm/components/image-viewer/paths.js.map +1 -0
  310. package/esm/components/image-viewer/single.d.ts +1 -2
  311. package/esm/components/image-viewer/single.js +3 -1
  312. package/esm/components/image-viewer/single.js.map +1 -0
  313. package/esm/components/image-viewer/slide.d.ts +4 -4
  314. package/esm/components/image-viewer/slide.js +3 -1
  315. package/esm/components/image-viewer/slide.js.map +1 -0
  316. package/esm/components/image-viewer/video/index.css +10 -31
  317. package/esm/components/image-viewer/video/index.d.ts +3 -4
  318. package/esm/components/image-viewer/video/index.js +2 -3
  319. package/esm/components/image-viewer/video/index.js.map +1 -0
  320. package/esm/components/image-viewer/video/index.module.css.js +6 -0
  321. package/esm/components/image-viewer/video/index.module.css.js.map +1 -0
  322. package/esm/components/index.d.ts +6 -6
  323. package/esm/components/index.js +1 -0
  324. package/esm/components/index.js.map +1 -0
  325. package/esm/components/info-bar/Component.d.ts +1 -3
  326. package/esm/components/info-bar/Component.js +2 -3
  327. package/esm/components/info-bar/Component.js.map +1 -0
  328. package/esm/components/info-bar/index.css +7 -28
  329. package/esm/components/info-bar/index.d.ts +1 -1
  330. package/esm/components/info-bar/index.js +1 -0
  331. package/esm/components/info-bar/index.js.map +1 -0
  332. package/esm/components/info-bar/index.module.css.js +6 -0
  333. package/esm/components/info-bar/index.module.css.js.map +1 -0
  334. package/esm/components/navigation-bar/Component.d.ts +1 -2
  335. package/esm/components/navigation-bar/Component.js +2 -3
  336. package/esm/components/navigation-bar/Component.js.map +1 -0
  337. package/esm/components/navigation-bar/index.css +15 -36
  338. package/esm/components/navigation-bar/index.d.ts +1 -1
  339. package/esm/components/navigation-bar/index.js +1 -0
  340. package/esm/components/navigation-bar/index.js.map +1 -0
  341. package/esm/components/navigation-bar/index.module.css.js +6 -0
  342. package/esm/components/navigation-bar/index.module.css.js.map +1 -0
  343. package/esm/components/subtitles/index.css +6 -28
  344. package/esm/components/subtitles/index.d.ts +1 -3
  345. package/esm/components/subtitles/index.js +2 -3
  346. package/esm/components/subtitles/index.js.map +1 -0
  347. package/esm/components/subtitles/index.module.css.js +6 -0
  348. package/esm/components/subtitles/index.module.css.js.map +1 -0
  349. package/esm/constants.d.ts +6 -7
  350. package/esm/constants.js +1 -0
  351. package/esm/constants.js.map +1 -0
  352. package/esm/context.d.ts +3 -4
  353. package/esm/context.js +1 -0
  354. package/esm/context.js.map +1 -0
  355. package/esm/hooks/index.d.ts +1 -1
  356. package/esm/hooks/index.js +1 -0
  357. package/esm/hooks/index.js.map +1 -0
  358. package/esm/hooks/use-custom-subtitles.d.ts +1 -2
  359. package/esm/hooks/use-custom-subtitles.js +1 -0
  360. package/esm/hooks/use-custom-subtitles.js.map +1 -0
  361. package/esm/index.css +16 -40
  362. package/esm/index.d.ts +2 -2
  363. package/esm/index.js +1 -0
  364. package/esm/index.js.map +1 -0
  365. package/esm/index.module.css.js +6 -0
  366. package/esm/index.module.css.js.map +1 -0
  367. package/esm/types.d.ts +3 -4
  368. package/esm/types.js +1 -0
  369. package/esm/types.js.map +1 -0
  370. package/esm/utils/constants.d.ts +1 -2
  371. package/esm/utils/constants.js +1 -0
  372. package/esm/utils/constants.js.map +1 -0
  373. package/esm/utils/index.d.ts +3 -3
  374. package/esm/utils/index.js +1 -0
  375. package/esm/utils/index.js.map +1 -0
  376. package/esm/utils/split-filename.d.ts +1 -2
  377. package/esm/utils/split-filename.js +1 -0
  378. package/esm/utils/split-filename.js.map +1 -0
  379. package/esm/utils/utils.d.ts +7 -8
  380. package/esm/utils/utils.js +1 -0
  381. package/esm/utils/utils.js.map +1 -0
  382. package/hooks/index.d.ts +1 -1
  383. package/hooks/index.js +3 -2
  384. package/hooks/index.js.map +1 -0
  385. package/hooks/use-custom-subtitles.d.ts +1 -2
  386. package/hooks/use-custom-subtitles.js +1 -0
  387. package/hooks/use-custom-subtitles.js.map +1 -0
  388. package/index.css +16 -40
  389. package/index.d.ts +2 -2
  390. package/index.js +3 -2
  391. package/index.js.map +1 -0
  392. package/index.module.css.js +8 -0
  393. package/index.module.css.js.map +1 -0
  394. package/modern/Component.d.ts +3 -4
  395. package/modern/Component.js +3 -3
  396. package/modern/Component.js.map +1 -0
  397. package/modern/components/bottom-button/Component.d.ts +5 -7
  398. package/modern/components/bottom-button/Component.js +2 -3
  399. package/modern/components/bottom-button/Component.js.map +1 -0
  400. package/modern/components/bottom-button/index.css +7 -29
  401. package/modern/components/bottom-button/index.d.ts +1 -1
  402. package/modern/components/bottom-button/index.js +1 -0
  403. package/modern/components/bottom-button/index.js.map +1 -0
  404. package/modern/components/bottom-button/index.module.css.js +6 -0
  405. package/modern/components/bottom-button/index.module.css.js.map +1 -0
  406. package/modern/components/buttons/index.css +8 -29
  407. package/modern/components/buttons/index.d.ts +13 -13
  408. package/modern/components/buttons/index.js +2 -3
  409. package/modern/components/buttons/index.js.map +1 -0
  410. package/modern/components/buttons/index.module.css.js +6 -0
  411. package/modern/components/buttons/index.module.css.js.map +1 -0
  412. package/modern/components/header/Component.d.ts +1 -2
  413. package/modern/components/header/Component.js +3 -4
  414. package/modern/components/header/Component.js.map +1 -0
  415. package/modern/components/header/index.css +4 -26
  416. package/modern/components/header/index.d.ts +1 -1
  417. package/modern/components/header/index.js +1 -0
  418. package/modern/components/header/index.js.map +1 -0
  419. package/modern/components/header/index.module.css.js +6 -0
  420. package/modern/components/header/index.module.css.js.map +1 -0
  421. package/modern/components/header-info-block/Component.d.ts +2 -3
  422. package/modern/components/header-info-block/Component.js +2 -3
  423. package/modern/components/header-info-block/Component.js.map +1 -0
  424. package/modern/components/header-info-block/index.css +6 -28
  425. package/modern/components/header-info-block/index.d.ts +1 -1
  426. package/modern/components/header-info-block/index.js +1 -0
  427. package/modern/components/header-info-block/index.js.map +1 -0
  428. package/modern/components/header-info-block/index.module.css.js +6 -0
  429. package/modern/components/header-info-block/index.module.css.js.map +1 -0
  430. package/modern/components/header-mobile/Component.d.ts +1 -3
  431. package/modern/components/header-mobile/Component.js +2 -3
  432. package/modern/components/header-mobile/Component.js.map +1 -0
  433. package/modern/components/header-mobile/index.css +8 -30
  434. package/modern/components/header-mobile/index.d.ts +1 -1
  435. package/modern/components/header-mobile/index.js +1 -0
  436. package/modern/components/header-mobile/index.js.map +1 -0
  437. package/modern/components/header-mobile/index.module.css.js +6 -0
  438. package/modern/components/header-mobile/index.module.css.js.map +1 -0
  439. package/modern/components/image-preview/Component.d.ts +4 -4
  440. package/modern/components/image-preview/Component.js +2 -3
  441. package/modern/components/image-preview/Component.js.map +1 -0
  442. package/modern/components/image-preview/index.css +24 -42
  443. package/modern/components/image-preview/index.d.ts +1 -1
  444. package/modern/components/image-preview/index.js +1 -0
  445. package/modern/components/image-preview/index.js.map +1 -0
  446. package/modern/components/image-preview/index.module.css.js +6 -0
  447. package/modern/components/image-preview/index.module.css.js.map +1 -0
  448. package/modern/components/image-preview/paths.d.ts +1 -2
  449. package/modern/components/image-preview/paths.js +1 -0
  450. package/modern/components/image-preview/paths.js.map +1 -0
  451. package/modern/components/image-viewer/component.d.ts +2 -2
  452. package/modern/components/image-viewer/component.js +3 -1
  453. package/modern/components/image-viewer/component.js.map +1 -0
  454. package/modern/components/image-viewer/hooks.d.ts +9 -0
  455. package/modern/components/image-viewer/hooks.js +43 -4
  456. package/modern/components/image-viewer/hooks.js.map +1 -0
  457. package/modern/components/image-viewer/index.css +34 -53
  458. package/modern/components/image-viewer/index.d.ts +1 -1
  459. package/modern/components/image-viewer/index.js +1 -0
  460. package/modern/components/image-viewer/index.js.map +1 -0
  461. package/modern/components/image-viewer/index.module.css.js +6 -0
  462. package/modern/components/image-viewer/index.module.css.js.map +1 -0
  463. package/modern/components/image-viewer/paths.d.ts +1 -2
  464. package/modern/components/image-viewer/paths.js +1 -0
  465. package/modern/components/image-viewer/paths.js.map +1 -0
  466. package/modern/components/image-viewer/single.d.ts +1 -2
  467. package/modern/components/image-viewer/single.js +3 -1
  468. package/modern/components/image-viewer/single.js.map +1 -0
  469. package/modern/components/image-viewer/slide.d.ts +4 -4
  470. package/modern/components/image-viewer/slide.js +3 -1
  471. package/modern/components/image-viewer/slide.js.map +1 -0
  472. package/modern/components/image-viewer/video/index.css +10 -31
  473. package/modern/components/image-viewer/video/index.d.ts +3 -4
  474. package/modern/components/image-viewer/video/index.js +2 -3
  475. package/modern/components/image-viewer/video/index.js.map +1 -0
  476. package/modern/components/image-viewer/video/index.module.css.js +6 -0
  477. package/modern/components/image-viewer/video/index.module.css.js.map +1 -0
  478. package/modern/components/index.d.ts +6 -6
  479. package/modern/components/index.js +1 -0
  480. package/modern/components/index.js.map +1 -0
  481. package/modern/components/info-bar/Component.d.ts +1 -3
  482. package/modern/components/info-bar/Component.js +2 -3
  483. package/modern/components/info-bar/Component.js.map +1 -0
  484. package/modern/components/info-bar/index.css +7 -28
  485. package/modern/components/info-bar/index.d.ts +1 -1
  486. package/modern/components/info-bar/index.js +1 -0
  487. package/modern/components/info-bar/index.js.map +1 -0
  488. package/modern/components/info-bar/index.module.css.js +6 -0
  489. package/modern/components/info-bar/index.module.css.js.map +1 -0
  490. package/modern/components/navigation-bar/Component.d.ts +1 -2
  491. package/modern/components/navigation-bar/Component.js +2 -3
  492. package/modern/components/navigation-bar/Component.js.map +1 -0
  493. package/modern/components/navigation-bar/index.css +15 -36
  494. package/modern/components/navigation-bar/index.d.ts +1 -1
  495. package/modern/components/navigation-bar/index.js +1 -0
  496. package/modern/components/navigation-bar/index.js.map +1 -0
  497. package/modern/components/navigation-bar/index.module.css.js +6 -0
  498. package/modern/components/navigation-bar/index.module.css.js.map +1 -0
  499. package/modern/components/subtitles/index.css +6 -28
  500. package/modern/components/subtitles/index.d.ts +1 -3
  501. package/modern/components/subtitles/index.js +2 -3
  502. package/modern/components/subtitles/index.js.map +1 -0
  503. package/modern/components/subtitles/index.module.css.js +6 -0
  504. package/modern/components/subtitles/index.module.css.js.map +1 -0
  505. package/modern/constants.d.ts +6 -7
  506. package/modern/constants.js +1 -0
  507. package/modern/constants.js.map +1 -0
  508. package/modern/context.d.ts +3 -4
  509. package/modern/context.js +1 -0
  510. package/modern/context.js.map +1 -0
  511. package/modern/hooks/index.d.ts +1 -1
  512. package/modern/hooks/index.js +1 -0
  513. package/modern/hooks/index.js.map +1 -0
  514. package/modern/hooks/use-custom-subtitles.d.ts +1 -2
  515. package/modern/hooks/use-custom-subtitles.js +1 -0
  516. package/modern/hooks/use-custom-subtitles.js.map +1 -0
  517. package/modern/index.css +16 -40
  518. package/modern/index.d.ts +2 -2
  519. package/modern/index.js +1 -0
  520. package/modern/index.js.map +1 -0
  521. package/modern/index.module.css.js +6 -0
  522. package/modern/index.module.css.js.map +1 -0
  523. package/modern/types.d.ts +3 -4
  524. package/modern/types.js +1 -0
  525. package/modern/types.js.map +1 -0
  526. package/modern/utils/constants.d.ts +1 -2
  527. package/modern/utils/constants.js +1 -0
  528. package/modern/utils/constants.js.map +1 -0
  529. package/modern/utils/index.d.ts +3 -3
  530. package/modern/utils/index.js +1 -0
  531. package/modern/utils/index.js.map +1 -0
  532. package/modern/utils/split-filename.d.ts +1 -2
  533. package/modern/utils/split-filename.js +1 -0
  534. package/modern/utils/split-filename.js.map +1 -0
  535. package/modern/utils/utils.d.ts +7 -8
  536. package/modern/utils/utils.js +1 -0
  537. package/modern/utils/utils.js.map +1 -0
  538. package/moderncssm/Component.d.ts +3 -4
  539. package/moderncssm/Component.js +1 -0
  540. package/moderncssm/Component.js.map +1 -0
  541. package/moderncssm/components/bottom-button/Component.d.ts +5 -7
  542. package/moderncssm/components/bottom-button/Component.js +1 -0
  543. package/moderncssm/components/bottom-button/Component.js.map +1 -0
  544. package/moderncssm/components/bottom-button/index.d.ts +1 -1
  545. package/moderncssm/components/bottom-button/index.js +1 -0
  546. package/moderncssm/components/bottom-button/index.js.map +1 -0
  547. package/moderncssm/components/bottom-button/index.module.css +0 -2
  548. package/moderncssm/components/buttons/index.d.ts +13 -13
  549. package/moderncssm/components/buttons/index.js +1 -0
  550. package/moderncssm/components/buttons/index.js.map +1 -0
  551. package/moderncssm/components/buttons/index.module.css +0 -2
  552. package/moderncssm/components/header/Component.d.ts +1 -2
  553. package/moderncssm/components/header/Component.js +2 -1
  554. package/moderncssm/components/header/Component.js.map +1 -0
  555. package/moderncssm/components/header/index.d.ts +1 -1
  556. package/moderncssm/components/header/index.js +1 -0
  557. package/moderncssm/components/header/index.js.map +1 -0
  558. package/moderncssm/components/header/index.module.css +0 -2
  559. package/moderncssm/components/header-info-block/Component.d.ts +2 -3
  560. package/moderncssm/components/header-info-block/Component.js +1 -0
  561. package/moderncssm/components/header-info-block/Component.js.map +1 -0
  562. package/moderncssm/components/header-info-block/index.d.ts +1 -1
  563. package/moderncssm/components/header-info-block/index.js +1 -0
  564. package/moderncssm/components/header-info-block/index.js.map +1 -0
  565. package/moderncssm/components/header-info-block/index.module.css +0 -2
  566. package/moderncssm/components/header-mobile/Component.d.ts +1 -3
  567. package/moderncssm/components/header-mobile/Component.js +1 -0
  568. package/moderncssm/components/header-mobile/Component.js.map +1 -0
  569. package/moderncssm/components/header-mobile/index.d.ts +1 -1
  570. package/moderncssm/components/header-mobile/index.js +1 -0
  571. package/moderncssm/components/header-mobile/index.js.map +1 -0
  572. package/moderncssm/components/header-mobile/index.module.css +0 -2
  573. package/moderncssm/components/image-preview/Component.d.ts +4 -4
  574. package/moderncssm/components/image-preview/Component.js +1 -0
  575. package/moderncssm/components/image-preview/Component.js.map +1 -0
  576. package/moderncssm/components/image-preview/index.d.ts +1 -1
  577. package/moderncssm/components/image-preview/index.js +1 -0
  578. package/moderncssm/components/image-preview/index.js.map +1 -0
  579. package/moderncssm/components/image-preview/index.module.css +3 -3
  580. package/moderncssm/components/image-preview/paths.d.ts +1 -2
  581. package/moderncssm/components/image-preview/paths.js +1 -0
  582. package/moderncssm/components/image-preview/paths.js.map +1 -0
  583. package/moderncssm/components/image-viewer/component.d.ts +2 -2
  584. package/moderncssm/components/image-viewer/component.js +1 -0
  585. package/moderncssm/components/image-viewer/component.js.map +1 -0
  586. package/moderncssm/components/image-viewer/hooks.d.ts +1 -3
  587. package/moderncssm/components/image-viewer/hooks.js +1 -0
  588. package/moderncssm/components/image-viewer/hooks.js.map +1 -0
  589. package/moderncssm/components/image-viewer/index.d.ts +1 -1
  590. package/moderncssm/components/image-viewer/index.js +1 -0
  591. package/moderncssm/components/image-viewer/index.js.map +1 -0
  592. package/moderncssm/components/image-viewer/index.module.css +2 -4
  593. package/moderncssm/components/image-viewer/paths.d.ts +1 -2
  594. package/moderncssm/components/image-viewer/paths.js +1 -0
  595. package/moderncssm/components/image-viewer/paths.js.map +1 -0
  596. package/moderncssm/components/image-viewer/single.d.ts +1 -2
  597. package/moderncssm/components/image-viewer/single.js +1 -0
  598. package/moderncssm/components/image-viewer/single.js.map +1 -0
  599. package/moderncssm/components/image-viewer/slide.d.ts +4 -4
  600. package/moderncssm/components/image-viewer/slide.js +1 -0
  601. package/moderncssm/components/image-viewer/slide.js.map +1 -0
  602. package/moderncssm/components/image-viewer/video/index.d.ts +3 -4
  603. package/moderncssm/components/image-viewer/video/index.js +1 -0
  604. package/moderncssm/components/image-viewer/video/index.js.map +1 -0
  605. package/moderncssm/components/image-viewer/video/index.module.css +0 -2
  606. package/moderncssm/components/index.d.ts +6 -6
  607. package/moderncssm/components/index.js +1 -0
  608. package/moderncssm/components/index.js.map +1 -0
  609. package/moderncssm/components/info-bar/Component.d.ts +1 -3
  610. package/moderncssm/components/info-bar/Component.js +1 -0
  611. package/moderncssm/components/info-bar/Component.js.map +1 -0
  612. package/moderncssm/components/info-bar/index.d.ts +1 -1
  613. package/moderncssm/components/info-bar/index.js +1 -0
  614. package/moderncssm/components/info-bar/index.js.map +1 -0
  615. package/moderncssm/components/info-bar/index.module.css +0 -2
  616. package/moderncssm/components/navigation-bar/Component.d.ts +1 -2
  617. package/moderncssm/components/navigation-bar/Component.js +1 -0
  618. package/moderncssm/components/navigation-bar/Component.js.map +1 -0
  619. package/moderncssm/components/navigation-bar/index.d.ts +1 -1
  620. package/moderncssm/components/navigation-bar/index.js +1 -0
  621. package/moderncssm/components/navigation-bar/index.js.map +1 -0
  622. package/moderncssm/components/navigation-bar/index.module.css +0 -2
  623. package/moderncssm/components/subtitles/index.d.ts +1 -3
  624. package/moderncssm/components/subtitles/index.js +1 -0
  625. package/moderncssm/components/subtitles/index.js.map +1 -0
  626. package/moderncssm/components/subtitles/index.module.css +0 -2
  627. package/moderncssm/constants.d.ts +6 -7
  628. package/moderncssm/constants.js +1 -0
  629. package/moderncssm/constants.js.map +1 -0
  630. package/moderncssm/context.d.ts +3 -4
  631. package/moderncssm/context.js +1 -0
  632. package/moderncssm/context.js.map +1 -0
  633. package/moderncssm/hooks/index.d.ts +1 -1
  634. package/moderncssm/hooks/index.js +1 -0
  635. package/moderncssm/hooks/index.js.map +1 -0
  636. package/moderncssm/hooks/use-custom-subtitles.d.ts +1 -2
  637. package/moderncssm/hooks/use-custom-subtitles.js +1 -0
  638. package/moderncssm/hooks/use-custom-subtitles.js.map +1 -0
  639. package/moderncssm/index.d.ts +2 -2
  640. package/moderncssm/index.js +1 -0
  641. package/moderncssm/index.js.map +1 -0
  642. package/moderncssm/index.module.css +11 -8
  643. package/moderncssm/types.d.ts +3 -4
  644. package/moderncssm/types.js +1 -0
  645. package/moderncssm/types.js.map +1 -0
  646. package/moderncssm/utils/constants.d.ts +1 -2
  647. package/moderncssm/utils/constants.js +1 -0
  648. package/moderncssm/utils/constants.js.map +1 -0
  649. package/moderncssm/utils/index.d.ts +3 -3
  650. package/moderncssm/utils/index.js +1 -0
  651. package/moderncssm/utils/index.js.map +1 -0
  652. package/moderncssm/utils/split-filename.d.ts +1 -2
  653. package/moderncssm/utils/split-filename.js +1 -0
  654. package/moderncssm/utils/split-filename.js.map +1 -0
  655. package/moderncssm/utils/utils.d.ts +7 -8
  656. package/moderncssm/utils/utils.js +1 -0
  657. package/moderncssm/utils/utils.js.map +1 -0
  658. package/package.json +14 -12
  659. package/src/index.module.css +2 -3
  660. package/types.d.ts +3 -4
  661. package/types.js +1 -0
  662. package/types.js.map +1 -0
  663. package/utils/constants.d.ts +1 -2
  664. package/utils/constants.js +1 -0
  665. package/utils/constants.js.map +1 -0
  666. package/utils/index.d.ts +3 -3
  667. package/utils/index.js +12 -11
  668. package/utils/index.js.map +1 -0
  669. package/utils/split-filename.d.ts +1 -2
  670. package/utils/split-filename.js +1 -0
  671. package/utils/split-filename.js.map +1 -0
  672. package/utils/utils.d.ts +7 -8
  673. package/utils/utils.js +1 -0
  674. package/utils/utils.js.map +1 -0
  675. package/esm/hooks-eb7697c0.d.ts +0 -11
  676. package/esm/hooks-eb7697c0.js +0 -45
  677. package/hooks-50f89a85.d.ts +0 -11
  678. package/hooks-50f89a85.js +0 -52
  679. package/modern/hooks-df08ae59.d.ts +0 -11
  680. package/modern/hooks-df08ae59.js +0 -44
package/Component.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
- import { GalleryImage } from "./types";
3
- type GalleryProps = {
2
+ import { GalleryImage } from './types';
3
+ export declare type GalleryProps = {
4
4
  /**
5
5
  * Управление видимостью
6
6
  */
@@ -36,5 +36,4 @@ type GalleryProps = {
36
36
  */
37
37
  popupClassName?: string;
38
38
  };
39
- declare const Gallery: FC<GalleryProps>;
40
- export { GalleryProps, Gallery };
39
+ export declare const Gallery: FC<GalleryProps>;
package/Component.js CHANGED
@@ -6,26 +6,25 @@ var React = require('react');
6
6
  var cn = require('classnames');
7
7
  var coreComponentsBaseModal = require('@alfalab/core-components-base-modal');
8
8
  var coreComponentsMq = require('@alfalab/core-components-mq');
9
- var components_bottomButton_Component = require('./components/bottom-button/Component.js');
10
- var components_imageViewer_single = require('./components/image-viewer/single.js');
11
- var components_subtitles_index = require('./components/subtitles/index.js');
12
- var components_navigationBar_Component = require('./components/navigation-bar/Component.js');
13
- var components_header_Component = require('./components/header/Component.js');
9
+ var Component$2 = require('./components/bottom-button/Component.js');
10
+ var single = require('./components/image-viewer/single.js');
11
+ var index = require('./components/subtitles/index.js');
12
+ var Component$3 = require('./components/navigation-bar/Component.js');
13
+ var Component = require('./components/header/Component.js');
14
14
  require('@alfalab/hooks');
15
15
  var constants = require('./constants.js');
16
16
  var context = require('./context.js');
17
- var components_imageViewer_component = require('./components/image-viewer/component.js');
18
- var components_infoBar_Component = require('./components/info-bar/Component.js');
19
- var components_headerMobile_Component = require('./components/header-mobile/Component.js');
17
+ require('./components/image-preview/index.css');
18
+ var component = require('./components/image-viewer/component.js');
19
+ var Component$4 = require('./components/info-bar/Component.js');
20
+ var Component$1 = require('./components/header-mobile/Component.js');
21
+ var index_module = require('./index.module.css.js');
20
22
 
21
23
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
22
24
 
23
25
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
24
26
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
25
27
 
26
- var styles = {"container":"gallery__container_1wxnh","mobile":"gallery__mobile_1wxnh","modal":"gallery__modal_1wxnh","navigationVideo":"gallery__navigationVideo_1wxnh","hide":"gallery__hide_1wxnh","hideInfo":"gallery__hideInfo_1wxnh","bottomButton":"gallery__bottomButton_1wxnh","subtitles":"gallery__subtitles_1wxnh","hideSubtitles":"gallery__hideSubtitles_1wxnh"};
27
- require('./index.css')
28
-
29
28
  var DEFAULT_FULL_SCREEN = false;
30
29
  var DEFAULT_MUTED_VIDEO = true;
31
30
  var DEFAULT_PLAYING_VIDEO = true;
@@ -176,21 +175,22 @@ var Gallery = function (_a) {
176
175
  getCurrentImageMeta: function () { return imagesMeta[currentSlideIndex]; },
177
176
  };
178
177
  return (React__default.default.createElement(context.GalleryContext.Provider, { value: galleryContext },
179
- React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, className: cn__default.default(styles.modal, popupClassName), onEscapeKeyDown: handleEscapeKeyDown, Backdrop: Backdrop, onUnmount: onUnmount },
180
- React__default.default.createElement("div", { className: cn__default.default(styles.container, (_b = {},
181
- _b[styles.mobile] = !isDesktop,
178
+ React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, className: cn__default.default(index_module.modal, popupClassName), onEscapeKeyDown: handleEscapeKeyDown, Backdrop: Backdrop, onUnmount: onUnmount },
179
+ React__default.default.createElement("div", { className: cn__default.default(index_module.container, (_b = {},
180
+ _b[index_module.mobile] = !isDesktop,
182
181
  _b)) },
183
- isDesktop ? React__default.default.createElement(components_header_Component.Header, null) : React__default.default.createElement(components_headerMobile_Component.HeaderMobile, null),
184
- images.length === 1 ? React__default.default.createElement(components_imageViewer_single.Single, null) : React__default.default.createElement(components_imageViewer_component.ImageViewer, null),
182
+ isDesktop ? React__default.default.createElement(Component.Header, null) : React__default.default.createElement(Component$1.HeaderMobile, null),
183
+ images.length === 1 ? React__default.default.createElement(single.Single, null) : React__default.default.createElement(component.ImageViewer, null),
185
184
  React__default.default.createElement("nav", { className: cn__default.default((_c = {},
186
- _c[styles.navigationVideo] = isCurrentVideo && !isDesktop,
187
- _c[styles.hide] = showNavigationBar && hideNavigation && !isDesktop,
188
- _c[styles.hideInfo] = !showNavigationBar && hideNavigation && !isDesktop,
185
+ _c[index_module.navigationVideo] = isCurrentVideo && !isDesktop,
186
+ _c[index_module.hide] = showNavigationBar && hideNavigation && !isDesktop,
187
+ _c[index_module.hideInfo] = !showNavigationBar && hideNavigation && !isDesktop,
189
188
  _c)) },
190
- !isDesktop && React__default.default.createElement(components_subtitles_index.Subtitles, null),
191
- isCurrentVideo && !isDesktop && bottomButton && (React__default.default.createElement(components_bottomButton_Component.BottomButton, { bottomButton: bottomButton, onClick: handleBottomButtonClick, className: styles.bottomButton })),
192
- showNavigationBar && React__default.default.createElement(components_navigationBar_Component.NavigationBar, null),
193
- !isDesktop && React__default.default.createElement(components_infoBar_Component.InfoBar, null))))));
189
+ !isDesktop && React__default.default.createElement(index.Subtitles, null),
190
+ isCurrentVideo && !isDesktop && bottomButton && (React__default.default.createElement(Component$2.BottomButton, { bottomButton: bottomButton, onClick: handleBottomButtonClick, className: index_module.bottomButton })),
191
+ showNavigationBar && React__default.default.createElement(Component$3.NavigationBar, null),
192
+ !isDesktop && React__default.default.createElement(Component$4.InfoBar, null))))));
194
193
  };
195
194
 
196
195
  exports.Gallery = Gallery;
196
+ //# sourceMappingURL=Component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.js","sources":["src/Component.tsx"],"sourcesContent":["import React, { FC, MouseEvent, useCallback, useEffect, useState } from 'react';\nimport cn from 'classnames';\nimport SwiperCore from 'swiper';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\nimport { useIsDesktop } from '@alfalab/core-components-mq';\n\nimport { BottomButton } from './components/bottom-button';\nimport { Single } from './components/image-viewer/single';\nimport { Subtitles } from './components/subtitles';\nimport { Header, HeaderMobile, ImageViewer, InfoBar, NavigationBar } from './components';\nimport { SWIPE_THRESHOLD } from './constants';\nimport { GalleryContext } from './context';\nimport { GalleryImage, ImageMeta } from './types';\n\nimport styles from './index.module.css';\n\nexport type GalleryProps = {\n /**\n * Управление видимостью\n */\n open: boolean;\n\n /**\n * Массив изображений\n */\n images: GalleryImage[];\n\n /**\n * Зациклить галерею\n * @default true\n */\n loop?: boolean;\n\n /**\n * Индекс открытого изображение\n * @default 0\n */\n initialSlide?: number;\n\n /**\n * Обработчик закрытия\n */\n onClose: () => void;\n\n /**\n * Индекс текущего изображения\n */\n slideIndex?: number;\n\n /**\n * Обработчик изменения текущего изображения\n */\n onSlideIndexChange?: (index: number) => void;\n\n /**\n * Дополнительный класс для попапа\n */\n popupClassName?: string;\n};\n\nconst DEFAULT_FULL_SCREEN = false;\nconst DEFAULT_MUTED_VIDEO = true;\nconst DEFAULT_PLAYING_VIDEO = true;\nconst DEFAULT_HIDE_NAVIGATION = false;\n\nconst Backdrop = () => null;\n\nexport const Gallery: FC<GalleryProps> = ({\n open,\n images,\n slideIndex,\n initialSlide = 0,\n loop = true,\n onClose,\n onSlideIndexChange,\n popupClassName,\n}) => {\n const currentSlideIndexState = useState(initialSlide);\n const uncontrolled = slideIndex === undefined;\n const [currentSlideIndex, setCurrentSlideIndex] = uncontrolled\n ? currentSlideIndexState\n : [slideIndex, onSlideIndexChange];\n\n const [swiper, setSwiper] = useState<SwiperCore>();\n const [imagesMeta, setImagesMeta] = useState<ImageMeta[]>([]);\n const [fullScreen, setFullScreen] = useState<boolean>(DEFAULT_FULL_SCREEN);\n const [mutedVideo, setMutedVideo] = useState<boolean>(DEFAULT_MUTED_VIDEO);\n const [playingVideo, setPlayingVideo] = useState<boolean>(DEFAULT_PLAYING_VIDEO);\n const [hideNavigation, setHideNavigation] = useState<boolean>(DEFAULT_HIDE_NAVIGATION);\n\n const isDesktop = useIsDesktop();\n\n const isCurrentVideo = !!imagesMeta[currentSlideIndex]?.player?.current;\n\n const bottomButton = images[currentSlideIndex]?.bottomButton;\n\n const slideTo = useCallback(\n (index: number) => {\n if (images[index]) {\n setCurrentSlideIndex?.(index);\n\n if (swiper) {\n setPlayingVideo(true);\n swiper.slideTo(index);\n }\n }\n },\n [images, setCurrentSlideIndex, swiper],\n );\n\n const slideNext = useCallback(() => {\n const lastIndex = images.length - 1;\n\n let nextIndex = currentSlideIndex + 1;\n\n if (nextIndex >= images.length) {\n nextIndex = loop ? 0 : lastIndex;\n }\n\n slideTo(nextIndex);\n }, [images.length, loop, currentSlideIndex, slideTo]);\n\n const slidePrev = useCallback(() => {\n const lastIndex = images.length - 1;\n\n let nextIndex = currentSlideIndex - 1;\n\n if (nextIndex < 0) {\n nextIndex = loop ? lastIndex : 0;\n }\n\n slideTo(nextIndex);\n }, [images.length, loop, currentSlideIndex, slideTo]);\n\n const setImageMeta = useCallback(\n (meta: ImageMeta, index: number) => {\n imagesMeta[index] = meta;\n\n setImagesMeta(imagesMeta.slice());\n },\n [imagesMeta],\n );\n\n const handleBottomButtonClick = useCallback(\n (e: MouseEvent) => {\n e.stopPropagation();\n if (bottomButton?.onClick) {\n bottomButton.onClick(e);\n }\n },\n [bottomButton],\n );\n\n const handleClose = useCallback(() => {\n onClose();\n\n if (uncontrolled) {\n setCurrentSlideIndex?.(initialSlide);\n }\n\n setFullScreen(false);\n }, [initialSlide, onClose, setCurrentSlideIndex, uncontrolled]);\n\n const handleEscapeKeyDown = () => {\n if (fullScreen) {\n setFullScreen(false);\n } else {\n handleClose();\n }\n };\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (!open || fullScreen) {\n return;\n }\n\n switch (event.key) {\n case 'ArrowLeft':\n slidePrev();\n break;\n case 'ArrowRight':\n slideNext();\n break;\n }\n },\n [fullScreen, open, slideNext, slidePrev],\n );\n\n const onUnmount = useCallback(() => {\n setPlayingVideo(DEFAULT_PLAYING_VIDEO);\n setMutedVideo(DEFAULT_MUTED_VIDEO);\n }, [setPlayingVideo]);\n\n useEffect(() => {\n if (!uncontrolled && !swiper?.destroyed) {\n swiper?.slideTo(currentSlideIndex);\n }\n }, [uncontrolled, currentSlideIndex, swiper]);\n\n useEffect(() => {\n document.addEventListener('keydown', handleKeyDown);\n\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [handleKeyDown]);\n\n useEffect(() => {\n let startY: number;\n const abortController = new AbortController();\n const { signal } = abortController;\n\n document.addEventListener(\n 'touchstart',\n (e) => {\n startY = e.touches[0].clientY;\n },\n { signal },\n );\n\n document.addEventListener(\n 'touchmove',\n (e) => {\n const endY = e.changedTouches[0].clientY;\n const deltaY = startY - endY;\n\n // Если свайп вниз, закрываем галерею\n if (deltaY < SWIPE_THRESHOLD) {\n onClose();\n }\n },\n { signal },\n );\n\n return () => {\n abortController.abort();\n };\n }, [onClose]);\n\n const singleSlide = images.length === 1;\n\n const showNavigationBar = !singleSlide && !fullScreen;\n\n // eslint-disable-next-line react/jsx-no-constructed-context-values\n const galleryContext: GalleryContext = {\n view: isDesktop ? 'desktop' : 'mobile',\n singleSlide,\n currentSlideIndex,\n images,\n imagesMeta,\n fullScreen,\n initialSlide: uncontrolled ? initialSlide : currentSlideIndex,\n setFullScreen,\n playingVideo,\n setPlayingVideo,\n mutedVideo,\n setMutedVideo,\n hideNavigation,\n setHideNavigation,\n setImageMeta,\n slideNext,\n slidePrev,\n slideTo,\n getSwiper: () => swiper,\n setSwiper,\n onClose: handleClose,\n setCurrentSlideIndex,\n getCurrentImage: () => images[currentSlideIndex],\n getCurrentImageMeta: () => imagesMeta[currentSlideIndex],\n };\n\n return (\n <GalleryContext.Provider value={galleryContext}>\n <BaseModal\n open={open}\n className={cn(styles.modal, popupClassName)}\n onEscapeKeyDown={handleEscapeKeyDown}\n Backdrop={Backdrop}\n onUnmount={onUnmount}\n >\n <div\n className={cn(styles.container, {\n [styles.mobile]: !isDesktop,\n })}\n >\n {isDesktop ? <Header /> : <HeaderMobile />}\n {images.length === 1 ? <Single /> : <ImageViewer />}\n <nav\n className={cn({\n [styles.navigationVideo]: isCurrentVideo && !isDesktop,\n [styles.hide]: showNavigationBar && hideNavigation && !isDesktop,\n [styles.hideInfo]: !showNavigationBar && hideNavigation && !isDesktop,\n })}\n >\n {!isDesktop && <Subtitles />}\n {isCurrentVideo && !isDesktop && bottomButton && (\n <BottomButton\n bottomButton={bottomButton}\n onClick={handleBottomButtonClick}\n className={styles.bottomButton}\n />\n )}\n\n {showNavigationBar && <NavigationBar />}\n {!isDesktop && <InfoBar />}\n </nav>\n </div>\n </BaseModal>\n </GalleryContext.Provider>\n );\n};\n"],"names":["useState","useIsDesktop","useCallback","useEffect","SWIPE_THRESHOLD","React","GalleryContext","BaseModal","cn","styles","Header","HeaderMobile","Single","ImageViewer","Subtitles","BottomButton","NavigationBar","InfoBar"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DA,IAAM,mBAAmB,GAAG,KAAK;AACjC,IAAM,mBAAmB,GAAG,IAAI;AAChC,IAAM,qBAAqB,GAAG,IAAI;AAClC,IAAM,uBAAuB,GAAG,KAAK;AAErC,IAAM,QAAQ,GAAG,YAAA,EAAM,OAAA,IAAI,CAAA,EAAA;AAEpB,IAAM,OAAO,GAAqB,UAAC,EASzC,EAAA;;;AARG,IAAA,IAAA,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,EAAgB,GAAA,EAAA,CAAA,YAAA,EAAhB,YAAY,GAAA,EAAA,KAAA,MAAA,GAAG,CAAC,GAAA,EAAA,EAChB,EAAA,GAAA,EAAA,CAAA,IAAW,EAAX,IAAI,GAAG,EAAA,KAAA,MAAA,GAAA,IAAI,GAAA,EAAA,EACX,OAAO,GAAA,EAAA,CAAA,OAAA,EACP,kBAAkB,GAAA,EAAA,CAAA,kBAAA,EAClB,cAAc,GAAA,EAAA,CAAA,cAAA;AAEd,IAAA,IAAM,sBAAsB,GAAGA,cAAQ,CAAC,YAAY,CAAC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IAAI,CAAA,GAAG,iBAAiB,IAAI,cAAc,IAAI,CAAC,SAAS;wBAChE,EAAC,CAAAA,YAAM,CAAC,QAAQ,CAAG,GAAA,CAAC,iBAAiB,IAAI,cAAc,IAAI,CAAC,SAAS;AACvE,wBAAA,EAAA,EAAA,EAAA;AAED,oBAAA,CAAC,SAAS,IAAIJ,sBAAC,CAAA,aAAA,CAAAS,eAAS,EAAG,IAAA,CAAA;oBAC3B,cAAc,IAAI,CAAC,SAAS,IAAI,YAAY,KACzCT,sBAAA,CAAA,aAAA,CAACU,wBAAY,EAAA,EACT,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,uBAAuB,EAChC,SAAS,EAAEN,YAAM,CAAC,YAAY,EAAA,CAChC,CACL;oBAEA,iBAAiB,IAAIJ,sBAAC,CAAA,aAAA,CAAAW,yBAAa,EAAG,IAAA,CAAA;oBACtC,CAAC,SAAS,IAAIX,sBAAA,CAAA,aAAA,CAACY,mBAAO,EAAA,IAAA,CAAG,CACxB,CACJ,CACE,CACU;AAElC;;;;"}
@@ -1,11 +1,9 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { MouseEvent } from "react";
4
- import { TBottomButton } from "../../types";
5
- type Props = {
1
+ import React, { MouseEvent } from 'react';
2
+ import { type TBottomButton } from '../../types';
3
+ declare type Props = {
6
4
  onClick: (e: MouseEvent) => void;
7
5
  className?: string;
8
6
  bottomButton: TBottomButton;
9
7
  };
10
- declare const BottomButton: ({ onClick, className, bottomButton }: Props) => React.JSX.Element;
11
- export { BottomButton };
8
+ export declare const BottomButton: ({ onClick, className, bottomButton }: Props) => React.JSX.Element;
9
+ export {};
@@ -7,15 +7,13 @@ var cn = require('classnames');
7
7
  var coreComponentsButton = require('@alfalab/core-components-button');
8
8
  var coreComponentsTypography = require('@alfalab/core-components-typography');
9
9
  var context = require('../../context.js');
10
+ var index_module = require('./index.module.css.js');
10
11
 
11
12
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
12
13
 
13
14
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
15
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
16
 
16
- var styles = {"component":"gallery__component_h9y7y","notVisible":"gallery__notVisible_h9y7y"};
17
- require('./index.css')
18
-
19
17
  var BottomButton = function (_a) {
20
18
  var _b;
21
19
  var onClick = _a.onClick, className = _a.className, bottomButton = _a.bottomButton;
@@ -33,8 +31,9 @@ var BottomButton = function (_a) {
33
31
  }
34
32
  /* eslint-disable-next-line react-hooks/exhaustive-deps */
35
33
  }, [bottomButton.timeout, currentSlideIndex, singleSlide]);
36
- return (React__default.default.createElement(coreComponentsButton.Button, { size: 56, className: cn__default.default(styles.component, (_b = {}, _b[styles.notVisible] = !visible && bottomButton.timeout, _b), className), onClick: onClick },
34
+ return (React__default.default.createElement(coreComponentsButton.Button, { size: 56, className: cn__default.default(index_module.component, (_b = {}, _b[index_module.notVisible] = !visible && bottomButton.timeout, _b), className), onClick: onClick },
37
35
  React__default.default.createElement(coreComponentsTypography.Typography.Text, { color: 'static-primary-light' }, bottomButton.text)));
38
36
  };
39
37
 
40
38
  exports.BottomButton = BottomButton;
39
+ //# sourceMappingURL=Component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.js","sources":["../../src/components/bottom-button/Component.tsx"],"sourcesContent":["import React, { MouseEvent, useContext, useEffect, useRef, useState } from 'react';\nimport cn from 'classnames';\n\nimport { Button } from '@alfalab/core-components-button';\nimport { Typography } from '@alfalab/core-components-typography';\n\nimport { GalleryContext } from '../../context';\nimport { type TBottomButton } from '../../types';\n\nimport styles from './index.module.css';\n\ntype Props = {\n onClick: (e: MouseEvent) => void;\n className?: string;\n bottomButton: TBottomButton;\n};\n\nexport const BottomButton = ({ onClick, className, bottomButton }: Props) => {\n const timer = useRef<ReturnType<typeof setTimeout>>();\n\n const [visible, setVisible] = useState<boolean>(false);\n const { currentSlideIndex, getSwiper, singleSlide } = useContext(GalleryContext);\n\n useEffect(() => {\n const swiper = getSwiper();\n\n if ((currentSlideIndex === swiper?.activeIndex || singleSlide) && bottomButton.timeout) {\n if (timer.current) {\n clearTimeout(timer.current);\n }\n setVisible(false);\n timer.current = setTimeout(() => setVisible(true), bottomButton.timeout * 1000);\n }\n /* eslint-disable-next-line react-hooks/exhaustive-deps */\n }, [bottomButton.timeout, currentSlideIndex, singleSlide]);\n\n return (\n <Button\n size={56}\n className={cn(\n styles.component,\n { [styles.notVisible]: !visible && bottomButton.timeout },\n className,\n )}\n onClick={onClick}\n >\n <Typography.Text color='static-primary-light'>{bottomButton.text}</Typography.Text>\n </Button>\n );\n};\n"],"names":["useRef","useState","useContext","GalleryContext","useEffect","React","Button","cn","styles","Typography"],"mappings":";;;;;;;;;;;;;;;;AAiBO,IAAM,YAAY,GAAG,UAAC,EAA2C,EAAA;;AAAzC,IAAA,IAAA,OAAO,aAAA,EAAE,SAAS,GAAA,EAAA,CAAA,SAAA,EAAE,YAAY,GAAA,EAAA,CAAA,YAAA;AAC3D,IAAA,IAAM,KAAK,GAAGA,YAAM,EAAiC;IAE/C,IAAA,EAAA,GAAwBC,cAAQ,CAAU,KAAK,CAAC,EAA/C,OAAO,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,UAAU,GAAA,EAAA,CAAA,CAAA,CAA4B;AAChD,IAAA,IAAA,EAAgD,GAAAC,gBAAU,CAACC,sBAAc,CAAC,EAAxE,iBAAiB,GAAA,EAAA,CAAA,iBAAA,EAAE,SAAS,GAAA,EAAA,CAAA,SAAA,EAAE,WAAW,iBAA+B;AAEhF,IAAAC,eAAS,CAAC,YAAA;AACN,QAAA,IAAM,MAAM,GAAG,SAAS,EAAE;AAE1B,QAAA,IAAI,CAAC,iBAAiB,MAAK,MAAM,KAAN,IAAA,IAAA,MAAM,uBAAN,MAAM,CAAE,WAAW,CAAA,IAAI,WAAW,KAAK,YAAY,CAAC,OAAO,EAAE;YACpF,IAAI,KAAK,CAAC,OAAO,EAAE;AACf,gBAAA,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC;AAC9B;YACD,UAAU,CAAC,KAAK,CAAC;YACjB,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,YAAM,EAAA,OAAA,UAAU,CAAC,IAAI,CAAC,CAAhB,EAAgB,EAAE,YAAY,CAAC,OAAO,GAAG,IAAI,CAAC;AAClF;;KAEJ,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,CAAC,CAAC;AAE1D,IAAA,QACIC,sBAAA,CAAA,aAAA,CAACC,2BAAM,EAAA,EACH,IAAI,EAAE,EAAE,EACR,SAAS,EAAEC,mBAAE,CACTC,YAAM,CAAC,SAAS,GAAA,EAAA,GAAA,EAAA,EACd,EAAC,CAAAA,YAAM,CAAC,UAAU,CAAG,GAAA,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,OACvD,SAAS,CACZ,EACD,OAAO,EAAE,OAAO,EAAA;AAEhB,QAAAH,sBAAA,CAAA,aAAA,CAACI,mCAAU,CAAC,IAAI,EAAA,EAAC,KAAK,EAAC,sBAAsB,EAAE,EAAA,YAAY,CAAC,IAAI,CAAmB,CAC9E;AAEjB;;;;"}
@@ -1,39 +1,17 @@
1
- /* hash: kdm80 */
2
- :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
- } /* deprecated */ :root {
1
+ :root {
4
2
  --color-static-neutral-translucent-500-inverted: rgba(228, 228, 251, 0.28);
5
3
  --color-static-neutral-translucent-500-inverted-hover: rgba(233, 233, 250, 0.37);
6
- --color-static-neutral-translucent-500-inverted-press: rgba(238, 238, 254, 0.46); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
7
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
8
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
9
- } :root {
10
-
11
- /* Hard */
12
-
13
- /* Up */
14
-
15
- /* Hard up */
16
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
17
-
18
- /* новые значения, используйте их */
19
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
20
-
21
- /* новые значения, используйте их */
22
-
23
- /* no-unit может приводить к проблемам в calc (#1559) */
24
- /* stylelint-disable-next-line length-zero-no-unit */
25
- } :root {
26
- } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
27
- } /* сбрасывает синюю подсветку при нажатии */ .gallery__component_h9y7y {
4
+ --color-static-neutral-translucent-500-inverted-press: rgba(238, 238, 254, 0.46);
5
+ } .gallery__component_bm9ev {
28
6
  background-color: var(--color-static-neutral-translucent-500-inverted);
29
- } .gallery__component_h9y7y:hover {
7
+ } .gallery__component_bm9ev:hover {
30
8
  background-color: var(--color-static-neutral-translucent-500-inverted-hover);
31
- } .gallery__component_h9y7y:active {
9
+ } .gallery__component_bm9ev:active {
32
10
  background-color: var(--color-static-neutral-translucent-500-inverted-press);
33
- } .gallery__component_h9y7y {
11
+ } .gallery__component_bm9ev {
34
12
 
35
13
  transition: transform 1s ease-in-out;
36
14
  will-change: transform;
37
- } .gallery__notVisible_h9y7y {
15
+ } .gallery__notVisible_bm9ev {
38
16
  transform: translateY(250%);
39
17
  }
@@ -1 +1 @@
1
- export { BottomButton } from "./Component";
1
+ export { BottomButton } from './Component';
@@ -2,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_bottomButton_Component = require('./Component.js');
5
+ var Component = require('./Component.js');
6
6
 
7
7
 
8
8
 
9
- exports.BottomButton = components_bottomButton_Component.BottomButton;
9
+ exports.BottomButton = Component.BottomButton;
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ require('./index.css');
4
+
5
+ var styles = {"component":"gallery__component_bm9ev","notVisible":"gallery__notVisible_bm9ev"};
6
+
7
+ module.exports = styles;
8
+ //# sourceMappingURL=index.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/bottom-button/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n background-color: var(--color-static-neutral-translucent-500-inverted);\n &:hover {\n background-color: var(--color-static-neutral-translucent-500-inverted-hover);\n }\n &:active {\n background-color: var(--color-static-neutral-translucent-500-inverted-press);\n }\n\n transition: transform 1s ease-in-out;\n will-change: transform;\n}\n\n.notVisible {\n transform: translateY(250%);\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,WAAW,CAAC,0BAA0B,CAAC,YAAY,CAAC,2BAA2B,CAAC;;;;"}
@@ -1,41 +1,20 @@
1
- /* hash: h3bro */
2
- :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
- } /* deprecated */ :root {
1
+ :root {
4
2
  --color-static-neutral-100: #f2f3f5;
5
3
  --color-static-neutral-100-hover: #e7e8eb;
6
4
  --color-static-neutral-100-press: #dcdde1;
7
- --color-static-neutral-translucent-1300-inverted: rgba(255, 255, 255, 0.94); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
8
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
9
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
+ --color-static-neutral-translucent-1300-inverted: rgba(255, 255, 255, 0.94);
10
6
  } :root {
11
-
12
- /* Hard */
13
-
14
- /* Up */
15
-
16
- /* Hard up */
17
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
18
-
19
- /* новые значения, используйте их */
20
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
21
- --gap-2xl: 32px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
22
-
23
- /* новые значения, используйте их */
24
-
25
- /* no-unit может приводить к проблемам в calc (#1559) */
26
- /* stylelint-disable-next-line length-zero-no-unit */
7
+ --gap-2xl: 32px;
27
8
  --gap-32: var(--gap-2xl);
28
- } :root {
29
- } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
30
- } /* сбрасывает синюю подсветку при нажатии */ .gallery__buttons_1hg4g {
9
+ } .gallery__buttons_duwru {
31
10
  display: flex;
32
11
  padding-left: var(--gap-32)
33
- } .gallery__buttons_1hg4g path {
12
+ } .gallery__buttons_duwru path {
34
13
  color: var(--color-static-neutral-translucent-1300-inverted);
35
- } .gallery__iconButton_1hg4g path {
14
+ } .gallery__iconButton_duwru path {
36
15
  color: var(--color-static-neutral-100);
37
- } .gallery__iconButton_1hg4g:hover path {
16
+ } .gallery__iconButton_duwru:hover path {
38
17
  color: var(--color-static-neutral-100-hover);
39
- } .gallery__iconButton_1hg4g:active path {
18
+ } .gallery__iconButton_duwru:active path {
40
19
  color: var(--color-static-neutral-100-press);
41
20
  }
@@ -1,17 +1,17 @@
1
1
  import { FC, MutableRefObject } from 'react';
2
- import { IconButtonProps } from "@alfalab/core-components-icon-button";
3
- type Props = Omit<IconButtonProps, 'icon' | 'colors'> & {
2
+ import { IconButtonProps } from '@alfalab/core-components-icon-button';
3
+ declare type Props = Omit<IconButtonProps, 'icon' | 'colors'> & {
4
4
  buttonRef?: MutableRefObject<HTMLButtonElement | null>;
5
5
  download?: string | boolean;
6
6
  };
7
- declare const Fullscreen: FC<Props>;
8
- declare const BackArrow: FC<Props>;
9
- declare const Play: FC<Props>;
10
- declare const Pause: FC<Props>;
11
- declare const ExitFullscreen: FC<Props>;
12
- declare const MuteVideo: FC<Props>;
13
- declare const UnmuteVideo: FC<Props>;
14
- declare const Download: FC<Props>;
15
- declare const Share: FC<Props>;
16
- declare const Exit: FC<Props>;
17
- export { Fullscreen, BackArrow, Play, Pause, ExitFullscreen, MuteVideo, UnmuteVideo, Download, Share, Exit };
7
+ export declare const Fullscreen: FC<Props>;
8
+ export declare const BackArrow: FC<Props>;
9
+ export declare const Play: FC<Props>;
10
+ export declare const Pause: FC<Props>;
11
+ export declare const ExitFullscreen: FC<Props>;
12
+ export declare const MuteVideo: FC<Props>;
13
+ export declare const UnmuteVideo: FC<Props>;
14
+ export declare const Download: FC<Props>;
15
+ export declare const Share: FC<Props>;
16
+ export declare const Exit: FC<Props>;
17
+ export {};
@@ -17,52 +17,50 @@ var PointerDownMIcon = require('@alfalab/icons-glyph/PointerDownMIcon');
17
17
  var ShareMIcon = require('@alfalab/icons-glyph/ShareMIcon');
18
18
  var SoundCrossMIcon = require('@alfalab/icons-glyph/SoundCrossMIcon');
19
19
  var SoundMIcon = require('@alfalab/icons-glyph/SoundMIcon');
20
+ var index_module = require('./index.module.css.js');
20
21
 
21
22
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
22
23
 
23
24
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
24
25
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
25
26
 
26
- var styles = {"buttons":"gallery__buttons_1hg4g","iconButton":"gallery__iconButton_1hg4g"};
27
- require('./index.css')
28
-
29
27
  var Fullscreen = function (_a) {
30
28
  var buttonRef = _a.buttonRef, restProps = tslib.__rest(_a, ["buttonRef"]);
31
29
  return (React__default.default.createElement(desktop.TooltipDesktop, { trigger: 'hover', position: 'bottom', content: '\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u043C \u0440\u0435\u0436\u0438\u043C\u0435', fallbackPlacements: ['bottom-end'] },
32
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: ArrowsOutwardMIcon.ArrowsOutwardMIcon, "aria-label": '\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u043C \u0440\u0435\u0436\u0438\u043C\u0435', className: styles.iconButton }))));
30
+ React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: ArrowsOutwardMIcon.ArrowsOutwardMIcon, "aria-label": '\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u043C \u0440\u0435\u0436\u0438\u043C\u0435', className: index_module.iconButton }))));
33
31
  };
34
32
  var BackArrow = function (_a) {
35
33
  var buttonRef = _a.buttonRef, restProps = tslib.__rest(_a, ["buttonRef"]);
36
- return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: ArrowLeftMIcon.ArrowLeftMIcon, "aria-label": '\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434', className: styles.iconButton })));
34
+ return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: ArrowLeftMIcon.ArrowLeftMIcon, "aria-label": '\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434', className: index_module.iconButton })));
37
35
  };
38
36
  var Play = function (_a) {
39
37
  var buttonRef = _a.buttonRef, className = _a.className, restProps = tslib.__rest(_a, ["buttonRef", "className"]);
40
- return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: PlayCompactMIcon.PlayCompactMIcon, "aria-label": '\u041F\u0440\u043E\u0438\u0433\u0440\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E', className: cn__default.default(styles.iconButton, className) })));
38
+ return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: PlayCompactMIcon.PlayCompactMIcon, "aria-label": '\u041F\u0440\u043E\u0438\u0433\u0440\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E', className: cn__default.default(index_module.iconButton, className) })));
41
39
  };
42
40
  var Pause = function (_a) {
43
41
  var buttonRef = _a.buttonRef, className = _a.className, restProps = tslib.__rest(_a, ["buttonRef", "className"]);
44
- return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: PauseCompactMIcon.PauseCompactMIcon, "aria-label": '\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0443\u0437\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E', className: cn__default.default(styles.iconButton, className) })));
42
+ return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: PauseCompactMIcon.PauseCompactMIcon, "aria-label": '\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0443\u0437\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E', className: cn__default.default(index_module.iconButton, className) })));
45
43
  };
46
44
  var ExitFullscreen = function (_a) {
47
45
  var buttonRef = _a.buttonRef, restProps = tslib.__rest(_a, ["buttonRef"]);
48
46
  return (React__default.default.createElement(desktop.TooltipDesktop, { trigger: 'hover', position: 'bottom', content: '\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430', fallbackPlacements: ['bottom-end'] },
49
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: ArrowsInwardMIcon.ArrowsInwardMIcon, "aria-label": '\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430', className: styles.iconButton }))));
47
+ React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: ArrowsInwardMIcon.ArrowsInwardMIcon, "aria-label": '\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430', className: index_module.iconButton }))));
50
48
  };
51
49
  var MuteVideo = function (_a) {
52
50
  var buttonRef = _a.buttonRef, className = _a.className, restProps = tslib.__rest(_a, ["buttonRef", "className"]);
53
51
  return (React__default.default.createElement(desktop.TooltipDesktop, { trigger: 'hover', position: 'bottom', content: '\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A', fallbackPlacements: ['bottom-end'], targetClassName: className },
54
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: SoundMIcon.SoundMIcon, "aria-label": '\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A', className: styles.iconButton }))));
52
+ React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: SoundMIcon.SoundMIcon, "aria-label": '\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A', className: index_module.iconButton }))));
55
53
  };
56
54
  var UnmuteVideo = function (_a) {
57
55
  var buttonRef = _a.buttonRef, className = _a.className, restProps = tslib.__rest(_a, ["buttonRef", "className"]);
58
56
  return (React__default.default.createElement(desktop.TooltipDesktop, { trigger: 'hover', position: 'bottom', content: '\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A', fallbackPlacements: ['bottom-end'], targetClassName: className },
59
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: SoundCrossMIcon.SoundCrossMIcon, "aria-label": '\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A', className: styles.iconButton }))));
57
+ React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: SoundCrossMIcon.SoundCrossMIcon, "aria-label": '\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A', className: index_module.iconButton }))));
60
58
  };
61
59
  var Download = function (props) { return (React__default.default.createElement(desktop.TooltipDesktop, { trigger: 'hover', position: 'bottom', content: '\u0421\u043A\u0430\u0447\u0430\u0442\u044C', fallbackPlacements: ['bottom-end'] },
62
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: PointerDownMIcon.PointerDownMIcon, "aria-label": '\u0421\u043A\u0430\u0447\u0430\u0442\u044C', className: styles.iconButton })))); };
60
+ React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: PointerDownMIcon.PointerDownMIcon, "aria-label": '\u0421\u043A\u0430\u0447\u0430\u0442\u044C', className: index_module.iconButton })))); };
63
61
  var Share = function (props) { return (React__default.default.createElement(desktop.TooltipDesktop, { trigger: 'hover', position: 'bottom', content: '\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u044C\u0441\u044F', fallbackPlacements: ['bottom-end'] },
64
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: ShareMIcon.ShareMIcon, "aria-label": '\u0421\u043A\u0430\u0447\u0430\u0442\u044C', className: styles.iconButton })))); };
65
- var Exit = function (props) { return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: CrossMIcon.CrossMIcon, "aria-label": '\u0417\u0430\u043A\u0440\u044B\u0442\u044C', className: styles.iconButton }))); };
62
+ React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: ShareMIcon.ShareMIcon, "aria-label": '\u0421\u043A\u0430\u0447\u0430\u0442\u044C', className: index_module.iconButton })))); };
63
+ var Exit = function (props) { return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: CrossMIcon.CrossMIcon, "aria-label": '\u0417\u0430\u043A\u0440\u044B\u0442\u044C', className: index_module.iconButton }))); };
66
64
 
67
65
  exports.BackArrow = BackArrow;
68
66
  exports.Download = Download;
@@ -74,3 +72,4 @@ exports.Pause = Pause;
74
72
  exports.Play = Play;
75
73
  exports.Share = Share;
76
74
  exports.UnmuteVideo = UnmuteVideo;
75
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/components/buttons/index.tsx"],"sourcesContent":["import React, { FC, MutableRefObject } from 'react';\nimport cn from 'classnames';\n\nimport { IconButton, IconButtonProps } from '@alfalab/core-components-icon-button';\nimport { TooltipDesktop } from '@alfalab/core-components-tooltip/desktop';\nimport { ArrowLeftMIcon } from '@alfalab/icons-glyph/ArrowLeftMIcon';\nimport { ArrowsInwardMIcon } from '@alfalab/icons-glyph/ArrowsInwardMIcon';\nimport { ArrowsOutwardMIcon } from '@alfalab/icons-glyph/ArrowsOutwardMIcon';\nimport { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';\nimport { PauseCompactMIcon } from '@alfalab/icons-glyph/PauseCompactMIcon';\nimport { PlayCompactMIcon } from '@alfalab/icons-glyph/PlayCompactMIcon';\nimport { PointerDownMIcon } from '@alfalab/icons-glyph/PointerDownMIcon';\nimport { ShareMIcon } from '@alfalab/icons-glyph/ShareMIcon';\nimport { SoundCrossMIcon } from '@alfalab/icons-glyph/SoundCrossMIcon';\nimport { SoundMIcon } from '@alfalab/icons-glyph/SoundMIcon';\n\nimport styles from './index.module.css';\n\ntype Props = Omit<IconButtonProps, 'icon' | 'colors'> & {\n buttonRef?: MutableRefObject<HTMLButtonElement | null>;\n download?: string | boolean;\n};\n\nexport const Fullscreen: FC<Props> = ({ buttonRef, ...restProps }) => (\n <TooltipDesktop\n trigger='hover'\n position='bottom'\n content='Открыть в полноэкранном режиме'\n fallbackPlacements={['bottom-end']}\n >\n <IconButton\n {...restProps}\n ref={buttonRef}\n icon={ArrowsOutwardMIcon}\n aria-label='Открыть в полноэкранном режиме'\n className={styles.iconButton}\n />\n </TooltipDesktop>\n);\n\nexport const BackArrow: FC<Props> = ({ buttonRef, ...restProps }) => (\n <IconButton\n {...restProps}\n ref={buttonRef}\n icon={ArrowLeftMIcon}\n aria-label='Вернуться назад'\n className={styles.iconButton}\n />\n);\n\nexport const Play: FC<Props> = ({ buttonRef, className, ...restProps }) => (\n <IconButton\n {...restProps}\n ref={buttonRef}\n icon={PlayCompactMIcon}\n aria-label='Проиграть видео'\n className={cn(styles.iconButton, className)}\n />\n);\n\nexport const Pause: FC<Props> = ({ buttonRef, className, ...restProps }) => (\n <IconButton\n {...restProps}\n ref={buttonRef}\n icon={PauseCompactMIcon}\n aria-label='Поставить паузу на видео'\n className={cn(styles.iconButton, className)}\n />\n);\n\nexport const ExitFullscreen: FC<Props> = ({ buttonRef, ...restProps }) => (\n <TooltipDesktop\n trigger='hover'\n position='bottom'\n content='Выйти из полноэкранного режима'\n fallbackPlacements={['bottom-end']}\n >\n <IconButton\n {...restProps}\n ref={buttonRef}\n icon={ArrowsInwardMIcon}\n aria-label='Выйти из полноэкранного режима'\n className={styles.iconButton}\n />\n </TooltipDesktop>\n);\n\nexport const MuteVideo: FC<Props> = ({ buttonRef, className, ...restProps }) => (\n <TooltipDesktop\n trigger='hover'\n position='bottom'\n content='Выключить звук'\n fallbackPlacements={['bottom-end']}\n targetClassName={className}\n >\n <IconButton\n {...restProps}\n ref={buttonRef}\n icon={SoundMIcon}\n aria-label='Выключить звук'\n className={styles.iconButton}\n />\n </TooltipDesktop>\n);\n\nexport const UnmuteVideo: FC<Props> = ({ buttonRef, className, ...restProps }) => (\n <TooltipDesktop\n trigger='hover'\n position='bottom'\n content='Включить звук'\n fallbackPlacements={['bottom-end']}\n targetClassName={className}\n >\n <IconButton\n {...restProps}\n ref={buttonRef}\n icon={SoundCrossMIcon}\n aria-label='Включить звук'\n className={styles.iconButton}\n />\n </TooltipDesktop>\n);\n\nexport const Download: FC<Props> = (props) => (\n <TooltipDesktop\n trigger='hover'\n position='bottom'\n content='Скачать'\n fallbackPlacements={['bottom-end']}\n >\n <IconButton\n {...props}\n icon={PointerDownMIcon}\n aria-label='Скачать'\n className={styles.iconButton}\n />\n </TooltipDesktop>\n);\n\nexport const Share: FC<Props> = (props) => (\n <TooltipDesktop\n trigger='hover'\n position='bottom'\n content='Поделиться'\n fallbackPlacements={['bottom-end']}\n >\n <IconButton\n {...props}\n icon={ShareMIcon}\n aria-label='Скачать'\n className={styles.iconButton}\n />\n </TooltipDesktop>\n);\n\nexport const Exit: FC<Props> = (props) => (\n <IconButton {...props} icon={CrossMIcon} aria-label='Закрыть' className={styles.iconButton} />\n);\n"],"names":["__rest","React","TooltipDesktop","IconButton","ArrowsOutwardMIcon","styles","__assign","ArrowLeftMIcon","PlayCompactMIcon","cn","PauseCompactMIcon","ArrowsInwardMIcon","SoundMIcon","SoundCrossMIcon","PointerDownMIcon","ShareMIcon","CrossMIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAuBO,IAAM,UAAU,GAAc,UAAC,EAA2B,EAAA;AAAzB,IAAA,IAAA,SAAS,GAAA,EAAA,CAAA,SAAA,EAAK,SAAS,GAAAA,YAAA,CAAA,EAAA,EAAzB,aAA2B,CAAF;IAAO,QAClEC,qCAACC,sBAAc,EAAA,EACX,OAAO,EAAC,OAAO,EACf,QAAQ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qBACH,KAAK,EAAA,EACT,IAAI,EAAEY,qBAAU,gBACL,4CAAS,EACpB,SAAS,EAAEV,YAAM,CAAC,UAAU,EAAA,CAAA,CAC9B,CACW,EACpB;AAEM,IAAM,IAAI,GAAc,UAAC,KAAK,EAAK,EAAA,QACtCJ,sBAAA,CAAA,aAAA,CAACE,mCAAU,EAAAG,cAAA,CAAA,EAAA,EAAK,KAAK,EAAA,EAAE,IAAI,EAAEU,qBAAU,EAAA,YAAA,EAAa,4CAAS,EAAC,SAAS,EAAEX,YAAM,CAAC,UAAU,EAAA,CAAA,CAAI,EACjG;;;;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ require('./index.css');
4
+
5
+ var styles = {"iconButton":"gallery__iconButton_duwru"};
6
+
7
+ module.exports = styles;
8
+ //# sourceMappingURL=index.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/buttons/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.buttons {\n display: flex;\n padding-left: var(--gap-32);\n\n & path {\n color: var(--color-static-neutral-translucent-1300-inverted);\n }\n}\n\n.iconButton {\n & path {\n color: var(--color-static-neutral-100);\n }\n\n &:hover path {\n color: var(--color-static-neutral-100-hover);\n }\n\n &:active path {\n color: var(--color-static-neutral-100-press);\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAoC,YAAY,CAAC,2BAA2B,CAAC;;;;"}
@@ -1,3 +1,2 @@
1
1
  import { FC } from 'react';
2
- declare const Header: FC;
3
- export { Header };
2
+ export declare const Header: FC;