mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
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>
68 lines
1.3 KiB
TypeScript
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'
|