umwd-components 0.1.140 → 0.1.142

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.
@@ -48,9 +48,7 @@ function HeroSection(_ref) {
48
48
  py: 6,
49
49
  ...sx
50
50
  }
51
- }, bgImage && /*#__PURE__*/React.createElement(material.Box, {
52
- className: "manipulator"
53
- }, /*#__PURE__*/React.createElement(StrapiImage.StrapiImage, {
51
+ }, bgImage && /*#__PURE__*/React.createElement(StrapiImage.StrapiImage, {
54
52
  alt: "Background",
55
53
  style: {
56
54
  position: "absolute",
@@ -62,7 +60,7 @@ function HeroSection(_ref) {
62
60
  height: bgImage.height || 1080,
63
61
  src: bgImage.url,
64
62
  width: bgImage.width || 1920
65
- })), /*#__PURE__*/React.createElement(material.Container, {
63
+ }), /*#__PURE__*/React.createElement(material.Container, {
66
64
  maxWidth: maxWidth || "lg",
67
65
  sx: {
68
66
  my: 1,
@@ -80,17 +78,19 @@ function HeroSection(_ref) {
80
78
  spacing: 5,
81
79
  alignItems: "center",
82
80
  justifyContent: "center"
83
- }, logoImage && /*#__PURE__*/React.createElement(StrapiImage.StrapiImage, {
81
+ }, logoImage && /*#__PURE__*/React.createElement(material.Box, {
82
+ className: "manipulator"
83
+ }, /*#__PURE__*/React.createElement(StrapiImage.StrapiImage, {
84
84
  alt: logoImage.alternativeText,
85
85
  height: logoImage.height || 100,
86
86
  src: logoImage.url,
87
87
  width: logoImage.width || 100,
88
88
  style: {
89
- width: "90%",
90
- height: "90%",
89
+ /* width: "90%",
90
+ height: "90%", */
91
91
  objectFit: "contain"
92
92
  }
93
- }), /*#__PURE__*/React.createElement(material.Typography, {
93
+ })), /*#__PURE__*/React.createElement(material.Typography, {
94
94
  variant: "h2",
95
95
  align: "center",
96
96
  component: "h1"
@@ -46,9 +46,7 @@ function HeroSection(_ref) {
46
46
  py: 6,
47
47
  ...sx
48
48
  }
49
- }, bgImage && /*#__PURE__*/React__default.createElement(Box, {
50
- className: "manipulator"
51
- }, /*#__PURE__*/React__default.createElement(StrapiImage, {
49
+ }, bgImage && /*#__PURE__*/React__default.createElement(StrapiImage, {
52
50
  alt: "Background",
53
51
  style: {
54
52
  position: "absolute",
@@ -60,7 +58,7 @@ function HeroSection(_ref) {
60
58
  height: bgImage.height || 1080,
61
59
  src: bgImage.url,
62
60
  width: bgImage.width || 1920
63
- })), /*#__PURE__*/React__default.createElement(Container, {
61
+ }), /*#__PURE__*/React__default.createElement(Container, {
64
62
  maxWidth: maxWidth || "lg",
65
63
  sx: {
66
64
  my: 1,
@@ -78,17 +76,19 @@ function HeroSection(_ref) {
78
76
  spacing: 5,
79
77
  alignItems: "center",
80
78
  justifyContent: "center"
81
- }, logoImage && /*#__PURE__*/React__default.createElement(StrapiImage, {
79
+ }, logoImage && /*#__PURE__*/React__default.createElement(Box, {
80
+ className: "manipulator"
81
+ }, /*#__PURE__*/React__default.createElement(StrapiImage, {
82
82
  alt: logoImage.alternativeText,
83
83
  height: logoImage.height || 100,
84
84
  src: logoImage.url,
85
85
  width: logoImage.width || 100,
86
86
  style: {
87
- width: "90%",
88
- height: "90%",
87
+ /* width: "90%",
88
+ height: "90%", */
89
89
  objectFit: "contain"
90
90
  }
91
- }), /*#__PURE__*/React__default.createElement(Typography, {
91
+ })), /*#__PURE__*/React__default.createElement(Typography, {
92
92
  variant: "h2",
93
93
  align: "center",
94
94
  component: "h1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.140",
3
+ "version": "0.1.142",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -77,21 +77,19 @@ export function HeroSection({ data }: Readonly<HeroSectionProps>) {
77
77
  }}
78
78
  >
79
79
  {bgImage && (
80
- <Box className="manipulator">
81
- <StrapiImage
82
- alt="Background"
83
- style={{
84
- position: "absolute",
85
- inset: 0,
86
- objectFit: "cover",
87
- width: "100%",
88
- height: "100%",
89
- }}
90
- height={bgImage.height || 1080}
91
- src={bgImage.url}
92
- width={bgImage.width || 1920}
93
- />
94
- </Box>
80
+ <StrapiImage
81
+ alt="Background"
82
+ style={{
83
+ position: "absolute",
84
+ inset: 0,
85
+ objectFit: "cover",
86
+ width: "100%",
87
+ height: "100%",
88
+ }}
89
+ height={bgImage.height || 1080}
90
+ src={bgImage.url}
91
+ width={bgImage.width || 1920}
92
+ />
95
93
  )}
96
94
  <Container maxWidth={maxWidth || "lg"} sx={{ my: 1, zIndex: 1 }}>
97
95
  <Paper
@@ -108,17 +106,19 @@ export function HeroSection({ data }: Readonly<HeroSectionProps>) {
108
106
  >
109
107
  <Stack spacing={5} alignItems="center" justifyContent="center">
110
108
  {logoImage && (
111
- <StrapiImage
112
- alt={logoImage.alternativeText}
113
- height={logoImage.height || 100}
114
- src={logoImage.url}
115
- width={logoImage.width || 100}
116
- style={{
117
- width: "90%",
118
- height: "90%",
119
- objectFit: "contain",
120
- }}
121
- />
109
+ <Box className="manipulator">
110
+ <StrapiImage
111
+ alt={logoImage.alternativeText}
112
+ height={logoImage.height || 100}
113
+ src={logoImage.url}
114
+ width={logoImage.width || 100}
115
+ style={{
116
+ /* width: "90%",
117
+ height: "90%", */
118
+ objectFit: "contain",
119
+ }}
120
+ />
121
+ </Box>
122
122
  )}
123
123
 
124
124
  <Typography variant="h2" align="center" component={"h1"}>