@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.
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/shared/components/ProfileView.js +555 -520
- package/dist/shared/components/item-edit/CompareSeries.js +92 -90
- package/dist/shared/components/notifications/DeliveryChips.js +27 -17
- package/dist/shared/components/profile/TeamsConnect.js +71 -0
- package/dist/shared/components/profile/primitives.js +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as c, jsx as a, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
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] =
|
|
125
|
-
return
|
|
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 =
|
|
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
|
{
|