@alfalab/core-components-gallery 7.1.8 → 7.1.9

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 (79) hide show
  1. package/components/bottom-button/index.css +5 -5
  2. package/components/bottom-button/index.module.css.js +1 -1
  3. package/components/buttons/index.css +5 -5
  4. package/components/buttons/index.module.css.js +1 -1
  5. package/components/header/index.css +1 -1
  6. package/components/header/index.module.css.js +1 -1
  7. package/components/header-info-block/index.css +4 -4
  8. package/components/header-info-block/index.module.css.js +1 -1
  9. package/components/header-mobile/index.css +6 -6
  10. package/components/header-mobile/index.module.css.js +1 -1
  11. package/components/image-preview/index.css +17 -17
  12. package/components/image-preview/index.module.css.js +1 -1
  13. package/components/image-viewer/index.css +148 -124
  14. package/components/image-viewer/index.module.css.js +1 -1
  15. package/components/image-viewer/index.module.css.js.map +1 -1
  16. package/components/image-viewer/video/index.css +7 -7
  17. package/components/image-viewer/video/index.module.css.js +1 -1
  18. package/components/info-bar/index.css +3 -3
  19. package/components/info-bar/index.module.css.js +1 -1
  20. package/components/navigation-bar/index.css +8 -8
  21. package/components/navigation-bar/index.module.css.js +1 -1
  22. package/components/subtitles/index.css +3 -3
  23. package/components/subtitles/index.module.css.js +1 -1
  24. package/cssm/components/image-viewer/index.module.css +147 -123
  25. package/esm/components/bottom-button/index.css +5 -5
  26. package/esm/components/bottom-button/index.module.css.js +1 -1
  27. package/esm/components/buttons/index.css +5 -5
  28. package/esm/components/buttons/index.module.css.js +1 -1
  29. package/esm/components/header/index.css +1 -1
  30. package/esm/components/header/index.module.css.js +1 -1
  31. package/esm/components/header-info-block/index.css +4 -4
  32. package/esm/components/header-info-block/index.module.css.js +1 -1
  33. package/esm/components/header-mobile/index.css +6 -6
  34. package/esm/components/header-mobile/index.module.css.js +1 -1
  35. package/esm/components/image-preview/index.css +17 -17
  36. package/esm/components/image-preview/index.module.css.js +1 -1
  37. package/esm/components/image-viewer/index.css +148 -124
  38. package/esm/components/image-viewer/index.module.css.js +1 -1
  39. package/esm/components/image-viewer/index.module.css.js.map +1 -1
  40. package/esm/components/image-viewer/video/index.css +7 -7
  41. package/esm/components/image-viewer/video/index.module.css.js +1 -1
  42. package/esm/components/info-bar/index.css +3 -3
  43. package/esm/components/info-bar/index.module.css.js +1 -1
  44. package/esm/components/navigation-bar/index.css +8 -8
  45. package/esm/components/navigation-bar/index.module.css.js +1 -1
  46. package/esm/components/subtitles/index.css +3 -3
  47. package/esm/components/subtitles/index.module.css.js +1 -1
  48. package/esm/index.css +9 -9
  49. package/esm/index.module.css.js +1 -1
  50. package/index.css +9 -9
  51. package/index.module.css.js +1 -1
  52. package/modern/components/bottom-button/index.css +5 -5
  53. package/modern/components/bottom-button/index.module.css.js +1 -1
  54. package/modern/components/buttons/index.css +5 -5
  55. package/modern/components/buttons/index.module.css.js +1 -1
  56. package/modern/components/header/index.css +1 -1
  57. package/modern/components/header/index.module.css.js +1 -1
  58. package/modern/components/header-info-block/index.css +4 -4
  59. package/modern/components/header-info-block/index.module.css.js +1 -1
  60. package/modern/components/header-mobile/index.css +6 -6
  61. package/modern/components/header-mobile/index.module.css.js +1 -1
  62. package/modern/components/image-preview/index.css +17 -17
  63. package/modern/components/image-preview/index.module.css.js +1 -1
  64. package/modern/components/image-viewer/index.css +148 -124
  65. package/modern/components/image-viewer/index.module.css.js +1 -1
  66. package/modern/components/image-viewer/index.module.css.js.map +1 -1
  67. package/modern/components/image-viewer/video/index.css +7 -7
  68. package/modern/components/image-viewer/video/index.module.css.js +1 -1
  69. package/modern/components/info-bar/index.css +3 -3
  70. package/modern/components/info-bar/index.module.css.js +1 -1
  71. package/modern/components/navigation-bar/index.css +8 -8
  72. package/modern/components/navigation-bar/index.module.css.js +1 -1
  73. package/modern/components/subtitles/index.css +3 -3
  74. package/modern/components/subtitles/index.module.css.js +1 -1
  75. package/modern/index.css +9 -9
  76. package/modern/index.module.css.js +1 -1
  77. package/moderncssm/components/image-viewer/index.module.css +125 -125
  78. package/package.json +10 -10
  79. package/src/components/image-viewer/index.module.css +120 -120
@@ -7,10 +7,10 @@
7
7
  --gap-4: var(--gap-2xs);
8
8
  --gap-8: var(--gap-xs);
9
9
  }
10
- .gallery__description_hcmd3 {
10
+ .gallery__description_1a6rt {
11
11
  text-align: center;
12
12
  }
13
- .gallery__infoWrapper_hcmd3 {
13
+ .gallery__infoWrapper_1a6rt {
14
14
  background-color: var(--color-static-neutral-0-inverted);
15
15
  display: flex;
16
16
  align-items: center;
@@ -19,7 +19,7 @@
19
19
  position: relative;
20
20
  height: 48px;
21
21
  }
22
- .gallery__infoWrapper_hcmd3.gallery__video_hcmd3 {
22
+ .gallery__infoWrapper_1a6rt.gallery__video_1a6rt {
23
23
  padding: 0 var(--gap-4) var(--gap-4);
24
24
  justify-content: space-between;
25
25
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"description":"gallery__description_hcmd3","infoWrapper":"gallery__infoWrapper_hcmd3","video":"gallery__video_hcmd3"};
3
+ const styles = {"description":"gallery__description_1a6rt","infoWrapper":"gallery__infoWrapper_1a6rt","video":"gallery__video_1a6rt"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -13,7 +13,7 @@
13
13
  --gap-12: var(--gap-s);
14
14
  --gap-24: var(--gap-xl);
15
15
  }
16
- .gallery__component_ipki0 {
16
+ .gallery__component_y7sqx {
17
17
  display: flex;
18
18
  flex-wrap: nowrap;
19
19
  align-content: center;
@@ -25,25 +25,25 @@
25
25
  scrollbar-width: none;
26
26
  background-color: var(--color-static-neutral-0-inverted);
27
27
  }
28
- .gallery__component_ipki0.gallery__mobile_ipki0 {
28
+ .gallery__component_y7sqx.gallery__mobile_y7sqx {
29
29
  padding: var(--gap-8) var(--gap-24);
30
30
  }
31
- .gallery__component_ipki0::-webkit-scrollbar {
31
+ .gallery__component_y7sqx::-webkit-scrollbar {
32
32
  display: none;
33
33
  }
34
- .gallery__previews_ipki0 {
34
+ .gallery__previews_y7sqx {
35
35
  display: flex;
36
36
  }
37
- .gallery__preview_ipki0 {
37
+ .gallery__preview_y7sqx {
38
38
  flex-shrink: 0;
39
39
  margin-right: var(--gap-4);
40
40
  }
41
- .gallery__preview_ipki0.gallery__mobile_ipki0 {
41
+ .gallery__preview_y7sqx.gallery__mobile_y7sqx {
42
42
  margin-right: var(--gap-2);
43
43
  }
44
- .gallery__preview_ipki0:first-child {
44
+ .gallery__preview_y7sqx:first-child {
45
45
  margin-left: auto;
46
46
  }
47
- .gallery__preview_ipki0:last-child {
47
+ .gallery__preview_y7sqx:last-child {
48
48
  margin-right: auto;
49
49
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"gallery__component_ipki0","mobile":"gallery__mobile_ipki0","preview":"gallery__preview_ipki0"};
3
+ const styles = {"component":"gallery__component_y7sqx","mobile":"gallery__mobile_y7sqx","preview":"gallery__preview_y7sqx"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -5,7 +5,7 @@
5
5
  --gap-16: var(--gap-m);
6
6
  --gap-32: var(--gap-2xl);
7
7
  }
8
- .gallery__subtitles_2n7x6 {
8
+ .gallery__subtitles_16707 {
9
9
  position: absolute;
10
10
  align-self: flex-end;
11
11
  padding: var(--gap-0) var(--gap-32);
@@ -18,10 +18,10 @@
18
18
  opacity 500ms ease-in-out,
19
19
  margin-bottom 270ms ease-in-out;
20
20
  }
21
- .gallery__subtitles_2n7x6.gallery__mobile_2n7x6 {
21
+ .gallery__subtitles_16707.gallery__mobile_16707 {
22
22
  position: static;
23
23
  position: initial;
24
24
  }
25
- .gallery__hideSubtitles_2n7x6 {
25
+ .gallery__hideSubtitles_16707 {
26
26
  opacity: 0;
27
27
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"subtitles":"gallery__subtitles_2n7x6","mobile":"gallery__mobile_2n7x6","hideSubtitles":"gallery__hideSubtitles_2n7x6"};
3
+ const styles = {"subtitles":"gallery__subtitles_16707","mobile":"gallery__mobile_16707","hideSubtitles":"gallery__hideSubtitles_16707"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
package/modern/index.css CHANGED
@@ -13,7 +13,7 @@
13
13
  --sat: env(safe-area-inset-top, var(--gap-0));
14
14
  --sab: env(safe-area-inset-bottom, var(--gap-0));
15
15
  }
16
- .gallery__container_4v78w {
16
+ .gallery__container_10cj0 {
17
17
  position: relative;
18
18
  overflow-x: hidden;
19
19
  overflow-y: auto;
@@ -26,16 +26,16 @@
26
26
  padding-top: var(--sat);
27
27
  padding-bottom: var(--sab);
28
28
  }
29
- .gallery__container_4v78w.gallery__mobile_4v78w {
29
+ .gallery__container_10cj0.gallery__mobile_10cj0 {
30
30
  overflow: hidden;
31
31
  }
32
- .gallery__modal_4v78w {
32
+ .gallery__modal_10cj0 {
33
33
  flex-grow: 1;
34
34
  width: 100vw;
35
35
  height: 100vh;
36
36
  background: transparent;
37
37
  }
38
- .gallery__navigationVideo_4v78w {
38
+ .gallery__navigationVideo_10cj0 {
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_4v78w {
47
+ .gallery__hide_10cj0 {
48
48
  transform: translateY(114px);
49
49
  }
50
- .gallery__hideInfo_4v78w {
50
+ .gallery__hideInfo_10cj0 {
51
51
  transform: translateY(48px);
52
52
  }
53
- .gallery__bottomButton_4v78w {
53
+ .gallery__bottomButton_10cj0 {
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_4v78w {
58
+ .gallery__subtitles_10cj0 {
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_4v78w {
69
+ .gallery__hideSubtitles_10cj0 {
70
70
  opacity: 0;
71
71
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"container":"gallery__container_4v78w","mobile":"gallery__mobile_4v78w","modal":"gallery__modal_4v78w","navigationVideo":"gallery__navigationVideo_4v78w","hide":"gallery__hide_4v78w","hideInfo":"gallery__hideInfo_4v78w","bottomButton":"gallery__bottomButton_4v78w"};
3
+ const styles = {"container":"gallery__container_10cj0","mobile":"gallery__mobile_10cj0","modal":"gallery__modal_10cj0","navigationVideo":"gallery__navigationVideo_10cj0","hide":"gallery__hide_10cj0","hideInfo":"gallery__hideInfo_10cj0","bottomButton":"gallery__bottomButton_10cj0"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -66,158 +66,158 @@
66
66
  opacity: 0;
67
67
  z-index: -1000;
68
68
  }
69
- }
70
69
 
71
- .swiper {
72
- display: flex;
73
- width: 100%;
74
- height: 100%;
75
- max-height: calc(100vh - 168px);
76
- padding: var(--gap-32) var(--gap-16);
77
- box-sizing: border-box;
78
- }
79
-
80
- .swiper.mobile {
81
- max-height: calc(100vh - 210px);
70
+ .swiper {
71
+ display: flex;
72
+ width: 100%;
73
+ height: 100%;
74
+ max-height: calc(100vh - 168px);
75
+ padding: var(--gap-32) var(--gap-16);
76
+ box-sizing: border-box;
82
77
  }
83
78
 
84
- .swiper.mobileVideo {
85
- max-height: 100vh;
79
+ .swiper.mobile {
80
+ max-height: calc(100vh - 210px);
81
+ }
82
+
83
+ .swiper.mobileVideo {
84
+ max-height: 100vh;
85
+ }
86
+
87
+ .singleSlideContainer {
88
+ display: flex;
89
+ width: 100%;
90
+ height: 100%;
91
+
92
+ max-height: calc(100vh - 80px);
93
+ padding: var(--gap-32);
94
+ box-sizing: border-box;
86
95
  }
87
96
 
88
- .singleSlideContainer {
89
- display: flex;
90
- width: 100%;
91
- height: 100%;
97
+ .singleSlideContainer.mobile {
98
+ max-height: calc(100vh - 174px);
99
+ padding: 0;
100
+ }
92
101
 
93
- max-height: calc(100vh - 80px);
94
- padding: var(--gap-32);
95
- box-sizing: border-box;
96
- }
102
+ .singleSlideContainer.mobileVideo {
103
+ max-height: 100vh;
104
+ }
97
105
 
98
- .singleSlideContainer.mobile {
99
- max-height: calc(100vh - 174px);
100
- padding: 0;
106
+ .hidden {
107
+ display: none;
101
108
  }
102
109
 
103
- .singleSlideContainer.mobileVideo {
104
- max-height: 100vh;
110
+ .slide {
111
+ position: relative;
112
+ display: flex;
113
+ justify-content: center;
114
+ align-items: center;
115
+ width: 100%;
116
+ height: 100%;
105
117
  }
106
118
 
107
- .hidden {
108
- display: none;
109
- }
119
+ .slideLoading {
120
+ background-color: var(--color-static-neutral-translucent-100-inverted);
121
+ border-radius: var(--border-radius-8);
122
+ }
110
123
 
111
- .slide {
112
- position: relative;
113
- display: flex;
114
- justify-content: center;
115
- align-items: center;
116
- width: 100%;
117
- height: 100%;
118
- }
124
+ .spinner {
125
+ position: absolute;
126
+ color: var(--color-static-neutral-translucent-1300-inverted);
127
+ }
119
128
 
120
- .slideLoading {
121
- background-color: var(--color-static-neutral-translucent-100-inverted);
122
- border-radius: var(--border-radius-8);
123
- }
129
+ .image {
130
+ width: 0;
131
+ height: 0;
132
+ -webkit-user-select: none;
133
+ -moz-user-select: none;
134
+ user-select: none;
135
+ border-radius: var(--border-radius-8);
136
+ }
124
137
 
125
- .spinner {
126
- position: absolute;
127
- color: var(--color-static-neutral-translucent-1300-inverted);
128
- }
138
+ .image.mobile {
139
+ border-radius: var(--border-radius-0);
140
+ }
129
141
 
130
- .image {
131
- width: 0;
132
- height: 0;
133
- -webkit-user-select: none;
134
- -moz-user-select: none;
135
- user-select: none;
136
- border-radius: var(--border-radius-8);
137
- }
142
+ .smallImage {
143
+ position: relative;
144
+ width: auto;
145
+ height: auto;
146
+ -webkit-user-select: none;
147
+ -moz-user-select: none;
148
+ user-select: none;
149
+ }
138
150
 
139
- .image.mobile {
140
- border-radius: var(--border-radius-0);
151
+ .verticalImageFit {
152
+ width: auto;
153
+ height: 100%;
141
154
  }
142
155
 
143
- .smallImage {
144
- position: relative;
145
- width: auto;
146
- height: auto;
147
- -webkit-user-select: none;
148
- -moz-user-select: none;
149
- user-select: none;
150
- }
156
+ .horizontalImageFit {
157
+ width: 100%;
158
+ height: auto;
159
+ }
151
160
 
152
- .verticalImageFit {
153
- width: auto;
154
- height: 100%;
155
- }
161
+ .arrow {
162
+ display: flex;
163
+ flex-direction: column;
164
+ justify-content: center;
165
+ align-items: center;
166
+ flex-shrink: 0;
167
+ width: 96px;
168
+ height: 100%;
169
+ cursor: pointer;
170
+ color: var(--color-static-neutral-translucent-1300-inverted);
171
+ transition: background-color 0.15s ease-in-out;
172
+ outline: none;
173
+ }
156
174
 
157
- .horizontalImageFit {
158
- width: 100%;
159
- height: auto;
160
- }
175
+ .arrow:hover {
176
+ background-color: var(--color-static-neutral-0-inverted-hover);
177
+ }
161
178
 
162
- .arrow {
163
- display: flex;
164
- flex-direction: column;
165
- justify-content: center;
166
- align-items: center;
167
- flex-shrink: 0;
168
- width: 96px;
169
- height: 100%;
170
- cursor: pointer;
171
- color: var(--color-static-neutral-translucent-1300-inverted);
172
- transition: background-color 0.15s ease-in-out;
173
- outline: none;
174
- }
179
+ .arrow:active {
180
+ background-color: var(--color-static-neutral-0-inverted-press);
181
+ }
175
182
 
176
- .arrow:hover {
177
- background-color: var(--color-static-neutral-0-inverted-hover);
183
+ .focused {
184
+ outline: 2px solid var(--focus-color);
185
+ outline-offset: 2px;
178
186
  }
179
187
 
180
- .arrow:active {
181
- background-color: var(--color-static-neutral-0-inverted-press);
188
+ .placeholder {
189
+ display: flex;
190
+ justify-content: center;
191
+ align-items: center;
192
+ width: 100%;
193
+ height: 100%;
194
+ border-radius: var(--border-radius-8);
195
+ background-color: var(--color-static-neutral-300-inverted);
182
196
  }
183
197
 
184
- .focused {
185
- outline: 2px solid var(--focus-color);
186
- outline-offset: 2px;
187
- }
188
-
189
- .placeholder {
190
- display: flex;
191
- justify-content: center;
192
- align-items: center;
193
- width: 100%;
194
- height: 100%;
195
- border-radius: var(--border-radius-8);
196
- background-color: var(--color-static-neutral-300-inverted);
197
- }
198
-
199
- .brokenImgWrapper {
200
- position: relative;
201
- display: flex;
202
- flex-direction: column;
203
- align-items: center;
204
- width: 150px;
205
- text-align: center;
206
- }
198
+ .brokenImgWrapper {
199
+ position: relative;
200
+ display: flex;
201
+ flex-direction: column;
202
+ align-items: center;
203
+ width: 150px;
204
+ text-align: center;
205
+ }
207
206
 
208
- .brokenImgIcon {
209
- width: 80px;
210
- height: 80px;
211
- margin-bottom: var(--gap-4);
212
- }
207
+ .brokenImgIcon {
208
+ width: 80px;
209
+ height: 80px;
210
+ margin-bottom: var(--gap-4);
211
+ }
213
212
 
214
- .fullScreenImage {
215
- width: 100%;
216
- height: auto;
217
- background-color: var(--color-light-base-bg-primary);
218
- }
213
+ .fullScreenImage {
214
+ width: 100%;
215
+ height: auto;
216
+ background-color: var(--color-light-base-bg-primary);
217
+ }
219
218
 
220
- .fullScreenVideo {
221
- width: calc(100% - 192px);
222
- max-height: calc(100vh - 82px);
219
+ .fullScreenVideo {
220
+ width: calc(100% - 192px);
221
+ max-height: calc(100vh - 82px);
222
+ }
223
223
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-gallery",
3
- "version": "7.1.8",
3
+ "version": "7.1.9",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -13,15 +13,15 @@
13
13
  "build": "rollup -c ../../tools/rollup/rollup.config.mjs --silent"
14
14
  },
15
15
  "dependencies": {
16
- "@alfalab/core-components-base-modal": "^7.1.5",
17
- "@alfalab/core-components-button": "^13.1.3",
18
- "@alfalab/core-components-icon-button": "^8.0.6",
19
- "@alfalab/core-components-icon-view": "^5.0.3",
20
- "@alfalab/core-components-mq": "^6.0.4",
21
- "@alfalab/core-components-spinner": "^6.0.4",
22
- "@alfalab/core-components-tooltip": "^9.0.13",
23
- "@alfalab/core-components-typography": "^6.0.6",
24
- "@alfalab/hooks": "^1.13.1",
16
+ "@alfalab/core-components-base-modal": "^7.1.6",
17
+ "@alfalab/core-components-button": "^13.1.4",
18
+ "@alfalab/core-components-icon-button": "^8.0.7",
19
+ "@alfalab/core-components-icon-view": "^5.0.4",
20
+ "@alfalab/core-components-mq": "^6.0.5",
21
+ "@alfalab/core-components-spinner": "^6.0.5",
22
+ "@alfalab/core-components-tooltip": "^9.0.14",
23
+ "@alfalab/core-components-typography": "^6.0.7",
24
+ "@alfalab/hooks": "^1.17.0",
25
25
  "@alfalab/icons-glyph": "^2.260.0",
26
26
  "classnames": "^2.5.1",
27
27
  "element-closest": "^3.0.2",