@sakaniui/react 0.8.1 → 0.8.2
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/dist/blocks.cjs +1 -1
- package/dist/blocks.mjs +3 -3
- package/package.json +1 -1
package/dist/blocks.mjs
CHANGED
|
@@ -3041,7 +3041,7 @@ function Lr({ enabled: e, onMove: t }) {
|
|
|
3041
3041
|
r.forEach(({ el: e, dx: t, dy: n }) => {
|
|
3042
3042
|
(t || n) && (e.style.transform = `translate(${t}px, ${n}px)`);
|
|
3043
3043
|
}), t.offsetHeight, r.forEach(({ el: e, dx: t, dy: n }) => {
|
|
3044
|
-
!t && !n || (e.style.transition = "transform 240ms cubic-bezier(0.
|
|
3044
|
+
!t && !n || (e.style.transition = "transform 240ms cubic-bezier(0.25, 1, 0.5, 1)", e.style.transform = "");
|
|
3045
3045
|
});
|
|
3046
3046
|
});
|
|
3047
3047
|
let m = (e, t) => {
|
|
@@ -3073,7 +3073,7 @@ function Lr({ enabled: e, onMove: t }) {
|
|
|
3073
3073
|
let l = Ir(), d = r.getBoundingClientRect();
|
|
3074
3074
|
if (t.settling) {
|
|
3075
3075
|
let e = l ? 1 : .22;
|
|
3076
|
-
if (t.x += (t.settling.x - t.x) * e, t.y += (t.settling.y - t.y) * e, t.rotV = t.rotV * .
|
|
3076
|
+
if (t.x += (t.settling.x - t.x) * e, t.y += (t.settling.y - t.y) * e, t.rotV = t.rotV * .4 + (0 - t.rot) * .2, t.rot = l ? 0 : t.rot + t.rotV, t.scale += (1 - t.scale) * (l ? 1 : .25), Math.abs(t.settling.x - t.x) < .5 && Math.abs(t.settling.y - t.y) < .5 && Math.abs(t.rot) < .2) {
|
|
3077
3077
|
let e = t.settling.done;
|
|
3078
3078
|
t.settling = null, t.raf = 0, e();
|
|
3079
3079
|
return;
|
|
@@ -3082,7 +3082,7 @@ function Lr({ enabled: e, onMove: t }) {
|
|
|
3082
3082
|
let n = Math.max(1, e - t.lastT), r = (t.px - t.lastPx) / n * 16;
|
|
3083
3083
|
t.vx = t.vx * .6 + r * .4, t.lastPx = t.px, t.lastT = e, t.x = t.px - t.grabX, t.y = t.py - t.grabY;
|
|
3084
3084
|
let i = l ? 0 : Math.max(-9, Math.min(Nr, t.vx * .9));
|
|
3085
|
-
t.rotV = t.rotV * .
|
|
3085
|
+
t.rotV = t.rotV * .45 + (i - t.rot) * .18, t.rot = l ? 0 : t.rot + t.rotV, t.scale += (Pr - t.scale) * (l ? 1 : .3);
|
|
3086
3086
|
let o = s.current;
|
|
3087
3087
|
if (o) {
|
|
3088
3088
|
let e = o.getBoundingClientRect();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sakaniui/react",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Sakani Design System — token-driven React components and blocks with light & dark modes, plus built-in glass and Apple-style liquid glass surfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|