feat(storybook): Storybook with Calendar and Modal components #9869 (#10626)

### What problem does this PR solve?

feat(storybook): Storybook with Calendar and Modal components #9869

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-10-17 09:58:52 +08:00
committed by GitHub
parent 39ad9490ac
commit 15838a6673
4 changed files with 1061 additions and 1 deletions

View File

@ -14,6 +14,12 @@ const sizeClasses = {
large: 'w-8 h-8',
};
const minSizeClasses = {
small: 'min-w-4 min-h-4',
default: 'min-w-6 min-h-6',
large: 'min-w-8 min-h-8',
};
export const Spin: React.FC<SpinProps> = ({
spinning = true,
size = 'default',
@ -32,7 +38,12 @@ export const Spin: React.FC<SpinProps> = ({
)}
>
{spinning && (
<div className="absolute inset-0 z-10 flex items-center justify-center bg-text-primary/30 ">
<div
className={cn(
'absolute inset-0 z-10 flex items-center justify-center bg-text-primary/30',
minSizeClasses[size],
)}
>
<div
className={cn(
'rounded-full border-muted-foreground border-2 border-t-transparent animate-spin',