import { jsx as e } from "react/jsx-runtime";
import { IconQuestionMarkCircle as a } from "@frontify/fondue-icons";
import { cloneElement as w } from "react";
import { LegacyTooltip as x } from "../LegacyTooltip/LegacyTooltip.es.js";
import { merge as v } from "../../utilities/merge.es.js";
const l = {
  Danger: "tw-text-box-negative-inverse",
  Warning: "tw-text-box-warning-inverse",
  Primary: "tw-text-text-weak",
  danger: "tw-text-box-negative-inverse",
  warning: "tw-text-box-warning-inverse",
  primary: "tw-text-text-weak"
}, s = {
  Danger: "hover:tw-text-box-negative-inverse-hover hover:tw-bg-box-neutral",
  Warning: "hover:tw-text-box-warning-inverse-hover hover:tw-bg-box-neutral",
  Primary: "hover:tw-text-text hover:tw-bg-box-neutral",
  danger: "hover:tw-text-box-negative-inverse-hover hover:tw-bg-box-neutral",
  warning: "hover:tw-text-box-warning-inverse-hover hover:tw-bg-box-neutral",
  primary: "hover:tw-text-text hover:tw-bg-box-neutral"
}, g = ({
  tooltip: t,
  iconSize: n = 16,
  triggerIcon: i = /* @__PURE__ */ e(a, {}),
  triggerStyle: r = "Primary",
  "data-test-id": o = "tooltip-icon"
}) => /* @__PURE__ */ e("div", { "data-test-id": o, children: t && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
  x,
  {
    triggerElement: /* @__PURE__ */ e(
      "button",
      {
        type: "button",
        "aria-label": "More info",
        "data-test-id": `${o}-trigger`,
        className: v([
          "tw-inline-flex tw-justify-center tw-items-center tw-cursor-default tw-outline-none tw-rounded-full focus-visible:tw-ring-focus",
          l[r],
          s[r]
        ]),
        children: w(i, { size: n })
      }
    ),
    withArrow: !0,
    ...t
  }
) }) });
g.displayName = "FondueTooltipIcon";
export {
  g as TooltipIcon
};
//# sourceMappingURL=TooltipIcon.es.js.map
