Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs/upgrade-storybook-v6-with-webpack5 #414

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/storybook/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
core: {
builder: 'webpack5',
},

stories: [
'../examples/**/*.stories.(js|mdx)',
'../examples/**/index.js',
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Avatar.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Avatar from '@ichef/gypcrete/src/Avatar';
import FlexRow from 'utils/FlexRow';

export default {
title: '@ichef/gypcrete|Avatar',
title: 'gypcrete/Avatar',
component: Avatar,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Button.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Button, { PureButton } from '@ichef/gypcrete/src/Button';
import FlexRow from 'utils/FlexRow';

export default {
title: '@ichef/gypcrete|Button',
title: 'gypcrete/Button',
component: PureButton,
subcomponents: {
'rowComp()': Button,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Checkbox.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Avatar from '@ichef/gypcrete/src/Avatar';
import DebugBox from 'utils/DebugBox';

export default {
title: '@ichef/gypcrete|Checkbox',
title: 'gypcrete/Checkbox',
component: PureCheckbox,
subcomponents: {
'rowComp()': Checkbox,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/ColumnView.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import List from '@ichef/gypcrete/src/List';
import ListRow from '@ichef/gypcrete/src/ListRow';

export default {
title: '@ichef/gypcrete|ColumnView',
title: 'gypcrete/ColumnView',
component: ColumnView,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/EditableText.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PureText } from '@ichef/gypcrete/src/Text';
import DebugBox from 'utils/DebugBox';

export default {
title: '@ichef/gypcrete|EditableText',
title: 'gypcrete/EditableText',
component: PureEditableText,
subcomponents: {
PureText,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import TextLabel from '@ichef/gypcrete/src/TextLabel';
import DebugBox from 'utils/DebugBox';

export default {
title: '@ichef/gypcrete|EditableTextLabel',
title: 'gypcrete/EditableTextLabel',
component: EditableTextLabel,
subcomponents: { TextLabel },
};
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/HeaderRow.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import TextEllipsis from '@ichef/gypcrete/src/TextEllipsis';
import DebugBox from 'utils/DebugBox';

export default {
title: '@ichef/gypcrete|HeaderRow',
title: 'gypcrete/HeaderRow',
component: HeaderRow,
subcomponents: {
HeaderArea,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Icon.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Icon from '@ichef/gypcrete/src/Icon';
import iconMap from '@ichef/gypcrete/src/icons/components';

export default {
title: '@ichef/gypcrete|Icon',
title: 'gypcrete/Icon',
component: Icon,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/IconButton.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import IconButton from '@ichef/gypcrete/src/IconButton';
import FlexRow from 'utils/FlexRow';

export default {
title: '@ichef/gypcrete|IconButton',
title: 'gypcrete/IconButton',
component: IconButton,
subcomponents: {
Button,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/IconCheckbox.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import IconCheckbox from '@ichef/gypcrete/src/IconCheckbox';
import FlexRow from 'utils/FlexRow';

export default {
title: '@ichef/gypcrete|IconCheckbox',
title: 'gypcrete/IconCheckbox',
component: IconCheckbox,
subcomponents: {
Checkbox,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/InfiniteScroll.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { action } from '@storybook/addon-actions';
import InfiniteScroll from '@ichef/gypcrete/src/InfiniteScroll';

export default {
title: '@ichef/gypcrete|InfiniteScroll',
title: 'gypcrete/InfiniteScroll',
component: InfiniteScroll,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/List.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import TextLabel from '@ichef/gypcrete/src/TextLabel';
import DebugBox from 'utils/DebugBox';

export default {
title: '@ichef/gypcrete|List',
title: 'gypcrete/List',
component: List,
subcomponents: { ListRow, Section },
};
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Modal.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import TextLabel from '@ichef/gypcrete/src/TextLabel';
import { ContainsColumnView } from './SplitView.stories';

export default {
title: '@ichef/gypcrete|Modal',
title: 'gypcrete/Modal',
component: PureModal,
subcomponents: {
'renderToLayer()': Modal,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Popover.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import List from '@ichef/gypcrete/src/List';
import ListRow from '@ichef/gypcrete/src/ListRow';

export default {
title: '@ichef/gypcrete|Popover',
title: 'gypcrete/Popover',
component: PurePopover,
subcomponents: {
'renderToLayer(closable(anchored(Popover))': Popover,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Popup.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Checkbox from '@ichef/gypcrete/src/Checkbox';
const reactLogoImg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0xMS41IC0xMC4yMzE3NCAyMyAyMC40NjM0OCI+CiAgPHRpdGxlPlJlYWN0IExvZ288L3RpdGxlPgogIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIyLjA1IiBmaWxsPSIjNjFkYWZiIi8+CiAgPGcgc3Ryb2tlPSIjNjFkYWZiIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiPgogICAgPGVsbGlwc2Ugcng9IjExIiByeT0iNC4yIi8+CiAgICA8ZWxsaXBzZSByeD0iMTEiIHJ5PSI0LjIiIHRyYW5zZm9ybT0icm90YXRlKDYwKSIvPgogICAgPGVsbGlwc2Ugcng9IjExIiByeT0iNC4yIiB0cmFuc2Zvcm09InJvdGF0ZSgxMjApIi8+CiAgPC9nPgo8L3N2Zz4K';

export default {
title: '@ichef/gypcrete|Popup',
title: 'gypcrete/Popup',
component: PurePopup,
subcomponents: {
'renderToLayer()': Popup,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Radio.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Avatar from '@ichef/gypcrete/src/Avatar';
import DebugBox from 'utils/DebugBox';

export default {
title: '@ichef/gypcrete|Radio',
title: 'gypcrete/Radio',
component: PureRadio,
subcomponents: {
'rowComp()': Radio,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/SearchInput.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import SearchInput, { PureSearchInput } from '@ichef/gypcrete/src/SearchInput';
import DebugBox from 'utils/DebugBox';

export default {
title: '@ichef/gypcrete|SearchInput',
title: 'gypcrete/SearchInput',
component: PureSearchInput,
subcomponents: {
'rowComp()': SearchInput,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Section.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Section from '@ichef/gypcrete/src/Section';
import DebugBox from 'utils/DebugBox';

export default {
title: '@ichef/gypcrete|Section',
title: 'gypcrete/Section',
component: Section,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/SplitView.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function DemoColumnView({ children, ...props }) {
}

export default {
title: '@ichef/gypcrete|SplitView',
title: 'gypcrete/SplitView',
component: SplitView,
subcomponents: { SplitViewColumn },
decorators: [debugDecorator],
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/StatusIcon.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import DebugBox from 'utils/DebugBox';
import FlexRow from 'utils/FlexRow';

export default {
title: '@ichef/gypcrete|StatusIcon',
title: 'gypcrete/StatusIcon',
component: StatusIcon,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Switch.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import DebugBox from 'utils/DebugBox';


export default {
title: '@ichef/gypcrete|Switch',
title: 'gypcrete/Switch',
component: PureSwitch,
subcomponents: {
'rowComp()': Switch,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/SwitchIcon.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import SwitchIcon from '@ichef/gypcrete/src/SwitchIcon';


export default {
title: '@ichef/gypcrete|SwitchIcon',
title: 'gypcrete/SwitchIcon',
component: SwitchIcon,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Tag.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import Tag from '@ichef/gypcrete/src/Tag';

export default {
title: '@ichef/gypcrete|Tag',
title: 'gypcrete/Tag',
component: Tag,
};

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Text.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import TextEllipsis from '@ichef/gypcrete/src/TextEllipsis';
import DebugBox from 'utils/DebugBox';

export default {
title: '@ichef/gypcrete|Text',
title: 'gypcrete/Text',
component: PureText,
subcomponents: { 'withStatus()': Text },
};
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/TextInput.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TextInput, { PureTextInput } from '@ichef/gypcrete/src/TextInput';
import DebugBox from 'utils/DebugBox';

export default {
title: '@ichef/gypcrete|TextInput',
title: 'gypcrete/TextInput',
component: PureTextInput,
subcomponents: {
'rowComp()': TextInput,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/TextLabel.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import TextLabel, { PureTextLabel } from '@ichef/gypcrete/src/TextLabel';
import DebugBox from 'utils/DebugBox';

export default {
title: '@ichef/gypcrete|TextLabel',
title: 'gypcrete/TextLabel',
component: PureTextLabel,
subcomponents: {
'rowComp()': TextLabel,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/core/Tooltip.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useState, useRef } from 'react';
import Tooltip, { PureTooltip } from '@ichef/gypcrete/src/Tooltip';

export default {
title: '@ichef/gypcrete|Tooltip',
title: 'gypcrete/Tooltip',
component: PureTooltip,
subcomponents: {
'renderToLayer(anchored({})': Tooltip,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import RadioSelectList from '@ichef/gypcrete-form/src/RadioSelectList';
import RadioSelectOption from '@ichef/gypcrete-form/src/RadioSelectOption';

export default {
title: '@ichef/gypcrete-form|RadioSelectList',
title: 'gypcrete-form/RadioSelectList',
component: RadioSelectList,
subcomponents: { RadioSelectOption },
};
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/form/SelectList.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import SelectList from '@ichef/gypcrete-form/src/SelectList';
import SelectOption from '@ichef/gypcrete-form/src/SelectOption';

export default {
title: '@ichef/gypcrete-form|SelectList',
title: 'gypcrete-form/SelectList',
component: SelectList,
subcomponents: { SelectOption },
};
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/form/SelectRow.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import SelectRow, { PureSelectRow } from '@ichef/gypcrete-form/src/SelectRow';
import SelectOption from '@ichef/gypcrete-form/src/SelectOption';

export default {
title: '@ichef/gypcrete-form|SelectRow',
title: 'gypcrete-form/SelectRow',
component: PureSelectRow,
subcomponents: {
'formRow()': SelectRow,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/form/SwitchRow.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { PureSwitch } from '@ichef/gypcrete/src/Switch';
import SwitchRow, { PureSwitchRow } from '@ichef/gypcrete-form/src/SwitchRow';

export default {
title: '@ichef/gypcrete-form|SwitchRow',
title: 'gypcrete-form/SwitchRow',
component: PureSwitchRow,
subcomponents: {
'formRow()': SwitchRow,
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/examples/form/TextInputRow.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PureTextInput } from '@ichef/gypcrete/src/TextInput';
import TextInputRow, { PureTextInputRow } from '@ichef/gypcrete-form/src/TextInputRow';

export default {
title: '@ichef/gypcrete-form|TextInputRow',
title: 'gypcrete-form/TextInputRow',
component: PureTextInputRow,
subcomponents: {
'formRow()': TextInputRow,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import handleCropChange from './utils/handleCropChange';
const EXAMPLE_IMAGE = 'https://i.imgur.com/VfBVxsO.jpg';

export default {
title: '@ichef/gypcrete-imageeditor|ImageEditor',
title: 'gypcrete-imageeditor/ImageEditor',
component: ImageEditor,
subcomponents: { AvatarEditor },
};
Expand Down
12 changes: 6 additions & 6 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"@ichef/gypcrete": "^6.1.0",
"@ichef/gypcrete-form": "^6.1.0",
"@ichef/gypcrete-imageeditor": "^6.1.0",
"@storybook/addon-actions": "^5.3.2",
"@storybook/addon-docs": "^5.3.2",
"@storybook/addon-info": "^5.3.2",
"@storybook/addon-options": "^5.3.2",
"@storybook/addons": "^5.3.2",
"@storybook/react": "^5.3.2",
"@storybook/builder-webpack5": "^6.5.12",
"@storybook/manager-webpack5": "^6.5.12",
"@storybook/addon-actions": "^6.5.12",
"@storybook/addon-docs": "^6.5.12",
"@storybook/addons": "^6.5.12",
"@storybook/react": "^6.5.12",
"autoprefixer": "^7.2.5",
"mini-css-extract-plugin": "^2.7.6",
"prop-types": "^15.6.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/utils/getComponentProps.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { extractProps } from '@storybook/addon-docs/dist/frameworks/react/extractProps';
import { extractProps } from '@storybook/addon-docs';

function formatValue(value) {
switch (typeof value) {
Expand Down
30 changes: 0 additions & 30 deletions packages/storybook/utils/getPropTables.js

This file was deleted.

Loading
Loading