@meduza/ui-kit-2 0.4.0 → 0.4.2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.0",
2
+ "version": "0.4.2",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -38,7 +38,10 @@ export const Cover: React.FC<CoverProps> = ({
38
38
 
39
39
  classNames = makeStyleContext(classNames, theme, styles)
40
40
 
41
- style.backgroundImage = generateGradient(gradients.bg_rgb, 'mediaBlockBottom')
41
+ style.backgroundImage = generateGradient(
42
+ gradients.bg_rgb,
43
+ 'mediaBlockBottom'
44
+ )
42
45
  }
43
46
 
44
47
  const renderCC = (context?: string): JSX.Element => (
@@ -52,7 +55,12 @@ export const Cover: React.FC<CoverProps> = ({
52
55
  return (
53
56
  <div data-testid="cover" className={makeClassName(classNames)}>
54
57
  <div className={styles.image}>
55
- <Image optimized={urls} ratio={mobileRatio} display="narrow" />
58
+ <Image
59
+ optimized={urls}
60
+ ratio={mobileRatio}
61
+ display="narrow"
62
+ lazy={true}
63
+ />
56
64
  </div>
57
65
  <div className={styles.body} style={style}>
58
66
  {blocks.map((item) => (