@elevasis/ui 2.25.0 → 2.25.2

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 (101) hide show
  1. package/dist/app/index.css +14 -2
  2. package/dist/app/index.d.ts +457 -357
  3. package/dist/app/index.js +8 -7
  4. package/dist/auth/index.js +4 -4
  5. package/dist/charts/index.js +7 -7
  6. package/dist/{chunk-DDZOHLHB.js → chunk-26HQMR7S.js} +1 -1
  7. package/dist/{chunk-ZMXZ476Y.js → chunk-3AHEHVJ6.js} +3 -3
  8. package/dist/{chunk-LJWV4TWV.js → chunk-4ZFBVND2.js} +2 -2
  9. package/dist/{chunk-7D2HSSIW.js → chunk-7LJUTTXU.js} +5 -5
  10. package/dist/{chunk-ABV5LDDC.js → chunk-AZQY7AJR.js} +13 -24
  11. package/dist/{chunk-BIWHHWCJ.js → chunk-DWK2QIAK.js} +2 -1
  12. package/dist/{chunk-ZDKQNQ4X.js → chunk-GESXCQWY.js} +1 -1
  13. package/dist/{chunk-Z6FAH4XV.js → chunk-HKBEURCV.js} +1 -1
  14. package/dist/{chunk-HC2KV6BU.js → chunk-HOIT677G.js} +1 -1
  15. package/dist/chunk-IS53MXE4.js +230 -0
  16. package/dist/{chunk-WSC5LU3U.js → chunk-IX7LWINC.js} +6 -5
  17. package/dist/{chunk-AXXTN44Z.js → chunk-IYIZYMIE.js} +2 -2
  18. package/dist/{chunk-WWVSPOJY.js → chunk-JDQSCEEF.js} +1237 -642
  19. package/dist/{chunk-AZXSFDG2.js → chunk-JMI7L7Y7.js} +113 -63
  20. package/dist/{chunk-TSSKOQBX.js → chunk-KMAXFJPH.js} +2 -2
  21. package/dist/{chunk-HQ7M6PBW.js → chunk-KU7ZDWQ7.js} +1 -1
  22. package/dist/{chunk-ZGZZIR6K.js → chunk-L4RT57WU.js} +7 -7
  23. package/dist/{chunk-LK4MPIMK.js → chunk-MU4VPAMR.js} +2 -2
  24. package/dist/{chunk-3JCMO7SD.js → chunk-N55DVMAG.js} +1 -1
  25. package/dist/{chunk-EIOJNUPL.js → chunk-PNLJIPV5.js} +1 -1
  26. package/dist/{chunk-6Z3G4U2R.js → chunk-Q5BEODAT.js} +3 -2
  27. package/dist/{chunk-HVC2BTFO.js → chunk-QB2CC4VH.js} +1979 -257
  28. package/dist/{chunk-QJLRDTYS.js → chunk-RSG2O3HF.js} +932 -707
  29. package/dist/{chunk-M25JL54Z.js → chunk-RYTEQBAO.js} +1 -1
  30. package/dist/{chunk-XUYBOO32.js → chunk-U36X6NZM.js} +15 -7
  31. package/dist/{chunk-QSTH6T77.js → chunk-VKMNWHTL.js} +1 -1
  32. package/dist/{chunk-V3UOW2HG.js → chunk-VOVZLL23.js} +4 -4
  33. package/dist/{chunk-SLH2QLKV.js → chunk-WFTNY755.js} +1 -1
  34. package/dist/{chunk-DK2HVHCY.js → chunk-WKJ47GIW.js} +1 -1
  35. package/dist/chunk-X4WBGKJQ.js +138 -0
  36. package/dist/{chunk-QHSW4WHM.js → chunk-XTVZFT7U.js} +1 -1
  37. package/dist/components/index.css +14 -2
  38. package/dist/components/index.d.ts +478 -386
  39. package/dist/components/index.js +138 -336
  40. package/dist/components/navigation/index.css +14 -2
  41. package/dist/components/navigation/index.js +8 -8
  42. package/dist/features/auth/index.css +14 -2
  43. package/dist/features/auth/index.d.ts +369 -363
  44. package/dist/features/auth/index.js +7 -7
  45. package/dist/features/crm/index.css +14 -2
  46. package/dist/features/crm/index.d.ts +551 -360
  47. package/dist/features/crm/index.js +19 -19
  48. package/dist/features/dashboard/index.css +14 -2
  49. package/dist/features/dashboard/index.js +20 -20
  50. package/dist/features/delivery/index.css +14 -2
  51. package/dist/features/delivery/index.d.ts +363 -357
  52. package/dist/features/delivery/index.js +19 -19
  53. package/dist/features/lead-gen/index.css +14 -2
  54. package/dist/features/lead-gen/index.d.ts +160 -2
  55. package/dist/features/lead-gen/index.js +20 -19
  56. package/dist/features/monitoring/index.css +14 -2
  57. package/dist/features/monitoring/index.js +21 -21
  58. package/dist/features/monitoring/requests/index.css +14 -2
  59. package/dist/features/monitoring/requests/index.js +17 -17
  60. package/dist/features/operations/index.css +14 -2
  61. package/dist/features/operations/index.js +24 -23
  62. package/dist/features/seo/index.js +2 -2
  63. package/dist/features/settings/index.css +14 -2
  64. package/dist/features/settings/index.d.ts +369 -363
  65. package/dist/features/settings/index.js +19 -19
  66. package/dist/hooks/delivery/index.css +14 -2
  67. package/dist/hooks/delivery/index.d.ts +363 -357
  68. package/dist/hooks/delivery/index.js +2 -2
  69. package/dist/hooks/index.css +14 -2
  70. package/dist/hooks/index.d.ts +746 -399
  71. package/dist/hooks/index.js +17 -17
  72. package/dist/hooks/published.css +14 -2
  73. package/dist/hooks/published.d.ts +746 -399
  74. package/dist/hooks/published.js +17 -17
  75. package/dist/index.css +14 -2
  76. package/dist/index.d.ts +862 -381
  77. package/dist/index.js +17 -17
  78. package/dist/initialization/index.d.ts +369 -363
  79. package/dist/initialization/index.js +4 -4
  80. package/dist/layout/index.d.ts +6 -0
  81. package/dist/layout/index.js +5 -5
  82. package/dist/organization/index.css +14 -2
  83. package/dist/organization/index.js +4 -4
  84. package/dist/profile/index.d.ts +369 -363
  85. package/dist/profile/index.js +2 -2
  86. package/dist/provider/ElevasisServiceContext.d.ts +1 -0
  87. package/dist/provider/ElevasisServiceContext.js +1 -1
  88. package/dist/provider/index.css +14 -2
  89. package/dist/provider/index.d.ts +503 -362
  90. package/dist/provider/index.js +14 -14
  91. package/dist/provider/published.css +14 -2
  92. package/dist/provider/published.d.ts +494 -359
  93. package/dist/provider/published.js +12 -12
  94. package/dist/supabase/index.d.ts +369 -357
  95. package/dist/test-utils/index.js +1 -1
  96. package/dist/typeform/index.js +49 -20
  97. package/dist/types/index.d.ts +382 -363
  98. package/package.json +4 -4
  99. package/dist/chunk-CEWTOKE7.js +0 -109
  100. /package/dist/{chunk-IRW7JMQ4.js → chunk-5WWZXCS5.js} +0 -0
  101. /package/dist/{chunk-QJ2KCHKX.js → chunk-E565XMTQ.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { useAppearance } from './chunk-QJ2KCHKX.js';
1
+ import { useAppearance } from './chunk-E565XMTQ.js';
2
2
  import { topbarHeight } from './chunk-DT3QYZVU.js';
3
3
  import { Stack, Title, Button } from '@mantine/core';
4
4
  import { IconAlertCircle } from '@tabler/icons-react';
@@ -638,18 +638,26 @@ function catalogItemToResourceDefinition(item) {
638
638
  status: item.status
639
639
  };
640
640
  }
641
- function CardHeader({ icon, title, subtitle, rightSection }) {
642
- const wrappedIcon = icon ? /* @__PURE__ */ jsx(ThemeIcon, { size: "md", variant: "light", children: icon }) : null;
643
- return /* @__PURE__ */ jsxs(Group, { justify: "space-between", mb: "md", children: [
644
- subtitle ? /* @__PURE__ */ jsxs("div", { children: [
641
+ function CardHeader({
642
+ icon,
643
+ title,
644
+ subtitle,
645
+ rightSection,
646
+ titleOrder = 3,
647
+ iconColor,
648
+ mb = "md"
649
+ }) {
650
+ const wrappedIcon = icon ? /* @__PURE__ */ jsx(ThemeIcon, { size: "md", variant: "light", color: iconColor, children: icon }) : null;
651
+ return /* @__PURE__ */ jsxs(Group, { justify: "space-between", mb, gap: "md", align: "flex-start", wrap: "nowrap", children: [
652
+ subtitle ? /* @__PURE__ */ jsxs(Box, { style: { minWidth: 0 }, children: [
645
653
  /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
646
654
  wrappedIcon,
647
- /* @__PURE__ */ jsx(Title, { order: 3, children: title })
655
+ /* @__PURE__ */ jsx(Title, { order: titleOrder, style: { overflowWrap: "anywhere" }, children: title })
648
656
  ] }),
649
- /* @__PURE__ */ jsx(Text, { size: "sm", mt: 2, style: { color: "var(--color-text-dimmed)" }, children: subtitle })
657
+ /* @__PURE__ */ jsx(Text, { size: "sm", mt: 2, style: { color: "var(--color-text-dimmed)", overflowWrap: "anywhere" }, children: subtitle })
650
658
  ] }) : /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
651
659
  wrappedIcon,
652
- /* @__PURE__ */ jsx(Title, { order: 3, children: title })
660
+ /* @__PURE__ */ jsx(Title, { order: titleOrder, style: { overflowWrap: "anywhere" }, children: title })
653
661
  ] }),
654
662
  rightSection
655
663
  ] });
@@ -1,4 +1,4 @@
1
- import { useElevasisServices } from './chunk-IRW7JMQ4.js';
1
+ import { useElevasisServices } from './chunk-5WWZXCS5.js';
2
2
  import { useQuery } from '@tanstack/react-query';
3
3
 
4
4
  // src/hooks/observability/queryKeys.ts
@@ -1,10 +1,10 @@
1
- import { CyberAreaChart, CostTrendChart, ActivityTrendChart } from './chunk-TSSKOQBX.js';
2
- import { AppShellLoader } from './chunk-M25JL54Z.js';
1
+ import { CyberAreaChart, CostTrendChart, ActivityTrendChart } from './chunk-KMAXFJPH.js';
2
+ import { AppShellLoader } from './chunk-RYTEQBAO.js';
3
3
  import { FilterBar } from './chunk-PDHTXPSF.js';
4
4
  import { CustomModal } from './chunk-KVJ3LFH2.js';
5
5
  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-QJLRDTYS.js';
7
- import { CenteredErrorState, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, EmptyState, PageTitleCaption, JsonViewer } from './chunk-XUYBOO32.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-RSG2O3HF.js';
7
+ import { CenteredErrorState, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, EmptyState, PageTitleCaption, JsonViewer } from './chunk-U36X6NZM.js';
8
8
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
9
9
  import { formatBucketTime, PAGE_SIZE_DEFAULT, getTimeRangeDates } from './chunk-SGXXJE52.js';
10
10
  import { useState, useMemo, useCallback } from 'react';
@@ -1,4 +1,4 @@
1
- import { useInitialization } from './chunk-DK2HVHCY.js';
1
+ import { useInitialization } from './chunk-WKJ47GIW.js';
2
2
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
3
3
  import { useRef, useCallback, useEffect } from 'react';
4
4
  import { useQueryClient } from '@tanstack/react-query';
@@ -1,5 +1,5 @@
1
1
  import { useOrganization } from './chunk-DD3CCMCZ.js';
2
- import { useProfile } from './chunk-QHSW4WHM.js';
2
+ import { useProfile } from './chunk-XTVZFT7U.js';
3
3
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
4
4
  import { createContext, useContext, useMemo, useCallback, createElement } from 'react';
5
5
 
@@ -0,0 +1,138 @@
1
+ import { subshellNavItemIconSize } from './chunk-DT3QYZVU.js';
2
+ import { UnstyledButton, Stack, Group, Text } from '@mantine/core';
3
+ import { jsx, jsxs } from 'react/jsx-runtime';
4
+
5
+ var activeColor = "var(--color-primary)";
6
+ var defaultColor = "var(--color-text-subtle)";
7
+ var hoverColor = "var(--color-text)";
8
+ var activeBg = `color-mix(in srgb, ${activeColor} 10%, transparent)`;
9
+ var SubshellNavItem = ({
10
+ icon: Icon,
11
+ label,
12
+ isActive = false,
13
+ onClick,
14
+ description,
15
+ badge,
16
+ disabled = false,
17
+ href
18
+ }) => {
19
+ const handleAnchorClick = disabled ? void 0 : (event) => {
20
+ if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || event.button !== 0) {
21
+ return;
22
+ }
23
+ event.preventDefault();
24
+ onClick();
25
+ };
26
+ const sharedStyle = {
27
+ width: "100%",
28
+ padding: "var(--mantine-spacing-xs)",
29
+ backgroundColor: isActive ? activeBg : "transparent",
30
+ borderRadius: "var(--mantine-radius-default)",
31
+ transition: `all var(--duration-fast) var(--easing)`,
32
+ cursor: disabled ? "not-allowed" : "pointer",
33
+ opacity: disabled ? 0.5 : 1,
34
+ color: "inherit",
35
+ textDecoration: "none",
36
+ display: "block"
37
+ };
38
+ const handleMouseEnter = (e) => {
39
+ if (!isActive && !disabled) {
40
+ e.currentTarget.style.backgroundColor = "var(--color-surface-hover)";
41
+ const textElements = e.currentTarget.querySelectorAll("[data-text-element]");
42
+ textElements.forEach((el) => {
43
+ el.style.color = hoverColor;
44
+ });
45
+ }
46
+ };
47
+ const handleMouseLeave = (e) => {
48
+ if (!isActive && !disabled) {
49
+ e.currentTarget.style.backgroundColor = "transparent";
50
+ const textElements = e.currentTarget.querySelectorAll("[data-text-element]");
51
+ textElements.forEach((el) => {
52
+ el.style.color = defaultColor;
53
+ });
54
+ }
55
+ };
56
+ const inner = /* @__PURE__ */ jsxs(Stack, { gap: 2, children: [
57
+ /* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", children: [
58
+ /* @__PURE__ */ jsx(
59
+ Icon,
60
+ {
61
+ size: subshellNavItemIconSize,
62
+ style: {
63
+ flexShrink: 0,
64
+ opacity: isActive ? 1 : 0.6,
65
+ color: isActive ? activeColor : defaultColor
66
+ }
67
+ }
68
+ ),
69
+ /* @__PURE__ */ jsx(
70
+ Text,
71
+ {
72
+ size: "sm",
73
+ fw: isActive ? 600 : 400,
74
+ style: {
75
+ overflow: "hidden",
76
+ textOverflow: "ellipsis",
77
+ whiteSpace: "nowrap",
78
+ flex: 1,
79
+ fontFamily: "var(--elevasis-font-family-subtitle)",
80
+ color: isActive ? activeColor : defaultColor,
81
+ transition: `color var(--duration-fast) var(--easing)`
82
+ },
83
+ "data-text-element": true,
84
+ children: label
85
+ }
86
+ ),
87
+ badge && /* @__PURE__ */ jsx("div", { style: { flexShrink: 0 }, children: badge })
88
+ ] }),
89
+ description && /* @__PURE__ */ jsx(
90
+ Text,
91
+ {
92
+ size: "xs",
93
+ c: "dimmed",
94
+ style: {
95
+ paddingLeft: "22px",
96
+ lineHeight: 1.2,
97
+ color: isActive ? activeColor : defaultColor,
98
+ opacity: isActive ? 0.8 : 0.6,
99
+ transition: `all var(--duration-fast) var(--easing)`,
100
+ display: "-webkit-box",
101
+ WebkitLineClamp: 2,
102
+ WebkitBoxOrient: "vertical",
103
+ overflow: "hidden",
104
+ textOverflow: "ellipsis"
105
+ },
106
+ "data-text-element": true,
107
+ children: description
108
+ }
109
+ )
110
+ ] });
111
+ if (href) {
112
+ return /* @__PURE__ */ jsx(
113
+ UnstyledButton,
114
+ {
115
+ component: "a",
116
+ href,
117
+ onClick: handleAnchorClick,
118
+ style: sharedStyle,
119
+ onMouseEnter: handleMouseEnter,
120
+ onMouseLeave: handleMouseLeave,
121
+ children: inner
122
+ }
123
+ );
124
+ }
125
+ return /* @__PURE__ */ jsx(
126
+ UnstyledButton,
127
+ {
128
+ onClick: disabled ? void 0 : onClick,
129
+ disabled,
130
+ style: sharedStyle,
131
+ onMouseEnter: handleMouseEnter,
132
+ onMouseLeave: handleMouseLeave,
133
+ children: inner
134
+ }
135
+ );
136
+ };
137
+
138
+ export { SubshellNavItem };
@@ -1,4 +1,4 @@
1
- import { ElevasisServiceContext } from './chunk-IRW7JMQ4.js';
1
+ import { ElevasisServiceContext } from './chunk-5WWZXCS5.js';
2
2
  import { useAuthContext } from './chunk-BRJ3QZ4E.js';
3
3
  import { createContext, useContext, useState, useEffect, createElement } from 'react';
4
4
 
@@ -520,6 +520,17 @@
520
520
  .mantine-Button-root[data-variant=default]:hover {
521
521
  background-color: var(--color-surface-hover);
522
522
  }
523
+ .lead-gen-build-action-button:disabled,
524
+ .lead-gen-build-action-button[data-disabled] {
525
+ background-color: color-mix(in srgb, var(--mantine-color-gray-8) 48%, var(--color-surface) 52%) !important;
526
+ border-color: color-mix(in srgb, var(--mantine-color-gray-8) 58%, var(--color-surface) 42%) !important;
527
+ color: color-mix(in srgb, var(--color-text-subtle) 88%, var(--color-text-dimmed) 12%) !important;
528
+ opacity: 0.78;
529
+ }
530
+ .lead-gen-build-action-button:disabled:hover,
531
+ .lead-gen-build-action-button[data-disabled]:hover {
532
+ background-color: color-mix(in srgb, var(--mantine-color-gray-8) 48%, var(--color-surface) 52%) !important;
533
+ }
523
534
  .mantine-Accordion-control:hover {
524
535
  background-color: var(--color-surface-hover);
525
536
  }
@@ -552,11 +563,12 @@
552
563
  ::-webkit-scrollbar-thumb:hover {
553
564
  background: var(--color-text-subtle);
554
565
  }
555
- .mantine-Checkbox-input {
566
+ [data-mantine-color-scheme] .mantine-Checkbox-input:not(:disabled):not(:checked):not([data-indeterminate]) {
556
567
  background-color: var(--color-surface);
557
568
  border-color: var(--color-border);
558
569
  }
559
- .mantine-Checkbox-input:checked {
570
+ [data-mantine-color-scheme] .mantine-Checkbox-input:checked,
571
+ [data-mantine-color-scheme] .mantine-Checkbox-input[data-indeterminate] {
560
572
  background-color: var(--color-primary);
561
573
  border-color: var(--color-primary);
562
574
  }