@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.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: 100;
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: 162px;
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.7.6",
2
+ "version": "0.7.8",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -2,7 +2,7 @@
2
2
 
3
3
  .root {
4
4
  position: relative;
5
- z-index: $zIndex-1;
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: 162px;
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 {
@@ -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) {
@@ -24,6 +24,15 @@
24
24
  height: 100%;
25
25
  }
26
26
 
27
+ .isStatic img {
28
+ position: relative;
29
+ max-height: 160px;
30
+
31
+ @media $landscapeTablet {
32
+ max-height: 200px;
33
+ }
34
+ }
35
+
27
36
  .isLoaded {
28
37
  background-color: transparent;
29
38
  }
@@ -104,6 +104,10 @@
104
104
  }
105
105
  }
106
106
 
107
+ .isInBookRelated {
108
+ opacity: 0.5;
109
+ }
110
+
107
111
  /* VISIBILITY */
108
112
 
109
113
  .mobile {
@@ -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
@@ -105,6 +105,16 @@
105
105
  }
106
106
  }
107
107
 
108
+ .isInBookRelated {
109
+ margin: 6px 0 20px;
110
+
111
+ @media $landscapeTablet {
112
+ font-size: 27px;
113
+ line-height: 32px;
114
+ margin: 6px 0 18px;
115
+ }
116
+ }
117
+
108
118
  .mobile {
109
119
  @media $mobile {
110
120
  display: none;
@@ -101,6 +101,14 @@
101
101
  }
102
102
  }
103
103
 
104
+ .isInBookRelated {
105
+ opacity: 0.5;
106
+
107
+ @media $landscapeTablet {
108
+ line-height: 20px;
109
+ }
110
+ }
111
+
104
112
  .slide,
105
113
  .game,
106
114
  .card,