/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

import { __toESM } from "../../../_virtual/_rolldown/runtime.js";
import { require_classnames } from "../../../node_modules/classnames/index.js";
import { pkg } from "../../../settings.js";
import { getDevtoolsProps } from "../../../global/js/utils/devtools.js";
import { FilterPanelGroup } from "../FilterPanelGroup/FilterPanelGroup.js";
import React from "react";
import PropTypes from "prop-types";
import { Accordion } from "@carbon/react";
//#region src/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.jsx
/**
* Copyright IBM Corp. 2024, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
const blockClass = `${pkg.prefix}--filter-panel-accordion`;
const componentName = "FilterPanelAccordion";
const defaults = { accordionProps: {} };
/**
* A container with a label and optional count.
* @deprecated This component is deprecated
*/
let FilterPanelAccordion = React.forwardRef(({ accordionProps = defaults.accordionProps, children, className, count, labelText, title, ...rest }, ref) => {
	const { align, ...otherAccordionProps } = accordionProps;
	return /* @__PURE__ */ React.createElement(FilterPanelGroup, {
		...rest,
		className: (0, import_classnames.default)(blockClass, className),
		count,
		labelText,
		ref,
		title,
		...getDevtoolsProps(componentName)
	}, /* @__PURE__ */ React.createElement(Accordion, {
		...otherAccordionProps,
		align: align || "start",
		className: `${blockClass}__list`
	}, children));
});
FilterPanelAccordion.deprecated = {
	level: "warn",
	details: `This component is deprecated`
};
FilterPanelAccordion = pkg.checkComponentEnabled(FilterPanelAccordion, componentName);
FilterPanelAccordion.displayName = componentName;
FilterPanelAccordion.propTypes = {
	/**
	* Props specific to the internal `Accordion` component.
	*/
	accordionProps: PropTypes.shape({}),
	/**
	* Provide the contents of the FilterPanelAccordion.
	*/
	children: PropTypes.node.isRequired,
	/**
	* Optional class to be applied to the containing node.
	*/
	className: PropTypes.string,
	/**
	* Number to be displayed with the label.
	*/
	count: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
	/**
	* The label for the component.
	*/
	labelText: PropTypes.node.isRequired,
	/**
	* Optional title attribute for the label.
	*/
	title: PropTypes.string
};
//#endregion
export { FilterPanelAccordion };
