randmarcomps 1.623.0 → 1.624.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} flex-1 overflow-x-clip bg-muted`, "data-rm-main-content-region": "true", children: e }),
59776
59776
  /* @__PURE__ */ jsx(Toaster, {})
59777
59777
  ] })
59778
59778
  ] }) }) }));