@atlaskit/tooltip 17.8.3 → 17.8.4
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/CHANGELOG.md +6 -0
- package/dist/cjs/Tooltip.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/Tooltip.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/Tooltip.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +2 -5
- package/tmp/api-report-tmp.d.ts +0 -106
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/tooltip
|
|
2
2
|
|
|
3
|
+
## 17.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
8
|
+
|
|
3
9
|
## 17.8.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/Tooltip.js
CHANGED
package/dist/cjs/version.json
CHANGED
package/dist/es2019/Tooltip.js
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/Tooltip.js
CHANGED
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tooltip",
|
|
3
|
-
"version": "17.8.
|
|
3
|
+
"version": "17.8.4",
|
|
4
4
|
"description": "A tooltip is a floating, non-actionable label used to explain a user interface element or feature.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,17 +56,14 @@
|
|
|
56
56
|
"react-dom": "^16.8.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
+
"@af/accessibility-testing": "*",
|
|
59
60
|
"@atlaskit/button": "^16.8.0",
|
|
60
|
-
"@atlaskit/docs": "*",
|
|
61
|
-
"@atlaskit/icon": "^21.12.0",
|
|
62
|
-
"@atlaskit/section-message": "^6.4.0",
|
|
63
61
|
"@atlaskit/ssr": "*",
|
|
64
62
|
"@atlaskit/visual-regression": "*",
|
|
65
63
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
66
64
|
"@emotion/styled": "^11.0.0",
|
|
67
65
|
"@testing-library/dom": "^8.17.1",
|
|
68
66
|
"@testing-library/react": "^12.1.5",
|
|
69
|
-
"jest-axe": "^4.0.0",
|
|
70
67
|
"jest-in-case": "^1.0.2",
|
|
71
68
|
"react-dom": "^16.8.0",
|
|
72
69
|
"react-redux": "^5.1.2",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/tooltip"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import { ComponentType } from 'react';
|
|
8
|
-
import { CSSProperties } from 'react';
|
|
9
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
10
|
-
import { jsx } from '@emotion/react';
|
|
11
|
-
import { Placement } from '@atlaskit/popper';
|
|
12
|
-
import { ReactNode } from 'react';
|
|
13
|
-
import { RefAttributes } from 'react';
|
|
14
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
15
|
-
|
|
16
|
-
// @public (undocumented)
|
|
17
|
-
export type PositionType = 'mouse' | PositionTypeBase;
|
|
18
|
-
|
|
19
|
-
// @public (undocumented)
|
|
20
|
-
type PositionTypeBase = Placement;
|
|
21
|
-
|
|
22
|
-
// @public (undocumented)
|
|
23
|
-
function Tooltip({ children, position, mousePosition, content, truncate, component: Container, tag: TargetContainer, testId, delay, onShow, onHide, hideTooltipOnClick, hideTooltipOnMouseDown, analyticsContext, strategy, }: TooltipProps): jsx.JSX.Element;
|
|
24
|
-
|
|
25
|
-
// @public (undocumented)
|
|
26
|
-
namespace Tooltip {
|
|
27
|
-
var // (undocumented)
|
|
28
|
-
displayName: string;
|
|
29
|
-
}
|
|
30
|
-
export default Tooltip;
|
|
31
|
-
|
|
32
|
-
// @public (undocumented)
|
|
33
|
-
export const TooltipPrimitive: ForwardRefExoticComponent<Pick<TooltipPrimitiveProps, "children" | "className" | "id" | "onMouseOut" | "onMouseOver" | "placement" | "style" | "testId" | "truncate"> & RefAttributes<HTMLDivElement>>;
|
|
34
|
-
|
|
35
|
-
// @public (undocumented)
|
|
36
|
-
export interface TooltipPrimitiveProps {
|
|
37
|
-
// (undocumented)
|
|
38
|
-
children: ReactNode;
|
|
39
|
-
// (undocumented)
|
|
40
|
-
className?: string;
|
|
41
|
-
// (undocumented)
|
|
42
|
-
id?: string;
|
|
43
|
-
// (undocumented)
|
|
44
|
-
onMouseOut?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
45
|
-
// (undocumented)
|
|
46
|
-
onMouseOver?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
47
|
-
// (undocumented)
|
|
48
|
-
placement: PositionType;
|
|
49
|
-
// (undocumented)
|
|
50
|
-
ref: React.Ref<any>;
|
|
51
|
-
// (undocumented)
|
|
52
|
-
style?: CSSProperties;
|
|
53
|
-
// (undocumented)
|
|
54
|
-
testId?: string;
|
|
55
|
-
// (undocumented)
|
|
56
|
-
truncate?: boolean;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// @public (undocumented)
|
|
60
|
-
export interface TooltipProps {
|
|
61
|
-
analyticsContext?: Record<string, any>;
|
|
62
|
-
children: ((props: TriggerProps) => ReactNode) | ReactNode;
|
|
63
|
-
component?: ComponentType<TooltipPrimitiveProps>;
|
|
64
|
-
content: (({ update }: {
|
|
65
|
-
update: () => void;
|
|
66
|
-
}) => ReactNode) | ReactNode;
|
|
67
|
-
delay?: number;
|
|
68
|
-
hideTooltipOnClick?: boolean;
|
|
69
|
-
hideTooltipOnMouseDown?: boolean;
|
|
70
|
-
mousePosition?: PositionTypeBase;
|
|
71
|
-
onHide?: (analyticsEvent: UIAnalyticsEvent) => void;
|
|
72
|
-
onShow?: (analyticsEvent: UIAnalyticsEvent) => void;
|
|
73
|
-
position?: PositionType;
|
|
74
|
-
strategy?: 'absolute' | 'fixed' | undefined;
|
|
75
|
-
tag?: React.ComponentType<React.AllHTMLAttributes<HTMLElement> & {
|
|
76
|
-
ref: React.Ref<HTMLElement>;
|
|
77
|
-
}> | keyof JSX.IntrinsicElements;
|
|
78
|
-
testId?: string;
|
|
79
|
-
truncate?: boolean;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// @public (undocumented)
|
|
83
|
-
interface TriggerProps {
|
|
84
|
-
// (undocumented)
|
|
85
|
-
'aria-describedby'?: string | undefined;
|
|
86
|
-
// (undocumented)
|
|
87
|
-
onBlur: (event: React.FocusEvent<HTMLElement>) => void;
|
|
88
|
-
// (undocumented)
|
|
89
|
-
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
90
|
-
// (undocumented)
|
|
91
|
-
onFocus: (event: React.FocusEvent<HTMLElement>) => void;
|
|
92
|
-
// (undocumented)
|
|
93
|
-
onMouseDown: (event: React.MouseEvent<HTMLElement>) => void;
|
|
94
|
-
// (undocumented)
|
|
95
|
-
onMouseMove: ((event: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
96
|
-
// (undocumented)
|
|
97
|
-
onMouseOut: (event: React.MouseEvent<HTMLElement>) => void;
|
|
98
|
-
// (undocumented)
|
|
99
|
-
onMouseOver: (event: React.MouseEvent<HTMLElement>) => void;
|
|
100
|
-
// (undocumented)
|
|
101
|
-
ref: (node: HTMLElement | null) => void;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// (No @packageDocumentation comment for this package)
|
|
105
|
-
|
|
106
|
-
```
|