/**
 * 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_devtools = require('../../global/js/utils/devtools.js');
const require_props_helper = require('../../global/js/utils/props-helper.js');
const require_AddSelect = require('../AddSelect/AddSelect.js');
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
prop_types = require_runtime.__toESM(prop_types);

//#region src/components/SingleAddSelect/SingleAddSelect.tsx
const componentName = "SingleAddSelect";
/**
* Used to add or select one or more items from larger lists or hierarchies.
*/
const SingleAddSelect = (0, react.forwardRef)((props, ref) => {
	const validProps = require_props_helper.prepareProps(props, [
		"columnInputPlaceholder",
		"globalFilters",
		"globalFiltersIconDescription",
		"globalFiltersPlaceholderText",
		"globalFiltersPrimaryButtonText",
		"globalFiltersSecondaryButtonText",
		"influencerTitle",
		"multi",
		"noSelectionDescription",
		"noSelectionTitle",
		"removeIconDescription"
	]);
	return /* @__PURE__ */ react.default.createElement(require_AddSelect.AddSelect, {
		...validProps,
		ref,
		...require_devtools.getDevtoolsProps(componentName),
		multi: false
	});
});
SingleAddSelect.propTypes = {
	className: prop_types.default.string,
	description: prop_types.default.string,
	globalSearchLabel: prop_types.default.string,
	globalSearchPlaceholder: prop_types.default.string,
	items: prop_types.default.shape({ entries: prop_types.default.arrayOf(prop_types.default.shape({
		children: prop_types.default.object,
		id: prop_types.default.string.isRequired,
		title: prop_types.default.string.isRequired,
		value: prop_types.default.string.isRequired
	})) }),
	itemsLabel: prop_types.default.string,
	noResultsDescription: prop_types.default.string,
	noResultsTitle: prop_types.default.string,
	noTearsheet: prop_types.default.bool,
	onClose: prop_types.default.func,
	onCloseButtonText: prop_types.default.string,
	onSubmit: prop_types.default.func,
	onSubmitButtonText: prop_types.default.string,
	open: prop_types.default.bool,
	searchResultsLabel: prop_types.default.string,
	title: prop_types.default.string
};
SingleAddSelect.displayName = componentName;

//#endregion
exports.SingleAddSelect = SingleAddSelect;