Files
o11y-components/apps/docs/data/icons-manifest.ts
Vinicius LourençoandGitHub 0ffb228439 Better cjs/esm support & Better bundle (#118)
* fix(package): better compatibility with cjs/esm

* refactor(components): try optimize bundle output

* refactor(index): use tailwind config

* feat(vite): migrate from tsdown

* feat(biome): migrate from eslint

* fix(vite): last config to correct d.ts of cjs
2026-02-25 13:06:25 +05:30

24 lines
613 B
TypeScript

interface IconProps extends React.SVGProps<SVGSVGElement> {
size?: number | string;
strokeWidth?: number;
className?: string;
}
export interface IconManifest {
name: string;
component: React.ComponentType<IconProps>;
category: string;
tags: string[];
}
// Import all icons
import * as Icons from '@signozhq/icons';
// Create manifest
export const iconsManifest: IconManifest[] = Object.entries(Icons).map(([name, component]) => ({
name,
component: component as React.ComponentType<IconProps>,
category: name.includes('Solid') ? 'Solid' : 'Outline',
tags: name.toLowerCase().split(/(?=[A-Z])/),
}));