wca-designsystem 1.0.24 → 1.0.25

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.24",
2
+ "version": "1.0.25",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -17,6 +17,8 @@ interface MosaicoCriticaProps {
17
17
  absorcao?: string;
18
18
  critica?: string;
19
19
  desdobramento?: string;
20
+ disabledAlocar?: boolean;
21
+ disabledRetirar?: boolean;
20
22
  onClickAlocar: () => void;
21
23
  onClickRetirar: () => void;
22
24
  }
@@ -30,6 +32,8 @@ const MosaicoCritica = ({
30
32
  critica,
31
33
  absorcao,
32
34
  desdobramento,
35
+ disabledAlocar,
36
+ disabledRetirar,
33
37
  onClickAlocar,
34
38
  onClickRetirar,
35
39
  color = theme.colors.purpleSec,
@@ -85,8 +89,15 @@ const MosaicoCritica = ({
85
89
  tipo="table"
86
90
  color={color}
87
91
  onClick={onClickAlocar}
92
+ disabled={disabledAlocar}
88
93
  >
89
- <Icone svg={alocar} fill={color} width={14} height={14} />
94
+ <Icone
95
+ disabled={disabledAlocar}
96
+ svg={alocar}
97
+ fill={color}
98
+ width={14}
99
+ height={14}
100
+ />
90
101
  </IconeBotao>
91
102
 
92
103
  <IconeBotao
@@ -94,8 +105,15 @@ const MosaicoCritica = ({
94
105
  tipo="table"
95
106
  color={color}
96
107
  onClick={onClickRetirar}
108
+ disabled={disabledRetirar}
97
109
  >
98
- <Icone svg={retirar} fill={color} width={14} height={14} />
110
+ <Icone
111
+ disabled={disabledRetirar}
112
+ svg={retirar}
113
+ fill={color}
114
+ width={14}
115
+ height={14}
116
+ />
99
117
  </IconeBotao>
100
118
  </Flex>
101
119
  </Box>