feat(ui): Enhance ConnectionStatus and Badge components with dynamic status indicators
- Add animated ping effect to ConnectionStatus badge - Update Badge variants with more subtle color schemes - Implement success variant for online/offline states - Reduce text size and improve visual hierarchy - Use rounded-full badge design for better aesthetics
This commit is contained in:
parent
ea03290f84
commit
0923731ee9
2 changed files with 15 additions and 7 deletions
|
|
@ -3,16 +3,18 @@ import { cva, type VariantProps } from 'class-variance-authority'
|
|||
export { default as Badge } from './Badge.vue'
|
||||
|
||||
export const badgeVariants = cva(
|
||||
'inline-flex items-center whitespace-nowrap rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
|
||||
'inline-flex items-center whitespace-nowrap rounded-full border px-1.5 py-0.5 text-[10px] font-medium transition-colors',
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
default:
|
||||
'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',
|
||||
'border-transparent bg-primary/10 text-primary hover:bg-primary/20',
|
||||
secondary:
|
||||
'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
||||
'border-transparent bg-secondary/10 text-secondary-foreground hover:bg-secondary/20',
|
||||
destructive:
|
||||
'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',
|
||||
'border-transparent bg-destructive/10 text-destructive hover:bg-destructive/20',
|
||||
success:
|
||||
'border-transparent bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400',
|
||||
outline: 'border-border text-foreground hover:bg-accent hover:text-accent-foreground',
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue