/**
 * 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_FilterPanelLabel = require('../FilterPanelLabel/FilterPanelLabel.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/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__ */ require_runtime.__toESM(require_index.default);
const blockClass = `${require_settings.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.default.forwardRef(({ className, count, id, labelText, title, ...rest }, ref) => {
	return /* @__PURE__ */ react.default.createElement(_carbon_react.Checkbox, {
		...rest,
		className: (0, import_classnames.default)(blockClass, className),
		id,
		labelText: /* @__PURE__ */ react.default.createElement(require_FilterPanelLabel.FilterPanelLabel, {
			count,
			labelText,
			title
		}),
		ref,
		...require_devtools.getDevtoolsProps(componentName)
	});
});
FilterPanelCheckbox.deprecated = {
	level: "warn",
	details: `This component is deprecated`
};
FilterPanelCheckbox = require_settings.pkg.checkComponentEnabled(FilterPanelCheckbox, componentName);
FilterPanelCheckbox.displayName = componentName;
FilterPanelCheckbox.propTypes = {
	className: prop_types.default.string,
	count: prop_types.default.oneOfType([prop_types.default.number, prop_types.default.string]),
	id: prop_types.default.string.isRequired,
	labelText: prop_types.default.node.isRequired,
	title: prop_types.default.string
};

//#endregion
Object.defineProperty(exports, 'FilterPanelCheckbox', {
  enumerable: true,
  get: function () {
    return FilterPanelCheckbox;
  }
});