@elevasis/ui 2.33.2 → 2.35.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.
Files changed (116) hide show
  1. package/dist/api/index.d.ts +9 -2
  2. package/dist/api/index.js +3 -3
  3. package/dist/app/index.css +452 -0
  4. package/dist/app/index.d.ts +1255 -8
  5. package/dist/app/index.js +151 -13
  6. package/dist/charts/index.js +3 -6
  7. package/dist/chunk-26HFM4MH.js +41449 -0
  8. package/dist/{chunk-52K5RFDH.js → chunk-4U3XAWCN.js} +1328 -2492
  9. package/dist/{chunk-ND5TDV2J.js → chunk-57OZ3AEG.js} +1 -1
  10. package/dist/{chunk-E4WQGJNS.js → chunk-7FPLLSHN.js} +14 -1
  11. package/dist/{chunk-RQA2EVN3.js → chunk-AKW7KISS.js} +39 -3
  12. package/dist/chunk-AUDNF2Q7.js +2050 -0
  13. package/dist/{chunk-TYRUKGGD.js → chunk-GX6XBRRF.js} +1 -2
  14. package/dist/{chunk-V6SZ4ECN.js → chunk-LUYVRATI.js} +257 -6
  15. package/dist/{chunk-X4WBGKJQ.js → chunk-R3VCBZDC.js} +50 -3
  16. package/dist/chunk-SIQ3P4OR.js +1764 -0
  17. package/dist/{chunk-Z2K2EAPL.js → chunk-VDOOGGBA.js} +5 -6
  18. package/dist/{chunk-3FV6HBXS.js → chunk-WF7CONXF.js} +23 -23
  19. package/dist/chunk-YYX7OPZQ.js +25 -0
  20. package/dist/components/index.d.ts +69 -92
  21. package/dist/components/index.js +20 -3216
  22. package/dist/components/navigation/index.js +25 -7
  23. package/dist/execution/index.d.ts +9 -9
  24. package/dist/execution/index.js +1 -2
  25. package/dist/features/auth/index.js +23 -2
  26. package/dist/features/clients/index.js +20 -31
  27. package/dist/features/crm/index.js +20 -35
  28. package/dist/features/dashboard/index.d.ts +68 -91
  29. package/dist/features/dashboard/index.js +20 -33
  30. package/dist/features/delivery/index.js +20 -35
  31. package/dist/features/knowledge/index.js +25 -11
  32. package/dist/features/lead-gen/index.d.ts +9 -9
  33. package/dist/features/lead-gen/index.js +20 -36
  34. package/dist/features/monitoring/index.js +20 -35
  35. package/dist/features/monitoring/requests/index.js +20 -30
  36. package/dist/features/operations/index.d.ts +197 -188
  37. package/dist/features/operations/index.js +18 -42
  38. package/dist/features/seo/index.js +3 -4
  39. package/dist/features/settings/index.js +20 -32
  40. package/dist/graph/index.js +1 -1
  41. package/dist/hooks/delivery/index.js +30 -2
  42. package/dist/hooks/index.d.ts +105 -112
  43. package/dist/hooks/index.js +20 -26
  44. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +55 -62
  45. package/dist/hooks/published.d.ts +105 -112
  46. package/dist/hooks/published.js +20 -25
  47. package/dist/index.css +532 -532
  48. package/dist/index.d.ts +10261 -6793
  49. package/dist/index.js +22 -31
  50. package/dist/knowledge/index.d.ts +51 -59
  51. package/dist/knowledge/index.js +40 -211
  52. package/dist/{knowledge-search-index-VMAW7FLR.js → knowledge-search-index-ORIJCEZX.js} +3 -3
  53. package/dist/layout/index.js +4 -10
  54. package/dist/organization/index.js +27 -2
  55. package/dist/provider/index.d.ts +71 -52
  56. package/dist/provider/index.js +20 -20
  57. package/dist/provider/published.d.ts +39 -47
  58. package/dist/provider/published.js +20 -15
  59. package/dist/test-utils/index.d.ts +2 -0
  60. package/dist/test-utils/index.js +16 -4
  61. package/dist/test-utils/setup.js +38 -0
  62. package/dist/theme/index.js +2 -3
  63. package/dist/theme/presets/index.d.ts +28 -3
  64. package/dist/theme/presets/index.js +1 -1
  65. package/dist/typeform/index.js +1 -2049
  66. package/dist/types/index.d.ts +88 -95
  67. package/dist/utils/index.d.ts +46 -69
  68. package/dist/utils/index.js +1 -1
  69. package/dist/zustand/index.d.ts +21 -8
  70. package/dist/zustand/index.js +32 -1
  71. package/package.json +5 -5
  72. package/dist/chunk-2ZZ72TAB.js +0 -2281
  73. package/dist/chunk-32I2RCGC.js +0 -85
  74. package/dist/chunk-3MEXPLWT.js +0 -265
  75. package/dist/chunk-3ZMAGTWF.js +0 -18
  76. package/dist/chunk-44I4LOH6.js +0 -1593
  77. package/dist/chunk-4DYOXEH6.js +0 -951
  78. package/dist/chunk-7M2VOCYN.js +0 -1
  79. package/dist/chunk-A4VDJJCV.js +0 -1864
  80. package/dist/chunk-BZZCNLT6.js +0 -12
  81. package/dist/chunk-CLDCYJQT.js +0 -1
  82. package/dist/chunk-E565XMTQ.js +0 -17
  83. package/dist/chunk-EPTHX4VZ.js +0 -749
  84. package/dist/chunk-GWGQI6V4.js +0 -447
  85. package/dist/chunk-HUJCU55S.js +0 -159
  86. package/dist/chunk-IBWMR4TI.js +0 -469
  87. package/dist/chunk-IIMU5YAJ.js +0 -53
  88. package/dist/chunk-IOXOPMYS.js +0 -145
  89. package/dist/chunk-J2UD7BOH.js +0 -347
  90. package/dist/chunk-JA5ECJJB.js +0 -387
  91. package/dist/chunk-JFL3GRD4.js +0 -39
  92. package/dist/chunk-KW7ZNQD7.js +0 -126
  93. package/dist/chunk-LGKLC5MG.js +0 -44
  94. package/dist/chunk-N55DVMAG.js +0 -14
  95. package/dist/chunk-O56ESZCQ.js +0 -1874
  96. package/dist/chunk-OIBHQH5Q.js +0 -96
  97. package/dist/chunk-PDHTXPSF.js +0 -12
  98. package/dist/chunk-QDFJSUG3.js +0 -13
  99. package/dist/chunk-R2XR4FCV.js +0 -48
  100. package/dist/chunk-R66W5UDG.js +0 -26
  101. package/dist/chunk-RYTEQBAO.js +0 -37
  102. package/dist/chunk-SZHARWKU.js +0 -15
  103. package/dist/chunk-T3J6U77J.js +0 -12056
  104. package/dist/chunk-TBVLQRXT.js +0 -68
  105. package/dist/chunk-TGVAIWIL.js +0 -1778
  106. package/dist/chunk-TKAYX2SP.js +0 -204
  107. package/dist/chunk-TUMSNGTX.js +0 -35
  108. package/dist/chunk-VGU4ZFYZ.js +0 -4752
  109. package/dist/chunk-VNAZTCHA.js +0 -65
  110. package/dist/chunk-VNFR57DF.js +0 -87
  111. package/dist/chunk-WKW6B5ID.js +0 -29
  112. package/dist/chunk-XCYKC6OZ.js +0 -1
  113. package/dist/chunk-XZGSCABI.js +0 -383
  114. package/dist/chunk-ZMK5Z6KE.js +0 -5198
  115. /package/dist/{chunk-2RJMVWFJ.js → chunk-GEFWMU26.js} +0 -0
  116. /package/dist/{chunk-22UVE3RA.js → chunk-HENXLGVD.js} +0 -0
@@ -1,96 +0,0 @@
1
- import { mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-RQA2EVN3.js';
2
- import { PRESETS, getPreset, generateShades } from './chunk-3FV6HBXS.js';
3
- import { AppBackground } from './chunk-WLOQ4IBG.js';
4
- import { ElevasisCoreProvider } from './chunk-GWGQI6V4.js';
5
- import { ElevasisLoader } from './chunk-SZHARWKU.js';
6
- import { AppearanceProvider } from './chunk-E565XMTQ.js';
7
- import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-2RJMVWFJ.js';
8
- import { useMemo, useEffect } from 'react';
9
- import { Loader, mergeThemeOverrides, MantineProvider } from '@mantine/core';
10
- import '@mantine/core/styles.css';
11
- import '@mantine/notifications/styles.css';
12
- import { notifications } from '@mantine/notifications';
13
- import { jsx } from 'react/jsx-runtime';
14
-
15
- var mantineAdapter = {
16
- success(title, message) {
17
- notifications.show({ title, message, autoClose: 5e3, color: "green", position: "top-right" });
18
- },
19
- error(title, message) {
20
- notifications.show({ title, message, autoClose: 5e3, color: "red", position: "top-right" });
21
- },
22
- info(title, message) {
23
- notifications.show({ title, message, autoClose: 5e3, color: "blue", position: "top-right" });
24
- },
25
- warning(title, message) {
26
- notifications.show({ title, message, autoClose: 5e3, color: "orange", position: "top-right" });
27
- },
28
- apiError(error) {
29
- const { message, code, requestId, fields, retryAfter } = getErrorInfo(error);
30
- const hasFields = fields && Object.keys(fields).length > 0;
31
- notifications.show({
32
- title: getErrorTitle(code),
33
- message: formatErrorMessage(message, requestId, fields, retryAfter),
34
- autoClose: retryAfter ? retryAfter * 1e3 : hasFields ? 8e3 : 5e3,
35
- color: "red",
36
- position: "top-right"
37
- });
38
- }
39
- };
40
- function ElevasisUIProvider({ theme, children, ...coreProps }) {
41
- const resolvedColorScheme = theme?.colorScheme ?? "dark";
42
- const activePresets = theme?.presets ?? PRESETS;
43
- const preset = useMemo(() => getPreset(theme?.preset ?? "default", theme?.presets), [theme?.preset, theme?.presets]);
44
- const resolvedAppearance = {
45
- background: theme?.background ?? preset.background ?? /* @__PURE__ */ jsx(AppBackground, {}),
46
- loader: theme?.loader ?? preset.loader ?? /* @__PURE__ */ jsx(Loader, { size: "xl", loaders: { elevasis: ElevasisLoader }, type: "elevasis" })
47
- };
48
- useEffect(() => {
49
- if (!preset.fontImports?.length) return;
50
- const links = [];
51
- for (const href of preset.fontImports) {
52
- if (document.querySelector(`link[href="${href}"]`)) continue;
53
- const link = document.createElement("link");
54
- link.rel = "stylesheet";
55
- link.href = href;
56
- document.head.appendChild(link);
57
- links.push(link);
58
- }
59
- const subtitleFont = preset.subtitleFontFamily ?? preset.framework?.headings?.fontFamily ?? preset.framework?.fontFamily ?? "";
60
- document.documentElement.style.setProperty("--elevasis-font-family-subtitle", subtitleFont);
61
- return () => {
62
- links.forEach((l) => l.remove());
63
- document.documentElement.style.removeProperty("--elevasis-font-family-subtitle");
64
- };
65
- }, [
66
- preset.fontImports,
67
- preset.subtitleFontFamily,
68
- preset.framework?.headings?.fontFamily,
69
- preset.framework?.fontFamily
70
- ]);
71
- const resolvedTheme = useMemo(() => {
72
- const primaryHex = theme?.tokens?.primary ?? preset.dark.primary;
73
- const primaryOverride = {
74
- primaryColor: "primary",
75
- colors: { primary: generateShades(primaryHex) }
76
- };
77
- let base = mergeThemeOverrides(mantineThemeOverride, primaryOverride);
78
- if (preset.framework) base = mergeThemeOverrides(base, preset.framework);
79
- return theme?.mantine ? mergeThemeOverrides(base, theme.mantine) : base;
80
- }, [theme?.mantine, preset, theme?.tokens?.primary]);
81
- const cssVariablesResolver = useMemo(
82
- () => createCssVariablesResolver(theme?.tokens, theme?.preset, theme?.presets),
83
- [theme?.tokens, theme?.preset, theme?.presets]
84
- );
85
- return /* @__PURE__ */ jsx(
86
- MantineProvider,
87
- {
88
- theme: resolvedTheme,
89
- defaultColorScheme: resolvedColorScheme,
90
- cssVariablesResolver,
91
- children: /* @__PURE__ */ jsx(PresetsProvider, { value: activePresets, children: /* @__PURE__ */ jsx(AppearanceProvider, { value: resolvedAppearance, children: /* @__PURE__ */ jsx(ElevasisCoreProvider, { notifications: mantineAdapter, ...coreProps, children }) }) })
92
- }
93
- );
94
- }
95
-
96
- export { ElevasisUIProvider };
@@ -1,12 +0,0 @@
1
- import { Card, Group } from '@mantine/core';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
-
4
- // src/components/table/FilterBar.tsx
5
- function FilterBar({ children, actions }) {
6
- return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(Group, { gap: "md", wrap: "wrap", justify: "space-between", children: [
7
- /* @__PURE__ */ jsx(Group, { gap: "md", wrap: "wrap", children }),
8
- /* @__PURE__ */ jsx(Group, { gap: "md", children: actions })
9
- ] }) });
10
- }
11
-
12
- export { FilterBar };
@@ -1,13 +0,0 @@
1
- import { ElevasisSystemsProvider } from './chunk-IBWMR4TI.js';
2
- import { jsx } from 'react/jsx-runtime';
3
-
4
- function createTestSystemsProvider({
5
- organizationModel,
6
- systems = []
7
- } = {}) {
8
- return function TestSystemsProvider({ children }) {
9
- return /* @__PURE__ */ jsx(ElevasisSystemsProvider, { systems, organizationModel, children });
10
- };
11
- }
12
-
13
- export { createTestSystemsProvider };
@@ -1,48 +0,0 @@
1
- // src/features/delivery/_shared.ts
2
- var projectStatusColors = {
3
- active: "blue",
4
- on_track: "green",
5
- at_risk: "yellow",
6
- blocked: "red",
7
- completed: "teal",
8
- paused: "gray"
9
- };
10
- var milestoneStatusColors = {
11
- upcoming: "gray",
12
- in_progress: "blue",
13
- completed: "green",
14
- overdue: "red",
15
- blocked: "orange"
16
- };
17
- var taskStatusColors = {
18
- pending: "gray",
19
- planned: "gray",
20
- in_progress: "blue",
21
- submitted: "yellow",
22
- approved: "green",
23
- rejected: "red",
24
- revision_requested: "orange"
25
- };
26
- var taskTypeColors = {
27
- documentation: "blue",
28
- code: "violet",
29
- report: "cyan",
30
- design: "pink",
31
- other: "gray"
32
- };
33
- var noteTypeColors = {
34
- call_note: "blue",
35
- status_update: "green",
36
- issue: "yellow",
37
- blocker: "red",
38
- agent_learning: "grape"
39
- };
40
- function formatStatusLabel(status) {
41
- return status.split("_").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
42
- }
43
- function calculateProgress(completed, total) {
44
- if (total === 0) return 0;
45
- return Math.round(completed / total * 100);
46
- }
47
-
48
- export { calculateProgress, formatStatusLabel, milestoneStatusColors, noteTypeColors, projectStatusColors, taskStatusColors, taskTypeColors };
@@ -1,26 +0,0 @@
1
- import { Modal } from '@mantine/core';
2
- import { jsx } from 'react/jsx-runtime';
3
-
4
- // src/components/modal/CustomModal.tsx
5
- var FULL_SIZE = "80%";
6
- var CustomModal = ({ children, opened, onClose, loading, style, size }) => {
7
- const canClose = loading === true ? false : true;
8
- const resolvedSize = size === "full" ? FULL_SIZE : size;
9
- return /* @__PURE__ */ jsx(
10
- Modal,
11
- {
12
- opened,
13
- onClose,
14
- padding: "xs",
15
- withCloseButton: false,
16
- closeOnClickOutside: canClose,
17
- closeOnEscape: canClose,
18
- centered: true,
19
- style,
20
- size: resolvedSize,
21
- children
22
- }
23
- );
24
- };
25
-
26
- export { CustomModal };
@@ -1,37 +0,0 @@
1
- import { useAppearance } from './chunk-E565XMTQ.js';
2
- import { topbarHeight } from './chunk-DT3QYZVU.js';
3
- import { Stack, Title, Button } from '@mantine/core';
4
- import { IconAlertCircle } from '@tabler/icons-react';
5
- import { jsx, jsxs } from 'react/jsx-runtime';
6
-
7
- var standardMdSpacing = 16;
8
- var topAndBottomSpacing = standardMdSpacing * 2;
9
- var AppShellCenteredContainer = ({ children }) => {
10
- return /* @__PURE__ */ jsx(
11
- "div",
12
- {
13
- style: {
14
- display: "flex",
15
- alignItems: "center",
16
- justifyContent: "center",
17
- margin: "auto auto",
18
- height: `calc(100vh - ${topbarHeight + topAndBottomSpacing}px)`,
19
- textAlign: "center"
20
- },
21
- children
22
- }
23
- );
24
- };
25
- var AppShellLoader = () => {
26
- const { loader } = useAppearance();
27
- return /* @__PURE__ */ jsx(AppShellCenteredContainer, { children: loader });
28
- };
29
- var AppShellError = ({ message, retry }) => {
30
- return /* @__PURE__ */ jsx(AppShellCenteredContainer, { children: /* @__PURE__ */ jsxs(Stack, { align: "center", gap: "md", children: [
31
- /* @__PURE__ */ jsx(IconAlertCircle, { size: 48, color: "var(--color-error)" }),
32
- /* @__PURE__ */ jsx(Title, { order: 3, c: "dimmed", children: message }),
33
- retry && /* @__PURE__ */ jsx(Button, { onClick: retry, children: "Retry" })
34
- ] }) });
35
- };
36
-
37
- export { AppShellCenteredContainer, AppShellError, AppShellLoader };
@@ -1,15 +0,0 @@
1
- import { forwardRef } from 'react';
2
- import { jsx, jsxs } from 'react/jsx-runtime';
3
-
4
- // src/components/display/ElevasisLoader.tsx
5
-
6
- // src/components/display/ElevasisLoader.module.css.js
7
- var ElevasisLoader_module_css_default = { "wrapper": "wrapper", "loader": "loader", "chevron": "chevron", "c1": "c1", "c2": "c2", "c3": "c3" };
8
- var ElevasisLoader = forwardRef(({ style, className, ...others }, ref) => /* @__PURE__ */ jsx("div", { ref, style, className: `${ElevasisLoader_module_css_default.wrapper} ${className ?? ""}`, ...others, children: /* @__PURE__ */ jsxs("svg", { className: ElevasisLoader_module_css_default.loader, viewBox: "-10 -5 60 50", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
9
- /* @__PURE__ */ jsx("polyline", { className: `${ElevasisLoader_module_css_default.chevron} ${ElevasisLoader_module_css_default.c1}`, points: "5,36 20,25 35,36" }),
10
- /* @__PURE__ */ jsx("polyline", { className: `${ElevasisLoader_module_css_default.chevron} ${ElevasisLoader_module_css_default.c2}`, points: "9,23 20,14 31,23" }),
11
- /* @__PURE__ */ jsx("polyline", { className: `${ElevasisLoader_module_css_default.chevron} ${ElevasisLoader_module_css_default.c3}`, points: "13,11 20,5 27,11" })
12
- ] }) }));
13
- ElevasisLoader.displayName = "ElevasisLoader";
14
-
15
- export { ElevasisLoader };