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

conexean-library

v0.3.0

Published

Uma biblioteca de componentes React com TypeScript e Tailwind CSS.

Readme

Sua Biblioteca de Componentes React

Uma biblioteca de componentes React com TypeScript e Tailwind CSS.

Estrutura do Projeto

sua-biblioteca/
├── src/
│   ├── components/
│   │   └── Input/
│   │       ├── Input.tsx
│   │       ├── Input.test.tsx
│   │       └── Input.stories.tsx
│   ├── index.ts
│   └── react-app-env.d.ts
├── .storybook/
├── dist/
├── package.json
├── tsconfig.json
├── rollup.config.js
└── README.md

Instalação

npm install sua-biblioteca

ou

yarn add sua-biblioteca

Uso

import React from 'react';
import { Input } from 'sua-biblioteca';

function App() {
  return (
    <div>
      <Input 
        name="example" 
        id="example" 
        label="Exemplo de Input" 
        mask="(##) #####-####"
      />
    </div>
  );
}

export default App;

Nota: Esta biblioteca utiliza Tailwind CSS. Certifique-se de que seu projeto tem o Tailwind CSS configurado.

Componentes Disponíveis

Input

Um componente de input com suporte para máscaras e tratamento de erros.

Propriedades:

  • name (string, obrigatório): Nome do input
  • id (string, obrigatório): ID do input
  • label (string, opcional): Rótulo do input
  • inputClass (string, opcional): Classes CSS adicionais para o input
  • errors (string, opcional): Mensagem de erro
  • mask (string, opcional): Máscara para formatação do input

Desenvolvimento

Pré-requisitos

  • Node.js (versão 14 ou superior)
  • npm ou yarn

Configuração do Ambiente de Desenvolvimento

  1. Clone o repositório:

    git clone https://github.com/seu-usuario/sua-biblioteca.git
    cd sua-biblioteca
  2. Instale as dependências:

    npm install
  3. Para iniciar o Storybook:

    npm run storybook

Criando um Novo Componente

  1. Crie uma nova pasta para o componente em src/components/:

    mkdir src/components/NomeDoComponente
  2. Crie os arquivos do componente:

    • NomeDoComponente.tsx: O componente React
    • NomeDoComponente.test.tsx: Testes do componente
    • NomeDoComponente.stories.tsx: Histórias do Storybook
  3. Implemente o componente em NomeDoComponente.tsx:

    import React from 'react';
    
    interface NomeDoComponenteProps {
      // Defina as props aqui
    }
    
    const NomeDoComponente: React.FC<NomeDoComponenteProps> = (props) => {
      // Implemente o componente aqui
    };
    
    export default NomeDoComponente;
  4. Escreva testes em NomeDoComponente.test.tsx:

    import React from 'react';
    import { render } from '@testing-library/react';
    import NomeDoComponente from './NomeDoComponente';
    
    describe('NomeDoComponente', () => {
      it('renders correctly', () => {
        // Implemente os testes aqui
      });
    });
  5. Crie histórias em NomeDoComponente.stories.tsx:

    import React from 'react';
    import { Meta, StoryFn } from '@storybook/react';
    import NomeDoComponente from './NomeDoComponente';
    
    export default {
      title: 'Components/NomeDoComponente',
      component: NomeDoComponente,
    } as Meta<typeof NomeDoComponente>;
    
    const Template: StoryFn<typeof NomeDoComponente> = (args) => <NomeDoComponente {...args} />;
    
    export const Default = Template.bind({});
    Default.args = {
      // Defina os args padrão aqui
    };
  6. Exporte o novo componente em src/index.ts:

    export { default as NomeDoComponente } from './components/NomeDoComponente/NomeDoComponente';

Build

Para criar uma build da biblioteca:

npm run build

Publicação

  1. Atualize a versão no package.json:

    npm version patch  # para pequenas correções
    npm version minor  # para novas funcionalidades
    npm version major  # para mudanças que quebram compatibilidade
  2. Publique no npm:

    npm publish

Contribuindo

Contribuições são bem-vindas! Por favor, siga estas etapas:

  1. Fork o projeto
  2. Crie sua branch de feature (git checkout -b feature/AmazingFeature)
  3. Commit suas mudanças (git commit -m 'Add some AmazingFeature')
  4. Push para a branch (git push origin feature/AmazingFeature)
  5. Abra um Pull Request

Licença

Distribuído sob a licença MIT. Veja LICENSE para mais informações.

Contato

Seu Nome - @seutwitter - [email protected]

Link do Projeto: https://github.com/seu-usuario/sua-biblioteca