@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.
- package/dist/components/layout/index.d.mts +38 -9
- package/dist/components/layout/index.d.ts +38 -9
- package/dist/components/layout/index.js +526 -185
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +526 -186
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/primitives/index.d.mts +2 -2
- package/dist/components/primitives/index.d.ts +2 -2
- package/dist/components/primitives/index.js +92 -15
- package/dist/components/primitives/index.js.map +1 -1
- package/dist/components/primitives/index.mjs +92 -15
- package/dist/components/primitives/index.mjs.map +1 -1
- package/dist/components/workbench/index.d.mts +11 -1
- package/dist/components/workbench/index.d.ts +11 -1
- package/dist/components/workbench/index.js +28 -3
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +28 -3
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +554 -188
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +554 -189
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,36 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
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 =
|
|
176
|
-
type HeadbarLayoutMode =
|
|
177
|
-
type HeadbarMenuRadius =
|
|
178
|
-
type HeadbarNavPosition =
|
|
179
|
-
type HeadbarSurface =
|
|
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
|
|
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 =
|
|
176
|
-
type HeadbarLayoutMode =
|
|
177
|
-
type HeadbarMenuRadius =
|
|
178
|
-
type HeadbarNavPosition =
|
|
179
|
-
type HeadbarSurface =
|
|
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 };
|