@nivaro/react 0.3.22 → 0.3.24

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.
@@ -1,5 +1,5 @@
1
1
  import { jsxs as c, jsx as a, Fragment as x } from "react/jsx-runtime";
2
- import { Children as f, useState as p, useEffect as g } from "react";
2
+ import { useState as f, useEffect as p, Children as g } from "react";
3
3
  import { useNavigation as b } from "../../context.js";
4
4
  import { cn as o } from "../../lib/utils.js";
5
5
  import { UserAvatar as k } from "../UserAvatar.js";
@@ -121,8 +121,8 @@ function P({
121
121
  title: l,
122
122
  disabled: s
123
123
  }) {
124
- const [i, m] = p(!1);
125
- return g(() => {
124
+ const [i, m] = f(!1);
125
+ return p(() => {
126
126
  if (!i) return;
127
127
  const u = window.setTimeout(() => m(!1), 3e3);
128
128
  return () => window.clearTimeout(u);
@@ -148,7 +148,7 @@ function T({ label: e, children: t }) {
148
148
  ] });
149
149
  }
150
150
  function B({ children: e, cols: t = 3 }) {
151
- const r = f.toArray(e).filter(Boolean).length, n = t === 3 ? 6 : t, d = (n - r % n) % n;
151
+ const r = g.toArray(e).filter(Boolean).length, n = t === 3 ? 6 : t, d = (n - r % n) % n;
152
152
  return /* @__PURE__ */ c(
153
153
  "div",
154
154
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nivaro/react",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
4
4
  "description": "React hooks and components for Nivaro CMS forms",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",