npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@abqm-ds/icons

v4.0.15

Published

> Biblioteca de ícones em React baseada em SVGs personalizados da ABQM.

Downloads

1,183

Readme

@abqm-ds/icons

Biblioteca de ícones em React baseada em SVGs personalizados da ABQM.

Esta biblioteca fornece ícones SVG como componentes React, permitindo uso simples, estilização via props e integração fluida com projetos em React ou design systems internos.


📦 Instalação

No seu projeto React (com suporte a pacotes do monorepo):

yarn add @abqm-ds/icons
# ou
npm install @abqm-ds/icons

⚙️ Como Funciona

  1. Adicione os arquivos SVG que deseja converter nas pastas src/icons/, src/iconsSEQM/ ou src/logos/:

    Atenção: A nomenclatura dos ícones deve ser em minúsculo separado por hífen, ex:

    ❌ caretright.svg

    ✅ caret-right.svg

    • Para ícones normais, use src/icons/
    • Para ícones SEQM, use src/iconsSEQM/
    • Para logos, use src/logos/
  2. Em seguida, execute o comando abaixo no terminal:

npm run generate:icons
  1. O processo de geração segue estas etapas:
    • Os SVGs das pastas icons, iconsSEQM e logos são convertidos e salvos temporariamente em _icons, _iconsSEQM e _logos.
    • Em seguida, são organizados e movidos para a pasta components.

💡 Esse processo evita que todos os ícones existentes sejam modificados a cada nova adição. O script verifica se um ícone já existe e somente cria ou atualiza os que são realmente novos ou alterados.


💡 Como Usar

Importe o componente do ícone desejado diretamente:

import { FacebookIcon, InstagramIcon, YoutubeIcon, HorseIcon } from '@abqm-ds/icons';

export function Example() {
  return (
    <div style={{ display: 'flex', gap: 16 }}>
      <FacebookIcon width={24} height={24} fill="#1877F2" />
      <InstagramIcon width={24} height={24} fill="#E1306C" />
      <YoutubeIcon width={24} height={24} fill="#FF0000" />
      <HorseIcon width={32} height={32} />
    </div>
  );
}

🎯 Props Aceitas

Todos os ícones exportados são componentes React SVG e aceitam todas as propriedades nativas de SVG:

| Prop | Tipo | Exemplo | | ----------- | ----------------------------- | -------------------------- | | width | number \| string | 24, "1em" | | height | number \| string | 24, "1.5rem" | | fill | string (cor em HEX ou nome) | "#333", "currentColor" | | className | string | "icon-large" | | style | React.CSSProperties | { marginRight: 8 } |


🛠 Desenvolvimento

Gerar componentes a partir de SVGs

  1. Coloque seus arquivos SVG em src/icons/, src/iconsSEQM/ ou src/logos/.
  2. Rode o comando:
npm run generate

Isso irá converter todos os SVGs para componentes React TypeScript (.tsx) e salvá-los em src/components/.

Compilar a lib

npm run build

Esse comando usa o tsup para gerar a pasta dist/ com módulos esm, cjs e os arquivos .d.ts.


📁 Estrutura

packages/icons/
├── scripts/             # Scripts de desenvolvimento
├── src/
│   ├── icons/           # SVGs originais (ícones)
│   ├── iconsSEQM/       # SVGs originais (ícones SEQM)
│   ├── logos/           # SVGs originais (logos)
│   ├── components/      # Componentes React (.tsx)
│   ├── _icons/          # SVGs temporários (ícones)
│   ├── _iconsSEQM/      # SVGs temporários (ícones SEQM)
│   ├── _logos/          # SVGs temporários (logos)
│   └── index.ts         # Exportações centralizadas
├── tsconfig.json
├── package.json
└── README.md

🤝 Contribuição

Para adicionar novos ícones:

  1. Adicione o SVG em src/icons/, src/iconsSEQM/ ou src/logos/
  2. Rode npm run generate
  3. Adicione à exportação em src/index.ts (caso necessário)
  4. Teste no seu projeto local

📃 Licença

Este projeto é privado e pertence à ABQM. Uso externo é restrito.