@jamsrui/toast 0.0.2 → 0.0.4
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.mjs +1 -1
- 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/chunk-DMCIXGHA.js +0 -1
- package/dist/chunk-KNDNCEQB.mjs +0 -1
- package/dist/chunk-MLNJJKAI.mjs +0 -1
- package/dist/chunk-YUXHBFXD.js +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -1
- package/dist/styles.d.ts +0 -2
- package/dist/styles.js +0 -1
- package/dist/toast-config.d.ts +0 -20
- package/dist/toast-config.js +0 -1
- package/dist/toast.d.ts +0 -10
- package/dist/toast.js +0 -1
- package/dist/use-toast.d.ts +0 -7
- package/dist/use-toast.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{toast as e,Toaster as r}from"sonner";import{Toast as a}from"./toast";import{ToastConfig as T,useToastConfig as i}from"./toast-config";export{a as Toast,T as ToastConfig,r as Toaster,e as toast,i as useToastConfig};
|
package/dist/toast-config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createConfigContext as o}from"@jamsrui/utils";const[s,e]=o({displayName:"ToastContext"});export{s as ToastConfig,e as useToastConfig};
|
package/dist/toast.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
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
|
-
|
|
1
|
+
const e=s=>{};export{e 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.4",
|
|
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/
|
|
11
|
-
"@jamsrui/
|
|
9
|
+
"@jamsrui/hooks": "^0.0.4",
|
|
10
|
+
"@jamsrui/core": "^0.0.4",
|
|
11
|
+
"@jamsrui/utils": "^0.0.4"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
package/dist/chunk-DMCIXGHA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _hooks = require('@jamsrui/hooks');var s=e=>_hooks.useRenderElement.call(void 0, "div",{props:e});exports.a = s;
|
package/dist/chunk-KNDNCEQB.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createConfigContext as o}from"@jamsrui/utils";var[s,e]=o({displayName:"ToastContext"});export{s as a,e as b};
|
package/dist/chunk-MLNJJKAI.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useRenderElement as r}from"@jamsrui/hooks";var s=e=>r("div",{props:e});export{s as a};
|
package/dist/chunk-YUXHBFXD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var[s,e]=_utils.createConfigContext.call(void 0, {displayName:"ToastContext"});exports.a = s; exports.b = e;
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkYUXHBFXDjs = require('./chunk-YUXHBFXD.js');var _chunkDMCIXGHAjs = require('./chunk-DMCIXGHA.js');var _sonner = require('sonner');exports.Toast = _chunkDMCIXGHAjs.a; exports.ToastConfig = _chunkYUXHBFXDjs.a; exports.Toaster = _sonner.Toaster; exports.toast = _sonner.toast; exports.useToastConfig = _chunkYUXHBFXDjs.b;
|
package/dist/styles.d.ts
DELETED
package/dist/styles.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/toast-config.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import 'sonner';
|
|
2
|
-
import { Toast } from './toast.js';
|
|
3
|
-
import * as react from 'react';
|
|
4
|
-
import { GlobalConfigProps } from '@jamsrui/core';
|
|
5
|
-
import '@jamsrui/utils';
|
|
6
|
-
|
|
7
|
-
declare const useToastConfig: () => {
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
};
|
|
10
|
-
declare const ToastConfig: (props: {
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
} & {
|
|
13
|
-
merge?: boolean;
|
|
14
|
-
}) => react.JSX.Element;
|
|
15
|
-
declare namespace ToastConfig {
|
|
16
|
-
interface Props extends Toast.Props, GlobalConfigProps<Toast.Props> {
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { ToastConfig, useToastConfig };
|
package/dist/toast-config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYUXHBFXDjs = require('./chunk-YUXHBFXD.js');exports.ToastConfig = _chunkYUXHBFXDjs.a; exports.useToastConfig = _chunkYUXHBFXDjs.b;
|
package/dist/toast.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const Toast: (props: Toast.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace Toast {
|
|
6
|
-
interface Props extends UIProps<"div"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { Toast };
|
package/dist/toast.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDMCIXGHAjs = require('./chunk-DMCIXGHA.js');exports.Toast = _chunkDMCIXGHAjs.a;
|
package/dist/use-toast.d.ts
DELETED
package/dist/use-toast.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var e=s=>{};exports.useToast = e;
|