@foldkit/ui 0.163.0 → 0.164.0-canary.c9c641bf8179

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.
Files changed (79) hide show
  1. package/dist/anchor/anchor.d.ts +33 -7
  2. package/dist/anchor/anchor.d.ts.map +1 -1
  3. package/dist/anchor/anchor.js +92 -14
  4. package/dist/anchor/public.d.ts +1 -1
  5. package/dist/anchor/public.d.ts.map +1 -1
  6. package/dist/anchor/public.js +1 -1
  7. package/dist/animation/index.d.ts +3 -0
  8. package/dist/animation/index.d.ts.map +1 -1
  9. package/dist/animation/schema.d.ts +13 -4
  10. package/dist/animation/schema.d.ts.map +1 -1
  11. package/dist/animation/schema.js +8 -4
  12. package/dist/animation/update.d.ts +15 -5
  13. package/dist/animation/update.d.ts.map +1 -1
  14. package/dist/animation/update.js +56 -28
  15. package/dist/combobox/multi.d.ts +5 -0
  16. package/dist/combobox/multi.d.ts.map +1 -1
  17. package/dist/combobox/shared.d.ts +19 -7
  18. package/dist/combobox/shared.d.ts.map +1 -1
  19. package/dist/combobox/shared.js +13 -13
  20. package/dist/combobox/single.d.ts +5 -0
  21. package/dist/combobox/single.d.ts.map +1 -1
  22. package/dist/datePicker/index.d.ts +13 -2
  23. package/dist/datePicker/index.d.ts.map +1 -1
  24. package/dist/dialog/index.d.ts +13 -2
  25. package/dist/dialog/index.d.ts.map +1 -1
  26. package/dist/dialog/index.js +22 -8
  27. package/dist/index.d.ts +2 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +2 -0
  30. package/dist/internal/accessibleName.d.ts +9 -0
  31. package/dist/internal/accessibleName.d.ts.map +1 -0
  32. package/dist/internal/accessibleName.js +12 -0
  33. package/dist/internal/range.d.ts +7 -0
  34. package/dist/internal/range.d.ts.map +1 -0
  35. package/dist/internal/range.js +12 -0
  36. package/dist/listbox/multi.d.ts +5 -0
  37. package/dist/listbox/multi.d.ts.map +1 -1
  38. package/dist/listbox/shared.d.ts +15 -4
  39. package/dist/listbox/shared.d.ts.map +1 -1
  40. package/dist/listbox/shared.js +12 -11
  41. package/dist/listbox/single.d.ts +5 -0
  42. package/dist/listbox/single.d.ts.map +1 -1
  43. package/dist/menu/index.d.ts +16 -4
  44. package/dist/menu/index.d.ts.map +1 -1
  45. package/dist/menu/index.js +12 -11
  46. package/dist/meter/index.d.ts +26 -0
  47. package/dist/meter/index.d.ts.map +1 -0
  48. package/dist/meter/index.js +67 -0
  49. package/dist/meter/public.d.ts +3 -0
  50. package/dist/meter/public.d.ts.map +1 -0
  51. package/dist/meter/public.js +1 -0
  52. package/dist/popover/index.d.ts +20 -4
  53. package/dist/popover/index.d.ts.map +1 -1
  54. package/dist/popover/index.js +8 -8
  55. package/dist/progress/index.d.ts +24 -0
  56. package/dist/progress/index.d.ts.map +1 -0
  57. package/dist/progress/index.js +85 -0
  58. package/dist/progress/public.d.ts +3 -0
  59. package/dist/progress/public.d.ts.map +1 -0
  60. package/dist/progress/public.js +1 -0
  61. package/dist/slider/index.d.ts +61 -28
  62. package/dist/slider/index.d.ts.map +1 -1
  63. package/dist/slider/index.js +157 -81
  64. package/dist/slider/public.d.ts +1 -1
  65. package/dist/slider/public.d.ts.map +1 -1
  66. package/dist/slider/public.js +1 -1
  67. package/dist/test/apps/disabledButton.d.ts +14 -6
  68. package/dist/test/apps/disabledButton.d.ts.map +1 -1
  69. package/dist/toast/index.d.ts +89 -44
  70. package/dist/toast/index.d.ts.map +1 -1
  71. package/dist/toast/schema.d.ts +15 -4
  72. package/dist/toast/schema.d.ts.map +1 -1
  73. package/dist/toast/test.d.ts +6 -0
  74. package/dist/toast/test.d.ts.map +1 -1
  75. package/dist/toast/test.js +36 -2
  76. package/dist/toast/update.d.ts +42 -2
  77. package/dist/toast/update.d.ts.map +1 -1
  78. package/dist/tooltip/tooltip.d.ts +7 -7
  79. package/package.json +9 -9
@@ -48,6 +48,7 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
48
48
  readonly id: Schema.String;
49
49
  readonly isShowing: Schema.Boolean;
50
50
  readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
51
+ readonly transitionGeneration: Schema.Number;
51
52
  }>;
52
53
  readonly maybeDuration: Schema.Option<Schema.DurationFromMillis>;
53
54
  readonly pendingDismissVersion: Schema.Number;
@@ -80,6 +81,7 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
80
81
  readonly id: Schema.String;
81
82
  readonly isShowing: Schema.Boolean;
82
83
  readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
84
+ readonly transitionGeneration: Schema.Number;
83
85
  }>;
84
86
  readonly maybeDuration: Schema.Option<Schema.DurationFromMillis>;
85
87
  readonly pendingDismissVersion: Schema.Number;
@@ -117,6 +119,7 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
117
119
  readonly id: Schema.String;
118
120
  readonly isShowing: Schema.Boolean;
119
121
  readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
122
+ readonly transitionGeneration: Schema.Number;
120
123
  }>;
121
124
  readonly maybeDuration: Schema.Option<Schema.DurationFromMillis>;
122
125
  readonly pendingDismissVersion: Schema.Number;
@@ -159,8 +162,12 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
159
162
  message: import("foldkit/message").MessageUnion<{
160
163
  readonly Showed: {};
161
164
  readonly Hid: {};
162
- readonly CompletedWaitForPaint: {};
163
- readonly EndedAnimation: {};
165
+ readonly CompletedWaitForPaint: {
166
+ generation: Schema.Number;
167
+ };
168
+ readonly EndedAnimation: {
169
+ generation: Schema.Number;
170
+ };
164
171
  }>;
165
172
  };
166
173
  readonly PressedEntryPointer: {
@@ -198,6 +205,7 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
198
205
  readonly id: Schema.String;
199
206
  readonly isShowing: Schema.Boolean;
200
207
  readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
208
+ readonly transitionGeneration: Schema.Number;
201
209
  }>;
202
210
  readonly maybeDuration: Schema.Option<Schema.DurationFromMillis>;
203
211
  readonly pendingDismissVersion: Schema.Number;
@@ -238,11 +246,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
238
246
  readonly id: string;
239
247
  readonly isShowing: boolean;
240
248
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
249
+ readonly transitionGeneration: number;
241
250
  };
242
251
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
243
252
  readonly pendingDismissVersion: number;
244
253
  readonly isHovered: boolean;
245
254
  readonly swipeState: {
255
+ readonly _tag: "Idle";
256
+ } | {
246
257
  readonly _tag: "Dismissing";
247
258
  readonly offsetX: number;
248
259
  readonly direction: "Left" | "Right";
@@ -251,8 +262,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
251
262
  readonly pointerId: number;
252
263
  readonly startX: number;
253
264
  readonly currentX: number;
254
- } | {
255
- readonly _tag: "Idle";
256
265
  } | {
257
266
  readonly _tag: "Settling";
258
267
  readonly offsetX: number;
@@ -276,11 +285,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
276
285
  readonly id: string;
277
286
  readonly isShowing: boolean;
278
287
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
288
+ readonly transitionGeneration: number;
279
289
  };
280
290
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
281
291
  readonly pendingDismissVersion: number;
282
292
  readonly isHovered: boolean;
283
293
  readonly swipeState: {
294
+ readonly _tag: "Idle";
295
+ } | {
284
296
  readonly _tag: "Dismissing";
285
297
  readonly offsetX: number;
286
298
  readonly direction: "Left" | "Right";
@@ -289,8 +301,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
289
301
  readonly pointerId: number;
290
302
  readonly startX: number;
291
303
  readonly currentX: number;
292
- } | {
293
- readonly _tag: "Idle";
294
304
  } | {
295
305
  readonly _tag: "Settling";
296
306
  readonly offsetX: number;
@@ -312,11 +322,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
312
322
  readonly id: string;
313
323
  readonly isShowing: boolean;
314
324
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
325
+ readonly transitionGeneration: number;
315
326
  };
316
327
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
317
328
  readonly pendingDismissVersion: number;
318
329
  readonly isHovered: boolean;
319
330
  readonly swipeState: {
331
+ readonly _tag: "Idle";
332
+ } | {
320
333
  readonly _tag: "Dismissing";
321
334
  readonly offsetX: number;
322
335
  readonly direction: "Left" | "Right";
@@ -325,8 +338,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
325
338
  readonly pointerId: number;
326
339
  readonly startX: number;
327
340
  readonly currentX: number;
328
- } | {
329
- readonly _tag: "Idle";
330
341
  } | {
331
342
  readonly _tag: "Settling";
332
343
  readonly offsetX: number;
@@ -353,8 +364,10 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
353
364
  readonly entryId: string;
354
365
  readonly message: {
355
366
  readonly _tag: "CompletedWaitForPaint";
367
+ readonly generation: number;
356
368
  } | {
357
369
  readonly _tag: "EndedAnimation";
370
+ readonly generation: number;
358
371
  } | {
359
372
  readonly _tag: "Hid";
360
373
  } | {
@@ -394,11 +407,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
394
407
  readonly id: string;
395
408
  readonly isShowing: boolean;
396
409
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
410
+ readonly transitionGeneration: number;
397
411
  };
398
412
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
399
413
  readonly pendingDismissVersion: number;
400
414
  readonly isHovered: boolean;
401
415
  readonly swipeState: {
416
+ readonly _tag: "Idle";
417
+ } | {
402
418
  readonly _tag: "Dismissing";
403
419
  readonly offsetX: number;
404
420
  readonly direction: "Left" | "Right";
@@ -407,8 +423,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
407
423
  readonly pointerId: number;
408
424
  readonly startX: number;
409
425
  readonly currentX: number;
410
- } | {
411
- readonly _tag: "Idle";
412
426
  } | {
413
427
  readonly _tag: "Settling";
414
428
  readonly offsetX: number;
@@ -431,11 +445,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
431
445
  readonly id: string;
432
446
  readonly isShowing: boolean;
433
447
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
448
+ readonly transitionGeneration: number;
434
449
  };
435
450
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
436
451
  readonly pendingDismissVersion: number;
437
452
  readonly isHovered: boolean;
438
453
  readonly swipeState: {
454
+ readonly _tag: "Idle";
455
+ } | {
439
456
  readonly _tag: "Dismissing";
440
457
  readonly offsetX: number;
441
458
  readonly direction: "Left" | "Right";
@@ -444,8 +461,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
444
461
  readonly pointerId: number;
445
462
  readonly startX: number;
446
463
  readonly currentX: number;
447
- } | {
448
- readonly _tag: "Idle";
449
464
  } | {
450
465
  readonly _tag: "Settling";
451
466
  readonly offsetX: number;
@@ -472,8 +487,10 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
472
487
  readonly entryId: string;
473
488
  readonly message: {
474
489
  readonly _tag: "CompletedWaitForPaint";
490
+ readonly generation: number;
475
491
  } | {
476
492
  readonly _tag: "EndedAnimation";
493
+ readonly generation: number;
477
494
  } | {
478
495
  readonly _tag: "Hid";
479
496
  } | {
@@ -518,11 +535,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
518
535
  readonly id: string;
519
536
  readonly isShowing: boolean;
520
537
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
538
+ readonly transitionGeneration: number;
521
539
  };
522
540
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
523
541
  readonly pendingDismissVersion: number;
524
542
  readonly isHovered: boolean;
525
543
  readonly swipeState: {
544
+ readonly _tag: "Idle";
545
+ } | {
526
546
  readonly _tag: "Dismissing";
527
547
  readonly offsetX: number;
528
548
  readonly direction: "Left" | "Right";
@@ -531,8 +551,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
531
551
  readonly pointerId: number;
532
552
  readonly startX: number;
533
553
  readonly currentX: number;
534
- } | {
535
- readonly _tag: "Idle";
536
554
  } | {
537
555
  readonly _tag: "Settling";
538
556
  readonly offsetX: number;
@@ -561,11 +579,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
561
579
  readonly id: string;
562
580
  readonly isShowing: boolean;
563
581
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
582
+ readonly transitionGeneration: number;
564
583
  };
565
584
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
566
585
  readonly pendingDismissVersion: number;
567
586
  readonly isHovered: boolean;
568
587
  readonly swipeState: {
588
+ readonly _tag: "Idle";
589
+ } | {
569
590
  readonly _tag: "Dismissing";
570
591
  readonly offsetX: number;
571
592
  readonly direction: "Left" | "Right";
@@ -574,8 +595,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
574
595
  readonly pointerId: number;
575
596
  readonly startX: number;
576
597
  readonly currentX: number;
577
- } | {
578
- readonly _tag: "Idle";
579
598
  } | {
580
599
  readonly _tag: "Settling";
581
600
  readonly offsetX: number;
@@ -598,11 +617,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
598
617
  readonly id: string;
599
618
  readonly isShowing: boolean;
600
619
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
620
+ readonly transitionGeneration: number;
601
621
  };
602
622
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
603
623
  readonly pendingDismissVersion: number;
604
624
  readonly isHovered: boolean;
605
625
  readonly swipeState: {
626
+ readonly _tag: "Idle";
627
+ } | {
606
628
  readonly _tag: "Dismissing";
607
629
  readonly offsetX: number;
608
630
  readonly direction: "Left" | "Right";
@@ -611,8 +633,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
611
633
  readonly pointerId: number;
612
634
  readonly startX: number;
613
635
  readonly currentX: number;
614
- } | {
615
- readonly _tag: "Idle";
616
636
  } | {
617
637
  readonly _tag: "Settling";
618
638
  readonly offsetX: number;
@@ -639,8 +659,10 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
639
659
  readonly entryId: string;
640
660
  readonly message: {
641
661
  readonly _tag: "CompletedWaitForPaint";
662
+ readonly generation: number;
642
663
  } | {
643
664
  readonly _tag: "EndedAnimation";
665
+ readonly generation: number;
644
666
  } | {
645
667
  readonly _tag: "Hid";
646
668
  } | {
@@ -685,11 +707,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
685
707
  readonly id: string;
686
708
  readonly isShowing: boolean;
687
709
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
710
+ readonly transitionGeneration: number;
688
711
  };
689
712
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
690
713
  readonly pendingDismissVersion: number;
691
714
  readonly isHovered: boolean;
692
715
  readonly swipeState: {
716
+ readonly _tag: "Idle";
717
+ } | {
693
718
  readonly _tag: "Dismissing";
694
719
  readonly offsetX: number;
695
720
  readonly direction: "Left" | "Right";
@@ -698,8 +723,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
698
723
  readonly pointerId: number;
699
724
  readonly startX: number;
700
725
  readonly currentX: number;
701
- } | {
702
- readonly _tag: "Idle";
703
726
  } | {
704
727
  readonly _tag: "Settling";
705
728
  readonly offsetX: number;
@@ -723,11 +746,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
723
746
  readonly id: string;
724
747
  readonly isShowing: boolean;
725
748
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
749
+ readonly transitionGeneration: number;
726
750
  };
727
751
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
728
752
  readonly pendingDismissVersion: number;
729
753
  readonly isHovered: boolean;
730
754
  readonly swipeState: {
755
+ readonly _tag: "Idle";
756
+ } | {
731
757
  readonly _tag: "Dismissing";
732
758
  readonly offsetX: number;
733
759
  readonly direction: "Left" | "Right";
@@ -736,8 +762,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
736
762
  readonly pointerId: number;
737
763
  readonly startX: number;
738
764
  readonly currentX: number;
739
- } | {
740
- readonly _tag: "Idle";
741
765
  } | {
742
766
  readonly _tag: "Settling";
743
767
  readonly offsetX: number;
@@ -760,11 +784,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
760
784
  readonly id: string;
761
785
  readonly isShowing: boolean;
762
786
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
787
+ readonly transitionGeneration: number;
763
788
  };
764
789
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
765
790
  readonly pendingDismissVersion: number;
766
791
  readonly isHovered: boolean;
767
792
  readonly swipeState: {
793
+ readonly _tag: "Idle";
794
+ } | {
768
795
  readonly _tag: "Dismissing";
769
796
  readonly offsetX: number;
770
797
  readonly direction: "Left" | "Right";
@@ -773,8 +800,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
773
800
  readonly pointerId: number;
774
801
  readonly startX: number;
775
802
  readonly currentX: number;
776
- } | {
777
- readonly _tag: "Idle";
778
803
  } | {
779
804
  readonly _tag: "Settling";
780
805
  readonly offsetX: number;
@@ -801,8 +826,10 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
801
826
  readonly entryId: string;
802
827
  readonly message: {
803
828
  readonly _tag: "CompletedWaitForPaint";
829
+ readonly generation: number;
804
830
  } | {
805
831
  readonly _tag: "EndedAnimation";
832
+ readonly generation: number;
806
833
  } | {
807
834
  readonly _tag: "Hid";
808
835
  } | {
@@ -847,11 +874,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
847
874
  readonly id: string;
848
875
  readonly isShowing: boolean;
849
876
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
877
+ readonly transitionGeneration: number;
850
878
  };
851
879
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
852
880
  readonly pendingDismissVersion: number;
853
881
  readonly isHovered: boolean;
854
882
  readonly swipeState: {
883
+ readonly _tag: "Idle";
884
+ } | {
855
885
  readonly _tag: "Dismissing";
856
886
  readonly offsetX: number;
857
887
  readonly direction: "Left" | "Right";
@@ -860,8 +890,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
860
890
  readonly pointerId: number;
861
891
  readonly startX: number;
862
892
  readonly currentX: number;
863
- } | {
864
- readonly _tag: "Idle";
865
893
  } | {
866
894
  readonly _tag: "Settling";
867
895
  readonly offsetX: number;
@@ -885,11 +913,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
885
913
  readonly id: string;
886
914
  readonly isShowing: boolean;
887
915
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
916
+ readonly transitionGeneration: number;
888
917
  };
889
918
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
890
919
  readonly pendingDismissVersion: number;
891
920
  readonly isHovered: boolean;
892
921
  readonly swipeState: {
922
+ readonly _tag: "Idle";
923
+ } | {
893
924
  readonly _tag: "Dismissing";
894
925
  readonly offsetX: number;
895
926
  readonly direction: "Left" | "Right";
@@ -898,8 +929,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
898
929
  readonly pointerId: number;
899
930
  readonly startX: number;
900
931
  readonly currentX: number;
901
- } | {
902
- readonly _tag: "Idle";
903
932
  } | {
904
933
  readonly _tag: "Settling";
905
934
  readonly offsetX: number;
@@ -922,11 +951,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
922
951
  readonly id: string;
923
952
  readonly isShowing: boolean;
924
953
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
954
+ readonly transitionGeneration: number;
925
955
  };
926
956
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
927
957
  readonly pendingDismissVersion: number;
928
958
  readonly isHovered: boolean;
929
959
  readonly swipeState: {
960
+ readonly _tag: "Idle";
961
+ } | {
930
962
  readonly _tag: "Dismissing";
931
963
  readonly offsetX: number;
932
964
  readonly direction: "Left" | "Right";
@@ -935,8 +967,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
935
967
  readonly pointerId: number;
936
968
  readonly startX: number;
937
969
  readonly currentX: number;
938
- } | {
939
- readonly _tag: "Idle";
940
970
  } | {
941
971
  readonly _tag: "Settling";
942
972
  readonly offsetX: number;
@@ -963,8 +993,10 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
963
993
  readonly entryId: string;
964
994
  readonly message: {
965
995
  readonly _tag: "CompletedWaitForPaint";
996
+ readonly generation: number;
966
997
  } | {
967
998
  readonly _tag: "EndedAnimation";
999
+ readonly generation: number;
968
1000
  } | {
969
1001
  readonly _tag: "Hid";
970
1002
  } | {
@@ -1010,11 +1042,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1010
1042
  readonly id: string;
1011
1043
  readonly isShowing: boolean;
1012
1044
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
1045
+ readonly transitionGeneration: number;
1013
1046
  };
1014
1047
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
1015
1048
  readonly pendingDismissVersion: number;
1016
1049
  readonly isHovered: boolean;
1017
1050
  readonly swipeState: {
1051
+ readonly _tag: "Idle";
1052
+ } | {
1018
1053
  readonly _tag: "Dismissing";
1019
1054
  readonly offsetX: number;
1020
1055
  readonly direction: "Left" | "Right";
@@ -1023,8 +1058,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1023
1058
  readonly pointerId: number;
1024
1059
  readonly startX: number;
1025
1060
  readonly currentX: number;
1026
- } | {
1027
- readonly _tag: "Idle";
1028
1061
  } | {
1029
1062
  readonly _tag: "Settling";
1030
1063
  readonly offsetX: number;
@@ -1046,11 +1079,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1046
1079
  readonly id: string;
1047
1080
  readonly isShowing: boolean;
1048
1081
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
1082
+ readonly transitionGeneration: number;
1049
1083
  };
1050
1084
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
1051
1085
  readonly pendingDismissVersion: number;
1052
1086
  readonly isHovered: boolean;
1053
1087
  readonly swipeState: {
1088
+ readonly _tag: "Idle";
1089
+ } | {
1054
1090
  readonly _tag: "Dismissing";
1055
1091
  readonly offsetX: number;
1056
1092
  readonly direction: "Left" | "Right";
@@ -1059,8 +1095,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1059
1095
  readonly pointerId: number;
1060
1096
  readonly startX: number;
1061
1097
  readonly currentX: number;
1062
- } | {
1063
- readonly _tag: "Idle";
1064
1098
  } | {
1065
1099
  readonly _tag: "Settling";
1066
1100
  readonly offsetX: number;
@@ -1087,8 +1121,10 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1087
1121
  readonly entryId: string;
1088
1122
  readonly message: {
1089
1123
  readonly _tag: "CompletedWaitForPaint";
1124
+ readonly generation: number;
1090
1125
  } | {
1091
1126
  readonly _tag: "EndedAnimation";
1127
+ readonly generation: number;
1092
1128
  } | {
1093
1129
  readonly _tag: "Hid";
1094
1130
  } | {
@@ -1133,11 +1169,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1133
1169
  readonly id: string;
1134
1170
  readonly isShowing: boolean;
1135
1171
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
1172
+ readonly transitionGeneration: number;
1136
1173
  };
1137
1174
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
1138
1175
  readonly pendingDismissVersion: number;
1139
1176
  readonly isHovered: boolean;
1140
1177
  readonly swipeState: {
1178
+ readonly _tag: "Idle";
1179
+ } | {
1141
1180
  readonly _tag: "Dismissing";
1142
1181
  readonly offsetX: number;
1143
1182
  readonly direction: "Left" | "Right";
@@ -1146,8 +1185,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1146
1185
  readonly pointerId: number;
1147
1186
  readonly startX: number;
1148
1187
  readonly currentX: number;
1149
- } | {
1150
- readonly _tag: "Idle";
1151
1188
  } | {
1152
1189
  readonly _tag: "Settling";
1153
1190
  readonly offsetX: number;
@@ -1169,11 +1206,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1169
1206
  readonly id: string;
1170
1207
  readonly isShowing: boolean;
1171
1208
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
1209
+ readonly transitionGeneration: number;
1172
1210
  };
1173
1211
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
1174
1212
  readonly pendingDismissVersion: number;
1175
1213
  readonly isHovered: boolean;
1176
1214
  readonly swipeState: {
1215
+ readonly _tag: "Idle";
1216
+ } | {
1177
1217
  readonly _tag: "Dismissing";
1178
1218
  readonly offsetX: number;
1179
1219
  readonly direction: "Left" | "Right";
@@ -1182,8 +1222,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1182
1222
  readonly pointerId: number;
1183
1223
  readonly startX: number;
1184
1224
  readonly currentX: number;
1185
- } | {
1186
- readonly _tag: "Idle";
1187
1225
  } | {
1188
1226
  readonly _tag: "Settling";
1189
1227
  readonly offsetX: number;
@@ -1210,8 +1248,10 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1210
1248
  readonly entryId: string;
1211
1249
  readonly message: {
1212
1250
  readonly _tag: "CompletedWaitForPaint";
1251
+ readonly generation: number;
1213
1252
  } | {
1214
1253
  readonly _tag: "EndedAnimation";
1254
+ readonly generation: number;
1215
1255
  } | {
1216
1256
  readonly _tag: "Hid";
1217
1257
  } | {
@@ -1258,11 +1298,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1258
1298
  readonly id: string;
1259
1299
  readonly isShowing: boolean;
1260
1300
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
1301
+ readonly transitionGeneration: number;
1261
1302
  };
1262
1303
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
1263
1304
  readonly pendingDismissVersion: number;
1264
1305
  readonly isHovered: boolean;
1265
1306
  readonly swipeState: {
1307
+ readonly _tag: "Idle";
1308
+ } | {
1266
1309
  readonly _tag: "Dismissing";
1267
1310
  readonly offsetX: number;
1268
1311
  readonly direction: "Left" | "Right";
@@ -1271,8 +1314,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1271
1314
  readonly pointerId: number;
1272
1315
  readonly startX: number;
1273
1316
  readonly currentX: number;
1274
- } | {
1275
- readonly _tag: "Idle";
1276
1317
  } | {
1277
1318
  readonly _tag: "Settling";
1278
1319
  readonly offsetX: number;
@@ -1294,11 +1335,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1294
1335
  readonly id: string;
1295
1336
  readonly isShowing: boolean;
1296
1337
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
1338
+ readonly transitionGeneration: number;
1297
1339
  };
1298
1340
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
1299
1341
  readonly pendingDismissVersion: number;
1300
1342
  readonly isHovered: boolean;
1301
1343
  readonly swipeState: {
1344
+ readonly _tag: "Idle";
1345
+ } | {
1302
1346
  readonly _tag: "Dismissing";
1303
1347
  readonly offsetX: number;
1304
1348
  readonly direction: "Left" | "Right";
@@ -1307,8 +1351,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1307
1351
  readonly pointerId: number;
1308
1352
  readonly startX: number;
1309
1353
  readonly currentX: number;
1310
- } | {
1311
- readonly _tag: "Idle";
1312
1354
  } | {
1313
1355
  readonly _tag: "Settling";
1314
1356
  readonly offsetX: number;
@@ -1337,8 +1379,10 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1337
1379
  readonly entryId: string;
1338
1380
  readonly message: {
1339
1381
  readonly _tag: "CompletedWaitForPaint";
1382
+ readonly generation: number;
1340
1383
  } | {
1341
1384
  readonly _tag: "EndedAnimation";
1385
+ readonly generation: number;
1342
1386
  } | {
1343
1387
  readonly _tag: "Hid";
1344
1388
  } | {
@@ -1374,11 +1418,14 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1374
1418
  readonly id: string;
1375
1419
  readonly isShowing: boolean;
1376
1420
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
1421
+ readonly transitionGeneration: number;
1377
1422
  };
1378
1423
  readonly maybeDuration: Option.Option<import("effect/Duration").Duration>;
1379
1424
  readonly pendingDismissVersion: number;
1380
1425
  readonly isHovered: boolean;
1381
1426
  readonly swipeState: {
1427
+ readonly _tag: "Idle";
1428
+ } | {
1382
1429
  readonly _tag: "Dismissing";
1383
1430
  readonly offsetX: number;
1384
1431
  readonly direction: "Left" | "Right";
@@ -1387,8 +1434,6 @@ export declare const make: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1387
1434
  readonly pointerId: number;
1388
1435
  readonly startX: number;
1389
1436
  readonly currentX: number;
1390
- } | {
1391
- readonly _tag: "Idle";
1392
1437
  } | {
1393
1438
  readonly _tag: "Settling";
1394
1439
  readonly offsetX: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAG9E,OAAO,EAAE,QAAQ,EAAc,OAAO,EAAE,MAAM,aAAa,CAAA;AAI3D,YAAY,EACV,4BAA4B,EAC5B,SAAS,EACT,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,4BAA4B,EAC5B,YAAY,EACZ,UAAU,EACV,SAAS,EACT,oBAAoB,GACrB,MAAM,aAAa,CAAA;AACpB,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,EACL,OAAO,EACP,OAAO,EACP,QAAQ,EACR,cAAc,EACd,UAAU,EACV,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,aAAa,CAAA;AAEpB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,GACZ,MAAM,aAAa,CAAA;AAwEpB;yDACyD;AACzD,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IAC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