@foldkit/ui 0.148.2 → 0.149.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation/index.d.ts +3 -3
- package/dist/animation/index.d.ts.map +1 -1
- package/dist/animation/index.js +2 -2
- package/dist/animation/public.d.ts +1 -1
- package/dist/animation/public.d.ts.map +1 -1
- package/dist/animation/public.js +1 -1
- package/dist/animation/schema.d.ts +12 -21
- package/dist/animation/schema.d.ts.map +1 -1
- package/dist/animation/schema.js +11 -15
- package/dist/animation/update.d.ts +1 -1
- package/dist/animation/update.d.ts.map +1 -1
- package/dist/animation/update.js +9 -9
- package/dist/calendar/index.d.ts +50 -105
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/calendar/index.js +61 -98
- package/dist/calendar/public.d.ts +1 -1
- package/dist/calendar/public.d.ts.map +1 -1
- package/dist/calendar/public.js +1 -1
- package/dist/combobox/multi.d.ts +9 -9
- package/dist/combobox/multi.d.ts.map +1 -1
- package/dist/combobox/multi.js +9 -9
- package/dist/combobox/public.d.ts +1 -1
- package/dist/combobox/public.d.ts.map +1 -1
- package/dist/combobox/public.js +1 -1
- package/dist/combobox/shared.d.ts +93 -137
- package/dist/combobox/shared.d.ts.map +1 -1
- package/dist/combobox/shared.js +108 -153
- package/dist/combobox/single.d.ts +9 -9
- package/dist/combobox/single.d.ts.map +1 -1
- package/dist/combobox/single.js +10 -10
- package/dist/datePicker/index.d.ts +88 -84
- package/dist/datePicker/index.d.ts.map +1 -1
- package/dist/datePicker/index.js +33 -63
- package/dist/datePicker/public.d.ts +1 -1
- package/dist/datePicker/public.d.ts.map +1 -1
- package/dist/datePicker/public.js +1 -1
- package/dist/dialog/index.d.ts +28 -49
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/dialog/index.js +39 -67
- package/dist/dialog/public.d.ts +1 -1
- package/dist/dialog/public.d.ts.map +1 -1
- package/dist/dialog/public.js +1 -1
- package/dist/dragAndDrop/index.d.ts +45 -72
- package/dist/dragAndDrop/index.d.ts.map +1 -1
- package/dist/dragAndDrop/index.js +72 -93
- package/dist/dragAndDrop/public.d.ts +1 -1
- package/dist/dragAndDrop/public.d.ts.map +1 -1
- package/dist/dragAndDrop/public.js +1 -1
- package/dist/fileDrop/index.d.ts +14 -35
- package/dist/fileDrop/index.d.ts.map +1 -1
- package/dist/fileDrop/index.js +20 -46
- package/dist/fileDrop/public.d.ts +1 -1
- package/dist/fileDrop/public.d.ts.map +1 -1
- package/dist/fileDrop/public.js +1 -1
- package/dist/listbox/multi.d.ts +7 -7
- package/dist/listbox/multi.d.ts.map +1 -1
- package/dist/listbox/multi.js +8 -8
- package/dist/listbox/public.d.ts +1 -1
- package/dist/listbox/public.d.ts.map +1 -1
- package/dist/listbox/public.js +1 -1
- package/dist/listbox/shared.d.ts +80 -127
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/shared.js +92 -149
- package/dist/listbox/single.d.ts +7 -7
- package/dist/listbox/single.d.ts.map +1 -1
- package/dist/listbox/single.js +8 -8
- package/dist/menu/index.d.ts +86 -134
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +141 -189
- package/dist/menu/public.d.ts +1 -1
- package/dist/menu/public.d.ts.map +1 -1
- package/dist/menu/public.js +1 -1
- package/dist/popover/index.d.ts +39 -65
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +68 -98
- package/dist/popover/public.d.ts +1 -1
- package/dist/popover/public.d.ts.map +1 -1
- package/dist/popover/public.js +1 -1
- package/dist/radioGroup/index.d.ts +18 -29
- package/dist/radioGroup/index.d.ts.map +1 -1
- package/dist/radioGroup/index.js +22 -27
- package/dist/radioGroup/public.d.ts +1 -1
- package/dist/radioGroup/public.d.ts.map +1 -1
- package/dist/radioGroup/public.js +1 -1
- package/dist/slider/index.d.ts +29 -51
- package/dist/slider/index.d.ts.map +1 -1
- package/dist/slider/index.js +36 -56
- package/dist/slider/public.d.ts +1 -1
- package/dist/slider/public.d.ts.map +1 -1
- package/dist/slider/public.js +1 -1
- package/dist/tabs/index.d.ts +18 -28
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/tabs/index.js +22 -26
- package/dist/tabs/public.d.ts +1 -1
- package/dist/tabs/public.d.ts.map +1 -1
- package/dist/tabs/public.js +1 -1
- package/dist/test/apps/disabledButton.d.ts +71 -14
- package/dist/test/apps/disabledButton.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.js +14 -13
- package/dist/toast/index.d.ts +124 -109
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/index.js +5 -5
- package/dist/toast/public.d.ts +1 -1
- package/dist/toast/public.d.ts.map +1 -1
- package/dist/toast/public.js +1 -1
- package/dist/toast/schema.d.ts +72 -84
- package/dist/toast/schema.d.ts.map +1 -1
- package/dist/toast/schema.js +31 -41
- package/dist/toast/test.d.ts.map +1 -1
- package/dist/toast/test.js +6 -3
- package/dist/toast/update.d.ts +104 -89
- package/dist/toast/update.d.ts.map +1 -1
- package/dist/toast/update.js +19 -20
- package/dist/tooltip/message.d.ts +26 -47
- package/dist/tooltip/message.d.ts.map +1 -1
- package/dist/tooltip/message.js +15 -40
- package/dist/tooltip/public.d.ts +1 -1
- package/dist/tooltip/public.d.ts.map +1 -1
- package/dist/tooltip/public.js +1 -1
- package/dist/tooltip/tooltip.d.ts +1 -1
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +15 -16
- package/dist/virtualList/index.d.ts +46 -23
- package/dist/virtualList/index.d.ts.map +1 -1
- package/dist/virtualList/index.js +12 -23
- package/dist/virtualList/public.d.ts +1 -1
- package/dist/virtualList/public.d.ts.map +1 -1
- package/dist/virtualList/public.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/tabs/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/tabs/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,QAAQ,EACR,WAAW,GACZ,MAAM,YAAY,CAAA;AAEnB,YAAY,EACV,cAAc,EACd,UAAU,EACV,UAAU,EACV,UAAU,EACV,OAAO,EACP,MAAM,GACP,MAAM,YAAY,CAAA"}
|
package/dist/tabs/public.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { init, create, Model, Message, OutMessage,
|
|
1
|
+
export { init, create, Model, Message, OutMessage, FocusTab, Orientation, } from './index.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Schema as S } from 'effect';
|
|
2
|
-
import * as Command from 'foldkit/command';
|
|
1
|
+
import { Option, Schema as S } from 'effect';
|
|
3
2
|
import type { Html, HtmlBuilder } from 'foldkit/html';
|
|
4
3
|
export declare const Model: S.Struct<{
|
|
5
4
|
readonly isEnabled: S.Boolean;
|
|
@@ -16,21 +15,79 @@ export declare const Model: S.Struct<{
|
|
|
16
15
|
}>;
|
|
17
16
|
}>;
|
|
18
17
|
export type Model = typeof Model.Type;
|
|
19
|
-
export declare const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
message:
|
|
24
|
-
|
|
18
|
+
export declare const Message: import("foldkit/message").MessageUnion<{
|
|
19
|
+
readonly ClickedToggle: {};
|
|
20
|
+
readonly ClickedSubmit: {};
|
|
21
|
+
readonly GotDialogMessage: {
|
|
22
|
+
readonly message: import("foldkit/message").MessageUnion<{
|
|
23
|
+
readonly RequestedOpen: {};
|
|
24
|
+
readonly RequestedClose: {};
|
|
25
|
+
readonly CompletedShowDialog: {};
|
|
26
|
+
readonly CompletedCloseDialog: {};
|
|
27
|
+
readonly Unmounted: {};
|
|
28
|
+
readonly CompletedReleaseDialogResources: {};
|
|
29
|
+
readonly GotAnimationMessage: {
|
|
30
|
+
readonly message: import("foldkit/message").MessageUnion<{
|
|
31
|
+
readonly Showed: {};
|
|
32
|
+
readonly Hid: {};
|
|
33
|
+
readonly CompletedWaitForPaint: {};
|
|
34
|
+
readonly EndedAnimation: {};
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
25
39
|
}>;
|
|
26
|
-
export declare const Message: S.Union<readonly [import("foldkit/schema").CallableTaggedStruct<"ClickedToggle", {}>, import("foldkit/schema").CallableTaggedStruct<"ClickedSubmit", {}>, import("foldkit/schema").CallableTaggedStruct<"GotDialogMessage", {
|
|
27
|
-
message: S.Union<[import("foldkit/schema").CallableTaggedStruct<"RequestedOpen", {}>, import("foldkit/schema").CallableTaggedStruct<"RequestedClose", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedShowDialog", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedCloseDialog", {}>, import("foldkit/schema").CallableTaggedStruct<"Unmounted", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedReleaseDialogResources", {}>, import("foldkit/schema").CallableTaggedStruct<"GotAnimationMessage", {
|
|
28
|
-
message: S.Union<[import("foldkit/schema").CallableTaggedStruct<"Showed", {}>, import("foldkit/schema").CallableTaggedStruct<"Hid", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedWaitForPaint", {}>, import("foldkit/schema").CallableTaggedStruct<"EndedAnimation", {}>]>;
|
|
29
|
-
}>]>;
|
|
30
|
-
}>]>;
|
|
31
40
|
export type Message = typeof Message.Type;
|
|
32
41
|
export declare const initialModel: Model;
|
|
33
|
-
export declare const update: (model: Model, message: Message) => readonly [
|
|
42
|
+
export declare const update: (model: Model, message: Message) => readonly [{
|
|
43
|
+
readonly isEnabled: boolean;
|
|
44
|
+
readonly dialog: {
|
|
45
|
+
readonly id: string;
|
|
46
|
+
readonly isOpen: boolean;
|
|
47
|
+
readonly isAnimated: boolean;
|
|
48
|
+
readonly animation: {
|
|
49
|
+
readonly id: string;
|
|
50
|
+
readonly isShowing: boolean;
|
|
51
|
+
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
52
|
+
};
|
|
53
|
+
readonly maybeFocusSelector: Option.Option<string>;
|
|
54
|
+
};
|
|
55
|
+
}, readonly Readonly<{
|
|
56
|
+
name: string;
|
|
57
|
+
args?: Record<string, unknown>;
|
|
58
|
+
key?: string;
|
|
59
|
+
effect: import("effect/Effect").Effect<{
|
|
60
|
+
readonly _tag: "ClickedToggle";
|
|
61
|
+
} | {
|
|
62
|
+
readonly _tag: "ClickedSubmit";
|
|
63
|
+
} | {
|
|
64
|
+
readonly _tag: "GotDialogMessage";
|
|
65
|
+
readonly message: {
|
|
66
|
+
readonly _tag: "RequestedOpen";
|
|
67
|
+
} | {
|
|
68
|
+
readonly _tag: "RequestedClose";
|
|
69
|
+
} | {
|
|
70
|
+
readonly _tag: "CompletedShowDialog";
|
|
71
|
+
} | {
|
|
72
|
+
readonly _tag: "CompletedCloseDialog";
|
|
73
|
+
} | {
|
|
74
|
+
readonly _tag: "Unmounted";
|
|
75
|
+
} | {
|
|
76
|
+
readonly _tag: "CompletedReleaseDialogResources";
|
|
77
|
+
} | {
|
|
78
|
+
readonly _tag: "GotAnimationMessage";
|
|
79
|
+
readonly message: {
|
|
80
|
+
readonly _tag: "Showed";
|
|
81
|
+
} | {
|
|
82
|
+
readonly _tag: "Hid";
|
|
83
|
+
} | {
|
|
84
|
+
readonly _tag: "CompletedWaitForPaint";
|
|
85
|
+
} | {
|
|
86
|
+
readonly _tag: "EndedAnimation";
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}, never, never>;
|
|
90
|
+
}>[]];
|
|
34
91
|
/** Plain view, no dialog wrapper. */
|
|
35
92
|
export declare const view: (model: Model, h: HtmlBuilder<Message>) => Html;
|
|
36
93
|
/** View with submit button inside a dialog's panel. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disabledButton.d.ts","sourceRoot":"","sources":["../../../src/test/apps/disabledButton.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"disabledButton.d.ts","sourceRoot":"","sources":["../../../src/test/apps/disabledButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAA;AAExD,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AASrD,eAAO,MAAM,KAAK;;;;;;;;;;;;;EAGhB,CAAA;AACF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAIrC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;EAIlB,CAAA;AACF,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAIzC,eAAO,MAAM,YAAY,EAAE,KAG1B,CAAA;AAoBD,eAAO,MAAM,MAAM,GAAI,OAAO,KAAK,EAAE,SAAS,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KASlD,CAAA;AAeH,qCAAqC;AACrC,eAAO,MAAM,IAAI,GAAI,OAAO,KAAK,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC,KAAG,IAQ5D,CAAA;AAED,uDAAuD;AACvD,eAAO,MAAM,cAAc,GAAI,OAAO,KAAK,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC,KAAG,IAyBtE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { brandViewResult as __foldkitBrandViewResult } from 'foldkit/brand'
|
|
2
2
|
import { Match as M, Option, Schema as S } from 'effect';
|
|
3
|
-
import {
|
|
3
|
+
import { defineMessageUnion } from 'foldkit/message';
|
|
4
4
|
import { evo } from 'foldkit/struct';
|
|
5
5
|
import * as Update from 'foldkit/update';
|
|
6
6
|
import * as Dialog from '../../dialog/index.js';
|
|
@@ -10,12 +10,11 @@ export const Model = S.Struct({
|
|
|
10
10
|
dialog: Dialog.Model,
|
|
11
11
|
});
|
|
12
12
|
// MESSAGE
|
|
13
|
-
export const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
message: Dialog.Message,
|
|
13
|
+
export const Message = defineMessageUnion({
|
|
14
|
+
ClickedToggle: {},
|
|
15
|
+
ClickedSubmit: {},
|
|
16
|
+
GotDialogMessage: { message: Dialog.Message },
|
|
17
17
|
});
|
|
18
|
-
export const Message = S.Union([ClickedToggle, ClickedSubmit, GotDialogMessage]);
|
|
19
18
|
// INIT
|
|
20
19
|
export const initialModel = {
|
|
21
20
|
isEnabled: false,
|
|
@@ -30,30 +29,32 @@ const foldDialog = Update.foldChild({
|
|
|
30
29
|
update: Dialog.update,
|
|
31
30
|
read: (model) => __foldkitBrandViewResult((Option.some(model.dialog)), "@foldkit/ui/test/apps/disabledButton.js#read"),
|
|
32
31
|
write: (model, nextDialog) => __foldkitBrandViewResult((evo(model, { dialog: () => __foldkitBrandViewResult((nextDialog), "@foldkit/ui/test/apps/disabledButton.js#dialog") })), "@foldkit/ui/test/apps/disabledButton.js#write"),
|
|
33
|
-
toParentMessage: message => __foldkitBrandViewResult((GotDialogMessage({ message })), "@foldkit/ui/test/apps/disabledButton.js#toParentMessage"),
|
|
32
|
+
toParentMessage: message => __foldkitBrandViewResult((Message.GotDialogMessage({ message })), "@foldkit/ui/test/apps/disabledButton.js#toParentMessage"),
|
|
34
33
|
foldOutMessage: foldDialogOutMessage,
|
|
35
34
|
});
|
|
36
|
-
export const update = (model, message) => __foldkitBrandViewResult((
|
|
35
|
+
export const update = (model, message) => __foldkitBrandViewResult((Message.match(message, {
|
|
37
36
|
ClickedToggle: () => __foldkitBrandViewResult(([{ ...model, isEnabled: !model.isEnabled }, []]), "@foldkit/ui/test/apps/disabledButton.js#ClickedToggle"),
|
|
38
37
|
ClickedSubmit: () => __foldkitBrandViewResult(([model, []]), "@foldkit/ui/test/apps/disabledButton.js#ClickedSubmit"),
|
|
39
38
|
GotDialogMessage: ({ message: dialogMessage }) => __foldkitBrandViewResult((foldDialog(model, dialogMessage)), "@foldkit/ui/test/apps/disabledButton.js#GotDialogMessage"),
|
|
40
|
-
}))
|
|
39
|
+
})), "@foldkit/ui/test/apps/disabledButton.js#update");
|
|
41
40
|
// VIEW
|
|
42
41
|
const submitButton = (isEnabled, h) => __foldkitBrandViewResult((h.button([
|
|
43
42
|
h.Class('submit'),
|
|
44
|
-
...(isEnabled
|
|
43
|
+
...(isEnabled
|
|
44
|
+
? [h.OnClick(Message.ClickedSubmit())]
|
|
45
|
+
: [h.Disabled(true)]),
|
|
45
46
|
], ['Submit'])), "@foldkit/ui/test/apps/disabledButton.js#submitButton");
|
|
46
47
|
/** Plain view, no dialog wrapper. */
|
|
47
48
|
export const view = (model, h) => {
|
|
48
49
|
return __foldkitBrandViewResult((h.div([], [
|
|
49
|
-
h.button([h.OnClick(ClickedToggle())], ['Toggle']),
|
|
50
|
+
h.button([h.OnClick(Message.ClickedToggle())], ['Toggle']),
|
|
50
51
|
submitButton(model.isEnabled, h),
|
|
51
52
|
])), "@foldkit/ui/test/apps/disabledButton.js#view");
|
|
52
53
|
};
|
|
53
54
|
/** View with submit button inside a dialog's panel. */
|
|
54
55
|
export const viewWithDialog = (model, h) => {
|
|
55
56
|
return __foldkitBrandViewResult((h.div([], [
|
|
56
|
-
h.button([h.OnClick(ClickedToggle())], ['Toggle']),
|
|
57
|
+
h.button([h.OnClick(Message.ClickedToggle())], ['Toggle']),
|
|
57
58
|
h.submodel({
|
|
58
59
|
slotId: model.dialog.id,
|
|
59
60
|
model: model.dialog,
|
|
@@ -66,7 +67,7 @@ export const viewWithDialog = (model, h) => {
|
|
|
66
67
|
]
|
|
67
68
|
: [])), "@foldkit/ui/test/apps/disabledButton.js#toView"),
|
|
68
69
|
},
|
|
69
|
-
toParentMessage: message => __foldkitBrandViewResult((GotDialogMessage({ message })), "@foldkit/ui/test/apps/disabledButton.js#toParentMessage~2"),
|
|
70
|
+
toParentMessage: message => __foldkitBrandViewResult((Message.GotDialogMessage({ message })), "@foldkit/ui/test/apps/disabledButton.js#toParentMessage~2"),
|
|
70
71
|
}),
|
|
71
72
|
])), "@foldkit/ui/test/apps/disabledButton.js#viewWithDialog");
|
|
72
73
|
};
|
package/dist/toast/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Schema as S } from 'effect';
|
|
2
2
|
import { type ChildAttribute, type Html } from 'foldkit/html';
|
|
3
|
-
import {
|
|
3
|
+
import { Message, Position, Variant } from './schema.js';
|
|
4
4
|
import { WaitBeforeDismissal } from './update.js';
|
|
5
|
-
export type { InitConfig } from './schema.js';
|
|
5
|
+
export type { CompletedWaitBeforeDismissal, Dismissed, DismissedAll, GotAnimationMessage, HoveredEntry, InitConfig, LeftEntry, } from './schema.js';
|
|
6
6
|
export type { ShowInput } from './update.js';
|
|
7
7
|
export * as test from './test.js';
|
|
8
|
-
export { Variant, Position,
|
|
8
|
+
export { Message, Variant, Position, WaitBeforeDismissal };
|
|
9
9
|
/** Handlers passed to `entryToView`. Spread `dismiss` onto a close
|
|
10
10
|
* button's attribute array (typically inside `h.button([...dismiss])`)
|
|
11
11
|
* to let users dismiss the entry manually. The attribute carries the
|
|
@@ -63,6 +63,18 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
63
63
|
}[];
|
|
64
64
|
readonly nextEntryKey: number;
|
|
65
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
|
+
} | {
|
|
66
78
|
readonly _tag: "Dismissed";
|
|
67
79
|
readonly entryId: string;
|
|
68
80
|
} | {
|
|
@@ -77,18 +89,6 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
77
89
|
} | {
|
|
78
90
|
readonly _tag: "LeftEntry";
|
|
79
91
|
readonly entryId: string;
|
|
80
|
-
} | {
|
|
81
|
-
readonly _tag: "GotAnimationMessage";
|
|
82
|
-
readonly entryId: string;
|
|
83
|
-
readonly message: {
|
|
84
|
-
readonly _tag: "Showed";
|
|
85
|
-
} | {
|
|
86
|
-
readonly _tag: "Hid";
|
|
87
|
-
} | {
|
|
88
|
-
readonly _tag: "CompletedWaitForPaint";
|
|
89
|
-
} | {
|
|
90
|
-
readonly _tag: "EndedAnimation";
|
|
91
|
-
};
|
|
92
92
|
} | {
|
|
93
93
|
readonly _tag: "Added";
|
|
94
94
|
readonly entry: {
|
|
@@ -154,38 +154,53 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
154
154
|
}>>;
|
|
155
155
|
readonly nextEntryKey: S.Number;
|
|
156
156
|
}>;
|
|
157
|
-
readonly Message:
|
|
158
|
-
|
|
159
|
-
readonly
|
|
160
|
-
readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
|
|
161
|
-
readonly animation: S.Struct<{
|
|
157
|
+
readonly Message: import("foldkit/message").MessageUnion<{
|
|
158
|
+
readonly Added: {
|
|
159
|
+
readonly entry: S.Struct<{
|
|
162
160
|
readonly id: S.String;
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
161
|
+
readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
|
|
162
|
+
readonly animation: S.Struct<{
|
|
163
|
+
readonly id: S.String;
|
|
164
|
+
readonly isShowing: S.Boolean;
|
|
165
|
+
readonly transitionState: S.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
|
|
166
|
+
}>;
|
|
167
|
+
readonly maybeDuration: S.Option<S.DurationFromMillis>;
|
|
168
|
+
readonly pendingDismissVersion: S.Number;
|
|
169
|
+
readonly isHovered: S.Boolean;
|
|
170
|
+
readonly payload: S.Codec<A, I, never, never>;
|
|
165
171
|
}>;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
readonly
|
|
172
|
+
};
|
|
173
|
+
readonly Dismissed: {
|
|
174
|
+
readonly entryId: S.String;
|
|
175
|
+
};
|
|
176
|
+
readonly DismissedAll: {};
|
|
177
|
+
readonly CompletedWaitBeforeDismissal: {
|
|
178
|
+
readonly entryId: S.String;
|
|
179
|
+
readonly version: S.Number;
|
|
180
|
+
};
|
|
181
|
+
readonly HoveredEntry: {
|
|
182
|
+
readonly entryId: S.String;
|
|
183
|
+
};
|
|
184
|
+
readonly LeftEntry: {
|
|
185
|
+
readonly entryId: S.String;
|
|
186
|
+
};
|
|
187
|
+
readonly GotAnimationMessage: {
|
|
188
|
+
readonly entryId: S.String;
|
|
189
|
+
readonly message: import("foldkit/message").MessageUnion<{
|
|
190
|
+
readonly Showed: {};
|
|
191
|
+
readonly Hid: {};
|
|
192
|
+
readonly CompletedWaitForPaint: {};
|
|
193
|
+
readonly EndedAnimation: {};
|
|
194
|
+
}>;
|
|
195
|
+
};
|
|
196
|
+
}>;
|
|
197
|
+
readonly OutMessage: import("foldkit/message").MessageUnion<{
|
|
198
|
+
readonly DismissedToast: {
|
|
169
199
|
readonly payload: S.Codec<A, I, never, never>;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
entryId: S.String;
|
|
173
|
-
}>, import("foldkit/schema").CallableTaggedStruct<"DismissedAll", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedWaitBeforeDismissal", {
|
|
174
|
-
entryId: S.String;
|
|
175
|
-
version: S.Number;
|
|
176
|
-
}>, import("foldkit/schema").CallableTaggedStruct<"HoveredEntry", {
|
|
177
|
-
entryId: S.String;
|
|
178
|
-
}>, import("foldkit/schema").CallableTaggedStruct<"LeftEntry", {
|
|
179
|
-
entryId: S.String;
|
|
180
|
-
}>, import("foldkit/schema").CallableTaggedStruct<"GotAnimationMessage", {
|
|
181
|
-
entryId: S.String;
|
|
182
|
-
message: S.Union<[import("foldkit/schema").CallableTaggedStruct<"Showed", {}>, import("foldkit/schema").CallableTaggedStruct<"Hid", {}>, import("foldkit/schema").CallableTaggedStruct<"CompletedWaitForPaint", {}>, import("foldkit/schema").CallableTaggedStruct<"EndedAnimation", {}>]>;
|
|
183
|
-
}>]>;
|
|
184
|
-
readonly OutMessage: S.Union<readonly [import("foldkit/schema").CallableTaggedStruct<"DismissedToast", {
|
|
185
|
-
payload: S.Codec<A, I, never, never>;
|
|
186
|
-
}>]>;
|
|
200
|
+
};
|
|
201
|
+
}>;
|
|
187
202
|
readonly Added: import("foldkit/schema").CallableTaggedStruct<"Added", {
|
|
188
|
-
entry: S.Struct<{
|
|
203
|
+
readonly entry: S.Struct<{
|
|
189
204
|
readonly id: S.String;
|
|
190
205
|
readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
|
|
191
206
|
readonly animation: S.Struct<{
|
|
@@ -200,7 +215,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
200
215
|
}>;
|
|
201
216
|
}>;
|
|
202
217
|
readonly DismissedToast: import("foldkit/schema").CallableTaggedStruct<"DismissedToast", {
|
|
203
|
-
payload: S.Codec<A, I, never, never>;
|
|
218
|
+
readonly payload: S.Codec<A, I, never, never>;
|
|
204
219
|
}>;
|
|
205
220
|
readonly init: (config: Readonly<{
|
|
206
221
|
id: string;
|
|
@@ -241,20 +256,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
241
256
|
}[];
|
|
242
257
|
readonly nextEntryKey: number;
|
|
243
258
|
}, message: {
|
|
244
|
-
readonly _tag: "Dismissed";
|
|
245
|
-
readonly entryId: string;
|
|
246
|
-
} | {
|
|
247
259
|
readonly _tag: "DismissedAll";
|
|
248
|
-
} | {
|
|
249
|
-
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
250
|
-
readonly entryId: string;
|
|
251
|
-
readonly version: number;
|
|
252
|
-
} | {
|
|
253
|
-
readonly _tag: "HoveredEntry";
|
|
254
|
-
readonly entryId: string;
|
|
255
|
-
} | {
|
|
256
|
-
readonly _tag: "LeftEntry";
|
|
257
|
-
readonly entryId: string;
|
|
258
260
|
} | {
|
|
259
261
|
readonly _tag: "GotAnimationMessage";
|
|
260
262
|
readonly entryId: string;
|
|
@@ -267,6 +269,19 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
267
269
|
} | {
|
|
268
270
|
readonly _tag: "EndedAnimation";
|
|
269
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;
|
|
270
285
|
} | {
|
|
271
286
|
readonly _tag: "Added";
|
|
272
287
|
readonly entry: {
|
|
@@ -304,20 +319,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
304
319
|
args?: Record<string, unknown>;
|
|
305
320
|
key?: string;
|
|
306
321
|
effect: import("effect/Effect").Effect<{
|
|
307
|
-
readonly _tag: "Dismissed";
|
|
308
|
-
readonly entryId: string;
|
|
309
|
-
} | {
|
|
310
322
|
readonly _tag: "DismissedAll";
|
|
311
|
-
} | {
|
|
312
|
-
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
313
|
-
readonly entryId: string;
|
|
314
|
-
readonly version: number;
|
|
315
|
-
} | {
|
|
316
|
-
readonly _tag: "HoveredEntry";
|
|
317
|
-
readonly entryId: string;
|
|
318
|
-
} | {
|
|
319
|
-
readonly _tag: "LeftEntry";
|
|
320
|
-
readonly entryId: string;
|
|
321
323
|
} | {
|
|
322
324
|
readonly _tag: "GotAnimationMessage";
|
|
323
325
|
readonly entryId: string;
|
|
@@ -330,6 +332,19 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
330
332
|
} | {
|
|
331
333
|
readonly _tag: "EndedAnimation";
|
|
332
334
|
};
|
|
335
|
+
} | {
|
|
336
|
+
readonly _tag: "Dismissed";
|
|
337
|
+
readonly entryId: string;
|
|
338
|
+
} | {
|
|
339
|
+
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
340
|
+
readonly entryId: string;
|
|
341
|
+
readonly version: number;
|
|
342
|
+
} | {
|
|
343
|
+
readonly _tag: "HoveredEntry";
|
|
344
|
+
readonly entryId: string;
|
|
345
|
+
} | {
|
|
346
|
+
readonly _tag: "LeftEntry";
|
|
347
|
+
readonly entryId: string;
|
|
333
348
|
} | {
|
|
334
349
|
readonly _tag: "Added";
|
|
335
350
|
readonly entry: {
|
|
@@ -394,20 +409,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
394
409
|
args?: Record<string, unknown>;
|
|
395
410
|
key?: string;
|
|
396
411
|
effect: import("effect/Effect").Effect<{
|
|
397
|
-
readonly _tag: "Dismissed";
|
|
398
|
-
readonly entryId: string;
|
|
399
|
-
} | {
|
|
400
412
|
readonly _tag: "DismissedAll";
|
|
401
|
-
} | {
|
|
402
|
-
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
403
|
-
readonly entryId: string;
|
|
404
|
-
readonly version: number;
|
|
405
|
-
} | {
|
|
406
|
-
readonly _tag: "HoveredEntry";
|
|
407
|
-
readonly entryId: string;
|
|
408
|
-
} | {
|
|
409
|
-
readonly _tag: "LeftEntry";
|
|
410
|
-
readonly entryId: string;
|
|
411
413
|
} | {
|
|
412
414
|
readonly _tag: "GotAnimationMessage";
|
|
413
415
|
readonly entryId: string;
|
|
@@ -420,6 +422,19 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
420
422
|
} | {
|
|
421
423
|
readonly _tag: "EndedAnimation";
|
|
422
424
|
};
|
|
425
|
+
} | {
|
|
426
|
+
readonly _tag: "Dismissed";
|
|
427
|
+
readonly entryId: string;
|
|
428
|
+
} | {
|
|
429
|
+
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
430
|
+
readonly entryId: string;
|
|
431
|
+
readonly version: number;
|
|
432
|
+
} | {
|
|
433
|
+
readonly _tag: "HoveredEntry";
|
|
434
|
+
readonly entryId: string;
|
|
435
|
+
} | {
|
|
436
|
+
readonly _tag: "LeftEntry";
|
|
437
|
+
readonly entryId: string;
|
|
423
438
|
} | {
|
|
424
439
|
readonly _tag: "Added";
|
|
425
440
|
readonly entry: {
|
|
@@ -479,20 +494,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
479
494
|
args?: Record<string, unknown>;
|
|
480
495
|
key?: string;
|
|
481
496
|
effect: import("effect/Effect").Effect<{
|
|
482
|
-
readonly _tag: "Dismissed";
|
|
483
|
-
readonly entryId: string;
|
|
484
|
-
} | {
|
|
485
497
|
readonly _tag: "DismissedAll";
|
|
486
|
-
} | {
|
|
487
|
-
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
488
|
-
readonly entryId: string;
|
|
489
|
-
readonly version: number;
|
|
490
|
-
} | {
|
|
491
|
-
readonly _tag: "HoveredEntry";
|
|
492
|
-
readonly entryId: string;
|
|
493
|
-
} | {
|
|
494
|
-
readonly _tag: "LeftEntry";
|
|
495
|
-
readonly entryId: string;
|
|
496
498
|
} | {
|
|
497
499
|
readonly _tag: "GotAnimationMessage";
|
|
498
500
|
readonly entryId: string;
|
|
@@ -505,6 +507,19 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
505
507
|
} | {
|
|
506
508
|
readonly _tag: "EndedAnimation";
|
|
507
509
|
};
|
|
510
|
+
} | {
|
|
511
|
+
readonly _tag: "Dismissed";
|
|
512
|
+
readonly entryId: string;
|
|
513
|
+
} | {
|
|
514
|
+
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
515
|
+
readonly entryId: string;
|
|
516
|
+
readonly version: number;
|
|
517
|
+
} | {
|
|
518
|
+
readonly _tag: "HoveredEntry";
|
|
519
|
+
readonly entryId: string;
|
|
520
|
+
} | {
|
|
521
|
+
readonly _tag: "LeftEntry";
|
|
522
|
+
readonly entryId: string;
|
|
508
523
|
} | {
|
|
509
524
|
readonly _tag: "Added";
|
|
510
525
|
readonly entry: {
|
|
@@ -564,20 +579,7 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
564
579
|
args?: Record<string, unknown>;
|
|
565
580
|
key?: string;
|
|
566
581
|
effect: import("effect/Effect").Effect<{
|
|
567
|
-
readonly _tag: "Dismissed";
|
|
568
|
-
readonly entryId: string;
|
|
569
|
-
} | {
|
|
570
582
|
readonly _tag: "DismissedAll";
|
|
571
|
-
} | {
|
|
572
|
-
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
573
|
-
readonly entryId: string;
|
|
574
|
-
readonly version: number;
|
|
575
|
-
} | {
|
|
576
|
-
readonly _tag: "HoveredEntry";
|
|
577
|
-
readonly entryId: string;
|
|
578
|
-
} | {
|
|
579
|
-
readonly _tag: "LeftEntry";
|
|
580
|
-
readonly entryId: string;
|
|
581
583
|
} | {
|
|
582
584
|
readonly _tag: "GotAnimationMessage";
|
|
583
585
|
readonly entryId: string;
|
|
@@ -590,6 +592,19 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
590
592
|
} | {
|
|
591
593
|
readonly _tag: "EndedAnimation";
|
|
592
594
|
};
|
|
595
|
+
} | {
|
|
596
|
+
readonly _tag: "Dismissed";
|
|
597
|
+
readonly entryId: string;
|
|
598
|
+
} | {
|
|
599
|
+
readonly _tag: "CompletedWaitBeforeDismissal";
|
|
600
|
+
readonly entryId: string;
|
|
601
|
+
readonly version: number;
|
|
602
|
+
} | {
|
|
603
|
+
readonly _tag: "HoveredEntry";
|
|
604
|
+
readonly entryId: string;
|
|
605
|
+
} | {
|
|
606
|
+
readonly _tag: "LeftEntry";
|
|
607
|
+
readonly entryId: string;
|
|
593
608
|
} | {
|
|
594
609
|
readonly _tag: "Added";
|
|
595
610
|
readonly entry: {
|
|
@@ -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,
|
|
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,EAAE,eAAe,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"}
|
package/dist/toast/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import { brandViewResult as __foldkitBrandViewResult } from 'foldkit/brand'
|
|
|
2
2
|
import { Match as M } from 'effect';
|
|
3
3
|
import { childAttributes } from 'foldkit/html';
|
|
4
4
|
import { defineView } from 'foldkit/submodel';
|
|
5
|
-
import {
|
|
5
|
+
import { Message, Position, Variant } from './schema.js';
|
|
6
6
|
import { WaitBeforeDismissal, makeRuntime } from './update.js';
|
|
7
7
|
export * as test from './test.js';
|
|
8
|
-
export { Variant, Position,
|
|
8
|
+
export { Message, Variant, Position, WaitBeforeDismissal };
|
|
9
9
|
const variantToRole = (variant) => __foldkitBrandViewResult((M.value(variant).pipe(M.withReturnType(), M.when('Info', () => __foldkitBrandViewResult(('status'), "@foldkit/ui/toast/index.js#anonymous")), M.when('Success', () => __foldkitBrandViewResult(('status'), "@foldkit/ui/toast/index.js#anonymous~2")), M.when('Warning', () => __foldkitBrandViewResult(('alert'), "@foldkit/ui/toast/index.js#anonymous~3")), M.when('Error', () => __foldkitBrandViewResult(('alert'), "@foldkit/ui/toast/index.js#anonymous~4")), M.exhaustive)), "@foldkit/ui/toast/index.js#variantToRole");
|
|
10
10
|
const positionToContainerStyle = (position) => {
|
|
11
11
|
const base = {
|
|
@@ -125,14 +125,14 @@ export const make = (payloadSchema) => {
|
|
|
125
125
|
h.AriaAtomic(true),
|
|
126
126
|
h.DataAttribute('variant', entry.variant),
|
|
127
127
|
h.Style({ pointerEvents: 'auto' }),
|
|
128
|
-
h.OnMouseEnter(HoveredEntry({ entryId: entry.id })),
|
|
129
|
-
h.OnMouseLeave(LeftEntry({ entryId: entry.id })),
|
|
128
|
+
h.OnMouseEnter(runtime.Message.HoveredEntry({ entryId: entry.id })),
|
|
129
|
+
h.OnMouseLeave(runtime.Message.LeftEntry({ entryId: entry.id })),
|
|
130
130
|
...animationAttributes,
|
|
131
131
|
...(entryClassName ? [h.Class(entryClassName)] : []),
|
|
132
132
|
];
|
|
133
133
|
const handlers = {
|
|
134
134
|
dismiss: childAttributes([
|
|
135
|
-
h.OnClick(Dismissed({ entryId: entry.id })),
|
|
135
|
+
h.OnClick(runtime.Message.Dismissed({ entryId: entry.id })),
|
|
136
136
|
]),
|
|
137
137
|
};
|
|
138
138
|
return __foldkitBrandViewResult((h.keyed('li')(entry.id, itemAttributes, [
|
package/dist/toast/public.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { make, Variant, Position, Dismissed, DismissedAll, CompletedWaitBeforeDismissal, HoveredEntry, LeftEntry, GotAnimationMessage, WaitBeforeDismissal, } from './index.js';
|
|
1
|
+
export { make, Message, Variant, Position, type Dismissed, type DismissedAll, type CompletedWaitBeforeDismissal, type HoveredEntry, type LeftEntry, type GotAnimationMessage, WaitBeforeDismissal, } from './index.js';
|
|
2
2
|
export * as test from './test.js';
|
|
3
3
|
export type { EntryHandlers } from './index.js';
|
|
4
4
|
export type { InitConfig, ShowInput } from './index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/toast/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,SAAS,
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/toast/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,4BAA4B,EACjC,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,mBAAmB,GACpB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AAEjC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC/C,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACvD,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/toast/public.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { make, Variant, Position,
|
|
1
|
+
export { make, Message, Variant, Position, WaitBeforeDismissal, } from './index.js';
|
|
2
2
|
export * as test from './test.js';
|