"use client";
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_polymorphic_factory = require("../../core/factory/polymorphic-factory.cjs");
const require_Box = require("../../core/Box/Box.cjs");
const require_Paper_module = require("./Paper.module.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/Paper/Paper.tsx
const varsResolver = require_create_vars_resolver.createVarsResolver((_, { radius, shadow }) => ({ root: {
	"--paper-radius": radius === void 0 ? void 0 : require_get_size.getRadius(radius),
	"--paper-shadow": require_get_size.getShadow(shadow)
} }));
const Paper = require_polymorphic_factory.polymorphicFactory((_props) => {
	const props = require_use_props.useProps("Paper", null, _props);
	const { classNames, className, style, styles, unstyled, withBorder, vars, radius, shadow, variant, mod, attributes, ...others } = props;
	const getStyles = require_use_styles.useStyles({
		name: "Paper",
		props,
		classes: require_Paper_module.default,
		className,
		style,
		classNames,
		styles,
		unstyled,
		attributes,
		vars,
		varsResolver
	});
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
		mod: [{ "data-with-border": withBorder }, mod],
		...getStyles("root"),
		variant,
		...others
	});
});
Paper.classes = require_Paper_module.default;
Paper.varsResolver = varsResolver;
Paper.displayName = "@mantine/core/Paper";
//#endregion
exports.Paper = Paper;

//# sourceMappingURL=Paper.cjs.map