@meduza/ui-kit-2 0.1.48 → 0.1.49

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.1.48",
2
+ "version": "0.1.49",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -15,7 +15,6 @@ export interface ImageProps {
15
15
  height?: number
16
16
  source?: string[]
17
17
  lazy?: boolean
18
- fullscreen?: boolean
19
18
  ratio?: number
20
19
  styleContext?: string[] | string
21
20
  }
@@ -17,7 +17,6 @@ export const Image: React.FC<ImageProps> = ({
17
17
  height,
18
18
  source,
19
19
  lazy,
20
- fullscreen = true,
21
20
  ratio,
22
21
  styleContext
23
22
  }) => {
@@ -25,7 +24,7 @@ export const Image: React.FC<ImageProps> = ({
25
24
  const [isLoaded, setIsLoaded] = useState(false)
26
25
 
27
26
  const handleClick = (): void => {
28
- if (!fullscreen || !lightBox || (optimized && !optimized.original)) {
27
+ if (!lightBox || (optimized && !optimized.original)) {
29
28
  return
30
29
  }
31
30
 
@@ -50,7 +49,7 @@ export const Image: React.FC<ImageProps> = ({
50
49
  let classNames: ClassNames = [
51
50
  [styles.root, true],
52
51
  [styles.isLoaded, isLoaded],
53
- [styles.fullscreen, fullscreen]
52
+ [styles.fullscreen, lightBox && optimized && optimized.original]
54
53
  ]
55
54
 
56
55
  if (styleContext) {