labsense-ui-kit 1.2.75 → 1.2.77

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.
@@ -5985,7 +5985,7 @@ var Icon = function Icon(_ref2) {
5985
5985
  };
5986
5986
 
5987
5987
  var _templateObject$3, _templateObject2$3;
5988
- var TooltipWrapper = styled.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n svg {\n cursor: pointer;\n }\n"])));
5988
+ var TooltipWrapper = styled.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
5989
5989
  var TooltipText = styled.span(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n visibility: ", ";\n opacity: ", ";\n transition: opacity 0.2s ease-in-out;\n background-color: ", ";\n color: ", ";\n border: ", ";\n border-radius: 8px;\n padding: 8px 16px;\n font-size: ", ";\n font-weight: ", ";\n max-width: 300px;\n width: max-content;\n position: fixed;\n z-index: 999;\n pointer-events: none;\n"])), function (_ref) {
5990
5990
  var $visible = _ref.$visible;
5991
5991
  return $visible ? 'visible' : 'hidden';
@@ -6098,7 +6098,7 @@ var Badge = function Badge(_ref8) {
6098
6098
  "$position": 'relative',
6099
6099
  onMouseEnter: tooltipText && icon ? handleMouseEnter : undefined,
6100
6100
  onMouseLeave: tooltipText && icon ? handleMouseLeave : undefined
6101
- }, tooltipText && icon && React.createElement(TooltipWrapper, null, image ? React.createElement("img", {
6101
+ }, (icon || image) && React.createElement(TooltipWrapper, null, image ? React.createElement("img", {
6102
6102
  src: image.src,
6103
6103
  alt: image.img_alt,
6104
6104
  width: image.width,
@@ -6109,8 +6109,8 @@ var Badge = function Badge(_ref8) {
6109
6109
  size: icon.size,
6110
6110
  weight: icon.weight,
6111
6111
  color: icon.color || themeColors.vms.text.medium,
6112
- cursor: 'pointer'
6113
- }), React.createElement(TooltipText, {
6112
+ cursor: tooltipText ? 'pointer' : 'default'
6113
+ }), tooltipText && React.createElement(TooltipText, {
6114
6114
  "$bgColor": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.background,
6115
6115
  "$visible": showTooltip,
6116
6116
  "$color": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.color,