/**
 * 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_settings = require('../../settings.js');
const require_devtools = require('../../global/js/utils/devtools.js');
const require_props_helper = require('../../global/js/utils/props-helper.js');
const require_DecoratorBase = require('../DecoratorBase/DecoratorBase.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/DecoratorDualButton/DecoratorDualButton.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.
*/
const componentName = "DecoratorDualButton";
/**
* The DecoratorDualButton groups a key/value pair where the key and value each behave like a button.
* @deprecated This component is deprecated
*/
let DecoratorDualButton = react.default.forwardRef((props, ref) => {
	const validProps = require_props_helper.prepareProps(props, [
		"href",
		"kind",
		"onClick",
		"onContextMenu"
	]);
	return /* @__PURE__ */ react.default.createElement(require_DecoratorBase.DecoratorBase, {
		ref,
		...validProps,
		kind: "dual-button",
		...require_devtools.getDevtoolsProps(componentName)
	});
});
DecoratorDualButton.deprecated = {
	level: "warn",
	details: `This component is deprecated`
};
DecoratorDualButton = require_settings.pkg.checkComponentEnabled(DecoratorDualButton, componentName);
DecoratorDualButton.displayName = componentName;
DecoratorDualButton.propTypes = {
	className: prop_types.default.string,
	disabled: prop_types.default.bool,
	hideIcon: prop_types.default.bool,
	label: prop_types.default.string,
	onClickLabel: prop_types.default.func,
	onClickValue: prop_types.default.func,
	onContextMenuLabel: prop_types.default.func,
	onContextMenuValue: prop_types.default.func,
	score: prop_types.default.number,
	scoreThresholds: prop_types.default.arrayOf(prop_types.default.number),
	setLabelTitle: prop_types.default.func,
	small: prop_types.default.bool,
	theme: prop_types.default.oneOf(["light", "dark"]),
	truncateValue: prop_types.default.oneOfType([prop_types.default.oneOf(["end", "start"]), prop_types.default.shape({
		maxLength: prop_types.default.number,
		front: prop_types.default.number,
		back: prop_types.default.number
	})]),
	value: prop_types.default.string.isRequired,
	valueTitle: prop_types.default.string
};

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