@kolkrabbi/kol-component 0.125.0 → 0.127.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.127.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,43 @@ 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
+ * range the pill's travel band, BIPOLAR FROM THE MIDDLE (user ruling
65
+ * 2026-08-28: "can we make sure the grab somehow doesn't go up
66
+ * so high? maybe we limit/choke range to bipolar from middle
67
+ * 85% of 100"). 0.85 = the middle 85 % of the edge, so it is
68
+ * held 7.5 % clear of each end — on a 900px rail, y 67 to 833.
69
+ * Unclamped it tracked the pointer to within the CSS `clamp()`'s
70
+ * 36px of the top, which put it beside the logomark and the
71
+ * first rung. The band is a fraction, not px, so it scales with
72
+ * the viewport instead of pinning a gap that reads differently
73
+ * on a laptop and a 27".
74
+ * travel the chase. 1.1s, down from 2.8 with the grid: the throw now
75
+ * covers a fraction of the distance, and a long tween over a
76
+ * short throw reads as lag rather than weight
54
77
  * snap the width tween on release
55
78
  * slop under this, a pointerdown/up is a CLICK, not a drag
56
79
  */
57
80
  export const GRAB = {
58
81
  near: 20,
59
82
  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 },
83
+ stick: 90,
84
+ range: 0.85,
85
+ travel: { duration: 1.1, ease: EASE.outGsap },
63
86
  snap: { duration: 0.5, ease: EASE.outGsap },
64
87
  slop: 3,
65
88
  }