UNPKG

sicua

Version:

A tool for analyzing project structure and dependencies

18 lines (17 loc) 1.65 kB
/** * Common UI component patterns used to identify reusable UI components * vs page/route components in React applications */ export declare const UI_COMPONENT_PATTERNS: readonly ["Button", "Input", "Select", "Checkbox", "Radio", "Textarea", "Form", "FormField", "FormGroup", "Label", "Dropdown", "DatePicker", "TimePicker", "Slider", "Switch", "SearchBox", "Layout", "Header", "Footer", "Sidebar", "Nav", "Navbar", "Menu", "MenuItem", "Breadcrumb", "Container", "Grid", "Row", "Column", "Section", "Wrapper", "Card", "Table", "List", "ListItem", "Avatar", "Badge", "Tag", "Chip", "Progress", "Spinner", "Loader", "Image", "Icon", "Divider", "Separator", "Modal", "Dialog", "Tooltip", "Popover", "Accordion", "Tab", "TabPanel", "Carousel", "Gallery", "Drawer", "Sheet", "Alert", "Toast", "Notification", "Banner", "ErrorBoundary", "SkeletonLoader", "EmptyState", "Chart", "Graph", "Calendar", "Timeline", "DataTable", "Pagination", "Filter", "Sort"]; /** * Directory patterns that typically contain UI components */ export declare const UI_COMPONENT_DIRECTORIES: readonly ["/components/", "\\components\\", "/ui/", "\\ui\\", "/shared/", "\\shared\\", "/common/", "\\common\\"]; /** * File patterns that indicate page components (should NOT be considered UI components) */ export declare const PAGE_COMPONENT_PATTERNS: readonly ["page.tsx", "page.jsx", "Page.tsx", "Page.jsx", "index.tsx", "index.jsx"]; /** * Content patterns that indicate page components */ export declare const PAGE_COMPONENT_CONTENT_PATTERNS: readonly ["generateMetadata", "export const metadata", "export default function Page", "getServerSideProps", "getStaticProps"];