@undp/design-system-react
Version:
React based design system for UNDP
27 lines (26 loc) • 965 B
JavaScript
import { t as e } from "./utils-ca9as9Ye.js";
import { t } from "./dist-jqIPNHDe.js";
import * as n from "react";
import r from "react";
import { jsx as i } from "react/jsx-runtime";
//#region node_modules/@radix-ui/react-label/dist/index.mjs
var a = Object.defineProperty, o = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ ((e, t) => a(e, "name", {
value: t,
configurable: !0
}))(function(e, n) {
return /* @__PURE__ */ i(t.label, {
...e,
ref: n,
onMouseDown: (t) => {
t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
}
});
}, "Label")), s = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ i(o, {
...n,
ref: r,
className: e("m-0 block p-0 text-content-primary text-sm peer-disabled:cursor-not-allowed peer-disabled:opacity-disabled", t)
}));
s.displayName = o.displayName;
//#endregion
export { s as t };
//# sourceMappingURL=label-NHR9EVmO.js.map