@archbase/admin 3.0.0 → 3.0.3
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/LICENSE +21 -0
- package/README.md +42 -0
- package/dist/ArchbaseAdminLayout.context.d.ts +36 -0
- package/dist/ArchbaseAdminLayoutFooter.d.ts +5 -0
- package/dist/ArchbaseAdminLayoutHeader.d.ts +44 -0
- package/dist/ArchbaseAdminMainLayout.d.ts +64 -0
- package/dist/ArchbaseAdminTabContainer.d.ts +9 -0
- package/dist/ArchbaseAdvancedSidebar.d.ts +39 -0
- package/dist/ArchbaseAliveAbleRoutes.d.ts +16 -0
- package/dist/ArchbaseChangeLanguageAction.d.ts +1 -0
- package/dist/ArchbaseChangeLanguageMenuItem.d.ts +1 -0
- package/dist/ArchbaseColorSchemeAction.d.ts +6 -0
- package/dist/ArchbaseHeaderNavAction.d.ts +5 -0
- package/dist/ArchbaseMyProfileModal.d.ts +17 -0
- package/dist/ArchbaseNavigation.context.d.ts +31 -0
- package/dist/CommandPaletteButton.d.ts +13 -0
- package/dist/buildMenuItem.d.ts +1 -0
- package/dist/buildMenuItemStyles.d.ts +3 -0
- package/dist/buildNavbar.d.ts +3 -0
- package/dist/buildSetCollapsedButton.d.ts +3 -0
- package/dist/createThemedStyles.d.ts +2 -0
- package/dist/drawer/DrawerContent.d.ts +10 -0
- package/dist/drawer/DrawerTrigger.d.ts +3 -0
- package/dist/drawer/useArchbaseDrawer.d.ts +3 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useArchbaseAdminStore.d.ts +11 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +1117 -967
- package/dist/navigationData.d.ts +2 -0
- package/dist/navigationDataWithGroup.d.ts +2 -0
- package/dist/types.d.ts +65 -0
- package/package.json +27 -26
- package/dist/archbase-admin-3.0.0.tgz +0 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { URLSearchParamsInit } from 'react-router-dom';
|
|
3
|
+
export type ArchbaseNavigationGroup = {
|
|
4
|
+
label: string;
|
|
5
|
+
icon: any;
|
|
6
|
+
name: string;
|
|
7
|
+
hint: string;
|
|
8
|
+
indexOrder: number;
|
|
9
|
+
};
|
|
10
|
+
export type ArchbaseNavigationItem = {
|
|
11
|
+
label: string;
|
|
12
|
+
icon: any;
|
|
13
|
+
link?: string | undefined;
|
|
14
|
+
routeParams?: URLSearchParamsInit;
|
|
15
|
+
initiallyOpened?: boolean;
|
|
16
|
+
links?: ArchbaseNavigationItem[];
|
|
17
|
+
category: string | undefined | null;
|
|
18
|
+
color: any | undefined;
|
|
19
|
+
component?: ReactNode;
|
|
20
|
+
showInSidebar: boolean;
|
|
21
|
+
disabled?: boolean | Function;
|
|
22
|
+
redirect?: string;
|
|
23
|
+
customTitle?: string;
|
|
24
|
+
keepAlive?: boolean;
|
|
25
|
+
group?: ArchbaseNavigationGroup;
|
|
26
|
+
hideDisabledItem?: boolean;
|
|
27
|
+
};
|
|
28
|
+
export type ArchbaseCommandColor = {
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
color: string;
|
|
31
|
+
};
|
|
32
|
+
export type ArchbaseCommandMenu = {
|
|
33
|
+
id: any;
|
|
34
|
+
command: () => void;
|
|
35
|
+
category: string;
|
|
36
|
+
color: ArchbaseCommandColor;
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
export interface ArchbaseOwner {
|
|
40
|
+
uuid: string;
|
|
41
|
+
name: string;
|
|
42
|
+
logo: string;
|
|
43
|
+
code: string;
|
|
44
|
+
}
|
|
45
|
+
export interface ArchbaseCompany {
|
|
46
|
+
uuid: string;
|
|
47
|
+
name: string;
|
|
48
|
+
logo: string;
|
|
49
|
+
code: string;
|
|
50
|
+
}
|
|
51
|
+
export type ArchbaseTabItem = {
|
|
52
|
+
id: string;
|
|
53
|
+
title: string;
|
|
54
|
+
path: string;
|
|
55
|
+
content: React.ReactNode;
|
|
56
|
+
iconClass: any;
|
|
57
|
+
closeButton: boolean;
|
|
58
|
+
active: boolean;
|
|
59
|
+
redirect?: string;
|
|
60
|
+
customTitle?: string;
|
|
61
|
+
};
|
|
62
|
+
export type LocationDataItem = {
|
|
63
|
+
navItemUUID: string;
|
|
64
|
+
params: any;
|
|
65
|
+
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archbase/admin",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Admin interface components for Archbase React",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
@@ -26,49 +26,50 @@
|
|
|
26
26
|
"author": "Edson Martins",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@archbase/components": "3.0.3",
|
|
30
|
+
"@archbase/core": "3.0.3",
|
|
31
|
+
"@archbase/data": "3.0.3",
|
|
32
|
+
"@archbase/layout": "3.0.3",
|
|
33
|
+
"@archbase/security": "3.0.3",
|
|
34
|
+
"@archbase/template": "3.0.3",
|
|
35
|
+
"@mantine/core": "8.3.12",
|
|
36
|
+
"@mantine/form": "8.3.12",
|
|
37
|
+
"@mantine/hooks": "8.3.12",
|
|
38
|
+
"@rehooks/component-size": "^1.0.3",
|
|
29
39
|
"@storybook/preview-api": "^8.6.14",
|
|
40
|
+
"@tabler/icons-react": "^3.27.0",
|
|
30
41
|
"i18next": "^25.3.1",
|
|
31
42
|
"lodash": "4.17.21",
|
|
32
|
-
"react": "^19.0.0",
|
|
33
|
-
"react-dom": "^19.0.0",
|
|
34
|
-
"react-i18next": "^15.1.2",
|
|
35
|
-
"react-router-dom": "^6.28.0",
|
|
36
|
-
"react-router": "^6.28.0",
|
|
37
43
|
"mantine-flagpack": "^4.0.0",
|
|
44
|
+
"react": "^19.2.3",
|
|
45
|
+
"react-dom": "^19.2.3",
|
|
46
|
+
"react-i18next": "^15.1.2",
|
|
38
47
|
"react-pro-sidebar": "^1.1.0",
|
|
39
|
-
"
|
|
48
|
+
"react-router": "^6.28.0",
|
|
49
|
+
"react-router-dom": "^6.28.0",
|
|
40
50
|
"usehooks-ts": "^2.16.0",
|
|
41
|
-
"
|
|
42
|
-
"@mantine/core": "8.3.12",
|
|
43
|
-
"@mantine/hooks": "8.3.12",
|
|
44
|
-
"@mantine/form": "8.3.12",
|
|
45
|
-
"@tabler/icons-react": "^3.27.0",
|
|
46
|
-
"@archbase/components": "3.0.0",
|
|
47
|
-
"@archbase/core": "3.0.0",
|
|
48
|
-
"@archbase/data": "3.0.0",
|
|
49
|
-
"@archbase/layout": "3.0.0",
|
|
50
|
-
"@archbase/security": "3.0.0",
|
|
51
|
-
"@archbase/template": "3.0.0"
|
|
51
|
+
"zustand": "^5.0.6"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/lodash": "^4.14.200",
|
|
55
|
-
"@types/react": "^19.0.
|
|
56
|
-
"@types/react-dom": "^19.0.
|
|
55
|
+
"@types/react": "^19.0.6",
|
|
56
|
+
"@types/react-dom": "^19.0.2",
|
|
57
57
|
"@types/react-router-dom": "^5.3.3",
|
|
58
58
|
"typescript": "^5.7.0",
|
|
59
59
|
"vite": "^6.3.5",
|
|
60
|
+
"vite-plugin-dts": "^4.5.4",
|
|
60
61
|
"vitest": "^2.0.0"
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|
|
63
|
-
"react": ">=18.0.0",
|
|
64
|
-
"react-dom": ">=18.0.0",
|
|
65
64
|
"@mantine/core": "8.3.12",
|
|
66
65
|
"@mantine/dates": "8.3.12",
|
|
67
66
|
"@mantine/hooks": "8.3.12",
|
|
68
67
|
"@mantine/modals": "8.3.12",
|
|
69
68
|
"@mantine/notifications": "8.3.12",
|
|
70
69
|
"@mantine/spotlight": "8.3.12",
|
|
71
|
-
"@tabler/icons-react": "^3.27.0"
|
|
70
|
+
"@tabler/icons-react": "^3.27.0",
|
|
71
|
+
"react": ">=18.0.0",
|
|
72
|
+
"react-dom": ">=18.0.0"
|
|
72
73
|
},
|
|
73
74
|
"scripts": {
|
|
74
75
|
"build": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build",
|
|
Binary file
|