@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
|
@@ -10,23 +10,23 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--focus-color: var(--color-light-status-info);
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.gallery__component_55vg5 {
|
|
14
14
|
display: flex;
|
|
15
15
|
z-index: 3;
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
transition: border 0.15s ease-in-out;
|
|
18
18
|
outline: none;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.gallery__component_55vg5 .gallery__image_55vg5 {
|
|
21
21
|
opacity: 0.3;
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.gallery__component_55vg5.gallery__mobile_55vg5 {
|
|
24
24
|
padding: 0;
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.gallery__active_55vg5 > .gallery__image_55vg5 {
|
|
27
27
|
opacity: 1;
|
|
28
28
|
}
|
|
29
|
-
.
|
|
29
|
+
.gallery__preview_55vg5 {
|
|
30
30
|
width: 56px;
|
|
31
31
|
height: 56px;
|
|
32
32
|
flex-shrink: 0;
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
-moz-user-select: none;
|
|
37
37
|
user-select: none;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.gallery__preview_55vg5.gallery__mobile_55vg5 {
|
|
40
40
|
width: 46px;
|
|
41
41
|
height: 46px;
|
|
42
42
|
border-radius: var(--border-radius-8);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.gallery__image_55vg5 {
|
|
45
45
|
transition: opacity 0.15s ease-in-out;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.gallery__image_55vg5 > img {
|
|
48
48
|
display: block;
|
|
49
49
|
width: 100%;
|
|
50
50
|
height: 100%;
|
|
@@ -54,36 +54,36 @@
|
|
|
54
54
|
overflow: clip;
|
|
55
55
|
overflow-clip-margin: border-box;
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.gallery__image_55vg5:hover {
|
|
58
58
|
opacity: 0.7;
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.gallery__loading_55vg5 {
|
|
61
61
|
background-color: var(--color-static-neutral-100-inverted);
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.gallery__loading_55vg5 .gallery__active_55vg5 {
|
|
64
64
|
background-color: var(--color-static-neutral-translucent-100-inverted);
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.gallery__brokenImageWrapper_55vg5 {
|
|
67
67
|
display: flex;
|
|
68
68
|
justify-content: center;
|
|
69
69
|
align-items: center;
|
|
70
70
|
background-color: var(--color-static-neutral-translucent-100-inverted);
|
|
71
71
|
opacity: 0.3;
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.gallery__brokenImageWrapper_55vg5.gallery__active_55vg5 {
|
|
74
74
|
opacity: 1;
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.gallery__brokenIcon_55vg5 {
|
|
77
77
|
width: 40px;
|
|
78
78
|
height: 40px;
|
|
79
79
|
}
|
|
80
|
-
.
|
|
80
|
+
.gallery__focused_55vg5 {
|
|
81
81
|
outline: 2px solid var(--focus-color);
|
|
82
82
|
outline-offset: 2px;
|
|
83
83
|
}
|
|
84
|
-
.
|
|
84
|
+
.gallery__canvasPreview_55vg5 {
|
|
85
85
|
border-radius: var(--border-radius-12);
|
|
86
86
|
}
|
|
87
|
-
.
|
|
87
|
+
.gallery__canvasPreview_55vg5.gallery__mobile_55vg5 {
|
|
88
88
|
border-radius: var(--border-radius-8);
|
|
89
89
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"gallery__component_55vg5","image":"gallery__image_55vg5","mobile":"gallery__mobile_55vg5","active":"gallery__active_55vg5","preview":"gallery__preview_55vg5","loading":"gallery__loading_55vg5","brokenImageWrapper":"gallery__brokenImageWrapper_55vg5","brokenIcon":"gallery__brokenIcon_55vg5","focused":"gallery__focused_55vg5","canvasPreview":"gallery__canvasPreview_55vg5"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -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;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
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"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# 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;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"videoWrapper":"
|
|
5
|
+
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"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# 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
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"description":"
|
|
5
|
+
var styles = {"description":"gallery__description_9kc4j","infoWrapper":"gallery__infoWrapper_9kc4j","video":"gallery__video_9kc4j"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# 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
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"
|
|
5
|
+
var styles = {"component":"gallery__component_12m3d","mobile":"gallery__mobile_12m3d","dragging":"gallery__dragging_12m3d","preview":"gallery__preview_12m3d"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# 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
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"subtitles":"
|
|
5
|
+
var styles = {"subtitles":"gallery__subtitles_1mh8j","mobile":"gallery__mobile_1mh8j","hideSubtitles":"gallery__hideSubtitles_1mh8j"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
package/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/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":["createContext"],"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":["createContext"],"mappings":";;;;;;AAiCA,IAAM,MAAM,GAAG,YAAA,EAAM,OAAA,SAAS,CAAA,EAAA;AAE9B;AACO,IAAM,cAAc,GAAGA,mBAAa,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/cssm/Component.d.ts
CHANGED
|
@@ -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/cssm/Component.js
CHANGED
|
@@ -35,7 +35,7 @@ var Backdrop = function () { return null; };
|
|
|
35
35
|
var Gallery = function (_a) {
|
|
36
36
|
var _b, _c;
|
|
37
37
|
var _d, _e, _f;
|
|
38
|
-
var open = _a.open, images = _a.images, slideIndex = _a.slideIndex, _g = _a.initialSlide, initialSlide = _g === void 0 ? 0 : _g, _h = _a.loop, loop = _h === void 0 ? true : _h, onClose = _a.onClose, onSlideIndexChange = _a.onSlideIndexChange, popupClassName = _a.popupClassName;
|
|
38
|
+
var open = _a.open, images = _a.images, slideIndex = _a.slideIndex, _g = _a.initialSlide, initialSlide = _g === void 0 ? 0 : _g, _h = _a.loop, loop = _h === void 0 ? true : _h, onClose = _a.onClose, onSlideIndexChange = _a.onSlideIndexChange, popupClassName = _a.popupClassName, customButton = _a.customButton;
|
|
39
39
|
var currentSlideIndexState = React.useState(initialSlide);
|
|
40
40
|
var uncontrolled = slideIndex === undefined;
|
|
41
41
|
var _j = uncontrolled
|
|
@@ -219,6 +219,7 @@ var Gallery = function (_a) {
|
|
|
219
219
|
setCurrentSlideIndex: setCurrentSlideIndex,
|
|
220
220
|
getCurrentImage: function () { return images[currentSlideIndex]; },
|
|
221
221
|
getCurrentImageMeta: function () { return imagesMeta[currentSlideIndex]; },
|
|
222
|
+
customButton: customButton,
|
|
222
223
|
};
|
|
223
224
|
return (React__default.default.createElement(context.GalleryContext.Provider, { value: galleryContext },
|
|
224
225
|
React__default.default.createElement(cssm$1.BaseModal, { open: open, className: cn__default.default(styles__default.default.modal, popupClassName), onEscapeKeyDown: handleEscapeKeyDown, Backdrop: Backdrop, onUnmount: onUnmount },
|