@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
31 lines (30 loc) • 754 B
JavaScript
import { jsx as o } from "react/jsx-runtime";
import { c as l } from "./index-2NvaPZWc.mjs";
import * as m from "react";
import { P as n } from "./index-WWNfSPCj.mjs";
var s = "Label", i = m.forwardRef((e, a) => /* @__PURE__ */ o(
n.label,
{
...e,
ref: a,
onMouseDown: (t) => {
var r;
t.target.closest("button, input, select, textarea") || ((r = e.onMouseDown) == null || r.call(e, t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
}
}
));
i.displayName = s;
var d = i;
const g = ({ className: e, ...a }) => /* @__PURE__ */ o(
d,
{
className: l(
"text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
e
),
...a
}
);
export {
g as L
};