@alfalab/core-components-gallery 3.2.4 → 3.2.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.
- package/CHANGELOG.md +44 -0
- package/{dist/Component.d.ts → Component.d.ts} +0 -0
- package/{dist/Component.js → Component.js} +3 -3
- package/{dist/components → components}/header/Component.d.ts +0 -0
- package/{dist/components → components}/header/Component.js +2 -2
- package/{dist/components → components}/header/buttons.d.ts +0 -0
- package/{dist/components → components}/header/buttons.js +1 -1
- package/{dist/esm/components → components}/header/index.css +3 -3
- package/{dist/components → components}/header/index.d.ts +0 -0
- package/{dist/components → components}/header/index.js +1 -1
- package/{dist/components → components}/header-info-block/Component.d.ts +0 -0
- package/{dist/components → components}/header-info-block/Component.js +1 -1
- package/{dist/components → components}/header-info-block/index.css +5 -5
- package/{dist/components → components}/header-info-block/index.d.ts +0 -0
- package/{dist/components → components}/header-info-block/index.js +0 -0
- package/{dist/components → components}/image-preview/Component.d.ts +0 -0
- package/{dist/components → components}/image-preview/Component.js +1 -1
- package/{dist/esm/components → components}/image-preview/index.css +12 -12
- package/{dist/components → components}/image-preview/index.d.ts +0 -0
- package/{dist/components → components}/image-preview/index.js +0 -0
- package/{dist/components → components}/image-viewer/component.d.ts +0 -0
- package/{dist/components → components}/image-viewer/component.js +2 -2
- package/{dist/esm/components → components}/image-viewer/index.css +19 -19
- package/{dist/components → components}/image-viewer/index.d.ts +0 -0
- package/{dist/components → components}/image-viewer/index.js +2 -2
- package/{dist/components → components}/image-viewer/slide.d.ts +0 -0
- package/{dist/components → components}/image-viewer/slide.js +1 -1
- package/{dist/components → components}/index.d.ts +0 -0
- package/{dist/components → components}/index.js +2 -2
- package/{dist/components → components}/navigation-bar/Component.d.ts +0 -0
- package/{dist/components → components}/navigation-bar/Component.js +1 -1
- package/{dist/esm/components → components}/navigation-bar/index.css +6 -6
- package/{dist/components → components}/navigation-bar/index.d.ts +0 -0
- package/{dist/components → components}/navigation-bar/index.js +0 -0
- package/{dist/context.d.ts → context.d.ts} +0 -0
- package/{dist/context.js → context.js} +0 -0
- package/{dist/cssm → cssm}/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/Component.js +4 -4
- package/{dist/cssm → cssm}/components/header/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/header/Component.js +3 -3
- package/{dist/cssm → cssm}/components/header/buttons.d.ts +0 -0
- package/{dist/cssm → cssm}/components/header/buttons.js +2 -2
- package/{dist/cssm → cssm}/components/header/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/header/index.js +3 -3
- package/{dist/cssm → cssm}/components/header/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/header-info-block/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/header-info-block/Component.js +1 -1
- package/{dist/cssm → cssm}/components/header-info-block/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/header-info-block/index.js +1 -1
- package/{dist/cssm → cssm}/components/header-info-block/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/image-preview/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/image-preview/Component.js +0 -0
- package/{dist/cssm → cssm}/components/image-preview/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/image-preview/index.js +0 -0
- package/{dist/cssm → cssm}/components/image-preview/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/image-viewer/component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/image-viewer/component.js +1 -1
- package/{dist/cssm → cssm}/components/image-viewer/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/image-viewer/index.js +1 -1
- package/{dist/cssm → cssm}/components/image-viewer/index.module.css +0 -0
- package/{dist/cssm → cssm}/components/image-viewer/slide.d.ts +0 -0
- package/{dist/cssm → cssm}/components/image-viewer/slide.js +1 -1
- package/{dist/cssm → cssm}/components/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/index.js +3 -3
- package/{dist/cssm → cssm}/components/navigation-bar/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/components/navigation-bar/Component.js +0 -0
- package/{dist/cssm → cssm}/components/navigation-bar/index.d.ts +0 -0
- package/{dist/cssm → cssm}/components/navigation-bar/index.js +0 -0
- package/{dist/cssm → cssm}/components/navigation-bar/index.module.css +0 -0
- package/{dist/cssm → cssm}/context.d.ts +0 -0
- package/{dist/cssm → cssm}/context.js +0 -0
- package/{dist/cssm → cssm}/index.d.ts +0 -0
- package/{dist/cssm → cssm}/index.js +4 -4
- package/{dist/cssm → cssm}/index.module.css +0 -0
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.d.ts +0 -0
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.js +0 -0
- package/{dist/cssm → cssm}/types.d.ts +0 -0
- package/{dist/cssm → cssm}/types.js +0 -0
- package/{dist/cssm → cssm}/utils/constants.d.ts +0 -0
- package/{dist/cssm → cssm}/utils/constants.js +0 -0
- package/{dist/cssm → cssm}/utils/index.d.ts +0 -0
- package/{dist/cssm → cssm}/utils/index.js +0 -0
- package/{dist/cssm → cssm}/utils/split-filename.d.ts +0 -0
- package/{dist/cssm → cssm}/utils/split-filename.js +0 -0
- package/{dist/cssm → cssm}/utils/utils.d.ts +0 -0
- package/{dist/cssm → cssm}/utils/utils.js +0 -0
- package/{dist/cssm → cssm}/vars.css +0 -0
- package/{dist/esm → esm}/Component.d.ts +0 -0
- package/{dist/esm → esm}/Component.js +7 -7
- package/{dist/esm → esm}/components/header/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/header/Component.js +5 -5
- package/{dist/esm → esm}/components/header/buttons.d.ts +0 -0
- package/{dist/esm → esm}/components/header/buttons.js +3 -3
- package/{dist → esm}/components/header/index.css +3 -3
- package/{dist/esm → esm}/components/header/index.d.ts +0 -0
- package/{dist/esm → esm}/components/header/index.js +4 -4
- package/{dist/esm → esm}/components/header-info-block/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/header-info-block/Component.js +2 -2
- package/{dist/esm → esm}/components/header-info-block/index.css +5 -5
- package/{dist/esm → esm}/components/header-info-block/index.d.ts +0 -0
- package/{dist/esm → esm}/components/header-info-block/index.js +1 -1
- package/{dist/esm → esm}/components/image-preview/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/image-preview/Component.js +1 -1
- package/{dist → esm}/components/image-preview/index.css +12 -12
- package/{dist/esm → esm}/components/image-preview/index.d.ts +0 -0
- package/{dist/esm → esm}/components/image-preview/index.js +0 -0
- package/{dist/esm → esm}/components/image-viewer/component.d.ts +0 -0
- package/{dist/esm → esm}/components/image-viewer/component.js +3 -3
- package/{dist → esm}/components/image-viewer/index.css +19 -19
- package/{dist/esm → esm}/components/image-viewer/index.d.ts +0 -0
- package/{dist/esm → esm}/components/image-viewer/index.js +3 -3
- package/{dist/esm → esm}/components/image-viewer/slide.d.ts +0 -0
- package/esm/components/image-viewer/slide.js +6 -0
- package/{dist/esm → esm}/components/index.d.ts +0 -0
- package/{dist/esm → esm}/components/index.js +5 -5
- package/{dist/esm → esm}/components/navigation-bar/Component.d.ts +0 -0
- package/{dist/esm → esm}/components/navigation-bar/Component.js +1 -1
- package/{dist/modern → esm}/components/navigation-bar/index.css +6 -6
- package/{dist/esm → esm}/components/navigation-bar/index.d.ts +0 -0
- package/{dist/esm → esm}/components/navigation-bar/index.js +0 -0
- package/{dist/esm → esm}/context.d.ts +0 -0
- package/{dist/esm → esm}/context.js +0 -0
- package/{dist/esm → esm}/index.css +3 -3
- package/{dist/esm → esm}/index.d.ts +0 -0
- package/{dist/esm → esm}/index.js +6 -6
- package/{dist/esm/slide-b25136e4.d.ts → esm/slide-33e235a0.d.ts} +0 -0
- package/{dist/esm/slide-b25136e4.js → esm/slide-33e235a0.js} +2 -2
- package/{dist/esm/tslib.es6-1846db0b.d.ts → esm/tslib.es6-1aba2898.d.ts} +0 -0
- package/{dist/esm/tslib.es6-1846db0b.js → esm/tslib.es6-1aba2898.js} +0 -0
- package/{dist/esm → esm}/types.d.ts +0 -0
- package/{dist/esm → esm}/types.js +0 -0
- package/{dist/esm → esm}/utils/constants.d.ts +0 -0
- package/{dist/esm → esm}/utils/constants.js +0 -0
- package/{dist/esm → esm}/utils/index.d.ts +0 -0
- package/{dist/esm → esm}/utils/index.js +0 -0
- package/{dist/esm → esm}/utils/split-filename.d.ts +0 -0
- package/{dist/esm → esm}/utils/split-filename.js +0 -0
- package/{dist/esm → esm}/utils/utils.d.ts +0 -0
- package/{dist/esm → esm}/utils/utils.js +0 -0
- package/{dist/index.css → index.css} +3 -3
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +2 -2
- package/{dist/modern → modern}/Component.d.ts +0 -0
- package/{dist/modern → modern}/Component.js +6 -6
- package/{dist/modern → modern}/components/header/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/header/Component.js +4 -4
- package/{dist/modern → modern}/components/header/buttons.d.ts +0 -0
- package/{dist/modern → modern}/components/header/buttons.js +2 -2
- package/{dist/modern → modern}/components/header/index.css +3 -3
- package/{dist/modern → modern}/components/header/index.d.ts +0 -0
- package/{dist/modern → modern}/components/header/index.js +3 -3
- package/{dist/modern → modern}/components/header-info-block/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/header-info-block/Component.js +2 -2
- package/{dist/modern → modern}/components/header-info-block/index.css +5 -5
- package/{dist/modern → modern}/components/header-info-block/index.d.ts +0 -0
- package/{dist/modern → modern}/components/header-info-block/index.js +1 -1
- package/{dist/modern → modern}/components/image-preview/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/image-preview/Component.js +1 -1
- package/{dist/modern → modern}/components/image-preview/index.css +12 -12
- package/{dist/modern → modern}/components/image-preview/index.d.ts +0 -0
- package/{dist/modern → modern}/components/image-preview/index.js +0 -0
- package/{dist/modern → modern}/components/image-viewer/component.d.ts +0 -0
- package/{dist/modern → modern}/components/image-viewer/component.js +2 -2
- package/{dist/modern → modern}/components/image-viewer/index.css +19 -19
- package/{dist/modern → modern}/components/image-viewer/index.d.ts +0 -0
- package/{dist/modern → modern}/components/image-viewer/index.js +2 -2
- package/{dist/modern → modern}/components/image-viewer/slide.d.ts +0 -0
- package/modern/components/image-viewer/slide.js +6 -0
- package/{dist/modern → modern}/components/index.d.ts +0 -0
- package/{dist/modern → modern}/components/index.js +4 -4
- package/{dist/modern → modern}/components/navigation-bar/Component.d.ts +0 -0
- package/{dist/modern → modern}/components/navigation-bar/Component.js +1 -1
- package/{dist → modern}/components/navigation-bar/index.css +6 -6
- package/{dist/modern → modern}/components/navigation-bar/index.d.ts +0 -0
- package/{dist/modern → modern}/components/navigation-bar/index.js +0 -0
- package/{dist/modern → modern}/context.d.ts +0 -0
- package/{dist/modern → modern}/context.js +0 -0
- package/{dist/modern → modern}/index.css +3 -3
- package/{dist/modern → modern}/index.d.ts +0 -0
- package/{dist/modern → modern}/index.js +5 -5
- package/{dist/modern/slide-6fb4914a.d.ts → modern/slide-ae1427a7.d.ts} +0 -0
- package/{dist/modern/slide-6fb4914a.js → modern/slide-ae1427a7.js} +2 -2
- package/{dist/modern → modern}/types.d.ts +0 -0
- package/{dist/modern → modern}/types.js +0 -0
- package/{dist/modern → modern}/utils/constants.d.ts +0 -0
- package/{dist/modern → modern}/utils/constants.js +0 -0
- package/{dist/modern → modern}/utils/index.d.ts +0 -0
- package/{dist/modern → modern}/utils/index.js +0 -0
- package/{dist/modern → modern}/utils/split-filename.d.ts +0 -0
- package/{dist/modern → modern}/utils/split-filename.js +0 -0
- package/{dist/modern → modern}/utils/utils.d.ts +0 -0
- package/{dist/modern → modern}/utils/utils.js +0 -0
- package/package.json +11 -14
- package/{dist/send-stats.js → send-stats.js} +0 -0
- package/{dist/slide-8ffa7c9e.d.ts → slide-bbc8b1f6.d.ts} +0 -0
- package/{dist/slide-8ffa7c9e.js → slide-bbc8b1f6.js} +1 -1
- package/{dist/tslib.es6-18334644.d.ts → tslib.es6-79ad7e3e.d.ts} +0 -0
- package/{dist/tslib.es6-18334644.js → tslib.es6-79ad7e3e.js} +0 -0
- package/{dist/types.d.ts → types.d.ts} +0 -0
- package/{dist/types.js → types.js} +0 -0
- package/{dist/utils → utils}/constants.d.ts +0 -0
- package/{dist/utils → utils}/constants.js +0 -0
- package/{dist/utils → utils}/index.d.ts +0 -0
- package/{dist/utils → utils}/index.js +0 -0
- package/{dist/utils → utils}/split-filename.d.ts +0 -0
- package/{dist/utils → utils}/split-filename.js +0 -0
- package/{dist/utils → utils}/utils.d.ts +0 -0
- package/{dist/utils → utils}/utils.js +0 -0
- package/dist/esm/components/image-viewer/slide.js +0 -6
- package/dist/modern/components/image-viewer/slide.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1vh1r */
|
|
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_cvbqh {
|
|
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_cvbqh {
|
|
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_cvbqh .gallery__swiper_cvbqh {
|
|
50
50
|
max-height: calc(100vh - 80px);
|
|
51
51
|
padding: var(--gap-2xl);
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.gallery__hidden_cvbqh {
|
|
54
54
|
display: none;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.gallery__slide_cvbqh {
|
|
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_cvbqh {
|
|
65
65
|
/* TODO: цвета нет в палитре */
|
|
66
66
|
background-color: #e9eaeb;
|
|
67
67
|
border-radius: var(--border-radius-m);
|
|
68
68
|
}
|
|
69
|
-
.
|
|
69
|
+
.gallery__image_cvbqh {
|
|
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_cvbqh {
|
|
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_cvbqh {
|
|
86
86
|
width: auto;
|
|
87
87
|
height: 100%;
|
|
88
88
|
}
|
|
89
|
-
.
|
|
89
|
+
.gallery__horizontalImageFit_cvbqh {
|
|
90
90
|
width: 100%;
|
|
91
91
|
height: auto;
|
|
92
92
|
}
|
|
93
|
-
.
|
|
93
|
+
.gallery__arrow_cvbqh {
|
|
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_cvbqh:hover {
|
|
107
107
|
background-color: var(--color-light-bg-primary-inverted-alpha-10);
|
|
108
108
|
}
|
|
109
|
-
.
|
|
109
|
+
.gallery__arrow_cvbqh:active {
|
|
110
110
|
background-color: var(--color-light-bg-primary-inverted-alpha-20);
|
|
111
111
|
}
|
|
112
|
-
.
|
|
112
|
+
.gallery__focused_cvbqh {
|
|
113
113
|
outline: 2px solid var(--focus-color);
|
|
114
114
|
outline-offset: 2px;
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
.gallery__placeholder_cvbqh {
|
|
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_cvbqh {
|
|
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_cvbqh {
|
|
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_cvbqh {
|
|
142
142
|
width: 100%;
|
|
143
143
|
height: auto;
|
|
144
144
|
background-color: var(--color-light-bg-primary);
|
|
File without changes
|
|
@@ -4,12 +4,12 @@ import '@alfalab/hooks';
|
|
|
4
4
|
import '../../context.js';
|
|
5
5
|
import '../../utils/utils.js';
|
|
6
6
|
import '../../utils/constants.js';
|
|
7
|
-
import '@alfalab/core-components-typography/
|
|
7
|
+
import '@alfalab/core-components-typography/modern';
|
|
8
8
|
import 'swiper';
|
|
9
9
|
import 'swiper/react';
|
|
10
10
|
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-ae1427a7.js';
|
|
15
15
|
export { ImageViewer } from './component.js';
|
|
File without changes
|
|
File without changes
|
|
@@ -7,10 +7,10 @@ export { NavigationBar } from './navigation-bar/Component.js';
|
|
|
7
7
|
import '../utils/split-filename.js';
|
|
8
8
|
import '../utils/utils.js';
|
|
9
9
|
import '../utils/constants.js';
|
|
10
|
-
import '@alfalab/core-components-typography/
|
|
10
|
+
import '@alfalab/core-components-typography/modern';
|
|
11
11
|
import './header-info-block/Component.js';
|
|
12
|
-
import '@alfalab/core-components-icon-button/
|
|
13
|
-
import '@alfalab/core-components-tooltip/
|
|
12
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
13
|
+
import '@alfalab/core-components-tooltip/modern';
|
|
14
14
|
import '@alfalab/icons-glyph/PointerDownMIcon';
|
|
15
15
|
import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
|
|
16
16
|
import '@alfalab/icons-glyph/ArrowsInwardMIcon';
|
|
@@ -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-ae1427a7.js';
|
|
27
27
|
export { ImageViewer } from './image-viewer/component.js';
|
|
File without changes
|
|
@@ -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_1toad","preview":"gallery__preview_1toad"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const MIN_SCROLL_STEP = 24;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 2lcl4 */
|
|
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_1toad {
|
|
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_1toad::-webkit-scrollbar {
|
|
31
31
|
display: none;
|
|
32
32
|
}
|
|
33
|
-
.
|
|
33
|
+
.gallery__preview_1toad {
|
|
34
34
|
flex-shrink: 0;
|
|
35
35
|
margin: 0 var(--gap-3xs)
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.gallery__preview_1toad:first-child {
|
|
38
38
|
margin-left: auto;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.gallery__preview_1toad:last-child {
|
|
41
41
|
margin-right: auto;
|
|
42
42
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1yeuk */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.gallery__container_1bvrs {
|
|
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_1bvrs {
|
|
18
18
|
flex-grow: 1;
|
|
19
19
|
width: 100%;
|
|
20
20
|
background: transparent;
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '@alfalab/core-components-base-modal/
|
|
2
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
import './context.js';
|
|
@@ -8,10 +8,10 @@ import './components/navigation-bar/Component.js';
|
|
|
8
8
|
export { splitFilename } from './utils/split-filename.js';
|
|
9
9
|
export { PLACEHOLDER_HEIGHT, PLACEHOLDER_WIDTH, getImageAlt, getImageKey, isSmallImage } from './utils/utils.js';
|
|
10
10
|
export { TestIds } from './utils/constants.js';
|
|
11
|
-
import '@alfalab/core-components-typography/
|
|
11
|
+
import '@alfalab/core-components-typography/modern';
|
|
12
12
|
import './components/header-info-block/Component.js';
|
|
13
|
-
import '@alfalab/core-components-icon-button/
|
|
14
|
-
import '@alfalab/core-components-tooltip/
|
|
13
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
14
|
+
import '@alfalab/core-components-tooltip/modern';
|
|
15
15
|
import '@alfalab/icons-glyph/PointerDownMIcon';
|
|
16
16
|
import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
|
|
17
17
|
import '@alfalab/icons-glyph/ArrowsInwardMIcon';
|
|
@@ -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-ae1427a7.js';
|
|
28
28
|
import './components/image-viewer/component.js';
|
|
29
29
|
export { Gallery } from './Component.js';
|
|
File without changes
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { isSmallImage, getImageAlt } from './utils/utils.js';
|
|
4
4
|
import { TestIds } from './utils/constants.js';
|
|
5
|
-
import { Typography } from '@alfalab/core-components-typography/
|
|
5
|
+
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"
|
|
7
|
+
var styles = {"component":"gallery__component_cvbqh","swiper":"gallery__swiper_cvbqh","singleSlide":"gallery__singleSlide_cvbqh","hidden":"gallery__hidden_cvbqh","slide":"gallery__slide_cvbqh","slideLoading":"gallery__slideLoading_cvbqh","image":"gallery__image_cvbqh","smallImage":"gallery__smallImage_cvbqh","verticalImageFit":"gallery__verticalImageFit_cvbqh","horizontalImageFit":"gallery__horizontalImageFit_cvbqh","arrow":"gallery__arrow_cvbqh","focused":"gallery__focused_cvbqh","placeholder":"gallery__placeholder_cvbqh","brokenImgWrapper":"gallery__brokenImgWrapper_cvbqh","brokenImgIcon":"gallery__brokenImgIcon_cvbqh","fullScreenImage":"gallery__fullScreenImage_cvbqh"};
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,33 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-gallery",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "
|
|
8
|
-
"module": "./
|
|
9
|
-
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
],
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"module": "./esm/index.js",
|
|
12
9
|
"scripts": {
|
|
13
|
-
"postinstall": "node ./
|
|
10
|
+
"postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
|
|
14
11
|
},
|
|
15
12
|
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
13
|
+
"access": "public",
|
|
14
|
+
"directory": "dist"
|
|
17
15
|
},
|
|
18
16
|
"peerDependencies": {
|
|
19
17
|
"react": "^16.9.0 || ^17.0.1"
|
|
20
18
|
},
|
|
21
19
|
"dependencies": {
|
|
22
|
-
"@alfalab/core-components-base-modal": "^4.1
|
|
23
|
-
"@alfalab/core-components-icon-button": "^4.2.
|
|
24
|
-
"@alfalab/core-components-tooltip": "^5.
|
|
25
|
-
"@alfalab/core-components-typography": "^2.6.
|
|
20
|
+
"@alfalab/core-components-base-modal": "^4.2.1",
|
|
21
|
+
"@alfalab/core-components-icon-button": "^4.2.3",
|
|
22
|
+
"@alfalab/core-components-tooltip": "^5.6.0",
|
|
23
|
+
"@alfalab/core-components-typography": "^2.6.3",
|
|
26
24
|
"@alfalab/hooks": "^1.4.1",
|
|
27
25
|
"@alfalab/icons-glyph": "^2.16.0",
|
|
28
26
|
"classnames": "^2.2.6",
|
|
29
27
|
"element-closest": "^3.0.2",
|
|
30
28
|
"swiper": "^6.8.2"
|
|
31
|
-
}
|
|
32
|
-
"gitHead": "a1e54f5b2894447f4a6c80347706c27f855d5710"
|
|
29
|
+
}
|
|
33
30
|
}
|
|
File without changes
|
|
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_cvbqh","swiper":"gallery__swiper_cvbqh","singleSlide":"gallery__singleSlide_cvbqh","hidden":"gallery__hidden_cvbqh","slide":"gallery__slide_cvbqh","slideLoading":"gallery__slideLoading_cvbqh","image":"gallery__image_cvbqh","smallImage":"gallery__smallImage_cvbqh","verticalImageFit":"gallery__verticalImageFit_cvbqh","horizontalImageFit":"gallery__horizontalImageFit_cvbqh","arrow":"gallery__arrow_cvbqh","focused":"gallery__focused_cvbqh","placeholder":"gallery__placeholder_cvbqh","brokenImgWrapper":"gallery__brokenImgWrapper_cvbqh","brokenImgIcon":"gallery__brokenImgIcon_cvbqh","fullScreenImage":"gallery__fullScreenImage_cvbqh"};
|
|
15
15
|
require('./components/image-viewer/index.css')
|
|
16
16
|
|
|
17
17
|
var Slide = function (_a) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|