/**
 * 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";
import { Checkbox } from "@carbon/react";
//#region src/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.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-checkbox`;
const componentName = "FilterPanelCheckbox";
/**
* Provides a checkbox, label, and count.
*
* This component is returning Carbon's Checkbox.
*
* All of Carbon Checkbox's props are directly available
* through "...rest", including id, onClick, etc.
* @deprecated This component is deprecated
*/
let FilterPanelCheckbox = React.forwardRef(({ className, count, id, labelText, title, ...rest }, ref) => {
	return /* @__PURE__ */ React.createElement(Checkbox, {
		...rest,
		className: (0, import_classnames.default)(blockClass, className),
		id,
		labelText: /* @__PURE__ */ React.createElement(FilterPanelLabel, {
			count,
			labelText,
			title
		}),
		ref,
		...getDevtoolsProps(componentName)
	});
});
FilterPanelCheckbox.deprecated = {
	level: "warn",
	details: `This component is deprecated`
};
FilterPanelCheckbox = pkg.checkComponentEnabled(FilterPanelCheckbox, componentName);
FilterPanelCheckbox.displayName = componentName;
FilterPanelCheckbox.propTypes = {
	/**
	* Optional class to be applied to the containing node.
	*/
	className: PropTypes.string,
	/**
	* Number to be displayed with the checkbox.
	*/
	count: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
	/**
	* Unique identifier.
	*/
	id: PropTypes.string.isRequired,
	/**
	* Label to be displayed with the checkbox.
	*/
	labelText: PropTypes.node.isRequired,
	/**
	* Optional title attribute for the label.
	*/
	title: PropTypes.string
};
//#endregion
export { FilterPanelCheckbox };
