ywana-core8 0.0.789 → 0.0.791

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,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.789",
3
+ "version": "0.0.791",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -31,7 +31,7 @@ export const UploadDialog = ({ label, target, accept, onSuccess, onComplete, onC
31
31
 
32
32
  const actions = (
33
33
  <Fragment>
34
- <Button label="CERRAR" action={() => onAction("CLOSE")} disabled={canClose()} />
34
+ <Button label="CERRAR" action={() => onAction("CLOSE")} disabled={!canClose()} />
35
35
  </Fragment>
36
36
  )
37
37
 
@@ -1,7 +1,14 @@
1
1
  import React, { useState } from 'react'
2
2
  import { Icon, Header, Text } from '../../html'
3
+ import { ImageViewer} from '../image/ImageViewer'
3
4
  import './Viewer.css'
4
5
 
6
+ const ViewerTest = (props) => {
7
+ return (
8
+ <Viewer src="https://pro.ywanadigital.com/files/2023/63bc36a840364cdd0b4c6670/63bc38f740364cdd0b4c6671/original/52905_TECNOLOG_A%20DICIEMBRE%20II%2043X199_Cart_n_Microcanal%20sencillo_43x199_es_A_1r5v-0.png" />
9
+ )
10
+ }
11
+
5
12
  /**
6
13
  * Viewer
7
14
  */
@@ -24,7 +31,7 @@ export const Viewer = ({ title, src, info, actions = [], tools = false, onClose
24
31
  <main>
25
32
  <div className="resizer">
26
33
  <picture>
27
- <img src={src} />
34
+ <ImageViewer image={src} />
28
35
  </picture>
29
36
  </div>
30
37
  </main>