@underverse-ui/underverse 0.2.15 → 0.2.17
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.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1559,8 +1559,12 @@ var SkeletonCard = ({
|
|
|
1559
1559
|
showAvatar = true,
|
|
1560
1560
|
showImage = false,
|
|
1561
1561
|
textLines = 3,
|
|
1562
|
-
className
|
|
1562
|
+
className,
|
|
1563
|
+
children
|
|
1563
1564
|
}) => {
|
|
1565
|
+
if (children) {
|
|
1566
|
+
return /* @__PURE__ */ jsx11("div", { className: cn("p-4 space-y-4 rounded-lg bg-card outline-none focus:outline-none", className), children });
|
|
1567
|
+
}
|
|
1564
1568
|
return /* @__PURE__ */ jsxs9("div", { className: cn("p-4 space-y-4 rounded-lg bg-card outline-none focus:outline-none", className), children: [
|
|
1565
1569
|
showAvatar && /* @__PURE__ */ jsxs9("div", { className: "flex items-center space-x-3", children: [
|
|
1566
1570
|
/* @__PURE__ */ jsx11(SkeletonAvatar, {}),
|
|
@@ -9980,6 +9984,13 @@ function DataTable({
|
|
|
9980
9984
|
const [density, setDensity] = React37.useState("normal");
|
|
9981
9985
|
const [curPage, setCurPage] = React37.useState(page);
|
|
9982
9986
|
const [curPageSize, setCurPageSize] = React37.useState(pageSize);
|
|
9987
|
+
React37.useEffect(() => {
|
|
9988
|
+
const newColKeys = columns.filter((c) => c.visible !== false).map((c) => c.key);
|
|
9989
|
+
setVisibleCols((prev) => {
|
|
9990
|
+
const uniqueKeys = /* @__PURE__ */ new Set([...prev, ...newColKeys]);
|
|
9991
|
+
return [...uniqueKeys].filter((k) => columns.some((c) => c.key === k));
|
|
9992
|
+
});
|
|
9993
|
+
}, [columns]);
|
|
9983
9994
|
const debouncedFilters = useDebounced(filters, 350);
|
|
9984
9995
|
React37.useEffect(() => {
|
|
9985
9996
|
setCurPage(page);
|