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

portalcash-shared

v1.3.59

Published

Librería compartida de componentes Vue.js para PortalCash - Componentes UI, stores Pinia, servicios y utilidades reutilizables

Readme

PortalCash Shared Library

Una librería de componentes Vue 3 reutilizables, servicios y utilidades para aplicaciones PortalCash.

🚀 Instalación

npm install portalcash-shared
# o
yarn add portalcash-shared
# o
bun add portalcash-shared

📦 Características

  • ✅ Componentes Vue 3 con TypeScript
  • ✅ Stores Pinia integrados
  • ✅ Servicios y utilidades reutilizables
  • ✅ Composables para funcionalidades comunes
  • ✅ Soporte completo para TypeScript
  • ✅ Tree-shaking optimizado
  • ✅ CSS incluido

🛠️ Uso Básico

Importar Componentes

import { CustomButton, CustomInput, MainCard } from 'portalcash-shared'

Importar Stores

import { useAuthStore, useAccountsStore } from 'portalcash-shared'

Importar Composables

import { useFeatureFlags, useFormatPrice } from 'portalcash-shared'

Importar Utilidades

import { base64Transformer, validation } from 'portalcash-shared'

📋 Componentes Disponibles

Componentes UI

  • CustomButton - Botón personalizado
  • CustomInput - Campo de entrada personalizado
  • CustomSelect - Selector personalizado
  • CustomCheckBox - Checkbox personalizado
  • CustomDatePicker - Selector de fecha
  • CustomDialog - Modal de diálogo
  • CustomFileUpload - Subida de archivos
  • MainCard - Tarjeta principal
  • MainTable - Tabla principal
  • Y muchos más...

Componentes de Operaciones

  • BalanceCard - Tarjeta de balance
  • DetailsCard - Tarjeta de detalles
  • ObservationCard - Tarjeta de observaciones
  • PaymentDocument - Documento de pago
  • ThirdPartyCard - Tarjeta de terceros

🏪 Stores Disponibles

  • useAuthStore - Gestión de autenticación
  • useAccountsStore - Gestión de cuentas
  • useClientTypeStore - Tipos de cliente
  • useCompanyStore - Gestión de empresas
  • useCurrencyTypeStore - Tipos de moneda
  • useThemeStore - Gestión de temas

🔧 Configuración

Dependencias Peer

Esta librería requiere las siguientes dependencias peer:

{
  "vue": "^3.4.0",
  "pinia": "^2.1.0",
  "primevue": "^4.0.0",
  "@primevue/themes": "^4.0.0"
}

Instalación de Dependencias Opcionales

# FontAwesome (opcional)
npm install @fortawesome/fontawesome-svg-core @fortawesome/vue-fontawesome @fortawesome/free-solid-svg-icons

💡 Ejemplo de Uso Completo

<template>
  <div>
    <MainCard title="Mi Aplicación">
      <CustomButton 
        label="Guardar" 
        @click="handleSave"
        :loading="isLoading"
      />
      <CustomInput 
        v-model="formData.name"
        placeholder="Nombre"
      />
    </MainCard>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { CustomButton, CustomInput, MainCard, useAuthStore } from 'portalcash-shared'

const authStore = useAuthStore()
const isLoading = ref(false)
const formData = ref({ name: '' })

const handleSave = () => {
  isLoading.value = true
  // Lógica de guardado
}
</script>

🔨 Desarrollo

Requisitos

  • Node.js 18+
  • Bun (recomendado) o npm/yarn

Scripts Disponibles

# Instalar dependencias
bun install

# Desarrollo
bun dev

# Build de la librería
bun run build-lib

# Build para desarrollo
bun run build-dev

# Type checking
bun run type-check

# Tests
bun test:unit

📄 Licencia

MIT

🤝 Contribución

Las contribuciones son bienvenidas. Por favor, abre un issue o pull request para sugerencias y mejoras.

📞 Soporte

Para soporte técnico, contacta al equipo de desarrollo de PortalCash.