@undp/design-system-react
Version:
React based design system for UNDP
22 lines (21 loc) • 710 B
JavaScript
import { t as e } from "./dist-jqIPNHDe.js";
import { t } from "./dist-BKfyhBSH.js";
import * as n from "react";
import { jsx as r } from "react/jsx-runtime";
import * as i from "react-dom";
//#region node_modules/@radix-ui/react-portal/dist/index.mjs
var a = Object.defineProperty, o = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ ((e, t) => a(e, "name", {
value: t,
configurable: !0
}))(function(a, o) {
let { container: s, ...c } = a, [l, u] = n.useState(!1);
t(() => u(!0), []);
let d = s || l && globalThis?.document?.body;
return d ? i.createPortal(/* @__PURE__ */ r(e.div, {
...c,
ref: o
}), d) : null;
}, "Portal"));
//#endregion
export { o as t };
//# sourceMappingURL=dist-vWm-kLzq.js.map