diff --git a/code/.eslintrc.js b/code/.eslintrc.js index a9a44f8459c1..8e7742dc111e 100644 --- a/code/.eslintrc.js +++ b/code/.eslintrc.js @@ -27,7 +27,7 @@ module.exports = { '**/lib/theming/**/*', '**/lib/router/**/*', '**/ui/manager/**/*', - '**/lib/components/**/*', + '**/ui/components/**/*', ], rules: { 'import/no-extraneous-dependencies': ['error', { bundledDependencies: false }], diff --git a/code/addons/links/src/react/components/RoutedLink.tsx b/code/addons/links/src/react/components/RoutedLink.tsx index a27a21221436..cfe6f4901cfa 100644 --- a/code/addons/links/src/react/components/RoutedLink.tsx +++ b/code/addons/links/src/react/components/RoutedLink.tsx @@ -1,6 +1,6 @@ import React from 'react'; -// NOTE: this is a copy of `lib/components/src/navigation/RoutedLink.tsx`. +// NOTE: this is a copy of `code/ui/components/src/navigation/RoutedLink.tsx`. // It's duplicated here because that copy has an explicit dependency on // React 16.3+, which breaks older versions of React running in the preview. // The proper DRY solution is to create a new package that doesn't depend diff --git a/code/frameworks/angular/src/server/framework-preset-angular-cli.test.ts b/code/frameworks/angular/src/server/framework-preset-angular-cli.test.ts index b61cbd025230..bda1707b6b51 100644 --- a/code/frameworks/angular/src/server/framework-preset-angular-cli.test.ts +++ b/code/frameworks/angular/src/server/framework-preset-angular-cli.test.ts @@ -819,7 +819,7 @@ const newWebpackConfiguration = ( '@storybook/api': '/Users/joe/storybook/lib/api', '@storybook/channels': '/Users/joe/storybook/lib/channels', '@storybook/channel-postmessage': '/Users/joe/storybook/lib/channel-postmessage', - '@storybook/components': '/Users/joe/storybook/lib/components', + '@storybook/components': '/Users/joe/storybook/ui/components', '@storybook/core-events': '/Users/joe/storybook/lib/core-events', '@storybook/router': '/Users/joe/storybook/lib/router', '@storybook/theming': '/Users/joe/storybook/lib/theming', diff --git a/code/lib/components/src/Badge/Badge.stories.tsx b/code/lib/components/src/Badge/Badge.stories.tsx deleted file mode 100644 index f579398065b2..000000000000 --- a/code/lib/components/src/Badge/Badge.stories.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import React from 'react'; -import { storiesOf } from '@storybook/react'; -import { Badge } from './Badge'; - -storiesOf('Basics/Badge', module).add('all badges', () => ( -
- Neutral - Positive - Warning - Negative - Critical -
-)); diff --git a/code/lib/components/src/Button/Button.stories.tsx b/code/lib/components/src/Button/Button.stories.tsx deleted file mode 100644 index 787c55015987..000000000000 --- a/code/lib/components/src/Button/Button.stories.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import React from 'react'; -import { storiesOf } from '@storybook/react'; -import { Button } from './Button'; -import { Icons } from '../icon/icon'; - -import { Form } from '../form/index'; - -const { Button: FormButton } = Form; - -storiesOf('Basics/Button', module).add('all buttons', () => ( -
-

Button that is used for forms

- Form.Button -
-

Buttons that are used for everything else

- - - -
- - - - -
- - - - - - - - -
-)); diff --git a/code/lib/components/src/brand/StorybookIcon.stories.tsx b/code/lib/components/src/brand/StorybookIcon.stories.tsx deleted file mode 100644 index 702e6deede08..000000000000 --- a/code/lib/components/src/brand/StorybookIcon.stories.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import React from 'react'; -import { storiesOf } from '@storybook/react'; - -import { StorybookIcon } from './StorybookIcon'; - -storiesOf('Basics/Brand/StorybookIcon', module).add('default', () => ); diff --git a/code/lib/components/src/form/form.stories.tsx b/code/lib/components/src/form/form.stories.tsx deleted file mode 100644 index a4220cf03096..000000000000 --- a/code/lib/components/src/form/form.stories.tsx +++ /dev/null @@ -1,156 +0,0 @@ -import React from 'react'; -import { styled } from '@storybook/theming'; -import { storiesOf } from '@storybook/react'; -import { action } from '@storybook/addon-actions'; - -import { Input, Button, Select, Textarea } from './input/input'; -import { Field } from './field/field'; -import { Spaced } from '../spaced/Spaced'; - -const Flexed = styled(Field)({ display: 'flex' }); - -storiesOf('Basics/Form/Field', module).add('field', () => ( - - - -)); - -storiesOf('Basics/Form/Select', module) - .add('sizes', () => ( - - {['auto', 'flex', '100%'].map((size) => ( - - - - ))} - - )) - .add('validations', () => ( -
- - {['error', 'warn', 'valid', null].map((valid) => ( - - - - ))} - - - - -
- )); - -storiesOf('Basics/Form/Button', module) - .add('sizes', () => ( - - {['auto', 'flex', '100%'].map((size) => ( - - - - ))} - - )) - .add('validations', () => ( - - {['error', 'warn', 'valid', null].map((valid) => ( - - - - ))} - - )); - -storiesOf('Basics/Form/Textarea', module) - .add('sizes', () => ( - - {['auto', 'flex', '100%'].map((size) => ( - -