randmarcomps 1.623.0 → 1.625.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.
@@ -56965,7 +56965,7 @@ const TableCaption = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE_
56965
56965
  }
56966
56966
  ));
56967
56967
  TableCaption.displayName = "TableCaption";
56968
- const Topbar = forwardRef(
56968
+ const APP_SHELL_HEADER_HEIGHT_TOKEN_CLASS = "[--rm-shell-header-height:3.5rem]", APP_SHELL_HEADER_HEIGHT_CLASS = "h-[var(--rm-shell-header-height)]", APP_SHELL_HEADER_OFFSET_CLASS = "pt-[var(--rm-shell-header-height)]", Topbar = forwardRef(
56969
56969
  ({ onSignOut: e, handleValidSearch: t, rightMenu: n, searchPlaceholder: o }, a) => {
56970
56970
  const [s, l] = useState(""), c = useLocation(), { toast: d } = useToast();
56971
56971
  useEffect(() => {
@@ -56984,15 +56984,17 @@ const Topbar = forwardRef(
56984
56984
  return;
56985
56985
  }
56986
56986
  t(R);
56987
+ }, S = (R) => {
56988
+ R.key === "Enter" && f();
56987
56989
  };
56988
- return /* @__PURE__ */ jsxs("header", { className: "flex h-16 items-center gap-4 border-b bg-sidebar px-6 fixed top-0 right-0 z-50 left-0 text-sidebar-foreground border-sidebar-border peer-data-[state=expanded]:md:left-(--sidebar-width) peer-data-[collapsible=offcanvas]:md:left-0 peer-data-[collapsible=icon]:md:left-(--sidebar-width-icon)", children: [
56989
- /* @__PURE__ */ jsx(SidebarTrigger, { className: "lg:hidden", children: /* @__PURE__ */ jsx(Menu$1, { className: "h-6 w-6" }) }),
56990
+ return /* @__PURE__ */ jsxs("header", { className: `fixed top-0 right-0 left-0 z-50 flex ${APP_SHELL_HEADER_HEIGHT_TOKEN_CLASS} ${APP_SHELL_HEADER_HEIGHT_CLASS} items-center gap-3 border-b border-border bg-background px-4 text-foreground transition-[left] duration-200 ease-linear lg:px-6 peer-data-[state=expanded]:lg:left-(--sidebar-width) peer-data-[collapsible=offcanvas]:lg:left-0 peer-data-[collapsible=icon]:lg:left-(--sidebar-width-icon)`, children: [
56991
+ /* @__PURE__ */ jsx(SidebarTrigger, { className: "h-10 w-10 text-foreground lg:hidden", children: /* @__PURE__ */ jsx(Menu$1, { className: "h-5 w-5" }) }),
56990
56992
  /* @__PURE__ */ jsx("div", { className: "flex flex-1 items-center gap-4", children: /* @__PURE__ */ jsx("div", { className: "relative w-full max-w-sm", children: /* @__PURE__ */ jsxs("div", { children: [
56991
56993
  /* @__PURE__ */ jsx(
56992
56994
  "button",
56993
56995
  {
56994
56996
  type: "button",
56995
- className: "absolute left-2 top-1/2 -translate-y-1/2",
56997
+ className: "absolute left-1 top-1/2 inline-flex h-8 w-8 -translate-y-1/2 items-center justify-center rounded-md text-muted-foreground",
56996
56998
  onClick: f,
56997
56999
  "aria-label": "Search",
56998
57000
  children: /* @__PURE__ */ jsx(Search, { className: "h-4 w-4 text-muted-foreground" })
@@ -57002,12 +57004,10 @@ const Topbar = forwardRef(
57002
57004
  Input,
57003
57005
  {
57004
57006
  placeholder: o ?? "Search...",
57005
- className: "w-full pl-8 bg-background text-foreground",
57007
+ className: "h-10 w-full bg-background pl-10 text-foreground",
57006
57008
  value: s,
57007
57009
  onChange: (R) => l(R.target.value),
57008
- onKeyDown: (R) => {
57009
- R.key === "Enter" && f();
57010
- },
57010
+ onKeyDown: S,
57011
57011
  ref: a
57012
57012
  },
57013
57013
  "topbar-search"
@@ -57015,8 +57015,8 @@ const Topbar = forwardRef(
57015
57015
  ] }) }) }),
57016
57016
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
57017
57017
  n,
57018
- e && /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs(Button$1, { variant: "ghost", size: "icon", className: "h-9 w-9", onClick: e, children: [
57019
- /* @__PURE__ */ jsx(LogOut, { className: "h-4 w-4 text-sidebar-foreground" }),
57018
+ e && /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs(Button$1, { variant: "ghost", size: "icon", className: "h-10 w-10", onClick: e, children: [
57019
+ /* @__PURE__ */ jsx(LogOut, { className: "h-4 w-4 text-foreground" }),
57020
57020
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Sign out" })
57021
57021
  ] }) })
57022
57022
  ] })
@@ -59748,7 +59748,7 @@ const Navbar = forwardRef(
59748
59748
  chatUserName: f,
59749
59749
  chatRef: S,
59750
59750
  chatRoutePath: R
59751
- }, te) => /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(SidebarProvider, { children: /* @__PURE__ */ jsxs("div", { className: "flex grow", children: [
59751
+ }, te) => /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(SidebarProvider, { children: /* @__PURE__ */ jsxs("div", { className: `flex grow ${APP_SHELL_HEADER_HEIGHT_TOKEN_CLASS}`, children: [
59752
59752
  /* @__PURE__ */ jsx(
59753
59753
  Navbar,
59754
59754
  {
@@ -59771,8 +59771,8 @@ const Navbar = forwardRef(
59771
59771
  searchPlaceholder: d
59772
59772
  }
59773
59773
  ),
59774
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col", children: [
59775
- /* @__PURE__ */ jsx("main", { className: "mt-16 flex-1 overflow-x-clip", "data-rm-main-content-region": "true", children: e }),
59774
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [
59775
+ /* @__PURE__ */ jsx("main", { className: `${APP_SHELL_HEADER_OFFSET_CLASS} @container flex-1 overflow-x-clip bg-muted`, "data-rm-main-content-region": "true", children: e }),
59776
59776
  /* @__PURE__ */ jsx(Toaster, {})
59777
59777
  ] })
59778
59778
  ] }) }) }));
@@ -62175,7 +62175,7 @@ function DataRefreshAssistantCluster({
62175
62175
  }, [t, a, e, n]);
62176
62176
  return /* @__PURE__ */ jsx(RefreshCluster, { ...o, onAssistantClick: s });
62177
62177
  }
62178
- const fullBleedClassName = "w-screen max-w-none -ml-[calc(50vw-50%)] -mr-[calc(50vw-50%)]";
62178
+ const fullBleedClassName = "w-full max-w-none w-[100cqw] ml-[calc(50%-50cqw)] mr-[calc(50%-50cqw)]", rowInlinePaddingClassName = "px-4 lg:px-6", primaryRowPaddingClassName = `${rowInlinePaddingClassName} py-4`, secondaryRowPaddingClassName = `${rowInlinePaddingClassName} py-3`;
62179
62179
  function RmPageHeaderBreadcrumbLink({
62180
62180
  item: e,
62181
62181
  isCurrent: t
@@ -62230,8 +62230,8 @@ function RmPageHeader({
62230
62230
  contentClassName: S
62231
62231
  }) {
62232
62232
  const R = !!(o || a), te = /* @__PURE__ */ jsxs("header", { className: cn("w-full border-b border-border bg-background", d), children: [
62233
- /* @__PURE__ */ jsx("div", { className: cn("px-4 py-6 sm:px-6", f), children: /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between", S), children: [
62234
- /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
62233
+ /* @__PURE__ */ jsx("div", { className: cn(primaryRowPaddingClassName, f), children: /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between", S), children: [
62234
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
62235
62235
  n?.length ? /* @__PURE__ */ jsx(RmPageHeaderBreadcrumbs, { items: n }) : null,
62236
62236
  /* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold leading-tight tracking-tight text-foreground", children: e }),
62237
62237
  t ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t }) : null
@@ -62241,7 +62241,7 @@ function RmPageHeader({
62241
62241
  a ? /* @__PURE__ */ jsx("div", { className: "flex w-full flex-wrap items-center justify-start gap-2 lg:justify-end", children: a }) : null
62242
62242
  ] }) : null
62243
62243
  ] }) }),
62244
- s ? /* @__PURE__ */ jsx("div", { className: "border-t border-border bg-muted/40", children: /* @__PURE__ */ jsx("div", { className: "px-4 py-4 sm:px-6", children: s }) }) : null
62244
+ s ? /* @__PURE__ */ jsx("div", { className: "border-t border-border bg-primary/5", children: /* @__PURE__ */ jsx("div", { className: secondaryRowPaddingClassName, children: s }) }) : null
62245
62245
  ] });
62246
62246
  return l ? /* @__PURE__ */ jsx("div", { className: fullBleedClassName, children: /* @__PURE__ */ jsx("div", { className: cn("sticky top-0 z-20", c), children: te }) }) : /* @__PURE__ */ jsx("div", { className: fullBleedClassName, children: te });
62247
62247
  }