@atlaskit/tooltip 18.4.0 → 18.4.1
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/__perf__/examples.tsx +2 -2
- package/dist/cjs/Tooltip.js +1 -1
- package/dist/es2019/Tooltip.js +1 -1
- package/dist/esm/Tooltip.js +1 -1
- package/dist/types/TooltipContainer.d.ts +1 -1
- package/dist/types/TooltipPrimitive.d.ts +2 -2
- package/dist/types/internal/tooltip-manager.d.ts +1 -1
- package/dist/types/types.d.ts +4 -4
- package/dist/types-ts4.5/TooltipContainer.d.ts +1 -1
- package/dist/types-ts4.5/TooltipPrimitive.d.ts +2 -2
- package/dist/types-ts4.5/internal/tooltip-manager.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +4 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/__perf__/examples.tsx
CHANGED
|
@@ -2,8 +2,8 @@ import React, { useLayoutEffect } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { findByTestId, fireEvent } from '@testing-library/dom';
|
|
4
4
|
import {
|
|
5
|
-
InteractionTaskArgs,
|
|
6
|
-
PublicInteractionTask,
|
|
5
|
+
type InteractionTaskArgs,
|
|
6
|
+
type PublicInteractionTask,
|
|
7
7
|
} from 'storybook-addon-performance';
|
|
8
8
|
|
|
9
9
|
import Tooltip from '../src';
|
package/dist/cjs/Tooltip.js
CHANGED
package/dist/es2019/Tooltip.js
CHANGED
package/dist/esm/Tooltip.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TooltipPrimitiveProps } from './TooltipPrimitive';
|
|
2
|
+
import { type TooltipPrimitiveProps } from './TooltipPrimitive';
|
|
3
3
|
export interface TooltipContainerProps extends TooltipPrimitiveProps {
|
|
4
4
|
}
|
|
5
5
|
declare const TooltipContainer: import("react").ForwardRefExoticComponent<Pick<TooltipContainerProps, "style" | "className" | "children" | "placement" | "testId" | "onMouseOut" | "onMouseOver" | "id" | "truncate"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import { PositionType } from './types';
|
|
2
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
3
|
+
import { type PositionType } from './types';
|
|
4
4
|
export interface TooltipPrimitiveProps {
|
|
5
5
|
truncate?: boolean;
|
|
6
6
|
style?: CSSProperties;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { Placement } from '@atlaskit/popper';
|
|
4
|
-
import { TooltipPrimitiveProps } from './TooltipPrimitive';
|
|
1
|
+
import { type ComponentType, type ReactNode } from 'react';
|
|
2
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type Placement } from '@atlaskit/popper';
|
|
4
|
+
import { type TooltipPrimitiveProps } from './TooltipPrimitive';
|
|
5
5
|
export type PositionTypeBase = Placement;
|
|
6
6
|
export type PositionType = PositionTypeBase | 'mouse';
|
|
7
7
|
export interface TriggerProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TooltipPrimitiveProps } from './TooltipPrimitive';
|
|
2
|
+
import { type TooltipPrimitiveProps } from './TooltipPrimitive';
|
|
3
3
|
export interface TooltipContainerProps extends TooltipPrimitiveProps {
|
|
4
4
|
}
|
|
5
5
|
declare const TooltipContainer: import("react").ForwardRefExoticComponent<Pick<TooltipContainerProps, "style" | "className" | "children" | "placement" | "testId" | "onMouseOut" | "onMouseOver" | "id" | "truncate"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import { PositionType } from './types';
|
|
2
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
3
|
+
import { type PositionType } from './types';
|
|
4
4
|
export interface TooltipPrimitiveProps {
|
|
5
5
|
truncate?: boolean;
|
|
6
6
|
style?: CSSProperties;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { Placement } from '@atlaskit/popper';
|
|
4
|
-
import { TooltipPrimitiveProps } from './TooltipPrimitive';
|
|
1
|
+
import { type ComponentType, type ReactNode } from 'react';
|
|
2
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type Placement } from '@atlaskit/popper';
|
|
4
|
+
import { type TooltipPrimitiveProps } from './TooltipPrimitive';
|
|
5
5
|
export type PositionTypeBase = Placement;
|
|
6
6
|
export type PositionType = PositionTypeBase | 'mouse';
|
|
7
7
|
export interface TriggerProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tooltip",
|
|
3
|
-
"version": "18.4.
|
|
3
|
+
"version": "18.4.1",
|
|
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/"
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
47
47
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
48
48
|
"@atlaskit/motion": "^1.6.0",
|
|
49
|
-
"@atlaskit/popper": "^
|
|
49
|
+
"@atlaskit/popper": "^6.0.0",
|
|
50
50
|
"@atlaskit/portal": "^4.5.0",
|
|
51
51
|
"@atlaskit/theme": "^12.8.0",
|
|
52
|
-
"@atlaskit/tokens": "^1.
|
|
52
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@emotion/react": "^11.7.1",
|
|
55
55
|
"bind-event-listener": "^3.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@af/accessibility-testing": "*",
|
|
64
|
-
"@atlaskit/button": "^17.
|
|
64
|
+
"@atlaskit/button": "^17.16.0",
|
|
65
65
|
"@atlaskit/ssr": "*",
|
|
66
66
|
"@atlaskit/visual-regression": "*",
|
|
67
67
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|