@alfalab/core-components-gallery 5.5.1 → 5.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/Component.js +1 -24
  2. package/{buttons-3eea9a13.js → buttons-953b5ccb.js} +1 -1
  3. package/components/header/Component.js +1 -10
  4. package/components/header/buttons.js +1 -1
  5. package/components/header/index.css +6 -6
  6. package/components/header/index.js +0 -15
  7. package/components/header-info-block/Component.js +1 -1
  8. package/components/header-info-block/index.css +5 -5
  9. package/components/header-info-block/index.js +0 -3
  10. package/components/image-preview/Component.js +15 -4
  11. package/components/image-preview/index.css +22 -17
  12. package/components/image-preview/index.js +0 -5
  13. package/components/image-viewer/component.js +1 -3
  14. package/components/image-viewer/index.css +19 -19
  15. package/components/image-viewer/index.js +0 -16
  16. package/components/image-viewer/slide.js +1 -1
  17. package/components/index.js +0 -26
  18. package/components/navigation-bar/Component.js +1 -4
  19. package/components/navigation-bar/index.css +6 -6
  20. package/components/navigation-bar/index.js +0 -8
  21. package/cssm/Component.js +0 -27
  22. package/cssm/components/header/Component.js +0 -10
  23. package/cssm/components/header/index.js +0 -17
  24. package/cssm/components/header-info-block/index.js +0 -4
  25. package/cssm/components/image-preview/Component.js +18 -3
  26. package/cssm/components/image-preview/index.js +0 -6
  27. package/cssm/components/image-preview/index.module.css +10 -5
  28. package/cssm/components/image-viewer/component.js +0 -2
  29. package/cssm/components/image-viewer/index.js +0 -17
  30. package/cssm/components/index.js +0 -31
  31. package/cssm/components/navigation-bar/Component.js +0 -4
  32. package/cssm/components/navigation-bar/index.js +0 -10
  33. package/cssm/index.js +0 -34
  34. package/esm/Component.js +1 -24
  35. package/esm/{buttons-a2db485e.js → buttons-d5829659.js} +1 -1
  36. package/esm/components/header/Component.js +1 -10
  37. package/esm/components/header/buttons.js +1 -1
  38. package/esm/components/header/index.css +6 -6
  39. package/esm/components/header/index.js +0 -15
  40. package/esm/components/header-info-block/Component.js +1 -1
  41. package/esm/components/header-info-block/index.css +5 -5
  42. package/esm/components/header-info-block/index.js +0 -3
  43. package/esm/components/image-preview/Component.js +15 -4
  44. package/esm/components/image-preview/index.css +22 -17
  45. package/esm/components/image-preview/index.js +0 -5
  46. package/esm/components/image-viewer/component.js +1 -3
  47. package/esm/components/image-viewer/index.css +19 -19
  48. package/esm/components/image-viewer/index.js +0 -16
  49. package/esm/components/image-viewer/slide.js +1 -1
  50. package/esm/components/index.js +0 -26
  51. package/esm/components/navigation-bar/Component.js +1 -4
  52. package/esm/components/navigation-bar/index.css +6 -6
  53. package/esm/components/navigation-bar/index.js +0 -8
  54. package/esm/index.css +3 -3
  55. package/esm/index.js +0 -28
  56. package/esm/{slide-38e77458.js → slide-238aa9d5.js} +1 -1
  57. package/index.css +3 -3
  58. package/index.js +0 -28
  59. package/modern/Component.js +1 -23
  60. package/modern/{buttons-c885c63e.js → buttons-589e9203.js} +1 -1
  61. package/modern/components/header/Component.js +1 -9
  62. package/modern/components/header/buttons.js +1 -1
  63. package/modern/components/header/index.css +6 -6
  64. package/modern/components/header/index.js +0 -14
  65. package/modern/components/header-info-block/Component.js +1 -1
  66. package/modern/components/header-info-block/index.css +5 -5
  67. package/modern/components/header-info-block/index.js +0 -3
  68. package/modern/components/image-preview/Component.js +14 -4
  69. package/modern/components/image-preview/index.css +22 -17
  70. package/modern/components/image-preview/index.js +0 -5
  71. package/modern/components/image-viewer/component.js +1 -3
  72. package/modern/components/image-viewer/index.css +19 -19
  73. package/modern/components/image-viewer/index.js +0 -15
  74. package/modern/components/image-viewer/slide.js +1 -1
  75. package/modern/components/index.js +0 -25
  76. package/modern/components/navigation-bar/Component.js +1 -4
  77. package/modern/components/navigation-bar/index.css +6 -6
  78. package/modern/components/navigation-bar/index.js +0 -8
  79. package/modern/index.css +3 -3
  80. package/modern/index.js +0 -27
  81. package/modern/{slide-5893b8ab.js → slide-06104519.js} +1 -1
  82. package/package.json +4 -4
  83. package/{slide-cde21399.js → slide-8faca603.js} +1 -1
  84. package/src/components/image-preview/Component.tsx +4 -3
  85. package/src/components/image-preview/index.module.css +11 -4
  86. /package/{buttons-3eea9a13.d.ts → buttons-953b5ccb.d.ts} +0 -0
  87. /package/esm/{buttons-a2db485e.d.ts → buttons-d5829659.d.ts} +0 -0
  88. /package/esm/{slide-38e77458.d.ts → slide-238aa9d5.d.ts} +0 -0
  89. /package/modern/{buttons-c885c63e.d.ts → buttons-589e9203.d.ts} +0 -0
  90. /package/modern/{slide-5893b8ab.d.ts → slide-06104519.d.ts} +0 -0
  91. /package/{slide-cde21399.d.ts → slide-8faca603.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- /* hash: 76qci */
1
+ /* hash: 11f48 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -27,13 +27,13 @@
27
27
  } :root {
28
28
  } :root {
29
29
  --focus-color: var(--color-light-border-link);
30
- } .gallery__component_y8qao {
30
+ } .gallery__component_10yrs {
31
31
  display: flex;
32
32
  flex-grow: 1;
33
33
  justify-content: center;
34
34
  align-items: center;
35
35
  background-color: var(--color-static-bg-primary-dark);
36
- } .gallery__swiper_y8qao {
36
+ } .gallery__swiper_10yrs {
37
37
  display: flex;
38
38
  width: 100%;
39
39
  height: 100%;
@@ -42,42 +42,42 @@
42
42
  max-height: calc(100vh - 168px);
43
43
  padding: var(--gap-2xl) var(--gap-m);
44
44
  box-sizing: border-box;
45
- } .gallery__singleSlide_y8qao .gallery__swiper_y8qao {
45
+ } .gallery__singleSlide_10yrs .gallery__swiper_10yrs {
46
46
  max-height: calc(100vh - 80px);
47
47
  padding: var(--gap-2xl);
48
- } .gallery__hidden_y8qao {
48
+ } .gallery__hidden_10yrs {
49
49
  display: none;
50
- } .gallery__slide_y8qao {
50
+ } .gallery__slide_10yrs {
51
51
  position: relative;
52
52
  display: flex;
53
53
  justify-content: center;
54
54
  align-items: center;
55
55
  width: 100%;
56
56
  height: 100%;
57
- } .gallery__slideLoading_y8qao {
57
+ } .gallery__slideLoading_10yrs {
58
58
  background-color: var(--color-static-bg-secondary-dark);
59
59
  border-radius: var(--border-radius-m);
60
- } .gallery__image_y8qao {
60
+ } .gallery__image_10yrs {
61
61
  width: 0;
62
62
  height: 0;
63
63
  -webkit-user-select: none;
64
64
  user-select: none;
65
65
  background-color: var(--color-light-bg-primary);
66
66
  border-radius: var(--border-radius-m);
67
- } .gallery__smallImage_y8qao {
67
+ } .gallery__smallImage_10yrs {
68
68
  position: relative;
69
69
  width: auto;
70
70
  height: auto;
71
71
  -webkit-user-select: none;
72
72
  user-select: none;
73
73
  background-color: var(--color-light-bg-primary);
74
- } .gallery__verticalImageFit_y8qao {
74
+ } .gallery__verticalImageFit_10yrs {
75
75
  width: auto;
76
76
  height: 100%;
77
- } .gallery__horizontalImageFit_y8qao {
77
+ } .gallery__horizontalImageFit_10yrs {
78
78
  width: 100%;
79
79
  height: auto;
80
- } .gallery__arrow_y8qao {
80
+ } .gallery__arrow_10yrs {
81
81
  display: flex;
82
82
  flex-direction: column;
83
83
  justify-content: center;
@@ -89,14 +89,14 @@
89
89
  color: var(--color-static-graphic-light);
90
90
  transition: background-color 0.15s ease-in-out;
91
91
  outline: none
92
- } .gallery__arrow_y8qao:hover {
92
+ } .gallery__arrow_10yrs:hover {
93
93
  background-color: var(--color-static-bg-primary-dark-tint-15);
94
- } .gallery__arrow_y8qao:active {
94
+ } .gallery__arrow_10yrs:active {
95
95
  background-color: var(--color-static-bg-primary-dark-tint-20);
96
- } .gallery__focused_y8qao {
96
+ } .gallery__focused_10yrs {
97
97
  outline: 2px solid var(--focus-color);
98
98
  outline-offset: 2px;
99
- } .gallery__placeholder_y8qao {
99
+ } .gallery__placeholder_10yrs {
100
100
  display: flex;
101
101
  justify-content: center;
102
102
  align-items: center;
@@ -104,18 +104,18 @@
104
104
  height: 300px;
105
105
  border-radius: var(--border-radius-m);
106
106
  background-color: var(--color-static-bg-quaternary-dark);
107
- } .gallery__brokenImgWrapper_y8qao {
107
+ } .gallery__brokenImgWrapper_10yrs {
108
108
  position: relative;
109
109
  display: flex;
110
110
  flex-direction: column;
111
111
  align-items: center;
112
112
  width: 150px;
113
113
  text-align: center;
114
- } .gallery__brokenImgIcon_y8qao {
114
+ } .gallery__brokenImgIcon_10yrs {
115
115
  width: 80px;
116
116
  height: 80px;
117
117
  margin-bottom: var(--gap-2xs);
118
- } .gallery__fullScreenImage_y8qao {
118
+ } .gallery__fullScreenImage_10yrs {
119
119
  width: 100%;
120
120
  height: auto;
121
121
  background-color: var(--color-light-bg-primary);
@@ -1,17 +1 @@
1
1
  export { ImageViewer } from './component.js';
2
- import 'tslib';
3
- import 'react';
4
- import 'classnames';
5
- import 'element-closest';
6
- import 'swiper';
7
- import 'swiper/react';
8
- import '@alfalab/hooks';
9
- import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
10
- import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
11
- import '../../context.js';
12
- import '../../utils/utils.js';
13
- import '../../utils/constants.js';
14
- import '../../slide-38e77458.js';
15
- import '@alfalab/core-components-typography/esm';
16
- import './paths.js';
17
- import 'swiper/swiper.min.css';
@@ -4,4 +4,4 @@ import '@alfalab/core-components-typography/esm';
4
4
  import '../../utils/utils.js';
5
5
  import '../../utils/constants.js';
6
6
  import './paths.js';
7
- export { S as Slide } from '../../slide-38e77458.js';
7
+ export { S as Slide } from '../../slide-238aa9d5.js';
@@ -2,29 +2,3 @@ export { NavigationBar } from './navigation-bar/Component.js';
2
2
  export { Header } from './header/Component.js';
3
3
  export { ImagePreview } from './image-preview/Component.js';
4
4
  export { ImageViewer } from './image-viewer/component.js';
5
- import 'react';
6
- import '../context.js';
7
- import '../utils/utils.js';
8
- import '../utils/constants.js';
9
- import './header-info-block/Component.js';
10
- import '@alfalab/core-components-typography/esm';
11
- import '../utils/split-filename.js';
12
- import '../buttons-a2db485e.js';
13
- import 'tslib';
14
- import '@alfalab/core-components-icon-button/esm';
15
- import '@alfalab/core-components-tooltip/esm/desktop';
16
- import '@alfalab/icons-glyph/ArrowsInwardMIcon';
17
- import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
18
- import '@alfalab/icons-glyph/CrossMIcon';
19
- import '@alfalab/icons-glyph/PointerDownMIcon';
20
- import 'classnames';
21
- import '@alfalab/hooks';
22
- import './image-preview/paths.js';
23
- import 'element-closest';
24
- import 'swiper';
25
- import 'swiper/react';
26
- import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
27
- import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
28
- import '../slide-38e77458.js';
29
- import './image-viewer/paths.js';
30
- import 'swiper/swiper.min.css';
@@ -3,11 +3,8 @@ import { GalleryContext } from '../../context.js';
3
3
  import { getImageKey } from '../../utils/utils.js';
4
4
  import { TestIds } from '../../utils/constants.js';
5
5
  import { ImagePreview } from '../image-preview/Component.js';
6
- import 'classnames';
7
- import '@alfalab/hooks';
8
- import '../image-preview/paths.js';
9
6
 
10
- var styles = {"component":"gallery__component_bba33","preview":"gallery__preview_bba33"};
7
+ var styles = {"component":"gallery__component_b8ex7","preview":"gallery__preview_b8ex7"};
11
8
  require('./index.css')
12
9
 
13
10
  var MIN_SCROLL_STEP = 24;
@@ -1,4 +1,4 @@
1
- /* hash: rpcvk */
1
+ /* hash: gz550 */
2
2
  :root {
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 */
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 */
@@ -16,7 +16,7 @@
16
16
  --gap-xl: 24px;
17
17
  } :root {
18
18
  } :root {
19
- } .gallery__component_bba33 {
19
+ } .gallery__component_b8ex7 {
20
20
  display: flex;
21
21
  flex-wrap: nowrap;
22
22
  align-content: center;
@@ -26,13 +26,13 @@
26
26
  box-sizing: border-box;
27
27
  padding: 10px var(--gap-xl);
28
28
  scrollbar-width: none
29
- } .gallery__component_bba33::-webkit-scrollbar {
29
+ } .gallery__component_b8ex7::-webkit-scrollbar {
30
30
  display: none;
31
- } .gallery__preview_bba33 {
31
+ } .gallery__preview_b8ex7 {
32
32
  flex-shrink: 0;
33
33
  margin: 0 var(--gap-3xs)
34
- } .gallery__preview_bba33:first-child {
34
+ } .gallery__preview_b8ex7:first-child {
35
35
  margin-left: auto;
36
- } .gallery__preview_bba33:last-child {
36
+ } .gallery__preview_b8ex7:last-child {
37
37
  margin-right: auto;
38
38
  }
@@ -1,9 +1 @@
1
1
  export { NavigationBar } from './Component.js';
2
- import 'react';
3
- import '../../context.js';
4
- import '../../utils/utils.js';
5
- import '../../utils/constants.js';
6
- import '../image-preview/Component.js';
7
- import 'classnames';
8
- import '@alfalab/hooks';
9
- import '../image-preview/paths.js';
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: iy0cr */
1
+ /* hash: 2pt6q */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-static-bg-primary-dark: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,14 +15,14 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .gallery__container_1t8yq {
18
+ } .gallery__container_18nw1 {
19
19
  display: flex;
20
20
  flex-direction: column;
21
21
  justify-content: space-between;
22
22
  height: 100%;
23
23
  width: 100%;
24
24
  background-color: var(--color-static-bg-primary-dark);
25
- } .gallery__modal_1t8yq {
25
+ } .gallery__modal_18nw1 {
26
26
  flex-grow: 1;
27
27
  width: 100%;
28
28
  height: 100%;
package/esm/index.js CHANGED
@@ -2,31 +2,3 @@ export { Gallery } from './Component.js';
2
2
  export { splitFilename } from './utils/split-filename.js';
3
3
  export { PLACEHOLDER_HEIGHT, PLACEHOLDER_WIDTH, getImageAlt, getImageKey, isSmallImage } from './utils/utils.js';
4
4
  export { TestIds } from './utils/constants.js';
5
- import 'react';
6
- import '@alfalab/core-components-base-modal/esm';
7
- import './components/navigation-bar/Component.js';
8
- import './context.js';
9
- import './components/image-preview/Component.js';
10
- import 'classnames';
11
- import '@alfalab/hooks';
12
- import './components/image-preview/paths.js';
13
- import './components/header/Component.js';
14
- import './components/header-info-block/Component.js';
15
- import '@alfalab/core-components-typography/esm';
16
- import './buttons-a2db485e.js';
17
- import 'tslib';
18
- import '@alfalab/core-components-icon-button/esm';
19
- import '@alfalab/core-components-tooltip/esm/desktop';
20
- import '@alfalab/icons-glyph/ArrowsInwardMIcon';
21
- import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
22
- import '@alfalab/icons-glyph/CrossMIcon';
23
- import '@alfalab/icons-glyph/PointerDownMIcon';
24
- import './components/image-viewer/component.js';
25
- import 'element-closest';
26
- import 'swiper';
27
- import 'swiper/react';
28
- import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
29
- import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
30
- import './slide-38e77458.js';
31
- import './components/image-viewer/paths.js';
32
- import 'swiper/swiper.min.css';
@@ -5,7 +5,7 @@ import { isSmallImage, getImageAlt } from './utils/utils.js';
5
5
  import { TestIds } from './utils/constants.js';
6
6
  import { NoImagePaths } from './components/image-viewer/paths.js';
7
7
 
8
- var styles = {"component":"gallery__component_y8qao","swiper":"gallery__swiper_y8qao","singleSlide":"gallery__singleSlide_y8qao","hidden":"gallery__hidden_y8qao","slide":"gallery__slide_y8qao","slideLoading":"gallery__slideLoading_y8qao","image":"gallery__image_y8qao","smallImage":"gallery__smallImage_y8qao","verticalImageFit":"gallery__verticalImageFit_y8qao","horizontalImageFit":"gallery__horizontalImageFit_y8qao","arrow":"gallery__arrow_y8qao","focused":"gallery__focused_y8qao","placeholder":"gallery__placeholder_y8qao","brokenImgWrapper":"gallery__brokenImgWrapper_y8qao","brokenImgIcon":"gallery__brokenImgIcon_y8qao","fullScreenImage":"gallery__fullScreenImage_y8qao"};
8
+ var styles = {"component":"gallery__component_10yrs","swiper":"gallery__swiper_10yrs","singleSlide":"gallery__singleSlide_10yrs","hidden":"gallery__hidden_10yrs","slide":"gallery__slide_10yrs","slideLoading":"gallery__slideLoading_10yrs","image":"gallery__image_10yrs","smallImage":"gallery__smallImage_10yrs","verticalImageFit":"gallery__verticalImageFit_10yrs","horizontalImageFit":"gallery__horizontalImageFit_10yrs","arrow":"gallery__arrow_10yrs","focused":"gallery__focused_10yrs","placeholder":"gallery__placeholder_10yrs","brokenImgWrapper":"gallery__brokenImgWrapper_10yrs","brokenImgIcon":"gallery__brokenImgIcon_10yrs","fullScreenImage":"gallery__fullScreenImage_10yrs"};
9
9
  require('./components/image-viewer/index.css')
10
10
 
11
11
  var SlideInner = function (_a) {
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: iy0cr */
1
+ /* hash: 2pt6q */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-static-bg-primary-dark: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,14 +15,14 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .gallery__container_1t8yq {
18
+ } .gallery__container_18nw1 {
19
19
  display: flex;
20
20
  flex-direction: column;
21
21
  justify-content: space-between;
22
22
  height: 100%;
23
23
  width: 100%;
24
24
  background-color: var(--color-static-bg-primary-dark);
25
- } .gallery__modal_1t8yq {
25
+ } .gallery__modal_18nw1 {
26
26
  flex-grow: 1;
27
27
  width: 100%;
28
28
  height: 100%;
package/index.js CHANGED
@@ -6,34 +6,6 @@ var Component = require('./Component.js');
6
6
  var utils_splitFilename = require('./utils/split-filename.js');
7
7
  var utils_utils = require('./utils/utils.js');
8
8
  var utils_constants = require('./utils/constants.js');
9
- require('react');
10
- require('@alfalab/core-components-base-modal');
11
- require('./components/navigation-bar/Component.js');
12
- require('./context.js');
13
- require('./components/image-preview/Component.js');
14
- require('classnames');
15
- require('@alfalab/hooks');
16
- require('./components/image-preview/paths.js');
17
- require('./components/header/Component.js');
18
- require('./components/header-info-block/Component.js');
19
- require('@alfalab/core-components-typography');
20
- require('./buttons-3eea9a13.js');
21
- require('tslib');
22
- require('@alfalab/core-components-icon-button');
23
- require('@alfalab/core-components-tooltip/desktop');
24
- require('@alfalab/icons-glyph/ArrowsInwardMIcon');
25
- require('@alfalab/icons-glyph/ArrowsOutwardMIcon');
26
- require('@alfalab/icons-glyph/CrossMIcon');
27
- require('@alfalab/icons-glyph/PointerDownMIcon');
28
- require('./components/image-viewer/component.js');
29
- require('element-closest');
30
- require('swiper');
31
- require('swiper/react');
32
- require('@alfalab/icons-glyph/ChevronBackHeavyMIcon');
33
- require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
34
- require('./slide-cde21399.js');
35
- require('./components/image-viewer/paths.js');
36
- require('swiper/swiper.min.css');
37
9
 
38
10
 
39
11
 
@@ -6,30 +6,8 @@ import 'classnames';
6
6
  import '@alfalab/hooks';
7
7
  import { GalleryContext } from './context.js';
8
8
  import { ImageViewer } from './components/image-viewer/component.js';
9
- import './utils/utils.js';
10
- import './utils/constants.js';
11
- import './components/image-preview/Component.js';
12
- import './components/image-preview/paths.js';
13
- import './components/header-info-block/Component.js';
14
- import '@alfalab/core-components-typography/modern';
15
- import './utils/split-filename.js';
16
- import './buttons-c885c63e.js';
17
- import '@alfalab/core-components-icon-button/modern';
18
- import '@alfalab/core-components-tooltip/modern/desktop';
19
- import '@alfalab/icons-glyph/ArrowsInwardMIcon';
20
- import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
21
- import '@alfalab/icons-glyph/CrossMIcon';
22
- import '@alfalab/icons-glyph/PointerDownMIcon';
23
- import 'element-closest';
24
- import 'swiper';
25
- import 'swiper/react';
26
- import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
27
- import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
28
- import './slide-5893b8ab.js';
29
- import './components/image-viewer/paths.js';
30
- import 'swiper/swiper.min.css';
31
9
 
32
- const styles = {"container":"gallery__container_1t8yq","modal":"gallery__modal_1t8yq"};
10
+ const styles = {"container":"gallery__container_18nw1","modal":"gallery__modal_18nw1"};
33
11
  require('./index.css')
34
12
 
35
13
  const Backdrop = () => null;
@@ -6,7 +6,7 @@ import { ArrowsOutwardMIcon } from '@alfalab/icons-glyph/ArrowsOutwardMIcon';
6
6
  import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
7
7
  import { PointerDownMIcon } from '@alfalab/icons-glyph/PointerDownMIcon';
8
8
 
9
- const styles = {"header":"gallery__header_hxiy9","buttons":"gallery__buttons_hxiy9","iconButton":"gallery__iconButton_hxiy9"};
9
+ const styles = {"header":"gallery__header_zvfc6","buttons":"gallery__buttons_zvfc6","iconButton":"gallery__iconButton_zvfc6"};
10
10
  require('./components/header/index.css')
11
11
 
12
12
  const Fullscreen = ({ buttonRef, ...restProps }) => (React.createElement(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'] },
@@ -3,15 +3,7 @@ import { GalleryContext } from '../../context.js';
3
3
  import { isSmallImage } from '../../utils/utils.js';
4
4
  import { TestIds } from '../../utils/constants.js';
5
5
  import { HeaderInfoBlock } from '../header-info-block/Component.js';
6
- import { s as styles, D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-c885c63e.js';
7
- import '@alfalab/core-components-typography/modern';
8
- import '../../utils/split-filename.js';
9
- import '@alfalab/core-components-icon-button/modern';
10
- import '@alfalab/core-components-tooltip/modern/desktop';
11
- import '@alfalab/icons-glyph/ArrowsInwardMIcon';
12
- import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
13
- import '@alfalab/icons-glyph/CrossMIcon';
14
- import '@alfalab/icons-glyph/PointerDownMIcon';
6
+ import { s as styles, D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-589e9203.js';
15
7
 
16
8
  const Header = () => {
17
9
  const { currentSlideIndex, singleSlide, images, fullScreen, getCurrentImageMeta, getCurrentImage, setFullScreen, onClose, } = useContext(GalleryContext);
@@ -5,4 +5,4 @@ import '@alfalab/icons-glyph/ArrowsInwardMIcon';
5
5
  import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
6
6
  import '@alfalab/icons-glyph/CrossMIcon';
7
7
  import '@alfalab/icons-glyph/PointerDownMIcon';
8
- export { D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-c885c63e.js';
8
+ export { D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-589e9203.js';
@@ -1,4 +1,4 @@
1
- /* hash: 4r6hj */
1
+ /* hash: kym9p */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-static-graphic-light: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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,20 +20,20 @@
20
20
  --gap-2xl: 32px;
21
21
  } :root {
22
22
  } :root {
23
- } .gallery__header_hxiy9 {
23
+ } .gallery__header_zvfc6 {
24
24
  display: flex;
25
25
  justify-content: space-between;
26
26
  flex-shrink: 0;
27
27
  width: 100%;
28
28
  padding: var(--gap-m) var(--gap-xl);
29
29
  box-sizing: border-box;
30
- } .gallery__buttons_hxiy9 {
30
+ } .gallery__buttons_zvfc6 {
31
31
  display: flex;
32
32
  padding-left: var(--gap-2xl)
33
- } .gallery__buttons_hxiy9 path {
33
+ } .gallery__buttons_zvfc6 path {
34
34
  color: var(--color-static-graphic-light);
35
- } /* TODO: применять static цвет через prop IconButton'а */ .gallery__iconButton_hxiy9:hover path {
35
+ } /* TODO: применять static цвет через prop IconButton'а */ .gallery__iconButton_zvfc6:hover path {
36
36
  color: var(--color-static-graphic-light-shade-7);
37
- } .gallery__iconButton_hxiy9:active path {
37
+ } .gallery__iconButton_zvfc6:active path {
38
38
  color: var(--color-static-graphic-light-shade-15);
39
39
  }
@@ -1,15 +1 @@
1
1
  export { Header } from './Component.js';
2
- import 'react';
3
- import '../../context.js';
4
- import '../../utils/utils.js';
5
- import '../../utils/constants.js';
6
- import '../header-info-block/Component.js';
7
- import '@alfalab/core-components-typography/modern';
8
- import '../../utils/split-filename.js';
9
- import '../../buttons-c885c63e.js';
10
- import '@alfalab/core-components-icon-button/modern';
11
- import '@alfalab/core-components-tooltip/modern/desktop';
12
- import '@alfalab/icons-glyph/ArrowsInwardMIcon';
13
- import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
14
- import '@alfalab/icons-glyph/CrossMIcon';
15
- import '@alfalab/icons-glyph/PointerDownMIcon';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Typography } from '@alfalab/core-components-typography/modern';
3
3
  import { splitFilename } from '../../utils/split-filename.js';
4
4
 
5
- const styles = {"info":"gallery__info_wqmnu","filenameHead":"gallery__filenameHead_wqmnu","filenameContainer":"gallery__filenameContainer_wqmnu","description":"gallery__description_wqmnu"};
5
+ const styles = {"info":"gallery__info_wthtp","filenameHead":"gallery__filenameHead_wthtp","filenameContainer":"gallery__filenameContainer_wthtp","description":"gallery__description_wthtp"};
6
6
  require('./index.css')
7
7
 
8
8
  const HeaderInfoBlock = ({ filename, description }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1rgjz */
1
+ /* hash: 1b947 */
2
2
  :root {
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 */
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 */
@@ -15,21 +15,21 @@
15
15
  --gap-2xs: 4px;
16
16
  } :root {
17
17
  } :root {
18
- } .gallery__info_wqmnu {
18
+ } .gallery__info_wthtp {
19
19
  height: 100%;
20
20
  display: flex;
21
21
  flex-direction: column;
22
22
  justify-content: center;
23
23
  overflow: hidden;
24
- } .gallery__filenameHead_wqmnu {
24
+ } .gallery__filenameHead_wthtp {
25
25
  display: inline;
26
26
  text-overflow: ellipsis;
27
27
  overflow: hidden;
28
28
  white-space: nowrap;
29
- } .gallery__filenameContainer_wqmnu {
29
+ } .gallery__filenameContainer_wthtp {
30
30
  overflow: hidden;
31
31
  display: inline-flex;
32
- } .gallery__description_wqmnu {
32
+ } .gallery__description_wthtp {
33
33
  display: inline;
34
34
  text-overflow: ellipsis;
35
35
  overflow: hidden;
@@ -1,4 +1 @@
1
1
  export { HeaderInfoBlock } from './Component.js';
2
- import 'react';
3
- import '@alfalab/core-components-typography/modern';
4
- import '../../utils/split-filename.js';
@@ -1,10 +1,20 @@
1
1
  import React, { useContext, useRef } from 'react';
2
2
  import cn from 'classnames';
3
- import { useFocus } from '@alfalab/hooks';
3
+ import '@alfalab/core-components-base-modal/modern';
4
4
  import { GalleryContext } from '../../context.js';
5
+ import { getImageAlt } from '../../utils/utils.js';
6
+ import '@alfalab/core-components-typography/modern';
7
+ import '@alfalab/core-components-icon-button/modern';
8
+ import '@alfalab/core-components-tooltip/modern/desktop';
9
+ import '@alfalab/icons-glyph/ArrowsInwardMIcon';
10
+ import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
11
+ import '@alfalab/icons-glyph/CrossMIcon';
12
+ import '@alfalab/icons-glyph/PointerDownMIcon';
13
+ import '../image-viewer/component.js';
14
+ import { useFocus } from '@alfalab/hooks';
5
15
  import { NoImagePaths } from './paths.js';
6
16
 
7
- const styles = {"component":"gallery__component_1c4ti","active":"gallery__active_1c4ti","image":"gallery__image_1c4ti","preview":"gallery__preview_1c4ti","loading":"gallery__loading_1c4ti","brokenImageWrapper":"gallery__brokenImageWrapper_1c4ti","brokenIcon":"gallery__brokenIcon_1c4ti","focused":"gallery__focused_1c4ti"};
17
+ const styles = {"component":"gallery__component_1c7oo","active":"gallery__active_1c7oo","image":"gallery__image_1c7oo","preview":"gallery__preview_1c7oo","loading":"gallery__loading_1c7oo","brokenImageWrapper":"gallery__brokenImageWrapper_1c7oo","brokenIcon":"gallery__brokenIcon_1c7oo","focused":"gallery__focused_1c7oo"};
8
18
  require('./index.css')
9
19
 
10
20
  const ImagePreview = ({ image, active = false, index, onSelect, className }) => {
@@ -27,9 +37,9 @@ const ImagePreview = ({ image, active = false, index, onSelect, className }) =>
27
37
  React.createElement("rect", { width: '40', height: '40', fill: 'none' }),
28
38
  React.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: NoImagePaths.baseImage, fill: '#89898A' }),
29
39
  React.createElement("path", { d: NoImagePaths.triangleImage, fill: '#89898A' }))))) : (React.createElement("div", { className: cn(styles.preview, styles.image, {
30
- [styles.broken]: isBroken,
31
40
  [styles.loading]: !meta,
32
- }), style: { backgroundImage: `url(${image.src})` } }))));
41
+ }) },
42
+ React.createElement("img", { src: image.src, alt: getImageAlt(image, index) })))));
33
43
  };
34
44
 
35
45
  export { ImagePreview };
@@ -1,4 +1,4 @@
1
- /* hash: qubhd */
1
+ /* hash: amvp7 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -23,7 +23,7 @@
23
23
  } :root {
24
24
  } :root {
25
25
  --focus-color: var(--color-light-border-link);
26
- } .gallery__component_1c4ti {
26
+ } .gallery__component_1c7oo {
27
27
  display: flex;
28
28
  padding: var(--gap-2xs);
29
29
  border: 2px solid rgba(0, 0, 0, 0);
@@ -31,11 +31,11 @@
31
31
  overflow: hidden;
32
32
  transition: border 0.15s ease-in-out;
33
33
  outline: none;
34
- } .gallery__active_1c4ti {
34
+ } .gallery__active_1c7oo {
35
35
  border-color: var(--color-static-overlay-white-xhigh)
36
- } .gallery__active_1c4ti > .gallery__image_1c4ti {
36
+ } .gallery__active_1c7oo > .gallery__image_1c7oo {
37
37
  opacity: 0.7;
38
- } .gallery__preview_1c4ti {
38
+ } .gallery__preview_1c7oo {
39
39
  width: 56px;
40
40
  height: 56px;
41
41
  flex-shrink: 0;
@@ -43,29 +43,34 @@
43
43
  cursor: pointer;
44
44
  -webkit-user-select: none;
45
45
  user-select: none;
46
- } .gallery__image_1c4ti {
47
- background-color: var(--color-light-bg-primary);
48
- background-size: cover;
49
- background-repeat: no-repeat;
50
- background-position: center;
46
+ } .gallery__image_1c7oo {
51
47
  transition: opacity 0.15s ease-in-out
52
- } .gallery__image_1c4ti:hover {
48
+ } .gallery__image_1c7oo > img {
49
+ display: block;
50
+ background-color: var(--color-light-bg-primary);
51
+ width: 100%;
52
+ height: 100%;
53
+ border-radius: inherit;
54
+ object-fit: cover;
55
+ overflow: clip;
56
+ overflow-clip-margin: border-box;
57
+ } .gallery__image_1c7oo:hover {
53
58
  opacity: 0.7;
54
- } .gallery__loading_1c4ti {
59
+ } .gallery__loading_1c7oo {
55
60
  background-color: var(--color-static-bg-secondary-dark)
56
- } .gallery__loading_1c4ti .gallery__active_1c4ti {
61
+ } .gallery__loading_1c7oo .gallery__active_1c7oo {
57
62
  background-color: var(--color-static-bg-quaternary-dark);
58
- } .gallery__brokenImageWrapper_1c4ti {
63
+ } .gallery__brokenImageWrapper_1c7oo {
59
64
  display: flex;
60
65
  justify-content: center;
61
66
  align-items: center;
62
67
  background-color: var(--color-static-bg-quaternary-dark)
63
- } .gallery__brokenImageWrapper_1c4ti:hover {
68
+ } .gallery__brokenImageWrapper_1c7oo:hover {
64
69
  opacity: 0.7;
65
- } .gallery__brokenIcon_1c4ti {
70
+ } .gallery__brokenIcon_1c7oo {
66
71
  width: 40px;
67
72
  height: 40px;
68
- } .gallery__focused_1c4ti {
73
+ } .gallery__focused_1c7oo {
69
74
  outline: 2px solid var(--focus-color);
70
75
  outline-offset: 2px;
71
76
  }