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