plataforma-fundacao-componentes 2.22.21 → 2.22.22

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/dist/index.js CHANGED
@@ -9974,9 +9974,6 @@ function TableWithOverflow(props) {
9974
9974
  return prev + n;
9975
9975
  }, 8) + "px" : '8px';
9976
9976
  }, [props.columns, atLeastOneStaticColumn]);
9977
- var renderLinesKey = React.useMemo(function () {
9978
- return getUniqueKey();
9979
- }, [props.lines]);
9980
9977
  var columnsHeader = React.useMemo(function () {
9981
9978
  var _props$columns;
9982
9979
 
@@ -9985,14 +9982,14 @@ function TableWithOverflow(props) {
9985
9982
 
9986
9983
  var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
9987
9984
  return React__default.createElement("th", Object.assign({
9988
- key: "header-" + column.key,
9985
+ key: "header-" + column.key + "-" + atLeastOneStaticColumn,
9989
9986
  "data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute)
9990
9987
  }, column.props, {
9991
9988
  style: _extends({}, (_column$props = column.props) === null || _column$props === void 0 ? void 0 : _column$props.style, absoluteObj),
9992
9989
  className: getMergedClassNames([column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
9993
9990
  }), column.value);
9994
9991
  });
9995
- }, [props.columns, renderLinesKey]);
9992
+ }, [props.columns, atLeastOneStaticColumn]);
9996
9993
  var lines = React.useMemo(function () {
9997
9994
  var _props$lines;
9998
9995
 
@@ -10012,7 +10009,7 @@ function TableWithOverflow(props) {
10012
10009
  var absoluteObj = atLeastOneStaticColumn && column.absolute ? column.absolute : {};
10013
10010
  return React__default.createElement("td", Object.assign({
10014
10011
  "data-draggable": atLeastOneStaticColumn && !Boolean(column.absolute),
10015
- key: k + "-" + column.key + (column.absolute ? '' : renderLinesKey)
10012
+ key: k + "-" + column.key + "-" + atLeastOneStaticColumn
10016
10013
  }, column.props, {
10017
10014
  style: _extends({}, (_column$props2 = column.props) === null || _column$props2 === void 0 ? void 0 : _column$props2.style, absoluteObj),
10018
10015
  className: getMergedClassNames([(_column$props3 = column.props) === null || _column$props3 === void 0 ? void 0 : _column$props3.className, column.key + "-cell", atLeastOneStaticColumn && column.absolute ? 'absolute' : ''])
@@ -10021,7 +10018,7 @@ function TableWithOverflow(props) {
10021
10018
  className: 'absolute right-0'
10022
10019
  }));
10023
10020
  });
10024
- }, [props.lines, renderLinesKey]);
10021
+ }, [props.columns, props.lines, atLeastOneStaticColumn]);
10025
10022
  return React__default.createElement("div", {
10026
10023
  className: rootClassName$1B
10027
10024
  }, props.upperHeader ? React__default.createElement("div", {