@alfalab/core-components-gallery 5.1.19 → 5.2.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/buttons-fc45def4.d.ts +11 -0
- package/buttons-fc45def4.js +37 -0
- package/components/header/Component.js +5 -6
- package/components/header/buttons.d.ts +0 -11
- package/components/header/buttons.js +14 -27
- package/components/header/index.css +14 -7
- package/components/header/index.js +3 -1
- package/components/header-info-block/Component.js +6 -4
- package/components/header-info-block/index.css +5 -5
- package/components/header-info-block/index.js +2 -0
- package/components/image-preview/Component.js +5 -3
- package/components/image-preview/index.css +22 -19
- package/components/image-preview/index.js +2 -0
- package/components/image-preview/paths.js +2 -0
- package/components/image-viewer/component.js +3 -1
- package/components/image-viewer/index.css +32 -31
- package/components/image-viewer/index.js +3 -1
- package/components/image-viewer/paths.js +2 -0
- package/components/image-viewer/slide.js +3 -1
- package/components/index.js +7 -5
- package/components/navigation-bar/Component.js +3 -1
- package/components/navigation-bar/index.css +7 -9
- package/components/navigation-bar/index.js +2 -0
- package/context.js +2 -0
- package/cssm/Component.js +2 -0
- package/cssm/components/header/Component.js +2 -0
- package/cssm/components/header/buttons.js +8 -4
- package/cssm/components/header/index.js +2 -0
- package/cssm/components/header/index.module.css +11 -4
- package/cssm/components/header-info-block/Component.js +5 -3
- package/cssm/components/header-info-block/index.js +2 -0
- package/cssm/components/image-preview/Component.js +4 -2
- package/cssm/components/image-preview/index.js +2 -0
- package/cssm/components/image-preview/index.module.css +11 -8
- package/cssm/components/image-preview/paths.js +2 -0
- package/cssm/components/image-viewer/component.js +2 -0
- package/cssm/components/image-viewer/index.js +2 -0
- package/cssm/components/image-viewer/index.module.css +13 -12
- package/cssm/components/image-viewer/paths.js +2 -0
- package/cssm/components/image-viewer/slide.js +5 -3
- package/cssm/components/index.js +6 -4
- package/cssm/components/navigation-bar/Component.js +2 -0
- package/cssm/components/navigation-bar/index.js +2 -0
- package/cssm/components/navigation-bar/index.module.css +1 -3
- package/cssm/context.js +2 -0
- package/cssm/index.js +2 -0
- package/cssm/index.module.css +3 -1
- package/cssm/utils/constants.js +2 -0
- package/cssm/utils/index.js +2 -0
- package/cssm/utils/split-filename.js +2 -0
- package/cssm/utils/utils.js +2 -0
- package/esm/Component.js +3 -3
- package/esm/buttons-e3d668f3.d.ts +11 -0
- package/esm/buttons-e3d668f3.js +27 -0
- package/esm/components/header/Component.js +1 -4
- package/esm/components/header/buttons.d.ts +0 -11
- package/esm/components/header/buttons.js +9 -24
- package/esm/components/header/index.css +14 -7
- package/esm/components/header/index.js +1 -1
- package/esm/components/header-info-block/Component.js +4 -4
- package/esm/components/header-info-block/index.css +5 -5
- package/esm/components/image-preview/Component.js +3 -3
- package/esm/components/image-preview/index.css +22 -19
- package/esm/components/image-viewer/component.js +1 -1
- package/esm/components/image-viewer/index.css +32 -31
- package/esm/components/image-viewer/index.js +1 -1
- package/esm/components/image-viewer/slide.js +1 -1
- package/esm/components/index.js +5 -5
- package/esm/components/navigation-bar/Component.js +1 -1
- package/esm/components/navigation-bar/index.css +7 -9
- package/esm/index.css +6 -4
- package/esm/index.js +2 -2
- package/esm/{slide-c2ddd972.js → slide-91252b0b.js} +4 -4
- package/index.css +6 -4
- package/index.js +4 -2
- package/modern/Component.js +3 -3
- package/modern/buttons-ecc0dae2.d.ts +11 -0
- package/modern/buttons-ecc0dae2.js +20 -0
- package/modern/components/header/Component.js +1 -4
- package/modern/components/header/buttons.d.ts +0 -11
- package/modern/components/header/buttons.js +8 -17
- package/modern/components/header/index.css +14 -7
- package/modern/components/header/index.js +1 -1
- package/modern/components/header-info-block/Component.js +4 -4
- package/modern/components/header-info-block/index.css +5 -5
- package/modern/components/image-preview/Component.js +3 -3
- package/modern/components/image-preview/index.css +22 -19
- package/modern/components/image-viewer/component.js +1 -1
- package/modern/components/image-viewer/index.css +32 -31
- package/modern/components/image-viewer/index.js +1 -1
- package/modern/components/image-viewer/slide.js +1 -1
- package/modern/components/index.js +5 -5
- package/modern/components/navigation-bar/Component.js +1 -1
- package/modern/components/navigation-bar/index.css +7 -9
- package/modern/index.css +6 -4
- package/modern/index.js +2 -2
- package/modern/{slide-2e865179.js → slide-8b790c66.js} +4 -4
- package/package.json +5 -5
- package/{slide-7b9c9b36.js → slide-ac3f2828.js} +4 -4
- package/utils/constants.js +2 -0
- package/utils/index.js +2 -0
- package/utils/split-filename.js +2 -0
- package/utils/utils.js +2 -0
- /package/esm/{slide-c2ddd972.d.ts → slide-91252b0b.d.ts} +0 -0
- /package/modern/{slide-2e865179.d.ts → slide-8b790c66.d.ts} +0 -0
- /package/{slide-7b9c9b36.d.ts → slide-ac3f2828.d.ts} +0 -0
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: hw9ow */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
5
|
-
--color-light-border-link: #
|
|
6
|
-
--color-
|
|
7
|
-
--color-
|
|
8
|
-
--color-
|
|
9
|
-
--color-
|
|
5
|
+
--color-light-border-link: #0072ef;
|
|
6
|
+
--color-static-bg-primary-dark: #121212;
|
|
7
|
+
--color-static-bg-quaternary-dark: #3a3a3c;
|
|
8
|
+
--color-static-bg-secondary-dark: #202022;
|
|
9
|
+
--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 */
|
|
10
|
+
--color-static-bg-primary-dark-tint-15: rgb(54, 54, 54);
|
|
11
|
+
--color-static-bg-primary-dark-tint-20: rgb(65, 65, 65);
|
|
10
12
|
} :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 */
|
|
11
13
|
} :root {
|
|
12
14
|
} :root {
|
|
@@ -25,13 +27,13 @@
|
|
|
25
27
|
} :root {
|
|
26
28
|
} :root {
|
|
27
29
|
--focus-color: var(--color-light-border-link);
|
|
28
|
-
} .
|
|
30
|
+
} .gallery__component_pw918 {
|
|
29
31
|
display: flex;
|
|
30
32
|
flex-grow: 1;
|
|
31
33
|
justify-content: center;
|
|
32
34
|
align-items: center;
|
|
33
|
-
background-color: var(--color-
|
|
34
|
-
} .
|
|
35
|
+
background-color: var(--color-static-bg-primary-dark);
|
|
36
|
+
} .gallery__swiper_pw918 {
|
|
35
37
|
display: flex;
|
|
36
38
|
width: 100%;
|
|
37
39
|
height: 100%;
|
|
@@ -40,43 +42,42 @@
|
|
|
40
42
|
max-height: calc(100vh - 168px);
|
|
41
43
|
padding: var(--gap-2xl) var(--gap-m);
|
|
42
44
|
box-sizing: border-box;
|
|
43
|
-
} .
|
|
45
|
+
} .gallery__singleSlide_pw918 .gallery__swiper_pw918 {
|
|
44
46
|
max-height: calc(100vh - 80px);
|
|
45
47
|
padding: var(--gap-2xl);
|
|
46
|
-
} .
|
|
48
|
+
} .gallery__hidden_pw918 {
|
|
47
49
|
display: none;
|
|
48
|
-
} .
|
|
50
|
+
} .gallery__slide_pw918 {
|
|
49
51
|
position: relative;
|
|
50
52
|
display: flex;
|
|
51
53
|
justify-content: center;
|
|
52
54
|
align-items: center;
|
|
53
55
|
width: 100%;
|
|
54
56
|
height: 100%;
|
|
55
|
-
} .
|
|
56
|
-
|
|
57
|
-
background-color: #e9eaeb;
|
|
57
|
+
} .gallery__slideLoading_pw918 {
|
|
58
|
+
background-color: var(--color-static-bg-secondary-dark);
|
|
58
59
|
border-radius: var(--border-radius-m);
|
|
59
|
-
} .
|
|
60
|
+
} .gallery__image_pw918 {
|
|
60
61
|
width: 0;
|
|
61
62
|
height: 0;
|
|
62
63
|
-webkit-user-select: none;
|
|
63
64
|
user-select: none;
|
|
64
65
|
background-color: var(--color-light-bg-primary);
|
|
65
66
|
border-radius: var(--border-radius-m);
|
|
66
|
-
} .
|
|
67
|
+
} .gallery__smallImage_pw918 {
|
|
67
68
|
position: relative;
|
|
68
69
|
width: auto;
|
|
69
70
|
height: auto;
|
|
70
71
|
-webkit-user-select: none;
|
|
71
72
|
user-select: none;
|
|
72
73
|
background-color: var(--color-light-bg-primary);
|
|
73
|
-
} .
|
|
74
|
+
} .gallery__verticalImageFit_pw918 {
|
|
74
75
|
width: auto;
|
|
75
76
|
height: 100%;
|
|
76
|
-
} .
|
|
77
|
+
} .gallery__horizontalImageFit_pw918 {
|
|
77
78
|
width: 100%;
|
|
78
79
|
height: auto;
|
|
79
|
-
} .
|
|
80
|
+
} .gallery__arrow_pw918 {
|
|
80
81
|
display: flex;
|
|
81
82
|
flex-direction: column;
|
|
82
83
|
justify-content: center;
|
|
@@ -85,36 +86,36 @@
|
|
|
85
86
|
width: 96px;
|
|
86
87
|
height: 100%;
|
|
87
88
|
cursor: pointer;
|
|
88
|
-
color: var(--color-
|
|
89
|
+
color: var(--color-static-graphic-light);
|
|
89
90
|
transition: background-color 0.15s ease-in-out;
|
|
90
91
|
outline: none
|
|
91
|
-
} .
|
|
92
|
-
background-color: var(--color-
|
|
93
|
-
} .
|
|
94
|
-
background-color: var(--color-
|
|
95
|
-
} .
|
|
92
|
+
} .gallery__arrow_pw918:hover {
|
|
93
|
+
background-color: var(--color-static-bg-primary-dark-tint-15);
|
|
94
|
+
} .gallery__arrow_pw918:active {
|
|
95
|
+
background-color: var(--color-static-bg-primary-dark-tint-20);
|
|
96
|
+
} .gallery__focused_pw918 {
|
|
96
97
|
outline: 2px solid var(--focus-color);
|
|
97
98
|
outline-offset: 2px;
|
|
98
|
-
} .
|
|
99
|
+
} .gallery__placeholder_pw918 {
|
|
99
100
|
display: flex;
|
|
100
101
|
justify-content: center;
|
|
101
102
|
align-items: center;
|
|
102
103
|
width: 400px;
|
|
103
104
|
height: 300px;
|
|
104
105
|
border-radius: var(--border-radius-m);
|
|
105
|
-
background-color: var(--color-
|
|
106
|
-
} .
|
|
106
|
+
background-color: var(--color-static-bg-quaternary-dark);
|
|
107
|
+
} .gallery__brokenImgWrapper_pw918 {
|
|
107
108
|
position: relative;
|
|
108
109
|
display: flex;
|
|
109
110
|
flex-direction: column;
|
|
110
111
|
align-items: center;
|
|
111
112
|
width: 150px;
|
|
112
113
|
text-align: center;
|
|
113
|
-
} .
|
|
114
|
+
} .gallery__brokenImgIcon_pw918 {
|
|
114
115
|
width: 80px;
|
|
115
116
|
height: 80px;
|
|
116
117
|
margin-bottom: var(--gap-2xs);
|
|
117
|
-
} .
|
|
118
|
+
} .gallery__fullScreenImage_pw918 {
|
|
118
119
|
width: 100%;
|
|
119
120
|
height: auto;
|
|
120
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-8b790c66.js';
|
|
14
14
|
import '@alfalab/core-components-typography/modern';
|
|
15
15
|
import './paths.js';
|
|
16
16
|
import 'swiper/swiper.min.css';
|
|
@@ -6,24 +6,24 @@ import 'react';
|
|
|
6
6
|
import '../context.js';
|
|
7
7
|
import '../utils/utils.js';
|
|
8
8
|
import '../utils/constants.js';
|
|
9
|
-
import 'classnames';
|
|
10
|
-
import '@alfalab/hooks';
|
|
11
|
-
import './image-preview/paths.js';
|
|
12
9
|
import './header-info-block/Component.js';
|
|
13
10
|
import '@alfalab/core-components-typography/modern';
|
|
14
11
|
import '../utils/split-filename.js';
|
|
15
|
-
import '
|
|
12
|
+
import '../buttons-ecc0dae2.js';
|
|
16
13
|
import '@alfalab/core-components-icon-button/modern';
|
|
17
14
|
import '@alfalab/core-components-tooltip/modern';
|
|
18
15
|
import '@alfalab/icons-glyph/ArrowsInwardMIcon';
|
|
19
16
|
import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
|
|
20
17
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
21
18
|
import '@alfalab/icons-glyph/PointerDownMIcon';
|
|
19
|
+
import 'classnames';
|
|
20
|
+
import '@alfalab/hooks';
|
|
21
|
+
import './image-preview/paths.js';
|
|
22
22
|
import 'element-closest';
|
|
23
23
|
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-8b790c66.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_7umhe","preview":"gallery__preview_7umhe"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
const MIN_SCROLL_STEP = 24;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: d790p */
|
|
2
2
|
:root {
|
|
3
|
-
} /* deprecated */ :root {
|
|
4
|
-
--color-light-bg-tertiary-inverted: #3c4c5d; /* 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 */
|
|
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 */
|
|
5
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 */
|
|
6
5
|
} :root {
|
|
7
6
|
} :root {
|
|
@@ -17,7 +16,7 @@
|
|
|
17
16
|
--gap-xl: 24px;
|
|
18
17
|
} :root {
|
|
19
18
|
} :root {
|
|
20
|
-
} .
|
|
19
|
+
} .gallery__component_7umhe {
|
|
21
20
|
display: flex;
|
|
22
21
|
flex-wrap: nowrap;
|
|
23
22
|
align-content: center;
|
|
@@ -27,15 +26,14 @@
|
|
|
27
26
|
box-sizing: border-box;
|
|
28
27
|
padding: 10px var(--gap-xl);
|
|
29
28
|
-ms-overflow-style: none;
|
|
30
|
-
background-color: var(--color-light-bg-tertiary-inverted);
|
|
31
29
|
scrollbar-width: none
|
|
32
|
-
} .
|
|
30
|
+
} .gallery__component_7umhe::-webkit-scrollbar {
|
|
33
31
|
display: none;
|
|
34
|
-
} .
|
|
32
|
+
} .gallery__preview_7umhe {
|
|
35
33
|
flex-shrink: 0;
|
|
36
34
|
margin: 0 var(--gap-3xs)
|
|
37
|
-
} .
|
|
35
|
+
} .gallery__preview_7umhe:first-child {
|
|
38
36
|
margin-left: auto;
|
|
39
|
-
} .
|
|
37
|
+
} .gallery__preview_7umhe:last-child {
|
|
40
38
|
margin-right: auto;
|
|
41
39
|
}
|
package/modern/index.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: fie1e */
|
|
2
2
|
:root {
|
|
3
|
-
} /* deprecated */ :root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
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 */
|
|
4
5
|
} :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 */
|
|
5
6
|
} :root {
|
|
6
7
|
} :root {
|
|
@@ -14,13 +15,14 @@
|
|
|
14
15
|
} :root {
|
|
15
16
|
} :root {
|
|
16
17
|
} :root {
|
|
17
|
-
} .
|
|
18
|
+
} .gallery__container_qo3ef {
|
|
18
19
|
display: flex;
|
|
19
20
|
flex-direction: column;
|
|
20
21
|
justify-content: space-between;
|
|
21
22
|
height: 100%;
|
|
22
23
|
width: 100%;
|
|
23
|
-
|
|
24
|
+
background-color: var(--color-static-bg-primary-dark);
|
|
25
|
+
} .gallery__modal_qo3ef {
|
|
24
26
|
flex-grow: 1;
|
|
25
27
|
width: 100%;
|
|
26
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 './
|
|
16
|
+
import './buttons-ecc0dae2.js';
|
|
17
17
|
import '@alfalab/core-components-icon-button/modern';
|
|
18
18
|
import '@alfalab/core-components-tooltip/modern';
|
|
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-8b790c66.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_pw918","swiper":"gallery__swiper_pw918","singleSlide":"gallery__singleSlide_pw918","hidden":"gallery__hidden_pw918","slide":"gallery__slide_pw918","slideLoading":"gallery__slideLoading_pw918","image":"gallery__image_pw918","smallImage":"gallery__smallImage_pw918","verticalImageFit":"gallery__verticalImageFit_pw918","horizontalImageFit":"gallery__horizontalImageFit_pw918","arrow":"gallery__arrow_pw918","focused":"gallery__focused_pw918","placeholder":"gallery__placeholder_pw918","brokenImgWrapper":"gallery__brokenImgWrapper_pw918","brokenImgIcon":"gallery__brokenImgIcon_pw918","fullScreenImage":"gallery__fullScreenImage_pw918"};
|
|
9
9
|
require('./components/image-viewer/index.css')
|
|
10
10
|
|
|
11
11
|
const SlideInner = ({ children, broken, loading, withPlaceholder }) => {
|
|
@@ -13,9 +13,9 @@ const SlideInner = ({ children, broken, loading, withPlaceholder }) => {
|
|
|
13
13
|
React.createElement("div", { className: styles.brokenImgIcon },
|
|
14
14
|
React.createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '80', height: '80', viewBox: '0 0 80 80', fill: 'none' },
|
|
15
15
|
React.createElement("rect", { width: '80', height: '80', fill: 'none' }),
|
|
16
|
-
React.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: NoImagePaths.baseImage, fill: '#
|
|
17
|
-
React.createElement("path", { d: NoImagePaths.triangleImage, fill: '#
|
|
18
|
-
React.createElement(Typography.Text, { view: 'primary-small', color: 'secondary' }, "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435"))) : (children);
|
|
16
|
+
React.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: NoImagePaths.baseImage, fill: '#89898A' }),
|
|
17
|
+
React.createElement("path", { d: NoImagePaths.triangleImage, fill: '#89898A' }))),
|
|
18
|
+
React.createElement(Typography.Text, { view: 'primary-small', color: 'static-secondary-light' }, "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435"))) : (children);
|
|
19
19
|
return (React.createElement("div", { className: cn(styles.slide, { [styles.slideLoading]: loading }) }, withPlaceholder ? React.createElement("div", { className: styles.placeholder }, content) : content));
|
|
20
20
|
};
|
|
21
21
|
const Slide = ({ isActive, meta, swiperAspectRatio, imageAspectRatio, image, index, swiperHeight, slideVisible, handleLoad, handleLoadError, }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-gallery",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@alfalab/core-components-base-modal": "^5.1.
|
|
21
|
-
"@alfalab/core-components-icon-button": "^6.0.
|
|
22
|
-
"@alfalab/core-components-tooltip": "^6.2.
|
|
23
|
-
"@alfalab/core-components-typography": "^3.2.
|
|
20
|
+
"@alfalab/core-components-base-modal": "^5.1.2",
|
|
21
|
+
"@alfalab/core-components-icon-button": "^6.0.9",
|
|
22
|
+
"@alfalab/core-components-tooltip": "^6.2.15",
|
|
23
|
+
"@alfalab/core-components-typography": "^3.2.1",
|
|
24
24
|
"@alfalab/hooks": "^1.4.1",
|
|
25
25
|
"@alfalab/icons-glyph": "^2.89.0",
|
|
26
26
|
"classnames": "^2.3.1",
|
|
@@ -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_pw918","swiper":"gallery__swiper_pw918","singleSlide":"gallery__singleSlide_pw918","hidden":"gallery__hidden_pw918","slide":"gallery__slide_pw918","slideLoading":"gallery__slideLoading_pw918","image":"gallery__image_pw918","smallImage":"gallery__smallImage_pw918","verticalImageFit":"gallery__verticalImageFit_pw918","horizontalImageFit":"gallery__horizontalImageFit_pw918","arrow":"gallery__arrow_pw918","focused":"gallery__focused_pw918","placeholder":"gallery__placeholder_pw918","brokenImgWrapper":"gallery__brokenImgWrapper_pw918","brokenImgIcon":"gallery__brokenImgIcon_pw918","fullScreenImage":"gallery__fullScreenImage_pw918"};
|
|
16
16
|
require('./components/image-viewer/index.css')
|
|
17
17
|
|
|
18
18
|
var SlideInner = function (_a) {
|
|
@@ -22,9 +22,9 @@ var SlideInner = function (_a) {
|
|
|
22
22
|
React__default.default.createElement("div", { className: styles.brokenImgIcon },
|
|
23
23
|
React__default.default.createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '80', height: '80', viewBox: '0 0 80 80', fill: 'none' },
|
|
24
24
|
React__default.default.createElement("rect", { width: '80', height: '80', fill: 'none' }),
|
|
25
|
-
React__default.default.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: components_imageViewer_paths.NoImagePaths.baseImage, fill: '#
|
|
26
|
-
React__default.default.createElement("path", { d: components_imageViewer_paths.NoImagePaths.triangleImage, fill: '#
|
|
27
|
-
React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-small', color: 'secondary' }, "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435"))) : (children);
|
|
25
|
+
React__default.default.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: components_imageViewer_paths.NoImagePaths.baseImage, fill: '#89898A' }),
|
|
26
|
+
React__default.default.createElement("path", { d: components_imageViewer_paths.NoImagePaths.triangleImage, fill: '#89898A' }))),
|
|
27
|
+
React__default.default.createElement(coreComponentsTypography.Typography.Text, { view: 'primary-small', color: 'static-secondary-light' }, "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435"))) : (children);
|
|
28
28
|
return (React__default.default.createElement("div", { className: cn__default.default(styles.slide, (_b = {}, _b[styles.slideLoading] = loading, _b)) }, withPlaceholder ? React__default.default.createElement("div", { className: styles.placeholder }, content) : content));
|
|
29
29
|
};
|
|
30
30
|
var Slide = function (_a) {
|
package/utils/constants.js
CHANGED
package/utils/index.js
CHANGED
package/utils/split-filename.js
CHANGED
package/utils/utils.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|