@pipelinesolucoes/menu 1.0.0-beta.0
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 +78 -0
- package/README.md +166 -0
- package/dist/app/layout.d.ts +6 -0
- package/dist/app/layout.js +19 -0
- package/dist/app/layout.js.map +1 -0
- package/dist/app/page.d.ts +1 -0
- package/dist/app/page.js +6 -0
- package/dist/app/page.js.map +1 -0
- package/dist/components/BarraFerramentas.d.ts +13 -0
- package/dist/components/BarraFerramentas.js +31 -0
- package/dist/components/BarraFerramentas.js.map +1 -0
- package/dist/components/BarraFerramentasHamburguer.d.ts +16 -0
- package/dist/components/BarraFerramentasHamburguer.js +42 -0
- package/dist/components/BarraFerramentasHamburguer.js.map +1 -0
- package/dist/components/BarraFerramentasSaaS.d.ts +10 -0
- package/dist/components/BarraFerramentasSaaS.js +18 -0
- package/dist/components/BarraFerramentasSaaS.js.map +1 -0
- package/dist/components/BarraFerramentasStyled.d.ts +14 -0
- package/dist/components/BarraFerramentasStyled.js +61 -0
- package/dist/components/BarraFerramentasStyled.js.map +1 -0
- package/dist/components/ItemMenu.d.ts +30 -0
- package/dist/components/ItemMenu.js +86 -0
- package/dist/components/ItemMenu.js.map +1 -0
- package/dist/components/MenuHamburguer.d.ts +12 -0
- package/dist/components/MenuHamburguer.js +36 -0
- package/dist/components/MenuHamburguer.js.map +1 -0
- package/dist/components/MenuHorizontal.d.ts +34 -0
- package/dist/components/MenuHorizontal.js +52 -0
- package/dist/components/MenuHorizontal.js.map +1 -0
- package/dist/components/MenuVertical.d.ts +35 -0
- package/dist/components/MenuVertical.js +53 -0
- package/dist/components/MenuVertical.js.map +1 -0
- package/dist/components/SideNav.d.ts +83 -0
- package/dist/components/SideNav.js +55 -0
- package/dist/components/SideNav.js.map +1 -0
- package/dist/components/drawer/DesktopDrawer.d.ts +64 -0
- package/dist/components/drawer/DesktopDrawer.js +198 -0
- package/dist/components/drawer/DesktopDrawer.js.map +1 -0
- package/dist/components/drawer/DrawerResponsive.d.ts +74 -0
- package/dist/components/drawer/DrawerResponsive.js +96 -0
- package/dist/components/drawer/DrawerResponsive.js.map +1 -0
- package/dist/components/drawer/IconDrawerTrigger.d.ts +85 -0
- package/dist/components/drawer/IconDrawerTrigger.js +137 -0
- package/dist/components/drawer/IconDrawerTrigger.js.map +1 -0
- package/dist/components/drawer/LogoutIcon.d.ts +4 -0
- package/dist/components/drawer/LogoutIcon.js +10 -0
- package/dist/components/drawer/LogoutIcon.js.map +1 -0
- package/dist/components/drawer/MobileDrawer.d.ts +64 -0
- package/dist/components/drawer/MobileDrawer.js +158 -0
- package/dist/components/drawer/MobileDrawer.js.map +1 -0
- package/dist/components/drawer/UserAvatarMenu.d.ts +77 -0
- package/dist/components/drawer/UserAvatarMenu.js +103 -0
- package/dist/components/drawer/UserAvatarMenu.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/pages/_app.d.ts +2 -0
- package/dist/pages/_app.js +20 -0
- package/dist/pages/_app.js.map +1 -0
- package/dist/pages/_document.d.ts +9 -0
- package/dist/pages/_document.js +33 -0
- package/dist/pages/_document.js.map +1 -0
- package/dist/theme.d.ts +35 -0
- package/dist/theme.js +142 -0
- package/dist/theme.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/Drawer.d.ts +66 -0
- package/dist/types/Drawer.js +2 -0
- package/dist/types/Drawer.js.map +1 -0
- package/dist/types/ItemMenuConfig.d.ts +6 -0
- package/dist/types/ItemMenuConfig.js +2 -0
- package/dist/types/ItemMenuConfig.js.map +1 -0
- package/dist/types/NavItem.d.ts +5 -0
- package/dist/types/NavItem.js +2 -0
- package/dist/types/NavItem.js.map +1 -0
- package/dist/types/RotaMenuConfig.d.ts +4 -0
- package/dist/types/RotaMenuConfig.js +2 -0
- package/dist/types/RotaMenuConfig.js.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Representa um item do menu usado no Drawer e no BottomNavigation.
|
|
3
|
+
*
|
|
4
|
+
* @property text - Texto exibido no item de menu.
|
|
5
|
+
* @property icon - Ícone exibido ao lado do texto.
|
|
6
|
+
* @property component - Componente React renderizado quando o item é selecionado.
|
|
7
|
+
*/
|
|
8
|
+
export interface MenuItemDrawer {
|
|
9
|
+
text: string;
|
|
10
|
+
icon: React.ReactNode;
|
|
11
|
+
component: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Representa um item do menu usado no Menu do Avatar.
|
|
15
|
+
*
|
|
16
|
+
* @property label - Texto exibido no item do menu
|
|
17
|
+
* @property onClick - Ação executada ao clicar no item
|
|
18
|
+
*/
|
|
19
|
+
export interface AvatarMenuItem {
|
|
20
|
+
label: string;
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Propriedades do componente MiniDrawer.
|
|
25
|
+
*
|
|
26
|
+
* @property endPointLogout - endPoint do Logout
|
|
27
|
+
* @property backgroundHeader - Cor de fundo do header e BottomNavigation.
|
|
28
|
+
* @property backgroundMenuAvatar - Cor de fundo do menu Avatar.
|
|
29
|
+
* @property colorItemMenu - Cor do ícone do menu e dos itens de menu.
|
|
30
|
+
* @property colorItemMenuSelected - Cor do item de menu selecionado.
|
|
31
|
+
* @property idUsuarioLogado - Id do usuário logado.
|
|
32
|
+
* @property nomeUsuarioLogado - Nome do usuário logado.
|
|
33
|
+
* @property profileImage - URL da imagem de perfil do usuário.
|
|
34
|
+
* @default profileImage "/images/default-avatar.png"
|
|
35
|
+
* @property profileImage - URL da imagem de perfil do usuário.
|
|
36
|
+
* @property emailUsuario - Email do usuário.
|
|
37
|
+
* @property toolbarContent - Conteúdos genéricos exibidos na barra de ferramentas (texto, ícones, imagens etc.)
|
|
38
|
+
* @property loading - Indica se o overlay de loading deve ser exibido sobre toda a tela.
|
|
39
|
+
* @property loadingBackgroundColor - Cor de fundo do overlay de loading.
|
|
40
|
+
* @property loadingSpinnerSize - Tamanho do spinner de loading.
|
|
41
|
+
* @property loadingMessage - Texto opcional exibido abaixo do spinner de loading.
|
|
42
|
+
* @property loadingColor - Cor do spinner e do texto da mensagem de loading.
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
export interface DrawerProps {
|
|
46
|
+
endPointLogout: string;
|
|
47
|
+
backgroundHeader: string;
|
|
48
|
+
backgroundMenuAvatar: string;
|
|
49
|
+
colorItemMenu: string;
|
|
50
|
+
colorItemMenuSelected: string;
|
|
51
|
+
idUsuarioLogado: string;
|
|
52
|
+
nomeUsuarioLogado: string;
|
|
53
|
+
profileImage?: string;
|
|
54
|
+
emailUsuario: string;
|
|
55
|
+
menuItems: MenuItemDrawer[];
|
|
56
|
+
avatarMenuItems: AvatarMenuItem[];
|
|
57
|
+
selectedIndex: number;
|
|
58
|
+
onChangeIndex: (index: number) => void;
|
|
59
|
+
onUnauthenticated?: () => void;
|
|
60
|
+
toolbarContent?: React.ReactNode;
|
|
61
|
+
loading?: boolean;
|
|
62
|
+
loadingBackgroundColor?: string;
|
|
63
|
+
loadingSpinnerSize?: number;
|
|
64
|
+
loadingMessage?: string;
|
|
65
|
+
loadingColor?: string;
|
|
66
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../src/types/Drawer.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemMenuConfig.js","sourceRoot":"","sources":["../../src/types/ItemMenuConfig.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavItem.js","sourceRoot":"","sources":["../../src/types/NavItem.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotaMenuConfig.js","sourceRoot":"","sources":["../../src/types/RotaMenuConfig.tsx"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pipelinesolucoes/menu",
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/pipeline-solucoes/menu.git"
|
|
7
|
+
},
|
|
8
|
+
"homepage": "https://github.com/pipeline-solucoes/menu#readme",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/pipeline-solucoes/menu/issues"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"module": "dist/index.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": "./dist/index.js",
|
|
24
|
+
"require": "./dist/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsc",
|
|
29
|
+
"prepare": "npm run build",
|
|
30
|
+
"start": "next start",
|
|
31
|
+
"lint": "next lint",
|
|
32
|
+
"release-beta": "npm run build && npm publish --tag beta"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@emotion/react": "^11.14.0",
|
|
36
|
+
"@emotion/styled": "^11.14.1",
|
|
37
|
+
"@mui/icons-material": "^6.4.4 || ^7.3.0",
|
|
38
|
+
"@mui/material": "^6.4.4 || ^7.3.0",
|
|
39
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
40
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@emotion/css": "^11.13.5",
|
|
44
|
+
"@emotion/react": "^11.14.0",
|
|
45
|
+
"@emotion/server": "^11.11.0",
|
|
46
|
+
"@emotion/styled": "^11.14.1",
|
|
47
|
+
"@eslint/eslintrc": "^3",
|
|
48
|
+
"@mui/icons-material": "^7.3.0",
|
|
49
|
+
"@mui/material": "^7.3.0",
|
|
50
|
+
"@types/node": "^20",
|
|
51
|
+
"@types/react": "^19.0.8",
|
|
52
|
+
"@types/react-dom": "^19",
|
|
53
|
+
"@types/react-input-mask": "^3.0.6",
|
|
54
|
+
"eslint": "^9",
|
|
55
|
+
"eslint-config-next": "15.1.6",
|
|
56
|
+
"framer-motion": "^12.9.4",
|
|
57
|
+
"next": "^16.0.7",
|
|
58
|
+
"typescript": "^5"
|
|
59
|
+
}
|
|
60
|
+
}
|