@groupeactual/ui-kit 1.1.1-beta.3 → 1.1.1-beta.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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Datatable/Datatable.d.ts +1 -1
- package/dist/cjs/types/components/Datatable/datatable.interface.d.ts +4 -4
- package/dist/es/index.d.ts +5 -5
- package/dist/es/index.mjs +1 -1
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/types/components/Datatable/Datatable.d.ts +1 -1
- package/dist/es/types/components/Datatable/datatable.interface.d.ts +4 -4
- package/package.json +2 -2
- package/src/components/Datatable/Datatable.tsx +4 -4
- package/src/components/Datatable/datatable.interface.ts +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Props } from './datatable.interface';
|
|
2
2
|
declare const Datatable: {
|
|
3
|
-
<T extends {}>({ values, columns,
|
|
3
|
+
<T extends {}>({ values, columns, withPagination, withHeader, withTopPagination, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default Datatable;
|
|
@@ -13,14 +13,14 @@ export interface Row {
|
|
|
13
13
|
type BaseProps<T> = {
|
|
14
14
|
columns: Column<T>[];
|
|
15
15
|
withHeader?: boolean;
|
|
16
|
-
withPagination
|
|
17
|
-
withTopPagination
|
|
16
|
+
withPagination?: boolean;
|
|
17
|
+
withTopPagination?: boolean;
|
|
18
18
|
};
|
|
19
19
|
type WithoutPaginationProps = {
|
|
20
|
-
withPagination
|
|
20
|
+
withPagination?: false;
|
|
21
21
|
};
|
|
22
22
|
type WithoutTopPaginationProps = {
|
|
23
|
-
withTopPagination
|
|
23
|
+
withTopPagination?: false;
|
|
24
24
|
};
|
|
25
25
|
type PaginationProps = {
|
|
26
26
|
withPagination: true;
|
package/dist/es/index.d.ts
CHANGED
|
@@ -344,14 +344,14 @@ interface Row {
|
|
|
344
344
|
type BaseProps<T> = {
|
|
345
345
|
columns: Column<T>[];
|
|
346
346
|
withHeader?: boolean;
|
|
347
|
-
withPagination
|
|
348
|
-
withTopPagination
|
|
347
|
+
withPagination?: boolean;
|
|
348
|
+
withTopPagination?: boolean;
|
|
349
349
|
};
|
|
350
350
|
type WithoutPaginationProps = {
|
|
351
|
-
withPagination
|
|
351
|
+
withPagination?: false;
|
|
352
352
|
};
|
|
353
353
|
type WithoutTopPaginationProps = {
|
|
354
|
-
withTopPagination
|
|
354
|
+
withTopPagination?: false;
|
|
355
355
|
};
|
|
356
356
|
type PaginationProps = {
|
|
357
357
|
withPagination: true;
|
|
@@ -376,7 +376,7 @@ type WithoutDetailsProps<T> = {
|
|
|
376
376
|
type Props$1<T extends {}> = BaseProps<T> & (WithoutPaginationProps | WithoutTopPaginationProps | PaginationProps | TopPaginationProps) & (WithDetailsProps<T> | WithoutDetailsProps<T>);
|
|
377
377
|
|
|
378
378
|
declare const Datatable: {
|
|
379
|
-
<T extends {}>({ values, columns,
|
|
379
|
+
<T extends {}>({ values, columns, withPagination, withHeader, withTopPagination, ...props }: Props$1<T>): react_jsx_runtime.JSX.Element;
|
|
380
380
|
displayName: string;
|
|
381
381
|
};
|
|
382
382
|
|