import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
import { forwardRef } from 'react';
import styles from './spinner.module.css.js';

const spinner = cva(styles.spinner, {
    variants: {
        size: {
            1: styles["spinner-size-1"],
            2: styles["spinner-size-2"],
            3: styles["spinner-size-3"],
            4: styles["spinner-size-4"],
            5: styles["spinner-size-5"],
            6: styles["spinner-size-6"],
        },
        color: {
            default: styles["spinner-color-default"],
            inverted: styles["spinner-color-inverted"],
        }
    },
    defaultVariants: {
        size: 1,
        color: "default",
    },
});
const Spinner = forwardRef(({ className, size, color, ...props }, ref) => (jsxRuntimeExports.jsx("div", { ref: ref, className: spinner({ size, color, className }), role: "status", "aria-hidden": "true", ...props, children: [...Array(8)].map((_, index) => (jsxRuntimeExports.jsx("div", { className: styles.pole }, index))) })));
Spinner.displayName = 'Spinner';

export { Spinner };
//# sourceMappingURL=spinner.js.map
