@homebound/beam 2.393.0 → 2.394.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 +22 -19
- 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 +22 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12161,7 +12161,7 @@ function Switch(props) {
|
|
|
12161
12161
|
{
|
|
12162
12162
|
"aria-hidden": "true",
|
|
12163
12163
|
css: {
|
|
12164
|
-
...Css.wPx(
|
|
12164
|
+
...Css.wPx(toggleWidth(compact)).hPx(toggleHeight(compact)).bgGray200.br12.relative.transition.$,
|
|
12165
12165
|
...isHovered && switchHoverStyles,
|
|
12166
12166
|
...isKeyboardFocus && switchFocusStyles,
|
|
12167
12167
|
...isDisabled && Css.bgGray300.$,
|
|
@@ -12188,6 +12188,7 @@ function Switch(props) {
|
|
|
12188
12188
|
);
|
|
12189
12189
|
}
|
|
12190
12190
|
var toggleHeight = (isCompact) => isCompact ? 16 : 24;
|
|
12191
|
+
var toggleWidth = (isCompact) => isCompact ? 32 : 40;
|
|
12191
12192
|
var circleDiameter = (isCompact) => isCompact ? 12 : 20;
|
|
12192
12193
|
var switchHoverStyles = Css.bgGray400.$;
|
|
12193
12194
|
var switchFocusStyles = Css.bshFocus.$;
|
|
@@ -15620,7 +15621,7 @@ var import_framer_motion2 = require("framer-motion");
|
|
|
15620
15621
|
var import_react84 = require("react");
|
|
15621
15622
|
var import_jsx_runtime119 = require("@emotion/react/jsx-runtime");
|
|
15622
15623
|
var RIGHT_SIDEBAR_MIN_WIDTH = "250px";
|
|
15623
|
-
function RightSidebar({ content }) {
|
|
15624
|
+
function RightSidebar({ content, headerHeightPx: headerHeightPx2 }) {
|
|
15624
15625
|
const [selectedIcon, setSelectedIcon] = (0, import_react84.useState)(void 0);
|
|
15625
15626
|
const tid = useTestIds({}, "rightSidebar");
|
|
15626
15627
|
return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_jsx_runtime119.Fragment, { children: [
|
|
@@ -15642,23 +15643,25 @@ function RightSidebar({ content }) {
|
|
|
15642
15643
|
animate: { x: 0, opacity: 1 },
|
|
15643
15644
|
transition: { delay: 0.2, ease: [0.51, 0.92, 0.24, 1], duration: 0.3 },
|
|
15644
15645
|
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
|
-
|
|
15646
|
+
css: Css.w100.mw(RIGHT_SIDEBAR_MIN_WIDTH).z0.maxh(`calc(100vh - ${headerHeightPx2}px)`).oya.pl4.pr3.$,
|
|
15647
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_jsx_runtime119.Fragment, { children: [
|
|
15648
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { css: Css.sticky.top0.bgWhite.$, children: [
|
|
15649
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { css: Css.absolute.leftPx(-24).top0.df.fdc.aic.$, children: [
|
|
15650
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
15651
|
+
IconButton,
|
|
15652
|
+
{
|
|
15653
|
+
bgColor: "rgba(255,255,255,1)" /* White */,
|
|
15654
|
+
circle: true,
|
|
15655
|
+
onClick: () => setSelectedIcon(void 0),
|
|
15656
|
+
icon: "x",
|
|
15657
|
+
inc: 3.5
|
|
15658
|
+
}
|
|
15659
|
+
),
|
|
15660
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { css: Css.absolute.topPx(48).h("calc(100vh - 168px)").wPx(1).bgGray300.$ })
|
|
15661
|
+
] }),
|
|
15662
|
+
/* @__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
15663
|
] }),
|
|
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() })
|
|
15664
|
+
selectedIcon && /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { ...tid.content, css: Css.pl3.$, children: content.find((sidebar) => sidebar.icon === selectedIcon)?.render() })
|
|
15662
15665
|
] })
|
|
15663
15666
|
},
|
|
15664
15667
|
"rightSidebar"
|
|
@@ -15718,7 +15721,7 @@ function FormPageLayoutComponent(props) {
|
|
|
15718
15721
|
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(PageHeader, { ...props, ...tids.pageHeader }),
|
|
15719
15722
|
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(LeftNav, { sectionsWithRefs, ...tids }),
|
|
15720
15723
|
/* @__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 }) })
|
|
15724
|
+
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
15725
|
] }) })
|
|
15723
15726
|
);
|
|
15724
15727
|
}
|