47fac22230
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3.0 KiB
3.0 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path, framework, has_state, emits, props, output, params
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | framework | has_state | emits | props | output | params | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| empty_state | component | ts | ui | 1.0.0 | impure | EmptyState(props: EmptyStateProps): JSX.Element | Placeholder para listas y tablas vacías con icono, título, descripción y acción opcional. Tabler Icons por defecto. |
|
false |
|
false | frontend/functions/ui/empty_state.tsx | react | false |
|
|
Componente EmptyState centrado con icono, mensaje y botón de acción para estados sin datos |
|
Ejemplo
import { EmptyState } from '@fn_library/empty_state'
// Default — sin datos
<EmptyState />
// Con acción
<EmptyState
title="No functions found"
description="Try adjusting your search or create a new function."
actionLabel="Create function"
onAction={() => navigate('/new')}
/>
// Con icono custom
import { IconDatabase } from '@tabler/icons-react'
<EmptyState
icon={<IconDatabase size={48} stroke={1.5} />}
title="No databases connected"
description="Connect a database to start querying data."
size="lg"
/>
// Dentro de una Card
import { Card } from '@mantine/core'
import { EmptyState } from '@fn_library/empty_state'
<Card withBorder p="xl">
<EmptyState
title="No results"
description="Your query returned no rows."
size="sm"
/>
</Card>
Notas
El tamaño del icono escala con size: xs=32, sm=40, md=48, lg=64, xl=80.
El orden del heading (Title order) es 5 para xs/sm y 4 para md/lg/xl.
El botón usa variant="light" de Mantine — hereda el color primario del tema.
children se renderiza entre la descripción y el botón, útil para filtros o links adicionales.