umwd-components 0.1.35 → 0.1.37

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.
@@ -20,7 +20,8 @@ function TextImageBlock({
20
20
  text_content,
21
21
  image_content,
22
22
  reverse,
23
- maxWidth
23
+ maxWidth,
24
+ minHeight
24
25
  }) {
25
26
  reverse = Boolean(reverse);
26
27
  maxWidth = maxWidth || "100%";
@@ -53,7 +54,7 @@ function TextImageBlock({
53
54
  xs: text_content !== null && text_content !== undefined ? 6 : 12,
54
55
  sx: {
55
56
  padding: "10px",
56
- minHeight: "100vh",
57
+ minHeight: minHeight || "300px",
57
58
  display: "grid",
58
59
  alignItems: "center",
59
60
  justifyContent: "center"
@@ -77,7 +78,7 @@ function TextImageBlock({
77
78
  xs: image_content?.url !== undefined ? 6 : 12,
78
79
  sx: {
79
80
  p: 1,
80
- minHeight: "100vh",
81
+ minHeight: minHeight || "300px",
81
82
  display: "grid",
82
83
  alignItems: "center",
83
84
  justifyContent: "center"
@@ -87,7 +88,7 @@ function TextImageBlock({
87
88
  xs: image_content?.url !== undefined ? 6 : 12,
88
89
  sx: {
89
90
  p: 1,
90
- minHeight: "100vh",
91
+ minHeight: minHeight || "300px",
91
92
  display: "grid",
92
93
  alignItems: "center",
93
94
  justifyContent: "center"
@@ -97,7 +98,7 @@ function TextImageBlock({
97
98
  xs: text_content !== null && text_content !== undefined ? 6 : 12,
98
99
  sx: {
99
100
  padding: "10px",
100
- minHeight: "100vh",
101
+ minHeight: minHeight || "300px",
101
102
  display: "grid",
102
103
  alignItems: "center",
103
104
  justifyContent: "center"
@@ -16,7 +16,8 @@ function TextImageBlock({
16
16
  text_content,
17
17
  image_content,
18
18
  reverse,
19
- maxWidth
19
+ maxWidth,
20
+ minHeight
20
21
  }) {
21
22
  reverse = Boolean(reverse);
22
23
  maxWidth = maxWidth || "100%";
@@ -49,7 +50,7 @@ function TextImageBlock({
49
50
  xs: text_content !== null && text_content !== undefined ? 6 : 12,
50
51
  sx: {
51
52
  padding: "10px",
52
- minHeight: "100vh",
53
+ minHeight: minHeight || "300px",
53
54
  display: "grid",
54
55
  alignItems: "center",
55
56
  justifyContent: "center"
@@ -73,7 +74,7 @@ function TextImageBlock({
73
74
  xs: image_content?.url !== undefined ? 6 : 12,
74
75
  sx: {
75
76
  p: 1,
76
- minHeight: "100vh",
77
+ minHeight: minHeight || "300px",
77
78
  display: "grid",
78
79
  alignItems: "center",
79
80
  justifyContent: "center"
@@ -83,7 +84,7 @@ function TextImageBlock({
83
84
  xs: image_content?.url !== undefined ? 6 : 12,
84
85
  sx: {
85
86
  p: 1,
86
- minHeight: "100vh",
87
+ minHeight: minHeight || "300px",
87
88
  display: "grid",
88
89
  alignItems: "center",
89
90
  justifyContent: "center"
@@ -93,7 +94,7 @@ function TextImageBlock({
93
94
  xs: text_content !== null && text_content !== undefined ? 6 : 12,
94
95
  sx: {
95
96
  padding: "10px",
96
- minHeight: "100vh",
97
+ minHeight: minHeight || "300px",
97
98
  display: "grid",
98
99
  alignItems: "center",
99
100
  justifyContent: "center"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -12,6 +12,7 @@ function TextImageBlock({
12
12
  image_content,
13
13
  reverse,
14
14
  maxWidth,
15
+ minHeight,
15
16
  }) {
16
17
  reverse = Boolean(reverse);
17
18
 
@@ -53,7 +54,7 @@ function TextImageBlock({
53
54
  xs={text_content !== null && text_content !== undefined ? 6 : 12}
54
55
  sx={{
55
56
  padding: "10px",
56
- minHeight: "100vh",
57
+ minHeight: minHeight || "300px",
57
58
  display: "grid",
58
59
  alignItems: "center",
59
60
  justifyContent: "center",
@@ -84,7 +85,7 @@ function TextImageBlock({
84
85
  xs={image_content?.url !== undefined ? 6 : 12}
85
86
  sx={{
86
87
  p: 1,
87
- minHeight: "100vh",
88
+ minHeight: minHeight || "300px",
88
89
  display: "grid",
89
90
  alignItems: "center",
90
91
  justifyContent: "center",
@@ -102,7 +103,7 @@ function TextImageBlock({
102
103
  xs={image_content?.url !== undefined ? 6 : 12}
103
104
  sx={{
104
105
  p: 1,
105
- minHeight: "100vh",
106
+ minHeight: minHeight || "300px",
106
107
  display: "grid",
107
108
  alignItems: "center",
108
109
  justifyContent: "center",
@@ -117,7 +118,7 @@ function TextImageBlock({
117
118
  xs={text_content !== null && text_content !== undefined ? 6 : 12}
118
119
  sx={{
119
120
  padding: "10px",
120
- minHeight: "100vh",
121
+ minHeight: minHeight || "300px",
121
122
  display: "grid",
122
123
  alignItems: "center",
123
124
  justifyContent: "center",