/**
 * 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 { FilterPanelLabel } from "../FilterPanelLabel/FilterPanelLabel.js";
import React from "react";
import PropTypes from "prop-types";
//#region src/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.jsx
/**
* Copyright IBM Corp. 2024, 2024
*
* 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-group`;
const componentName = "FilterPanelGroup";
/**
* A container with a label and optional count.
* @deprecated This component is deprecated
*/
let FilterPanelGroup = React.forwardRef(({ children, className, count, labelText, title, ...rest }, ref) => {
	return /* @__PURE__ */ React.createElement("div", {
		...rest,
		className: (0, import_classnames.default)(blockClass, className),
		ref,
		...getDevtoolsProps(componentName)
	}, labelText && /* @__PURE__ */ React.createElement("h2", { className: `${blockClass}__title` }, /* @__PURE__ */ React.createElement(FilterPanelLabel, {
		count,
		labelText,
		title
	})), /* @__PURE__ */ React.createElement("div", { className: `${blockClass}__content` }, children));
});
FilterPanelGroup.deprecated = {
	level: "warn",
	details: `This component is deprecated`
};
FilterPanelGroup = pkg.checkComponentEnabled(FilterPanelGroup, componentName);
FilterPanelGroup.displayName = componentName;
FilterPanelGroup.propTypes = {
	/**
	* Provide the contents of the FilterPanelGroup.
	*/
	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 { FilterPanelGroup };
