@meduza/ui-kit-2 1.3.0 → 1.3.1

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.
@@ -6796,6 +6796,24 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6796
6796
  --metaFill: currentColor;
6797
6797
  }
6798
6798
 
6799
+ @media only screen and (min-width: 32em) {
6800
+
6801
+ .RelatedBook-module_mobile__7rm-n {
6802
+ display: none;
6803
+ }
6804
+ }
6805
+
6806
+ .RelatedBook-module_desktop__OZ9Jx {
6807
+ display: none;
6808
+ }
6809
+
6810
+ @media only screen and (min-width: 32em) {
6811
+
6812
+ .RelatedBook-module_desktop__OZ9Jx {
6813
+ display: flex;
6814
+ }
6815
+ }
6816
+
6799
6817
  .ListViewSwitcher-module_root__pBsR5 {
6800
6818
  position: relative;
6801
6819
 
package/dist/ui-kit.css CHANGED
@@ -6796,6 +6796,24 @@ ul.VersesBlock-module_root__CrgSZ:first-child {
6796
6796
  --metaFill: currentColor;
6797
6797
  }
6798
6798
 
6799
+ @media only screen and (min-width: 32em) {
6800
+
6801
+ .RelatedBook-module_mobile__7rm-n {
6802
+ display: none;
6803
+ }
6804
+ }
6805
+
6806
+ .RelatedBook-module_desktop__OZ9Jx {
6807
+ display: none;
6808
+ }
6809
+
6810
+ @media only screen and (min-width: 32em) {
6811
+
6812
+ .RelatedBook-module_desktop__OZ9Jx {
6813
+ display: flex;
6814
+ }
6815
+ }
6816
+
6799
6817
  .ListViewSwitcher-module_root__pBsR5 {
6800
6818
  position: relative;
6801
6819
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.0",
2
+ "version": "1.3.1",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -16,6 +16,7 @@
16
16
  outline-width: 0;
17
17
  background-color: #fff;
18
18
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
19
+
19
20
  @media $portraitTablet {
20
21
  margin: 25px 0;
21
22
  }
@@ -206,3 +207,17 @@
206
207
  --metaText: rgba(254, 255, 255, 0.5);
207
208
  --metaFill: currentColor;
208
209
  }
210
+
211
+ .mobile {
212
+ @media $mobile {
213
+ display: none;
214
+ }
215
+ }
216
+
217
+ .desktop {
218
+ display: none;
219
+
220
+ @media $mobile {
221
+ display: flex;
222
+ }
223
+ }
@@ -14,13 +14,12 @@ export const RelatedBook: React.FC<RelatedBookProps> = ({
14
14
  }) => {
15
15
  const theme = block.data.theme.text_color === '0,0,0' ? 'isDark' : 'isLight'
16
16
 
17
+ const onlyOn = block.only_on || block.data.onlyOn
18
+
17
19
  let classNames: ClassNames = [
18
20
  [styles.root, true],
19
21
  [styles[theme], theme],
20
- [
21
- styles[block.data.onlyOn],
22
- !!block.data.onlyOn && !!styles[block.data.onlyOn]
23
- ]
22
+ [styles[onlyOn], !!onlyOn && !!styles[onlyOn]]
24
23
  ]
25
24
 
26
25
  if (styleContext) {