fiboui 2.9.1 → 2.9.5
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-3NdKI2xE.js → client-Cc87LXic.js} +4386 -3981
- package/dist/content.d.ts +34 -0
- package/dist/content.js +3 -3
- package/dist/core.d.ts +34 -0
- package/dist/core.js +2 -2
- package/dist/{icons-DS8J4SFk.js → icons-By9BFp7V.js} +1 -1
- package/dist/{index-I-MXiId0.js → index-BJnYb_kw.js} +1 -1
- package/dist/{index-B6F3yf3H.js → index-BxYsYMal.js} +2 -2
- package/dist/{index-BLEG6Nql.js → index-C-hvMzQd.js} +41 -34
- package/dist/{index-BaTO66yA.js → index-D5c1VXlN.js} +51 -51
- package/dist/{index-FuD1J3Qo.js → index-T8F37_p4.js} +13 -13
- package/dist/index.d.ts +165 -7
- package/dist/index.js +1016 -954
- package/dist/interactive.d.ts +34 -0
- package/dist/interactive.js +2 -2
- package/dist/layout.d.ts +59 -2
- package/dist/layout.js +3 -3
- package/dist/{metadata-B2MRlDTz.js → metadata-BffL-8b9.js} +1 -1
- package/dist/navigation.js +2 -2
- package/dist/{page-xwU8SnoZ.js → page-DbndR-7r.js} +1 -1
- package/dist/server.d.ts +59 -2
- package/dist/server.js +1804 -1698
- package/dist/structure.d.ts +56 -1
- package/dist/structure.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.js +1 -1
- package/package.json +1 -1
package/dist/structure.d.ts
CHANGED
|
@@ -511,6 +511,30 @@ type EdgeInsetsValue = {
|
|
|
511
511
|
/** CSS right — alias of trailing in LTR */
|
|
512
512
|
right?: number | string;
|
|
513
513
|
};
|
|
514
|
+
declare const Material: {
|
|
515
|
+
readonly ultraThin: {
|
|
516
|
+
readonly blur: 20;
|
|
517
|
+
readonly background: "rgba(255, 255, 255, 0.35)";
|
|
518
|
+
};
|
|
519
|
+
readonly thin: {
|
|
520
|
+
readonly blur: 28;
|
|
521
|
+
readonly background: "rgba(255, 255, 255, 0.48)";
|
|
522
|
+
};
|
|
523
|
+
readonly regular: {
|
|
524
|
+
readonly blur: 36;
|
|
525
|
+
readonly background: "rgba(255, 255, 255, 0.62)";
|
|
526
|
+
};
|
|
527
|
+
readonly thick: {
|
|
528
|
+
readonly blur: 48;
|
|
529
|
+
readonly background: "rgba(255, 255, 255, 0.78)";
|
|
530
|
+
};
|
|
531
|
+
readonly ultraThick: {
|
|
532
|
+
readonly blur: 60;
|
|
533
|
+
readonly background: "rgba(255, 255, 255, 0.88)";
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
type MaterialKind = keyof typeof Material;
|
|
537
|
+
type MaterialSpec = (typeof Material)[MaterialKind];
|
|
514
538
|
type SafeAreaInsetEdge = Edge | "top" | "bottom" | "leading" | "trailing" | "left" | "right";
|
|
515
539
|
type SafeAreaInsetSpec = {
|
|
516
540
|
edge: SafeAreaInsetEdge;
|
|
@@ -1015,6 +1039,16 @@ declare abstract class FiboBuilder {
|
|
|
1015
1039
|
text(color: string | Colors): this;
|
|
1016
1040
|
color(value: string | Colors): this;
|
|
1017
1041
|
private resolveSemanticColor;
|
|
1042
|
+
/**
|
|
1043
|
+
* Backdrop blur (glass). Prefer over raw `.backdropFilter('blur(…)')`.
|
|
1044
|
+
* `20` → `blur(20px)`; also accepts `'20px'` or a full `blur(…)` string.
|
|
1045
|
+
*/
|
|
1046
|
+
backdropBlur(radius?: number | string): this;
|
|
1047
|
+
/**
|
|
1048
|
+
* SwiftUI `Material` glass fill — blur + translucent background.
|
|
1049
|
+
* `Box().material(Material.ultraThin)` or `.material('regular')`.
|
|
1050
|
+
*/
|
|
1051
|
+
material(kind: MaterialKind | MaterialSpec): this;
|
|
1018
1052
|
shadow(config?: ShadowConfig): this;
|
|
1019
1053
|
/**
|
|
1020
1054
|
* Breakpoint styles compiled to CSS `@media` (same engine as `.md()`).
|
|
@@ -1377,6 +1411,7 @@ declare class ListItemStyleBuilder extends CssStyleStore {
|
|
|
1377
1411
|
style(extra: React$1.CSSProperties): this;
|
|
1378
1412
|
}
|
|
1379
1413
|
type ListVariant = "default" | "card" | "floating";
|
|
1414
|
+
type ListSeparator = boolean | FiboChild | ((index: number) => FiboChild);
|
|
1380
1415
|
declare class ListBuilder<T = any> extends FiboBuilder {
|
|
1381
1416
|
private _items;
|
|
1382
1417
|
/** Plain `signal(array)`. Read on each rebuild. */
|
|
@@ -1386,6 +1421,7 @@ declare class ListBuilder<T = any> extends FiboBuilder {
|
|
|
1386
1421
|
private _renderItem?;
|
|
1387
1422
|
private _onItemPress?;
|
|
1388
1423
|
private _variant;
|
|
1424
|
+
/** Flutter `ListView.separated` — see {@link ListBuilder.separator}. */
|
|
1389
1425
|
private _separator;
|
|
1390
1426
|
private _onEndReached?;
|
|
1391
1427
|
private _loading;
|
|
@@ -1446,7 +1482,26 @@ declare class ListBuilder<T = any> extends FiboBuilder {
|
|
|
1446
1482
|
*/
|
|
1447
1483
|
empty(content: FiboChild | (() => FiboChild)): this;
|
|
1448
1484
|
variant(variant: ListVariant): this;
|
|
1449
|
-
|
|
1485
|
+
/**
|
|
1486
|
+
* Flutter `ListView.separated` — paint a widget **between** rows only
|
|
1487
|
+
* (never before the first or after the last). The value itself is the build:
|
|
1488
|
+
*
|
|
1489
|
+
* ```ts
|
|
1490
|
+
* // default Material hairline (Divider)
|
|
1491
|
+
* List().items(rows).separator().renderItem(…)
|
|
1492
|
+
*
|
|
1493
|
+
* // fixed custom separator (any builder / node)
|
|
1494
|
+
* List().items(rows).separator(Divider().indent(16).color('#ccc'))
|
|
1495
|
+
* List().items(rows).separator(Text('·').alignX('center'))
|
|
1496
|
+
* List().items(rows).separator(Row().gap(8).children([Line(), Text('OR'), Line()]))
|
|
1497
|
+
*
|
|
1498
|
+
* // build each gap — index is 0 … itemCount-2
|
|
1499
|
+
* List().items(rows).separator((i) =>
|
|
1500
|
+
* i === 2 ? Text('Section') : Divider().indent(16)
|
|
1501
|
+
* )
|
|
1502
|
+
* ```
|
|
1503
|
+
*/
|
|
1504
|
+
separator(value?: ListSeparator): this;
|
|
1450
1505
|
onEndReached(handler: () => void): this;
|
|
1451
1506
|
loading(isLoading: boolean): this;
|
|
1452
1507
|
threshold(value: number): this;
|
package/dist/structure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aF as r, aH as e, aG as o } from "./client-
|
|
2
|
-
import { A as C, B as d, C as i, c as l, d as n, G, b as T, L as f, P as m, T as p, a as x } from "./index-
|
|
1
|
+
import { aF as r, aH as e, aG as o } from "./client-Cc87LXic.js";
|
|
2
|
+
import { A as C, B as d, C as i, c as l, d as n, G, b as T, L as f, P as m, T as p, a as x } from "./index-D5c1VXlN.js";
|
|
3
3
|
export {
|
|
4
4
|
C as AssetCard,
|
|
5
5
|
d as Banner,
|