@algenium/blocks 1.2.0-rc.2 → 1.2.0-rc.3

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 CHANGED
@@ -6808,6 +6808,7 @@ function ChatSidebar({
6808
6808
  labels = {},
6809
6809
  roleLabel,
6810
6810
  roomTypeLabel,
6811
+ mobileTopOffset,
6811
6812
  className
6812
6813
  }) {
6813
6814
  const {
@@ -6841,14 +6842,16 @@ function ChatSidebar({
6841
6842
  return roomTypeLabels[type] ?? type;
6842
6843
  };
6843
6844
  const activeConversation = activeCaseId ? conversations.find((c) => c.caseId === activeCaseId) : null;
6845
+ const cssVars = {
6846
+ "--sidebar-top": mobileTopOffset ?? "0px"
6847
+ };
6844
6848
  const panel = /* @__PURE__ */ jsxRuntime.jsx(
6845
6849
  "div",
6846
6850
  {
6851
+ style: cssVars,
6847
6852
  className: cn(
6848
6853
  "flex min-h-0 flex-col bg-background",
6849
- // Below sm (~640px): fullscreen overlay drawer above sticky app headers (often z-50)
6850
- "fixed inset-0 z-[100] w-full max-w-none border-0 shadow-none",
6851
- // sm+: docked right sidebar in the app shell flex row
6854
+ "fixed top-[var(--sidebar-top)] right-0 bottom-0 left-0 z-[100] w-full max-w-none border-0 shadow-none",
6852
6855
  "sm:relative sm:inset-auto sm:z-auto sm:h-full sm:w-[360px] sm:max-w-[360px] sm:shrink-0 sm:border-l sm:shadow-none xl:w-[400px] xl:max-w-[400px]",
6853
6856
  className
6854
6857
  ),
@@ -6948,7 +6951,8 @@ function ChatSidebar({
6948
6951
  /* @__PURE__ */ jsxRuntime.jsx(
6949
6952
  "div",
6950
6953
  {
6951
- className: "fixed inset-0 z-[90] bg-black/50 sm:hidden",
6954
+ style: cssVars,
6955
+ className: "fixed top-[var(--sidebar-top)] right-0 bottom-0 left-0 z-[90] bg-black/50 sm:hidden",
6952
6956
  "aria-hidden": true,
6953
6957
  onClick: close
6954
6958
  }