ywana-core8 0.0.226 → 0.0.230
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/index.cjs +92 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +30 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +89 -42
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +92 -42
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -1
- package/src/html/index.js +3 -1
- package/src/html/thumbnail.css +16 -0
- package/src/html/thumbnail.js +22 -0
- package/src/html/tooltip.css +3 -0
- package/src/html/tooltip.js +17 -0
- package/src/widgets/index.js +2 -1
- package/src/widgets/waiter/index.js +1 -0
- package/src/widgets/waiter/waiter.css +11 -0
- package/src/widgets/waiter/waiter.js +11 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ywana-core8",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.230",
|
4
4
|
"description": "ywana-core8",
|
5
5
|
"author": "Ernesto Roldan Garcia",
|
6
6
|
"license": "MIT",
|
@@ -35,6 +35,7 @@
|
|
35
35
|
"react-error-overlay": "^6.0.10",
|
36
36
|
"react-notifications": "^1.7.3",
|
37
37
|
"react-switch": "^6.0.0",
|
38
|
+
"react-tooltip": "^4.2.21",
|
38
39
|
"resumablejs": "^1.1.0"
|
39
40
|
}
|
40
41
|
}
|
package/src/html/index.js
CHANGED
@@ -16,4 +16,6 @@ export { Text } from './text'
|
|
16
16
|
export { TextField, DropDown } from './textfield'
|
17
17
|
export { TokenField } from './tokenfield'
|
18
18
|
export { Tree, TreeNode, TreeItem } from './tree'
|
19
|
-
export { Switch } from './switch'
|
19
|
+
export { Switch } from './switch'
|
20
|
+
export { Tooltip } from './tooltip'
|
21
|
+
export { Thumbnail } from './thumbnail'
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import './thumbnail.css'
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Thumbnail
|
6
|
+
*/
|
7
|
+
export const Thumbnail = (props) => {
|
8
|
+
|
9
|
+
const {
|
10
|
+
src = "https://www.w3schools.com/howto/img_forest.jpg",
|
11
|
+
empty = "",
|
12
|
+
objectFit = "cover"
|
13
|
+
} = props
|
14
|
+
|
15
|
+
const image = src ? src : empty
|
16
|
+
const style = { objectFit }
|
17
|
+
return (
|
18
|
+
<div className="thumbnail" >
|
19
|
+
<img src={image} style={style} />
|
20
|
+
</div>
|
21
|
+
)
|
22
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import './tooltip.css'
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Tooltip
|
6
|
+
*/
|
7
|
+
export const Tooltip = (props) => {
|
8
|
+
|
9
|
+
const { text = "..." } = props
|
10
|
+
|
11
|
+
return (
|
12
|
+
<ReactTooltip id="filters" effect="solid" className="tooltip">
|
13
|
+
<Text use="body2">{text}</Text>
|
14
|
+
</ReactTooltip>
|
15
|
+
)
|
16
|
+
|
17
|
+
}
|
package/src/widgets/index.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './waiter'
|