umwd-components 0.1.185 → 0.1.187
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.
|
@@ -149,10 +149,8 @@ function ScrollNavbar(_ref) {
|
|
|
149
149
|
indicatorColor: "secondary",
|
|
150
150
|
role: "navigation"
|
|
151
151
|
}, tabs.length > 0 && tabs.map((tab, index) => {
|
|
152
|
-
return /*#__PURE__*/React.createElement(
|
|
152
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
153
153
|
key: tab.name,
|
|
154
|
-
onClick: e => setCurrentTab(index)
|
|
155
|
-
}, /*#__PURE__*/React.createElement(Link, {
|
|
156
154
|
href: "/#".concat(tab.slug),
|
|
157
155
|
style: {
|
|
158
156
|
color: theme.palette.primary.contrastText,
|
|
@@ -166,7 +164,7 @@ function ScrollNavbar(_ref) {
|
|
|
166
164
|
color: theme.palette.primary.contrastText,
|
|
167
165
|
opacity: 0.9
|
|
168
166
|
}
|
|
169
|
-
}))
|
|
167
|
+
}));
|
|
170
168
|
}))), /*#__PURE__*/React.createElement(Link, {
|
|
171
169
|
href: "/",
|
|
172
170
|
style: {
|
package/dist/cjs/lib/getIcon.js
CHANGED
|
@@ -36,6 +36,7 @@ var LocalShippingIcon = require('@mui/icons-material/LocalShipping');
|
|
|
36
36
|
var InstagramIcon = require('@mui/icons-material/Instagram');
|
|
37
37
|
var APIcon = require('./APIcon.js');
|
|
38
38
|
var FavoriteIcon = require('@mui/icons-material/Favorite');
|
|
39
|
+
var AccessTimeIcon = require('@mui/icons-material/AccessTime');
|
|
39
40
|
|
|
40
41
|
function getIcon(icon) {
|
|
41
42
|
switch (icon) {
|
|
@@ -95,6 +96,8 @@ function getIcon(icon) {
|
|
|
95
96
|
return APIcon.default;
|
|
96
97
|
case "FavoriteIcon":
|
|
97
98
|
return FavoriteIcon;
|
|
99
|
+
case "AccessTimeIcon":
|
|
100
|
+
return AccessTimeIcon;
|
|
98
101
|
default:
|
|
99
102
|
return null;
|
|
100
103
|
}
|
|
@@ -145,10 +145,8 @@ function ScrollNavbar(_ref) {
|
|
|
145
145
|
indicatorColor: "secondary",
|
|
146
146
|
role: "navigation"
|
|
147
147
|
}, tabs.length > 0 && tabs.map((tab, index) => {
|
|
148
|
-
return /*#__PURE__*/React__default.createElement(
|
|
148
|
+
return /*#__PURE__*/React__default.createElement(Link, {
|
|
149
149
|
key: tab.name,
|
|
150
|
-
onClick: e => setCurrentTab(index)
|
|
151
|
-
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
152
150
|
href: "/#".concat(tab.slug),
|
|
153
151
|
style: {
|
|
154
152
|
color: theme.palette.primary.contrastText,
|
|
@@ -162,7 +160,7 @@ function ScrollNavbar(_ref) {
|
|
|
162
160
|
color: theme.palette.primary.contrastText,
|
|
163
161
|
opacity: 0.9
|
|
164
162
|
}
|
|
165
|
-
}))
|
|
163
|
+
}));
|
|
166
164
|
}))), /*#__PURE__*/React__default.createElement(Link, {
|
|
167
165
|
href: "/",
|
|
168
166
|
style: {
|
package/dist/esm/lib/getIcon.js
CHANGED
|
@@ -32,6 +32,7 @@ import LocalShippingIcon from '@mui/icons-material/LocalShipping';
|
|
|
32
32
|
import InstagramIcon from '@mui/icons-material/Instagram';
|
|
33
33
|
import APIcon from './APIcon.js';
|
|
34
34
|
import FavoriteIcon from '@mui/icons-material/Favorite';
|
|
35
|
+
import AccessTimeIcon from '@mui/icons-material/AccessTime';
|
|
35
36
|
|
|
36
37
|
function getIcon(icon) {
|
|
37
38
|
switch (icon) {
|
|
@@ -91,6 +92,8 @@ function getIcon(icon) {
|
|
|
91
92
|
return APIcon;
|
|
92
93
|
case "FavoriteIcon":
|
|
93
94
|
return FavoriteIcon;
|
|
95
|
+
case "AccessTimeIcon":
|
|
96
|
+
return AccessTimeIcon;
|
|
94
97
|
default:
|
|
95
98
|
return null;
|
|
96
99
|
}
|
package/package.json
CHANGED
|
@@ -210,25 +210,24 @@ function ScrollNavbar({ data }: { readonly data: NavbarProps }) {
|
|
|
210
210
|
{tabs.length > 0 &&
|
|
211
211
|
tabs.map((tab: TabInfo, index: number) => {
|
|
212
212
|
return (
|
|
213
|
-
<
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
<Link
|
|
214
|
+
key={tab.name}
|
|
215
|
+
href={`/#${tab.slug}`}
|
|
216
|
+
style={{
|
|
217
|
+
color: theme.palette.primary.contrastText,
|
|
218
|
+
textDecoration: "none",
|
|
219
|
+
cursor: "pointer",
|
|
220
|
+
}}
|
|
221
|
+
>
|
|
222
|
+
<Tab
|
|
223
|
+
value={index}
|
|
224
|
+
label={tab.name}
|
|
225
|
+
sx={{
|
|
217
226
|
color: theme.palette.primary.contrastText,
|
|
218
|
-
|
|
219
|
-
cursor: "pointer",
|
|
227
|
+
opacity: 0.9,
|
|
220
228
|
}}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
value={index}
|
|
224
|
-
label={tab.name}
|
|
225
|
-
sx={{
|
|
226
|
-
color: theme.palette.primary.contrastText,
|
|
227
|
-
opacity: 0.9,
|
|
228
|
-
}}
|
|
229
|
-
/>
|
|
230
|
-
</Link>
|
|
231
|
-
</Box>
|
|
229
|
+
/>
|
|
230
|
+
</Link>
|
|
232
231
|
);
|
|
233
232
|
})}
|
|
234
233
|
</Tabs>
|
package/src/lib/getIcon.ts
CHANGED
|
@@ -26,6 +26,7 @@ import LocalShippingIcon from "@mui/icons-material/LocalShipping";
|
|
|
26
26
|
import InstagramIcon from "@mui/icons-material/Instagram";
|
|
27
27
|
import APIcon from "./APIcon.tsx";
|
|
28
28
|
import FavoriteIcon from "@mui/icons-material/Favorite";
|
|
29
|
+
import AccessTimeIcon from "@mui/icons-material/AccessTime";
|
|
29
30
|
|
|
30
31
|
export default function getIcon(icon: string): React.ElementType | null {
|
|
31
32
|
switch (icon) {
|
|
@@ -85,6 +86,8 @@ export default function getIcon(icon: string): React.ElementType | null {
|
|
|
85
86
|
return APIcon;
|
|
86
87
|
case "FavoriteIcon":
|
|
87
88
|
return FavoriteIcon;
|
|
89
|
+
case "AccessTimeIcon":
|
|
90
|
+
return AccessTimeIcon;
|
|
88
91
|
default:
|
|
89
92
|
return null;
|
|
90
93
|
}
|