@ciromaciel/dashboard-kit 1.7.0 → 1.7.1
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/package.json
CHANGED
|
@@ -24,6 +24,10 @@ import { NavLink } from '@mantine/core'
|
|
|
24
24
|
* @param {string} label O que a pessoa lê.
|
|
25
25
|
* @param {boolean} active Item da rota atual. Engrossa o rótulo.
|
|
26
26
|
* @param {boolean} muted Secundário: ícone e texto em cinza. Para a nav de conta.
|
|
27
|
+
* Cede ao `active`: ativo, o item é o preenchimento preto
|
|
28
|
+
* com texto claro, como qualquer outro — cinza sobre o
|
|
29
|
+
* preenchimento ficava ilegível (14/10/2026, Webhooks
|
|
30
|
+
* do Hoster).
|
|
27
31
|
* @param {boolean} disabled Sem alvo ainda (no Auth, antes de escolher a aplicação).
|
|
28
32
|
* @param {Function} onClick Ignorado quando `disabled`.
|
|
29
33
|
*/
|
|
@@ -44,13 +48,13 @@ export function NavItem({ icon: Icon, label, active, muted, disabled, onClick })
|
|
|
44
48
|
<Icon
|
|
45
49
|
size={18}
|
|
46
50
|
stroke={1.5}
|
|
47
|
-
style={muted ? { color: 'var(--mantine-color-gray-5)' } : undefined}
|
|
51
|
+
style={muted && !active ? { color: 'var(--mantine-color-gray-5)' } : undefined}
|
|
48
52
|
/>
|
|
49
53
|
}
|
|
50
54
|
styles={{
|
|
51
55
|
root: { justifyContent: 'flex-start' },
|
|
52
56
|
section: { marginInlineEnd: 12 },
|
|
53
|
-
label: { fontSize: 13, fontWeight: active ? 800 : 500, color: muted ? 'var(--mantine-color-gray-6)' : undefined },
|
|
57
|
+
label: { fontSize: 13, fontWeight: active ? 800 : 500, color: muted && !active ? 'var(--mantine-color-gray-6)' : undefined },
|
|
54
58
|
}}
|
|
55
59
|
/>
|
|
56
60
|
)
|
|
@@ -44,7 +44,8 @@ import { ColorSchemeToggle } from './ColorSchemeToggle'
|
|
|
44
44
|
* O botão de criar na linha da busca: quadrado de 36px, preto, colado à busca;
|
|
45
45
|
* em contorno cinza quando o plano chegou ao limite. É a forma única do "+" em
|
|
46
46
|
* todo painel — exportado como `CreateButton` para as colunas que ainda não
|
|
47
|
-
* são o SidebarShell.
|
|
47
|
+
* são o SidebarShell. Com busca na coluna, nunca um item "+ Novo …" abaixo
|
|
48
|
+
* dela; sem busca, criar volta a ser um item escrito (09-painel.md).
|
|
48
49
|
*/
|
|
49
50
|
export function CreateButton({ icon: Icon = IconPlus, label, isAllowed = true, onClick }) {
|
|
50
51
|
return (
|
package/src/tokens.css
CHANGED
|
@@ -226,3 +226,10 @@
|
|
|
226
226
|
:root[data-mantine-color-scheme='dark'] img:not([src$='.svg']):not([data-keep-colors]) {
|
|
227
227
|
filter: brightness(0.88);
|
|
228
228
|
}
|
|
229
|
+
|
|
230
|
+
/* Um raster que é traço escuro sobre transparente (o logotipo) pede a mesma
|
|
231
|
+
inversão do SVG: `data-invert-dark`. O seletor pesa mais que o
|
|
232
|
+
`brightness(0.88)` dos outros rasters. */
|
|
233
|
+
:root[data-mantine-color-scheme='dark'] img[data-invert-dark]:not([data-keep-colors]) {
|
|
234
|
+
filter: invert(1) hue-rotate(180deg);
|
|
235
|
+
}
|