@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.js
CHANGED
|
@@ -6592,7 +6592,8 @@ const PathwayDetail = (props) => {
|
|
|
6592
6592
|
}
|
|
6593
6593
|
return depth;
|
|
6594
6594
|
};
|
|
6595
|
-
const
|
|
6595
|
+
const barCategoryIds = Object.keys(props.rawCriteria || {}).sort((a, b) => depthOf(a) - depthOf(b));
|
|
6596
|
+
const categoryIds = barCategoryIds.filter((id) => !rootCategoryIds.has(id));
|
|
6596
6597
|
const [catFilter, setCatFilter] = React__namespace.useState(null);
|
|
6597
6598
|
const [categoriesOpen, setCategoriesOpen] = React__namespace.useState(false);
|
|
6598
6599
|
const filteredBadges = catFilter ? badges.filter((b) => {
|
|
@@ -6608,7 +6609,7 @@ const PathwayDetail = (props) => {
|
|
|
6608
6609
|
},
|
|
6609
6610
|
/* @__PURE__ */ React__namespace.createElement(icons$1.IconCategory2, { size: 15, stroke: 2 }),
|
|
6610
6611
|
"View Pathway Structure"
|
|
6611
|
-
),
|
|
6612
|
+
), barCategoryIds.length > 0 && /* @__PURE__ */ React__namespace.createElement("div", { className: "mt-4 flex flex-col gap-3" }, barCategoryIds.map((id, i) => {
|
|
6612
6613
|
var _a2, _b, _c;
|
|
6613
6614
|
const accent = ACCENT_ORDER[i % ACCENT_ORDER.length];
|
|
6614
6615
|
const label = ((_a2 = props.categoryNames) == null ? void 0 : _a2[id]) || id;
|