@alfalab/core-components-gallery 3.1.12 → 3.1.13
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/CHANGELOG.md +8 -0
- package/dist/Component.js +3 -3
- package/dist/components/header/Component.js +2 -2
- package/dist/components/header/buttons.js +1 -1
- package/dist/components/header/index.css +3 -3
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-info-block/Component.js +1 -1
- package/dist/components/header-info-block/index.css +5 -5
- package/dist/components/image-preview/Component.js +1 -1
- package/dist/components/image-preview/index.css +12 -12
- package/dist/components/image-viewer/component.js +2 -2
- package/dist/components/image-viewer/index.css +19 -19
- package/dist/components/image-viewer/index.js +2 -2
- package/dist/components/image-viewer/slide.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/navigation-bar/Component.js +1 -1
- package/dist/components/navigation-bar/index.css +6 -6
- package/dist/esm/Component.js +3 -3
- package/dist/esm/components/header/Component.js +2 -2
- package/dist/esm/components/header/buttons.js +1 -1
- package/dist/esm/components/header/index.css +3 -3
- package/dist/esm/components/header/index.js +1 -1
- package/dist/esm/components/header-info-block/Component.js +1 -1
- package/dist/esm/components/header-info-block/index.css +5 -5
- package/dist/esm/components/image-preview/Component.js +1 -1
- package/dist/esm/components/image-preview/index.css +12 -12
- package/dist/esm/components/image-viewer/component.js +2 -2
- package/dist/esm/components/image-viewer/index.css +19 -19
- package/dist/esm/components/image-viewer/index.js +2 -2
- package/dist/esm/components/image-viewer/slide.js +1 -1
- package/dist/esm/components/index.js +2 -2
- package/dist/esm/components/navigation-bar/Component.js +1 -1
- package/dist/esm/components/navigation-bar/index.css +6 -6
- package/dist/esm/index.css +3 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/{slide-c8db847d.d.ts → slide-956ee8ab.d.ts} +0 -0
- package/dist/esm/{slide-c8db847d.js → slide-956ee8ab.js} +1 -1
- package/dist/esm/{tslib.es6-b6485de9.d.ts → tslib.es6-e4a05f42.d.ts} +0 -0
- package/dist/esm/{tslib.es6-b6485de9.js → tslib.es6-e4a05f42.js} +0 -0
- package/dist/index.css +3 -3
- package/dist/index.js +2 -2
- package/dist/modern/Component.js +2 -2
- package/dist/modern/components/header/Component.js +1 -1
- package/dist/modern/components/header/index.css +3 -3
- package/dist/modern/components/header-info-block/Component.js +1 -1
- package/dist/modern/components/header-info-block/index.css +5 -5
- package/dist/modern/components/image-preview/Component.js +1 -1
- package/dist/modern/components/image-preview/index.css +12 -12
- package/dist/modern/components/image-viewer/component.js +1 -1
- package/dist/modern/components/image-viewer/index.css +19 -19
- package/dist/modern/components/image-viewer/index.js +1 -1
- package/dist/modern/components/image-viewer/slide.js +1 -1
- package/dist/modern/components/index.js +1 -1
- package/dist/modern/components/navigation-bar/Component.js +1 -1
- package/dist/modern/components/navigation-bar/index.css +6 -6
- package/dist/modern/index.css +3 -3
- package/dist/modern/index.js +1 -1
- package/dist/modern/{slide-484c736f.d.ts → slide-736efb42.d.ts} +0 -0
- package/dist/modern/{slide-484c736f.js → slide-736efb42.js} +1 -1
- package/dist/{slide-591f3f98.d.ts → slide-c63a7a7d.d.ts} +0 -0
- package/dist/{slide-591f3f98.js → slide-c63a7a7d.js} +1 -1
- package/dist/{tslib.es6-240ff697.d.ts → tslib.es6-41186131.d.ts} +0 -0
- package/dist/{tslib.es6-240ff697.js → tslib.es6-41186131.js} +0 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18txx */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-link: #007aff;
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
:root {
|
|
30
30
|
--gallery-broken-image-icon: url('https://alfabank.gcdn.co/icons/art_no-image_s.svg');
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.gallery__component_efiuv {
|
|
33
33
|
display: flex;
|
|
34
34
|
flex-grow: 1;
|
|
35
35
|
justify-content: center;
|
|
36
36
|
align-items: center;
|
|
37
37
|
background-color: var(--color-light-bg-primary-inverted-alpha-50);
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.gallery__swiper_efiuv {
|
|
40
40
|
display: flex;
|
|
41
41
|
width: 100%;
|
|
42
42
|
height: 100%;
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
padding: var(--gap-2xl) var(--gap-m);
|
|
47
47
|
box-sizing: border-box;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.gallery__singleSlide_efiuv .gallery__swiper_efiuv {
|
|
50
50
|
max-height: calc(100vh - 80px);
|
|
51
51
|
padding: var(--gap-2xl);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.gallery__hidden_efiuv {
|
|
54
54
|
display: none;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.gallery__slide_efiuv {
|
|
57
57
|
position: relative;
|
|
58
58
|
display: flex;
|
|
59
59
|
justify-content: center;
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
width: 100%;
|
|
62
62
|
height: 100%;
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.gallery__slideLoading_efiuv {
|
|
65
65
|
/* TODO: цвета нет в палитре */
|
|
66
66
|
background-color: #e9eaeb;
|
|
67
67
|
border-radius: var(--border-radius-m);
|
|
68
68
|
}
|
|
69
|
-
.
|
|
69
|
+
.gallery__image_efiuv {
|
|
70
70
|
width: 0;
|
|
71
71
|
height: 0;
|
|
72
72
|
-webkit-user-select: none;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
background-color: var(--color-light-bg-primary);
|
|
75
75
|
border-radius: var(--border-radius-m);
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.gallery__smallImage_efiuv {
|
|
78
78
|
position: relative;
|
|
79
79
|
width: auto;
|
|
80
80
|
height: auto;
|
|
@@ -82,15 +82,15 @@
|
|
|
82
82
|
user-select: none;
|
|
83
83
|
background-color: var(--color-light-bg-primary);
|
|
84
84
|
}
|
|
85
|
-
.
|
|
85
|
+
.gallery__verticalImageFit_efiuv {
|
|
86
86
|
width: auto;
|
|
87
87
|
height: 100%;
|
|
88
88
|
}
|
|
89
|
-
.
|
|
89
|
+
.gallery__horizontalImageFit_efiuv {
|
|
90
90
|
width: 100%;
|
|
91
91
|
height: auto;
|
|
92
92
|
}
|
|
93
|
-
.
|
|
93
|
+
.gallery__arrow_efiuv {
|
|
94
94
|
display: flex;
|
|
95
95
|
flex-direction: column;
|
|
96
96
|
justify-content: center;
|
|
@@ -103,17 +103,17 @@
|
|
|
103
103
|
transition: background-color 0.15s ease-in-out;
|
|
104
104
|
outline: none
|
|
105
105
|
}
|
|
106
|
-
.
|
|
106
|
+
.gallery__arrow_efiuv:hover {
|
|
107
107
|
background-color: var(--color-light-bg-primary-inverted-alpha-10);
|
|
108
108
|
}
|
|
109
|
-
.
|
|
109
|
+
.gallery__arrow_efiuv:active {
|
|
110
110
|
background-color: var(--color-light-bg-primary-inverted-alpha-20);
|
|
111
111
|
}
|
|
112
|
-
.
|
|
112
|
+
.gallery__focused_efiuv {
|
|
113
113
|
outline: 2px solid var(--focus-color);
|
|
114
114
|
outline-offset: 2px;
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
.gallery__placeholder_efiuv {
|
|
117
117
|
display: flex;
|
|
118
118
|
justify-content: center;
|
|
119
119
|
align-items: center;
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
border-radius: var(--border-radius-m);
|
|
123
123
|
background-color: var(--color-light-bg-primary);
|
|
124
124
|
}
|
|
125
|
-
.
|
|
125
|
+
.gallery__brokenImgWrapper_efiuv {
|
|
126
126
|
position: relative;
|
|
127
127
|
display: flex;
|
|
128
128
|
flex-direction: column;
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
width: 150px;
|
|
131
131
|
text-align: center;
|
|
132
132
|
}
|
|
133
|
-
.
|
|
133
|
+
.gallery__brokenImgIcon_efiuv {
|
|
134
134
|
width: 80px;
|
|
135
135
|
height: 80px;
|
|
136
136
|
margin-bottom: var(--gap-2xs);
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
background-size: contain;
|
|
139
139
|
background-repeat: no-repeat;
|
|
140
140
|
}
|
|
141
|
-
.
|
|
141
|
+
.gallery__fullScreenImage_efiuv {
|
|
142
142
|
width: 100%;
|
|
143
143
|
height: auto;
|
|
144
144
|
background-color: var(--color-light-bg-primary);
|
|
@@ -11,5 +11,5 @@ import 'element-closest';
|
|
|
11
11
|
import 'swiper/swiper.min.css';
|
|
12
12
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
13
13
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
14
|
-
import '../../slide-
|
|
14
|
+
import '../../slide-736efb42.js';
|
|
15
15
|
export { ImageViewer } from './component.js';
|
|
@@ -23,5 +23,5 @@ import 'element-closest';
|
|
|
23
23
|
import 'swiper/swiper.min.css';
|
|
24
24
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
25
25
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
26
|
-
import '../slide-
|
|
26
|
+
import '../slide-736efb42.js';
|
|
27
27
|
export { ImageViewer } from './image-viewer/component.js';
|
|
@@ -6,7 +6,7 @@ import { ImagePreview } from '../image-preview/Component.js';
|
|
|
6
6
|
import { getImageKey } from '../../utils/utils.js';
|
|
7
7
|
import { TestIds } from '../../utils/constants.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"
|
|
9
|
+
var styles = {"component":"gallery__component_1ui4o","preview":"gallery__preview_1ui4o"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const MIN_SCROLL_STEP = 24;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1h80q */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-tertiary-inverted: #3c4c5d;
|
|
4
4
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
--gap-3xs: 2px;
|
|
15
15
|
--gap-xl: 24px;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
.gallery__component_1ui4o {
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-wrap: nowrap;
|
|
20
20
|
align-content: center;
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
28
28
|
scrollbar-width: none
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.gallery__component_1ui4o::-webkit-scrollbar {
|
|
31
31
|
display: none;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.gallery__preview_1ui4o {
|
|
34
34
|
flex-shrink: 0;
|
|
35
35
|
margin: 0 var(--gap-3xs)
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.gallery__preview_1ui4o:first-child {
|
|
38
38
|
margin-left: auto;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.gallery__preview_1ui4o:last-child {
|
|
41
41
|
margin-right: auto;
|
|
42
42
|
}
|
package/dist/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1m5al */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.gallery__container_1qccd {
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
justify-content: space-between;
|
|
14
14
|
height: 100%;
|
|
15
15
|
width: 100%;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
.gallery__modal_1qccd {
|
|
18
18
|
flex-grow: 1;
|
|
19
19
|
width: 100%;
|
|
20
20
|
background: transparent;
|
package/dist/modern/index.js
CHANGED
|
@@ -24,6 +24,6 @@ import 'element-closest';
|
|
|
24
24
|
import 'swiper/swiper.min.css';
|
|
25
25
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
26
26
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
27
|
-
import './slide-
|
|
27
|
+
import './slide-736efb42.js';
|
|
28
28
|
import './components/image-viewer/component.js';
|
|
29
29
|
export { Gallery } from './Component.js';
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ import { isSmallImage, getImageAlt } from './utils/utils.js';
|
|
|
4
4
|
import { TestIds } from './utils/constants.js';
|
|
5
5
|
import { Typography } from '@alfalab/core-components-typography/dist/modern';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"
|
|
7
|
+
var styles = {"component":"gallery__component_efiuv","swiper":"gallery__swiper_efiuv","singleSlide":"gallery__singleSlide_efiuv","hidden":"gallery__hidden_efiuv","slide":"gallery__slide_efiuv","slideLoading":"gallery__slideLoading_efiuv","image":"gallery__image_efiuv","smallImage":"gallery__smallImage_efiuv","verticalImageFit":"gallery__verticalImageFit_efiuv","horizontalImageFit":"gallery__horizontalImageFit_efiuv","arrow":"gallery__arrow_efiuv","focused":"gallery__focused_efiuv","placeholder":"gallery__placeholder_efiuv","brokenImgWrapper":"gallery__brokenImgWrapper_efiuv","brokenImgIcon":"gallery__brokenImgIcon_efiuv","fullScreenImage":"gallery__fullScreenImage_efiuv"};
|
|
8
8
|
require('./components/image-viewer/index.css')
|
|
9
9
|
|
|
10
10
|
const Slide = ({ isActive, meta, swiperAspectRatio, imageAspectRatio, image, index, swiperHeight, slideVisible, handleLoad, handleLoadError, }) => {
|
|
File without changes
|
|
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"
|
|
14
|
+
var styles = {"component":"gallery__component_efiuv","swiper":"gallery__swiper_efiuv","singleSlide":"gallery__singleSlide_efiuv","hidden":"gallery__hidden_efiuv","slide":"gallery__slide_efiuv","slideLoading":"gallery__slideLoading_efiuv","image":"gallery__image_efiuv","smallImage":"gallery__smallImage_efiuv","verticalImageFit":"gallery__verticalImageFit_efiuv","horizontalImageFit":"gallery__horizontalImageFit_efiuv","arrow":"gallery__arrow_efiuv","focused":"gallery__focused_efiuv","placeholder":"gallery__placeholder_efiuv","brokenImgWrapper":"gallery__brokenImgWrapper_efiuv","brokenImgIcon":"gallery__brokenImgIcon_efiuv","fullScreenImage":"gallery__fullScreenImage_efiuv"};
|
|
15
15
|
require('./components/image-viewer/index.css')
|
|
16
16
|
|
|
17
17
|
var Slide = function (_a) {
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-gallery",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alfalab/core-components-base-modal": "^4.0.2",
|
|
23
|
-
"@alfalab/core-components-icon-button": "^4.1.
|
|
24
|
-
"@alfalab/core-components-tooltip": "^5.1.
|
|
23
|
+
"@alfalab/core-components-icon-button": "^4.1.11",
|
|
24
|
+
"@alfalab/core-components-tooltip": "^5.1.3",
|
|
25
25
|
"@alfalab/core-components-typography": "^2.5.3",
|
|
26
26
|
"@alfalab/hooks": "^1.4.1",
|
|
27
27
|
"@alfalab/icons-glyph": "^2.16.0",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"element-closest": "3.0.2",
|
|
30
30
|
"swiper": "6.8.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "d86d1207351d2e8dceb0519cbb0b64c06aaa6884"
|
|
33
33
|
}
|