-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/table #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feature/table #102
Conversation
- Row selection (single/multiple) with visual feedback - Column sorting with accessibility support - Row virtualization for large datasets - Built-in pagination and filtering - Full accessibility and keyboard navigation - Custom cell renderers and theming - 22+ Storybook stories with documentation - Design system integration with MIT license compatibility - Production-ready with comprehensive JSDoc documentation
- Componente Table completo con funcionalidades actuales - Selección compleja (selectedKeys, selectionMode, selectionBehavior) - Virtualización y sorting/pagination internos (a refactorizar) - Contenido decorativo (topContent/bottomContent) a eliminar - Base para implementar API-driven approach Estado previo a refactorización para mantener historial completo. Siguiendo planificación detallada de reducción de complejidad.
- Implemented Table component with comprehensive functionality - Added 14 stories showcasing all features and use cases - Included row selection, sorting, pagination, and custom cell rendering - API-driven approach with callbacks for backend integration - Spanish localized examples with realistic data
✅ Deploy Preview for egdev6-design-system ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| @@ -0,0 +1,106 @@ | |||
| import { cva } from 'class-variance-authority'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
este archivo debería ir dentro de types.ts
| import type { CompleteTableProps, TableColumn } from './types'; | ||
| import { useKeyboardNavigation, useTable, useTableEvents } from './useTable'; | ||
|
|
||
| function Table<T = any>(props: CompleteTableProps<T>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
las props se reciben en useTable, así como todas las funciones y variables que uses en el componente visual. Mantén en este archivo únicamente la renderización (return) y esas variables usadas como hook. Puede ver ejemplo de otro componentes. sI tienes funciones que devuelven renderización visual si que puedes mantenerlas aquí. El objetivo es separar la parte lógica de la visual
| export type TableLayout = 'auto' | 'fixed'; | ||
|
|
||
| export type ColumnAlign = 'start' | 'center' | 'end'; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repasa si aquí te falta la documentación por comentarios mdx para storybook (ejemplo en otro componentes tb)
…recciones en la documentación
…ación de los ejemplos implementados
Componente Table completo con todas las funcionalidades
Pendiente de cualquier corrección o mejora