fis-component 0.0.80 → 0.0.81

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.
@@ -23,6 +23,8 @@ interface TooltipProps extends Omit<TooltipPropsAntd, "variant" | "title"> {
23
23
  size?: TooltipSize;
24
24
  /** Child elements that the tooltip wraps (optional) */
25
25
  children?: React.ReactNode;
26
+ /** Enable smart placement (auto left/right) */
27
+ smartPlacement?: boolean;
26
28
  }
27
29
  declare const FISTooltip: FC<TooltipProps>;
28
30
  export default FISTooltip;
@@ -0,0 +1,5 @@
1
+ export type TooltipPlacement = "left" | "right";
2
+ export declare const useSmartTooltipPlacement: () => {
3
+ placement: TooltipPlacement;
4
+ calculatePlacement: (triggerEl: HTMLElement | null) => void;
5
+ };
package/dist/index.d.ts CHANGED
@@ -3847,6 +3847,8 @@ interface TooltipProps extends Omit<TooltipProps$1, "variant" | "title"> {
3847
3847
  size?: TooltipSize;
3848
3848
  /** Child elements that the tooltip wraps (optional) */
3849
3849
  children?: React.ReactNode;
3850
+ /** Enable smart placement (auto left/right) */
3851
+ smartPlacement?: boolean;
3850
3852
  }
3851
3853
  declare const FISTooltip: FC<TooltipProps>;
3852
3854
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "https://vietdiemtran.github.io/fis-component/",
3
3
  "name": "fis-component",
4
- "version": "0.0.80",
4
+ "version": "0.0.81",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",