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

@neosale/ui

v1.0.3

Published

NeoSale Design System - Componentes UI compartilhados

Readme

🎨 NeoSale UI

Biblioteca de componentes React reutilizáveis. Compartilhada entre neosale-auth, neosale-mkt e outros projetos.

Versão: 1.0.0 | Status: Ativo | Stack: React 18/19 + TypeScript + Tailwind CSS

🚀 Início Rápido

Instalação

npm install

Desenvolvimento (Watch Mode)

npm run dev

TypeScript compila automaticamente para dist/

Build

npm run build  # Gera dist/

📦 Como Usar em Outro Projeto

Adicionar Dependência

npm install @neosale/ui@file:../neosale-ui

Ou em package.json:

{
  "@neosale/ui": "file:../neosale-ui"
}

Importar Componentes

import { Button, Card, Modal, Badge, Input } from '@neosale/ui';

export function MyComponent() {
  return (
    <Card>
      <h1>Título</h1>
      <Input placeholder="Digite algo" />
      <Button>Enviar</Button>
    </Card>
  );
}

🎯 Componentes Disponíveis

| Componente | Descrição | |-----------|-----------| | Button | Botão com variantes (primary, secondary, danger) | | Card | Container para conteúdo | | Input | Campo de texto com validação | | Modal | Modal dialog | | ConfirmModal | Modal de confirmação | | Badge | Label/tag | | Spinner | Indicador de carregamento | | Table | Tabela com sorting e paginação | | ThemeToggle | Toggle de tema claro/escuro |

Exemplo de Uso

import { Button, Modal, useState } from '@neosale/ui';

export function Demo() {
  const [isOpen, setIsOpen] = useState(false);

  return (
    <>
      <Button onClick={() => setIsOpen(true)}>
        Abrir Modal
      </Button>

      <Modal
        isOpen={isOpen}
        onClose={() => setIsOpen(false)}
        title="Confirmação"
      >
        <p>Tem certeza?</p>
        <Button onClick={() => setIsOpen(false)}>Sim</Button>
      </Modal>
    </>
  );
}

🎨 Tema Customizado

Tailwind Preset

Importar em tailwind.config.js:

import { tailwind } from '@neosale/ui';

export default {
  presets: [tailwind.preset],
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/@neosale/ui/dist/**/*.js',
  ],
};

Cores Padrão

  • Primary: #403CCF (roxo)
  • Secondary: #FBFAFF (branco)
  • Dark: Suporte para dark: classes

📁 Estrutura

src/
├── index.ts                 # Barrel exports
├── components/
│   ├── Button.tsx
│   ├── Card.tsx
│   ├── Input.tsx
│   ├── Modal.tsx
│   ├── Table.tsx
│   └── ...
└── styles/
    ├── globals.css
    └── theme.css

📚 Documentação

🤝 Contribuindo

  1. Crie componente em src/components/
  2. Exporte em src/index.ts
  3. Teste em projeto dependente
  4. Commit semântico
git commit -m 'feat(ui): adicionar novo componente'

📦 Exports

// Componentes
export {
  Button,
  Card,
  Modal,
  Input,
  Badge,
  Spinner,
  Table,
  ConfirmModal,
  ThemeToggle
}

// Estilos
export './styles/globals.css'
export './styles/theme.css'

// Tailwind Preset
export { default as tailwind }

📝 Licença

MIT


Mantido por: Equipe NeoSale Última atualização: Fevereiro 2026