wca-designsystem 1.0.14 → 1.0.16

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.14",
2
+ "version": "1.0.16",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -33,48 +33,59 @@ const CardInicial = ({
33
33
  aviso = false,
34
34
  }: CardInicialProps) => {
35
35
  return (
36
- <S.CardInicialWrapper>
36
+ <S.CardInicialWrapper >
37
37
  <S.CardInicialHeader
38
38
  data-testid="card-header"
39
39
  style={{
40
40
  background: acessoPermitido ? color : theme.colors.gray['500'],
41
41
  }}
42
42
  >
43
- <Icone width={72} height={72} svg={icone} fill={theme.colors.white} />
43
+
44
+ <Icone width={45} height={45} svg={icone} fill={theme.colors.white} />
45
+
44
46
  </S.CardInicialHeader>
45
47
 
46
48
  <S.CardInicialBody>
49
+
47
50
  <h2
48
51
  style={{ color: acessoPermitido ? color : theme.colors.gray['300'] }}
49
52
  >
50
53
  {titulo}
51
54
  </h2>
52
- <p>{descricao}</p>
53
- </S.CardInicialBody>
54
- <S.CardInicialFooter>
55
- <Botao
56
- tipo="default"
57
- onClick={() => onEntrar()}
58
- disabled={!acessoPermitido}
59
- color={color}
60
- children={children}
61
- />
62
- </S.CardInicialFooter>
63
55
 
64
- {aviso && (
65
- <S.CardInicialWarning>
66
- <Icone
67
- width={20}
68
- height={20}
69
- svg={avisoInfo?.icone ?? ''}
70
- fill={avisoInfo?.corIcone}
56
+ <p>
57
+ {descricao}
58
+ </p>
59
+
60
+ <S.CardInicialFooter>
61
+ <Botao
62
+ tipo="default"
63
+ onClick={() => onEntrar()}
64
+ disabled={!acessoPermitido}
65
+ color={color}
66
+ children={children}
71
67
  />
72
- <S.CardInicialWarningText>
73
- {avisoInfo?.mensagem}
74
- </S.CardInicialWarningText>
75
- </S.CardInicialWarning>
76
- )}
77
- </S.CardInicialWrapper>
68
+ </S.CardInicialFooter>
69
+ </S.CardInicialBody>
70
+
71
+ <S.CardInicialWarning>
72
+ {
73
+ aviso && (
74
+ <>
75
+ <Icone
76
+ width={20}
77
+ height={20}
78
+ svg={avisoInfo?.icone ?? ''}
79
+ fill={avisoInfo?.corIcone}
80
+ />
81
+ <S.CardInicialWarningText>
82
+ {avisoInfo?.mensagem}
83
+ </S.CardInicialWarningText>
84
+ </>
85
+ )
86
+ }
87
+ </S.CardInicialWarning>
88
+ </S.CardInicialWrapper >
78
89
  );
79
90
  };
80
91
  export default CardInicial;
@@ -2,8 +2,10 @@ import styled, { css } from 'styled-components';
2
2
 
3
3
  export const CardInicialWrapper = styled.div`
4
4
  ${({ theme }) => css`
5
- width: 320px;
6
- height: min-content;
5
+ position: relative;
6
+ width: auto;
7
+ max-width: 250px;
8
+ height: 230px;
7
9
  border-radius: 8px;
8
10
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
9
11
  background-color: ${theme.colors.white};
@@ -12,30 +14,38 @@ export const CardInicialWrapper = styled.div`
12
14
 
13
15
  export const CardInicialHeader = styled.div`
14
16
  ${() => css`
15
- width: 320px;
16
- height: 136px;
17
+ width: auto;
18
+ max-width: 320px;
19
+ padding: 10px 0;
17
20
  border-radius: 8px 8px 0 0;
18
21
  display: flex;
19
22
  align-items: center;
20
23
  justify-content: center;
21
24
  `}
25
+
22
26
  `;
23
27
 
24
28
  export const CardInicialBody = styled.div`
25
29
  ${({ theme }) => css`
30
+ margin-top: 10px;
31
+ display: flex;
32
+ flex-direction: column;
33
+ gap: 8px;
26
34
  text-align: center;
27
35
  background-color: ${theme.colors.white};
28
- padding: 25px 16px;
29
-
36
+ padding: 0 12px;
37
+
30
38
  h2 {
31
39
  font-size: ${theme.sizes.large};
32
40
  font-weight: 700;
41
+ margin: 0;
33
42
  }
34
43
 
35
44
  p {
36
45
  font-size: ${theme.sizes.small};
37
46
  font-weight: 300;
38
47
  color: ${theme.colors.blackSti};
48
+ margin: 0;
39
49
  }
40
50
  `}
41
51
  `;
@@ -44,7 +54,6 @@ export const CardInicialFooter = styled.div`
44
54
  ${({ theme }) => css`
45
55
  text-align: center;
46
56
  border-radius: 0 8px 8px;
47
- padding-bottom: 24px;
48
57
  background-color: ${theme.colors.white};
49
58
 
50
59
  button {
@@ -55,11 +64,17 @@ export const CardInicialFooter = styled.div`
55
64
 
56
65
  export const CardInicialWarning = styled.div`
57
66
  ${() => css`
67
+ position: absolute;
68
+ bottom: 0;
69
+ left: 0;
70
+ width: 100%;
58
71
  display: flex;
59
72
  flex-direction: column;
60
73
  align-items: center;
61
74
  justify-content: center;
62
- padding-bottom: 20px;
75
+ padding: 0px;
76
+ margin-top: auto;
77
+ padding: 4px 0;
63
78
  `}
64
79
  `;
65
80
 
@@ -68,4 +83,4 @@ export const CardInicialWarningText = styled.span`
68
83
  font-size: ${theme.sizes.xSmall};
69
84
  color: ${theme.colors.gray[700]};
70
85
  `}
71
- `;
86
+ `;