fiboui 2.9.1 → 2.9.4

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.
@@ -1377,6 +1377,7 @@ declare class ListItemStyleBuilder extends CssStyleStore {
1377
1377
  style(extra: React$1.CSSProperties): this;
1378
1378
  }
1379
1379
  type ListVariant = "default" | "card" | "floating";
1380
+ type ListSeparator = boolean | FiboChild | ((index: number) => FiboChild);
1380
1381
  declare class ListBuilder<T = any> extends FiboBuilder {
1381
1382
  private _items;
1382
1383
  /** Plain `signal(array)`. Read on each rebuild. */
@@ -1386,6 +1387,7 @@ declare class ListBuilder<T = any> extends FiboBuilder {
1386
1387
  private _renderItem?;
1387
1388
  private _onItemPress?;
1388
1389
  private _variant;
1390
+ /** Flutter `ListView.separated` — see {@link ListBuilder.separator}. */
1389
1391
  private _separator;
1390
1392
  private _onEndReached?;
1391
1393
  private _loading;
@@ -1446,7 +1448,26 @@ declare class ListBuilder<T = any> extends FiboBuilder {
1446
1448
  */
1447
1449
  empty(content: FiboChild | (() => FiboChild)): this;
1448
1450
  variant(variant: ListVariant): this;
1449
- separator(show?: boolean): this;
1451
+ /**
1452
+ * Flutter `ListView.separated` — paint a widget **between** rows only
1453
+ * (never before the first or after the last). The value itself is the build:
1454
+ *
1455
+ * ```ts
1456
+ * // default Material hairline (Divider)
1457
+ * List().items(rows).separator().renderItem(…)
1458
+ *
1459
+ * // fixed custom separator (any builder / node)
1460
+ * List().items(rows).separator(Divider().indent(16).color('#ccc'))
1461
+ * List().items(rows).separator(Text('·').alignX('center'))
1462
+ * List().items(rows).separator(Row().gap(8).children([Line(), Text('OR'), Line()]))
1463
+ *
1464
+ * // build each gap — index is 0 … itemCount-2
1465
+ * List().items(rows).separator((i) =>
1466
+ * i === 2 ? Text('Section') : Divider().indent(16)
1467
+ * )
1468
+ * ```
1469
+ */
1470
+ separator(value?: ListSeparator): this;
1450
1471
  onEndReached(handler: () => void): this;
1451
1472
  loading(isLoading: boolean): this;
1452
1473
  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-3NdKI2xE.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-BaTO66yA.js";
1
+ import { aF as r, aH as e, aG as o } from "./client-lzMYg4vy.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-Dz8r4kWQ.js";
3
3
  export {
4
4
  C as AssetCard,
5
5
  d as Banner,