@zag-js/toast 1.47.0 → 1.48.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/index.d.mts +10 -17
- package/dist/index.d.ts +10 -17
- package/dist/index.js +18 -45
- package/dist/index.mjs +5 -11
- package/dist/toast-group.connect.d.mts +4 -8
- package/dist/toast-group.connect.d.ts +4 -8
- package/dist/toast-group.connect.js +73 -97
- package/dist/toast-group.connect.mjs +68 -61
- package/dist/toast-group.machine.d.mts +2 -8
- package/dist/toast-group.machine.d.ts +2 -8
- package/dist/toast-group.machine.js +292 -346
- package/dist/toast-group.machine.mjs +287 -310
- package/dist/toast.anatomy.d.mts +2 -6
- package/dist/toast.anatomy.d.ts +2 -6
- package/dist/toast.anatomy.js +8 -40
- package/dist/toast.anatomy.mjs +4 -14
- package/dist/toast.connect.d.mts +4 -8
- package/dist/toast.connect.d.ts +4 -8
- package/dist/toast.connect.js +133 -158
- package/dist/toast.connect.mjs +128 -122
- package/dist/toast.dom.d.mts +19 -23
- package/dist/toast.dom.d.ts +19 -23
- package/dist/toast.dom.js +54 -83
- package/dist/toast.dom.mjs +39 -47
- package/dist/toast.machine.d.mts +2 -8
- package/dist/toast.machine.d.ts +2 -8
- package/dist/toast.machine.js +272 -300
- package/dist/toast.machine.mjs +267 -264
- package/dist/toast.store.d.mts +2 -8
- package/dist/toast.store.d.ts +2 -8
- package/dist/toast.store.js +344 -306
- package/dist/toast.store.mjs +340 -281
- package/dist/toast.types.d.mts +372 -374
- package/dist/toast.types.d.ts +372 -374
- package/dist/toast.types.js +4 -18
- package/dist/toast.types.mjs +1 -0
- package/dist/toast.utils.d.mts +10 -14
- package/dist/toast.utils.d.ts +10 -14
- package/dist/toast.utils.js +167 -217
- package/dist/toast.utils.mjs +157 -186
- package/package.json +9 -9
package/dist/toast.types.js
CHANGED
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/toast.types.ts
|
|
17
|
-
var toast_types_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(toast_types_exports);
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
package/dist/toast.types.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/toast.utils.d.mts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare
|
|
7
|
-
declare function
|
|
8
|
-
declare function
|
|
9
|
-
declare function
|
|
10
|
-
declare function
|
|
11
|
-
declare function getGhostAfterStyle(): Style;
|
|
12
|
-
declare function setHeight(parent: Service<ToastGroupSchema>, item: ToastHeight): void;
|
|
13
|
-
|
|
14
|
-
export { defaultTimeouts, getGhostAfterStyle, getGhostBeforeStyle, getGroupPlacementStyle, getPlacementStyle, getToastDuration, setHeight };
|
|
1
|
+
import { Placement, ToastGroupSchema, ToastGroupService, ToastHeight, ToastSchema, Type } from "./toast.types.mjs";
|
|
2
|
+
import { Service } from "@zag-js/core";
|
|
3
|
+
import { Style } from "@zag-js/types";
|
|
4
|
+
export declare const defaultTimeouts: Record<Type, number>;
|
|
5
|
+
export declare function getToastDuration(duration: number | undefined, type: Type): number;
|
|
6
|
+
export declare function getGroupPlacementStyle(service: ToastGroupService, placement: Placement): Style;
|
|
7
|
+
export declare function getPlacementStyle(service: Service<ToastSchema>, visible: boolean): Style;
|
|
8
|
+
export declare function getGhostBeforeStyle(service: Service<ToastSchema>, visible: boolean): Style;
|
|
9
|
+
export declare function getGhostAfterStyle(): Style;
|
|
10
|
+
export declare function setHeight(parent: Service<ToastGroupSchema>, item: ToastHeight): void;
|
package/dist/toast.utils.d.ts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Style } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare
|
|
7
|
-
declare function
|
|
8
|
-
declare function
|
|
9
|
-
declare function
|
|
10
|
-
declare function
|
|
11
|
-
declare function getGhostAfterStyle(): Style;
|
|
12
|
-
declare function setHeight(parent: Service<ToastGroupSchema>, item: ToastHeight): void;
|
|
13
|
-
|
|
14
|
-
export { defaultTimeouts, getGhostAfterStyle, getGhostBeforeStyle, getGroupPlacementStyle, getPlacementStyle, getToastDuration, setHeight };
|
|
1
|
+
import { Placement, ToastGroupSchema, ToastGroupService, ToastHeight, ToastSchema, Type } from "./toast.types.js";
|
|
2
|
+
import { Style } from "@zag-js/types";
|
|
3
|
+
import { Service } from "@zag-js/core";
|
|
4
|
+
export declare const defaultTimeouts: Record<Type, number>;
|
|
5
|
+
export declare function getToastDuration(duration: number | undefined, type: Type): number;
|
|
6
|
+
export declare function getGroupPlacementStyle(service: ToastGroupService, placement: Placement): Style;
|
|
7
|
+
export declare function getPlacementStyle(service: Service<ToastSchema>, visible: boolean): Style;
|
|
8
|
+
export declare function getGhostBeforeStyle(service: Service<ToastSchema>, visible: boolean): Style;
|
|
9
|
+
export declare function getGhostAfterStyle(): Style;
|
|
10
|
+
export declare function setHeight(parent: Service<ToastGroupSchema>, item: ToastHeight): void;
|
package/dist/toast.utils.js
CHANGED
|
@@ -1,231 +1,181 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/toast.utils.ts
|
|
21
|
-
var toast_utils_exports = {};
|
|
22
|
-
__export(toast_utils_exports, {
|
|
23
|
-
defaultTimeouts: () => defaultTimeouts,
|
|
24
|
-
getGhostAfterStyle: () => getGhostAfterStyle,
|
|
25
|
-
getGhostBeforeStyle: () => getGhostBeforeStyle,
|
|
26
|
-
getGroupPlacementStyle: () => getGroupPlacementStyle,
|
|
27
|
-
getPlacementStyle: () => getPlacementStyle,
|
|
28
|
-
getToastDuration: () => getToastDuration,
|
|
29
|
-
setHeight: () => setHeight
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
30
4
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
5
|
+
let _zag_js_dom_query = require("@zag-js/dom-query");
|
|
6
|
+
// src/toast.utils.ts
|
|
7
|
+
const defaultTimeouts = {
|
|
8
|
+
info: 5e3,
|
|
9
|
+
error: 5e3,
|
|
10
|
+
success: 2e3,
|
|
11
|
+
loading: 1e400,
|
|
12
|
+
warning: 5e3,
|
|
13
|
+
DEFAULT: 5e3
|
|
40
14
|
};
|
|
41
15
|
function getToastDuration(duration, type) {
|
|
42
|
-
|
|
16
|
+
return duration ?? defaultTimeouts[type] ?? defaultTimeouts.DEFAULT;
|
|
43
17
|
}
|
|
44
|
-
|
|
18
|
+
const getOffsets = (offsets) => typeof offsets === "string" ? {
|
|
19
|
+
left: offsets,
|
|
20
|
+
right: offsets,
|
|
21
|
+
bottom: offsets,
|
|
22
|
+
top: offsets
|
|
23
|
+
} : offsets;
|
|
45
24
|
function getGroupPlacementStyle(service, placement) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const offset = computedOffset.bottom;
|
|
77
|
-
styles.bottom = `max(env(safe-area-inset-bottom, 0px), ${offset})`;
|
|
78
|
-
}
|
|
79
|
-
if (!computedPlacement.includes("left")) {
|
|
80
|
-
const offset = computedOffset.right;
|
|
81
|
-
styles.insetInlineEnd = `calc(env(safe-area-inset-right, 0px) + ${offset})`;
|
|
82
|
-
}
|
|
83
|
-
if (!computedPlacement.includes("right")) {
|
|
84
|
-
const offset = computedOffset.left;
|
|
85
|
-
styles.insetInlineStart = `calc(env(safe-area-inset-left, 0px) + ${offset})`;
|
|
86
|
-
}
|
|
87
|
-
return styles;
|
|
25
|
+
const { prop, computed, context } = service;
|
|
26
|
+
const { offsets, gap } = prop("store").attrs;
|
|
27
|
+
const heights = context.get("heights");
|
|
28
|
+
const computedOffset = getOffsets(offsets);
|
|
29
|
+
const rtl = prop("dir") === "rtl";
|
|
30
|
+
const computedPlacement = placement.replace("-start", rtl ? "-right" : "-left").replace("-end", rtl ? "-left" : "-right");
|
|
31
|
+
const isRighty = computedPlacement.includes("right");
|
|
32
|
+
const isLefty = computedPlacement.includes("left");
|
|
33
|
+
const styles = {
|
|
34
|
+
position: "fixed",
|
|
35
|
+
pointerEvents: computed("count") > 0 ? void 0 : "none",
|
|
36
|
+
display: "flex",
|
|
37
|
+
flexDirection: "column",
|
|
38
|
+
"--gap": `${gap}px`,
|
|
39
|
+
"--first-height": `${heights[0]?.height || 0}px`,
|
|
40
|
+
"--viewport-offset-left": computedOffset.left,
|
|
41
|
+
"--viewport-offset-right": computedOffset.right,
|
|
42
|
+
"--viewport-offset-top": computedOffset.top,
|
|
43
|
+
"--viewport-offset-bottom": computedOffset.bottom,
|
|
44
|
+
zIndex: _zag_js_dom_query.MAX_Z_INDEX
|
|
45
|
+
};
|
|
46
|
+
let alignItems = "center";
|
|
47
|
+
if (isRighty) alignItems = "flex-end";
|
|
48
|
+
if (isLefty) alignItems = "flex-start";
|
|
49
|
+
styles.alignItems = alignItems;
|
|
50
|
+
if (computedPlacement.includes("top")) styles.top = `max(env(safe-area-inset-top, 0px), ${computedOffset.top})`;
|
|
51
|
+
if (computedPlacement.includes("bottom")) styles.bottom = `max(env(safe-area-inset-bottom, 0px), ${computedOffset.bottom})`;
|
|
52
|
+
if (!computedPlacement.includes("left")) styles.insetInlineEnd = `calc(env(safe-area-inset-right, 0px) + ${computedOffset.right})`;
|
|
53
|
+
if (!computedPlacement.includes("right")) styles.insetInlineStart = `calc(env(safe-area-inset-left, 0px) + ${computedOffset.left})`;
|
|
54
|
+
return styles;
|
|
88
55
|
}
|
|
89
56
|
function getPlacementStyle(service, visible) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"--scale": "calc(-1 * var(--base-scale))",
|
|
158
|
-
"--height": "var(--first-height)"
|
|
159
|
-
});
|
|
160
|
-
if (!visible) {
|
|
161
|
-
assign({
|
|
162
|
-
"--y": "calc(var(--sign) * 40%)"
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
if (sibling && stacked && !visible) {
|
|
167
|
-
assign({
|
|
168
|
-
"--y": "calc(var(--lift) * var(--offset) + var(--lift) * -100%)"
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
if (frontmost && !visible) {
|
|
172
|
-
assign({
|
|
173
|
-
"--y": "calc(var(--lift) * -100%)"
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
return styles;
|
|
57
|
+
const { prop, context, computed } = service;
|
|
58
|
+
const parent = prop("parent");
|
|
59
|
+
const placement = parent.computed("placement");
|
|
60
|
+
const { gap } = parent.prop("store").attrs;
|
|
61
|
+
const [side] = placement.split("-");
|
|
62
|
+
const mounted = context.get("mounted");
|
|
63
|
+
const remainingTime = context.get("remainingTime");
|
|
64
|
+
const height = computed("height");
|
|
65
|
+
const frontmost = computed("frontmost");
|
|
66
|
+
const sibling = !frontmost;
|
|
67
|
+
const stacked = prop("parent").state.matches("stack");
|
|
68
|
+
const overlap = !stacked;
|
|
69
|
+
const duration = prop("type") === "loading" ? Number.MAX_SAFE_INTEGER : remainingTime;
|
|
70
|
+
const offset = computed("heightIndex") * gap + computed("heightBefore");
|
|
71
|
+
const styles = {
|
|
72
|
+
position: "absolute",
|
|
73
|
+
pointerEvents: "auto",
|
|
74
|
+
"--opacity": "0",
|
|
75
|
+
"--remove-delay": `${prop("removeDelay")}ms`,
|
|
76
|
+
"--duration": `${duration}ms`,
|
|
77
|
+
"--initial-height": `${height}px`,
|
|
78
|
+
"--offset": `${offset}px`,
|
|
79
|
+
"--index": prop("index"),
|
|
80
|
+
"--z-index": computed("zIndex"),
|
|
81
|
+
"--lift-amount": "calc(var(--lift) * var(--gap))",
|
|
82
|
+
"--y": "100%",
|
|
83
|
+
"--x": "0"
|
|
84
|
+
};
|
|
85
|
+
const assign = (overrides) => Object.assign(styles, overrides);
|
|
86
|
+
if (side === "top") assign({
|
|
87
|
+
top: "0",
|
|
88
|
+
"--sign": "-1",
|
|
89
|
+
"--y": "-100%",
|
|
90
|
+
"--lift": "1"
|
|
91
|
+
});
|
|
92
|
+
else if (side === "bottom") assign({
|
|
93
|
+
bottom: "0",
|
|
94
|
+
"--sign": "1",
|
|
95
|
+
"--y": "100%",
|
|
96
|
+
"--lift": "-1"
|
|
97
|
+
});
|
|
98
|
+
if (mounted) {
|
|
99
|
+
assign({
|
|
100
|
+
"--y": "0",
|
|
101
|
+
"--opacity": "1"
|
|
102
|
+
});
|
|
103
|
+
if (stacked) assign({
|
|
104
|
+
"--y": "calc(var(--lift) * var(--offset))",
|
|
105
|
+
"--height": "var(--initial-height)"
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
if (!visible) assign({
|
|
109
|
+
"--opacity": "0",
|
|
110
|
+
pointerEvents: "none"
|
|
111
|
+
});
|
|
112
|
+
if (sibling && overlap) {
|
|
113
|
+
assign({
|
|
114
|
+
"--base-scale": "var(--index) * 0.05 + 1",
|
|
115
|
+
"--y": "calc(var(--lift-amount) * var(--index))",
|
|
116
|
+
"--scale": "calc(-1 * var(--base-scale))",
|
|
117
|
+
"--height": "var(--first-height)"
|
|
118
|
+
});
|
|
119
|
+
if (!visible) assign({ "--y": "calc(var(--sign) * 40%)" });
|
|
120
|
+
}
|
|
121
|
+
if (sibling && stacked && !visible) assign({ "--y": "calc(var(--lift) * var(--offset) + var(--lift) * -100%)" });
|
|
122
|
+
if (frontmost && !visible) assign({ "--y": "calc(var(--lift) * -100%)" });
|
|
123
|
+
return styles;
|
|
177
124
|
}
|
|
178
125
|
function getGhostBeforeStyle(service, visible) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
height: "calc(var(--initial-height) + 80%)"
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
return styles;
|
|
126
|
+
const { computed } = service;
|
|
127
|
+
const styles = {
|
|
128
|
+
position: "absolute",
|
|
129
|
+
inset: "0",
|
|
130
|
+
scale: "1 2",
|
|
131
|
+
pointerEvents: visible ? "none" : "auto"
|
|
132
|
+
};
|
|
133
|
+
const assign = (overrides) => Object.assign(styles, overrides);
|
|
134
|
+
if (computed("frontmost") && !visible) assign({ height: "calc(var(--initial-height) + 80%)" });
|
|
135
|
+
return styles;
|
|
193
136
|
}
|
|
194
137
|
function getGhostAfterStyle() {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
138
|
+
return {
|
|
139
|
+
position: "absolute",
|
|
140
|
+
left: "0",
|
|
141
|
+
height: "calc(var(--gap) + 2px)",
|
|
142
|
+
bottom: "100%",
|
|
143
|
+
width: "100%"
|
|
144
|
+
};
|
|
202
145
|
}
|
|
203
146
|
function setHeight(parent, item) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
147
|
+
const { id, height } = item;
|
|
148
|
+
parent.context.set("heights", (prev) => {
|
|
149
|
+
const existing = prev.find((i) => i.id === id);
|
|
150
|
+
if (existing) {
|
|
151
|
+
if (existing.height === height) return prev;
|
|
152
|
+
return prev.map((i) => i.id === id ? {
|
|
153
|
+
...i,
|
|
154
|
+
height
|
|
155
|
+
} : i);
|
|
156
|
+
}
|
|
157
|
+
const toasts = parent.context.get("toasts");
|
|
158
|
+
const rank = (id) => toasts.findIndex((t) => t.id === id);
|
|
159
|
+
const index = rank(id);
|
|
160
|
+
let insertAt = prev.findIndex((i) => {
|
|
161
|
+
const r = rank(i.id);
|
|
162
|
+
return r === -1 || r > index;
|
|
163
|
+
});
|
|
164
|
+
if (insertAt === -1) insertAt = prev.length;
|
|
165
|
+
return [
|
|
166
|
+
...prev.slice(0, insertAt),
|
|
167
|
+
{
|
|
168
|
+
id,
|
|
169
|
+
height
|
|
170
|
+
},
|
|
171
|
+
...prev.slice(insertAt)
|
|
172
|
+
];
|
|
173
|
+
});
|
|
221
174
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
getToastDuration,
|
|
230
|
-
setHeight
|
|
231
|
-
});
|
|
175
|
+
exports.defaultTimeouts = defaultTimeouts;
|
|
176
|
+
exports.getGhostAfterStyle = getGhostAfterStyle;
|
|
177
|
+
exports.getGhostBeforeStyle = getGhostBeforeStyle;
|
|
178
|
+
exports.getGroupPlacementStyle = getGroupPlacementStyle;
|
|
179
|
+
exports.getPlacementStyle = getPlacementStyle;
|
|
180
|
+
exports.getToastDuration = getToastDuration;
|
|
181
|
+
exports.setHeight = setHeight;
|