@zsherman/charts 0.0.0-stage → 0.1.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/CHANGELOG.md +24 -0
- package/LICENSE +373 -0
- package/README.md +13 -2
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/dist/dom/bar-list/bar-list.js +386 -0
- package/dist/dom/bar-list/bar-list.styles.js +171 -0
- package/dist/dom/bar-list/index.js +1 -0
- package/dist/dom/chart/chart.js +716 -0
- package/dist/dom/chart/chart.styles.js +165 -0
- package/dist/dom/chart/index.js +1 -0
- package/dist/dom/chart-grid/chart-grid.js +67 -0
- package/dist/dom/chart-grid/index.js +1 -0
- package/dist/dom/donut/donut.js +565 -0
- package/dist/dom/donut/donut.styles.js +111 -0
- package/dist/dom/donut/index.js +1 -0
- package/dist/dom/heat-graph/calendar.js +118 -0
- package/dist/dom/heat-graph/heat-graph.js +423 -0
- package/dist/dom/heat-graph/heat-graph.styles.js +168 -0
- package/dist/dom/heat-graph/index.js +1 -0
- package/dist/dom/heat-matrix/heat-matrix.js +346 -0
- package/dist/dom/heat-matrix/heat-matrix.styles.js +155 -0
- package/dist/dom/heat-matrix/index.js +1 -0
- package/dist/dom/heat-matrix/model.js +41 -0
- package/dist/dom/index.js +13 -0
- package/dist/dom/internal/colors.js +44 -0
- package/dist/dom/internal/floating-tip.js +83 -0
- package/dist/dom/internal/format.js +43 -0
- package/dist/dom/internal/grid-context.js +5 -0
- package/dist/dom/internal/hidden.styles.js +16 -0
- package/dist/dom/internal/legend.js +112 -0
- package/dist/dom/internal/legend.styles.js +108 -0
- package/dist/dom/internal/markers.js +101 -0
- package/dist/dom/internal/options.js +300 -0
- package/dist/dom/internal/place.js +27 -0
- package/dist/dom/internal/scheme-watch.js +73 -0
- package/dist/dom/internal/share.js +28 -0
- package/dist/dom/internal/types.js +0 -0
- package/dist/dom/row-chart/index.js +1 -0
- package/dist/dom/row-chart/model.js +59 -0
- package/dist/dom/row-chart/row-chart.js +691 -0
- package/dist/dom/row-chart/row-chart.styles.js +242 -0
- package/dist/dom/segmented-bar/index.js +1 -0
- package/dist/dom/segmented-bar/segmented-bar.js +280 -0
- package/dist/dom/segmented-bar/segmented-bar.styles.js +88 -0
- package/dist/dom/sparkline/index.js +1 -0
- package/dist/dom/sparkline/sparkline.js +145 -0
- package/dist/dom/stacked-histogram/histogram.js +137 -0
- package/dist/dom/stacked-histogram/index.js +1 -0
- package/dist/dom/stacked-histogram/stacked-histogram.js +761 -0
- package/dist/dom/stacked-histogram/stacked-histogram.styles.js +211 -0
- package/dist/dom/state-timeline/index.js +1 -0
- package/dist/dom/state-timeline/model.js +166 -0
- package/dist/dom/state-timeline/state-timeline.js +729 -0
- package/dist/dom/state-timeline/state-timeline.styles.js +171 -0
- package/dist/dom/status-history/index.js +1 -0
- package/dist/dom/status-history/status-history.js +542 -0
- package/dist/dom/status-history/status-history.styles.js +171 -0
- package/dist/solid/bar-list/bar-list.jsx +139 -0
- package/dist/solid/bar-list/bar-list.styles.jsx +171 -0
- package/dist/solid/bar-list/index.jsx +1 -0
- package/dist/solid/chart/chart.jsx +454 -0
- package/dist/solid/chart/chart.styles.jsx +165 -0
- package/dist/solid/chart/index.jsx +1 -0
- package/dist/solid/chart-grid/chart-grid.jsx +46 -0
- package/dist/solid/chart-grid/index.jsx +1 -0
- package/dist/solid/donut/donut.jsx +291 -0
- package/dist/solid/donut/donut.styles.jsx +111 -0
- package/dist/solid/donut/index.jsx +1 -0
- package/dist/solid/heat-graph/calendar.jsx +118 -0
- package/dist/solid/heat-graph/heat-graph.jsx +228 -0
- package/dist/solid/heat-graph/heat-graph.styles.jsx +168 -0
- package/dist/solid/heat-graph/index.jsx +1 -0
- package/dist/solid/heat-matrix/heat-matrix.jsx +165 -0
- package/dist/solid/heat-matrix/heat-matrix.styles.jsx +155 -0
- package/dist/solid/heat-matrix/index.jsx +1 -0
- package/dist/solid/heat-matrix/model.jsx +41 -0
- package/dist/solid/index.jsx +13 -0
- package/dist/solid/internal/colors.jsx +44 -0
- package/dist/solid/internal/floating-tip.jsx +68 -0
- package/dist/solid/internal/format.jsx +43 -0
- package/dist/solid/internal/grid-context.jsx +5 -0
- package/dist/solid/internal/hidden.styles.jsx +16 -0
- package/dist/solid/internal/legend.jsx +35 -0
- package/dist/solid/internal/legend.styles.jsx +108 -0
- package/dist/solid/internal/markers.jsx +101 -0
- package/dist/solid/internal/options.jsx +300 -0
- package/dist/solid/internal/place.jsx +27 -0
- package/dist/solid/internal/scheme-watch.jsx +73 -0
- package/dist/solid/internal/share.jsx +28 -0
- package/dist/solid/internal/types.jsx +0 -0
- package/dist/solid/row-chart/index.jsx +1 -0
- package/dist/solid/row-chart/model.jsx +59 -0
- package/dist/solid/row-chart/row-chart.jsx +312 -0
- package/dist/solid/row-chart/row-chart.styles.jsx +242 -0
- package/dist/solid/segmented-bar/index.jsx +1 -0
- package/dist/solid/segmented-bar/segmented-bar.jsx +125 -0
- package/dist/solid/segmented-bar/segmented-bar.styles.jsx +88 -0
- package/dist/solid/sparkline/index.jsx +1 -0
- package/dist/solid/sparkline/sparkline.jsx +88 -0
- package/dist/solid/stacked-histogram/histogram.jsx +137 -0
- package/dist/solid/stacked-histogram/index.jsx +1 -0
- package/dist/solid/stacked-histogram/stacked-histogram.jsx +381 -0
- package/dist/solid/stacked-histogram/stacked-histogram.styles.jsx +211 -0
- package/dist/solid/state-timeline/index.jsx +1 -0
- package/dist/solid/state-timeline/model.jsx +166 -0
- package/dist/solid/state-timeline/state-timeline.jsx +387 -0
- package/dist/solid/state-timeline/state-timeline.styles.jsx +171 -0
- package/dist/solid/status-history/index.jsx +1 -0
- package/dist/solid/status-history/status-history.jsx +279 -0
- package/dist/solid/status-history/status-history.styles.jsx +171 -0
- package/dist/styles.css +1 -0
- package/dist/types/bar-list/bar-list.d.ts +91 -0
- package/dist/types/bar-list/bar-list.styles.d.ts +148 -0
- package/dist/types/bar-list/index.d.ts +3 -0
- package/dist/types/chart/chart.d.ts +98 -0
- package/dist/types/chart/chart.styles.d.ts +145 -0
- package/dist/types/chart/index.d.ts +3 -0
- package/dist/types/chart-grid/chart-grid.d.ts +35 -0
- package/dist/types/chart-grid/index.d.ts +2 -0
- package/dist/types/donut/donut.d.ts +124 -0
- package/dist/types/donut/donut.styles.d.ts +96 -0
- package/dist/types/donut/index.d.ts +3 -0
- package/dist/types/heat-graph/calendar.d.ts +61 -0
- package/dist/types/heat-graph/heat-graph.d.ts +82 -0
- package/dist/types/heat-graph/heat-graph.styles.d.ts +141 -0
- package/dist/types/heat-graph/index.d.ts +4 -0
- package/dist/types/heat-matrix/heat-matrix.d.ts +65 -0
- package/dist/types/heat-matrix/heat-matrix.styles.d.ts +135 -0
- package/dist/types/heat-matrix/index.d.ts +3 -0
- package/dist/types/heat-matrix/model.d.ts +15 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/internal/colors.d.ts +22 -0
- package/dist/types/internal/floating-tip.d.ts +15 -0
- package/dist/types/internal/format.d.ts +7 -0
- package/dist/types/internal/grid-context.d.ts +9 -0
- package/dist/types/internal/hidden.styles.d.ts +15 -0
- package/dist/types/internal/legend.d.ts +18 -0
- package/dist/types/internal/legend.styles.d.ts +96 -0
- package/dist/types/internal/markers.d.ts +16 -0
- package/dist/types/internal/options.d.ts +59 -0
- package/dist/types/internal/place.d.ts +20 -0
- package/dist/types/internal/scheme-watch.d.ts +12 -0
- package/dist/types/internal/share.d.ts +19 -0
- package/dist/types/internal/types.d.ts +163 -0
- package/dist/types/row-chart/index.d.ts +4 -0
- package/dist/types/row-chart/model.d.ts +50 -0
- package/dist/types/row-chart/row-chart.d.ts +148 -0
- package/dist/types/row-chart/row-chart.styles.d.ts +216 -0
- package/dist/types/segmented-bar/index.d.ts +3 -0
- package/dist/types/segmented-bar/segmented-bar.d.ts +65 -0
- package/dist/types/segmented-bar/segmented-bar.styles.d.ts +75 -0
- package/dist/types/sparkline/index.d.ts +3 -0
- package/dist/types/sparkline/sparkline.d.ts +38 -0
- package/dist/types/stacked-histogram/histogram.d.ts +48 -0
- package/dist/types/stacked-histogram/index.d.ts +4 -0
- package/dist/types/stacked-histogram/stacked-histogram.d.ts +73 -0
- package/dist/types/stacked-histogram/stacked-histogram.styles.d.ts +187 -0
- package/dist/types/state-timeline/index.d.ts +3 -0
- package/dist/types/state-timeline/model.d.ts +63 -0
- package/dist/types/state-timeline/state-timeline.d.ts +108 -0
- package/dist/types/state-timeline/state-timeline.styles.d.ts +151 -0
- package/dist/types/status-history/index.d.ts +3 -0
- package/dist/types/status-history/status-history.d.ts +72 -0
- package/dist/types/status-history/status-history.styles.d.ts +150 -0
- package/docs/api.json +1346 -0
- package/docs/bar-list.md +190 -0
- package/docs/chart-grid.md +77 -0
- package/docs/chart.md +355 -0
- package/docs/donut.md +182 -0
- package/docs/heat-graph.md +121 -0
- package/docs/heat-matrix.md +108 -0
- package/docs/llms.txt +68 -0
- package/docs/row-chart.md +193 -0
- package/docs/search-index.json +291 -0
- package/docs/segmented-bar.md +128 -0
- package/docs/sparkline.md +82 -0
- package/docs/stacked-histogram.md +123 -0
- package/docs/state-timeline.md +141 -0
- package/docs/status-history.md +121 -0
- package/package.json +109 -4
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// src/heat-graph/calendar.ts
|
|
2
|
+
const DAY = 864e5;
|
|
3
|
+
/** A calendar day as midnight UTC. */
|
|
4
|
+
function toDay(value) {
|
|
5
|
+
if (value instanceof Date) {
|
|
6
|
+
if (Number.isNaN(value.getTime())) return void 0;
|
|
7
|
+
return new Date(Date.UTC(value.getFullYear(), value.getMonth(), value.getDate()));
|
|
8
|
+
}
|
|
9
|
+
const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(value);
|
|
10
|
+
if (!m) return void 0;
|
|
11
|
+
return new Date(Date.UTC(Number(m[1]), Number(m[2]) - 1, Number(m[3])));
|
|
12
|
+
}
|
|
13
|
+
const dayKey = (date) => date.toISOString().slice(0, 10);
|
|
14
|
+
/**
|
|
15
|
+
* Lower bounds for levels 1–4: quarters of the busiest day. Whole counts get whole bounds (`[1, 4, 7, 10]`
|
|
16
|
+
* for a busiest day of 12, one level per count up to 4); fractional counts (hours) get the quarters.
|
|
17
|
+
*/
|
|
18
|
+
function defaultThresholds(max, whole) {
|
|
19
|
+
if (!(max > 0)) return [
|
|
20
|
+
1,
|
|
21
|
+
2,
|
|
22
|
+
3,
|
|
23
|
+
4
|
|
24
|
+
];
|
|
25
|
+
if (!whole) return [
|
|
26
|
+
Number.MIN_VALUE,
|
|
27
|
+
max / 4,
|
|
28
|
+
max / 2,
|
|
29
|
+
max * 3 / 4
|
|
30
|
+
];
|
|
31
|
+
if (max <= 4) return [
|
|
32
|
+
1,
|
|
33
|
+
2,
|
|
34
|
+
3,
|
|
35
|
+
4
|
|
36
|
+
];
|
|
37
|
+
return [
|
|
38
|
+
1,
|
|
39
|
+
Math.floor(max / 4) + 1,
|
|
40
|
+
Math.floor(max / 2) + 1,
|
|
41
|
+
Math.floor(max * 3 / 4) + 1
|
|
42
|
+
];
|
|
43
|
+
}
|
|
44
|
+
function levelOf(count, thresholds) {
|
|
45
|
+
if (!(count > 0)) return 0;
|
|
46
|
+
let level = 0;
|
|
47
|
+
for (let k = 0; k < thresholds.length; k++) if (count >= thresholds[k]) level = k + 1;
|
|
48
|
+
return Math.max(1, level);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Lay the range out in week columns. The range is `start`–`end` (or the data's first and last day); the
|
|
52
|
+
* first column starts on the week's first day, so a range that starts midweek leaves the cells before it
|
|
53
|
+
* empty.
|
|
54
|
+
*/
|
|
55
|
+
function layout(options) {
|
|
56
|
+
const counts = /* @__PURE__ */ new Map();
|
|
57
|
+
let first;
|
|
58
|
+
let last;
|
|
59
|
+
for (const entry of options.data) {
|
|
60
|
+
const day = toDay(entry.date);
|
|
61
|
+
if (!day || !Number.isFinite(entry.count)) continue;
|
|
62
|
+
const key = dayKey(day);
|
|
63
|
+
counts.set(key, (counts.get(key) ?? 0) + entry.count);
|
|
64
|
+
if (!first || day < first) first = day;
|
|
65
|
+
if (!last || day > last) last = day;
|
|
66
|
+
}
|
|
67
|
+
const start = options.start && toDay(options.start) || first;
|
|
68
|
+
const end = options.end && toDay(options.end) || last;
|
|
69
|
+
if (!start || !end || end < start) return void 0;
|
|
70
|
+
const rowOf = (date) => options.weekStart === "monday" ? (date.getUTCDay() + 6) % 7 : date.getUTCDay();
|
|
71
|
+
const gridStart = start.getTime() - rowOf(start) * DAY;
|
|
72
|
+
let max = 0;
|
|
73
|
+
let total = 0;
|
|
74
|
+
const days = [];
|
|
75
|
+
for (let t = start.getTime(); t <= end.getTime(); t += DAY) {
|
|
76
|
+
const date = new Date(t);
|
|
77
|
+
const key = dayKey(date);
|
|
78
|
+
const count = counts.get(key) ?? 0;
|
|
79
|
+
max = Math.max(max, count);
|
|
80
|
+
total += count;
|
|
81
|
+
days.push({
|
|
82
|
+
key,
|
|
83
|
+
date,
|
|
84
|
+
count,
|
|
85
|
+
level: 0,
|
|
86
|
+
column: Math.floor((t - gridStart) / DAY / 7),
|
|
87
|
+
row: rowOf(date)
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
const thresholds = options.thresholds ?? defaultThresholds(max, days.every((d) => Number.isInteger(d.count)));
|
|
91
|
+
for (const d of days) d.level = levelOf(d.count, thresholds);
|
|
92
|
+
const weeks = (days.at(-1)?.column ?? 0) + 1;
|
|
93
|
+
const months = [];
|
|
94
|
+
for (const d of days) {
|
|
95
|
+
const isFirstLabel = months.length === 0 && d === days[0];
|
|
96
|
+
if (d.date.getUTCDate() !== 1 && !isFirstLabel) continue;
|
|
97
|
+
const column = d.row === 0 || isFirstLabel ? d.column : d.column + 1;
|
|
98
|
+
if (column >= weeks) continue;
|
|
99
|
+
const previous = months.at(-1);
|
|
100
|
+
if (previous && column - previous.column < 3) {
|
|
101
|
+
if (months.length === 1 && previous.column === 0) months.pop();
|
|
102
|
+
else continue;
|
|
103
|
+
}
|
|
104
|
+
months.push({
|
|
105
|
+
column,
|
|
106
|
+
date: d.date
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
days,
|
|
111
|
+
weeks,
|
|
112
|
+
months,
|
|
113
|
+
thresholds,
|
|
114
|
+
max,
|
|
115
|
+
total
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
export { dayKey, defaultThresholds, layout, levelOf, toDay };
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import { cssColor } from "../internal/colors.js";
|
|
2
|
+
import { dayKey, layout } from "./calendar.js";
|
|
3
|
+
import { levels, styles } from "./heat-graph.styles.js";
|
|
4
|
+
import { createComponent, getNextElement, getNextMarker, insert, memo, ref, runHydrationEvents, scope, spread, template } from "@solidjs/web";
|
|
5
|
+
import * as stylex from "@stylexjs/stylex";
|
|
6
|
+
import { useLocale, useMessages } from "@zsherman/kit/locale-provider";
|
|
7
|
+
import { For, createEffect, createMemo, createSignal, omit } from "solid-js";
|
|
8
|
+
// src/heat-graph/heat-graph.tsx
|
|
9
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div><div><!$><!/><div></div></div><!$><!/><!$><!/>`);
|
|
10
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<div>`);
|
|
11
|
+
var _tmpl$3 = /* @__PURE__ */ template(`<span>`);
|
|
12
|
+
var _tmpl$4 = /* @__PURE__ */ template(`<div><span></span><!$><!/>`);
|
|
13
|
+
var _tmpl$5 = /* @__PURE__ */ template(`<div><span>`);
|
|
14
|
+
var _tmpl$6 = /* @__PURE__ */ template(`<div><span></span><!$><!/><span>`);
|
|
15
|
+
/** Area-proportional mark size: a 30% diameter at zero, the full cell at the busiest day. */
|
|
16
|
+
const markSize = (count, max) => `${Math.sqrt(.09 + .91 * (max > 0 ? Math.min(1, count / max) : 0)) * 100}%`;
|
|
17
|
+
/** The locale's first weekday (`Intl.Locale` week info), Monday where the engine doesn't say. */
|
|
18
|
+
function localeWeekStart(locale) {
|
|
19
|
+
try {
|
|
20
|
+
const info = new Intl.Locale(locale);
|
|
21
|
+
return (info.getWeekInfo?.().firstDay ?? info.weekInfo?.firstDay) === 7 ? "sunday" : "monday";
|
|
22
|
+
} catch {
|
|
23
|
+
return "monday";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A calendar of daily counts, one cell per day in week columns, shaded by level: which days and weekdays
|
|
28
|
+
* are busy across weeks or months. A grid with one tab stop: the arrow keys move by day and week, each
|
|
29
|
+
* day is named with its count and date, and the tooltip follows the pointer and the focus.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* <HeatGraph label="Commits in 2026: 1,204, busiest in March" data={commits} start="2026-01-01" end="2026-12-31" />
|
|
33
|
+
*/
|
|
34
|
+
function HeatGraph(props) {
|
|
35
|
+
const rest = omit(props, "label", "data", "start", "end", "weekStart", "thresholds", "color", "shape", "sizeEncoding", "cellSize", "cellGap", "monthLabels", "dayLabels", "legend", "onSelectDay", "labels", "class");
|
|
36
|
+
const locale = useLocale();
|
|
37
|
+
const messages = useMessages("heatGraph");
|
|
38
|
+
const text = {
|
|
39
|
+
less: () => props.labels?.less ?? messages()?.less ?? "Less",
|
|
40
|
+
more: () => props.labels?.more ?? messages()?.more ?? "More",
|
|
41
|
+
count: (n) => {
|
|
42
|
+
const formatted = new Intl.NumberFormat(locale()).format(n);
|
|
43
|
+
const custom = props.labels?.count ?? messages()?.count;
|
|
44
|
+
return custom ? custom(n, formatted) : `${formatted} ${n === 1 ? "activity" : "activities"}`;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const weekStart = () => props.weekStart ?? localeWeekStart(locale());
|
|
48
|
+
const model = createMemo(() => layout({
|
|
49
|
+
data: props.data,
|
|
50
|
+
start: props.start,
|
|
51
|
+
end: props.end,
|
|
52
|
+
weekStart: weekStart(),
|
|
53
|
+
thresholds: props.thresholds
|
|
54
|
+
}));
|
|
55
|
+
const formats = createMemo(() => ({
|
|
56
|
+
month: new Intl.DateTimeFormat(locale(), {
|
|
57
|
+
month: "short",
|
|
58
|
+
timeZone: "UTC"
|
|
59
|
+
}),
|
|
60
|
+
weekday: new Intl.DateTimeFormat(locale(), {
|
|
61
|
+
weekday: "short",
|
|
62
|
+
timeZone: "UTC"
|
|
63
|
+
}),
|
|
64
|
+
long: new Intl.DateTimeFormat(locale(), {
|
|
65
|
+
dateStyle: "full",
|
|
66
|
+
timeZone: "UTC"
|
|
67
|
+
}),
|
|
68
|
+
short: new Intl.DateTimeFormat(locale(), {
|
|
69
|
+
dateStyle: "medium",
|
|
70
|
+
timeZone: "UTC"
|
|
71
|
+
})
|
|
72
|
+
}));
|
|
73
|
+
/**
|
|
74
|
+
* The days with their words, computed once per layout or locale: each cell renders plain values, so a
|
|
75
|
+
* change re-renders the grid once instead of re-running hundreds of cell bindings.
|
|
76
|
+
*/
|
|
77
|
+
const cells = createMemo(() => {
|
|
78
|
+
const f = formats();
|
|
79
|
+
const max = model()?.max ?? 0;
|
|
80
|
+
const last = model()?.days.at(-1)?.key;
|
|
81
|
+
return (model()?.days ?? []).map((d) => ({
|
|
82
|
+
...d,
|
|
83
|
+
name: `${text.count(d.count)}, ${f.long.format(d.date)}`,
|
|
84
|
+
tip: `${text.count(d.count)} · ${f.short.format(d.date)}`,
|
|
85
|
+
mark: props.sizeEncoding === "value" ? markSize(d.count, max) : void 0,
|
|
86
|
+
latest: d.key === last
|
|
87
|
+
}));
|
|
88
|
+
});
|
|
89
|
+
const byKey = createMemo(() => new Map(cells().map((d) => [d.key, d])));
|
|
90
|
+
const rows = createMemo(() => {
|
|
91
|
+
const out = Array.from({ length: 7 }, () => []);
|
|
92
|
+
for (const d of cells()) out[d.row].push(d);
|
|
93
|
+
return out;
|
|
94
|
+
});
|
|
95
|
+
/** A row's weekday name: Monday, Wednesday and Friday are labelled, whichever day the week starts on. */
|
|
96
|
+
const weekdayOf = (row) => {
|
|
97
|
+
const day = model()?.days.find((d) => d.row === row);
|
|
98
|
+
return day && [
|
|
99
|
+
1,
|
|
100
|
+
3,
|
|
101
|
+
5
|
|
102
|
+
].includes(day.date.getUTCDay()) ? formats().weekday.format(day.date) : "";
|
|
103
|
+
};
|
|
104
|
+
const [active, setActive] = createSignal();
|
|
105
|
+
const [tip, setTip] = createSignal();
|
|
106
|
+
const current = () => {
|
|
107
|
+
const key = active();
|
|
108
|
+
return key && byKey().has(key) ? key : model()?.days.at(-1)?.key;
|
|
109
|
+
};
|
|
110
|
+
let root;
|
|
111
|
+
let gridEl;
|
|
112
|
+
createEffect(current, (key) => {
|
|
113
|
+
if (!gridEl) return;
|
|
114
|
+
for (const el of gridEl.querySelectorAll("[tabindex=\"0\"]")) el.tabIndex = -1;
|
|
115
|
+
if (key) {
|
|
116
|
+
const el = gridEl.querySelector(`[data-date="${key}"]`);
|
|
117
|
+
if (el) el.tabIndex = 0;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
const cellOf = (key) => gridEl.querySelector(`[data-date="${key}"]`);
|
|
121
|
+
function showTip(key) {
|
|
122
|
+
const cell = cellOf(key);
|
|
123
|
+
if (!cell) return;
|
|
124
|
+
const box = root.getBoundingClientRect();
|
|
125
|
+
const r = cell.getBoundingClientRect();
|
|
126
|
+
const x = r.left + r.width / 2 - box.left;
|
|
127
|
+
const align = x > box.width - 96 ? "end" : x < 96 ? "start" : "center";
|
|
128
|
+
const left = align === "end" ? r.right - box.left : align === "start" ? r.left - box.left : x;
|
|
129
|
+
setTip({
|
|
130
|
+
key,
|
|
131
|
+
left,
|
|
132
|
+
top: r.top - box.top,
|
|
133
|
+
align
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
function move(event) {
|
|
137
|
+
const key = current();
|
|
138
|
+
if (!key) return;
|
|
139
|
+
const day = byKey().get(key);
|
|
140
|
+
const rtl = getComputedStyle(root).direction === "rtl";
|
|
141
|
+
const step = {
|
|
142
|
+
ArrowUp: -1,
|
|
143
|
+
ArrowDown: 1,
|
|
144
|
+
ArrowLeft: rtl ? 7 : -7,
|
|
145
|
+
ArrowRight: rtl ? -7 : 7
|
|
146
|
+
};
|
|
147
|
+
let next;
|
|
148
|
+
if (event.key in step) next = dayKey(new Date(day.date.getTime() + step[event.key] * 864e5));
|
|
149
|
+
else if (event.key === "Home") next = model()?.days[0]?.key;
|
|
150
|
+
else if (event.key === "End") next = model()?.days.at(-1)?.key;
|
|
151
|
+
else if ((event.key === "Enter" || event.key === " ") && props.onSelectDay) {
|
|
152
|
+
event.preventDefault();
|
|
153
|
+
props.onSelectDay(day);
|
|
154
|
+
return;
|
|
155
|
+
} else if (event.key === "Escape") {
|
|
156
|
+
setTip(void 0);
|
|
157
|
+
return;
|
|
158
|
+
} else return;
|
|
159
|
+
event.preventDefault();
|
|
160
|
+
if (!next || !byKey().has(next)) return;
|
|
161
|
+
setActive(next);
|
|
162
|
+
cellOf(next)?.focus();
|
|
163
|
+
}
|
|
164
|
+
const keyFrom = (event) => event.target.closest("[data-date]")?.dataset["date"];
|
|
165
|
+
const columns = () => {
|
|
166
|
+
const weeks = model()?.weeks ?? 1;
|
|
167
|
+
const cell = props.cellSize ? `${props.cellSize}px` : "minmax(0, 1fr)";
|
|
168
|
+
return `${props.dayLabels === false ? "0" : "max-content"} repeat(${weeks}, ${cell})`;
|
|
169
|
+
};
|
|
170
|
+
var _el$ = getNextElement(_tmpl$);
|
|
171
|
+
var _el$2 = _el$.firstChild;
|
|
172
|
+
var _el$3 = _el$2.firstChild;
|
|
173
|
+
var [_el$4, _el$5] = getNextMarker(_el$3.nextSibling);
|
|
174
|
+
var _el$6 = _el$4.nextSibling;
|
|
175
|
+
var _el$7 = _el$2.nextSibling;
|
|
176
|
+
var [_el$8, _el$9] = getNextMarker(_el$7.nextSibling);
|
|
177
|
+
var _el$10 = _el$8.nextSibling;
|
|
178
|
+
var [_el$11, _el$12] = getNextMarker(_el$10.nextSibling);
|
|
179
|
+
spread(_el$, [rest, {
|
|
180
|
+
"data-slot": "heat-graph",
|
|
181
|
+
get "class"() {
|
|
182
|
+
return [stylex.props(styles.root).className, props.class];
|
|
183
|
+
},
|
|
184
|
+
get style() {
|
|
185
|
+
return {
|
|
186
|
+
"--hg-color": cssColor(props.color ?? "chart-1", 0),
|
|
187
|
+
"--hg-gap": `${props.cellGap ?? 3}px`,
|
|
188
|
+
"--hg-columns": columns(),
|
|
189
|
+
...props.cellSize ? { "--hg-cell-size": `${props.cellSize}px` } : {},
|
|
190
|
+
width: props.cellSize ? "max-content" : void 0
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
}], true);
|
|
194
|
+
ref(() => {
|
|
195
|
+
return (el) => root = el;
|
|
196
|
+
}, _el$);
|
|
197
|
+
spread(_el$2, () => {
|
|
198
|
+
return stylex.attrs(styles.frame);
|
|
199
|
+
}, true);
|
|
200
|
+
insert(_el$2, scope((() => {
|
|
201
|
+
var _c$ = memo(() => {
|
|
202
|
+
return !!(props.monthLabels !== false && model());
|
|
203
|
+
});
|
|
204
|
+
return () => {
|
|
205
|
+
return _c$() ? (() => {
|
|
206
|
+
var _el$13 = getNextElement(_tmpl$2);
|
|
207
|
+
spread(_el$13, [{
|
|
208
|
+
"aria-hidden": "true",
|
|
209
|
+
"data-slot": "heat-graph-months"
|
|
210
|
+
}, () => {
|
|
211
|
+
return stylex.attrs(styles.months);
|
|
212
|
+
}], true);
|
|
213
|
+
insert(_el$13, createComponent(For, {
|
|
214
|
+
get each() {
|
|
215
|
+
return model().months;
|
|
216
|
+
},
|
|
217
|
+
children: (m) => (() => {
|
|
218
|
+
var _el$14 = getNextElement(_tmpl$3);
|
|
219
|
+
spread(_el$14, [() => {
|
|
220
|
+
return stylex.attrs(styles.monthLabel);
|
|
221
|
+
}, { get style() {
|
|
222
|
+
return { "grid-column": `${m.column + 2}` };
|
|
223
|
+
} }], true);
|
|
224
|
+
insert(_el$14, scope(() => {
|
|
225
|
+
return formats().month.format(m.date);
|
|
226
|
+
}));
|
|
227
|
+
runHydrationEvents();
|
|
228
|
+
return _el$14;
|
|
229
|
+
})()
|
|
230
|
+
}));
|
|
231
|
+
runHydrationEvents();
|
|
232
|
+
return _el$13;
|
|
233
|
+
})() : void 0;
|
|
234
|
+
};
|
|
235
|
+
})()), _el$4, _el$5);
|
|
236
|
+
spread(_el$6, [
|
|
237
|
+
{
|
|
238
|
+
role: "grid",
|
|
239
|
+
get "aria-label"() {
|
|
240
|
+
return props.label;
|
|
241
|
+
},
|
|
242
|
+
"aria-readonly": "true",
|
|
243
|
+
get "aria-colcount"() {
|
|
244
|
+
return model()?.weeks ?? 0;
|
|
245
|
+
},
|
|
246
|
+
"data-slot": "heat-graph-grid"
|
|
247
|
+
},
|
|
248
|
+
() => {
|
|
249
|
+
return stylex.attrs(styles.grid);
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
onKeyDown: move,
|
|
253
|
+
onPointerOver: (e) => {
|
|
254
|
+
const key = keyFrom(e);
|
|
255
|
+
if (key) showTip(key);
|
|
256
|
+
},
|
|
257
|
+
onPointerLeave: () => setTip(void 0),
|
|
258
|
+
onFocusIn: (e) => {
|
|
259
|
+
const key = keyFrom(e);
|
|
260
|
+
if (key) {
|
|
261
|
+
setActive(key);
|
|
262
|
+
showTip(key);
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
onFocusOut: () => setTip(void 0),
|
|
266
|
+
onClick: (e) => {
|
|
267
|
+
const key = keyFrom(e);
|
|
268
|
+
const day = key ? byKey().get(key) : void 0;
|
|
269
|
+
if (day && props.onSelectDay) props.onSelectDay(day);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
], true);
|
|
273
|
+
ref(() => {
|
|
274
|
+
return (el) => gridEl = el;
|
|
275
|
+
}, _el$6);
|
|
276
|
+
insert(_el$6, createComponent(For, {
|
|
277
|
+
get each() {
|
|
278
|
+
return rows();
|
|
279
|
+
},
|
|
280
|
+
children: (days, row) => (() => {
|
|
281
|
+
var _el$15 = getNextElement(_tmpl$4);
|
|
282
|
+
var _el$16 = _el$15.firstChild;
|
|
283
|
+
var _el$17 = _el$16.nextSibling;
|
|
284
|
+
var [_el$18, _el$19] = getNextMarker(_el$17.nextSibling);
|
|
285
|
+
spread(_el$15, [{ role: "row" }, () => {
|
|
286
|
+
return stylex.attrs(styles.row);
|
|
287
|
+
}], true);
|
|
288
|
+
spread(_el$16, [{ "aria-hidden": "true" }, () => {
|
|
289
|
+
return stylex.attrs(styles.dayLabel);
|
|
290
|
+
}], true);
|
|
291
|
+
insert(_el$16, scope((() => {
|
|
292
|
+
var _c$4 = memo(() => {
|
|
293
|
+
return props.dayLabels === false;
|
|
294
|
+
});
|
|
295
|
+
return () => {
|
|
296
|
+
return _c$4() ? "" : weekdayOf(row());
|
|
297
|
+
};
|
|
298
|
+
})()));
|
|
299
|
+
insert(_el$15, createComponent(For, {
|
|
300
|
+
each: days,
|
|
301
|
+
children: (d) => (() => {
|
|
302
|
+
var _el$20 = getNextElement(_tmpl$5);
|
|
303
|
+
var _el$21 = _el$20.firstChild;
|
|
304
|
+
spread(_el$20, [
|
|
305
|
+
{
|
|
306
|
+
role: "gridcell",
|
|
307
|
+
get "data-date"() {
|
|
308
|
+
return d.key;
|
|
309
|
+
},
|
|
310
|
+
get "data-level"() {
|
|
311
|
+
return d.level;
|
|
312
|
+
},
|
|
313
|
+
get "aria-label"() {
|
|
314
|
+
return d.name;
|
|
315
|
+
},
|
|
316
|
+
get "aria-colindex"() {
|
|
317
|
+
return d.column + 1;
|
|
318
|
+
},
|
|
319
|
+
get tabindex() {
|
|
320
|
+
return d.latest ? 0 : -1;
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
() => {
|
|
324
|
+
return stylex.attrs(styles.cell, props.onSelectDay && styles.clickable);
|
|
325
|
+
},
|
|
326
|
+
{ get style() {
|
|
327
|
+
return { "grid-column": `${d.column + 2}` };
|
|
328
|
+
} }
|
|
329
|
+
], true);
|
|
330
|
+
spread(_el$21, [
|
|
331
|
+
{
|
|
332
|
+
"aria-hidden": "true",
|
|
333
|
+
"data-slot": "heat-graph-mark"
|
|
334
|
+
},
|
|
335
|
+
() => {
|
|
336
|
+
return stylex.attrs(styles.mark, styles[props.shape ?? "rounded"], levels[d.level]);
|
|
337
|
+
},
|
|
338
|
+
{ get style() {
|
|
339
|
+
return d.mark ? { "--hg-mark": d.mark } : void 0;
|
|
340
|
+
} }
|
|
341
|
+
], false);
|
|
342
|
+
runHydrationEvents();
|
|
343
|
+
return _el$20;
|
|
344
|
+
})()
|
|
345
|
+
}), _el$18, _el$19);
|
|
346
|
+
runHydrationEvents();
|
|
347
|
+
return _el$15;
|
|
348
|
+
})()
|
|
349
|
+
}));
|
|
350
|
+
insert(_el$, scope((() => {
|
|
351
|
+
var _c$2 = memo(() => {
|
|
352
|
+
return props.legend !== false;
|
|
353
|
+
});
|
|
354
|
+
return () => {
|
|
355
|
+
return _c$2() ? (() => {
|
|
356
|
+
var _el$22 = getNextElement(_tmpl$6);
|
|
357
|
+
var _el$23 = _el$22.firstChild;
|
|
358
|
+
var _el$24 = _el$23.nextSibling;
|
|
359
|
+
var [_el$25, _el$26] = getNextMarker(_el$24.nextSibling);
|
|
360
|
+
var _el$27 = _el$25.nextSibling;
|
|
361
|
+
spread(_el$22, [{
|
|
362
|
+
"aria-hidden": "true",
|
|
363
|
+
"data-slot": "heat-graph-legend"
|
|
364
|
+
}, () => {
|
|
365
|
+
return stylex.attrs(styles.legend);
|
|
366
|
+
}], true);
|
|
367
|
+
insert(_el$23, scope(() => {
|
|
368
|
+
return text.less();
|
|
369
|
+
}));
|
|
370
|
+
insert(_el$22, createComponent(For, {
|
|
371
|
+
each: levels,
|
|
372
|
+
children: (level) => (() => {
|
|
373
|
+
var _el$28 = getNextElement(_tmpl$3);
|
|
374
|
+
spread(_el$28, () => {
|
|
375
|
+
return stylex.attrs(styles.legendMark, styles[props.shape ?? "rounded"], level);
|
|
376
|
+
}, false);
|
|
377
|
+
runHydrationEvents();
|
|
378
|
+
return _el$28;
|
|
379
|
+
})()
|
|
380
|
+
}), _el$25, _el$26);
|
|
381
|
+
insert(_el$27, scope(() => {
|
|
382
|
+
return text.more();
|
|
383
|
+
}));
|
|
384
|
+
runHydrationEvents();
|
|
385
|
+
return _el$22;
|
|
386
|
+
})() : void 0;
|
|
387
|
+
};
|
|
388
|
+
})()), _el$8, _el$9);
|
|
389
|
+
insert(_el$, scope((() => {
|
|
390
|
+
var _c$3 = memo(() => {
|
|
391
|
+
return !!tip();
|
|
392
|
+
});
|
|
393
|
+
return () => {
|
|
394
|
+
return _c$3() ? (() => {
|
|
395
|
+
var _el$29 = getNextElement(_tmpl$2);
|
|
396
|
+
spread(_el$29, [
|
|
397
|
+
{
|
|
398
|
+
"aria-hidden": "true",
|
|
399
|
+
"data-slot": "heat-graph-tooltip"
|
|
400
|
+
},
|
|
401
|
+
() => {
|
|
402
|
+
return stylex.attrs(styles.tooltip);
|
|
403
|
+
},
|
|
404
|
+
{ get style() {
|
|
405
|
+
return {
|
|
406
|
+
left: `${tip().left}px`,
|
|
407
|
+
top: `${tip().top}px`,
|
|
408
|
+
transform: `translate(${tip().align === "end" ? "-100%" : tip().align === "start" ? "0" : "-50%"}, calc(-100% - 6px))`
|
|
409
|
+
};
|
|
410
|
+
} }
|
|
411
|
+
], true);
|
|
412
|
+
insert(_el$29, scope(() => {
|
|
413
|
+
return byKey().get(tip().key)?.tip;
|
|
414
|
+
}));
|
|
415
|
+
runHydrationEvents();
|
|
416
|
+
return _el$29;
|
|
417
|
+
})() : void 0;
|
|
418
|
+
};
|
|
419
|
+
})()), _el$11, _el$12);
|
|
420
|
+
runHydrationEvents();
|
|
421
|
+
return _el$;
|
|
422
|
+
}
|
|
423
|
+
export { HeatGraph };
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import "@stylexjs/stylex";
|
|
2
|
+
// src/heat-graph/heat-graph.styles.ts
|
|
3
|
+
const styles = {
|
|
4
|
+
root: {
|
|
5
|
+
kVAEAm: "x1n2onr6",
|
|
6
|
+
kB7OPa: "x9f619",
|
|
7
|
+
k1xSpc: "xrvj5dj",
|
|
8
|
+
kOIVth: "x8rwxmg",
|
|
9
|
+
k7Eaqz: "xeuugli",
|
|
10
|
+
kMv6JI: "x13rcfk",
|
|
11
|
+
kMwMTN: "x1yjpjgc",
|
|
12
|
+
$$css: true
|
|
13
|
+
},
|
|
14
|
+
frame: {
|
|
15
|
+
k1xSpc: "xrvj5dj",
|
|
16
|
+
kumcoG: "x1lsewcy",
|
|
17
|
+
k1C7PZ: "xruald1",
|
|
18
|
+
khm7nJ: "xefgwda",
|
|
19
|
+
k7Eaqz: "xeuugli",
|
|
20
|
+
$$css: true
|
|
21
|
+
},
|
|
22
|
+
months: {
|
|
23
|
+
kBCFzs: "x1osaytk",
|
|
24
|
+
k1xSpc: "xrvj5dj",
|
|
25
|
+
kumcoG: "x4w6khx",
|
|
26
|
+
$$css: true
|
|
27
|
+
},
|
|
28
|
+
monthLabel: {
|
|
29
|
+
kbNqZ1: "x1ms6mhf",
|
|
30
|
+
kGuDYH: "xb5fjo1",
|
|
31
|
+
kLWn49: "xau0z5x",
|
|
32
|
+
kMwMTN: "xe2mk2a",
|
|
33
|
+
khDVqt: "xuxw1ft",
|
|
34
|
+
kVQacm: "x1rea2x4",
|
|
35
|
+
k7Eaqz: "xeuugli",
|
|
36
|
+
$$css: true
|
|
37
|
+
},
|
|
38
|
+
grid: {
|
|
39
|
+
kBCFzs: "x1osaytk",
|
|
40
|
+
k1xSpc: "xrvj5dj",
|
|
41
|
+
kumcoG: "x4w6khx",
|
|
42
|
+
khm7nJ: "xefgwda",
|
|
43
|
+
k3XXqK: "x1t137rt",
|
|
44
|
+
$$css: true
|
|
45
|
+
},
|
|
46
|
+
row: {
|
|
47
|
+
kBCFzs: "x1osaytk",
|
|
48
|
+
k1xSpc: "xrvj5dj",
|
|
49
|
+
kumcoG: "x4w6khx",
|
|
50
|
+
kGNEyG: "x6s0dn4",
|
|
51
|
+
$$css: true
|
|
52
|
+
},
|
|
53
|
+
dayLabel: {
|
|
54
|
+
kBCFzs: "xgkxs2y",
|
|
55
|
+
kwRFfy: "xea92sw",
|
|
56
|
+
kGuDYH: "xb5fjo1",
|
|
57
|
+
kLWn49: "xo5v014",
|
|
58
|
+
kMwMTN: "xe2mk2a",
|
|
59
|
+
khDVqt: "xuxw1ft",
|
|
60
|
+
$$css: true
|
|
61
|
+
},
|
|
62
|
+
cell: {
|
|
63
|
+
kVAEAm: "x1n2onr6",
|
|
64
|
+
kB7OPa: "x9f619",
|
|
65
|
+
k1xSpc: "xrvj5dj",
|
|
66
|
+
kgQiWS: "x1ku5rj1",
|
|
67
|
+
kzqmXN: "xzbjvqy",
|
|
68
|
+
kOBAk4: "x1plog1",
|
|
69
|
+
k7Eaqz: "xeuugli",
|
|
70
|
+
kmVPX3: "x1717udv",
|
|
71
|
+
kaIpWk: "x1b6xorz",
|
|
72
|
+
kkrTdU: "xt0e3qv",
|
|
73
|
+
k3XXqK: "x1t137rt x9v5kkp",
|
|
74
|
+
kMeerF: "x1de99jn",
|
|
75
|
+
kInvED: "x1y3gkto",
|
|
76
|
+
kjBf7l: "xi1ptex x1x84bn5",
|
|
77
|
+
$$css: true
|
|
78
|
+
},
|
|
79
|
+
clickable: {
|
|
80
|
+
kkrTdU: "x1ypdohk",
|
|
81
|
+
$$css: true
|
|
82
|
+
},
|
|
83
|
+
mark: {
|
|
84
|
+
k1xSpc: "x1lliihq",
|
|
85
|
+
kzqmXN: "xz950gh",
|
|
86
|
+
kZKoxP: "x1arfg6c",
|
|
87
|
+
kAXs8y: "x1kzknox",
|
|
88
|
+
$$css: true
|
|
89
|
+
},
|
|
90
|
+
square: {
|
|
91
|
+
kaIpWk: "x1cum3z5",
|
|
92
|
+
$$css: true
|
|
93
|
+
},
|
|
94
|
+
rounded: {
|
|
95
|
+
kaIpWk: "x1ijmkg9",
|
|
96
|
+
$$css: true
|
|
97
|
+
},
|
|
98
|
+
circle: {
|
|
99
|
+
kaIpWk: "x16rqkct",
|
|
100
|
+
$$css: true
|
|
101
|
+
},
|
|
102
|
+
level0: {
|
|
103
|
+
kWkggS: "x1rjxnwd",
|
|
104
|
+
$$css: true
|
|
105
|
+
},
|
|
106
|
+
level1: {
|
|
107
|
+
kWkggS: "xus7kxw",
|
|
108
|
+
$$css: true
|
|
109
|
+
},
|
|
110
|
+
level2: {
|
|
111
|
+
kWkggS: "xzu3jkp",
|
|
112
|
+
$$css: true
|
|
113
|
+
},
|
|
114
|
+
level3: {
|
|
115
|
+
kWkggS: "x16hdbtb",
|
|
116
|
+
$$css: true
|
|
117
|
+
},
|
|
118
|
+
level4: {
|
|
119
|
+
kWkggS: "x1olrfse",
|
|
120
|
+
$$css: true
|
|
121
|
+
},
|
|
122
|
+
legend: {
|
|
123
|
+
k1xSpc: "x78zum5",
|
|
124
|
+
kGNEyG: "x6s0dn4",
|
|
125
|
+
kjj79g: "x13a6bvl",
|
|
126
|
+
kOIVth: "xz09phk",
|
|
127
|
+
kGuDYH: "xb5fjo1",
|
|
128
|
+
kMwMTN: "xe2mk2a",
|
|
129
|
+
$$css: true
|
|
130
|
+
},
|
|
131
|
+
legendMark: {
|
|
132
|
+
k1xSpc: "x1lliihq",
|
|
133
|
+
kzqmXN: "x1fsd2vl",
|
|
134
|
+
kZKoxP: "x170jfvy",
|
|
135
|
+
kAXs8y: "x1kzknox",
|
|
136
|
+
$$css: true
|
|
137
|
+
},
|
|
138
|
+
tooltip: {
|
|
139
|
+
kVAEAm: "x10l6tqk",
|
|
140
|
+
kY2c9j: "x1vjfegm",
|
|
141
|
+
k87sOh: "x13vifvy",
|
|
142
|
+
kbCHJM: "xu96u03",
|
|
143
|
+
kB7OPa: "x9f619",
|
|
144
|
+
k8WAf4: "x1ncfnsi",
|
|
145
|
+
kg3NbH: "x1d6xsf",
|
|
146
|
+
kaIpWk: "x1b6xorz",
|
|
147
|
+
kWkggS: "x1878pr6",
|
|
148
|
+
kMwMTN: "xsi4m1h",
|
|
149
|
+
kMzoRj: "xmkeg23",
|
|
150
|
+
ksu8eU: "x1y0btm7",
|
|
151
|
+
kVAM5u: "x9r1u3d x1w1tqly",
|
|
152
|
+
kGVxlE: "xfw8du2",
|
|
153
|
+
kGuDYH: "xb5fjo1",
|
|
154
|
+
k63SB2: "x1vmg6u2",
|
|
155
|
+
kLWn49: "xau0z5x",
|
|
156
|
+
khDVqt: "xuxw1ft",
|
|
157
|
+
kfzvcC: "x47corl",
|
|
158
|
+
$$css: true
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
const levels = [
|
|
162
|
+
styles.level0,
|
|
163
|
+
styles.level1,
|
|
164
|
+
styles.level2,
|
|
165
|
+
styles.level3,
|
|
166
|
+
styles.level4
|
|
167
|
+
];
|
|
168
|
+
export { levels, styles };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HeatGraph } from "./heat-graph.js";
|