umwd-components 0.1.131 → 0.1.132
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.
|
@@ -72,7 +72,8 @@ function ScrollNavbar(_ref) {
|
|
|
72
72
|
height: logo.height,
|
|
73
73
|
alt: logo.alternativeText || "site logo",
|
|
74
74
|
style: {
|
|
75
|
-
maxHeight: "
|
|
75
|
+
maxHeight: "55px",
|
|
76
|
+
marginRight: "20px",
|
|
76
77
|
width: "auto",
|
|
77
78
|
height: "auto"
|
|
78
79
|
}
|
|
@@ -114,7 +115,8 @@ function ScrollNavbar(_ref) {
|
|
|
114
115
|
flexGrow: 1,
|
|
115
116
|
display: {
|
|
116
117
|
xs: "none",
|
|
117
|
-
md: "flex"
|
|
118
|
+
md: "flex",
|
|
119
|
+
alignItems: "center"
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
122
|
}, /*#__PURE__*/React.createElement(material.Tabs, {
|
|
@@ -68,7 +68,8 @@ function ScrollNavbar(_ref) {
|
|
|
68
68
|
height: logo.height,
|
|
69
69
|
alt: logo.alternativeText || "site logo",
|
|
70
70
|
style: {
|
|
71
|
-
maxHeight: "
|
|
71
|
+
maxHeight: "55px",
|
|
72
|
+
marginRight: "20px",
|
|
72
73
|
width: "auto",
|
|
73
74
|
height: "auto"
|
|
74
75
|
}
|
|
@@ -110,7 +111,8 @@ function ScrollNavbar(_ref) {
|
|
|
110
111
|
flexGrow: 1,
|
|
111
112
|
display: {
|
|
112
113
|
xs: "none",
|
|
113
|
-
md: "flex"
|
|
114
|
+
md: "flex",
|
|
115
|
+
alignItems: "center"
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
}, /*#__PURE__*/React__default.createElement(Tabs, {
|
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
import CloseIcon from "@mui/icons-material/Close";
|
|
23
23
|
import MoreVertIcon from "@mui/icons-material/MoreVert";
|
|
24
24
|
import ScrollLink from "./ScrollLink.tsx";
|
|
25
|
+
import { type ReactNode } from "react";
|
|
25
26
|
|
|
26
27
|
interface ImageProps {
|
|
27
28
|
id: number;
|
|
@@ -48,7 +49,7 @@ type TabInfo = {
|
|
|
48
49
|
};
|
|
49
50
|
|
|
50
51
|
interface NavbarProps {
|
|
51
|
-
site_title: string;
|
|
52
|
+
site_title: string | ReactNode;
|
|
52
53
|
logo: ImageProps;
|
|
53
54
|
pages: Page[];
|
|
54
55
|
tabs: TabInfo[];
|
|
@@ -102,7 +103,12 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
|
|
|
102
103
|
width={logo.width}
|
|
103
104
|
height={logo.height}
|
|
104
105
|
alt={logo.alternativeText || "site logo"}
|
|
105
|
-
style={{
|
|
106
|
+
style={{
|
|
107
|
+
maxHeight: "55px",
|
|
108
|
+
marginRight: "20px",
|
|
109
|
+
width: "auto",
|
|
110
|
+
height: "auto",
|
|
111
|
+
}}
|
|
106
112
|
/>
|
|
107
113
|
)}
|
|
108
114
|
{site_title !== undefined && (
|
|
@@ -155,7 +161,7 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
|
|
|
155
161
|
<Box
|
|
156
162
|
sx={{
|
|
157
163
|
flexGrow: 1,
|
|
158
|
-
display: { xs: "none", md: "flex" },
|
|
164
|
+
display: { xs: "none", md: "flex", alignItems: "center" },
|
|
159
165
|
}}
|
|
160
166
|
>
|
|
161
167
|
<Tabs
|
|
@@ -12,8 +12,8 @@ const Template = ({ ...args }) => {
|
|
|
12
12
|
<>
|
|
13
13
|
<ScrollNavbar {...args} />
|
|
14
14
|
{args.data.tabs.map((tab, index) => {
|
|
15
|
-
const bgColor = `rgb( ${(index + 1) *
|
|
16
|
-
(index + 1) *
|
|
15
|
+
const bgColor = `rgb( ${(index + 1) * 20}, ${(index + 1) * 20}, ${
|
|
16
|
+
(index + 1) * 20
|
|
17
17
|
})`;
|
|
18
18
|
|
|
19
19
|
return (
|
|
@@ -44,12 +44,21 @@ AMH.args = {
|
|
|
44
44
|
data: {
|
|
45
45
|
logo: {
|
|
46
46
|
id: "1",
|
|
47
|
-
url:
|
|
47
|
+
url: "http://127.0.0.1:1337/uploads/logo_small_f0fcf59dad.png",
|
|
48
48
|
alternativeText: "Logo",
|
|
49
49
|
style: {},
|
|
50
50
|
width: logoText.width,
|
|
51
51
|
height: logoText.height,
|
|
52
52
|
},
|
|
53
|
+
site_title: (
|
|
54
|
+
<h1
|
|
55
|
+
style={{ fontFamily: "Montserrat", fontWeight: 400, fontSize: "24px" }}
|
|
56
|
+
>
|
|
57
|
+
<span style={{ fontWeight: 600 }}>A</span>ero
|
|
58
|
+
<span style={{ fontWeight: 600 }}>M</span>edical{" "}
|
|
59
|
+
<span style={{ fontWeight: 600 }}>H</span>olland
|
|
60
|
+
</h1>
|
|
61
|
+
), //"AeroMedical Holland",
|
|
53
62
|
tabs: [
|
|
54
63
|
{
|
|
55
64
|
name: "Home",
|
|
@@ -73,6 +82,6 @@ AMH.args = {
|
|
|
73
82
|
},
|
|
74
83
|
],
|
|
75
84
|
maxWidth: "lg",
|
|
76
|
-
minHeight: "
|
|
85
|
+
minHeight: "90px",
|
|
77
86
|
},
|
|
78
87
|
};
|