@groupeactual/ui-kit 1.1.1-beta.1 → 1.1.1-beta.2

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.
@@ -18,20 +18,22 @@ type BaseProps<T> = {
18
18
  };
19
19
  type WithoutPaginationProps = {
20
20
  withPagination?: false;
21
+ };
22
+ type WithoutTopPaginationProps = {
21
23
  withTopPagination?: false;
22
24
  };
23
25
  type PaginationProps = {
24
26
  withPagination: true;
27
+ totalTrad: string;
28
+ totalPerPageTrad: string;
25
29
  rowPerPage?: number;
26
- totalPerPageTrad?: string;
27
- totalTrad?: string;
28
30
  limitsPerPageArray?: number[];
29
31
  };
30
32
  type TopPaginationProps = {
31
33
  withTopPagination: true;
34
+ totalPerPageTrad: string;
35
+ totalTrad: string;
32
36
  rowPerPage?: number;
33
- totalPerPageTrad?: string;
34
- totalTrad?: string;
35
37
  limitsPerPageArray?: number[];
36
38
  };
37
39
  type WithDetailsProps<T> = {
@@ -40,5 +42,5 @@ type WithDetailsProps<T> = {
40
42
  type WithoutDetailsProps<T> = {
41
43
  values: T[];
42
44
  };
43
- export type Props<T extends {}> = BaseProps<T> & (WithoutPaginationProps | PaginationProps | TopPaginationProps) & (WithDetailsProps<T> | WithoutDetailsProps<T>);
45
+ export type Props<T extends {}> = BaseProps<T> & (WithoutPaginationProps | WithoutTopPaginationProps | PaginationProps | TopPaginationProps) & (WithDetailsProps<T> | WithoutDetailsProps<T>);
44
46
  export {};
@@ -349,20 +349,22 @@ type BaseProps<T> = {
349
349
  };
350
350
  type WithoutPaginationProps = {
351
351
  withPagination?: false;
352
+ };
353
+ type WithoutTopPaginationProps = {
352
354
  withTopPagination?: false;
353
355
  };
354
356
  type PaginationProps = {
355
357
  withPagination: true;
358
+ totalTrad: string;
359
+ totalPerPageTrad: string;
356
360
  rowPerPage?: number;
357
- totalPerPageTrad?: string;
358
- totalTrad?: string;
359
361
  limitsPerPageArray?: number[];
360
362
  };
361
363
  type TopPaginationProps = {
362
364
  withTopPagination: true;
365
+ totalPerPageTrad: string;
366
+ totalTrad: string;
363
367
  rowPerPage?: number;
364
- totalPerPageTrad?: string;
365
- totalTrad?: string;
366
368
  limitsPerPageArray?: number[];
367
369
  };
368
370
  type WithDetailsProps<T> = {
@@ -371,7 +373,7 @@ type WithDetailsProps<T> = {
371
373
  type WithoutDetailsProps<T> = {
372
374
  values: T[];
373
375
  };
374
- type Props$1<T extends {}> = BaseProps<T> & (WithoutPaginationProps | PaginationProps | TopPaginationProps) & (WithDetailsProps<T> | WithoutDetailsProps<T>);
376
+ type Props$1<T extends {}> = BaseProps<T> & (WithoutPaginationProps | WithoutTopPaginationProps | PaginationProps | TopPaginationProps) & (WithDetailsProps<T> | WithoutDetailsProps<T>);
375
377
 
376
378
  declare const Datatable: {
377
379
  <T extends {}>({ values, columns, withHeader, withPagination, withTopPagination, ...props }: Props$1<T>): react_jsx_runtime.JSX.Element;
@@ -18,20 +18,22 @@ type BaseProps<T> = {
18
18
  };
19
19
  type WithoutPaginationProps = {
20
20
  withPagination?: false;
21
+ };
22
+ type WithoutTopPaginationProps = {
21
23
  withTopPagination?: false;
22
24
  };
23
25
  type PaginationProps = {
24
26
  withPagination: true;
27
+ totalTrad: string;
28
+ totalPerPageTrad: string;
25
29
  rowPerPage?: number;
26
- totalPerPageTrad?: string;
27
- totalTrad?: string;
28
30
  limitsPerPageArray?: number[];
29
31
  };
30
32
  type TopPaginationProps = {
31
33
  withTopPagination: true;
34
+ totalPerPageTrad: string;
35
+ totalTrad: string;
32
36
  rowPerPage?: number;
33
- totalPerPageTrad?: string;
34
- totalTrad?: string;
35
37
  limitsPerPageArray?: number[];
36
38
  };
37
39
  type WithDetailsProps<T> = {
@@ -40,5 +42,5 @@ type WithDetailsProps<T> = {
40
42
  type WithoutDetailsProps<T> = {
41
43
  values: T[];
42
44
  };
43
- export type Props<T extends {}> = BaseProps<T> & (WithoutPaginationProps | PaginationProps | TopPaginationProps) & (WithDetailsProps<T> | WithoutDetailsProps<T>);
45
+ export type Props<T extends {}> = BaseProps<T> & (WithoutPaginationProps | WithoutTopPaginationProps | PaginationProps | TopPaginationProps) & (WithDetailsProps<T> | WithoutDetailsProps<T>);
44
46
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groupeactual/ui-kit",
3
- "version": "1.1.1-beta.1",
3
+ "version": "1.1.1-beta.2",
4
4
  "type": "module",
5
5
  "description": "A simple template for a custom React component library",
6
6
  "devDependencies": {
@@ -54,7 +54,7 @@
54
54
  "notistack": "^3.0.1",
55
55
  "react": "^18.2.0",
56
56
  "react-dom": "^18.2.0",
57
- "@groupeactual/design-tokens": "1.1.1-beta.1"
57
+ "@groupeactual/design-tokens": "1.1.1-beta.2"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "react": "^18.2.0",
@@ -23,22 +23,25 @@ type BaseProps<T> = {
23
23
 
24
24
  type WithoutPaginationProps = {
25
25
  withPagination?: false;
26
+ };
27
+
28
+ type WithoutTopPaginationProps = {
26
29
  withTopPagination?: false;
27
30
  };
28
31
 
29
32
  type PaginationProps = {
30
33
  withPagination: true;
34
+ totalTrad: string;
35
+ totalPerPageTrad: string;
31
36
  rowPerPage?: number;
32
- totalPerPageTrad?: string;
33
- totalTrad?: string;
34
37
  limitsPerPageArray?: number[];
35
38
  };
36
39
 
37
40
  type TopPaginationProps = {
38
41
  withTopPagination: true;
42
+ totalPerPageTrad: string;
43
+ totalTrad: string;
39
44
  rowPerPage?: number;
40
- totalPerPageTrad?: string;
41
- totalTrad?: string;
42
45
  limitsPerPageArray?: number[];
43
46
  };
44
47
 
@@ -51,5 +54,10 @@ type WithoutDetailsProps<T> = {
51
54
  };
52
55
 
53
56
  export type Props<T extends {}> = BaseProps<T> &
54
- (WithoutPaginationProps | PaginationProps | TopPaginationProps) &
57
+ (
58
+ | WithoutPaginationProps
59
+ | WithoutTopPaginationProps
60
+ | PaginationProps
61
+ | TopPaginationProps
62
+ ) &
55
63
  (WithDetailsProps<T> | WithoutDetailsProps<T>);