@nivaro/react 0.3.117 → 0.3.119
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 +136 -14
- package/dist/index.js +488 -485
- package/dist/shared/components/ActivityEntry.js +130 -125
- package/dist/shared/components/AgentPresenceChip.js +36 -26
- package/dist/shared/components/CellCopyLayer.js +50 -45
- package/dist/shared/components/CollectionBrowserView.js +3757 -3695
- package/dist/shared/components/FilePreviewLightbox.js +96 -58
- package/dist/shared/components/InStep.js +18 -17
- package/dist/shared/components/ItemEditForm.js +4451 -4385
- package/dist/shared/components/JobsTray.js +8 -8
- package/dist/shared/components/LiveNewMatchesPill.js +21 -14
- package/dist/shared/components/LiveOffNote.js +3 -2
- package/dist/shared/components/LiveRowMark.js +53 -23
- package/dist/shared/components/LiveTraceView.js +162 -123
- package/dist/shared/components/MyWorkView.js +320 -299
- package/dist/shared/components/NotificationBell.js +14 -14
- package/dist/shared/components/OverflowRail.js +1 -1
- package/dist/shared/components/PageRenderer.js +120 -116
- package/dist/shared/components/ProfileView.js +203 -202
- package/dist/shared/components/RealtimeStatusBanner.js +31 -29
- package/dist/shared/components/RecordDrilldownSheet.js +7 -7
- package/dist/shared/components/RecordHoverCard.js +102 -84
- package/dist/shared/components/RecordReadView.js +146 -146
- package/dist/shared/components/ScreenRefreshButton.js +34 -32
- package/dist/shared/components/TipLayer.js +65 -58
- package/dist/shared/components/WidgetImageMenu.js +83 -43
- package/dist/shared/components/activity/RecordActivityStream.js +175 -173
- package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
- package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
- package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
- package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
- package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
- package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
- package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
- package/dist/shared/components/collections-directory/page-model.js +72 -67
- package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
- package/dist/shared/components/integrations/SendStatus.js +65 -59
- package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
- package/dist/shared/components/integrations/console/SignalCard.js +237 -230
- package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
- package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +135 -94
- package/dist/shared/components/item-edit/CloneDialog.js +191 -161
- package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
- package/dist/shared/components/item-edit/FieldComments.js +88 -85
- package/dist/shared/components/item-edit/FieldPointer.js +82 -67
- package/dist/shared/components/item-edit/FieldRow.js +106 -100
- package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
- package/dist/shared/components/item-edit/FilePickerField.js +452 -387
- package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
- package/dist/shared/components/item-edit/HeaderTools.js +245 -141
- package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
- package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
- package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
- package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
- package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
- package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
- package/dist/shared/components/item-edit/RecalcValue.js +57 -32
- package/dist/shared/components/item-edit/RecordHelpChip.js +15 -16
- package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
- package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
- package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
- package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
- package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
- package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
- package/dist/shared/components/item-edit/SectionPresence.js +18 -10
- package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
- package/dist/shared/components/item-edit/UserChip.js +1 -1
- package/dist/shared/components/item-edit/addendum-view.js +6 -0
- package/dist/shared/components/item-edit/file-live.js +69 -54
- package/dist/shared/components/item-edit/layout-switch.js +98 -89
- package/dist/shared/components/item-edit/partner-needs.js +12 -12
- package/dist/shared/components/item-edit/removed-line.js +31 -25
- package/dist/shared/components/layout-editor/pickers/field-picker.js +151 -130
- package/dist/shared/components/list/ListViewers.js +46 -35
- package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
- package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
- package/dist/shared/components/panels/AlertBanners.js +82 -72
- package/dist/shared/components/panels/BranchLanes.js +22 -22
- package/dist/shared/components/panels/CommentImages.js +123 -102
- package/dist/shared/components/panels/CommentPanel.js +186 -185
- package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
- package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
- package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
- package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
- package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
- package/dist/shared/components/pipeline/PipelineEditorView.js +7 -2
- package/dist/shared/components/profile/AgentNameField.js +107 -81
- package/dist/shared/components/profile/AgentsPanel.js +184 -184
- package/dist/shared/components/profile/PersonAccess.js +599 -495
- package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
- package/dist/shared/components/profile/SignedInDevices.js +17 -17
- package/dist/shared/components/profile/primitives.js +1 -1
- package/dist/shared/components/queue/OwnerAvatars.js +91 -54
- package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
- package/dist/shared/components/queue/QueueWorklist.js +1002 -983
- package/dist/shared/components/support/AssignRules.js +1733 -0
- package/dist/shared/components/support/PersonPick.js +88 -0
- package/dist/shared/components/support/RequestList.js +790 -0
- package/dist/shared/components/support/ScreenShare.js +158 -152
- package/dist/shared/components/support/SupportRequestDialog.js +50 -48
- package/dist/shared/components/support/SupportView.js +140 -246
- package/dist/shared/components/support/TicketDetailSheet.js +82 -75
- package/dist/shared/components/support/TicketSlowScreens.js +9 -9
- package/dist/shared/components/support/assign-rules-text.js +171 -0
- package/dist/shared/components/support/support-list.js +125 -0
- package/dist/shared/components/ui/SimpleSelect.js +28 -20
- package/dist/shared/components/ui/checkbox.js +6 -6
- package/dist/shared/components/ui/select.js +43 -39
- package/dist/shared/components/ui/sheet.js +9 -9
- package/dist/shared/components/ui/switch.js +12 -11
- package/dist/shared/components/watch-list/WatchDock.js +532 -459
- package/dist/shared/components/watch-list/WatchExtras.js +332 -286
- package/dist/shared/components/watch-list/WatchRows.js +164 -140
- package/dist/shared/lib/activity-sentence.js +103 -91
- package/dist/shared/lib/agent-presence.js +27 -21
- package/dist/shared/lib/approval-progress.js +2 -2
- package/dist/shared/lib/copy-rules.js +31 -24
- package/dist/shared/lib/derived-causes.js +113 -78
- package/dist/shared/lib/grid-cursors.js +26 -26
- package/dist/shared/lib/label-flash.js +27 -0
- package/dist/shared/lib/list-return.js +137 -125
- package/dist/shared/lib/live-deltas.js +40 -34
- package/dist/shared/lib/live-groups.js +56 -52
- package/dist/shared/lib/live-preference.js +64 -59
- package/dist/shared/lib/live-screen.js +223 -192
- package/dist/shared/lib/partner-failure.js +11 -11
- package/dist/shared/lib/rollup-recalc.js +68 -64
- package/dist/shared/lib/screen-refresh.js +74 -68
- package/dist/shared/lib/screen-share.js +108 -104
- package/dist/shared/lib/send-status.js +77 -61
- package/dist/shared/lib/text-diff-window.js +29 -0
- package/dist/shared/lib/watch-list.js +210 -209
- package/dist/shared/lib/widget-image-render.js +72 -49
- package/package.json +1 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
const u = [
|
|
2
|
+
{ value: "open", label: "Not closed" },
|
|
3
|
+
{ value: "in_progress", label: "In progress" },
|
|
4
|
+
{ value: "closed", label: "Closed" },
|
|
5
|
+
{ value: "done", label: "Done" },
|
|
6
|
+
{ value: "cancelled", label: "Cancelled" },
|
|
7
|
+
{ value: "all", label: "Any status" }
|
|
8
|
+
], c = [
|
|
9
|
+
{ value: "", label: "Any priority" },
|
|
10
|
+
{ value: "urgent", label: "Urgent" },
|
|
11
|
+
{ value: "normal", label: "Normal" },
|
|
12
|
+
{ value: "low", label: "Low" }
|
|
13
|
+
], d = [
|
|
14
|
+
{
|
|
15
|
+
value: "attention",
|
|
16
|
+
label: "Needs attention",
|
|
17
|
+
description: "Urgent first, then nobody has it, then longest waiting"
|
|
18
|
+
},
|
|
19
|
+
{ value: "newest", label: "Newest", description: "Most recently raised first" },
|
|
20
|
+
{ value: "oldest", label: "Oldest", description: "Raised longest ago first" },
|
|
21
|
+
{ value: "updated", label: "Recently updated", description: "Latest activity first" },
|
|
22
|
+
{ value: "priority", label: "Priority", description: "Urgent, normal, low; oldest first" }
|
|
23
|
+
], p = new Set(d.map((e) => e.value)), f = new Set(u.map((e) => e.value)), g = new Set(c.map((e) => e.value));
|
|
24
|
+
function a(e) {
|
|
25
|
+
return {
|
|
26
|
+
status: "open",
|
|
27
|
+
assignee: "",
|
|
28
|
+
category: "",
|
|
29
|
+
priority: "",
|
|
30
|
+
sort: e === "desk" ? "attention" : "updated"
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function h(e, t) {
|
|
34
|
+
const r = a(e);
|
|
35
|
+
return ["status", "assignee", "category", "priority"].filter((s) => t[s] !== r[s]).length;
|
|
36
|
+
}
|
|
37
|
+
function m(e, t, r) {
|
|
38
|
+
const s = { scope: e, status: t.status, sort: t.sort };
|
|
39
|
+
return e === "desk" && t.assignee && (s.assignee = t.assignee), t.category && (s.category = t.category), t.priority && (s.priority = t.priority), r.trim() && (s.q = r.trim()), s;
|
|
40
|
+
}
|
|
41
|
+
const l = (e) => `nvr:support-list:${e}`;
|
|
42
|
+
function v(e, t) {
|
|
43
|
+
const r = a(e);
|
|
44
|
+
try {
|
|
45
|
+
const s = t == null ? void 0 : t.getItem(l(e));
|
|
46
|
+
if (!s) return r;
|
|
47
|
+
const o = JSON.parse(s), n = (i) => typeof i == "string" ? i : "";
|
|
48
|
+
return {
|
|
49
|
+
status: f.has(n(o.status)) ? n(o.status) : r.status,
|
|
50
|
+
assignee: e === "desk" && /^(me|unassigned|[0-9a-f-]{36})$/i.test(n(o.assignee)) ? n(o.assignee) : "",
|
|
51
|
+
category: /^\d{1,9}$/.test(n(o.category)) ? n(o.category) : "",
|
|
52
|
+
priority: g.has(n(o.priority)) ? n(o.priority) : "",
|
|
53
|
+
sort: p.has(n(o.sort)) ? n(o.sort) : r.sort
|
|
54
|
+
};
|
|
55
|
+
} catch {
|
|
56
|
+
return r;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function S(e, t, r) {
|
|
60
|
+
try {
|
|
61
|
+
r == null || r.setItem(l(e), JSON.stringify(t));
|
|
62
|
+
} catch {
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function w(e, t = Date.now()) {
|
|
66
|
+
if (!e) return "";
|
|
67
|
+
const r = new Date(e).getTime();
|
|
68
|
+
if (Number.isNaN(r)) return "";
|
|
69
|
+
const s = Math.floor((t - r) / 6e4);
|
|
70
|
+
if (s < 1) return "now";
|
|
71
|
+
if (s < 60) return `${s}m`;
|
|
72
|
+
const o = Math.floor(s / 60);
|
|
73
|
+
if (o < 48) return `${o}h`;
|
|
74
|
+
const n = Math.floor(o / 24);
|
|
75
|
+
return n < 14 ? `${n}d` : n < 60 ? `${Math.floor(n / 7)}w` : n < 365 ? `${Math.floor(n / 30)}mo` : `${Math.floor(n / 365)}y`;
|
|
76
|
+
}
|
|
77
|
+
function b(e) {
|
|
78
|
+
if (!e) return "";
|
|
79
|
+
const t = new Date(e);
|
|
80
|
+
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString("en-US", {
|
|
81
|
+
weekday: "short",
|
|
82
|
+
month: "short",
|
|
83
|
+
day: "numeric",
|
|
84
|
+
year: t.getFullYear() === (/* @__PURE__ */ new Date()).getFullYear() ? void 0 : "numeric",
|
|
85
|
+
hour: "numeric",
|
|
86
|
+
minute: "2-digit"
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function $(e) {
|
|
90
|
+
var r;
|
|
91
|
+
const t = (e ?? "").trim().split(/\s+/).filter(Boolean);
|
|
92
|
+
return t.length ? ((t[0][0] ?? "") + (t.length > 1 ? ((r = t.at(-1)) == null ? void 0 : r[0]) ?? "" : "")).toUpperCase() : "?";
|
|
93
|
+
}
|
|
94
|
+
const y = {
|
|
95
|
+
done: "Closed",
|
|
96
|
+
cancelled: "Cancelled",
|
|
97
|
+
open: "Reopened",
|
|
98
|
+
in_progress: "Moved to In progress"
|
|
99
|
+
};
|
|
100
|
+
function T(e, t) {
|
|
101
|
+
const s = [`${e.kind === "status" ? y[e.status] ?? "Updated" : e.kind === "assign" ? e.assignee ? `Assigned to ${e.name}` : "Unassigned" : `Set to ${e.priority}`}: ${t.updated}`];
|
|
102
|
+
if (t.unchanged && s.push(`${t.unchanged} already that way`), t.refused) {
|
|
103
|
+
const o = [
|
|
104
|
+
...new Set(t.results.filter((n) => n.outcome === "refused").map((n) => n.reason ?? ""))
|
|
105
|
+
].filter(Boolean);
|
|
106
|
+
s.push(
|
|
107
|
+
`${t.refused} not allowed${o.length ? ` (${o.slice(0, 2).join("; ")})` : ""}`
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
return s.join(" · ");
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
c as PRIORITY_FILTERS,
|
|
114
|
+
d as SORTS,
|
|
115
|
+
u as STATUS_FILTERS,
|
|
116
|
+
h as activeFilterCount,
|
|
117
|
+
T as bulkResultLine,
|
|
118
|
+
a as defaultFilters,
|
|
119
|
+
b as exactTime,
|
|
120
|
+
$ as initialsOf,
|
|
121
|
+
m as listParams,
|
|
122
|
+
v as readFilters,
|
|
123
|
+
w as shortAgo,
|
|
124
|
+
S as writeFilters
|
|
125
|
+
};
|
|
@@ -1,38 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { Select as
|
|
4
|
-
const
|
|
1
|
+
import { jsxs as d, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { cn as p } from "../../lib/utils.js";
|
|
3
|
+
import { Select as u, SelectTrigger as g, SelectValue as S, SelectContent as h, SelectItem as x } from "./select.js";
|
|
4
|
+
const a = "__empty__";
|
|
5
5
|
function b({
|
|
6
|
-
value:
|
|
6
|
+
value: t,
|
|
7
7
|
onChange: r,
|
|
8
8
|
options: n,
|
|
9
9
|
ariaLabel: c,
|
|
10
|
-
className:
|
|
10
|
+
className: i,
|
|
11
11
|
contentClassName: s,
|
|
12
|
-
disabled:
|
|
13
|
-
triggerProps:
|
|
12
|
+
disabled: m,
|
|
13
|
+
triggerProps: o
|
|
14
14
|
}) {
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
|
|
15
|
+
return /* @__PURE__ */ d(
|
|
16
|
+
u,
|
|
17
17
|
{
|
|
18
|
-
value:
|
|
19
|
-
onValueChange: (e) => r(e ===
|
|
20
|
-
disabled:
|
|
18
|
+
value: t === "" ? a : t,
|
|
19
|
+
onValueChange: (e) => r(e === a ? "" : e),
|
|
20
|
+
disabled: m,
|
|
21
21
|
children: [
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ l(g, { "aria-label": c, className: i, ...o, children: /* @__PURE__ */ l(S, {}) }),
|
|
23
|
+
/* @__PURE__ */ l(h, { className: s, children: n.map((e) => /* @__PURE__ */ l(
|
|
24
|
+
x,
|
|
25
|
+
{
|
|
26
|
+
value: e.value === "" ? a : e.value,
|
|
27
|
+
description: e.description,
|
|
28
|
+
children: e.label
|
|
29
|
+
},
|
|
30
|
+
e.value || a
|
|
31
|
+
)) })
|
|
24
32
|
]
|
|
25
33
|
}
|
|
26
34
|
);
|
|
27
35
|
}
|
|
28
|
-
function _(
|
|
29
|
-
return /* @__PURE__ */
|
|
36
|
+
function _(t) {
|
|
37
|
+
return /* @__PURE__ */ l(
|
|
30
38
|
b,
|
|
31
39
|
{
|
|
32
|
-
...
|
|
33
|
-
className:
|
|
40
|
+
...t,
|
|
41
|
+
className: p(
|
|
34
42
|
"h-6 w-auto gap-0.5 rounded border-slate-200 bg-white px-1 py-0 text-[11px] font-normal normal-case tracking-normal dark:border-slate-700 dark:bg-slate-900 dark:text-slate-100 [&>svg]:h-3 [&>svg]:w-3",
|
|
35
|
-
|
|
43
|
+
t.className
|
|
36
44
|
)
|
|
37
45
|
}
|
|
38
46
|
);
|
|
@@ -3,19 +3,19 @@ import * as r from "@radix-ui/react-checkbox";
|
|
|
3
3
|
import { Check as c } from "lucide-react";
|
|
4
4
|
import * as s from "react";
|
|
5
5
|
import { cn as o } from "../../lib/utils.js";
|
|
6
|
-
const
|
|
6
|
+
const d = s.forwardRef(({ className: a, ...t }, i) => /* @__PURE__ */ e(
|
|
7
7
|
r.Root,
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
9
|
+
ref: i,
|
|
10
10
|
className: o(
|
|
11
|
-
"grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
12
|
-
|
|
11
|
+
"grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-slate-500 data-[state=checked]:border-primary dark:border-slate-400 dark:data-[state=checked]:border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
12
|
+
a
|
|
13
13
|
),
|
|
14
14
|
...t,
|
|
15
15
|
children: /* @__PURE__ */ e(r.Indicator, { className: o("grid place-content-center text-current"), children: /* @__PURE__ */ e(c, { className: "h-4 w-4" }) })
|
|
16
16
|
}
|
|
17
17
|
));
|
|
18
|
-
|
|
18
|
+
d.displayName = r.Root.displayName;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
d as Checkbox
|
|
21
21
|
};
|
|
@@ -1,81 +1,85 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { ChevronDown as
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
className:
|
|
8
|
-
children:
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as t from "@radix-ui/react-select";
|
|
3
|
+
import { ChevronDown as l, Check as d } from "lucide-react";
|
|
4
|
+
import { cn as o } from "../../lib/utils.js";
|
|
5
|
+
const f = t.Root, p = t.Value;
|
|
6
|
+
function g({
|
|
7
|
+
className: n,
|
|
8
|
+
children: r,
|
|
9
9
|
...a
|
|
10
10
|
}) {
|
|
11
11
|
return /* @__PURE__ */ i(
|
|
12
|
-
|
|
12
|
+
t.Trigger,
|
|
13
13
|
{
|
|
14
|
-
className:
|
|
15
|
-
"flex h-10 w-full items-center justify-between rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-nvr-cyan focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
16
|
-
|
|
14
|
+
className: o(
|
|
15
|
+
"flex h-10 w-full items-center justify-between rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan focus-visible:ring-offset-0 data-[state=open]:ring-2 data-[state=open]:ring-nvr-cyan disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
16
|
+
n
|
|
17
17
|
),
|
|
18
18
|
...a,
|
|
19
19
|
children: [
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */ t
|
|
20
|
+
r,
|
|
21
|
+
/* @__PURE__ */ e(t.Icon, { asChild: !0, children: /* @__PURE__ */ e(l, { className: "h-4 w-4 shrink-0 opacity-50" }) })
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
className:
|
|
28
|
-
children:
|
|
26
|
+
function h({
|
|
27
|
+
className: n,
|
|
28
|
+
children: r,
|
|
29
29
|
position: a = "popper",
|
|
30
|
-
...
|
|
30
|
+
...s
|
|
31
31
|
}) {
|
|
32
|
-
return /* @__PURE__ */ t
|
|
33
|
-
|
|
32
|
+
return /* @__PURE__ */ e(t.Portal, { children: /* @__PURE__ */ e(
|
|
33
|
+
t.Content,
|
|
34
34
|
{
|
|
35
|
-
className:
|
|
35
|
+
className: o(
|
|
36
36
|
"relative z-[110] max-h-96 min-w-[8rem] overflow-hidden rounded-xl border bg-white text-slate-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
37
37
|
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
38
|
-
|
|
38
|
+
n
|
|
39
39
|
),
|
|
40
40
|
position: a,
|
|
41
|
-
...
|
|
42
|
-
children: /* @__PURE__ */
|
|
43
|
-
|
|
41
|
+
...s,
|
|
42
|
+
children: /* @__PURE__ */ e(
|
|
43
|
+
t.Viewport,
|
|
44
44
|
{
|
|
45
|
-
className:
|
|
45
|
+
className: o(
|
|
46
46
|
"p-1",
|
|
47
47
|
a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
48
48
|
),
|
|
49
|
-
children:
|
|
49
|
+
children: r
|
|
50
50
|
}
|
|
51
51
|
)
|
|
52
52
|
}
|
|
53
53
|
) });
|
|
54
54
|
}
|
|
55
55
|
function x({
|
|
56
|
-
className:
|
|
57
|
-
children:
|
|
58
|
-
|
|
56
|
+
className: n,
|
|
57
|
+
children: r,
|
|
58
|
+
description: a,
|
|
59
|
+
...s
|
|
59
60
|
}) {
|
|
60
61
|
return /* @__PURE__ */ i(
|
|
61
|
-
|
|
62
|
+
t.Item,
|
|
62
63
|
{
|
|
63
|
-
className:
|
|
64
|
+
className: o(
|
|
64
65
|
"relative flex w-full cursor-default select-none items-center rounded-lg py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-slate-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
65
|
-
|
|
66
|
+
n
|
|
66
67
|
),
|
|
67
|
-
...
|
|
68
|
+
...s,
|
|
68
69
|
children: [
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(d, { className: "h-4 w-4 text-nvr-cyan" }) }) }),
|
|
71
|
+
a ? /* @__PURE__ */ i("span", { className: "min-w-0", children: [
|
|
72
|
+
/* @__PURE__ */ e(t.ItemText, { children: r }),
|
|
73
|
+
/* @__PURE__ */ e("span", { className: "block max-w-[34ch] text-[11.5px] leading-snug text-slate-500 dark:text-muted-foreground", children: a })
|
|
74
|
+
] }) : /* @__PURE__ */ e(t.ItemText, { children: r })
|
|
71
75
|
]
|
|
72
76
|
}
|
|
73
77
|
);
|
|
74
78
|
}
|
|
75
79
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
f as Select,
|
|
81
|
+
h as SelectContent,
|
|
78
82
|
x as SelectItem,
|
|
79
|
-
|
|
83
|
+
g as SelectTrigger,
|
|
80
84
|
p as SelectValue
|
|
81
85
|
};
|
|
@@ -4,7 +4,7 @@ import { cva as c } from "class-variance-authority";
|
|
|
4
4
|
import { X as f } from "lucide-react";
|
|
5
5
|
import * as r from "react";
|
|
6
6
|
import { cn as i } from "../../lib/utils.js";
|
|
7
|
-
const
|
|
7
|
+
const S = t.Root, R = t.Trigger, p = t.Portal, d = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ s(
|
|
8
8
|
t.Overlay,
|
|
9
9
|
{
|
|
10
10
|
className: i(
|
|
@@ -35,7 +35,7 @@ const h = c(
|
|
|
35
35
|
/* @__PURE__ */ s(d, {}),
|
|
36
36
|
/* @__PURE__ */ n(t.Content, { ref: m, className: i(h({ side: e }), a), ...l, children: [
|
|
37
37
|
o,
|
|
38
|
-
/* @__PURE__ */ n(t.Close, { className: "absolute right-4 top-2 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
38
|
+
/* @__PURE__ */ n(t.Close, { className: "absolute right-4 top-2 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
39
39
|
/* @__PURE__ */ s(f, { className: "h-4 w-4" }),
|
|
40
40
|
/* @__PURE__ */ s("span", { className: "sr-only", children: "Close" })
|
|
41
41
|
] })
|
|
@@ -44,7 +44,7 @@ const h = c(
|
|
|
44
44
|
g.displayName = t.Content.displayName;
|
|
45
45
|
const u = ({ className: e, ...a }) => /* @__PURE__ */ s("div", { className: i("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
|
|
46
46
|
u.displayName = "SheetHeader";
|
|
47
|
-
const
|
|
47
|
+
const b = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ s(
|
|
48
48
|
t.Title,
|
|
49
49
|
{
|
|
50
50
|
ref: o,
|
|
@@ -52,8 +52,8 @@ const y = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ s(
|
|
|
52
52
|
...a
|
|
53
53
|
}
|
|
54
54
|
));
|
|
55
|
-
|
|
56
|
-
const
|
|
55
|
+
b.displayName = t.Title.displayName;
|
|
56
|
+
const y = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ s(
|
|
57
57
|
t.Description,
|
|
58
58
|
{
|
|
59
59
|
ref: o,
|
|
@@ -61,14 +61,14 @@ const b = r.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ s(
|
|
|
61
61
|
...a
|
|
62
62
|
}
|
|
63
63
|
));
|
|
64
|
-
|
|
64
|
+
y.displayName = t.Description.displayName;
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
S as Sheet,
|
|
67
67
|
g as SheetContent,
|
|
68
|
-
|
|
68
|
+
y as SheetDescription,
|
|
69
69
|
u as SheetHeader,
|
|
70
70
|
d as SheetOverlay,
|
|
71
71
|
p as SheetPortal,
|
|
72
|
-
|
|
72
|
+
b as SheetTitle,
|
|
73
73
|
R as SheetTrigger
|
|
74
74
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "@radix-ui/react-switch";
|
|
3
|
-
import * as
|
|
4
|
-
import { cn as
|
|
5
|
-
const n =
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import { cn as r } from "../../lib/utils.js";
|
|
5
|
+
const n = s.forwardRef(({ className: a, ...o }, i) => /* @__PURE__ */ t(
|
|
6
6
|
e.Root,
|
|
7
7
|
{
|
|
8
|
-
className:
|
|
8
|
+
className: r(
|
|
9
9
|
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
10
|
-
|
|
10
|
+
a
|
|
11
11
|
),
|
|
12
|
-
...
|
|
13
|
-
ref:
|
|
14
|
-
children: /* @__PURE__ */
|
|
12
|
+
...o,
|
|
13
|
+
ref: i,
|
|
14
|
+
children: /* @__PURE__ */ t(
|
|
15
15
|
e.Thumb,
|
|
16
16
|
{
|
|
17
|
-
className:
|
|
18
|
-
|
|
17
|
+
className: r(
|
|
18
|
+
// Dark: an off thumb in the page colour vanished into the grey track (rt5 review)
|
|
19
|
+
"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 dark:data-[state=unchecked]:bg-slate-300"
|
|
19
20
|
)
|
|
20
21
|
}
|
|
21
22
|
)
|