@jamsrui/toast 0.0.19 → 0.1.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/README.md CHANGED
@@ -2,12 +2,11 @@
2
2
 
3
3
  **A comprehensive React UI component library designed for developers, with Tailwind CSS integration for seamless styling.**
4
4
 
5
-
6
5
  ## 📖 **Overview**
7
6
 
8
7
  [JamsrUI](https://jamsr-ui.jamsrworld.com) is designed to help developers build modern, fast and visually appealing web applications with ease.
9
8
 
10
- ## 🚀 Getting Started
9
+ ## 🚀 Getting Started
11
10
 
12
11
  Boost & Build your websites using [JamsrUI](https://jamsr-ui.jamsrworld.com).
13
12
 
@@ -37,4 +36,3 @@ We welcome contributions from developers of all skill levels!
37
36
  ## ⭐ Support the Project
38
37
 
39
38
  If you find **JamsrUI** helpful, consider giving it a ⭐ on [GitHub](https://github.com/jamsrworld/jamsr-ui).
40
-
package/dist/index.d.mts CHANGED
@@ -1,18 +1,12 @@
1
1
  import * as react from 'react';
2
2
  import { Toast as Toast$1 } from './toast.mjs';
3
- import { ToastConfig } from './toast-config.mjs';
4
- export { useToastConfig } from './toast-config.mjs';
5
- export { Toaster, toast } from 'sonner';
3
+ export { Toaster, toast, useSonner as useToast } from 'sonner';
6
4
  import '@jamsrui/utils';
7
- import 'react/jsx-runtime';
8
- import '@jamsrui/core';
9
5
 
10
6
  declare const Toast: (props: Toast$1.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
11
7
  declare namespace Toast {
12
8
  interface Props extends Toast$1.Props {
13
9
  }
14
- interface Config extends ToastConfig.Props {
15
- }
16
10
  }
17
11
 
18
- export { Toast, ToastConfig };
12
+ export { Toast };
package/dist/index.mjs CHANGED
@@ -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};
1
+ import{Toast as o}from"./toast.mjs";import{toast as r,Toaster as p,useSonner as n}from"sonner";const s=Object.assign(o,{});export{s as Toast,p as Toaster,r as toast,n as useToast};
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@jamsrui/toast",
3
- "version": "0.0.19",
3
+ "version": "0.1.0",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
8
  "sonner": "^2.0.5",
9
- "@jamsrui/hooks": "^0.0.19",
10
- "@jamsrui/core": "^0.0.15",
11
- "@jamsrui/utils": "^0.0.19"
9
+ "@jamsrui/hooks": "^0.1.0",
10
+ "@jamsrui/utils": "^0.1.0",
11
+ "@jamsrui/core": "^0.1.0"
12
12
  },
13
13
  "exports": {
14
14
  ".": {
package/dist/styles.d.mts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export { }
package/dist/styles.mjs DELETED
File without changes
@@ -1,17 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { WithGlobalConfig } from '@jamsrui/core';
3
- import { Toast } from './toast.mjs';
4
- import 'react';
5
- import '@jamsrui/utils';
6
-
7
- declare const useToastConfig: () => Record<string, any>;
8
- declare const ToastConfig: (props: Omit<Partial<Record<string, any>>, "children"> & {
9
- merge?: boolean;
10
- children: React.ReactNode;
11
- }) => react_jsx_runtime.JSX.Element;
12
- declare namespace ToastConfig {
13
- interface Props extends WithGlobalConfig<Toast.Props> {
14
- }
15
- }
16
-
17
- export { ToastConfig, useToastConfig };
@@ -1 +0,0 @@
1
- "use client";import{createConfigContext as o}from"@jamsrui/utils";const[e,a]=o({displayName:"ToastContext"});export{e as ToastConfig,a as useToastConfig};