wca-designsystem 1.0.85 → 1.0.87

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.85",
2
+ "version": "1.0.87",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -19,7 +19,7 @@ export const BarraDeProgressoContainer = styled(Progress.Root)<
19
19
 
20
20
  .mantine-Progress-section .text {
21
21
  position: absolute;
22
- left: 25px;
22
+ right: 0;
23
23
  width: 100%;
24
24
  z-index: 5;
25
25
  font-weight: 600;
@@ -16,8 +16,13 @@ const HoverPopUp = ({
16
16
  children,
17
17
  className,
18
18
  openDelay = 200,
19
+ disabled = false,
19
20
  closeDelay = 400,
20
21
  }: HoverPopUpProps) => {
22
+ if (disabled) {
23
+ return children;
24
+ }
25
+
21
26
  const InfoTextoRef = forwardRef<
22
27
  HTMLDivElement,
23
28
  React.ComponentPropsWithoutRef<'div'>
@@ -30,19 +35,14 @@ const HoverPopUp = ({
30
35
  return (
31
36
  <Tooltip
32
37
  label={texto}
33
- withArrow
34
- multiline
35
- openDelay={openDelay}
36
- closeDelay={closeDelay}
37
- transitionProps={{ transition: 'fade', duration: 150 }}
38
38
  style={{ zIndex: 9999 }}
39
39
  styles={{
40
40
  tooltip: {
41
- backgroundColor: '#ffffff',
42
- color: '#000000',
41
+ backgroundColor: '#ffffff',
42
+ color: '#000000',
43
43
  padding: '8px 12px',
44
44
  borderRadius: 8,
45
- boxShadow: '0 8px 24px rgba(0,0,0,0.08)',
45
+ boxShadow: '0 8px 24px rgba(0,0,0,0.08)',
46
46
  border: '1px solid rgba(0,0,0,0.06)',
47
47
  textAlign: 'center',
48
48
  fontSize: 14,
@@ -125,7 +125,11 @@ function Passos({
125
125
  passoMap?.desabilitado!
126
126
  )}
127
127
  label={
128
- <HoverPopUp texto={passoMap.titulo} key={passoMap.id}>
128
+ <HoverPopUp
129
+ texto={passoMap.titulo}
130
+ key={passoMap.id}
131
+ disabled={passo === passoMap.id}
132
+ >
129
133
  <h2
130
134
  className={passo === passoMap.id ? 'label-fixo' : ''}
131
135
  style={{