@archbase/admin 4.0.43 → 4.0.44
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.
|
@@ -3,4 +3,4 @@ import { SidebarItemProps } from '../types';
|
|
|
3
3
|
* Componente de item de menu do sidebar
|
|
4
4
|
* Usa NavLink do Mantine com suporte a aninhamento
|
|
5
5
|
*/
|
|
6
|
-
export declare function SidebarItem({ item, depth, collapsed, active, onClick, textColor, iconColor, hoverColor, itemHeight, itemBorderRadius, itemHorizontalGap, activeBackground, }: SidebarItemProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function SidebarItem({ item, depth, collapsed, active, onClick, textColor, iconColor, hoverColor, itemHeight, itemBorderRadius, itemHorizontalGap, activeBackground, isActive, }: SidebarItemProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/sidebar/types.d.ts
CHANGED
|
@@ -232,6 +232,12 @@ export interface SidebarItemProps {
|
|
|
232
232
|
* definido, tem precedência sobre `hoverColor` no estado ativo. @default undefined
|
|
233
233
|
*/
|
|
234
234
|
activeBackground?: string;
|
|
235
|
+
/**
|
|
236
|
+
* Resolve o estado ativo de um subitem. Sem isto os filhos herdam o `active`
|
|
237
|
+
* do pai, e todos aparecem destacados quando o pai está na rota atual. As
|
|
238
|
+
* variantes passam o `isItemActive` do `useSidebarNavigation`.
|
|
239
|
+
*/
|
|
240
|
+
isActive?: (item: ArchbaseNavigationItem) => boolean;
|
|
235
241
|
}
|
|
236
242
|
/**
|
|
237
243
|
* Props do componente SidebarGroup
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archbase/admin",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.44",
|
|
4
4
|
"description": "Admin interface components for Archbase React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"react-router-dom": "^6.28.0",
|
|
44
44
|
"usehooks-ts": "^2.16.0",
|
|
45
45
|
"zustand": "^5.0.6",
|
|
46
|
-
"@archbase/components": "4.0.
|
|
47
|
-
"@archbase/core": "4.0.
|
|
48
|
-
"@archbase/data": "4.0.
|
|
49
|
-
"@archbase/layout": "4.0.
|
|
50
|
-
"@archbase/security": "4.0.
|
|
51
|
-
"@archbase/template": "4.0.
|
|
46
|
+
"@archbase/components": "4.0.44",
|
|
47
|
+
"@archbase/core": "4.0.44",
|
|
48
|
+
"@archbase/data": "4.0.44",
|
|
49
|
+
"@archbase/layout": "4.0.44",
|
|
50
|
+
"@archbase/security": "4.0.44",
|
|
51
|
+
"@archbase/template": "4.0.44"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"keepalive-for-react": "^5.0.7",
|
|
Binary file
|