@alfalab/core-components-gallery 5.3.11 → 5.3.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/{Component-72308007.d.ts → Component-10db897e.d.ts} +2 -2
- package/Component.js +3 -3
- package/{esm/buttons-0965ac63.d.ts → buttons-d514caf4.d.ts} +1 -1
- package/{buttons-780a9612.js → buttons-d514caf4.js} +1 -1
- package/components/header/Component.js +1 -1
- package/components/header/buttons.js +1 -1
- package/components/header/index.css +6 -6
- 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 +1 -1
- package/components/image-viewer/index.css +19 -19
- package/components/image-viewer/index.js +1 -1
- 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/{modern/Component-72308007.d.ts → cssm/Component-10db897e.d.ts} +2 -2
- package/{esm/index-72308007.d.ts → cssm/index-10db897e.d.ts} +1 -5
- package/{esm/types-83e2bd9e.d.ts → cssm/types-1c79e231.d.ts} +1 -1
- package/{modern/typings-9211a437.d.ts → cssm/typings-89f0cb07.d.ts} +5 -7
- package/esm/{Component-72308007.d.ts → Component-10db897e.d.ts} +2 -2
- package/esm/Component.js +3 -3
- package/{buttons-780a9612.d.ts → esm/buttons-247d4b1f.d.ts} +1 -1
- package/esm/{buttons-0965ac63.js → buttons-247d4b1f.js} +1 -1
- package/esm/components/header/Component.js +1 -1
- package/esm/components/header/buttons.js +1 -1
- package/esm/components/header/index.css +6 -6
- 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 +1 -1
- package/esm/components/image-viewer/index.css +19 -19
- package/esm/components/image-viewer/index.js +1 -1
- 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/{cssm/index-72308007.d.ts → esm/index-10db897e.d.ts} +1 -5
- package/esm/index.css +3 -3
- package/esm/index.js +2 -2
- package/esm/{slide-d9cdf1b9.js → slide-bef03503.js} +1 -1
- package/{cssm/types-83e2bd9e.d.ts → esm/types-1c79e231.d.ts} +1 -1
- package/{cssm/typings-9211a437.d.ts → esm/typings-89f0cb07.d.ts} +5 -7
- package/{index-72308007.d.ts → index-10db897e.d.ts} +1 -5
- package/index.css +3 -3
- package/index.js +2 -2
- package/{cssm/Component-72308007.d.ts → modern/Component-10db897e.d.ts} +2 -2
- package/modern/Component.js +3 -3
- package/modern/{buttons-e3280b86.d.ts → buttons-5aea213f.d.ts} +1 -1
- package/modern/{buttons-e3280b86.js → buttons-5aea213f.js} +1 -1
- package/modern/components/header/Component.js +1 -1
- package/modern/components/header/buttons.js +1 -1
- package/modern/components/header/index.css +6 -6
- package/modern/components/header/index.js +1 -1
- 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 +19 -19
- package/modern/components/image-viewer/index.js +1 -1
- package/modern/components/image-viewer/slide.js +1 -1
- package/modern/components/index.js +2 -2
- package/modern/components/navigation-bar/Component.js +1 -1
- package/modern/components/navigation-bar/index.css +6 -6
- package/modern/{index-72308007.d.ts → index-10db897e.d.ts} +1 -5
- package/modern/index.css +3 -3
- package/modern/index.js +2 -2
- package/modern/{slide-b39d6409.js → slide-21ff3c1c.js} +1 -1
- package/modern/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
- package/{typings-9211a437.d.ts → modern/typings-89f0cb07.d.ts} +5 -7
- package/package.json +4 -4
- package/{slide-5c2795ac.js → slide-ac2a04bd.js} +1 -1
- package/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
- package/{esm/typings-9211a437.d.ts → typings-89f0cb07.d.ts} +5 -7
- /package/esm/{slide-d9cdf1b9.d.ts → slide-bef03503.d.ts} +0 -0
- /package/modern/{slide-b39d6409.d.ts → slide-21ff3c1c.d.ts} +0 -0
- /package/{slide-5c2795ac.d.ts → slide-ac2a04bd.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1m3c5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-static-graphic-light: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
--gap-2xl: 32px;
|
|
21
21
|
} :root {
|
|
22
22
|
} :root {
|
|
23
|
-
} .
|
|
23
|
+
} .gallery__header_vinny {
|
|
24
24
|
display: flex;
|
|
25
25
|
justify-content: space-between;
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
width: 100%;
|
|
28
28
|
padding: var(--gap-m) var(--gap-xl);
|
|
29
29
|
box-sizing: border-box;
|
|
30
|
-
} .
|
|
30
|
+
} .gallery__buttons_vinny {
|
|
31
31
|
display: flex;
|
|
32
32
|
padding-left: var(--gap-2xl)
|
|
33
|
-
} .
|
|
33
|
+
} .gallery__buttons_vinny path {
|
|
34
34
|
color: var(--color-static-graphic-light);
|
|
35
|
-
} /* TODO: применять static цвет через prop IconButton'а */ .
|
|
35
|
+
} /* TODO: применять static цвет через prop IconButton'а */ .gallery__iconButton_vinny:hover path {
|
|
36
36
|
color: var(--color-static-graphic-light-shade-7);
|
|
37
|
-
} .
|
|
37
|
+
} .gallery__iconButton_vinny:active path {
|
|
38
38
|
color: var(--color-static-graphic-light-shade-15);
|
|
39
39
|
}
|
|
@@ -6,7 +6,7 @@ import '../../utils/constants.js';
|
|
|
6
6
|
import '../header-info-block/Component.js';
|
|
7
7
|
import '@alfalab/core-components-typography/modern';
|
|
8
8
|
import '../../utils/split-filename.js';
|
|
9
|
-
import '../../buttons-
|
|
9
|
+
import '../../buttons-5aea213f.js';
|
|
10
10
|
import '@alfalab/core-components-icon-button/modern';
|
|
11
11
|
import '@alfalab/core-components-tooltip/modern/desktop';
|
|
12
12
|
import '@alfalab/icons-glyph/ArrowsInwardMIcon';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
3
3
|
import { splitFilename } from '../../utils/split-filename.js';
|
|
4
4
|
|
|
5
|
-
const styles = {"info":"
|
|
5
|
+
const styles = {"info":"gallery__info_1eh02","filenameHead":"gallery__filenameHead_1eh02","filenameContainer":"gallery__filenameContainer_1eh02","description":"gallery__description_1eh02"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const HeaderInfoBlock = ({ filename, description }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1reh2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -15,21 +15,21 @@
|
|
|
15
15
|
--gap-2xs: 4px;
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .gallery__info_1eh02 {
|
|
19
19
|
height: 100%;
|
|
20
20
|
display: flex;
|
|
21
21
|
flex-direction: column;
|
|
22
22
|
justify-content: center;
|
|
23
23
|
overflow: hidden;
|
|
24
|
-
} .
|
|
24
|
+
} .gallery__filenameHead_1eh02 {
|
|
25
25
|
display: inline;
|
|
26
26
|
text-overflow: ellipsis;
|
|
27
27
|
overflow: hidden;
|
|
28
28
|
white-space: nowrap;
|
|
29
|
-
} .
|
|
29
|
+
} .gallery__filenameContainer_1eh02 {
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
display: inline-flex;
|
|
32
|
-
} .
|
|
32
|
+
} .gallery__description_1eh02 {
|
|
33
33
|
display: inline;
|
|
34
34
|
text-overflow: ellipsis;
|
|
35
35
|
overflow: hidden;
|
|
@@ -4,7 +4,7 @@ import { useFocus } from '@alfalab/hooks';
|
|
|
4
4
|
import { GalleryContext } from '../../context.js';
|
|
5
5
|
import { NoImagePaths } from './paths.js';
|
|
6
6
|
|
|
7
|
-
const styles = {"component":"
|
|
7
|
+
const styles = {"component":"gallery__component_a5ud8","active":"gallery__active_a5ud8","image":"gallery__image_a5ud8","preview":"gallery__preview_a5ud8","loading":"gallery__loading_a5ud8","brokenImageWrapper":"gallery__brokenImageWrapper_a5ud8","brokenIcon":"gallery__brokenIcon_a5ud8","focused":"gallery__focused_a5ud8"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const ImagePreview = ({ image, active = false, index, onSelect, className }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1hv9c */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
} :root {
|
|
24
24
|
} :root {
|
|
25
25
|
--focus-color: var(--color-light-border-link);
|
|
26
|
-
} .
|
|
26
|
+
} .gallery__component_a5ud8 {
|
|
27
27
|
display: flex;
|
|
28
28
|
padding: var(--gap-2xs);
|
|
29
29
|
border: 2px solid rgba(0, 0, 0, 0);
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
overflow: hidden;
|
|
32
32
|
transition: border 0.15s ease-in-out;
|
|
33
33
|
outline: none;
|
|
34
|
-
} .
|
|
34
|
+
} .gallery__active_a5ud8 {
|
|
35
35
|
border-color: var(--color-static-overlay-white-xhigh)
|
|
36
|
-
} .
|
|
36
|
+
} .gallery__active_a5ud8 > .gallery__image_a5ud8 {
|
|
37
37
|
opacity: 0.7;
|
|
38
|
-
} .
|
|
38
|
+
} .gallery__preview_a5ud8 {
|
|
39
39
|
width: 56px;
|
|
40
40
|
height: 56px;
|
|
41
41
|
flex-shrink: 0;
|
|
@@ -43,29 +43,29 @@
|
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
-webkit-user-select: none;
|
|
45
45
|
user-select: none;
|
|
46
|
-
} .
|
|
46
|
+
} .gallery__image_a5ud8 {
|
|
47
47
|
background-color: var(--color-light-bg-primary);
|
|
48
48
|
background-size: cover;
|
|
49
49
|
background-repeat: no-repeat;
|
|
50
50
|
background-position: center;
|
|
51
51
|
transition: opacity 0.15s ease-in-out
|
|
52
|
-
} .
|
|
52
|
+
} .gallery__image_a5ud8:hover {
|
|
53
53
|
opacity: 0.7;
|
|
54
|
-
} .
|
|
54
|
+
} .gallery__loading_a5ud8 {
|
|
55
55
|
background-color: var(--color-static-bg-secondary-dark)
|
|
56
|
-
} .
|
|
56
|
+
} .gallery__loading_a5ud8 .gallery__active_a5ud8 {
|
|
57
57
|
background-color: var(--color-static-bg-quaternary-dark);
|
|
58
|
-
} .
|
|
58
|
+
} .gallery__brokenImageWrapper_a5ud8 {
|
|
59
59
|
display: flex;
|
|
60
60
|
justify-content: center;
|
|
61
61
|
align-items: center;
|
|
62
62
|
background-color: var(--color-static-bg-quaternary-dark)
|
|
63
|
-
} .
|
|
63
|
+
} .gallery__brokenImageWrapper_a5ud8:hover {
|
|
64
64
|
opacity: 0.7;
|
|
65
|
-
} .
|
|
65
|
+
} .gallery__brokenIcon_a5ud8 {
|
|
66
66
|
width: 40px;
|
|
67
67
|
height: 40px;
|
|
68
|
-
} .
|
|
68
|
+
} .gallery__focused_a5ud8 {
|
|
69
69
|
outline: 2px solid var(--focus-color);
|
|
70
70
|
outline-offset: 2px;
|
|
71
71
|
}
|
|
@@ -9,7 +9,7 @@ import { ChevronForwardHeavyMIcon } from '@alfalab/icons-glyph/ChevronForwardHea
|
|
|
9
9
|
import { GalleryContext } from '../../context.js';
|
|
10
10
|
import { getImageAlt, getImageKey } from '../../utils/utils.js';
|
|
11
11
|
import { TestIds } from '../../utils/constants.js';
|
|
12
|
-
import { s as styles, S as Slide } from '../../slide-
|
|
12
|
+
import { s as styles, S as Slide } from '../../slide-21ff3c1c.js';
|
|
13
13
|
import 'swiper/swiper.min.css';
|
|
14
14
|
import '@alfalab/core-components-typography/modern';
|
|
15
15
|
import './paths.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1slo3 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
} :root {
|
|
28
28
|
} :root {
|
|
29
29
|
--focus-color: var(--color-light-border-link);
|
|
30
|
-
} .
|
|
30
|
+
} .gallery__component_hik5r {
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-grow: 1;
|
|
33
33
|
justify-content: center;
|
|
34
34
|
align-items: center;
|
|
35
35
|
background-color: var(--color-static-bg-primary-dark);
|
|
36
|
-
} .
|
|
36
|
+
} .gallery__swiper_hik5r {
|
|
37
37
|
display: flex;
|
|
38
38
|
width: 100%;
|
|
39
39
|
height: 100%;
|
|
@@ -42,42 +42,42 @@
|
|
|
42
42
|
max-height: calc(100vh - 168px);
|
|
43
43
|
padding: var(--gap-2xl) var(--gap-m);
|
|
44
44
|
box-sizing: border-box;
|
|
45
|
-
} .
|
|
45
|
+
} .gallery__singleSlide_hik5r .gallery__swiper_hik5r {
|
|
46
46
|
max-height: calc(100vh - 80px);
|
|
47
47
|
padding: var(--gap-2xl);
|
|
48
|
-
} .
|
|
48
|
+
} .gallery__hidden_hik5r {
|
|
49
49
|
display: none;
|
|
50
|
-
} .
|
|
50
|
+
} .gallery__slide_hik5r {
|
|
51
51
|
position: relative;
|
|
52
52
|
display: flex;
|
|
53
53
|
justify-content: center;
|
|
54
54
|
align-items: center;
|
|
55
55
|
width: 100%;
|
|
56
56
|
height: 100%;
|
|
57
|
-
} .
|
|
57
|
+
} .gallery__slideLoading_hik5r {
|
|
58
58
|
background-color: var(--color-static-bg-secondary-dark);
|
|
59
59
|
border-radius: var(--border-radius-m);
|
|
60
|
-
} .
|
|
60
|
+
} .gallery__image_hik5r {
|
|
61
61
|
width: 0;
|
|
62
62
|
height: 0;
|
|
63
63
|
-webkit-user-select: none;
|
|
64
64
|
user-select: none;
|
|
65
65
|
background-color: var(--color-light-bg-primary);
|
|
66
66
|
border-radius: var(--border-radius-m);
|
|
67
|
-
} .
|
|
67
|
+
} .gallery__smallImage_hik5r {
|
|
68
68
|
position: relative;
|
|
69
69
|
width: auto;
|
|
70
70
|
height: auto;
|
|
71
71
|
-webkit-user-select: none;
|
|
72
72
|
user-select: none;
|
|
73
73
|
background-color: var(--color-light-bg-primary);
|
|
74
|
-
} .
|
|
74
|
+
} .gallery__verticalImageFit_hik5r {
|
|
75
75
|
width: auto;
|
|
76
76
|
height: 100%;
|
|
77
|
-
} .
|
|
77
|
+
} .gallery__horizontalImageFit_hik5r {
|
|
78
78
|
width: 100%;
|
|
79
79
|
height: auto;
|
|
80
|
-
} .
|
|
80
|
+
} .gallery__arrow_hik5r {
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
justify-content: center;
|
|
@@ -89,14 +89,14 @@
|
|
|
89
89
|
color: var(--color-static-graphic-light);
|
|
90
90
|
transition: background-color 0.15s ease-in-out;
|
|
91
91
|
outline: none
|
|
92
|
-
} .
|
|
92
|
+
} .gallery__arrow_hik5r:hover {
|
|
93
93
|
background-color: var(--color-static-bg-primary-dark-tint-15);
|
|
94
|
-
} .
|
|
94
|
+
} .gallery__arrow_hik5r:active {
|
|
95
95
|
background-color: var(--color-static-bg-primary-dark-tint-20);
|
|
96
|
-
} .
|
|
96
|
+
} .gallery__focused_hik5r {
|
|
97
97
|
outline: 2px solid var(--focus-color);
|
|
98
98
|
outline-offset: 2px;
|
|
99
|
-
} .
|
|
99
|
+
} .gallery__placeholder_hik5r {
|
|
100
100
|
display: flex;
|
|
101
101
|
justify-content: center;
|
|
102
102
|
align-items: center;
|
|
@@ -104,18 +104,18 @@
|
|
|
104
104
|
height: 300px;
|
|
105
105
|
border-radius: var(--border-radius-m);
|
|
106
106
|
background-color: var(--color-static-bg-quaternary-dark);
|
|
107
|
-
} .
|
|
107
|
+
} .gallery__brokenImgWrapper_hik5r {
|
|
108
108
|
position: relative;
|
|
109
109
|
display: flex;
|
|
110
110
|
flex-direction: column;
|
|
111
111
|
align-items: center;
|
|
112
112
|
width: 150px;
|
|
113
113
|
text-align: center;
|
|
114
|
-
} .
|
|
114
|
+
} .gallery__brokenImgIcon_hik5r {
|
|
115
115
|
width: 80px;
|
|
116
116
|
height: 80px;
|
|
117
117
|
margin-bottom: var(--gap-2xs);
|
|
118
|
-
} .
|
|
118
|
+
} .gallery__fullScreenImage_hik5r {
|
|
119
119
|
width: 100%;
|
|
120
120
|
height: auto;
|
|
121
121
|
background-color: var(--color-light-bg-primary);
|
|
@@ -10,7 +10,7 @@ import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
|
10
10
|
import '../../context.js';
|
|
11
11
|
import '../../utils/utils.js';
|
|
12
12
|
import '../../utils/constants.js';
|
|
13
|
-
import '../../slide-
|
|
13
|
+
import '../../slide-21ff3c1c.js';
|
|
14
14
|
import '@alfalab/core-components-typography/modern';
|
|
15
15
|
import './paths.js';
|
|
16
16
|
import 'swiper/swiper.min.css';
|
|
@@ -9,7 +9,7 @@ import '../utils/constants.js';
|
|
|
9
9
|
import './header-info-block/Component.js';
|
|
10
10
|
import '@alfalab/core-components-typography/modern';
|
|
11
11
|
import '../utils/split-filename.js';
|
|
12
|
-
import '../buttons-
|
|
12
|
+
import '../buttons-5aea213f.js';
|
|
13
13
|
import '@alfalab/core-components-icon-button/modern';
|
|
14
14
|
import '@alfalab/core-components-tooltip/modern/desktop';
|
|
15
15
|
import '@alfalab/icons-glyph/ArrowsInwardMIcon';
|
|
@@ -24,6 +24,6 @@ import 'swiper';
|
|
|
24
24
|
import 'swiper/react';
|
|
25
25
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
26
26
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
27
|
-
import '../slide-
|
|
27
|
+
import '../slide-21ff3c1c.js';
|
|
28
28
|
import './image-viewer/paths.js';
|
|
29
29
|
import 'swiper/swiper.min.css';
|
|
@@ -7,7 +7,7 @@ import 'classnames';
|
|
|
7
7
|
import '@alfalab/hooks';
|
|
8
8
|
import '../image-preview/paths.js';
|
|
9
9
|
|
|
10
|
-
const styles = {"component":"
|
|
10
|
+
const styles = {"component":"gallery__component_1ld73","preview":"gallery__preview_1ld73"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
const MIN_SCROLL_STEP = 24;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1nwgw */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--gap-xl: 24px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .gallery__component_1ld73 {
|
|
20
20
|
display: flex;
|
|
21
21
|
flex-wrap: nowrap;
|
|
22
22
|
align-content: center;
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
padding: 10px var(--gap-xl);
|
|
28
28
|
-ms-overflow-style: none;
|
|
29
29
|
scrollbar-width: none
|
|
30
|
-
} .
|
|
30
|
+
} .gallery__component_1ld73::-webkit-scrollbar {
|
|
31
31
|
display: none;
|
|
32
|
-
} .
|
|
32
|
+
} .gallery__preview_1ld73 {
|
|
33
33
|
flex-shrink: 0;
|
|
34
34
|
margin: 0 var(--gap-3xs)
|
|
35
|
-
} .
|
|
35
|
+
} .gallery__preview_1ld73:first-child {
|
|
36
36
|
margin-left: auto;
|
|
37
|
-
} .
|
|
37
|
+
} .gallery__preview_1ld73:last-child {
|
|
38
38
|
margin-right: auto;
|
|
39
39
|
}
|
|
@@ -10,10 +10,6 @@ declare function easeInOutQuad(x: number): number;
|
|
|
10
10
|
declare const easingFns: {
|
|
11
11
|
easeInOutQuad: typeof easeInOutQuad;
|
|
12
12
|
};
|
|
13
|
-
declare function disableUserInput<T>(disabled: boolean | undefined, event: React.KeyboardEvent<T>): void;
|
|
14
|
-
declare const inputUtils: {
|
|
15
|
-
disableUserInput: typeof disableUserInput;
|
|
16
|
-
};
|
|
17
13
|
/**
|
|
18
14
|
* Возвращает true, если значение равно null или undefined
|
|
19
15
|
*/
|
|
@@ -51,4 +47,4 @@ declare const maskUtils: {
|
|
|
51
47
|
prefixPostprocessor: typeof prefixPostprocessor;
|
|
52
48
|
caretGuard: typeof caretGuard;
|
|
53
49
|
};
|
|
54
|
-
export { isClient, getDataTestId, createPaddingStyle, easingFns,
|
|
50
|
+
export { isClient, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils };
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 15juk */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-static-bg-primary-dark: #121212; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .gallery__container_98ags {
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
justify-content: space-between;
|
|
22
22
|
height: 100%;
|
|
23
23
|
width: 100%;
|
|
24
24
|
background-color: var(--color-static-bg-primary-dark);
|
|
25
|
-
} .
|
|
25
|
+
} .gallery__modal_98ags {
|
|
26
26
|
flex-grow: 1;
|
|
27
27
|
width: 100%;
|
|
28
28
|
height: 100%;
|
package/modern/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import './components/image-preview/paths.js';
|
|
|
13
13
|
import './components/header/Component.js';
|
|
14
14
|
import './components/header-info-block/Component.js';
|
|
15
15
|
import '@alfalab/core-components-typography/modern';
|
|
16
|
-
import './buttons-
|
|
16
|
+
import './buttons-5aea213f.js';
|
|
17
17
|
import '@alfalab/core-components-icon-button/modern';
|
|
18
18
|
import '@alfalab/core-components-tooltip/modern/desktop';
|
|
19
19
|
import '@alfalab/icons-glyph/ArrowsInwardMIcon';
|
|
@@ -26,6 +26,6 @@ import 'swiper';
|
|
|
26
26
|
import 'swiper/react';
|
|
27
27
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
28
28
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
29
|
-
import './slide-
|
|
29
|
+
import './slide-21ff3c1c.js';
|
|
30
30
|
import './components/image-viewer/paths.js';
|
|
31
31
|
import 'swiper/swiper.min.css';
|
|
@@ -5,7 +5,7 @@ import { isSmallImage, getImageAlt } from './utils/utils.js';
|
|
|
5
5
|
import { TestIds } from './utils/constants.js';
|
|
6
6
|
import { NoImagePaths } from './components/image-viewer/paths.js';
|
|
7
7
|
|
|
8
|
-
const styles = {"component":"
|
|
8
|
+
const styles = {"component":"gallery__component_hik5r","swiper":"gallery__swiper_hik5r","singleSlide":"gallery__singleSlide_hik5r","hidden":"gallery__hidden_hik5r","slide":"gallery__slide_hik5r","slideLoading":"gallery__slideLoading_hik5r","image":"gallery__image_hik5r","smallImage":"gallery__smallImage_hik5r","verticalImageFit":"gallery__verticalImageFit_hik5r","horizontalImageFit":"gallery__horizontalImageFit_hik5r","arrow":"gallery__arrow_hik5r","focused":"gallery__focused_hik5r","placeholder":"gallery__placeholder_hik5r","brokenImgWrapper":"gallery__brokenImgWrapper_hik5r","brokenImgIcon":"gallery__brokenImgIcon_hik5r","fullScreenImage":"gallery__fullScreenImage_hik5r"};
|
|
9
9
|
require('./components/image-viewer/index.css')
|
|
10
10
|
|
|
11
11
|
const SlideInner = ({ children, broken, loading, withPlaceholder }) => {
|
|
@@ -69,6 +69,8 @@ type ComponentProps = {
|
|
|
69
69
|
* Дочерние элементы.
|
|
70
70
|
*/
|
|
71
71
|
children?: ReactNode;
|
|
72
|
+
};
|
|
73
|
+
type PrivateButtonProps = {
|
|
72
74
|
/**
|
|
73
75
|
* Основные стили компонента.
|
|
74
76
|
*/
|
|
@@ -80,16 +82,12 @@ type ComponentProps = {
|
|
|
80
82
|
*/
|
|
81
83
|
colorStylesMap: StyleColors;
|
|
82
84
|
};
|
|
83
|
-
type
|
|
84
|
-
type
|
|
85
|
-
type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
|
|
86
|
-
type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
87
|
-
type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
88
|
-
type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
|
|
85
|
+
type CommonButtonProps = ComponentProps & Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
86
|
+
type ButtonProps = CommonButtonProps & {
|
|
89
87
|
/**
|
|
90
88
|
* Контрольная точка, с нее начинается desktop версия
|
|
91
89
|
* @default 1024
|
|
92
90
|
*/
|
|
93
91
|
breakpoint?: number;
|
|
94
92
|
};
|
|
95
|
-
export { StyleColors, ComponentProps,
|
|
93
|
+
export { StyleColors, ComponentProps, PrivateButtonProps, CommonButtonProps, ButtonProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-gallery",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@alfalab/core-components-base-modal": "^5.4.
|
|
18
|
-
"@alfalab/core-components-icon-button": "^6.
|
|
19
|
-
"@alfalab/core-components-tooltip": "^7.1.
|
|
17
|
+
"@alfalab/core-components-base-modal": "^5.4.1",
|
|
18
|
+
"@alfalab/core-components-icon-button": "^6.3.1",
|
|
19
|
+
"@alfalab/core-components-tooltip": "^7.1.8",
|
|
20
20
|
"@alfalab/core-components-typography": "^4.1.0",
|
|
21
21
|
"@alfalab/hooks": "^1.13.0",
|
|
22
22
|
"@alfalab/icons-glyph": "^2.108.0",
|
|
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
14
14
|
|
|
15
|
-
var styles = {"component":"
|
|
15
|
+
var styles = {"component":"gallery__component_hik5r","swiper":"gallery__swiper_hik5r","singleSlide":"gallery__singleSlide_hik5r","hidden":"gallery__hidden_hik5r","slide":"gallery__slide_hik5r","slideLoading":"gallery__slideLoading_hik5r","image":"gallery__image_hik5r","smallImage":"gallery__smallImage_hik5r","verticalImageFit":"gallery__verticalImageFit_hik5r","horizontalImageFit":"gallery__horizontalImageFit_hik5r","arrow":"gallery__arrow_hik5r","focused":"gallery__focused_hik5r","placeholder":"gallery__placeholder_hik5r","brokenImgWrapper":"gallery__brokenImgWrapper_hik5r","brokenImgIcon":"gallery__brokenImgIcon_hik5r","fullScreenImage":"gallery__fullScreenImage_hik5r"};
|
|
16
16
|
require('./components/image-viewer/index.css')
|
|
17
17
|
|
|
18
18
|
var SlideInner = function (_a) {
|
|
@@ -69,6 +69,8 @@ type ComponentProps = {
|
|
|
69
69
|
* Дочерние элементы.
|
|
70
70
|
*/
|
|
71
71
|
children?: ReactNode;
|
|
72
|
+
};
|
|
73
|
+
type PrivateButtonProps = {
|
|
72
74
|
/**
|
|
73
75
|
* Основные стили компонента.
|
|
74
76
|
*/
|
|
@@ -80,16 +82,12 @@ type ComponentProps = {
|
|
|
80
82
|
*/
|
|
81
83
|
colorStylesMap: StyleColors;
|
|
82
84
|
};
|
|
83
|
-
type
|
|
84
|
-
type
|
|
85
|
-
type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
|
|
86
|
-
type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
87
|
-
type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
88
|
-
type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
|
|
85
|
+
type CommonButtonProps = ComponentProps & Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
86
|
+
type ButtonProps = CommonButtonProps & {
|
|
89
87
|
/**
|
|
90
88
|
* Контрольная точка, с нее начинается desktop версия
|
|
91
89
|
* @default 1024
|
|
92
90
|
*/
|
|
93
91
|
breakpoint?: number;
|
|
94
92
|
};
|
|
95
|
-
export { StyleColors, ComponentProps,
|
|
93
|
+
export { StyleColors, ComponentProps, PrivateButtonProps, CommonButtonProps, ButtonProps };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|