@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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/credit-usage/monthly-credits.tsx
|
|
4
|
+
import { CreditUsage } from "@krizaka/charts/credits";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var daily = [120, 180, 95, 210, 260, 140, 60, 75, 230, 310, 280, 190, 240, 300];
|
|
7
|
+
function MonthlyCredits() {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
CreditUsage,
|
|
10
|
+
{
|
|
11
|
+
title: "Credits this month",
|
|
12
|
+
description: "Pro plan",
|
|
13
|
+
used: 3120,
|
|
14
|
+
limit: 5e3,
|
|
15
|
+
daily,
|
|
16
|
+
renewsAt: "2026-11-01",
|
|
17
|
+
now: /* @__PURE__ */ new Date("2026-10-11T09:00:00Z"),
|
|
18
|
+
labels: { remaining: "credits left of {limit}" }
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
MonthlyCredits as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CreditUsage } from "@krizaka/charts/credits";
|
|
2
|
+
|
|
3
|
+
// The credits used each day of the last two weeks (an Orazaka Pro plan of 5,000 credits).
|
|
4
|
+
const daily = [120, 180, 95, 210, 260, 140, 60, 75, 230, 310, 280, 190, 240, 300];
|
|
5
|
+
|
|
6
|
+
export default function MonthlyCredits() {
|
|
7
|
+
return (
|
|
8
|
+
<CreditUsage
|
|
9
|
+
title="Credits this month"
|
|
10
|
+
description="Pro plan"
|
|
11
|
+
used={3_120}
|
|
12
|
+
limit={5_000}
|
|
13
|
+
daily={daily}
|
|
14
|
+
renewsAt="2026-11-01"
|
|
15
|
+
now={new Date("2026-10-11T09:00:00Z")}
|
|
16
|
+
labels={{ remaining: "credits left of {limit}" }}
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/credit-usage/native/monthly-credits.tsx
|
|
4
|
+
import { CreditUsage } from "@krizaka/charts/native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var daily = [120, 180, 95, 210, 260, 140, 60, 75, 230, 310, 280, 190, 240, 300];
|
|
7
|
+
function NativeMonthlyCredits() {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
CreditUsage,
|
|
10
|
+
{
|
|
11
|
+
title: "Credits this month",
|
|
12
|
+
used: 3120,
|
|
13
|
+
limit: 5e3,
|
|
14
|
+
daily,
|
|
15
|
+
renewsAt: "2026-11-01",
|
|
16
|
+
now: /* @__PURE__ */ new Date("2026-10-11T09:00:00Z"),
|
|
17
|
+
labels: { remaining: "credits left of {limit}" }
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
NativeMonthlyCredits as default
|
|
23
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreditUsage } from "@krizaka/charts/native";
|
|
2
|
+
|
|
3
|
+
const daily = [120, 180, 95, 210, 260, 140, 60, 75, 230, 310, 280, 190, 240, 300];
|
|
4
|
+
|
|
5
|
+
// The credits card of the mobile app.
|
|
6
|
+
export default function NativeMonthlyCredits() {
|
|
7
|
+
return (
|
|
8
|
+
<CreditUsage
|
|
9
|
+
title="Credits this month"
|
|
10
|
+
used={3_120}
|
|
11
|
+
limit={5_000}
|
|
12
|
+
daily={daily}
|
|
13
|
+
renewsAt="2026-11-01"
|
|
14
|
+
now={new Date("2026-10-11T09:00:00Z")}
|
|
15
|
+
labels={{ remaining: "credits left of {limit}" }}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/credit-usage/storage-plan.tsx
|
|
4
|
+
import { CreditUsage } from "@krizaka/charts/credits";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function StoragePlan() {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
CreditUsage,
|
|
9
|
+
{
|
|
10
|
+
title: "Platform storage",
|
|
11
|
+
description: "Bunny Stream \xB7 Growth plan",
|
|
12
|
+
used: 1742,
|
|
13
|
+
limit: 2e3,
|
|
14
|
+
format: { style: "unit", unit: "gigabyte" },
|
|
15
|
+
labels: { remaining: "free of {limit}" }
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
StoragePlan as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CreditUsage } from "@krizaka/charts/credits";
|
|
2
|
+
|
|
3
|
+
// Orochia's console: the platform's video storage, in gigabytes, past the warning level.
|
|
4
|
+
export default function StoragePlan() {
|
|
5
|
+
return (
|
|
6
|
+
<CreditUsage
|
|
7
|
+
title="Platform storage"
|
|
8
|
+
description="Bunny Stream · Growth plan"
|
|
9
|
+
used={1_742}
|
|
10
|
+
limit={2_000}
|
|
11
|
+
format={{ style: "unit", unit: "gigabyte" }}
|
|
12
|
+
labels={{ remaining: "free of {limit}" }}
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/earnings-chart/creator-month.tsx
|
|
4
|
+
import { EarningsChart } from "@krizaka/charts/earnings";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var months = [
|
|
7
|
+
{ month: "2026-05", net: 18240 },
|
|
8
|
+
{ month: "2026-06", net: 24510 },
|
|
9
|
+
{ month: "2026-07", net: 21075 },
|
|
10
|
+
{ month: "2026-08", net: 39820 },
|
|
11
|
+
{ month: "2026-09", net: 44105 },
|
|
12
|
+
{ month: "2026-10", net: 51290 }
|
|
13
|
+
];
|
|
14
|
+
function CreatorMonth() {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
EarningsChart,
|
|
17
|
+
{
|
|
18
|
+
title: "Your earnings",
|
|
19
|
+
data: months,
|
|
20
|
+
net: "net",
|
|
21
|
+
currency: "USD",
|
|
22
|
+
payoutThreshold: { value: 5e3, label: "Payout threshold" },
|
|
23
|
+
labels: { total: "earned over {count} months", change: "{change} vs September" }
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
CreatorMonth as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EarningsChart } from "@krizaka/charts/earnings";
|
|
2
|
+
|
|
3
|
+
// Net earnings in cents, as the ledger stores them (Orochia /earnings).
|
|
4
|
+
const months = [
|
|
5
|
+
{ month: "2026-05", net: 182_40 },
|
|
6
|
+
{ month: "2026-06", net: 245_10 },
|
|
7
|
+
{ month: "2026-07", net: 210_75 },
|
|
8
|
+
{ month: "2026-08", net: 398_20 },
|
|
9
|
+
{ month: "2026-09", net: 441_05 },
|
|
10
|
+
{ month: "2026-10", net: 512_90 },
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
export default function CreatorMonth() {
|
|
14
|
+
return (
|
|
15
|
+
<EarningsChart
|
|
16
|
+
title="Your earnings"
|
|
17
|
+
data={months}
|
|
18
|
+
net="net"
|
|
19
|
+
currency="USD"
|
|
20
|
+
payoutThreshold={{ value: 50_00, label: "Payout threshold" }}
|
|
21
|
+
labels={{ total: "earned over {count} months", change: "{change} vs September" }}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/earnings-chart/gross-and-net.tsx
|
|
4
|
+
import { EarningsChart } from "@krizaka/charts/earnings";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var months = [
|
|
7
|
+
{ month: "2026-07", gross: 1248e3, net: 1060800 },
|
|
8
|
+
{ month: "2026-08", gross: 1592e3, net: 1353200 },
|
|
9
|
+
{ month: "2026-09", gross: 1821e3, net: 1547850 },
|
|
10
|
+
{ month: "2026-10", gross: 2104500, net: 1788825 }
|
|
11
|
+
];
|
|
12
|
+
function GrossAndNet() {
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
EarningsChart,
|
|
15
|
+
{
|
|
16
|
+
title: "Creator earnings",
|
|
17
|
+
description: "Gross volume and what creators keep after fees",
|
|
18
|
+
data: months,
|
|
19
|
+
gross: "gross",
|
|
20
|
+
net: "net",
|
|
21
|
+
currency: "USD",
|
|
22
|
+
labels: { total: "paid to creators over {count} months", change: "{change} vs last month", gross: "Gross volume", net: "Creators' net" },
|
|
23
|
+
exportable: ["csv"]
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
GrossAndNet as default
|
|
29
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EarningsChart } from "@krizaka/charts/earnings";
|
|
2
|
+
|
|
3
|
+
// The platform's treasury: gross volume and creators' net, in cents.
|
|
4
|
+
const months = [
|
|
5
|
+
{ month: "2026-07", gross: 12_480_00, net: 10_608_00 },
|
|
6
|
+
{ month: "2026-08", gross: 15_920_00, net: 13_532_00 },
|
|
7
|
+
{ month: "2026-09", gross: 18_210_00, net: 15_478_50 },
|
|
8
|
+
{ month: "2026-10", gross: 21_045_00, net: 17_888_25 },
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export default function GrossAndNet() {
|
|
12
|
+
return (
|
|
13
|
+
<EarningsChart
|
|
14
|
+
title="Creator earnings"
|
|
15
|
+
description="Gross volume and what creators keep after fees"
|
|
16
|
+
data={months}
|
|
17
|
+
gross="gross"
|
|
18
|
+
net="net"
|
|
19
|
+
currency="USD"
|
|
20
|
+
labels={{ total: "paid to creators over {count} months", change: "{change} vs last month", gross: "Gross volume", net: "Creators' net" }}
|
|
21
|
+
exportable={["csv"]}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/earnings-chart/native/creator-month.tsx
|
|
4
|
+
import { EarningsChart } from "@krizaka/charts/native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var months = [
|
|
7
|
+
{ month: "2026-05", net: 18240 },
|
|
8
|
+
{ month: "2026-06", net: 24510 },
|
|
9
|
+
{ month: "2026-07", net: 21075 },
|
|
10
|
+
{ month: "2026-08", net: 39820 },
|
|
11
|
+
{ month: "2026-09", net: 44105 },
|
|
12
|
+
{ month: "2026-10", net: 51290 }
|
|
13
|
+
];
|
|
14
|
+
function NativeCreatorMonth() {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
EarningsChart,
|
|
17
|
+
{
|
|
18
|
+
title: "Your earnings",
|
|
19
|
+
data: months,
|
|
20
|
+
net: "net",
|
|
21
|
+
currency: "USD",
|
|
22
|
+
height: 160,
|
|
23
|
+
labels: { total: "over {count} months", change: "{change} vs September" }
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
NativeCreatorMonth as default
|
|
29
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EarningsChart } from "@krizaka/charts/native";
|
|
2
|
+
|
|
3
|
+
const months = [
|
|
4
|
+
{ month: "2026-05", net: 182_40 },
|
|
5
|
+
{ month: "2026-06", net: 245_10 },
|
|
6
|
+
{ month: "2026-07", net: 210_75 },
|
|
7
|
+
{ month: "2026-08", net: 398_20 },
|
|
8
|
+
{ month: "2026-09", net: 441_05 },
|
|
9
|
+
{ month: "2026-10", net: 512_90 },
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
// The earnings card of the app: the total first, the bars under it.
|
|
13
|
+
export default function NativeCreatorMonth() {
|
|
14
|
+
return (
|
|
15
|
+
<EarningsChart
|
|
16
|
+
title="Your earnings"
|
|
17
|
+
data={months}
|
|
18
|
+
net="net"
|
|
19
|
+
currency="USD"
|
|
20
|
+
height={160}
|
|
21
|
+
labels={{ total: "over {count} months", change: "{change} vs September" }}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/goal-progress/challenge-pot.tsx
|
|
4
|
+
import { GoalProgress } from "@krizaka/charts/goal";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function ChallengePot() {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
GoalProgress,
|
|
9
|
+
{
|
|
10
|
+
title: "Backflip on the beach",
|
|
11
|
+
raised: 26200,
|
|
12
|
+
goal: 5e4,
|
|
13
|
+
currency: "USD",
|
|
14
|
+
supporters: 41,
|
|
15
|
+
timeLeft: "3 days",
|
|
16
|
+
height: 200
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
ChallengePot as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GoalProgress } from "@krizaka/charts/goal";
|
|
2
|
+
|
|
3
|
+
// An Orochia challenge: fans pledge towards a goal, held in escrow until it is met.
|
|
4
|
+
export default function ChallengePot() {
|
|
5
|
+
return (
|
|
6
|
+
<GoalProgress
|
|
7
|
+
title="Backflip on the beach"
|
|
8
|
+
raised={262_00}
|
|
9
|
+
goal={500_00}
|
|
10
|
+
currency="USD"
|
|
11
|
+
supporters={41}
|
|
12
|
+
timeLeft="3 days"
|
|
13
|
+
height={200}
|
|
14
|
+
/>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/goal-progress/goal-reached.tsx
|
|
4
|
+
import { GoalProgress } from "@krizaka/charts/goal";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function GoalReached() {
|
|
7
|
+
return /* @__PURE__ */ jsx(GoalProgress, { title: "Cover of the summer hit", raised: 118e3, goal: 1e5, currency: "EUR", supporters: 128, height: 200, locale: "fr-FR", labels: { raised: "collect\xE9s sur {goal}", reached: "Objectif atteint", supporters: "{count} soutiens" } });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
GoalReached as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GoalProgress } from "@krizaka/charts/goal";
|
|
2
|
+
|
|
3
|
+
// Past the goal: the arc stays full, the amount keeps counting, “Goal reached” is written.
|
|
4
|
+
export default function GoalReached() {
|
|
5
|
+
return <GoalProgress title="Cover of the summer hit" raised={1_180_00} goal={1_000_00} currency="EUR" supporters={128} height={200} locale="fr-FR" labels={{ raised: "collectés sur {goal}", reached: "Objectif atteint", supporters: "{count} soutiens" }} />;
|
|
6
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/goal-progress/native/challenge-pot.tsx
|
|
4
|
+
import { GoalProgress } from "@krizaka/charts/native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function NativeChallengePot() {
|
|
7
|
+
return /* @__PURE__ */ jsx(GoalProgress, { title: "Backflip on the beach", raised: 26200, goal: 5e4, currency: "USD", supporters: 41, timeLeft: "3 days", height: 180 });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
NativeChallengePot as default
|
|
11
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GoalProgress } from "@krizaka/charts/native";
|
|
2
|
+
|
|
3
|
+
// The challenge screen of the app.
|
|
4
|
+
export default function NativeChallengePot() {
|
|
5
|
+
return <GoalProgress title="Backflip on the beach" raised={262_00} goal={500_00} currency="USD" supporters={41} timeLeft="3 days" height={180} />;
|
|
6
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/job-throughput/live-hours.tsx
|
|
4
|
+
import { JobThroughput } from "@krizaka/charts/throughput";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var hours = [
|
|
7
|
+
{ hour: "2026-10-11T09:00:00Z", done: 212, rejected: 4, waiting: 9 },
|
|
8
|
+
{ hour: "2026-10-11T10:00:00Z", done: 268, rejected: 7, waiting: 14 },
|
|
9
|
+
{ hour: "2026-10-11T11:00:00Z", done: 301, rejected: 22, waiting: 31 },
|
|
10
|
+
{ hour: "2026-10-11T12:00:00Z", done: 244, rejected: 5, waiting: 12 },
|
|
11
|
+
{ hour: "2026-10-11T13:00:00Z", done: 190, rejected: 3, waiting: 40 }
|
|
12
|
+
];
|
|
13
|
+
function LiveHours() {
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
JobThroughput,
|
|
16
|
+
{
|
|
17
|
+
title: "Requests per hour",
|
|
18
|
+
data: hours,
|
|
19
|
+
x: "hour",
|
|
20
|
+
period: "time",
|
|
21
|
+
live: true,
|
|
22
|
+
statuses: [
|
|
23
|
+
{ key: "done", label: "Done", tone: "success", outcome: "succeeded" },
|
|
24
|
+
{ key: "rejected", label: "Rejected", tone: "danger", outcome: "failed" },
|
|
25
|
+
{ key: "waiting", label: "Waiting", tone: "neutral" }
|
|
26
|
+
],
|
|
27
|
+
labels: { total: "requests over {count} hours" }
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
LiveHours as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { JobThroughput } from "@krizaka/charts/throughput";
|
|
2
|
+
|
|
3
|
+
// The console, per hour and live: its own statuses, translated by the app.
|
|
4
|
+
const hours = [
|
|
5
|
+
{ hour: "2026-10-11T09:00:00Z", done: 212, rejected: 4, waiting: 9 },
|
|
6
|
+
{ hour: "2026-10-11T10:00:00Z", done: 268, rejected: 7, waiting: 14 },
|
|
7
|
+
{ hour: "2026-10-11T11:00:00Z", done: 301, rejected: 22, waiting: 31 },
|
|
8
|
+
{ hour: "2026-10-11T12:00:00Z", done: 244, rejected: 5, waiting: 12 },
|
|
9
|
+
{ hour: "2026-10-11T13:00:00Z", done: 190, rejected: 3, waiting: 40 },
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
export default function LiveHours() {
|
|
13
|
+
return (
|
|
14
|
+
<JobThroughput
|
|
15
|
+
title="Requests per hour"
|
|
16
|
+
data={hours}
|
|
17
|
+
x="hour"
|
|
18
|
+
period="time"
|
|
19
|
+
live
|
|
20
|
+
statuses={[
|
|
21
|
+
{ key: "done", label: "Done", tone: "success", outcome: "succeeded" },
|
|
22
|
+
{ key: "rejected", label: "Rejected", tone: "danger", outcome: "failed" },
|
|
23
|
+
{ key: "waiting", label: "Waiting", tone: "neutral" },
|
|
24
|
+
]}
|
|
25
|
+
labels={{ total: "requests over {count} hours" }}
|
|
26
|
+
/>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/job-throughput/native/week-of-jobs.tsx
|
|
4
|
+
import { JobThroughput } from "@krizaka/charts/native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var days = [
|
|
7
|
+
{ day: "2026-10-05", completed: 1240, failed: 38, running: 0, queued: 0 },
|
|
8
|
+
{ day: "2026-10-06", completed: 1612, failed: 41, running: 0, queued: 0 },
|
|
9
|
+
{ day: "2026-10-07", completed: 1505, failed: 95, running: 0, queued: 0 },
|
|
10
|
+
{ day: "2026-10-08", completed: 1788, failed: 27, running: 0, queued: 0 },
|
|
11
|
+
{ day: "2026-10-09", completed: 1934, failed: 33, running: 0, queued: 0 },
|
|
12
|
+
{ day: "2026-10-10", completed: 1102, failed: 19, running: 0, queued: 0 },
|
|
13
|
+
{ day: "2026-10-11", completed: 986, failed: 12, running: 24, queued: 63 }
|
|
14
|
+
];
|
|
15
|
+
function NativeWeekOfJobs() {
|
|
16
|
+
return /* @__PURE__ */ jsx(JobThroughput, { title: "Jobs this week", data: days, height: 160, labels: { total: "jobs over {count} days" } });
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
NativeWeekOfJobs as default
|
|
20
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { JobThroughput } from "@krizaka/charts/native";
|
|
2
|
+
|
|
3
|
+
const days = [
|
|
4
|
+
{ day: "2026-10-05", completed: 1_240, failed: 38, running: 0, queued: 0 },
|
|
5
|
+
{ day: "2026-10-06", completed: 1_612, failed: 41, running: 0, queued: 0 },
|
|
6
|
+
{ day: "2026-10-07", completed: 1_505, failed: 95, running: 0, queued: 0 },
|
|
7
|
+
{ day: "2026-10-08", completed: 1_788, failed: 27, running: 0, queued: 0 },
|
|
8
|
+
{ day: "2026-10-09", completed: 1_934, failed: 33, running: 0, queued: 0 },
|
|
9
|
+
{ day: "2026-10-10", completed: 1_102, failed: 19, running: 0, queued: 0 },
|
|
10
|
+
{ day: "2026-10-11", completed: 986, failed: 12, running: 24, queued: 63 },
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
// The mobile Jobs screen: the total and the success rate first.
|
|
14
|
+
export default function NativeWeekOfJobs() {
|
|
15
|
+
return <JobThroughput title="Jobs this week" data={days} height={160} labels={{ total: "jobs over {count} days" }} />;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/job-throughput/week-of-jobs.tsx
|
|
4
|
+
import { JobThroughput } from "@krizaka/charts/throughput";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var days = [
|
|
7
|
+
{ day: "2026-10-05", completed: 1240, failed: 38, running: 0, queued: 0 },
|
|
8
|
+
{ day: "2026-10-06", completed: 1612, failed: 41, running: 0, queued: 0 },
|
|
9
|
+
{ day: "2026-10-07", completed: 1505, failed: 95, running: 0, queued: 0 },
|
|
10
|
+
{ day: "2026-10-08", completed: 1788, failed: 27, running: 0, queued: 0 },
|
|
11
|
+
{ day: "2026-10-09", completed: 1934, failed: 33, running: 0, queued: 0 },
|
|
12
|
+
{ day: "2026-10-10", completed: 1102, failed: 19, running: 0, queued: 0 },
|
|
13
|
+
{ day: "2026-10-11", completed: 986, failed: 12, running: 24, queued: 63 }
|
|
14
|
+
];
|
|
15
|
+
function WeekOfJobs() {
|
|
16
|
+
return /* @__PURE__ */ jsx(JobThroughput, { title: "Jobs this week", data: days, labels: { total: "jobs over {count} days" } });
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
WeekOfJobs as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { JobThroughput } from "@krizaka/charts/throughput";
|
|
2
|
+
|
|
3
|
+
// Orazaka jobs per day, by status (the default statuses: completed, failed, running, queued).
|
|
4
|
+
const days = [
|
|
5
|
+
{ day: "2026-10-05", completed: 1_240, failed: 38, running: 0, queued: 0 },
|
|
6
|
+
{ day: "2026-10-06", completed: 1_612, failed: 41, running: 0, queued: 0 },
|
|
7
|
+
{ day: "2026-10-07", completed: 1_505, failed: 95, running: 0, queued: 0 },
|
|
8
|
+
{ day: "2026-10-08", completed: 1_788, failed: 27, running: 0, queued: 0 },
|
|
9
|
+
{ day: "2026-10-09", completed: 1_934, failed: 33, running: 0, queued: 0 },
|
|
10
|
+
{ day: "2026-10-10", completed: 1_102, failed: 19, running: 0, queued: 0 },
|
|
11
|
+
{ day: "2026-10-11", completed: 986, failed: 12, running: 24, queued: 63 },
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
export default function WeekOfJobs() {
|
|
15
|
+
return <JobThroughput title="Jobs this week" data={days} labels={{ total: "jobs over {count} days" }} />;
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/latency-chart/by-capability.tsx
|
|
4
|
+
import { LatencyChart } from "@krizaka/charts/latency";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var capabilities = [
|
|
7
|
+
{ name: "Chat", p50: 420, p95: 1180 },
|
|
8
|
+
{ name: "Embeddings", p50: 85, p95: 210 },
|
|
9
|
+
{ name: "Speech to text", p50: 1350, p95: 2900 },
|
|
10
|
+
{ name: "Image", p50: 4200, p95: 9800 },
|
|
11
|
+
{ name: "Translation", p50: 610, p95: 1640 }
|
|
12
|
+
];
|
|
13
|
+
function ByCapability() {
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
LatencyChart,
|
|
16
|
+
{
|
|
17
|
+
title: "Latency by capability",
|
|
18
|
+
description: "Last 24 hours",
|
|
19
|
+
data: capabilities,
|
|
20
|
+
objective: { value: 2e3, label: "Objective" }
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
ByCapability as default
|
|
26
|
+
};
|