// Registry configuration for table component and demo export const tableRegistry = { // Main table component table: { name: 'table', description: 'A flexible data table component with sorting, filtering, pagination, and search functionality.', type: 'registry:ui', dependencies: ['lucide-react-native'], registryDependencies: ['button', 'text', 'view'], hooks: ['useColor'], theme: ['globals'], files: [ { type: 'registry:ui', path: 'templates/components/ui/table.tsx', target: 'components/ui/table.tsx', }, ], preview: { light: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-10-10_1.MP4', dark: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-10-10_1.MP4', }, }, // Default demo 'table-demo': { name: 'table-demo', description: 'A basic data table with sample data', type: 'registry:example', registryDependencies: ['table'], hooks: [], theme: [], files: [ { type: 'registry:example', path: 'templates/demo/table/table-demo.tsx', target: 'components/demo/table/table-demo.tsx', }, ], preview: { light: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-10-10_1.MP4', dark: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-10-10_1.MP4', }, }, 'table-sortable': { name: 'table-sortable', description: 'Table with sortable columns', type: 'registry:example', registryDependencies: ['table'], hooks: [], theme: [], files: [ { type: 'registry:example', path: 'templates/demo/table/table-sortable.tsx', target: 'components/demo/table/table-sortable.tsx', }, ], preview: { light: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-10-49_1.MP4', dark: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-10-49_1.MP4', }, }, 'table-custom-cells': { name: 'table-custom-cells', description: 'Table with custom cell renderers and formatting', type: 'registry:example', registryDependencies: ['table', 'avatar', 'badge', 'text', 'view'], hooks: [], theme: [], files: [ { type: 'registry:example', path: 'templates/demo/table/table-custom-cells.tsx', target: 'components/demo/table/table-custom-cells.tsx', }, ], preview: { light: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-11-42_1.MP4', dark: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-11-42_1.MP4', }, }, 'table-pagination': { name: 'table-pagination', description: 'Table with pagination controls', type: 'registry:example', registryDependencies: ['table'], hooks: [], theme: [], files: [ { type: 'registry:example', path: 'templates/demo/table/table-pagination.tsx', target: 'components/demo/table/table-pagination.tsx', }, ], preview: { light: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-12-34_1.MP4', dark: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-12-34_1.MP4', }, }, 'table-search': { name: 'table-search', description: 'Table with search functionality', type: 'registry:example', registryDependencies: ['table'], hooks: [], theme: [], files: [ { type: 'registry:example', path: 'templates/demo/table/table-search.tsx', target: 'components/demo/table/table-search.tsx', }, ], preview: { light: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-13-16_1.MP4', dark: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-13-16_1.MP4', }, }, 'table-loading': { name: 'table-loading', description: 'Table showing loading state', type: 'registry:example', registryDependencies: ['table', 'button', 'view'], hooks: [], theme: [], files: [ { type: 'registry:example', path: 'templates/demo/table/table-loading.tsx', target: 'components/demo/table/table-loading.tsx', }, ], preview: { light: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-14-00_1.MP4', dark: 'https://cdn.jsdelivr.net/gh/ahmedbna/bna-ui-demo/ScreenRecording_07-01-2025 11-14-00_1.MP4', }, }, };