@imj_media/ui 1.0.43 → 1.0.44
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/index.css +1 -1
- package/dist/index.esm.js +4247 -4172
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/modules/Tooltip/components/organisms/Tooltip.d.ts +1 -1
- package/dist/modules/Tooltip/components/organisms/Tooltip.d.ts.map +1 -1
- package/dist/modules/Tooltip/hooks/index.d.ts +4 -0
- package/dist/modules/Tooltip/hooks/index.d.ts.map +1 -0
- package/dist/modules/Tooltip/hooks/useTooltip.d.ts +17 -0
- package/dist/modules/Tooltip/hooks/useTooltip.d.ts.map +1 -0
- package/dist/modules/Tooltip/hooks/useTooltipArrow.d.ts +172 -0
- package/dist/modules/Tooltip/hooks/useTooltipArrow.d.ts.map +1 -0
- package/dist/modules/Tooltip/hooks/useTooltipClasses.d.ts +3 -0
- package/dist/modules/Tooltip/hooks/useTooltipClasses.d.ts.map +1 -0
- package/dist/modules/Tooltip/stories/Tooltip.stories.d.ts +1 -0
- package/dist/modules/Tooltip/stories/Tooltip.stories.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TooltipProps } from '../../../../shared/types/tooltip';
|
|
2
|
-
export declare const Tooltip: ({ children, label, position, alignment, color, id, delay, disabled, className, style, arrowClassName, absolute,
|
|
2
|
+
export declare const Tooltip: ({ children, label, position, alignment, color, id, delay, disabled, className, style, arrowClassName, absolute, ...props }: TooltipProps) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import('react').ReactNode> | null | undefined;
|
|
3
3
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Tooltip/components/organisms/Tooltip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Tooltip/components/organisms/Tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAoGrD,eAAO,MAAM,OAAO,GAAI,4HAcrB,YAAY,iIAsBd,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/Tooltip/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PositionCoords } from '../../../shared/types/tooltip';
|
|
2
|
+
export declare const useTooltip: (position?: string, alignment?: string, absolute?: boolean, delay?: number, disabled?: boolean) => {
|
|
3
|
+
isVisible: boolean;
|
|
4
|
+
coords: PositionCoords;
|
|
5
|
+
tooltipDimensions: {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
adjustedPosition: string;
|
|
10
|
+
triggerRef: import('react').RefObject<HTMLDivElement>;
|
|
11
|
+
tooltipRef: import('react').RefObject<HTMLDivElement>;
|
|
12
|
+
containerRef: import('react').RefObject<HTMLDivElement>;
|
|
13
|
+
handleMouseEnter: () => void;
|
|
14
|
+
handleMouseLeave: () => void;
|
|
15
|
+
calculatePosition: () => void;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=useTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTooltip.d.ts","sourceRoot":"","sources":["../../../../src/modules/Tooltip/hooks/useTooltip.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAEvD,eAAO,MAAM,UAAU,GACrB,WAAU,MAAc,EACxB,YAAW,MAAiB,EAC5B,WAAU,OAAe,EACzB,QAAO,MAAU,EACjB,WAAU,OAAe;;;;;;;;;;;;;;CAihB1B,CAAA"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { Colors } from '../../../shared/types/types';
|
|
2
|
+
export declare const useTooltipArrow: (position: string, color?: Colors) => {
|
|
3
|
+
position: "absolute";
|
|
4
|
+
bottom: string;
|
|
5
|
+
left: string;
|
|
6
|
+
transform: string;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
borderLeft: string;
|
|
10
|
+
borderRight: string;
|
|
11
|
+
borderTop: string;
|
|
12
|
+
top?: undefined;
|
|
13
|
+
borderBottom?: undefined;
|
|
14
|
+
right?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
position: "absolute";
|
|
17
|
+
top: string;
|
|
18
|
+
left: string;
|
|
19
|
+
transform: string;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
borderLeft: string;
|
|
23
|
+
borderRight: string;
|
|
24
|
+
borderBottom: string;
|
|
25
|
+
bottom?: undefined;
|
|
26
|
+
borderTop?: undefined;
|
|
27
|
+
right?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
position: "absolute";
|
|
30
|
+
right: string;
|
|
31
|
+
top: string;
|
|
32
|
+
transform: string;
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
borderTop: string;
|
|
36
|
+
borderBottom: string;
|
|
37
|
+
borderLeft: string;
|
|
38
|
+
bottom?: undefined;
|
|
39
|
+
left?: undefined;
|
|
40
|
+
borderRight?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
position: "absolute";
|
|
43
|
+
left: string;
|
|
44
|
+
top: string;
|
|
45
|
+
transform: string;
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
borderTop: string;
|
|
49
|
+
borderBottom: string;
|
|
50
|
+
borderRight: string;
|
|
51
|
+
bottom?: undefined;
|
|
52
|
+
borderLeft?: undefined;
|
|
53
|
+
right?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
position: "absolute";
|
|
56
|
+
bottom: string;
|
|
57
|
+
left: string;
|
|
58
|
+
width: number;
|
|
59
|
+
height: number;
|
|
60
|
+
borderLeft: string;
|
|
61
|
+
borderRight: string;
|
|
62
|
+
borderTop: string;
|
|
63
|
+
transform?: undefined;
|
|
64
|
+
top?: undefined;
|
|
65
|
+
borderBottom?: undefined;
|
|
66
|
+
right?: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
position: "absolute";
|
|
69
|
+
bottom: string;
|
|
70
|
+
right: string;
|
|
71
|
+
width: number;
|
|
72
|
+
height: number;
|
|
73
|
+
borderLeft: string;
|
|
74
|
+
borderRight: string;
|
|
75
|
+
borderTop: string;
|
|
76
|
+
left?: undefined;
|
|
77
|
+
transform?: undefined;
|
|
78
|
+
top?: undefined;
|
|
79
|
+
borderBottom?: undefined;
|
|
80
|
+
} | {
|
|
81
|
+
position: "absolute";
|
|
82
|
+
top: string;
|
|
83
|
+
left: string;
|
|
84
|
+
width: number;
|
|
85
|
+
height: number;
|
|
86
|
+
borderLeft: string;
|
|
87
|
+
borderRight: string;
|
|
88
|
+
borderBottom: string;
|
|
89
|
+
bottom?: undefined;
|
|
90
|
+
transform?: undefined;
|
|
91
|
+
borderTop?: undefined;
|
|
92
|
+
right?: undefined;
|
|
93
|
+
} | {
|
|
94
|
+
position: "absolute";
|
|
95
|
+
top: string;
|
|
96
|
+
right: string;
|
|
97
|
+
width: number;
|
|
98
|
+
height: number;
|
|
99
|
+
borderLeft: string;
|
|
100
|
+
borderRight: string;
|
|
101
|
+
borderBottom: string;
|
|
102
|
+
bottom?: undefined;
|
|
103
|
+
left?: undefined;
|
|
104
|
+
transform?: undefined;
|
|
105
|
+
borderTop?: undefined;
|
|
106
|
+
} | {
|
|
107
|
+
position: "absolute";
|
|
108
|
+
left: string;
|
|
109
|
+
top: string;
|
|
110
|
+
width: number;
|
|
111
|
+
height: number;
|
|
112
|
+
borderTop: string;
|
|
113
|
+
borderBottom: string;
|
|
114
|
+
borderRight: string;
|
|
115
|
+
bottom?: undefined;
|
|
116
|
+
transform?: undefined;
|
|
117
|
+
borderLeft?: undefined;
|
|
118
|
+
right?: undefined;
|
|
119
|
+
} | {
|
|
120
|
+
position: "absolute";
|
|
121
|
+
left: string;
|
|
122
|
+
bottom: string;
|
|
123
|
+
width: number;
|
|
124
|
+
height: number;
|
|
125
|
+
borderTop: string;
|
|
126
|
+
borderBottom: string;
|
|
127
|
+
borderRight: string;
|
|
128
|
+
transform?: undefined;
|
|
129
|
+
borderLeft?: undefined;
|
|
130
|
+
top?: undefined;
|
|
131
|
+
right?: undefined;
|
|
132
|
+
} | {
|
|
133
|
+
position: "absolute";
|
|
134
|
+
right: string;
|
|
135
|
+
top: string;
|
|
136
|
+
width: number;
|
|
137
|
+
height: number;
|
|
138
|
+
borderTop: string;
|
|
139
|
+
borderBottom: string;
|
|
140
|
+
borderLeft: string;
|
|
141
|
+
bottom?: undefined;
|
|
142
|
+
left?: undefined;
|
|
143
|
+
transform?: undefined;
|
|
144
|
+
borderRight?: undefined;
|
|
145
|
+
} | {
|
|
146
|
+
position: "absolute";
|
|
147
|
+
right: string;
|
|
148
|
+
bottom: string;
|
|
149
|
+
width: number;
|
|
150
|
+
height: number;
|
|
151
|
+
borderTop: string;
|
|
152
|
+
borderBottom: string;
|
|
153
|
+
borderLeft: string;
|
|
154
|
+
left?: undefined;
|
|
155
|
+
transform?: undefined;
|
|
156
|
+
borderRight?: undefined;
|
|
157
|
+
top?: undefined;
|
|
158
|
+
} | {
|
|
159
|
+
position?: undefined;
|
|
160
|
+
bottom?: undefined;
|
|
161
|
+
left?: undefined;
|
|
162
|
+
transform?: undefined;
|
|
163
|
+
width?: undefined;
|
|
164
|
+
height?: undefined;
|
|
165
|
+
borderLeft?: undefined;
|
|
166
|
+
borderRight?: undefined;
|
|
167
|
+
borderTop?: undefined;
|
|
168
|
+
top?: undefined;
|
|
169
|
+
borderBottom?: undefined;
|
|
170
|
+
right?: undefined;
|
|
171
|
+
};
|
|
172
|
+
//# sourceMappingURL=useTooltipArrow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTooltipArrow.d.ts","sourceRoot":"","sources":["../../../../src/modules/Tooltip/hooks/useTooltipArrow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AA4B7C,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,QAAO,MAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoJ1E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTooltipClasses.d.ts","sourceRoot":"","sources":["../../../../src/modules/Tooltip/hooks/useTooltipClasses.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AA4B7C,eAAO,MAAM,iBAAiB,GAAI,QAAO,MAAkB,EAAE,WAAU,OAAe,WAQrF,CAAA"}
|
|
@@ -18,5 +18,6 @@ export declare const MultipleTooltips: Story;
|
|
|
18
18
|
export declare const AllPositions: Story;
|
|
19
19
|
export declare const PortalVsAbsolute: Story;
|
|
20
20
|
export declare const ScrollableContainerExample: Story;
|
|
21
|
+
export declare const NoSpaceTopTest: Story;
|
|
21
22
|
export declare const AutoClose: Story;
|
|
22
23
|
//# sourceMappingURL=Tooltip.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../../src/modules/Tooltip/stories/Tooltip.stories.tsx"],"names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