munza-x-data-grid 1.5.3 → 1.5.5
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/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/native-select.d.ts +1 -1
- package/dist/contexts/GridContext.d.ts +3 -1
- package/dist/core/Grid.d.ts +1 -1
- package/dist/data-grid.cjs +14 -14
- package/dist/data-grid.js +6262 -6209
- package/dist/index.css +3 -3
- package/package.json +64 -64
- /package/dist/components/ui/{input.d.ts → Input.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
7
7
|
asChild?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
|
|
5
5
|
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
@@ -3,6 +3,6 @@ type NativeSelectProps = Omit<React.ComponentProps<'select'>, 'size'> & {
|
|
|
3
3
|
size?: 'sm' | 'default';
|
|
4
4
|
};
|
|
5
5
|
declare function NativeSelect({ className, size, ...props }: NativeSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function NativeSelectOption({ ...props }: React.ComponentProps<'option'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function NativeSelectOption({ className, ...props }: React.ComponentProps<'option'>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function NativeSelectOptGroup({ className, ...props }: React.ComponentProps<'optgroup'>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
|
|
@@ -12,6 +12,7 @@ export interface GridContextProps<T> {
|
|
|
12
12
|
renderSubComponent?: (props: {
|
|
13
13
|
row: Row<T>;
|
|
14
14
|
}) => React.ReactElement;
|
|
15
|
+
refetch?: () => void;
|
|
15
16
|
}
|
|
16
17
|
declare const GridContext: React.Context<GridContextProps<any> | undefined>;
|
|
17
18
|
interface GridContextProviderProps<T> {
|
|
@@ -29,11 +30,12 @@ interface GridContextProviderProps<T> {
|
|
|
29
30
|
isLoading?: boolean;
|
|
30
31
|
isError?: boolean;
|
|
31
32
|
isFetching?: boolean;
|
|
33
|
+
refetch?: () => void;
|
|
32
34
|
setGlobalFilter?: React.Dispatch<React.SetStateAction<string>>;
|
|
33
35
|
renderSubComponent?: (props: {
|
|
34
36
|
row: Row<T>;
|
|
35
37
|
}) => React.ReactElement;
|
|
36
38
|
getRowCanExpand?: (row: Row<T>) => boolean;
|
|
37
39
|
}
|
|
38
|
-
export declare const GridContextProvider: <T>({ children, payload, columns, state, onColumnFiltersChange, onPaginationChange, onSortingChange, setGlobalFilter, manualPagination, isError, isLoading, isFetching, getRowCanExpand, renderSubComponent, }: GridContextProviderProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare const GridContextProvider: <T>({ children, payload, columns, state, onColumnFiltersChange, onPaginationChange, onSortingChange, setGlobalFilter, manualPagination, isError, isLoading, isFetching, refetch, getRowCanExpand, renderSubComponent, }: GridContextProviderProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
39
41
|
export default GridContext;
|
package/dist/core/Grid.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GridProps } from '../types';
|
|
2
|
-
declare const Grid: <T>({ columns, payload, state, onColumnFiltersChange, onPaginationChange, onSortingChange, isLoading, isError, setGlobalFilter, getRowCanExpand, renderSubComponent, manualPagination, isFetching, }: GridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Grid: <T>({ columns, payload, state, onColumnFiltersChange, onPaginationChange, onSortingChange, isLoading, isError, setGlobalFilter, getRowCanExpand, renderSubComponent, manualPagination, isFetching, refetch }: GridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { Grid };
|