import { jsx as r } from "react/jsx-runtime";
import { a as l } from "./index-BmAFn37q.mjs";
import * as d from "react";
import { P as c } from "./index-MSR-vgWR.mjs";
var m = "Label", o = d.forwardRef((e, t) => /* @__PURE__ */ r(
  c.label,
  {
    ...e,
    ref: t,
    onMouseDown: (a) => {
      a.target.closest("button, input, select, textarea") || (e.onMouseDown?.(a), !a.defaultPrevented && a.detail > 1 && a.preventDefault());
    }
  }
));
o.displayName = m;
var L = o;
const n = ({ className: e, ref: t, ...a }) => /* @__PURE__ */ r(
  o,
  {
    ref: t,
    "data-spark-component": "label",
    className: l("text-body-1", e),
    ...a
  }
);
n.displayName = "Label";
const i = ({
  className: e,
  children: t = "*",
  ref: a,
  ...s
}) => /* @__PURE__ */ r(
  "span",
  {
    ref: a,
    "data-spark-component": "label-required-indicator",
    role: "presentation",
    "aria-hidden": "true",
    className: l(e, "text-caption text-on-surface/dim-1"),
    ...s,
    children: t
  }
);
i.displayName = "Label.RequiredIndicator";
const p = Object.assign(n, {
  RequiredIndicator: i
});
p.displayName = "Label";
i.displayName = "Label.RequiredIndicator";
export {
  p as L,
  L as R
};
//# sourceMappingURL=index-C34GgsKQ.mjs.map
