@delightui/components 0.1.140 → 0.1.141
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/dist/cjs/components/atoms/Tooltip/Tooltip.constants.d.ts +24 -0
- package/dist/cjs/components/atoms/Tooltip/Tooltip.d.ts +1 -1
- package/dist/cjs/components/atoms/Tooltip/Tooltip.presenter.d.ts +24 -0
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/atoms/Tooltip/Tooltip.constants.d.ts +24 -0
- package/dist/esm/components/atoms/Tooltip/Tooltip.d.ts +1 -1
- package/dist/esm/components/atoms/Tooltip/Tooltip.presenter.d.ts +24 -0
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TooltipDirectionEnum } from './Tooltip.types';
|
|
2
|
+
export declare const TOOLTIP_ARROW_CONSTANTS: {
|
|
3
|
+
readonly WIDTH: 28;
|
|
4
|
+
readonly HEIGHT: 8;
|
|
5
|
+
readonly OFFSET: 12;
|
|
6
|
+
};
|
|
7
|
+
export declare const ARROW_DIMENSIONS_MAP: Record<TooltipDirectionEnum, {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const TOOLTIP_VARIANT_MAP: {
|
|
12
|
+
readonly 'Top-Center': "center-top";
|
|
13
|
+
readonly 'Top-Start': "start-top";
|
|
14
|
+
readonly 'Top-End': "end-top";
|
|
15
|
+
readonly 'Bottom-Center': "center-bottom";
|
|
16
|
+
readonly 'Bottom-Start': "start-bottom";
|
|
17
|
+
readonly 'Bottom-End': "end-bottom";
|
|
18
|
+
readonly 'Left-Center': "center-left";
|
|
19
|
+
readonly 'Left-Start': "start-left";
|
|
20
|
+
readonly 'Left-End': "end-left";
|
|
21
|
+
readonly 'Right-Center': "center-right";
|
|
22
|
+
readonly 'Right-Start': "start-right";
|
|
23
|
+
readonly 'Right-End': "end-right";
|
|
24
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TooltipProps } from './Tooltip.types';
|
|
2
|
-
declare const Tooltip: (
|
|
2
|
+
declare const Tooltip: (props: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Tooltip;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { TooltipProps } from './Tooltip.types';
|
|
3
|
+
declare const usePresenter: (props: TooltipProps) => {
|
|
4
|
+
direction: import("./Tooltip.types").TooltipDirectionEnum;
|
|
5
|
+
action: import("./Tooltip.types").TooltipActionType;
|
|
6
|
+
target: import("react").ReactNode;
|
|
7
|
+
position: {
|
|
8
|
+
top: number;
|
|
9
|
+
left: number;
|
|
10
|
+
};
|
|
11
|
+
showTooltip: () => void;
|
|
12
|
+
hideTooltip: () => void;
|
|
13
|
+
toggleTooltip: () => void;
|
|
14
|
+
targetRef: import("react").RefObject<HTMLDivElement>;
|
|
15
|
+
tooltipRef: import("react").RefObject<HTMLDivElement>;
|
|
16
|
+
wrapperRef: import("react").RefObject<HTMLDivElement>;
|
|
17
|
+
variantProps: {
|
|
18
|
+
'component-variant': string;
|
|
19
|
+
};
|
|
20
|
+
arrowStyle: CSSProperties;
|
|
21
|
+
style: import("./Tooltip.types").TooltipStyleEnum;
|
|
22
|
+
visible: boolean;
|
|
23
|
+
};
|
|
24
|
+
export default usePresenter;
|