fiboui 2.6.0 → 2.6.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/{Link-dHd4e7BS.js → Link-BIjIaYAb.js} +1 -1
- package/dist/{client-C9ZVisXx.js → client-De3cGjVE.js} +353 -329
- package/dist/content.js +3 -3
- package/dist/core.js +2 -2
- package/dist/{index-bzEYBKyp.js → index-BOR_ChBS.js} +2 -2
- package/dist/{index-BsGBv5Ep.js → index-CeAfi1Bb.js} +1 -1
- package/dist/{index-eboXR8k_.js → index-D37UAFfC.js} +98 -89
- package/dist/{index-BQ1MDC96.js → index-DJMMkBOg.js} +1 -1
- package/dist/{index-BGRLxUem.js → index-DswwFrZn.js} +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.js +14 -14
- package/dist/interactive.js +2 -2
- package/dist/layout.js +3 -3
- package/dist/{mount-D2kCLLwq.js → mount-BHYOA7Dg.js} +1 -1
- package/dist/navigation.js +2 -2
- package/dist/server.js +462 -429
- package/dist/structure.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.js +1 -1
- package/package.json +1 -1
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
var kt = Object.defineProperty;
|
|
3
3
|
var _t = (t, o, e) => o in t ? kt(t, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[o] = e;
|
|
4
4
|
var c = (t, o, e) => _t(t, typeof o != "symbol" ? o + "" : o, e);
|
|
5
|
-
import l, { useCallback as ro, useSyncExternalStore as uo, useRef as U, createContext as yo, useContext as
|
|
5
|
+
import l, { useCallback as ro, useSyncExternalStore as uo, useRef as U, createContext as yo, useContext as Ro, useEffect as Z, useState as G, memo as Re, cloneElement as St, useMemo as Ct, useLayoutEffect as oe, Component as zt, Suspense as Et } from "react";
|
|
6
6
|
import { jsx as W, Fragment as re, jsxs as Po } from "react/jsx-runtime";
|
|
7
|
-
class
|
|
7
|
+
class Ne {
|
|
8
8
|
constructor() {
|
|
9
9
|
c(this, "activeEffect", null);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
const Be = new
|
|
12
|
+
const Be = new Ne(), Vo = [Be];
|
|
13
13
|
function Ae() {
|
|
14
|
-
return new
|
|
14
|
+
return new Ne();
|
|
15
15
|
}
|
|
16
16
|
function Le() {
|
|
17
17
|
return Vo[Vo.length - 1] ?? Be;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Xo() {
|
|
20
20
|
return Le().activeEffect;
|
|
21
21
|
}
|
|
22
22
|
function Pe(t, o) {
|
|
@@ -27,7 +27,7 @@ function Pe(t, o) {
|
|
|
27
27
|
Vo.pop();
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function $o(t) {
|
|
31
31
|
const o = Le(), e = o.activeEffect;
|
|
32
32
|
return o.activeEffect = t, e;
|
|
33
33
|
}
|
|
@@ -38,11 +38,11 @@ class Me {
|
|
|
38
38
|
this.fn = o, this.run();
|
|
39
39
|
}
|
|
40
40
|
run() {
|
|
41
|
-
const o =
|
|
41
|
+
const o = $o(this);
|
|
42
42
|
try {
|
|
43
43
|
this.cleanup(), this.fn();
|
|
44
44
|
} finally {
|
|
45
|
-
|
|
45
|
+
$o(o);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
track(o) {
|
|
@@ -65,11 +65,11 @@ class Tt {
|
|
|
65
65
|
this._onInvalidate = o;
|
|
66
66
|
}
|
|
67
67
|
execute(o) {
|
|
68
|
-
const e =
|
|
68
|
+
const e = $o(this);
|
|
69
69
|
try {
|
|
70
70
|
return this.cleanup(), o();
|
|
71
71
|
} finally {
|
|
72
|
-
|
|
72
|
+
$o(e);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
track(o) {
|
|
@@ -93,7 +93,7 @@ class To {
|
|
|
93
93
|
this._value = o;
|
|
94
94
|
}
|
|
95
95
|
get value() {
|
|
96
|
-
const o =
|
|
96
|
+
const o = Xo();
|
|
97
97
|
return o && o.track(this), this._value;
|
|
98
98
|
}
|
|
99
99
|
set value(o) {
|
|
@@ -125,7 +125,7 @@ class To {
|
|
|
125
125
|
function Ln(t) {
|
|
126
126
|
return new To(t);
|
|
127
127
|
}
|
|
128
|
-
class
|
|
128
|
+
class It {
|
|
129
129
|
constructor(o) {
|
|
130
130
|
c(this, "listeners", /* @__PURE__ */ new Set());
|
|
131
131
|
c(this, "effects", /* @__PURE__ */ new Set());
|
|
@@ -138,13 +138,13 @@ class $t {
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
get value() {
|
|
141
|
-
const o =
|
|
141
|
+
const o = Xo();
|
|
142
142
|
if (o && o.track(this), this._dirty) {
|
|
143
|
-
const e =
|
|
143
|
+
const e = $o(this.internalEffect);
|
|
144
144
|
try {
|
|
145
145
|
this.internalEffect.cleanup(), this._value = this.fn(), this._dirty = !1;
|
|
146
146
|
} finally {
|
|
147
|
-
|
|
147
|
+
$o(e);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
return this._value;
|
|
@@ -173,16 +173,16 @@ class $t {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
function Pn(t) {
|
|
176
|
-
return new
|
|
176
|
+
return new It(t);
|
|
177
177
|
}
|
|
178
|
-
class
|
|
178
|
+
class $t {
|
|
179
179
|
constructor(o) {
|
|
180
180
|
c(this, "listeners", /* @__PURE__ */ new Set());
|
|
181
181
|
c(this, "effects", /* @__PURE__ */ new Set());
|
|
182
182
|
this._value = o;
|
|
183
183
|
}
|
|
184
184
|
get() {
|
|
185
|
-
const o =
|
|
185
|
+
const o = Xo();
|
|
186
186
|
return o && o.track(this), this._value;
|
|
187
187
|
}
|
|
188
188
|
set(o) {
|
|
@@ -202,16 +202,16 @@ class Nt {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
function Mn(t) {
|
|
205
|
-
return new
|
|
205
|
+
return new $t(t);
|
|
206
206
|
}
|
|
207
|
-
class
|
|
207
|
+
class Ft {
|
|
208
208
|
constructor(o) {
|
|
209
209
|
c(this, "listeners", /* @__PURE__ */ new Set());
|
|
210
210
|
c(this, "effects", /* @__PURE__ */ new Set());
|
|
211
211
|
this.state = o;
|
|
212
212
|
}
|
|
213
213
|
getState() {
|
|
214
|
-
const o =
|
|
214
|
+
const o = Xo();
|
|
215
215
|
return o && o.track(this), this.state;
|
|
216
216
|
}
|
|
217
217
|
setState(o) {
|
|
@@ -232,12 +232,12 @@ class It {
|
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
function On(t) {
|
|
235
|
-
return new
|
|
235
|
+
return new Ft(t);
|
|
236
236
|
}
|
|
237
|
-
const Oe = "FIBO:",
|
|
238
|
-
function
|
|
237
|
+
const Oe = "FIBO:", Rt = "", We = /\uE000FIBO:(\d+)\uE001/g, jo = [];
|
|
238
|
+
function Nt(t) {
|
|
239
239
|
const o = jo.length;
|
|
240
|
-
return jo.push(t), `${Oe}${o}${
|
|
240
|
+
return jo.push(t), `${Oe}${o}${Rt}`;
|
|
241
241
|
}
|
|
242
242
|
function Bt(t) {
|
|
243
243
|
return t.includes(Oe);
|
|
@@ -264,7 +264,7 @@ class Pt {
|
|
|
264
264
|
this.signal = o;
|
|
265
265
|
}
|
|
266
266
|
toString() {
|
|
267
|
-
return
|
|
267
|
+
return Nt(this.signal);
|
|
268
268
|
}
|
|
269
269
|
valueOf() {
|
|
270
270
|
return this.toString();
|
|
@@ -296,9 +296,9 @@ function jn(t) {
|
|
|
296
296
|
}
|
|
297
297
|
const Ot = Ae(), He = yo(Ot);
|
|
298
298
|
function Ve() {
|
|
299
|
-
return
|
|
299
|
+
return Ro(He);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Dn({ children: t, scope: o }) {
|
|
302
302
|
const e = U(o ?? Ae()).current;
|
|
303
303
|
return /* @__PURE__ */ W(He.Provider, { value: e, children: t });
|
|
304
304
|
}
|
|
@@ -324,8 +324,8 @@ function Wt({ children: t }) {
|
|
|
324
324
|
return /* @__PURE__ */ W(re, { children: f });
|
|
325
325
|
}
|
|
326
326
|
const Ht = yo(/* @__PURE__ */ new Map()), je = yo(null);
|
|
327
|
-
function
|
|
328
|
-
const o =
|
|
327
|
+
function Xn(t) {
|
|
328
|
+
const o = Ro(je);
|
|
329
329
|
if (!o)
|
|
330
330
|
throw new Error("useBuilderState must be used under a builder that called .state()");
|
|
331
331
|
return [o.get(t), (e) => o.set(t, e)];
|
|
@@ -356,7 +356,7 @@ function jt({ observables: t, children: o }) {
|
|
|
356
356
|
}, [t]), r = ro(() => e.current, []);
|
|
357
357
|
return uo(i, r, r), /* @__PURE__ */ W(re, { children: typeof o == "function" ? o() : o });
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Dt({ signals: t, children: o }) {
|
|
360
360
|
const e = U(0), i = ro((n) => {
|
|
361
361
|
const s = Array.from(t).map(
|
|
362
362
|
(f) => f.subscribe(() => {
|
|
@@ -367,15 +367,15 @@ function Xt({ signals: t, children: o }) {
|
|
|
367
367
|
}, [t]), r = ro(() => e.current, []);
|
|
368
368
|
return uo(i, r, r), /* @__PURE__ */ W(re, { children: typeof o == "function" ? o() : o });
|
|
369
369
|
}
|
|
370
|
-
const
|
|
370
|
+
const De = yo(/* @__PURE__ */ new Map());
|
|
371
371
|
function Yn(t) {
|
|
372
|
-
const o =
|
|
372
|
+
const o = Ro(De);
|
|
373
373
|
return o == null ? void 0 : o.get(t);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
return /* @__PURE__ */ W(
|
|
375
|
+
function Xt({ providers: t = /* @__PURE__ */ new Map(), children: o }) {
|
|
376
|
+
return /* @__PURE__ */ W(De.Provider, { value: t, children: o });
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function Xe({
|
|
379
379
|
compute: t,
|
|
380
380
|
as: o = "span",
|
|
381
381
|
className: e,
|
|
@@ -392,7 +392,7 @@ function De({
|
|
|
392
392
|
}), [t, n]), l.createElement(o, { ref: s, className: e, style: i, ...r }, f);
|
|
393
393
|
}
|
|
394
394
|
function Gn(t, o) {
|
|
395
|
-
return l.createElement(
|
|
395
|
+
return l.createElement(Xe, {
|
|
396
396
|
compute: () => String(t.value),
|
|
397
397
|
as: o
|
|
398
398
|
});
|
|
@@ -426,7 +426,7 @@ function Un(t, o, e) {
|
|
|
426
426
|
return i < 768 && o.mobile ? r = { ...r, ...o.mobile } : i >= 768 && i < 1024 && o.tablet ? r = { ...r, ...o.tablet } : i >= 1024 && o.desktop && (r = { ...r, ...o.desktop }), r;
|
|
427
427
|
}
|
|
428
428
|
function Kn(t, o) {
|
|
429
|
-
const e =
|
|
429
|
+
const e = Re(t, o);
|
|
430
430
|
return (i) => l.createElement(e, i);
|
|
431
431
|
}
|
|
432
432
|
const Kt = {
|
|
@@ -540,8 +540,8 @@ function Ye(t = {}) {
|
|
|
540
540
|
b[b.length - 1] !== 1 && b.push(1);
|
|
541
541
|
const d = Math.max(1, Math.floor((b.length - 1) / 24)), x = [];
|
|
542
542
|
for (let p = 0; p < b.length; p += d) {
|
|
543
|
-
const T = p / (b.length - 1),
|
|
544
|
-
x.push(p === 0 ? `${
|
|
543
|
+
const T = p / (b.length - 1), $ = Math.round(b[p] * 1e4) / 1e4;
|
|
544
|
+
x.push(p === 0 ? `${$}` : `${$} ${Math.round(T * 1e4) / 100}%`);
|
|
545
545
|
}
|
|
546
546
|
const m = `linear(${x.join(", ")})`;
|
|
547
547
|
return ue.set(r, m), m;
|
|
@@ -911,12 +911,12 @@ function ni(t) {
|
|
|
911
911
|
const o = t.match(/oklch\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*\)/);
|
|
912
912
|
if (!o)
|
|
913
913
|
return t;
|
|
914
|
-
const [, e, i, r] = o, n = parseFloat(e), s = parseFloat(i), f = parseFloat(r), a = s * Math.cos(f * Math.PI / 180), u = s * Math.sin(f * Math.PI / 180), b = n + 0.3963377774 * a + 0.2158037573 * u, h = n - 0.1055613458 * a - 0.0638541728 * u, d = n - 0.0894841775 * a - 1.291485548 * u, x = b * b * b, m = h * h * h, p = d * d * d, T = 4.0767416621 * x - 3.3077115913 * m + 0.2309699292 * p,
|
|
914
|
+
const [, e, i, r] = o, n = parseFloat(e), s = parseFloat(i), f = parseFloat(r), a = s * Math.cos(f * Math.PI / 180), u = s * Math.sin(f * Math.PI / 180), b = n + 0.3963377774 * a + 0.2158037573 * u, h = n - 0.1055613458 * a - 0.0638541728 * u, d = n - 0.0894841775 * a - 1.291485548 * u, x = b * b * b, m = h * h * h, p = d * d * d, T = 4.0767416621 * x - 3.3077115913 * m + 0.2309699292 * p, $ = -1.2684380046 * x + 2.6097574011 * m - 0.3413193965 * p, M = -0.0041960863 * x - 0.7034186147 * m + 1.707614701 * p, F = (v) => v >= 31308e-7 ? 1.055 * v ** (1 / 2.4) - 0.055 : 12.92 * v, N = Math.max(0, Math.min(1, F(T))), D = Math.max(0, Math.min(1, F($))), I = Math.max(0, Math.min(1, F(M))), A = (v) => {
|
|
915
915
|
var P;
|
|
916
916
|
const z = (P = Math.round(v * 255).toString(16)) == null ? void 0 : P.toUpperCase();
|
|
917
917
|
return z.length === 1 ? `0${z}` : z;
|
|
918
918
|
};
|
|
919
|
-
return `#${A(
|
|
919
|
+
return `#${A(N)}${A(D)}${A(I)}`;
|
|
920
920
|
}
|
|
921
921
|
function si(t) {
|
|
922
922
|
const o = {}, e = {}, i = t.split(`
|
|
@@ -3425,7 +3425,7 @@ class no {
|
|
|
3425
3425
|
return this.parentBuilder;
|
|
3426
3426
|
}
|
|
3427
3427
|
}
|
|
3428
|
-
function
|
|
3428
|
+
function Ii({
|
|
3429
3429
|
preset: t = "fadeUp",
|
|
3430
3430
|
once: o = !0,
|
|
3431
3431
|
rootMargin: e = "0px 0px -8% 0px",
|
|
@@ -3486,13 +3486,13 @@ function fs(t) {
|
|
|
3486
3486
|
function as() {
|
|
3487
3487
|
return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", "view()");
|
|
3488
3488
|
}
|
|
3489
|
-
function
|
|
3489
|
+
function $i() {
|
|
3490
3490
|
return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", "scroll()");
|
|
3491
3491
|
}
|
|
3492
|
-
function
|
|
3492
|
+
function Fi({ children: t }) {
|
|
3493
3493
|
const o = U(null);
|
|
3494
3494
|
return Z(() => {
|
|
3495
|
-
if (fo(),
|
|
3495
|
+
if (fo(), $i()) return;
|
|
3496
3496
|
const e = () => {
|
|
3497
3497
|
var n, s;
|
|
3498
3498
|
return ((n = o.current) == null ? void 0 : n.querySelector(".fibo-scroll-progress")) ?? ((s = o.current) == null ? void 0 : s.firstElementChild);
|
|
@@ -3511,7 +3511,7 @@ function Ii({ children: t }) {
|
|
|
3511
3511
|
t
|
|
3512
3512
|
);
|
|
3513
3513
|
}
|
|
3514
|
-
function
|
|
3514
|
+
function Ri({
|
|
3515
3515
|
signal: t,
|
|
3516
3516
|
builder: o,
|
|
3517
3517
|
loading: e,
|
|
@@ -3528,7 +3528,7 @@ function Fi({
|
|
|
3528
3528
|
), n = r == null ? void 0 : r.error;
|
|
3529
3529
|
return n && i ? i(n) : ((r == null ? void 0 : r.isLoading) || (r == null ? void 0 : r.loading)) === !0 && e ? e() : o ? o(r) : null;
|
|
3530
3530
|
}
|
|
3531
|
-
const
|
|
3531
|
+
const Ni = Re(Ri), Bi = {
|
|
3532
3532
|
name: "material",
|
|
3533
3533
|
colors: {
|
|
3534
3534
|
primary: "#6750A4",
|
|
@@ -4060,11 +4060,36 @@ class ao {
|
|
|
4060
4060
|
const e = typeof o == "number" ? `${o}px` : o, i = E.register("margin-top", e), r = E.register("margin-bottom", e);
|
|
4061
4061
|
return this._classNames.push(i, r), this;
|
|
4062
4062
|
}
|
|
4063
|
+
/** Inline layout wins over a host that hardcodes flex on the element (Form, Scaffold). */
|
|
4064
|
+
layoutStyle(o) {
|
|
4065
|
+
return this._style = { ...this._style, ...o }, this;
|
|
4066
|
+
}
|
|
4063
4067
|
flexDirection(o) {
|
|
4064
|
-
return this.
|
|
4068
|
+
return this.layoutStyle({ flexDirection: o });
|
|
4065
4069
|
}
|
|
4066
4070
|
alignItems(o) {
|
|
4067
|
-
|
|
4071
|
+
const e = {
|
|
4072
|
+
start: "flex-start",
|
|
4073
|
+
center: "center",
|
|
4074
|
+
end: "flex-end",
|
|
4075
|
+
stretch: "stretch",
|
|
4076
|
+
baseline: "baseline"
|
|
4077
|
+
};
|
|
4078
|
+
return this.layoutStyle({ alignItems: e[o] });
|
|
4079
|
+
}
|
|
4080
|
+
alignSelf(o) {
|
|
4081
|
+
const e = {
|
|
4082
|
+
auto: "auto",
|
|
4083
|
+
start: "flex-start",
|
|
4084
|
+
center: "center",
|
|
4085
|
+
end: "flex-end",
|
|
4086
|
+
stretch: "stretch",
|
|
4087
|
+
baseline: "baseline"
|
|
4088
|
+
};
|
|
4089
|
+
return this.layoutStyle({ alignSelf: e[o] });
|
|
4090
|
+
}
|
|
4091
|
+
flexWrap(o) {
|
|
4092
|
+
return this.layoutStyle({ flexWrap: o });
|
|
4068
4093
|
}
|
|
4069
4094
|
/**
|
|
4070
4095
|
* Main-axis distribution. Accepts Tailwind shortcuts (`between`) and CSS/Flutter
|
|
@@ -4072,73 +4097,78 @@ class ao {
|
|
|
4072
4097
|
*/
|
|
4073
4098
|
justifyContent(o) {
|
|
4074
4099
|
const e = {
|
|
4075
|
-
start: "
|
|
4076
|
-
center: "
|
|
4077
|
-
end: "
|
|
4078
|
-
between: "
|
|
4079
|
-
around: "
|
|
4080
|
-
evenly: "
|
|
4081
|
-
"space-between": "
|
|
4082
|
-
"space-around": "
|
|
4083
|
-
"space-evenly": "
|
|
4084
|
-
spaceBetween: "
|
|
4085
|
-
spaceAround: "
|
|
4086
|
-
spaceEvenly: "
|
|
4100
|
+
start: "flex-start",
|
|
4101
|
+
center: "center",
|
|
4102
|
+
end: "flex-end",
|
|
4103
|
+
between: "space-between",
|
|
4104
|
+
around: "space-around",
|
|
4105
|
+
evenly: "space-evenly",
|
|
4106
|
+
"space-between": "space-between",
|
|
4107
|
+
"space-around": "space-around",
|
|
4108
|
+
"space-evenly": "space-evenly",
|
|
4109
|
+
spaceBetween: "space-between",
|
|
4110
|
+
spaceAround: "space-around",
|
|
4111
|
+
spaceEvenly: "space-evenly"
|
|
4087
4112
|
};
|
|
4088
|
-
return this.
|
|
4113
|
+
return this.layoutStyle({ justifyContent: e[o] ?? o });
|
|
4089
4114
|
}
|
|
4090
4115
|
flex(o) {
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4116
|
+
const i = o === void 0 ? void 0 : typeof o == "number" ? String(o) : {
|
|
4117
|
+
1: "1 1 0%",
|
|
4118
|
+
auto: "1 1 auto",
|
|
4119
|
+
initial: "0 1 auto",
|
|
4120
|
+
none: "none"
|
|
4121
|
+
}[o] ?? o;
|
|
4122
|
+
return this.layoutStyle({ display: "flex", ...i !== void 0 ? { flex: i } : {} });
|
|
4097
4123
|
}
|
|
4098
4124
|
grid() {
|
|
4099
|
-
return this.
|
|
4125
|
+
return this.layoutStyle({ display: "grid" });
|
|
4100
4126
|
}
|
|
4101
4127
|
inlineFlex() {
|
|
4102
|
-
return this.
|
|
4128
|
+
return this.layoutStyle({ display: "inline-flex" });
|
|
4103
4129
|
}
|
|
4104
4130
|
inlineGrid() {
|
|
4105
|
-
return this.
|
|
4131
|
+
return this.layoutStyle({ display: "inline-grid" });
|
|
4106
4132
|
}
|
|
4107
4133
|
block() {
|
|
4108
|
-
return this.
|
|
4134
|
+
return this.layoutStyle({ display: "block" });
|
|
4109
4135
|
}
|
|
4110
4136
|
inlineBlock() {
|
|
4111
|
-
return this.
|
|
4137
|
+
return this.layoutStyle({ display: "inline-block" });
|
|
4112
4138
|
}
|
|
4113
4139
|
hidden() {
|
|
4114
|
-
return this.
|
|
4140
|
+
return this.layoutStyle({ display: "none" });
|
|
4115
4141
|
}
|
|
4116
4142
|
center() {
|
|
4117
|
-
return this.
|
|
4143
|
+
return this.layoutStyle({
|
|
4144
|
+
display: "flex",
|
|
4145
|
+
alignItems: "center",
|
|
4146
|
+
justifyContent: "center"
|
|
4147
|
+
});
|
|
4118
4148
|
}
|
|
4119
4149
|
centerX() {
|
|
4120
|
-
return this.
|
|
4150
|
+
return this.layoutStyle({ display: "flex", justifyContent: "center" });
|
|
4121
4151
|
}
|
|
4122
4152
|
centerY() {
|
|
4123
|
-
return this.
|
|
4153
|
+
return this.layoutStyle({ display: "flex", alignItems: "center" });
|
|
4124
4154
|
}
|
|
4125
4155
|
spaceBetween() {
|
|
4126
|
-
return this.
|
|
4156
|
+
return this.layoutStyle({ justifyContent: "space-between" });
|
|
4127
4157
|
}
|
|
4128
4158
|
spaceAround() {
|
|
4129
|
-
return this.
|
|
4159
|
+
return this.layoutStyle({ justifyContent: "space-around" });
|
|
4130
4160
|
}
|
|
4131
4161
|
spaceEvenly() {
|
|
4132
|
-
return this.
|
|
4162
|
+
return this.layoutStyle({ justifyContent: "space-evenly" });
|
|
4133
4163
|
}
|
|
4134
4164
|
fill() {
|
|
4135
|
-
return this.
|
|
4165
|
+
return this.layoutStyle({ width: "100%", height: "100%" });
|
|
4136
4166
|
}
|
|
4137
4167
|
fillWidth() {
|
|
4138
|
-
return this.
|
|
4168
|
+
return this.layoutStyle({ width: "100%" });
|
|
4139
4169
|
}
|
|
4140
4170
|
fillHeight() {
|
|
4141
|
-
return this.
|
|
4171
|
+
return this.layoutStyle({ height: "100%" });
|
|
4142
4172
|
}
|
|
4143
4173
|
square(o) {
|
|
4144
4174
|
const e = typeof o == "number" ? `${o}px` : o, i = E.register("width", e), r = E.register("height", e);
|
|
@@ -4409,16 +4439,10 @@ class ao {
|
|
|
4409
4439
|
return this;
|
|
4410
4440
|
}
|
|
4411
4441
|
gap(o) {
|
|
4412
|
-
if (typeof o == "
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
this._classNames.push(o);
|
|
4417
|
-
else {
|
|
4418
|
-
const e = E.register("gap", o);
|
|
4419
|
-
this._classNames.push(e);
|
|
4420
|
-
}
|
|
4421
|
-
return this;
|
|
4442
|
+
if (typeof o == "string" && o.startsWith("gap-"))
|
|
4443
|
+
return this._classNames.push(o), this;
|
|
4444
|
+
const e = typeof o == "number" ? `${o}px` : o;
|
|
4445
|
+
return this.layoutStyle({ gap: e });
|
|
4422
4446
|
}
|
|
4423
4447
|
clean() {
|
|
4424
4448
|
return this._classNames.push(
|
|
@@ -4924,14 +4948,14 @@ const ji = /* @__PURE__ */ new Set([
|
|
|
4924
4948
|
"_debugTask",
|
|
4925
4949
|
"_debugInfo"
|
|
4926
4950
|
]);
|
|
4927
|
-
function
|
|
4951
|
+
function Di(t) {
|
|
4928
4952
|
var e;
|
|
4929
4953
|
const o = (e = t._props) == null ? void 0 : e.key;
|
|
4930
4954
|
if (!(o == null || o === ""))
|
|
4931
4955
|
return o;
|
|
4932
4956
|
}
|
|
4933
|
-
function
|
|
4934
|
-
const o = t._isObserver, e = t._signals, i = t._observers, r = t._state, n = t._providers, s =
|
|
4957
|
+
function Xi(t) {
|
|
4958
|
+
const o = t._isObserver, e = t._signals, i = t._observers, r = t._state, n = t._providers, s = Di(t), f = () => {
|
|
4935
4959
|
let d = t.build();
|
|
4936
4960
|
const x = t._animatedProps, m = t._animationConfig;
|
|
4937
4961
|
x && x.size > 0 && (d = l.createElement(di, {
|
|
@@ -4942,10 +4966,10 @@ function Di(t) {
|
|
|
4942
4966
|
}));
|
|
4943
4967
|
const p = t._reveal;
|
|
4944
4968
|
if (p) {
|
|
4945
|
-
const
|
|
4946
|
-
for (const
|
|
4947
|
-
|
|
4948
|
-
d = l.createElement(
|
|
4969
|
+
const $ = t._style || {}, M = {};
|
|
4970
|
+
for (const F of ["--fibo-dur", "--fibo-ease", "--fibo-delay", "--fibo-stagger", "--fibo-from"])
|
|
4971
|
+
$[F] != null && (M[F] = $[F]);
|
|
4972
|
+
d = l.createElement(Ii, {
|
|
4949
4973
|
key: s,
|
|
4950
4974
|
preset: p.preset,
|
|
4951
4975
|
once: p.once,
|
|
@@ -4956,7 +4980,7 @@ function Di(t) {
|
|
|
4956
4980
|
children: d
|
|
4957
4981
|
});
|
|
4958
4982
|
}
|
|
4959
|
-
t._scrollProgress && (d = l.createElement(
|
|
4983
|
+
t._scrollProgress && (d = l.createElement(Fi, { key: s, children: d })), t._usesCssMotion && (d = l.createElement(
|
|
4960
4984
|
l.Fragment,
|
|
4961
4985
|
{ key: s },
|
|
4962
4986
|
l.createElement(ei),
|
|
@@ -4969,7 +4993,7 @@ function Di(t) {
|
|
|
4969
4993
|
children: f
|
|
4970
4994
|
}) : null, b = () => u ?? f();
|
|
4971
4995
|
let h = b();
|
|
4972
|
-
return a && e && e.size > 0 ? h = l.createElement(
|
|
4996
|
+
return a && e && e.size > 0 ? h = l.createElement(Dt, {
|
|
4973
4997
|
key: s,
|
|
4974
4998
|
signals: e,
|
|
4975
4999
|
children: b
|
|
@@ -4981,7 +5005,7 @@ function Di(t) {
|
|
|
4981
5005
|
key: s,
|
|
4982
5006
|
stateMap: r,
|
|
4983
5007
|
children: h
|
|
4984
|
-
})), a && n && n.size > 0 && (h = l.createElement(
|
|
5008
|
+
})), a && n && n.size > 0 && (h = l.createElement(Xt, {
|
|
4985
5009
|
key: s,
|
|
4986
5010
|
providers: n,
|
|
4987
5011
|
children: h
|
|
@@ -5006,7 +5030,7 @@ function st(t, o, e) {
|
|
|
5006
5030
|
}
|
|
5007
5031
|
function co(t) {
|
|
5008
5032
|
return (...o) => {
|
|
5009
|
-
const e = new t(...o), i = t.name.replace(/Builder$/, "") || "Fibo", r = () =>
|
|
5033
|
+
const e = new t(...o), i = t.name.replace(/Builder$/, "") || "Fibo", r = () => Xi(e);
|
|
5010
5034
|
return st(e, r, i), new Proxy(e, {
|
|
5011
5035
|
get(n, s, f) {
|
|
5012
5036
|
var a, u;
|
|
@@ -5065,7 +5089,7 @@ class Yi {
|
|
|
5065
5089
|
return this._builder = o, this;
|
|
5066
5090
|
}
|
|
5067
5091
|
build() {
|
|
5068
|
-
return l.createElement(
|
|
5092
|
+
return l.createElement(Ni, {
|
|
5069
5093
|
signal: this._signal,
|
|
5070
5094
|
builder: this._builder,
|
|
5071
5095
|
loading: this._loading,
|
|
@@ -5221,7 +5245,7 @@ function hs({
|
|
|
5221
5245
|
return /* @__PURE__ */ W(at.Provider, { value: h, children: /* @__PURE__ */ W("div", { className: d, "data-fibo-theme": u.name, style: x, children: o }) });
|
|
5222
5246
|
}
|
|
5223
5247
|
function ds() {
|
|
5224
|
-
const t =
|
|
5248
|
+
const t = Ro(at);
|
|
5225
5249
|
if (!t)
|
|
5226
5250
|
throw new Error("useFiboTheme must be used within a FiboThemeProvider");
|
|
5227
5251
|
return t;
|
|
@@ -5375,7 +5399,7 @@ class fr extends ao {
|
|
|
5375
5399
|
};
|
|
5376
5400
|
if (typeof this._text == "function") {
|
|
5377
5401
|
const r = this._text;
|
|
5378
|
-
return l.createElement(
|
|
5402
|
+
return l.createElement(Xe, {
|
|
5379
5403
|
compute: r,
|
|
5380
5404
|
as: e[this._type],
|
|
5381
5405
|
className: `fibo-text fibo-text-${this._type} min-w-0 ${this.getClassName()}`,
|
|
@@ -5395,13 +5419,13 @@ class fr extends ao {
|
|
|
5395
5419
|
}
|
|
5396
5420
|
const ar = co(fr), fe = yo(null);
|
|
5397
5421
|
function Go() {
|
|
5398
|
-
const t =
|
|
5422
|
+
const t = Ro(fe);
|
|
5399
5423
|
if (!t)
|
|
5400
5424
|
throw new Error("useRouter must be used within a Router");
|
|
5401
5425
|
return t;
|
|
5402
5426
|
}
|
|
5403
5427
|
function ps() {
|
|
5404
|
-
return
|
|
5428
|
+
return Ro(fe);
|
|
5405
5429
|
}
|
|
5406
5430
|
function xs() {
|
|
5407
5431
|
const { navigate: t } = Go();
|
|
@@ -5510,7 +5534,7 @@ const ws = co(lr), ur = l.memo((t) => {
|
|
|
5510
5534
|
containerHeight: s = 500,
|
|
5511
5535
|
className: f,
|
|
5512
5536
|
style: a
|
|
5513
|
-
} = t, [u, b] = G(0), h = U(null), d = U(/* @__PURE__ */ new Map()), x = U(/* @__PURE__ */ new Map()), m = o.length, p = e !== void 0, T = (S) => p ? e : x.current.get(S) ?? i,
|
|
5537
|
+
} = t, [u, b] = G(0), h = U(null), d = U(/* @__PURE__ */ new Map()), x = U(/* @__PURE__ */ new Map()), m = o.length, p = e !== void 0, T = (S) => p ? e : x.current.get(S) ?? i, $ = (S) => {
|
|
5514
5538
|
if (p)
|
|
5515
5539
|
return S * e;
|
|
5516
5540
|
let C = 0;
|
|
@@ -5524,39 +5548,39 @@ const ws = co(lr), ur = l.memo((t) => {
|
|
|
5524
5548
|
for (let C = 0; C < m; C++)
|
|
5525
5549
|
S += T(C);
|
|
5526
5550
|
return S;
|
|
5527
|
-
},
|
|
5551
|
+
}, N = Math.max(0, ((S) => {
|
|
5528
5552
|
if (p)
|
|
5529
5553
|
return Math.floor(S / e);
|
|
5530
5554
|
let C = 0, V = m - 1;
|
|
5531
5555
|
for (; C < V; ) {
|
|
5532
5556
|
const y = Math.floor((C + V) / 2);
|
|
5533
|
-
|
|
5557
|
+
$(y) < S ? C = y + 1 : V = y;
|
|
5534
5558
|
}
|
|
5535
5559
|
return Math.max(0, C - 1);
|
|
5536
5560
|
})(u) - n);
|
|
5537
|
-
let
|
|
5561
|
+
let D;
|
|
5538
5562
|
if (p) {
|
|
5539
5563
|
const S = Math.ceil(s / e);
|
|
5540
|
-
|
|
5564
|
+
D = Math.min(m, N + S + n * 2);
|
|
5541
5565
|
} else {
|
|
5542
|
-
let S = N
|
|
5566
|
+
let S = $(N), C = N;
|
|
5543
5567
|
for (; S < u + s + n * i && C < m; )
|
|
5544
5568
|
S += T(C), C++;
|
|
5545
|
-
|
|
5569
|
+
D = Math.min(m, C);
|
|
5546
5570
|
}
|
|
5547
|
-
const
|
|
5571
|
+
const I = o.slice(N, D), A = $(N), v = M(), [z, P] = G(0);
|
|
5548
5572
|
oe(() => {
|
|
5549
5573
|
if (!r || p) return;
|
|
5550
5574
|
let S = !1;
|
|
5551
|
-
|
|
5552
|
-
const y =
|
|
5553
|
-
if (
|
|
5554
|
-
const g =
|
|
5575
|
+
I.forEach((C, V) => {
|
|
5576
|
+
const y = N + V, R = d.current.get(y);
|
|
5577
|
+
if (R) {
|
|
5578
|
+
const g = R.getBoundingClientRect().height;
|
|
5555
5579
|
g > 0 && x.current.get(y) !== g && (x.current.set(y, g), S = !0);
|
|
5556
5580
|
}
|
|
5557
5581
|
}), S && P((C) => C + 1);
|
|
5558
|
-
}, [
|
|
5559
|
-
const
|
|
5582
|
+
}, [I, N, r, p, z]);
|
|
5583
|
+
const X = (S) => {
|
|
5560
5584
|
b(S.currentTarget.scrollTop);
|
|
5561
5585
|
};
|
|
5562
5586
|
return l.createElement(
|
|
@@ -5570,7 +5594,7 @@ const ws = co(lr), ur = l.memo((t) => {
|
|
|
5570
5594
|
position: "relative",
|
|
5571
5595
|
...a
|
|
5572
5596
|
},
|
|
5573
|
-
onScroll:
|
|
5597
|
+
onScroll: X
|
|
5574
5598
|
},
|
|
5575
5599
|
l.createElement("div", {
|
|
5576
5600
|
style: {
|
|
@@ -5591,8 +5615,8 @@ const ws = co(lr), ur = l.memo((t) => {
|
|
|
5591
5615
|
width: "100%"
|
|
5592
5616
|
}
|
|
5593
5617
|
},
|
|
5594
|
-
|
|
5595
|
-
const V =
|
|
5618
|
+
I.map((S, C) => {
|
|
5619
|
+
const V = N + C;
|
|
5596
5620
|
return l.createElement(
|
|
5597
5621
|
"div",
|
|
5598
5622
|
{
|
|
@@ -5673,7 +5697,7 @@ class dr extends ao {
|
|
|
5673
5697
|
return l.createElement(hr, n);
|
|
5674
5698
|
}
|
|
5675
5699
|
}
|
|
5676
|
-
const
|
|
5700
|
+
const Io = co(dr), pr = (t, o) => {
|
|
5677
5701
|
const e = new Array(t.length + o.length);
|
|
5678
5702
|
for (let i = 0; i < t.length; i++)
|
|
5679
5703
|
e[i] = t[i];
|
|
@@ -5687,7 +5711,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
5687
5711
|
nextPart: t,
|
|
5688
5712
|
validators: o,
|
|
5689
5713
|
classGroupId: e
|
|
5690
|
-
}),
|
|
5714
|
+
}), Do = "-", ke = [], mr = "arbitrary..", gr = (t) => {
|
|
5691
5715
|
const o = wr(t), {
|
|
5692
5716
|
conflictingClassGroups: e,
|
|
5693
5717
|
conflictingClassGroupModifiers: i
|
|
@@ -5696,7 +5720,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
5696
5720
|
getClassGroupId: (s) => {
|
|
5697
5721
|
if (s.startsWith("[") && s.endsWith("]"))
|
|
5698
5722
|
return vr(s);
|
|
5699
|
-
const f = s.split(
|
|
5723
|
+
const f = s.split(Do), a = f[0] === "" && f.length > 1 ? 1 : 0;
|
|
5700
5724
|
return ut(f, a, o);
|
|
5701
5725
|
},
|
|
5702
5726
|
getConflictingClassGroupIds: (s, f) => {
|
|
@@ -5718,7 +5742,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
5718
5742
|
const s = e.validators;
|
|
5719
5743
|
if (s === null)
|
|
5720
5744
|
return;
|
|
5721
|
-
const f = o === 0 ? t.join(
|
|
5745
|
+
const f = o === 0 ? t.join(Do) : t.slice(o).join(Do), a = s.length;
|
|
5722
5746
|
for (let u = 0; u < a; u++) {
|
|
5723
5747
|
const b = s[u];
|
|
5724
5748
|
if (b.validator(f))
|
|
@@ -5773,7 +5797,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
5773
5797
|
}
|
|
5774
5798
|
}, bt = (t, o) => {
|
|
5775
5799
|
let e = t;
|
|
5776
|
-
const i = o.split(
|
|
5800
|
+
const i = o.split(Do), r = i.length;
|
|
5777
5801
|
for (let n = 0; n < r; n++) {
|
|
5778
5802
|
const s = i[n];
|
|
5779
5803
|
let f = e.nextPart.get(s);
|
|
@@ -5810,7 +5834,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
5810
5834
|
baseClassName: e,
|
|
5811
5835
|
maybePostfixModifierPosition: i,
|
|
5812
5836
|
isExternal: r
|
|
5813
|
-
}),
|
|
5837
|
+
}), Ir = (t) => {
|
|
5814
5838
|
const {
|
|
5815
5839
|
prefix: o,
|
|
5816
5840
|
experimentalParseClassName: e
|
|
@@ -5857,7 +5881,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
5857
5881
|
});
|
|
5858
5882
|
}
|
|
5859
5883
|
return i;
|
|
5860
|
-
},
|
|
5884
|
+
}, $r = (t) => {
|
|
5861
5885
|
const o = /* @__PURE__ */ new Map();
|
|
5862
5886
|
return t.orderSensitiveModifiers.forEach((e, i) => {
|
|
5863
5887
|
o.set(e, 1e6 + i);
|
|
@@ -5870,18 +5894,18 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
5870
5894
|
}
|
|
5871
5895
|
return r.length > 0 && (r.sort(), i.push(...r)), i;
|
|
5872
5896
|
};
|
|
5873
|
-
},
|
|
5897
|
+
}, Fr = (t) => ({
|
|
5874
5898
|
cache: Er(t.cacheSize),
|
|
5875
|
-
parseClassName:
|
|
5876
|
-
sortModifiers:
|
|
5899
|
+
parseClassName: Ir(t),
|
|
5900
|
+
sortModifiers: $r(t),
|
|
5877
5901
|
...gr(t)
|
|
5878
|
-
}),
|
|
5902
|
+
}), Rr = /\s+/, Nr = (t, o) => {
|
|
5879
5903
|
const {
|
|
5880
5904
|
parseClassName: e,
|
|
5881
5905
|
getClassGroupId: i,
|
|
5882
5906
|
getConflictingClassGroupIds: r,
|
|
5883
5907
|
sortModifiers: n
|
|
5884
|
-
} = o, s = [], f = t.trim().split(
|
|
5908
|
+
} = o, s = [], f = t.trim().split(Rr);
|
|
5885
5909
|
let a = "";
|
|
5886
5910
|
for (let u = f.length - 1; u >= 0; u -= 1) {
|
|
5887
5911
|
const b = f[u], {
|
|
@@ -5895,26 +5919,26 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
5895
5919
|
a = b + (a.length > 0 ? " " + a : a);
|
|
5896
5920
|
continue;
|
|
5897
5921
|
}
|
|
5898
|
-
let T = !!p,
|
|
5899
|
-
if (
|
|
5922
|
+
let T = !!p, $ = i(T ? m.substring(0, p) : m);
|
|
5923
|
+
if (!$) {
|
|
5900
5924
|
if (!T) {
|
|
5901
5925
|
a = b + (a.length > 0 ? " " + a : a);
|
|
5902
5926
|
continue;
|
|
5903
5927
|
}
|
|
5904
|
-
if (
|
|
5928
|
+
if ($ = i(m), !$) {
|
|
5905
5929
|
a = b + (a.length > 0 ? " " + a : a);
|
|
5906
5930
|
continue;
|
|
5907
5931
|
}
|
|
5908
5932
|
T = !1;
|
|
5909
5933
|
}
|
|
5910
|
-
const M = d.length === 0 ? "" : d.length === 1 ? d[0] : n(d).join(":"),
|
|
5911
|
-
if (s.indexOf(
|
|
5934
|
+
const M = d.length === 0 ? "" : d.length === 1 ? d[0] : n(d).join(":"), F = x ? M + te : M, N = F + $;
|
|
5935
|
+
if (s.indexOf(N) > -1)
|
|
5912
5936
|
continue;
|
|
5913
|
-
s.push(
|
|
5914
|
-
const
|
|
5915
|
-
for (let
|
|
5916
|
-
const A =
|
|
5917
|
-
s.push(
|
|
5937
|
+
s.push(N);
|
|
5938
|
+
const D = r($, T);
|
|
5939
|
+
for (let I = 0; I < D.length; ++I) {
|
|
5940
|
+
const A = D[I];
|
|
5941
|
+
s.push(F + A);
|
|
5918
5942
|
}
|
|
5919
5943
|
a = b + (a.length > 0 ? " " + a : a);
|
|
5920
5944
|
}
|
|
@@ -5935,31 +5959,31 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
5935
5959
|
let e, i, r, n;
|
|
5936
5960
|
const s = (a) => {
|
|
5937
5961
|
const u = o.reduce((b, h) => h(b), t());
|
|
5938
|
-
return e =
|
|
5962
|
+
return e = Fr(u), i = e.cache.get, r = e.cache.set, n = f, f(a);
|
|
5939
5963
|
}, f = (a) => {
|
|
5940
5964
|
const u = i(a);
|
|
5941
5965
|
if (u)
|
|
5942
5966
|
return u;
|
|
5943
|
-
const b =
|
|
5967
|
+
const b = Nr(a, e);
|
|
5944
5968
|
return r(a, b), b;
|
|
5945
5969
|
};
|
|
5946
5970
|
return n = s, (...a) => n(Br(...a));
|
|
5947
5971
|
}, Lr = [], oo = (t) => {
|
|
5948
5972
|
const o = (e) => e[t] || Lr;
|
|
5949
5973
|
return o.isThemeGetter = !0, o;
|
|
5950
|
-
}, dt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, pt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Pr = /^\d+\/\d+$/, Mr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Or = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Wr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Hr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Vr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Eo = (t) => Pr.test(t), B = (t) => !!t && !Number.isNaN(Number(t)), xo = (t) => !!t && Number.isInteger(Number(t)), qo = (t) => t.endsWith("%") && B(t.slice(0, -1)), ho = (t) => Mr.test(t), jr = () => !0,
|
|
5974
|
+
}, dt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, pt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Pr = /^\d+\/\d+$/, Mr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Or = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Wr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Hr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Vr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Eo = (t) => Pr.test(t), B = (t) => !!t && !Number.isNaN(Number(t)), xo = (t) => !!t && Number.isInteger(Number(t)), qo = (t) => t.endsWith("%") && B(t.slice(0, -1)), ho = (t) => Mr.test(t), jr = () => !0, Dr = (t) => (
|
|
5951
5975
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
5952
5976
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
5953
5977
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
5954
5978
|
Or.test(t) && !Wr.test(t)
|
|
5955
|
-
), xt = () => !1,
|
|
5979
|
+
), xt = () => !1, Xr = (t) => Hr.test(t), Yr = (t) => Vr.test(t), Gr = (t) => !k(t) && !_(t), Ur = (t) => No(t, vt, xt), k = (t) => dt.test(t), vo = (t) => No(t, wt, Dr), Zo = (t) => No(t, Qr, B), Ce = (t) => No(t, mt, xt), Kr = (t) => No(t, gt, Yr), Wo = (t) => No(t, yt, Xr), _ = (t) => pt.test(t), Lo = (t) => Bo(t, wt), qr = (t) => Bo(t, on), ze = (t) => Bo(t, mt), Zr = (t) => Bo(t, vt), Jr = (t) => Bo(t, gt), Ho = (t) => Bo(t, yt, !0), No = (t, o, e) => {
|
|
5956
5980
|
const i = dt.exec(t);
|
|
5957
5981
|
return i ? i[1] ? o(i[1]) : e(i[2]) : !1;
|
|
5958
5982
|
}, Bo = (t, o, e = !1) => {
|
|
5959
5983
|
const i = pt.exec(t);
|
|
5960
5984
|
return i ? i[1] ? o(i[1]) : e : !1;
|
|
5961
5985
|
}, mt = (t) => t === "position" || t === "percentage", gt = (t) => t === "image" || t === "url", vt = (t) => t === "length" || t === "size" || t === "bg-size", wt = (t) => t === "length", Qr = (t) => t === "number", on = (t) => t === "family-name", yt = (t) => t === "shadow", en = () => {
|
|
5962
|
-
const t = oo("color"), o = oo("font"), e = oo("text"), i = oo("font-weight"), r = oo("tracking"), n = oo("leading"), s = oo("breakpoint"), f = oo("container"), a = oo("spacing"), u = oo("radius"), b = oo("shadow"), h = oo("inset-shadow"), d = oo("text-shadow"), x = oo("drop-shadow"), m = oo("blur"), p = oo("perspective"), T = oo("aspect"),
|
|
5986
|
+
const t = oo("color"), o = oo("font"), e = oo("text"), i = oo("font-weight"), r = oo("tracking"), n = oo("leading"), s = oo("breakpoint"), f = oo("container"), a = oo("spacing"), u = oo("radius"), b = oo("shadow"), h = oo("inset-shadow"), d = oo("text-shadow"), x = oo("drop-shadow"), m = oo("blur"), p = oo("perspective"), T = oo("aspect"), $ = oo("ease"), M = oo("animate"), F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], N = () => [
|
|
5963
5987
|
"center",
|
|
5964
5988
|
"top",
|
|
5965
5989
|
"bottom",
|
|
@@ -5977,9 +6001,9 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
5977
6001
|
"bottom-left",
|
|
5978
6002
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
5979
6003
|
"left-bottom"
|
|
5980
|
-
],
|
|
6004
|
+
], D = () => [...N(), _, k], I = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", "contain", "none"], v = () => [_, k, a], z = () => [Eo, "full", "auto", ...v()], P = () => [xo, "none", "subgrid", _, k], X = () => ["auto", {
|
|
5981
6005
|
span: ["full", xo, _, k]
|
|
5982
|
-
}, xo, _, k], S = () => [xo, "auto", _, k], C = () => ["auto", "min", "max", "fr", _, k], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"],
|
|
6006
|
+
}, xo, _, k], S = () => [xo, "auto", _, k], C = () => ["auto", "min", "max", "fr", _, k], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], y = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...v()], H = () => [Eo, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], g = () => [t, _, k], K = () => [...N(), ze, Ce, {
|
|
5983
6007
|
position: [_, k]
|
|
5984
6008
|
}], w = () => ["no-repeat", {
|
|
5985
6009
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -6053,14 +6077,14 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
6053
6077
|
* @see https://tailwindcss.com/docs/break-after
|
|
6054
6078
|
*/
|
|
6055
6079
|
"break-after": [{
|
|
6056
|
-
"break-after":
|
|
6080
|
+
"break-after": F()
|
|
6057
6081
|
}],
|
|
6058
6082
|
/**
|
|
6059
6083
|
* Break Before
|
|
6060
6084
|
* @see https://tailwindcss.com/docs/break-before
|
|
6061
6085
|
*/
|
|
6062
6086
|
"break-before": [{
|
|
6063
|
-
"break-before":
|
|
6087
|
+
"break-before": F()
|
|
6064
6088
|
}],
|
|
6065
6089
|
/**
|
|
6066
6090
|
* Break Inside
|
|
@@ -6124,28 +6148,28 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
6124
6148
|
* @see https://tailwindcss.com/docs/object-position
|
|
6125
6149
|
*/
|
|
6126
6150
|
"object-position": [{
|
|
6127
|
-
object:
|
|
6151
|
+
object: D()
|
|
6128
6152
|
}],
|
|
6129
6153
|
/**
|
|
6130
6154
|
* Overflow
|
|
6131
6155
|
* @see https://tailwindcss.com/docs/overflow
|
|
6132
6156
|
*/
|
|
6133
6157
|
overflow: [{
|
|
6134
|
-
overflow:
|
|
6158
|
+
overflow: I()
|
|
6135
6159
|
}],
|
|
6136
6160
|
/**
|
|
6137
6161
|
* Overflow X
|
|
6138
6162
|
* @see https://tailwindcss.com/docs/overflow
|
|
6139
6163
|
*/
|
|
6140
6164
|
"overflow-x": [{
|
|
6141
|
-
"overflow-x":
|
|
6165
|
+
"overflow-x": I()
|
|
6142
6166
|
}],
|
|
6143
6167
|
/**
|
|
6144
6168
|
* Overflow Y
|
|
6145
6169
|
* @see https://tailwindcss.com/docs/overflow
|
|
6146
6170
|
*/
|
|
6147
6171
|
"overflow-y": [{
|
|
6148
|
-
"overflow-y":
|
|
6172
|
+
"overflow-y": I()
|
|
6149
6173
|
}],
|
|
6150
6174
|
/**
|
|
6151
6175
|
* Overscroll Behavior
|
|
@@ -6312,7 +6336,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
6312
6336
|
* @see https://tailwindcss.com/docs/grid-column
|
|
6313
6337
|
*/
|
|
6314
6338
|
"col-start-end": [{
|
|
6315
|
-
col:
|
|
6339
|
+
col: X()
|
|
6316
6340
|
}],
|
|
6317
6341
|
/**
|
|
6318
6342
|
* Grid Column Start
|
|
@@ -6340,7 +6364,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
6340
6364
|
* @see https://tailwindcss.com/docs/grid-row
|
|
6341
6365
|
*/
|
|
6342
6366
|
"row-start-end": [{
|
|
6343
|
-
row:
|
|
6367
|
+
row: X()
|
|
6344
6368
|
}],
|
|
6345
6369
|
/**
|
|
6346
6370
|
* Grid Row Start
|
|
@@ -6534,63 +6558,63 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
6534
6558
|
* @see https://tailwindcss.com/docs/margin
|
|
6535
6559
|
*/
|
|
6536
6560
|
m: [{
|
|
6537
|
-
m:
|
|
6561
|
+
m: R()
|
|
6538
6562
|
}],
|
|
6539
6563
|
/**
|
|
6540
6564
|
* Margin X
|
|
6541
6565
|
* @see https://tailwindcss.com/docs/margin
|
|
6542
6566
|
*/
|
|
6543
6567
|
mx: [{
|
|
6544
|
-
mx:
|
|
6568
|
+
mx: R()
|
|
6545
6569
|
}],
|
|
6546
6570
|
/**
|
|
6547
6571
|
* Margin Y
|
|
6548
6572
|
* @see https://tailwindcss.com/docs/margin
|
|
6549
6573
|
*/
|
|
6550
6574
|
my: [{
|
|
6551
|
-
my:
|
|
6575
|
+
my: R()
|
|
6552
6576
|
}],
|
|
6553
6577
|
/**
|
|
6554
6578
|
* Margin Start
|
|
6555
6579
|
* @see https://tailwindcss.com/docs/margin
|
|
6556
6580
|
*/
|
|
6557
6581
|
ms: [{
|
|
6558
|
-
ms:
|
|
6582
|
+
ms: R()
|
|
6559
6583
|
}],
|
|
6560
6584
|
/**
|
|
6561
6585
|
* Margin End
|
|
6562
6586
|
* @see https://tailwindcss.com/docs/margin
|
|
6563
6587
|
*/
|
|
6564
6588
|
me: [{
|
|
6565
|
-
me:
|
|
6589
|
+
me: R()
|
|
6566
6590
|
}],
|
|
6567
6591
|
/**
|
|
6568
6592
|
* Margin Top
|
|
6569
6593
|
* @see https://tailwindcss.com/docs/margin
|
|
6570
6594
|
*/
|
|
6571
6595
|
mt: [{
|
|
6572
|
-
mt:
|
|
6596
|
+
mt: R()
|
|
6573
6597
|
}],
|
|
6574
6598
|
/**
|
|
6575
6599
|
* Margin Right
|
|
6576
6600
|
* @see https://tailwindcss.com/docs/margin
|
|
6577
6601
|
*/
|
|
6578
6602
|
mr: [{
|
|
6579
|
-
mr:
|
|
6603
|
+
mr: R()
|
|
6580
6604
|
}],
|
|
6581
6605
|
/**
|
|
6582
6606
|
* Margin Bottom
|
|
6583
6607
|
* @see https://tailwindcss.com/docs/margin
|
|
6584
6608
|
*/
|
|
6585
6609
|
mb: [{
|
|
6586
|
-
mb:
|
|
6610
|
+
mb: R()
|
|
6587
6611
|
}],
|
|
6588
6612
|
/**
|
|
6589
6613
|
* Margin Left
|
|
6590
6614
|
* @see https://tailwindcss.com/docs/margin
|
|
6591
6615
|
*/
|
|
6592
6616
|
ml: [{
|
|
6593
|
-
ml:
|
|
6617
|
+
ml: R()
|
|
6594
6618
|
}],
|
|
6595
6619
|
/**
|
|
6596
6620
|
* Space Between X
|
|
@@ -7593,7 +7617,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
7593
7617
|
}]
|
|
7594
7618
|
}],
|
|
7595
7619
|
"mask-image-radial-pos": [{
|
|
7596
|
-
"mask-radial-at":
|
|
7620
|
+
"mask-radial-at": N()
|
|
7597
7621
|
}],
|
|
7598
7622
|
"mask-image-conic-pos": [{
|
|
7599
7623
|
"mask-conic": [B]
|
|
@@ -7902,7 +7926,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
7902
7926
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
7903
7927
|
*/
|
|
7904
7928
|
ease: [{
|
|
7905
|
-
ease: ["linear", "initial",
|
|
7929
|
+
ease: ["linear", "initial", $, _, k]
|
|
7906
7930
|
}],
|
|
7907
7931
|
/**
|
|
7908
7932
|
* Transition Delay
|
|
@@ -7940,7 +7964,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
7940
7964
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
7941
7965
|
*/
|
|
7942
7966
|
"perspective-origin": [{
|
|
7943
|
-
"perspective-origin":
|
|
7967
|
+
"perspective-origin": D()
|
|
7944
7968
|
}],
|
|
7945
7969
|
/**
|
|
7946
7970
|
* Rotate
|
|
@@ -8036,7 +8060,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
8036
8060
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
8037
8061
|
*/
|
|
8038
8062
|
"transform-origin": [{
|
|
8039
|
-
origin:
|
|
8063
|
+
origin: D()
|
|
8040
8064
|
}],
|
|
8041
8065
|
/**
|
|
8042
8066
|
* Transform Style
|
|
@@ -8428,7 +8452,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
8428
8452
|
},
|
|
8429
8453
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
8430
8454
|
};
|
|
8431
|
-
},
|
|
8455
|
+
}, Fo = /* @__PURE__ */ Ar(en), tn = (t, o) => {
|
|
8432
8456
|
let e = 0;
|
|
8433
8457
|
const i = t.replace(/\D/g, "").split("");
|
|
8434
8458
|
let r = "";
|
|
@@ -8447,23 +8471,23 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
8447
8471
|
value: m,
|
|
8448
8472
|
controlled: p,
|
|
8449
8473
|
rules: T,
|
|
8450
|
-
onChange:
|
|
8474
|
+
onChange: $,
|
|
8451
8475
|
onCommit: M,
|
|
8452
|
-
leadingIcon:
|
|
8453
|
-
trailingIcon:
|
|
8454
|
-
...
|
|
8455
|
-
} = t,
|
|
8476
|
+
leadingIcon: F,
|
|
8477
|
+
trailingIcon: N,
|
|
8478
|
+
...D
|
|
8479
|
+
} = t, I = m instanceof To, A = typeof m == "string" ? m : I ? m.value : "", [v, z] = G(A);
|
|
8456
8480
|
Z(() => {
|
|
8457
8481
|
if (p) {
|
|
8458
|
-
if (
|
|
8482
|
+
if (I)
|
|
8459
8483
|
return m.subscribe(z);
|
|
8460
8484
|
z(typeof m == "string" ? m : "");
|
|
8461
8485
|
}
|
|
8462
|
-
}, [p, m,
|
|
8486
|
+
}, [p, m, I]), Z(() => p || !I ? void 0 : m.subscribe((K) => {
|
|
8463
8487
|
if (s.current) return;
|
|
8464
8488
|
const w = n.current;
|
|
8465
8489
|
w && w.value !== K && (w.value = K);
|
|
8466
|
-
}), [m,
|
|
8490
|
+
}), [m, I, p]), l.useEffect(() => {
|
|
8467
8491
|
const g = n.current;
|
|
8468
8492
|
if (!g) return;
|
|
8469
8493
|
T && (g.__fiboRules = T);
|
|
@@ -8472,22 +8496,22 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
8472
8496
|
w && (w.textContent = O ?? "", w.style.display = O ? "" : "none");
|
|
8473
8497
|
});
|
|
8474
8498
|
}, [T]);
|
|
8475
|
-
const P = x === "password",
|
|
8499
|
+
const P = x === "password", X = P && i ? "text" : x, S = (g) => d ? tn(g, d) : g, H = {
|
|
8476
8500
|
key: "input",
|
|
8477
8501
|
ref: n,
|
|
8478
8502
|
id: e,
|
|
8479
8503
|
className: "fibo-textfield-input w-full h-full bg-transparent outline-none py-2.5 text-sm",
|
|
8480
|
-
style: { paddingLeft:
|
|
8481
|
-
type:
|
|
8504
|
+
style: { paddingLeft: F ? "2.75rem" : "1rem", paddingRight: N || P ? "2.75rem" : "1rem" },
|
|
8505
|
+
type: X,
|
|
8482
8506
|
onChange: (g) => {
|
|
8483
8507
|
let K = S(g.target.value);
|
|
8484
|
-
d && g.target.value !== K && (g.target.value = K), p && z(K),
|
|
8508
|
+
d && g.target.value !== K && (g.target.value = K), p && z(K), I && (s.current = !0, m.value = K, s.current = !1), $ == null || $(K);
|
|
8485
8509
|
},
|
|
8486
8510
|
onBlur: (g) => {
|
|
8487
8511
|
var K;
|
|
8488
|
-
M == null || M(S(g.target.value)), (K =
|
|
8512
|
+
M == null || M(S(g.target.value)), (K = D.onBlur) == null || K.call(D, g);
|
|
8489
8513
|
},
|
|
8490
|
-
...
|
|
8514
|
+
...D
|
|
8491
8515
|
};
|
|
8492
8516
|
return p ? H.value = v : H.defaultValue = A, l.createElement(
|
|
8493
8517
|
"div",
|
|
@@ -8496,13 +8520,13 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
8496
8520
|
"div",
|
|
8497
8521
|
{ className: u || "relative w-full h-14 flex items-center" },
|
|
8498
8522
|
[
|
|
8499
|
-
|
|
8523
|
+
F && l.createElement(
|
|
8500
8524
|
"div",
|
|
8501
8525
|
{
|
|
8502
8526
|
key: "leading-icon",
|
|
8503
8527
|
className: "absolute left-3 top-1/2 transform -translate-y-1/2 flex items-center justify-center pointer-events-none z-10"
|
|
8504
8528
|
},
|
|
8505
|
-
|
|
8529
|
+
F
|
|
8506
8530
|
),
|
|
8507
8531
|
l.createElement("input", H),
|
|
8508
8532
|
b && l.createElement(
|
|
@@ -8511,11 +8535,11 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
8511
8535
|
key: "label",
|
|
8512
8536
|
htmlFor: e,
|
|
8513
8537
|
className: "fibo-textfield-label",
|
|
8514
|
-
style: { left:
|
|
8538
|
+
style: { left: F ? "2.75rem" : "1rem" }
|
|
8515
8539
|
},
|
|
8516
8540
|
b
|
|
8517
8541
|
),
|
|
8518
|
-
(
|
|
8542
|
+
(N || P) && l.createElement(
|
|
8519
8543
|
"div",
|
|
8520
8544
|
{
|
|
8521
8545
|
key: "trailing-icon",
|
|
@@ -8562,7 +8586,7 @@ const $o = co(dr), pr = (t, o) => {
|
|
|
8562
8586
|
}),
|
|
8563
8587
|
l.createElement("circle", { cx: 12, cy: 12, r: 3 })
|
|
8564
8588
|
)
|
|
8565
|
-
) :
|
|
8589
|
+
) : N
|
|
8566
8590
|
)
|
|
8567
8591
|
]
|
|
8568
8592
|
),
|
|
@@ -8656,7 +8680,7 @@ class nn extends ao {
|
|
|
8656
8680
|
let e = "relative w-full h-14 flex items-center";
|
|
8657
8681
|
this._variant === "outlined" ? e += " border border-[var(--fibo-outline)] rounded-[4px] bg-transparent" : e += " bg-[var(--fibo-surface-variant)] rounded-t-[4px] border-b border-[var(--fibo-outline)]";
|
|
8658
8682
|
const r = {
|
|
8659
|
-
containerClass:
|
|
8683
|
+
containerClass: Fo(
|
|
8660
8684
|
"fibo-textfield-container w-full flex flex-col",
|
|
8661
8685
|
...this._classNames
|
|
8662
8686
|
),
|
|
@@ -8696,7 +8720,7 @@ const ks = co(nn), sn = l.memo((t) => {
|
|
|
8696
8720
|
className: h,
|
|
8697
8721
|
style: d,
|
|
8698
8722
|
id: x
|
|
8699
|
-
} = t, m = U(null), p = U(null), T = o, [
|
|
8723
|
+
} = t, m = U(null), p = U(null), T = o, [$, M] = G(T), F = e ? !!o : $, N = F || s;
|
|
8700
8724
|
Z(() => {
|
|
8701
8725
|
m.current && (m.current.indeterminate = !!s);
|
|
8702
8726
|
}, [s]), Z(() => {
|
|
@@ -8707,26 +8731,26 @@ const ks = co(nn), sn = l.memo((t) => {
|
|
|
8707
8731
|
requestAnimationFrame(z);
|
|
8708
8732
|
};
|
|
8709
8733
|
v.addEventListener("fibo-sync", z);
|
|
8710
|
-
const
|
|
8711
|
-
return
|
|
8712
|
-
v.removeEventListener("fibo-sync", z),
|
|
8734
|
+
const X = v.closest("form");
|
|
8735
|
+
return X == null || X.addEventListener("reset", P), () => {
|
|
8736
|
+
v.removeEventListener("fibo-sync", z), X == null || X.removeEventListener("reset", P);
|
|
8713
8737
|
};
|
|
8714
8738
|
}, [e]), Z(() => {
|
|
8715
8739
|
const v = m.current, z = p.current;
|
|
8716
8740
|
if (!v) return;
|
|
8717
8741
|
u && (v.__fiboRules = u);
|
|
8718
8742
|
const P = z == null ? void 0 : z.querySelector(".fibo-field-error");
|
|
8719
|
-
z && (z.__fiboShowError = (
|
|
8720
|
-
P && (P.textContent =
|
|
8743
|
+
z && (z.__fiboShowError = (X) => {
|
|
8744
|
+
P && (P.textContent = X ?? "", P.style.display = X ? "" : "none");
|
|
8721
8745
|
});
|
|
8722
8746
|
}, [u]);
|
|
8723
|
-
const
|
|
8747
|
+
const D = (v) => {
|
|
8724
8748
|
if (n) return;
|
|
8725
8749
|
const z = v.target.checked;
|
|
8726
8750
|
e || M(z), i == null || i(z);
|
|
8727
8751
|
};
|
|
8728
|
-
let
|
|
8729
|
-
s ?
|
|
8752
|
+
let I = null;
|
|
8753
|
+
s ? I = l.createElement("div", { className: "w-[10px] h-[2px] bg-white rounded-[1px]" }) : F && (I = l.createElement(
|
|
8730
8754
|
"svg",
|
|
8731
8755
|
{
|
|
8732
8756
|
width: "12",
|
|
@@ -8752,13 +8776,13 @@ const ks = co(nn), sn = l.memo((t) => {
|
|
|
8752
8776
|
value: a,
|
|
8753
8777
|
disabled: n,
|
|
8754
8778
|
className: "sr-only",
|
|
8755
|
-
onChange:
|
|
8779
|
+
onChange: D
|
|
8756
8780
|
};
|
|
8757
8781
|
return e ? A.checked = !!o : A.defaultChecked = T, l.createElement(
|
|
8758
8782
|
"div",
|
|
8759
8783
|
{
|
|
8760
8784
|
ref: p,
|
|
8761
|
-
className:
|
|
8785
|
+
className: Fo("fibo-checkbox-container", h)
|
|
8762
8786
|
},
|
|
8763
8787
|
l.createElement(
|
|
8764
8788
|
"label",
|
|
@@ -8768,15 +8792,15 @@ const ks = co(nn), sn = l.memo((t) => {
|
|
|
8768
8792
|
l.createElement(
|
|
8769
8793
|
"div",
|
|
8770
8794
|
{
|
|
8771
|
-
className:
|
|
8795
|
+
className: Fo(
|
|
8772
8796
|
"fibo-checkbox-box w-5 h-5 rounded-[6px] border-2 flex items-center justify-center transition-all duration-200",
|
|
8773
8797
|
n ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
8774
|
-
|
|
8798
|
+
N ? "border-transparent bg-[var(--fibo-primary,#3B82F6)]" : "border-gray-300 bg-transparent"
|
|
8775
8799
|
),
|
|
8776
8800
|
style: d,
|
|
8777
8801
|
"aria-hidden": !0
|
|
8778
8802
|
},
|
|
8779
|
-
|
|
8803
|
+
I
|
|
8780
8804
|
),
|
|
8781
8805
|
r && l.createElement("span", { className: "text-sm text-gray-700 select-none" }, r),
|
|
8782
8806
|
l.createElement("input", A)
|
|
@@ -8873,48 +8897,48 @@ const cn = l.memo((t) => {
|
|
|
8873
8897
|
value: m,
|
|
8874
8898
|
options: p = [],
|
|
8875
8899
|
placeholder: T,
|
|
8876
|
-
onChange:
|
|
8900
|
+
onChange: $,
|
|
8877
8901
|
disabled: M,
|
|
8878
|
-
multiple:
|
|
8879
|
-
name:
|
|
8880
|
-
controlled:
|
|
8881
|
-
rules:
|
|
8902
|
+
multiple: F,
|
|
8903
|
+
name: N,
|
|
8904
|
+
controlled: D = !1,
|
|
8905
|
+
rules: I
|
|
8882
8906
|
} = t, [A, v] = G(
|
|
8883
|
-
() => m ?? (
|
|
8884
|
-
), z =
|
|
8907
|
+
() => m ?? (F ? [] : "")
|
|
8908
|
+
), z = D ? m ?? (F ? [] : "") : A;
|
|
8885
8909
|
Z(() => {
|
|
8886
|
-
const y = (
|
|
8887
|
-
a.current && !a.current.contains(
|
|
8910
|
+
const y = (R) => {
|
|
8911
|
+
a.current && !a.current.contains(R.target) && n(!1);
|
|
8888
8912
|
};
|
|
8889
8913
|
return document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
|
|
8890
8914
|
}, []), Z(() => {
|
|
8891
8915
|
const y = u.current;
|
|
8892
8916
|
if (!y) return;
|
|
8893
|
-
|
|
8894
|
-
const
|
|
8895
|
-
|
|
8917
|
+
I && (y.__fiboRules = I);
|
|
8918
|
+
const R = y.closest(".fibo-textfield-container"), H = R == null ? void 0 : R.querySelector(".fibo-field-error");
|
|
8919
|
+
R && (R.__fiboShowError = (g) => {
|
|
8896
8920
|
H && (H.textContent = g ?? "", H.style.display = g ? "" : "none");
|
|
8897
8921
|
});
|
|
8898
|
-
}, [
|
|
8899
|
-
const P = (y) =>
|
|
8900
|
-
let
|
|
8901
|
-
if (
|
|
8902
|
-
Array.isArray(z) && z.length > 0 && (
|
|
8922
|
+
}, [I]);
|
|
8923
|
+
const P = (y) => F ? Array.isArray(z) && z.includes(y) : z === y;
|
|
8924
|
+
let X = "";
|
|
8925
|
+
if (F)
|
|
8926
|
+
Array.isArray(z) && z.length > 0 && (X = p.filter((y) => z.includes(y.value)).map((y) => y.label).join(", "));
|
|
8903
8927
|
else {
|
|
8904
|
-
const y = p.find((
|
|
8905
|
-
|
|
8928
|
+
const y = p.find((R) => R.value === z);
|
|
8929
|
+
X = y ? y.label : "";
|
|
8906
8930
|
}
|
|
8907
8931
|
const S = (y) => {
|
|
8908
8932
|
if (M) return;
|
|
8909
|
-
let
|
|
8910
|
-
if (
|
|
8933
|
+
let R;
|
|
8934
|
+
if (F) {
|
|
8911
8935
|
const H = Array.isArray(z) ? [...z] : [], g = H.indexOf(y);
|
|
8912
|
-
g > -1 ? H.splice(g, 1) : H.push(y),
|
|
8936
|
+
g > -1 ? H.splice(g, 1) : H.push(y), R = H;
|
|
8913
8937
|
} else
|
|
8914
|
-
|
|
8915
|
-
|
|
8938
|
+
R = y, n(!1);
|
|
8939
|
+
D || v(R), $ == null || $(R);
|
|
8916
8940
|
}, C = (y) => {
|
|
8917
|
-
p.length !== 0 && f((
|
|
8941
|
+
p.length !== 0 && f((R) => (R + y + p.length) % p.length);
|
|
8918
8942
|
}, V = (y) => {
|
|
8919
8943
|
if (!M)
|
|
8920
8944
|
switch (y.key) {
|
|
@@ -8947,11 +8971,11 @@ const cn = l.memo((t) => {
|
|
|
8947
8971
|
style: h
|
|
8948
8972
|
},
|
|
8949
8973
|
l.createElement("div", { className: "relative w-full h-full" }, [
|
|
8950
|
-
|
|
8974
|
+
N ? l.createElement("input", {
|
|
8951
8975
|
key: "hidden",
|
|
8952
8976
|
ref: u,
|
|
8953
8977
|
type: "hidden",
|
|
8954
|
-
name:
|
|
8978
|
+
name: N,
|
|
8955
8979
|
value: an(z)
|
|
8956
8980
|
}) : null,
|
|
8957
8981
|
l.createElement("button", {
|
|
@@ -8964,11 +8988,11 @@ const cn = l.memo((t) => {
|
|
|
8964
8988
|
"aria-controls": i,
|
|
8965
8989
|
"aria-activedescendant": r && p[s] ? `${i}-opt-${p[s].value}` : void 0,
|
|
8966
8990
|
disabled: M,
|
|
8967
|
-
className: `fibo-textfield-input text-left w-full flex items-center justify-between ${
|
|
8991
|
+
className: `fibo-textfield-input text-left w-full flex items-center justify-between ${X ? "" : "text-gray-400"}`,
|
|
8968
8992
|
onClick: () => !M && n(!r),
|
|
8969
8993
|
onKeyDown: V
|
|
8970
8994
|
}, [
|
|
8971
|
-
l.createElement("span", { key: "text", className: "truncate" },
|
|
8995
|
+
l.createElement("span", { key: "text", className: "truncate" }, X || T || " "),
|
|
8972
8996
|
l.createElement("svg", {
|
|
8973
8997
|
key: "icon",
|
|
8974
8998
|
className: `w-4 h-4 transition-transform ${r ? "rotate-180" : ""}`,
|
|
@@ -8991,10 +9015,10 @@ const cn = l.memo((t) => {
|
|
|
8991
9015
|
key: "dropdown",
|
|
8992
9016
|
id: i,
|
|
8993
9017
|
role: "listbox",
|
|
8994
|
-
"aria-multiselectable":
|
|
9018
|
+
"aria-multiselectable": F || void 0,
|
|
8995
9019
|
className: "absolute z-50 w-full mt-1 bg-[var(--fibo-surface)] border border-[var(--fibo-outline)] rounded-md shadow-lg max-h-60 overflow-auto focus:outline-none"
|
|
8996
|
-
}, p.map((y,
|
|
8997
|
-
const H = P(y.value), g =
|
|
9020
|
+
}, p.map((y, R) => {
|
|
9021
|
+
const H = P(y.value), g = R === s;
|
|
8998
9022
|
return l.createElement("div", {
|
|
8999
9023
|
key: y.value,
|
|
9000
9024
|
id: `${i}-opt-${y.value}`,
|
|
@@ -9002,7 +9026,7 @@ const cn = l.memo((t) => {
|
|
|
9002
9026
|
"aria-selected": H,
|
|
9003
9027
|
className: `px-4 py-2 cursor-pointer text-sm hover:bg-[var(--fibo-primary-container)] hover:text-[var(--fibo-on-primary-container)] flex items-center justify-between ${H || g ? "bg-[var(--fibo-primary-container)] text-[var(--fibo-on-primary-container)] font-medium" : "text-[var(--fibo-on-surface)]"}`,
|
|
9004
9028
|
onClick: () => S(y.value),
|
|
9005
|
-
onMouseEnter: () => f(
|
|
9029
|
+
onMouseEnter: () => f(R)
|
|
9006
9030
|
}, [
|
|
9007
9031
|
l.createElement("span", { key: "label" }, y.label),
|
|
9008
9032
|
H && l.createElement("svg", {
|
|
@@ -9082,7 +9106,7 @@ class ln extends ao {
|
|
|
9082
9106
|
}
|
|
9083
9107
|
build() {
|
|
9084
9108
|
const i = {
|
|
9085
|
-
containerClass:
|
|
9109
|
+
containerClass: Fo("fibo-textfield-container relative", ...this._classNames),
|
|
9086
9110
|
containerStyle: this.getStyle(),
|
|
9087
9111
|
label: this._label,
|
|
9088
9112
|
error: this._error,
|
|
@@ -9111,25 +9135,25 @@ const bn = l.memo((t) => {
|
|
|
9111
9135
|
label: m,
|
|
9112
9136
|
error: p,
|
|
9113
9137
|
value: T,
|
|
9114
|
-
options:
|
|
9138
|
+
options: $ = [],
|
|
9115
9139
|
placeholder: M,
|
|
9116
|
-
onChange:
|
|
9117
|
-
onAdd:
|
|
9118
|
-
disabled:
|
|
9119
|
-
multiple:
|
|
9140
|
+
onChange: F,
|
|
9141
|
+
onAdd: N,
|
|
9142
|
+
disabled: D,
|
|
9143
|
+
multiple: I,
|
|
9120
9144
|
name: A,
|
|
9121
9145
|
controlled: v = !1,
|
|
9122
9146
|
rules: z
|
|
9123
|
-
} = t, [P,
|
|
9124
|
-
() => T ?? (
|
|
9125
|
-
), S = v ? T ?? (
|
|
9147
|
+
} = t, [P, X] = G(
|
|
9148
|
+
() => T ?? (I ? [] : "")
|
|
9149
|
+
), S = v ? T ?? (I ? [] : "") : P;
|
|
9126
9150
|
Z(() => {
|
|
9127
|
-
if (
|
|
9128
|
-
const w =
|
|
9151
|
+
if (!I) {
|
|
9152
|
+
const w = $.find((O) => O.value === S);
|
|
9129
9153
|
w && !r && s !== w.label && f(w.label);
|
|
9130
9154
|
}
|
|
9131
|
-
}, [S,
|
|
9132
|
-
const C =
|
|
9155
|
+
}, [S, $, r, I]);
|
|
9156
|
+
const C = $.filter(
|
|
9133
9157
|
(w) => w.label.toLowerCase().includes(s.toLowerCase())
|
|
9134
9158
|
);
|
|
9135
9159
|
Z(() => {
|
|
@@ -9137,15 +9161,15 @@ const bn = l.memo((t) => {
|
|
|
9137
9161
|
}, [s, r]), Z(() => {
|
|
9138
9162
|
const w = (O) => {
|
|
9139
9163
|
if (b.current && !b.current.contains(O.target))
|
|
9140
|
-
if (n(!1),
|
|
9164
|
+
if (n(!1), I)
|
|
9141
9165
|
f("");
|
|
9142
9166
|
else {
|
|
9143
|
-
const q =
|
|
9167
|
+
const q = $.find((Y) => Y.value === S);
|
|
9144
9168
|
f(q ? q.label : "");
|
|
9145
9169
|
}
|
|
9146
9170
|
};
|
|
9147
9171
|
return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
|
|
9148
|
-
}, [S,
|
|
9172
|
+
}, [S, $, I]), Z(() => {
|
|
9149
9173
|
const w = h.current;
|
|
9150
9174
|
if (!w) return;
|
|
9151
9175
|
z && (w.__fiboRules = z);
|
|
@@ -9155,22 +9179,22 @@ const bn = l.memo((t) => {
|
|
|
9155
9179
|
});
|
|
9156
9180
|
}, [z]);
|
|
9157
9181
|
const V = (w) => {
|
|
9158
|
-
v ||
|
|
9182
|
+
v || X(w), F == null || F(w);
|
|
9159
9183
|
}, y = (w) => {
|
|
9160
|
-
if (
|
|
9184
|
+
if (I) {
|
|
9161
9185
|
const O = Array.isArray(S) ? [...S] : [];
|
|
9162
9186
|
O.includes(w.value) || (O.push(w.value), V(O)), f("");
|
|
9163
9187
|
} else
|
|
9164
9188
|
f(w.label), V(w.value), n(!1);
|
|
9165
|
-
},
|
|
9166
|
-
if (
|
|
9189
|
+
}, R = (w) => {
|
|
9190
|
+
if (I && Array.isArray(S)) {
|
|
9167
9191
|
const O = S.filter((q) => q !== w);
|
|
9168
9192
|
V(O);
|
|
9169
9193
|
}
|
|
9170
9194
|
}, H = () => {
|
|
9171
|
-
|
|
9172
|
-
}, g = (w) =>
|
|
9173
|
-
if (!
|
|
9195
|
+
N == null || N(s), I ? f("") : n(!1);
|
|
9196
|
+
}, g = (w) => I ? Array.isArray(S) && S.includes(w) : S === w, K = (w) => {
|
|
9197
|
+
if (!D)
|
|
9174
9198
|
switch (w.key) {
|
|
9175
9199
|
case "ArrowDown":
|
|
9176
9200
|
w.preventDefault(), r ? C.length && u((O) => (O + 1) % C.length) : n(!0);
|
|
@@ -9179,7 +9203,7 @@ const bn = l.memo((t) => {
|
|
|
9179
9203
|
w.preventDefault(), r ? C.length && u((O) => (O - 1 + C.length) % C.length) : n(!0);
|
|
9180
9204
|
break;
|
|
9181
9205
|
case "Enter":
|
|
9182
|
-
w.preventDefault(), C[a] ? y(C[a]) : s &&
|
|
9206
|
+
w.preventDefault(), C[a] ? y(C[a]) : s && N && H();
|
|
9183
9207
|
break;
|
|
9184
9208
|
case "Escape":
|
|
9185
9209
|
w.preventDefault(), n(!1);
|
|
@@ -9206,8 +9230,8 @@ const bn = l.memo((t) => {
|
|
|
9206
9230
|
className: `fibo-textfield-input flex flex-wrap items-center gap-1 ${r ? "ring-2 ring-[var(--fibo-primary-container)] border-[var(--fibo-primary)]" : ""}`,
|
|
9207
9231
|
style: { minHeight: "42px", padding: "4px 8px" }
|
|
9208
9232
|
}, [
|
|
9209
|
-
|
|
9210
|
-
const O =
|
|
9233
|
+
I && Array.isArray(S) && S.map((w) => {
|
|
9234
|
+
const O = $.find((Y) => Y.value === w), q = O ? O.label : w;
|
|
9211
9235
|
return l.createElement("span", {
|
|
9212
9236
|
key: w,
|
|
9213
9237
|
className: "bg-[var(--fibo-primary-container)] text-[var(--fibo-on-primary-container)] text-xs font-medium px-2 py-1 rounded-md flex items-center"
|
|
@@ -9218,7 +9242,7 @@ const bn = l.memo((t) => {
|
|
|
9218
9242
|
className: "ml-1 hover:text-[var(--fibo-primary)] focus:outline-none",
|
|
9219
9243
|
"aria-label": `Remove ${q}`,
|
|
9220
9244
|
onClick: (Y) => {
|
|
9221
|
-
Y.stopPropagation(),
|
|
9245
|
+
Y.stopPropagation(), R(w);
|
|
9222
9246
|
}
|
|
9223
9247
|
}, "×")
|
|
9224
9248
|
]);
|
|
@@ -9233,8 +9257,8 @@ const bn = l.memo((t) => {
|
|
|
9233
9257
|
"aria-activedescendant": r && C[a] ? `${i}-opt-${C[a].value}` : void 0,
|
|
9234
9258
|
className: "bg-transparent outline-none flex-1 min-w-[60px] text-sm h-8",
|
|
9235
9259
|
value: s,
|
|
9236
|
-
placeholder:
|
|
9237
|
-
disabled:
|
|
9260
|
+
placeholder: I && Array.isArray(S) && S.length > 0 ? "" : M || " ",
|
|
9261
|
+
disabled: D,
|
|
9238
9262
|
onChange: (w) => {
|
|
9239
9263
|
f(w.target.value), r || n(!0);
|
|
9240
9264
|
},
|
|
@@ -9255,7 +9279,7 @@ const bn = l.memo((t) => {
|
|
|
9255
9279
|
key: "dropdown",
|
|
9256
9280
|
id: i,
|
|
9257
9281
|
role: "listbox",
|
|
9258
|
-
"aria-multiselectable":
|
|
9282
|
+
"aria-multiselectable": I || void 0,
|
|
9259
9283
|
className: "absolute z-50 w-full mt-1 bg-[var(--fibo-surface)] border border-[var(--fibo-outline)] rounded-md shadow-lg max-h-60 overflow-auto focus:outline-none left-0"
|
|
9260
9284
|
}, [
|
|
9261
9285
|
...C.length > 0 ? C.map((w, O) => {
|
|
@@ -9270,7 +9294,7 @@ const bn = l.memo((t) => {
|
|
|
9270
9294
|
onMouseEnter: () => u(O)
|
|
9271
9295
|
}, w.label);
|
|
9272
9296
|
}) : [l.createElement("div", { key: "empty", className: "px-4 py-2 text-sm text-gray-500" }, "No results found.")],
|
|
9273
|
-
s && !C.some((w) => w.label.toLowerCase() === s.toLowerCase()) &&
|
|
9297
|
+
s && !C.some((w) => w.label.toLowerCase() === s.toLowerCase()) && N ? l.createElement("div", {
|
|
9274
9298
|
key: "add-new",
|
|
9275
9299
|
role: "option",
|
|
9276
9300
|
"aria-selected": !1,
|
|
@@ -9353,7 +9377,7 @@ class hn extends ao {
|
|
|
9353
9377
|
}
|
|
9354
9378
|
build() {
|
|
9355
9379
|
const i = {
|
|
9356
|
-
containerClass:
|
|
9380
|
+
containerClass: Fo("fibo-textfield-container relative", ...this._classNames),
|
|
9357
9381
|
containerStyle: this.getStyle(),
|
|
9358
9382
|
label: this._label,
|
|
9359
9383
|
error: this._error,
|
|
@@ -9489,7 +9513,7 @@ function Ee(t, o) {
|
|
|
9489
9513
|
function Te(t, o, e) {
|
|
9490
9514
|
return lo(e ? e(t, o) : t);
|
|
9491
9515
|
}
|
|
9492
|
-
const gn = 100,
|
|
9516
|
+
const gn = 100, Ie = 60, $e = 5;
|
|
9493
9517
|
function Qo(t) {
|
|
9494
9518
|
return t.split(";").map((o) => o.trim()).filter(Boolean).map((o) => /\s!important\s*$/i.test(o) ? o : `${o} !important`).join("; ");
|
|
9495
9519
|
}
|
|
@@ -9511,15 +9535,15 @@ const vn = l.memo((t) => {
|
|
|
9511
9535
|
customItemActive: m,
|
|
9512
9536
|
customItemFocus: p,
|
|
9513
9537
|
itemStyle: T
|
|
9514
|
-
} = t, M = l.useId().replace(/:/g, ""),
|
|
9538
|
+
} = t, M = l.useId().replace(/:/g, ""), F = `fibo-list-${M}`, N = `fibo-list-custom-styles-${M}`, [D, I] = G(0), [A, v] = G(0), z = U(null), P = U(/* @__PURE__ */ new Map()), X = U(/* @__PURE__ */ new Map()), S = U(null), C = d === "horizontal", V = o.length, y = V > gn, R = (L) => X.current.get(L) ?? Ie, H = (L) => {
|
|
9515
9539
|
let j = 0;
|
|
9516
9540
|
for (let eo = 0; eo < L; eo++)
|
|
9517
|
-
j +=
|
|
9541
|
+
j += R(eo);
|
|
9518
9542
|
return j;
|
|
9519
9543
|
}, g = () => {
|
|
9520
9544
|
let L = 0;
|
|
9521
9545
|
for (let j = 0; j < V; j++)
|
|
9522
|
-
L +=
|
|
9546
|
+
L += R(j);
|
|
9523
9547
|
return L;
|
|
9524
9548
|
}, K = (L) => {
|
|
9525
9549
|
let j = 0, eo = V - 1;
|
|
@@ -9531,10 +9555,10 @@ const vn = l.memo((t) => {
|
|
|
9531
9555
|
};
|
|
9532
9556
|
let w = 0, O = V, q = 0, Y = 0;
|
|
9533
9557
|
if (y) {
|
|
9534
|
-
w = Math.max(0, K(
|
|
9558
|
+
w = Math.max(0, K(D) - $e);
|
|
9535
9559
|
let L = H(w), j = w;
|
|
9536
|
-
for (; L <
|
|
9537
|
-
L +=
|
|
9560
|
+
for (; L < D + b + $e * Ie && j < V; )
|
|
9561
|
+
L += R(j), j++;
|
|
9538
9562
|
O = Math.min(V, j), q = H(w), Y = g();
|
|
9539
9563
|
}
|
|
9540
9564
|
const to = o.slice(w, O);
|
|
@@ -9545,7 +9569,7 @@ const vn = l.memo((t) => {
|
|
|
9545
9569
|
const so = w + eo, Co = P.current.get(so);
|
|
9546
9570
|
if (Co) {
|
|
9547
9571
|
const ce = Co.getBoundingClientRect(), Uo = C ? ce.width : ce.height;
|
|
9548
|
-
Uo > 0 &&
|
|
9572
|
+
Uo > 0 && X.current.get(so) !== Uo && (X.current.set(so, Uo), L = !0);
|
|
9549
9573
|
}
|
|
9550
9574
|
}), L && v((j) => j + 1);
|
|
9551
9575
|
}, [to, w, y, C, A]), oe(() => {
|
|
@@ -9559,22 +9583,22 @@ const vn = l.memo((t) => {
|
|
|
9559
9583
|
return S.current && L.observe(S.current), () => L.disconnect();
|
|
9560
9584
|
}, [n, o.length, f, s]);
|
|
9561
9585
|
const ko = (L) => {
|
|
9562
|
-
y &&
|
|
9586
|
+
y && I(C ? L.currentTarget.scrollLeft : L.currentTarget.scrollTop);
|
|
9563
9587
|
};
|
|
9564
9588
|
Z(() => {
|
|
9565
9589
|
if (typeof document > "u" || !x && !m && !p) return;
|
|
9566
|
-
let L = document.getElementById(
|
|
9567
|
-
L || (L = document.createElement("style"), L.id =
|
|
9590
|
+
let L = document.getElementById(N);
|
|
9591
|
+
L || (L = document.createElement("style"), L.id = N, document.head.appendChild(L));
|
|
9568
9592
|
let j = "";
|
|
9569
|
-
const eo = `.${
|
|
9593
|
+
const eo = `.${F}`;
|
|
9570
9594
|
return x && (j += `${eo} .fibo-list-item-custom-hover:hover { ${Qo(x)} }
|
|
9571
9595
|
`), m && (j += `${eo} .fibo-list-item-custom-active:active { ${Qo(m)} }
|
|
9572
9596
|
`), p && (j += `${eo} .fibo-list-item-custom-focus:focus-within { ${Qo(p)} }
|
|
9573
9597
|
`), L.textContent = j, () => {
|
|
9574
|
-
const so = document.getElementById(
|
|
9598
|
+
const so = document.getElementById(N);
|
|
9575
9599
|
so && so.remove();
|
|
9576
9600
|
};
|
|
9577
|
-
}, [x, m, p,
|
|
9601
|
+
}, [x, m, p, F, N]);
|
|
9578
9602
|
const Ao = {
|
|
9579
9603
|
default: { gap: "0px" },
|
|
9580
9604
|
card: { gap: "12px" },
|
|
@@ -9619,7 +9643,7 @@ const vn = l.memo((t) => {
|
|
|
9619
9643
|
"div",
|
|
9620
9644
|
{
|
|
9621
9645
|
ref: z,
|
|
9622
|
-
className: `fibo-list fibo-list-virtualized ${
|
|
9646
|
+
className: `fibo-list fibo-list-virtualized ${F} ${a || ""}`,
|
|
9623
9647
|
style: {
|
|
9624
9648
|
height: C ? void 0 : `${b}px`,
|
|
9625
9649
|
width: C ? `${b}px` : void 0,
|
|
@@ -9658,7 +9682,7 @@ const vn = l.memo((t) => {
|
|
|
9658
9682
|
to.map((L, j) => {
|
|
9659
9683
|
const eo = w + j, so = Te(L, eo, e);
|
|
9660
9684
|
return l.cloneElement(
|
|
9661
|
-
|
|
9685
|
+
Io().style(go[i]).classNames(So[i]).children(so).build(),
|
|
9662
9686
|
{
|
|
9663
9687
|
key: Ee(L, eo),
|
|
9664
9688
|
ref: (Co) => {
|
|
@@ -9672,14 +9696,14 @@ const vn = l.memo((t) => {
|
|
|
9672
9696
|
ref: S,
|
|
9673
9697
|
className: "py-4 flex justify-center w-full"
|
|
9674
9698
|
}, n ? l.createElement("div", { className: "animate-spin rounded-full h-5 w-5 border-2 border-gray-300 border-b-blue-600" }) : l.createElement("div", { style: { height: "20px" } }))
|
|
9675
|
-
) :
|
|
9699
|
+
) : Io().className(a).classNames(["fibo-list", F, "flex", d === "horizontal" ? "flex-row" : "flex-col", "w-full"]).style({
|
|
9676
9700
|
...Ao[i],
|
|
9677
9701
|
...u
|
|
9678
9702
|
}).children(
|
|
9679
9703
|
l.createElement(l.Fragment, {}, [
|
|
9680
9704
|
...o.map(
|
|
9681
9705
|
(L, j) => l.cloneElement(
|
|
9682
|
-
|
|
9706
|
+
Io().style(go[i]).classNames(So[i]).children(Te(L, j, e)).build(),
|
|
9683
9707
|
{ key: Ee(L, j) }
|
|
9684
9708
|
)
|
|
9685
9709
|
),
|
|
@@ -9891,7 +9915,7 @@ const zs = co(wn), yn = () => l.createElement(
|
|
|
9891
9915
|
return l.createElement(
|
|
9892
9916
|
"div",
|
|
9893
9917
|
{
|
|
9894
|
-
className:
|
|
9918
|
+
className: Fo("fibo-list-tile flex flex-row items-center w-full", u),
|
|
9895
9919
|
style: {
|
|
9896
9920
|
padding: x,
|
|
9897
9921
|
borderBottom: s ? `1px solid ${f || "#3b3b3b"}` : "none",
|
|
@@ -10028,7 +10052,7 @@ const Cn = l.memo(({ builder: t }) => {
|
|
|
10028
10052
|
const o = l.useId(), e = `${o}-content`, i = t._expanded !== void 0, [r, n] = G(t._defaultExpanded), s = i ? t._expanded : r, f = () => {
|
|
10029
10053
|
i || n(!s), t._onToggle && t._onToggle(!s);
|
|
10030
10054
|
};
|
|
10031
|
-
return
|
|
10055
|
+
return Io().classNames(["w-full", "border", "border-gray-200", "rounded-xl", "overflow-hidden", "bg-white", "transition-all", "duration-300"]).className(t.getClassName()).style(t.getStyle()).children([
|
|
10032
10056
|
l.createElement("button", {
|
|
10033
10057
|
key: "header",
|
|
10034
10058
|
type: "button",
|
|
@@ -10060,7 +10084,7 @@ const Cn = l.memo(({ builder: t }) => {
|
|
|
10060
10084
|
className: "text-gray-400"
|
|
10061
10085
|
}, l.createElement("polyline", { points: "6 9 12 15 18 9" })))
|
|
10062
10086
|
]),
|
|
10063
|
-
|
|
10087
|
+
Io().props({
|
|
10064
10088
|
id: e,
|
|
10065
10089
|
role: "region",
|
|
10066
10090
|
"aria-labelledby": o,
|
|
@@ -10069,7 +10093,7 @@ const Cn = l.memo(({ builder: t }) => {
|
|
|
10069
10093
|
maxHeight: s ? "500px" : "0px",
|
|
10070
10094
|
opacity: s ? 1 : 0
|
|
10071
10095
|
}).children(
|
|
10072
|
-
|
|
10096
|
+
Io().classNames(["p-4", "pt-0", "text-gray-600", "text-sm"]).children(t._content).build()
|
|
10073
10097
|
).build()
|
|
10074
10098
|
]).build();
|
|
10075
10099
|
}), Ts = co(Sn);
|
|
@@ -10386,16 +10410,16 @@ const Tn = ({ error: t, onReset: o }) => {
|
|
|
10386
10410
|
}
|
|
10387
10411
|
);
|
|
10388
10412
|
};
|
|
10389
|
-
function
|
|
10413
|
+
function Fe(t, o) {
|
|
10390
10414
|
return o && t.startsWith(o) ? t.slice(o.length) || "/" : t || "/";
|
|
10391
10415
|
}
|
|
10392
|
-
function
|
|
10416
|
+
function In(t) {
|
|
10393
10417
|
return t ? t.startsWith("?") ? t.slice(1) : t : "";
|
|
10394
10418
|
}
|
|
10395
|
-
function
|
|
10419
|
+
function $n(t) {
|
|
10396
10420
|
return t ? t.startsWith("#") ? t : `#${t}` : "";
|
|
10397
10421
|
}
|
|
10398
|
-
const
|
|
10422
|
+
const Fn = yo(null), Is = ({
|
|
10399
10423
|
routes: t,
|
|
10400
10424
|
fallback: o,
|
|
10401
10425
|
loading: e,
|
|
@@ -10406,10 +10430,10 @@ const In = yo(null), $s = ({
|
|
|
10406
10430
|
errorBoundary: f,
|
|
10407
10431
|
onError: a
|
|
10408
10432
|
}) => {
|
|
10409
|
-
const [u, b] = G(() =>
|
|
10410
|
-
|
|
10433
|
+
const [u, b] = G(() => Fe(r, i)), [h, d] = G(() => new URLSearchParams(In(n))), [x, m] = G(() => $n(s)), { route: p, params: T } = ie(t, u), $ = l.useRef(p);
|
|
10434
|
+
$.current = p;
|
|
10411
10435
|
const M = ro(async (A, v = {}) => {
|
|
10412
|
-
const z =
|
|
10436
|
+
const z = $.current, { route: P } = ie(t, A);
|
|
10413
10437
|
if (z != null && z.beforeLeave && P) {
|
|
10414
10438
|
const S = await z.beforeLeave(P, z);
|
|
10415
10439
|
if (S === !1)
|
|
@@ -10423,33 +10447,33 @@ const In = yo(null), $s = ({
|
|
|
10423
10447
|
return;
|
|
10424
10448
|
typeof S == "string" && (A = S);
|
|
10425
10449
|
}
|
|
10426
|
-
const
|
|
10427
|
-
typeof window < "u" && (v.replace ? window.history.replaceState(v.state || {}, "",
|
|
10428
|
-
}, [i, t]),
|
|
10450
|
+
const X = i + A;
|
|
10451
|
+
typeof window < "u" && (v.replace ? window.history.replaceState(v.state || {}, "", X) : window.history.pushState(v.state || {}, "", X), d(new URLSearchParams(window.location.search))), b(A);
|
|
10452
|
+
}, [i, t]), F = ro(() => {
|
|
10429
10453
|
typeof window < "u" && window.history.back();
|
|
10430
|
-
}, []),
|
|
10454
|
+
}, []), N = ro((A) => {
|
|
10431
10455
|
M(A, { replace: !0 });
|
|
10432
10456
|
}, [M]);
|
|
10433
10457
|
Z(() => {
|
|
10434
10458
|
if (typeof window > "u") return;
|
|
10435
10459
|
const A = () => {
|
|
10436
|
-
b(
|
|
10460
|
+
b(Fe(window.location.pathname, i)), d(new URLSearchParams(window.location.search)), m(window.location.hash || "");
|
|
10437
10461
|
};
|
|
10438
10462
|
return A(), window.addEventListener("popstate", A), () => window.removeEventListener("popstate", A);
|
|
10439
10463
|
}, [i]);
|
|
10440
|
-
const
|
|
10464
|
+
const D = {
|
|
10441
10465
|
currentPath: u,
|
|
10442
10466
|
basename: i,
|
|
10443
10467
|
navigate: M,
|
|
10444
|
-
goBack:
|
|
10445
|
-
replace:
|
|
10468
|
+
goBack: F,
|
|
10469
|
+
replace: N,
|
|
10446
10470
|
params: T,
|
|
10447
10471
|
query: h,
|
|
10448
10472
|
hash: x
|
|
10449
|
-
},
|
|
10473
|
+
}, I = () => {
|
|
10450
10474
|
if (!p)
|
|
10451
10475
|
return o ? /* @__PURE__ */ W(o, {}) : /* @__PURE__ */ W("div", { children: "404 - Page Not Found" });
|
|
10452
|
-
const A = p.component, v = /* @__PURE__ */ W(
|
|
10476
|
+
const A = p.component, v = /* @__PURE__ */ W(Fn.Provider, { value: p, children: /* @__PURE__ */ W(A, {}) });
|
|
10453
10477
|
return /* @__PURE__ */ W(
|
|
10454
10478
|
En,
|
|
10455
10479
|
{
|
|
@@ -10459,16 +10483,16 @@ const In = yo(null), $s = ({
|
|
|
10459
10483
|
}
|
|
10460
10484
|
);
|
|
10461
10485
|
};
|
|
10462
|
-
return /* @__PURE__ */ W(fe.Provider, { value:
|
|
10486
|
+
return /* @__PURE__ */ W(fe.Provider, { value: D, children: e ? /* @__PURE__ */ W(Et, { fallback: e, children: I() }) : I() });
|
|
10463
10487
|
};
|
|
10464
10488
|
export {
|
|
10465
10489
|
ar as $,
|
|
10466
10490
|
as as A,
|
|
10467
|
-
|
|
10468
|
-
|
|
10491
|
+
$i as B,
|
|
10492
|
+
It as C,
|
|
10469
10493
|
Ye as D,
|
|
10470
10494
|
Kt as E,
|
|
10471
|
-
|
|
10495
|
+
Xe as F,
|
|
10472
10496
|
wo as G,
|
|
10473
10497
|
xi as H,
|
|
10474
10498
|
Je as I,
|
|
@@ -10477,10 +10501,10 @@ export {
|
|
|
10477
10501
|
vi as L,
|
|
10478
10502
|
be as M,
|
|
10479
10503
|
wi as N,
|
|
10480
|
-
|
|
10481
|
-
|
|
10504
|
+
$t as O,
|
|
10505
|
+
Xt as P,
|
|
10482
10506
|
ei as Q,
|
|
10483
|
-
|
|
10507
|
+
Dn as R,
|
|
10484
10508
|
To as S,
|
|
10485
10509
|
ns as T,
|
|
10486
10510
|
ts as U,
|
|
@@ -10495,11 +10519,11 @@ export {
|
|
|
10495
10519
|
_s as a1,
|
|
10496
10520
|
Ss as a2,
|
|
10497
10521
|
Cs as a3,
|
|
10498
|
-
|
|
10522
|
+
Io as a4,
|
|
10499
10523
|
zs as a5,
|
|
10500
10524
|
Es as a6,
|
|
10501
10525
|
Ts as a7,
|
|
10502
|
-
|
|
10526
|
+
Is as a8,
|
|
10503
10527
|
Go as a9,
|
|
10504
10528
|
le as aA,
|
|
10505
10529
|
Wn as aB,
|
|
@@ -10535,13 +10559,13 @@ export {
|
|
|
10535
10559
|
lo as av,
|
|
10536
10560
|
Vt as aw,
|
|
10537
10561
|
Yt as ax,
|
|
10538
|
-
|
|
10562
|
+
Fo as ay,
|
|
10539
10563
|
Gt as az,
|
|
10540
10564
|
Ae as b,
|
|
10541
10565
|
Pn as c,
|
|
10542
10566
|
Vn as d,
|
|
10543
10567
|
jn as e,
|
|
10544
|
-
|
|
10568
|
+
Xn as f,
|
|
10545
10569
|
Le as g,
|
|
10546
10570
|
Wt as h,
|
|
10547
10571
|
Yn as i,
|
|
@@ -10558,8 +10582,8 @@ export {
|
|
|
10558
10582
|
es as t,
|
|
10559
10583
|
Hn as u,
|
|
10560
10584
|
er as v,
|
|
10561
|
-
|
|
10562
|
-
|
|
10585
|
+
Ii as w,
|
|
10586
|
+
Fi as x,
|
|
10563
10587
|
ss as y,
|
|
10564
10588
|
fs as z
|
|
10565
10589
|
};
|