@ndlib/component-library 0.0.95 → 0.0.96

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.
@@ -44,8 +44,9 @@ export const NavMenu = (props) => {
44
44
  const link = '//' + document.location.host + topLevelMenuId;
45
45
  const category = topLevelMenuId.charAt(1).toUpperCase() + topLevelMenuId.slice(2);
46
46
  return (_jsxs(Column, Object.assign({ sx: { flexBasis: '275px', p: 2, flexShrink: 0, flexGrow: 0 } }, { children: [_jsx(Heading, Object.assign({ standalone: true, size: HEADING_SIZE.SM, underline: true }, getMenuItemProps(submenuPath), { children: submenuItem.label })), _jsx(List, Object.assign({}, getMenuProps(submenuPath), { icon: ChevronRightIcon }, { children: leafMenuItems.map((leafMenuItem, i) => {
47
+ var _a;
47
48
  const leafMenuPath = submenuPath.concat(leafMenuItem.id);
48
- return (_jsx(ListItem, Object.assign({ index: i, sx: { mt: 1 } }, getMenuItemProps(leafMenuPath), { children: _jsx(Link, Object.assign({ to: "/", sx: {
49
+ return (_jsx(ListItem, Object.assign({ index: i, sx: { mt: 1 } }, getMenuItemProps(leafMenuPath), { children: _jsx(Link, Object.assign({ to: (_a = leafMenuItem === null || leafMenuItem === void 0 ? void 0 : leafMenuItem.action) === null || _a === void 0 ? void 0 : _a.to, sx: {
49
50
  fontWeight: FONT_WEIGHT.BOLD,
50
51
  }, tabIndex: -1 }, { children: leafMenuItem.label })) }), leafMenuItem.id));
51
52
  }) })), i < 1 && (link.includes('esearch') || link.includes('ervices')) ? (_jsxs(ArrowLink, Object.assign({ to: link, sx: { margin: '20px 10px 10px 10px' } }, { children: ["View More ", category] }))) : null] }), submenuItem.id));
@@ -24,7 +24,7 @@ export const ArrowLink = (_a) => {
24
24
  } }, sx) }, { children: [_jsx("div", Object.assign({ sx: {
25
25
  position: 'relative',
26
26
  border: '1px solid #a7a7a7',
27
- 'border-width': '1px 0 2px 1px',
27
+ borderWidth: '1px 0 2px 1px',
28
28
  boxSizing: 'border-box',
29
29
  padding: '0.125rem 1.5rem 0.125rem 0.5rem',
30
30
  height: '100%',
@@ -35,5 +35,5 @@ export const Paragraph = (_a) => {
35
35
  size: fontSize,
36
36
  multiple: marginHeightMultiple,
37
37
  });
38
- return (_jsx("p", Object.assign({ sx: Object.assign(Object.assign(Object.assign({}, getTypographyStyles(typography)), { display: clampLines ? '-webkit-box' : undefined, '-webkit-line-clamp': clampLines ? String(clampLines) : undefined, '-webkit-box-orient': 'vertical', overflow: clampLines ? 'hidden' : undefined, mt: topMargin }), sx) }, rest)));
38
+ return (_jsx("p", Object.assign({ sx: Object.assign(Object.assign(Object.assign({}, getTypographyStyles(typography)), { display: clampLines ? '-webkit-box' : undefined, WebkitLineClamp: clampLines ? String(clampLines) : undefined, WebkitBoxOrient: 'vertical', overflow: clampLines ? 'hidden' : undefined, mt: topMargin }), sx) }, rest)));
39
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndlib/component-library",
3
- "version": "0.0.95",
3
+ "version": "0.0.96",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [