@cccsaurora/howler-ui 2.17.0-dev.552 → 2.17.0-dev.553

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Grid } from '@mui/material';
2
+ import { Grid, gridClasses } from '@mui/material';
3
3
  import HitNotebooks from '@cccsaurora/howler-ui/components/elements/hit/HitNotebooks';
4
4
  import PivotLink from '@cccsaurora/howler-ui/components/elements/hit/related/PivotLink';
5
5
  import RelatedLink from '@cccsaurora/howler-ui/components/elements/hit/related/RelatedLink';
@@ -7,7 +7,7 @@ import { uniqBy } from 'lodash-es';
7
7
  const HitLinks = ({ hit, analytic, dossiers = [] }) => {
8
8
  return ((hit?.howler?.links?.length > 0 ||
9
9
  analytic?.notebooks?.length > 0 ||
10
- dossiers.filter(_dossier => _dossier.pivots?.length > 0).length > 0) && (_jsxs(Grid, { container: true, spacing: 1, pr: 2, children: [hit?.howler?.links?.length > 0 &&
10
+ dossiers.filter(_dossier => _dossier.pivots?.length > 0).length > 0) && (_jsxs(Grid, { container: true, spacing: 1, pr: 2, sx: { [`& .${gridClasses.item}`]: { display: 'flex' } }, children: [hit?.howler?.links?.length > 0 &&
11
11
  uniqBy(hit.howler.links, 'href')
12
12
  .slice(0, 3)
13
13
  .map(l => (_jsx(Grid, { item: true, children: _jsx(RelatedLink, { compact: true, ...l }) }, l.href))), dossiers.flatMap(_dossier => (_dossier.pivots ?? []).map((_pivot, index) => (
package/package.json CHANGED
@@ -101,7 +101,7 @@
101
101
  "internal-slot": "1.0.7"
102
102
  },
103
103
  "type": "module",
104
- "version": "2.17.0-dev.552",
104
+ "version": "2.17.0-dev.553",
105
105
  "exports": {
106
106
  "./i18n": "./i18n.js",
107
107
  "./index.css": "./index.css",