Skip to content

Commit

Permalink
enable view source on all stories
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWatenbergScality committed Sep 22, 2022
1 parent c20cab0 commit 94a9977
Show file tree
Hide file tree
Showing 59 changed files with 110 additions and 112 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"extends": "react-app"
"extends": "react-app",
"ignorePatterns": "stories"
}
2 changes: 1 addition & 1 deletion stories/areachart.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default {
title: 'Components/Chart/AreaChart',
component: AreaChart,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<Title>Vege-Lite area chart</Title>
Expand Down
6 changes: 3 additions & 3 deletions stories/banner.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
},
},
};
export const ErrorBanner = () => (
export const ErrorBanner = ({}) => (
<Wrapper>
<Banner
variant="danger"
Expand All @@ -44,7 +44,7 @@ export const ErrorBanner = () => (
</Banner>
</Wrapper>
);
export const WarningBanner = () => (
export const WarningBanner = ({}) => (
<Wrapper>
<Banner
variant="warning"
Expand All @@ -55,7 +55,7 @@ export const WarningBanner = () => (
</Banner>
</Wrapper>
);
export const SuccessBanner = () => (
export const SuccessBanner = ({}) => (
<Wrapper>
<Banner
variant="healthy"
Expand Down
2 changes: 1 addition & 1 deletion stories/barchart.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default {
title: 'Components/Chart/BarChart',
component: BarChart,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<SyncedCursorCharts>
Expand Down
8 changes: 4 additions & 4 deletions stories/box.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const HighlightBorder = styled.div`
}
`;

export const margin = () => {
export const margin = ({}) => {
return (
<HighlightBorder>
<Box m={0}>Props m 0 = 0</Box>
Expand All @@ -39,7 +39,7 @@ export const margin = () => {
</HighlightBorder>
);
};
export const font = () => {
export const font = ({}) => {
return (
<HighlightBorder>
<Box fontSize="smaller">Smaller font</Box>
Expand All @@ -52,7 +52,7 @@ export const font = () => {
</HighlightBorder>
);
};
export const position = () => {
export const position = ({}) => {
return (
<HighlightBorder>
<Box display="flex" justifyContent="space-between" fontSize="smaller">
Expand Down Expand Up @@ -91,7 +91,7 @@ export const position = () => {
</HighlightBorder>
);
};
export const colors = () => {
export const colors = ({}) => {
return (
<HighlightBorder>
<Box color="red">red</Box>
Expand Down
2 changes: 1 addition & 1 deletion stories/breadcrumb.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
title: 'Components/Navigation/Breadcrumb',
component: Breadcrumb,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<Title>Default Breadcrumb </Title>
Expand Down
2 changes: 1 addition & 1 deletion stories/button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
title: 'Components/Button',
component: Button,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper className="storybook-button">
<Title>Button Default</Title>
Expand Down
4 changes: 1 addition & 3 deletions stories/buttonv2.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import { action } from '@storybook/addon-actions';
import { Button } from '../src/lib/components/buttonv2/Buttonv2.component';
import { Wrapper, Title } from './common';
import { CopyButton } from '../src/lib/next';
//eslint-disable-next-line

export default {
title: 'Components/v2/Button',
component: Button,
};

//eslint-disable-next-line
export const Default = ({}) => {
return (
<Wrapper className="storybook-button">
Expand Down Expand Up @@ -180,7 +179,6 @@ export const Default = ({}) => {
);
};

//eslint-disable-next-line
export const CopyButtonStory = ({}) => {
return <Wrapper className="storybook-button">
<Title>Ghost: Without label</Title>
Expand Down
4 changes: 2 additions & 2 deletions stories/card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const defaultPropsCard = {
onClick: () => console.log('Clicked!'),
};
const statuses = ['healthy', 'warning', 'critical'];
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<Title>
Expand Down Expand Up @@ -111,7 +111,7 @@ export const Default = () => {
</Wrapper>
);
};
export const Customized = () => {
export const Customized = ({}) => {
return (
<Wrapper>
<Title>No Header</Title>
Expand Down
2 changes: 1 addition & 1 deletion stories/checkbox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
title: 'Components/Checkbox',
component: Checkbox,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<Title>Checkbox checked</Title>
Expand Down
2 changes: 1 addition & 1 deletion stories/chips.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
title: 'Components/Chips',
component: Chips,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper className="storybook-chips">
<Title>Basic Chip</Title>
Expand Down
2 changes: 1 addition & 1 deletion stories/circularprogressbar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
title: 'Components/Progress & loading/CircularProgressBar',
component: CircularProgressBar,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<Title>With Default Color</Title>
Expand Down
2 changes: 1 addition & 1 deletion stories/cloudprogressbar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
title: 'Components/Progress & loading/CloudProgressBar',
component: CloudProgressBar,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<Title>CloudProgressBar</Title>
Expand Down
2 changes: 1 addition & 1 deletion stories/collapsiblepanel.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
title: 'Components/Navigation/CollapsiblePanel',
component: CollapsiblePanel,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper className="storybook-collapsiblepanel">
<Title>Collapsed</Title>
Expand Down
2 changes: 1 addition & 1 deletion stories/constrainedtext.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
title: 'Components/Constrainedtext',
component: ConstrainedText,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<Title>Constrained Text</Title>
Expand Down
2 changes: 1 addition & 1 deletion stories/dropdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
title: 'Components/Dropdown',
component: Dropdown,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper className="storybook-dropdown">
<Title>Dropdown with text/icon</Title>
Expand Down
4 changes: 2 additions & 2 deletions stories/emptystate.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
title: 'Components/EmptyState',
component: EmptyState,
};
export const WithLink = () => {
export const WithLink = ({}) =>=> {
return (
<Wrapper>
<EmptyState
Expand All @@ -19,7 +19,7 @@ export const WithLink = () => {
</Wrapper>
);
};
export const WithoutLink = () => {
export const WithoutLink = ({}) =>=> {
return (
<Wrapper>
<EmptyState icon="Node-backend" label="node" />
Expand Down
4 changes: 2 additions & 2 deletions stories/errorpage401.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
title: 'Components/Navigation/ErrorPages/401',
component: ErrorPage401,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<div
Expand All @@ -21,7 +21,7 @@ export const Default = () => {
</Wrapper>
);
};
export const WithLocale = () => {
export const WithLocale = ({}) => {
return (
<Wrapper>
<div
Expand Down
4 changes: 2 additions & 2 deletions stories/errorpage404.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
title: 'Components/Navigation/ErrorPages/404',
component: ErrorPage404,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<div
Expand All @@ -18,7 +18,7 @@ export const Default = () => {
</Wrapper>
);
};
export const WithLocale = () => {
export const WithLocale = ({}) => {
return (
<Wrapper>
<div
Expand Down
6 changes: 3 additions & 3 deletions stories/errorpage500.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
title: 'Components/Navigation/ErrorPages/500',
component: ErrorPage500,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<div
Expand All @@ -18,7 +18,7 @@ export const Default = () => {
</Wrapper>
);
};
export const WithSupportLink = () => {
export const WithSupportLink = ({}) => {
return (
<Wrapper>
<div
Expand All @@ -34,7 +34,7 @@ export const WithSupportLink = () => {
</Wrapper>
);
};
export const WithLocale = () => {
export const WithLocale = ({}) => {
return (
<Wrapper>
<div
Expand Down
6 changes: 3 additions & 3 deletions stories/errorpageauth.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
title: 'Components/Navigation/ErrorPages/Auth',
component: ErrorPageAuth,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<div
Expand All @@ -18,7 +18,7 @@ export const Default = () => {
</Wrapper>
);
};
export const WithSupportLink = () => {
export const WithSupportLink = ({}) => {
return (
<Wrapper>
<div
Expand All @@ -34,7 +34,7 @@ export const WithSupportLink = () => {
</Wrapper>
);
};
export const WithLocale = () => {
export const WithLocale = ({}) => {
return (
<Wrapper>
<div
Expand Down
6 changes: 3 additions & 3 deletions stories/form.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
component: Form,
};

export const PageForm = () => {
export const PageForm = ({}) => {
return (
<div
style={{
Expand Down Expand Up @@ -160,7 +160,7 @@ export const PageForm = () => {
);
};

export const AllRequiredPageForm = () => {
export const AllRequiredPageForm = ({}) => {
return (
<div
style={{
Expand Down Expand Up @@ -213,7 +213,7 @@ export const AllRequiredPageForm = () => {
);
};

export const TabForm = () => {
export const TabForm = ({}) => {
return (
<div
style={{
Expand Down
2 changes: 1 addition & 1 deletion stories/globalhealthbar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const startLast24h = '2021-02-01T00:00:00Z';
const endLast24h = '2021-02-02T00:00:00Z';
const startNotFirstDay = '2021-02-23T23:00:00Z';
const endNotFirstDay = '2021-03-01T23:00:00Z';
export const Default = () => {
export const Default = ({}) => {
return (
<div>
<Wrapper>
Expand Down
2 changes: 1 addition & 1 deletion stories/guideline/mdxExampleComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const barConfig = {
cornerRadius: 8,
size: 12,
};
export const ChartExample = () => (
export const ChartExample = ({}) => (
<BarChart
id={idVerticalStacked}
data={verticalStackedData}
Expand Down
2 changes: 1 addition & 1 deletion stories/healthselector.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
title: 'Components/Selector/Healthselector',
component: Healthselector,
};
export const Default = () => {
export const Default = ({}) => {
const [selected, setSelected] = useState(0);
action('All clicked');
let items = [
Expand Down
2 changes: 1 addition & 1 deletion stories/healthselectorv2.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
const HealthSelectorWrapper = styled.div`
width: 205px;
`;
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<Title>Basic usage</Title>
Expand Down
2 changes: 1 addition & 1 deletion stories/icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
title: 'Components/Icon',
component: Icon,
};
export const Default = () => {
export const Default = ({}) => {
return (
<Wrapper>
<Title>Customized Icons</Title>
Expand Down
Loading

0 comments on commit 94a9977

Please sign in to comment.