labsense-ui-kit 1.1.56 → 1.1.57

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.
@@ -3,10 +3,7 @@ import { IconProps } from '../Icons';
3
3
  interface ITooltipProps {
4
4
  icon: IconProps;
5
5
  infoIcon?: IconProps;
6
- infoText: string;
7
- infoText2?: string;
8
- infoText3?: string;
9
- infoText4?: string;
6
+ infoText: React.ReactNode;
10
7
  tooltipCSS?: {
11
8
  background?: string;
12
9
  color?: string;
package/dist/index.js CHANGED
@@ -3648,9 +3648,6 @@ var IconTooltip = function IconTooltip(_ref7) {
3648
3648
  } : _ref7$icon,
3649
3649
  infoIcon = _ref7.infoIcon,
3650
3650
  infoText = _ref7.infoText,
3651
- infoText2 = _ref7.infoText2,
3652
- infoText3 = _ref7.infoText3,
3653
- infoText4 = _ref7.infoText4,
3654
3651
  _ref7$tooltipCSS = _ref7.tooltipCSS,
3655
3652
  tooltipCSS = _ref7$tooltipCSS === void 0 ? {
3656
3653
  background: colorVariables.accent.light_1,
@@ -3662,7 +3659,6 @@ var IconTooltip = function IconTooltip(_ref7) {
3662
3659
  fontSize: '12px',
3663
3660
  fontWeight: '400'
3664
3661
  } : _ref7$tooltipCSS;
3665
- var texts = [infoText, infoText2, infoText3, infoText4].filter(Boolean);
3666
3662
  return React__default.createElement(TooltipWrapper$1, null, React__default.createElement(Icon, Object.assign({}, icon, {
3667
3663
  onClick: function onClick() {}
3668
3664
  })), React__default.createElement(TooltipContainer, {
@@ -3672,16 +3668,7 @@ var IconTooltip = function IconTooltip(_ref7) {
3672
3668
  "$background": tooltipCSS.background,
3673
3669
  "$gap": tooltipCSS.gap,
3674
3670
  "$iconSize": icon.size || 17
3675
- }, infoIcon && React__default.createElement(Icon, Object.assign({}, infoIcon)), React__default.createElement(Container, {
3676
- "$flexDirection": 'column'
3677
- }, texts.map(function (text, i) {
3678
- return React__default.createElement(Span, {
3679
- key: i,
3680
- "$color": tooltipCSS.color,
3681
- "$fontSize": tooltipCSS.fontSize,
3682
- "$fontWeight": tooltipCSS.fontWeight
3683
- }, text, i < texts.length - 1 && React__default.createElement("br", null));
3684
- }))));
3671
+ }, infoIcon && React__default.createElement(Icon, Object.assign({}, infoIcon)), infoText));
3685
3672
  };
3686
3673
 
3687
3674
  var _templateObject$4;