pmg-ui-kit 0.0.88 → 0.0.89

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.
@@ -1,7 +1,8 @@
1
1
  type TooltipProps = {
2
2
  children?: React.ReactNode;
3
3
  className?: string;
4
+ placement?: "top" | "right" | "bottom" | "left";
4
5
  content: React.ReactNode;
5
6
  };
6
- export declare const Tooltip: ({ children, className, content }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Tooltip: ({ children, className, placement, content }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { Tooltip as FlowbiteTooltip } from "flowbite-react";
4
- export const Tooltip = ({ children, className, content }) => {
5
- return (_jsx(_Fragment, { children: _jsx(FlowbiteTooltip, { className: className, content: content, children: children }) }));
4
+ export const Tooltip = ({ children, className, placement, content }) => {
5
+ return (_jsx(_Fragment, { children: _jsx(FlowbiteTooltip, { placement: placement ?? "auto", className: className, content: content, children: children }) }));
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmg-ui-kit",
3
- "version": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "description": "Components library for PMG projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",