@wavv/ui 1.7.2 → 1.7.3
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,11 +1,12 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import type { ThemeProp } from './types';
|
|
1
|
+
import { HTMLProps, ReactNode } from 'react';
|
|
2
|
+
import type { As, ThemeProp } from './types';
|
|
3
3
|
type Side = 'top' | 'bottom' | 'right' | 'left';
|
|
4
4
|
type Top = 'top center' | 'top left' | 'top right';
|
|
5
5
|
type Bottom = 'bottom center' | 'bottom left' | 'bottom right';
|
|
6
6
|
type Left = 'left center' | 'left top' | 'left bottom';
|
|
7
7
|
type Right = 'right center' | 'right top' | 'right bottom';
|
|
8
8
|
type Position = Side | Top | Bottom | Left | Right;
|
|
9
|
+
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
9
10
|
export type TooltipProps = {
|
|
10
11
|
children?: ReactNode;
|
|
11
12
|
/** The element that will trigger the opening of the Tooltip */
|
|
@@ -40,7 +41,7 @@ export type TooltipProps = {
|
|
|
40
41
|
afterShow?: () => void;
|
|
41
42
|
/** The function called after the Tooltip closes */
|
|
42
43
|
afterHide?: () => void;
|
|
43
|
-
};
|
|
44
|
+
} & DivProps;
|
|
44
45
|
declare const Tooltip: {
|
|
45
46
|
({ trigger, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, id, bgColor, color, container, afterShow, afterHide, ...props }: TooltipProps): JSX.Element;
|
|
46
47
|
Header: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import type { ThemeProp } from './types';
|
|
1
|
+
import { HTMLProps, ReactNode } from 'react';
|
|
2
|
+
import type { As, ThemeProp } from './types';
|
|
3
3
|
type Side = 'top' | 'bottom' | 'right' | 'left';
|
|
4
4
|
type Top = 'top center' | 'top left' | 'top right';
|
|
5
5
|
type Bottom = 'bottom center' | 'bottom left' | 'bottom right';
|
|
6
6
|
type Left = 'left center' | 'left top' | 'left bottom';
|
|
7
7
|
type Right = 'right center' | 'right top' | 'right bottom';
|
|
8
8
|
type Position = Side | Top | Bottom | Left | Right;
|
|
9
|
+
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
9
10
|
export type TooltipProps = {
|
|
10
11
|
children?: ReactNode;
|
|
11
12
|
/** The element that will trigger the opening of the Tooltip */
|
|
@@ -40,7 +41,7 @@ export type TooltipProps = {
|
|
|
40
41
|
afterShow?: () => void;
|
|
41
42
|
/** The function called after the Tooltip closes */
|
|
42
43
|
afterHide?: () => void;
|
|
43
|
-
};
|
|
44
|
+
} & DivProps;
|
|
44
45
|
declare const Tooltip: {
|
|
45
46
|
({ trigger, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, id, bgColor, color, container, afterShow, afterHide, ...props }: TooltipProps): JSX.Element;
|
|
46
47
|
Header: import("@emotion/styled").StyledComponent<{
|
package/build/index.d.ts
CHANGED
|
@@ -1123,6 +1123,7 @@ type Bottom = 'bottom center' | 'bottom left' | 'bottom right';
|
|
|
1123
1123
|
type Left = 'left center' | 'left top' | 'left bottom';
|
|
1124
1124
|
type Right = 'right center' | 'right top' | 'right bottom';
|
|
1125
1125
|
type Position = Side | Top | Bottom | Left | Right;
|
|
1126
|
+
type DivProps = Omit<HTMLProps<HTMLDivElement>, 'as'> & As;
|
|
1126
1127
|
type TooltipProps = {
|
|
1127
1128
|
children?: ReactNode;
|
|
1128
1129
|
/** The element that will trigger the opening of the Tooltip */
|
|
@@ -1157,7 +1158,7 @@ type TooltipProps = {
|
|
|
1157
1158
|
afterShow?: () => void;
|
|
1158
1159
|
/** The function called after the Tooltip closes */
|
|
1159
1160
|
afterHide?: () => void;
|
|
1160
|
-
};
|
|
1161
|
+
} & DivProps;
|
|
1161
1162
|
declare const Tooltip: {
|
|
1162
1163
|
({ trigger, children, content, position, offset, zIndex, width, maxWidth, textAlign, open, disabled, id, bgColor, color, container, afterShow, afterHide, ...props }: TooltipProps): JSX.Element;
|
|
1163
1164
|
Header: _emotion_styled.StyledComponent<{
|