@homebound/beam 2.393.0 → 2.394.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/index.d.cts CHANGED
@@ -7716,11 +7716,12 @@ type SidebarContentProps = {
7716
7716
  };
7717
7717
  type RightSidebarProps = {
7718
7718
  content: SidebarContentProps[];
7719
+ headerHeightPx: number;
7719
7720
  };
7720
7721
  /** Exporting this value allows layout components to coordinate responsive column sizing
7721
7722
  * while avoiding layout shift when the sidebar is opened */
7722
7723
  declare const RIGHT_SIDEBAR_MIN_WIDTH = "250px";
7723
- declare function RightSidebar({ content }: RightSidebarProps): _emotion_react_jsx_runtime.JSX.Element;
7724
+ declare function RightSidebar({ content, headerHeightPx }: RightSidebarProps): _emotion_react_jsx_runtime.JSX.Element;
7724
7725
 
7725
7726
  type HeaderBreadcrumb = {
7726
7727
  href: string;
package/dist/index.d.ts CHANGED
@@ -7716,11 +7716,12 @@ type SidebarContentProps = {
7716
7716
  };
7717
7717
  type RightSidebarProps = {
7718
7718
  content: SidebarContentProps[];
7719
+ headerHeightPx: number;
7719
7720
  };
7720
7721
  /** Exporting this value allows layout components to coordinate responsive column sizing
7721
7722
  * while avoiding layout shift when the sidebar is opened */
7722
7723
  declare const RIGHT_SIDEBAR_MIN_WIDTH = "250px";
7723
- declare function RightSidebar({ content }: RightSidebarProps): _emotion_react_jsx_runtime.JSX.Element;
7724
+ declare function RightSidebar({ content, headerHeightPx }: RightSidebarProps): _emotion_react_jsx_runtime.JSX.Element;
7724
7725
 
7725
7726
  type HeaderBreadcrumb = {
7726
7727
  href: string;
package/dist/index.js CHANGED
@@ -15257,7 +15257,7 @@ import { AnimatePresence as AnimatePresence2, motion as motion2 } from "framer-m
15257
15257
  import { useState as useState31 } from "react";
15258
15258
  import { Fragment as Fragment21, jsx as jsx119, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
15259
15259
  var RIGHT_SIDEBAR_MIN_WIDTH = "250px";
15260
- function RightSidebar({ content }) {
15260
+ function RightSidebar({ content, headerHeightPx: headerHeightPx2 }) {
15261
15261
  const [selectedIcon, setSelectedIcon] = useState31(void 0);
15262
15262
  const tid = useTestIds({}, "rightSidebar");
15263
15263
  return /* @__PURE__ */ jsxs57(Fragment21, { children: [
@@ -15279,23 +15279,25 @@ function RightSidebar({ content }) {
15279
15279
  animate: { x: 0, opacity: 1 },
15280
15280
  transition: { delay: 0.2, ease: [0.51, 0.92, 0.24, 1], duration: 0.3 },
15281
15281
  exit: { transition: { ease: "linear", duration: 0.2 }, x: "100%" },
15282
- css: Css.w100.mw(RIGHT_SIDEBAR_MIN_WIDTH).z0.$,
15283
- children: /* @__PURE__ */ jsxs57("div", { css: Css.relative.z0.px3.$, children: [
15284
- /* @__PURE__ */ jsxs57("div", { css: Css.absolute.leftPx(-24).top0.$, children: [
15285
- /* @__PURE__ */ jsx119(
15286
- IconButton,
15287
- {
15288
- bgColor: "rgba(255,255,255,1)" /* White */,
15289
- circle: true,
15290
- onClick: () => setSelectedIcon(void 0),
15291
- icon: "x",
15292
- inc: 3.5
15293
- }
15294
- ),
15295
- /* @__PURE__ */ jsx119("div", { css: Css.absolute.topPx(48).leftPx(23).h("calc(100vh - 168px)").wPx(1).bgGray300.$ })
15282
+ css: Css.w100.mw(RIGHT_SIDEBAR_MIN_WIDTH).z0.maxh(`calc(100vh - ${headerHeightPx2}px)`).oya.pl4.pr3.$,
15283
+ children: /* @__PURE__ */ jsxs57(Fragment21, { children: [
15284
+ /* @__PURE__ */ jsxs57("div", { css: Css.sticky.top0.bgWhite.$, children: [
15285
+ /* @__PURE__ */ jsxs57("div", { css: Css.absolute.leftPx(-24).top0.df.fdc.aic.$, children: [
15286
+ /* @__PURE__ */ jsx119(
15287
+ IconButton,
15288
+ {
15289
+ bgColor: "rgba(255,255,255,1)" /* White */,
15290
+ circle: true,
15291
+ onClick: () => setSelectedIcon(void 0),
15292
+ icon: "x",
15293
+ inc: 3.5
15294
+ }
15295
+ ),
15296
+ /* @__PURE__ */ jsx119("div", { css: Css.absolute.topPx(48).h("calc(100vh - 168px)").wPx(1).bgGray300.$ })
15297
+ ] }),
15298
+ /* @__PURE__ */ jsx119("div", { css: Css.df.aic.jcfe.gap2.mb3.$, children: /* @__PURE__ */ jsx119(IconButtonList, { content, selectedIcon, onIconClick: setSelectedIcon }) })
15296
15299
  ] }),
15297
- /* @__PURE__ */ jsx119("div", { css: Css.df.aic.jcfe.gap2.mb3.$, children: /* @__PURE__ */ jsx119(IconButtonList, { content, selectedIcon, onIconClick: setSelectedIcon }) }),
15298
- selectedIcon && /* @__PURE__ */ jsx119("div", { ...tid.content, children: content.find((sidebar) => sidebar.icon === selectedIcon)?.render() })
15300
+ selectedIcon && /* @__PURE__ */ jsx119("div", { ...tid.content, css: Css.pl3.$, children: content.find((sidebar) => sidebar.icon === selectedIcon)?.render() })
15299
15301
  ] })
15300
15302
  },
15301
15303
  "rightSidebar"
@@ -15355,7 +15357,7 @@ function FormPageLayoutComponent(props) {
15355
15357
  /* @__PURE__ */ jsx121(PageHeader, { ...props, ...tids.pageHeader }),
15356
15358
  /* @__PURE__ */ jsx121(LeftNav, { sectionsWithRefs, ...tids }),
15357
15359
  /* @__PURE__ */ jsx121(FormSections, { sectionsWithRefs, formState, ...tids }),
15358
- rightSideBar && /* @__PURE__ */ jsx121("aside", { css: Css.gr(2).gc("3 / 4").sticky.topPx(headerHeightPx).$, children: /* @__PURE__ */ jsx121(RightSidebar, { content: rightSideBar }) })
15360
+ rightSideBar && /* @__PURE__ */ jsx121("aside", { css: Css.gr(2).gc("3 / 4").sticky.topPx(headerHeightPx).$, children: /* @__PURE__ */ jsx121(RightSidebar, { content: rightSideBar, headerHeightPx }) })
15359
15361
  ] }) })
15360
15362
  );
15361
15363
  }