mirror of
https://github.com/Afilmory/afilmory
synced 2026-05-01 10:16:40 +00:00
- Upgraded pnpm from version 10.18.1 to 10.19.0. - Downgraded @uswriting/exiftool from version 1.0.5 to 1.0.3 in multiple package.json files. - Updated various packages in pnpm-lock.yaml to their latest beta versions, including rolldown and related bindings. - Adjusted TypeScript configuration in apps/ssr to change JSX setting from "react-jsx" to "preserve". - Modified loading animations in UI components to include a duration of 1000ms for smoother transitions. Signed-off-by: Innei <tukon479@gmail.com>
20 lines
418 B
TypeScript
20 lines
418 B
TypeScript
import { clsxm } from '~/lib/cn'
|
|
|
|
interface LoadingCircleProps {
|
|
size: 'small' | 'medium' | 'large'
|
|
}
|
|
|
|
const sizeMap = {
|
|
small: 'text-md',
|
|
medium: 'text-xl',
|
|
large: 'text-3xl',
|
|
}
|
|
export const LoadingCircle: Component<LoadingCircleProps> = ({
|
|
className,
|
|
size,
|
|
}) => (
|
|
<div className={clsxm(sizeMap[size], className)}>
|
|
<i className="i-mingcute-loading-3-line animate-spin !duration-1000" />
|
|
</div>
|
|
)
|