@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.cjs +20 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +20 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -15620,7 +15620,7 @@ var import_framer_motion2 = require("framer-motion");
|
|
|
15620
15620
|
var import_react84 = require("react");
|
|
15621
15621
|
var import_jsx_runtime119 = require("@emotion/react/jsx-runtime");
|
|
15622
15622
|
var RIGHT_SIDEBAR_MIN_WIDTH = "250px";
|
|
15623
|
-
function RightSidebar({ content }) {
|
|
15623
|
+
function RightSidebar({ content, headerHeightPx: headerHeightPx2 }) {
|
|
15624
15624
|
const [selectedIcon, setSelectedIcon] = (0, import_react84.useState)(void 0);
|
|
15625
15625
|
const tid = useTestIds({}, "rightSidebar");
|
|
15626
15626
|
return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_jsx_runtime119.Fragment, { children: [
|
|
@@ -15642,23 +15642,25 @@ function RightSidebar({ content }) {
|
|
|
15642
15642
|
animate: { x: 0, opacity: 1 },
|
|
15643
15643
|
transition: { delay: 0.2, ease: [0.51, 0.92, 0.24, 1], duration: 0.3 },
|
|
15644
15644
|
exit: { transition: { ease: "linear", duration: 0.2 }, x: "100%" },
|
|
15645
|
-
css: Css.w100.mw(RIGHT_SIDEBAR_MIN_WIDTH).z0.$,
|
|
15646
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
|
|
15647
|
-
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { css: Css.
|
|
15648
|
-
/* @__PURE__ */ (0, import_jsx_runtime119.
|
|
15649
|
-
|
|
15650
|
-
|
|
15651
|
-
|
|
15652
|
-
|
|
15653
|
-
|
|
15654
|
-
|
|
15655
|
-
|
|
15656
|
-
|
|
15657
|
-
|
|
15658
|
-
|
|
15645
|
+
css: Css.w100.mw(RIGHT_SIDEBAR_MIN_WIDTH).z0.maxh(`calc(100vh - ${headerHeightPx2}px)`).oya.pl4.pr3.$,
|
|
15646
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_jsx_runtime119.Fragment, { children: [
|
|
15647
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { css: Css.sticky.top0.bgWhite.$, children: [
|
|
15648
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { css: Css.absolute.leftPx(-24).top0.df.fdc.aic.$, children: [
|
|
15649
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
15650
|
+
IconButton,
|
|
15651
|
+
{
|
|
15652
|
+
bgColor: "rgba(255,255,255,1)" /* White */,
|
|
15653
|
+
circle: true,
|
|
15654
|
+
onClick: () => setSelectedIcon(void 0),
|
|
15655
|
+
icon: "x",
|
|
15656
|
+
inc: 3.5
|
|
15657
|
+
}
|
|
15658
|
+
),
|
|
15659
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { css: Css.absolute.topPx(48).h("calc(100vh - 168px)").wPx(1).bgGray300.$ })
|
|
15660
|
+
] }),
|
|
15661
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { css: Css.df.aic.jcfe.gap2.mb3.$, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(IconButtonList, { content, selectedIcon, onIconClick: setSelectedIcon }) })
|
|
15659
15662
|
] }),
|
|
15660
|
-
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { css: Css.
|
|
15661
|
-
selectedIcon && /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { ...tid.content, children: content.find((sidebar) => sidebar.icon === selectedIcon)?.render() })
|
|
15663
|
+
selectedIcon && /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { ...tid.content, css: Css.pl3.$, children: content.find((sidebar) => sidebar.icon === selectedIcon)?.render() })
|
|
15662
15664
|
] })
|
|
15663
15665
|
},
|
|
15664
15666
|
"rightSidebar"
|
|
@@ -15718,7 +15720,7 @@ function FormPageLayoutComponent(props) {
|
|
|
15718
15720
|
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(PageHeader, { ...props, ...tids.pageHeader }),
|
|
15719
15721
|
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(LeftNav, { sectionsWithRefs, ...tids }),
|
|
15720
15722
|
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(FormSections, { sectionsWithRefs, formState, ...tids }),
|
|
15721
|
-
rightSideBar && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("aside", { css: Css.gr(2).gc("3 / 4").sticky.topPx(headerHeightPx).$, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(RightSidebar, { content: rightSideBar }) })
|
|
15723
|
+
rightSideBar && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("aside", { css: Css.gr(2).gc("3 / 4").sticky.topPx(headerHeightPx).$, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(RightSidebar, { content: rightSideBar, headerHeightPx }) })
|
|
15722
15724
|
] }) })
|
|
15723
15725
|
);
|
|
15724
15726
|
}
|