pds-dev-kit-web-test 2.5.193 → 2.5.194
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.
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
function hoverTypeSystemUICssGenerator(_a) {
|
11
11
|
var baseSize = _a.baseSize, sizeOffset = _a.sizeOffset, positionOffset = _a.positionOffset, systemUIPosition = _a.systemUIPosition, _b = _a.distance, distance = _b === void 0 ? 8 : _b;
|
12
12
|
if (!sizeOffset || !positionOffset) {
|
13
|
-
return '';
|
13
|
+
return 'visibility: hidden;';
|
14
14
|
}
|
15
15
|
var end = positionOffset.left, bottom = positionOffset.bottom, top = positionOffset.top;
|
16
16
|
var width = sizeOffset.width, height = sizeOffset.height;
|
@@ -103,7 +103,6 @@ function BasicButtonGroup(_a) {
|
|
103
103
|
: "center_".concat(tooltipPosition)
|
104
104
|
});
|
105
105
|
var isHoveredButton = index === hoveredButtonIndex;
|
106
|
-
console.log('tooltipPositionCss', tooltipPositionCss);
|
107
106
|
return ((0, jsx_runtime_1.jsxs)(S_BasicButton, __assign({ size: size, onClick: function (e) { return onClick && onClick(e); }, onMouseDown: function (e) { return onMouseDown && onMouseDown(e); }, onPointerEnter: function () { return setHoveredButtonIndex(index); }, onPointerLeave: function () { return setHoveredButtonIndex(null); }, disabled: state === 'disabled' || buttonState === 'disabled' }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: iconName, size: size === 'small' ? 20 : 24, fillType: iconFillType, colorKey: getColorKey(buttonState, iconColorTheme) }), tooltipText &&
|
108
107
|
isHoveredButton &&
|
109
108
|
(0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_TooltipWrapper, __assign({ className: "TooltipWrapper", ref: tooltipRef, tooltipPositionCss: tooltipPositionCss, size: size }, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: tooltipText, colorOverride: "ui_cpnt_textlabel_button_tooltip", styleTheme: "caption2Regular", colorTheme: "sysTextSecondary" }) })), document.getElementById('tooltip-root'))] }), iconName + index));
|