@versini/ui-datagrid 0.2.3 → 0.2.4
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/DataGrid/DataGrid.js +1 -1
- package/dist/DataGrid/DataGridContext.js +1 -1
- package/dist/DataGrid/index.js +1 -1
- package/dist/DataGrid/utilities.js +6 -3
- package/dist/DataGridAnimated/AnimatedWrapper.js +1 -1
- package/dist/DataGridAnimated/index.js +1 -1
- package/dist/DataGridAnimated/useAnimatedHeight.js +1 -1
- package/dist/DataGridBody/DataGridBody.js +1 -1
- package/dist/DataGridBody/index.js +1 -1
- package/dist/DataGridCell/DataGridCell.js +1 -1
- package/dist/DataGridCell/index.js +1 -1
- package/dist/DataGridCellSort/DataGridCellSort.js +1 -1
- package/dist/DataGridCellSort/index.js +1 -1
- package/dist/DataGridConstants/DataGridConstants.js +1 -1
- package/dist/DataGridConstants/index.js +1 -1
- package/dist/DataGridFooter/DataGridFooter.js +1 -1
- package/dist/DataGridFooter/index.js +1 -1
- package/dist/DataGridHeader/DataGridHeader.js +1 -1
- package/dist/DataGridHeader/index.js +1 -1
- package/dist/DataGridInfinite/InfiniteScrollMarker.js +1 -1
- package/dist/DataGridInfinite/index.js +1 -1
- package/dist/DataGridInfinite/useInfiniteScroll.js +1 -1
- package/dist/DataGridRow/DataGridRow.js +1 -1
- package/dist/DataGridRow/index.js +1 -1
- package/dist/DataGridSorting/index.js +1 -1
- package/dist/DataGridSorting/sortingUtils.js +1 -1
- package/dist/common/utilities.js +1 -1
- package/package.json +2 -2
package/dist/DataGrid/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-datagrid v0.2.
|
|
2
|
+
@versini/ui-datagrid v0.2.4
|
|
3
3
|
© 2026 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -52,9 +52,10 @@ import clsx from "clsx";
|
|
|
52
52
|
spinnerWrapper: overlayClasses?.spinnerWrapper ?? "",
|
|
53
53
|
spinner: overlayClasses?.spinner ?? "",
|
|
54
54
|
// Outer wrapper - overflow-hidden when sticky, like Panel's outerWrapper.
|
|
55
|
+
// Uses flex layout when sticky to allow scrollableContent to respect max-height.
|
|
55
56
|
wrapper: clsx("not-prose relative w-full rounded-lg shadow-md", {
|
|
56
57
|
"overflow-x-auto": !hasSticky && !disabled,
|
|
57
|
-
"overflow-hidden": hasSticky || disabled,
|
|
58
|
+
"overflow-hidden flex flex-col": hasSticky || disabled,
|
|
58
59
|
"bg-surface-darker": mode === "dark" || mode === "system",
|
|
59
60
|
"bg-surface-light": mode === "light" || mode === "alt-system",
|
|
60
61
|
"dark:bg-surface-light": mode === "system",
|
|
@@ -69,7 +70,9 @@ import clsx from "clsx";
|
|
|
69
70
|
* Header height varies based on whether caption is present:
|
|
70
71
|
* - pt-10 (40px): header row only
|
|
71
72
|
* - pt-19 (76px): header row + caption
|
|
72
|
-
*/ scrollableContent: clsx(
|
|
73
|
+
*/ scrollableContent: clsx(// flex-1 + min-h-0 allows this to shrink within flex parent and enable scrolling.
|
|
74
|
+
// min-h-0 overrides the default min-height:auto that prevents flex items from shrinking.
|
|
75
|
+
"overflow-y-auto overflow-x-hidden rounded-[inherit] flex-1 min-h-0", {
|
|
73
76
|
"pt-10": stickyHeader && !hasCaption,
|
|
74
77
|
"pt-19": stickyHeader && hasCaption,
|
|
75
78
|
"pb-10": stickyFooter
|
package/dist/common/utilities.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-datagrid",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"sideEffects": [
|
|
95
95
|
"**/*.css"
|
|
96
96
|
],
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "1f4a928db8f79f7d80f0a6f377d51ed9f87945fa"
|
|
98
98
|
}
|