docs: Update registry metadata to reflect zero dependencies

🔧 Registry Metadata Update:
- Remove lucide-react from registry dependency metadata
- Update comments to reflect inline SVG approach
- Remove conditional @radix-ui/react-icons dependency
- Align registry metadata with actual zero-dependency implementation

📝 Context:
- This script generates registry metadata for shadcn/ui components
- The lucide-react reference was in dependency metadata, not actual code
- Now accurately reflects our inline SVG zero-dependency approach
This commit is contained in:
Peter Hanssens
2025-09-04 18:36:09 +10:00
parent 00540c2573
commit 7cea802d78

View File

@@ -133,19 +133,14 @@ fn build_styles_index(output_path: &Path) -> Result<()> {
framework.name, style.name
));
// TODO: Rustify dependencies
// Zero dependencies - using inline SVG instead of external icon libraries
let mut dependencies: Vec<String> = vec![
let dependencies: Vec<String> = vec![
"tailwindcss-animate".into(),
"class-variance-authority".into(),
"lucide-react".into(),
// Note: lucide-react removed - using inline SVG for zero dependencies
];
// TODO: Remove this when we migrate to lucide-react.
if style.name == Style::NewYork {
dependencies.push("@radix-ui/react-icons".into());
}
let payload = RegistryEntry {
name: style.name.to_string(),
r#type: RegistryItemType::Style,