@zag-js/toast 0.2.2 → 0.2.3
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -347,7 +347,7 @@ var import_core3 = require("@zag-js/core");
|
|
|
347
347
|
var import_core2 = require("@zag-js/core");
|
|
348
348
|
var { not, and, or } = import_core2.guards;
|
|
349
349
|
function createToastMachine(options = {}) {
|
|
350
|
-
const { type = "info", duration, id = "toast", placement = "bottom", removeDelay =
|
|
350
|
+
const { type = "info", duration, id = "toast", placement = "bottom", removeDelay = 0, ...restProps } = options;
|
|
351
351
|
const ctx = compact(restProps);
|
|
352
352
|
const computedDuration = getToastDuration(duration, type);
|
|
353
353
|
return (0, import_core2.createMachine)(
|
package/dist/index.mjs
CHANGED
|
@@ -318,7 +318,7 @@ import { createMachine as createMachine2 } from "@zag-js/core";
|
|
|
318
318
|
import { createMachine, guards } from "@zag-js/core";
|
|
319
319
|
var { not, and, or } = guards;
|
|
320
320
|
function createToastMachine(options = {}) {
|
|
321
|
-
const { type = "info", duration, id = "toast", placement = "bottom", removeDelay =
|
|
321
|
+
const { type = "info", duration, id = "toast", placement = "bottom", removeDelay = 0, ...restProps } = options;
|
|
322
322
|
const ctx = compact(restProps);
|
|
323
323
|
const computedDuration = getToastDuration(duration, type);
|
|
324
324
|
return createMachine(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/toast",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Core logic for the toast widget implemented as a state machine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@zag-js/core": "0.2.
|
|
33
|
-
"@zag-js/types": "0.3.
|
|
32
|
+
"@zag-js/core": "0.2.2",
|
|
33
|
+
"@zag-js/types": "0.3.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@zag-js/dom-utils": "0.2.
|
|
37
|
-
"@zag-js/utils": "0.3.
|
|
36
|
+
"@zag-js/dom-utils": "0.2.1",
|
|
37
|
+
"@zag-js/utils": "0.3.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build-fast": "tsup src/index.ts --format=esm,cjs",
|