devletes/filament-progress-bar
Reusable progress bar components for Filament 5 tables and infolists. Shared API for columns/entries, built-in success/warning/danger thresholds (ascending/descending) or custom state maps, multiple sizes and text positions, dark-mode aware styling, and proper progressbar semantics.
Fully backwards-compatible with 1.0.x — no breaking API or visual changes.
thresholdDirection('ascending'|'descending') for low-is-bad metrics like fuel, stock, or battery.thresholds([90 => 'success', 60 => 'warning', 0 => 'danger']) supporting any number of states with custom status names. When the map omits a 0-floor, the lowest-defined status extends down to 0 instead of falling back to success.success/warning/danger) auto-resolve their default color from your Filament panel via var(--{status}-500) — including custom panel colors registered via ->colors([...]). The three legacy statuses keep their 1.0.x defaults.statusColors([...]) and statusLabels([...]) for one-off colors and labels on arbitrary status names.borderRadius(string) accepting any valid CSS length ('4px', '0.5rem', 'calc(var(--r) * 2)', etc.) with sanitization against inline-style injection.ProgressBarResolver::resolveStatus() now accepts a richer config (with mode, direction, and either warning/danger or map keys). The previous ['warning' => N, 'danger' => N] input shape still works unchanged.ProgressBarResolver::resolveBaseData() returns the same outer keys as before; thresholds now contains the canonical config rather than the flat tier pair.Showcase page (/admin/showcase) and a Playwright capture script (scripts/capture-screenshots.mjs) for regenerating the screenshots.How can I help you explore Laravel packages today?