umwd-components 0.1.21 → 0.1.22

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.
@@ -49,18 +49,24 @@ function TextImageBlock({
49
49
  item: true,
50
50
  xs: 6,
51
51
  sx: {
52
- p: 1,
52
+ padding: "10px",
53
53
  minHeight: "100vh",
54
54
  display: "grid",
55
55
  alignItems: "center",
56
56
  justifyItems: "center"
57
57
  }
58
+ }, /*#__PURE__*/React.createElement(material.Box, {
59
+ sx: {
60
+ width: "100%",
61
+ height: "100%",
62
+ overflow: "hidden"
63
+ }
58
64
  }, /*#__PURE__*/React.createElement(Image, {
59
65
  src: image_content.url,
60
66
  width: image_content.width,
61
67
  height: image_content.height,
62
68
  alt: image_content.name
63
- })), text_content && /*#__PURE__*/React.createElement(material.Grid, {
69
+ }))), text_content && /*#__PURE__*/React.createElement(material.Grid, {
64
70
  item: true,
65
71
  xs: image_content?.url !== undefined ? 6 : 12,
66
72
  sx: {
@@ -84,18 +90,24 @@ function TextImageBlock({
84
90
  item: true,
85
91
  xs: 6,
86
92
  sx: {
87
- p: 1,
93
+ padding: "10px",
88
94
  minHeight: "100vh",
89
95
  display: "grid",
90
96
  alignItems: "center",
91
97
  justifyItems: "center"
92
98
  }
99
+ }, /*#__PURE__*/React.createElement(material.Box, {
100
+ sx: {
101
+ width: "100%",
102
+ height: "100%",
103
+ overflow: "hidden"
104
+ }
93
105
  }, /*#__PURE__*/React.createElement(Image, {
94
106
  src: image_content.url,
95
107
  width: image_content.width,
96
108
  height: image_content.height,
97
109
  alt: image_content.alt
98
- }))));
110
+ })))));
99
111
  }
100
112
  TextImageBlock.propTypes = {
101
113
  block_title: PropTypes.string,
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import { Grid, Typography } from '@mui/material';
9
+ import { Grid, Typography, Box } from '@mui/material';
10
10
  import Image from 'next/image';
11
11
  import { MuiMarkdown } from 'mui-markdown';
12
12
  import PropTypes from 'prop-types';
@@ -45,18 +45,24 @@ function TextImageBlock({
45
45
  item: true,
46
46
  xs: 6,
47
47
  sx: {
48
- p: 1,
48
+ padding: "10px",
49
49
  minHeight: "100vh",
50
50
  display: "grid",
51
51
  alignItems: "center",
52
52
  justifyItems: "center"
53
53
  }
54
+ }, /*#__PURE__*/React.createElement(Box, {
55
+ sx: {
56
+ width: "100%",
57
+ height: "100%",
58
+ overflow: "hidden"
59
+ }
54
60
  }, /*#__PURE__*/React.createElement(Image, {
55
61
  src: image_content.url,
56
62
  width: image_content.width,
57
63
  height: image_content.height,
58
64
  alt: image_content.name
59
- })), text_content && /*#__PURE__*/React.createElement(Grid, {
65
+ }))), text_content && /*#__PURE__*/React.createElement(Grid, {
60
66
  item: true,
61
67
  xs: image_content?.url !== undefined ? 6 : 12,
62
68
  sx: {
@@ -80,18 +86,24 @@ function TextImageBlock({
80
86
  item: true,
81
87
  xs: 6,
82
88
  sx: {
83
- p: 1,
89
+ padding: "10px",
84
90
  minHeight: "100vh",
85
91
  display: "grid",
86
92
  alignItems: "center",
87
93
  justifyItems: "center"
88
94
  }
95
+ }, /*#__PURE__*/React.createElement(Box, {
96
+ sx: {
97
+ width: "100%",
98
+ height: "100%",
99
+ overflow: "hidden"
100
+ }
89
101
  }, /*#__PURE__*/React.createElement(Image, {
90
102
  src: image_content.url,
91
103
  width: image_content.width,
92
104
  height: image_content.height,
93
105
  alt: image_content.alt
94
- }))));
106
+ })))));
95
107
  }
96
108
  TextImageBlock.propTypes = {
97
109
  block_title: PropTypes.string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import React from "react";
4
- import { Grid, Typography } from "@mui/material";
4
+ import { Box, Grid, Typography } from "@mui/material";
5
5
  import Image from "next/image";
6
6
  import { MuiMarkdown } from "mui-markdown";
7
7
  import PropTypes from "prop-types";
@@ -50,19 +50,27 @@ function TextImageBlock({
50
50
  item
51
51
  xs={6}
52
52
  sx={{
53
- p: 1,
53
+ padding: "10px",
54
54
  minHeight: "100vh",
55
55
  display: "grid",
56
56
  alignItems: "center",
57
57
  justifyItems: "center",
58
58
  }}
59
59
  >
60
- <Image
61
- src={image_content.url}
62
- width={image_content.width}
63
- height={image_content.height}
64
- alt={image_content.name}
65
- />
60
+ <Box
61
+ sx={{
62
+ width: "100%",
63
+ height: "100%",
64
+ overflow: "hidden",
65
+ }}
66
+ >
67
+ <Image
68
+ src={image_content.url}
69
+ width={image_content.width}
70
+ height={image_content.height}
71
+ alt={image_content.name}
72
+ />
73
+ </Box>
66
74
  </Grid>
67
75
  )}
68
76
  {text_content && (
@@ -103,19 +111,27 @@ function TextImageBlock({
103
111
  item
104
112
  xs={6}
105
113
  sx={{
106
- p: 1,
114
+ padding: "10px",
107
115
  minHeight: "100vh",
108
116
  display: "grid",
109
117
  alignItems: "center",
110
118
  justifyItems: "center",
111
119
  }}
112
120
  >
113
- <Image
114
- src={image_content.url}
115
- width={image_content.width}
116
- height={image_content.height}
117
- alt={image_content.alt}
118
- />
121
+ <Box
122
+ sx={{
123
+ width: "100%",
124
+ height: "100%",
125
+ overflow: "hidden",
126
+ }}
127
+ >
128
+ <Image
129
+ src={image_content.url}
130
+ width={image_content.width}
131
+ height={image_content.height}
132
+ alt={image_content.alt}
133
+ />
134
+ </Box>
119
135
  </Grid>
120
136
  )}
121
137
  </>
@@ -14,9 +14,9 @@ export const HelloWorld = Template.bind({});
14
14
  HelloWorld.args = {
15
15
  block_title: "Hello World",
16
16
  image_content: {
17
- url: "https://via.placeholder.com/150",
18
- width: 150,
19
- height: 150,
17
+ url: "https://via.placeholder.com/850",
18
+ width: 850,
19
+ height: 850,
20
20
  alt: "Hello World",
21
21
  },
22
22
  text_content:
@@ -29,15 +29,14 @@ export const HelloMars = Template.bind({});
29
29
  HelloMars.args = {
30
30
  block_title: "Hello Mars",
31
31
  image_content: {
32
- url: "https://via.placeholder.com/150",
33
- width: 150,
34
- height: 150,
32
+ url: "https://via.placeholder.com/1200",
33
+ width: 600,
34
+ height: 600,
35
35
  alt: "Hello Mars",
36
36
  },
37
37
  text_content:
38
38
  "**Hello Mars,** \n a distant red planet that has captured the imagination of humanity for centuries. As we gaze upon your mysterious surface from Earth, we can't help but wonder about the secrets you hold. Hello to the vast landscapes of rust-colored terrain, the towering volcanoes, and the enigmatic canyons that weave across your surface. *Hello Mars,* a planet that has been the focus of numerous space missions, each one aiming to unveil the mysteries of your past and present. From the iconic rovers tirelessly traversing your rocky landscapes to the orbiters capturing breathtaking images from above, we extend our greetings to the scientific endeavors that seek to understand your geology, climate, and potential for life. <br /> <br /> *Hello Mars,* a beacon of human exploration and curiosity. The dreams of setting foot on your soil have fueled the aspirations of generations, and with each technological leap, the possibility of humans visiting you becomes more tangible. The prospect of a human settlement on Mars brings excitement, challenges, and the promise of a new chapter in our interplanetary journey. <br /> <br /> *Hello Mars,* a testament to the indomitable human spirit that constantly seeks to push the boundaries of what is possible. As we continue to study, explore, and dream about the mysteries you hold, we are reminded of the vastness of the cosmos and the endless opportunities for discovery that lie beyond our home planet.",
39
39
  reverse: true,
40
- maxWidth: "1200px",
41
40
  };
42
41
 
43
42
  export const NoTitle = Template.bind({});