@epilot/spark-ui 0.18.2 → 0.20.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/components/attachment.d.cts +1 -1
- package/dist/components/attachment.d.ts +1 -1
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.cjs.map +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.cjs.map +1 -1
- package/dist/components/badge.d.cts +2 -1
- package/dist/components/badge.d.ts +2 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/badge.js.map +1 -1
- package/dist/components/{energy-bar-chart.cjs → bar-chart-with-total.cjs} +4 -4
- package/dist/components/bar-chart-with-total.cjs.map +1 -0
- package/dist/components/bar-chart-with-total.d.cts +19 -0
- package/dist/components/bar-chart-with-total.d.ts +19 -0
- package/dist/components/{energy-bar-chart.js → bar-chart-with-total.js} +4 -4
- package/dist/components/bar-chart-with-total.js.map +1 -0
- package/dist/components/bar-chart.cjs +1 -1
- package/dist/components/bar-chart.js +2 -2
- package/dist/components/bubble.d.cts +1 -1
- package/dist/components/bubble.d.ts +1 -1
- package/dist/components/button-group.cjs +2 -2
- package/dist/components/button-group.cjs.map +1 -1
- package/dist/components/button-group.d.cts +1 -1
- package/dist/components/button-group.d.ts +1 -1
- package/dist/components/button-group.js +2 -2
- package/dist/components/button-group.js.map +1 -1
- package/dist/components/button.cjs +6 -4
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +6 -5
- package/dist/components/button.d.ts +6 -5
- package/dist/components/button.js +6 -4
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar.cjs +3 -3
- package/dist/components/calendar.cjs.map +1 -1
- package/dist/components/calendar.js +3 -3
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/callout.cjs +10 -10
- package/dist/components/callout.cjs.map +1 -1
- package/dist/components/callout.d.cts +1 -1
- package/dist/components/callout.d.ts +1 -1
- package/dist/components/callout.js +10 -10
- package/dist/components/callout.js.map +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.cjs.map +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/circular-gauge.cjs +7 -7
- package/dist/components/circular-gauge.cjs.map +1 -1
- package/dist/components/circular-gauge.js +7 -7
- package/dist/components/circular-gauge.js.map +1 -1
- package/dist/components/day-of-week-picker.cjs +21 -41
- package/dist/components/day-of-week-picker.cjs.map +1 -1
- package/dist/components/day-of-week-picker.d.cts +19 -23
- package/dist/components/day-of-week-picker.d.ts +19 -23
- package/dist/components/day-of-week-picker.js +21 -41
- package/dist/components/day-of-week-picker.js.map +1 -1
- package/dist/components/{device-card.cjs → entity-card.cjs} +31 -31
- package/dist/components/entity-card.cjs.map +1 -0
- package/dist/components/{device-card.d.cts → entity-card.d.cts} +15 -15
- package/dist/components/{device-card.d.ts → entity-card.d.ts} +15 -15
- package/dist/components/{device-card.js → entity-card.js} +20 -20
- package/dist/components/entity-card.js.map +1 -0
- package/dist/components/field.cjs +1 -1
- package/dist/components/field.cjs.map +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/field.js.map +1 -1
- package/dist/components/{feed-in-hero.cjs → hero-metric.cjs} +10 -15
- package/dist/components/hero-metric.cjs.map +1 -0
- package/dist/components/hero-metric.d.cts +27 -0
- package/dist/components/hero-metric.d.ts +27 -0
- package/dist/components/{feed-in-hero.js → hero-metric.js} +7 -12
- package/dist/components/hero-metric.js.map +1 -0
- package/dist/components/info-block.d.cts +1 -1
- package/dist/components/info-block.d.ts +1 -1
- package/dist/components/input-date.cjs +6 -6
- package/dist/components/input-date.cjs.map +1 -1
- package/dist/components/input-date.d.cts +2 -1
- package/dist/components/input-date.d.ts +2 -1
- package/dist/components/input-date.js +6 -6
- package/dist/components/input-date.js.map +1 -1
- package/dist/components/input-group.d.cts +1 -1
- package/dist/components/input-group.d.ts +1 -1
- package/dist/components/input-otp.cjs +1 -1
- package/dist/components/input-otp.cjs.map +1 -1
- package/dist/components/input-otp.js +1 -1
- package/dist/components/input-otp.js.map +1 -1
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.cjs.map +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input.js.map +1 -1
- package/dist/components/label.cjs +1 -1
- package/dist/components/label.cjs.map +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label.js.map +1 -1
- package/dist/components/line-chart.cjs +2 -2
- package/dist/components/line-chart.js +3 -3
- package/dist/components/number-flow.d.cts +12 -2
- package/dist/components/number-flow.d.ts +12 -2
- package/dist/components/page-header.d.cts +1 -1
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/period-tabs.cjs +2 -22
- package/dist/components/period-tabs.cjs.map +1 -1
- package/dist/components/period-tabs.d.cts +5 -22
- package/dist/components/period-tabs.d.ts +5 -22
- package/dist/components/period-tabs.js +2 -22
- package/dist/components/period-tabs.js.map +1 -1
- package/dist/components/pill.cjs +2 -2
- package/dist/components/pill.cjs.map +1 -1
- package/dist/components/pill.js +2 -2
- package/dist/components/pill.js.map +1 -1
- package/dist/components/progress.cjs +1 -1
- package/dist/components/progress.cjs.map +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.js.map +1 -1
- package/dist/components/radio.cjs +1 -1
- package/dist/components/radio.cjs.map +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/radio.js.map +1 -1
- package/dist/components/sankey-chart.cjs +1 -11
- package/dist/components/sankey-chart.cjs.map +1 -1
- package/dist/components/sankey-chart.d.cts +2 -3
- package/dist/components/sankey-chart.d.ts +2 -3
- package/dist/components/sankey-chart.js +2 -11
- package/dist/components/sankey-chart.js.map +1 -1
- package/dist/components/segmented-control.cjs +2 -2
- package/dist/components/segmented-control.cjs.map +1 -1
- package/dist/components/segmented-control.js +2 -2
- package/dist/components/segmented-control.js.map +1 -1
- package/dist/components/select.cjs +32 -2
- package/dist/components/select.cjs.map +1 -1
- package/dist/components/select.d.cts +11 -1
- package/dist/components/select.d.ts +11 -1
- package/dist/components/select.js +32 -4
- package/dist/components/select.js.map +1 -1
- package/dist/components/stepper.cjs +1 -1
- package/dist/components/stepper.cjs.map +1 -1
- package/dist/components/stepper.d.cts +4 -4
- package/dist/components/stepper.d.ts +4 -4
- package/dist/components/stepper.js +1 -1
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/table.cjs +147 -0
- package/dist/components/table.cjs.map +1 -0
- package/dist/components/table.d.cts +75 -0
- package/dist/components/table.d.ts +75 -0
- package/dist/components/table.js +138 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/textarea.cjs +1 -1
- package/dist/components/textarea.cjs.map +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.cjs.map +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/typography.cjs +1 -1
- package/dist/components/typography.cjs.map +1 -1
- package/dist/components/typography.d.cts +4 -1
- package/dist/components/typography.d.ts +4 -1
- package/dist/components/typography.js +1 -1
- package/dist/components/typography.js.map +1 -1
- package/dist/components/wizard-layout.cjs +57 -0
- package/dist/components/wizard-layout.cjs.map +1 -0
- package/dist/components/wizard-layout.d.cts +34 -0
- package/dist/components/wizard-layout.d.ts +34 -0
- package/dist/components/wizard-layout.js +50 -0
- package/dist/components/wizard-layout.js.map +1 -0
- package/dist/lib/accent-colors.cjs +4 -1
- package/dist/lib/accent-colors.cjs.map +1 -1
- package/dist/lib/accent-colors.d.cts +1 -1
- package/dist/lib/accent-colors.d.ts +1 -1
- package/dist/lib/accent-colors.js +4 -1
- package/dist/lib/accent-colors.js.map +1 -1
- package/dist/lib/accent-theme.cjs +144 -9
- package/dist/lib/accent-theme.cjs.map +1 -1
- package/dist/lib/accent-theme.d.cts +37 -1
- package/dist/lib/accent-theme.d.ts +37 -1
- package/dist/lib/accent-theme.js +140 -10
- package/dist/lib/accent-theme.js.map +1 -1
- package/dist/styles/index.css +10 -1
- package/dist/styles/spark-default.css +75 -321
- package/dist/styles/theme.css +54 -8
- package/dist/utils/format.cjs +0 -13
- package/dist/utils/format.cjs.map +1 -1
- package/dist/utils/format.d.cts +1 -7
- package/dist/utils/format.d.ts +1 -7
- package/dist/utils/format.js +1 -12
- package/dist/utils/format.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/battery-progress-row.cjs +0 -135
- package/dist/components/battery-progress-row.cjs.map +0 -1
- package/dist/components/battery-progress-row.d.cts +0 -69
- package/dist/components/battery-progress-row.d.ts +0 -69
- package/dist/components/battery-progress-row.js +0 -125
- package/dist/components/battery-progress-row.js.map +0 -1
- package/dist/components/device-card.cjs.map +0 -1
- package/dist/components/device-card.js.map +0 -1
- package/dist/components/energy-bar-chart.cjs.map +0 -1
- package/dist/components/energy-bar-chart.d.cts +0 -43
- package/dist/components/energy-bar-chart.d.ts +0 -43
- package/dist/components/energy-bar-chart.js.map +0 -1
- package/dist/components/energy-breakdown.cjs +0 -80
- package/dist/components/energy-breakdown.cjs.map +0 -1
- package/dist/components/energy-breakdown.d.cts +0 -24
- package/dist/components/energy-breakdown.d.ts +0 -24
- package/dist/components/energy-breakdown.js +0 -79
- package/dist/components/energy-breakdown.js.map +0 -1
- package/dist/components/energy-history-chart.cjs +0 -63
- package/dist/components/energy-history-chart.cjs.map +0 -1
- package/dist/components/energy-history-chart.d.cts +0 -64
- package/dist/components/energy-history-chart.d.ts +0 -64
- package/dist/components/energy-history-chart.js +0 -62
- package/dist/components/energy-history-chart.js.map +0 -1
- package/dist/components/feed-in-hero.cjs.map +0 -1
- package/dist/components/feed-in-hero.d.cts +0 -32
- package/dist/components/feed-in-hero.d.ts +0 -32
- package/dist/components/feed-in-hero.js.map +0 -1
- package/dist/components/metering-row.cjs +0 -59
- package/dist/components/metering-row.cjs.map +0 -1
- package/dist/components/metering-row.d.cts +0 -31
- package/dist/components/metering-row.d.ts +0 -31
- package/dist/components/metering-row.js +0 -55
- package/dist/components/metering-row.js.map +0 -1
- package/dist/components/money-saved-block.cjs +0 -83
- package/dist/components/money-saved-block.cjs.map +0 -1
- package/dist/components/money-saved-block.d.cts +0 -55
- package/dist/components/money-saved-block.d.ts +0 -55
- package/dist/components/money-saved-block.js +0 -76
- package/dist/components/money-saved-block.js.map +0 -1
- package/dist/components/on-off-button.cjs +0 -32
- package/dist/components/on-off-button.cjs.map +0 -1
- package/dist/components/on-off-button.d.cts +0 -18
- package/dist/components/on-off-button.d.ts +0 -18
- package/dist/components/on-off-button.js +0 -31
- package/dist/components/on-off-button.js.map +0 -1
- package/dist/components/onboarding-layout.cjs +0 -67
- package/dist/components/onboarding-layout.cjs.map +0 -1
- package/dist/components/onboarding-layout.d.cts +0 -44
- package/dist/components/onboarding-layout.d.ts +0 -44
- package/dist/components/onboarding-layout.js +0 -60
- package/dist/components/onboarding-layout.js.map +0 -1
- package/dist/components/power-history-chart.cjs +0 -498
- package/dist/components/power-history-chart.cjs.map +0 -1
- package/dist/components/power-history-chart.d.cts +0 -71
- package/dist/components/power-history-chart.d.ts +0 -71
- package/dist/components/power-history-chart.js +0 -496
- package/dist/components/power-history-chart.js.map +0 -1
- package/dist/components/power-history.cjs +0 -114
- package/dist/components/power-history.cjs.map +0 -1
- package/dist/components/power-history.d.cts +0 -40
- package/dist/components/power-history.d.ts +0 -41
- package/dist/components/power-history.js +0 -114
- package/dist/components/power-history.js.map +0 -1
- package/dist/components/power-network.cjs +0 -559
- package/dist/components/power-network.cjs.map +0 -1
- package/dist/components/power-network.d.cts +0 -80
- package/dist/components/power-network.d.ts +0 -80
- package/dist/components/power-network.js +0 -553
- package/dist/components/power-network.js.map +0 -1
- package/dist/components/smart-toggle-button.cjs +0 -24
- package/dist/components/smart-toggle-button.cjs.map +0 -1
- package/dist/components/smart-toggle-button.d.cts +0 -16
- package/dist/components/smart-toggle-button.d.ts +0 -16
- package/dist/components/smart-toggle-button.js +0 -23
- package/dist/components/smart-toggle-button.js.map +0 -1
- package/dist/components/solar-forecast-chart.cjs +0 -108
- package/dist/components/solar-forecast-chart.cjs.map +0 -1
- package/dist/components/solar-forecast-chart.d.cts +0 -77
- package/dist/components/solar-forecast-chart.d.ts +0 -77
- package/dist/components/solar-forecast-chart.js +0 -103
- package/dist/components/solar-forecast-chart.js.map +0 -1
- package/dist/number-flow-Bch81ixZ.d.cts +0 -14
- package/dist/number-flow-Bch81ixZ.d.ts +0 -14
- package/dist/utils/build-sankey-nodes.cjs +0 -72
- package/dist/utils/build-sankey-nodes.cjs.map +0 -1
- package/dist/utils/build-sankey-nodes.d.cts +0 -27
- package/dist/utils/build-sankey-nodes.d.ts +0 -27
- package/dist/utils/build-sankey-nodes.js +0 -71
- package/dist/utils/build-sankey-nodes.js.map +0 -1
|
@@ -1,80 +0,0 @@
|
|
|
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
|
|
@@ -1,80 +0,0 @@
|
|
|
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
|