fiboui 2.8.5 → 2.9.0
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-BzMPiV64.js → client-3NdKI2xE.js} +7296 -4714
- package/dist/content.d.ts +364 -7
- package/dist/content.js +8 -8
- package/dist/core.d.ts +353 -1
- package/dist/core.js +2 -2
- package/dist/{icons-aP7ZHyqh.js → icons-DS8J4SFk.js} +83 -75
- package/dist/{index-Dd48Ov9N.js → index-B6F3yf3H.js} +10 -10
- package/dist/{index-DU4n9axe.js → index-BLEG6Nql.js} +1 -1
- package/dist/{index-B9YuBkEv.js → index-BaTO66yA.js} +22 -22
- package/dist/index-FuD1J3Qo.js +785 -0
- package/dist/{index-DWBoYvko.js → index-I-MXiId0.js} +7 -7
- package/dist/index.d.ts +1978 -1163
- package/dist/index.js +1144 -1065
- package/dist/interactive.d.ts +353 -1
- package/dist/interactive.js +15 -15
- package/dist/layout.d.ts +464 -2
- package/dist/layout.js +21 -17
- package/dist/{metadata-B5v6sx60.js → metadata-B2MRlDTz.js} +23 -23
- package/dist/navigation.js +6 -6
- package/dist/{page-CHjFSSAF.js → page-xwU8SnoZ.js} +36 -36
- package/dist/server.d.ts +361 -1
- package/dist/server.js +3793 -2400
- package/dist/structure.d.ts +353 -1
- package/dist/structure.js +4 -4
- package/dist/style.css +1 -1
- package/dist/theme.js +3 -3
- package/package.json +1 -1
- package/dist/index-Bgt9DiVJ.js +0 -839
package/dist/interactive.d.ts
CHANGED
|
@@ -92,7 +92,27 @@ declare class Observable<T> implements Subscribable<T> {
|
|
|
92
92
|
unsubscribeEffect(effect: Effect): void;
|
|
93
93
|
private notify;
|
|
94
94
|
}
|
|
95
|
+
type GestureMask = "all" | "gesture" | "subviews" | "none";
|
|
96
|
+
type TapLocation = {
|
|
97
|
+
x: number;
|
|
98
|
+
y: number;
|
|
99
|
+
};
|
|
95
100
|
declare abstract class GestureBuilder {
|
|
101
|
+
protected _enabled: boolean;
|
|
102
|
+
protected _including: GestureMask;
|
|
103
|
+
/** When true, wrappers must not stopPropagation (simultaneous). */
|
|
104
|
+
protected _bubble: boolean;
|
|
105
|
+
/** @internal Fired when the gesture successfully recognizes (Sequence / Exclusive). */
|
|
106
|
+
protected _onRecognized?: () => void;
|
|
107
|
+
enabled(value?: boolean): this;
|
|
108
|
+
/** SwiftUI `gesture(_:including:)`. */
|
|
109
|
+
including(mask: GestureMask): this;
|
|
110
|
+
/** Internal — set by SimultaneousGesture / `.simultaneousGesture`. */
|
|
111
|
+
bubble(value?: boolean): this;
|
|
112
|
+
/** @internal Used by SequenceGesture / ExclusiveGesture. */
|
|
113
|
+
onRecognized(callback: () => void): this;
|
|
114
|
+
/** @internal */
|
|
115
|
+
protected notifyRecognized(): void;
|
|
96
116
|
abstract wrap(children: React$1.ReactNode): React$1.ReactNode;
|
|
97
117
|
}
|
|
98
118
|
interface AnimationOptions {
|
|
@@ -321,6 +341,144 @@ declare const When: {
|
|
|
321
341
|
};
|
|
322
342
|
type When = (typeof When)[keyof typeof When];
|
|
323
343
|
type WhenStyle = React$1.CSSProperties | string | ((builder: any) => void);
|
|
344
|
+
declare const Size: {
|
|
345
|
+
readonly full: "full";
|
|
346
|
+
readonly screen: "screen";
|
|
347
|
+
readonly fit: "fit";
|
|
348
|
+
readonly min: "min";
|
|
349
|
+
readonly max: "max";
|
|
350
|
+
/** SwiftUI `.infinity` — expand to the space the parent proposes (`100%`). */
|
|
351
|
+
readonly infinity: "infinity";
|
|
352
|
+
};
|
|
353
|
+
type Size = (typeof Size)[keyof typeof Size];
|
|
354
|
+
declare const StackAlign: {
|
|
355
|
+
readonly center: "center";
|
|
356
|
+
readonly top: "top";
|
|
357
|
+
readonly bottom: "bottom";
|
|
358
|
+
readonly left: "left";
|
|
359
|
+
readonly right: "right";
|
|
360
|
+
readonly topLeft: "topLeft";
|
|
361
|
+
readonly topRight: "topRight";
|
|
362
|
+
readonly bottomLeft: "bottomLeft";
|
|
363
|
+
readonly bottomRight: "bottomRight";
|
|
364
|
+
/** SwiftUI `leading` → `left` */
|
|
365
|
+
readonly leading: "left";
|
|
366
|
+
/** SwiftUI `trailing` → `right` */
|
|
367
|
+
readonly trailing: "right";
|
|
368
|
+
/** SwiftUI `topLeading` → `topLeft` */
|
|
369
|
+
readonly topLeading: "topLeft";
|
|
370
|
+
/** SwiftUI `topTrailing` → `topRight` */
|
|
371
|
+
readonly topTrailing: "topRight";
|
|
372
|
+
/** SwiftUI `bottomLeading` → `bottomLeft` */
|
|
373
|
+
readonly bottomLeading: "bottomLeft";
|
|
374
|
+
/** SwiftUI `bottomTrailing` → `bottomRight` */
|
|
375
|
+
readonly bottomTrailing: "bottomRight";
|
|
376
|
+
};
|
|
377
|
+
type StackAlign = (typeof StackAlign)[keyof typeof StackAlign];
|
|
378
|
+
type FrameSize = number | string | Size;
|
|
379
|
+
interface FrameSpec {
|
|
380
|
+
width?: FrameSize;
|
|
381
|
+
height?: FrameSize;
|
|
382
|
+
minWidth?: FrameSize;
|
|
383
|
+
idealWidth?: FrameSize;
|
|
384
|
+
maxWidth?: FrameSize;
|
|
385
|
+
minHeight?: FrameSize;
|
|
386
|
+
idealHeight?: FrameSize;
|
|
387
|
+
maxHeight?: FrameSize;
|
|
388
|
+
alignment?: StackAlign | keyof typeof StackAlign;
|
|
389
|
+
}
|
|
390
|
+
type ClipShapeName = "circle" | "rounded" | "square";
|
|
391
|
+
interface OffsetSpec {
|
|
392
|
+
x?: number;
|
|
393
|
+
y?: number;
|
|
394
|
+
}
|
|
395
|
+
interface FixedSizeSpec {
|
|
396
|
+
horizontal?: boolean;
|
|
397
|
+
vertical?: boolean;
|
|
398
|
+
}
|
|
399
|
+
interface LayerSpec {
|
|
400
|
+
kind: "overlay" | "background";
|
|
401
|
+
child: FiboChild | (() => FiboChild);
|
|
402
|
+
alignment: StackAlign | keyof typeof StackAlign;
|
|
403
|
+
}
|
|
404
|
+
type ContentShapeName = "rectangle" | ClipShapeName;
|
|
405
|
+
type GeometryRect = {
|
|
406
|
+
x: number;
|
|
407
|
+
y: number;
|
|
408
|
+
width: number;
|
|
409
|
+
height: number;
|
|
410
|
+
};
|
|
411
|
+
type ContainerRelativeFrameSpec = {
|
|
412
|
+
axis?: "horizontal" | "vertical" | "both";
|
|
413
|
+
/** Divisions of the container (SwiftUI `count`). Default 1. */
|
|
414
|
+
count?: number;
|
|
415
|
+
/** Spans claimed (SwiftUI `span`). Default 1. */
|
|
416
|
+
span?: number;
|
|
417
|
+
};
|
|
418
|
+
type AlignmentGuideName = "leading" | "trailing" | "top" | "bottom" | "centerX" | "centerY" | string;
|
|
419
|
+
type AlignmentGuideDims = {
|
|
420
|
+
width: number;
|
|
421
|
+
height: number;
|
|
422
|
+
};
|
|
423
|
+
type AlignmentGuideSpec = {
|
|
424
|
+
guide: AlignmentGuideName;
|
|
425
|
+
/** Absolute guide position, or compute from own size (SwiftUI `ViewDimensions`). */
|
|
426
|
+
compute: number | ((dims: AlignmentGuideDims) => number);
|
|
427
|
+
};
|
|
428
|
+
type MatchedGeometrySpec = {
|
|
429
|
+
id: string;
|
|
430
|
+
namespace?: string;
|
|
431
|
+
/** SwiftUI `isSource` — source owns the shared geometry. Default true. */
|
|
432
|
+
isSource?: boolean;
|
|
433
|
+
};
|
|
434
|
+
type PreferenceKeyDef<T> = {
|
|
435
|
+
readonly __preferenceKey: true;
|
|
436
|
+
readonly id: string | symbol;
|
|
437
|
+
readonly defaultValue: T;
|
|
438
|
+
reduce: (value: T, nextValue: T) => T;
|
|
439
|
+
};
|
|
440
|
+
type PreferenceWriteSpec = {
|
|
441
|
+
key: PreferenceKeyDef<any>;
|
|
442
|
+
value: unknown;
|
|
443
|
+
};
|
|
444
|
+
type PreferenceReadSpec = {
|
|
445
|
+
key: PreferenceKeyDef<any>;
|
|
446
|
+
onChange: (value: any) => void;
|
|
447
|
+
};
|
|
448
|
+
declare const Edge: {
|
|
449
|
+
readonly top: "top";
|
|
450
|
+
readonly bottom: "bottom";
|
|
451
|
+
readonly leading: "leading";
|
|
452
|
+
readonly trailing: "trailing";
|
|
453
|
+
};
|
|
454
|
+
type Edge = (typeof Edge)[keyof typeof Edge];
|
|
455
|
+
declare const EdgeSet: {
|
|
456
|
+
readonly top: "top";
|
|
457
|
+
readonly bottom: "bottom";
|
|
458
|
+
readonly leading: "leading";
|
|
459
|
+
readonly trailing: "trailing";
|
|
460
|
+
readonly horizontal: "horizontal";
|
|
461
|
+
readonly vertical: "vertical";
|
|
462
|
+
readonly all: "all";
|
|
463
|
+
};
|
|
464
|
+
type EdgeSet = (typeof EdgeSet)[keyof typeof EdgeSet];
|
|
465
|
+
type EdgeInsetsValue = {
|
|
466
|
+
top?: number | string;
|
|
467
|
+
bottom?: number | string;
|
|
468
|
+
leading?: number | string;
|
|
469
|
+
trailing?: number | string;
|
|
470
|
+
/** CSS left — alias of leading in LTR */
|
|
471
|
+
left?: number | string;
|
|
472
|
+
/** CSS right — alias of trailing in LTR */
|
|
473
|
+
right?: number | string;
|
|
474
|
+
};
|
|
475
|
+
type SafeAreaInsetEdge = Edge | "top" | "bottom" | "leading" | "trailing" | "left" | "right";
|
|
476
|
+
type SafeAreaInsetSpec = {
|
|
477
|
+
edge: SafeAreaInsetEdge;
|
|
478
|
+
content: FiboChild | (() => FiboChild);
|
|
479
|
+
/** Gap between inset bar and content. Default 0. */
|
|
480
|
+
spacing?: number;
|
|
481
|
+
};
|
|
324
482
|
interface SpringOptions {
|
|
325
483
|
stiffness?: number;
|
|
326
484
|
damping?: number;
|
|
@@ -530,7 +688,29 @@ declare abstract class FiboBuilder {
|
|
|
530
688
|
/** @internal Direct `method(signal.value)` calls replayed when that signal changes. */
|
|
531
689
|
protected _replays: Array<() => void>;
|
|
532
690
|
protected _isObserver: boolean;
|
|
533
|
-
|
|
691
|
+
/** Normal-priority gestures (SwiftUI `.gesture`). Last = outermost. */
|
|
692
|
+
protected _gestures: GestureBuilder[];
|
|
693
|
+
/** SwiftUI `.simultaneousGesture` — bubble / no stopPropagation. */
|
|
694
|
+
protected _simultaneousGestures: GestureBuilder[];
|
|
695
|
+
/** SwiftUI `.highPriorityGesture` — wrapped last (outermost / capture wins). */
|
|
696
|
+
protected _highPriorityGestures: GestureBuilder[];
|
|
697
|
+
protected _offset?: OffsetSpec;
|
|
698
|
+
protected _clipped: boolean;
|
|
699
|
+
protected _clipShape?: ClipShapeName | string;
|
|
700
|
+
protected _contentShape?: ContentShapeName | string;
|
|
701
|
+
protected _fixedSize?: FixedSizeSpec;
|
|
702
|
+
protected _layoutPriority?: number;
|
|
703
|
+
protected _layers: LayerSpec[];
|
|
704
|
+
protected _onGeometryChange?: (rect: GeometryRect) => void;
|
|
705
|
+
protected _compositingGroup: boolean;
|
|
706
|
+
protected _viewMask?: string;
|
|
707
|
+
protected _containerRelativeFrame?: ContainerRelativeFrameSpec;
|
|
708
|
+
protected _alignmentGuide?: AlignmentGuideSpec;
|
|
709
|
+
protected _matchedGeometry?: MatchedGeometrySpec;
|
|
710
|
+
protected _preferences: PreferenceWriteSpec[];
|
|
711
|
+
protected _preferenceReaders: PreferenceReadSpec[];
|
|
712
|
+
protected _safeAreaInsets: SafeAreaInsetSpec[];
|
|
713
|
+
protected _navigationTitle?: string;
|
|
534
714
|
protected _animationConfig?: Partial<AnimationOptions>;
|
|
535
715
|
protected _animatedProps: Map<string, Signal<any>>;
|
|
536
716
|
protected _transforms: string[];
|
|
@@ -559,6 +739,11 @@ declare abstract class FiboBuilder {
|
|
|
559
739
|
protected _explicitScrollMargin: boolean;
|
|
560
740
|
/** Shrink-wrap: skip the default `w-full` / `self-stretch` on Row and Column. */
|
|
561
741
|
protected _hug: boolean;
|
|
742
|
+
/**
|
|
743
|
+
* SwiftUI `.frame(...)` wrappers (outer → inner order of application).
|
|
744
|
+
* Applied in `assembleBuilder` so every widget gets the same DX.
|
|
745
|
+
*/
|
|
746
|
+
protected _frames: FrameSpec[];
|
|
562
747
|
/**
|
|
563
748
|
* Unset every CSS property on this component and what it renders inside.
|
|
564
749
|
* Chain `.style()`, `.px()`, `.flex()` and the rest after this to put back only what you want.
|
|
@@ -570,6 +755,109 @@ declare abstract class FiboBuilder {
|
|
|
570
755
|
protected isReset(): boolean;
|
|
571
756
|
hug(): this;
|
|
572
757
|
protected isHug(): boolean;
|
|
758
|
+
/**
|
|
759
|
+
* SwiftUI `View.frame` — invisible box around this view.
|
|
760
|
+
*
|
|
761
|
+
* ```ts
|
|
762
|
+
* Image(url).frame({ width: 300, height: 400 })
|
|
763
|
+
* Text('★★★★').frame({
|
|
764
|
+
* maxWidth: Size.infinity,
|
|
765
|
+
* maxHeight: Size.infinity,
|
|
766
|
+
* alignment: StackAlign.topTrailing,
|
|
767
|
+
* })
|
|
768
|
+
* ```
|
|
769
|
+
*
|
|
770
|
+
* Chainable: each `.frame()` wraps the previous (same as SwiftUI).
|
|
771
|
+
*/
|
|
772
|
+
frame(spec: FrameSpec): this;
|
|
773
|
+
/**
|
|
774
|
+
* SwiftUI `.offset(x:y:)` — visual translate; layout size stays.
|
|
775
|
+
* `.offset(8)` ≡ `{ x: 8, y: 8 }`; `.offset({ x: 4 })` only horizontal.
|
|
776
|
+
*/
|
|
777
|
+
offset(value: number | OffsetSpec): this;
|
|
778
|
+
/** SwiftUI `.clipped()` — overflow hidden to bounds. */
|
|
779
|
+
clipped(): this;
|
|
780
|
+
/**
|
|
781
|
+
* SwiftUI `.clipShape` — `'circle' | 'rounded' | 'square'` or any CSS radius
|
|
782
|
+
* (`'8px'`, `'50%'`). Clips drawing; hit-testing still follows layout unless
|
|
783
|
+
* you also set {@link contentShape}.
|
|
784
|
+
*/
|
|
785
|
+
clipShape(shape: ClipShapeName | string): this;
|
|
786
|
+
/**
|
|
787
|
+
* SwiftUI `.contentShape` — region used for hit-testing (tap / long-press).
|
|
788
|
+
* Default `'rectangle'` = full frame box, even over transparent pixels.
|
|
789
|
+
*
|
|
790
|
+
* ```ts
|
|
791
|
+
* ZStack()…frame({ width: 300, height: 400 })
|
|
792
|
+
* .clipShape('8px')
|
|
793
|
+
* .contentShape('rectangle')
|
|
794
|
+
* .onTapGesture(open)
|
|
795
|
+
* ```
|
|
796
|
+
*/
|
|
797
|
+
contentShape(shape?: ContentShapeName | string): this;
|
|
798
|
+
/**
|
|
799
|
+
* SwiftUI `.fixedSize(horizontal:vertical:)` — hug content on those axes.
|
|
800
|
+
* Defaults both axes when called with no args.
|
|
801
|
+
*/
|
|
802
|
+
fixedSize(spec?: FixedSizeSpec | boolean): this;
|
|
803
|
+
/**
|
|
804
|
+
* SwiftUI `.layoutPriority` — higher resists compression and claims free space.
|
|
805
|
+
* Web: flex-grow / flex-shrink (not a full multi-axis proposal solver).
|
|
806
|
+
*/
|
|
807
|
+
layoutPriority(value: number): this;
|
|
808
|
+
/** SwiftUI `.compositingGroup()`. */
|
|
809
|
+
compositingGroup(): this;
|
|
810
|
+
/** SwiftUI `.mask` — shape name or CSS mask-image value. */
|
|
811
|
+
mask(shapeOrCss: ClipShapeName | "rectangle" | string): this;
|
|
812
|
+
/** SwiftUI `containerRelativeFrame`. */
|
|
813
|
+
containerRelativeFrame(axis?: ContainerRelativeFrameSpec["axis"] | ContainerRelativeFrameSpec, count?: number, span?: number): this;
|
|
814
|
+
/**
|
|
815
|
+
* SwiftUI `alignmentGuide` — named guide + absolute value or compute from size.
|
|
816
|
+
* ```ts
|
|
817
|
+
* Text('Hi').alignmentGuide('leading', (d) => d.width / 2)
|
|
818
|
+
* ```
|
|
819
|
+
*/
|
|
820
|
+
alignmentGuide(guide: AlignmentGuideName, compute: number | ((dims: {
|
|
821
|
+
width: number;
|
|
822
|
+
height: number;
|
|
823
|
+
}) => number)): this;
|
|
824
|
+
/**
|
|
825
|
+
* SwiftUI `matchedGeometryEffect` — shared view-transition id + measured rect.
|
|
826
|
+
* ```ts
|
|
827
|
+
* Image(url).matchedGeometryEffect('hero', { namespace: 'gallery', isSource: true })
|
|
828
|
+
* ```
|
|
829
|
+
*/
|
|
830
|
+
matchedGeometryEffect(id: string, namespaceOrOpts?: string | {
|
|
831
|
+
namespace?: string;
|
|
832
|
+
isSource?: boolean;
|
|
833
|
+
}): this;
|
|
834
|
+
/** SwiftUI `.preference(key:value:)` — contribute upward to `.onPreferenceChange`. */
|
|
835
|
+
preference<T>(key: PreferenceKeyDef<T>, value: T): this;
|
|
836
|
+
/** SwiftUI `.onPreferenceChange` — reduce descendant preferences. */
|
|
837
|
+
onPreferenceChange<T>(key: PreferenceKeyDef<T>, onChange: (value: T) => void): this;
|
|
838
|
+
/**
|
|
839
|
+
* SwiftUI `.safeAreaInset(edge:)` — reserve a bar on one edge; content fills the rest.
|
|
840
|
+
* Distinct from `SafeArea` (notch padding) and `proxy.safeAreaInsets` (read-only).
|
|
841
|
+
*/
|
|
842
|
+
safeAreaInset(edge: SafeAreaInsetEdge, content: SafeAreaInsetSpec["content"], spacing?: number): this;
|
|
843
|
+
/**
|
|
844
|
+
* SwiftUI `.navigationTitle` — stores title for Scaffold (see `Scaffold.navigationTitle`).
|
|
845
|
+
* On non-Scaffold builders, sets `aria-label` / data attribute only (no extra chrome bar).
|
|
846
|
+
*/
|
|
847
|
+
navigationTitle(title: string): this;
|
|
848
|
+
/**
|
|
849
|
+
* SwiftUI `.overlay(alignment:) { }` — layer above this view.
|
|
850
|
+
* ```ts
|
|
851
|
+
* Image(url).overlay(Text('NEW'), StackAlign.topTrailing)
|
|
852
|
+
* ```
|
|
853
|
+
*/
|
|
854
|
+
overlay(child: FiboChild | (() => FiboChild), alignment?: StackAlign | keyof typeof StackAlign): this;
|
|
855
|
+
/**
|
|
856
|
+
* SwiftUI `.background(alignment:) { }` — layer behind this view.
|
|
857
|
+
*/
|
|
858
|
+
background(child: FiboChild | (() => FiboChild), alignment?: StackAlign | keyof typeof StackAlign): this;
|
|
859
|
+
/** SwiftUI `onGeometryChange` — fires on mount + resize. */
|
|
860
|
+
onGeometryChange(handler: (rect: GeometryRect) => void): this;
|
|
573
861
|
id(value: string): this;
|
|
574
862
|
/**
|
|
575
863
|
* Scroll target. Same as `.id()`, plus `scroll-margin-top` so the section
|
|
@@ -593,7 +881,18 @@ declare abstract class FiboBuilder {
|
|
|
593
881
|
private setBoxShorthand;
|
|
594
882
|
paddingHorizontal(value: string | number): this;
|
|
595
883
|
paddingVertical(value: string | number): this;
|
|
884
|
+
/**
|
|
885
|
+
* SwiftUI `.padding`:
|
|
886
|
+
* - `.padding(8)` — all sides
|
|
887
|
+
* - `.padding(EdgeSet.horizontal, 12)` — Edge.Set + value
|
|
888
|
+
* - `.padding({ top: 8, leading: 12 })` — EdgeInsets
|
|
889
|
+
*/
|
|
596
890
|
padding(value: string | number): this;
|
|
891
|
+
padding(edges: EdgeSet, value: string | number): this;
|
|
892
|
+
padding(insets: EdgeInsetsValue): this;
|
|
893
|
+
/** SwiftUI `.padding` with {@link EdgeSet} — alias clarity. */
|
|
894
|
+
/** @deprecated Prefer `.padding(EdgeSet, n)` — same implementation. */
|
|
895
|
+
paddingEdges(edges: EdgeSet, value: string | number): this;
|
|
597
896
|
marginHorizontal(value: string | number): this;
|
|
598
897
|
marginVertical(value: string | number): this;
|
|
599
898
|
margin(value: string | number): this;
|
|
@@ -703,6 +1002,9 @@ declare abstract class FiboBuilder {
|
|
|
703
1002
|
* (the Scaffold body) cannot divide the viewport across these children.
|
|
704
1003
|
* `400`, `'320px'`, `Size.full`, and `Space.md` all count. `flex(1)` afterwards
|
|
705
1004
|
* opts back into sharing space.
|
|
1005
|
+
*
|
|
1006
|
+
* Percentages / `auto` do not lock `min-*` — `minWidth: 100%` on a flex
|
|
1007
|
+
* child fights clamping and lets long text blow past the ZStack box.
|
|
706
1008
|
*/
|
|
707
1009
|
private lockAxis;
|
|
708
1010
|
width(value: string | number): this;
|
|
@@ -733,8 +1035,58 @@ declare abstract class FiboBuilder {
|
|
|
733
1035
|
translateX(value: Signal<number> | number): this;
|
|
734
1036
|
translateY(value: Signal<number> | number): this;
|
|
735
1037
|
scale(value: Signal<number> | number): this;
|
|
1038
|
+
/** SwiftUI `scaleEffect` — alias of {@link scale}. */
|
|
1039
|
+
scaleEffect(value: Signal<number> | number): this;
|
|
736
1040
|
rotate(degrees: Signal<number> | number): this;
|
|
1041
|
+
/** SwiftUI `rotationEffect` — alias of {@link rotate} (degrees). */
|
|
1042
|
+
rotationEffect(degrees: Signal<number> | number): this;
|
|
1043
|
+
/**
|
|
1044
|
+
* SwiftUI `.allowsHitTesting` — when `false`, this view and descendants
|
|
1045
|
+
* ignore pointer hits (`pointer-events: none`).
|
|
1046
|
+
*/
|
|
1047
|
+
allowsHitTesting(value?: boolean): this;
|
|
1048
|
+
/**
|
|
1049
|
+
* SwiftUI scroll target id — used by {@link ScrollViewReader} `.scrollTo(id)`.
|
|
1050
|
+
* Sets `data-scroll-id` on the host.
|
|
1051
|
+
*/
|
|
1052
|
+
scrollTarget(id: string): this;
|
|
1053
|
+
/**
|
|
1054
|
+
* SwiftUI: taps on *containers* (ZStack / Column / …) only hit drawn content
|
|
1055
|
+
* unless `.contentShape(Rectangle())` is set. We default that shape when the
|
|
1056
|
+
* first gesture is attached and the caller did not set one — same as the
|
|
1057
|
+
* usual SwiftUI fix, without forcing it on chrome-only views.
|
|
1058
|
+
*/
|
|
1059
|
+
protected ensureGestureContentShape(): void;
|
|
1060
|
+
/**
|
|
1061
|
+
* SwiftUI `.gesture` — attach Tap / LongPress / Drag / Magnify / Rotate / …
|
|
1062
|
+
* Chainable: each call wraps the previous (outermost = last).
|
|
1063
|
+
*/
|
|
737
1064
|
gesture(gesture: GestureBuilder): this;
|
|
1065
|
+
/** SwiftUI `.simultaneousGesture` — runs alongside other gestures (no steal). */
|
|
1066
|
+
simultaneousGesture(gesture: GestureBuilder): this;
|
|
1067
|
+
/** SwiftUI `.highPriorityGesture` — recognized before the view's own gestures. */
|
|
1068
|
+
highPriorityGesture(gesture: GestureBuilder): this;
|
|
1069
|
+
/**
|
|
1070
|
+
* Sugar for {@link TapGesture}`.onEnd(handler)`.
|
|
1071
|
+
* Note: `Button` / `List` / `ListTile` keep domain-specific `.onPress`.
|
|
1072
|
+
*/
|
|
1073
|
+
onPress(handler: () => void): this;
|
|
1074
|
+
/** Flutter-style alias of {@link onPress}. */
|
|
1075
|
+
onTap(handler: () => void): this;
|
|
1076
|
+
/**
|
|
1077
|
+
* SwiftUI `onTapGesture(count:perform:)` — default count 1.
|
|
1078
|
+
* Pass a location callback for SpatialTap behavior.
|
|
1079
|
+
*/
|
|
1080
|
+
onTapGesture(countOrHandler: number | ((location?: TapLocation) => void) | (() => void), handler?: ((location?: TapLocation) => void) | (() => void)): this;
|
|
1081
|
+
/**
|
|
1082
|
+
* SwiftUI `onLongPressGesture(minimumDuration:perform:onPressingChanged:)`.
|
|
1083
|
+
*/
|
|
1084
|
+
onLongPressGesture(handlerOrOpts: (() => void) | {
|
|
1085
|
+
minimumDuration?: number;
|
|
1086
|
+
maximumDistance?: number;
|
|
1087
|
+
perform: () => void;
|
|
1088
|
+
onPressingChanged?: (pressing: boolean) => void;
|
|
1089
|
+
}, onPressingChanged?: (pressing: boolean) => void): this;
|
|
738
1090
|
animation(config: Partial<AnimationOptions>): this;
|
|
739
1091
|
protected hasStateManagement(): boolean;
|
|
740
1092
|
className(className: string): this;
|
package/dist/interactive.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { B as e } from "./index-
|
|
2
|
-
import {
|
|
1
|
+
import { B as e } from "./index-I-MXiId0.js";
|
|
2
|
+
import { aA as r, aE as t, am as m, aB as x, aD as i, az as l, al as n, aC as u, ar as p, ay as h, an as T, ax as b, au as c, aq as d, at as f, ap as g, as as q, ao as B, av as C, aw as w } from "./client-3NdKI2xE.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Button,
|
|
5
5
|
r as Checkbox,
|
|
6
6
|
t as Combobox,
|
|
7
7
|
m as Form,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
x as RadioGroup,
|
|
9
|
+
i as Select,
|
|
10
10
|
l as Switch,
|
|
11
11
|
n as TextField,
|
|
12
12
|
u as Textarea,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
p as email,
|
|
14
|
+
h as equalTo,
|
|
15
|
+
T as formDataToValues,
|
|
16
|
+
b as integer,
|
|
17
|
+
c as max,
|
|
18
|
+
d as maxLength,
|
|
19
|
+
f as min,
|
|
20
|
+
g as minLength,
|
|
21
21
|
q as pattern,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
B as required,
|
|
23
|
+
C as rule,
|
|
24
|
+
w as url
|
|
25
25
|
};
|