@foldkit/ui 0.154.0 → 0.155.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.
Files changed (91) hide show
  1. package/README.md +1 -1
  2. package/dist/anchor/anchor.d.ts.map +1 -1
  3. package/dist/animation/index.d.ts +5 -5
  4. package/dist/animation/schema.d.ts.map +1 -1
  5. package/dist/animation/update.d.ts.map +1 -1
  6. package/dist/button/index.d.ts.map +1 -1
  7. package/dist/calendar/index.d.ts +44 -44
  8. package/dist/calendar/index.d.ts.map +1 -1
  9. package/dist/checkbox/index.d.ts.map +1 -1
  10. package/dist/combobox/multi.d.ts +47 -47
  11. package/dist/combobox/multi.d.ts.map +1 -1
  12. package/dist/combobox/shared.d.ts +44 -44
  13. package/dist/combobox/shared.d.ts.map +1 -1
  14. package/dist/combobox/shared.js +91 -78
  15. package/dist/combobox/single.d.ts +50 -50
  16. package/dist/combobox/single.d.ts.map +1 -1
  17. package/dist/datePicker/index.d.ts +102 -102
  18. package/dist/datePicker/index.d.ts.map +1 -1
  19. package/dist/dialog/index.d.ts +38 -18
  20. package/dist/dialog/index.d.ts.map +1 -1
  21. package/dist/dialog/index.js +66 -39
  22. package/dist/dialog/public.d.ts +1 -1
  23. package/dist/dialog/public.d.ts.map +1 -1
  24. package/dist/disclosure/index.d.ts.map +1 -1
  25. package/dist/dragAndDrop/index.d.ts +191 -191
  26. package/dist/dragAndDrop/index.d.ts.map +1 -1
  27. package/dist/fieldset/index.d.ts.map +1 -1
  28. package/dist/fileDrop/index.d.ts +10 -10
  29. package/dist/fileDrop/index.d.ts.map +1 -1
  30. package/dist/group.d.ts.map +1 -1
  31. package/dist/hoverIntent/hoverIntent.d.ts +103 -0
  32. package/dist/hoverIntent/hoverIntent.d.ts.map +1 -0
  33. package/dist/hoverIntent/hoverIntent.js +210 -0
  34. package/dist/hoverIntent/index.d.ts +4 -0
  35. package/dist/hoverIntent/index.d.ts.map +1 -0
  36. package/dist/hoverIntent/index.js +2 -0
  37. package/dist/hoverIntent/message.d.ts +42 -0
  38. package/dist/hoverIntent/message.d.ts.map +1 -0
  39. package/dist/hoverIntent/message.js +23 -0
  40. package/dist/hoverIntent/public.d.ts +3 -0
  41. package/dist/hoverIntent/public.d.ts.map +1 -0
  42. package/dist/hoverIntent/public.js +1 -0
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +1 -0
  46. package/dist/input/index.d.ts.map +1 -1
  47. package/dist/internal/optionExtensions.d.ts.map +1 -1
  48. package/dist/internal/selectors.d.ts.map +1 -1
  49. package/dist/keyboard.d.ts.map +1 -1
  50. package/dist/listbox/multi.d.ts +43 -43
  51. package/dist/listbox/multi.d.ts.map +1 -1
  52. package/dist/listbox/shared.d.ts +38 -38
  53. package/dist/listbox/shared.d.ts.map +1 -1
  54. package/dist/listbox/shared.js +46 -39
  55. package/dist/listbox/single.d.ts +45 -45
  56. package/dist/listbox/single.d.ts.map +1 -1
  57. package/dist/menu/index.d.ts +70 -70
  58. package/dist/menu/index.d.ts.map +1 -1
  59. package/dist/menu/index.js +39 -32
  60. package/dist/nav/index.d.ts.map +1 -1
  61. package/dist/popover/index.d.ts +33 -33
  62. package/dist/popover/index.d.ts.map +1 -1
  63. package/dist/popover/index.js +36 -29
  64. package/dist/radioGroup/index.d.ts +6 -6
  65. package/dist/radioGroup/index.d.ts.map +1 -1
  66. package/dist/select/index.d.ts.map +1 -1
  67. package/dist/slider/index.d.ts +72 -72
  68. package/dist/slider/index.d.ts.map +1 -1
  69. package/dist/switch/index.d.ts.map +1 -1
  70. package/dist/tabs/index.d.ts +6 -6
  71. package/dist/tabs/index.d.ts.map +1 -1
  72. package/dist/test/apps/disabledButton.d.ts +18 -15
  73. package/dist/test/apps/disabledButton.d.ts.map +1 -1
  74. package/dist/textarea/index.d.ts.map +1 -1
  75. package/dist/toast/index.d.ts +224 -224
  76. package/dist/toast/index.d.ts.map +1 -1
  77. package/dist/toast/schema.d.ts +16 -16
  78. package/dist/toast/schema.d.ts.map +1 -1
  79. package/dist/toast/test.d.ts.map +1 -1
  80. package/dist/toast/update.d.ts +151 -151
  81. package/dist/toast/update.d.ts.map +1 -1
  82. package/dist/tooltip/message.d.ts +2 -2
  83. package/dist/tooltip/message.d.ts.map +1 -1
  84. package/dist/tooltip/tooltip.d.ts +7 -7
  85. package/dist/tooltip/tooltip.d.ts.map +1 -1
  86. package/dist/tooltip/tooltip.js +15 -11
  87. package/dist/typeahead.d.ts.map +1 -1
  88. package/dist/virtualList/index.d.ts +10 -10
  89. package/dist/virtualList/index.d.ts.map +1 -1
  90. package/dist/virtualList/index.js +5 -5
  91. package/package.json +12 -10
@@ -15,37 +15,37 @@ export declare const Model: S.Struct<{
15
15
  readonly dragState: import("foldkit/schema").TaggedUnion<{
16
16
  readonly Idle: {};
17
17
  readonly Pending: {
18
- readonly itemId: S.String;
19
- readonly containerId: S.String;
20
- readonly index: S.Number;
21
- readonly origin: S.Struct<{
18
+ itemId: S.String;
19
+ containerId: S.String;
20
+ index: S.Number;
21
+ origin: S.Struct<{
22
22
  readonly screenX: S.Number;
23
23
  readonly screenY: S.Number;
24
24
  }>;
25
25
  };
26
26
  readonly Dragging: {
27
- readonly itemId: S.String;
28
- readonly sourceContainerId: S.String;
29
- readonly sourceIndex: S.Number;
30
- readonly origin: S.Struct<{
27
+ itemId: S.String;
28
+ sourceContainerId: S.String;
29
+ sourceIndex: S.Number;
30
+ origin: S.Struct<{
31
31
  readonly screenX: S.Number;
32
32
  readonly screenY: S.Number;
33
33
  }>;
34
- readonly current: S.Struct<{
34
+ current: S.Struct<{
35
35
  readonly clientX: S.Number;
36
36
  readonly clientY: S.Number;
37
37
  }>;
38
- readonly maybeDropTarget: S.Option<S.Struct<{
38
+ maybeDropTarget: S.Option<S.Struct<{
39
39
  readonly containerId: S.String;
40
40
  readonly index: S.Number;
41
41
  }>>;
42
42
  };
43
43
  readonly KeyboardDragging: {
44
- readonly itemId: S.String;
45
- readonly sourceContainerId: S.String;
46
- readonly sourceIndex: S.Number;
47
- readonly targetContainerId: S.String;
48
- readonly targetIndex: S.Number;
44
+ itemId: S.String;
45
+ sourceContainerId: S.String;
46
+ sourceIndex: S.Number;
47
+ targetContainerId: S.String;
48
+ targetIndex: S.Number;
49
49
  };
50
50
  }>;
51
51
  }>;
@@ -53,18 +53,18 @@ export type Model = typeof Model.Type;
53
53
  /** Union of all messages the drag-and-drop component can produce. */
54
54
  export declare const Message: import("foldkit/message").MessageUnion<{
55
55
  readonly PressedDraggable: {
56
- readonly itemId: S.String;
57
- readonly containerId: S.String;
58
- readonly index: S.Number;
59
- readonly screenX: S.Number;
60
- readonly screenY: S.Number;
56
+ itemId: S.String;
57
+ containerId: S.String;
58
+ index: S.Number;
59
+ screenX: S.Number;
60
+ screenY: S.Number;
61
61
  };
62
62
  readonly MovedPointer: {
63
- readonly screenX: S.Number;
64
- readonly screenY: S.Number;
65
- readonly clientX: S.Number;
66
- readonly clientY: S.Number;
67
- readonly maybeDropTarget: S.Option<S.Struct<{
63
+ screenX: S.Number;
64
+ screenY: S.Number;
65
+ clientX: S.Number;
66
+ clientY: S.Number;
67
+ maybeDropTarget: S.Option<S.Struct<{
68
68
  readonly containerId: S.String;
69
69
  readonly index: S.Number;
70
70
  }>>;
@@ -72,17 +72,17 @@ export declare const Message: import("foldkit/message").MessageUnion<{
72
72
  readonly ReleasedPointer: {};
73
73
  readonly CancelledDrag: {};
74
74
  readonly ActivatedKeyboardDrag: {
75
- readonly itemId: S.String;
76
- readonly containerId: S.String;
77
- readonly index: S.Number;
75
+ itemId: S.String;
76
+ containerId: S.String;
77
+ index: S.Number;
78
78
  };
79
79
  readonly CompletedResolveKeyboardMove: {
80
- readonly targetContainerId: S.String;
81
- readonly targetIndex: S.Number;
80
+ targetContainerId: S.String;
81
+ targetIndex: S.Number;
82
82
  };
83
83
  readonly ConfirmedKeyboardDrop: {};
84
84
  readonly PressedArrowKey: {
85
- readonly direction: S.Literals<readonly ["Up", "Down", "Left", "Right", "NextContainer", "PreviousContainer"]>;
85
+ direction: S.Literals<readonly ["Up", "Down", "Left", "Right", "NextContainer", "PreviousContainer"]>;
86
86
  };
87
87
  readonly AdvancedAutoScrollFrame: {};
88
88
  readonly CompletedFocusItem: {};
@@ -91,11 +91,11 @@ export type Message = typeof Message.Type;
91
91
  /** Union of all out-messages the drag-and-drop component can emit to its parent. */
92
92
  export declare const OutMessage: import("foldkit/message").MessageUnion<{
93
93
  readonly Reordered: {
94
- readonly itemId: S.String;
95
- readonly fromContainerId: S.String;
96
- readonly fromIndex: S.Number;
97
- readonly toContainerId: S.String;
98
- readonly toIndex: S.Number;
94
+ itemId: S.String;
95
+ fromContainerId: S.String;
96
+ fromIndex: S.Number;
97
+ toContainerId: S.String;
98
+ toIndex: S.Number;
99
99
  };
100
100
  readonly Cancelled: {};
101
101
  }>;
@@ -132,17 +132,6 @@ export declare const update: (model: Model, message: Message) => Readonly<{
132
132
  readonly orientation: "Horizontal" | "Vertical";
133
133
  readonly activationThreshold: number;
134
134
  readonly dragState: {
135
- readonly _tag: "Idle";
136
- } | {
137
- readonly _tag: "Pending";
138
- readonly itemId: string;
139
- readonly containerId: string;
140
- readonly index: number;
141
- readonly origin: {
142
- readonly screenX: number;
143
- readonly screenY: number;
144
- };
145
- } | {
146
135
  readonly _tag: "Dragging";
147
136
  readonly itemId: string;
148
137
  readonly sourceContainerId: string;
@@ -159,6 +148,8 @@ export declare const update: (model: Model, message: Message) => Readonly<{
159
148
  readonly containerId: string;
160
149
  readonly index: number;
161
150
  }>;
151
+ } | {
152
+ readonly _tag: "Idle";
162
153
  } | {
163
154
  readonly _tag: "KeyboardDragging";
164
155
  readonly itemId: string;
@@ -166,15 +157,34 @@ export declare const update: (model: Model, message: Message) => Readonly<{
166
157
  readonly sourceIndex: number;
167
158
  readonly targetContainerId: string;
168
159
  readonly targetIndex: number;
160
+ } | {
161
+ readonly _tag: "Pending";
162
+ readonly itemId: string;
163
+ readonly containerId: string;
164
+ readonly index: number;
165
+ readonly origin: {
166
+ readonly screenX: number;
167
+ readonly screenY: number;
168
+ };
169
169
  };
170
170
  };
171
171
  commands?: Update.Commands<{
172
- readonly _tag: "PressedDraggable";
172
+ readonly _tag: "ActivatedKeyboardDrag";
173
173
  readonly itemId: string;
174
174
  readonly containerId: string;
175
175
  readonly index: number;
176
- readonly screenX: number;
177
- readonly screenY: number;
176
+ } | {
177
+ readonly _tag: "AdvancedAutoScrollFrame";
178
+ } | {
179
+ readonly _tag: "CancelledDrag";
180
+ } | {
181
+ readonly _tag: "CompletedFocusItem";
182
+ } | {
183
+ readonly _tag: "CompletedResolveKeyboardMove";
184
+ readonly targetContainerId: string;
185
+ readonly targetIndex: number;
186
+ } | {
187
+ readonly _tag: "ConfirmedKeyboardDrop";
178
188
  } | {
179
189
  readonly _tag: "MovedPointer";
180
190
  readonly screenX: number;
@@ -186,37 +196,27 @@ export declare const update: (model: Model, message: Message) => Readonly<{
186
196
  readonly index: number;
187
197
  }>;
188
198
  } | {
189
- readonly _tag: "ReleasedPointer";
190
- } | {
191
- readonly _tag: "CancelledDrag";
199
+ readonly _tag: "PressedArrowKey";
200
+ readonly direction: "Down" | "Left" | "NextContainer" | "PreviousContainer" | "Right" | "Up";
192
201
  } | {
193
- readonly _tag: "ActivatedKeyboardDrag";
202
+ readonly _tag: "PressedDraggable";
194
203
  readonly itemId: string;
195
204
  readonly containerId: string;
196
205
  readonly index: number;
206
+ readonly screenX: number;
207
+ readonly screenY: number;
197
208
  } | {
198
- readonly _tag: "CompletedResolveKeyboardMove";
199
- readonly targetContainerId: string;
200
- readonly targetIndex: number;
201
- } | {
202
- readonly _tag: "ConfirmedKeyboardDrop";
203
- } | {
204
- readonly _tag: "PressedArrowKey";
205
- readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
206
- } | {
207
- readonly _tag: "AdvancedAutoScrollFrame";
208
- } | {
209
- readonly _tag: "CompletedFocusItem";
209
+ readonly _tag: "ReleasedPointer";
210
210
  }, never>;
211
211
  outMessage?: {
212
+ readonly _tag: "Cancelled";
213
+ } | {
212
214
  readonly _tag: "Reordered";
213
215
  readonly itemId: string;
214
216
  readonly fromContainerId: string;
215
217
  readonly fromIndex: number;
216
218
  readonly toContainerId: string;
217
219
  readonly toIndex: number;
218
- } | {
219
- readonly _tag: "Cancelled";
220
220
  };
221
221
  }>;
222
222
  /** Document-level subscriptions for pointer and keyboard events during drag operations. */
@@ -226,17 +226,6 @@ export declare const subscriptions: {
226
226
  readonly orientation: "Horizontal" | "Vertical";
227
227
  readonly activationThreshold: number;
228
228
  readonly dragState: {
229
- readonly _tag: "Idle";
230
- } | {
231
- readonly _tag: "Pending";
232
- readonly itemId: string;
233
- readonly containerId: string;
234
- readonly index: number;
235
- readonly origin: {
236
- readonly screenX: number;
237
- readonly screenY: number;
238
- };
239
- } | {
240
229
  readonly _tag: "Dragging";
241
230
  readonly itemId: string;
242
231
  readonly sourceContainerId: string;
@@ -253,6 +242,8 @@ export declare const subscriptions: {
253
242
  readonly containerId: string;
254
243
  readonly index: number;
255
244
  }>;
245
+ } | {
246
+ readonly _tag: "Idle";
256
247
  } | {
257
248
  readonly _tag: "KeyboardDragging";
258
249
  readonly itemId: string;
@@ -260,14 +251,33 @@ export declare const subscriptions: {
260
251
  readonly sourceIndex: number;
261
252
  readonly targetContainerId: string;
262
253
  readonly targetIndex: number;
254
+ } | {
255
+ readonly _tag: "Pending";
256
+ readonly itemId: string;
257
+ readonly containerId: string;
258
+ readonly index: number;
259
+ readonly origin: {
260
+ readonly screenX: number;
261
+ readonly screenY: number;
262
+ };
263
263
  };
264
264
  }, {
265
- readonly _tag: "PressedDraggable";
265
+ readonly _tag: "ActivatedKeyboardDrag";
266
266
  readonly itemId: string;
267
267
  readonly containerId: string;
268
268
  readonly index: number;
269
- readonly screenX: number;
270
- readonly screenY: number;
269
+ } | {
270
+ readonly _tag: "AdvancedAutoScrollFrame";
271
+ } | {
272
+ readonly _tag: "CancelledDrag";
273
+ } | {
274
+ readonly _tag: "CompletedFocusItem";
275
+ } | {
276
+ readonly _tag: "CompletedResolveKeyboardMove";
277
+ readonly targetContainerId: string;
278
+ readonly targetIndex: number;
279
+ } | {
280
+ readonly _tag: "ConfirmedKeyboardDrop";
271
281
  } | {
272
282
  readonly _tag: "MovedPointer";
273
283
  readonly screenX: number;
@@ -279,29 +289,19 @@ export declare const subscriptions: {
279
289
  readonly index: number;
280
290
  }>;
281
291
  } | {
282
- readonly _tag: "ReleasedPointer";
283
- } | {
284
- readonly _tag: "CancelledDrag";
292
+ readonly _tag: "PressedArrowKey";
293
+ readonly direction: "Down" | "Left" | "NextContainer" | "PreviousContainer" | "Right" | "Up";
285
294
  } | {
286
- readonly _tag: "ActivatedKeyboardDrag";
295
+ readonly _tag: "PressedDraggable";
287
296
  readonly itemId: string;
288
297
  readonly containerId: string;
289
298
  readonly index: number;
299
+ readonly screenX: number;
300
+ readonly screenY: number;
290
301
  } | {
291
- readonly _tag: "CompletedResolveKeyboardMove";
292
- readonly targetContainerId: string;
293
- readonly targetIndex: number;
294
- } | {
295
- readonly _tag: "ConfirmedKeyboardDrop";
296
- } | {
297
- readonly _tag: "PressedArrowKey";
298
- readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
299
- } | {
300
- readonly _tag: "AdvancedAutoScrollFrame";
301
- } | {
302
- readonly _tag: "CompletedFocusItem";
302
+ readonly _tag: "ReleasedPointer";
303
303
  }, {
304
- readonly dragActivity: "Idle" | "Active";
304
+ readonly dragActivity: "Active" | "Idle";
305
305
  readonly orientation: "Horizontal" | "Vertical";
306
306
  }, never> & {
307
307
  readonly __subscription: never;
@@ -311,17 +311,6 @@ export declare const subscriptions: {
311
311
  readonly orientation: "Horizontal" | "Vertical";
312
312
  readonly activationThreshold: number;
313
313
  readonly dragState: {
314
- readonly _tag: "Idle";
315
- } | {
316
- readonly _tag: "Pending";
317
- readonly itemId: string;
318
- readonly containerId: string;
319
- readonly index: number;
320
- readonly origin: {
321
- readonly screenX: number;
322
- readonly screenY: number;
323
- };
324
- } | {
325
314
  readonly _tag: "Dragging";
326
315
  readonly itemId: string;
327
316
  readonly sourceContainerId: string;
@@ -338,6 +327,8 @@ export declare const subscriptions: {
338
327
  readonly containerId: string;
339
328
  readonly index: number;
340
329
  }>;
330
+ } | {
331
+ readonly _tag: "Idle";
341
332
  } | {
342
333
  readonly _tag: "KeyboardDragging";
343
334
  readonly itemId: string;
@@ -345,14 +336,33 @@ export declare const subscriptions: {
345
336
  readonly sourceIndex: number;
346
337
  readonly targetContainerId: string;
347
338
  readonly targetIndex: number;
339
+ } | {
340
+ readonly _tag: "Pending";
341
+ readonly itemId: string;
342
+ readonly containerId: string;
343
+ readonly index: number;
344
+ readonly origin: {
345
+ readonly screenX: number;
346
+ readonly screenY: number;
347
+ };
348
348
  };
349
349
  }, {
350
- readonly _tag: "PressedDraggable";
350
+ readonly _tag: "ActivatedKeyboardDrag";
351
351
  readonly itemId: string;
352
352
  readonly containerId: string;
353
353
  readonly index: number;
354
- readonly screenX: number;
355
- readonly screenY: number;
354
+ } | {
355
+ readonly _tag: "AdvancedAutoScrollFrame";
356
+ } | {
357
+ readonly _tag: "CancelledDrag";
358
+ } | {
359
+ readonly _tag: "CompletedFocusItem";
360
+ } | {
361
+ readonly _tag: "CompletedResolveKeyboardMove";
362
+ readonly targetContainerId: string;
363
+ readonly targetIndex: number;
364
+ } | {
365
+ readonly _tag: "ConfirmedKeyboardDrop";
356
366
  } | {
357
367
  readonly _tag: "MovedPointer";
358
368
  readonly screenX: number;
@@ -364,29 +374,19 @@ export declare const subscriptions: {
364
374
  readonly index: number;
365
375
  }>;
366
376
  } | {
367
- readonly _tag: "ReleasedPointer";
368
- } | {
369
- readonly _tag: "CancelledDrag";
377
+ readonly _tag: "PressedArrowKey";
378
+ readonly direction: "Down" | "Left" | "NextContainer" | "PreviousContainer" | "Right" | "Up";
370
379
  } | {
371
- readonly _tag: "ActivatedKeyboardDrag";
380
+ readonly _tag: "PressedDraggable";
372
381
  readonly itemId: string;
373
382
  readonly containerId: string;
374
383
  readonly index: number;
384
+ readonly screenX: number;
385
+ readonly screenY: number;
375
386
  } | {
376
- readonly _tag: "CompletedResolveKeyboardMove";
377
- readonly targetContainerId: string;
378
- readonly targetIndex: number;
379
- } | {
380
- readonly _tag: "ConfirmedKeyboardDrop";
381
- } | {
382
- readonly _tag: "PressedArrowKey";
383
- readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
384
- } | {
385
- readonly _tag: "AdvancedAutoScrollFrame";
386
- } | {
387
- readonly _tag: "CompletedFocusItem";
387
+ readonly _tag: "ReleasedPointer";
388
388
  }, {
389
- readonly dragActivity: "Idle" | "Active";
389
+ readonly dragActivity: "Active" | "Idle";
390
390
  }, never> & {
391
391
  readonly __subscription: never;
392
392
  };
@@ -395,17 +395,6 @@ export declare const subscriptions: {
395
395
  readonly orientation: "Horizontal" | "Vertical";
396
396
  readonly activationThreshold: number;
397
397
  readonly dragState: {
398
- readonly _tag: "Idle";
399
- } | {
400
- readonly _tag: "Pending";
401
- readonly itemId: string;
402
- readonly containerId: string;
403
- readonly index: number;
404
- readonly origin: {
405
- readonly screenX: number;
406
- readonly screenY: number;
407
- };
408
- } | {
409
398
  readonly _tag: "Dragging";
410
399
  readonly itemId: string;
411
400
  readonly sourceContainerId: string;
@@ -422,6 +411,8 @@ export declare const subscriptions: {
422
411
  readonly containerId: string;
423
412
  readonly index: number;
424
413
  }>;
414
+ } | {
415
+ readonly _tag: "Idle";
425
416
  } | {
426
417
  readonly _tag: "KeyboardDragging";
427
418
  readonly itemId: string;
@@ -429,14 +420,33 @@ export declare const subscriptions: {
429
420
  readonly sourceIndex: number;
430
421
  readonly targetContainerId: string;
431
422
  readonly targetIndex: number;
423
+ } | {
424
+ readonly _tag: "Pending";
425
+ readonly itemId: string;
426
+ readonly containerId: string;
427
+ readonly index: number;
428
+ readonly origin: {
429
+ readonly screenX: number;
430
+ readonly screenY: number;
431
+ };
432
432
  };
433
433
  }, {
434
- readonly _tag: "PressedDraggable";
434
+ readonly _tag: "ActivatedKeyboardDrag";
435
435
  readonly itemId: string;
436
436
  readonly containerId: string;
437
437
  readonly index: number;
438
- readonly screenX: number;
439
- readonly screenY: number;
438
+ } | {
439
+ readonly _tag: "AdvancedAutoScrollFrame";
440
+ } | {
441
+ readonly _tag: "CancelledDrag";
442
+ } | {
443
+ readonly _tag: "CompletedFocusItem";
444
+ } | {
445
+ readonly _tag: "CompletedResolveKeyboardMove";
446
+ readonly targetContainerId: string;
447
+ readonly targetIndex: number;
448
+ } | {
449
+ readonly _tag: "ConfirmedKeyboardDrop";
440
450
  } | {
441
451
  readonly _tag: "MovedPointer";
442
452
  readonly screenX: number;
@@ -448,29 +458,19 @@ export declare const subscriptions: {
448
458
  readonly index: number;
449
459
  }>;
450
460
  } | {
451
- readonly _tag: "ReleasedPointer";
452
- } | {
453
- readonly _tag: "CancelledDrag";
461
+ readonly _tag: "PressedArrowKey";
462
+ readonly direction: "Down" | "Left" | "NextContainer" | "PreviousContainer" | "Right" | "Up";
454
463
  } | {
455
- readonly _tag: "ActivatedKeyboardDrag";
464
+ readonly _tag: "PressedDraggable";
456
465
  readonly itemId: string;
457
466
  readonly containerId: string;
458
467
  readonly index: number;
468
+ readonly screenX: number;
469
+ readonly screenY: number;
459
470
  } | {
460
- readonly _tag: "CompletedResolveKeyboardMove";
461
- readonly targetContainerId: string;
462
- readonly targetIndex: number;
463
- } | {
464
- readonly _tag: "ConfirmedKeyboardDrop";
465
- } | {
466
- readonly _tag: "PressedArrowKey";
467
- readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
468
- } | {
469
- readonly _tag: "AdvancedAutoScrollFrame";
470
- } | {
471
- readonly _tag: "CompletedFocusItem";
471
+ readonly _tag: "ReleasedPointer";
472
472
  }, {
473
- readonly dragActivity: "Idle" | "Active";
473
+ readonly dragActivity: "Active" | "Idle";
474
474
  }, never> & {
475
475
  readonly __subscription: never;
476
476
  };
@@ -486,17 +486,6 @@ export declare const subscriptions: {
486
486
  readonly orientation: "Horizontal" | "Vertical";
487
487
  readonly activationThreshold: number;
488
488
  readonly dragState: {
489
- readonly _tag: "Idle";
490
- } | {
491
- readonly _tag: "Pending";
492
- readonly itemId: string;
493
- readonly containerId: string;
494
- readonly index: number;
495
- readonly origin: {
496
- readonly screenX: number;
497
- readonly screenY: number;
498
- };
499
- } | {
500
489
  readonly _tag: "Dragging";
501
490
  readonly itemId: string;
502
491
  readonly sourceContainerId: string;
@@ -513,6 +502,8 @@ export declare const subscriptions: {
513
502
  readonly containerId: string;
514
503
  readonly index: number;
515
504
  }>;
505
+ } | {
506
+ readonly _tag: "Idle";
516
507
  } | {
517
508
  readonly _tag: "KeyboardDragging";
518
509
  readonly itemId: string;
@@ -520,6 +511,15 @@ export declare const subscriptions: {
520
511
  readonly sourceIndex: number;
521
512
  readonly targetContainerId: string;
522
513
  readonly targetIndex: number;
514
+ } | {
515
+ readonly _tag: "Pending";
516
+ readonly itemId: string;
517
+ readonly containerId: string;
518
+ readonly index: number;
519
+ readonly origin: {
520
+ readonly screenX: number;
521
+ readonly screenY: number;
522
+ };
523
523
  };
524
524
  }) => {
525
525
  readonly isDragging: boolean;
@@ -536,12 +536,22 @@ export declare const subscriptions: {
536
536
  readonly isDragging: boolean;
537
537
  readonly clientY: number;
538
538
  }) => Stream.Stream<{
539
- readonly _tag: "PressedDraggable";
539
+ readonly _tag: "ActivatedKeyboardDrag";
540
540
  readonly itemId: string;
541
541
  readonly containerId: string;
542
542
  readonly index: number;
543
- readonly screenX: number;
544
- readonly screenY: number;
543
+ } | {
544
+ readonly _tag: "AdvancedAutoScrollFrame";
545
+ } | {
546
+ readonly _tag: "CancelledDrag";
547
+ } | {
548
+ readonly _tag: "CompletedFocusItem";
549
+ } | {
550
+ readonly _tag: "CompletedResolveKeyboardMove";
551
+ readonly targetContainerId: string;
552
+ readonly targetIndex: number;
553
+ } | {
554
+ readonly _tag: "ConfirmedKeyboardDrop";
545
555
  } | {
546
556
  readonly _tag: "MovedPointer";
547
557
  readonly screenX: number;
@@ -553,27 +563,17 @@ export declare const subscriptions: {
553
563
  readonly index: number;
554
564
  }>;
555
565
  } | {
556
- readonly _tag: "ReleasedPointer";
557
- } | {
558
- readonly _tag: "CancelledDrag";
566
+ readonly _tag: "PressedArrowKey";
567
+ readonly direction: "Down" | "Left" | "NextContainer" | "PreviousContainer" | "Right" | "Up";
559
568
  } | {
560
- readonly _tag: "ActivatedKeyboardDrag";
569
+ readonly _tag: "PressedDraggable";
561
570
  readonly itemId: string;
562
571
  readonly containerId: string;
563
572
  readonly index: number;
573
+ readonly screenX: number;
574
+ readonly screenY: number;
564
575
  } | {
565
- readonly _tag: "CompletedResolveKeyboardMove";
566
- readonly targetContainerId: string;
567
- readonly targetIndex: number;
568
- } | {
569
- readonly _tag: "ConfirmedKeyboardDrop";
570
- } | {
571
- readonly _tag: "PressedArrowKey";
572
- readonly direction: "Up" | "Down" | "Left" | "Right" | "NextContainer" | "PreviousContainer";
573
- } | {
574
- readonly _tag: "AdvancedAutoScrollFrame";
575
- } | {
576
- readonly _tag: "CompletedFocusItem";
576
+ readonly _tag: "ReleasedPointer";
577
577
  }, never, never>;
578
578
  } & {
579
579
  readonly __subscription: never;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dragAndDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAEN,WAAW,EAEX,MAAM,EAEN,MAAM,IAAI,CAAC,EACX,MAAM,EAEP,MAAM,QAAQ,CAAA;AACf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAmB,MAAM,cAAc,CAAA;AAIhF,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAA;AAkBxC,QAAA,MAAM,UAAU;;;EAGd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M,CAAC,MAAM,CAMnE,CAAA;AAEH,oJAAoJ;AACpJ,eAAO,MAAM,eAAe,UACnB,KAAK,KACX,MAAM,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,IAAI,CAUpC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fieldset/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAIhE,4FAA4F;AAC5F,MAAM,MAAM,kBAAkB,CAAC,OAAO,IAAI,QAAQ,CAAC;IACjD,QAAQ,EAAE,aAAa,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;IAC3C,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;IACzC,WAAW,EAAE,aAAa,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC/C,CAAC,CAAA;AAEF,0DAA0D;AAC1D,MAAM,MAAM,UAAU,CAAC,OAAO,IAAI,QAAQ,CAAC;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,CAAC,UAAU,EAAE,kBAAkB,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IACzD,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC,CAAA;AAEF,0EAA0E;AAC1E,eAAO,MAAM,QAAQ,GAAI,IAAI,MAAM,KAAG,MAAwB,CAAA;AAE9D,+EAA+E;AAC/E,eAAO,MAAM,aAAa,GAAI,IAAI,MAAM,KAAG,MAA6B,CAAA;AAExE,kIAAkI;AAClI,eAAO,MAAM,IAAI,GAAI,OAAO,EAC1B,QAAQ,UAAU,CAAC,OAAO,CAAC,EAC3B,GAAG,WAAW,CAAC,OAAO,CAAC,KACtB,IAsBF,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fieldset/index.ts"],"names":[],"mappings":"AAAA,OAAO,K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