@atlaskit/tooltip
Advanced tools
Comparing version 16.0.0 to 16.0.1
# @atlaskit/tooltip | ||
## 16.0.1 | ||
### Patch Changes | ||
- [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable | ||
## 16.0.0 | ||
@@ -4,0 +10,0 @@ |
@@ -151,9 +151,11 @@ "use strict"; | ||
if (!prevState.isVisible && this.state.isVisible) { | ||
if (this.props.onShow) | ||
if (this.props.onShow) { | ||
this.props.onShow(); | ||
} | ||
window.addEventListener('scroll', this.handleWindowScroll, SCROLL_OPTIONS); | ||
} | ||
else if (prevState.isVisible && !this.state.isVisible) { | ||
if (this.props.onHide) | ||
if (this.props.onHide) { | ||
this.props.onHide(); | ||
} | ||
this.removeScrollListener(); | ||
@@ -160,0 +162,0 @@ } |
@@ -6,10 +6,10 @@ /// <reference types="react" /> | ||
export declare const TooltipPrimitive: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & TooltipProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & TooltipProps>; | ||
export declare const Tooltip: import("styled-components").StyledComponentClass<(TooltipProps & import("@atlaskit/theme").AtlaskitThemeProps) | (TooltipProps & import("@atlaskit/theme").CustomThemeProps) | (TooltipProps & import("@atlaskit/theme").NoThemeProps), any, (Pick<TooltipProps, "truncate"> & { | ||
export declare const Tooltip: import("styled-components").StyledComponentClass<(TooltipProps & import("@atlaskit/theme/dist/cjs/types").AtlaskitThemeProps) | (TooltipProps & import("@atlaskit/theme/dist/cjs/types").CustomThemeProps) | (TooltipProps & import("@atlaskit/theme/dist/cjs/types").NoThemeProps), any, (Pick<TooltipProps, "truncate"> & { | ||
theme?: any; | ||
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
} & import("@atlaskit/theme/dist/cjs/types").AtlaskitThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
theme?: any; | ||
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
} & import("@atlaskit/theme/dist/cjs/types").CustomThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
theme?: any; | ||
} & import("@atlaskit/theme").NoThemeProps)>; | ||
} & import("@atlaskit/theme/dist/cjs/types").NoThemeProps)>; | ||
export declare const Target: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>; | ||
export {}; |
{ | ||
"name": "@atlaskit/tooltip", | ||
"version": "16.0.0", | ||
"version": "16.0.1", | ||
"sideEffects": false | ||
} |
@@ -146,9 +146,11 @@ /* eslint-disable react/require-default-props */ | ||
if (!prevState.isVisible && this.state.isVisible) { | ||
if (this.props.onShow) | ||
if (this.props.onShow) { | ||
this.props.onShow(); | ||
} | ||
window.addEventListener('scroll', this.handleWindowScroll, SCROLL_OPTIONS); | ||
} | ||
else if (prevState.isVisible && !this.state.isVisible) { | ||
if (this.props.onHide) | ||
if (this.props.onHide) { | ||
this.props.onHide(); | ||
} | ||
this.removeScrollListener(); | ||
@@ -155,0 +157,0 @@ } |
@@ -6,10 +6,10 @@ /// <reference types="react" /> | ||
export declare const TooltipPrimitive: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & TooltipProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & TooltipProps>; | ||
export declare const Tooltip: import("styled-components").StyledComponentClass<(TooltipProps & import("@atlaskit/theme").AtlaskitThemeProps) | (TooltipProps & import("@atlaskit/theme").CustomThemeProps) | (TooltipProps & import("@atlaskit/theme").NoThemeProps), any, (Pick<TooltipProps, "truncate"> & { | ||
export declare const Tooltip: import("styled-components").StyledComponentClass<(TooltipProps & import("@atlaskit/theme/dist/cjs/types").AtlaskitThemeProps) | (TooltipProps & import("@atlaskit/theme/dist/cjs/types").CustomThemeProps) | (TooltipProps & import("@atlaskit/theme/dist/cjs/types").NoThemeProps), any, (Pick<TooltipProps, "truncate"> & { | ||
theme?: any; | ||
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
} & import("@atlaskit/theme/dist/cjs/types").AtlaskitThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
theme?: any; | ||
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
} & import("@atlaskit/theme/dist/cjs/types").CustomThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
theme?: any; | ||
} & import("@atlaskit/theme").NoThemeProps)>; | ||
} & import("@atlaskit/theme/dist/cjs/types").NoThemeProps)>; | ||
export declare const Target: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>; | ||
export {}; |
{ | ||
"name": "@atlaskit/tooltip", | ||
"version": "16.0.0", | ||
"version": "16.0.1", | ||
"sideEffects": false | ||
} |
@@ -149,9 +149,11 @@ /* eslint-disable react/require-default-props */ | ||
if (!prevState.isVisible && this.state.isVisible) { | ||
if (this.props.onShow) | ||
if (this.props.onShow) { | ||
this.props.onShow(); | ||
} | ||
window.addEventListener('scroll', this.handleWindowScroll, SCROLL_OPTIONS); | ||
} | ||
else if (prevState.isVisible && !this.state.isVisible) { | ||
if (this.props.onHide) | ||
if (this.props.onHide) { | ||
this.props.onHide(); | ||
} | ||
this.removeScrollListener(); | ||
@@ -158,0 +160,0 @@ } |
@@ -6,10 +6,10 @@ /// <reference types="react" /> | ||
export declare const TooltipPrimitive: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & TooltipProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & TooltipProps>; | ||
export declare const Tooltip: import("styled-components").StyledComponentClass<(TooltipProps & import("@atlaskit/theme").AtlaskitThemeProps) | (TooltipProps & import("@atlaskit/theme").CustomThemeProps) | (TooltipProps & import("@atlaskit/theme").NoThemeProps), any, (Pick<TooltipProps, "truncate"> & { | ||
export declare const Tooltip: import("styled-components").StyledComponentClass<(TooltipProps & import("@atlaskit/theme/dist/cjs/types").AtlaskitThemeProps) | (TooltipProps & import("@atlaskit/theme/dist/cjs/types").CustomThemeProps) | (TooltipProps & import("@atlaskit/theme/dist/cjs/types").NoThemeProps), any, (Pick<TooltipProps, "truncate"> & { | ||
theme?: any; | ||
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
} & import("@atlaskit/theme/dist/cjs/types").AtlaskitThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
theme?: any; | ||
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
} & import("@atlaskit/theme/dist/cjs/types").CustomThemeProps) | (Pick<TooltipProps, "truncate"> & { | ||
theme?: any; | ||
} & import("@atlaskit/theme").NoThemeProps)>; | ||
} & import("@atlaskit/theme/dist/cjs/types").NoThemeProps)>; | ||
export declare const Target: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>; | ||
export {}; |
{ | ||
"name": "@atlaskit/tooltip", | ||
"version": "16.0.0", | ||
"version": "16.0.1", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/tooltip", | ||
"version": "16.0.0", | ||
"version": "16.0.1", | ||
"description": "A tooltip is a floating, non-actionable label used to explain a user interface element or feature.", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
140145
1531