@elevasis/ui 2.0.1 → 2.0.3
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/auth/index.js +1 -2
- package/dist/charts/index.js +7 -9
- package/dist/{chunk-QTD5HPKD.js → chunk-35QO7M43.js} +1 -1
- package/dist/{chunk-QJ2S46NI.js → chunk-DT3QYZVU.js} +2 -2
- package/dist/{chunk-NEST7NA4.js → chunk-H762MTQ5.js} +30 -24
- package/dist/{chunk-YUAE4IVA.js → chunk-KFICYU6S.js} +1 -1
- package/dist/{chunk-RWQIFKMJ.js → chunk-MTJ43R2E.js} +10 -2
- package/dist/{chunk-CD6UPIXK.js → chunk-MVJ4TSSA.js} +20 -110
- package/dist/{chunk-VB4MVOPL.js → chunk-MZPVNRPL.js} +130 -27
- package/dist/{chunk-NNKKBSJN.js → chunk-NYBEU5TE.js} +1 -1
- package/dist/{chunk-2IJCM3VQ.js → chunk-OCP2MBTY.js} +134 -118
- package/dist/{chunk-YVDYRV4Q.js → chunk-OKKGD3S6.js} +3 -3
- package/dist/{chunk-N5BS2VIA.js → chunk-PQNEE57X.js} +6 -6
- package/dist/{chunk-7QNDXJQW.js → chunk-PRLXFMNP.js} +2 -2
- package/dist/{chunk-ZT754TNZ.js → chunk-QITPFGWC.js} +3 -3
- package/dist/{chunk-ZNG35YAN.js → chunk-QRHLV74B.js} +23 -18
- package/dist/{chunk-TXPUIHX2.js → chunk-RB34YOIX.js} +5 -5
- package/dist/{chunk-5COLSYBE.js → chunk-RX4UWZZR.js} +1 -1
- package/dist/{chunk-C27LLJM6.js → chunk-SMJLS23U.js} +2 -2
- package/dist/{chunk-P6EELWRV.js → chunk-TZOGB3X4.js} +2 -2
- package/dist/{chunk-MCA6LOGM.js → chunk-Y3D3WFJG.js} +54 -5
- package/dist/{chunk-YYBM5LNJ.js → chunk-YEX4MQSY.js} +1 -1
- package/dist/components/index.d.ts +18 -14
- package/dist/components/index.js +87 -263
- package/dist/features/auth/index.js +3 -4
- package/dist/features/dashboard/index.d.ts +1 -0
- package/dist/features/dashboard/index.js +15 -17
- package/dist/features/monitoring/index.css +127 -127
- package/dist/features/monitoring/index.d.ts +1 -0
- package/dist/features/monitoring/index.js +16 -18
- package/dist/features/operations/index.d.ts +2 -1
- package/dist/features/operations/index.js +18 -20
- package/dist/features/settings/index.d.ts +1 -0
- package/dist/features/settings/index.js +15 -17
- package/dist/hooks/index.css +127 -127
- package/dist/hooks/index.js +12 -9
- package/dist/hooks/published.css +127 -127
- package/dist/hooks/published.js +11 -8
- package/dist/index.css +118 -118
- package/dist/index.d.ts +14 -2
- package/dist/index.js +13 -12
- package/dist/layout/index.d.ts +20 -44
- package/dist/layout/index.js +6 -6
- package/dist/provider/index.css +127 -59
- package/dist/provider/index.d.ts +14 -2
- package/dist/provider/index.js +10 -6
- package/dist/provider/published.css +126 -0
- package/dist/provider/published.d.ts +14 -2
- package/dist/provider/published.js +8 -3
- package/dist/theme/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-ALA56RGZ.js +0 -13
- package/dist/chunk-SZHARWKU.js +0 -15
package/dist/provider/index.css
CHANGED
|
@@ -1,3 +1,130 @@
|
|
|
1
|
+
/* src/components/display/StatCard.module.css */
|
|
2
|
+
.heroCard {
|
|
3
|
+
background: var(--glass-background);
|
|
4
|
+
backdrop-filter: var(--glass-blur);
|
|
5
|
+
border: 1px solid var(--color-border);
|
|
6
|
+
}
|
|
7
|
+
.iconRing {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
width: 46px;
|
|
13
|
+
height: 46px;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
background: color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
16
|
+
border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
|
|
17
|
+
color: var(--color-primary);
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
box-shadow: 0 0 12px color-mix(in srgb, var(--color-primary) 15%, transparent);
|
|
20
|
+
}
|
|
21
|
+
.iconRingSm {
|
|
22
|
+
position: relative;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
width: 36px;
|
|
27
|
+
height: 36px;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
background: color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
30
|
+
border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
|
|
31
|
+
color: var(--color-primary);
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
box-shadow: 0 0 8px color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
34
|
+
}
|
|
35
|
+
.heroValue {
|
|
36
|
+
font-family: var(--elevasis-font-family-subtitle);
|
|
37
|
+
font-size: 1.85rem;
|
|
38
|
+
font-weight: 800;
|
|
39
|
+
line-height: 1;
|
|
40
|
+
letter-spacing: -0.02em;
|
|
41
|
+
font-variant-numeric: tabular-nums;
|
|
42
|
+
}
|
|
43
|
+
[data-mantine-color-scheme=dark] .heroValue {
|
|
44
|
+
text-shadow: 0 0 20px color-mix(in srgb, var(--color-primary) 20%, transparent);
|
|
45
|
+
}
|
|
46
|
+
.heroValueSm {
|
|
47
|
+
font-family: var(--elevasis-font-family-subtitle);
|
|
48
|
+
font-size: 1.35rem;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
line-height: 1;
|
|
51
|
+
letter-spacing: -0.02em;
|
|
52
|
+
font-variant-numeric: tabular-nums;
|
|
53
|
+
}
|
|
54
|
+
.heroLabel {
|
|
55
|
+
font-size: 0.68rem;
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
text-transform: uppercase;
|
|
58
|
+
letter-spacing: 0.12em;
|
|
59
|
+
color: var(--color-text-dimmed);
|
|
60
|
+
}
|
|
61
|
+
.heroLabelSm {
|
|
62
|
+
font-size: 0.62rem;
|
|
63
|
+
font-weight: 700;
|
|
64
|
+
text-transform: uppercase;
|
|
65
|
+
letter-spacing: 0.12em;
|
|
66
|
+
color: var(--color-text-dimmed);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* src/components/display/ElevasisLoader.module.css */
|
|
70
|
+
.wrapper {
|
|
71
|
+
display: inline-flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
width: var(--loader-size);
|
|
75
|
+
height: var(--loader-size);
|
|
76
|
+
overflow: visible;
|
|
77
|
+
}
|
|
78
|
+
.loader {
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 100%;
|
|
81
|
+
display: block;
|
|
82
|
+
overflow: visible;
|
|
83
|
+
}
|
|
84
|
+
.chevron {
|
|
85
|
+
stroke: var(--loader-color);
|
|
86
|
+
stroke-width: 2;
|
|
87
|
+
stroke-linecap: square;
|
|
88
|
+
stroke-linejoin: miter;
|
|
89
|
+
fill: none;
|
|
90
|
+
opacity: 0.15;
|
|
91
|
+
animation: chevronPulse 2s ease-in-out infinite;
|
|
92
|
+
filter: drop-shadow(0 0 1.5px var(--loader-color));
|
|
93
|
+
}
|
|
94
|
+
[data-mantine-color-scheme=light] .chevron {
|
|
95
|
+
filter: none;
|
|
96
|
+
}
|
|
97
|
+
.c1 {
|
|
98
|
+
animation-delay: 0s;
|
|
99
|
+
}
|
|
100
|
+
.c2 {
|
|
101
|
+
animation-delay: 0.2s;
|
|
102
|
+
}
|
|
103
|
+
.c3 {
|
|
104
|
+
animation-delay: 0.4s;
|
|
105
|
+
}
|
|
106
|
+
@keyframes chevronPulse {
|
|
107
|
+
0%, 100% {
|
|
108
|
+
opacity: 0.12;
|
|
109
|
+
filter: drop-shadow(0 0 1px var(--loader-color));
|
|
110
|
+
}
|
|
111
|
+
40%, 60% {
|
|
112
|
+
opacity: 1;
|
|
113
|
+
filter: drop-shadow(0 0 3px var(--loader-color));
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
[data-mantine-color-scheme=light] .chevron {
|
|
117
|
+
animation-name: chevronPulseLight;
|
|
118
|
+
}
|
|
119
|
+
@keyframes chevronPulseLight {
|
|
120
|
+
0%, 100% {
|
|
121
|
+
opacity: 0.2;
|
|
122
|
+
}
|
|
123
|
+
40%, 60% {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
1
128
|
/* src/theme/custom.css */
|
|
2
129
|
.mantine-Button-root[data-variant=default] {
|
|
3
130
|
background-color: var(--color-surface);
|
|
@@ -69,62 +196,3 @@
|
|
|
69
196
|
.recharts-surface:focus {
|
|
70
197
|
outline: none;
|
|
71
198
|
}
|
|
72
|
-
|
|
73
|
-
/* src/components/display/ElevasisLoader.module.css */
|
|
74
|
-
.wrapper {
|
|
75
|
-
display: inline-flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
width: var(--loader-size);
|
|
79
|
-
height: var(--loader-size);
|
|
80
|
-
overflow: visible;
|
|
81
|
-
}
|
|
82
|
-
.loader {
|
|
83
|
-
width: 100%;
|
|
84
|
-
height: 100%;
|
|
85
|
-
display: block;
|
|
86
|
-
overflow: visible;
|
|
87
|
-
}
|
|
88
|
-
.chevron {
|
|
89
|
-
stroke: var(--loader-color);
|
|
90
|
-
stroke-width: 2;
|
|
91
|
-
stroke-linecap: square;
|
|
92
|
-
stroke-linejoin: miter;
|
|
93
|
-
fill: none;
|
|
94
|
-
opacity: 0.15;
|
|
95
|
-
animation: chevronPulse 2s ease-in-out infinite;
|
|
96
|
-
filter: drop-shadow(0 0 1.5px var(--loader-color));
|
|
97
|
-
}
|
|
98
|
-
[data-mantine-color-scheme=light] .chevron {
|
|
99
|
-
filter: none;
|
|
100
|
-
}
|
|
101
|
-
.c1 {
|
|
102
|
-
animation-delay: 0s;
|
|
103
|
-
}
|
|
104
|
-
.c2 {
|
|
105
|
-
animation-delay: 0.2s;
|
|
106
|
-
}
|
|
107
|
-
.c3 {
|
|
108
|
-
animation-delay: 0.4s;
|
|
109
|
-
}
|
|
110
|
-
@keyframes chevronPulse {
|
|
111
|
-
0%, 100% {
|
|
112
|
-
opacity: 0.12;
|
|
113
|
-
filter: drop-shadow(0 0 1px var(--loader-color));
|
|
114
|
-
}
|
|
115
|
-
40%, 60% {
|
|
116
|
-
opacity: 1;
|
|
117
|
-
filter: drop-shadow(0 0 3px var(--loader-color));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
[data-mantine-color-scheme=light] .chevron {
|
|
121
|
-
animation-name: chevronPulseLight;
|
|
122
|
-
}
|
|
123
|
-
@keyframes chevronPulseLight {
|
|
124
|
-
0%, 100% {
|
|
125
|
-
opacity: 0.2;
|
|
126
|
-
}
|
|
127
|
-
40%, 60% {
|
|
128
|
-
opacity: 1;
|
|
129
|
-
}
|
|
130
|
-
}
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -311,6 +311,7 @@ interface FeatureNavLink {
|
|
|
311
311
|
link: string;
|
|
312
312
|
featureKey?: string;
|
|
313
313
|
onClick?: () => void;
|
|
314
|
+
links?: FeatureNavLink[];
|
|
314
315
|
}
|
|
315
316
|
interface FeatureNavEntry {
|
|
316
317
|
label: string;
|
|
@@ -329,6 +330,14 @@ interface FeatureModule {
|
|
|
329
330
|
sidebar?: FeatureSidebarComponent;
|
|
330
331
|
subshellRoutes?: string[];
|
|
331
332
|
}
|
|
333
|
+
type FeatureRouteState = 'enabled' | 'disabled' | 'missing';
|
|
334
|
+
interface FeatureRouteResolution {
|
|
335
|
+
state: FeatureRouteState;
|
|
336
|
+
path: string;
|
|
337
|
+
feature?: FeatureModule;
|
|
338
|
+
navEntry?: FeatureNavEntry;
|
|
339
|
+
navLink?: FeatureNavLink;
|
|
340
|
+
}
|
|
332
341
|
interface FeatureRegistry {
|
|
333
342
|
features: FeatureModule[];
|
|
334
343
|
}
|
|
@@ -337,6 +346,7 @@ interface ElevasisFeaturesProviderProps {
|
|
|
337
346
|
timeRange?: TimeRange;
|
|
338
347
|
operationsApiUrl?: string;
|
|
339
348
|
operationsSSEManager?: SSEConnectionManagerLike;
|
|
349
|
+
disabledSubsectionPaths?: string[];
|
|
340
350
|
children: ReactNode;
|
|
341
351
|
}
|
|
342
352
|
interface ElevasisFeaturesContextValue {
|
|
@@ -346,13 +356,15 @@ interface ElevasisFeaturesContextValue {
|
|
|
346
356
|
timeRange?: TimeRange;
|
|
347
357
|
operationsApiUrl?: string;
|
|
348
358
|
operationsSSEManager?: SSEConnectionManagerLike;
|
|
359
|
+
disabledSubsectionPaths: string[];
|
|
349
360
|
isFeatureEnabled: (key: string) => boolean;
|
|
350
361
|
getFeature: (key: string) => FeatureModule | undefined;
|
|
362
|
+
resolveNavRoute: (path: string) => FeatureRouteResolution;
|
|
351
363
|
}
|
|
352
364
|
|
|
353
365
|
declare function useElevasisFeatures(): ElevasisFeaturesContextValue;
|
|
354
366
|
declare function useOptionalElevasisFeatures(): ElevasisFeaturesContextValue | null;
|
|
355
|
-
declare function ElevasisFeaturesProvider({ features, timeRange, operationsApiUrl, operationsSSEManager, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
|
|
367
|
+
declare function ElevasisFeaturesProvider({ features, timeRange, operationsApiUrl, operationsSSEManager, disabledSubsectionPaths, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
|
|
356
368
|
|
|
357
369
|
declare function FeatureShell({ children }: {
|
|
358
370
|
children: ReactNode;
|
|
@@ -421,4 +433,4 @@ interface ElevasisUIProviderProps extends Omit<ElevasisCoreProviderProps, 'theme
|
|
|
421
433
|
declare function ElevasisUIProvider({ theme, children, ...coreProps }: ElevasisUIProviderProps): react_jsx_runtime.JSX.Element;
|
|
422
434
|
|
|
423
435
|
export { AppearanceProvider, ElevasisCoreProvider, ElevasisFeaturesProvider, ElevasisServiceProvider, ElevasisUIProvider, FeatureShell, NotificationProvider, useAppearance, useElevasisFeatures, useElevasisServices, useNotificationAdapter, useOptionalElevasisFeatures };
|
|
424
|
-
export type { ApiKeyConfig, AppearanceConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, FeatureModule, FeatureNavEntry, FeatureNavLink, FeatureRegistry, FeatureSidebarComponent, NotificationAdapter, PresetName, WithSchemes };
|
|
436
|
+
export type { ApiKeyConfig, AppearanceConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, FeatureModule, FeatureNavEntry, FeatureNavLink, FeatureRegistry, FeatureRouteResolution, FeatureRouteState, FeatureSidebarComponent, NotificationAdapter, PresetName, WithSchemes };
|
package/dist/provider/index.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
export { ElevasisUIProvider } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-TXPUIHX2.js';
|
|
1
|
+
export { ElevasisUIProvider } from '../chunk-QITPFGWC.js';
|
|
2
|
+
import '../chunk-RB34YOIX.js';
|
|
4
3
|
import '../chunk-CYXZHBP4.js';
|
|
5
|
-
export { ElevasisCoreProvider, ElevasisFeaturesProvider, FeatureShell, NotificationProvider, useElevasisFeatures, useNotificationAdapter, useOptionalElevasisFeatures } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
export { ElevasisCoreProvider, ElevasisFeaturesProvider, FeatureShell, NotificationProvider, useElevasisFeatures, useNotificationAdapter, useOptionalElevasisFeatures } from '../chunk-MZPVNRPL.js';
|
|
5
|
+
import '../chunk-RX4UWZZR.js';
|
|
6
|
+
import '../chunk-Y3D3WFJG.js';
|
|
7
|
+
import '../chunk-3KMDHCAR.js';
|
|
8
|
+
import '../chunk-NYBEU5TE.js';
|
|
7
9
|
import '../chunk-NVOCKXUQ.js';
|
|
8
10
|
import '../chunk-2IFYDILW.js';
|
|
11
|
+
import '../chunk-ELJIFLCB.js';
|
|
9
12
|
import '../chunk-W4VYXIN7.js';
|
|
10
13
|
export { AppearanceProvider, useAppearance } from '../chunk-QJ2KCHKX.js';
|
|
11
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-DT3QYZVU.js';
|
|
12
15
|
import '../chunk-SLVC5OJ2.js';
|
|
13
16
|
import '../chunk-RNP5R5I3.js';
|
|
14
17
|
import '../chunk-IOKL7BKE.js';
|
|
18
|
+
import '../chunk-MTJ43R2E.js';
|
|
15
19
|
import '../chunk-TUXTSEAF.js';
|
|
16
20
|
import '../chunk-DD3CCMCZ.js';
|
|
17
21
|
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-QEPXAWE2.js';
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* src/components/display/StatCard.module.css */
|
|
2
|
+
.heroCard {
|
|
3
|
+
background: var(--glass-background);
|
|
4
|
+
backdrop-filter: var(--glass-blur);
|
|
5
|
+
border: 1px solid var(--color-border);
|
|
6
|
+
}
|
|
7
|
+
.iconRing {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
width: 46px;
|
|
13
|
+
height: 46px;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
background: color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
16
|
+
border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
|
|
17
|
+
color: var(--color-primary);
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
box-shadow: 0 0 12px color-mix(in srgb, var(--color-primary) 15%, transparent);
|
|
20
|
+
}
|
|
21
|
+
.iconRingSm {
|
|
22
|
+
position: relative;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
width: 36px;
|
|
27
|
+
height: 36px;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
background: color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
30
|
+
border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
|
|
31
|
+
color: var(--color-primary);
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
box-shadow: 0 0 8px color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
34
|
+
}
|
|
35
|
+
.heroValue {
|
|
36
|
+
font-family: var(--elevasis-font-family-subtitle);
|
|
37
|
+
font-size: 1.85rem;
|
|
38
|
+
font-weight: 800;
|
|
39
|
+
line-height: 1;
|
|
40
|
+
letter-spacing: -0.02em;
|
|
41
|
+
font-variant-numeric: tabular-nums;
|
|
42
|
+
}
|
|
43
|
+
[data-mantine-color-scheme=dark] .heroValue {
|
|
44
|
+
text-shadow: 0 0 20px color-mix(in srgb, var(--color-primary) 20%, transparent);
|
|
45
|
+
}
|
|
46
|
+
.heroValueSm {
|
|
47
|
+
font-family: var(--elevasis-font-family-subtitle);
|
|
48
|
+
font-size: 1.35rem;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
line-height: 1;
|
|
51
|
+
letter-spacing: -0.02em;
|
|
52
|
+
font-variant-numeric: tabular-nums;
|
|
53
|
+
}
|
|
54
|
+
.heroLabel {
|
|
55
|
+
font-size: 0.68rem;
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
text-transform: uppercase;
|
|
58
|
+
letter-spacing: 0.12em;
|
|
59
|
+
color: var(--color-text-dimmed);
|
|
60
|
+
}
|
|
61
|
+
.heroLabelSm {
|
|
62
|
+
font-size: 0.62rem;
|
|
63
|
+
font-weight: 700;
|
|
64
|
+
text-transform: uppercase;
|
|
65
|
+
letter-spacing: 0.12em;
|
|
66
|
+
color: var(--color-text-dimmed);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* src/components/display/ElevasisLoader.module.css */
|
|
70
|
+
.wrapper {
|
|
71
|
+
display: inline-flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
width: var(--loader-size);
|
|
75
|
+
height: var(--loader-size);
|
|
76
|
+
overflow: visible;
|
|
77
|
+
}
|
|
78
|
+
.loader {
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 100%;
|
|
81
|
+
display: block;
|
|
82
|
+
overflow: visible;
|
|
83
|
+
}
|
|
84
|
+
.chevron {
|
|
85
|
+
stroke: var(--loader-color);
|
|
86
|
+
stroke-width: 2;
|
|
87
|
+
stroke-linecap: square;
|
|
88
|
+
stroke-linejoin: miter;
|
|
89
|
+
fill: none;
|
|
90
|
+
opacity: 0.15;
|
|
91
|
+
animation: chevronPulse 2s ease-in-out infinite;
|
|
92
|
+
filter: drop-shadow(0 0 1.5px var(--loader-color));
|
|
93
|
+
}
|
|
94
|
+
[data-mantine-color-scheme=light] .chevron {
|
|
95
|
+
filter: none;
|
|
96
|
+
}
|
|
97
|
+
.c1 {
|
|
98
|
+
animation-delay: 0s;
|
|
99
|
+
}
|
|
100
|
+
.c2 {
|
|
101
|
+
animation-delay: 0.2s;
|
|
102
|
+
}
|
|
103
|
+
.c3 {
|
|
104
|
+
animation-delay: 0.4s;
|
|
105
|
+
}
|
|
106
|
+
@keyframes chevronPulse {
|
|
107
|
+
0%, 100% {
|
|
108
|
+
opacity: 0.12;
|
|
109
|
+
filter: drop-shadow(0 0 1px var(--loader-color));
|
|
110
|
+
}
|
|
111
|
+
40%, 60% {
|
|
112
|
+
opacity: 1;
|
|
113
|
+
filter: drop-shadow(0 0 3px var(--loader-color));
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
[data-mantine-color-scheme=light] .chevron {
|
|
117
|
+
animation-name: chevronPulseLight;
|
|
118
|
+
}
|
|
119
|
+
@keyframes chevronPulseLight {
|
|
120
|
+
0%, 100% {
|
|
121
|
+
opacity: 0.2;
|
|
122
|
+
}
|
|
123
|
+
40%, 60% {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -310,6 +310,7 @@ interface FeatureNavLink {
|
|
|
310
310
|
link: string;
|
|
311
311
|
featureKey?: string;
|
|
312
312
|
onClick?: () => void;
|
|
313
|
+
links?: FeatureNavLink[];
|
|
313
314
|
}
|
|
314
315
|
interface FeatureNavEntry {
|
|
315
316
|
label: string;
|
|
@@ -328,6 +329,14 @@ interface FeatureModule {
|
|
|
328
329
|
sidebar?: FeatureSidebarComponent;
|
|
329
330
|
subshellRoutes?: string[];
|
|
330
331
|
}
|
|
332
|
+
type FeatureRouteState = 'enabled' | 'disabled' | 'missing';
|
|
333
|
+
interface FeatureRouteResolution {
|
|
334
|
+
state: FeatureRouteState;
|
|
335
|
+
path: string;
|
|
336
|
+
feature?: FeatureModule;
|
|
337
|
+
navEntry?: FeatureNavEntry;
|
|
338
|
+
navLink?: FeatureNavLink;
|
|
339
|
+
}
|
|
331
340
|
interface FeatureRegistry {
|
|
332
341
|
features: FeatureModule[];
|
|
333
342
|
}
|
|
@@ -336,6 +345,7 @@ interface ElevasisFeaturesProviderProps {
|
|
|
336
345
|
timeRange?: TimeRange;
|
|
337
346
|
operationsApiUrl?: string;
|
|
338
347
|
operationsSSEManager?: SSEConnectionManagerLike;
|
|
348
|
+
disabledSubsectionPaths?: string[];
|
|
339
349
|
children: ReactNode;
|
|
340
350
|
}
|
|
341
351
|
interface ElevasisFeaturesContextValue {
|
|
@@ -345,13 +355,15 @@ interface ElevasisFeaturesContextValue {
|
|
|
345
355
|
timeRange?: TimeRange;
|
|
346
356
|
operationsApiUrl?: string;
|
|
347
357
|
operationsSSEManager?: SSEConnectionManagerLike;
|
|
358
|
+
disabledSubsectionPaths: string[];
|
|
348
359
|
isFeatureEnabled: (key: string) => boolean;
|
|
349
360
|
getFeature: (key: string) => FeatureModule | undefined;
|
|
361
|
+
resolveNavRoute: (path: string) => FeatureRouteResolution;
|
|
350
362
|
}
|
|
351
363
|
|
|
352
364
|
declare function useElevasisFeatures(): ElevasisFeaturesContextValue;
|
|
353
365
|
declare function useOptionalElevasisFeatures(): ElevasisFeaturesContextValue | null;
|
|
354
|
-
declare function ElevasisFeaturesProvider({ features, timeRange, operationsApiUrl, operationsSSEManager, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
|
|
366
|
+
declare function ElevasisFeaturesProvider({ features, timeRange, operationsApiUrl, operationsSSEManager, disabledSubsectionPaths, children }: ElevasisFeaturesProviderProps): react_jsx_runtime.JSX.Element;
|
|
355
367
|
|
|
356
368
|
declare function FeatureShell({ children }: {
|
|
357
369
|
children: ReactNode;
|
|
@@ -399,4 +411,4 @@ declare function useElevasisServices(): ElevasisServiceContextValue;
|
|
|
399
411
|
declare function ElevasisServiceProvider({ apiRequest, organizationId, isReady, children }: ElevasisServiceProviderProps): react_jsx_runtime.JSX.Element;
|
|
400
412
|
|
|
401
413
|
export { AppearanceProvider, ElevasisCoreProvider, ElevasisFeaturesProvider, ElevasisServiceProvider, FeatureShell, NotificationProvider, useAppearance, useElevasisFeatures, useElevasisServices, useNotificationAdapter, useOptionalElevasisFeatures };
|
|
402
|
-
export type { ApiKeyConfig, AppearanceConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisTokenOverrides, FeatureModule, FeatureNavEntry, FeatureNavLink, FeatureRegistry, FeatureSidebarComponent, NotificationAdapter, WithSchemes };
|
|
414
|
+
export type { ApiKeyConfig, AppearanceConfig, AuthConfig, AuthKitConfig, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisTokenOverrides, FeatureModule, FeatureNavEntry, FeatureNavLink, FeatureRegistry, FeatureRouteResolution, FeatureRouteState, FeatureSidebarComponent, NotificationAdapter, WithSchemes };
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
export { ElevasisCoreProvider, ElevasisFeaturesProvider, FeatureShell, NotificationProvider, useElevasisFeatures, useNotificationAdapter, useOptionalElevasisFeatures } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ElevasisCoreProvider, ElevasisFeaturesProvider, FeatureShell, NotificationProvider, useElevasisFeatures, useNotificationAdapter, useOptionalElevasisFeatures } from '../chunk-MZPVNRPL.js';
|
|
2
|
+
import '../chunk-RX4UWZZR.js';
|
|
3
|
+
import '../chunk-Y3D3WFJG.js';
|
|
4
|
+
import '../chunk-3KMDHCAR.js';
|
|
5
|
+
import '../chunk-NYBEU5TE.js';
|
|
3
6
|
import '../chunk-NVOCKXUQ.js';
|
|
4
7
|
import '../chunk-2IFYDILW.js';
|
|
8
|
+
import '../chunk-ELJIFLCB.js';
|
|
5
9
|
import '../chunk-W4VYXIN7.js';
|
|
6
10
|
export { AppearanceProvider, useAppearance } from '../chunk-QJ2KCHKX.js';
|
|
7
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-DT3QYZVU.js';
|
|
8
12
|
import '../chunk-SLVC5OJ2.js';
|
|
9
13
|
import '../chunk-RNP5R5I3.js';
|
|
10
14
|
import '../chunk-IOKL7BKE.js';
|
|
15
|
+
import '../chunk-MTJ43R2E.js';
|
|
11
16
|
import '../chunk-TUXTSEAF.js';
|
|
12
17
|
import '../chunk-DD3CCMCZ.js';
|
|
13
18
|
export { ElevasisServiceProvider, useElevasisServices } from '../chunk-QEPXAWE2.js';
|
package/dist/theme/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { useAvailablePresets } from '../chunk-
|
|
2
|
-
export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-
|
|
1
|
+
export { useAvailablePresets } from '../chunk-35QO7M43.js';
|
|
2
|
+
export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-RB34YOIX.js';
|
|
3
3
|
import '../chunk-CYXZHBP4.js';
|
package/package.json
CHANGED
package/dist/chunk-ALA56RGZ.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
2
|
-
import { useRef, useCallback } from 'react';
|
|
3
|
-
|
|
4
|
-
function useStableAccessToken() {
|
|
5
|
-
const { getAccessToken } = useAuthContext();
|
|
6
|
-
const getAccessTokenRef = useRef(getAccessToken);
|
|
7
|
-
getAccessTokenRef.current = getAccessToken;
|
|
8
|
-
return useCallback(() => {
|
|
9
|
-
return getAccessTokenRef.current();
|
|
10
|
-
}, []);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { useStableAccessToken };
|
package/dist/chunk-SZHARWKU.js
DELETED
|
@@ -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 };
|