From 00a222c7b4afcc7a44623160f2571fa58af33ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Tard=C3=ADn?= Date: Mon, 29 Aug 2022 21:15:03 +0200 Subject: [PATCH] These were added by accident --- storybook/stories/Button.jsx | 50 ----- storybook/stories/Button.stories.jsx | 40 ---- storybook/stories/Header.jsx | 57 ------ storybook/stories/Header.stories.jsx | 24 --- storybook/stories/Introduction.stories.mdx | 211 --------------------- storybook/stories/Page.jsx | 69 ------- storybook/stories/Page.stories.jsx | 25 --- storybook/stories/assets/code-brackets.svg | 1 - storybook/stories/assets/colors.svg | 1 - storybook/stories/assets/comments.svg | 1 - storybook/stories/assets/direction.svg | 1 - storybook/stories/assets/flow.svg | 1 - storybook/stories/assets/plugin.svg | 1 - storybook/stories/assets/repo.svg | 1 - storybook/stories/assets/stackalt.svg | 1 - storybook/stories/button.css | 30 --- storybook/stories/header.css | 32 ---- storybook/stories/page.css | 69 ------- 18 files changed, 615 deletions(-) delete mode 100644 storybook/stories/Button.jsx delete mode 100644 storybook/stories/Button.stories.jsx delete mode 100644 storybook/stories/Header.jsx delete mode 100644 storybook/stories/Header.stories.jsx delete mode 100644 storybook/stories/Introduction.stories.mdx delete mode 100644 storybook/stories/Page.jsx delete mode 100644 storybook/stories/Page.stories.jsx delete mode 100644 storybook/stories/assets/code-brackets.svg delete mode 100644 storybook/stories/assets/colors.svg delete mode 100644 storybook/stories/assets/comments.svg delete mode 100644 storybook/stories/assets/direction.svg delete mode 100644 storybook/stories/assets/flow.svg delete mode 100644 storybook/stories/assets/plugin.svg delete mode 100644 storybook/stories/assets/repo.svg delete mode 100644 storybook/stories/assets/stackalt.svg delete mode 100644 storybook/stories/button.css delete mode 100644 storybook/stories/header.css delete mode 100644 storybook/stories/page.css diff --git a/storybook/stories/Button.jsx b/storybook/stories/Button.jsx deleted file mode 100644 index 15dde39..0000000 --- a/storybook/stories/Button.jsx +++ /dev/null @@ -1,50 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import './button.css'; - -/** - * Primary UI component for user interaction - */ -export const Button = ({ primary, backgroundColor, size, label, ...props }) => { - const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary'; - return ( - - ); -}; - -Button.propTypes = { - /** - * Is this the principal call to action on the page? - */ - primary: PropTypes.bool, - /** - * What background color to use - */ - backgroundColor: PropTypes.string, - /** - * How large should the button be? - */ - size: PropTypes.oneOf(['small', 'medium', 'large']), - /** - * Button contents - */ - label: PropTypes.string.isRequired, - /** - * Optional click handler - */ - onClick: PropTypes.func, -}; - -Button.defaultProps = { - backgroundColor: null, - primary: false, - size: 'medium', - onClick: undefined, -}; diff --git a/storybook/stories/Button.stories.jsx b/storybook/stories/Button.stories.jsx deleted file mode 100644 index 61f6e19..0000000 --- a/storybook/stories/Button.stories.jsx +++ /dev/null @@ -1,40 +0,0 @@ -import React from 'react'; - -import { Button } from './Button'; - -// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export -export default { - title: 'Example/Button', - component: Button, - // More on argTypes: https://storybook.js.org/docs/react/api/argtypes - argTypes: { - backgroundColor: { control: 'color' }, - }, -}; - -// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args -const Template = (args) =>