@versini/ui-datagrid 4.1.7 → 4.2.1

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.
Files changed (39) hide show
  1. package/dist/262.js +1 -1
  2. package/dist/354.js +1 -1
  3. package/dist/631.js +1 -1
  4. package/dist/937.js +1 -1
  5. package/dist/DataGrid/DataGrid.d.ts +1 -1
  6. package/dist/DataGrid/DataGridContext.d.ts +1 -1
  7. package/dist/DataGrid/DataGridTypes.d.ts +1 -1
  8. package/dist/DataGrid/index.d.ts +3 -3
  9. package/dist/DataGrid/index.js +1 -1
  10. package/dist/DataGridAnimated/index.d.ts +4 -4
  11. package/dist/DataGridAnimated/index.js +1 -1
  12. package/dist/DataGridBody/DataGridBody.d.ts +1 -1
  13. package/dist/DataGridBody/index.d.ts +2 -2
  14. package/dist/DataGridBody/index.js +1 -1
  15. package/dist/DataGridCell/DataGridCell.d.ts +1 -1
  16. package/dist/DataGridCell/index.d.ts +2 -2
  17. package/dist/DataGridCell/index.js +1 -1
  18. package/dist/DataGridCellSort/ButtonSort.d.ts +8 -3
  19. package/dist/DataGridCellSort/DataGridCellSort.d.ts +1 -1
  20. package/dist/DataGridCellSort/index.d.ts +2 -2
  21. package/dist/DataGridCellSort/index.js +1 -1
  22. package/dist/DataGridConstants/index.d.ts +1 -1
  23. package/dist/DataGridConstants/index.js +1 -1
  24. package/dist/DataGridFooter/DataGridFooter.d.ts +1 -1
  25. package/dist/DataGridFooter/index.d.ts +2 -2
  26. package/dist/DataGridFooter/index.js +1 -1
  27. package/dist/DataGridHeader/DataGridHeader.d.ts +1 -1
  28. package/dist/DataGridHeader/index.d.ts +2 -2
  29. package/dist/DataGridHeader/index.js +1 -1
  30. package/dist/DataGridInfinite/index.d.ts +2 -2
  31. package/dist/DataGridInfinite/index.js +1 -1
  32. package/dist/DataGridRow/DataGridRow.d.ts +1 -1
  33. package/dist/DataGridRow/index.d.ts +2 -2
  34. package/dist/DataGridRow/index.js +1 -1
  35. package/dist/DataGridSorting/index.d.ts +2 -2
  36. package/dist/DataGridSorting/index.js +1 -1
  37. package/dist/DataGridSorting/sortingUtils.d.ts +1 -1
  38. package/dist/utilities/classes.d.ts +1 -1
  39. package/package.json +6 -4
package/dist/262.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
package/dist/354.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
package/dist/631.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
package/dist/937.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,2 +1,2 @@
1
- import type { DataGridProps } from "./DataGridTypes";
1
+ import type { DataGridProps } from "./DataGridTypes.js";
2
2
  export declare const DataGrid: ({ className, wrapperClassName, children, mode, compact, stickyHeader, stickyFooter, blurEffect, maxHeight, loading, columns, ...rest }: DataGridProps) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
- import type { DataGridContextValue } from "./DataGridTypes";
1
+ import type { DataGridContextValue } from "./DataGridTypes.js";
2
2
  export declare const DataGridContext: import("react").Context<DataGridContextValue>;
@@ -10,7 +10,7 @@ type GridTrackPrimitive = CSSLength | CSSPercentage | CSSFraction | "auto" | "mi
10
10
  type CSSMinMax = `minmax(${GridTrackPrimitive}, ${GridTrackPrimitive})`;
11
11
  type CSSRepeat = `repeat(${number | "auto-fill" | "auto-fit"}, ${GridTrackPrimitive})`;
12
12
  export type DataGridColumnSize = GridTrackPrimitive | CSSMinMax | CSSRepeat;
13
- import type { BlurEffect, CellWrapperType, SortDirection, ThemeMode } from "../DataGridConstants/DataGridConstants";
13
+ import type { BlurEffect, CellWrapperType, SortDirection, ThemeMode } from "../DataGridConstants/DataGridConstants.js";
14
14
  export type DataGridProps = {
15
15
  /**
16
16
  * The content of the DataGrid (DataGridHeader, DataGridBody, DataGridFooter).
@@ -1,3 +1,3 @@
1
- export { DataGrid } from "./DataGrid";
2
- export { DataGridContext } from "./DataGridContext";
3
- export type { DataGridColumnSize, DataGridContextValue, DataGridProps, } from "./DataGridTypes";
1
+ export { DataGrid } from "./DataGrid.js";
2
+ export { DataGridContext } from "./DataGridContext.js";
3
+ export type { DataGridColumnSize, DataGridContextValue, DataGridProps, } from "./DataGridTypes.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,4 +1,4 @@
1
- export type { AnimatedWrapperProps } from "./AnimatedWrapper";
2
- export { AnimatedWrapper } from "./AnimatedWrapper";
3
- export type { UseAnimatedHeightOptions, UseAnimatedHeightReturn, } from "./useAnimatedHeight";
4
- export { useAnimatedHeight } from "./useAnimatedHeight";
1
+ export type { AnimatedWrapperProps } from "./AnimatedWrapper.js";
2
+ export { AnimatedWrapper } from "./AnimatedWrapper.js";
3
+ export type { UseAnimatedHeightOptions, UseAnimatedHeightReturn, } from "./useAnimatedHeight.js";
4
+ export { useAnimatedHeight } from "./useAnimatedHeight.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,2 +1,2 @@
1
- import type { DataGridBodyProps } from "../DataGrid/DataGridTypes";
1
+ import type { DataGridBodyProps } from "../DataGrid/DataGridTypes.js";
2
2
  export declare const DataGridBody: ({ className, children, noData, noDataText, ...rest }: DataGridBodyProps) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
- export type { DataGridBodyProps } from "../DataGrid/DataGridTypes";
2
- export { DataGridBody } from "./DataGridBody";
1
+ export type { DataGridBodyProps } from "../DataGrid/DataGridTypes.js";
2
+ export { DataGridBody } from "./DataGridBody.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,2 +1,2 @@
1
- import type { DataGridCellProps } from "../DataGrid/DataGridTypes";
1
+ import type { DataGridCellProps } from "../DataGrid/DataGridTypes.js";
2
2
  export declare const DataGridCell: ({ className, children, align, borderLeft, borderRight, colSpan, style, ...rest }: DataGridCellProps) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
- export type { DataGridCellProps } from "../DataGrid/DataGridTypes";
2
- export { DataGridCell } from "./DataGridCell";
1
+ export type { DataGridCellProps } from "../DataGrid/DataGridTypes.js";
2
+ export { DataGridCell } from "./DataGridCell.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,6 +1,11 @@
1
- import type { ButtonSortTypes } from "@versini/ui-types";
2
- import { type BlurEffect, type ThemeMode } from "../DataGridConstants";
3
- type ButtonSortProps = Pick<ButtonSortTypes.Props, "active" | "className" | "onClick" | "labelRight" | "children">;
1
+ import { type BlurEffect, type ThemeMode } from "../DataGridConstants/index.js";
2
+ type ButtonSortProps = {
3
+ active?: boolean;
4
+ children: React.ReactNode;
5
+ className?: string;
6
+ labelRight?: string;
7
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
8
+ };
4
9
  export declare const ButtonSort: ({ active, className, onClick, labelRight, children, blurEffect, mode, }: ButtonSortProps & {
5
10
  mode: ThemeMode;
6
11
  blurEffect?: BlurEffect;
@@ -1,2 +1,2 @@
1
- import type { DataGridCellSortProps } from "../DataGrid/DataGridTypes";
1
+ import type { DataGridCellSortProps } from "../DataGrid/DataGridTypes.js";
2
2
  export declare const DataGridCellSort: ({ className, children, cellId, onSort, sortDirection, sortedCell, slotLeft, slotRight, buttonClassName, align, ...rest }: DataGridCellSortProps) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
- export type { DataGridCellSortProps } from "../DataGrid/DataGridTypes";
2
- export { DataGridCellSort } from "./DataGridCellSort";
1
+ export type { DataGridCellSortProps } from "../DataGrid/DataGridTypes.js";
2
+ export { DataGridCellSort } from "./DataGridCellSort.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1 +1 @@
1
- export { type BlurEffect, BlurEffects, CellWrapper, type CellWrapperType, type SortDirection, SortDirections, type ThemeMode, ThemeModes, } from "./DataGridConstants";
1
+ export { type BlurEffect, BlurEffects, CellWrapper, type CellWrapperType, type SortDirection, SortDirections, type ThemeMode, ThemeModes, } from "./DataGridConstants.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,4 +1,4 @@
1
- import type { DataGridFooterProps } from "../DataGrid/DataGridTypes";
1
+ import type { DataGridFooterProps } from "../DataGrid/DataGridTypes.js";
2
2
  export declare const DataGridFooter: {
3
3
  ({ className, children, ...rest }: DataGridFooterProps): import("react").JSX.Element;
4
4
  displayName: string;
@@ -1,2 +1,2 @@
1
- export type { DataGridFooterProps } from "../DataGrid/DataGridTypes";
2
- export { DataGridFooter } from "./DataGridFooter";
1
+ export type { DataGridFooterProps } from "../DataGrid/DataGridTypes.js";
2
+ export { DataGridFooter } from "./DataGridFooter.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,4 +1,4 @@
1
- import type { DataGridHeaderProps } from "../DataGrid/DataGridTypes";
1
+ import type { DataGridHeaderProps } from "../DataGrid/DataGridTypes.js";
2
2
  export declare const DataGridHeader: {
3
3
  ({ caption, captionClassName, className, children, ...rest }: DataGridHeaderProps): import("react").JSX.Element;
4
4
  displayName: string;
@@ -1,2 +1,2 @@
1
- export type { DataGridHeaderProps } from "../DataGrid/DataGridTypes";
2
- export { DataGridHeader } from "./DataGridHeader";
1
+ export type { DataGridHeaderProps } from "../DataGrid/DataGridTypes.js";
2
+ export { DataGridHeader } from "./DataGridHeader.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,2 +1,2 @@
1
- export type { DataGridInfiniteBodyProps, DataGridInfiniteBodyRef, ScrollToIndexOptions, } from "./DataGridInfiniteBody";
2
- export { DataGridInfiniteBody } from "./DataGridInfiniteBody";
1
+ export type { DataGridInfiniteBodyProps, DataGridInfiniteBodyRef, ScrollToIndexOptions, } from "./DataGridInfiniteBody.js";
2
+ export { DataGridInfiniteBody } from "./DataGridInfiniteBody.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
- import type { DataGridRowProps } from "../DataGrid/DataGridTypes";
2
+ import type { DataGridRowProps } from "../DataGrid/DataGridTypes.js";
3
3
  export declare const DataGridRow: ({ className, children, active, style: userStyle, ...rest }: DataGridRowProps) => React.JSX.Element;
@@ -1,2 +1,2 @@
1
- export type { DataGridRowProps } from "../DataGrid/DataGridTypes";
2
- export { DataGridRow } from "./DataGridRow";
1
+ export type { DataGridRowProps } from "../DataGrid/DataGridTypes.js";
2
+ export { DataGridRow } from "./DataGridRow.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,2 +1,2 @@
1
- export { type SortDirection, SortDirections } from "../DataGridConstants";
2
- export { getNextSortConfig, getOppositeSortDirection, type SortComparator, type SortConfig, sortByBoolean, sortByDate, sortByNumber, sortByString, sortItems, toggleSortDirection, } from "./sortingUtils";
1
+ export { type SortDirection, SortDirections, } from "../DataGridConstants/index.js";
2
+ export { getNextSortConfig, getOppositeSortDirection, type SortComparator, type SortConfig, sortByBoolean, sortByDate, sortByNumber, sortByString, sortItems, toggleSortDirection, } from "./sortingUtils.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-datagrid v4.1.7
2
+ @versini/ui-datagrid v4.2.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -1,4 +1,4 @@
1
- import { type SortDirection } from "../DataGridConstants/DataGridConstants";
1
+ import { type SortDirection } from "../DataGridConstants/DataGridConstants.js";
2
2
  /**
3
3
  * Gets the opposite sort direction.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { type BlurEffect, type CellWrapperType, type ThemeMode } from "../DataGridConstants/DataGridConstants";
1
+ import { type BlurEffect, type CellWrapperType, type ThemeMode } from "../DataGridConstants/DataGridConstants.js";
2
2
  /**
3
3
  * Text color classes based on theme mode.
4
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-datagrid",
3
- "version": "4.1.7",
3
+ "version": "4.2.1",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -87,8 +87,7 @@
87
87
  },
88
88
  "devDependencies": {
89
89
  "@testing-library/jest-dom": "7.0.0",
90
- "@versini/ui-button": "15.1.5",
91
- "@versini/ui-types": "10.1.0"
90
+ "@versini/ui-button": "15.2.1"
92
91
  },
93
92
  "dependencies": {
94
93
  "@tanstack/react-virtual": "3.14.9",
@@ -99,5 +98,8 @@
99
98
  "sideEffects": [
100
99
  "**/*.css"
101
100
  ],
102
- "gitHead": "e666fe932da0021f632f9577a3214f4ca5738db4"
101
+ "peerDependencies": {
102
+ "react": "^19.0.0"
103
+ },
104
+ "gitHead": "8edfc28ac74f82af2ecdd5c639534f0be6fe4044"
103
105
  }