@kolkrabbi/kol-component 0.125.0 → 0.126.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-component",
3
- "version": "0.125.0",
3
+ "version": "0.126.0",
4
4
  "description": "KOL design-system components — atoms through organisms, emitting canonical kol-* classes. Pairs with @kolkrabbi/kol-theme for styling.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -46,20 +46,32 @@ export const SPRING = {
46
46
  * near / sleep the pill wakes within 20px of the line and sleeps only past
47
47
  * 40 — hovering the line itself flapped the class every frame
48
48
  * and restarted the fade, so the hysteresis is not optional
49
- * marks it rests on 20/40/60/80 % of the rail's height and is STICKY:
50
- * it leaves a mark only within `stick` of the pitch to another
51
- * (user: "following the mouse a little too much"). The middle
52
- * of each gap is dead on purpose
53
- * travel a long chase, so the pill trails the pointer and catches up
49
+ * stick DWELL, not a grid (user ruling 2026-08-28: "I don't like the
50
+ * snapping of the grabber, it's too far let's make it come to
51
+ * the cursor but have some sticky time where it lands, so it's
52
+ * not constantly jerking"). The pill targets the pointer's own
53
+ * position on the line and re-targets only once the pointer is
54
+ * `stick` px away: it lands ON you, holds while you move inside
55
+ * the radius, then travels to where you are now.
56
+ *
57
+ * It was four marks at 20/40/60/80 % of the edge until this
58
+ * ruling — on a ~900px rail that is ~180px apart, so every
59
+ * re-target was a long throw to a point the pointer was not at,
60
+ * and the dwell read as the pill refusing to come to you and
61
+ * then lurching. The earlier "snap to something so it has
62
+ * somewhere to stick to" is served by dwell; the grid was the
63
+ * wrong model for it.
64
+ * travel the chase. 1.1s, down from 2.8 with the grid: the throw now
65
+ * covers a fraction of the distance, and a long tween over a
66
+ * short throw reads as lag rather than weight
54
67
  * snap the width tween on release
55
68
  * slop under this, a pointerdown/up is a CLICK, not a drag
56
69
  */
57
70
  export const GRAB = {
58
71
  near: 20,
59
72
  sleep: 40,
60
- marks: [0.2, 0.4, 0.6, 0.8],
61
- stick: 0.2 * 0.3,
62
- travel: { duration: 2.8, ease: EASE.outGsap },
73
+ stick: 90,
74
+ travel: { duration: 1.1, ease: EASE.outGsap },
63
75
  snap: { duration: 0.5, ease: EASE.outGsap },
64
76
  slop: 3,
65
77
  }