@alfalab/core-components-gallery 7.3.0 → 7.4.0-alfasans

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 (166) hide show
  1. package/Component.d.ts +5 -1
  2. package/Component.js +2 -1
  3. package/Component.js.map +1 -1
  4. package/components/bottom-button/index.css +5 -5
  5. package/components/bottom-button/index.module.css.js +1 -1
  6. package/components/buttons/index.css +5 -5
  7. package/components/buttons/index.d.ts +3 -0
  8. package/components/buttons/index.js +7 -0
  9. package/components/buttons/index.js.map +1 -1
  10. package/components/buttons/index.module.css.js +1 -1
  11. package/components/header/Component.js +3 -2
  12. package/components/header/Component.js.map +1 -1
  13. package/components/header/index.css +1 -1
  14. package/components/header/index.module.css.js +1 -1
  15. package/components/header-info-block/index.css +4 -4
  16. package/components/header-info-block/index.module.css.js +1 -1
  17. package/components/header-mobile/Component.js +2 -1
  18. package/components/header-mobile/Component.js.map +1 -1
  19. package/components/header-mobile/index.css +6 -6
  20. package/components/header-mobile/index.module.css.js +1 -1
  21. package/components/image-preview/index.css +17 -17
  22. package/components/image-preview/index.module.css.js +1 -1
  23. package/components/image-viewer/index.css +28 -28
  24. package/components/image-viewer/index.module.css.js +1 -1
  25. package/components/image-viewer/video/index.css +9 -9
  26. package/components/image-viewer/video/index.module.css.js +1 -1
  27. package/components/info-bar/index.css +3 -3
  28. package/components/info-bar/index.module.css.js +1 -1
  29. package/components/navigation-bar/index.css +10 -10
  30. package/components/navigation-bar/index.module.css.js +1 -1
  31. package/components/subtitles/index.css +3 -3
  32. package/components/subtitles/index.module.css.js +1 -1
  33. package/context.d.ts +2 -1
  34. package/context.js.map +1 -1
  35. package/cssm/Component.d.ts +5 -1
  36. package/cssm/Component.js +2 -1
  37. package/cssm/Component.js.map +1 -1
  38. package/cssm/components/buttons/index.d.ts +3 -0
  39. package/cssm/components/buttons/index.js +7 -0
  40. package/cssm/components/buttons/index.js.map +1 -1
  41. package/cssm/components/header/Component.js +3 -2
  42. package/cssm/components/header/Component.js.map +1 -1
  43. package/cssm/components/header-mobile/Component.js +2 -1
  44. package/cssm/components/header-mobile/Component.js.map +1 -1
  45. package/cssm/context.d.ts +2 -1
  46. package/cssm/context.js.map +1 -1
  47. package/cssm/index.d.ts +1 -0
  48. package/cssm/types.d.ts +6 -0
  49. package/cssm/utils/constants.d.ts +1 -0
  50. package/cssm/utils/constants.js +1 -0
  51. package/cssm/utils/constants.js.map +1 -1
  52. package/esm/Component.d.ts +5 -1
  53. package/esm/Component.js +2 -1
  54. package/esm/Component.js.map +1 -1
  55. package/esm/components/bottom-button/index.css +5 -5
  56. package/esm/components/bottom-button/index.module.css.js +1 -1
  57. package/esm/components/buttons/index.css +5 -5
  58. package/esm/components/buttons/index.d.ts +3 -0
  59. package/esm/components/buttons/index.js +7 -1
  60. package/esm/components/buttons/index.js.map +1 -1
  61. package/esm/components/buttons/index.module.css.js +1 -1
  62. package/esm/components/header/Component.js +4 -3
  63. package/esm/components/header/Component.js.map +1 -1
  64. package/esm/components/header/index.css +1 -1
  65. package/esm/components/header/index.module.css.js +1 -1
  66. package/esm/components/header-info-block/index.css +4 -4
  67. package/esm/components/header-info-block/index.module.css.js +1 -1
  68. package/esm/components/header-mobile/Component.js +4 -3
  69. package/esm/components/header-mobile/Component.js.map +1 -1
  70. package/esm/components/header-mobile/index.css +6 -6
  71. package/esm/components/header-mobile/index.module.css.js +1 -1
  72. package/esm/components/image-preview/index.css +17 -17
  73. package/esm/components/image-preview/index.module.css.js +1 -1
  74. package/esm/components/image-viewer/index.css +28 -28
  75. package/esm/components/image-viewer/index.module.css.js +1 -1
  76. package/esm/components/image-viewer/video/index.css +9 -9
  77. package/esm/components/image-viewer/video/index.module.css.js +1 -1
  78. package/esm/components/info-bar/index.css +3 -3
  79. package/esm/components/info-bar/index.module.css.js +1 -1
  80. package/esm/components/navigation-bar/index.css +10 -10
  81. package/esm/components/navigation-bar/index.module.css.js +1 -1
  82. package/esm/components/subtitles/index.css +3 -3
  83. package/esm/components/subtitles/index.module.css.js +1 -1
  84. package/esm/context.d.ts +2 -1
  85. package/esm/context.js.map +1 -1
  86. package/esm/index.css +9 -9
  87. package/esm/index.d.ts +1 -0
  88. package/esm/index.module.css.js +1 -1
  89. package/esm/types.d.ts +6 -0
  90. package/esm/utils/constants.d.ts +1 -0
  91. package/esm/utils/constants.js +1 -0
  92. package/esm/utils/constants.js.map +1 -1
  93. package/index.css +9 -9
  94. package/index.d.ts +1 -0
  95. package/index.module.css.js +1 -1
  96. package/modern/Component.d.ts +5 -1
  97. package/modern/Component.js +2 -1
  98. package/modern/Component.js.map +1 -1
  99. package/modern/components/bottom-button/index.css +5 -5
  100. package/modern/components/bottom-button/index.module.css.js +1 -1
  101. package/modern/components/buttons/index.css +5 -5
  102. package/modern/components/buttons/index.d.ts +3 -0
  103. package/modern/components/buttons/index.js +6 -1
  104. package/modern/components/buttons/index.js.map +1 -1
  105. package/modern/components/buttons/index.module.css.js +1 -1
  106. package/modern/components/header/Component.js +3 -2
  107. package/modern/components/header/Component.js.map +1 -1
  108. package/modern/components/header/index.css +1 -1
  109. package/modern/components/header/index.module.css.js +1 -1
  110. package/modern/components/header-info-block/index.css +4 -4
  111. package/modern/components/header-info-block/index.module.css.js +1 -1
  112. package/modern/components/header-mobile/Component.js +3 -2
  113. package/modern/components/header-mobile/Component.js.map +1 -1
  114. package/modern/components/header-mobile/index.css +6 -6
  115. package/modern/components/header-mobile/index.module.css.js +1 -1
  116. package/modern/components/image-preview/index.css +17 -17
  117. package/modern/components/image-preview/index.module.css.js +1 -1
  118. package/modern/components/image-viewer/index.css +28 -28
  119. package/modern/components/image-viewer/index.module.css.js +1 -1
  120. package/modern/components/image-viewer/video/index.css +9 -9
  121. package/modern/components/image-viewer/video/index.module.css.js +1 -1
  122. package/modern/components/info-bar/index.css +3 -3
  123. package/modern/components/info-bar/index.module.css.js +1 -1
  124. package/modern/components/navigation-bar/index.css +10 -10
  125. package/modern/components/navigation-bar/index.module.css.js +1 -1
  126. package/modern/components/subtitles/index.css +3 -3
  127. package/modern/components/subtitles/index.module.css.js +1 -1
  128. package/modern/context.d.ts +2 -1
  129. package/modern/context.js.map +1 -1
  130. package/modern/index.css +9 -9
  131. package/modern/index.d.ts +1 -0
  132. package/modern/index.module.css.js +1 -1
  133. package/modern/types.d.ts +6 -0
  134. package/modern/utils/constants.d.ts +1 -0
  135. package/modern/utils/constants.js +1 -0
  136. package/modern/utils/constants.js.map +1 -1
  137. package/moderncssm/Component.d.ts +5 -1
  138. package/moderncssm/Component.js +2 -1
  139. package/moderncssm/Component.js.map +1 -1
  140. package/moderncssm/components/buttons/index.d.ts +3 -0
  141. package/moderncssm/components/buttons/index.js +6 -1
  142. package/moderncssm/components/buttons/index.js.map +1 -1
  143. package/moderncssm/components/header/Component.js +3 -2
  144. package/moderncssm/components/header/Component.js.map +1 -1
  145. package/moderncssm/components/header-mobile/Component.js +3 -2
  146. package/moderncssm/components/header-mobile/Component.js.map +1 -1
  147. package/moderncssm/context.d.ts +2 -1
  148. package/moderncssm/context.js.map +1 -1
  149. package/moderncssm/index.d.ts +1 -0
  150. package/moderncssm/types.d.ts +6 -0
  151. package/moderncssm/utils/constants.d.ts +1 -0
  152. package/moderncssm/utils/constants.js +1 -0
  153. package/moderncssm/utils/constants.js.map +1 -1
  154. package/package.json +12 -12
  155. package/src/Component.tsx +8 -1
  156. package/src/components/buttons/index.tsx +24 -0
  157. package/src/components/header/Component.tsx +5 -0
  158. package/src/components/header-mobile/Component.tsx +4 -0
  159. package/src/context.ts +2 -1
  160. package/src/index.ts +1 -0
  161. package/src/types.ts +8 -0
  162. package/src/utils/constants.ts +1 -0
  163. package/types.d.ts +6 -0
  164. package/utils/constants.d.ts +1 -0
  165. package/utils/constants.js +1 -0
  166. package/utils/constants.js.map +1 -1
@@ -19,7 +19,7 @@
19
19
  :root {
20
20
  --focus-color: var(--color-light-status-info);
21
21
  }
22
- .gallery__component_15cn9 {
22
+ .gallery__component_1de8a {
23
23
  display: flex;
24
24
  flex-grow: 1;
25
25
  justify-content: center;
@@ -87,7 +87,7 @@
87
87
  z-index: -1000;
88
88
  }
89
89
 
90
- .gallery__swiperFrame_15cn9 {
90
+ .gallery__swiperFrame_1de8a {
91
91
  display: flex;
92
92
  flex: 1 1 0;
93
93
  min-width: 0;
@@ -99,17 +99,17 @@
99
99
  box-sizing: border-box;
100
100
  }
101
101
 
102
- .gallery__swiperFrame_15cn9.gallery__mobile_15cn9 {
102
+ .gallery__swiperFrame_1de8a.gallery__mobile_1de8a {
103
103
  max-height: calc(100vh - 210px);
104
104
  max-height: calc(100dvh - 210px);
105
105
  }
106
106
 
107
- .gallery__swiperFrame_15cn9.gallery__mobileVideo_15cn9 {
107
+ .gallery__swiperFrame_1de8a.gallery__mobileVideo_1de8a {
108
108
  max-height: 100vh;
109
109
  max-height: 100dvh;
110
110
  }
111
111
 
112
- .gallery__fullScreenFrame_15cn9 {
112
+ .gallery__fullScreenFrame_1de8a {
113
113
  display: flex;
114
114
  align-items: center;
115
115
  justify-content: center;
@@ -122,7 +122,7 @@
122
122
  overflow: hidden;
123
123
  }
124
124
 
125
- .gallery__hiddenFrame_15cn9 {
125
+ .gallery__hiddenFrame_1de8a {
126
126
  flex: 0 0 0;
127
127
  width: 0;
128
128
  height: 0;
@@ -130,16 +130,16 @@
130
130
  overflow: hidden;
131
131
  }
132
132
 
133
- .gallery__swiper_15cn9 {
133
+ .gallery__swiper_1de8a {
134
134
  width: 100%;
135
135
  height: 100%;
136
136
  }
137
137
 
138
- .gallery__hidden_15cn9 {
138
+ .gallery__hidden_1de8a {
139
139
  display: none;
140
140
  }
141
141
 
142
- .gallery__singleSlideContainer_15cn9 {
142
+ .gallery__singleSlideContainer_1de8a {
143
143
  display: flex;
144
144
  width: 100%;
145
145
  height: 100%;
@@ -151,18 +151,18 @@
151
151
  box-sizing: border-box;
152
152
  }
153
153
 
154
- .gallery__singleSlideContainer_15cn9.gallery__mobile_15cn9 {
154
+ .gallery__singleSlideContainer_1de8a.gallery__mobile_1de8a {
155
155
  max-height: calc(100vh - 174px);
156
156
  max-height: calc(100dvh - 174px);
157
157
  padding: 0;
158
158
  }
159
159
 
160
- .gallery__singleSlideContainer_15cn9.gallery__mobileVideo_15cn9 {
160
+ .gallery__singleSlideContainer_1de8a.gallery__mobileVideo_1de8a {
161
161
  max-height: 100vh;
162
162
  max-height: 100dvh;
163
163
  }
164
164
 
165
- .gallery__slide_15cn9 {
165
+ .gallery__slide_1de8a {
166
166
  position: relative;
167
167
  display: flex;
168
168
  justify-content: center;
@@ -171,17 +171,17 @@
171
171
  height: 100%;
172
172
  }
173
173
 
174
- .gallery__slideLoading_15cn9 {
174
+ .gallery__slideLoading_1de8a {
175
175
  background-color: var(--color-static-neutral-translucent-100-inverted);
176
176
  border-radius: var(--border-radius-8);
177
177
  }
178
178
 
179
- .gallery__spinner_15cn9 {
179
+ .gallery__spinner_1de8a {
180
180
  position: absolute;
181
181
  color: var(--color-static-neutral-translucent-1300-inverted);
182
182
  }
183
183
 
184
- .gallery__image_15cn9 {
184
+ .gallery__image_1de8a {
185
185
  width: auto;
186
186
  height: auto;
187
187
  max-width: 100%;
@@ -194,11 +194,11 @@
194
194
  border-radius: var(--border-radius-8);
195
195
  }
196
196
 
197
- .gallery__image_15cn9.gallery__mobile_15cn9 {
197
+ .gallery__image_1de8a.gallery__mobile_1de8a {
198
198
  border-radius: var(--border-radius-0);
199
199
  }
200
200
 
201
- .gallery__smallImage_15cn9 {
201
+ .gallery__smallImage_1de8a {
202
202
  position: relative;
203
203
  width: auto;
204
204
  height: auto;
@@ -211,17 +211,17 @@
211
211
  user-select: none;
212
212
  }
213
213
 
214
- .gallery__verticalImageFit_15cn9 {
214
+ .gallery__verticalImageFit_1de8a {
215
215
  width: auto;
216
216
  height: 100%;
217
217
  }
218
218
 
219
- .gallery__horizontalImageFit_15cn9 {
219
+ .gallery__horizontalImageFit_1de8a {
220
220
  width: 100%;
221
221
  height: auto;
222
222
  }
223
223
 
224
- .gallery__fullScreenMedia_15cn9 {
224
+ .gallery__fullScreenMedia_1de8a {
225
225
  width: 100%;
226
226
  height: 100%;
227
227
  max-width: 100%;
@@ -231,7 +231,7 @@
231
231
  border-radius: var(--border-radius-0);
232
232
  }
233
233
 
234
- .gallery__arrow_15cn9 {
234
+ .gallery__arrow_1de8a {
235
235
  display: flex;
236
236
  flex-direction: column;
237
237
  justify-content: center;
@@ -245,20 +245,20 @@
245
245
  outline: none;
246
246
  }
247
247
 
248
- .gallery__arrow_15cn9:hover {
248
+ .gallery__arrow_1de8a:hover {
249
249
  background-color: var(--color-static-neutral-0-inverted-hover);
250
250
  }
251
251
 
252
- .gallery__arrow_15cn9:active {
252
+ .gallery__arrow_1de8a:active {
253
253
  background-color: var(--color-static-neutral-0-inverted-press);
254
254
  }
255
255
 
256
- .gallery__focused_15cn9 {
256
+ .gallery__focused_1de8a {
257
257
  outline: 2px solid var(--focus-color);
258
258
  outline-offset: 2px;
259
259
  }
260
260
 
261
- .gallery__placeholder_15cn9 {
261
+ .gallery__placeholder_1de8a {
262
262
  display: flex;
263
263
  justify-content: center;
264
264
  align-items: center;
@@ -268,7 +268,7 @@
268
268
  background-color: var(--color-static-neutral-translucent-100-inverted);
269
269
  }
270
270
 
271
- .gallery__brokenImgWrapper_15cn9 {
271
+ .gallery__brokenImgWrapper_1de8a {
272
272
  position: relative;
273
273
  display: flex;
274
274
  flex-direction: column;
@@ -277,13 +277,13 @@
277
277
  text-align: center;
278
278
  }
279
279
 
280
- .gallery__brokenImgIcon_15cn9 {
280
+ .gallery__brokenImgIcon_1de8a {
281
281
  width: 80px;
282
282
  height: 80px;
283
283
  margin-bottom: var(--gap-4);
284
284
  }
285
285
 
286
- .gallery__fullScreenVideo_15cn9 {
286
+ .gallery__fullScreenVideo_1de8a {
287
287
  width: 100%;
288
288
  height: 100%;
289
289
  max-height: none;
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"gallery__component_15cn9","swiperFrame":"gallery__swiperFrame_15cn9","mobile":"gallery__mobile_15cn9","mobileVideo":"gallery__mobileVideo_15cn9","fullScreenFrame":"gallery__fullScreenFrame_15cn9","hiddenFrame":"gallery__hiddenFrame_15cn9","swiper":"gallery__swiper_15cn9","hidden":"gallery__hidden_15cn9","singleSlideContainer":"gallery__singleSlideContainer_15cn9","slide":"gallery__slide_15cn9","slideLoading":"gallery__slideLoading_15cn9","spinner":"gallery__spinner_15cn9","image":"gallery__image_15cn9","smallImage":"gallery__smallImage_15cn9","verticalImageFit":"gallery__verticalImageFit_15cn9","horizontalImageFit":"gallery__horizontalImageFit_15cn9","fullScreenMedia":"gallery__fullScreenMedia_15cn9","arrow":"gallery__arrow_15cn9","focused":"gallery__focused_15cn9","placeholder":"gallery__placeholder_15cn9","brokenImgWrapper":"gallery__brokenImgWrapper_15cn9","brokenImgIcon":"gallery__brokenImgIcon_15cn9","fullScreenVideo":"gallery__fullScreenVideo_15cn9"};
3
+ var styles = {"component":"gallery__component_1de8a","swiperFrame":"gallery__swiperFrame_1de8a","mobile":"gallery__mobile_1de8a","mobileVideo":"gallery__mobileVideo_1de8a","fullScreenFrame":"gallery__fullScreenFrame_1de8a","hiddenFrame":"gallery__hiddenFrame_1de8a","swiper":"gallery__swiper_1de8a","hidden":"gallery__hidden_1de8a","singleSlideContainer":"gallery__singleSlideContainer_1de8a","slide":"gallery__slide_1de8a","slideLoading":"gallery__slideLoading_1de8a","spinner":"gallery__spinner_1de8a","image":"gallery__image_1de8a","smallImage":"gallery__smallImage_1de8a","verticalImageFit":"gallery__verticalImageFit_1de8a","horizontalImageFit":"gallery__horizontalImageFit_1de8a","fullScreenMedia":"gallery__fullScreenMedia_1de8a","arrow":"gallery__arrow_1de8a","focused":"gallery__focused_1de8a","placeholder":"gallery__placeholder_1de8a","brokenImgWrapper":"gallery__brokenImgWrapper_1de8a","brokenImgIcon":"gallery__brokenImgIcon_1de8a","fullScreenVideo":"gallery__fullScreenVideo_1de8a"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -7,7 +7,7 @@
7
7
  --border-radius-0: 0;
8
8
  --border-radius-24: 24px;
9
9
  }
10
- .gallery__videoWrapper_yf8l7 {
10
+ .gallery__videoWrapper_1c0wk {
11
11
  display: flex;
12
12
  align-items: center;
13
13
  justify-content: center;
@@ -18,27 +18,27 @@
18
18
  min-width: 300px;
19
19
  min-height: 200px;
20
20
  }
21
- .gallery__mobileWrapper_yf8l7 {
21
+ .gallery__mobileWrapper_1c0wk {
22
22
  width: 100%;
23
23
  }
24
- .gallery__videoWrapper_yf8l7.gallery__loading_yf8l7 {
24
+ .gallery__videoWrapper_1c0wk.gallery__loading_1c0wk {
25
25
  width: 100%;
26
26
  aspect-ratio: 16/9;
27
27
  background-color: var(--color-static-neutral-translucent-100-inverted);
28
28
  border-radius: var(--border-radius-24);
29
29
  align-items: center;
30
30
  }
31
- .gallery__video_yf8l7 {
31
+ .gallery__video_1c0wk {
32
32
  max-width: 100%;
33
33
  max-height: 100%;
34
34
  -o-object-fit: contain;
35
35
  object-fit: contain;
36
36
  border-radius: var(--border-radius-24);
37
37
  }
38
- .gallery__mobile_yf8l7 {
38
+ .gallery__mobile_1c0wk {
39
39
  border-radius: var(--border-radius-0);
40
40
  }
41
- .gallery__videoButton_yf8l7 {
41
+ .gallery__videoButton_1c0wk {
42
42
  position: absolute;
43
43
  top: 50%;
44
44
  left: 50%;
@@ -46,13 +46,13 @@
46
46
  z-index: 1;
47
47
  color: green;
48
48
  }
49
- .gallery__icon_yf8l7 {
49
+ .gallery__icon_1c0wk {
50
50
  color: var(--color-static-neutral-0);
51
51
  }
52
- .gallery__iconShape_yf8l7 {
52
+ .gallery__iconShape_1c0wk {
53
53
  fill: var(--color-static-neutral-translucent-700);
54
54
  }
55
- .gallery__bottomButton_yf8l7 {
55
+ .gallery__bottomButton_1c0wk {
56
56
  position: absolute;
57
57
  bottom: 48px;
58
58
  left: 32px;
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"videoWrapper":"gallery__videoWrapper_yf8l7","mobileWrapper":"gallery__mobileWrapper_yf8l7","loading":"gallery__loading_yf8l7","video":"gallery__video_yf8l7","mobile":"gallery__mobile_yf8l7","videoButton":"gallery__videoButton_yf8l7","icon":"gallery__icon_yf8l7","iconShape":"gallery__iconShape_yf8l7","bottomButton":"gallery__bottomButton_yf8l7"};
3
+ var styles = {"videoWrapper":"gallery__videoWrapper_1c0wk","mobileWrapper":"gallery__mobileWrapper_1c0wk","loading":"gallery__loading_1c0wk","video":"gallery__video_1c0wk","mobile":"gallery__mobile_1c0wk","videoButton":"gallery__videoButton_1c0wk","icon":"gallery__icon_1c0wk","iconShape":"gallery__iconShape_1c0wk","bottomButton":"gallery__bottomButton_1c0wk"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -5,10 +5,10 @@
5
5
  --gap-4: 4px;
6
6
  --gap-8: 8px;
7
7
  }
8
- .gallery__description_bonz4 {
8
+ .gallery__description_9kc4j {
9
9
  text-align: center;
10
10
  }
11
- .gallery__infoWrapper_bonz4 {
11
+ .gallery__infoWrapper_9kc4j {
12
12
  background-color: var(--color-static-neutral-0-inverted);
13
13
  display: flex;
14
14
  align-items: center;
@@ -17,7 +17,7 @@
17
17
  position: relative;
18
18
  height: 48px;
19
19
  }
20
- .gallery__infoWrapper_bonz4.gallery__video_bonz4 {
20
+ .gallery__infoWrapper_9kc4j.gallery__video_9kc4j {
21
21
  padding: 0 var(--gap-4) var(--gap-4);
22
22
  justify-content: space-between;
23
23
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"description":"gallery__description_bonz4","infoWrapper":"gallery__infoWrapper_bonz4","video":"gallery__video_bonz4"};
3
+ var styles = {"description":"gallery__description_9kc4j","infoWrapper":"gallery__infoWrapper_9kc4j","video":"gallery__video_9kc4j"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -8,7 +8,7 @@
8
8
  --gap-12: 12px;
9
9
  --gap-32: 32px;
10
10
  }
11
- .gallery__component_11mwi {
11
+ .gallery__component_12m3d {
12
12
  display: flex;
13
13
  flex-wrap: nowrap;
14
14
  align-content: center;
@@ -24,31 +24,31 @@
24
24
  -moz-user-select: none;
25
25
  user-select: none;
26
26
  }
27
- .gallery__component_11mwi.gallery__mobile_11mwi {
27
+ .gallery__component_12m3d.gallery__mobile_12m3d {
28
28
  padding: var(--gap-8);
29
29
  }
30
- .gallery__component_11mwi.gallery__dragging_11mwi {
30
+ .gallery__component_12m3d.gallery__dragging_12m3d {
31
31
  cursor: grabbing;
32
32
  }
33
- .gallery__component_11mwi.gallery__dragging_11mwi * {
33
+ .gallery__component_12m3d.gallery__dragging_12m3d * {
34
34
  cursor: grabbing;
35
35
  }
36
- .gallery__component_11mwi::-webkit-scrollbar {
36
+ .gallery__component_12m3d::-webkit-scrollbar {
37
37
  display: none;
38
38
  }
39
- .gallery__previews_11mwi {
39
+ .gallery__previews_12m3d {
40
40
  display: flex;
41
41
  }
42
- .gallery__preview_11mwi {
42
+ .gallery__preview_12m3d {
43
43
  flex-shrink: 0;
44
44
  margin-right: var(--gap-4);
45
45
  }
46
- .gallery__preview_11mwi.gallery__mobile_11mwi {
46
+ .gallery__preview_12m3d.gallery__mobile_12m3d {
47
47
  margin-right: var(--gap-2);
48
48
  }
49
- .gallery__preview_11mwi:first-child {
49
+ .gallery__preview_12m3d:first-child {
50
50
  margin-left: auto;
51
51
  }
52
- .gallery__preview_11mwi:last-child {
52
+ .gallery__preview_12m3d:last-child {
53
53
  margin-right: auto;
54
54
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"gallery__component_11mwi","mobile":"gallery__mobile_11mwi","dragging":"gallery__dragging_11mwi","preview":"gallery__preview_11mwi"};
3
+ var styles = {"component":"gallery__component_12m3d","mobile":"gallery__mobile_12m3d","dragging":"gallery__dragging_12m3d","preview":"gallery__preview_12m3d"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -3,7 +3,7 @@
3
3
  --gap-16: 16px;
4
4
  --gap-32: 32px;
5
5
  }
6
- .gallery__subtitles_ljsjn {
6
+ .gallery__subtitles_1mh8j {
7
7
  position: absolute;
8
8
  align-self: flex-end;
9
9
  padding: var(--gap-0) var(--gap-32);
@@ -16,10 +16,10 @@
16
16
  opacity 500ms ease-in-out,
17
17
  margin-bottom 270ms ease-in-out;
18
18
  }
19
- .gallery__subtitles_ljsjn.gallery__mobile_ljsjn {
19
+ .gallery__subtitles_1mh8j.gallery__mobile_1mh8j {
20
20
  position: static;
21
21
  position: initial;
22
22
  }
23
- .gallery__hideSubtitles_ljsjn {
23
+ .gallery__hideSubtitles_1mh8j {
24
24
  opacity: 0;
25
25
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"subtitles":"gallery__subtitles_ljsjn","mobile":"gallery__mobile_ljsjn","hideSubtitles":"gallery__hideSubtitles_ljsjn"};
3
+ var styles = {"subtitles":"gallery__subtitles_1mh8j","mobile":"gallery__mobile_1mh8j","hideSubtitles":"gallery__hideSubtitles_1mh8j"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
package/esm/context.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type SwiperCore from 'swiper';
2
- import { type GalleryImage, type ImageMeta } from './types';
2
+ import { type GalleryCustomButton, type GalleryImage, type ImageMeta } from './types';
3
3
  export type GalleryContext = {
4
4
  view: 'desktop' | 'mobile';
5
5
  singleSlide: boolean;
@@ -25,5 +25,6 @@ export type GalleryContext = {
25
25
  setCurrentSlideIndex?: (index: number) => void;
26
26
  getCurrentImage: () => GalleryImage | undefined;
27
27
  getCurrentImageMeta: () => ImageMeta | undefined;
28
+ customButton?: GalleryCustomButton;
28
29
  };
29
30
  export declare const GalleryContext: import("react").Context<GalleryContext>;
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../src/context.ts"],"sourcesContent":["import { createContext } from 'react';\nimport type SwiperCore from 'swiper';\n\nimport { type GalleryImage, type ImageMeta } from './types';\n\nexport type GalleryContext = {\n view: 'desktop' | 'mobile';\n singleSlide: boolean;\n currentSlideIndex: number;\n images: GalleryImage[];\n imagesMeta: ImageMeta[];\n fullScreen: boolean;\n mutedVideo: boolean;\n playingVideo: boolean;\n hideNavigation: boolean;\n setHideNavigation: (hideNavigation: boolean) => void;\n initialSlide: number;\n setFullScreen: (fullScreen: boolean) => void;\n setMutedVideo: (muteVideo: boolean) => void;\n setPlayingVideo: (playingVideo: boolean) => void;\n setImageMeta: (meta: ImageMeta, index: number) => void;\n slideTo: (index: number) => void;\n slideNext: () => void;\n slidePrev: () => void;\n getSwiper: () => SwiperCore | undefined;\n setSwiper: (swiper: SwiperCore) => void;\n onClose: () => void;\n setCurrentSlideIndex?: (index: number) => void;\n getCurrentImage: () => GalleryImage | undefined;\n getCurrentImageMeta: () => ImageMeta | undefined;\n};\n\nconst mockFn = () => undefined;\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GalleryContext = createContext<GalleryContext>({\n view: 'desktop',\n singleSlide: false,\n currentSlideIndex: 0,\n images: [],\n imagesMeta: [],\n fullScreen: false,\n mutedVideo: false,\n playingVideo: false,\n hideNavigation: false,\n setHideNavigation: mockFn,\n setMutedVideo: mockFn,\n setPlayingVideo: mockFn,\n initialSlide: 0,\n setFullScreen: mockFn,\n setImageMeta: mockFn,\n slideTo: mockFn,\n slideNext: mockFn,\n slidePrev: mockFn,\n getSwiper: mockFn,\n setSwiper: mockFn,\n onClose: mockFn,\n setCurrentSlideIndex: mockFn,\n getCurrentImage: mockFn,\n getCurrentImageMeta: mockFn,\n});\n"],"names":[],"mappings":";;AAgCA,IAAM,MAAM,GAAG,YAAA,EAAM,OAAA,SAAS,CAAA,EAAA;AAE9B;AACO,IAAM,cAAc,GAAG,aAAa,CAAiB;AACxD,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,WAAW,EAAE,KAAK;AAClB,IAAA,iBAAiB,EAAE,CAAC;AACpB,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,YAAY,EAAE,KAAK;AACnB,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,iBAAiB,EAAE,MAAM;AACzB,IAAA,aAAa,EAAE,MAAM;AACrB,IAAA,eAAe,EAAE,MAAM;AACvB,IAAA,YAAY,EAAE,CAAC;AACf,IAAA,aAAa,EAAE,MAAM;AACrB,IAAA,YAAY,EAAE,MAAM;AACpB,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,oBAAoB,EAAE,MAAM;AAC5B,IAAA,eAAe,EAAE,MAAM;AACvB,IAAA,mBAAmB,EAAE,MAAM;AAC9B,CAAA;;;;"}
1
+ {"version":3,"file":"context.js","sources":["../src/context.ts"],"sourcesContent":["import { createContext } from 'react';\nimport type SwiperCore from 'swiper';\n\nimport { type GalleryCustomButton, type GalleryImage, type ImageMeta } from './types';\n\nexport type GalleryContext = {\n view: 'desktop' | 'mobile';\n singleSlide: boolean;\n currentSlideIndex: number;\n images: GalleryImage[];\n imagesMeta: ImageMeta[];\n fullScreen: boolean;\n mutedVideo: boolean;\n playingVideo: boolean;\n hideNavigation: boolean;\n setHideNavigation: (hideNavigation: boolean) => void;\n initialSlide: number;\n setFullScreen: (fullScreen: boolean) => void;\n setMutedVideo: (muteVideo: boolean) => void;\n setPlayingVideo: (playingVideo: boolean) => void;\n setImageMeta: (meta: ImageMeta, index: number) => void;\n slideTo: (index: number) => void;\n slideNext: () => void;\n slidePrev: () => void;\n getSwiper: () => SwiperCore | undefined;\n setSwiper: (swiper: SwiperCore) => void;\n onClose: () => void;\n setCurrentSlideIndex?: (index: number) => void;\n getCurrentImage: () => GalleryImage | undefined;\n getCurrentImageMeta: () => ImageMeta | undefined;\n customButton?: GalleryCustomButton;\n};\n\nconst mockFn = () => undefined;\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GalleryContext = createContext<GalleryContext>({\n view: 'desktop',\n singleSlide: false,\n currentSlideIndex: 0,\n images: [],\n imagesMeta: [],\n fullScreen: false,\n mutedVideo: false,\n playingVideo: false,\n hideNavigation: false,\n setHideNavigation: mockFn,\n setMutedVideo: mockFn,\n setPlayingVideo: mockFn,\n initialSlide: 0,\n setFullScreen: mockFn,\n setImageMeta: mockFn,\n slideTo: mockFn,\n slideNext: mockFn,\n slidePrev: mockFn,\n getSwiper: mockFn,\n setSwiper: mockFn,\n onClose: mockFn,\n setCurrentSlideIndex: mockFn,\n getCurrentImage: mockFn,\n getCurrentImageMeta: mockFn,\n});\n"],"names":[],"mappings":";;AAiCA,IAAM,MAAM,GAAG,YAAA,EAAM,OAAA,SAAS,CAAA,EAAA;AAE9B;AACO,IAAM,cAAc,GAAG,aAAa,CAAiB;AACxD,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,WAAW,EAAE,KAAK;AAClB,IAAA,iBAAiB,EAAE,CAAC;AACpB,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,YAAY,EAAE,KAAK;AACnB,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,iBAAiB,EAAE,MAAM;AACzB,IAAA,aAAa,EAAE,MAAM;AACrB,IAAA,eAAe,EAAE,MAAM;AACvB,IAAA,YAAY,EAAE,CAAC;AACf,IAAA,aAAa,EAAE,MAAM;AACrB,IAAA,YAAY,EAAE,MAAM;AACpB,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,OAAO,EAAE,MAAM;AACf,IAAA,oBAAoB,EAAE,MAAM;AAC5B,IAAA,eAAe,EAAE,MAAM;AACvB,IAAA,mBAAmB,EAAE,MAAM;AAC9B,CAAA;;;;"}
package/esm/index.css CHANGED
@@ -11,7 +11,7 @@
11
11
  --sat: env(safe-area-inset-top, var(--gap-0));
12
12
  --sab: env(safe-area-inset-bottom, var(--gap-0));
13
13
  }
14
- .gallery__container_1kzqo {
14
+ .gallery__container_1yp25 {
15
15
  position: relative;
16
16
  overflow-x: hidden;
17
17
  overflow-y: auto;
@@ -25,17 +25,17 @@
25
25
  padding-top: var(--sat);
26
26
  padding-bottom: var(--sab);
27
27
  }
28
- .gallery__container_1kzqo.gallery__mobile_1kzqo {
28
+ .gallery__container_1yp25.gallery__mobile_1yp25 {
29
29
  overflow: hidden;
30
30
  }
31
- .gallery__modal_1kzqo {
31
+ .gallery__modal_1yp25 {
32
32
  flex-grow: 1;
33
33
  width: 100vw;
34
34
  height: 100vh;
35
35
  height: 100dvh;
36
36
  background: transparent;
37
37
  }
38
- .gallery__navigationVideo_1kzqo {
38
+ .gallery__navigationVideo_1yp25 {
39
39
  z-index: 3;
40
40
  width: 100%;
41
41
  position: absolute;
@@ -44,18 +44,18 @@
44
44
  transition: transform 0.3s ease-in-out;
45
45
  text-align: center;
46
46
  }
47
- .gallery__hide_1kzqo {
47
+ .gallery__hide_1yp25 {
48
48
  transform: translateY(114px);
49
49
  }
50
- .gallery__hideInfo_1kzqo {
50
+ .gallery__hideInfo_1yp25 {
51
51
  transform: translateY(48px);
52
52
  }
53
- .gallery__bottomButton_1kzqo {
53
+ .gallery__bottomButton_1yp25 {
54
54
  width: calc(100% - var(--gap-32));
55
55
  margin: var(--gap-16);
56
56
  background-color: var(--color-static-neutral-translucent-500-inverted);
57
57
  }
58
- .gallery__subtitles_1kzqo {
58
+ .gallery__subtitles_1yp25 {
59
59
  padding: var(--gap-0) var(--gap-32);
60
60
  margin-bottom: var(--gap-16);
61
61
  width: 100%;
@@ -66,6 +66,6 @@
66
66
  opacity 500ms ease-in-out,
67
67
  margin-bottom 270ms ease-in-out;
68
68
  }
69
- .gallery__hideSubtitles_1kzqo {
69
+ .gallery__hideSubtitles_1yp25 {
70
70
  opacity: 0;
71
71
  }
package/esm/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './Component';
2
+ export { type GalleryCustomButton } from './types';
2
3
  export { TestIds } from './utils';
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"container":"gallery__container_1kzqo","mobile":"gallery__mobile_1kzqo","modal":"gallery__modal_1kzqo","navigationVideo":"gallery__navigationVideo_1kzqo","hide":"gallery__hide_1kzqo","hideInfo":"gallery__hideInfo_1kzqo","bottomButton":"gallery__bottomButton_1kzqo"};
3
+ var styles = {"container":"gallery__container_1yp25","mobile":"gallery__mobile_1yp25","modal":"gallery__modal_1yp25","navigationVideo":"gallery__navigationVideo_1yp25","hide":"gallery__hide_1yp25","hideInfo":"gallery__hideInfo_1yp25","bottomButton":"gallery__bottomButton_1yp25"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
package/esm/types.d.ts CHANGED
@@ -1,4 +1,10 @@
1
1
  import { type MouseEvent, type RefObject } from 'react';
2
+ import { type IconButtonProps } from '@alfalab/core-components-icon-button/esm';
3
+ export type GalleryCustomButton = {
4
+ text: string;
5
+ icon: IconButtonProps['icon'];
6
+ onClick: () => void;
7
+ };
2
8
  export type TBottomButton = {
3
9
  text: string;
4
10
  onClick: (e: MouseEvent) => void;
@@ -9,4 +9,5 @@ export declare const TestIds: {
9
9
  NAVIGATION_BAR: string;
10
10
  MUTE_BUTTON: string;
11
11
  UNMUTE_BUTTON: string;
12
+ CUSTOM_BUTTON: string;
12
13
  };
@@ -9,6 +9,7 @@ var TestIds = {
9
9
  NAVIGATION_BAR: 'navigation-bar',
10
10
  MUTE_BUTTON: 'mute-button',
11
11
  UNMUTE_BUTTON: 'unmute-button',
12
+ CUSTOM_BUTTON: 'custom-button',
12
13
  };
13
14
 
14
15
  export { TestIds };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../src/utils/constants.ts"],"sourcesContent":["export const TestIds = {\n ACTIVE_IMAGE: 'active-image',\n PREV_SLIDE_BUTTON: 'prev-slide-button',\n NEXT_SLIDE_BUTTON: 'next-slide-button',\n CLOSE_BUTTON: 'close-button',\n FULLSCREEN_BUTTON: 'fullscreen-button',\n EXIT_FULLSCREEN_BUTTON: 'exit-fullscreen-button',\n DOWNLOAD_BUTTON: 'download-button',\n NAVIGATION_BAR: 'navigation-bar',\n MUTE_BUTTON: 'mute-button',\n UNMUTE_BUTTON: 'unmute-button',\n};\n"],"names":[],"mappings":"AAAa,IAAA,OAAO,GAAG;AACnB,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,sBAAsB,EAAE,wBAAwB;AAChD,IAAA,eAAe,EAAE,iBAAiB;AAClC,IAAA,cAAc,EAAE,gBAAgB;AAChC,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,aAAa,EAAE,eAAe;;;;;"}
1
+ {"version":3,"file":"constants.js","sources":["../../src/utils/constants.ts"],"sourcesContent":["export const TestIds = {\n ACTIVE_IMAGE: 'active-image',\n PREV_SLIDE_BUTTON: 'prev-slide-button',\n NEXT_SLIDE_BUTTON: 'next-slide-button',\n CLOSE_BUTTON: 'close-button',\n FULLSCREEN_BUTTON: 'fullscreen-button',\n EXIT_FULLSCREEN_BUTTON: 'exit-fullscreen-button',\n DOWNLOAD_BUTTON: 'download-button',\n NAVIGATION_BAR: 'navigation-bar',\n MUTE_BUTTON: 'mute-button',\n UNMUTE_BUTTON: 'unmute-button',\n CUSTOM_BUTTON: 'custom-button',\n};\n"],"names":[],"mappings":"AAAa,IAAA,OAAO,GAAG;AACnB,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,sBAAsB,EAAE,wBAAwB;AAChD,IAAA,eAAe,EAAE,iBAAiB;AAClC,IAAA,cAAc,EAAE,gBAAgB;AAChC,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,aAAa,EAAE,eAAe;;;;;"}
package/index.css CHANGED
@@ -11,7 +11,7 @@
11
11
  --sat: env(safe-area-inset-top, var(--gap-0));
12
12
  --sab: env(safe-area-inset-bottom, var(--gap-0));
13
13
  }
14
- .gallery__container_1kzqo {
14
+ .gallery__container_1yp25 {
15
15
  position: relative;
16
16
  overflow-x: hidden;
17
17
  overflow-y: auto;
@@ -25,17 +25,17 @@
25
25
  padding-top: var(--sat);
26
26
  padding-bottom: var(--sab);
27
27
  }
28
- .gallery__container_1kzqo.gallery__mobile_1kzqo {
28
+ .gallery__container_1yp25.gallery__mobile_1yp25 {
29
29
  overflow: hidden;
30
30
  }
31
- .gallery__modal_1kzqo {
31
+ .gallery__modal_1yp25 {
32
32
  flex-grow: 1;
33
33
  width: 100vw;
34
34
  height: 100vh;
35
35
  height: 100dvh;
36
36
  background: transparent;
37
37
  }
38
- .gallery__navigationVideo_1kzqo {
38
+ .gallery__navigationVideo_1yp25 {
39
39
  z-index: 3;
40
40
  width: 100%;
41
41
  position: absolute;
@@ -44,18 +44,18 @@
44
44
  transition: transform 0.3s ease-in-out;
45
45
  text-align: center;
46
46
  }
47
- .gallery__hide_1kzqo {
47
+ .gallery__hide_1yp25 {
48
48
  transform: translateY(114px);
49
49
  }
50
- .gallery__hideInfo_1kzqo {
50
+ .gallery__hideInfo_1yp25 {
51
51
  transform: translateY(48px);
52
52
  }
53
- .gallery__bottomButton_1kzqo {
53
+ .gallery__bottomButton_1yp25 {
54
54
  width: calc(100% - var(--gap-32));
55
55
  margin: var(--gap-16);
56
56
  background-color: var(--color-static-neutral-translucent-500-inverted);
57
57
  }
58
- .gallery__subtitles_1kzqo {
58
+ .gallery__subtitles_1yp25 {
59
59
  padding: var(--gap-0) var(--gap-32);
60
60
  margin-bottom: var(--gap-16);
61
61
  width: 100%;
@@ -66,6 +66,6 @@
66
66
  opacity 500ms ease-in-out,
67
67
  margin-bottom 270ms ease-in-out;
68
68
  }
69
- .gallery__hideSubtitles_1kzqo {
69
+ .gallery__hideSubtitles_1yp25 {
70
70
  opacity: 0;
71
71
  }
package/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './Component';
2
+ export { type GalleryCustomButton } from './types';
2
3
  export { TestIds } from './utils';
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"container":"gallery__container_1kzqo","mobile":"gallery__mobile_1kzqo","modal":"gallery__modal_1kzqo","navigationVideo":"gallery__navigationVideo_1kzqo","hide":"gallery__hide_1kzqo","hideInfo":"gallery__hideInfo_1kzqo","bottomButton":"gallery__bottomButton_1kzqo"};
5
+ var styles = {"container":"gallery__container_1yp25","mobile":"gallery__mobile_1yp25","modal":"gallery__modal_1yp25","navigationVideo":"gallery__navigationVideo_1yp25","hide":"gallery__hide_1yp25","hideInfo":"gallery__hideInfo_1yp25","bottomButton":"gallery__bottomButton_1yp25"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -1,5 +1,5 @@
1
1
  import { type FC } from 'react';
2
- import { type GalleryImage } from './types';
2
+ import { type GalleryCustomButton, type GalleryImage } from './types';
3
3
  export type GalleryProps = {
4
4
  /**
5
5
  * Управление видимостью
@@ -35,5 +35,9 @@ export type GalleryProps = {
35
35
  * Дополнительный класс для попапа
36
36
  */
37
37
  popupClassName?: string;
38
+ /**
39
+ * Дополнительная кнопка в шапке галереи
40
+ */
41
+ customButton?: GalleryCustomButton;
38
42
  };
39
43
  export declare const Gallery: FC<GalleryProps>;
@@ -21,7 +21,7 @@ const DEFAULT_MUTED_VIDEO = true;
21
21
  const DEFAULT_PLAYING_VIDEO = true;
22
22
  const DEFAULT_HIDE_NAVIGATION = false;
23
23
  const Backdrop = () => null;
24
- const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onClose, onSlideIndexChange, popupClassName, }) => {
24
+ const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onClose, onSlideIndexChange, popupClassName, customButton, }) => {
25
25
  const currentSlideIndexState = useState(initialSlide);
26
26
  const uncontrolled = slideIndex === undefined;
27
27
  const [currentSlideIndex, setCurrentSlideIndex] = uncontrolled
@@ -205,6 +205,7 @@ const Gallery = ({ open, images, slideIndex, initialSlide = 0, loop = true, onCl
205
205
  setCurrentSlideIndex,
206
206
  getCurrentImage: () => images[currentSlideIndex],
207
207
  getCurrentImageMeta: () => imagesMeta[currentSlideIndex],
208
+ customButton,
208
209
  };
209
210
  return (React.createElement(GalleryContext.Provider, { value: galleryContext },
210
211
  React.createElement(BaseModal, { open: open, className: cn(styles.modal, popupClassName), onEscapeKeyDown: handleEscapeKeyDown, Backdrop: Backdrop, onUnmount: onUnmount },