/**
 * 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.
 */

const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_index = require("../../../node_modules/classnames/index.js");
const require_settings = require("../../../settings.js");
const require_devtools = require("../../../global/js/utils/devtools.js");
const require_FilterPanelGroup = require("../FilterPanelGroup/FilterPanelGroup.js");
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
prop_types = require_runtime.__toESM(prop_types);
let _carbon_react = require("@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__ */ require_runtime.__toESM(require_index.default);
const blockClass = `${require_settings.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.default.forwardRef(({ accordionProps = defaults.accordionProps, children, className, count, labelText, title, ...rest }, ref) => {
	const { align, ...otherAccordionProps } = accordionProps;
	return /* @__PURE__ */ react.default.createElement(require_FilterPanelGroup.FilterPanelGroup, {
		...rest,
		className: (0, import_classnames.default)(blockClass, className),
		count,
		labelText,
		ref,
		title,
		...require_devtools.getDevtoolsProps(componentName)
	}, /* @__PURE__ */ react.default.createElement(_carbon_react.Accordion, {
		...otherAccordionProps,
		align: align || "start",
		className: `${blockClass}__list`
	}, children));
});
FilterPanelAccordion.deprecated = {
	level: "warn",
	details: `This component is deprecated`
};
FilterPanelAccordion = require_settings.pkg.checkComponentEnabled(FilterPanelAccordion, componentName);
FilterPanelAccordion.displayName = componentName;
FilterPanelAccordion.propTypes = {
	/**
	* Props specific to the internal `Accordion` component.
	*/
	accordionProps: prop_types.default.shape({}),
	/**
	* Provide the contents of the FilterPanelAccordion.
	*/
	children: prop_types.default.node.isRequired,
	/**
	* Optional class to be applied to the containing node.
	*/
	className: prop_types.default.string,
	/**
	* Number to be displayed with the label.
	*/
	count: prop_types.default.oneOfType([prop_types.default.number, prop_types.default.string]),
	/**
	* The label for the component.
	*/
	labelText: prop_types.default.node.isRequired,
	/**
	* Optional title attribute for the label.
	*/
	title: prop_types.default.string
};
//#endregion
Object.defineProperty(exports, "FilterPanelAccordion", {
	enumerable: true,
	get: function() {
		return FilterPanelAccordion;
	}
});
