ywana-core8 0.0.651 → 0.0.653

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.651",
3
+ "version": "0.0.653",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -433,12 +433,10 @@ export const TableEditor = (props) => {
433
433
  onChange: field.id === "checked" ? checkOne : field.editable ? change : null, /* checked has it´s own handler */
434
434
  options,
435
435
  }
436
- }),
436
+ }).concat({ id: "actions", label: "Actions" }),
437
437
  rows: []
438
438
  }
439
439
  }, [schema])
440
- console.log("table add actions column")
441
- table.columns.push({ id: "actions", label: ""})
442
440
 
443
441
  const items = filter ? filter(all) : all
444
442
 
@@ -6,7 +6,7 @@ import './button.css'
6
6
  /**
7
7
  * HTML Button
8
8
  */
9
- export const Button = ({ label, icon, action, disabled = false, outlined, raised }) => {
9
+ export const Button = ({ label, icon, action, disabled = false, outlined, raised, className }) => {
10
10
 
11
11
  function click(event) {
12
12
  if (!disabled) {
@@ -19,7 +19,7 @@ export const Button = ({ label, icon, action, disabled = false, outlined, raised
19
19
  let style = raised ? 'raised' : outlined ? 'outlined' : 'normal'
20
20
  if (disabled) style = `${style} disabled`
21
21
  return (
22
- <button className={`btn ${style}`} onClick={click}>
22
+ <button className={`btn ${style} ${className}`} onClick={click}>
23
23
  { icon ? <Icon icon={icon} size="small" clickable action={click} /> : null }
24
24
  <Text>{ label }</Text>
25
25
  </button>