"use client";
const require_rem = require("../../../core/utils/units-converters/rem.cjs");
const require_get_size = require("../../../core/utils/get-size/get-size.cjs");
const require_create_vars_resolver = require("../../../core/styles-api/create-vars-resolver/create-vars-resolver.cjs");
const require_use_props = require("../../../core/MantineProvider/use-props/use-props.cjs");
const require_use_styles = require("../../../core/styles-api/use-styles/use-styles.cjs");
const require_factory = require("../../../core/factory/factory.cjs");
const require_Box = require("../../../core/Box/Box.cjs");
const require_InputWrapper_context = require("../InputWrapper.context.cjs");
const require_Input_module = require("../Input.module.cjs");
let react = require("react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/Input/InputDescription/InputDescription.tsx
const varsResolver = require_create_vars_resolver.createVarsResolver((_, { size }) => ({ description: { "--input-description-size": size === void 0 ? void 0 : `calc(${require_get_size.getFontSize(size)} - ${require_rem.rem(2)})` } }));
const InputDescription = require_factory.factory((_props) => {
	const props = require_use_props.useProps("InputDescription", null, _props);
	const { classNames, className, style, styles, unstyled, vars, __staticSelector, __inheritStyles = true, attributes, ...others } = require_use_props.useProps("InputDescription", null, props);
	const ctx = (0, react.use)(require_InputWrapper_context.InputWrapperContext);
	const _getStyles = require_use_styles.useStyles({
		name: ["InputWrapper", __staticSelector],
		props,
		classes: require_Input_module.default,
		className,
		style,
		classNames,
		styles,
		unstyled,
		attributes,
		rootSelector: "description",
		vars,
		varsResolver
	});
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
		component: "p",
		...(__inheritStyles && ctx?.getStyles || _getStyles)("description", ctx?.getStyles ? {
			className,
			style
		} : void 0),
		...others
	});
});
InputDescription.classes = require_Input_module.default;
InputDescription.varsResolver = varsResolver;
InputDescription.displayName = "@mantine/core/InputDescription";
//#endregion
exports.InputDescription = InputDescription;

//# sourceMappingURL=InputDescription.cjs.map