labsense-ui-kit 1.2.57 → 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.
@@ -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();
@@ -5922,15 +5923,21 @@ var Badge = function Badge(_ref8) {
5922
5923
  "$justifyContent": 'center',
5923
5924
  "$width": 'fit-content',
5924
5925
  "$gap": '4px',
5925
- "$position": 'relative'
5926
- }, tooltipText && icon && React.createElement(TooltipWrapper, {
5927
- onMouseEnter: handleMouseEnter,
5928
- onMouseLeave: handleMouseLeave
5929
- }, React.createElement(Icon, {
5926
+ "$position": 'relative',
5927
+ onMouseEnter: tooltipText && icon ? handleMouseEnter : undefined,
5928
+ onMouseLeave: tooltipText && icon ? handleMouseLeave : undefined
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, {
5930
5936
  icon: icon.icon,
5931
5937
  size: icon.size,
5932
5938
  weight: icon.weight,
5933
- color: icon.color || themeColors.vms.text.medium
5939
+ color: icon.color || themeColors.vms.text.medium,
5940
+ cursor: 'pointer'
5934
5941
  }), React.createElement(TooltipText, {
5935
5942
  "$bgColor": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.background,
5936
5943
  "$visible": showTooltip,