@insforge/react 1.0.9-dev.2 → 1.0.9-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.cjs +3 -1
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +2 -1
- package/dist/components.d.ts +2 -1
- package/dist/components.js +3 -1
- package/dist/components.js.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -19,6 +19,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
19
19
|
var react = require('@insforge/shared/react');
|
|
20
20
|
var lucideReact = require('lucide-react');
|
|
21
21
|
var zod = require('zod');
|
|
22
|
+
var reactDom = require('react-dom');
|
|
22
23
|
|
|
23
24
|
function _interopNamespace(e) {
|
|
24
25
|
if (e && e.__esModule) return e;
|
|
@@ -5514,7 +5515,7 @@ function UserProfileModal({ onClose, onError }) {
|
|
|
5514
5515
|
return null;
|
|
5515
5516
|
}
|
|
5516
5517
|
const initials = user.profile?.name ? user.profile.name.charAt(0).toUpperCase() : user.email.split("@")[0].slice(0, 2).toUpperCase();
|
|
5517
|
-
|
|
5518
|
+
const modalContent = /* @__PURE__ */ jsxRuntime.jsx(ProfileModalOverlay, { onClick: handleOverlayClick, children: /* @__PURE__ */ jsxRuntime.jsxs(ProfileModalContainer, { onClick: (e) => e.stopPropagation(), children: [
|
|
5518
5519
|
/* @__PURE__ */ jsxRuntime.jsxs(ProfileModalHeader, { children: [
|
|
5519
5520
|
/* @__PURE__ */ jsxRuntime.jsx(ProfileModalTitle, { children: "Profile" }),
|
|
5520
5521
|
/* @__PURE__ */ jsxRuntime.jsx(ProfileModalCloseButton, { onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, {}) })
|
|
@@ -5556,6 +5557,7 @@ function UserProfileModal({ onClose, onError }) {
|
|
|
5556
5557
|
] })
|
|
5557
5558
|
] }) : /* @__PURE__ */ jsxRuntime.jsx(ProfileButton, { $primary: true, onClick: () => setIsEditing(true), children: "Edit Profile" }) })
|
|
5558
5559
|
] }) });
|
|
5560
|
+
return reactDom.createPortal(modalContent, document.body);
|
|
5559
5561
|
}
|
|
5560
5562
|
function UserButton({
|
|
5561
5563
|
afterSignOutUrl = "/",
|