@archbase/admin 3.0.8 → 3.0.10
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/ArchbaseAdminMainLayout.d.ts +23 -1
- package/dist/ArchbaseAdvancedSidebar.d.ts +21 -0
- package/dist/archbase-admin-3.0.10.tgz +0 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2779 -1213
- package/dist/sidebar/ArchbaseMantineSidebar.d.ts +43 -0
- package/dist/sidebar/components/SidebarBadge.d.ts +16 -0
- package/dist/sidebar/components/SidebarGroup.d.ts +15 -0
- package/dist/sidebar/components/SidebarGroupIcon.d.ts +6 -0
- package/dist/sidebar/components/SidebarItem.d.ts +6 -0
- package/dist/sidebar/components/SidebarSearch.d.ts +6 -0
- package/dist/sidebar/components/SidebarSkeleton.d.ts +45 -0
- package/dist/sidebar/components/SidebarUserProfile.d.ts +6 -0
- package/dist/sidebar/components/index.d.ts +8 -0
- package/dist/sidebar/context/SidebarContext.d.ts +16 -0
- package/dist/sidebar/context/index.d.ts +1 -0
- package/dist/sidebar/hooks/index.d.ts +6 -0
- package/dist/sidebar/hooks/useSidebarKeyboard.d.ts +20 -0
- package/dist/sidebar/hooks/useSidebarNavigation.d.ts +24 -0
- package/dist/sidebar/hooks/useSidebarSearch.d.ts +26 -0
- package/dist/sidebar/index.d.ts +13 -0
- package/dist/sidebar/types.d.ts +303 -0
- package/dist/sidebar/variants/MinimalSidebar.d.ts +13 -0
- package/dist/sidebar/variants/RailSidebar.d.ts +13 -0
- package/dist/sidebar/variants/StandardSidebar.d.ts +12 -0
- package/dist/sidebar/variants/index.d.ts +3 -0
- package/package.json +7 -7
- package/dist/archbase-admin-3.0.8.tgz +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MantineStyleProp } from '@mantine/core';
|
|
2
2
|
import { default as React, ReactNode } from 'react';
|
|
3
3
|
import { ArchbaseUser } from '@archbase/security';
|
|
4
|
+
import { SidebarVariant } from './sidebar';
|
|
4
5
|
import { ArchbaseCompany, ArchbaseNavigationItem, ArchbaseOwner } from './types';
|
|
5
6
|
export interface ArchbaseAdminMainLayoutSecurityOptions {
|
|
6
7
|
navigationResourceDescription: string;
|
|
@@ -11,6 +12,14 @@ export interface ArchbaseCustomSidebarProps {
|
|
|
11
12
|
height?: string | number;
|
|
12
13
|
isHidden?: boolean;
|
|
13
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Variante do sidebar a ser usado no layout
|
|
17
|
+
* - 'legacy': ArchbaseAdvancedSidebar (react-pro-sidebar) - deprecated
|
|
18
|
+
* - 'standard': Menu com accordion e nested menus (Notion/Slack style)
|
|
19
|
+
* - 'minimal': Icon-only com tooltips (VSCode style)
|
|
20
|
+
* - 'rail': Double panel com grupos (Discord style) - similar ao legacy
|
|
21
|
+
*/
|
|
22
|
+
export type AdminSidebarVariant = 'legacy' | SidebarVariant;
|
|
14
23
|
export interface ArchbaseAdminMainLayoutProps {
|
|
15
24
|
navigationData?: ArchbaseNavigationItem[];
|
|
16
25
|
user?: ArchbaseUser;
|
|
@@ -60,7 +69,20 @@ export interface ArchbaseAdminMainLayoutProps {
|
|
|
60
69
|
sideBarIconDarkColor?: string;
|
|
61
70
|
sideBarIconLightColor?: string;
|
|
62
71
|
sideBarCollapsedSubmenuWidth?: string | number;
|
|
72
|
+
/** Cor de destaque/hover dos items do sidebar (nome da cor do tema, ex: 'blue', 'appPrimary') */
|
|
73
|
+
sidebarActiveColor?: string;
|
|
63
74
|
/** Número máximo de abas keepAlive mantidas em cache (LRU). Padrão: 10 */
|
|
64
75
|
maxKeepAliveTabs?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Variante do sidebar a ser usado.
|
|
78
|
+
* - 'legacy': ArchbaseAdvancedSidebar (react-pro-sidebar) - deprecated
|
|
79
|
+
* - 'standard': Menu com accordion e nested menus (Notion/Slack style)
|
|
80
|
+
* - 'minimal': Icon-only com tooltips (VSCode style)
|
|
81
|
+
* - 'rail': Double panel com grupos (Discord style) - similar ao legacy
|
|
82
|
+
* @default 'legacy'
|
|
83
|
+
*/
|
|
84
|
+
sidebarVariant?: AdminSidebarVariant;
|
|
85
|
+
/** Mostrar campo de busca no sidebar (apenas para variantes Mantine) */
|
|
86
|
+
sidebarShowSearch?: boolean;
|
|
65
87
|
}
|
|
66
|
-
export declare function ArchbaseAdminMainLayout({ navigationRootLink, navigationData, user, children, header, footer, owner, company, sideBarWidth, sideBarCollapsedWidth, sideBarHiddenBreakPoint, sideBarFooterHeight, sideBarFooterContent, onCollapsedSideBar, onHiddenSidebar, sidebarDefaultGroupIcon, sidebarSelectedGroupName, sideBarHeaderHeight, sideBarHeaderContent, selectedGroupColor, groupColor, backgroundGroupColor, groupLabelDarkColor, groupLabelLightColor, headerColor, footerHeight, iconsWithBackground, menuItemHeight, showSideBar, showHeader, headerStyle, highlightActiveMenuItem, enableSecurity, securityOptions, customRenderSidebar, onNavigationDataChange, showCollapsedButton, initialSidebarCollapsed, sideBarBackgroundDarkColor, sideBarBackgroundLightColor, sideBarTextDarkColor, sideBarTextLightColor, sideBarIconDarkColor, sideBarIconLightColor, sideBarCollapsedSubmenuWidth, maxKeepAliveTabs, }: ArchbaseAdminMainLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
export declare function ArchbaseAdminMainLayout({ navigationRootLink, navigationData, user, children, header, footer, owner, company, sideBarWidth, sideBarCollapsedWidth, sideBarHiddenBreakPoint, sideBarFooterHeight, sideBarFooterContent, onCollapsedSideBar, onHiddenSidebar, sidebarDefaultGroupIcon, sidebarSelectedGroupName, sideBarHeaderHeight, sideBarHeaderContent, selectedGroupColor, groupColor, backgroundGroupColor, groupLabelDarkColor, groupLabelLightColor, headerColor, footerHeight, iconsWithBackground, menuItemHeight, showSideBar, showHeader, headerStyle, highlightActiveMenuItem, enableSecurity, securityOptions, customRenderSidebar, onNavigationDataChange, showCollapsedButton, initialSidebarCollapsed, sideBarBackgroundDarkColor, sideBarBackgroundLightColor, sideBarTextDarkColor, sideBarTextLightColor, sideBarIconDarkColor, sideBarIconLightColor, sideBarCollapsedSubmenuWidth, sidebarActiveColor, maxKeepAliveTabs, sidebarVariant, sidebarShowSearch, }: ArchbaseAdminMainLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import { MantineTheme } from '@mantine/core';
|
|
2
2
|
import { default as React, ReactNode } from 'react';
|
|
3
3
|
import { ArchbaseNavigationItem } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use ArchbaseMantineSidebar with variant="rail" instead.
|
|
6
|
+
* This component uses react-pro-sidebar which is no longer maintained.
|
|
7
|
+
*
|
|
8
|
+
* Migration example:
|
|
9
|
+
* ```tsx
|
|
10
|
+
* // Before
|
|
11
|
+
* <ArchbaseAdvancedSidebar navigationData={data} theme={theme} />
|
|
12
|
+
*
|
|
13
|
+
* // After
|
|
14
|
+
* <ArchbaseMantineSidebar
|
|
15
|
+
* navigationData={data}
|
|
16
|
+
* variant="rail"
|
|
17
|
+
* theme={theme}
|
|
18
|
+
* />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
4
21
|
export interface ArchbaseAdvancedSidebarProps {
|
|
5
22
|
navigationData: ArchbaseNavigationItem[];
|
|
6
23
|
sidebarWidth?: string | number;
|
|
@@ -48,4 +65,8 @@ export interface ArchbaseAdvancedSidebarProps {
|
|
|
48
65
|
/** Número de grupos no skeleton durante loading */
|
|
49
66
|
skeletonGroupCount?: number;
|
|
50
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated Use ArchbaseMantineSidebar with variant="rail" instead.
|
|
70
|
+
* This component uses react-pro-sidebar which is no longer maintained.
|
|
71
|
+
*/
|
|
51
72
|
export declare function ArchbaseAdvancedSidebar({ navigationData, sidebarGroupWidth, sidebarWidth, sidebarHeight, sidebarCollapsedWidth, selectedGroupColor, groupColor, backgroundGroupColor, isHidden, sideBarFooterHeight, sideBarFooterContent, groupLabelDarkColor, groupLabelLightColor, collapsed, onMenuItemClick, onClickActionIcon, withBorder, showGroupLabels, theme, sidebarRef, defaultGroupIcon, selectedGroupName, sideBarHeaderContent, iconsWithBackground, menuItemHeight, highlightActiveMenuItem, backgroundDarkColor, backgroundLightColor, textDarkColor, textLightColor, iconDarkColor, iconLightColor, collapsedSubmenuWidth, isLoading, loadingError, loadingComponent, errorComponent, skeletonItemCount, skeletonGroupCount, }: ArchbaseAdvancedSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type { ArchbaseAdminLayoutFooterProps } from './ArchbaseAdminLayoutFooter
|
|
|
4
4
|
export { ArchbaseAdminLayoutFooter } from './ArchbaseAdminLayoutFooter';
|
|
5
5
|
export type { ArchbaseAdminLayoutHeaderProps } from './ArchbaseAdminLayoutHeader';
|
|
6
6
|
export { ArchbaseAdminLayoutHeader, defaultAvatar } from './ArchbaseAdminLayoutHeader';
|
|
7
|
-
export type { ArchbaseAdminMainLayoutProps } from './ArchbaseAdminMainLayout';
|
|
7
|
+
export type { ArchbaseAdminMainLayoutProps, AdminSidebarVariant, ArchbaseCustomSidebarProps } from './ArchbaseAdminMainLayout';
|
|
8
8
|
export { ArchbaseAdminMainLayout } from './ArchbaseAdminMainLayout';
|
|
9
9
|
export type { ArchbaseAdminTabContainerProps } from './ArchbaseAdminTabContainer';
|
|
10
10
|
export { ArchbaseAdminTabContainer } from './ArchbaseAdminTabContainer';
|
|
@@ -21,9 +21,12 @@ export type { ArchbaseKeepAliveRouteProps, ArchbaseAliveAbleRoutesProps } from '
|
|
|
21
21
|
export type { CommandPaletteButtonProps, ArchbaseSpotlightActionData } from './CommandPaletteButton';
|
|
22
22
|
export { CommandPaletteButton } from './CommandPaletteButton';
|
|
23
23
|
export type { ArchbaseAdvancedSidebarProps } from './ArchbaseAdvancedSidebar';
|
|
24
|
+
/** @deprecated Use ArchbaseMantineSidebar instead */
|
|
24
25
|
export { ArchbaseAdvancedSidebar } from './ArchbaseAdvancedSidebar';
|
|
25
26
|
export type { SidebarMenuSkeletonProps, SidebarGroupsSkeletonProps, SidebarErrorMessageProps } from './SidebarMenuSkeleton';
|
|
26
27
|
export { SidebarMenuSkeleton, SidebarGroupsSkeleton, SidebarErrorMessage } from './SidebarMenuSkeleton';
|
|
28
|
+
export { ArchbaseMantineSidebar, StandardSidebar, MinimalSidebar, RailSidebar, SidebarProvider, useSidebar, useSidebarOptional, SidebarItem, SidebarGroup, SidebarSection, SidebarGroupIcon, SidebarSearch, SidebarUserProfile, SidebarBadge, SidebarIndicator, SidebarMenuSkeleton as MantineSidebarMenuSkeleton, SidebarGroupsSkeleton as MantineSidebarGroupsSkeleton, SidebarHeaderSkeleton, SidebarUserProfileSkeleton, SidebarErrorMessage as MantineSidebarErrorMessage, useSidebarNavigation, useSidebarSearch, useSidebarKeyboard, } from './sidebar';
|
|
29
|
+
export type { SidebarVariant, SidebarCollapsibleMode, ExtendedNavigationItem, ArchbaseMantineSidebarProps, SidebarContextValue, SidebarItemProps, SidebarGroupProps, SidebarSearchProps, SidebarUserProfileProps, SidebarGroupIconProps, SidebarBadgeProps, SidebarProviderProps, SidebarSkeletonProps, UseSidebarNavigationOptions, UseSidebarNavigationReturn, UseSidebarSearchOptions, UseSidebarSearchReturn, UseSidebarKeyboardOptions, UseSidebarKeyboardReturn, } from './sidebar';
|
|
27
30
|
export { ArchbaseDrawerContent } from './drawer/DrawerContent';
|
|
28
31
|
export type { ArchbaseDrawerContentProps } from './drawer/DrawerContent';
|
|
29
32
|
export { ArchbaseDrawerTrigger } from './drawer/DrawerTrigger';
|