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

made-ds-front-react

v1.0.3

Published

MadeinWeb Design System - React Component Library

Readme

Made Design System - React Component Library

Uma biblioteca de componentes React moderna e acessível construída com Radix UI, Tailwind CSS e TypeScript.

📦 Instalação

npm install made-ds-front-react
# ou
yarn add made-ds-front-react
# ou
pnpm add made-ds-front-react

🚀 Configuração

1. Instalar dependências necessárias

A biblioteca requer estas peer dependencies:

npm install react react-dom tailwindcss

2. Configurar Tailwind CSS

Adicione os caminhos dos componentes ao seu tailwind.config.js:

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/made-ds-front-react/dist/**/*.{js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};

3. Importar estilos

Você tem duas opções para importar os estilos:

Opção 1: Importar automaticamente com os componentes

import { Button } from "made-ds-front-react"; // Estilos incluídos automaticamente

Opção 2: Importar estilos separadamente

import "made-ds-front-react/styles"; // Importa apenas os estilos
import { Button } from "made-ds-front-react";

Opção 3: Importar CSS diretamente

@import "made-ds-front-react/styles.css";

📖 Uso

Importação de Componentes

import { Button, Input, Card, Dialog } from "made-ds-front-react";

function App() {
  return (
    <div>
      <Button variant="default" size="lg">
        Clique aqui
      </Button>

      <Input placeholder="Digite algo..." />

      <Card>
        <CardHeader>
          <CardTitle>Título do Card</CardTitle>
          <CardDescription>Descrição do card</CardDescription>
        </CardHeader>
        <CardContent>Conteúdo do card</CardContent>
      </Card>
    </div>
  );
}

Componentes Disponíveis

Layout & Navegação

  • Accordion - Componente de acordeão expansível
  • Card - Container de conteúdo com estilização
  • Separator - Divisor visual
  • Sheet - Painel lateral deslizante
  • Sidebar - Barra lateral de navegação
  • Tabs - Navegação por abas

Formulários & Entrada

  • Button - Botão com múltiplas variantes
  • Input - Campo de entrada de texto
  • Checkbox - Caixa de seleção
  • Switch - Interruptor on/off
  • Select - Menu suspenso de seleção
  • MultiSelect - Seleção múltipla
  • AutoComplete - Campo com auto-completar
  • FileInput - Upload de arquivos
  • InputOTP - Entrada de código OTP
  • DatePicker - Seletor de data
  • MonthPicker - Seletor de mês
  • Calendar - Calendário

Exibição de Dados

  • Table - Tabelas de dados
  • Badge - Etiquetas e tags
  • Avatar - Imagem de perfil
  • Skeleton - Placeholder de carregamento
  • Pagination - Paginação de dados

Feedback & Navegação

  • Dialog - Modal/Diálogo
  • AlertDialog - Diálogo de confirmação
  • Alert - Alertas e notificações
  • Tooltip - Dicas contextuais
  • Popover - Pop-up contextual
  • Command - Interface de comando
  • DropdownMenu - Menu suspenso
  • Toaster - Notificações toast

Navegação & Layout

  • Carousel - Carrossel de conteúdo
  • Stepper - Indicador de progresso em etapas

Exemplos de Uso Avançado

Formulário Completo

import {
  Button,
  Input,
  Select,
  Checkbox,
  Card,
  Label,
} from "made-ds-front-react";

function ContactForm() {
  return (
    <Card className="w-full max-w-md mx-auto">
      <CardHeader>
        <CardTitle>Contato</CardTitle>
        <CardDescription>Preencha o formulário abaixo</CardDescription>
      </CardHeader>
      <CardContent className="space-y-4">
        <div>
          <Label htmlFor="name">Nome</Label>
          <Input id="name" placeholder="Seu nome" />
        </div>

        <div>
          <Label htmlFor="email">Email</Label>
          <Input id="email" type="email" placeholder="[email protected]" />
        </div>

        <div>
          <Label htmlFor="country">País</Label>
          <Select>
            <SelectTrigger>
              <SelectValue placeholder="Selecione um país" />
            </SelectTrigger>
            <SelectContent>
              <SelectItem value="br">Brasil</SelectItem>
              <SelectItem value="us">Estados Unidos</SelectItem>
              <SelectItem value="ca">Canadá</SelectItem>
            </SelectContent>
          </Select>
        </div>

        <div className="flex items-center space-x-2">
          <Checkbox id="terms" />
          <Label htmlFor="terms">Aceito os termos de serviço</Label>
        </div>

        <Button className="w-full">Enviar</Button>
      </CardContent>
    </Card>
  );
}

Dialog com Confirmação

import {
  Button,
  AlertDialog,
  AlertDialogAction,
  AlertDialogCancel,
  AlertDialogContent,
  AlertDialogDescription,
  AlertDialogFooter,
  AlertDialogHeader,
  AlertDialogTitle,
  AlertDialogTrigger,
} from "made-ds-front-react";

function DeleteConfirmation() {
  return (
    <AlertDialog>
      <AlertDialogTrigger asChild>
        <Button variant="destructive">Deletar Item</Button>
      </AlertDialogTrigger>
      <AlertDialogContent>
        <AlertDialogHeader>
          <AlertDialogTitle>Confirmar Exclusão</AlertDialogTitle>
          <AlertDialogDescription>
            Esta ação não pode ser desfeita. O item será excluído
            permanentemente.
          </AlertDialogDescription>
        </AlertDialogHeader>
        <AlertDialogFooter>
          <AlertDialogCancel>Cancelar</AlertDialogCancel>
          <AlertDialogAction>Confirmar</AlertDialogAction>
        </AlertDialogFooter>
      </AlertDialogContent>
    </AlertDialog>
  );
}

🎨 Customização

Variantes de Componentes

A maioria dos componentes suporta diferentes variantes:

// Button variants
<Button variant="default">Padrão</Button>
<Button variant="destructive">Destrutivo</Button>
<Button variant="outline">Contorno</Button>
<Button variant="secondary">Secundário</Button>
<Button variant="ghost">Fantasma</Button>
<Button variant="link">Link</Button>

// Button sizes
<Button size="sm">Pequeno</Button>
<Button size="default">Padrão</Button>
<Button size="lg">Grande</Button>
<Button size="icon">Ícone</Button>

Usando Classes Customizadas

Todos os componentes aceitam a prop className para personalização:

<Button className="bg-purple-500 hover:bg-purple-600 text-white">
  Botão Customizado
</Button>

Utilizando a função cn()

A biblioteca exporta a função utilitária cn para combinar classes:

import { cn } from "made-ds-front-react";

function MyComponent({ className, ...props }) {
  return (
    <div
      className={cn("base-classes", "conditional-classes", className)}
      {...props}
    />
  );
}

🛠️ Desenvolvimento

Requisitos

  • Node.js 18+
  • React 18+
  • TypeScript 5+

Scripts

# Desenvolver com storybook
npm run storybook

# Build da biblioteca
npm run build:lib

# Build da aplicação
npm run build

# Linting
npm run lint

📝 Licença

MIT

🤝 Contribuição

Contribuições são bem-vindas! Por favor, abra uma issue ou pull request no repositório.

📚 Documentação

Para documentação completa e exemplos interativos, visite nosso Storybook.


Made Design System - Construído com ❤️ usando Radix UI, Tailwind CSS e TypeScript.