import { n as AnalyticsId } from "../../constants2.js";
import { t as usePseudoClasses } from "../../usePseudoClasses.js";
import { n as mergeRefs, t as isMutableRefObject } from "../../refs.js";
import { n as getAriaLabelAttributes } from "../../accessibility.js";
import { n as HelpTriggerIconInternal } from "../../HelpTriggerIcon.js";
import classNames from "classnames";
import { jsx, jsxs } from "react/jsx-runtime";
import styles from "./styles.module.scss";
var HelpTriggerInline = (props) => {
	const { ariaLabel, ariaLabelledById, children, className, testId, weight = "normal", ref, ...rest } = props;
	const ariaLabelAttributes = getAriaLabelAttributes({
		label: ariaLabel,
		id: ariaLabelledById
	});
	const helpTriggerInlineStyles = classNames(styles["help-trigger-inline"], className);
	const { refObject, isHovered } = usePseudoClasses(isMutableRefObject(ref) ? ref : null);
	return /* @__PURE__ */ jsxs("button", {
		"aria-label": ariaLabel,
		type: "button",
		"data-testid": testId,
		"data-analyticsid": AnalyticsId.HelpTriggerInline,
		className: helpTriggerInlineStyles,
		ref: mergeRefs([refObject, ref]),
		...ariaLabelAttributes,
		...rest,
		children: [/* @__PURE__ */ jsx("span", {
			className: styles["help-trigger-inline__text"],
			children
		}), /* @__PURE__ */ jsx(HelpTriggerIconInternal, {
			weight,
			size: "inherit",
			htmlMarkup: "span",
			isHovered
		})]
	});
};
HelpTriggerInline.displayName = "HelpTriggerInline";
var HelpTriggerInline_default = HelpTriggerInline;
export { HelpTriggerInline_default as default };

//# sourceMappingURL=index.js.map