@elevasis/ui 2.25.6 → 2.26.1

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 (105) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/app/index.css +15 -5
  3. package/dist/app/index.d.ts +61 -14
  4. package/dist/app/index.js +6 -6
  5. package/dist/charts/index.js +6 -5
  6. package/dist/chunk-3MEXPLWT.js +265 -0
  7. package/dist/{chunk-BDKM56TP.js → chunk-4KTLOK7K.js} +1 -1
  8. package/dist/{chunk-KMAXFJPH.js → chunk-CW3UNAF2.js} +5 -409
  9. package/dist/{chunk-HKBEURCV.js → chunk-G26INIF3.js} +1 -1
  10. package/dist/{chunk-7F3IQMLI.js → chunk-G66QFZXD.js} +11 -214
  11. package/dist/{chunk-QIW6OCEI.js → chunk-HLFFKKT3.js} +27 -373
  12. package/dist/chunk-JDNEWB5F.js +10 -0
  13. package/dist/{chunk-L7D6KNHV.js → chunk-JKBGDFX2.js} +890 -749
  14. package/dist/{chunk-YRKQNPK2.js → chunk-JPGX3533.js} +4 -3
  15. package/dist/chunk-KEFWANZY.js +155 -0
  16. package/dist/chunk-LH4GPYDX.js +448 -0
  17. package/dist/{chunk-JXSBOG2R.js → chunk-LWKZ3BCC.js} +5 -4
  18. package/dist/chunk-MYEOTM7D.js +92 -0
  19. package/dist/chunk-OGXKOMUT.js +412 -0
  20. package/dist/chunk-OHXU5WWK.js +3731 -0
  21. package/dist/chunk-ONFKASZI.js +2004 -0
  22. package/dist/{chunk-U36X6NZM.js → chunk-RIFTUOPE.js} +2 -14
  23. package/dist/{chunk-T6INEVX6.js → chunk-SGS4CQ2B.js} +1 -1
  24. package/dist/{chunk-C7IBFI5B.js → chunk-UPMX5GJI.js} +5 -5
  25. package/dist/{chunk-ARJPZ66V.js → chunk-UY5I2KOZ.js} +208 -3124
  26. package/dist/chunk-W2ZTLH7Y.js +662 -0
  27. package/dist/{chunk-KNISO652.js → chunk-WUVR4QY6.js} +9 -9
  28. package/dist/{chunk-Q5BEODAT.js → chunk-X2SUMO3P.js} +2 -1
  29. package/dist/{chunk-SNHGSCKH.js → chunk-XBMCDGHA.js} +1 -1
  30. package/dist/{chunk-N55DVMAG.js → chunk-XQQEKWTL.js} +2 -6
  31. package/dist/{chunk-SBQ4MYQV.js → chunk-XZSEPJZQ.js} +5 -6
  32. package/dist/{chunk-CPAJXBTL.js → chunk-YHBPR67D.js} +490 -676
  33. package/dist/{chunk-QARSVM7Q.js → chunk-YO2YORW4.js} +4 -4
  34. package/dist/{chunk-TAIX4NO3.js → chunk-ZFLM2YVW.js} +2 -2
  35. package/dist/components/index.css +15 -5
  36. package/dist/components/index.d.ts +202 -383
  37. package/dist/components/index.js +43 -429
  38. package/dist/components/navigation/index.css +25 -15
  39. package/dist/execution/index.d.ts +0 -73
  40. package/dist/features/auth/index.css +25 -15
  41. package/dist/features/crm/index.css +25 -15
  42. package/dist/features/crm/index.d.ts +49 -49
  43. package/dist/features/crm/index.js +14 -15
  44. package/dist/features/dashboard/index.css +25 -15
  45. package/dist/features/dashboard/index.js +18 -16
  46. package/dist/features/delivery/index.css +15 -5
  47. package/dist/features/delivery/index.js +14 -15
  48. package/dist/features/knowledge/index.css +611 -0
  49. package/dist/features/knowledge/index.js +375 -72
  50. package/dist/features/lead-gen/index.css +25 -15
  51. package/dist/features/lead-gen/index.d.ts +60 -21
  52. package/dist/features/lead-gen/index.js +16 -16
  53. package/dist/features/monitoring/index.css +15 -5
  54. package/dist/features/monitoring/index.js +17 -17
  55. package/dist/features/monitoring/requests/index.css +25 -15
  56. package/dist/features/monitoring/requests/index.js +13 -14
  57. package/dist/features/operations/index.css +25 -15
  58. package/dist/features/operations/index.d.ts +16 -98
  59. package/dist/features/operations/index.js +26 -22
  60. package/dist/features/settings/index.css +25 -15
  61. package/dist/features/settings/index.d.ts +1 -0
  62. package/dist/features/settings/index.js +15 -16
  63. package/dist/hooks/delivery/index.css +25 -15
  64. package/dist/hooks/delivery/index.js +2 -2
  65. package/dist/hooks/index.css +15 -5
  66. package/dist/hooks/index.d.ts +172 -380
  67. package/dist/hooks/index.js +13 -14
  68. package/dist/hooks/published.css +15 -5
  69. package/dist/hooks/published.d.ts +172 -380
  70. package/dist/hooks/published.js +13 -14
  71. package/dist/index.css +15 -5
  72. package/dist/index.d.ts +988 -403
  73. package/dist/index.js +15 -15
  74. package/dist/initialization/index.d.ts +1 -0
  75. package/dist/knowledge/index.d.ts +981 -41
  76. package/dist/knowledge/index.js +5449 -294
  77. package/dist/layout/index.d.ts +2 -0
  78. package/dist/layout/index.js +3 -2
  79. package/dist/organization/index.css +25 -15
  80. package/dist/organization/index.d.ts +1 -0
  81. package/dist/provider/index.css +25 -15
  82. package/dist/provider/index.d.ts +818 -26
  83. package/dist/provider/index.js +11 -11
  84. package/dist/provider/published.css +25 -15
  85. package/dist/provider/published.d.ts +817 -25
  86. package/dist/provider/published.js +8 -9
  87. package/dist/test-utils/index.js +2 -2
  88. package/dist/test-utils/setup.js +1 -1
  89. package/dist/theme/index.js +3 -2
  90. package/dist/theme/presets/index.d.ts +97 -0
  91. package/dist/theme/presets/index.js +3 -0
  92. package/dist/types/index.d.ts +71 -126
  93. package/dist/utils/index.js +1 -1
  94. package/dist/vite/index.d.ts +7 -0
  95. package/dist/vite/index.js +10 -0
  96. package/dist/vite-plugin-knowledge/index.d.ts +1 -33
  97. package/dist/vite-plugin-knowledge/index.js +1 -66
  98. package/package.json +16 -3
  99. package/src/knowledge/README.md +8 -8
  100. package/src/theme/presets/README.md +19 -0
  101. package/dist/chunk-5RLYII6P.js +0 -314
  102. package/dist/chunk-6U7AIIHF.js +0 -880
  103. package/dist/chunk-HAEJ4M54.js +0 -94
  104. package/dist/chunk-LPM7O6XM.js +0 -293
  105. /package/dist/{chunk-SGXXJE52.js → chunk-QD4X4H5A.js} +0 -0
@@ -1,9 +1,10 @@
1
- import { PRESETS, getPreset, generateShades, mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-QIW6OCEI.js';
1
+ import { mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-LH4GPYDX.js';
2
+ import { PRESETS, getPreset, generateShades } from './chunk-HLFFKKT3.js';
2
3
  import { AppBackground } from './chunk-WLOQ4IBG.js';
3
- import { ElevasisCoreProvider } from './chunk-LPM7O6XM.js';
4
+ import { ElevasisCoreProvider } from './chunk-W2ZTLH7Y.js';
4
5
  import { ElevasisLoader } from './chunk-SZHARWKU.js';
5
6
  import { AppearanceProvider } from './chunk-E565XMTQ.js';
6
- import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-SGXXJE52.js';
7
+ import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-QD4X4H5A.js';
7
8
  import { useMemo, useEffect } from 'react';
8
9
  import { Loader, mergeThemeOverrides, MantineProvider } from '@mantine/core';
9
10
  import '@mantine/core/styles.css';
@@ -0,0 +1,155 @@
1
+ import { IconMail, IconSend, IconFileText, IconClock, IconArrowUp, IconMessageCircle, IconRocket, IconEye, IconEdit, IconAlertTriangle, IconRefresh, IconX, IconCheck, IconArchive, IconShieldLock, IconSettings, IconBrain, IconChartBar, IconTool, IconBriefcase, IconLayoutGrid, IconTargetArrow, IconBuildingStore, IconDashboard, IconInfoCircle, IconDatabase, IconGitBranch, IconTopologyStar3, IconUsers, IconUser, IconPlug, IconBook } from '@tabler/icons-react';
2
+ import { jsx } from 'react/jsx-runtime';
3
+
4
+ // src/icons/registry.tsx
5
+ var DEFAULT_SEMANTIC_ICON_REGISTRY = {
6
+ "nav.dashboard": IconDashboard,
7
+ "nav.sales": IconChartBar,
8
+ "nav.crm": IconBuildingStore,
9
+ "nav.lead-gen": IconTargetArrow,
10
+ "nav.projects": IconBriefcase,
11
+ "nav.operations": IconTool,
12
+ "nav.monitoring": IconChartBar,
13
+ "nav.knowledge": IconBrain,
14
+ "nav.settings": IconSettings,
15
+ "nav.admin": IconShieldLock,
16
+ "nav.archive": IconArchive,
17
+ "feature.dashboard": IconDashboard,
18
+ "feature.sales": IconChartBar,
19
+ "feature.crm": IconBuildingStore,
20
+ "feature.finance": IconChartBar,
21
+ "feature.lead-gen": IconTargetArrow,
22
+ "feature.platform": IconLayoutGrid,
23
+ "feature.projects": IconBriefcase,
24
+ "feature.operations": IconTool,
25
+ "feature.monitoring": IconChartBar,
26
+ "feature.knowledge": IconBrain,
27
+ "feature.settings": IconSettings,
28
+ "feature.admin": IconShieldLock,
29
+ "feature.archive": IconArchive,
30
+ "feature.seo": IconChartBar,
31
+ "knowledge.playbook": IconBook,
32
+ "knowledge.strategy": IconTargetArrow,
33
+ "knowledge.reference": IconFileText,
34
+ "resource.agent": IconBrain,
35
+ "resource.workflow": IconGitBranch,
36
+ "resource.integration": IconPlug,
37
+ "resource.database": IconDatabase,
38
+ "resource.user": IconUser,
39
+ "resource.team": IconUsers,
40
+ "integration.gmail": IconMail,
41
+ "integration.google-sheets": IconDatabase,
42
+ "integration.attio": IconBuildingStore,
43
+ "surface.dashboard": IconDashboard,
44
+ "surface.overview": IconDashboard,
45
+ "surface.command-view": IconTopologyStar3,
46
+ "surface.command-queue": IconSend,
47
+ "surface.pipeline": IconGitBranch,
48
+ "surface.lists": IconFileText,
49
+ "surface.resources": IconDatabase,
50
+ "surface.settings": IconSettings,
51
+ "action.approve": IconCheck,
52
+ "action.reject": IconX,
53
+ "action.retry": IconRefresh,
54
+ "action.edit": IconEdit,
55
+ "action.view": IconEye,
56
+ "action.launch": IconRocket,
57
+ "action.message": IconMessageCircle,
58
+ "action.escalate": IconAlertTriangle,
59
+ "action.promote": IconArrowUp,
60
+ "action.submit": IconSend,
61
+ "action.email": IconMail,
62
+ "status.success": IconCheck,
63
+ "status.error": IconX,
64
+ "status.warning": IconAlertTriangle,
65
+ "status.pending": IconClock,
66
+ "status.info": IconInfoCircle,
67
+ // Compatibility aliases for pre-semantic template/navigation payloads.
68
+ dashboard: IconDashboard,
69
+ sales: IconChartBar,
70
+ crm: IconBuildingStore,
71
+ finance: IconChartBar,
72
+ "lead-gen": IconTargetArrow,
73
+ platform: IconLayoutGrid,
74
+ projects: IconBriefcase,
75
+ operations: IconTool,
76
+ monitoring: IconChartBar,
77
+ knowledge: IconBrain,
78
+ settings: IconSettings,
79
+ admin: IconShieldLock,
80
+ archive: IconArchive,
81
+ // Compatibility aliases for existing command queue payloads.
82
+ IconCheck,
83
+ IconX,
84
+ IconRefresh,
85
+ IconAlertTriangle,
86
+ IconEdit,
87
+ IconEye,
88
+ IconRocket,
89
+ IconMessageCircle,
90
+ IconArrowUp,
91
+ IconClock,
92
+ IconFileText,
93
+ IconSend,
94
+ IconMail
95
+ };
96
+ var FALLBACK_TOKEN_BY_KIND = {
97
+ knowledge: "knowledge.reference",
98
+ playbook: "knowledge.playbook",
99
+ strategy: "knowledge.strategy",
100
+ reference: "knowledge.reference",
101
+ feature: "feature.operations",
102
+ resource: "resource.workflow",
103
+ integration: "resource.integration",
104
+ action: "action.view",
105
+ status: "status.info",
106
+ nav: "nav.dashboard",
107
+ unknown: "status.info"
108
+ };
109
+ var semanticIconRegistry = { ...DEFAULT_SEMANTIC_ICON_REGISTRY };
110
+ function extendSemanticIconRegistry(overrides) {
111
+ semanticIconRegistry = { ...semanticIconRegistry, ...overrides };
112
+ }
113
+ function getSemanticIconComponent(token, fallbackKind = "unknown", fallbackToken) {
114
+ const icon = resolveSemanticIconComponent(token);
115
+ if (icon) return icon;
116
+ if (fallbackToken && semanticIconRegistry[fallbackToken]) return semanticIconRegistry[fallbackToken];
117
+ return semanticIconRegistry[FALLBACK_TOKEN_BY_KIND[fallbackKind]] ?? IconInfoCircle;
118
+ }
119
+ function resolveSemanticIconComponent(token) {
120
+ if (!token) return null;
121
+ return semanticIconRegistry[token] ?? null;
122
+ }
123
+ function SemanticIcon({
124
+ token,
125
+ fallbackKind = "unknown",
126
+ fallbackToken,
127
+ size = 16,
128
+ stroke = 1.8,
129
+ className,
130
+ style,
131
+ "aria-hidden": ariaHidden = true
132
+ }) {
133
+ const Icon = getSemanticIconComponent(token, fallbackKind, fallbackToken);
134
+ return /* @__PURE__ */ jsx(
135
+ "span",
136
+ {
137
+ className,
138
+ "aria-hidden": ariaHidden,
139
+ style: {
140
+ display: "inline-flex",
141
+ alignItems: "center",
142
+ justifyContent: "center",
143
+ width: size,
144
+ height: size,
145
+ minWidth: size,
146
+ color: "currentColor",
147
+ flexShrink: 0,
148
+ ...style
149
+ },
150
+ children: /* @__PURE__ */ jsx(Icon, { size, stroke })
151
+ }
152
+ );
153
+ }
154
+
155
+ export { SemanticIcon, extendSemanticIconRegistry, getSemanticIconComponent, resolveSemanticIconComponent };
@@ -0,0 +1,448 @@
1
+ import { PRESETS, getPreset, generateShades } from './chunk-HLFFKKT3.js';
2
+ import { Tooltip, Tree, Text, TagsInput, Tabs, Table, Stack, SimpleGrid, Select, Combobox, SegmentedControl, ScrollArea, Paper, Popover, Notification, MultiSelect, Modal, Menu, Input, HoverCard, Group, Grid, Flex, Drawer, Code, Divider, Card, Button, Accordion, createTheme } from '@mantine/core';
3
+ import { createContext, useContext } from 'react';
4
+
5
+ // src/theme/cssVariables.ts
6
+ var TOKEN_VAR_MAP = {
7
+ primary: "--color-primary",
8
+ primaryContrast: "--color-primary-contrast",
9
+ background: "--color-background",
10
+ surface: "--color-surface",
11
+ surfaceHover: "--color-surface-hover",
12
+ elevatedSurface: "--color-elevated",
13
+ text: "--color-text",
14
+ textDimmed: "--color-text-dimmed",
15
+ textSubtle: "--color-text-subtle",
16
+ border: "--color-border",
17
+ error: "--color-error",
18
+ warning: "--color-warning",
19
+ success: "--color-success",
20
+ glassBackground: "--glass-background",
21
+ glassBlur: "--glass-blur",
22
+ shadow: "--standard-box-shadow",
23
+ cardShadow: "--card-shadow",
24
+ durationFast: "--duration-fast",
25
+ durationNormal: "--duration-normal",
26
+ easing: "--easing",
27
+ destructiveFg: "--color-destructive-fg",
28
+ fontHeading: "--font-heading",
29
+ fontSans: "--font-sans"
30
+ };
31
+ var FRAMEWORK_BRIDGE = {
32
+ "--mantine-color-text": "var(--color-text)",
33
+ "--mantine-color-body": "var(--color-background)",
34
+ "--mantine-color-dimmed": "var(--color-text-dimmed)",
35
+ // Primary color functional variants — used by Tabs, SegmentedControl, Badge, Button, etc.
36
+ "--mantine-primary-color-filled": "var(--color-primary)",
37
+ "--mantine-primary-color-filled-hover": "color-mix(in srgb, var(--color-primary) 90%, black)",
38
+ "--mantine-primary-color-light": "color-mix(in srgb, var(--color-primary) 15%, transparent)",
39
+ "--mantine-primary-color-light-hover": "color-mix(in srgb, var(--color-primary) 20%, transparent)",
40
+ "--mantine-primary-color-light-color": "var(--color-primary)",
41
+ "--mantine-primary-color-contrast": "var(--color-primary-contrast)",
42
+ // Active/selected state — used by selectable cards, active filters, plan tiers, etc.
43
+ "--surface-primary-faint": "color-mix(in srgb, var(--color-primary) 5%, var(--color-elevated))",
44
+ "--surface-primary-subtle": "color-mix(in srgb, var(--color-primary) 6%, var(--color-elevated))",
45
+ "--surface-primary-muted": "color-mix(in srgb, var(--color-primary) 8%, var(--color-elevated))",
46
+ "--surface-primary-strong": "color-mix(in srgb, var(--color-primary) 18%, var(--color-elevated))",
47
+ "--border-primary-faint": "color-mix(in srgb, var(--color-primary) 12%, var(--color-border))",
48
+ "--border-primary-soft": "color-mix(in srgb, var(--color-primary) 16%, var(--color-border))",
49
+ "--border-primary-subtle": "color-mix(in srgb, var(--color-primary) 18%, var(--color-border))",
50
+ "--border-primary-muted": "color-mix(in srgb, var(--color-primary) 34%, var(--color-border))",
51
+ "--border-primary-strong": "color-mix(in srgb, var(--color-primary) 40%, var(--color-border))",
52
+ "--active-border": "1px solid var(--border-primary-strong)",
53
+ "--active-background": "var(--surface-primary-muted)",
54
+ "--input-value-background": "var(--surface-primary-strong)",
55
+ "--input-value-border": "1px solid var(--border-primary-muted)"
56
+ };
57
+ function shadesToVars(shades) {
58
+ const vars = {};
59
+ for (let i = 0; i < shades.length; i++) {
60
+ vars[`--mantine-color-primary-${i}`] = shades[i];
61
+ }
62
+ return vars;
63
+ }
64
+ function presetToVars(tokens) {
65
+ const result = {};
66
+ for (const [key, varName] of Object.entries(TOKEN_VAR_MAP)) {
67
+ const value = tokens[key];
68
+ if (value) result[varName] = value;
69
+ }
70
+ return result;
71
+ }
72
+ function mapTokens(tokens) {
73
+ if (!tokens) return {};
74
+ const result = {};
75
+ for (const [key, varName] of Object.entries(TOKEN_VAR_MAP)) {
76
+ const value = tokens[key];
77
+ if (value) result[varName] = value;
78
+ }
79
+ return result;
80
+ }
81
+ function createCssVariablesResolver(tokens, preset, presetsMap) {
82
+ const resolved = getPreset(preset ?? "default", presetsMap);
83
+ const lightDefaults = presetToVars(resolved.light);
84
+ const darkDefaults = presetToVars(resolved.dark);
85
+ const flat = mapTokens(tokens);
86
+ const light = mapTokens(tokens?.light);
87
+ const dark = mapTokens(tokens?.dark);
88
+ const lightPrimary = tokens?.light?.primary ?? tokens?.primary ?? resolved.light.primary;
89
+ const darkPrimary = tokens?.dark?.primary ?? tokens?.primary ?? resolved.dark.primary;
90
+ const lightShades = shadesToVars(generateShades(lightPrimary));
91
+ const darkShades = shadesToVars(generateShades(darkPrimary));
92
+ return () => ({
93
+ variables: { ...FRAMEWORK_BRIDGE },
94
+ light: { ...lightShades, ...lightDefaults, ...flat, ...light },
95
+ dark: { ...darkShades, ...darkDefaults, ...flat, ...dark }
96
+ });
97
+ }
98
+ var DEFAULT_SIZE = "sm";
99
+ var glassBase = {
100
+ backdropFilter: "var(--glass-blur)",
101
+ WebkitBackdropFilter: "var(--glass-blur)",
102
+ border: "1px solid var(--color-border)"
103
+ };
104
+ var inputValuePillStyles = {
105
+ backgroundColor: "var(--input-value-background)",
106
+ border: "var(--input-value-border)",
107
+ color: "var(--color-text)"
108
+ };
109
+ var componentThemes = {
110
+ Accordion: Accordion.extend({
111
+ styles: {
112
+ item: {
113
+ borderColor: "var(--color-border)"
114
+ },
115
+ content: {
116
+ backgroundColor: "var(--color-surface)"
117
+ }
118
+ }
119
+ }),
120
+ // Button data-variant selector styles are in custom.css (attribute selectors unsupported in styles object)
121
+ Button: Button.extend({
122
+ styles: {
123
+ root: {
124
+ transition: `all var(--duration-fast) var(--easing)`
125
+ }
126
+ }
127
+ }),
128
+ Card: Card.extend({
129
+ defaultProps: {
130
+ p: DEFAULT_SIZE
131
+ },
132
+ styles: {
133
+ root: {
134
+ backgroundColor: "var(--color-surface)",
135
+ ...glassBase,
136
+ boxShadow: "var(--card-shadow)"
137
+ }
138
+ }
139
+ }),
140
+ // Checkbox styles are in custom.css to support :checked pseudo-selector
141
+ Divider: Divider.extend({
142
+ styles: {
143
+ root: {
144
+ borderColor: "var(--color-border)"
145
+ }
146
+ }
147
+ }),
148
+ Code: Code.extend({
149
+ styles: {
150
+ root: {
151
+ backgroundColor: "var(--color-surface)",
152
+ border: "1px solid var(--color-border)"
153
+ }
154
+ }
155
+ }),
156
+ Drawer: Drawer.extend({
157
+ styles: {
158
+ header: {
159
+ backgroundColor: "transparent"
160
+ },
161
+ title: {
162
+ fontFamily: "var(--font-sans, var(--mantine-font-family))",
163
+ fontSize: "var(--mantine-font-size-xl)",
164
+ fontWeight: 600,
165
+ color: "var(--color-text)"
166
+ },
167
+ content: {
168
+ backgroundColor: "var(--color-elevated, var(--color-background))",
169
+ ...glassBase
170
+ }
171
+ }
172
+ }),
173
+ Flex: Flex.extend({
174
+ defaultProps: {
175
+ gap: DEFAULT_SIZE
176
+ }
177
+ }),
178
+ Grid: Grid.extend({
179
+ defaultProps: {
180
+ gutter: DEFAULT_SIZE
181
+ }
182
+ }),
183
+ Group: Group.extend({
184
+ defaultProps: {
185
+ gap: DEFAULT_SIZE
186
+ }
187
+ }),
188
+ HoverCard: HoverCard.extend({
189
+ styles: {
190
+ dropdown: {
191
+ backgroundColor: "var(--glass-background)",
192
+ ...glassBase,
193
+ boxShadow: "var(--standard-box-shadow)"
194
+ }
195
+ }
196
+ }),
197
+ Input: Input.extend({
198
+ styles: {
199
+ input: {
200
+ backgroundColor: "var(--color-surface)",
201
+ border: "none",
202
+ borderBottom: "1px solid var(--color-border)",
203
+ borderRadius: "0"
204
+ }
205
+ }
206
+ }),
207
+ Menu: Menu.extend({
208
+ styles: {
209
+ dropdown: {
210
+ backgroundColor: "var(--glass-background)",
211
+ ...glassBase,
212
+ boxShadow: "var(--standard-box-shadow)"
213
+ }
214
+ }
215
+ }),
216
+ Modal: Modal.extend({
217
+ defaultProps: {
218
+ withCloseButton: false,
219
+ centered: true,
220
+ padding: "xs"
221
+ },
222
+ styles: {
223
+ header: {
224
+ backgroundColor: "transparent"
225
+ },
226
+ title: {
227
+ fontFamily: "var(--font-sans, var(--mantine-font-family))",
228
+ fontSize: "var(--mantine-font-size-xl)",
229
+ fontWeight: 600,
230
+ color: "var(--color-text)"
231
+ },
232
+ content: {
233
+ backgroundColor: "var(--color-elevated, var(--color-background))",
234
+ ...glassBase
235
+ }
236
+ }
237
+ }),
238
+ MultiSelect: MultiSelect.extend({
239
+ styles: {
240
+ pill: inputValuePillStyles
241
+ }
242
+ }),
243
+ Notification: Notification.extend({
244
+ styles: {
245
+ root: {
246
+ backgroundColor: "color-mix(in srgb, var(--color-surface) 90%, transparent)",
247
+ ...glassBase
248
+ }
249
+ }
250
+ }),
251
+ Popover: Popover.extend({
252
+ styles: {
253
+ dropdown: {
254
+ backgroundColor: "var(--glass-background)",
255
+ ...glassBase,
256
+ boxShadow: "var(--standard-box-shadow)"
257
+ }
258
+ }
259
+ }),
260
+ Paper: Paper.extend({
261
+ styles: {
262
+ root: {
263
+ backgroundColor: "var(--glass-background)",
264
+ ...glassBase,
265
+ boxShadow: "var(--card-shadow)",
266
+ padding: `var(--mantine-spacing-${DEFAULT_SIZE})`
267
+ }
268
+ }
269
+ }),
270
+ ScrollArea: ScrollArea.extend({
271
+ defaultProps: {
272
+ scrollbarSize: 8
273
+ },
274
+ styles: {
275
+ scrollbar: {
276
+ background: "transparent",
277
+ '&[data-orientation="vertical"]': {
278
+ width: "8px"
279
+ },
280
+ '&[data-orientation="horizontal"]': {
281
+ height: "8px"
282
+ }
283
+ },
284
+ thumb: {
285
+ borderRadius: "var(--mantine-radius-default)",
286
+ background: "color-mix(in srgb, var(--color-text-subtle) 50%, var(--color-border))",
287
+ "&:hover": {
288
+ background: "var(--color-text-subtle)"
289
+ }
290
+ }
291
+ }
292
+ }),
293
+ SegmentedControl: SegmentedControl.extend({
294
+ styles: {
295
+ root: {
296
+ backgroundColor: "var(--color-surface)"
297
+ },
298
+ indicator: {
299
+ backgroundColor: "var(--color-surface-hover)",
300
+ boxShadow: "var(--standard-box-shadow)"
301
+ }
302
+ }
303
+ }),
304
+ Combobox: Combobox.extend({
305
+ styles: {
306
+ dropdown: {
307
+ backgroundColor: "var(--color-surface)"
308
+ }
309
+ }
310
+ }),
311
+ Select: Select.extend({
312
+ styles: {
313
+ dropdown: {
314
+ backgroundColor: "var(--color-surface)"
315
+ }
316
+ }
317
+ }),
318
+ // Switch styles are in custom.css to support [data-checked] attribute selector
319
+ SimpleGrid: SimpleGrid.extend({
320
+ defaultProps: {
321
+ spacing: DEFAULT_SIZE,
322
+ verticalSpacing: DEFAULT_SIZE
323
+ }
324
+ }),
325
+ Stack: Stack.extend({
326
+ defaultProps: {
327
+ gap: DEFAULT_SIZE
328
+ }
329
+ }),
330
+ Table: Table.extend({
331
+ defaultProps: {
332
+ highlightOnHover: true
333
+ },
334
+ styles: {
335
+ table: {
336
+ "--table-border-color": "var(--color-border)",
337
+ "--table-highlight-on-hover-color": "var(--color-surface-hover)"
338
+ }
339
+ }
340
+ }),
341
+ Tabs: Tabs.extend({}),
342
+ TagsInput: TagsInput.extend({
343
+ styles: {
344
+ pill: inputValuePillStyles
345
+ }
346
+ }),
347
+ Text: Text.extend({
348
+ styles: {
349
+ root: {
350
+ fontFamily: 'Roboto, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'
351
+ }
352
+ }
353
+ }),
354
+ Tree: Tree.extend({
355
+ defaultProps: {
356
+ levelOffset: DEFAULT_SIZE
357
+ },
358
+ styles: {
359
+ root: {
360
+ listStyle: "none",
361
+ margin: 0,
362
+ padding: "var(--mantine-spacing-xs)",
363
+ color: "var(--color-text)"
364
+ },
365
+ node: {
366
+ listStyle: "none",
367
+ outline: "none",
368
+ "&:focus-visible > [data-value]": {
369
+ outline: "2px solid color-mix(in srgb, var(--color-primary) 55%, transparent)",
370
+ outlineOffset: "2px"
371
+ }
372
+ },
373
+ subtree: {
374
+ listStyle: "none",
375
+ margin: 0,
376
+ marginInlineStart: "var(--mantine-spacing-xs)",
377
+ paddingInlineStart: "var(--mantine-spacing-sm)",
378
+ borderInlineStart: "1px solid var(--color-border)"
379
+ },
380
+ label: {
381
+ display: "flex",
382
+ alignItems: "center",
383
+ gap: "var(--mantine-spacing-xs)",
384
+ minHeight: "calc(var(--mantine-spacing-xl) + var(--mantine-spacing-xs))",
385
+ padding: "var(--mantine-spacing-xs) var(--mantine-spacing-sm)",
386
+ border: "1px solid transparent",
387
+ borderRadius: "var(--mantine-radius-sm)",
388
+ color: "var(--color-text)",
389
+ transition: `background-color var(--duration-fast) var(--easing), border-color var(--duration-fast) var(--easing), color var(--duration-fast) var(--easing)`,
390
+ "&[data-hovered]": {
391
+ backgroundColor: "var(--color-surface-hover)",
392
+ borderColor: "var(--color-border)"
393
+ },
394
+ "&[data-selected]": {
395
+ backgroundColor: "color-mix(in srgb, var(--color-primary) 12%, transparent)",
396
+ borderColor: "color-mix(in srgb, var(--color-primary) 38%, var(--color-border))",
397
+ color: "var(--color-primary)"
398
+ }
399
+ }
400
+ }
401
+ }),
402
+ // Timeline styles are in custom.css to override color-scheme-specific selectors
403
+ Tooltip: Tooltip.extend({
404
+ styles: {
405
+ tooltip: {
406
+ backgroundColor: "var(--glass-background)",
407
+ ...glassBase,
408
+ color: "var(--color-text)",
409
+ boxShadow: "var(--standard-box-shadow)"
410
+ }
411
+ }
412
+ })
413
+ // Pagination styles are in custom.css to support :not([data-active]) selector
414
+ };
415
+ var mantineThemeOverride = createTheme({
416
+ defaultRadius: "xs",
417
+ fontFamily: 'Roboto, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
418
+ cursorType: "pointer",
419
+ spacing: {
420
+ xs: "0.5rem",
421
+ sm: "0.75rem",
422
+ md: "1rem",
423
+ lg: "1.5rem",
424
+ xl: "2rem"
425
+ },
426
+ radius: {
427
+ xs: "0.25rem",
428
+ sm: "0.5rem",
429
+ md: "0.75rem",
430
+ lg: "1rem",
431
+ xl: "1.5rem"
432
+ },
433
+ fontSizes: {
434
+ xs: "0.75rem",
435
+ sm: "0.875rem",
436
+ md: "1rem",
437
+ lg: "1.125rem",
438
+ xl: "1.25rem"
439
+ },
440
+ components: componentThemes
441
+ });
442
+ var PresetsContext = createContext(PRESETS);
443
+ var PresetsProvider = PresetsContext.Provider;
444
+ function usePresetsContext() {
445
+ return useContext(PresetsContext);
446
+ }
447
+
448
+ export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, glassBase, mantineThemeOverride, usePresetsContext };
@@ -1,12 +1,13 @@
1
- import { CyberAreaChart, CostTrendChart, ActivityTrendChart } from './chunk-KMAXFJPH.js';
1
+ import { CostTrendChart, ActivityTrendChart } from './chunk-OGXKOMUT.js';
2
+ import { CyberAreaChart } from './chunk-CW3UNAF2.js';
2
3
  import { AppShellLoader } from './chunk-RYTEQBAO.js';
3
4
  import { FilterBar } from './chunk-PDHTXPSF.js';
4
5
  import { CustomModal } from './chunk-KVJ3LFH2.js';
5
6
  import { formatDuration } from './chunk-E4WQGJNS.js';
6
- import { useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useErrorAnalysis, useTimeRangeDates, useErrorDetail, useResolveErrorsByExecution, useResources, useCostTrends, useCostSummary, useCostByModel, useCostBreakdown, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead, useTestNotification } from './chunk-CPAJXBTL.js';
7
- import { CenteredErrorState, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, EmptyState, PageTitleCaption, JsonViewer } from './chunk-U36X6NZM.js';
7
+ import { useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useErrorAnalysis, useTimeRangeDates, useErrorDetail, useResolveErrorsByExecution, useResources, useCostTrends, useCostSummary, useCostByModel, useCostBreakdown, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead, useTestNotification } from './chunk-YHBPR67D.js';
8
+ import { CenteredErrorState, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, EmptyState, PageTitleCaption, JsonViewer } from './chunk-RIFTUOPE.js';
8
9
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
9
- import { formatBucketTime, PAGE_SIZE_DEFAULT, getTimeRangeDates } from './chunk-SGXXJE52.js';
10
+ import { formatBucketTime, PAGE_SIZE_DEFAULT, getTimeRangeDates } from './chunk-QD4X4H5A.js';
10
11
  import { useState, useMemo, useCallback } from 'react';
11
12
  import { Table, Text, Badge, Tooltip, Card, Group, Select, SegmentedControl, Button, TextInput, Stack, Paper, Center, Loader, ActionIcon, NumberFormatter, Box, Alert, Switch, Pagination, UnstyledButton, Title, Divider, Code, CopyButton, Accordion } from '@mantine/core';
12
13
  import { IconActivity, IconFilterOff, IconCircleCheck, IconThumbDown, IconThumbUp, IconClock, IconCircleX, IconSearch, IconArrowUpRight, IconAlertTriangle, IconAlertCircle, IconExternalLink, IconChartPie, IconHeartbeat, IconDownload, IconCpu, IconTrendingUp, IconChartBar, IconCash, IconInfoCircle, IconExclamationCircle, IconBug, IconChecks, IconCircle, IconCircleFilled, IconCheck, IconCopy, IconCircleDashed, IconPlus, IconArrowUp, IconArrowDown, IconFileOff, IconRobot, IconKey, IconUser } from '@tabler/icons-react';