/**
 * 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_context = require("./utils/context.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");
let _carbon_react_icons = require("@carbon/react/icons");
//#region src/components/Coachmark/CoachmarkTagline.tsx
/**
* Copyright IBM Corp. 2023, 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__ */ require_runtime.__toESM(require_index.default);
const blockClass = `${require_settings.pkg.prefix}--coachmark-tagline`;
const componentName = "CoachmarkTagline";
const defaults = {
	onClose: () => {},
	theme: "light",
	closeIconDescription: "Close"
};
/**
* DO NOT USE. This component is for the exclusive use
* of other Onboarding components.
* @deprecated This component is deprecated.
*/
const CoachmarkTagline = react.default.forwardRef(({ closeIconDescription = defaults.closeIconDescription, onClose = defaults.onClose, theme = defaults.theme, title, ...rest }, ref) => {
	const coachmark = require_context.useCoachmark();
	const contextCloseIconDescription = require_context.useCoachmark()?.closeIconDescription;
	const closeIconDesc = closeIconDescription ?? contextCloseIconDescription;
	return /* @__PURE__ */ react.default.createElement("div", {
		...rest,
		className: (0, import_classnames.default)(blockClass, `${blockClass}__${theme}`, coachmark?.isOpen && `${blockClass}--is-open`),
		ref,
		...require_devtools.getDevtoolsProps(componentName)
	}, /* @__PURE__ */ react.default.createElement("button", {
		className: `${blockClass}__cta`,
		type: "button",
		...coachmark?.buttonProps
	}, /* @__PURE__ */ react.default.createElement("div", { className: `${blockClass}__idea` }, /* @__PURE__ */ react.default.createElement(_carbon_react_icons.Idea, { size: 16 })), /* @__PURE__ */ react.default.createElement("div", null, title)), /* @__PURE__ */ react.default.createElement("div", { className: `${blockClass}--close-btn-container` }, /* @__PURE__ */ react.default.createElement(_carbon_react.Button, {
		kind: "ghost",
		size: "sm",
		renderIcon: _carbon_react_icons.Close,
		iconDescription: closeIconDesc,
		hasIconOnly: true,
		className: `${blockClass}--close-btn`,
		onClick: onClose
	})));
});
/**@ts-ignore*/
CoachmarkTagline.deprecated = {
	level: "warn",
	details: `${componentName} is deprecated.`
};
CoachmarkTagline.displayName = componentName;
CoachmarkTagline.propTypes = {
	/**
	* Tooltip text and aria label for the Close button icon.
	*/
	closeIconDescription: prop_types.default.string,
	/**
	* Function to call when the close button is clicked.
	*/
	onClose: prop_types.default.func,
	/**
	* Determines the theme of the component.
	*/
	theme: prop_types.default.oneOf(["light", "dark"]),
	/**
	* The title of the tagline.
	*/
	title: prop_types.default.string.isRequired
};
//#endregion
exports.CoachmarkTagline = CoachmarkTagline;
