@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.
- package/README.md +1 -1
- package/dist/anchor/anchor.d.ts.map +1 -1
- package/dist/animation/index.d.ts +5 -5
- package/dist/animation/schema.d.ts.map +1 -1
- package/dist/animation/update.d.ts.map +1 -1
- package/dist/button/index.d.ts.map +1 -1
- package/dist/calendar/index.d.ts +44 -44
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/checkbox/index.d.ts.map +1 -1
- package/dist/combobox/multi.d.ts +47 -47
- package/dist/combobox/multi.d.ts.map +1 -1
- package/dist/combobox/shared.d.ts +44 -44
- package/dist/combobox/shared.d.ts.map +1 -1
- package/dist/combobox/shared.js +91 -78
- package/dist/combobox/single.d.ts +50 -50
- package/dist/combobox/single.d.ts.map +1 -1
- package/dist/datePicker/index.d.ts +102 -102
- package/dist/datePicker/index.d.ts.map +1 -1
- package/dist/dialog/index.d.ts +38 -18
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/dialog/index.js +66 -39
- package/dist/dialog/public.d.ts +1 -1
- package/dist/dialog/public.d.ts.map +1 -1
- package/dist/disclosure/index.d.ts.map +1 -1
- package/dist/dragAndDrop/index.d.ts +191 -191
- package/dist/dragAndDrop/index.d.ts.map +1 -1
- package/dist/fieldset/index.d.ts.map +1 -1
- package/dist/fileDrop/index.d.ts +10 -10
- package/dist/fileDrop/index.d.ts.map +1 -1
- package/dist/group.d.ts.map +1 -1
- package/dist/hoverIntent/hoverIntent.d.ts +103 -0
- package/dist/hoverIntent/hoverIntent.d.ts.map +1 -0
- package/dist/hoverIntent/hoverIntent.js +210 -0
- package/dist/hoverIntent/index.d.ts +4 -0
- package/dist/hoverIntent/index.d.ts.map +1 -0
- package/dist/hoverIntent/index.js +2 -0
- package/dist/hoverIntent/message.d.ts +42 -0
- package/dist/hoverIntent/message.d.ts.map +1 -0
- package/dist/hoverIntent/message.js +23 -0
- package/dist/hoverIntent/public.d.ts +3 -0
- package/dist/hoverIntent/public.d.ts.map +1 -0
- package/dist/hoverIntent/public.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/input/index.d.ts.map +1 -1
- package/dist/internal/optionExtensions.d.ts.map +1 -1
- package/dist/internal/selectors.d.ts.map +1 -1
- package/dist/keyboard.d.ts.map +1 -1
- package/dist/listbox/multi.d.ts +43 -43
- package/dist/listbox/multi.d.ts.map +1 -1
- package/dist/listbox/shared.d.ts +38 -38
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/shared.js +46 -39
- package/dist/listbox/single.d.ts +45 -45
- package/dist/listbox/single.d.ts.map +1 -1
- package/dist/menu/index.d.ts +70 -70
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +39 -32
- package/dist/nav/index.d.ts.map +1 -1
- package/dist/popover/index.d.ts +33 -33
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +36 -29
- package/dist/radioGroup/index.d.ts +6 -6
- package/dist/radioGroup/index.d.ts.map +1 -1
- package/dist/select/index.d.ts.map +1 -1
- package/dist/slider/index.d.ts +72 -72
- package/dist/slider/index.d.ts.map +1 -1
- package/dist/switch/index.d.ts.map +1 -1
- package/dist/tabs/index.d.ts +6 -6
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.d.ts +18 -15
- package/dist/test/apps/disabledButton.d.ts.map +1 -1
- package/dist/textarea/index.d.ts.map +1 -1
- package/dist/toast/index.d.ts +224 -224
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/schema.d.ts +16 -16
- package/dist/toast/schema.d.ts.map +1 -1
- package/dist/toast/test.d.ts.map +1 -1
- package/dist/toast/update.d.ts +151 -151
- package/dist/toast/update.d.ts.map +1 -1
- package/dist/tooltip/message.d.ts +2 -2
- package/dist/tooltip/message.d.ts.map +1 -1
- package/dist/tooltip/tooltip.d.ts +7 -7
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +15 -11
- package/dist/typeahead.d.ts.map +1 -1
- package/dist/virtualList/index.d.ts +10 -10
- package/dist/virtualList/index.d.ts.map +1 -1
- package/dist/virtualList/index.js +5 -5
- package/package.json +12 -10
package/dist/toast/index.d.ts
CHANGED
|
@@ -45,84 +45,6 @@ export type EntryHandlers = Readonly<{
|
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
47
|
export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
48
|
-
readonly view: import("foldkit/submodel").View<{
|
|
49
|
-
readonly id: string;
|
|
50
|
-
readonly defaultDuration: import("effect/Duration").Duration;
|
|
51
|
-
readonly entries: readonly {
|
|
52
|
-
readonly id: string;
|
|
53
|
-
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
54
|
-
readonly animation: {
|
|
55
|
-
readonly id: string;
|
|
56
|
-
readonly isShowing: boolean;
|
|
57
|
-
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
58
|
-
};
|
|
59
|
-
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
60
|
-
readonly pendingDismissVersion: number;
|
|
61
|
-
readonly isHovered: boolean;
|
|
62
|
-
readonly payload: A;
|
|
63
|
-
}[];
|
|
64
|
-
readonly nextEntryKey: number;
|
|
65
|
-
}, {
|
|
66
|
-
readonly _tag: "GotAnimationMessage";
|
|
67
|
-
readonly entryId: string;
|
|
68
|
-
readonly message: {
|
|
69
|
-
readonly _tag: "Showed";
|
|
70
|
-
} | {
|
|
71
|
-
readonly _tag: "Hid";
|
|
72
|
-
} | {
|
|
73
|
-
readonly _tag: "CompletedWaitForPaint";
|
|
74
|
-
} | {
|
|
75
|
-
readonly _tag: "EndedAnimation";
|
|
76
|
-
};
|
|
77
|
-
} | {
|
|
78
|
-
readonly _tag: "Dismissed";
|
|
79
|
-
readonly entryId: string;
|
|
80
|
-
} | {
|
|
81
|
-
readonly _tag: "DismissedAll";
|
|
82
|
-
} | {
|
|
83
|
-
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
84
|
-
readonly entryId: string;
|
|
85
|
-
readonly version: number;
|
|
86
|
-
} | {
|
|
87
|
-
readonly _tag: "HoveredEntry";
|
|
88
|
-
readonly entryId: string;
|
|
89
|
-
} | {
|
|
90
|
-
readonly _tag: "LeftEntry";
|
|
91
|
-
readonly entryId: string;
|
|
92
|
-
} | {
|
|
93
|
-
readonly _tag: "Added";
|
|
94
|
-
readonly entry: {
|
|
95
|
-
readonly id: string;
|
|
96
|
-
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
97
|
-
readonly animation: {
|
|
98
|
-
readonly id: string;
|
|
99
|
-
readonly isShowing: boolean;
|
|
100
|
-
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
101
|
-
};
|
|
102
|
-
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
103
|
-
readonly pendingDismissVersion: number;
|
|
104
|
-
readonly isHovered: boolean;
|
|
105
|
-
readonly payload: A;
|
|
106
|
-
};
|
|
107
|
-
}, Readonly<{
|
|
108
|
-
position: Position;
|
|
109
|
-
entryToView: (entry: {
|
|
110
|
-
readonly id: string;
|
|
111
|
-
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
112
|
-
readonly animation: {
|
|
113
|
-
readonly id: string;
|
|
114
|
-
readonly isShowing: boolean;
|
|
115
|
-
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
116
|
-
};
|
|
117
|
-
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
118
|
-
readonly pendingDismissVersion: number;
|
|
119
|
-
readonly isHovered: boolean;
|
|
120
|
-
readonly payload: A;
|
|
121
|
-
}, handlers: EntryHandlers) => Html;
|
|
122
|
-
ariaLabel?: string;
|
|
123
|
-
containerClassName?: string;
|
|
124
|
-
entryClassName?: string;
|
|
125
|
-
}>>;
|
|
126
48
|
readonly Entry: S.Struct<{
|
|
127
49
|
readonly id: S.String;
|
|
128
50
|
readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
|
|
@@ -171,22 +93,22 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
171
93
|
}>;
|
|
172
94
|
};
|
|
173
95
|
readonly Dismissed: {
|
|
174
|
-
|
|
96
|
+
entryId: S.String;
|
|
175
97
|
};
|
|
176
98
|
readonly DismissedAll: {};
|
|
177
99
|
readonly CompletedWaitBeforeDismissal: {
|
|
178
|
-
|
|
179
|
-
|
|
100
|
+
entryId: S.String;
|
|
101
|
+
version: S.Number;
|
|
180
102
|
};
|
|
181
103
|
readonly HoveredEntry: {
|
|
182
|
-
|
|
104
|
+
entryId: S.String;
|
|
183
105
|
};
|
|
184
106
|
readonly LeftEntry: {
|
|
185
|
-
|
|
107
|
+
entryId: S.String;
|
|
186
108
|
};
|
|
187
109
|
readonly GotAnimationMessage: {
|
|
188
|
-
|
|
189
|
-
|
|
110
|
+
entryId: S.String;
|
|
111
|
+
message: import("foldkit/message").MessageUnion<{
|
|
190
112
|
readonly Showed: {};
|
|
191
113
|
readonly Hid: {};
|
|
192
114
|
readonly CompletedWaitForPaint: {};
|
|
@@ -229,7 +151,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
229
151
|
readonly animation: {
|
|
230
152
|
readonly id: string;
|
|
231
153
|
readonly isShowing: boolean;
|
|
232
|
-
readonly transitionState: "
|
|
154
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
233
155
|
};
|
|
234
156
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
235
157
|
readonly pendingDismissVersion: number;
|
|
@@ -247,7 +169,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
247
169
|
readonly animation: {
|
|
248
170
|
readonly id: string;
|
|
249
171
|
readonly isShowing: boolean;
|
|
250
|
-
readonly transitionState: "
|
|
172
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
251
173
|
};
|
|
252
174
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
253
175
|
readonly pendingDismissVersion: number;
|
|
@@ -257,31 +179,6 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
257
179
|
readonly nextEntryKey: number;
|
|
258
180
|
}, message: {
|
|
259
181
|
readonly _tag: "DismissedAll";
|
|
260
|
-
} | {
|
|
261
|
-
readonly _tag: "GotAnimationMessage";
|
|
262
|
-
readonly entryId: string;
|
|
263
|
-
readonly message: {
|
|
264
|
-
readonly _tag: "Showed";
|
|
265
|
-
} | {
|
|
266
|
-
readonly _tag: "Hid";
|
|
267
|
-
} | {
|
|
268
|
-
readonly _tag: "CompletedWaitForPaint";
|
|
269
|
-
} | {
|
|
270
|
-
readonly _tag: "EndedAnimation";
|
|
271
|
-
};
|
|
272
|
-
} | {
|
|
273
|
-
readonly _tag: "Dismissed";
|
|
274
|
-
readonly entryId: string;
|
|
275
|
-
} | {
|
|
276
|
-
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
277
|
-
readonly entryId: string;
|
|
278
|
-
readonly version: number;
|
|
279
|
-
} | {
|
|
280
|
-
readonly _tag: "HoveredEntry";
|
|
281
|
-
readonly entryId: string;
|
|
282
|
-
} | {
|
|
283
|
-
readonly _tag: "LeftEntry";
|
|
284
|
-
readonly entryId: string;
|
|
285
182
|
} | {
|
|
286
183
|
readonly _tag: "Added";
|
|
287
184
|
readonly entry: {
|
|
@@ -290,13 +187,38 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
290
187
|
readonly animation: {
|
|
291
188
|
readonly id: string;
|
|
292
189
|
readonly isShowing: boolean;
|
|
293
|
-
readonly transitionState: "
|
|
190
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
294
191
|
};
|
|
295
192
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
296
193
|
readonly pendingDismissVersion: number;
|
|
297
194
|
readonly isHovered: boolean;
|
|
298
195
|
readonly payload: A;
|
|
299
196
|
};
|
|
197
|
+
} | {
|
|
198
|
+
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
199
|
+
readonly entryId: string;
|
|
200
|
+
readonly version: number;
|
|
201
|
+
} | {
|
|
202
|
+
readonly _tag: "Dismissed";
|
|
203
|
+
readonly entryId: string;
|
|
204
|
+
} | {
|
|
205
|
+
readonly _tag: "GotAnimationMessage";
|
|
206
|
+
readonly entryId: string;
|
|
207
|
+
readonly message: {
|
|
208
|
+
readonly _tag: "CompletedWaitForPaint";
|
|
209
|
+
} | {
|
|
210
|
+
readonly _tag: "EndedAnimation";
|
|
211
|
+
} | {
|
|
212
|
+
readonly _tag: "Hid";
|
|
213
|
+
} | {
|
|
214
|
+
readonly _tag: "Showed";
|
|
215
|
+
};
|
|
216
|
+
} | {
|
|
217
|
+
readonly _tag: "HoveredEntry";
|
|
218
|
+
readonly entryId: string;
|
|
219
|
+
} | {
|
|
220
|
+
readonly _tag: "LeftEntry";
|
|
221
|
+
readonly entryId: string;
|
|
300
222
|
}) => Readonly<{
|
|
301
223
|
model: {
|
|
302
224
|
readonly id: string;
|
|
@@ -307,7 +229,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
307
229
|
readonly animation: {
|
|
308
230
|
readonly id: string;
|
|
309
231
|
readonly isShowing: boolean;
|
|
310
|
-
readonly transitionState: "
|
|
232
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
311
233
|
};
|
|
312
234
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
313
235
|
readonly pendingDismissVersion: number;
|
|
@@ -318,31 +240,6 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
318
240
|
};
|
|
319
241
|
commands?: import("foldkit/update").Commands<{
|
|
320
242
|
readonly _tag: "DismissedAll";
|
|
321
|
-
} | {
|
|
322
|
-
readonly _tag: "GotAnimationMessage";
|
|
323
|
-
readonly entryId: string;
|
|
324
|
-
readonly message: {
|
|
325
|
-
readonly _tag: "Showed";
|
|
326
|
-
} | {
|
|
327
|
-
readonly _tag: "Hid";
|
|
328
|
-
} | {
|
|
329
|
-
readonly _tag: "CompletedWaitForPaint";
|
|
330
|
-
} | {
|
|
331
|
-
readonly _tag: "EndedAnimation";
|
|
332
|
-
};
|
|
333
|
-
} | {
|
|
334
|
-
readonly _tag: "Dismissed";
|
|
335
|
-
readonly entryId: string;
|
|
336
|
-
} | {
|
|
337
|
-
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
338
|
-
readonly entryId: string;
|
|
339
|
-
readonly version: number;
|
|
340
|
-
} | {
|
|
341
|
-
readonly _tag: "HoveredEntry";
|
|
342
|
-
readonly entryId: string;
|
|
343
|
-
} | {
|
|
344
|
-
readonly _tag: "LeftEntry";
|
|
345
|
-
readonly entryId: string;
|
|
346
243
|
} | {
|
|
347
244
|
readonly _tag: "Added";
|
|
348
245
|
readonly entry: {
|
|
@@ -351,13 +248,38 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
351
248
|
readonly animation: {
|
|
352
249
|
readonly id: string;
|
|
353
250
|
readonly isShowing: boolean;
|
|
354
|
-
readonly transitionState: "
|
|
251
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
355
252
|
};
|
|
356
253
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
357
254
|
readonly pendingDismissVersion: number;
|
|
358
255
|
readonly isHovered: boolean;
|
|
359
256
|
readonly payload: A;
|
|
360
257
|
};
|
|
258
|
+
} | {
|
|
259
|
+
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
260
|
+
readonly entryId: string;
|
|
261
|
+
readonly version: number;
|
|
262
|
+
} | {
|
|
263
|
+
readonly _tag: "Dismissed";
|
|
264
|
+
readonly entryId: string;
|
|
265
|
+
} | {
|
|
266
|
+
readonly _tag: "GotAnimationMessage";
|
|
267
|
+
readonly entryId: string;
|
|
268
|
+
readonly message: {
|
|
269
|
+
readonly _tag: "CompletedWaitForPaint";
|
|
270
|
+
} | {
|
|
271
|
+
readonly _tag: "EndedAnimation";
|
|
272
|
+
} | {
|
|
273
|
+
readonly _tag: "Hid";
|
|
274
|
+
} | {
|
|
275
|
+
readonly _tag: "Showed";
|
|
276
|
+
};
|
|
277
|
+
} | {
|
|
278
|
+
readonly _tag: "HoveredEntry";
|
|
279
|
+
readonly entryId: string;
|
|
280
|
+
} | {
|
|
281
|
+
readonly _tag: "LeftEntry";
|
|
282
|
+
readonly entryId: string;
|
|
361
283
|
}, never>;
|
|
362
284
|
outMessage?: {
|
|
363
285
|
readonly _tag: "DismissedToast";
|
|
@@ -373,7 +295,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
373
295
|
readonly animation: {
|
|
374
296
|
readonly id: string;
|
|
375
297
|
readonly isShowing: boolean;
|
|
376
|
-
readonly transitionState: "
|
|
298
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
377
299
|
};
|
|
378
300
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
379
301
|
readonly pendingDismissVersion: number;
|
|
@@ -396,7 +318,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
396
318
|
readonly animation: {
|
|
397
319
|
readonly id: string;
|
|
398
320
|
readonly isShowing: boolean;
|
|
399
|
-
readonly transitionState: "
|
|
321
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
400
322
|
};
|
|
401
323
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
402
324
|
readonly pendingDismissVersion: number;
|
|
@@ -407,31 +329,6 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
407
329
|
};
|
|
408
330
|
commands?: import("foldkit/update").Commands<{
|
|
409
331
|
readonly _tag: "DismissedAll";
|
|
410
|
-
} | {
|
|
411
|
-
readonly _tag: "GotAnimationMessage";
|
|
412
|
-
readonly entryId: string;
|
|
413
|
-
readonly message: {
|
|
414
|
-
readonly _tag: "Showed";
|
|
415
|
-
} | {
|
|
416
|
-
readonly _tag: "Hid";
|
|
417
|
-
} | {
|
|
418
|
-
readonly _tag: "CompletedWaitForPaint";
|
|
419
|
-
} | {
|
|
420
|
-
readonly _tag: "EndedAnimation";
|
|
421
|
-
};
|
|
422
|
-
} | {
|
|
423
|
-
readonly _tag: "Dismissed";
|
|
424
|
-
readonly entryId: string;
|
|
425
|
-
} | {
|
|
426
|
-
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
427
|
-
readonly entryId: string;
|
|
428
|
-
readonly version: number;
|
|
429
|
-
} | {
|
|
430
|
-
readonly _tag: "HoveredEntry";
|
|
431
|
-
readonly entryId: string;
|
|
432
|
-
} | {
|
|
433
|
-
readonly _tag: "LeftEntry";
|
|
434
|
-
readonly entryId: string;
|
|
435
332
|
} | {
|
|
436
333
|
readonly _tag: "Added";
|
|
437
334
|
readonly entry: {
|
|
@@ -440,13 +337,38 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
440
337
|
readonly animation: {
|
|
441
338
|
readonly id: string;
|
|
442
339
|
readonly isShowing: boolean;
|
|
443
|
-
readonly transitionState: "
|
|
340
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
444
341
|
};
|
|
445
342
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
446
343
|
readonly pendingDismissVersion: number;
|
|
447
344
|
readonly isHovered: boolean;
|
|
448
345
|
readonly payload: A;
|
|
449
346
|
};
|
|
347
|
+
} | {
|
|
348
|
+
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
349
|
+
readonly entryId: string;
|
|
350
|
+
readonly version: number;
|
|
351
|
+
} | {
|
|
352
|
+
readonly _tag: "Dismissed";
|
|
353
|
+
readonly entryId: string;
|
|
354
|
+
} | {
|
|
355
|
+
readonly _tag: "GotAnimationMessage";
|
|
356
|
+
readonly entryId: string;
|
|
357
|
+
readonly message: {
|
|
358
|
+
readonly _tag: "CompletedWaitForPaint";
|
|
359
|
+
} | {
|
|
360
|
+
readonly _tag: "EndedAnimation";
|
|
361
|
+
} | {
|
|
362
|
+
readonly _tag: "Hid";
|
|
363
|
+
} | {
|
|
364
|
+
readonly _tag: "Showed";
|
|
365
|
+
};
|
|
366
|
+
} | {
|
|
367
|
+
readonly _tag: "HoveredEntry";
|
|
368
|
+
readonly entryId: string;
|
|
369
|
+
} | {
|
|
370
|
+
readonly _tag: "LeftEntry";
|
|
371
|
+
readonly entryId: string;
|
|
450
372
|
}, never>;
|
|
451
373
|
outMessage?: {
|
|
452
374
|
readonly _tag: "DismissedToast";
|
|
@@ -462,7 +384,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
462
384
|
readonly animation: {
|
|
463
385
|
readonly id: string;
|
|
464
386
|
readonly isShowing: boolean;
|
|
465
|
-
readonly transitionState: "
|
|
387
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
466
388
|
};
|
|
467
389
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
468
390
|
readonly pendingDismissVersion: number;
|
|
@@ -480,7 +402,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
480
402
|
readonly animation: {
|
|
481
403
|
readonly id: string;
|
|
482
404
|
readonly isShowing: boolean;
|
|
483
|
-
readonly transitionState: "
|
|
405
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
484
406
|
};
|
|
485
407
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
486
408
|
readonly pendingDismissVersion: number;
|
|
@@ -491,31 +413,6 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
491
413
|
};
|
|
492
414
|
commands?: import("foldkit/update").Commands<{
|
|
493
415
|
readonly _tag: "DismissedAll";
|
|
494
|
-
} | {
|
|
495
|
-
readonly _tag: "GotAnimationMessage";
|
|
496
|
-
readonly entryId: string;
|
|
497
|
-
readonly message: {
|
|
498
|
-
readonly _tag: "Showed";
|
|
499
|
-
} | {
|
|
500
|
-
readonly _tag: "Hid";
|
|
501
|
-
} | {
|
|
502
|
-
readonly _tag: "CompletedWaitForPaint";
|
|
503
|
-
} | {
|
|
504
|
-
readonly _tag: "EndedAnimation";
|
|
505
|
-
};
|
|
506
|
-
} | {
|
|
507
|
-
readonly _tag: "Dismissed";
|
|
508
|
-
readonly entryId: string;
|
|
509
|
-
} | {
|
|
510
|
-
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
511
|
-
readonly entryId: string;
|
|
512
|
-
readonly version: number;
|
|
513
|
-
} | {
|
|
514
|
-
readonly _tag: "HoveredEntry";
|
|
515
|
-
readonly entryId: string;
|
|
516
|
-
} | {
|
|
517
|
-
readonly _tag: "LeftEntry";
|
|
518
|
-
readonly entryId: string;
|
|
519
416
|
} | {
|
|
520
417
|
readonly _tag: "Added";
|
|
521
418
|
readonly entry: {
|
|
@@ -524,13 +421,38 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
524
421
|
readonly animation: {
|
|
525
422
|
readonly id: string;
|
|
526
423
|
readonly isShowing: boolean;
|
|
527
|
-
readonly transitionState: "
|
|
424
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
528
425
|
};
|
|
529
426
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
530
427
|
readonly pendingDismissVersion: number;
|
|
531
428
|
readonly isHovered: boolean;
|
|
532
429
|
readonly payload: A;
|
|
533
430
|
};
|
|
431
|
+
} | {
|
|
432
|
+
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
433
|
+
readonly entryId: string;
|
|
434
|
+
readonly version: number;
|
|
435
|
+
} | {
|
|
436
|
+
readonly _tag: "Dismissed";
|
|
437
|
+
readonly entryId: string;
|
|
438
|
+
} | {
|
|
439
|
+
readonly _tag: "GotAnimationMessage";
|
|
440
|
+
readonly entryId: string;
|
|
441
|
+
readonly message: {
|
|
442
|
+
readonly _tag: "CompletedWaitForPaint";
|
|
443
|
+
} | {
|
|
444
|
+
readonly _tag: "EndedAnimation";
|
|
445
|
+
} | {
|
|
446
|
+
readonly _tag: "Hid";
|
|
447
|
+
} | {
|
|
448
|
+
readonly _tag: "Showed";
|
|
449
|
+
};
|
|
450
|
+
} | {
|
|
451
|
+
readonly _tag: "HoveredEntry";
|
|
452
|
+
readonly entryId: string;
|
|
453
|
+
} | {
|
|
454
|
+
readonly _tag: "LeftEntry";
|
|
455
|
+
readonly entryId: string;
|
|
534
456
|
}, never>;
|
|
535
457
|
outMessage?: {
|
|
536
458
|
readonly _tag: "DismissedToast";
|
|
@@ -546,7 +468,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
546
468
|
readonly animation: {
|
|
547
469
|
readonly id: string;
|
|
548
470
|
readonly isShowing: boolean;
|
|
549
|
-
readonly transitionState: "
|
|
471
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
550
472
|
};
|
|
551
473
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
552
474
|
readonly pendingDismissVersion: number;
|
|
@@ -564,7 +486,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
564
486
|
readonly animation: {
|
|
565
487
|
readonly id: string;
|
|
566
488
|
readonly isShowing: boolean;
|
|
567
|
-
readonly transitionState: "
|
|
489
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
568
490
|
};
|
|
569
491
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
570
492
|
readonly pendingDismissVersion: number;
|
|
@@ -575,31 +497,6 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
575
497
|
};
|
|
576
498
|
commands?: import("foldkit/update").Commands<{
|
|
577
499
|
readonly _tag: "DismissedAll";
|
|
578
|
-
} | {
|
|
579
|
-
readonly _tag: "GotAnimationMessage";
|
|
580
|
-
readonly entryId: string;
|
|
581
|
-
readonly message: {
|
|
582
|
-
readonly _tag: "Showed";
|
|
583
|
-
} | {
|
|
584
|
-
readonly _tag: "Hid";
|
|
585
|
-
} | {
|
|
586
|
-
readonly _tag: "CompletedWaitForPaint";
|
|
587
|
-
} | {
|
|
588
|
-
readonly _tag: "EndedAnimation";
|
|
589
|
-
};
|
|
590
|
-
} | {
|
|
591
|
-
readonly _tag: "Dismissed";
|
|
592
|
-
readonly entryId: string;
|
|
593
|
-
} | {
|
|
594
|
-
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
595
|
-
readonly entryId: string;
|
|
596
|
-
readonly version: number;
|
|
597
|
-
} | {
|
|
598
|
-
readonly _tag: "HoveredEntry";
|
|
599
|
-
readonly entryId: string;
|
|
600
|
-
} | {
|
|
601
|
-
readonly _tag: "LeftEntry";
|
|
602
|
-
readonly entryId: string;
|
|
603
500
|
} | {
|
|
604
501
|
readonly _tag: "Added";
|
|
605
502
|
readonly entry: {
|
|
@@ -608,18 +505,121 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
608
505
|
readonly animation: {
|
|
609
506
|
readonly id: string;
|
|
610
507
|
readonly isShowing: boolean;
|
|
611
|
-
readonly transitionState: "
|
|
508
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
612
509
|
};
|
|
613
510
|
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
614
511
|
readonly pendingDismissVersion: number;
|
|
615
512
|
readonly isHovered: boolean;
|
|
616
513
|
readonly payload: A;
|
|
617
514
|
};
|
|
515
|
+
} | {
|
|
516
|
+
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
517
|
+
readonly entryId: string;
|
|
518
|
+
readonly version: number;
|
|
519
|
+
} | {
|
|
520
|
+
readonly _tag: "Dismissed";
|
|
521
|
+
readonly entryId: string;
|
|
522
|
+
} | {
|
|
523
|
+
readonly _tag: "GotAnimationMessage";
|
|
524
|
+
readonly entryId: string;
|
|
525
|
+
readonly message: {
|
|
526
|
+
readonly _tag: "CompletedWaitForPaint";
|
|
527
|
+
} | {
|
|
528
|
+
readonly _tag: "EndedAnimation";
|
|
529
|
+
} | {
|
|
530
|
+
readonly _tag: "Hid";
|
|
531
|
+
} | {
|
|
532
|
+
readonly _tag: "Showed";
|
|
533
|
+
};
|
|
534
|
+
} | {
|
|
535
|
+
readonly _tag: "HoveredEntry";
|
|
536
|
+
readonly entryId: string;
|
|
537
|
+
} | {
|
|
538
|
+
readonly _tag: "LeftEntry";
|
|
539
|
+
readonly entryId: string;
|
|
618
540
|
}, never>;
|
|
619
541
|
outMessage?: {
|
|
620
542
|
readonly _tag: "DismissedToast";
|
|
621
543
|
readonly payload: A;
|
|
622
544
|
};
|
|
623
545
|
}>;
|
|
546
|
+
readonly view: import("foldkit/submodel").View<{
|
|
547
|
+
readonly id: string;
|
|
548
|
+
readonly defaultDuration: import("effect/Duration").Duration;
|
|
549
|
+
readonly entries: readonly {
|
|
550
|
+
readonly id: string;
|
|
551
|
+
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
552
|
+
readonly animation: {
|
|
553
|
+
readonly id: string;
|
|
554
|
+
readonly isShowing: boolean;
|
|
555
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
556
|
+
};
|
|
557
|
+
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
558
|
+
readonly pendingDismissVersion: number;
|
|
559
|
+
readonly isHovered: boolean;
|
|
560
|
+
readonly payload: A;
|
|
561
|
+
}[];
|
|
562
|
+
readonly nextEntryKey: number;
|
|
563
|
+
}, {
|
|
564
|
+
readonly _tag: "Added";
|
|
565
|
+
readonly entry: {
|
|
566
|
+
readonly id: string;
|
|
567
|
+
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
568
|
+
readonly animation: {
|
|
569
|
+
readonly id: string;
|
|
570
|
+
readonly isShowing: boolean;
|
|
571
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
572
|
+
};
|
|
573
|
+
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
574
|
+
readonly pendingDismissVersion: number;
|
|
575
|
+
readonly isHovered: boolean;
|
|
576
|
+
readonly payload: A;
|
|
577
|
+
};
|
|
578
|
+
} | {
|
|
579
|
+
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
580
|
+
readonly entryId: string;
|
|
581
|
+
readonly version: number;
|
|
582
|
+
} | {
|
|
583
|
+
readonly _tag: "Dismissed";
|
|
584
|
+
readonly entryId: string;
|
|
585
|
+
} | {
|
|
586
|
+
readonly _tag: "DismissedAll";
|
|
587
|
+
} | {
|
|
588
|
+
readonly _tag: "GotAnimationMessage";
|
|
589
|
+
readonly entryId: string;
|
|
590
|
+
readonly message: {
|
|
591
|
+
readonly _tag: "CompletedWaitForPaint";
|
|
592
|
+
} | {
|
|
593
|
+
readonly _tag: "EndedAnimation";
|
|
594
|
+
} | {
|
|
595
|
+
readonly _tag: "Hid";
|
|
596
|
+
} | {
|
|
597
|
+
readonly _tag: "Showed";
|
|
598
|
+
};
|
|
599
|
+
} | {
|
|
600
|
+
readonly _tag: "HoveredEntry";
|
|
601
|
+
readonly entryId: string;
|
|
602
|
+
} | {
|
|
603
|
+
readonly _tag: "LeftEntry";
|
|
604
|
+
readonly entryId: string;
|
|
605
|
+
}, Readonly<{
|
|
606
|
+
position: Position;
|
|
607
|
+
entryToView: (entry: {
|
|
608
|
+
readonly id: string;
|
|
609
|
+
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
610
|
+
readonly animation: {
|
|
611
|
+
readonly id: string;
|
|
612
|
+
readonly isShowing: boolean;
|
|
613
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
614
|
+
};
|
|
615
|
+
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
616
|
+
readonly pendingDismissVersion: number;
|
|
617
|
+
readonly isHovered: boolean;
|
|
618
|
+
readonly payload: A;
|
|
619
|
+
}, handlers: EntryHandlers) => Html;
|
|
620
|
+
ariaLabel?: string;
|
|
621
|
+
containerClassName?: string;
|
|
622
|
+
entryClassName?: string;
|
|
623
|
+
}>>;
|
|
624
624
|
};
|
|
625
625
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAA;AAChD,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAG9E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAe,MAAM,aAAa,CAAA;AAE9D,YAAY,EACV,4BAA4B,EAC5B,SAAS,EACT,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,UAAU,EACV,SAAS,GACV,MAAM,aAAa,CAAA;AACpB,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAA;AA0E1D;;;;qDAIqD;AACrD,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,OAAO,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;CACvC,CAAC,CAAA;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,IAAI,GAAI,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAA;AAChD,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAG9E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAe,MAAM,aAAa,CAAA;AAE9D,YAAY,EACV,4BAA4B,EAC5B,SAAS,EACT,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,UAAU,EACV,SAAS,GACV,MAAM,aAAa,CAAA;AACpB,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAA;AA0E1D;;;;qDAIqD;AACrD,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,OAAO,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;CACvC,CAAC,CAAA;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,IAAI,GAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUzC,QAAQ;qBACL,CAAC,KAAK;;;;;;;;;;;;SAAO,EAAE,QAAQ,EAAE,aAAa,KAAK,IAAI;oBAChD,MAAM;6BACG,MAAM;yBACV,MAAM;;CAyF1B,CAAA"}
|