'use strict';

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

const label = index.cva(label_module.default.label, {
    variants: {
        size: {
            small: label_module.default["label-small"],
            medium: label_module.default["label-medium"],
            large: label_module.default["label-large"],
        },
        required: {
            true: label_module.default["label-required"],
        }
    },
    defaultVariants: {
        size: "small",
        required: false,
    },
});
function Label({ children, className, size, required, requiredIndicator = "*", htmlFor, ...props }) {
    return (jsxRuntime.jsxRuntimeExports.jsxs("label", { className: label({ size, required, className }), htmlFor: htmlFor, ...props, children: [children, required && (jsxRuntime.jsxRuntimeExports.jsx("span", { className: label_module.default["required-indicator"], "aria-hidden": "true", role: "presentation", children: requiredIndicator }))] }));
}

exports.Label = Label;
//# sourceMappingURL=label.cjs.map
