wca-designsystem 0.0.26 → 0.0.28
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
|
@@ -13,6 +13,8 @@ const props: RelatorioCardProps = {
|
|
|
13
13
|
relatorioTitle: 'Nome do Relatório 02',
|
|
14
14
|
ultimaEdicao: 'Editado em 02 de Abril de 2024 | 16:55',
|
|
15
15
|
type: 'abrir',
|
|
16
|
+
onAbrir: () => console.log('aqui'),
|
|
17
|
+
onCriar: () => console.log('aqui'),
|
|
16
18
|
};
|
|
17
19
|
|
|
18
20
|
const Template: any = (args: RelatorioCardProps) => (
|
|
@@ -10,13 +10,19 @@ export type RelatorioCardProps = {
|
|
|
10
10
|
color?: string;
|
|
11
11
|
relatorioTitle: string;
|
|
12
12
|
ultimaEdicao: string;
|
|
13
|
+
relatorioCriarTexto?: string;
|
|
14
|
+
onCriar?: () => void;
|
|
15
|
+
onAbrir?: () => void;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
const RelatorioCard = ({
|
|
16
19
|
color,
|
|
17
20
|
relatorioTitle,
|
|
18
21
|
type,
|
|
22
|
+
relatorioCriarTexto,
|
|
19
23
|
ultimaEdicao,
|
|
24
|
+
onAbrir,
|
|
25
|
+
onCriar,
|
|
20
26
|
}: RelatorioCardProps) => {
|
|
21
27
|
return (
|
|
22
28
|
<>
|
|
@@ -24,7 +30,7 @@ const RelatorioCard = ({
|
|
|
24
30
|
<S.RelatorioCardWrapper color={color}>
|
|
25
31
|
<h2>{relatorioTitle}</h2>
|
|
26
32
|
<p>{ultimaEdicao}</p>
|
|
27
|
-
<Botao color={color} tipo="default">
|
|
33
|
+
<Botao onClick={onAbrir} color={color} tipo="default">
|
|
28
34
|
Abrir
|
|
29
35
|
</Botao>
|
|
30
36
|
</S.RelatorioCardWrapper>
|
|
@@ -40,8 +46,8 @@ const RelatorioCard = ({
|
|
|
40
46
|
</div>
|
|
41
47
|
<div className="text">
|
|
42
48
|
<h2>{relatorioTitle}</h2>
|
|
43
|
-
<p>{
|
|
44
|
-
<Botao color={color} tipo="default">
|
|
49
|
+
<p>{relatorioCriarTexto}</p>
|
|
50
|
+
<Botao onClick={onCriar} color={color} tipo="default">
|
|
45
51
|
CRIAR
|
|
46
52
|
</Botao>
|
|
47
53
|
</div>
|
|
@@ -24,6 +24,7 @@ export const RelatorioCardWrapper = styled.div<RelatorioCardType>`
|
|
|
24
24
|
color: ${theme.colors.blackSti};
|
|
25
25
|
font-weight: 400;
|
|
26
26
|
font-size: ${theme.sizes.small};
|
|
27
|
+
margin: 16px 0;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
button {
|
|
@@ -67,6 +68,7 @@ export const RelatorioCriarWrapper = styled.div<RelatorioCardType>`
|
|
|
67
68
|
color: ${theme.colors.blackSti};
|
|
68
69
|
font-weight: 400;
|
|
69
70
|
font-size: ${theme.sizes.small};
|
|
71
|
+
margin: 16px 0;
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
button {
|