@elevasis/ui 1.26.1 → 1.27.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/charts/index.js +2 -2
- package/dist/{chunk-AWT255UH.js → chunk-2IJCM3VQ.js} +37 -37
- package/dist/chunk-5COLSYBE.js +199 -0
- package/dist/{chunk-RMPXGBNI.js → chunk-5JSR6TL5.js} +2 -2
- package/dist/chunk-BAGYETKM.js +635 -0
- package/dist/{chunk-L3GVDMCA.js → chunk-C27LLJM6.js} +3 -195
- package/dist/{chunk-O4UB5DQQ.js → chunk-F2J7675J.js} +1 -1
- package/dist/chunk-ITCEULI5.js +238 -0
- package/dist/{chunk-4WKWLFBZ.js → chunk-P5EWG45B.js} +1 -1
- package/dist/{chunk-BS4J2LAW.js → chunk-QTD5HPKD.js} +1 -1
- package/dist/{chunk-ZVJKIJFG.js → chunk-RCQPWA5X.js} +13 -42
- package/dist/chunk-TLAIQC7B.js +6382 -0
- package/dist/{chunk-FEZZ3IDU.js → chunk-TXPUIHX2.js} +10 -10
- package/dist/{chunk-L4XXM55J.js → chunk-W4VYXIN7.js} +142 -3
- package/dist/chunk-WJ7W7JU4.js +2115 -0
- package/dist/{chunk-YNGQ7U5H.js → chunk-WLNEJ6JJ.js} +2 -2
- package/dist/{chunk-4INR75ZS.js → chunk-Y2SYGFRF.js} +589 -65
- package/dist/components/index.d.ts +333 -73
- package/dist/components/index.js +838 -686
- package/dist/features/auth/index.d.ts +125 -0
- package/dist/features/auth/index.js +2 -2
- package/dist/features/dashboard/index.d.ts +28 -2
- package/dist/features/dashboard/index.js +21 -635
- package/dist/features/monitoring/index.d.ts +28 -1
- package/dist/features/monitoring/index.js +19 -529
- package/dist/features/operations/index.d.ts +51 -8
- package/dist/features/operations/index.js +25 -3760
- package/dist/features/settings/index.d.ts +153 -1
- package/dist/features/settings/index.js +19 -1438
- package/dist/hooks/index.d.ts +262 -25
- package/dist/hooks/index.js +12 -8
- package/dist/hooks/published.d.ts +137 -25
- package/dist/hooks/published.js +11 -7
- package/dist/index.d.ts +310 -28
- package/dist/index.js +12 -11
- package/dist/initialization/index.d.ts +125 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +6 -5
- package/dist/organization/index.js +1 -2
- package/dist/profile/index.d.ts +125 -0
- package/dist/provider/index.d.ts +48 -3
- package/dist/provider/index.js +10 -4
- package/dist/provider/published.d.ts +48 -3
- package/dist/provider/published.js +8 -2
- package/dist/supabase/index.d.ts +242 -0
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.ts +126 -1
- package/package.json +3 -3
- package/dist/chunk-LR4WVA7W.js +0 -682
- package/dist/chunk-R7WLWGPO.js +0 -126
- package/dist/chunk-TCKIAHDC.js +0 -2626
- package/dist/chunk-V7XHGJQZ.js +0 -145
- package/dist/{chunk-WWEMNIHW.js → chunk-YYBM5LNJ.js} +1 -1
package/dist/charts/index.js
CHANGED
|
@@ -2,11 +2,11 @@ export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, Cyb
|
|
|
2
2
|
import '../chunk-MCA6LOGM.js';
|
|
3
3
|
import '../chunk-3KMDHCAR.js';
|
|
4
4
|
import '../chunk-NNKKBSJN.js';
|
|
5
|
-
import '../chunk-QJ2S46NI.js';
|
|
6
5
|
import '../chunk-LXHZYSMQ.js';
|
|
7
|
-
import '../chunk-MHW43EOH.js';
|
|
8
6
|
import '../chunk-ELJIFLCB.js';
|
|
9
7
|
import '../chunk-SZHARWKU.js';
|
|
8
|
+
import '../chunk-MHW43EOH.js';
|
|
9
|
+
import '../chunk-QJ2S46NI.js';
|
|
10
10
|
import '../chunk-IOKL7BKE.js';
|
|
11
11
|
import '../chunk-RWQIFKMJ.js';
|
|
12
12
|
import '../chunk-ALA56RGZ.js';
|
|
@@ -1,9 +1,44 @@
|
|
|
1
|
-
import { sidebarGroupChevronSize, sidebarIconInnerSize, sidebarListItemIconSize } from './chunk-QJ2S46NI.js';
|
|
2
1
|
import { useAppearance } from './chunk-QJ2KCHKX.js';
|
|
3
|
-
import {
|
|
2
|
+
import { sidebarGroupChevronSize, sidebarIconInnerSize, sidebarListItemIconSize } from './chunk-QJ2S46NI.js';
|
|
3
|
+
import { Box, Group, Text, Center, Container, Stack, UnstyledButton, Collapse } from '@mantine/core';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import { IconChevronDown, IconChevronRight } from '@tabler/icons-react';
|
|
6
6
|
|
|
7
|
+
var SubshellSidebarSection = ({
|
|
8
|
+
icon: Icon,
|
|
9
|
+
label,
|
|
10
|
+
rightSection,
|
|
11
|
+
withTopBorder = false
|
|
12
|
+
}) => {
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
Box,
|
|
15
|
+
{
|
|
16
|
+
p: "sm",
|
|
17
|
+
style: {
|
|
18
|
+
borderTop: withTopBorder ? "1px solid var(--color-border)" : void 0,
|
|
19
|
+
borderBottom: "1px solid var(--color-border)"
|
|
20
|
+
},
|
|
21
|
+
children: /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
|
|
22
|
+
/* @__PURE__ */ jsx(Icon, { size: 16, color: "var(--color-text-subtle)" }),
|
|
23
|
+
/* @__PURE__ */ jsx(
|
|
24
|
+
Text,
|
|
25
|
+
{
|
|
26
|
+
size: "sm",
|
|
27
|
+
fw: 600,
|
|
28
|
+
c: "var(--color-text-subtle)",
|
|
29
|
+
style: { fontFamily: "var(--mantine-font-family-headings)", flex: 1 },
|
|
30
|
+
children: label
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
rightSection
|
|
34
|
+
] })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
function SubshellLoader() {
|
|
39
|
+
const { loader } = useAppearance();
|
|
40
|
+
return /* @__PURE__ */ jsx(Center, { mih: "calc(100vh - 70px)", children: loader });
|
|
41
|
+
}
|
|
7
42
|
var PageContainer = ({ children }) => {
|
|
8
43
|
return (
|
|
9
44
|
// Add padding to the top of the container to adjust for the topbar height
|
|
@@ -216,40 +251,5 @@ var SidebarListItem = ({
|
|
|
216
251
|
}
|
|
217
252
|
);
|
|
218
253
|
};
|
|
219
|
-
var SubshellSidebarSection = ({
|
|
220
|
-
icon: Icon,
|
|
221
|
-
label,
|
|
222
|
-
rightSection,
|
|
223
|
-
withTopBorder = false
|
|
224
|
-
}) => {
|
|
225
|
-
return /* @__PURE__ */ jsx(
|
|
226
|
-
Box,
|
|
227
|
-
{
|
|
228
|
-
p: "sm",
|
|
229
|
-
style: {
|
|
230
|
-
borderTop: withTopBorder ? "1px solid var(--color-border)" : void 0,
|
|
231
|
-
borderBottom: "1px solid var(--color-border)"
|
|
232
|
-
},
|
|
233
|
-
children: /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
|
|
234
|
-
/* @__PURE__ */ jsx(Icon, { size: 16, color: "var(--color-text-subtle)" }),
|
|
235
|
-
/* @__PURE__ */ jsx(
|
|
236
|
-
Text,
|
|
237
|
-
{
|
|
238
|
-
size: "sm",
|
|
239
|
-
fw: 600,
|
|
240
|
-
c: "var(--color-text-subtle)",
|
|
241
|
-
style: { fontFamily: "var(--mantine-font-family-headings)", flex: 1 },
|
|
242
|
-
children: label
|
|
243
|
-
}
|
|
244
|
-
),
|
|
245
|
-
rightSection
|
|
246
|
-
] })
|
|
247
|
-
}
|
|
248
|
-
);
|
|
249
|
-
};
|
|
250
|
-
function SubshellLoader() {
|
|
251
|
-
const { loader } = useAppearance();
|
|
252
|
-
return /* @__PURE__ */ jsx(Center, { mih: "calc(100vh - 70px)", children: loader });
|
|
253
|
-
}
|
|
254
254
|
|
|
255
255
|
export { CollapsibleSidebarGroup, PageContainer, SidebarListItem, SubshellLoader, SubshellSidebarSection };
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { topbarHeight, sidebarTransitionDuration, sidebarBottomSectionHeight } from './chunk-QJ2S46NI.js';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
|
|
5
|
+
var SubshellContainer = ({ children, className }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className,
|
|
10
|
+
style: {
|
|
11
|
+
display: "flex",
|
|
12
|
+
height: "100%",
|
|
13
|
+
width: "100%",
|
|
14
|
+
position: "relative"
|
|
15
|
+
},
|
|
16
|
+
children
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
var SubshellRightSideContainer = ({ children, className }) => {
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
className,
|
|
25
|
+
style: {
|
|
26
|
+
flex: 1,
|
|
27
|
+
minWidth: 0,
|
|
28
|
+
display: "flex",
|
|
29
|
+
flexDirection: "column",
|
|
30
|
+
overflow: "hidden"
|
|
31
|
+
},
|
|
32
|
+
children
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
var mdSpacing = 16;
|
|
37
|
+
var SubshellContentContainer = ({ children, className }) => {
|
|
38
|
+
return /* @__PURE__ */ jsx(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className,
|
|
42
|
+
style: {
|
|
43
|
+
display: "flex",
|
|
44
|
+
flexDirection: "column",
|
|
45
|
+
flex: 1,
|
|
46
|
+
overflowX: "clip",
|
|
47
|
+
overflowY: "auto",
|
|
48
|
+
minWidth: 0,
|
|
49
|
+
minHeight: 0,
|
|
50
|
+
padding: "var(--mantine-spacing-md)",
|
|
51
|
+
paddingTop: `${topbarHeight + mdSpacing}px`
|
|
52
|
+
},
|
|
53
|
+
children
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
var SubshellSidebar = ({
|
|
58
|
+
children,
|
|
59
|
+
className,
|
|
60
|
+
width,
|
|
61
|
+
collapsible = true,
|
|
62
|
+
defaultOpen = true
|
|
63
|
+
}) => {
|
|
64
|
+
const [isOpen, setIsOpen] = useState(defaultOpen);
|
|
65
|
+
const effectiveWidth = collapsible && !isOpen ? 0 : width;
|
|
66
|
+
if (!collapsible) {
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
68
|
+
"aside",
|
|
69
|
+
{
|
|
70
|
+
className,
|
|
71
|
+
style: {
|
|
72
|
+
width: `${width}px`,
|
|
73
|
+
flexShrink: 0,
|
|
74
|
+
display: "flex",
|
|
75
|
+
flexDirection: "column",
|
|
76
|
+
backgroundColor: "color-mix(in srgb, var(--glass-background) 80%, transparent)",
|
|
77
|
+
backdropFilter: "var(--glass-blur)",
|
|
78
|
+
WebkitBackdropFilter: "var(--glass-blur)",
|
|
79
|
+
borderRight: "1px solid var(--color-border)",
|
|
80
|
+
boxShadow: "var(--card-shadow)",
|
|
81
|
+
clipPath: "inset(-100px -100px -100px 0)",
|
|
82
|
+
minHeight: `calc(100vh - ${topbarHeight}px)`,
|
|
83
|
+
marginTop: `${topbarHeight}px`,
|
|
84
|
+
fontFamily: "var(--elevasis-font-family-subtitle)"
|
|
85
|
+
},
|
|
86
|
+
children
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
return /* @__PURE__ */ jsxs(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
style: {
|
|
94
|
+
position: "relative",
|
|
95
|
+
flexShrink: 0,
|
|
96
|
+
marginTop: `${topbarHeight}px`,
|
|
97
|
+
minHeight: `calc(100vh - ${topbarHeight}px)`
|
|
98
|
+
},
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ jsx(
|
|
101
|
+
"aside",
|
|
102
|
+
{
|
|
103
|
+
className,
|
|
104
|
+
style: {
|
|
105
|
+
width: `${effectiveWidth}px`,
|
|
106
|
+
flexShrink: 0,
|
|
107
|
+
display: "flex",
|
|
108
|
+
flexDirection: "column",
|
|
109
|
+
backgroundColor: "color-mix(in srgb, var(--glass-background) 80%, transparent)",
|
|
110
|
+
backdropFilter: "var(--glass-blur)",
|
|
111
|
+
WebkitBackdropFilter: "var(--glass-blur)",
|
|
112
|
+
borderRight: isOpen ? "1px solid var(--color-border)" : "none",
|
|
113
|
+
boxShadow: isOpen ? "var(--card-shadow)" : "none",
|
|
114
|
+
clipPath: isOpen ? "inset(-100px -100px -100px 0)" : "none",
|
|
115
|
+
height: "100%",
|
|
116
|
+
fontFamily: "var(--elevasis-font-family-subtitle)",
|
|
117
|
+
overflow: "hidden",
|
|
118
|
+
transition: `width ${sidebarTransitionDuration}ms var(--easing)`
|
|
119
|
+
},
|
|
120
|
+
children: /* @__PURE__ */ jsx(
|
|
121
|
+
"div",
|
|
122
|
+
{
|
|
123
|
+
style: {
|
|
124
|
+
width: `${width}px`,
|
|
125
|
+
flexShrink: 0,
|
|
126
|
+
display: "flex",
|
|
127
|
+
flexDirection: "column",
|
|
128
|
+
opacity: isOpen ? 1 : 0,
|
|
129
|
+
transition: `opacity var(--duration-fast) var(--easing)`
|
|
130
|
+
},
|
|
131
|
+
children
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
),
|
|
136
|
+
/* @__PURE__ */ jsx(
|
|
137
|
+
"button",
|
|
138
|
+
{
|
|
139
|
+
onClick: () => setIsOpen((prev) => !prev),
|
|
140
|
+
style: {
|
|
141
|
+
position: "absolute",
|
|
142
|
+
right: 0,
|
|
143
|
+
bottom: 0,
|
|
144
|
+
transform: "translateX(100%)",
|
|
145
|
+
width: "20px",
|
|
146
|
+
// Match the live height of the outer Sidebar's bottom profile section.
|
|
147
|
+
// SidebarBottomSection publishes --elevasis-sidebar-bottom-section-height
|
|
148
|
+
// via ResizeObserver so this follows its actual height through
|
|
149
|
+
// collapse/expand transitions. Falls back to the expanded-state
|
|
150
|
+
// constant when rendered outside a Sidebar layout.
|
|
151
|
+
height: `var(--elevasis-sidebar-bottom-section-height, ${sidebarBottomSectionHeight}px)`,
|
|
152
|
+
display: "flex",
|
|
153
|
+
alignItems: "center",
|
|
154
|
+
justifyContent: "center",
|
|
155
|
+
backgroundColor: "color-mix(in srgb, var(--glass-background) 80%, transparent)",
|
|
156
|
+
backdropFilter: "var(--glass-blur)",
|
|
157
|
+
WebkitBackdropFilter: "var(--glass-blur)",
|
|
158
|
+
border: "1px solid var(--color-border)",
|
|
159
|
+
borderLeft: "none",
|
|
160
|
+
borderBottom: "none",
|
|
161
|
+
borderRadius: "0 4px 0 0",
|
|
162
|
+
cursor: "pointer",
|
|
163
|
+
color: "var(--color-text-subtle)",
|
|
164
|
+
padding: 0,
|
|
165
|
+
zIndex: 10,
|
|
166
|
+
transition: `color var(--duration-fast) var(--easing)`
|
|
167
|
+
},
|
|
168
|
+
"aria-label": isOpen ? "Collapse sidebar" : "Expand sidebar",
|
|
169
|
+
children: /* @__PURE__ */ jsx(
|
|
170
|
+
"svg",
|
|
171
|
+
{
|
|
172
|
+
width: "6",
|
|
173
|
+
height: "10",
|
|
174
|
+
viewBox: "0 0 8 12",
|
|
175
|
+
fill: "none",
|
|
176
|
+
style: {
|
|
177
|
+
transform: isOpen ? void 0 : "rotate(180deg)",
|
|
178
|
+
transition: `transform var(--duration-fast) var(--easing)`
|
|
179
|
+
},
|
|
180
|
+
children: /* @__PURE__ */ jsx(
|
|
181
|
+
"path",
|
|
182
|
+
{
|
|
183
|
+
d: "M6 1L1 6L6 11",
|
|
184
|
+
stroke: "currentColor",
|
|
185
|
+
strokeWidth: "1.5",
|
|
186
|
+
strokeLinecap: "round",
|
|
187
|
+
strokeLinejoin: "round"
|
|
188
|
+
}
|
|
189
|
+
)
|
|
190
|
+
}
|
|
191
|
+
)
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
);
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
export { SubshellContainer, SubshellContentContainer, SubshellRightSideContainer, SubshellSidebar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElevasisLoader } from './chunk-SZHARWKU.js';
|
|
2
|
-
import { PRESETS, getPreset, generateShades, mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-
|
|
2
|
+
import { PRESETS, getPreset, generateShades, mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-TXPUIHX2.js';
|
|
3
3
|
import { AppBackground } from './chunk-CYXZHBP4.js';
|
|
4
|
-
import { ElevasisCoreProvider } from './chunk-
|
|
4
|
+
import { ElevasisCoreProvider } from './chunk-ITCEULI5.js';
|
|
5
5
|
import { AppearanceProvider } from './chunk-QJ2KCHKX.js';
|
|
6
6
|
import { getErrorInfo, formatErrorMessage, getErrorTitle } from './chunk-IOKL7BKE.js';
|
|
7
7
|
import { useMemo, useEffect } from 'react';
|