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

intellisoft-mi-claro-interactive-invoice

v0.2.1

Published

Stencil Component Starter

Readme

Mi Claro Interactive Invoice

Built With Stencil

Componente web interactivo para mostrar y gestionar facturas en el sistema de facturación de Claro. Construido con Stencil para máxima compatibilidad entre frameworks.

🚀 Instalación Rápida

npm install intellisoft-mi-claro-interactive-invoice

📋 Uso Básico

Vanilla JavaScript / HTML

<!DOCTYPE html>
<html>
<head>
  <script type="module" src="https://unpkg.com/intellisoft-mi-claro-interactive-invoice@latest/dist/mi-claro-interactive-invoice/mi-claro-interactive-invoice.esm.js"></script>
</head>
<body>
  <mi-claro-interactive-invoice></mi-claro-interactive-invoice>
</body>
</html>

React

import { defineCustomElements } from 'intellisoft-mi-claro-interactive-invoice/loader';

// Inicializar una vez en tu app
defineCustomElements();

function App() {
  const handleInvoicePaid = (event) => {
    console.log('Factura pagada:', event.detail);
  };

  return (
    <mi-claro-interactive-invoice 
      onInvoicePaid={handleInvoicePaid}>
    </mi-claro-interactive-invoice>
  );
}

Angular

// app.module.ts
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { defineCustomElements } from 'intellisoft-mi-claro-interactive-invoice/loader';

defineCustomElements();

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class AppModule { }

// component.ts
@Component({
  template: `
    <mi-claro-interactive-invoice 
      (invoicePaid)="onInvoicePaid($event)">
    </mi-claro-interactive-invoice>
  `
})
export class InvoiceComponent {
  onInvoicePaid(event: CustomEvent) {
    console.log('Factura pagada:', event.detail);
  }
}

Vue 3

<template>
  <mi-claro-interactive-invoice 
    @invoice-paid="handleInvoicePaid">
  </mi-claro-interactive-invoice>
</template>

<script setup>
import { defineCustomElements } from 'intellisoft-mi-claro-interactive-invoice/loader';

defineCustomElements();

const handleInvoicePaid = (event) => {
  console.log('Factura pagada:', event.detail);
};
</script>

🛠️ Propiedades

| Propiedad | Tipo | Descripción | Por Defecto | |-----------|------|-------------|-------------| | Por definir | - | Se agregarán según lógica de negocio | - |

📡 Eventos

| Evento | Descripción | Detalle | |--------|-------------|---------| | invoicePaid | Se emite cuando se completa un pago | { invoiceId: string, amount: number, method: string } | | invoiceDetailToggled | Se emite al expandir/contraer detalles | { invoiceId: string, isOpen: boolean } |

🎨 Personalización

El componente soporta CSS Custom Properties para personalización:

mi-claro-interactive-invoice {
  --invoice-primary-color: #e60028;
  --invoice-background: #ffffff;
  --invoice-border-radius: 8px;
  /* Más variables por definir según diseño */
}

💻 Desarrollo

Requisitos

  • Node.js >= 14.x
  • npm >= 6.x

Comandos

# Instalar dependencias
npm install

# Servidor de desarrollo
npm start

# Construir para producción
npm run build

# Ejecutar tests
npm test

# Generar nuevo componente
npm run generate

📁 Estructura del Proyecto

mi-claro-interactive-invoice/
├── src/
│   ├── components/
│   │   └── mi-claro-interactive-invoice/
│   │       ├── mi-claro-interactive-invoice.tsx
│   │       ├── mi-claro-interactive-invoice.css
│   │       └── readme.md
│   └── index.ts
├── examples/              # Ejemplos de integración
│   ├── vanilla-js/
│   ├── react-app/
│   ├── angular-app/
│   └── vue-app/
└── dist/                 # Archivos construidos

📚 Documentación

🤝 Contribución

Sección por definir según políticas internas de Claro

📄 Licencia

MIT © IntelliSoft


Nota: Este componente está en desarrollo activo. Las propiedades, eventos y estilos se definirán según los requerimientos específicos del negocio de Claro.