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,34 +2,34 @@
|
|
|
2
2
|
var So = Object.defineProperty;
|
|
3
3
|
var Co = (t, o, i) => o in t ? So(t, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[o] = i;
|
|
4
4
|
var a = (t, o, i) => Co(t, typeof o != "symbol" ? o + "" : o, i);
|
|
5
|
-
import g, { useRef as
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { r as To, f as No, b as Eo } from "./themeData-
|
|
8
|
-
class
|
|
5
|
+
import g, { useRef as z, createContext as B, useContext as V, useCallback as E, useSyncExternalStore as W, useEffect as L, useState as ro, cloneElement as $o } from "react";
|
|
6
|
+
import { jsx as T, Fragment as H } from "react/jsx-runtime";
|
|
7
|
+
import { r as To, f as No, b as Eo } from "./themeData-Dtm0M_mF.js";
|
|
8
|
+
class no {
|
|
9
9
|
constructor() {
|
|
10
10
|
a(this, "activeEffect", null);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function so() {
|
|
15
|
-
return new ro();
|
|
16
|
-
}
|
|
13
|
+
const so = new no(), Y = [so];
|
|
17
14
|
function ao() {
|
|
18
|
-
return
|
|
15
|
+
return new no();
|
|
16
|
+
}
|
|
17
|
+
function co() {
|
|
18
|
+
return Y[Y.length - 1] ?? so;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
return
|
|
20
|
+
function O() {
|
|
21
|
+
return co().activeEffect;
|
|
22
22
|
}
|
|
23
23
|
function Ro(t, o) {
|
|
24
|
-
|
|
24
|
+
Y.push(t);
|
|
25
25
|
try {
|
|
26
26
|
return o();
|
|
27
27
|
} finally {
|
|
28
|
-
|
|
28
|
+
Y.pop();
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
const o =
|
|
31
|
+
function R(t) {
|
|
32
|
+
const o = co(), i = o.activeEffect;
|
|
33
33
|
return o.activeEffect = t, i;
|
|
34
34
|
}
|
|
35
35
|
class Io {
|
|
@@ -39,11 +39,11 @@ class Io {
|
|
|
39
39
|
this.fn = o, this.run();
|
|
40
40
|
}
|
|
41
41
|
run() {
|
|
42
|
-
const o =
|
|
42
|
+
const o = R(this);
|
|
43
43
|
try {
|
|
44
44
|
this.cleanup(), this.fn();
|
|
45
45
|
} finally {
|
|
46
|
-
|
|
46
|
+
R(o);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
track(o) {
|
|
@@ -66,11 +66,11 @@ class Fo {
|
|
|
66
66
|
this._onInvalidate = o;
|
|
67
67
|
}
|
|
68
68
|
execute(o) {
|
|
69
|
-
const i =
|
|
69
|
+
const i = R(this);
|
|
70
70
|
try {
|
|
71
71
|
return this.cleanup(), o();
|
|
72
72
|
} finally {
|
|
73
|
-
|
|
73
|
+
R(i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
track(o) {
|
|
@@ -86,14 +86,15 @@ class Fo {
|
|
|
86
86
|
this.cleanup();
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
class
|
|
89
|
+
class X {
|
|
90
90
|
constructor(o) {
|
|
91
91
|
a(this, "listeners", /* @__PURE__ */ new Set());
|
|
92
92
|
a(this, "effects", /* @__PURE__ */ new Set());
|
|
93
|
+
a(this, "_notifyDepth", 0);
|
|
93
94
|
this._value = o;
|
|
94
95
|
}
|
|
95
96
|
get value() {
|
|
96
|
-
const o =
|
|
97
|
+
const o = O();
|
|
97
98
|
return o && o.track(this), this._value;
|
|
98
99
|
}
|
|
99
100
|
set value(o) {
|
|
@@ -109,12 +110,21 @@ class I {
|
|
|
109
110
|
this.effects.delete(o);
|
|
110
111
|
}
|
|
111
112
|
notify() {
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
if (this._notifyDepth > 32) {
|
|
114
|
+
typeof console < "u" && console.error("[fiboui] Signal update loop detected — aborting notify");
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
this._notifyDepth += 1;
|
|
118
|
+
try {
|
|
119
|
+
const o = Array.from(this.effects), i = Array.from(this.listeners);
|
|
120
|
+
o.forEach((e) => e.trigger()), i.forEach((e) => e(this._value));
|
|
121
|
+
} finally {
|
|
122
|
+
this._notifyDepth -= 1;
|
|
123
|
+
}
|
|
114
124
|
}
|
|
115
125
|
}
|
|
116
|
-
function
|
|
117
|
-
return new
|
|
126
|
+
function Li(t) {
|
|
127
|
+
return new X(t);
|
|
118
128
|
}
|
|
119
129
|
class Xo {
|
|
120
130
|
constructor(o) {
|
|
@@ -123,18 +133,19 @@ class Xo {
|
|
|
123
133
|
a(this, "_value");
|
|
124
134
|
a(this, "_dirty", !0);
|
|
125
135
|
a(this, "internalEffect");
|
|
136
|
+
a(this, "_notifyDepth", 0);
|
|
126
137
|
this.fn = o, this.internalEffect = new Io(() => {
|
|
127
138
|
this._dirty || (this._dirty = !0, this.notify());
|
|
128
139
|
});
|
|
129
140
|
}
|
|
130
141
|
get value() {
|
|
131
|
-
const o =
|
|
142
|
+
const o = O();
|
|
132
143
|
if (o && o.track(this), this._dirty) {
|
|
133
|
-
const i =
|
|
144
|
+
const i = R(this.internalEffect);
|
|
134
145
|
try {
|
|
135
146
|
this.internalEffect.cleanup(), this._value = this.fn(), this._dirty = !1;
|
|
136
147
|
} finally {
|
|
137
|
-
|
|
148
|
+
R(i);
|
|
138
149
|
}
|
|
139
150
|
}
|
|
140
151
|
return this._value;
|
|
@@ -149,11 +160,20 @@ class Xo {
|
|
|
149
160
|
this.effects.delete(o);
|
|
150
161
|
}
|
|
151
162
|
notify() {
|
|
152
|
-
|
|
153
|
-
|
|
163
|
+
if (this._notifyDepth > 32) {
|
|
164
|
+
typeof console < "u" && console.error("[fiboui] ComputedSignal update loop detected — aborting notify");
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
this._notifyDepth += 1;
|
|
168
|
+
try {
|
|
169
|
+
const o = Array.from(this.effects), i = Array.from(this.listeners);
|
|
170
|
+
o.forEach((e) => e.trigger()), i.forEach((e) => e(this._value));
|
|
171
|
+
} finally {
|
|
172
|
+
this._notifyDepth -= 1;
|
|
173
|
+
}
|
|
154
174
|
}
|
|
155
175
|
}
|
|
156
|
-
function
|
|
176
|
+
function Oi(t) {
|
|
157
177
|
return new Xo(t);
|
|
158
178
|
}
|
|
159
179
|
class Mo {
|
|
@@ -163,7 +183,7 @@ class Mo {
|
|
|
163
183
|
this._value = o;
|
|
164
184
|
}
|
|
165
185
|
get() {
|
|
166
|
-
const o =
|
|
186
|
+
const o = O();
|
|
167
187
|
return o && o.track(this), this._value;
|
|
168
188
|
}
|
|
169
189
|
set(o) {
|
|
@@ -182,7 +202,7 @@ class Mo {
|
|
|
182
202
|
Array.from(this.effects).forEach((o) => o.trigger()), Array.from(this.listeners).forEach((o) => o(this._value));
|
|
183
203
|
}
|
|
184
204
|
}
|
|
185
|
-
function
|
|
205
|
+
function Ai(t) {
|
|
186
206
|
return new Mo(t);
|
|
187
207
|
}
|
|
188
208
|
class Yo {
|
|
@@ -192,7 +212,7 @@ class Yo {
|
|
|
192
212
|
this.state = o;
|
|
193
213
|
}
|
|
194
214
|
getState() {
|
|
195
|
-
const o =
|
|
215
|
+
const o = O();
|
|
196
216
|
return o && o.track(this), this.state;
|
|
197
217
|
}
|
|
198
218
|
setState(o) {
|
|
@@ -212,26 +232,26 @@ class Yo {
|
|
|
212
232
|
Array.from(this.effects).forEach((o) => o.trigger()), Array.from(this.listeners).forEach((o) => o(this.state));
|
|
213
233
|
}
|
|
214
234
|
}
|
|
215
|
-
function
|
|
235
|
+
function Pi(t) {
|
|
216
236
|
return new Yo(t);
|
|
217
237
|
}
|
|
218
|
-
const Bo =
|
|
238
|
+
const Bo = ao(), bo = B(Bo);
|
|
219
239
|
function Lo() {
|
|
220
|
-
return
|
|
240
|
+
return V(bo);
|
|
221
241
|
}
|
|
222
242
|
function Di({ children: t, scope: o }) {
|
|
223
|
-
const i =
|
|
224
|
-
return /* @__PURE__ */
|
|
243
|
+
const i = z(o ?? ao()).current;
|
|
244
|
+
return /* @__PURE__ */ T(bo.Provider, { value: i, children: t });
|
|
225
245
|
}
|
|
226
246
|
function Oo({ children: t }) {
|
|
227
|
-
const o =
|
|
247
|
+
const o = z(0), i = z(/* @__PURE__ */ new Set()), e = z(null);
|
|
228
248
|
e.current || (e.current = new Fo(() => {
|
|
229
249
|
o.current += 1, i.current.forEach((c) => c());
|
|
230
250
|
}));
|
|
231
|
-
const r =
|
|
251
|
+
const r = E((c) => (i.current.add(c), () => {
|
|
232
252
|
i.current.delete(c);
|
|
233
|
-
}), []), f =
|
|
234
|
-
|
|
253
|
+
}), []), f = E(() => o.current, []);
|
|
254
|
+
W(r, f, f), L(() => () => {
|
|
235
255
|
var c;
|
|
236
256
|
(c = e.current) == null || c.dispose();
|
|
237
257
|
}, []);
|
|
@@ -242,17 +262,17 @@ function Oo({ children: t }) {
|
|
|
242
262
|
} catch {
|
|
243
263
|
s = null;
|
|
244
264
|
}
|
|
245
|
-
return /* @__PURE__ */
|
|
265
|
+
return /* @__PURE__ */ T(H, { children: s });
|
|
246
266
|
}
|
|
247
|
-
const Ao =
|
|
248
|
-
function
|
|
249
|
-
const o =
|
|
267
|
+
const Ao = B(/* @__PURE__ */ new Map()), uo = B(null);
|
|
268
|
+
function ji(t) {
|
|
269
|
+
const o = V(uo);
|
|
250
270
|
if (!o)
|
|
251
271
|
throw new Error("useBuilderState must be used under a builder that called .state()");
|
|
252
272
|
return [o.get(t), (i) => o.set(t, i)];
|
|
253
273
|
}
|
|
254
274
|
function Po({ stateMap: t = /* @__PURE__ */ new Map(), children: o }) {
|
|
255
|
-
const [i, e] =
|
|
275
|
+
const [i, e] = ro(() => new Map(t)), r = {
|
|
256
276
|
map: i,
|
|
257
277
|
get: (f) => i.get(f),
|
|
258
278
|
set: (f, n) => {
|
|
@@ -264,37 +284,37 @@ function Po({ stateMap: t = /* @__PURE__ */ new Map(), children: o }) {
|
|
|
264
284
|
});
|
|
265
285
|
}
|
|
266
286
|
};
|
|
267
|
-
return /* @__PURE__ */
|
|
287
|
+
return /* @__PURE__ */ T(uo.Provider, { value: r, children: /* @__PURE__ */ T(Ao.Provider, { value: i, children: o }) });
|
|
268
288
|
}
|
|
269
|
-
function
|
|
270
|
-
const i =
|
|
289
|
+
function Do({ observables: t, children: o }) {
|
|
290
|
+
const i = z(0), e = E((f) => {
|
|
271
291
|
const n = Array.from(t).map(
|
|
272
292
|
(s) => s.subscribe(() => {
|
|
273
293
|
i.current += 1, f();
|
|
274
294
|
})
|
|
275
295
|
);
|
|
276
296
|
return () => n.forEach((s) => s());
|
|
277
|
-
}, [t]), r =
|
|
278
|
-
return
|
|
297
|
+
}, [t]), r = E(() => i.current, []);
|
|
298
|
+
return W(e, r, r), /* @__PURE__ */ T(H, { children: typeof o == "function" ? o() : o });
|
|
279
299
|
}
|
|
280
|
-
function
|
|
281
|
-
const i =
|
|
300
|
+
function jo({ signals: t, children: o }) {
|
|
301
|
+
const i = z(0), e = E((f) => {
|
|
282
302
|
const n = Array.from(t).map(
|
|
283
303
|
(s) => s.subscribe(() => {
|
|
284
304
|
i.current += 1, f();
|
|
285
305
|
})
|
|
286
306
|
);
|
|
287
307
|
return () => n.forEach((s) => s());
|
|
288
|
-
}, [t]), r =
|
|
289
|
-
return
|
|
308
|
+
}, [t]), r = E(() => i.current, []);
|
|
309
|
+
return W(e, r, r), /* @__PURE__ */ T(H, { children: typeof o == "function" ? o() : o });
|
|
290
310
|
}
|
|
291
|
-
const
|
|
292
|
-
function
|
|
293
|
-
const o =
|
|
311
|
+
const lo = B(/* @__PURE__ */ new Map());
|
|
312
|
+
function Vi(t) {
|
|
313
|
+
const o = V(lo);
|
|
294
314
|
return o == null ? void 0 : o.get(t);
|
|
295
315
|
}
|
|
296
316
|
function Vo({ providers: t = /* @__PURE__ */ new Map(), children: o }) {
|
|
297
|
-
return /* @__PURE__ */
|
|
317
|
+
return /* @__PURE__ */ T(lo.Provider, { value: t, children: o });
|
|
298
318
|
}
|
|
299
319
|
function Wo(t) {
|
|
300
320
|
return !!t && typeof t == "object" && "build" in t && typeof t.build == "function";
|
|
@@ -302,51 +322,51 @@ function Wo(t) {
|
|
|
302
322
|
function Ho(t) {
|
|
303
323
|
return g.isValidElement(t) ? t : Wo(t) ? t.build() : t;
|
|
304
324
|
}
|
|
305
|
-
function
|
|
325
|
+
function U(t) {
|
|
306
326
|
return typeof t == "string" || typeof t == "number";
|
|
307
327
|
}
|
|
308
328
|
function Uo(t, o) {
|
|
309
|
-
return g.isValidElement(t) &&
|
|
329
|
+
return g.isValidElement(t) && U(t.key) && t.key !== "" ? t.key : `.$fibo-${o}`;
|
|
310
330
|
}
|
|
311
331
|
function Go(t, o) {
|
|
312
|
-
return !g.isValidElement(t) ||
|
|
332
|
+
return !g.isValidElement(t) || U(t.key) && t.key !== "" ? t : g.cloneElement(t, { key: Uo(t, o) });
|
|
313
333
|
}
|
|
314
|
-
function
|
|
334
|
+
function K(t) {
|
|
315
335
|
if (t == null)
|
|
316
336
|
return [];
|
|
317
337
|
const o = typeof t == "function" ? t() : t;
|
|
318
338
|
return (Array.isArray(o) ? o : [o]).map((e, r) => Go(Ho(e), r));
|
|
319
339
|
}
|
|
320
|
-
const
|
|
340
|
+
const Z = /* @__PURE__ */ new Map(), Ko = {
|
|
321
341
|
easeIn: "ease-in",
|
|
322
342
|
easeOut: "ease-out",
|
|
323
343
|
easeInOut: "ease-in-out",
|
|
324
344
|
linear: "linear",
|
|
325
345
|
ease: "ease"
|
|
326
346
|
};
|
|
327
|
-
function
|
|
328
|
-
const o = t.stiffness ?? 170, i = t.damping ?? 26, e = t.mass ?? 1, r = `${o}:${i}:${e}`, f =
|
|
347
|
+
function ho(t = {}) {
|
|
348
|
+
const o = t.stiffness ?? 170, i = t.damping ?? 26, e = t.mass ?? 1, r = `${o}:${i}:${e}`, f = Z.get(r);
|
|
329
349
|
if (f) return f;
|
|
330
350
|
const n = 1 / 60, s = 1;
|
|
331
|
-
let c = 0,
|
|
351
|
+
let c = 0, x = 0;
|
|
332
352
|
const b = [0];
|
|
333
353
|
for (let d = 0; d < 180; d += 1) {
|
|
334
|
-
const y = -o * (c - s) - i *
|
|
335
|
-
if (
|
|
354
|
+
const y = -o * (c - s) - i * x;
|
|
355
|
+
if (x += y / e * n, c += x * n, b.push(c), d > 8 && Math.abs(c - s) < 2e-3 && Math.abs(x) < 2e-3) break;
|
|
336
356
|
}
|
|
337
357
|
b[b.length - 1] !== 1 && b.push(1);
|
|
338
|
-
const
|
|
339
|
-
for (let d = 0; d < b.length; d +=
|
|
340
|
-
const y = d / (b.length - 1),
|
|
341
|
-
p.push(d === 0 ? `${
|
|
358
|
+
const h = Math.max(1, Math.floor((b.length - 1) / 24)), p = [];
|
|
359
|
+
for (let d = 0; d < b.length; d += h) {
|
|
360
|
+
const y = d / (b.length - 1), S = Math.round(b[d] * 1e4) / 1e4;
|
|
361
|
+
p.push(d === 0 ? `${S}` : `${S} ${Math.round(y * 1e4) / 100}%`);
|
|
342
362
|
}
|
|
343
363
|
const m = `linear(${p.join(", ")})`;
|
|
344
|
-
return
|
|
364
|
+
return Z.set(r, m), m;
|
|
345
365
|
}
|
|
346
|
-
function
|
|
347
|
-
return t === "spring" ?
|
|
366
|
+
function $(t, o) {
|
|
367
|
+
return t === "spring" ? ho(o) : Ko[t] ?? t;
|
|
348
368
|
}
|
|
349
|
-
const
|
|
369
|
+
const q = [
|
|
350
370
|
"fadeIn",
|
|
351
371
|
"fadeOut",
|
|
352
372
|
"fade",
|
|
@@ -372,7 +392,7 @@ function qo(t) {
|
|
|
372
392
|
const o = t;
|
|
373
393
|
return typeof o.from == "object" && o.from !== null && typeof o.to == "object" && o.to !== null;
|
|
374
394
|
}
|
|
375
|
-
function
|
|
395
|
+
function Q(t) {
|
|
376
396
|
const o = /* @__PURE__ */ new Set(["opacity", "zIndex", "z-index", "flex", "fontWeight", "lineHeight"]);
|
|
377
397
|
return Object.entries(t).map(([i, e]) => {
|
|
378
398
|
const r = i.replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`), f = typeof e == "number" && !o.has(i) ? `${e}px` : String(e);
|
|
@@ -386,8 +406,8 @@ function Qo(t) {
|
|
|
386
406
|
}
|
|
387
407
|
function Jo(t) {
|
|
388
408
|
const o = Zo[t] ?? t;
|
|
389
|
-
if (!
|
|
390
|
-
throw new Error(`Unknown motion preset "${t}". Use: ${
|
|
409
|
+
if (!q.includes(o))
|
|
410
|
+
throw new Error(`Unknown motion preset "${t}". Use: ${q.join(", ")}`);
|
|
391
411
|
return o;
|
|
392
412
|
}
|
|
393
413
|
const j = `
|
|
@@ -532,13 +552,13 @@ const j = `
|
|
|
532
552
|
}
|
|
533
553
|
}
|
|
534
554
|
`.trim();
|
|
535
|
-
function
|
|
555
|
+
function J(t) {
|
|
536
556
|
let o = 5381;
|
|
537
557
|
for (let i = 0; i < t.length; i += 1)
|
|
538
558
|
o = (o << 5) + o ^ t.charCodeAt(i);
|
|
539
559
|
return (o >>> 0).toString(36);
|
|
540
560
|
}
|
|
541
|
-
const
|
|
561
|
+
const _ = class _ {
|
|
542
562
|
constructor() {
|
|
543
563
|
a(this, "sheet", null);
|
|
544
564
|
a(this, "cache", /* @__PURE__ */ new Map());
|
|
@@ -547,14 +567,14 @@ const k = class k {
|
|
|
547
567
|
this.attachSheet(), this.ensureDefaults();
|
|
548
568
|
}
|
|
549
569
|
static getInstance() {
|
|
550
|
-
return
|
|
570
|
+
return _.instance || (_.instance = new _()), _.instance;
|
|
551
571
|
}
|
|
552
572
|
/** Test-only: empty cache/sheet so a simulated client starts cold. */
|
|
553
573
|
reset() {
|
|
554
574
|
this.cache.clear(), this.extras = [], this.defaultsReady = !1, this.sheet = null, this.attachSheet(), this.ensureDefaults();
|
|
555
575
|
}
|
|
556
576
|
static resetForTests() {
|
|
557
|
-
|
|
577
|
+
_.getInstance().reset();
|
|
558
578
|
}
|
|
559
579
|
attachSheet() {
|
|
560
580
|
if (typeof document > "u") return;
|
|
@@ -572,7 +592,7 @@ const k = class k {
|
|
|
572
592
|
const r = `@media ${o}|${i}:${e}`;
|
|
573
593
|
if (this.cache.has(r))
|
|
574
594
|
return this.cache.get(r);
|
|
575
|
-
const f = `fibo-mq-${
|
|
595
|
+
const f = `fibo-mq-${J(r)}`, n = `@media ${o} { .${f} { ${i}: ${e} !important; } }`;
|
|
576
596
|
return this.insert(n), this.cache.set(r, f), f;
|
|
577
597
|
}
|
|
578
598
|
ensureDefaults() {
|
|
@@ -635,34 +655,38 @@ const k = class k {
|
|
|
635
655
|
const f = `${r ? "group:" : ""}${o}:${i}:${e}`;
|
|
636
656
|
if (this.cache.has(f))
|
|
637
657
|
return this.cache.get(f);
|
|
638
|
-
const n = `fibo-ps-${
|
|
658
|
+
const n = `fibo-ps-${J(f)}`, s = r ? `.group:${o} .${n} { ${i}: ${e} !important; }` : `.${n}:${o} { ${i}: ${e} !important; }`;
|
|
639
659
|
return this.insert(s), this.cache.set(f, n), n;
|
|
640
660
|
}
|
|
641
661
|
registerGroupPseudo(o, i, e, r) {
|
|
642
662
|
return this.registerPseudo(i, e, r, !0);
|
|
643
663
|
}
|
|
644
664
|
};
|
|
645
|
-
a(
|
|
646
|
-
let
|
|
647
|
-
const u =
|
|
665
|
+
a(_, "instance");
|
|
666
|
+
let k = _;
|
|
667
|
+
const u = k.getInstance();
|
|
648
668
|
function w() {
|
|
649
|
-
|
|
669
|
+
k.getInstance().ensureDefaults();
|
|
650
670
|
}
|
|
651
|
-
function
|
|
652
|
-
return
|
|
671
|
+
function Wi() {
|
|
672
|
+
return k.getInstance().getCss();
|
|
653
673
|
}
|
|
654
|
-
function
|
|
655
|
-
return
|
|
674
|
+
function xo() {
|
|
675
|
+
return k.getInstance().getCss();
|
|
676
|
+
}
|
|
677
|
+
function Hi() {
|
|
678
|
+
const o = `<style id="fibo-dynamic-styles" data-fibo="1">${xo().replace(/<\/style/gi, "<\\/style")}</style>`;
|
|
679
|
+
return typeof document > "u" && k.resetForTests(), o;
|
|
656
680
|
}
|
|
657
681
|
function Ui() {
|
|
658
|
-
|
|
682
|
+
k.resetForTests();
|
|
659
683
|
}
|
|
660
684
|
function Gi() {
|
|
661
685
|
return w(), g.createElement("style", {
|
|
662
686
|
id: "fibo-dynamic-styles",
|
|
663
687
|
"data-fibo": "1",
|
|
664
688
|
suppressHydrationWarning: !0,
|
|
665
|
-
dangerouslySetInnerHTML: { __html:
|
|
689
|
+
dangerouslySetInnerHTML: { __html: xo() }
|
|
666
690
|
});
|
|
667
691
|
}
|
|
668
692
|
function oi() {
|
|
@@ -672,44 +696,44 @@ function oi() {
|
|
|
672
696
|
dangerouslySetInnerHTML: { __html: j }
|
|
673
697
|
});
|
|
674
698
|
}
|
|
675
|
-
const
|
|
699
|
+
const po = {
|
|
676
700
|
sm: 640,
|
|
677
701
|
md: 768,
|
|
678
702
|
lg: 1024,
|
|
679
703
|
xl: 1280
|
|
680
704
|
};
|
|
681
705
|
function ii(t) {
|
|
682
|
-
return t in
|
|
706
|
+
return t in po;
|
|
683
707
|
}
|
|
684
708
|
function ti(t) {
|
|
685
709
|
if (ii(t))
|
|
686
|
-
return `(min-width: ${
|
|
710
|
+
return `(min-width: ${po[t]}px)`;
|
|
687
711
|
const o = t.trim();
|
|
688
712
|
return o.startsWith("@media") ? o.replace(/^@media\s+/, "") : o;
|
|
689
713
|
}
|
|
690
|
-
function
|
|
714
|
+
function go(t) {
|
|
691
715
|
var o, i, e = "";
|
|
692
716
|
if (typeof t == "string" || typeof t == "number") e += t;
|
|
693
717
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
694
718
|
var r = t.length;
|
|
695
|
-
for (o = 0; o < r; o++) t[o] && (i =
|
|
719
|
+
for (o = 0; o < r; o++) t[o] && (i = go(t[o])) && (e && (e += " "), e += i);
|
|
696
720
|
} else for (i in t) t[i] && (e && (e += " "), e += i);
|
|
697
721
|
return e;
|
|
698
722
|
}
|
|
699
723
|
function ei() {
|
|
700
|
-
for (var t, o, i = 0, e = "", r = arguments.length; i < r; i++) (t = arguments[i]) && (o =
|
|
724
|
+
for (var t, o, i = 0, e = "", r = arguments.length; i < r; i++) (t = arguments[i]) && (o = go(t)) && (e && (e += " "), e += o);
|
|
701
725
|
return e;
|
|
702
726
|
}
|
|
703
727
|
function fi(t) {
|
|
704
728
|
const o = t.match(/oklch\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*\)/);
|
|
705
729
|
if (!o)
|
|
706
730
|
return t;
|
|
707
|
-
const [, i, e, r] = o, f = parseFloat(i), n = parseFloat(e), s = parseFloat(r), c = n * Math.cos(s * Math.PI / 180),
|
|
708
|
-
var
|
|
709
|
-
const
|
|
710
|
-
return
|
|
731
|
+
const [, i, e, r] = o, f = parseFloat(i), n = parseFloat(e), s = parseFloat(r), c = n * Math.cos(s * Math.PI / 180), x = n * Math.sin(s * Math.PI / 180), b = f + 0.3963377774 * c + 0.2158037573 * x, l = f - 0.1055613458 * c - 0.0638541728 * x, h = f - 0.0894841775 * c - 1.291485548 * x, p = b * b * b, m = l * l * l, d = h * h * h, y = 4.0767416621 * p - 3.3077115913 * m + 0.2309699292 * d, S = -1.2684380046 * p + 2.6097574011 * m - 0.3413193965 * d, I = -0.0041960863 * p - 0.7034186147 * m + 1.707614701 * d, C = (F) => F >= 31308e-7 ? 1.055 * F ** (1 / 2.4) - 0.055 : 12.92 * F, ko = Math.max(0, Math.min(1, C(y))), _o = Math.max(0, Math.min(1, C(S))), zo = Math.max(0, Math.min(1, C(I))), A = (F) => {
|
|
732
|
+
var G;
|
|
733
|
+
const P = (G = Math.round(F * 255).toString(16)) == null ? void 0 : G.toUpperCase();
|
|
734
|
+
return P.length === 1 ? `0${P}` : P;
|
|
711
735
|
};
|
|
712
|
-
return `#${
|
|
736
|
+
return `#${A(ko)}${A(_o)}${A(zo)}`;
|
|
713
737
|
}
|
|
714
738
|
function ri(t) {
|
|
715
739
|
const o = {}, i = {}, e = t.split(`
|
|
@@ -720,11 +744,11 @@ function ri(t) {
|
|
|
720
744
|
continue;
|
|
721
745
|
const n = f.match(/^--color-([a-z0-9\-]+): (oklch\([^)]+\));?$/), s = f.match(/^--color-([a-z0-9\-]+): (#[a-fA-F0-9]{3,6});?$/);
|
|
722
746
|
if (n) {
|
|
723
|
-
const [, c,
|
|
747
|
+
const [, c, x] = n, b = fi(x);
|
|
724
748
|
o[b.toLowerCase()] = `bg-${c}`, i[b.toLowerCase()] = `text-${c}`;
|
|
725
749
|
} else if (s) {
|
|
726
|
-
const [, c,
|
|
727
|
-
o[
|
|
750
|
+
const [, c, x] = s;
|
|
751
|
+
o[x.toLowerCase()] = `bg-${c}`, i[x.toLowerCase()] = `text-${c}`;
|
|
728
752
|
}
|
|
729
753
|
}
|
|
730
754
|
return { background: o, text: i };
|
|
@@ -732,7 +756,7 @@ function ri(t) {
|
|
|
732
756
|
const ni = (t) => {
|
|
733
757
|
if (t !== void 0)
|
|
734
758
|
return typeof t == "number" ? `${t}px` : t.toString();
|
|
735
|
-
},
|
|
759
|
+
}, N = (t, o) => {
|
|
736
760
|
const i = ni(o);
|
|
737
761
|
return i === void 0 ? "" : `${t}-[${i}]`;
|
|
738
762
|
}, si = `
|
|
@@ -980,7 +1004,7 @@ const ni = (t) => {
|
|
|
980
1004
|
--color-stone-950: oklch(0.147 0.004 49.25);
|
|
981
1005
|
--color-black: #000;
|
|
982
1006
|
--color-white: #fff;
|
|
983
|
-
`, ai = ri(si),
|
|
1007
|
+
`, ai = ri(si), mo = {
|
|
984
1008
|
borderRadius: {
|
|
985
1009
|
0: "rounded-none",
|
|
986
1010
|
"0px": "rounded-none",
|
|
@@ -1086,14 +1110,14 @@ const ni = (t) => {
|
|
|
1086
1110
|
borderRadius: (i) => {
|
|
1087
1111
|
if (!i.borderRadius)
|
|
1088
1112
|
return [];
|
|
1089
|
-
const e =
|
|
1113
|
+
const e = mo.borderRadius[i.borderRadius] || N("rounded", i.borderRadius);
|
|
1090
1114
|
return e ? [e] : [];
|
|
1091
1115
|
},
|
|
1092
1116
|
// 外边距
|
|
1093
1117
|
margin: (i) => {
|
|
1094
1118
|
const e = [];
|
|
1095
1119
|
if (i.margin !== void 0) {
|
|
1096
|
-
const f =
|
|
1120
|
+
const f = N("m", i.margin);
|
|
1097
1121
|
return f ? [f] : [];
|
|
1098
1122
|
}
|
|
1099
1123
|
return [
|
|
@@ -1105,7 +1129,7 @@ const ni = (t) => {
|
|
|
1105
1129
|
{ prop: i.marginY, dir: "my" }
|
|
1106
1130
|
].forEach(({ prop: f, dir: n }) => {
|
|
1107
1131
|
if (f !== void 0) {
|
|
1108
|
-
const s =
|
|
1132
|
+
const s = N(n, f);
|
|
1109
1133
|
s && e.push(s);
|
|
1110
1134
|
}
|
|
1111
1135
|
}), e;
|
|
@@ -1114,7 +1138,7 @@ const ni = (t) => {
|
|
|
1114
1138
|
padding: (i) => {
|
|
1115
1139
|
const e = [];
|
|
1116
1140
|
if (i.padding !== void 0) {
|
|
1117
|
-
const f =
|
|
1141
|
+
const f = N("p", i.padding);
|
|
1118
1142
|
return f ? [f] : [];
|
|
1119
1143
|
}
|
|
1120
1144
|
return [
|
|
@@ -1126,7 +1150,7 @@ const ni = (t) => {
|
|
|
1126
1150
|
{ prop: i.paddingY, dir: "py" }
|
|
1127
1151
|
].forEach(({ prop: f, dir: n }) => {
|
|
1128
1152
|
if (f !== void 0) {
|
|
1129
|
-
const s =
|
|
1153
|
+
const s = N(n, f);
|
|
1130
1154
|
s && e.push(s);
|
|
1131
1155
|
}
|
|
1132
1156
|
}), e;
|
|
@@ -1211,7 +1235,7 @@ const ni = (t) => {
|
|
|
1211
1235
|
f && e.push(f);
|
|
1212
1236
|
}
|
|
1213
1237
|
if (i.gap) {
|
|
1214
|
-
const r =
|
|
1238
|
+
const r = N("gap", i.gap);
|
|
1215
1239
|
r && e.push(r);
|
|
1216
1240
|
}
|
|
1217
1241
|
return e;
|
|
@@ -1268,13 +1292,13 @@ const ni = (t) => {
|
|
|
1268
1292
|
opacity: "opacity",
|
|
1269
1293
|
className: "className"
|
|
1270
1294
|
}, ui = (t, o) => {
|
|
1271
|
-
const i = (o == null ? void 0 : o.colorMaps) || ai, e = (o == null ? void 0 : o.styleMaps) ||
|
|
1295
|
+
const i = (o == null ? void 0 : o.colorMaps) || ai, e = (o == null ? void 0 : o.styleMaps) || mo, r = ci(i, e), f = [], n = /* @__PURE__ */ new Set();
|
|
1272
1296
|
return Object.keys(t).forEach((s) => {
|
|
1273
1297
|
const c = bi[s];
|
|
1274
1298
|
if (c && !n.has(c)) {
|
|
1275
|
-
const
|
|
1276
|
-
if (
|
|
1277
|
-
const b =
|
|
1299
|
+
const x = r[c];
|
|
1300
|
+
if (x) {
|
|
1301
|
+
const b = x(t);
|
|
1278
1302
|
f.push(...b), n.add(c);
|
|
1279
1303
|
}
|
|
1280
1304
|
}
|
|
@@ -1287,29 +1311,29 @@ function li(t) {
|
|
|
1287
1311
|
}), o;
|
|
1288
1312
|
}
|
|
1289
1313
|
function hi({ animatedProps: t, animationConfig: o, children: i }) {
|
|
1290
|
-
const [e, r] =
|
|
1314
|
+
const [e, r] = ro(
|
|
1291
1315
|
() => li(t)
|
|
1292
1316
|
);
|
|
1293
|
-
|
|
1317
|
+
L(() => {
|
|
1294
1318
|
const c = [];
|
|
1295
|
-
return t.forEach((
|
|
1296
|
-
const l = (
|
|
1319
|
+
return t.forEach((x, b) => {
|
|
1320
|
+
const l = (h) => {
|
|
1297
1321
|
r((p) => ({
|
|
1298
1322
|
...p,
|
|
1299
|
-
[b]:
|
|
1323
|
+
[b]: h
|
|
1300
1324
|
}));
|
|
1301
1325
|
};
|
|
1302
|
-
c.push(
|
|
1326
|
+
c.push(x.subscribe(l)), l(x.value);
|
|
1303
1327
|
}), () => {
|
|
1304
|
-
c.forEach((
|
|
1328
|
+
c.forEach((x) => x());
|
|
1305
1329
|
};
|
|
1306
1330
|
}, [t]);
|
|
1307
1331
|
const f = [];
|
|
1308
1332
|
e.translateX !== void 0 && f.push(`translateX(${e.translateX}px)`), e.translateY !== void 0 && f.push(`translateY(${e.translateY}px)`), e.scale !== void 0 && f.push(`scale(${e.scale})`), e.rotate !== void 0 && f.push(`rotate(${e.rotate}deg)`);
|
|
1309
1333
|
const n = {};
|
|
1310
1334
|
if (f.length > 0 && (n.transform = f.join(" ")), o) {
|
|
1311
|
-
const { duration: c = 300, curve:
|
|
1312
|
-
n.transition = `transform ${c}ms ${
|
|
1335
|
+
const { duration: c = 300, curve: x = "easeOut", stiffness: b, damping: l } = o, h = $(x, { stiffness: b, damping: l });
|
|
1336
|
+
n.transition = `transform ${c}ms ${h}`;
|
|
1313
1337
|
}
|
|
1314
1338
|
const s = {
|
|
1315
1339
|
...i.props.style,
|
|
@@ -1317,7 +1341,7 @@ function hi({ animatedProps: t, animationConfig: o, children: i }) {
|
|
|
1317
1341
|
};
|
|
1318
1342
|
return $o(i, { style: s });
|
|
1319
1343
|
}
|
|
1320
|
-
const
|
|
1344
|
+
const vo = [
|
|
1321
1345
|
// —— 2D Transitions ——
|
|
1322
1346
|
"grow",
|
|
1323
1347
|
"shrink",
|
|
@@ -1437,7 +1461,7 @@ const mo = [
|
|
|
1437
1461
|
"curlTopRight",
|
|
1438
1462
|
"curlBottomRight",
|
|
1439
1463
|
"curlBottomLeft"
|
|
1440
|
-
],
|
|
1464
|
+
], oo = {
|
|
1441
1465
|
"pulse-grow": "pulseGrow",
|
|
1442
1466
|
"pulse-shrink": "pulseShrink",
|
|
1443
1467
|
"bounce-in": "bounceIn",
|
|
@@ -1537,17 +1561,17 @@ const mo = [
|
|
|
1537
1561
|
function xi(t) {
|
|
1538
1562
|
return t.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`);
|
|
1539
1563
|
}
|
|
1540
|
-
function
|
|
1541
|
-
return
|
|
1564
|
+
function io(t) {
|
|
1565
|
+
return vo.includes(t);
|
|
1542
1566
|
}
|
|
1543
1567
|
function pi(t) {
|
|
1544
|
-
const o = t.trim(), i =
|
|
1568
|
+
const o = t.trim(), i = oo[o] ?? oo[o.toLowerCase()];
|
|
1545
1569
|
if (i) return i;
|
|
1546
|
-
if (
|
|
1570
|
+
if (io(o)) return o;
|
|
1547
1571
|
const e = o.replace(/-([a-z])/g, (r, f) => f.toUpperCase());
|
|
1548
|
-
if (
|
|
1572
|
+
if (io(e)) return e;
|
|
1549
1573
|
throw new Error(
|
|
1550
|
-
`Unknown interaction effect "${t}". Use one of ${
|
|
1574
|
+
`Unknown interaction effect "${t}". Use one of ${vo.length} presets — see INTERACTION_EFFECTS.`
|
|
1551
1575
|
);
|
|
1552
1576
|
}
|
|
1553
1577
|
function gi(t, o = !1) {
|
|
@@ -1571,10 +1595,10 @@ const mi = `
|
|
|
1571
1595
|
100% { transform: scale(0); opacity: 0; }
|
|
1572
1596
|
}
|
|
1573
1597
|
@keyframes fibo-fx-bob {
|
|
1574
|
-
0% { transform: translateY(
|
|
1598
|
+
0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); }
|
|
1575
1599
|
}
|
|
1576
1600
|
@keyframes fibo-fx-hang {
|
|
1577
|
-
0% { transform: translateY(
|
|
1601
|
+
0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); }
|
|
1578
1602
|
}
|
|
1579
1603
|
@keyframes fibo-fx-wobble-h {
|
|
1580
1604
|
16.65% { transform: translateX(8px); } 33.3% { transform: translateX(-6px); }
|
|
@@ -1613,8 +1637,9 @@ const mi = `
|
|
|
1613
1637
|
83.25% { transform: skew(-2deg); } 100% { transform: skew(0); }
|
|
1614
1638
|
}
|
|
1615
1639
|
@keyframes fibo-fx-buzz {
|
|
1616
|
-
|
|
1617
|
-
|
|
1640
|
+
0%,100% { transform: translateX(0) rotate(0); }
|
|
1641
|
+
25% { transform: translateX(3px) rotate(2deg); }
|
|
1642
|
+
75% { transform: translateX(-3px) rotate(-2deg); }
|
|
1618
1643
|
}
|
|
1619
1644
|
@keyframes fibo-fx-buzz-out {
|
|
1620
1645
|
10% { transform: translateX(3px) rotate(2deg); }
|
|
@@ -1629,14 +1654,15 @@ const mi = `
|
|
|
1629
1654
|
100% { opacity: 1; transform: translateY(0); }
|
|
1630
1655
|
}
|
|
1631
1656
|
@keyframes fibo-fx-icon-bob {
|
|
1632
|
-
0%,100% { transform: translateY(
|
|
1657
|
+
0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); }
|
|
1633
1658
|
}
|
|
1634
1659
|
@keyframes fibo-fx-icon-hang {
|
|
1635
|
-
0%,100% { transform: translateY(
|
|
1660
|
+
0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); }
|
|
1636
1661
|
}
|
|
1637
1662
|
@keyframes fibo-fx-icon-buzz {
|
|
1638
|
-
|
|
1639
|
-
|
|
1663
|
+
0%,100% { transform: translateX(0) rotate(0); }
|
|
1664
|
+
25% { transform: translateX(3px) rotate(2deg); }
|
|
1665
|
+
75% { transform: translateX(-3px) rotate(-2deg); }
|
|
1640
1666
|
}
|
|
1641
1667
|
@keyframes fibo-fx-back-pulse {
|
|
1642
1668
|
50% { background-color: rgba(127,127,127,0.25); }
|
|
@@ -2847,20 +2873,20 @@ const mi = `
|
|
|
2847
2873
|
}
|
|
2848
2874
|
}
|
|
2849
2875
|
`.trim();
|
|
2850
|
-
let
|
|
2876
|
+
let to = !1;
|
|
2851
2877
|
function vi() {
|
|
2852
|
-
if (
|
|
2853
|
-
|
|
2854
|
-
const t =
|
|
2878
|
+
if (to) return;
|
|
2879
|
+
to = !0;
|
|
2880
|
+
const t = k.getInstance();
|
|
2855
2881
|
t.ensureDefaults(), t.injectExtra(mi, "fibo-interaction-fx");
|
|
2856
2882
|
}
|
|
2857
|
-
function
|
|
2858
|
-
const r = (Array.isArray(t) ? t : [t]).map((s) => s.trim()).filter(Boolean);
|
|
2883
|
+
function M(t, o, i, e = 0) {
|
|
2884
|
+
const r = (Array.isArray(t) ? t : [t]).flatMap((s) => String(s).split(",")).map((s) => s.trim()).filter(Boolean);
|
|
2859
2885
|
r.length === 0 && r.push("all");
|
|
2860
2886
|
const f = `${o}ms`, n = e > 0 ? ` ${e}ms` : "";
|
|
2861
2887
|
return r.map((s) => `${s} ${f} ${i}${n}`).join(", ");
|
|
2862
2888
|
}
|
|
2863
|
-
function
|
|
2889
|
+
function D(t) {
|
|
2864
2890
|
const o = { ...t };
|
|
2865
2891
|
let i = !1;
|
|
2866
2892
|
const e = o.background;
|
|
@@ -2873,10 +2899,10 @@ function P(t) {
|
|
|
2873
2899
|
return i ? o : t;
|
|
2874
2900
|
}
|
|
2875
2901
|
const wi = "translate3d(0, 0, 0)";
|
|
2876
|
-
function
|
|
2902
|
+
function eo(t) {
|
|
2877
2903
|
return t.transform != null && String(t.transform).trim() !== "" ? t : { ...t, transform: wi };
|
|
2878
2904
|
}
|
|
2879
|
-
function
|
|
2905
|
+
function fo(t, o) {
|
|
2880
2906
|
const i = typeof o == "number" ? `${o}px` : o;
|
|
2881
2907
|
return t === "x" ? `translate3d(${i}, 0, 0)` : `translate3d(0, ${i}, 0)`;
|
|
2882
2908
|
}
|
|
@@ -2921,14 +2947,13 @@ class v {
|
|
|
2921
2947
|
return vi(), this.parentBuilder.addClassName("fibo-fx"), this.parentBuilder.addClassName(di(i)), this.parentBuilder.addClassName(
|
|
2922
2948
|
gi(this.pseudoState, this.isGroup)
|
|
2923
2949
|
), this.parentBuilder.prepareSmoothInteraction([
|
|
2924
|
-
"transform",
|
|
2925
2950
|
"opacity",
|
|
2926
2951
|
"box-shadow",
|
|
2927
2952
|
"background-color",
|
|
2928
2953
|
"border-color",
|
|
2929
2954
|
"color",
|
|
2930
2955
|
"border-radius"
|
|
2931
|
-
]), this;
|
|
2956
|
+
]), this.parentBuilder.ensureEffectTransition(["transform"]), this;
|
|
2932
2957
|
}
|
|
2933
2958
|
bg(o) {
|
|
2934
2959
|
return this.set("background-color", o);
|
|
@@ -2952,10 +2977,10 @@ class v {
|
|
|
2952
2977
|
return this.transforms.set("scale", `scale(${o})`), this.flushTransform();
|
|
2953
2978
|
}
|
|
2954
2979
|
translateX(o) {
|
|
2955
|
-
return this.transforms.set("translateX",
|
|
2980
|
+
return this.transforms.set("translateX", fo("x", o)), this.flushTransform();
|
|
2956
2981
|
}
|
|
2957
2982
|
translateY(o) {
|
|
2958
|
-
return this.transforms.set("translateY",
|
|
2983
|
+
return this.transforms.set("translateY", fo("y", o)), this.flushTransform();
|
|
2959
2984
|
}
|
|
2960
2985
|
rotate(o) {
|
|
2961
2986
|
return this.transforms.set("rotate", `rotate(${o}deg)`), this.flushTransform();
|
|
@@ -2969,17 +2994,17 @@ class v {
|
|
|
2969
2994
|
transition(o, i, e, r) {
|
|
2970
2995
|
if (typeof o == "string" && i === void 0)
|
|
2971
2996
|
return this.set("transition", o);
|
|
2972
|
-
const f = Array.isArray(o) ? o : [o], n =
|
|
2997
|
+
const f = Array.isArray(o) ? o : [o], n = $(e || this.transitionEasing);
|
|
2973
2998
|
return this.set(
|
|
2974
2999
|
"transition",
|
|
2975
|
-
|
|
3000
|
+
M(f, i || this.transitionDuration, n, r || 0)
|
|
2976
3001
|
);
|
|
2977
3002
|
}
|
|
2978
3003
|
duration(o) {
|
|
2979
3004
|
return this.transitionDuration = o, this.applyTransition(), this;
|
|
2980
3005
|
}
|
|
2981
3006
|
easing(o) {
|
|
2982
|
-
return this.transitionEasing =
|
|
3007
|
+
return this.transitionEasing = $(o), this.applyTransition(), this;
|
|
2983
3008
|
}
|
|
2984
3009
|
ease(o) {
|
|
2985
3010
|
return this.easing(o);
|
|
@@ -2993,7 +3018,7 @@ class v {
|
|
|
2993
3018
|
applyTransition() {
|
|
2994
3019
|
this.set(
|
|
2995
3020
|
"transition",
|
|
2996
|
-
|
|
3021
|
+
M(
|
|
2997
3022
|
this.transitionProperties,
|
|
2998
3023
|
this.transitionDuration,
|
|
2999
3024
|
this.transitionEasing,
|
|
@@ -3014,61 +3039,33 @@ class v {
|
|
|
3014
3039
|
return this.parentBuilder;
|
|
3015
3040
|
}
|
|
3016
3041
|
}
|
|
3017
|
-
function
|
|
3018
|
-
if (typeof document > "u") return;
|
|
3019
|
-
const i = typeof t == "string" ? t : null, e = (i == null ? void 0 : i.replace(/^#/, "")) ?? null;
|
|
3020
|
-
o != null && o.hash && e && typeof window < "u" && (window.location.hash = e);
|
|
3021
|
-
const r = typeof t == "string" ? document.getElementById(t.replace(/^#/, "")) ?? document.querySelector(t.startsWith("#") ? t : `#${t}`) ?? document.querySelector(t) : t;
|
|
3022
|
-
r && r.scrollIntoView({
|
|
3023
|
-
behavior: (o == null ? void 0 : o.behavior) ?? "smooth",
|
|
3024
|
-
block: (o == null ? void 0 : o.block) ?? "start"
|
|
3025
|
-
});
|
|
3026
|
-
}
|
|
3027
|
-
function Zi(t) {
|
|
3028
|
-
const o = typeof document < "u" ? document : void 0, i = o == null ? void 0 : o.startViewTransition;
|
|
3029
|
-
if (typeof i == "function") {
|
|
3030
|
-
i.call(o, t);
|
|
3031
|
-
return;
|
|
3032
|
-
}
|
|
3033
|
-
t();
|
|
3034
|
-
}
|
|
3035
|
-
function zi() {
|
|
3036
|
-
return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", "view()");
|
|
3037
|
-
}
|
|
3038
|
-
function Si() {
|
|
3039
|
-
return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", "scroll()");
|
|
3040
|
-
}
|
|
3041
|
-
function Ci({
|
|
3042
|
+
function zi({
|
|
3042
3043
|
preset: t = "fadeUp",
|
|
3043
3044
|
once: o = !0,
|
|
3044
3045
|
rootMargin: i = "0px 0px -8% 0px",
|
|
3045
3046
|
threshold: e = 0.12,
|
|
3046
3047
|
forceMotion: r = !1,
|
|
3047
|
-
|
|
3048
|
+
style: f,
|
|
3048
3049
|
children: n
|
|
3049
3050
|
}) {
|
|
3050
|
-
const s =
|
|
3051
|
-
|
|
3051
|
+
const s = z(null);
|
|
3052
|
+
L(() => {
|
|
3052
3053
|
w();
|
|
3053
|
-
const
|
|
3054
|
-
if (!
|
|
3055
|
-
if (f && zi()) {
|
|
3056
|
-
h.classList.add("fibo-inview");
|
|
3057
|
-
return;
|
|
3058
|
-
}
|
|
3054
|
+
const x = s.current;
|
|
3055
|
+
if (!x) return;
|
|
3059
3056
|
if (typeof IntersectionObserver > "u") {
|
|
3060
|
-
|
|
3057
|
+
x.classList.add("fibo-inview");
|
|
3061
3058
|
return;
|
|
3062
3059
|
}
|
|
3063
3060
|
const b = new IntersectionObserver(
|
|
3064
3061
|
(l) => {
|
|
3065
|
-
for (const
|
|
3066
|
-
|
|
3062
|
+
for (const h of l)
|
|
3063
|
+
h.isIntersecting ? (h.target.classList.add("fibo-inview"), o && b.unobserve(h.target)) : o || h.target.classList.remove("fibo-inview");
|
|
3067
3064
|
},
|
|
3068
3065
|
{ rootMargin: i, threshold: e }
|
|
3069
3066
|
);
|
|
3070
|
-
return b.observe(
|
|
3071
|
-
}, [o, i, e
|
|
3067
|
+
return b.observe(x), () => b.disconnect();
|
|
3068
|
+
}, [o, i, e]);
|
|
3072
3069
|
const c = [
|
|
3073
3070
|
"fibo-reveal",
|
|
3074
3071
|
`fibo-reveal-${t}`,
|
|
@@ -3076,11 +3073,39 @@ function Ci({
|
|
|
3076
3073
|
"min-w-0",
|
|
3077
3074
|
r ? "fibo-motion-force" : ""
|
|
3078
3075
|
].filter(Boolean).join(" ");
|
|
3079
|
-
return g.createElement(
|
|
3076
|
+
return g.createElement(
|
|
3077
|
+
"div",
|
|
3078
|
+
{ ref: s, className: c, style: f, "data-fibo-reveal": t },
|
|
3079
|
+
n
|
|
3080
|
+
);
|
|
3081
|
+
}
|
|
3082
|
+
function Ki(t, o) {
|
|
3083
|
+
if (typeof document > "u") return;
|
|
3084
|
+
const i = typeof t == "string" ? t : null, e = (i == null ? void 0 : i.replace(/^#/, "")) ?? null;
|
|
3085
|
+
o != null && o.hash && e && typeof window < "u" && (window.location.hash = e);
|
|
3086
|
+
const r = typeof t == "string" ? document.getElementById(t.replace(/^#/, "")) ?? document.querySelector(t.startsWith("#") ? t : `#${t}`) ?? document.querySelector(t) : t;
|
|
3087
|
+
r && r.scrollIntoView({
|
|
3088
|
+
behavior: (o == null ? void 0 : o.behavior) ?? "smooth",
|
|
3089
|
+
block: (o == null ? void 0 : o.block) ?? "start"
|
|
3090
|
+
});
|
|
3091
|
+
}
|
|
3092
|
+
function Zi(t) {
|
|
3093
|
+
const o = typeof document < "u" ? document : void 0, i = o == null ? void 0 : o.startViewTransition;
|
|
3094
|
+
if (typeof i == "function") {
|
|
3095
|
+
i.call(o, t);
|
|
3096
|
+
return;
|
|
3097
|
+
}
|
|
3098
|
+
t();
|
|
3099
|
+
}
|
|
3100
|
+
function qi() {
|
|
3101
|
+
return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", "view()");
|
|
3102
|
+
}
|
|
3103
|
+
function Si() {
|
|
3104
|
+
return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", "scroll()");
|
|
3080
3105
|
}
|
|
3081
|
-
function
|
|
3082
|
-
const o =
|
|
3083
|
-
return
|
|
3106
|
+
function Ci({ children: t }) {
|
|
3107
|
+
const o = z(null);
|
|
3108
|
+
return L(() => {
|
|
3084
3109
|
if (w(), Si()) return;
|
|
3085
3110
|
const i = () => {
|
|
3086
3111
|
var f, n;
|
|
@@ -3100,8 +3125,8 @@ function $i({ children: t }) {
|
|
|
3100
3125
|
t
|
|
3101
3126
|
);
|
|
3102
3127
|
}
|
|
3103
|
-
const
|
|
3104
|
-
class
|
|
3128
|
+
const wo = 64, $i = `${wo}px`;
|
|
3129
|
+
class Qi {
|
|
3105
3130
|
constructor() {
|
|
3106
3131
|
/** @internal Extra DOM props forwarded to the host element. */
|
|
3107
3132
|
a(this, "_props", {});
|
|
@@ -3339,6 +3364,9 @@ class qi {
|
|
|
3339
3364
|
"on-tertiary-container",
|
|
3340
3365
|
"error",
|
|
3341
3366
|
"on-error",
|
|
3367
|
+
"success",
|
|
3368
|
+
"warning",
|
|
3369
|
+
"info",
|
|
3342
3370
|
"background",
|
|
3343
3371
|
"on-background",
|
|
3344
3372
|
"surface",
|
|
@@ -3412,15 +3440,15 @@ class qi {
|
|
|
3412
3440
|
if (Array.isArray(o)) {
|
|
3413
3441
|
const [f, n, s, c] = o;
|
|
3414
3442
|
if (typeof f == "string" && e(f)) {
|
|
3415
|
-
const l = r("all", "md", f, n),
|
|
3416
|
-
return this._classNames.push(
|
|
3443
|
+
const l = r("all", "md", f, n), h = u.register("box-shadow", l);
|
|
3444
|
+
return this._classNames.push(h), this;
|
|
3417
3445
|
}
|
|
3418
|
-
const
|
|
3446
|
+
const x = f;
|
|
3419
3447
|
if (typeof n == "string" && e(n)) {
|
|
3420
|
-
const l = r(
|
|
3421
|
-
return this._classNames.push(
|
|
3448
|
+
const l = r(x, "md", n, s), h = u.register("box-shadow", l);
|
|
3449
|
+
return this._classNames.push(h), this;
|
|
3422
3450
|
} else {
|
|
3423
|
-
const
|
|
3451
|
+
const h = r(x, n, s, c), p = u.register("box-shadow", h);
|
|
3424
3452
|
return this._classNames.push(p), this;
|
|
3425
3453
|
}
|
|
3426
3454
|
}
|
|
@@ -3653,16 +3681,16 @@ class qi {
|
|
|
3653
3681
|
return this._signals.add(o), this;
|
|
3654
3682
|
}
|
|
3655
3683
|
translateX(o) {
|
|
3656
|
-
return o instanceof
|
|
3684
|
+
return o instanceof X ? this._animatedProps.set("translateX", o) : this._transforms.push(`translateX(${o}px)`), this;
|
|
3657
3685
|
}
|
|
3658
3686
|
translateY(o) {
|
|
3659
|
-
return o instanceof
|
|
3687
|
+
return o instanceof X ? this._animatedProps.set("translateY", o) : this._transforms.push(`translateY(${o}px)`), this;
|
|
3660
3688
|
}
|
|
3661
3689
|
scale(o) {
|
|
3662
|
-
return o instanceof
|
|
3690
|
+
return o instanceof X ? this._animatedProps.set("scale", o) : this._transforms.push(`scale(${o})`), this;
|
|
3663
3691
|
}
|
|
3664
3692
|
rotate(o) {
|
|
3665
|
-
return o instanceof
|
|
3693
|
+
return o instanceof X ? this._animatedProps.set("rotate", o) : this._transforms.push(`rotate(${o}deg)`), this;
|
|
3666
3694
|
}
|
|
3667
3695
|
gesture(o) {
|
|
3668
3696
|
return this._gesture = o, this;
|
|
@@ -3691,11 +3719,11 @@ class qi {
|
|
|
3691
3719
|
transition(o, i, e, r) {
|
|
3692
3720
|
if (this._autoEffectTransition = !1, this._effectTransitionProps = [], typeof o == "string" && i === void 0)
|
|
3693
3721
|
return this.replaceTransitionClass(u.register("transition", o)), this;
|
|
3694
|
-
const f = Array.isArray(o) ? o : [o], n =
|
|
3722
|
+
const f = Array.isArray(o) ? o : [o], n = $(e || this._transitionEasing);
|
|
3695
3723
|
return this.replaceTransitionClass(
|
|
3696
3724
|
u.register(
|
|
3697
3725
|
"transition",
|
|
3698
|
-
|
|
3726
|
+
M(f, i || this._transitionDuration, n, r || 0)
|
|
3699
3727
|
)
|
|
3700
3728
|
), this;
|
|
3701
3729
|
}
|
|
@@ -3704,14 +3732,14 @@ class qi {
|
|
|
3704
3732
|
* Example: .duration(200) → 200ms
|
|
3705
3733
|
*/
|
|
3706
3734
|
duration(o) {
|
|
3707
|
-
return this._transitionDuration = o, this._motionClass
|
|
3735
|
+
return this._transitionDuration = o, (this._motionClass || this._reveal || this._usesCssMotion) && (this._style["--fibo-dur"] = `${o}ms`, this._motionClass) ? this : (this._applyTransition(), this);
|
|
3708
3736
|
}
|
|
3709
3737
|
/**
|
|
3710
3738
|
* Set transition easing function
|
|
3711
3739
|
* Example: .easing('ease-in-out')
|
|
3712
3740
|
*/
|
|
3713
3741
|
easing(o) {
|
|
3714
|
-
return this._transitionEasing =
|
|
3742
|
+
return this._transitionEasing = $(o), (this._motionClass || this._reveal || this._usesCssMotion) && (this._style["--fibo-ease"] = this._transitionEasing, this._motionClass) ? this : (this._applyTransition(), this);
|
|
3715
3743
|
}
|
|
3716
3744
|
/** Alias of `.easing()`. `'spring'` becomes CSS `linear()`. */
|
|
3717
3745
|
ease(o) {
|
|
@@ -3722,7 +3750,7 @@ class qi {
|
|
|
3722
3750
|
* Example: .delay(100) → 100ms delay
|
|
3723
3751
|
*/
|
|
3724
3752
|
delay(o) {
|
|
3725
|
-
return this._transitionDelay = o, this._motionClass
|
|
3753
|
+
return this._transitionDelay = o, (this._motionClass || this._reveal || this._usesCssMotion) && (this._style["--fibo-delay"] = `${o}ms`, this._motionClass) ? this : (this._applyTransition(), this);
|
|
3726
3754
|
}
|
|
3727
3755
|
/**
|
|
3728
3756
|
* Set which properties to transition
|
|
@@ -3738,7 +3766,7 @@ class qi {
|
|
|
3738
3766
|
this._autoEffectTransition = !1, this._effectTransitionProps = [], this.replaceTransitionClass(
|
|
3739
3767
|
u.register(
|
|
3740
3768
|
"transition",
|
|
3741
|
-
|
|
3769
|
+
M(
|
|
3742
3770
|
this._transitionProperties,
|
|
3743
3771
|
this._transitionDuration,
|
|
3744
3772
|
this._transitionEasing,
|
|
@@ -3760,20 +3788,20 @@ class qi {
|
|
|
3760
3788
|
mass: (e ? o.mass : i == null ? void 0 : i.mass) ?? void 0
|
|
3761
3789
|
};
|
|
3762
3790
|
if (e) {
|
|
3763
|
-
const b =
|
|
3764
|
-
this._motionClass = `fibo-anim ${
|
|
3791
|
+
const b = Q(o.from), l = Q(o.to), h = u.registerKeyframes(Qo(`${b}=>${l}`), b, l);
|
|
3792
|
+
this._motionClass = `fibo-anim ${h}`, this._props["data-fibo-anim"] = "custom";
|
|
3765
3793
|
} else {
|
|
3766
3794
|
const b = Jo(o);
|
|
3767
3795
|
this._motionClass = `fibo-anim fibo-anim-${b}`, this._props["data-fibo-anim"] = b, (i == null ? void 0 : i.from) !== void 0 && (this._style["--fibo-from"] = typeof i.from == "number" ? `${i.from}px` : i.from), !n && b === "pop" && (n = "spring");
|
|
3768
3796
|
}
|
|
3769
|
-
const c =
|
|
3797
|
+
const c = $(n ?? "ease", s);
|
|
3770
3798
|
this._classNames.push(this._motionClass);
|
|
3771
|
-
const
|
|
3772
|
-
return
|
|
3799
|
+
const x = this._style;
|
|
3800
|
+
return x["--fibo-dur"] = `${r}ms`, x["--fibo-ease"] = c, x["--fibo-delay"] = `${f}ms`, this._reducedMotion === "never" && !this._classNames.includes("fibo-motion-force") && this._classNames.push("fibo-motion-force"), this;
|
|
3773
3801
|
}
|
|
3774
3802
|
/** CSS `linear()` spring. Works on `.animate()` and `.transition()` / `.hover()`. */
|
|
3775
3803
|
spring(o) {
|
|
3776
|
-
const i =
|
|
3804
|
+
const i = ho(o);
|
|
3777
3805
|
return this._transitionEasing = i, this._motionClass ? (this._style["--fibo-ease"] = i, this) : (this._applyTransition(), this);
|
|
3778
3806
|
}
|
|
3779
3807
|
reducedMotion(o = "reduce") {
|
|
@@ -3861,7 +3889,7 @@ class qi {
|
|
|
3861
3889
|
this._classNames.push(u.register("position", "sticky"));
|
|
3862
3890
|
const i = o === !0 ? "0px" : typeof o == "number" ? `${o}px` : o;
|
|
3863
3891
|
this._classNames.push(u.register("top", i));
|
|
3864
|
-
const e = o === !0 || o === 0 ?
|
|
3892
|
+
const e = o === !0 || o === 0 ? $i : typeof o == "number" ? `${Math.max(o, wo)}px` : o;
|
|
3865
3893
|
return this.publishStickyOffset(e), this;
|
|
3866
3894
|
}
|
|
3867
3895
|
/**
|
|
@@ -3900,11 +3928,11 @@ class qi {
|
|
|
3900
3928
|
}
|
|
3901
3929
|
/** @internal Convert inline background/border shorthands → longhands. */
|
|
3902
3930
|
promoteSurfaceLonghands() {
|
|
3903
|
-
this._style =
|
|
3931
|
+
this._style = D(this._style), this._cssStyles = D(this._cssStyles);
|
|
3904
3932
|
}
|
|
3905
3933
|
/** @internal Stamp translate3d(0,0,0) when no resting transform exists. */
|
|
3906
3934
|
ensureRestTransform() {
|
|
3907
|
-
const o =
|
|
3935
|
+
const o = eo(this._style);
|
|
3908
3936
|
o !== this._style && (this._style = o);
|
|
3909
3937
|
}
|
|
3910
3938
|
/**
|
|
@@ -3914,7 +3942,7 @@ class qi {
|
|
|
3914
3942
|
* @internal Used by PseudoStateBuilder.effect() and hover/press shortcuts.
|
|
3915
3943
|
*/
|
|
3916
3944
|
ensureEffectTransition(o) {
|
|
3917
|
-
if (this.
|
|
3945
|
+
if (this._transitionClass && !this._autoEffectTransition) return;
|
|
3918
3946
|
const i = new Set(this._effectTransitionProps);
|
|
3919
3947
|
for (const f of o) i.add(f);
|
|
3920
3948
|
i.add("transform"), i.add("opacity"), this._effectTransitionProps = [...i], this._autoEffectTransition = !0;
|
|
@@ -3922,7 +3950,7 @@ class qi {
|
|
|
3922
3950
|
this.replaceTransitionClass(
|
|
3923
3951
|
u.register(
|
|
3924
3952
|
"transition",
|
|
3925
|
-
|
|
3953
|
+
M(this._effectTransitionProps, r, e)
|
|
3926
3954
|
)
|
|
3927
3955
|
);
|
|
3928
3956
|
}
|
|
@@ -3945,10 +3973,12 @@ class qi {
|
|
|
3945
3973
|
return o ? (o(i), this) : i;
|
|
3946
3974
|
}
|
|
3947
3975
|
focus(o) {
|
|
3976
|
+
this.ensureInteractiveTransition();
|
|
3948
3977
|
const i = new v("focus", this);
|
|
3949
3978
|
return o ? (o(i), this) : i;
|
|
3950
3979
|
}
|
|
3951
3980
|
active(o) {
|
|
3981
|
+
this.ensureInteractiveTransition();
|
|
3952
3982
|
const i = new v("active", this);
|
|
3953
3983
|
return o ? (o(i), this) : i;
|
|
3954
3984
|
}
|
|
@@ -3977,7 +4007,7 @@ class qi {
|
|
|
3977
4007
|
return o ? (o(i), this) : i;
|
|
3978
4008
|
}
|
|
3979
4009
|
groupFocus(o) {
|
|
3980
|
-
const i = new v("focus", this, !0);
|
|
4010
|
+
const i = new v("focus-within", this, !0);
|
|
3981
4011
|
return o ? (o(i), this) : i;
|
|
3982
4012
|
}
|
|
3983
4013
|
groupActive(o) {
|
|
@@ -3992,7 +4022,7 @@ class qi {
|
|
|
3992
4022
|
return this._classNames.push("group"), this;
|
|
3993
4023
|
}
|
|
3994
4024
|
children(o) {
|
|
3995
|
-
return typeof o == "function" ? (this._childFunction = o, this._children = []) : (this._children =
|
|
4025
|
+
return typeof o == "function" ? (this._childFunction = o, this._children = []) : (this._children = K(o), this._childFunction = void 0), this;
|
|
3996
4026
|
}
|
|
3997
4027
|
getClassName() {
|
|
3998
4028
|
let o;
|
|
@@ -4000,7 +4030,7 @@ class qi {
|
|
|
4000
4030
|
}
|
|
4001
4031
|
getStyle() {
|
|
4002
4032
|
let o = { ...this._style, ...this._cssStyles };
|
|
4003
|
-
if (this._smoothSurface && (o =
|
|
4033
|
+
if (this._smoothSurface && (o = D(o), this._smoothNeedsRestTransform && (o = eo(o))), this._theme && (o = {
|
|
4004
4034
|
...Eo(this._theme),
|
|
4005
4035
|
...o,
|
|
4006
4036
|
backgroundColor: o.backgroundColor ?? this._theme.colors.background,
|
|
@@ -4011,18 +4041,18 @@ class qi {
|
|
|
4011
4041
|
o.transform = i ? `${i} ${this._transforms.join(" ")}` : this._transforms.join(" ");
|
|
4012
4042
|
}
|
|
4013
4043
|
if (this._animationConfig && this._animatedProps.size === 0) {
|
|
4014
|
-
const { duration: i = 300, curve: e = "easeOut", stiffness: r, damping: f } = this._animationConfig, n =
|
|
4044
|
+
const { duration: i = 300, curve: e = "easeOut", stiffness: r, damping: f } = this._animationConfig, n = $(e, { stiffness: r, damping: f });
|
|
4015
4045
|
o.transition = `all ${i}ms ${n}`;
|
|
4016
4046
|
}
|
|
4017
4047
|
return o;
|
|
4018
4048
|
}
|
|
4019
4049
|
processChildren() {
|
|
4020
|
-
const o = this._childFunction ?
|
|
4050
|
+
const o = this._childFunction ? K(this._childFunction) : this._children;
|
|
4021
4051
|
return this._staggerMs == null ? o : o.map(
|
|
4022
4052
|
(i, e) => g.createElement(
|
|
4023
4053
|
"span",
|
|
4024
4054
|
{
|
|
4025
|
-
key: g.isValidElement(i) &&
|
|
4055
|
+
key: g.isValidElement(i) && U(i.key) ? i.key : `fibo-stagger-${e}`,
|
|
4026
4056
|
className: "fibo-stagger-item",
|
|
4027
4057
|
style: { "--fibo-i": String(e) }
|
|
4028
4058
|
},
|
|
@@ -4034,7 +4064,7 @@ class qi {
|
|
|
4034
4064
|
return this._childFunction;
|
|
4035
4065
|
}
|
|
4036
4066
|
}
|
|
4037
|
-
const
|
|
4067
|
+
const Ti = /* @__PURE__ */ new Set([
|
|
4038
4068
|
"$$typeof",
|
|
4039
4069
|
"type",
|
|
4040
4070
|
"props",
|
|
@@ -4047,51 +4077,56 @@ const Ni = /* @__PURE__ */ new Set([
|
|
|
4047
4077
|
"_debugTask",
|
|
4048
4078
|
"_debugInfo"
|
|
4049
4079
|
]);
|
|
4050
|
-
function
|
|
4080
|
+
function Ni(t) {
|
|
4051
4081
|
var i;
|
|
4052
4082
|
const o = (i = t._props) == null ? void 0 : i.key;
|
|
4053
4083
|
if (!(o == null || o === ""))
|
|
4054
4084
|
return o;
|
|
4055
4085
|
}
|
|
4056
|
-
function
|
|
4057
|
-
const o = t._isObserver, i = t._signals, e = t._observers, r = t._state, f = t._providers, n =
|
|
4058
|
-
|
|
4059
|
-
let x = t.build();
|
|
4086
|
+
function Ei(t) {
|
|
4087
|
+
const o = t._isObserver, i = t._signals, e = t._observers, r = t._state, f = t._providers, n = Ni(t), s = () => {
|
|
4088
|
+
let h = t.build();
|
|
4060
4089
|
const p = t._animatedProps, m = t._animationConfig;
|
|
4061
|
-
p && p.size > 0 && (
|
|
4090
|
+
p && p.size > 0 && (h = g.createElement(hi, {
|
|
4062
4091
|
key: n,
|
|
4063
4092
|
animatedProps: p,
|
|
4064
4093
|
animationConfig: m,
|
|
4065
|
-
children:
|
|
4094
|
+
children: h
|
|
4066
4095
|
}));
|
|
4067
4096
|
const d = t._reveal;
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4097
|
+
if (d) {
|
|
4098
|
+
const S = t._style || {}, I = {};
|
|
4099
|
+
for (const C of ["--fibo-dur", "--fibo-ease", "--fibo-delay", "--fibo-stagger", "--fibo-from"])
|
|
4100
|
+
S[C] != null && (I[C] = S[C]);
|
|
4101
|
+
h = g.createElement(zi, {
|
|
4102
|
+
key: n,
|
|
4103
|
+
preset: d.preset,
|
|
4104
|
+
once: d.once,
|
|
4105
|
+
rootMargin: d.rootMargin,
|
|
4106
|
+
threshold: d.threshold,
|
|
4107
|
+
forceMotion: t._reducedMotion === "never",
|
|
4108
|
+
style: Object.keys(I).length > 0 ? I : void 0,
|
|
4109
|
+
children: h
|
|
4110
|
+
});
|
|
4111
|
+
}
|
|
4112
|
+
t._scrollProgress && (h = g.createElement(Ci, { key: n, children: h })), t._usesCssMotion && (h = g.createElement(
|
|
4078
4113
|
g.Fragment,
|
|
4079
4114
|
{ key: n },
|
|
4080
4115
|
g.createElement(oi),
|
|
4081
|
-
|
|
4116
|
+
h
|
|
4082
4117
|
));
|
|
4083
4118
|
const y = t._gesture;
|
|
4084
|
-
return y && (
|
|
4085
|
-
}, c = typeof t.hasStateManagement == "function" ? t.hasStateManagement() : !!(o || i && i.size || e && e.size || r && r.size || f && f.size),
|
|
4119
|
+
return y && (h = y.wrap(h)), h;
|
|
4120
|
+
}, c = typeof t.hasStateManagement == "function" ? t.hasStateManagement() : !!(o || i && i.size || e && e.size || r && r.size || f && f.size), x = o ? g.createElement(Oo, {
|
|
4086
4121
|
key: n,
|
|
4087
4122
|
children: s
|
|
4088
|
-
}) : null, b = () =>
|
|
4123
|
+
}) : null, b = () => x ?? s();
|
|
4089
4124
|
let l = b();
|
|
4090
|
-
return c && i && i.size > 0 ? l = g.createElement(
|
|
4125
|
+
return c && i && i.size > 0 ? l = g.createElement(jo, {
|
|
4091
4126
|
key: n,
|
|
4092
4127
|
signals: i,
|
|
4093
4128
|
children: b
|
|
4094
|
-
}) : c && e && e.size > 0 && (l = g.createElement(
|
|
4129
|
+
}) : c && e && e.size > 0 && (l = g.createElement(Do, {
|
|
4095
4130
|
key: n,
|
|
4096
4131
|
observables: e,
|
|
4097
4132
|
children: b
|
|
@@ -4105,7 +4140,7 @@ function Ri(t) {
|
|
|
4105
4140
|
children: l
|
|
4106
4141
|
})), l;
|
|
4107
4142
|
}
|
|
4108
|
-
function
|
|
4143
|
+
function yo(t, o, i) {
|
|
4109
4144
|
const e = function() {
|
|
4110
4145
|
return o();
|
|
4111
4146
|
};
|
|
@@ -4122,12 +4157,12 @@ function wo(t, o, i) {
|
|
|
4122
4157
|
writable: !0
|
|
4123
4158
|
}), t.ref = r.ref ?? null, t.__fiboElementProps = r.props ?? {}, r._owner !== void 0 && (t._owner = r._owner), t._store = { validated: 1 };
|
|
4124
4159
|
}
|
|
4125
|
-
function
|
|
4160
|
+
function Ji(t) {
|
|
4126
4161
|
return (...o) => {
|
|
4127
|
-
const i = new t(...o), e = t.name.replace(/Builder$/, "") || "Fibo", r = () =>
|
|
4128
|
-
return
|
|
4162
|
+
const i = new t(...o), e = t.name.replace(/Builder$/, "") || "Fibo", r = () => Ei(i);
|
|
4163
|
+
return yo(i, r, e), new Proxy(i, {
|
|
4129
4164
|
get(f, n, s) {
|
|
4130
|
-
var c,
|
|
4165
|
+
var c, x;
|
|
4131
4166
|
if (n === "build")
|
|
4132
4167
|
return r;
|
|
4133
4168
|
if (n === "key") {
|
|
@@ -4135,19 +4170,19 @@ function Qi(t) {
|
|
|
4135
4170
|
if (b != null && b !== "")
|
|
4136
4171
|
return String(b);
|
|
4137
4172
|
if (!f.__fiboKeyFn) {
|
|
4138
|
-
const l = (
|
|
4173
|
+
const l = (h) => (f.key(h), s);
|
|
4139
4174
|
f.__fiboKeyFn = l;
|
|
4140
4175
|
}
|
|
4141
4176
|
return f.__fiboKeyFn;
|
|
4142
4177
|
}
|
|
4143
4178
|
if (n === "props") {
|
|
4144
|
-
const b = (
|
|
4179
|
+
const b = (x = f._props) == null ? void 0 : x.key, l = {
|
|
4145
4180
|
...f.__fiboElementProps ?? {},
|
|
4146
4181
|
...b != null && b !== "" ? { key: String(b) } : {}
|
|
4147
|
-
},
|
|
4148
|
-
return typeof
|
|
4182
|
+
}, h = Object.getPrototypeOf(f).props;
|
|
4183
|
+
return typeof h == "function" ? Object.assign((m) => (h.call(f, m), s), l) : l;
|
|
4149
4184
|
}
|
|
4150
|
-
return
|
|
4185
|
+
return Ti.has(n) || Reflect.has(f, n) ? Reflect.get(f, n, s) : (b) => {
|
|
4151
4186
|
const l = n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), p = ["opacity", "z-index", "flex", "flex-grow", "flex-shrink", "order", "font-weight", "line-height"].includes(l), m = typeof b == "number" && !p ? `${b}px` : String(b), d = u.register(l, m);
|
|
4152
4187
|
return f.className(d), s;
|
|
4153
4188
|
};
|
|
@@ -4155,7 +4190,7 @@ function Qi(t) {
|
|
|
4155
4190
|
});
|
|
4156
4191
|
};
|
|
4157
4192
|
}
|
|
4158
|
-
const
|
|
4193
|
+
const Ri = ({
|
|
4159
4194
|
signal: t,
|
|
4160
4195
|
builder: o,
|
|
4161
4196
|
loading: i,
|
|
@@ -4167,13 +4202,13 @@ const Ii = ({
|
|
|
4167
4202
|
() => t.value
|
|
4168
4203
|
), f = r == null ? void 0 : r.error;
|
|
4169
4204
|
return f && e ? e(f) : ((r == null ? void 0 : r.isLoading) || (r == null ? void 0 : r.loading)) === !0 && i ? i() : o ? o(r) : null;
|
|
4170
|
-
},
|
|
4171
|
-
class
|
|
4205
|
+
}, Ii = g.memo(Ri);
|
|
4206
|
+
class Fi {
|
|
4172
4207
|
constructor(o) {
|
|
4173
4208
|
a(this, "_loading");
|
|
4174
4209
|
a(this, "_error");
|
|
4175
4210
|
a(this, "_builder");
|
|
4176
|
-
this._signal = o,
|
|
4211
|
+
this._signal = o, yo(this, () => this.build(), "ValueBuilder");
|
|
4177
4212
|
}
|
|
4178
4213
|
loading(o) {
|
|
4179
4214
|
return this._loading = typeof o == "function" ? o : () => o, this;
|
|
@@ -4188,7 +4223,7 @@ class Xi {
|
|
|
4188
4223
|
return this._builder = o, this;
|
|
4189
4224
|
}
|
|
4190
4225
|
build() {
|
|
4191
|
-
return g.createElement(
|
|
4226
|
+
return g.createElement(Ii, {
|
|
4192
4227
|
signal: this._signal,
|
|
4193
4228
|
builder: this._builder,
|
|
4194
4229
|
loading: this._loading,
|
|
@@ -4196,59 +4231,60 @@ class Xi {
|
|
|
4196
4231
|
});
|
|
4197
4232
|
}
|
|
4198
4233
|
}
|
|
4199
|
-
function
|
|
4200
|
-
return new
|
|
4234
|
+
function ot(t) {
|
|
4235
|
+
return new Fi(t);
|
|
4201
4236
|
}
|
|
4202
4237
|
export {
|
|
4203
|
-
|
|
4204
|
-
|
|
4238
|
+
Hi as A,
|
|
4239
|
+
Ui as B,
|
|
4205
4240
|
Xo as C,
|
|
4206
|
-
|
|
4207
|
-
|
|
4241
|
+
Ji as D,
|
|
4242
|
+
Qi as E,
|
|
4208
4243
|
mi as F,
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4244
|
+
Lo as G,
|
|
4245
|
+
Io as H,
|
|
4246
|
+
vo as I,
|
|
4247
|
+
w as J,
|
|
4248
|
+
Jo as K,
|
|
4249
|
+
Po as L,
|
|
4250
|
+
q as M,
|
|
4251
|
+
Wo as N,
|
|
4217
4252
|
Mo as O,
|
|
4218
4253
|
Vo as P,
|
|
4219
|
-
|
|
4254
|
+
Ho as Q,
|
|
4220
4255
|
Di as R,
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4256
|
+
X as S,
|
|
4257
|
+
Uo as T,
|
|
4258
|
+
K as U,
|
|
4259
|
+
ot as V,
|
|
4260
|
+
J as W,
|
|
4261
|
+
j as X,
|
|
4262
|
+
po as Y,
|
|
4263
|
+
ti as Z,
|
|
4264
|
+
Pi as a,
|
|
4265
|
+
ao as b,
|
|
4266
|
+
Oi as c,
|
|
4231
4267
|
Oo as d,
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4268
|
+
Vi as e,
|
|
4269
|
+
zi as f,
|
|
4270
|
+
co as g,
|
|
4271
|
+
Ci as h,
|
|
4236
4272
|
Ki as i,
|
|
4237
4273
|
Zi as j,
|
|
4238
|
-
|
|
4274
|
+
qi as k,
|
|
4239
4275
|
Si as l,
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4276
|
+
ho as m,
|
|
4277
|
+
$ as n,
|
|
4278
|
+
Ai as o,
|
|
4243
4279
|
pi as p,
|
|
4244
4280
|
di as q,
|
|
4245
4281
|
Ro as r,
|
|
4246
|
-
|
|
4282
|
+
Li as s,
|
|
4247
4283
|
xi as t,
|
|
4248
|
-
|
|
4284
|
+
ji as u,
|
|
4249
4285
|
vi as v,
|
|
4250
4286
|
oi as w,
|
|
4251
4287
|
Gi as x,
|
|
4252
|
-
|
|
4253
|
-
|
|
4288
|
+
Wi as y,
|
|
4289
|
+
xo as z
|
|
4254
4290
|
};
|