wca-designsystem 1.0.99 → 1.0.102
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
|
@@ -10,14 +10,14 @@ export const CardDestaqueWrapper = styled.div`
|
|
|
10
10
|
`}
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
|
-
export const CardDestaqueCabecalho = styled.div<{ cor: string | undefined }>`
|
|
14
|
-
${({ theme, cor }) => css`
|
|
13
|
+
export const CardDestaqueCabecalho = styled.div<{ $cor: string | undefined }>`
|
|
14
|
+
${({ theme, $cor }) => css`
|
|
15
15
|
display: flex;
|
|
16
16
|
justify-content: space-between;
|
|
17
17
|
align-items: center;
|
|
18
18
|
|
|
19
19
|
h3 {
|
|
20
|
-
color: ${cor || theme.colors.blue};
|
|
20
|
+
color: ${$cor || theme.colors.blue};
|
|
21
21
|
font-weight: bold;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from 'react'
|
|
2
|
-
import { ActionIcon,
|
|
2
|
+
import { ActionIcon, Stepper, StepperProps, Tooltip } from '@mantine/core'
|
|
3
3
|
import * as S from './styles'
|
|
4
4
|
import Icone from '../../atomos/Icone'
|
|
5
5
|
import proximo from '../../../assets/imagens/icons/NavDireita.svg'
|
|
@@ -16,13 +16,6 @@ export type PassoProps = {
|
|
|
16
16
|
subTitulo: string
|
|
17
17
|
id: number
|
|
18
18
|
desabilitado?: boolean
|
|
19
|
-
configurado?: boolean
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface HoverPopUpProps {
|
|
23
|
-
texto: string;
|
|
24
|
-
children: React.ReactNode;
|
|
25
|
-
disabled?: boolean;
|
|
26
19
|
}
|
|
27
20
|
|
|
28
21
|
export interface PassosProps extends Omit<StepperProps, 'children' | 'active'> {
|
|
@@ -55,7 +48,7 @@ function Passos({
|
|
|
55
48
|
onClickSteep,
|
|
56
49
|
passoDisabled,
|
|
57
50
|
moreButtons,
|
|
58
|
-
color = theme.colors.
|
|
51
|
+
color = theme.colors.blue,
|
|
59
52
|
...props
|
|
60
53
|
}: PassosProps) {
|
|
61
54
|
const carrouselRef = useRef<HTMLDivElement>(null)
|
|
@@ -67,18 +60,20 @@ function Passos({
|
|
|
67
60
|
}, []); */
|
|
68
61
|
|
|
69
62
|
const steepClasseChanger = useCallback(
|
|
70
|
-
(passoId: number, passoDesabilitado: boolean
|
|
63
|
+
(passoId: number, passoDesabilitado: boolean) => {
|
|
71
64
|
const classes = {
|
|
72
65
|
desabilitado: 'desabilitado',
|
|
73
66
|
ativo: 'ativo',
|
|
74
|
-
configurado: 'configurado',
|
|
75
67
|
completo: 'completo',
|
|
76
68
|
}
|
|
77
69
|
|
|
78
|
-
if (passoId === passo)
|
|
79
|
-
|
|
80
|
-
|
|
70
|
+
if (passoId === passo) {
|
|
71
|
+
return classes.ativo
|
|
72
|
+
}
|
|
81
73
|
|
|
74
|
+
if (passoDesabilitado) {
|
|
75
|
+
return classes.desabilitado
|
|
76
|
+
}
|
|
82
77
|
return classes.completo
|
|
83
78
|
},
|
|
84
79
|
[passo]
|
|
@@ -127,14 +122,13 @@ function Passos({
|
|
|
127
122
|
disabled={passoMap.desabilitado}
|
|
128
123
|
className={steepClasseChanger(
|
|
129
124
|
passoMap.id,
|
|
130
|
-
passoMap
|
|
131
|
-
passoMap.configurado!
|
|
125
|
+
passoMap?.desabilitado!
|
|
132
126
|
)}
|
|
133
127
|
label={
|
|
134
|
-
<HoverPopUp
|
|
135
|
-
texto={passoMap.titulo}
|
|
128
|
+
<HoverPopUp
|
|
129
|
+
texto={passoMap.titulo}
|
|
136
130
|
key={passoMap.id}
|
|
137
|
-
|
|
131
|
+
disabled={passo === passoMap.id}
|
|
138
132
|
>
|
|
139
133
|
<h2
|
|
140
134
|
className={passo === passoMap.id ? 'label-fixo' : ''}
|
|
@@ -108,10 +108,7 @@ export const BotaoEsquerda = styled.div`
|
|
|
108
108
|
`}
|
|
109
109
|
`
|
|
110
110
|
|
|
111
|
-
const
|
|
112
|
-
const COLOR_PULADO = "#FFD666";
|
|
113
|
-
|
|
114
|
-
export const PassoSteep = styled(Stepper) <PassosWrapperProps>`
|
|
111
|
+
export const PassoSteep = styled(Stepper)<PassosWrapperProps>`
|
|
115
112
|
${({ theme, color }) => css`
|
|
116
113
|
padding: 0;
|
|
117
114
|
margin-left: -55px;
|
|
@@ -181,35 +178,26 @@ export const PassoSteep = styled(Stepper) <PassosWrapperProps>`
|
|
|
181
178
|
font-size: ${theme.sizes.xSmall};
|
|
182
179
|
}
|
|
183
180
|
|
|
184
|
-
.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.completo {
|
|
192
|
-
.mantine-Stepper-stepIcon {
|
|
193
|
-
background-color: ${theme.colors.yellowWca};
|
|
194
|
-
color: white;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.desabilitado {
|
|
199
|
-
cursor: not-allowed;
|
|
200
|
-
.mantine-Stepper-stepIcon {
|
|
201
|
-
background-color: ${theme.colors.gray['500']};
|
|
202
|
-
color: white;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
181
|
+
.ativo {
|
|
182
|
+
.mantine-Stepper-stepIcon {
|
|
183
|
+
background-color: ${color};
|
|
184
|
+
color: ${theme.colors.white};
|
|
185
|
+
}
|
|
186
|
+
}
|
|
205
187
|
|
|
206
|
-
.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
188
|
+
.desabilitado {
|
|
189
|
+
cursor: not-allowed;
|
|
190
|
+
.mantine-Stepper-stepIcon {
|
|
191
|
+
background-color: ${theme.colors.gray['500']};
|
|
192
|
+
}
|
|
193
|
+
}
|
|
212
194
|
|
|
195
|
+
.completo {
|
|
196
|
+
.mantine-Stepper-stepIcon {
|
|
197
|
+
background-color: ${theme.colors.yellowWca};
|
|
198
|
+
color: ${theme.colors.white};
|
|
199
|
+
}
|
|
200
|
+
}
|
|
213
201
|
`}
|
|
214
202
|
`
|
|
215
203
|
|