"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const index = require("../../icons/index.cjs");
;/* empty css                                                                                                                                                                                        */
;/* empty css                                                                                                                                                                                         */
;/* empty css                                                                                                                                                                                                 */
;/* empty css                                                                                                                                                                                            */
;/* empty css                                                                                                                                                                                            */
const index$1 = require("../../primitive/Typography/index.cjs");
const HoverCard = require("../../node_modules/.pnpm/@mantine_core@7.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/node_modules/@mantine/core/esm/components/HoverCard/HoverCard.cjs");
const Box = require("../../node_modules/.pnpm/@mantine_core@7.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/node_modules/@mantine/core/esm/core/Box/Box.cjs");
function LabelTooltip({ label, ...rest }) {
  return /* @__PURE__ */ jsxRuntime.jsxs(HoverCard.HoverCard, { shadow: "md", withArrow: true, withinPortal: true, position: "top", ...rest, children: [
    /* @__PURE__ */ jsxRuntime.jsx(HoverCard.HoverCard.Target, { children: /* @__PURE__ */ jsxRuntime.jsx(Box.Box, { sx: { marginLeft: 8, verticalAlign: "middle", position: "relative", top: 1 }, component: "span", children: /* @__PURE__ */ jsxRuntime.jsx(index.IconInfoCircle, { cursor: "pointer", size: 14, color: "carbon.8" }) }) }),
    /* @__PURE__ */ jsxRuntime.jsx(HoverCard.HoverCard.Dropdown, { maw: 480, children: /* @__PURE__ */ jsxRuntime.jsx(index$1.Typography, { variant: "body-lg", children: label }) })
  ] });
}
exports.LabelTooltip = LabelTooltip;
