sbwb-ds 2.2.2 → 2.3.0
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/dist/index.d.ts +1 -1
- package/dist/sbwb-ds.js +12967 -13114
- package/dist/sbwb-ds.umd.cjs +1907 -2024
- package/dist/src/presentation/components/atoms/ActionButton/index.d.ts +3 -7
- package/dist/src/presentation/components/atoms/ActionButton/styles.d.ts +15 -4
- package/dist/src/presentation/components/atoms/ProgresBar/index.d.ts +11 -0
- package/dist/src/presentation/components/atoms/ProgresBar/styles.d.ts +14 -0
- package/dist/src/presentation/components/atoms/Tag/index.d.ts +3 -1
- package/package.json +1 -1
- package/src/presentation/components/atoms/ActionButton/ActionButton.stories.tsx +8 -8
- package/src/presentation/components/atoms/ActionButton/index.tsx +82 -75
- package/src/presentation/components/atoms/ActionButton/styles.ts +95 -192
- package/src/presentation/components/atoms/ProgresBar/Progressbar.stories.tsx +37 -0
- package/src/presentation/components/atoms/ProgresBar/index.tsx +63 -0
- package/src/presentation/components/atoms/ProgresBar/styles.ts +91 -0
- package/src/presentation/components/atoms/{Progressbar → ProgressbarDepreciated}/Progressbar.stories.tsx +2 -1
- package/src/presentation/components/atoms/Tag/index.tsx +33 -26
- package/src/presentation/components/atoms/Tag/styles.ts +1 -0
- package/src/presentation/components/atoms/Tooltip/index.tsx +24 -19
- package/src/presentation/components/molecules/DataTable/Components/ActionButtonCell/index.tsx +2 -2
- /package/dist/src/presentation/components/atoms/{Progressbar → ProgressbarDepreciated}/index.d.ts +0 -0
- /package/dist/src/presentation/components/atoms/{Progressbar → ProgressbarDepreciated}/styles.d.ts +0 -0
- /package/src/presentation/components/atoms/{Progressbar → ProgressbarDepreciated}/index.tsx +0 -0
- /package/src/presentation/components/atoms/{Progressbar → ProgressbarDepreciated}/styles.ts +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useEffect } from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom'; // Importação adicionada
|
|
2
3
|
import * as C from './styles';
|
|
3
4
|
import { Icons } from '../../../../main/helpers/functions/icons';
|
|
4
5
|
|
|
@@ -122,7 +123,7 @@ const Tooltip = ({
|
|
|
122
123
|
break;
|
|
123
124
|
}
|
|
124
125
|
|
|
125
|
-
Object.assign(tooltipRef.current.style, newStyle
|
|
126
|
+
Object.assign(tooltipRef.current.style, newStyle);
|
|
126
127
|
}
|
|
127
128
|
};
|
|
128
129
|
|
|
@@ -183,6 +184,27 @@ const Tooltip = ({
|
|
|
183
184
|
return <>{children}</>;
|
|
184
185
|
}
|
|
185
186
|
|
|
187
|
+
const tooltipContent = (
|
|
188
|
+
<C.TooltipContent
|
|
189
|
+
ref={tooltipRef}
|
|
190
|
+
className={`tooltip tooltip-${position}`}
|
|
191
|
+
size={size}
|
|
192
|
+
width={width}
|
|
193
|
+
height={height}
|
|
194
|
+
maxWidth={maxWidth}
|
|
195
|
+
color={color}
|
|
196
|
+
arrow={arrow}
|
|
197
|
+
style={customStyle}
|
|
198
|
+
isVisible={isAlwaysVisible}
|
|
199
|
+
errorTooltip={errorTooltip}
|
|
200
|
+
position={position}
|
|
201
|
+
tooltipMargin={tooltipMargin}
|
|
202
|
+
>
|
|
203
|
+
{errorTooltip && <IconFillAnt />}
|
|
204
|
+
<span>{label}</span>
|
|
205
|
+
</C.TooltipContent>
|
|
206
|
+
);
|
|
207
|
+
|
|
186
208
|
return (
|
|
187
209
|
<C.TooltipWrapper
|
|
188
210
|
id={id}
|
|
@@ -192,24 +214,7 @@ const Tooltip = ({
|
|
|
192
214
|
wrapperStyles={wrapperStyles}
|
|
193
215
|
>
|
|
194
216
|
{children}
|
|
195
|
-
|
|
196
|
-
ref={tooltipRef}
|
|
197
|
-
className={`tooltip tooltip-${position}`}
|
|
198
|
-
size={size}
|
|
199
|
-
width={width}
|
|
200
|
-
height={height}
|
|
201
|
-
maxWidth={maxWidth}
|
|
202
|
-
color={color}
|
|
203
|
-
arrow={arrow}
|
|
204
|
-
style={customStyle}
|
|
205
|
-
isVisible={isAlwaysVisible}
|
|
206
|
-
errorTooltip={errorTooltip}
|
|
207
|
-
position={position}
|
|
208
|
-
tooltipMargin={tooltipMargin}
|
|
209
|
-
>
|
|
210
|
-
{errorTooltip && <IconFillAnt />}
|
|
211
|
-
<span>{label}</span>
|
|
212
|
-
</C.TooltipContent>
|
|
217
|
+
{ReactDOM.createPortal(tooltipContent, document.body)}
|
|
213
218
|
</C.TooltipWrapper>
|
|
214
219
|
);
|
|
215
220
|
};
|
package/src/presentation/components/molecules/DataTable/Components/ActionButtonCell/index.tsx
CHANGED
|
@@ -86,8 +86,8 @@ const ActionButtonCell = ({
|
|
|
86
86
|
size={size}
|
|
87
87
|
isSelected={button.isSelected}
|
|
88
88
|
data-icon-name={button.iconName}
|
|
89
|
-
selectVariant={true}
|
|
90
|
-
selectVariantLabel={button.selectVariantLabel || `Action ${index + 3}`}
|
|
89
|
+
// selectVariant={true}
|
|
90
|
+
// selectVariantLabel={button.selectVariantLabel || `Action ${index + 3}`}
|
|
91
91
|
/>
|
|
92
92
|
),
|
|
93
93
|
}));
|
/package/dist/src/presentation/components/atoms/{Progressbar → ProgressbarDepreciated}/index.d.ts
RENAMED
|
File without changes
|
/package/dist/src/presentation/components/atoms/{Progressbar → ProgressbarDepreciated}/styles.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|