umwd-components 0.1.85 → 0.1.88

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.
Files changed (35) hide show
  1. package/dist/cjs/components/ColumnsSection.js +70 -0
  2. package/dist/cjs/components/ContactForm.js +1 -0
  3. package/dist/cjs/components/FeaturesSection.js +1 -1
  4. package/dist/cjs/components/IconSection.js +2 -2
  5. package/dist/cjs/components/Page.js +6 -0
  6. package/dist/cjs/lib/AmbulanceIcon.js +45 -0
  7. package/dist/cjs/lib/getIcon.js +3 -0
  8. package/dist/esm/components/BulletList.js +5 -5
  9. package/dist/esm/components/Button.js +2 -2
  10. package/dist/esm/components/ColumnsSection.js +68 -0
  11. package/dist/esm/components/ContactForm.js +26 -25
  12. package/dist/esm/components/FeaturesSection.js +12 -12
  13. package/dist/esm/components/FleetSection.js +18 -18
  14. package/dist/esm/components/Footer.js +37 -37
  15. package/dist/esm/components/HeroSection.js +10 -10
  16. package/dist/esm/components/IconSection.js +10 -10
  17. package/dist/esm/components/NavBar.js +40 -40
  18. package/dist/esm/components/Page.js +15 -9
  19. package/dist/esm/components/Stack.js +2 -2
  20. package/dist/esm/components/StrapiImage.js +2 -2
  21. package/dist/esm/components/TextImageSection.js +10 -10
  22. package/dist/esm/components/WebsitePlaceholder.js +9 -9
  23. package/dist/esm/components/WhatsAppClickToChatButton.js +8 -8
  24. package/dist/esm/lib/AmbulanceIcon.js +22 -0
  25. package/dist/esm/lib/getIcon.js +3 -0
  26. package/package.json +1 -1
  27. package/src/components/ColumnsSection.tsx +82 -0
  28. package/src/components/ContactForm.tsx +1 -0
  29. package/src/components/FeaturesSection.tsx +1 -1
  30. package/src/components/IconSection.tsx +1 -2
  31. package/src/components/Page.js +3 -0
  32. package/src/lib/AmbulanceIcon.svg +13 -0
  33. package/src/lib/AmbulanceIcon.tsx +22 -0
  34. package/src/lib/getIcon.ts +3 -0
  35. package/src/stories/Page.stories.js +28 -17
@@ -0,0 +1,70 @@
1
+ /*
2
+ * UMWD-Components
3
+ * @copyright Jelle Paulus
4
+ * @license MIT
5
+ */
6
+
7
+ 'use strict';
8
+
9
+ var React = require('react');
10
+ var material = require('@mui/material');
11
+ var getIcon = require('../lib/getIcon.js');
12
+ var LocalShippingIcon = require('@mui/icons-material/LocalShipping');
13
+
14
+ function ColumnsSection(_ref) {
15
+ let {
16
+ data
17
+ } = _ref;
18
+ const {
19
+ column
20
+ } = data;
21
+ console.log(LocalShippingIcon);
22
+ return /*#__PURE__*/React.createElement(material.Container, {
23
+ maxWidth: "lg",
24
+ sx: {
25
+ my: 1
26
+ }
27
+ }, /*#__PURE__*/React.createElement(material.Stack, {
28
+ spacing: 2,
29
+ direction: "row",
30
+ justifyContent: "stretch",
31
+ flexWrap: "wrap",
32
+ sx: {
33
+ width: "100%"
34
+ },
35
+ useFlexGap: true
36
+ }, column.map(column => {
37
+ const Icon = getIcon.default(column.icon);
38
+ return /*#__PURE__*/React.createElement(material.Card, {
39
+ key: column.id,
40
+ sx: {
41
+ display: "flex",
42
+ flexDirection: "column",
43
+ justifyContent: "space-between",
44
+ flex: 1,
45
+ minWidth: "350px"
46
+ }
47
+ }, /*#__PURE__*/React.createElement(material.CardContent, null, /*#__PURE__*/React.createElement(material.Typography, {
48
+ variant: "h5",
49
+ component: "div",
50
+ sx: {
51
+ mb: 2
52
+ }
53
+ }, Icon !== null && /*#__PURE__*/React.createElement(Icon, {
54
+ sx: {
55
+ mr: 2,
56
+ mt: 0.2,
57
+ width: "50px",
58
+ height: "50px",
59
+ fill: "currentColor",
60
+ stroke: "none"
61
+ }
62
+ }), column.heading), /*#__PURE__*/React.createElement(material.Typography, {
63
+ variant: "body2",
64
+ color: "text.secondary",
65
+ component: "div"
66
+ }, column.text)));
67
+ })));
68
+ }
69
+
70
+ exports.ColumnsSection = ColumnsSection;
@@ -80,6 +80,7 @@ function ContactForm(_ref) {
80
80
  const handleSubmit = async e => {
81
81
  e.preventDefault();
82
82
  let isValidForm = validate(formValues);
83
+ console.log("isValidForm", isValidForm);
83
84
  if (Object.keys(isValidForm).length === 0) {
84
85
  const res = await fetch("/api/sendgrid", {
85
86
  body: JSON.stringify({
@@ -83,7 +83,7 @@ function FeatureSection(_ref) {
83
83
  }
84
84
  }, /*#__PURE__*/React.createElement(material.Button, {
85
85
  size: "small"
86
- }, "Share"), /*#__PURE__*/React.createElement(material.Button, {
86
+ }, "Contact"), /*#__PURE__*/React.createElement(material.Button, {
87
87
  size: "small"
88
88
  }, "Learn More")));
89
89
  })));
@@ -32,9 +32,9 @@ function IconSection(_ref) {
32
32
  xs: 12,
33
33
  sm: 6,
34
34
  md: 4,
35
- lg: 3
35
+ lg: 3,
36
+ key: icon.id
36
37
  }, /*#__PURE__*/React.createElement(material.Card, {
37
- key: icon.id,
38
38
  sx: {
39
39
  display: "flex",
40
40
  flexDirection: "column",
@@ -16,6 +16,7 @@ var HeroSection = require('./HeroSection.js');
16
16
  var FeaturesSection = require('./FeaturesSection.js');
17
17
  var FleetSection = require('./FleetSection.js');
18
18
  var IconSection = require('./IconSection.js');
19
+ var ColumnsSection = require('./ColumnsSection.js');
19
20
  var material = require('@mui/material');
20
21
  var ContactForm = require('./ContactForm.js');
21
22
 
@@ -51,6 +52,11 @@ function blockRenderer(block) {
51
52
  key: block.id,
52
53
  data: block
53
54
  });
55
+ case "layout.columns-section":
56
+ return /*#__PURE__*/React.createElement(ColumnsSection.ColumnsSection, {
57
+ key: block.id,
58
+ data: block
59
+ });
54
60
  default:
55
61
  return null;
56
62
  }
@@ -0,0 +1,45 @@
1
+ /*
2
+ * UMWD-Components
3
+ * @copyright Jelle Paulus
4
+ * @license MIT
5
+ */
6
+
7
+ 'use strict';
8
+
9
+ Object.defineProperty(exports, '__esModule', { value: true });
10
+
11
+ var React = require('react');
12
+ var SvgIcon = require('@mui/material/SvgIcon');
13
+
14
+ function _interopNamespaceDefault(e) {
15
+ var n = Object.create(null);
16
+ if (e) {
17
+ Object.keys(e).forEach(function (k) {
18
+ if (k !== 'default') {
19
+ var d = Object.getOwnPropertyDescriptor(e, k);
20
+ Object.defineProperty(n, k, d.get ? d : {
21
+ enumerable: true,
22
+ get: function () { return e[k]; }
23
+ });
24
+ }
25
+ });
26
+ }
27
+ n.default = e;
28
+ return Object.freeze(n);
29
+ }
30
+
31
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
32
+
33
+ function AmbulanceIcon(props) {
34
+ return /*#__PURE__*/React__namespace.createElement(SvgIcon, props, /*#__PURE__*/React__namespace.createElement("svg", {
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ fill: "currentColor",
37
+ viewBox: "0 0 24 24",
38
+ strokeWidth: 1,
39
+ stroke: "currentColor"
40
+ }, /*#__PURE__*/React__namespace.createElement("path", {
41
+ d: "M20,8h-3V7c0-1.1-0.9-2-2-2H3C1.9,5,1,5.9,1,7v10h2c0,1.7,1.3,3,3,3s3-1.3,3-3h6c0,1.7,1.3,3,3,3s3-1.3,3-3h2v-5L20,8z\r M6,18.5c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S6.8,18.5,6,18.5z M12.2,11.3h-1.7V13H8.1v-1.7H6.5V9h1.7V7.3h2.3\r V9h1.7V11.3z M18,18.5c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S18.8,18.5,18,18.5z M17,12V9.5h2.5l2,2.5H17z"
42
+ })));
43
+ }
44
+
45
+ exports.default = AmbulanceIcon;
@@ -28,6 +28,7 @@ var PropaneTankIcon = require('@mui/icons-material/PropaneTank');
28
28
  var MasksIcon = require('@mui/icons-material/Masks');
29
29
  var BoltIcon = require('@mui/icons-material/Bolt');
30
30
  var BedIcon = require('@mui/icons-material/Bed');
31
+ var AmbulanceIcon = require('./AmbulanceIcon.js');
31
32
 
32
33
  function getIcon(icon) {
33
34
  switch (icon) {
@@ -71,6 +72,8 @@ function getIcon(icon) {
71
72
  return BoltIcon;
72
73
  case "BedIcon":
73
74
  return BedIcon;
75
+ case "AmbulanceIcon":
76
+ return AmbulanceIcon.default;
74
77
  default:
75
78
  return null;
76
79
  }
@@ -5,7 +5,7 @@
5
5
  * @license MIT
6
6
  */
7
7
 
8
- import React from 'react';
8
+ import React__default from 'react';
9
9
  import PropTypes from 'prop-types';
10
10
  import { Stack, Typography, SvgIcon } from '@mui/material';
11
11
  import FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord';
@@ -16,9 +16,9 @@ function BulletList(_ref) {
16
16
  bulletSVG
17
17
  } = _ref;
18
18
  console.log("bulletSVG2", bulletSVG);
19
- return /*#__PURE__*/React.createElement(Stack, {
19
+ return /*#__PURE__*/React__default.createElement(Stack, {
20
20
  spacing: 2
21
- }, bullets.map((bullet, index) => /*#__PURE__*/React.createElement(Typography, {
21
+ }, bullets.map((bullet, index) => /*#__PURE__*/React__default.createElement(Typography, {
22
22
  key: index,
23
23
  sx: {
24
24
  verticalAlign: "center",
@@ -26,11 +26,11 @@ function BulletList(_ref) {
26
26
  justifyContent: "flex-start",
27
27
  display: "inline-flex"
28
28
  }
29
- }, bulletSVG ? /*#__PURE__*/React.createElement(SvgIcon, {
29
+ }, bulletSVG ? /*#__PURE__*/React__default.createElement(SvgIcon, {
30
30
  sx: {
31
31
  mr: 1
32
32
  }
33
- }, bulletSVG) : /*#__PURE__*/React.createElement(FiberManualRecordIcon, null), bullet)));
33
+ }, bulletSVG) : /*#__PURE__*/React__default.createElement(FiberManualRecordIcon, null), bullet)));
34
34
  }
35
35
  BulletList.propTypes = {
36
36
  bullets: PropTypes.arrayOf(PropTypes.string).isRequired
@@ -4,7 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
 
7
- import React from 'react';
7
+ import React__default from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
 
10
10
  function Button(_ref) {
@@ -26,7 +26,7 @@ function Button(_ref) {
26
26
  padding: "".concat(0.5 * scale, "rem ").concat(1 * scale, "rem"),
27
27
  border: "none"
28
28
  };
29
- return /*#__PURE__*/React.createElement("button", {
29
+ return /*#__PURE__*/React__default.createElement("button", {
30
30
  style: style,
31
31
  onClick: onClick
32
32
  }, label);
@@ -0,0 +1,68 @@
1
+ /*
2
+ * UMWD-Components
3
+ * @copyright Jelle Paulus
4
+ * @license MIT
5
+ */
6
+
7
+ import React__default from 'react';
8
+ import { Container, Stack, Card, CardContent, Typography } from '@mui/material';
9
+ import getIcon from '../lib/getIcon.js';
10
+ import LocalShippingIcon from '@mui/icons-material/LocalShipping';
11
+
12
+ function ColumnsSection(_ref) {
13
+ let {
14
+ data
15
+ } = _ref;
16
+ const {
17
+ column
18
+ } = data;
19
+ console.log(LocalShippingIcon);
20
+ return /*#__PURE__*/React__default.createElement(Container, {
21
+ maxWidth: "lg",
22
+ sx: {
23
+ my: 1
24
+ }
25
+ }, /*#__PURE__*/React__default.createElement(Stack, {
26
+ spacing: 2,
27
+ direction: "row",
28
+ justifyContent: "stretch",
29
+ flexWrap: "wrap",
30
+ sx: {
31
+ width: "100%"
32
+ },
33
+ useFlexGap: true
34
+ }, column.map(column => {
35
+ const Icon = getIcon(column.icon);
36
+ return /*#__PURE__*/React__default.createElement(Card, {
37
+ key: column.id,
38
+ sx: {
39
+ display: "flex",
40
+ flexDirection: "column",
41
+ justifyContent: "space-between",
42
+ flex: 1,
43
+ minWidth: "350px"
44
+ }
45
+ }, /*#__PURE__*/React__default.createElement(CardContent, null, /*#__PURE__*/React__default.createElement(Typography, {
46
+ variant: "h5",
47
+ component: "div",
48
+ sx: {
49
+ mb: 2
50
+ }
51
+ }, Icon !== null && /*#__PURE__*/React__default.createElement(Icon, {
52
+ sx: {
53
+ mr: 2,
54
+ mt: 0.2,
55
+ width: "50px",
56
+ height: "50px",
57
+ fill: "currentColor",
58
+ stroke: "none"
59
+ }
60
+ }), column.heading), /*#__PURE__*/React__default.createElement(Typography, {
61
+ variant: "body2",
62
+ color: "text.secondary",
63
+ component: "div"
64
+ }, column.text)));
65
+ })));
66
+ }
67
+
68
+ export { ColumnsSection };
@@ -5,7 +5,7 @@
5
5
  * @license MIT
6
6
  */
7
7
 
8
- import React from 'react';
8
+ import React__default from 'react';
9
9
  import { Container, Stack, Typography, Paper, Button, TextField } from '@mui/material';
10
10
  import isEmail from 'validator/lib/isEmail';
11
11
 
@@ -16,20 +16,20 @@ function ContactForm(_ref) {
16
16
  const {
17
17
  maxWidth
18
18
  } = data;
19
- const [formValues, setFormValues] = React.useState({
19
+ const [formValues, setFormValues] = React__default.useState({
20
20
  name: "",
21
21
  email: "",
22
22
  subject: "",
23
23
  message: ""
24
24
  });
25
- const [formErrors, setFormErrors] = React.useState({});
25
+ const [formErrors, setFormErrors] = React__default.useState({});
26
26
 
27
27
  // Setting button text on form submission
28
- React.useState("Send");
28
+ React__default.useState("Send");
29
29
 
30
30
  // Setting success or failure messages states
31
- const [showSuccessMessage, setShowSuccessMessage] = React.useState(false);
32
- const [showFailureMessage, setShowFailureMessage] = React.useState(false);
31
+ const [showSuccessMessage, setShowSuccessMessage] = React__default.useState(false);
32
+ const [showFailureMessage, setShowFailureMessage] = React__default.useState(false);
33
33
  const handleChange = e => {
34
34
  const {
35
35
  name,
@@ -76,6 +76,7 @@ function ContactForm(_ref) {
76
76
  const handleSubmit = async e => {
77
77
  e.preventDefault();
78
78
  let isValidForm = validate(formValues);
79
+ console.log("isValidForm", isValidForm);
79
80
  if (Object.keys(isValidForm).length === 0) {
80
81
  const res = await fetch("/api/sendgrid", {
81
82
  body: JSON.stringify({
@@ -121,45 +122,45 @@ function ContactForm(_ref) {
121
122
  console.log("errors from validate", errors);
122
123
  return errors;
123
124
  };
124
- return /*#__PURE__*/React.createElement(Container, {
125
+ return /*#__PURE__*/React__default.createElement(Container, {
125
126
  maxWidth: maxWidth ? maxWidth : "lg",
126
127
  sx: {
127
128
  my: 1
128
129
  }
129
- }, /*#__PURE__*/React.createElement(Stack, {
130
+ }, /*#__PURE__*/React__default.createElement(Stack, {
130
131
  spacing: 2,
131
132
  sx: {
132
133
  width: "100%"
133
134
  }
134
- }, /*#__PURE__*/React.createElement(Typography, {
135
+ }, /*#__PURE__*/React__default.createElement(Typography, {
135
136
  variant: "h6",
136
137
  align: "center"
137
- }, "Write us"), /*#__PURE__*/React.createElement(Typography, {
138
+ }, "Write us"), /*#__PURE__*/React__default.createElement(Typography, {
138
139
  variant: "body1",
139
140
  align: "center"
140
- }, "We're open for any suggestion or just to have a chat"), showSuccessMessage && /*#__PURE__*/React.createElement(Paper, {
141
+ }, "We're open for any suggestion or just to have a chat"), showSuccessMessage && /*#__PURE__*/React__default.createElement(Paper, {
141
142
  sx: {
142
143
  p: 2
143
144
  }
144
- }, /*#__PURE__*/React.createElement(Stack, {
145
+ }, /*#__PURE__*/React__default.createElement(Stack, {
145
146
  spacing: 2
146
- }, /*#__PURE__*/React.createElement(Typography, {
147
+ }, /*#__PURE__*/React__default.createElement(Typography, {
147
148
  variant: "h6"
148
- }, "Thank you!"), /*#__PURE__*/React.createElement(Typography, null, "Your e-mail has been successfully sent!"))), showFailureMessage && /*#__PURE__*/React.createElement(Paper, {
149
+ }, "Thank you!"), /*#__PURE__*/React__default.createElement(Typography, null, "Your e-mail has been successfully sent!"))), showFailureMessage && /*#__PURE__*/React__default.createElement(Paper, {
149
150
  sx: {
150
151
  p: 2
151
152
  }
152
- }, /*#__PURE__*/React.createElement(Stack, {
153
+ }, /*#__PURE__*/React__default.createElement(Stack, {
153
154
  spacing: 2
154
- }, /*#__PURE__*/React.createElement(Typography, null, "I am sorry, something went wrong, you could email me directly on info@jellepaulus.nl"), /*#__PURE__*/React.createElement(Button, {
155
+ }, /*#__PURE__*/React__default.createElement(Typography, null, "I am sorry, something went wrong, you could email me directly on info@jellepaulus.nl"), /*#__PURE__*/React__default.createElement(Button, {
155
156
  variant: "contained"
156
- }, "try again")))), !showSuccessMessage && !showFailureMessage && /*#__PURE__*/React.createElement(Paper, {
157
+ }, "try again")))), !showSuccessMessage && !showFailureMessage && /*#__PURE__*/React__default.createElement(Paper, {
157
158
  sx: {
158
159
  p: 2
159
160
  }
160
- }, /*#__PURE__*/React.createElement(Stack, {
161
+ }, /*#__PURE__*/React__default.createElement(Stack, {
161
162
  spacing: 2
162
- }, /*#__PURE__*/React.createElement(TextField, {
163
+ }, /*#__PURE__*/React__default.createElement(TextField, {
163
164
  id: "name",
164
165
  name: "name",
165
166
  label: "Name",
@@ -169,7 +170,7 @@ function ContactForm(_ref) {
169
170
  onChange: handleChange,
170
171
  error: formErrors.name != undefined ? true : false,
171
172
  helperText: formErrors.name
172
- }), /*#__PURE__*/React.createElement(TextField, {
173
+ }), /*#__PURE__*/React__default.createElement(TextField, {
173
174
  id: "email",
174
175
  name: "email",
175
176
  label: "Email",
@@ -179,7 +180,7 @@ function ContactForm(_ref) {
179
180
  onChange: handleChange,
180
181
  error: formErrors.email != undefined ? true : false,
181
182
  helperText: formErrors.email
182
- }), /*#__PURE__*/React.createElement(TextField, {
183
+ }), /*#__PURE__*/React__default.createElement(TextField, {
183
184
  id: "subject",
184
185
  name: "subject",
185
186
  label: "Subject",
@@ -189,7 +190,7 @@ function ContactForm(_ref) {
189
190
  onChange: handleChange,
190
191
  error: formErrors.subject != undefined,
191
192
  helperText: formErrors.subject
192
- }), /*#__PURE__*/React.createElement(TextField, {
193
+ }), /*#__PURE__*/React__default.createElement(TextField, {
193
194
  id: "message",
194
195
  name: "message",
195
196
  label: "Message",
@@ -201,15 +202,15 @@ function ContactForm(_ref) {
201
202
  onChange: handleChange,
202
203
  error: formErrors.message != undefined,
203
204
  helperText: formErrors.message
204
- }), /*#__PURE__*/React.createElement(Stack, {
205
+ }), /*#__PURE__*/React__default.createElement(Stack, {
205
206
  direction: "row",
206
207
  spacing: 2,
207
208
  justifyContent: "end"
208
- }, /*#__PURE__*/React.createElement(Button, {
209
+ }, /*#__PURE__*/React__default.createElement(Button, {
209
210
  variant: "outlined",
210
211
  color: "primary",
211
212
  onClick: handleClear
212
- }, "Clear"), /*#__PURE__*/React.createElement(Button, {
213
+ }, "Clear"), /*#__PURE__*/React__default.createElement(Button, {
213
214
  variant: "contained",
214
215
  onClick: handleSubmit
215
216
  }, "Send")))));
@@ -4,7 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
 
7
- import React from 'react';
7
+ import React__default from 'react';
8
8
  import { Container, Stack, Card, CardContent, CardMedia, Typography, CardActions, Button } from '@mui/material';
9
9
  import getIcon from '../lib/getIcon.js';
10
10
 
@@ -15,12 +15,12 @@ function FeatureSection(_ref) {
15
15
  const {
16
16
  feature
17
17
  } = data;
18
- return /*#__PURE__*/React.createElement(Container, {
18
+ return /*#__PURE__*/React__default.createElement(Container, {
19
19
  maxWidth: "lg",
20
20
  sx: {
21
21
  my: 1
22
22
  }
23
- }, /*#__PURE__*/React.createElement(Stack, {
23
+ }, /*#__PURE__*/React__default.createElement(Stack, {
24
24
  spacing: 2,
25
25
  direction: "row",
26
26
  justifyContent: "stretch",
@@ -31,7 +31,7 @@ function FeatureSection(_ref) {
31
31
  useFlexGap: true
32
32
  }, feature.map(feature => {
33
33
  const Icon = getIcon(feature.icon);
34
- return /*#__PURE__*/React.createElement(Card, {
34
+ return /*#__PURE__*/React__default.createElement(Card, {
35
35
  key: feature.id,
36
36
  sx: {
37
37
  display: "flex",
@@ -40,14 +40,14 @@ function FeatureSection(_ref) {
40
40
  flex: 1,
41
41
  minWidth: "350px"
42
42
  }
43
- }, /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(CardMedia, {
43
+ }, /*#__PURE__*/React__default.createElement(CardContent, null, /*#__PURE__*/React__default.createElement(CardMedia, {
44
44
  sx: {
45
45
  height: 140,
46
46
  display: "grid",
47
47
  alignItems: "center",
48
48
  justifyContent: "center"
49
49
  }
50
- }, Icon !== null && /*#__PURE__*/React.createElement(Icon, {
50
+ }, Icon !== null && /*#__PURE__*/React__default.createElement(Icon, {
51
51
  sx: {
52
52
  mr: 2,
53
53
  mt: 0.2,
@@ -57,31 +57,31 @@ function FeatureSection(_ref) {
57
57
  stroke: "currentColor",
58
58
  strokeWidth: 0.5
59
59
  }
60
- })), /*#__PURE__*/React.createElement(Typography, {
60
+ })), /*#__PURE__*/React__default.createElement(Typography, {
61
61
  variant: "h5",
62
62
  align: "center",
63
63
  component: "div",
64
64
  sx: {
65
65
  mb: 2
66
66
  }
67
- }, feature.heading), /*#__PURE__*/React.createElement(Typography, {
67
+ }, feature.heading), /*#__PURE__*/React__default.createElement(Typography, {
68
68
  variant: "h6",
69
69
  align: "center",
70
70
  component: "div",
71
71
  sx: {
72
72
  mb: 2
73
73
  }
74
- }, feature.subHeading.substring(0, 50)), /*#__PURE__*/React.createElement(Typography, {
74
+ }, feature.subHeading.substring(0, 50)), /*#__PURE__*/React__default.createElement(Typography, {
75
75
  variant: "body2",
76
76
  color: "text.secondary",
77
77
  component: "div"
78
- }, feature.subHeading)), /*#__PURE__*/React.createElement(CardActions, {
78
+ }, feature.subHeading)), /*#__PURE__*/React__default.createElement(CardActions, {
79
79
  sx: {
80
80
  mb: 0
81
81
  }
82
- }, /*#__PURE__*/React.createElement(Button, {
82
+ }, /*#__PURE__*/React__default.createElement(Button, {
83
83
  size: "small"
84
- }, "Share"), /*#__PURE__*/React.createElement(Button, {
84
+ }, "Contact"), /*#__PURE__*/React__default.createElement(Button, {
85
85
  size: "small"
86
86
  }, "Learn More")));
87
87
  })));
@@ -4,7 +4,7 @@
4
4
  * @license MIT
5
5
  */
6
6
 
7
- import React from 'react';
7
+ import React__default from 'react';
8
8
  import { Container, Stack, Card, CardHeader, CardMedia, Paper, Box, Typography, CardContent, Chip } from '@mui/material';
9
9
  import { StrapiImage } from './StrapiImage.js';
10
10
  import RadarIcon from '@mui/icons-material/Radar';
@@ -18,12 +18,12 @@ function FleetSection(_ref) {
18
18
  const {
19
19
  airplane
20
20
  } = data;
21
- return /*#__PURE__*/React.createElement(Container, {
21
+ return /*#__PURE__*/React__default.createElement(Container, {
22
22
  maxWidth: "lg",
23
23
  sx: {
24
24
  my: 1
25
25
  }
26
- }, /*#__PURE__*/React.createElement(Stack, {
26
+ }, /*#__PURE__*/React__default.createElement(Stack, {
27
27
  spacing: 2,
28
28
  direction: "row",
29
29
  justifyContent: "stretch",
@@ -32,7 +32,7 @@ function FleetSection(_ref) {
32
32
  width: "100%"
33
33
  },
34
34
  useFlexGap: true
35
- }, airplane.map(airplane => /*#__PURE__*/React.createElement(Card, {
35
+ }, airplane.map(airplane => /*#__PURE__*/React__default.createElement(Card, {
36
36
  key: airplane.id,
37
37
  sx: {
38
38
  display: "flex",
@@ -41,15 +41,15 @@ function FleetSection(_ref) {
41
41
  flex: 1,
42
42
  minWidth: "350px"
43
43
  }
44
- }, /*#__PURE__*/React.createElement(CardHeader, {
44
+ }, /*#__PURE__*/React__default.createElement(CardHeader, {
45
45
  title: airplane.name,
46
46
  subheader: airplane.description
47
- }), /*#__PURE__*/React.createElement(CardMedia, {
47
+ }), /*#__PURE__*/React__default.createElement(CardMedia, {
48
48
  sx: {
49
49
  p: 1,
50
50
  flex: 1
51
51
  }
52
- }, /*#__PURE__*/React.createElement(Paper, {
52
+ }, /*#__PURE__*/React__default.createElement(Paper, {
53
53
  sx: {
54
54
  p: 1,
55
55
  py: "4rem",
@@ -60,7 +60,7 @@ function FleetSection(_ref) {
60
60
  height: "100%"
61
61
  },
62
62
  variant: "outlined"
63
- }, airplane.floorplan !== null && /*#__PURE__*/React.createElement(StrapiImage, {
63
+ }, airplane.floorplan !== null && /*#__PURE__*/React__default.createElement(StrapiImage, {
64
64
  src: airplane.floorplan.url,
65
65
  alt: airplane.floorplan.alternativeText,
66
66
  width: airplane.floorplan.width,
@@ -70,38 +70,38 @@ function FleetSection(_ref) {
70
70
  width: "100%",
71
71
  height: "100%"
72
72
  }
73
- }), /*#__PURE__*/React.createElement(Box, {
73
+ }), /*#__PURE__*/React__default.createElement(Box, {
74
74
  sx: {
75
75
  position: "absolute",
76
76
  right: "1rem",
77
77
  bottom: "1rem"
78
78
  }
79
- }, /*#__PURE__*/React.createElement(Typography, {
79
+ }, /*#__PURE__*/React__default.createElement(Typography, {
80
80
  variant: "body2",
81
81
  color: "text.secondary",
82
82
  align: "right"
83
- }, /*#__PURE__*/React.createElement("strong", null, "Cabin Dimensions:"), " ", /*#__PURE__*/React.createElement("strong", null, "H"), " ", airplane.cabinHeight, " m ", /*#__PURE__*/React.createElement("strong", null, "W"), " ", airplane.cabinWidth, " m ", /*#__PURE__*/React.createElement("strong", null, "L"), " ", airplane.cabinLength, " m")))), /*#__PURE__*/React.createElement(CardContent, {
83
+ }, /*#__PURE__*/React__default.createElement("strong", null, "Cabin Dimensions:"), " ", /*#__PURE__*/React__default.createElement("strong", null, "H"), " ", airplane.cabinHeight, " m ", /*#__PURE__*/React__default.createElement("strong", null, "W"), " ", airplane.cabinWidth, " m ", /*#__PURE__*/React__default.createElement("strong", null, "L"), " ", airplane.cabinLength, " m")))), /*#__PURE__*/React__default.createElement(CardContent, {
84
84
  sx: {}
85
- }, /*#__PURE__*/React.createElement(Stack, {
85
+ }, /*#__PURE__*/React__default.createElement(Stack, {
86
86
  direction: "row",
87
87
  spacing: 1,
88
88
  flexWrap: "wrap",
89
89
  useFlexGap: true
90
- }, /*#__PURE__*/React.createElement(Chip, {
90
+ }, /*#__PURE__*/React__default.createElement(Chip, {
91
91
  label: "Range: ".concat(airplane.range, " km"),
92
92
  variant: "filled",
93
93
  color: "primary",
94
- icon: /*#__PURE__*/React.createElement(RadarIcon, null)
95
- }), /*#__PURE__*/React.createElement(Chip, {
94
+ icon: /*#__PURE__*/React__default.createElement(RadarIcon, null)
95
+ }), /*#__PURE__*/React__default.createElement(Chip, {
96
96
  label: "Speed: ".concat(airplane.speed, " km/h"),
97
97
  variant: "filled",
98
98
  color: "primary",
99
- icon: /*#__PURE__*/React.createElement(SpeedIcon, null)
100
- }), /*#__PURE__*/React.createElement(Chip, {
99
+ icon: /*#__PURE__*/React__default.createElement(SpeedIcon, null)
100
+ }), /*#__PURE__*/React__default.createElement(Chip, {
101
101
  label: "Ceiling: ".concat(airplane.ceiling, " ft"),
102
102
  variant: "filled",
103
103
  color: "primary",
104
- icon: /*#__PURE__*/React.createElement(HeightIcon, null)
104
+ icon: /*#__PURE__*/React__default.createElement(HeightIcon, null)
105
105
  })))))));
106
106
  }
107
107