@alfalab/core-components-gallery 3.2.9 → 3.2.10
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/Component.js +3 -3
- package/components/header/Component.js +2 -2
- package/components/header/buttons.js +1 -1
- package/components/header/index.css +3 -3
- package/components/header/index.js +1 -1
- package/components/header-info-block/Component.js +1 -1
- package/components/header-info-block/index.css +5 -5
- package/components/image-preview/Component.js +1 -1
- package/components/image-preview/index.css +13 -13
- package/components/image-viewer/component.js +2 -2
- package/components/image-viewer/index.css +20 -20
- package/components/image-viewer/index.js +2 -2
- package/components/image-viewer/slide.js +1 -1
- package/components/index.js +2 -2
- package/components/navigation-bar/Component.js +1 -1
- package/components/navigation-bar/index.css +6 -6
- package/cssm/components/image-preview/index.module.css +1 -1
- package/cssm/components/image-viewer/index.module.css +1 -1
- package/esm/Component.js +3 -3
- package/esm/components/header/Component.js +2 -2
- package/esm/components/header/buttons.js +1 -1
- package/esm/components/header/index.css +3 -3
- package/esm/components/header/index.js +1 -1
- package/esm/components/header-info-block/Component.js +1 -1
- package/esm/components/header-info-block/index.css +5 -5
- package/esm/components/image-preview/Component.js +1 -1
- package/esm/components/image-preview/index.css +13 -13
- package/esm/components/image-viewer/component.js +2 -2
- package/esm/components/image-viewer/index.css +20 -20
- package/esm/components/image-viewer/index.js +2 -2
- package/esm/components/image-viewer/slide.js +1 -1
- package/esm/components/index.js +2 -2
- package/esm/components/navigation-bar/Component.js +1 -1
- package/esm/components/navigation-bar/index.css +6 -6
- package/esm/index.css +3 -3
- package/esm/index.js +2 -2
- package/esm/{slide-33e235a0.d.ts → slide-cd819541.d.ts} +0 -0
- package/esm/{slide-33e235a0.js → slide-cd819541.js} +1 -1
- package/esm/{tslib.es6-1aba2898.d.ts → tslib.es6-50267c03.d.ts} +0 -0
- package/esm/{tslib.es6-1aba2898.js → tslib.es6-50267c03.js} +0 -0
- package/index.css +3 -3
- package/index.js +2 -2
- package/modern/Component.js +2 -2
- package/modern/components/header/Component.js +1 -1
- package/modern/components/header/index.css +3 -3
- package/modern/components/header-info-block/Component.js +1 -1
- package/modern/components/header-info-block/index.css +5 -5
- package/modern/components/image-preview/Component.js +1 -1
- package/modern/components/image-preview/index.css +13 -13
- package/modern/components/image-viewer/component.js +1 -1
- package/modern/components/image-viewer/index.css +20 -20
- package/modern/components/image-viewer/index.js +1 -1
- package/modern/components/image-viewer/slide.js +1 -1
- package/modern/components/index.js +1 -1
- package/modern/components/navigation-bar/Component.js +1 -1
- package/modern/components/navigation-bar/index.css +6 -6
- package/modern/index.css +3 -3
- package/modern/index.js +1 -1
- package/modern/{slide-ae1427a7.d.ts → slide-1fa90d5d.d.ts} +0 -0
- package/modern/{slide-ae1427a7.js → slide-1fa90d5d.js} +1 -1
- package/package.json +3 -3
- package/{slide-bbc8b1f6.d.ts → slide-46fd82a6.d.ts} +0 -0
- package/{slide-bbc8b1f6.js → slide-46fd82a6.js} +1 -1
- /package/{tslib.es6-79ad7e3e.d.ts → tslib.es6-0ff708bb.d.ts} +0 -0
- /package/{tslib.es6-79ad7e3e.js → tslib.es6-0ff708bb.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: m3dhx */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-link: #007aff;
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
--focus-color: var(--color-light-border-link);
|
|
28
28
|
}
|
|
29
29
|
:root {
|
|
30
|
-
--gallery-broken-image-icon: url('https://alfabank.
|
|
30
|
+
--gallery-broken-image-icon: url('https://alfabank.servicecdn.ru/icons/art_no-image_s.svg');
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.gallery__component_da11v {
|
|
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_da11v {
|
|
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_da11v .gallery__swiper_da11v {
|
|
50
50
|
max-height: calc(100vh - 80px);
|
|
51
51
|
padding: var(--gap-2xl);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.gallery__hidden_da11v {
|
|
54
54
|
display: none;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.gallery__slide_da11v {
|
|
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_da11v {
|
|
65
65
|
/* TODO: цвета нет в палитре */
|
|
66
66
|
background-color: #e9eaeb;
|
|
67
67
|
border-radius: var(--border-radius-m);
|
|
68
68
|
}
|
|
69
|
-
.
|
|
69
|
+
.gallery__image_da11v {
|
|
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_da11v {
|
|
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_da11v {
|
|
86
86
|
width: auto;
|
|
87
87
|
height: 100%;
|
|
88
88
|
}
|
|
89
|
-
.
|
|
89
|
+
.gallery__horizontalImageFit_da11v {
|
|
90
90
|
width: 100%;
|
|
91
91
|
height: auto;
|
|
92
92
|
}
|
|
93
|
-
.
|
|
93
|
+
.gallery__arrow_da11v {
|
|
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_da11v:hover {
|
|
107
107
|
background-color: var(--color-light-bg-primary-inverted-alpha-10);
|
|
108
108
|
}
|
|
109
|
-
.
|
|
109
|
+
.gallery__arrow_da11v:active {
|
|
110
110
|
background-color: var(--color-light-bg-primary-inverted-alpha-20);
|
|
111
111
|
}
|
|
112
|
-
.
|
|
112
|
+
.gallery__focused_da11v {
|
|
113
113
|
outline: 2px solid var(--focus-color);
|
|
114
114
|
outline-offset: 2px;
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
.gallery__placeholder_da11v {
|
|
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_da11v {
|
|
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_da11v {
|
|
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_da11v {
|
|
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-1fa90d5d.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-1fa90d5d.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_u5bzv","preview":"gallery__preview_u5bzv"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const MIN_SCROLL_STEP = 24;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 142el */
|
|
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_u5bzv {
|
|
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_u5bzv::-webkit-scrollbar {
|
|
31
31
|
display: none;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.gallery__preview_u5bzv {
|
|
34
34
|
flex-shrink: 0;
|
|
35
35
|
margin: 0 var(--gap-3xs)
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.gallery__preview_u5bzv:first-child {
|
|
38
38
|
margin-left: auto;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.gallery__preview_u5bzv:last-child {
|
|
41
41
|
margin-right: auto;
|
|
42
42
|
}
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 12153 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.gallery__container_jpvrb {
|
|
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_jpvrb {
|
|
18
18
|
flex-grow: 1;
|
|
19
19
|
width: 100%;
|
|
20
20
|
background: transparent;
|
package/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-1fa90d5d.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/modern';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"
|
|
7
|
+
var styles = {"component":"gallery__component_da11v","swiper":"gallery__swiper_da11v","singleSlide":"gallery__singleSlide_da11v","hidden":"gallery__hidden_da11v","slide":"gallery__slide_da11v","slideLoading":"gallery__slideLoading_da11v","image":"gallery__image_da11v","smallImage":"gallery__smallImage_da11v","verticalImageFit":"gallery__verticalImageFit_da11v","horizontalImageFit":"gallery__horizontalImageFit_da11v","arrow":"gallery__arrow_da11v","focused":"gallery__focused_da11v","placeholder":"gallery__placeholder_da11v","brokenImgWrapper":"gallery__brokenImgWrapper_da11v","brokenImgIcon":"gallery__brokenImgIcon_da11v","fullScreenImage":"gallery__fullScreenImage_da11v"};
|
|
8
8
|
require('./components/image-viewer/index.css')
|
|
9
9
|
|
|
10
10
|
const Slide = ({ isActive, meta, swiperAspectRatio, imageAspectRatio, image, index, swiperHeight, slideVisible, handleLoad, handleLoadError, }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-gallery",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"react": "^16.9.0 || ^17.0.1"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@alfalab/core-components-base-modal": "^4.2.
|
|
20
|
+
"@alfalab/core-components-base-modal": "^4.2.2",
|
|
21
21
|
"@alfalab/core-components-icon-button": "^4.2.3",
|
|
22
|
-
"@alfalab/core-components-tooltip": "^5.6.
|
|
22
|
+
"@alfalab/core-components-tooltip": "^5.6.1",
|
|
23
23
|
"@alfalab/core-components-typography": "^2.6.3",
|
|
24
24
|
"@alfalab/hooks": "^1.4.1",
|
|
25
25
|
"@alfalab/icons-glyph": "^2.16.0",
|
|
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_da11v","swiper":"gallery__swiper_da11v","singleSlide":"gallery__singleSlide_da11v","hidden":"gallery__hidden_da11v","slide":"gallery__slide_da11v","slideLoading":"gallery__slideLoading_da11v","image":"gallery__image_da11v","smallImage":"gallery__smallImage_da11v","verticalImageFit":"gallery__verticalImageFit_da11v","horizontalImageFit":"gallery__horizontalImageFit_da11v","arrow":"gallery__arrow_da11v","focused":"gallery__focused_da11v","placeholder":"gallery__placeholder_da11v","brokenImgWrapper":"gallery__brokenImgWrapper_da11v","brokenImgIcon":"gallery__brokenImgIcon_da11v","fullScreenImage":"gallery__fullScreenImage_da11v"};
|
|
15
15
|
require('./components/image-viewer/index.css')
|
|
16
16
|
|
|
17
17
|
var Slide = function (_a) {
|
|
File without changes
|
|
File without changes
|