fiboui 2.2.0 → 2.2.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-6w615KQw.js → FineGrain-BEvB51B2.js} +1 -1
- package/dist/Link-ElmaMZB8.js +89 -0
- package/dist/{Router-i6Nc6qVs.js → Router-BwbaHooU.js} +139 -127
- package/dist/{builder-KLTu7nAI.js → builder-3Bc2PfP9.js} +597 -558
- package/dist/content.js +3 -3
- package/dist/core.js +46 -43
- package/dist/{index-DhPBYTPt.js → index-BObp1JkM.js} +27 -20
- package/dist/{index-CYnY7jAX.js → index-BlciuWzU.js} +5 -4
- package/dist/{index-ijbJR6lD.js → index-CZQ5erLU.js} +7 -6
- package/dist/{index-BN2z9MuJ.js → index-Cae2Rtx1.js} +12 -12
- package/dist/{index-CdJvNseK.js → index-CxbrZGXa.js} +116 -113
- package/dist/{index-DU2MC5u3.js → index-DbjaknWm.js} +117 -93
- package/dist/{index-CbTvwN9K.js → index-DgRpEUs0.js} +4 -4
- package/dist/index.d.ts +51 -8
- package/dist/index.js +556 -493
- package/dist/interactive.js +1 -1
- package/dist/layout.js +2 -2
- package/dist/mount-D59e1COl.js +358 -0
- package/dist/navigation.js +2 -2
- package/dist/{provider-B0eB-Wy7.js → provider-CihtUuRx.js} +48 -32
- package/dist/structure.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.js +1 -1
- package/package.json +2 -1
- package/dist/Link-DDzSPY1Q.js +0 -88
- package/dist/mount-D5gt_GWO.js +0 -331
package/dist/content.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { b as s, A as r, B as o, I as t, c as n, L as I, P as g, a as l, S as m } from "./index-
|
|
3
|
-
import { T as x } from "./index-
|
|
4
|
-
import { I as f } from "./index-
|
|
2
|
+
import { b as s, A as r, B as o, I as t, c as n, L as I, P as g, a as l, S as m } from "./index-DgRpEUs0.js";
|
|
3
|
+
import { T as x } from "./index-BObp1JkM.js";
|
|
4
|
+
import { I as f } from "./index-CZQ5erLU.js";
|
|
5
5
|
export {
|
|
6
6
|
s as Alert,
|
|
7
7
|
r as Avatar,
|
package/dist/core.js
CHANGED
|
@@ -1,53 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as a,
|
|
3
|
-
import { E as
|
|
4
|
-
import { F as
|
|
2
|
+
import { C as a, F as r, M as o, p as t, O as i, d as l, P as n, R as u, f as p, h as S, S as c, V as g, c as b, b as v, a as d, t as m, g as T, q as R, v as P, o as F, n as y, r as C, i as E, s as f, m as M, j as O, l as x, k as V, u as B, e as h } from "./builder-3Bc2PfP9.js";
|
|
3
|
+
import { E as k, l as w, F as A, k as I, P as q, c as G, j as N, m as W, t as _, g as z, b as D, h as H, a as J, i as K, u as L, e as Q, f as U, d as X } from "./mount-D59e1COl.js";
|
|
4
|
+
import { F as Z, b as $ } from "./FineGrain-BEvB51B2.js";
|
|
5
5
|
export {
|
|
6
6
|
a as ComputedSignal,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
o as
|
|
14
|
-
t as
|
|
15
|
-
i as
|
|
16
|
-
|
|
7
|
+
k as Easing,
|
|
8
|
+
w as Fibo,
|
|
9
|
+
A as FiboApp,
|
|
10
|
+
I as FiboAppBuilder,
|
|
11
|
+
r as FiboStyles,
|
|
12
|
+
Z as FineGrainText,
|
|
13
|
+
o as MOTION_PRESETS,
|
|
14
|
+
t as MotionStyles,
|
|
15
|
+
i as Observable,
|
|
16
|
+
l as Observer,
|
|
17
|
+
q as Presence,
|
|
17
18
|
n as ProviderWrapper,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
u as ReactivityRoot,
|
|
20
|
+
p as Reveal,
|
|
21
|
+
S as ScrollProgress,
|
|
21
22
|
c as Signal,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
g as ValueBuilder,
|
|
24
|
+
G as applyResponsiveStyles,
|
|
25
|
+
$ as bindText,
|
|
25
26
|
b as computed,
|
|
26
27
|
v as createReactivityRoot,
|
|
27
28
|
d as createStore,
|
|
28
|
-
|
|
29
|
-
m as
|
|
29
|
+
N as cssCurve,
|
|
30
|
+
m as getCss,
|
|
31
|
+
T as getCurrentScope,
|
|
30
32
|
R as getMotionCss,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
M as
|
|
39
|
-
O as
|
|
40
|
-
x as
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
33
|
+
P as getStyleTag,
|
|
34
|
+
W as mount,
|
|
35
|
+
F as observable,
|
|
36
|
+
y as resolveCssEase,
|
|
37
|
+
C as runInScope,
|
|
38
|
+
E as scrollTo,
|
|
39
|
+
f as signal,
|
|
40
|
+
M as springEase,
|
|
41
|
+
O as startViewTransition,
|
|
42
|
+
x as supportsScrollTimeline,
|
|
43
|
+
V as supportsViewTimeline,
|
|
44
|
+
_ as toElement,
|
|
45
|
+
B as useBuilderState,
|
|
46
|
+
z as useMountTransition,
|
|
47
|
+
D as useObservable,
|
|
48
|
+
H as usePrefersReducedMotion,
|
|
49
|
+
h as useProvider,
|
|
50
|
+
J as useReactiveStore,
|
|
51
|
+
K as useScrollProgress,
|
|
52
|
+
L as useSignal,
|
|
53
|
+
Q as useSpring,
|
|
54
|
+
U as useStagger,
|
|
55
|
+
X as useTransition
|
|
53
56
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var o = (i, e, t) =>
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { F as g } from "./FineGrain-
|
|
2
|
+
var m = Object.defineProperty;
|
|
3
|
+
var p = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
4
|
+
var o = (i, e, t) => p(i, typeof e != "symbol" ? e + "" : e, t);
|
|
5
|
+
import h from "react";
|
|
6
|
+
import { w as c, x as f } from "./builder-3Bc2PfP9.js";
|
|
7
|
+
import { F as g } from "./FineGrain-BEvB51B2.js";
|
|
8
8
|
const y = {
|
|
9
9
|
h1: { fontSize: "2.25rem", fontWeight: 700, letterSpacing: "-0.025em", lineHeight: 1.2 },
|
|
10
10
|
h2: { fontSize: "1.875rem", fontWeight: 700, letterSpacing: "-0.025em", lineHeight: 1.25 },
|
|
@@ -17,10 +17,17 @@ const y = {
|
|
|
17
17
|
label: { fontSize: "0.875rem", fontWeight: 500, lineHeight: 1.4 }
|
|
18
18
|
};
|
|
19
19
|
function r(i, e) {
|
|
20
|
-
return {
|
|
20
|
+
return {
|
|
21
|
+
margin: 0,
|
|
22
|
+
overflowWrap: "anywhere",
|
|
23
|
+
wordBreak: "break-word",
|
|
24
|
+
maxWidth: "100%",
|
|
25
|
+
...y[i],
|
|
26
|
+
...e
|
|
27
|
+
};
|
|
21
28
|
}
|
|
22
|
-
const u =
|
|
23
|
-
const { text: e, type: t, className:
|
|
29
|
+
const u = h.memo((i) => {
|
|
30
|
+
const { text: e, type: t, className: n, style: s, ...a } = i, l = {
|
|
24
31
|
h1: "h1",
|
|
25
32
|
h2: "h2",
|
|
26
33
|
h3: "h3",
|
|
@@ -31,11 +38,11 @@ const u = s.memo((i) => {
|
|
|
31
38
|
caption: "span",
|
|
32
39
|
label: "label"
|
|
33
40
|
};
|
|
34
|
-
return
|
|
41
|
+
return h.createElement(
|
|
35
42
|
l[t],
|
|
36
43
|
{
|
|
37
|
-
className: `fibo-text fibo-text-${t} ${
|
|
38
|
-
style: r(t,
|
|
44
|
+
className: `fibo-text fibo-text-${t} min-w-0 ${n}`,
|
|
45
|
+
style: r(t, s),
|
|
39
46
|
...a
|
|
40
47
|
},
|
|
41
48
|
e
|
|
@@ -79,26 +86,26 @@ class x extends f {
|
|
|
79
86
|
label: "label"
|
|
80
87
|
};
|
|
81
88
|
if (typeof this._text == "function") {
|
|
82
|
-
const
|
|
83
|
-
return
|
|
84
|
-
compute:
|
|
89
|
+
const s = this._text;
|
|
90
|
+
return h.createElement(g, {
|
|
91
|
+
compute: s,
|
|
85
92
|
as: t[this._type],
|
|
86
|
-
className: `fibo-text fibo-text-${this._type} ${this.getClassName()}`,
|
|
93
|
+
className: `fibo-text fibo-text-${this._type} min-w-0 ${this.getClassName()}`,
|
|
87
94
|
style: r(this._type, this.getStyle()),
|
|
88
95
|
...this._props
|
|
89
96
|
});
|
|
90
97
|
}
|
|
91
|
-
const
|
|
98
|
+
const n = {
|
|
92
99
|
text: this._text,
|
|
93
100
|
type: this._type,
|
|
94
101
|
className: this.getClassName(),
|
|
95
102
|
style: this.getStyle(),
|
|
96
103
|
...this._props
|
|
97
104
|
};
|
|
98
|
-
return
|
|
105
|
+
return h.createElement(u, n);
|
|
99
106
|
}
|
|
100
107
|
}
|
|
101
|
-
const
|
|
108
|
+
const W = c(x);
|
|
102
109
|
export {
|
|
103
|
-
|
|
110
|
+
W as T
|
|
104
111
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import o from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { w as l, x as i } from "./builder-3Bc2PfP9.js";
|
|
4
4
|
const a = o.memo((r) => {
|
|
5
5
|
const { className: c, style: e, children: s, ...t } = r;
|
|
6
6
|
return o.createElement(
|
|
@@ -17,17 +17,18 @@ class m extends i {
|
|
|
17
17
|
build() {
|
|
18
18
|
const e = [
|
|
19
19
|
"fibo-box",
|
|
20
|
+
"min-w-0",
|
|
20
21
|
...this._classNames
|
|
21
|
-
].filter(Boolean).join(" "), s = this.getStyle(), t = this.processChildren(),
|
|
22
|
+
].filter(Boolean).join(" "), s = this.getStyle(), t = this.processChildren(), n = {
|
|
22
23
|
className: e,
|
|
23
24
|
style: s,
|
|
24
25
|
children: t,
|
|
25
26
|
...this._props
|
|
26
27
|
};
|
|
27
|
-
return o.createElement(a,
|
|
28
|
+
return o.createElement(a, n);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
const B =
|
|
31
|
+
const B = l(m);
|
|
31
32
|
export {
|
|
32
33
|
B
|
|
33
34
|
};
|
|
@@ -3,7 +3,7 @@ var m = Object.defineProperty;
|
|
|
3
3
|
var p = (e, t, s) => t in e ? m(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
4
4
|
var r = (e, t, s) => p(e, typeof t != "symbol" ? t + "" : t, s);
|
|
5
5
|
import o from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { w as a, x as u } from "./builder-3Bc2PfP9.js";
|
|
7
7
|
class g extends u {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
@@ -40,7 +40,8 @@ class g extends u {
|
|
|
40
40
|
"fibo-row",
|
|
41
41
|
"flex",
|
|
42
42
|
"flex-row",
|
|
43
|
-
|
|
43
|
+
// min-w-0: flex item can shrink below content intrinsic width (grid/flex overflow)
|
|
44
|
+
this.isHug() ? "w-auto self-auto shrink-0" : "w-full min-w-0 self-stretch",
|
|
44
45
|
s[this._mainAxisAlignment],
|
|
45
46
|
i[this._crossAxisAlignment],
|
|
46
47
|
...this._classNames
|
|
@@ -58,7 +59,7 @@ class g extends u {
|
|
|
58
59
|
);
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
|
-
const
|
|
62
|
+
const y = a(g), _ = o.memo((e) => {
|
|
62
63
|
const {
|
|
63
64
|
source: t,
|
|
64
65
|
color: s,
|
|
@@ -112,8 +113,8 @@ class f extends u {
|
|
|
112
113
|
return o.createElement(_, c);
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
|
-
const
|
|
116
|
+
const w = a(f);
|
|
116
117
|
export {
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
w as I,
|
|
119
|
+
y as R
|
|
119
120
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
var H = Object.defineProperty;
|
|
3
3
|
var O = (c, l, e) => l in c ? H(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e;
|
|
4
4
|
var r = (c, l, e) => O(c, typeof l != "symbol" ? l + "" : l, e);
|
|
5
|
-
import t, { useState as
|
|
6
|
-
import {
|
|
5
|
+
import t, { useState as M, useEffect as j, useRef as F } from "react";
|
|
6
|
+
import { w as $, x as D, S as P } from "./builder-3Bc2PfP9.js";
|
|
7
7
|
import { t as L } from "./bundle-mjs-wppB-TKB.js";
|
|
8
8
|
const q = t.memo((c) => {
|
|
9
9
|
const {
|
|
@@ -164,8 +164,8 @@ const de = $(V), W = (c, l) => {
|
|
|
164
164
|
leadingIcon: _,
|
|
165
165
|
trailingIcon: y,
|
|
166
166
|
...f
|
|
167
|
-
} = c, g = x instanceof P, [S, m] =
|
|
168
|
-
|
|
167
|
+
} = c, g = x instanceof P, [S, m] = M(g ? x.value : x);
|
|
168
|
+
j(() => {
|
|
169
169
|
if (g)
|
|
170
170
|
return x.subscribe((u) => {
|
|
171
171
|
m(u);
|
|
@@ -417,8 +417,8 @@ const ue = $(J), Q = t.memo((c) => {
|
|
|
417
417
|
className: d,
|
|
418
418
|
style: h,
|
|
419
419
|
id: p
|
|
420
|
-
} = c, k =
|
|
421
|
-
|
|
420
|
+
} = c, k = F(null), v = l || s;
|
|
421
|
+
j(() => {
|
|
422
422
|
k.current && (k.current.indeterminate = !!s);
|
|
423
423
|
}, [s]);
|
|
424
424
|
let x = null;
|
|
@@ -689,7 +689,7 @@ class te extends D {
|
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
const be = $(te), re = t.memo((c) => {
|
|
692
|
-
const l = t.useId(), e = c.id || l, o = `${e}-listbox`, [a, s] =
|
|
692
|
+
const l = t.useId(), e = c.id || l, o = `${e}-listbox`, [a, s] = M(!1), [d, h] = M(0), p = F(null), {
|
|
693
693
|
containerClass: k,
|
|
694
694
|
containerStyle: v,
|
|
695
695
|
label: x,
|
|
@@ -701,7 +701,7 @@ const be = $(te), re = t.memo((c) => {
|
|
|
701
701
|
disabled: S,
|
|
702
702
|
multiple: m
|
|
703
703
|
} = c;
|
|
704
|
-
|
|
704
|
+
j(() => {
|
|
705
705
|
const n = (u) => {
|
|
706
706
|
p.current && !p.current.contains(u.target) && s(!1);
|
|
707
707
|
};
|
|
@@ -878,7 +878,7 @@ class ae extends D {
|
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
const fe = $(ae), se = t.memo((c) => {
|
|
881
|
-
const l = t.useId(), e = c.id || l, o = `${e}-listbox`, [a, s] =
|
|
881
|
+
const l = t.useId(), e = c.id || l, o = `${e}-listbox`, [a, s] = M(!1), [d, h] = M(""), [p, k] = M(0), v = F(null), {
|
|
882
882
|
containerClass: x,
|
|
883
883
|
containerStyle: E,
|
|
884
884
|
label: _,
|
|
@@ -891,7 +891,7 @@ const fe = $(ae), se = t.memo((c) => {
|
|
|
891
891
|
disabled: w,
|
|
892
892
|
multiple: I
|
|
893
893
|
} = c;
|
|
894
|
-
|
|
894
|
+
j(() => {
|
|
895
895
|
if (!I) {
|
|
896
896
|
const i = g.find((N) => N.value === f);
|
|
897
897
|
i && !a && d !== i.label && h(i.label);
|
|
@@ -900,9 +900,9 @@ const fe = $(ae), se = t.memo((c) => {
|
|
|
900
900
|
const C = g.filter(
|
|
901
901
|
(i) => i.label.toLowerCase().includes(d.toLowerCase())
|
|
902
902
|
);
|
|
903
|
-
|
|
903
|
+
j(() => {
|
|
904
904
|
k(0);
|
|
905
|
-
}, [d, a]),
|
|
905
|
+
}, [d, a]), j(() => {
|
|
906
906
|
const i = (N) => {
|
|
907
907
|
if (v.current && !v.current.contains(N.target))
|
|
908
908
|
if (s(!1), I)
|