@ciromaciel/dashboard-kit 1.1.0 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ciromaciel/dashboard-kit",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "The components every dashboard shares: table, empty state, loading state, destructive confirm, danger zone and wordmark.",
@@ -162,14 +162,28 @@ export function SidebarShell({
162
162
  planos. Escondê-lo deixaria o limite invisível, e a pessoa
163
163
  procuraria o botão em vez de descobrir que precisa de
164
164
  upgrade.
165
+
166
+ O CONTORNO É O QUE O SEPARA DA NAVEGAÇÃO. Na coluna, sem
167
+ moldura é um lugar para ir, preenchido de preto é onde você
168
+ está, e com contorno é algo que você cria. Preto sólido
169
+ diria "você está aqui"; cor gastaria a única exceção do
170
+ sistema, o vermelho de perda. A borda é a mesma linha fina
171
+ dos contadores ao lado dos itens.
165
172
  */}
166
173
  {onCreate && (
167
- <NavItem
168
- icon={createIcon}
169
- label={createAllowed ? createLabel : createBlockedLabel}
170
- muted={!createAllowed}
171
- onClick={createAllowed ? onCreate : onCreateBlocked}
172
- />
174
+ <Box
175
+ w="100%"
176
+ mb={4}
177
+ data-create
178
+ style={{ border: '1px solid var(--mantine-color-gray-3)' }}
179
+ >
180
+ <NavItem
181
+ icon={createIcon}
182
+ label={<span style={{ fontWeight: 700 }}>{createAllowed ? createLabel : createBlockedLabel}</span>}
183
+ muted={!createAllowed}
184
+ onClick={createAllowed ? onCreate : onCreateBlocked}
185
+ />
186
+ </Box>
173
187
  )}
174
188
 
175
189
  {groupLabel && <GroupLabel>{groupLabel}</GroupLabel>}