@alfalab/core-components-gallery 5.0.13 → 5.1.0
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.js +5 -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 +7 -2
- package/components/image-preview/index.css +12 -18
- package/components/image-preview/index.js +1 -0
- package/components/image-preview/paths.d.ts +5 -0
- package/components/image-preview/paths.js +10 -0
- package/components/image-viewer/component.js +3 -2
- package/components/image-viewer/index.css +19 -25
- package/components/image-viewer/index.js +3 -2
- package/components/image-viewer/paths.d.ts +5 -0
- package/components/image-viewer/paths.js +10 -0
- package/components/image-viewer/slide.js +2 -1
- package/components/index.js +4 -2
- package/components/navigation-bar/Component.js +2 -1
- package/components/navigation-bar/index.css +6 -6
- package/components/navigation-bar/index.js +1 -0
- package/cssm/Component.js +2 -0
- package/cssm/components/image-preview/Component.js +6 -1
- package/cssm/components/image-preview/index.js +1 -0
- package/cssm/components/image-preview/index.module.css +0 -6
- package/cssm/components/image-preview/paths.d.ts +5 -0
- package/cssm/components/image-preview/paths.js +10 -0
- package/cssm/components/image-viewer/component.js +1 -0
- package/cssm/components/image-viewer/index.js +1 -0
- package/cssm/components/image-viewer/index.module.css +0 -6
- package/cssm/components/image-viewer/paths.d.ts +5 -0
- package/cssm/components/image-viewer/paths.js +10 -0
- package/cssm/components/image-viewer/slide.js +6 -1
- package/cssm/components/index.js +2 -0
- package/cssm/components/navigation-bar/Component.js +1 -0
- package/cssm/components/navigation-bar/index.js +1 -0
- package/cssm/index.js +2 -0
- package/esm/Component.js +5 -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 +7 -2
- package/esm/components/image-preview/index.css +12 -18
- package/esm/components/image-preview/index.js +1 -0
- package/esm/components/image-preview/paths.d.ts +5 -0
- package/esm/components/image-preview/paths.js +6 -0
- package/esm/components/image-viewer/component.js +3 -2
- package/esm/components/image-viewer/index.css +19 -25
- package/esm/components/image-viewer/index.js +3 -2
- package/esm/components/image-viewer/paths.d.ts +5 -0
- package/esm/components/image-viewer/paths.js +6 -0
- package/esm/components/image-viewer/slide.js +2 -1
- package/esm/components/index.js +4 -2
- package/esm/components/navigation-bar/Component.js +2 -1
- package/esm/components/navigation-bar/index.css +6 -6
- package/esm/components/navigation-bar/index.js +1 -0
- package/esm/index.css +3 -3
- package/esm/index.js +4 -2
- package/esm/{slide-6392c5de.d.ts → slide-25c42ce8.d.ts} +0 -0
- package/esm/{slide-6392c5de.js → slide-25c42ce8.js} +7 -2
- package/esm/{tslib.es6-2d75caeb.d.ts → tslib.es6-9246d2d5.d.ts} +0 -0
- package/esm/{tslib.es6-2d75caeb.js → tslib.es6-9246d2d5.js} +0 -0
- package/index.css +3 -3
- package/index.js +4 -2
- package/modern/Component.js +4 -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 +7 -2
- package/modern/components/image-preview/index.css +12 -18
- package/modern/components/image-preview/index.js +1 -0
- package/modern/components/image-preview/paths.d.ts +5 -0
- package/modern/components/image-preview/paths.js +6 -0
- package/modern/components/image-viewer/component.js +2 -1
- package/modern/components/image-viewer/index.css +19 -25
- package/modern/components/image-viewer/index.js +2 -1
- package/modern/components/image-viewer/paths.d.ts +5 -0
- package/modern/components/image-viewer/paths.js +6 -0
- package/modern/components/image-viewer/slide.js +2 -1
- package/modern/components/index.js +3 -1
- package/modern/components/navigation-bar/Component.js +2 -1
- package/modern/components/navigation-bar/index.css +6 -6
- package/modern/components/navigation-bar/index.js +1 -0
- package/modern/index.css +3 -3
- package/modern/index.js +3 -1
- package/modern/{slide-dd8c2f8d.d.ts → slide-b5114cdc.d.ts} +0 -0
- package/modern/{slide-dd8c2f8d.js → slide-b5114cdc.js} +7 -2
- package/package.json +3 -3
- package/{slide-7ff5ea13.d.ts → slide-403f6a83.d.ts} +0 -0
- package/{slide-7ff5ea13.js → slide-403f6a83.js} +7 -2
- /package/{tslib.es6-3dbd3e7f.d.ts → tslib.es6-778dc5ea.d.ts} +0 -0
- /package/{tslib.es6-3dbd3e7f.js → tslib.es6-778dc5ea.js} +0 -0
- package/cssm/vars.css +0 -0
package/Component.js
CHANGED
|
@@ -10,11 +10,12 @@ require('./utils/utils.js');
|
|
|
10
10
|
require('./utils/constants.js');
|
|
11
11
|
require('classnames');
|
|
12
12
|
require('@alfalab/hooks');
|
|
13
|
+
require('./components/image-preview/paths.js');
|
|
13
14
|
require('./components/image-preview/Component.js');
|
|
14
15
|
var components_navigationBar_Component = require('./components/navigation-bar/Component.js');
|
|
15
16
|
require('@alfalab/core-components-typography');
|
|
16
17
|
require('./components/header-info-block/Component.js');
|
|
17
|
-
require('./tslib.es6-
|
|
18
|
+
require('./tslib.es6-778dc5ea.js');
|
|
18
19
|
require('@alfalab/core-components-icon-button');
|
|
19
20
|
require('@alfalab/core-components-tooltip');
|
|
20
21
|
require('@alfalab/icons-glyph/ArrowsInwardMIcon');
|
|
@@ -28,7 +29,8 @@ require('swiper');
|
|
|
28
29
|
require('swiper/react');
|
|
29
30
|
require('@alfalab/icons-glyph/ChevronBackHeavyMIcon');
|
|
30
31
|
require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
|
|
31
|
-
require('./
|
|
32
|
+
require('./components/image-viewer/paths.js');
|
|
33
|
+
require('./slide-403f6a83.js');
|
|
32
34
|
require('swiper/swiper.min.css');
|
|
33
35
|
var components_imageViewer_component = require('./components/image-viewer/component.js');
|
|
34
36
|
|
|
@@ -36,7 +38,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
36
38
|
|
|
37
39
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
38
40
|
|
|
39
|
-
var styles = {"container":"
|
|
41
|
+
var styles = {"container":"gallery__container_m1gpb","modal":"gallery__modal_m1gpb"};
|
|
40
42
|
require('./index.css')
|
|
41
43
|
|
|
42
44
|
var Backdrop = function () { return null; };
|
|
@@ -9,7 +9,7 @@ var utils_utils = require('../../utils/utils.js');
|
|
|
9
9
|
var utils_constants = require('../../utils/constants.js');
|
|
10
10
|
require('@alfalab/core-components-typography');
|
|
11
11
|
var components_headerInfoBlock_Component = require('../header-info-block/Component.js');
|
|
12
|
-
require('../../tslib.es6-
|
|
12
|
+
require('../../tslib.es6-778dc5ea.js');
|
|
13
13
|
require('@alfalab/core-components-icon-button');
|
|
14
14
|
require('@alfalab/core-components-tooltip');
|
|
15
15
|
require('@alfalab/icons-glyph/ArrowsInwardMIcon');
|
|
@@ -22,7 +22,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
22
22
|
|
|
23
23
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
24
24
|
|
|
25
|
-
var styles = {"header":"
|
|
25
|
+
var styles = {"header":"gallery__header_g8cia","buttons":"gallery__buttons_g8cia"};
|
|
26
26
|
require('./index.css')
|
|
27
27
|
|
|
28
28
|
var Header = function () {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
6
|
+
var tslib_es6 = require('../../tslib.es6-778dc5ea.js');
|
|
7
7
|
var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
|
|
8
8
|
var coreComponentsTooltip = require('@alfalab/core-components-tooltip');
|
|
9
9
|
var ArrowsInwardMIcon = require('@alfalab/icons-glyph/ArrowsInwardMIcon');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ldz3 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-tertiary-inverted: #3c4c5d;
|
|
4
4
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
--gap-xl: 24px;
|
|
16
16
|
--gap-2xl: 32px;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.gallery__header_g8cia {
|
|
19
19
|
display: flex;
|
|
20
20
|
justify-content: space-between;
|
|
21
21
|
flex-shrink: 0;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
25
25
|
box-sizing: border-box;
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.gallery__buttons_g8cia {
|
|
28
28
|
display: flex;
|
|
29
29
|
padding-left: var(--gap-2xl);
|
|
30
30
|
}
|
|
@@ -9,7 +9,7 @@ require('../../utils/utils.js');
|
|
|
9
9
|
require('../../utils/constants.js');
|
|
10
10
|
require('@alfalab/core-components-typography');
|
|
11
11
|
require('../header-info-block/Component.js');
|
|
12
|
-
require('../../tslib.es6-
|
|
12
|
+
require('../../tslib.es6-778dc5ea.js');
|
|
13
13
|
require('@alfalab/core-components-icon-button');
|
|
14
14
|
require('@alfalab/core-components-tooltip');
|
|
15
15
|
require('@alfalab/icons-glyph/ArrowsInwardMIcon');
|
|
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
|
|
13
|
-
var styles = {"info":"
|
|
13
|
+
var styles = {"info":"gallery__info_1s80s","filenameHead":"gallery__filenameHead_1s80s","filenameContainer":"gallery__filenameContainer_1s80s","description":"gallery__description_1s80s"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
var HeaderInfoBlock = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: b7i97 */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,24 +10,24 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-2xs: 4px;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.gallery__info_1s80s {
|
|
14
14
|
height: 100%;
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
justify-content: center;
|
|
18
18
|
overflow: hidden;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.gallery__filenameHead_1s80s {
|
|
21
21
|
display: inline;
|
|
22
22
|
text-overflow: ellipsis;
|
|
23
23
|
overflow: hidden;
|
|
24
24
|
white-space: nowrap;
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.gallery__filenameContainer_1s80s {
|
|
27
27
|
overflow: hidden;
|
|
28
28
|
display: inline-flex;
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.gallery__description_1s80s {
|
|
31
31
|
display: inline;
|
|
32
32
|
text-overflow: ellipsis;
|
|
33
33
|
overflow: hidden;
|
|
@@ -6,13 +6,14 @@ var React = require('react');
|
|
|
6
6
|
var context = require('../../context.js');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var hooks = require('@alfalab/hooks');
|
|
9
|
+
var components_imagePreview_paths = require('./paths.js');
|
|
9
10
|
|
|
10
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
12
|
|
|
12
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
14
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
14
15
|
|
|
15
|
-
var styles = {"component":"
|
|
16
|
+
var styles = {"component":"gallery__component_8l3kw","active":"gallery__active_8l3kw","image":"gallery__image_8l3kw","preview":"gallery__preview_8l3kw","loading":"gallery__loading_8l3kw","brokenImageWrapper":"gallery__brokenImageWrapper_8l3kw","brokenIcon":"gallery__brokenIcon_8l3kw","focused":"gallery__focused_8l3kw"};
|
|
16
17
|
require('./index.css')
|
|
17
18
|
|
|
18
19
|
var ImagePreview = function (_a) {
|
|
@@ -32,7 +33,11 @@ var ImagePreview = function (_a) {
|
|
|
32
33
|
var meta = imagesMeta[index];
|
|
33
34
|
var isBroken = Boolean(meta === null || meta === void 0 ? void 0 : meta.broken);
|
|
34
35
|
return (React__default['default'].createElement("div", { className: cn__default['default'](styles.component, (_b = {}, _b[styles.active] = active, _b[styles.focused] = focused, _b), className), onClick: handleClick, role: 'button', onKeyDown: handleKeyDown, tabIndex: 0, ref: ref, "aria-label": "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044E " + (index + 1) }, isBroken ? (React__default['default'].createElement("div", { className: cn__default['default'](styles.preview, styles.brokenImageWrapper) },
|
|
35
|
-
React__default['default'].createElement("div", { className: styles.brokenIcon }
|
|
36
|
+
React__default['default'].createElement("div", { className: styles.brokenIcon },
|
|
37
|
+
React__default['default'].createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '40', height: '40', viewBox: '0 0 40 40', fill: 'none' },
|
|
38
|
+
React__default['default'].createElement("rect", { width: '40', height: '40', fill: 'none' }),
|
|
39
|
+
React__default['default'].createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: components_imagePreview_paths.NoImagePaths.baseImage, fill: '#DBDEE1' }),
|
|
40
|
+
React__default['default'].createElement("path", { d: components_imagePreview_paths.NoImagePaths.triangleImage, fill: '#DBDEE1' }))))) : (React__default['default'].createElement("div", { className: cn__default['default'](styles.preview, styles.image, (_c = {},
|
|
36
41
|
_c[styles.broken] = isBroken,
|
|
37
42
|
_c[styles.loading] = !meta,
|
|
38
43
|
_c)), style: { backgroundImage: "url(" + image.src + ")" } }))));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1oajh */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-key-inverted: #fff;
|
|
@@ -22,10 +22,7 @@
|
|
|
22
22
|
:root {
|
|
23
23
|
--focus-color: var(--color-light-border-link);
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
--gallery-broken-image-icon: url('https://alfabank.servicecdn.ru/icons/art_no-image_s.svg');
|
|
27
|
-
}
|
|
28
|
-
.gallery__component_qvexw {
|
|
25
|
+
.gallery__component_8l3kw {
|
|
29
26
|
display: flex;
|
|
30
27
|
padding: var(--gap-2xs);
|
|
31
28
|
border: 2px solid rgba(0, 0, 0, 0);
|
|
@@ -34,13 +31,13 @@
|
|
|
34
31
|
transition: border 0.15s ease-in-out;
|
|
35
32
|
outline: none;
|
|
36
33
|
}
|
|
37
|
-
.
|
|
34
|
+
.gallery__active_8l3kw {
|
|
38
35
|
border-color: var(--color-light-border-key-inverted)
|
|
39
36
|
}
|
|
40
|
-
.
|
|
37
|
+
.gallery__active_8l3kw > .gallery__image_8l3kw {
|
|
41
38
|
opacity: 0.7;
|
|
42
39
|
}
|
|
43
|
-
.
|
|
40
|
+
.gallery__preview_8l3kw {
|
|
44
41
|
width: 56px;
|
|
45
42
|
height: 56px;
|
|
46
43
|
flex-shrink: 0;
|
|
@@ -49,37 +46,34 @@
|
|
|
49
46
|
-webkit-user-select: none;
|
|
50
47
|
user-select: none;
|
|
51
48
|
}
|
|
52
|
-
.
|
|
49
|
+
.gallery__image_8l3kw {
|
|
53
50
|
background-color: var(--color-light-bg-primary);
|
|
54
51
|
background-size: cover;
|
|
55
52
|
background-repeat: no-repeat;
|
|
56
53
|
background-position: center;
|
|
57
54
|
transition: opacity 0.15s ease-in-out
|
|
58
55
|
}
|
|
59
|
-
.
|
|
56
|
+
.gallery__image_8l3kw:hover {
|
|
60
57
|
opacity: 0.7;
|
|
61
58
|
}
|
|
62
|
-
.
|
|
59
|
+
.gallery__loading_8l3kw {
|
|
63
60
|
/* TODO: цвета нет в палитре */
|
|
64
61
|
background-color: #e9eaeb;
|
|
65
62
|
}
|
|
66
|
-
.
|
|
63
|
+
.gallery__brokenImageWrapper_8l3kw {
|
|
67
64
|
display: flex;
|
|
68
65
|
justify-content: center;
|
|
69
66
|
align-items: center;
|
|
70
67
|
background-color: var(--color-light-bg-primary)
|
|
71
68
|
}
|
|
72
|
-
.
|
|
69
|
+
.gallery__brokenImageWrapper_8l3kw:hover {
|
|
73
70
|
opacity: 0.7;
|
|
74
71
|
}
|
|
75
|
-
.
|
|
72
|
+
.gallery__brokenIcon_8l3kw {
|
|
76
73
|
width: 40px;
|
|
77
74
|
height: 40px;
|
|
78
|
-
background-image: var(--gallery-broken-image-icon);
|
|
79
|
-
background-size: contain;
|
|
80
|
-
background-repeat: no-repeat;
|
|
81
75
|
}
|
|
82
|
-
.
|
|
76
|
+
.gallery__focused_8l3kw {
|
|
83
77
|
outline: 2px solid var(--focus-color);
|
|
84
78
|
outline-offset: 2px;
|
|
85
79
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var NoImagePaths = {
|
|
6
|
+
baseImage: 'M 30.5 6.5 L 4 6.5 C 2.894531 6.5 2 7.394531 2 8.5 L 2 31.5 C 2 32.605469 2.894531 33.5 4 33.5 L 36 33.5 C 37.105469 33.5 38 32.605469 38 31.5 L 38 14 L 32.367188 14 C 31.335938 14 30.5 13.164062 30.5 12.132812 Z M 11.917969 15.667969 C 12.285156 15.296875 12.882812 15.296875 13.25 15.667969 L 14.25 16.667969 L 15.25 15.667969 C 15.617188 15.296875 16.214844 15.296875 16.582031 15.667969 C 16.953125 16.035156 16.953125 16.632812 16.582031 17 L 15.582031 18 L 16.582031 19 C 16.953125 19.367188 16.953125 19.964844 16.582031 20.332031 C 16.214844 20.703125 15.617188 20.703125 15.25 20.332031 L 14.25 19.332031 L 13.25 20.332031 C 12.882812 20.703125 12.285156 20.703125 11.917969 20.332031 C 11.546875 19.964844 11.546875 19.367188 11.917969 19 L 12.917969 18 L 11.917969 17 C 11.546875 16.632812 11.546875 16.035156 11.917969 15.667969 Z M 24.75 15.667969 C 24.382812 15.296875 23.785156 15.296875 23.414062 15.667969 C 23.046875 16.035156 23.046875 16.632812 23.414062 17 L 24.414062 18 L 23.414062 19 C 23.046875 19.367188 23.046875 19.964844 23.414062 20.332031 C 23.785156 20.703125 24.378906 20.703125 24.75 20.332031 L 25.75 19.332031 L 26.75 20.332031 C 27.117188 20.703125 27.714844 20.703125 28.082031 20.332031 C 28.449219 19.964844 28.449219 19.367188 28.082031 19 L 27.082031 18 L 28.082031 17 C 28.449219 16.632812 28.449219 16.035156 28.082031 15.667969 C 27.714844 15.296875 27.117188 15.296875 26.75 15.667969 L 25.75 16.667969 Z M 14.40625 27.914062 L 14.402344 27.914062 C 13.898438 28.136719 13.308594 27.910156 13.085938 27.40625 C 12.863281 26.902344 13.089844 26.308594 13.59375 26.085938 L 14 27 C 13.59375 26.085938 13.59375 26.085938 13.59375 26.085938 L 13.597656 26.085938 L 13.601562 26.082031 L 13.609375 26.078125 L 13.621094 26.074219 L 13.636719 26.066406 C 13.660156 26.058594 13.695312 26.042969 13.734375 26.027344 C 13.816406 25.996094 13.933594 25.949219 14.082031 25.898438 C 14.378906 25.796875 14.808594 25.660156 15.359375 25.527344 C 16.457031 25.261719 18.035156 25 20 25 C 21.964844 25 23.542969 25.261719 24.640625 25.527344 C 25.191406 25.660156 25.621094 25.796875 25.917969 25.898438 C 25.96875 25.917969 26.015625 25.933594 26.058594 25.949219 C 26.144531 25.980469 26.210938 26.007812 26.265625 26.027344 C 26.285156 26.035156 26.304688 26.042969 26.320312 26.050781 C 26.335938 26.054688 26.351562 26.0625 26.363281 26.066406 L 26.382812 26.078125 L 26.390625 26.078125 L 26.398438 26.082031 L 26.402344 26.085938 L 26.40625 26.085938 C 26.40625 26.085938 26.40625 26.085938 26.402344 26.089844 L 26.398438 26.105469 L 26.40625 26.085938 C 26.910156 26.308594 27.136719 26.902344 26.914062 27.40625 C 26.691406 27.910156 26.101562 28.136719 25.597656 27.914062 L 20.449219 27.914062 L 25.59375 27.914062 L 25.585938 27.910156 C 25.574219 27.90625 25.554688 27.898438 25.527344 27.886719 C 25.472656 27.863281 25.382812 27.832031 25.261719 27.789062 C 25.019531 27.703125 24.652344 27.589844 24.171875 27.472656 C 23.207031 27.238281 21.785156 27 20 27 C 18.214844 27 16.792969 27.238281 15.828125 27.472656 C 15.347656 27.589844 14.980469 27.703125 14.738281 27.789062 C 14.617188 27.832031 14.527344 27.863281 14.472656 27.886719 C 14.445312 27.898438 14.425781 27.90625 14.414062 27.910156 L 14.40625 27.914062 L 20.449219 27.914062 Z M 14.40625 27.914062',
|
|
7
|
+
triangleImage: 'M 38 12 L 32.5 12 L 32.5 6.5 Z M 38 12',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
exports.NoImagePaths = NoImagePaths;
|
|
@@ -9,13 +9,14 @@ var utils_constants = require('../../utils/constants.js');
|
|
|
9
9
|
var cn = require('classnames');
|
|
10
10
|
var hooks = require('@alfalab/hooks');
|
|
11
11
|
require('@alfalab/core-components-typography');
|
|
12
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
12
|
+
var tslib_es6 = require('../../tslib.es6-778dc5ea.js');
|
|
13
13
|
var elementClosest = require('element-closest');
|
|
14
14
|
var SwiperCore = require('swiper');
|
|
15
15
|
var react = require('swiper/react');
|
|
16
16
|
var ChevronBackHeavyMIcon = require('@alfalab/icons-glyph/ChevronBackHeavyMIcon');
|
|
17
17
|
var ChevronForwardHeavyMIcon = require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
|
|
18
|
-
|
|
18
|
+
require('./paths.js');
|
|
19
|
+
var components_imageViewer_slide = require('../../slide-403f6a83.js');
|
|
19
20
|
require('swiper/swiper.min.css');
|
|
20
21
|
|
|
21
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tekcq */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-link: #007aff;
|
|
@@ -26,17 +26,14 @@
|
|
|
26
26
|
:root {
|
|
27
27
|
--focus-color: var(--color-light-border-link);
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
--gallery-broken-image-icon: url('https://alfabank.servicecdn.ru/icons/art_no-image_s.svg');
|
|
31
|
-
}
|
|
32
|
-
.gallery__component_1hde6 {
|
|
29
|
+
.gallery__component_1klum {
|
|
33
30
|
display: flex;
|
|
34
31
|
flex-grow: 1;
|
|
35
32
|
justify-content: center;
|
|
36
33
|
align-items: center;
|
|
37
34
|
background-color: var(--color-light-bg-primary-inverted-alpha-50);
|
|
38
35
|
}
|
|
39
|
-
.
|
|
36
|
+
.gallery__swiper_1klum {
|
|
40
37
|
display: flex;
|
|
41
38
|
width: 100%;
|
|
42
39
|
height: 100%;
|
|
@@ -46,14 +43,14 @@
|
|
|
46
43
|
padding: var(--gap-2xl) var(--gap-m);
|
|
47
44
|
box-sizing: border-box;
|
|
48
45
|
}
|
|
49
|
-
.
|
|
46
|
+
.gallery__singleSlide_1klum .gallery__swiper_1klum {
|
|
50
47
|
max-height: calc(100vh - 80px);
|
|
51
48
|
padding: var(--gap-2xl);
|
|
52
49
|
}
|
|
53
|
-
.
|
|
50
|
+
.gallery__hidden_1klum {
|
|
54
51
|
display: none;
|
|
55
52
|
}
|
|
56
|
-
.
|
|
53
|
+
.gallery__slide_1klum {
|
|
57
54
|
position: relative;
|
|
58
55
|
display: flex;
|
|
59
56
|
justify-content: center;
|
|
@@ -61,12 +58,12 @@
|
|
|
61
58
|
width: 100%;
|
|
62
59
|
height: 100%;
|
|
63
60
|
}
|
|
64
|
-
.
|
|
61
|
+
.gallery__slideLoading_1klum {
|
|
65
62
|
/* TODO: цвета нет в палитре */
|
|
66
63
|
background-color: #e9eaeb;
|
|
67
64
|
border-radius: var(--border-radius-m);
|
|
68
65
|
}
|
|
69
|
-
.
|
|
66
|
+
.gallery__image_1klum {
|
|
70
67
|
width: 0;
|
|
71
68
|
height: 0;
|
|
72
69
|
-webkit-user-select: none;
|
|
@@ -74,7 +71,7 @@
|
|
|
74
71
|
background-color: var(--color-light-bg-primary);
|
|
75
72
|
border-radius: var(--border-radius-m);
|
|
76
73
|
}
|
|
77
|
-
.
|
|
74
|
+
.gallery__smallImage_1klum {
|
|
78
75
|
position: relative;
|
|
79
76
|
width: auto;
|
|
80
77
|
height: auto;
|
|
@@ -82,15 +79,15 @@
|
|
|
82
79
|
user-select: none;
|
|
83
80
|
background-color: var(--color-light-bg-primary);
|
|
84
81
|
}
|
|
85
|
-
.
|
|
82
|
+
.gallery__verticalImageFit_1klum {
|
|
86
83
|
width: auto;
|
|
87
84
|
height: 100%;
|
|
88
85
|
}
|
|
89
|
-
.
|
|
86
|
+
.gallery__horizontalImageFit_1klum {
|
|
90
87
|
width: 100%;
|
|
91
88
|
height: auto;
|
|
92
89
|
}
|
|
93
|
-
.
|
|
90
|
+
.gallery__arrow_1klum {
|
|
94
91
|
display: flex;
|
|
95
92
|
flex-direction: column;
|
|
96
93
|
justify-content: center;
|
|
@@ -103,17 +100,17 @@
|
|
|
103
100
|
transition: background-color 0.15s ease-in-out;
|
|
104
101
|
outline: none
|
|
105
102
|
}
|
|
106
|
-
.
|
|
103
|
+
.gallery__arrow_1klum:hover {
|
|
107
104
|
background-color: var(--color-light-bg-primary-inverted-alpha-10);
|
|
108
105
|
}
|
|
109
|
-
.
|
|
106
|
+
.gallery__arrow_1klum:active {
|
|
110
107
|
background-color: var(--color-light-bg-primary-inverted-alpha-20);
|
|
111
108
|
}
|
|
112
|
-
.
|
|
109
|
+
.gallery__focused_1klum {
|
|
113
110
|
outline: 2px solid var(--focus-color);
|
|
114
111
|
outline-offset: 2px;
|
|
115
112
|
}
|
|
116
|
-
.
|
|
113
|
+
.gallery__placeholder_1klum {
|
|
117
114
|
display: flex;
|
|
118
115
|
justify-content: center;
|
|
119
116
|
align-items: center;
|
|
@@ -122,7 +119,7 @@
|
|
|
122
119
|
border-radius: var(--border-radius-m);
|
|
123
120
|
background-color: var(--color-light-bg-primary);
|
|
124
121
|
}
|
|
125
|
-
.
|
|
122
|
+
.gallery__brokenImgWrapper_1klum {
|
|
126
123
|
position: relative;
|
|
127
124
|
display: flex;
|
|
128
125
|
flex-direction: column;
|
|
@@ -130,15 +127,12 @@
|
|
|
130
127
|
width: 150px;
|
|
131
128
|
text-align: center;
|
|
132
129
|
}
|
|
133
|
-
.
|
|
130
|
+
.gallery__brokenImgIcon_1klum {
|
|
134
131
|
width: 80px;
|
|
135
132
|
height: 80px;
|
|
136
133
|
margin-bottom: var(--gap-2xs);
|
|
137
|
-
background-image: var(--gallery-broken-image-icon);
|
|
138
|
-
background-size: contain;
|
|
139
|
-
background-repeat: no-repeat;
|
|
140
134
|
}
|
|
141
|
-
.
|
|
135
|
+
.gallery__fullScreenImage_1klum {
|
|
142
136
|
width: 100%;
|
|
143
137
|
height: auto;
|
|
144
138
|
background-color: var(--color-light-bg-primary);
|
|
@@ -9,13 +9,14 @@ require('../../utils/constants.js');
|
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/hooks');
|
|
11
11
|
require('@alfalab/core-components-typography');
|
|
12
|
-
require('../../tslib.es6-
|
|
12
|
+
require('../../tslib.es6-778dc5ea.js');
|
|
13
13
|
require('element-closest');
|
|
14
14
|
require('swiper');
|
|
15
15
|
require('swiper/react');
|
|
16
16
|
require('@alfalab/icons-glyph/ChevronBackHeavyMIcon');
|
|
17
17
|
require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
|
|
18
|
-
require('
|
|
18
|
+
require('./paths.js');
|
|
19
|
+
require('../../slide-403f6a83.js');
|
|
19
20
|
require('swiper/swiper.min.css');
|
|
20
21
|
var components_imageViewer_component = require('./component.js');
|
|
21
22
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var NoImagePaths = {
|
|
6
|
+
baseImage: 'M61 13H8C5.79086 13 4 14.7908 4 17V63C4 65.2092 5.79086 67 8 67H72C74.2091 67 76 65.2092 76 63V27.9998H64.7333C62.6714 27.9998 61 26.3284 61 24.2665V13ZM23.8337 31.3334C24.57 30.597 25.7639 30.597 26.5003 31.3334L28.5001 33.3332L30.4999 31.3333C31.2363 30.5969 32.4302 30.5969 33.1666 31.3333C33.903 32.0697 33.903 33.2636 33.1666 34L31.1667 35.9998L33.1669 38C33.9033 38.7363 33.9033 39.9302 33.1669 40.6666C32.4306 41.403 31.2367 41.403 30.5003 40.6666L28.5001 38.6664L26.5 40.6666C25.7636 41.403 24.5697 41.403 23.8333 40.6666C23.097 39.9302 23.097 38.7363 23.8333 37.9999L25.8335 35.9998L23.8337 34C23.0973 33.2636 23.0973 32.0697 23.8337 31.3334ZM49.4984 31.3334C48.762 30.597 47.5681 30.597 46.8317 31.3334C46.0953 32.0698 46.0953 33.2637 46.8317 34L48.8315 35.9998L46.8314 38C46.095 38.7363 46.095 39.9302 46.8314 40.6666C47.5677 41.403 48.7617 41.403 49.498 40.6666L51.4982 38.6664L53.4984 40.6666C54.2347 41.403 55.4286 41.403 56.165 40.6666C56.9014 39.9303 56.9014 38.7364 56.165 38L54.1648 35.9998L56.1646 34C56.901 33.2636 56.901 32.0697 56.1646 31.3334C55.4283 30.597 54.2344 30.597 53.498 31.3334L51.4982 33.3332L49.4984 31.3334ZM28.8087 55.8292L28.8076 55.8297C27.7997 56.2743 26.6202 55.8199 26.1724 54.8123C25.7238 53.8029 26.1783 52.621 27.1877 52.1724L28 54C27.1877 52.1724 27.1889 52.1719 27.1889 52.1719L27.1902 52.1713L27.193 52.17L27.1999 52.167L27.2187 52.1588L27.2425 52.1486L27.2762 52.1343C27.3234 52.1144 27.388 52.0878 27.4698 52.0553C27.6333 51.9904 27.8654 51.9021 28.1633 51.7985C28.7588 51.5914 29.6177 51.3226 30.7163 51.0563C32.9132 50.5237 36.072 50 40 50C43.928 50 47.0868 50.5237 49.2837 51.0563C50.3823 51.3226 51.2412 51.5914 51.8367 51.7985C51.9387 51.834 52.033 51.8677 52.1195 51.8992C52.2855 51.9598 52.4227 52.0126 52.5302 52.0553C52.5704 52.0713 52.6065 52.0858 52.6384 52.0989C52.6713 52.1124 52.6998 52.1242 52.7238 52.1343L52.7677 52.1529L52.7813 52.1588L52.8001 52.167L52.807 52.17L52.8099 52.1713L52.8111 52.1719C52.8111 52.1719 52.8112 52.1719 52.8075 52.1806L52.7938 52.2121L52.8123 52.1724C53.8217 52.621 54.2762 53.8029 53.8276 54.8123C53.3798 55.8199 52.2013 56.2746 51.1931 55.83L51.1913 55.8292L40.8962 55.8291L51.1899 55.8286L51.1715 55.8208C51.149 55.8113 51.1097 55.795 51.0538 55.7728C50.9419 55.7284 50.7639 55.6604 50.5226 55.5765C50.0401 55.4086 49.3052 55.1774 48.3413 54.9437C46.4132 54.4763 43.572 54 40 54C36.428 54 33.5868 54.4763 31.6587 54.9437C30.6948 55.1774 29.9599 55.4086 29.4774 55.5765C29.2361 55.6604 29.0581 55.7284 28.9462 55.7728C28.8903 55.795 28.851 55.8113 28.8285 55.8208L28.8112 55.8281L40.8962 55.8291L28.8087 55.8292Z',
|
|
7
|
+
triangleImage: 'M75.9998 23.9998H65V13L75.9998 23.9998Z',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
exports.NoImagePaths = NoImagePaths;
|
|
@@ -7,7 +7,8 @@ require('../../utils/utils.js');
|
|
|
7
7
|
require('../../utils/constants.js');
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('@alfalab/core-components-typography');
|
|
10
|
-
|
|
10
|
+
require('./paths.js');
|
|
11
|
+
var components_imageViewer_slide = require('../../slide-403f6a83.js');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
package/components/index.js
CHANGED
|
@@ -9,11 +9,12 @@ require('../utils/utils.js');
|
|
|
9
9
|
require('../utils/constants.js');
|
|
10
10
|
require('classnames');
|
|
11
11
|
require('@alfalab/hooks');
|
|
12
|
+
require('./image-preview/paths.js');
|
|
12
13
|
var components_imagePreview_Component = require('./image-preview/Component.js');
|
|
13
14
|
var components_navigationBar_Component = require('./navigation-bar/Component.js');
|
|
14
15
|
require('@alfalab/core-components-typography');
|
|
15
16
|
require('./header-info-block/Component.js');
|
|
16
|
-
require('../tslib.es6-
|
|
17
|
+
require('../tslib.es6-778dc5ea.js');
|
|
17
18
|
require('@alfalab/core-components-icon-button');
|
|
18
19
|
require('@alfalab/core-components-tooltip');
|
|
19
20
|
require('@alfalab/icons-glyph/ArrowsInwardMIcon');
|
|
@@ -27,7 +28,8 @@ require('swiper');
|
|
|
27
28
|
require('swiper/react');
|
|
28
29
|
require('@alfalab/icons-glyph/ChevronBackHeavyMIcon');
|
|
29
30
|
require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
|
|
30
|
-
require('
|
|
31
|
+
require('./image-viewer/paths.js');
|
|
32
|
+
require('../slide-403f6a83.js');
|
|
31
33
|
require('swiper/swiper.min.css');
|
|
32
34
|
var components_imageViewer_component = require('./image-viewer/component.js');
|
|
33
35
|
|
|
@@ -8,13 +8,14 @@ var utils_utils = require('../../utils/utils.js');
|
|
|
8
8
|
var utils_constants = require('../../utils/constants.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/hooks');
|
|
11
|
+
require('../image-preview/paths.js');
|
|
11
12
|
var components_imagePreview_Component = require('../image-preview/Component.js');
|
|
12
13
|
|
|
13
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
15
|
|
|
15
16
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
17
|
|
|
17
|
-
var styles = {"component":"
|
|
18
|
+
var styles = {"component":"gallery__component_8hmyo","preview":"gallery__preview_8hmyo"};
|
|
18
19
|
require('./index.css')
|
|
19
20
|
|
|
20
21
|
var MIN_SCROLL_STEP = 24;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wr7qj */
|
|
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_8hmyo {
|
|
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_8hmyo::-webkit-scrollbar {
|
|
31
31
|
display: none;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.gallery__preview_8hmyo {
|
|
34
34
|
flex-shrink: 0;
|
|
35
35
|
margin: 0 var(--gap-3xs)
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.gallery__preview_8hmyo:first-child {
|
|
38
38
|
margin-left: auto;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.gallery__preview_8hmyo:last-child {
|
|
41
41
|
margin-right: auto;
|
|
42
42
|
}
|
|
@@ -8,6 +8,7 @@ require('../../utils/utils.js');
|
|
|
8
8
|
require('../../utils/constants.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/hooks');
|
|
11
|
+
require('../image-preview/paths.js');
|
|
11
12
|
require('../image-preview/Component.js');
|
|
12
13
|
var components_navigationBar_Component = require('./Component.js');
|
|
13
14
|
|
package/cssm/Component.js
CHANGED
|
@@ -10,6 +10,7 @@ require('./utils/utils.js');
|
|
|
10
10
|
require('./utils/constants.js');
|
|
11
11
|
require('classnames');
|
|
12
12
|
require('@alfalab/hooks');
|
|
13
|
+
require('./components/image-preview/paths.js');
|
|
13
14
|
require('./components/image-preview/index.module.css');
|
|
14
15
|
require('./components/image-preview/Component.js');
|
|
15
16
|
require('./components/navigation-bar/index.module.css');
|
|
@@ -32,6 +33,7 @@ require('swiper');
|
|
|
32
33
|
require('swiper/react');
|
|
33
34
|
require('@alfalab/icons-glyph/ChevronBackHeavyMIcon');
|
|
34
35
|
require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
|
|
36
|
+
require('./components/image-viewer/paths.js');
|
|
35
37
|
require('./components/image-viewer/index.module.css');
|
|
36
38
|
require('./components/image-viewer/slide.js');
|
|
37
39
|
require('swiper/swiper.min.css');
|
|
@@ -6,6 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var context = require('../../context.js');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var hooks = require('@alfalab/hooks');
|
|
9
|
+
var components_imagePreview_paths = require('./paths.js');
|
|
9
10
|
var styles = require('./index.module.css');
|
|
10
11
|
|
|
11
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -31,7 +32,11 @@ var ImagePreview = function (_a) {
|
|
|
31
32
|
var meta = imagesMeta[index];
|
|
32
33
|
var isBroken = Boolean(meta === null || meta === void 0 ? void 0 : meta.broken);
|
|
33
34
|
return (React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].component, (_b = {}, _b[styles__default['default'].active] = active, _b[styles__default['default'].focused] = focused, _b), className), onClick: handleClick, role: 'button', onKeyDown: handleKeyDown, tabIndex: 0, ref: ref, "aria-label": "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044E " + (index + 1) }, isBroken ? (React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].preview, styles__default['default'].brokenImageWrapper) },
|
|
34
|
-
React__default['default'].createElement("div", { className: styles__default['default'].brokenIcon }
|
|
35
|
+
React__default['default'].createElement("div", { className: styles__default['default'].brokenIcon },
|
|
36
|
+
React__default['default'].createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '40', height: '40', viewBox: '0 0 40 40', fill: 'none' },
|
|
37
|
+
React__default['default'].createElement("rect", { width: '40', height: '40', fill: 'none' }),
|
|
38
|
+
React__default['default'].createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: components_imagePreview_paths.NoImagePaths.baseImage, fill: '#DBDEE1' }),
|
|
39
|
+
React__default['default'].createElement("path", { d: components_imagePreview_paths.NoImagePaths.triangleImage, fill: '#DBDEE1' }))))) : (React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].preview, styles__default['default'].image, (_c = {},
|
|
35
40
|
_c[styles__default['default'].broken] = isBroken,
|
|
36
41
|
_c[styles__default['default'].loading] = !meta,
|
|
37
42
|
_c)), style: { backgroundImage: "url(" + image.src + ")" } }))));
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
:root {
|
|
22
22
|
--focus-color: var(--color-light-border-link);
|
|
23
23
|
}
|
|
24
|
-
:root {
|
|
25
|
-
--gallery-broken-image-icon: url('https://alfabank.servicecdn.ru/icons/art_no-image_s.svg');
|
|
26
|
-
}
|
|
27
24
|
.component {
|
|
28
25
|
display: flex;
|
|
29
26
|
padding: var(--gap-2xs);
|
|
@@ -74,9 +71,6 @@
|
|
|
74
71
|
.brokenIcon {
|
|
75
72
|
width: 40px;
|
|
76
73
|
height: 40px;
|
|
77
|
-
background-image: var(--gallery-broken-image-icon);
|
|
78
|
-
background-size: contain;
|
|
79
|
-
background-repeat: no-repeat;
|
|
80
74
|
}
|
|
81
75
|
.focused {
|
|
82
76
|
outline: 2px solid var(--focus-color);
|