aura-glass
Version:
A comprehensive glassmorphism design system for React applications with 142+ production-ready components
23 lines (20 loc) • 748 B
JavaScript
'use client';
import { jsx } from 'react/jsx-runtime';
import { cn } from '../../lib/utilsComprehensive.js';
function GlassStatusDot({
status = 'ok',
size = 8,
className
}) {
// TODO: Integrate ContrastGuard for table cells, list items, badges, card titles, and other text content for WCAG AA compliance
const color = status === 'ok' ? 'bg-emerald-400' : status === 'warn' ? 'bg-amber-400' : status === 'error' ? 'bg-red-400' : status === 'busy' ? 'bg-blue-400' : 'bg-slate-400';
return jsx("span", {
className: cn('inline-block glass-radius-full', color, className),
style: {
width: size,
height: size
}
});
}
export { GlassStatusDot, GlassStatusDot as default };
//# sourceMappingURL=GlassStatusDot.js.map