"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.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/HoverCard/HoverCard.cjs");
const Box = require("../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/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;
