wca-designsystem 1.0.74 → 1.0.76

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": "1.0.74",
2
+ "version": "1.0.76",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -48,7 +48,7 @@ const Paginacao = ({
48
48
  }
49
49
 
50
50
  return (
51
- <S.PaginacaoWrapper>
51
+ <S.PaginacaoWrapper color={color}>
52
52
  <div className="pagination-header">
53
53
  <p>
54
54
  Exibindo{' '}
@@ -5,9 +5,9 @@ type ColorsProp = {
5
5
  color?: string
6
6
  }
7
7
 
8
- export const PaginacaoWrapper = styled.div`
9
- ${({ theme }) => css`
10
- color: ${theme.colors.blue};
8
+ export const PaginacaoWrapper = styled.div<ColorsProp>`
9
+ ${({ theme, color }) => css`
10
+ color: ${color};
11
11
  font-size: ${theme.sizes.small};
12
12
  font-weight: bold;
13
13
  text-align: center;
@@ -60,11 +60,11 @@ const generateData = () => {
60
60
  }
61
61
 
62
62
  const footer = {
63
- id: 0,
64
- name: 455,
65
- price: 2,
63
+ name: 'nome',
64
+ price: 'preço',
66
65
  exemplo: 4689815.609999999,
67
66
  }
67
+
68
68
  const data = generateData()
69
69
  const columns: any = [
70
70
  { key: 'id', header: 'ID', minWidth: '50px' },
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
- import * as S from './styles';
3
- import { Column } from '.'; // Ajuste o caminho conforme necessário
1
+ import React from 'react'
2
+ import * as S from './styles'
3
+ import { Column } from '.' // Ajuste o caminho conforme necessário
4
4
 
5
5
  type FooterTabelaProps<T> = {
6
- footer: Partial<Record<keyof T, any>>;
7
- columns: Column<T>[];
8
- tdMinWidth: string;
9
- color?: string;
10
- };
6
+ footer: Partial<Record<keyof T, any>>
7
+ columns: Column<T>[]
8
+ tdMinWidth: string
9
+ color?: string
10
+ }
11
11
 
12
12
  const FooterTabela = <T,>({
13
13
  footer,
@@ -30,7 +30,7 @@ const FooterTabela = <T,>({
30
30
  ))}
31
31
  </S.FooterRow>
32
32
  </tfoot>
33
- );
34
- };
33
+ )
34
+ }
35
35
 
36
- export default FooterTabela;
36
+ export default FooterTabela
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useMemo, useRef, useState } from 'react'
1
+ import React, { useEffect, useRef, useState } from 'react'
2
2
  import BodyTable from './body'
3
3
  import HeaderTabela from './header'
4
4
  import Paginacao from './pagination'
@@ -251,7 +251,7 @@ const Tabela = <
251
251
  <FooterTabela
252
252
  color={color}
253
253
  footer={footer}
254
- columns={columns}
254
+ columns={columnsToShow}
255
255
  tdMinWidth={tdMinWidth}
256
256
  />
257
257
  )}