@meduza/ui-kit-2 0.1.42 → 0.1.44
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/dist/ui-kit-2.cjs.development.js +31 -41
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +31 -41
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +1135 -1095
- package/package.json +1 -1
- package/src/DotsOnImage/DotsOnImage.module.css +41 -7
- package/src/DotsOnImage/mock.json +2 -2
- package/src/Image/index.tsx +1 -15
package/package.json
CHANGED
|
@@ -16,18 +16,38 @@
|
|
|
16
16
|
position: absolute;
|
|
17
17
|
z-index: 10;
|
|
18
18
|
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
flex-flow: row nowrap;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
|
|
19
24
|
width: 28px;
|
|
20
25
|
height: 28px;
|
|
21
26
|
|
|
22
27
|
will-change: opacity;
|
|
23
28
|
}
|
|
24
29
|
|
|
30
|
+
.marker::after {
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: -5px;
|
|
33
|
+
right: -5px;
|
|
34
|
+
bottom: -5px;
|
|
35
|
+
left: -5px;
|
|
36
|
+
|
|
37
|
+
content: '';
|
|
38
|
+
|
|
39
|
+
@media $mobile {
|
|
40
|
+
content: none;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
25
44
|
.marker {
|
|
26
|
-
width:
|
|
27
|
-
height:
|
|
45
|
+
width: 20px;
|
|
46
|
+
height: 20px;
|
|
28
47
|
padding: 0;
|
|
29
48
|
|
|
30
49
|
cursor: pointer;
|
|
50
|
+
transition: box-shadow 350ms ease;
|
|
31
51
|
text-align: center;
|
|
32
52
|
|
|
33
53
|
opacity: 0;
|
|
@@ -36,26 +56,40 @@
|
|
|
36
56
|
border-radius: 30px;
|
|
37
57
|
outline-width: 0;
|
|
38
58
|
background-color: #000;
|
|
39
|
-
box-shadow:
|
|
59
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
|
|
40
60
|
|
|
41
61
|
font-family: $secondaryFont;
|
|
42
|
-
font-size:
|
|
62
|
+
font-size: 9px;
|
|
43
63
|
font-weight: 600;
|
|
44
|
-
line-height:
|
|
64
|
+
line-height: 22px;
|
|
45
65
|
|
|
46
66
|
appearance: none;
|
|
47
67
|
will-change: opacity;
|
|
68
|
+
|
|
69
|
+
@media $mobile {
|
|
70
|
+
width: 28px;
|
|
71
|
+
height: 28px;
|
|
72
|
+
|
|
73
|
+
font-size: 13px;
|
|
74
|
+
line-height: 28px;
|
|
75
|
+
}
|
|
48
76
|
}
|
|
49
77
|
|
|
50
78
|
.marker svg {
|
|
51
79
|
display: block;
|
|
52
80
|
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: 100%;
|
|
83
|
+
|
|
53
84
|
will-change: opacity;
|
|
54
85
|
}
|
|
55
86
|
|
|
56
|
-
.marker:hover
|
|
87
|
+
.marker:hover {
|
|
88
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
|
|
89
|
+
}
|
|
90
|
+
|
|
57
91
|
.marker.isActive {
|
|
58
|
-
box-shadow:
|
|
92
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2), 0 0 0 1px #fff;
|
|
59
93
|
}
|
|
60
94
|
|
|
61
95
|
.popover {
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"y": 5
|
|
11
11
|
},
|
|
12
12
|
"icon": {
|
|
13
|
-
"type": "
|
|
13
|
+
"type": "number",
|
|
14
14
|
"color": "#000000",
|
|
15
|
-
"
|
|
15
|
+
"number": "42"
|
|
16
16
|
},
|
|
17
17
|
"id": "0-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
18
18
|
},
|
package/src/Image/index.tsx
CHANGED
|
@@ -3,9 +3,7 @@ import { ImageProps } from './Image.types'
|
|
|
3
3
|
import { makeClassName, ClassNames } from '../utils/makeClassName'
|
|
4
4
|
import makeStyleContext from '../utils/makeStyleContext'
|
|
5
5
|
import BlockContext from '../utils/BlockContext'
|
|
6
|
-
import viewportSize from '../utils/viewportSize'
|
|
7
6
|
import postMessage from '../utils/postMessage'
|
|
8
|
-
import { MediaQuerySizes } from '../constants'
|
|
9
7
|
import { Lazy } from '../Lazy'
|
|
10
8
|
import RenderPicture from './RenderPicture'
|
|
11
9
|
|
|
@@ -27,19 +25,7 @@ export const Image: React.FC<ImageProps> = ({
|
|
|
27
25
|
const [isLoaded, setIsLoaded] = useState(false)
|
|
28
26
|
|
|
29
27
|
const handleClick = (): void => {
|
|
30
|
-
if (!
|
|
31
|
-
return
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const { width: viewportWidth } = viewportSize()
|
|
35
|
-
|
|
36
|
-
const disableFullscreenDesktop =
|
|
37
|
-
viewportWidth >= MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen.desktop
|
|
38
|
-
|
|
39
|
-
const disableFullscreenMobile =
|
|
40
|
-
viewportWidth < MediaQuerySizes.LANDSCAPE_TABLET && !fullscreen.mobile
|
|
41
|
-
|
|
42
|
-
if (disableFullscreenDesktop || disableFullscreenMobile) {
|
|
28
|
+
if (!lightBox || (optimized && !optimized.original)) {
|
|
43
29
|
return
|
|
44
30
|
}
|
|
45
31
|
|