@jamsrui/toast 0.0.16 → 0.0.17

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 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
- "use client";import{toast as e,Toaster as r}from"sonner";import{Toast as a}from"./toast.mjs";import{ToastConfig as T,useToastConfig as i}from"./toast-config.mjs";export{a as Toast,T as ToastConfig,r as Toaster,e as toast,i as useToastConfig};
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};
@@ -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 { GlobalConfigProps } from '@jamsrui/core';
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 Toast.Props, GlobalConfigProps<Toast.Props> {
13
+ interface Props extends WithGlobalConfig<Toast.Props> {
15
14
  }
16
15
  }
17
16
 
@@ -1 +1 @@
1
- import{createConfigContext as o}from"@jamsrui/utils";const[s,e]=o({displayName:"ToastContext"});export{s as ToastConfig,e as useToastConfig};
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};
@@ -1 +1 @@
1
- const e=s=>{};export{e as useToast};
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.16",
3
+ "version": "0.0.17",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
8
  "sonner": "^2.0.5",
9
- "@jamsrui/hooks": "^0.0.16",
10
- "@jamsrui/core": "^0.0.13",
11
- "@jamsrui/utils": "^0.0.16"
9
+ "@jamsrui/hooks": "^0.0.17",
10
+ "@jamsrui/core": "^0.0.14",
11
+ "@jamsrui/utils": "^0.0.17"
12
12
  },
13
13
  "exports": {
14
14
  ".": {