@meduza/ui-kit-2 0.7.6 → 0.7.8
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 +14 -6
- 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 +14 -6
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +51 -2
- package/package.json +1 -1
- package/src/Dropdown/Dropdown.module.css +22 -2
- package/src/Dropdown/index.tsx +2 -1
- package/src/Image/Image.module.css +9 -0
- package/src/Meta/Meta.module.css +4 -0
- package/src/Meta/MetaContainer.tsx +7 -0
- package/src/RichTitle/RichTitle.module.css +10 -0
- package/src/Tag/Tag.module.css +8 -0
package/dist/ui-kit.css
CHANGED
|
@@ -700,6 +700,15 @@
|
|
|
700
700
|
width: 100%;
|
|
701
701
|
height: 100%;
|
|
702
702
|
}
|
|
703
|
+
.Image-module_isStatic__TmQ1V img {
|
|
704
|
+
position: relative;
|
|
705
|
+
max-height: 160px;
|
|
706
|
+
}
|
|
707
|
+
@media only screen and (min-width: 64em) {
|
|
708
|
+
.Image-module_isStatic__TmQ1V img {
|
|
709
|
+
max-height: 200px;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
703
712
|
.Image-module_isLoaded__keFnD {
|
|
704
713
|
background-color: transparent;
|
|
705
714
|
}
|
|
@@ -1234,6 +1243,14 @@
|
|
|
1234
1243
|
line-height: 20px;
|
|
1235
1244
|
}
|
|
1236
1245
|
}
|
|
1246
|
+
.Tag-module_isInBookRelated__ikTaj {
|
|
1247
|
+
opacity: 0.5;
|
|
1248
|
+
}
|
|
1249
|
+
@media only screen and (min-width: 64em) {
|
|
1250
|
+
.Tag-module_isInBookRelated__ikTaj {
|
|
1251
|
+
line-height: 20px;
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1237
1254
|
.Tag-module_slide__gzptP,
|
|
1238
1255
|
.Tag-module_game__NmKec,
|
|
1239
1256
|
.Tag-module_card__TX87-,
|
|
@@ -1913,7 +1930,7 @@
|
|
|
1913
1930
|
/* Zindex */
|
|
1914
1931
|
.Dropdown-module_root__Wv7S- {
|
|
1915
1932
|
position: relative;
|
|
1916
|
-
z-index:
|
|
1933
|
+
z-index: auto;
|
|
1917
1934
|
|
|
1918
1935
|
display: inline-block;
|
|
1919
1936
|
|
|
@@ -1925,10 +1942,16 @@
|
|
|
1925
1942
|
|
|
1926
1943
|
opacity: 1;
|
|
1927
1944
|
}
|
|
1945
|
+
.Dropdown-module_root__Wv7S-.Dropdown-module_inactive__E5CP6 .Dropdown-module_menu__11IQL {
|
|
1946
|
+
visibility: hidden;
|
|
1947
|
+
|
|
1948
|
+
opacity: 0;
|
|
1949
|
+
}
|
|
1928
1950
|
.Dropdown-module_root__Wv7S- ul {
|
|
1929
1951
|
overflow: hidden;
|
|
1930
1952
|
|
|
1931
|
-
width:
|
|
1953
|
+
width: 300px;
|
|
1954
|
+
max-height: 400px;
|
|
1932
1955
|
margin: 0;
|
|
1933
1956
|
padding: 3px 0;
|
|
1934
1957
|
|
|
@@ -1939,7 +1962,14 @@
|
|
|
1939
1962
|
font-family: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;
|
|
1940
1963
|
font-size: 14px;
|
|
1941
1964
|
line-height: 26px;
|
|
1965
|
+
|
|
1966
|
+
overflow-y: auto;
|
|
1967
|
+
}
|
|
1968
|
+
@media only screen and (min-width: 64em) {
|
|
1969
|
+
.Dropdown-module_root__Wv7S- ul {
|
|
1970
|
+
width: 320px;
|
|
1942
1971
|
}
|
|
1972
|
+
}
|
|
1943
1973
|
.Dropdown-module_root__Wv7S- a {
|
|
1944
1974
|
display: block;
|
|
1945
1975
|
|
|
@@ -1964,8 +1994,12 @@
|
|
|
1964
1994
|
left: 0;
|
|
1965
1995
|
}
|
|
1966
1996
|
}
|
|
1997
|
+
.Dropdown-module_isInAudioPanel__UniSV .Dropdown-module_menu__11IQL ul {
|
|
1998
|
+
width: 162px;
|
|
1999
|
+
}
|
|
1967
2000
|
.Dropdown-module_menu__11IQL {
|
|
1968
2001
|
position: absolute;
|
|
2002
|
+
z-index: 1;
|
|
1969
2003
|
top: 100%;
|
|
1970
2004
|
left: 0;
|
|
1971
2005
|
|
|
@@ -1974,6 +2008,8 @@
|
|
|
1974
2008
|
padding-top: 6px;
|
|
1975
2009
|
|
|
1976
2010
|
opacity: 0;
|
|
2011
|
+
left: 50%;
|
|
2012
|
+
transform: translateX(-50%);
|
|
1977
2013
|
}
|
|
1978
2014
|
.Dropdown-module_menu__11IQL::after {
|
|
1979
2015
|
position: absolute;
|
|
@@ -2220,6 +2256,9 @@
|
|
|
2220
2256
|
display: none;
|
|
2221
2257
|
}
|
|
2222
2258
|
}
|
|
2259
|
+
.Meta-module_isInBookRelated__Ohidg {
|
|
2260
|
+
opacity: 0.5;
|
|
2261
|
+
}
|
|
2223
2262
|
/* VISIBILITY */
|
|
2224
2263
|
@media only screen and (min-width: 32em) {
|
|
2225
2264
|
.Meta-module_mobile__PbG8N {
|
|
@@ -2946,6 +2985,16 @@
|
|
|
2946
2985
|
font-size: 1.35rem;
|
|
2947
2986
|
}
|
|
2948
2987
|
}
|
|
2988
|
+
.RichTitle-module_isInBookRelated__LcCPV {
|
|
2989
|
+
margin: 6px 0 20px;
|
|
2990
|
+
}
|
|
2991
|
+
@media only screen and (min-width: 64em) {
|
|
2992
|
+
.RichTitle-module_isInBookRelated__LcCPV {
|
|
2993
|
+
font-size: 27px;
|
|
2994
|
+
line-height: 32px;
|
|
2995
|
+
margin: 6px 0 18px;
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2949
2998
|
@media only screen and (min-width: 32em) {
|
|
2950
2999
|
.RichTitle-module_mobile__W5L9E {
|
|
2951
3000
|
display: none;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.root {
|
|
4
4
|
position: relative;
|
|
5
|
-
z-index:
|
|
5
|
+
z-index: auto;
|
|
6
6
|
|
|
7
7
|
display: inline-block;
|
|
8
8
|
|
|
@@ -16,10 +16,17 @@
|
|
|
16
16
|
opacity: 1;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.root.inactive .menu {
|
|
20
|
+
visibility: hidden;
|
|
21
|
+
|
|
22
|
+
opacity: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
.root ul {
|
|
20
26
|
overflow: hidden;
|
|
21
27
|
|
|
22
|
-
width:
|
|
28
|
+
width: 300px;
|
|
29
|
+
max-height: 400px;
|
|
23
30
|
margin: 0;
|
|
24
31
|
padding: 3px 0;
|
|
25
32
|
|
|
@@ -30,6 +37,12 @@
|
|
|
30
37
|
font-family: $secondaryFont;
|
|
31
38
|
font-size: 14px;
|
|
32
39
|
line-height: 26px;
|
|
40
|
+
|
|
41
|
+
overflow-y: auto;
|
|
42
|
+
|
|
43
|
+
@media $landscapeTablet {
|
|
44
|
+
width: 320px;
|
|
45
|
+
}
|
|
33
46
|
}
|
|
34
47
|
|
|
35
48
|
.root a {
|
|
@@ -58,8 +71,13 @@
|
|
|
58
71
|
}
|
|
59
72
|
}
|
|
60
73
|
|
|
74
|
+
.isInAudioPanel .menu ul {
|
|
75
|
+
width: 162px;
|
|
76
|
+
}
|
|
77
|
+
|
|
61
78
|
.menu {
|
|
62
79
|
position: absolute;
|
|
80
|
+
z-index: 1;
|
|
63
81
|
top: 100%;
|
|
64
82
|
left: 0;
|
|
65
83
|
|
|
@@ -68,6 +86,8 @@
|
|
|
68
86
|
padding-top: 6px;
|
|
69
87
|
|
|
70
88
|
opacity: 0;
|
|
89
|
+
left: 50%;
|
|
90
|
+
transform: translateX(-50%);
|
|
71
91
|
}
|
|
72
92
|
|
|
73
93
|
.menu::after {
|
package/src/Dropdown/index.tsx
CHANGED
|
@@ -20,7 +20,8 @@ export const Dropdown: React.FC<DropdownProps> = ({
|
|
|
20
20
|
}) => {
|
|
21
21
|
let classNames: ClassNames = [
|
|
22
22
|
[styles.root, true],
|
|
23
|
-
[styles.active, !!active && !!styles.active]
|
|
23
|
+
[styles.active, !!active && !!styles.active],
|
|
24
|
+
[styles.inactive, !active && !!styles.inactive]
|
|
24
25
|
]
|
|
25
26
|
|
|
26
27
|
if (styleContext) {
|
package/src/Meta/Meta.module.css
CHANGED
|
@@ -132,6 +132,13 @@ export const MetaContainer: React.FC<MetaContainerProps> = ({
|
|
|
132
132
|
</MetaItem>
|
|
133
133
|
)
|
|
134
134
|
}
|
|
135
|
+
case 'string': {
|
|
136
|
+
return (
|
|
137
|
+
<MetaItem hasSource={hasSource} bullets key={component.id}>
|
|
138
|
+
{component.text}
|
|
139
|
+
</MetaItem>
|
|
140
|
+
)
|
|
141
|
+
}
|
|
135
142
|
|
|
136
143
|
default: {
|
|
137
144
|
return null
|