umwd-components 0.1.47 → 0.1.48
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/BulletList.js +42 -0
- package/dist/cjs/index.js +2 -0
- package/dist/esm/components/BulletList.js +38 -0
- package/dist/esm/index.js +1 -0
- package/package.json +1 -1
- package/public/AMH/BulletSVG.svg +9 -0
- package/src/components/BulletList.js +38 -0
- package/src/index.js +1 -0
- package/src/stories/BulletList.stories.js +87 -0
|
@@ -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;
|
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 };
|
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
|
@@ -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;
|
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
|
+
};
|