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

@sipal/ui

v1.0.5

Published

Biblioteca de componentes React para Sipal - UI moderna com Tailwind CSS 4.1, Radix UI e TypeScript

Readme

Sipal UI

Versão: 1.0.5

Biblioteca de componentes React moderna e completa para construção de interfaces administrativas e dashboards.

Construída com React 18, TypeScript, Tailwind CSS 4.1, Radix UI, TanStack Table e Chart.js.


✨ Características

  • 🎨 56 componentes profissionais prontos para uso
  • 🌗 Dark Mode nativo com suporte completo
  • Acessível - Construído sobre Radix UI com suporte WAI-ARIA
  • 📊 Charts integrados - Gráficos com tema sincronizado ao Tailwind
  • 🎯 TypeScript - Tipagem completa em todos os componentes
  • 🎭 Tailwind CSS 4.1 - Sistema de design baseado em variáveis CSS
  • 📱 Responsivo - Otimizado para mobile, tablet e desktop
  • 🚀 Tree-shakeable - Bundle otimizado com imports individuais

📦 Instalação

npm install @sipal/ui
# ou
yarn add @sipal/ui
# ou
pnpm add @sipal/ui

Peer Dependencies

npm install react react-dom tailwindcss

🚀 Quick Start

1. Configure o Tailwind CSS

No seu tailwind.config.ts:

import type { Config } from 'tailwindcss'

const config: Config = {
  content: [
    './src/**/*.{ts,tsx}',
    './node_modules/@sipal/ui/dist/**/*.{js,mjs}', // Adicione esta linha
  ],
  darkMode: 'class',
  plugins: [require('tailwindcss-animate')],
}

export default config

2. Importe o CSS do tema

No seu arquivo CSS principal (ex: app/globals.css ou src/index.css):

@import "@sipal/ui/styles";

Ou importe diretamente no seu _app.tsx / layout.tsx:

import '@sipal/ui/styles'

3. Use os componentes

import { Button, Card, Input } from '@sipal/ui'

function App() {
  return (
    <Card>
      <Card.Header>
        <Card.Title>Bem-vindo ao Sipal UI</Card.Title>
      </Card.Header>
      <Card.Content>
        <Input placeholder="Digite seu nome..." />
        <Button>Enviar</Button>
      </Card.Content>
    </Card>
  )
}

📚 Documentação

🎯 Início Rápido

📖 Guias Detalhados

🎨 Temas e Arquitetura


🎨 Sistema de Temas

A Sipal UI utiliza um sistema de temas baseado em variáveis CSS (Tailwind CSS 4.1).

Customizando o Tema

Crie ou edite seu arquivo src/styles/theme.css:

@import "tailwindcss";

@theme {
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --radius-lg: var(--radius);
}

:root {
  --primary: 222.2 47.4% 11.2%; /* Azul escuro */
  --primary-foreground: 210 40% 98%;
  --radius: 0.75rem; /* Bordas mais arredondadas */
}

.dark {
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;
}

🧩 Lista de Componentes

| Componente | Exemplo de Uso Básico | |------------|-----------------------| | Button | <Button>Salvar</Button> | | Badge | <Badge>Novo</Badge> | | Separator | <Separator /> | | Skeleton | <Skeleton className="h-4 w-full" /> | | Aspect Ratio | <AspectRatio ratio={16/9}><img ... /></AspectRatio> | | Label | <Label htmlFor="email">Email</Label> | | Input | <Input placeholder="Email" /> | | Password Input | <PasswordInput /> | | Textarea | <Textarea /> | | Checkbox | <Checkbox /> | | Radio Group | <RadioGroup><RadioGroupItem value="1" /></RadioGroup> | | Switch | <Switch /> | | Select | <Select><SelectTrigger><SelectValue /></SelectTrigger></Select> | | MultiSelect | <MultiSelect options={[]} /> | | Slider | <Slider defaultValue={[50]} /> | | Date Picker | <DatePicker /> | | Date Range Picker | <DateRangePicker /> | | Time Picker | <TimePicker /> | | File Upload | <FileUpload /> | | Color Picker | <ColorPicker /> | | Form | <Form {...form}><form>...</form></Form> | | Card | <Card><CardContent>Content</CardContent></Card> | | KPI Card | <KpiCard title="Total" value="100" /> | | Table | <Table><TableRow><TableCell>Cell</TableCell></TableRow></Table> | | DataTable | <DataTable columns={columns} data={data} /> | | Accordion | <Accordion><AccordionItem value="1">...</AccordionItem></Accordion> | | Collapsible | <Collapsible>...</Collapsible> | | Scroll Area | <ScrollArea>...</ScrollArea> | | Timeline | <Timeline items={[]} /> | | Tree View | <TreeView data={[]} /> | | Code Block | <CodeBlock code="..." /> | | Resizable | <ResizablePanelGroup>...</ResizablePanelGroup> | | Bar Chart | <BarChart data={data} /> | | Line Chart | <LineChart data={data} /> | | Area Chart | <AreaChart data={data} /> | | Pie Chart | <PieChart data={data} /> | | Scatter Chart | <ScatterChart data={data} /> | | Mixed Chart | <MixedChart data={data} /> | | Avatar | <Avatar><AvatarImage src="..." /></Avatar> | | Tabs | <Tabs><TabsList>...</TabsList></Tabs> | | Breadcrumb | <Breadcrumb>...</Breadcrumb> | | Pagination | <Pagination>...</Pagination> | | Stepper | <Stepper steps={[]} /> | | Menubar | <Menubar>...</Menubar> | | Dropdown Menu | <DropdownMenu>...</DropdownMenu> | | Side Navigation | <SideNavigation>...</SideNavigation> | | Alert | <Alert><AlertTitle>Info</AlertTitle></Alert> | | Dialog | <Dialog><DialogTrigger>Open</DialogTrigger></Dialog> | | Sheet | <Sheet><SheetTrigger>Open</SheetTrigger></Sheet> | | Popover | <Popover><PopoverTrigger>Open</PopoverTrigger></Popover> | | Tooltip | <Tooltip><TooltipTrigger>Hover</TooltipTrigger></Tooltip> | | Toast | toast("Message") | | Progress | <Progress value={50} /> | | Empty State | <EmptyState title="No Data" /> |


📄 Licença

MIT © Sipal


🔗 Links Úteis