umwd-components 0.1.186 → 0.1.188

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.
@@ -59,7 +59,7 @@ function IconSection(_ref) {
59
59
  mt: 0.2
60
60
  }
61
61
  }), icon.title), /*#__PURE__*/React.createElement(material.Typography, {
62
- variant: "caption",
62
+ variant: "body2",
63
63
  color: "text.secondary",
64
64
  component: "div"
65
65
  }, icon.text))));
@@ -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(material.Box, {
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: {
@@ -57,7 +57,7 @@ function IconSection(_ref) {
57
57
  mt: 0.2
58
58
  }
59
59
  }), icon.title), /*#__PURE__*/React__default.createElement(Typography, {
60
- variant: "caption",
60
+ variant: "body2",
61
61
  color: "text.secondary",
62
62
  component: "div"
63
63
  }, icon.text))));
@@ -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(Box, {
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.186",
3
+ "version": "0.1.188",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -57,7 +57,7 @@ export function IconSection({ data }: { readonly data: IconSectionProps }) {
57
57
  </Typography>
58
58
 
59
59
  <Typography
60
- variant="caption"
60
+ variant="body2"
61
61
  color="text.secondary"
62
62
  component="div"
63
63
  >
@@ -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
- <Box key={tab.name} onClick={(e) => setCurrentTab(index)}>
214
- <Link
215
- href={`/#${tab.slug}`}
216
- style={{
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
- textDecoration: "none",
219
- cursor: "pointer",
227
+ opacity: 0.9,
220
228
  }}
221
- >
222
- <Tab
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>