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
|
@@ -2,10 +2,10 @@ var Bt = Object.defineProperty;
|
|
|
2
2
|
var Tt = (e, r, t) => r in e ? Bt(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
3
|
var n = (e, r, t) => Tt(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
4
|
import s, { useSyncExternalStore as X } from "react";
|
|
5
|
-
import { b4 as L, b5 as P, b8 as C, bb as M, b9 as R, bu as ot, bf as _t, bk as At, bF as Lt, L as vt, aH as T, F as lt, bG as ut, bH as Pt, bI as Rt, ab as W, al as N } from "./client-
|
|
6
|
-
import { S as H, C as G } from "./index-
|
|
7
|
-
import { B as wt } from "./index-
|
|
8
|
-
import { B as et, I as at, a as F, A as $t } from "./icons-
|
|
5
|
+
import { b4 as L, b5 as P, b8 as C, bb as M, b9 as R, bu as ot, bf as _t, bk as At, bF as Lt, L as vt, aH as T, F as lt, bG as ut, bH as Pt, bI as Rt, ab as W, al as N } from "./client-BQ1gZrfo.js";
|
|
6
|
+
import { S as H, C as G } from "./index-BLU0giAO.js";
|
|
7
|
+
import { B as wt } from "./index-xmSYbawF.js";
|
|
8
|
+
import { B as et, I as at, a as F, A as $t } from "./icons-W61PDnZL.js";
|
|
9
9
|
function $(e, r) {
|
|
10
10
|
if (!(typeof r != "string" || !C(r)))
|
|
11
11
|
for (const t of M(r))
|
|
@@ -2,7 +2,7 @@ var c = Object.defineProperty;
|
|
|
2
2
|
var f = (s, e, t) => e in s ? c(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
3
|
var i = (s, e, t) => f(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import m from "react";
|
|
5
|
-
import { b4 as d, b5 as y, b6 as b, b7 as n, b8 as o, b9 as l, ba as x, bb as v } from "./client-
|
|
5
|
+
import { b4 as d, b5 as y, b6 as b, b7 as n, b8 as o, b9 as l, ba as x, bb as v } from "./client-BQ1gZrfo.js";
|
|
6
6
|
function p(s, e) {
|
|
7
7
|
if (!(typeof e != "string" || !o(e)))
|
|
8
8
|
for (const t of v(e))
|
package/dist/index.d.ts
CHANGED
|
@@ -2249,6 +2249,12 @@ declare abstract class FiboBuilder {
|
|
|
2249
2249
|
alignY(alignment: AlignAxis): this;
|
|
2250
2250
|
protected applyMainAlign(alignment: AlignAxis | string): this;
|
|
2251
2251
|
protected applyCrossAlign(alignment: AlignAxis | string): this;
|
|
2252
|
+
/**
|
|
2253
|
+
* Don't let a flex parent squash this view (the Scaffold-body case).
|
|
2254
|
+
* Locks `flex-shrink: 0` and `min-height: min-content` so a fixed
|
|
2255
|
+
* frame/image keeps its height and the parent scrolls instead.
|
|
2256
|
+
*/
|
|
2257
|
+
noSquash(): this;
|
|
2252
2258
|
flex(value?: number | string): this;
|
|
2253
2259
|
grid(): this;
|
|
2254
2260
|
inlineFlex(): this;
|
|
@@ -2604,7 +2610,7 @@ type KnownKeys<T> = {
|
|
|
2604
2610
|
} ? U : never;
|
|
2605
2611
|
/**
|
|
2606
2612
|
* Fluent CSS methods on every builder. Kept as a named exported type so
|
|
2607
|
-
*
|
|
2613
|
+
* the root declarations reference `StyleBuilder<T>` instead of expanding the CSS map
|
|
2608
2614
|
* into every widget (that blew the file past 20MB and also typed chains as `any`).
|
|
2609
2615
|
*/
|
|
2610
2616
|
export type StyleBuilder<T> = T & LogicalAxes & {
|
|
@@ -3268,6 +3274,8 @@ declare class ScaffoldBuilder extends FiboBuilder {
|
|
|
3268
3274
|
private _extendBody;
|
|
3269
3275
|
private _extendBehindHeader;
|
|
3270
3276
|
private _avoidKeyboard;
|
|
3277
|
+
/** Body children keep their height; the body scrolls. On by default. */
|
|
3278
|
+
private _noSquash;
|
|
3271
3279
|
private _onDrawer?;
|
|
3272
3280
|
children(children: FiboChildren): this;
|
|
3273
3281
|
props(value: Record<string, any>): this;
|
|
@@ -3312,6 +3320,12 @@ declare class ScaffoldBuilder extends FiboBuilder {
|
|
|
3312
3320
|
extendBehindHeader(on?: boolean): this;
|
|
3313
3321
|
/** Lift the page above the keyboard. On by default. */
|
|
3314
3322
|
avoidKeyboard(on?: boolean): this;
|
|
3323
|
+
/**
|
|
3324
|
+
* Don't squash body children into the viewport ("não achatar").
|
|
3325
|
+
* On by default. Pass `false` to let the column shrink them again.
|
|
3326
|
+
* For a single child, call `.noSquash()` on that element instead.
|
|
3327
|
+
*/
|
|
3328
|
+
noSquash(on?: boolean): this;
|
|
3315
3329
|
onDrawer(handler: (side: "start" | "end", open: boolean) => void): this;
|
|
3316
3330
|
private _bindBar;
|
|
3317
3331
|
private _normalizeBar;
|
|
@@ -3460,7 +3474,7 @@ export type ZStackFit = "content" | "expand";
|
|
|
3460
3474
|
declare class ZStackBuilder extends FiboBuilder {
|
|
3461
3475
|
private _alignment;
|
|
3462
3476
|
private _fit;
|
|
3463
|
-
/** Copied from base child’s fixed frame, if any. */
|
|
3477
|
+
/** Copied from base child’s fixed frame, if any (axis may be partial). */
|
|
3464
3478
|
private _baseFixedFrame?;
|
|
3465
3479
|
children(children: FiboChildren): this;
|
|
3466
3480
|
props(value: Record<string, any>): this;
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var Ee = Object.defineProperty;
|
|
2
2
|
var xe = (e, s, t) => s in e ? Ee(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
|
|
3
3
|
var c = (e, s, t) => xe(e, typeof s != "symbol" ? s + "" : s, t);
|
|
4
|
-
import { bE as Ne, H as Te, I as Be, b4 as y, b5 as _, bJ as Qt, b9 as G, b8 as R, bb as z, bK as $e, bf as I, bu as x, bL as _t, bM as Jt, by as te, bH as ee, bk as Pe, bN as Le, bO as Ae } from "./client-
|
|
5
|
-
import { df as ma, dl as pa, dq as ga, dJ as ya, dm as _a, dV as ba, aH as Sa, dA as va, dz as wa, dB as ka, dC as Ca, dy as Ea, d2 as xa, d7 as Na, aC as Ta, da as Ba, dr as $a, cv as Pa, aJ as La, dk as Aa, cP as Ra, aG as Ma, C as Fa, cA as Ia, cu as Da, cX as Oa, cw as ja, dN as Ha, af as Wa, cN as Va, c_ as Ga, aR as za, aQ as Ua, e1 as Xa, cG as Ya, cx as Ka, b_ as qa, dM as Za, E as Qa, cs as Ja, ct as to, de as eo, c3 as so, bS as ro, X as io, bQ as no, aY as ao, a6 as oo, a3 as lo, a4 as co, _ as uo, aS as ho, dD as fo, dE as mo, F as po, dL as go, dn as yo, be as _o, ao as bo, dY as So, ak as vo, c5 as wo, cy as ko, dH as Co, d4 as Eo, cm as xo, ad as No, cl as To, T as Bo, am as $o, cM as Po, dK as Lo, d$ as Ao, cJ as Ro, aj as Mo, ai as Fo, ah as Io, aI as Do, L as Oo, dG as jo, bZ as Ho, Q as Wo, c0 as Vo, b$ as Go, cB as zo, cW as Uo, dU as Xo, dd as Yo, Z as Ko, cL as qo, O as Zo, n as Qo, cI as Jo, d0 as tl, d6 as el, d5 as sl, dX as rl, bU as il, cK as nl, dT as al, cn as ol, B as ll, P as cl, aD as ul, dc as hl, dj as dl, cT as fl, R as ml, dR as pl, dF as gl, D as yl, c1 as _l, aK as bl, ab as Sl, ac as vl, e0 as wl, du as kl, cz as Cl, G as El, ag as xl, cV as Nl, d8 as Tl, cR as Bl, cQ as $l, aF as Pl, d1 as Ll, cH as Al, c4 as Rl, dS as Ml, d3 as Fl, c$ as Il, dW as Dl, ae as Ol, S as jl, c2 as Hl, dg as Wl, cS as Vl, dO as Gl, dP as zl, di as Ul, bY as Xl, ds as Yl, cU as Kl, d_ as ql, aB as Zl, db as Ql, dI as Jl, bX as tc, al as ec, dw as sc, dp as rc, an as ic, dv as nc, aE as ac, dt as oc, cO as lc, dQ as cc, cY as uc, dZ as hc, a8 as dc, ah as fc, ai as mc, dx as pc, cZ as gc, cE as yc, d9 as _c, cC as bc, t as Sc, q as vc, d as wc, c as kc, a_ as Cc, a9 as Ec, b as xc, a as Nc, aV as Tc, at as Bc, a2 as $c, Y as Pc, e as Lc, bR as Ac, aA as Rc, a$ as Mc, f as Fc, ap as Ic, a0 as Dc, g as Oc, $ as jc, a1 as Hc, dh as Wc, az as Vc, V as Gc, W as zc, i as Uc, bh as Xc, e2 as Yc, l as Kc, cj as qc, ck as Zc, aU as Qc, aw as Jc, as as tu, av as eu, ar as su, a5 as ru, aX as iu, U as nu, bP as au, o as ou, au as lu, aa as cu, cq as uu, aq as hu, h as du, N as fu, cD as mu, bW as pu, aZ as gu, ax as yu, r as _u, s as bu, e3 as Su, M as vu, bC as wu, bg as ku, K as Cu, J as Eu, b3 as xu, b2 as Nu, b0 as Tu, b1 as Bu, bc as $u, a7 as Pu, bd as Lu, bI as Au, ay as Ru, m as Mu, aT as Fu, aO as Iu, y as Du, aM as Ou, k as ju, aN as Hu, z as Wu, p as Vu, aP as Gu, j as zu, aL as Uu, cF as Xu, A as Yu, u as Ku, w as qu, x as Zu, v as Qu, bT as Ju, aW as th, ch as eh, c8 as sh, c7 as rh, cf as ih, cg as nh, c9 as ah, ca as oh, bV as lh, cc as ch, cb as uh, ce as hh, ci as dh, c6 as fh, cd as mh, cp as ph, co as gh, cr as yh } from "./client-
|
|
6
|
-
import { F as bh, P as Sh, T as vh, U as wh, a as kh, c as Ch, p as Eh, w as xh } from "./page-
|
|
7
|
-
import { C as Th, a as Bh, L as $h, b as Ph, S as Lh, Z as Ah } from "./index-
|
|
8
|
-
import { C as Mh, S as Fh } from "./index-
|
|
4
|
+
import { bE as Ne, H as Te, I as Be, b4 as y, b5 as _, bJ as Qt, b9 as G, b8 as R, bb as z, bK as $e, bf as I, bu as x, bL as _t, bM as Jt, by as te, bH as ee, bk as Pe, bN as Le, bO as Ae } from "./client-BQ1gZrfo.js";
|
|
5
|
+
import { df as ma, dl as pa, dq as ga, dJ as ya, dm as _a, dV as ba, aH as Sa, dA as va, dz as wa, dB as ka, dC as Ca, dy as Ea, d2 as xa, d7 as Na, aC as Ta, da as Ba, dr as $a, cv as Pa, aJ as La, dk as Aa, cP as Ra, aG as Ma, C as Fa, cA as Ia, cu as Da, cX as Oa, cw as ja, dN as Ha, af as Wa, cN as Va, c_ as Ga, aR as za, aQ as Ua, e1 as Xa, cG as Ya, cx as Ka, b_ as qa, dM as Za, E as Qa, cs as Ja, ct as to, de as eo, c3 as so, bS as ro, X as io, bQ as no, aY as ao, a6 as oo, a3 as lo, a4 as co, _ as uo, aS as ho, dD as fo, dE as mo, F as po, dL as go, dn as yo, be as _o, ao as bo, dY as So, ak as vo, c5 as wo, cy as ko, dH as Co, d4 as Eo, cm as xo, ad as No, cl as To, T as Bo, am as $o, cM as Po, dK as Lo, d$ as Ao, cJ as Ro, aj as Mo, ai as Fo, ah as Io, aI as Do, L as Oo, dG as jo, bZ as Ho, Q as Wo, c0 as Vo, b$ as Go, cB as zo, cW as Uo, dU as Xo, dd as Yo, Z as Ko, cL as qo, O as Zo, n as Qo, cI as Jo, d0 as tl, d6 as el, d5 as sl, dX as rl, bU as il, cK as nl, dT as al, cn as ol, B as ll, P as cl, aD as ul, dc as hl, dj as dl, cT as fl, R as ml, dR as pl, dF as gl, D as yl, c1 as _l, aK as bl, ab as Sl, ac as vl, e0 as wl, du as kl, cz as Cl, G as El, ag as xl, cV as Nl, d8 as Tl, cR as Bl, cQ as $l, aF as Pl, d1 as Ll, cH as Al, c4 as Rl, dS as Ml, d3 as Fl, c$ as Il, dW as Dl, ae as Ol, S as jl, c2 as Hl, dg as Wl, cS as Vl, dO as Gl, dP as zl, di as Ul, bY as Xl, ds as Yl, cU as Kl, d_ as ql, aB as Zl, db as Ql, dI as Jl, bX as tc, al as ec, dw as sc, dp as rc, an as ic, dv as nc, aE as ac, dt as oc, cO as lc, dQ as cc, cY as uc, dZ as hc, a8 as dc, ah as fc, ai as mc, dx as pc, cZ as gc, cE as yc, d9 as _c, cC as bc, t as Sc, q as vc, d as wc, c as kc, a_ as Cc, a9 as Ec, b as xc, a as Nc, aV as Tc, at as Bc, a2 as $c, Y as Pc, e as Lc, bR as Ac, aA as Rc, a$ as Mc, f as Fc, ap as Ic, a0 as Dc, g as Oc, $ as jc, a1 as Hc, dh as Wc, az as Vc, V as Gc, W as zc, i as Uc, bh as Xc, e2 as Yc, l as Kc, cj as qc, ck as Zc, aU as Qc, aw as Jc, as as tu, av as eu, ar as su, a5 as ru, aX as iu, U as nu, bP as au, o as ou, au as lu, aa as cu, cq as uu, aq as hu, h as du, N as fu, cD as mu, bW as pu, aZ as gu, ax as yu, r as _u, s as bu, e3 as Su, M as vu, bC as wu, bg as ku, K as Cu, J as Eu, b3 as xu, b2 as Nu, b0 as Tu, b1 as Bu, bc as $u, a7 as Pu, bd as Lu, bI as Au, ay as Ru, m as Mu, aT as Fu, aO as Iu, y as Du, aM as Ou, k as ju, aN as Hu, z as Wu, p as Vu, aP as Gu, j as zu, aL as Uu, cF as Xu, A as Yu, u as Ku, w as qu, x as Zu, v as Qu, bT as Ju, aW as th, ch as eh, c8 as sh, c7 as rh, cf as ih, cg as nh, c9 as ah, ca as oh, bV as lh, cc as ch, cb as uh, ce as hh, ci as dh, c6 as fh, cd as mh, cp as ph, co as gh, cr as yh } from "./client-BQ1gZrfo.js";
|
|
6
|
+
import { F as bh, P as Sh, T as vh, U as wh, a as kh, c as Ch, p as Eh, w as xh } from "./page-B6e5mZcg.js";
|
|
7
|
+
import { C as Th, a as Bh, L as $h, b as Ph, S as Lh, Z as Ah } from "./index-Dc7grVIt.js";
|
|
8
|
+
import { C as Mh, S as Fh } from "./index-BLU0giAO.js";
|
|
9
9
|
import u, { useRef as E, useState as P, useLayoutEffect as Z, useEffect as V } from "react";
|
|
10
|
-
import { A as Dh, B as Oh, I as jh } from "./icons-
|
|
11
|
-
import { A as Wh, I as Vh, L as Gh, P as zh, a as Uh, S as Xh } from "./index-
|
|
12
|
-
import { B as Kh } from "./index-
|
|
13
|
-
import { A as Zh, B as Qh, C as Jh, c as td, d as ed, G as sd, b as rd, L as id, P as nd, T as ad, a as od } from "./index-
|
|
14
|
-
import { L as cd, N as ud, O as hd, l as dd, p as fd, u as md } from "./metadata-
|
|
10
|
+
import { A as Dh, B as Oh, I as jh } from "./icons-W61PDnZL.js";
|
|
11
|
+
import { A as Wh, I as Vh, L as Gh, P as zh, a as Uh, S as Xh } from "./index-CUHjw5eV.js";
|
|
12
|
+
import { B as Kh } from "./index-xmSYbawF.js";
|
|
13
|
+
import { A as Zh, B as Qh, C as Jh, c as td, d as ed, G as sd, b as rd, L as id, P as nd, T as ad, a as od } from "./index-gxPXkce8.js";
|
|
14
|
+
import { L as cd, N as ud, O as hd, l as dd, p as fd, u as md } from "./metadata-D097tSm1.js";
|
|
15
15
|
function se() {
|
|
16
16
|
const e = globalThis.window;
|
|
17
17
|
return typeof e > "u" || e == null ? void 0 : e;
|
package/dist/interactive.d.ts
CHANGED
|
@@ -976,6 +976,12 @@ declare abstract class FiboBuilder {
|
|
|
976
976
|
alignY(alignment: AlignAxis): this;
|
|
977
977
|
protected applyMainAlign(alignment: AlignAxis | string): this;
|
|
978
978
|
protected applyCrossAlign(alignment: AlignAxis | string): this;
|
|
979
|
+
/**
|
|
980
|
+
* Don't let a flex parent squash this view (the Scaffold-body case).
|
|
981
|
+
* Locks `flex-shrink: 0` and `min-height: min-content` so a fixed
|
|
982
|
+
* frame/image keeps its height and the parent scrolls instead.
|
|
983
|
+
*/
|
|
984
|
+
noSquash(): this;
|
|
979
985
|
flex(value?: number | string): this;
|
|
980
986
|
grid(): this;
|
|
981
987
|
inlineFlex(): this;
|
package/dist/interactive.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as e } from "./index-
|
|
2
|
-
import { aC as r, aG as t, ao as m, aD as x, aF as i, aB as n, an as u, aE as l, at as p, aA as h, ap as T, az as b, aw as c, as as d, av as f, ar as g, au as q, aq as B, ax as C, ay as F } from "./client-
|
|
1
|
+
import { B as e } from "./index-xmSYbawF.js";
|
|
2
|
+
import { aC as r, aG as t, ao as m, aD as x, aF as i, aB as n, an as u, aE as l, at as p, aA as h, ap as T, az as b, aw as c, as as d, av as f, ar as g, au as q, aq as B, ax as C, ay as F } from "./client-BQ1gZrfo.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Button,
|
|
5
5
|
r as Checkbox,
|
package/dist/layout.d.ts
CHANGED
|
@@ -978,6 +978,12 @@ declare abstract class FiboBuilder {
|
|
|
978
978
|
alignY(alignment: AlignAxis): this;
|
|
979
979
|
protected applyMainAlign(alignment: AlignAxis | string): this;
|
|
980
980
|
protected applyCrossAlign(alignment: AlignAxis | string): this;
|
|
981
|
+
/**
|
|
982
|
+
* Don't let a flex parent squash this view (the Scaffold-body case).
|
|
983
|
+
* Locks `flex-shrink: 0` and `min-height: min-content` so a fixed
|
|
984
|
+
* frame/image keeps its height and the parent scrolls instead.
|
|
985
|
+
*/
|
|
986
|
+
noSquash(): this;
|
|
981
987
|
flex(value?: number | string): this;
|
|
982
988
|
grid(): this;
|
|
983
989
|
inlineFlex(): this;
|
|
@@ -1470,6 +1476,8 @@ declare class ScaffoldBuilder extends FiboBuilder {
|
|
|
1470
1476
|
private _extendBody;
|
|
1471
1477
|
private _extendBehindHeader;
|
|
1472
1478
|
private _avoidKeyboard;
|
|
1479
|
+
/** Body children keep their height; the body scrolls. On by default. */
|
|
1480
|
+
private _noSquash;
|
|
1473
1481
|
private _onDrawer?;
|
|
1474
1482
|
children(children: FiboChildren): this;
|
|
1475
1483
|
props(value: Record<string, any>): this;
|
|
@@ -1514,6 +1522,12 @@ declare class ScaffoldBuilder extends FiboBuilder {
|
|
|
1514
1522
|
extendBehindHeader(on?: boolean): this;
|
|
1515
1523
|
/** Lift the page above the keyboard. On by default. */
|
|
1516
1524
|
avoidKeyboard(on?: boolean): this;
|
|
1525
|
+
/**
|
|
1526
|
+
* Don't squash body children into the viewport ("não achatar").
|
|
1527
|
+
* On by default. Pass `false` to let the column shrink them again.
|
|
1528
|
+
* For a single child, call `.noSquash()` on that element instead.
|
|
1529
|
+
*/
|
|
1530
|
+
noSquash(on?: boolean): this;
|
|
1517
1531
|
onDrawer(handler: (side: "start" | "end", open: boolean) => void): this;
|
|
1518
1532
|
private _bindBar;
|
|
1519
1533
|
private _normalizeBar;
|
|
@@ -1567,7 +1581,7 @@ type ZStackFit = "content" | "expand";
|
|
|
1567
1581
|
declare class ZStackBuilder extends FiboBuilder {
|
|
1568
1582
|
private _alignment;
|
|
1569
1583
|
private _fit;
|
|
1570
|
-
/** Copied from base child’s fixed frame, if any. */
|
|
1584
|
+
/** Copied from base child’s fixed frame, if any (axis may be partial). */
|
|
1571
1585
|
private _baseFixedFrame?;
|
|
1572
1586
|
children(children: FiboChildren): this;
|
|
1573
1587
|
props(value: Record<string, any>): this;
|
package/dist/layout.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as e, a as o, L as s, b as l, S as t, Z as i } from "./index-
|
|
2
|
-
import { C as d, S as c } from "./index-
|
|
3
|
-
import { af as u, ak as C, ad as f, aj as m, ab as b, ac as p, ag as w, ae as L, ah as R, ai as V } from "./client-
|
|
1
|
+
import { C as e, a as o, L as s, b as l, S as t, Z as i } from "./index-Dc7grVIt.js";
|
|
2
|
+
import { C as d, S as c } from "./index-BLU0giAO.js";
|
|
3
|
+
import { af as u, ak as C, ad as f, aj as m, ab as b, ac as p, ag as w, ae as L, ah as R, ai as V } from "./client-BQ1gZrfo.js";
|
|
4
4
|
export {
|
|
5
5
|
e as Center,
|
|
6
6
|
d as Column,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { bi as v, bf as w, bj as x, bk as E, bl as R, bm as O, bn as P, bo as g, bp as $, bq as D, br as z, aQ as A, aR as K } from "./client-
|
|
2
|
+
import { bi as v, bf as w, bj as x, bk as E, bl as R, bm as O, bn as P, bo as g, bp as $, bq as D, br as z, aQ as A, aR as K } from "./client-BQ1gZrfo.js";
|
|
3
3
|
import { useState as M, useMemo as N, lazy as S, Suspense as j } from "react";
|
|
4
4
|
function b(e) {
|
|
5
5
|
const t = (typeof e == "string" ? e.trim() : "").split(/[?#]/, 1)[0];
|
package/dist/navigation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aR as s, aQ as u, aK as o, aO as t, aM as r, aN as l, aP as L, aL as R } from "./client-
|
|
2
|
-
import { L as i, N as p, O as N, l as m, p as n, u as O } from "./metadata-
|
|
1
|
+
import { aR as s, aQ as u, aK as o, aO as t, aM as r, aN as l, aP as L, aL as R } from "./client-BQ1gZrfo.js";
|
|
2
|
+
import { L as i, N as p, O as N, l as m, p as n, u as O } from "./metadata-D097tSm1.js";
|
|
3
3
|
export {
|
|
4
4
|
s as DefaultErrorPage,
|
|
5
5
|
u as DefaultLoader,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bs as j, N as z, S as k, bt as B, bu as q, _ as I, bv as W, bw as _, bx as G } from "./client-
|
|
1
|
+
import { bs as j, N as z, S as k, bt as B, bu as q, _ as I, bv as W, bw as _, bx as G } from "./client-BQ1gZrfo.js";
|
|
2
2
|
import b, { useSyncExternalStore as H } from "react";
|
|
3
3
|
function J(t) {
|
|
4
4
|
return typeof t == "number" ? t : t != null && typeof t == "object" && "value" in t ? Number(t.value) : Number(t);
|
package/dist/server.d.ts
CHANGED
|
@@ -1015,6 +1015,12 @@ declare abstract class FiboBuilder {
|
|
|
1015
1015
|
alignY(alignment: AlignAxis): this;
|
|
1016
1016
|
protected applyMainAlign(alignment: AlignAxis | string): this;
|
|
1017
1017
|
protected applyCrossAlign(alignment: AlignAxis | string): this;
|
|
1018
|
+
/**
|
|
1019
|
+
* Don't let a flex parent squash this view (the Scaffold-body case).
|
|
1020
|
+
* Locks `flex-shrink: 0` and `min-height: min-content` so a fixed
|
|
1021
|
+
* frame/image keeps its height and the parent scrolls instead.
|
|
1022
|
+
*/
|
|
1023
|
+
noSquash(): this;
|
|
1018
1024
|
flex(value?: number | string): this;
|
|
1019
1025
|
grid(): this;
|
|
1020
1026
|
inlineFlex(): this;
|
|
@@ -1528,6 +1534,8 @@ declare class ScaffoldBuilder extends FiboBuilder {
|
|
|
1528
1534
|
private _extendBody;
|
|
1529
1535
|
private _extendBehindHeader;
|
|
1530
1536
|
private _avoidKeyboard;
|
|
1537
|
+
/** Body children keep their height; the body scrolls. On by default. */
|
|
1538
|
+
private _noSquash;
|
|
1531
1539
|
private _onDrawer?;
|
|
1532
1540
|
children(children: FiboChildren): this;
|
|
1533
1541
|
props(value: Record<string, any>): this;
|
|
@@ -1572,6 +1580,12 @@ declare class ScaffoldBuilder extends FiboBuilder {
|
|
|
1572
1580
|
extendBehindHeader(on?: boolean): this;
|
|
1573
1581
|
/** Lift the page above the keyboard. On by default. */
|
|
1574
1582
|
avoidKeyboard(on?: boolean): this;
|
|
1583
|
+
/**
|
|
1584
|
+
* Don't squash body children into the viewport ("não achatar").
|
|
1585
|
+
* On by default. Pass `false` to let the column shrink them again.
|
|
1586
|
+
* For a single child, call `.noSquash()` on that element instead.
|
|
1587
|
+
*/
|
|
1588
|
+
noSquash(on?: boolean): this;
|
|
1575
1589
|
onDrawer(handler: (side: "start" | "end", open: boolean) => void): this;
|
|
1576
1590
|
private _bindBar;
|
|
1577
1591
|
private _normalizeBar;
|
package/dist/server.js
CHANGED
|
@@ -4649,12 +4649,13 @@ function An(e) {
|
|
|
4649
4649
|
boxSizing: "border-box",
|
|
4650
4650
|
display: "flex",
|
|
4651
4651
|
minWidth: 0,
|
|
4652
|
-
minHeight:
|
|
4652
|
+
// Do NOT default minHeight:0 — with flex-shrink that vertically
|
|
4653
|
+
// squashes fixed `.frame({ height })` slides inside Scaffold body.
|
|
4653
4654
|
// `fill` stretches the child — host uses stretch instead of corner align.
|
|
4654
4655
|
alignItems: e.fill ? "stretch" : o.alignItems,
|
|
4655
4656
|
justifyContent: e.fill ? "flex-start" : o.justifyContent
|
|
4656
4657
|
}, i = ot(e.maxWidth, "max", "width"), r = ot(e.maxHeight, "max", "height"), n = ot(e.minWidth, "min", "width"), s = ot(e.minHeight, "min", "height"), f = ot(e.idealWidth ?? e.width, "ideal", "width"), a = ot(e.idealHeight ?? e.height, "ideal", "height");
|
|
4657
|
-
return n != null && (t.minWidth = n), s != null && (t.minHeight = s), i != null && (t.maxWidth = i), r != null && (t.maxHeight = r), f != null ? t.width = f : Uo(e.maxWidth) && (t.width = "100%"), a != null ? t.height = a : Uo(e.maxHeight) && (t.height = "100%"), Uo(e.maxWidth) && (e.minWidth == null || Uo(e.minWidth) || e.minWidth === 0) && (t.minWidth = "0px", t.width = "100%"), Uo(e.maxHeight) && (e.minHeight == null || Uo(e.minHeight) || e.minHeight === 0) && (t.minHeight = "0px", t.height = "100%"), t;
|
|
4658
|
+
return n != null && (t.minWidth = n), s != null && (t.minHeight = s), i != null && (t.maxWidth = i), r != null && (t.maxHeight = r), f != null ? t.width = f : Uo(e.maxWidth) && (t.width = "100%"), a != null ? (t.height = a, s == null && (t.minHeight = a), t.flexShrink == null && (t.flexShrink = 0)) : Uo(e.maxHeight) && (t.height = "100%"), Uo(e.maxWidth) && (e.minWidth == null || Uo(e.minWidth) || e.minWidth === 0) && (t.minWidth = "0px", t.width = "100%"), Uo(e.maxHeight) && (e.minHeight == null || Uo(e.minHeight) || e.minHeight === 0) && (t.minHeight = "0px", t.height = "100%"), t;
|
|
4658
4659
|
}
|
|
4659
4660
|
const Bn = {
|
|
4660
4661
|
width: "100%",
|
|
@@ -6006,6 +6007,17 @@ class go {
|
|
|
6006
6007
|
}[o];
|
|
6007
6008
|
return i ? this.layoutStyle({ display: "flex", alignItems: i }) : this;
|
|
6008
6009
|
}
|
|
6010
|
+
/**
|
|
6011
|
+
* Don't let a flex parent squash this view (the Scaffold-body case).
|
|
6012
|
+
* Locks `flex-shrink: 0` and `min-height: min-content` so a fixed
|
|
6013
|
+
* frame/image keeps its height and the parent scrolls instead.
|
|
6014
|
+
*/
|
|
6015
|
+
noSquash() {
|
|
6016
|
+
return this.layoutStyle({
|
|
6017
|
+
flexShrink: 0,
|
|
6018
|
+
minHeight: "min-content"
|
|
6019
|
+
});
|
|
6020
|
+
}
|
|
6009
6021
|
flex(o) {
|
|
6010
6022
|
const i = o === void 0 ? void 0 : typeof o == "number" ? String(o) : {
|
|
6011
6023
|
1: "1 1 0%",
|
|
@@ -8048,6 +8060,8 @@ class df extends go {
|
|
|
8048
8060
|
c(this, "_extendBody", !1);
|
|
8049
8061
|
c(this, "_extendBehindHeader", !1);
|
|
8050
8062
|
c(this, "_avoidKeyboard", !0);
|
|
8063
|
+
/** Body children keep their height; the body scrolls. On by default. */
|
|
8064
|
+
c(this, "_noSquash", !0);
|
|
8051
8065
|
c(this, "_onDrawer");
|
|
8052
8066
|
}
|
|
8053
8067
|
children(t) {
|
|
@@ -8139,6 +8153,14 @@ class df extends go {
|
|
|
8139
8153
|
avoidKeyboard(t = !0) {
|
|
8140
8154
|
return this._avoidKeyboard = t, this;
|
|
8141
8155
|
}
|
|
8156
|
+
/**
|
|
8157
|
+
* Don't squash body children into the viewport ("não achatar").
|
|
8158
|
+
* On by default. Pass `false` to let the column shrink them again.
|
|
8159
|
+
* For a single child, call `.noSquash()` on that element instead.
|
|
8160
|
+
*/
|
|
8161
|
+
noSquash(t = !0) {
|
|
8162
|
+
return this._noSquash = t, this;
|
|
8163
|
+
}
|
|
8142
8164
|
onDrawer(t) {
|
|
8143
8165
|
return this._onDrawer = t, this;
|
|
8144
8166
|
}
|
|
@@ -8210,6 +8232,7 @@ class df extends go {
|
|
|
8210
8232
|
p.createElement("main", {
|
|
8211
8233
|
key: "scaffold-body",
|
|
8212
8234
|
className: "fibo-scaffold-body",
|
|
8235
|
+
"data-no-squash": this._noSquash ? "" : void 0,
|
|
8213
8236
|
style: {
|
|
8214
8237
|
flex: 1,
|
|
8215
8238
|
display: "flex",
|
package/dist/structure.d.ts
CHANGED
|
@@ -1015,6 +1015,12 @@ declare abstract class FiboBuilder {
|
|
|
1015
1015
|
alignY(alignment: AlignAxis): this;
|
|
1016
1016
|
protected applyMainAlign(alignment: AlignAxis | string): this;
|
|
1017
1017
|
protected applyCrossAlign(alignment: AlignAxis | string): this;
|
|
1018
|
+
/**
|
|
1019
|
+
* Don't let a flex parent squash this view (the Scaffold-body case).
|
|
1020
|
+
* Locks `flex-shrink: 0` and `min-height: min-content` so a fixed
|
|
1021
|
+
* frame/image keeps its height and the parent scrolls instead.
|
|
1022
|
+
*/
|
|
1023
|
+
noSquash(): this;
|
|
1018
1024
|
flex(value?: number | string): this;
|
|
1019
1025
|
grid(): this;
|
|
1020
1026
|
inlineFlex(): this;
|
package/dist/structure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aH as r, aJ as e, aI as o } from "./client-
|
|
2
|
-
import { A as C, B as d, C as i, c as l, d as n, G as T, b as f, L as m, P as p, T as x, a as B } from "./index-
|
|
1
|
+
import { aH as r, aJ as e, aI as o } from "./client-BQ1gZrfo.js";
|
|
2
|
+
import { A as C, B as d, C as i, c as l, d as n, G as T, b as f, L as m, P as p, T as x, a as B } from "./index-gxPXkce8.js";
|
|
3
3
|
export {
|
|
4
4
|
C as AssetCard,
|
|
5
5
|
d as Banner,
|