fiboui 2.4.2 → 2.4.3
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/README.md +1 -1
- package/dist/{FineGrain-D7wH1QxC.js → FineGrain-CvcJ5OxF.js} +1 -1
- package/dist/{builder-CCVmfPD1.js → builder-B5cebEWZ.js} +356 -320
- package/dist/content.js +3 -3
- package/dist/core.js +40 -39
- package/dist/{index-BK1AwJ9O.js → index-BMIo5j9Y.js} +1 -1
- package/dist/{index-CVPzf0A9.js → index-BxH8dhoT.js} +3 -2
- package/dist/{index-R-gUALvW.js → index-DGQVwcWx.js} +27 -27
- package/dist/{index-Cb05sNOU.js → index-DRVdVimz.js} +4 -4
- package/dist/{index-BVpNTDKn.js → index-DbaNIwWW.js} +2 -2
- package/dist/{index-CHXOPJU-.js → index-MeDbhMEg.js} +189 -185
- package/dist/{index-Bdphg-MS.js → index-orKQGpHl.js} +3 -3
- package/dist/index.d.ts +12 -1
- package/dist/index.js +133 -132
- package/dist/interactive.js +1 -1
- package/dist/layout.js +2 -2
- package/dist/{mount-Dx2s-imU.js → mount-DbMVakA4.js} +35 -35
- package/dist/{provider-Muljv62_.js → provider-BTNE3N5g.js} +1 -1
- package/dist/structure.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.js +2 -2
- package/dist/{themeData-CmTJt3dU.js → themeData-Dtm0M_mF.js} +80 -80
- package/package.json +1 -8
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
var q = Object.defineProperty;
|
|
3
3
|
var I = (e, t, n) => t in e ? q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var b = (e, t, n) => I(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
|
-
import h, { useCallback as R, useSyncExternalStore as
|
|
6
|
-
import { n as k, S as F,
|
|
5
|
+
import h, { useCallback as R, useSyncExternalStore as M, memo as T, useState as w, useRef as _, useEffect as v, StrictMode as L } from "react";
|
|
6
|
+
import { n as k, S as F, D as $, J as j, K as z, E as H, R as x, L as N, P as D, N as W, Q as J } from "./builder-B5cebEWZ.js";
|
|
7
7
|
import { createRoot as C } from "react-dom/client";
|
|
8
8
|
import { P as K } from "./PluginManager-D5-ApsSN.js";
|
|
9
|
-
function
|
|
9
|
+
function Q(e) {
|
|
10
10
|
return (t) => e.subscribe(t);
|
|
11
11
|
}
|
|
12
12
|
function fe(e) {
|
|
13
|
-
const t = R(
|
|
14
|
-
return
|
|
13
|
+
const t = R(Q(e), [e]);
|
|
14
|
+
return M(t, () => e.value, () => e.value);
|
|
15
15
|
}
|
|
16
16
|
function me(e) {
|
|
17
17
|
const t = R(
|
|
18
18
|
(n) => e.subscribe(n),
|
|
19
19
|
[e]
|
|
20
20
|
);
|
|
21
|
-
return
|
|
21
|
+
return M(t, () => e.getState(), () => e.getState());
|
|
22
22
|
}
|
|
23
23
|
function he(e) {
|
|
24
24
|
const t = R(
|
|
25
25
|
(n) => e.subscribe(n),
|
|
26
26
|
[e]
|
|
27
27
|
);
|
|
28
|
-
return
|
|
28
|
+
return M(t, () => e.get(), () => e.get());
|
|
29
29
|
}
|
|
30
30
|
function pe(e, t, n) {
|
|
31
31
|
if (!t || n === void 0)
|
|
@@ -38,7 +38,7 @@ function we(e, t) {
|
|
|
38
38
|
const n = T(e, t);
|
|
39
39
|
return (r) => h.createElement(n, r);
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Y = {
|
|
42
42
|
linear: (e) => e,
|
|
43
43
|
easeIn: (e) => e * e,
|
|
44
44
|
easeOut: (e) => e * (2 - e),
|
|
@@ -49,7 +49,7 @@ const G = {
|
|
|
49
49
|
bounce: (e) => e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375 : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375
|
|
50
50
|
};
|
|
51
51
|
function be(e, t) {
|
|
52
|
-
const { duration: n = 300, delay: r = 0, easing: i =
|
|
52
|
+
const { duration: n = 300, delay: r = 0, easing: i = Y.easeOut } = t || {}, [o, c] = w(e), s = _(), l = _(o);
|
|
53
53
|
return l.current = o, v(() => {
|
|
54
54
|
s.current && cancelAnimationFrame(s.current);
|
|
55
55
|
let u = null;
|
|
@@ -99,19 +99,19 @@ function ve(e, t = 300) {
|
|
|
99
99
|
}
|
|
100
100
|
}, [e, t]), { shouldRender: n, stage: i };
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ee(e, t = 50) {
|
|
103
103
|
return Array.from({ length: e }, (n, r) => r * t);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function G(e) {
|
|
106
106
|
if (typeof window > "u" || typeof window.matchMedia != "function")
|
|
107
107
|
return () => {
|
|
108
108
|
};
|
|
109
109
|
const t = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
110
110
|
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
114
|
-
|
|
112
|
+
function Me() {
|
|
113
|
+
return M(
|
|
114
|
+
G,
|
|
115
115
|
() => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches,
|
|
116
116
|
() => !1
|
|
117
117
|
);
|
|
@@ -175,11 +175,11 @@ function _e(e = {}) {
|
|
|
175
175
|
mass: e.mass
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function E(e) {
|
|
179
179
|
return !!e && typeof e == "object" && "value" in e && typeof e.subscribe == "function";
|
|
180
180
|
}
|
|
181
181
|
function X(e) {
|
|
182
|
-
return !e || typeof e != "object" ||
|
|
182
|
+
return !e || typeof e != "object" || E(e) ? !1 : Object.prototype.hasOwnProperty.call(e, "show");
|
|
183
183
|
}
|
|
184
184
|
function Z(e) {
|
|
185
185
|
if (typeof window > "u" || typeof window.matchMedia != "function")
|
|
@@ -192,22 +192,22 @@ function V() {
|
|
|
192
192
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
193
193
|
}
|
|
194
194
|
function ee() {
|
|
195
|
-
return
|
|
195
|
+
return M(Z, V, () => !1);
|
|
196
196
|
}
|
|
197
197
|
function te(e) {
|
|
198
|
-
return
|
|
198
|
+
return E(e) ? !!e.value : !!e;
|
|
199
199
|
}
|
|
200
200
|
function ne(e) {
|
|
201
201
|
const [t, n] = w(() => te(e));
|
|
202
202
|
return v(() => {
|
|
203
|
-
if (!
|
|
203
|
+
if (!E(e)) {
|
|
204
204
|
n(!!e);
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
207
|
return n(!!e.value), e.subscribe((r) => n(!!r));
|
|
208
|
-
}, [e]),
|
|
208
|
+
}, [e]), E(e) ? t : !!e;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function O({
|
|
211
211
|
show: e,
|
|
212
212
|
enter: t = "fadeIn",
|
|
213
213
|
exit: n = "fadeOut",
|
|
@@ -217,7 +217,7 @@ function B({
|
|
|
217
217
|
}) {
|
|
218
218
|
const c = ne(e), [s, l] = w(c), [u, a] = w(c ? "enter" : "idle"), d = i !== "never" && ee();
|
|
219
219
|
if (v(() => {
|
|
220
|
-
if (
|
|
220
|
+
if (j(), c) {
|
|
221
221
|
l(!0), a(d ? "idle" : "enter");
|
|
222
222
|
return;
|
|
223
223
|
}
|
|
@@ -229,7 +229,7 @@ function B({
|
|
|
229
229
|
a("exit");
|
|
230
230
|
}
|
|
231
231
|
}, [c, d]), !s) return null;
|
|
232
|
-
const m = u === "exit" ? n : u === "enter" ? t : void 0, f = m && !d ?
|
|
232
|
+
const m = u === "exit" ? n : u === "enter" ? t : void 0, f = m && !d ? z(m) : void 0;
|
|
233
233
|
return h.createElement(
|
|
234
234
|
"div",
|
|
235
235
|
{
|
|
@@ -243,7 +243,7 @@ function B({
|
|
|
243
243
|
o
|
|
244
244
|
);
|
|
245
245
|
}
|
|
246
|
-
class re extends
|
|
246
|
+
class re extends H {
|
|
247
247
|
constructor(n = !0) {
|
|
248
248
|
super();
|
|
249
249
|
b(this, "_show", !0);
|
|
@@ -252,7 +252,7 @@ class re extends z {
|
|
|
252
252
|
this.show(n);
|
|
253
253
|
}
|
|
254
254
|
show(n) {
|
|
255
|
-
return this._show = n,
|
|
255
|
+
return this._show = n, E(n) && (this.bindSignal(n), this.observer()), this;
|
|
256
256
|
}
|
|
257
257
|
enter(n) {
|
|
258
258
|
return this._enter = n, this;
|
|
@@ -264,7 +264,7 @@ class re extends z {
|
|
|
264
264
|
return this._transitionDuration = n, this;
|
|
265
265
|
}
|
|
266
266
|
build() {
|
|
267
|
-
return h.createElement(
|
|
267
|
+
return h.createElement(O, {
|
|
268
268
|
show: this._show,
|
|
269
269
|
enter: this._enter,
|
|
270
270
|
exit: this._exit,
|
|
@@ -274,9 +274,9 @@ class re extends z {
|
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
const ie =
|
|
277
|
+
const ie = $(re);
|
|
278
278
|
function se(e) {
|
|
279
|
-
return X(e) ? h.createElement(
|
|
279
|
+
return X(e) ? h.createElement(O, e) : ie(e ?? !0);
|
|
280
280
|
}
|
|
281
281
|
se.displayName = "Presence";
|
|
282
282
|
class oe {
|
|
@@ -320,23 +320,23 @@ class oe {
|
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
const Se = () => new oe();
|
|
323
|
-
function
|
|
323
|
+
function B(e) {
|
|
324
324
|
return J(e);
|
|
325
325
|
}
|
|
326
326
|
function Re({ children: e }) {
|
|
327
|
-
return
|
|
327
|
+
return B(e);
|
|
328
328
|
}
|
|
329
329
|
function Fe(e, t, n) {
|
|
330
330
|
const r = typeof e == "string" ? document.querySelector(e) : e;
|
|
331
331
|
if (!r)
|
|
332
332
|
throw new Error(`mount: element not found: ${String(e)}`);
|
|
333
|
-
const i = typeof t == "function" && !W(t) ? t() : t, o =
|
|
333
|
+
const i = typeof t == "function" && !W(t) ? t() : t, o = B(i), c = C(r), s = h.createElement(x, { children: o });
|
|
334
334
|
return c.render(
|
|
335
335
|
(n == null ? void 0 : n.strict) === !1 ? s : h.createElement(L, null, s)
|
|
336
336
|
), c;
|
|
337
337
|
}
|
|
338
338
|
export {
|
|
339
|
-
|
|
339
|
+
Y as E,
|
|
340
340
|
Se as F,
|
|
341
341
|
se as P,
|
|
342
342
|
me as a,
|
|
@@ -344,15 +344,15 @@ export {
|
|
|
344
344
|
pe as c,
|
|
345
345
|
be as d,
|
|
346
346
|
ge as e,
|
|
347
|
-
|
|
347
|
+
Ee as f,
|
|
348
348
|
ve as g,
|
|
349
|
-
|
|
349
|
+
Me as h,
|
|
350
350
|
ye as i,
|
|
351
351
|
_e as j,
|
|
352
352
|
oe as k,
|
|
353
353
|
Re as l,
|
|
354
354
|
Fe as m,
|
|
355
355
|
we as n,
|
|
356
|
-
|
|
356
|
+
B as t,
|
|
357
357
|
fe as u
|
|
358
358
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { useState as a, useCallback as F, useMemo as T, createContext as C, useContext as p } from "react";
|
|
4
|
-
import { r as x, f as P, b as g } from "./themeData-
|
|
4
|
+
import { r as x, f as P, b as g } from "./themeData-Dtm0M_mF.js";
|
|
5
5
|
const l = C(void 0);
|
|
6
6
|
function k(e) {
|
|
7
7
|
return typeof e == "string" ? e : `${e.name}|${e.colors.primary}|${e.colors.background}|${e.fontFamily}`;
|
package/dist/structure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { B as e } from "./index-
|
|
3
|
-
import { B as i, C as o, c as t, G as l, d, L as B, a as T, T as m, b as n } from "./index-
|
|
2
|
+
import { B as e } from "./index-orKQGpHl.js";
|
|
3
|
+
import { B as i, C as o, c as t, G as l, d, L as B, a as T, T as m, b as n } from "./index-MeDbhMEg.js";
|
|
4
4
|
export {
|
|
5
5
|
i as Banner,
|
|
6
6
|
e as Box,
|