ywana-core8 0.0.556 → 0.0.559

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.
@@ -763,7 +763,7 @@ var Property = function Property(props) {
763
763
 
764
764
  var value2 = value || initial;
765
765
 
766
- if (options && typeof options === 'array') {
766
+ if (options && Array.isArray(options)) {
767
767
  var opt = options.find(function (option) {
768
768
  return option.value == value2;
769
769
  });
@@ -1646,12 +1646,19 @@ 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
1650
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("tr", {
1650
- className: className,
1651
+ className: style + " " + className,
1651
1652
  onClick: function onClick(ev) {
1652
1653
  return onSelect(row, ev);
1653
1654
  }
1654
- }, columns.map(function (column, cindex) {
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
1662
  return /*#__PURE__*/React.createElement(DataTableCell, {
1656
1663
  key: column.id + "_" + cindex,
1657
1664
  index: index,
@@ -1660,13 +1667,7 @@ var DataTableRow = function DataTableRow(props) {
1660
1667
  cell: row[column.id],
1661
1668
  editable: editable
1662
1669
  });
1663
- }), row.info ? /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement(Icon, {
1664
- icon: infoIcon,
1665
- clickable: true,
1666
- action: function action() {
1667
- return toggleInfo(!isInfoOpen);
1668
- }
1669
- })) : /*#__PURE__*/React.createElement("td", null)), row.info && isInfoOpen ? /*#__PURE__*/React.createElement("tr", {
1670
+ })), row.info && isInfoOpen ? /*#__PURE__*/React.createElement("tr", {
1670
1671
  className: "table-row-info"
1671
1672
  }, /*#__PURE__*/React.createElement("td", {
1672
1673
  colSpan: columns.length + 1