ywana-core8 0.0.559 → 0.0.560

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.
@@ -1646,19 +1646,13 @@ var DataTableRow = function DataTableRow(props) {
1646
1646
  toggleInfo = _useState3[1];
1647
1647
 
1648
1648
  var infoIcon = isInfoOpen ? 'expand_more' : 'expand_less';
1649
- var style = expanded ? "expanded" : "";
1649
+ var style = isInfoOpen ? "expanded" : "";
1650
1650
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("tr", {
1651
1651
  className: style + " " + className,
1652
1652
  onClick: function onClick(ev) {
1653
1653
  return onSelect(row, ev);
1654
1654
  }
1655
- }, row.info ? /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement(Icon, {
1656
- icon: infoIcon,
1657
- clickable: true,
1658
- action: function action() {
1659
- return toggleInfo(!isInfoOpen);
1660
- }
1661
- })) : /*#__PURE__*/React.createElement("td", null), columns.map(function (column, cindex) {
1655
+ }, columns.map(function (column, cindex) {
1662
1656
  return /*#__PURE__*/React.createElement(DataTableCell, {
1663
1657
  key: column.id + "_" + cindex,
1664
1658
  index: index,
@@ -1667,7 +1661,13 @@ var DataTableRow = function DataTableRow(props) {
1667
1661
  cell: row[column.id],
1668
1662
  editable: editable
1669
1663
  });
1670
- })), row.info && isInfoOpen ? /*#__PURE__*/React.createElement("tr", {
1664
+ }), row.info ? /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement(Icon, {
1665
+ icon: infoIcon,
1666
+ clickable: true,
1667
+ action: function action() {
1668
+ return toggleInfo(!isInfoOpen);
1669
+ }
1670
+ })) : /*#__PURE__*/React.createElement("td", null)), row.info && isInfoOpen ? /*#__PURE__*/React.createElement("tr", {
1671
1671
  className: "table-row-info"
1672
1672
  }, /*#__PURE__*/React.createElement("td", {
1673
1673
  colSpan: columns.length + 1