@danxbot/ui 4.1.1 → 4.1.3

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.
@@ -26,6 +26,14 @@ export interface ToastOptions {
26
26
  label: string;
27
27
  onClick: () => void;
28
28
  };
29
+ /**
30
+ * Called when this toast leaves the stack — by its own close button, by
31
+ * swipe, by timeout, or by a caller's own `close(id)`. For a caller that
32
+ * needs to know WHETHER a toast it raised is still up (a reopen affordance
33
+ * beside a dismissed notification, say) without holding a reference to the
34
+ * manager itself.
35
+ */
36
+ onClose?: () => void;
29
37
  }
30
38
  /**
31
39
  * Raise toasts from anywhere under `ToastProvider`.
@@ -35,7 +43,7 @@ export interface ToastOptions {
35
43
  * one operation makes the stack tell a story nobody asked for.
36
44
  */
37
45
  export declare function useToast(): {
38
- show({ title, description, tone, timeout, action }: ToastOptions): string;
46
+ show({ title, description, tone, timeout, action, onClose }: ToastOptions): string;
39
47
  promise<T>(promise: Promise<T>, messages: {
40
48
  loading: ReactNode;
41
49
  success: ReactNode;
@@ -22,7 +22,6 @@ export declare const kanban: import("tailwind-variants").TVReturnType<{
22
22
  laneItems: string;
23
23
  card: string;
24
24
  laneEmpty: string;
25
- laneRefusal: string;
26
25
  }, undefined, {
27
26
  refusing: {
28
27
  true: {
@@ -47,7 +46,6 @@ export declare const kanban: import("tailwind-variants").TVReturnType<{
47
46
  laneItems: string;
48
47
  card: string;
49
48
  laneEmpty: string;
50
- laneRefusal: string;
51
49
  }, import("tailwind-variants").TVReturnTypeLike<{
52
50
  refusing: {
53
51
  true: {
@@ -72,5 +70,4 @@ export declare const kanban: import("tailwind-variants").TVReturnType<{
72
70
  laneItems: string;
73
71
  card: string;
74
72
  laneEmpty: string;
75
- laneRefusal: string;
76
73
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "4.1.1",
3
+ "version": "4.1.3",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",