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

@jcdecor/vue

v0.1.9

Published

Design System JC Decor — tema, tokens e componentes Vue 3 sobre Mantine Vue.

Readme

@jcdecor/vue

Design System da JC Decor para Vue 3: tema, tokens e componentes construídos sobre o Mantine Vue (porte comunitário do Mantine). É o irmão do @jcdecor/ui (React): mesmos tokens, mesmo CSS, mesmos nomes de componentes.

  • Paleta da marca em rampas OKLCH com contraste WCAG AA, Poppins, spacing, raios e sombras (tokens compartilhados com o React)
  • Tema claro (padrão) e escuro, lembrado no localStorage, com variáveis CSS --ds-*
  • Todo o @mantine-vue/core reexportado já temado, mais KpiCard, Tag, PromoBanner, TopNav, DataTable, ProductCard, PriceTag…
  • @jcdecor/vue/chat: bolhas, conversa, composer, lista de conversas e layout de atendimento
  • @jcdecor/vue/charts: gráficos do @mantine-vue/charts (ECharts) na paleta da marca, em pt-BR, claro/escuro
  • @jcdecor/vue/brand: logos e ilustrações SVG recoloríveis

Instalação

npm install @jcdecor/vue @mantine-vue/core @mantine-vue/hooks @mantine-vue/utils
# opcional: gráficos
npm install @mantine-vue/charts echarts vue-echarts

Adicione a fonte Poppins:

<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap" rel="stylesheet" />

Uso

// main.ts
import '@mantine-vue/core/styles.css';
import '@jcdecor/vue/styles.css'; // sempre por último
// vite.config.ts: números em texto (`gap="4"`, `size="64"`, `w="70"`) viram números, como no React
import { mantineNumericProps } from '@jcdecor/vue/compiler';

vue({ template: { compilerOptions: { nodeTransforms: [mantineNumericProps] } } });
<script setup lang="ts">
import { ref } from 'vue';
import { JcProvider, Button, KpiCard, Tag, ProductCard } from '@jcdecor/vue';

const favorite = ref(false);
</script>

<template>
  <JcProvider>
    <KpiCard label="Acessos (60d)" :value="54959" :delta="-5.6" />
    <Tag tone="success" with-icon>Sucesso</Tag>
    <Button variant="accent">Destaque</Button>
    <ProductCard v-model:favorite="favorite" name="Cortina Linho" image="/linho.jpg" :price="389.9" @action="addToCart" />
  </JcProvider>
</template>

| Import | Conteúdo | | --- | --- | | @jcdecor/vue | JcProvider, jcTheme, jcCssVariablesResolver, todo o @mantine-vue/core, componentes JC, marca, formatadores pt-BR | | @jcdecor/vue/chat | ChatLayout, ChatHeader, ChatThread, ChatMessage, ChatComposer, ConversationList, TypingIndicator | | @jcdecor/vue/charts | LineChart, AreaChart, BarChart, DonutChart, PieChart, Sparkline, ChartCard… | | @jcdecor/vue/brand | JcLogo, JcLogoAlt, SpartanHelmet, GreekFrame, Collaborator | | @jcdecor/vue/tokens | tokens crus (brand, ramps, semantic, typography…) | | @jcdecor/vue/compiler | mantineNumericProps (transform do compilador de templates, usado no vite.config) | | @jcdecor/vue/styles.css | CSS dos componentes JC e overrides do tema |

Diferenças em relação ao React

  • Conteúdo que no React é ReactNode vira prop ou slot de mesmo nome (o slot vence): <KpiCard><template #icon>…</template></KpiCard>.
  • Callbacks viram eventos (@copy, @send, @select, @row-click, @action) e estado controlado vira v-model (v-model:sort, v-model:favorite, v-model:opened, v-model:period, v-model no ChatComposer).
  • DataTable aceita #cell-<coluna>="{ row, index }" além de column.render.
  • Gráficos usam ECharts (canvas): as cores da marca são convertidas para hex e trocam sozinhas com o tema; a altura é height (h é aceito como alias).

Documentação: https://jc-decor.github.io/design-system/instalacao-vue — escolha Vue no seletor do topo para ver todos os exemplos, códigos e playgrounds em Vue.