/**
 * 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 from "react";
import PropTypes from "prop-types";
import { Button } from "@carbon/react";
import { Close, Idea } from "@carbon/react/icons";
//#region src/components/Coachmark/next/Coachmark/CoachmarkTagline/CoachmarkTagline.tsx
/**
* Copyright IBM Corp. 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-tagline`;
const componentName = "CoachmarkTagline";
const defaults = {
	onClose: () => {},
	closeIconDescription: "Close"
};
/**
* DO NOT USE. This component is for the exclusive use
* of other Onboarding components.
*/
const CoachmarkTagline = React.forwardRef(({ closeIconDescription = defaults.closeIconDescription, onClose = defaults.onClose, title, buttonProps, isOpen, className, ...rest }, ref) => {
	return /* @__PURE__ */ React.createElement("div", {
		...rest,
		className: (0, import_classnames.default)(blockClass, isOpen && `${blockClass}--is-open`, className),
		ref,
		...getDevtoolsProps(componentName)
	}, /* @__PURE__ */ React.createElement("button", {
		className: `${blockClass}__cta`,
		type: "button",
		...buttonProps
	}, /* @__PURE__ */ React.createElement("div", {
		className: `${blockClass}__idea`,
		"aria-hidden": "true"
	}, /* @__PURE__ */ React.createElement(Idea, { size: 16 })), /* @__PURE__ */ React.createElement("div", null, title)), /* @__PURE__ */ React.createElement("div", { className: `${blockClass}--close-btn-container` }, /* @__PURE__ */ React.createElement(Button, {
		kind: "ghost",
		size: "sm",
		renderIcon: Close,
		iconDescription: closeIconDescription,
		hasIconOnly: true,
		className: `${blockClass}--close-btn`,
		onClick: onClose
	})));
});
CoachmarkTagline.displayName = componentName;
CoachmarkTagline.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,
	/**
	* Tooltip text and aria label for the Close button icon.
	*/
	closeIconDescription: PropTypes.string,
	/**
	* Function to call when the close button is clicked.
	*/
	onClose: PropTypes.func,
	/**
	* The title of the tagline.
	*/
	title: PropTypes.string.isRequired
};
//#endregion
export { CoachmarkTagline };
