fiboui 2.8.3 → 2.8.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/layout.d.ts CHANGED
@@ -1 +1,1218 @@
1
- export { Center, Column, Container, Row, Spacer, Scaffold, Header, Sidebar, DashboardLayout, ZStack, Line, ScrollView, ScrollController, VirtualColumn } from './index.js';
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import React$1 from 'react';
4
+ import { CSSProperties, ReactElement, ReactNode } from 'react';
5
+
6
+ type Buildable = {
7
+ /** @deprecated Builders are React elements; `.build()` is optional. */
8
+ build(): React$1.ReactNode;
9
+ };
10
+ type FiboChild = React$1.ReactNode | Buildable;
11
+ type FiboChildren = FiboChild | readonly FiboChild[] | (() => FiboChild | readonly FiboChild[]);
12
+ type FiboThemeName = "material" | "cupertino" | "web" | "noir";
13
+ interface ResponsiveStyles {
14
+ mobile?: React$1.CSSProperties;
15
+ tablet?: React$1.CSSProperties;
16
+ desktop?: React$1.CSSProperties;
17
+ }
18
+ type Alignment = "start" | "center" | "end" | "stretch";
19
+ type MainAxisAlignment = "start" | "center" | "end" | "spaceBetween" | "spaceAround" | "spaceEvenly";
20
+ type CrossAxisAlignment = Alignment;
21
+ type AlignAxis = "start" | "center" | "end" | "stretch" | "baseline" | "between" | "around" | "evenly" | "space-between" | "space-around" | "space-evenly" | "spaceBetween" | "spaceAround" | "spaceEvenly";
22
+ interface TextStyle {
23
+ fontSize?: string | number;
24
+ fontWeight?: string | number;
25
+ fontFamily?: string;
26
+ color?: string;
27
+ lineHeight?: string | number;
28
+ letterSpacing?: string | number;
29
+ }
30
+ declare const FIBO_BREAKPOINTS: {
31
+ readonly sm: 640;
32
+ readonly md: 768;
33
+ readonly lg: 1024;
34
+ readonly xl: 1280;
35
+ };
36
+ type BreakpointKey = keyof typeof FIBO_BREAKPOINTS;
37
+ type Listener<T> = (value: T) => void;
38
+ type Unsubscribe = () => void;
39
+ interface Subscribable<T> {
40
+ subscribe(listener: Listener<T>): Unsubscribe;
41
+ subscribeEffect(effect: Effect): void;
42
+ unsubscribeEffect(effect: Effect): void;
43
+ }
44
+ interface BindableSignal<T = unknown> {
45
+ readonly value: T;
46
+ subscribe(listener: Listener<T>): Unsubscribe;
47
+ }
48
+ declare class Effect {
49
+ private fn;
50
+ private dependencies;
51
+ private _onDispose?;
52
+ constructor(fn: () => void);
53
+ run(): void;
54
+ track(dep: Subscribable<any>): void;
55
+ trigger(): void;
56
+ cleanup(): void;
57
+ dispose(): void;
58
+ }
59
+ declare class Signal<T> implements Subscribable<T> {
60
+ private _value;
61
+ private listeners;
62
+ private effects;
63
+ private readonly _initial;
64
+ constructor(_value: T);
65
+ get value(): T;
66
+ /** Current value without tracking. Replays use this so a node does not subscribe twice. */
67
+ peek(): T;
68
+ set value(newValue: T);
69
+ /** Replace the value. Same notify path as `.value = next`. */
70
+ set(next: T): this;
71
+ /**
72
+ * Write a value, or an updater `(prev) => next`.
73
+ * Function-valued signals should use `.set()` / `.value =` so the function is stored, not called.
74
+ * Not named `update`: `listSignal.update(id, patch)` is the item patch.
75
+ */
76
+ change(next: T | ((prev: T) => T)): this;
77
+ /** Restore the value passed to `signal(initial)`. */
78
+ reset(): this;
79
+ subscribe(listener: Listener<T>): Unsubscribe;
80
+ subscribeEffect(effect: Effect): void;
81
+ unsubscribeEffect(effect: Effect): void;
82
+ private _notifyDepth;
83
+ private notify;
84
+ }
85
+ declare class Observable<T> implements Subscribable<T> {
86
+ private _value;
87
+ private listeners;
88
+ private effects;
89
+ constructor(_value: T);
90
+ get(): T;
91
+ set(newValue: T): void;
92
+ subscribe(listener: Listener<T>): Unsubscribe;
93
+ subscribeEffect(effect: Effect): void;
94
+ unsubscribeEffect(effect: Effect): void;
95
+ private notify;
96
+ }
97
+ declare abstract class GestureBuilder {
98
+ abstract wrap(children: React$1.ReactNode): React$1.ReactNode;
99
+ }
100
+ interface AnimationOptions {
101
+ duration?: number;
102
+ curve?: "linear" | "easeIn" | "easeOut" | "easeInOut" | "spring" | string;
103
+ damping?: number;
104
+ stiffness?: number;
105
+ velocity?: number;
106
+ mass?: number;
107
+ onComplete?: () => void;
108
+ }
109
+ interface Signal<T> {
110
+ spring(target: T, options?: Partial<AnimationOptions>): void;
111
+ animate(target: T, options?: Partial<AnimationOptions>): void;
112
+ snapTo(target: T, options?: Partial<AnimationOptions>): void;
113
+ }
114
+ declare const INTERACTION_EFFECTS: readonly [
115
+ "grow",
116
+ "shrink",
117
+ "pulse",
118
+ "pulseGrow",
119
+ "pulseShrink",
120
+ "push",
121
+ "pop",
122
+ "bounceIn",
123
+ "bounceOut",
124
+ "rotate",
125
+ "growRotate",
126
+ "float",
127
+ "sink",
128
+ "bob",
129
+ "hang",
130
+ "skew",
131
+ "skewForward",
132
+ "skewBackward",
133
+ "wobbleHorizontal",
134
+ "wobbleVertical",
135
+ "wobbleToBottomRight",
136
+ "wobbleToTopRight",
137
+ "wobbleTop",
138
+ "wobbleBottom",
139
+ "wobbleSkew",
140
+ "buzz",
141
+ "buzzOut",
142
+ "forward",
143
+ "backward",
144
+ "nudge",
145
+ "fade",
146
+ "backPulse",
147
+ "sweepToRight",
148
+ "sweepToLeft",
149
+ "sweepToBottom",
150
+ "sweepToTop",
151
+ "bounceToRight",
152
+ "bounceToLeft",
153
+ "bounceToBottom",
154
+ "bounceToTop",
155
+ "radialOut",
156
+ "radialIn",
157
+ "rectangleIn",
158
+ "rectangleOut",
159
+ "shutterInHorizontal",
160
+ "shutterOutHorizontal",
161
+ "shutterInVertical",
162
+ "shutterOutVertical",
163
+ "iconBack",
164
+ "iconForward",
165
+ "iconDown",
166
+ "iconUp",
167
+ "iconSpin",
168
+ "iconDrop",
169
+ "iconFade",
170
+ "iconFloatAway",
171
+ "iconSinkAway",
172
+ "iconGrow",
173
+ "iconShrink",
174
+ "iconPulse",
175
+ "iconPulseGrow",
176
+ "iconPulseShrink",
177
+ "iconPush",
178
+ "iconPop",
179
+ "iconBounce",
180
+ "iconRotate",
181
+ "iconGrowRotate",
182
+ "iconFloat",
183
+ "iconSink",
184
+ "iconBob",
185
+ "iconHang",
186
+ "iconWobbleHorizontal",
187
+ "iconWobbleVertical",
188
+ "iconBuzz",
189
+ "iconBuzzOut",
190
+ "borderFade",
191
+ "hollow",
192
+ "trim",
193
+ "rippleOut",
194
+ "rippleIn",
195
+ "outlineOut",
196
+ "outlineIn",
197
+ "roundCorners",
198
+ "underlineFromLeft",
199
+ "underlineFromCenter",
200
+ "underlineFromRight",
201
+ "reveal",
202
+ "underlineReveal",
203
+ "overlineFromLeft",
204
+ "overlineFromCenter",
205
+ "overlineFromRight",
206
+ "overlineReveal",
207
+ "shadowGrow",
208
+ "shadowFloat",
209
+ "shadowGlow",
210
+ "shadowRadial",
211
+ "boxShadowOutset",
212
+ "boxShadowInset",
213
+ "lift",
214
+ "glow",
215
+ "bubbleTop",
216
+ "bubbleRight",
217
+ "bubbleBottom",
218
+ "bubbleLeft",
219
+ "bubbleFloatTop",
220
+ "bubbleFloatRight",
221
+ "bubbleFloatBottom",
222
+ "bubbleFloatLeft",
223
+ "curlTopLeft",
224
+ "curlTopRight",
225
+ "curlBottomRight",
226
+ "curlBottomLeft"
227
+ ];
228
+ type InteractionEffectName = (typeof INTERACTION_EFFECTS)[number];
229
+ interface LogicalAxes {
230
+ paddingHorizontal(value: string | number): this;
231
+ paddingVertical(value: string | number): this;
232
+ paddingX(value: string | number): this;
233
+ paddingY(value: string | number): this;
234
+ px(value: string | number): this;
235
+ py(value: string | number): this;
236
+ marginHorizontal(value: string | number): this;
237
+ marginVertical(value: string | number): this;
238
+ marginX(value: string | number): this;
239
+ marginY(value: string | number): this;
240
+ mx(value: string | number): this;
241
+ my(value: string | number): this;
242
+ borderHorizontal(value: string | number): this;
243
+ borderVertical(value: string | number): this;
244
+ borderX(value: string | number): this;
245
+ borderY(value: string | number): this;
246
+ borderWidthHorizontal(value: string | number): this;
247
+ borderWidthVertical(value: string | number): this;
248
+ borderColorHorizontal(value: string | number): this;
249
+ borderColorVertical(value: string | number): this;
250
+ roundedTop(value: string | number): this;
251
+ roundedBottom(value: string | number): this;
252
+ roundedLeft(value: string | number): this;
253
+ roundedRight(value: string | number): this;
254
+ insetHorizontal(value: string | number): this;
255
+ insetVertical(value: string | number): this;
256
+ insetX(value: string | number): this;
257
+ insetY(value: string | number): this;
258
+ gapX(value: string | number): this;
259
+ gapY(value: string | number): this;
260
+ }
261
+ interface PseudoStateBuilder extends LogicalAxes {
262
+ boxShadow(value: string | number): this;
263
+ }
264
+ declare class PseudoStateBuilder {
265
+ private pseudoState;
266
+ private parentBuilder;
267
+ private isGroup;
268
+ private transitionDuration;
269
+ private transitionEasing;
270
+ private transitionDelay;
271
+ private transitionProperties;
272
+ private transforms;
273
+ private _boxLonghands;
274
+ constructor(pseudoState: string, parentBuilder: FiboBuilder, isGroup?: boolean);
275
+ /**
276
+ * Apply a named interaction effect (full Hover.css–inspired catalog).
277
+ * Works on any pseudo trigger — hover, press/active, focus, groupHover, etc.
278
+ * Stamps CSS classes; sheet is fiboui-owned (not a Hover.css vendor).
279
+ */
280
+ effect(name: InteractionEffectName | string): this;
281
+ bg(color: string): this;
282
+ /** Same longhand as `.bg()` — interpolates against the resting surface. */
283
+ backgroundColor(value: string): this;
284
+ color(value: string): this;
285
+ text(color: string): this;
286
+ opacity(value: number): this;
287
+ borderColor(value: string): this;
288
+ transform(value: string): this;
289
+ scale(value: number): this;
290
+ translateX(value: number | string): this;
291
+ translateY(value: number | string): this;
292
+ rotate(degrees: number): this;
293
+ shadow(value: string | number): this;
294
+ css(property: string, value: string | number): this;
295
+ padding(value: string | number): this;
296
+ p(value: string | number): this;
297
+ margin(value: string | number): this;
298
+ transition(value: string): this;
299
+ transition(properties: string | string[], duration: number, easing?: string, delay?: number): this;
300
+ duration(ms: number): this;
301
+ easing(value: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "spring" | string): this;
302
+ ease(value: string): this;
303
+ delay(ms: number): this;
304
+ properties(props: string[]): this;
305
+ private applyTransition;
306
+ private flushTransform;
307
+ private set;
308
+ private commit;
309
+ end(): FiboBuilder;
310
+ }
311
+ declare const When: {
312
+ readonly hover: "hover";
313
+ readonly focus: "focus";
314
+ readonly active: "active";
315
+ readonly visited: "visited";
316
+ readonly disabled: "disabled";
317
+ readonly on: "on";
318
+ readonly off: "off";
319
+ readonly checked: "checked";
320
+ readonly unchecked: "unchecked";
321
+ readonly indeterminate: "indeterminate";
322
+ readonly mixed: "mixed";
323
+ };
324
+ type When = (typeof When)[keyof typeof When];
325
+ type WhenStyle = React$1.CSSProperties | string | ((builder: any) => void);
326
+ interface SpringOptions {
327
+ stiffness?: number;
328
+ damping?: number;
329
+ mass?: number;
330
+ }
331
+ declare const MOTION_PRESETS: readonly [
332
+ "fadeIn",
333
+ "fadeOut",
334
+ "fade",
335
+ "slideUp",
336
+ "slideDown",
337
+ "slideLeft",
338
+ "slideRight",
339
+ "scaleIn",
340
+ "scaleOut",
341
+ "scale",
342
+ "blurIn",
343
+ "blurOut",
344
+ "blur",
345
+ "pop",
346
+ "bounce"
347
+ ];
348
+ type MotionPreset = (typeof MOTION_PRESETS)[number];
349
+ interface CustomMotion {
350
+ from: Record<string, string | number>;
351
+ to: Record<string, string | number>;
352
+ duration?: number;
353
+ ease?: string;
354
+ delay?: number;
355
+ stiffness?: number;
356
+ damping?: number;
357
+ mass?: number;
358
+ }
359
+ interface ThemeColors {
360
+ primary: string;
361
+ primaryVariant?: string;
362
+ primaryContainer?: string;
363
+ onPrimaryContainer?: string;
364
+ secondary: string;
365
+ secondaryVariant?: string;
366
+ secondaryContainer?: string;
367
+ onSecondaryContainer?: string;
368
+ tertiary?: string;
369
+ onTertiary?: string;
370
+ tertiaryContainer?: string;
371
+ onTertiaryContainer?: string;
372
+ background: string;
373
+ surface: string;
374
+ surfaceVariant?: string;
375
+ onSurfaceVariant?: string;
376
+ error: string;
377
+ errorContainer?: string;
378
+ onErrorContainer?: string;
379
+ success?: string;
380
+ warning?: string;
381
+ info?: string;
382
+ onPrimary: string;
383
+ onSecondary: string;
384
+ onBackground: string;
385
+ onSurface: string;
386
+ onError: string;
387
+ /** Borders / hairlines — maps to `--fibo-outline`. */
388
+ outline?: string;
389
+ outlineVariant?: string;
390
+ /** Maps to `--fibo-surface-container-low` (M3 card surfaces). */
391
+ surfaceContainerLow?: string;
392
+ }
393
+ interface ThemeTypography {
394
+ h1: TextStyle;
395
+ h2: TextStyle;
396
+ h3: TextStyle;
397
+ h4: TextStyle;
398
+ h5: TextStyle;
399
+ h6: TextStyle;
400
+ body: TextStyle;
401
+ caption: TextStyle;
402
+ label: TextStyle;
403
+ }
404
+ interface ThemeSpacing {
405
+ xs: string;
406
+ sm: string;
407
+ md: string;
408
+ lg: string;
409
+ xl: string;
410
+ }
411
+ interface ThemeBorderRadius {
412
+ /** Maps to `--fibo-radius-xs` when set (CSS sheets already define it). */
413
+ xs?: string;
414
+ sm: string;
415
+ md: string;
416
+ lg: string;
417
+ /** Maps to `--fibo-radius-xl` when set (CSS sheets already define it). */
418
+ xl?: string;
419
+ full: string;
420
+ }
421
+ interface ThemeShadows {
422
+ sm: string;
423
+ md: string;
424
+ lg: string;
425
+ }
426
+ interface FiboTheme {
427
+ name: FiboThemeName;
428
+ colors: ThemeColors;
429
+ typography: ThemeTypography;
430
+ spacing: ThemeSpacing;
431
+ borderRadius: ThemeBorderRadius;
432
+ shadows: ThemeShadows;
433
+ fontFamily: string;
434
+ }
435
+ declare const FIBO_THEMES: {
436
+ readonly material: FiboTheme;
437
+ readonly cupertino: FiboTheme;
438
+ readonly web: FiboTheme;
439
+ readonly noir: FiboTheme;
440
+ };
441
+ type FiboThemePreset = keyof typeof FIBO_THEMES;
442
+ type ThemeInput = FiboTheme | FiboThemePreset;
443
+ declare enum Colors {
444
+ Primary = "primary",
445
+ OnPrimary = "on-primary",
446
+ PrimaryContainer = "primary-container",
447
+ OnPrimaryContainer = "on-primary-container",
448
+ Secondary = "secondary",
449
+ OnSecondary = "on-secondary",
450
+ SecondaryContainer = "secondary-container",
451
+ OnSecondaryContainer = "on-secondary-container",
452
+ Tertiary = "tertiary",
453
+ OnTertiary = "on-tertiary",
454
+ TertiaryContainer = "tertiary-container",
455
+ OnTertiaryContainer = "on-tertiary-container",
456
+ Error = "error",
457
+ OnError = "on-error",
458
+ Success = "success",
459
+ Warning = "warning",
460
+ Info = "info",
461
+ Background = "background",
462
+ OnBackground = "on-background",
463
+ Surface = "surface",
464
+ OnSurface = "on-surface",
465
+ SurfaceVariant = "surface-variant",
466
+ OnSurfaceVariant = "on-surface-variant",
467
+ Outline = "outline",
468
+ Transparent = "transparent",
469
+ Black = "black",
470
+ White = "white"
471
+ }
472
+ declare enum ShadowSize {
473
+ Sm = "sm",
474
+ Md = "md",
475
+ Lg = "lg",
476
+ Xl = "xl",
477
+ Xl2 = "2xl"
478
+ }
479
+ declare enum ShadowPreset {
480
+ Card = "card",
481
+ Button = "button",
482
+ Modal = "modal",
483
+ Float = "float",
484
+ Inner = "inner"
485
+ }
486
+ declare enum ShadowDirection {
487
+ Top = "top",
488
+ Bottom = "bottom",
489
+ Left = "left",
490
+ Right = "right",
491
+ TopBottom = "top-bottom",
492
+ LeftRight = "left-right",
493
+ Vertical = "vertical",
494
+ Horizontal = "horizontal",
495
+ All = "all"
496
+ }
497
+ type ShadowConfig = ShadowSize | ShadowPreset | string | 0 | null | [
498
+ string,
499
+ number?
500
+ ] | [
501
+ ShadowDirection | string,
502
+ ShadowSize | string
503
+ ] | [
504
+ ShadowDirection | string,
505
+ string
506
+ ] | [
507
+ ShadowDirection | string,
508
+ string,
509
+ number?
510
+ ] | [
511
+ ShadowDirection | string,
512
+ ShadowSize | string,
513
+ string,
514
+ number?
515
+ ];
516
+ type PseudoStateFn = (builder: PseudoStateBuilder) => void | PseudoStateBuilder;
517
+ declare abstract class FiboBuilder {
518
+ /** @internal Extra DOM props forwarded to the host element. */
519
+ protected _props: Record<string, any>;
520
+ protected _style: React$1.CSSProperties;
521
+ protected _cssStyles: React$1.CSSProperties;
522
+ protected _classNames: string[];
523
+ protected _children: React$1.ReactNode[];
524
+ /** Resolved theme for this subtree (SwiftUI Environment / Flutter Theme). */
525
+ protected _theme?: FiboTheme;
526
+ protected _state: Map<string, any>;
527
+ protected _providers: Map<string, any>;
528
+ protected _observers: Set<Observable<any>>;
529
+ protected _signals: Set<BindableSignal<any>>;
530
+ /** Explicit `.bindSignal()` / `.observer()` owns nested reads. A direct wire does not. */
531
+ protected _ownsReads: boolean;
532
+ /** @internal Direct `method(signal.value)` calls replayed when that signal changes. */
533
+ protected _replays: Array<() => void>;
534
+ protected _isObserver: boolean;
535
+ protected _gesture?: GestureBuilder;
536
+ protected _animationConfig?: Partial<AnimationOptions>;
537
+ protected _animatedProps: Map<string, Signal<any>>;
538
+ protected _transforms: string[];
539
+ protected _transitionClass?: string;
540
+ /** True while transition class was auto-managed for hover/effect presets (expandable). */
541
+ protected _autoEffectTransition: boolean;
542
+ protected _effectTransitionProps: string[];
543
+ /**
544
+ * When true, getStyle() promotes background/border shorthands to longhands and
545
+ * (optionally) stamps a resting translate3d so pseudo transforms ease cleanly.
546
+ */
547
+ protected _smoothSurface: boolean;
548
+ protected _smoothNeedsRestTransform: boolean;
549
+ protected _motionClass?: string;
550
+ protected _staggerMs?: number;
551
+ protected _reveal?: {
552
+ preset: string;
553
+ once?: boolean;
554
+ rootMargin?: string;
555
+ threshold?: number;
556
+ };
557
+ protected _scrollProgress: boolean;
558
+ protected _viewTransition?: string;
559
+ protected _reducedMotion: "reduce" | "never";
560
+ protected _usesCssMotion: boolean;
561
+ protected _explicitScrollMargin: boolean;
562
+ /** Shrink-wrap: skip the default `w-full` / `self-stretch` on Row and Column. */
563
+ protected _hug: boolean;
564
+ /**
565
+ * Unset every CSS property on this component and what it renders inside.
566
+ * Chain `.style()`, `.px()`, `.flex()` and the rest after this to put back only what you want.
567
+ */
568
+ protected _resetStyle: boolean;
569
+ /** Kebab box longhands already stamped (`padding-left`, …) so later shorthand cannot clobber them. */
570
+ protected _boxLonghands: Set<string>;
571
+ resetStyle(): this;
572
+ protected isReset(): boolean;
573
+ hug(): this;
574
+ protected isHug(): boolean;
575
+ id(value: string): this;
576
+ /**
577
+ * Scroll target. Same as `.id()`, plus `scroll-margin-top` so the section
578
+ * is not hidden under a sticky header. Pair with `scrollTo('#name')`.
579
+ */
580
+ anchor(value: string): this;
581
+ /**
582
+ * Explicit `scroll-margin-top` on this node (overrides the sticky CSS variable
583
+ * that `.anchor()` applies).
584
+ */
585
+ scrollMargin(value: number | string): this;
586
+ /** Stamp a class onto the host. Used by PseudoStateBuilder (hashed `:hover` etc.). */
587
+ addClassName(name: string): this;
588
+ /**
589
+ * React list key. After this is called, React reads the key as a string
590
+ * on both the builder element and the inner host wrapper.
591
+ * Builders are valid elements — you do not need `.build()`.
592
+ */
593
+ key(value: string | number): this;
594
+ private setBoxLonghand;
595
+ private setBoxShorthand;
596
+ paddingHorizontal(value: string | number): this;
597
+ paddingVertical(value: string | number): this;
598
+ padding(value: string | number): this;
599
+ marginHorizontal(value: string | number): this;
600
+ marginVertical(value: string | number): this;
601
+ margin(value: string | number): this;
602
+ /** Inline layout wins over a host that hardcodes flex on the element (Form, Scaffold). */
603
+ protected layoutStyle(patch: React$1.CSSProperties): this;
604
+ /** Last write of a key lives in one bag so getStyle() does not let earlier `.css()` beat later `.style()`. */
605
+ private dropConflictingKeys;
606
+ private trackBoxLonghandsFrom;
607
+ flexDirection(direction: "row" | "column" | "row-reverse" | "column-reverse"): this;
608
+ /** Flutter `textDirection`. */
609
+ textDirection(direction: "ltr" | "rtl"): this;
610
+ /** Flutter `textBaseline`. Both modes align on the flex baseline. */
611
+ textBaseline(baseline: "alphabetic" | "ideographic"): this;
612
+ /** Flutter `clipBehavior`. `none` shows overflow; the other two clip. */
613
+ clip(behavior: "none" | "hardEdge" | "antiAlias"): this;
614
+ /**
615
+ * Flutter `mainAxisSize`. `min` hugs the current flex direction.
616
+ * `max` stretches along that same axis.
617
+ */
618
+ mainAxisSize(size: "min" | "max"): this;
619
+ zIndex(value: number): this;
620
+ alignItems(alignment: "start" | "center" | "end" | "stretch" | "baseline"): this;
621
+ alignSelf(alignment: "start" | "center" | "end" | "stretch" | "baseline" | "auto"): this;
622
+ flexWrap(wrap: "wrap" | "nowrap" | "wrap-reverse"): this;
623
+ /**
624
+ * Main-axis distribution. Accepts Tailwind shortcuts (`between`) and CSS/Flutter
625
+ * names (`space-between` / `spaceBetween`).
626
+ */
627
+ justifyContent(justify: "start" | "center" | "end" | "between" | "around" | "evenly" | "space-between" | "space-around" | "space-evenly" | "spaceBetween" | "spaceAround" | "spaceEvenly"): this;
628
+ /** True when flexDirection is column / column-reverse (default is row). */
629
+ protected isVerticalFlex(): boolean;
630
+ /**
631
+ * Both screen axes. `.align(Align.center)` and `.align('center')` do the same.
632
+ * `between` packs the main axis and starts the cross axis.
633
+ */
634
+ align(alignment: AlignAxis): this;
635
+ /**
636
+ * Horizontal (screen X) alignment. Same meaning on Row and Column:
637
+ * left / center / right of the container — not “main axis”.
638
+ */
639
+ alignX(alignment: AlignAxis): this;
640
+ /**
641
+ * Vertical (screen Y) alignment. Same meaning on Row and Column:
642
+ * top / center / bottom of the container — not “cross axis”.
643
+ */
644
+ alignY(alignment: AlignAxis): this;
645
+ protected applyMainAlign(alignment: AlignAxis | string): this;
646
+ protected applyCrossAlign(alignment: AlignAxis | string): this;
647
+ flex(value?: number | string): this;
648
+ grid(): this;
649
+ inlineFlex(): this;
650
+ inlineGrid(): this;
651
+ block(): this;
652
+ inlineBlock(): this;
653
+ hidden(): this;
654
+ center(): this;
655
+ /** Center on the horizontal screen axis (uses `.alignX('center')`). */
656
+ centerX(): this;
657
+ /** Center on the vertical screen axis (uses `.alignY('center')`). */
658
+ centerY(): this;
659
+ spaceBetween(): this;
660
+ spaceAround(): this;
661
+ spaceEvenly(): this;
662
+ fill(): this;
663
+ fillWidth(): this;
664
+ fillHeight(): this;
665
+ square(size: number | string): this;
666
+ circle(): this;
667
+ opacity(value: number): this;
668
+ p(value: number | string): this;
669
+ px(value: number | string): this;
670
+ py(value: number | string): this;
671
+ paddingX(value: number | string): this;
672
+ paddingY(value: number | string): this;
673
+ m(value: number | string): this;
674
+ mx(value: number | string): this;
675
+ my(value: number | string): this;
676
+ marginX(value: number | string): this;
677
+ marginY(value: number | string): this;
678
+ bg(color: string | Colors): this;
679
+ text(color: string | Colors): this;
680
+ color(value: string | Colors): this;
681
+ private resolveSemanticColor;
682
+ shadow(config?: ShadowConfig): this;
683
+ /**
684
+ * Breakpoint styles compiled to CSS `@media` (same engine as `.md()`).
685
+ * Tiers stay mutually exclusive: mobile `<768`, tablet `768–1023`, desktop `≥1024`.
686
+ * No `window.innerWidth` — hydrate-safe.
687
+ */
688
+ responsive(styles: ResponsiveStyles): this;
689
+ /**
690
+ * CSS `@media` (min-width or a raw query). Compiles to a class — no resize JS.
691
+ *
692
+ * @example Box().padding(8).media('md', { padding: 16 }).media('(prefers-color-scheme: dark)', { backgroundColor: '#111' })
693
+ */
694
+ media(query: BreakpointKey | string, styles: React$1.CSSProperties): this;
695
+ private registerMediaStyles;
696
+ sm(styles: React$1.CSSProperties): this;
697
+ md(styles: React$1.CSSProperties): this;
698
+ lg(styles: React$1.CSSProperties): this;
699
+ xl(styles: React$1.CSSProperties): this;
700
+ rounded(value: string | number): this;
701
+ borderRadius(value: string | number): this;
702
+ borderColor(value: string): this;
703
+ /**
704
+ * A passed size is a lock: `min-*` plus `flex-shrink: 0`, so a flex parent
705
+ * (the Scaffold body) cannot divide the viewport across these children.
706
+ * `400`, `'320px'`, `Size.full`, and `Space.md` all count. `flex(1)` afterwards
707
+ * opts back into sharing space.
708
+ */
709
+ private lockAxis;
710
+ width(value: string | number): this;
711
+ paint(property: string, value: string): this;
712
+ height(value: string | number): this;
713
+ gap(value: string | number): this;
714
+ clean(): this;
715
+ borderInput(color?: string, focusColor?: string): this;
716
+ weight(value: string | number): this;
717
+ onClick(handler: (event: React$1.MouseEvent<any>) => void): this;
718
+ state<T>(key: string, initialValue: T): this;
719
+ getState<T>(key: string): T | undefined;
720
+ setState<T>(key: string, value: T): this;
721
+ provide<T>(key: string, value: T): this;
722
+ consume<T>(key: string): T | undefined;
723
+ observer(options?: string | number | {
724
+ key?: string | number;
725
+ }): this;
726
+ observe<T>(observable: Observable<T>): this;
727
+ bindSignal<T>(signal: BindableSignal<T>): this;
728
+ /**
729
+ * @internal Wire a direct `method(signal.value)` to this node.
730
+ * Does not claim reads that happen later in a children function.
731
+ */
732
+ adoptWire(signals: Subscribable<unknown>[], replay: () => void): void;
733
+ /** @internal */
734
+ runReplays(): void;
735
+ translateX(value: Signal<number> | number): this;
736
+ translateY(value: Signal<number> | number): this;
737
+ scale(value: Signal<number> | number): this;
738
+ rotate(degrees: Signal<number> | number): this;
739
+ gesture(gesture: GestureBuilder): this;
740
+ animation(config: Partial<AnimationOptions>): this;
741
+ protected hasStateManagement(): boolean;
742
+ className(className: string): this;
743
+ classNames(classNames: string[]): this;
744
+ css(styles: React$1.CSSProperties): this;
745
+ style(style: React$1.CSSProperties): this;
746
+ props(props: Record<string, any>): this;
747
+ protected _transitionDuration: number;
748
+ protected _transitionEasing: string;
749
+ protected _transitionDelay: number;
750
+ protected _transitionProperties: string[];
751
+ /**
752
+ * Apply CSS transition
753
+ *
754
+ * Overload 1: String syntax
755
+ * Example: .transition('all 0.2s ease-in-out')
756
+ *
757
+ * Overload 2: Shorthand with parameters
758
+ * Example: .transition('all', 200, 'ease-out')
759
+ * Example: .transition('all', 200, 'ease-out', 50)
760
+ */
761
+ transition(value: string): this;
762
+ transition(properties: string | string[], duration: number, easing?: string, delay?: number): this;
763
+ /**
764
+ * Set transition duration in milliseconds
765
+ * Example: .duration(200) → 200ms
766
+ */
767
+ duration(ms: number): this;
768
+ /**
769
+ * Set transition easing function
770
+ * Example: .easing('ease-in-out')
771
+ */
772
+ easing(value: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "spring" | string): this;
773
+ /** Alias of `.easing()`. `'spring'` becomes CSS `linear()`. */
774
+ ease(value: string): this;
775
+ /**
776
+ * Set transition delay in milliseconds
777
+ * Example: .delay(100) → 100ms delay
778
+ */
779
+ delay(ms: number): this;
780
+ /**
781
+ * Set which properties to transition
782
+ * Example: .properties(['color', 'transform'])
783
+ */
784
+ properties(props: string[]): this;
785
+ /**
786
+ * Apply the built transition to the element
787
+ */
788
+ protected _applyTransition(): void;
789
+ private replaceTransitionClass;
790
+ /**
791
+ * CSS enter/exit preset. Compiles to `@keyframes` — no rAF.
792
+ * @example Box().animate('fadeIn').duration(300).ease('spring')
793
+ */
794
+ animate(preset: MotionPreset | string, options?: {
795
+ duration?: number;
796
+ ease?: string;
797
+ delay?: number;
798
+ from?: number | string;
799
+ stiffness?: number;
800
+ damping?: number;
801
+ mass?: number;
802
+ }): this;
803
+ animate(custom: CustomMotion): this;
804
+ /** CSS `linear()` spring. Works on `.animate()` and `.transition()` / `.hover()`. */
805
+ spring(options?: SpringOptions): this;
806
+ reducedMotion(mode?: "reduce" | "never"): this;
807
+ press(callback?: (builder: PseudoStateBuilder) => void | PseudoStateBuilder): this;
808
+ /**
809
+ * Shortcut: `.hover(h => h.effect(name))`.
810
+ * Named interaction effect on `:hover` (forward, float, grow, nudge, …).
811
+ */
812
+ hoverEffect(name: string): this;
813
+ /**
814
+ * Shortcut: `.press(p => p.effect(name))` (maps to `:active`).
815
+ */
816
+ pressEffect(name: string): this;
817
+ /**
818
+ * Shortcut: `.focus(f => f.effect(name))`.
819
+ */
820
+ focusEffect(name: string): this;
821
+ /**
822
+ * Shortcut: `.active(a => a.effect(name))`.
823
+ */
824
+ activeEffect(name: string): this;
825
+ /**
826
+ * Shortcut: `.groupHover(h => h.effect(name))`.
827
+ */
828
+ groupHoverEffect(name: string): this;
829
+ focusVisible(): PseudoStateBuilder;
830
+ focusVisible(callback: PseudoStateFn): this;
831
+ stagger(ms: number): this;
832
+ /** Scroll-reveal: IntersectionObserver toggles `.fibo-inview`. */
833
+ reveal(preset?: string | {
834
+ preset?: string;
835
+ once?: boolean;
836
+ rootMargin?: string;
837
+ threshold?: number;
838
+ }, options?: {
839
+ once?: boolean;
840
+ rootMargin?: string;
841
+ threshold?: number;
842
+ }): this;
843
+ /** Alias of `.reveal()` for scroll-triggered presets. */
844
+ onScroll(preset?: string): this;
845
+ /** CSS `animation-timeline: view()` / `scroll()`; IntersectionObserver reveal is the fallback. */
846
+ scrollTimeline(kind?: "view" | "scroll"): this;
847
+ scrollProgress(): this;
848
+ smoothScroll(): this;
849
+ scrollSnap(axis?: "x" | "y" | "both"): this;
850
+ scrollSnapAlign(align?: "start" | "center" | "end"): this;
851
+ sticky(top?: number | string | boolean): this;
852
+ /**
853
+ * Publish `--fibo-sticky-offset` on `:root` so `.anchor()` / `html` scroll-padding
854
+ * clear this bar. Header uses the real bar height.
855
+ */
856
+ protected publishStickyOffset(value: number | string): void;
857
+ viewTransition(name: string): this;
858
+ /** Default `:focus-visible` ring. Pass a callback to customize. */
859
+ focusRing(color?: string): this;
860
+ protected ensureInteractiveTransition(): void;
861
+ /**
862
+ * Prepare resting styles + transition so pseudo-state longhands (bg/border/transform)
863
+ * interpolate instead of snapping. Safe to call repeatedly from PseudoStateBuilder.
864
+ * @internal
865
+ */
866
+ prepareSmoothInteraction(properties: string[]): void;
867
+ /** @internal Convert inline background/border shorthands → longhands. */
868
+ promoteSurfaceLonghands(): void;
869
+ /** @internal Stamp translate3d(0,0,0) when no resting transform exists. */
870
+ ensureRestTransform(): void;
871
+ /**
872
+ * Ensure the base element transitions the properties an interaction effect needs.
873
+ * Expands an auto-managed transition; no-ops if the caller set `.transition(...)`
874
+ * explicitly or a motion animation class is present.
875
+ * @internal Used by PseudoStateBuilder.effect() and hover/press shortcuts.
876
+ */
877
+ ensureEffectTransition(properties: string[]): void;
878
+ /**
879
+ * Apply a theme to this node and descendants (CSS vars inherit).
880
+ * Fluent: `.theme("noir")` | `.theme(noirTheme)` | `.theme(extendTheme(webTheme, {…}))`.
881
+ * SSR-safe: class + inline vars on first paint (no useEffect).
882
+ */
883
+ theme(input: ThemeInput): this;
884
+ /** Prefer dark/light system chrome for native controls under this subtree. */
885
+ colorScheme(scheme: "light" | "dark" | "light dark"): this;
886
+ hover(): PseudoStateBuilder;
887
+ hover(callback: PseudoStateFn): this;
888
+ /**
889
+ * Paint for a `When` state. Hover / focus / active / visited / disabled
890
+ * write a CSS pseudo on this node. `on` / `off` are for Checkbox and Switch.
891
+ *
892
+ * ```ts
893
+ * Row().when(When.hover, (s) => s.bg('#c8ff00'))
894
+ * ```
895
+ */
896
+ when(state: When, style: WhenStyle): this;
897
+ focus(): PseudoStateBuilder;
898
+ focus(callback: PseudoStateFn): this;
899
+ active(): PseudoStateBuilder;
900
+ active(callback: PseudoStateFn): this;
901
+ visited(): PseudoStateBuilder;
902
+ visited(callback: PseudoStateFn): this;
903
+ disabledState(): PseudoStateBuilder;
904
+ disabledState(callback: PseudoStateFn): this;
905
+ focusWithin(): PseudoStateBuilder;
906
+ focusWithin(callback: PseudoStateFn): this;
907
+ firstChild(): PseudoStateBuilder;
908
+ firstChild(callback: PseudoStateFn): this;
909
+ lastChild(): PseudoStateBuilder;
910
+ lastChild(callback: PseudoStateFn): this;
911
+ groupHover(): PseudoStateBuilder;
912
+ groupHover(callback: PseudoStateFn): this;
913
+ groupFocus(): PseudoStateBuilder;
914
+ groupFocus(callback: PseudoStateFn): this;
915
+ groupActive(): PseudoStateBuilder;
916
+ groupActive(callback: PseudoStateFn): this;
917
+ groupFocusWithin(): PseudoStateBuilder;
918
+ groupFocusWithin(callback: PseudoStateFn): this;
919
+ group(): this;
920
+ protected _childFunction?: () => FiboChild | FiboChild[];
921
+ children(children: FiboChildren): this;
922
+ protected getClassName(): string;
923
+ protected getStyle(): React$1.CSSProperties;
924
+ protected processChildren(): React$1.ReactNode[];
925
+ protected getChildFunction(): (() => FiboChild | FiboChild[]) | undefined;
926
+ /**
927
+ * @deprecated Builders are React elements. Returning or nesting the builder is enough.
928
+ * `.build()` still assembles the host tree for older call sites.
929
+ */
930
+ abstract build(): React$1.ReactElement;
931
+ }
932
+ type KnownKeys<T> = {
933
+ [K in keyof T]: string extends K ? never : number extends K ? never : K;
934
+ } extends {
935
+ [_ in keyof T]: infer U;
936
+ } ? U : never;
937
+ type StyleBuilder<T> = T & LogicalAxes & {
938
+ [K in KnownKeys<React$1.CSSProperties>]-?: (value: React$1.CSSProperties[K]) => StyleBuilder<T>;
939
+ } & React$1.ReactElement;
940
+ declare class CenterBuilder extends FiboBuilder {
941
+ children(children: FiboChildren): this;
942
+ props(value: Record<string, any>): this;
943
+ build(): React$1.ReactElement;
944
+ }
945
+ export declare const Center: () => StyleBuilder<CenterBuilder>;
946
+ declare class ColumnBuilder extends FiboBuilder {
947
+ private _mainAxisAlignment;
948
+ private _crossAxisAlignment;
949
+ private _spacing?;
950
+ private _size?;
951
+ children(children: FiboChildren): this;
952
+ props(value: Record<string, any>): this;
953
+ mainAxisAlignment(alignment: MainAxisAlignment): this;
954
+ crossAxisAlignment(alignment: CrossAxisAlignment): this;
955
+ /** Horizontal screen axis → cross axis on a Column. */
956
+ alignX(alignment: AlignAxis): this;
957
+ /** Vertical screen axis → main axis on a Column. */
958
+ alignY(alignment: AlignAxis): this;
959
+ spacing(value: string | number): this;
960
+ size(size: "small" | "medium" | "large"): this;
961
+ build(): React$1.ReactElement;
962
+ }
963
+ export declare const Column: () => StyleBuilder<ColumnBuilder>;
964
+ declare class ContainerBuilder extends FiboBuilder {
965
+ private _userPad;
966
+ children(children: FiboChildren): this;
967
+ props(value: Record<string, any>): this;
968
+ padding(value: string | number): this;
969
+ paddingHorizontal(value: string | number): this;
970
+ paddingVertical(value: string | number): this;
971
+ paddingLeft(value: string | number): this;
972
+ paddingRight(value: string | number): this;
973
+ paddingTop(value: string | number): this;
974
+ paddingBottom(value: string | number): this;
975
+ build(): React$1.ReactElement;
976
+ }
977
+ export declare const Container: () => StyleBuilder<ContainerBuilder>;
978
+ declare class RowBuilder extends FiboBuilder {
979
+ private _mainAxisAlignment;
980
+ private _crossAxisAlignment;
981
+ children(children: FiboChildren): this;
982
+ props(value: Record<string, any>): this;
983
+ mainAxisAlignment(alignment: MainAxisAlignment): this;
984
+ crossAxisAlignment(alignment: CrossAxisAlignment): this;
985
+ /** Horizontal screen axis → main axis on a Row. */
986
+ alignX(alignment: AlignAxis): this;
987
+ /** Vertical screen axis → cross axis on a Row. */
988
+ alignY(alignment: AlignAxis): this;
989
+ spacing(value: string | number): this;
990
+ items(children: React$1.ReactElement[]): this;
991
+ build(): React$1.ReactElement;
992
+ }
993
+ export declare const Row: () => StyleBuilder<RowBuilder>;
994
+ declare class SpacerBuilder extends FiboBuilder {
995
+ private _height?;
996
+ private _width?;
997
+ private _grow?;
998
+ private _expand?;
999
+ height(value: string | number): this;
1000
+ width(value: string | number): this;
1001
+ vertical(): this;
1002
+ horizontal(): this;
1003
+ /** Grow factor inside a Row or Column. Does not turn the spacer into a flex container. */
1004
+ flex(value?: number | string): this;
1005
+ build(): React$1.ReactElement;
1006
+ }
1007
+ export declare const Spacer: () => StyleBuilder<SpacerBuilder>;
1008
+ type FabAt = "start" | "center" | "end" | "startTop" | "centerTop" | "endTop" | "startDock" | "centerDock" | "endDock";
1009
+ interface LayoutBarConfig {
1010
+ fixed?: boolean;
1011
+ children: FiboChildren;
1012
+ }
1013
+ interface ScaffoldStructure {
1014
+ header?: {
1015
+ position?: "static" | "sticky" | "fixed";
1016
+ height?: string | number;
1017
+ visible?: boolean;
1018
+ };
1019
+ footer?: {
1020
+ position?: "static" | "sticky" | "fixed";
1021
+ height?: string | number;
1022
+ visible?: boolean;
1023
+ };
1024
+ sidebarLeft?: {
1025
+ behavior?: "fixed" | "scroll";
1026
+ mode?: "side" | "over";
1027
+ width?: string | number;
1028
+ visible?: boolean;
1029
+ fullHeight?: boolean;
1030
+ };
1031
+ sidebarRight?: {
1032
+ behavior?: "fixed" | "scroll";
1033
+ mode?: "side" | "over";
1034
+ width?: string | number;
1035
+ visible?: boolean;
1036
+ fullHeight?: boolean;
1037
+ };
1038
+ }
1039
+ declare class ScaffoldBuilder extends FiboBuilder {
1040
+ private _locale?;
1041
+ private _customProviders;
1042
+ private _structure;
1043
+ private _headerBar?;
1044
+ private _footerBar?;
1045
+ private _sideBarLeft?;
1046
+ private _sideBarRight?;
1047
+ private _drawer?;
1048
+ private _endDrawer?;
1049
+ private _drawerWidth;
1050
+ private _fab?;
1051
+ private _fabAt;
1052
+ private _bottomSheet?;
1053
+ private _footerButtons?;
1054
+ private _extendBody;
1055
+ private _extendBehindHeader;
1056
+ private _avoidKeyboard;
1057
+ private _onDrawer?;
1058
+ children(children: FiboChildren): this;
1059
+ props(value: Record<string, any>): this;
1060
+ locale(locale: string): this;
1061
+ providers(providers: Record<string, any>): this;
1062
+ provider(key: string, value: any): this;
1063
+ structure(config: ScaffoldStructure): this;
1064
+ headerBar(config: FiboChild | LayoutBarConfig): this;
1065
+ /** Flutter `Scaffold.appBar`. Same slot as `.headerBar()`. */
1066
+ appBar(config: FiboChild | LayoutBarConfig): this;
1067
+ footerBar(config: FiboChild | LayoutBarConfig): this;
1068
+ sideBarLeft(config: FiboChild | LayoutBarConfig): this;
1069
+ sideBarRight(config: FiboChild | LayoutBarConfig): this;
1070
+ /** Flutter drawer. Starts closed. Open it with `useScaffold().openDrawer()`. */
1071
+ drawer(child: FiboChild): this;
1072
+ /** Flutter endDrawer. */
1073
+ endDrawer(child: FiboChild): this;
1074
+ drawerWidth(px: number): this;
1075
+ /** Flutter floatingActionButton. */
1076
+ fab(child: FiboChild): this;
1077
+ /** Where the button sits. Dock locations overlap the footer. */
1078
+ fabAt(location: FabAt): this;
1079
+ /** Flutter bottomSheet. Hidden until `useScaffold().showSheet()`. */
1080
+ bottomSheet(child: FiboChild): this;
1081
+ /** Flutter persistentFooterButtons. */
1082
+ footerButtons(children: FiboChildren): this;
1083
+ /** Body draws under the footer. */
1084
+ extendBody(on?: boolean): this;
1085
+ /** Body draws under the header. */
1086
+ extendBehindHeader(on?: boolean): this;
1087
+ /** Lift the page above the keyboard. On by default. */
1088
+ avoidKeyboard(on?: boolean): this;
1089
+ onDrawer(handler: (side: "start" | "end", open: boolean) => void): this;
1090
+ private _bindBar;
1091
+ private _normalizeBar;
1092
+ private _isLayoutBarConfig;
1093
+ build(): React$1.ReactElement;
1094
+ }
1095
+ export declare const Scaffold: () => StyleBuilder<ScaffoldBuilder>;
1096
+ declare class HeaderBuilder extends FiboBuilder {
1097
+ private _height;
1098
+ private _sticky;
1099
+ private _stickyTop;
1100
+ private _stickyStamp;
1101
+ private _leading?;
1102
+ private _trailing?;
1103
+ private _title?;
1104
+ private static unstickSeq;
1105
+ children(children: FiboChildren): this;
1106
+ props(value: Record<string, any>): this;
1107
+ leading(node: FiboChild): this;
1108
+ trailing(node: FiboChild): this;
1109
+ title(value: string | FiboChild): this;
1110
+ height(height: number | string): this;
1111
+ sticky(enable?: boolean | number | string): this;
1112
+ private dropStickyStamp;
1113
+ private syncStickyOffset;
1114
+ build(): React$1.ReactElement;
1115
+ }
1116
+ export declare const Header: () => StyleBuilder<HeaderBuilder>;
1117
+ declare class SidebarBuilder extends FiboBuilder {
1118
+ private _width;
1119
+ private _collapsed;
1120
+ width(width: number | string): this;
1121
+ collapsible(collapsed?: boolean): this;
1122
+ children(children: FiboChildren): this;
1123
+ props(value: Record<string, any>): this;
1124
+ build(): React$1.ReactElement;
1125
+ }
1126
+ export declare const Sidebar: () => StyleBuilder<SidebarBuilder>;
1127
+ declare class DashboardLayoutBuilder extends FiboBuilder {
1128
+ private _sidebar?;
1129
+ private _header?;
1130
+ children(children: FiboChildren): this;
1131
+ props(value: Record<string, any>): this;
1132
+ sidebar(component: FiboChild): this;
1133
+ header(component: FiboChild): this;
1134
+ build(): React$1.ReactElement;
1135
+ }
1136
+ export declare const DashboardLayout: () => StyleBuilder<DashboardLayoutBuilder>;
1137
+ declare class ZStackBuilder extends FiboBuilder {
1138
+ private _alignment;
1139
+ children(children: FiboChildren): this;
1140
+ props(value: Record<string, any>): this;
1141
+ alignment(align: "center" | "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight"): this;
1142
+ build(): React$1.ReactElement;
1143
+ }
1144
+ export declare const ZStack: () => StyleBuilder<ZStackBuilder>;
1145
+ declare class LineBuilder extends FiboBuilder {
1146
+ private _sizeHeight?;
1147
+ children(children: FiboChildren): this;
1148
+ props(value: Record<string, any>): this;
1149
+ sizeHeight(value: string): this;
1150
+ /** Separator axis. `vertical` paints a 1px column rule. */
1151
+ direction(value: "horizontal" | "vertical"): this;
1152
+ build(): React$1.ReactElement;
1153
+ }
1154
+ export declare const Line: () => StyleBuilder<LineBuilder>;
1155
+ /** Flutter-style handle for a mounted ScrollView — no document.querySelector. */
1156
+ export declare class ScrollController {
1157
+ private _node;
1158
+ /** @internal Attached by ScrollView on mount. */
1159
+ attach(node: HTMLElement | null): void;
1160
+ get node(): HTMLElement | null;
1161
+ /** Prefer the inner strip so wrapping for overflow does not count as a slide. */
1162
+ private itemHost;
1163
+ private alive;
1164
+ scrollBy(options: ScrollToOptions): void;
1165
+ scrollTo(options: ScrollToOptions): void;
1166
+ /** Prefer overflow styles (direction) over whether content currently overflows. */
1167
+ private scrollAxis;
1168
+ /**
1169
+ * Carousel step: scroll by the first child's outer width (+ gap).
1170
+ * Prefer this over measuring in app code.
1171
+ */
1172
+ scrollByChild(dir?: -1 | 1, gap?: number): void;
1173
+ scrollToChild(index: number, gap?: number): void;
1174
+ }
1175
+ type ScrollDirection = "vertical" | "horizontal" | "both";
1176
+ type ScrollbarVisibility = "hidden" | "visible" | "auto";
1177
+ type ScrollAnchor = "start" | "center" | "end";
1178
+ declare class ScrollViewBuilder extends FiboBuilder {
1179
+ private _direction;
1180
+ private _scrollbar;
1181
+ private _controller?;
1182
+ private _anchor?;
1183
+ private _refresh?;
1184
+ children(children: FiboChildren): this;
1185
+ props(value: Record<string, any>): this;
1186
+ direction(direction: ScrollDirection): this;
1187
+ horizontal(): this;
1188
+ vertical(): this;
1189
+ scrollbar(visibility: ScrollbarVisibility): this;
1190
+ /** Attach a ScrollController for programmatic scroll (carousel prev/next). */
1191
+ controller(controller: ScrollController): this;
1192
+ scrollAnchor(anchor: ScrollAnchor): this;
1193
+ refreshable(handler: () => void): this;
1194
+ /**
1195
+ * Native scroll listener on the overflow host.
1196
+ * String presets still alias `.reveal()` from FiboBuilder.
1197
+ */
1198
+ onScroll(preset?: string): this;
1199
+ onScroll(handler: (event: React$1.UIEvent<HTMLDivElement>) => void): this;
1200
+ build(): React$1.ReactElement;
1201
+ }
1202
+ export declare const ScrollView: () => StyleBuilder<ScrollViewBuilder>;
1203
+ declare class VirtualColumnBuilder extends FiboBuilder {
1204
+ private _itemHeight?;
1205
+ private _estimatedItemHeight?;
1206
+ private _measureItems;
1207
+ private _overscan;
1208
+ private _containerHeight;
1209
+ itemHeight(height: number): this;
1210
+ estimatedItemHeight(height: number): this;
1211
+ measureItems(measure?: boolean): this;
1212
+ overscan(count: number): this;
1213
+ containerHeight(height: number): this;
1214
+ build(): React$1.ReactElement;
1215
+ }
1216
+ export declare const VirtualColumn: () => StyleBuilder<VirtualColumnBuilder>;
1217
+
1218
+ export {};