@sanity/ui 2.1.3 → 2.1.4-canary.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 +22 -13
- package/dist/index.d.ts +22 -13
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/theme.d.mts +2 -2
- package/dist/theme.d.ts +2 -2
- package/package.json +45 -47
- package/src/core/components/dialog/dialog.tsx +2 -2
- package/src/core/components/toast/toastProvider.tsx +4 -2
- package/src/core/hooks/useDelayedState.ts +2 -2
- package/src/theme/system/v0/color/_system.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -6286,7 +6286,9 @@ function ToastProvider(props) {
|
|
|
6286
6286
|
id,
|
|
6287
6287
|
params: { ...params, duration }
|
|
6288
6288
|
}
|
|
6289
|
-
])), toastsRef.current[id] && (clearTimeout(toastsRef.current[id].timeoutId), delete toastsRef.current[id]), toastsRef.current[id] = {
|
|
6289
|
+
])), toastsRef.current[id] && (clearTimeout(toastsRef.current[id].timeoutId), delete toastsRef.current[id]), toastsRef.current[id] = {
|
|
6290
|
+
timeoutId: setTimeout(dismiss, duration)
|
|
6291
|
+
}, id;
|
|
6290
6292
|
} }), []);
|
|
6291
6293
|
return react.useEffect(
|
|
6292
6294
|
() => () => {
|