@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.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
|
@@ -11798,7 +11798,7 @@ function Switch(props) {
|
|
|
11798
11798
|
{
|
|
11799
11799
|
"aria-hidden": "true",
|
|
11800
11800
|
css: {
|
|
11801
|
-
...Css.wPx(
|
|
11801
|
+
...Css.wPx(toggleWidth(compact)).hPx(toggleHeight(compact)).bgGray200.br12.relative.transition.$,
|
|
11802
11802
|
...isHovered && switchHoverStyles,
|
|
11803
11803
|
...isKeyboardFocus && switchFocusStyles,
|
|
11804
11804
|
...isDisabled && Css.bgGray300.$,
|
|
@@ -11825,6 +11825,7 @@ function Switch(props) {
|
|
|
11825
11825
|
);
|
|
11826
11826
|
}
|
|
11827
11827
|
var toggleHeight = (isCompact) => isCompact ? 16 : 24;
|
|
11828
|
+
var toggleWidth = (isCompact) => isCompact ? 32 : 40;
|
|
11828
11829
|
var circleDiameter = (isCompact) => isCompact ? 12 : 20;
|
|
11829
11830
|
var switchHoverStyles = Css.bgGray400.$;
|
|
11830
11831
|
var switchFocusStyles = Css.bshFocus.$;
|
|
@@ -15257,7 +15258,7 @@ import { AnimatePresence as AnimatePresence2, motion as motion2 } from "framer-m
|
|
|
15257
15258
|
import { useState as useState31 } from "react";
|
|
15258
15259
|
import { Fragment as Fragment21, jsx as jsx119, jsxs as jsxs57 } from "@emotion/react/jsx-runtime";
|
|
15259
15260
|
var RIGHT_SIDEBAR_MIN_WIDTH = "250px";
|
|
15260
|
-
function RightSidebar({ content }) {
|
|
15261
|
+
function RightSidebar({ content, headerHeightPx: headerHeightPx2 }) {
|
|
15261
15262
|
const [selectedIcon, setSelectedIcon] = useState31(void 0);
|
|
15262
15263
|
const tid = useTestIds({}, "rightSidebar");
|
|
15263
15264
|
return /* @__PURE__ */ jsxs57(Fragment21, { children: [
|
|
@@ -15279,23 +15280,25 @@ function RightSidebar({ content }) {
|
|
|
15279
15280
|
animate: { x: 0, opacity: 1 },
|
|
15280
15281
|
transition: { delay: 0.2, ease: [0.51, 0.92, 0.24, 1], duration: 0.3 },
|
|
15281
15282
|
exit: { transition: { ease: "linear", duration: 0.2 }, x: "100%" },
|
|
15282
|
-
css: Css.w100.mw(RIGHT_SIDEBAR_MIN_WIDTH).z0.$,
|
|
15283
|
-
children: /* @__PURE__ */ jsxs57(
|
|
15284
|
-
/* @__PURE__ */ jsxs57("div", { css: Css.
|
|
15285
|
-
/* @__PURE__ */
|
|
15286
|
-
|
|
15287
|
-
|
|
15288
|
-
|
|
15289
|
-
|
|
15290
|
-
|
|
15291
|
-
|
|
15292
|
-
|
|
15293
|
-
|
|
15294
|
-
|
|
15295
|
-
|
|
15283
|
+
css: Css.w100.mw(RIGHT_SIDEBAR_MIN_WIDTH).z0.maxh(`calc(100vh - ${headerHeightPx2}px)`).oya.pl4.pr3.$,
|
|
15284
|
+
children: /* @__PURE__ */ jsxs57(Fragment21, { children: [
|
|
15285
|
+
/* @__PURE__ */ jsxs57("div", { css: Css.sticky.top0.bgWhite.$, children: [
|
|
15286
|
+
/* @__PURE__ */ jsxs57("div", { css: Css.absolute.leftPx(-24).top0.df.fdc.aic.$, children: [
|
|
15287
|
+
/* @__PURE__ */ jsx119(
|
|
15288
|
+
IconButton,
|
|
15289
|
+
{
|
|
15290
|
+
bgColor: "rgba(255,255,255,1)" /* White */,
|
|
15291
|
+
circle: true,
|
|
15292
|
+
onClick: () => setSelectedIcon(void 0),
|
|
15293
|
+
icon: "x",
|
|
15294
|
+
inc: 3.5
|
|
15295
|
+
}
|
|
15296
|
+
),
|
|
15297
|
+
/* @__PURE__ */ jsx119("div", { css: Css.absolute.topPx(48).h("calc(100vh - 168px)").wPx(1).bgGray300.$ })
|
|
15298
|
+
] }),
|
|
15299
|
+
/* @__PURE__ */ jsx119("div", { css: Css.df.aic.jcfe.gap2.mb3.$, children: /* @__PURE__ */ jsx119(IconButtonList, { content, selectedIcon, onIconClick: setSelectedIcon }) })
|
|
15296
15300
|
] }),
|
|
15297
|
-
/* @__PURE__ */ jsx119("div", { css: Css.
|
|
15298
|
-
selectedIcon && /* @__PURE__ */ jsx119("div", { ...tid.content, children: content.find((sidebar) => sidebar.icon === selectedIcon)?.render() })
|
|
15301
|
+
selectedIcon && /* @__PURE__ */ jsx119("div", { ...tid.content, css: Css.pl3.$, children: content.find((sidebar) => sidebar.icon === selectedIcon)?.render() })
|
|
15299
15302
|
] })
|
|
15300
15303
|
},
|
|
15301
15304
|
"rightSidebar"
|
|
@@ -15355,7 +15358,7 @@ function FormPageLayoutComponent(props) {
|
|
|
15355
15358
|
/* @__PURE__ */ jsx121(PageHeader, { ...props, ...tids.pageHeader }),
|
|
15356
15359
|
/* @__PURE__ */ jsx121(LeftNav, { sectionsWithRefs, ...tids }),
|
|
15357
15360
|
/* @__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 }) })
|
|
15361
|
+
rightSideBar && /* @__PURE__ */ jsx121("aside", { css: Css.gr(2).gc("3 / 4").sticky.topPx(headerHeightPx).$, children: /* @__PURE__ */ jsx121(RightSidebar, { content: rightSideBar, headerHeightPx }) })
|
|
15359
15362
|
] }) })
|
|
15360
15363
|
);
|
|
15361
15364
|
}
|