@alfalab/core-components-gallery 5.1.19 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/Component.js +5 -3
  2. package/buttons-fc45def4.d.ts +11 -0
  3. package/buttons-fc45def4.js +37 -0
  4. package/components/header/Component.js +5 -6
  5. package/components/header/buttons.d.ts +0 -11
  6. package/components/header/buttons.js +14 -27
  7. package/components/header/index.css +14 -7
  8. package/components/header/index.js +3 -1
  9. package/components/header-info-block/Component.js +6 -4
  10. package/components/header-info-block/index.css +5 -5
  11. package/components/header-info-block/index.js +2 -0
  12. package/components/image-preview/Component.js +5 -3
  13. package/components/image-preview/index.css +22 -19
  14. package/components/image-preview/index.js +2 -0
  15. package/components/image-preview/paths.js +2 -0
  16. package/components/image-viewer/component.js +3 -1
  17. package/components/image-viewer/index.css +32 -31
  18. package/components/image-viewer/index.js +3 -1
  19. package/components/image-viewer/paths.js +2 -0
  20. package/components/image-viewer/slide.js +3 -1
  21. package/components/index.js +7 -5
  22. package/components/navigation-bar/Component.js +3 -1
  23. package/components/navigation-bar/index.css +7 -9
  24. package/components/navigation-bar/index.js +2 -0
  25. package/context.js +2 -0
  26. package/cssm/Component.js +2 -0
  27. package/cssm/components/header/Component.js +2 -0
  28. package/cssm/components/header/buttons.js +8 -4
  29. package/cssm/components/header/index.js +2 -0
  30. package/cssm/components/header/index.module.css +11 -4
  31. package/cssm/components/header-info-block/Component.js +5 -3
  32. package/cssm/components/header-info-block/index.js +2 -0
  33. package/cssm/components/image-preview/Component.js +4 -2
  34. package/cssm/components/image-preview/index.js +2 -0
  35. package/cssm/components/image-preview/index.module.css +11 -8
  36. package/cssm/components/image-preview/paths.js +2 -0
  37. package/cssm/components/image-viewer/component.js +2 -0
  38. package/cssm/components/image-viewer/index.js +2 -0
  39. package/cssm/components/image-viewer/index.module.css +13 -12
  40. package/cssm/components/image-viewer/paths.js +2 -0
  41. package/cssm/components/image-viewer/slide.js +5 -3
  42. package/cssm/components/index.js +6 -4
  43. package/cssm/components/navigation-bar/Component.js +2 -0
  44. package/cssm/components/navigation-bar/index.js +2 -0
  45. package/cssm/components/navigation-bar/index.module.css +1 -3
  46. package/cssm/context.js +2 -0
  47. package/cssm/index.js +2 -0
  48. package/cssm/index.module.css +3 -1
  49. package/cssm/utils/constants.js +2 -0
  50. package/cssm/utils/index.js +2 -0
  51. package/cssm/utils/split-filename.js +2 -0
  52. package/cssm/utils/utils.js +2 -0
  53. package/esm/Component.js +3 -3
  54. package/esm/buttons-e3d668f3.d.ts +11 -0
  55. package/esm/buttons-e3d668f3.js +27 -0
  56. package/esm/components/header/Component.js +1 -4
  57. package/esm/components/header/buttons.d.ts +0 -11
  58. package/esm/components/header/buttons.js +9 -24
  59. package/esm/components/header/index.css +14 -7
  60. package/esm/components/header/index.js +1 -1
  61. package/esm/components/header-info-block/Component.js +4 -4
  62. package/esm/components/header-info-block/index.css +5 -5
  63. package/esm/components/image-preview/Component.js +3 -3
  64. package/esm/components/image-preview/index.css +22 -19
  65. package/esm/components/image-viewer/component.js +1 -1
  66. package/esm/components/image-viewer/index.css +32 -31
  67. package/esm/components/image-viewer/index.js +1 -1
  68. package/esm/components/image-viewer/slide.js +1 -1
  69. package/esm/components/index.js +5 -5
  70. package/esm/components/navigation-bar/Component.js +1 -1
  71. package/esm/components/navigation-bar/index.css +7 -9
  72. package/esm/index.css +6 -4
  73. package/esm/index.js +2 -2
  74. package/esm/{slide-c2ddd972.js → slide-91252b0b.js} +4 -4
  75. package/index.css +6 -4
  76. package/index.js +4 -2
  77. package/modern/Component.js +3 -3
  78. package/modern/buttons-ecc0dae2.d.ts +11 -0
  79. package/modern/buttons-ecc0dae2.js +20 -0
  80. package/modern/components/header/Component.js +1 -4
  81. package/modern/components/header/buttons.d.ts +0 -11
  82. package/modern/components/header/buttons.js +8 -17
  83. package/modern/components/header/index.css +14 -7
  84. package/modern/components/header/index.js +1 -1
  85. package/modern/components/header-info-block/Component.js +4 -4
  86. package/modern/components/header-info-block/index.css +5 -5
  87. package/modern/components/image-preview/Component.js +3 -3
  88. package/modern/components/image-preview/index.css +22 -19
  89. package/modern/components/image-viewer/component.js +1 -1
  90. package/modern/components/image-viewer/index.css +32 -31
  91. package/modern/components/image-viewer/index.js +1 -1
  92. package/modern/components/image-viewer/slide.js +1 -1
  93. package/modern/components/index.js +5 -5
  94. package/modern/components/navigation-bar/Component.js +1 -1
  95. package/modern/components/navigation-bar/index.css +7 -9
  96. package/modern/index.css +6 -4
  97. package/modern/index.js +2 -2
  98. package/modern/{slide-2e865179.js → slide-8b790c66.js} +4 -4
  99. package/package.json +5 -5
  100. package/{slide-7b9c9b36.js → slide-ac3f2828.js} +4 -4
  101. package/utils/constants.js +2 -0
  102. package/utils/index.js +2 -0
  103. package/utils/split-filename.js +2 -0
  104. package/utils/utils.js +2 -0
  105. /package/esm/{slide-c2ddd972.d.ts → slide-91252b0b.d.ts} +0 -0
  106. /package/modern/{slide-2e865179.d.ts → slide-8b790c66.d.ts} +0 -0
  107. /package/{slide-7b9c9b36.d.ts → slide-ac3f2828.d.ts} +0 -0
@@ -1,12 +1,14 @@
1
- /* hash: 1yw5t */
1
+ /* hash: hw9ow */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
5
- --color-light-border-link: #007aff;
6
- --color-light-graphic-primary-inverted: #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 */
7
- --color-light-bg-primary-inverted-alpha-10: rgba(11, 31, 53, 0.1);
8
- --color-light-bg-primary-inverted-alpha-20: rgba(11, 31, 53, 0.2);
9
- --color-light-bg-primary-inverted-alpha-50: rgba(11, 31, 53, 0.5);
5
+ --color-light-border-link: #0072ef;
6
+ --color-static-bg-primary-dark: #121212;
7
+ --color-static-bg-quaternary-dark: #3a3a3c;
8
+ --color-static-bg-secondary-dark: #202022;
9
+ --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 */
10
+ --color-static-bg-primary-dark-tint-15: rgb(54, 54, 54);
11
+ --color-static-bg-primary-dark-tint-20: rgb(65, 65, 65);
10
12
  } :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 */
11
13
  } :root {
12
14
  } :root {
@@ -25,13 +27,13 @@
25
27
  } :root {
26
28
  } :root {
27
29
  --focus-color: var(--color-light-border-link);
28
- } .gallery__component_ve23z {
30
+ } .gallery__component_pw918 {
29
31
  display: flex;
30
32
  flex-grow: 1;
31
33
  justify-content: center;
32
34
  align-items: center;
33
- background-color: var(--color-light-bg-primary-inverted-alpha-50);
34
- } .gallery__swiper_ve23z {
35
+ background-color: var(--color-static-bg-primary-dark);
36
+ } .gallery__swiper_pw918 {
35
37
  display: flex;
36
38
  width: 100%;
37
39
  height: 100%;
@@ -40,43 +42,42 @@
40
42
  max-height: calc(100vh - 168px);
41
43
  padding: var(--gap-2xl) var(--gap-m);
42
44
  box-sizing: border-box;
43
- } .gallery__singleSlide_ve23z .gallery__swiper_ve23z {
45
+ } .gallery__singleSlide_pw918 .gallery__swiper_pw918 {
44
46
  max-height: calc(100vh - 80px);
45
47
  padding: var(--gap-2xl);
46
- } .gallery__hidden_ve23z {
48
+ } .gallery__hidden_pw918 {
47
49
  display: none;
48
- } .gallery__slide_ve23z {
50
+ } .gallery__slide_pw918 {
49
51
  position: relative;
50
52
  display: flex;
51
53
  justify-content: center;
52
54
  align-items: center;
53
55
  width: 100%;
54
56
  height: 100%;
55
- } .gallery__slideLoading_ve23z {
56
- /* TODO: цвета нет в палитре */
57
- background-color: #e9eaeb;
57
+ } .gallery__slideLoading_pw918 {
58
+ background-color: var(--color-static-bg-secondary-dark);
58
59
  border-radius: var(--border-radius-m);
59
- } .gallery__image_ve23z {
60
+ } .gallery__image_pw918 {
60
61
  width: 0;
61
62
  height: 0;
62
63
  -webkit-user-select: none;
63
64
  user-select: none;
64
65
  background-color: var(--color-light-bg-primary);
65
66
  border-radius: var(--border-radius-m);
66
- } .gallery__smallImage_ve23z {
67
+ } .gallery__smallImage_pw918 {
67
68
  position: relative;
68
69
  width: auto;
69
70
  height: auto;
70
71
  -webkit-user-select: none;
71
72
  user-select: none;
72
73
  background-color: var(--color-light-bg-primary);
73
- } .gallery__verticalImageFit_ve23z {
74
+ } .gallery__verticalImageFit_pw918 {
74
75
  width: auto;
75
76
  height: 100%;
76
- } .gallery__horizontalImageFit_ve23z {
77
+ } .gallery__horizontalImageFit_pw918 {
77
78
  width: 100%;
78
79
  height: auto;
79
- } .gallery__arrow_ve23z {
80
+ } .gallery__arrow_pw918 {
80
81
  display: flex;
81
82
  flex-direction: column;
82
83
  justify-content: center;
@@ -85,36 +86,36 @@
85
86
  width: 96px;
86
87
  height: 100%;
87
88
  cursor: pointer;
88
- color: var(--color-light-graphic-primary-inverted);
89
+ color: var(--color-static-graphic-light);
89
90
  transition: background-color 0.15s ease-in-out;
90
91
  outline: none
91
- } .gallery__arrow_ve23z:hover {
92
- background-color: var(--color-light-bg-primary-inverted-alpha-10);
93
- } .gallery__arrow_ve23z:active {
94
- background-color: var(--color-light-bg-primary-inverted-alpha-20);
95
- } .gallery__focused_ve23z {
92
+ } .gallery__arrow_pw918:hover {
93
+ background-color: var(--color-static-bg-primary-dark-tint-15);
94
+ } .gallery__arrow_pw918:active {
95
+ background-color: var(--color-static-bg-primary-dark-tint-20);
96
+ } .gallery__focused_pw918 {
96
97
  outline: 2px solid var(--focus-color);
97
98
  outline-offset: 2px;
98
- } .gallery__placeholder_ve23z {
99
+ } .gallery__placeholder_pw918 {
99
100
  display: flex;
100
101
  justify-content: center;
101
102
  align-items: center;
102
103
  width: 400px;
103
104
  height: 300px;
104
105
  border-radius: var(--border-radius-m);
105
- background-color: var(--color-light-bg-primary);
106
- } .gallery__brokenImgWrapper_ve23z {
106
+ background-color: var(--color-static-bg-quaternary-dark);
107
+ } .gallery__brokenImgWrapper_pw918 {
107
108
  position: relative;
108
109
  display: flex;
109
110
  flex-direction: column;
110
111
  align-items: center;
111
112
  width: 150px;
112
113
  text-align: center;
113
- } .gallery__brokenImgIcon_ve23z {
114
+ } .gallery__brokenImgIcon_pw918 {
114
115
  width: 80px;
115
116
  height: 80px;
116
117
  margin-bottom: var(--gap-2xs);
117
- } .gallery__fullScreenImage_ve23z {
118
+ } .gallery__fullScreenImage_pw918 {
118
119
  width: 100%;
119
120
  height: auto;
120
121
  background-color: var(--color-light-bg-primary);
@@ -10,7 +10,7 @@ import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
10
10
  import '../../context.js';
11
11
  import '../../utils/utils.js';
12
12
  import '../../utils/constants.js';
13
- import '../../slide-2e865179.js';
13
+ import '../../slide-8b790c66.js';
14
14
  import '@alfalab/core-components-typography/modern';
15
15
  import './paths.js';
16
16
  import 'swiper/swiper.min.css';
@@ -4,4 +4,4 @@ import '@alfalab/core-components-typography/modern';
4
4
  import '../../utils/utils.js';
5
5
  import '../../utils/constants.js';
6
6
  import './paths.js';
7
- export { S as Slide } from '../../slide-2e865179.js';
7
+ export { S as Slide } from '../../slide-8b790c66.js';
@@ -6,24 +6,24 @@ import 'react';
6
6
  import '../context.js';
7
7
  import '../utils/utils.js';
8
8
  import '../utils/constants.js';
9
- import 'classnames';
10
- import '@alfalab/hooks';
11
- import './image-preview/paths.js';
12
9
  import './header-info-block/Component.js';
13
10
  import '@alfalab/core-components-typography/modern';
14
11
  import '../utils/split-filename.js';
15
- import './header/buttons.js';
12
+ import '../buttons-ecc0dae2.js';
16
13
  import '@alfalab/core-components-icon-button/modern';
17
14
  import '@alfalab/core-components-tooltip/modern';
18
15
  import '@alfalab/icons-glyph/ArrowsInwardMIcon';
19
16
  import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
20
17
  import '@alfalab/icons-glyph/CrossMIcon';
21
18
  import '@alfalab/icons-glyph/PointerDownMIcon';
19
+ import 'classnames';
20
+ import '@alfalab/hooks';
21
+ import './image-preview/paths.js';
22
22
  import 'element-closest';
23
23
  import 'swiper';
24
24
  import 'swiper/react';
25
25
  import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
26
26
  import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
27
- import '../slide-2e865179.js';
27
+ import '../slide-8b790c66.js';
28
28
  import './image-viewer/paths.js';
29
29
  import 'swiper/swiper.min.css';
@@ -7,7 +7,7 @@ import 'classnames';
7
7
  import '@alfalab/hooks';
8
8
  import '../image-preview/paths.js';
9
9
 
10
- const styles = {"component":"gallery__component_1jczz","preview":"gallery__preview_1jczz"};
10
+ const styles = {"component":"gallery__component_7umhe","preview":"gallery__preview_7umhe"};
11
11
  require('./index.css')
12
12
 
13
13
  const MIN_SCROLL_STEP = 24;
@@ -1,7 +1,6 @@
1
- /* hash: 1uun9 */
1
+ /* hash: d790p */
2
2
  :root {
3
- } /* deprecated */ :root {
4
- --color-light-bg-tertiary-inverted: #3c4c5d; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
+ } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
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 */
6
5
  } :root {
7
6
  } :root {
@@ -17,7 +16,7 @@
17
16
  --gap-xl: 24px;
18
17
  } :root {
19
18
  } :root {
20
- } .gallery__component_1jczz {
19
+ } .gallery__component_7umhe {
21
20
  display: flex;
22
21
  flex-wrap: nowrap;
23
22
  align-content: center;
@@ -27,15 +26,14 @@
27
26
  box-sizing: border-box;
28
27
  padding: 10px var(--gap-xl);
29
28
  -ms-overflow-style: none;
30
- background-color: var(--color-light-bg-tertiary-inverted);
31
29
  scrollbar-width: none
32
- } .gallery__component_1jczz::-webkit-scrollbar {
30
+ } .gallery__component_7umhe::-webkit-scrollbar {
33
31
  display: none;
34
- } .gallery__preview_1jczz {
32
+ } .gallery__preview_7umhe {
35
33
  flex-shrink: 0;
36
34
  margin: 0 var(--gap-3xs)
37
- } .gallery__preview_1jczz:first-child {
35
+ } .gallery__preview_7umhe:first-child {
38
36
  margin-left: auto;
39
- } .gallery__preview_1jczz:last-child {
37
+ } .gallery__preview_7umhe:last-child {
40
38
  margin-right: auto;
41
39
  }
package/modern/index.css CHANGED
@@ -1,6 +1,7 @@
1
- /* hash: 8tsfl */
1
+ /* hash: fie1e */
2
2
  :root {
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 */
3
+ } /* deprecated */ :root {
4
+ --color-static-bg-primary-dark: #121212; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
5
  } :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 */
5
6
  } :root {
6
7
  } :root {
@@ -14,13 +15,14 @@
14
15
  } :root {
15
16
  } :root {
16
17
  } :root {
17
- } .gallery__container_14ttk {
18
+ } .gallery__container_qo3ef {
18
19
  display: flex;
19
20
  flex-direction: column;
20
21
  justify-content: space-between;
21
22
  height: 100%;
22
23
  width: 100%;
23
- } .gallery__modal_14ttk {
24
+ background-color: var(--color-static-bg-primary-dark);
25
+ } .gallery__modal_qo3ef {
24
26
  flex-grow: 1;
25
27
  width: 100%;
26
28
  height: 100%;
package/modern/index.js CHANGED
@@ -13,7 +13,7 @@ import './components/image-preview/paths.js';
13
13
  import './components/header/Component.js';
14
14
  import './components/header-info-block/Component.js';
15
15
  import '@alfalab/core-components-typography/modern';
16
- import './components/header/buttons.js';
16
+ import './buttons-ecc0dae2.js';
17
17
  import '@alfalab/core-components-icon-button/modern';
18
18
  import '@alfalab/core-components-tooltip/modern';
19
19
  import '@alfalab/icons-glyph/ArrowsInwardMIcon';
@@ -26,6 +26,6 @@ import 'swiper';
26
26
  import 'swiper/react';
27
27
  import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
28
28
  import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
29
- import './slide-2e865179.js';
29
+ import './slide-8b790c66.js';
30
30
  import './components/image-viewer/paths.js';
31
31
  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
- const styles = {"component":"gallery__component_ve23z","swiper":"gallery__swiper_ve23z","singleSlide":"gallery__singleSlide_ve23z","hidden":"gallery__hidden_ve23z","slide":"gallery__slide_ve23z","slideLoading":"gallery__slideLoading_ve23z","image":"gallery__image_ve23z","smallImage":"gallery__smallImage_ve23z","verticalImageFit":"gallery__verticalImageFit_ve23z","horizontalImageFit":"gallery__horizontalImageFit_ve23z","arrow":"gallery__arrow_ve23z","focused":"gallery__focused_ve23z","placeholder":"gallery__placeholder_ve23z","brokenImgWrapper":"gallery__brokenImgWrapper_ve23z","brokenImgIcon":"gallery__brokenImgIcon_ve23z","fullScreenImage":"gallery__fullScreenImage_ve23z"};
8
+ const styles = {"component":"gallery__component_pw918","swiper":"gallery__swiper_pw918","singleSlide":"gallery__singleSlide_pw918","hidden":"gallery__hidden_pw918","slide":"gallery__slide_pw918","slideLoading":"gallery__slideLoading_pw918","image":"gallery__image_pw918","smallImage":"gallery__smallImage_pw918","verticalImageFit":"gallery__verticalImageFit_pw918","horizontalImageFit":"gallery__horizontalImageFit_pw918","arrow":"gallery__arrow_pw918","focused":"gallery__focused_pw918","placeholder":"gallery__placeholder_pw918","brokenImgWrapper":"gallery__brokenImgWrapper_pw918","brokenImgIcon":"gallery__brokenImgIcon_pw918","fullScreenImage":"gallery__fullScreenImage_pw918"};
9
9
  require('./components/image-viewer/index.css')
10
10
 
11
11
  const SlideInner = ({ children, broken, loading, withPlaceholder }) => {
@@ -13,9 +13,9 @@ const SlideInner = ({ children, broken, loading, withPlaceholder }) => {
13
13
  React.createElement("div", { className: styles.brokenImgIcon },
14
14
  React.createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '80', height: '80', viewBox: '0 0 80 80', fill: 'none' },
15
15
  React.createElement("rect", { width: '80', height: '80', fill: 'none' }),
16
- React.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: NoImagePaths.baseImage, fill: '#DBDEE1' }),
17
- React.createElement("path", { d: NoImagePaths.triangleImage, fill: '#DBDEE1' }))),
18
- React.createElement(Typography.Text, { view: 'primary-small', color: 'secondary' }, "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435"))) : (children);
16
+ React.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: NoImagePaths.baseImage, fill: '#89898A' }),
17
+ React.createElement("path", { d: NoImagePaths.triangleImage, fill: '#89898A' }))),
18
+ React.createElement(Typography.Text, { view: 'primary-small', color: 'static-secondary-light' }, "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435"))) : (children);
19
19
  return (React.createElement("div", { className: cn(styles.slide, { [styles.slideLoading]: loading }) }, withPlaceholder ? React.createElement("div", { className: styles.placeholder }, content) : content));
20
20
  };
21
21
  const Slide = ({ isActive, meta, swiperAspectRatio, imageAspectRatio, image, index, swiperHeight, slideVisible, handleLoad, handleLoadError, }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-gallery",
3
- "version": "5.1.19",
3
+ "version": "5.2.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -17,10 +17,10 @@
17
17
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@alfalab/core-components-base-modal": "^5.1.1",
21
- "@alfalab/core-components-icon-button": "^6.0.8",
22
- "@alfalab/core-components-tooltip": "^6.2.13",
23
- "@alfalab/core-components-typography": "^3.2.0",
20
+ "@alfalab/core-components-base-modal": "^5.1.2",
21
+ "@alfalab/core-components-icon-button": "^6.0.9",
22
+ "@alfalab/core-components-tooltip": "^6.2.15",
23
+ "@alfalab/core-components-typography": "^3.2.1",
24
24
  "@alfalab/hooks": "^1.4.1",
25
25
  "@alfalab/icons-glyph": "^2.89.0",
26
26
  "classnames": "^2.3.1",
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
12
12
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
13
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
14
14
 
15
- var styles = {"component":"gallery__component_ve23z","swiper":"gallery__swiper_ve23z","singleSlide":"gallery__singleSlide_ve23z","hidden":"gallery__hidden_ve23z","slide":"gallery__slide_ve23z","slideLoading":"gallery__slideLoading_ve23z","image":"gallery__image_ve23z","smallImage":"gallery__smallImage_ve23z","verticalImageFit":"gallery__verticalImageFit_ve23z","horizontalImageFit":"gallery__horizontalImageFit_ve23z","arrow":"gallery__arrow_ve23z","focused":"gallery__focused_ve23z","placeholder":"gallery__placeholder_ve23z","brokenImgWrapper":"gallery__brokenImgWrapper_ve23z","brokenImgIcon":"gallery__brokenImgIcon_ve23z","fullScreenImage":"gallery__fullScreenImage_ve23z"};
15
+ var styles = {"component":"gallery__component_pw918","swiper":"gallery__swiper_pw918","singleSlide":"gallery__singleSlide_pw918","hidden":"gallery__hidden_pw918","slide":"gallery__slide_pw918","slideLoading":"gallery__slideLoading_pw918","image":"gallery__image_pw918","smallImage":"gallery__smallImage_pw918","verticalImageFit":"gallery__verticalImageFit_pw918","horizontalImageFit":"gallery__horizontalImageFit_pw918","arrow":"gallery__arrow_pw918","focused":"gallery__focused_pw918","placeholder":"gallery__placeholder_pw918","brokenImgWrapper":"gallery__brokenImgWrapper_pw918","brokenImgIcon":"gallery__brokenImgIcon_pw918","fullScreenImage":"gallery__fullScreenImage_pw918"};
16
16
  require('./components/image-viewer/index.css')
17
17
 
18
18
  var SlideInner = function (_a) {
@@ -22,9 +22,9 @@ var SlideInner = function (_a) {
22
22
  React__default.default.createElement("div", { className: styles.brokenImgIcon },
23
23
  React__default.default.createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '80', height: '80', viewBox: '0 0 80 80', fill: 'none' },
24
24
  React__default.default.createElement("rect", { width: '80', height: '80', fill: 'none' }),
25
- React__default.default.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: components_imageViewer_paths.NoImagePaths.baseImage, fill: '#DBDEE1' }),
26
- React__default.default.createElement("path", { d: components_imageViewer_paths.NoImagePaths.triangleImage, fill: '#DBDEE1' }))),
27
- React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-small', color: 'secondary' }, "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435"))) : (children);
25
+ React__default.default.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: components_imageViewer_paths.NoImagePaths.baseImage, fill: '#89898A' }),
26
+ React__default.default.createElement("path", { d: components_imageViewer_paths.NoImagePaths.triangleImage, fill: '#89898A' }))),
27
+ React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-small', color: 'static-secondary-light' }, "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435"))) : (children);
28
28
  return (React__default.default.createElement("div", { className: cn__default.default(styles.slide, (_b = {}, _b[styles.slideLoading] = loading, _b)) }, withPlaceholder ? React__default.default.createElement("div", { className: styles.placeholder }, content) : content));
29
29
  };
30
30
  var Slide = function (_a) {
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var TestIds = {
4
6
  ACTIVE_IMAGE: 'active-image',
5
7
  PREV_SLIDE_BUTTON: 'prev-slide-button',
package/utils/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var utils_splitFilename = require('./split-filename.js');
4
6
  var utils_utils = require('./utils.js');
5
7
  var utils_constants = require('./constants.js');
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var SEPARATION_POSITION_SHIFT = 3;
4
6
  function splitFilename(filename) {
5
7
  var dotPosition = filename.lastIndexOf('.');
package/utils/utils.js CHANGED
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var PLACEHOLDER_WIDTH = 400;
4
6
  var PLACEHOLDER_HEIGHT = 300;
5
7
  var getImageKey = function (_a, index) {
File without changes