d9-toast 1.3.21 → 1.3.22

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.
@@ -51,6 +51,7 @@ export var ToastProvider = function ToastProvider(_ref) {
51
51
  return removeToast(newToast.id);
52
52
  }, toast.duration || 5000);
53
53
  }
54
+ return newToast === null || newToast === void 0 ? void 0 : newToast.id;
54
55
  }, []);
55
56
 
56
57
  // Remove toast
@@ -77,7 +77,7 @@ declare module "d9-toast" {
77
77
  /** Context value shape */
78
78
  export interface ToastContextValue {
79
79
  /** Show a toast with given options */
80
- showToast: (toast: ToastOptions) => void;
80
+ showToast: (toast: ToastOptions) => number;
81
81
  /** Remove a toast by ID */
82
82
  removeToast: (id: number) => void;
83
83
  /** Remove all active toasts */
package/dist/toast.css CHANGED
@@ -97,11 +97,12 @@
97
97
  border-radius: 8px;
98
98
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
99
99
  font-size: smaller;
100
- font-family: cursive;
100
+ font-family: Arial, Helvetica, sans-serif;
101
101
  transition: all 0.3s ease-in;
102
102
  will-change: transform, opacity;
103
103
  background-color: var(--primary-bg);
104
104
  color: var(--primary-color);
105
+ backdrop-filter: blur(10px);
105
106
  }
106
107
 
107
108
  /* Theme colors */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "d9-toast",
3
- "version": "1.3.21",
3
+ "version": "1.3.22",
4
4
  "description": "Customizable toast notifications for React",
5
5
  "homepage": "https://codesandbox.io/embed/cqkyzm?view=preview",
6
6
  "repository": {