@kud/ink-ui 0.20.0 → 0.20.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -655,10 +655,10 @@ var ScrollView = ({
655
655
  ] });
656
656
  };
657
657
  var GAP = 2;
658
- var SLIDE_STEPS = 6;
659
- var SLIDE_MS = 25;
658
+ var SLIDE_STEPS = 12;
659
+ var SLIDE_MS = 28;
660
660
  var between = (from, to, t) => {
661
- const ease = 1 - Math.pow(1 - t, 3);
661
+ const ease = t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
662
662
  const lerp = (a, b) => Math.round(a + (b - a) * ease);
663
663
  const left = lerp(from.start, to.start);
664
664
  const right = lerp(from.start + from.width, to.start + to.width);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/ink-ui",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "React component library for Ink CLIs",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",