fiboui 2.9.15 → 2.9.16
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/{client-CNrWulRU.js → client-BQ1gZrfo.js} +25 -2
- package/dist/content.d.ts +6 -0
- package/dist/content.js +3 -3
- package/dist/core.d.ts +7 -1
- package/dist/core.js +2 -2
- package/dist/{icons-CUjbVN8n.js → icons-W61PDnZL.js} +1 -1
- package/dist/{index-COE2gXjP.js → index-BLU0giAO.js} +1 -1
- package/dist/{index-Dm9qGQyL.js → index-CUHjw5eV.js} +2 -2
- package/dist/{index-Bcf-s8v0.js → index-Dc7grVIt.js} +204 -188
- package/dist/{index-CpUz5DNt.js → index-gxPXkce8.js} +4 -4
- package/dist/{index-BBa7p7cv.js → index-xmSYbawF.js} +1 -1
- package/dist/index.d.ts +16 -2
- package/dist/index.js +10 -10
- package/dist/interactive.d.ts +6 -0
- package/dist/interactive.js +2 -2
- package/dist/layout.d.ts +15 -1
- package/dist/layout.js +3 -3
- package/dist/{metadata-CElV09j3.js → metadata-D097tSm1.js} +1 -1
- package/dist/navigation.js +2 -2
- package/dist/{page-LLSMLaL2.js → page-B6e5mZcg.js} +1 -1
- package/dist/server.d.ts +14 -0
- package/dist/server.js +25 -2
- package/dist/structure.d.ts +6 -0
- package/dist/structure.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.js +1 -1
- package/package.json +1 -1
|
@@ -7058,12 +7058,13 @@ function ic(o) {
|
|
|
7058
7058
|
boxSizing: "border-box",
|
|
7059
7059
|
display: "flex",
|
|
7060
7060
|
minWidth: 0,
|
|
7061
|
-
minHeight:
|
|
7061
|
+
// Do NOT default minHeight:0 — with flex-shrink that vertically
|
|
7062
|
+
// squashes fixed `.frame({ height })` slides inside Scaffold body.
|
|
7062
7063
|
// `fill` stretches the child — host uses stretch instead of corner align.
|
|
7063
7064
|
alignItems: o.fill ? "stretch" : e.alignItems,
|
|
7064
7065
|
justifyContent: o.fill ? "flex-start" : e.justifyContent
|
|
7065
7066
|
}, i = $t(o.maxWidth, "max", "width"), n = $t(o.maxHeight, "max", "height"), r = $t(o.minWidth, "min", "width"), s = $t(o.minHeight, "min", "height"), a = $t(o.idealWidth ?? o.width, "ideal", "width"), l = $t(o.idealHeight ?? o.height, "ideal", "height");
|
|
7066
|
-
return r != null && (t.minWidth = r), s != null && (t.minHeight = s), i != null && (t.maxWidth = i), n != null && (t.maxHeight = n), a != null ? t.width = a : Tt(o.maxWidth) && (t.width = "100%"), l != null ? t.height = l : Tt(o.maxHeight) && (t.height = "100%"), Tt(o.maxWidth) && (o.minWidth == null || Tt(o.minWidth) || o.minWidth === 0) && (t.minWidth = "0px", t.width = "100%"), Tt(o.maxHeight) && (o.minHeight == null || Tt(o.minHeight) || o.minHeight === 0) && (t.minHeight = "0px", t.height = "100%"), t;
|
|
7067
|
+
return r != null && (t.minWidth = r), s != null && (t.minHeight = s), i != null && (t.maxWidth = i), n != null && (t.maxHeight = n), a != null ? t.width = a : Tt(o.maxWidth) && (t.width = "100%"), l != null ? (t.height = l, s == null && (t.minHeight = l), t.flexShrink == null && (t.flexShrink = 0)) : Tt(o.maxHeight) && (t.height = "100%"), Tt(o.maxWidth) && (o.minWidth == null || Tt(o.minWidth) || o.minWidth === 0) && (t.minWidth = "0px", t.width = "100%"), Tt(o.maxHeight) && (o.minHeight == null || Tt(o.minHeight) || o.minHeight === 0) && (t.minHeight = "0px", t.height = "100%"), t;
|
|
7067
7068
|
}
|
|
7068
7069
|
const nc = {
|
|
7069
7070
|
width: "100%",
|
|
@@ -8822,6 +8823,17 @@ class se {
|
|
|
8822
8823
|
}[e];
|
|
8823
8824
|
return i ? this.layoutStyle({ display: "flex", alignItems: i }) : this;
|
|
8824
8825
|
}
|
|
8826
|
+
/**
|
|
8827
|
+
* Don't let a flex parent squash this view (the Scaffold-body case).
|
|
8828
|
+
* Locks `flex-shrink: 0` and `min-height: min-content` so a fixed
|
|
8829
|
+
* frame/image keeps its height and the parent scrolls instead.
|
|
8830
|
+
*/
|
|
8831
|
+
noSquash() {
|
|
8832
|
+
return this.layoutStyle({
|
|
8833
|
+
flexShrink: 0,
|
|
8834
|
+
minHeight: "min-content"
|
|
8835
|
+
});
|
|
8836
|
+
}
|
|
8825
8837
|
flex(e) {
|
|
8826
8838
|
const i = e === void 0 ? void 0 : typeof e == "number" ? String(e) : {
|
|
8827
8839
|
1: "1 1 0%",
|
|
@@ -10924,6 +10936,8 @@ class qu extends se {
|
|
|
10924
10936
|
c(this, "_extendBody", !1);
|
|
10925
10937
|
c(this, "_extendBehindHeader", !1);
|
|
10926
10938
|
c(this, "_avoidKeyboard", !0);
|
|
10939
|
+
/** Body children keep their height; the body scrolls. On by default. */
|
|
10940
|
+
c(this, "_noSquash", !0);
|
|
10927
10941
|
c(this, "_onDrawer");
|
|
10928
10942
|
}
|
|
10929
10943
|
children(t) {
|
|
@@ -11015,6 +11029,14 @@ class qu extends se {
|
|
|
11015
11029
|
avoidKeyboard(t = !0) {
|
|
11016
11030
|
return this._avoidKeyboard = t, this;
|
|
11017
11031
|
}
|
|
11032
|
+
/**
|
|
11033
|
+
* Don't squash body children into the viewport ("não achatar").
|
|
11034
|
+
* On by default. Pass `false` to let the column shrink them again.
|
|
11035
|
+
* For a single child, call `.noSquash()` on that element instead.
|
|
11036
|
+
*/
|
|
11037
|
+
noSquash(t = !0) {
|
|
11038
|
+
return this._noSquash = t, this;
|
|
11039
|
+
}
|
|
11018
11040
|
onDrawer(t) {
|
|
11019
11041
|
return this._onDrawer = t, this;
|
|
11020
11042
|
}
|
|
@@ -11086,6 +11108,7 @@ class qu extends se {
|
|
|
11086
11108
|
f.createElement("main", {
|
|
11087
11109
|
key: "scaffold-body",
|
|
11088
11110
|
className: "fibo-scaffold-body",
|
|
11111
|
+
"data-no-squash": this._noSquash ? "" : void 0,
|
|
11089
11112
|
style: {
|
|
11090
11113
|
flex: 1,
|
|
11091
11114
|
display: "flex",
|
package/dist/content.d.ts
CHANGED
|
@@ -977,6 +977,12 @@ declare abstract class FiboBuilder {
|
|
|
977
977
|
alignY(alignment: AlignAxis): this;
|
|
978
978
|
protected applyMainAlign(alignment: AlignAxis | string): this;
|
|
979
979
|
protected applyCrossAlign(alignment: AlignAxis | string): this;
|
|
980
|
+
/**
|
|
981
|
+
* Don't let a flex parent squash this view (the Scaffold-body case).
|
|
982
|
+
* Locks `flex-shrink: 0` and `min-height: min-content` so a fixed
|
|
983
|
+
* frame/image keeps its height and the parent scrolls instead.
|
|
984
|
+
*/
|
|
985
|
+
noSquash(): this;
|
|
980
986
|
flex(value?: number | string): this;
|
|
981
987
|
grid(): this;
|
|
982
988
|
inlineFlex(): this;
|
package/dist/content.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as s, B as r, I as o } from "./icons-
|
|
2
|
-
import { am as n, al as m } from "./client-
|
|
3
|
-
import { A as g, I as l, L as p, P as x, a as A, S as f } from "./index-
|
|
1
|
+
import { A as s, B as r, I as o } from "./icons-W61PDnZL.js";
|
|
2
|
+
import { am as n, al as m } from "./client-BQ1gZrfo.js";
|
|
3
|
+
import { A as g, I as l, L as p, P as x, a as A, S as f } from "./index-CUHjw5eV.js";
|
|
4
4
|
export {
|
|
5
5
|
g as Alert,
|
|
6
6
|
s as Avatar,
|
package/dist/core.d.ts
CHANGED
|
@@ -1341,6 +1341,12 @@ declare abstract class FiboBuilder {
|
|
|
1341
1341
|
alignY(alignment: AlignAxis): this;
|
|
1342
1342
|
protected applyMainAlign(alignment: AlignAxis | string): this;
|
|
1343
1343
|
protected applyCrossAlign(alignment: AlignAxis | string): this;
|
|
1344
|
+
/**
|
|
1345
|
+
* Don't let a flex parent squash this view (the Scaffold-body case).
|
|
1346
|
+
* Locks `flex-shrink: 0` and `min-height: min-content` so a fixed
|
|
1347
|
+
* frame/image keeps its height and the parent scrolls instead.
|
|
1348
|
+
*/
|
|
1349
|
+
noSquash(): this;
|
|
1344
1350
|
flex(value?: number | string): this;
|
|
1345
1351
|
grid(): this;
|
|
1346
1352
|
inlineFlex(): this;
|
|
@@ -1696,7 +1702,7 @@ type KnownKeys<T> = {
|
|
|
1696
1702
|
} ? U : never;
|
|
1697
1703
|
/**
|
|
1698
1704
|
* Fluent CSS methods on every builder. Kept as a named exported type so
|
|
1699
|
-
*
|
|
1705
|
+
* the root declarations reference `StyleBuilder<T>` instead of expanding the CSS map
|
|
1700
1706
|
* into every widget (that blew the file past 20MB and also typed chains as `any`).
|
|
1701
1707
|
*/
|
|
1702
1708
|
export type StyleBuilder<T> = T & LogicalAxes & {
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, E as t, X as r, a6 as i, a3 as o, a4 as n, _ as l, F as u, T as S, L as c, Q as p, Z as g, O as T, n as b, B as v, P as F, R as C, D as E, G as d, S as m, a8 as R, t as f, q as I, d as P, c as y, a9 as O, b as x, a as M, a2 as N, Y as _, e as w, f as A, a0 as B, g as V, $ as D, a1 as L, V as U, W as h, i as q, l as z, a5 as G, U as K, o as W, aa as X, h as j, N as k, r as H, H as J, s as Q, M as Y, I as Z, K as $, J as ss, a7 as as, m as es, y as ts, k as rs, z as is, p as os, j as ns, A as ls, u as us, w as Ss, x as cs, v as ps } from "./client-
|
|
2
|
-
import { F as Ts, P as bs, T as vs, U as Fs, a as Cs, c as Es, p as ds, w as ms } from "./page-
|
|
1
|
+
import { C as e, E as t, X as r, a6 as i, a3 as o, a4 as n, _ as l, F as u, T as S, L as c, Q as p, Z as g, O as T, n as b, B as v, P as F, R as C, D as E, G as d, S as m, a8 as R, t as f, q as I, d as P, c as y, a9 as O, b as x, a as M, a2 as N, Y as _, e as w, f as A, a0 as B, g as V, $ as D, a1 as L, V as U, W as h, i as q, l as z, a5 as G, U as K, o as W, aa as X, h as j, N as k, r as H, H as J, s as Q, M as Y, I as Z, K as $, J as ss, a7 as as, m as es, y as ts, k as rs, z as is, p as os, j as ns, A as ls, u as us, w as Ss, x as cs, v as ps } from "./client-BQ1gZrfo.js";
|
|
2
|
+
import { F as Ts, P as bs, T as vs, U as Fs, a as Cs, c as Es, p as ds, w as ms } from "./page-B6e5mZcg.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ComputedSignal,
|
|
5
5
|
t as Easing,
|
|
@@ -2,7 +2,7 @@ var A = Object.defineProperty;
|
|
|
2
2
|
var L = (t, r, e) => r in t ? A(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
|
|
3
3
|
var i = (t, r, e) => L(t, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import c from "react";
|
|
5
|
-
import { b4 as w, b5 as E, aH as y, bf as I, ab as P, al as H, bg as R, bh as M, b8 as j, bb as D, b9 as $ } from "./client-
|
|
5
|
+
import { b4 as w, b5 as E, aH as y, bf as I, ab as P, al as H, bg as R, bh as M, b8 as j, bb as D, b9 as $ } from "./client-BQ1gZrfo.js";
|
|
6
6
|
import { jsx as o, jsxs as k } from "react/jsx-runtime";
|
|
7
7
|
function V(t) {
|
|
8
8
|
if (typeof t != "string") return "";
|
|
@@ -2,7 +2,7 @@ var w = Object.defineProperty;
|
|
|
2
2
|
var S = (s, e, t) => e in s ? w(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
3
|
var r = (s, e, t) => S(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import m from "react";
|
|
5
|
-
import { b4 as g, b5 as d, bc as N, bd as C, be as j, b9 as z, b8 as _, bb as B } from "./client-
|
|
5
|
+
import { b4 as g, b5 as d, bc as N, bd as C, be as j, b9 as z, b8 as _, bb as B } from "./client-BQ1gZrfo.js";
|
|
6
6
|
function I(s, e) {
|
|
7
7
|
if (!(typeof e != "string" || !_(e)))
|
|
8
8
|
for (const t of B(e))
|
|
@@ -2,8 +2,8 @@ var ae = Object.defineProperty;
|
|
|
2
2
|
var ie = (s, r, e) => r in s ? ae(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
|
|
3
3
|
var i = (s, r, e) => ie(s, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import t from "react";
|
|
5
|
-
import { b4 as I, b5 as $, b8 as z, bb as R, b9 as q, z as le, bf as Z, bE as oe } from "./client-
|
|
6
|
-
import { a as F } from "./icons-
|
|
5
|
+
import { b4 as I, b5 as $, b8 as z, bb as R, b9 as q, z as le, bf as Z, bE as oe } from "./client-BQ1gZrfo.js";
|
|
6
|
+
import { a as F } from "./icons-W61PDnZL.js";
|
|
7
7
|
function ce(s, r) {
|
|
8
8
|
if (!(typeof r != "string" || !z(r)))
|
|
9
9
|
for (const e of R(r))
|