'use strict';

var jsxRuntime = require('react/jsx-runtime');
var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var React = require('react');
var spinner_module = require('./spinner.module.css.cjs');

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

exports.Spinner = Spinner;
//# sourceMappingURL=spinner.cjs.map
