wca-designsystem 1.0.112 → 1.0.117

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.112",
2
+ "version": "1.0.117",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -19,6 +19,7 @@ export type CardInicialProps = {
19
19
  acessoPermitido: boolean;
20
20
  onEntrar: () => void;
21
21
  aviso?: boolean;
22
+ disabledBtn?: boolean;
22
23
  avisoInfo?: avisoInfoProps;
23
24
  };
24
25
  const CardInicial = ({
@@ -30,6 +31,7 @@ const CardInicial = ({
30
31
  color,
31
32
  children,
32
33
  avisoInfo,
34
+ disabledBtn = false,
33
35
  aviso = false,
34
36
  }: CardInicialProps) => {
35
37
  return (
@@ -61,7 +63,7 @@ const CardInicial = ({
61
63
  <Botao
62
64
  tipo="default"
63
65
  onClick={() => onEntrar()}
64
- disabled={!acessoPermitido}
66
+ disabled={!acessoPermitido || disabledBtn}
65
67
  color={color}
66
68
  children={children}
67
69
  />
@@ -5,7 +5,6 @@ export const CardInicialWrapper = styled.div`
5
5
  position: relative;
6
6
  width: 210px;
7
7
  height: 100%;
8
- height: 180px;
9
8
  border-radius: 8px;
10
9
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
11
10
  background-color: ${theme.colors.white};