Skip to content

Commit

Permalink
chore(tooltip): removed TooltipHoverModeConfig component
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Removed `TooltipHoverModeConfig` component
  • Loading branch information
mlaursen committed Aug 12, 2021
1 parent 6dca9b1 commit 664ec30
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 86 deletions.
37 changes: 1 addition & 36 deletions packages/layout/src/Configuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,6 @@ export interface ConfigurationProps extends AppSizeOptions, StatesConfigProps {
*/
onAppResize?: AppSizeListenerProps["onChange"];

/**
* Boolean if the default tooltip hover mode should be disabled.
*
* @deprecated \@since 2.8.0 Use the {@link hoverMode} configuration object
* instead.
*/
disableTooltipHoverMode?: boolean;

/**
* The default delay before the tooltip hover mode is enabled.
*
* @deprecated \@since 2.8.0 Use the {@link hoverMode} configuration object
* instead.
*/
tooltipDefaultDelay?: number;

/**
* The delay before the tooltip should become visible.
*
* @deprecated \@since 2.8.0 Use the {@link hoverMode} configuration object
* instead.
*/
tooltipDelayTimeout?: number;

/**
* The children that should gain this configuration. This is required since
* there's really no reason to use this component if you don't have children
Expand Down Expand Up @@ -112,9 +88,6 @@ export function Configuration({
rippleClassNames = DEFAULT_RIPPLE_CLASSNAMES,
disableRipple = false,
disableProgrammaticRipple = false,
disableTooltipHoverMode,
tooltipDefaultDelay,
tooltipDelayTimeout,
hoverMode,
}: ConfigurationProps): ReactElement {
return (
Expand All @@ -136,12 +109,7 @@ export function Configuration({
rippleTimeout={rippleTimeout}
rippleClassNames={rippleClassNames}
>
<HoverModeProvider
disabled={disableTooltipHoverMode}
defaultVisibleInTime={tooltipDefaultDelay}
deactivateTime={tooltipDelayTimeout}
{...hoverMode}
>
<HoverModeProvider {...hoverMode}>
<IconProvider {...icons}>
<FormThemeProvider {...formTheme}>
{children}
Expand Down Expand Up @@ -196,9 +164,6 @@ if (process.env.NODE_ENV !== "production") {
]),
disableRipple: PropTypes.bool,
disableProgrammaticRipple: PropTypes.bool,
tooltipDelayTimeout: PropTypes.number,
tooltipDefaultDelay: PropTypes.number,
disableTooltipHoverMode: PropTypes.bool,
icons: PropTypes.shape({
back: PropTypes.node,
checkbox: PropTypes.node,
Expand Down
49 changes: 0 additions & 49 deletions packages/tooltip/src/TooltipHoverModeConfig.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/tooltip/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
export * from "./Tooltip";
export * from "./Tooltipped";
export * from "./TooltipHoverModeConfig";

export * from "./constants";
export * from "./useTooltip";
Expand Down

0 comments on commit 664ec30

Please sign in to comment.