diff --git a/packages/react/src/components/Tooltip/Tooltip-story.js b/packages/react/src/components/Tooltip/Tooltip-story.js index 5801e74235e5..03e25e764ca9 100644 --- a/packages/react/src/components/Tooltip/Tooltip-story.js +++ b/packages/react/src/components/Tooltip/Tooltip-story.js @@ -17,7 +17,6 @@ import { import Tooltip from '../Tooltip'; import { Tooltip as OGTooltip } from './Tooltip'; import Button from '../Button'; -import TextInput from '../TextInput'; import { OverflowMenuVertical16 } from '@carbon/icons-react'; import mdx from './Tooltip.mdx'; @@ -272,118 +271,3 @@ OnlyCustomIcon.parameters = { export const UncontrolledTooltip = () => ; UncontrolledTooltip.storyName = 'uncontrolled tooltip'; - -export const App = () => ( -
- - example1 -
- } - align="start" - direction="bottom" - showIcon={false}> -
-
-
- -
-                This is the first message.
-              
-
-
-
-
- - - example2 - - } - align="start" - direction="bottom" - showIcon={false}> -
-
- -
-              This is the second message.
-            
-
-
-
-
- -); - -export const App2 = () => { - const getTooltip = (id, label, includeId, withButton) => ( - -

- This is some tooltip text. This box shows the maximum amount of text - that should appear inside. If more room is needed please use a modal - instead. -

-
- {withButton && ( - - Learn More - - )} - {withButton && } -
-
- ); - const getTextInput = (id, label, includeId, withButton) => ( - - ); - - return ( -
- {getTextInput('bad-text-input-1', 'Text input (tooltip with id) 1', true)} - {getTextInput( - 'bad-text-input-2', - 'Text input (tooltip with id) 2', - true, - true - )} - {getTextInput( - 'bad-text-input-3', - 'Text input (tooltip with id) 3', - true, - true - )} - {getTextInput( - 'good-text-input-1', - 'Text input (tooltip with no id) 1', - false - )} - {getTextInput( - 'good-text-input-2', - 'Text input (tooltip with no id) 2', - false, - true - )} - {getTextInput( - 'good-text-input-3', - 'Text input (tooltip with no id) 3', - false, - true - )} -
- ); -};