a67670d240
Eliminates the central componentDefinitions registry in favor of component-owned definition files. Each of the 33 components now exports its own definition object. Changes: - Created definition.ts for all 33 components (Accordion, Avatar, Box, Button, etc.) - Updated useStyles hook to accept definition objects instead of string lookups - Removed central componentDefinitions file and related type utilities - Updated docs-ui to import and use component definitions directly - Added @backstage/ui/definitions subpath export to avoid importing component code in docs-ui, preventing Next.js SSR issues Breaking changes: - componentDefinitions object removed - ComponentDefinitionName type removed - ComponentClassNames<T> type removed - useStyles now accepts ComponentDefinition object instead of string (internal) Migration: Component definitions are primarily for documenting the CSS class API for theming. If using definitions programmatically, migrate to either: - Use Backstage UI components directly as building blocks, or - Duplicate component CSS in your own stylesheets Signed-off-by: Johan Persson <johanopersson@gmail.com>