next-helios-fe 1.8.96 → 1.8.97

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.8.96",
3
+ "version": "1.8.97",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,6 +17,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
17
17
  height?: "short" | "medium" | "high";
18
18
  position?: "left" | "center" | "right";
19
19
  border?: boolean;
20
+ tooltipPosition?: "left" | "right" | "top" | "bottom";
20
21
  };
21
22
  tooltip?: string | React.ReactNode;
22
23
  loading?: boolean;
@@ -68,7 +69,10 @@ export const Button: React.FC<ButtonProps> = ({
68
69
  : "";
69
70
 
70
71
  return tooltip ? (
71
- <Tooltip content={tooltip}>
72
+ <Tooltip
73
+ content={tooltip}
74
+ options={{ position: options?.tooltipPosition ?? "right" }}
75
+ >
72
76
  <button
73
77
  className={`relative ${width} px-3 ${height} rounded-md text-left ${variant} ${border} ${isActive} select-none disabled:pointer-events-none ${className}`}
74
78
  disabled={loading || rest.disabled}
@@ -199,6 +199,7 @@ export const Tooltip: React.FC<TooltipProps> = ({
199
199
  {children}
200
200
  {isRendered &&
201
201
  position &&
202
+ content &&
202
203
  createPortal(
203
204
  <div
204
205
  ref={tooltipRef}