@ssplib/react-components 0.0.199 → 0.0.200

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.
@@ -104,21 +104,24 @@ function TabNavBar(_a) {
104
104
  react_1.default.createElement(link_1.default, { href: '/' }, next ? react_1.default.createElement(image_1.default, { src: img, alt: title, width: 40, height: 40 }) : react_1.default.createElement("img", { src: img, height: 35 })),
105
105
  react_1.default.createElement(material_1.Box, null,
106
106
  react_1.default.createElement(material_1.Typography, { variant: 'subtitle1', fontWeight: 600 }, title))),
107
- react_1.default.createElement(material_1.Stack, { direction: 'row', width: '100%', justifyContent: 'center', alignItems: 'center', spacing: 2 }, links.map((x) => (react_1.default.createElement(material_1.Box
108
- // borderBottom={next ? (router?.pathname.startsWith(x.path) ? `solid 2px ${color}` : '') : `solid 2px ${color}`}
109
- , {
107
+ react_1.default.createElement(material_1.Stack, { direction: 'row', width: '100%', justifyContent: 'center', alignItems: 'center', spacing: 2, sx: { display: { xs: 'none', md: 'flex' } } }, links.map((x) => {
108
+ var _a;
109
+ return (react_1.default.createElement(material_1.Box
110
110
  // borderBottom={next ? (router?.pathname.startsWith(x.path) ? `solid 2px ${color}` : '') : `solid 2px ${color}`}
111
- borderBottom: next ? (verificarRota(route, x.path) ? `solid 4px ${color}` : '') : verificarRota(route, x.path) ? `solid 4px ${color}` : '', height: '100%', paddingX: 2, sx: {
112
- ':hover': {
113
- backgroundColor: '#fcfcfc',
114
- cursor: 'pointer',
115
- userSelect: 'none',
116
- },
117
- }, onClick: (e) => {
118
- next && console.log('pathname:', router === null || router === void 0 ? void 0 : router.pathname, ':=', x.path);
119
- changeRoute(e, x.path);
120
- } },
121
- react_1.default.createElement(material_1.Stack, { height: '95%', justifyContent: 'center' }, x.name))))),
111
+ , {
112
+ // borderBottom={next ? (router?.pathname.startsWith(x.path) ? `solid 2px ${color}` : '') : `solid 2px ${color}`}
113
+ borderBottom: next ? (verificarRota((_a = router === null || router === void 0 ? void 0 : router.pathname) !== null && _a !== void 0 ? _a : '', x.path) ? `solid 4px ${color}` : '') : verificarRota(route, x.path) ? `solid 4px ${color}` : '', height: '100%', paddingX: 2, sx: {
114
+ ':hover': {
115
+ backgroundColor: '#fcfcfc',
116
+ cursor: 'pointer',
117
+ userSelect: 'none',
118
+ },
119
+ }, onClick: (e) => {
120
+ next && console.log('pathname:', router === null || router === void 0 ? void 0 : router.pathname, ':=', x.path);
121
+ changeRoute(e, x.path);
122
+ } },
123
+ react_1.default.createElement(material_1.Stack, { height: '95%', justifyContent: 'center' }, x.name)));
124
+ })),
122
125
  react_1.default.createElement(material_1.Box, { sx: {
123
126
  display: {
124
127
  xs: 'flex',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssplib/react-components",
3
- "version": "0.0.199",
3
+ "version": "0.0.200",
4
4
  "description": "SSP React Components",
5
5
  "main": "index.js",
6
6
  "author": "Pedro Henrique <sr.hudrick@gmail.com>",