@homebound/beam 3.105.0 → 3.105.1

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.cjs CHANGED
@@ -27106,16 +27106,18 @@ function SideNav(props) {
27106
27106
  const {
27107
27107
  top,
27108
27108
  items,
27109
- footer
27109
+ footer,
27110
+ showContentWhenCollapsed = false
27110
27111
  } = props;
27111
27112
  const {
27112
27113
  navState
27113
27114
  } = useSideNavLayoutContext();
27114
27115
  const tid = useTestIds(props, "sideNav");
27115
27116
  const panelCollapsed = navState === "collapse";
27116
- const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
27117
+ const hideContent = panelCollapsed && !showContentWhenCollapsed;
27118
+ const hideItems = hideContent || panelCollapsed && !allItemsHaveIcons(items);
27117
27119
  return /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("nav", { className: "df fdc h100 fs0", ...tid, children: [
27118
- top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...(0, import_runtime137.trussProps)({
27120
+ !hideContent && top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...(0, import_runtime137.trussProps)({
27119
27121
  flexShrink: "fs0",
27120
27122
  paddingLeft: "pl2",
27121
27123
  paddingRight: "pr2",
@@ -27126,7 +27128,7 @@ function SideNav(props) {
27126
27128
  paddingBottom: "pb4"
27127
27129
  } : {}
27128
27130
  }), ...tid.top, children: top }),
27129
- /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...(0, import_runtime137.trussProps)({
27131
+ !hideContent && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...(0, import_runtime137.trussProps)({
27130
27132
  flexGrow: "fg1",
27131
27133
  overflowY: "oya",
27132
27134
  display: "df",
@@ -27138,8 +27140,8 @@ function SideNav(props) {
27138
27140
  ...top === void 0 ? {
27139
27141
  paddingTop: "pt5"
27140
27142
  } : {}
27141
- }), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(AppNavItems, { items, panelCollapsed }) }),
27142
- footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...(0, import_runtime137.trussProps)({
27143
+ }), ...tid.items, children: !hideItems && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(AppNavItems, { items, panelCollapsed }) }),
27144
+ !hideContent && footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...(0, import_runtime137.trussProps)({
27143
27145
  flexShrink: "fs0",
27144
27146
  paddingLeft: "pl2",
27145
27147
  paddingRight: "pr2",