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

Storybook show code fix #117

Merged
merged 28 commits into from
Apr 24, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ba410e5
Show code showing actual code in layout Storybook.
ogjtech Mar 25, 2021
de91ee2
Show code showing actual code in navigation Storybook.
ogjtech Mar 25, 2021
12da8eb
Show code showing actual code in surfaces Storybook.
ogjtech Mar 25, 2021
11313c8
Show code showing actual code in data display Storybook.
ogjtech Mar 25, 2021
75a607e
Show code showing actual code in input Storybook.
ogjtech Mar 25, 2021
c1dfeb0
Experimental commit, providing different types of code docs per compo…
ogjtech Apr 3, 2021
7f9b9ee
Redefined code examples of components based on best possible overview
ogjtech Apr 3, 2021
5a124ee
Experimental commit: Show possibility of providing custom code docume…
MCarsjensGX Apr 9, 2021
17c179b
Experimental commit: custom code docs per component.
ogjtech Apr 10, 2021
c153c8a
Applied per-component docs specification for input components.
ogjtech Apr 17, 2021
f36e4cd
Applied per-component code doc specs to layout components.
ogjtech Apr 17, 2021
e47060a
Applied per-component code doc specs to navigation components.
ogjtech Apr 17, 2021
8e846c5
Applied per-component code doc specs to surface components.
ogjtech Apr 17, 2021
bc171aa
Merge remote-tracking branch 'origin/development' into storybook_show…
ogjtech Apr 17, 2021
26b806c
Shortened import
ogjtech Apr 17, 2021
cb63f06
Merge remote-tracking branch 'origin/storybook_show_code_fix' into st…
ogjtech Apr 24, 2021
eb0fcbf
Defined custom code in separate variable to fix indentation
ogjtech Apr 24, 2021
b707fcc
Defined custom code in separate variable to fix indentation for input…
ogjtech Apr 24, 2021
86f2620
Defined custom code in separate variable to fix indentation for navig…
ogjtech Apr 24, 2021
ab9ef0d
Defined custom code in separate variable to fix indentation for navig…
ogjtech Apr 24, 2021
49808df
Defined custom code in separate variable to fix indentation for surfa…
ogjtech Apr 24, 2021
3f39bd8
Fixed indendation for surfaces.. Again...
ogjtech Apr 24, 2021
bf48d2a
Fixed indendation for navigation.. Again...
ogjtech Apr 24, 2021
bb98908
Fixed indendation for layout.. Again...
ogjtech Apr 24, 2021
2ebfa87
Fixed indendation for input.. Again...
ogjtech Apr 24, 2021
f0bf340
Fixed indendation for datadisplay.. Again...
ogjtech Apr 24, 2021
26c5029
Prettifier go brrr
ogjtech Apr 24, 2021
e48e182
Prettifier go brrr and also fixed indentation again because Checkboxe…
ogjtech Apr 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/stories/datadisplay/Avatar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default {
title: "Components/Data Display/Avatar",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Avatar,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/datadisplay/AvatarGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default {
title: "Components/Data Display/AvatarGroup",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: AvatarGroup,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/datadisplay/Badge.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default {
title: "Components/Data Display/Badge",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Badge,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/datadisplay/Divider.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ export default {
title: "Components/Data Display/Divider",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Divider,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/datadisplay/List.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export default {
title: "Components/Data Display/List",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: List,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/datadisplay/Typography.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default {
title: "Components/Data Display/Typography",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Typography,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export default {
title: "Components/Input/Button",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Button,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/ButtonGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default {
title: "Components/Input/ButtonGroup",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: ButtonGroup,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export default {
title: "Components/Input/Checkbox",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Checkbox,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/DatePicker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export default {
title: "Components/Input/DatePicker",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: DatePicker,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/FormControlLabel.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export default {
title: "Components/Input/FormControlLabel",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: FormControlLabel,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/FormGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ export default {
title: "Components/Input/FormGroup",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: FormGroup,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/IconButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default {
title: "Components/Input/IconButton",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: IconButton,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/KeyBoardDatePicker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export default {
title: "Components/Input/KeyboardDatePicker",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: KeyboardDatePicker,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/Radio.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export default {
title: "Components/Input/Radio",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Radio,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/RadioGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default {
title: "Components/Input/RadioGroup",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: RadioGroup,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/Select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export default {
title: "Components/Input/Select",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Select,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/Switch.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default {
title: "Components/Input/Switch",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Switch,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/input/TextField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default {
title: "Components/Input/TextField",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: TextField,
argTypes: {
Expand Down
5 changes: 5 additions & 0 deletions src/stories/layout/Box.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default {
title: "Components/Layout/Box",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Box,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/layout/Container.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default {
component: Container,
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
} as Meta;

Expand Down
5 changes: 5 additions & 0 deletions src/stories/layout/Grid.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default {
title: "Components/Layout/Grid",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Grid,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/layout/GridList.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export default {
title: "Components/Layout/GridList",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: GridList,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/layout/GridListTile.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default {
title: "Components/Layout/GridList/GridListTile",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: GridListTile,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/layout/GridListTileBar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export default {
title: "Components/Layout/GridList/GridListTile/GridListTileBar",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: GridListTileBar,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/layout/Hidden.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default {
title: "Components/Layout/Hidden",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Hidden,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/navigation/Drawer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default {
title: "Components/Navigation/Drawer",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Drawer,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/navigation/Link.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default {
title: "Components/Navigation/Link",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Link,
} as Meta;
Expand Down
7 changes: 6 additions & 1 deletion src/stories/navigation/Menu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export default {
title: "Components/Navigation/Menu",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Menu,
} as Meta;
Expand All @@ -17,7 +22,7 @@ const opened = false;

const Template: Story<MenuProps> = (args: any) => {
const [anchorEl, setAnchorEl] = React.useState(null);
const handleClick = (event) =>
const handleClick = (event) =>
{
setAnchorEl(event.currentTarget);
}
Expand Down
5 changes: 5 additions & 0 deletions src/stories/navigation/MenuItem.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export default {
title: "Components/Navigation/Menu/MenuItem",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: MenuItem,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/navigation/MenuList.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default {
title: "Components/Navigation/Menu/MenuList",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: MenuList,
} as Meta;
Expand Down
5 changes: 5 additions & 0 deletions src/stories/navigation/Stepper.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ export default {
title: "Components/navigation/Stepper",
parameters: {
componentSubtitle: `${pkg.name} - ${pkg.version}`,
docs: {
source: {
type: "code"
}
}
},
component: Stepper,
} as Meta;
Expand Down