@krizaka/charts 0.1.0 → 0.2.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/README.md +17 -5
- package/dist/bar.js +5 -4
- package/dist/candlestick.js +3 -3
- package/dist/chart.js +3 -3
- package/dist/{chunk-EK3Z647J.js → chunk-4LBXEAGC.js} +3 -3
- package/dist/{chunk-AHQXJSAQ.js → chunk-AA5EWWYV.js} +2 -2
- package/dist/{chunk-VKO2OYYM.js → chunk-ARARFMNE.js} +2 -2
- package/dist/{chunk-WBH2QU77.js → chunk-BV4DBGN7.js} +2 -2
- package/dist/{chunk-BZ5CQFPH.js → chunk-C4MFZLJM.js} +2 -2
- package/dist/{chunk-XAJ3KCC4.js → chunk-CSSZLFLO.js} +3 -3
- package/dist/{chunk-UNK4MJVG.js → chunk-CVWSMUUB.js} +8 -8
- package/dist/chunk-E5DKBSWX.js +2 -0
- package/dist/chunk-E5DKBSWX.js.map +1 -0
- package/dist/chunk-EEP7PS2L.js +54 -0
- package/dist/chunk-EEP7PS2L.js.map +1 -0
- package/dist/{chunk-DZB6HEVO.js → chunk-EQLC2QVN.js} +2 -2
- package/dist/chunk-FINOPIDN.js +2 -0
- package/dist/chunk-FINOPIDN.js.map +1 -0
- package/dist/chunk-G2KF2WL4.js +2 -0
- package/dist/chunk-G2KF2WL4.js.map +1 -0
- package/dist/{chunk-PTSB3H5Q.js → chunk-I3D7KUGN.js} +2 -2
- package/dist/chunk-IKQV3NSL.js +76 -0
- package/dist/chunk-IKQV3NSL.js.map +1 -0
- package/dist/{chunk-DWJPPEMC.js → chunk-JTKR7ZWP.js} +73 -60
- package/dist/chunk-JTKR7ZWP.js.map +1 -0
- package/dist/chunk-KNDHO67X.js +78 -0
- package/dist/chunk-KNDHO67X.js.map +1 -0
- package/dist/chunk-L2EKYWVI.js +94 -0
- package/dist/chunk-L2EKYWVI.js.map +1 -0
- package/dist/{chunk-XC6BQ3RN.js → chunk-MXLITIGU.js} +3 -3
- package/dist/{chunk-OER6ETT4.js → chunk-NCIQMRV3.js} +3 -3
- package/dist/chunk-OIRHLJBC.js +83 -0
- package/dist/chunk-OIRHLJBC.js.map +1 -0
- package/dist/{chunk-WIRCIOLH.js → chunk-PBQV3B6O.js} +5 -5
- package/dist/chunk-POQIHFAZ.js +2 -0
- package/dist/chunk-POQIHFAZ.js.map +1 -0
- package/dist/{chunk-I5QUZVU2.js → chunk-PWMMXRMC.js} +2 -2
- package/dist/chunk-SLEJDQ3A.js +81 -0
- package/dist/chunk-SLEJDQ3A.js.map +1 -0
- package/dist/{chunk-7TIFCK5E.js → chunk-VKZZY2QD.js} +3 -3
- package/dist/{chunk-VKTZD7UT.js → chunk-W5ILLSPK.js} +3 -3
- package/dist/chunk-WBHFVBSK.js +25 -0
- package/dist/chunk-WBHFVBSK.js.map +1 -0
- package/dist/chunk-WNUFGMS7.js +113 -0
- package/dist/chunk-WNUFGMS7.js.map +1 -0
- package/dist/{chunk-XR4ZJDOV.js → chunk-WVTIKOII.js} +2 -2
- package/dist/{chunk-7CSAGFBW.js → chunk-XDDALY4C.js} +3 -3
- package/dist/credits.d.ts +42 -0
- package/dist/credits.js +21 -0
- package/dist/credits.js.map +1 -0
- package/dist/earnings.d.ts +29 -0
- package/dist/earnings.js +22 -0
- package/dist/earnings.js.map +1 -0
- package/dist/funnel.js +3 -3
- package/dist/gauge.js +3 -2
- package/dist/geo.js +2 -2
- package/dist/globe.js +2 -2
- package/dist/goal.d.ts +26 -0
- package/dist/goal.js +17 -0
- package/dist/goal.js.map +1 -0
- package/dist/heatmap.js +3 -3
- package/dist/index.d.ts +7 -0
- package/dist/index.js +80 -33
- package/dist/labels-DE_743fQ.d.ts +72 -0
- package/dist/latency.d.ts +33 -0
- package/dist/latency.js +24 -0
- package/dist/latency.js.map +1 -0
- package/dist/line.js +5 -4
- package/dist/native.d.ts +195 -1
- package/dist/native.js +383 -14
- package/dist/native.js.map +1 -1
- package/dist/pie.js +3 -3
- package/dist/radar.js +3 -3
- package/dist/sankey.js +3 -3
- package/dist/scatter.js +3 -3
- package/dist/sparkline.js +4 -3
- package/dist/throughput.d.ts +37 -0
- package/dist/throughput.js +24 -0
- package/dist/throughput.js.map +1 -0
- package/dist/ticker.d.ts +38 -0
- package/dist/ticker.js +22 -0
- package/dist/ticker.js.map +1 -0
- package/dist/treemap.js +3 -3
- package/package.json +100 -4
- package/registry/area-chart.json +1 -0
- package/registry/bar-chart.json +1 -0
- package/registry/calendar-heatmap.json +1 -0
- package/registry/candlestick.json +1 -0
- package/registry/chart.json +1 -0
- package/registry/charts-provider.json +1 -0
- package/registry/credit-usage.json +473 -0
- package/registry/earnings-chart.json +703 -0
- package/registry/examples/credit-usage/monthly-credits.d.ts +4 -0
- package/registry/examples/credit-usage/monthly-credits.js +24 -0
- package/registry/examples/credit-usage/monthly-credits.tsx +19 -0
- package/registry/examples/credit-usage/native/monthly-credits.d.ts +4 -0
- package/registry/examples/credit-usage/native/monthly-credits.dark.png +0 -0
- package/registry/examples/credit-usage/native/monthly-credits.js +23 -0
- package/registry/examples/credit-usage/native/monthly-credits.light.png +0 -0
- package/registry/examples/credit-usage/native/monthly-credits.tsx +18 -0
- package/registry/examples/credit-usage/storage-plan.d.ts +4 -0
- package/registry/examples/credit-usage/storage-plan.js +21 -0
- package/registry/examples/credit-usage/storage-plan.tsx +15 -0
- package/registry/examples/earnings-chart/creator-month.d.ts +4 -0
- package/registry/examples/earnings-chart/creator-month.js +29 -0
- package/registry/examples/earnings-chart/creator-month.tsx +24 -0
- package/registry/examples/earnings-chart/gross-and-net.d.ts +4 -0
- package/registry/examples/earnings-chart/gross-and-net.js +29 -0
- package/registry/examples/earnings-chart/gross-and-net.tsx +24 -0
- package/registry/examples/earnings-chart/native/creator-month.d.ts +4 -0
- package/registry/examples/earnings-chart/native/creator-month.dark.png +0 -0
- package/registry/examples/earnings-chart/native/creator-month.js +29 -0
- package/registry/examples/earnings-chart/native/creator-month.light.png +0 -0
- package/registry/examples/earnings-chart/native/creator-month.tsx +24 -0
- package/registry/examples/goal-progress/challenge-pot.d.ts +4 -0
- package/registry/examples/goal-progress/challenge-pot.js +22 -0
- package/registry/examples/goal-progress/challenge-pot.tsx +16 -0
- package/registry/examples/goal-progress/goal-reached.d.ts +4 -0
- package/registry/examples/goal-progress/goal-reached.js +11 -0
- package/registry/examples/goal-progress/goal-reached.tsx +6 -0
- package/registry/examples/goal-progress/native/challenge-pot.d.ts +4 -0
- package/registry/examples/goal-progress/native/challenge-pot.dark.png +0 -0
- package/registry/examples/goal-progress/native/challenge-pot.js +11 -0
- package/registry/examples/goal-progress/native/challenge-pot.light.png +0 -0
- package/registry/examples/goal-progress/native/challenge-pot.tsx +6 -0
- package/registry/examples/job-throughput/live-hours.d.ts +4 -0
- package/registry/examples/job-throughput/live-hours.js +33 -0
- package/registry/examples/job-throughput/live-hours.tsx +28 -0
- package/registry/examples/job-throughput/native/week-of-jobs.d.ts +4 -0
- package/registry/examples/job-throughput/native/week-of-jobs.dark.png +0 -0
- package/registry/examples/job-throughput/native/week-of-jobs.js +20 -0
- package/registry/examples/job-throughput/native/week-of-jobs.light.png +0 -0
- package/registry/examples/job-throughput/native/week-of-jobs.tsx +16 -0
- package/registry/examples/job-throughput/week-of-jobs.d.ts +4 -0
- package/registry/examples/job-throughput/week-of-jobs.js +20 -0
- package/registry/examples/job-throughput/week-of-jobs.tsx +16 -0
- package/registry/examples/latency-chart/by-capability.d.ts +4 -0
- package/registry/examples/latency-chart/by-capability.js +26 -0
- package/registry/examples/latency-chart/by-capability.tsx +21 -0
- package/registry/examples/latency-chart/native/by-capability.d.ts +4 -0
- package/registry/examples/latency-chart/native/by-capability.dark.png +0 -0
- package/registry/examples/latency-chart/native/by-capability.js +17 -0
- package/registry/examples/latency-chart/native/by-capability.light.png +0 -0
- package/registry/examples/latency-chart/native/by-capability.tsx +13 -0
- package/registry/examples/latency-chart/time-to-result.d.ts +4 -0
- package/registry/examples/latency-chart/time-to-result.js +27 -0
- package/registry/examples/latency-chart/time-to-result.tsx +22 -0
- package/registry/examples/price-ticker/auction-room.d.ts +4 -0
- package/registry/examples/price-ticker/auction-room.js +21 -0
- package/registry/examples/price-ticker/auction-room.tsx +17 -0
- package/registry/examples/price-ticker/native/auction-room.d.ts +4 -0
- package/registry/examples/price-ticker/native/auction-room.dark.png +0 -0
- package/registry/examples/price-ticker/native/auction-room.js +19 -0
- package/registry/examples/price-ticker/native/auction-room.light.png +0 -0
- package/registry/examples/price-ticker/native/auction-room.tsx +15 -0
- package/registry/examples/price-ticker/no-bid-yet.d.ts +4 -0
- package/registry/examples/price-ticker/no-bid-yet.js +11 -0
- package/registry/examples/price-ticker/no-bid-yet.tsx +6 -0
- package/registry/funnel.json +1 -0
- package/registry/gauge.json +1 -0
- package/registry/geo-map.json +1 -0
- package/registry/globe.json +1 -0
- package/registry/goal-progress.json +520 -0
- package/registry/heatmap.json +1 -0
- package/registry/index.json +163 -1
- package/registry/job-throughput.json +654 -0
- package/registry/latency-chart.json +671 -0
- package/registry/line-chart.json +1 -0
- package/registry/pie-chart.json +1 -0
- package/registry/price-ticker.json +684 -0
- package/registry/radar-chart.json +1 -0
- package/registry/sankey.json +1 -0
- package/registry/scatter-chart.json +1 -0
- package/registry/sparkline.json +1 -0
- package/registry/treemap.json +1 -0
- package/dist/chunk-DWJPPEMC.js.map +0 -1
- /package/dist/{chunk-EK3Z647J.js.map → chunk-4LBXEAGC.js.map} +0 -0
- /package/dist/{chunk-AHQXJSAQ.js.map → chunk-AA5EWWYV.js.map} +0 -0
- /package/dist/{chunk-VKO2OYYM.js.map → chunk-ARARFMNE.js.map} +0 -0
- /package/dist/{chunk-WBH2QU77.js.map → chunk-BV4DBGN7.js.map} +0 -0
- /package/dist/{chunk-BZ5CQFPH.js.map → chunk-C4MFZLJM.js.map} +0 -0
- /package/dist/{chunk-XAJ3KCC4.js.map → chunk-CSSZLFLO.js.map} +0 -0
- /package/dist/{chunk-UNK4MJVG.js.map → chunk-CVWSMUUB.js.map} +0 -0
- /package/dist/{chunk-DZB6HEVO.js.map → chunk-EQLC2QVN.js.map} +0 -0
- /package/dist/{chunk-PTSB3H5Q.js.map → chunk-I3D7KUGN.js.map} +0 -0
- /package/dist/{chunk-XC6BQ3RN.js.map → chunk-MXLITIGU.js.map} +0 -0
- /package/dist/{chunk-OER6ETT4.js.map → chunk-NCIQMRV3.js.map} +0 -0
- /package/dist/{chunk-WIRCIOLH.js.map → chunk-PBQV3B6O.js.map} +0 -0
- /package/dist/{chunk-I5QUZVU2.js.map → chunk-PWMMXRMC.js.map} +0 -0
- /package/dist/{chunk-7TIFCK5E.js.map → chunk-VKZZY2QD.js.map} +0 -0
- /package/dist/{chunk-VKTZD7UT.js.map → chunk-W5ILLSPK.js.map} +0 -0
- /package/dist/{chunk-XR4ZJDOV.js.map → chunk-WVTIKOII.js.map} +0 -0
- /package/dist/{chunk-7CSAGFBW.js.map → chunk-XDDALY4C.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,65 +1,98 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
Chart
|
|
4
|
-
} from "./chunk-AHQXJSAQ.js";
|
|
5
|
-
import {
|
|
6
|
-
Globe3D
|
|
7
|
-
} from "./chunk-PTSB3H5Q.js";
|
|
8
|
-
import {
|
|
9
|
-
RadarChart
|
|
10
|
-
} from "./chunk-7TIFCK5E.js";
|
|
11
2
|
import {
|
|
12
3
|
CalendarHeatmap,
|
|
13
4
|
Heatmap
|
|
14
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XDDALY4C.js";
|
|
15
6
|
import {
|
|
16
7
|
Sankey
|
|
17
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MXLITIGU.js";
|
|
18
9
|
import {
|
|
19
10
|
Funnel
|
|
20
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CSSZLFLO.js";
|
|
21
12
|
import {
|
|
22
13
|
Candlestick
|
|
23
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NCIQMRV3.js";
|
|
24
15
|
import {
|
|
25
16
|
Treemap
|
|
26
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-W5ILLSPK.js";
|
|
27
18
|
import {
|
|
28
19
|
ScatterChart,
|
|
29
20
|
correlation
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import
|
|
21
|
+
} from "./chunk-4LBXEAGC.js";
|
|
22
|
+
import {
|
|
23
|
+
Chart
|
|
24
|
+
} from "./chunk-AA5EWWYV.js";
|
|
25
|
+
import "./chunk-E5DKBSWX.js";
|
|
26
|
+
import "./chunk-FINOPIDN.js";
|
|
27
|
+
import {
|
|
28
|
+
DonutChart,
|
|
29
|
+
PieChart
|
|
30
|
+
} from "./chunk-PBQV3B6O.js";
|
|
31
|
+
import "./chunk-G2KF2WL4.js";
|
|
32
|
+
import "./chunk-POQIHFAZ.js";
|
|
33
|
+
import {
|
|
34
|
+
GeoMap
|
|
35
|
+
} from "./chunk-BV4DBGN7.js";
|
|
36
|
+
import {
|
|
37
|
+
Globe3D
|
|
38
|
+
} from "./chunk-I3D7KUGN.js";
|
|
39
|
+
import "./chunk-6FINSUOS.js";
|
|
40
|
+
import {
|
|
41
|
+
RadarChart
|
|
42
|
+
} from "./chunk-VKZZY2QD.js";
|
|
43
|
+
import "./chunk-PWMMXRMC.js";
|
|
32
44
|
import {
|
|
33
45
|
useSlidingWindow
|
|
34
46
|
} from "./chunk-TPJDOB7R.js";
|
|
35
47
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
48
|
+
EarningsChart
|
|
49
|
+
} from "./chunk-OIRHLJBC.js";
|
|
50
|
+
import {
|
|
51
|
+
DEFAULT_STATUSES,
|
|
52
|
+
JobThroughput
|
|
53
|
+
} from "./chunk-SLEJDQ3A.js";
|
|
54
|
+
import {
|
|
55
|
+
LatencyChart
|
|
56
|
+
} from "./chunk-IKQV3NSL.js";
|
|
39
57
|
import {
|
|
40
58
|
BarChart
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-UNK4MJVG.js";
|
|
59
|
+
} from "./chunk-WVTIKOII.js";
|
|
43
60
|
import {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
61
|
+
CreditUsage
|
|
62
|
+
} from "./chunk-L2EKYWVI.js";
|
|
63
|
+
import {
|
|
64
|
+
Sparkline
|
|
65
|
+
} from "./chunk-ARARFMNE.js";
|
|
66
|
+
import {
|
|
67
|
+
GoalProgress
|
|
68
|
+
} from "./chunk-EEP7PS2L.js";
|
|
47
69
|
import {
|
|
48
70
|
Gauge
|
|
49
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-EQLC2QVN.js";
|
|
50
72
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
73
|
+
PriceTicker
|
|
74
|
+
} from "./chunk-KNDHO67X.js";
|
|
75
|
+
import {
|
|
76
|
+
AreaChart,
|
|
77
|
+
LineChart
|
|
78
|
+
} from "./chunk-C4MFZLJM.js";
|
|
79
|
+
import "./chunk-CVWSMUUB.js";
|
|
80
|
+
import "./chunk-WBHFVBSK.js";
|
|
53
81
|
import "./chunk-BISL7DYW.js";
|
|
54
82
|
import "./chunk-ANUCSRUN.js";
|
|
55
|
-
import "./chunk-OB5EFDDH.js";
|
|
56
|
-
import {
|
|
57
|
-
GeoMap
|
|
58
|
-
} from "./chunk-WBH2QU77.js";
|
|
59
|
-
import "./chunk-6FINSUOS.js";
|
|
60
83
|
import "./chunk-W5FX4TU3.js";
|
|
84
|
+
import {
|
|
85
|
+
CREDIT_LABELS,
|
|
86
|
+
EARNINGS_LABELS,
|
|
87
|
+
GOAL_LABELS,
|
|
88
|
+
LATENCY_LABELS,
|
|
89
|
+
THROUGHPUT_LABELS,
|
|
90
|
+
TICKER_LABELS,
|
|
91
|
+
formatDuration
|
|
92
|
+
} from "./chunk-WNUFGMS7.js";
|
|
93
|
+
import "./chunk-OB5EFDDH.js";
|
|
61
94
|
import "./chunk-XLLYNNC6.js";
|
|
62
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-JTKR7ZWP.js";
|
|
63
96
|
import {
|
|
64
97
|
ChartsProvider,
|
|
65
98
|
DEFAULT_LABELS,
|
|
@@ -72,28 +105,42 @@ import {
|
|
|
72
105
|
export {
|
|
73
106
|
AreaChart,
|
|
74
107
|
BarChart,
|
|
108
|
+
CREDIT_LABELS,
|
|
75
109
|
CalendarHeatmap,
|
|
76
110
|
Candlestick,
|
|
77
111
|
Chart,
|
|
78
112
|
ChartsProvider,
|
|
113
|
+
CreditUsage,
|
|
79
114
|
DEFAULT_LABELS,
|
|
115
|
+
DEFAULT_STATUSES,
|
|
80
116
|
DIVERGING,
|
|
81
117
|
DonutChart,
|
|
118
|
+
EARNINGS_LABELS,
|
|
119
|
+
EarningsChart,
|
|
82
120
|
Funnel,
|
|
121
|
+
GOAL_LABELS,
|
|
83
122
|
Gauge,
|
|
84
123
|
GeoMap,
|
|
85
124
|
Globe3D,
|
|
125
|
+
GoalProgress,
|
|
86
126
|
HUES,
|
|
87
127
|
Heatmap,
|
|
128
|
+
JobThroughput,
|
|
129
|
+
LATENCY_LABELS,
|
|
130
|
+
LatencyChart,
|
|
88
131
|
LineChart,
|
|
89
132
|
ORDERS,
|
|
90
133
|
PieChart,
|
|
134
|
+
PriceTicker,
|
|
91
135
|
RadarChart,
|
|
92
136
|
Sankey,
|
|
93
137
|
ScatterChart,
|
|
94
138
|
Sparkline,
|
|
139
|
+
THROUGHPUT_LABELS,
|
|
140
|
+
TICKER_LABELS,
|
|
95
141
|
Treemap,
|
|
96
142
|
correlation,
|
|
143
|
+
formatDuration,
|
|
97
144
|
palette,
|
|
98
145
|
sequential,
|
|
99
146
|
useSlidingWindow
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
interface EarningsLabels {
|
|
2
|
+
/** Under the total: `earned over {count} months`. `{count}` is the number of periods. */
|
|
3
|
+
total: string;
|
|
4
|
+
/** The change of the last period: `{change} vs the previous month`. */
|
|
5
|
+
change: string;
|
|
6
|
+
/** The gross series' name. */
|
|
7
|
+
gross: string;
|
|
8
|
+
/** The net series' name. */
|
|
9
|
+
net: string;
|
|
10
|
+
}
|
|
11
|
+
declare const EARNINGS_LABELS: EarningsLabels;
|
|
12
|
+
interface ThroughputLabels {
|
|
13
|
+
/** Under the total: `jobs over {count} days`. */
|
|
14
|
+
total: string;
|
|
15
|
+
/** The success rate of the finished jobs: `{rate} succeeded`. */
|
|
16
|
+
success: string;
|
|
17
|
+
}
|
|
18
|
+
declare const THROUGHPUT_LABELS: ThroughputLabels;
|
|
19
|
+
interface LatencyLabels {
|
|
20
|
+
/** The median series. */
|
|
21
|
+
p50: string;
|
|
22
|
+
/** The 95th percentile series. */
|
|
23
|
+
p95: string;
|
|
24
|
+
/** The slowest p95: `slowest: {name}`. */
|
|
25
|
+
slowest: string;
|
|
26
|
+
/** How many go past the objective: `{count} over the objective`. */
|
|
27
|
+
over: string;
|
|
28
|
+
/** All within the objective. */
|
|
29
|
+
within: string;
|
|
30
|
+
}
|
|
31
|
+
declare const LATENCY_LABELS: LatencyLabels;
|
|
32
|
+
interface CreditLabels {
|
|
33
|
+
/** Under the remaining amount: `left of {limit}`. */
|
|
34
|
+
remaining: string;
|
|
35
|
+
/** The used part: `{used} used ({percent})`. */
|
|
36
|
+
used: string;
|
|
37
|
+
/** The projection: `at this pace, runs out on {date}`. */
|
|
38
|
+
runsOut: string;
|
|
39
|
+
/** No use lately: it does not run out. */
|
|
40
|
+
steady: string;
|
|
41
|
+
/** The renewal: `renews on {date}`. */
|
|
42
|
+
renews: string;
|
|
43
|
+
/** The daily use sparkline's title. */
|
|
44
|
+
daily: string;
|
|
45
|
+
}
|
|
46
|
+
declare const CREDIT_LABELS: CreditLabels;
|
|
47
|
+
interface GoalLabels {
|
|
48
|
+
/** Under the amount: `raised of {goal}`. */
|
|
49
|
+
raised: string;
|
|
50
|
+
/** Reached: `goal reached`. */
|
|
51
|
+
reached: string;
|
|
52
|
+
/** The supporters: `{count} supporters`. */
|
|
53
|
+
supporters: string;
|
|
54
|
+
/** The time left: `{time} left`. */
|
|
55
|
+
left: string;
|
|
56
|
+
}
|
|
57
|
+
declare const GOAL_LABELS: GoalLabels;
|
|
58
|
+
interface TickerLabels {
|
|
59
|
+
/** Under the price: `current bid`. */
|
|
60
|
+
current: string;
|
|
61
|
+
/** The change since the opening: `{change} since the opening ({count} bids)`. */
|
|
62
|
+
change: string;
|
|
63
|
+
/** No bid yet: `opening price`. */
|
|
64
|
+
opening: string;
|
|
65
|
+
/** The reserve line. */
|
|
66
|
+
reserve: string;
|
|
67
|
+
/** The series' name. */
|
|
68
|
+
price: string;
|
|
69
|
+
}
|
|
70
|
+
declare const TICKER_LABELS: TickerLabels;
|
|
71
|
+
|
|
72
|
+
export { CREDIT_LABELS as C, EARNINGS_LABELS as E, GOAL_LABELS as G, LATENCY_LABELS as L, THROUGHPUT_LABELS as T, type CreditLabels as a, type EarningsLabels as b, type GoalLabels as c, type LatencyLabels as d, TICKER_LABELS as e, type ThroughputLabels as f, type TickerLabels as g };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { d as LatencyLabels } from './labels-DE_743fQ.js';
|
|
2
|
+
export { L as LATENCY_LABELS } from './labels-DE_743fQ.js';
|
|
3
|
+
import { L as Locale, g as Datum, A as Accessor } from './context-BgYUymEO.js';
|
|
4
|
+
import * as react from 'react';
|
|
5
|
+
import { C as CartesianProps } from './cartesian-BRhNQ3ib.js';
|
|
6
|
+
import './frame-I7_xYGy5.js';
|
|
7
|
+
|
|
8
|
+
/** Milliseconds as a duration: `840 ms`, `1.2 s`, `2.5 min` — the unit follows the size, through Intl. */
|
|
9
|
+
declare function formatDuration(ms: number, locale: Locale): string;
|
|
10
|
+
|
|
11
|
+
interface LatencyChartProps<T extends Datum> extends Omit<CartesianProps<T>, "y" | "yLabel" | "series" | "format" | "x" | "xFormat" | "thresholds" | "labels"> {
|
|
12
|
+
/** The field (or function) naming what is measured (a capability, a model). Default `"name"`. */
|
|
13
|
+
x?: Accessor<T, unknown>;
|
|
14
|
+
/** The median, in milliseconds. Default `"p50"`. */
|
|
15
|
+
p50?: Accessor<T, number | null | undefined>;
|
|
16
|
+
/** The 95th percentile, in milliseconds. Default `"p95"`; `null` to draw the median alone. */
|
|
17
|
+
p95?: Accessor<T, number | null | undefined> | null;
|
|
18
|
+
/** The service objective, in milliseconds: a line, and the count of what goes past it (by p95). */
|
|
19
|
+
objective?: {
|
|
20
|
+
readonly value: number;
|
|
21
|
+
readonly label: string;
|
|
22
|
+
};
|
|
23
|
+
/** Vertical bars instead of horizontal ones (few, short names). */
|
|
24
|
+
vertical?: boolean;
|
|
25
|
+
/** Hide the slowest p95 and the count over the objective. */
|
|
26
|
+
hideSummary?: boolean;
|
|
27
|
+
/** The words, passed translated; English by default. */
|
|
28
|
+
labels?: Partial<LatencyLabels>;
|
|
29
|
+
}
|
|
30
|
+
/** Median and p95 latency per item, durations in the unit that fits, against a service objective. */
|
|
31
|
+
declare function LatencyChart<T extends Datum>({ x, p50, p95, objective, vertical, hideSummary, labels: given, description, data, ...props }: LatencyChartProps<T>): react.JSX.Element;
|
|
32
|
+
|
|
33
|
+
export { LatencyChart, type LatencyChartProps, LatencyLabels, formatDuration };
|
package/dist/latency.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
LatencyChart
|
|
4
|
+
} from "./chunk-IKQV3NSL.js";
|
|
5
|
+
import "./chunk-WVTIKOII.js";
|
|
6
|
+
import "./chunk-CVWSMUUB.js";
|
|
7
|
+
import "./chunk-WBHFVBSK.js";
|
|
8
|
+
import "./chunk-BISL7DYW.js";
|
|
9
|
+
import "./chunk-ANUCSRUN.js";
|
|
10
|
+
import "./chunk-W5FX4TU3.js";
|
|
11
|
+
import {
|
|
12
|
+
LATENCY_LABELS,
|
|
13
|
+
formatDuration
|
|
14
|
+
} from "./chunk-WNUFGMS7.js";
|
|
15
|
+
import "./chunk-OB5EFDDH.js";
|
|
16
|
+
import "./chunk-XLLYNNC6.js";
|
|
17
|
+
import "./chunk-JTKR7ZWP.js";
|
|
18
|
+
import "./chunk-3CJHBJXA.js";
|
|
19
|
+
export {
|
|
20
|
+
LATENCY_LABELS,
|
|
21
|
+
LatencyChart,
|
|
22
|
+
formatDuration
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=latency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/line.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import "./chunk-E5DKBSWX.js";
|
|
2
3
|
import {
|
|
3
4
|
AreaChart,
|
|
4
5
|
LineChart
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-C4MFZLJM.js";
|
|
7
|
+
import "./chunk-CVWSMUUB.js";
|
|
7
8
|
import "./chunk-BISL7DYW.js";
|
|
8
9
|
import "./chunk-ANUCSRUN.js";
|
|
9
|
-
import "./chunk-OB5EFDDH.js";
|
|
10
10
|
import "./chunk-W5FX4TU3.js";
|
|
11
|
+
import "./chunk-OB5EFDDH.js";
|
|
11
12
|
import "./chunk-XLLYNNC6.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-JTKR7ZWP.js";
|
|
13
14
|
import "./chunk-3CJHBJXA.js";
|
|
14
15
|
export {
|
|
15
16
|
AreaChart,
|
package/dist/native.d.ts
CHANGED
|
@@ -144,6 +144,26 @@ interface SeriesSummary {
|
|
|
144
144
|
readonly trend: "up" | "down" | "flat" | "none";
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
+
/** A status of a job: the field holding its count per period, its name, its tone, and its part in the success rate. */
|
|
148
|
+
interface JobStatus {
|
|
149
|
+
/** The field of the row holding the count (`"completed"`). */
|
|
150
|
+
readonly key: string;
|
|
151
|
+
/** Its name, passed translated (`"Completed"`). */
|
|
152
|
+
readonly label: string;
|
|
153
|
+
/** Its tone: the status colours (`success`, `danger`, `info`, `neutral`). */
|
|
154
|
+
readonly tone: Tone;
|
|
155
|
+
/** `succeeded` or `failed`: counted in the success rate. Absent: still running or waiting. */
|
|
156
|
+
readonly outcome?: "succeeded" | "failed";
|
|
157
|
+
}
|
|
158
|
+
/** The four statuses of an Orazaka job, in English: pass your own (translated) `statuses`. */
|
|
159
|
+
declare const DEFAULT_STATUSES: readonly JobStatus[];
|
|
160
|
+
|
|
161
|
+
/** A bid: when (an ISO date-time or a `Date`) and how much, in money minor units. */
|
|
162
|
+
interface Bid {
|
|
163
|
+
readonly at: string | Date;
|
|
164
|
+
readonly amount: number;
|
|
165
|
+
}
|
|
166
|
+
|
|
147
167
|
type Curve = "linear" | "monotone" | "step";
|
|
148
168
|
|
|
149
169
|
type Mode = "dark" | "light";
|
|
@@ -232,6 +252,180 @@ declare function AreaChart<T extends Datum>({ curve, stacked, ...props }: Native
|
|
|
232
252
|
/** Amounts across categories (React Native): grouped or `stacked` bars. */
|
|
233
253
|
declare function BarChart<T extends Datum>({ stacked, ...props }: NativeBarChartProps<T>): react.JSX.Element;
|
|
234
254
|
|
|
255
|
+
interface EarningsLabels {
|
|
256
|
+
/** Under the total: `earned over {count} months`. `{count}` is the number of periods. */
|
|
257
|
+
total: string;
|
|
258
|
+
/** The change of the last period: `{change} vs the previous month`. */
|
|
259
|
+
change: string;
|
|
260
|
+
/** The gross series' name. */
|
|
261
|
+
gross: string;
|
|
262
|
+
/** The net series' name. */
|
|
263
|
+
net: string;
|
|
264
|
+
}
|
|
265
|
+
interface ThroughputLabels {
|
|
266
|
+
/** Under the total: `jobs over {count} days`. */
|
|
267
|
+
total: string;
|
|
268
|
+
/** The success rate of the finished jobs: `{rate} succeeded`. */
|
|
269
|
+
success: string;
|
|
270
|
+
}
|
|
271
|
+
interface LatencyLabels {
|
|
272
|
+
/** The median series. */
|
|
273
|
+
p50: string;
|
|
274
|
+
/** The 95th percentile series. */
|
|
275
|
+
p95: string;
|
|
276
|
+
/** The slowest p95: `slowest: {name}`. */
|
|
277
|
+
slowest: string;
|
|
278
|
+
/** How many go past the objective: `{count} over the objective`. */
|
|
279
|
+
over: string;
|
|
280
|
+
/** All within the objective. */
|
|
281
|
+
within: string;
|
|
282
|
+
}
|
|
283
|
+
interface CreditLabels {
|
|
284
|
+
/** Under the remaining amount: `left of {limit}`. */
|
|
285
|
+
remaining: string;
|
|
286
|
+
/** The used part: `{used} used ({percent})`. */
|
|
287
|
+
used: string;
|
|
288
|
+
/** The projection: `at this pace, runs out on {date}`. */
|
|
289
|
+
runsOut: string;
|
|
290
|
+
/** No use lately: it does not run out. */
|
|
291
|
+
steady: string;
|
|
292
|
+
/** The renewal: `renews on {date}`. */
|
|
293
|
+
renews: string;
|
|
294
|
+
/** The daily use sparkline's title. */
|
|
295
|
+
daily: string;
|
|
296
|
+
}
|
|
297
|
+
interface GoalLabels {
|
|
298
|
+
/** Under the amount: `raised of {goal}`. */
|
|
299
|
+
raised: string;
|
|
300
|
+
/** Reached: `goal reached`. */
|
|
301
|
+
reached: string;
|
|
302
|
+
/** The supporters: `{count} supporters`. */
|
|
303
|
+
supporters: string;
|
|
304
|
+
/** The time left: `{time} left`. */
|
|
305
|
+
left: string;
|
|
306
|
+
}
|
|
307
|
+
interface TickerLabels {
|
|
308
|
+
/** Under the price: `current bid`. */
|
|
309
|
+
current: string;
|
|
310
|
+
/** The change since the opening: `{change} since the opening ({count} bids)`. */
|
|
311
|
+
change: string;
|
|
312
|
+
/** No bid yet: `opening price`. */
|
|
313
|
+
opening: string;
|
|
314
|
+
/** The reserve line. */
|
|
315
|
+
reserve: string;
|
|
316
|
+
/** The series' name. */
|
|
317
|
+
price: string;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
type Base<T extends Datum> = Omit<NativeCartesianProps<T>, "y" | "yLabel" | "series" | "format" | "x" | "xFormat" | "thresholds" | "labels">;
|
|
321
|
+
interface NativeEarningsChartProps<T extends Datum> extends Base<T> {
|
|
322
|
+
/** The field (or function) of the period. Default `"month"`. */
|
|
323
|
+
x?: Accessor<T, unknown>;
|
|
324
|
+
/** The net amount of each period, in minor units. */
|
|
325
|
+
net: Accessor<T, number | null | undefined>;
|
|
326
|
+
/** The gross amount, drawn beside the net. */
|
|
327
|
+
gross?: Accessor<T, number | null | undefined>;
|
|
328
|
+
/** The ISO 4217 currency. */
|
|
329
|
+
currency: string;
|
|
330
|
+
/** How the periods are written. Default `"month"`. */
|
|
331
|
+
period?: CategoryFormat;
|
|
332
|
+
/** The payout threshold, drawn as a line. */
|
|
333
|
+
payoutThreshold?: Threshold;
|
|
334
|
+
/** The words, passed translated. */
|
|
335
|
+
labels?: Partial<EarningsLabels>;
|
|
336
|
+
}
|
|
337
|
+
/** Earnings per period in money (React Native): the total and the change first, the bars under them. */
|
|
338
|
+
declare function EarningsChart<T extends Datum>({ x, net, gross, currency, period, payoutThreshold, labels: given, title, hideTitle, data, ...props }: NativeEarningsChartProps<T>): react.JSX.Element;
|
|
339
|
+
interface NativeJobThroughputProps<T extends Datum> extends Base<T> {
|
|
340
|
+
/** The field of the period. Default `"day"`. */
|
|
341
|
+
x?: Accessor<T, unknown>;
|
|
342
|
+
/** How the periods are written. Default `"day"`. */
|
|
343
|
+
period?: CategoryFormat;
|
|
344
|
+
/** The statuses, in stacking order. Default: completed, failed, running, queued. */
|
|
345
|
+
statuses?: readonly JobStatus[];
|
|
346
|
+
/** The words, passed translated. */
|
|
347
|
+
labels?: Partial<ThroughputLabels>;
|
|
348
|
+
}
|
|
349
|
+
/** Jobs per period stacked by status (React Native): the total and the success rate first. */
|
|
350
|
+
declare function JobThroughput<T extends Datum>({ x, period, statuses, labels: given, title, hideTitle, data, ...props }: NativeJobThroughputProps<T>): react.JSX.Element;
|
|
351
|
+
interface NativeLatencyChartProps<T extends Datum> extends Base<T> {
|
|
352
|
+
/** The field naming what is measured. Default `"name"`. */
|
|
353
|
+
x?: Accessor<T, unknown>;
|
|
354
|
+
/** The median, in milliseconds. Default `"p50"`. */
|
|
355
|
+
p50?: Accessor<T, number | null | undefined>;
|
|
356
|
+
/** The 95th percentile, in milliseconds. Default `"p95"`; `null` for the median alone. */
|
|
357
|
+
p95?: Accessor<T, number | null | undefined> | null;
|
|
358
|
+
/** The service objective, in milliseconds. */
|
|
359
|
+
objective?: {
|
|
360
|
+
readonly value: number;
|
|
361
|
+
readonly label: string;
|
|
362
|
+
};
|
|
363
|
+
/** The words, passed translated. */
|
|
364
|
+
labels?: Partial<LatencyLabels>;
|
|
365
|
+
}
|
|
366
|
+
/** Median and p95 latency per item (React Native, vertical bars): the slowest p95 first. */
|
|
367
|
+
declare function LatencyChart<T extends Datum>({ x, p50, p95, objective, labels: given, title, hideTitle, data, ...props }: NativeLatencyChartProps<T>): react.JSX.Element;
|
|
368
|
+
interface NativeCreditUsageProps extends Omit<NativeChartsSettings, "labels"> {
|
|
369
|
+
/** What the allowance is: the heading and the meter's name. */
|
|
370
|
+
title: string;
|
|
371
|
+
/** Hide the heading (it stays the accessible name). */
|
|
372
|
+
hideTitle?: boolean;
|
|
373
|
+
/** How much is used. */
|
|
374
|
+
used: number;
|
|
375
|
+
/** The allowance. */
|
|
376
|
+
limit: number;
|
|
377
|
+
/** How the amounts are written. Default `"integer"`. */
|
|
378
|
+
format?: ValueFormat;
|
|
379
|
+
/** The use of each recent day, oldest first. */
|
|
380
|
+
daily?: readonly (number | null)[];
|
|
381
|
+
/** When the allowance renews. */
|
|
382
|
+
renewsAt?: string | Date;
|
|
383
|
+
/** Today, for the projection. Default: now. */
|
|
384
|
+
now?: Date;
|
|
385
|
+
/** The shares where the meter turns to warning, then danger. Default `[0.8, 0.95]`. */
|
|
386
|
+
levels?: readonly [number, number];
|
|
387
|
+
/** The words, passed translated. */
|
|
388
|
+
labels?: Partial<CreditLabels>;
|
|
389
|
+
/** The style of the container (layout only). */
|
|
390
|
+
style?: ViewStyle;
|
|
391
|
+
}
|
|
392
|
+
/** What is left of an allowance (React Native): the remaining amount, a meter in tones, the use per day, the run-out date. */
|
|
393
|
+
declare function CreditUsage({ title, hideTitle, used, limit, format, daily, renewsAt, now, levels, labels: given, style, ...settings }: NativeCreditUsageProps): react.JSX.Element;
|
|
394
|
+
interface NativeGoalProgressProps extends Omit<NativeFrameProps, "loading" | "empty" | "labels"> {
|
|
395
|
+
/** The amount raised, in minor units. */
|
|
396
|
+
raised: number;
|
|
397
|
+
/** The goal, in minor units. */
|
|
398
|
+
goal: number;
|
|
399
|
+
/** The ISO 4217 currency. */
|
|
400
|
+
currency: string;
|
|
401
|
+
/** How many people chipped in. */
|
|
402
|
+
supporters?: number;
|
|
403
|
+
/** The time left, written by the app (“2 days”). */
|
|
404
|
+
timeLeft?: string;
|
|
405
|
+
/** The words, passed translated. */
|
|
406
|
+
labels?: Partial<GoalLabels>;
|
|
407
|
+
}
|
|
408
|
+
/** A pot towards its goal, in money (React Native): the arc fills, the words say how much of what. */
|
|
409
|
+
declare function GoalProgress({ raised, goal, currency, supporters, timeLeft, labels: given, ...props }: NativeGoalProgressProps): react.JSX.Element;
|
|
410
|
+
interface NativePriceTickerProps extends Omit<NativeFrameProps, "loading" | "labels"> {
|
|
411
|
+
/** The bids, in any order. */
|
|
412
|
+
bids: readonly Bid[];
|
|
413
|
+
/** The opening price, in minor units. */
|
|
414
|
+
opening: number;
|
|
415
|
+
/** When the auction opened. */
|
|
416
|
+
openedAt?: string | Date;
|
|
417
|
+
/** The ISO 4217 currency. */
|
|
418
|
+
currency: string;
|
|
419
|
+
/** The reserve price, drawn as a line until it is met. */
|
|
420
|
+
reserve?: number;
|
|
421
|
+
/** How the times are written. Default `"time"`. */
|
|
422
|
+
timeFormat?: CategoryFormat;
|
|
423
|
+
/** The words, passed translated. */
|
|
424
|
+
labels?: Partial<TickerLabels>;
|
|
425
|
+
}
|
|
426
|
+
/** A live auction's price (React Native): the current bid in large, the change since the opening, the steps of the bids. */
|
|
427
|
+
declare function PriceTicker({ bids, opening, openedAt, currency, reserve, timeFormat, labels: given, title, hideTitle, ...props }: NativePriceTickerProps): react.JSX.Element;
|
|
428
|
+
|
|
235
429
|
interface NativePieChartProps<T extends Datum> extends NativeFrameProps {
|
|
236
430
|
/** One row per part. */
|
|
237
431
|
data: readonly T[];
|
|
@@ -297,4 +491,4 @@ interface NativeSparklineProps extends Omit<NativeFrameProps, "hideTitle"> {
|
|
|
297
491
|
/** A word-sized trend (React Native). */
|
|
298
492
|
declare function Sparkline(props: NativeSparklineProps): react.JSX.Element;
|
|
299
493
|
|
|
300
|
-
export { type Accessor, AreaChart, BarChart, type BrandId, type CategoryFormat, type ChartLabels, type ChartLabelsInput, type ChartTheme, ChartsProvider, DEFAULT_LABELS, type Datum, DonutChart, Gauge, LineChart, type Locale, type Marker, type NativeAreaChartProps, type NativeBarChartProps, type NativeCartesianProps, type NativeChartsSettings, type NativeFrameProps, type NativeGaugeProps, type NativeLineChartProps, type NativePieChartProps, type NativeSparklineProps, PieChart, type SeriesColor, type SeriesSpec, type SeriesSummary, Sparkline, type Threshold, type Tone, type ValueFormat };
|
|
494
|
+
export { type Accessor, AreaChart, BarChart, type Bid, type BrandId, type CategoryFormat, type ChartLabels, type ChartLabelsInput, type ChartTheme, ChartsProvider, CreditUsage, DEFAULT_LABELS, DEFAULT_STATUSES, type Datum, DonutChart, EarningsChart, Gauge, GoalProgress, type JobStatus, JobThroughput, LatencyChart, LineChart, type Locale, type Marker, type NativeAreaChartProps, type NativeBarChartProps, type NativeCartesianProps, type NativeChartsSettings, type NativeCreditUsageProps, type NativeEarningsChartProps, type NativeFrameProps, type NativeGaugeProps, type NativeGoalProgressProps, type NativeJobThroughputProps, type NativeLatencyChartProps, type NativeLineChartProps, type NativePieChartProps, type NativePriceTickerProps, type NativeSparklineProps, PieChart, PriceTicker, type SeriesColor, type SeriesSpec, type SeriesSummary, Sparkline, type Threshold, type Tone, type ValueFormat };
|