@local-civics/hub-ui 0.1.254 → 0.1.255
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.
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6572,7 +6572,8 @@ const PathwayDetail = (props) => {
|
|
|
6572
6572
|
}
|
|
6573
6573
|
return depth;
|
|
6574
6574
|
};
|
|
6575
|
-
const
|
|
6575
|
+
const barCategoryIds = Object.keys(props.rawCriteria || {}).sort((a, b) => depthOf(a) - depthOf(b));
|
|
6576
|
+
const categoryIds = barCategoryIds.filter((id) => !rootCategoryIds.has(id));
|
|
6576
6577
|
const [catFilter, setCatFilter] = React.useState(null);
|
|
6577
6578
|
const [categoriesOpen, setCategoriesOpen] = React.useState(false);
|
|
6578
6579
|
const filteredBadges = catFilter ? badges.filter((b) => {
|
|
@@ -6588,7 +6589,7 @@ const PathwayDetail = (props) => {
|
|
|
6588
6589
|
},
|
|
6589
6590
|
/* @__PURE__ */ React.createElement(IconCategory2, { size: 15, stroke: 2 }),
|
|
6590
6591
|
"View Pathway Structure"
|
|
6591
|
-
),
|
|
6592
|
+
), barCategoryIds.length > 0 && /* @__PURE__ */ React.createElement("div", { className: "mt-4 flex flex-col gap-3" }, barCategoryIds.map((id, i) => {
|
|
6592
6593
|
var _a2, _b, _c;
|
|
6593
6594
|
const accent = ACCENT_ORDER[i % ACCENT_ORDER.length];
|
|
6594
6595
|
const label = ((_a2 = props.categoryNames) == null ? void 0 : _a2[id]) || id;
|