diff --git a/src/components/Card/index.jsx b/src/components/Card/index.jsx new file mode 100644 index 0000000..ecb5898 --- /dev/null +++ b/src/components/Card/index.jsx @@ -0,0 +1,15 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +export default function Card({ style, children, ...restProps }) { + return ( +
+ {children} +
+ ); +} + +Card.propTypes = { + style: PropTypes.object, + children: PropTypes.element.isRequired, +}; diff --git a/src/components/File/index.jsx b/src/components/File/index.jsx new file mode 100644 index 0000000..4365e67 --- /dev/null +++ b/src/components/File/index.jsx @@ -0,0 +1,15 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +import Input from '../Input'; + +export default function File({ name, accept, ...restProps }) { + return ( + + ); +} + +File.propTypes = { + name: PropTypes.string, + accept: PropTypes.string, +}; diff --git a/src/components/Select/index.jsx b/src/components/Select/index.jsx new file mode 100644 index 0000000..38726fc --- /dev/null +++ b/src/components/Select/index.jsx @@ -0,0 +1,23 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +export default function Select({ name, options }) { + return ( + + ); +} + +Select.propTypes = { + name: PropTypes.string, + options: PropTypes.array, +}; + +Select.defaultProps = { + options: [], +}; diff --git a/src/components/Textarea/index.jsx b/src/components/Textarea/index.jsx new file mode 100644 index 0000000..f232f46 --- /dev/null +++ b/src/components/Textarea/index.jsx @@ -0,0 +1,21 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +export default function Textarea({ name, text, rows, cols, ...restProps }) { + return ( + + ); +} + +Textarea.propTypes = { + name: PropTypes.string, + text: PropTypes.string, + rows: PropTypes.number, + cols: PropTypes.number, +}; + +Textarea.defaultProps = { + checked: false, +}; diff --git a/src/components/Typography/index.jsx b/src/components/Typography/index.jsx new file mode 100644 index 0000000..ccd1d46 --- /dev/null +++ b/src/components/Typography/index.jsx @@ -0,0 +1,15 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +export default function Typography({ type, text, ...restProps }) { + return React.createElement(`${type}`, { ...restProps }, text); +} + +Typography.propTypes = { + type: PropTypes.string, + text: PropTypes.string.isRequired, +}; + +Typography.defaultProps = { + type: 'div', +};