wca-designsystem 0.0.68 → 0.0.70

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.68",
2
+ "version": "0.0.70",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -60,6 +60,7 @@ export type CustomTableProps<
60
60
  pageSize: number;
61
61
  };
62
62
  quantidadeRegistros?: number | undefined;
63
+ qtdRegistrosPagina: number;
63
64
  tamanhoPaginacao?: number | undefined;
64
65
  fetchMoreData?: (() => void) | undefined;
65
66
  hasInfinitScrool?: boolean;
@@ -69,6 +70,7 @@ const Tabela = <T extends { id: string | number; children?: Array<T> }>({
69
70
  data,
70
71
  columns,
71
72
  setPagination,
73
+ qtdRegistrosPagina,
72
74
  ordenarPor,
73
75
  acoesChildren,
74
76
  color,
@@ -206,6 +208,7 @@ const Tabela = <T extends { id: string | number; children?: Array<T> }>({
206
208
  tabelaPaginacao={tabelaPaginacao}
207
209
  quantidadeRegistros={quantidadeRegistros}
208
210
  tamanhoPaginacao={tamanhoPaginacao}
211
+ qtdRegistrosPagina={qtdRegistrosPagina}
209
212
  />
210
213
  )}
211
214
  </S.TableWrapper>
@@ -12,6 +12,7 @@ export type PaginacaoProps = {
12
12
  tamanhoPaginacao?: number;
13
13
  color?: string;
14
14
  quantidadeRegistros?: number;
15
+ qtdRegistrosPagina?: number;
15
16
  setPagination: React.Dispatch<React.SetStateAction<PaginationProps>>;
16
17
  tabelaPaginacao: {
17
18
  pageIndex: number;
@@ -25,6 +26,7 @@ const Paginacao = ({
25
26
  tamanhoPaginacao,
26
27
  setPagination,
27
28
  quantidadeRegistros,
29
+ qtdRegistrosPagina,
28
30
  }: PaginacaoProps) => {
29
31
  function nextPage() {
30
32
  if (tabelaPaginacao.pageIndex + 1 > tabelaPaginacao.pageSize) {
@@ -64,7 +66,7 @@ const Paginacao = ({
64
66
  <S.PaginacaoWrapper color={color}>
65
67
  <div className="pagination-header">
66
68
  <p>
67
- Exibindo {tabelaPaginacao.pageIndex} de {quantidadeRegistros}
69
+ Exibindo {qtdRegistrosPagina} de {quantidadeRegistros}
68
70
  </p>
69
71
  <div className="select-wrapper">
70
72
  <SelectCustomizado