'use strict';

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

function _interopNamespaceDefault(e) {
    var n = Object.create(null);
    if (e) {
        Object.keys(e).forEach(function (k) {
            if (k !== 'default') {
                var d = Object.getOwnPropertyDescriptor(e, k);
                Object.defineProperty(n, k, d.get ? d : {
                    enumerable: true,
                    get: function () { return e[k]; }
                });
            }
        });
    }
    n.default = e;
    return Object.freeze(n);
}

var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);

const textarea = index.cva(textarea_module.default.textarea, {
    variants: {
        size: {
            small: textarea_module.default["textfield-sm"],
            medium: textarea_module.default["textfield-md"],
        },
        state: {
            invalid: textarea_module.default["textfield-invalid"],
            valid: textarea_module.default["textfield-valid"],
        },
        leading: {
            true: textarea_module.default["textfield-leading"],
        },
    },
    defaultVariants: {
        size: "small",
    },
});
const Textarea = React__namespace.forwardRef(({ className, size, state, style, leading, ...props }, ref) => {
    return (jsxRuntime.jsxRuntimeExports.jsx("textarea", { className: index.cx(textarea({ size, state, className, leading })), ref: ref, ...props }));
});
Textarea.displayName = "Textarea";

exports.Textarea = Textarea;
//# sourceMappingURL=textarea.cjs.map
