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

@axproo/ui

v1.0.0

Published

Composant UI (formulaires, tables, boutons, alertes

Downloads

14

Readme

@axproo/ui

Bibliothèque de composants UI réutilisables pour les projets Axproo.

Elle fournit un ensemble de composants Vue 3 modernes, typés en TypeScript, conçus pour être :

  • ⚡ rapides à intégrer
  • 🎨 personnalisables
  • ♻️ réutilisables
  • 🧩 cohérents (design system unifié)

Installation

npm install @axproo/ui

🧠 Philosophie

Chaque composant suit ces principes :

  • Props claires et typées
  • Comportement prévisible
  • Design cohérent (variants centralisés)
  • Utilisation simple sans surconfiguration
  • Extensible si besoin

📁 Structure des composants

@axproo/ui/
│
├── ui/
│   ├── button/
│   ├── alert/
│   ├── form/
│   ├── spinner/
│   └── ...
│
├── types/
├── utils/
└── index.ts

🧩 Liste des composants

| Composant | Description | | ------------ | ------------------------ | | ui/button | Boutons avec variantes | | ui/alert | Messages d’alerte | | ui/form | Champs et formulaires | | ui/spinner | Indicateur de chargement |

🔄 ui/spinner

Composant d’indicateur de chargement.

✨ Fonctionnalités

  • Affichage conditionnel
  • Mode inline ou overlay
  • Texte personnalisable
  • Variantes de couleur
  • Animation fluide

⚙️ Props

| Nom | Type | Défaut | Description | | ----------- | --------- | ----------------- | -------------------- | | isLoading | boolean | false | Active le spinner | | overlay | boolean | false | Affichage en overlay | | spinTitle | string | "Chargement..." | Texte affiché | | variant | string | "primary" | Couleur du spinner |

🎨 Variantes disponibles

primary
success
danger
warning

💻 Utilisation

<Spinner :isLoading="true" />

🔹 Avec texte

<Spinner 
  :isLoading="true" 
  spinTitle="Chargement en cours..." 
/>

🔹 Mode overlay

<Spinner 
  :isLoading="true" 
  :overlay="true" 
/>

🔹 Variante couleur

<Spinner 
  :isLoading="true" 
  variant="success" 
/>

🧠 Comportement

  • Si isLoading = false → rien n’est affiché
  • Si overlay = true → le spinner couvre le parent
  • Sinon → affichage inline

🧱 Intégration recommandée

Cas 1 : Chargement page entière

<div class="relative">
  <Spinner :isLoading="loading" overlay />
</div>

Cas 2 : Chargement local (table, card…)

<Spinner :isLoading="loading" />

🧪 Typage

export interface SpinnerProps {
  isLoading?: boolean;
  overlay?: boolean;
  spinTitle?: string;
  variant?: 'primary' | 'success' | 'danger' | 'warning';
}

🎯 Bonnes pratiques (@axproo/ui)

✅ À faire

  • Utiliser les variants fournis
  • Centraliser les styles
  • Garder les composants simples

❌ À éviter

  • Hardcoder les couleurs
  • Modifier directement les composants
  • Ajouter de la logique métier dans les UI

🧩 Pattern de création d’un composant

Chaque composant doit respecter :

  1. Props typées (types/)
  2. Variantes centralisées
  3. computed pour la logique UI
  4. Template simple et lisible

🔧 Roadmap

[] Dark mode [] Design tokens [] Composants avancés (modal, table, dropdown) [] Storybook

📌 Conclusion

@axproo/ui est conçu pour accélérer le développement tout en garantissant :

  • cohérence visuelle
  • maintenabilité
  • productivité équipe