wca-designsystem 0.0.78 → 0.0.80
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 +1 -1
- package/src/components/atomos/NavbarTituloHeader/styles.ts +3 -1
- package/src/components/molecules/Passos/index.tsx +4 -1
- package/src/components/organismos/Tabela/body.tsx +5 -4
- package/src/components/organismos/Tabela/index.tsx +3 -1
- package/src/components/organismos/Tabela/styles.ts +2 -1
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ export interface PassosProps extends Omit<StepperProps, 'children' | 'active'> {
|
|
|
24
24
|
onClickSteep?: (id: number) => void;
|
|
25
25
|
ciclo: string;
|
|
26
26
|
color?: string;
|
|
27
|
+
nextSteepButtonLabel?: string;
|
|
27
28
|
moreButtons?: Array<{
|
|
28
29
|
label: string;
|
|
29
30
|
onClick: () => void;
|
|
@@ -38,6 +39,7 @@ function Passos({
|
|
|
38
39
|
passo,
|
|
39
40
|
setPasso,
|
|
40
41
|
ciclo,
|
|
42
|
+
nextSteepButtonLabel,
|
|
41
43
|
onClickSteep,
|
|
42
44
|
moreButtons,
|
|
43
45
|
color = theme.colors.blue,
|
|
@@ -90,6 +92,7 @@ function Passos({
|
|
|
90
92
|
<Stepper.Step
|
|
91
93
|
key={index}
|
|
92
94
|
completedIcon={<>{passoMap.id + 1}</>}
|
|
95
|
+
onClick={() => onClickSteep!(passoMap.id)}
|
|
93
96
|
disabled={passoMap.desabilitado}
|
|
94
97
|
className={steepClasseChanger(
|
|
95
98
|
passoMap.id,
|
|
@@ -189,7 +192,7 @@ function Passos({
|
|
|
189
192
|
onClick={() => setPasso(passo + 1)}
|
|
190
193
|
tipo="default"
|
|
191
194
|
>
|
|
192
|
-
|
|
195
|
+
{nextSteepButtonLabel}
|
|
193
196
|
</Botao>
|
|
194
197
|
</div>
|
|
195
198
|
</S.PassoInfos>
|
|
@@ -7,7 +7,7 @@ import SetaBaixo from '../../../assets/imagens/icons/SetaAbaixo.svg';
|
|
|
7
7
|
import Icone from '../../atomos/Icone';
|
|
8
8
|
|
|
9
9
|
export interface BodyTableProps<
|
|
10
|
-
T extends { id: string | number; children?: Array<T
|
|
10
|
+
T extends { id: string | number; children?: Array<T>; disabled?: boolean }
|
|
11
11
|
> {
|
|
12
12
|
data: Array<T>;
|
|
13
13
|
columns: Column<T>[];
|
|
@@ -22,9 +22,9 @@ export interface BodyTableProps<
|
|
|
22
22
|
hasMoreData?: boolean;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function BodyTable<
|
|
26
|
-
|
|
27
|
-
) {
|
|
25
|
+
function BodyTable<
|
|
26
|
+
T extends { id: string | number; children?: Array<T>; disabled?: boolean }
|
|
27
|
+
>(props: BodyTableProps<T>) {
|
|
28
28
|
const {
|
|
29
29
|
data,
|
|
30
30
|
columns,
|
|
@@ -123,6 +123,7 @@ function BodyTable<T extends { id: string | number; children?: Array<T> }>(
|
|
|
123
123
|
size="md"
|
|
124
124
|
color={color}
|
|
125
125
|
type="checkbox"
|
|
126
|
+
disabled={item.disabled}
|
|
126
127
|
checked={rowSelection?.some(
|
|
127
128
|
selected => selected.id === item.id
|
|
128
129
|
)}
|
|
@@ -66,7 +66,9 @@ export type CustomTableProps<
|
|
|
66
66
|
hasInfinitScrool?: boolean;
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
const Tabela = <
|
|
69
|
+
const Tabela = <
|
|
70
|
+
T extends { id: string | number; children?: Array<T>; disabled?: boolean }
|
|
71
|
+
>({
|
|
70
72
|
data,
|
|
71
73
|
columns,
|
|
72
74
|
setPagination,
|
|
@@ -51,7 +51,7 @@ export const StyledTable = styled.table`
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
th.select {
|
|
54
|
-
|
|
54
|
+
border: none;
|
|
55
55
|
padding: 0;
|
|
56
56
|
}
|
|
57
57
|
`}
|
|
@@ -108,6 +108,7 @@ export const TabelaBody = styled.tbody<ColorsProp>`
|
|
|
108
108
|
.select {
|
|
109
109
|
background-color: ${color};
|
|
110
110
|
position: relative;
|
|
111
|
+
border: none;
|
|
111
112
|
width: 50px;
|
|
112
113
|
min-height: 53px;
|
|
113
114
|
background-color: ${color};
|