umwd-components 0.1.47 → 0.1.49

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.
@@ -0,0 +1,42 @@
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
+ var PropTypes = require('prop-types');
14
+ var material = require('@mui/material');
15
+ var FiberManualRecordIcon = require('@mui/icons-material/FiberManualRecord');
16
+
17
+ function BulletList({
18
+ bullets,
19
+ bulletSVG
20
+ }) {
21
+ console.log("bulletSVG2", bulletSVG);
22
+ return /*#__PURE__*/React.createElement(material.Stack, {
23
+ spacing: 2
24
+ }, bullets.map((bullet, index) => /*#__PURE__*/React.createElement(material.Typography, {
25
+ key: index,
26
+ sx: {
27
+ verticalAlign: "center",
28
+ alignItems: "center",
29
+ justifyContent: "flex-start",
30
+ display: "inline-flex"
31
+ }
32
+ }, bulletSVG ? /*#__PURE__*/React.createElement(material.SvgIcon, {
33
+ sx: {
34
+ mr: 1
35
+ }
36
+ }, bulletSVG) : /*#__PURE__*/React.createElement(FiberManualRecordIcon, null), bullet)));
37
+ }
38
+ BulletList.propTypes = {
39
+ bullets: PropTypes.arrayOf(PropTypes.string).isRequired
40
+ };
41
+
42
+ exports.default = BulletList;
@@ -18,6 +18,8 @@ function WebsitePlaceholder({
18
18
  title,
19
19
  announcement,
20
20
  logo,
21
+ lmBackgroundUrl,
22
+ dmBackgroundUrl,
21
23
  children
22
24
  }) {
23
25
  const theme = material.useTheme();
@@ -60,6 +62,7 @@ function WebsitePlaceholder({
60
62
  justifyItems: "center",
61
63
  alignItems: "center",
62
64
  backgroundColor: theme.palette.primary.main,
65
+ backgroundImage: `url(${theme.palette.mode === "light" ? lmBackgroundUrl : dmBackgroundUrl})`,
63
66
  height: "100vh",
64
67
  maxHeight: "100vh",
65
68
  width: "100vw",
package/dist/cjs/index.js CHANGED
@@ -16,6 +16,7 @@ var Page = require('./components/Page.js');
16
16
  var Footer = require('./components/Footer.js');
17
17
  var ContactForm = require('./components/ContactForm.js');
18
18
  var WebsitePlaceholder = require('./components/WebsitePlaceholder.js');
19
+ var BulletList = require('./components/BulletList.js');
19
20
 
20
21
 
21
22
 
@@ -29,3 +30,4 @@ exports.Page = Page.default;
29
30
  exports.Footer = Footer.default;
30
31
  exports.ContactForm = ContactForm.default;
31
32
  exports.WebsitePlaceholder = WebsitePlaceholder.default;
33
+ exports.BulletList = BulletList.default;
@@ -0,0 +1,38 @@
1
+ "use client";
2
+ /*
3
+ * UMWD-Components
4
+ * @copyright Jelle Paulus
5
+ * @license MIT
6
+ */
7
+
8
+ import React from 'react';
9
+ import PropTypes from 'prop-types';
10
+ import { Stack, Typography, SvgIcon } from '@mui/material';
11
+ import FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord';
12
+
13
+ function BulletList({
14
+ bullets,
15
+ bulletSVG
16
+ }) {
17
+ console.log("bulletSVG2", bulletSVG);
18
+ return /*#__PURE__*/React.createElement(Stack, {
19
+ spacing: 2
20
+ }, bullets.map((bullet, index) => /*#__PURE__*/React.createElement(Typography, {
21
+ key: index,
22
+ sx: {
23
+ verticalAlign: "center",
24
+ alignItems: "center",
25
+ justifyContent: "flex-start",
26
+ display: "inline-flex"
27
+ }
28
+ }, bulletSVG ? /*#__PURE__*/React.createElement(SvgIcon, {
29
+ sx: {
30
+ mr: 1
31
+ }
32
+ }, bulletSVG) : /*#__PURE__*/React.createElement(FiberManualRecordIcon, null), bullet)));
33
+ }
34
+ BulletList.propTypes = {
35
+ bullets: PropTypes.arrayOf(PropTypes.string).isRequired
36
+ };
37
+
38
+ export { BulletList as default };
@@ -14,6 +14,8 @@ function WebsitePlaceholder({
14
14
  title,
15
15
  announcement,
16
16
  logo,
17
+ lmBackgroundUrl,
18
+ dmBackgroundUrl,
17
19
  children
18
20
  }) {
19
21
  const theme = useTheme();
@@ -56,6 +58,7 @@ function WebsitePlaceholder({
56
58
  justifyItems: "center",
57
59
  alignItems: "center",
58
60
  backgroundColor: theme.palette.primary.main,
61
+ backgroundImage: `url(${theme.palette.mode === "light" ? lmBackgroundUrl : dmBackgroundUrl})`,
59
62
  height: "100vh",
60
63
  maxHeight: "100vh",
61
64
  width: "100vw",
package/dist/esm/index.js CHANGED
@@ -14,3 +14,4 @@ export { default as Page } from './components/Page.js';
14
14
  export { default as Footer } from './components/Footer.js';
15
15
  export { default as ContactForm } from './components/ContactForm.js';
16
16
  export { default as WebsitePlaceholder } from './components/WebsitePlaceholder.js';
17
+ export { default as BulletList } from './components/BulletList.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
3
+ viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
4
+ <g id="Layer_32">
5
+ <path class="st27" fill="#DD1805" d="M22.15,12c-1.39-0.61-8-3.55-12.14-6.33C5.18,2.43,4.03,0.28,3.19,0.23c-0.4-0.02-1.26,1.04-1.34,1.42
6
+ L9,10.62c0,0,5.12,1.04,8.08,1.38C14.12,12.34,9,13.38,9,13.38l-7.16,8.96c0.08,0.38,0.94,1.44,1.34,1.42
7
+ c0.84-0.05,1.99-2.2,6.83-5.44C14.15,15.56,20.77,12.61,22.15,12L22.15,12z"/>
8
+ </g>
9
+ </svg>
@@ -0,0 +1,38 @@
1
+ "use client";
2
+
3
+ import React from "react";
4
+ import PropTypes from "prop-types";
5
+ import { Stack, SvgIcon, Typography } from "@mui/material";
6
+ import FiberManualRecordIcon from "@mui/icons-material/FiberManualRecord";
7
+
8
+ function BulletList({ bullets, bulletSVG }) {
9
+ console.log("bulletSVG2", bulletSVG);
10
+ return (
11
+ <Stack spacing={2}>
12
+ {bullets.map((bullet, index) => (
13
+ <Typography
14
+ key={index}
15
+ sx={{
16
+ verticalAlign: "center",
17
+ alignItems: "center",
18
+ justifyContent: "flex-start",
19
+ display: "inline-flex",
20
+ }}
21
+ >
22
+ {bulletSVG ? (
23
+ <SvgIcon sx={{ mr: 1 }}>{bulletSVG}</SvgIcon>
24
+ ) : (
25
+ <FiberManualRecordIcon />
26
+ )}
27
+ {bullet}
28
+ </Typography>
29
+ ))}
30
+ </Stack>
31
+ );
32
+ }
33
+
34
+ BulletList.propTypes = {
35
+ bullets: PropTypes.arrayOf(PropTypes.string).isRequired,
36
+ };
37
+
38
+ export default BulletList;
@@ -0,0 +1,28 @@
1
+ "use client";
2
+
3
+ import React from "react";
4
+ import PropTypes from "prop-types";
5
+ import { Button, Card as MuiCard } from "@mui/material";
6
+ import { CardActions, CardContent, CardHeader, CardMedia } from "@mui/material";
7
+
8
+ function Card({ title, subHeader, cardContent, cardLink }) {
9
+ return (
10
+ <MuiCard sx={{ width: "100%" }}>
11
+ <CardHeader title={title} subheader={subHeader}></CardHeader>
12
+ <CardContent>
13
+ {/* ToDo Parse MD*/}
14
+ {cardContent && cardContent}
15
+ </CardContent>
16
+ <CardMedia></CardMedia>
17
+ <CardActions>
18
+ {cardLink && <Button size="small">Learn More</Button>}
19
+ </CardActions>
20
+ </MuiCard>
21
+ );
22
+ }
23
+
24
+ Card.propTypes = {
25
+ title: PropTypes.string.isRequired,
26
+ };
27
+
28
+ export default Card;
@@ -0,0 +1,42 @@
1
+ "use client";
2
+
3
+ import React from "react";
4
+ import Card from "./Card";
5
+ import { Stack } from "@mui/material";
6
+
7
+ function ThreeUp({ card1, card2, card3 }) {
8
+ console.log("card1", card1);
9
+
10
+ return (
11
+ <Stack direction={"row"} spacing={2} justifyContent={"space-between"}>
12
+ {card1 && (
13
+ <Card
14
+ title={card1.title}
15
+ subHeader={card1.subHeader}
16
+ cardContent={card1.cardContent}
17
+ cardLink={card1.cardLink}
18
+ />
19
+ )}
20
+ {card2 && (
21
+ <Card
22
+ title={card2.title}
23
+ subHeader={card2.subHeader}
24
+ cardContent={card2.cardContent}
25
+ cardLink={card2.cardLink}
26
+ />
27
+ )}
28
+ {card3 && (
29
+ <Card
30
+ title={card3.title}
31
+ subHeader={card3.subHeader}
32
+ cardContent={card3.cardContent}
33
+ cardLink={card3.cardLink}
34
+ />
35
+ )}
36
+ </Stack>
37
+ );
38
+ }
39
+
40
+ ThreeUp.propTypes = {};
41
+
42
+ export default ThreeUp;
@@ -5,7 +5,14 @@ import PropTypes from "prop-types";
5
5
  import { Typography, Box, useTheme } from "@mui/material";
6
6
  import Image from "next/image";
7
7
 
8
- function WebsitePlaceholder({ title, announcement, logo, children }) {
8
+ function WebsitePlaceholder({
9
+ title,
10
+ announcement,
11
+ logo,
12
+ lmBackgroundUrl,
13
+ dmBackgroundUrl,
14
+ children,
15
+ }) {
9
16
  const theme = useTheme();
10
17
 
11
18
  // const [keysPressed, setKeysPressed] = React.useState({});
@@ -58,6 +65,9 @@ function WebsitePlaceholder({ title, announcement, logo, children }) {
58
65
  justifyItems: "center",
59
66
  alignItems: "center",
60
67
  backgroundColor: theme.palette.primary.main,
68
+ backgroundImage: `url(${
69
+ theme.palette.mode === "light" ? lmBackgroundUrl : dmBackgroundUrl
70
+ })`,
61
71
  height: "100vh",
62
72
  maxHeight: "100vh",
63
73
  width: "100vw",
package/src/index.js CHANGED
@@ -9,3 +9,4 @@ export { default as Page } from "./components/Page";
9
9
  export { default as Footer } from "./components/Footer";
10
10
  export { default as ContactForm } from "./components/ContactForm";
11
11
  export { default as WebsitePlaceholder } from "./components/WebsitePlaceholder";
12
+ export { default as BulletList } from "./components/BulletList";
@@ -0,0 +1,87 @@
1
+ import BulletList from "../components/BulletList";
2
+ import React from "react";
3
+ // import bulletSVG from "../../public/AMH/BulletSVG.svg";
4
+ // import { ReactComponent as bulletSVG } from "../../public/AMH/BulletSVG.js";
5
+
6
+ export default {
7
+ title: "UMWD/BulletList",
8
+ component: BulletList,
9
+ };
10
+
11
+ //console.log(<bulletSVG />);
12
+
13
+ const Template = ({ bullets, bulletSVG, ...args }) => (
14
+ <BulletList bullets={bullets} bulletSVG={bulletSVG} />
15
+ );
16
+
17
+ export const AMH = Template.bind({});
18
+
19
+ AMH.args = {
20
+ bullets: [
21
+ "Unmatched Medical Expertise: Our medical team consists of top-flight doctors and nurses with extensive experience in critical care transport, ensuring the best possible care for your loved one during repatriation.",
22
+ "Global Reach and 24/7 Availability: We operate a worldwide network of resources, ready to respond to your needs anytime, anywhere. No matter where the medical emergency occurs, we'll get you home safely.",
23
+ "Personalized Care Coordination: We understand the complexities of medical repatriation. Our dedicated case managers will handle all logistical arrangements, keeping you informed every step of the way.",
24
+ "Focus on Patient Comfort and Safety: We utilize state-of-the-art medical equipment and customized transportation solutions to ensure a smooth and comfortable journey for your loved one.",
25
+ ],
26
+ bulletSVG: (
27
+ <svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24">
28
+ <g id="Layer_32">
29
+ <path
30
+ class="st27"
31
+ fill="#DD1805"
32
+ d="M22.15,12c-1.39-0.61-8-3.55-12.14-6.33C5.18,2.43,4.03,0.28,3.19,0.23c-0.4-0.02-1.26,1.04-1.34,1.42
33
+ L9,10.62c0,0,5.12,1.04,8.08,1.38C14.12,12.34,9,13.38,9,13.38l-7.16,8.96c0.08,0.38,0.94,1.44,1.34,1.42
34
+ c0.84-0.05,1.99-2.2,6.83-5.44C14.15,15.56,20.77,12.61,22.15,12L22.15,12z"
35
+ />
36
+ </g>
37
+ </svg>
38
+ ),
39
+ };
40
+
41
+ export const OREFS = Template.bind({});
42
+
43
+ OREFS.args = {
44
+ bullets: [
45
+ "Unmatched Medical Expertise: Our medical team consists of top-flight doctors and nurses with extensive experience in critical care transport, ensuring the best possible care for your loved one during repatriation.",
46
+ "Global Reach and 24/7 Availability: We operate a worldwide network of resources, ready to respond to your needs anytime, anywhere. No matter where the medical emergency occurs, we'll get you home safely.",
47
+ "Personalized Care Coordination: We understand the complexities of medical repatriation. Our dedicated case managers will handle all logistical arrangements, keeping you informed every step of the way.",
48
+ "Focus on Patient Comfort and Safety: We utilize state-of-the-art medical equipment and customized transportation solutions to ensure a smooth and comfortable journey for your loved one.",
49
+ ],
50
+ bulletSVG: (
51
+ <svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24">
52
+ <g id="Layer_32">
53
+ <path
54
+ class="st27"
55
+ fill="#DD1805"
56
+ d="M22.15,12c-1.39-0.61-8-3.55-12.14-6.33C5.18,2.43,4.03,0.28,3.19,0.23c-0.4-0.02-1.26,1.04-1.34,1.42
57
+ L9,10.62c0,0,5.12,1.04,8.08,1.38C14.12,12.34,9,13.38,9,13.38l-7.16,8.96c0.08,0.38,0.94,1.44,1.34,1.42
58
+ c0.84-0.05,1.99-2.2,6.83-5.44C14.15,15.56,20.77,12.61,22.15,12L22.15,12z"
59
+ />
60
+ </g>
61
+ </svg>
62
+ ),
63
+ };
64
+
65
+ export const UMWD = Template.bind({});
66
+
67
+ UMWD.args = {
68
+ bullets: [
69
+ "Unmatched Medical Expertise: Our medical team consists of top-flight doctors and nurses with extensive experience in critical care transport, ensuring the best possible care for your loved one during repatriation.",
70
+ "Global Reach and 24/7 Availability: We operate a worldwide network of resources, ready to respond to your needs anytime, anywhere. No matter where the medical emergency occurs, we'll get you home safely.",
71
+ "Personalized Care Coordination: We understand the complexities of medical repatriation. Our dedicated case managers will handle all logistical arrangements, keeping you informed every step of the way.",
72
+ "Focus on Patient Comfort and Safety: We utilize state-of-the-art medical equipment and customized transportation solutions to ensure a smooth and comfortable journey for your loved one.",
73
+ ],
74
+ bulletSVG: (
75
+ <svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24">
76
+ <g id="Layer_32">
77
+ <path
78
+ class="st27"
79
+ fill="#DD1805"
80
+ d="M22.15,12c-1.39-0.61-8-3.55-12.14-6.33C5.18,2.43,4.03,0.28,3.19,0.23c-0.4-0.02-1.26,1.04-1.34,1.42
81
+ L9,10.62c0,0,5.12,1.04,8.08,1.38C14.12,12.34,9,13.38,9,13.38l-7.16,8.96c0.08,0.38,0.94,1.44,1.34,1.42
82
+ c0.84-0.05,1.99-2.2,6.83-5.44C14.15,15.56,20.77,12.61,22.15,12L22.15,12z"
83
+ />
84
+ </g>
85
+ </svg>
86
+ ),
87
+ };
@@ -0,0 +1,35 @@
1
+ import ThreeUp from "../components/ThreeUp";
2
+ import React from "react";
3
+
4
+ export default {
5
+ title: "UMWD/ThreeUp",
6
+ component: ThreeUp,
7
+ };
8
+
9
+ const Template = ({ card1, card2, card3, ...args }) => (
10
+ <ThreeUp card1={card1} card2={card2} card3={card3} />
11
+ );
12
+
13
+ export const AMH = Template.bind({});
14
+
15
+ AMH.args = {
16
+ card1: { title: "Card 1" },
17
+ card2: { title: "Card 2" },
18
+ card3: { title: "Card 3" },
19
+ };
20
+
21
+ export const OREFS = Template.bind({});
22
+
23
+ OREFS.args = {
24
+ card1: { title: "Card 1" },
25
+ card2: { title: "Card 2" },
26
+ card3: { title: "Card 3" },
27
+ };
28
+
29
+ export const UMWD = Template.bind({});
30
+
31
+ UMWD.args = {
32
+ card1: { title: "Card 1" },
33
+ card2: { title: "Card 2" },
34
+ card3: { title: "Card 3" },
35
+ };