@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.
- package/README.md +239 -1
- package/dist/THIRD-PARTY-NOTICES.txt +99 -0
- package/dist/a11y/AccessibleTable.d.mts +42 -0
- package/dist/a11y/AccessibleTable.mjs +82 -0
- package/dist/a11y/activation.d.mts +4 -0
- package/dist/a11y/activation.mjs +0 -0
- package/dist/analytics/AnalyticsProvider.d.mts +16 -0
- package/dist/analytics/AnalyticsProvider.mjs +32 -0
- package/dist/assets/Inter-latin-ext.woff2 +0 -0
- package/dist/badge/Badge.css +122 -0
- package/dist/badge/Badge.d.mts +50 -0
- package/dist/badge/Badge.mjs +145 -0
- package/dist/badge/Badge.module.css.mjs +15 -0
- package/dist/badge/BadgeFacetGroup.d.mts +23 -0
- package/dist/badge/BadgeFacetGroup.mjs +220 -0
- package/dist/badge/BadgeGroup.d.mts +13 -0
- package/dist/badge/BadgeGroup.mjs +53 -0
- package/dist/badge/BadgeList.d.mts +14 -0
- package/dist/badge/BadgeList.mjs +15 -0
- package/dist/badge/badge-facet-fit.d.mts +18 -0
- package/dist/badge/badge-facet-fit.mjs +50 -0
- package/dist/badge/badge-item.d.mts +19 -0
- package/dist/badge/badge-item.mjs +23 -0
- package/dist/button/CopyButton.d.mts +12 -0
- package/dist/button/CopyButton.mjs +52 -0
- package/dist/button/ShowAllButton.d.mts +14 -0
- package/dist/button/ShowAllButton.mjs +61 -0
- package/dist/button/ShowMoreButton.d.mts +13 -0
- package/dist/button/ShowMoreButton.mjs +51 -0
- package/dist/button/SolveButton.d.mts +16 -0
- package/dist/button/SolveButton.mjs +56 -0
- package/dist/charts/BarChart.css +59 -0
- package/dist/charts/BarChart.d.mts +26 -0
- package/dist/charts/BarChart.mjs +167 -0
- package/dist/charts/BarChart.module.css.mjs +10 -0
- package/dist/charts/ChartGrid.d.mts +8 -0
- package/dist/charts/ChartGrid.mjs +47 -0
- package/dist/charts/DistributionChart.d.mts +60 -0
- package/dist/charts/DistributionChart.mjs +151 -0
- package/dist/code/CodeBlock.d.mts +13 -0
- package/dist/code/CodeBlock.mjs +71 -0
- package/dist/composition-bar/CompositionBar.d.mts +24 -0
- package/dist/composition-bar/CompositionBar.mjs +124 -0
- package/dist/composition-bar/composition-shares.d.mts +8 -0
- package/dist/composition-bar/composition-shares.mjs +30 -0
- package/dist/data-gate/DataGate.d.mts +34 -0
- package/dist/data-gate/DataGate.mjs +80 -0
- package/dist/date-scope/DateScope.d.mts +30 -0
- package/dist/date-scope/DateScope.mjs +285 -0
- package/dist/design-system/part-props.d.mts +39 -0
- package/dist/design-system/part-props.mjs +0 -0
- package/dist/detail-panel/DetailPanel.d.mts +22 -0
- package/dist/detail-panel/DetailPanel.mjs +80 -0
- package/dist/detail-panel/DetailPanelSection.d.mts +20 -0
- package/dist/detail-panel/DetailPanelSection.mjs +27 -0
- package/dist/detail-panel/micro-label.d.mts +7 -0
- package/dist/detail-panel/micro-label.mjs +9 -0
- package/dist/env.d.mts +2 -0
- package/dist/env.mjs +4 -0
- package/dist/export/ExportCsvButton.d.mts +19 -0
- package/dist/export/ExportCsvButton.mjs +73 -0
- package/dist/export/download-csv.d.mts +5 -0
- package/dist/export/download-csv.mjs +11 -0
- package/dist/export/download-file.d.mts +11 -0
- package/dist/export/download-file.mjs +32 -0
- package/dist/export/download-json.d.mts +2 -0
- package/dist/export/download-json.mjs +8 -0
- package/dist/filter/FilterGroup.d.mts +24 -0
- package/dist/filter/FilterGroup.mjs +71 -0
- package/dist/filter/FilterGroupTitle.d.mts +3 -0
- package/dist/filter/FilterGroupTitle.mjs +18 -0
- package/dist/filter/FilterItem.d.mts +17 -0
- package/dist/filter/FilterItem.mjs +94 -0
- package/dist/filter/FilterPanel.d.mts +22 -0
- package/dist/filter/FilterPanel.mjs +158 -0
- package/dist/filter/FilterToggleButton.d.mts +15 -0
- package/dist/filter/FilterToggleButton.mjs +30 -0
- package/dist/filter/date-range.d.mts +8 -0
- package/dist/filter/date-range.mjs +13 -0
- package/dist/filter/filter-facet.d.mts +7 -0
- package/dist/filter/filter-facet.mjs +0 -0
- package/dist/heatmap/Heatmap.css +138 -0
- package/dist/heatmap/Heatmap.d.mts +10 -0
- package/dist/heatmap/Heatmap.mjs +370 -0
- package/dist/heatmap/Heatmap.module.css.mjs +17 -0
- package/dist/heatmap/HeatmapCell.d.mts +25 -0
- package/dist/heatmap/HeatmapCell.mjs +124 -0
- package/dist/heatmap/heatmap-scale.d.mts +19 -0
- package/dist/heatmap/heatmap-scale.mjs +43 -0
- package/dist/heatmap/heatmap-types.d.mts +49 -0
- package/dist/heatmap/heatmap-types.mjs +0 -0
- package/dist/hooks/use-controllable-state.d.mts +9 -0
- package/dist/hooks/use-controllable-state.mjs +44 -0
- package/dist/hooks/use-debounced-value.d.mts +1 -0
- package/dist/hooks/use-debounced-value.mjs +27 -0
- package/dist/hooks/use-detail-panel-layout.d.mts +18 -0
- package/dist/hooks/use-detail-panel-layout.mjs +94 -0
- package/dist/hooks/use-hover-card.d.mts +47 -0
- package/dist/hooks/use-hover-card.mjs +190 -0
- package/dist/hooks/use-hover-focus-card.d.mts +38 -0
- package/dist/hooks/use-hover-focus-card.mjs +321 -0
- package/dist/hooks/use-hover-intent.d.mts +6 -0
- package/dist/hooks/use-hover-intent.mjs +55 -0
- package/dist/hooks/use-merged-ref.d.mts +2 -0
- package/dist/hooks/use-merged-ref.mjs +36 -0
- package/dist/hooks/use-tracked-anchor.d.mts +14 -0
- package/dist/hooks/use-tracked-anchor.mjs +42 -0
- package/dist/index.d.mts +97 -0
- package/dist/index.mjs +88 -0
- package/dist/input/MenuButton.d.mts +47 -0
- package/dist/input/MenuButton.mjs +152 -0
- package/dist/interval-strip/IntervalStrip.css +7 -0
- package/dist/interval-strip/IntervalStrip.d.mts +39 -0
- package/dist/interval-strip/IntervalStrip.mjs +233 -0
- package/dist/interval-strip/IntervalStrip.module.css.mjs +4 -0
- package/dist/interval-strip/IntervalStripAxis.d.mts +18 -0
- package/dist/interval-strip/IntervalStripAxis.mjs +73 -0
- package/dist/interval-strip/interval-fill.d.mts +2 -0
- package/dist/interval-strip/interval-fill.mjs +13 -0
- package/dist/interval-strip/interval-layout.d.mts +33 -0
- package/dist/interval-strip/interval-layout.mjs +79 -0
- package/dist/layout/AppShell.css +103 -0
- package/dist/layout/AppShell.d.mts +73 -0
- package/dist/layout/AppShell.mjs +397 -0
- package/dist/layout/AppShell.module.css.mjs +16 -0
- package/dist/layout/ColorSchemeMenu.d.mts +14 -0
- package/dist/layout/ColorSchemeMenu.mjs +92 -0
- package/dist/layout/DemoDataPicker.d.mts +17 -0
- package/dist/layout/DemoDataPicker.mjs +150 -0
- package/dist/layout/OverflowMenu.d.mts +11 -0
- package/dist/layout/OverflowMenu.mjs +94 -0
- package/dist/layout/SidebarLayout.css +70 -0
- package/dist/layout/SidebarLayout.d.mts +33 -0
- package/dist/layout/SidebarLayout.mjs +129 -0
- package/dist/layout/SidebarLayout.module.css.mjs +8 -0
- package/dist/layout/use-date-scope-day.d.mts +23 -0
- package/dist/layout/use-date-scope-day.mjs +63 -0
- package/dist/layout/use-fill-height.d.mts +7 -0
- package/dist/layout/use-fill-height.mjs +50 -0
- package/dist/layout/use-followed-state.d.mts +5 -0
- package/dist/layout/use-followed-state.mjs +75 -0
- package/dist/layout/use-page-route.d.mts +10 -0
- package/dist/layout/use-page-route.mjs +65 -0
- package/dist/legend/Legend.d.mts +54 -0
- package/dist/legend/Legend.mjs +132 -0
- package/dist/map/MapLayersControl.d.mts +11 -0
- package/dist/map/MapLayersControl.mjs +157 -0
- package/dist/map/MapLocator.css +9 -0
- package/dist/map/MapLocator.d.mts +18 -0
- package/dist/map/MapLocator.mjs +97 -0
- package/dist/map/MapLocator.module.css.mjs +4 -0
- package/dist/map/MapMarker.d.mts +29 -0
- package/dist/map/MapMarker.mjs +265 -0
- package/dist/map/MapStops.d.mts +19 -0
- package/dist/map/MapStops.mjs +355 -0
- package/dist/map/MapView.css +24 -0
- package/dist/map/MapView.d.mts +11 -0
- package/dist/map/MapView.mjs +141 -0
- package/dist/map/MapWebgl.d.mts +9 -0
- package/dist/map/MapWebgl.mjs +727 -0
- package/dist/map/area-layers.d.mts +33 -0
- package/dist/map/area-layers.mjs +96 -0
- package/dist/map/control-group.d.mts +6 -0
- package/dist/map/control-group.mjs +12 -0
- package/dist/map/for-each-chunk.d.mts +4 -0
- package/dist/map/for-each-chunk.mjs +14 -0
- package/dist/map/highlight.d.mts +30 -0
- package/dist/map/highlight.mjs +99 -0
- package/dist/map/locator-tile.d.mts +24 -0
- package/dist/map/locator-tile.mjs +41 -0
- package/dist/map/map-sites.d.mts +12 -0
- package/dist/map/map-sites.mjs +39 -0
- package/dist/map/map-style.d.mts +24 -0
- package/dist/map/map-style.mjs +79 -0
- package/dist/map/marker-geometry.d.mts +5 -0
- package/dist/map/marker-geometry.mjs +13 -0
- package/dist/map/marker-icon.d.mts +26 -0
- package/dist/map/marker-icon.mjs +223 -0
- package/dist/map/observe-color-scheme.d.mts +5 -0
- package/dist/map/observe-color-scheme.mjs +19 -0
- package/dist/map/popup-placement.d.mts +20 -0
- package/dist/map/popup-placement.mjs +20 -0
- package/dist/map/route-layers.d.mts +28 -0
- package/dist/map/route-layers.mjs +73 -0
- package/dist/map/types.d.mts +97 -0
- package/dist/map/types.mjs +0 -0
- package/dist/map/use-painted-color-scheme.d.mts +6 -0
- package/dist/map/use-painted-color-scheme.mjs +43 -0
- package/dist/map/use-resolved-colors.d.mts +5 -0
- package/dist/map/use-resolved-colors.mjs +63 -0
- package/dist/pagination/paginationLabels.d.mts +6 -0
- package/dist/pagination/paginationLabels.mjs +8 -0
- package/dist/popover/Popover.css +176 -0
- package/dist/popover/Popover.d.mts +239 -0
- package/dist/popover/Popover.mjs +672 -0
- package/dist/popover/Popover.module.css.mjs +18 -0
- package/dist/popover/PopoverFacts.d.mts +24 -0
- package/dist/popover/PopoverFacts.mjs +63 -0
- package/dist/readout/Readout.d.mts +15 -0
- package/dist/readout/Readout.mjs +53 -0
- package/dist/readout/TimeZoneReadout.d.mts +11 -0
- package/dist/readout/TimeZoneReadout.mjs +46 -0
- package/dist/score-box/ScoreBox.css +62 -0
- package/dist/score-box/ScoreBox.d.mts +12 -0
- package/dist/score-box/ScoreBox.mjs +143 -0
- package/dist/score-box/ScoreBox.module.css.mjs +15 -0
- package/dist/segment-bar/Segment.d.mts +23 -0
- package/dist/segment-bar/Segment.mjs +27 -0
- package/dist/segment-bar/SegmentBar.css +44 -0
- package/dist/segment-bar/SegmentBar.d.mts +35 -0
- package/dist/segment-bar/SegmentBar.mjs +57 -0
- package/dist/segment-bar/SegmentBar.module.css.mjs +9 -0
- package/dist/segment-bar/segment-box.d.mts +10 -0
- package/dist/segment-bar/segment-box.mjs +30 -0
- package/dist/stat/Stat.d.mts +25 -0
- package/dist/stat/Stat.mjs +36 -0
- package/dist/stat/StatTile.d.mts +18 -0
- package/dist/stat/StatTile.mjs +37 -0
- package/dist/styles.css +1 -0
- package/dist/swatch/Swatch.d.mts +8 -0
- package/dist/swatch/Swatch.mjs +30 -0
- package/dist/swatch/legend-swatch.d.mts +3 -0
- package/dist/swatch/legend-swatch.mjs +0 -0
- package/dist/tab-bar/FilteredTabBar.d.mts +32 -0
- package/dist/tab-bar/FilteredTabBar.mjs +181 -0
- package/dist/tab-bar/TabBar.d.mts +22 -0
- package/dist/tab-bar/TabBar.mjs +151 -0
- package/dist/tab-bar/TabPanel.d.mts +9 -0
- package/dist/tab-bar/TabPanel.mjs +55 -0
- package/dist/tab-bar/assert-named-value.d.mts +4 -0
- package/dist/tab-bar/assert-named-value.mjs +6 -0
- package/dist/table/DataTable.d.mts +31 -0
- package/dist/table/DataTable.mjs +43 -0
- package/dist/theme/use-color-scheme.d.mts +14 -0
- package/dist/theme/use-color-scheme.mjs +92 -0
- package/dist/theme.css +58 -0
- package/dist/timeline/Timeline.d.mts +54 -0
- package/dist/timeline/Timeline.mjs +220 -0
- package/dist/timeline/TimelineBand.d.mts +18 -0
- package/dist/timeline/TimelineBand.mjs +30 -0
- package/dist/timeline/TimelineGroup.d.mts +7 -0
- package/dist/timeline/TimelineGroup.mjs +50 -0
- package/dist/timeline/TimelineItem.d.mts +19 -0
- package/dist/timeline/TimelineItem.mjs +64 -0
- package/dist/timeline/TimelineItemChip.css +153 -0
- package/dist/timeline/TimelineItemChip.d.mts +23 -0
- package/dist/timeline/TimelineItemChip.mjs +74 -0
- package/dist/timeline/TimelineItemChip.module.css.mjs +15 -0
- package/dist/timeline/TimelineItemMark.css +38 -0
- package/dist/timeline/TimelineItemMark.d.mts +15 -0
- package/dist/timeline/TimelineItemMark.mjs +129 -0
- package/dist/timeline/TimelineItemMark.module.css.mjs +4 -0
- package/dist/timeline/TimelineRoot.d.mts +19 -0
- package/dist/timeline/TimelineRoot.mjs +742 -0
- package/dist/timeline/TimelineRowHeader.d.mts +23 -0
- package/dist/timeline/TimelineRowHeader.mjs +244 -0
- package/dist/timeline/TimelineZoomHint.d.mts +9 -0
- package/dist/timeline/TimelineZoomHint.mjs +32 -0
- package/dist/timeline/axis-label.d.mts +5 -0
- package/dist/timeline/axis-label.mjs +53 -0
- package/dist/timeline/batched-dataset-writer.d.mts +29 -0
- package/dist/timeline/batched-dataset-writer.mjs +58 -0
- package/dist/timeline/row-card-side.d.mts +7 -0
- package/dist/timeline/row-card-side.mjs +6 -0
- package/dist/timeline/timeline-a11y.d.mts +33 -0
- package/dist/timeline/timeline-a11y.mjs +96 -0
- package/dist/timeline/timeline-context.d.mts +33 -0
- package/dist/timeline/timeline-context.mjs +40 -0
- package/dist/timeline/timeline-types.d.mts +126 -0
- package/dist/timeline/timeline-types.mjs +0 -0
- package/dist/timeline/timeline-utils.d.mts +52 -0
- package/dist/timeline/timeline-utils.mjs +130 -0
- package/dist/timeline/zoom-modifier.d.mts +21 -0
- package/dist/timeline/zoom-modifier.mjs +25 -0
- package/dist/toast/ToastProvider.d.mts +33 -0
- package/dist/toast/ToastProvider.mjs +257 -0
- package/dist/toast/toast-context.d.mts +2 -0
- package/dist/toast/toast-context.mjs +5 -0
- package/dist/tokens.css +1 -0
- package/dist/tooltip/Tooltip.d.mts +17 -0
- package/dist/tooltip/Tooltip.mjs +41 -0
- package/dist/tooltip/hover-open-delay.d.mts +2 -0
- package/dist/tooltip/hover-open-delay.mjs +4 -0
- package/dist/tooltip/is-text-cut.d.mts +1 -0
- package/dist/tooltip/is-text-cut.mjs +5 -0
- package/dist/vendor/components.d.mts +664 -0
- package/dist/vendor/components.mjs +2060 -0
- package/package.json +56 -5
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { assertNamedValue } from "./assert-named-value.mjs";
|
|
3
|
+
import TabPanel from "./TabPanel.mjs";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { startTransition } from "react";
|
|
7
|
+
import { Tabs, TabsList, TabsTrigger } from "../vendor/components.mjs";
|
|
8
|
+
import clsx$1 from "clsx";
|
|
9
|
+
// src/tab-bar/TabBar.tsx
|
|
10
|
+
function assertTabValue(tabs, value) {
|
|
11
|
+
const values = tabs.map((tab) => tab.value);
|
|
12
|
+
if (new Set(values).size !== values.length) throw new Error(`TabBar tabs repeat a value: ${values.join(", ")}`);
|
|
13
|
+
assertNamedValue(value, values, {
|
|
14
|
+
prop: "TabBar value",
|
|
15
|
+
noun: "tab"
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Tab bar: a toolbar row with the tabs between its `leading`, `afterTabs` and `trailing` slots, above the tab panels.
|
|
20
|
+
*
|
|
21
|
+
* @see https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
|
|
22
|
+
* @category Layout
|
|
23
|
+
*/
|
|
24
|
+
function TabBar(t0) {
|
|
25
|
+
const $ = c(32);
|
|
26
|
+
const { tabs, value, onValueChange, leading, afterTabs, trailing, className, style, ref } = t0;
|
|
27
|
+
assertTabValue(tabs, value);
|
|
28
|
+
let t1;
|
|
29
|
+
if ($[0] !== onValueChange) {
|
|
30
|
+
t1 = function handleValueChange(newValue) {
|
|
31
|
+
startTransition(() => onValueChange(newValue));
|
|
32
|
+
};
|
|
33
|
+
$[0] = onValueChange;
|
|
34
|
+
$[1] = t1;
|
|
35
|
+
} else t1 = $[1];
|
|
36
|
+
const handleValueChange = t1;
|
|
37
|
+
let t2;
|
|
38
|
+
if ($[2] !== className) {
|
|
39
|
+
t2 = clsx$1("flex flex-col", className);
|
|
40
|
+
$[2] = className;
|
|
41
|
+
$[3] = t2;
|
|
42
|
+
} else t2 = $[3];
|
|
43
|
+
let t3;
|
|
44
|
+
if ($[4] !== leading) {
|
|
45
|
+
t3 = leading && /* @__PURE__ */ jsx("div", {
|
|
46
|
+
"data-slot": "tab-bar-leading",
|
|
47
|
+
className: "empty:hidden",
|
|
48
|
+
children: leading
|
|
49
|
+
});
|
|
50
|
+
$[4] = leading;
|
|
51
|
+
$[5] = t3;
|
|
52
|
+
} else t3 = $[5];
|
|
53
|
+
let t4;
|
|
54
|
+
if ($[6] !== tabs) {
|
|
55
|
+
t4 = tabs.map(_temp);
|
|
56
|
+
$[6] = tabs;
|
|
57
|
+
$[7] = t4;
|
|
58
|
+
} else t4 = $[7];
|
|
59
|
+
let t5;
|
|
60
|
+
if ($[8] !== t4) {
|
|
61
|
+
t5 = /* @__PURE__ */ jsx(TabsList, {
|
|
62
|
+
"data-slot": "tab-bar-list",
|
|
63
|
+
children: t4
|
|
64
|
+
});
|
|
65
|
+
$[8] = t4;
|
|
66
|
+
$[9] = t5;
|
|
67
|
+
} else t5 = $[9];
|
|
68
|
+
let t6;
|
|
69
|
+
if ($[10] !== afterTabs) {
|
|
70
|
+
t6 = afterTabs && /* @__PURE__ */ jsx("div", {
|
|
71
|
+
"data-slot": "tab-bar-after-tabs",
|
|
72
|
+
children: afterTabs
|
|
73
|
+
});
|
|
74
|
+
$[10] = afterTabs;
|
|
75
|
+
$[11] = t6;
|
|
76
|
+
} else t6 = $[11];
|
|
77
|
+
let t7;
|
|
78
|
+
if ($[12] !== trailing) {
|
|
79
|
+
t7 = trailing && /* @__PURE__ */ jsx("div", {
|
|
80
|
+
"data-slot": "tab-bar-trailing",
|
|
81
|
+
className: "ml-auto empty:hidden",
|
|
82
|
+
children: trailing
|
|
83
|
+
});
|
|
84
|
+
$[12] = trailing;
|
|
85
|
+
$[13] = t7;
|
|
86
|
+
} else t7 = $[13];
|
|
87
|
+
let t8;
|
|
88
|
+
if ($[14] !== t3 || $[15] !== t5 || $[16] !== t6 || $[17] !== t7) {
|
|
89
|
+
t8 = /* @__PURE__ */ jsxs("div", {
|
|
90
|
+
"data-slot": "tab-bar-toolbar",
|
|
91
|
+
className: "flex flex-wrap items-center gap-2",
|
|
92
|
+
children: [
|
|
93
|
+
t3,
|
|
94
|
+
t5,
|
|
95
|
+
t6,
|
|
96
|
+
t7
|
|
97
|
+
]
|
|
98
|
+
});
|
|
99
|
+
$[14] = t3;
|
|
100
|
+
$[15] = t5;
|
|
101
|
+
$[16] = t6;
|
|
102
|
+
$[17] = t7;
|
|
103
|
+
$[18] = t8;
|
|
104
|
+
} else t8 = $[18];
|
|
105
|
+
let t9;
|
|
106
|
+
if ($[19] !== tabs || $[20] !== value) {
|
|
107
|
+
let t10;
|
|
108
|
+
if ($[22] !== value) {
|
|
109
|
+
t10 = (tab_0) => /* @__PURE__ */ jsx(TabPanel, {
|
|
110
|
+
value: tab_0.value,
|
|
111
|
+
active: tab_0.value === value,
|
|
112
|
+
children: tab_0.content
|
|
113
|
+
}, tab_0.value);
|
|
114
|
+
$[22] = value;
|
|
115
|
+
$[23] = t10;
|
|
116
|
+
} else t10 = $[23];
|
|
117
|
+
t9 = tabs.map(t10);
|
|
118
|
+
$[19] = tabs;
|
|
119
|
+
$[20] = value;
|
|
120
|
+
$[21] = t9;
|
|
121
|
+
} else t9 = $[21];
|
|
122
|
+
let t10;
|
|
123
|
+
if ($[24] !== handleValueChange || $[25] !== ref || $[26] !== style || $[27] !== t2 || $[28] !== t8 || $[29] !== t9 || $[30] !== value) {
|
|
124
|
+
t10 = /* @__PURE__ */ jsxs(Tabs, {
|
|
125
|
+
ref,
|
|
126
|
+
style,
|
|
127
|
+
"data-slot": "tab-bar",
|
|
128
|
+
value,
|
|
129
|
+
onValueChange: handleValueChange,
|
|
130
|
+
className: t2,
|
|
131
|
+
children: [t8, t9]
|
|
132
|
+
});
|
|
133
|
+
$[24] = handleValueChange;
|
|
134
|
+
$[25] = ref;
|
|
135
|
+
$[26] = style;
|
|
136
|
+
$[27] = t2;
|
|
137
|
+
$[28] = t8;
|
|
138
|
+
$[29] = t9;
|
|
139
|
+
$[30] = value;
|
|
140
|
+
$[31] = t10;
|
|
141
|
+
} else t10 = $[31];
|
|
142
|
+
return t10;
|
|
143
|
+
}
|
|
144
|
+
function _temp(tab) {
|
|
145
|
+
return /* @__PURE__ */ jsx(TabsTrigger, {
|
|
146
|
+
"data-slot": "tab-bar-tab",
|
|
147
|
+
value: tab.value,
|
|
148
|
+
children: tab.label
|
|
149
|
+
}, tab.value);
|
|
150
|
+
}
|
|
151
|
+
export { TabBar as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TabsContentProps } from "../vendor/components.mjs";
|
|
2
|
+
export interface TabPanelProps extends Omit<TabsContentProps, "className" | "forceMount"> {
|
|
3
|
+
active: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Tab panel with lazy-mount-then-keep-alive: mounts children on first activation, keeping them mounted after.
|
|
7
|
+
* Visibility uses React `<Activity>`, not just `forceMount`, so an inactive panel's own effects pause too.
|
|
8
|
+
*/
|
|
9
|
+
export default function TabPanel({ active, children, ...props }: TabPanelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Activity, useState } from "react";
|
|
5
|
+
import { TabsContent } from "../vendor/components.mjs";
|
|
6
|
+
// src/tab-bar/TabPanel.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Tab panel with lazy-mount-then-keep-alive: mounts children on first activation, keeping them mounted after.
|
|
9
|
+
* Visibility uses React `<Activity>`, not just `forceMount`, so an inactive panel's own effects pause too.
|
|
10
|
+
*/
|
|
11
|
+
function TabPanel(t0) {
|
|
12
|
+
const $ = c(11);
|
|
13
|
+
let active;
|
|
14
|
+
let children;
|
|
15
|
+
let props;
|
|
16
|
+
if ($[0] !== t0) {
|
|
17
|
+
({active, children, ...props} = t0);
|
|
18
|
+
$[0] = t0;
|
|
19
|
+
$[1] = active;
|
|
20
|
+
$[2] = children;
|
|
21
|
+
$[3] = props;
|
|
22
|
+
} else {
|
|
23
|
+
active = $[1];
|
|
24
|
+
children = $[2];
|
|
25
|
+
props = $[3];
|
|
26
|
+
}
|
|
27
|
+
const [hasBeenActive, setHasBeenActive] = useState(active);
|
|
28
|
+
if (active && !hasBeenActive) setHasBeenActive(true);
|
|
29
|
+
let t1;
|
|
30
|
+
if ($[4] !== active || $[5] !== children || $[6] !== hasBeenActive) {
|
|
31
|
+
t1 = hasBeenActive && /* @__PURE__ */ jsx(Activity, {
|
|
32
|
+
mode: active ? "visible" : "hidden",
|
|
33
|
+
children
|
|
34
|
+
});
|
|
35
|
+
$[4] = active;
|
|
36
|
+
$[5] = children;
|
|
37
|
+
$[6] = hasBeenActive;
|
|
38
|
+
$[7] = t1;
|
|
39
|
+
} else t1 = $[7];
|
|
40
|
+
let t2;
|
|
41
|
+
if ($[8] !== props || $[9] !== t1) {
|
|
42
|
+
t2 = /* @__PURE__ */ jsx(TabsContent, {
|
|
43
|
+
"data-slot": "tab-bar-panel",
|
|
44
|
+
forceMount: true,
|
|
45
|
+
className: "grow flex-col data-[state=active]:flex",
|
|
46
|
+
...props,
|
|
47
|
+
children: t1
|
|
48
|
+
});
|
|
49
|
+
$[8] = props;
|
|
50
|
+
$[9] = t1;
|
|
51
|
+
$[10] = t2;
|
|
52
|
+
} else t2 = $[10];
|
|
53
|
+
return t2;
|
|
54
|
+
}
|
|
55
|
+
export { TabPanel as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// src/tab-bar/assert-named-value.ts
|
|
2
|
+
function assertNamedValue(value, values, { prop, noun }) {
|
|
3
|
+
if (value === void 0 || values.length === 0 || values.includes(value)) return;
|
|
4
|
+
throw new Error(`${prop} "${value}" names no ${noun}; expected one of: ${values.join(", ")}`);
|
|
5
|
+
}
|
|
6
|
+
export { assertNamedValue };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CsvValue } from "@timefoldai/viz-core";
|
|
2
|
+
/** A column of `DataTable`: its key, header and how it renders and exports a cell. */
|
|
3
|
+
export interface DataTableColumn<T> {
|
|
4
|
+
key: string;
|
|
5
|
+
header: React.ReactNode;
|
|
6
|
+
cell: (row: T) => React.ReactNode;
|
|
7
|
+
value?: (row: T) => CsvValue;
|
|
8
|
+
/** @defaultValue a title-cased `key` */
|
|
9
|
+
exportHeader?: string;
|
|
10
|
+
numeric?: boolean;
|
|
11
|
+
rowHeader?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** The density of the table's text and cell padding: `sm` in a floating card, `md` inline. */
|
|
14
|
+
export type DataTableSize = "sm" | "md";
|
|
15
|
+
/** The props of `DataTable`: its columns and the rows it lists. */
|
|
16
|
+
export interface DataTableProps<T> extends Pick<React.ComponentProps<"table">, "className" | "style" | "ref"> {
|
|
17
|
+
columns: DataTableColumn<T>[];
|
|
18
|
+
rows: T[];
|
|
19
|
+
/** @defaultValue the row's index */
|
|
20
|
+
rowKey?: (row: T, index: number) => React.Key;
|
|
21
|
+
/** @defaultValue "md" */
|
|
22
|
+
size?: DataTableSize;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Config-driven data table: each column's `header` heads it and its `cell(row)` fills a row.
|
|
26
|
+
* `ExportCsvButton` reads the same columns, so the CSV cannot drift from the view.
|
|
27
|
+
*
|
|
28
|
+
* @see https://www.w3.org/WAI/ARIA/apg/patterns/table/
|
|
29
|
+
* @category Data display
|
|
30
|
+
*/
|
|
31
|
+
export default function DataTable<T>({ columns, rows, rowKey, size, className, style, ref }: DataTableProps<T>): import("react").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Table, TableBody, TableCell, TableHeadCell, TableHeader, TableRow } from "../vendor/components.mjs";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
|
+
import "@timefoldai/viz-core";
|
|
5
|
+
// src/table/DataTable.tsx
|
|
6
|
+
const NUMERIC = "whitespace-nowrap text-right tabular-nums";
|
|
7
|
+
const COMPACT_TABLE = "text-(length:--tf-font-size-label-small)";
|
|
8
|
+
const COMPACT_HEADER_ROW = "h-auto";
|
|
9
|
+
const COMPACT_CELL = "px-(--tf-space-2) py-(--tf-space-2)";
|
|
10
|
+
/**
|
|
11
|
+
* Config-driven data table: each column's `header` heads it and its `cell(row)` fills a row.
|
|
12
|
+
* `ExportCsvButton` reads the same columns, so the CSV cannot drift from the view.
|
|
13
|
+
*
|
|
14
|
+
* @see https://www.w3.org/WAI/ARIA/apg/patterns/table/
|
|
15
|
+
* @category Data display
|
|
16
|
+
*/
|
|
17
|
+
function DataTable({ columns, rows, rowKey, size = "md", className, style, ref }) {
|
|
18
|
+
const compact = size === "sm";
|
|
19
|
+
const cellClass = (column) => clsx$1(column.numeric && NUMERIC, compact && COMPACT_CELL) || void 0;
|
|
20
|
+
return /* @__PURE__ */ jsxs(Table, {
|
|
21
|
+
ref,
|
|
22
|
+
"data-slot": "data-table",
|
|
23
|
+
"data-size": size,
|
|
24
|
+
className: clsx$1(compact && COMPACT_TABLE, className),
|
|
25
|
+
style,
|
|
26
|
+
children: [/* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsx(TableRow, {
|
|
27
|
+
className: compact ? COMPACT_HEADER_ROW : void 0,
|
|
28
|
+
children: columns.map((column_0) => /* @__PURE__ */ jsx(TableHeadCell, {
|
|
29
|
+
scope: "col",
|
|
30
|
+
className: cellClass(column_0),
|
|
31
|
+
children: column_0.header
|
|
32
|
+
}, column_0.key))
|
|
33
|
+
}) }), /* @__PURE__ */ jsx(TableBody, { children: rows.map((row, rowIndex) => /* @__PURE__ */ jsx(TableRow, { children: columns.map((column_1) => {
|
|
34
|
+
const Cell = column_1.rowHeader ? TableHeadCell : TableCell;
|
|
35
|
+
return /* @__PURE__ */ jsx(Cell, {
|
|
36
|
+
scope: column_1.rowHeader ? "row" : void 0,
|
|
37
|
+
className: cellClass(column_1),
|
|
38
|
+
children: column_1.cell(row)
|
|
39
|
+
}, column_1.key);
|
|
40
|
+
}) }, rowKey ? rowKey(row, rowIndex) : rowIndex)) })]
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export { DataTable as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** What the reader asked for, not what is currently painted: `"system"` follows
|
|
2
|
+
* the OS preference and keeps following it. */
|
|
3
|
+
export type ColorSchemePreference = "light" | "dark" | "system";
|
|
4
|
+
/**
|
|
5
|
+
* The document's colour-scheme preference, one value shared by every caller,
|
|
6
|
+
* painted on `<html>` and remembered in `localStorage`.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* In `"system"` mode the OS preference is followed live.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useColorScheme(): {
|
|
12
|
+
preference: ColorSchemePreference;
|
|
13
|
+
setPreference: (preference: ColorSchemePreference) => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { useEffect, useSyncExternalStore } from "react";
|
|
4
|
+
import { COLOR_SCHEME_STORAGE_KEY, parseColorScheme } from "@timefoldai/viz-core";
|
|
5
|
+
// src/theme/use-color-scheme.ts
|
|
6
|
+
const DARK_QUERY = "(prefers-color-scheme: dark)";
|
|
7
|
+
function storedPreference() {
|
|
8
|
+
try {
|
|
9
|
+
return parseColorScheme(localStorage.getItem(COLOR_SCHEME_STORAGE_KEY)) ?? "system";
|
|
10
|
+
} catch {
|
|
11
|
+
return "system";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
const subscribers = /* @__PURE__ */ new Set();
|
|
15
|
+
function notifySubscribers() {
|
|
16
|
+
for (const subscriber of subscribers) subscriber();
|
|
17
|
+
}
|
|
18
|
+
function onStorage(event) {
|
|
19
|
+
if (event.key === COLOR_SCHEME_STORAGE_KEY || event.key === null) notifySubscribers();
|
|
20
|
+
}
|
|
21
|
+
function subscribe(subscriber) {
|
|
22
|
+
subscribers.add(subscriber);
|
|
23
|
+
if (subscribers.size === 1) window.addEventListener("storage", onStorage);
|
|
24
|
+
return () => {
|
|
25
|
+
subscribers.delete(subscriber);
|
|
26
|
+
if (subscribers.size === 0) window.removeEventListener("storage", onStorage);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function serverPreference() {
|
|
30
|
+
return "system";
|
|
31
|
+
}
|
|
32
|
+
function savePreference(next) {
|
|
33
|
+
if (typeof localStorage !== "undefined") localStorage.setItem(COLOR_SCHEME_STORAGE_KEY, next);
|
|
34
|
+
notifySubscribers();
|
|
35
|
+
}
|
|
36
|
+
function prefersDark() {
|
|
37
|
+
return typeof matchMedia === "function" && matchMedia(DARK_QUERY).matches;
|
|
38
|
+
}
|
|
39
|
+
function paint(preference) {
|
|
40
|
+
const root = document.documentElement;
|
|
41
|
+
const dark = preference === "dark" || preference === "system" && prefersDark();
|
|
42
|
+
root.classList.toggle("dark", dark);
|
|
43
|
+
root.classList.toggle("light", !dark && preference === "light");
|
|
44
|
+
root.dataset["theme"] = dark ? "dark" : "light";
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The document's colour-scheme preference, one value shared by every caller,
|
|
48
|
+
* painted on `<html>` and remembered in `localStorage`.
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* In `"system"` mode the OS preference is followed live.
|
|
52
|
+
*/
|
|
53
|
+
function useColorScheme() {
|
|
54
|
+
const $ = c(5);
|
|
55
|
+
const preference = useSyncExternalStore(subscribe, storedPreference, serverPreference);
|
|
56
|
+
let t0;
|
|
57
|
+
let t1;
|
|
58
|
+
if ($[0] !== preference) {
|
|
59
|
+
t0 = () => {
|
|
60
|
+
paint(preference);
|
|
61
|
+
if (preference !== "system" || typeof matchMedia !== "function") return;
|
|
62
|
+
const query = matchMedia(DARK_QUERY);
|
|
63
|
+
const followSystem = _temp;
|
|
64
|
+
query.addEventListener("change", followSystem);
|
|
65
|
+
return () => {
|
|
66
|
+
query.removeEventListener("change", followSystem);
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
t1 = [preference];
|
|
70
|
+
$[0] = preference;
|
|
71
|
+
$[1] = t0;
|
|
72
|
+
$[2] = t1;
|
|
73
|
+
} else {
|
|
74
|
+
t0 = $[1];
|
|
75
|
+
t1 = $[2];
|
|
76
|
+
}
|
|
77
|
+
useEffect(t0, t1);
|
|
78
|
+
let t2;
|
|
79
|
+
if ($[3] !== preference) {
|
|
80
|
+
t2 = {
|
|
81
|
+
preference,
|
|
82
|
+
setPreference: savePreference
|
|
83
|
+
};
|
|
84
|
+
$[3] = preference;
|
|
85
|
+
$[4] = t2;
|
|
86
|
+
} else t2 = $[4];
|
|
87
|
+
return t2;
|
|
88
|
+
}
|
|
89
|
+
function _temp() {
|
|
90
|
+
paint("system");
|
|
91
|
+
}
|
|
92
|
+
export { useColorScheme };
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@layer properties, theme, base, ds, components, utilities;
|
|
2
|
+
@import "tailwindcss/theme.css" layer(theme);
|
|
3
|
+
@import "tailwindcss/utilities.css" layer(utilities);
|
|
4
|
+
@import "./tokens.css";
|
|
5
|
+
|
|
6
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
7
|
+
|
|
8
|
+
@theme inline {
|
|
9
|
+
--color-background: var(--tf-color-background);
|
|
10
|
+
--color-foreground: var(--tf-color-foreground);
|
|
11
|
+
--color-primary: var(--tf-color-primary);
|
|
12
|
+
--color-primary-foreground: var(--tf-color-primary-foreground);
|
|
13
|
+
--color-secondary: var(--tf-color-secondary);
|
|
14
|
+
--color-secondary-foreground: var(--tf-color-secondary-foreground);
|
|
15
|
+
--color-destructive: var(--tf-color-destructive);
|
|
16
|
+
--color-muted: var(--tf-color-muted);
|
|
17
|
+
--color-viz-tint: var(--viz-tint);
|
|
18
|
+
--color-viz-tint-foreground: var(--viz-tint-foreground);
|
|
19
|
+
--color-viz-readout-foreground: var(--viz-readout-foreground);
|
|
20
|
+
--color-viz-secondary: var(--viz-text-secondary);
|
|
21
|
+
--color-viz-muted: var(--viz-text-muted);
|
|
22
|
+
--color-border: var(--tf-color-border);
|
|
23
|
+
--color-input: var(--tf-color-input);
|
|
24
|
+
--color-ring: var(--tf-color-ring);
|
|
25
|
+
--color-viz-cat-1: var(--viz-cat-1);
|
|
26
|
+
--color-viz-cat-2: var(--viz-cat-2);
|
|
27
|
+
--color-viz-cat-3: var(--viz-cat-3);
|
|
28
|
+
--color-viz-cat-4: var(--viz-cat-4);
|
|
29
|
+
--color-viz-cat-5: var(--viz-cat-5);
|
|
30
|
+
--color-viz-cat-6: var(--viz-cat-6);
|
|
31
|
+
--color-viz-cat-7: var(--viz-cat-7);
|
|
32
|
+
--color-viz-cat-8: var(--viz-cat-8);
|
|
33
|
+
--color-viz-cat-9: var(--viz-cat-9);
|
|
34
|
+
--color-viz-cat-10: var(--viz-cat-10);
|
|
35
|
+
--color-viz-item-default: var(--viz-item-default);
|
|
36
|
+
--color-viz-item-positive: var(--viz-item-positive);
|
|
37
|
+
--color-viz-item-warning: var(--viz-item-warning);
|
|
38
|
+
--color-viz-item-negative: var(--viz-item-negative);
|
|
39
|
+
--color-viz-item-neutral: var(--viz-item-neutral);
|
|
40
|
+
--color-viz-item-waiting: var(--viz-item-waiting);
|
|
41
|
+
--color-viz-item-done: var(--viz-item-done);
|
|
42
|
+
--color-viz-score-hard: var(--viz-score-hard);
|
|
43
|
+
--color-viz-score-medium: var(--viz-score-medium);
|
|
44
|
+
--color-viz-score-soft: var(--viz-score-soft);
|
|
45
|
+
--color-viz-score-soft-positive: var(--viz-score-soft-positive);
|
|
46
|
+
--font-sans: var(--tf-font-sans);
|
|
47
|
+
--font-mono: var(--tf-font-mono);
|
|
48
|
+
--radius-sm: var(--tf-radius-sm);
|
|
49
|
+
--radius-md: var(--tf-radius-md);
|
|
50
|
+
--radius-lg: var(--tf-radius-lg);
|
|
51
|
+
--shadow-1: var(--tf-shadow-1);
|
|
52
|
+
--shadow-2: var(--tf-shadow-2);
|
|
53
|
+
--shadow-3: var(--tf-shadow-3);
|
|
54
|
+
--z-index-dropdown: var(--tf-z-dropdown);
|
|
55
|
+
--z-index-popover: var(--tf-z-popover);
|
|
56
|
+
--z-index-tooltip: var(--tf-z-tooltip);
|
|
57
|
+
--z-index-modal: var(--tf-z-modal);
|
|
58
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { TimelineLegendEntry } from "../legend/Legend.mjs";
|
|
2
|
+
import { TimelineBandProps, TimelineBounds, TimelineChartOptions, TimelineGroupProps, TimelineId, TimelineItemProps, TimelineItemState, TimelineItemVariant, TimelineMarkerProps, TimelineWindow } from "./timeline-types.mjs";
|
|
3
|
+
/** The props of `Timeline`: its items, bands, rows and pagination. */
|
|
4
|
+
export interface TimelineProps extends Pick<React.ComponentProps<"div">, "className" | "style" | "ref"> {
|
|
5
|
+
items: TimelineItemProps[];
|
|
6
|
+
bands?: TimelineBandProps[];
|
|
7
|
+
markers?: TimelineMarkerProps[];
|
|
8
|
+
groups?: Omit<TimelineGroupProps, "highlighted">[];
|
|
9
|
+
options?: TimelineChartOptions;
|
|
10
|
+
/** @defaultValue `"data"` */
|
|
11
|
+
bounds?: TimelineBounds | "data" | null;
|
|
12
|
+
/** @remarks Moves the window on a new start or end; a value kept after a reader's move keeps their window. */
|
|
13
|
+
visibleRange?: TimelineWindow;
|
|
14
|
+
defaultVisibleRange?: TimelineWindow;
|
|
15
|
+
/** @remarks Called when the reader pans, zooms or moves the keyboard cursor, not when the chart moves its own window. */
|
|
16
|
+
onVisibleRangeChange?: (window: TimelineWindow) => void;
|
|
17
|
+
/** @remarks The window moves to the data when this changes and the window is empty; defaults to the row ids. */
|
|
18
|
+
fitKey?: string;
|
|
19
|
+
"aria-label": string;
|
|
20
|
+
legend?: TimelineLegendEntry[];
|
|
21
|
+
/** @defaultValue `10` */
|
|
22
|
+
pageSize?: number;
|
|
23
|
+
/** @defaultValue `"bottom"` */
|
|
24
|
+
paginationPosition?: "top" | "bottom" | "both";
|
|
25
|
+
/** @remarks Shows a search box above the chart that filters the rows by their label. @defaultValue `false` */
|
|
26
|
+
searchable?: boolean;
|
|
27
|
+
highlightedGroup?: TimelineId | null;
|
|
28
|
+
onHighlightedGroupChange?: (group: TimelineId | null) => void;
|
|
29
|
+
onGroupClick?: (group: TimelineId) => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The row order of an ungrouped chart: by start, then by label (between rows
|
|
33
|
+
* that start together), sorted once per `items` array, so a caller must not change one in place.
|
|
34
|
+
*/
|
|
35
|
+
export declare function sortUngroupedRows(items: readonly TimelineItemProps[]): TimelineItemProps[];
|
|
36
|
+
/**
|
|
37
|
+
* A paged Timeline / Gantt chart — the entrypoint for rendering a model's schedule.
|
|
38
|
+
* A data layer over {@link TimelineRoot}: sorts and pages `groups` (by `order`, then label) or `items` into rows.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <Timeline
|
|
43
|
+
* items={items}
|
|
44
|
+
* groups={groups}
|
|
45
|
+
* options={{ timeZoneOffsetSeconds }}
|
|
46
|
+
* aria-label="Shifts timeline"
|
|
47
|
+
* />
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @see https://www.w3.org/WAI/ARIA/apg/patterns/grid/
|
|
51
|
+
* @category Charts
|
|
52
|
+
*/
|
|
53
|
+
export default function Timeline({ items, bands, markers, groups, options, bounds, visibleRange, defaultVisibleRange, onVisibleRangeChange, "aria-label": ariaLabel, legend, pageSize, paginationPosition, searchable, highlightedGroup, onHighlightedGroupChange, onGroupClick, fitKey, className, style, ref }: TimelineProps): import("react").JSX.Element;
|
|
54
|
+
export type { TimelineBandProps, TimelineBounds, TimelineChartOptions, TimelineGroupProps, TimelineId, TimelineItemProps, TimelineItemState, TimelineItemVariant, TimelineMarkerProps, TimelineWindow };
|