framepexls-ui-lib 0.1.18 → 0.1.19

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/Dropdown.js CHANGED
@@ -220,7 +220,6 @@ function Content({
220
220
  (_e = items[(i - 1 + items.length) % items.length]) == null ? void 0 : _e.focus();
221
221
  }
222
222
  };
223
- if (!open) return null;
224
223
  const normalizedChildren = (0, import_react.useMemo)(() => {
225
224
  const arr = import_react.default.Children.toArray(children);
226
225
  const list = arr.map((ch) => {
@@ -264,6 +263,7 @@ function Content({
264
263
  }
265
264
  return out;
266
265
  }, [children, isAllowed, defaultHideUnauthorized]);
266
+ if (!open) return null;
267
267
  return (0, import_react_dom.createPortal)(
268
268
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
269
269
  "div",
package/dist/Dropdown.mjs CHANGED
@@ -190,7 +190,6 @@ function Content({
190
190
  (_e = items[(i - 1 + items.length) % items.length]) == null ? void 0 : _e.focus();
191
191
  }
192
192
  };
193
- if (!open) return null;
194
193
  const normalizedChildren = useMemo(() => {
195
194
  const arr = React.Children.toArray(children);
196
195
  const list = arr.map((ch) => {
@@ -234,6 +233,7 @@ function Content({
234
233
  }
235
234
  return out;
236
235
  }, [children, isAllowed, defaultHideUnauthorized]);
236
+ if (!open) return null;
237
237
  return createPortal(
238
238
  /* @__PURE__ */ jsx(
239
239
  "div",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framepexls-ui-lib",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "Componentes UI de Framepexls para React/Next.",