@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,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
//#region src/components/energy-history-chart.d.ts
|
|
4
|
+
interface EnergyHistoryDatum {
|
|
5
|
+
/** Bucket label/id (e.g. weekday, day-of-month, month). */
|
|
6
|
+
bucket: string;
|
|
7
|
+
/** Solar used on-site (kWh, ≥ 0). */
|
|
8
|
+
solar: number;
|
|
9
|
+
/** Battery discharged (kWh, ≥ 0). */
|
|
10
|
+
battery: number;
|
|
11
|
+
/** Grid imported (kWh, ≥ 0). */
|
|
12
|
+
grid: number;
|
|
13
|
+
/** Grid feed-in (kWh, ≥ 0); drawn below the baseline as an export. */
|
|
14
|
+
gridFeedIn?: number;
|
|
15
|
+
}
|
|
16
|
+
interface EnergyHistoryChartProps {
|
|
17
|
+
data: EnergyHistoryDatum[];
|
|
18
|
+
/** Axis/tooltip unit, e.g. "kWh". */
|
|
19
|
+
unit: string;
|
|
20
|
+
formatValue?: (value: number) => string;
|
|
21
|
+
/** Formats the hovered bucket in the tooltip header. Defaults to the raw bucket. */
|
|
22
|
+
formatBucketLabel?: (bucket: string) => string;
|
|
23
|
+
labels: {
|
|
24
|
+
solar: string;
|
|
25
|
+
battery: string;
|
|
26
|
+
grid: string; /** Optional; when set, grid feed-in is drawn below the baseline. */
|
|
27
|
+
gridFeedIn?: string;
|
|
28
|
+
};
|
|
29
|
+
/** Series to drop entirely (no legend entry, bar segment, or tooltip row). */
|
|
30
|
+
omitSeries?: readonly EnergyHistorySeriesKey[];
|
|
31
|
+
/** Bucket to mark with the current-period dashed line. */
|
|
32
|
+
highlightedBucket?: string;
|
|
33
|
+
showHighlightLine?: boolean;
|
|
34
|
+
title?: string;
|
|
35
|
+
className?: string;
|
|
36
|
+
height?: number;
|
|
37
|
+
/** Subset of bucket ids to label on the x-axis. Defaults to all buckets. */
|
|
38
|
+
categoryTicks?: string[];
|
|
39
|
+
}
|
|
40
|
+
type EnergyHistorySeriesKey = 'solar' | 'battery' | 'grid' | 'gridFeedIn';
|
|
41
|
+
/**
|
|
42
|
+
* Energy-per-bucket stacked bar chart: solar (orange), battery (green) and grid
|
|
43
|
+
* (blue) energy sources stacked per bucket, the total height being the energy
|
|
44
|
+
* consumed. Grid feed-in (translucent blue) dips below the baseline as an
|
|
45
|
+
* export. For cumulative energy (week/month/year views). Thin wrapper over the
|
|
46
|
+
* shared visx `BarChart`, so it inherits the card tooltip and both indicators.
|
|
47
|
+
*/
|
|
48
|
+
declare function EnergyHistoryChart({
|
|
49
|
+
data,
|
|
50
|
+
unit,
|
|
51
|
+
formatValue,
|
|
52
|
+
formatBucketLabel,
|
|
53
|
+
labels,
|
|
54
|
+
omitSeries,
|
|
55
|
+
highlightedBucket,
|
|
56
|
+
showHighlightLine,
|
|
57
|
+
title,
|
|
58
|
+
className,
|
|
59
|
+
height,
|
|
60
|
+
categoryTicks
|
|
61
|
+
}: EnergyHistoryChartProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
//#endregion
|
|
63
|
+
export { EnergyHistoryChart, EnergyHistoryChartProps, EnergyHistoryDatum, EnergyHistorySeriesKey };
|
|
64
|
+
//# sourceMappingURL=energy-history-chart.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../utils/chars.js";
|
|
3
|
+
import { twoDecimalFormat } from "../utils/format.js";
|
|
4
|
+
import { BarChartWithTotal } from "./bar-chart-with-total.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/energy-history-chart.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Energy-per-bucket stacked bar chart: solar (orange), battery (green) and grid
|
|
9
|
+
* (blue) energy sources stacked per bucket, the total height being the energy
|
|
10
|
+
* consumed. Grid feed-in (translucent blue) dips below the baseline as an
|
|
11
|
+
* export. For cumulative energy (week/month/year views). Thin wrapper over the
|
|
12
|
+
* shared visx `BarChart`, so it inherits the card tooltip and both indicators.
|
|
13
|
+
*/
|
|
14
|
+
function EnergyHistoryChart({ data, unit, formatValue, formatBucketLabel, labels, omitSeries, highlightedBucket, showHighlightLine, title, className, height = 260, categoryTicks }) {
|
|
15
|
+
const fmtValue = (value) => formatValue ? formatValue(value) : `${twoDecimalFormat.format(value)} ${unit}`;
|
|
16
|
+
const omitted = new Set(omitSeries);
|
|
17
|
+
return /* @__PURE__ */ jsx(BarChartWithTotal, {
|
|
18
|
+
data,
|
|
19
|
+
series: [
|
|
20
|
+
{
|
|
21
|
+
key: "solar",
|
|
22
|
+
label: labels.solar,
|
|
23
|
+
color: "var(--orange-9)",
|
|
24
|
+
getValue: (d) => d.solar
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: "battery",
|
|
28
|
+
label: labels.battery,
|
|
29
|
+
color: "var(--green-9)",
|
|
30
|
+
getValue: (d) => d.battery
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: "grid",
|
|
34
|
+
label: labels.grid,
|
|
35
|
+
color: "var(--blue-9)",
|
|
36
|
+
getValue: (d) => d.grid
|
|
37
|
+
},
|
|
38
|
+
...labels.gridFeedIn !== void 0 ? [{
|
|
39
|
+
key: "gridFeedIn",
|
|
40
|
+
label: labels.gridFeedIn,
|
|
41
|
+
color: "var(--blue-7)",
|
|
42
|
+
getValue: (d) => -Math.max(0, d.gridFeedIn ?? 0)
|
|
43
|
+
}] : []
|
|
44
|
+
].filter((s) => !omitted.has(s.key)),
|
|
45
|
+
getCategory: (d) => d.bucket,
|
|
46
|
+
title,
|
|
47
|
+
yAxisUnit: unit,
|
|
48
|
+
height,
|
|
49
|
+
className,
|
|
50
|
+
formatValue: fmtValue,
|
|
51
|
+
categoryTicks,
|
|
52
|
+
...formatBucketLabel && { formatTooltipCategory: (category) => formatBucketLabel(String(category)) },
|
|
53
|
+
totalSuffix: unit,
|
|
54
|
+
totalFormat: { maximumFractionDigits: 2 },
|
|
55
|
+
...highlightedBucket !== void 0 && { highlightedCategory: highlightedBucket },
|
|
56
|
+
...showHighlightLine !== void 0 && { showHighlightLine }
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { EnergyHistoryChart };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=energy-history-chart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"energy-history-chart.js","names":["valueFormat"],"sources":["../../src/components/energy-history-chart.tsx"],"sourcesContent":["import { NARROW_NBSP } from '../utils/chars'\nimport { twoDecimalFormat as valueFormat } from '../utils/format'\nimport type { BarChartSeries } from './bar-chart'\nimport { BarChartWithTotal } from './bar-chart-with-total'\n\nexport interface EnergyHistoryDatum {\n /** Bucket label/id (e.g. weekday, day-of-month, month). */\n bucket: string\n /** Solar used on-site (kWh, ≥ 0). */\n solar: number\n /** Battery discharged (kWh, ≥ 0). */\n battery: number\n /** Grid imported (kWh, ≥ 0). */\n grid: number\n /** Grid feed-in (kWh, ≥ 0); drawn below the baseline as an export. */\n gridFeedIn?: number\n}\n\nexport interface EnergyHistoryChartProps {\n data: EnergyHistoryDatum[]\n /** Axis/tooltip unit, e.g. \"kWh\". */\n unit: string\n formatValue?: (value: number) => string\n /** Formats the hovered bucket in the tooltip header. Defaults to the raw bucket. */\n formatBucketLabel?: (bucket: string) => string\n labels: {\n solar: string\n battery: string\n grid: string\n /** Optional; when set, grid feed-in is drawn below the baseline. */\n gridFeedIn?: string\n }\n /** Series to drop entirely (no legend entry, bar segment, or tooltip row). */\n omitSeries?: readonly EnergyHistorySeriesKey[]\n /** Bucket to mark with the current-period dashed line. */\n highlightedBucket?: string\n showHighlightLine?: boolean\n title?: string\n className?: string\n height?: number\n /** Subset of bucket ids to label on the x-axis. Defaults to all buckets. */\n categoryTicks?: string[]\n}\n\nexport type EnergyHistorySeriesKey = 'solar' | 'battery' | 'grid' | 'gridFeedIn'\n\n/**\n * Energy-per-bucket stacked bar chart: solar (orange), battery (green) and grid\n * (blue) energy sources stacked per bucket, the total height being the energy\n * consumed. Grid feed-in (translucent blue) dips below the baseline as an\n * export. For cumulative energy (week/month/year views). Thin wrapper over the\n * shared visx `BarChart`, so it inherits the card tooltip and both indicators.\n */\nexport function EnergyHistoryChart({\n data,\n unit,\n formatValue,\n formatBucketLabel,\n labels,\n omitSeries,\n highlightedBucket,\n showHighlightLine,\n title,\n className,\n height = 260,\n categoryTicks,\n}: EnergyHistoryChartProps) {\n const fmtValue = (value: number) =>\n formatValue\n ? formatValue(value)\n : `${valueFormat.format(value)}${NARROW_NBSP}${unit}`\n\n const omitted = new Set<EnergyHistorySeriesKey>(omitSeries)\n const allSeries: BarChartSeries<EnergyHistoryDatum>[] = [\n {\n key: 'solar',\n label: labels.solar,\n color: 'var(--orange-9)',\n getValue: (d) => d.solar,\n },\n {\n key: 'battery',\n label: labels.battery,\n color: 'var(--green-9)',\n getValue: (d) => d.battery,\n },\n {\n key: 'grid',\n label: labels.grid,\n color: 'var(--blue-9)',\n getValue: (d) => d.grid,\n },\n ...(labels.gridFeedIn !== undefined\n ? [\n {\n key: 'gridFeedIn',\n label: labels.gridFeedIn,\n color: 'var(--blue-7)',\n getValue: (d: EnergyHistoryDatum) =>\n -Math.max(0, d.gridFeedIn ?? 0),\n },\n ]\n : []),\n ]\n const series = allSeries.filter(\n (s) => !omitted.has(s.key as EnergyHistorySeriesKey),\n )\n\n return (\n <BarChartWithTotal<EnergyHistoryDatum>\n data={data}\n series={series}\n getCategory={(d) => d.bucket}\n title={title}\n yAxisUnit={unit}\n height={height}\n className={className}\n formatValue={fmtValue}\n categoryTicks={categoryTicks}\n {...(formatBucketLabel && {\n formatTooltipCategory: (category: string | number) =>\n formatBucketLabel(String(category)),\n })}\n totalSuffix={unit}\n totalFormat={{ maximumFractionDigits: 2 }}\n {...(highlightedBucket !== undefined && {\n highlightedCategory: highlightedBucket,\n })}\n {...(showHighlightLine !== undefined && { showHighlightLine })}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;AAqDA,SAAgB,mBAAmB,EACjC,MACA,MACA,aACA,mBACA,QACA,YACA,mBACA,mBACA,OACA,WACA,SAAS,KACT,iBAC0B;CAC1B,MAAM,YAAY,UAChB,cACI,YAAY,KAAK,IACjB,GAAGA,iBAAY,OAAO,KAAK,KAAkB;CAEnD,MAAM,UAAU,IAAI,IAA4B,UAAU;CAoC1D,OACE,oBAAC,mBAAD;EACQ;EACN,QAPW;GA9Bb;IACE,KAAK;IACL,OAAO,OAAO;IACd,OAAO;IACP,WAAW,MAAM,EAAE;GACrB;GACA;IACE,KAAK;IACL,OAAO,OAAO;IACd,OAAO;IACP,WAAW,MAAM,EAAE;GACrB;GACA;IACE,KAAK;IACL,OAAO,OAAO;IACd,OAAO;IACP,WAAW,MAAM,EAAE;GACrB;GACA,GAAI,OAAO,eAAe,KAAA,IACtB,CACE;IACE,KAAK;IACL,OAAO,OAAO;IACd,OAAO;IACP,WAAW,MACT,CAAC,KAAK,IAAI,GAAG,EAAE,cAAc,CAAC;GAClC,CACF,IACA,CAAC;EAEgB,EAAE,QACtB,MAAM,CAAC,QAAQ,IAAI,EAAE,GAA6B,CAMpC;EACb,cAAc,MAAM,EAAE;EACf;EACP,WAAW;EACH;EACG;EACX,aAAa;EACE;EACf,GAAK,qBAAqB,EACxB,wBAAwB,aACtB,kBAAkB,OAAO,QAAQ,CAAC,EACtC;EACA,aAAa;EACb,aAAa,EAAE,uBAAuB,EAAE;EACxC,GAAK,sBAAsB,KAAA,KAAa,EACtC,qBAAqB,kBACvB;EACA,GAAK,sBAAsB,KAAA,KAAa,EAAE,kBAAkB;CAC7D,CAAA;AAEL"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { Tone } from "../lib/tones.js";
|
|
4
|
-
import { SparkIcon } from "@epilot/spark-icons";
|
|
5
4
|
import * as React$1 from "react";
|
|
5
|
+
import { SparkIcon } from "@epilot/spark-icons";
|
|
6
6
|
|
|
7
7
|
//#region src/components/entity-card.d.ts
|
|
8
8
|
declare const EntityCard: ({
|
|
@@ -6,9 +6,9 @@ const require_components_button = require("./button.cjs");
|
|
|
6
6
|
const require_components_input_group = require("./input-group.cjs");
|
|
7
7
|
const require_components_calendar = require("./calendar.cjs");
|
|
8
8
|
const require_components_popover = require("./popover.cjs");
|
|
9
|
-
let _epilot_spark_icons = require("@epilot/spark-icons");
|
|
10
9
|
let react = require("react");
|
|
11
10
|
react = require_chunk.__toESM(react);
|
|
11
|
+
let _epilot_spark_icons = require("@epilot/spark-icons");
|
|
12
12
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
13
|
let ictus = require("ictus");
|
|
14
14
|
let cnfast = require("cnfast");
|
|
@@ -5,8 +5,8 @@ import { Button } from "./button.js";
|
|
|
5
5
|
import { InputGroup, InputGroupAddon, InputGroupInput } from "./input-group.js";
|
|
6
6
|
import { Calendar } from "./calendar.js";
|
|
7
7
|
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./popover.js";
|
|
8
|
-
import { CalendarMonth } from "@epilot/spark-icons";
|
|
9
8
|
import * as React$1 from "react";
|
|
9
|
+
import { CalendarMonth } from "@epilot/spark-icons";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { apply, formatDate, isDateMaskKey, parseDate } from "ictus";
|
|
12
12
|
//#region src/components/input-date.tsx
|
|
@@ -10,7 +10,7 @@ declare function InputGroup({
|
|
|
10
10
|
...props
|
|
11
11
|
}: React$1.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare const inputGroupAddonVariants: (props?: ({
|
|
13
|
-
align?: "inline-
|
|
13
|
+
align?: "inline-end" | "inline-start" | null | undefined;
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
15
|
declare function InputGroupAddon({
|
|
16
16
|
className,
|
|
@@ -10,7 +10,7 @@ declare function InputGroup({
|
|
|
10
10
|
...props
|
|
11
11
|
}: React$1.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare const inputGroupAddonVariants: (props?: ({
|
|
13
|
-
align?: "inline-
|
|
13
|
+
align?: "inline-end" | "inline-start" | null | undefined;
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
15
|
declare function InputGroupAddon({
|
|
16
16
|
className,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require_chunk = require("../chunk-DY84GLCh.cjs");
|
|
4
|
+
const require_hooks_use_chart_zoom = require("../hooks/use-chart-zoom.cjs");
|
|
5
|
+
const require_hooks_use_reduced_motion = require("../hooks/use-reduced-motion.cjs");
|
|
4
6
|
const require_utils_format = require("../utils/format.cjs");
|
|
5
7
|
const require_utils_chart_scale = require("../utils/chart-scale.cjs");
|
|
6
|
-
const require_utils_chart_time_ticks = require("../utils/chart-time-ticks.cjs");
|
|
7
|
-
const require_hooks_use_reduced_motion = require("../hooks/use-reduced-motion.cjs");
|
|
8
8
|
const require_components_chart = require("./chart.cjs");
|
|
9
|
-
const
|
|
9
|
+
const require_utils_chart_time_ticks = require("../utils/chart-time-ticks.cjs");
|
|
10
10
|
let react = require("react");
|
|
11
11
|
react = require_chunk.__toESM(react);
|
|
12
12
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useAnimatedChartDomain, useChartZoom } from "../hooks/use-chart-zoom.js";
|
|
3
|
+
import { useReducedMotion } from "../hooks/use-reduced-motion.js";
|
|
4
|
+
import { cn } from "../utils/cn.js";
|
|
2
5
|
import { localeNumberFormat } from "../utils/format.js";
|
|
3
6
|
import { buildYAxisScale, formatYAxisTick } from "../utils/chart-scale.js";
|
|
4
|
-
import { buildTimeTicks } from "../utils/chart-time-ticks.js";
|
|
5
|
-
import { cn } from "../utils/cn.js";
|
|
6
|
-
import { useReducedMotion } from "../hooks/use-reduced-motion.js";
|
|
7
7
|
import { ChartTooltipCard, ChartZoomResetButton, clampTooltipPosition, useMeasuredSize } from "./chart.js";
|
|
8
|
-
import {
|
|
8
|
+
import { buildTimeTicks } from "../utils/chart-time-ticks.js";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import { useCallback, useMemo } from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require_chunk = require("../chunk-DY84GLCh.cjs");
|
|
4
|
-
const require_components_button = require("./button.cjs");
|
|
5
4
|
const require_hooks_use_reduced_motion = require("../hooks/use-reduced-motion.cjs");
|
|
5
|
+
const require_components_button = require("./button.cjs");
|
|
6
6
|
const require_lib_message_animations = require("../lib/message-animations.cjs");
|
|
7
|
-
let _epilot_spark_icons = require("@epilot/spark-icons");
|
|
8
7
|
let react = require("react");
|
|
9
8
|
react = require_chunk.__toESM(react);
|
|
9
|
+
let _epilot_spark_icons = require("@epilot/spark-icons");
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
let _shadcn_react_message_scroller = require("@shadcn/react/message-scroller");
|
|
12
12
|
let motion_react = require("motion/react");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useReducedMotion } from "../hooks/use-reduced-motion.js";
|
|
2
3
|
import { cn } from "../utils/cn.js";
|
|
3
4
|
import { Button } from "./button.js";
|
|
4
|
-
import { useReducedMotion } from "../hooks/use-reduced-motion.js";
|
|
5
5
|
import { MESSAGE_ANIMATIONS } from "../lib/message-animations.js";
|
|
6
|
-
import { ArrowDownward, ArrowUpward } from "@epilot/spark-icons";
|
|
7
6
|
import * as React$1 from "react";
|
|
7
|
+
import { ArrowDownward, ArrowUpward } from "@epilot/spark-icons";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { MessageScroller as MessageScroller$1, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
10
10
|
import { LazyMotion, domAnimation } from "motion/react";
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
//#region src/components/number-flow.d.ts
|
|
6
|
-
declare function NumberFlow({
|
|
7
|
-
locales,
|
|
8
|
-
prefix,
|
|
9
|
-
suffix,
|
|
10
|
-
...props
|
|
11
|
-
}: NumberFlowProps$1): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { type Format, type NumberFlowProps, NumberFlow as default };
|
|
14
|
-
//# sourceMappingURL=number-flow.d.cts.map
|
|
3
|
+
import { n as NumberFlow, r as NumberFlowProps, t as Format } from "../number-flow-Bch81ixZ.cjs";
|
|
4
|
+
export { type Format, type NumberFlowProps, NumberFlow as default };
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
//#region src/components/number-flow.d.ts
|
|
6
|
-
declare function NumberFlow({
|
|
7
|
-
locales,
|
|
8
|
-
prefix,
|
|
9
|
-
suffix,
|
|
10
|
-
...props
|
|
11
|
-
}: NumberFlowProps$1): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { type Format, type NumberFlowProps, NumberFlow as default };
|
|
14
|
-
//# sourceMappingURL=number-flow.d.ts.map
|
|
3
|
+
import { n as NumberFlow, r as NumberFlowProps, t as Format } from "../number-flow-Bch81ixZ.js";
|
|
4
|
+
export { type Format, type NumberFlowProps, NumberFlow as default };
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const require_chunk = require("../chunk-DY84GLCh.cjs");
|
|
4
4
|
const require_components_button = require("./button.cjs");
|
|
5
5
|
const require_components_typography = require("./typography.cjs");
|
|
6
|
-
let _epilot_spark_icons = require("@epilot/spark-icons");
|
|
7
6
|
let react = require("react");
|
|
8
7
|
react = require_chunk.__toESM(react);
|
|
8
|
+
let _epilot_spark_icons = require("@epilot/spark-icons");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let _base_ui_react_merge_props = require("@base-ui/react/merge-props");
|
|
11
11
|
let _base_ui_react_use_render = require("@base-ui/react/use-render");
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { cn } from "../utils/cn.js";
|
|
3
3
|
import { Button } from "./button.js";
|
|
4
4
|
import { PageTitle } from "./typography.js";
|
|
5
|
-
import { ChevronLeft } from "@epilot/spark-icons";
|
|
6
5
|
import * as React$1 from "react";
|
|
6
|
+
import { ChevronLeft } from "@epilot/spark-icons";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
9
9
|
import { useRender } from "@base-ui/react/use-render";
|
package/dist/components/pill.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require_chunk = require("../chunk-DY84GLCh.cjs");
|
|
4
4
|
const require_lib_accent_colors = require("../lib/accent-colors.cjs");
|
|
5
|
-
let _epilot_spark_icons = require("@epilot/spark-icons");
|
|
6
5
|
let react = require("react");
|
|
7
6
|
react = require_chunk.__toESM(react);
|
|
7
|
+
let _epilot_spark_icons = require("@epilot/spark-icons");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
let cnfast = require("cnfast");
|
|
10
10
|
//#region src/components/pill.tsx
|
package/dist/components/pill.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../utils/cn.js";
|
|
3
3
|
import { accentByColor } from "../lib/accent-colors.js";
|
|
4
|
-
import { Close } from "@epilot/spark-icons";
|
|
5
4
|
import * as React$1 from "react";
|
|
5
|
+
import { Close } from "@epilot/spark-icons";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/pill.tsx
|
|
8
8
|
/**
|