@jamsrui/toast 0.0.16 → 0.0.18
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 +14 -3
- package/dist/index.mjs +1 -1
- package/dist/toast-config.d.mts +3 -4
- package/dist/toast-config.mjs +1 -1
- package/dist/toast.mjs +1 -1
- package/dist/use-toast.mjs +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { Toast as Toast$1 } from './toast.mjs';
|
|
3
|
+
import { ToastConfig } from './toast-config.mjs';
|
|
4
|
+
export { useToastConfig } from './toast-config.mjs';
|
|
1
5
|
export { Toaster, toast } from 'sonner';
|
|
2
|
-
export { Toast } from './toast.mjs';
|
|
3
|
-
export { ToastConfig, useToastConfig } from './toast-config.mjs';
|
|
4
|
-
import 'react';
|
|
5
6
|
import '@jamsrui/utils';
|
|
6
7
|
import 'react/jsx-runtime';
|
|
7
8
|
import '@jamsrui/core';
|
|
9
|
+
|
|
10
|
+
declare const Toast: (props: Toast$1.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
11
|
+
declare namespace Toast {
|
|
12
|
+
interface Props extends Toast$1.Props {
|
|
13
|
+
}
|
|
14
|
+
interface Config extends ToastConfig.Props {
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Toast, ToastConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Toast as o}from"./toast.mjs";import{ToastConfig as t,useToastConfig as s}from"./toast-config.mjs";import{toast as f,Toaster as i}from"sonner";const a=Object.assign(o,{});export{a as Toast,t as ToastConfig,i as Toaster,f as toast,s as useToastConfig};
|
package/dist/toast-config.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import 'sonner';
|
|
2
|
-
import { Toast } from './toast.mjs';
|
|
3
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import {
|
|
2
|
+
import { WithGlobalConfig } from '@jamsrui/core';
|
|
3
|
+
import { Toast } from './toast.mjs';
|
|
5
4
|
import 'react';
|
|
6
5
|
import '@jamsrui/utils';
|
|
7
6
|
|
|
@@ -11,7 +10,7 @@ declare const ToastConfig: (props: Omit<Partial<Record<string, any>>, "children"
|
|
|
11
10
|
children: React.ReactNode;
|
|
12
11
|
}) => react_jsx_runtime.JSX.Element;
|
|
13
12
|
declare namespace ToastConfig {
|
|
14
|
-
interface Props extends
|
|
13
|
+
interface Props extends WithGlobalConfig<Toast.Props> {
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
16
|
|
package/dist/toast-config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createConfigContext as o}from"@jamsrui/utils";const[
|
|
1
|
+
"use client";import{createConfigContext as o}from"@jamsrui/utils";const[e,a]=o({displayName:"ToastContext"});export{e as ToastConfig,a as useToastConfig};
|
package/dist/toast.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as r}from"@jamsrui/hooks";const s=e=>r("div",{props:e});export{s as Toast};
|
|
1
|
+
"use client";import{useRenderElement as r}from"@jamsrui/hooks";const s=e=>r("div",{props:e});export{s as Toast};
|
package/dist/use-toast.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e
|
|
1
|
+
"use client";const s=e=>{};export{s as useToast};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/toast",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"sonner": "^2.0.5",
|
|
9
|
-
"@jamsrui/hooks": "^0.0.
|
|
10
|
-
"@jamsrui/core": "^0.0.
|
|
11
|
-
"@jamsrui/utils": "^0.0.
|
|
9
|
+
"@jamsrui/hooks": "^0.0.18",
|
|
10
|
+
"@jamsrui/core": "^0.0.14",
|
|
11
|
+
"@jamsrui/utils": "^0.0.18"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|