@mt-gloss/ui 0.1.15 → 0.1.16
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/{Expandable-ByRpX7qt.js → Expandable-BJnacqDL.js} +1334 -1320
- package/catalog.js +2 -2
- package/index.js +1271 -1262
- package/lib/primitives/dashboard/EmptyCellPackAffordance/EmptyCellPackAffordance.d.ts +4 -0
- package/lib/primitives/dashboard/MetricCard/useEdgeHoverResize.d.ts +8 -2
- package/lib/primitives/dashboard/gridMotionPrimitives.d.ts +1 -1
- package/package.json +1 -1
- package/ui.css +1 -1
|
@@ -5,6 +5,10 @@ import * as React from 'react';
|
|
|
5
5
|
* Renders a small top-right button on an empty cell that, when clicked, requests
|
|
6
6
|
* right-neighbor left-shift via `onPack()`. When `enabled=false` (all cells to
|
|
7
7
|
* the right are also empty), the affordance is fully hidden (returns `null`).
|
|
8
|
+
*
|
|
9
|
+
* stopPropagation() on the button prevents the click from bubbling to the parent
|
|
10
|
+
* DropAnchorCell's onClick (which opens the MetricCatalog). Without it, clicking
|
|
11
|
+
* "×" would pack AND open the catalog simultaneously.
|
|
8
12
|
*/
|
|
9
13
|
export interface EmptyCellPackAffordanceProps {
|
|
10
14
|
/** D-19 — hide when all cells to the right are also empty. Consumer decides. */
|
|
@@ -24,8 +24,14 @@ export interface UseEdgeHoverResizeArgs {
|
|
|
24
24
|
gap?: number;
|
|
25
25
|
/** D-03 panel override; falls back to DEFAULT_RESIZE_PHYSICS. */
|
|
26
26
|
tuning?: Partial<ResizePhysicsConfig>;
|
|
27
|
-
/** Hover dwell time before handle appears. Default:
|
|
27
|
+
/** Hover dwell time before handle appears. Default: 60ms */
|
|
28
28
|
dwellMs?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Grace period (ms) after pointer leaves the edge zone before collapsing to idle.
|
|
31
|
+
* Prevents the handle from disappearing on brief mouse-off during natural mouse
|
|
32
|
+
* movement (e.g. crossing the sentinel/handle gap). Default: 150ms.
|
|
33
|
+
*/
|
|
34
|
+
graceExitMs?: number;
|
|
29
35
|
/** AN-06 enter motion duration exposed for consumer CSS. Default: 180ms */
|
|
30
36
|
enterMs?: number;
|
|
31
37
|
/** AN-06 exit motion duration exposed for consumer CSS. Default: 120ms */
|
|
@@ -135,4 +141,4 @@ export interface UseEdgeHoverResizeReturn {
|
|
|
135
141
|
* - Bug E handle pointerenter keeps zone alive on sentinel→handle crossover
|
|
136
142
|
* - Dwell timer cleanup on unmount
|
|
137
143
|
*/
|
|
138
|
-
export declare function useEdgeHoverResize({ currentColSpan, stackable, onResize, onCancel, step, gap, tuning, dwellMs, enterMs, exitMs, maxColSpan, containerRef, forceIdle, }: UseEdgeHoverResizeArgs): UseEdgeHoverResizeReturn;
|
|
144
|
+
export declare function useEdgeHoverResize({ currentColSpan, stackable, onResize, onCancel, step, gap, tuning, dwellMs, graceExitMs, enterMs, exitMs, maxColSpan, containerRef, forceIdle, }: UseEdgeHoverResizeArgs): UseEdgeHoverResizeReturn;
|
|
@@ -35,7 +35,7 @@ export declare const swingReveal: {
|
|
|
35
35
|
readonly exitDurationMs: 140;
|
|
36
36
|
readonly enterEasing: "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
37
37
|
readonly exitEasing: "cubic-bezier(0.4, 0, 1, 1)";
|
|
38
|
-
readonly translateOffsetPx:
|
|
38
|
+
readonly translateOffsetPx: 8;
|
|
39
39
|
};
|
|
40
40
|
/** MOTION-05 — Rejection kinesthetic: ghost shiver on invalid drop. */
|
|
41
41
|
export declare const rejectionFeedback: {
|