"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
require("react");
require("clsx");
const useProps = require("../../../core/MantineProvider/use-props/use-props.cjs");
const Box = require("../../../core/Box/Box.cjs");
const polymorphicFactory = require("../../../core/factory/polymorphic-factory.cjs");
const Card_context = require("../Card.context.cjs");
const Card_module_css = require("../Card.module.css.cjs");
const defaultProps = {};
const CardSection = polymorphicFactory.polymorphicFactory((_props, ref) => {
  const props = useProps.useProps("CardSection", defaultProps, _props);
  const { classNames, className, style, styles, vars, withBorder, inheritPadding, mod, ...others } = props;
  const ctx = Card_context.useCardContext();
  return /* @__PURE__ */ jsxRuntime.jsx(
    Box.Box,
    {
      ref,
      mod: [{ "with-border": withBorder, "inherit-padding": inheritPadding }, mod],
      ...ctx.getStyles("section", { className, style, styles, classNames }),
      ...others
    }
  );
});
CardSection.classes = Card_module_css.default;
CardSection.displayName = "@mantine/core/CardSection";
exports.CardSection = CardSection;
