@taikai/rocket-kit 3.0.11 → 3.0.12-0

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.
@@ -3618,8 +3618,6 @@ const Table$1 = props => {
3618
3618
  const hasActionMenu = actions.length > 0;
3619
3619
  const validValues = values.filter(hasValue);
3620
3620
  const hasValues = Array.isArray(values) && values.length > 0;
3621
- const headSkeleton = /*#__PURE__*/React__default.createElement("th", null, /*#__PURE__*/React__default.createElement(SkeletonCell, null));
3622
- const cellSkeleton = /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(SkeletonCell, null));
3623
3621
  const columnsSkeleton = columns.length > 0 ? columns.length : loadingColumns;
3624
3622
  if (showEmpty && !hasValues) {
3625
3623
  const columnHeaders = columns.map(column => column.value);
@@ -3637,7 +3635,9 @@ const Table$1 = props => {
3637
3635
  loadingState: loading
3638
3636
  }, /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", null, loading && !columns ? Array.from({
3639
3637
  length: loadingColumns
3640
- }, () => headSkeleton) : columns.map(({
3638
+ }, (_, i) => /*#__PURE__*/React__default.createElement("th", {
3639
+ key: `skeleton-head-${i}`
3640
+ }, /*#__PURE__*/React__default.createElement(SkeletonCell, null))) : columns.map(({
3641
3641
  id = '',
3642
3642
  className = '',
3643
3643
  value = '',
@@ -3648,9 +3648,13 @@ const Table$1 = props => {
3648
3648
  "data-testid": colDataTestId ? `th-${colDataTestId}` : null
3649
3649
  }, value)), !loading && hasActionMenu && /*#__PURE__*/React__default.createElement("th", null))), /*#__PURE__*/React__default.createElement("tbody", null, loading ? Array.from({
3650
3650
  length: loadingRows
3651
- }, () => /*#__PURE__*/React__default.createElement("tr", null, Array.from({
3651
+ }, (_, rowIndex) => /*#__PURE__*/React__default.createElement("tr", {
3652
+ key: `skeleton-row-${rowIndex}`
3653
+ }, Array.from({
3652
3654
  length: columnsSkeleton
3653
- }, () => cellSkeleton))) : validValues.map((row, index) => /*#__PURE__*/React__default.createElement("tr", {
3655
+ }, (_, colIndex) => /*#__PURE__*/React__default.createElement("td", {
3656
+ key: `skeleton-cell-${rowIndex}-${colIndex}`
3657
+ }, /*#__PURE__*/React__default.createElement(SkeletonCell, null))))) : validValues.map((row, index) => /*#__PURE__*/React__default.createElement("tr", {
3654
3658
  key: row.id,
3655
3659
  "data-testid": `row-${dataTestId}`
3656
3660
  }, columns.map(({