umwd-components 0.1.177 → 0.1.179
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/Footer.js +2 -2
- package/dist/cjs/components/HeroSection.js +3 -0
- package/dist/cjs/components/TextImageSection.js +1 -1
- package/dist/cjs/components/WebsitePlaceholder.js +2 -2
- package/dist/esm/components/Footer.js +2 -2
- package/dist/esm/components/HeroSection.js +3 -0
- package/dist/esm/components/TextImageSection.js +1 -1
- package/dist/esm/components/WebsitePlaceholder.js +2 -2
- package/package.json +1 -1
- package/src/components/Footer.js +2 -2
- package/src/components/HeroSection.tsx +2 -0
- package/src/components/TextImageSection.tsx +2 -2
- package/src/components/WebsitePlaceholder.js +2 -2
|
@@ -23,7 +23,7 @@ Footer.propTypes = {
|
|
|
23
23
|
url: PropTypes.string.isRequired,
|
|
24
24
|
width: PropTypes.number.isRequired,
|
|
25
25
|
height: PropTypes.number.isRequired,
|
|
26
|
-
|
|
26
|
+
alternativeText: PropTypes.string
|
|
27
27
|
}),
|
|
28
28
|
company_name: PropTypes.string.isRequired,
|
|
29
29
|
parent_company_name: PropTypes.string,
|
|
@@ -113,7 +113,7 @@ function Footer(_ref) {
|
|
|
113
113
|
src: logo.url,
|
|
114
114
|
width: logo.width,
|
|
115
115
|
height: logo.height,
|
|
116
|
-
alt: logo.
|
|
116
|
+
alt: logo.alternativeText || "site logo"
|
|
117
117
|
}))))), /*#__PURE__*/React.createElement(material.Grid, {
|
|
118
118
|
item: true,
|
|
119
119
|
xs: 12,
|
|
@@ -13,6 +13,7 @@ var StrapiImage = require('./StrapiImage.js');
|
|
|
13
13
|
var utils = require('../lib/utils.js');
|
|
14
14
|
|
|
15
15
|
function HeroSection(_ref) {
|
|
16
|
+
var _bgImage$id, _logoImage$id;
|
|
16
17
|
let {
|
|
17
18
|
data
|
|
18
19
|
} = _ref;
|
|
@@ -49,6 +50,7 @@ function HeroSection(_ref) {
|
|
|
49
50
|
...sx
|
|
50
51
|
}
|
|
51
52
|
}, bgImage && /*#__PURE__*/React.createElement(StrapiImage.StrapiImage, {
|
|
53
|
+
id: (_bgImage$id = bgImage.id) === null || _bgImage$id === void 0 ? void 0 : _bgImage$id.toString(),
|
|
52
54
|
alt: "Background",
|
|
53
55
|
style: {
|
|
54
56
|
position: "absolute",
|
|
@@ -81,6 +83,7 @@ function HeroSection(_ref) {
|
|
|
81
83
|
}, logoImage && /*#__PURE__*/React.createElement(material.Box, {
|
|
82
84
|
className: "manipulator"
|
|
83
85
|
}, /*#__PURE__*/React.createElement(StrapiImage.StrapiImage, {
|
|
86
|
+
id: (_logoImage$id = logoImage.id) === null || _logoImage$id === void 0 ? void 0 : _logoImage$id.toString(),
|
|
84
87
|
alt: logoImage.alternativeText,
|
|
85
88
|
height: logoImage.height || 100,
|
|
86
89
|
src: logoImage.url,
|
|
@@ -92,7 +92,7 @@ function WebsitePlaceholder(_ref) {
|
|
|
92
92
|
}
|
|
93
93
|
}, title), (logo === null || logo === void 0 ? void 0 : logo.url) && /*#__PURE__*/React.createElement(Image, {
|
|
94
94
|
src: logo.url,
|
|
95
|
-
alt: logo.
|
|
95
|
+
alt: logo.alternativeText || "logo",
|
|
96
96
|
width: 300,
|
|
97
97
|
height: 300
|
|
98
98
|
}), /*#__PURE__*/React.createElement(material.Typography, {
|
|
@@ -116,7 +116,7 @@ WebsitePlaceholder.propTypes = {
|
|
|
116
116
|
announcement: PropTypes.string.isRequired,
|
|
117
117
|
logo: PropTypes.shape({
|
|
118
118
|
url: PropTypes.string.isRequired,
|
|
119
|
-
|
|
119
|
+
alternativeText: PropTypes.string,
|
|
120
120
|
width: PropTypes.string,
|
|
121
121
|
height: PropTypes.string
|
|
122
122
|
}),
|
|
@@ -19,7 +19,7 @@ Footer.propTypes = {
|
|
|
19
19
|
url: PropTypes.string.isRequired,
|
|
20
20
|
width: PropTypes.number.isRequired,
|
|
21
21
|
height: PropTypes.number.isRequired,
|
|
22
|
-
|
|
22
|
+
alternativeText: PropTypes.string
|
|
23
23
|
}),
|
|
24
24
|
company_name: PropTypes.string.isRequired,
|
|
25
25
|
parent_company_name: PropTypes.string,
|
|
@@ -109,7 +109,7 @@ function Footer(_ref) {
|
|
|
109
109
|
src: logo.url,
|
|
110
110
|
width: logo.width,
|
|
111
111
|
height: logo.height,
|
|
112
|
-
alt: logo.
|
|
112
|
+
alt: logo.alternativeText || "site logo"
|
|
113
113
|
}))))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
114
114
|
item: true,
|
|
115
115
|
xs: 12,
|
|
@@ -11,6 +11,7 @@ import { StrapiImage } from './StrapiImage.js';
|
|
|
11
11
|
import { setOpacity } from '../lib/utils.js';
|
|
12
12
|
|
|
13
13
|
function HeroSection(_ref) {
|
|
14
|
+
var _bgImage$id, _logoImage$id;
|
|
14
15
|
let {
|
|
15
16
|
data
|
|
16
17
|
} = _ref;
|
|
@@ -47,6 +48,7 @@ function HeroSection(_ref) {
|
|
|
47
48
|
...sx
|
|
48
49
|
}
|
|
49
50
|
}, bgImage && /*#__PURE__*/React__default.createElement(StrapiImage, {
|
|
51
|
+
id: (_bgImage$id = bgImage.id) === null || _bgImage$id === void 0 ? void 0 : _bgImage$id.toString(),
|
|
50
52
|
alt: "Background",
|
|
51
53
|
style: {
|
|
52
54
|
position: "absolute",
|
|
@@ -79,6 +81,7 @@ function HeroSection(_ref) {
|
|
|
79
81
|
}, logoImage && /*#__PURE__*/React__default.createElement(Box, {
|
|
80
82
|
className: "manipulator"
|
|
81
83
|
}, /*#__PURE__*/React__default.createElement(StrapiImage, {
|
|
84
|
+
id: (_logoImage$id = logoImage.id) === null || _logoImage$id === void 0 ? void 0 : _logoImage$id.toString(),
|
|
82
85
|
alt: logoImage.alternativeText,
|
|
83
86
|
height: logoImage.height || 100,
|
|
84
87
|
src: logoImage.url,
|
|
@@ -88,7 +88,7 @@ function WebsitePlaceholder(_ref) {
|
|
|
88
88
|
}
|
|
89
89
|
}, title), (logo === null || logo === void 0 ? void 0 : logo.url) && /*#__PURE__*/React__default.createElement(Image, {
|
|
90
90
|
src: logo.url,
|
|
91
|
-
alt: logo.
|
|
91
|
+
alt: logo.alternativeText || "logo",
|
|
92
92
|
width: 300,
|
|
93
93
|
height: 300
|
|
94
94
|
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
@@ -112,7 +112,7 @@ WebsitePlaceholder.propTypes = {
|
|
|
112
112
|
announcement: PropTypes.string.isRequired,
|
|
113
113
|
logo: PropTypes.shape({
|
|
114
114
|
url: PropTypes.string.isRequired,
|
|
115
|
-
|
|
115
|
+
alternativeText: PropTypes.string,
|
|
116
116
|
width: PropTypes.string,
|
|
117
117
|
height: PropTypes.string
|
|
118
118
|
}),
|
package/package.json
CHANGED
package/src/components/Footer.js
CHANGED
|
@@ -29,7 +29,7 @@ Footer.propTypes = {
|
|
|
29
29
|
url: PropTypes.string.isRequired,
|
|
30
30
|
width: PropTypes.number.isRequired,
|
|
31
31
|
height: PropTypes.number.isRequired,
|
|
32
|
-
|
|
32
|
+
alternativeText: PropTypes.string,
|
|
33
33
|
}),
|
|
34
34
|
company_name: PropTypes.string.isRequired,
|
|
35
35
|
parent_company_name: PropTypes.string,
|
|
@@ -112,7 +112,7 @@ function Footer({
|
|
|
112
112
|
src={logo.url}
|
|
113
113
|
width={logo.width}
|
|
114
114
|
height={logo.height}
|
|
115
|
-
alt={logo.
|
|
115
|
+
alt={logo.alternativeText || "site logo"}
|
|
116
116
|
/>
|
|
117
117
|
</Box>
|
|
118
118
|
)}
|
|
@@ -78,6 +78,7 @@ export function HeroSection({ data }: Readonly<HeroSectionProps>) {
|
|
|
78
78
|
>
|
|
79
79
|
{bgImage && (
|
|
80
80
|
<StrapiImage
|
|
81
|
+
id={bgImage.id?.toString()}
|
|
81
82
|
alt="Background"
|
|
82
83
|
style={{
|
|
83
84
|
position: "absolute",
|
|
@@ -108,6 +109,7 @@ export function HeroSection({ data }: Readonly<HeroSectionProps>) {
|
|
|
108
109
|
{logoImage && (
|
|
109
110
|
<Box className="manipulator">
|
|
110
111
|
<StrapiImage
|
|
112
|
+
id={logoImage.id?.toString()}
|
|
111
113
|
alt={logoImage.alternativeText}
|
|
112
114
|
height={logoImage.height || 100}
|
|
113
115
|
src={logoImage.url}
|
|
@@ -75,7 +75,7 @@ function StickyImage({ image }: { image: any }) {
|
|
|
75
75
|
>
|
|
76
76
|
<StrapiImage
|
|
77
77
|
id={`image${image.url}`}
|
|
78
|
-
alt={image.
|
|
78
|
+
alt={image.alternativeText}
|
|
79
79
|
height={image.height}
|
|
80
80
|
width={image.width}
|
|
81
81
|
src={image.url}
|
|
@@ -115,7 +115,7 @@ interface TextImageSectionProps {
|
|
|
115
115
|
url: string;
|
|
116
116
|
width: number;
|
|
117
117
|
height: number;
|
|
118
|
-
|
|
118
|
+
alternativeText: string;
|
|
119
119
|
};
|
|
120
120
|
reverse: boolean;
|
|
121
121
|
maxWidth?: MaxWidth;
|
|
@@ -107,7 +107,7 @@ function WebsitePlaceholder({
|
|
|
107
107
|
{logo?.url && (
|
|
108
108
|
<Image
|
|
109
109
|
src={logo.url}
|
|
110
|
-
alt={logo.
|
|
110
|
+
alt={logo.alternativeText || "logo"}
|
|
111
111
|
width={300}
|
|
112
112
|
height={300}
|
|
113
113
|
/>
|
|
@@ -141,7 +141,7 @@ WebsitePlaceholder.propTypes = {
|
|
|
141
141
|
announcement: PropTypes.string.isRequired,
|
|
142
142
|
logo: PropTypes.shape({
|
|
143
143
|
url: PropTypes.string.isRequired,
|
|
144
|
-
|
|
144
|
+
alternativeText: PropTypes.string,
|
|
145
145
|
width: PropTypes.string,
|
|
146
146
|
height: PropTypes.string,
|
|
147
147
|
}),
|