umwd-components 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/ContactForm.js +49 -0
- package/dist/cjs/index.js +2 -0
- package/dist/esm/components/ContactForm.js +45 -0
- package/dist/esm/index.js +1 -0
- package/package.json +1 -1
- package/src/components/ContactForm.js +32 -0
- package/src/index.js +1 -0
- package/src/stories/ContactForm.stories.js +13 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*
|
|
3
|
+
* UMWD-Components
|
|
4
|
+
* @copyright Jelle Paulus
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
'use strict';
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
|
+
|
|
12
|
+
var React = require('react');
|
|
13
|
+
require('prop-types');
|
|
14
|
+
var material = require('@mui/material');
|
|
15
|
+
|
|
16
|
+
function ContactForm({
|
|
17
|
+
...args
|
|
18
|
+
}) {
|
|
19
|
+
return /*#__PURE__*/React.createElement(material.Stack, {
|
|
20
|
+
spacing: 2
|
|
21
|
+
}, /*#__PURE__*/React.createElement(material.Typography, {
|
|
22
|
+
variant: "h6",
|
|
23
|
+
align: "center"
|
|
24
|
+
}, "Write us"), /*#__PURE__*/React.createElement(material.Typography, {
|
|
25
|
+
variant: "body1",
|
|
26
|
+
align: "center"
|
|
27
|
+
}, "We're open for any suggestion or just to have a chat"), /*#__PURE__*/React.createElement(material.TextField, {
|
|
28
|
+
id: "name",
|
|
29
|
+
label: "Name",
|
|
30
|
+
variant: "outlined"
|
|
31
|
+
}), /*#__PURE__*/React.createElement(material.TextField, {
|
|
32
|
+
id: "email",
|
|
33
|
+
label: "Email",
|
|
34
|
+
variant: "outlined"
|
|
35
|
+
}), /*#__PURE__*/React.createElement(material.TextField, {
|
|
36
|
+
id: "subject",
|
|
37
|
+
label: "Subject",
|
|
38
|
+
variant: "outlined"
|
|
39
|
+
}), /*#__PURE__*/React.createElement(material.TextField, {
|
|
40
|
+
id: "message",
|
|
41
|
+
label: "Message",
|
|
42
|
+
variant: "outlined",
|
|
43
|
+
multiline: true,
|
|
44
|
+
minRows: 5
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
ContactForm.propTypes = {};
|
|
48
|
+
|
|
49
|
+
exports.default = ContactForm;
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var NavBar = require('./components/NavBar.js');
|
|
|
14
14
|
var TextImageBlock = require('./components/TextImageBlock.js');
|
|
15
15
|
var Page = require('./components/Page.js');
|
|
16
16
|
var Footer = require('./components/Footer.js');
|
|
17
|
+
var ContactForm = require('./components/ContactForm.js');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
@@ -25,3 +26,4 @@ exports.NavBar = NavBar.default;
|
|
|
25
26
|
exports.TextImageBlock = TextImageBlock.default;
|
|
26
27
|
exports.Page = Page.default;
|
|
27
28
|
exports.Footer = Footer.default;
|
|
29
|
+
exports.ContactForm = ContactForm.default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*
|
|
3
|
+
* UMWD-Components
|
|
4
|
+
* @copyright Jelle Paulus
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import 'prop-types';
|
|
10
|
+
import { Stack, Typography, TextField } from '@mui/material';
|
|
11
|
+
|
|
12
|
+
function ContactForm({
|
|
13
|
+
...args
|
|
14
|
+
}) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(Stack, {
|
|
16
|
+
spacing: 2
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
18
|
+
variant: "h6",
|
|
19
|
+
align: "center"
|
|
20
|
+
}, "Write us"), /*#__PURE__*/React.createElement(Typography, {
|
|
21
|
+
variant: "body1",
|
|
22
|
+
align: "center"
|
|
23
|
+
}, "We're open for any suggestion or just to have a chat"), /*#__PURE__*/React.createElement(TextField, {
|
|
24
|
+
id: "name",
|
|
25
|
+
label: "Name",
|
|
26
|
+
variant: "outlined"
|
|
27
|
+
}), /*#__PURE__*/React.createElement(TextField, {
|
|
28
|
+
id: "email",
|
|
29
|
+
label: "Email",
|
|
30
|
+
variant: "outlined"
|
|
31
|
+
}), /*#__PURE__*/React.createElement(TextField, {
|
|
32
|
+
id: "subject",
|
|
33
|
+
label: "Subject",
|
|
34
|
+
variant: "outlined"
|
|
35
|
+
}), /*#__PURE__*/React.createElement(TextField, {
|
|
36
|
+
id: "message",
|
|
37
|
+
label: "Message",
|
|
38
|
+
variant: "outlined",
|
|
39
|
+
multiline: true,
|
|
40
|
+
minRows: 5
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
ContactForm.propTypes = {};
|
|
44
|
+
|
|
45
|
+
export { ContactForm as default };
|
package/dist/esm/index.js
CHANGED
|
@@ -12,3 +12,4 @@ export { default as NavBar } from './components/NavBar.js';
|
|
|
12
12
|
export { default as TextImageBlock } from './components/TextImageBlock.js';
|
|
13
13
|
export { default as Page } from './components/Page.js';
|
|
14
14
|
export { default as Footer } from './components/Footer.js';
|
|
15
|
+
export { default as ContactForm } from './components/ContactForm.js';
|
package/package.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import PropTypes from "prop-types";
|
|
5
|
+
import { TextField, Typography, Stack } from "@mui/material";
|
|
6
|
+
|
|
7
|
+
function ContactForm({ ...args }) {
|
|
8
|
+
return (
|
|
9
|
+
<Stack spacing={2}>
|
|
10
|
+
<Typography variant="h6" align="center">
|
|
11
|
+
Write us
|
|
12
|
+
</Typography>
|
|
13
|
+
<Typography variant="body1" align="center">
|
|
14
|
+
We're open for any suggestion or just to have a chat
|
|
15
|
+
</Typography>
|
|
16
|
+
<TextField id="name" label="Name" variant="outlined" />
|
|
17
|
+
<TextField id="email" label="Email" variant="outlined" />
|
|
18
|
+
<TextField id="subject" label="Subject" variant="outlined" />
|
|
19
|
+
<TextField
|
|
20
|
+
id="message"
|
|
21
|
+
label="Message"
|
|
22
|
+
variant="outlined"
|
|
23
|
+
multiline
|
|
24
|
+
minRows={5}
|
|
25
|
+
/>
|
|
26
|
+
</Stack>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
ContactForm.propTypes = {};
|
|
31
|
+
|
|
32
|
+
export default ContactForm;
|
package/src/index.js
CHANGED
|
@@ -7,3 +7,4 @@ export { default as NavBar } from "./components/NavBar";
|
|
|
7
7
|
export { default as TextImageBlock } from "./components/TextImageBlock";
|
|
8
8
|
export { default as Page } from "./components/Page";
|
|
9
9
|
export { default as Footer } from "./components/Footer";
|
|
10
|
+
export { default as ContactForm } from "./components/ContactForm";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ContactForm from "../components/ContactForm";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "UMWD/ContactForm",
|
|
6
|
+
component: ContactForm,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const Template = ({ ...args }) => <ContactForm />;
|
|
10
|
+
|
|
11
|
+
export const HelloWorld = Template.bind({});
|
|
12
|
+
|
|
13
|
+
HelloWorld.args = {};
|