"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 factory = require("../../../core/factory/factory.cjs");
const Accordion_context = require("../Accordion.context.cjs");
const AccordionItem_context = require("../AccordionItem.context.cjs");
const Accordion_module_css = require("../Accordion.module.css.cjs");
const defaultProps = {};
const AccordionItem = factory.factory((props, ref) => {
  const { classNames, className, style, styles, vars, value, mod, ...others } = useProps.useProps(
    "AccordionItem",
    defaultProps,
    props
  );
  const ctx = Accordion_context.useAccordionContext();
  return /* @__PURE__ */ jsxRuntime.jsx(AccordionItem_context.AccordionItemProvider, { value: { value }, children: /* @__PURE__ */ jsxRuntime.jsx(
    Box.Box,
    {
      ref,
      mod: [{ active: ctx.isItemActive(value) }, mod],
      ...ctx.getStyles("item", { className, classNames, styles, style, variant: ctx.variant }),
      ...others
    }
  ) });
});
AccordionItem.displayName = "@mantine/core/AccordionItem";
AccordionItem.classes = Accordion_module_css.default;
exports.AccordionItem = AccordionItem;
