@nimbus-ds/components 5.53.0 → 5.54.0-rc.1
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/CHANGELOG.md +6 -0
- package/dist/CHANGELOG.md +6 -0
- package/dist/Toast/index.d.ts +8 -0
- package/dist/Toast/index.js +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/components-props.json +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -3376,6 +3376,7 @@ export interface TitleProperties extends TitleSprinkle {
|
|
|
3376
3376
|
export type TitleProps = TitleProperties & HTMLAttributes<HTMLHeadingElement>;
|
|
3377
3377
|
export declare const Title: React.FC<TitleProps> & TitleComponents;
|
|
3378
3378
|
export type ToastOffset = "default" | "high";
|
|
3379
|
+
export type ToastBehavior = "stacked" | "single";
|
|
3379
3380
|
export interface ToastProviderProperties {
|
|
3380
3381
|
/**
|
|
3381
3382
|
* @TJS-type React.ReactNode
|
|
@@ -3387,6 +3388,13 @@ export interface ToastProviderProperties {
|
|
|
3387
3388
|
* @default "default"
|
|
3388
3389
|
*/
|
|
3389
3390
|
offset?: ToastOffset;
|
|
3391
|
+
/**
|
|
3392
|
+
* Controls how multiple toasts are handled.
|
|
3393
|
+
* "stacked" - new toasts are piled up alongside already rendered ones.
|
|
3394
|
+
* "single" - only one toast is shown at a time; each new toast immediately replaces the previous one.
|
|
3395
|
+
* @default "stacked"
|
|
3396
|
+
*/
|
|
3397
|
+
behavior?: ToastBehavior;
|
|
3390
3398
|
}
|
|
3391
3399
|
export type ToastProviderProps = ToastProviderProperties;
|
|
3392
3400
|
export declare const ToastProvider: React.FC<ToastProviderProps>;
|