@q2devel/q2-storybook 1.0.28 → 1.0.29

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,15 +3,15 @@ import { forwardRef } from 'react';
3
3
  const Tooltip = forwardRef(({ content, children, backgroundColor = 'bg-black', textColor = 'text-white', placement = 'bottom', contentClassName = '', disabled = false, lazy = true, }, ref) => {
4
4
  if (disabled)
5
5
  return _jsx(_Fragment, { children: children });
6
- return (_jsxs("span", { className: "relative group cursor-pointer", children: [children, content && (_jsx("span", { className: `absolute z-10 hidden group-hover:block
6
+ return (_jsxs("span", { className: "relative group cursor-pointer", children: [children, content && (_jsx("span", { className: `absolute z-10 hidden group-hover:block
7
7
  ${placement === 'top'
8
8
  ? 'bottom-full mb-2'
9
9
  : placement === 'bottom'
10
10
  ? 'top-full mt-2'
11
11
  : placement === 'left'
12
12
  ? 'right-full mr-2'
13
- : 'left-full ml-2'}
14
- left-1/2 -translate-x-1/2 px-3 py-2 rounded ${backgroundColor} ${textColor}
13
+ : 'left-full ml-2'}
14
+ left-1/2 -translate-x-1/2 px-3 py-2 rounded ${backgroundColor} ${textColor}
15
15
  text-xs whitespace-pre-wrap ${contentClassName}`, children: content }))] }));
16
16
  });
17
17
  Tooltip.displayName = 'Tooltip';