@archbase/admin 4.0.42 → 4.0.43

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, }: SidebarItemProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function SidebarItem({ item, depth, collapsed, active, onClick, textColor, iconColor, hoverColor, itemHeight, itemBorderRadius, itemHorizontalGap, activeBackground, }: SidebarItemProps): import("react/jsx-runtime").JSX.Element;
@@ -102,6 +102,13 @@ export interface ArchbaseMantineSidebarProps {
102
102
  backgroundDarkColor?: string;
103
103
  /** Cor de fundo (light mode) */
104
104
  backgroundLightColor?: string;
105
+ /**
106
+ * Imagem/gradiente de fundo do sidebar. Quando definido, é pintado no
107
+ * contêiner raiz e os contêineres internos ficam transparentes, para o
108
+ * gradiente aparecer inteiro. Tem precedência sobre `background*Color`.
109
+ * @default undefined
110
+ */
111
+ backgroundImage?: string;
105
112
  /** Cor do texto (dark mode) */
106
113
  textDarkColor?: string;
107
114
  /** Cor do texto (light mode) */
@@ -128,6 +135,22 @@ export interface ArchbaseMantineSidebarProps {
128
135
  withBorder?: boolean;
129
136
  /** Mostrar sombra */
130
137
  withShadow?: boolean;
138
+ /**
139
+ * Raio das bordas dos itens de menu (px). Permite pílulas arredondadas em
140
+ * vez do quadrado padrão. @default 0
141
+ */
142
+ itemBorderRadius?: string | number;
143
+ /**
144
+ * Recuo horizontal dos itens de menu (px). Descola as pílulas das bordas
145
+ * do sidebar. @default 0
146
+ */
147
+ itemHorizontalGap?: string | number;
148
+ /**
149
+ * Background do item ativo. Aceita cor sólida OU gradiente CSS. Tem
150
+ * precedência sobre `activeColor`/`hoverColor` no estado ativo.
151
+ * @default undefined
152
+ */
153
+ itemActiveBackground?: string;
131
154
  /** Aria label para o sidebar */
132
155
  ariaLabel?: string;
133
156
  /** Ref para o elemento raiz */
@@ -194,6 +217,21 @@ export interface SidebarItemProps {
194
217
  hoverColor?: string;
195
218
  /** Altura do item */
196
219
  itemHeight?: string | number;
220
+ /**
221
+ * Raio das bordas do item (px). Permite pílulas arredondadas em vez do
222
+ * quadrado padrão. @default 0
223
+ */
224
+ itemBorderRadius?: string | number;
225
+ /**
226
+ * Recuo horizontal do item dentro do sidebar (margin lateral, px). Usado
227
+ * para descolar as pílulas das bordas. @default 0
228
+ */
229
+ itemHorizontalGap?: string | number;
230
+ /**
231
+ * Background do item ativo. Aceita cor sólida OU gradiente CSS. Quando
232
+ * definido, tem precedência sobre `hoverColor` no estado ativo. @default undefined
233
+ */
234
+ activeBackground?: string;
197
235
  }
198
236
  /**
199
237
  * Props do componente SidebarGroup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archbase/admin",
3
- "version": "4.0.42",
3
+ "version": "4.0.43",
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.42",
47
- "@archbase/core": "4.0.42",
48
- "@archbase/data": "4.0.42",
49
- "@archbase/layout": "4.0.42",
50
- "@archbase/security": "4.0.42",
51
- "@archbase/template": "4.0.42"
46
+ "@archbase/components": "4.0.43",
47
+ "@archbase/core": "4.0.43",
48
+ "@archbase/data": "4.0.43",
49
+ "@archbase/layout": "4.0.43",
50
+ "@archbase/security": "4.0.43",
51
+ "@archbase/template": "4.0.43"
52
52
  },
53
53
  "devDependencies": {
54
54
  "keepalive-for-react": "^5.0.7",
Binary file