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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@moura-logistic/logistic-lib

v0.0.19

Published

Biblioteca de componentes logísticos Moura com Bootstrap integrado.

Readme

@moura/logistic-lib

Biblioteca de componentes React para aplicações logísticas com design system Moura integrado.

📦 Instalação

npm install @moura/logistic-lib

🎨 Dependências

Esta biblioteca possui as seguintes peer dependencies que devem estar instaladas no seu projeto:

npm install react react-dom bootstrap chart.js react-chartjs-2 react-icons

🚀 Início Rápido

Importe e use os componentes

O CSS já vem embutido nos componentes - não é necessário importar arquivos CSS separados!

import { LogisticsButton, InventoryScorecard, ScoreCardChart } from '@moura/logistic-lib';

function App() {
  return (
    <div>
      <LogisticsButton variant="primary" size="md">
        Clique aqui
      </LogisticsButton>

      <ScoreCardChart percentage={87} />

      <InventoryScorecard
        title="MRO"
        headerComponent={<ScoreCardChart percentage={87} />}
        metrics={[
          {
            id: '1',
            label: 'Total de itens',
            icon: <span>📦</span>,
            totalValue: 50840,
            totalLabel: 'TOTAL',
            actionValue: 4821,
            actionLabel: 'COM AÇÃO',
            classAValue: 248,
            classALabel: 'CLASSE A',
          },
        ]}
      />
    </div>
  );
}

📚 Componentes Disponíveis

LogisticsButton

Botão estilizado com variantes primary e secondary seguindo o design Moura.

Ver documentação detalhada

ScoreCardChart

Gráfico circular (doughnut) que mostra porcentagem com mudança automática de cor e label.

Ver documentação detalhada

InventoryScorecard

Card de scorecard de inventário com cabeçalho opcional e lista de métricas.

Ver documentação detalhada

MetricRow

Linha de métrica com ícone, label e três colunas de valores (usado internamente pelo InventoryScorecard).

Ver documentação detalhada

🎨 Design System

CSS Automático

O CSS da biblioteca (incluindo Bootstrap 5.3+ e variáveis do tema Moura) é injetado automaticamente quando você importa os componentes. Não é necessário nenhuma configuração adicional!

Paleta de Cores

A biblioteca usa variáveis CSS do tema Moura:

--moura-primary       /* Azul escuro #1F3D90 */
--moura-blue-light    /* Azul claro #0274BA */
--moura-danger        /* Vermelho #DC3545 */
--moura-warning       /* Amarelo #E3A21D */
--moura-white         /* Branco #FFFFFF */
--moura-black-alt     /* Preto alternativo #373435 */
--moura-gray          /* Cinza #B8B6BB */
--moura-track         /* Cinza claro para trilhas #EDEEF0 */

Você pode usar essas variáveis nos seus próprios estilos:

.meu-elemento {
  color: var(--moura-primary);
  background-color: var(--moura-white);
}

🛠️ Desenvolvimento

Storybook

Para visualizar todos os componentes e suas variações:

npm run storybook

Acesse: http://localhost:6006

Build

npm run build

📄 Licença

MIT

🤝 Suporte

Para reportar problemas ou sugerir melhorias, entre em contato com a equipe de desenvolvimento.