Files
metabuilder/components/vanilla/index.ts
johndoe6345789 8fcc71d530 refactor: Consolidate frontends/nextjs into root hooks and components
Hooks consolidation:
- frontends/nextjs now imports from @metabuilder/hooks
- Deleted empty directories (data/, use-dbal/, __tests__/)
- Deleted outdated documentation
- Added @metabuilder/hooks dependency to package.json
- Kept NextJS-specific auth hooks locally (have @/lib/* dependencies)
- Added missing useWorkflowExecutions export to root hooks

Components consolidation:
- Deleted duplicates: Skeleton, LoadingIndicator, EmptyState, ErrorBoundary, AccessDenied
- Created new /components/vanilla/access-denied/ component
- Updated /components exports and package.json
- frontends/nextjs/src/components/index.ts now re-exports from @metabuilder/components
- Updated imports in LoadingSkeleton, EmptyStateShowcase, page.tsx

Organization principle: Project-specific code is fine in root folders
as long as it's well organized.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 22:37:35 +00:00

68 lines
1.3 KiB
TypeScript

/**
* Vanilla React Components
*
* Pure React components with no external UI library dependencies.
* These components use only React and inline styles.
*/
// Loading components
export {
LoadingIndicator,
InlineLoader,
AsyncLoading,
loadingStyles,
type LoadingIndicatorProps,
type InlineLoaderProps,
type AsyncLoadingProps,
} from './loading'
// Error handling components
export {
ErrorBoundary,
withErrorBoundary,
ErrorDisplay,
type ErrorBoundaryProps,
type ErrorReporter,
type ErrorDisplayProps,
} from './error'
// Empty state components
export {
EmptyState,
NoDataFound,
NoResultsFound,
NoItemsYet,
AccessDeniedState,
ErrorState,
NoConnectionState,
LoadingCompleteState,
emptyStateStyles,
type EmptyStateProps,
} from './empty-state'
// Skeleton components
export {
Skeleton,
TableSkeleton,
CardSkeleton,
ListSkeleton,
FormSkeleton,
AvatarSkeleton,
TextSkeleton,
skeletonStyles,
type SkeletonProps,
type TableSkeletonProps,
type CardSkeletonProps,
type ListSkeletonProps,
type FormSkeletonProps,
type AvatarSkeletonProps,
type TextSkeletonProps,
} from './skeleton'
// Access denied component
export {
AccessDenied,
accessDeniedStyles,
type AccessDeniedProps,
} from './access-denied'