ywana-core8 0.0.51 → 0.0.55

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.51",
3
+ "version": "0.0.55",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -11,6 +11,10 @@ menu.collection-page>header {
11
11
  border-bottom: dotted 1px var(--divider-color);
12
12
  }
13
13
 
14
+ menu.collection-page>.list {
15
+ overflow:auto;
16
+ }
17
+
14
18
  menu.collection-page>main {
15
19
  flex: 1;
16
20
  overflow:auto;
@@ -236,7 +236,7 @@ const TableEditor = (props) => {
236
236
  }),
237
237
  rows: groups[groupName]
238
238
  .map(item => {
239
- item.actions = actions ? actions.map(action => <Icon icon={action.icon} clickable size="small" action={() => { action.action(item.id) }}/>) : []
239
+ item.actions = actions ? actions.map(action => <Icon icon={action.icon} clickable size="small" action={() => { action.action(item.id, pageContext) }}/>) : []
240
240
  item.actions.push(<Icon icon="delete" size="small" clickable action={() => remove(item.id)} />)
241
241
  return item
242
242
  })
@@ -19,7 +19,7 @@ export const Button = ({ label, icon, action, disabled = false, outlined, raised
19
19
  if (disabled) style = `${style} disabled`
20
20
  return (
21
21
  <button className={`btn ${style}`} onClick={click}>
22
- { icon ? <Icon icon={icon} size="small" /> : null }
22
+ { icon ? <Icon icon={icon} size="small" clickable action={click} /> : null }
23
23
  <span>{ label }</span>
24
24
  </button>
25
25
  )
@@ -10,7 +10,7 @@ import './dialog.css'
10
10
  */
11
11
  export const Dialog = (props) => {
12
12
  const site = useContext(SiteContext)
13
- const { icon, title = "Dialog", children, onAction, actions } = props
13
+ const { icon, title = "Dialog", children, onAction, actions, className } = props
14
14
 
15
15
  function close() {
16
16
  site.closeDialog()
@@ -24,7 +24,7 @@ export const Dialog = (props) => {
24
24
  return (
25
25
  <Fragment>
26
26
  <div className="overlay" />
27
- <div className="dialog" onClick={close}>
27
+ <div className={`dialog ${className}`} onClick={close}>
28
28
  <div className="dialog-panel" onClick={prevent}>
29
29
  <header>
30
30
  {icon ? <MenuIcon icon={icon} /> : null}