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

@fiscozen/progress

v1.0.0

Published

Design System Progress component

Readme

@fiscozen/progress

Progress indicators for Vue 3 applications, including animated loading spinners and visual progress bars with customizable ranges.

Features

  • Loading Spinner: Animated spinner component for loading states
  • Progress Bar: Visual progress indicator with customizable min/max ranges
  • Custom Ranges: Support for negative values and custom ranges (e.g., -15 to 50)
  • Smooth Transitions: CSS transitions for progress bar updates
  • Accessibility: Full WCAG 2.1 AA compliance with ARIA attributes
  • TypeScript: Full type safety with TypeScript definitions

Installation

npm install @fiscozen/progress

Components

This package exports two components:

  • FzProgress - Animated loading spinner indicator
  • FzProgressBar - Visual progress bar with percentage display

Basic Usage

FzProgress

<script setup lang="ts">
import { FzProgress } from '@fiscozen/progress'
</script>

<template>
  <FzProgress />
</template>

FzProgressBar

<script setup lang="ts">
import { FzProgressBar } from '@fiscozen/progress'
</script>

<template>
  <FzProgressBar :current="50" />
</template>

FzProgress

With Custom Size

<template>
  <FzProgress size="lg" />
  <FzProgress size="sm" />
  <FzProgress size="xl" />
</template>

With Custom Icon

<template>
  <FzProgress name="spinner" />
</template>

FzProgressBar

Basic Progress

<template>
  <!-- 0% -->
  <FzProgressBar :current="0" />
  
  <!-- 50% -->
  <FzProgressBar :current="50" />
  
  <!-- 100% -->
  <FzProgressBar :current="100" />
</template>

Custom Range

<template>
  <!-- Range from -15 to 50, current value 30 -->
  <FzProgressBar :current="30" :min="-15" :max="50" />
  
  <!-- Range from 0 to 200, current value 150 -->
  <FzProgressBar :current="150" :min="0" :max="200" />
</template>

Custom Label

<template>
  <FzProgressBar 
    :current="75" 
    name="upload-progress" 
  />
</template>

Custom Size

<template>
  <!-- Small size -->
  <FzProgressBar :current="50" size="sm" />
  
  <!-- Medium size (default) -->
  <FzProgressBar :current="50" size="md" />
</template>

Custom Color

<template>
  <!-- Purple (default) -->
  <FzProgressBar :current="50" color="purple" />
  
  <!-- Blue -->
  <FzProgressBar :current="50" color="blue" />
  
  <!-- Orange -->
  <FzProgressBar :current="50" color="orange" />
  
  <!-- Pink -->
  <FzProgressBar :current="50" color="pink" />
  
  <!-- Yellow -->
  <FzProgressBar :current="50" color="yellow" />
  
  <!-- Grey -->
  <FzProgressBar :current="50" color="grey" />
</template>

Props

FzProgress Props

FzProgress inherits all props from FzIcon (from @fiscozen/icons):

| Prop | Type | Default | Description | |------|------|---------|-------------| | name | string | 'spinner-third' | FontAwesome icon name | | size | 'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| '2xl' | 'lg' | Icon size | | variant | IconVariant | 'far' | FontAwesome icon variant (fas, far, fal, etc.) |

FzProgressBar Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | current | number | required | Current progress value within the min-max range | | max | number | 100 | Maximum value for progress calculation | | min | number | 0 | Minimum value for progress calculation | | name | string | 'progress-bar' | Accessible label for screen readers | | size | 'sm' \| 'md' | 'md' | Height of the progress bar | | color | 'purple' \| 'blue' \| 'orange' \| 'pink' \| 'yellow' \| 'grey' | 'purple' | Color variant of the progress indicator |

Behavior & Concepts

Progress Calculation

The progress bar calculates the percentage position of the current value within the [min, max] range:

percentage = ((current - min) / (max - min)) * 100

The result is clamped between 0% and 100% for CSS width.

Examples:

  • current=50, min=0, max=10050%
  • current=30, min=-15, max=50(30 - (-15)) / (50 - (-15)) * 100 = 69%
  • current=-10, min=0, max=1000% (clamped)
  • current=150, min=0, max=100100% (clamped)

Custom Ranges

The component supports custom ranges including negative values:

<template>
  <!-- Temperature range: -25°C to 75°C, current 0°C -->
  <FzProgressBar 
    :current="0" 
    :min="-25" 
    :max="75" 
    name="temperature"
  />
  <!-- Result: (0 - (-25)) / (75 - (-25)) * 100 = 25% -->
</template>

Accessibility

FzProgressBar follows WCAG 2.1 AA standards and includes:

  • ARIA Attributes:
    • role="progressbar" for semantic meaning
    • aria-valuenow with current value
    • aria-valuemin with minimum value
    • aria-valuemax with maximum value
    • aria-label for screen reader description
  • Screen Reader Support: Progress values are accessible when navigating to the progress bar
  • Keyboard Navigation: Progress bar is accessible via keyboard (though not interactive)

FzProgress uses FontAwesome icons which handle ARIA attributes automatically for decorative icons.

Notes

Why Div Instead of HTML Progress Element?

We use div elements instead of the HTML <progress> element for better CSS cross-browser compatibility. The progress element requires browser-specific pseudo-elements (::-webkit-progress-bar, ::-moz-progress-bar) which can be inconsistent across browsers and harder to style with Tailwind CSS.

Related Components

  • FzIcon: Used internally by FzProgress for icon rendering