ywana-core8 0.0.557 → 0.0.558

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.557",
3
+ "version": "0.0.558",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/html/table.js CHANGED
@@ -139,10 +139,10 @@ const DataTableRow = (props) => {
139
139
  const { className } = row
140
140
  const [isInfoOpen, toggleInfo] = useState(expanded)
141
141
  const infoIcon = isInfoOpen ? 'expand_more' : 'expand_less'
142
-
142
+ const style = expanded ? "expanded" : ""
143
143
  return (
144
144
  <Fragment>
145
- <tr className={className} onClick={ev => onSelect(row, ev)}>
145
+ <tr className={`${style} ${className}`} onClick={ev => onSelect(row, ev)}>
146
146
  {columns.map((column, cindex) => <DataTableCell key={`${column.id}_${cindex}`} index={index} row={row} column={column} cell={row[column.id]} editable={editable} />)}
147
147
  {row.info ? <td><Icon icon={infoIcon} clickable action={() => toggleInfo(!isInfoOpen)} /></td> : <td></td>}
148
148
  </tr>