@overdoser/react-toolkit 0.11.0 → 0.13.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,11 +1,11 @@
1
- const o = "crk-root-z0SDl", t = "crk-toolbar-bi8on", m = "crk-toolbarText-FsDXp", s = "crk-toolbarTitle-Rb9N0", r = "crk-toolbarMeta-E06cE", a = "crk-controls-8bff6", c = "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", B = "crk-legendItem-WV0US", p = "crk-legendDot-t2YBC", g = "crk-layout-odptV", C = "crk-main-3O04o", T = "crk-card-HLtsS", w = "crk-scroller-fLmrw", D = "crk-footnote-5H-AC", H = "crk-aside-xGL6z", L = "crk-asideClose-xWoXo", R = "crk-asideSection-ArSn1", f = "crk-asideRaw-233n9", G = "crk-summary-S5D5Y", A = "crk-summaryHeader-KiURn", h = "crk-summaryCount-Hgt1x", F = "crk-summaryList-KHyfB", S = "crk-summaryRow-9AC-c", z = "crk-summaryRowInView-Vap6M", P = "crk-summaryRowSelected-WTZUP", V = "crk-summaryNum-i8PC3", I = "crk-summaryDot-AcsLd", x = "crk-summaryLabel-DR8G2", M = "crk-summaryTime-mzS5x", N = "crk-summaryHorizontal--wsta", v = "crk-summaryTop-sLyWG", E = "crk-summaryBottom-OV6RP", W = "crk-summaryListGrid-POwB0", O = "crk-summaryBubbleAnchor-VJ9XE", X = "crk-summaryBubble-bovnu", K = "crk-summaryBubbleGlyph-qmhBS", U = "crk-summaryBubblePanel-MFOE4", Y = "crk-summaryBubbleCard-G0AMd", q = "crk-summaryHeadTools-oU-0D", J = "crk-summaryCollapse-JNDjo", j = "crk-summaryFootnote-oTXbW", Z = "crk-summaryFloating-6Yac4", Q = "crk-summaryFloatingCard-6A5Ic", _ = "crk-summaryHandle--chiD", $ = "crk-summaryGrip-qVC6v", oo = "crk-tooltip-ot-iF", to = "crk-tooltipTitle-CxGBY", mo = "crk-tooltipLine-bqSen", so = "crk-tooltipMono-mbJwE", ro = "crk-tooltipDim-hEEP-", ao = "crk-mark-XZVFm", co = "crk-pulseDot-usPRN", eo = {
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
2
  root: o,
3
3
  toolbar: t,
4
- toolbarText: m,
4
+ toolbarText: r,
5
5
  toolbarTitle: s,
6
- toolbarMeta: r,
7
- controls: a,
8
- zoomBtn: c,
6
+ toolbarMeta: m,
7
+ controls: c,
8
+ zoomBtn: a,
9
9
  zoomPct: e,
10
10
  fitBtn: n,
11
11
  fitBtnActive: u,
@@ -15,113 +15,127 @@ const o = "crk-root-z0SDl", t = "crk-toolbar-bi8on", m = "crk-toolbarText-FsDXp"
15
15
  segmentedBtn: k,
16
16
  segmentedBtnActive: d,
17
17
  legend: b,
18
- legendItem: B,
19
- legendDot: p,
20
- layout: g,
21
- main: C,
22
- card: T,
23
- scroller: w,
24
- footnote: D,
25
- aside: H,
26
- asideClose: L,
27
- asideSection: R,
28
- asideRaw: f,
29
- summary: G,
30
- summaryHeader: A,
31
- summaryCount: h,
32
- summaryList: F,
33
- summaryRow: S,
34
- summaryRowInView: z,
35
- summaryRowSelected: P,
36
- summaryNum: V,
37
- summaryDot: I,
38
- summaryLabel: x,
39
- summaryTime: M,
40
- summaryHorizontal: N,
41
- summaryTop: v,
42
- summaryBottom: E,
43
- summaryListGrid: W,
44
- summaryBubbleAnchor: O,
45
- summaryBubble: X,
46
- summaryBubbleGlyph: K,
47
- summaryBubblePanel: U,
48
- summaryBubbleCard: Y,
49
- summaryHeadTools: q,
50
- summaryCollapse: J,
51
- summaryFootnote: j,
52
- summaryFloating: Z,
53
- summaryFloatingCard: Q,
54
- summaryHandle: _,
55
- summaryGrip: $,
56
- tooltip: oo,
57
- tooltipTitle: to,
58
- tooltipLine: mo,
59
- tooltipMono: so,
60
- tooltipDim: ro,
61
- mark: ao,
62
- pulseDot: co
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
63
70
  };
64
71
  export {
65
- H as aside,
66
- L as asideClose,
67
- f as asideRaw,
68
- R as asideSection,
69
- T as card,
70
- a as controls,
72
+ f as aside,
73
+ G as asideClose,
74
+ S as asideRaw,
75
+ L as asideSection,
76
+ R as card,
77
+ C as cardWrap,
78
+ c as controls,
71
79
  l as controlsHint,
72
- eo as default,
80
+ bo as default,
81
+ T as dockResizer,
82
+ w as dockResizerActive,
73
83
  n as fitBtn,
74
84
  u as fitBtnActive,
75
- D as footnote,
76
- g as layout,
85
+ A as footnote,
86
+ D as layout,
77
87
  b as legend,
78
- p as legendDot,
79
- B as legendItem,
80
- C as main,
81
- ao as mark,
82
- co as pulseDot,
88
+ B as legendDot,
89
+ p as legendItem,
90
+ g as main,
91
+ yo as mark,
92
+ ko as pulseDot,
83
93
  o as root,
84
- w as scroller,
94
+ H as scroller,
85
95
  i as searchInput,
86
96
  y as segmented,
87
97
  k as segmentedBtn,
88
98
  d as segmentedBtnActive,
89
- G as summary,
90
- E as summaryBottom,
91
- X as summaryBubble,
92
- O as summaryBubbleAnchor,
93
- Y as summaryBubbleCard,
94
- K as summaryBubbleGlyph,
95
- U as summaryBubblePanel,
96
- J as summaryCollapse,
97
- h as summaryCount,
98
- I as summaryDot,
99
- Z as summaryFloating,
100
- Q as summaryFloatingCard,
101
- j as summaryFootnote,
102
- $ as summaryGrip,
103
- _ as summaryHandle,
104
- q as summaryHeadTools,
105
- A as summaryHeader,
106
- N as summaryHorizontal,
107
- x as summaryLabel,
108
- F as summaryList,
109
- W as summaryListGrid,
110
- V as summaryNum,
111
- S as summaryRow,
112
- z as summaryRowInView,
113
- P as summaryRowSelected,
114
- M as summaryTime,
115
- v as summaryTop,
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,
116
130
  t as toolbar,
117
- r as toolbarMeta,
118
- m as toolbarText,
131
+ m as toolbarMeta,
132
+ r as toolbarText,
119
133
  s as toolbarTitle,
120
- oo as tooltip,
121
- ro as tooltipDim,
122
- mo as tooltipLine,
123
- so as tooltipMono,
124
- to as tooltipTitle,
125
- c as zoomBtn,
134
+ eo as tooltip,
135
+ io as tooltipDim,
136
+ uo as tooltipLine,
137
+ lo as tooltipMono,
138
+ no as tooltipTitle,
139
+ a as zoomBtn,
126
140
  e as zoomPct
127
141
  };
@@ -28,13 +28,30 @@ 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
48
  * `'right'`), as a full-width block (`'top'` / `'bottom'`), `'floating'` —
34
49
  * a draggable palette over the timeline (grab it by its header) — or
35
50
  * `'bubble'` — a collapsed pill anchored bottom-left of the timeline that
36
51
  * expands into a draggable panel in place and never permanently occupies
37
- * canvas width.
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).
38
55
  */
39
56
  export type TimelineSummaryPlacement = 'left' | 'right' | 'top' | 'bottom' | 'floating' | 'bubble';
40
57
  /** One dense row of the summary panel. */
@@ -61,7 +78,11 @@ export interface TimelineSummaryItem {
61
78
  * The `'bubble'` placement collapses the panel into a small pill anchored
62
79
  * bottom-left of the timeline; clicking it expands the panel in place
63
80
  * (draggable by its header), and collapsing always returns the bubble to its
64
- * home corner — the dragged position is deliberately not persisted.
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.
65
86
  */
66
87
  export declare function TimelineSummary({ heading, items, onPick, placement, floatingDefaultPosition, bubbleGlyphColors, className, }: {
67
88
  heading?: ReactNode;