@elevasis/ui 2.30.0 → 2.32.0
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/api/index.js +2 -2
- package/dist/app/index.css +38 -0
- package/dist/app/index.d.ts +190 -9
- package/dist/app/index.js +7 -6
- package/dist/charts/index.js +4 -5
- package/dist/{chunk-HXZQWMKE.js → chunk-2RJMVWFJ.js} +1 -6
- package/dist/{chunk-4VQ2PXMI.js → chunk-3FV6HBXS.js} +4 -4
- package/dist/{chunk-CW3UNAF2.js → chunk-4DYOXEH6.js} +410 -5
- package/dist/{chunk-JKTPRYGV.js → chunk-4MFNGNHF.js} +123 -192
- package/dist/{chunk-HYLERWRO.js → chunk-4QK76KIF.js} +7 -7
- package/dist/chunk-5FJJ72HU.js +13 -0
- package/dist/chunk-5J4PDX26.js +112 -0
- package/dist/{chunk-4SY6BTVZ.js → chunk-6DWD423K.js} +12 -9
- package/dist/{chunk-3GV5NHSS.js → chunk-7KZINJLP.js} +78 -232
- package/dist/{chunk-6WXDE5LZ.js → chunk-EPTHX4VZ.js} +1 -1
- package/dist/{chunk-6EFVZV6X.js → chunk-GCOQ3TBG.js} +243 -254
- package/dist/{chunk-LRZFLK2F.js → chunk-IQHU7O5Y.js} +4 -4
- package/dist/{chunk-X2SUMO3P.js → chunk-IZWTVFJ2.js} +16 -3
- package/dist/{chunk-IKQ42WHU.js → chunk-JFL3GRD4.js} +1 -1
- package/dist/{chunk-4FZYEEPK.js → chunk-LLRXA7D7.js} +5 -6
- package/dist/chunk-MOY4VOHF.js +347 -0
- package/dist/{chunk-XQQEKWTL.js → chunk-N55DVMAG.js} +6 -2
- package/dist/{chunk-7E3FUTND.js → chunk-ND5TDV2J.js} +1 -1
- package/dist/{chunk-WF227UBV.js → chunk-QQHOKTJA.js} +4 -4
- package/dist/{chunk-A7B7HLDF.js → chunk-QTI3KC7D.js} +5884 -515
- package/dist/chunk-QXCDKE2O.js +486 -0
- package/dist/chunk-R2XR4FCV.js +48 -0
- package/dist/chunk-R66W5UDG.js +26 -0
- package/dist/{chunk-T5Z7G2J2.js → chunk-RQA2EVN3.js} +6 -16
- package/dist/{chunk-SKXXT3E2.js → chunk-RQTWIXJ5.js} +4 -4
- package/dist/chunk-T35FWDAB.js +4342 -0
- package/dist/{chunk-DWK2QIAK.js → chunk-TYRUKGGD.js} +1 -1
- package/dist/{chunk-CN2HC4D4.js → chunk-UFTM5SZZ.js} +2 -2
- package/dist/{chunk-JCGD4GM6.js → chunk-UROTM5OR.js} +14 -1
- package/dist/{chunk-6YT4IKJ7.js → chunk-VNAZTCHA.js} +15 -0
- package/dist/{chunk-KVJ3LFH2.js → chunk-VNFR57DF.js} +4 -24
- package/dist/{chunk-SBCIB5TZ.js → chunk-VRNMNB3O.js} +6 -7
- package/dist/chunk-WQPX44YM.js +1626 -0
- package/dist/{chunk-T2PAD63Y.js → chunk-XZGSCABI.js} +1 -1
- package/dist/chunk-YLQEVSOR.js +299 -0
- package/dist/{chunk-P5WYW2GI.js → chunk-ZQOKIGZP.js} +152 -306
- package/dist/components/index.css +38 -0
- package/dist/components/index.d.ts +334 -38
- package/dist/components/index.js +42 -42
- package/dist/components/navigation/index.css +38 -0
- package/dist/components/navigation/index.js +3 -2
- package/dist/execution/index.d.ts +9 -3
- package/dist/features/auth/index.css +38 -0
- package/dist/features/auth/index.d.ts +212 -14
- package/dist/features/auth/index.js +41 -9
- package/dist/features/clients/index.css +649 -0
- package/dist/features/clients/index.d.ts +86 -0
- package/dist/features/clients/index.js +720 -0
- package/dist/features/crm/index.css +38 -0
- package/dist/features/crm/index.d.ts +228 -20
- package/dist/features/crm/index.js +20 -17
- package/dist/features/dashboard/index.css +38 -0
- package/dist/features/dashboard/index.d.ts +78 -3
- package/dist/features/dashboard/index.js +16 -16
- package/dist/features/delivery/index.css +38 -0
- package/dist/features/delivery/index.d.ts +201 -18
- package/dist/features/delivery/index.js +20 -18
- package/dist/features/knowledge/index.css +38 -0
- package/dist/features/knowledge/index.d.ts +20 -18
- package/dist/features/knowledge/index.js +116 -578
- package/dist/features/lead-gen/index.css +38 -0
- package/dist/features/lead-gen/index.d.ts +59 -51
- package/dist/features/lead-gen/index.js +20 -18
- package/dist/features/monitoring/index.css +38 -0
- package/dist/features/monitoring/index.d.ts +20 -18
- package/dist/features/monitoring/index.js +19 -18
- package/dist/features/monitoring/requests/index.css +38 -0
- package/dist/features/monitoring/requests/index.d.ts +21 -19
- package/dist/features/monitoring/requests/index.js +17 -15
- package/dist/features/operations/index.css +38 -0
- package/dist/features/operations/index.d.ts +945 -45
- package/dist/features/operations/index.js +24 -26
- package/dist/features/seo/index.d.ts +20 -18
- package/dist/features/seo/index.js +1 -1
- package/dist/features/settings/index.css +38 -0
- package/dist/features/settings/index.d.ts +201 -18
- package/dist/features/settings/index.js +18 -16
- package/dist/hooks/delivery/index.css +38 -0
- package/dist/hooks/delivery/index.d.ts +200 -0
- package/dist/hooks/delivery/index.js +2 -2
- package/dist/hooks/index.css +38 -0
- package/dist/hooks/index.d.ts +825 -47
- package/dist/hooks/index.js +14 -13
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +194 -3
- package/dist/hooks/published.css +38 -0
- package/dist/hooks/published.d.ts +825 -47
- package/dist/hooks/published.js +14 -13
- package/dist/index.css +38 -0
- package/dist/index.d.ts +1506 -1212
- package/dist/index.js +15 -14
- package/dist/initialization/index.d.ts +181 -0
- package/dist/knowledge/index.d.ts +813 -1068
- package/dist/knowledge/index.js +7370 -2869
- package/dist/{chunk-CLUP5H3C.js → knowledge-search-index-5KYPO746.js} +441 -963
- package/dist/layout/index.d.ts +6 -0
- package/dist/layout/index.js +4 -5
- package/dist/organization/index.css +38 -0
- package/dist/profile/index.d.ts +181 -0
- package/dist/provider/index.css +38 -0
- package/dist/provider/index.d.ts +909 -1156
- package/dist/provider/index.js +11 -10
- package/dist/provider/published.css +38 -0
- package/dist/provider/published.d.ts +906 -1153
- package/dist/provider/published.js +7 -6
- package/dist/supabase/index.d.ts +349 -0
- package/dist/test-utils/index.d.ts +16 -9
- package/dist/test-utils/index.js +39 -32
- package/dist/test-utils/setup.js +1 -1
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/types/index.d.ts +378 -5
- package/dist/utils/index.d.ts +78 -3
- package/dist/utils/index.js +1 -1
- package/dist/vite/index.js +2 -2
- package/dist/vite-plugin-knowledge/index.js +1 -1
- package/package.json +47 -37
- package/src/provider/README.md +5 -5
- package/dist/chunk-2DIYILF7.js +0 -413
- package/dist/chunk-3MDNBHVB.js +0 -3868
- package/dist/chunk-6IXOKUBC.js +0 -347
- package/dist/chunk-AKOD52HS.js +0 -739
- package/dist/chunk-ECNNI3NT.js +0 -6
- package/dist/chunk-JDNEWB5F.js +0 -10
- package/dist/chunk-NITGGYH2.js +0 -476
- package/dist/chunk-OAVTMITG.js +0 -13
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import { SalesSidebar, CrmSidebarMiddle } from './chunk-MOY4VOHF.js';
|
|
2
|
+
import { SubshellSidebarSection } from './chunk-IIMU5YAJ.js';
|
|
1
3
|
import { PageContainer } from './chunk-BZZCNLT6.js';
|
|
2
4
|
import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
|
|
3
|
-
import { SubshellNavItem } from './chunk-X4WBGKJQ.js';
|
|
4
|
-
import { SubshellSidebarSection } from './chunk-IIMU5YAJ.js';
|
|
5
5
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
6
|
-
import { CustomModal } from './chunk-
|
|
7
|
-
import {
|
|
8
|
-
import { showApiErrorNotification, showSuccessNotification } from './chunk-
|
|
9
|
-
import { CenteredErrorState, CardHeader, StatCard, PageTitleCaption, EmptyState, ActivityTimeline } from './chunk-
|
|
10
|
-
import {
|
|
6
|
+
import { CustomModal } from './chunk-R66W5UDG.js';
|
|
7
|
+
import { useDealsSummary, useDeleteDeal, usePaginationState, useDeals, useTableSort, sortData, useTableSelection, useDealDetail, useCompany, dealKeys, useContact, useExecuteAction } from './chunk-GCOQ3TBG.js';
|
|
8
|
+
import { showApiErrorNotification, showSuccessNotification } from './chunk-XZGSCABI.js';
|
|
9
|
+
import { CenteredErrorState, CardHeader, StatCard, PageTitleCaption, EmptyState, ActivityTimeline } from './chunk-EPTHX4VZ.js';
|
|
10
|
+
import { useCrmActions, deriveActions } from './chunk-YLQEVSOR.js';
|
|
11
11
|
import { SubshellContentContainer } from './chunk-TKAYX2SP.js';
|
|
12
|
-
import {
|
|
13
|
-
import { PAGE_SIZE_DEFAULT, formatTimeAgo } from './chunk-
|
|
12
|
+
import { CRM_PIPELINE_DEFINITION, DEFAULT_CRM_PRIORITY_RULE_CONFIG, CRM_PRIORITY_BUCKETS } from './chunk-T35FWDAB.js';
|
|
13
|
+
import { PAGE_SIZE_DEFAULT, formatTimeAgo } from './chunk-2RJMVWFJ.js';
|
|
14
14
|
import { useElevasisServices } from './chunk-KJ3QUBNU.js';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { Stack, Paper, Center, Loader, Group, Box, Text, Alert, Table, SimpleGrid, Button, Select, TextInput, Tabs, Checkbox, Badge, Tooltip, Pagination, Title, Code, Card, Switch, NumberInput, ColorSwatch, Popover, ActionIcon, Anchor, CopyButton, Divider, Textarea } from '@mantine/core';
|
|
16
|
+
import { IconAddressBook, IconColumns, IconHistory, IconAlertCircle, IconCurrencyDollar, IconChartBar, IconBriefcase, IconTrophy, IconSearch, IconTargetArrow, IconAlertTriangle, IconMessages, IconArrowLeft, IconFileText, IconInbox, IconUser, IconBolt, IconBuilding, IconSettings, IconRestore, IconInfoCircle, IconMailForward, IconPlus, IconArrowRight, IconNote, IconCheck, IconCopy } from '@tabler/icons-react';
|
|
17
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
|
-
import {
|
|
18
|
+
import { useMemo, useState, useEffect } from 'react';
|
|
19
19
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
20
20
|
import { useNavigate } from '@tanstack/react-router';
|
|
21
21
|
import { useForm } from '@mantine/form';
|
|
@@ -24,29 +24,6 @@ var CrmSidebarTop = () => {
|
|
|
24
24
|
return /* @__PURE__ */ jsx(SubshellSidebarSection, { icon: IconAddressBook, label: "CRM" });
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
// src/features/crm/workbench/constants.ts
|
|
28
|
-
var SAVED_VIEW_PRESETS = [
|
|
29
|
-
{
|
|
30
|
-
id: "my-deals",
|
|
31
|
-
label: "My Deals",
|
|
32
|
-
iconName: "IconUser",
|
|
33
|
-
target: "/crm/deals"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
id: "overdue",
|
|
37
|
-
label: "Overdue",
|
|
38
|
-
iconName: "IconClockExclamation",
|
|
39
|
-
target: "/crm/deals"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
id: "won-this-month",
|
|
43
|
-
label: "Won this month",
|
|
44
|
-
iconName: "IconTrophy",
|
|
45
|
-
target: "/crm/deals",
|
|
46
|
-
urlFilters: { stage: "closed_won" }
|
|
47
|
-
}
|
|
48
|
-
];
|
|
49
|
-
|
|
50
27
|
// src/lib/crm/pipeline.ts
|
|
51
28
|
function getCrmStageOptions() {
|
|
52
29
|
return CRM_PIPELINE_DEFINITION.stages.map((stage) => ({
|
|
@@ -152,274 +129,6 @@ function buildBookingUrl(opts = {}) {
|
|
|
152
129
|
if (opts.contactId) params.set("contactId", opts.contactId);
|
|
153
130
|
return params.size > 0 ? `${BOOKING_PAGE_URL}?${params.toString()}` : BOOKING_PAGE_URL;
|
|
154
131
|
}
|
|
155
|
-
var KIND_ICONS = {
|
|
156
|
-
call: IconPhone,
|
|
157
|
-
email: IconMail,
|
|
158
|
-
meeting: IconCalendar,
|
|
159
|
-
other: IconCheckbox
|
|
160
|
-
};
|
|
161
|
-
function formatDueLabel(dueAt) {
|
|
162
|
-
if (!dueAt) return "";
|
|
163
|
-
const date = new Date(dueAt);
|
|
164
|
-
const now = /* @__PURE__ */ new Date();
|
|
165
|
-
const today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
|
|
166
|
-
const dueDay = new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
167
|
-
const diffDays = Math.round((dueDay.getTime() - today.getTime()) / 864e5);
|
|
168
|
-
if (diffDays < 0) return `${Math.abs(diffDays)}d overdue`;
|
|
169
|
-
if (diffDays === 0) {
|
|
170
|
-
return date.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
171
|
-
}
|
|
172
|
-
return `in ${diffDays}d`;
|
|
173
|
-
}
|
|
174
|
-
function TaskRow({ task, onClick }) {
|
|
175
|
-
const KindIcon = KIND_ICONS[task.kind];
|
|
176
|
-
const dueLabel = formatDueLabel(task.dueAt);
|
|
177
|
-
const isOverdue = task.dueAt !== null && new Date(task.dueAt) < /* @__PURE__ */ new Date();
|
|
178
|
-
return /* @__PURE__ */ jsx(
|
|
179
|
-
UnstyledButton,
|
|
180
|
-
{
|
|
181
|
-
onClick,
|
|
182
|
-
style: {
|
|
183
|
-
display: "block",
|
|
184
|
-
width: "100%",
|
|
185
|
-
padding: "4px 6px",
|
|
186
|
-
borderRadius: "var(--mantine-radius-sm)",
|
|
187
|
-
transition: `background-color var(--duration-fast) var(--easing)`
|
|
188
|
-
},
|
|
189
|
-
onMouseEnter: (e) => {
|
|
190
|
-
e.currentTarget.style.backgroundColor = "var(--color-surface-hover)";
|
|
191
|
-
},
|
|
192
|
-
onMouseLeave: (e) => {
|
|
193
|
-
e.currentTarget.style.backgroundColor = "transparent";
|
|
194
|
-
},
|
|
195
|
-
children: /* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", children: [
|
|
196
|
-
/* @__PURE__ */ jsx(KindIcon, { size: 14, style: { color: "var(--color-text-dimmed)", flexShrink: 0 } }),
|
|
197
|
-
/* @__PURE__ */ jsx(Text, { size: "xs", truncate: true, style: { flex: 1, minWidth: 0 }, children: task.title }),
|
|
198
|
-
dueLabel && /* @__PURE__ */ jsx(Badge, { size: "xs", variant: "light", color: isOverdue ? "red" : "gray", style: { flexShrink: 0 }, children: dueLabel })
|
|
199
|
-
] })
|
|
200
|
-
}
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
function MyTasksPanel({
|
|
204
|
-
onTaskClick,
|
|
205
|
-
onSeeAll,
|
|
206
|
-
footer,
|
|
207
|
-
showSectionLabel = true
|
|
208
|
-
}) {
|
|
209
|
-
const { data, isLoading, isError } = useDealTasksDue({ window: "today_and_overdue" });
|
|
210
|
-
const tasks = data ?? [];
|
|
211
|
-
const total = tasks.length;
|
|
212
|
-
const visible = tasks.slice(0, 5);
|
|
213
|
-
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
|
|
214
|
-
showSectionLabel && /* @__PURE__ */ jsxs(Group, { justify: "space-between", mb: 4, children: [
|
|
215
|
-
/* @__PURE__ */ jsx(Text, { fz: "xs", tt: "uppercase", c: "dimmed", fw: 600, children: "My Tasks" }),
|
|
216
|
-
total > 0 && /* @__PURE__ */ jsx(Badge, { size: "xs", variant: "light", children: total })
|
|
217
|
-
] }),
|
|
218
|
-
isLoading && /* @__PURE__ */ jsx(Center, { py: 4, children: /* @__PURE__ */ jsx(Loader, { size: "xs" }) }),
|
|
219
|
-
isError && /* @__PURE__ */ jsx(Text, { size: "xs", c: "red", children: "Failed to load tasks" }),
|
|
220
|
-
!isLoading && !isError && visible.length === 0 && /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "No tasks due - you're caught up." }),
|
|
221
|
-
!isLoading && !isError && visible.map((task) => /* @__PURE__ */ jsx(TaskRow, { task, onClick: () => onTaskClick(task.dealId) }, task.id)),
|
|
222
|
-
onSeeAll && total > 5 && /* @__PURE__ */ jsx(UnstyledButton, { onClick: onSeeAll, mt: 2, style: { display: "inline-block" }, children: /* @__PURE__ */ jsxs(Text, { size: "xs", c: "dimmed", style: { textDecoration: "underline" }, children: [
|
|
223
|
-
"See all (",
|
|
224
|
-
total,
|
|
225
|
-
")"
|
|
226
|
-
] }) }),
|
|
227
|
-
footer
|
|
228
|
-
] }) });
|
|
229
|
-
}
|
|
230
|
-
var ICON_MAP = {
|
|
231
|
-
IconUser,
|
|
232
|
-
IconClockExclamation,
|
|
233
|
-
IconTrophy
|
|
234
|
-
};
|
|
235
|
-
function SavedViewsPanel({ onViewClick, showSectionLabel = true }) {
|
|
236
|
-
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
|
|
237
|
-
showSectionLabel && /* @__PURE__ */ jsx(Text, { fz: "xs", tt: "uppercase", c: "dimmed", fw: 600, mb: 4, children: "Saved Views" }),
|
|
238
|
-
SAVED_VIEW_PRESETS.map((preset) => {
|
|
239
|
-
const Icon = ICON_MAP[preset.iconName];
|
|
240
|
-
return /* @__PURE__ */ jsx(
|
|
241
|
-
UnstyledButton,
|
|
242
|
-
{
|
|
243
|
-
onClick: () => onViewClick(preset),
|
|
244
|
-
style: {
|
|
245
|
-
display: "block",
|
|
246
|
-
width: "100%",
|
|
247
|
-
padding: "4px 6px",
|
|
248
|
-
borderRadius: "var(--mantine-radius-sm)",
|
|
249
|
-
transition: `background-color var(--duration-fast) var(--easing)`
|
|
250
|
-
},
|
|
251
|
-
onMouseEnter: (e) => {
|
|
252
|
-
e.currentTarget.style.backgroundColor = "var(--color-surface-hover)";
|
|
253
|
-
},
|
|
254
|
-
onMouseLeave: (e) => {
|
|
255
|
-
e.currentTarget.style.backgroundColor = "transparent";
|
|
256
|
-
},
|
|
257
|
-
children: /* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", children: [
|
|
258
|
-
/* @__PURE__ */ jsx(Icon, { size: 14, style: { color: "var(--color-text-dimmed)", flexShrink: 0 } }),
|
|
259
|
-
/* @__PURE__ */ jsx(Text, { size: "xs", children: preset.label })
|
|
260
|
-
] })
|
|
261
|
-
},
|
|
262
|
-
preset.id
|
|
263
|
-
);
|
|
264
|
-
})
|
|
265
|
-
] }) });
|
|
266
|
-
}
|
|
267
|
-
var KIND_OPTIONS = [
|
|
268
|
-
{ value: "call", label: "Call" },
|
|
269
|
-
{ value: "email", label: "Email" },
|
|
270
|
-
{ value: "meeting", label: "Meeting" },
|
|
271
|
-
{ value: "other", label: "Other" }
|
|
272
|
-
];
|
|
273
|
-
function QuickCreateActions({ showSectionLabel = true }) {
|
|
274
|
-
const [open, setOpen] = useState(false);
|
|
275
|
-
const [dealId, setDealId] = useState(null);
|
|
276
|
-
const [dealSearch, setDealSearch] = useState("");
|
|
277
|
-
const [title, setTitle] = useState("");
|
|
278
|
-
const [description, setDescription] = useState("");
|
|
279
|
-
const [kind, setKind] = useState("other");
|
|
280
|
-
const [dueAt, setDueAt] = useState("");
|
|
281
|
-
const { data: deals, isLoading: isLoadingDeals } = useDealsLookup(
|
|
282
|
-
{
|
|
283
|
-
search: dealSearch || void 0,
|
|
284
|
-
limit: 25
|
|
285
|
-
},
|
|
286
|
-
{ enabled: open }
|
|
287
|
-
);
|
|
288
|
-
const createTask = useCreateDealTask();
|
|
289
|
-
const dealOptions = (deals ?? []).map((deal) => ({
|
|
290
|
-
value: deal.id,
|
|
291
|
-
label: deal.displayLabel
|
|
292
|
-
}));
|
|
293
|
-
function resetForm() {
|
|
294
|
-
setDealId(null);
|
|
295
|
-
setDealSearch("");
|
|
296
|
-
setTitle("");
|
|
297
|
-
setDescription("");
|
|
298
|
-
setKind("other");
|
|
299
|
-
setDueAt("");
|
|
300
|
-
}
|
|
301
|
-
function handleClose() {
|
|
302
|
-
setOpen(false);
|
|
303
|
-
resetForm();
|
|
304
|
-
}
|
|
305
|
-
async function handleSubmit() {
|
|
306
|
-
if (!dealId || !title) return;
|
|
307
|
-
await createTask.mutateAsync({
|
|
308
|
-
dealId,
|
|
309
|
-
title,
|
|
310
|
-
description: description || null,
|
|
311
|
-
kind,
|
|
312
|
-
dueAt: dueAt ? new Date(dueAt).toISOString() : null
|
|
313
|
-
});
|
|
314
|
-
handleClose();
|
|
315
|
-
}
|
|
316
|
-
const isSubmitDisabled = !dealId || !title || createTask.isPending;
|
|
317
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
318
|
-
/* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
|
|
319
|
-
showSectionLabel && /* @__PURE__ */ jsx(Text, { fz: "xs", tt: "uppercase", c: "dimmed", fw: 600, children: "TASKS" }),
|
|
320
|
-
/* @__PURE__ */ jsx(Button, { variant: "light", size: "xs", leftSection: /* @__PURE__ */ jsx(IconPlus, { size: 14 }), fullWidth: true, onClick: () => setOpen(true), children: "New Task" })
|
|
321
|
-
] }),
|
|
322
|
-
/* @__PURE__ */ jsxs(Modal, { opened: open, onClose: handleClose, size: "md", children: [
|
|
323
|
-
/* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
|
|
324
|
-
/* @__PURE__ */ jsx(Title, { order: 3, children: "New Task" }),
|
|
325
|
-
/* @__PURE__ */ jsx(
|
|
326
|
-
Select,
|
|
327
|
-
{
|
|
328
|
-
label: "Deal",
|
|
329
|
-
placeholder: "Search deals",
|
|
330
|
-
data: dealOptions,
|
|
331
|
-
value: dealId,
|
|
332
|
-
onChange: setDealId,
|
|
333
|
-
searchValue: dealSearch,
|
|
334
|
-
onSearchChange: setDealSearch,
|
|
335
|
-
searchable: true,
|
|
336
|
-
nothingFoundMessage: dealSearch ? "No matching deals" : "No deals available",
|
|
337
|
-
disabled: isLoadingDeals,
|
|
338
|
-
required: true
|
|
339
|
-
}
|
|
340
|
-
),
|
|
341
|
-
/* @__PURE__ */ jsx(
|
|
342
|
-
TextInput,
|
|
343
|
-
{
|
|
344
|
-
label: "Title",
|
|
345
|
-
placeholder: "Task title",
|
|
346
|
-
value: title,
|
|
347
|
-
onChange: (e) => setTitle(e.currentTarget.value),
|
|
348
|
-
required: true
|
|
349
|
-
}
|
|
350
|
-
),
|
|
351
|
-
/* @__PURE__ */ jsx(
|
|
352
|
-
Textarea,
|
|
353
|
-
{
|
|
354
|
-
label: "Description",
|
|
355
|
-
placeholder: "Optional description",
|
|
356
|
-
value: description,
|
|
357
|
-
onChange: (e) => setDescription(e.currentTarget.value),
|
|
358
|
-
autosize: true,
|
|
359
|
-
minRows: 2,
|
|
360
|
-
maxRows: 5
|
|
361
|
-
}
|
|
362
|
-
),
|
|
363
|
-
/* @__PURE__ */ jsx(
|
|
364
|
-
Select,
|
|
365
|
-
{
|
|
366
|
-
label: "Kind",
|
|
367
|
-
data: KIND_OPTIONS,
|
|
368
|
-
value: kind,
|
|
369
|
-
onChange: (v) => setKind(v ?? "other")
|
|
370
|
-
}
|
|
371
|
-
),
|
|
372
|
-
/* @__PURE__ */ jsx(
|
|
373
|
-
TextInput,
|
|
374
|
-
{
|
|
375
|
-
type: "datetime-local",
|
|
376
|
-
label: "Due At",
|
|
377
|
-
value: dueAt,
|
|
378
|
-
onChange: (e) => setDueAt(e.currentTarget.value)
|
|
379
|
-
}
|
|
380
|
-
)
|
|
381
|
-
] }),
|
|
382
|
-
/* @__PURE__ */ jsxs(Group, { justify: "flex-end", mt: "md", children: [
|
|
383
|
-
/* @__PURE__ */ jsx(Button, { variant: "default", onClick: handleClose, children: "Cancel" }),
|
|
384
|
-
/* @__PURE__ */ jsx(Button, { onClick: handleSubmit, loading: createTask.isPending, disabled: isSubmitDisabled, children: "Create" })
|
|
385
|
-
] })
|
|
386
|
-
] })
|
|
387
|
-
] });
|
|
388
|
-
}
|
|
389
|
-
var CRM_ITEMS = [
|
|
390
|
-
{ label: "Overview", to: "/crm", icon: IconLayoutGrid, exact: true },
|
|
391
|
-
{ label: "Pipeline", to: "/crm/pipeline", icon: IconColumns, exact: false },
|
|
392
|
-
{ label: "Deals", to: "/crm/deals", icon: IconFileInvoice, exact: false }
|
|
393
|
-
];
|
|
394
|
-
var CrmSidebarMiddle = ({ items = CRM_ITEMS } = {}) => {
|
|
395
|
-
const { currentPath, navigate } = useRouterContext();
|
|
396
|
-
return /* @__PURE__ */ jsxs(Stack, { gap: 0, style: { flex: 1, overflowY: "auto" }, children: [
|
|
397
|
-
/* @__PURE__ */ jsx(Stack, { gap: 0, p: "sm", children: items.map((item) => {
|
|
398
|
-
const isActive = item.exact ? currentPath === item.to || currentPath === `${item.to}/` : currentPath.startsWith(item.to);
|
|
399
|
-
return /* @__PURE__ */ jsx(
|
|
400
|
-
SubshellNavItem,
|
|
401
|
-
{
|
|
402
|
-
icon: item.icon,
|
|
403
|
-
label: item.label,
|
|
404
|
-
isActive,
|
|
405
|
-
href: item.to,
|
|
406
|
-
onClick: () => navigate(item.to)
|
|
407
|
-
},
|
|
408
|
-
item.to
|
|
409
|
-
);
|
|
410
|
-
}) }),
|
|
411
|
-
/* @__PURE__ */ jsx(SubshellSidebarSection, { icon: IconChecklist, label: "My Tasks", withTopBorder: true }),
|
|
412
|
-
/* @__PURE__ */ jsx(Stack, { gap: 0, p: "sm", children: /* @__PURE__ */ jsx(
|
|
413
|
-
MyTasksPanel,
|
|
414
|
-
{
|
|
415
|
-
onTaskClick: (dealId) => navigate(`/crm/deals/${dealId}`),
|
|
416
|
-
onSeeAll: () => navigate("/crm/deals"),
|
|
417
|
-
showSectionLabel: false,
|
|
418
|
-
footer: /* @__PURE__ */ jsx(QuickCreateActions, { showSectionLabel: false })
|
|
419
|
-
}
|
|
420
|
-
) })
|
|
421
|
-
] });
|
|
422
|
-
};
|
|
423
132
|
var CrmSidebar = ({ children } = {}) => {
|
|
424
133
|
return /* @__PURE__ */ jsxs(Stack, { gap: 0, style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
425
134
|
/* @__PURE__ */ jsx(CrmSidebarTop, {}),
|
|
@@ -692,10 +401,10 @@ function CrmOverview({
|
|
|
692
401
|
}
|
|
693
402
|
var crmManifest = {
|
|
694
403
|
key: "crm",
|
|
695
|
-
|
|
404
|
+
systemId: "sales.crm",
|
|
696
405
|
capabilityIds: ["crm.pipeline.manage"],
|
|
697
406
|
icon: IconAddressBook,
|
|
698
|
-
sidebar:
|
|
407
|
+
sidebar: SalesSidebar
|
|
699
408
|
};
|
|
700
409
|
var sortAccessors = {
|
|
701
410
|
company: (deal) => deal.contact?.company?.name || deal.discovery_data?.company || deal.contact_email?.split("@")[1] || "",
|
|
@@ -1663,6 +1372,10 @@ function CompanyDetailPage({ companyId }) {
|
|
|
1663
1372
|
company.foundedYear != null && /* @__PURE__ */ jsxs(Group, { children: [
|
|
1664
1373
|
/* @__PURE__ */ jsx(Text, { fw: 500, children: "Founded:" }),
|
|
1665
1374
|
/* @__PURE__ */ jsx(Text, { children: company.foundedYear })
|
|
1375
|
+
] }),
|
|
1376
|
+
company.contactCount != null && /* @__PURE__ */ jsxs(Group, { children: [
|
|
1377
|
+
/* @__PURE__ */ jsx(Text, { fw: 500, children: "Contacts:" }),
|
|
1378
|
+
/* @__PURE__ */ jsx(Text, { children: company.contactCount })
|
|
1666
1379
|
] })
|
|
1667
1380
|
] })
|
|
1668
1381
|
] }) }),
|
|
@@ -1702,6 +1415,10 @@ function CompanyDetailPage({ companyId }) {
|
|
|
1702
1415
|
company.verticalResearch && /* @__PURE__ */ jsx(Card, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
|
|
1703
1416
|
/* @__PURE__ */ jsx(Title, { order: 4, children: "Vertical Research" }),
|
|
1704
1417
|
/* @__PURE__ */ jsx(Text, { size: "sm", style: { whiteSpace: "pre-wrap" }, children: company.verticalResearch })
|
|
1418
|
+
] }) }),
|
|
1419
|
+
company.enrichmentData && /* @__PURE__ */ jsx(Card, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
|
|
1420
|
+
/* @__PURE__ */ jsx(Title, { order: 4, children: "Enrichment Data" }),
|
|
1421
|
+
/* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", style: { whiteSpace: "pre-wrap" }, children: JSON.stringify(company.enrichmentData, null, 2) })
|
|
1705
1422
|
] }) })
|
|
1706
1423
|
] }) })
|
|
1707
1424
|
] }) });
|
|
@@ -2014,5 +1731,134 @@ function CrmSettingsPage() {
|
|
|
2014
1731
|
] }) })
|
|
2015
1732
|
] }) }) });
|
|
2016
1733
|
}
|
|
1734
|
+
function ContactDetailPage({ contactId }) {
|
|
1735
|
+
const navigate = useNavigate();
|
|
1736
|
+
const { data: contact, isLoading, error } = useContact(contactId);
|
|
1737
|
+
const fullName = contact ? [contact.firstName, contact.lastName].filter(Boolean).join(" ") || contact.email : "Contact Detail";
|
|
1738
|
+
const title = contact ? fullName : "Contact Detail";
|
|
1739
|
+
const headerActions = /* @__PURE__ */ jsx(
|
|
1740
|
+
Button,
|
|
1741
|
+
{
|
|
1742
|
+
variant: "light",
|
|
1743
|
+
size: "sm",
|
|
1744
|
+
leftSection: /* @__PURE__ */ jsx(IconArrowLeft, { size: 16 }),
|
|
1745
|
+
onClick: () => navigate({ to: "/crm" }),
|
|
1746
|
+
children: "CRM"
|
|
1747
|
+
}
|
|
1748
|
+
);
|
|
1749
|
+
if (isLoading) {
|
|
1750
|
+
return /* @__PURE__ */ jsx(SubshellContentContainer, { children: /* @__PURE__ */ jsxs(PageContainer, { children: [
|
|
1751
|
+
/* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(PageTitleCaption, { title, caption: "Loading contact details...", rightSection: headerActions }) }),
|
|
1752
|
+
/* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsx(Center, { p: "xl", children: /* @__PURE__ */ jsx(Loader, {}) }) })
|
|
1753
|
+
] }) });
|
|
1754
|
+
}
|
|
1755
|
+
if (error) {
|
|
1756
|
+
return /* @__PURE__ */ jsx(SubshellContentContainer, { children: /* @__PURE__ */ jsxs(PageContainer, { children: [
|
|
1757
|
+
/* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(PageTitleCaption, { title, caption: "Unable to load contact details", rightSection: headerActions }) }),
|
|
1758
|
+
/* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsx(CenteredErrorState, { error, title: "Failed to load contact" }) })
|
|
1759
|
+
] }) });
|
|
1760
|
+
}
|
|
1761
|
+
if (!contact) {
|
|
1762
|
+
return /* @__PURE__ */ jsx(SubshellContentContainer, { children: /* @__PURE__ */ jsxs(PageContainer, { children: [
|
|
1763
|
+
/* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(PageTitleCaption, { title, caption: "Contact not found", rightSection: headerActions }) }),
|
|
1764
|
+
/* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsx(
|
|
1765
|
+
EmptyState,
|
|
1766
|
+
{
|
|
1767
|
+
icon: IconUser,
|
|
1768
|
+
title: "Contact not found",
|
|
1769
|
+
description: "The selected contact no longer exists."
|
|
1770
|
+
}
|
|
1771
|
+
) })
|
|
1772
|
+
] }) });
|
|
1773
|
+
}
|
|
1774
|
+
const liData = contact.enrichmentData;
|
|
1775
|
+
const caption = [contact.title, contact.email].filter(Boolean).join(" \xB7 ") || [contact.company?.name].filter(Boolean).join("") || "Contact";
|
|
1776
|
+
return /* @__PURE__ */ jsx(SubshellContentContainer, { children: /* @__PURE__ */ jsxs(PageContainer, { children: [
|
|
1777
|
+
/* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(PageTitleCaption, { title: fullName, caption, rightSection: headerActions }) }),
|
|
1778
|
+
/* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "md", p: "md", children: [
|
|
1779
|
+
/* @__PURE__ */ jsx(Card, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
|
|
1780
|
+
/* @__PURE__ */ jsx(Title, { order: 4, children: "Overview" }),
|
|
1781
|
+
/* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
|
|
1782
|
+
/* @__PURE__ */ jsx(Badge, { variant: "light", color: "blue", children: contact.status }),
|
|
1783
|
+
contact.openingLine && /* @__PURE__ */ jsx(Badge, { variant: "light", color: "green", children: "Personalized" })
|
|
1784
|
+
] }),
|
|
1785
|
+
/* @__PURE__ */ jsxs(SimpleGrid, { cols: { base: 1, sm: 2 }, spacing: "sm", children: [
|
|
1786
|
+
/* @__PURE__ */ jsxs(Group, { children: [
|
|
1787
|
+
/* @__PURE__ */ jsx(Text, { fw: 500, children: "Email:" }),
|
|
1788
|
+
/* @__PURE__ */ jsx(Text, { children: contact.email })
|
|
1789
|
+
] }),
|
|
1790
|
+
contact.title && /* @__PURE__ */ jsxs(Group, { children: [
|
|
1791
|
+
/* @__PURE__ */ jsx(Text, { fw: 500, children: "Title:" }),
|
|
1792
|
+
/* @__PURE__ */ jsx(Text, { children: contact.title })
|
|
1793
|
+
] }),
|
|
1794
|
+
contact.headline && /* @__PURE__ */ jsxs(Group, { children: [
|
|
1795
|
+
/* @__PURE__ */ jsx(Text, { fw: 500, children: "Headline:" }),
|
|
1796
|
+
/* @__PURE__ */ jsx(Text, { children: contact.headline })
|
|
1797
|
+
] }),
|
|
1798
|
+
contact.linkedinUrl && /* @__PURE__ */ jsxs(Group, { children: [
|
|
1799
|
+
/* @__PURE__ */ jsx(Text, { fw: 500, children: "LinkedIn:" }),
|
|
1800
|
+
/* @__PURE__ */ jsx(Anchor, { href: contact.linkedinUrl, target: "_blank", size: "sm", children: "View Profile" })
|
|
1801
|
+
] })
|
|
1802
|
+
] }),
|
|
1803
|
+
/* @__PURE__ */ jsxs(Text, { size: "xs", c: "dimmed", children: [
|
|
1804
|
+
"Created: ",
|
|
1805
|
+
new Date(contact.createdAt).toLocaleDateString(),
|
|
1806
|
+
contact.updatedAt && ` | Updated: ${new Date(contact.updatedAt).toLocaleDateString()}`
|
|
1807
|
+
] })
|
|
1808
|
+
] }) }),
|
|
1809
|
+
contact.company && /* @__PURE__ */ jsx(Card, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
|
|
1810
|
+
/* @__PURE__ */ jsx(Title, { order: 4, children: "Company" }),
|
|
1811
|
+
/* @__PURE__ */ jsxs(
|
|
1812
|
+
Card,
|
|
1813
|
+
{
|
|
1814
|
+
withBorder: true,
|
|
1815
|
+
style: { cursor: "pointer" },
|
|
1816
|
+
onClick: () => navigate({
|
|
1817
|
+
to: "/crm/companies/$companyId",
|
|
1818
|
+
params: { companyId: contact.company.id }
|
|
1819
|
+
}),
|
|
1820
|
+
children: [
|
|
1821
|
+
/* @__PURE__ */ jsx(Text, { fw: 500, children: contact.company.name }),
|
|
1822
|
+
contact.company.domain && /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: contact.company.domain })
|
|
1823
|
+
]
|
|
1824
|
+
}
|
|
1825
|
+
)
|
|
1826
|
+
] }) }),
|
|
1827
|
+
(liData?.linkedin?.summary || liData?.linkedin?.pastExperience || liData?.linkedin?.education) && /* @__PURE__ */ jsx(Card, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
|
|
1828
|
+
/* @__PURE__ */ jsx(Title, { order: 4, children: "LinkedIn Data" }),
|
|
1829
|
+
liData.linkedin?.summary && /* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
|
|
1830
|
+
/* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "Summary" }),
|
|
1831
|
+
/* @__PURE__ */ jsx(Text, { size: "sm", children: liData.linkedin.summary })
|
|
1832
|
+
] }),
|
|
1833
|
+
liData.linkedin?.pastExperience && /* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
|
|
1834
|
+
/* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "Past Experience" }),
|
|
1835
|
+
/* @__PURE__ */ jsx(Text, { size: "sm", children: liData.linkedin.pastExperience })
|
|
1836
|
+
] }),
|
|
1837
|
+
liData.linkedin?.education && /* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
|
|
1838
|
+
/* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "Education" }),
|
|
1839
|
+
/* @__PURE__ */ jsx(Text, { size: "sm", children: liData.linkedin.education })
|
|
1840
|
+
] })
|
|
1841
|
+
] }) }),
|
|
1842
|
+
liData?.linkedin?.activity && liData.linkedin.activity.length > 0 && /* @__PURE__ */ jsx(Card, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
|
|
1843
|
+
/* @__PURE__ */ jsx(Title, { order: 4, children: "Recent Activity" }),
|
|
1844
|
+
/* @__PURE__ */ jsx(Stack, { gap: "xs", children: liData.linkedin.activity.slice(0, 3).map((activity, i) => /* @__PURE__ */ jsxs(Card, { withBorder: true, children: [
|
|
1845
|
+
activity.date && /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: activity.date }),
|
|
1846
|
+
activity.content && /* @__PURE__ */ jsx(Text, { size: "sm", children: activity.content })
|
|
1847
|
+
] }, i)) })
|
|
1848
|
+
] }) }),
|
|
1849
|
+
contact.openingLine && /* @__PURE__ */ jsx(Card, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
|
|
1850
|
+
/* @__PURE__ */ jsx(Title, { order: 4, children: "Personalization" }),
|
|
1851
|
+
/* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
|
|
1852
|
+
/* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "Opening Line" }),
|
|
1853
|
+
/* @__PURE__ */ jsx(Text, { size: "sm", children: contact.openingLine })
|
|
1854
|
+
] })
|
|
1855
|
+
] }) }),
|
|
1856
|
+
contact.filterReason && /* @__PURE__ */ jsx(Card, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
|
|
1857
|
+
/* @__PURE__ */ jsx(Title, { order: 4, children: "Qualification" }),
|
|
1858
|
+
/* @__PURE__ */ jsx(Text, { size: "sm", c: "red", children: contact.filterReason })
|
|
1859
|
+
] }) })
|
|
1860
|
+
] }) })
|
|
1861
|
+
] }) });
|
|
1862
|
+
}
|
|
2017
1863
|
|
|
2018
|
-
export { ActivityFeedWidget,
|
|
1864
|
+
export { ActivityFeedWidget, CompanyDetailPage, ContactDetailPage, ConversationThread, CrmOverview, CrmSettingsPage, CrmSidebar, CrmSidebarTop, DEAL_STAGE_COLORS, DEAL_STAGE_OPTIONS, DealDetailPage, DealsListPage, MetricsStrip, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, compareDealsByPriority, crmManifest, crmPrioritySettingsKeys, formatDealStageLabel, setDealReferrer, useCrmPipelineSummary, useCrmPrioritySettings, useCrmQuickMetrics, useRecentCrmActivity, useResetCrmPrioritySettings, useUpdateCrmPrioritySettings };
|
|
@@ -534,6 +534,14 @@
|
|
|
534
534
|
.mantine-Accordion-control:hover {
|
|
535
535
|
background-color: var(--color-surface-hover);
|
|
536
536
|
}
|
|
537
|
+
[data-mantine-color-scheme] .mantine-Accordion-root .mantine-Accordion-item {
|
|
538
|
+
--item-filled-color: var(--color-surface);
|
|
539
|
+
--item-border-color: var(--color-border);
|
|
540
|
+
}
|
|
541
|
+
[data-mantine-color-scheme] .mantine-Accordion-root[data-variant=separated] .mantine-Accordion-item[data-active] {
|
|
542
|
+
background-color: var(--color-surface);
|
|
543
|
+
border-color: var(--color-border);
|
|
544
|
+
}
|
|
537
545
|
.mantine-Menu-item:hover:not([data-disabled]) {
|
|
538
546
|
background-color: var(--color-surface-hover);
|
|
539
547
|
}
|
|
@@ -599,6 +607,36 @@
|
|
|
599
607
|
background-color: var(--color-primary);
|
|
600
608
|
border-color: var(--color-primary);
|
|
601
609
|
}
|
|
610
|
+
.mantine-Tree-node:focus-visible > [data-value] {
|
|
611
|
+
outline: 2px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
|
|
612
|
+
outline-offset: 2px;
|
|
613
|
+
}
|
|
614
|
+
.mantine-Tree-label[data-hovered] {
|
|
615
|
+
background-color: var(--color-surface-hover);
|
|
616
|
+
border-color: var(--color-border);
|
|
617
|
+
}
|
|
618
|
+
.mantine-Tree-label[data-selected] {
|
|
619
|
+
background-color: color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
620
|
+
border-color: color-mix(in srgb, var(--color-primary) 38%, var(--color-border));
|
|
621
|
+
color: var(--color-primary);
|
|
622
|
+
}
|
|
623
|
+
[data-knowledge-article] pre {
|
|
624
|
+
white-space: pre-wrap;
|
|
625
|
+
word-break: break-word;
|
|
626
|
+
overflow-x: auto;
|
|
627
|
+
max-width: 100%;
|
|
628
|
+
padding: var(--mantine-spacing-sm);
|
|
629
|
+
background-color: var(--color-surface);
|
|
630
|
+
border: 1px solid var(--color-border);
|
|
631
|
+
border-radius: var(--mantine-radius-sm);
|
|
632
|
+
}
|
|
633
|
+
[data-knowledge-article] pre code {
|
|
634
|
+
background: transparent;
|
|
635
|
+
border: none;
|
|
636
|
+
padding: 0;
|
|
637
|
+
white-space: inherit;
|
|
638
|
+
word-break: inherit;
|
|
639
|
+
}
|
|
602
640
|
.recharts-surface:focus {
|
|
603
641
|
outline: none;
|
|
604
642
|
}
|