@mt-gloss/ui 0.0.17 → 0.0.19

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.
@@ -3,6 +3,14 @@ export interface EdgeHoverHandleProps {
3
3
  state: ResizeState;
4
4
  onPointerDown: (e: React.PointerEvent) => void;
5
5
  onPointerUp: (e: React.PointerEvent) => void;
6
+ /**
7
+ * Bug E (260417-drag-resize-5th-attempt) — handle's own pointerenter/leave
8
+ * keeps the edge-hover zone alive when pointer crosses from sentinel to
9
+ * handle (they're siblings, so sentinel.pointerleave would otherwise collapse
10
+ * state to idle, hiding the handle mid-gesture).
11
+ */
12
+ onPointerEnter?: () => void;
13
+ onPointerLeave?: (e: React.PointerEvent) => void;
6
14
  /** Which card edge the handle is positioned on. Default: 'right' */
7
15
  edge?: 'right' | 'left';
8
16
  ariaLabel?: string;
@@ -16,6 +16,15 @@ export interface StackedGroupCardProps {
16
16
  onPinTimeframe?: (timeframe: string) => void;
17
17
  /** When true, value cells blur and sparkline animates to flat during data refresh. */
18
18
  isStale?: boolean;
19
+ /**
20
+ * Phase 10 NY-05 width-drives-capacity matrix (quick-260417-2na §3):
21
+ * 1col → 1 cell, 2col → 3 cells, 3col → 5 cells
22
+ * When provided, overrides the ResizeObserver-measured capacity from
23
+ * `useSlotCapacity`. Visible cells are always clamped to available data
24
+ * (cells.length) so 3col stacks with 3 timeframes still render 3 cells.
25
+ * Default: undefined (fall back to measured capacity; backward compatible).
26
+ */
27
+ colSpan?: 1 | 2 | 3;
19
28
  }
20
29
  /**
21
30
  * StackedGroupCard -- Renders 3 mini metric values horizontally within a 2-col card.
@@ -38,6 +47,6 @@ export interface StackedGroupCardProps {
38
47
  * ```
39
48
  */
40
49
  export declare const StackedGroupCard: {
41
- ({ title, prefix, suffix, values, timeframes, sparklineData, accentColor, pinnedTimeframe, onPinTimeframe, isStale, }: StackedGroupCardProps): import("react/jsx-runtime").JSX.Element;
50
+ ({ title, prefix, suffix, values, timeframes, sparklineData, accentColor, pinnedTimeframe, onPinTimeframe, isStale, colSpan, }: StackedGroupCardProps): import("react/jsx-runtime").JSX.Element;
42
51
  displayName: string;
43
52
  };
@@ -25,9 +25,20 @@ export interface UseEdgeHoverResizeReturn {
25
25
  handleProps: {
26
26
  onPointerDown: (e: React.PointerEvent) => void;
27
27
  onPointerUp: (e: React.PointerEvent) => void;
28
+ onPointerEnter: () => void;
29
+ onPointerLeave: () => void;
28
30
  };
31
+ /**
32
+ * quick-260417-2na §2a — Live preview during drag.
33
+ * While `state === 'dragging'`, reflects the colSpan the user would commit
34
+ * if they released the pointer at the current position. Resets to
35
+ * `currentColSpan` on transition out of 'dragging'. Always clamped to 1..3.
36
+ */
37
+ previewColSpan: 1 | 2 | 3;
29
38
  ghostProps: {
30
39
  visible: boolean;
40
+ /** Same value as `previewColSpan`; exposed here for `<GhostPreview targetColSpan>` plumbing. */
41
+ targetColSpan: 1 | 2 | 3;
31
42
  enterMs: number;
32
43
  exitMs: number;
33
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mt-gloss/ui",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "restricted"