feat: add Badge and Alert components
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc.
|
||||
* See third-party/HEROUI-LICENSE. Modified: hv- class prefix. */
|
||||
|
||||
/* Base alert styles */
|
||||
.hv-alert {
|
||||
@apply flex w-full flex-row items-start justify-start gap-4 bg-surface px-4 py-3 shadow-surface;
|
||||
border-radius: min(32px, var(--radius-3xl));
|
||||
}
|
||||
|
||||
/* Alert elements */
|
||||
.hv-alert__content {
|
||||
@apply flex h-full grow flex-col items-start;
|
||||
}
|
||||
|
||||
.hv-alert__indicator {
|
||||
@apply flex items-center justify-center p-1 select-none;
|
||||
|
||||
[data-slot="alert-default-icon"] {
|
||||
@apply box-content size-4;
|
||||
}
|
||||
}
|
||||
|
||||
.hv-alert__title {
|
||||
@apply text-sm leading-6 font-medium;
|
||||
}
|
||||
|
||||
.hv-alert__description {
|
||||
@apply text-sm text-muted;
|
||||
}
|
||||
|
||||
/* Variant modifiers */
|
||||
.hv-alert--default .hv-alert__indicator {
|
||||
@apply text-foreground;
|
||||
}
|
||||
|
||||
.hv-alert--default .hv-alert__title {
|
||||
@apply text-foreground;
|
||||
}
|
||||
|
||||
.hv-alert--accent .hv-alert__indicator {
|
||||
@apply text-accent-soft-foreground;
|
||||
}
|
||||
|
||||
.hv-alert--accent .hv-alert__title {
|
||||
@apply text-accent-soft-foreground;
|
||||
}
|
||||
|
||||
.hv-alert--success .hv-alert__indicator {
|
||||
@apply text-success-soft-foreground;
|
||||
}
|
||||
|
||||
.hv-alert--success .hv-alert__title {
|
||||
@apply text-success-soft-foreground;
|
||||
}
|
||||
|
||||
.hv-alert--warning .hv-alert__indicator {
|
||||
@apply text-warning-soft-foreground;
|
||||
}
|
||||
|
||||
.hv-alert--warning .hv-alert__title {
|
||||
@apply text-warning-soft-foreground;
|
||||
}
|
||||
|
||||
.hv-alert--danger .hv-alert__indicator {
|
||||
@apply text-danger-soft-foreground;
|
||||
}
|
||||
|
||||
.hv-alert--danger .hv-alert__title {
|
||||
@apply text-danger-soft-foreground;
|
||||
}
|
||||
Reference in New Issue
Block a user