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.
@@ -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, aZ as A, U as I } from "./client-CGjHCx8F.js";
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 J = j, q = {
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, p = typeof t.damping == "number" && Number.isFinite(t.damping) && t.damping >= 0 ? t.damping : 26, _ = typeof t.mass == "number" && Number.isFinite(t.mass) && t.mass > 0 ? t.mass : 1;
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) - p * d;
200
- if (d += S / _ * w, o += d * w, !Number.isFinite(o) || !Number.isFinite(d)) {
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 p = Math.min((g - l) / s, 1);
220
- this.value = B(r, n, u(p)), p < 1 ? a.set(this, requestAnimationFrame(m)) : (a.delete(this), (_ = t.onComplete) == null || _.call(t));
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 K(e = {}) {
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 Q = H;
249
- function X(e) {
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
- K as a,
260
- Q as b,
261
- J as c,
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
- X as w
265
+ Y as w
266
266
  };