@inf-monkeys-tech/monkeys-design 1.0.6 → 1.0.7

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.
@@ -1,7 +1,36 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
2
+ import * as React from 'react';
3
+ import { ComponentPropsWithoutRef, ReactNode, CSSProperties } from 'react';
3
4
  import { c as BaseAppearance } from '../../types-3c51850d34c1.mjs';
4
5
  import '@radix-ui/react-context-menu';
6
+ interface AppShellSidebarClassNames {
7
+ root?: string;
8
+ header?: string;
9
+ navigation?: string;
10
+ footer?: string;
11
+ }
12
+ interface AppShellSidebarProps extends Omit<ComponentPropsWithoutRef<"aside">, "children"> {
13
+ /**
14
+ * Primary navigation content. Routing, permissions and navigation state stay
15
+ * with the consuming application.
16
+ */
17
+ navigation: ReactNode;
18
+ /** Optional content placed above the primary navigation. */
19
+ header?: ReactNode;
20
+ /** Optional utility area kept separate from the primary navigation. */
21
+ footer?: ReactNode;
22
+ /** Width override. Defaults to the component token, then 16rem. */
23
+ width?: CSSProperties["width"];
24
+ classNames?: AppShellSidebarClassNames;
25
+ }
26
+ /**
27
+ * Persistent, outermost application navigation surface.
28
+ *
29
+ * This is intentionally a single shell component rather than a composition of
30
+ * generic sidebar primitives. It owns the surface hierarchy while applications
31
+ * retain routing and navigation behavior inside the semantic slots.
32
+ */
33
+ declare const AppShellSidebar: React.ForwardRefExoticComponent<AppShellSidebarProps & React.RefAttributes<HTMLElement>>;
5
34
  type UserAccountMenuRadius = 'default' | 'full' | 'lg' | 'md' | 'none' | 'sm' | 'xl';
6
35
  type UserAccountMenuSide = 'bottom' | 'left' | 'right' | 'top';
7
36
  type UserAccountMenuTriggerVariant = 'avatar' | 'profile';
@@ -87,7 +116,7 @@ interface NavButtonProps {
87
116
  className?: string;
88
117
  children: ReactNode;
89
118
  }
90
- declare function NavButton({ active, icon, postfix, onClick, className, children }: NavButtonProps): react_jsx_runtime.JSX.Element;
119
+ declare function NavButton({ active, icon, postfix, onClick, className, children, }: NavButtonProps): react_jsx_runtime.JSX.Element;
91
120
  interface HeaderTab {
92
121
  id: string;
93
122
  label: string;
@@ -171,12 +200,12 @@ interface AppLayoutProps {
171
200
  flush?: boolean;
172
201
  className?: string;
173
202
  }
174
- declare function AppLayout({ header, sidebar, children, flush, className }: AppLayoutProps): react_jsx_runtime.JSX.Element;
175
- type NavigationMode = 'headbar' | 'sidebar';
176
- type HeadbarLayoutMode = 'boxed' | 'full-bleed';
177
- type HeadbarMenuRadius = 'default' | 'full' | 'lg' | 'md' | 'none' | 'sm' | 'xl';
178
- type HeadbarNavPosition = 'center' | 'left' | 'right';
179
- type HeadbarSurface = 'card' | 'ghost' | 'glassy';
203
+ declare function AppLayout({ header, sidebar, children, flush, className, }: AppLayoutProps): react_jsx_runtime.JSX.Element;
204
+ type NavigationMode = "headbar" | "sidebar";
205
+ type HeadbarLayoutMode = "boxed" | "full-bleed";
206
+ type HeadbarMenuRadius = "default" | "full" | "lg" | "md" | "none" | "sm" | "xl";
207
+ type HeadbarNavPosition = "center" | "left" | "right";
208
+ type HeadbarSurface = "card" | "ghost" | "glassy";
180
209
  interface LayoutNavItem {
181
210
  id: string;
182
211
  label: ReactNode;
@@ -249,4 +278,4 @@ interface NavigationHeadbarProps {
249
278
  }
250
279
  declare function NavigationHeadbar({ activeItemId, activeRootId, actions, accountMenu, className, extra, layout, brand, logo, navigation, navItems, onNavigate, }: NavigationHeadbarProps): react_jsx_runtime.JSX.Element;
251
280
  declare function NavigationLayout({ activeItemId, activeRootId, allowModeSwitch, accountMenu, children, className, collapsedSidebarAccountMenu, collapsedSidebarWidth, defaultMode, defaultSidebarCollapsed, expandedSidebarWidth, expandSidebarLabel, flush, headbarActions, headbarLayout, logo, mode, navItems, onModeChange, onNavigate, onSidebarCollapsedChange, renderHeadbarExtra, collapseSidebarLabel, sidebarCollapsed: controlledSidebarCollapsed, sidebarAccountMenu, sidebarFooter, sidebarHeader, switchToHeadbarLabel, switchToSidebarLabel, }: NavigationLayoutProps): react_jsx_runtime.JSX.Element;
252
- export { AppHeader, type AppHeaderLogo, type AppHeaderProps, type AppHeaderUser, AppLayout, type AppLayoutProps, AppSidebar, type AppSidebarProps, type HeadbarLayout, type HeadbarLayoutMode, type HeadbarMenuRadius, type HeadbarNavPosition, type HeadbarSurface, type HeaderTab, type LayoutNavItem, NavButton, type NavButtonProps, NavigationHeadbar, NavigationHeadbarMenu, type NavigationHeadbarMenuProps, type NavigationHeadbarProps, NavigationLayout, type NavigationLayoutProps, type NavigationMode, type SidebarAccount, type SidebarNavItem, UserAccountMenu, type UserAccountMenuClassNames, type UserAccountMenuItem, type UserAccountMenuProps, type UserAccountMenuRadius, type UserAccountMenuSelectorConfig, type UserAccountMenuSelectorOption, type UserAccountMenuSide, type UserAccountMenuTriggerVariant, type UserAccountMenuUser, cn };
281
+ export { AppHeader, type AppHeaderLogo, type AppHeaderProps, type AppHeaderUser, AppLayout, type AppLayoutProps, AppShellSidebar, type AppShellSidebarClassNames, type AppShellSidebarProps, AppSidebar, type AppSidebarProps, type HeadbarLayout, type HeadbarLayoutMode, type HeadbarMenuRadius, type HeadbarNavPosition, type HeadbarSurface, type HeaderTab, type LayoutNavItem, NavButton, type NavButtonProps, NavigationHeadbar, NavigationHeadbarMenu, type NavigationHeadbarMenuProps, type NavigationHeadbarProps, NavigationLayout, type NavigationLayoutProps, type NavigationMode, type SidebarAccount, type SidebarNavItem, UserAccountMenu, type UserAccountMenuClassNames, type UserAccountMenuItem, type UserAccountMenuProps, type UserAccountMenuRadius, type UserAccountMenuSelectorConfig, type UserAccountMenuSelectorOption, type UserAccountMenuSide, type UserAccountMenuTriggerVariant, type UserAccountMenuUser, cn };
@@ -1,7 +1,36 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
2
+ import * as React from 'react';
3
+ import { ComponentPropsWithoutRef, ReactNode, CSSProperties } from 'react';
3
4
  import { c as BaseAppearance } from '../../types-3c51850d34c1.js';
4
5
  import '@radix-ui/react-context-menu';
6
+ interface AppShellSidebarClassNames {
7
+ root?: string;
8
+ header?: string;
9
+ navigation?: string;
10
+ footer?: string;
11
+ }
12
+ interface AppShellSidebarProps extends Omit<ComponentPropsWithoutRef<"aside">, "children"> {
13
+ /**
14
+ * Primary navigation content. Routing, permissions and navigation state stay
15
+ * with the consuming application.
16
+ */
17
+ navigation: ReactNode;
18
+ /** Optional content placed above the primary navigation. */
19
+ header?: ReactNode;
20
+ /** Optional utility area kept separate from the primary navigation. */
21
+ footer?: ReactNode;
22
+ /** Width override. Defaults to the component token, then 16rem. */
23
+ width?: CSSProperties["width"];
24
+ classNames?: AppShellSidebarClassNames;
25
+ }
26
+ /**
27
+ * Persistent, outermost application navigation surface.
28
+ *
29
+ * This is intentionally a single shell component rather than a composition of
30
+ * generic sidebar primitives. It owns the surface hierarchy while applications
31
+ * retain routing and navigation behavior inside the semantic slots.
32
+ */
33
+ declare const AppShellSidebar: React.ForwardRefExoticComponent<AppShellSidebarProps & React.RefAttributes<HTMLElement>>;
5
34
  type UserAccountMenuRadius = 'default' | 'full' | 'lg' | 'md' | 'none' | 'sm' | 'xl';
6
35
  type UserAccountMenuSide = 'bottom' | 'left' | 'right' | 'top';
7
36
  type UserAccountMenuTriggerVariant = 'avatar' | 'profile';
@@ -87,7 +116,7 @@ interface NavButtonProps {
87
116
  className?: string;
88
117
  children: ReactNode;
89
118
  }
90
- declare function NavButton({ active, icon, postfix, onClick, className, children }: NavButtonProps): react_jsx_runtime.JSX.Element;
119
+ declare function NavButton({ active, icon, postfix, onClick, className, children, }: NavButtonProps): react_jsx_runtime.JSX.Element;
91
120
  interface HeaderTab {
92
121
  id: string;
93
122
  label: string;
@@ -171,12 +200,12 @@ interface AppLayoutProps {
171
200
  flush?: boolean;
172
201
  className?: string;
173
202
  }
174
- declare function AppLayout({ header, sidebar, children, flush, className }: AppLayoutProps): react_jsx_runtime.JSX.Element;
175
- type NavigationMode = 'headbar' | 'sidebar';
176
- type HeadbarLayoutMode = 'boxed' | 'full-bleed';
177
- type HeadbarMenuRadius = 'default' | 'full' | 'lg' | 'md' | 'none' | 'sm' | 'xl';
178
- type HeadbarNavPosition = 'center' | 'left' | 'right';
179
- type HeadbarSurface = 'card' | 'ghost' | 'glassy';
203
+ declare function AppLayout({ header, sidebar, children, flush, className, }: AppLayoutProps): react_jsx_runtime.JSX.Element;
204
+ type NavigationMode = "headbar" | "sidebar";
205
+ type HeadbarLayoutMode = "boxed" | "full-bleed";
206
+ type HeadbarMenuRadius = "default" | "full" | "lg" | "md" | "none" | "sm" | "xl";
207
+ type HeadbarNavPosition = "center" | "left" | "right";
208
+ type HeadbarSurface = "card" | "ghost" | "glassy";
180
209
  interface LayoutNavItem {
181
210
  id: string;
182
211
  label: ReactNode;
@@ -249,4 +278,4 @@ interface NavigationHeadbarProps {
249
278
  }
250
279
  declare function NavigationHeadbar({ activeItemId, activeRootId, actions, accountMenu, className, extra, layout, brand, logo, navigation, navItems, onNavigate, }: NavigationHeadbarProps): react_jsx_runtime.JSX.Element;
251
280
  declare function NavigationLayout({ activeItemId, activeRootId, allowModeSwitch, accountMenu, children, className, collapsedSidebarAccountMenu, collapsedSidebarWidth, defaultMode, defaultSidebarCollapsed, expandedSidebarWidth, expandSidebarLabel, flush, headbarActions, headbarLayout, logo, mode, navItems, onModeChange, onNavigate, onSidebarCollapsedChange, renderHeadbarExtra, collapseSidebarLabel, sidebarCollapsed: controlledSidebarCollapsed, sidebarAccountMenu, sidebarFooter, sidebarHeader, switchToHeadbarLabel, switchToSidebarLabel, }: NavigationLayoutProps): react_jsx_runtime.JSX.Element;
252
- export { AppHeader, type AppHeaderLogo, type AppHeaderProps, type AppHeaderUser, AppLayout, type AppLayoutProps, AppSidebar, type AppSidebarProps, type HeadbarLayout, type HeadbarLayoutMode, type HeadbarMenuRadius, type HeadbarNavPosition, type HeadbarSurface, type HeaderTab, type LayoutNavItem, NavButton, type NavButtonProps, NavigationHeadbar, NavigationHeadbarMenu, type NavigationHeadbarMenuProps, type NavigationHeadbarProps, NavigationLayout, type NavigationLayoutProps, type NavigationMode, type SidebarAccount, type SidebarNavItem, UserAccountMenu, type UserAccountMenuClassNames, type UserAccountMenuItem, type UserAccountMenuProps, type UserAccountMenuRadius, type UserAccountMenuSelectorConfig, type UserAccountMenuSelectorOption, type UserAccountMenuSide, type UserAccountMenuTriggerVariant, type UserAccountMenuUser, cn };
281
+ export { AppHeader, type AppHeaderLogo, type AppHeaderProps, type AppHeaderUser, AppLayout, type AppLayoutProps, AppShellSidebar, type AppShellSidebarClassNames, type AppShellSidebarProps, AppSidebar, type AppSidebarProps, type HeadbarLayout, type HeadbarLayoutMode, type HeadbarMenuRadius, type HeadbarNavPosition, type HeadbarSurface, type HeaderTab, type LayoutNavItem, NavButton, type NavButtonProps, NavigationHeadbar, NavigationHeadbarMenu, type NavigationHeadbarMenuProps, type NavigationHeadbarProps, NavigationLayout, type NavigationLayoutProps, type NavigationMode, type SidebarAccount, type SidebarNavItem, UserAccountMenu, type UserAccountMenuClassNames, type UserAccountMenuItem, type UserAccountMenuProps, type UserAccountMenuRadius, type UserAccountMenuSelectorConfig, type UserAccountMenuSelectorOption, type UserAccountMenuSide, type UserAccountMenuTriggerVariant, type UserAccountMenuUser, cn };