fiboui 2.7.0 → 2.7.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.
- package/dist/{client-CGjHCx8F.js → client-Bydlscpe.js} +1713 -1637
- package/dist/content.js +3 -3
- package/dist/core.js +2 -2
- package/dist/{icons-GEqYd2M9.js → icons-B9HMYLtE.js} +9 -9
- package/dist/{index-Db8lVjta.js → index-B7eVMy2M.js} +1 -1
- package/dist/index-C9I92HPE.js +140 -0
- package/dist/{index-7bieEGAP.js → index-CXQSA8WJ.js} +21 -21
- package/dist/{index-C4qvvr03.js → index-D4JzwKSP.js} +17 -17
- package/dist/{index-D-ljLuf8.js → index-DBeyafKI.js} +1 -1
- package/dist/index.js +10 -10
- package/dist/interactive.js +2 -2
- package/dist/layout.js +3 -3
- package/dist/{metadata-3YYH1uiS.js → metadata-BbFwNwNa.js} +11 -11
- package/dist/navigation.js +2 -2
- package/dist/{page-CYqQOLXe.js → page-BJoj7vSk.js} +15 -15
- package/dist/server.js +774 -781
- package/dist/structure.js +2 -2
- package/dist/theme.js +1 -1
- package/package.json +1 -1
- package/dist/index-DVApKYWt.js +0 -217
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var O = Object.defineProperty;
|
|
2
2
|
var k = (e, t, r) => t in e ? O(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var h = (e, t, r) => k(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { S as v, c as E, i as $, H as L,
|
|
4
|
+
import { S as v, c as E, i as $, H as L, a_ as A, U as I } from "./client-Bydlscpe.js";
|
|
5
5
|
import c from "react";
|
|
6
6
|
function U() {
|
|
7
7
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `lst_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}`;
|
|
@@ -161,7 +161,7 @@ class T extends v {
|
|
|
161
161
|
function j(e = []) {
|
|
162
162
|
return new T(e);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const K = j, q = {
|
|
165
165
|
linear: (e) => e,
|
|
166
166
|
easeIn: (e) => e * e,
|
|
167
167
|
easeOut: (e) => e * (2 - e),
|
|
@@ -192,12 +192,12 @@ v.prototype.animate = function(e, t = {}) {
|
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
194
|
if (t.curve === "spring") {
|
|
195
|
-
const g = typeof t.stiffness == "number" && Number.isFinite(t.stiffness) && t.stiffness > 0 ? t.stiffness : 170,
|
|
195
|
+
const g = typeof t.stiffness == "number" && Number.isFinite(t.stiffness) && t.stiffness > 0 ? t.stiffness : 170, _ = typeof t.damping == "number" && Number.isFinite(t.damping) && t.damping >= 0 ? t.damping : 26, p = typeof t.mass == "number" && Number.isFinite(t.mass) && t.mass > 0 ? t.mass : 1;
|
|
196
196
|
let o = r, d = typeof t.velocity == "number" && Number.isFinite(t.velocity) ? t.velocity : 0;
|
|
197
197
|
const w = 1 / 60, M = () => {
|
|
198
198
|
var x, C;
|
|
199
|
-
const S = -g * (o - n) -
|
|
200
|
-
if (d += S /
|
|
199
|
+
const S = -g * (o - n) - _ * d;
|
|
200
|
+
if (d += S / p * w, o += d * w, !Number.isFinite(o) || !Number.isFinite(d)) {
|
|
201
201
|
this.value = n, a.delete(this), (x = t.onComplete) == null || x.call(t);
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
@@ -214,17 +214,17 @@ v.prototype.animate = function(e, t = {}) {
|
|
|
214
214
|
const u = q[t.curve || "easeOut"] ?? q.easeOut;
|
|
215
215
|
let l = null;
|
|
216
216
|
const m = (g) => {
|
|
217
|
-
var
|
|
217
|
+
var p;
|
|
218
218
|
l || (l = g);
|
|
219
|
-
const
|
|
220
|
-
this.value = B(r, n, u(
|
|
219
|
+
const _ = Math.min((g - l) / s, 1);
|
|
220
|
+
this.value = B(r, n, u(_)), _ < 1 ? a.set(this, requestAnimationFrame(m)) : (a.delete(this), (p = t.onComplete) == null || p.call(t));
|
|
221
221
|
};
|
|
222
222
|
a.set(this, requestAnimationFrame(m));
|
|
223
223
|
};
|
|
224
224
|
v.prototype.snapTo = function(e, t = {}) {
|
|
225
225
|
this.animate(e, { duration: 300, curve: "easeOut", ...t });
|
|
226
226
|
};
|
|
227
|
-
function
|
|
227
|
+
function Q(e = {}) {
|
|
228
228
|
return L(e.curve ?? "easeOut", {
|
|
229
229
|
stiffness: e.stiffness,
|
|
230
230
|
damping: e.damping,
|
|
@@ -245,8 +245,8 @@ function H(e, t = {}) {
|
|
|
245
245
|
}
|
|
246
246
|
return i.displayName = "FiboPage", n && (i.meta = n), i;
|
|
247
247
|
}
|
|
248
|
-
const
|
|
249
|
-
function
|
|
248
|
+
const X = H;
|
|
249
|
+
function Y(e) {
|
|
250
250
|
return c.createElement(
|
|
251
251
|
c.Fragment,
|
|
252
252
|
null,
|
|
@@ -256,11 +256,11 @@ function X(e) {
|
|
|
256
256
|
}
|
|
257
257
|
export {
|
|
258
258
|
T as L,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
Q as a,
|
|
260
|
+
X as b,
|
|
261
|
+
K as c,
|
|
262
262
|
f as e,
|
|
263
263
|
j as l,
|
|
264
264
|
H as p,
|
|
265
|
-
|
|
265
|
+
Y as w
|
|
266
266
|
};
|