dhre-ui-kit 0.0.265 → 0.0.267

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/lib/index.d.ts CHANGED
@@ -373,14 +373,14 @@ interface ToastProps {
373
373
  errorIcon: React$1.ReactElement;
374
374
  }
375
375
  interface ToastRef {
376
- showToast: (message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null) => void;
376
+ showToast: (message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null, height?: number) => void;
377
377
  }
378
378
  interface ToastRef {
379
- showToast: (message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null) => void;
379
+ showToast: (message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null, height?: number) => void;
380
380
  }
381
381
  interface ToastServiceInterface {
382
382
  setRef: (ref: ToastRef | null) => void;
383
- showToast: (message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null) => void;
383
+ showToast: (message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null, height?: number) => void;
384
384
  }
385
385
 
386
386
  declare const Toast: React$1.ForwardRefExoticComponent<ToastProps & React$1.RefAttributes<ToastRef>>;
@@ -665,7 +665,7 @@ declare const CustomSwitchBtn: ({ value, onValueChange, disabled, activeText, ac
665
665
  declare class ToastService implements ToastServiceInterface {
666
666
  private toastRef;
667
667
  setRef(ref: ToastRef | null): void;
668
- showToast(message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null): void;
668
+ showToast(message: string, duration?: number, isSuccess?: boolean, buttonText?: string | null, buttonAction?: (() => void) | null, height?: number): void;
669
669
  }
670
670
  declare const toastService: ToastService;
671
671
 
package/lib/index.js CHANGED
@@ -3747,14 +3747,15 @@ class ToastService {
3747
3747
  setRef(ref) {
3748
3748
  this.toastRef = ref;
3749
3749
  }
3750
- showToast(message, duration = 3e3, isSuccess = true, buttonText = null, buttonAction = null) {
3750
+ showToast(message, duration = 3e3, isSuccess = true, buttonText = null, buttonAction = null, height = 72) {
3751
3751
  if (this.toastRef) {
3752
3752
  this.toastRef.showToast(
3753
3753
  message,
3754
3754
  duration,
3755
3755
  isSuccess,
3756
3756
  buttonText,
3757
- buttonAction
3757
+ buttonAction,
3758
+ height
3758
3759
  );
3759
3760
  }
3760
3761
  }