Skip to content

Commit

Permalink
feat(tooltip): remove next folder (#12615)
Browse files Browse the repository at this point in the history
* feat(tooltip): remove next folder

closes #12589

* fix: import for tooltip test

Co-authored-by: TJ Egan <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 15, 2022
1 parent 09e54fe commit db973af
Show file tree
Hide file tree
Showing 19 changed files with 263 additions and 1,687 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import React from 'react';

import FormLabel from './FormLabel';
import { Tooltip } from '../Tooltip/next/Tooltip';
import { Tooltip } from '../Tooltip';
import { Information } from '@carbon/icons-react';
import { ActionableNotification } from '../Notification';
import { Toggletip, ToggletipButton, ToggletipContent } from '../Toggletip';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/IconButton/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import Button from '../Button';
import { Tooltip } from '../Tooltip/next';
import { Tooltip } from '../Tooltip';
import { usePrefix } from '../../internal/usePrefix';
import cx from 'classnames';

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Tabs/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import cx from 'classnames';
import debounce from 'lodash.debounce';
import PropTypes from 'prop-types';
import React, { useCallback, useState, useRef, useEffect } from 'react';
import { Tooltip } from '../Tooltip/next';
import { Tooltip } from '../Tooltip';
import { useControllableState } from '../../internal/useControllableState';
import { useEffectOnce } from '../../internal/useEffectOnce';
import { useId } from '../../internal/useId';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
import cx from 'classnames';
import PropTypes from 'prop-types';
import React, { useState } from 'react';
import { Popover, PopoverContent } from '../../Popover';
import { match, keys } from '../../../internal/keyboard';
import { useFallbackId } from '../../../internal/useId';
import { usePrefix } from '../../../internal/usePrefix';
import deprecate from '../../../prop-types/deprecate';
import { Popover, PopoverContent } from '../Popover';
import { match, keys } from '../../internal/keyboard';
import { useFallbackId } from '../../internal/useId';
import { usePrefix } from '../../internal/usePrefix';
import deprecate from '../../prop-types/deprecate';

function DefinitionTooltip({
align = 'bottom-left',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Story, ArgsTable, Canvas } from '@storybook/addon-docs';

# DefinitionTooltip

[Source code](https://github.com/carbon-design-system/carbon/tree/main/packages/react/src/components/Tooltip/next/DefinitionTooltip.js)
[Source code](https://github.com/carbon-design-system/carbon/tree/main/packages/react/src/components/Tooltip/DefinitionTooltip.js)
&nbsp;|&nbsp;
[Usage guidelines](https://www.carbondesignsystem.com/components/tooltip/usage)
&nbsp;|&nbsp;
Expand Down Expand Up @@ -62,4 +62,4 @@ your component.

Help us improve this component by providing feedback, asking questions on Slack,
or updating this file on
[GitHub](https://github.com/carbon-design-system/carbon/edit/main/packages/react/src/components/Tooltip/next/DefinitionTooltip.mdx).
[GitHub](https://github.com/carbon-design-system/carbon/edit/main/packages/react/src/components/Tooltip/DefinitionTooltip.mdx).
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import './story.scss';

import React from 'react';
import { DefinitionTooltip } from './DefinitionTooltip';
import { DefinitionTooltip } from './';
import mdx from './DefinitionTooltip.mdx';

export default {
Expand Down Expand Up @@ -43,7 +43,6 @@ export default {
),
],
};

export const Default = () => {
const definition =
'Uniform Resource Locator; the address of a resource (such as a document or website) on the Internet.';
Expand Down Expand Up @@ -102,10 +101,23 @@ Playground.argTypes = {
},
defaultValue: 'Example definition',
},
id: {
table: { disable: true },
},
openOnHover: {
control: {
type: 'boolean',
},
defaultValue: false,
},
tooltipText: {
table: {
disable: true,
},
},
triggerClassName: {
table: {
disable: true,
},
},
};
Loading

0 comments on commit db973af

Please sign in to comment.