@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.
@@ -1,111 +1,141 @@
1
- const t = "crk-root-z0SDl", o = "crk-toolbar-bi8on", s = "crk-toolbarText-FsDXp", r = "crk-toolbarTitle-Rb9N0", m = "crk-toolbarMeta-E06cE", c = "crk-controls-8bff6", n = "crk-zoomBtn-NhfsT", a = "crk-zoomPct-l6Kb7", e = "crk-fitBtn-7CPVN", i = "crk-fitBtnActive-VGm-i", l = "crk-controlsHint-9W3ak", u = "crk-searchInput-1KGtO", y = "crk-segmented-ewtNI", k = "crk-segmentedBtn-8jCDo", d = "crk-segmentedBtnActive-fFz-u", p = "crk-legend-ba0us", g = "crk-legendItem-WV0US", b = "crk-legendDot-t2YBC", B = "crk-layout-odptV", w = "crk-main-3O04o", D = "crk-card-HLtsS", C = "crk-scroller-fLmrw", L = "crk-footnote-5H-AC", R = "crk-aside-xGL6z", T = "crk-asideClose-xWoXo", f = "crk-asideSection-ArSn1", H = "crk-asideRaw-233n9", z = "crk-summary-S5D5Y", S = "crk-summaryHeader-KiURn", G = "crk-summaryCount-Hgt1x", A = "crk-summaryList-KHyfB", I = "crk-summaryRow-9AC-c", V = "crk-summaryRowInView-Vap6M", F = "crk-summaryRowSelected-WTZUP", P = "crk-summaryNum-i8PC3", x = "crk-summaryDot-AcsLd", N = "crk-summaryLabel-DR8G2", h = "crk-summaryTime-mzS5x", v = "crk-summaryHorizontal--wsta", M = "crk-summaryTop-sLyWG", E = "crk-summaryBottom-OV6RP", W = "crk-summaryListGrid-POwB0", K = "crk-summaryFloating-6Yac4", O = "crk-summaryFloatingCard-6A5Ic", Y = "crk-summaryHandle--chiD", U = "crk-summaryGrip-qVC6v", X = "crk-tooltip-ot-iF", q = "crk-tooltipTitle-CxGBY", Z = "crk-tooltipLine-bqSen", j = "crk-tooltipMono-mbJwE", J = "crk-tooltipDim-hEEP-", Q = "crk-mark-XZVFm", _ = "crk-pulseDot-usPRN", $ = {
2
- root: t,
3
- toolbar: o,
4
- toolbarText: s,
5
- toolbarTitle: r,
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: n,
9
- zoomPct: a,
10
- fitBtn: e,
11
- fitBtnActive: i,
8
+ zoomBtn: a,
9
+ zoomPct: e,
10
+ fitBtn: n,
11
+ fitBtnActive: u,
12
12
  controlsHint: l,
13
- searchInput: u,
13
+ searchInput: i,
14
14
  segmented: y,
15
15
  segmentedBtn: k,
16
16
  segmentedBtnActive: d,
17
- legend: p,
18
- legendItem: g,
19
- legendDot: b,
20
- layout: B,
21
- main: w,
22
- card: D,
23
- scroller: C,
24
- footnote: L,
25
- aside: R,
26
- asideClose: T,
27
- asideSection: f,
28
- asideRaw: H,
29
- summary: z,
30
- summaryHeader: S,
31
- summaryCount: G,
32
- summaryList: A,
33
- summaryRow: I,
34
- summaryRowInView: V,
35
- summaryRowSelected: F,
36
- summaryNum: P,
37
- summaryDot: x,
38
- summaryLabel: N,
39
- summaryTime: h,
40
- summaryHorizontal: v,
41
- summaryTop: M,
42
- summaryBottom: E,
43
- summaryListGrid: W,
44
- summaryFloating: K,
45
- summaryFloatingCard: O,
46
- summaryHandle: Y,
47
- summaryGrip: U,
48
- tooltip: X,
49
- tooltipTitle: q,
50
- tooltipLine: Z,
51
- tooltipMono: j,
52
- tooltipDim: J,
53
- mark: Q,
54
- pulseDot: _
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
- R as aside,
58
- T as asideClose,
59
- H as asideRaw,
60
- f as asideSection,
61
- D as card,
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
- $ as default,
65
- e as fitBtn,
66
- i as fitBtnActive,
67
- L as footnote,
68
- B as layout,
69
- p as legend,
70
- b as legendDot,
71
- g as legendItem,
72
- w as main,
73
- Q as mark,
74
- _ as pulseDot,
75
- t as root,
76
- C as scroller,
77
- u as searchInput,
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
- z as summary,
82
- E as summaryBottom,
83
- G as summaryCount,
84
- x as summaryDot,
85
- K as summaryFloating,
86
- O as summaryFloatingCard,
87
- U as summaryGrip,
88
- Y as summaryHandle,
89
- S as summaryHeader,
90
- v as summaryHorizontal,
91
- N as summaryLabel,
92
- A as summaryList,
93
- W as summaryListGrid,
94
- P as summaryNum,
95
- I as summaryRow,
96
- V as summaryRowInView,
97
- F as summaryRowSelected,
98
- h as summaryTime,
99
- M as summaryTop,
100
- o as toolbar,
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
- s as toolbarText,
103
- r as toolbarTitle,
104
- X as tooltip,
105
- J as tooltipDim,
106
- Z as tooltipLine,
107
- j as tooltipMono,
108
- q as tooltipTitle,
109
- n as zoomBtn,
110
- a as zoomPct
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'`), or `'floating'` —
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. */