labsense-ui-kit 1.2.100 → 1.3.2
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.js +4 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -9
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6039,12 +6039,7 @@ var Badge = function Badge(_ref8) {
|
|
|
6039
6039
|
padding = _ref8$padding === void 0 ? '6px 8px' : _ref8$padding,
|
|
6040
6040
|
background = _ref8.background,
|
|
6041
6041
|
textColor = _ref8.textColor,
|
|
6042
|
-
|
|
6043
|
-
icon = _ref8$icon === void 0 ? {
|
|
6044
|
-
icon: 'Information',
|
|
6045
|
-
size: 10,
|
|
6046
|
-
weight: '0.1px'
|
|
6047
|
-
} : _ref8$icon,
|
|
6042
|
+
icon = _ref8.icon,
|
|
6048
6043
|
image = _ref8.image,
|
|
6049
6044
|
tooltipText = _ref8.tooltipText,
|
|
6050
6045
|
tooltipCSS = _ref8.tooltipCSS;
|
|
@@ -6115,15 +6110,15 @@ var Badge = function Badge(_ref8) {
|
|
|
6115
6110
|
"$width": 'fit-content',
|
|
6116
6111
|
"$gap": '4px',
|
|
6117
6112
|
"$position": 'relative',
|
|
6118
|
-
onMouseEnter: tooltipText
|
|
6119
|
-
onMouseLeave: tooltipText
|
|
6113
|
+
onMouseEnter: tooltipText ? handleMouseEnter : undefined,
|
|
6114
|
+
onMouseLeave: tooltipText ? handleMouseLeave : undefined
|
|
6120
6115
|
}, (icon || image) && React.createElement(TooltipWrapper, null, image ? React.createElement("img", {
|
|
6121
6116
|
src: image.src,
|
|
6122
6117
|
alt: image.img_alt,
|
|
6123
6118
|
width: image.width,
|
|
6124
6119
|
height: image.height,
|
|
6125
6120
|
draggable: false
|
|
6126
|
-
}) : React.createElement(Icon, {
|
|
6121
|
+
}) : icon && React.createElement(Icon, {
|
|
6127
6122
|
icon: icon.icon,
|
|
6128
6123
|
size: icon.size,
|
|
6129
6124
|
weight: icon.weight,
|