@zag-js/toast 0.49.0 → 0.51.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/dist/index.d.mts CHANGED
@@ -81,22 +81,27 @@ type Service<T = any> = Machine<MachineContext<T>, MachineState>;
81
81
  interface GroupPublicContext extends DirectionProperty, CommonProperties {
82
82
  /**
83
83
  * Whether to pause toast when the user leaves the browser tab
84
+ * @default false
84
85
  */
85
86
  pauseOnPageIdle: boolean;
86
87
  /**
87
88
  * The gap or spacing between toasts
89
+ * @default 16
88
90
  */
89
91
  gap: number;
90
92
  /**
91
93
  * The maximum number of toasts that can be shown at once
94
+ * @default Number.MAX_SAFE_INTEGER
92
95
  */
93
96
  max: number;
94
97
  /**
95
98
  * The offset from the safe environment edge of the viewport
99
+ * @default "1rem"
96
100
  */
97
101
  offsets: string | Record<"left" | "right" | "bottom" | "top", string>;
98
102
  /**
99
103
  * The hotkey that will move focus to the toast group
104
+ * @default '["altKey", "KeyT"]'
100
105
  */
101
106
  hotkey: string[];
102
107
  /**
@@ -110,6 +115,8 @@ interface GroupPublicContext extends DirectionProperty, CommonProperties {
110
115
  /**
111
116
  * The duration for the toast to kept alive before it is removed.
112
117
  * Useful for exit transitions.
118
+ *
119
+ * @default 200
113
120
  */
114
121
  removeDelay: number;
115
122
  /**
@@ -272,7 +279,7 @@ declare function groupMachine<T = any>(userContext: UserDefinedGroupContext): _z
272
279
 
273
280
  declare function createToastMachine<T>(options: Options<T>): _zag_js_core.Machine<MachineContext<T>, MachineState, _zag_js_core.StateMachine.AnyEventObject>;
274
281
 
275
- declare const anatomy: _zag_js_anatomy.AnatomyInstance<"title" | "group" | "root" | "description" | "actionTrigger" | "closeTrigger">;
282
+ declare const anatomy: _zag_js_anatomy.AnatomyInstance<"title" | "description" | "group" | "root" | "actionTrigger" | "closeTrigger">;
276
283
 
277
284
  declare function connect<T extends PropTypes, O>(state: State<O>, send: Send, normalize: NormalizeProps<T>): MachineApi<T, O>;
278
285
 
package/dist/index.d.ts CHANGED
@@ -81,22 +81,27 @@ type Service<T = any> = Machine<MachineContext<T>, MachineState>;
81
81
  interface GroupPublicContext extends DirectionProperty, CommonProperties {
82
82
  /**
83
83
  * Whether to pause toast when the user leaves the browser tab
84
+ * @default false
84
85
  */
85
86
  pauseOnPageIdle: boolean;
86
87
  /**
87
88
  * The gap or spacing between toasts
89
+ * @default 16
88
90
  */
89
91
  gap: number;
90
92
  /**
91
93
  * The maximum number of toasts that can be shown at once
94
+ * @default Number.MAX_SAFE_INTEGER
92
95
  */
93
96
  max: number;
94
97
  /**
95
98
  * The offset from the safe environment edge of the viewport
99
+ * @default "1rem"
96
100
  */
97
101
  offsets: string | Record<"left" | "right" | "bottom" | "top", string>;
98
102
  /**
99
103
  * The hotkey that will move focus to the toast group
104
+ * @default '["altKey", "KeyT"]'
100
105
  */
101
106
  hotkey: string[];
102
107
  /**
@@ -110,6 +115,8 @@ interface GroupPublicContext extends DirectionProperty, CommonProperties {
110
115
  /**
111
116
  * The duration for the toast to kept alive before it is removed.
112
117
  * Useful for exit transitions.
118
+ *
119
+ * @default 200
113
120
  */
114
121
  removeDelay: number;
115
122
  /**
@@ -272,7 +279,7 @@ declare function groupMachine<T = any>(userContext: UserDefinedGroupContext): _z
272
279
 
273
280
  declare function createToastMachine<T>(options: Options<T>): _zag_js_core.Machine<MachineContext<T>, MachineState, _zag_js_core.StateMachine.AnyEventObject>;
274
281
 
275
- declare const anatomy: _zag_js_anatomy.AnatomyInstance<"title" | "group" | "root" | "description" | "actionTrigger" | "closeTrigger">;
282
+ declare const anatomy: _zag_js_anatomy.AnatomyInstance<"title" | "description" | "group" | "root" | "actionTrigger" | "closeTrigger">;
276
283
 
277
284
  declare function connect<T extends PropTypes, O>(state: State<O>, send: Send, normalize: NormalizeProps<T>): MachineApi<T, O>;
278
285