ywana-core8 0.0.479 → 0.0.480

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.479",
3
+ "version": "0.0.480",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -2,6 +2,7 @@
2
2
  overflow: hidden;
3
3
  border: solid 0px var(--divider-color);
4
4
  background-color: var(--paper-color);
5
+ overflow: auto;
5
6
  }
6
7
 
7
8
  .datatable8.outlined {
@@ -15,9 +16,10 @@
15
16
  .datatable8 thead {
16
17
  position: sticky;
17
18
  top: 0px;
18
- background-color: rgba(200,200,200,.4);
19
+ background-color: rgba(240,240,240);
19
20
  overflow: hidden;
20
21
  color: var(--text-color-lighter);
22
+ z-index: 2000;
21
23
  }
22
24
 
23
25
  .datatable8 thead tr {
package/src/html/table.js CHANGED
@@ -14,7 +14,7 @@ const isFunction = value => value && (Object.prototype.toString.call(value) ===
14
14
  */
15
15
  export const DataTable = (props) => {
16
16
 
17
- const { columns = [], rows = [], onRowSelection, onSort, onCheckAll, editable, outlined, expanded = false } = props
17
+ const { columns = [], rows = [], onRowSelection, onSort, onCheckAll, editable, outlined, expanded = false, className} = props
18
18
  const [sortDir, setSortDir] = useState({})
19
19
  const [allChecked, setAllChecked] = useState(false)
20
20
 
@@ -73,7 +73,7 @@ export const DataTable = (props) => {
73
73
 
74
74
  const style = outlined ? "outlined" : ""
75
75
  return (
76
- <div className={`datatable8 ${style}`}>
76
+ <div className={`datatable8 ${className} ${style}`}>
77
77
  <table>
78
78
  <thead>
79
79
  <tr>
@@ -7,7 +7,14 @@ const TableTest = (prop) => {
7
7
  const [rows, setRows] = useState(
8
8
  [
9
9
  { id: 1, checked: false, name: "John Smith", thumb: "https://w7.pngwing.com/pngs/881/826/png-transparent-pikachu-ash-ketchum-pokemon-vrste-pikachu-leaf-flower-meme-thumbnail.png"},
10
- { id: 2, checked: false, name: "Ann Martin", color: "#CCFFFF" }
10
+ { id: 2, checked: false, name: "Ann Martin", color: "#CCFFFF" },
11
+ { id: 3, checked: false, name: "Ann Martin", color: "#CCFFFF" },
12
+ { id: 4, checked: false, name: "Ann Martin", color: "#CCFFFF" },
13
+ { id: 5, checked: false, name: "Ann Martin", color: "#CCFFFF" },
14
+ { id: 6, checked: false, name: "Ann Martin", color: "#CCFFFF" },
15
+ { id: 7, checked: false, name: "Ann Martin", color: "#CCFFFF" },
16
+ { id: 8, checked: false, name: "Ann Martin", color: "#CCFFFF" },
17
+ { id: 9, checked: false, name: "Ann Martin", color: "#CCFFFF" },
11
18
  ]
12
19
  )
13
20
 
@@ -29,6 +36,7 @@ const TableTest = (prop) => {
29
36
  }
30
37
 
31
38
  const table = {
39
+ className: "xxx",
32
40
  editable: true,
33
41
  columns : [
34
42
  { id: "checked", onChange: check },