@krak-stack/registry 0.1.1 → 0.1.2

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.
@@ -10,6 +10,9 @@ type NavGroup = {
10
10
  items: NavItem[];
11
11
  };
12
12
  export type { NavItem, NavGroup };
13
+ export declare const useSidebarLayout: () => {
14
+ isMobile: boolean;
15
+ };
13
16
  type SidebarPageHeaderProps = {
14
17
  title: string;
15
18
  description?: string;
@@ -613,6 +613,10 @@ var sidebarOpenAtom = Atom.kvs({
613
613
  schema: Schema.Boolean,
614
614
  defaultValue: () => true
615
615
  });
616
+ var useSidebarLayout = () => {
617
+ const { isMobile } = useSidebar();
618
+ return { isMobile };
619
+ };
616
620
  function AppSidebar({ footer, groups, header }) {
617
621
  const { isMobile, setOpenMobile } = useSidebar();
618
622
  const pathname = useRouterState({
@@ -753,6 +757,7 @@ function SidebarLayout({
753
757
  }, undefined, true, undefined, this);
754
758
  }
755
759
  export {
760
+ useSidebarLayout,
756
761
  SidebarPageHeader,
757
762
  SidebarLayout
758
763
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/registry",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Tree-shakable KrakStack components and Effect services.",
5
5
  "license": "MIT",
6
6
  "repository": {