arkenstone-ui 0.0.28 → 0.0.29

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.js CHANGED
@@ -17632,15 +17632,16 @@ function fR({ user: e, logout: t }) {
17632
17632
  }
17633
17633
  function pR({
17634
17634
  navbarProps: e = N1,
17635
- ...t
17635
+ navbarUserComponent: t = null,
17636
+ ...n
17636
17637
  }) {
17637
- const n = e.app.name && e.app.textSlot1;
17638
- return /* @__PURE__ */ O(LE, { variant: "inset", ...t, children: [
17638
+ const r = e.app.name && e.app.textSlot1;
17639
+ return /* @__PURE__ */ O(LE, { variant: "inset", ...n, children: [
17639
17640
  /* @__PURE__ */ f(zE, { children: /* @__PURE__ */ f(Or, { children: /* @__PURE__ */ f(Dr, { children: /* @__PURE__ */ f(Tr, { size: "lg", asChild: !0, children: e.app.sidebarComponent ?? /* @__PURE__ */ O("a", { href: "#", children: [
17640
17641
  /* @__PURE__ */ O(
17641
17642
  "div",
17642
17643
  {
17643
- className: `${n ? "" : "w-full"} text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg bg-transparent`,
17644
+ className: `${r ? "" : "w-full"} text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg bg-transparent`,
17644
17645
  children: [
17645
17646
  e.app.logo && /* @__PURE__ */ f(
17646
17647
  "img",
@@ -17654,7 +17655,7 @@ function pR({
17654
17655
  ]
17655
17656
  }
17656
17657
  ),
17657
- n && /* @__PURE__ */ O("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [
17658
+ r && /* @__PURE__ */ O("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [
17658
17659
  /* @__PURE__ */ f("span", { className: "truncate font-medium", children: e.app.name }),
17659
17660
  /* @__PURE__ */ f("span", { className: "truncate text-xs", children: e.app.textSlot1 })
17660
17661
  ] })
@@ -17677,7 +17678,7 @@ function pR({
17677
17678
  }
17678
17679
  )
17679
17680
  ] }),
17680
- /* @__PURE__ */ f(VE, { children: /* @__PURE__ */ f(fR, { user: e.user, logout: e.logout }) })
17681
+ /* @__PURE__ */ f(VE, { children: t ?? /* @__PURE__ */ f(fR, { user: e.user, logout: e.logout }) })
17681
17682
  ] });
17682
17683
  }
17683
17684
  function wp(e, t) {
@@ -19657,10 +19658,11 @@ class li {
19657
19658
  function zk({
19658
19659
  children: e,
19659
19660
  breadcrumbs: t,
19660
- navbarProps: n
19661
+ navbarProps: n,
19662
+ navbarUserComponent: r = null
19661
19663
  }) {
19662
19664
  return /* @__PURE__ */ f(lw, { defaultTheme: "system", storageKey: "vite-ui-theme", children: /* @__PURE__ */ O($E, { children: [
19663
- /* @__PURE__ */ f(pR, { navbarProps: n }),
19665
+ /* @__PURE__ */ f(pR, { navbarProps: n, navbarUserComponent: r }),
19664
19666
  /* @__PURE__ */ O(WE, { children: [
19665
19667
  /* @__PURE__ */ f("header", { className: "flex h-16 shrink-0 items-center gap-2", children: /* @__PURE__ */ O("div", { className: "flex items-center gap-2 px-4", children: [
19666
19668
  /* @__PURE__ */ f(BE, { className: "-ml-1" }),
@@ -51,6 +51,7 @@ export interface NavbarProps {
51
51
  icon: React.ReactNode | any;
52
52
  };
53
53
  }
54
- export declare function AppSidebar({ navbarProps, ...props }: {
54
+ export declare function AppSidebar({ navbarProps, navbarUserComponent, ...props }: {
55
55
  navbarProps?: NavbarProps;
56
+ navbarUserComponent?: React.ReactNode;
56
57
  } & React.ComponentProps<typeof Sidebar>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,8 @@
1
1
  import { NavbarProps } from '../../components/sidebar/app-sidebar';
2
2
  import { BreadcrumbItemType } from '../../components/custom/breadcrumb';
3
- export declare function DefaultPanelLayout({ children, breadcrumbs, navbarProps }: {
3
+ export declare function DefaultPanelLayout({ children, breadcrumbs, navbarProps, navbarUserComponent }: {
4
4
  children: React.ReactNode;
5
5
  breadcrumbs?: BreadcrumbItemType[];
6
6
  navbarProps?: NavbarProps;
7
+ navbarUserComponent?: React.ReactNode;
7
8
  }): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkenstone-ui",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",