umwd-components 0.1.77 → 0.1.79

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,12 +49,12 @@ function FleetSection(_ref) {
49
49
  }), /*#__PURE__*/React.createElement(material.CardMedia, {
50
50
  sx: {
51
51
  p: 1,
52
- height: "max-content"
52
+ flex: 1
53
53
  }
54
54
  }, /*#__PURE__*/React.createElement(material.Paper, {
55
55
  sx: {
56
56
  p: 1,
57
- py: "3rem",
57
+ py: "4rem",
58
58
  position: "relative",
59
59
  display: "grid",
60
60
  alignItems: "center",
@@ -68,7 +68,9 @@ function FleetSection(_ref) {
68
68
  width: airplane.floorplan.width,
69
69
  height: airplane.floorplan.height,
70
70
  style: {
71
- objectFit: "contain"
71
+ objectFit: "contain",
72
+ width: "100%",
73
+ height: "100%"
72
74
  }
73
75
  }), /*#__PURE__*/React.createElement(material.Box, {
74
76
  sx: {
@@ -84,7 +86,9 @@ function FleetSection(_ref) {
84
86
  sx: {}
85
87
  }, /*#__PURE__*/React.createElement(material.Stack, {
86
88
  direction: "row",
87
- spacing: 1
89
+ spacing: 1,
90
+ flexWrap: "wrap",
91
+ useFlexGap: true
88
92
  }, /*#__PURE__*/React.createElement(material.Chip, {
89
93
  label: "Range: ".concat(airplane.range, " km"),
90
94
  variant: "filled",
@@ -26,7 +26,7 @@ function StrapiImage(_ref) {
26
26
  alt: alt,
27
27
  height: height,
28
28
  width: width,
29
- style: style && style
29
+ style: style
30
30
  });
31
31
  }
32
32
 
@@ -47,12 +47,12 @@ function FleetSection(_ref) {
47
47
  }), /*#__PURE__*/React.createElement(CardMedia, {
48
48
  sx: {
49
49
  p: 1,
50
- height: "max-content"
50
+ flex: 1
51
51
  }
52
52
  }, /*#__PURE__*/React.createElement(Paper, {
53
53
  sx: {
54
54
  p: 1,
55
- py: "3rem",
55
+ py: "4rem",
56
56
  position: "relative",
57
57
  display: "grid",
58
58
  alignItems: "center",
@@ -66,7 +66,9 @@ function FleetSection(_ref) {
66
66
  width: airplane.floorplan.width,
67
67
  height: airplane.floorplan.height,
68
68
  style: {
69
- objectFit: "contain"
69
+ objectFit: "contain",
70
+ width: "100%",
71
+ height: "100%"
70
72
  }
71
73
  }), /*#__PURE__*/React.createElement(Box, {
72
74
  sx: {
@@ -82,7 +84,9 @@ function FleetSection(_ref) {
82
84
  sx: {}
83
85
  }, /*#__PURE__*/React.createElement(Stack, {
84
86
  direction: "row",
85
- spacing: 1
87
+ spacing: 1,
88
+ flexWrap: "wrap",
89
+ useFlexGap: true
86
90
  }, /*#__PURE__*/React.createElement(Chip, {
87
91
  label: "Range: ".concat(airplane.range, " km"),
88
92
  variant: "filled",
@@ -24,7 +24,7 @@ function StrapiImage(_ref) {
24
24
  alt: alt,
25
25
  height: height,
26
26
  width: width,
27
- style: style && style
27
+ style: style
28
28
  });
29
29
  }
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.77",
3
+ "version": "0.1.79",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -76,13 +76,13 @@ export function FleetSection({ data }: { readonly data: FleetSectionProps }) {
76
76
  <CardMedia
77
77
  sx={{
78
78
  p: 1,
79
- height: "max-content",
79
+ flex: 1,
80
80
  }}
81
81
  >
82
82
  <Paper
83
83
  sx={{
84
84
  p: 1,
85
- py: "3rem",
85
+ py: "4rem",
86
86
  position: "relative",
87
87
  display: "grid",
88
88
  alignItems: "center",
@@ -97,7 +97,11 @@ export function FleetSection({ data }: { readonly data: FleetSectionProps }) {
97
97
  alt={airplane.floorplan.alternativeText}
98
98
  width={airplane.floorplan.width}
99
99
  height={airplane.floorplan.height}
100
- style={{ objectFit: "contain" }}
100
+ style={{
101
+ objectFit: "contain",
102
+ width: "100%",
103
+ height: "100%",
104
+ }}
101
105
  />
102
106
  )}
103
107
  <Box
@@ -117,7 +121,12 @@ export function FleetSection({ data }: { readonly data: FleetSectionProps }) {
117
121
  </Paper>
118
122
  </CardMedia>
119
123
  <CardContent sx={{}}>
120
- <Stack direction="row" spacing={1}>
124
+ <Stack
125
+ direction="row"
126
+ spacing={1}
127
+ flexWrap="wrap"
128
+ useFlexGap={true}
129
+ >
121
130
  <Chip
122
131
  label={`Range: ${airplane.range} km`}
123
132
  variant="filled"
@@ -27,7 +27,7 @@ export function StrapiImage({
27
27
  alt={alt}
28
28
  height={height}
29
29
  width={width}
30
- style={style && style}
30
+ style={style}
31
31
  />
32
32
  );
33
33
  }