/**
 * 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 React, { forwardRef } from "react";
import PropTypes from "prop-types";
import { Button } from "@carbon/react";
//#region src/components/Coachmark/next/Coachmark/CoachmarkBeacon/CoachmarkBeacon.tsx
/**
* Copyright IBM Corp. 2024, 2025
*
* 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}--coachmark-beacon`;
const componentName = "CoachmarkBeacon";
/**
* Use beacon for the target prop of a Coachmark component.
*/
const CoachmarkBeacon = forwardRef((props, ref) => {
	const { label, className, kind = "default", buttonProps, ...rest } = props;
	return /* @__PURE__ */ React.createElement("div", {
		className: (0, import_classnames.default)(blockClass, `${blockClass}-${kind}`, className),
		...getDevtoolsProps(componentName),
		...rest,
		ref
	}, /* @__PURE__ */ React.createElement("button", {
		type: "button",
		...buttonProps,
		className: `${blockClass}__target`,
		"aria-label": label
	}, /* @__PURE__ */ React.createElement("svg", {
		className: `${blockClass}__center`,
		"aria-hidden": "true",
		focusable: "false"
	}, /* @__PURE__ */ React.createElement("circle", {
		r: 1,
		cx: 38,
		cy: 38
	}))));
});
CoachmarkBeacon.displayName = componentName;
CoachmarkBeacon.propTypes = {
	/**
	* button props
	*/
	buttonProps: PropTypes.shape({
		/**@ts-ignore*/
		...Button.propTypes,
		/**@ts-ignore*/
		id: PropTypes.string,
		onClick: PropTypes.func,
		onDoubleClick: PropTypes.func,
		tabIndex: PropTypes.number,
		["aria-expanded"]: PropTypes.bool
	}),
	/**
	* Optional class name for this component.
	*/
	className: PropTypes.string,
	/**
	* What style of beacon.
	* BEACON_KIND is an exported enum from the Coachmark and can be used for this value.
	* @see {@link BEACON_KIND}
	*/
	kind: PropTypes.oneOf(["default"]),
	/**
	* The aria label.
	*/
	label: PropTypes.string.isRequired
};
//#endregion
export { CoachmarkBeacon };
