ywana-core8 0.0.280 → 0.0.281

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.280",
3
+ "version": "0.0.281",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
package/src/site/view.js CHANGED
@@ -7,7 +7,7 @@ import './view.css'
7
7
  */
8
8
  export const View = (props) => {
9
9
 
10
- const { icon, title, toolbar, menu, info, onClose, canCollapse = false, children } = props
10
+ const { id, className, icon, title, toolbar, menu, info, onClose, canCollapse = false, children } = props
11
11
  const [open, setOpen] = useState(true)
12
12
 
13
13
  function toggle() {
@@ -19,7 +19,7 @@ export const View = (props) => {
19
19
  }
20
20
 
21
21
  return (
22
- <section className='view'>
22
+ <section id={id} className={`view ${className}`}>
23
23
  <header>
24
24
  {canCollapse ? <Icon icon="expand_more" size="small" clickable action={toggle} /> : null}
25
25
  {icon ? <Icon icon={icon} size="small" /> : null}