@overdoser/react-toolkit 0.10.1 → 0.12.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/AGENTS.md +2 -2
- package/CHANGELOG.md +108 -0
- package/components/Draggable/Draggable.d.ts +1 -1
- package/components/Draggable/Draggable.js +94 -84
- package/components/Timeline/GanttTimeline.d.ts +10 -0
- package/components/Timeline/GanttTimeline.js +202 -196
- package/components/Timeline/HistoryTimeline.d.ts +10 -0
- package/components/Timeline/HistoryTimeline.js +219 -214
- package/components/Timeline/Timeline.module.scss.js +126 -96
- package/components/Timeline/TimelineShared.d.ts +35 -4
- package/components/Timeline/TimelineShared.js +215 -102
- package/components/Timeline/TraceTimeline.d.ts +50 -9
- package/components/Timeline/TraceTimeline.js +716 -432
- package/components/Timeline/TraceTimeline.module.scss.js +159 -95
- package/components/Timeline/index.d.ts +2 -1
- package/components/Timeline/useTimeline.d.ts +11 -0
- package/components/Timeline/useTimeline.js +36 -32
- package/index.css +1 -1
- package/index.d.ts +1 -1
- package/index.layered.css +1 -1
- package/llms.txt +16 -8
- package/manifest.json +630 -170
- package/package.json +1 -1
|
@@ -1,111 +1,141 @@
|
|
|
1
|
-
const
|
|
2
|
-
root:
|
|
3
|
-
toolbar:
|
|
4
|
-
toolbarText:
|
|
5
|
-
toolbarTitle:
|
|
1
|
+
const o = "crk-root-z0SDl", t = "crk-toolbar-bi8on", r = "crk-toolbarText-FsDXp", s = "crk-toolbarTitle-Rb9N0", m = "crk-toolbarMeta-E06cE", c = "crk-controls-8bff6", a = "crk-zoomBtn-NhfsT", e = "crk-zoomPct-l6Kb7", n = "crk-fitBtn-7CPVN", u = "crk-fitBtnActive-VGm-i", l = "crk-controlsHint-9W3ak", i = "crk-searchInput-1KGtO", y = "crk-segmented-ewtNI", k = "crk-segmentedBtn-8jCDo", d = "crk-segmentedBtnActive-fFz-u", b = "crk-legend-ba0us", p = "crk-legendItem-WV0US", B = "crk-legendDot-t2YBC", D = "crk-layout-odptV", g = "crk-main-3O04o", C = "crk-cardWrap-JHqEw", R = "crk-card-HLtsS", z = "crk-summaryDock-gxnAQ", T = "crk-dockResizer-G6e9m", w = "crk-dockResizerActive-OEqgK", H = "crk-scroller-fLmrw", A = "crk-footnote-5H-AC", f = "crk-aside-xGL6z", G = "crk-asideClose-xWoXo", L = "crk-asideSection-ArSn1", S = "crk-asideRaw-233n9", h = "crk-summary-S5D5Y", F = "crk-summaryHeader-KiURn", P = "crk-summaryCount-Hgt1x", v = "crk-summaryList-KHyfB", V = "crk-summaryRow-9AC-c", I = "crk-summaryRowInView-Vap6M", x = "crk-summaryRowSelected-WTZUP", N = "crk-summaryNum-i8PC3", E = "crk-summaryDot-AcsLd", M = "crk-summaryLabel-DR8G2", W = "crk-summaryTime-mzS5x", O = "crk-summaryHorizontal--wsta", q = "crk-summaryTop-sLyWG", K = "crk-summaryBottom-OV6RP", U = "crk-summaryListGrid-POwB0", X = "crk-summaryBubbleAnchor-VJ9XE", J = "crk-summaryBubble-bovnu", Y = "crk-summaryBubbleGlyph-qmhBS", j = "crk-summaryBubblePanel-MFOE4", Z = "crk-summaryBubbleCard-G0AMd", Q = "crk-summaryDockCard--Uvnf", _ = "crk-summaryDockResizer-p22nT", $ = "crk-summaryHeadTools-oU-0D", oo = "crk-summaryCollapse-JNDjo", to = "crk-summaryDockBtn-S9uPN", ro = "crk-summaryFootnote-oTXbW", so = "crk-summaryFloating-6Yac4", mo = "crk-summaryFloatingCard-6A5Ic", co = "crk-summaryHandle--chiD", ao = "crk-summaryGrip-qVC6v", eo = "crk-tooltip-ot-iF", no = "crk-tooltipTitle-CxGBY", uo = "crk-tooltipLine-bqSen", lo = "crk-tooltipMono-mbJwE", io = "crk-tooltipDim-hEEP-", yo = "crk-mark-XZVFm", ko = "crk-pulseDot-usPRN", bo = {
|
|
2
|
+
root: o,
|
|
3
|
+
toolbar: t,
|
|
4
|
+
toolbarText: r,
|
|
5
|
+
toolbarTitle: s,
|
|
6
6
|
toolbarMeta: m,
|
|
7
7
|
controls: c,
|
|
8
|
-
zoomBtn:
|
|
9
|
-
zoomPct:
|
|
10
|
-
fitBtn:
|
|
11
|
-
fitBtnActive:
|
|
8
|
+
zoomBtn: a,
|
|
9
|
+
zoomPct: e,
|
|
10
|
+
fitBtn: n,
|
|
11
|
+
fitBtnActive: u,
|
|
12
12
|
controlsHint: l,
|
|
13
|
-
searchInput:
|
|
13
|
+
searchInput: i,
|
|
14
14
|
segmented: y,
|
|
15
15
|
segmentedBtn: k,
|
|
16
16
|
segmentedBtnActive: d,
|
|
17
|
-
legend:
|
|
18
|
-
legendItem:
|
|
19
|
-
legendDot:
|
|
20
|
-
layout:
|
|
21
|
-
main:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
17
|
+
legend: b,
|
|
18
|
+
legendItem: p,
|
|
19
|
+
legendDot: B,
|
|
20
|
+
layout: D,
|
|
21
|
+
main: g,
|
|
22
|
+
cardWrap: C,
|
|
23
|
+
card: R,
|
|
24
|
+
summaryDock: z,
|
|
25
|
+
dockResizer: T,
|
|
26
|
+
dockResizerActive: w,
|
|
27
|
+
scroller: H,
|
|
28
|
+
footnote: A,
|
|
29
|
+
aside: f,
|
|
30
|
+
asideClose: G,
|
|
31
|
+
asideSection: L,
|
|
32
|
+
asideRaw: S,
|
|
33
|
+
summary: h,
|
|
34
|
+
summaryHeader: F,
|
|
35
|
+
summaryCount: P,
|
|
36
|
+
summaryList: v,
|
|
37
|
+
summaryRow: V,
|
|
38
|
+
summaryRowInView: I,
|
|
39
|
+
summaryRowSelected: x,
|
|
40
|
+
summaryNum: N,
|
|
41
|
+
summaryDot: E,
|
|
42
|
+
summaryLabel: M,
|
|
43
|
+
summaryTime: W,
|
|
44
|
+
summaryHorizontal: O,
|
|
45
|
+
summaryTop: q,
|
|
46
|
+
summaryBottom: K,
|
|
47
|
+
summaryListGrid: U,
|
|
48
|
+
summaryBubbleAnchor: X,
|
|
49
|
+
summaryBubble: J,
|
|
50
|
+
summaryBubbleGlyph: Y,
|
|
51
|
+
summaryBubblePanel: j,
|
|
52
|
+
summaryBubbleCard: Z,
|
|
53
|
+
summaryDockCard: Q,
|
|
54
|
+
summaryDockResizer: _,
|
|
55
|
+
summaryHeadTools: $,
|
|
56
|
+
summaryCollapse: oo,
|
|
57
|
+
summaryDockBtn: to,
|
|
58
|
+
summaryFootnote: ro,
|
|
59
|
+
summaryFloating: so,
|
|
60
|
+
summaryFloatingCard: mo,
|
|
61
|
+
summaryHandle: co,
|
|
62
|
+
summaryGrip: ao,
|
|
63
|
+
tooltip: eo,
|
|
64
|
+
tooltipTitle: no,
|
|
65
|
+
tooltipLine: uo,
|
|
66
|
+
tooltipMono: lo,
|
|
67
|
+
tooltipDim: io,
|
|
68
|
+
mark: yo,
|
|
69
|
+
pulseDot: ko
|
|
55
70
|
};
|
|
56
71
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
72
|
+
f as aside,
|
|
73
|
+
G as asideClose,
|
|
74
|
+
S as asideRaw,
|
|
75
|
+
L as asideSection,
|
|
76
|
+
R as card,
|
|
77
|
+
C as cardWrap,
|
|
62
78
|
c as controls,
|
|
63
79
|
l as controlsHint,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
bo as default,
|
|
81
|
+
T as dockResizer,
|
|
82
|
+
w as dockResizerActive,
|
|
83
|
+
n as fitBtn,
|
|
84
|
+
u as fitBtnActive,
|
|
85
|
+
A as footnote,
|
|
86
|
+
D as layout,
|
|
87
|
+
b as legend,
|
|
88
|
+
B as legendDot,
|
|
89
|
+
p as legendItem,
|
|
90
|
+
g as main,
|
|
91
|
+
yo as mark,
|
|
92
|
+
ko as pulseDot,
|
|
93
|
+
o as root,
|
|
94
|
+
H as scroller,
|
|
95
|
+
i as searchInput,
|
|
78
96
|
y as segmented,
|
|
79
97
|
k as segmentedBtn,
|
|
80
98
|
d as segmentedBtnActive,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
h as summary,
|
|
100
|
+
K as summaryBottom,
|
|
101
|
+
J as summaryBubble,
|
|
102
|
+
X as summaryBubbleAnchor,
|
|
103
|
+
Z as summaryBubbleCard,
|
|
104
|
+
Y as summaryBubbleGlyph,
|
|
105
|
+
j as summaryBubblePanel,
|
|
106
|
+
oo as summaryCollapse,
|
|
107
|
+
P as summaryCount,
|
|
108
|
+
z as summaryDock,
|
|
109
|
+
to as summaryDockBtn,
|
|
110
|
+
Q as summaryDockCard,
|
|
111
|
+
_ as summaryDockResizer,
|
|
112
|
+
E as summaryDot,
|
|
113
|
+
so as summaryFloating,
|
|
114
|
+
mo as summaryFloatingCard,
|
|
115
|
+
ro as summaryFootnote,
|
|
116
|
+
ao as summaryGrip,
|
|
117
|
+
co as summaryHandle,
|
|
118
|
+
$ as summaryHeadTools,
|
|
119
|
+
F as summaryHeader,
|
|
120
|
+
O as summaryHorizontal,
|
|
121
|
+
M as summaryLabel,
|
|
122
|
+
v as summaryList,
|
|
123
|
+
U as summaryListGrid,
|
|
124
|
+
N as summaryNum,
|
|
125
|
+
V as summaryRow,
|
|
126
|
+
I as summaryRowInView,
|
|
127
|
+
x as summaryRowSelected,
|
|
128
|
+
W as summaryTime,
|
|
129
|
+
q as summaryTop,
|
|
130
|
+
t as toolbar,
|
|
101
131
|
m as toolbarMeta,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
132
|
+
r as toolbarText,
|
|
133
|
+
s as toolbarTitle,
|
|
134
|
+
eo as tooltip,
|
|
135
|
+
io as tooltipDim,
|
|
136
|
+
uo as tooltipLine,
|
|
137
|
+
lo as tooltipMono,
|
|
138
|
+
no as tooltipTitle,
|
|
139
|
+
a as zoomBtn,
|
|
140
|
+
e as zoomPct
|
|
111
141
|
};
|
|
@@ -28,12 +28,32 @@ export declare function TimelineSegmented<T extends string>({ value, options, on
|
|
|
28
28
|
}[];
|
|
29
29
|
onChange: (v: T) => void;
|
|
30
30
|
}): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
/**
|
|
32
|
+
* Draggable vertical divider between a docked panel and the timeline card —
|
|
33
|
+
* the visible separation is the grab area. Reports the panel's next width
|
|
34
|
+
* while dragged; arrow keys nudge it when focused. `panel` names which side
|
|
35
|
+
* of the divider the panel being resized sits on.
|
|
36
|
+
*/
|
|
37
|
+
export declare function TimelineResizer({ panel, width, min, max, onResize, label, className, }: {
|
|
38
|
+
panel: 'left' | 'right';
|
|
39
|
+
width: number;
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
onResize: (w: number) => void;
|
|
43
|
+
label: string;
|
|
44
|
+
className?: string;
|
|
45
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
31
46
|
/**
|
|
32
47
|
* Where the summary panel sits: docked beside the timeline (`'left'` /
|
|
33
|
-
* `'right'`), as a full-width block (`'top'` / `'bottom'`),
|
|
34
|
-
* a draggable palette over the timeline (grab it by its header)
|
|
48
|
+
* `'right'`), as a full-width block (`'top'` / `'bottom'`), `'floating'` —
|
|
49
|
+
* a draggable palette over the timeline (grab it by its header) — or
|
|
50
|
+
* `'bubble'` — a collapsed pill anchored bottom-left of the timeline that
|
|
51
|
+
* expands into a draggable panel in place and never permanently occupies
|
|
52
|
+
* canvas width. The expanded bubble panel can also be docked from its header:
|
|
53
|
+
* it becomes a full-height column left of the timeline card, and the card
|
|
54
|
+
* shrinks to make room (nothing is overlaid).
|
|
35
55
|
*/
|
|
36
|
-
export type TimelineSummaryPlacement = 'left' | 'right' | 'top' | 'bottom' | 'floating';
|
|
56
|
+
export type TimelineSummaryPlacement = 'left' | 'right' | 'top' | 'bottom' | 'floating' | 'bubble';
|
|
37
57
|
/** One dense row of the summary panel. */
|
|
38
58
|
export interface TimelineSummaryItem {
|
|
39
59
|
id: string;
|
|
@@ -54,14 +74,25 @@ export interface TimelineSummaryItem {
|
|
|
54
74
|
* the timeline is panned the panel auto-scrolls to keep the band centered
|
|
55
75
|
* (suppressed while the pointer is over the panel so it can be scrolled
|
|
56
76
|
* independently). Clicking a row asks the timeline to scroll to that event.
|
|
77
|
+
*
|
|
78
|
+
* The `'bubble'` placement collapses the panel into a small pill anchored
|
|
79
|
+
* bottom-left of the timeline; clicking it expands the panel in place
|
|
80
|
+
* (draggable by its header), and collapsing always returns the bubble to its
|
|
81
|
+
* home corner — the dragged position is deliberately not persisted. The
|
|
82
|
+
* expanded panel's header offers dock/undock: docked, the panel becomes a
|
|
83
|
+
* full-height column beside the timeline card — the card shrinks to make
|
|
84
|
+
* room, so sticky labels stay visible — and stops being draggable;
|
|
85
|
+
* dockedness (unlike the drag offset) survives collapse and re-expand.
|
|
57
86
|
*/
|
|
58
|
-
export declare function TimelineSummary({ heading, items, onPick, placement, floatingDefaultPosition, className, }: {
|
|
87
|
+
export declare function TimelineSummary({ heading, items, onPick, placement, floatingDefaultPosition, bubbleGlyphColors, className, }: {
|
|
59
88
|
heading?: ReactNode;
|
|
60
89
|
items: TimelineSummaryItem[];
|
|
61
90
|
onPick: (id: string) => void;
|
|
62
91
|
placement?: TimelineSummaryPlacement;
|
|
63
92
|
/** Floating placement: initial offset from the anchored top-left corner. */
|
|
64
93
|
floatingDefaultPosition?: DraggablePosition;
|
|
94
|
+
/** Bubble placement: colors of the stacked strokes in the collapsed glyph. */
|
|
95
|
+
bubbleGlyphColors?: string[];
|
|
65
96
|
className?: string;
|
|
66
97
|
}): import("react/jsx-runtime").JSX.Element;
|
|
67
98
|
/** Fixed dark tooltip; positioned by the caller, opacity-only fade. */
|