@timefoldai/viz-react 0.0.0 → 0.1.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.
Files changed (288) hide show
  1. package/README.md +239 -1
  2. package/dist/THIRD-PARTY-NOTICES.txt +99 -0
  3. package/dist/a11y/AccessibleTable.d.mts +42 -0
  4. package/dist/a11y/AccessibleTable.mjs +82 -0
  5. package/dist/a11y/activation.d.mts +4 -0
  6. package/dist/a11y/activation.mjs +0 -0
  7. package/dist/analytics/AnalyticsProvider.d.mts +16 -0
  8. package/dist/analytics/AnalyticsProvider.mjs +32 -0
  9. package/dist/assets/Inter-latin-ext.woff2 +0 -0
  10. package/dist/badge/Badge.css +122 -0
  11. package/dist/badge/Badge.d.mts +50 -0
  12. package/dist/badge/Badge.mjs +145 -0
  13. package/dist/badge/Badge.module.css.mjs +15 -0
  14. package/dist/badge/BadgeFacetGroup.d.mts +23 -0
  15. package/dist/badge/BadgeFacetGroup.mjs +220 -0
  16. package/dist/badge/BadgeGroup.d.mts +13 -0
  17. package/dist/badge/BadgeGroup.mjs +53 -0
  18. package/dist/badge/BadgeList.d.mts +14 -0
  19. package/dist/badge/BadgeList.mjs +15 -0
  20. package/dist/badge/badge-facet-fit.d.mts +18 -0
  21. package/dist/badge/badge-facet-fit.mjs +50 -0
  22. package/dist/badge/badge-item.d.mts +19 -0
  23. package/dist/badge/badge-item.mjs +23 -0
  24. package/dist/button/CopyButton.d.mts +12 -0
  25. package/dist/button/CopyButton.mjs +52 -0
  26. package/dist/button/ShowAllButton.d.mts +14 -0
  27. package/dist/button/ShowAllButton.mjs +61 -0
  28. package/dist/button/ShowMoreButton.d.mts +13 -0
  29. package/dist/button/ShowMoreButton.mjs +51 -0
  30. package/dist/button/SolveButton.d.mts +16 -0
  31. package/dist/button/SolveButton.mjs +56 -0
  32. package/dist/charts/BarChart.css +59 -0
  33. package/dist/charts/BarChart.d.mts +26 -0
  34. package/dist/charts/BarChart.mjs +167 -0
  35. package/dist/charts/BarChart.module.css.mjs +10 -0
  36. package/dist/charts/ChartGrid.d.mts +8 -0
  37. package/dist/charts/ChartGrid.mjs +47 -0
  38. package/dist/charts/DistributionChart.d.mts +60 -0
  39. package/dist/charts/DistributionChart.mjs +151 -0
  40. package/dist/code/CodeBlock.d.mts +13 -0
  41. package/dist/code/CodeBlock.mjs +71 -0
  42. package/dist/composition-bar/CompositionBar.d.mts +24 -0
  43. package/dist/composition-bar/CompositionBar.mjs +124 -0
  44. package/dist/composition-bar/composition-shares.d.mts +8 -0
  45. package/dist/composition-bar/composition-shares.mjs +30 -0
  46. package/dist/data-gate/DataGate.d.mts +34 -0
  47. package/dist/data-gate/DataGate.mjs +80 -0
  48. package/dist/date-scope/DateScope.d.mts +30 -0
  49. package/dist/date-scope/DateScope.mjs +285 -0
  50. package/dist/design-system/part-props.d.mts +39 -0
  51. package/dist/design-system/part-props.mjs +0 -0
  52. package/dist/detail-panel/DetailPanel.d.mts +22 -0
  53. package/dist/detail-panel/DetailPanel.mjs +80 -0
  54. package/dist/detail-panel/DetailPanelSection.d.mts +20 -0
  55. package/dist/detail-panel/DetailPanelSection.mjs +27 -0
  56. package/dist/detail-panel/micro-label.d.mts +7 -0
  57. package/dist/detail-panel/micro-label.mjs +9 -0
  58. package/dist/env.d.mts +2 -0
  59. package/dist/env.mjs +4 -0
  60. package/dist/export/ExportCsvButton.d.mts +19 -0
  61. package/dist/export/ExportCsvButton.mjs +73 -0
  62. package/dist/export/download-csv.d.mts +5 -0
  63. package/dist/export/download-csv.mjs +11 -0
  64. package/dist/export/download-file.d.mts +11 -0
  65. package/dist/export/download-file.mjs +32 -0
  66. package/dist/export/download-json.d.mts +2 -0
  67. package/dist/export/download-json.mjs +8 -0
  68. package/dist/filter/FilterGroup.d.mts +24 -0
  69. package/dist/filter/FilterGroup.mjs +71 -0
  70. package/dist/filter/FilterGroupTitle.d.mts +3 -0
  71. package/dist/filter/FilterGroupTitle.mjs +18 -0
  72. package/dist/filter/FilterItem.d.mts +17 -0
  73. package/dist/filter/FilterItem.mjs +94 -0
  74. package/dist/filter/FilterPanel.d.mts +22 -0
  75. package/dist/filter/FilterPanel.mjs +158 -0
  76. package/dist/filter/FilterToggleButton.d.mts +15 -0
  77. package/dist/filter/FilterToggleButton.mjs +30 -0
  78. package/dist/filter/date-range.d.mts +8 -0
  79. package/dist/filter/date-range.mjs +13 -0
  80. package/dist/filter/filter-facet.d.mts +7 -0
  81. package/dist/filter/filter-facet.mjs +0 -0
  82. package/dist/heatmap/Heatmap.css +138 -0
  83. package/dist/heatmap/Heatmap.d.mts +10 -0
  84. package/dist/heatmap/Heatmap.mjs +370 -0
  85. package/dist/heatmap/Heatmap.module.css.mjs +17 -0
  86. package/dist/heatmap/HeatmapCell.d.mts +25 -0
  87. package/dist/heatmap/HeatmapCell.mjs +124 -0
  88. package/dist/heatmap/heatmap-scale.d.mts +19 -0
  89. package/dist/heatmap/heatmap-scale.mjs +43 -0
  90. package/dist/heatmap/heatmap-types.d.mts +49 -0
  91. package/dist/heatmap/heatmap-types.mjs +0 -0
  92. package/dist/hooks/use-controllable-state.d.mts +9 -0
  93. package/dist/hooks/use-controllable-state.mjs +44 -0
  94. package/dist/hooks/use-debounced-value.d.mts +1 -0
  95. package/dist/hooks/use-debounced-value.mjs +27 -0
  96. package/dist/hooks/use-detail-panel-layout.d.mts +18 -0
  97. package/dist/hooks/use-detail-panel-layout.mjs +94 -0
  98. package/dist/hooks/use-hover-card.d.mts +47 -0
  99. package/dist/hooks/use-hover-card.mjs +190 -0
  100. package/dist/hooks/use-hover-focus-card.d.mts +38 -0
  101. package/dist/hooks/use-hover-focus-card.mjs +321 -0
  102. package/dist/hooks/use-hover-intent.d.mts +6 -0
  103. package/dist/hooks/use-hover-intent.mjs +55 -0
  104. package/dist/hooks/use-merged-ref.d.mts +2 -0
  105. package/dist/hooks/use-merged-ref.mjs +36 -0
  106. package/dist/hooks/use-tracked-anchor.d.mts +14 -0
  107. package/dist/hooks/use-tracked-anchor.mjs +42 -0
  108. package/dist/index.d.mts +97 -0
  109. package/dist/index.mjs +88 -0
  110. package/dist/input/MenuButton.d.mts +47 -0
  111. package/dist/input/MenuButton.mjs +152 -0
  112. package/dist/interval-strip/IntervalStrip.css +7 -0
  113. package/dist/interval-strip/IntervalStrip.d.mts +39 -0
  114. package/dist/interval-strip/IntervalStrip.mjs +233 -0
  115. package/dist/interval-strip/IntervalStrip.module.css.mjs +4 -0
  116. package/dist/interval-strip/IntervalStripAxis.d.mts +18 -0
  117. package/dist/interval-strip/IntervalStripAxis.mjs +73 -0
  118. package/dist/interval-strip/interval-fill.d.mts +2 -0
  119. package/dist/interval-strip/interval-fill.mjs +13 -0
  120. package/dist/interval-strip/interval-layout.d.mts +33 -0
  121. package/dist/interval-strip/interval-layout.mjs +79 -0
  122. package/dist/layout/AppShell.css +103 -0
  123. package/dist/layout/AppShell.d.mts +73 -0
  124. package/dist/layout/AppShell.mjs +397 -0
  125. package/dist/layout/AppShell.module.css.mjs +16 -0
  126. package/dist/layout/ColorSchemeMenu.d.mts +14 -0
  127. package/dist/layout/ColorSchemeMenu.mjs +92 -0
  128. package/dist/layout/DemoDataPicker.d.mts +17 -0
  129. package/dist/layout/DemoDataPicker.mjs +150 -0
  130. package/dist/layout/OverflowMenu.d.mts +11 -0
  131. package/dist/layout/OverflowMenu.mjs +94 -0
  132. package/dist/layout/SidebarLayout.css +70 -0
  133. package/dist/layout/SidebarLayout.d.mts +33 -0
  134. package/dist/layout/SidebarLayout.mjs +129 -0
  135. package/dist/layout/SidebarLayout.module.css.mjs +8 -0
  136. package/dist/layout/use-date-scope-day.d.mts +23 -0
  137. package/dist/layout/use-date-scope-day.mjs +63 -0
  138. package/dist/layout/use-fill-height.d.mts +7 -0
  139. package/dist/layout/use-fill-height.mjs +50 -0
  140. package/dist/layout/use-followed-state.d.mts +5 -0
  141. package/dist/layout/use-followed-state.mjs +75 -0
  142. package/dist/layout/use-page-route.d.mts +10 -0
  143. package/dist/layout/use-page-route.mjs +65 -0
  144. package/dist/legend/Legend.d.mts +54 -0
  145. package/dist/legend/Legend.mjs +132 -0
  146. package/dist/map/MapLayersControl.d.mts +11 -0
  147. package/dist/map/MapLayersControl.mjs +157 -0
  148. package/dist/map/MapLocator.css +9 -0
  149. package/dist/map/MapLocator.d.mts +18 -0
  150. package/dist/map/MapLocator.mjs +97 -0
  151. package/dist/map/MapLocator.module.css.mjs +4 -0
  152. package/dist/map/MapMarker.d.mts +29 -0
  153. package/dist/map/MapMarker.mjs +265 -0
  154. package/dist/map/MapStops.d.mts +19 -0
  155. package/dist/map/MapStops.mjs +355 -0
  156. package/dist/map/MapView.css +24 -0
  157. package/dist/map/MapView.d.mts +11 -0
  158. package/dist/map/MapView.mjs +141 -0
  159. package/dist/map/MapWebgl.d.mts +9 -0
  160. package/dist/map/MapWebgl.mjs +727 -0
  161. package/dist/map/area-layers.d.mts +33 -0
  162. package/dist/map/area-layers.mjs +96 -0
  163. package/dist/map/control-group.d.mts +6 -0
  164. package/dist/map/control-group.mjs +12 -0
  165. package/dist/map/for-each-chunk.d.mts +4 -0
  166. package/dist/map/for-each-chunk.mjs +14 -0
  167. package/dist/map/highlight.d.mts +30 -0
  168. package/dist/map/highlight.mjs +99 -0
  169. package/dist/map/locator-tile.d.mts +24 -0
  170. package/dist/map/locator-tile.mjs +41 -0
  171. package/dist/map/map-sites.d.mts +12 -0
  172. package/dist/map/map-sites.mjs +39 -0
  173. package/dist/map/map-style.d.mts +24 -0
  174. package/dist/map/map-style.mjs +79 -0
  175. package/dist/map/marker-geometry.d.mts +5 -0
  176. package/dist/map/marker-geometry.mjs +13 -0
  177. package/dist/map/marker-icon.d.mts +26 -0
  178. package/dist/map/marker-icon.mjs +223 -0
  179. package/dist/map/observe-color-scheme.d.mts +5 -0
  180. package/dist/map/observe-color-scheme.mjs +19 -0
  181. package/dist/map/popup-placement.d.mts +20 -0
  182. package/dist/map/popup-placement.mjs +20 -0
  183. package/dist/map/route-layers.d.mts +28 -0
  184. package/dist/map/route-layers.mjs +73 -0
  185. package/dist/map/types.d.mts +97 -0
  186. package/dist/map/types.mjs +0 -0
  187. package/dist/map/use-painted-color-scheme.d.mts +6 -0
  188. package/dist/map/use-painted-color-scheme.mjs +43 -0
  189. package/dist/map/use-resolved-colors.d.mts +5 -0
  190. package/dist/map/use-resolved-colors.mjs +63 -0
  191. package/dist/pagination/paginationLabels.d.mts +6 -0
  192. package/dist/pagination/paginationLabels.mjs +8 -0
  193. package/dist/popover/Popover.css +176 -0
  194. package/dist/popover/Popover.d.mts +239 -0
  195. package/dist/popover/Popover.mjs +672 -0
  196. package/dist/popover/Popover.module.css.mjs +18 -0
  197. package/dist/popover/PopoverFacts.d.mts +24 -0
  198. package/dist/popover/PopoverFacts.mjs +63 -0
  199. package/dist/readout/Readout.d.mts +15 -0
  200. package/dist/readout/Readout.mjs +53 -0
  201. package/dist/readout/TimeZoneReadout.d.mts +11 -0
  202. package/dist/readout/TimeZoneReadout.mjs +46 -0
  203. package/dist/score-box/ScoreBox.css +62 -0
  204. package/dist/score-box/ScoreBox.d.mts +12 -0
  205. package/dist/score-box/ScoreBox.mjs +143 -0
  206. package/dist/score-box/ScoreBox.module.css.mjs +15 -0
  207. package/dist/segment-bar/Segment.d.mts +23 -0
  208. package/dist/segment-bar/Segment.mjs +27 -0
  209. package/dist/segment-bar/SegmentBar.css +44 -0
  210. package/dist/segment-bar/SegmentBar.d.mts +35 -0
  211. package/dist/segment-bar/SegmentBar.mjs +57 -0
  212. package/dist/segment-bar/SegmentBar.module.css.mjs +9 -0
  213. package/dist/segment-bar/segment-box.d.mts +10 -0
  214. package/dist/segment-bar/segment-box.mjs +30 -0
  215. package/dist/stat/Stat.d.mts +25 -0
  216. package/dist/stat/Stat.mjs +36 -0
  217. package/dist/stat/StatTile.d.mts +18 -0
  218. package/dist/stat/StatTile.mjs +37 -0
  219. package/dist/styles.css +1 -0
  220. package/dist/swatch/Swatch.d.mts +8 -0
  221. package/dist/swatch/Swatch.mjs +30 -0
  222. package/dist/swatch/legend-swatch.d.mts +3 -0
  223. package/dist/swatch/legend-swatch.mjs +0 -0
  224. package/dist/tab-bar/FilteredTabBar.d.mts +32 -0
  225. package/dist/tab-bar/FilteredTabBar.mjs +181 -0
  226. package/dist/tab-bar/TabBar.d.mts +22 -0
  227. package/dist/tab-bar/TabBar.mjs +151 -0
  228. package/dist/tab-bar/TabPanel.d.mts +9 -0
  229. package/dist/tab-bar/TabPanel.mjs +55 -0
  230. package/dist/tab-bar/assert-named-value.d.mts +4 -0
  231. package/dist/tab-bar/assert-named-value.mjs +6 -0
  232. package/dist/table/DataTable.d.mts +31 -0
  233. package/dist/table/DataTable.mjs +43 -0
  234. package/dist/theme/use-color-scheme.d.mts +14 -0
  235. package/dist/theme/use-color-scheme.mjs +92 -0
  236. package/dist/theme.css +58 -0
  237. package/dist/timeline/Timeline.d.mts +54 -0
  238. package/dist/timeline/Timeline.mjs +220 -0
  239. package/dist/timeline/TimelineBand.d.mts +18 -0
  240. package/dist/timeline/TimelineBand.mjs +30 -0
  241. package/dist/timeline/TimelineGroup.d.mts +7 -0
  242. package/dist/timeline/TimelineGroup.mjs +50 -0
  243. package/dist/timeline/TimelineItem.d.mts +19 -0
  244. package/dist/timeline/TimelineItem.mjs +64 -0
  245. package/dist/timeline/TimelineItemChip.css +153 -0
  246. package/dist/timeline/TimelineItemChip.d.mts +23 -0
  247. package/dist/timeline/TimelineItemChip.mjs +74 -0
  248. package/dist/timeline/TimelineItemChip.module.css.mjs +15 -0
  249. package/dist/timeline/TimelineItemMark.css +38 -0
  250. package/dist/timeline/TimelineItemMark.d.mts +15 -0
  251. package/dist/timeline/TimelineItemMark.mjs +129 -0
  252. package/dist/timeline/TimelineItemMark.module.css.mjs +4 -0
  253. package/dist/timeline/TimelineRoot.d.mts +19 -0
  254. package/dist/timeline/TimelineRoot.mjs +742 -0
  255. package/dist/timeline/TimelineRowHeader.d.mts +23 -0
  256. package/dist/timeline/TimelineRowHeader.mjs +244 -0
  257. package/dist/timeline/TimelineZoomHint.d.mts +9 -0
  258. package/dist/timeline/TimelineZoomHint.mjs +32 -0
  259. package/dist/timeline/axis-label.d.mts +5 -0
  260. package/dist/timeline/axis-label.mjs +53 -0
  261. package/dist/timeline/batched-dataset-writer.d.mts +29 -0
  262. package/dist/timeline/batched-dataset-writer.mjs +58 -0
  263. package/dist/timeline/row-card-side.d.mts +7 -0
  264. package/dist/timeline/row-card-side.mjs +6 -0
  265. package/dist/timeline/timeline-a11y.d.mts +33 -0
  266. package/dist/timeline/timeline-a11y.mjs +96 -0
  267. package/dist/timeline/timeline-context.d.mts +33 -0
  268. package/dist/timeline/timeline-context.mjs +40 -0
  269. package/dist/timeline/timeline-types.d.mts +126 -0
  270. package/dist/timeline/timeline-types.mjs +0 -0
  271. package/dist/timeline/timeline-utils.d.mts +52 -0
  272. package/dist/timeline/timeline-utils.mjs +130 -0
  273. package/dist/timeline/zoom-modifier.d.mts +21 -0
  274. package/dist/timeline/zoom-modifier.mjs +25 -0
  275. package/dist/toast/ToastProvider.d.mts +33 -0
  276. package/dist/toast/ToastProvider.mjs +257 -0
  277. package/dist/toast/toast-context.d.mts +2 -0
  278. package/dist/toast/toast-context.mjs +5 -0
  279. package/dist/tokens.css +1 -0
  280. package/dist/tooltip/Tooltip.d.mts +17 -0
  281. package/dist/tooltip/Tooltip.mjs +41 -0
  282. package/dist/tooltip/hover-open-delay.d.mts +2 -0
  283. package/dist/tooltip/hover-open-delay.mjs +4 -0
  284. package/dist/tooltip/is-text-cut.d.mts +1 -0
  285. package/dist/tooltip/is-text-cut.mjs +5 -0
  286. package/dist/vendor/components.d.mts +664 -0
  287. package/dist/vendor/components.mjs +2060 -0
  288. package/package.json +56 -5
@@ -0,0 +1,24 @@
1
+ import { MemoExoticComponent, ReactNode } from "react";
2
+ import { FacetCount } from "@timefoldai/viz-core";
3
+ /** The props of `FilterGroup`: its facet, its options with their counts, and the selection. */
4
+ export interface FilterGroupProps {
5
+ facetKey: string;
6
+ label: string;
7
+ options: FacetCount[];
8
+ /** @defaultValue `[]` */
9
+ value?: string[];
10
+ hideCount?: boolean;
11
+ swatch?: (value: string) => string;
12
+ onValueChange: (value: string[], details: {
13
+ facetKey: string;
14
+ }) => void;
15
+ }
16
+ /**
17
+ * A facet of the filter panel: a checkbox group with a count for each value.
18
+ *
19
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/
20
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/button/
21
+ * @category Filter
22
+ */
23
+ declare const _default: MemoExoticComponent<(props: FilterGroupProps) => ReactNode>;
24
+ export { _default as default };
@@ -0,0 +1,71 @@
1
+ "use client";
2
+ import ShowMoreButton from "../button/ShowMoreButton.mjs";
3
+ import FilterGroupTitle from "./FilterGroupTitle.mjs";
4
+ import FilterItem from "./FilterItem.mjs";
5
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ import { memo, useId, useMemo, useState } from "react";
7
+ import { title } from "radash";
8
+ // src/filter/FilterGroup.tsx
9
+ const MAX_VISIBLE = 5;
10
+ const REVEAL_STEP = 20;
11
+ const NO_VALUES = [];
12
+ function FilterGroup({ facetKey, label, options, value: selected = NO_VALUES, hideCount = false, swatch, onValueChange }) {
13
+ const heading = title(label);
14
+ const [visibleCount, setVisibleCount] = useState(MAX_VISIBLE);
15
+ const [revealedFacetKey, setRevealedFacetKey] = useState(facetKey);
16
+ const listId = useId();
17
+ if (revealedFacetKey !== facetKey) {
18
+ setRevealedFacetKey(facetKey);
19
+ setVisibleCount(MAX_VISIBLE);
20
+ }
21
+ const items = useMemo(() => options.map(({ value, count, countHint }) => ({
22
+ value,
23
+ count,
24
+ countHint,
25
+ swatch: swatch?.(value),
26
+ checked: selected.includes(value),
27
+ onCheckedChange: (checked) => onValueChange(checked ? [...selected, value] : selected.filter((other) => other !== value), { facetKey })
28
+ })), [
29
+ options,
30
+ selected,
31
+ facetKey,
32
+ swatch,
33
+ onValueChange
34
+ ]);
35
+ const hiddenCount = items.filter((item, index) => !item.checked && index >= visibleCount).length;
36
+ const visible = hiddenCount === 0 ? items : items.filter((item_0, index_0) => item_0.checked || index_0 < visibleCount);
37
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FilterGroupTitle, { children: heading }), /* @__PURE__ */ jsxs("ul", {
38
+ className: "mb-6",
39
+ id: listId,
40
+ "aria-label": heading,
41
+ "data-slot": "filter-group",
42
+ children: [visible.map(({ value: value_0, count: count_0, countHint: countHint_0, swatch: swatch_0, checked: checked_0, onCheckedChange }) => /* @__PURE__ */ jsx(FilterItem, {
43
+ label: value_0,
44
+ count: count_0,
45
+ countHint: countHint_0,
46
+ hideCount,
47
+ swatch: swatch_0,
48
+ checked: checked_0,
49
+ onCheckedChange
50
+ }, value_0)), hiddenCount > 0 && /* @__PURE__ */ jsx("li", {
51
+ className: "mt-3",
52
+ children: /* @__PURE__ */ jsx(ShowMoreButton, {
53
+ className: "-ml-2",
54
+ "data-slot": "filter-group-expander",
55
+ "aria-controls": listId,
56
+ remaining: hiddenCount,
57
+ step: REVEAL_STEP,
58
+ onReveal: () => setVisibleCount((count_1) => count_1 + REVEAL_STEP)
59
+ })
60
+ })]
61
+ })] });
62
+ }
63
+ /**
64
+ * A facet of the filter panel: a checkbox group with a count for each value.
65
+ *
66
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/
67
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/button/
68
+ * @category Filter
69
+ */
70
+ var FilterGroup_default = memo(FilterGroup);
71
+ export { FilterGroup_default as default };
@@ -0,0 +1,3 @@
1
+ export default function FilterGroupTitle({ children }: {
2
+ children: React.ReactNode;
3
+ }): import("react").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { c } from "react/compiler-runtime";
2
+ import { jsx } from "react/jsx-runtime";
3
+ // src/filter/FilterGroupTitle.tsx
4
+ function FilterGroupTitle(t0) {
5
+ const $ = c(2);
6
+ const { children } = t0;
7
+ let t1;
8
+ if ($[0] !== children) {
9
+ t1 = /* @__PURE__ */ jsx("div", {
10
+ className: "mb-[1em] font-bold",
11
+ children
12
+ });
13
+ $[0] = children;
14
+ $[1] = t1;
15
+ } else t1 = $[1];
16
+ return t1;
17
+ }
18
+ export { FilterGroupTitle as default };
@@ -0,0 +1,17 @@
1
+ /** The props of `FilterItem`: a filter value's label and its count. */
2
+ export interface FilterItemProps {
3
+ label: string;
4
+ count?: number;
5
+ countHint?: string;
6
+ hideCount?: boolean;
7
+ swatch?: string;
8
+ checked: boolean;
9
+ onCheckedChange: (checked: boolean) => void;
10
+ }
11
+ /**
12
+ * A facet value as a labelled checkbox with an optional count and swatch; a cut label shows in a tooltip.
13
+ *
14
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/
15
+ * @category Filter
16
+ */
17
+ export default function FilterItem({ label, count, countHint, hideCount, swatch, checked, onCheckedChange }: FilterItemProps): import("react").JSX.Element;
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ import Swatch from "../swatch/Swatch.mjs";
3
+ import { isTextCut } from "../tooltip/is-text-cut.mjs";
4
+ import Tooltip$1 from "../tooltip/Tooltip.mjs";
5
+ import { c } from "react/compiler-runtime";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { useId, useRef } from "react";
8
+ import { Checkbox } from "../vendor/components.mjs";
9
+ // src/filter/FilterItem.tsx
10
+ /**
11
+ * A facet value as a labelled checkbox with an optional count and swatch; a cut label shows in a tooltip.
12
+ *
13
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/
14
+ * @category Filter
15
+ */
16
+ function FilterItem({ label, count, countHint, hideCount = false, swatch, checked, onCheckedChange }) {
17
+ const labelRef = useRef(null);
18
+ const countId = useId();
19
+ const countShown = !hideCount && count !== void 0;
20
+ const isLabelCut = () => isTextCut(labelRef.current);
21
+ return /* @__PURE__ */ jsx("li", {
22
+ "data-slot": "filter-item",
23
+ children: /* @__PURE__ */ jsx(Tooltip$1, {
24
+ label,
25
+ shouldOpen: isLabelCut,
26
+ children: /* @__PURE__ */ jsxs("label", {
27
+ className: "flex items-center gap-2 py-1 leading-snug",
28
+ children: [/* @__PURE__ */ jsx(Checkbox, {
29
+ checked,
30
+ onCheckedChange: (next) => onCheckedChange(next === true),
31
+ "aria-label": label,
32
+ "aria-describedby": countShown ? countId : void 0
33
+ }), /* @__PURE__ */ jsxs("span", {
34
+ className: "flex min-w-0 flex-1 flex-nowrap items-center justify-between gap-2",
35
+ children: [/* @__PURE__ */ jsxs("span", {
36
+ className: "flex min-w-0 items-center gap-2",
37
+ children: [swatch && /* @__PURE__ */ jsx(Swatch, { color: swatch }), /* @__PURE__ */ jsx("span", {
38
+ ref: labelRef,
39
+ className: "min-w-0 truncate",
40
+ children: label
41
+ })]
42
+ }), countShown && /* @__PURE__ */ jsx(FilterItemCount, {
43
+ id: countId,
44
+ count,
45
+ hint: countHint
46
+ })]
47
+ })]
48
+ })
49
+ })
50
+ });
51
+ }
52
+ function FilterItemCount(t0) {
53
+ const $ = c(9);
54
+ const { id, count, hint } = t0;
55
+ let t1;
56
+ if ($[0] !== hint) {
57
+ t1 = hint && /* @__PURE__ */ jsxs("span", {
58
+ className: "sr-only",
59
+ children: [
60
+ " (",
61
+ hint,
62
+ ")"
63
+ ]
64
+ });
65
+ $[0] = hint;
66
+ $[1] = t1;
67
+ } else t1 = $[1];
68
+ let t2;
69
+ if ($[2] !== count || $[3] !== id || $[4] !== t1) {
70
+ t2 = /* @__PURE__ */ jsxs("span", {
71
+ id,
72
+ className: "text-viz-secondary shrink-0",
73
+ "data-slot": "filter-item-count",
74
+ children: [count, t1]
75
+ });
76
+ $[2] = count;
77
+ $[3] = id;
78
+ $[4] = t1;
79
+ $[5] = t2;
80
+ } else t2 = $[5];
81
+ const number = t2;
82
+ let t3;
83
+ if ($[6] !== hint || $[7] !== number) {
84
+ t3 = hint ? /* @__PURE__ */ jsx(Tooltip$1, {
85
+ label: hint,
86
+ children: number
87
+ }) : number;
88
+ $[6] = hint;
89
+ $[7] = number;
90
+ $[8] = t3;
91
+ } else t3 = $[8];
92
+ return t3;
93
+ }
94
+ export { FilterItem as default };
@@ -0,0 +1,22 @@
1
+ import { FilterFacet } from "./filter-facet.mjs";
2
+ import { FacetData } from "@timefoldai/viz-core";
3
+ /** The props of `FilterPanel`: the facets, the data they count and the selection. */
4
+ export interface FilterPanelProps extends Pick<React.ComponentProps<"div">, "className" | "style" | "ref"> {
5
+ facets: FilterFacet[];
6
+ filterData: FacetData;
7
+ filters: Record<string, string[]>;
8
+ onFiltersChange: (filters: Record<string, string[]>) => void;
9
+ children?: React.ReactNode;
10
+ expanded: boolean;
11
+ onExpandedChange: (expanded: boolean) => void;
12
+ finalFocus: React.RefObject<HTMLElement | null>;
13
+ }
14
+ /**
15
+ * Panel of filter groups for narrowing a dataset.
16
+ * Opening focuses its collapse button; collapsing focuses `finalFocus`, the owner's toggle.
17
+ *
18
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/
19
+ * @category Filter
20
+ */
21
+ export default function FilterPanel({ facets, filterData, filters, onFiltersChange, children, expanded, onExpandedChange, finalFocus, className, style, ref }: FilterPanelProps): import("react").JSX.Element | null;
22
+ export type { FilterFacet };
@@ -0,0 +1,158 @@
1
+ "use client";
2
+ import { useAnalytics } from "../analytics/AnalyticsProvider.mjs";
3
+ import { useDebouncedValue } from "../hooks/use-debounced-value.mjs";
4
+ import Tooltip$1 from "../tooltip/Tooltip.mjs";
5
+ import FilterGroup_default from "./FilterGroup.mjs";
6
+ import { c } from "react/compiler-runtime";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { startTransition, useCallback, useEffect, useMemo, useOptimistic, useRef, useState } from "react";
9
+ import { Button, SearchInput } from "../vendor/components.mjs";
10
+ import { TbFilterOff, TbLayoutSidebarLeftCollapse } from "react-icons/tb";
11
+ // src/filter/FilterPanel.tsx
12
+ /**
13
+ * Panel of filter groups for narrowing a dataset.
14
+ * Opening focuses its collapse button; collapsing focuses `finalFocus`, the owner's toggle.
15
+ *
16
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/
17
+ * @category Filter
18
+ */
19
+ function FilterPanel({ facets, filterData, filters, onFiltersChange, children, expanded, onExpandedChange, finalFocus, className, style, ref }) {
20
+ const [searchTerm, setSearchTerm] = useState("");
21
+ const debouncedSearch = useDebouncedValue(searchTerm, 300);
22
+ const collapseButtonRef = useRef(null);
23
+ const headingRef = useRef(null);
24
+ const previousExpandedRef = useRef(expanded);
25
+ const lastClickWasKeyboardRef = useLastClickWasKeyboard();
26
+ useEffect(() => {
27
+ const wasExpanded = previousExpandedRef.current;
28
+ previousExpandedRef.current = expanded;
29
+ if (wasExpanded === expanded) return;
30
+ (expanded ? collapseButtonRef : finalFocus).current?.focus({ focusVisible: lastClickWasKeyboardRef.current });
31
+ }, [
32
+ expanded,
33
+ finalFocus,
34
+ lastClickWasKeyboardRef
35
+ ]);
36
+ const [shownFilters, showFilters] = useOptimistic(filters);
37
+ const isFiltering = facets.some((facet) => (shownFilters[facet.value]?.length ?? 0) > 0);
38
+ const filtersRef = useRef(shownFilters);
39
+ filtersRef.current = shownFilters;
40
+ const changeFilters = useCallback((next) => startTransition(() => {
41
+ showFilters(next);
42
+ onFiltersChange(next);
43
+ }), [showFilters, onFiltersChange]);
44
+ const track = useAnalytics();
45
+ const handleFilterChange = useCallback((values, { facetKey }) => {
46
+ const current = filtersRef.current;
47
+ if (values.length > (current[facetKey]?.length ?? 0)) track("filter", { filter: facetKey });
48
+ changeFilters({
49
+ ...current,
50
+ [facetKey]: values
51
+ });
52
+ }, [changeFilters, track]);
53
+ const resetFilter = useCallback(() => {
54
+ headingRef.current?.focus();
55
+ changeFilters(Object.fromEntries(facets.map((facet_0) => [facet_0.value, []])));
56
+ }, [facets, changeFilters]);
57
+ const facetLists = useMemo(() => facets.flatMap((facet_1) => {
58
+ const values_0 = filterData[facet_1.value];
59
+ return values_0 && values_0.length > 0 ? [{
60
+ facet: facet_1,
61
+ values: values_0
62
+ }] : [];
63
+ }), [facets, filterData]);
64
+ const facetListsSearched = useMemo(() => {
65
+ if (!debouncedSearch) return facetLists;
66
+ return facetLists.map((list) => {
67
+ const values_1 = list.values.filter((v) => v.value.toLowerCase().includes(debouncedSearch.toLowerCase()));
68
+ if (values_1.length === 0) return null;
69
+ return {
70
+ ...list,
71
+ values: values_1
72
+ };
73
+ }).filter((list_0) => list_0 !== null);
74
+ }, [facetLists, debouncedSearch]);
75
+ if (!expanded) return null;
76
+ return /* @__PURE__ */ jsxs("div", {
77
+ ref,
78
+ className,
79
+ style,
80
+ "data-slot": "filter-panel",
81
+ children: [
82
+ /* @__PURE__ */ jsxs("div", {
83
+ className: "toolbar",
84
+ children: [
85
+ /* @__PURE__ */ jsx(Tooltip$1, {
86
+ label: "Collapse filter",
87
+ children: /* @__PURE__ */ jsx(Button, {
88
+ ref: collapseButtonRef,
89
+ variant: "soft",
90
+ soloIcon: TbLayoutSidebarLeftCollapse,
91
+ "aria-label": "Collapse filter",
92
+ onClick: () => onExpandedChange(false)
93
+ })
94
+ }),
95
+ /* @__PURE__ */ jsx("h2", {
96
+ ref: headingRef,
97
+ tabIndex: -1,
98
+ className: "basis-auto",
99
+ children: "Filter"
100
+ }),
101
+ isFiltering && /* @__PURE__ */ jsx(Tooltip$1, {
102
+ label: "Reset filter",
103
+ children: /* @__PURE__ */ jsx(Button, {
104
+ variant: "ghost",
105
+ className: "ml-auto",
106
+ soloIcon: TbFilterOff,
107
+ "aria-label": "Reset filter",
108
+ onClick: resetFilter
109
+ })
110
+ })
111
+ ]
112
+ }),
113
+ /* @__PURE__ */ jsx("div", {
114
+ className: "toolbar",
115
+ children: /* @__PURE__ */ jsx(SearchInput, {
116
+ "aria-label": "Search",
117
+ placeholder: "Search…",
118
+ value: searchTerm,
119
+ onChange: (e) => setSearchTerm(e.target.value)
120
+ })
121
+ }),
122
+ children,
123
+ facetListsSearched.map(({ facet: facet_2, values: values_2 }) => /* @__PURE__ */ jsx(FilterGroup_default, {
124
+ facetKey: facet_2.value,
125
+ label: facet_2.label,
126
+ options: values_2,
127
+ value: shownFilters[facet_2.value],
128
+ hideCount: facet_2.hideCount,
129
+ swatch: facet_2.swatch,
130
+ onValueChange: handleFilterChange
131
+ }, facet_2.value))
132
+ ]
133
+ });
134
+ }
135
+ function useLastClickWasKeyboard() {
136
+ const $ = c(2);
137
+ const lastClickWasKeyboardRef = useRef(void 0);
138
+ let t0;
139
+ let t1;
140
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
141
+ t0 = () => {
142
+ const recordClick = (event) => {
143
+ lastClickWasKeyboardRef.current = event.detail === 0;
144
+ };
145
+ document.addEventListener("click", recordClick, true);
146
+ return () => document.removeEventListener("click", recordClick, true);
147
+ };
148
+ t1 = [];
149
+ $[0] = t0;
150
+ $[1] = t1;
151
+ } else {
152
+ t0 = $[0];
153
+ t1 = $[1];
154
+ }
155
+ useEffect(t0, t1);
156
+ return lastClickWasKeyboardRef;
157
+ }
158
+ export { FilterPanel as default };
@@ -0,0 +1,15 @@
1
+ import { ButtonProps } from "../vendor/components.mjs";
2
+ /** The props of `FilterToggleButton`, the button that opens and closes the filter panel. */
3
+ export interface FilterToggleButtonProps extends Omit<ButtonProps, "asChild" | "children" | "leadingIcon" | "trailingIcon" | "soloIcon" | "title" | "aria-expanded" | "onClick"> {
4
+ selectedCount: number;
5
+ /** @defaultValue false */
6
+ expanded?: boolean;
7
+ onExpandedChange: (expanded: boolean) => void;
8
+ }
9
+ /**
10
+ * The button that opens a collapsed filter panel, naming how many facet values the filters select.
11
+ *
12
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/
13
+ * @category Filter
14
+ */
15
+ export default function FilterToggleButton({ selectedCount, expanded, onExpandedChange, ...props }: FilterToggleButtonProps): import("react").JSX.Element;
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ import Badge$1 from "../badge/Badge.mjs";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Button } from "../vendor/components.mjs";
5
+ import { TbLayoutSidebarLeftExpand } from "react-icons/tb";
6
+ // src/filter/FilterToggleButton.tsx
7
+ /**
8
+ * The button that opens a collapsed filter panel, naming how many facet values the filters select.
9
+ *
10
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/
11
+ * @category Filter
12
+ */
13
+ function FilterToggleButton({ selectedCount, expanded = false, onExpandedChange, ...props }) {
14
+ const hasSelection = selectedCount > 0;
15
+ return /* @__PURE__ */ jsxs(Button, {
16
+ type: "button",
17
+ "data-slot": "filter-toggle-button",
18
+ variant: "soft",
19
+ "aria-expanded": expanded,
20
+ onClick: () => onExpandedChange(!expanded),
21
+ leadingIcon: TbLayoutSidebarLeftExpand,
22
+ "aria-label": hasSelection ? `Filter, ${selectedCount} selected` : void 0,
23
+ ...props,
24
+ children: ["Filter", hasSelection && /* @__PURE__ */ jsx(Badge$1, {
25
+ "aria-hidden": "true",
26
+ children: selectedCount
27
+ })]
28
+ });
29
+ }
30
+ export { FilterToggleButton as default };
@@ -0,0 +1,8 @@
1
+ import { TimelineBounds } from "../timeline/timeline-types.mjs";
2
+ import "../timeline/Timeline.mjs";
3
+ import { Interval } from "@timefoldai/viz-core";
4
+ /**
5
+ * A timeline's pan/zoom limits for a range: the range itself, so zooming out cannot leave it.
6
+ * `"data"` (the item-extent default) when there is no range.
7
+ */
8
+ export declare function intervalToTimelineBounds(interval: Interval | undefined): TimelineBounds | "data";
@@ -0,0 +1,13 @@
1
+ // src/filter/date-range.ts
2
+ /**
3
+ * A timeline's pan/zoom limits for a range: the range itself, so zooming out cannot leave it.
4
+ * `"data"` (the item-extent default) when there is no range.
5
+ */
6
+ function intervalToTimelineBounds(interval) {
7
+ if (!interval) return "data";
8
+ return {
9
+ min: interval.start,
10
+ max: interval.end
11
+ };
12
+ }
13
+ export { intervalToTimelineBounds };
@@ -0,0 +1,7 @@
1
+ /** A facet the filter panel offers: its key in `value`, its label, and how its values show. */
2
+ export interface FilterFacet {
3
+ value: string;
4
+ label: string;
5
+ hideCount?: boolean;
6
+ swatch?: (value: string) => string;
7
+ }
File without changes
@@ -0,0 +1,138 @@
1
+ @layer components {
2
+ .tvyF8a_viz-heatmap {
3
+ --row-label-track: minmax(3em, min-content);
4
+ --cell-tracks: repeat(var(--viz-heatmap-column-count, 7), 1fr);
5
+ grid-template-columns: var(--row-label-track) var(--cell-tracks);
6
+ isolation: isolate;
7
+ gap: 2px 10px;
8
+ display: grid;
9
+ }
10
+
11
+ .tvyF8a_viz-heatmap.tvyF8a_viz-heatmap-row-axis-right {
12
+ grid-template-columns: var(--cell-tracks) var(--row-label-track);
13
+ }
14
+
15
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-row {
16
+ display: contents;
17
+ }
18
+
19
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell-container {
20
+ --viz-heatmap-cell-radius: .3rem;
21
+ border-radius: var(--viz-heatmap-cell-radius);
22
+ display: flex;
23
+ }
24
+
25
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell-container[data-has-popover]:hover {
26
+ box-shadow: 0 0 0 3px var(--tf-color-background),
27
+ 0 0 0 6px var(--tf-color-primary);
28
+ z-index: 1;
29
+ }
30
+
31
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell-container[data-has-popover]:hover:not(.tvyF8a_activatable) {
32
+ cursor: help;
33
+ }
34
+
35
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell-container:focus-visible {
36
+ box-shadow: 0 0 0 3px var(--tf-color-background),
37
+ 0 0 0 6px var(--tf-color-primary);
38
+ z-index: 1;
39
+ }
40
+
41
+ .tvyF8a_viz-heatmap .tvyF8a_activatable {
42
+ cursor: pointer;
43
+ }
44
+
45
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell-container[data-selected] {
46
+ box-shadow: 0 0 0 3px var(--tf-color-background),
47
+ 0 0 0 6px var(--viz-heatmap-selected);
48
+ z-index: 1;
49
+ }
50
+
51
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell, .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-axis {
52
+ flex: 50%;
53
+ font-size: .875rem;
54
+ }
55
+
56
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell {
57
+ text-align: center;
58
+ padding: .75em .2em;
59
+ }
60
+
61
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell:first-child {
62
+ border-top-left-radius: var(--viz-heatmap-cell-radius);
63
+ border-bottom-left-radius: var(--viz-heatmap-cell-radius);
64
+ }
65
+
66
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell:last-child {
67
+ border-top-right-radius: var(--viz-heatmap-cell-radius);
68
+ border-bottom-right-radius: var(--viz-heatmap-cell-radius);
69
+ }
70
+
71
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell.tvyF8a_viz-heatmap-cell-empty {
72
+ background: var(--viz-tint);
73
+ color: var(--viz-text-muted);
74
+ }
75
+
76
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell:not(.tvyF8a_viz-heatmap-cell-empty) {
77
+ --value-color: calc((100 - var(--viz-heatmap-cell-value)) * 1% + 15%);
78
+ --viz-heatmap-cell-bg: color-mix(in oklab,
79
+ var(--viz-heatmap-cell-gradient-start, var(--viz-heatmap-from))
80
+ var(--value-color),
81
+ var(--viz-heatmap-cell-gradient-end, var(--viz-heatmap-to)));
82
+ background: var(--viz-heatmap-cell-bg);
83
+ font-family: var(--tf-font-mono);
84
+ }
85
+
86
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-cell:not(.tvyF8a_viz-heatmap-cell-empty) .tvyF8a_viz-heatmap-cell-value {
87
+ border-radius: var(--tf-radius-sm);
88
+ background: color-mix(in oklab,
89
+ var(--tf-color-background) 80%,
90
+ transparent);
91
+ color: var(--tf-color-foreground);
92
+ padding: 0 .35em;
93
+ display: inline-block;
94
+ }
95
+
96
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-axis-x:not(.tvyF8a_viz-heatmap-axis-y) {
97
+ text-align: center;
98
+ }
99
+
100
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-axis-x {
101
+ padding-bottom: .5em;
102
+ font-weight: 600;
103
+ }
104
+
105
+ .tvyF8a_viz-heatmap .tvyF8a_viz-heatmap-axis.tvyF8a_viz-heatmap-axis-y {
106
+ font-size: .75em;
107
+ font-family: var(--tf-font-mono);
108
+ color: var(--viz-text-muted);
109
+ justify-content: flex-end;
110
+ align-items: center;
111
+ display: flex;
112
+ }
113
+
114
+ .tvyF8a_viz-heatmap-empty {
115
+ color: var(--viz-text-muted);
116
+ font-size: .875rem;
117
+ }
118
+
119
+ [data-variant="flat"] .tvyF8a_viz-heatmap-cell:not(.tvyF8a_viz-heatmap-cell-empty) .tvyF8a_viz-heatmap-cell-value {
120
+ color: contrast-color(var(--viz-heatmap-cell-bg));
121
+ background: none;
122
+ border-radius: 0;
123
+ padding: 0;
124
+ display: inline;
125
+ }
126
+
127
+ @supports not (color: contrast-color(red)) {
128
+ [data-variant="flat"] .tvyF8a_viz-heatmap-cell:not(.tvyF8a_viz-heatmap-cell-empty) .tvyF8a_viz-heatmap-cell-value {
129
+ border-radius: var(--tf-radius-sm);
130
+ background: color-mix(in oklab,
131
+ var(--tf-color-background) 80%,
132
+ transparent);
133
+ color: var(--tf-color-foreground);
134
+ padding: 0 .35em;
135
+ display: inline-block;
136
+ }
137
+ }
138
+ }
@@ -0,0 +1,10 @@
1
+ import { HeatmapAxisEntry, HeatmapCellContext, HeatmapCellTarget, HeatmapLayer, HeatmapProps, HeatmapScale, HeatmapVariant } from "./heatmap-types.mjs";
2
+ /**
3
+ * Heatmap grid visualization: typed, id-keyed rows/columns with one or more value layers per cell.
4
+ * Accessible as an APG grid with roving tabindex, keyboard navigation, and focus-driven popovers.
5
+ *
6
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/grid/
7
+ * @category Charts
8
+ */
9
+ export default function Heatmap({ rows, columns, layers, renderPopover, onCellActivate, selectedCell, rowAxisPosition, columnAxisPosition, "aria-label": ariaLabel, variant, className, style, ref }: HeatmapProps): import("react").JSX.Element;
10
+ export type { HeatmapAxisEntry, HeatmapCellContext, HeatmapCellTarget, HeatmapLayer, HeatmapProps, HeatmapScale, HeatmapVariant };