@groupeactual/ui-kit 1.7.2 → 1.7.3
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 +9 -9
- package/dist/es/index.d.ts +3 -1
- package/dist/es/index.js +2 -2
- package/dist/es/src/components/Datatable/datatable.interface.d.ts +1 -0
- package/dist/es/src/components/Pagination/Pagination.d.ts +2 -1
- package/package.json +2 -2
- package/src/components/Datatable/Datatable.tsx +2 -1
- package/src/components/Datatable/datatable.interface.ts +1 -0
- package/src/components/Datatable/use-pagination-props.hook.ts +6 -0
- package/src/components/Pagination/Pagination.tsx +20 -14
- package/src/components/UploadDocument/FileUploader.tsx +39 -9
package/dist/es/index.d.ts
CHANGED
|
@@ -166,13 +166,14 @@ interface Props$f {
|
|
|
166
166
|
totalString: string;
|
|
167
167
|
totalPerPageString: string;
|
|
168
168
|
totalRows: number;
|
|
169
|
+
hideTotal?: boolean;
|
|
169
170
|
limitsPerPage?: number[];
|
|
170
171
|
page?: number;
|
|
171
172
|
limit?: number;
|
|
172
173
|
setPage?: (_page: number) => void;
|
|
173
174
|
setLimit?: (_limit: number) => void;
|
|
174
175
|
}
|
|
175
|
-
declare const Pagination: ({ totalString, totalPerPageString,
|
|
176
|
+
declare const Pagination: ({ totalString, totalPerPageString, hideTotal, limitsPerPage, page, totalRows, limit, setLimit, setPage, }: Props$f) => React.JSX.Element;
|
|
176
177
|
|
|
177
178
|
interface Props$e extends Omit<ChipProps, 'suffix' | 'prefix' | 'onDelete' | 'onDeleteIcon' | 'variant'> {
|
|
178
179
|
variant: 'filled' | 'outlined' | 'status' | 'statusFilled';
|
|
@@ -404,6 +405,7 @@ type WithoutPaginationProps = {
|
|
|
404
405
|
};
|
|
405
406
|
type PaginationProps = {
|
|
406
407
|
withPagination: true;
|
|
408
|
+
hideTotal: false;
|
|
407
409
|
setPage: (_page: number) => void;
|
|
408
410
|
setLimit: (_limit: number) => void;
|
|
409
411
|
trans: PaginationTrans;
|