@mt-gloss/ui 0.1.33 → 0.1.35
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.
|
@@ -18,20 +18,11 @@ export interface SnapOutlineProps {
|
|
|
18
18
|
*
|
|
19
19
|
* Renders a `position: absolute` 2px solid border rectangle, translated to the
|
|
20
20
|
* target cell via `translate({left}px, {top}px)` where:
|
|
21
|
-
* - `
|
|
22
|
-
* - `
|
|
23
|
-
* - `top = cell.row * (rowHeight + gap)`
|
|
21
|
+
* - `left = cell.col * (colWidth + gap)`
|
|
22
|
+
* - `top = cell.row * (rowHeight + gap)`
|
|
24
23
|
* - `width = colSpan * colWidth + (colSpan - 1) * gap`
|
|
25
24
|
* - `height = rowHeight`
|
|
26
25
|
*
|
|
27
|
-
* COORDINATE CONTRACT: `cell.col` is SECTION-RELATIVE (0..2). The absolute grid
|
|
28
|
-
* column is computed here by adding `cell.section * 3`. Producers (useDragFeedback)
|
|
29
|
-
* emit section-relative col so predictCascade + snap outline share the same type.
|
|
30
|
-
* Prior to the `large-card-drop-positioning` debug fix (2026-04-22), this
|
|
31
|
-
* component treated `cell.col` as absolute, causing the outline to stick to
|
|
32
|
-
* section 1 regardless of cursor section — and to straddle the section boundary
|
|
33
|
-
* when a wide card hovered near the right of section 1.
|
|
34
|
-
*
|
|
35
26
|
* Transitions the transform at `${transitionMs ?? 120}ms cubic-bezier(0.4, 0, 0.2, 1)`.
|
|
36
27
|
* Under `prefers-reduced-motion: reduce`, `transition: none !important` strips
|
|
37
28
|
* the slide (SCSS-level override; see snap-outline.scss).
|
|
@@ -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: 4;
|
|
39
39
|
};
|
|
40
40
|
/** MOTION-05 — Rejection kinesthetic: ghost shiver on invalid drop. */
|
|
41
41
|
export declare const rejectionFeedback: {
|