labsense-ui-kit 1.2.58 → 1.2.59
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/Badge/Badge.d.ts +6 -0
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -5854,6 +5854,7 @@ var Badge = function Badge(_ref8) {
|
|
|
5854
5854
|
size: 10,
|
|
5855
5855
|
weight: '0.1px'
|
|
5856
5856
|
} : _ref8$icon,
|
|
5857
|
+
image = _ref8.image,
|
|
5857
5858
|
tooltipText = _ref8.tooltipText,
|
|
5858
5859
|
tooltipCSS = _ref8.tooltipCSS;
|
|
5859
5860
|
var themeColors = useTheme();
|
|
@@ -5925,11 +5926,18 @@ var Badge = function Badge(_ref8) {
|
|
|
5925
5926
|
"$position": 'relative',
|
|
5926
5927
|
onMouseEnter: tooltipText && icon ? handleMouseEnter : undefined,
|
|
5927
5928
|
onMouseLeave: tooltipText && icon ? handleMouseLeave : undefined
|
|
5928
|
-
}, tooltipText && icon && React.createElement(TooltipWrapper, null, React.createElement(
|
|
5929
|
+
}, tooltipText && icon && React.createElement(TooltipWrapper, null, image ? React.createElement("img", {
|
|
5930
|
+
src: image.src,
|
|
5931
|
+
alt: image.img_alt,
|
|
5932
|
+
width: image.width,
|
|
5933
|
+
height: image.height,
|
|
5934
|
+
draggable: false
|
|
5935
|
+
}) : React.createElement(Icon, {
|
|
5929
5936
|
icon: icon.icon,
|
|
5930
5937
|
size: icon.size,
|
|
5931
5938
|
weight: icon.weight,
|
|
5932
|
-
color: icon.color || themeColors.vms.text.medium
|
|
5939
|
+
color: icon.color || themeColors.vms.text.medium,
|
|
5940
|
+
cursor: 'pointer'
|
|
5933
5941
|
}), React.createElement(TooltipText, {
|
|
5934
5942
|
"$bgColor": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.background,
|
|
5935
5943
|
"$visible": showTooltip,
|