feat: add Surface, Link and Spinner components

This commit is contained in:
maoyingjie
2026-10-21 13:04:06 +08:00
parent 9d40dc0ecb
commit 630963c652
52 changed files with 2683 additions and 162 deletions
+50
View File
@@ -0,0 +1,50 @@
/* Adapted from HeroUI v3, ce90ea3. Copyright 2025 NextUI Inc.
* See third-party/HEROUI-LICENSE. Modified: hv- class prefix; Vue state adapters. */
/* Base spinner styles */
.hv-spinner {
@apply pointer-events-none inline-flex size-6 shrink-0 animate-spin-fast motion-reduce:animate-none;
}
/* Size variants */
.hv-spinner--sm {
@apply size-4;
}
.hv-spinner--md {
/* No styles as this is the default size */
}
.hv-spinner--lg {
@apply size-8;
}
.hv-spinner--xl {
@apply size-10;
}
/* Color variants */
.hv-spinner--current {
color: inherit;
}
.hv-spinner--accent {
color: var(--accent);
}
.hv-spinner--danger {
color: var(--danger);
}
.hv-spinner--success {
color: var(--success);
}
.hv-spinner--warning {
color: var(--warning);
}
/* Spinner icon fills the host box; excluded from generic button SVG sizing via data-slot. */
.hv-spinner > svg {
@apply size-full;
}