@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.
- package/Component.d.ts +5 -1
- package/Component.js +2 -1
- package/Component.js.map +1 -1
- package/components/bottom-button/index.css +5 -5
- package/components/bottom-button/index.module.css.js +1 -1
- package/components/buttons/index.css +5 -5
- package/components/buttons/index.d.ts +3 -0
- package/components/buttons/index.js +7 -0
- package/components/buttons/index.js.map +1 -1
- package/components/buttons/index.module.css.js +1 -1
- package/components/header/Component.js +3 -2
- package/components/header/Component.js.map +1 -1
- package/components/header/index.css +1 -1
- package/components/header/index.module.css.js +1 -1
- package/components/header-info-block/index.css +4 -4
- package/components/header-info-block/index.module.css.js +1 -1
- package/components/header-mobile/Component.js +2 -1
- package/components/header-mobile/Component.js.map +1 -1
- package/components/header-mobile/index.css +6 -6
- package/components/header-mobile/index.module.css.js +1 -1
- package/components/image-preview/index.css +17 -17
- package/components/image-preview/index.module.css.js +1 -1
- package/components/image-viewer/index.css +28 -28
- package/components/image-viewer/index.module.css.js +1 -1
- package/components/image-viewer/video/index.css +9 -9
- package/components/image-viewer/video/index.module.css.js +1 -1
- package/components/info-bar/index.css +3 -3
- package/components/info-bar/index.module.css.js +1 -1
- package/components/navigation-bar/index.css +10 -10
- package/components/navigation-bar/index.module.css.js +1 -1
- package/components/subtitles/index.css +3 -3
- package/components/subtitles/index.module.css.js +1 -1
- package/context.d.ts +2 -1
- package/context.js.map +1 -1
- package/cssm/Component.d.ts +5 -1
- package/cssm/Component.js +2 -1
- package/cssm/Component.js.map +1 -1
- package/cssm/components/buttons/index.d.ts +3 -0
- package/cssm/components/buttons/index.js +7 -0
- package/cssm/components/buttons/index.js.map +1 -1
- package/cssm/components/header/Component.js +3 -2
- package/cssm/components/header/Component.js.map +1 -1
- package/cssm/components/header-mobile/Component.js +2 -1
- package/cssm/components/header-mobile/Component.js.map +1 -1
- package/cssm/context.d.ts +2 -1
- package/cssm/context.js.map +1 -1
- package/cssm/index.d.ts +1 -0
- package/cssm/types.d.ts +6 -0
- package/cssm/utils/constants.d.ts +1 -0
- package/cssm/utils/constants.js +1 -0
- package/cssm/utils/constants.js.map +1 -1
- package/esm/Component.d.ts +5 -1
- package/esm/Component.js +2 -1
- package/esm/Component.js.map +1 -1
- package/esm/components/bottom-button/index.css +5 -5
- package/esm/components/bottom-button/index.module.css.js +1 -1
- package/esm/components/buttons/index.css +5 -5
- package/esm/components/buttons/index.d.ts +3 -0
- package/esm/components/buttons/index.js +7 -1
- package/esm/components/buttons/index.js.map +1 -1
- package/esm/components/buttons/index.module.css.js +1 -1
- package/esm/components/header/Component.js +4 -3
- package/esm/components/header/Component.js.map +1 -1
- package/esm/components/header/index.css +1 -1
- package/esm/components/header/index.module.css.js +1 -1
- package/esm/components/header-info-block/index.css +4 -4
- package/esm/components/header-info-block/index.module.css.js +1 -1
- package/esm/components/header-mobile/Component.js +4 -3
- package/esm/components/header-mobile/Component.js.map +1 -1
- package/esm/components/header-mobile/index.css +6 -6
- package/esm/components/header-mobile/index.module.css.js +1 -1
- package/esm/components/image-preview/index.css +17 -17
- package/esm/components/image-preview/index.module.css.js +1 -1
- package/esm/components/image-viewer/index.css +28 -28
- package/esm/components/image-viewer/index.module.css.js +1 -1
- package/esm/components/image-viewer/video/index.css +9 -9
- package/esm/components/image-viewer/video/index.module.css.js +1 -1
- package/esm/components/info-bar/index.css +3 -3
- package/esm/components/info-bar/index.module.css.js +1 -1
- package/esm/components/navigation-bar/index.css +10 -10
- package/esm/components/navigation-bar/index.module.css.js +1 -1
- package/esm/components/subtitles/index.css +3 -3
- package/esm/components/subtitles/index.module.css.js +1 -1
- package/esm/context.d.ts +2 -1
- package/esm/context.js.map +1 -1
- package/esm/index.css +9 -9
- package/esm/index.d.ts +1 -0
- package/esm/index.module.css.js +1 -1
- package/esm/types.d.ts +6 -0
- package/esm/utils/constants.d.ts +1 -0
- package/esm/utils/constants.js +1 -0
- package/esm/utils/constants.js.map +1 -1
- package/index.css +9 -9
- package/index.d.ts +1 -0
- package/index.module.css.js +1 -1
- package/modern/Component.d.ts +5 -1
- package/modern/Component.js +2 -1
- package/modern/Component.js.map +1 -1
- package/modern/components/bottom-button/index.css +5 -5
- package/modern/components/bottom-button/index.module.css.js +1 -1
- package/modern/components/buttons/index.css +5 -5
- package/modern/components/buttons/index.d.ts +3 -0
- package/modern/components/buttons/index.js +6 -1
- package/modern/components/buttons/index.js.map +1 -1
- package/modern/components/buttons/index.module.css.js +1 -1
- package/modern/components/header/Component.js +3 -2
- package/modern/components/header/Component.js.map +1 -1
- package/modern/components/header/index.css +1 -1
- package/modern/components/header/index.module.css.js +1 -1
- package/modern/components/header-info-block/index.css +4 -4
- package/modern/components/header-info-block/index.module.css.js +1 -1
- package/modern/components/header-mobile/Component.js +3 -2
- package/modern/components/header-mobile/Component.js.map +1 -1
- package/modern/components/header-mobile/index.css +6 -6
- package/modern/components/header-mobile/index.module.css.js +1 -1
- package/modern/components/image-preview/index.css +17 -17
- package/modern/components/image-preview/index.module.css.js +1 -1
- package/modern/components/image-viewer/index.css +28 -28
- package/modern/components/image-viewer/index.module.css.js +1 -1
- package/modern/components/image-viewer/video/index.css +9 -9
- package/modern/components/image-viewer/video/index.module.css.js +1 -1
- package/modern/components/info-bar/index.css +3 -3
- package/modern/components/info-bar/index.module.css.js +1 -1
- package/modern/components/navigation-bar/index.css +10 -10
- package/modern/components/navigation-bar/index.module.css.js +1 -1
- package/modern/components/subtitles/index.css +3 -3
- package/modern/components/subtitles/index.module.css.js +1 -1
- package/modern/context.d.ts +2 -1
- package/modern/context.js.map +1 -1
- package/modern/index.css +9 -9
- package/modern/index.d.ts +1 -0
- package/modern/index.module.css.js +1 -1
- package/modern/types.d.ts +6 -0
- package/modern/utils/constants.d.ts +1 -0
- package/modern/utils/constants.js +1 -0
- package/modern/utils/constants.js.map +1 -1
- package/moderncssm/Component.d.ts +5 -1
- package/moderncssm/Component.js +2 -1
- package/moderncssm/Component.js.map +1 -1
- package/moderncssm/components/buttons/index.d.ts +3 -0
- package/moderncssm/components/buttons/index.js +6 -1
- package/moderncssm/components/buttons/index.js.map +1 -1
- package/moderncssm/components/header/Component.js +3 -2
- package/moderncssm/components/header/Component.js.map +1 -1
- package/moderncssm/components/header-mobile/Component.js +3 -2
- package/moderncssm/components/header-mobile/Component.js.map +1 -1
- package/moderncssm/context.d.ts +2 -1
- package/moderncssm/context.js.map +1 -1
- package/moderncssm/index.d.ts +1 -0
- package/moderncssm/types.d.ts +6 -0
- package/moderncssm/utils/constants.d.ts +1 -0
- package/moderncssm/utils/constants.js +1 -0
- package/moderncssm/utils/constants.js.map +1 -1
- package/package.json +12 -12
- package/src/Component.tsx +8 -1
- package/src/components/buttons/index.tsx +24 -0
- package/src/components/header/Component.tsx +5 -0
- package/src/components/header-mobile/Component.tsx +4 -0
- package/src/context.ts +2 -1
- package/src/index.ts +1 -0
- package/src/types.ts +8 -0
- package/src/utils/constants.ts +1 -0
- package/types.d.ts +6 -0
- package/utils/constants.d.ts +1 -0
- package/utils/constants.js +1 -0
- 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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
107
|
+
.gallery__swiperFrame_1de8a.gallery__mobileVideo_1de8a {
|
|
108
108
|
max-height: 100vh;
|
|
109
109
|
max-height: 100dvh;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
133
|
+
.gallery__swiper_1de8a {
|
|
134
134
|
width: 100%;
|
|
135
135
|
height: 100%;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
.
|
|
138
|
+
.gallery__hidden_1de8a {
|
|
139
139
|
display: none;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
160
|
+
.gallery__singleSlideContainer_1de8a.gallery__mobileVideo_1de8a {
|
|
161
161
|
max-height: 100vh;
|
|
162
162
|
max-height: 100dvh;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
179
|
+
.gallery__spinner_1de8a {
|
|
180
180
|
position: absolute;
|
|
181
181
|
color: var(--color-static-neutral-translucent-1300-inverted);
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
.
|
|
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
|
-
.
|
|
197
|
+
.gallery__image_1de8a.gallery__mobile_1de8a {
|
|
198
198
|
border-radius: var(--border-radius-0);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
.
|
|
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
|
-
.
|
|
214
|
+
.gallery__verticalImageFit_1de8a {
|
|
215
215
|
width: auto;
|
|
216
216
|
height: 100%;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
.
|
|
219
|
+
.gallery__horizontalImageFit_1de8a {
|
|
220
220
|
width: 100%;
|
|
221
221
|
height: auto;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
248
|
+
.gallery__arrow_1de8a:hover {
|
|
249
249
|
background-color: var(--color-static-neutral-0-inverted-hover);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
.
|
|
252
|
+
.gallery__arrow_1de8a:active {
|
|
253
253
|
background-color: var(--color-static-neutral-0-inverted-press);
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
.
|
|
256
|
+
.gallery__focused_1de8a {
|
|
257
257
|
outline: 2px solid var(--focus-color);
|
|
258
258
|
outline-offset: 2px;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
280
|
+
.gallery__brokenImgIcon_1de8a {
|
|
281
281
|
width: 80px;
|
|
282
282
|
height: 80px;
|
|
283
283
|
margin-bottom: var(--gap-4);
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
.
|
|
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
|
-
const styles = {"component":"
|
|
3
|
+
const 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
|
-
.
|
|
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
|
-
.
|
|
21
|
+
.gallery__mobileWrapper_1c0wk {
|
|
22
22
|
width: 100%;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
38
|
+
.gallery__mobile_1c0wk {
|
|
39
39
|
border-radius: var(--border-radius-0);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
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
|
-
.
|
|
49
|
+
.gallery__icon_1c0wk {
|
|
50
50
|
color: var(--color-static-neutral-0);
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.gallery__iconShape_1c0wk {
|
|
53
53
|
fill: var(--color-static-neutral-translucent-700);
|
|
54
54
|
}
|
|
55
|
-
.
|
|
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
|
-
const styles = {"videoWrapper":"
|
|
3
|
+
const 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
|
-
.
|
|
8
|
+
.gallery__description_9kc4j {
|
|
9
9
|
text-align: center;
|
|
10
10
|
}
|
|
11
|
-
.
|
|
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
|
-
.
|
|
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
|
-
const styles = {"description":"
|
|
3
|
+
const 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
|
-
.
|
|
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
|
-
.
|
|
27
|
+
.gallery__component_12m3d.gallery__mobile_12m3d {
|
|
28
28
|
padding: var(--gap-8);
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.gallery__component_12m3d.gallery__dragging_12m3d {
|
|
31
31
|
cursor: grabbing;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.gallery__component_12m3d.gallery__dragging_12m3d * {
|
|
34
34
|
cursor: grabbing;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.gallery__component_12m3d::-webkit-scrollbar {
|
|
37
37
|
display: none;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.gallery__previews_12m3d {
|
|
40
40
|
display: flex;
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.gallery__preview_12m3d {
|
|
43
43
|
flex-shrink: 0;
|
|
44
44
|
margin-right: var(--gap-4);
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.gallery__preview_12m3d.gallery__mobile_12m3d {
|
|
47
47
|
margin-right: var(--gap-2);
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.gallery__preview_12m3d:first-child {
|
|
50
50
|
margin-left: auto;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
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
|
-
const styles = {"component":"
|
|
3
|
+
const 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
|
-
.
|
|
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
|
-
.
|
|
19
|
+
.gallery__subtitles_1mh8j.gallery__mobile_1mh8j {
|
|
20
20
|
position: static;
|
|
21
21
|
position: initial;
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.gallery__hideSubtitles_1mh8j {
|
|
24
24
|
opacity: 0;
|
|
25
25
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"subtitles":"
|
|
3
|
+
const 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/modern/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>;
|
package/modern/context.js.map
CHANGED
|
@@ -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":";;
|
|
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,MAAM,MAAM,GAAG,MAAM,SAAS;AAE9B;AACO,MAAM,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/modern/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
|
-
.
|
|
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
|
-
.
|
|
28
|
+
.gallery__container_1yp25.gallery__mobile_1yp25 {
|
|
29
29
|
overflow: hidden;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
47
|
+
.gallery__hide_1yp25 {
|
|
48
48
|
transform: translateY(114px);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.gallery__hideInfo_1yp25 {
|
|
51
51
|
transform: translateY(48px);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
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
|
-
.
|
|
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
|
-
.
|
|
69
|
+
.gallery__hideSubtitles_1yp25 {
|
|
70
70
|
opacity: 0;
|
|
71
71
|
}
|
package/modern/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"container":"
|
|
3
|
+
const 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/modern/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/modern';
|
|
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;
|
|
@@ -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,MAAA,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,MAAA,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;;;;;"}
|
|
@@ -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>;
|
package/moderncssm/Component.js
CHANGED
|
@@ -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 },
|