@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.
- package/dist/rocket-kit.cjs.development.js +9 -5
- package/dist/rocket-kit.cjs.development.js.map +1 -1
- package/dist/rocket-kit.cjs.production.min.js +1 -1
- package/dist/rocket-kit.cjs.production.min.js.map +1 -1
- package/dist/rocket-kit.esm.js +9 -5
- package/dist/rocket-kit.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/rocket-kit.esm.js
CHANGED
|
@@ -3609,8 +3609,6 @@ const Table$1 = props => {
|
|
|
3609
3609
|
const hasActionMenu = actions.length > 0;
|
|
3610
3610
|
const validValues = values.filter(hasValue);
|
|
3611
3611
|
const hasValues = Array.isArray(values) && values.length > 0;
|
|
3612
|
-
const headSkeleton = /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(SkeletonCell, null));
|
|
3613
|
-
const cellSkeleton = /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement(SkeletonCell, null));
|
|
3614
3612
|
const columnsSkeleton = columns.length > 0 ? columns.length : loadingColumns;
|
|
3615
3613
|
if (showEmpty && !hasValues) {
|
|
3616
3614
|
const columnHeaders = columns.map(column => column.value);
|
|
@@ -3628,7 +3626,9 @@ const Table$1 = props => {
|
|
|
3628
3626
|
loadingState: loading
|
|
3629
3627
|
}, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, loading && !columns ? Array.from({
|
|
3630
3628
|
length: loadingColumns
|
|
3631
|
-
}, () =>
|
|
3629
|
+
}, (_, i) => /*#__PURE__*/React.createElement("th", {
|
|
3630
|
+
key: `skeleton-head-${i}`
|
|
3631
|
+
}, /*#__PURE__*/React.createElement(SkeletonCell, null))) : columns.map(({
|
|
3632
3632
|
id = '',
|
|
3633
3633
|
className = '',
|
|
3634
3634
|
value = '',
|
|
@@ -3639,9 +3639,13 @@ const Table$1 = props => {
|
|
|
3639
3639
|
"data-testid": colDataTestId ? `th-${colDataTestId}` : null
|
|
3640
3640
|
}, value)), !loading && hasActionMenu && /*#__PURE__*/React.createElement("th", null))), /*#__PURE__*/React.createElement("tbody", null, loading ? Array.from({
|
|
3641
3641
|
length: loadingRows
|
|
3642
|
-
}, () => /*#__PURE__*/React.createElement("tr",
|
|
3642
|
+
}, (_, rowIndex) => /*#__PURE__*/React.createElement("tr", {
|
|
3643
|
+
key: `skeleton-row-${rowIndex}`
|
|
3644
|
+
}, Array.from({
|
|
3643
3645
|
length: columnsSkeleton
|
|
3644
|
-
}, (
|
|
3646
|
+
}, (_, colIndex) => /*#__PURE__*/React.createElement("td", {
|
|
3647
|
+
key: `skeleton-cell-${rowIndex}-${colIndex}`
|
|
3648
|
+
}, /*#__PURE__*/React.createElement(SkeletonCell, null))))) : validValues.map((row, index) => /*#__PURE__*/React.createElement("tr", {
|
|
3645
3649
|
key: row.id,
|
|
3646
3650
|
"data-testid": `row-${dataTestId}`
|
|
3647
3651
|
}, columns.map(({
|