@alfalab/core-components-gallery 5.10.0 → 5.10.2

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 (113) hide show
  1. package/@alfalab/icons-glyph/package.json +14 -0
  2. package/Component.js +11 -13
  3. package/components/buttons/index.css +5 -5
  4. package/components/buttons/index.js +1 -1
  5. package/components/header/Component.js +1 -1
  6. package/components/header/index.css +2 -2
  7. package/components/header-info-block/Component.js +1 -1
  8. package/components/header-info-block/index.css +5 -5
  9. package/components/header-mobile/Component.js +1 -1
  10. package/components/header-mobile/index.css +7 -7
  11. package/components/image-preview/Component.js +1 -1
  12. package/components/image-preview/index.css +18 -18
  13. package/components/image-viewer/component.js +20 -46
  14. package/components/image-viewer/hooks.d.ts +11 -0
  15. package/components/image-viewer/hooks.js +51 -0
  16. package/components/image-viewer/index.css +31 -26
  17. package/components/image-viewer/single.d.ts +3 -0
  18. package/components/image-viewer/single.js +42 -0
  19. package/components/image-viewer/slide.d.ts +16 -0
  20. package/components/image-viewer/slide.js +51 -10
  21. package/components/image-viewer/video/index.css +7 -7
  22. package/components/image-viewer/video/index.js +1 -1
  23. package/components/info-bar/Component.js +1 -1
  24. package/components/info-bar/index.css +5 -5
  25. package/components/navigation-bar/Component.js +1 -1
  26. package/components/navigation-bar/index.css +7 -7
  27. package/cssm/Component.js +10 -12
  28. package/cssm/components/image-viewer/component.js +6 -33
  29. package/cssm/components/image-viewer/hooks.d.ts +11 -0
  30. package/cssm/components/image-viewer/hooks.js +52 -0
  31. package/cssm/components/image-viewer/index.module.css +9 -4
  32. package/cssm/components/image-viewer/single.d.ts +3 -0
  33. package/cssm/components/image-viewer/single.js +43 -0
  34. package/cssm/components/image-viewer/slide.d.ts +2 -2
  35. package/cssm/components/image-viewer/slide.js +4 -4
  36. package/esm/Component.js +11 -13
  37. package/esm/components/buttons/index.css +5 -5
  38. package/esm/components/buttons/index.js +1 -1
  39. package/esm/components/header/Component.js +1 -1
  40. package/esm/components/header/index.css +2 -2
  41. package/esm/components/header-info-block/Component.js +1 -1
  42. package/esm/components/header-info-block/index.css +5 -5
  43. package/esm/components/header-mobile/Component.js +1 -1
  44. package/esm/components/header-mobile/index.css +7 -7
  45. package/esm/components/image-preview/Component.js +1 -1
  46. package/esm/components/image-preview/index.css +18 -18
  47. package/esm/components/image-viewer/component.js +9 -34
  48. package/esm/components/image-viewer/hooks.d.ts +11 -0
  49. package/esm/components/image-viewer/hooks.js +43 -0
  50. package/esm/components/image-viewer/index.css +31 -26
  51. package/esm/components/image-viewer/single.d.ts +3 -0
  52. package/esm/components/image-viewer/single.js +33 -0
  53. package/esm/components/image-viewer/slide.d.ts +16 -0
  54. package/esm/components/image-viewer/slide.js +49 -9
  55. package/esm/components/image-viewer/video/index.css +7 -7
  56. package/esm/components/image-viewer/video/index.js +1 -1
  57. package/esm/components/info-bar/Component.js +1 -1
  58. package/esm/components/info-bar/index.css +5 -5
  59. package/esm/components/navigation-bar/Component.js +1 -1
  60. package/esm/components/navigation-bar/index.css +7 -7
  61. package/esm/index.css +5 -5
  62. package/esm/index.module-affca7da.js +4 -0
  63. package/index.css +5 -5
  64. package/index.module-a1b6ce1e.js +6 -0
  65. package/modern/Component.js +11 -13
  66. package/modern/components/buttons/index.css +5 -5
  67. package/modern/components/buttons/index.js +1 -1
  68. package/modern/components/header/Component.js +1 -1
  69. package/modern/components/header/index.css +2 -2
  70. package/modern/components/header-info-block/Component.js +1 -1
  71. package/modern/components/header-info-block/index.css +5 -5
  72. package/modern/components/header-mobile/Component.js +1 -1
  73. package/modern/components/header-mobile/index.css +7 -7
  74. package/modern/components/image-preview/Component.js +1 -1
  75. package/modern/components/image-preview/index.css +18 -18
  76. package/modern/components/image-viewer/component.js +9 -33
  77. package/modern/components/image-viewer/hooks.d.ts +11 -0
  78. package/modern/components/image-viewer/hooks.js +42 -0
  79. package/modern/components/image-viewer/index.css +31 -26
  80. package/modern/components/image-viewer/single.d.ts +3 -0
  81. package/modern/components/image-viewer/single.js +31 -0
  82. package/modern/components/image-viewer/slide.d.ts +16 -0
  83. package/modern/components/image-viewer/slide.js +45 -9
  84. package/modern/components/image-viewer/video/index.css +7 -7
  85. package/modern/components/image-viewer/video/index.js +1 -1
  86. package/modern/components/info-bar/Component.js +1 -1
  87. package/modern/components/info-bar/index.css +5 -5
  88. package/modern/components/navigation-bar/Component.js +1 -1
  89. package/modern/components/navigation-bar/index.css +7 -7
  90. package/modern/index.css +5 -5
  91. package/modern/index.module-74d34a11.js +4 -0
  92. package/moderncssm/Component.js +10 -12
  93. package/moderncssm/components/image-viewer/component.js +7 -32
  94. package/moderncssm/components/image-viewer/hooks.d.ts +11 -0
  95. package/moderncssm/components/image-viewer/hooks.js +42 -0
  96. package/moderncssm/components/image-viewer/index.module.css +9 -4
  97. package/moderncssm/components/image-viewer/single.d.ts +3 -0
  98. package/moderncssm/components/image-viewer/single.js +31 -0
  99. package/moderncssm/components/image-viewer/slide.d.ts +2 -2
  100. package/moderncssm/components/image-viewer/slide.js +4 -4
  101. package/package.json +5 -4
  102. package/src/Component.tsx +9 -16
  103. package/src/components/image-viewer/component.tsx +14 -61
  104. package/src/components/image-viewer/hooks.ts +66 -0
  105. package/src/components/image-viewer/index.module.css +6 -1
  106. package/src/components/image-viewer/single.tsx +67 -0
  107. package/src/components/image-viewer/slide.tsx +7 -7
  108. package/esm/slide-c10cd710.d.ts +0 -16
  109. package/esm/slide-c10cd710.js +0 -51
  110. package/modern/slide-618331a8.d.ts +0 -16
  111. package/modern/slide-618331a8.js +0 -47
  112. package/slide-0cca0f85.d.ts +0 -16
  113. package/slide-0cca0f85.js +0 -59
@@ -1,4 +1,4 @@
1
- /* hash: 4oho0 */
1
+ /* hash: 9nggj */
2
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
3
  } /* deprecated */ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :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 */
@@ -20,18 +20,18 @@
20
20
  --gap-8: var(--gap-xs);
21
21
  } :root {
22
22
  } :root {
23
- } /* сбрасывает синюю подсветку при нажатии */ .gallery__description_y2txk {
23
+ } /* сбрасывает синюю подсветку при нажатии */ .gallery__description_wnn0j {
24
24
  text-align: center;
25
25
  margin-bottom: var(--gap-8);
26
- } .gallery__videoButtons_y2txk {
26
+ } .gallery__videoButtons_wnn0j {
27
27
  padding: 0 var(--gap-8);
28
28
  position: relative;
29
29
  height: 48px;
30
- } .gallery__center_y2txk {
30
+ } .gallery__center_wnn0j {
31
31
  position: absolute;
32
32
  left: 50%;
33
33
  transform: translateX(-50%);
34
- } .gallery__right_y2txk {
34
+ } .gallery__right_wnn0j {
35
35
  position: absolute;
36
36
  right: 0;
37
37
  }
@@ -4,7 +4,7 @@ import { getImageKey } from '../../utils/utils.js';
4
4
  import { TestIds } from '../../utils/constants.js';
5
5
  import { ImagePreview } from '../image-preview/Component.js';
6
6
 
7
- const styles = {"component":"gallery__component_11b9j","previews":"gallery__previews_11b9j","preview":"gallery__preview_11b9j"};
7
+ const styles = {"component":"gallery__component_1a8dz","previews":"gallery__previews_1a8dz","preview":"gallery__preview_1a8dz"};
8
8
  require('./index.css')
9
9
 
10
10
  const MIN_SCROLL_STEP = 24;
@@ -1,4 +1,4 @@
1
- /* hash: 61fsx */
1
+ /* hash: 1cj6m */
2
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
3
  } /* deprecated */ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :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 */
@@ -23,7 +23,7 @@
23
23
  --gap-24: var(--gap-xl);
24
24
  } :root {
25
25
  } :root {
26
- } /* сбрасывает синюю подсветку при нажатии */ .gallery__component_11b9j {
26
+ } /* сбрасывает синюю подсветку при нажатии */ .gallery__component_1a8dz {
27
27
  display: flex;
28
28
  flex-wrap: nowrap;
29
29
  align-content: center;
@@ -33,15 +33,15 @@
33
33
  box-sizing: border-box;
34
34
  padding: 10px var(--gap-24);
35
35
  scrollbar-width: none
36
- } .gallery__component_11b9j::-webkit-scrollbar {
36
+ } .gallery__component_1a8dz::-webkit-scrollbar {
37
37
  display: none;
38
- } .gallery__previews_11b9j {
38
+ } .gallery__previews_1a8dz {
39
39
  display: flex;
40
- } .gallery__preview_11b9j {
40
+ } .gallery__preview_1a8dz {
41
41
  flex-shrink: 0;
42
42
  margin: var(--gap-0) var(--gap-2)
43
- } .gallery__preview_11b9j:first-child {
43
+ } .gallery__preview_1a8dz:first-child {
44
44
  margin-left: auto;
45
- } .gallery__preview_11b9j:last-child {
45
+ } .gallery__preview_1a8dz:last-child {
46
46
  margin-right: auto;
47
47
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: hjbxz */
1
+ /* hash: 1wgkt */
2
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
3
  } /* deprecated */ :root {
4
4
  --color-static-neutral-0-inverted: #262629; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -19,7 +19,7 @@
19
19
  /* новые значения, используйте их */
20
20
  } :root {
21
21
  } :root {
22
- } /* сбрасывает синюю подсветку при нажатии */ .gallery__container_1ayy3 {
22
+ } /* сбрасывает синюю подсветку при нажатии */ .gallery__container_ndtku {
23
23
  position: relative;
24
24
  overflow: hidden;
25
25
  display: flex;
@@ -28,12 +28,12 @@
28
28
  height: 100%;
29
29
  width: 100%;
30
30
  background-color: var(--color-static-neutral-0-inverted);
31
- } .gallery__modal_1ayy3 {
31
+ } .gallery__modal_ndtku {
32
32
  flex-grow: 1;
33
33
  width: 100vw;
34
34
  height: 100vh;
35
35
  background: transparent;
36
- } .gallery__navigationVideo_1ayy3 {
36
+ } .gallery__navigationVideo_ndtku {
37
37
  background-color: var(--color-static-neutral-0-inverted);
38
38
  z-index: 3;
39
39
  width: 100%;
@@ -41,6 +41,6 @@
41
41
  bottom: 0;
42
42
  left: 0;
43
43
  transition: transform 0.3s ease-in-out;
44
- } .gallery__hideNavigation_1ayy3 {
44
+ } .gallery__hideNavigation_ndtku {
45
45
  transform: translateY(106px);
46
46
  }
@@ -0,0 +1,4 @@
1
+ const styles = {"component":"gallery__component_52rek","swiper":"gallery__swiper_52rek","mobile":"gallery__mobile_52rek","mobileVideo":"gallery__mobileVideo_52rek","singleSlideContainer":"gallery__singleSlideContainer_52rek","hidden":"gallery__hidden_52rek","slide":"gallery__slide_52rek","slideLoading":"gallery__slideLoading_52rek","image":"gallery__image_52rek","smallImage":"gallery__smallImage_52rek","verticalImageFit":"gallery__verticalImageFit_52rek","horizontalImageFit":"gallery__horizontalImageFit_52rek","arrow":"gallery__arrow_52rek","focused":"gallery__focused_52rek","placeholder":"gallery__placeholder_52rek","brokenImgWrapper":"gallery__brokenImgWrapper_52rek","brokenImgIcon":"gallery__brokenImgIcon_52rek","fullScreenImage":"gallery__fullScreenImage_52rek","fullScreenVideo":"gallery__fullScreenVideo_52rek"};
2
+ require('./components/image-viewer/index.css')
3
+
4
+ export { styles as s };
@@ -1,9 +1,11 @@
1
1
  import React, { useState, useCallback, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { BaseModal } from '@alfalab/core-components-base-modal/moderncssm';
4
- import { useMedia } from '@alfalab/hooks';
4
+ import { useIsDesktop } from '@alfalab/core-components-mq/moderncssm';
5
+ import { Single } from './components/image-viewer/single.js';
5
6
  import { NavigationBar } from './components/navigation-bar/Component.js';
6
7
  import { Header } from './components/header/Component.js';
8
+ import '@alfalab/hooks';
7
9
  import { GalleryContext } from './context.js';
8
10
  import './components/image-preview/index.module.css';
9
11
  import { ImageViewer } from './components/image-viewer/component.js';
@@ -28,11 +30,7 @@ const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onCl
28
30
  const [mutedVideo, setMutedVideo] = useState(DEFAULT_MUTED_VIDEO);
29
31
  const [playingVideo, setPlayingVideo] = useState(DEFAULT_PLAYING_VIDEO);
30
32
  const [hideNavigation, setHideNavigation] = useState(DEFAULT_HIDE_NAVIGATION);
31
- const [view] = useMedia([
32
- ['mobile', '(max-width: 1023px)'],
33
- ['desktop', '(min-width: 1024px)'],
34
- ], 'desktop');
35
- const isMobile = view === 'mobile';
33
+ const isDesktop = useIsDesktop();
36
34
  const isCurrentVideo = !!imagesMeta[currentSlideIndex]?.player?.current;
37
35
  const slideTo = useCallback((index) => {
38
36
  if (images[index]) {
@@ -110,7 +108,7 @@ const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onCl
110
108
  const showNavigationBar = !singleSlide && !fullScreen;
111
109
  // eslint-disable-next-line react/jsx-no-constructed-context-values
112
110
  const galleryContext = {
113
- view,
111
+ view: isDesktop ? 'desktop' : 'mobile',
114
112
  singleSlide,
115
113
  currentSlideIndex,
116
114
  images,
@@ -138,14 +136,14 @@ const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onCl
138
136
  return (React.createElement(GalleryContext.Provider, { value: galleryContext },
139
137
  React.createElement(BaseModal, { open: open, className: cn(styles.modal, popupClassName), onEscapeKeyDown: handleEscapeKeyDown, Backdrop: Backdrop, onUnmount: onUnmount },
140
138
  React.createElement("div", { className: styles.container },
141
- view === 'desktop' ? React.createElement(Header, null) : React.createElement(HeaderMobile, null),
142
- React.createElement(ImageViewer, null),
139
+ isDesktop ? React.createElement(Header, null) : React.createElement(HeaderMobile, null),
140
+ images.length === 1 ? React.createElement(Single, null) : React.createElement(ImageViewer, null),
143
141
  React.createElement("nav", { className: cn({
144
- [styles.navigationVideo]: isCurrentVideo && isMobile,
145
- [styles.hideNavigation]: hideNavigation && isMobile,
142
+ [styles.navigationVideo]: isCurrentVideo && !isDesktop,
143
+ [styles.hideNavigation]: hideNavigation && !isDesktop,
146
144
  }) },
147
145
  showNavigationBar && React.createElement(NavigationBar, null),
148
- view === 'mobile' && React.createElement(InfoBar, null))))));
146
+ !isDesktop && React.createElement(InfoBar, null))))));
149
147
  };
150
148
 
151
149
  export { Gallery };
@@ -1,6 +1,5 @@
1
- import React, { useContext, useRef, useCallback, useEffect, useMemo } from 'react';
1
+ import React, { useContext, useCallback, useMemo } from 'react';
2
2
  import cn from 'classnames';
3
- import elementClosest from 'element-closest';
4
3
  import SwiperCore, { EffectFade, A11y, Controller } from 'swiper';
5
4
  import { Swiper, SwiperSlide } from 'swiper/react';
6
5
  import { useFocus } from '@alfalab/hooks';
@@ -9,16 +8,15 @@ import { ChevronForwardHeavyMIcon } from '@alfalab/icons-glyph/ChevronForwardHea
9
8
  import { GalleryContext } from '../../context.js';
10
9
  import { isVideo, getImageAlt, getImageKey } from '../../utils/utils.js';
11
10
  import { TestIds } from '../../utils/constants.js';
11
+ import { useHandleImageViewer } from './hooks.js';
12
12
  import { Slide } from './slide.js';
13
13
  import 'swiper/swiper.min.css';
14
14
  import styles from './index.module.css';
15
15
 
16
16
  SwiperCore.use([EffectFade, A11y, Controller]);
17
17
  const ImageViewer = () => {
18
- const { singleSlide, images, imagesMeta, fullScreen, currentSlideIndex, initialSlide, onClose, setImageMeta, setCurrentSlideIndex, getSwiper, setSwiper, slidePrev, slideNext, getCurrentImage, view, } = useContext(GalleryContext);
19
- const isMobile = view === 'mobile';
20
- const leftArrowRef = useRef(null);
21
- const rightArrowRef = useRef(null);
18
+ const { images, imagesMeta, fullScreen, currentSlideIndex, initialSlide, setCurrentSlideIndex, getSwiper, setSwiper, slidePrev, slideNext, getCurrentImage, } = useContext(GalleryContext);
19
+ const { handleLoad, handleLoadError, handleWrapperClick, isMobile, rightArrowRef, leftArrowRef, } = useHandleImageViewer();
22
20
  const [leftArrowFocused] = useFocus(leftArrowRef, 'keyboard');
23
21
  const [rightArrowFocused] = useFocus(rightArrowRef, 'keyboard');
24
22
  const swiper = getSwiper();
@@ -42,27 +40,6 @@ const ImageViewer = () => {
42
40
  slideNext();
43
41
  }
44
42
  };
45
- const handleLoad = (event, index) => {
46
- const target = event.currentTarget;
47
- const { naturalWidth, naturalHeight } = target;
48
- setImageMeta({ width: naturalWidth, height: naturalHeight }, index);
49
- };
50
- const handleLoadError = (index) => {
51
- setImageMeta({ width: 0, height: 0, broken: true }, index);
52
- };
53
- const handleWrapperClick = useCallback((event) => {
54
- const eventTarget = event.target;
55
- const isArrow = leftArrowRef.current?.contains(eventTarget) ||
56
- rightArrowRef.current?.contains(eventTarget);
57
- const isPlaceholder = Boolean(eventTarget.closest(`.${styles.placeholder}`));
58
- const isImg = eventTarget.tagName === 'IMG';
59
- if (!isImg && !isPlaceholder && !isArrow && !isMobile) {
60
- onClose();
61
- }
62
- }, [isMobile, onClose]);
63
- useEffect(() => {
64
- elementClosest(window);
65
- }, []);
66
43
  const swiperProps = useMemo(() => ({
67
44
  slidesPerView: 1,
68
45
  effect: 'fade',
@@ -71,7 +48,7 @@ const ImageViewer = () => {
71
48
  },
72
49
  className: cn(styles.swiper, {
73
50
  [styles.hidden]: fullScreen && !isVideo(currentImage?.src),
74
- [styles.fullScreenVideo]: fullScreen && !singleSlide && isVideo(currentImage?.src),
51
+ [styles.fullScreenVideo]: fullScreen && isVideo(currentImage?.src),
75
52
  [styles.mobile]: isMobile,
76
53
  [styles.mobileVideo]: isMobile && isVideo(currentImage?.src),
77
54
  }),
@@ -87,21 +64,19 @@ const ImageViewer = () => {
87
64
  }), [
88
65
  fullScreen,
89
66
  currentImage?.src,
90
- singleSlide,
91
67
  isMobile,
92
68
  swiper,
93
69
  initialSlide,
94
70
  setSwiper,
95
71
  handleSlideChange,
96
72
  ]);
97
- const showControls = !singleSlide && !fullScreen && !isMobile && !!images.length;
73
+ const showControls = !fullScreen && !isMobile && !!images.length;
98
74
  const swiperWidth = swiper?.width || 1;
99
75
  const swiperHeight = swiper?.height || swiper?.width || 1;
100
76
  const swiperAspectRatio = swiperWidth / swiperHeight;
101
77
  return (
102
78
  /* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
103
79
  React.createElement("div", { className: cn(styles.component, {
104
- [styles.singleSlide]: singleSlide,
105
80
  [styles.mobile]: isMobile,
106
81
  [styles.mobileVideo]: isMobile && isVideo(currentImage?.src),
107
82
  }), onClick: handleWrapperClick },
@@ -119,7 +94,7 @@ const ImageViewer = () => {
119
94
  return (React.createElement(SwiperSlide, { key: getImageKey(image, index), style: {
120
95
  pointerEvents: slideVisible ? 'auto' : 'none',
121
96
  transitionProperty: 'opacity',
122
- } }, ({ isActive }) => (React.createElement(Slide, { isActive: isActive, swiperAspectRatio: swiperAspectRatio, image: image, swiperHeight: swiperHeight, meta: meta, index: index, imageAspectRatio: imageAspectRatio, slideVisible: slideVisible, handleLoad: handleLoad, handleLoadError: handleLoadError }))));
97
+ } }, ({ isActive }) => (React.createElement(Slide, { isActive: isActive, containerAspectRatio: swiperAspectRatio, image: image, containerHeight: swiperHeight, meta: meta, index: index, imageAspectRatio: imageAspectRatio, slideVisible: slideVisible, handleLoad: handleLoad, handleLoadError: handleLoadError }))));
123
98
  })),
124
99
  showControls && (React.createElement("div", { className: cn(styles.arrow, {
125
100
  [styles.focused]: rightArrowFocused,
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { MouseEventHandler, SyntheticEvent } from 'react';
3
+ declare const useHandleImageViewer: () => {
4
+ handleLoad: (event: SyntheticEvent<HTMLImageElement>, index: number) => void;
5
+ handleLoadError: (index: number) => void;
6
+ handleWrapperClick: MouseEventHandler<Element>;
7
+ isMobile: boolean;
8
+ leftArrowRef: import("react").RefObject<HTMLDivElement>;
9
+ rightArrowRef: import("react").RefObject<HTMLDivElement>;
10
+ };
11
+ export { useHandleImageViewer };
@@ -0,0 +1,42 @@
1
+ import { useContext, useRef, useCallback, useEffect } from 'react';
2
+ import elementClosest from 'element-closest';
3
+ import { GalleryContext } from '../../context.js';
4
+ import styles from './index.module.css';
5
+
6
+ const useHandleImageViewer = () => {
7
+ const { view, onClose, setImageMeta } = useContext(GalleryContext);
8
+ const leftArrowRef = useRef(null);
9
+ const rightArrowRef = useRef(null);
10
+ const isMobile = view === 'mobile';
11
+ const handleLoad = (event, index) => {
12
+ const target = event.currentTarget;
13
+ const { naturalWidth, naturalHeight } = target;
14
+ setImageMeta({ width: naturalWidth, height: naturalHeight }, index);
15
+ };
16
+ const handleLoadError = (index) => {
17
+ setImageMeta({ width: 0, height: 0, broken: true }, index);
18
+ };
19
+ const handleWrapperClick = useCallback((event) => {
20
+ const eventTarget = event.target;
21
+ const isArrow = leftArrowRef.current?.contains(eventTarget) ||
22
+ rightArrowRef.current?.contains(eventTarget);
23
+ const isPlaceholder = Boolean(eventTarget.closest(`.${styles.placeholder}`));
24
+ const isImg = eventTarget.tagName === 'IMG';
25
+ if (!isImg && !isPlaceholder && !isArrow && !isMobile) {
26
+ onClose();
27
+ }
28
+ }, [isMobile, onClose]);
29
+ useEffect(() => {
30
+ elementClosest(window);
31
+ }, []);
32
+ return {
33
+ handleLoad,
34
+ handleLoadError,
35
+ handleWrapperClick,
36
+ isMobile,
37
+ leftArrowRef,
38
+ rightArrowRef,
39
+ };
40
+ };
41
+
42
+ export { useHandleImageViewer };
@@ -26,17 +26,22 @@
26
26
  max-height: 100vh;
27
27
  }
28
28
 
29
- .singleSlide .swiper {
29
+ .singleSlideContainer {
30
+ display: flex;
31
+ width: 100%;
32
+ height: 100%;
33
+
30
34
  max-height: calc(100vh - 80px);
31
- padding: var(--gap-32)
35
+ padding: var(--gap-32);
36
+ box-sizing: border-box
32
37
  }
33
38
 
34
- .singleSlide .swiper.mobile {
39
+ .singleSlideContainer.mobile {
35
40
  max-height: calc(100vh - 174px);
36
41
  padding: 0;
37
42
  }
38
43
 
39
- .singleSlide .swiper.mobileVideo {
44
+ .singleSlideContainer.mobileVideo {
40
45
  max-height: 100vh;
41
46
  }
42
47
 
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const Single: FC;
3
+ export { Single };
@@ -0,0 +1,31 @@
1
+ import React, { useContext, useRef } from 'react';
2
+ import cn from 'classnames';
3
+ import { GalleryContext } from '../../context.js';
4
+ import { isVideo, getImageAlt } from '../../utils/utils.js';
5
+ import { useHandleImageViewer } from './hooks.js';
6
+ import { Slide } from './slide.js';
7
+ import styles from './index.module.css';
8
+
9
+ const Single = () => {
10
+ const { fullScreen, currentSlideIndex, getCurrentImage, getCurrentImageMeta } = useContext(GalleryContext);
11
+ const { handleLoad, handleLoadError, handleWrapperClick, isMobile } = useHandleImageViewer();
12
+ const wrapperRef = useRef(null);
13
+ const currentImage = getCurrentImage();
14
+ const currentImageMeta = getCurrentImageMeta();
15
+ if (!currentImage)
16
+ return null;
17
+ const imageWidth = currentImageMeta?.width || 1;
18
+ const imageHeight = currentImageMeta?.height || 1;
19
+ const imageAspectRatio = imageWidth / imageHeight;
20
+ const wrapperRect = wrapperRef.current?.getBoundingClientRect();
21
+ const wrapperAspectRatio = (wrapperRect?.width || 1) / (wrapperRect?.height || 1);
22
+ return (
23
+ /* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
24
+ React.createElement("div", { className: styles.component, onClick: handleWrapperClick }, fullScreen && !isVideo(currentImage?.src) ? (React.createElement("img", { src: currentImage?.src, alt: currentImage ? getImageAlt(currentImage, currentSlideIndex) : '', className: styles.fullScreenImage })) : (React.createElement("div", { className: cn(styles.singleSlideContainer, {
25
+ [styles.mobile]: isMobile,
26
+ [styles.mobileVideo]: isMobile && isVideo(currentImage?.src),
27
+ }), ref: wrapperRef },
28
+ React.createElement(Slide, { isActive: true, containerAspectRatio: wrapperAspectRatio, image: currentImage, containerHeight: wrapperRect?.height || 0, meta: currentImageMeta, index: 0, imageAspectRatio: imageAspectRatio, slideVisible: true, handleLoad: handleLoad, handleLoadError: handleLoadError })))));
29
+ };
30
+
31
+ export { Single };
@@ -4,10 +4,10 @@ type SlideProps = {
4
4
  isActive: boolean;
5
5
  image: GalleryImage;
6
6
  meta?: ImageMeta;
7
- swiperAspectRatio: number;
7
+ containerAspectRatio: number;
8
8
  imageAspectRatio: number;
9
9
  index: number;
10
- swiperHeight: number;
10
+ containerHeight: number;
11
11
  slideVisible: boolean;
12
12
  handleLoad: (event: SyntheticEvent<HTMLImageElement>, index: number) => void;
13
13
  handleLoadError: (index: number) => void;
@@ -20,12 +20,12 @@ const SlideInner = ({ children, broken, loading, withPlaceholder, isVideoView, }
20
20
  isVideoView ? 'видео' : 'изображение'))) : (children);
21
21
  return (React.createElement("div", { className: cn(styles.slide, { [styles.slideLoading]: loading }) }, withPlaceholder ? React.createElement("div", { className: styles.placeholder }, content) : content));
22
22
  };
23
- const Slide = ({ isActive, meta, swiperAspectRatio, imageAspectRatio, image, index, swiperHeight, slideVisible, handleLoad, handleLoadError, }) => {
23
+ const Slide = ({ isActive, meta, containerAspectRatio, imageAspectRatio, image, index, containerHeight, slideVisible, handleLoad, handleLoadError, }) => {
24
24
  const { view } = useContext(GalleryContext);
25
25
  const broken = Boolean(meta?.broken);
26
26
  const small = isSmallImage(meta);
27
- const verticalImageFit = !small && swiperAspectRatio > imageAspectRatio;
28
- const horizontalImageFit = !small && swiperAspectRatio <= imageAspectRatio;
27
+ const verticalImageFit = !small && containerAspectRatio > imageAspectRatio;
28
+ const horizontalImageFit = !small && containerAspectRatio <= imageAspectRatio;
29
29
  if (isVideo(image.src)) {
30
30
  return (React.createElement(SlideInner, { isVideoView: true, active: isActive, broken: broken, withPlaceholder: broken, loading: !meta },
31
31
  React.createElement(Video, { url: image.src, index: index, isActive: isActive })));
@@ -38,7 +38,7 @@ const Slide = ({ isActive, meta, swiperAspectRatio, imageAspectRatio, image, ind
38
38
  [styles.verticalImageFit]: verticalImageFit,
39
39
  [styles.horizontalImageFit]: horizontalImageFit,
40
40
  }), onLoad: (event) => handleLoad(event, index), onError: () => handleLoadError(index), style: {
41
- maxHeight: `${swiperHeight}px`,
41
+ maxHeight: `${containerHeight}px`,
42
42
  }, "data-test-id": slideVisible ? TestIds.ACTIVE_IMAGE : undefined })));
43
43
  };
44
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-gallery",
3
- "version": "5.10.0",
3
+ "version": "5.10.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,9 +14,10 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-base-modal": "^5.8.3",
18
- "@alfalab/core-components-icon-button": "^6.11.0",
19
- "@alfalab/core-components-tooltip": "^7.7.1",
17
+ "@alfalab/core-components-base-modal": "^5.8.4",
18
+ "@alfalab/core-components-icon-button": "^6.11.1",
19
+ "@alfalab/core-components-mq": "^4.3.0",
20
+ "@alfalab/core-components-tooltip": "^7.7.2",
20
21
  "@alfalab/core-components-typography": "^4.10.2",
21
22
  "@alfalab/hooks": "^1.13.0",
22
23
  "@alfalab/icons-glyph": "^2.139.0",
package/src/Component.tsx CHANGED
@@ -3,8 +3,9 @@ import cn from 'classnames';
3
3
  import SwiperCore from 'swiper';
4
4
 
5
5
  import { BaseModal } from '@alfalab/core-components-base-modal';
6
- import { useMedia } from '@alfalab/hooks';
6
+ import { useIsDesktop } from '@alfalab/core-components-mq';
7
7
 
8
+ import { Single } from './components/image-viewer/single';
8
9
  import { Header, HeaderMobile, ImageViewer, InfoBar, NavigationBar } from './components';
9
10
  import { GalleryContext } from './context';
10
11
  import { GalleryImage, ImageMeta } from './types';
@@ -85,15 +86,7 @@ export const Gallery: FC<GalleryProps> = ({
85
86
  const [playingVideo, setPlayingVideo] = useState<boolean>(DEFAULT_PLAYING_VIDEO);
86
87
  const [hideNavigation, setHideNavigation] = useState<boolean>(DEFAULT_HIDE_NAVIGATION);
87
88
 
88
- const [view] = useMedia<'desktop' | 'mobile'>(
89
- [
90
- ['mobile', '(max-width: 1023px)'],
91
- ['desktop', '(min-width: 1024px)'],
92
- ],
93
- 'desktop',
94
- );
95
-
96
- const isMobile = view === 'mobile';
89
+ const isDesktop = useIsDesktop();
97
90
 
98
91
  const isCurrentVideo = !!imagesMeta[currentSlideIndex]?.player?.current;
99
92
 
@@ -205,7 +198,7 @@ export const Gallery: FC<GalleryProps> = ({
205
198
 
206
199
  // eslint-disable-next-line react/jsx-no-constructed-context-values
207
200
  const galleryContext: GalleryContext = {
208
- view,
201
+ view: isDesktop ? 'desktop' : 'mobile',
209
202
  singleSlide,
210
203
  currentSlideIndex,
211
204
  images,
@@ -241,16 +234,16 @@ export const Gallery: FC<GalleryProps> = ({
241
234
  onUnmount={onUnmount}
242
235
  >
243
236
  <div className={styles.container}>
244
- {view === 'desktop' ? <Header /> : <HeaderMobile />}
245
- <ImageViewer />
237
+ {isDesktop ? <Header /> : <HeaderMobile />}
238
+ {images.length === 1 ? <Single /> : <ImageViewer />}
246
239
  <nav
247
240
  className={cn({
248
- [styles.navigationVideo]: isCurrentVideo && isMobile,
249
- [styles.hideNavigation]: hideNavigation && isMobile,
241
+ [styles.navigationVideo]: isCurrentVideo && !isDesktop,
242
+ [styles.hideNavigation]: hideNavigation && !isDesktop,
250
243
  })}
251
244
  >
252
245
  {showNavigationBar && <NavigationBar />}
253
- {view === 'mobile' && <InfoBar />}
246
+ {!isDesktop && <InfoBar />}
254
247
  </nav>
255
248
  </div>
256
249
  </BaseModal>