@nivaro/react 0.3.115 → 0.3.117
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/shared/components/CollectionBrowserView.js +3815 -3576
- package/dist/shared/components/DataTable.js +611 -551
- package/dist/shared/components/OverflowRail.js +326 -0
- package/dist/shared/components/ReportView.js +1086 -1091
- package/dist/shared/components/TipLayer.js +8 -8
- package/dist/shared/components/cbv/column-totals.js +62 -57
- package/dist/shared/components/charts/category-axis.js +93 -0
- package/dist/shared/components/integrations/console/SignalCard.js +84 -77
- package/dist/shared/components/list/PhonePager.js +50 -0
- package/dist/shared/components/notifications/NotificationCenterView.js +67 -68
- package/dist/shared/components/pipeline/BindingStartStateSettings.js +163 -0
- package/dist/shared/components/pipeline/PipelineEditorView.js +1515 -1475
- package/dist/shared/components/queue/OwnerAvatars.js +9 -9
- package/dist/shared/components/queue/QueueWorklist.js +2016 -1851
- package/dist/shared/components/queue/worklist-helpers.js +10 -6
- package/dist/shared/components/ui/popover.js +53 -29
- package/dist/shared/lib/keep-row-focus.js +43 -0
- package/dist/shared/lib/obligation-banner.js +17 -17
- package/dist/shared/lib/rail-menu-context.js +9 -0
- package/dist/shared/lib/row-surface.js +7 -0
- package/dist/shared/lib/table-pins.js +20 -18
- package/dist/shared/lib/upload-file.js +48 -19
- package/dist/shared/lib/upload-presence.js +33 -33
- package/dist/shared/lib/use-below-md.js +29 -0
- package/dist/shared/lib/use-query-entry.js +17 -0
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as x } from "react";
|
|
3
3
|
import { cn as l } from "../../lib/utils.js";
|
|
4
4
|
import { UserAvatar as h } from "../UserAvatar.js";
|
|
5
5
|
import { Popover as b, PopoverTrigger as v, PopoverContent as k } from "../ui/popover.js";
|
|
6
|
-
const
|
|
6
|
+
const p = {
|
|
7
7
|
suspended: "suspended",
|
|
8
8
|
former: "former user"
|
|
9
9
|
};
|
|
10
10
|
function N(e) {
|
|
11
|
-
return e.inactive ? `${e.name} (${
|
|
11
|
+
return e.inactive ? `${e.name} (${p[e.inactive]})` : e.name;
|
|
12
12
|
}
|
|
13
13
|
function f({ owner: e }) {
|
|
14
14
|
return e.inactive ? /* @__PURE__ */ a(
|
|
@@ -16,7 +16,7 @@ function f({ owner: e }) {
|
|
|
16
16
|
{
|
|
17
17
|
"data-owner-inactive": e.inactive,
|
|
18
18
|
className: "ml-1 shrink-0 rounded bg-slate-100 px-1 py-px text-[10px] font-medium text-slate-600 dark:bg-muted dark:text-slate-300",
|
|
19
|
-
children:
|
|
19
|
+
children: p[e.inactive]
|
|
20
20
|
}
|
|
21
21
|
) : null;
|
|
22
22
|
}
|
|
@@ -83,11 +83,11 @@ function T({
|
|
|
83
83
|
max: n = 4,
|
|
84
84
|
emptyLabel: r = "No owners"
|
|
85
85
|
}) {
|
|
86
|
-
const [
|
|
86
|
+
const [g, m] = x(!1);
|
|
87
87
|
if (e.length === 0)
|
|
88
|
-
return /* @__PURE__ */ a("span", { className: "text-[12px] text-slate-300 dark:text-muted-foreground", children: r });
|
|
88
|
+
return /* @__PURE__ */ a("span", { "data-cell-empty": !0, className: "text-[12px] text-slate-300 dark:text-muted-foreground", children: r });
|
|
89
89
|
const c = e.slice(0, n), s = e.length - c.length;
|
|
90
|
-
return /* @__PURE__ */ i(b, { open:
|
|
90
|
+
return /* @__PURE__ */ i(b, { open: g, onOpenChange: m, children: [
|
|
91
91
|
/* @__PURE__ */ a(v, { asChild: !0, children: /* @__PURE__ */ i(
|
|
92
92
|
"button",
|
|
93
93
|
{
|
|
@@ -97,11 +97,11 @@ function T({
|
|
|
97
97
|
className: "group/owners flex items-center rounded-full focus:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan",
|
|
98
98
|
children: [
|
|
99
99
|
/* @__PURE__ */ i("span", { className: "flex items-center transition-[gap]", children: [
|
|
100
|
-
c.map((t,
|
|
100
|
+
c.map((t, u) => /* @__PURE__ */ a(
|
|
101
101
|
d,
|
|
102
102
|
{
|
|
103
103
|
owner: t,
|
|
104
|
-
className: l(
|
|
104
|
+
className: l(u > 0 && "-ml-1.5", t.inactive && "opacity-50 grayscale")
|
|
105
105
|
},
|
|
106
106
|
t.id
|
|
107
107
|
)),
|