@cboxdk/cbox-ui 0.15.4 → 0.15.5

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 CHANGED
@@ -4624,50 +4624,33 @@ function CboxShell({ shell, children, navigate = defaultNavigate, LinkComponent
4624
4624
  overlay === "apps-sheet" && /* @__PURE__ */ jsx(AppsSheet, { onClose: () => setOverlay("more") }),
4625
4625
  overlay === "create" && /* @__PURE__ */ jsx(CreateSheet, { onClose: () => setOverlay(null) }, createKey ?? "tree")
4626
4626
  ] });
4627
- if (mobile) {
4628
- const moreOpen = overlay === "more" || overlay === "apps-sheet" || overlay === "context-sheet" && contextStep.underMore === true;
4629
- return /* @__PURE__ */ jsx(ShellContext.Provider, { value: api, children: /* @__PURE__ */ jsxs("div", { className: "cbx-shell is-mobile", "data-help-open": helpOpen, children: [
4630
- skip,
4631
- /* @__PURE__ */ jsxs("div", { className: "cbx-shell-column", children: [
4632
- /* @__PURE__ */ jsxs("header", { className: "cbx-m-chrome", hidden: moreOpen, children: [
4633
- /* @__PURE__ */ jsx(MobileTopBar, {}),
4634
- /* @__PURE__ */ jsx(MobileAreaHead, {}),
4635
- strips
4636
- ] }),
4637
- /* @__PURE__ */ jsxs("main", { id: mainId, tabIndex: -1, className: "cbx-shell-main canvas-gradient", children: [
4638
- moreOpen && /* @__PURE__ */ jsx(MoreScreen, { view: moreView, setView: setMoreView }),
4639
- /* @__PURE__ */ jsx(MobilePage, { hidden: moreOpen, children })
4640
- ] })
4641
- ] }),
4642
- /* @__PURE__ */ jsx(
4643
- TabBar,
4644
- {
4645
- onMore: () => {
4646
- setMoreView({ kind: "root" });
4647
- setOverlay("more");
4648
- }
4649
- }
4650
- ),
4651
- /* @__PURE__ */ jsx(HelpColumn, { docked: false, mobile: true }),
4652
- overlays
4653
- ] }) });
4654
- }
4655
- return /* @__PURE__ */ jsx(ShellContext.Provider, { value: api, children: /* @__PURE__ */ jsxs("div", { className: "cbx-shell", "data-help-open": helpOpen, children: [
4627
+ const moreOpen = mobile && (overlay === "more" || overlay === "apps-sheet" || overlay === "context-sheet" && contextStep.underMore === true);
4628
+ return /* @__PURE__ */ jsx(ShellContext.Provider, { value: api, children: /* @__PURE__ */ jsxs("div", { className: `cbx-shell${mobile ? " is-mobile" : ""}`, "data-help-open": helpOpen, children: [
4656
4629
  skip,
4657
- /* @__PURE__ */ jsx(Rail, { brandAssetBase }),
4630
+ !mobile && /* @__PURE__ */ jsx(Rail, { brandAssetBase }),
4658
4631
  /* @__PURE__ */ jsxs("div", { className: "cbx-shell-column", children: [
4659
- /* @__PURE__ */ jsx(Header, {}),
4632
+ mobile ? /* @__PURE__ */ jsxs("header", { className: "cbx-m-chrome", hidden: moreOpen, children: [
4633
+ /* @__PURE__ */ jsx(MobileTopBar, {}),
4634
+ /* @__PURE__ */ jsx(MobileAreaHead, {})
4635
+ ] }) : /* @__PURE__ */ jsx(Header, {}),
4660
4636
  envBanner !== null && /* @__PURE__ */ jsxs("div", { className: `cbx-banner cbx-banner-env cbx-env-${envBanner.tone ?? "neutral"}`, role: "status", children: [
4661
4637
  /* @__PURE__ */ jsx(ToneSquare, { tone: envBanner.tone }),
4662
4638
  /* @__PURE__ */ jsx("span", { className: "cbx-banner-text", children: t("{environment}. Not production, nothing here touches live customers.", { environment: envBanner.name }) })
4663
4639
  ] }),
4664
- strips,
4640
+ /* @__PURE__ */ jsx("div", { hidden: moreOpen, children: strips }),
4665
4641
  /* @__PURE__ */ jsxs("div", { className: "cbx-shell-body", children: [
4666
- /* @__PURE__ */ jsx(Subnav, {}),
4667
- /* @__PURE__ */ jsx("main", { id: mainId, tabIndex: -1, className: "cbx-shell-main canvas-gradient", children })
4642
+ !mobile && /* @__PURE__ */ jsx(Subnav, {}),
4643
+ /* @__PURE__ */ jsxs("main", { id: mainId, tabIndex: -1, className: "cbx-shell-main canvas-gradient", children: [
4644
+ moreOpen && /* @__PURE__ */ jsx(MoreScreen, { view: moreView, setView: setMoreView }),
4645
+ /* @__PURE__ */ jsx(MobilePage, { hidden: moreOpen, children })
4646
+ ] })
4668
4647
  ] })
4669
4648
  ] }),
4670
- /* @__PURE__ */ jsx(HelpColumn, { docked }),
4649
+ mobile && /* @__PURE__ */ jsx(TabBar, { onMore: () => {
4650
+ setMoreView({ kind: "root" });
4651
+ setOverlay("more");
4652
+ } }),
4653
+ /* @__PURE__ */ jsx(HelpColumn, { docked: !mobile && docked, mobile }),
4671
4654
  overlays
4672
4655
  ] }) });
4673
4656
  }