@particle-academy/react-fancy 4.4.3 → 4.4.4

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/README.md CHANGED
@@ -303,3 +303,9 @@ Purely visual primitives (labels, dividers, layout shells) only owe the first bu
303
303
  - `react`, `react-dom`, and `lucide-react` are external dependencies, never bundled.
304
304
  - After any change, verify with `pnpm --filter @particle-academy/react-fancy build` before considering the work done.
305
305
  - When updating a component, update its demo page in `resources/js/react-demos/pages/` to cover all new features.
306
+
307
+ ---
308
+
309
+ ## ⭐ Star Fancy UI
310
+
311
+ If this package is useful to you, a quick ⭐ on the repo really helps us build a better kit. Thank you!
package/dist/index.cjs CHANGED
@@ -3233,7 +3233,11 @@ var Textarea = react.forwardRef(
3233
3233
  );
3234
3234
  Textarea.displayName = "Textarea";
3235
3235
  function Portal({ children, container }) {
3236
- if (typeof document === "undefined") return null;
3236
+ const [mounted, setMounted] = react.useState(false);
3237
+ react.useEffect(() => {
3238
+ setMounted(true);
3239
+ }, []);
3240
+ if (!mounted || typeof document === "undefined") return null;
3237
3241
  const target = container ?? document.body;
3238
3242
  return reactDom.createPortal(
3239
3243
  /* @__PURE__ */ jsxRuntime.jsx(PortalDarkWrapper, { children }),