@broberg/app-shell 0.17.0 → 0.18.0

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/preact.cjs CHANGED
@@ -901,7 +901,8 @@ function Sidebar(p) {
901
901
  ) : p.brandMark }) : null
902
902
  ] }) : null,
903
903
  /* @__PURE__ */ jsxRuntime.jsx("nav", { class: "bas-sidebar__nav", children: p.groups.map((g) => {
904
- const open = railed || g.hideLabel || !folded.has(g.label);
904
+ const fixed = g.hideLabel || g.collapsible === false;
905
+ const open = railed || fixed || !folded.has(g.label);
905
906
  const slug = g.label.toLowerCase().replace(/[^a-z0-9]+/g, "-");
906
907
  return /* @__PURE__ */ jsxRuntime.jsxs(
907
908
  "div",
@@ -911,7 +912,7 @@ function Sidebar(p) {
911
912
  "aria-label": g.hideLabel ? g.label : void 0,
912
913
  "data-testid": g.hideLabel ? `sidebar-group-${slug}-unlabelled` : void 0,
913
914
  children: [
914
- g.hideLabel ? null : /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", class: "bas-group__label", "data-testid": `sidebar-group-${slug}`, "aria-expanded": open, onClick: () => toggleGroup(g.label), children: [
915
+ g.hideLabel ? null : g.collapsible === false ? /* @__PURE__ */ jsxRuntime.jsx("div", { class: "bas-group__label bas-group__label--static", "data-testid": `sidebar-group-${slug}`, children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: g.label }) }) : /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", class: "bas-group__label", "data-testid": `sidebar-group-${slug}`, "aria-expanded": open, onClick: () => toggleGroup(g.label), children: [
915
916
  /* @__PURE__ */ jsxRuntime.jsx(IconChevron, { open }),
916
917
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: g.label })
917
918
  ] }),