@epilot/spark-ui 0.20.0 → 0.20.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.
- package/dist/components/accordion.cjs +2 -2
- package/dist/components/accordion.d.ts +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.cjs +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/autocomplete.cjs +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/bar-chart-with-total.d.cts +1 -1
- package/dist/components/bar-chart-with-total.d.ts +1 -1
- package/dist/components/bar-chart.cjs +1 -1
- package/dist/components/bar-chart.js +2 -2
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/callout.cjs +1 -1
- package/dist/components/callout.d.cts +1 -1
- package/dist/components/callout.d.ts +2 -2
- package/dist/components/callout.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown-menu.cjs +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/empty-state.d.ts +1 -1
- package/dist/components/energy-breakdown.cjs +80 -0
- package/dist/components/energy-breakdown.cjs.map +1 -0
- package/dist/components/energy-breakdown.d.cts +24 -0
- package/dist/components/energy-breakdown.d.ts +24 -0
- package/dist/components/energy-breakdown.js +79 -0
- package/dist/components/energy-breakdown.js.map +1 -0
- package/dist/components/energy-history-chart.cjs +63 -0
- package/dist/components/energy-history-chart.cjs.map +1 -0
- package/dist/components/energy-history-chart.d.cts +64 -0
- package/dist/components/energy-history-chart.d.ts +64 -0
- package/dist/components/energy-history-chart.js +62 -0
- package/dist/components/energy-history-chart.js.map +1 -0
- package/dist/components/entity-card.d.ts +1 -1
- package/dist/components/input-date.cjs +1 -1
- package/dist/components/input-date.js +1 -1
- package/dist/components/input-group.d.cts +1 -1
- package/dist/components/input-group.d.ts +1 -1
- package/dist/components/line-chart.cjs +3 -3
- package/dist/components/line-chart.js +4 -4
- package/dist/components/message-scroller.cjs +2 -2
- package/dist/components/message-scroller.js +2 -2
- package/dist/components/number-flow.d.cts +2 -12
- package/dist/components/number-flow.d.ts +2 -12
- package/dist/components/page-header.cjs +1 -1
- package/dist/components/page-header.js +1 -1
- package/dist/components/pill.cjs +1 -1
- package/dist/components/pill.js +1 -1
- package/dist/components/power-history-chart.cjs +498 -0
- package/dist/components/power-history-chart.cjs.map +1 -0
- package/dist/components/power-history-chart.d.cts +71 -0
- package/dist/components/power-history-chart.d.ts +71 -0
- package/dist/components/power-history-chart.js +496 -0
- package/dist/components/power-history-chart.js.map +1 -0
- package/dist/components/power-network.cjs +559 -0
- package/dist/components/power-network.cjs.map +1 -0
- package/dist/components/power-network.d.cts +80 -0
- package/dist/components/power-network.d.ts +80 -0
- package/dist/components/power-network.js +553 -0
- package/dist/components/power-network.js.map +1 -0
- package/dist/components/sankey-chart.cjs +11 -1
- package/dist/components/sankey-chart.cjs.map +1 -1
- package/dist/components/sankey-chart.d.cts +3 -2
- package/dist/components/sankey-chart.d.ts +3 -2
- package/dist/components/sankey-chart.js +11 -2
- package/dist/components/sankey-chart.js.map +1 -1
- package/dist/components/schedule-list.cjs +1 -1
- package/dist/components/schedule-list.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/solar-forecast-chart.cjs +108 -0
- package/dist/components/solar-forecast-chart.cjs.map +1 -0
- package/dist/components/solar-forecast-chart.d.cts +77 -0
- package/dist/components/solar-forecast-chart.d.ts +77 -0
- package/dist/components/solar-forecast-chart.js +103 -0
- package/dist/components/solar-forecast-chart.js.map +1 -0
- package/dist/components/stepper.cjs +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/toast.cjs +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/number-flow-Bch81ixZ.d.cts +14 -0
- package/dist/number-flow-Bch81ixZ.d.ts +14 -0
- package/dist/utils/build-sankey-nodes.cjs +72 -0
- package/dist/utils/build-sankey-nodes.cjs.map +1 -0
- package/dist/utils/build-sankey-nodes.d.cts +27 -0
- package/dist/utils/build-sankey-nodes.d.ts +27 -0
- package/dist/utils/build-sankey-nodes.js +71 -0
- package/dist/utils/build-sankey-nodes.js.map +1 -0
- package/dist/utils/format.cjs +13 -0
- package/dist/utils/format.cjs.map +1 -1
- package/dist/utils/format.d.cts +7 -1
- package/dist/utils/format.d.ts +7 -1
- package/dist/utils/format.js +12 -1
- package/dist/utils/format.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { ReactElement, ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/power-network.d.ts
|
|
6
|
+
type PowerSourceVariant = 'grid' | 'solar' | 'battery' | 'neutral';
|
|
7
|
+
interface PowerNetworkDiagramProps {
|
|
8
|
+
title?: string;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare function PowerNetworkDiagram({
|
|
14
|
+
title,
|
|
15
|
+
loading,
|
|
16
|
+
className,
|
|
17
|
+
children
|
|
18
|
+
}: PowerNetworkDiagramProps): ReactElement;
|
|
19
|
+
interface PowerNetworkRowProps {
|
|
20
|
+
className?: string;
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
declare function PowerNetworkSources({
|
|
24
|
+
className,
|
|
25
|
+
children
|
|
26
|
+
}: PowerNetworkRowProps): ReactElement;
|
|
27
|
+
declare function PowerNetworkDevices({
|
|
28
|
+
className,
|
|
29
|
+
children
|
|
30
|
+
}: PowerNetworkRowProps): ReactElement;
|
|
31
|
+
interface PowerSourceProps {
|
|
32
|
+
id?: string;
|
|
33
|
+
watts: number;
|
|
34
|
+
icon: ReactNode;
|
|
35
|
+
variant?: PowerSourceVariant;
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Optional 0–100 progress (e.g. battery SoC). When set, a thin colored arc
|
|
39
|
+
* is drawn around the icon circle as a non-intrusive indicator.
|
|
40
|
+
*/
|
|
41
|
+
progress?: number;
|
|
42
|
+
/** Keeps the variant colors at 0 W, for a source that is online but idle. */
|
|
43
|
+
standby?: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare function PowerSource({
|
|
46
|
+
id: idProp,
|
|
47
|
+
watts,
|
|
48
|
+
icon,
|
|
49
|
+
variant,
|
|
50
|
+
className,
|
|
51
|
+
progress,
|
|
52
|
+
standby
|
|
53
|
+
}: PowerSourceProps): ReactElement;
|
|
54
|
+
interface PowerDeviceProps {
|
|
55
|
+
id?: string;
|
|
56
|
+
watts: number;
|
|
57
|
+
icon: ReactNode;
|
|
58
|
+
className?: string;
|
|
59
|
+
}
|
|
60
|
+
declare function PowerDevice({
|
|
61
|
+
id: idProp,
|
|
62
|
+
watts,
|
|
63
|
+
icon,
|
|
64
|
+
className
|
|
65
|
+
}: PowerDeviceProps): ReactElement;
|
|
66
|
+
interface PowerNetworkHomeProps {
|
|
67
|
+
/** Override total power. Defaults to the sum of registered source watts. */
|
|
68
|
+
watts?: number;
|
|
69
|
+
/** Self-sufficiency ratio in 0..1. Renders a green ring when provided. */
|
|
70
|
+
autarky?: number;
|
|
71
|
+
className?: string;
|
|
72
|
+
}
|
|
73
|
+
declare function PowerNetworkHome({
|
|
74
|
+
watts,
|
|
75
|
+
autarky,
|
|
76
|
+
className
|
|
77
|
+
}: PowerNetworkHomeProps): ReactElement;
|
|
78
|
+
//#endregion
|
|
79
|
+
export { PowerDevice, PowerDeviceProps, PowerNetworkDevices, PowerNetworkDiagram, PowerNetworkDiagramProps, PowerNetworkHome, PowerNetworkHomeProps, PowerNetworkRowProps, PowerNetworkSources, PowerSource, PowerSourceProps, PowerSourceVariant };
|
|
80
|
+
//# sourceMappingURL=power-network.d.cts.map
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { ReactElement, ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/power-network.d.ts
|
|
6
|
+
type PowerSourceVariant = 'grid' | 'solar' | 'battery' | 'neutral';
|
|
7
|
+
interface PowerNetworkDiagramProps {
|
|
8
|
+
title?: string;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare function PowerNetworkDiagram({
|
|
14
|
+
title,
|
|
15
|
+
loading,
|
|
16
|
+
className,
|
|
17
|
+
children
|
|
18
|
+
}: PowerNetworkDiagramProps): ReactElement;
|
|
19
|
+
interface PowerNetworkRowProps {
|
|
20
|
+
className?: string;
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
declare function PowerNetworkSources({
|
|
24
|
+
className,
|
|
25
|
+
children
|
|
26
|
+
}: PowerNetworkRowProps): ReactElement;
|
|
27
|
+
declare function PowerNetworkDevices({
|
|
28
|
+
className,
|
|
29
|
+
children
|
|
30
|
+
}: PowerNetworkRowProps): ReactElement;
|
|
31
|
+
interface PowerSourceProps {
|
|
32
|
+
id?: string;
|
|
33
|
+
watts: number;
|
|
34
|
+
icon: ReactNode;
|
|
35
|
+
variant?: PowerSourceVariant;
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Optional 0–100 progress (e.g. battery SoC). When set, a thin colored arc
|
|
39
|
+
* is drawn around the icon circle as a non-intrusive indicator.
|
|
40
|
+
*/
|
|
41
|
+
progress?: number;
|
|
42
|
+
/** Keeps the variant colors at 0 W, for a source that is online but idle. */
|
|
43
|
+
standby?: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare function PowerSource({
|
|
46
|
+
id: idProp,
|
|
47
|
+
watts,
|
|
48
|
+
icon,
|
|
49
|
+
variant,
|
|
50
|
+
className,
|
|
51
|
+
progress,
|
|
52
|
+
standby
|
|
53
|
+
}: PowerSourceProps): ReactElement;
|
|
54
|
+
interface PowerDeviceProps {
|
|
55
|
+
id?: string;
|
|
56
|
+
watts: number;
|
|
57
|
+
icon: ReactNode;
|
|
58
|
+
className?: string;
|
|
59
|
+
}
|
|
60
|
+
declare function PowerDevice({
|
|
61
|
+
id: idProp,
|
|
62
|
+
watts,
|
|
63
|
+
icon,
|
|
64
|
+
className
|
|
65
|
+
}: PowerDeviceProps): ReactElement;
|
|
66
|
+
interface PowerNetworkHomeProps {
|
|
67
|
+
/** Override total power. Defaults to the sum of registered source watts. */
|
|
68
|
+
watts?: number;
|
|
69
|
+
/** Self-sufficiency ratio in 0..1. Renders a green ring when provided. */
|
|
70
|
+
autarky?: number;
|
|
71
|
+
className?: string;
|
|
72
|
+
}
|
|
73
|
+
declare function PowerNetworkHome({
|
|
74
|
+
watts,
|
|
75
|
+
autarky,
|
|
76
|
+
className
|
|
77
|
+
}: PowerNetworkHomeProps): ReactElement;
|
|
78
|
+
//#endregion
|
|
79
|
+
export { PowerDevice, PowerDeviceProps, PowerNetworkDevices, PowerNetworkDiagram, PowerNetworkDiagramProps, PowerNetworkHome, PowerNetworkHomeProps, PowerNetworkRowProps, PowerNetworkSources, PowerSource, PowerSourceProps, PowerSourceVariant };
|
|
80
|
+
//# sourceMappingURL=power-network.d.ts.map
|